@yuno-payments/dashboard-api-mfe 0.35.0-beta.13 → 0.35.0-beta.14
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 +1 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/mutations/chartgpt/chartgpt.mutation.d.ts +11 -0
- package/build/cjs/types/queries/chartgpt/chartgpt.query.d.ts +0 -9
- package/build/esm/index.js +2 -2
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/mutations/chartgpt/chartgpt.mutation.d.ts +11 -0
- package/build/esm/types/queries/chartgpt/chartgpt.query.d.ts +0 -9
- package/build/index.d.ts +56 -55
- package/package.json +1 -1
package/build/esm/index.js
CHANGED
|
@@ -220,7 +220,7 @@ function ra(e){const t=ia.parse(e),n={};for(const e in t)void 0!==t[e]&&(n[e]=t[
|
|
|
220
220
|
*
|
|
221
221
|
* This source code is licensed under the MIT license found in the
|
|
222
222
|
* LICENSE file in the root directory of this source tree.
|
|
223
|
-
*/"production"===process.env.NODE_ENV?lf.exports=function(){if(uf)return pf;uf=1;var e=x,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,o=e.useEffect,a=e.useLayoutEffect,i=e.useDebugValue;function r(e){var n=e.getSnapshot;e=e.value;try{var o=n();return!t(e,o)}catch(e){return!0}}var s="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 a((function(){u.value=s,u.getSnapshot=t,r(u)&&l({inst:u})}),[e,s,t]),o((function(){return r(u)&&l({inst:u}),e((function(){r(u)&&l({inst:u})}))}),[e]),i(s),s};return pf.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:s,pf}():lf.exports=(df||(df=1,"production"!==process.env.NODE_ENV&&function(){function e(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!n(e,o)}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=x,n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=t.useState,a=t.useEffect,i=t.useLayoutEffect,r=t.useDebugValue,s=!1,c=!1,u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(u,l){s||void 0===t.startTransition||(s=!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 p=l();if(!c){var d=l();n(p,d)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}var m=(d=o({inst:{value:p,getSnapshot:l}}))[0].inst,h=d[1];return i((function(){m.value=p,m.getSnapshot=l,e(m)&&h({inst:m})}),[u,p,l]),a((function(){return e(m)&&h({inst:m}),u((function(){e(m)&&h({inst:m})}))}),[u]),r(p),p};mf.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:u,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),mf);var hf=lf.exports;const ff=hf.useSyncExternalStore,gf=k.createContext(void 0),yf=k.createContext(!1);function vf(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=gf),window.ReactQueryClientContext):gf)}const bf=({context:e}={})=>{const t=k.useContext(vf(e,k.useContext(yf)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},kf=({client:e,children:t,context:n,contextSharing:o=!1})=>{k.useEffect((()=>(e.mount(),()=>{e.unmount()})),[e]),"production"!==process.env.NODE_ENV&&o&&e.getLogger().error("The contextSharing option has been deprecated and will be removed in the next major version");const a=vf(n,o);return k.createElement(yf.Provider,{value:!n&&o},k.createElement(a.Provider,{value:e},t))},xf=k.createContext(!1);xf.Provider;const wf=k.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function jf(e,t){return"function"==typeof e?e(...t):!!e}function Cf(e,t){const n=bf({context:e.context}),o=k.useContext(xf),a=k.useContext(wf),i=n.defaultQueryOptions(e);i._optimisticResults=o?"isRestoring":"optimistic",i.onError&&(i.onError=$h.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=$h.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=$h.batchCalls(i.onSettled)),(e=>{e.suspense&&"number"!=typeof e.staleTime&&(e.staleTime=1e3)})(i),((e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))})(i,a),(e=>{k.useEffect((()=>{e.clearReset()}),[e])})(a);const[r]=k.useState((()=>new t(n,i))),s=r.getOptimisticResult(i);if(ff(k.useCallback((e=>{const t=o?()=>{}:r.subscribe($h.batchCalls(e));return r.updateResult(),t}),[r,o]),(()=>r.getCurrentResult()),(()=>r.getCurrentResult())),k.useEffect((()=>{r.setOptions(i,{listeners:!1})}),[i,r]),((e,t,n)=>(null==e?void 0:e.suspense)&&((e,t)=>e.isLoading&&e.isFetching&&!t)(t,n))(i,s,o))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)})))(i,r,a);if((({result:e,errorResetBoundary:t,useErrorBoundary:n,query:o})=>e.isError&&!t.isReset()&&!e.isFetching&&jf(n,[e.error,o]))({result:s,errorResetBoundary:a,useErrorBoundary:i.useErrorBoundary,query:r.getCurrentQuery()}))throw s.error;return i.notifyOnChangeProps?s:r.trackResult(s)}function Ef(e,t,n){return Cf(xh(e,t,n),nf)}function Sf(e,t,n){const o=function(e,t,n){return Ph(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}(e,t,n),a=bf({context:o.context}),[i]=k.useState((()=>new cf(a,o)));k.useEffect((()=>{i.setOptions(o)}),[i,o]);const r=ff(k.useCallback((e=>i.subscribe($h.batchCalls(e))),[i]),(()=>i.getCurrentResult()),(()=>i.getCurrentResult())),s=k.useCallback(((e,t)=>{i.mutate(e,t).catch(_f)}),[i]);if(r.error&&jf(i.options.useErrorBoundary,[r.error]))throw r.error;return{...r,mutate:s,mutateAsync:r.mutate}}function _f(){}function Rf(e){return Sf((function(e){var t=e.payload,n=e.accountCode;return fh.getInstance().postWebhook({payload:t,accountCode:n})}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Tf(e){return Sf((function(e){var t=e.payload,n=e.accountCode;return fh.getInstance().postWebhookV2({payload:t,accountCode:n})}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function If(e){return Sf((function(e){var t=e.payload;return fh.getInstance().postWebhookV2MultiAccount({payload:t})}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Of(e){return Sf((function(e){var t=e.code;return fh.getInstance().deleteWebhook(t)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Af(e){return Sf((function(e){var t=e.code,n=e.accountCode;return fh.getInstance().deleteWebhookV2(t,n)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function zf(e){return Sf((function(e){var t=e.code,n=e.payload;return fh.getInstance().updateWebhook(t,n)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Pf(e){return Sf((function(e){var t=e.code,n=e.payload,o=e.accountCode;return fh.getInstance().updateWebhookV2(t,n,o)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Lf(){return Sf((function(e){var t=e.name,n=e.principal;return fh.getInstance().postAccount(t,n)}))}function Df(){return Sf((function(e){var t=e.name,n=e.code,o=e.principal;return fh.getInstance().patchAccount({name:t,code:n,principal:o})}))}function qf(){return Sf((function(e){var t=e.name,n=e.code,o=e.principal;return fh.getInstance().patchAccountV2({name:t,code:n,principal:o})}))}function Nf(){return Sf((function(e){var t=e.account_code;return fh.getInstance().putAccountPrincipal({account_code:t})}))}function Mf(){return Sf((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return fh.getInstance().putAccountsUser(t,n,o)}))}function Ff(){return Sf((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return fh.getInstance().putAccountsUserMassive(t,n,o)}))}function Uf(){return Sf((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return fh.getInstance().deleteAccountsUserMassive(t,n,o)}))}function Bf(){return Sf(["post-validate-status-connection"],(function(e){var t=e.payload,n=e.accountCode;return fh.getInstance().postValidateStatusConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Wf(){return Sf(["post-change-status-connection"],(function(e){var t=e.payload,n=e.accountCode;return fh.getInstance().postChangeStatusConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Hf(){return Sf((function(e){return fh.getInstance().putCosts(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Vf(){return Sf(["post-connection"],(function(e){var t=e.payload,n=e.accountCode;return fh.getInstance().postConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Gf(){return Sf(["post-connection"],(function(e){var t=e.payload;return fh.getInstance().postMultiConnection({payload:t}).then((function(e){return null==e?void 0:e.data}))}))}function $f(){return Sf(["new-post-connection"],(function(e){var t=e.payload,n=e.accountCode;return fh.getInstance().newPostConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Kf(){return Sf(["new-post-connection-validate"],(function(){return fh.getInstance().postMultiConnectionValidate().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Qf(){return Sf(["patch-connection"],(function(e){var t=e.payload,n=e.connectionCode;return fh.getInstance().patchConnection({payload:t,connectionCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Jf(){return Sf(["delete-connection"],(function(e){return fh.getInstance().deleteConnection(e).then((function(e){return null==e?void 0:e.data}))}))}function Yf(){return Sf(["auth-connection"],(function(e){var t=e.payload,n=e.connectionCode;return fh.getInstance().postArchiveConnection({payload:t,connectionCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Xf(){return Sf((function(e){var t=e.payload;return fh.getInstance().postDefaultRoutes({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function Zf(){return Sf((function(e){return fh.getInstance().postValidateCredentials(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function eg(){return Sf(["patch-organizations"],(function(){return fh.getInstance().updateOrganizationStatus().then((function(e){return null==e?void 0:e.data}))}))}function tg(){return Sf((function(e){return fh.getInstance().getOrgByName(e).then((function(e){return null==e?void 0:e.data}))}))}function ng(e){var o=this;return Sf((function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().changePassword(e).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,t.sent()]}}))}))}))}function og(){var e=this;return Sf((function(o){return t(e,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,fh.getInstance().changePasswordV2(o).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}))}function ag(e){return Sf((function(e){return fh.getInstance().updateProfile(e)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function ig(){return Sf((function(e){return fh.getInstance().inviteUsers(e)}))}function rg(){return Sf((function(e){return fh.getInstance().inviteUsersV2(e,e.organizationCode)}))}function sg(){return Sf((function(e){return fh.getInstance().inviteUsersMassive(e,e.organizationCode)}))}function cg(){return Sf((function(e){var t=e.userCode;return fh.getInstance().unInviteUsers({userCode:t})}))}function ug(){return Sf((function(e){var t=e.userCode,n=e.organizationCode;return fh.getInstance().unInviteUsersV2({userCode:t,organizationCode:n})}))}function lg(){return Sf((function(e){return fh.getInstance().createUserAuth0(e)}))}function pg(){return Sf((function(e){return fh.getInstance().postCall(e)}))}function dg(){return Sf((function(e){return fh.getInstance().changeLoginMethods(e)}))}function mg(){return Sf((function(e){var t=e.paymentMethod,n=e.checkoutCode;return fh.getInstance().updateIsActivePaymentMethod(n,t).then((function(e){return null==e?void 0:e.data}))}))}function hg(e){return Sf((function(e){return fh.getInstance().updateIsActiveCheckout(e)}),e)}function fg(){return Sf((function(e){var t=e.accountCode,n=e.template;return fh.getInstance().updateCheckoutTemplate({accountCode:t,template:n}).then((function(e){return null==e?void 0:e.data}))}))}function gg(){return Sf((function(e){var t=e.accountCode,n=e.theme;return fh.getInstance().updateStylingTheme({accountCode:t,theme:n}).then((function(e){return null==e?void 0:e.data}))}))}function yg(){return Sf((function(e){var t=e.payload,n=e.transactionId,o=e.paymentId,a=e.action;return fh.getInstance().createOperationTransaction(t,n,o,a)}))}function vg(){return Sf((function(e){var t=e.payload,n=e.paymentId,o=e.transactionId,a=e.handleSetProgress;return fh.getInstance().uploadChargebacks(t,n,o,a)}))}var bg=new Jh({}),kg=new class{constructor(e={}){this.queryCache=e.queryCache||new Jh,this.mutationCache=e.mutationCache||new Zh,this.logger=e.logger||Gh,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=Nh.subscribe((()=>{Nh.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())})),this.unsubscribeOnline=Fh.subscribe((()=>{Fh.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]=wh(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 o=xh(e,t,n),a=this.getQueryData(o.queryKey);return a?Promise.resolve(a):this.fetchQuery(o)}getQueriesData(e){return this.getQueryCache().findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const o=this.queryCache.find(e),a=function(e,t){return"function"==typeof e?e(t):e}(t,null==o?void 0:o.state.data);if(void 0===a)return;const i=xh(e),r=this.defaultQueryOptions(i);return this.queryCache.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return $h.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]=wh(e,t),o=this.queryCache;$h.batch((()=>{o.findAll(n).forEach((e=>{o.remove(e)}))}))}resetQueries(e,t,n){const[o,a]=wh(e,t,n),i=this.queryCache,r={type:"active",...o};return $h.batch((()=>(i.findAll(o).forEach((e=>{e.reset()})),this.refetchQueries(r,a))))}cancelQueries(e,t,n){const[o,a={}]=wh(e,t,n);void 0===a.revert&&(a.revert=!0);const i=$h.batch((()=>this.queryCache.findAll(o).map((e=>e.cancel(a)))));return Promise.all(i).then(vh).catch(vh)}invalidateQueries(e,t,n){const[o,a]=wh(e,t,n);return $h.batch((()=>{var e,t;if(this.queryCache.findAll(o).forEach((e=>{e.invalidate()})),"none"===o.refetchType)return Promise.resolve();const n={...o,type:null!=(e=null!=(t=o.refetchType)?t:o.type)?e:"active"};return this.refetchQueries(n,a)}))}refetchQueries(e,t,n){const[o,a]=wh(e,t,n),i=$h.batch((()=>this.queryCache.findAll(o).filter((e=>!e.isDisabled())).map((e=>{var t;return e.fetch(void 0,{...a,cancelRefetch:null==(t=null==a?void 0:a.cancelRefetch)||t,meta:{refetchPage:o.refetchPage}})}))));let r=Promise.all(i).then(vh);return null!=a&&a.throwOnError||(r=r.catch(vh)),r}fetchQuery(e,t,n){const o=xh(e,t,n),a=this.defaultQueryOptions(o);void 0===a.retry&&(a.retry=!1);const i=this.queryCache.build(this,a);return i.isStaleByTime(a.staleTime)?i.fetch(a):Promise.resolve(i.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(vh).catch(vh)}fetchInfiniteQuery(e,t,n){const o=xh(e,t,n);return o.behavior=ef(),this.fetchQuery(o)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(vh).catch(vh)}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=>Sh(e)===Sh(t.queryKey)));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find((t=>_h(e,t.queryKey)));if("production"!==process.env.NODE_ENV){this.queryDefaults.filter((t=>_h(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=>Sh(e)===Sh(t.mutationKey)));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find((t=>_h(e,t.mutationKey)));if("production"!==process.env.NODE_ENV){this.mutationDefaults.filter((t=>_h(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=Eh(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:bg});function xg(){return Sf((function(e){return fh.getInstance().createReport(e).then((function(e){return null==e?void 0:e.data}))}))}function wg(){return Sf((function(e){return fh.getInstance().createReconciliationsReportV2(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function jg(){return Sf((function(e){return fh.getInstance().createReportV2(e).then((function(e){return null==e?void 0:e.data}))}))}function Cg(){return Sf((function(e){return fh.getInstance().getTotalRowsForExport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Eg(){return Sf((function(e){return fh.getInstance().cancelReport(e).then((function(e){return null==e?void 0:e.data}))}))}function Sg(o){var a=this;return Sf((function(){return t(a,void 0,void 0,(function(){return n(this,(function(e){return[2,fh.getInstance().createReportTemplate(o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onMutate:function(o){return t(a,void 0,void 0,(function(){var t;return n(this,(function(n){switch(n.label){case 0:return[4,kg.cancelQueries({queryKey:["GET/reports/templates"]})];case 1:return n.sent(),t=kg.getQueryData(["GET/reports/templates"]),kg.setQueryData(["GET/reports/templates"],(function(t){return e(e([],t,!0),[o],!1)})),[2,{previousTemplates:t}]}}))}))},onError:function(e,t,n){kg.setQueryData(["GET/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){kg.invalidateQueries({queryKey:["GET/reports/templates"]})}})}function _g(e){return Sf((function(){return fh.getInstance().updateReportTemplate(e).then((function(e){return null==e?void 0:e.data}))}))}function Rg(e,o,a){var i=this;return void 0===a&&(a=null),Sf((function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().postSmartRoutingCreateWorkflow(e,o).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,t.sent()]}}))}))}),a)}function Tg(e,o){var a=this,i=e.versionCode,r=e.accountCode,s=e.organizationCode;return void 0===o&&(o=null),Sf((function(){return t(a,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,fh.getInstance().postSmartRoutingPublishVersion(r,i,s).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}),o)}function Ig(){return Sf(["validate-connection"],(function(e){var t=e.connectionCode;return fh.getInstance().postSmartRoutingValidateConnection(t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Og(e,t){var n=e.data,o=e.accountCode;return void 0===t&&(t=null),Sf((function(){return fh.getInstance().putSmartRoutingUpdateWorkflow(o,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),t)}function Ag(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Sf((function(){return fh.getInstance().deleteSmartRoutingVersion(o,n).then((function(e){return null==e?void 0:e.data}))}),t)}function zg(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Sf((function(){return fh.getInstance().postSmartRoutingDuplicateVersion(o,n).then((function(e){return null==e?void 0:e.data}))}),t)}function Pg(e,t){var n=e.paymentMethod,o=e.active,a=e.accountCode;return void 0===t&&(t=null),Sf((function(){return fh.getInstance().putSmartRoutingToggleMethod(a,n,o).then((function(e){return null==e?void 0:e.data}))}),t)}function Lg(e,t){var n=e.declinedId,o=e.accountCode;return void 0===t&&(t=null),Sf((function(e){return void 0===e&&(e=null),fh.getInstance().updateSmartRoutingDeclinedGroup(o,n,e).then((function(e){return null==e?void 0:e.data}))}),t)}function Dg(e){var t=e.accountCode;return Sf((function(e){return void 0===e&&(e=null),fh.getInstance().createSmartRoutingDeclinedGroup(t,e).then((function(e){return null==e?void 0:e.data}))}),e.options)}function qg(e){var t=e.accountCode;return Sf((function(e){return void 0===e&&(e=null),fh.getInstance().updateSmartRoutingTutorial(t,e||"").then((function(e){return null==e?void 0:e.data}))}),e.options)}function Ng(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Sf((function(e){return void 0===e&&(e=!1),fh.getInstance().updateSmartRoutingFavorite(o,n,e).then((function(e){return null==e?void 0:e.data}))}),t)}function Mg(e,t){var n=e.code,o=e.name,a=e.accountCode;return void 0===t&&(t=null),Sf((function(){return fh.getInstance().putSmartRoutingUpdateWorkflowName(a,{code:n,name:o}).then((function(e){return null==e?void 0:e.data}))}),t)}function Fg(e,t){var n=e.accountCode,o=e.workflowVersionCode;return void 0===t&&(t=null),Sf((function(e){return fh.getInstance().simulateSmartRoutingTransaction(n,o,e).then((function(e){return null==e?void 0:e.data}))}),t)}function Ug(e,t){return void 0===t&&(t=null),Sf((function(t){return fh.getInstance().updateMonitorRedistribution(e,t).then((function(e){return null==e?void 0:e.data}))}),t)}function Bg(e,t){return void 0===t&&(t={}),Sf((function(t){var n=t.declinedGroupCode;return fh.getInstance().removeDeclinedGroup(e,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),a(a({},t),{useErrorBoundary:!1}))}function Wg(e,t){return void 0===t&&(t={}),Sf((function(t){var n=t.payload;return fh.getInstance().multiAccountDeclinedGroupCreate(e,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),a(a({},t),{useErrorBoundary:!1}))}var Hg=function(e){return Sf((function(t){return fh.getInstance().createMonitorThreshold(t,e).then((function(e){return e.data}))}))},Vg=function(e){return Sf((function(t){return fh.getInstance().createMonitorTemplate(t,e).then((function(e){return e.data}))}))};function Gg(e){return Sf((function(){return fh.getInstance().createNotificacion(e).then((function(e){return null==e?void 0:e.data}))}))}function $g(){return Sf((function(){return fh.getInstance().getNotification().then((function(e){return null==e?void 0:e.data}))}))}function Kg(){return Sf((function(e){var t=e.payload;return fh.getInstance().postSlackMessageChannel(t).then((function(e){return null==e?void 0:e.data}))}))}function Qg(){var e=this;return Sf((function(o){var a=o.roles,i=o.userCode;return t(e,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().setRoles({roles:a,userCode:i})];case 1:return[2,null==(e=t.sent())?void 0:e.data]}}))}))}))}function Jg(){var e=this;return Sf((function(o){var a=o.userCode;return t(e,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().deleteUserTeam({userCode:a})];case 1:return[2,null==(e=t.sent())?void 0:e.data]}}))}))}))}function Yg(){return Sf((function(e){var t=e.userCode,n=e.organizationCode;return fh.getInstance().deleteUserTeamV2({userCode:t,organizationCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Xg(){return Sf((function(){return fh.getInstance().setCustodian().then((function(e){return null==e?void 0:e.data}))}))}function Zg(){return Sf((function(e){var t=e.payload,n=e.accountCode;return fh.getInstance().createRoles(t,n).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function ey(){var e=this;return Sf((function(o){var a=o.payload,i=o.id,r=o.accountCode;return t(e,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().editRoles({payload:a,id:i},r)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}}))}))}),{useErrorBoundary:!1})}function ty(){return Sf((function(e){return fh.getInstance().deleteRoles(e).then((function(e){return null==e?void 0:e.data}))}))}function ny(){return Sf(["post-payment-links"],(function(e){var t=e.payload,n=e.accountCode;return fh.getInstance().postPaymentLinks({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function oy(){return Sf(["post-products-account"],(function(e){var t=e.payload;return fh.getInstance().postCreateProducts({payload:t}).then((function(e){return null==e?void 0:e.data}))}))}function ay(){return Sf(["post-delete-payment-link"],(function(e){var t=e.code;return fh.getInstance().postDeletePaymentLink({code:t}).then((function(e){return null==e?void 0:e.data}))}))}function iy(){return Sf(["patch-payment-links"],(function(e){var t=e.payload,n=e.accountCode,o=e.paymentLinkCode;return fh.getInstance().patchPaymentLinks({payload:t,accountCode:n,paymentLinkCode:o}).then((function(e){return null==e?void 0:e.data}))}))}function ry(e){return Sf((function(){return fh.getInstance().postValidatePassword(e).then((function(e){return null==e?void 0:e.data}))}))}function sy(){return Sf((function(e){var t=e.payload;return fh.getInstance().postUserSettings(t)}),{onMutate:function(e){return e}})}function cy(){return Sf((function(e){return fh.getInstance().postUserThemeSettings(e)}))}function uy(){return Sf((function(e){var t=e.payload,n=e.section;return fh.getInstance().postUserSettingsTables(t,n)}),{onMutate:function(e){return e},onSuccess:function(e){var t=kg.getQueryData(["fetch-profile"]);e.data&&kg.setQueryData(["fetch-profile"],a(a({},t),{settings:e.data}))}})}function ly(e){return Sf(["pinned-sections"],(function(e){var t=e.payload;return fh.getInstance().postUserSettingsPinned(t)}),{onMutate:function(t){var n=t.payload;return e({payload:n})}})}function py(){return Sf((function(e){var t=e.password,n=e.otp;return fh.getInstance().getMfaTokenValidation(t,n).then((function(e){return null==e?void 0:e.data}))}))}function dy(e){return Sf((function(){return fh.getInstance().getMfaToken(e).then((function(e){return null==e?void 0:e.data}))}))}function my(){return Sf((function(){return fh.getInstance().getEmailOtp().then((function(e){return null==e?void 0:e.data}))}))}function hy(e){return Sf((function(){return fh.getInstance().validateOtp(e).then((function(e){return null==e?void 0:e.data}))}))}function fy(){return Sf((function(e){return fh.getInstance().confirmMfaOtp(e).then((function(e){return null==e?void 0:e.data}))}))}function gy(e){return Sf((function(){return fh.getInstance().confirmMfaOtp(e).then((function(e){return null==e?void 0:e.data}))}))}function yy(e){return Sf((function(){return fh.getInstance().unrollMfa(e).then((function(e){return null==e?void 0:e.data}))}))}function vy(){return Sf((function(e){return fh.getInstance().unrollMfa(e).then((function(e){return null==e?void 0:e.data}))}))}function by(){return Sf((function(){return fh.getInstance().sendOTPForMFA().then((function(e){return null==e?void 0:e.data}))}))}function ky(){return Sf((function(){return fh.getInstance().getMFAStatus().then((function(e){return null==e?void 0:e.data}))}))}function xy(){return Sf((function(){return fh.getInstance().validatePasswordStatus().then((function(e){return null==e?void 0:e.data})).catch((function(e){return{valid:!1}}))}))}function wy(){return Sf(["post-get-allowlist-items"],(function(e){var t=e.payload;return fh.getInstance().postAllowlistItems({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function jy(){return Sf(["post-get-allowlist-multi-account"],(function(e){var t=e.payload;return fh.getInstance().postGetAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Cy(){return Sf(["post-create-allowlist-multi-account"],(function(e){var t=e.payload;return fh.getInstance().postCreateAllowlistMultiAccount({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Ey(){return Sf(["patch-change-status-allowlist"],(function(e){var t=e.payload;return fh.getInstance().patchChangeStatusAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Sy(){return Sf(["patch-change-status-allowlist-item"],(function(e){var t=e.payload;return fh.getInstance().patchChangeStatusAllowlistItem({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function _y(){return Sf(["post-add-allowlist-items"],(function(e){var t=e.payload;return fh.getInstance().patchAddAllowlistItems({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Ry(){return Sf(["patch-allowlist"],(function(e){var t=e.payload;return fh.getInstance().patchAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Ty(){return Sf(["post-blacklist-multi-account"],(function(e){var t=e.payload;return fh.getInstance().postBlackListMultiAccount({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Iy(){return Sf(["post-blacklist"],(function(e){var t=e.payload;return fh.getInstance().postBlackListType({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Oy(){return Sf(["put-blacklist"],(function(e){return fh.getInstance().putBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Ay(){return Sf(["change-blacklist"],(function(e){return fh.getInstance().changeBlackListStatus(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function zy(){return Sf(["change-blacklist-item"],(function(e){return fh.getInstance().changeBlackListStatusItem(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Py(){return Sf(["post-blacklist-items"],(function(e){var t=e.payload;return fh.getInstance().postBlackListItems({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Ly(){return Sf(["delete-blacklist"],(function(e){var t=e.black_list_code;return fh.getInstance().deleteBlackListType({black_list_code:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Dy(){return Sf(["delete-blacklist-item"],(function(e){var t=e.black_list_code,n=e.account_code,o=e.item;return fh.getInstance().deleteBlackListItem({black_list_code:t,account_code:n,item:o}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function qy(e){var t=e.handleSetProgress;return Sf(["post-blacklist-batch"],(function(e){var n=e.blacklist_code,o=e.expiration_days,a=e.file;return fh.getInstance().postBlackListBatch({blacklist_code:n,expiration_days:o,file:a,handleSetProgress:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Ny(){return Sf(["change-payments-webhook"],(function(e){var t=e.status,n=e.paymentCode;return fh.getInstance().postChangePaymentsWebhook({status:t,paymentCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function My(){return Sf(["delete-blacklist-items"],(function(e){var t=e.blocklist_code,n=e.blocklist_item_id,o=e.account_code;return fh.getInstance().deleteBlockListItem({blocklist_code:t,blocklist_item_id:n,account_code:o}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Fy(){return Sf(["valiate-blacklist-items"],(function(e){return fh.getInstance().valiateBlockListItems({payload:e}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Uy(){return Sf(["delete-allowlist-item"],(function(e){return fh.getInstance().deleteAllowlistItem({payload:e}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function By(){return Sf(["validate-allowlist-items"],(function(e){return fh.getInstance().validateAllowlistItems({payload:e}).then((function(e){return e.data})).catch((function(e){return e}))}))}function Wy(e){var t=e.fileName,n=e.onSuccess,o=e.onError,a=w(0),i=a[0],r=a[1],s=j({cancel:function(){return null}}),c=Sf(["upload-file-chargeback",t],(function(e){var t=fh.getInstance().uploadFileS3ClientBatchRefunds({payload:e,handleSetProgress:r}),a=t.promise,i=t.cancel;return s.current.cancel=i,a.then((function(e){return null==n||n(null==e?void 0:e.data),null==e?void 0:e.data})).catch((function(e){throw null==o||o(),e}))}),{useErrorBoundary:!1});return{mutation:c,cancelRequest:s.current.cancel,progress:i}}function Hy(e){var t=e.handleSetProgress;return Sf((function(e){return fh.getInstance().uploadBatchRefunds({payload:e,handleSetProgress:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Vy(){return Sf((function(e){return fh.getInstance().uploadBatchRefundsV2({payload:e}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Gy(){var e=this;return Sf((function(o){return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,fh.getInstance().batchRefundByFile({payload:o}).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function $y(){var e=this;return Sf((function(o){var a=o.batchRefundId,i=o.organizationCode,r=o.accountCode;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,fh.getInstance().getBatchRefundProcessedFileDownload(a,i,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function Ky(){var e=this;return Sf((function(o){var a=o.batchRefundId,i=o.organizationCode,r=o.accountCode;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,fh.getInstance().getBatchRefundUserFileDownload(a,i,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function Qy(){var e=j({cancel:function(){return null}}),t=Sf(["upload-file"],(function(t){var n=fh.getInstance().uploadFileS3ClientBatchRefunds({payload:t}),o=n.promise,a=n.cancel;return e.current.cancel=a,o.then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}));return{mutation:t,cancelRequest:e.current.cancel}}function Jy(){return Sf((function(e){var t=e.payload,n=e.organizationCode;return fh.getInstance().updateMFAConfig(t,n)}))}function Yy(){return Sf((function(e){var t=e.payload,n=e.organizationCode;return fh.getInstance().mfaExcludeUsers(t,n)}))}function Xy(e){return Ef(["GET/scheduled-reports",e],(function(){return fh.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 Zy(){return Sf((function(e){var t=e.payload;return fh.getInstance().postScheduledReport(t).then((function(e){return{data:e.data,status:e.status}})).catch((function(e){return e}))}))}function ev(){return Sf((function(e){var t=e.reportCode,n=e.payload;return fh.getInstance().updateScheduledReport(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function tv(){return Sf((function(e){return fh.getInstance().deleteScheduledReport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function nv(){return Sf((function(e){return fh.getInstance().getConditionalConfigRules(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function ov(){return Sf((function(e){return fh.getInstance().getRule(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function av(){return Sf((function(e){var t=e.payload,n=e.accountCode;return fh.getInstance().postCreateRuleMultiAccount(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function iv(){return Sf((function(e){var t=e.payload,n=e.accountCode;return fh.getInstance().postCreateRule(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function rv(){return Sf((function(e){var t=e.payload,n=e.ruleId,o=e.accountCode;return fh.getInstance().postEditRule(t,n,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function sv(){return Sf((function(e){var t=e.payload;return fh.getInstance().postCreateCustomizedApiKeys(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function cv(){return Sf((function(e){var t=e.payload,n=e.code;return fh.getInstance().pathCreateCustomizedApiKeys(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function uv(){return Sf((function(e){var t=e.code,n=e.password;return fh.getInstance().getCustomizedApiKeysToken(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}))}function lv(){return Sf((function(e){var t=e.passwordOtp;return fh.getInstance().getDeveloperCredentialsValidatePassword(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}))}function pv(){return Sf((function(e){var t=e.code;return fh.getInstance().getCustomizedApiKeysShowToken(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function dv(){return Sf((function(e){var t=e.code;return fh.getInstance().deleteCustomizedApiKeys(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function mv(){return Sf((function(e){var t=e.payload,n=e.code;return fh.getInstance().patchApiKeysEditNote(t,n).then((function(e){return e.data})).catch((function(e){return e}))}))}function hv(){return Sf((function(e){var t=e.payload,n=e.code,o=e.password;return fh.getInstance().postApiKeysRoll(t,n,o).then((function(e){return e.data})).catch((function(e){return e}))}))}function fv(){return Sf((function(e){var t=e.password,n=e.accountCode;return fh.getInstance().getDeveloperCredentials(t,n).then((function(e){return a(a({},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}}))}))}function gv(e){return Sf((function(e){var t=e.payload;return fh.getInstance().postAuditMonitors(t)}),{onMutate:e.onMutate})}function yv(o){var a=this;return Sf((function(){return fh.getInstance().createReconciliationReportTemplate(o).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{onMutate:function(o){return t(a,void 0,void 0,(function(){var t,a;return n(this,(function(n){switch(n.label){case 0:return[4,kg.cancelQueries({queryKey:["GET/reconciliation/reports/templates"]})];case 1:return n.sent(),t=null===(a=kg.getQueryData(["GET/reconciliation/reports/templates"]))||void 0===a?void 0:a.templates,kg.setQueryData(["GET/reconciliation/reports/templates"],(function(t){return{templates:e(e([],t.templates,!0),[o],!1)}})),[2,{previousTemplates:t}]}}))}))},onError:function(e,t,n){kg.setQueryData(["GET/reconciliation/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){kg.invalidateQueries({queryKey:["GET/reconciliation/reports/templates"]})},useErrorBoundary:!1})}function vv(e){return Sf((function(){return fh.getInstance().updateReconciliationReportTemplate(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function bv(){return Sf(["POST/reconciliation/alerts"],(function(e){return fh.getInstance().postReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){kg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function kv(){return Sf(["DELETE/reconciliation/alerts"],(function(e){return fh.getInstance().deleteReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){kg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function xv(){return Sf(["UPDATE/reconciliation/alerts"],(function(e){return fh.getInstance().updateReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){kg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function wv(){return Sf((function(e){var t=e.payload;return fh.getInstance().postCreateInsightsReport(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function jv(){return Sf((function(e){return fh.getInstance().createSamlConfig(e)}))}function Cv(){return Sf((function(e){return fh.getInstance().updateSamlConfig(e)}))}function Ev(){return Sf((function(){return fh.getInstance().deleteSamlConfig()}))}function Sv(e,t){return void 0===t&&(t={}),Sf((function(t){return fh.getInstance().generateAIWorkflowRoutes(e,t).then((function(e){return null==e?void 0:e.data}))}),a(a({},t),{useErrorBoundary:!1}))}function _v(){return Sf((function(e){return fh.getInstance().createChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Rv(){return Sf((function(e){return fh.getInstance().deleteChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Tv(){return Sf((function(e){var t=e.chartgpt_id,n=e.type,o=e.name;return fh.getInstance().patchChartGPTChart(t,{type:n,name:o}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}var Iv=function(){var e,t;return null===(t=null===(e=function(e){var t=localStorage.getItem(e),n=w(t&&JSON.parse(t)),o=n[0],a=n[1];return C((function(){var t=function(t){if(t.key===e){var n=t.newValue;a(n)}};return window.addEventListener("storage",t),function(){window.removeEventListener("storage",t)}}),[e]),o}("account"))||void 0===e?void 0:e.value)||void 0===t?void 0:t.organization_code};function Ov(e){var o=this;return Ef(["fetch-payments-lazy",e],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,fh.getInstance().postPaymentsLazy(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{enabled:!!e&&Object.keys(e).length>0,cacheTime:0})}function Av(e){return Ef(["fetch-payments-evaluated",e],(function(){return fh.getInstance().postPaymentsEvaluated(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&Object.keys(e).length>0,cacheTime:0})}function zv(e){var t=e.enabled,n=void 0===t||t,o=i(e,["enabled"]);return Ef(["fetch-payments-".concat(o.payment_code),o],(function(){return fh.getInstance().getPayment(o).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:500})}function Pv(e){var o=this,a=e.paymentCode,i=e.enabled,r=void 0===i||i,s=fh.getInstance();return Ef(["get-payment-v2",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,s.getPaymentV2(a).then((function(e){return e.data})).catch((function(e){throw e}))]}))}))}),{enabled:r,cacheTime:500})}function Lv(e,t){return Ef(["payments/".concat(e,"/transactions"),t],(function(){return fh.getInstance().getPaymentTransactions(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,cacheTime:500})}function Dv(e){return Ef(["payments/".concat(e,"/transactions/lazy")],(function(){return fh.getInstance().getPaymentTransactionsLazy(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e.response.data}))}),{enabled:!!e,cacheTime:500})}function qv(e){var t=e.payment_code,n=e.transaction_code,o=e.enabled,a=void 0===o||o;return Ef(["payments/".concat(t,"/transactions/").concat(n)],(function(){return fh.getInstance().getTransactionDetails({payment_code:t,transaction_code:n}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:500,enabled:a})}function Nv(e){var o=this,a=e.payment_code,i=e.enabled,r=void 0===i||i,s=fh.getInstance();return Ef(["get-payment-transaction-details-v2",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,s.getTransactionDetailsV2({payment_code:a}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))]}))}))}),{enabled:!!a&&r,cacheTime:0})}function Mv(e){var o=this,a=e.transaction_code,i=e.enabled,r=void 0===i||i,s=fh.getInstance();return Ef(["get-payment-transaction-raw-response",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,s.getTransactionRawResponse({transaction_code:a})]}))}))}),{enabled:!!a&&r,cacheTime:0})}function Fv(e){var t=Iv();return Ef(["payment-methods",e],(function(){return fh.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})).catch((function(e){throw e}))}),{enabled:!!e&&!!(null==e?void 0:e.provider_id),useErrorBoundary:!1})}function Uv(e){var t=e.provider;return Ef(["/payment-methods/provider/".concat(t)],(function(){return fh.getInstance().getPaymentMethodsByProvider({provider:t}).then((function(e){return null==e?void 0:e.data}))}))}function Bv(){return Ef(["/payment-methods/providers"],(function(){return fh.getInstance().getPaymentMethodsAndProviders().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Wv(){return Ef(["/payments/payment-methods/providers/active"],(function(){return fh.getInstance().getPaymentMethodsAndProvidersActive().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Hv(){return Ef(["/payments/transaction/statuses"],(function(){return fh.getInstance().useGetPaymentAndTrxStatuses().then((function(e){return null==e?void 0:e.data}))}))}function Vv(){return Ef(["GET/catalog/card-brands"],(function(){return fh.getInstance().getCardBrands().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Gv(e){return void 0===e&&(e=!0),Ef(["payment-filters",e],(function(){return fh.getInstance().getPaymentFilters().then((function(e){return null==e?void 0:e.data}))}),{enabled:e,useErrorBoundary:!1})}function $v(){return Ef(["payment-metrics-filters"],(function(){return fh.getInstance().getPaymentMetricsFilters().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Kv(e){var t=e.transaction_code;return Ef(["payment-filters",t],(function(){return fh.getInstance().getTransactionHistory({transaction_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t})}function Qv(e){var t=e.transaction_code,n=e.enabled;return Ef(["payment-transaction-details",t],(function(){return fh.getInstance().getPaymentTransactionsDetails({transaction_code:t}).then((function(e){return null==e?void 0:e.data})).catch((function(){return{error:!0}}))}),{enabled:!!t&&(void 0===n||n)})}function Jv(e){var t=e.payment_code,n=e.enabled;return Ef(["transaction-history",t],(function(){return fh.getInstance().getTransactionHistoryByPaymentCode({payment_code: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 Yv(e){return Ef(["GET/transactions",JSON.stringify(e)],(function(){return fh.getInstance().getTransactions(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function Xv(e){var o=this;return Ef(["POST/transactions",JSON.stringify(e)],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,fh.getInstance().postTransactions(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{enabled:!!e,cacheTime:0})}function Zv(e){var o=this;return Ef(["POST/fraud-transactions",JSON.stringify(e)],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,fh.getInstance().postFraudTransactions(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{enabled:!!e&&Object.keys(e).length>0,cacheTime:0})}function eb(e){return Ef(["GET/payout-detail",JSON.stringify(e)],(function(){var t=fh.getInstance();return e.organization_code?t.getPayoutDetails(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e})):{}}),{enabled:!!e.organization_code&&!!e&&e.enabled,cacheTime:0})}function tb(e){return Ef(["GET/payout-transaction-detail",JSON.stringify(e)],(function(){return fh.getInstance().getPayoutTransactionDetails(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&!!(null==e?void 0:e.transaction_code)&&(null==e?void 0:e.enabled),cacheTime:0})}function nb(e){var t=Iv();return Ef(["GET/payout-history-detail",JSON.stringify(e)],(function(){return fh.getInstance().getPayoutHistoryDetails(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!(null==e?void 0:e.payout_code)&&e.enabled,cacheTime:0})}function ob(e){var o=this,a=Iv();return Ef(["GET/useGetProofOfCancel",a,e],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,fh.getInstance().getProofOfCancel(e,a).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))]}))}))}),{enabled:!!e&&!!a,cacheTime:0,useErrorBoundary:!1})}function ab(e,o,a){var i=this,r=fh.getInstance();return Ef(["send-payment-notification",e,o],(function(){return t(i,void 0,void 0,(function(){var t,i;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,r.sendPaymentNotification(e,o)];case 1:return t=n.sent(),a.onSuccess(),[2,t.data];case 2:throw i=n.sent(),a.onError(),i;case 3:return[2]}}))}))}),{enabled:a.enabled,cacheTime:0,useErrorBoundary:!1})}function ib(e){return Ef(["usePayoutsList",e&&JSON.stringify(e)],(function(){var t=fh.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 rb(e){var o=this;void 0===e&&(e=!0);var a=Iv();return Ef(["getPayoutsFilters",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,fh.getInstance().getPayoutsFilters(a).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{enabled:e&&!!a})}function sb(e){var t=e.password,n=e.accountCode;return Ef(["developers"],(function(){return fh.getInstance().getDeveloperCredentials(t,n).then((function(e){return a(a({},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 cb(e){var t=e.password;return Ef(["developers"],(function(){return fh.getInstance().getDeveloperCredentialsValidatePassword(t).then((function(e){return a(a({},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 ub(){return Ef(["fetch-customized-api-keys-members"],(function(){return fh.getInstance().getCustomizedApiKeysMembers().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function lb(){return Ef(["developers-get-allowed-ips"],(function(){return fh.getInstance().getAllowedIps().then((function(e){return(null==e?void 0:e.data)?a(a({},null==e?void 0:e.data),{isError:!1}):null})).catch((function(e){return a(a({},e),{isError:!0})}))}),{enabled:!1,cacheTime:0})}function pb(){return Ef(["fetch-customized-api-keys-accounts"],(function(){return fh.getInstance().getCustomizedApiKeysAccounts().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function db(e){return Ef(["fetch-customized-api-keys",e],(function(){return fh.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 mb(){return Ef(["fetch-customized-api-keys-products"],(function(){return fh.getInstance().getCustomizedApiKeysProducts().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{cacheTime:0})}function hb(){return Sf(["developers-patch-allowed-ips"],(function(e){return fh.getInstance().patchAllowedIps(e).then((function(e){return(null==e?void 0:e.data)?a(a({},null==e?void 0:e.data),{isError:!1}):null})).catch((function(e){return a(a({},e),{isError:!0})}))}),{cacheTime:0})}function fb(){return Ef(["fetch-organizations"],(function(){return fh.getInstance().getOrganization().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function gb(){return Ef(["fetch-all-organizations"],(function(){return fh.getInstance().getAllOrganization().then((function(e){return(null==e?void 0:e.data)||[]}))}),{keepPreviousData:!0,useErrorBoundary:!1})}function yb(e){var t=Iv();return Ef(["organizations-provider-params",e],(function(e){var n=e.queryKey;return fh.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 vb(e){var t=e.integration_code,n=e.enabled;return Ef(["integration-params",t],(function(){return t.includes("undefined")?{}:fh.getInstance().getIntegrationParams({integration_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,useErrorBoundary:!1})}function bb(e){var t=e.accountCode,n=e.organizationCode;return Ef(["organizations-account-integrations"],(function(){return fh.getInstance().getIntegrationByAccount({accountCode:t,organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!t})}function kb(e){var t=e.accountCode,n=e.organizationCode,o=Iv(),a=Ef(["organizations-account-integrations",t,n],(function(){return fh.getInstance().getIntegrationByAccountV2({accountCode:t,organizationCode:n||o}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,enabled:!!t,useErrorBoundary:!1});return a}function xb(e){var t=e.accountCode,n=e.paymentMethod;return Ef(["fetch-connections-by-payment-method",n,t],(function(){return fh.getInstance().getConnectionsByPaymentMethod(t,n).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!n&&!!t,cacheTime:0,useErrorBoundary:!1})}function wb(){var e=this;return Ef(["fetch-hash-pylon"],(function(){return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,fh.getInstance().getHashPylon()]}))}))}),{keepPreviousData:!0,useErrorBoundary:!1})}function jb(){return Ef(["connections"],(function(){return fh.getInstance().getConnections().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Cb(){return Ef(["dialogs"],(function(){return fh.getInstance().getDialogs().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1,retryDelay:2e3})}function Eb(){return Ef(["params-catalog"],(function(){return fh.getInstance().getWebhookParams().then((function(e){return null==e?void 0:e.data}))}))}function Sb(){return Ef(["params-catalog"],(function(){return fh.getInstance().getWebhookParamsV2().then((function(e){return null==e?void 0:e.data}))}))}function _b(e){var t=e.accountCode;return Ef(["webhooks"],(function(){return fh.getInstance().getWebhooks({accountCode:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t})}function Rb(e){var t=e.accountCode;return Ef(["webhooks"],(function(){return fh.getInstance().getWebhooksV2({accountCode:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t})}function Tb(e){var t=e.accountCode,n=e.name;return Ef(["webhooks",t,n],(function(){return fh.getInstance().getWebhooksV3({accountCode:t,name:n}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,useErrorBoundary:!1})}function Ib(e){var t=e.accountCode,n=e.enabled;return Ef(["webhooks-detail",t],(function(){return fh.getInstance().getWebhooksV2Detail({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!n})}function Ob(e){var t,n=Iv(),o=null!==(t=null!=e?e:n)&&void 0!==t?t:null;return Ef({queryKey:["accounts",o],queryFn:function(){return fh.getInstance().getAccounts(o).then((function(e){return null==e?void 0:e.data}))},keepPreviousData:!0,cacheTime:3e3,enabled:!!o})}function Ab(e){return Ef(["accountsV2",e],(function(){return fh.getInstance().getAccountsV2().then((function(e){return(null==e?void 0:e.data)||[]})).catch((function(e){throw e}))}),{keepPreviousData:!0,enabled:!!e,useErrorBoundary:!1})}function zb(e){return Ef(["accountsV2-by-user",e],(function(){return e?fh.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 Pb(){return Ef(["menu"],(function(){return fh.getInstance().getMenu().then((function(e){return Xm(e)?ih:null==e?void 0:e.data})).catch((function(){return ih}))}))}function Lb(){return Ef(["/payment/statuses/style"],(function(){return fh.getInstance().useGetPaymentStatusesStyles().then((function(e){return Xm(e)?Zm:null==e?void 0:e.data})).catch((function(){return Zm}))}))}function Db(){return Ef(["/transaction/statuses/style"],(function(){return fh.getInstance().useGetTransactionStatusesStyles().then((function(e){return Xm(e)?eh:null==e?void 0:e.data})).catch((function(){return eh}))}))}function qb(){return Ef(["/reconciliation/transaction/statuses/style"],(function(){return fh.getInstance().useGetReconciliationTransactionStatusesStyles().then((function(e){return Xm(e)?th:null==e?void 0:e.data})).catch((function(){return th}))}))}function Nb(){return Ef(["timezone-catalog"],(function(){return fh.getInstance().useGetTimeZoneCatalog().then((function(e){return Xm(e)?nh:null==e?void 0:e.data})).catch((function(){return nh}))}))}function Mb(){return Ef(["/cms/audit-logs-filters"],(function(){return fh.getInstance().useGetAuditLogsFilters().then((function(e){return Xm(e)?oh:null==e?void 0:e.data})).catch((function(){return oh}))}))}function Fb(){return Ef(["/cms/static-contents"],(function(){return fh.getInstance().getDashboardStaticContents().then((function(e){var t,n;return Xm(e)?ah:(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t[0])||void 0===n?void 0:n.data)||{}})).catch((function(){return ah}))}))}function Ub(){return Ef(["/cms/locales"],(function(){return fh.getInstance().getLocales().then((function(e){return Xm(e)?rh:e.data})).catch((function(){return rh}))}))}var Bb=function(){var e=w("ON"===localStorage.getItem("isTesting")),t=e[0],n=e[1];return C((function(){window.addEventListener("storage",(function(e){"isTesting"===e.key&&n("ON"===e.newValue)}))}),[]),{isTesting:t}};function Wb(e){return Ef(["smart-routing-methods",e],(function(){return fh.getInstance().getSmartRoutingMethods(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function Hb(e,t){return Ef(["smart-routing-workflow",t,e],(function(){return fh.getInstance().getSmartRoutingWorkflow(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!e,cacheTime:0,retry:!1})}function Vb(e,t){return Ef(["smart-routing-condition-types",e,t],(function(){return fh.getInstance().getSmartRoutingConditionTypes(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!e})}function Gb(e,t){return Ef(["smart-routing-condition-payment-method",e,t],(function(){return fh.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 $b(e,t){return Ef(["smart-routing-condition-types-values",t,e],(function(){return fh.getInstance().getSmartRoutingConditionTypesValues(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!e})}function Kb(e){var t=e.accountCode,n=e.workflowVersionId;return Ef(["smart-routing-workflow-version",n,t],(function(){return fh.getInstance().getSmartRoutingWorkflowVersion(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!n&&!!t,cacheTime:0})}function Qb(e,t,n){return Ef(["smart-routing-next-route",e,n,t],(function(){return fh.getInstance().getSmartRoutingNextSteps(e,t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function Jb(e){return Ef(["smart-routing-decline-groups",e],(function(){return fh.getInstance().getSmartRoutingDeclinedGroup(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function Yb(e){return Ef(["smart-routing-tutorial",e],(function(){return fh.getInstance().getSmartRoutingTutorial(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function Xb(e,t){return Ef(["smart-routing-payment-route",e,t],(function(){return fh.getInstance().getSmartRoutingPaymentRoute(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&!!t,cacheTime:0})}function Zb(e){return Ef(["smart-routing-simulate-condition-type-values",e],(function(){return fh.getInstance().getSmartRoutingSimulateConditionTypeValues(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function ek(e){var t=e.text,n=e.conditionType;return Ef(["smart-routing-search-condition-values",t,n],(function(){return fh.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 tk(){return Ef(["smart-routing-conversion-rates"],(function(){return fh.getInstance().getProviderConversionRatesData().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!1,useErrorBoundary:!1})}function nk(){var e=this;return Ef({queryKey:["smart-routing-3ds-excemptions"],queryFn:function(){return t(e,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,fh.getInstance().get3DSExemptions()];case 1:return[2,e.sent().data]}}))}))},useErrorBoundary:!1})}function ok(e){return Ef(["fetch-routing-monitors-templates",e],(function(){return fh.getInstance().getRoutingMonitorsTemplates(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function ak(e,t){return Ef(["fetch-routing-monitors-template",e],(function(){return fh.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 ik(e){var t=e.accountCode;return Ef(["checkouts",t],(function(){return fh.getInstance().getCheckouts({accountCode:t}).then((function(e){return e.data}))}),{cacheTime:0,enabled:Boolean(t)})}function rk(e){var t=e.accountCode;return Ef(["checkouts-template"],(function(){return fh.getInstance().getCheckoutTemplate({accountCode:t}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,enabled:Boolean(t)})}var sk=function(e){return["checkout-builder-name-and-icon",e.paymentMethodType,e.type]},ck=function(e,t){var n=e.paymentMethodType,o=e.type;return Ef(sk({paymentMethodType:n,type:o}),(function(){return fh.getInstance().getNameAndIcon({paymentMethodType:n,type:o}).then((function(e){return null==e?void 0:e.data}))}),t)},uk=function(e){return["checkout-builder-required-fields",e.paymentMethodType,e.type]},lk=function(e,t){var n=e.paymentMethodType,o=e.type;return Ef(uk({paymentMethodType:n,type:o}),(function(){return fh.getInstance().getRequiredFields({paymentMethodType:n,type:o}).then((function(e){return null==e?void 0:e.data}))}),t)};function pk(e){var t=e.accountCode;return Ef(["styling-theme",t],(function(){return fh.getInstance().getStylingTheme({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 dk(e){var t=e.accountCode;return Ef(["styling-settings",t],(function(){return fh.getInstance().getStylingSettings({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 mk(){return Ef(["fetch-profile"],(function(){return fh.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 hk(e,t){return Ef(["fetch-permissions",e,t],(function(){var e,t,n,o=localStorage.getItem("account"),a=localStorage.getItem("user"),i=o&&JSON.parse(o),r=a&&JSON.parse(a);return((null==r?void 0:r.merlin)?null===(e=null==r?void 0:r.merlin)||void 0===e?void 0:e.permissions:null===(n=null===(t=null==i?void 0:i.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 fk(e){return Ef(["email-verification",e],(function(){return fh.getInstance().emailVerification(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function gk(e){return Ef(["login-sso",e],(function(){return fh.getInstance().getLoginSSO(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function yk(){return Ef({queryKey:["get-login-methods"],queryFn:function(){return fh.getInstance().getLoginMethods().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}})}function vk(e){return Ef(["notifications-customer",e],(function(){return fh.getInstance().getNotificationsCustomer(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,keepPreviousData:!1})}function bk(e){return Ef(["validate-opsgenie-key",e],(function(){return fh.getInstance().getValidateOpsgenieKey(e).then((function(e){return null==e?void 0:e.data})).catch((function(){return{error:!0}}))}),{enabled:!!e,cacheTime:0})}function kk(){return Ef(["notifications-merged"],(function(){return fh.getInstance().getMergedNotifications().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{keepPreviousData:!1,cacheTime:0})}function xk(e){return Ef(["notifications-account",e],(function(){return fh.getInstance().getNotificationsCustomer(e).then((function(e){return null==e?void 0:e.data}))}))}function wk(e){return Ef(["notifications-number",e],(function(){return fh.getInstance().getNotificationsNumber(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function jk(){return Sf((function(e){return fh.getInstance().getNotificationsNumber(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Ck(){var e=this;return Sf((function(o){return t(e,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().pathNotification(o)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}}))}))}))}var Ek={key:"metadata_fields",name:"metadata_fields"};function Sk(){return Ef(["reports"],(function(){return fh.getInstance().reportsList().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function _k(e){return void 0===e&&(e=!0),Ef(["reports-multi-env"],(function(){return fh.getInstance().reportsListMultiEnv().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e})}function Rk(e,t,n){return void 0===t&&(t=!1),Ef(["reports/".concat(e)],(function(){return fh.getInstance().downloadReports(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:t,onSuccess:n,useErrorBoundary:!1})}function Tk(e){return Ef(["GET/reports/templates"],(function(){return fh.getInstance().getReportTemplates().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e,useErrorBoundary:!1})}function Ik(t,n,o){return Ef(["GET/reports/columns/".concat(n,"/").concat(o)],(function(){return fh.getInstance().getReportColumns(n,o).then((function(t){return"ALL"===n&&"PAYMENTS"===o?e(e([],null==t?void 0:t.data,!0),[Ek],!1):null==t?void 0:t.data})).catch((function(e){return e}))}),{enabled:t,useErrorBoundary:!1})}function Ok(e){var o=this,a=Iv();return Ef(["getRefundPdf",e,a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,fh.getInstance().getRefundPdf(e,a).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))]}))}))}),{enabled:!!e&&!!a,useErrorBoundary:!1})}function Ak(e){return Ef(["fetch-members"],(function(){return fh.getInstance().getMembers(e).then((function(e){return null==e?void 0:e.data}))}),{keepPreviousData:!0})}function zk(e){var t=e.organizationCode,n=Iv();return Ef(["fetch-members-v3",t],(function(){return t?fh.getInstance().getMembersV3({organizationCode:n}).then((function(e){return null==e?void 0:e.data})):null}),{enabled:!!t,cacheTime:0})}function Pk(){var e=Iv();return Ef(["teams-filters-members"],(function(){return fh.getInstance().teamsFiltersMembers({organizationCode:e}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0})}function Lk(e){var t=e.organizationCode,n=e.accountCodes,o=Iv();return Ef(["fetch-members-v4",t,n],(function(){return n?t?fh.getInstance().getMembersV4({organizationCode:o,accountCodes:n}).then((function(e){return null==e?void 0:e.data})):null:{}}),{enabled:!!t&&!!n,cacheTime:0})}function Dk(e){var t=e.organizationCode,n=e.accountCodes,o=Iv();return Ef(["fetch-post-members-v4",t,n],(function(){return fh.getInstance().postMembersV4({organizationCode:o,accountCodes:n}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&!!n,cacheTime:0})}function qk(e){var t=e.organizationCode,n=e.accountCodes,o=e.page,a=e.pageSize,i=Iv();return Ef(["fetch-post-members-v4",t,n,o,a],(function(){return fh.getInstance().postMembersPaginated({organizationCode:i,accountCodes:n,page:o,pageSize:a}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&!!n,cacheTime:0,useErrorBoundary:!1})}function Nk(e){var t=e.organizationCode,n=e.accountCodes,o=e.email,a=e.page,i=e.pageSize,r=Iv();return Ef(["fetch-post-members-v2",t,n,o,a,i],(function(){return fh.getInstance().postMembersPaginatedV2({organizationCode:r,accountCodes:n,email:o,page:a,pageSize:i}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&!!n,cacheTime:0,useErrorBoundary:!1})}function Mk(){return Ef(["fetch-roles"],(function(){return fh.getInstance().getRoles().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Fk(){return Ef(["fetch-rolespermissions"],(function(){return fh.getInstance().getRolesPermissions().then((function(e){return null==e?void 0:e.data}))}))}function Uk(){return Ef(["fetch-permissions-catalog"],(function(){return fh.getInstance().getPermissionsCatalog().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Bk(e){return Ef(["data-report",e],(function(){return fh.getInstance().getSmartRoutingDataReport(e).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,useErrorBoundary:!1})}function Wk(e,t,n){return Ef(["data-insights",e],(function(){return("LOCAL"===process.env.ENVIRONMENT||"DEV"===process.env.ENVIRONMENT||localStorage.getItem("log_metrics"))&&(console.log("%c ".concat(e.key_metric),"background: #222; color: #bada55"),console.log(e)),fh.getInstance().getDashboardInsights(e).then((function(e){return null==e?void 0:e.data}))}),{keepPreviousData:n,enabled:!!e.account_code&&!!t&&!!e.key_metric&&"Empty"!==e.currency_code,cacheTime:0,useErrorBoundary:!1})}function Hk(e,t){return Ef(["get-isolated-metric",e],(function(){return fh.getInstance().getDashboardInsights(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e.account_code,cacheTime:0,keepPreviousData:t,useErrorBoundary:!1})}function Vk(e){return Ef(["get-insights-conversion-rate-metrics",e],(function(){return fh.getInstance().getInsightsMetricsConversionRate(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 Gk(e,t){return Ef(["get-insights-conversion-rate-metrics-v2",e,t],(function(){return fh.getInstance().getInsightsMetricsConversionRateV2(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!(null==e?void 0:e.enabled)&&void 0!==e.account_code,cacheTime:0,useErrorBoundary:!1})}function $k(e,t){return Ef(["get-insights-conversion-rate-view-more-metrics",t,e],(function(){return fh.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 Kk(e){return Ef(["get-insights-conversion-rate-fallback-metrics",e],(function(){return fh.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 Qk(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Ef(["get-insights-volume-metrics",t,e],(function(){return fh.getInstance().getInsightsMetricsVolume(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function Jk(e,t,n,o){return void 0===o&&(o=!0),delete t.account_code,Ef(["get-insights-volume-metrics-v2",t,e,n],(function(){return fh.getInstance().getInsightsMetricsVolumeV2(e,n,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:o,cacheTime:200,useErrorBoundary:!1})}function Yk(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Ef(["get-insights-total-payment-fraud-metrics",t,e],(function(){return fh.getInstance().getInsightsMetricsTotalPaymentsAndFraud(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function Xk(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Ef(["get-insights-customer-payment-fraud-metrics",t,e],(function(){return fh.getInstance().getInsightsMetricsCustomerPaymentsAndFraud(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function Zk(e){return Ef(["get-insights-overview",e],(function(){return fh.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 ex(e,t){var n=!!(null==e?void 0:e.enabled)&&void 0!==(null==e?void 0:e.account_code);return Ef(["get-insights-overview-v3",e,t],(function(){return fh.getInstance().getInsightOverviewV3(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:0,useErrorBoundary:!1})}function tx(e){return Ef(["get-insights-home-metrics",e],(function(){return fh.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 nx(e){return Ef(["get-insights-reports",e],(function(){return fh.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 ox(e){return Ef(["get-insights-reports-again",e],(function(){return fh.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 ax(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-fraud-screening-volume-and-count-tx",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsightsFraudScreeningVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function ix(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-fraud-screening-conversion-rate",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsightsFraudScreeningConversionRate(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function rx(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-3ds-volume-and-count-tx",o,e],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsights3dsVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function sx(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-3ds-conversion-rate-and-evolution",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsights3dsConversionRateAndEvolution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function cx(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-3ds-decline-reasons",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsights3dsDeclineReasons(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function ux(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-3ds-frictionless-vs-challenge",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsights3dsFrictionlessVsChallenge(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function lx(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-chargebacks-volume-and-count-tx",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsightsChargebacksVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function px(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-chargebacks-win-rate",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsightsChargebacksWinRate(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function dx(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-chargebacks-disputed",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsightsChargebacksDisputed(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function mx(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-chargebacks-by-provider-and-card-brand",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsightsChargebacksByProviderAndCardBrand(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function hx(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-chargebacks-reasons-distribution",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsightsChargebacksReasonsDistribution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function fx(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-chargebacks-status-distribution",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsightsChargebacksStatusDistribution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function gx(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-chargebacks-by-card-brand",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsightsChargebacksByCardBrand(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}var yx=function(e,o,i){return void 0===i&&(i={}),Ef(["conversion-rate-overview",e,o],(function(){return t(void 0,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsightsConversionRateOverview(o,e)];case 1:return[2,t.sent()]}}))}))}),a({useErrorBoundary:!1},i))},vx=function(e,o,i){return void 0===i&&(i={}),Ef(["conversion-rate-overview-fraud-3ds",e,o],(function(){return t(void 0,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsightsConversionRateOverviewFraud3ds(o,e)];case 1:return[2,t.sent()]}}))}))}),a({useErrorBoundary:!1},i))};function bx(e,t){return Ef(["fetch-reconciliation-transaction",e],(function(){return fh.getInstance().getReconciliationTransactions(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t,useErrorBoundary:!1})}function kx(e,t){return Ef(["fetch-reconciliation-settlements",e],(function(){return fh.getInstance().getReconciliationSettlements(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t,useErrorBoundary:!1})}function xx(e,t){return Ef(["fetch-reconciliation-settlements-header",e],(function(){return fh.getInstance().getReconciliationSettlementsHeader(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t,cacheTime:500})}function wx(e,t){return Ef(["fetch-reconciliation-settlements-body",e],(function(){return fh.getInstance().getReconciliationSettlementsBody(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t,cacheTime:500})}function jx(e,t){return Ef(["fetch-reconciliation-metrics",e],(function(){return fh.getInstance().getReconciliationMetrics(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t,cacheTime:500})}function Cx(){return Ef(["GET-reconciliation-filters"],(function(){return fh.getInstance().getReconciliationFilters().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Ex(e){return Ef(["GET/v1/reconciliation/table/".concat(e,"/columns")],(function(){return fh.getInstance().getAllTableColumns(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Sx(){return Ef(["GET/v1/reconciliation/active"],(function(){return fh.getInstance().getReconciliationActive().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function _x(e,t,n){return Ef(["GET/reconciliation/reports/columns/".concat(t,"/").concat(n)],(function(){return fh.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 Rx(e){return Ef(["GET/reconciliation/reports/templates"],(function(){return fh.getInstance().getReconciliationReportTemplates().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{enabled:e,useErrorBoundary:!1})}function Tx(e){var t=e.body,n=e.params,o=e.enabled;return Ef(["GET/reconciliation/alerts/list",t,n],(function(){return fh.getInstance().getReconciliationAlerts(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Ix(e){var t=e.body,n=e.params,o=e.enabled;return Ef(["GET/reconciliation/agenda/list",t,n],(function(){return fh.getInstance().getReconciliationAgenda(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Ox(e){var t=e.body,n=e.params,o=e.enabled;return Ef(["GET/reconciliation/agenda/insights",t,n],(function(){return fh.getInstance().getReconciliationAgendaInsightByKey(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Ax(e){var t=e.body,n=e.params,o=e.enabled;return Ef(["GET/reconciliation/sales/list",t,n],(function(){return fh.getInstance().getReconciliationSales(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function zx(e){var t=e.body,n=e.params,o=e.enabled;return Ef(["GET/reconciliation/advancements/list",t,n],(function(){return fh.getInstance().getReconciliationAdvancements(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Px(e){var t=e.body,n=e.params,o=e.enabled;return Ef(["GET/reconciliation/fees/list",t,n],(function(){return fh.getInstance().getReconciliationFees(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Lx(e){var o=this,a=Object.values(e).filter(Boolean);return Ef(["feature-flags",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,fh.getInstance().getFeatureFlagId(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:a.length>1,useErrorBoundary:!1})}var Dx=["FRAUD_INSIGHTS","STARROCKS_OVERVIEW_INSIGHTS","SHOW-BR-TABS","RECONCILIATION-TABS-V2","SHOW-RECON-FEES-TAB"];function qx(e){var o=this,a=Ef({queryKey:["all-feature-flags",Object.values(e).filter(Boolean)],queryFn:function(){return t(o,void 0,void 0,(function(){var t,o;return n(this,(function(n){return t=fh.getInstance(),o={names:Dx,body:e},[2,t.getFeatureFlagIdAll(o).then((function(e){return null==e?void 0:e.data}))]}))}))},enabled:!!e.account_code&&!!e.organization_code&&!!e.email,useErrorBoundary:!1}),i=bf();return C((function(){i.setQueryData(["cached-feature-flags"],a)}),[a,i]),a}function Nx(e){var t=bf();return Ef({queryKey:["cached-feature-flags"],queryFn:function(){},enabled:!1,select:function(t){var n;return{result:null===(n=t.data)||void 0===n?void 0:n[e]}},initialData:function(){var e=t.getQueryData(["cached-feature-flags"]);return(null==e?void 0:e.data)||{}}})}function Mx(e){return Ef(["events",e],(function(){return fh.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 Fx(e){return Ef(["audit-monitor-event-detail",e],(function(){return fh.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 Ux(e,t){return Ef(["fetch-payment-links",e,t],(function(){return fh.getInstance().getPaymentLinks(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,cacheTime:0})}function Bx(e){return Ef(["payment-link"],(function(){return fh.getInstance().getPaymentLinksByCode(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function Wx(e){var t=e.accountCode;return Ef(["products"],(function(){return fh.getInstance().getProductsByAccount({accountCode:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t})}function Hx(e,t){return Ef(["fetch-payments-by-link-code",e],(function(){return fh.getInstance().getPaymentsByPaymentLink(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e})}function Vx(e){return void 0===e&&(e=!0),Ef(["countries",e],(function(){return fh.getInstance().useGetCountriesConfig().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e,keepPreviousData:!0})}function Gx(e){return Ef(["timezone"],(function(){return fh.getInstance().getTimezone(e).then((function(e){return Xm(e)?nh:null==e?void 0:e.data})).catch((function(){return nh}))}),{enabled:!0,keepPreviousData:!0})}function $x(e){return Sf((function(e){var t=e.payload;return fh.getInstance().firebaseUserSubscribe(t)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Kx(e,t){return Ef(["get-cofig-allow-list",e],(function(){return fh.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 Qx(e){return Ef(["get-black-list",e],(function(){return fh.getInstance().getBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!e})}function Jx(e,t,n,o){var a;return Ef(["post-black-list",e],(function(){return fh.getInstance().postBlockList(e,null!=t?t:"",null!=n?n:0,null!=o?o:25).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:(null===(a=e[0])||void 0===a?void 0:a.length)>0&&null!==t,useErrorBoundary:!1})}function Yx(e){return Ef(["get-one-black-list",e],(function(){return fh.getInstance().getOneBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function Xx(e,t,n){return Ef(["get-block-list-summary",e,t,n],(function(){var o=fh.getInstance();return n?o.getBlackListSummary(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e})):Promise.resolve({})}),{enabled:!!e&&!!n})}function Zx(e,t,n,o,a,i){return Ef(["black-list-detail",e,t,o,a,i],(function(){return fh.getInstance().getBlacklistDetail(e,t,n,o,a).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&i,cacheTime:0})}function ew(e,t,n){return Ef(["allow-list-detail",e],(function(){return fh.getInstance().getAllowlistDetail(e,t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{enabled:!!e&&!!n})}function tw(e){return Ef(["query-post-get-allowlist-multi-account",JSON.stringify(e)],(function(){return fh.getInstance().postGetAllowlist({payload:e}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function nw(e,o){var a=this;return void 0===e&&(e=26),void 0===o&&(o=0),Ef(["batch-refunds",e,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,fh.getInstance().getBatchRefunds(e,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{cacheTime:0})}function ow(e){return Ef(["velocity-rules",e],(function(){var t=fh.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 aw(){return Ef(["config-rules"],(function(){return fh.getInstance().getAllConfigRules().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0})}function iw(e,t){var n=e.organizationCode;return Ef(["mfa-excluded-users",n],(function(){return fh.getInstance().getMFAExcludedUsers({organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function rw(e,t){var n=e.organizationCode;return Ef(["mfa-config",n],(function(){return fh.getInstance().getMFAConfig({organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function sw(e,t){return Ef(["mfa-enforcement-status",e.accountCode],(function(){return fh.getInstance().getMFAEnforcementStatus().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function cw(e){return Ef(["fetch-organization-saml-config",e],(function(){return fh.getInstance().getSamlConfig().then((function(e){return e.data}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function uw(e){return Ef(["chartgpt-chart-execute",e],(function(){return fh.getInstance().executeChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e})}function lw(){return Ef(["chartgpt-user-charts"],(function(){return fh.getInstance().getChartsByUser().then((function(e){return null==e?void 0:e.data}))}))}function pw(){var e=this;return Ef(["chartgpt-user-charts-with-results"],(function(){return t(e,void 0,void 0,(function(){var e,o,i,r=this;return n(this,(function(s){switch(s.label){case 0:return[4,(e=fh.getInstance()).getChartsByUser()];case 1:return o=s.sent(),i=(null==o?void 0:o.data)||[],[4,Promise.all(i.map((function(o){return t(r,void 0,void 0,(function(){var t,i,r;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e.executeChartGPTChart(o.chartgpt_id)];case 1:return t=n.sent(),[2,a(a({},o),{results:(null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.results)||[]})];case 2:return i=n.sent(),console.error("Failed to execute chart ".concat(o.chartgpt_id,":"),i),[2,a(a({},o),{results:[]})];case 3:return[2]}}))}))})))];case 2:return[2,s.sent()]}}))}))}))}function dw(e,o,a){var i=this;return void 0===a&&(a=!0),Ef(["chartgpt-patch-and-execute",e,o],(function(){return t(i,void 0,void 0,(function(){var a,i,r,s,c=this;return n(this,(function(u){switch(u.label){case 0:return[4,(a=fh.getInstance()).patchChartGPTChart(e,o)];case 1:return u.sent(),i=function(){return t(c,void 0,void 0,(function(){var o=this;return n(this,(function(i){return[2,new Promise((function(i,r){var s=setInterval((function(){return t(o,void 0,void 0,(function(){var t,o,c;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,a.getChartById(e)];case 1:return t=n.sent(),"DRAFT"===(null==(o=null==t?void 0:t.data)?void 0:o.status)&&(clearInterval(s),i(o)),[3,3];case 2:return c=n.sent(),clearInterval(s),r(c),[3,3];case 3:return[2]}}))}))}),1e4)}))]}))}))},[4,i()];case 2:return r=u.sent(),[4,a.executeChartGPTChart(e)];case 3:return s=u.sent(),[2,{chart:r,execution:null==s?void 0:s.data}]}}))}))}),{enabled:!!e&&a,retry:!1,staleTime:0,cacheTime:0})}function mw(){return mw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},mw.apply(this,arguments)}
|
|
223
|
+
*/"production"===process.env.NODE_ENV?lf.exports=function(){if(uf)return pf;uf=1;var e=x,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,o=e.useEffect,a=e.useLayoutEffect,i=e.useDebugValue;function r(e){var n=e.getSnapshot;e=e.value;try{var o=n();return!t(e,o)}catch(e){return!0}}var s="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 a((function(){u.value=s,u.getSnapshot=t,r(u)&&l({inst:u})}),[e,s,t]),o((function(){return r(u)&&l({inst:u}),e((function(){r(u)&&l({inst:u})}))}),[e]),i(s),s};return pf.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:s,pf}():lf.exports=(df||(df=1,"production"!==process.env.NODE_ENV&&function(){function e(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!n(e,o)}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=x,n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=t.useState,a=t.useEffect,i=t.useLayoutEffect,r=t.useDebugValue,s=!1,c=!1,u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(u,l){s||void 0===t.startTransition||(s=!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 p=l();if(!c){var d=l();n(p,d)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}var m=(d=o({inst:{value:p,getSnapshot:l}}))[0].inst,h=d[1];return i((function(){m.value=p,m.getSnapshot=l,e(m)&&h({inst:m})}),[u,p,l]),a((function(){return e(m)&&h({inst:m}),u((function(){e(m)&&h({inst:m})}))}),[u]),r(p),p};mf.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:u,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),mf);var hf=lf.exports;const ff=hf.useSyncExternalStore,gf=k.createContext(void 0),yf=k.createContext(!1);function vf(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=gf),window.ReactQueryClientContext):gf)}const bf=({context:e}={})=>{const t=k.useContext(vf(e,k.useContext(yf)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},kf=({client:e,children:t,context:n,contextSharing:o=!1})=>{k.useEffect((()=>(e.mount(),()=>{e.unmount()})),[e]),"production"!==process.env.NODE_ENV&&o&&e.getLogger().error("The contextSharing option has been deprecated and will be removed in the next major version");const a=vf(n,o);return k.createElement(yf.Provider,{value:!n&&o},k.createElement(a.Provider,{value:e},t))},xf=k.createContext(!1);xf.Provider;const wf=k.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function jf(e,t){return"function"==typeof e?e(...t):!!e}function Cf(e,t){const n=bf({context:e.context}),o=k.useContext(xf),a=k.useContext(wf),i=n.defaultQueryOptions(e);i._optimisticResults=o?"isRestoring":"optimistic",i.onError&&(i.onError=$h.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=$h.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=$h.batchCalls(i.onSettled)),(e=>{e.suspense&&"number"!=typeof e.staleTime&&(e.staleTime=1e3)})(i),((e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))})(i,a),(e=>{k.useEffect((()=>{e.clearReset()}),[e])})(a);const[r]=k.useState((()=>new t(n,i))),s=r.getOptimisticResult(i);if(ff(k.useCallback((e=>{const t=o?()=>{}:r.subscribe($h.batchCalls(e));return r.updateResult(),t}),[r,o]),(()=>r.getCurrentResult()),(()=>r.getCurrentResult())),k.useEffect((()=>{r.setOptions(i,{listeners:!1})}),[i,r]),((e,t,n)=>(null==e?void 0:e.suspense)&&((e,t)=>e.isLoading&&e.isFetching&&!t)(t,n))(i,s,o))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)})))(i,r,a);if((({result:e,errorResetBoundary:t,useErrorBoundary:n,query:o})=>e.isError&&!t.isReset()&&!e.isFetching&&jf(n,[e.error,o]))({result:s,errorResetBoundary:a,useErrorBoundary:i.useErrorBoundary,query:r.getCurrentQuery()}))throw s.error;return i.notifyOnChangeProps?s:r.trackResult(s)}function Ef(e,t,n){return Cf(xh(e,t,n),nf)}function Sf(e,t,n){const o=function(e,t,n){return Ph(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}(e,t,n),a=bf({context:o.context}),[i]=k.useState((()=>new cf(a,o)));k.useEffect((()=>{i.setOptions(o)}),[i,o]);const r=ff(k.useCallback((e=>i.subscribe($h.batchCalls(e))),[i]),(()=>i.getCurrentResult()),(()=>i.getCurrentResult())),s=k.useCallback(((e,t)=>{i.mutate(e,t).catch(_f)}),[i]);if(r.error&&jf(i.options.useErrorBoundary,[r.error]))throw r.error;return{...r,mutate:s,mutateAsync:r.mutate}}function _f(){}function Rf(e){return Sf((function(e){var t=e.payload,n=e.accountCode;return fh.getInstance().postWebhook({payload:t,accountCode:n})}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Tf(e){return Sf((function(e){var t=e.payload,n=e.accountCode;return fh.getInstance().postWebhookV2({payload:t,accountCode:n})}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function If(e){return Sf((function(e){var t=e.payload;return fh.getInstance().postWebhookV2MultiAccount({payload:t})}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Of(e){return Sf((function(e){var t=e.code;return fh.getInstance().deleteWebhook(t)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Af(e){return Sf((function(e){var t=e.code,n=e.accountCode;return fh.getInstance().deleteWebhookV2(t,n)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function zf(e){return Sf((function(e){var t=e.code,n=e.payload;return fh.getInstance().updateWebhook(t,n)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Pf(e){return Sf((function(e){var t=e.code,n=e.payload,o=e.accountCode;return fh.getInstance().updateWebhookV2(t,n,o)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Lf(){return Sf((function(e){var t=e.name,n=e.principal;return fh.getInstance().postAccount(t,n)}))}function Df(){return Sf((function(e){var t=e.name,n=e.code,o=e.principal;return fh.getInstance().patchAccount({name:t,code:n,principal:o})}))}function qf(){return Sf((function(e){var t=e.name,n=e.code,o=e.principal;return fh.getInstance().patchAccountV2({name:t,code:n,principal:o})}))}function Nf(){return Sf((function(e){var t=e.account_code;return fh.getInstance().putAccountPrincipal({account_code:t})}))}function Mf(){return Sf((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return fh.getInstance().putAccountsUser(t,n,o)}))}function Ff(){return Sf((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return fh.getInstance().putAccountsUserMassive(t,n,o)}))}function Uf(){return Sf((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return fh.getInstance().deleteAccountsUserMassive(t,n,o)}))}function Bf(){return Sf(["post-validate-status-connection"],(function(e){var t=e.payload,n=e.accountCode;return fh.getInstance().postValidateStatusConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Wf(){return Sf(["post-change-status-connection"],(function(e){var t=e.payload,n=e.accountCode;return fh.getInstance().postChangeStatusConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Hf(){return Sf((function(e){return fh.getInstance().putCosts(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Vf(){return Sf(["post-connection"],(function(e){var t=e.payload,n=e.accountCode;return fh.getInstance().postConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Gf(){return Sf(["post-connection"],(function(e){var t=e.payload;return fh.getInstance().postMultiConnection({payload:t}).then((function(e){return null==e?void 0:e.data}))}))}function $f(){return Sf(["new-post-connection"],(function(e){var t=e.payload,n=e.accountCode;return fh.getInstance().newPostConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Kf(){return Sf(["new-post-connection-validate"],(function(){return fh.getInstance().postMultiConnectionValidate().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Qf(){return Sf(["patch-connection"],(function(e){var t=e.payload,n=e.connectionCode;return fh.getInstance().patchConnection({payload:t,connectionCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Jf(){return Sf(["delete-connection"],(function(e){return fh.getInstance().deleteConnection(e).then((function(e){return null==e?void 0:e.data}))}))}function Yf(){return Sf(["auth-connection"],(function(e){var t=e.payload,n=e.connectionCode;return fh.getInstance().postArchiveConnection({payload:t,connectionCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Xf(){return Sf((function(e){var t=e.payload;return fh.getInstance().postDefaultRoutes({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function Zf(){return Sf((function(e){return fh.getInstance().postValidateCredentials(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function eg(){return Sf(["patch-organizations"],(function(){return fh.getInstance().updateOrganizationStatus().then((function(e){return null==e?void 0:e.data}))}))}function tg(){return Sf((function(e){return fh.getInstance().getOrgByName(e).then((function(e){return null==e?void 0:e.data}))}))}function ng(e){var o=this;return Sf((function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().changePassword(e).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,t.sent()]}}))}))}))}function og(){var e=this;return Sf((function(o){return t(e,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,fh.getInstance().changePasswordV2(o).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}))}function ag(e){return Sf((function(e){return fh.getInstance().updateProfile(e)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function ig(){return Sf((function(e){return fh.getInstance().inviteUsers(e)}))}function rg(){return Sf((function(e){return fh.getInstance().inviteUsersV2(e,e.organizationCode)}))}function sg(){return Sf((function(e){return fh.getInstance().inviteUsersMassive(e,e.organizationCode)}))}function cg(){return Sf((function(e){var t=e.userCode;return fh.getInstance().unInviteUsers({userCode:t})}))}function ug(){return Sf((function(e){var t=e.userCode,n=e.organizationCode;return fh.getInstance().unInviteUsersV2({userCode:t,organizationCode:n})}))}function lg(){return Sf((function(e){return fh.getInstance().createUserAuth0(e)}))}function pg(){return Sf((function(e){return fh.getInstance().postCall(e)}))}function dg(){return Sf((function(e){return fh.getInstance().changeLoginMethods(e)}))}function mg(){return Sf((function(e){var t=e.paymentMethod,n=e.checkoutCode;return fh.getInstance().updateIsActivePaymentMethod(n,t).then((function(e){return null==e?void 0:e.data}))}))}function hg(e){return Sf((function(e){return fh.getInstance().updateIsActiveCheckout(e)}),e)}function fg(){return Sf((function(e){var t=e.accountCode,n=e.template;return fh.getInstance().updateCheckoutTemplate({accountCode:t,template:n}).then((function(e){return null==e?void 0:e.data}))}))}function gg(){return Sf((function(e){var t=e.accountCode,n=e.theme;return fh.getInstance().updateStylingTheme({accountCode:t,theme:n}).then((function(e){return null==e?void 0:e.data}))}))}function yg(){return Sf((function(e){var t=e.payload,n=e.transactionId,o=e.paymentId,a=e.action;return fh.getInstance().createOperationTransaction(t,n,o,a)}))}function vg(){return Sf((function(e){var t=e.payload,n=e.paymentId,o=e.transactionId,a=e.handleSetProgress;return fh.getInstance().uploadChargebacks(t,n,o,a)}))}var bg=new Jh({}),kg=new class{constructor(e={}){this.queryCache=e.queryCache||new Jh,this.mutationCache=e.mutationCache||new Zh,this.logger=e.logger||Gh,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=Nh.subscribe((()=>{Nh.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())})),this.unsubscribeOnline=Fh.subscribe((()=>{Fh.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]=wh(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 o=xh(e,t,n),a=this.getQueryData(o.queryKey);return a?Promise.resolve(a):this.fetchQuery(o)}getQueriesData(e){return this.getQueryCache().findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const o=this.queryCache.find(e),a=function(e,t){return"function"==typeof e?e(t):e}(t,null==o?void 0:o.state.data);if(void 0===a)return;const i=xh(e),r=this.defaultQueryOptions(i);return this.queryCache.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return $h.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]=wh(e,t),o=this.queryCache;$h.batch((()=>{o.findAll(n).forEach((e=>{o.remove(e)}))}))}resetQueries(e,t,n){const[o,a]=wh(e,t,n),i=this.queryCache,r={type:"active",...o};return $h.batch((()=>(i.findAll(o).forEach((e=>{e.reset()})),this.refetchQueries(r,a))))}cancelQueries(e,t,n){const[o,a={}]=wh(e,t,n);void 0===a.revert&&(a.revert=!0);const i=$h.batch((()=>this.queryCache.findAll(o).map((e=>e.cancel(a)))));return Promise.all(i).then(vh).catch(vh)}invalidateQueries(e,t,n){const[o,a]=wh(e,t,n);return $h.batch((()=>{var e,t;if(this.queryCache.findAll(o).forEach((e=>{e.invalidate()})),"none"===o.refetchType)return Promise.resolve();const n={...o,type:null!=(e=null!=(t=o.refetchType)?t:o.type)?e:"active"};return this.refetchQueries(n,a)}))}refetchQueries(e,t,n){const[o,a]=wh(e,t,n),i=$h.batch((()=>this.queryCache.findAll(o).filter((e=>!e.isDisabled())).map((e=>{var t;return e.fetch(void 0,{...a,cancelRefetch:null==(t=null==a?void 0:a.cancelRefetch)||t,meta:{refetchPage:o.refetchPage}})}))));let r=Promise.all(i).then(vh);return null!=a&&a.throwOnError||(r=r.catch(vh)),r}fetchQuery(e,t,n){const o=xh(e,t,n),a=this.defaultQueryOptions(o);void 0===a.retry&&(a.retry=!1);const i=this.queryCache.build(this,a);return i.isStaleByTime(a.staleTime)?i.fetch(a):Promise.resolve(i.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(vh).catch(vh)}fetchInfiniteQuery(e,t,n){const o=xh(e,t,n);return o.behavior=ef(),this.fetchQuery(o)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(vh).catch(vh)}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=>Sh(e)===Sh(t.queryKey)));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find((t=>_h(e,t.queryKey)));if("production"!==process.env.NODE_ENV){this.queryDefaults.filter((t=>_h(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=>Sh(e)===Sh(t.mutationKey)));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find((t=>_h(e,t.mutationKey)));if("production"!==process.env.NODE_ENV){this.mutationDefaults.filter((t=>_h(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=Eh(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:bg});function xg(){return Sf((function(e){return fh.getInstance().createReport(e).then((function(e){return null==e?void 0:e.data}))}))}function wg(){return Sf((function(e){return fh.getInstance().createReconciliationsReportV2(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function jg(){return Sf((function(e){return fh.getInstance().createReportV2(e).then((function(e){return null==e?void 0:e.data}))}))}function Cg(){return Sf((function(e){return fh.getInstance().getTotalRowsForExport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Eg(){return Sf((function(e){return fh.getInstance().cancelReport(e).then((function(e){return null==e?void 0:e.data}))}))}function Sg(o){var a=this;return Sf((function(){return t(a,void 0,void 0,(function(){return n(this,(function(e){return[2,fh.getInstance().createReportTemplate(o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onMutate:function(o){return t(a,void 0,void 0,(function(){var t;return n(this,(function(n){switch(n.label){case 0:return[4,kg.cancelQueries({queryKey:["GET/reports/templates"]})];case 1:return n.sent(),t=kg.getQueryData(["GET/reports/templates"]),kg.setQueryData(["GET/reports/templates"],(function(t){return e(e([],t,!0),[o],!1)})),[2,{previousTemplates:t}]}}))}))},onError:function(e,t,n){kg.setQueryData(["GET/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){kg.invalidateQueries({queryKey:["GET/reports/templates"]})}})}function _g(e){return Sf((function(){return fh.getInstance().updateReportTemplate(e).then((function(e){return null==e?void 0:e.data}))}))}function Rg(e,o,a){var i=this;return void 0===a&&(a=null),Sf((function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().postSmartRoutingCreateWorkflow(e,o).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,t.sent()]}}))}))}),a)}function Tg(e,o){var a=this,i=e.versionCode,r=e.accountCode,s=e.organizationCode;return void 0===o&&(o=null),Sf((function(){return t(a,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,fh.getInstance().postSmartRoutingPublishVersion(r,i,s).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}),o)}function Ig(){return Sf(["validate-connection"],(function(e){var t=e.connectionCode;return fh.getInstance().postSmartRoutingValidateConnection(t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Og(e,t){var n=e.data,o=e.accountCode;return void 0===t&&(t=null),Sf((function(){return fh.getInstance().putSmartRoutingUpdateWorkflow(o,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),t)}function Ag(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Sf((function(){return fh.getInstance().deleteSmartRoutingVersion(o,n).then((function(e){return null==e?void 0:e.data}))}),t)}function zg(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Sf((function(){return fh.getInstance().postSmartRoutingDuplicateVersion(o,n).then((function(e){return null==e?void 0:e.data}))}),t)}function Pg(e,t){var n=e.paymentMethod,o=e.active,a=e.accountCode;return void 0===t&&(t=null),Sf((function(){return fh.getInstance().putSmartRoutingToggleMethod(a,n,o).then((function(e){return null==e?void 0:e.data}))}),t)}function Lg(e,t){var n=e.declinedId,o=e.accountCode;return void 0===t&&(t=null),Sf((function(e){return void 0===e&&(e=null),fh.getInstance().updateSmartRoutingDeclinedGroup(o,n,e).then((function(e){return null==e?void 0:e.data}))}),t)}function Dg(e){var t=e.accountCode;return Sf((function(e){return void 0===e&&(e=null),fh.getInstance().createSmartRoutingDeclinedGroup(t,e).then((function(e){return null==e?void 0:e.data}))}),e.options)}function qg(e){var t=e.accountCode;return Sf((function(e){return void 0===e&&(e=null),fh.getInstance().updateSmartRoutingTutorial(t,e||"").then((function(e){return null==e?void 0:e.data}))}),e.options)}function Ng(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Sf((function(e){return void 0===e&&(e=!1),fh.getInstance().updateSmartRoutingFavorite(o,n,e).then((function(e){return null==e?void 0:e.data}))}),t)}function Mg(e,t){var n=e.code,o=e.name,a=e.accountCode;return void 0===t&&(t=null),Sf((function(){return fh.getInstance().putSmartRoutingUpdateWorkflowName(a,{code:n,name:o}).then((function(e){return null==e?void 0:e.data}))}),t)}function Fg(e,t){var n=e.accountCode,o=e.workflowVersionCode;return void 0===t&&(t=null),Sf((function(e){return fh.getInstance().simulateSmartRoutingTransaction(n,o,e).then((function(e){return null==e?void 0:e.data}))}),t)}function Ug(e,t){return void 0===t&&(t=null),Sf((function(t){return fh.getInstance().updateMonitorRedistribution(e,t).then((function(e){return null==e?void 0:e.data}))}),t)}function Bg(e,t){return void 0===t&&(t={}),Sf((function(t){var n=t.declinedGroupCode;return fh.getInstance().removeDeclinedGroup(e,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),a(a({},t),{useErrorBoundary:!1}))}function Wg(e,t){return void 0===t&&(t={}),Sf((function(t){var n=t.payload;return fh.getInstance().multiAccountDeclinedGroupCreate(e,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),a(a({},t),{useErrorBoundary:!1}))}var Hg=function(e){return Sf((function(t){return fh.getInstance().createMonitorThreshold(t,e).then((function(e){return e.data}))}))},Vg=function(e){return Sf((function(t){return fh.getInstance().createMonitorTemplate(t,e).then((function(e){return e.data}))}))};function Gg(e){return Sf((function(){return fh.getInstance().createNotificacion(e).then((function(e){return null==e?void 0:e.data}))}))}function $g(){return Sf((function(){return fh.getInstance().getNotification().then((function(e){return null==e?void 0:e.data}))}))}function Kg(){return Sf((function(e){var t=e.payload;return fh.getInstance().postSlackMessageChannel(t).then((function(e){return null==e?void 0:e.data}))}))}function Qg(){var e=this;return Sf((function(o){var a=o.roles,i=o.userCode;return t(e,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().setRoles({roles:a,userCode:i})];case 1:return[2,null==(e=t.sent())?void 0:e.data]}}))}))}))}function Jg(){var e=this;return Sf((function(o){var a=o.userCode;return t(e,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().deleteUserTeam({userCode:a})];case 1:return[2,null==(e=t.sent())?void 0:e.data]}}))}))}))}function Yg(){return Sf((function(e){var t=e.userCode,n=e.organizationCode;return fh.getInstance().deleteUserTeamV2({userCode:t,organizationCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Xg(){return Sf((function(){return fh.getInstance().setCustodian().then((function(e){return null==e?void 0:e.data}))}))}function Zg(){return Sf((function(e){var t=e.payload,n=e.accountCode;return fh.getInstance().createRoles(t,n).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function ey(){var e=this;return Sf((function(o){var a=o.payload,i=o.id,r=o.accountCode;return t(e,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().editRoles({payload:a,id:i},r)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}}))}))}),{useErrorBoundary:!1})}function ty(){return Sf((function(e){return fh.getInstance().deleteRoles(e).then((function(e){return null==e?void 0:e.data}))}))}function ny(){return Sf(["post-payment-links"],(function(e){var t=e.payload,n=e.accountCode;return fh.getInstance().postPaymentLinks({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function oy(){return Sf(["post-products-account"],(function(e){var t=e.payload;return fh.getInstance().postCreateProducts({payload:t}).then((function(e){return null==e?void 0:e.data}))}))}function ay(){return Sf(["post-delete-payment-link"],(function(e){var t=e.code;return fh.getInstance().postDeletePaymentLink({code:t}).then((function(e){return null==e?void 0:e.data}))}))}function iy(){return Sf(["patch-payment-links"],(function(e){var t=e.payload,n=e.accountCode,o=e.paymentLinkCode;return fh.getInstance().patchPaymentLinks({payload:t,accountCode:n,paymentLinkCode:o}).then((function(e){return null==e?void 0:e.data}))}))}function ry(e){return Sf((function(){return fh.getInstance().postValidatePassword(e).then((function(e){return null==e?void 0:e.data}))}))}function sy(){return Sf((function(e){var t=e.payload;return fh.getInstance().postUserSettings(t)}),{onMutate:function(e){return e}})}function cy(){return Sf((function(e){return fh.getInstance().postUserThemeSettings(e)}))}function uy(){return Sf((function(e){var t=e.payload,n=e.section;return fh.getInstance().postUserSettingsTables(t,n)}),{onMutate:function(e){return e},onSuccess:function(e){var t=kg.getQueryData(["fetch-profile"]);e.data&&kg.setQueryData(["fetch-profile"],a(a({},t),{settings:e.data}))}})}function ly(e){return Sf(["pinned-sections"],(function(e){var t=e.payload;return fh.getInstance().postUserSettingsPinned(t)}),{onMutate:function(t){var n=t.payload;return e({payload:n})}})}function py(){return Sf((function(e){var t=e.password,n=e.otp;return fh.getInstance().getMfaTokenValidation(t,n).then((function(e){return null==e?void 0:e.data}))}))}function dy(e){return Sf((function(){return fh.getInstance().getMfaToken(e).then((function(e){return null==e?void 0:e.data}))}))}function my(){return Sf((function(){return fh.getInstance().getEmailOtp().then((function(e){return null==e?void 0:e.data}))}))}function hy(e){return Sf((function(){return fh.getInstance().validateOtp(e).then((function(e){return null==e?void 0:e.data}))}))}function fy(){return Sf((function(e){return fh.getInstance().confirmMfaOtp(e).then((function(e){return null==e?void 0:e.data}))}))}function gy(e){return Sf((function(){return fh.getInstance().confirmMfaOtp(e).then((function(e){return null==e?void 0:e.data}))}))}function yy(e){return Sf((function(){return fh.getInstance().unrollMfa(e).then((function(e){return null==e?void 0:e.data}))}))}function vy(){return Sf((function(e){return fh.getInstance().unrollMfa(e).then((function(e){return null==e?void 0:e.data}))}))}function by(){return Sf((function(){return fh.getInstance().sendOTPForMFA().then((function(e){return null==e?void 0:e.data}))}))}function ky(){return Sf((function(){return fh.getInstance().getMFAStatus().then((function(e){return null==e?void 0:e.data}))}))}function xy(){return Sf((function(){return fh.getInstance().validatePasswordStatus().then((function(e){return null==e?void 0:e.data})).catch((function(e){return{valid:!1}}))}))}function wy(){return Sf(["post-get-allowlist-items"],(function(e){var t=e.payload;return fh.getInstance().postAllowlistItems({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function jy(){return Sf(["post-get-allowlist-multi-account"],(function(e){var t=e.payload;return fh.getInstance().postGetAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Cy(){return Sf(["post-create-allowlist-multi-account"],(function(e){var t=e.payload;return fh.getInstance().postCreateAllowlistMultiAccount({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Ey(){return Sf(["patch-change-status-allowlist"],(function(e){var t=e.payload;return fh.getInstance().patchChangeStatusAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Sy(){return Sf(["patch-change-status-allowlist-item"],(function(e){var t=e.payload;return fh.getInstance().patchChangeStatusAllowlistItem({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function _y(){return Sf(["post-add-allowlist-items"],(function(e){var t=e.payload;return fh.getInstance().patchAddAllowlistItems({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Ry(){return Sf(["patch-allowlist"],(function(e){var t=e.payload;return fh.getInstance().patchAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Ty(){return Sf(["post-blacklist-multi-account"],(function(e){var t=e.payload;return fh.getInstance().postBlackListMultiAccount({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Iy(){return Sf(["post-blacklist"],(function(e){var t=e.payload;return fh.getInstance().postBlackListType({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Oy(){return Sf(["put-blacklist"],(function(e){return fh.getInstance().putBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Ay(){return Sf(["change-blacklist"],(function(e){return fh.getInstance().changeBlackListStatus(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function zy(){return Sf(["change-blacklist-item"],(function(e){return fh.getInstance().changeBlackListStatusItem(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Py(){return Sf(["post-blacklist-items"],(function(e){var t=e.payload;return fh.getInstance().postBlackListItems({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Ly(){return Sf(["delete-blacklist"],(function(e){var t=e.black_list_code;return fh.getInstance().deleteBlackListType({black_list_code:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Dy(){return Sf(["delete-blacklist-item"],(function(e){var t=e.black_list_code,n=e.account_code,o=e.item;return fh.getInstance().deleteBlackListItem({black_list_code:t,account_code:n,item:o}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function qy(e){var t=e.handleSetProgress;return Sf(["post-blacklist-batch"],(function(e){var n=e.blacklist_code,o=e.expiration_days,a=e.file;return fh.getInstance().postBlackListBatch({blacklist_code:n,expiration_days:o,file:a,handleSetProgress:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Ny(){return Sf(["change-payments-webhook"],(function(e){var t=e.status,n=e.paymentCode;return fh.getInstance().postChangePaymentsWebhook({status:t,paymentCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function My(){return Sf(["delete-blacklist-items"],(function(e){var t=e.blocklist_code,n=e.blocklist_item_id,o=e.account_code;return fh.getInstance().deleteBlockListItem({blocklist_code:t,blocklist_item_id:n,account_code:o}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Fy(){return Sf(["valiate-blacklist-items"],(function(e){return fh.getInstance().valiateBlockListItems({payload:e}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Uy(){return Sf(["delete-allowlist-item"],(function(e){return fh.getInstance().deleteAllowlistItem({payload:e}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function By(){return Sf(["validate-allowlist-items"],(function(e){return fh.getInstance().validateAllowlistItems({payload:e}).then((function(e){return e.data})).catch((function(e){return e}))}))}function Wy(e){var t=e.fileName,n=e.onSuccess,o=e.onError,a=w(0),i=a[0],r=a[1],s=j({cancel:function(){return null}}),c=Sf(["upload-file-chargeback",t],(function(e){var t=fh.getInstance().uploadFileS3ClientBatchRefunds({payload:e,handleSetProgress:r}),a=t.promise,i=t.cancel;return s.current.cancel=i,a.then((function(e){return null==n||n(null==e?void 0:e.data),null==e?void 0:e.data})).catch((function(e){throw null==o||o(),e}))}),{useErrorBoundary:!1});return{mutation:c,cancelRequest:s.current.cancel,progress:i}}function Hy(e){var t=e.handleSetProgress;return Sf((function(e){return fh.getInstance().uploadBatchRefunds({payload:e,handleSetProgress:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Vy(){return Sf((function(e){return fh.getInstance().uploadBatchRefundsV2({payload:e}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Gy(){var e=this;return Sf((function(o){return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,fh.getInstance().batchRefundByFile({payload:o}).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function $y(){var e=this;return Sf((function(o){var a=o.batchRefundId,i=o.organizationCode,r=o.accountCode;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,fh.getInstance().getBatchRefundProcessedFileDownload(a,i,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function Ky(){var e=this;return Sf((function(o){var a=o.batchRefundId,i=o.organizationCode,r=o.accountCode;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,fh.getInstance().getBatchRefundUserFileDownload(a,i,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function Qy(){var e=j({cancel:function(){return null}}),t=Sf(["upload-file"],(function(t){var n=fh.getInstance().uploadFileS3ClientBatchRefunds({payload:t}),o=n.promise,a=n.cancel;return e.current.cancel=a,o.then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}));return{mutation:t,cancelRequest:e.current.cancel}}function Jy(){return Sf((function(e){var t=e.payload,n=e.organizationCode;return fh.getInstance().updateMFAConfig(t,n)}))}function Yy(){return Sf((function(e){var t=e.payload,n=e.organizationCode;return fh.getInstance().mfaExcludeUsers(t,n)}))}function Xy(e){return Ef(["GET/scheduled-reports",e],(function(){return fh.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 Zy(){return Sf((function(e){var t=e.payload;return fh.getInstance().postScheduledReport(t).then((function(e){return{data:e.data,status:e.status}})).catch((function(e){return e}))}))}function ev(){return Sf((function(e){var t=e.reportCode,n=e.payload;return fh.getInstance().updateScheduledReport(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function tv(){return Sf((function(e){return fh.getInstance().deleteScheduledReport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function nv(){return Sf((function(e){return fh.getInstance().getConditionalConfigRules(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function ov(){return Sf((function(e){return fh.getInstance().getRule(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function av(){return Sf((function(e){var t=e.payload,n=e.accountCode;return fh.getInstance().postCreateRuleMultiAccount(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function iv(){return Sf((function(e){var t=e.payload,n=e.accountCode;return fh.getInstance().postCreateRule(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function rv(){return Sf((function(e){var t=e.payload,n=e.ruleId,o=e.accountCode;return fh.getInstance().postEditRule(t,n,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function sv(){return Sf((function(e){var t=e.payload;return fh.getInstance().postCreateCustomizedApiKeys(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function cv(){return Sf((function(e){var t=e.payload,n=e.code;return fh.getInstance().pathCreateCustomizedApiKeys(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function uv(){return Sf((function(e){var t=e.code,n=e.password;return fh.getInstance().getCustomizedApiKeysToken(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}))}function lv(){return Sf((function(e){var t=e.passwordOtp;return fh.getInstance().getDeveloperCredentialsValidatePassword(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}))}function pv(){return Sf((function(e){var t=e.code;return fh.getInstance().getCustomizedApiKeysShowToken(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function dv(){return Sf((function(e){var t=e.code;return fh.getInstance().deleteCustomizedApiKeys(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function mv(){return Sf((function(e){var t=e.payload,n=e.code;return fh.getInstance().patchApiKeysEditNote(t,n).then((function(e){return e.data})).catch((function(e){return e}))}))}function hv(){return Sf((function(e){var t=e.payload,n=e.code,o=e.password;return fh.getInstance().postApiKeysRoll(t,n,o).then((function(e){return e.data})).catch((function(e){return e}))}))}function fv(){return Sf((function(e){var t=e.password,n=e.accountCode;return fh.getInstance().getDeveloperCredentials(t,n).then((function(e){return a(a({},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}}))}))}function gv(e){return Sf((function(e){var t=e.payload;return fh.getInstance().postAuditMonitors(t)}),{onMutate:e.onMutate})}function yv(o){var a=this;return Sf((function(){return fh.getInstance().createReconciliationReportTemplate(o).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{onMutate:function(o){return t(a,void 0,void 0,(function(){var t,a;return n(this,(function(n){switch(n.label){case 0:return[4,kg.cancelQueries({queryKey:["GET/reconciliation/reports/templates"]})];case 1:return n.sent(),t=null===(a=kg.getQueryData(["GET/reconciliation/reports/templates"]))||void 0===a?void 0:a.templates,kg.setQueryData(["GET/reconciliation/reports/templates"],(function(t){return{templates:e(e([],t.templates,!0),[o],!1)}})),[2,{previousTemplates:t}]}}))}))},onError:function(e,t,n){kg.setQueryData(["GET/reconciliation/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){kg.invalidateQueries({queryKey:["GET/reconciliation/reports/templates"]})},useErrorBoundary:!1})}function vv(e){return Sf((function(){return fh.getInstance().updateReconciliationReportTemplate(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function bv(){return Sf(["POST/reconciliation/alerts"],(function(e){return fh.getInstance().postReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){kg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function kv(){return Sf(["DELETE/reconciliation/alerts"],(function(e){return fh.getInstance().deleteReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){kg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function xv(){return Sf(["UPDATE/reconciliation/alerts"],(function(e){return fh.getInstance().updateReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){kg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function wv(){return Sf((function(e){var t=e.payload;return fh.getInstance().postCreateInsightsReport(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function jv(){return Sf((function(e){return fh.getInstance().createSamlConfig(e)}))}function Cv(){return Sf((function(e){return fh.getInstance().updateSamlConfig(e)}))}function Ev(){return Sf((function(){return fh.getInstance().deleteSamlConfig()}))}function Sv(e,t){return void 0===t&&(t={}),Sf((function(t){return fh.getInstance().generateAIWorkflowRoutes(e,t).then((function(e){return null==e?void 0:e.data}))}),a(a({},t),{useErrorBoundary:!1}))}function _v(){return Sf((function(e){return fh.getInstance().createChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Rv(){return Sf((function(e){return fh.getInstance().deleteChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Tv(){return Sf((function(e){var t=e.chartgpt_id,n=e.type,o=e.name;return fh.getInstance().patchChartGPTChart(t,{type:n,name:o}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Iv(){var e=this;return Sf((function(o){return t(e,void 0,void 0,(function(){var e,a,i,r,s,c,u,l=this;return n(this,(function(p){switch(p.label){case 0:return[4,(e=fh.getInstance()).createChartGPTChart(o)];case 1:if(a=p.sent(),!(i=null===(u=null==a?void 0:a.data)||void 0===u?void 0:u.chartgpt_id))throw new Error("Failed to create chart: No chart ID returned");return r=function(){return t(l,void 0,void 0,(function(){var o=this;return n(this,(function(a){return[2,new Promise((function(a,r){var s=setInterval((function(){return t(o,void 0,void 0,(function(){var t,o,c;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e.getChartById(i)];case 1:return t=n.sent(),"DRAFT"===(null==(o=null==t?void 0:t.data)?void 0:o.status)&&(clearInterval(s),a(o)),[3,3];case 2:return c=n.sent(),clearInterval(s),r(c),[3,3];case 3:return[2]}}))}))}),1e4)}))]}))}))},[4,r()];case 2:return s=p.sent(),[4,e.executeChartGPTChart(i)];case 3:return c=p.sent(),[2,{chart:s,execution:null==c?void 0:c.data}]}}))}))}),{useErrorBoundary:!1})}var Ov=function(){var e,t;return null===(t=null===(e=function(e){var t=localStorage.getItem(e),n=w(t&&JSON.parse(t)),o=n[0],a=n[1];return C((function(){var t=function(t){if(t.key===e){var n=t.newValue;a(n)}};return window.addEventListener("storage",t),function(){window.removeEventListener("storage",t)}}),[e]),o}("account"))||void 0===e?void 0:e.value)||void 0===t?void 0:t.organization_code};function Av(e){var o=this;return Ef(["fetch-payments-lazy",e],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,fh.getInstance().postPaymentsLazy(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{enabled:!!e&&Object.keys(e).length>0,cacheTime:0})}function zv(e){return Ef(["fetch-payments-evaluated",e],(function(){return fh.getInstance().postPaymentsEvaluated(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&Object.keys(e).length>0,cacheTime:0})}function Pv(e){var t=e.enabled,n=void 0===t||t,o=i(e,["enabled"]);return Ef(["fetch-payments-".concat(o.payment_code),o],(function(){return fh.getInstance().getPayment(o).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:500})}function Lv(e){var o=this,a=e.paymentCode,i=e.enabled,r=void 0===i||i,s=fh.getInstance();return Ef(["get-payment-v2",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,s.getPaymentV2(a).then((function(e){return e.data})).catch((function(e){throw e}))]}))}))}),{enabled:r,cacheTime:500})}function Dv(e,t){return Ef(["payments/".concat(e,"/transactions"),t],(function(){return fh.getInstance().getPaymentTransactions(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,cacheTime:500})}function qv(e){return Ef(["payments/".concat(e,"/transactions/lazy")],(function(){return fh.getInstance().getPaymentTransactionsLazy(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e.response.data}))}),{enabled:!!e,cacheTime:500})}function Nv(e){var t=e.payment_code,n=e.transaction_code,o=e.enabled,a=void 0===o||o;return Ef(["payments/".concat(t,"/transactions/").concat(n)],(function(){return fh.getInstance().getTransactionDetails({payment_code:t,transaction_code:n}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:500,enabled:a})}function Mv(e){var o=this,a=e.payment_code,i=e.enabled,r=void 0===i||i,s=fh.getInstance();return Ef(["get-payment-transaction-details-v2",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,s.getTransactionDetailsV2({payment_code:a}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))]}))}))}),{enabled:!!a&&r,cacheTime:0})}function Fv(e){var o=this,a=e.transaction_code,i=e.enabled,r=void 0===i||i,s=fh.getInstance();return Ef(["get-payment-transaction-raw-response",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,s.getTransactionRawResponse({transaction_code:a})]}))}))}),{enabled:!!a&&r,cacheTime:0})}function Uv(e){var t=Ov();return Ef(["payment-methods",e],(function(){return fh.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})).catch((function(e){throw e}))}),{enabled:!!e&&!!(null==e?void 0:e.provider_id),useErrorBoundary:!1})}function Bv(e){var t=e.provider;return Ef(["/payment-methods/provider/".concat(t)],(function(){return fh.getInstance().getPaymentMethodsByProvider({provider:t}).then((function(e){return null==e?void 0:e.data}))}))}function Wv(){return Ef(["/payment-methods/providers"],(function(){return fh.getInstance().getPaymentMethodsAndProviders().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Hv(){return Ef(["/payments/payment-methods/providers/active"],(function(){return fh.getInstance().getPaymentMethodsAndProvidersActive().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Vv(){return Ef(["/payments/transaction/statuses"],(function(){return fh.getInstance().useGetPaymentAndTrxStatuses().then((function(e){return null==e?void 0:e.data}))}))}function Gv(){return Ef(["GET/catalog/card-brands"],(function(){return fh.getInstance().getCardBrands().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function $v(e){return void 0===e&&(e=!0),Ef(["payment-filters",e],(function(){return fh.getInstance().getPaymentFilters().then((function(e){return null==e?void 0:e.data}))}),{enabled:e,useErrorBoundary:!1})}function Kv(){return Ef(["payment-metrics-filters"],(function(){return fh.getInstance().getPaymentMetricsFilters().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Qv(e){var t=e.transaction_code;return Ef(["payment-filters",t],(function(){return fh.getInstance().getTransactionHistory({transaction_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t})}function Jv(e){var t=e.transaction_code,n=e.enabled;return Ef(["payment-transaction-details",t],(function(){return fh.getInstance().getPaymentTransactionsDetails({transaction_code:t}).then((function(e){return null==e?void 0:e.data})).catch((function(){return{error:!0}}))}),{enabled:!!t&&(void 0===n||n)})}function Yv(e){var t=e.payment_code,n=e.enabled;return Ef(["transaction-history",t],(function(){return fh.getInstance().getTransactionHistoryByPaymentCode({payment_code: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 Xv(e){return Ef(["GET/transactions",JSON.stringify(e)],(function(){return fh.getInstance().getTransactions(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function Zv(e){var o=this;return Ef(["POST/transactions",JSON.stringify(e)],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,fh.getInstance().postTransactions(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{enabled:!!e,cacheTime:0})}function eb(e){var o=this;return Ef(["POST/fraud-transactions",JSON.stringify(e)],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,fh.getInstance().postFraudTransactions(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{enabled:!!e&&Object.keys(e).length>0,cacheTime:0})}function tb(e){return Ef(["GET/payout-detail",JSON.stringify(e)],(function(){var t=fh.getInstance();return e.organization_code?t.getPayoutDetails(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e})):{}}),{enabled:!!e.organization_code&&!!e&&e.enabled,cacheTime:0})}function nb(e){return Ef(["GET/payout-transaction-detail",JSON.stringify(e)],(function(){return fh.getInstance().getPayoutTransactionDetails(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&!!(null==e?void 0:e.transaction_code)&&(null==e?void 0:e.enabled),cacheTime:0})}function ob(e){var t=Ov();return Ef(["GET/payout-history-detail",JSON.stringify(e)],(function(){return fh.getInstance().getPayoutHistoryDetails(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!(null==e?void 0:e.payout_code)&&e.enabled,cacheTime:0})}function ab(e){var o=this,a=Ov();return Ef(["GET/useGetProofOfCancel",a,e],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,fh.getInstance().getProofOfCancel(e,a).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))]}))}))}),{enabled:!!e&&!!a,cacheTime:0,useErrorBoundary:!1})}function ib(e,o,a){var i=this,r=fh.getInstance();return Ef(["send-payment-notification",e,o],(function(){return t(i,void 0,void 0,(function(){var t,i;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,r.sendPaymentNotification(e,o)];case 1:return t=n.sent(),a.onSuccess(),[2,t.data];case 2:throw i=n.sent(),a.onError(),i;case 3:return[2]}}))}))}),{enabled:a.enabled,cacheTime:0,useErrorBoundary:!1})}function rb(e){return Ef(["usePayoutsList",e&&JSON.stringify(e)],(function(){var t=fh.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 sb(e){var o=this;void 0===e&&(e=!0);var a=Ov();return Ef(["getPayoutsFilters",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,fh.getInstance().getPayoutsFilters(a).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{enabled:e&&!!a})}function cb(e){var t=e.password,n=e.accountCode;return Ef(["developers"],(function(){return fh.getInstance().getDeveloperCredentials(t,n).then((function(e){return a(a({},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 ub(e){var t=e.password;return Ef(["developers"],(function(){return fh.getInstance().getDeveloperCredentialsValidatePassword(t).then((function(e){return a(a({},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 lb(){return Ef(["fetch-customized-api-keys-members"],(function(){return fh.getInstance().getCustomizedApiKeysMembers().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function pb(){return Ef(["developers-get-allowed-ips"],(function(){return fh.getInstance().getAllowedIps().then((function(e){return(null==e?void 0:e.data)?a(a({},null==e?void 0:e.data),{isError:!1}):null})).catch((function(e){return a(a({},e),{isError:!0})}))}),{enabled:!1,cacheTime:0})}function db(){return Ef(["fetch-customized-api-keys-accounts"],(function(){return fh.getInstance().getCustomizedApiKeysAccounts().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function mb(e){return Ef(["fetch-customized-api-keys",e],(function(){return fh.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 hb(){return Ef(["fetch-customized-api-keys-products"],(function(){return fh.getInstance().getCustomizedApiKeysProducts().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{cacheTime:0})}function fb(){return Sf(["developers-patch-allowed-ips"],(function(e){return fh.getInstance().patchAllowedIps(e).then((function(e){return(null==e?void 0:e.data)?a(a({},null==e?void 0:e.data),{isError:!1}):null})).catch((function(e){return a(a({},e),{isError:!0})}))}),{cacheTime:0})}function gb(){return Ef(["fetch-organizations"],(function(){return fh.getInstance().getOrganization().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function yb(){return Ef(["fetch-all-organizations"],(function(){return fh.getInstance().getAllOrganization().then((function(e){return(null==e?void 0:e.data)||[]}))}),{keepPreviousData:!0,useErrorBoundary:!1})}function vb(e){var t=Ov();return Ef(["organizations-provider-params",e],(function(e){var n=e.queryKey;return fh.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 bb(e){var t=e.integration_code,n=e.enabled;return Ef(["integration-params",t],(function(){return t.includes("undefined")?{}:fh.getInstance().getIntegrationParams({integration_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,useErrorBoundary:!1})}function kb(e){var t=e.accountCode,n=e.organizationCode;return Ef(["organizations-account-integrations"],(function(){return fh.getInstance().getIntegrationByAccount({accountCode:t,organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!t})}function xb(e){var t=e.accountCode,n=e.organizationCode,o=Ov(),a=Ef(["organizations-account-integrations",t,n],(function(){return fh.getInstance().getIntegrationByAccountV2({accountCode:t,organizationCode:n||o}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,enabled:!!t,useErrorBoundary:!1});return a}function wb(e){var t=e.accountCode,n=e.paymentMethod;return Ef(["fetch-connections-by-payment-method",n,t],(function(){return fh.getInstance().getConnectionsByPaymentMethod(t,n).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!n&&!!t,cacheTime:0,useErrorBoundary:!1})}function jb(){var e=this;return Ef(["fetch-hash-pylon"],(function(){return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,fh.getInstance().getHashPylon()]}))}))}),{keepPreviousData:!0,useErrorBoundary:!1})}function Cb(){return Ef(["connections"],(function(){return fh.getInstance().getConnections().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Eb(){return Ef(["dialogs"],(function(){return fh.getInstance().getDialogs().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1,retryDelay:2e3})}function Sb(){return Ef(["params-catalog"],(function(){return fh.getInstance().getWebhookParams().then((function(e){return null==e?void 0:e.data}))}))}function _b(){return Ef(["params-catalog"],(function(){return fh.getInstance().getWebhookParamsV2().then((function(e){return null==e?void 0:e.data}))}))}function Rb(e){var t=e.accountCode;return Ef(["webhooks"],(function(){return fh.getInstance().getWebhooks({accountCode:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t})}function Tb(e){var t=e.accountCode;return Ef(["webhooks"],(function(){return fh.getInstance().getWebhooksV2({accountCode:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t})}function Ib(e){var t=e.accountCode,n=e.name;return Ef(["webhooks",t,n],(function(){return fh.getInstance().getWebhooksV3({accountCode:t,name:n}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,useErrorBoundary:!1})}function Ob(e){var t=e.accountCode,n=e.enabled;return Ef(["webhooks-detail",t],(function(){return fh.getInstance().getWebhooksV2Detail({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!n})}function Ab(e){var t,n=Ov(),o=null!==(t=null!=e?e:n)&&void 0!==t?t:null;return Ef({queryKey:["accounts",o],queryFn:function(){return fh.getInstance().getAccounts(o).then((function(e){return null==e?void 0:e.data}))},keepPreviousData:!0,cacheTime:3e3,enabled:!!o})}function zb(e){return Ef(["accountsV2",e],(function(){return fh.getInstance().getAccountsV2().then((function(e){return(null==e?void 0:e.data)||[]})).catch((function(e){throw e}))}),{keepPreviousData:!0,enabled:!!e,useErrorBoundary:!1})}function Pb(e){return Ef(["accountsV2-by-user",e],(function(){return e?fh.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 Lb(){return Ef(["menu"],(function(){return fh.getInstance().getMenu().then((function(e){return Xm(e)?ih:null==e?void 0:e.data})).catch((function(){return ih}))}))}function Db(){return Ef(["/payment/statuses/style"],(function(){return fh.getInstance().useGetPaymentStatusesStyles().then((function(e){return Xm(e)?Zm:null==e?void 0:e.data})).catch((function(){return Zm}))}))}function qb(){return Ef(["/transaction/statuses/style"],(function(){return fh.getInstance().useGetTransactionStatusesStyles().then((function(e){return Xm(e)?eh:null==e?void 0:e.data})).catch((function(){return eh}))}))}function Nb(){return Ef(["/reconciliation/transaction/statuses/style"],(function(){return fh.getInstance().useGetReconciliationTransactionStatusesStyles().then((function(e){return Xm(e)?th:null==e?void 0:e.data})).catch((function(){return th}))}))}function Mb(){return Ef(["timezone-catalog"],(function(){return fh.getInstance().useGetTimeZoneCatalog().then((function(e){return Xm(e)?nh:null==e?void 0:e.data})).catch((function(){return nh}))}))}function Fb(){return Ef(["/cms/audit-logs-filters"],(function(){return fh.getInstance().useGetAuditLogsFilters().then((function(e){return Xm(e)?oh:null==e?void 0:e.data})).catch((function(){return oh}))}))}function Ub(){return Ef(["/cms/static-contents"],(function(){return fh.getInstance().getDashboardStaticContents().then((function(e){var t,n;return Xm(e)?ah:(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t[0])||void 0===n?void 0:n.data)||{}})).catch((function(){return ah}))}))}function Bb(){return Ef(["/cms/locales"],(function(){return fh.getInstance().getLocales().then((function(e){return Xm(e)?rh:e.data})).catch((function(){return rh}))}))}var Wb=function(){var e=w("ON"===localStorage.getItem("isTesting")),t=e[0],n=e[1];return C((function(){window.addEventListener("storage",(function(e){"isTesting"===e.key&&n("ON"===e.newValue)}))}),[]),{isTesting:t}};function Hb(e){return Ef(["smart-routing-methods",e],(function(){return fh.getInstance().getSmartRoutingMethods(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function Vb(e,t){return Ef(["smart-routing-workflow",t,e],(function(){return fh.getInstance().getSmartRoutingWorkflow(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!e,cacheTime:0,retry:!1})}function Gb(e,t){return Ef(["smart-routing-condition-types",e,t],(function(){return fh.getInstance().getSmartRoutingConditionTypes(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!e})}function $b(e,t){return Ef(["smart-routing-condition-payment-method",e,t],(function(){return fh.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 Kb(e,t){return Ef(["smart-routing-condition-types-values",t,e],(function(){return fh.getInstance().getSmartRoutingConditionTypesValues(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!e})}function Qb(e){var t=e.accountCode,n=e.workflowVersionId;return Ef(["smart-routing-workflow-version",n,t],(function(){return fh.getInstance().getSmartRoutingWorkflowVersion(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!n&&!!t,cacheTime:0})}function Jb(e,t,n){return Ef(["smart-routing-next-route",e,n,t],(function(){return fh.getInstance().getSmartRoutingNextSteps(e,t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function Yb(e){return Ef(["smart-routing-decline-groups",e],(function(){return fh.getInstance().getSmartRoutingDeclinedGroup(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function Xb(e){return Ef(["smart-routing-tutorial",e],(function(){return fh.getInstance().getSmartRoutingTutorial(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function Zb(e,t){return Ef(["smart-routing-payment-route",e,t],(function(){return fh.getInstance().getSmartRoutingPaymentRoute(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&!!t,cacheTime:0})}function ek(e){return Ef(["smart-routing-simulate-condition-type-values",e],(function(){return fh.getInstance().getSmartRoutingSimulateConditionTypeValues(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function tk(e){var t=e.text,n=e.conditionType;return Ef(["smart-routing-search-condition-values",t,n],(function(){return fh.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 nk(){return Ef(["smart-routing-conversion-rates"],(function(){return fh.getInstance().getProviderConversionRatesData().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!1,useErrorBoundary:!1})}function ok(){var e=this;return Ef({queryKey:["smart-routing-3ds-excemptions"],queryFn:function(){return t(e,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,fh.getInstance().get3DSExemptions()];case 1:return[2,e.sent().data]}}))}))},useErrorBoundary:!1})}function ak(e){return Ef(["fetch-routing-monitors-templates",e],(function(){return fh.getInstance().getRoutingMonitorsTemplates(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function ik(e,t){return Ef(["fetch-routing-monitors-template",e],(function(){return fh.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 rk(e){var t=e.accountCode;return Ef(["checkouts",t],(function(){return fh.getInstance().getCheckouts({accountCode:t}).then((function(e){return e.data}))}),{cacheTime:0,enabled:Boolean(t)})}function sk(e){var t=e.accountCode;return Ef(["checkouts-template"],(function(){return fh.getInstance().getCheckoutTemplate({accountCode:t}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,enabled:Boolean(t)})}var ck=function(e){return["checkout-builder-name-and-icon",e.paymentMethodType,e.type]},uk=function(e,t){var n=e.paymentMethodType,o=e.type;return Ef(ck({paymentMethodType:n,type:o}),(function(){return fh.getInstance().getNameAndIcon({paymentMethodType:n,type:o}).then((function(e){return null==e?void 0:e.data}))}),t)},lk=function(e){return["checkout-builder-required-fields",e.paymentMethodType,e.type]},pk=function(e,t){var n=e.paymentMethodType,o=e.type;return Ef(lk({paymentMethodType:n,type:o}),(function(){return fh.getInstance().getRequiredFields({paymentMethodType:n,type:o}).then((function(e){return null==e?void 0:e.data}))}),t)};function dk(e){var t=e.accountCode;return Ef(["styling-theme",t],(function(){return fh.getInstance().getStylingTheme({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 mk(e){var t=e.accountCode;return Ef(["styling-settings",t],(function(){return fh.getInstance().getStylingSettings({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 hk(){return Ef(["fetch-profile"],(function(){return fh.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 fk(e,t){return Ef(["fetch-permissions",e,t],(function(){var e,t,n,o=localStorage.getItem("account"),a=localStorage.getItem("user"),i=o&&JSON.parse(o),r=a&&JSON.parse(a);return((null==r?void 0:r.merlin)?null===(e=null==r?void 0:r.merlin)||void 0===e?void 0:e.permissions:null===(n=null===(t=null==i?void 0:i.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 gk(e){return Ef(["email-verification",e],(function(){return fh.getInstance().emailVerification(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function yk(e){return Ef(["login-sso",e],(function(){return fh.getInstance().getLoginSSO(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function vk(){return Ef({queryKey:["get-login-methods"],queryFn:function(){return fh.getInstance().getLoginMethods().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}})}function bk(e){return Ef(["notifications-customer",e],(function(){return fh.getInstance().getNotificationsCustomer(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,keepPreviousData:!1})}function kk(e){return Ef(["validate-opsgenie-key",e],(function(){return fh.getInstance().getValidateOpsgenieKey(e).then((function(e){return null==e?void 0:e.data})).catch((function(){return{error:!0}}))}),{enabled:!!e,cacheTime:0})}function xk(){return Ef(["notifications-merged"],(function(){return fh.getInstance().getMergedNotifications().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{keepPreviousData:!1,cacheTime:0})}function wk(e){return Ef(["notifications-account",e],(function(){return fh.getInstance().getNotificationsCustomer(e).then((function(e){return null==e?void 0:e.data}))}))}function jk(e){return Ef(["notifications-number",e],(function(){return fh.getInstance().getNotificationsNumber(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function Ck(){return Sf((function(e){return fh.getInstance().getNotificationsNumber(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Ek(){var e=this;return Sf((function(o){return t(e,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().pathNotification(o)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}}))}))}))}var Sk={key:"metadata_fields",name:"metadata_fields"};function _k(){return Ef(["reports"],(function(){return fh.getInstance().reportsList().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Rk(e){return void 0===e&&(e=!0),Ef(["reports-multi-env"],(function(){return fh.getInstance().reportsListMultiEnv().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e})}function Tk(e,t,n){return void 0===t&&(t=!1),Ef(["reports/".concat(e)],(function(){return fh.getInstance().downloadReports(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:t,onSuccess:n,useErrorBoundary:!1})}function Ik(e){return Ef(["GET/reports/templates"],(function(){return fh.getInstance().getReportTemplates().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e,useErrorBoundary:!1})}function Ok(t,n,o){return Ef(["GET/reports/columns/".concat(n,"/").concat(o)],(function(){return fh.getInstance().getReportColumns(n,o).then((function(t){return"ALL"===n&&"PAYMENTS"===o?e(e([],null==t?void 0:t.data,!0),[Sk],!1):null==t?void 0:t.data})).catch((function(e){return e}))}),{enabled:t,useErrorBoundary:!1})}function Ak(e){var o=this,a=Ov();return Ef(["getRefundPdf",e,a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,fh.getInstance().getRefundPdf(e,a).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))]}))}))}),{enabled:!!e&&!!a,useErrorBoundary:!1})}function zk(e){return Ef(["fetch-members"],(function(){return fh.getInstance().getMembers(e).then((function(e){return null==e?void 0:e.data}))}),{keepPreviousData:!0})}function Pk(e){var t=e.organizationCode,n=Ov();return Ef(["fetch-members-v3",t],(function(){return t?fh.getInstance().getMembersV3({organizationCode:n}).then((function(e){return null==e?void 0:e.data})):null}),{enabled:!!t,cacheTime:0})}function Lk(){var e=Ov();return Ef(["teams-filters-members"],(function(){return fh.getInstance().teamsFiltersMembers({organizationCode:e}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0})}function Dk(e){var t=e.organizationCode,n=e.accountCodes,o=Ov();return Ef(["fetch-members-v4",t,n],(function(){return n?t?fh.getInstance().getMembersV4({organizationCode:o,accountCodes:n}).then((function(e){return null==e?void 0:e.data})):null:{}}),{enabled:!!t&&!!n,cacheTime:0})}function qk(e){var t=e.organizationCode,n=e.accountCodes,o=Ov();return Ef(["fetch-post-members-v4",t,n],(function(){return fh.getInstance().postMembersV4({organizationCode:o,accountCodes:n}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&!!n,cacheTime:0})}function Nk(e){var t=e.organizationCode,n=e.accountCodes,o=e.page,a=e.pageSize,i=Ov();return Ef(["fetch-post-members-v4",t,n,o,a],(function(){return fh.getInstance().postMembersPaginated({organizationCode:i,accountCodes:n,page:o,pageSize:a}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&!!n,cacheTime:0,useErrorBoundary:!1})}function Mk(e){var t=e.organizationCode,n=e.accountCodes,o=e.email,a=e.page,i=e.pageSize,r=Ov();return Ef(["fetch-post-members-v2",t,n,o,a,i],(function(){return fh.getInstance().postMembersPaginatedV2({organizationCode:r,accountCodes:n,email:o,page:a,pageSize:i}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&!!n,cacheTime:0,useErrorBoundary:!1})}function Fk(){return Ef(["fetch-roles"],(function(){return fh.getInstance().getRoles().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Uk(){return Ef(["fetch-rolespermissions"],(function(){return fh.getInstance().getRolesPermissions().then((function(e){return null==e?void 0:e.data}))}))}function Bk(){return Ef(["fetch-permissions-catalog"],(function(){return fh.getInstance().getPermissionsCatalog().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Wk(e){return Ef(["data-report",e],(function(){return fh.getInstance().getSmartRoutingDataReport(e).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,useErrorBoundary:!1})}function Hk(e,t,n){return Ef(["data-insights",e],(function(){return("LOCAL"===process.env.ENVIRONMENT||"DEV"===process.env.ENVIRONMENT||localStorage.getItem("log_metrics"))&&(console.log("%c ".concat(e.key_metric),"background: #222; color: #bada55"),console.log(e)),fh.getInstance().getDashboardInsights(e).then((function(e){return null==e?void 0:e.data}))}),{keepPreviousData:n,enabled:!!e.account_code&&!!t&&!!e.key_metric&&"Empty"!==e.currency_code,cacheTime:0,useErrorBoundary:!1})}function Vk(e,t){return Ef(["get-isolated-metric",e],(function(){return fh.getInstance().getDashboardInsights(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e.account_code,cacheTime:0,keepPreviousData:t,useErrorBoundary:!1})}function Gk(e){return Ef(["get-insights-conversion-rate-metrics",e],(function(){return fh.getInstance().getInsightsMetricsConversionRate(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 $k(e,t){return Ef(["get-insights-conversion-rate-metrics-v2",e,t],(function(){return fh.getInstance().getInsightsMetricsConversionRateV2(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!(null==e?void 0:e.enabled)&&void 0!==e.account_code,cacheTime:0,useErrorBoundary:!1})}function Kk(e,t){return Ef(["get-insights-conversion-rate-view-more-metrics",t,e],(function(){return fh.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 Qk(e){return Ef(["get-insights-conversion-rate-fallback-metrics",e],(function(){return fh.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,Ef(["get-insights-volume-metrics",t,e],(function(){return fh.getInstance().getInsightsMetricsVolume(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function Yk(e,t,n,o){return void 0===o&&(o=!0),delete t.account_code,Ef(["get-insights-volume-metrics-v2",t,e,n],(function(){return fh.getInstance().getInsightsMetricsVolumeV2(e,n,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:o,cacheTime:200,useErrorBoundary:!1})}function Xk(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Ef(["get-insights-total-payment-fraud-metrics",t,e],(function(){return fh.getInstance().getInsightsMetricsTotalPaymentsAndFraud(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function Zk(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Ef(["get-insights-customer-payment-fraud-metrics",t,e],(function(){return fh.getInstance().getInsightsMetricsCustomerPaymentsAndFraud(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function ex(e){return Ef(["get-insights-overview",e],(function(){return fh.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 tx(e,t){var n=!!(null==e?void 0:e.enabled)&&void 0!==(null==e?void 0:e.account_code);return Ef(["get-insights-overview-v3",e,t],(function(){return fh.getInstance().getInsightOverviewV3(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:0,useErrorBoundary:!1})}function nx(e){return Ef(["get-insights-home-metrics",e],(function(){return fh.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 ox(e){return Ef(["get-insights-reports",e],(function(){return fh.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 ax(e){return Ef(["get-insights-reports-again",e],(function(){return fh.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 ix(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-fraud-screening-volume-and-count-tx",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsightsFraudScreeningVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function rx(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-fraud-screening-conversion-rate",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsightsFraudScreeningConversionRate(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function sx(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-3ds-volume-and-count-tx",o,e],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsights3dsVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function cx(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-3ds-conversion-rate-and-evolution",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsights3dsConversionRateAndEvolution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function ux(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-3ds-decline-reasons",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsights3dsDeclineReasons(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function lx(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-3ds-frictionless-vs-challenge",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsights3dsFrictionlessVsChallenge(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function px(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-chargebacks-volume-and-count-tx",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsightsChargebacksVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function dx(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-chargebacks-win-rate",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsightsChargebacksWinRate(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function mx(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-chargebacks-disputed",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsightsChargebacksDisputed(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function hx(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-chargebacks-by-provider-and-card-brand",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsightsChargebacksByProviderAndCardBrand(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function fx(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-chargebacks-reasons-distribution",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsightsChargebacksReasonsDistribution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function gx(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-chargebacks-status-distribution",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsightsChargebacksStatusDistribution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function yx(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-chargebacks-by-card-brand",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsightsChargebacksByCardBrand(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}var vx=function(e,o,i){return void 0===i&&(i={}),Ef(["conversion-rate-overview",e,o],(function(){return t(void 0,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsightsConversionRateOverview(o,e)];case 1:return[2,t.sent()]}}))}))}),a({useErrorBoundary:!1},i))},bx=function(e,o,i){return void 0===i&&(i={}),Ef(["conversion-rate-overview-fraud-3ds",e,o],(function(){return t(void 0,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsightsConversionRateOverviewFraud3ds(o,e)];case 1:return[2,t.sent()]}}))}))}),a({useErrorBoundary:!1},i))};function kx(e,t){return Ef(["fetch-reconciliation-transaction",e],(function(){return fh.getInstance().getReconciliationTransactions(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t,useErrorBoundary:!1})}function xx(e,t){return Ef(["fetch-reconciliation-settlements",e],(function(){return fh.getInstance().getReconciliationSettlements(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t,useErrorBoundary:!1})}function wx(e,t){return Ef(["fetch-reconciliation-settlements-header",e],(function(){return fh.getInstance().getReconciliationSettlementsHeader(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t,cacheTime:500})}function jx(e,t){return Ef(["fetch-reconciliation-settlements-body",e],(function(){return fh.getInstance().getReconciliationSettlementsBody(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t,cacheTime:500})}function Cx(e,t){return Ef(["fetch-reconciliation-metrics",e],(function(){return fh.getInstance().getReconciliationMetrics(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t,cacheTime:500})}function Ex(){return Ef(["GET-reconciliation-filters"],(function(){return fh.getInstance().getReconciliationFilters().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Sx(e){return Ef(["GET/v1/reconciliation/table/".concat(e,"/columns")],(function(){return fh.getInstance().getAllTableColumns(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function _x(){return Ef(["GET/v1/reconciliation/active"],(function(){return fh.getInstance().getReconciliationActive().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Rx(e,t,n){return Ef(["GET/reconciliation/reports/columns/".concat(t,"/").concat(n)],(function(){return fh.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 Tx(e){return Ef(["GET/reconciliation/reports/templates"],(function(){return fh.getInstance().getReconciliationReportTemplates().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{enabled:e,useErrorBoundary:!1})}function Ix(e){var t=e.body,n=e.params,o=e.enabled;return Ef(["GET/reconciliation/alerts/list",t,n],(function(){return fh.getInstance().getReconciliationAlerts(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Ox(e){var t=e.body,n=e.params,o=e.enabled;return Ef(["GET/reconciliation/agenda/list",t,n],(function(){return fh.getInstance().getReconciliationAgenda(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Ax(e){var t=e.body,n=e.params,o=e.enabled;return Ef(["GET/reconciliation/agenda/insights",t,n],(function(){return fh.getInstance().getReconciliationAgendaInsightByKey(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function zx(e){var t=e.body,n=e.params,o=e.enabled;return Ef(["GET/reconciliation/sales/list",t,n],(function(){return fh.getInstance().getReconciliationSales(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Px(e){var t=e.body,n=e.params,o=e.enabled;return Ef(["GET/reconciliation/advancements/list",t,n],(function(){return fh.getInstance().getReconciliationAdvancements(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Lx(e){var t=e.body,n=e.params,o=e.enabled;return Ef(["GET/reconciliation/fees/list",t,n],(function(){return fh.getInstance().getReconciliationFees(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Dx(e){var o=this,a=Object.values(e).filter(Boolean);return Ef(["feature-flags",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,fh.getInstance().getFeatureFlagId(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:a.length>1,useErrorBoundary:!1})}var qx=["FRAUD_INSIGHTS","STARROCKS_OVERVIEW_INSIGHTS","SHOW-BR-TABS","RECONCILIATION-TABS-V2","SHOW-RECON-FEES-TAB"];function Nx(e){var o=this,a=Ef({queryKey:["all-feature-flags",Object.values(e).filter(Boolean)],queryFn:function(){return t(o,void 0,void 0,(function(){var t,o;return n(this,(function(n){return t=fh.getInstance(),o={names:qx,body:e},[2,t.getFeatureFlagIdAll(o).then((function(e){return null==e?void 0:e.data}))]}))}))},enabled:!!e.account_code&&!!e.organization_code&&!!e.email,useErrorBoundary:!1}),i=bf();return C((function(){i.setQueryData(["cached-feature-flags"],a)}),[a,i]),a}function Mx(e){var t=bf();return Ef({queryKey:["cached-feature-flags"],queryFn:function(){},enabled:!1,select:function(t){var n;return{result:null===(n=t.data)||void 0===n?void 0:n[e]}},initialData:function(){var e=t.getQueryData(["cached-feature-flags"]);return(null==e?void 0:e.data)||{}}})}function Fx(e){return Ef(["events",e],(function(){return fh.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 Ux(e){return Ef(["audit-monitor-event-detail",e],(function(){return fh.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 Bx(e,t){return Ef(["fetch-payment-links",e,t],(function(){return fh.getInstance().getPaymentLinks(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,cacheTime:0})}function Wx(e){return Ef(["payment-link"],(function(){return fh.getInstance().getPaymentLinksByCode(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function Hx(e){var t=e.accountCode;return Ef(["products"],(function(){return fh.getInstance().getProductsByAccount({accountCode:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t})}function Vx(e,t){return Ef(["fetch-payments-by-link-code",e],(function(){return fh.getInstance().getPaymentsByPaymentLink(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e})}function Gx(e){return void 0===e&&(e=!0),Ef(["countries",e],(function(){return fh.getInstance().useGetCountriesConfig().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e,keepPreviousData:!0})}function $x(e){return Ef(["timezone"],(function(){return fh.getInstance().getTimezone(e).then((function(e){return Xm(e)?nh:null==e?void 0:e.data})).catch((function(){return nh}))}),{enabled:!0,keepPreviousData:!0})}function Kx(e){return Sf((function(e){var t=e.payload;return fh.getInstance().firebaseUserSubscribe(t)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Qx(e,t){return Ef(["get-cofig-allow-list",e],(function(){return fh.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 Jx(e){return Ef(["get-black-list",e],(function(){return fh.getInstance().getBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!e})}function Yx(e,t,n,o){var a;return Ef(["post-black-list",e],(function(){return fh.getInstance().postBlockList(e,null!=t?t:"",null!=n?n:0,null!=o?o:25).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:(null===(a=e[0])||void 0===a?void 0:a.length)>0&&null!==t,useErrorBoundary:!1})}function Xx(e){return Ef(["get-one-black-list",e],(function(){return fh.getInstance().getOneBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function Zx(e,t,n){return Ef(["get-block-list-summary",e,t,n],(function(){var o=fh.getInstance();return n?o.getBlackListSummary(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e})):Promise.resolve({})}),{enabled:!!e&&!!n})}function ew(e,t,n,o,a,i){return Ef(["black-list-detail",e,t,o,a,i],(function(){return fh.getInstance().getBlacklistDetail(e,t,n,o,a).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&i,cacheTime:0})}function tw(e,t,n){return Ef(["allow-list-detail",e],(function(){return fh.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){return Ef(["query-post-get-allowlist-multi-account",JSON.stringify(e)],(function(){return fh.getInstance().postGetAllowlist({payload:e}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function ow(e,o){var a=this;return void 0===e&&(e=26),void 0===o&&(o=0),Ef(["batch-refunds",e,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,fh.getInstance().getBatchRefunds(e,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{cacheTime:0})}function aw(e){return Ef(["velocity-rules",e],(function(){var t=fh.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 iw(){return Ef(["config-rules"],(function(){return fh.getInstance().getAllConfigRules().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0})}function rw(e,t){var n=e.organizationCode;return Ef(["mfa-excluded-users",n],(function(){return fh.getInstance().getMFAExcludedUsers({organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function sw(e,t){var n=e.organizationCode;return Ef(["mfa-config",n],(function(){return fh.getInstance().getMFAConfig({organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function cw(e,t){return Ef(["mfa-enforcement-status",e.accountCode],(function(){return fh.getInstance().getMFAEnforcementStatus().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function uw(e){return Ef(["fetch-organization-saml-config",e],(function(){return fh.getInstance().getSamlConfig().then((function(e){return e.data}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function lw(e){return Ef(["chartgpt-chart-execute",e],(function(){return fh.getInstance().executeChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e})}function pw(){return Ef(["chartgpt-user-charts"],(function(){return fh.getInstance().getChartsByUser().then((function(e){return null==e?void 0:e.data}))}))}function dw(){var e=this;return Ef(["chartgpt-user-charts-with-results"],(function(){return t(e,void 0,void 0,(function(){var e,o,i,r=this;return n(this,(function(s){switch(s.label){case 0:return[4,(e=fh.getInstance()).getChartsByUser()];case 1:return o=s.sent(),i=(null==o?void 0:o.data)||[],[4,Promise.all(i.map((function(o){return t(r,void 0,void 0,(function(){var t,i,r;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e.executeChartGPTChart(o.chartgpt_id)];case 1:return t=n.sent(),[2,a(a({},o),{results:(null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.results)||[]})];case 2:return i=n.sent(),console.error("Failed to execute chart ".concat(o.chartgpt_id,":"),i),[2,a(a({},o),{results:[]})];case 3:return[2]}}))}))})))];case 2:return[2,s.sent()]}}))}))}))}function mw(){return mw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},mw.apply(this,arguments)}
|
|
224
224
|
/**
|
|
225
225
|
* match-sorter-utils
|
|
226
226
|
*
|
|
@@ -237,5 +237,5 @@ function ra(e){const t=ia.parse(e),n={};for(const e in t)void 0!==t[e]&&(n[e]=t[
|
|
|
237
237
|
* @copyright (c) 2099 Kent C. Dodds
|
|
238
238
|
* @author Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)
|
|
239
239
|
*/
|
|
240
|
-
const yw=7,vw=6,bw=5,kw=4,xw=3,ww=2,jw=1,Cw=0;function Ew(e,t,n){var o;if((n=n||{}).threshold=null!=(o=n.threshold)?o:jw,!n.accessors){const o=Sw(e,t,n);return{rankedValue:e,rank:o,accessorIndex:-1,accessorThreshold:n.threshold,passed:o>=n.threshold}}const a=function(e,t){const n=[];for(let o=0,a=t.length;o<a;o++){const a=t[o],i=Iw(a),r=Rw(e,a);for(let e=0,t=r.length;e<t;e++)n.push({itemValue:r[e],attributes:i})}return n}(e,n.accessors),i={rankedValue:e,rank:Cw,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let e=0;e<a.length;e++){const o=a[e];let r=Sw(o.itemValue,t,n);const{minRanking:s,maxRanking:c,threshold:u=n.threshold}=o.attributes;r<s&&r>=jw?r=s:r>c&&(r=c),r=Math.min(r,c),r>=u&&r>i.rank&&(i.rank=r,i.passed=!0,i.accessorIndex=e,i.accessorThreshold=u,i.rankedValue=o.itemValue)}return i}function Sw(e,t,n){return e=_w(e,n),(t=_w(t,n)).length>e.length?Cw:e===t?yw:(e=e.toLowerCase())===(t=t.toLowerCase())?vw:e.startsWith(t)?bw:e.includes(` ${t}`)?kw:e.includes(t)?xw:1===t.length?Cw:function(e){let t="";return e.split(" ").forEach((e=>{e.split("-").forEach((e=>{t+=e.substr(0,1)}))})),t}(e).includes(t)?ww:function(e,t){let n=0,o=0;function a(e,t,o){for(let a=o,i=t.length;a<i;a++){if(t[a]===e)return n+=1,a+1}return-1}function i(e){const o=1/e,a=n/t.length;return jw+a*o}const r=a(t[0],e,0);if(r<0)return Cw;o=r;for(let n=1,i=t.length;n<i;n++){o=a(t[n],e,o);if(!(o>-1))return Cw}const s=o-r;return i(s)}(e,t)}function _w(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=e.replace(gw,(e=>hw[e]))),e}function Rw(e,t){let n=t;"object"==typeof t&&(n=t.accessor);const o=n(e);return null==o?[]:Array.isArray(o)?o:[String(o)]}const Tw={maxRanking:1/0,minRanking:-1/0};function Iw(e){return"function"==typeof e?Tw:{...Tw,...e}}function Ow(e,t){const[n,o]=k.useState();k.useEffect((()=>{const n=(e=>{try{const t=localStorage.getItem(e);return"string"==typeof t?JSON.parse(t):void 0}catch{return}})(e);o(null==n?"function"==typeof t?t():t:n)}),[t,e]);return[n,k.useCallback((t=>{o((n=>{let o=t;"function"==typeof t&&(o=t(n));try{localStorage.setItem(e,JSON.stringify(o))}catch{}return o}))}),[e])]}var Aw,zw=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}(),Pw=function(){function e(e){this.generateIdentifier=e,this.kv=new zw}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}(),Lw=(Aw=function(e,t){return Aw=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])},Aw(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}Aw(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Dw=function(e){function t(){var t=e.call(this,(function(e){return e.name}))||this;return t.classToAllowedProps=new Map,t}return Lw(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}(Pw),qw=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)r.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return r};function Nw(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 o=n,a=0;a<o.length;a++){var i=o[a];if(t(i))return i}}function Mw(e,t){Object.entries(e).forEach((function(e){var n=qw(e,2),o=n[0],a=n[1];return t(a,o)}))}function Fw(e,t){return-1!==e.indexOf(t)}function Uw(e,t){for(var n=0;n<e.length;n++){var o=e[n];if(t(o))return o}}var Bw=function(){function e(){this.transfomers={}}return e.prototype.register=function(e){this.transfomers[e.name]=e},e.prototype.findApplicable=function(e){return Nw(this.transfomers,(function(t){return t.isApplicable(e)}))},e.prototype.findByName=function(e){return this.transfomers[e]},e}(),Ww=function(e){return void 0===e},Hw=function(e){return"object"==typeof e&&null!==e&&(e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype))},Vw=function(e){return Hw(e)&&0===Object.keys(e).length},Gw=function(e){return Array.isArray(e)},$w=function(e){return e instanceof Map},Kw=function(e){return e instanceof Set},Qw=function(e){return"Symbol"===function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e)},Jw=function(e){return"number"==typeof e&&isNaN(e)},Yw=function(e){return function(e){return"boolean"==typeof e}(e)||function(e){return null===e}(e)||Ww(e)||function(e){return"number"==typeof e&&!isNaN(e)}(e)||function(e){return"string"==typeof e}(e)||Qw(e)},Xw=function(e){return e.replace(/\./g,"\\.")},Zw=function(e){return e.map(String).map(Xw).join(".")},ej=function(e){for(var t=[],n="",o=0;o<e.length;o++){var a=e.charAt(o);if("\\"===a&&"."===e.charAt(o+1))n+=".",o++;else"."===a?(t.push(n),n=""):n+=a}var i=n;return t.push(i),t},tj=function(){return tj=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},tj.apply(this,arguments)},nj=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)r.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return r},oj=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e};function aj(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var ij=[aj(Ww,"undefined",(function(){return null}),(function(){})),aj((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)})),aj((function(e){return e instanceof Date&&!isNaN(e.valueOf())}),"Date",(function(e){return e.toISOString()}),(function(e){return new Date(e)})),aj((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})),aj((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)})),aj(Kw,"set",(function(e){return oj([],nj(e.values()))}),(function(e){return new Set(e)})),aj($w,"map",(function(e){return oj([],nj(e.entries()))}),(function(e){return new Map(e)})),aj((function(e){return Jw(e)||((t=e)===1/0||t===-1/0);var t}),"number",(function(e){return Jw(e)?"NaN":e>0?"Infinity":"-Infinity"}),Number),aj((function(e){return 0===e&&1/e==-1/0}),"number",(function(){return"-0"}),Number),aj((function(e){return e instanceof URL}),"URL",(function(e){return e.toString()}),(function(e){return new URL(e)}))];function rj(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var sj=rj((function(e,t){return!!Qw(e)&&!!t.symbolRegistry.getIdentifier(e)}),(function(e,t){return["symbol",t.symbolRegistry.getIdentifier(e)]}),(function(e){return e.description}),(function(e,t,n){var o=n.symbolRegistry.getValue(t[1]);if(!o)throw new Error("Trying to deserialize unknown symbol");return o})),cj=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((function(e,t){return e[t.name]=t,e}),{}),uj=rj((function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}),(function(e){return["typed-array",e.constructor.name]}),(function(e){return oj([],nj(e))}),(function(e,t){var n=cj[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)}));function lj(e,t){return!!(null==e?void 0:e.constructor)&&!!t.classRegistry.getIdentifier(e.constructor)}var pj=rj(lj,(function(e,t){return["class",t.classRegistry.getIdentifier(e.constructor)]}),(function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return tj({},e);var o={};return n.forEach((function(t){o[t]=e[t]})),o}),(function(e,t,n){var o=n.classRegistry.getValue(t[1]);if(!o)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(o.prototype),e)})),dj=rj((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 o=n.customTransformerRegistry.findByName(t[1]);if(!o)throw new Error("Trying to deserialize unknown custom value");return o.deserialize(e)})),mj=[pj,sj,dj,uj],hj=function(e,t){var n=Uw(mj,(function(n){return n.isApplicable(e,t)}));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var o=Uw(ij,(function(n){return n.isApplicable(e,t)}));return o?{value:o.transform(e,t),type:o.annotation}:void 0},fj={};ij.forEach((function(e){fj[e.annotation]=e}));var gj=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function yj(e){if(Fw(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Fw(e,"prototype"))throw new Error("prototype is not allowed as a property");if(Fw(e,"constructor"))throw new Error("constructor is not allowed as a property")}var vj=function(e,t,n){if(yj(t),0===t.length)return n(e);for(var o=e,a=0;a<t.length-1;a++){var i=t[a];if(Gw(o))o=o[+i];else if(Hw(o))o=o[i];else if(Kw(o)){o=gj(o,r=+i)}else if($w(o)){if(a===t.length-2)break;var r=+i,s=0==+t[++a]?"key":"value",c=gj(o,r);switch(s){case"key":o=c;break;case"value":o=o.get(c)}}}var u=t[t.length-1];if(Gw(o)?o[+u]=n(o[+u]):Hw(o)&&(o[u]=n(o[u])),Kw(o)){var l=gj(o,+u),p=n(l);l!==p&&(o.delete(l),o.add(p))}if($w(o)){r=+t[t.length-2];var d=gj(o,r);switch(s=0==+u?"key":"value"){case"key":var m=n(d);o.set(m,o.get(d)),m!==d&&o.delete(d);break;case"value":o.set(d,n(o.get(d)))}}return e},bj=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)r.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return r},kj=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e};function xj(e,t,n){if(void 0===n&&(n=[]),e)if(Gw(e)){var o=bj(e,2),a=o[0],i=o[1];i&&Mw(i,(function(e,o){xj(e,t,kj(kj([],bj(n)),bj(ej(o))))})),t(a,n)}else Mw(e,(function(e,o){return xj(e,t,kj(kj([],bj(n)),bj(ej(o))))}))}function wj(e,t,n){return xj(t,(function(t,o){e=vj(e,o,(function(e){return function(e,t,n){if(!Gw(t)){var o=fj[t];if(!o)throw new Error("Unknown transformation: "+t);return o.untransform(e,n)}switch(t[0]){case"symbol":return sj.untransform(e,t,n);case"class":return pj.untransform(e,t,n);case"custom":return dj.untransform(e,t,n);case"typed-array":return uj.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}}(e,t,n)}))})),e}function jj(e,t){function n(t,n){var o=function(e,t){yj(t);for(var n=0;n<t.length;n++){var o=t[n];if(Kw(e))e=gj(e,+o);else if($w(e)){var a=+o,i=0==+t[++n]?"key":"value",r=gj(e,a);switch(i){case"key":e=r;break;case"value":e=e.get(r)}}else e=e[o]}return e}(e,ej(n));t.map(ej).forEach((function(t){e=vj(e,t,(function(){return o}))}))}if(Gw(t)){var o=bj(t,2),a=o[0],i=o[1];a.forEach((function(t){e=vj(e,ej(t),(function(){return e}))})),i&&Mw(i,n)}else Mw(t,n);return e}var Cj=function(e,t,n,o,a,i,r){var s;void 0===a&&(a=[]),void 0===i&&(i=[]),void 0===r&&(r=new Map);var c=Yw(e);if(!c){!function(e,t,n){var o=n.get(e);o?o.push(t):n.set(e,[t])}(e,a,t);var u=r.get(e);if(u)return o?{transformedValue:null}:u}if(!function(e,t){return Hw(e)||Gw(e)||$w(e)||Kw(e)||lj(e,t)}(e,n)){var l=hj(e,n),p=l?{transformedValue:l.value,annotations:[l.type]}:{transformedValue:e};return c||r.set(e,p),p}if(Fw(i,e))return{transformedValue:null};var d=hj(e,n),m=null!==(s=null==d?void 0:d.value)&&void 0!==s?s:e,h=Gw(m)?[]:{},f={};Mw(m,(function(s,c){var u=Cj(s,t,n,o,kj(kj([],bj(a)),[c]),kj(kj([],bj(i)),[e]),r);h[c]=u.transformedValue,Gw(u.annotations)?f[c]=u.annotations:Hw(u.annotations)&&Mw(u.annotations,(function(e,t){f[Xw(c)+"."+t]=e}))}));var g=Vw(f)?{transformedValue:h,annotations:d?[d.type]:void 0}:{transformedValue:h,annotations:d?[d.type,f]:f};return c||r.set(e,g),g};function Ej(e){return Object.prototype.toString.call(e).slice(8,-1)}function Sj(e){return"Array"===Ej(e)}function _j(e,t={}){if(Sj(e))return e.map((e=>_j(e,t)));if(!function(e){if("Object"!==Ej(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,o)=>{if(Sj(t.props)&&!t.props.includes(o))return n;return function(e,t,n,o,a){const i={}.propertyIsEnumerable.call(o,t)?"enumerable":"nonenumerable";"enumerable"===i&&(e[t]=n),a&&"nonenumerable"===i&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}(n,o,_j(e[o],t),e,t.nonenumerable),n}),{})}var Rj=function(){return Rj=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Rj.apply(this,arguments)},Tj=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)r.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return r},Ij=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e},Oj=function(){function e(e){var t=(void 0===e?{}:e).dedupe,n=void 0!==t&&t;this.classRegistry=new Dw,this.symbolRegistry=new Pw((function(e){var t;return null!==(t=e.description)&&void 0!==t?t:""})),this.customTransformerRegistry=new Bw,this.allowedErrorProps=[],this.dedupe=n}return e.prototype.serialize=function(e){var t=new Map,n=Cj(e,t,this,this.dedupe),o={json:n.transformedValue};n.annotations&&(o.meta=Rj(Rj({},o.meta),{values:n.annotations}));var a,i,r,s,c=(a=t,i=this.dedupe,r={},s=void 0,a.forEach((function(e){if(!(e.length<=1)){i||(e=e.map((function(e){return e.map(String)})).sort((function(e,t){return e.length-t.length})));var t=bj(e),n=t[0],o=t.slice(1);0===n.length?s=o.map(Zw):r[Zw(n)]=o.map(Zw)}})),s?Vw(r)?[s]:[s,r]:Vw(r)?void 0:r);return c&&(o.meta=Rj(Rj({},o.meta),{referentialEqualities:c})),o},e.prototype.deserialize=function(e){var t=e.json,n=e.meta,o=_j(t);return(null==n?void 0:n.values)&&(o=wj(o,n.values,this)),(null==n?void 0:n.referentialEqualities)&&(o=jj(o,n.referentialEqualities)),o},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(Rj({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,Ij([],Tj(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 Aj={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",paused:"#8c49eb",warning:"#ffb200"},zj=k.createContext(Aj);function Pj({theme:e,...t}){return k.createElement(zj.Provider,mw({value:e},t))}function Lj({queryState:e,observerCount:t,isStale:n,theme:o}){return"fetching"===e.fetchStatus?o.active:t?"paused"===e.fetchStatus?o.paused:n?o.warning:o.success:o.gray}function Dj(e){return"fetching"===e.state.fetchStatus?"fetching":e.getObserversCount()?"paused"===e.state.fetchStatus?"paused":e.isStale()?"stale":"fresh":"inactive"}function qj(e,t,n={}){return k.forwardRef((({style:o,...a},i)=>{const r=k.useContext(zj),s=Object.entries(n).reduce(((e,[t,n])=>function(e){const[t,n]=k.useState((()=>{if("undefined"!=typeof window)return window.matchMedia(e).matches}));return k.useEffect((()=>{if("undefined"!=typeof window){const t=window.matchMedia(e),o=({matches:e})=>n(e);return t.addListener(o),()=>{t.removeListener(o)}}}),[t,e,n]),t}(t)?{...e,..."function"==typeof n?n(a,r):n}:e),{});return k.createElement(e,{...a,style:{..."function"==typeof t?t(a,r):t,...o,...s},ref:i})}))}const Nj=(e,t=!1)=>{const{json:n}=Oj.serialize(e);return JSON.stringify(n,null,t?2:void 0)},Mj=e=>"idle"!==e.state.fetchStatus?0:e.getObserversCount()?e.isStale()?2:1:3,Fj=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,Uj={"Status > Last Updated":(e,t)=>Mj(e)===Mj(t)?Fj(e,t):Mj(e)>Mj(t)?1:-1,"Query Hash":(e,t)=>e.queryHash.localeCompare(t.queryHash),"Last Updated":Fj},Bj=500,Wj={top:"bottom",bottom:"top",left:"right",right:"left"};function Hj(e){return["left","right"].includes(e)}function Vj(e){return Wj[e]}function Gj(e,t){return""+e+(t.charAt(0).toUpperCase()+t.slice(1))}function $j(e="bottom"){const t=Hj(e),n=Vj(e),o=Gj("margin",n);return{position:"absolute",cursor:t?"col-resize":"row-resize",zIndex:1e5,[n]:0,[o]:"-4px",...t?{top:0,height:"100%",width:"4px"}:{width:"100%",height:"4px"}}}const Kj=qj("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"}}),Qj=qj("div",(()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"})),{"(max-width: 700px)":(e,t)=>({borderTop:"2px solid "+t.gray})}),Jj=qj("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"}))),Yj=qj("span",{display:"flex",flexWrap:"wrap",gap:"0.5em",fontSize:"0.9em"}),Xj=qj("span",{display:"inline-flex",alignItems:"center",padding:".2em .4em",fontWeight:"bold",textShadow:"0 0 10px black",borderRadius:".2em"}),Zj=qj("code",{fontSize:".9em",color:"inherit",background:"inherit"}),eC=qj("input",((e,t)=>({backgroundColor:t.inputBackgroundColor,border:0,borderRadius:".2em",color:t.inputTextColor,fontSize:".9em",lineHeight:"1.3",padding:".3em .4em"}))),tC=qj("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 nC({text:e}){return k.createElement("span",{style:{position:"absolute",width:"0.1px",height:"0.1px",overflow:"hidden"}},e)}const oC=qj("div",{fontFamily:"Menlo, monospace",fontSize:"1em",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),aC=qj("span",{color:"white"}),iC=qj("button",{cursor:"pointer",color:"white"}),rC=qj("button",{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}),sC=({value:e})=>{const[t,n]=k.useState("NoCopy");return k.createElement("button",{onClick:"NoCopy"===t?()=>{navigator.clipboard.writeText(Oj.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?k.createElement(dC,null):"SuccessCopy"===t?k.createElement(hC,null):k.createElement(mC,null))},cC=qj("span",((e,t)=>({color:t.danger}))),uC=qj("div",{marginLeft:".1em",paddingLeft:"1em",borderLeft:"2px solid rgba(0,0,0,.15)"}),lC=qj("span",{color:"grey",fontSize:".7em"}),pC=({expanded:e,style:t={}})=>k.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:"rotate("+(e?90:0)+"deg) "+(t.transform||""),...t}},"▶"),dC=()=>k.createElement("span",{"aria-label":"Copy object to clipboard",title:"Copy object to clipboard",style:{paddingLeft:"1em"}},k.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10"},k.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"}),k.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"}))),mC=()=>k.createElement("span",{"aria-label":"Failed copying to clipboard",title:"Failed copying to clipboard",style:{paddingLeft:"1em",display:"flex",alignItems:"center"}},k.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10",display:"block"},k.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"})),k.createElement("span",{style:{color:"red",fontSize:"12px",paddingLeft:"4px",position:"relative",top:"2px"}},"See console")),hC=()=>k.createElement("span",{"aria-label":"Object copied to clipboard",title:"Object copied to clipboard",style:{paddingLeft:"1em",display:"inline-block",verticalAlign:"middle"}},k.createElement("svg",{height:"16",viewBox:"0 0 16 16",width:"16",display:"block"},k.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 fC=({handleEntry:e,label:t,value:n,subEntries:o=[],subEntryPages:a=[],type:i,expanded:r=!1,copyable:s=!1,toggleExpanded:c,pageSize:u})=>{const[l,p]=k.useState([]);return k.createElement(oC,{key:t},a.length?k.createElement(k.Fragment,null,k.createElement(rC,{onClick:()=>c()},k.createElement(pC,{expanded:r})," ",t," ",k.createElement(lC,null,"iterable"===String(i).toLowerCase()?"(Iterable) ":"",o.length," ",o.length>1?"items":"item")),s?k.createElement(sC,{value:n}):null,r?1===a.length?k.createElement(uC,null,o.map(e)):k.createElement(uC,null,a.map(((t,n)=>k.createElement("div",{key:n},k.createElement(oC,null,k.createElement(iC,{onClick:()=>p((e=>e.includes(n)?e.filter((e=>e!==n)):[...e,n]))},k.createElement(pC,{expanded:r})," [",n*u," ..."," ",n*u+u-1,"]"),l.includes(n)?k.createElement(uC,null,t.map(e)):null))))):null):k.createElement(k.Fragment,null,k.createElement(aC,null,t,":")," ",k.createElement(cC,null,Nj(n))))};function gC({value:e,defaultExpanded:t,renderer:n=fC,pageSize:o=100,copyable:a=!1,...i}){const[r,s]=k.useState(Boolean(t)),c=k.useCallback((()=>s((e=>!e))),[]);let u=typeof e,l=[];const p=e=>{const n=!0===t?{[e.label]:!0}:null==t?void 0:t[e.label];return{...e,defaultExpanded:n}};var d;Array.isArray(e)?(u="array",l=e.map(((e,t)=>p({label:t.toString(),value:e})))):null!==e&&"object"==typeof e&&(d=e,Symbol.iterator in d)&&"function"==typeof e[Symbol.iterator]?(u="Iterable",l=Array.from(e,((e,t)=>p({label:t.toString(),value:e})))):"object"==typeof e&&null!==e&&(u="object",l=Object.entries(e).map((([e,t])=>p({label:e,value:t}))));const m=function(e,t){if(t<1)return[];let n=0;const o=[];for(;n<e.length;)o.push(e.slice(n,n+t)),n+=t;return o}(l,o);return n({handleEntry:t=>k.createElement(gC,mw({key:t.label,value:e,renderer:n,copyable:a},i,t)),type:u,subEntries:l,subEntryPages:m,value:e,expanded:r,copyable:a,toggleExpanded:c,pageSize:o,...i})}function yC(e){return k.createElement("svg",mw({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),k.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},k.createElement("g",{transform:"translate(-33.000000, 0.000000)"},k.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) "}),k.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"}),k.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 vC=(e,t,n=!1)=>hf.useSyncExternalStore(k.useCallback((t=>n?()=>{}:e.subscribe($h.batchCalls(t))),[e,n]),t,t),bC=k.forwardRef((function(e,t){const{isOpen:n=!0,styleNonce:o,setIsOpen:a,context:i,onDragStart:r,onPositionChange:s,showCloseButton:c,position:u,closeButtonProps:l={},errorTypes:p=[],...d}=e,{onClick:m,...h}=l,f=bf({context:i}),g=f.getQueryCache(),[y,v]=Ow("reactQueryDevtoolsSortFn",Object.keys(Uj)[0]),[b,x]=Ow("reactQueryDevtoolsFilter",""),[w,j]=Ow("reactQueryDevtoolsBaseSort",1),C=k.useMemo((()=>Uj[y]),[y]),E=vC(g,(()=>g.getAll().length),!n),[S,_]=Ow("reactQueryDevtoolsActiveQueryHash",""),R=k.useMemo((()=>{const e=g.getAll();if(0===E)return[];const t=b?e.filter((e=>Ew(e.queryHash,b).passed)):[...e];return C?t.sort(((e,t)=>C(e,t)*w)):t}),[w,C,b,E,g]),[T,I]=k.useState(!1);return k.createElement(Pj,{theme:Aj},k.createElement(Kj,mw({ref:t,className:"ReactQueryDevtoolsPanel","aria-label":"React Query Devtools Panel",id:"ReactQueryDevtoolsPanel"},d,{style:{height:Bj,position:"relative",...d.style}}),k.createElement("style",{nonce:o,dangerouslySetInnerHTML:{__html:"\n .ReactQueryDevtoolsPanel * {\n scrollbar-color: "+Aj.backgroundAlt+" "+Aj.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: "+Aj.backgroundAlt+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-thumb, .ReactQueryDevtoolsPanel scrollbar-thumb {\n background: "+Aj.gray+";\n border-radius: .5em;\n border: 3px solid "+Aj.backgroundAlt+";\n }\n "}}),k.createElement("div",{style:$j(u),onMouseDown:r}),n&&k.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:"1px solid "+Aj.grayAlt,display:"flex",flexDirection:"column"}},k.createElement("div",{style:{padding:".5em",background:Aj.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},k.createElement("button",{type:"button","aria-label":"Close React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true",onClick:()=>a(!1),style:{display:"inline-flex",background:"none",border:0,padding:0,marginRight:".5em",cursor:"pointer"}},k.createElement(yC,{"aria-hidden":!0}),k.createElement(nC,{text:"Close React Query Devtools"})),k.createElement("div",{style:{display:"flex",flexDirection:"column"}},k.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:".5em"}},k.createElement(xC,{queryCache:g}),u&&s?k.createElement(tC,{"aria-label":"Panel position",value:u,style:{marginInlineStart:".5em"},onChange:e=>s(e.target.value)},k.createElement("option",{value:"left"},"Left"),k.createElement("option",{value:"right"},"Right"),k.createElement("option",{value:"top"},"Top"),k.createElement("option",{value:"bottom"},"Bottom")):null),k.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"0.5em"}},k.createElement(eC,{placeholder:"Filter","aria-label":"Filter by queryhash",value:null!=b?b:"",onChange:e=>x(e.target.value),onKeyDown:e=>{"Escape"===e.key&&x("")},style:{flex:"1",width:"100%"}}),k.createElement(tC,{"aria-label":"Sort queries",value:y,onChange:e=>v(e.target.value),style:{flex:"1",minWidth:75,marginRight:".5em"}},Object.keys(Uj).map((e=>k.createElement("option",{key:e,value:e},"Sort by ",e)))),k.createElement(Jj,{type:"button",onClick:()=>j((e=>-1*e)),style:{padding:".3em .4em",marginRight:".5em"}},1===w?"⬆ Asc":"⬇ Desc"),k.createElement(Jj,{title:"Clear cache","aria-label":"Clear cache",type:"button",onClick:()=>g.clear(),style:{padding:".3em .4em",marginRight:".5em"}},"Clear"),k.createElement(Jj,{type:"button",onClick:()=>{T?(Fh.setOnline(void 0),I(!1),window.dispatchEvent(new Event("online"))):(Fh.setOnline(!1),I(!0))},"aria-label":T?"Restore offline mock":"Mock offline behavior",title:T?"Restore offline mock":"Mock offline behavior",style:{padding:"0",height:"2em"}},k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"2em",height:"2em",viewBox:"0 0 24 24",stroke:T?Aj.danger:"currentColor",fill:"none"},T?k.createElement(k.Fragment,null,k.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),k.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),k.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),k.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"}),k.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"}),k.createElement("line",{x1:"3",y1:"3",x2:"21",y2:"21"})):k.createElement(k.Fragment,null,k.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),k.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),k.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),k.createElement("path",{d:"M6.343 12.343a8 8 0 0 1 11.314 0"}),k.createElement("path",{d:"M3.515 9.515c4.686 -4.687 12.284 -4.687 17 0"}))),k.createElement(nC,{text:T?"Restore offline mock":"Mock offline behavior"}))))),k.createElement("div",{style:{overflowY:"auto",flex:"1"}},R.map((e=>k.createElement(wC,{queryKey:e.queryKey,activeQueryHash:S,setActiveQueryHash:_,key:e.queryHash,queryCache:g}))))),S&&n?k.createElement(kC,{activeQueryHash:S,queryCache:g,queryClient:f,errorTypes:p}):null,c?k.createElement(Jj,mw({type:"button","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true"},h,{style:{position:"absolute",zIndex:99999,margin:".5em",bottom:0,left:0,...h.style},onClick:e=>{a(!1),null==m||m(e)}}),"Close"):null))})),kC=({queryCache:e,activeQueryHash:t,queryClient:n,errorTypes:o})=>{var a,i;const r=vC(e,(()=>e.getAll().find((e=>e.queryHash===t)))),s=vC(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.state})),c=null!=(a=vC(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.isStale()})))&&a,u=null!=(i=vC(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.getObserversCount()})))?i:0,l=E((()=>{if(r&&null!=s&&s.error){const e=o.find((e=>{var t;return e.initializer(r).toString()===(null==(t=s.error)?void 0:t.toString())}));return null==e?void 0:e.name}}),[r,null==s?void 0:s.error,o]);if(!r||!s)return null;const p=e=>{var t;const n=null!=(t=null==e?void 0:e.initializer(r))?t:new Error("Unknown error from devtools"),o=r.options;r.setState({status:"error",error:n,fetchMeta:{...r.state.fetchMeta,__previousQueryOptions:o}})};return k.createElement(Qj,null,k.createElement("div",{style:{padding:".5em",background:Aj.backgroundAlt,position:"sticky",top:0,zIndex:1}},"Query Details"),k.createElement("div",{style:{padding:".5em"}},k.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"flex-start",justifyContent:"space-between"}},k.createElement(Zj,{style:{lineHeight:"1.8em"}},k.createElement("pre",{style:{margin:0,padding:0,overflow:"auto"}},Nj(r.queryKey,!0))),k.createElement("span",{style:{padding:"0.3em .6em",borderRadius:"0.4em",fontWeight:"bold",textShadow:"0 2px 10px black",background:Lj({queryState:s,isStale:c,observerCount:u,theme:Aj}),flexShrink:0}},Dj(r))),k.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"center",justifyContent:"space-between"}},"Observers: ",k.createElement(Zj,null,u)),k.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},"Last Updated:"," ",k.createElement(Zj,null,new Date(s.dataUpdatedAt).toLocaleTimeString()))),k.createElement("div",{style:{background:Aj.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Actions"),k.createElement("div",{style:{padding:"0.5em",display:"flex",flexWrap:"wrap",gap:"0.5em",alignItems:"flex-end"}},k.createElement(Jj,{type:"button",onClick:()=>{const e=null==r?void 0:r.fetch();null==e||e.catch(jC)},disabled:"fetching"===s.fetchStatus,style:{background:Aj.active}},"Refetch")," ",k.createElement(Jj,{type:"button",onClick:()=>n.invalidateQueries(r),style:{background:Aj.warning,color:Aj.inputTextColor}},"Invalidate")," ",k.createElement(Jj,{type:"button",onClick:()=>n.resetQueries(r),style:{background:Aj.gray}},"Reset")," ",k.createElement(Jj,{type:"button",onClick:()=>n.removeQueries(r),style:{background:Aj.danger}},"Remove")," ",k.createElement(Jj,{type:"button",onClick:()=>{var e;if("fetching"!==r.state.fetchStatus||void 0!==(null==(e=r.state.fetchMeta)?void 0:e.__previousQueryOptions))if(void 0===r.state.data)r.fetch(r.state.fetchMeta.__previousQueryOptions,{cancelRefetch:!0});else{const e=r.options;r.fetch({...e,queryFn:()=>new Promise((()=>{})),cacheTime:-1}),r.setState({data:void 0,status:"loading",fetchMeta:{...r.state.fetchMeta,__previousQueryOptions:e}})}},style:{background:Aj.paused}},"loading"===r.state.status?"Restore":"Trigger"," ","loading")," ",0===o.length||"error"===r.state.status?k.createElement(Jj,{type:"button",onClick:()=>{r.state.error?n.resetQueries(r):p()},style:{background:Aj.danger}},"error"===r.state.status?"Restore":"Trigger"," error"):k.createElement("label",null,"Trigger error:",k.createElement(tC,{value:null!=l?l:"",style:{marginInlineStart:".5em"},onChange:e=>{const t=o.find((t=>t.name===e.target.value));p(t)}},k.createElement("option",{key:"",value:""}),o.map((e=>k.createElement("option",{key:e.name,value:e.name},e.name)))))),k.createElement("div",{style:{background:Aj.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Data Explorer"),k.createElement("div",{style:{padding:".5em"}},k.createElement(gC,{label:"Data",value:s.data,defaultExpanded:{},copyable:!0})),k.createElement("div",{style:{background:Aj.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Query Explorer"),k.createElement("div",{style:{padding:".5em"}},k.createElement(gC,{label:"Query",value:r,defaultExpanded:{queryKey:!0}})))},xC=({queryCache:e})=>{const t=vC(e,(()=>e.getAll().filter((e=>"fresh"===Dj(e))).length)),n=vC(e,(()=>e.getAll().filter((e=>"fetching"===Dj(e))).length)),o=vC(e,(()=>e.getAll().filter((e=>"paused"===Dj(e))).length)),a=vC(e,(()=>e.getAll().filter((e=>"stale"===Dj(e))).length)),i=vC(e,(()=>e.getAll().filter((e=>"inactive"===Dj(e))).length));return k.createElement(Yj,null,k.createElement(Xj,{style:{background:Aj.success,opacity:t?1:.3}},"fresh ",k.createElement(Zj,null,"(",t,")"))," ",k.createElement(Xj,{style:{background:Aj.active,opacity:n?1:.3}},"fetching ",k.createElement(Zj,null,"(",n,")"))," ",k.createElement(Xj,{style:{background:Aj.paused,opacity:o?1:.3}},"paused ",k.createElement(Zj,null,"(",o,")"))," ",k.createElement(Xj,{style:{background:Aj.warning,color:"black",textShadow:"0",opacity:a?1:.3}},"stale ",k.createElement(Zj,null,"(",a,")"))," ",k.createElement(Xj,{style:{background:Aj.gray,opacity:i?1:.3}},"inactive ",k.createElement(Zj,null,"(",i,")")))},wC=k.memo((({queryKey:e,setActiveQueryHash:t,activeQueryHash:n,queryCache:o})=>{var a,i,r,s;const c=null!=(a=vC(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.queryHash})))?a:"",u=vC(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.state})),l=null!=(i=vC(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.isStale()})))&&i,p=null!=(r=vC(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.isDisabled()})))&&r,d=null!=(s=vC(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.getObserversCount()})))?s:0;return u?k.createElement("div",{role:"button","aria-label":"Open query details for "+c,onClick:()=>t(n===c?"":c),style:{display:"flex",borderBottom:"solid 1px "+Aj.grayAlt,cursor:"pointer",background:c===n?"rgba(255,255,255,.1)":void 0}},k.createElement("div",{style:{flex:"0 0 auto",width:"2em",height:"2em",background:Lj({queryState:u,isStale:l,observerCount:d,theme:Aj}),display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold",textShadow:l?"0":"0 0 10px black",color:l?"black":"white"}},d),p?k.createElement("div",{style:{flex:"0 0 auto",height:"2em",background:Aj.gray,display:"flex",alignItems:"center",fontWeight:"bold",padding:"0 0.5em"}},"disabled"):null,k.createElement(Zj,{style:{padding:".5em"}},""+c)):null}));function jC(){}wC.displayName="QueryRow";const CC="development"!==process.env.NODE_ENV?function(){return null}:function({initialIsOpen:e,panelProps:t={},closeButtonProps:n={},toggleButtonProps:o={},position:a="bottom-left",containerElement:i="aside",context:r,styleNonce:s,panelPosition:c="bottom",errorTypes:u=[]}){const l=k.useRef(null),p=k.useRef(null),[d,m]=Ow("reactQueryDevtoolsOpen",e),[h,f]=Ow("reactQueryDevtoolsHeight",Bj),[g,y]=Ow("reactQueryDevtoolsWidth",Bj),[v="bottom",b]=Ow("reactQueryDevtoolsPanelPosition",c),[x,w]=k.useState(!1),[j,C]=k.useState(!1),E=function(){const e=k.useRef(!1),t=k.useCallback((()=>e.current),[]);return k.useEffect((()=>(e.current=!0,()=>{e.current=!1})),[]),t}();k.useEffect((()=>{w(null!=d&&d)}),[d,x,w]),k.useEffect((()=>{const e=p.current;if(e){const t=()=>{x&&(e.style.visibility="visible")},n=()=>{x||(e.style.visibility="hidden")};return e.addEventListener("transitionstart",t),e.addEventListener("transitionend",n),()=>{e.removeEventListener("transitionstart",t),e.removeEventListener("transitionend",n)}}}),[x]),k.useEffect((()=>{var e;if(x&&null!=(e=l.current)&&e.parentElement){const{parentElement:e}=l.current,t=Gj("padding",v),n=Hj(v),o=(({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:o,paddingRight:a})=>({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:o,paddingRight:a}))(e.style),a=()=>{e.style.padding="0px",e.style.paddingTop="0px",e.style.paddingBottom="0px",e.style.paddingLeft="0px",e.style.paddingRight="0px",e.style[t]=(n?g:h)+"px"};if(a(),"undefined"!=typeof window)return window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a),Object.entries(o).forEach((([t,n])=>{e.style[t]=n}))}}}),[x,v,h,g]);const{style:S={},..._}=t,{style:R={},onClick:T,...I}=o,O=function({position:e="bottom",height:t,width:n,devtoolsTheme:o,isOpen:a,isResizing:i,panelStyle:r}){const s=Vj(e),c=Gj("border",s),u=Hj(e);return{...r,direction:"ltr",position:"fixed",[e]:0,[c]:"1px solid "+o.gray,transformOrigin:s,boxShadow:"0 0 20px rgba(0,0,0,.3)",zIndex:99999,visibility:a?"visible":"hidden",...i?{transition:"none"}:{transition:"all .2s ease"},...a?{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:Bj}:{left:0,width:"100%",maxHeight:"90%",height:"number"==typeof t&&t>=70?t:Bj}}}({position:v,devtoolsTheme:Aj,isOpen:x,height:h,width:g,isResizing:j,panelStyle:S});return E()?k.createElement(i,{ref:l,className:"ReactQueryDevtools","aria-label":"React Query Devtools"},k.createElement(Pj,{theme:Aj},k.createElement(bC,mw({ref:p,context:r,styleNonce:s,position:v,onPositionChange:b,showCloseButton:!0,closeButtonProps:n},_,{style:O,isOpen:x,setIsOpen:m,onDragStart:e=>((e,t)=>{if(!e)return;if(0!==t.button)return;const n=Hj(v);C(!0);const{height:o,width:a}=e.getBoundingClientRect(),i=t.clientX,r=t.clientY;let s=0;const c=e=>{e.preventDefault(),n?(s=a+("right"===v?i-e.clientX:e.clientX-i),y(s)):(s=o+("bottom"===v?r-e.clientY:e.clientY-r),f(s)),m(!(s<70))},u=()=>{j&&C(!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:u}))),x?null:k.createElement("button",mw({type:"button"},I,{"aria-label":"Open React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"false",onClick:e=>{m(!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"===a?{top:"0",right:"0"}:"top-left"===a?{top:"0",left:"0"}:"bottom-right"===a?{bottom:"0",right:"0"}:{bottom:"0",left:"0"},...R}}),k.createElement(yC,{"aria-hidden":!0}),k.createElement(nC,{text:"Open React Query Devtools"}))):null};process.env.NODE_ENV;var EC,SC={backgroundColor:"#fcfcff",width:"100%",zIndex:1e7,height:"100%",position:"absolute"};function _C(e){var o=this,i=e.children,r=process.env.ENVIRONMENT,s=E((function(){return"DEV"!==r&&"LOCAL"!==r?"testing":"live"}),[process.env.ENVIRONMENT]),c=w(!1),u=c[0],l=c[1],p=S((function(e){return t(o,void 0,void 0,(function(){var t,o,i,r,c;return n(this,(function(n){switch(n.label){case 0:return t=localStorage.getItem("headers"),o=t&&JSON.parse(t),i=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live",r=localStorage.getItem("x-organization-code"),c=r?JSON.parse(r).value:"",[4,fh.refreshInstance({headers:a(a({},o),{"X-Environment":i||s,"x-organization-code":c,"x-account-code":e.detail.accountCode,"X-Content-Type-Options":"nosniff"})})];case 1:return n.sent(),[2]}}))}))}),[s,l]);C((function(){return addEventListener("ACCOUNT_CHANGED",p),function(){window.removeEventListener("ACCOUNT_CHANGED",p)}}),[p]);var d=S((function(e){return t(o,void 0,void 0,(function(){var t,o,i,r,c,u,p;return n(this,(function(n){switch(n.label){case 0:return t=localStorage.getItem("headers"),(o=t&&JSON.parse(t))?(i=localStorage.getItem("x-organization-code"),r=localStorage.getItem("account"),c=r?null===(p=JSON.parse(r).value)||void 0===p?void 0:p.code:"",u=i?JSON.parse(i).value:"",[4,fh.refreshInstance({headers:a(a({},o),{"X-Environment":e||s,"x-organization-code":u,"x-account-code":c,"X-Content-Type-Options":"nosniff"})})]):[3,2];case 1:n.sent(),kg.refetchQueries(["fetch-profile","accountsV2","accounts","fetch-all-organizations","fetch-permissions"]),l(!0),n.label=2;case 2:return[2]}}))}))}),[s,l]);return C((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?d(n):"token"===t.key&&d(e)}})),d(e)}),[l,d]),u?React.createElement(kf,{client:kg},i,React.createElement(CC,{initialIsOpen:!1})):React.createElement("div",{style:SC})}!function(e){e.ECONNABORTED="ECONNABORTED",e.ETIMEDOUT="ETIMEDOUT",e.ERR_BAD_REQUEST="ERR_BAD_REQUEST"}(EC||(EC={}));var RC=["LOCAL","DEV","STG"].includes(process.env.ENVIRONMENT||"");"undefined"!=typeof window&&RC&&function(){t(this,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:if(!_a())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,Ca.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{Dx as ALL_FEATURE_FLAGS,mh as Api,EC as ApiErrorCodes,_C as ApiProvider,fh as ApiSingleton,Od as Cms,Id as Country,Pd as DataReport,Td as Organization,Dd as ReconciliationAgendaInsight,Ld as ReconciliationReportType,Ad as ReportType,Rd as SendPaymentNotification,zd as TemplateType,sk as getQueryKeyGetNameAndIcon,uk as getQueryKeyRequiredFields,bg as queryCache,kg as queryClient,nk as use3DSExemptions,Sv as useAICreateWorkflow,qx as useAllFeatureFlags,ew as useAllowListDetail,Yf as useArchiveConnection,Zx as useBlackListDetail,Nx as useCachedFeatureFlag,Eg as useCancelReport,ng as useChangePassword,og as useChangePasswordV2,Ny as useChangePaymentsWebhook,$g as useChangeState,Ay as useChangeStatusBlackList,zy as useChangeStatusItemBlackList,vg as useChargebacksUpload,uw as useChartExecute,gy as useConfirmedOtpForEnrollment,fy as useConfirmedOtpMfa,yx as useConversionRateOverview,vx as useConversionRateOverviewFraud3ds,Cg as useCountRowsForReport,_v as useCreateChart,Vg as useCreateMonitorTemplate,Hg as useCreateMonitorThreshold,Gg as useCreateNotification,yg as useCreateOperationTransaction,ny as useCreatePaymentLinks,oy as useCreateProductsByAccount,bv as useCreateReconciliationAlert,yv as useCreateReconciliationReportTemplate,wg as useCreateReconciliationsReportV2,xg as useCreateReport,Sg as useCreateReportTemplate,jg as useCreateReportV2,Zg as useCreateRoles,jv as useCreateSamlConfig,Zy as useCreateScheduledReport,lg as useCreateUserAuth0,Rg as useCreateWorkflow,Wk as useDashboardInsights,Hk as useDashboardInsightsIsolated,Uf as useDeleteAccountsUserMassive,Uy as useDeleteAllowlistItem,Dy as useDeleteBlackListItem,Ly as useDeleteBlackListType,My as useDeleteBlockListItem,Rv as useDeleteChart,Jf as useDeleteConnection,dv as useDeleteCustomizedApiKeys,ay as useDeletePaymentLink,kv as useDeleteReconciliationAlert,ty as useDeleteRoles,Ev as useDeleteSamlConfig,tv as useDeleteScheduledReport,Jg as useDeleteUserTeam,Yg as useDeleteUserTeamV2,Ag as useDeleteVersion,Of as useDeleteWebhook,Af as useDeleteWebhookV2,zg as useDuplicateVersion,iy as useEditPaymentLinks,ey as useEditRoles,fk as useEmailVerification,Yy as useExcludeUsers,Lx as useFeatureFlags,$x as useFirebaseUserSubscribe,Ob as useGetAccounts,zb as useGetAccountsByUser,Ab as useGetAccountsV2,aw as useGetAllConfigRules,gb as useGetAllOrganizations,zx as useGetAllReconciliationsAdvancements,Ix as useGetAllReconciliationsAgenda,Tx as useGetAllReconciliationsAlerts,Px as useGetAllReconciliationsFees,Ax as useGetAllReconciliationsSales,Ex as useGetAllTableColumns,lb as useGetAllowedIps,Mx as useGetAuditEvents,Mb as useGetAuditLogsFilters,Fx as useGetAuditMonitorEventDetail,$y as useGetBatchRefundProcessedFileDownload,Ky as useGetBatchRefundUserFileDownload,nw as useGetBatchRefunds,Qx as useGetBlackList,Xx as useGetBlockListSummary,Vv as useGetCardBrands,lw as useGetChartsByUser,pw as useGetChartsByUserWithResults,rk as useGetCheckoutTemplate,ik as useGetCheckouts,nv as useGetConditionalConfigRules,Kx as useGetConfigAllowlist,jb as useGetConnections,xb as useGetConnectionsByPaymentMethod,Vx as useGetCountriesConfigPaymentLink,sb as useGetCredentials,fv as useGetCredentialsMFA,cb as useGetCredentialsValidatePassword,db as useGetCustomizedApiKeys,pb as useGetCustomizedApiKeysAccounts,ub as useGetCustomizedApiKeysMembers,mb as useGetCustomizedApiKeysProducts,pv as useGetCustomizedApiKeysShowToken,uv as useGetCustomizedApiKeysToken,Fb as useGetDashboardStaticContents,Cb as useGetDialogs,Rk as useGetDownloadReport,my as useGetEmailOtp,wb as useGetHashPylon,ky as useGetIndividualMFAStatus,nx as useGetInsightsReport,ox as useGetInsightsReportAgain,bb as useGetIntegrationByAccount,kb as useGetIntegrationByAccountV2,vb as useGetIntegrationParams,Ub as useGetLocales,yk as useGetLoginMethods,rw as useGetMFAConfig,iw as useGetMFAExcludedUsers,sw as useGetMFAStatus,Ak as useGetMembers,zk as useGetMembersV3,Lk as useGetMembersV4,Pb as useGetMenu,kk as useGetMergedNotifications,ck as useGetNameAndIcon,xk as useGetNotificationsAccount,vk as useGetNotificationsCustomer,wk as useGetNotificationsNumber,jk as useGetNotificationsNumberMutation,fb as useGetOrganization,zv as useGetPayment,Hv as useGetPaymentAndTrxStatuses,Gv as useGetPaymentFilters,Bx as useGetPaymentLinkByCode,Ux as useGetPaymentLinks,Bv as useGetPaymentMethodsAndProviders,Wv as useGetPaymentMethodsAndProvidersActive,Uv as useGetPaymentMethodsByProvider,$v as useGetPaymentMetricsFilters,Lb as useGetPaymentStatusesStyles,Lv as useGetPaymentTransactions,Qv as useGetPaymentTransactionsDetails,Dv as useGetPaymentTransactionsLazy,Pv as useGetPaymentV2,Hx as useGetPaymentsByPaymentLink,Fv as useGetPaymentsMethodsByCountry,eb as useGetPayoutDetail,nb as useGetPayoutHistoryDetail,tb as useGetPayoutTransactionDetail,hk as useGetPermissions,Uk as useGetPermissionsCatalog,Wx as useGetProductsByAccount,mk as useGetProfile,ob as useGetProofOfCancel,yb as useGetProviderParams,Sx as useGetReconciliationActive,Ox as useGetReconciliationAgendaInsightsByKey,Cx as useGetReconciliationFilters,jx as useGetReconciliationMetrics,qb as useGetReconciliationTransactionStatusesStyles,bx as useGetReconciliationTransactions,_x as useGetReconciliationsReportColumns,Rx as useGetReconciliationsReportTemplates,Ok as useGetRefundPdf,Ik as useGetReportColumns,Tk as useGetReportTemplates,Sk as useGetReportsList,_k as useGetReportsListMultiEnv,lk as useGetRequiredFields,Mk as useGetRoles,Fk as useGetRolesPermissions,ak as useGetRoutingMonitorsTemplate,ok as useGetRoutingMonitorsTemplates,ov as useGetRule,cw as useGetSamlConfig,Xy as useGetScheduledReportsList,kx as useGetSettlements,wx as useGetSettlementsBody,xx as useGetSettlementsHeader,Gb as useGetSmartRoutingConditionPaymentMethod,Vb as useGetSmartRoutingConditionTypes,$b as useGetSmartRoutingConditionTypesValues,Bk as useGetSmartRoutingDataReport,Jb as useGetSmartRoutingDeclineGroups,Wb as useGetSmartRoutingMethods,Qb as useGetSmartRoutingNextRoute,Xb as useGetSmartRoutingPaymentRoute,ek as useGetSmartRoutingSearchConditionValues,Zb as useGetSmartRoutingSimulateConditionTypeValues,Yb as useGetSmartRoutingTutorial,Hb as useGetSmartRoutingWorkflow,Kb as useGetSmartRoutingWorkflowVersion,dk as useGetStylingSettings,pk as useGetStylingTheme,Pk as useGetTeamsFiltersMembers,Nb as useGetTimeZoneCatalog,Gx as useGetTimezonePaymentLink,dy as useGetTokenForEnrollment,py as useGetTokenValidation,qv as useGetTransactionDetails,Nv as useGetTransactionDetailsV2,Kv as useGetTransactionHistory,Jv as useGetTransactionHistoryByPaymentCode,Mv as useGetTransactionRawResponse,Db as useGetTransactionStatusesStyles,Yv as useGetTransactions,bk as useGetValidateOpsgenieKey,Eb as useGetWebhookParams,Sb as useGetWebhookParamsV2,_b as useGetWebhooks,Rb as useGetWebhooksV2,Ib as useGetWebhooksV2Detail,Tb as useGetWebhooksV3,sx as useInsights3dsConversionRateAndEvolution,cx as useInsights3dsDeclineReasons,ux as useInsights3dsFrictionlessVsChallenge,rx as useInsights3dsVolumeAndCountTx,gx as useInsightsChargebacksByCardBrand,mx as useInsightsChargebacksByProviderAndCardBrand,dx as useInsightsChargebacksDisputed,hx as useInsightsChargebacksReasonsDistribution,fx as useInsightsChargebacksStatusDistribution,lx as useInsightsChargebacksVolumeAndCountTx,px as useInsightsChargebacksWinRate,Vk as useInsightsConversionRateMetrics,Gk as useInsightsConversionRateMetricsV2,Xk as useInsightsCustomerPaymentsAndFraudMetrics,Kk as useInsightsFallbackMetrics,ix as useInsightsFraudScreeningConversionRate,ax as useInsightsFraudScreeningVolumeAndCountTx,tx as useInsightsHomeMetrics,Zk as useInsightsOverviewMetrics,ex as useInsightsOverviewMetricsV3,Yk as useInsightsTotalPaymentsAndFraudMetrics,Qk as useInsightsVolumeMetrics,Jk as useInsightsVolumeMetricsV2,ig as useInviteUsers,rg as useInviteUsersMultiaccount,sg as useInviteUsersMultiaccountMassive,Bb as useIsTesting,dg as useLoginMethods,gk as useLoginSSO,$f as useNewPostConnection,Kf as useNewPostConnectionValidate,Yx as useOneBlackList,Df as usePatchAccount,qf as usePatchAccountV2,_y as usePatchAddAllowlistItems,hb as usePatchAllowedIps,Ry as usePatchAllowlist,dw as usePatchAndExecuteChart,mv as usePatchApiKeysEditNote,Ey as usePatchChangeStatusAllowlist,Sy as usePatchChangeStatusAllowlistItem,Tv as usePatchChartName,Qf as usePatchConnection,cv as usePathCreateCustomizedApiKeys,Ck as usePathNotifications,rb as usePayoutsFilters,ib as usePayoutsList,Lf as usePostAccount,tw as usePostAllowlistMultiAccount,hv as usePostApiKeysRoll,gv as usePostAuditMonitors,Gy as usePostBatchRefundByFile,qy as usePostBlackListBatch,Py as usePostBlackListItems,Ty as usePostBlackListMultiAccount,Iy as usePostBlackListType,Jx as usePostBlockList,pg as usePostCall,Wf as usePostChangeStatusConnection,Vf as usePostConnection,Gf as usePostConnectionMultiAccount,Cy as usePostCreateAllowlistMultiAccount,sv as usePostCreateCustomizedApiKeys,wv as usePostCreateInsightsReport,iv as usePostCreateRule,av as usePostCreateRuleMultiAccount,lv as usePostCredentialsValidatePassword,Xf as usePostDefaultRoutes,rv as usePostEditRule,Zv as usePostFraudTransactions,wy as usePostGetAllowlistItems,jy as usePostGetAllowlistMultiAccount,qk as usePostMembersPaginated,Nk as usePostMembersPaginatedV2,Dk as usePostMembersV4,Av as usePostPaymentsEvaluated,Ov as usePostPaymentsLazy,Kg as usePostSlackMessageChannel,Xv as usePostTransactions,sy as usePostUserSettings,ly as usePostUserSettingsPinned,uy as usePostUserSettingsTables,cy as usePostUserThemeSettings,hy as usePostValidateOtp,ry as usePostValidatePassword,Bf as usePostValideStatusConnection,ow as usePostVelocityRules,Rf as usePostWebhook,If as usePostWebhookMultiAccount,Tf as usePostWebhookV2,tk as useProviderConversionRatesData,Tg as usePublishVersion,Nf as usePutAccountPrincipal,Mf as usePutAccountsUser,Ff as usePutAccountsUserMassive,Oy as usePutBlackListType,Hf as usePutCosts,Og as useSaveVersion,by as useSendOTPForMFA,ab as useSendPaymentNotification,Xg as useSetCustodian,Qg as useSetRoles,Dg as useSmartRoutingCreateDeclinedGroup,Mg as useSmartRoutingEditWorkflowName,Wg as useSmartRoutingMultiAccountDeclinedGroupCreate,Bg as useSmartRoutingRemoveDeclinedGroup,Fg as useSmartRoutingSimulateTransaction,Ng as useSmartRoutingToggleFavorite,Lg as useSmartRoutingUpdateDeclinedGroup,Ug as useSmartRoutingUpdateMonitorRedistribution,qg as useSmartRoutingUpdateTutorial,Pg as useToggleMethod,cg as useUnInviteUsers,ug as useUnInviteUsersV2,yy as useUnrollUser,vy as useUnrollUserV2,mg as useUpdateCheckoutPaymentMethods,fg as useUpdateCheckoutTemplate,hg as useUpdateIsActiveCheckout,Jy as useUpdateMFAConfig,eg as useUpdateOrganizationStatus,ag as useUpdateProfile,xv as useUpdateReconciliationAlert,vv as useUpdateReconciliationReportTemplate,_g as useUpdateReportTemplate,Cv as useUpdateSamlConfig,ev as useUpdateScheduledReport,gg as useUpdateStylingTheme,zf as useUpdateWebhook,Pf as useUpdateWebhookV2,Hy as useUploadBatchRefundsFile,Wy as useUploadBatchRefundsFileV2,Vy as useUploadBatchRefundsV2,Qy as useUploadFileS3ClientBatchRefunds,By as useValiateAllowlistItems,Fy as useValidateBlockListItems,Ig as useValidateConnection,Zf as useValidateCredentials,tg as useValidateOrgName,xy as useValidatePasswordStatus,$k as useViewMoreMetrics};
|
|
240
|
+
const yw=7,vw=6,bw=5,kw=4,xw=3,ww=2,jw=1,Cw=0;function Ew(e,t,n){var o;if((n=n||{}).threshold=null!=(o=n.threshold)?o:jw,!n.accessors){const o=Sw(e,t,n);return{rankedValue:e,rank:o,accessorIndex:-1,accessorThreshold:n.threshold,passed:o>=n.threshold}}const a=function(e,t){const n=[];for(let o=0,a=t.length;o<a;o++){const a=t[o],i=Iw(a),r=Rw(e,a);for(let e=0,t=r.length;e<t;e++)n.push({itemValue:r[e],attributes:i})}return n}(e,n.accessors),i={rankedValue:e,rank:Cw,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let e=0;e<a.length;e++){const o=a[e];let r=Sw(o.itemValue,t,n);const{minRanking:s,maxRanking:c,threshold:u=n.threshold}=o.attributes;r<s&&r>=jw?r=s:r>c&&(r=c),r=Math.min(r,c),r>=u&&r>i.rank&&(i.rank=r,i.passed=!0,i.accessorIndex=e,i.accessorThreshold=u,i.rankedValue=o.itemValue)}return i}function Sw(e,t,n){return e=_w(e,n),(t=_w(t,n)).length>e.length?Cw:e===t?yw:(e=e.toLowerCase())===(t=t.toLowerCase())?vw:e.startsWith(t)?bw:e.includes(` ${t}`)?kw:e.includes(t)?xw:1===t.length?Cw:function(e){let t="";return e.split(" ").forEach((e=>{e.split("-").forEach((e=>{t+=e.substr(0,1)}))})),t}(e).includes(t)?ww:function(e,t){let n=0,o=0;function a(e,t,o){for(let a=o,i=t.length;a<i;a++){if(t[a]===e)return n+=1,a+1}return-1}function i(e){const o=1/e,a=n/t.length;return jw+a*o}const r=a(t[0],e,0);if(r<0)return Cw;o=r;for(let n=1,i=t.length;n<i;n++){o=a(t[n],e,o);if(!(o>-1))return Cw}const s=o-r;return i(s)}(e,t)}function _w(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=e.replace(gw,(e=>hw[e]))),e}function Rw(e,t){let n=t;"object"==typeof t&&(n=t.accessor);const o=n(e);return null==o?[]:Array.isArray(o)?o:[String(o)]}const Tw={maxRanking:1/0,minRanking:-1/0};function Iw(e){return"function"==typeof e?Tw:{...Tw,...e}}function Ow(e,t){const[n,o]=k.useState();k.useEffect((()=>{const n=(e=>{try{const t=localStorage.getItem(e);return"string"==typeof t?JSON.parse(t):void 0}catch{return}})(e);o(null==n?"function"==typeof t?t():t:n)}),[t,e]);return[n,k.useCallback((t=>{o((n=>{let o=t;"function"==typeof t&&(o=t(n));try{localStorage.setItem(e,JSON.stringify(o))}catch{}return o}))}),[e])]}var Aw,zw=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}(),Pw=function(){function e(e){this.generateIdentifier=e,this.kv=new zw}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}(),Lw=(Aw=function(e,t){return Aw=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])},Aw(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}Aw(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Dw=function(e){function t(){var t=e.call(this,(function(e){return e.name}))||this;return t.classToAllowedProps=new Map,t}return Lw(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}(Pw),qw=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)r.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return r};function Nw(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 o=n,a=0;a<o.length;a++){var i=o[a];if(t(i))return i}}function Mw(e,t){Object.entries(e).forEach((function(e){var n=qw(e,2),o=n[0],a=n[1];return t(a,o)}))}function Fw(e,t){return-1!==e.indexOf(t)}function Uw(e,t){for(var n=0;n<e.length;n++){var o=e[n];if(t(o))return o}}var Bw=function(){function e(){this.transfomers={}}return e.prototype.register=function(e){this.transfomers[e.name]=e},e.prototype.findApplicable=function(e){return Nw(this.transfomers,(function(t){return t.isApplicable(e)}))},e.prototype.findByName=function(e){return this.transfomers[e]},e}(),Ww=function(e){return void 0===e},Hw=function(e){return"object"==typeof e&&null!==e&&(e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype))},Vw=function(e){return Hw(e)&&0===Object.keys(e).length},Gw=function(e){return Array.isArray(e)},$w=function(e){return e instanceof Map},Kw=function(e){return e instanceof Set},Qw=function(e){return"Symbol"===function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e)},Jw=function(e){return"number"==typeof e&&isNaN(e)},Yw=function(e){return function(e){return"boolean"==typeof e}(e)||function(e){return null===e}(e)||Ww(e)||function(e){return"number"==typeof e&&!isNaN(e)}(e)||function(e){return"string"==typeof e}(e)||Qw(e)},Xw=function(e){return e.replace(/\./g,"\\.")},Zw=function(e){return e.map(String).map(Xw).join(".")},ej=function(e){for(var t=[],n="",o=0;o<e.length;o++){var a=e.charAt(o);if("\\"===a&&"."===e.charAt(o+1))n+=".",o++;else"."===a?(t.push(n),n=""):n+=a}var i=n;return t.push(i),t},tj=function(){return tj=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},tj.apply(this,arguments)},nj=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)r.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return r},oj=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e};function aj(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var ij=[aj(Ww,"undefined",(function(){return null}),(function(){})),aj((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)})),aj((function(e){return e instanceof Date&&!isNaN(e.valueOf())}),"Date",(function(e){return e.toISOString()}),(function(e){return new Date(e)})),aj((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})),aj((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)})),aj(Kw,"set",(function(e){return oj([],nj(e.values()))}),(function(e){return new Set(e)})),aj($w,"map",(function(e){return oj([],nj(e.entries()))}),(function(e){return new Map(e)})),aj((function(e){return Jw(e)||((t=e)===1/0||t===-1/0);var t}),"number",(function(e){return Jw(e)?"NaN":e>0?"Infinity":"-Infinity"}),Number),aj((function(e){return 0===e&&1/e==-1/0}),"number",(function(){return"-0"}),Number),aj((function(e){return e instanceof URL}),"URL",(function(e){return e.toString()}),(function(e){return new URL(e)}))];function rj(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var sj=rj((function(e,t){return!!Qw(e)&&!!t.symbolRegistry.getIdentifier(e)}),(function(e,t){return["symbol",t.symbolRegistry.getIdentifier(e)]}),(function(e){return e.description}),(function(e,t,n){var o=n.symbolRegistry.getValue(t[1]);if(!o)throw new Error("Trying to deserialize unknown symbol");return o})),cj=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((function(e,t){return e[t.name]=t,e}),{}),uj=rj((function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}),(function(e){return["typed-array",e.constructor.name]}),(function(e){return oj([],nj(e))}),(function(e,t){var n=cj[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)}));function lj(e,t){return!!(null==e?void 0:e.constructor)&&!!t.classRegistry.getIdentifier(e.constructor)}var pj=rj(lj,(function(e,t){return["class",t.classRegistry.getIdentifier(e.constructor)]}),(function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return tj({},e);var o={};return n.forEach((function(t){o[t]=e[t]})),o}),(function(e,t,n){var o=n.classRegistry.getValue(t[1]);if(!o)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(o.prototype),e)})),dj=rj((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 o=n.customTransformerRegistry.findByName(t[1]);if(!o)throw new Error("Trying to deserialize unknown custom value");return o.deserialize(e)})),mj=[pj,sj,dj,uj],hj=function(e,t){var n=Uw(mj,(function(n){return n.isApplicable(e,t)}));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var o=Uw(ij,(function(n){return n.isApplicable(e,t)}));return o?{value:o.transform(e,t),type:o.annotation}:void 0},fj={};ij.forEach((function(e){fj[e.annotation]=e}));var gj=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function yj(e){if(Fw(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Fw(e,"prototype"))throw new Error("prototype is not allowed as a property");if(Fw(e,"constructor"))throw new Error("constructor is not allowed as a property")}var vj=function(e,t,n){if(yj(t),0===t.length)return n(e);for(var o=e,a=0;a<t.length-1;a++){var i=t[a];if(Gw(o))o=o[+i];else if(Hw(o))o=o[i];else if(Kw(o)){o=gj(o,r=+i)}else if($w(o)){if(a===t.length-2)break;var r=+i,s=0==+t[++a]?"key":"value",c=gj(o,r);switch(s){case"key":o=c;break;case"value":o=o.get(c)}}}var u=t[t.length-1];if(Gw(o)?o[+u]=n(o[+u]):Hw(o)&&(o[u]=n(o[u])),Kw(o)){var l=gj(o,+u),p=n(l);l!==p&&(o.delete(l),o.add(p))}if($w(o)){r=+t[t.length-2];var d=gj(o,r);switch(s=0==+u?"key":"value"){case"key":var m=n(d);o.set(m,o.get(d)),m!==d&&o.delete(d);break;case"value":o.set(d,n(o.get(d)))}}return e},bj=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)r.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return r},kj=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e};function xj(e,t,n){if(void 0===n&&(n=[]),e)if(Gw(e)){var o=bj(e,2),a=o[0],i=o[1];i&&Mw(i,(function(e,o){xj(e,t,kj(kj([],bj(n)),bj(ej(o))))})),t(a,n)}else Mw(e,(function(e,o){return xj(e,t,kj(kj([],bj(n)),bj(ej(o))))}))}function wj(e,t,n){return xj(t,(function(t,o){e=vj(e,o,(function(e){return function(e,t,n){if(!Gw(t)){var o=fj[t];if(!o)throw new Error("Unknown transformation: "+t);return o.untransform(e,n)}switch(t[0]){case"symbol":return sj.untransform(e,t,n);case"class":return pj.untransform(e,t,n);case"custom":return dj.untransform(e,t,n);case"typed-array":return uj.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}}(e,t,n)}))})),e}function jj(e,t){function n(t,n){var o=function(e,t){yj(t);for(var n=0;n<t.length;n++){var o=t[n];if(Kw(e))e=gj(e,+o);else if($w(e)){var a=+o,i=0==+t[++n]?"key":"value",r=gj(e,a);switch(i){case"key":e=r;break;case"value":e=e.get(r)}}else e=e[o]}return e}(e,ej(n));t.map(ej).forEach((function(t){e=vj(e,t,(function(){return o}))}))}if(Gw(t)){var o=bj(t,2),a=o[0],i=o[1];a.forEach((function(t){e=vj(e,ej(t),(function(){return e}))})),i&&Mw(i,n)}else Mw(t,n);return e}var Cj=function(e,t,n,o,a,i,r){var s;void 0===a&&(a=[]),void 0===i&&(i=[]),void 0===r&&(r=new Map);var c=Yw(e);if(!c){!function(e,t,n){var o=n.get(e);o?o.push(t):n.set(e,[t])}(e,a,t);var u=r.get(e);if(u)return o?{transformedValue:null}:u}if(!function(e,t){return Hw(e)||Gw(e)||$w(e)||Kw(e)||lj(e,t)}(e,n)){var l=hj(e,n),p=l?{transformedValue:l.value,annotations:[l.type]}:{transformedValue:e};return c||r.set(e,p),p}if(Fw(i,e))return{transformedValue:null};var d=hj(e,n),m=null!==(s=null==d?void 0:d.value)&&void 0!==s?s:e,h=Gw(m)?[]:{},f={};Mw(m,(function(s,c){var u=Cj(s,t,n,o,kj(kj([],bj(a)),[c]),kj(kj([],bj(i)),[e]),r);h[c]=u.transformedValue,Gw(u.annotations)?f[c]=u.annotations:Hw(u.annotations)&&Mw(u.annotations,(function(e,t){f[Xw(c)+"."+t]=e}))}));var g=Vw(f)?{transformedValue:h,annotations:d?[d.type]:void 0}:{transformedValue:h,annotations:d?[d.type,f]:f};return c||r.set(e,g),g};function Ej(e){return Object.prototype.toString.call(e).slice(8,-1)}function Sj(e){return"Array"===Ej(e)}function _j(e,t={}){if(Sj(e))return e.map((e=>_j(e,t)));if(!function(e){if("Object"!==Ej(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,o)=>{if(Sj(t.props)&&!t.props.includes(o))return n;return function(e,t,n,o,a){const i={}.propertyIsEnumerable.call(o,t)?"enumerable":"nonenumerable";"enumerable"===i&&(e[t]=n),a&&"nonenumerable"===i&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}(n,o,_j(e[o],t),e,t.nonenumerable),n}),{})}var Rj=function(){return Rj=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Rj.apply(this,arguments)},Tj=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)r.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return r},Ij=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e},Oj=function(){function e(e){var t=(void 0===e?{}:e).dedupe,n=void 0!==t&&t;this.classRegistry=new Dw,this.symbolRegistry=new Pw((function(e){var t;return null!==(t=e.description)&&void 0!==t?t:""})),this.customTransformerRegistry=new Bw,this.allowedErrorProps=[],this.dedupe=n}return e.prototype.serialize=function(e){var t=new Map,n=Cj(e,t,this,this.dedupe),o={json:n.transformedValue};n.annotations&&(o.meta=Rj(Rj({},o.meta),{values:n.annotations}));var a,i,r,s,c=(a=t,i=this.dedupe,r={},s=void 0,a.forEach((function(e){if(!(e.length<=1)){i||(e=e.map((function(e){return e.map(String)})).sort((function(e,t){return e.length-t.length})));var t=bj(e),n=t[0],o=t.slice(1);0===n.length?s=o.map(Zw):r[Zw(n)]=o.map(Zw)}})),s?Vw(r)?[s]:[s,r]:Vw(r)?void 0:r);return c&&(o.meta=Rj(Rj({},o.meta),{referentialEqualities:c})),o},e.prototype.deserialize=function(e){var t=e.json,n=e.meta,o=_j(t);return(null==n?void 0:n.values)&&(o=wj(o,n.values,this)),(null==n?void 0:n.referentialEqualities)&&(o=jj(o,n.referentialEqualities)),o},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(Rj({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,Ij([],Tj(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 Aj={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",paused:"#8c49eb",warning:"#ffb200"},zj=k.createContext(Aj);function Pj({theme:e,...t}){return k.createElement(zj.Provider,mw({value:e},t))}function Lj({queryState:e,observerCount:t,isStale:n,theme:o}){return"fetching"===e.fetchStatus?o.active:t?"paused"===e.fetchStatus?o.paused:n?o.warning:o.success:o.gray}function Dj(e){return"fetching"===e.state.fetchStatus?"fetching":e.getObserversCount()?"paused"===e.state.fetchStatus?"paused":e.isStale()?"stale":"fresh":"inactive"}function qj(e,t,n={}){return k.forwardRef((({style:o,...a},i)=>{const r=k.useContext(zj),s=Object.entries(n).reduce(((e,[t,n])=>function(e){const[t,n]=k.useState((()=>{if("undefined"!=typeof window)return window.matchMedia(e).matches}));return k.useEffect((()=>{if("undefined"!=typeof window){const t=window.matchMedia(e),o=({matches:e})=>n(e);return t.addListener(o),()=>{t.removeListener(o)}}}),[t,e,n]),t}(t)?{...e,..."function"==typeof n?n(a,r):n}:e),{});return k.createElement(e,{...a,style:{..."function"==typeof t?t(a,r):t,...o,...s},ref:i})}))}const Nj=(e,t=!1)=>{const{json:n}=Oj.serialize(e);return JSON.stringify(n,null,t?2:void 0)},Mj=e=>"idle"!==e.state.fetchStatus?0:e.getObserversCount()?e.isStale()?2:1:3,Fj=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,Uj={"Status > Last Updated":(e,t)=>Mj(e)===Mj(t)?Fj(e,t):Mj(e)>Mj(t)?1:-1,"Query Hash":(e,t)=>e.queryHash.localeCompare(t.queryHash),"Last Updated":Fj},Bj=500,Wj={top:"bottom",bottom:"top",left:"right",right:"left"};function Hj(e){return["left","right"].includes(e)}function Vj(e){return Wj[e]}function Gj(e,t){return""+e+(t.charAt(0).toUpperCase()+t.slice(1))}function $j(e="bottom"){const t=Hj(e),n=Vj(e),o=Gj("margin",n);return{position:"absolute",cursor:t?"col-resize":"row-resize",zIndex:1e5,[n]:0,[o]:"-4px",...t?{top:0,height:"100%",width:"4px"}:{width:"100%",height:"4px"}}}const Kj=qj("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"}}),Qj=qj("div",(()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"})),{"(max-width: 700px)":(e,t)=>({borderTop:"2px solid "+t.gray})}),Jj=qj("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"}))),Yj=qj("span",{display:"flex",flexWrap:"wrap",gap:"0.5em",fontSize:"0.9em"}),Xj=qj("span",{display:"inline-flex",alignItems:"center",padding:".2em .4em",fontWeight:"bold",textShadow:"0 0 10px black",borderRadius:".2em"}),Zj=qj("code",{fontSize:".9em",color:"inherit",background:"inherit"}),eC=qj("input",((e,t)=>({backgroundColor:t.inputBackgroundColor,border:0,borderRadius:".2em",color:t.inputTextColor,fontSize:".9em",lineHeight:"1.3",padding:".3em .4em"}))),tC=qj("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 nC({text:e}){return k.createElement("span",{style:{position:"absolute",width:"0.1px",height:"0.1px",overflow:"hidden"}},e)}const oC=qj("div",{fontFamily:"Menlo, monospace",fontSize:"1em",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),aC=qj("span",{color:"white"}),iC=qj("button",{cursor:"pointer",color:"white"}),rC=qj("button",{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}),sC=({value:e})=>{const[t,n]=k.useState("NoCopy");return k.createElement("button",{onClick:"NoCopy"===t?()=>{navigator.clipboard.writeText(Oj.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?k.createElement(dC,null):"SuccessCopy"===t?k.createElement(hC,null):k.createElement(mC,null))},cC=qj("span",((e,t)=>({color:t.danger}))),uC=qj("div",{marginLeft:".1em",paddingLeft:"1em",borderLeft:"2px solid rgba(0,0,0,.15)"}),lC=qj("span",{color:"grey",fontSize:".7em"}),pC=({expanded:e,style:t={}})=>k.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:"rotate("+(e?90:0)+"deg) "+(t.transform||""),...t}},"▶"),dC=()=>k.createElement("span",{"aria-label":"Copy object to clipboard",title:"Copy object to clipboard",style:{paddingLeft:"1em"}},k.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10"},k.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"}),k.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"}))),mC=()=>k.createElement("span",{"aria-label":"Failed copying to clipboard",title:"Failed copying to clipboard",style:{paddingLeft:"1em",display:"flex",alignItems:"center"}},k.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10",display:"block"},k.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"})),k.createElement("span",{style:{color:"red",fontSize:"12px",paddingLeft:"4px",position:"relative",top:"2px"}},"See console")),hC=()=>k.createElement("span",{"aria-label":"Object copied to clipboard",title:"Object copied to clipboard",style:{paddingLeft:"1em",display:"inline-block",verticalAlign:"middle"}},k.createElement("svg",{height:"16",viewBox:"0 0 16 16",width:"16",display:"block"},k.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 fC=({handleEntry:e,label:t,value:n,subEntries:o=[],subEntryPages:a=[],type:i,expanded:r=!1,copyable:s=!1,toggleExpanded:c,pageSize:u})=>{const[l,p]=k.useState([]);return k.createElement(oC,{key:t},a.length?k.createElement(k.Fragment,null,k.createElement(rC,{onClick:()=>c()},k.createElement(pC,{expanded:r})," ",t," ",k.createElement(lC,null,"iterable"===String(i).toLowerCase()?"(Iterable) ":"",o.length," ",o.length>1?"items":"item")),s?k.createElement(sC,{value:n}):null,r?1===a.length?k.createElement(uC,null,o.map(e)):k.createElement(uC,null,a.map(((t,n)=>k.createElement("div",{key:n},k.createElement(oC,null,k.createElement(iC,{onClick:()=>p((e=>e.includes(n)?e.filter((e=>e!==n)):[...e,n]))},k.createElement(pC,{expanded:r})," [",n*u," ..."," ",n*u+u-1,"]"),l.includes(n)?k.createElement(uC,null,t.map(e)):null))))):null):k.createElement(k.Fragment,null,k.createElement(aC,null,t,":")," ",k.createElement(cC,null,Nj(n))))};function gC({value:e,defaultExpanded:t,renderer:n=fC,pageSize:o=100,copyable:a=!1,...i}){const[r,s]=k.useState(Boolean(t)),c=k.useCallback((()=>s((e=>!e))),[]);let u=typeof e,l=[];const p=e=>{const n=!0===t?{[e.label]:!0}:null==t?void 0:t[e.label];return{...e,defaultExpanded:n}};var d;Array.isArray(e)?(u="array",l=e.map(((e,t)=>p({label:t.toString(),value:e})))):null!==e&&"object"==typeof e&&(d=e,Symbol.iterator in d)&&"function"==typeof e[Symbol.iterator]?(u="Iterable",l=Array.from(e,((e,t)=>p({label:t.toString(),value:e})))):"object"==typeof e&&null!==e&&(u="object",l=Object.entries(e).map((([e,t])=>p({label:e,value:t}))));const m=function(e,t){if(t<1)return[];let n=0;const o=[];for(;n<e.length;)o.push(e.slice(n,n+t)),n+=t;return o}(l,o);return n({handleEntry:t=>k.createElement(gC,mw({key:t.label,value:e,renderer:n,copyable:a},i,t)),type:u,subEntries:l,subEntryPages:m,value:e,expanded:r,copyable:a,toggleExpanded:c,pageSize:o,...i})}function yC(e){return k.createElement("svg",mw({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),k.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},k.createElement("g",{transform:"translate(-33.000000, 0.000000)"},k.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) "}),k.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"}),k.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 vC=(e,t,n=!1)=>hf.useSyncExternalStore(k.useCallback((t=>n?()=>{}:e.subscribe($h.batchCalls(t))),[e,n]),t,t),bC=k.forwardRef((function(e,t){const{isOpen:n=!0,styleNonce:o,setIsOpen:a,context:i,onDragStart:r,onPositionChange:s,showCloseButton:c,position:u,closeButtonProps:l={},errorTypes:p=[],...d}=e,{onClick:m,...h}=l,f=bf({context:i}),g=f.getQueryCache(),[y,v]=Ow("reactQueryDevtoolsSortFn",Object.keys(Uj)[0]),[b,x]=Ow("reactQueryDevtoolsFilter",""),[w,j]=Ow("reactQueryDevtoolsBaseSort",1),C=k.useMemo((()=>Uj[y]),[y]),E=vC(g,(()=>g.getAll().length),!n),[S,_]=Ow("reactQueryDevtoolsActiveQueryHash",""),R=k.useMemo((()=>{const e=g.getAll();if(0===E)return[];const t=b?e.filter((e=>Ew(e.queryHash,b).passed)):[...e];return C?t.sort(((e,t)=>C(e,t)*w)):t}),[w,C,b,E,g]),[T,I]=k.useState(!1);return k.createElement(Pj,{theme:Aj},k.createElement(Kj,mw({ref:t,className:"ReactQueryDevtoolsPanel","aria-label":"React Query Devtools Panel",id:"ReactQueryDevtoolsPanel"},d,{style:{height:Bj,position:"relative",...d.style}}),k.createElement("style",{nonce:o,dangerouslySetInnerHTML:{__html:"\n .ReactQueryDevtoolsPanel * {\n scrollbar-color: "+Aj.backgroundAlt+" "+Aj.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: "+Aj.backgroundAlt+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-thumb, .ReactQueryDevtoolsPanel scrollbar-thumb {\n background: "+Aj.gray+";\n border-radius: .5em;\n border: 3px solid "+Aj.backgroundAlt+";\n }\n "}}),k.createElement("div",{style:$j(u),onMouseDown:r}),n&&k.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:"1px solid "+Aj.grayAlt,display:"flex",flexDirection:"column"}},k.createElement("div",{style:{padding:".5em",background:Aj.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},k.createElement("button",{type:"button","aria-label":"Close React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true",onClick:()=>a(!1),style:{display:"inline-flex",background:"none",border:0,padding:0,marginRight:".5em",cursor:"pointer"}},k.createElement(yC,{"aria-hidden":!0}),k.createElement(nC,{text:"Close React Query Devtools"})),k.createElement("div",{style:{display:"flex",flexDirection:"column"}},k.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:".5em"}},k.createElement(xC,{queryCache:g}),u&&s?k.createElement(tC,{"aria-label":"Panel position",value:u,style:{marginInlineStart:".5em"},onChange:e=>s(e.target.value)},k.createElement("option",{value:"left"},"Left"),k.createElement("option",{value:"right"},"Right"),k.createElement("option",{value:"top"},"Top"),k.createElement("option",{value:"bottom"},"Bottom")):null),k.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"0.5em"}},k.createElement(eC,{placeholder:"Filter","aria-label":"Filter by queryhash",value:null!=b?b:"",onChange:e=>x(e.target.value),onKeyDown:e=>{"Escape"===e.key&&x("")},style:{flex:"1",width:"100%"}}),k.createElement(tC,{"aria-label":"Sort queries",value:y,onChange:e=>v(e.target.value),style:{flex:"1",minWidth:75,marginRight:".5em"}},Object.keys(Uj).map((e=>k.createElement("option",{key:e,value:e},"Sort by ",e)))),k.createElement(Jj,{type:"button",onClick:()=>j((e=>-1*e)),style:{padding:".3em .4em",marginRight:".5em"}},1===w?"⬆ Asc":"⬇ Desc"),k.createElement(Jj,{title:"Clear cache","aria-label":"Clear cache",type:"button",onClick:()=>g.clear(),style:{padding:".3em .4em",marginRight:".5em"}},"Clear"),k.createElement(Jj,{type:"button",onClick:()=>{T?(Fh.setOnline(void 0),I(!1),window.dispatchEvent(new Event("online"))):(Fh.setOnline(!1),I(!0))},"aria-label":T?"Restore offline mock":"Mock offline behavior",title:T?"Restore offline mock":"Mock offline behavior",style:{padding:"0",height:"2em"}},k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"2em",height:"2em",viewBox:"0 0 24 24",stroke:T?Aj.danger:"currentColor",fill:"none"},T?k.createElement(k.Fragment,null,k.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),k.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),k.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),k.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"}),k.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"}),k.createElement("line",{x1:"3",y1:"3",x2:"21",y2:"21"})):k.createElement(k.Fragment,null,k.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),k.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),k.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),k.createElement("path",{d:"M6.343 12.343a8 8 0 0 1 11.314 0"}),k.createElement("path",{d:"M3.515 9.515c4.686 -4.687 12.284 -4.687 17 0"}))),k.createElement(nC,{text:T?"Restore offline mock":"Mock offline behavior"}))))),k.createElement("div",{style:{overflowY:"auto",flex:"1"}},R.map((e=>k.createElement(wC,{queryKey:e.queryKey,activeQueryHash:S,setActiveQueryHash:_,key:e.queryHash,queryCache:g}))))),S&&n?k.createElement(kC,{activeQueryHash:S,queryCache:g,queryClient:f,errorTypes:p}):null,c?k.createElement(Jj,mw({type:"button","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true"},h,{style:{position:"absolute",zIndex:99999,margin:".5em",bottom:0,left:0,...h.style},onClick:e=>{a(!1),null==m||m(e)}}),"Close"):null))})),kC=({queryCache:e,activeQueryHash:t,queryClient:n,errorTypes:o})=>{var a,i;const r=vC(e,(()=>e.getAll().find((e=>e.queryHash===t)))),s=vC(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.state})),c=null!=(a=vC(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.isStale()})))&&a,u=null!=(i=vC(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.getObserversCount()})))?i:0,l=E((()=>{if(r&&null!=s&&s.error){const e=o.find((e=>{var t;return e.initializer(r).toString()===(null==(t=s.error)?void 0:t.toString())}));return null==e?void 0:e.name}}),[r,null==s?void 0:s.error,o]);if(!r||!s)return null;const p=e=>{var t;const n=null!=(t=null==e?void 0:e.initializer(r))?t:new Error("Unknown error from devtools"),o=r.options;r.setState({status:"error",error:n,fetchMeta:{...r.state.fetchMeta,__previousQueryOptions:o}})};return k.createElement(Qj,null,k.createElement("div",{style:{padding:".5em",background:Aj.backgroundAlt,position:"sticky",top:0,zIndex:1}},"Query Details"),k.createElement("div",{style:{padding:".5em"}},k.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"flex-start",justifyContent:"space-between"}},k.createElement(Zj,{style:{lineHeight:"1.8em"}},k.createElement("pre",{style:{margin:0,padding:0,overflow:"auto"}},Nj(r.queryKey,!0))),k.createElement("span",{style:{padding:"0.3em .6em",borderRadius:"0.4em",fontWeight:"bold",textShadow:"0 2px 10px black",background:Lj({queryState:s,isStale:c,observerCount:u,theme:Aj}),flexShrink:0}},Dj(r))),k.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"center",justifyContent:"space-between"}},"Observers: ",k.createElement(Zj,null,u)),k.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},"Last Updated:"," ",k.createElement(Zj,null,new Date(s.dataUpdatedAt).toLocaleTimeString()))),k.createElement("div",{style:{background:Aj.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Actions"),k.createElement("div",{style:{padding:"0.5em",display:"flex",flexWrap:"wrap",gap:"0.5em",alignItems:"flex-end"}},k.createElement(Jj,{type:"button",onClick:()=>{const e=null==r?void 0:r.fetch();null==e||e.catch(jC)},disabled:"fetching"===s.fetchStatus,style:{background:Aj.active}},"Refetch")," ",k.createElement(Jj,{type:"button",onClick:()=>n.invalidateQueries(r),style:{background:Aj.warning,color:Aj.inputTextColor}},"Invalidate")," ",k.createElement(Jj,{type:"button",onClick:()=>n.resetQueries(r),style:{background:Aj.gray}},"Reset")," ",k.createElement(Jj,{type:"button",onClick:()=>n.removeQueries(r),style:{background:Aj.danger}},"Remove")," ",k.createElement(Jj,{type:"button",onClick:()=>{var e;if("fetching"!==r.state.fetchStatus||void 0!==(null==(e=r.state.fetchMeta)?void 0:e.__previousQueryOptions))if(void 0===r.state.data)r.fetch(r.state.fetchMeta.__previousQueryOptions,{cancelRefetch:!0});else{const e=r.options;r.fetch({...e,queryFn:()=>new Promise((()=>{})),cacheTime:-1}),r.setState({data:void 0,status:"loading",fetchMeta:{...r.state.fetchMeta,__previousQueryOptions:e}})}},style:{background:Aj.paused}},"loading"===r.state.status?"Restore":"Trigger"," ","loading")," ",0===o.length||"error"===r.state.status?k.createElement(Jj,{type:"button",onClick:()=>{r.state.error?n.resetQueries(r):p()},style:{background:Aj.danger}},"error"===r.state.status?"Restore":"Trigger"," error"):k.createElement("label",null,"Trigger error:",k.createElement(tC,{value:null!=l?l:"",style:{marginInlineStart:".5em"},onChange:e=>{const t=o.find((t=>t.name===e.target.value));p(t)}},k.createElement("option",{key:"",value:""}),o.map((e=>k.createElement("option",{key:e.name,value:e.name},e.name)))))),k.createElement("div",{style:{background:Aj.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Data Explorer"),k.createElement("div",{style:{padding:".5em"}},k.createElement(gC,{label:"Data",value:s.data,defaultExpanded:{},copyable:!0})),k.createElement("div",{style:{background:Aj.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Query Explorer"),k.createElement("div",{style:{padding:".5em"}},k.createElement(gC,{label:"Query",value:r,defaultExpanded:{queryKey:!0}})))},xC=({queryCache:e})=>{const t=vC(e,(()=>e.getAll().filter((e=>"fresh"===Dj(e))).length)),n=vC(e,(()=>e.getAll().filter((e=>"fetching"===Dj(e))).length)),o=vC(e,(()=>e.getAll().filter((e=>"paused"===Dj(e))).length)),a=vC(e,(()=>e.getAll().filter((e=>"stale"===Dj(e))).length)),i=vC(e,(()=>e.getAll().filter((e=>"inactive"===Dj(e))).length));return k.createElement(Yj,null,k.createElement(Xj,{style:{background:Aj.success,opacity:t?1:.3}},"fresh ",k.createElement(Zj,null,"(",t,")"))," ",k.createElement(Xj,{style:{background:Aj.active,opacity:n?1:.3}},"fetching ",k.createElement(Zj,null,"(",n,")"))," ",k.createElement(Xj,{style:{background:Aj.paused,opacity:o?1:.3}},"paused ",k.createElement(Zj,null,"(",o,")"))," ",k.createElement(Xj,{style:{background:Aj.warning,color:"black",textShadow:"0",opacity:a?1:.3}},"stale ",k.createElement(Zj,null,"(",a,")"))," ",k.createElement(Xj,{style:{background:Aj.gray,opacity:i?1:.3}},"inactive ",k.createElement(Zj,null,"(",i,")")))},wC=k.memo((({queryKey:e,setActiveQueryHash:t,activeQueryHash:n,queryCache:o})=>{var a,i,r,s;const c=null!=(a=vC(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.queryHash})))?a:"",u=vC(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.state})),l=null!=(i=vC(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.isStale()})))&&i,p=null!=(r=vC(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.isDisabled()})))&&r,d=null!=(s=vC(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.getObserversCount()})))?s:0;return u?k.createElement("div",{role:"button","aria-label":"Open query details for "+c,onClick:()=>t(n===c?"":c),style:{display:"flex",borderBottom:"solid 1px "+Aj.grayAlt,cursor:"pointer",background:c===n?"rgba(255,255,255,.1)":void 0}},k.createElement("div",{style:{flex:"0 0 auto",width:"2em",height:"2em",background:Lj({queryState:u,isStale:l,observerCount:d,theme:Aj}),display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold",textShadow:l?"0":"0 0 10px black",color:l?"black":"white"}},d),p?k.createElement("div",{style:{flex:"0 0 auto",height:"2em",background:Aj.gray,display:"flex",alignItems:"center",fontWeight:"bold",padding:"0 0.5em"}},"disabled"):null,k.createElement(Zj,{style:{padding:".5em"}},""+c)):null}));function jC(){}wC.displayName="QueryRow";const CC="development"!==process.env.NODE_ENV?function(){return null}:function({initialIsOpen:e,panelProps:t={},closeButtonProps:n={},toggleButtonProps:o={},position:a="bottom-left",containerElement:i="aside",context:r,styleNonce:s,panelPosition:c="bottom",errorTypes:u=[]}){const l=k.useRef(null),p=k.useRef(null),[d,m]=Ow("reactQueryDevtoolsOpen",e),[h,f]=Ow("reactQueryDevtoolsHeight",Bj),[g,y]=Ow("reactQueryDevtoolsWidth",Bj),[v="bottom",b]=Ow("reactQueryDevtoolsPanelPosition",c),[x,w]=k.useState(!1),[j,C]=k.useState(!1),E=function(){const e=k.useRef(!1),t=k.useCallback((()=>e.current),[]);return k.useEffect((()=>(e.current=!0,()=>{e.current=!1})),[]),t}();k.useEffect((()=>{w(null!=d&&d)}),[d,x,w]),k.useEffect((()=>{const e=p.current;if(e){const t=()=>{x&&(e.style.visibility="visible")},n=()=>{x||(e.style.visibility="hidden")};return e.addEventListener("transitionstart",t),e.addEventListener("transitionend",n),()=>{e.removeEventListener("transitionstart",t),e.removeEventListener("transitionend",n)}}}),[x]),k.useEffect((()=>{var e;if(x&&null!=(e=l.current)&&e.parentElement){const{parentElement:e}=l.current,t=Gj("padding",v),n=Hj(v),o=(({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:o,paddingRight:a})=>({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:o,paddingRight:a}))(e.style),a=()=>{e.style.padding="0px",e.style.paddingTop="0px",e.style.paddingBottom="0px",e.style.paddingLeft="0px",e.style.paddingRight="0px",e.style[t]=(n?g:h)+"px"};if(a(),"undefined"!=typeof window)return window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a),Object.entries(o).forEach((([t,n])=>{e.style[t]=n}))}}}),[x,v,h,g]);const{style:S={},..._}=t,{style:R={},onClick:T,...I}=o,O=function({position:e="bottom",height:t,width:n,devtoolsTheme:o,isOpen:a,isResizing:i,panelStyle:r}){const s=Vj(e),c=Gj("border",s),u=Hj(e);return{...r,direction:"ltr",position:"fixed",[e]:0,[c]:"1px solid "+o.gray,transformOrigin:s,boxShadow:"0 0 20px rgba(0,0,0,.3)",zIndex:99999,visibility:a?"visible":"hidden",...i?{transition:"none"}:{transition:"all .2s ease"},...a?{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:Bj}:{left:0,width:"100%",maxHeight:"90%",height:"number"==typeof t&&t>=70?t:Bj}}}({position:v,devtoolsTheme:Aj,isOpen:x,height:h,width:g,isResizing:j,panelStyle:S});return E()?k.createElement(i,{ref:l,className:"ReactQueryDevtools","aria-label":"React Query Devtools"},k.createElement(Pj,{theme:Aj},k.createElement(bC,mw({ref:p,context:r,styleNonce:s,position:v,onPositionChange:b,showCloseButton:!0,closeButtonProps:n},_,{style:O,isOpen:x,setIsOpen:m,onDragStart:e=>((e,t)=>{if(!e)return;if(0!==t.button)return;const n=Hj(v);C(!0);const{height:o,width:a}=e.getBoundingClientRect(),i=t.clientX,r=t.clientY;let s=0;const c=e=>{e.preventDefault(),n?(s=a+("right"===v?i-e.clientX:e.clientX-i),y(s)):(s=o+("bottom"===v?r-e.clientY:e.clientY-r),f(s)),m(!(s<70))},u=()=>{j&&C(!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:u}))),x?null:k.createElement("button",mw({type:"button"},I,{"aria-label":"Open React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"false",onClick:e=>{m(!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"===a?{top:"0",right:"0"}:"top-left"===a?{top:"0",left:"0"}:"bottom-right"===a?{bottom:"0",right:"0"}:{bottom:"0",left:"0"},...R}}),k.createElement(yC,{"aria-hidden":!0}),k.createElement(nC,{text:"Open React Query Devtools"}))):null};process.env.NODE_ENV;var EC,SC={backgroundColor:"#fcfcff",width:"100%",zIndex:1e7,height:"100%",position:"absolute"};function _C(e){var o=this,i=e.children,r=process.env.ENVIRONMENT,s=E((function(){return"DEV"!==r&&"LOCAL"!==r?"testing":"live"}),[process.env.ENVIRONMENT]),c=w(!1),u=c[0],l=c[1],p=S((function(e){return t(o,void 0,void 0,(function(){var t,o,i,r,c;return n(this,(function(n){switch(n.label){case 0:return t=localStorage.getItem("headers"),o=t&&JSON.parse(t),i=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live",r=localStorage.getItem("x-organization-code"),c=r?JSON.parse(r).value:"",[4,fh.refreshInstance({headers:a(a({},o),{"X-Environment":i||s,"x-organization-code":c,"x-account-code":e.detail.accountCode,"X-Content-Type-Options":"nosniff"})})];case 1:return n.sent(),[2]}}))}))}),[s,l]);C((function(){return addEventListener("ACCOUNT_CHANGED",p),function(){window.removeEventListener("ACCOUNT_CHANGED",p)}}),[p]);var d=S((function(e){return t(o,void 0,void 0,(function(){var t,o,i,r,c,u,p;return n(this,(function(n){switch(n.label){case 0:return t=localStorage.getItem("headers"),(o=t&&JSON.parse(t))?(i=localStorage.getItem("x-organization-code"),r=localStorage.getItem("account"),c=r?null===(p=JSON.parse(r).value)||void 0===p?void 0:p.code:"",u=i?JSON.parse(i).value:"",[4,fh.refreshInstance({headers:a(a({},o),{"X-Environment":e||s,"x-organization-code":u,"x-account-code":c,"X-Content-Type-Options":"nosniff"})})]):[3,2];case 1:n.sent(),kg.refetchQueries(["fetch-profile","accountsV2","accounts","fetch-all-organizations","fetch-permissions"]),l(!0),n.label=2;case 2:return[2]}}))}))}),[s,l]);return C((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?d(n):"token"===t.key&&d(e)}})),d(e)}),[l,d]),u?React.createElement(kf,{client:kg},i,React.createElement(CC,{initialIsOpen:!1})):React.createElement("div",{style:SC})}!function(e){e.ECONNABORTED="ECONNABORTED",e.ETIMEDOUT="ETIMEDOUT",e.ERR_BAD_REQUEST="ERR_BAD_REQUEST"}(EC||(EC={}));var RC=["LOCAL","DEV","STG"].includes(process.env.ENVIRONMENT||"");"undefined"!=typeof window&&RC&&function(){t(this,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:if(!_a())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,Ca.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{qx as ALL_FEATURE_FLAGS,mh as Api,EC as ApiErrorCodes,_C as ApiProvider,fh as ApiSingleton,Od as Cms,Id as Country,Pd as DataReport,Td as Organization,Dd as ReconciliationAgendaInsight,Ld as ReconciliationReportType,Ad as ReportType,Rd as SendPaymentNotification,zd as TemplateType,ck as getQueryKeyGetNameAndIcon,lk as getQueryKeyRequiredFields,bg as queryCache,kg as queryClient,ok as use3DSExemptions,Sv as useAICreateWorkflow,Nx as useAllFeatureFlags,tw as useAllowListDetail,Yf as useArchiveConnection,ew as useBlackListDetail,Mx as useCachedFeatureFlag,Eg as useCancelReport,ng as useChangePassword,og as useChangePasswordV2,Ny as useChangePaymentsWebhook,$g as useChangeState,Ay as useChangeStatusBlackList,zy as useChangeStatusItemBlackList,vg as useChargebacksUpload,lw as useChartExecute,gy as useConfirmedOtpForEnrollment,fy as useConfirmedOtpMfa,vx as useConversionRateOverview,bx as useConversionRateOverviewFraud3ds,Cg as useCountRowsForReport,Iv as useCreateAndExecuteChart,_v as useCreateChart,Vg as useCreateMonitorTemplate,Hg as useCreateMonitorThreshold,Gg as useCreateNotification,yg as useCreateOperationTransaction,ny as useCreatePaymentLinks,oy as useCreateProductsByAccount,bv as useCreateReconciliationAlert,yv as useCreateReconciliationReportTemplate,wg as useCreateReconciliationsReportV2,xg as useCreateReport,Sg as useCreateReportTemplate,jg as useCreateReportV2,Zg as useCreateRoles,jv as useCreateSamlConfig,Zy as useCreateScheduledReport,lg as useCreateUserAuth0,Rg as useCreateWorkflow,Hk as useDashboardInsights,Vk as useDashboardInsightsIsolated,Uf as useDeleteAccountsUserMassive,Uy as useDeleteAllowlistItem,Dy as useDeleteBlackListItem,Ly as useDeleteBlackListType,My as useDeleteBlockListItem,Rv as useDeleteChart,Jf as useDeleteConnection,dv as useDeleteCustomizedApiKeys,ay as useDeletePaymentLink,kv as useDeleteReconciliationAlert,ty as useDeleteRoles,Ev as useDeleteSamlConfig,tv as useDeleteScheduledReport,Jg as useDeleteUserTeam,Yg as useDeleteUserTeamV2,Ag as useDeleteVersion,Of as useDeleteWebhook,Af as useDeleteWebhookV2,zg as useDuplicateVersion,iy as useEditPaymentLinks,ey as useEditRoles,gk as useEmailVerification,Yy as useExcludeUsers,Dx as useFeatureFlags,Kx as useFirebaseUserSubscribe,Ab as useGetAccounts,Pb as useGetAccountsByUser,zb as useGetAccountsV2,iw as useGetAllConfigRules,yb as useGetAllOrganizations,Px as useGetAllReconciliationsAdvancements,Ox as useGetAllReconciliationsAgenda,Ix as useGetAllReconciliationsAlerts,Lx as useGetAllReconciliationsFees,zx as useGetAllReconciliationsSales,Sx as useGetAllTableColumns,pb as useGetAllowedIps,Fx as useGetAuditEvents,Fb as useGetAuditLogsFilters,Ux as useGetAuditMonitorEventDetail,$y as useGetBatchRefundProcessedFileDownload,Ky as useGetBatchRefundUserFileDownload,ow as useGetBatchRefunds,Jx as useGetBlackList,Zx as useGetBlockListSummary,Gv as useGetCardBrands,pw as useGetChartsByUser,dw as useGetChartsByUserWithResults,sk as useGetCheckoutTemplate,rk as useGetCheckouts,nv as useGetConditionalConfigRules,Qx as useGetConfigAllowlist,Cb as useGetConnections,wb as useGetConnectionsByPaymentMethod,Gx as useGetCountriesConfigPaymentLink,cb as useGetCredentials,fv as useGetCredentialsMFA,ub as useGetCredentialsValidatePassword,mb as useGetCustomizedApiKeys,db as useGetCustomizedApiKeysAccounts,lb as useGetCustomizedApiKeysMembers,hb as useGetCustomizedApiKeysProducts,pv as useGetCustomizedApiKeysShowToken,uv as useGetCustomizedApiKeysToken,Ub as useGetDashboardStaticContents,Eb as useGetDialogs,Tk as useGetDownloadReport,my as useGetEmailOtp,jb as useGetHashPylon,ky as useGetIndividualMFAStatus,ox as useGetInsightsReport,ax as useGetInsightsReportAgain,kb as useGetIntegrationByAccount,xb as useGetIntegrationByAccountV2,bb as useGetIntegrationParams,Bb as useGetLocales,vk as useGetLoginMethods,sw as useGetMFAConfig,rw as useGetMFAExcludedUsers,cw as useGetMFAStatus,zk as useGetMembers,Pk as useGetMembersV3,Dk as useGetMembersV4,Lb as useGetMenu,xk as useGetMergedNotifications,uk as useGetNameAndIcon,wk as useGetNotificationsAccount,bk as useGetNotificationsCustomer,jk as useGetNotificationsNumber,Ck as useGetNotificationsNumberMutation,gb as useGetOrganization,Pv as useGetPayment,Vv as useGetPaymentAndTrxStatuses,$v as useGetPaymentFilters,Wx as useGetPaymentLinkByCode,Bx as useGetPaymentLinks,Wv as useGetPaymentMethodsAndProviders,Hv as useGetPaymentMethodsAndProvidersActive,Bv as useGetPaymentMethodsByProvider,Kv as useGetPaymentMetricsFilters,Db as useGetPaymentStatusesStyles,Dv as useGetPaymentTransactions,Jv as useGetPaymentTransactionsDetails,qv as useGetPaymentTransactionsLazy,Lv as useGetPaymentV2,Vx as useGetPaymentsByPaymentLink,Uv as useGetPaymentsMethodsByCountry,tb as useGetPayoutDetail,ob as useGetPayoutHistoryDetail,nb as useGetPayoutTransactionDetail,fk as useGetPermissions,Bk as useGetPermissionsCatalog,Hx as useGetProductsByAccount,hk as useGetProfile,ab as useGetProofOfCancel,vb as useGetProviderParams,_x as useGetReconciliationActive,Ax as useGetReconciliationAgendaInsightsByKey,Ex as useGetReconciliationFilters,Cx as useGetReconciliationMetrics,Nb as useGetReconciliationTransactionStatusesStyles,kx as useGetReconciliationTransactions,Rx as useGetReconciliationsReportColumns,Tx as useGetReconciliationsReportTemplates,Ak as useGetRefundPdf,Ok as useGetReportColumns,Ik as useGetReportTemplates,_k as useGetReportsList,Rk as useGetReportsListMultiEnv,pk as useGetRequiredFields,Fk as useGetRoles,Uk as useGetRolesPermissions,ik as useGetRoutingMonitorsTemplate,ak as useGetRoutingMonitorsTemplates,ov as useGetRule,uw as useGetSamlConfig,Xy as useGetScheduledReportsList,xx as useGetSettlements,jx as useGetSettlementsBody,wx as useGetSettlementsHeader,$b as useGetSmartRoutingConditionPaymentMethod,Gb as useGetSmartRoutingConditionTypes,Kb as useGetSmartRoutingConditionTypesValues,Wk as useGetSmartRoutingDataReport,Yb as useGetSmartRoutingDeclineGroups,Hb as useGetSmartRoutingMethods,Jb as useGetSmartRoutingNextRoute,Zb as useGetSmartRoutingPaymentRoute,tk as useGetSmartRoutingSearchConditionValues,ek as useGetSmartRoutingSimulateConditionTypeValues,Xb as useGetSmartRoutingTutorial,Vb as useGetSmartRoutingWorkflow,Qb as useGetSmartRoutingWorkflowVersion,mk as useGetStylingSettings,dk as useGetStylingTheme,Lk as useGetTeamsFiltersMembers,Mb as useGetTimeZoneCatalog,$x as useGetTimezonePaymentLink,dy as useGetTokenForEnrollment,py as useGetTokenValidation,Nv as useGetTransactionDetails,Mv as useGetTransactionDetailsV2,Qv as useGetTransactionHistory,Yv as useGetTransactionHistoryByPaymentCode,Fv as useGetTransactionRawResponse,qb as useGetTransactionStatusesStyles,Xv as useGetTransactions,kk as useGetValidateOpsgenieKey,Sb as useGetWebhookParams,_b as useGetWebhookParamsV2,Rb as useGetWebhooks,Tb as useGetWebhooksV2,Ob as useGetWebhooksV2Detail,Ib as useGetWebhooksV3,cx as useInsights3dsConversionRateAndEvolution,ux as useInsights3dsDeclineReasons,lx as useInsights3dsFrictionlessVsChallenge,sx as useInsights3dsVolumeAndCountTx,yx as useInsightsChargebacksByCardBrand,hx as useInsightsChargebacksByProviderAndCardBrand,mx as useInsightsChargebacksDisputed,fx as useInsightsChargebacksReasonsDistribution,gx as useInsightsChargebacksStatusDistribution,px as useInsightsChargebacksVolumeAndCountTx,dx as useInsightsChargebacksWinRate,Gk as useInsightsConversionRateMetrics,$k as useInsightsConversionRateMetricsV2,Zk as useInsightsCustomerPaymentsAndFraudMetrics,Qk as useInsightsFallbackMetrics,rx as useInsightsFraudScreeningConversionRate,ix as useInsightsFraudScreeningVolumeAndCountTx,nx as useInsightsHomeMetrics,ex as useInsightsOverviewMetrics,tx as useInsightsOverviewMetricsV3,Xk as useInsightsTotalPaymentsAndFraudMetrics,Jk as useInsightsVolumeMetrics,Yk as useInsightsVolumeMetricsV2,ig as useInviteUsers,rg as useInviteUsersMultiaccount,sg as useInviteUsersMultiaccountMassive,Wb as useIsTesting,dg as useLoginMethods,yk as useLoginSSO,$f as useNewPostConnection,Kf as useNewPostConnectionValidate,Xx as useOneBlackList,Df as usePatchAccount,qf as usePatchAccountV2,_y as usePatchAddAllowlistItems,fb as usePatchAllowedIps,Ry as usePatchAllowlist,mv as usePatchApiKeysEditNote,Ey as usePatchChangeStatusAllowlist,Sy as usePatchChangeStatusAllowlistItem,Tv as usePatchChartName,Qf as usePatchConnection,cv as usePathCreateCustomizedApiKeys,Ek as usePathNotifications,sb as usePayoutsFilters,rb as usePayoutsList,Lf as usePostAccount,nw as usePostAllowlistMultiAccount,hv as usePostApiKeysRoll,gv as usePostAuditMonitors,Gy as usePostBatchRefundByFile,qy as usePostBlackListBatch,Py as usePostBlackListItems,Ty as usePostBlackListMultiAccount,Iy as usePostBlackListType,Yx as usePostBlockList,pg as usePostCall,Wf as usePostChangeStatusConnection,Vf as usePostConnection,Gf as usePostConnectionMultiAccount,Cy as usePostCreateAllowlistMultiAccount,sv as usePostCreateCustomizedApiKeys,wv as usePostCreateInsightsReport,iv as usePostCreateRule,av as usePostCreateRuleMultiAccount,lv as usePostCredentialsValidatePassword,Xf as usePostDefaultRoutes,rv as usePostEditRule,eb as usePostFraudTransactions,wy as usePostGetAllowlistItems,jy as usePostGetAllowlistMultiAccount,Nk as usePostMembersPaginated,Mk as usePostMembersPaginatedV2,qk as usePostMembersV4,zv as usePostPaymentsEvaluated,Av as usePostPaymentsLazy,Kg as usePostSlackMessageChannel,Zv as usePostTransactions,sy as usePostUserSettings,ly as usePostUserSettingsPinned,uy as usePostUserSettingsTables,cy as usePostUserThemeSettings,hy as usePostValidateOtp,ry as usePostValidatePassword,Bf as usePostValideStatusConnection,aw as usePostVelocityRules,Rf as usePostWebhook,If as usePostWebhookMultiAccount,Tf as usePostWebhookV2,nk as useProviderConversionRatesData,Tg as usePublishVersion,Nf as usePutAccountPrincipal,Mf as usePutAccountsUser,Ff as usePutAccountsUserMassive,Oy as usePutBlackListType,Hf as usePutCosts,Og as useSaveVersion,by as useSendOTPForMFA,ib as useSendPaymentNotification,Xg as useSetCustodian,Qg as useSetRoles,Dg as useSmartRoutingCreateDeclinedGroup,Mg as useSmartRoutingEditWorkflowName,Wg as useSmartRoutingMultiAccountDeclinedGroupCreate,Bg as useSmartRoutingRemoveDeclinedGroup,Fg as useSmartRoutingSimulateTransaction,Ng as useSmartRoutingToggleFavorite,Lg as useSmartRoutingUpdateDeclinedGroup,Ug as useSmartRoutingUpdateMonitorRedistribution,qg as useSmartRoutingUpdateTutorial,Pg as useToggleMethod,cg as useUnInviteUsers,ug as useUnInviteUsersV2,yy as useUnrollUser,vy as useUnrollUserV2,mg as useUpdateCheckoutPaymentMethods,fg as useUpdateCheckoutTemplate,hg as useUpdateIsActiveCheckout,Jy as useUpdateMFAConfig,eg as useUpdateOrganizationStatus,ag as useUpdateProfile,xv as useUpdateReconciliationAlert,vv as useUpdateReconciliationReportTemplate,_g as useUpdateReportTemplate,Cv as useUpdateSamlConfig,ev as useUpdateScheduledReport,gg as useUpdateStylingTheme,zf as useUpdateWebhook,Pf as useUpdateWebhookV2,Hy as useUploadBatchRefundsFile,Wy as useUploadBatchRefundsFileV2,Vy as useUploadBatchRefundsV2,Qy as useUploadFileS3ClientBatchRefunds,By as useValiateAllowlistItems,Fy as useValidateBlockListItems,Ig as useValidateConnection,Zf as useValidateCredentials,tg as useValidateOrgName,xy as useValidatePasswordStatus,Kk as useViewMoreMetrics};
|
|
241
241
|
//# sourceMappingURL=index.js.map
|