"use strict";exports.__esModule=!0,exports.default=hideLoading;var _invoker=_interopRequireWildcard(require("./invoker"));function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var i=new WeakMap,r=new WeakMap;return(_getRequireWildcardCache=function(e){return e?r:i})(e)}function _interopRequireWildcard(e,i){if(!i&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=_getRequireWildcardCache(i);if(r&&r.has(e))return r.get(e);var n={},t=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=t?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function hideLoadingMenuHandler(e,i){var r=i.resolve,n=i.reject,t=i.context,o=i.containerType,a=i.appType,d=i.platformType;if(o){var u=function(e){_invoker.default.handleBridgeResponse(e,r,n)},l=function(e){_invoker.default.handleBridgeResponse(e,r,n)};a===_invoker.API_INVOKER_TYPE.MINI_APP?t&&t({m:"device.notification.hidePreloader",args:e,onSuccess:u,onFail:l}):d===_invoker.PLATFORM_TYPE_ENUM.ANDROID?t&&t(u,l,"device.notification","hidePreloader",e):d===_invoker.PLATFORM_TYPE_ENUM.IOS&&t.callHandler("device.notification.hidePreloader",Object.assign({},e),(function(e){r(e)}))}else t&&t.call("hideLoading",e,(function(){r()}))}function hideLoading(){return _invoker.default.invoke("hideLoading")}_invoker.default.registerAPI("hideLoading",{mini:hideLoadingMenuHandler,mobile:hideLoadingMenuHandler}),hideLoading.version={android:"1.3.2",ios:"1.3.2"},module.exports=exports.default,module.exports.default=exports.default;