import invoker,{API_INVOKER_TYPE,PLATFORM_TYPE_ENUM}from"./invoker";function hideLoadingMenuHandler(e,i){var n=i.resolve,o=i.reject,d=i.context,r=i.containerType,a=i.appType,t=i.platformType;if(r){var c=function(e){invoker.handleBridgeResponse(e,n,o)},l=function(e){invoker.handleBridgeResponse(e,n,o)};a===API_INVOKER_TYPE.MINI_APP?d&&d({m:"device.notification.hidePreloader",args:e,onSuccess:c,onFail:l}):t===PLATFORM_TYPE_ENUM.ANDROID?d&&d(c,l,"device.notification","hidePreloader",e):t===PLATFORM_TYPE_ENUM.IOS&&d.callHandler("device.notification.hidePreloader",Object.assign({},e),(function(e){n(e)}))}else d&&d.call("hideLoading",e,(function(){n()}))}invoker.registerAPI("hideLoading",{mini:hideLoadingMenuHandler,mobile:hideLoadingMenuHandler}),hideLoading.version={android:"1.3.2",ios:"1.3.2"};export default function hideLoading(){return invoker.invoke("hideLoading")}