"use strict";exports.__esModule=!0,exports.default=setNavIcon;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 a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}function setNavIconHandler(e,t){var r=t.resolve,n=t.reject,o=t.containerType,i=t.platformType,a=t.context;if(o){i===_invoker.PLATFORM_TYPE_ENUM.ANDROID?a&&a((function(t){e.onSuccess&&e.onSuccess(),r()}),(function(e){n()}),"biz.navigation","setIcon",e):i===_invoker.PLATFORM_TYPE_ENUM.IOS&&a.callHandler("biz.navigation.setIcon",Object.assign({},e),(function(e){r()}))}else a&&a.call("setNavIcon",e,(function(e){r()}))}function setNavIcon(e){return _invoker.default.invoke("setNavIcon",e)}_invoker.default.registerAPI("setNavIcon",{mobile:setNavIconHandler}),setNavIcon.version={android:"1.3.0",ios:"1.3.0"},module.exports=exports.default,module.exports.default=exports.default;