import invoker,{API_INVOKER_TYPE,PLATFORM_TYPE_ENUM}from"./invoker";function stopListenNetworkStatusHandler(e,t){var n=t.resolve,o=t.reject,s=t.containerType,r=t.appType,i=t.platformType,a=t.context;if(s){var u=function(t){invoker.removeContinuesEvent(e.requestId),invoker.handleBridgeResponse(t,n,o)},v=function(t){invoker.removeContinuesEvent(e.requestId),invoker.handleBridgeResponse(t,n,o)};r===API_INVOKER_TYPE.MINI_APP?a&&a({m:"taurus.common.stopListenNetworkStatus",args:e,onSuccess:u,onFail:v}):i===PLATFORM_TYPE_ENUM.ANDROID?a&&a(u,v,"taurus.common","stopListenNetworkStatus",e):i===PLATFORM_TYPE_ENUM.IOS&&a.callHandler("taurus.common.stopListenNetworkStatus",Object.assign({},e),(function(t){invoker.removeContinuesEvent(e.requestId),invoker.handleBridgeResponse(t,n,o)}))}else a&&a.call("stopListenNetworkStatus",e,(function(t){invoker.removeContinuesEvent(e.requestId),invoker.handleBridgeResponse(t,n,o)}))}invoker.registerAPI("stopListenNetworkStatus",{mini:stopListenNetworkStatusHandler,mobile:stopListenNetworkStatusHandler}),stopListenNetworkStatus.version={android:"1.3.1.1",ios:"1.3.1.1"};export default function stopListenNetworkStatus(e){return invoker.invoke("stopListenNetworkStatus",e)}