@yuno-payments/dashboard-api-mfe 1.10.0 → 1.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.js +3 -3
- package/build/cjs/index.js.map +1 -1
- package/build/esm/index.js +3 -3
- package/build/esm/index.js.map +1 -1
- package/package.json +1 -1
package/build/esm/index.js
CHANGED
|
@@ -47,7 +47,7 @@ statuses/index.js:
|
|
|
47
47
|
*
|
|
48
48
|
* This source code is licensed under the MIT license found in the
|
|
49
49
|
* LICENSE file in the root directory of this source tree.
|
|
50
|
-
*/"production"===process.env.NODE_ENV?Af.exports=function(){if(Tf)return Of;Tf=1;var e=s,t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useState,r=e.useEffect,o=e.useLayoutEffect,a=e.useDebugValue;function i(e){var n=e.getSnapshot;e=e.value;try{var r=n();return!t(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var s=t(),c=n({inst:{value:s,getSnapshot:t}}),u=c[0].inst,l=c[1];return o(function(){u.value=s,u.getSnapshot=t,i(u)&&l({inst:u})},[e,s,t]),r(function(){return i(u)&&l({inst:u}),e(function(){i(u)&&l({inst:u})})},[e]),a(s),s};return Of.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:c,Of}():Af.exports=(Pf||(Pf=1,"production"!==process.env.NODE_ENV&&function(){function e(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(e){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=s,n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=t.useState,o=t.useEffect,a=t.useLayoutEffect,i=t.useDebugValue,c=!1,u=!1,l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(s,l){c||void 0===t.startTransition||(c=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var d=l();if(!u){var p=l();n(d,p)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),u=!0)}var h=(p=r({inst:{value:d,getSnapshot:l}}))[0].inst,f=p[1];return a(function(){h.value=d,h.getSnapshot=l,e(h)&&f({inst:h})},[s,d,l]),o(function(){return e(h)&&f({inst:h}),s(function(){e(h)&&f({inst:h})})},[s]),i(d),d};Df.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:l,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Df);var Lf=Af.exports;const jf=Lf.useSyncExternalStore,Nf=i.createContext(void 0),zf=i.createContext(!1);function qf(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Nf),window.ReactQueryClientContext):Nf)}const Uf=({context:e}={})=>{const t=i.useContext(qf(e,i.useContext(zf)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Mf=({client:e,children:t,context:n,contextSharing:r=!1})=>{i.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),"production"!==process.env.NODE_ENV&&r&&e.getLogger().error("The contextSharing option has been deprecated and will be removed in the next major version");const o=qf(n,r);return i.createElement(zf.Provider,{value:!n&&r},i.createElement(o.Provider,{value:e},t))},Bf=i.createContext(!1);Bf.Provider;const Ff=i.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function Gf(e,t){return"function"==typeof e?e(...t):!!e}function Wf(e,t){const n=Uf({context:e.context}),r=i.useContext(Bf),o=i.useContext(Ff),a=n.defaultQueryOptions(e);a._optimisticResults=r?"isRestoring":"optimistic",a.onError&&(a.onError=ff.batchCalls(a.onError)),a.onSuccess&&(a.onSuccess=ff.batchCalls(a.onSuccess)),a.onSettled&&(a.onSettled=ff.batchCalls(a.onSettled)),(e=>{e.suspense&&("number"!=typeof e.staleTime&&(e.staleTime=1e3),"number"==typeof e.cacheTime&&(e.cacheTime=Math.max(e.cacheTime,1e3)))})(a),((e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))})(a,o),(e=>{i.useEffect(()=>{e.clearReset()},[e])})(o);const[s]=i.useState(()=>new t(n,a)),c=s.getOptimisticResult(a);if(jf(i.useCallback(e=>{const t=r?()=>{}:s.subscribe(ff.batchCalls(e));return s.updateResult(),t},[s,r]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),i.useEffect(()=>{s.setOptions(a,{listeners:!1})},[a,s]),((e,t,n)=>(null==e?void 0:e.suspense)&&((e,t)=>e.isLoading&&e.isFetching&&!t)(t,n))(a,c,r))throw((e,t,n)=>t.fetchOptimistic(e).then(({data:t})=>{null==e.onSuccess||e.onSuccess(t),null==e.onSettled||e.onSettled(t,null)}).catch(t=>{n.clearReset(),null==e.onError||e.onError(t),null==e.onSettled||e.onSettled(void 0,t)}))(a,s,o);if((({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&Gf(n,[e.error,r]))({result:c,errorResetBoundary:o,useErrorBoundary:a.useErrorBoundary,query:s.getCurrentQuery()}))throw c.error;return a.notifyOnChangeProps?c:s.trackResult(c)}function Hf(e,t,n){return Wf(Bh(e,t,n),Ef)}function Vf(e,t,n){const r=function(e,t,n){return ef(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}(e,t,n),o=Uf({context:r.context}),[a]=i.useState(()=>new Rf(o,r));i.useEffect(()=>{a.setOptions(r)},[a,r]);const s=jf(i.useCallback(e=>a.subscribe(ff.batchCalls(e)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),c=i.useCallback((e,t)=>{a.mutate(e,t).catch(Kf)},[a]);if(s.error&&Gf(a.options.useErrorBoundary,[s.error]))throw s.error;return{...s,mutate:c,mutateAsync:s.mutate}}function Kf(){}var $f;function Qf(e){return Vf(function(e){var t=e.payload;return jh.getInstance().postWebhookV2MultiAccount({payload:t})},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Yf(e){return Vf(function(e){var t=e.code,n=e.accountCode;return jh.getInstance().deleteWebhookV2(t,n)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Jf(e){return Vf(function(e){var t=e.code,n=e.payload,r=e.accountCode;return jh.getInstance().updateWebhookV2(t,n,r)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Zf(){return Vf(function(e){var t=e.name,n=e.principal;return jh.getInstance().postAccount(t,n)})}function Xf(){return Vf(function(n){var r=e([$f.ACCOUNT],n.duplicate_order,!0);return jh.getInstance().duplicateAccount(t(t({},n),{duplicate_order:r}))})}function em(){return Vf(function(e){return jh.getInstance().retryDuplicateAccount(e)})}function tm(){return Vf(function(e){var t=e.name,n=e.code,r=e.principal;return jh.getInstance().patchAccountV2({name:t,code:n,principal:r})})}function nm(){return Vf(function(e){var t=e.account_code;return jh.getInstance().putAccountPrincipal({account_code:t})})}function rm(){return Vf(function(e){var t=e.organizationCode,n=e.userCode,r=e.payload;return jh.getInstance().putAccountsUserMassive(t,n,r)})}function om(){return Vf(function(e){var t=e.organizationCode,n=e.userCode,r=e.payload;return jh.getInstance().deleteAccountsUserMassive(t,n,r)})}function am(){return Vf(["post-validate-status-connection"],function(e){var t=e.payload,n=e.accountCode;return jh.getInstance().postValidateStatusConnection({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function im(){return Vf(["post-change-status-connection"],function(e){var t=e.payload,n=e.accountCode;return jh.getInstance().postChangeStatusConnection({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function sm(){return Vf(function(e){return jh.getInstance().putCosts(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function cm(){return Vf(["post-connection"],function(e){var t=e.payload;return jh.getInstance().postMultiConnection({payload:t}).then(function(e){return null==e?void 0:e.data})})}function um(){return Vf(["new-post-connection-validate"],function(){return jh.getInstance().postMultiConnectionValidate().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function lm(){return Vf(["patch-connection"],function(e){var t=e.payload,n=e.connectionCode;return jh.getInstance().patchConnection({payload:t,connectionCode:n}).then(function(e){return null==e?void 0:e.data})})}function dm(){return Vf(function(e){var t=e.payload;return jh.getInstance().postDefaultRoutes({payload:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function pm(){return Vf(function(e){return jh.getInstance().postValidateCredentials(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function hm(){var e=this;return Vf(function(t){var o=t.payload;return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,jh.getInstance().postNetworkTokensOnboarding(o)];case 1:return[2,e.sent().data]}})})},{useErrorBoundary:!1})}function fm(){return Vf(["patch-organizations"],function(){return jh.getInstance().updateOrganizationStatus().then(function(e){return null==e?void 0:e.data})})}function mm(){return Vf(function(e){return jh.getInstance().getOrgByName(e).then(function(e){return null==e?void 0:e.data})})}function gm(){var e=this;return Vf(function(t){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,jh.getInstance().changePasswordV2(t).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function ym(){var e=this;return Vf(function(t){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,jh.getInstance().workosPasswordReset(t).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function vm(){var e=this;return Vf(function(){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,jh.getInstance().workosAdminPortal().then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function bm(){var e=this;return Vf(function(){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,jh.getInstance().workosDomainVerificationPortal().then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function km(){var e=this;return Vf(function(t){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,jh.getInstance().workosVerifyMfa(t).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function _m(e){return Vf(function(e){return jh.getInstance().updateProfile(e)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function wm(){return Vf(function(e){return jh.getInstance().inviteUsersMassive(e,e.organizationCode)})}function Em(){return Vf(function(e){return jh.getInstance().inviteUsersMassiveV2(e)})}function xm(){return Vf(function(e){var t=e.userCode,n=e.organizationCode;return jh.getInstance().unInviteUsersV2({userCode:t,organizationCode:n})})}function Sm(){return Vf(function(e){return jh.getInstance().createUserAuth0(e)})}function Cm(){return Vf(function(e){return jh.getInstance().postCall(e)})}function Im(){return Vf(function(e){return jh.getInstance().changeLoginMethods(e)})}!function(e){e.ACCOUNT="ACCOUNT",e.CHECKOUT_BUILDER="CHECKOUT_BUILDER",e.CONNECTION="CONNECTION",e.ROUTING="ROUTING",e.RISK_CONDITIONS="RISK_CONDITIONS",e.WEBHOOKS="WEBHOOKS"}($f||($f={}));var Rm=function(){var e=c("ON"===localStorage.getItem("isTesting")),t=e[0],n=e[1];return u(function(){var e=function(e){"isTesting"===e.key&&n("ON"===e.newValue)};return window.addEventListener("storage",e),function(){window.removeEventListener("storage",e)}},[]),{isTesting:t}},Tm=function(e){var t=localStorage.getItem(e),n=c(t&&JSON.parse(t)),r=n[0],o=n[1];return u(function(){var t=function(t){if(t.key===e){var n=t.newValue;o(n)}};return window.addEventListener("storage",t),function(){window.removeEventListener("storage",t)}},[e]),r},Am=function(){var e,t;return null===(t=null===(e=Tm("account"))||void 0===e?void 0:e.value)||void 0===t?void 0:t.organization_code},Om=function(){var e,t=Rm().isTesting,n=null===(e=Tm("account"))||void 0===e?void 0:e.value;return(t?null==n?void 0:n.account_code_testing:null==n?void 0:n.account_code_live)||(null==n?void 0:n.code)};function Pm(e){var n=Om(),r=l(n);return r.current=n,Vf(function(e){return jh.getInstance().updateIsActiveCheckout(t(t({},e),{accountCode:r.current}))},e)}function Dm(e){var n=Om(),r=l(n);return r.current=n,Vf(function(e){return jh.getInstance().publishCheckout(t(t({},e),{accountCode:r.current}))},e)}function Lm(){return Vf(function(e){var t=e.payload,n=e.transactionId,r=e.paymentId,o=e.action;return jh.getInstance().createOperationTransaction(t,n,r,o)})}function jm(){return Vf(function(e){var t=e.payload,n=e.paymentId,r=e.transactionId,o=e.handleSetProgress;return jh.getInstance().uploadChargebacks(t,n,r,o)})}function Nm(){return Vf(function(e){var t=e.transactionCode,n=e.payload;return jh.getInstance().postProviderRawResponse(t,n)})}function zm(){return Vf(function(e){var t=e.paymentId,n=e.payload;return jh.getInstance().addToRiskList(t,n)})}var qm=new yf({}),Um=new class{constructor(e={}){this.queryCache=e.queryCache||new yf,this.mutationCache=e.mutationCache||new kf,this.logger=e.logger||hf,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0,"production"!==process.env.NODE_ENV&&e.logger&&this.logger.error("Passing a custom logger has been deprecated and will be removed in the next major version.")}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=of.subscribe(()=>{of.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=sf.subscribe(()=>{sf.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[n]=Fh(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}ensureQueryData(e,t,n){const r=Bh(e,t,n),o=this.getQueryData(r.queryKey);return o?Promise.resolve(o):this.fetchQuery(r)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){const r=this.queryCache.find(e),o=function(e,t){return"function"==typeof e?e(t):e}(t,null==r?void 0:r.state.data);if(void 0===o)return;const a=Bh(e),i=this.defaultQueryOptions(a);return this.queryCache.build(this,i).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return ff.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}removeQueries(e,t){const[n]=Fh(e,t),r=this.queryCache;ff.batch(()=>{r.findAll(n).forEach(e=>{r.remove(e)})})}resetQueries(e,t,n){const[r,o]=Fh(e,t,n),a=this.queryCache,i={type:"active",...r};return ff.batch(()=>(a.findAll(r).forEach(e=>{e.reset()}),this.refetchQueries(i,o)))}cancelQueries(e,t,n){const[r,o={}]=Fh(e,t,n);void 0===o.revert&&(o.revert=!0);const a=ff.batch(()=>this.queryCache.findAll(r).map(e=>e.cancel(o)));return Promise.all(a).then(qh).catch(qh)}invalidateQueries(e,t,n){const[r,o]=Fh(e,t,n);return ff.batch(()=>{var e,t;if(this.queryCache.findAll(r).forEach(e=>{e.invalidate()}),"none"===r.refetchType)return Promise.resolve();const n={...r,type:null!=(e=null!=(t=r.refetchType)?t:r.type)?e:"active"};return this.refetchQueries(n,o)})}refetchQueries(e,t,n){const[r,o]=Fh(e,t,n),a=ff.batch(()=>this.queryCache.findAll(r).filter(e=>!e.isDisabled()).map(e=>{var t;return e.fetch(void 0,{...o,cancelRefetch:null==(t=null==o?void 0:o.cancelRefetch)||t,meta:{refetchPage:r.refetchPage}})}));let i=Promise.all(a).then(qh);return null!=o&&o.throwOnError||(i=i.catch(qh)),i}fetchQuery(e,t,n){const r=Bh(e,t,n),o=this.defaultQueryOptions(r);void 0===o.retry&&(o.retry=!1);const a=this.queryCache.build(this,o);return a.isStaleByTime(o.staleTime)?a.fetch(o):Promise.resolve(a.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(qh).catch(qh)}fetchInfiniteQuery(e,t,n){const r=Bh(e,t,n);return r.behavior=_f(),this.fetchQuery(r)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(qh).catch(qh)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const n=this.queryDefaults.find(t=>Vh(e)===Vh(t.queryKey));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find(t=>Kh(e,t.queryKey));if("production"!==process.env.NODE_ENV){this.queryDefaults.filter(t=>Kh(e,t.queryKey)).length>1&&this.logger.error("[QueryClient] Several query defaults match with key '"+JSON.stringify(e)+"'. The first matching query defaults are used. Please check how query defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetquerydefaults.")}return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){const n=this.mutationDefaults.find(t=>Vh(e)===Vh(t.mutationKey));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find(t=>Kh(e,t.mutationKey));if("production"!==process.env.NODE_ENV){this.mutationDefaults.filter(t=>Kh(e,t.mutationKey)).length>1&&this.logger.error("[QueryClient] Several mutation defaults match with key '"+JSON.stringify(e)+"'. The first matching mutation defaults are used. Please check how mutation defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetmutationdefaults.")}return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=Hh(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}({defaultOptions:{queries:{refetchOnWindowFocus:!1,refetchOnReconnect:!1,retry:!1,staleTime:3e5,useErrorBoundary:!0}},queryCache:qm});function Mm(){return Vf(function(e){return jh.getInstance().createReconciliationsReportV2(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Bm(){return Vf(function(e){return jh.getInstance().createReconciliationsReportV3(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Fm(){return Vf(function(e){return jh.getInstance().createReportV2(e).then(function(e){return null==e?void 0:e.data})})}function Gm(){return Vf(function(e){return jh.getInstance().getTotalRowsForExport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function Wm(){return Vf(function(e){return jh.getInstance().cancelReport(e).then(function(e){return null==e?void 0:e.data})})}function Hm(t){var o=this;return Vf(function(){return n(o,void 0,void 0,function(){return r(this,function(e){return[2,jh.getInstance().createReportTemplate(t).then(function(e){return null==e?void 0:e.data})]})})},{onMutate:function(t){return n(o,void 0,void 0,function(){var n;return r(this,function(r){switch(r.label){case 0:return[4,Um.cancelQueries({queryKey:["GET/reports/templates"]})];case 1:return r.sent(),n=Um.getQueryData(["GET/reports/templates"]),Um.setQueryData(["GET/reports/templates"],function(n){return e(e([],n,!0),[t],!1)}),[2,{previousTemplates:n}]}})})},onError:function(e,t,n){Um.setQueryData(["GET/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){Um.invalidateQueries({queryKey:["GET/reports/templates"]})}})}function Vm(e){return Vf(function(){return jh.getInstance().updateReportTemplate(e).then(function(e){return null==e?void 0:e.data})})}function Km(){return Vf(function(e){return jh.getInstance().deletePaymentsReportTemplate(e).then(function(e){return null==e?void 0:e.data})})}function $m(e,t,o){var a=this;void 0===o&&(o=null);var i=(null==o?void 0:o.basePath)||Ad.DEFAULT_ROUTING_TYPE;return Vf(function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,jh.getInstance().postSmartRoutingCreateWorkflow(e,t,i).then(function(e){return null==e?void 0:e.data})];case 1:return[2,n.sent()]}})})},o)}function Qm(e,t){var o=this,a=e.versionCode,i=e.accountCode,s=e.organizationCode,c=e.routingType,u=void 0===c?Ad.DEFAULT_ROUTING_TYPE:c;return void 0===t&&(t=null),Vf(function(){return n(o,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,jh.getInstance().postSmartRoutingPublishVersion(i,a,s,u).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})},t)}function Ym(e,t){var n=e.data,r=e.accountCode,o=e.routingType,a=void 0===o?Ad.DEFAULT_ROUTING_TYPE:o;return void 0===t&&(t=null),Vf(function(){return jh.getInstance().putSmartRoutingUpdateWorkflow(r,n,a).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},t)}function Jm(e,t){var n=e.versionCode,r=e.accountCode,o=e.routingType,a=void 0===o?Ad.DEFAULT_ROUTING_TYPE:o;return void 0===t&&(t=null),Vf(function(){return jh.getInstance().deleteSmartRoutingVersion(r,n,a).then(function(e){return null==e?void 0:e.data})},t)}function Zm(e,t){var n=e.versionCode,r=e.accountCode,o=e.routingType,a=void 0===o?Ad.DEFAULT_ROUTING_TYPE:o;return void 0===t&&(t=null),Vf(function(){return jh.getInstance().postSmartRoutingDuplicateVersion(r,String(n),a).then(function(e){return null==e?void 0:e.data})},t)}function Xm(e,t){var n=e.paymentMethod,r=e.active,o=e.accountCode,a=e.routingType,i=void 0===a?Ad.DEFAULT_ROUTING_TYPE:a;return void 0===t&&(t=null),Vf(function(){return jh.getInstance().putSmartRoutingToggleMethod(o,n,r,i).then(function(e){return null==e?void 0:e.data})},t)}function eg(e,t){var o=this;return void 0===t&&(t=null),Vf(function(t){return n(o,void 0,void 0,function(){var n,o,a,i,s,c;return r(this,function(r){switch(r.label){case 0:return n=jh.getInstance(),o=t.map(function(t){return n.putSmartRoutingToggleMethod(e,t.paymentMethod,t.active,t.routingType)}),[4,Promise.allSettled(o)];case 1:return a=r.sent(),i=a.filter(function(e){return"rejected"===e.status}),s=a.filter(function(e){return"fulfilled"===e.status}),c=i.map(function(e,n){return{paymentMethod:t[n].paymentMethod,error:"rejected"===e.status?e.reason:null}}),[2,{success:s.length,failed:i.length,total:t.length,errors:c}]}})})},t)}function tg(e,t){var n=e.declinedId,r=e.accountCode;return void 0===t&&(t=null),Vf(function(e){return void 0===e&&(e=null),jh.getInstance().updateSmartRoutingDeclinedGroup(r,n,e).then(function(e){return null==e?void 0:e.data})},t)}function ng(e){var t=e.accountCode;return Vf(function(e){return void 0===e&&(e=null),jh.getInstance().createSmartRoutingDeclinedGroup(t,e).then(function(e){return null==e?void 0:e.data})},e.options)}function rg(e,t){var n=e.versionCode,r=e.accountCode,o=e.routingType,a=void 0===o?Ad.DEFAULT_ROUTING_TYPE:o;return void 0===t&&(t=null),Vf(function(e){return void 0===e&&(e=!1),jh.getInstance().updateSmartRoutingFavorite(r,n,e,a).then(function(e){return null==e?void 0:e.data})},t)}function og(e,t){var n=e.code,r=e.name,o=e.accountCode,a=e.routingType,i=void 0===a?Ad.DEFAULT_ROUTING_TYPE:a;return void 0===t&&(t=null),Vf(function(){return jh.getInstance().putSmartRoutingUpdateWorkflowName(o,{code:n,name:r},i).then(function(e){return null==e?void 0:e.data})},t)}function ag(e,t){var n=e.accountCode,r=e.workflowVersionCode,o=e.routingType,a=void 0===o?Ad.DEFAULT_ROUTING_TYPE:o;return void 0===t&&(t=null),Vf(function(e){return jh.getInstance().simulateSmartRoutingTransaction(n,r,e,a).then(function(e){return null==e?void 0:e.data})},t)}function ig(e,t){return void 0===t&&(t=null),Vf(function(t){return jh.getInstance().updateMonitorRedistribution(e,t).then(function(e){return null==e?void 0:e.data})},t)}function sg(e,n){return void 0===n&&(n={}),Vf(function(t){var n=t.declinedGroupCode;return jh.getInstance().removeDeclinedGroup(e,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},t(t({},n),{useErrorBoundary:!1}))}function cg(e,n){return void 0===n&&(n={}),Vf(function(t){var n=t.payload;return jh.getInstance().multiAccountDeclinedGroupCreate(e,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},t(t({},n),{useErrorBoundary:!1}))}var ug=function(e){return Vf(function(t){return jh.getInstance().createMonitorThreshold(t,e).then(function(e){return e.data})})},lg=function(e){return Vf(function(t){return jh.getInstance().createMonitorTemplate(t,e).then(function(e){return e.data})})};function dg(){return Vf(function(e){var t=e.payload;return jh.getInstance().postSlackMessageChannel(t).then(function(e){return null==e?void 0:e.data})})}function pg(){return Vf(function(e){var t=e.userCode,n=e.organizationCode;return jh.getInstance().deleteUserTeamV2({userCode:t,organizationCode:n}).then(function(e){return null==e?void 0:e.data})})}function hg(){return Vf(function(){return jh.getInstance().setCustodian().then(function(e){return null==e?void 0:e.data})})}function fg(){return Vf(function(e){var t=e.payload,n=e.accountCode;return jh.getInstance().createRoles(t,n).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function mg(){var e=this;return Vf(function(t){var o=t.payload,a=t.id,i=t.accountCode;return n(e,void 0,void 0,function(){var e;return r(this,function(t){switch(t.label){case 0:return[4,jh.getInstance().editRoles({payload:o,id:a},i)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}})})},{useErrorBoundary:!1})}function gg(){return Vf(function(e){return jh.getInstance().deleteRoles(e).then(function(e){return null==e?void 0:e.data})})}function yg(){return Vf(function(e){var t=e.payload;return jh.getInstance().createOrgRole(t).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function vg(){var e=this;return Vf(function(t){var o=t.payload,a=t.id;return n(e,void 0,void 0,function(){var e;return r(this,function(t){switch(t.label){case 0:return[4,jh.getInstance().editOrgRole({payload:o,id:a})];case 1:return[2,null==(e=t.sent())?void 0:e.data]}})})},{useErrorBoundary:!1})}function bg(){return Vf(function(e){return jh.getInstance().deleteOrgRole(e).then(function(e){return null==e?void 0:e.data})})}function kg(){return Vf(function(e){return jh.getInstance().startUserExport({accountCodes:e.account_codes,name:e.name,search:e.search,statuses:e.statuses,roleIds:e.role_ids}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function _g(){return Vf(["post-payment-links"],function(e){var t=e.payload,n=e.accountCode;return jh.getInstance().postPaymentLinks({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data})})}function wg(){return Vf(["post-delete-payment-link"],function(e){var t=e.code;return jh.getInstance().postDeletePaymentLink({code:t}).then(function(e){return null==e?void 0:e.data})})}function Eg(){return Vf(["patch-payment-links"],function(e){var t=e.payload,n=e.accountCode,r=e.paymentLinkCode;return jh.getInstance().patchPaymentLinks({payload:t,accountCode:n,paymentLinkCode:r}).then(function(e){return null==e?void 0:e.data})})}function xg(){return Vf(["upload-payment-link-logo"],function(e){var t=e.payload;return jh.getInstance().uploadPaymentLinkLogo({payload:t}).then(function(e){return null==e?void 0:e.data})})}function Sg(){return Vf(["post-subscription"],function(e){return jh.getInstance().postSubscription(e).then(function(e){return null==e?void 0:e.data})})}function Cg(){return Vf(["post-pause-subscription"],function(e){var t=e.subscriptionCode;return jh.getInstance().postPauseSubscription(t).then(function(e){return null==e?void 0:e.data})})}function Ig(){return Vf(["post-resume-subscription"],function(e){var t=e.subscriptionCode;return jh.getInstance().postResumeSubscription(t).then(function(e){return null==e?void 0:e.data})})}function Rg(){return Vf(["post-cancel-subscription"],function(e){var t=e.subscriptionCode;return jh.getInstance().postCancelSubscription(t).then(function(e){return null==e?void 0:e.data})})}function Tg(){return Vf(["patch-subscription"],function(e){var t=e.subscriptionCode,n=e.payload;return jh.getInstance().patchSubscription(t,n).then(function(e){return null==e?void 0:e.data})})}function Ag(){return Vf(["post-reschedule-subscription"],function(e){var t=e.subscriptionCode;return jh.getInstance().postRescheduleSubscription(t).then(function(e){return null==e?void 0:e.data})})}function Og(){return Vf(["post-list-subscriptions"],function(e){return jh.getInstance().postListSubscriptions(e).then(function(e){return null==e?void 0:e.data})})}function Pg(){return Vf(function(e){var t=e.payload;return jh.getInstance().postUserSettings(t)},{onMutate:function(e){return e}})}function Dg(){return Vf(function(e){return jh.getInstance().postUserThemeSettings(e)})}function Lg(){return Vf(function(e){var t=e.payload,n=e.section;return jh.getInstance().postUserSettingsTables(t,n)},{onMutate:function(e){return e},onSuccess:function(e){var n=Um.getQueryData(["fetch-profile"]);e.data&&Um.setQueryData(["fetch-profile"],t(t({},n),{settings:e.data}))}})}function jg(e){return Vf(["pinned-sections"],function(e){var t=e.payload;return jh.getInstance().postUserSettingsPinned(t)},{onMutate:function(t){var n=t.payload;return e({payload:n})}})}function Ng(){return Hf(["fetch-profile"],function(){return jh.getInstance().getProfile().then(function(e){var t=null==e?void 0:e.data;return t&&localStorage.setItem("user",JSON.stringify(t)),t}).catch(function(e){throw e})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function zg(){var e=this;return Hf(["get-user-full"],function(){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,jh.getInstance().getUserFull()];case 1:return[2,e.sent().data]}})})},{keepPreviousData:!0,useErrorBoundary:!1})}function qg(e,t){return Hf(["fetch-permissions",e,t],function(){var e,t,n,r=localStorage.getItem("account"),o=localStorage.getItem("user"),a=r&&JSON.parse(r),i=o&&JSON.parse(o);return((null==i?void 0:i.merlin)?null===(e=null==i?void 0:i.merlin)||void 0===e?void 0:e.permissions:null===(n=null===(t=null==a?void 0:a.value)||void 0===t?void 0:t.role)||void 0===n?void 0:n.permission_ids.map(function(e){return{permission_name:e,description:e,resource_server_name:e,resource_server_identifier:e}}))||[]})}function Ug(e){return Hf(["email-verification",e],function(){return jh.getInstance().emailVerification(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e})}function Mg(){return Hf({queryKey:["get-login-methods"],queryFn:function(){return jh.getInstance().getLoginMethods().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})}})}function Bg(){return Hf(["fetch-impersonation-users"],function(){return jh.getInstance().getImpersonationUsers().then(function(e){var t;return(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.result)||[]})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Fg(){return Hf(["fetch-impersonation-enabled"],function(){return jh.getInstance().getImpersonationEnabled().then(function(e){return null==e?void 0:e.data})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Gg(e,t,o,a,i,s){var c=this;return void 0===o&&(o=1),void 0===a&&(a=10),Hf(["get-users-to-impersonate",e,t,o,a,i,s],function(){return n(c,void 0,void 0,function(){return r(this,function(n){return[2,jh.getInstance().getUsersToImpersonate(e,t,o,a,i,s).then(function(e){return null==e?void 0:e.data})]})})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function Wg(e){var t;return Hf(["fetch-communications",e],function(){return jh.getInstance().getCommunications(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null===(t=e.account_codes)||void 0===t?void 0:t.length),useErrorBoundary:!1,cacheTime:3e3})}function Hg(){return Hf(["fetch-communications-filters"],function(){return jh.getInstance().getCommunicationsFilters().then(function(e){return null==e?void 0:e.data})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Vg(e,t){return Hf(["fetch-communication-details",e],function(){return jh.getInstance().getCommunicationDetails(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e,useErrorBoundary:!1,cacheTime:0})}function Kg(n,r,o){var a,i,s=Ng(),c=Pg(),u=s.data,l=s.isLoading||!s.isFetched,p=null!==(i=null===(a=null==u?void 0:u.settings)||void 0===a?void 0:a.viewedTutorials)&&void 0!==i?i:[],h="onboarding-".concat(null!=n?n:"default","-").concat(r,"-").concat(o),f=p.includes(h),m=d(function(){if(!f){var n=e(e([],p,!0),[h],!1);Um.setQueryData(["fetch-profile"],function(e){var r;return e?t(t({},e),{settings:t(t({},null!==(r=e.settings)&&void 0!==r?r:{}),{viewedTutorials:n})}):e}),c.mutate({payload:{viewedTutorials:n}})}},[f,h,c,p]);return{hasSeenOnboarding:f,dismiss:m,id:h,isProfileLoading:l}}function $g(){return Vf(function(e){var t=e.password,n=e.otp;return jh.getInstance().getMfaTokenValidation(t,n).then(function(e){return null==e?void 0:e.data})})}function Qg(){return Vf(function(){return jh.getInstance().getEmailOtp().then(function(e){return null==e?void 0:e.data})})}function Yg(){return Vf(function(e){return jh.getInstance().confirmMfaOtp(e).then(function(e){return null==e?void 0:e.data})})}function Jg(){return Vf(function(e){return jh.getInstance().unrollMfa(e).then(function(e){return null==e?void 0:e.data})})}function Zg(){return Vf(function(){return jh.getInstance().validatePasswordStatus().then(function(e){return null==e?void 0:e.data}).catch(function(e){return{valid:!1}})})}function Xg(){return Vf(["post-get-allowlist-items"],function(e){var t=e.payload;return jh.getInstance().postAllowlistItems({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function ey(){return Vf(["post-get-allowlist-multi-account"],function(e){var t=e.payload;return jh.getInstance().postGetAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function ty(){return Vf(["post-create-allowlist-multi-account"],function(e){var t=e.payload;return jh.getInstance().postCreateAllowlistMultiAccount({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function ny(){return Vf(["patch-change-status-allowlist"],function(e){var t=e.payload;return jh.getInstance().patchChangeStatusAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function ry(){return Vf(["patch-change-status-allowlist-item"],function(e){var t=e.payload;return jh.getInstance().patchChangeStatusAllowlistItem({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function oy(){return Vf(["post-add-allowlist-items"],function(e){var t=e.payload;return jh.getInstance().patchAddAllowlistItems({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function ay(){return Vf(["patch-allowlist"],function(e){var t=e.payload;return jh.getInstance().patchAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function iy(){return Vf(["post-blacklist-multi-account"],function(e){var t=e.payload;return jh.getInstance().postBlackListMultiAccount({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function sy(){return Vf(["put-blacklist"],function(e){return jh.getInstance().putBlackListType(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function cy(){return Vf(["change-blacklist"],function(e){return jh.getInstance().changeBlackListStatus(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function uy(){return Vf(["change-blacklist-item"],function(e){return jh.getInstance().changeBlackListStatusItem(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function ly(){return Vf(["post-blacklist-items"],function(e){var t=e.payload;return jh.getInstance().postBlackListItems({payload:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function dy(){return Vf(["delete-blacklist"],function(e){var t=e.black_list_code;return jh.getInstance().deleteBlackListType({black_list_code:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function py(e){var t=e.handleSetProgress;return Vf(["post-blacklist-batch"],function(e){var n=e.blacklist_code,r=e.expiration_days,o=e.file;return jh.getInstance().postBlackListBatch({blacklist_code:n,expiration_days:r,file:o,handleSetProgress:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function hy(){return Vf(["change-payments-webhook"],function(e){var t=e.status,n=e.paymentCode;return jh.getInstance().postChangePaymentsWebhook({status:t,paymentCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function fy(){return Vf(["delete-blacklist-items"],function(e){var t=e.blocklist_code,n=e.blocklist_item_id,r=e.account_code;return jh.getInstance().deleteBlockListItem({blocklist_code:t,blocklist_item_id:n,account_code:r}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function my(){return Vf(["valiate-blacklist-items"],function(e){return jh.getInstance().valiateBlockListItems({payload:e}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function gy(){return Vf(["delete-allowlist-item"],function(e){return jh.getInstance().deleteAllowlistItem({payload:e}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function yy(){return Vf(["validate-allowlist-items"],function(e){return jh.getInstance().validateAllowlistItems({payload:e}).then(function(e){return e.data}).catch(function(e){return e})})}function vy(e){var t=e.fileName,n=e.onSuccess,r=e.onError,o=c(0),a=o[0],i=o[1],s=l({cancel:function(){return null}}),u=Vf(["upload-file-chargeback",t],function(e){var t=jh.getInstance().uploadFileS3ClientBatchRefunds({payload:e,handleSetProgress:i}),o=t.promise,a=t.cancel;return s.current.cancel=a,o.then(function(e){return null==n||n(null==e?void 0:e.data),null==e?void 0:e.data}).catch(function(e){throw null==r||r(),e})},{useErrorBoundary:!1});return{mutation:u,cancelRequest:s.current.cancel,progress:a}}function by(){return Vf(function(e){return jh.getInstance().uploadBatchRefundsV2({payload:e}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function ky(){var e=this;return Vf(function(t){return n(e,void 0,void 0,function(){return r(this,function(e){return[2,jh.getInstance().batchRefundByFile({payload:t}).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})}function _y(){var e=this;return Vf(function(t){var o=t.batchRefundId,a=t.organizationCode,i=t.accountCode;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,jh.getInstance().getBatchRefundProcessedFileDownload(o,a,i).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})}function wy(){var e=this;return Vf(function(t){var o=t.batchRefundId,a=t.organizationCode,i=t.accountCode;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,jh.getInstance().getBatchRefundUserFileDownload(o,a,i).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})}function Ey(){var e=l({cancel:function(){return null}}),t=Vf(["upload-file"],function(t){var n=jh.getInstance().uploadFileS3ClientBatchRefunds({payload:t}),r=n.promise,o=n.cancel;return e.current.cancel=o,r.then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})});return{mutation:t,cancelRequest:e.current.cancel}}function xy(){return Vf(function(e){var t=e.payload,n=e.organizationCode;return jh.getInstance().updateMFAConfig(t,n)})}function Sy(){return Vf(function(e){var t=e.payload,n=e.organizationCode;return jh.getInstance().mfaExcludeUsers(t,n)})}function Cy(e){return Hf(["GET/scheduled-reports",e],function(){return jh.getInstance().getScheduledReport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function Iy(){return Vf(function(e){var t=e.payload;return jh.getInstance().postScheduledReport(t).then(function(e){return{data:e.data,status:e.status}}).catch(function(e){return e})})}function Ry(){return Vf(function(e){var t=e.reportCode,n=e.payload;return jh.getInstance().updateScheduledReport(t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Ty(){return Vf(function(e){return jh.getInstance().deleteScheduledReport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Ay(){return Vf(function(e){return jh.getInstance().getConditionalConfigRules(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Oy(){return Vf(function(e){return jh.getInstance().getRule(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Py(){return Vf(function(e){var t=e.payload,n=e.accountCode;return jh.getInstance().postCreateRuleMultiAccount(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Dy(){return Vf(function(e){var t=e.payload,n=e.ruleId,r=e.accountCode;return jh.getInstance().postEditRule(t,n,r).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Ly(){return Vf(function(e){var t=e.payload;return jh.getInstance().postCreateCustomizedApiKeys(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function jy(){return Vf(function(e){var t=e.payload,n=e.code;return jh.getInstance().pathCreateCustomizedApiKeys(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Ny(){return Vf(function(e){var t=e.code,n=e.password,r=e.otp,o=e.mfaToken;return jh.getInstance().getCustomizedApiKeysToken(t,n,r,o).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})}function zy(){return Vf(function(e){var t=e.passwordOtp;return jh.getInstance().getDeveloperCredentialsValidatePassword(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})}function qy(){return Vf(function(e){var t=e.password;return jh.getInstance().getDeveloperCredentialsValidatePasswordRegularUser(t).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function Uy(){return Vf(function(e){var t=e.code;return jh.getInstance().deleteCustomizedApiKeys(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function My(){return Vf(function(e){var t=e.payload,n=e.code,r=e.password;return jh.getInstance().patchApiKeysEditNote(t,n,r).then(function(e){return e.data}).catch(function(e){return e})})}function By(){return Vf(function(e){var t=e.payload,n=e.code,r=e.password;return jh.getInstance().postApiKeysRoll(t,n,r).then(function(e){return e.data}).catch(function(e){return e})})}function Fy(){return Vf(function(e){var n=e.password,r=e.accountCode,o=e.otp,a=e.mfaToken;return jh.getInstance().getDeveloperCredentials(n,r,o,a).then(function(e){return t(t({},null==e?void 0:e.data),{isValid:!0})}).catch(function(e){var t,n,r;return{isValid:!1,status:null===(t=e.response)||void 0===t?void 0:t.status,error:null===(r=null===(n=null==e?void 0:e.response)||void 0===n?void 0:n.data)||void 0===r?void 0:r.data}})})}function Gy(){return Vf(function(e){var t=e.password,n=e.accountCode,r=e.otp,o=e.mfaToken;return jh.getInstance().getDeveloperCredentials(t,n,r,o).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})}function Wy(){return Vf(function(){return jh.getInstance().getOrganizationKeysMetadata().then(function(e){return(null==e?void 0:e.data)||null})})}function Hy(){return Vf(function(e){var t=e.note,n=e.password;return jh.getInstance().patchOrganizationKeysNote({note:t},n).then(function(e){return(null==e?void 0:e.data)||null})})}function Vy(){return Vf(function(e){var t=e.password,n=e.otp,r=e.mfaToken;return jh.getInstance().postOrganizationKeysRoll(t,n,r).then(function(e){return(null==e?void 0:e.data)||null})})}function Ky(){return Vf(function(e){var t=e.password,n=e.otp,r=e.mfaToken;return jh.getInstance().postOrganizationKeysTamRequest(t,n,r).then(function(e){return(null==e?void 0:e.data)||null})})}function $y(){return Vf(function(e){var t=e.password,n=e.otp,r=e.mfaToken;return jh.getInstance().postOrganizationKeysMarkRevealed(t,n,r).then(function(e){return(null==e?void 0:e.data)||null})})}function Qy(e){return Vf(function(e){var t=e.payload;return jh.getInstance().postAuditMonitors(t)},{onMutate:e.onMutate})}function Yy(){return Vf(function(e){var t=e.codes;return jh.getInstance().postResendWebhooks({codes:t}).then(function(e){return null==e?void 0:e.data})})}function Jy(){return Vf(function(e){var t=e.tab,n=e.payload;return jh.getInstance().postUnifiedExport(t,n).then(function(e){return null==e?void 0:e.data})})}function Zy(){return Vf(function(e){return jh.getInstance().postExportApiLogs(e).then(function(e){return null==e?void 0:e.data})})}function Xy(){return Vf(function(e){return jh.getInstance().postExportWebhooksLogs(e).then(function(e){return null==e?void 0:e.data})})}function ev(){return Vf(function(e){return jh.getInstance().postExportDashboardLogs(e).then(function(e){return null==e?void 0:e.data})})}function tv(){return Vf(function(e){return jh.getInstance().postExportMonitorsLogs(e).then(function(e){return null==e?void 0:e.data})})}function nv(t){var o=this;return Vf(function(){return jh.getInstance().createReconciliationReportTemplate(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{onMutate:function(t){return n(o,void 0,void 0,function(){var n,o;return r(this,function(r){switch(r.label){case 0:return[4,Um.cancelQueries({queryKey:["GET/reconciliation/reports/templates"]})];case 1:return r.sent(),n=null===(o=Um.getQueryData(["GET/reconciliation/reports/templates"]))||void 0===o?void 0:o.templates,Um.setQueryData(["GET/reconciliation/reports/templates"],function(n){return{templates:e(e([],n.templates,!0),[t],!1)}}),[2,{previousTemplates:n}]}})})},onError:function(e,t,n){Um.setQueryData(["GET/reconciliation/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){Um.invalidateQueries({queryKey:["GET/reconciliation/reports/templates"]})},useErrorBoundary:!1})}function rv(e){return Vf(function(){return jh.getInstance().updateReconciliationReportTemplate(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{useErrorBoundary:!1})}function ov(){return Vf(["POST/reconciliation/alerts"],function(e){return jh.getInstance().postReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Um.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function av(){return Vf(["DELETE/reconciliation/alerts"],function(e){return jh.getInstance().deleteReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Um.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function iv(){return Vf(["UPDATE/reconciliation/alerts"],function(e){return jh.getInstance().updateReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Um.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function sv(){return Vf(function(e){var t=e.payload;return jh.getInstance().postCreateInsightsReport(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function cv(){return Vf(function(e){return jh.getInstance().createSamlConfig(e)})}function uv(){return Vf(function(e){return jh.getInstance().updateSamlConfig(e)})}function lv(){return Vf(function(){return jh.getInstance().deleteSamlConfig()})}function dv(e,n){return void 0===n&&(n={}),Vf(function(t){return jh.getInstance().generateAIWorkflowRoutes(e,t).then(function(e){return null==e?void 0:e.data})},t(t({},n),{useErrorBoundary:!1}))}function pv(e){return void 0===e&&(e={}),Vf(function(e){return jh.getInstance().postAIGenerationFeedback(e).then(function(e){return null==e?void 0:e.data})},t(t({},e),{useErrorBoundary:!1}))}function hv(){return Vf(function(e){return jh.getInstance().createChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function fv(){return Vf(function(e){return jh.getInstance().deleteChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function mv(){return Vf(function(e){var t=e.chart_id,n=e.type,r=e.name,o=e.user_prompt,a=void 0===o?"":o;return jh.getInstance().patchChartGPTChart(t,{type:n,name:r,user_prompt:a}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function gv(){var e=this;return Vf(function(t){return n(e,void 0,void 0,function(){var e,n,o,a,i;return r(this,function(r){switch(r.label){case 0:return[4,jh.getInstance().createChartGPTChart(t)];case 1:if(e=r.sent(),!(n=null!==(a=null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.chartgpt_id)&&void 0!==a?a:null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.chart_id))throw new Error("Failed to create chart: No chart ID returned");return[2,{chart_id:n}]}})})},{useErrorBoundary:!1})}function yv(){return Vf(function(e){return jh.getInstance().createChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function vv(){var e=this;return Vf(function(t){return n(e,void 0,void 0,function(){var e,n,o,a,i;return r(this,function(r){switch(r.label){case 0:return[4,jh.getInstance().createChartGPTChart(t)];case 1:if(e=r.sent(),!(n=null!==(a=null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.chartgpt_id)&&void 0!==a?a:null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.chart_id))throw new Error("Failed to create chart: No chart ID returned");return[2,{chart_id:n}]}})})},{useErrorBoundary:!1})}function bv(e,t){var n=e.chartCode,r=Uf();return Vf(function(e){return jh.getInstance().submitChartFeedback(n,{rating:e.rating,issues:e.issues||[],comment:e.comment}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(e){var o;r.invalidateQueries(["chart-feedback",n]),null===(o=null==t?void 0:t.onSuccess)||void 0===o||o.call(t,e)},onError:function(e){var n;null===(n=null==t?void 0:t.onError)||void 0===n||n.call(t,e)}})}function kv(){var e=this;return Vf(["POST/template-reporting/report-templates"],function(t){return n(e,void 0,void 0,function(){return r(this,function(e){return[2,jh.getInstance().createTemplateReporting(t).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Um.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function _v(){var e=this;return Vf(["POST/template-reporting/report-templates/clone"],function(t){var o=t.templateId,a=t.payload;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,jh.getInstance().cloneReportTemplate(o,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Um.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function wv(){var e=this;return Vf(["PATCH/template-reporting/report-templates/selection"],function(t){var o=t.templateId,a=t.payload;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,jh.getInstance().updateTemplateSelection(o,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Um.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function Ev(){var e=this;return Vf(["PATCH/template-reporting/report-templates/status"],function(t){var o=t.templateId,a=t.payload;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,jh.getInstance().changeTemplateStatus(o,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Um.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function xv(){var e=this;return Vf(["DELETE/template-reporting/report-templates"],function(t){var o=t.templateId,a=t.payload;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,jh.getInstance().deleteReportTemplate(o,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Um.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function Sv(){var e=this;return Vf(["POST/template-reporting/report-schedules"],function(t){return n(e,void 0,void 0,function(){return r(this,function(e){return[2,jh.getInstance().createReportSchedule(t).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Um.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})}function Cv(){var e=this;return Vf(["PATCH/template-reporting/report-schedules/disable"],function(t){var o=t.scheduleId,a=t.payload;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,jh.getInstance().disableReportSchedule(o,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Um.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})}function Iv(){var e=this;return Vf(["DELETE/template-reporting/report-schedules"],function(t){var o=t.scheduleId,a=t.payload;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,jh.getInstance().deleteReportSchedule(o,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Um.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})}function Rv(){return Vf(function(e){return jh.getInstance().postOrganizationConfigs(e)})}function Tv(){return Vf(function(e){return jh.getInstance().putOrganizationConfigsByAccount(e)})}function Av(){return Vf(["create-installments-plan"],function(e){var t=e.payload;return jh.getInstance().createInstallmentsPlan(t).then(function(e){return null==e?void 0:e.data})})}function Ov(){return Vf(["update-installments-plan"],function(e){var t=e.code,n=e.payload;return jh.getInstance().updateInstallmentsPlan(t,n).then(function(e){return null==e?void 0:e.data})})}function Pv(){return Vf(["delete-installments-plan"],function(e){var t=e.code;return jh.getInstance().deleteInstallmentsPlan(t).then(function(e){return null==e?void 0:e.data})})}function Dv(){return Vf(["bulk-create-installments-plans"],function(e){var t=e.payload;return jh.getInstance().bulkCreateInstallmentsPlans(t).then(function(e){return null==e?void 0:e.data})})}function Lv(){return Vf(["bulk-delete-installments-plans"],function(e){var t=e.payload;return jh.getInstance().bulkDeleteInstallmentsPlans(t).then(function(e){return null==e?void 0:e.data})})}function jv(){var e=Uf();return Vf(["create-recipient"],function(e){var t=e.organizationCode,n=e.payload;return jh.getInstance().createRecipient(t,n).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})}function Nv(){var e=Uf();return Vf(["update-recipient"],function(e){var t=e.organizationCode,n=e.recipientId,r=e.payload;return jh.getInstance().updateRecipient(t,n,r).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})}function zv(){var e=Uf();return Vf(["delete-recipient"],function(e){var t=e.organizationCode,n=e.recipientId;return jh.getInstance().deleteRecipient(t,n).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})}function qv(){var e=Uf();return Vf(["create-onboarding"],function(e){var t=e.organizationCode,n=e.recipientId,r=e.payload;return jh.getInstance().createOnboarding(t,n,r).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})}function Uv(){var e=Uf();return Vf(["update-onboarding"],function(e){var t=e.organizationCode,n=e.recipientId,r=e.onboardingId,o=e.payload;return jh.getInstance().updateOnboarding(t,n,r,o).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})}function Mv(){var e=Uf();return Vf(["block-onboarding"],function(e){var t=e.organizationCode,n=e.recipientId,r=e.onboardingId;return jh.getInstance().blockOnboarding(t,n,r).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})}function Bv(){var e=Uf();return Vf(["unblock-onboarding"],function(e){var t=e.organizationCode,n=e.recipientId,r=e.onboardingId;return jh.getInstance().unblockOnboarding(t,n,r).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})}var Fv="GET/concierge/alerts",Gv="GET/concierge/alerts/by-id";function Wv(){return Hf([Fv],function(){return jh.getInstance().getConciergeAlerts().then(function(e){return e.data})},{useErrorBoundary:!1})}function Hv(e){return Hf([Gv,e],function(){return jh.getInstance().getConciergeAlertById(e).then(function(e){return e.data})},{enabled:!!e,useErrorBoundary:!1})}function Vv(){return Vf(["POST/concierge/alerts"],function(e){return jh.getInstance().createConciergeAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Um.invalidateQueries([Fv]),Um.invalidateQueries([Gv])},useErrorBoundary:!1})}function Kv(){return Vf(["DELETE/concierge/alerts"],function(e){return jh.getInstance().deleteConciergeAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Um.invalidateQueries([Fv]),Um.invalidateQueries([Gv])},useErrorBoundary:!1})}function $v(){return Vf(["POST/concierge/alerts/enable"],function(e){var t=e.alertId,n=e.payload;return jh.getInstance().enableConciergeAlert(t,n).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Um.invalidateQueries([Fv]),Um.invalidateQueries([Gv])},useErrorBoundary:!1})}var Qv;function Yv(e){var t=this;return Hf(["fetch-payments-lazy",e],function(){return n(t,void 0,void 0,function(){return r(this,function(t){return[2,jh.getInstance().postPaymentsLazy(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function Jv(e){return Hf(["fetch-payments-evaluated",e],function(){return jh.getInstance().postPaymentsEvaluated(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function Zv(e){var t=this,o=e.paymentCode,a=e.enabled,i=void 0===a||a,s=jh.getInstance();return Hf(["get-payment-v2",o],function(){return n(t,void 0,void 0,function(){return r(this,function(e){return[2,s.getPaymentV2(o).then(function(e){return e.data})]})})},{enabled:i,cacheTime:500,useErrorBoundary:!1})}function Xv(e){var t=this,o=e.payment_code,a=e.enabled,i=void 0===a||a,s=jh.getInstance();return Hf(["get-payment-transaction-details-v2",o],function(){return n(t,void 0,void 0,function(){return r(this,function(e){return[2,s.getTransactionDetailsV2({payment_code:o}).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!o&&i,cacheTime:0,useErrorBoundary:!1})}function eb(e){var t=this,o=e.transaction_code,a=e.enabled,i=void 0===a||a,s=jh.getInstance();return Hf(["get-payment-transaction-raw-response",o],function(){return n(t,void 0,void 0,function(){return r(this,function(e){return[2,s.getTransactionRawResponse({transaction_code:o})]})})},{enabled:!!o&&i,cacheTime:0,useErrorBoundary:!1})}function tb(e){var t=Am();return Hf(["payment-methods",e],function(){return jh.getInstance().getPaymentMethodsByCountry({provider_id:null==e?void 0:e.provider_id,country:null==e?void 0:e.country},t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!(null==e?void 0:e.provider_id),useErrorBoundary:!1})}function nb(){return Hf({queryKey:["/payment-methods/providers"],queryFn:function(){return jh.getInstance().getPaymentMethodsAndProviders().then(function(e){return null==e?void 0:e.data})},cacheTime:864e5,useErrorBoundary:!1})}function rb(){return Hf(["GET/catalog/card-brands"],function(){return jh.getInstance().getCardBrands().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function ob(e,t){return void 0===e&&(e=!0),void 0===t&&(t=xd.PAYMENTS),Hf(["payment-filters",e,t],function(){return jh.getInstance().getPaymentFilters(t).then(function(e){return null==e?void 0:e.data})},{enabled:e,useErrorBoundary:!1,cacheTime:3e5})}function ab(){return Hf(["payment-metrics-filters"],function(){return jh.getInstance().getPaymentMetricsFilters().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function ib(e){var t=e.transaction_code,n=e.enabled;return Hf(["payment-transaction-details",t],function(){return jh.getInstance().getPaymentTransactionsDetails({transaction_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function sb(e){var t=e.payment_code,n=e.enabled;return Hf(["transaction-history",t],function(){return jh.getInstance().getTransactionHistoryByPaymentCode({payment_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function cb(e){var t=this;return Hf(["POST/transactions",JSON.stringify(e)],function(){return n(t,void 0,void 0,function(){return r(this,function(t){return[2,jh.getInstance().postTransactions(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e,cacheTime:0,useErrorBoundary:!1})}function ub(e){var t=this;return Hf(["POST/fraud-transactions",JSON.stringify(e)],function(){return n(t,void 0,void 0,function(){return r(this,function(t){return[2,jh.getInstance().postFraudTransactions(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function lb(e){return Hf(["GET/payout-detail",JSON.stringify(e)],function(){var t=jh.getInstance();return e.organization_code?t.getPayoutDetails(e).then(function(e){return null==e?void 0:e.data}):{}},{enabled:!!e.organization_code&&!!e&&e.enabled,cacheTime:0,useErrorBoundary:!1})}function db(e){return Hf(["GET/payout-transaction-detail",JSON.stringify(e)],function(){return jh.getInstance().getPayoutTransactionDetails(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!(null==e?void 0:e.transaction_code)&&(null==e?void 0:e.enabled),cacheTime:0,useErrorBoundary:!1})}function pb(e){var t=Am();return Hf(["GET/payout-history-detail",JSON.stringify(e)],function(){return jh.getInstance().getPayoutHistoryDetails(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.payout_code)&&e.enabled,cacheTime:0,useErrorBoundary:!1})}function hb(e,t){var o=this,a=Am();return Hf(["GET/useGetProofOfCancel",a,e,t],function(){return n(o,void 0,void 0,function(){return r(this,function(n){return[2,jh.getInstance().getProofOfCancel(e,a,t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!a&&!!t,cacheTime:0,useErrorBoundary:!1})}function fb(e,t){var o=this,a=Am();return Hf(["GET/useGetProofOfPayment",a,e,t],function(){return n(o,void 0,void 0,function(){return r(this,function(n){return[2,jh.getInstance().getProofOfPayment(e,a,t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!a&&!!t,cacheTime:0,useErrorBoundary:!1})}function mb(e,t,o){var a=this,i=jh.getInstance();return Hf(["send-payment-notification",e,t],function(){return n(a,void 0,void 0,function(){var n,a;return r(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,i.sendPaymentNotification(e,t)];case 1:return n=r.sent(),o.onSuccess(),[2,n.data];case 2:throw a=r.sent(),o.onError(),a;case 3:return[2]}})})},{enabled:o.enabled,cacheTime:0,useErrorBoundary:!1})}function gb(e){return Hf(["usePayoutsList",e&&JSON.stringify(e)],function(){var t=jh.getInstance();if(e)return t.postPayouts(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&!!Object.values(e).length,cacheTime:0})}function yb(e){var t=this;void 0===e&&(e=!0);var o=Am();return Hf(["getPayoutsFilters",o],function(){return n(t,void 0,void 0,function(){return r(this,function(e){return[2,jh.getInstance().getPayoutsFilters(o).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})]})})},{enabled:e&&!!o})}function vb(e,t){var o=this;void 0===t&&(t=!0);var a=Am();return Hf(["getPayoutTimeline",e,a],function(){return n(o,void 0,void 0,function(){var t;return r(this,function(n){return t=jh.getInstance(),e?[2,t.getPayoutTimeline(e,a).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})]:[2]})})},{enabled:t&&!!e&&!!a,cacheTime:500,useErrorBoundary:!1})}function bb(e){var n=e.password,r=e.accountCode,o=e.otp,a=e.mfaToken;return Hf(["developers"],function(){return jh.getInstance().getDeveloperCredentials(n,r,o,a).then(function(e){return t(t({},null==e?void 0:e.data),{isValid:!0})}).catch(function(e){var t,n;return{isValid:!1,status:e.response.status,error:null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.data}})},{enabled:!1,cacheTime:0})}function kb(){return Hf(["fetch-customized-api-keys-members"],function(){return jh.getInstance().getCustomizedApiKeysMembers().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})}function _b(){return Hf(["developers-get-allowed-ips"],function(){return jh.getInstance().getAllowedIps().then(function(e){return(null==e?void 0:e.data)?t(t({},null==e?void 0:e.data),{isError:!1}):null}).catch(function(e){return t(t({},e),{isError:!0})})},{enabled:!1,cacheTime:0})}function wb(){return Hf(["fetch-customized-api-keys-accounts"],function(){return jh.getInstance().getCustomizedApiKeysAccounts().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})}function Eb(e){return Hf(["fetch-customized-api-keys",e],function(){return jh.getInstance().postCustomizedApiKeys(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{cacheTime:0,enabled:!!(null==e?void 0:e.length)})}function xb(){return Hf(["fetch-customized-api-keys-products"],function(){return jh.getInstance().getCustomizedApiKeysProducts().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{cacheTime:0})}function Sb(){return Vf(["developers-patch-allowed-ips"],function(e){return jh.getInstance().patchAllowedIps(e).then(function(e){return(null==e?void 0:e.data)?t(t({},null==e?void 0:e.data),{isError:!1}):null}).catch(function(e){return t(t({},e),{isError:!0})})},{cacheTime:0})}function Cb(){return Hf(["fetch-organizations"],function(){return jh.getInstance().getOrganization().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})}function Ib(){return Hf(["fetch-all-organizations",Am()],function(){return jh.getInstance().getAllOrganization().then(function(e){return(null==e?void 0:e.data)||[]})},{cacheTime:36e5,keepPreviousData:!0,useErrorBoundary:!1})}function Rb(e){var t=Am();return Hf(["organizations-provider-params",e],function(e){var n=e.queryKey;return jh.getInstance().getProviderParams(n[1],t).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.id),useErrorBoundary:!1})}function Tb(e){var t=e.integration_code,n=e.enabled,r=e.accountCode;return Hf(["integration-params",t,r],function(){return t.includes("undefined")?{}:jh.getInstance().getIntegrationParams({accountCode:r,integration_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:n,useErrorBoundary:!1})}function Ab(e){var t=e.accountCode,n=e.organizationCode,r=Am();return Hf(["organizations-account-integrations",t,n],function(){return jh.getInstance().getIntegrationByAccountV2({accountCode:t,organizationCode:n||r}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,enabled:!!t,useErrorBoundary:!1})}function Ob(e){var t=e.accountCode,n=e.paymentMethod,r=e.basePath,o=void 0===r?Ad.DEFAULT_ROUTING_TYPE:r;return Hf(["fetch-connections-by-payment-method",n,t,o],function(){return jh.getInstance().getConnectionsByPaymentMethod(t,n,o).then(function(e){return null==e?void 0:e.data})},{enabled:!!n&&!!t,cacheTime:0,useErrorBoundary:!1})}function Pb(){var e=this;return Hf(["fetch-hash-pylon"],function(){return n(e,void 0,void 0,function(){return r(this,function(e){return[2,jh.getInstance().getHashPylon()]})})},{keepPreviousData:!0,useErrorBoundary:!1})}function Db(){return Hf(["connections"],function(){return jh.getInstance().getConnections().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function Lb(){return Hf(["dialogs"],function(){return jh.getInstance().getDialogs().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,retryDelay:2e3,cacheTime:36e5})}function jb(){return Hf(["params-catalog"],function(){return jh.getInstance().getWebhookParamsV2().then(function(e){return null==e?void 0:e.data})})}function Nb(e){var t=e.accountCode,n=e.name;return Hf(["webhooks",t,n],function(){return jh.getInstance().getWebhooksV3({accountCode:t,name:n}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t,useErrorBoundary:!1})}function zb(e){var t=e.accountCode,n=e.enabled;return Hf(["webhooks-detail",t],function(){return jh.getInstance().getWebhooksV2Detail({accountCode:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!n})}function qb(e){var t,n=Am(),r=null!==(t=null!=e?e:n)&&void 0!==t?t:null;return Hf({queryKey:["accounts",r],queryFn:function(){return jh.getInstance().getAccounts(r).then(function(e){return null==e?void 0:e.data})},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!r})}function Ub(e){return Hf(["accountsV2",e],function(){return jh.getInstance().getAccountsV2().then(function(e){return(null==e?void 0:e.data)||[]}).catch(function(e){throw e})},{keepPreviousData:!0,enabled:!!e,useErrorBoundary:!1})}function Mb(e){return Hf(["accountsV2-by-user",e],function(){return e?jh.getInstance().getAccountsByUser(e).then(function(e){return{accountsV2ByUser:(null==e?void 0:e.data)||null}}).catch(function(e){return{accountsV2ByUser:[],error:e}}):{accountsV2ByUser:[]}},{enabled:!!e,staleTime:0})}function Bb(e,t){var o=this;return Hf({queryKey:["accounts-for-impersonation",e,t],queryFn:function(){return n(o,void 0,void 0,function(){return r(this,function(n){return[2,jh.getInstance().getAccountsForImpersonation(e).then(function(e){var n,r;return(null===(r=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.response)||void 0===r?void 0:r.map(function(e){return{label:e.name,value:t?e.code_testing:e.code_live,code_live:e.code_live,code_testing:e.code_testing}}))||[]})]})})},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function Fb(e){var t=this;return Hf({queryKey:["roles-for-impersonation",e],queryFn:function(){return n(t,void 0,void 0,function(){return r(this,function(t){return[2,jh.getInstance().getRolesForImpersonation(e).then(function(e){var t,n;return(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.roles)||void 0===n?void 0:n.map(function(e){return{label:e.name,value:e.id}}))||[]})]})})},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function Gb(e){return Hf({queryKey:["pending-duplicate-accounts",e],queryFn:function(){return jh.getInstance().getPendingDuplicateAccounts()},useErrorBoundary:!1,keepPreviousData:!0,refetchInterval:e})}function Wb(){return Hf(["menu"],function(){return jh.getInstance().getMenu().then(function(e){return mh(e)?wh:null==e?void 0:e.data}).catch(function(){return wh})})}function Hb(){return Hf(["/payment/statuses/style"],function(){return jh.getInstance().useGetPaymentStatusesStyles().then(function(e){return mh(e)?gh:null==e?void 0:e.data}).catch(function(){return gh})})}function Vb(){return Hf(["/transaction/statuses/style"],function(){return jh.getInstance().useGetTransactionStatusesStyles().then(function(e){return mh(e)?yh:null==e?void 0:e.data}).catch(function(){return yh})},{cacheTime:36e5,useErrorBoundary:!1})}function Kb(){return Hf(["/reconciliation/transaction/statuses/style"],function(){return jh.getInstance().useGetReconciliationTransactionStatusesStyles().then(function(e){return mh(e)?vh:null==e?void 0:e.data}).catch(function(){return vh})},{useErrorBoundary:!1})}function $b(){return Hf(["timezone-catalog"],function(){return jh.getInstance().useGetTimeZoneCatalog().then(function(e){return mh(e)?bh:null==e?void 0:e.data}).catch(function(){return bh})})}function Qb(){return Hf(["/cms/audit-logs-filters"],function(){return jh.getInstance().useGetAuditLogsFilters().then(function(e){return mh(e)?kh:null==e?void 0:e.data}).catch(function(){return kh})})}function Yb(){return Hf(["/cms/static-contents"],function(){return jh.getInstance().getDashboardStaticContents().then(function(e){var t,n;return mh(e)?_h:(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t[0])||void 0===n?void 0:n.data)||{}})},{cacheTime:6048e5,useErrorBoundary:!1})}function Jb(){return Hf(["/cms/locales"],function(){return jh.getInstance().getLocales().then(function(e){return mh(e)?Eh:e.data}).catch(function(){return Eh})})}function Zb(e,t){return void 0===t&&(t=Ad.DEFAULT_ROUTING_TYPE),Hf(["smart-routing-methods",e,t],function(){return jh.getInstance().getSmartRoutingMethods(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function Xb(e,t,n){return void 0===n&&(n=Ad.DEFAULT_ROUTING_TYPE),Hf(["smart-routing-workflow",t,e,n],function(){return jh.getInstance().getSmartRoutingWorkflow(e,t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!e,cacheTime:0,retry:!1})}function ek(e,t,n){return void 0===n&&(n=Ad.DEFAULT_ROUTING_TYPE),Hf(["smart-routing-condition-types",e,t,n],function(){return jh.getInstance().getSmartRoutingConditionTypes(e,t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!e})}function tk(e,t){return Hf(["smart-routing-condition-payment-method",e,t],function(){return jh.getInstance().getSmartRoutingConditionPaymentMethod(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:null!==t})}function nk(e,t){return Hf(["smart-routing-condition-types-values",t,e],function(){return jh.getInstance().getSmartRoutingConditionTypesValues(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&!!e,useErrorBoundary:!1})}function rk(e){var t=e.accountCode,n=e.workflowVersionId,r=e.routingType,o=void 0===r?Ad.DEFAULT_ROUTING_TYPE:r;return Hf(["smart-routing-workflow-version",n,t,o],function(){return jh.getInstance().getSmartRoutingWorkflowVersion(t,n,o).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!n&&!!t,cacheTime:0})}function ok(e,t,n,r){return void 0===r&&(r=Ad.DEFAULT_ROUTING_TYPE),Hf(["smart-routing-next-route",e,n,t,r],function(){return jh.getInstance().getSmartRoutingNextSteps(e,t,n,r).then(function(e){return null==e?void 0:e.data})},{enabled:!!e,useErrorBoundary:!1})}function ak(e,t){return void 0===t&&(t=Ad.DEFAULT_ROUTING_TYPE),Hf(["smart-routing-decline-groups",e,t],function(){return jh.getInstance().getSmartRoutingDeclinedGroup(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function ik(e,t,n){return void 0===n&&(n=Ad.DEFAULT_ROUTING_TYPE),Hf(["smart-routing-payment-route",e,t,n],function(){return jh.getInstance().getSmartRoutingPaymentRoute(e,t,n).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!t,cacheTime:0,useErrorBoundary:!1})}function sk(e,t){return void 0===t&&(t=Ad.DEFAULT_ROUTING_TYPE),Hf(["smart-routing-simulate-condition-type-values",e,t],function(){return jh.getInstance().getSmartRoutingSimulateConditionTypeValues(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function ck(e){var t=e.text,n=e.conditionType;return Hf(["smart-routing-search-condition-values",t,n],function(){return jh.getInstance().getSmartRoutingSearchConditionValues(n,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!n&&!!t,cacheTime:0})}function uk(){return Hf(["smart-routing-conversion-rates"],function(){return jh.getInstance().getProviderConversionRatesData().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!1,useErrorBoundary:!1})}function lk(){var e=this;return Hf({queryKey:["smart-routing-3ds-excemptions"],queryFn:function(){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,jh.getInstance().get3DSExemptions()];case 1:return[2,e.sent().data]}})})},useErrorBoundary:!1})}function dk(){var e=this;return Hf({queryKey:["smart-routing-network-tokens-onboarding"],queryFn:function(){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,jh.getInstance().getNetworkTokensOnboarding()];case 1:return[2,e.sent().data]}})})},useErrorBoundary:!1})}function pk(e){return Hf(["fetch-routing-monitors-templates",e],function(){return jh.getInstance().getRoutingMonitorsTemplates(e).then(function(e){return e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function hk(e,t){return Hf(["fetch-routing-monitors-template",e],function(){return jh.getInstance().getRoutingMonitorsTemplate(e,t).then(function(e){return e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:!!e&&!!t&&"NONE"!==e,useErrorBoundary:!1})}function fk(e,n){var r=e.accountCode;return Hf(["checkouts",r],function(){return jh.getInstance().getCheckouts({accountCode:r}).then(function(e){return e.data})},t({cacheTime:0,enabled:Boolean(r),useErrorBoundary:!1},n))}!function(e){e.IN_PROGRESS="IN_PROGRESS",e.COMPLETED="COMPLETED",e.FAILED="FAILED"}(Qv||(Qv={}));var mk=function(e){return["checkout-builder-name-and-icon",e.paymentMethodType,e.type]},gk=function(e,t){var n=e.paymentMethodType,r=e.type;return Hf(mk({paymentMethodType:n,type:r}),function(){return jh.getInstance().getNameAndIcon({paymentMethodType:n,type:r}).then(function(e){return null==e?void 0:e.data})},t)},yk=function(e){return["checkout-builder-required-fields",e.paymentMethodType,e.type]},vk=function(e,t){var n=e.paymentMethodType,r=e.type;return Hf(yk({paymentMethodType:n,type:r}),function(){return jh.getInstance().getRequiredFields({paymentMethodType:n,type:r}).then(function(e){return null==e?void 0:e.data})},t)},bk=function(e){return Hf(["checkout-builder-country-data",e],function(){return jh.getInstance().getCountryData({accountCode:e}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,enabled:Boolean(e),useErrorBoundary:!1})},kk=function(e){return["checkout-payment-method-accounts",e.paymentMethod,e.organizationCode]},_k=function(e,n){var r=e.paymentMethod,o=e.organizationCode;return Hf(kk({paymentMethod:r,organizationCode:o}),function(){return jh.getInstance().getPaymentMethodAccounts({paymentMethod:r,organizationCode:o}).then(function(e){return null==e?void 0:e.data})},t({cacheTime:0,enabled:Boolean(r),useErrorBoundary:!1},n))};function wk(e){var t=e.accountCode;return Hf(["styling-sdk-dynamic",t],function(){return jh.getInstance().getStylingSdkDynamic({accountCode:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function Ek(e){var t=e.accountCode;return Hf(["styling-settings-v2",t],function(){return jh.getInstance().getStylingSettingsV2({accountCode:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function xk(){return Vf(function(e){var t=e.accountCode,n=e.payload;return jh.getInstance().changeStylingSettings({accountCode:t,payload:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function Sk(e){return Hf(["notifications-customer",e],function(){return jh.getInstance().getNotificationsCustomer(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,keepPreviousData:!1})}function Ck(e){return Hf(["validate-opsgenie-key",e],function(){return jh.getInstance().getValidateOpsgenieKey(e).then(function(e){return null==e?void 0:e.data}).catch(function(){return{error:!0}})},{enabled:!!e,cacheTime:0})}function Ik(){return Hf(["notifications-merged"],function(){return jh.getInstance().getMergedNotifications().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{keepPreviousData:!1,cacheTime:0})}function Rk(){return Vf(function(e){return jh.getInstance().getNotificationsNumber(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Tk(){var e=this;return Vf(function(t){return n(e,void 0,void 0,function(){var e;return r(this,function(n){switch(n.label){case 0:return[4,jh.getInstance().pathNotification(t)];case 1:return[2,null==(e=n.sent())?void 0:e.data]}})})})}var Ak={key:"metadata_fields",name:"metadata_fields",unique_key:"metadata_fields"};function Ok(){return Hf(["reports"],function(){return jh.getInstance().reportsList().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Pk(e){return void 0===e&&(e=!0),Hf(["reports-multi-env"],function(){return jh.getInstance().reportsListMultiEnv().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e})}function Dk(e,t,n){return void 0===t&&(t=!1),Hf(["reports/".concat(e)],function(){return jh.getInstance().downloadReports(e).then(function(e){return null==e?void 0:e.data})},{enabled:t,onSuccess:n,useErrorBoundary:!1})}function Lk(e){return Hf(["GET/reports/templates"],function(){return jh.getInstance().getReportTemplates().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e,useErrorBoundary:!1})}function jk(t,o,a){var i=this;return Hf(["GET/reports/columns/".concat(o,"/").concat(a)],function(){return n(i,void 0,void 0,function(){return r(this,function(t){return[2,jh.getInstance().getReportColumns(o,a).then(function(t){return o===Td.ALL&&a===Rd.PAYMENTS?e(e([],(null==t?void 0:t.data)||[],!0),[Ak],!1):null==t?void 0:t.data}).catch(function(e){return e})]})})},{enabled:t,useErrorBoundary:!1})}function Nk(e,t){var o=this,a=Am();return Hf(["getRefundPdf",e,a,t],function(){return n(o,void 0,void 0,function(){return r(this,function(n){return[2,jh.getInstance().getRefundPdf(e,a,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})]})})},{enabled:!!e&&!!a,useErrorBoundary:!1})}function zk(){var e=Am();return Hf(["teams-filters-members"],function(){return jh.getInstance().teamsFiltersMembers({organizationCode:e}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0})}function qk(e){var t=e.organizationCode,n=e.accountCodes,r=e.search,o=e.status,a=e.roleId,i=e.statuses,s=e.roleIds,c=e.page,u=e.pageSize,l=Am();return Hf(["fetch-post-members-v2",t,n,r,o,a,i,s,c,u],function(){return jh.getInstance().postMembersPaginatedV2({organizationCode:l,accountCodes:n,search:r,status:o,roleId:a,statuses:i,roleIds:s,page:c,pageSize:u}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&!!n,cacheTime:0,useErrorBoundary:!1})}function Uk(){return Hf(["fetch-roles"],function(){return jh.getInstance().getRoles().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Mk(){return Hf(["fetch-rolespermissions"],function(){return jh.getInstance().getRolesPermissions().then(function(e){return null==e?void 0:e.data})})}function Bk(){return Hf(["fetch-permissions-catalog"],function(){return jh.getInstance().getPermissionsCatalog().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function Fk(){return Hf(["fetch-org-roles-permissions"],function(){return jh.getInstance().getOrgRolesPermissions().then(function(e){return null==e?void 0:e.data})})}function Gk(){return Hf(["fetch-org-permissions-catalog"],function(){return jh.getInstance().getOrgPermissionsCatalog().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Wk(e){var t=e.exportCode,n=e.enabled;return Hf(["user-export-status",t],function(){return jh.getInstance().getUserExportStatus({exportCode:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&(void 0===n||n),refetchInterval:function(e){return("PENDING"===(null==e?void 0:e.status)||"IN_PROGRESS"===(null==e?void 0:e.status))&&5e3},useErrorBoundary:!1})}function Hk(e){var t=e.page,n=void 0===t?0:t,r=e.pageSize,o=void 0===r?20:r,a=e.enabled;return Hf(["user-exports-list",n,o],function(){return jh.getInstance().listUserExports({page:n,pageSize:o}).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===a||a,useErrorBoundary:!1})}function Vk(){var e=this,t=Uf();return function(o){return n(e,void 0,void 0,function(){return r(this,function(e){return[2,t.fetchQuery(["user-export-status",o],function(){return jh.getInstance().getUserExportStatus({exportCode:o}).then(function(e){return null==e?void 0:e.data})})]})})}}function Kk(e){return Hf(["data-report",e],function(){return jh.getInstance().getSmartRoutingDataReport(e).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,useErrorBoundary:!1})}function $k(e,t,n,r){void 0===n&&(n=!0);return Hf(["get-insights-conversion-rate-metrics-v2",e,t],function(){return jh.getInstance().getInsightsMetricsConversionRateV2(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:n&&(!!(null==e?void 0:e.currency_code)&&"Empty"!==(null==e?void 0:e.currency_code)&&"string"==typeof(null==e?void 0:e.currency_code)||Array.isArray(null==e?void 0:e.currency_code)&&0===(null==e?void 0:e.currency_code.length)),staleTime:200,cacheTime:200,useErrorBoundary:!1,retry:1})}function Qk(e,t){return Hf(["get-insights-conversion-rate-view-more-metrics",t,e],function(){return jh.getInstance().getInsightsMetricsConversionRateViewMore(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.enabled)&&!!t,cacheTime:200,useErrorBoundary:!1})}function Yk(e){return Hf(["get-insights-conversion-rate-fallback-metrics",e],function(){return jh.getInstance().getInsightFallbackMetrics(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.enabled),cacheTime:200,useErrorBoundary:!1})}function Jk(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Hf(["get-insights-volume-metrics",t,e],function(){return jh.getInstance().getInsightsMetricsVolume(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:200,useErrorBoundary:!1})}function Zk(e,t,n,r){return void 0===r&&(r=!0),delete t.account_code,Hf(["get-insights-volume-metrics-v2",t,e,n],function(){return jh.getInstance().getInsightsMetricsVolumeV2(e,n,t).then(function(e){return null==e?void 0:e.data})},{enabled:r,cacheTime:200,useErrorBoundary:!1})}function Xk(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Hf(["get-insights-total-payment-fraud-metrics",t,e],function(){return jh.getInstance().getInsightsMetricsTotalPaymentsAndFraud(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:200,useErrorBoundary:!1})}function e_(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Hf(["get-insights-customer-payment-fraud-metrics",t,e],function(){return jh.getInstance().getInsightsMetricsCustomerPaymentsAndFraud(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:200,useErrorBoundary:!1})}function t_(e){return Hf(["get-insights-overview",e],function(){return jh.getInstance().getInsightOverview(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.enabled)&&void 0!==e.account_code,cacheTime:200,useErrorBoundary:!1})}function n_(e,t){var n=!!(null==e?void 0:e.enabled)&&void 0!==(null==e?void 0:e.account_code);return Hf(["get-insights-overview-v3",e,t],function(){return jh.getInstance().getInsightOverviewV3(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:0,useErrorBoundary:!1})}function r_(e){return Hf(["get-insights-home-metrics",e],function(){return jh.getInstance().getInsighstHomeMetrics(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.currency_code)&&!!(null==e?void 0:e.account_codes)&&!!(null==e?void 0:e.organization_code)&&(null==e?void 0:e.isLiveMode)&&!!(null==e?void 0:e.timezone),cacheTime:200,useErrorBoundary:!1})}function o_(e){return Hf(["get-insights-reports",e],function(){return jh.getInstance().getInsightsReport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!(null==e?void 0:e.type),cacheTime:0,useErrorBoundary:!1})}function a_(e){return Hf(["get-insights-reports-again",e],function(){return jh.getInstance().getInsightsReportAgain(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!(null==e?void 0:e.code),cacheTime:0,useErrorBoundary:!1})}function i_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Hf({queryKey:["post-insights-fraud-screening-volume-and-count-tx",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,jh.getInstance().getInsightsFraudScreeningVolumeAndCountTx(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function s_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Hf({queryKey:["post-insights-fraud-screening-conversion-rate",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,jh.getInstance().getInsightsFraudScreeningConversionRate(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function c_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Hf({queryKey:["post-insights-3ds-volume-and-count-tx",t,e],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,jh.getInstance().getInsights3dsVolumeAndCountTx(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function u_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Hf({queryKey:["post-insights-3ds-conversion-rate-and-evolution",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,jh.getInstance().getInsights3dsConversionRateAndEvolution(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function l_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Hf({queryKey:["post-insights-3ds-decline-reasons",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,jh.getInstance().getInsights3dsDeclineReasons(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function d_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Hf({queryKey:["post-insights-3ds-frictionless-vs-challenge",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,jh.getInstance().getInsights3dsFrictionlessVsChallenge(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function p_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Hf({queryKey:["post-insights-chargebacks-volume-and-count-tx",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,jh.getInstance().getInsightsChargebacksVolumeAndCountTx(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function h_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Hf({queryKey:["post-insights-chargebacks-total-rate-and-evolution",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,jh.getInstance().getInsightsChargebacksTotalRateAndEvolution(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function f_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Hf({queryKey:["post-insights-chargebacks-win-rate",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,jh.getInstance().getInsightsChargebacksWinRate(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function m_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Hf({queryKey:["post-insights-chargebacks-disputed",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,jh.getInstance().getInsightsChargebacksDisputed(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function g_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Hf({queryKey:["post-insights-chargebacks-by-provider-and-card-brand",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,jh.getInstance().getInsightsChargebacksByProviderAndCardBrand(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function y_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Hf({queryKey:["post-insights-chargebacks-reasons-distribution",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,jh.getInstance().getInsightsChargebacksReasonsDistribution(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function v_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Hf({queryKey:["post-insights-chargebacks-status-distribution",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,jh.getInstance().getInsightsChargebacksStatusDistribution(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function b_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Hf({queryKey:["post-insights-chargebacks-by-card-brand",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,jh.getInstance().getInsightsChargebacksByCardBrand(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function k_(e,t){return Hf(["fetch-reconciliation-transaction",e],function(){return jh.getInstance().getReconciliationTransactions(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!!t,useErrorBoundary:!1})}function __(e,t){return Hf(["fetch-reconciliation-settlements",e],function(){return jh.getInstance().getReconciliationSettlements(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!!t,useErrorBoundary:!1})}function w_(e,t){return Hf(["fetch-reconciliation-metrics",e],function(){return jh.getInstance().getReconciliationMetrics(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t,cacheTime:500})}function E_(){return Hf(["GET-reconciliation-filters"],function(){return jh.getInstance().getReconciliationFilters().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function x_(e){return Hf(["GET/v1/reconciliation/table/".concat(e,"/columns")],function(){return jh.getInstance().getAllTableColumns(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function S_(){return Hf(["GET/v1/reconciliation/active"],function(){return jh.getInstance().getReconciliationActive().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{useErrorBoundary:!1})}function C_(e,t,n){return Hf(["GET/reconciliation/reports/columns/".concat(t,"/").concat(n)],function(){return jh.getInstance().getReconciliationsReportColumns(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{enabled:e,useErrorBoundary:!1})}function I_(e){return Hf(["GET/reconciliation/reports/templates"],function(){return jh.getInstance().getReconciliationReportTemplates().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{enabled:e,useErrorBoundary:!1})}function R_(e){var t=e.body,n=e.params,r=e.enabled;return Hf(["GET/reconciliation/alerts/list",t,n],function(){return jh.getInstance().getReconciliationAlerts(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})}function T_(e){var t=e.body,n=e.params,r=e.enabled;return Hf(["GET/reconciliation/agenda/list",t,n],function(){return jh.getInstance().getReconciliationAgenda(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})}function A_(e){var t=e.body,n=e.params,r=e.enabled;return Hf(["GET/reconciliation/agenda/insights",t,n],function(){return jh.getInstance().getReconciliationAgendaInsightByKey(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})}function O_(e){var t=e.body,n=e.params,r=e.enabled;return Hf(["GET/reconciliation/sales/list",t,n],function(){return jh.getInstance().getReconciliationSales(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})}function P_(e){var t=e.body,n=e.params,r=e.enabled;return Hf(["GET/reconciliation/advancements/list",t,n],function(){return jh.getInstance().getReconciliationAdvancements(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})}function D_(e){var t=e.body,n=e.params,r=e.enabled;return Hf(["GET/reconciliation/fees/list",t,n],function(){return jh.getInstance().getReconciliationFees(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})}function L_(e){var t=e.body,n=e.enabled;return Hf(["reconciliation-insights-conflicts-summary",t],function(){return jh.getInstance().getReconciliationInsightsConflictsSummary(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function j_(e){var t=e.body,n=e.enabled;return Hf(["reconciliation-insights-not-reconciled-aggregators",t],function(){return jh.getInstance().getReconciliationInsightsNotReconciledAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function N_(e){var t=e.body,n=e.enabled;return Hf(["reconciliation-insights-not-reconciled-list",t],function(){return jh.getInstance().getReconciliationInsightsNotReconciledList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function z_(e){var t=e.body,n=e.enabled;return Hf(["reconciliation-insights-status-conflict-aggregators",t],function(){return jh.getInstance().getReconciliationInsightsStatusConflictAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function q_(e){var t=e.body,n=e.enabled;return Hf(["reconciliation-insights-status-conflict-list",t],function(){return jh.getInstance().getReconciliationInsightsStatusConflictList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function U_(e){var t=e.body,n=e.enabled;return Hf(["reconciliation-insights-amount-conflict-aggregators",t],function(){return jh.getInstance().getReconciliationInsightsAmountConflictAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function M_(e){var t=e.body,n=e.enabled;return Hf(["reconciliation-insights-amount-conflict-list",t],function(){return jh.getInstance().getReconciliationInsightsAmountConflictList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function B_(e){var t=e.body,n=e.enabled;return Hf(["reconciliation-insights-conflict-date-summary",t],function(){return jh.getInstance().getReconciliationInsightsConflictDateSummary(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function F_(e){var t=e.body,n=e.enabled;return Hf(["reconciliation-insights-conflict-date-aggregators",t],function(){return jh.getInstance().getReconciliationInsightsConflictDateAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function G_(e){var t=e.body,n=e.enabled;return Hf(["reconciliation-insights-conflict-date-list",t],function(){return jh.getInstance().getReconciliationInsightsConflictDateList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function W_(e){var t=e.body,n=e.dateFilter,r=e.enabled;return Hf(["reconciliation-insights-incorrect-fees-summary",t,n],function(){return jh.getInstance().getReconciliationInsightsIncorrectFeesSummary(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===r||r,useErrorBoundary:!1})}function H_(e){var t=e.body,n=e.dateFilter,r=e.enabled;return Hf(["reconciliation-insights-incorrect-fees-aggregators",t,n],function(){return jh.getInstance().getReconciliationInsightsIncorrectFeesAggregators(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===r||r,useErrorBoundary:!1})}function V_(e){var t=e.body,n=e.dateFilter,r=e.enabled;return Hf(["reconciliation-insights-incorrect-fees-list",t,n],function(){return jh.getInstance().getReconciliationInsightsIncorrectFeesList(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===r||r,useErrorBoundary:!1})}function K_(e){var t=e.body,n=e.dateFilter,r=e.enabled;return Hf(["reconciliation-insights-fees-charged-summary",t,n],function(){return jh.getInstance().getReconciliationInsightsFeesChargedSummary(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===r||r,useErrorBoundary:!1})}function $_(e){var t=e.body,n=e.dateFilter,r=e.enabled;return Hf(["reconciliation-insights-reconciled-summary",t,n],function(){return jh.getInstance().getReconciliationInsightsReconciledSummary(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===r||r,useErrorBoundary:!1})}function Q_(e){var t=e.body,n=e.dateFilter,r=e.transactionType,o=e.enabled;return Hf(["reconciliation-insights-reconciled-aggregators",t,n,r],function(){return jh.getInstance().getReconciliationInsightsReconciledAggregators(t,n,r).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===o||o,useErrorBoundary:!1})}function Y_(e){var t=e.body,n=e.dateFilter,r=e.transactionType,o=e.enabled;return Hf(["reconciliation-insights-reconciled-list",t,n,r],function(){return jh.getInstance().getReconciliationInsightsReconciledList(t,n,r).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===o||o,useErrorBoundary:!1})}function J_(e){var t=e.body,n=e.enabled;return Hf(["reconciliation-insights-not-confirm-summary",t],function(){return jh.getInstance().getReconciliationInsightsNotConfirmSummary(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function Z_(e){var t=e.body,n=e.enabled;return Hf(["reconciliation-insights-not-confirm-aggregators",t],function(){return jh.getInstance().getReconciliationInsightsNotConfirmAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function X_(e){var t=e.body,n=e.enabled;return Hf(["reconciliation-insights-not-confirm-list",t],function(){return jh.getInstance().getReconciliationInsightsNotConfirmList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function ew(e){var t=e.body,n=e.enabled;return Hf(["reconciliation-insights-amount-to-be-settled-summary",t],function(){return jh.getInstance().getReconciliationInsightsAmountToBeSettledSummary(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function tw(e){var t=e.body,n=e.enabled;return Hf(["reconciliation-insights-reconciliation-rate-by-provider",t],function(){return jh.getInstance().getReconciliationInsightsReconciliationRateByProvider(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function nw(e){var t=e.body,n=e.enabled;return Hf(["reconciliation-insights-reconciliation-rate-by-account",t],function(){return jh.getInstance().getReconciliationInsightsReconciliationRateByAccount(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function rw(e){var t=e.body,n=e.enabled;return Hf(["reconciliation-insights-reconciliation-rate-by-currency",t],function(){return jh.getInstance().getReconciliationInsightsReconciliationRateByCurrency(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function ow(e){var t=this,o=Object.values(e).filter(Boolean);return Hf(["feature-flags",o],function(){return n(t,void 0,void 0,function(){return r(this,function(t){return[2,jh.getInstance().getFeatureFlagId(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:o.length>1,useErrorBoundary:!1})}function aw(e){var t=this,o=Hf({queryKey:["all-feature-flags",Object.values(e).filter(Boolean)],queryFn:function(){return n(t,void 0,void 0,function(){return r(this,function(t){return[2,jh.getInstance().getFeatureFlagIdAll({accountCode:e.account_code}).then(function(e){return null==e?void 0:e.data})]})})},enabled:!!e.account_code&&!!e.organization_code&&!!e.email,cacheTime:9e5,useErrorBoundary:!1}),a=Uf();return u(function(){a.setQueryData(["cached-feature-flags"],o)},[o,a]),o}function iw(e){var n,r,o=Uf(),a=o.getQueryState(["cached-feature-flags"]),i=Boolean(!(null===(n=null==a?void 0:a.data)||void 0===n?void 0:n.status)||"loading"===(null===(r=null==a?void 0:a.data)||void 0===r?void 0:r.status)),s=Hf({queryKey:["cached-feature-flags"],queryFn:function(){},enabled:!1,select:function(t){var n;return{result:null===(n=null==t?void 0:t.data)||void 0===n?void 0:n[e]}},initialData:function(){var e=o.getQueryData(["cached-feature-flags"]);return(null==e?void 0:e.data)||{}}});return t(t({},s),{isLoading:i})}function sw(e){return Hf(["events",e],function(){return jh.getInstance().getAuditEvents(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.account_code&&!!e.organizationCode,cacheTime:0,keepPreviousData:!0,useErrorBoundary:!1})}function cw(e){return Hf(["audit-monitor-event-detail",e],function(){return jh.getInstance().getAuditMonitorDetail(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:null!==e,cacheTime:0,useErrorBoundary:!1})}function uw(e){return Hf(["api-logs",e],function(){return jh.getInstance().postApiLogs({payload:e}).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.organizationCode,cacheTime:0,useErrorBoundary:!1})}function lw(e){var t=e.params;return Hf(["webhook-logs",t],function(){return jh.getInstance().postWebhookLogs({payload:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t.organizationCode,cacheTime:0,useErrorBoundary:!1})}function dw(e,t){return Hf(["api-logs-detail",e,t],function(){return jh.getInstance().getApiLogsDetailByPaymentCode(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e,cacheTime:0,useErrorBoundary:!1})}function pw(e,t){return Hf(["api-logs-by-transaction",e,t],function(){return jh.getInstance().getApiLogsByTransactionCode(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!t,cacheTime:0,useErrorBoundary:!1})}function hw(e,t){return void 0===t&&(t=!0),Hf(["audit-exports-list",e],function(){return jh.getInstance().getAuditExportsList(e).then(function(e){return null==e?void 0:e.data})},{enabled:t,cacheTime:0,useErrorBoundary:!1})}function fw(e,t,n){return void 0===t&&(t=!1),Hf(["audit-export-download",e],function(){return jh.getInstance().getAuditExportDownload(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&t,cacheTime:0,useErrorBoundary:!1,onSuccess:n})}function mw(e){var t=e.tab,n=e.exportId,r=e.enabled,o=void 0!==r&&r,a=e.onSuccess;return Hf(["unified-export-status",t,n],function(){return jh.getInstance().getUnifiedExportStatus(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:!!n&&o,cacheTime:0,useErrorBoundary:!1,onSuccess:a})}function gw(e){var t=e.tab,n=e.page,r=void 0===n?0:n,o=e.size,a=void 0===o?10:o,i=e.enabled;return Hf(["unified-exports-list",t,r,a],function(){return jh.getInstance().getUnifiedExportsList(t,r,a).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===i||i,cacheTime:0,useErrorBoundary:!1})}function yw(e){return Hf(["api-logs-stats-requests",e],function(){return jh.getInstance().postApiLogsStatsRequests(t({},e)).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.start_date,cacheTime:0,useErrorBoundary:!1})}function vw(e){return Hf(["api-logs-stats-errors",e],function(){return jh.getInstance().postApiLogsStatsErrors(t({},e)).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.start_date,cacheTime:0,useErrorBoundary:!1})}function bw(e){return Hf(["api-logs-stats-errors-by-endpoint",e],function(){return jh.getInstance().postApiLogsStatsErrorsByEndpoint(t({},e)).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.start_date,cacheTime:0,useErrorBoundary:!1})}function kw(e){return Hf(["api-logs-list",e],function(){return jh.getInstance().postApiLogsList(t({},e)).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.start_date,cacheTime:0,useErrorBoundary:!1})}function _w(e){var t=e.paymentCode,n=e.createdAtFrom,r=e.enabled;return Hf(["api-logs-v2-payment",t,n],function(){return jh.getInstance().getApiLogsV3ByPaymentCode(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:(void 0===r||r)&&!!t,cacheTime:0,useErrorBoundary:!1})}function ww(e,t){return Hf(["fetch-payment-links",e,t],function(){return jh.getInstance().getPaymentLinks(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!t,cacheTime:0})}function Ew(e){return Hf(["payment-link"],function(){return jh.getInstance().getPaymentLinksByCode(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e})}function xw(e){return void 0===e&&(e=!0),Hf(["countries",e],function(){return jh.getInstance().useGetCountriesConfig().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e,keepPreviousData:!0})}function Sw(e){var t=localStorage.getItem("lang")||"en",n=e||t;return Hf(["countries-v2",n],function(){return jh.getInstance().useGetCountriesConfigV2(n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!0,keepPreviousData:!0})}function Cw(e){return Hf(["timezone"],function(){return jh.getInstance().getTimezone(e).then(function(e){return mh(e)?bh:null==e?void 0:e.data}).catch(function(){return bh})},{enabled:!0,keepPreviousData:!0})}function Iw(e,t){return void 0===t&&(t=!0),Hf(["subscription",e],function(){return jh.getInstance().getSubscriptionByCode(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&t,cacheTime:500})}function Rw(e,t,n,r){return void 0===r&&(r=!0),Hf(["subscription-payments",e,t,n],function(){return jh.getInstance().getSubscriptionPayments(e,t,n).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&r,cacheTime:0})}function Tw(e){return Vf(function(e){var t=e.payload;return jh.getInstance().firebaseUserSubscribe(t)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Aw(e,t){return Hf(["get-cofig-allow-list",e],function(){return jh.getInstance().getConfigAllowlist(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{cacheTime:0,enabled:!!e&&!!t})}function Ow(e,t){return void 0===t&&(t=!0),Hf(["get-black-list",e],function(){return jh.getInstance().getBlackListType(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:!!e&&t})}function Pw(e,t,n,r){var o;return Hf(["post-black-list",e],function(){return jh.getInstance().postBlockList(e,null!=t?t:"",null!=n?n:0,null!=r?r:25).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:(null===(o=e[0])||void 0===o?void 0:o.length)>0&&null!==t,useErrorBoundary:!1})}function Dw(e,t,n){return Hf(["get-block-list-summary",e,t,n],function(){var r=jh.getInstance();return n?r.getBlackListSummary(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e}):Promise.resolve({})},{enabled:!!e&&!!n})}function Lw(e,t,n,r,o,a){return Hf(["black-list-detail",e,t,r,o,a],function(){return jh.getInstance().getBlacklistDetail(e,t,n,r,o).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&a,cacheTime:0})}function jw(e,t,n){return Hf(["allow-list-detail",e],function(){return jh.getInstance().getAllowlistDetail(e,t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{enabled:!!e&&!!n})}function Nw(e,t){return void 0===t&&(t=!0),Hf(["query-post-get-allowlist-multi-account",JSON.stringify(e)],function(){return jh.getInstance().postGetAllowlist({payload:e}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{enabled:!!e&&t,cacheTime:0})}function zw(e,t){var o=this;return void 0===e&&(e=26),void 0===t&&(t=0),Hf(["batch-refunds",e,t],function(){return n(o,void 0,void 0,function(){return r(this,function(n){return[2,jh.getInstance().getBatchRefunds(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})]})})},{cacheTime:0})}function qw(e){return Hf(["velocity-rules",e],function(){var t=jh.getInstance();return e?t.getVelocityRules(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e}):Promise.resolve({})},{enabled:!!e,keepPreviousData:!0})}function Uw(){return Hf(["config-rules"],function(){return jh.getInstance().getAllConfigRules().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0})}function Mw(e,t){var n=e.organizationCode;return Hf(["mfa-excluded-users",n],function(){return jh.getInstance().getMFAExcludedUsers({organizationCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})}function Bw(e,t){var n=e.organizationCode;return Hf(["mfa-config",n],function(){return jh.getInstance().getMFAConfig({organizationCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})}function Fw(e,t){return Hf(["mfa-enforcement-status",e.accountCode],function(){return jh.getInstance().getMFAEnforcementStatus().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})}function Gw(e){return Hf(["fetch-organization-saml-config",e],function(){return jh.getInstance().getSamlConfig().then(function(e){return e.data})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function Ww(e){return Hf(["chartgpt-chart-execute",e],function(){return jh.getInstance().executeChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e})}function Hw(){return Hf(["chartgpt-user-charts"],function(){return jh.getInstance().getChartsByUser().then(function(e){return null==e?void 0:e.data})},{cacheTime:0})}function Vw(){var e=this;return Hf(["chartgpt-user-charts-with-results"],function(){return n(e,void 0,void 0,function(){var e,o,a,i=this;return r(this,function(s){switch(s.label){case 0:return[4,(e=jh.getInstance()).getChartsByUser()];case 1:return o=s.sent(),a=(null==o?void 0:o.data)||[],[4,Promise.all(a.map(function(o){return n(i,void 0,void 0,function(){var n,a,i,s,c,u,l,d;return r(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,e.executeChartGPTChart(o.code)];case 1:return n=r.sent(),[2,t(t({},o),{user_prompt:null!==(s=null===(i=null==n?void 0:n.data)||void 0===i?void 0:i.user_prompt)&&void 0!==s?s:o.user_prompt,unit_to_display:null!==(u=null===(c=null==n?void 0:n.data)||void 0===c?void 0:c.unit_to_display)&&void 0!==u?u:o.unit_to_display,results:null!==(d=null===(l=null==n?void 0:n.data)||void 0===l?void 0:l.results)&&void 0!==d?d:[]})];case 2:return a=r.sent(),console.error("Failed to execute chart ".concat(o.chart_id,":"),a),[2,t(t({},o),{results:[]})];case 3:return[2]}})})}))];case 2:return[2,s.sent()]}})})})}function Kw(e,t,o){var a=this;return void 0===o&&(o=!0),Hf(["chartgpt-patch-and-execute",e,t],function(){return n(a,void 0,void 0,function(){var n,o,a,i,s;return r(this,function(r){switch(r.label){case 0:return[4,(n=jh.getInstance()).patchChartGPTChart(e,t)];case 1:return o=r.sent(),a=null==o?void 0:o.data,[4,n.executeChartGPTChart(e)];case 2:return i=r.sent(),s=null==i?void 0:i.data,[2,{chart:a,execution:s}]}})})},{enabled:o&&!!e,retry:!1})}function $w(e){var t=this,o=e.chartCode,a=e.enabled;return Hf(["chart-feedback",o],function(){return n(t,void 0,void 0,function(){var e,t,n,a,i;return r(this,function(r){switch(r.label){case 0:e=jh.getInstance(),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,e.getChartFeedback(o)];case 2:return t=r.sent(),(n=null==t?void 0:t.data)&&n.rating?[2,n]:[2,null];case 3:if(a=r.sent(),404===(null===(i=null==a?void 0:a.response)||void 0===i?void 0:i.status))return[2,null];throw a;case 4:return[2]}})})},{enabled:(void 0===a||a)&&!!o,staleTime:3e5})}function Qw(){return Hf(["languages"],function(){return jh.getInstance().getLanguages().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,cacheTime:300})}function Yw(){var e=localStorage.getItem("lang")||"en";return Hf(["translations",e],function(){return jh.getInstance().getTranslations(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,cacheTime:3e4})}function Jw(e){var t=this;return Hf({queryKey:["network-tokens-onboarding",e],queryFn:function(){return n(t,void 0,void 0,function(){return r(this,function(t){switch(t.label){case 0:return[4,jh.getInstance().getNetworkTokensOnboardingByOrganization(e)];case 1:return[2,t.sent().data]}})})},enabled:!!e,useErrorBoundary:!1,cacheTime:0})}var Zw=function(e){if(!e)return"";var t=new Date(e);return"".concat(["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][t.getUTCMonth()]," ").concat(t.getUTCDate())},Xw=function(e,t,n){if(!t||!n)return e||[];var r=function(e,t){var n=[],r=new Date(e),o=new Date(t);r.setUTCHours(0,0,0,0),o.setUTCHours(0,0,0,0);for(var a=new Date(r);a<=o;)n.push(a.toISOString()),a.setUTCDate(a.getUTCDate()+1);return n}(t,n),o=new Map;return null==e||e.forEach(function(e){if(e.date){var t=new Date(e.date).toISOString().split("T")[0];o.set(t,e.value)}}),r.map(function(e){var t=e.split("T")[0];return{date:e,value:o.get(t)||"0"}})},eE=function(e){var t,n=null===(t=e.plots)||void 0===t?void 0:t[0];if(!n||!n.rows)return{distribution:[],total:0};var r=parseFloat(n.value||"0");return{distribution:n.rows.map(function(e){var t,n=100*parseFloat(e.value),o=Math.round(r*parseFloat(e.value));return{key:(null===(t=e.label)||void 0===t?void 0:t.toUpperCase())||"UNKNOWN",total:o,percentage:n,amount:o}}),total:r}},tE=function(e,t,n){var r,o={};return null===(r=e.plots)||void 0===r||r.forEach(function(e){var r=Xw(e.rows,t,n),a=e.label;o[a]=r.map(function(e){return{key:e.date||"",total:100*parseFloat(e.value),current_label:Zw(e.date||""),current_amount:100*parseFloat(e.value)}})}),o},nE=function(e,t,n){var r,o=null===(r=e.plots)||void 0===r?void 0:r[0];return{distribution:Xw(null==o?void 0:o.rows,t,n).map(function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:Zw(e.date||""),current_amount:parseFloat(e.value)}}),total:parseFloat((null==o?void 0:o.value)||"0"),total_amount:parseFloat((null==o?void 0:o.value)||"0")}},rE=function(e,t,n){var r,o=null===(r=e.plots)||void 0===r?void 0:r[0];return{distribution:Xw(null==o?void 0:o.rows,t,n).map(function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:Zw(e.date||""),current_amount:parseFloat(e.value)}}),total:parseFloat((null==o?void 0:o.value)||"0"),total_amount:parseFloat((null==o?void 0:o.value)||"0")}},oE=function(e,o){return Hf(t({queryKey:["smart-recovery-communications-by-day",e],queryFn:function(){return n(void 0,void 0,void 0,function(){var t,n,o;return r(this,function(r){switch(r.label){case 0:return t=jh.getInstance(),n={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/communications-by-day",n)];case 1:return o=r.sent(),[2,(a=o.data,i=n.start_date,s=n.end_date,c=a.plots||[],u=c.find(function(e){return"TOTAL_COMMUNICATIONS_LABEL"===e.label}),l=c.find(function(e){return"COMPLETED_COMMUNICATIONS_LABEL"===e.label}),d=c.find(function(e){return"CONVERSION_RATE_LABEL"===e.label}),p=Xw(null==u?void 0:u.rows,i,s),h=Xw(null==l?void 0:l.rows,i,s),f=Xw(null==d?void 0:d.rows,i,s),{communications:{distribution:p.map(function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:Zw(e.date||""),current_amount:parseFloat(e.value)}}),total:parseFloat((null==u?void 0:u.value)||"0")},conversion_rate:{distribution:f.map(function(e){return{key:e.date||"",total:parseFloat(e.value),percentage:parseFloat(e.value)}}),total:parseFloat((null==d?void 0:d.value)||"0")},completed_communications:{distribution:h.map(function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:Zw(e.date||""),current_amount:parseFloat(e.value)}}),total:parseFloat((null==l?void 0:l.value)||"0")}})]}var a,i,s,c,u,l,d,p,h,f})})},enabled:!!e.organization_code,staleTime:3e5},o))},aE=function(e,o){return Hf(t({queryKey:["smart-recovery-communications-by-substatus",e],queryFn:function(){return n(void 0,void 0,void 0,function(){var t,n,o;return r(this,function(r){switch(r.label){case 0:return t=jh.getInstance(),n={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/communications-by-substatus",n)];case 1:return o=r.sent(),[2,eE(o.data)]}})})},enabled:!!e.organization_code,staleTime:3e5},o))},iE=function(e,o){return Hf(t({queryKey:["smart-recovery-communications-substatus-by-day",e],queryFn:function(){return n(void 0,void 0,void 0,function(){var t,n,o;return r(this,function(r){switch(r.label){case 0:return t=jh.getInstance(),n={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/communications-substatus-by-day",n)];case 1:return o=r.sent(),[2,tE(o.data,n.start_date,n.end_date)]}})})},enabled:!!e.organization_code,staleTime:3e5},o))},sE=function(e,o){return Hf(t({queryKey:["smart-recovery-recovered-tpv-by-day",e],queryFn:function(){return n(void 0,void 0,void 0,function(){var t,n,o;return r(this,function(r){switch(r.label){case 0:return t=jh.getInstance(),n={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/recovered-tpv-by-day",n)];case 1:return o=r.sent(),[2,nE(o.data,n.start_date,n.end_date)]}})})},enabled:!!e.organization_code,staleTime:3e5},o))},cE=function(e,o){return Hf(t({queryKey:["smart-recovery-recovered-payments-by-day",e],queryFn:function(){return n(void 0,void 0,void 0,function(){var t,n,o;return r(this,function(r){switch(r.label){case 0:return t=jh.getInstance(),n={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/recovered-payments-by-day",n)];case 1:return o=r.sent(),[2,rE(o.data,n.start_date,n.end_date)]}})})},enabled:!!e.organization_code,staleTime:3e5},o))};function uE(e,t){var o=this;return Hf(["POST/template-reporting/templates/search",e],function(){return n(o,void 0,void 0,function(){return r(this,function(t){return[2,jh.getInstance().searchReportTemplates(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:t,useErrorBoundary:!1})}function lE(e,t,o){var a=this;return Hf(["POST/template-reporting/template-by-id/search",e,t],function(){return n(a,void 0,void 0,function(){return r(this,function(n){return[2,jh.getInstance().searchReportTemplateById(e,t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:o&&!!e,useErrorBoundary:!1})}function dE(e,t){var o=this;return Hf(["POST/template-reporting/schedules/search",e],function(){return n(o,void 0,void 0,function(){return r(this,function(t){return[2,jh.getInstance().searchReportSchedules(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:t,useErrorBoundary:!1})}function pE(e,t,o){var a=this;return Hf(["POST/template-reporting/schedule-by-id/search",e,t],function(){return n(a,void 0,void 0,function(){return r(this,function(n){return[2,jh.getInstance().searchReportScheduleById(e,t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:o&&!!e,useErrorBoundary:!1})}function hE(){return Hf({queryKey:["organization-configs"],queryFn:function(){return jh.getInstance().getOrganizationConfigs().then(function(e){return null==e?void 0:e.data})},cacheTime:0,useErrorBoundary:!1})}function fE(e){var t=e.accountCode,n=e.enabled;return Hf(["onboarding-status",t],function(){return jh.getInstance().getOnboardingStatus(t).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function mE(e,t,o){var a=this;return void 0===o&&(o=!0),Hf(["get-recipients",e,t],function(){return n(a,void 0,void 0,function(){return r(this,function(n){return[2,jh.getInstance().getRecipients(e,t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&o,cacheTime:0,useErrorBoundary:!1})}function gE(e,t,o){var a=this;return void 0===o&&(o=!0),Hf(["get-recipient-by-id",e,t.recipient_id],function(){return n(a,void 0,void 0,function(){return r(this,function(n){return[2,jh.getInstance().getRecipientById(e,t.recipient_id).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!t.recipient_id&&o,cacheTime:500,useErrorBoundary:!1})}function yE(e,t,o){var a=this;return void 0===o&&(o=!0),Hf(["get-onboarding-detail",e,t.recipient_id,t.onboarding_id],function(){return n(a,void 0,void 0,function(){return r(this,function(n){return[2,jh.getInstance().getOnboardingDetail(e,t.recipient_id,t.onboarding_id).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!t.recipient_id&&!!t.onboarding_id&&o,cacheTime:500,useErrorBoundary:!1})}function vE(e,t,o){var a=this;return void 0===o&&(o=!0),Hf(["get-onboarding-timeline",e,t.onboarding_id],function(){return n(a,void 0,void 0,function(){return r(this,function(n){return[2,jh.getInstance().getOnboardingTimeline(e,t.onboarding_id).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!t.onboarding_id&&o,cacheTime:500,useErrorBoundary:!1})}function bE(e,t,n){return void 0===t&&(t=!0),Hf(["installments-plans",e,n],function(){return jh.getInstance().getInstallmentPlans(n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(e)&&t,useErrorBoundary:!1})}function kE(e,t){return void 0===t&&(t=!0),Hf(["search-installments-plans",JSON.stringify(e)],function(){return jh.getInstance().searchInstallmentsPlans(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:t,useErrorBoundary:!1})}function _E(e){var t=this,o=e.paymentCode,a=e.enabled;return Hf({queryKey:["api-logs-v3",o],queryFn:function(){return n(t,void 0,void 0,function(){return r(this,function(e){return[2,jh.getInstance().getApiLogsV3(o).then(function(e){return null==e?void 0:e.data})]})})},enabled:(void 0===a||a)&&!!o,staleTime:3e4,cacheTime:3e5,useErrorBoundary:!1})}function wE(e){var t=this,o=e.paymentCode,a=e.enabled;return Hf({queryKey:["webhook-timeline",o],queryFn:function(){return n(t,void 0,void 0,function(){return r(this,function(e){return[2,jh.getInstance().getWebhookTimeline(o).then(function(e){return null==e?void 0:e.data})]})})},enabled:(void 0===a||a)&&!!o,staleTime:3e4,cacheTime:3e5,useErrorBoundary:!1})}function EE(){var e=this;return Hf(["workos-domain-status"],function(){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,jh.getInstance().workosDomainStatus().then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function xE(){return xE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xE.apply(this,arguments)}
|
|
50
|
+
*/"production"===process.env.NODE_ENV?Af.exports=function(){if(Tf)return Of;Tf=1;var e=s,t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useState,r=e.useEffect,o=e.useLayoutEffect,a=e.useDebugValue;function i(e){var n=e.getSnapshot;e=e.value;try{var r=n();return!t(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var s=t(),c=n({inst:{value:s,getSnapshot:t}}),u=c[0].inst,l=c[1];return o(function(){u.value=s,u.getSnapshot=t,i(u)&&l({inst:u})},[e,s,t]),r(function(){return i(u)&&l({inst:u}),e(function(){i(u)&&l({inst:u})})},[e]),a(s),s};return Of.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:c,Of}():Af.exports=(Pf||(Pf=1,"production"!==process.env.NODE_ENV&&function(){function e(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(e){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=s,n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=t.useState,o=t.useEffect,a=t.useLayoutEffect,i=t.useDebugValue,c=!1,u=!1,l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(s,l){c||void 0===t.startTransition||(c=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var d=l();if(!u){var p=l();n(d,p)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),u=!0)}var h=(p=r({inst:{value:d,getSnapshot:l}}))[0].inst,f=p[1];return a(function(){h.value=d,h.getSnapshot=l,e(h)&&f({inst:h})},[s,d,l]),o(function(){return e(h)&&f({inst:h}),s(function(){e(h)&&f({inst:h})})},[s]),i(d),d};Df.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:l,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Df);var Lf=Af.exports;const jf=Lf.useSyncExternalStore,Nf=i.createContext(void 0),zf=i.createContext(!1);function qf(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Nf),window.ReactQueryClientContext):Nf)}const Uf=({context:e}={})=>{const t=i.useContext(qf(e,i.useContext(zf)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Mf=({client:e,children:t,context:n,contextSharing:r=!1})=>{i.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),"production"!==process.env.NODE_ENV&&r&&e.getLogger().error("The contextSharing option has been deprecated and will be removed in the next major version");const o=qf(n,r);return i.createElement(zf.Provider,{value:!n&&r},i.createElement(o.Provider,{value:e},t))},Bf=i.createContext(!1);Bf.Provider;const Ff=i.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function Gf(e,t){return"function"==typeof e?e(...t):!!e}function Wf(e,t){const n=Uf({context:e.context}),r=i.useContext(Bf),o=i.useContext(Ff),a=n.defaultQueryOptions(e);a._optimisticResults=r?"isRestoring":"optimistic",a.onError&&(a.onError=ff.batchCalls(a.onError)),a.onSuccess&&(a.onSuccess=ff.batchCalls(a.onSuccess)),a.onSettled&&(a.onSettled=ff.batchCalls(a.onSettled)),(e=>{e.suspense&&("number"!=typeof e.staleTime&&(e.staleTime=1e3),"number"==typeof e.cacheTime&&(e.cacheTime=Math.max(e.cacheTime,1e3)))})(a),((e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))})(a,o),(e=>{i.useEffect(()=>{e.clearReset()},[e])})(o);const[s]=i.useState(()=>new t(n,a)),c=s.getOptimisticResult(a);if(jf(i.useCallback(e=>{const t=r?()=>{}:s.subscribe(ff.batchCalls(e));return s.updateResult(),t},[s,r]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),i.useEffect(()=>{s.setOptions(a,{listeners:!1})},[a,s]),((e,t,n)=>(null==e?void 0:e.suspense)&&((e,t)=>e.isLoading&&e.isFetching&&!t)(t,n))(a,c,r))throw((e,t,n)=>t.fetchOptimistic(e).then(({data:t})=>{null==e.onSuccess||e.onSuccess(t),null==e.onSettled||e.onSettled(t,null)}).catch(t=>{n.clearReset(),null==e.onError||e.onError(t),null==e.onSettled||e.onSettled(void 0,t)}))(a,s,o);if((({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&Gf(n,[e.error,r]))({result:c,errorResetBoundary:o,useErrorBoundary:a.useErrorBoundary,query:s.getCurrentQuery()}))throw c.error;return a.notifyOnChangeProps?c:s.trackResult(c)}function Hf(e,t,n){return Wf(Bh(e,t,n),Ef)}function Vf(e,t,n){const r=function(e,t,n){return ef(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}(e,t,n),o=Uf({context:r.context}),[a]=i.useState(()=>new Rf(o,r));i.useEffect(()=>{a.setOptions(r)},[a,r]);const s=jf(i.useCallback(e=>a.subscribe(ff.batchCalls(e)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),c=i.useCallback((e,t)=>{a.mutate(e,t).catch(Kf)},[a]);if(s.error&&Gf(a.options.useErrorBoundary,[s.error]))throw s.error;return{...s,mutate:c,mutateAsync:s.mutate}}function Kf(){}var $f;function Qf(e){return Vf(function(e){var t=e.payload;return jh.getInstance().postWebhookV2MultiAccount({payload:t})},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Yf(e){return Vf(function(e){var t=e.code,n=e.accountCode;return jh.getInstance().deleteWebhookV2(t,n)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Jf(e){return Vf(function(e){var t=e.code,n=e.payload,r=e.accountCode;return jh.getInstance().updateWebhookV2(t,n,r)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Zf(){return Vf(function(e){var t=e.name,n=e.principal;return jh.getInstance().postAccount(t,n)})}function Xf(){return Vf(function(n){var r=e([$f.ACCOUNT],n.duplicate_order,!0);return jh.getInstance().duplicateAccount(t(t({},n),{duplicate_order:r}))})}function em(){return Vf(function(e){return jh.getInstance().retryDuplicateAccount(e)})}function tm(){return Vf(function(e){var t=e.name,n=e.code,r=e.principal;return jh.getInstance().patchAccountV2({name:t,code:n,principal:r})})}function nm(){return Vf(function(e){var t=e.account_code;return jh.getInstance().putAccountPrincipal({account_code:t})})}function rm(){return Vf(function(e){var t=e.organizationCode,n=e.userCode,r=e.payload;return jh.getInstance().putAccountsUserMassive(t,n,r)})}function om(){return Vf(function(e){var t=e.organizationCode,n=e.userCode,r=e.payload;return jh.getInstance().deleteAccountsUserMassive(t,n,r)})}function am(){return Vf(["post-validate-status-connection"],function(e){var t=e.payload,n=e.accountCode;return jh.getInstance().postValidateStatusConnection({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function im(){return Vf(["post-change-status-connection"],function(e){var t=e.payload,n=e.accountCode;return jh.getInstance().postChangeStatusConnection({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function sm(){return Vf(function(e){return jh.getInstance().putCosts(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function cm(){return Vf(["post-connection"],function(e){var t=e.payload;return jh.getInstance().postMultiConnection({payload:t}).then(function(e){return null==e?void 0:e.data})})}function um(){return Vf(["new-post-connection-validate"],function(){return jh.getInstance().postMultiConnectionValidate().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function lm(){return Vf(["patch-connection"],function(e){var t=e.payload,n=e.connectionCode;return jh.getInstance().patchConnection({payload:t,connectionCode:n}).then(function(e){return null==e?void 0:e.data})})}function dm(){return Vf(function(e){var t=e.payload;return jh.getInstance().postDefaultRoutes({payload:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function pm(){return Vf(function(e){return jh.getInstance().postValidateCredentials(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function hm(){var e=this;return Vf(function(t){var o=t.payload;return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,jh.getInstance().postNetworkTokensOnboarding(o)];case 1:return[2,e.sent().data]}})})},{useErrorBoundary:!1})}function fm(){return Vf(["patch-organizations"],function(){return jh.getInstance().updateOrganizationStatus().then(function(e){return null==e?void 0:e.data})})}function mm(){return Vf(function(e){return jh.getInstance().getOrgByName(e).then(function(e){return null==e?void 0:e.data})})}function gm(){var e=this;return Vf(function(t){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,jh.getInstance().changePasswordV2(t).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function ym(){var e=this;return Vf(function(t){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,jh.getInstance().workosPasswordReset(t).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function vm(){var e=this;return Vf(function(){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,jh.getInstance().workosAdminPortal().then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function bm(){var e=this;return Vf(function(){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,jh.getInstance().workosDomainVerificationPortal().then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function km(){var e=this;return Vf(function(t){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,jh.getInstance().workosVerifyMfa(t).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function _m(e){return Vf(function(e){return jh.getInstance().updateProfile(e)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function wm(){return Vf(function(e){return jh.getInstance().inviteUsersMassive(e,e.organizationCode)})}function Em(){return Vf(function(e){return jh.getInstance().inviteUsersMassiveV2(e)})}function xm(){return Vf(function(e){var t=e.userCode,n=e.organizationCode;return jh.getInstance().unInviteUsersV2({userCode:t,organizationCode:n})})}function Sm(){return Vf(function(e){return jh.getInstance().createUserAuth0(e)})}function Cm(){return Vf(function(e){return jh.getInstance().postCall(e)})}function Im(){return Vf(function(e){return jh.getInstance().changeLoginMethods(e)})}!function(e){e.ACCOUNT="ACCOUNT",e.CHECKOUT_BUILDER="CHECKOUT_BUILDER",e.CONNECTION="CONNECTION",e.ROUTING="ROUTING",e.RISK_CONDITIONS="RISK_CONDITIONS",e.WEBHOOKS="WEBHOOKS"}($f||($f={}));var Rm=function(){var e=c("ON"===localStorage.getItem("isTesting")),t=e[0],n=e[1];return u(function(){var e=function(e){"isTesting"===e.key&&n("ON"===e.newValue)};return window.addEventListener("storage",e),function(){window.removeEventListener("storage",e)}},[]),{isTesting:t}},Tm=function(e){var t=localStorage.getItem(e),n=c(t&&JSON.parse(t)),r=n[0],o=n[1];return u(function(){var t=function(t){if(t.key===e){var n=t.newValue;o(n)}};return window.addEventListener("storage",t),function(){window.removeEventListener("storage",t)}},[e]),r},Am=function(){var e,t;return null===(t=null===(e=Tm("account"))||void 0===e?void 0:e.value)||void 0===t?void 0:t.organization_code},Om=function(){var e,t=Rm().isTesting,n=null===(e=Tm("account"))||void 0===e?void 0:e.value;return(t?null==n?void 0:n.account_code_testing:null==n?void 0:n.account_code_live)||(null==n?void 0:n.code)};function Pm(e){var n=Om(),r=l(n);return r.current=n,Vf(function(e){return jh.getInstance().updateIsActiveCheckout(t(t({},e),{accountCode:r.current}))},e)}function Dm(e){var n=Om(),r=l(n);return r.current=n,Vf(function(e){return jh.getInstance().publishCheckout(t(t({},e),{accountCode:r.current}))},e)}function Lm(){return Vf(function(e){var t=e.payload,n=e.transactionId,r=e.paymentId,o=e.action;return jh.getInstance().createOperationTransaction(t,n,r,o)})}function jm(){return Vf(function(e){var t=e.payload,n=e.paymentId,r=e.transactionId,o=e.handleSetProgress;return jh.getInstance().uploadChargebacks(t,n,r,o)})}function Nm(){return Vf(function(e){var t=e.transactionCode,n=e.payload;return jh.getInstance().postProviderRawResponse(t,n)})}function zm(){return Vf(function(e){var t=e.paymentId,n=e.payload;return jh.getInstance().addToRiskList(t,n)})}var qm=new yf({}),Um=new class{constructor(e={}){this.queryCache=e.queryCache||new yf,this.mutationCache=e.mutationCache||new kf,this.logger=e.logger||hf,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0,"production"!==process.env.NODE_ENV&&e.logger&&this.logger.error("Passing a custom logger has been deprecated and will be removed in the next major version.")}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=of.subscribe(()=>{of.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=sf.subscribe(()=>{sf.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[n]=Fh(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}ensureQueryData(e,t,n){const r=Bh(e,t,n),o=this.getQueryData(r.queryKey);return o?Promise.resolve(o):this.fetchQuery(r)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){const r=this.queryCache.find(e),o=function(e,t){return"function"==typeof e?e(t):e}(t,null==r?void 0:r.state.data);if(void 0===o)return;const a=Bh(e),i=this.defaultQueryOptions(a);return this.queryCache.build(this,i).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return ff.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}removeQueries(e,t){const[n]=Fh(e,t),r=this.queryCache;ff.batch(()=>{r.findAll(n).forEach(e=>{r.remove(e)})})}resetQueries(e,t,n){const[r,o]=Fh(e,t,n),a=this.queryCache,i={type:"active",...r};return ff.batch(()=>(a.findAll(r).forEach(e=>{e.reset()}),this.refetchQueries(i,o)))}cancelQueries(e,t,n){const[r,o={}]=Fh(e,t,n);void 0===o.revert&&(o.revert=!0);const a=ff.batch(()=>this.queryCache.findAll(r).map(e=>e.cancel(o)));return Promise.all(a).then(qh).catch(qh)}invalidateQueries(e,t,n){const[r,o]=Fh(e,t,n);return ff.batch(()=>{var e,t;if(this.queryCache.findAll(r).forEach(e=>{e.invalidate()}),"none"===r.refetchType)return Promise.resolve();const n={...r,type:null!=(e=null!=(t=r.refetchType)?t:r.type)?e:"active"};return this.refetchQueries(n,o)})}refetchQueries(e,t,n){const[r,o]=Fh(e,t,n),a=ff.batch(()=>this.queryCache.findAll(r).filter(e=>!e.isDisabled()).map(e=>{var t;return e.fetch(void 0,{...o,cancelRefetch:null==(t=null==o?void 0:o.cancelRefetch)||t,meta:{refetchPage:r.refetchPage}})}));let i=Promise.all(a).then(qh);return null!=o&&o.throwOnError||(i=i.catch(qh)),i}fetchQuery(e,t,n){const r=Bh(e,t,n),o=this.defaultQueryOptions(r);void 0===o.retry&&(o.retry=!1);const a=this.queryCache.build(this,o);return a.isStaleByTime(o.staleTime)?a.fetch(o):Promise.resolve(a.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(qh).catch(qh)}fetchInfiniteQuery(e,t,n){const r=Bh(e,t,n);return r.behavior=_f(),this.fetchQuery(r)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(qh).catch(qh)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const n=this.queryDefaults.find(t=>Vh(e)===Vh(t.queryKey));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find(t=>Kh(e,t.queryKey));if("production"!==process.env.NODE_ENV){this.queryDefaults.filter(t=>Kh(e,t.queryKey)).length>1&&this.logger.error("[QueryClient] Several query defaults match with key '"+JSON.stringify(e)+"'. The first matching query defaults are used. Please check how query defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetquerydefaults.")}return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){const n=this.mutationDefaults.find(t=>Vh(e)===Vh(t.mutationKey));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find(t=>Kh(e,t.mutationKey));if("production"!==process.env.NODE_ENV){this.mutationDefaults.filter(t=>Kh(e,t.mutationKey)).length>1&&this.logger.error("[QueryClient] Several mutation defaults match with key '"+JSON.stringify(e)+"'. The first matching mutation defaults are used. Please check how mutation defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetmutationdefaults.")}return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=Hh(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}({defaultOptions:{queries:{refetchOnWindowFocus:!1,refetchOnReconnect:!1,retry:!1,staleTime:3e5,useErrorBoundary:!0}},queryCache:qm});function Mm(){return Vf(function(e){return jh.getInstance().createReconciliationsReportV2(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Bm(){return Vf(function(e){return jh.getInstance().createReconciliationsReportV3(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Fm(){return Vf(function(e){return jh.getInstance().createReportV2(e).then(function(e){return null==e?void 0:e.data})})}function Gm(){return Vf(function(e){return jh.getInstance().getTotalRowsForExport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function Wm(){return Vf(function(e){return jh.getInstance().cancelReport(e).then(function(e){return null==e?void 0:e.data})})}function Hm(t){var o=this;return Vf(function(){return n(o,void 0,void 0,function(){return r(this,function(e){return[2,jh.getInstance().createReportTemplate(t).then(function(e){return null==e?void 0:e.data})]})})},{onMutate:function(t){return n(o,void 0,void 0,function(){var n;return r(this,function(r){switch(r.label){case 0:return[4,Um.cancelQueries({queryKey:["GET/reports/templates"]})];case 1:return r.sent(),n=Um.getQueryData(["GET/reports/templates"]),Um.setQueryData(["GET/reports/templates"],function(n){return e(e([],n,!0),[t],!1)}),[2,{previousTemplates:n}]}})})},onError:function(e,t,n){Um.setQueryData(["GET/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){Um.invalidateQueries({queryKey:["GET/reports/templates"]})}})}function Vm(e){return Vf(function(){return jh.getInstance().updateReportTemplate(e).then(function(e){return null==e?void 0:e.data})})}function Km(){return Vf(function(e){return jh.getInstance().deletePaymentsReportTemplate(e).then(function(e){return null==e?void 0:e.data})})}function $m(e,t,o){var a=this;void 0===o&&(o=null);var i=(null==o?void 0:o.basePath)||Ad.DEFAULT_ROUTING_TYPE;return Vf(function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,jh.getInstance().postSmartRoutingCreateWorkflow(e,t,i).then(function(e){return null==e?void 0:e.data})];case 1:return[2,n.sent()]}})})},o)}function Qm(e,t){var o=this,a=e.versionCode,i=e.accountCode,s=e.organizationCode,c=e.routingType,u=void 0===c?Ad.DEFAULT_ROUTING_TYPE:c;return void 0===t&&(t=null),Vf(function(){return n(o,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,jh.getInstance().postSmartRoutingPublishVersion(i,a,s,u).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})},t)}function Ym(e,t){var n=e.data,r=e.accountCode,o=e.routingType,a=void 0===o?Ad.DEFAULT_ROUTING_TYPE:o;return void 0===t&&(t=null),Vf(function(){return jh.getInstance().putSmartRoutingUpdateWorkflow(r,n,a).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},t)}function Jm(e,t){var n=e.versionCode,r=e.accountCode,o=e.routingType,a=void 0===o?Ad.DEFAULT_ROUTING_TYPE:o;return void 0===t&&(t=null),Vf(function(){return jh.getInstance().deleteSmartRoutingVersion(r,n,a).then(function(e){return null==e?void 0:e.data})},t)}function Zm(e,t){var n=e.versionCode,r=e.accountCode,o=e.routingType,a=void 0===o?Ad.DEFAULT_ROUTING_TYPE:o;return void 0===t&&(t=null),Vf(function(){return jh.getInstance().postSmartRoutingDuplicateVersion(r,String(n),a).then(function(e){return null==e?void 0:e.data})},t)}function Xm(e,t){var n=e.paymentMethod,r=e.active,o=e.accountCode,a=e.routingType,i=void 0===a?Ad.DEFAULT_ROUTING_TYPE:a;return void 0===t&&(t=null),Vf(function(){return jh.getInstance().putSmartRoutingToggleMethod(o,n,r,i).then(function(e){return null==e?void 0:e.data})},t)}function eg(e,t){var o=this;return void 0===t&&(t=null),Vf(function(t){return n(o,void 0,void 0,function(){var n,o,a,i,s,c;return r(this,function(r){switch(r.label){case 0:return n=jh.getInstance(),o=t.map(function(t){return n.putSmartRoutingToggleMethod(e,t.paymentMethod,t.active,t.routingType)}),[4,Promise.allSettled(o)];case 1:return a=r.sent(),i=a.filter(function(e){return"rejected"===e.status}),s=a.filter(function(e){return"fulfilled"===e.status}),c=i.map(function(e,n){return{paymentMethod:t[n].paymentMethod,error:"rejected"===e.status?e.reason:null}}),[2,{success:s.length,failed:i.length,total:t.length,errors:c}]}})})},t)}function tg(e,t){var n=e.declinedId,r=e.accountCode;return void 0===t&&(t=null),Vf(function(e){return void 0===e&&(e=null),jh.getInstance().updateSmartRoutingDeclinedGroup(r,n,e).then(function(e){return null==e?void 0:e.data})},t)}function ng(e){var t=e.accountCode;return Vf(function(e){return void 0===e&&(e=null),jh.getInstance().createSmartRoutingDeclinedGroup(t,e).then(function(e){return null==e?void 0:e.data})},e.options)}function rg(e,t){var n=e.versionCode,r=e.accountCode,o=e.routingType,a=void 0===o?Ad.DEFAULT_ROUTING_TYPE:o;return void 0===t&&(t=null),Vf(function(e){return void 0===e&&(e=!1),jh.getInstance().updateSmartRoutingFavorite(r,n,e,a).then(function(e){return null==e?void 0:e.data})},t)}function og(e,t){var n=e.code,r=e.name,o=e.accountCode,a=e.routingType,i=void 0===a?Ad.DEFAULT_ROUTING_TYPE:a;return void 0===t&&(t=null),Vf(function(){return jh.getInstance().putSmartRoutingUpdateWorkflowName(o,{code:n,name:r},i).then(function(e){return null==e?void 0:e.data})},t)}function ag(e,t){var n=e.accountCode,r=e.workflowVersionCode,o=e.routingType,a=void 0===o?Ad.DEFAULT_ROUTING_TYPE:o;return void 0===t&&(t=null),Vf(function(e){return jh.getInstance().simulateSmartRoutingTransaction(n,r,e,a).then(function(e){return null==e?void 0:e.data})},t)}function ig(e,t){return void 0===t&&(t=null),Vf(function(t){return jh.getInstance().updateMonitorRedistribution(e,t).then(function(e){return null==e?void 0:e.data})},t)}function sg(e,n){return void 0===n&&(n={}),Vf(function(t){var n=t.declinedGroupCode;return jh.getInstance().removeDeclinedGroup(e,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},t(t({},n),{useErrorBoundary:!1}))}function cg(e,n){return void 0===n&&(n={}),Vf(function(t){var n=t.payload;return jh.getInstance().multiAccountDeclinedGroupCreate(e,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},t(t({},n),{useErrorBoundary:!1}))}var ug=function(e){return Vf(function(t){return jh.getInstance().createMonitorThreshold(t,e).then(function(e){return e.data})})},lg=function(e){return Vf(function(t){return jh.getInstance().createMonitorTemplate(t,e).then(function(e){return e.data})})};function dg(){return Vf(function(e){var t=e.payload;return jh.getInstance().postSlackMessageChannel(t).then(function(e){return null==e?void 0:e.data})})}function pg(){return Vf(function(e){var t=e.userCode,n=e.organizationCode;return jh.getInstance().deleteUserTeamV2({userCode:t,organizationCode:n}).then(function(e){return null==e?void 0:e.data})})}function hg(){return Vf(function(){return jh.getInstance().setCustodian().then(function(e){return null==e?void 0:e.data})})}function fg(){return Vf(function(e){var t=e.payload,n=e.accountCode;return jh.getInstance().createRoles(t,n).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function mg(){var e=this;return Vf(function(t){var o=t.payload,a=t.id,i=t.accountCode;return n(e,void 0,void 0,function(){var e;return r(this,function(t){switch(t.label){case 0:return[4,jh.getInstance().editRoles({payload:o,id:a},i)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}})})},{useErrorBoundary:!1})}function gg(){return Vf(function(e){return jh.getInstance().deleteRoles(e).then(function(e){return null==e?void 0:e.data})})}function yg(){return Vf(function(e){var t=e.payload;return jh.getInstance().createOrgRole(t).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function vg(){var e=this;return Vf(function(t){var o=t.payload,a=t.id;return n(e,void 0,void 0,function(){var e;return r(this,function(t){switch(t.label){case 0:return[4,jh.getInstance().editOrgRole({payload:o,id:a})];case 1:return[2,null==(e=t.sent())?void 0:e.data]}})})},{useErrorBoundary:!1})}function bg(){return Vf(function(e){return jh.getInstance().deleteOrgRole(e).then(function(e){return null==e?void 0:e.data})})}function kg(){return Vf(function(e){return jh.getInstance().startUserExport({accountCodes:e.account_codes,name:e.name,search:e.search,statuses:e.statuses,roleIds:e.role_ids}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function _g(){return Vf(["post-payment-links"],function(e){var t=e.payload,n=e.accountCode;return jh.getInstance().postPaymentLinks({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data})})}function wg(){return Vf(["post-delete-payment-link"],function(e){var t=e.code;return jh.getInstance().postDeletePaymentLink({code:t}).then(function(e){return null==e?void 0:e.data})})}function Eg(){return Vf(["patch-payment-links"],function(e){var t=e.payload,n=e.accountCode,r=e.paymentLinkCode;return jh.getInstance().patchPaymentLinks({payload:t,accountCode:n,paymentLinkCode:r}).then(function(e){return null==e?void 0:e.data})})}function xg(){return Vf(["upload-payment-link-logo"],function(e){var t=e.payload;return jh.getInstance().uploadPaymentLinkLogo({payload:t}).then(function(e){return null==e?void 0:e.data})})}function Sg(){return Vf(["post-subscription"],function(e){return jh.getInstance().postSubscription(e).then(function(e){return null==e?void 0:e.data})})}function Cg(){return Vf(["post-pause-subscription"],function(e){var t=e.subscriptionCode;return jh.getInstance().postPauseSubscription(t).then(function(e){return null==e?void 0:e.data})})}function Ig(){return Vf(["post-resume-subscription"],function(e){var t=e.subscriptionCode;return jh.getInstance().postResumeSubscription(t).then(function(e){return null==e?void 0:e.data})})}function Rg(){return Vf(["post-cancel-subscription"],function(e){var t=e.subscriptionCode;return jh.getInstance().postCancelSubscription(t).then(function(e){return null==e?void 0:e.data})})}function Tg(){return Vf(["patch-subscription"],function(e){var t=e.subscriptionCode,n=e.payload;return jh.getInstance().patchSubscription(t,n).then(function(e){return null==e?void 0:e.data})})}function Ag(){return Vf(["post-reschedule-subscription"],function(e){var t=e.subscriptionCode;return jh.getInstance().postRescheduleSubscription(t).then(function(e){return null==e?void 0:e.data})})}function Og(){return Vf(["post-list-subscriptions"],function(e){return jh.getInstance().postListSubscriptions(e).then(function(e){return null==e?void 0:e.data})})}function Pg(){return Vf(function(e){var t=e.payload;return jh.getInstance().postUserSettings(t)},{onMutate:function(e){return e}})}function Dg(){return Vf(function(e){return jh.getInstance().postUserThemeSettings(e)})}function Lg(){return Vf(function(e){var t=e.payload,n=e.section;return jh.getInstance().postUserSettingsTables(t,n)},{onMutate:function(e){return e},onSuccess:function(e){var n=Um.getQueryData(["fetch-profile"]);e.data&&Um.setQueryData(["fetch-profile"],t(t({},n),{settings:e.data}))}})}function jg(e){return Vf(["pinned-sections"],function(e){var t=e.payload;return jh.getInstance().postUserSettingsPinned(t)},{onMutate:function(t){var n=t.payload;return e({payload:n})}})}function Ng(){return Hf(["fetch-profile"],function(){return jh.getInstance().getProfile().then(function(e){var t=null==e?void 0:e.data;return t&&localStorage.setItem("user",JSON.stringify(t)),t}).catch(function(e){throw e})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function zg(){var e=this;return Hf(["get-user-full"],function(){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,jh.getInstance().getUserFull()];case 1:return[2,e.sent().data]}})})},{keepPreviousData:!0,useErrorBoundary:!1})}function qg(e,t){return Hf(["fetch-permissions",e,t],function(){var e,t,n,r=localStorage.getItem("account"),o=localStorage.getItem("user"),a=r&&JSON.parse(r),i=o&&JSON.parse(o);return((null==i?void 0:i.merlin)?null===(e=null==i?void 0:i.merlin)||void 0===e?void 0:e.permissions:null===(n=null===(t=null==a?void 0:a.value)||void 0===t?void 0:t.role)||void 0===n?void 0:n.permission_ids.map(function(e){return{permission_name:e,description:e,resource_server_name:e,resource_server_identifier:e}}))||[]})}function Ug(e){return Hf(["email-verification",e],function(){return jh.getInstance().emailVerification(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e})}function Mg(){return Hf({queryKey:["get-login-methods"],queryFn:function(){return jh.getInstance().getLoginMethods().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})}})}function Bg(){return Hf(["fetch-impersonation-users"],function(){return jh.getInstance().getImpersonationUsers().then(function(e){var t;return(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.result)||[]})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Fg(){return Hf(["fetch-impersonation-enabled"],function(){return jh.getInstance().getImpersonationEnabled().then(function(e){return null==e?void 0:e.data})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Gg(e,t,o,a,i,s){var c=this;return void 0===o&&(o=1),void 0===a&&(a=10),Hf(["get-users-to-impersonate",e,t,o,a,i,s],function(){return n(c,void 0,void 0,function(){return r(this,function(n){return[2,jh.getInstance().getUsersToImpersonate(e,t,o,a,i,s).then(function(e){return null==e?void 0:e.data})]})})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function Wg(e){var t;return Hf(["fetch-communications",e],function(){return jh.getInstance().getCommunications(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null===(t=e.account_codes)||void 0===t?void 0:t.length),useErrorBoundary:!1,cacheTime:3e3})}function Hg(){return Hf(["fetch-communications-filters"],function(){return jh.getInstance().getCommunicationsFilters().then(function(e){return null==e?void 0:e.data})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Vg(e,t){return Hf(["fetch-communication-details",e],function(){return jh.getInstance().getCommunicationDetails(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e,useErrorBoundary:!1,cacheTime:0})}var Kg=["fetch-profile"];function $g(n,r,o){var a,i,s=Ng(),c=Pg().mutate,u=s.data,l=s.isLoading||!s.isFetched,p=null!==(i=null===(a=null==u?void 0:u.settings)||void 0===a?void 0:a.viewed_tutorials)&&void 0!==i?i:[],h="onboarding-".concat(null!=n?n:"default","-").concat(r,"-").concat(o),f=p.includes(h),m=d(function(){var n=null;Um.setQueryData(Kg,function(r){var o,a,i;if(!r)return r;var s=null!==(a=null===(o=r.settings)||void 0===o?void 0:o.viewed_tutorials)&&void 0!==a?a:[];if(s.includes(h))return r;var c=e(e([],s,!0),[h],!1);return n=c,t(t({},r),{settings:t(t({},null!==(i=r.settings)&&void 0!==i?i:{}),{viewed_tutorials:c})})}),n&&c({payload:{viewed_tutorials:n}})},[h,c]);return{hasSeenOnboarding:f,dismiss:m,id:h,isProfileLoading:l}}function Qg(){return Vf(function(e){var t=e.password,n=e.otp;return jh.getInstance().getMfaTokenValidation(t,n).then(function(e){return null==e?void 0:e.data})})}function Yg(){return Vf(function(){return jh.getInstance().getEmailOtp().then(function(e){return null==e?void 0:e.data})})}function Jg(){return Vf(function(e){return jh.getInstance().confirmMfaOtp(e).then(function(e){return null==e?void 0:e.data})})}function Zg(){return Vf(function(e){return jh.getInstance().unrollMfa(e).then(function(e){return null==e?void 0:e.data})})}function Xg(){return Vf(function(){return jh.getInstance().validatePasswordStatus().then(function(e){return null==e?void 0:e.data}).catch(function(e){return{valid:!1}})})}function ey(){return Vf(["post-get-allowlist-items"],function(e){var t=e.payload;return jh.getInstance().postAllowlistItems({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function ty(){return Vf(["post-get-allowlist-multi-account"],function(e){var t=e.payload;return jh.getInstance().postGetAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function ny(){return Vf(["post-create-allowlist-multi-account"],function(e){var t=e.payload;return jh.getInstance().postCreateAllowlistMultiAccount({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function ry(){return Vf(["patch-change-status-allowlist"],function(e){var t=e.payload;return jh.getInstance().patchChangeStatusAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function oy(){return Vf(["patch-change-status-allowlist-item"],function(e){var t=e.payload;return jh.getInstance().patchChangeStatusAllowlistItem({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function ay(){return Vf(["post-add-allowlist-items"],function(e){var t=e.payload;return jh.getInstance().patchAddAllowlistItems({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function iy(){return Vf(["patch-allowlist"],function(e){var t=e.payload;return jh.getInstance().patchAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function sy(){return Vf(["post-blacklist-multi-account"],function(e){var t=e.payload;return jh.getInstance().postBlackListMultiAccount({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function cy(){return Vf(["put-blacklist"],function(e){return jh.getInstance().putBlackListType(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function uy(){return Vf(["change-blacklist"],function(e){return jh.getInstance().changeBlackListStatus(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function ly(){return Vf(["change-blacklist-item"],function(e){return jh.getInstance().changeBlackListStatusItem(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function dy(){return Vf(["post-blacklist-items"],function(e){var t=e.payload;return jh.getInstance().postBlackListItems({payload:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function py(){return Vf(["delete-blacklist"],function(e){var t=e.black_list_code;return jh.getInstance().deleteBlackListType({black_list_code:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function hy(e){var t=e.handleSetProgress;return Vf(["post-blacklist-batch"],function(e){var n=e.blacklist_code,r=e.expiration_days,o=e.file;return jh.getInstance().postBlackListBatch({blacklist_code:n,expiration_days:r,file:o,handleSetProgress:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function fy(){return Vf(["change-payments-webhook"],function(e){var t=e.status,n=e.paymentCode;return jh.getInstance().postChangePaymentsWebhook({status:t,paymentCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function my(){return Vf(["delete-blacklist-items"],function(e){var t=e.blocklist_code,n=e.blocklist_item_id,r=e.account_code;return jh.getInstance().deleteBlockListItem({blocklist_code:t,blocklist_item_id:n,account_code:r}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function gy(){return Vf(["valiate-blacklist-items"],function(e){return jh.getInstance().valiateBlockListItems({payload:e}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function yy(){return Vf(["delete-allowlist-item"],function(e){return jh.getInstance().deleteAllowlistItem({payload:e}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function vy(){return Vf(["validate-allowlist-items"],function(e){return jh.getInstance().validateAllowlistItems({payload:e}).then(function(e){return e.data}).catch(function(e){return e})})}function by(e){var t=e.fileName,n=e.onSuccess,r=e.onError,o=c(0),a=o[0],i=o[1],s=l({cancel:function(){return null}}),u=Vf(["upload-file-chargeback",t],function(e){var t=jh.getInstance().uploadFileS3ClientBatchRefunds({payload:e,handleSetProgress:i}),o=t.promise,a=t.cancel;return s.current.cancel=a,o.then(function(e){return null==n||n(null==e?void 0:e.data),null==e?void 0:e.data}).catch(function(e){throw null==r||r(),e})},{useErrorBoundary:!1});return{mutation:u,cancelRequest:s.current.cancel,progress:a}}function ky(){return Vf(function(e){return jh.getInstance().uploadBatchRefundsV2({payload:e}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function _y(){var e=this;return Vf(function(t){return n(e,void 0,void 0,function(){return r(this,function(e){return[2,jh.getInstance().batchRefundByFile({payload:t}).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})}function wy(){var e=this;return Vf(function(t){var o=t.batchRefundId,a=t.organizationCode,i=t.accountCode;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,jh.getInstance().getBatchRefundProcessedFileDownload(o,a,i).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})}function Ey(){var e=this;return Vf(function(t){var o=t.batchRefundId,a=t.organizationCode,i=t.accountCode;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,jh.getInstance().getBatchRefundUserFileDownload(o,a,i).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})}function xy(){var e=l({cancel:function(){return null}}),t=Vf(["upload-file"],function(t){var n=jh.getInstance().uploadFileS3ClientBatchRefunds({payload:t}),r=n.promise,o=n.cancel;return e.current.cancel=o,r.then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})});return{mutation:t,cancelRequest:e.current.cancel}}function Sy(){return Vf(function(e){var t=e.payload,n=e.organizationCode;return jh.getInstance().updateMFAConfig(t,n)})}function Cy(){return Vf(function(e){var t=e.payload,n=e.organizationCode;return jh.getInstance().mfaExcludeUsers(t,n)})}function Iy(e){return Hf(["GET/scheduled-reports",e],function(){return jh.getInstance().getScheduledReport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function Ry(){return Vf(function(e){var t=e.payload;return jh.getInstance().postScheduledReport(t).then(function(e){return{data:e.data,status:e.status}}).catch(function(e){return e})})}function Ty(){return Vf(function(e){var t=e.reportCode,n=e.payload;return jh.getInstance().updateScheduledReport(t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Ay(){return Vf(function(e){return jh.getInstance().deleteScheduledReport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Oy(){return Vf(function(e){return jh.getInstance().getConditionalConfigRules(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Py(){return Vf(function(e){return jh.getInstance().getRule(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Dy(){return Vf(function(e){var t=e.payload,n=e.accountCode;return jh.getInstance().postCreateRuleMultiAccount(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Ly(){return Vf(function(e){var t=e.payload,n=e.ruleId,r=e.accountCode;return jh.getInstance().postEditRule(t,n,r).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function jy(){return Vf(function(e){var t=e.payload;return jh.getInstance().postCreateCustomizedApiKeys(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Ny(){return Vf(function(e){var t=e.payload,n=e.code;return jh.getInstance().pathCreateCustomizedApiKeys(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function zy(){return Vf(function(e){var t=e.code,n=e.password,r=e.otp,o=e.mfaToken;return jh.getInstance().getCustomizedApiKeysToken(t,n,r,o).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})}function qy(){return Vf(function(e){var t=e.passwordOtp;return jh.getInstance().getDeveloperCredentialsValidatePassword(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})}function Uy(){return Vf(function(e){var t=e.password;return jh.getInstance().getDeveloperCredentialsValidatePasswordRegularUser(t).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function My(){return Vf(function(e){var t=e.code;return jh.getInstance().deleteCustomizedApiKeys(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function By(){return Vf(function(e){var t=e.payload,n=e.code,r=e.password;return jh.getInstance().patchApiKeysEditNote(t,n,r).then(function(e){return e.data}).catch(function(e){return e})})}function Fy(){return Vf(function(e){var t=e.payload,n=e.code,r=e.password;return jh.getInstance().postApiKeysRoll(t,n,r).then(function(e){return e.data}).catch(function(e){return e})})}function Gy(){return Vf(function(e){var n=e.password,r=e.accountCode,o=e.otp,a=e.mfaToken;return jh.getInstance().getDeveloperCredentials(n,r,o,a).then(function(e){return t(t({},null==e?void 0:e.data),{isValid:!0})}).catch(function(e){var t,n,r;return{isValid:!1,status:null===(t=e.response)||void 0===t?void 0:t.status,error:null===(r=null===(n=null==e?void 0:e.response)||void 0===n?void 0:n.data)||void 0===r?void 0:r.data}})})}function Wy(){return Vf(function(e){var t=e.password,n=e.accountCode,r=e.otp,o=e.mfaToken;return jh.getInstance().getDeveloperCredentials(t,n,r,o).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})}function Hy(){return Vf(function(){return jh.getInstance().getOrganizationKeysMetadata().then(function(e){return(null==e?void 0:e.data)||null})})}function Vy(){return Vf(function(e){var t=e.note,n=e.password;return jh.getInstance().patchOrganizationKeysNote({note:t},n).then(function(e){return(null==e?void 0:e.data)||null})})}function Ky(){return Vf(function(e){var t=e.password,n=e.otp,r=e.mfaToken;return jh.getInstance().postOrganizationKeysRoll(t,n,r).then(function(e){return(null==e?void 0:e.data)||null})})}function $y(){return Vf(function(e){var t=e.password,n=e.otp,r=e.mfaToken;return jh.getInstance().postOrganizationKeysTamRequest(t,n,r).then(function(e){return(null==e?void 0:e.data)||null})})}function Qy(){return Vf(function(e){var t=e.password,n=e.otp,r=e.mfaToken;return jh.getInstance().postOrganizationKeysMarkRevealed(t,n,r).then(function(e){return(null==e?void 0:e.data)||null})})}function Yy(e){return Vf(function(e){var t=e.payload;return jh.getInstance().postAuditMonitors(t)},{onMutate:e.onMutate})}function Jy(){return Vf(function(e){var t=e.codes;return jh.getInstance().postResendWebhooks({codes:t}).then(function(e){return null==e?void 0:e.data})})}function Zy(){return Vf(function(e){var t=e.tab,n=e.payload;return jh.getInstance().postUnifiedExport(t,n).then(function(e){return null==e?void 0:e.data})})}function Xy(){return Vf(function(e){return jh.getInstance().postExportApiLogs(e).then(function(e){return null==e?void 0:e.data})})}function ev(){return Vf(function(e){return jh.getInstance().postExportWebhooksLogs(e).then(function(e){return null==e?void 0:e.data})})}function tv(){return Vf(function(e){return jh.getInstance().postExportDashboardLogs(e).then(function(e){return null==e?void 0:e.data})})}function nv(){return Vf(function(e){return jh.getInstance().postExportMonitorsLogs(e).then(function(e){return null==e?void 0:e.data})})}function rv(t){var o=this;return Vf(function(){return jh.getInstance().createReconciliationReportTemplate(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{onMutate:function(t){return n(o,void 0,void 0,function(){var n,o;return r(this,function(r){switch(r.label){case 0:return[4,Um.cancelQueries({queryKey:["GET/reconciliation/reports/templates"]})];case 1:return r.sent(),n=null===(o=Um.getQueryData(["GET/reconciliation/reports/templates"]))||void 0===o?void 0:o.templates,Um.setQueryData(["GET/reconciliation/reports/templates"],function(n){return{templates:e(e([],n.templates,!0),[t],!1)}}),[2,{previousTemplates:n}]}})})},onError:function(e,t,n){Um.setQueryData(["GET/reconciliation/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){Um.invalidateQueries({queryKey:["GET/reconciliation/reports/templates"]})},useErrorBoundary:!1})}function ov(e){return Vf(function(){return jh.getInstance().updateReconciliationReportTemplate(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{useErrorBoundary:!1})}function av(){return Vf(["POST/reconciliation/alerts"],function(e){return jh.getInstance().postReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Um.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function iv(){return Vf(["DELETE/reconciliation/alerts"],function(e){return jh.getInstance().deleteReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Um.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function sv(){return Vf(["UPDATE/reconciliation/alerts"],function(e){return jh.getInstance().updateReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Um.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function cv(){return Vf(function(e){var t=e.payload;return jh.getInstance().postCreateInsightsReport(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function uv(){return Vf(function(e){return jh.getInstance().createSamlConfig(e)})}function lv(){return Vf(function(e){return jh.getInstance().updateSamlConfig(e)})}function dv(){return Vf(function(){return jh.getInstance().deleteSamlConfig()})}function pv(e,n){return void 0===n&&(n={}),Vf(function(t){return jh.getInstance().generateAIWorkflowRoutes(e,t).then(function(e){return null==e?void 0:e.data})},t(t({},n),{useErrorBoundary:!1}))}function hv(e){return void 0===e&&(e={}),Vf(function(e){return jh.getInstance().postAIGenerationFeedback(e).then(function(e){return null==e?void 0:e.data})},t(t({},e),{useErrorBoundary:!1}))}function fv(){return Vf(function(e){return jh.getInstance().createChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function mv(){return Vf(function(e){return jh.getInstance().deleteChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function gv(){return Vf(function(e){var t=e.chart_id,n=e.type,r=e.name,o=e.user_prompt,a=void 0===o?"":o;return jh.getInstance().patchChartGPTChart(t,{type:n,name:r,user_prompt:a}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function yv(){var e=this;return Vf(function(t){return n(e,void 0,void 0,function(){var e,n,o,a,i;return r(this,function(r){switch(r.label){case 0:return[4,jh.getInstance().createChartGPTChart(t)];case 1:if(e=r.sent(),!(n=null!==(a=null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.chartgpt_id)&&void 0!==a?a:null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.chart_id))throw new Error("Failed to create chart: No chart ID returned");return[2,{chart_id:n}]}})})},{useErrorBoundary:!1})}function vv(){return Vf(function(e){return jh.getInstance().createChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function bv(){var e=this;return Vf(function(t){return n(e,void 0,void 0,function(){var e,n,o,a,i;return r(this,function(r){switch(r.label){case 0:return[4,jh.getInstance().createChartGPTChart(t)];case 1:if(e=r.sent(),!(n=null!==(a=null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.chartgpt_id)&&void 0!==a?a:null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.chart_id))throw new Error("Failed to create chart: No chart ID returned");return[2,{chart_id:n}]}})})},{useErrorBoundary:!1})}function kv(e,t){var n=e.chartCode,r=Uf();return Vf(function(e){return jh.getInstance().submitChartFeedback(n,{rating:e.rating,issues:e.issues||[],comment:e.comment}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(e){var o;r.invalidateQueries(["chart-feedback",n]),null===(o=null==t?void 0:t.onSuccess)||void 0===o||o.call(t,e)},onError:function(e){var n;null===(n=null==t?void 0:t.onError)||void 0===n||n.call(t,e)}})}function _v(){var e=this;return Vf(["POST/template-reporting/report-templates"],function(t){return n(e,void 0,void 0,function(){return r(this,function(e){return[2,jh.getInstance().createTemplateReporting(t).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Um.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function wv(){var e=this;return Vf(["POST/template-reporting/report-templates/clone"],function(t){var o=t.templateId,a=t.payload;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,jh.getInstance().cloneReportTemplate(o,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Um.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function Ev(){var e=this;return Vf(["PATCH/template-reporting/report-templates/selection"],function(t){var o=t.templateId,a=t.payload;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,jh.getInstance().updateTemplateSelection(o,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Um.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function xv(){var e=this;return Vf(["PATCH/template-reporting/report-templates/status"],function(t){var o=t.templateId,a=t.payload;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,jh.getInstance().changeTemplateStatus(o,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Um.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function Sv(){var e=this;return Vf(["DELETE/template-reporting/report-templates"],function(t){var o=t.templateId,a=t.payload;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,jh.getInstance().deleteReportTemplate(o,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Um.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function Cv(){var e=this;return Vf(["POST/template-reporting/report-schedules"],function(t){return n(e,void 0,void 0,function(){return r(this,function(e){return[2,jh.getInstance().createReportSchedule(t).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Um.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})}function Iv(){var e=this;return Vf(["PATCH/template-reporting/report-schedules/disable"],function(t){var o=t.scheduleId,a=t.payload;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,jh.getInstance().disableReportSchedule(o,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Um.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})}function Rv(){var e=this;return Vf(["DELETE/template-reporting/report-schedules"],function(t){var o=t.scheduleId,a=t.payload;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,jh.getInstance().deleteReportSchedule(o,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Um.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})}function Tv(){return Vf(function(e){return jh.getInstance().postOrganizationConfigs(e)})}function Av(){return Vf(function(e){return jh.getInstance().putOrganizationConfigsByAccount(e)})}function Ov(){return Vf(["create-installments-plan"],function(e){var t=e.payload;return jh.getInstance().createInstallmentsPlan(t).then(function(e){return null==e?void 0:e.data})})}function Pv(){return Vf(["update-installments-plan"],function(e){var t=e.code,n=e.payload;return jh.getInstance().updateInstallmentsPlan(t,n).then(function(e){return null==e?void 0:e.data})})}function Dv(){return Vf(["delete-installments-plan"],function(e){var t=e.code;return jh.getInstance().deleteInstallmentsPlan(t).then(function(e){return null==e?void 0:e.data})})}function Lv(){return Vf(["bulk-create-installments-plans"],function(e){var t=e.payload;return jh.getInstance().bulkCreateInstallmentsPlans(t).then(function(e){return null==e?void 0:e.data})})}function jv(){return Vf(["bulk-delete-installments-plans"],function(e){var t=e.payload;return jh.getInstance().bulkDeleteInstallmentsPlans(t).then(function(e){return null==e?void 0:e.data})})}function Nv(){var e=Uf();return Vf(["create-recipient"],function(e){var t=e.organizationCode,n=e.payload;return jh.getInstance().createRecipient(t,n).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})}function zv(){var e=Uf();return Vf(["update-recipient"],function(e){var t=e.organizationCode,n=e.recipientId,r=e.payload;return jh.getInstance().updateRecipient(t,n,r).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})}function qv(){var e=Uf();return Vf(["delete-recipient"],function(e){var t=e.organizationCode,n=e.recipientId;return jh.getInstance().deleteRecipient(t,n).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})}function Uv(){var e=Uf();return Vf(["create-onboarding"],function(e){var t=e.organizationCode,n=e.recipientId,r=e.payload;return jh.getInstance().createOnboarding(t,n,r).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})}function Mv(){var e=Uf();return Vf(["update-onboarding"],function(e){var t=e.organizationCode,n=e.recipientId,r=e.onboardingId,o=e.payload;return jh.getInstance().updateOnboarding(t,n,r,o).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})}function Bv(){var e=Uf();return Vf(["block-onboarding"],function(e){var t=e.organizationCode,n=e.recipientId,r=e.onboardingId;return jh.getInstance().blockOnboarding(t,n,r).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})}function Fv(){var e=Uf();return Vf(["unblock-onboarding"],function(e){var t=e.organizationCode,n=e.recipientId,r=e.onboardingId;return jh.getInstance().unblockOnboarding(t,n,r).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})}var Gv="GET/concierge/alerts",Wv="GET/concierge/alerts/by-id";function Hv(){return Hf([Gv],function(){return jh.getInstance().getConciergeAlerts().then(function(e){return e.data})},{useErrorBoundary:!1})}function Vv(e){return Hf([Wv,e],function(){return jh.getInstance().getConciergeAlertById(e).then(function(e){return e.data})},{enabled:!!e,useErrorBoundary:!1})}function Kv(){return Vf(["POST/concierge/alerts"],function(e){return jh.getInstance().createConciergeAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Um.invalidateQueries([Gv]),Um.invalidateQueries([Wv])},useErrorBoundary:!1})}function $v(){return Vf(["DELETE/concierge/alerts"],function(e){return jh.getInstance().deleteConciergeAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Um.invalidateQueries([Gv]),Um.invalidateQueries([Wv])},useErrorBoundary:!1})}function Qv(){return Vf(["POST/concierge/alerts/enable"],function(e){var t=e.alertId,n=e.payload;return jh.getInstance().enableConciergeAlert(t,n).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Um.invalidateQueries([Gv]),Um.invalidateQueries([Wv])},useErrorBoundary:!1})}var Yv;function Jv(e){var t=this;return Hf(["fetch-payments-lazy",e],function(){return n(t,void 0,void 0,function(){return r(this,function(t){return[2,jh.getInstance().postPaymentsLazy(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function Zv(e){return Hf(["fetch-payments-evaluated",e],function(){return jh.getInstance().postPaymentsEvaluated(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function Xv(e){var t=this,o=e.paymentCode,a=e.enabled,i=void 0===a||a,s=jh.getInstance();return Hf(["get-payment-v2",o],function(){return n(t,void 0,void 0,function(){return r(this,function(e){return[2,s.getPaymentV2(o).then(function(e){return e.data})]})})},{enabled:i,cacheTime:500,useErrorBoundary:!1})}function eb(e){var t=this,o=e.payment_code,a=e.enabled,i=void 0===a||a,s=jh.getInstance();return Hf(["get-payment-transaction-details-v2",o],function(){return n(t,void 0,void 0,function(){return r(this,function(e){return[2,s.getTransactionDetailsV2({payment_code:o}).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!o&&i,cacheTime:0,useErrorBoundary:!1})}function tb(e){var t=this,o=e.transaction_code,a=e.enabled,i=void 0===a||a,s=jh.getInstance();return Hf(["get-payment-transaction-raw-response",o],function(){return n(t,void 0,void 0,function(){return r(this,function(e){return[2,s.getTransactionRawResponse({transaction_code:o})]})})},{enabled:!!o&&i,cacheTime:0,useErrorBoundary:!1})}function nb(e){var t=Am();return Hf(["payment-methods",e],function(){return jh.getInstance().getPaymentMethodsByCountry({provider_id:null==e?void 0:e.provider_id,country:null==e?void 0:e.country},t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!(null==e?void 0:e.provider_id),useErrorBoundary:!1})}function rb(){return Hf({queryKey:["/payment-methods/providers"],queryFn:function(){return jh.getInstance().getPaymentMethodsAndProviders().then(function(e){return null==e?void 0:e.data})},cacheTime:864e5,useErrorBoundary:!1})}function ob(){return Hf(["GET/catalog/card-brands"],function(){return jh.getInstance().getCardBrands().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function ab(e,t){return void 0===e&&(e=!0),void 0===t&&(t=xd.PAYMENTS),Hf(["payment-filters",e,t],function(){return jh.getInstance().getPaymentFilters(t).then(function(e){return null==e?void 0:e.data})},{enabled:e,useErrorBoundary:!1,cacheTime:3e5})}function ib(){return Hf(["payment-metrics-filters"],function(){return jh.getInstance().getPaymentMetricsFilters().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function sb(e){var t=e.transaction_code,n=e.enabled;return Hf(["payment-transaction-details",t],function(){return jh.getInstance().getPaymentTransactionsDetails({transaction_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function cb(e){var t=e.payment_code,n=e.enabled;return Hf(["transaction-history",t],function(){return jh.getInstance().getTransactionHistoryByPaymentCode({payment_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function ub(e){var t=this;return Hf(["POST/transactions",JSON.stringify(e)],function(){return n(t,void 0,void 0,function(){return r(this,function(t){return[2,jh.getInstance().postTransactions(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e,cacheTime:0,useErrorBoundary:!1})}function lb(e){var t=this;return Hf(["POST/fraud-transactions",JSON.stringify(e)],function(){return n(t,void 0,void 0,function(){return r(this,function(t){return[2,jh.getInstance().postFraudTransactions(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function db(e){return Hf(["GET/payout-detail",JSON.stringify(e)],function(){var t=jh.getInstance();return e.organization_code?t.getPayoutDetails(e).then(function(e){return null==e?void 0:e.data}):{}},{enabled:!!e.organization_code&&!!e&&e.enabled,cacheTime:0,useErrorBoundary:!1})}function pb(e){return Hf(["GET/payout-transaction-detail",JSON.stringify(e)],function(){return jh.getInstance().getPayoutTransactionDetails(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!(null==e?void 0:e.transaction_code)&&(null==e?void 0:e.enabled),cacheTime:0,useErrorBoundary:!1})}function hb(e){var t=Am();return Hf(["GET/payout-history-detail",JSON.stringify(e)],function(){return jh.getInstance().getPayoutHistoryDetails(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.payout_code)&&e.enabled,cacheTime:0,useErrorBoundary:!1})}function fb(e,t){var o=this,a=Am();return Hf(["GET/useGetProofOfCancel",a,e,t],function(){return n(o,void 0,void 0,function(){return r(this,function(n){return[2,jh.getInstance().getProofOfCancel(e,a,t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!a&&!!t,cacheTime:0,useErrorBoundary:!1})}function mb(e,t){var o=this,a=Am();return Hf(["GET/useGetProofOfPayment",a,e,t],function(){return n(o,void 0,void 0,function(){return r(this,function(n){return[2,jh.getInstance().getProofOfPayment(e,a,t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!a&&!!t,cacheTime:0,useErrorBoundary:!1})}function gb(e,t,o){var a=this,i=jh.getInstance();return Hf(["send-payment-notification",e,t],function(){return n(a,void 0,void 0,function(){var n,a;return r(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,i.sendPaymentNotification(e,t)];case 1:return n=r.sent(),o.onSuccess(),[2,n.data];case 2:throw a=r.sent(),o.onError(),a;case 3:return[2]}})})},{enabled:o.enabled,cacheTime:0,useErrorBoundary:!1})}function yb(e){return Hf(["usePayoutsList",e&&JSON.stringify(e)],function(){var t=jh.getInstance();if(e)return t.postPayouts(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&!!Object.values(e).length,cacheTime:0})}function vb(e){var t=this;void 0===e&&(e=!0);var o=Am();return Hf(["getPayoutsFilters",o],function(){return n(t,void 0,void 0,function(){return r(this,function(e){return[2,jh.getInstance().getPayoutsFilters(o).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})]})})},{enabled:e&&!!o})}function bb(e,t){var o=this;void 0===t&&(t=!0);var a=Am();return Hf(["getPayoutTimeline",e,a],function(){return n(o,void 0,void 0,function(){var t;return r(this,function(n){return t=jh.getInstance(),e?[2,t.getPayoutTimeline(e,a).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})]:[2]})})},{enabled:t&&!!e&&!!a,cacheTime:500,useErrorBoundary:!1})}function kb(e){var n=e.password,r=e.accountCode,o=e.otp,a=e.mfaToken;return Hf(["developers"],function(){return jh.getInstance().getDeveloperCredentials(n,r,o,a).then(function(e){return t(t({},null==e?void 0:e.data),{isValid:!0})}).catch(function(e){var t,n;return{isValid:!1,status:e.response.status,error:null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.data}})},{enabled:!1,cacheTime:0})}function _b(){return Hf(["fetch-customized-api-keys-members"],function(){return jh.getInstance().getCustomizedApiKeysMembers().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})}function wb(){return Hf(["developers-get-allowed-ips"],function(){return jh.getInstance().getAllowedIps().then(function(e){return(null==e?void 0:e.data)?t(t({},null==e?void 0:e.data),{isError:!1}):null}).catch(function(e){return t(t({},e),{isError:!0})})},{enabled:!1,cacheTime:0})}function Eb(){return Hf(["fetch-customized-api-keys-accounts"],function(){return jh.getInstance().getCustomizedApiKeysAccounts().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})}function xb(e){return Hf(["fetch-customized-api-keys",e],function(){return jh.getInstance().postCustomizedApiKeys(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{cacheTime:0,enabled:!!(null==e?void 0:e.length)})}function Sb(){return Hf(["fetch-customized-api-keys-products"],function(){return jh.getInstance().getCustomizedApiKeysProducts().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{cacheTime:0})}function Cb(){return Vf(["developers-patch-allowed-ips"],function(e){return jh.getInstance().patchAllowedIps(e).then(function(e){return(null==e?void 0:e.data)?t(t({},null==e?void 0:e.data),{isError:!1}):null}).catch(function(e){return t(t({},e),{isError:!0})})},{cacheTime:0})}function Ib(){return Hf(["fetch-organizations"],function(){return jh.getInstance().getOrganization().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})}function Rb(){return Hf(["fetch-all-organizations",Am()],function(){return jh.getInstance().getAllOrganization().then(function(e){return(null==e?void 0:e.data)||[]})},{cacheTime:36e5,keepPreviousData:!0,useErrorBoundary:!1})}function Tb(e){var t=Am();return Hf(["organizations-provider-params",e],function(e){var n=e.queryKey;return jh.getInstance().getProviderParams(n[1],t).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.id),useErrorBoundary:!1})}function Ab(e){var t=e.integration_code,n=e.enabled,r=e.accountCode;return Hf(["integration-params",t,r],function(){return t.includes("undefined")?{}:jh.getInstance().getIntegrationParams({accountCode:r,integration_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:n,useErrorBoundary:!1})}function Ob(e){var t=e.accountCode,n=e.organizationCode,r=Am();return Hf(["organizations-account-integrations",t,n],function(){return jh.getInstance().getIntegrationByAccountV2({accountCode:t,organizationCode:n||r}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,enabled:!!t,useErrorBoundary:!1})}function Pb(e){var t=e.accountCode,n=e.paymentMethod,r=e.basePath,o=void 0===r?Ad.DEFAULT_ROUTING_TYPE:r;return Hf(["fetch-connections-by-payment-method",n,t,o],function(){return jh.getInstance().getConnectionsByPaymentMethod(t,n,o).then(function(e){return null==e?void 0:e.data})},{enabled:!!n&&!!t,cacheTime:0,useErrorBoundary:!1})}function Db(){var e=this;return Hf(["fetch-hash-pylon"],function(){return n(e,void 0,void 0,function(){return r(this,function(e){return[2,jh.getInstance().getHashPylon()]})})},{keepPreviousData:!0,useErrorBoundary:!1})}function Lb(){return Hf(["connections"],function(){return jh.getInstance().getConnections().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function jb(){return Hf(["dialogs"],function(){return jh.getInstance().getDialogs().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,retryDelay:2e3,cacheTime:36e5})}function Nb(){return Hf(["params-catalog"],function(){return jh.getInstance().getWebhookParamsV2().then(function(e){return null==e?void 0:e.data})})}function zb(e){var t=e.accountCode,n=e.name;return Hf(["webhooks",t,n],function(){return jh.getInstance().getWebhooksV3({accountCode:t,name:n}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t,useErrorBoundary:!1})}function qb(e){var t=e.accountCode,n=e.enabled;return Hf(["webhooks-detail",t],function(){return jh.getInstance().getWebhooksV2Detail({accountCode:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!n})}function Ub(e){var t,n=Am(),r=null!==(t=null!=e?e:n)&&void 0!==t?t:null;return Hf({queryKey:["accounts",r],queryFn:function(){return jh.getInstance().getAccounts(r).then(function(e){return null==e?void 0:e.data})},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!r})}function Mb(e){return Hf(["accountsV2",e],function(){return jh.getInstance().getAccountsV2().then(function(e){return(null==e?void 0:e.data)||[]}).catch(function(e){throw e})},{keepPreviousData:!0,enabled:!!e,useErrorBoundary:!1})}function Bb(e){return Hf(["accountsV2-by-user",e],function(){return e?jh.getInstance().getAccountsByUser(e).then(function(e){return{accountsV2ByUser:(null==e?void 0:e.data)||null}}).catch(function(e){return{accountsV2ByUser:[],error:e}}):{accountsV2ByUser:[]}},{enabled:!!e,staleTime:0})}function Fb(e,t){var o=this;return Hf({queryKey:["accounts-for-impersonation",e,t],queryFn:function(){return n(o,void 0,void 0,function(){return r(this,function(n){return[2,jh.getInstance().getAccountsForImpersonation(e).then(function(e){var n,r;return(null===(r=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.response)||void 0===r?void 0:r.map(function(e){return{label:e.name,value:t?e.code_testing:e.code_live,code_live:e.code_live,code_testing:e.code_testing}}))||[]})]})})},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function Gb(e){var t=this;return Hf({queryKey:["roles-for-impersonation",e],queryFn:function(){return n(t,void 0,void 0,function(){return r(this,function(t){return[2,jh.getInstance().getRolesForImpersonation(e).then(function(e){var t,n;return(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.roles)||void 0===n?void 0:n.map(function(e){return{label:e.name,value:e.id}}))||[]})]})})},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function Wb(e){return Hf({queryKey:["pending-duplicate-accounts",e],queryFn:function(){return jh.getInstance().getPendingDuplicateAccounts()},useErrorBoundary:!1,keepPreviousData:!0,refetchInterval:e})}function Hb(){return Hf(["menu"],function(){return jh.getInstance().getMenu().then(function(e){return mh(e)?wh:null==e?void 0:e.data}).catch(function(){return wh})})}function Vb(){return Hf(["/payment/statuses/style"],function(){return jh.getInstance().useGetPaymentStatusesStyles().then(function(e){return mh(e)?gh:null==e?void 0:e.data}).catch(function(){return gh})})}function Kb(){return Hf(["/transaction/statuses/style"],function(){return jh.getInstance().useGetTransactionStatusesStyles().then(function(e){return mh(e)?yh:null==e?void 0:e.data}).catch(function(){return yh})},{cacheTime:36e5,useErrorBoundary:!1})}function $b(){return Hf(["/reconciliation/transaction/statuses/style"],function(){return jh.getInstance().useGetReconciliationTransactionStatusesStyles().then(function(e){return mh(e)?vh:null==e?void 0:e.data}).catch(function(){return vh})},{useErrorBoundary:!1})}function Qb(){return Hf(["timezone-catalog"],function(){return jh.getInstance().useGetTimeZoneCatalog().then(function(e){return mh(e)?bh:null==e?void 0:e.data}).catch(function(){return bh})})}function Yb(){return Hf(["/cms/audit-logs-filters"],function(){return jh.getInstance().useGetAuditLogsFilters().then(function(e){return mh(e)?kh:null==e?void 0:e.data}).catch(function(){return kh})})}function Jb(){return Hf(["/cms/static-contents"],function(){return jh.getInstance().getDashboardStaticContents().then(function(e){var t,n;return mh(e)?_h:(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t[0])||void 0===n?void 0:n.data)||{}})},{cacheTime:6048e5,useErrorBoundary:!1})}function Zb(){return Hf(["/cms/locales"],function(){return jh.getInstance().getLocales().then(function(e){return mh(e)?Eh:e.data}).catch(function(){return Eh})})}function Xb(e,t){return void 0===t&&(t=Ad.DEFAULT_ROUTING_TYPE),Hf(["smart-routing-methods",e,t],function(){return jh.getInstance().getSmartRoutingMethods(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function ek(e,t,n){return void 0===n&&(n=Ad.DEFAULT_ROUTING_TYPE),Hf(["smart-routing-workflow",t,e,n],function(){return jh.getInstance().getSmartRoutingWorkflow(e,t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!e,cacheTime:0,retry:!1})}function tk(e,t,n){return void 0===n&&(n=Ad.DEFAULT_ROUTING_TYPE),Hf(["smart-routing-condition-types",e,t,n],function(){return jh.getInstance().getSmartRoutingConditionTypes(e,t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!e})}function nk(e,t){return Hf(["smart-routing-condition-payment-method",e,t],function(){return jh.getInstance().getSmartRoutingConditionPaymentMethod(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:null!==t})}function rk(e,t){return Hf(["smart-routing-condition-types-values",t,e],function(){return jh.getInstance().getSmartRoutingConditionTypesValues(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&!!e,useErrorBoundary:!1})}function ok(e){var t=e.accountCode,n=e.workflowVersionId,r=e.routingType,o=void 0===r?Ad.DEFAULT_ROUTING_TYPE:r;return Hf(["smart-routing-workflow-version",n,t,o],function(){return jh.getInstance().getSmartRoutingWorkflowVersion(t,n,o).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!n&&!!t,cacheTime:0})}function ak(e,t,n,r){return void 0===r&&(r=Ad.DEFAULT_ROUTING_TYPE),Hf(["smart-routing-next-route",e,n,t,r],function(){return jh.getInstance().getSmartRoutingNextSteps(e,t,n,r).then(function(e){return null==e?void 0:e.data})},{enabled:!!e,useErrorBoundary:!1})}function ik(e,t){return void 0===t&&(t=Ad.DEFAULT_ROUTING_TYPE),Hf(["smart-routing-decline-groups",e,t],function(){return jh.getInstance().getSmartRoutingDeclinedGroup(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function sk(e,t,n){return void 0===n&&(n=Ad.DEFAULT_ROUTING_TYPE),Hf(["smart-routing-payment-route",e,t,n],function(){return jh.getInstance().getSmartRoutingPaymentRoute(e,t,n).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!t,cacheTime:0,useErrorBoundary:!1})}function ck(e,t){return void 0===t&&(t=Ad.DEFAULT_ROUTING_TYPE),Hf(["smart-routing-simulate-condition-type-values",e,t],function(){return jh.getInstance().getSmartRoutingSimulateConditionTypeValues(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function uk(e){var t=e.text,n=e.conditionType;return Hf(["smart-routing-search-condition-values",t,n],function(){return jh.getInstance().getSmartRoutingSearchConditionValues(n,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!n&&!!t,cacheTime:0})}function lk(){return Hf(["smart-routing-conversion-rates"],function(){return jh.getInstance().getProviderConversionRatesData().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!1,useErrorBoundary:!1})}function dk(){var e=this;return Hf({queryKey:["smart-routing-3ds-excemptions"],queryFn:function(){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,jh.getInstance().get3DSExemptions()];case 1:return[2,e.sent().data]}})})},useErrorBoundary:!1})}function pk(){var e=this;return Hf({queryKey:["smart-routing-network-tokens-onboarding"],queryFn:function(){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,jh.getInstance().getNetworkTokensOnboarding()];case 1:return[2,e.sent().data]}})})},useErrorBoundary:!1})}function hk(e){return Hf(["fetch-routing-monitors-templates",e],function(){return jh.getInstance().getRoutingMonitorsTemplates(e).then(function(e){return e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function fk(e,t){return Hf(["fetch-routing-monitors-template",e],function(){return jh.getInstance().getRoutingMonitorsTemplate(e,t).then(function(e){return e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:!!e&&!!t&&"NONE"!==e,useErrorBoundary:!1})}function mk(e,n){var r=e.accountCode;return Hf(["checkouts",r],function(){return jh.getInstance().getCheckouts({accountCode:r}).then(function(e){return e.data})},t({cacheTime:0,enabled:Boolean(r),useErrorBoundary:!1},n))}!function(e){e.IN_PROGRESS="IN_PROGRESS",e.COMPLETED="COMPLETED",e.FAILED="FAILED"}(Yv||(Yv={}));var gk=function(e){return["checkout-builder-name-and-icon",e.paymentMethodType,e.type]},yk=function(e,t){var n=e.paymentMethodType,r=e.type;return Hf(gk({paymentMethodType:n,type:r}),function(){return jh.getInstance().getNameAndIcon({paymentMethodType:n,type:r}).then(function(e){return null==e?void 0:e.data})},t)},vk=function(e){return["checkout-builder-required-fields",e.paymentMethodType,e.type]},bk=function(e,t){var n=e.paymentMethodType,r=e.type;return Hf(vk({paymentMethodType:n,type:r}),function(){return jh.getInstance().getRequiredFields({paymentMethodType:n,type:r}).then(function(e){return null==e?void 0:e.data})},t)},kk=function(e){return Hf(["checkout-builder-country-data",e],function(){return jh.getInstance().getCountryData({accountCode:e}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,enabled:Boolean(e),useErrorBoundary:!1})},_k=function(e){return["checkout-payment-method-accounts",e.paymentMethod,e.organizationCode]},wk=function(e,n){var r=e.paymentMethod,o=e.organizationCode;return Hf(_k({paymentMethod:r,organizationCode:o}),function(){return jh.getInstance().getPaymentMethodAccounts({paymentMethod:r,organizationCode:o}).then(function(e){return null==e?void 0:e.data})},t({cacheTime:0,enabled:Boolean(r),useErrorBoundary:!1},n))};function Ek(e){var t=e.accountCode;return Hf(["styling-sdk-dynamic",t],function(){return jh.getInstance().getStylingSdkDynamic({accountCode:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function xk(e){var t=e.accountCode;return Hf(["styling-settings-v2",t],function(){return jh.getInstance().getStylingSettingsV2({accountCode:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function Sk(){return Vf(function(e){var t=e.accountCode,n=e.payload;return jh.getInstance().changeStylingSettings({accountCode:t,payload:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function Ck(e){return Hf(["notifications-customer",e],function(){return jh.getInstance().getNotificationsCustomer(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,keepPreviousData:!1})}function Ik(e){return Hf(["validate-opsgenie-key",e],function(){return jh.getInstance().getValidateOpsgenieKey(e).then(function(e){return null==e?void 0:e.data}).catch(function(){return{error:!0}})},{enabled:!!e,cacheTime:0})}function Rk(){return Hf(["notifications-merged"],function(){return jh.getInstance().getMergedNotifications().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{keepPreviousData:!1,cacheTime:0})}function Tk(){return Vf(function(e){return jh.getInstance().getNotificationsNumber(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Ak(){var e=this;return Vf(function(t){return n(e,void 0,void 0,function(){var e;return r(this,function(n){switch(n.label){case 0:return[4,jh.getInstance().pathNotification(t)];case 1:return[2,null==(e=n.sent())?void 0:e.data]}})})})}var Ok={key:"metadata_fields",name:"metadata_fields",unique_key:"metadata_fields"};function Pk(){return Hf(["reports"],function(){return jh.getInstance().reportsList().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Dk(e){return void 0===e&&(e=!0),Hf(["reports-multi-env"],function(){return jh.getInstance().reportsListMultiEnv().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e})}function Lk(e,t,n){return void 0===t&&(t=!1),Hf(["reports/".concat(e)],function(){return jh.getInstance().downloadReports(e).then(function(e){return null==e?void 0:e.data})},{enabled:t,onSuccess:n,useErrorBoundary:!1})}function jk(e){return Hf(["GET/reports/templates"],function(){return jh.getInstance().getReportTemplates().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e,useErrorBoundary:!1})}function Nk(t,o,a){var i=this;return Hf(["GET/reports/columns/".concat(o,"/").concat(a)],function(){return n(i,void 0,void 0,function(){return r(this,function(t){return[2,jh.getInstance().getReportColumns(o,a).then(function(t){return o===Td.ALL&&a===Rd.PAYMENTS?e(e([],(null==t?void 0:t.data)||[],!0),[Ok],!1):null==t?void 0:t.data}).catch(function(e){return e})]})})},{enabled:t,useErrorBoundary:!1})}function zk(e,t){var o=this,a=Am();return Hf(["getRefundPdf",e,a,t],function(){return n(o,void 0,void 0,function(){return r(this,function(n){return[2,jh.getInstance().getRefundPdf(e,a,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})]})})},{enabled:!!e&&!!a,useErrorBoundary:!1})}function qk(){var e=Am();return Hf(["teams-filters-members"],function(){return jh.getInstance().teamsFiltersMembers({organizationCode:e}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0})}function Uk(e){var t=e.organizationCode,n=e.accountCodes,r=e.search,o=e.status,a=e.roleId,i=e.statuses,s=e.roleIds,c=e.page,u=e.pageSize,l=Am();return Hf(["fetch-post-members-v2",t,n,r,o,a,i,s,c,u],function(){return jh.getInstance().postMembersPaginatedV2({organizationCode:l,accountCodes:n,search:r,status:o,roleId:a,statuses:i,roleIds:s,page:c,pageSize:u}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&!!n,cacheTime:0,useErrorBoundary:!1})}function Mk(){return Hf(["fetch-roles"],function(){return jh.getInstance().getRoles().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Bk(){return Hf(["fetch-rolespermissions"],function(){return jh.getInstance().getRolesPermissions().then(function(e){return null==e?void 0:e.data})})}function Fk(){return Hf(["fetch-permissions-catalog"],function(){return jh.getInstance().getPermissionsCatalog().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function Gk(){return Hf(["fetch-org-roles-permissions"],function(){return jh.getInstance().getOrgRolesPermissions().then(function(e){return null==e?void 0:e.data})})}function Wk(){return Hf(["fetch-org-permissions-catalog"],function(){return jh.getInstance().getOrgPermissionsCatalog().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Hk(e){var t=e.exportCode,n=e.enabled;return Hf(["user-export-status",t],function(){return jh.getInstance().getUserExportStatus({exportCode:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&(void 0===n||n),refetchInterval:function(e){return("PENDING"===(null==e?void 0:e.status)||"IN_PROGRESS"===(null==e?void 0:e.status))&&5e3},useErrorBoundary:!1})}function Vk(e){var t=e.page,n=void 0===t?0:t,r=e.pageSize,o=void 0===r?20:r,a=e.enabled;return Hf(["user-exports-list",n,o],function(){return jh.getInstance().listUserExports({page:n,pageSize:o}).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===a||a,useErrorBoundary:!1})}function Kk(){var e=this,t=Uf();return function(o){return n(e,void 0,void 0,function(){return r(this,function(e){return[2,t.fetchQuery(["user-export-status",o],function(){return jh.getInstance().getUserExportStatus({exportCode:o}).then(function(e){return null==e?void 0:e.data})})]})})}}function $k(e){return Hf(["data-report",e],function(){return jh.getInstance().getSmartRoutingDataReport(e).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,useErrorBoundary:!1})}function Qk(e,t,n,r){void 0===n&&(n=!0);return Hf(["get-insights-conversion-rate-metrics-v2",e,t],function(){return jh.getInstance().getInsightsMetricsConversionRateV2(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:n&&(!!(null==e?void 0:e.currency_code)&&"Empty"!==(null==e?void 0:e.currency_code)&&"string"==typeof(null==e?void 0:e.currency_code)||Array.isArray(null==e?void 0:e.currency_code)&&0===(null==e?void 0:e.currency_code.length)),staleTime:200,cacheTime:200,useErrorBoundary:!1,retry:1})}function Yk(e,t){return Hf(["get-insights-conversion-rate-view-more-metrics",t,e],function(){return jh.getInstance().getInsightsMetricsConversionRateViewMore(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.enabled)&&!!t,cacheTime:200,useErrorBoundary:!1})}function Jk(e){return Hf(["get-insights-conversion-rate-fallback-metrics",e],function(){return jh.getInstance().getInsightFallbackMetrics(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.enabled),cacheTime:200,useErrorBoundary:!1})}function Zk(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Hf(["get-insights-volume-metrics",t,e],function(){return jh.getInstance().getInsightsMetricsVolume(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:200,useErrorBoundary:!1})}function Xk(e,t,n,r){return void 0===r&&(r=!0),delete t.account_code,Hf(["get-insights-volume-metrics-v2",t,e,n],function(){return jh.getInstance().getInsightsMetricsVolumeV2(e,n,t).then(function(e){return null==e?void 0:e.data})},{enabled:r,cacheTime:200,useErrorBoundary:!1})}function e_(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Hf(["get-insights-total-payment-fraud-metrics",t,e],function(){return jh.getInstance().getInsightsMetricsTotalPaymentsAndFraud(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:200,useErrorBoundary:!1})}function t_(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Hf(["get-insights-customer-payment-fraud-metrics",t,e],function(){return jh.getInstance().getInsightsMetricsCustomerPaymentsAndFraud(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:200,useErrorBoundary:!1})}function n_(e){return Hf(["get-insights-overview",e],function(){return jh.getInstance().getInsightOverview(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.enabled)&&void 0!==e.account_code,cacheTime:200,useErrorBoundary:!1})}function r_(e,t){var n=!!(null==e?void 0:e.enabled)&&void 0!==(null==e?void 0:e.account_code);return Hf(["get-insights-overview-v3",e,t],function(){return jh.getInstance().getInsightOverviewV3(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:0,useErrorBoundary:!1})}function o_(e){return Hf(["get-insights-home-metrics",e],function(){return jh.getInstance().getInsighstHomeMetrics(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.currency_code)&&!!(null==e?void 0:e.account_codes)&&!!(null==e?void 0:e.organization_code)&&(null==e?void 0:e.isLiveMode)&&!!(null==e?void 0:e.timezone),cacheTime:200,useErrorBoundary:!1})}function a_(e){return Hf(["get-insights-reports",e],function(){return jh.getInstance().getInsightsReport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!(null==e?void 0:e.type),cacheTime:0,useErrorBoundary:!1})}function i_(e){return Hf(["get-insights-reports-again",e],function(){return jh.getInstance().getInsightsReportAgain(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!(null==e?void 0:e.code),cacheTime:0,useErrorBoundary:!1})}function s_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Hf({queryKey:["post-insights-fraud-screening-volume-and-count-tx",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,jh.getInstance().getInsightsFraudScreeningVolumeAndCountTx(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function c_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Hf({queryKey:["post-insights-fraud-screening-conversion-rate",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,jh.getInstance().getInsightsFraudScreeningConversionRate(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function u_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Hf({queryKey:["post-insights-3ds-volume-and-count-tx",t,e],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,jh.getInstance().getInsights3dsVolumeAndCountTx(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function l_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Hf({queryKey:["post-insights-3ds-conversion-rate-and-evolution",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,jh.getInstance().getInsights3dsConversionRateAndEvolution(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function d_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Hf({queryKey:["post-insights-3ds-decline-reasons",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,jh.getInstance().getInsights3dsDeclineReasons(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function p_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Hf({queryKey:["post-insights-3ds-frictionless-vs-challenge",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,jh.getInstance().getInsights3dsFrictionlessVsChallenge(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function h_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Hf({queryKey:["post-insights-chargebacks-volume-and-count-tx",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,jh.getInstance().getInsightsChargebacksVolumeAndCountTx(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function f_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Hf({queryKey:["post-insights-chargebacks-total-rate-and-evolution",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,jh.getInstance().getInsightsChargebacksTotalRateAndEvolution(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function m_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Hf({queryKey:["post-insights-chargebacks-win-rate",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,jh.getInstance().getInsightsChargebacksWinRate(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function g_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Hf({queryKey:["post-insights-chargebacks-disputed",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,jh.getInstance().getInsightsChargebacksDisputed(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function y_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Hf({queryKey:["post-insights-chargebacks-by-provider-and-card-brand",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,jh.getInstance().getInsightsChargebacksByProviderAndCardBrand(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function v_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Hf({queryKey:["post-insights-chargebacks-reasons-distribution",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,jh.getInstance().getInsightsChargebacksReasonsDistribution(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function b_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Hf({queryKey:["post-insights-chargebacks-status-distribution",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,jh.getInstance().getInsightsChargebacksStatusDistribution(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function k_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Hf({queryKey:["post-insights-chargebacks-by-card-brand",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,jh.getInstance().getInsightsChargebacksByCardBrand(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function __(e,t){return Hf(["fetch-reconciliation-transaction",e],function(){return jh.getInstance().getReconciliationTransactions(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!!t,useErrorBoundary:!1})}function w_(e,t){return Hf(["fetch-reconciliation-settlements",e],function(){return jh.getInstance().getReconciliationSettlements(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!!t,useErrorBoundary:!1})}function E_(e,t){return Hf(["fetch-reconciliation-metrics",e],function(){return jh.getInstance().getReconciliationMetrics(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t,cacheTime:500})}function x_(){return Hf(["GET-reconciliation-filters"],function(){return jh.getInstance().getReconciliationFilters().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function S_(e){return Hf(["GET/v1/reconciliation/table/".concat(e,"/columns")],function(){return jh.getInstance().getAllTableColumns(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function C_(){return Hf(["GET/v1/reconciliation/active"],function(){return jh.getInstance().getReconciliationActive().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{useErrorBoundary:!1})}function I_(e,t,n){return Hf(["GET/reconciliation/reports/columns/".concat(t,"/").concat(n)],function(){return jh.getInstance().getReconciliationsReportColumns(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{enabled:e,useErrorBoundary:!1})}function R_(e){return Hf(["GET/reconciliation/reports/templates"],function(){return jh.getInstance().getReconciliationReportTemplates().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{enabled:e,useErrorBoundary:!1})}function T_(e){var t=e.body,n=e.params,r=e.enabled;return Hf(["GET/reconciliation/alerts/list",t,n],function(){return jh.getInstance().getReconciliationAlerts(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})}function A_(e){var t=e.body,n=e.params,r=e.enabled;return Hf(["GET/reconciliation/agenda/list",t,n],function(){return jh.getInstance().getReconciliationAgenda(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})}function O_(e){var t=e.body,n=e.params,r=e.enabled;return Hf(["GET/reconciliation/agenda/insights",t,n],function(){return jh.getInstance().getReconciliationAgendaInsightByKey(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})}function P_(e){var t=e.body,n=e.params,r=e.enabled;return Hf(["GET/reconciliation/sales/list",t,n],function(){return jh.getInstance().getReconciliationSales(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})}function D_(e){var t=e.body,n=e.params,r=e.enabled;return Hf(["GET/reconciliation/advancements/list",t,n],function(){return jh.getInstance().getReconciliationAdvancements(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})}function L_(e){var t=e.body,n=e.params,r=e.enabled;return Hf(["GET/reconciliation/fees/list",t,n],function(){return jh.getInstance().getReconciliationFees(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})}function j_(e){var t=e.body,n=e.enabled;return Hf(["reconciliation-insights-conflicts-summary",t],function(){return jh.getInstance().getReconciliationInsightsConflictsSummary(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function N_(e){var t=e.body,n=e.enabled;return Hf(["reconciliation-insights-not-reconciled-aggregators",t],function(){return jh.getInstance().getReconciliationInsightsNotReconciledAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function z_(e){var t=e.body,n=e.enabled;return Hf(["reconciliation-insights-not-reconciled-list",t],function(){return jh.getInstance().getReconciliationInsightsNotReconciledList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function q_(e){var t=e.body,n=e.enabled;return Hf(["reconciliation-insights-status-conflict-aggregators",t],function(){return jh.getInstance().getReconciliationInsightsStatusConflictAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function U_(e){var t=e.body,n=e.enabled;return Hf(["reconciliation-insights-status-conflict-list",t],function(){return jh.getInstance().getReconciliationInsightsStatusConflictList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function M_(e){var t=e.body,n=e.enabled;return Hf(["reconciliation-insights-amount-conflict-aggregators",t],function(){return jh.getInstance().getReconciliationInsightsAmountConflictAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function B_(e){var t=e.body,n=e.enabled;return Hf(["reconciliation-insights-amount-conflict-list",t],function(){return jh.getInstance().getReconciliationInsightsAmountConflictList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function F_(e){var t=e.body,n=e.enabled;return Hf(["reconciliation-insights-conflict-date-summary",t],function(){return jh.getInstance().getReconciliationInsightsConflictDateSummary(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function G_(e){var t=e.body,n=e.enabled;return Hf(["reconciliation-insights-conflict-date-aggregators",t],function(){return jh.getInstance().getReconciliationInsightsConflictDateAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function W_(e){var t=e.body,n=e.enabled;return Hf(["reconciliation-insights-conflict-date-list",t],function(){return jh.getInstance().getReconciliationInsightsConflictDateList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function H_(e){var t=e.body,n=e.dateFilter,r=e.enabled;return Hf(["reconciliation-insights-incorrect-fees-summary",t,n],function(){return jh.getInstance().getReconciliationInsightsIncorrectFeesSummary(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===r||r,useErrorBoundary:!1})}function V_(e){var t=e.body,n=e.dateFilter,r=e.enabled;return Hf(["reconciliation-insights-incorrect-fees-aggregators",t,n],function(){return jh.getInstance().getReconciliationInsightsIncorrectFeesAggregators(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===r||r,useErrorBoundary:!1})}function K_(e){var t=e.body,n=e.dateFilter,r=e.enabled;return Hf(["reconciliation-insights-incorrect-fees-list",t,n],function(){return jh.getInstance().getReconciliationInsightsIncorrectFeesList(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===r||r,useErrorBoundary:!1})}function $_(e){var t=e.body,n=e.dateFilter,r=e.enabled;return Hf(["reconciliation-insights-fees-charged-summary",t,n],function(){return jh.getInstance().getReconciliationInsightsFeesChargedSummary(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===r||r,useErrorBoundary:!1})}function Q_(e){var t=e.body,n=e.dateFilter,r=e.enabled;return Hf(["reconciliation-insights-reconciled-summary",t,n],function(){return jh.getInstance().getReconciliationInsightsReconciledSummary(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===r||r,useErrorBoundary:!1})}function Y_(e){var t=e.body,n=e.dateFilter,r=e.transactionType,o=e.enabled;return Hf(["reconciliation-insights-reconciled-aggregators",t,n,r],function(){return jh.getInstance().getReconciliationInsightsReconciledAggregators(t,n,r).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===o||o,useErrorBoundary:!1})}function J_(e){var t=e.body,n=e.dateFilter,r=e.transactionType,o=e.enabled;return Hf(["reconciliation-insights-reconciled-list",t,n,r],function(){return jh.getInstance().getReconciliationInsightsReconciledList(t,n,r).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===o||o,useErrorBoundary:!1})}function Z_(e){var t=e.body,n=e.enabled;return Hf(["reconciliation-insights-not-confirm-summary",t],function(){return jh.getInstance().getReconciliationInsightsNotConfirmSummary(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function X_(e){var t=e.body,n=e.enabled;return Hf(["reconciliation-insights-not-confirm-aggregators",t],function(){return jh.getInstance().getReconciliationInsightsNotConfirmAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function ew(e){var t=e.body,n=e.enabled;return Hf(["reconciliation-insights-not-confirm-list",t],function(){return jh.getInstance().getReconciliationInsightsNotConfirmList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function tw(e){var t=e.body,n=e.enabled;return Hf(["reconciliation-insights-amount-to-be-settled-summary",t],function(){return jh.getInstance().getReconciliationInsightsAmountToBeSettledSummary(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function nw(e){var t=e.body,n=e.enabled;return Hf(["reconciliation-insights-reconciliation-rate-by-provider",t],function(){return jh.getInstance().getReconciliationInsightsReconciliationRateByProvider(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function rw(e){var t=e.body,n=e.enabled;return Hf(["reconciliation-insights-reconciliation-rate-by-account",t],function(){return jh.getInstance().getReconciliationInsightsReconciliationRateByAccount(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function ow(e){var t=e.body,n=e.enabled;return Hf(["reconciliation-insights-reconciliation-rate-by-currency",t],function(){return jh.getInstance().getReconciliationInsightsReconciliationRateByCurrency(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function aw(e){var t=this,o=Object.values(e).filter(Boolean);return Hf(["feature-flags",o],function(){return n(t,void 0,void 0,function(){return r(this,function(t){return[2,jh.getInstance().getFeatureFlagId(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:o.length>1,useErrorBoundary:!1})}function iw(e){var t=this,o=Hf({queryKey:["all-feature-flags",Object.values(e).filter(Boolean)],queryFn:function(){return n(t,void 0,void 0,function(){return r(this,function(t){return[2,jh.getInstance().getFeatureFlagIdAll({accountCode:e.account_code}).then(function(e){return null==e?void 0:e.data})]})})},enabled:!!e.account_code&&!!e.organization_code&&!!e.email,cacheTime:9e5,useErrorBoundary:!1}),a=Uf();return u(function(){a.setQueryData(["cached-feature-flags"],o)},[o,a]),o}function sw(e){var n,r,o=Uf(),a=o.getQueryState(["cached-feature-flags"]),i=Boolean(!(null===(n=null==a?void 0:a.data)||void 0===n?void 0:n.status)||"loading"===(null===(r=null==a?void 0:a.data)||void 0===r?void 0:r.status)),s=Hf({queryKey:["cached-feature-flags"],queryFn:function(){},enabled:!1,select:function(t){var n;return{result:null===(n=null==t?void 0:t.data)||void 0===n?void 0:n[e]}},initialData:function(){var e=o.getQueryData(["cached-feature-flags"]);return(null==e?void 0:e.data)||{}}});return t(t({},s),{isLoading:i})}function cw(e){return Hf(["events",e],function(){return jh.getInstance().getAuditEvents(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.account_code&&!!e.organizationCode,cacheTime:0,keepPreviousData:!0,useErrorBoundary:!1})}function uw(e){return Hf(["audit-monitor-event-detail",e],function(){return jh.getInstance().getAuditMonitorDetail(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:null!==e,cacheTime:0,useErrorBoundary:!1})}function lw(e){return Hf(["api-logs",e],function(){return jh.getInstance().postApiLogs({payload:e}).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.organizationCode,cacheTime:0,useErrorBoundary:!1})}function dw(e){var t=e.params;return Hf(["webhook-logs",t],function(){return jh.getInstance().postWebhookLogs({payload:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t.organizationCode,cacheTime:0,useErrorBoundary:!1})}function pw(e,t){return Hf(["api-logs-detail",e,t],function(){return jh.getInstance().getApiLogsDetailByPaymentCode(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e,cacheTime:0,useErrorBoundary:!1})}function hw(e,t){return Hf(["api-logs-by-transaction",e,t],function(){return jh.getInstance().getApiLogsByTransactionCode(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!t,cacheTime:0,useErrorBoundary:!1})}function fw(e,t){return void 0===t&&(t=!0),Hf(["audit-exports-list",e],function(){return jh.getInstance().getAuditExportsList(e).then(function(e){return null==e?void 0:e.data})},{enabled:t,cacheTime:0,useErrorBoundary:!1})}function mw(e,t,n){return void 0===t&&(t=!1),Hf(["audit-export-download",e],function(){return jh.getInstance().getAuditExportDownload(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&t,cacheTime:0,useErrorBoundary:!1,onSuccess:n})}function gw(e){var t=e.tab,n=e.exportId,r=e.enabled,o=void 0!==r&&r,a=e.onSuccess;return Hf(["unified-export-status",t,n],function(){return jh.getInstance().getUnifiedExportStatus(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:!!n&&o,cacheTime:0,useErrorBoundary:!1,onSuccess:a})}function yw(e){var t=e.tab,n=e.page,r=void 0===n?0:n,o=e.size,a=void 0===o?10:o,i=e.enabled;return Hf(["unified-exports-list",t,r,a],function(){return jh.getInstance().getUnifiedExportsList(t,r,a).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===i||i,cacheTime:0,useErrorBoundary:!1})}function vw(e){return Hf(["api-logs-stats-requests",e],function(){return jh.getInstance().postApiLogsStatsRequests(t({},e)).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.start_date,cacheTime:0,useErrorBoundary:!1})}function bw(e){return Hf(["api-logs-stats-errors",e],function(){return jh.getInstance().postApiLogsStatsErrors(t({},e)).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.start_date,cacheTime:0,useErrorBoundary:!1})}function kw(e){return Hf(["api-logs-stats-errors-by-endpoint",e],function(){return jh.getInstance().postApiLogsStatsErrorsByEndpoint(t({},e)).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.start_date,cacheTime:0,useErrorBoundary:!1})}function _w(e){return Hf(["api-logs-list",e],function(){return jh.getInstance().postApiLogsList(t({},e)).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.start_date,cacheTime:0,useErrorBoundary:!1})}function ww(e){var t=e.paymentCode,n=e.createdAtFrom,r=e.enabled;return Hf(["api-logs-v2-payment",t,n],function(){return jh.getInstance().getApiLogsV3ByPaymentCode(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:(void 0===r||r)&&!!t,cacheTime:0,useErrorBoundary:!1})}function Ew(e,t){return Hf(["fetch-payment-links",e,t],function(){return jh.getInstance().getPaymentLinks(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!t,cacheTime:0})}function xw(e){return Hf(["payment-link"],function(){return jh.getInstance().getPaymentLinksByCode(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e})}function Sw(e){return void 0===e&&(e=!0),Hf(["countries",e],function(){return jh.getInstance().useGetCountriesConfig().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e,keepPreviousData:!0})}function Cw(e){var t=localStorage.getItem("lang")||"en",n=e||t;return Hf(["countries-v2",n],function(){return jh.getInstance().useGetCountriesConfigV2(n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!0,keepPreviousData:!0})}function Iw(e){return Hf(["timezone"],function(){return jh.getInstance().getTimezone(e).then(function(e){return mh(e)?bh:null==e?void 0:e.data}).catch(function(){return bh})},{enabled:!0,keepPreviousData:!0})}function Rw(e,t){return void 0===t&&(t=!0),Hf(["subscription",e],function(){return jh.getInstance().getSubscriptionByCode(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&t,cacheTime:500})}function Tw(e,t,n,r){return void 0===r&&(r=!0),Hf(["subscription-payments",e,t,n],function(){return jh.getInstance().getSubscriptionPayments(e,t,n).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&r,cacheTime:0})}function Aw(e){return Vf(function(e){var t=e.payload;return jh.getInstance().firebaseUserSubscribe(t)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Ow(e,t){return Hf(["get-cofig-allow-list",e],function(){return jh.getInstance().getConfigAllowlist(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{cacheTime:0,enabled:!!e&&!!t})}function Pw(e,t){return void 0===t&&(t=!0),Hf(["get-black-list",e],function(){return jh.getInstance().getBlackListType(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:!!e&&t})}function Dw(e,t,n,r){var o;return Hf(["post-black-list",e],function(){return jh.getInstance().postBlockList(e,null!=t?t:"",null!=n?n:0,null!=r?r:25).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:(null===(o=e[0])||void 0===o?void 0:o.length)>0&&null!==t,useErrorBoundary:!1})}function Lw(e,t,n){return Hf(["get-block-list-summary",e,t,n],function(){var r=jh.getInstance();return n?r.getBlackListSummary(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e}):Promise.resolve({})},{enabled:!!e&&!!n})}function jw(e,t,n,r,o,a){return Hf(["black-list-detail",e,t,r,o,a],function(){return jh.getInstance().getBlacklistDetail(e,t,n,r,o).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&a,cacheTime:0})}function Nw(e,t,n){return Hf(["allow-list-detail",e],function(){return jh.getInstance().getAllowlistDetail(e,t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{enabled:!!e&&!!n})}function zw(e,t){return void 0===t&&(t=!0),Hf(["query-post-get-allowlist-multi-account",JSON.stringify(e)],function(){return jh.getInstance().postGetAllowlist({payload:e}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{enabled:!!e&&t,cacheTime:0})}function qw(e,t){var o=this;return void 0===e&&(e=26),void 0===t&&(t=0),Hf(["batch-refunds",e,t],function(){return n(o,void 0,void 0,function(){return r(this,function(n){return[2,jh.getInstance().getBatchRefunds(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})]})})},{cacheTime:0})}function Uw(e){return Hf(["velocity-rules",e],function(){var t=jh.getInstance();return e?t.getVelocityRules(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e}):Promise.resolve({})},{enabled:!!e,keepPreviousData:!0})}function Mw(){return Hf(["config-rules"],function(){return jh.getInstance().getAllConfigRules().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0})}function Bw(e,t){var n=e.organizationCode;return Hf(["mfa-excluded-users",n],function(){return jh.getInstance().getMFAExcludedUsers({organizationCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})}function Fw(e,t){var n=e.organizationCode;return Hf(["mfa-config",n],function(){return jh.getInstance().getMFAConfig({organizationCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})}function Gw(e,t){return Hf(["mfa-enforcement-status",e.accountCode],function(){return jh.getInstance().getMFAEnforcementStatus().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})}function Ww(e){return Hf(["fetch-organization-saml-config",e],function(){return jh.getInstance().getSamlConfig().then(function(e){return e.data})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function Hw(e){return Hf(["chartgpt-chart-execute",e],function(){return jh.getInstance().executeChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e})}function Vw(){return Hf(["chartgpt-user-charts"],function(){return jh.getInstance().getChartsByUser().then(function(e){return null==e?void 0:e.data})},{cacheTime:0})}function Kw(){var e=this;return Hf(["chartgpt-user-charts-with-results"],function(){return n(e,void 0,void 0,function(){var e,o,a,i=this;return r(this,function(s){switch(s.label){case 0:return[4,(e=jh.getInstance()).getChartsByUser()];case 1:return o=s.sent(),a=(null==o?void 0:o.data)||[],[4,Promise.all(a.map(function(o){return n(i,void 0,void 0,function(){var n,a,i,s,c,u,l,d;return r(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,e.executeChartGPTChart(o.code)];case 1:return n=r.sent(),[2,t(t({},o),{user_prompt:null!==(s=null===(i=null==n?void 0:n.data)||void 0===i?void 0:i.user_prompt)&&void 0!==s?s:o.user_prompt,unit_to_display:null!==(u=null===(c=null==n?void 0:n.data)||void 0===c?void 0:c.unit_to_display)&&void 0!==u?u:o.unit_to_display,results:null!==(d=null===(l=null==n?void 0:n.data)||void 0===l?void 0:l.results)&&void 0!==d?d:[]})];case 2:return a=r.sent(),console.error("Failed to execute chart ".concat(o.chart_id,":"),a),[2,t(t({},o),{results:[]})];case 3:return[2]}})})}))];case 2:return[2,s.sent()]}})})})}function $w(e,t,o){var a=this;return void 0===o&&(o=!0),Hf(["chartgpt-patch-and-execute",e,t],function(){return n(a,void 0,void 0,function(){var n,o,a,i,s;return r(this,function(r){switch(r.label){case 0:return[4,(n=jh.getInstance()).patchChartGPTChart(e,t)];case 1:return o=r.sent(),a=null==o?void 0:o.data,[4,n.executeChartGPTChart(e)];case 2:return i=r.sent(),s=null==i?void 0:i.data,[2,{chart:a,execution:s}]}})})},{enabled:o&&!!e,retry:!1})}function Qw(e){var t=this,o=e.chartCode,a=e.enabled;return Hf(["chart-feedback",o],function(){return n(t,void 0,void 0,function(){var e,t,n,a,i;return r(this,function(r){switch(r.label){case 0:e=jh.getInstance(),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,e.getChartFeedback(o)];case 2:return t=r.sent(),(n=null==t?void 0:t.data)&&n.rating?[2,n]:[2,null];case 3:if(a=r.sent(),404===(null===(i=null==a?void 0:a.response)||void 0===i?void 0:i.status))return[2,null];throw a;case 4:return[2]}})})},{enabled:(void 0===a||a)&&!!o,staleTime:3e5})}function Yw(){return Hf(["languages"],function(){return jh.getInstance().getLanguages().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,cacheTime:300})}function Jw(){var e=localStorage.getItem("lang")||"en";return Hf(["translations",e],function(){return jh.getInstance().getTranslations(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,cacheTime:3e4})}function Zw(e){var t=this;return Hf({queryKey:["network-tokens-onboarding",e],queryFn:function(){return n(t,void 0,void 0,function(){return r(this,function(t){switch(t.label){case 0:return[4,jh.getInstance().getNetworkTokensOnboardingByOrganization(e)];case 1:return[2,t.sent().data]}})})},enabled:!!e,useErrorBoundary:!1,cacheTime:0})}var Xw=function(e){if(!e)return"";var t=new Date(e);return"".concat(["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][t.getUTCMonth()]," ").concat(t.getUTCDate())},eE=function(e,t,n){if(!t||!n)return e||[];var r=function(e,t){var n=[],r=new Date(e),o=new Date(t);r.setUTCHours(0,0,0,0),o.setUTCHours(0,0,0,0);for(var a=new Date(r);a<=o;)n.push(a.toISOString()),a.setUTCDate(a.getUTCDate()+1);return n}(t,n),o=new Map;return null==e||e.forEach(function(e){if(e.date){var t=new Date(e.date).toISOString().split("T")[0];o.set(t,e.value)}}),r.map(function(e){var t=e.split("T")[0];return{date:e,value:o.get(t)||"0"}})},tE=function(e){var t,n=null===(t=e.plots)||void 0===t?void 0:t[0];if(!n||!n.rows)return{distribution:[],total:0};var r=parseFloat(n.value||"0");return{distribution:n.rows.map(function(e){var t,n=100*parseFloat(e.value),o=Math.round(r*parseFloat(e.value));return{key:(null===(t=e.label)||void 0===t?void 0:t.toUpperCase())||"UNKNOWN",total:o,percentage:n,amount:o}}),total:r}},nE=function(e,t,n){var r,o={};return null===(r=e.plots)||void 0===r||r.forEach(function(e){var r=eE(e.rows,t,n),a=e.label;o[a]=r.map(function(e){return{key:e.date||"",total:100*parseFloat(e.value),current_label:Xw(e.date||""),current_amount:100*parseFloat(e.value)}})}),o},rE=function(e,t,n){var r,o=null===(r=e.plots)||void 0===r?void 0:r[0];return{distribution:eE(null==o?void 0:o.rows,t,n).map(function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:Xw(e.date||""),current_amount:parseFloat(e.value)}}),total:parseFloat((null==o?void 0:o.value)||"0"),total_amount:parseFloat((null==o?void 0:o.value)||"0")}},oE=function(e,t,n){var r,o=null===(r=e.plots)||void 0===r?void 0:r[0];return{distribution:eE(null==o?void 0:o.rows,t,n).map(function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:Xw(e.date||""),current_amount:parseFloat(e.value)}}),total:parseFloat((null==o?void 0:o.value)||"0"),total_amount:parseFloat((null==o?void 0:o.value)||"0")}},aE=function(e,o){return Hf(t({queryKey:["smart-recovery-communications-by-day",e],queryFn:function(){return n(void 0,void 0,void 0,function(){var t,n,o;return r(this,function(r){switch(r.label){case 0:return t=jh.getInstance(),n={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/communications-by-day",n)];case 1:return o=r.sent(),[2,(a=o.data,i=n.start_date,s=n.end_date,c=a.plots||[],u=c.find(function(e){return"TOTAL_COMMUNICATIONS_LABEL"===e.label}),l=c.find(function(e){return"COMPLETED_COMMUNICATIONS_LABEL"===e.label}),d=c.find(function(e){return"CONVERSION_RATE_LABEL"===e.label}),p=eE(null==u?void 0:u.rows,i,s),h=eE(null==l?void 0:l.rows,i,s),f=eE(null==d?void 0:d.rows,i,s),{communications:{distribution:p.map(function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:Xw(e.date||""),current_amount:parseFloat(e.value)}}),total:parseFloat((null==u?void 0:u.value)||"0")},conversion_rate:{distribution:f.map(function(e){return{key:e.date||"",total:parseFloat(e.value),percentage:parseFloat(e.value)}}),total:parseFloat((null==d?void 0:d.value)||"0")},completed_communications:{distribution:h.map(function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:Xw(e.date||""),current_amount:parseFloat(e.value)}}),total:parseFloat((null==l?void 0:l.value)||"0")}})]}var a,i,s,c,u,l,d,p,h,f})})},enabled:!!e.organization_code,staleTime:3e5},o))},iE=function(e,o){return Hf(t({queryKey:["smart-recovery-communications-by-substatus",e],queryFn:function(){return n(void 0,void 0,void 0,function(){var t,n,o;return r(this,function(r){switch(r.label){case 0:return t=jh.getInstance(),n={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/communications-by-substatus",n)];case 1:return o=r.sent(),[2,tE(o.data)]}})})},enabled:!!e.organization_code,staleTime:3e5},o))},sE=function(e,o){return Hf(t({queryKey:["smart-recovery-communications-substatus-by-day",e],queryFn:function(){return n(void 0,void 0,void 0,function(){var t,n,o;return r(this,function(r){switch(r.label){case 0:return t=jh.getInstance(),n={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/communications-substatus-by-day",n)];case 1:return o=r.sent(),[2,nE(o.data,n.start_date,n.end_date)]}})})},enabled:!!e.organization_code,staleTime:3e5},o))},cE=function(e,o){return Hf(t({queryKey:["smart-recovery-recovered-tpv-by-day",e],queryFn:function(){return n(void 0,void 0,void 0,function(){var t,n,o;return r(this,function(r){switch(r.label){case 0:return t=jh.getInstance(),n={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/recovered-tpv-by-day",n)];case 1:return o=r.sent(),[2,rE(o.data,n.start_date,n.end_date)]}})})},enabled:!!e.organization_code,staleTime:3e5},o))},uE=function(e,o){return Hf(t({queryKey:["smart-recovery-recovered-payments-by-day",e],queryFn:function(){return n(void 0,void 0,void 0,function(){var t,n,o;return r(this,function(r){switch(r.label){case 0:return t=jh.getInstance(),n={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/recovered-payments-by-day",n)];case 1:return o=r.sent(),[2,oE(o.data,n.start_date,n.end_date)]}})})},enabled:!!e.organization_code,staleTime:3e5},o))};function lE(e,t){var o=this;return Hf(["POST/template-reporting/templates/search",e],function(){return n(o,void 0,void 0,function(){return r(this,function(t){return[2,jh.getInstance().searchReportTemplates(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:t,useErrorBoundary:!1})}function dE(e,t,o){var a=this;return Hf(["POST/template-reporting/template-by-id/search",e,t],function(){return n(a,void 0,void 0,function(){return r(this,function(n){return[2,jh.getInstance().searchReportTemplateById(e,t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:o&&!!e,useErrorBoundary:!1})}function pE(e,t){var o=this;return Hf(["POST/template-reporting/schedules/search",e],function(){return n(o,void 0,void 0,function(){return r(this,function(t){return[2,jh.getInstance().searchReportSchedules(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:t,useErrorBoundary:!1})}function hE(e,t,o){var a=this;return Hf(["POST/template-reporting/schedule-by-id/search",e,t],function(){return n(a,void 0,void 0,function(){return r(this,function(n){return[2,jh.getInstance().searchReportScheduleById(e,t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:o&&!!e,useErrorBoundary:!1})}function fE(){return Hf({queryKey:["organization-configs"],queryFn:function(){return jh.getInstance().getOrganizationConfigs().then(function(e){return null==e?void 0:e.data})},cacheTime:0,useErrorBoundary:!1})}function mE(e){var t=e.accountCode,n=e.enabled;return Hf(["onboarding-status",t],function(){return jh.getInstance().getOnboardingStatus(t).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function gE(e,t,o){var a=this;return void 0===o&&(o=!0),Hf(["get-recipients",e,t],function(){return n(a,void 0,void 0,function(){return r(this,function(n){return[2,jh.getInstance().getRecipients(e,t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&o,cacheTime:0,useErrorBoundary:!1})}function yE(e,t,o){var a=this;return void 0===o&&(o=!0),Hf(["get-recipient-by-id",e,t.recipient_id],function(){return n(a,void 0,void 0,function(){return r(this,function(n){return[2,jh.getInstance().getRecipientById(e,t.recipient_id).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!t.recipient_id&&o,cacheTime:500,useErrorBoundary:!1})}function vE(e,t,o){var a=this;return void 0===o&&(o=!0),Hf(["get-onboarding-detail",e,t.recipient_id,t.onboarding_id],function(){return n(a,void 0,void 0,function(){return r(this,function(n){return[2,jh.getInstance().getOnboardingDetail(e,t.recipient_id,t.onboarding_id).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!t.recipient_id&&!!t.onboarding_id&&o,cacheTime:500,useErrorBoundary:!1})}function bE(e,t,o){var a=this;return void 0===o&&(o=!0),Hf(["get-onboarding-timeline",e,t.onboarding_id],function(){return n(a,void 0,void 0,function(){return r(this,function(n){return[2,jh.getInstance().getOnboardingTimeline(e,t.onboarding_id).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!t.onboarding_id&&o,cacheTime:500,useErrorBoundary:!1})}function kE(e,t,n){return void 0===t&&(t=!0),Hf(["installments-plans",e,n],function(){return jh.getInstance().getInstallmentPlans(n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(e)&&t,useErrorBoundary:!1})}function _E(e,t){return void 0===t&&(t=!0),Hf(["search-installments-plans",JSON.stringify(e)],function(){return jh.getInstance().searchInstallmentsPlans(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:t,useErrorBoundary:!1})}function wE(e){var t=this,o=e.paymentCode,a=e.enabled;return Hf({queryKey:["api-logs-v3",o],queryFn:function(){return n(t,void 0,void 0,function(){return r(this,function(e){return[2,jh.getInstance().getApiLogsV3(o).then(function(e){return null==e?void 0:e.data})]})})},enabled:(void 0===a||a)&&!!o,staleTime:3e4,cacheTime:3e5,useErrorBoundary:!1})}function EE(e){var t=this,o=e.paymentCode,a=e.enabled;return Hf({queryKey:["webhook-timeline",o],queryFn:function(){return n(t,void 0,void 0,function(){return r(this,function(e){return[2,jh.getInstance().getWebhookTimeline(o).then(function(e){return null==e?void 0:e.data})]})})},enabled:(void 0===a||a)&&!!o,staleTime:3e4,cacheTime:3e5,useErrorBoundary:!1})}function xE(){var e=this;return Hf(["workos-domain-status"],function(){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,jh.getInstance().workosDomainStatus().then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function SE(){return SE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SE.apply(this,arguments)}
|
|
51
51
|
/**
|
|
52
52
|
* match-sorter-utils
|
|
53
53
|
*
|
|
@@ -57,12 +57,12 @@ statuses/index.js:
|
|
|
57
57
|
* LICENSE.md file in the root directory of this source tree.
|
|
58
58
|
*
|
|
59
59
|
* @license MIT
|
|
60
|
-
*/const
|
|
60
|
+
*/const CE={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Ấ":"A","Ắ":"A","Ẳ":"A","Ẵ":"A","Ặ":"A","Æ":"AE","Ầ":"A","Ằ":"A","Ȃ":"A","Ç":"C","Ḉ":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ế":"E","Ḗ":"E","Ề":"E","Ḕ":"E","Ḝ":"E","Ȇ":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ḯ":"I","Ȋ":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ố":"O","Ṍ":"O","Ṓ":"O","Ȏ":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","ấ":"a","ắ":"a","ẳ":"a","ẵ":"a","ặ":"a","æ":"ae","ầ":"a","ằ":"a","ȃ":"a","ç":"c","ḉ":"c","è":"e","é":"e","ê":"e","ë":"e","ế":"e","ḗ":"e","ề":"e","ḕ":"e","ḝ":"e","ȇ":"e","ì":"i","í":"i","î":"i","ï":"i","ḯ":"i","ȋ":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ố":"o","ṍ":"o","ṓ":"o","ȏ":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","C̆":"C","c̆":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","Ǵ":"G","ĝ":"g","ǵ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ḫ":"H","ḫ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","Ḱ":"K","ḱ":"k","K̆":"K","k̆":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"l","ł":"l","Ḿ":"M","ḿ":"m","M̆":"M","m̆":"m","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","N̆":"N","n̆":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","P̆":"P","p̆":"p","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","R̆":"R","r̆":"r","Ȓ":"R","ȓ":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","Ș":"S","ș":"s","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","ț":"t","Ț":"T","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","T̆":"T","t̆":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ȗ":"U","ȗ":"u","V̆":"V","v̆":"v","Ŵ":"W","ŵ":"w","Ẃ":"W","ẃ":"w","X̆":"X","x̆":"x","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Y̆":"Y","y̆":"y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","Ứ":"U","ứ":"u","Ṹ":"U","ṹ":"u","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o","Þ":"TH","þ":"th","Ṕ":"P","ṕ":"p","Ṥ":"S","ṥ":"s","X́":"X","x́":"x","Ѓ":"Г","ѓ":"г","Ќ":"К","ќ":"к","A̋":"A","a̋":"a","E̋":"E","e̋":"e","I̋":"I","i̋":"i","Ǹ":"N","ǹ":"n","Ồ":"O","ồ":"o","Ṑ":"O","ṑ":"o","Ừ":"U","ừ":"u","Ẁ":"W","ẁ":"w","Ỳ":"Y","ỳ":"y","Ȁ":"A","ȁ":"a","Ȅ":"E","ȅ":"e","Ȉ":"I","ȉ":"i","Ȍ":"O","ȍ":"o","Ȑ":"R","ȑ":"r","Ȕ":"U","ȕ":"u","B̌":"B","b̌":"b","Č̣":"C","č̣":"c","Ê̌":"E","ê̌":"e","F̌":"F","f̌":"f","Ǧ":"G","ǧ":"g","Ȟ":"H","ȟ":"h","J̌":"J","ǰ":"j","Ǩ":"K","ǩ":"k","M̌":"M","m̌":"m","P̌":"P","p̌":"p","Q̌":"Q","q̌":"q","Ř̩":"R","ř̩":"r","Ṧ":"S","ṧ":"s","V̌":"V","v̌":"v","W̌":"W","w̌":"w","X̌":"X","x̌":"x","Y̌":"Y","y̌":"y","A̧":"A","a̧":"a","B̧":"B","b̧":"b","Ḑ":"D","ḑ":"d","Ȩ":"E","ȩ":"e","Ɛ̧":"E","ɛ̧":"e","Ḩ":"H","ḩ":"h","I̧":"I","i̧":"i","Ɨ̧":"I","ɨ̧":"i","M̧":"M","m̧":"m","O̧":"O","o̧":"o","Q̧":"Q","q̧":"q","U̧":"U","u̧":"u","X̧":"X","x̧":"x","Z̧":"Z","z̧":"z"},IE=Object.keys(CE).join("|"),RE=new RegExp(IE,"g");
|
|
61
61
|
/**
|
|
62
62
|
* @name match-sorter
|
|
63
63
|
* @license MIT license.
|
|
64
64
|
* @copyright (c) 2099 Kent C. Dodds
|
|
65
65
|
* @author Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)
|
|
66
66
|
*/
|
|
67
|
-
const RE=7,TE=6,AE=5,OE=4,PE=3,DE=2,LE=1,jE=0;function NE(e,t,n){var r;if((n=n||{}).threshold=null!=(r=n.threshold)?r:LE,!n.accessors){const r=zE(e,t,n);return{rankedValue:e,rank:r,accessorIndex:-1,accessorThreshold:n.threshold,passed:r>=n.threshold}}const o=function(e,t){const n=[];for(let r=0,o=t.length;r<o;r++){const o=t[r],a=BE(o),i=UE(e,o);for(let e=0,t=i.length;e<t;e++)n.push({itemValue:i[e],attributes:a})}return n}(e,n.accessors),a={rankedValue:e,rank:jE,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let e=0;e<o.length;e++){const r=o[e];let i=zE(r.itemValue,t,n);const{minRanking:s,maxRanking:c,threshold:u=n.threshold}=r.attributes;i<s&&i>=LE?i=s:i>c&&(i=c),i=Math.min(i,c),i>=u&&i>a.rank&&(a.rank=i,a.passed=!0,a.accessorIndex=e,a.accessorThreshold=u,a.rankedValue=r.itemValue)}return a}function zE(e,t,n){return e=qE(e,n),(t=qE(t,n)).length>e.length?jE:e===t?RE:(e=e.toLowerCase())===(t=t.toLowerCase())?TE:e.startsWith(t)?AE:e.includes(` ${t}`)?OE:e.includes(t)?PE:1===t.length?jE:function(e){let t="";return e.split(" ").forEach(e=>{e.split("-").forEach(e=>{t+=e.substr(0,1)})}),t}(e).includes(t)?DE:function(e,t){let n=0,r=0;function o(e,t,r){for(let o=r,a=t.length;o<a;o++){if(t[o]===e)return n+=1,o+1}return-1}function a(e){const r=1/e,o=n/t.length;return LE+o*r}const i=o(t[0],e,0);if(i<0)return jE;r=i;for(let n=1,a=t.length;n<a;n++){r=o(t[n],e,r);if(!(r>-1))return jE}const s=r-i;return a(s)}(e,t)}function qE(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=e.replace(IE,e=>SE[e])),e}function UE(e,t){let n=t;"object"==typeof t&&(n=t.accessor);const r=n(e);return null==r?[]:Array.isArray(r)?r:[String(r)]}const ME={maxRanking:1/0,minRanking:-1/0};function BE(e){return"function"==typeof e?ME:{...ME,...e}}function FE(e,t){const[n,r]=i.useState();i.useEffect(()=>{const n=(e=>{try{const t=localStorage.getItem(e);return"string"==typeof t?JSON.parse(t):void 0}catch{return}})(e);r(null==n?"function"==typeof t?t():t:n)},[t,e]);return[n,i.useCallback(t=>{r(n=>{let r=t;"function"==typeof t&&(r=t(n));try{localStorage.setItem(e,JSON.stringify(r))}catch{}return r})},[e])]}var GE,WE=function(){function e(){this.keyToValue=new Map,this.valueToKey=new Map}return e.prototype.set=function(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)},e.prototype.getByKey=function(e){return this.keyToValue.get(e)},e.prototype.getByValue=function(e){return this.valueToKey.get(e)},e.prototype.clear=function(){this.keyToValue.clear(),this.valueToKey.clear()},e}(),HE=function(){function e(e){this.generateIdentifier=e,this.kv=new WE}return e.prototype.register=function(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))},e.prototype.clear=function(){this.kv.clear()},e.prototype.getIdentifier=function(e){return this.kv.getByValue(e)},e.prototype.getValue=function(e){return this.kv.getByKey(e)},e}(),VE=(GE=function(e,t){return GE=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},GE(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}GE(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),KE=function(e){function t(){var t=e.call(this,function(e){return e.name})||this;return t.classToAllowedProps=new Map,t}return VE(t,e),t.prototype.register=function(t,n){"object"==typeof n?(n.allowProps&&this.classToAllowedProps.set(t,n.allowProps),e.prototype.register.call(this,t,n.identifier)):e.prototype.register.call(this,t,n)},t.prototype.getAllowedProps=function(e){return this.classToAllowedProps.get(e)},t}(HE),$E=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i};function QE(e,t){var n=function(e){if("values"in Object)return Object.values(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}(e);if("find"in n)return n.find(t);for(var r=n,o=0;o<r.length;o++){var a=r[o];if(t(a))return a}}function YE(e,t){Object.entries(e).forEach(function(e){var n=$E(e,2),r=n[0],o=n[1];return t(o,r)})}function JE(e,t){return-1!==e.indexOf(t)}function ZE(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r))return r}}var XE=function(){function e(){this.transfomers={}}return e.prototype.register=function(e){this.transfomers[e.name]=e},e.prototype.findApplicable=function(e){return QE(this.transfomers,function(t){return t.isApplicable(e)})},e.prototype.findByName=function(e){return this.transfomers[e]},e}(),ex=function(e){return void 0===e},tx=function(e){return"object"==typeof e&&null!==e&&(e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype))},nx=function(e){return tx(e)&&0===Object.keys(e).length},rx=function(e){return Array.isArray(e)},ox=function(e){return e instanceof Map},ax=function(e){return e instanceof Set},ix=function(e){return"Symbol"===function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e)},sx=function(e){return"number"==typeof e&&isNaN(e)},cx=function(e){return function(e){return"boolean"==typeof e}(e)||function(e){return null===e}(e)||ex(e)||function(e){return"number"==typeof e&&!isNaN(e)}(e)||function(e){return"string"==typeof e}(e)||ix(e)},ux=function(e){return e.replace(/\./g,"\\.")},lx=function(e){return e.map(String).map(ux).join(".")},dx=function(e){for(var t=[],n="",r=0;r<e.length;r++){var o=e.charAt(r);if("\\"===o&&"."===e.charAt(r+1))n+=".",r++;else"."===o?(t.push(n),n=""):n+=o}var a=n;return t.push(a),t},px=function(){return px=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},px.apply(this,arguments)},hx=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},fx=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};function mx(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var gx=[mx(ex,"undefined",function(){return null},function(){}),mx(function(e){return"bigint"==typeof e},"bigint",function(e){return e.toString()},function(e){return"undefined"!=typeof BigInt?BigInt(e):(console.error("Please add a BigInt polyfill."),e)}),mx(function(e){return e instanceof Date&&!isNaN(e.valueOf())},"Date",function(e){return e.toISOString()},function(e){return new Date(e)}),mx(function(e){return e instanceof Error},"Error",function(e,t){var n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(function(t){n[t]=e[t]}),n},function(e,t){var n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(function(t){n[t]=e[t]}),n}),mx(function(e){return e instanceof RegExp},"regexp",function(e){return""+e},function(e){var t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),mx(ax,"set",function(e){return fx([],hx(e.values()))},function(e){return new Set(e)}),mx(ox,"map",function(e){return fx([],hx(e.entries()))},function(e){return new Map(e)}),mx(function(e){return sx(e)||((t=e)===1/0||t===-1/0);var t},"number",function(e){return sx(e)?"NaN":e>0?"Infinity":"-Infinity"},Number),mx(function(e){return 0===e&&1/e==-1/0},"number",function(){return"-0"},Number),mx(function(e){return e instanceof URL},"URL",function(e){return e.toString()},function(e){return new URL(e)})];function yx(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var vx=yx(function(e,t){return!!ix(e)&&!!t.symbolRegistry.getIdentifier(e)},function(e,t){return["symbol",t.symbolRegistry.getIdentifier(e)]},function(e){return e.description},function(e,t,n){var r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),bx=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(e,t){return e[t.name]=t,e},{}),kx=yx(function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},function(e){return["typed-array",e.constructor.name]},function(e){return fx([],hx(e))},function(e,t){var n=bx[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function _x(e,t){return!!(null==e?void 0:e.constructor)&&!!t.classRegistry.getIdentifier(e.constructor)}var wx=yx(_x,function(e,t){return["class",t.classRegistry.getIdentifier(e.constructor)]},function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return px({},e);var r={};return n.forEach(function(t){r[t]=e[t]}),r},function(e,t,n){var r=n.classRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(r.prototype),e)}),Ex=yx(function(e,t){return!!t.customTransformerRegistry.findApplicable(e)},function(e,t){return["custom",t.customTransformerRegistry.findApplicable(e).name]},function(e,t){return t.customTransformerRegistry.findApplicable(e).serialize(e)},function(e,t,n){var r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),xx=[wx,vx,Ex,kx],Sx=function(e,t){var n=ZE(xx,function(n){return n.isApplicable(e,t)});if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var r=ZE(gx,function(n){return n.isApplicable(e,t)});return r?{value:r.transform(e,t),type:r.annotation}:void 0},Cx={};gx.forEach(function(e){Cx[e.annotation]=e});var Ix=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function Rx(e){if(JE(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(JE(e,"prototype"))throw new Error("prototype is not allowed as a property");if(JE(e,"constructor"))throw new Error("constructor is not allowed as a property")}var Tx=function(e,t,n){if(Rx(t),0===t.length)return n(e);for(var r=e,o=0;o<t.length-1;o++){var a=t[o];if(rx(r))r=r[+a];else if(tx(r))r=r[a];else if(ax(r)){r=Ix(r,i=+a)}else if(ox(r)){if(o===t.length-2)break;var i=+a,s=0===+t[++o]?"key":"value",c=Ix(r,i);switch(s){case"key":r=c;break;case"value":r=r.get(c)}}}var u=t[t.length-1];if(rx(r)?r[+u]=n(r[+u]):tx(r)&&(r[u]=n(r[u])),ax(r)){var l=Ix(r,+u),d=n(l);l!==d&&(r.delete(l),r.add(d))}if(ox(r)){i=+t[t.length-2];var p=Ix(r,i);switch(s=0===+u?"key":"value"){case"key":var h=n(p);r.set(h,r.get(p)),h!==p&&r.delete(p);break;case"value":r.set(p,n(r.get(p)))}}return e},Ax=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},Ox=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};function Px(e,t,n){if(void 0===n&&(n=[]),e)if(rx(e)){var r=Ax(e,2),o=r[0],a=r[1];a&&YE(a,function(e,r){Px(e,t,Ox(Ox([],Ax(n)),Ax(dx(r))))}),t(o,n)}else YE(e,function(e,r){return Px(e,t,Ox(Ox([],Ax(n)),Ax(dx(r))))})}function Dx(e,t,n){return Px(t,function(t,r){e=Tx(e,r,function(e){return function(e,t,n){if(!rx(t)){var r=Cx[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}switch(t[0]){case"symbol":return vx.untransform(e,t,n);case"class":return wx.untransform(e,t,n);case"custom":return Ex.untransform(e,t,n);case"typed-array":return kx.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}}(e,t,n)})}),e}function Lx(e,t){function n(t,n){var r=function(e,t){Rx(t);for(var n=0;n<t.length;n++){var r=t[n];if(ax(e))e=Ix(e,+r);else if(ox(e)){var o=+r,a=0===+t[++n]?"key":"value",i=Ix(e,o);switch(a){case"key":e=i;break;case"value":e=e.get(i)}}else e=e[r]}return e}(e,dx(n));t.map(dx).forEach(function(t){e=Tx(e,t,function(){return r})})}if(rx(t)){var r=Ax(t,2),o=r[0],a=r[1];o.forEach(function(t){e=Tx(e,dx(t),function(){return e})}),a&&YE(a,n)}else YE(t,n);return e}var jx=function(e,t,n,r,o,a,i){var s;void 0===o&&(o=[]),void 0===a&&(a=[]),void 0===i&&(i=new Map);var c=cx(e);if(!c){!function(e,t,n){var r=n.get(e);r?r.push(t):n.set(e,[t])}(e,o,t);var u=i.get(e);if(u)return r?{transformedValue:null}:u}if(!function(e,t){return tx(e)||rx(e)||ox(e)||ax(e)||_x(e,t)}(e,n)){var l=Sx(e,n),d=l?{transformedValue:l.value,annotations:[l.type]}:{transformedValue:e};return c||i.set(e,d),d}if(JE(a,e))return{transformedValue:null};var p=Sx(e,n),h=null!==(s=null==p?void 0:p.value)&&void 0!==s?s:e,f=rx(h)?[]:{},m={};YE(h,function(s,c){var u=jx(s,t,n,r,Ox(Ox([],Ax(o)),[c]),Ox(Ox([],Ax(a)),[e]),i);f[c]=u.transformedValue,rx(u.annotations)?m[c]=u.annotations:tx(u.annotations)&&YE(u.annotations,function(e,t){m[ux(c)+"."+t]=e})});var g=nx(m)?{transformedValue:f,annotations:p?[p.type]:void 0}:{transformedValue:f,annotations:p?[p.type,m]:m};return c||i.set(e,g),g};function Nx(e){return Object.prototype.toString.call(e).slice(8,-1)}function zx(e){return"Array"===Nx(e)}function qx(e,t={}){if(zx(e))return e.map(e=>qx(e,t));if(!function(e){if("Object"!==Nx(e))return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}(e))return e;return[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)].reduce((n,r)=>{if(zx(t.props)&&!t.props.includes(r))return n;return function(e,t,n,r,o){const a={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";"enumerable"===a&&(e[t]=n),o&&"nonenumerable"===a&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}(n,r,qx(e[r],t),e,t.nonenumerable),n},{})}var Ux=function(){return Ux=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ux.apply(this,arguments)},Mx=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},Bx=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},Fx=function(){function e(e){var t=(void 0===e?{}:e).dedupe,n=void 0!==t&&t;this.classRegistry=new KE,this.symbolRegistry=new HE(function(e){var t;return null!==(t=e.description)&&void 0!==t?t:""}),this.customTransformerRegistry=new XE,this.allowedErrorProps=[],this.dedupe=n}return e.prototype.serialize=function(e){var t=new Map,n=jx(e,t,this,this.dedupe),r={json:n.transformedValue};n.annotations&&(r.meta=Ux(Ux({},r.meta),{values:n.annotations}));var o,a,i,s,c=(o=t,a=this.dedupe,i={},s=void 0,o.forEach(function(e){if(!(e.length<=1)){a||(e=e.map(function(e){return e.map(String)}).sort(function(e,t){return e.length-t.length}));var t=Ax(e),n=t[0],r=t.slice(1);0===n.length?s=r.map(lx):i[lx(n)]=r.map(lx)}}),s?nx(i)?[s]:[s,i]:nx(i)?void 0:i);return c&&(r.meta=Ux(Ux({},r.meta),{referentialEqualities:c})),r},e.prototype.deserialize=function(e){var t=e.json,n=e.meta,r=qx(t);return(null==n?void 0:n.values)&&(r=Dx(r,n.values,this)),(null==n?void 0:n.referentialEqualities)&&(r=Lx(r,n.referentialEqualities)),r},e.prototype.stringify=function(e){return JSON.stringify(this.serialize(e))},e.prototype.parse=function(e){return this.deserialize(JSON.parse(e))},e.prototype.registerClass=function(e,t){this.classRegistry.register(e,t)},e.prototype.registerSymbol=function(e,t){this.symbolRegistry.register(e,t)},e.prototype.registerCustom=function(e,t){this.customTransformerRegistry.register(Ux({name:t},e))},e.prototype.allowErrorProps=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];(e=this.allowedErrorProps).push.apply(e,Bx([],Mx(t)))},e.defaultInstance=new e,e.serialize=e.defaultInstance.serialize.bind(e.defaultInstance),e.deserialize=e.defaultInstance.deserialize.bind(e.defaultInstance),e.stringify=e.defaultInstance.stringify.bind(e.defaultInstance),e.parse=e.defaultInstance.parse.bind(e.defaultInstance),e.registerClass=e.defaultInstance.registerClass.bind(e.defaultInstance),e.registerSymbol=e.defaultInstance.registerSymbol.bind(e.defaultInstance),e.registerCustom=e.defaultInstance.registerCustom.bind(e.defaultInstance),e.allowErrorProps=e.defaultInstance.allowErrorProps.bind(e.defaultInstance),e}();const Gx={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",paused:"#8c49eb",warning:"#ffb200"},Wx=i.createContext(Gx);function Hx({theme:e,...t}){return i.createElement(Wx.Provider,xE({value:e},t))}function Vx({queryState:e,observerCount:t,isStale:n,theme:r}){return"fetching"===e.fetchStatus?r.active:t?"paused"===e.fetchStatus?r.paused:n?r.warning:r.success:r.gray}function Kx(e){return"fetching"===e.state.fetchStatus?"fetching":e.getObserversCount()?"paused"===e.state.fetchStatus?"paused":e.isStale()?"stale":"fresh":"inactive"}function $x(e,t,n={}){return i.forwardRef(({style:r,...o},a)=>{const s=i.useContext(Wx),c=Object.entries(n).reduce((e,[t,n])=>function(e){const[t,n]=i.useState(()=>{if("undefined"!=typeof window)return window.matchMedia(e).matches});return i.useEffect(()=>{if("undefined"!=typeof window){const t=window.matchMedia(e),r=({matches:e})=>n(e);return t.addListener(r),()=>{t.removeListener(r)}}},[t,e,n]),t}(t)?{...e,..."function"==typeof n?n(o,s):n}:e,{});return i.createElement(e,{...o,style:{..."function"==typeof t?t(o,s):t,...r,...c},ref:a})})}const Qx=(e,t=!1)=>{const{json:n}=Fx.serialize(e);return JSON.stringify(n,null,t?2:void 0)},Yx=e=>"idle"!==e.state.fetchStatus?0:e.getObserversCount()?e.isStale()?2:1:3,Jx=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,Zx={"Status > Last Updated":(e,t)=>Yx(e)===Yx(t)?Jx(e,t):Yx(e)>Yx(t)?1:-1,"Query Hash":(e,t)=>e.queryHash.localeCompare(t.queryHash),"Last Updated":Jx},Xx=500,eS={top:"bottom",bottom:"top",left:"right",right:"left"};function tS(e){return["left","right"].includes(e)}function nS(e){return eS[e]}function rS(e,t){return""+e+(t.charAt(0).toUpperCase()+t.slice(1))}function oS(e="bottom"){const t=tS(e),n=nS(e),r=rS("margin",n);return{position:"absolute",cursor:t?"col-resize":"row-resize",zIndex:1e5,[n]:0,[r]:"-4px",...t?{top:0,height:"100%",width:"4px"}:{width:"100%",height:"4px"}}}const aS=$x("div",(e,t)=>({fontSize:"clamp(12px, 1.5vw, 14px)",fontFamily:"sans-serif",display:"flex",backgroundColor:t.background,color:t.foreground}),{"(max-width: 700px)":{flexDirection:"column"},"(max-width: 600px)":{fontSize:".9em"}}),iS=$x("div",()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"}),{"(max-width: 700px)":(e,t)=>({borderTop:"2px solid "+t.gray})}),sS=$x("button",(e,t)=>({appearance:"none",fontSize:".9em",fontWeight:"bold",background:t.gray,border:"0",borderRadius:".3em",color:"white",padding:".5em",opacity:e.disabled?".5":void 0,cursor:"pointer"})),cS=$x("span",{display:"flex",flexWrap:"wrap",gap:"0.5em",fontSize:"0.9em"}),uS=$x("span",{display:"inline-flex",alignItems:"center",padding:".2em .4em",fontWeight:"bold",textShadow:"0 0 10px black",borderRadius:".2em"}),lS=$x("code",{fontSize:".9em",color:"inherit",background:"inherit"}),dS=$x("input",(e,t)=>({backgroundColor:t.inputBackgroundColor,border:0,borderRadius:".2em",color:t.inputTextColor,fontSize:".9em",lineHeight:"1.3",padding:".3em .4em"})),pS=$x("select",(e,t)=>({display:"inline-block",fontSize:".9em",fontFamily:"sans-serif",fontWeight:"normal",lineHeight:"1.3",padding:".3em 1.5em .3em .5em",height:"auto",border:0,borderRadius:".2em",appearance:"none",WebkitAppearance:"none",backgroundColor:t.inputBackgroundColor,backgroundImage:"url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23444444'><polygon points='0,25 100,25 50,75'/></svg>\")",backgroundRepeat:"no-repeat",backgroundPosition:"right .55em center",backgroundSize:".65em auto, 100%",color:t.inputTextColor}),{"(max-width: 500px)":{display:"none"}});function hS({text:e}){return i.createElement("span",{style:{position:"absolute",width:"0.1px",height:"0.1px",overflow:"hidden"}},e)}const fS=$x("div",{fontFamily:"Menlo, monospace",fontSize:"1em",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),mS=$x("span",{color:"white"}),gS=$x("button",{cursor:"pointer",color:"white"}),yS=$x("button",{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}),vS=({value:e})=>{const[t,n]=i.useState("NoCopy");return i.createElement("button",{onClick:"NoCopy"===t?()=>{navigator.clipboard.writeText(Fx.stringify(e)).then(()=>{n("SuccessCopy"),setTimeout(()=>{n("NoCopy")},1500)},e=>{console.error("Failed to copy: ",e),n("ErrorCopy"),setTimeout(()=>{n("NoCopy")},1500)})}:void 0,style:{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}},"NoCopy"===t?i.createElement(ES,null):"SuccessCopy"===t?i.createElement(SS,null):i.createElement(xS,null))},bS=$x("span",(e,t)=>({color:t.danger})),kS=$x("div",{marginLeft:".1em",paddingLeft:"1em",borderLeft:"2px solid rgba(0,0,0,.15)"}),_S=$x("span",{color:"grey",fontSize:".7em"}),wS=({expanded:e,style:t={}})=>i.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:"rotate("+(e?90:0)+"deg) "+(t.transform||""),...t}},"▶"),ES=()=>i.createElement("span",{"aria-label":"Copy object to clipboard",title:"Copy object to clipboard",style:{paddingLeft:"1em"}},i.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10"},i.createElement("path",{fill:"currentColor",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"}),i.createElement("path",{fill:"currentColor",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"}))),xS=()=>i.createElement("span",{"aria-label":"Failed copying to clipboard",title:"Failed copying to clipboard",style:{paddingLeft:"1em",display:"flex",alignItems:"center"}},i.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10",display:"block"},i.createElement("path",{fill:"red",d:"M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z"})),i.createElement("span",{style:{color:"red",fontSize:"12px",paddingLeft:"4px",position:"relative",top:"2px"}},"See console")),SS=()=>i.createElement("span",{"aria-label":"Object copied to clipboard",title:"Object copied to clipboard",style:{paddingLeft:"1em",display:"inline-block",verticalAlign:"middle"}},i.createElement("svg",{height:"16",viewBox:"0 0 16 16",width:"16",display:"block"},i.createElement("path",{fill:"green",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"})));const CS=({handleEntry:e,label:t,value:n,subEntries:r=[],subEntryPages:o=[],type:a,expanded:s=!1,copyable:c=!1,toggleExpanded:u,pageSize:l})=>{const[d,p]=i.useState([]);return i.createElement(fS,{key:t},o.length?i.createElement(i.Fragment,null,i.createElement(yS,{onClick:()=>u()},i.createElement(wS,{expanded:s})," ",t," ",i.createElement(_S,null,"iterable"===String(a).toLowerCase()?"(Iterable) ":"",r.length," ",r.length>1?"items":"item")),c?i.createElement(vS,{value:n}):null,s?1===o.length?i.createElement(kS,null,r.map(e)):i.createElement(kS,null,o.map((t,n)=>i.createElement("div",{key:n},i.createElement(fS,null,i.createElement(gS,{onClick:()=>p(e=>e.includes(n)?e.filter(e=>e!==n):[...e,n])},i.createElement(wS,{expanded:s})," [",n*l," ..."," ",n*l+l-1,"]"),d.includes(n)?i.createElement(kS,null,t.map(e)):null)))):null):i.createElement(i.Fragment,null,i.createElement(mS,null,t,":")," ",i.createElement(bS,null,Qx(n))))};function IS({value:e,defaultExpanded:t,renderer:n=CS,pageSize:r=100,copyable:o=!1,...a}){const[s,c]=i.useState(Boolean(t)),u=i.useCallback(()=>c(e=>!e),[]);let l=typeof e,d=[];const p=e=>{const n=!0===t?{[e.label]:!0}:null==t?void 0:t[e.label];return{...e,defaultExpanded:n}};var h;Array.isArray(e)?(l="array",d=e.map((e,t)=>p({label:t.toString(),value:e}))):null!==e&&"object"==typeof e&&(h=e,Symbol.iterator in h)&&"function"==typeof e[Symbol.iterator]?(l="Iterable",d=Array.from(e,(e,t)=>p({label:t.toString(),value:e}))):"object"==typeof e&&null!==e&&(l="object",d=Object.entries(e).map(([e,t])=>p({label:e,value:t})));const f=function(e,t){if(t<1)return[];let n=0;const r=[];for(;n<e.length;)r.push(e.slice(n,n+t)),n+=t;return r}(d,r);return n({handleEntry:t=>i.createElement(IS,xE({key:t.label,value:e,renderer:n,copyable:o},a,t)),type:l,subEntries:d,subEntryPages:f,value:e,expanded:s,copyable:o,toggleExpanded:u,pageSize:r,...a})}function RS(e){return i.createElement("svg",xE({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),i.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(-33.000000, 0.000000)"},i.createElement("path",{d:"M72.7239712,61.3436237 C69.631224,46.362877 68.9675112,34.8727722 70.9666331,26.5293551 C72.1555965,21.5671678 74.3293088,17.5190846 77.6346064,14.5984631 C81.1241394,11.5150478 85.5360327,10.0020122 90.493257,10.0020122 C98.6712013,10.0020122 107.26826,13.7273214 116.455725,20.8044264 C120.20312,23.6910458 124.092437,27.170411 128.131651,31.2444746 C128.45314,30.8310265 128.816542,30.4410453 129.22143,30.0806152 C140.64098,19.9149716 150.255245,13.5989272 158.478408,11.1636507 C163.367899,9.715636 167.958526,9.57768202 172.138936,10.983031 C176.551631,12.4664684 180.06766,15.5329489 182.548314,19.8281091 C186.642288,26.9166735 187.721918,36.2310983 186.195595,47.7320243 C185.573451,52.4199112 184.50985,57.5263831 183.007094,63.0593153 C183.574045,63.1277086 184.142416,63.2532808 184.705041,63.4395297 C199.193932,68.2358678 209.453582,73.3937462 215.665021,79.2882839 C219.360669,82.7953831 221.773972,86.6998434 222.646365,91.0218204 C223.567176,95.5836746 222.669313,100.159332 220.191548,104.451297 C216.105211,111.529614 208.591643,117.11221 197.887587,121.534031 C193.589552,123.309539 188.726579,124.917559 183.293259,126.363748 C183.541176,126.92292 183.733521,127.516759 183.862138,128.139758 C186.954886,143.120505 187.618598,154.61061 185.619477,162.954027 C184.430513,167.916214 182.256801,171.964297 178.951503,174.884919 C175.46197,177.968334 171.050077,179.48137 166.092853,179.48137 C157.914908,179.48137 149.31785,175.756061 140.130385,168.678956 C136.343104,165.761613 132.410866,162.238839 128.325434,158.108619 C127.905075,158.765474 127.388968,159.376011 126.77857,159.919385 C115.35902,170.085028 105.744755,176.401073 97.5215915,178.836349 C92.6321009,180.284364 88.0414736,180.422318 83.8610636,179.016969 C79.4483686,177.533532 75.9323404,174.467051 73.4516862,170.171891 C69.3577116,163.083327 68.2780823,153.768902 69.8044053,142.267976 C70.449038,137.410634 71.56762,132.103898 73.1575891,126.339009 C72.5361041,126.276104 71.9120754,126.144816 71.2949591,125.940529 C56.8060684,121.144191 46.5464184,115.986312 40.3349789,110.091775 C36.6393312,106.584675 34.2260275,102.680215 33.3536352,98.3582381 C32.4328237,93.7963839 33.3306866,89.2207269 35.8084524,84.9287618 C39.8947886,77.8504443 47.4083565,72.2678481 58.1124133,67.8460273 C62.5385143,66.0176154 67.5637208,64.366822 73.1939394,62.8874674 C72.9933393,62.3969171 72.8349374,61.8811235 72.7239712,61.3436237 Z",fill:"#002C4B",fillRule:"nonzero",transform:"translate(128.000000, 95.000000) scale(-1, 1) translate(-128.000000, -95.000000) "}),i.createElement("path",{d:"M113.396882,64 L142.608177,64 C144.399254,64 146.053521,64.958025 146.944933,66.5115174 L161.577138,92.0115174 C162.461464,93.5526583 162.461464,95.4473417 161.577138,96.9884826 L146.944933,122.488483 C146.053521,124.041975 144.399254,125 142.608177,125 L113.396882,125 C111.605806,125 109.951539,124.041975 109.060126,122.488483 L94.4279211,96.9884826 C93.543596,95.4473417 93.543596,93.5526583 94.4279211,92.0115174 L109.060126,66.5115174 C109.951539,64.958025 111.605806,64 113.396882,64 Z M138.987827,70.2765273 C140.779849,70.2765273 142.434839,71.2355558 143.325899,72.7903404 L154.343038,92.0138131 C155.225607,93.5537825 155.225607,95.4462175 154.343038,96.9861869 L143.325899,116.20966 C142.434839,117.764444 140.779849,118.723473 138.987827,118.723473 L117.017233,118.723473 C115.225211,118.723473 113.570221,117.764444 112.67916,116.20966 L101.662022,96.9861869 C100.779452,95.4462175 100.779452,93.5537825 101.662022,92.0138131 L112.67916,72.7903404 C113.570221,71.2355558 115.225211,70.2765273 117.017233,70.2765273 L138.987827,70.2765273 Z M135.080648,77.1414791 L120.924411,77.1414791 C119.134228,77.1414791 117.480644,78.0985567 116.5889,79.6508285 L116.5889,79.6508285 L109.489217,92.0093494 C108.603232,93.5515958 108.603232,95.4484042 109.489217,96.9906506 L109.489217,96.9906506 L116.5889,109.349172 C117.480644,110.901443 119.134228,111.858521 120.924411,111.858521 L120.924411,111.858521 L135.080648,111.858521 C136.870831,111.858521 138.524416,110.901443 139.41616,109.349172 L139.41616,109.349172 L146.515843,96.9906506 C147.401828,95.4484042 147.401828,93.5515958 146.515843,92.0093494 L146.515843,92.0093494 L139.41616,79.6508285 C138.524416,78.0985567 136.870831,77.1414791 135.080648,77.1414791 L135.080648,77.1414791 Z M131.319186,83.7122186 C133.108028,83.7122186 134.760587,84.6678753 135.652827,86.2183156 L138.983552,92.0060969 C139.87203,93.5500005 139.87203,95.4499995 138.983552,96.9939031 L135.652827,102.781684 C134.760587,104.332125 133.108028,105.287781 131.319186,105.287781 L124.685874,105.287781 C122.897032,105.287781 121.244473,104.332125 120.352233,102.781684 L117.021508,96.9939031 C116.13303,95.4499995 116.13303,93.5500005 117.021508,92.0060969 L120.352233,86.2183156 C121.244473,84.6678753 122.897032,83.7122186 124.685874,83.7122186 L131.319186,83.7122186 Z M128.003794,90.1848875 C126.459294,90.1848875 125.034382,91.0072828 124.263005,92.3424437 C123.491732,93.6774232 123.491732,95.3225768 124.263005,96.6575563 C125.034382,97.9927172 126.459294,98.8151125 128.001266,98.8151125 L128.001266,98.8151125 C129.545766,98.8151125 130.970678,97.9927172 131.742055,96.6575563 C132.513327,95.3225768 132.513327,93.6774232 131.742055,92.3424437 C130.970678,91.0072828 129.545766,90.1848875 128.003794,90.1848875 L128.003794,90.1848875 Z M93,94.5009646 L100.767764,94.5009646",fill:"#FFD94C"}),i.createElement("path",{d:"M87.8601729,108.357758 C89.1715224,107.608286 90.8360246,108.074601 91.5779424,109.399303 L91.5779424,109.399303 L92.0525843,110.24352 C95.8563392,116.982993 99.8190116,123.380176 103.940602,129.435068 C108.807881,136.585427 114.28184,143.82411 120.362479,151.151115 C121.316878,152.30114 121.184944,154.011176 120.065686,154.997937 L120.065686,154.997937 L119.454208,155.534625 C99.3465389,173.103314 86.2778188,176.612552 80.2480482,166.062341 C74.3500652,155.742717 76.4844915,136.982888 86.6513274,109.782853 C86.876818,109.179582 87.3045861,108.675291 87.8601729,108.357758 Z M173.534177,129.041504 C174.986131,128.785177 176.375496,129.742138 176.65963,131.194242 L176.65963,131.194242 L176.812815,131.986376 C181.782365,157.995459 178.283348,171 166.315764,171 C154.609745,171 139.708724,159.909007 121.612702,137.727022 C121.211349,137.235047 120.994572,136.617371 121,135.981509 C121.013158,134.480686 122.235785,133.274651 123.730918,133.287756 L123.730918,133.287756 L124.684654,133.294531 C132.305698,133.335994 139.714387,133.071591 146.910723,132.501323 C155.409039,131.82788 164.283523,130.674607 173.534177,129.041504 Z M180.408726,73.8119663 C180.932139,72.4026903 182.508386,71.6634537 183.954581,72.149012 L183.954581,72.149012 L184.742552,72.4154854 C210.583763,81.217922 220.402356,90.8916805 214.198332,101.436761 C208.129904,111.751366 190.484347,119.260339 161.26166,123.963678 C160.613529,124.067994 159.948643,123.945969 159.382735,123.618843 C158.047025,122.846729 157.602046,121.158214 158.388848,119.847438 L158.388848,119.847438 L158.889328,119.0105 C162.877183,112.31633 166.481358,105.654262 169.701854,99.0242957 C173.50501,91.1948179 177.073967,82.7907081 180.408726,73.8119663 Z M94.7383398,66.0363218 C95.3864708,65.9320063 96.0513565,66.0540315 96.6172646,66.3811573 C97.9529754,67.153271 98.3979538,68.8417862 97.6111517,70.1525615 L97.6111517,70.1525615 L97.1106718,70.9895001 C93.1228168,77.6836699 89.5186416,84.3457379 86.2981462,90.9757043 C82.49499,98.8051821 78.9260328,107.209292 75.5912744,116.188034 C75.0678608,117.59731 73.4916142,118.336546 72.045419,117.850988 L72.045419,117.850988 L71.2574475,117.584515 C45.4162372,108.782078 35.597644,99.1083195 41.8016679,88.5632391 C47.8700957,78.2486335 65.515653,70.7396611 94.7383398,66.0363218 Z M136.545792,34.4653746 C156.653461,16.8966864 169.722181,13.3874478 175.751952,23.9376587 C181.649935,34.2572826 179.515508,53.0171122 169.348673,80.2171474 C169.123182,80.8204179 168.695414,81.324709 168.139827,81.6422422 C166.828478,82.3917144 165.163975,81.9253986 164.422058,80.6006966 L164.422058,80.6006966 L163.947416,79.7564798 C160.143661,73.0170065 156.180988,66.6198239 152.059398,60.564932 C147.192119,53.4145727 141.71816,46.1758903 135.637521,38.8488847 C134.683122,37.6988602 134.815056,35.9888243 135.934314,35.0020629 L135.934314,35.0020629 Z M90.6842361,18 C102.390255,18 117.291276,29.0909926 135.387298,51.2729777 C135.788651,51.7649527 136.005428,52.3826288 136,53.0184911 C135.986842,54.5193144 134.764215,55.7253489 133.269082,55.7122445 L133.269082,55.7122445 L132.315346,55.7054689 C124.694302,55.6640063 117.285613,55.9284091 110.089277,56.4986773 C101.590961,57.17212 92.7164767,58.325393 83.4658235,59.9584962 C82.0138691,60.2148231 80.6245044,59.2578618 80.3403697,57.805758 L80.3403697,57.805758 L80.1871846,57.0136235 C75.2176347,31.0045412 78.7166519,18 90.6842361,18 Z",fill:"#FF4154"}))))}const TS=(e,t,n=!1)=>Lf.useSyncExternalStore(i.useCallback(t=>n?()=>{}:e.subscribe(ff.batchCalls(t)),[e,n]),t,t),AS=i.forwardRef(function(e,t){const{isOpen:n=!0,styleNonce:r,setIsOpen:o,context:a,onDragStart:s,onPositionChange:c,showCloseButton:u,position:l,closeButtonProps:d={},errorTypes:p=[],...h}=e,{onClick:f,...m}=d,g=Uf({context:a}),y=g.getQueryCache(),[v,b]=FE("reactQueryDevtoolsSortFn",Object.keys(Zx)[0]),[k,_]=FE("reactQueryDevtoolsFilter",""),[w,E]=FE("reactQueryDevtoolsBaseSort",1),x=i.useMemo(()=>Zx[v],[v]),S=TS(y,()=>y.getAll().length,!n),[C,I]=FE("reactQueryDevtoolsActiveQueryHash",""),R=i.useMemo(()=>{const e=y.getAll();if(0===S)return[];const t=k?e.filter(e=>NE(e.queryHash,k).passed):[...e];return x?t.sort((e,t)=>x(e,t)*w):t},[w,x,k,S,y]),[T,A]=i.useState(!1);return i.createElement(Hx,{theme:Gx},i.createElement(aS,xE({ref:t,className:"ReactQueryDevtoolsPanel","aria-label":"React Query Devtools Panel",id:"ReactQueryDevtoolsPanel"},h,{style:{height:Xx,position:"relative",...h.style}}),i.createElement("style",{nonce:r,dangerouslySetInnerHTML:{__html:"\n .ReactQueryDevtoolsPanel * {\n scrollbar-color: "+Gx.backgroundAlt+" "+Gx.gray+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar, .ReactQueryDevtoolsPanel scrollbar {\n width: 1em;\n height: 1em;\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-track, .ReactQueryDevtoolsPanel scrollbar-track {\n background: "+Gx.backgroundAlt+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-thumb, .ReactQueryDevtoolsPanel scrollbar-thumb {\n background: "+Gx.gray+";\n border-radius: .5em;\n border: 3px solid "+Gx.backgroundAlt+";\n }\n "}}),i.createElement("div",{style:oS(l),onMouseDown:s}),n&&i.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:"1px solid "+Gx.grayAlt,display:"flex",flexDirection:"column"}},i.createElement("div",{style:{padding:".5em",background:Gx.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},i.createElement("button",{type:"button","aria-label":"Close React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true",onClick:()=>o(!1),style:{display:"inline-flex",background:"none",border:0,padding:0,marginRight:".5em",cursor:"pointer"}},i.createElement(RS,{"aria-hidden":!0}),i.createElement(hS,{text:"Close React Query Devtools"})),i.createElement("div",{style:{display:"flex",flexDirection:"column"}},i.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:".5em"}},i.createElement(PS,{queryCache:y}),l&&c?i.createElement(pS,{"aria-label":"Panel position",value:l,style:{marginInlineStart:".5em"},onChange:e=>c(e.target.value)},i.createElement("option",{value:"left"},"Left"),i.createElement("option",{value:"right"},"Right"),i.createElement("option",{value:"top"},"Top"),i.createElement("option",{value:"bottom"},"Bottom")):null),i.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"0.5em"}},i.createElement(dS,{placeholder:"Filter","aria-label":"Filter by queryhash",value:null!=k?k:"",onChange:e=>_(e.target.value),onKeyDown:e=>{"Escape"===e.key&&_("")},style:{flex:"1",width:"100%"}}),i.createElement(pS,{"aria-label":"Sort queries",value:v,onChange:e=>b(e.target.value),style:{flex:"1",minWidth:75,marginRight:".5em"}},Object.keys(Zx).map(e=>i.createElement("option",{key:e,value:e},"Sort by ",e))),i.createElement(sS,{type:"button",onClick:()=>E(e=>-1*e),style:{padding:".3em .4em",marginRight:".5em"}},1===w?"⬆ Asc":"⬇ Desc"),i.createElement(sS,{title:"Clear cache","aria-label":"Clear cache",type:"button",onClick:()=>y.clear(),style:{padding:".3em .4em",marginRight:".5em"}},"Clear"),i.createElement(sS,{type:"button",onClick:()=>{T?(sf.setOnline(void 0),A(!1),window.dispatchEvent(new Event("online"))):(sf.setOnline(!1),A(!0))},"aria-label":T?"Restore offline mock":"Mock offline behavior",title:T?"Restore offline mock":"Mock offline behavior",style:{padding:"0",height:"2em"}},i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"2em",height:"2em",viewBox:"0 0 24 24",stroke:T?Gx.danger:"currentColor",fill:"none"},T?i.createElement(i.Fragment,null,i.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),i.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),i.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),i.createElement("path",{d:"M6.343 12.343a7.963 7.963 0 0 1 3.864 -2.14m4.163 .155a7.965 7.965 0 0 1 3.287 2"}),i.createElement("path",{d:"M3.515 9.515a12 12 0 0 1 3.544 -2.455m3.101 -.92a12 12 0 0 1 10.325 3.374"}),i.createElement("line",{x1:"3",y1:"3",x2:"21",y2:"21"})):i.createElement(i.Fragment,null,i.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),i.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),i.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),i.createElement("path",{d:"M6.343 12.343a8 8 0 0 1 11.314 0"}),i.createElement("path",{d:"M3.515 9.515c4.686 -4.687 12.284 -4.687 17 0"}))),i.createElement(hS,{text:T?"Restore offline mock":"Mock offline behavior"}))))),i.createElement("div",{style:{overflowY:"auto",flex:"1"}},R.map(e=>i.createElement(DS,{queryKey:e.queryKey,activeQueryHash:C,setActiveQueryHash:I,key:e.queryHash,queryCache:y})))),C&&n?i.createElement(OS,{activeQueryHash:C,queryCache:y,queryClient:g,errorTypes:p}):null,u?i.createElement(sS,xE({type:"button","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true"},m,{style:{position:"absolute",zIndex:99999,margin:".5em",bottom:0,left:0,...m.style},onClick:e=>{o(!1),null==f||f(e)}}),"Close"):null))}),OS=({queryCache:e,activeQueryHash:t,queryClient:n,errorTypes:r})=>{var o,a;const s=TS(e,()=>e.getAll().find(e=>e.queryHash===t)),c=TS(e,()=>{var n;return null==(n=e.getAll().find(e=>e.queryHash===t))?void 0:n.state}),u=null!=(o=TS(e,()=>{var n;return null==(n=e.getAll().find(e=>e.queryHash===t))?void 0:n.isStale()}))&&o,l=null!=(a=TS(e,()=>{var n;return null==(n=e.getAll().find(e=>e.queryHash===t))?void 0:n.getObserversCount()}))?a:0,d=p(()=>{if(s&&null!=c&&c.error){const e=r.find(e=>{var t;return e.initializer(s).toString()===(null==(t=c.error)?void 0:t.toString())});return null==e?void 0:e.name}},[s,null==c?void 0:c.error,r]);if(!s||!c)return null;const h=e=>{var t;const n=null!=(t=null==e?void 0:e.initializer(s))?t:new Error("Unknown error from devtools"),r=s.options;s.setState({status:"error",error:n,fetchMeta:{...s.state.fetchMeta,__previousQueryOptions:r}})};return i.createElement(iS,null,i.createElement("div",{style:{padding:".5em",background:Gx.backgroundAlt,position:"sticky",top:0,zIndex:1}},"Query Details"),i.createElement("div",{style:{padding:".5em"}},i.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"flex-start",justifyContent:"space-between"}},i.createElement(lS,{style:{lineHeight:"1.8em"}},i.createElement("pre",{style:{margin:0,padding:0,overflow:"auto"}},Qx(s.queryKey,!0))),i.createElement("span",{style:{padding:"0.3em .6em",borderRadius:"0.4em",fontWeight:"bold",textShadow:"0 2px 10px black",background:Vx({queryState:c,isStale:u,observerCount:l,theme:Gx}),flexShrink:0}},Kx(s))),i.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"center",justifyContent:"space-between"}},"Observers: ",i.createElement(lS,null,l)),i.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},"Last Updated:"," ",i.createElement(lS,null,new Date(c.dataUpdatedAt).toLocaleTimeString()))),i.createElement("div",{style:{background:Gx.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Actions"),i.createElement("div",{style:{padding:"0.5em",display:"flex",flexWrap:"wrap",gap:"0.5em",alignItems:"flex-end"}},i.createElement(sS,{type:"button",onClick:()=>{const e=null==s?void 0:s.fetch();null==e||e.catch(LS)},disabled:"fetching"===c.fetchStatus,style:{background:Gx.active}},"Refetch")," ",i.createElement(sS,{type:"button",onClick:()=>n.invalidateQueries(s),style:{background:Gx.warning,color:Gx.inputTextColor}},"Invalidate")," ",i.createElement(sS,{type:"button",onClick:()=>n.resetQueries(s),style:{background:Gx.gray}},"Reset")," ",i.createElement(sS,{type:"button",onClick:()=>n.removeQueries(s),style:{background:Gx.danger}},"Remove")," ",i.createElement(sS,{type:"button",onClick:()=>{var e;if("fetching"!==s.state.fetchStatus||void 0!==(null==(e=s.state.fetchMeta)?void 0:e.__previousQueryOptions))if(void 0===s.state.data)s.fetch(s.state.fetchMeta.__previousQueryOptions,{cancelRefetch:!0});else{const e=s.options;s.fetch({...e,queryFn:()=>new Promise(()=>{}),cacheTime:-1}),s.setState({data:void 0,status:"loading",fetchMeta:{...s.state.fetchMeta,__previousQueryOptions:e}})}},style:{background:Gx.paused}},"loading"===s.state.status?"Restore":"Trigger"," ","loading")," ",0===r.length||"error"===s.state.status?i.createElement(sS,{type:"button",onClick:()=>{s.state.error?n.resetQueries(s):h()},style:{background:Gx.danger}},"error"===s.state.status?"Restore":"Trigger"," error"):i.createElement("label",null,"Trigger error:",i.createElement(pS,{value:null!=d?d:"",style:{marginInlineStart:".5em"},onChange:e=>{const t=r.find(t=>t.name===e.target.value);h(t)}},i.createElement("option",{key:"",value:""}),r.map(e=>i.createElement("option",{key:e.name,value:e.name},e.name))))),i.createElement("div",{style:{background:Gx.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Data Explorer"),i.createElement("div",{style:{padding:".5em"}},i.createElement(IS,{label:"Data",value:c.data,defaultExpanded:{},copyable:!0})),i.createElement("div",{style:{background:Gx.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Query Explorer"),i.createElement("div",{style:{padding:".5em"}},i.createElement(IS,{label:"Query",value:s,defaultExpanded:{queryKey:!0}})))},PS=({queryCache:e})=>{const t=TS(e,()=>e.getAll().filter(e=>"fresh"===Kx(e)).length),n=TS(e,()=>e.getAll().filter(e=>"fetching"===Kx(e)).length),r=TS(e,()=>e.getAll().filter(e=>"paused"===Kx(e)).length),o=TS(e,()=>e.getAll().filter(e=>"stale"===Kx(e)).length),a=TS(e,()=>e.getAll().filter(e=>"inactive"===Kx(e)).length);return i.createElement(cS,null,i.createElement(uS,{style:{background:Gx.success,opacity:t?1:.3}},"fresh ",i.createElement(lS,null,"(",t,")"))," ",i.createElement(uS,{style:{background:Gx.active,opacity:n?1:.3}},"fetching ",i.createElement(lS,null,"(",n,")"))," ",i.createElement(uS,{style:{background:Gx.paused,opacity:r?1:.3}},"paused ",i.createElement(lS,null,"(",r,")"))," ",i.createElement(uS,{style:{background:Gx.warning,color:"black",textShadow:"0",opacity:o?1:.3}},"stale ",i.createElement(lS,null,"(",o,")"))," ",i.createElement(uS,{style:{background:Gx.gray,opacity:a?1:.3}},"inactive ",i.createElement(lS,null,"(",a,")")))},DS=i.memo(({queryKey:e,setActiveQueryHash:t,activeQueryHash:n,queryCache:r})=>{var o,a,s,c;const u=null!=(o=TS(r,()=>{var t;return null==(t=r.find(e))?void 0:t.queryHash}))?o:"",l=TS(r,()=>{var t;return null==(t=r.find(e))?void 0:t.state}),d=null!=(a=TS(r,()=>{var t;return null==(t=r.find(e))?void 0:t.isStale()}))&&a,p=null!=(s=TS(r,()=>{var t;return null==(t=r.find(e))?void 0:t.isDisabled()}))&&s,h=null!=(c=TS(r,()=>{var t;return null==(t=r.find(e))?void 0:t.getObserversCount()}))?c:0;return l?i.createElement("div",{role:"button","aria-label":"Open query details for "+u,onClick:()=>t(n===u?"":u),style:{display:"flex",borderBottom:"solid 1px "+Gx.grayAlt,cursor:"pointer",background:u===n?"rgba(255,255,255,.1)":void 0}},i.createElement("div",{style:{flex:"0 0 auto",width:"2em",height:"2em",background:Vx({queryState:l,isStale:d,observerCount:h,theme:Gx}),display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold",textShadow:d?"0":"0 0 10px black",color:d?"black":"white"}},h),p?i.createElement("div",{style:{flex:"0 0 auto",height:"2em",background:Gx.gray,display:"flex",alignItems:"center",fontWeight:"bold",padding:"0 0.5em"}},"disabled"):null,i.createElement(lS,{style:{padding:".5em"}},""+u)):null});function LS(){}DS.displayName="QueryRow";const jS="development"!==process.env.NODE_ENV?function(){return null}:function({initialIsOpen:e,panelProps:t={},closeButtonProps:n={},toggleButtonProps:r={},position:o="bottom-left",containerElement:a="aside",context:s,styleNonce:c,panelPosition:u="bottom",errorTypes:l=[]}){const d=i.useRef(null),p=i.useRef(null),[h,f]=FE("reactQueryDevtoolsOpen",e),[m,g]=FE("reactQueryDevtoolsHeight",Xx),[y,v]=FE("reactQueryDevtoolsWidth",Xx),[b="bottom",k]=FE("reactQueryDevtoolsPanelPosition",u),[_,w]=i.useState(!1),[E,x]=i.useState(!1),S=function(){const e=i.useRef(!1),t=i.useCallback(()=>e.current,[]);return i.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t}();i.useEffect(()=>{w(null!=h&&h)},[h,_,w]),i.useEffect(()=>{const e=p.current;if(e){const t=()=>{_&&(e.style.visibility="visible")},n=()=>{_||(e.style.visibility="hidden")};return e.addEventListener("transitionstart",t),e.addEventListener("transitionend",n),()=>{e.removeEventListener("transitionstart",t),e.removeEventListener("transitionend",n)}}},[_]),i.useEffect(()=>{var e;if(_&&null!=(e=d.current)&&e.parentElement){const{parentElement:e}=d.current,t=rS("padding",b),n=tS(b),r=(({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:r,paddingRight:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:r,paddingRight:o}))(e.style),o=()=>{e.style.padding="0px",e.style.paddingTop="0px",e.style.paddingBottom="0px",e.style.paddingLeft="0px",e.style.paddingRight="0px",e.style[t]=(n?y:m)+"px"};if(o(),"undefined"!=typeof window)return window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o),Object.entries(r).forEach(([t,n])=>{e.style[t]=n})}}},[_,b,m,y]);const{style:C={},...I}=t,{style:R={},onClick:T,...A}=r,O=function({position:e="bottom",height:t,width:n,devtoolsTheme:r,isOpen:o,isResizing:a,panelStyle:i}){const s=nS(e),c=rS("border",s),u=tS(e);return{...i,direction:"ltr",position:"fixed",[e]:0,[c]:"1px solid "+r.gray,transformOrigin:s,boxShadow:"0 0 20px rgba(0,0,0,.3)",zIndex:99999,visibility:o?"visible":"hidden",...a?{transition:"none"}:{transition:"all .2s ease"},...o?{opacity:1,pointerEvents:"all",transform:u?"translateX(0) scale(1)":"translateY(0) scale(1)"}:{opacity:0,pointerEvents:"none",transform:u?"translateX(15px) scale(1.02)":"translateY(15px) scale(1.02)"},...u?{top:0,height:"100vh",maxWidth:"90%",width:"number"==typeof n&&n>=70?n:Xx}:{left:0,width:"100%",maxHeight:"90%",height:"number"==typeof t&&t>=70?t:Xx}}}({position:b,devtoolsTheme:Gx,isOpen:_,height:m,width:y,isResizing:E,panelStyle:C});return S()?i.createElement(a,{ref:d,className:"ReactQueryDevtools","aria-label":"React Query Devtools"},i.createElement(Hx,{theme:Gx},i.createElement(AS,xE({ref:p,context:s,styleNonce:c,position:b,onPositionChange:k,showCloseButton:!0,closeButtonProps:n},I,{style:O,isOpen:_,setIsOpen:f,onDragStart:e=>((e,t)=>{if(!e)return;if(0!==t.button)return;const n=tS(b);x(!0);const{height:r,width:o}=e.getBoundingClientRect(),a=t.clientX,i=t.clientY;let s=0;const c=e=>{e.preventDefault(),n?(s=o+("right"===b?a-e.clientX:e.clientX-a),v(s)):(s=r+("bottom"===b?i-e.clientY:e.clientY-i),g(s)),f(!(s<70))},u=()=>{E&&x(!1),document.removeEventListener("mousemove",c,!1),document.removeEventListener("mouseUp",u,!1)};document.addEventListener("mousemove",c,!1),document.addEventListener("mouseup",u,!1)})(p.current,e),errorTypes:l}))),_?null:i.createElement("button",xE({type:"button"},A,{"aria-label":"Open React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"false",onClick:e=>{f(!0),null==T||T(e)},style:{background:"none",border:0,padding:0,position:"fixed",zIndex:99999,display:"inline-flex",fontSize:"1.5em",margin:".5em",cursor:"pointer",width:"fit-content",..."top-right"===o?{top:"0",right:"0"}:"top-left"===o?{top:"0",left:"0"}:"bottom-right"===o?{bottom:"0",right:"0"}:{bottom:"0",left:"0"},...R}}),i.createElement(RS,{"aria-hidden":!0}),i.createElement(hS,{text:"Open React Query Devtools"}))):null};process.env.NODE_ENV;var NS,zS={backgroundColor:"#fcfcff",width:"100%",zIndex:1e7,height:"100%",position:"absolute"};function qS(e){var o=this,a=e.children,i=process.env.ENVIRONMENT,s=p(function(){return"DEV"!==i&&"LOCAL"!==i?"testing":"live"},[i]),l=c(!1),h=l[0],f=l[1],m=d(function(e){return n(o,void 0,void 0,function(){var n,o,a,i,c;return r(this,function(r){switch(r.label){case 0:return n=localStorage.getItem("headers"),o=n&&JSON.parse(n),a=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live",i=localStorage.getItem("x-organization-code"),c=i?JSON.parse(i).value:"",[4,jh.refreshInstance({headers:t(t({},o),{"X-Environment":a||s,"x-organization-code":c,"x-account-code":e.detail.accountCode,"X-Content-Type-Options":"nosniff"})})];case 1:return r.sent(),[2]}})})},[s]);u(function(){return addEventListener("ACCOUNT_CHANGED",m),function(){window.removeEventListener("ACCOUNT_CHANGED",m)}},[m]);var g=d(function(e){return n(o,void 0,void 0,function(){var n,o,a,i,c,u,l;return r(this,function(r){switch(r.label){case 0:return n=localStorage.getItem("headers"),(o=n&&JSON.parse(n))?(a=localStorage.getItem("x-organization-code"),i=localStorage.getItem("account"),c=i?null===(l=JSON.parse(i).value)||void 0===l?void 0:l.code:"",u=a?JSON.parse(a).value:"",[4,jh.refreshInstance({headers:t(t({},o),{"X-Environment":e||s,"x-organization-code":u,"x-account-code":c,"X-Content-Type-Options":"nosniff"})})]):[3,2];case 1:r.sent(),Um.refetchQueries(["fetch-profile","accountsV2","accounts","fetch-all-organizations","fetch-permissions"]),f(!0),r.label=2;case 2:return[2]}})})},[s,f]);return u(function(){var e=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live";window.addEventListener("storage",function(t){if("token"===t.key||"isTesting"===t.key){var n="OFF"===t.newValue?"live":"testing";"isTesting"===t.key?g(n):"token"===t.key&&g(e)}}),g(e)},[f,g]),h?React.createElement(Mf,{client:Um},a,React.createElement(jS,{initialIsOpen:!1})):React.createElement("div",{style:zS})}!function(e){e.ECONNABORTED="ECONNABORTED",e.ETIMEDOUT="ETIMEDOUT",e.ERR_BAD_REQUEST="ERR_BAD_REQUEST"}(NS||(NS={}));var US=function(){var e=l(null),t=l(null),n=l(null),r=c(!1),o=r[0],a=r[1],i=c(null),s=i[0],p=i[1],h=c(null),f=h[0],m=h[1],g=d(function(){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null)},[]),y=d(function(){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null),m(null);try{var r=new WebSocket("".concat(Lh["WS_URL_".concat(Lh.ENVIRONMENT)],"/data-assistant/charts/ws"));e.current=r,r.onopen=function(){a(!0);var e=localStorage.getItem("token");e&&r.send(JSON.stringify({type:"auth",token:e})),t.current=setInterval(function(){r.readyState===WebSocket.OPEN?r.send(JSON.stringify({type:"ping"})):(g(),a(!1))},3e4)},r.onmessage=function(e){try{var t=JSON.parse(e.data);p(t)}catch(e){m("Failed to parse server response")}},r.onerror=function(e){m("Connection error occurred"),a(!1)},r.onclose=function(e){a(!1),g(),e.wasClean||1e3===e.code||(n.current=setTimeout(function(){y()},5e3))}}catch(e){m("Failed to establish connection")}},[]),v=d(function(t){var n;(null===(n=e.current)||void 0===n?void 0:n.readyState)===WebSocket.OPEN&&e.current.send(JSON.stringify({type:"subscribe",chart_id:t}))},[]),b=d(function(t){var n;(null===(n=e.current)||void 0===n?void 0:n.readyState)===WebSocket.OPEN&&e.current.send(JSON.stringify({type:"unsubscribe",chart_id:t}))},[]),k=d(function(){p(null)},[]),_=d(function(){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null),e.current&&(a(!1),e.current.close(1e3,"Manual disconnect"),e.current=null)},[]);return u(function(){return y(),function(){g(),_()}},[]),{subscribe:v,unsubscribe:b,disconnect:_,connect:y,clearChartData:k,isConnected:o,chartData:s,connectionError:f}},MS=["LOCAL","DEV","STG"].includes(process.env.ENVIRONMENT||"");"undefined"!=typeof window&&MS&&function(){n(this,void 0,void 0,function(){var e;return r(this,function(t){switch(t.label){case 0:if(!ki())return console.info('MSW is disabled. Run "window.enableMSW()" to enable it.'),[2];console.info('MSW is enabled. Run "window.disableMSW()" to disable it.'),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,yi.start({serviceWorker:{url:"/mockServiceWorker.js"},onUnhandledRequest:"bypass"})];case 2:return t.sent(),[3,4];case 3:return e=t.sent(),console.error("Error starting MSW:",e),[3,4];case 4:return[2]}})})}();export{jd as AI,Oh as Api,NS as ApiErrorCodes,qS as ApiProvider,jh as ApiSingleton,Ld as Audit,Fv as CONCIERGE_ALERTS_QUERY_KEY,Gv as CONCIERGE_ALERT_BY_ID_QUERY_KEY,Id as Cms,Cd as Country,Od as DataReport,$f as DuplicateSetting,lh as FEEDBACK_ISSUE_OPTIONS,Sd as Organization,Nd as OrganizationConfig,xd as PaymentFiltersSection,Qv as PendingDuplicateAccountStatus,Dd as ReconciliationAgendaInsight,Pd as ReconciliationReportType,Rd as ReportType,Ed as SendPaymentNotification,Ad as SmartRouting,Td as TemplateType,mk as getQueryKeyGetNameAndIcon,kk as getQueryKeyPaymentMethodAccounts,yk as getQueryKeyRequiredFields,qm as queryCache,Um as queryClient,lk as use3DSExemptions,dv as useAICreateWorkflow,Om as useAccountCode,zm as useAddToRiskList,aw as useAllFeatureFlags,jw as useAllowListDetail,Lw as useBlackListDetail,Mv as useBlockOnboarding,Dv as useBulkCreateInstallmentsPlans,Lv as useBulkDeleteInstallmentsPlans,eg as useBulkToggleMethod,iw as useCachedFeatureFlag,Wm as useCancelReport,Rg as useCancelSubscription,gm as useChangePasswordV2,hy as useChangePaymentsWebhook,cy as useChangeStatusBlackList,uy as useChangeStatusItemBlackList,xk as useChangeStylingSettings,Ev as useChangeTemplateStatus,jm as useChargebacksUpload,US as useChartAssistantSocket,Ww as useChartExecute,_v as useCloneTemplate,Vg as useCommunicationDetails,Wg as useCommunications,oE as useCommunicationsByDay,aE as useCommunicationsBySubstatus,Hg as useCommunicationsFilters,iE as useCommunicationsSubstatusByDay,Yg as useConfirmedOtpMfa,Gm as useCountRowsForReport,gv as useCreateAndExecuteChart,vv as useCreateAndExecuteChartWithTimezone,hv as useCreateChart,yv as useCreateChartWithTimezone,Vv as useCreateConciergeAlert,Av as useCreateInstallmentsPlan,lg as useCreateMonitorTemplate,ug as useCreateMonitorThreshold,qv as useCreateOnboarding,Lm as useCreateOperationTransaction,yg as useCreateOrgRole,_g as useCreatePaymentLinks,jv as useCreateRecipient,ov as useCreateReconciliationAlert,nv as useCreateReconciliationReportTemplate,Mm as useCreateReconciliationsReportV2,Bm as useCreateReconciliationsReportV3,Hm as useCreateReportTemplate,Fm as useCreateReportV2,fg as useCreateRoles,cv as useCreateSamlConfig,Sv as useCreateSchedule,Iy as useCreateScheduledReport,Sg as useCreateSubscription,kv as useCreateTemplate,Sm as useCreateUserAuth0,$m as useCreateWorkflow,om as useDeleteAccountsUserMassive,gy as useDeleteAllowlistItem,dy as useDeleteBlackListType,fy as useDeleteBlockListItem,fv as useDeleteChart,Kv as useDeleteConciergeAlert,Uy as useDeleteCustomizedApiKeys,Pv as useDeleteInstallmentsPlan,bg as useDeleteOrgRole,wg as useDeletePaymentLink,zv as useDeleteRecipient,av as useDeleteReconciliationAlert,Km as useDeleteReportTemplate,gg as useDeleteRoles,lv as useDeleteSamlConfig,Iv as useDeleteSchedule,Ty as useDeleteScheduledReport,xv as useDeleteTemplate,pg as useDeleteUserTeamV2,Jm as useDeleteVersion,Yf as useDeleteWebhookV2,Cv as useDisableSchedule,Xf as useDuplicateAccount,Zm as useDuplicateVersion,vg as useEditOrgRole,Eg as useEditPaymentLinks,mg as useEditRoles,Ug as useEmailVerification,$v as useEnableConciergeAlert,Sy as useExcludeUsers,Zy as useExportApiLogs,ev as useExportDashboardLogs,tv as useExportMonitorsLogs,Xy as useExportWebhooksLogs,ow as useFeatureFlags,Vk as useFetchUserExportDetail,Tw as useFirebaseUserSubscribe,pv as useGenerateFeedback,qb as useGetAccounts,Mb as useGetAccountsByUser,Bb as useGetAccountsForImpersonation,Ub as useGetAccountsV2,Uw as useGetAllConfigRules,Ib as useGetAllOrganizations,P_ as useGetAllReconciliationsAdvancements,T_ as useGetAllReconciliationsAgenda,R_ as useGetAllReconciliationsAlerts,D_ as useGetAllReconciliationsFees,O_ as useGetAllReconciliationsSales,x_ as useGetAllTableColumns,_b as useGetAllowedIps,pw as useGetApiLogsByTransactionCode,dw as useGetApiLogsDetailByPaymentCode,kw as useGetApiLogsList,vw as useGetApiLogsStatsErrors,bw as useGetApiLogsStatsErrorsByEndpoint,yw as useGetApiLogsStatsRequests,_E as useGetApiLogsV3,_w as useGetApiLogsV3ByPaymentCode,sw as useGetAuditEvents,fw as useGetAuditExportDownload,hw as useGetAuditExportsList,Qb as useGetAuditLogsFilters,cw as useGetAuditMonitorEventDetail,_y as useGetBatchRefundProcessedFileDownload,wy as useGetBatchRefundUserFileDownload,zw as useGetBatchRefunds,Ow as useGetBlackList,Dw as useGetBlockListSummary,rb as useGetCardBrands,$w as useGetChartFeedback,Hw as useGetChartsByUser,Vw as useGetChartsByUserWithResults,fk as useGetCheckouts,Hv as useGetConciergeAlertById,Wv as useGetConciergeAlerts,Ay as useGetConditionalConfigRules,Aw as useGetConfigAllowlist,Db as useGetConnections,Ob as useGetConnectionsByPaymentMethod,xw as useGetCountriesConfigPaymentLink,Sw as useGetCountriesConfigPaymentLinkV2,bk as useGetCountryData,bb as useGetCredentials,Fy as useGetCredentialsMFA,Eb as useGetCustomizedApiKeys,wb as useGetCustomizedApiKeysAccounts,kb as useGetCustomizedApiKeysMembers,xb as useGetCustomizedApiKeysProducts,Ny as useGetCustomizedApiKeysToken,Yb as useGetDashboardStaticContents,Lb as useGetDialogs,Dk as useGetDownloadReport,Qg as useGetEmailOtp,Pb as useGetHashPylon,Fg as useGetImpersonationEnabled,Bg as useGetImpersonationUsers,o_ as useGetInsightsReport,a_ as useGetInsightsReportAgain,bE as useGetInstallmentsPlans,Ab as useGetIntegrationByAccountV2,Tb as useGetIntegrationParams,Qw as useGetLanguages,Jb as useGetLocales,Mg as useGetLoginMethods,Bw as useGetMFAConfig,Mw as useGetMFAExcludedUsers,Fw as useGetMFAStatus,Wb as useGetMenu,Ik as useGetMergedNotifications,gk as useGetNameAndIcon,Jw as useGetNetworkTokensOnboardingByOrganization,Sk as useGetNotificationsCustomer,Rk as useGetNotificationsNumberMutation,yE as useGetOnboardingDetail,fE as useGetOnboardingStatus,vE as useGetOnboardingTimeline,Gk as useGetOrgPermissionsCatalog,Fk as useGetOrgRolesPermissions,Cb as useGetOrganization,hE as useGetOrganizationConfigs,Wy as useGetOrganizationKeysMetadata,ob as useGetPaymentFilters,Ew as useGetPaymentLinkByCode,ww as useGetPaymentLinks,_k as useGetPaymentMethodAccounts,nb as useGetPaymentMethodsAndProviders,ab as useGetPaymentMetricsFilters,Hb as useGetPaymentStatusesStyles,ib as useGetPaymentTransactionsDetails,Zv as useGetPaymentV2,tb as useGetPaymentsMethodsByCountry,lb as useGetPayoutDetail,pb as useGetPayoutHistoryDetail,vb as useGetPayoutTimeline,db as useGetPayoutTransactionDetail,Gb as useGetPendingDuplicateAccounts,qg as useGetPermissions,Bk as useGetPermissionsCatalog,Ng as useGetProfile,hb as useGetProofOfCancel,fb as useGetProofOfPayment,Rb as useGetProviderParams,gE as useGetRecipientById,mE as useGetRecipients,S_ as useGetReconciliationActive,A_ as useGetReconciliationAgendaInsightsByKey,E_ as useGetReconciliationFilters,U_ as useGetReconciliationInsightsAmountConflictAggregators,M_ as useGetReconciliationInsightsAmountConflictList,ew as useGetReconciliationInsightsAmountToBeSettledSummary,F_ as useGetReconciliationInsightsConflictDateAggregators,G_ as useGetReconciliationInsightsConflictDateList,B_ as useGetReconciliationInsightsConflictDateSummary,L_ as useGetReconciliationInsightsConflictsSummary,K_ as useGetReconciliationInsightsFeesChargedSummary,H_ as useGetReconciliationInsightsIncorrectFeesAggregators,V_ as useGetReconciliationInsightsIncorrectFeesList,W_ as useGetReconciliationInsightsIncorrectFeesSummary,Z_ as useGetReconciliationInsightsNotConfirmAggregators,X_ as useGetReconciliationInsightsNotConfirmList,J_ as useGetReconciliationInsightsNotConfirmSummary,j_ as useGetReconciliationInsightsNotReconciledAggregators,N_ as useGetReconciliationInsightsNotReconciledList,Q_ as useGetReconciliationInsightsReconciledAggregators,Y_ as useGetReconciliationInsightsReconciledList,$_ as useGetReconciliationInsightsReconciledSummary,nw as useGetReconciliationInsightsReconciliationRateByAccount,rw as useGetReconciliationInsightsReconciliationRateByCurrency,tw as useGetReconciliationInsightsReconciliationRateByProvider,z_ as useGetReconciliationInsightsStatusConflictAggregators,q_ as useGetReconciliationInsightsStatusConflictList,w_ as useGetReconciliationMetrics,Kb as useGetReconciliationTransactionStatusesStyles,k_ as useGetReconciliationTransactions,C_ as useGetReconciliationsReportColumns,I_ as useGetReconciliationsReportTemplates,Nk as useGetRefundPdf,jk as useGetReportColumns,Lk as useGetReportTemplates,Ok as useGetReportsList,Pk as useGetReportsListMultiEnv,vk as useGetRequiredFields,Uk as useGetRoles,Fb as useGetRolesForImpersonation,Mk as useGetRolesPermissions,hk as useGetRoutingMonitorsTemplate,pk as useGetRoutingMonitorsTemplates,Oy as useGetRule,Gw as useGetSamlConfig,Cy as useGetScheduledReportsList,__ as useGetSettlements,tk as useGetSmartRoutingConditionPaymentMethod,ek as useGetSmartRoutingConditionTypes,nk as useGetSmartRoutingConditionTypesValues,Kk as useGetSmartRoutingDataReport,ak as useGetSmartRoutingDeclineGroups,Zb as useGetSmartRoutingMethods,ok as useGetSmartRoutingNextRoute,ik as useGetSmartRoutingPaymentRoute,ck as useGetSmartRoutingSearchConditionValues,sk as useGetSmartRoutingSimulateConditionTypeValues,Xb as useGetSmartRoutingWorkflow,rk as useGetSmartRoutingWorkflowVersion,wk as useGetStylingSdkDynamic,Ek as useGetStylingSettingsV2,Iw as useGetSubscriptionByCode,Rw as useGetSubscriptionPayments,zk as useGetTeamsFiltersMembers,$b as useGetTimeZoneCatalog,Cw as useGetTimezonePaymentLink,$g as useGetTokenValidation,Xv as useGetTransactionDetailsV2,sb as useGetTransactionHistoryByPaymentCode,eb as useGetTransactionRawResponse,Vb as useGetTransactionStatusesStyles,Yw as useGetTranslations,mw as useGetUnifiedExportStatus,gw as useGetUnifiedExportsList,Wk as useGetUserExportStatus,zg as useGetUserFull,Gg as useGetUsersToImpersonate,Ck as useGetValidateOpsgenieKey,jb as useGetWebhookParamsV2,wE as useGetWebhookTimeline,zb as useGetWebhooksV2Detail,Nb as useGetWebhooksV3,u_ as useInsights3dsConversionRateAndEvolution,l_ as useInsights3dsDeclineReasons,d_ as useInsights3dsFrictionlessVsChallenge,c_ as useInsights3dsVolumeAndCountTx,b_ as useInsightsChargebacksByCardBrand,g_ as useInsightsChargebacksByProviderAndCardBrand,m_ as useInsightsChargebacksDisputed,y_ as useInsightsChargebacksReasonsDistribution,v_ as useInsightsChargebacksStatusDistribution,h_ as useInsightsChargebacksTotalRateAndEvolution,p_ as useInsightsChargebacksVolumeAndCountTx,f_ as useInsightsChargebacksWinRate,$k as useInsightsConversionRateMetricsV2,e_ as useInsightsCustomerPaymentsAndFraudMetrics,Yk as useInsightsFallbackMetrics,s_ as useInsightsFraudScreeningConversionRate,i_ as useInsightsFraudScreeningVolumeAndCountTx,r_ as useInsightsHomeMetrics,t_ as useInsightsOverviewMetrics,n_ as useInsightsOverviewMetricsV3,Xk as useInsightsTotalPaymentsAndFraudMetrics,Jk as useInsightsVolumeMetrics,Zk as useInsightsVolumeMetricsV2,wm as useInviteUsersMultiaccountMassive,Em as useInviteUsersMultiaccountMassiveV2,Rm as useIsTesting,Og as useListSubscriptions,Hk as useListUserExports,Tm as useLocalStorage,Im as useLoginMethods,dk as useNetworkTokensOnboarding,um as useNewPostConnectionValidate,Am as useOrganizationCode,tm as usePatchAccountV2,oy as usePatchAddAllowlistItems,Sb as usePatchAllowedIps,ay as usePatchAllowlist,Kw as usePatchAndExecuteChart,My as usePatchApiKeysEditNote,ny as usePatchChangeStatusAllowlist,ry as usePatchChangeStatusAllowlistItem,mv as usePatchChartName,lm as usePatchConnection,Hy as usePatchOrganizationKeysNote,jy as usePathCreateCustomizedApiKeys,Tk as usePathNotifications,Cg as usePauseSubscription,yb as usePayoutsFilters,gb as usePayoutsList,Zf as usePostAccount,Nw as usePostAllowlistMultiAccount,By as usePostApiKeysRoll,uw as usePostApiLogs,Qy as usePostAuditMonitors,ky as usePostBatchRefundByFile,py as usePostBlackListBatch,ly as usePostBlackListItems,iy as usePostBlackListMultiAccount,Pw as usePostBlockList,Cm as usePostCall,im as usePostChangeStatusConnection,cm as usePostConnectionMultiAccount,ty as usePostCreateAllowlistMultiAccount,Ly as usePostCreateCustomizedApiKeys,sv as usePostCreateInsightsReport,Py as usePostCreateRuleMultiAccount,zy as usePostCredentialsValidatePassword,qy as usePostCredentialsValidatePasswordRegularUser,Gy as usePostCredentialsWithOtpMfa,dm as usePostDefaultRoutes,Dy as usePostEditRule,ub as usePostFraudTransactions,Xg as usePostGetAllowlistItems,ey as usePostGetAllowlistMultiAccount,qk as usePostMembersPaginatedV2,hm as usePostNetworkTokensOnboarding,Rv as usePostOrganizationConfigs,$y as usePostOrganizationKeysMarkRevealed,Vy as usePostOrganizationKeysRoll,Ky as usePostOrganizationKeysTamRequest,Jv as usePostPaymentsEvaluated,Yv as usePostPaymentsLazy,dg as usePostSlackMessageChannel,cb as usePostTransactions,Pg as usePostUserSettings,jg as usePostUserSettingsPinned,Lg as usePostUserSettingsTables,Dg as usePostUserThemeSettings,am as usePostValideStatusConnection,qw as usePostVelocityRules,lw as usePostWebhookLogs,Qf as usePostWebhookMultiAccount,uk as useProviderConversionRatesData,Nm as useProviderRawResponse,Dm as usePublishCheckout,Qm as usePublishVersion,nm as usePutAccountPrincipal,rm as usePutAccountsUserMassive,sy as usePutBlackListType,sm as usePutCosts,Tv as usePutOrganizationConfigsByAccount,cE as useRecoveredPaymentsByDay,sE as useRecoveredTPVByDay,Ag as useRescheduleSubscription,Yy as useResendWebhooks,Ig as useResumeSubscription,em as useRetryDuplicateAccount,Ym as useSaveVersion,kE as useSearchInstallmentsPlans,pE as useSearchScheduleById,dE as useSearchSchedules,lE as useSearchTemplateById,uE as useSearchTemplates,mb as useSendPaymentNotification,hg as useSetCustodian,ng as useSmartRoutingCreateDeclinedGroup,og as useSmartRoutingEditWorkflowName,cg as useSmartRoutingMultiAccountDeclinedGroupCreate,sg as useSmartRoutingRemoveDeclinedGroup,ag as useSmartRoutingSimulateTransaction,rg as useSmartRoutingToggleFavorite,tg as useSmartRoutingUpdateDeclinedGroup,ig as useSmartRoutingUpdateMonitorRedistribution,kg as useStartUserExport,bv as useSubmitChartFeedback,Kg as useTableOnboarding,Xm as useToggleMethod,xm as useUnInviteUsersV2,Bv as useUnblockOnboarding,Jy as useUnifiedExportStart,Jg as useUnrollUserV2,Ov as useUpdateInstallmentsPlan,Pm as useUpdateIsActiveCheckout,xy as useUpdateMFAConfig,Uv as useUpdateOnboarding,fm as useUpdateOrganizationStatus,_m as useUpdateProfile,Nv as useUpdateRecipient,iv as useUpdateReconciliationAlert,rv as useUpdateReconciliationReportTemplate,Vm as useUpdateReportTemplate,uv as useUpdateSamlConfig,Ry as useUpdateScheduledReport,Tg as useUpdateSubscription,wv as useUpdateTemplateSelection,Jf as useUpdateWebhookV2,vy as useUploadBatchRefundsFileV2,by as useUploadBatchRefundsV2,Ey as useUploadFileS3ClientBatchRefunds,xg as useUploadPaymentLinkLogo,yy as useValiateAllowlistItems,my as useValidateBlockListItems,pm as useValidateCredentials,mm as useValidateOrgName,Zg as useValidatePasswordStatus,Qk as useViewMoreMetrics,vm as useWorkosAdminPortal,EE as useWorkosDomainStatus,bm as useWorkosDomainVerificationPortal,ym as useWorkosPasswordReset,km as useWorkosVerifyMfa};
|
|
67
|
+
const TE=7,AE=6,OE=5,PE=4,DE=3,LE=2,jE=1,NE=0;function zE(e,t,n){var r;if((n=n||{}).threshold=null!=(r=n.threshold)?r:jE,!n.accessors){const r=qE(e,t,n);return{rankedValue:e,rank:r,accessorIndex:-1,accessorThreshold:n.threshold,passed:r>=n.threshold}}const o=function(e,t){const n=[];for(let r=0,o=t.length;r<o;r++){const o=t[r],a=FE(o),i=ME(e,o);for(let e=0,t=i.length;e<t;e++)n.push({itemValue:i[e],attributes:a})}return n}(e,n.accessors),a={rankedValue:e,rank:NE,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let e=0;e<o.length;e++){const r=o[e];let i=qE(r.itemValue,t,n);const{minRanking:s,maxRanking:c,threshold:u=n.threshold}=r.attributes;i<s&&i>=jE?i=s:i>c&&(i=c),i=Math.min(i,c),i>=u&&i>a.rank&&(a.rank=i,a.passed=!0,a.accessorIndex=e,a.accessorThreshold=u,a.rankedValue=r.itemValue)}return a}function qE(e,t,n){return e=UE(e,n),(t=UE(t,n)).length>e.length?NE:e===t?TE:(e=e.toLowerCase())===(t=t.toLowerCase())?AE:e.startsWith(t)?OE:e.includes(` ${t}`)?PE:e.includes(t)?DE:1===t.length?NE:function(e){let t="";return e.split(" ").forEach(e=>{e.split("-").forEach(e=>{t+=e.substr(0,1)})}),t}(e).includes(t)?LE:function(e,t){let n=0,r=0;function o(e,t,r){for(let o=r,a=t.length;o<a;o++){if(t[o]===e)return n+=1,o+1}return-1}function a(e){const r=1/e,o=n/t.length;return jE+o*r}const i=o(t[0],e,0);if(i<0)return NE;r=i;for(let n=1,a=t.length;n<a;n++){r=o(t[n],e,r);if(!(r>-1))return NE}const s=r-i;return a(s)}(e,t)}function UE(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=e.replace(RE,e=>CE[e])),e}function ME(e,t){let n=t;"object"==typeof t&&(n=t.accessor);const r=n(e);return null==r?[]:Array.isArray(r)?r:[String(r)]}const BE={maxRanking:1/0,minRanking:-1/0};function FE(e){return"function"==typeof e?BE:{...BE,...e}}function GE(e,t){const[n,r]=i.useState();i.useEffect(()=>{const n=(e=>{try{const t=localStorage.getItem(e);return"string"==typeof t?JSON.parse(t):void 0}catch{return}})(e);r(null==n?"function"==typeof t?t():t:n)},[t,e]);return[n,i.useCallback(t=>{r(n=>{let r=t;"function"==typeof t&&(r=t(n));try{localStorage.setItem(e,JSON.stringify(r))}catch{}return r})},[e])]}var WE,HE=function(){function e(){this.keyToValue=new Map,this.valueToKey=new Map}return e.prototype.set=function(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)},e.prototype.getByKey=function(e){return this.keyToValue.get(e)},e.prototype.getByValue=function(e){return this.valueToKey.get(e)},e.prototype.clear=function(){this.keyToValue.clear(),this.valueToKey.clear()},e}(),VE=function(){function e(e){this.generateIdentifier=e,this.kv=new HE}return e.prototype.register=function(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))},e.prototype.clear=function(){this.kv.clear()},e.prototype.getIdentifier=function(e){return this.kv.getByValue(e)},e.prototype.getValue=function(e){return this.kv.getByKey(e)},e}(),KE=(WE=function(e,t){return WE=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},WE(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}WE(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),$E=function(e){function t(){var t=e.call(this,function(e){return e.name})||this;return t.classToAllowedProps=new Map,t}return KE(t,e),t.prototype.register=function(t,n){"object"==typeof n?(n.allowProps&&this.classToAllowedProps.set(t,n.allowProps),e.prototype.register.call(this,t,n.identifier)):e.prototype.register.call(this,t,n)},t.prototype.getAllowedProps=function(e){return this.classToAllowedProps.get(e)},t}(VE),QE=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i};function YE(e,t){var n=function(e){if("values"in Object)return Object.values(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}(e);if("find"in n)return n.find(t);for(var r=n,o=0;o<r.length;o++){var a=r[o];if(t(a))return a}}function JE(e,t){Object.entries(e).forEach(function(e){var n=QE(e,2),r=n[0],o=n[1];return t(o,r)})}function ZE(e,t){return-1!==e.indexOf(t)}function XE(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r))return r}}var ex=function(){function e(){this.transfomers={}}return e.prototype.register=function(e){this.transfomers[e.name]=e},e.prototype.findApplicable=function(e){return YE(this.transfomers,function(t){return t.isApplicable(e)})},e.prototype.findByName=function(e){return this.transfomers[e]},e}(),tx=function(e){return void 0===e},nx=function(e){return"object"==typeof e&&null!==e&&(e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype))},rx=function(e){return nx(e)&&0===Object.keys(e).length},ox=function(e){return Array.isArray(e)},ax=function(e){return e instanceof Map},ix=function(e){return e instanceof Set},sx=function(e){return"Symbol"===function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e)},cx=function(e){return"number"==typeof e&&isNaN(e)},ux=function(e){return function(e){return"boolean"==typeof e}(e)||function(e){return null===e}(e)||tx(e)||function(e){return"number"==typeof e&&!isNaN(e)}(e)||function(e){return"string"==typeof e}(e)||sx(e)},lx=function(e){return e.replace(/\./g,"\\.")},dx=function(e){return e.map(String).map(lx).join(".")},px=function(e){for(var t=[],n="",r=0;r<e.length;r++){var o=e.charAt(r);if("\\"===o&&"."===e.charAt(r+1))n+=".",r++;else"."===o?(t.push(n),n=""):n+=o}var a=n;return t.push(a),t},hx=function(){return hx=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},hx.apply(this,arguments)},fx=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},mx=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};function gx(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var yx=[gx(tx,"undefined",function(){return null},function(){}),gx(function(e){return"bigint"==typeof e},"bigint",function(e){return e.toString()},function(e){return"undefined"!=typeof BigInt?BigInt(e):(console.error("Please add a BigInt polyfill."),e)}),gx(function(e){return e instanceof Date&&!isNaN(e.valueOf())},"Date",function(e){return e.toISOString()},function(e){return new Date(e)}),gx(function(e){return e instanceof Error},"Error",function(e,t){var n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(function(t){n[t]=e[t]}),n},function(e,t){var n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(function(t){n[t]=e[t]}),n}),gx(function(e){return e instanceof RegExp},"regexp",function(e){return""+e},function(e){var t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),gx(ix,"set",function(e){return mx([],fx(e.values()))},function(e){return new Set(e)}),gx(ax,"map",function(e){return mx([],fx(e.entries()))},function(e){return new Map(e)}),gx(function(e){return cx(e)||((t=e)===1/0||t===-1/0);var t},"number",function(e){return cx(e)?"NaN":e>0?"Infinity":"-Infinity"},Number),gx(function(e){return 0===e&&1/e==-1/0},"number",function(){return"-0"},Number),gx(function(e){return e instanceof URL},"URL",function(e){return e.toString()},function(e){return new URL(e)})];function vx(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var bx=vx(function(e,t){return!!sx(e)&&!!t.symbolRegistry.getIdentifier(e)},function(e,t){return["symbol",t.symbolRegistry.getIdentifier(e)]},function(e){return e.description},function(e,t,n){var r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),kx=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(e,t){return e[t.name]=t,e},{}),_x=vx(function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},function(e){return["typed-array",e.constructor.name]},function(e){return mx([],fx(e))},function(e,t){var n=kx[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function wx(e,t){return!!(null==e?void 0:e.constructor)&&!!t.classRegistry.getIdentifier(e.constructor)}var Ex=vx(wx,function(e,t){return["class",t.classRegistry.getIdentifier(e.constructor)]},function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return hx({},e);var r={};return n.forEach(function(t){r[t]=e[t]}),r},function(e,t,n){var r=n.classRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(r.prototype),e)}),xx=vx(function(e,t){return!!t.customTransformerRegistry.findApplicable(e)},function(e,t){return["custom",t.customTransformerRegistry.findApplicable(e).name]},function(e,t){return t.customTransformerRegistry.findApplicable(e).serialize(e)},function(e,t,n){var r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),Sx=[Ex,bx,xx,_x],Cx=function(e,t){var n=XE(Sx,function(n){return n.isApplicable(e,t)});if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var r=XE(yx,function(n){return n.isApplicable(e,t)});return r?{value:r.transform(e,t),type:r.annotation}:void 0},Ix={};yx.forEach(function(e){Ix[e.annotation]=e});var Rx=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function Tx(e){if(ZE(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(ZE(e,"prototype"))throw new Error("prototype is not allowed as a property");if(ZE(e,"constructor"))throw new Error("constructor is not allowed as a property")}var Ax=function(e,t,n){if(Tx(t),0===t.length)return n(e);for(var r=e,o=0;o<t.length-1;o++){var a=t[o];if(ox(r))r=r[+a];else if(nx(r))r=r[a];else if(ix(r)){r=Rx(r,i=+a)}else if(ax(r)){if(o===t.length-2)break;var i=+a,s=0===+t[++o]?"key":"value",c=Rx(r,i);switch(s){case"key":r=c;break;case"value":r=r.get(c)}}}var u=t[t.length-1];if(ox(r)?r[+u]=n(r[+u]):nx(r)&&(r[u]=n(r[u])),ix(r)){var l=Rx(r,+u),d=n(l);l!==d&&(r.delete(l),r.add(d))}if(ax(r)){i=+t[t.length-2];var p=Rx(r,i);switch(s=0===+u?"key":"value"){case"key":var h=n(p);r.set(h,r.get(p)),h!==p&&r.delete(p);break;case"value":r.set(p,n(r.get(p)))}}return e},Ox=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},Px=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};function Dx(e,t,n){if(void 0===n&&(n=[]),e)if(ox(e)){var r=Ox(e,2),o=r[0],a=r[1];a&&JE(a,function(e,r){Dx(e,t,Px(Px([],Ox(n)),Ox(px(r))))}),t(o,n)}else JE(e,function(e,r){return Dx(e,t,Px(Px([],Ox(n)),Ox(px(r))))})}function Lx(e,t,n){return Dx(t,function(t,r){e=Ax(e,r,function(e){return function(e,t,n){if(!ox(t)){var r=Ix[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}switch(t[0]){case"symbol":return bx.untransform(e,t,n);case"class":return Ex.untransform(e,t,n);case"custom":return xx.untransform(e,t,n);case"typed-array":return _x.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}}(e,t,n)})}),e}function jx(e,t){function n(t,n){var r=function(e,t){Tx(t);for(var n=0;n<t.length;n++){var r=t[n];if(ix(e))e=Rx(e,+r);else if(ax(e)){var o=+r,a=0===+t[++n]?"key":"value",i=Rx(e,o);switch(a){case"key":e=i;break;case"value":e=e.get(i)}}else e=e[r]}return e}(e,px(n));t.map(px).forEach(function(t){e=Ax(e,t,function(){return r})})}if(ox(t)){var r=Ox(t,2),o=r[0],a=r[1];o.forEach(function(t){e=Ax(e,px(t),function(){return e})}),a&&JE(a,n)}else JE(t,n);return e}var Nx=function(e,t,n,r,o,a,i){var s;void 0===o&&(o=[]),void 0===a&&(a=[]),void 0===i&&(i=new Map);var c=ux(e);if(!c){!function(e,t,n){var r=n.get(e);r?r.push(t):n.set(e,[t])}(e,o,t);var u=i.get(e);if(u)return r?{transformedValue:null}:u}if(!function(e,t){return nx(e)||ox(e)||ax(e)||ix(e)||wx(e,t)}(e,n)){var l=Cx(e,n),d=l?{transformedValue:l.value,annotations:[l.type]}:{transformedValue:e};return c||i.set(e,d),d}if(ZE(a,e))return{transformedValue:null};var p=Cx(e,n),h=null!==(s=null==p?void 0:p.value)&&void 0!==s?s:e,f=ox(h)?[]:{},m={};JE(h,function(s,c){var u=Nx(s,t,n,r,Px(Px([],Ox(o)),[c]),Px(Px([],Ox(a)),[e]),i);f[c]=u.transformedValue,ox(u.annotations)?m[c]=u.annotations:nx(u.annotations)&&JE(u.annotations,function(e,t){m[lx(c)+"."+t]=e})});var g=rx(m)?{transformedValue:f,annotations:p?[p.type]:void 0}:{transformedValue:f,annotations:p?[p.type,m]:m};return c||i.set(e,g),g};function zx(e){return Object.prototype.toString.call(e).slice(8,-1)}function qx(e){return"Array"===zx(e)}function Ux(e,t={}){if(qx(e))return e.map(e=>Ux(e,t));if(!function(e){if("Object"!==zx(e))return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}(e))return e;return[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)].reduce((n,r)=>{if(qx(t.props)&&!t.props.includes(r))return n;return function(e,t,n,r,o){const a={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";"enumerable"===a&&(e[t]=n),o&&"nonenumerable"===a&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}(n,r,Ux(e[r],t),e,t.nonenumerable),n},{})}var Mx=function(){return Mx=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Mx.apply(this,arguments)},Bx=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},Fx=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},Gx=function(){function e(e){var t=(void 0===e?{}:e).dedupe,n=void 0!==t&&t;this.classRegistry=new $E,this.symbolRegistry=new VE(function(e){var t;return null!==(t=e.description)&&void 0!==t?t:""}),this.customTransformerRegistry=new ex,this.allowedErrorProps=[],this.dedupe=n}return e.prototype.serialize=function(e){var t=new Map,n=Nx(e,t,this,this.dedupe),r={json:n.transformedValue};n.annotations&&(r.meta=Mx(Mx({},r.meta),{values:n.annotations}));var o,a,i,s,c=(o=t,a=this.dedupe,i={},s=void 0,o.forEach(function(e){if(!(e.length<=1)){a||(e=e.map(function(e){return e.map(String)}).sort(function(e,t){return e.length-t.length}));var t=Ox(e),n=t[0],r=t.slice(1);0===n.length?s=r.map(dx):i[dx(n)]=r.map(dx)}}),s?rx(i)?[s]:[s,i]:rx(i)?void 0:i);return c&&(r.meta=Mx(Mx({},r.meta),{referentialEqualities:c})),r},e.prototype.deserialize=function(e){var t=e.json,n=e.meta,r=Ux(t);return(null==n?void 0:n.values)&&(r=Lx(r,n.values,this)),(null==n?void 0:n.referentialEqualities)&&(r=jx(r,n.referentialEqualities)),r},e.prototype.stringify=function(e){return JSON.stringify(this.serialize(e))},e.prototype.parse=function(e){return this.deserialize(JSON.parse(e))},e.prototype.registerClass=function(e,t){this.classRegistry.register(e,t)},e.prototype.registerSymbol=function(e,t){this.symbolRegistry.register(e,t)},e.prototype.registerCustom=function(e,t){this.customTransformerRegistry.register(Mx({name:t},e))},e.prototype.allowErrorProps=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];(e=this.allowedErrorProps).push.apply(e,Fx([],Bx(t)))},e.defaultInstance=new e,e.serialize=e.defaultInstance.serialize.bind(e.defaultInstance),e.deserialize=e.defaultInstance.deserialize.bind(e.defaultInstance),e.stringify=e.defaultInstance.stringify.bind(e.defaultInstance),e.parse=e.defaultInstance.parse.bind(e.defaultInstance),e.registerClass=e.defaultInstance.registerClass.bind(e.defaultInstance),e.registerSymbol=e.defaultInstance.registerSymbol.bind(e.defaultInstance),e.registerCustom=e.defaultInstance.registerCustom.bind(e.defaultInstance),e.allowErrorProps=e.defaultInstance.allowErrorProps.bind(e.defaultInstance),e}();const Wx={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",paused:"#8c49eb",warning:"#ffb200"},Hx=i.createContext(Wx);function Vx({theme:e,...t}){return i.createElement(Hx.Provider,SE({value:e},t))}function Kx({queryState:e,observerCount:t,isStale:n,theme:r}){return"fetching"===e.fetchStatus?r.active:t?"paused"===e.fetchStatus?r.paused:n?r.warning:r.success:r.gray}function $x(e){return"fetching"===e.state.fetchStatus?"fetching":e.getObserversCount()?"paused"===e.state.fetchStatus?"paused":e.isStale()?"stale":"fresh":"inactive"}function Qx(e,t,n={}){return i.forwardRef(({style:r,...o},a)=>{const s=i.useContext(Hx),c=Object.entries(n).reduce((e,[t,n])=>function(e){const[t,n]=i.useState(()=>{if("undefined"!=typeof window)return window.matchMedia(e).matches});return i.useEffect(()=>{if("undefined"!=typeof window){const t=window.matchMedia(e),r=({matches:e})=>n(e);return t.addListener(r),()=>{t.removeListener(r)}}},[t,e,n]),t}(t)?{...e,..."function"==typeof n?n(o,s):n}:e,{});return i.createElement(e,{...o,style:{..."function"==typeof t?t(o,s):t,...r,...c},ref:a})})}const Yx=(e,t=!1)=>{const{json:n}=Gx.serialize(e);return JSON.stringify(n,null,t?2:void 0)},Jx=e=>"idle"!==e.state.fetchStatus?0:e.getObserversCount()?e.isStale()?2:1:3,Zx=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,Xx={"Status > Last Updated":(e,t)=>Jx(e)===Jx(t)?Zx(e,t):Jx(e)>Jx(t)?1:-1,"Query Hash":(e,t)=>e.queryHash.localeCompare(t.queryHash),"Last Updated":Zx},eS=500,tS={top:"bottom",bottom:"top",left:"right",right:"left"};function nS(e){return["left","right"].includes(e)}function rS(e){return tS[e]}function oS(e,t){return""+e+(t.charAt(0).toUpperCase()+t.slice(1))}function aS(e="bottom"){const t=nS(e),n=rS(e),r=oS("margin",n);return{position:"absolute",cursor:t?"col-resize":"row-resize",zIndex:1e5,[n]:0,[r]:"-4px",...t?{top:0,height:"100%",width:"4px"}:{width:"100%",height:"4px"}}}const iS=Qx("div",(e,t)=>({fontSize:"clamp(12px, 1.5vw, 14px)",fontFamily:"sans-serif",display:"flex",backgroundColor:t.background,color:t.foreground}),{"(max-width: 700px)":{flexDirection:"column"},"(max-width: 600px)":{fontSize:".9em"}}),sS=Qx("div",()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"}),{"(max-width: 700px)":(e,t)=>({borderTop:"2px solid "+t.gray})}),cS=Qx("button",(e,t)=>({appearance:"none",fontSize:".9em",fontWeight:"bold",background:t.gray,border:"0",borderRadius:".3em",color:"white",padding:".5em",opacity:e.disabled?".5":void 0,cursor:"pointer"})),uS=Qx("span",{display:"flex",flexWrap:"wrap",gap:"0.5em",fontSize:"0.9em"}),lS=Qx("span",{display:"inline-flex",alignItems:"center",padding:".2em .4em",fontWeight:"bold",textShadow:"0 0 10px black",borderRadius:".2em"}),dS=Qx("code",{fontSize:".9em",color:"inherit",background:"inherit"}),pS=Qx("input",(e,t)=>({backgroundColor:t.inputBackgroundColor,border:0,borderRadius:".2em",color:t.inputTextColor,fontSize:".9em",lineHeight:"1.3",padding:".3em .4em"})),hS=Qx("select",(e,t)=>({display:"inline-block",fontSize:".9em",fontFamily:"sans-serif",fontWeight:"normal",lineHeight:"1.3",padding:".3em 1.5em .3em .5em",height:"auto",border:0,borderRadius:".2em",appearance:"none",WebkitAppearance:"none",backgroundColor:t.inputBackgroundColor,backgroundImage:"url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23444444'><polygon points='0,25 100,25 50,75'/></svg>\")",backgroundRepeat:"no-repeat",backgroundPosition:"right .55em center",backgroundSize:".65em auto, 100%",color:t.inputTextColor}),{"(max-width: 500px)":{display:"none"}});function fS({text:e}){return i.createElement("span",{style:{position:"absolute",width:"0.1px",height:"0.1px",overflow:"hidden"}},e)}const mS=Qx("div",{fontFamily:"Menlo, monospace",fontSize:"1em",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),gS=Qx("span",{color:"white"}),yS=Qx("button",{cursor:"pointer",color:"white"}),vS=Qx("button",{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}),bS=({value:e})=>{const[t,n]=i.useState("NoCopy");return i.createElement("button",{onClick:"NoCopy"===t?()=>{navigator.clipboard.writeText(Gx.stringify(e)).then(()=>{n("SuccessCopy"),setTimeout(()=>{n("NoCopy")},1500)},e=>{console.error("Failed to copy: ",e),n("ErrorCopy"),setTimeout(()=>{n("NoCopy")},1500)})}:void 0,style:{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}},"NoCopy"===t?i.createElement(xS,null):"SuccessCopy"===t?i.createElement(CS,null):i.createElement(SS,null))},kS=Qx("span",(e,t)=>({color:t.danger})),_S=Qx("div",{marginLeft:".1em",paddingLeft:"1em",borderLeft:"2px solid rgba(0,0,0,.15)"}),wS=Qx("span",{color:"grey",fontSize:".7em"}),ES=({expanded:e,style:t={}})=>i.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:"rotate("+(e?90:0)+"deg) "+(t.transform||""),...t}},"▶"),xS=()=>i.createElement("span",{"aria-label":"Copy object to clipboard",title:"Copy object to clipboard",style:{paddingLeft:"1em"}},i.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10"},i.createElement("path",{fill:"currentColor",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"}),i.createElement("path",{fill:"currentColor",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"}))),SS=()=>i.createElement("span",{"aria-label":"Failed copying to clipboard",title:"Failed copying to clipboard",style:{paddingLeft:"1em",display:"flex",alignItems:"center"}},i.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10",display:"block"},i.createElement("path",{fill:"red",d:"M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z"})),i.createElement("span",{style:{color:"red",fontSize:"12px",paddingLeft:"4px",position:"relative",top:"2px"}},"See console")),CS=()=>i.createElement("span",{"aria-label":"Object copied to clipboard",title:"Object copied to clipboard",style:{paddingLeft:"1em",display:"inline-block",verticalAlign:"middle"}},i.createElement("svg",{height:"16",viewBox:"0 0 16 16",width:"16",display:"block"},i.createElement("path",{fill:"green",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"})));const IS=({handleEntry:e,label:t,value:n,subEntries:r=[],subEntryPages:o=[],type:a,expanded:s=!1,copyable:c=!1,toggleExpanded:u,pageSize:l})=>{const[d,p]=i.useState([]);return i.createElement(mS,{key:t},o.length?i.createElement(i.Fragment,null,i.createElement(vS,{onClick:()=>u()},i.createElement(ES,{expanded:s})," ",t," ",i.createElement(wS,null,"iterable"===String(a).toLowerCase()?"(Iterable) ":"",r.length," ",r.length>1?"items":"item")),c?i.createElement(bS,{value:n}):null,s?1===o.length?i.createElement(_S,null,r.map(e)):i.createElement(_S,null,o.map((t,n)=>i.createElement("div",{key:n},i.createElement(mS,null,i.createElement(yS,{onClick:()=>p(e=>e.includes(n)?e.filter(e=>e!==n):[...e,n])},i.createElement(ES,{expanded:s})," [",n*l," ..."," ",n*l+l-1,"]"),d.includes(n)?i.createElement(_S,null,t.map(e)):null)))):null):i.createElement(i.Fragment,null,i.createElement(gS,null,t,":")," ",i.createElement(kS,null,Yx(n))))};function RS({value:e,defaultExpanded:t,renderer:n=IS,pageSize:r=100,copyable:o=!1,...a}){const[s,c]=i.useState(Boolean(t)),u=i.useCallback(()=>c(e=>!e),[]);let l=typeof e,d=[];const p=e=>{const n=!0===t?{[e.label]:!0}:null==t?void 0:t[e.label];return{...e,defaultExpanded:n}};var h;Array.isArray(e)?(l="array",d=e.map((e,t)=>p({label:t.toString(),value:e}))):null!==e&&"object"==typeof e&&(h=e,Symbol.iterator in h)&&"function"==typeof e[Symbol.iterator]?(l="Iterable",d=Array.from(e,(e,t)=>p({label:t.toString(),value:e}))):"object"==typeof e&&null!==e&&(l="object",d=Object.entries(e).map(([e,t])=>p({label:e,value:t})));const f=function(e,t){if(t<1)return[];let n=0;const r=[];for(;n<e.length;)r.push(e.slice(n,n+t)),n+=t;return r}(d,r);return n({handleEntry:t=>i.createElement(RS,SE({key:t.label,value:e,renderer:n,copyable:o},a,t)),type:l,subEntries:d,subEntryPages:f,value:e,expanded:s,copyable:o,toggleExpanded:u,pageSize:r,...a})}function TS(e){return i.createElement("svg",SE({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),i.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(-33.000000, 0.000000)"},i.createElement("path",{d:"M72.7239712,61.3436237 C69.631224,46.362877 68.9675112,34.8727722 70.9666331,26.5293551 C72.1555965,21.5671678 74.3293088,17.5190846 77.6346064,14.5984631 C81.1241394,11.5150478 85.5360327,10.0020122 90.493257,10.0020122 C98.6712013,10.0020122 107.26826,13.7273214 116.455725,20.8044264 C120.20312,23.6910458 124.092437,27.170411 128.131651,31.2444746 C128.45314,30.8310265 128.816542,30.4410453 129.22143,30.0806152 C140.64098,19.9149716 150.255245,13.5989272 158.478408,11.1636507 C163.367899,9.715636 167.958526,9.57768202 172.138936,10.983031 C176.551631,12.4664684 180.06766,15.5329489 182.548314,19.8281091 C186.642288,26.9166735 187.721918,36.2310983 186.195595,47.7320243 C185.573451,52.4199112 184.50985,57.5263831 183.007094,63.0593153 C183.574045,63.1277086 184.142416,63.2532808 184.705041,63.4395297 C199.193932,68.2358678 209.453582,73.3937462 215.665021,79.2882839 C219.360669,82.7953831 221.773972,86.6998434 222.646365,91.0218204 C223.567176,95.5836746 222.669313,100.159332 220.191548,104.451297 C216.105211,111.529614 208.591643,117.11221 197.887587,121.534031 C193.589552,123.309539 188.726579,124.917559 183.293259,126.363748 C183.541176,126.92292 183.733521,127.516759 183.862138,128.139758 C186.954886,143.120505 187.618598,154.61061 185.619477,162.954027 C184.430513,167.916214 182.256801,171.964297 178.951503,174.884919 C175.46197,177.968334 171.050077,179.48137 166.092853,179.48137 C157.914908,179.48137 149.31785,175.756061 140.130385,168.678956 C136.343104,165.761613 132.410866,162.238839 128.325434,158.108619 C127.905075,158.765474 127.388968,159.376011 126.77857,159.919385 C115.35902,170.085028 105.744755,176.401073 97.5215915,178.836349 C92.6321009,180.284364 88.0414736,180.422318 83.8610636,179.016969 C79.4483686,177.533532 75.9323404,174.467051 73.4516862,170.171891 C69.3577116,163.083327 68.2780823,153.768902 69.8044053,142.267976 C70.449038,137.410634 71.56762,132.103898 73.1575891,126.339009 C72.5361041,126.276104 71.9120754,126.144816 71.2949591,125.940529 C56.8060684,121.144191 46.5464184,115.986312 40.3349789,110.091775 C36.6393312,106.584675 34.2260275,102.680215 33.3536352,98.3582381 C32.4328237,93.7963839 33.3306866,89.2207269 35.8084524,84.9287618 C39.8947886,77.8504443 47.4083565,72.2678481 58.1124133,67.8460273 C62.5385143,66.0176154 67.5637208,64.366822 73.1939394,62.8874674 C72.9933393,62.3969171 72.8349374,61.8811235 72.7239712,61.3436237 Z",fill:"#002C4B",fillRule:"nonzero",transform:"translate(128.000000, 95.000000) scale(-1, 1) translate(-128.000000, -95.000000) "}),i.createElement("path",{d:"M113.396882,64 L142.608177,64 C144.399254,64 146.053521,64.958025 146.944933,66.5115174 L161.577138,92.0115174 C162.461464,93.5526583 162.461464,95.4473417 161.577138,96.9884826 L146.944933,122.488483 C146.053521,124.041975 144.399254,125 142.608177,125 L113.396882,125 C111.605806,125 109.951539,124.041975 109.060126,122.488483 L94.4279211,96.9884826 C93.543596,95.4473417 93.543596,93.5526583 94.4279211,92.0115174 L109.060126,66.5115174 C109.951539,64.958025 111.605806,64 113.396882,64 Z M138.987827,70.2765273 C140.779849,70.2765273 142.434839,71.2355558 143.325899,72.7903404 L154.343038,92.0138131 C155.225607,93.5537825 155.225607,95.4462175 154.343038,96.9861869 L143.325899,116.20966 C142.434839,117.764444 140.779849,118.723473 138.987827,118.723473 L117.017233,118.723473 C115.225211,118.723473 113.570221,117.764444 112.67916,116.20966 L101.662022,96.9861869 C100.779452,95.4462175 100.779452,93.5537825 101.662022,92.0138131 L112.67916,72.7903404 C113.570221,71.2355558 115.225211,70.2765273 117.017233,70.2765273 L138.987827,70.2765273 Z M135.080648,77.1414791 L120.924411,77.1414791 C119.134228,77.1414791 117.480644,78.0985567 116.5889,79.6508285 L116.5889,79.6508285 L109.489217,92.0093494 C108.603232,93.5515958 108.603232,95.4484042 109.489217,96.9906506 L109.489217,96.9906506 L116.5889,109.349172 C117.480644,110.901443 119.134228,111.858521 120.924411,111.858521 L120.924411,111.858521 L135.080648,111.858521 C136.870831,111.858521 138.524416,110.901443 139.41616,109.349172 L139.41616,109.349172 L146.515843,96.9906506 C147.401828,95.4484042 147.401828,93.5515958 146.515843,92.0093494 L146.515843,92.0093494 L139.41616,79.6508285 C138.524416,78.0985567 136.870831,77.1414791 135.080648,77.1414791 L135.080648,77.1414791 Z M131.319186,83.7122186 C133.108028,83.7122186 134.760587,84.6678753 135.652827,86.2183156 L138.983552,92.0060969 C139.87203,93.5500005 139.87203,95.4499995 138.983552,96.9939031 L135.652827,102.781684 C134.760587,104.332125 133.108028,105.287781 131.319186,105.287781 L124.685874,105.287781 C122.897032,105.287781 121.244473,104.332125 120.352233,102.781684 L117.021508,96.9939031 C116.13303,95.4499995 116.13303,93.5500005 117.021508,92.0060969 L120.352233,86.2183156 C121.244473,84.6678753 122.897032,83.7122186 124.685874,83.7122186 L131.319186,83.7122186 Z M128.003794,90.1848875 C126.459294,90.1848875 125.034382,91.0072828 124.263005,92.3424437 C123.491732,93.6774232 123.491732,95.3225768 124.263005,96.6575563 C125.034382,97.9927172 126.459294,98.8151125 128.001266,98.8151125 L128.001266,98.8151125 C129.545766,98.8151125 130.970678,97.9927172 131.742055,96.6575563 C132.513327,95.3225768 132.513327,93.6774232 131.742055,92.3424437 C130.970678,91.0072828 129.545766,90.1848875 128.003794,90.1848875 L128.003794,90.1848875 Z M93,94.5009646 L100.767764,94.5009646",fill:"#FFD94C"}),i.createElement("path",{d:"M87.8601729,108.357758 C89.1715224,107.608286 90.8360246,108.074601 91.5779424,109.399303 L91.5779424,109.399303 L92.0525843,110.24352 C95.8563392,116.982993 99.8190116,123.380176 103.940602,129.435068 C108.807881,136.585427 114.28184,143.82411 120.362479,151.151115 C121.316878,152.30114 121.184944,154.011176 120.065686,154.997937 L120.065686,154.997937 L119.454208,155.534625 C99.3465389,173.103314 86.2778188,176.612552 80.2480482,166.062341 C74.3500652,155.742717 76.4844915,136.982888 86.6513274,109.782853 C86.876818,109.179582 87.3045861,108.675291 87.8601729,108.357758 Z M173.534177,129.041504 C174.986131,128.785177 176.375496,129.742138 176.65963,131.194242 L176.65963,131.194242 L176.812815,131.986376 C181.782365,157.995459 178.283348,171 166.315764,171 C154.609745,171 139.708724,159.909007 121.612702,137.727022 C121.211349,137.235047 120.994572,136.617371 121,135.981509 C121.013158,134.480686 122.235785,133.274651 123.730918,133.287756 L123.730918,133.287756 L124.684654,133.294531 C132.305698,133.335994 139.714387,133.071591 146.910723,132.501323 C155.409039,131.82788 164.283523,130.674607 173.534177,129.041504 Z M180.408726,73.8119663 C180.932139,72.4026903 182.508386,71.6634537 183.954581,72.149012 L183.954581,72.149012 L184.742552,72.4154854 C210.583763,81.217922 220.402356,90.8916805 214.198332,101.436761 C208.129904,111.751366 190.484347,119.260339 161.26166,123.963678 C160.613529,124.067994 159.948643,123.945969 159.382735,123.618843 C158.047025,122.846729 157.602046,121.158214 158.388848,119.847438 L158.388848,119.847438 L158.889328,119.0105 C162.877183,112.31633 166.481358,105.654262 169.701854,99.0242957 C173.50501,91.1948179 177.073967,82.7907081 180.408726,73.8119663 Z M94.7383398,66.0363218 C95.3864708,65.9320063 96.0513565,66.0540315 96.6172646,66.3811573 C97.9529754,67.153271 98.3979538,68.8417862 97.6111517,70.1525615 L97.6111517,70.1525615 L97.1106718,70.9895001 C93.1228168,77.6836699 89.5186416,84.3457379 86.2981462,90.9757043 C82.49499,98.8051821 78.9260328,107.209292 75.5912744,116.188034 C75.0678608,117.59731 73.4916142,118.336546 72.045419,117.850988 L72.045419,117.850988 L71.2574475,117.584515 C45.4162372,108.782078 35.597644,99.1083195 41.8016679,88.5632391 C47.8700957,78.2486335 65.515653,70.7396611 94.7383398,66.0363218 Z M136.545792,34.4653746 C156.653461,16.8966864 169.722181,13.3874478 175.751952,23.9376587 C181.649935,34.2572826 179.515508,53.0171122 169.348673,80.2171474 C169.123182,80.8204179 168.695414,81.324709 168.139827,81.6422422 C166.828478,82.3917144 165.163975,81.9253986 164.422058,80.6006966 L164.422058,80.6006966 L163.947416,79.7564798 C160.143661,73.0170065 156.180988,66.6198239 152.059398,60.564932 C147.192119,53.4145727 141.71816,46.1758903 135.637521,38.8488847 C134.683122,37.6988602 134.815056,35.9888243 135.934314,35.0020629 L135.934314,35.0020629 Z M90.6842361,18 C102.390255,18 117.291276,29.0909926 135.387298,51.2729777 C135.788651,51.7649527 136.005428,52.3826288 136,53.0184911 C135.986842,54.5193144 134.764215,55.7253489 133.269082,55.7122445 L133.269082,55.7122445 L132.315346,55.7054689 C124.694302,55.6640063 117.285613,55.9284091 110.089277,56.4986773 C101.590961,57.17212 92.7164767,58.325393 83.4658235,59.9584962 C82.0138691,60.2148231 80.6245044,59.2578618 80.3403697,57.805758 L80.3403697,57.805758 L80.1871846,57.0136235 C75.2176347,31.0045412 78.7166519,18 90.6842361,18 Z",fill:"#FF4154"}))))}const AS=(e,t,n=!1)=>Lf.useSyncExternalStore(i.useCallback(t=>n?()=>{}:e.subscribe(ff.batchCalls(t)),[e,n]),t,t),OS=i.forwardRef(function(e,t){const{isOpen:n=!0,styleNonce:r,setIsOpen:o,context:a,onDragStart:s,onPositionChange:c,showCloseButton:u,position:l,closeButtonProps:d={},errorTypes:p=[],...h}=e,{onClick:f,...m}=d,g=Uf({context:a}),y=g.getQueryCache(),[v,b]=GE("reactQueryDevtoolsSortFn",Object.keys(Xx)[0]),[k,_]=GE("reactQueryDevtoolsFilter",""),[w,E]=GE("reactQueryDevtoolsBaseSort",1),x=i.useMemo(()=>Xx[v],[v]),S=AS(y,()=>y.getAll().length,!n),[C,I]=GE("reactQueryDevtoolsActiveQueryHash",""),R=i.useMemo(()=>{const e=y.getAll();if(0===S)return[];const t=k?e.filter(e=>zE(e.queryHash,k).passed):[...e];return x?t.sort((e,t)=>x(e,t)*w):t},[w,x,k,S,y]),[T,A]=i.useState(!1);return i.createElement(Vx,{theme:Wx},i.createElement(iS,SE({ref:t,className:"ReactQueryDevtoolsPanel","aria-label":"React Query Devtools Panel",id:"ReactQueryDevtoolsPanel"},h,{style:{height:eS,position:"relative",...h.style}}),i.createElement("style",{nonce:r,dangerouslySetInnerHTML:{__html:"\n .ReactQueryDevtoolsPanel * {\n scrollbar-color: "+Wx.backgroundAlt+" "+Wx.gray+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar, .ReactQueryDevtoolsPanel scrollbar {\n width: 1em;\n height: 1em;\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-track, .ReactQueryDevtoolsPanel scrollbar-track {\n background: "+Wx.backgroundAlt+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-thumb, .ReactQueryDevtoolsPanel scrollbar-thumb {\n background: "+Wx.gray+";\n border-radius: .5em;\n border: 3px solid "+Wx.backgroundAlt+";\n }\n "}}),i.createElement("div",{style:aS(l),onMouseDown:s}),n&&i.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:"1px solid "+Wx.grayAlt,display:"flex",flexDirection:"column"}},i.createElement("div",{style:{padding:".5em",background:Wx.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},i.createElement("button",{type:"button","aria-label":"Close React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true",onClick:()=>o(!1),style:{display:"inline-flex",background:"none",border:0,padding:0,marginRight:".5em",cursor:"pointer"}},i.createElement(TS,{"aria-hidden":!0}),i.createElement(fS,{text:"Close React Query Devtools"})),i.createElement("div",{style:{display:"flex",flexDirection:"column"}},i.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:".5em"}},i.createElement(DS,{queryCache:y}),l&&c?i.createElement(hS,{"aria-label":"Panel position",value:l,style:{marginInlineStart:".5em"},onChange:e=>c(e.target.value)},i.createElement("option",{value:"left"},"Left"),i.createElement("option",{value:"right"},"Right"),i.createElement("option",{value:"top"},"Top"),i.createElement("option",{value:"bottom"},"Bottom")):null),i.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"0.5em"}},i.createElement(pS,{placeholder:"Filter","aria-label":"Filter by queryhash",value:null!=k?k:"",onChange:e=>_(e.target.value),onKeyDown:e=>{"Escape"===e.key&&_("")},style:{flex:"1",width:"100%"}}),i.createElement(hS,{"aria-label":"Sort queries",value:v,onChange:e=>b(e.target.value),style:{flex:"1",minWidth:75,marginRight:".5em"}},Object.keys(Xx).map(e=>i.createElement("option",{key:e,value:e},"Sort by ",e))),i.createElement(cS,{type:"button",onClick:()=>E(e=>-1*e),style:{padding:".3em .4em",marginRight:".5em"}},1===w?"⬆ Asc":"⬇ Desc"),i.createElement(cS,{title:"Clear cache","aria-label":"Clear cache",type:"button",onClick:()=>y.clear(),style:{padding:".3em .4em",marginRight:".5em"}},"Clear"),i.createElement(cS,{type:"button",onClick:()=>{T?(sf.setOnline(void 0),A(!1),window.dispatchEvent(new Event("online"))):(sf.setOnline(!1),A(!0))},"aria-label":T?"Restore offline mock":"Mock offline behavior",title:T?"Restore offline mock":"Mock offline behavior",style:{padding:"0",height:"2em"}},i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"2em",height:"2em",viewBox:"0 0 24 24",stroke:T?Wx.danger:"currentColor",fill:"none"},T?i.createElement(i.Fragment,null,i.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),i.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),i.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),i.createElement("path",{d:"M6.343 12.343a7.963 7.963 0 0 1 3.864 -2.14m4.163 .155a7.965 7.965 0 0 1 3.287 2"}),i.createElement("path",{d:"M3.515 9.515a12 12 0 0 1 3.544 -2.455m3.101 -.92a12 12 0 0 1 10.325 3.374"}),i.createElement("line",{x1:"3",y1:"3",x2:"21",y2:"21"})):i.createElement(i.Fragment,null,i.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),i.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),i.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),i.createElement("path",{d:"M6.343 12.343a8 8 0 0 1 11.314 0"}),i.createElement("path",{d:"M3.515 9.515c4.686 -4.687 12.284 -4.687 17 0"}))),i.createElement(fS,{text:T?"Restore offline mock":"Mock offline behavior"}))))),i.createElement("div",{style:{overflowY:"auto",flex:"1"}},R.map(e=>i.createElement(LS,{queryKey:e.queryKey,activeQueryHash:C,setActiveQueryHash:I,key:e.queryHash,queryCache:y})))),C&&n?i.createElement(PS,{activeQueryHash:C,queryCache:y,queryClient:g,errorTypes:p}):null,u?i.createElement(cS,SE({type:"button","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true"},m,{style:{position:"absolute",zIndex:99999,margin:".5em",bottom:0,left:0,...m.style},onClick:e=>{o(!1),null==f||f(e)}}),"Close"):null))}),PS=({queryCache:e,activeQueryHash:t,queryClient:n,errorTypes:r})=>{var o,a;const s=AS(e,()=>e.getAll().find(e=>e.queryHash===t)),c=AS(e,()=>{var n;return null==(n=e.getAll().find(e=>e.queryHash===t))?void 0:n.state}),u=null!=(o=AS(e,()=>{var n;return null==(n=e.getAll().find(e=>e.queryHash===t))?void 0:n.isStale()}))&&o,l=null!=(a=AS(e,()=>{var n;return null==(n=e.getAll().find(e=>e.queryHash===t))?void 0:n.getObserversCount()}))?a:0,d=p(()=>{if(s&&null!=c&&c.error){const e=r.find(e=>{var t;return e.initializer(s).toString()===(null==(t=c.error)?void 0:t.toString())});return null==e?void 0:e.name}},[s,null==c?void 0:c.error,r]);if(!s||!c)return null;const h=e=>{var t;const n=null!=(t=null==e?void 0:e.initializer(s))?t:new Error("Unknown error from devtools"),r=s.options;s.setState({status:"error",error:n,fetchMeta:{...s.state.fetchMeta,__previousQueryOptions:r}})};return i.createElement(sS,null,i.createElement("div",{style:{padding:".5em",background:Wx.backgroundAlt,position:"sticky",top:0,zIndex:1}},"Query Details"),i.createElement("div",{style:{padding:".5em"}},i.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"flex-start",justifyContent:"space-between"}},i.createElement(dS,{style:{lineHeight:"1.8em"}},i.createElement("pre",{style:{margin:0,padding:0,overflow:"auto"}},Yx(s.queryKey,!0))),i.createElement("span",{style:{padding:"0.3em .6em",borderRadius:"0.4em",fontWeight:"bold",textShadow:"0 2px 10px black",background:Kx({queryState:c,isStale:u,observerCount:l,theme:Wx}),flexShrink:0}},$x(s))),i.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"center",justifyContent:"space-between"}},"Observers: ",i.createElement(dS,null,l)),i.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},"Last Updated:"," ",i.createElement(dS,null,new Date(c.dataUpdatedAt).toLocaleTimeString()))),i.createElement("div",{style:{background:Wx.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Actions"),i.createElement("div",{style:{padding:"0.5em",display:"flex",flexWrap:"wrap",gap:"0.5em",alignItems:"flex-end"}},i.createElement(cS,{type:"button",onClick:()=>{const e=null==s?void 0:s.fetch();null==e||e.catch(jS)},disabled:"fetching"===c.fetchStatus,style:{background:Wx.active}},"Refetch")," ",i.createElement(cS,{type:"button",onClick:()=>n.invalidateQueries(s),style:{background:Wx.warning,color:Wx.inputTextColor}},"Invalidate")," ",i.createElement(cS,{type:"button",onClick:()=>n.resetQueries(s),style:{background:Wx.gray}},"Reset")," ",i.createElement(cS,{type:"button",onClick:()=>n.removeQueries(s),style:{background:Wx.danger}},"Remove")," ",i.createElement(cS,{type:"button",onClick:()=>{var e;if("fetching"!==s.state.fetchStatus||void 0!==(null==(e=s.state.fetchMeta)?void 0:e.__previousQueryOptions))if(void 0===s.state.data)s.fetch(s.state.fetchMeta.__previousQueryOptions,{cancelRefetch:!0});else{const e=s.options;s.fetch({...e,queryFn:()=>new Promise(()=>{}),cacheTime:-1}),s.setState({data:void 0,status:"loading",fetchMeta:{...s.state.fetchMeta,__previousQueryOptions:e}})}},style:{background:Wx.paused}},"loading"===s.state.status?"Restore":"Trigger"," ","loading")," ",0===r.length||"error"===s.state.status?i.createElement(cS,{type:"button",onClick:()=>{s.state.error?n.resetQueries(s):h()},style:{background:Wx.danger}},"error"===s.state.status?"Restore":"Trigger"," error"):i.createElement("label",null,"Trigger error:",i.createElement(hS,{value:null!=d?d:"",style:{marginInlineStart:".5em"},onChange:e=>{const t=r.find(t=>t.name===e.target.value);h(t)}},i.createElement("option",{key:"",value:""}),r.map(e=>i.createElement("option",{key:e.name,value:e.name},e.name))))),i.createElement("div",{style:{background:Wx.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Data Explorer"),i.createElement("div",{style:{padding:".5em"}},i.createElement(RS,{label:"Data",value:c.data,defaultExpanded:{},copyable:!0})),i.createElement("div",{style:{background:Wx.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Query Explorer"),i.createElement("div",{style:{padding:".5em"}},i.createElement(RS,{label:"Query",value:s,defaultExpanded:{queryKey:!0}})))},DS=({queryCache:e})=>{const t=AS(e,()=>e.getAll().filter(e=>"fresh"===$x(e)).length),n=AS(e,()=>e.getAll().filter(e=>"fetching"===$x(e)).length),r=AS(e,()=>e.getAll().filter(e=>"paused"===$x(e)).length),o=AS(e,()=>e.getAll().filter(e=>"stale"===$x(e)).length),a=AS(e,()=>e.getAll().filter(e=>"inactive"===$x(e)).length);return i.createElement(uS,null,i.createElement(lS,{style:{background:Wx.success,opacity:t?1:.3}},"fresh ",i.createElement(dS,null,"(",t,")"))," ",i.createElement(lS,{style:{background:Wx.active,opacity:n?1:.3}},"fetching ",i.createElement(dS,null,"(",n,")"))," ",i.createElement(lS,{style:{background:Wx.paused,opacity:r?1:.3}},"paused ",i.createElement(dS,null,"(",r,")"))," ",i.createElement(lS,{style:{background:Wx.warning,color:"black",textShadow:"0",opacity:o?1:.3}},"stale ",i.createElement(dS,null,"(",o,")"))," ",i.createElement(lS,{style:{background:Wx.gray,opacity:a?1:.3}},"inactive ",i.createElement(dS,null,"(",a,")")))},LS=i.memo(({queryKey:e,setActiveQueryHash:t,activeQueryHash:n,queryCache:r})=>{var o,a,s,c;const u=null!=(o=AS(r,()=>{var t;return null==(t=r.find(e))?void 0:t.queryHash}))?o:"",l=AS(r,()=>{var t;return null==(t=r.find(e))?void 0:t.state}),d=null!=(a=AS(r,()=>{var t;return null==(t=r.find(e))?void 0:t.isStale()}))&&a,p=null!=(s=AS(r,()=>{var t;return null==(t=r.find(e))?void 0:t.isDisabled()}))&&s,h=null!=(c=AS(r,()=>{var t;return null==(t=r.find(e))?void 0:t.getObserversCount()}))?c:0;return l?i.createElement("div",{role:"button","aria-label":"Open query details for "+u,onClick:()=>t(n===u?"":u),style:{display:"flex",borderBottom:"solid 1px "+Wx.grayAlt,cursor:"pointer",background:u===n?"rgba(255,255,255,.1)":void 0}},i.createElement("div",{style:{flex:"0 0 auto",width:"2em",height:"2em",background:Kx({queryState:l,isStale:d,observerCount:h,theme:Wx}),display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold",textShadow:d?"0":"0 0 10px black",color:d?"black":"white"}},h),p?i.createElement("div",{style:{flex:"0 0 auto",height:"2em",background:Wx.gray,display:"flex",alignItems:"center",fontWeight:"bold",padding:"0 0.5em"}},"disabled"):null,i.createElement(dS,{style:{padding:".5em"}},""+u)):null});function jS(){}LS.displayName="QueryRow";const NS="development"!==process.env.NODE_ENV?function(){return null}:function({initialIsOpen:e,panelProps:t={},closeButtonProps:n={},toggleButtonProps:r={},position:o="bottom-left",containerElement:a="aside",context:s,styleNonce:c,panelPosition:u="bottom",errorTypes:l=[]}){const d=i.useRef(null),p=i.useRef(null),[h,f]=GE("reactQueryDevtoolsOpen",e),[m,g]=GE("reactQueryDevtoolsHeight",eS),[y,v]=GE("reactQueryDevtoolsWidth",eS),[b="bottom",k]=GE("reactQueryDevtoolsPanelPosition",u),[_,w]=i.useState(!1),[E,x]=i.useState(!1),S=function(){const e=i.useRef(!1),t=i.useCallback(()=>e.current,[]);return i.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t}();i.useEffect(()=>{w(null!=h&&h)},[h,_,w]),i.useEffect(()=>{const e=p.current;if(e){const t=()=>{_&&(e.style.visibility="visible")},n=()=>{_||(e.style.visibility="hidden")};return e.addEventListener("transitionstart",t),e.addEventListener("transitionend",n),()=>{e.removeEventListener("transitionstart",t),e.removeEventListener("transitionend",n)}}},[_]),i.useEffect(()=>{var e;if(_&&null!=(e=d.current)&&e.parentElement){const{parentElement:e}=d.current,t=oS("padding",b),n=nS(b),r=(({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:r,paddingRight:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:r,paddingRight:o}))(e.style),o=()=>{e.style.padding="0px",e.style.paddingTop="0px",e.style.paddingBottom="0px",e.style.paddingLeft="0px",e.style.paddingRight="0px",e.style[t]=(n?y:m)+"px"};if(o(),"undefined"!=typeof window)return window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o),Object.entries(r).forEach(([t,n])=>{e.style[t]=n})}}},[_,b,m,y]);const{style:C={},...I}=t,{style:R={},onClick:T,...A}=r,O=function({position:e="bottom",height:t,width:n,devtoolsTheme:r,isOpen:o,isResizing:a,panelStyle:i}){const s=rS(e),c=oS("border",s),u=nS(e);return{...i,direction:"ltr",position:"fixed",[e]:0,[c]:"1px solid "+r.gray,transformOrigin:s,boxShadow:"0 0 20px rgba(0,0,0,.3)",zIndex:99999,visibility:o?"visible":"hidden",...a?{transition:"none"}:{transition:"all .2s ease"},...o?{opacity:1,pointerEvents:"all",transform:u?"translateX(0) scale(1)":"translateY(0) scale(1)"}:{opacity:0,pointerEvents:"none",transform:u?"translateX(15px) scale(1.02)":"translateY(15px) scale(1.02)"},...u?{top:0,height:"100vh",maxWidth:"90%",width:"number"==typeof n&&n>=70?n:eS}:{left:0,width:"100%",maxHeight:"90%",height:"number"==typeof t&&t>=70?t:eS}}}({position:b,devtoolsTheme:Wx,isOpen:_,height:m,width:y,isResizing:E,panelStyle:C});return S()?i.createElement(a,{ref:d,className:"ReactQueryDevtools","aria-label":"React Query Devtools"},i.createElement(Vx,{theme:Wx},i.createElement(OS,SE({ref:p,context:s,styleNonce:c,position:b,onPositionChange:k,showCloseButton:!0,closeButtonProps:n},I,{style:O,isOpen:_,setIsOpen:f,onDragStart:e=>((e,t)=>{if(!e)return;if(0!==t.button)return;const n=nS(b);x(!0);const{height:r,width:o}=e.getBoundingClientRect(),a=t.clientX,i=t.clientY;let s=0;const c=e=>{e.preventDefault(),n?(s=o+("right"===b?a-e.clientX:e.clientX-a),v(s)):(s=r+("bottom"===b?i-e.clientY:e.clientY-i),g(s)),f(!(s<70))},u=()=>{E&&x(!1),document.removeEventListener("mousemove",c,!1),document.removeEventListener("mouseUp",u,!1)};document.addEventListener("mousemove",c,!1),document.addEventListener("mouseup",u,!1)})(p.current,e),errorTypes:l}))),_?null:i.createElement("button",SE({type:"button"},A,{"aria-label":"Open React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"false",onClick:e=>{f(!0),null==T||T(e)},style:{background:"none",border:0,padding:0,position:"fixed",zIndex:99999,display:"inline-flex",fontSize:"1.5em",margin:".5em",cursor:"pointer",width:"fit-content",..."top-right"===o?{top:"0",right:"0"}:"top-left"===o?{top:"0",left:"0"}:"bottom-right"===o?{bottom:"0",right:"0"}:{bottom:"0",left:"0"},...R}}),i.createElement(TS,{"aria-hidden":!0}),i.createElement(fS,{text:"Open React Query Devtools"}))):null};process.env.NODE_ENV;var zS,qS={backgroundColor:"#fcfcff",width:"100%",zIndex:1e7,height:"100%",position:"absolute"};function US(e){var o=this,a=e.children,i=process.env.ENVIRONMENT,s=p(function(){return"DEV"!==i&&"LOCAL"!==i?"testing":"live"},[i]),l=c(!1),h=l[0],f=l[1],m=d(function(e){return n(o,void 0,void 0,function(){var n,o,a,i,c;return r(this,function(r){switch(r.label){case 0:return n=localStorage.getItem("headers"),o=n&&JSON.parse(n),a=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live",i=localStorage.getItem("x-organization-code"),c=i?JSON.parse(i).value:"",[4,jh.refreshInstance({headers:t(t({},o),{"X-Environment":a||s,"x-organization-code":c,"x-account-code":e.detail.accountCode,"X-Content-Type-Options":"nosniff"})})];case 1:return r.sent(),[2]}})})},[s]);u(function(){return addEventListener("ACCOUNT_CHANGED",m),function(){window.removeEventListener("ACCOUNT_CHANGED",m)}},[m]);var g=d(function(e){return n(o,void 0,void 0,function(){var n,o,a,i,c,u,l;return r(this,function(r){switch(r.label){case 0:return n=localStorage.getItem("headers"),(o=n&&JSON.parse(n))?(a=localStorage.getItem("x-organization-code"),i=localStorage.getItem("account"),c=i?null===(l=JSON.parse(i).value)||void 0===l?void 0:l.code:"",u=a?JSON.parse(a).value:"",[4,jh.refreshInstance({headers:t(t({},o),{"X-Environment":e||s,"x-organization-code":u,"x-account-code":c,"X-Content-Type-Options":"nosniff"})})]):[3,2];case 1:r.sent(),Um.refetchQueries(["fetch-profile","accountsV2","accounts","fetch-all-organizations","fetch-permissions"]),f(!0),r.label=2;case 2:return[2]}})})},[s,f]);return u(function(){var e=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live";window.addEventListener("storage",function(t){if("token"===t.key||"isTesting"===t.key){var n="OFF"===t.newValue?"live":"testing";"isTesting"===t.key?g(n):"token"===t.key&&g(e)}}),g(e)},[f,g]),h?React.createElement(Mf,{client:Um},a,React.createElement(NS,{initialIsOpen:!1})):React.createElement("div",{style:qS})}!function(e){e.ECONNABORTED="ECONNABORTED",e.ETIMEDOUT="ETIMEDOUT",e.ERR_BAD_REQUEST="ERR_BAD_REQUEST"}(zS||(zS={}));var MS=function(){var e=l(null),t=l(null),n=l(null),r=c(!1),o=r[0],a=r[1],i=c(null),s=i[0],p=i[1],h=c(null),f=h[0],m=h[1],g=d(function(){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null)},[]),y=d(function(){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null),m(null);try{var r=new WebSocket("".concat(Lh["WS_URL_".concat(Lh.ENVIRONMENT)],"/data-assistant/charts/ws"));e.current=r,r.onopen=function(){a(!0);var e=localStorage.getItem("token");e&&r.send(JSON.stringify({type:"auth",token:e})),t.current=setInterval(function(){r.readyState===WebSocket.OPEN?r.send(JSON.stringify({type:"ping"})):(g(),a(!1))},3e4)},r.onmessage=function(e){try{var t=JSON.parse(e.data);p(t)}catch(e){m("Failed to parse server response")}},r.onerror=function(e){m("Connection error occurred"),a(!1)},r.onclose=function(e){a(!1),g(),e.wasClean||1e3===e.code||(n.current=setTimeout(function(){y()},5e3))}}catch(e){m("Failed to establish connection")}},[]),v=d(function(t){var n;(null===(n=e.current)||void 0===n?void 0:n.readyState)===WebSocket.OPEN&&e.current.send(JSON.stringify({type:"subscribe",chart_id:t}))},[]),b=d(function(t){var n;(null===(n=e.current)||void 0===n?void 0:n.readyState)===WebSocket.OPEN&&e.current.send(JSON.stringify({type:"unsubscribe",chart_id:t}))},[]),k=d(function(){p(null)},[]),_=d(function(){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null),e.current&&(a(!1),e.current.close(1e3,"Manual disconnect"),e.current=null)},[]);return u(function(){return y(),function(){g(),_()}},[]),{subscribe:v,unsubscribe:b,disconnect:_,connect:y,clearChartData:k,isConnected:o,chartData:s,connectionError:f}},BS=["LOCAL","DEV","STG"].includes(process.env.ENVIRONMENT||"");"undefined"!=typeof window&&BS&&function(){n(this,void 0,void 0,function(){var e;return r(this,function(t){switch(t.label){case 0:if(!ki())return console.info('MSW is disabled. Run "window.enableMSW()" to enable it.'),[2];console.info('MSW is enabled. Run "window.disableMSW()" to disable it.'),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,yi.start({serviceWorker:{url:"/mockServiceWorker.js"},onUnhandledRequest:"bypass"})];case 2:return t.sent(),[3,4];case 3:return e=t.sent(),console.error("Error starting MSW:",e),[3,4];case 4:return[2]}})})}();export{jd as AI,Oh as Api,zS as ApiErrorCodes,US as ApiProvider,jh as ApiSingleton,Ld as Audit,Gv as CONCIERGE_ALERTS_QUERY_KEY,Wv as CONCIERGE_ALERT_BY_ID_QUERY_KEY,Id as Cms,Cd as Country,Od as DataReport,$f as DuplicateSetting,lh as FEEDBACK_ISSUE_OPTIONS,Sd as Organization,Nd as OrganizationConfig,xd as PaymentFiltersSection,Yv as PendingDuplicateAccountStatus,Dd as ReconciliationAgendaInsight,Pd as ReconciliationReportType,Rd as ReportType,Ed as SendPaymentNotification,Ad as SmartRouting,Td as TemplateType,gk as getQueryKeyGetNameAndIcon,_k as getQueryKeyPaymentMethodAccounts,vk as getQueryKeyRequiredFields,qm as queryCache,Um as queryClient,dk as use3DSExemptions,pv as useAICreateWorkflow,Om as useAccountCode,zm as useAddToRiskList,iw as useAllFeatureFlags,Nw as useAllowListDetail,jw as useBlackListDetail,Bv as useBlockOnboarding,Lv as useBulkCreateInstallmentsPlans,jv as useBulkDeleteInstallmentsPlans,eg as useBulkToggleMethod,sw as useCachedFeatureFlag,Wm as useCancelReport,Rg as useCancelSubscription,gm as useChangePasswordV2,fy as useChangePaymentsWebhook,uy as useChangeStatusBlackList,ly as useChangeStatusItemBlackList,Sk as useChangeStylingSettings,xv as useChangeTemplateStatus,jm as useChargebacksUpload,MS as useChartAssistantSocket,Hw as useChartExecute,wv as useCloneTemplate,Vg as useCommunicationDetails,Wg as useCommunications,aE as useCommunicationsByDay,iE as useCommunicationsBySubstatus,Hg as useCommunicationsFilters,sE as useCommunicationsSubstatusByDay,Jg as useConfirmedOtpMfa,Gm as useCountRowsForReport,yv as useCreateAndExecuteChart,bv as useCreateAndExecuteChartWithTimezone,fv as useCreateChart,vv as useCreateChartWithTimezone,Kv as useCreateConciergeAlert,Ov as useCreateInstallmentsPlan,lg as useCreateMonitorTemplate,ug as useCreateMonitorThreshold,Uv as useCreateOnboarding,Lm as useCreateOperationTransaction,yg as useCreateOrgRole,_g as useCreatePaymentLinks,Nv as useCreateRecipient,av as useCreateReconciliationAlert,rv as useCreateReconciliationReportTemplate,Mm as useCreateReconciliationsReportV2,Bm as useCreateReconciliationsReportV3,Hm as useCreateReportTemplate,Fm as useCreateReportV2,fg as useCreateRoles,uv as useCreateSamlConfig,Cv as useCreateSchedule,Ry as useCreateScheduledReport,Sg as useCreateSubscription,_v as useCreateTemplate,Sm as useCreateUserAuth0,$m as useCreateWorkflow,om as useDeleteAccountsUserMassive,yy as useDeleteAllowlistItem,py as useDeleteBlackListType,my as useDeleteBlockListItem,mv as useDeleteChart,$v as useDeleteConciergeAlert,My as useDeleteCustomizedApiKeys,Dv as useDeleteInstallmentsPlan,bg as useDeleteOrgRole,wg as useDeletePaymentLink,qv as useDeleteRecipient,iv as useDeleteReconciliationAlert,Km as useDeleteReportTemplate,gg as useDeleteRoles,dv as useDeleteSamlConfig,Rv as useDeleteSchedule,Ay as useDeleteScheduledReport,Sv as useDeleteTemplate,pg as useDeleteUserTeamV2,Jm as useDeleteVersion,Yf as useDeleteWebhookV2,Iv as useDisableSchedule,Xf as useDuplicateAccount,Zm as useDuplicateVersion,vg as useEditOrgRole,Eg as useEditPaymentLinks,mg as useEditRoles,Ug as useEmailVerification,Qv as useEnableConciergeAlert,Cy as useExcludeUsers,Xy as useExportApiLogs,tv as useExportDashboardLogs,nv as useExportMonitorsLogs,ev as useExportWebhooksLogs,aw as useFeatureFlags,Kk as useFetchUserExportDetail,Aw as useFirebaseUserSubscribe,hv as useGenerateFeedback,Ub as useGetAccounts,Bb as useGetAccountsByUser,Fb as useGetAccountsForImpersonation,Mb as useGetAccountsV2,Mw as useGetAllConfigRules,Rb as useGetAllOrganizations,D_ as useGetAllReconciliationsAdvancements,A_ as useGetAllReconciliationsAgenda,T_ as useGetAllReconciliationsAlerts,L_ as useGetAllReconciliationsFees,P_ as useGetAllReconciliationsSales,S_ as useGetAllTableColumns,wb as useGetAllowedIps,hw as useGetApiLogsByTransactionCode,pw as useGetApiLogsDetailByPaymentCode,_w as useGetApiLogsList,bw as useGetApiLogsStatsErrors,kw as useGetApiLogsStatsErrorsByEndpoint,vw as useGetApiLogsStatsRequests,wE as useGetApiLogsV3,ww as useGetApiLogsV3ByPaymentCode,cw as useGetAuditEvents,mw as useGetAuditExportDownload,fw as useGetAuditExportsList,Yb as useGetAuditLogsFilters,uw as useGetAuditMonitorEventDetail,wy as useGetBatchRefundProcessedFileDownload,Ey as useGetBatchRefundUserFileDownload,qw as useGetBatchRefunds,Pw as useGetBlackList,Lw as useGetBlockListSummary,ob as useGetCardBrands,Qw as useGetChartFeedback,Vw as useGetChartsByUser,Kw as useGetChartsByUserWithResults,mk as useGetCheckouts,Vv as useGetConciergeAlertById,Hv as useGetConciergeAlerts,Oy as useGetConditionalConfigRules,Ow as useGetConfigAllowlist,Lb as useGetConnections,Pb as useGetConnectionsByPaymentMethod,Sw as useGetCountriesConfigPaymentLink,Cw as useGetCountriesConfigPaymentLinkV2,kk as useGetCountryData,kb as useGetCredentials,Gy as useGetCredentialsMFA,xb as useGetCustomizedApiKeys,Eb as useGetCustomizedApiKeysAccounts,_b as useGetCustomizedApiKeysMembers,Sb as useGetCustomizedApiKeysProducts,zy as useGetCustomizedApiKeysToken,Jb as useGetDashboardStaticContents,jb as useGetDialogs,Lk as useGetDownloadReport,Yg as useGetEmailOtp,Db as useGetHashPylon,Fg as useGetImpersonationEnabled,Bg as useGetImpersonationUsers,a_ as useGetInsightsReport,i_ as useGetInsightsReportAgain,kE as useGetInstallmentsPlans,Ob as useGetIntegrationByAccountV2,Ab as useGetIntegrationParams,Yw as useGetLanguages,Zb as useGetLocales,Mg as useGetLoginMethods,Fw as useGetMFAConfig,Bw as useGetMFAExcludedUsers,Gw as useGetMFAStatus,Hb as useGetMenu,Rk as useGetMergedNotifications,yk as useGetNameAndIcon,Zw as useGetNetworkTokensOnboardingByOrganization,Ck as useGetNotificationsCustomer,Tk as useGetNotificationsNumberMutation,vE as useGetOnboardingDetail,mE as useGetOnboardingStatus,bE as useGetOnboardingTimeline,Wk as useGetOrgPermissionsCatalog,Gk as useGetOrgRolesPermissions,Ib as useGetOrganization,fE as useGetOrganizationConfigs,Hy as useGetOrganizationKeysMetadata,ab as useGetPaymentFilters,xw as useGetPaymentLinkByCode,Ew as useGetPaymentLinks,wk as useGetPaymentMethodAccounts,rb as useGetPaymentMethodsAndProviders,ib as useGetPaymentMetricsFilters,Vb as useGetPaymentStatusesStyles,sb as useGetPaymentTransactionsDetails,Xv as useGetPaymentV2,nb as useGetPaymentsMethodsByCountry,db as useGetPayoutDetail,hb as useGetPayoutHistoryDetail,bb as useGetPayoutTimeline,pb as useGetPayoutTransactionDetail,Wb as useGetPendingDuplicateAccounts,qg as useGetPermissions,Fk as useGetPermissionsCatalog,Ng as useGetProfile,fb as useGetProofOfCancel,mb as useGetProofOfPayment,Tb as useGetProviderParams,yE as useGetRecipientById,gE as useGetRecipients,C_ as useGetReconciliationActive,O_ as useGetReconciliationAgendaInsightsByKey,x_ as useGetReconciliationFilters,M_ as useGetReconciliationInsightsAmountConflictAggregators,B_ as useGetReconciliationInsightsAmountConflictList,tw as useGetReconciliationInsightsAmountToBeSettledSummary,G_ as useGetReconciliationInsightsConflictDateAggregators,W_ as useGetReconciliationInsightsConflictDateList,F_ as useGetReconciliationInsightsConflictDateSummary,j_ as useGetReconciliationInsightsConflictsSummary,$_ as useGetReconciliationInsightsFeesChargedSummary,V_ as useGetReconciliationInsightsIncorrectFeesAggregators,K_ as useGetReconciliationInsightsIncorrectFeesList,H_ as useGetReconciliationInsightsIncorrectFeesSummary,X_ as useGetReconciliationInsightsNotConfirmAggregators,ew as useGetReconciliationInsightsNotConfirmList,Z_ as useGetReconciliationInsightsNotConfirmSummary,N_ as useGetReconciliationInsightsNotReconciledAggregators,z_ as useGetReconciliationInsightsNotReconciledList,Y_ as useGetReconciliationInsightsReconciledAggregators,J_ as useGetReconciliationInsightsReconciledList,Q_ as useGetReconciliationInsightsReconciledSummary,rw as useGetReconciliationInsightsReconciliationRateByAccount,ow as useGetReconciliationInsightsReconciliationRateByCurrency,nw as useGetReconciliationInsightsReconciliationRateByProvider,q_ as useGetReconciliationInsightsStatusConflictAggregators,U_ as useGetReconciliationInsightsStatusConflictList,E_ as useGetReconciliationMetrics,$b as useGetReconciliationTransactionStatusesStyles,__ as useGetReconciliationTransactions,I_ as useGetReconciliationsReportColumns,R_ as useGetReconciliationsReportTemplates,zk as useGetRefundPdf,Nk as useGetReportColumns,jk as useGetReportTemplates,Pk as useGetReportsList,Dk as useGetReportsListMultiEnv,bk as useGetRequiredFields,Mk as useGetRoles,Gb as useGetRolesForImpersonation,Bk as useGetRolesPermissions,fk as useGetRoutingMonitorsTemplate,hk as useGetRoutingMonitorsTemplates,Py as useGetRule,Ww as useGetSamlConfig,Iy as useGetScheduledReportsList,w_ as useGetSettlements,nk as useGetSmartRoutingConditionPaymentMethod,tk as useGetSmartRoutingConditionTypes,rk as useGetSmartRoutingConditionTypesValues,$k as useGetSmartRoutingDataReport,ik as useGetSmartRoutingDeclineGroups,Xb as useGetSmartRoutingMethods,ak as useGetSmartRoutingNextRoute,sk as useGetSmartRoutingPaymentRoute,uk as useGetSmartRoutingSearchConditionValues,ck as useGetSmartRoutingSimulateConditionTypeValues,ek as useGetSmartRoutingWorkflow,ok as useGetSmartRoutingWorkflowVersion,Ek as useGetStylingSdkDynamic,xk as useGetStylingSettingsV2,Rw as useGetSubscriptionByCode,Tw as useGetSubscriptionPayments,qk as useGetTeamsFiltersMembers,Qb as useGetTimeZoneCatalog,Iw as useGetTimezonePaymentLink,Qg as useGetTokenValidation,eb as useGetTransactionDetailsV2,cb as useGetTransactionHistoryByPaymentCode,tb as useGetTransactionRawResponse,Kb as useGetTransactionStatusesStyles,Jw as useGetTranslations,gw as useGetUnifiedExportStatus,yw as useGetUnifiedExportsList,Hk as useGetUserExportStatus,zg as useGetUserFull,Gg as useGetUsersToImpersonate,Ik as useGetValidateOpsgenieKey,Nb as useGetWebhookParamsV2,EE as useGetWebhookTimeline,qb as useGetWebhooksV2Detail,zb as useGetWebhooksV3,l_ as useInsights3dsConversionRateAndEvolution,d_ as useInsights3dsDeclineReasons,p_ as useInsights3dsFrictionlessVsChallenge,u_ as useInsights3dsVolumeAndCountTx,k_ as useInsightsChargebacksByCardBrand,y_ as useInsightsChargebacksByProviderAndCardBrand,g_ as useInsightsChargebacksDisputed,v_ as useInsightsChargebacksReasonsDistribution,b_ as useInsightsChargebacksStatusDistribution,f_ as useInsightsChargebacksTotalRateAndEvolution,h_ as useInsightsChargebacksVolumeAndCountTx,m_ as useInsightsChargebacksWinRate,Qk as useInsightsConversionRateMetricsV2,t_ as useInsightsCustomerPaymentsAndFraudMetrics,Jk as useInsightsFallbackMetrics,c_ as useInsightsFraudScreeningConversionRate,s_ as useInsightsFraudScreeningVolumeAndCountTx,o_ as useInsightsHomeMetrics,n_ as useInsightsOverviewMetrics,r_ as useInsightsOverviewMetricsV3,e_ as useInsightsTotalPaymentsAndFraudMetrics,Zk as useInsightsVolumeMetrics,Xk as useInsightsVolumeMetricsV2,wm as useInviteUsersMultiaccountMassive,Em as useInviteUsersMultiaccountMassiveV2,Rm as useIsTesting,Og as useListSubscriptions,Vk as useListUserExports,Tm as useLocalStorage,Im as useLoginMethods,pk as useNetworkTokensOnboarding,um as useNewPostConnectionValidate,Am as useOrganizationCode,tm as usePatchAccountV2,ay as usePatchAddAllowlistItems,Cb as usePatchAllowedIps,iy as usePatchAllowlist,$w as usePatchAndExecuteChart,By as usePatchApiKeysEditNote,ry as usePatchChangeStatusAllowlist,oy as usePatchChangeStatusAllowlistItem,gv as usePatchChartName,lm as usePatchConnection,Vy as usePatchOrganizationKeysNote,Ny as usePathCreateCustomizedApiKeys,Ak as usePathNotifications,Cg as usePauseSubscription,vb as usePayoutsFilters,yb as usePayoutsList,Zf as usePostAccount,zw as usePostAllowlistMultiAccount,Fy as usePostApiKeysRoll,lw as usePostApiLogs,Yy as usePostAuditMonitors,_y as usePostBatchRefundByFile,hy as usePostBlackListBatch,dy as usePostBlackListItems,sy as usePostBlackListMultiAccount,Dw as usePostBlockList,Cm as usePostCall,im as usePostChangeStatusConnection,cm as usePostConnectionMultiAccount,ny as usePostCreateAllowlistMultiAccount,jy as usePostCreateCustomizedApiKeys,cv as usePostCreateInsightsReport,Dy as usePostCreateRuleMultiAccount,qy as usePostCredentialsValidatePassword,Uy as usePostCredentialsValidatePasswordRegularUser,Wy as usePostCredentialsWithOtpMfa,dm as usePostDefaultRoutes,Ly as usePostEditRule,lb as usePostFraudTransactions,ey as usePostGetAllowlistItems,ty as usePostGetAllowlistMultiAccount,Uk as usePostMembersPaginatedV2,hm as usePostNetworkTokensOnboarding,Tv as usePostOrganizationConfigs,Qy as usePostOrganizationKeysMarkRevealed,Ky as usePostOrganizationKeysRoll,$y as usePostOrganizationKeysTamRequest,Zv as usePostPaymentsEvaluated,Jv as usePostPaymentsLazy,dg as usePostSlackMessageChannel,ub as usePostTransactions,Pg as usePostUserSettings,jg as usePostUserSettingsPinned,Lg as usePostUserSettingsTables,Dg as usePostUserThemeSettings,am as usePostValideStatusConnection,Uw as usePostVelocityRules,dw as usePostWebhookLogs,Qf as usePostWebhookMultiAccount,lk as useProviderConversionRatesData,Nm as useProviderRawResponse,Dm as usePublishCheckout,Qm as usePublishVersion,nm as usePutAccountPrincipal,rm as usePutAccountsUserMassive,cy as usePutBlackListType,sm as usePutCosts,Av as usePutOrganizationConfigsByAccount,uE as useRecoveredPaymentsByDay,cE as useRecoveredTPVByDay,Ag as useRescheduleSubscription,Jy as useResendWebhooks,Ig as useResumeSubscription,em as useRetryDuplicateAccount,Ym as useSaveVersion,_E as useSearchInstallmentsPlans,hE as useSearchScheduleById,pE as useSearchSchedules,dE as useSearchTemplateById,lE as useSearchTemplates,gb as useSendPaymentNotification,hg as useSetCustodian,ng as useSmartRoutingCreateDeclinedGroup,og as useSmartRoutingEditWorkflowName,cg as useSmartRoutingMultiAccountDeclinedGroupCreate,sg as useSmartRoutingRemoveDeclinedGroup,ag as useSmartRoutingSimulateTransaction,rg as useSmartRoutingToggleFavorite,tg as useSmartRoutingUpdateDeclinedGroup,ig as useSmartRoutingUpdateMonitorRedistribution,kg as useStartUserExport,kv as useSubmitChartFeedback,$g as useTableOnboarding,Xm as useToggleMethod,xm as useUnInviteUsersV2,Fv as useUnblockOnboarding,Zy as useUnifiedExportStart,Zg as useUnrollUserV2,Pv as useUpdateInstallmentsPlan,Pm as useUpdateIsActiveCheckout,Sy as useUpdateMFAConfig,Mv as useUpdateOnboarding,fm as useUpdateOrganizationStatus,_m as useUpdateProfile,zv as useUpdateRecipient,sv as useUpdateReconciliationAlert,ov as useUpdateReconciliationReportTemplate,Vm as useUpdateReportTemplate,lv as useUpdateSamlConfig,Ty as useUpdateScheduledReport,Tg as useUpdateSubscription,Ev as useUpdateTemplateSelection,Jf as useUpdateWebhookV2,by as useUploadBatchRefundsFileV2,ky as useUploadBatchRefundsV2,xy as useUploadFileS3ClientBatchRefunds,xg as useUploadPaymentLinkLogo,vy as useValiateAllowlistItems,gy as useValidateBlockListItems,pm as useValidateCredentials,mm as useValidateOrgName,Xg as useValidatePasswordStatus,Yk as useViewMoreMetrics,vm as useWorkosAdminPortal,xE as useWorkosDomainStatus,bm as useWorkosDomainVerificationPortal,ym as useWorkosPasswordReset,km as useWorkosVerifyMfa};
|
|
68
68
|
//# sourceMappingURL=index.js.map
|