"use strict";exports.__esModule=!0,exports.default=stopListenNetworkStatus;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 s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}function stopListenNetworkStatusHandler(e,t){var r=t.resolve,n=t.reject,o=t.containerType,i=t.appType,s=t.platformType,u=t.context;if(o){var a=function(t){_invoker.default.removeContinuesEvent(e.requestId),_invoker.default.handleBridgeResponse(t,r,n)},d=function(t){_invoker.default.removeContinuesEvent(e.requestId),_invoker.default.handleBridgeResponse(t,r,n)};i===_invoker.API_INVOKER_TYPE.MINI_APP?u&&u({m:"taurus.common.stopListenNetworkStatus",args:e,onSuccess:a,onFail:d}):s===_invoker.PLATFORM_TYPE_ENUM.ANDROID?u&&u(a,d,"taurus.common","stopListenNetworkStatus",e):s===_invoker.PLATFORM_TYPE_ENUM.IOS&&u.callHandler("taurus.common.stopListenNetworkStatus",Object.assign({},e),(function(t){_invoker.default.removeContinuesEvent(e.requestId),_invoker.default.handleBridgeResponse(t,r,n)}))}else u&&u.call("stopListenNetworkStatus",e,(function(t){_invoker.default.removeContinuesEvent(e.requestId),_invoker.default.handleBridgeResponse(t,r,n)}))}function stopListenNetworkStatus(e){return _invoker.default.invoke("stopListenNetworkStatus",e)}_invoker.default.registerAPI("stopListenNetworkStatus",{mini:stopListenNetworkStatusHandler,mobile:stopListenNetworkStatusHandler}),stopListenNetworkStatus.version={android:"1.3.1.1",ios:"1.3.1.1"},module.exports=exports.default,module.exports.default=exports.default;