"use strict";exports.__esModule=!0,exports.default=showOptionMenu;var _invoker=_interopRequireWildcard(require("./invoker"));function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(_getRequireWildcardCache=function(e){return e?r: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 r=_getRequireWildcardCache(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=o?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}function showOptionMenu(){return _invoker.default.invoke("showOptionMenu")}_invoker.default.registerAPI("showOptionMenu",{mobile:function(e,t){var r=t.resolve,n=t.reject,o=t.context,i=t.platformType;if(t.containerType){i===_invoker.PLATFORM_TYPE_ENUM.ANDROID?o&&o((function(){r()}),(function(){n()}),"taurus.common","showOptionMenu",e):i===_invoker.PLATFORM_TYPE_ENUM.IOS&&o.callHandler("taurus.common.showOptionMenu",Object.assign({},e),(function(){r()}))}else o&&o.call("showOptionMenu",e,(function(){r()}))}}),showOptionMenu.version={android:"1.1.0",ios:"1.1.0"},module.exports=exports.default,module.exports.default=exports.default;