"use strict";exports.__esModule=!0,exports.default=hideOptionMenu;var _invoker=_interopRequireWildcard(require("./invoker"));function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(_getRequireWildcardCache=function(e){return e?n:t})(e)}function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=_getRequireWildcardCache(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function hideOptionMenuHandler(e,t){var n=t.resolve,r=t.reject,i=t.context,o=t.containerType,a=(t.appType,t.platformType);if(o){var u={show:!1,control:!0,text:""};a===_invoker.PLATFORM_TYPE_ENUM.ANDROID?i&&i((function(e){_invoker.default.handleBridgeResponse(e,n,r)}),(function(e){_invoker.default.handleBridgeResponse(e,n,r)}),"biz.navigation","setRight",u):a===_invoker.PLATFORM_TYPE_ENUM.IOS&&i.callHandler("biz.navigation.setRight",Object.assign({},u),(function(e){n(e)}))}else i&&i.call("hideOptionMenu",e,(function(){n()}))}function hideOptionMenu(){return _invoker.default.invoke("hideOptionMenu")}_invoker.default.registerAPI("hideOptionMenu",{mobile:hideOptionMenuHandler}),hideOptionMenu.version={android:"1.1.0",ios:"1.1.0"},module.exports=exports.default,module.exports.default=exports.default;