import invoker,{PLATFORM_TYPE_ENUM}from"./invoker";function hideOptionMenuHandler(e,n){var i=n.resolve,o=n.reject,t=n.context,r=n.containerType,a=(n.appType,n.platformType);if(r){var d={show:!1,control:!0,text:""};a===PLATFORM_TYPE_ENUM.ANDROID?t&&t((function(e){invoker.handleBridgeResponse(e,i,o)}),(function(e){invoker.handleBridgeResponse(e,i,o)}),"biz.navigation","setRight",d):a===PLATFORM_TYPE_ENUM.IOS&&t.callHandler("biz.navigation.setRight",Object.assign({},d),(function(e){i(e)}))}else t&&t.call("hideOptionMenu",e,(function(){i()}))}invoker.registerAPI("hideOptionMenu",{mobile:hideOptionMenuHandler}),hideOptionMenu.version={android:"1.1.0",ios:"1.1.0"};export default function hideOptionMenu(){return invoker.invoke("hideOptionMenu")}