@yuno-payments/dashboard-api-mfe 0.42.3-subscriptions-beta.3 → 0.42.3-subscriptions-beta.4

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.
@@ -213,7 +213,7 @@ function Go(e){const t=Vo.parse(e),n={};for(const e in t)void 0!==t[e]&&(n[e]=t[
213
213
  *
214
214
  * This source code is licensed under the MIT license found in the
215
215
  * LICENSE file in the root directory of this source tree.
216
- */"production"===process.env.NODE_ENV?kp.exports=function(){if(vp)return jp;vp=1;var e=s,t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useState,o=e.useEffect,a=e.useLayoutEffect,r=e.useDebugValue;function i(e){var n=e.getSnapshot;e=e.value;try{var o=n();return!t(e,o)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var s=t(),u=n({inst:{value:s,getSnapshot:t}}),c=u[0].inst,l=u[1];return a((function(){c.value=s,c.getSnapshot=t,i(c)&&l({inst:c})}),[e,s,t]),o((function(){return i(c)&&l({inst:c}),e((function(){i(c)&&l({inst:c})}))}),[e]),r(s),s};return jp.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:u,jp}():kp.exports=(wp||(wp=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=s,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,r=t.useLayoutEffect,i=t.useDebugValue,u=!1,c=!1,l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(s,l){u||void 0===t.startTransition||(u=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var d=l();if(!c){var p=l();n(d,p)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}var h=(p=o({inst:{value:d,getSnapshot:l}}))[0].inst,m=p[1];return r((function(){h.value=d,h.getSnapshot=l,e(h)&&m({inst:h})}),[s,d,l]),a((function(){return e(h)&&m({inst:h}),s((function(){e(h)&&m({inst:h})}))}),[s]),i(d),d};_p.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:l,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),_p);var Ep=kp.exports;const Cp=Ep.useSyncExternalStore,Sp=i.createContext(void 0),Rp=i.createContext(!1);function xp(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Sp),window.ReactQueryClientContext):Sp)}const Tp=({context:e}={})=>{const t=i.useContext(xp(e,i.useContext(Rp)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Ip=({client:e,children:t,context:n,contextSharing:o=!1})=>{i.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=xp(n,o);return i.createElement(Rp.Provider,{value:!n&&o},i.createElement(a.Provider,{value:e},t))},Op=i.createContext(!1);Op.Provider;const Ap=i.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function zp(e,t){return"function"==typeof e?e(...t):!!e}function Pp(e,t){const n=Tp({context:e.context}),o=i.useContext(Op),a=i.useContext(Ap),r=n.defaultQueryOptions(e);r._optimisticResults=o?"isRestoring":"optimistic",r.onError&&(r.onError=ap.batchCalls(r.onError)),r.onSuccess&&(r.onSuccess=ap.batchCalls(r.onSuccess)),r.onSettled&&(r.onSettled=ap.batchCalls(r.onSettled)),(e=>{e.suspense&&"number"!=typeof e.staleTime&&(e.staleTime=1e3)})(r),((e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))})(r,a),(e=>{i.useEffect((()=>{e.clearReset()}),[e])})(a);const[s]=i.useState((()=>new t(n,r))),u=s.getOptimisticResult(r);if(Cp(i.useCallback((e=>{const t=o?()=>{}:s.subscribe(ap.batchCalls(e));return s.updateResult(),t}),[s,o]),(()=>s.getCurrentResult()),(()=>s.getCurrentResult())),i.useEffect((()=>{s.setOptions(r,{listeners:!1})}),[r,s]),((e,t,n)=>(null==e?void 0:e.suspense)&&((e,t)=>e.isLoading&&e.isFetching&&!t)(t,n))(r,u,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)})))(r,s,a);if((({result:e,errorResetBoundary:t,useErrorBoundary:n,query:o})=>e.isError&&!t.isReset()&&!e.isFetching&&zp(n,[e.error,o]))({result:u,errorResetBoundary:a,useErrorBoundary:r.useErrorBoundary,query:s.getCurrentQuery()}))throw u.error;return r.notifyOnChangeProps?u:s.trackResult(u)}function Dp(e,t,n){return Pp(Ad(e,t,n),hp)}function Lp(e,t,n){const o=function(e,t,n){return Vd(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}(e,t,n),a=Tp({context:o.context}),[r]=i.useState((()=>new bp(a,o)));i.useEffect((()=>{r.setOptions(o)}),[r,o]);const s=Cp(i.useCallback((e=>r.subscribe(ap.batchCalls(e))),[r]),(()=>r.getCurrentResult()),(()=>r.getCurrentResult())),u=i.useCallback(((e,t)=>{r.mutate(e,t).catch(Np)}),[r]);if(s.error&&zp(r.options.useErrorBoundary,[s.error]))throw s.error;return{...s,mutate:u,mutateAsync:s.mutate}}function Np(){}var qp;function Mp(e){return Lp((function(e){var t=e.payload;return Sd.getInstance().postWebhookV2MultiAccount({payload:t})}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Up(e){return Lp((function(e){var t=e.code,n=e.accountCode;return Sd.getInstance().deleteWebhookV2(t,n)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Bp(e){return Lp((function(e){var t=e.code,n=e.payload,o=e.accountCode;return Sd.getInstance().updateWebhookV2(t,n,o)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Fp(){return Lp((function(e){var t=e.name,n=e.principal;return Sd.getInstance().postAccount(t,n)}))}function Wp(){return Lp((function(t){var n=e([qp.ACCOUNT],t.duplicate_order,!0);return Sd.getInstance().duplicateAccount(a(a({},t),{duplicate_order:n}))}))}function Hp(){return Lp((function(e){return Sd.getInstance().retryDuplicateAccount(e)}))}function Vp(){return Lp((function(e){var t=e.name,n=e.code,o=e.principal;return Sd.getInstance().patchAccountV2({name:t,code:n,principal:o})}))}function Gp(){return Lp((function(e){var t=e.account_code;return Sd.getInstance().putAccountPrincipal({account_code:t})}))}function Kp(){return Lp((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return Sd.getInstance().putAccountsUserMassive(t,n,o)}))}function $p(){return Lp((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return Sd.getInstance().deleteAccountsUserMassive(t,n,o)}))}function Qp(){return Lp(["post-validate-status-connection"],(function(e){var t=e.payload,n=e.accountCode;return Sd.getInstance().postValidateStatusConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Jp(){return Lp(["post-change-status-connection"],(function(e){var t=e.payload,n=e.accountCode;return Sd.getInstance().postChangeStatusConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Xp(){return Lp((function(e){return Sd.getInstance().putCosts(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Yp(){return Lp(["post-connection"],(function(e){var t=e.payload;return Sd.getInstance().postMultiConnection({payload:t}).then((function(e){return null==e?void 0:e.data}))}))}function Zp(){return Lp(["new-post-connection-validate"],(function(){return Sd.getInstance().postMultiConnectionValidate().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function eh(){return Lp(["patch-connection"],(function(e){var t=e.payload,n=e.connectionCode;return Sd.getInstance().patchConnection({payload:t,connectionCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function th(){return Lp((function(e){var t=e.payload;return Sd.getInstance().postDefaultRoutes({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function nh(){return Lp((function(e){return Sd.getInstance().postValidateCredentials(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function oh(){var e=this;return Lp((function(o){var a=o.payload;return t(e,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,Sd.getInstance().postNetworkTokensOnboarding(a)];case 1:return[2,e.sent().data]}}))}))}),{useErrorBoundary:!1})}function ah(){return Lp(["patch-organizations"],(function(){return Sd.getInstance().updateOrganizationStatus().then((function(e){return null==e?void 0:e.data}))}))}function rh(){return Lp((function(e){return Sd.getInstance().getOrgByName(e).then((function(e){return null==e?void 0:e.data}))}))}function ih(){var e=this;return Lp((function(o){return t(e,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,Sd.getInstance().changePasswordV2(o).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}))}function sh(e){return Lp((function(e){return Sd.getInstance().updateProfile(e)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function uh(){return Lp((function(e){return Sd.getInstance().inviteUsersMassive(e,e.organizationCode)}))}function ch(){return Lp((function(e){var t=e.userCode,n=e.organizationCode;return Sd.getInstance().unInviteUsersV2({userCode:t,organizationCode:n})}))}function lh(){return Lp((function(e){return Sd.getInstance().createUserAuth0(e)}))}function dh(){return Lp((function(e){return Sd.getInstance().postCall(e)}))}function ph(){return Lp((function(e){return Sd.getInstance().changeLoginMethods(e)}))}function hh(e){return Lp((function(e){return Sd.getInstance().updateIsActiveCheckout(e)}),e)}function mh(){return Lp((function(e){var t=e.accountCode,n=e.template;return Sd.getInstance().updateCheckoutTemplate({accountCode:t,template:n}).then((function(e){return null==e?void 0:e.data}))}))}function fh(){return Lp((function(e){var t=e.accountCode,n=e.theme;return Sd.getInstance().updateStylingTheme({accountCode:t,theme:n}).then((function(e){return null==e?void 0:e.data}))}))}function gh(){return Lp((function(e){var t=e.payload,n=e.transactionId,o=e.paymentId,a=e.action;return Sd.getInstance().createOperationTransaction(t,n,o,a)}))}function yh(){return Lp((function(e){var t=e.payload,n=e.paymentId,o=e.transactionId,a=e.handleSetProgress;return Sd.getInstance().uploadChargebacks(t,n,o,a)}))}function bh(){return Lp((function(e){var t=e.transactionCode,n=e.payload;return Sd.getInstance().postProviderRawResponse(t,n)}))}!function(e){e.ACCOUNT="ACCOUNT",e.CHECKOUT_BUILDER="CHECKOUT_BUILDER",e.CONNECTION="CONNECTION",e.ROUTING="ROUTING",e.RISK_CONDITIONS="RISK_CONDITIONS",e.WEBHOOKS="WEBHOOKS"}(qp||(qp={}));var vh=new sp({}),kh=new class{constructor(e={}){this.queryCache=e.queryCache||new sp,this.mutationCache=e.mutationCache||new lp,this.logger=e.logger||op,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=Qd.subscribe((()=>{Qd.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())})),this.unsubscribeOnline=Xd.subscribe((()=>{Xd.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]=zd(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=Ad(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 r=Ad(e),i=this.defaultQueryOptions(r);return this.queryCache.build(this,i).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return ap.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]=zd(e,t),o=this.queryCache;ap.batch((()=>{o.findAll(n).forEach((e=>{o.remove(e)}))}))}resetQueries(e,t,n){const[o,a]=zd(e,t,n),r=this.queryCache,i={type:"active",...o};return ap.batch((()=>(r.findAll(o).forEach((e=>{e.reset()})),this.refetchQueries(i,a))))}cancelQueries(e,t,n){const[o,a={}]=zd(e,t,n);void 0===a.revert&&(a.revert=!0);const r=ap.batch((()=>this.queryCache.findAll(o).map((e=>e.cancel(a)))));return Promise.all(r).then(Td).catch(Td)}invalidateQueries(e,t,n){const[o,a]=zd(e,t,n);return ap.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]=zd(e,t,n),r=ap.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 i=Promise.all(r).then(Td);return null!=a&&a.throwOnError||(i=i.catch(Td)),i}fetchQuery(e,t,n){const o=Ad(e,t,n),a=this.defaultQueryOptions(o);void 0===a.retry&&(a.retry=!1);const r=this.queryCache.build(this,a);return r.isStaleByTime(a.staleTime)?r.fetch(a):Promise.resolve(r.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(Td).catch(Td)}fetchInfiniteQuery(e,t,n){const o=Ad(e,t,n);return o.behavior=dp(),this.fetchQuery(o)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(Td).catch(Td)}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=>Nd(e)===Nd(t.queryKey)));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find((t=>qd(e,t.queryKey)));if("production"!==process.env.NODE_ENV){this.queryDefaults.filter((t=>qd(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=>Nd(e)===Nd(t.mutationKey)));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find((t=>qd(e,t.mutationKey)));if("production"!==process.env.NODE_ENV){this.mutationDefaults.filter((t=>qd(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=Ld(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:vh});function jh(){return Lp((function(e){return Sd.getInstance().createReconciliationsReportV2(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function wh(){return Lp((function(e){return Sd.getInstance().createReconciliationsReportV3(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function _h(){return Lp((function(e){return Sd.getInstance().createReportV2(e).then((function(e){return null==e?void 0:e.data}))}))}function Eh(){return Lp((function(e){return Sd.getInstance().getTotalRowsForExport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Ch(){return Lp((function(e){return Sd.getInstance().cancelReport(e).then((function(e){return null==e?void 0:e.data}))}))}function Sh(o){var a=this;return Lp((function(){return t(a,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.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,kh.cancelQueries({queryKey:["GET/reports/templates"]})];case 1:return n.sent(),t=kh.getQueryData(["GET/reports/templates"]),kh.setQueryData(["GET/reports/templates"],(function(t){return e(e([],t,!0),[o],!1)})),[2,{previousTemplates:t}]}}))}))},onError:function(e,t,n){kh.setQueryData(["GET/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){kh.invalidateQueries({queryKey:["GET/reports/templates"]})}})}function Rh(e){return Lp((function(){return Sd.getInstance().updateReportTemplate(e).then((function(e){return null==e?void 0:e.data}))}))}function xh(e,o,a){var r=this;return void 0===a&&(a=null),Lp((function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().postSmartRoutingCreateWorkflow(e,o).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,t.sent()]}}))}))}),a)}function Th(e,o){var a=this,r=e.versionCode,i=e.accountCode,s=e.organizationCode;return void 0===o&&(o=null),Lp((function(){return t(a,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,Sd.getInstance().postSmartRoutingPublishVersion(i,r,s).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}),o)}function Ih(e,t){var n=e.data,o=e.accountCode;return void 0===t&&(t=null),Lp((function(){return Sd.getInstance().putSmartRoutingUpdateWorkflow(o,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),t)}function Oh(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Lp((function(){return Sd.getInstance().deleteSmartRoutingVersion(o,n).then((function(e){return null==e?void 0:e.data}))}),t)}function Ah(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Lp((function(){return Sd.getInstance().postSmartRoutingDuplicateVersion(o,n).then((function(e){return null==e?void 0:e.data}))}),t)}function zh(e,t){var n=e.paymentMethod,o=e.active,a=e.accountCode;return void 0===t&&(t=null),Lp((function(){return Sd.getInstance().putSmartRoutingToggleMethod(a,n,o).then((function(e){return null==e?void 0:e.data}))}),t)}function Ph(e,t){var n=e.declinedId,o=e.accountCode;return void 0===t&&(t=null),Lp((function(e){return void 0===e&&(e=null),Sd.getInstance().updateSmartRoutingDeclinedGroup(o,n,e).then((function(e){return null==e?void 0:e.data}))}),t)}function Dh(e){var t=e.accountCode;return Lp((function(e){return void 0===e&&(e=null),Sd.getInstance().createSmartRoutingDeclinedGroup(t,e).then((function(e){return null==e?void 0:e.data}))}),e.options)}function Lh(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Lp((function(e){return void 0===e&&(e=!1),Sd.getInstance().updateSmartRoutingFavorite(o,n,e).then((function(e){return null==e?void 0:e.data}))}),t)}function Nh(e,t){var n=e.code,o=e.name,a=e.accountCode;return void 0===t&&(t=null),Lp((function(){return Sd.getInstance().putSmartRoutingUpdateWorkflowName(a,{code:n,name:o}).then((function(e){return null==e?void 0:e.data}))}),t)}function qh(e,t){var n=e.accountCode,o=e.workflowVersionCode;return void 0===t&&(t=null),Lp((function(e){return Sd.getInstance().simulateSmartRoutingTransaction(n,o,e).then((function(e){return null==e?void 0:e.data}))}),t)}function Mh(e,t){return void 0===t&&(t=null),Lp((function(t){return Sd.getInstance().updateMonitorRedistribution(e,t).then((function(e){return null==e?void 0:e.data}))}),t)}function Uh(e,t){return void 0===t&&(t={}),Lp((function(t){var n=t.declinedGroupCode;return Sd.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 Bh(e,t){return void 0===t&&(t={}),Lp((function(t){var n=t.payload;return Sd.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 Fh=function(e){return Lp((function(t){return Sd.getInstance().createMonitorThreshold(t,e).then((function(e){return e.data}))}))},Wh=function(e){return Lp((function(t){return Sd.getInstance().createMonitorTemplate(t,e).then((function(e){return e.data}))}))};function Hh(){return Lp((function(e){var t=e.payload;return Sd.getInstance().postSlackMessageChannel(t).then((function(e){return null==e?void 0:e.data}))}))}function Vh(){return Lp((function(e){var t=e.userCode,n=e.organizationCode;return Sd.getInstance().deleteUserTeamV2({userCode:t,organizationCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Gh(){return Lp((function(){return Sd.getInstance().setCustodian().then((function(e){return null==e?void 0:e.data}))}))}function Kh(){return Lp((function(e){var t=e.payload,n=e.accountCode;return Sd.getInstance().createRoles(t,n).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function $h(){var e=this;return Lp((function(o){var a=o.payload,r=o.id,i=o.accountCode;return t(e,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().editRoles({payload:a,id:r},i)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}}))}))}),{useErrorBoundary:!1})}function Qh(){return Lp((function(e){return Sd.getInstance().deleteRoles(e).then((function(e){return null==e?void 0:e.data}))}))}function Jh(){return Lp(["post-payment-links"],(function(e){var t=e.payload,n=e.accountCode;return Sd.getInstance().postPaymentLinks({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Xh(){return Lp(["post-delete-payment-link"],(function(e){var t=e.code;return Sd.getInstance().postDeletePaymentLink({code:t}).then((function(e){return null==e?void 0:e.data}))}))}function Yh(){return Lp(["patch-payment-links"],(function(e){var t=e.payload,n=e.accountCode,o=e.paymentLinkCode;return Sd.getInstance().patchPaymentLinks({payload:t,accountCode:n,paymentLinkCode:o}).then((function(e){return null==e?void 0:e.data}))}))}function Zh(){return Lp(["post-subscription"],(function(e){return Sd.getInstance().postSubscription(e).then((function(e){return null==e?void 0:e.data}))}))}function em(){return Lp(["post-pause-subscription"],(function(e){var t=e.subscriptionCode;return Sd.getInstance().postPauseSubscription(t).then((function(e){return null==e?void 0:e.data}))}))}function tm(){return Lp(["post-resume-subscription"],(function(e){var t=e.subscriptionCode;return Sd.getInstance().postResumeSubscription(t).then((function(e){return null==e?void 0:e.data}))}))}function nm(){return Lp(["post-cancel-subscription"],(function(e){var t=e.subscriptionCode;return Sd.getInstance().postCancelSubscription(t).then((function(e){return null==e?void 0:e.data}))}))}function om(){return Lp(["patch-subscription"],(function(e){var t=e.subscriptionCode,n=e.payload;return Sd.getInstance().patchSubscription(t,n).then((function(e){return null==e?void 0:e.data}))}))}function am(){return Lp(["post-reschedule-subscription"],(function(e){var t=e.subscriptionCode;return Sd.getInstance().postRescheduleSubscription(t).then((function(e){return null==e?void 0:e.data}))}))}function rm(){return Lp(["post-list-subscriptions"],(function(e){return Sd.getInstance().postListSubscriptions(e).then((function(e){return null==e?void 0:e.data}))}))}function im(){return Lp((function(e){var t=e.payload;return Sd.getInstance().postUserSettings(t)}),{onMutate:function(e){return e}})}function sm(){return Lp((function(e){return Sd.getInstance().postUserThemeSettings(e)}))}function um(){return Lp((function(e){var t=e.payload,n=e.section;return Sd.getInstance().postUserSettingsTables(t,n)}),{onMutate:function(e){return e},onSuccess:function(e){var t=kh.getQueryData(["fetch-profile"]);e.data&&kh.setQueryData(["fetch-profile"],a(a({},t),{settings:e.data}))}})}function cm(e){return Lp(["pinned-sections"],(function(e){var t=e.payload;return Sd.getInstance().postUserSettingsPinned(t)}),{onMutate:function(t){var n=t.payload;return e({payload:n})}})}function lm(){return Lp((function(e){var t=e.password,n=e.otp;return Sd.getInstance().getMfaTokenValidation(t,n).then((function(e){return null==e?void 0:e.data}))}))}function dm(){return Lp((function(){return Sd.getInstance().getEmailOtp().then((function(e){return null==e?void 0:e.data}))}))}function pm(){return Lp((function(e){return Sd.getInstance().confirmMfaOtp(e).then((function(e){return null==e?void 0:e.data}))}))}function hm(){return Lp((function(e){return Sd.getInstance().unrollMfa(e).then((function(e){return null==e?void 0:e.data}))}))}function mm(){return Lp((function(){return Sd.getInstance().validatePasswordStatus().then((function(e){return null==e?void 0:e.data})).catch((function(e){return{valid:!1}}))}))}function fm(){return Lp(["post-get-allowlist-items"],(function(e){var t=e.payload;return Sd.getInstance().postAllowlistItems({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function gm(){return Lp(["post-get-allowlist-multi-account"],(function(e){var t=e.payload;return Sd.getInstance().postGetAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function ym(){return Lp(["post-create-allowlist-multi-account"],(function(e){var t=e.payload;return Sd.getInstance().postCreateAllowlistMultiAccount({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function bm(){return Lp(["patch-change-status-allowlist"],(function(e){var t=e.payload;return Sd.getInstance().patchChangeStatusAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function vm(){return Lp(["patch-change-status-allowlist-item"],(function(e){var t=e.payload;return Sd.getInstance().patchChangeStatusAllowlistItem({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function km(){return Lp(["post-add-allowlist-items"],(function(e){var t=e.payload;return Sd.getInstance().patchAddAllowlistItems({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function jm(){return Lp(["patch-allowlist"],(function(e){var t=e.payload;return Sd.getInstance().patchAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function wm(){return Lp(["post-blacklist-multi-account"],(function(e){var t=e.payload;return Sd.getInstance().postBlackListMultiAccount({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function _m(){return Lp(["put-blacklist"],(function(e){return Sd.getInstance().putBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Em(){return Lp(["change-blacklist"],(function(e){return Sd.getInstance().changeBlackListStatus(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Cm(){return Lp(["change-blacklist-item"],(function(e){return Sd.getInstance().changeBlackListStatusItem(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Sm(){return Lp(["post-blacklist-items"],(function(e){var t=e.payload;return Sd.getInstance().postBlackListItems({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Rm(){return Lp(["delete-blacklist"],(function(e){var t=e.black_list_code;return Sd.getInstance().deleteBlackListType({black_list_code:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function xm(e){var t=e.handleSetProgress;return Lp(["post-blacklist-batch"],(function(e){var n=e.blacklist_code,o=e.expiration_days,a=e.file;return Sd.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 Tm(){return Lp(["change-payments-webhook"],(function(e){var t=e.status,n=e.paymentCode;return Sd.getInstance().postChangePaymentsWebhook({status:t,paymentCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Im(){return Lp(["delete-blacklist-items"],(function(e){var t=e.blocklist_code,n=e.blocklist_item_id,o=e.account_code;return Sd.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 Om(){return Lp(["valiate-blacklist-items"],(function(e){return Sd.getInstance().valiateBlockListItems({payload:e}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Am(){return Lp(["delete-allowlist-item"],(function(e){return Sd.getInstance().deleteAllowlistItem({payload:e}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function zm(){return Lp(["validate-allowlist-items"],(function(e){return Sd.getInstance().validateAllowlistItems({payload:e}).then((function(e){return e.data})).catch((function(e){return e}))}))}function Pm(e){var t=e.fileName,n=e.onSuccess,o=e.onError,a=u(0),r=a[0],i=a[1],s=c({cancel:function(){return null}}),l=Lp(["upload-file-chargeback",t],(function(e){var t=Sd.getInstance().uploadFileS3ClientBatchRefunds({payload:e,handleSetProgress:i}),a=t.promise,r=t.cancel;return s.current.cancel=r,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:l,cancelRequest:s.current.cancel,progress:r}}function Dm(){return Lp((function(e){return Sd.getInstance().uploadBatchRefundsV2({payload:e}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Lm(){var e=this;return Lp((function(o){return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().batchRefundByFile({payload:o}).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function Nm(){var e=this;return Lp((function(o){var a=o.batchRefundId,r=o.organizationCode,i=o.accountCode;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().getBatchRefundProcessedFileDownload(a,r,i).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function qm(){var e=this;return Lp((function(o){var a=o.batchRefundId,r=o.organizationCode,i=o.accountCode;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().getBatchRefundUserFileDownload(a,r,i).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function Mm(){var e=c({cancel:function(){return null}}),t=Lp(["upload-file"],(function(t){var n=Sd.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 Um(){return Lp((function(e){var t=e.payload,n=e.organizationCode;return Sd.getInstance().updateMFAConfig(t,n)}))}function Bm(){return Lp((function(e){var t=e.payload,n=e.organizationCode;return Sd.getInstance().mfaExcludeUsers(t,n)}))}function Fm(e){return Dp(["GET/scheduled-reports",e],(function(){return Sd.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 Wm(){return Lp((function(e){var t=e.payload;return Sd.getInstance().postScheduledReport(t).then((function(e){return{data:e.data,status:e.status}})).catch((function(e){return e}))}))}function Hm(){return Lp((function(e){var t=e.reportCode,n=e.payload;return Sd.getInstance().updateScheduledReport(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Vm(){return Lp((function(e){return Sd.getInstance().deleteScheduledReport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Gm(){return Lp((function(e){return Sd.getInstance().getConditionalConfigRules(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Km(){return Lp((function(e){return Sd.getInstance().getRule(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function $m(){return Lp((function(e){var t=e.payload,n=e.accountCode;return Sd.getInstance().postCreateRuleMultiAccount(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Qm(){return Lp((function(e){var t=e.payload,n=e.ruleId,o=e.accountCode;return Sd.getInstance().postEditRule(t,n,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Jm(){return Lp((function(e){var t=e.payload;return Sd.getInstance().postCreateCustomizedApiKeys(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Xm(){return Lp((function(e){var t=e.payload,n=e.code;return Sd.getInstance().pathCreateCustomizedApiKeys(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Ym(){return Lp((function(e){var t=e.code,n=e.password;return Sd.getInstance().getCustomizedApiKeysToken(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}))}function Zm(){return Lp((function(e){var t=e.passwordOtp;return Sd.getInstance().getDeveloperCredentialsValidatePassword(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}))}function ef(){return Lp((function(e){var t=e.password;return Sd.getInstance().getDeveloperCredentialsValidatePasswordRegularUser(t).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function tf(){return Lp((function(e){var t=e.code;return Sd.getInstance().deleteCustomizedApiKeys(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function nf(){return Lp((function(e){var t=e.payload,n=e.code;return Sd.getInstance().patchApiKeysEditNote(t,n).then((function(e){return e.data})).catch((function(e){return e}))}))}function of(){return Lp((function(e){var t=e.payload,n=e.code,o=e.password;return Sd.getInstance().postApiKeysRoll(t,n,o).then((function(e){return e.data})).catch((function(e){return e}))}))}function af(){return Lp((function(e){var t=e.password,n=e.accountCode;return Sd.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 rf(e){return Lp((function(e){var t=e.payload;return Sd.getInstance().postAuditMonitors(t)}),{onMutate:e.onMutate})}function sf(){return Lp((function(e){var t=e.codes;return Sd.getInstance().postResendWebhooks({codes:t}).then((function(e){return null==e?void 0:e.data}))}))}function uf(){return Lp((function(e){return Sd.getInstance().postExportApiLogs(e).then((function(e){return null==e?void 0:e.data}))}))}function cf(){return Lp((function(e){return Sd.getInstance().postExportWebhooksLogs(e).then((function(e){return null==e?void 0:e.data}))}))}function lf(o){var a=this;return Lp((function(){return Sd.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,kh.cancelQueries({queryKey:["GET/reconciliation/reports/templates"]})];case 1:return n.sent(),t=null===(a=kh.getQueryData(["GET/reconciliation/reports/templates"]))||void 0===a?void 0:a.templates,kh.setQueryData(["GET/reconciliation/reports/templates"],(function(t){return{templates:e(e([],t.templates,!0),[o],!1)}})),[2,{previousTemplates:t}]}}))}))},onError:function(e,t,n){kh.setQueryData(["GET/reconciliation/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){kh.invalidateQueries({queryKey:["GET/reconciliation/reports/templates"]})},useErrorBoundary:!1})}function df(e){return Lp((function(){return Sd.getInstance().updateReconciliationReportTemplate(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function pf(){return Lp(["POST/reconciliation/alerts"],(function(e){return Sd.getInstance().postReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){kh.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function hf(){return Lp(["DELETE/reconciliation/alerts"],(function(e){return Sd.getInstance().deleteReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){kh.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function mf(){return Lp(["UPDATE/reconciliation/alerts"],(function(e){return Sd.getInstance().updateReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){kh.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function ff(){return Lp((function(e){var t=e.payload;return Sd.getInstance().postCreateInsightsReport(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function gf(){return Lp((function(e){return Sd.getInstance().createSamlConfig(e)}))}function yf(){return Lp((function(e){return Sd.getInstance().updateSamlConfig(e)}))}function bf(){return Lp((function(){return Sd.getInstance().deleteSamlConfig()}))}function vf(e,t){return void 0===t&&(t={}),Lp((function(t){return Sd.getInstance().generateAIWorkflowRoutes(e,t).then((function(e){return null==e?void 0:e.data}))}),a(a({},t),{useErrorBoundary:!1}))}function kf(e){return void 0===e&&(e={}),Lp((function(e){return Sd.getInstance().postAIGenerationFeedback(e).then((function(e){return null==e?void 0:e.data}))}),a(a({},e),{useErrorBoundary:!1}))}function jf(){return Lp((function(e){return Sd.getInstance().createChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function wf(){return Lp((function(e){return Sd.getInstance().deleteChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function _f(){return Lp((function(e){var t=e.chart_id,n=e.type,o=e.name,a=e.user_prompt,r=void 0===a?"":a;return Sd.getInstance().patchChartGPTChart(t,{type:n,name:o,user_prompt:r}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Ef(){var e=this;return Lp((function(o){return t(e,void 0,void 0,(function(){var e,t,a,r,i;return n(this,(function(n){switch(n.label){case 0:return[4,Sd.getInstance().createChartGPTChart(o)];case 1:if(e=n.sent(),!(t=null!==(r=null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.chartgpt_id)&&void 0!==r?r:null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.chart_id))throw new Error("Failed to create chart: No chart ID returned");return[2,{chart_id:t}]}}))}))}),{useErrorBoundary:!1})}function Cf(){return Lp((function(e){return Sd.getInstance().createChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Sf(){var e=this;return Lp((function(o){return t(e,void 0,void 0,(function(){var e,t,a,r,i;return n(this,(function(n){switch(n.label){case 0:return[4,Sd.getInstance().createChartGPTChart(o)];case 1:if(e=n.sent(),!(t=null!==(r=null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.chartgpt_id)&&void 0!==r?r:null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.chart_id))throw new Error("Failed to create chart: No chart ID returned");return[2,{chart_id:t}]}}))}))}),{useErrorBoundary:!1})}function Rf(){var e=this;return Lp(["POST/template-reporting/report-templates"],(function(o){return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().createTemplateReporting(o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){kh.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function xf(){var e=this;return Lp(["POST/template-reporting/report-templates/clone"],(function(o){var a=o.templateId,r=o.payload;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().cloneReportTemplate(a,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){kh.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function Tf(){var e=this;return Lp(["PATCH/template-reporting/report-templates/selection"],(function(o){var a=o.templateId,r=o.payload;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().updateTemplateSelection(a,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){kh.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function If(){var e=this;return Lp(["PATCH/template-reporting/report-templates/status"],(function(o){var a=o.templateId,r=o.payload;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().changeTemplateStatus(a,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){kh.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function Of(){var e=this;return Lp(["DELETE/template-reporting/report-templates"],(function(o){var a=o.templateId,r=o.payload;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().deleteReportTemplate(a,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){kh.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function Af(){var e=this;return Lp(["POST/template-reporting/report-schedules"],(function(o){return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().createReportSchedule(o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){kh.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})}function zf(){var e=this;return Lp(["PATCH/template-reporting/report-schedules/disable"],(function(o){var a=o.scheduleId,r=o.payload;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().disableReportSchedule(a,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){kh.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})}function Pf(){var e=this;return Lp(["DELETE/template-reporting/report-schedules"],(function(o){var a=o.scheduleId,r=o.payload;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().deleteReportSchedule(a,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){kh.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})}var Df,Lf=function(){var e,t;return null===(t=null===(e=function(e){var t=localStorage.getItem(e),n=u(t&&JSON.parse(t)),o=n[0],a=n[1];return l((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 Nf(e){var o=this;return Dp(["fetch-payments-lazy",e],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().postPaymentsLazy(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function qf(e){return Dp(["fetch-payments-evaluated",e],(function(){return Sd.getInstance().postPaymentsEvaluated(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function Mf(e){var o=this,a=e.paymentCode,r=e.enabled,i=void 0===r||r,s=Sd.getInstance();return Dp(["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}))]}))}))}),{enabled:i,cacheTime:500,useErrorBoundary:!1})}function Uf(e){var o=this,a=e.payment_code,r=e.enabled,i=void 0===r||r,s=Sd.getInstance();return Dp(["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}))]}))}))}),{enabled:!!a&&i,cacheTime:0,useErrorBoundary:!1})}function Bf(e){var o=this,a=e.transaction_code,r=e.enabled,i=void 0===r||r,s=Sd.getInstance();return Dp(["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&&i,cacheTime:0,useErrorBoundary:!1})}function Ff(e){var t=Lf();return Dp(["payment-methods",e],(function(){return Sd.getInstance().getPaymentMethodsByCountry({provider_id:null==e?void 0:e.provider_id,country:null==e?void 0:e.country},t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e&&!!(null==e?void 0:e.provider_id),useErrorBoundary:!1})}function Wf(){return Dp({queryKey:["/payment-methods/providers"],queryFn:function(){return Sd.getInstance().getPaymentMethodsAndProviders().then((function(e){return null==e?void 0:e.data}))},cacheTime:864e5,useErrorBoundary:!1})}function Hf(){return Dp(["GET/catalog/card-brands"],(function(){return Sd.getInstance().getCardBrands().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Vf(e,t){return void 0===e&&(e=!0),void 0===t&&(t=Sc.PAYMENTS),Dp(["payment-filters",e,t],(function(){return Sd.getInstance().getPaymentFilters(t).then((function(e){return null==e?void 0:e.data}))}),{enabled:e,useErrorBoundary:!1,cacheTime:3e5})}function Gf(){return Dp(["payment-metrics-filters"],(function(){return Sd.getInstance().getPaymentMetricsFilters().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Kf(e){var t=e.transaction_code,n=e.enabled;return Dp(["payment-transaction-details",t],(function(){return Sd.getInstance().getPaymentTransactionsDetails({transaction_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function $f(e){var t=e.payment_code,n=e.enabled;return Dp(["transaction-history",t],(function(){return Sd.getInstance().getTransactionHistoryByPaymentCode({payment_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function Qf(e){var o=this;return Dp(["POST/transactions",JSON.stringify(e)],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().postTransactions(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e,cacheTime:0,useErrorBoundary:!1})}function Jf(e){var o=this;return Dp(["POST/fraud-transactions",JSON.stringify(e)],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().postFraudTransactions(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function Xf(e){return Dp(["GET/payout-detail",JSON.stringify(e)],(function(){var t=Sd.getInstance();return e.organization_code?t.getPayoutDetails(e).then((function(e){return null==e?void 0:e.data})):{}}),{enabled:!!e.organization_code&&!!e&&e.enabled,cacheTime:0,useErrorBoundary:!1})}function Yf(e){return Dp(["GET/payout-transaction-detail",JSON.stringify(e)],(function(){return Sd.getInstance().getPayoutTransactionDetails(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e&&!!(null==e?void 0:e.transaction_code)&&(null==e?void 0:e.enabled),cacheTime:0,useErrorBoundary:!1})}function Zf(e){var t=Lf();return Dp(["GET/payout-history-detail",JSON.stringify(e)],(function(){return Sd.getInstance().getPayoutHistoryDetails(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.payout_code)&&e.enabled,cacheTime:0,useErrorBoundary:!1})}function eg(e,o){var a=this,r=Lf();return Dp(["GET/useGetProofOfCancel",r,e,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().getProofOfCancel(e,r,o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e&&!!r&&!!o,cacheTime:0,useErrorBoundary:!1})}function tg(e,o){var a=this,r=Lf();return Dp(["GET/useGetProofOfPayment",r,e,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().getProofOfPayment(e,r,o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e&&!!r&&!!o,cacheTime:0,useErrorBoundary:!1})}function ng(e,o,a){var r=this,i=Sd.getInstance();return Dp(["send-payment-notification",e,o],(function(){return t(r,void 0,void 0,(function(){var t,r;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,i.sendPaymentNotification(e,o)];case 1:return t=n.sent(),a.onSuccess(),[2,t.data];case 2:throw r=n.sent(),a.onError(),r;case 3:return[2]}}))}))}),{enabled:a.enabled,cacheTime:0,useErrorBoundary:!1})}function og(e){return Dp(["usePayoutsList",e&&JSON.stringify(e)],(function(){var t=Sd.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 ag(e){var o=this;void 0===e&&(e=!0);var a=Lf();return Dp(["getPayoutsFilters",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().getPayoutsFilters(a).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{enabled:e&&!!a})}function rg(e){var t=e.password,n=e.accountCode;return Dp(["developers"],(function(){return Sd.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 ig(){return Dp(["fetch-customized-api-keys-members"],(function(){return Sd.getInstance().getCustomizedApiKeysMembers().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function sg(){return Dp(["developers-get-allowed-ips"],(function(){return Sd.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 ug(){return Dp(["fetch-customized-api-keys-accounts"],(function(){return Sd.getInstance().getCustomizedApiKeysAccounts().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function cg(e){return Dp(["fetch-customized-api-keys",e],(function(){return Sd.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 lg(){return Dp(["fetch-customized-api-keys-products"],(function(){return Sd.getInstance().getCustomizedApiKeysProducts().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{cacheTime:0})}function dg(){return Lp(["developers-patch-allowed-ips"],(function(e){return Sd.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 pg(){return Dp(["fetch-organizations"],(function(){return Sd.getInstance().getOrganization().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function hg(){return Dp(["fetch-all-organizations",Lf()],(function(){return Sd.getInstance().getAllOrganization().then((function(e){return(null==e?void 0:e.data)||[]}))}),{cacheTime:36e5,keepPreviousData:!0,useErrorBoundary:!1})}function mg(e){var t=Lf();return Dp(["organizations-provider-params",e],(function(e){var n=e.queryKey;return Sd.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 fg(e){var t=e.integration_code,n=e.enabled,o=e.accountCode;return Dp(["integration-params",t,o],(function(){return t.includes("undefined")?{}:Sd.getInstance().getIntegrationParams({accountCode:o,integration_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,useErrorBoundary:!1})}function gg(e){var t=e.accountCode,n=e.organizationCode,o=Lf();return Dp(["organizations-account-integrations",t,n],(function(){return Sd.getInstance().getIntegrationByAccountV2({accountCode:t,organizationCode:n||o}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,enabled:!!t,useErrorBoundary:!1})}function yg(e){var t=e.accountCode,n=e.paymentMethod;return Dp(["fetch-connections-by-payment-method",n,t],(function(){return Sd.getInstance().getConnectionsByPaymentMethod(t,n).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!n&&!!t,cacheTime:0,useErrorBoundary:!1})}function bg(){var e=this;return Dp(["fetch-hash-pylon"],(function(){return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().getHashPylon()]}))}))}),{keepPreviousData:!0,useErrorBoundary:!1})}function vg(){return Dp(["connections"],(function(){return Sd.getInstance().getConnections().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function kg(){return Dp(["dialogs"],(function(){return Sd.getInstance().getDialogs().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,retryDelay:2e3,cacheTime:36e5})}function jg(){return Dp(["params-catalog"],(function(){return Sd.getInstance().getWebhookParamsV2().then((function(e){return null==e?void 0:e.data}))}))}function wg(e){var t=e.accountCode,n=e.name;return Dp(["webhooks",t,n],(function(){return Sd.getInstance().getWebhooksV3({accountCode:t,name:n}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,useErrorBoundary:!1})}function _g(e){var t=e.accountCode,n=e.enabled;return Dp(["webhooks-detail",t],(function(){return Sd.getInstance().getWebhooksV2Detail({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!n})}function Eg(e){var t,n=Lf(),o=null!==(t=null!=e?e:n)&&void 0!==t?t:null;return Dp({queryKey:["accounts",o],queryFn:function(){return Sd.getInstance().getAccounts(o).then((function(e){return null==e?void 0:e.data}))},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!o})}function Cg(e){return Dp(["accountsV2",e],(function(){return Sd.getInstance().getAccountsV2().then((function(e){return(null==e?void 0:e.data)||[]})).catch((function(e){throw e}))}),{keepPreviousData:!0,enabled:!!e,useErrorBoundary:!1})}function Sg(e){return Dp(["accountsV2-by-user",e],(function(){return e?Sd.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 Rg(e,o){var a=this;return Dp({queryKey:["accounts-for-impersonation",e,o],queryFn:function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().getAccountsForImpersonation(e).then((function(e){var t,n;return(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.response)||void 0===n?void 0:n.map((function(e){return{label:e.name,value:o?e.code_testing:e.code_live,code_live:e.code_live,code_testing:e.code_testing}})))||[]}))]}))}))},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function xg(e){return Dp({queryKey:["pending-duplicate-accounts",e],queryFn:function(){return Sd.getInstance().getPendingDuplicateAccounts()},useErrorBoundary:!1,keepPreviousData:!0,refetchInterval:e})}function Tg(){return Dp(["menu"],(function(){return Sd.getInstance().getMenu().then((function(e){return ud(e)?fd:null==e?void 0:e.data})).catch((function(){return fd}))}))}function Ig(){return Dp(["/payment/statuses/style"],(function(){return Sd.getInstance().useGetPaymentStatusesStyles().then((function(e){return ud(e)?cd:null==e?void 0:e.data})).catch((function(){return cd}))}))}function Og(){return Dp(["/transaction/statuses/style"],(function(){return Sd.getInstance().useGetTransactionStatusesStyles().then((function(e){return ud(e)?ld:null==e?void 0:e.data})).catch((function(){return ld}))}),{cacheTime:36e5,useErrorBoundary:!1})}function Ag(){return Dp(["/reconciliation/transaction/statuses/style"],(function(){return Sd.getInstance().useGetReconciliationTransactionStatusesStyles().then((function(e){return ud(e)?dd:null==e?void 0:e.data})).catch((function(){return dd}))}))}function zg(){return Dp(["timezone-catalog"],(function(){return Sd.getInstance().useGetTimeZoneCatalog().then((function(e){return ud(e)?pd:null==e?void 0:e.data})).catch((function(){return pd}))}))}function Pg(){return Dp(["/cms/audit-logs-filters"],(function(){return Sd.getInstance().useGetAuditLogsFilters().then((function(e){return ud(e)?hd:null==e?void 0:e.data})).catch((function(){return hd}))}))}function Dg(){return Dp(["/cms/static-contents"],(function(){return Sd.getInstance().getDashboardStaticContents().then((function(e){var t,n;return ud(e)?md:(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t[0])||void 0===n?void 0:n.data)||{}}))}),{cacheTime:6048e5,useErrorBoundary:!1})}function Lg(){return Dp(["/cms/locales"],(function(){return Sd.getInstance().getLocales().then((function(e){return ud(e)?gd:e.data})).catch((function(){return gd}))}))}!function(e){e.IN_PROGRESS="IN_PROGRESS",e.COMPLETED="COMPLETED",e.FAILED="FAILED"}(Df||(Df={}));var Ng=function(){var e=u("ON"===localStorage.getItem("isTesting")),t=e[0],n=e[1];return l((function(){window.addEventListener("storage",(function(e){"isTesting"===e.key&&n("ON"===e.newValue)}))}),[]),{isTesting:t}};function qg(e){return Dp(["smart-routing-methods",e],(function(){return Sd.getInstance().getSmartRoutingMethods(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function Mg(e,t){return Dp(["smart-routing-workflow",t,e],(function(){return Sd.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 Ug(e,t){return Dp(["smart-routing-condition-types",e,t],(function(){return Sd.getInstance().getSmartRoutingConditionTypes(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!e})}function Bg(e,t){return Dp(["smart-routing-condition-payment-method",e,t],(function(){return Sd.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 Fg(e,t){return Dp(["smart-routing-condition-types-values",t,e],(function(){return Sd.getInstance().getSmartRoutingConditionTypesValues(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&!!e,useErrorBoundary:!1})}function Wg(e){var t=e.accountCode,n=e.workflowVersionId;return Dp(["smart-routing-workflow-version",n,t],(function(){return Sd.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 Hg(e,t,n){return Dp(["smart-routing-next-route",e,n,t],(function(){return Sd.getInstance().getSmartRoutingNextSteps(e,t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function Vg(e){return Dp(["smart-routing-decline-groups",e],(function(){return Sd.getInstance().getSmartRoutingDeclinedGroup(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function Gg(e,t){return Dp(["smart-routing-payment-route",e,t],(function(){return Sd.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 Kg(e){return Dp(["smart-routing-simulate-condition-type-values",e],(function(){return Sd.getInstance().getSmartRoutingSimulateConditionTypeValues(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function $g(e){var t=e.text,n=e.conditionType;return Dp(["smart-routing-search-condition-values",t,n],(function(){return Sd.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 Qg(){return Dp(["smart-routing-conversion-rates"],(function(){return Sd.getInstance().getProviderConversionRatesData().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!1,useErrorBoundary:!1})}function Jg(){var e=this;return Dp({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,Sd.getInstance().get3DSExemptions()];case 1:return[2,e.sent().data]}}))}))},useErrorBoundary:!1})}function Xg(){var e=this;return Dp({queryKey:["smart-routing-network-tokens-onboarding"],queryFn:function(){return t(e,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,Sd.getInstance().getNetworkTokensOnboarding()];case 1:return[2,e.sent().data]}}))}))},useErrorBoundary:!1})}function Yg(e){return Dp(["fetch-routing-monitors-templates",e],(function(){return Sd.getInstance().getRoutingMonitorsTemplates(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function Zg(e,t){return Dp(["fetch-routing-monitors-template",e],(function(){return Sd.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 ey(e){var t=e.accountCode;return Dp(["checkouts",t],(function(){return Sd.getInstance().getCheckouts({accountCode:t}).then((function(e){return e.data}))}),{cacheTime:0,enabled:Boolean(t)})}function ty(e){var t=e.accountCode;return Dp(["checkouts-template"],(function(){return Sd.getInstance().getCheckoutTemplate({accountCode:t}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,enabled:Boolean(t)})}var ny=function(e){return["checkout-builder-name-and-icon",e.paymentMethodType,e.type]},oy=function(e,t){var n=e.paymentMethodType,o=e.type;return Dp(ny({paymentMethodType:n,type:o}),(function(){return Sd.getInstance().getNameAndIcon({paymentMethodType:n,type:o}).then((function(e){return null==e?void 0:e.data}))}),t)},ay=function(e){return["checkout-builder-required-fields",e.paymentMethodType,e.type]},ry=function(e,t){var n=e.paymentMethodType,o=e.type;return Dp(ay({paymentMethodType:n,type:o}),(function(){return Sd.getInstance().getRequiredFields({paymentMethodType:n,type:o}).then((function(e){return null==e?void 0:e.data}))}),t)};function iy(e){var t=e.accountCode;return Dp(["styling-sdk-dynamic",t],(function(){return Sd.getInstance().getStylingSdkDynamic({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function sy(e){var t=e.accountCode;return Dp(["styling-theme",t],(function(){return Sd.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 uy(e){var t=e.accountCode;return Dp(["styling-settings",t],(function(){return Sd.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 cy(e){var t=e.accountCode,n=e.environment,o=void 0===n?"live":n;return Dp(["styling-settings-v2",t],(function(){return Sd.getInstance().getStylingSettingsV2({accountCode:t,environment:o}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function ly(){return Lp((function(e){var t=e.accountCode,n=e.environment,o=void 0===n?"live":n,a=e.payload;return Sd.getInstance().changeStylingSettings({accountCode:t,environment:o,payload:a}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function dy(){return Dp(["fetch-profile"],(function(){return Sd.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 py(){var e=this;return Dp(["get-user-full"],(function(){return t(e,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,Sd.getInstance().getUserFull()];case 1:return[2,e.sent().data]}}))}))}),{keepPreviousData:!0,useErrorBoundary:!1})}function hy(e,t){return Dp(["fetch-permissions",e,t],(function(){var e,t,n,o=localStorage.getItem("account"),a=localStorage.getItem("user"),r=o&&JSON.parse(o),i=a&&JSON.parse(a);return((null==i?void 0:i.merlin)?null===(e=null==i?void 0:i.merlin)||void 0===e?void 0:e.permissions:null===(n=null===(t=null==r?void 0:r.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 my(e){return Dp(["email-verification",e],(function(){return Sd.getInstance().emailVerification(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function fy(){return Dp({queryKey:["get-login-methods"],queryFn:function(){return Sd.getInstance().getLoginMethods().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}})}function gy(){return Dp(["fetch-impersonation-users"],(function(){return Sd.getInstance().getImpersonationUsers().then((function(e){var t;return(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.result)||[]}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function yy(){return Dp(["fetch-impersonation-enabled"],(function(){return Sd.getInstance().getImpersonationEnabled().then((function(e){return null==e?void 0:e.data}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function by(e,o,a,r,i){var s=this;return void 0===a&&(a=1),void 0===r&&(r=10),Dp(["get-users-to-impersonate",e,o,a,r,i],(function(){return t(s,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().getUsersToImpersonate(e,o,a,r,i).then((function(e){return null==e?void 0:e.data}))]}))}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function vy(e){var t;return Dp(["fetch-communications",e],(function(){return Sd.getInstance().getCommunications(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null===(t=e.account_codes)||void 0===t?void 0:t.length),useErrorBoundary:!1,cacheTime:3e3})}function ky(){return Dp(["fetch-communications-filters"],(function(){return Sd.getInstance().getCommunicationsFilters().then((function(e){return null==e?void 0:e.data}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function jy(e,t){return Dp(["fetch-communication-details",e],(function(){return Sd.getInstance().getCommunicationDetails(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e,useErrorBoundary:!1,cacheTime:0})}function wy(e){return Dp(["notifications-customer",e],(function(){return Sd.getInstance().getNotificationsCustomer(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,keepPreviousData:!1})}function _y(e){return Dp(["validate-opsgenie-key",e],(function(){return Sd.getInstance().getValidateOpsgenieKey(e).then((function(e){return null==e?void 0:e.data})).catch((function(){return{error:!0}}))}),{enabled:!!e,cacheTime:0})}function Ey(){return Dp(["notifications-merged"],(function(){return Sd.getInstance().getMergedNotifications().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{keepPreviousData:!1,cacheTime:0})}function Cy(){return Lp((function(e){return Sd.getInstance().getNotificationsNumber(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Sy(){var e=this;return Lp((function(o){return t(e,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().pathNotification(o)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}}))}))}))}var Ry={key:"metadata_fields",name:"metadata_fields",unique_key:"metadata_fields"};function xy(){return Dp(["reports"],(function(){return Sd.getInstance().reportsList().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Ty(e){return void 0===e&&(e=!0),Dp(["reports-multi-env"],(function(){return Sd.getInstance().reportsListMultiEnv().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e})}function Iy(e,t,n){return void 0===t&&(t=!1),Dp(["reports/".concat(e)],(function(){return Sd.getInstance().downloadReports(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:t,onSuccess:n,useErrorBoundary:!1})}function Oy(e){return Dp(["GET/reports/templates"],(function(){return Sd.getInstance().getReportTemplates().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e,useErrorBoundary:!1})}function Ay(o,a,r){var i=this;return Dp(["GET/reports/columns/".concat(a,"/").concat(r)],(function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().getReportColumns(a,r).then((function(t){return a===Oc.ALL&&r===Ic.PAYMENTS?e(e([],null==t?void 0:t.data,!0),[Ry],!1):null==t?void 0:t.data})).catch((function(e){return e}))]}))}))}),{enabled:o,useErrorBoundary:!1})}function zy(e,o){var a=this,r=Lf();return Dp(["getRefundPdf",e,r,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().getRefundPdf(e,r,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))]}))}))}),{enabled:!!e&&!!r,useErrorBoundary:!1})}function Py(){var e=Lf();return Dp(["teams-filters-members"],(function(){return Sd.getInstance().teamsFiltersMembers({organizationCode:e}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0})}function Dy(e){var t=e.organizationCode,n=e.accountCodes,o=e.search,a=e.status,r=e.roleId,i=e.statuses,s=e.roleIds,u=e.page,c=e.pageSize,l=Lf();return Dp(["fetch-post-members-v2",t,n,o,a,r,i,s,u,c],(function(){return Sd.getInstance().postMembersPaginatedV2({organizationCode:l,accountCodes:n,search:o,status:a,roleId:r,statuses:i,roleIds:s,page:u,pageSize:c}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&!!n,cacheTime:0,useErrorBoundary:!1})}function Ly(){return Dp(["fetch-roles"],(function(){return Sd.getInstance().getRoles().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Ny(){return Dp(["fetch-rolespermissions"],(function(){return Sd.getInstance().getRolesPermissions().then((function(e){return null==e?void 0:e.data}))}))}function qy(){return Dp(["fetch-permissions-catalog"],(function(){return Sd.getInstance().getPermissionsCatalog().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function My(e){return Dp(["data-report",e],(function(){return Sd.getInstance().getSmartRoutingDataReport(e).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,useErrorBoundary:!1})}function Uy(e,t,n,o){var a,r;void 0===n&&(n=!0);var i=null!==(a=null==o?void 0:o.staleTime)&&void 0!==a?a:3e5,s=null!==(r=null==o?void 0:o.cacheTime)&&void 0!==r?r:3e5;return Dp(["get-insights-conversion-rate-metrics-v2",e,t],(function(){return Sd.getInstance().getInsightsMetricsConversionRateV2(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:n&&(!!(null==e?void 0:e.currency_code)&&"Empty"!==(null==e?void 0:e.currency_code)&&"string"==typeof(null==e?void 0:e.currency_code)||Array.isArray(null==e?void 0:e.currency_code)&&0===(null==e?void 0:e.currency_code.length)),staleTime:i,cacheTime:s,useErrorBoundary:!1,retry:1})}function By(e,t){return Dp(["get-insights-conversion-rate-view-more-metrics",t,e],(function(){return Sd.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 Fy(e){return Dp(["get-insights-conversion-rate-fallback-metrics",e],(function(){return Sd.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 Wy(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Dp(["get-insights-volume-metrics",t,e],(function(){return Sd.getInstance().getInsightsMetricsVolume(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function Hy(e,t,n,o){return void 0===o&&(o=!0),delete t.account_code,Dp(["get-insights-volume-metrics-v2",t,e,n],(function(){return Sd.getInstance().getInsightsMetricsVolumeV2(e,n,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:o,cacheTime:200,useErrorBoundary:!1})}function Vy(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Dp(["get-insights-total-payment-fraud-metrics",t,e],(function(){return Sd.getInstance().getInsightsMetricsTotalPaymentsAndFraud(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function Gy(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Dp(["get-insights-customer-payment-fraud-metrics",t,e],(function(){return Sd.getInstance().getInsightsMetricsCustomerPaymentsAndFraud(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function Ky(e){return Dp(["get-insights-overview",e],(function(){return Sd.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 $y(e,t){var n=!!(null==e?void 0:e.enabled)&&void 0!==(null==e?void 0:e.account_code);return Dp(["get-insights-overview-v3",e,t],(function(){return Sd.getInstance().getInsightOverviewV3(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:0,useErrorBoundary:!1})}function Qy(e){return Dp(["get-insights-home-metrics",e],(function(){return Sd.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 Jy(e){return Dp(["get-insights-reports",e],(function(){return Sd.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 Xy(e){return Dp(["get-insights-reports-again",e],(function(){return Sd.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 Yy(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-fraud-screening-volume-and-count-tx",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsightsFraudScreeningVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Zy(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-fraud-screening-conversion-rate",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsightsFraudScreeningConversionRate(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function eb(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-3ds-volume-and-count-tx",o,e],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsights3dsVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function tb(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-3ds-conversion-rate-and-evolution",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsights3dsConversionRateAndEvolution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function nb(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-3ds-decline-reasons",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsights3dsDeclineReasons(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function ob(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-3ds-frictionless-vs-challenge",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsights3dsFrictionlessVsChallenge(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function ab(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-chargebacks-volume-and-count-tx",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsightsChargebacksVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function rb(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-chargebacks-total-rate-and-evolution",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsightsChargebacksTotalRateAndEvolution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function ib(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-chargebacks-win-rate",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsightsChargebacksWinRate(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function sb(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-chargebacks-disputed",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsightsChargebacksDisputed(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function ub(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-chargebacks-by-provider-and-card-brand",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsightsChargebacksByProviderAndCardBrand(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function cb(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-chargebacks-reasons-distribution",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsightsChargebacksReasonsDistribution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function lb(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-chargebacks-status-distribution",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsightsChargebacksStatusDistribution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function db(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-chargebacks-by-card-brand",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsightsChargebacksByCardBrand(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function pb(e,t){return Dp(["fetch-reconciliation-transaction",e],(function(){return Sd.getInstance().getReconciliationTransactions(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t,useErrorBoundary:!1})}function hb(e,t){return Dp(["fetch-reconciliation-settlements",e],(function(){return Sd.getInstance().getReconciliationSettlements(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t,useErrorBoundary:!1})}function mb(e,t){return Dp(["fetch-reconciliation-metrics",e],(function(){return Sd.getInstance().getReconciliationMetrics(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t,cacheTime:500})}function fb(){return Dp(["GET-reconciliation-filters"],(function(){return Sd.getInstance().getReconciliationFilters().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function gb(e){return Dp(["GET/v1/reconciliation/table/".concat(e,"/columns")],(function(){return Sd.getInstance().getAllTableColumns(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function yb(){return Dp(["GET/v1/reconciliation/active"],(function(){return Sd.getInstance().getReconciliationActive().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function bb(e,t,n){return Dp(["GET/reconciliation/reports/columns/".concat(t,"/").concat(n)],(function(){return Sd.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 vb(e){return Dp(["GET/reconciliation/reports/templates"],(function(){return Sd.getInstance().getReconciliationReportTemplates().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{enabled:e,useErrorBoundary:!1})}function kb(e){var t=e.body,n=e.params,o=e.enabled;return Dp(["GET/reconciliation/alerts/list",t,n],(function(){return Sd.getInstance().getReconciliationAlerts(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function jb(e){var t=e.body,n=e.params,o=e.enabled;return Dp(["GET/reconciliation/agenda/list",t,n],(function(){return Sd.getInstance().getReconciliationAgenda(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function wb(e){var t=e.body,n=e.params,o=e.enabled;return Dp(["GET/reconciliation/agenda/insights",t,n],(function(){return Sd.getInstance().getReconciliationAgendaInsightByKey(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function _b(e){var t=e.body,n=e.params,o=e.enabled;return Dp(["GET/reconciliation/sales/list",t,n],(function(){return Sd.getInstance().getReconciliationSales(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Eb(e){var t=e.body,n=e.params,o=e.enabled;return Dp(["GET/reconciliation/advancements/list",t,n],(function(){return Sd.getInstance().getReconciliationAdvancements(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Cb(e){var t=e.body,n=e.params,o=e.enabled;return Dp(["GET/reconciliation/fees/list",t,n],(function(){return Sd.getInstance().getReconciliationFees(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Sb(e){var o=this,a=Object.values(e).filter(Boolean);return Dp(["feature-flags",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().getFeatureFlagId(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:a.length>1,useErrorBoundary:!1})}function Rb(e){var o=this,a=Dp({queryKey:["all-feature-flags",Object.values(e).filter(Boolean)],queryFn:function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().getFeatureFlagIdAll({accountCode:e.account_code}).then((function(e){return null==e?void 0:e.data}))]}))}))},enabled:!!e.account_code&&!!e.organization_code&&!!e.email,cacheTime:9e5,useErrorBoundary:!1}),r=Tp();return l((function(){r.setQueryData(["cached-feature-flags"],a)}),[a,r]),a}function xb(e){var t,n,o=Tp(),r=o.getQueryState(["cached-feature-flags"]),i=Boolean(!(null===(t=null==r?void 0:r.data)||void 0===t?void 0:t.status)||"loading"===(null===(n=null==r?void 0:r.data)||void 0===n?void 0:n.status)),s=Dp({queryKey:["cached-feature-flags"],queryFn:function(){},enabled:!1,select:function(t){var n;return{result:null===(n=null==t?void 0:t.data)||void 0===n?void 0:n[e]}},initialData:function(){var e=o.getQueryData(["cached-feature-flags"]);return(null==e?void 0:e.data)||{}}});return a(a({},s),{isLoading:i})}function Tb(e){return Dp(["events",e],(function(){return Sd.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 Ib(e){return Dp(["audit-monitor-event-detail",e],(function(){return Sd.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 Ob(e){return Dp(["api-logs",e],(function(){return Sd.getInstance().postApiLogs({payload:e}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e.organizationCode,cacheTime:0,useErrorBoundary:!1})}function Ab(e){var t=e.params;return Dp(["webhook-logs",t],(function(){return Sd.getInstance().postWebhookLogs({payload:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t.organizationCode,cacheTime:0,useErrorBoundary:!1})}function zb(e){return Dp(["api-logs-detail",e],(function(){return Sd.getInstance().getApiLogsDetailByPaymentCode(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e,cacheTime:0,useErrorBoundary:!1})}function Pb(e,t){return Dp(["fetch-payment-links",e,t],(function(){return Sd.getInstance().getPaymentLinks(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,cacheTime:0})}function Db(e){return Dp(["payment-link"],(function(){return Sd.getInstance().getPaymentLinksByCode(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function Lb(e){return void 0===e&&(e=!0),Dp(["countries",e],(function(){return Sd.getInstance().useGetCountriesConfig().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e,keepPreviousData:!0})}function Nb(e){var t=localStorage.getItem("lang")||"en",n=e||t;return Dp(["countries-v2",n],(function(){return Sd.getInstance().useGetCountriesConfigV2(n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!0,keepPreviousData:!0})}function qb(e){return Dp(["timezone"],(function(){return Sd.getInstance().getTimezone(e).then((function(e){return ud(e)?pd:null==e?void 0:e.data})).catch((function(){return pd}))}),{enabled:!0,keepPreviousData:!0})}function Mb(e){return Dp(["installments-plans",e],(function(){return Sd.getInstance().getInstallmentPlans(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(e),useErrorBoundary:!1})}function Ub(e,t){return void 0===t&&(t=!0),Dp(["subscription",e],(function(){return Sd.getInstance().getSubscriptionByCode(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&t,cacheTime:500})}function Bb(e,t,n,o){return void 0===o&&(o=!0),Dp(["subscription-payments",e,t,n],(function(){return Sd.getInstance().getSubscriptionPayments(e,t,n).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e&&o,cacheTime:0})}function Fb(e){return Lp((function(e){var t=e.payload;return Sd.getInstance().firebaseUserSubscribe(t)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Wb(e,t){return Dp(["get-cofig-allow-list",e],(function(){return Sd.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 Hb(e){return Dp(["get-black-list",e],(function(){return Sd.getInstance().getBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!e})}function Vb(e,t,n,o){var a;return Dp(["post-black-list",e],(function(){return Sd.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 Gb(e,t,n){return Dp(["get-block-list-summary",e,t,n],(function(){var o=Sd.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 Kb(e,t,n,o,a,r){return Dp(["black-list-detail",e,t,o,a,r],(function(){return Sd.getInstance().getBlacklistDetail(e,t,n,o,a).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&r,cacheTime:0})}function $b(e,t,n){return Dp(["allow-list-detail",e],(function(){return Sd.getInstance().getAllowlistDetail(e,t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{enabled:!!e&&!!n})}function Qb(e){return Dp(["query-post-get-allowlist-multi-account",JSON.stringify(e)],(function(){return Sd.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 Jb(e,o){var a=this;return void 0===e&&(e=26),void 0===o&&(o=0),Dp(["batch-refunds",e,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().getBatchRefunds(e,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{cacheTime:0})}function Xb(e){return Dp(["velocity-rules",e],(function(){var t=Sd.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 Yb(){return Dp(["config-rules"],(function(){return Sd.getInstance().getAllConfigRules().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0})}function Zb(e,t){var n=e.organizationCode;return Dp(["mfa-excluded-users",n],(function(){return Sd.getInstance().getMFAExcludedUsers({organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function ev(e,t){var n=e.organizationCode;return Dp(["mfa-config",n],(function(){return Sd.getInstance().getMFAConfig({organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function tv(e,t){return Dp(["mfa-enforcement-status",e.accountCode],(function(){return Sd.getInstance().getMFAEnforcementStatus().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function nv(e){return Dp(["fetch-organization-saml-config",e],(function(){return Sd.getInstance().getSamlConfig().then((function(e){return e.data}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function ov(e){return Dp(["chartgpt-chart-execute",e],(function(){return Sd.getInstance().executeChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e})}function av(){return Dp(["chartgpt-user-charts"],(function(){return Sd.getInstance().getChartsByUser().then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0})}function rv(){var e=this;return Dp(["chartgpt-user-charts-with-results"],(function(){return t(e,void 0,void 0,(function(){var e,o,r,i=this;return n(this,(function(s){switch(s.label){case 0:return[4,(e=Sd.getInstance()).getChartsByUser()];case 1:return o=s.sent(),r=(null==o?void 0:o.data)||[],[4,Promise.all(r.map((function(o){return t(i,void 0,void 0,(function(){var t,r,i,s,u,c,l,d;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e.executeChartGPTChart(o.code)];case 1:return t=n.sent(),[2,a(a({},o),{user_prompt:null!==(s=null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.user_prompt)&&void 0!==s?s:o.user_prompt,unit_to_display:null!==(c=null===(u=null==t?void 0:t.data)||void 0===u?void 0:u.unit_to_display)&&void 0!==c?c:o.unit_to_display,results:null!==(d=null===(l=null==t?void 0:t.data)||void 0===l?void 0:l.results)&&void 0!==d?d:[]})];case 2:return r=n.sent(),console.error("Failed to execute chart ".concat(o.chart_id,":"),r),[2,a(a({},o),{results:[]})];case 3:return[2]}}))}))})))];case 2:return[2,s.sent()]}}))}))}))}function iv(e,o,a){var r=this;return void 0===a&&(a=!0),Dp(["chartgpt-patch-and-execute",e,o],(function(){return t(r,void 0,void 0,(function(){var t,a,r,i,s;return n(this,(function(n){switch(n.label){case 0:return[4,(t=Sd.getInstance()).patchChartGPTChart(e,o)];case 1:return a=n.sent(),r=null==a?void 0:a.data,[4,t.executeChartGPTChart(e)];case 2:return i=n.sent(),s=null==i?void 0:i.data,[2,{chart:r,execution:s}]}}))}))}),{enabled:a&&!!e,retry:!1})}function sv(){return Dp(["languages"],(function(){return Sd.getInstance().getLanguages().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,cacheTime:300})}function uv(){var e=localStorage.getItem("lang")||"en";return Dp(["translations",e],(function(){return Sd.getInstance().getTranslations(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,cacheTime:3e4})}function cv(e){var o=this;return Dp({queryKey:["network-tokens-onboarding",e],queryFn:function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getNetworkTokensOnboardingByOrganization(e)];case 1:return[2,t.sent().data]}}))}))},enabled:!!e,useErrorBoundary:!1,cacheTime:0})}var lv=function(e){if(!e)return"";var t=new Date(e);return"".concat(["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][t.getUTCMonth()]," ").concat(t.getUTCDate())},dv=function(e,t,n){if(!t||!n)return e||[];var o=function(e,t){var n=[],o=new Date(e),a=new Date(t);o.setUTCHours(0,0,0,0),a.setUTCHours(0,0,0,0);for(var r=new Date(o);r<=a;)n.push(r.toISOString()),r.setUTCDate(r.getUTCDate()+1);return n}(t,n),a=new Map;return null==e||e.forEach((function(e){if(e.date){var t=new Date(e.date).toISOString().split("T")[0];a.set(t,e.value)}})),o.map((function(e){var t=e.split("T")[0];return{date:e,value:a.get(t)||"0"}}))},pv=function(e){var t,n=null===(t=e.plots)||void 0===t?void 0:t[0];if(!n||!n.rows)return{distribution:[],total:0};var o=parseFloat(n.value||"0");return{distribution:n.rows.map((function(e){var t,n=100*parseFloat(e.value),a=Math.round(o*parseFloat(e.value));return{key:(null===(t=e.label)||void 0===t?void 0:t.toUpperCase())||"UNKNOWN",total:a,percentage:n,amount:a}})),total:o}},hv=function(e,t,n){var o,a={};return null===(o=e.plots)||void 0===o||o.forEach((function(e){var o=dv(e.rows,t,n),r=e.label;a[r]=o.map((function(e){return{key:e.date||"",total:100*parseFloat(e.value),current_label:lv(e.date||""),current_amount:100*parseFloat(e.value)}}))})),a},mv=function(e,t,n){var o,a=null===(o=e.plots)||void 0===o?void 0:o[0];return{distribution:dv(null==a?void 0:a.rows,t,n).map((function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:lv(e.date||""),current_amount:parseFloat(e.value)}})),total:parseFloat((null==a?void 0:a.value)||"0"),total_amount:parseFloat((null==a?void 0:a.value)||"0")}},fv=function(e,t,n){var o,a=null===(o=e.plots)||void 0===o?void 0:o[0];return{distribution:dv(null==a?void 0:a.rows,t,n).map((function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:lv(e.date||""),current_amount:parseFloat(e.value)}})),total:parseFloat((null==a?void 0:a.value)||"0"),total_amount:parseFloat((null==a?void 0:a.value)||"0")}},gv=function(e,o){return Dp(a({queryKey:["smart-recovery-communications-by-day",e],queryFn:function(){return t(void 0,void 0,void 0,(function(){var t,o,a;return n(this,(function(n){switch(n.label){case 0:return t=Sd.getInstance(),o={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/communications-by-day",o)];case 1:return a=n.sent(),[2,(r=a.data,i=o.start_date,s=o.end_date,u=r.plots||[],c=u.find((function(e){return"TOTAL_COMMUNICATIONS_LABEL"===e.label})),l=u.find((function(e){return"COMPLETED_COMMUNICATIONS_LABEL"===e.label})),d=u.find((function(e){return"CONVERSION_RATE_LABEL"===e.label})),p=dv(null==c?void 0:c.rows,i,s),h=dv(null==l?void 0:l.rows,i,s),m=dv(null==d?void 0:d.rows,i,s),{communications:{distribution:p.map((function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:lv(e.date||""),current_amount:parseFloat(e.value)}})),total:parseFloat((null==c?void 0:c.value)||"0")},conversion_rate:{distribution:m.map((function(e){return{key:e.date||"",total:parseFloat(e.value),percentage:parseFloat(e.value)}})),total:parseFloat((null==d?void 0:d.value)||"0")},completed_communications:{distribution:h.map((function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:lv(e.date||""),current_amount:parseFloat(e.value)}})),total:parseFloat((null==l?void 0:l.value)||"0")}})]}var r,i,s,u,c,l,d,p,h,m}))}))},enabled:!!e.organization_code,staleTime:3e5},o))},yv=function(e,o){return Dp(a({queryKey:["smart-recovery-communications-by-substatus",e],queryFn:function(){return t(void 0,void 0,void 0,(function(){var t,o,a;return n(this,(function(n){switch(n.label){case 0:return t=Sd.getInstance(),o={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/communications-by-substatus",o)];case 1:return a=n.sent(),[2,pv(a.data)]}}))}))},enabled:!!e.organization_code,staleTime:3e5},o))},bv=function(e,o){return Dp(a({queryKey:["smart-recovery-communications-substatus-by-day",e],queryFn:function(){return t(void 0,void 0,void 0,(function(){var t,o,a;return n(this,(function(n){switch(n.label){case 0:return t=Sd.getInstance(),o={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/communications-substatus-by-day",o)];case 1:return a=n.sent(),[2,hv(a.data,o.start_date,o.end_date)]}}))}))},enabled:!!e.organization_code,staleTime:3e5},o))},vv=function(e,o){return Dp(a({queryKey:["smart-recovery-recovered-tpv-by-day",e],queryFn:function(){return t(void 0,void 0,void 0,(function(){var t,o,a;return n(this,(function(n){switch(n.label){case 0:return t=Sd.getInstance(),o={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/recovered-tpv-by-day",o)];case 1:return a=n.sent(),[2,mv(a.data,o.start_date,o.end_date)]}}))}))},enabled:!!e.organization_code,staleTime:3e5},o))},kv=function(e,o){return Dp(a({queryKey:["smart-recovery-recovered-payments-by-day",e],queryFn:function(){return t(void 0,void 0,void 0,(function(){var t,o,a;return n(this,(function(n){switch(n.label){case 0:return t=Sd.getInstance(),o={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/recovered-payments-by-day",o)];case 1:return a=n.sent(),[2,fv(a.data,o.start_date,o.end_date)]}}))}))},enabled:!!e.organization_code,staleTime:3e5},o))};function jv(e,o){var a=this;return Dp(["POST/template-reporting/templates/search",e],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().searchReportTemplates(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:o,useErrorBoundary:!1,cacheTime:0})}function wv(e,o,a){var r=this;return Dp(["POST/template-reporting/template-by-id/search",e,o],(function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().searchReportTemplateById(e,o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:a&&!!e,useErrorBoundary:!1,cacheTime:0})}function _v(e,o){var a=this;return Dp(["POST/template-reporting/schedules/search",e],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().searchReportSchedules(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:o,useErrorBoundary:!1,cacheTime:0})}function Ev(e,o,a){var r=this;return Dp(["POST/template-reporting/schedule-by-id/search",e,o],(function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().searchReportScheduleById(e,o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:a&&!!e,useErrorBoundary:!1,cacheTime:0})}function Cv(){return Cv=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},Cv.apply(this,arguments)}
216
+ */"production"===process.env.NODE_ENV?kp.exports=function(){if(vp)return jp;vp=1;var e=s,t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useState,o=e.useEffect,a=e.useLayoutEffect,r=e.useDebugValue;function i(e){var n=e.getSnapshot;e=e.value;try{var o=n();return!t(e,o)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var s=t(),u=n({inst:{value:s,getSnapshot:t}}),c=u[0].inst,l=u[1];return a((function(){c.value=s,c.getSnapshot=t,i(c)&&l({inst:c})}),[e,s,t]),o((function(){return i(c)&&l({inst:c}),e((function(){i(c)&&l({inst:c})}))}),[e]),r(s),s};return jp.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:u,jp}():kp.exports=(wp||(wp=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=s,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,r=t.useLayoutEffect,i=t.useDebugValue,u=!1,c=!1,l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(s,l){u||void 0===t.startTransition||(u=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var d=l();if(!c){var p=l();n(d,p)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}var h=(p=o({inst:{value:d,getSnapshot:l}}))[0].inst,m=p[1];return r((function(){h.value=d,h.getSnapshot=l,e(h)&&m({inst:h})}),[s,d,l]),a((function(){return e(h)&&m({inst:h}),s((function(){e(h)&&m({inst:h})}))}),[s]),i(d),d};_p.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:l,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),_p);var Ep=kp.exports;const Cp=Ep.useSyncExternalStore,Sp=i.createContext(void 0),Rp=i.createContext(!1);function xp(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Sp),window.ReactQueryClientContext):Sp)}const Tp=({context:e}={})=>{const t=i.useContext(xp(e,i.useContext(Rp)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Ip=({client:e,children:t,context:n,contextSharing:o=!1})=>{i.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=xp(n,o);return i.createElement(Rp.Provider,{value:!n&&o},i.createElement(a.Provider,{value:e},t))},Op=i.createContext(!1);Op.Provider;const Ap=i.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function zp(e,t){return"function"==typeof e?e(...t):!!e}function Pp(e,t){const n=Tp({context:e.context}),o=i.useContext(Op),a=i.useContext(Ap),r=n.defaultQueryOptions(e);r._optimisticResults=o?"isRestoring":"optimistic",r.onError&&(r.onError=ap.batchCalls(r.onError)),r.onSuccess&&(r.onSuccess=ap.batchCalls(r.onSuccess)),r.onSettled&&(r.onSettled=ap.batchCalls(r.onSettled)),(e=>{e.suspense&&"number"!=typeof e.staleTime&&(e.staleTime=1e3)})(r),((e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))})(r,a),(e=>{i.useEffect((()=>{e.clearReset()}),[e])})(a);const[s]=i.useState((()=>new t(n,r))),u=s.getOptimisticResult(r);if(Cp(i.useCallback((e=>{const t=o?()=>{}:s.subscribe(ap.batchCalls(e));return s.updateResult(),t}),[s,o]),(()=>s.getCurrentResult()),(()=>s.getCurrentResult())),i.useEffect((()=>{s.setOptions(r,{listeners:!1})}),[r,s]),((e,t,n)=>(null==e?void 0:e.suspense)&&((e,t)=>e.isLoading&&e.isFetching&&!t)(t,n))(r,u,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)})))(r,s,a);if((({result:e,errorResetBoundary:t,useErrorBoundary:n,query:o})=>e.isError&&!t.isReset()&&!e.isFetching&&zp(n,[e.error,o]))({result:u,errorResetBoundary:a,useErrorBoundary:r.useErrorBoundary,query:s.getCurrentQuery()}))throw u.error;return r.notifyOnChangeProps?u:s.trackResult(u)}function Dp(e,t,n){return Pp(Ad(e,t,n),hp)}function Lp(e,t,n){const o=function(e,t,n){return Vd(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}(e,t,n),a=Tp({context:o.context}),[r]=i.useState((()=>new bp(a,o)));i.useEffect((()=>{r.setOptions(o)}),[r,o]);const s=Cp(i.useCallback((e=>r.subscribe(ap.batchCalls(e))),[r]),(()=>r.getCurrentResult()),(()=>r.getCurrentResult())),u=i.useCallback(((e,t)=>{r.mutate(e,t).catch(Np)}),[r]);if(s.error&&zp(r.options.useErrorBoundary,[s.error]))throw s.error;return{...s,mutate:u,mutateAsync:s.mutate}}function Np(){}var qp;function Mp(e){return Lp((function(e){var t=e.payload;return Sd.getInstance().postWebhookV2MultiAccount({payload:t})}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Up(e){return Lp((function(e){var t=e.code,n=e.accountCode;return Sd.getInstance().deleteWebhookV2(t,n)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Bp(e){return Lp((function(e){var t=e.code,n=e.payload,o=e.accountCode;return Sd.getInstance().updateWebhookV2(t,n,o)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Fp(){return Lp((function(e){var t=e.name,n=e.principal;return Sd.getInstance().postAccount(t,n)}))}function Wp(){return Lp((function(t){var n=e([qp.ACCOUNT],t.duplicate_order,!0);return Sd.getInstance().duplicateAccount(a(a({},t),{duplicate_order:n}))}))}function Hp(){return Lp((function(e){return Sd.getInstance().retryDuplicateAccount(e)}))}function Vp(){return Lp((function(e){var t=e.name,n=e.code,o=e.principal;return Sd.getInstance().patchAccountV2({name:t,code:n,principal:o})}))}function Gp(){return Lp((function(e){var t=e.account_code;return Sd.getInstance().putAccountPrincipal({account_code:t})}))}function Kp(){return Lp((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return Sd.getInstance().putAccountsUserMassive(t,n,o)}))}function $p(){return Lp((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return Sd.getInstance().deleteAccountsUserMassive(t,n,o)}))}function Qp(){return Lp(["post-validate-status-connection"],(function(e){var t=e.payload,n=e.accountCode;return Sd.getInstance().postValidateStatusConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Jp(){return Lp(["post-change-status-connection"],(function(e){var t=e.payload,n=e.accountCode;return Sd.getInstance().postChangeStatusConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Xp(){return Lp((function(e){return Sd.getInstance().putCosts(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Yp(){return Lp(["post-connection"],(function(e){var t=e.payload;return Sd.getInstance().postMultiConnection({payload:t}).then((function(e){return null==e?void 0:e.data}))}))}function Zp(){return Lp(["new-post-connection-validate"],(function(){return Sd.getInstance().postMultiConnectionValidate().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function eh(){return Lp(["patch-connection"],(function(e){var t=e.payload,n=e.connectionCode;return Sd.getInstance().patchConnection({payload:t,connectionCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function th(){return Lp((function(e){var t=e.payload;return Sd.getInstance().postDefaultRoutes({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function nh(){return Lp((function(e){return Sd.getInstance().postValidateCredentials(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function oh(){var e=this;return Lp((function(o){var a=o.payload;return t(e,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,Sd.getInstance().postNetworkTokensOnboarding(a)];case 1:return[2,e.sent().data]}}))}))}),{useErrorBoundary:!1})}function ah(){return Lp(["patch-organizations"],(function(){return Sd.getInstance().updateOrganizationStatus().then((function(e){return null==e?void 0:e.data}))}))}function rh(){return Lp((function(e){return Sd.getInstance().getOrgByName(e).then((function(e){return null==e?void 0:e.data}))}))}function ih(){var e=this;return Lp((function(o){return t(e,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,Sd.getInstance().changePasswordV2(o).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}))}function sh(e){return Lp((function(e){return Sd.getInstance().updateProfile(e)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function uh(){return Lp((function(e){return Sd.getInstance().inviteUsersMassive(e,e.organizationCode)}))}function ch(){return Lp((function(e){var t=e.userCode,n=e.organizationCode;return Sd.getInstance().unInviteUsersV2({userCode:t,organizationCode:n})}))}function lh(){return Lp((function(e){return Sd.getInstance().createUserAuth0(e)}))}function dh(){return Lp((function(e){return Sd.getInstance().postCall(e)}))}function ph(){return Lp((function(e){return Sd.getInstance().changeLoginMethods(e)}))}function hh(e){return Lp((function(e){return Sd.getInstance().updateIsActiveCheckout(e)}),e)}function mh(){return Lp((function(e){var t=e.accountCode,n=e.template;return Sd.getInstance().updateCheckoutTemplate({accountCode:t,template:n}).then((function(e){return null==e?void 0:e.data}))}))}function fh(){return Lp((function(e){var t=e.accountCode,n=e.theme;return Sd.getInstance().updateStylingTheme({accountCode:t,theme:n}).then((function(e){return null==e?void 0:e.data}))}))}function gh(){return Lp((function(e){var t=e.payload,n=e.transactionId,o=e.paymentId,a=e.action;return Sd.getInstance().createOperationTransaction(t,n,o,a)}))}function yh(){return Lp((function(e){var t=e.payload,n=e.paymentId,o=e.transactionId,a=e.handleSetProgress;return Sd.getInstance().uploadChargebacks(t,n,o,a)}))}function bh(){return Lp((function(e){var t=e.transactionCode,n=e.payload;return Sd.getInstance().postProviderRawResponse(t,n)}))}!function(e){e.ACCOUNT="ACCOUNT",e.CHECKOUT_BUILDER="CHECKOUT_BUILDER",e.CONNECTION="CONNECTION",e.ROUTING="ROUTING",e.RISK_CONDITIONS="RISK_CONDITIONS",e.WEBHOOKS="WEBHOOKS"}(qp||(qp={}));var vh=new sp({}),kh=new class{constructor(e={}){this.queryCache=e.queryCache||new sp,this.mutationCache=e.mutationCache||new lp,this.logger=e.logger||op,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=Qd.subscribe((()=>{Qd.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())})),this.unsubscribeOnline=Xd.subscribe((()=>{Xd.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]=zd(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=Ad(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 r=Ad(e),i=this.defaultQueryOptions(r);return this.queryCache.build(this,i).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return ap.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]=zd(e,t),o=this.queryCache;ap.batch((()=>{o.findAll(n).forEach((e=>{o.remove(e)}))}))}resetQueries(e,t,n){const[o,a]=zd(e,t,n),r=this.queryCache,i={type:"active",...o};return ap.batch((()=>(r.findAll(o).forEach((e=>{e.reset()})),this.refetchQueries(i,a))))}cancelQueries(e,t,n){const[o,a={}]=zd(e,t,n);void 0===a.revert&&(a.revert=!0);const r=ap.batch((()=>this.queryCache.findAll(o).map((e=>e.cancel(a)))));return Promise.all(r).then(Td).catch(Td)}invalidateQueries(e,t,n){const[o,a]=zd(e,t,n);return ap.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]=zd(e,t,n),r=ap.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 i=Promise.all(r).then(Td);return null!=a&&a.throwOnError||(i=i.catch(Td)),i}fetchQuery(e,t,n){const o=Ad(e,t,n),a=this.defaultQueryOptions(o);void 0===a.retry&&(a.retry=!1);const r=this.queryCache.build(this,a);return r.isStaleByTime(a.staleTime)?r.fetch(a):Promise.resolve(r.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(Td).catch(Td)}fetchInfiniteQuery(e,t,n){const o=Ad(e,t,n);return o.behavior=dp(),this.fetchQuery(o)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(Td).catch(Td)}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=>Nd(e)===Nd(t.queryKey)));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find((t=>qd(e,t.queryKey)));if("production"!==process.env.NODE_ENV){this.queryDefaults.filter((t=>qd(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=>Nd(e)===Nd(t.mutationKey)));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find((t=>qd(e,t.mutationKey)));if("production"!==process.env.NODE_ENV){this.mutationDefaults.filter((t=>qd(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=Ld(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:vh});function jh(){return Lp((function(e){return Sd.getInstance().createReconciliationsReportV2(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function wh(){return Lp((function(e){return Sd.getInstance().createReconciliationsReportV3(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function _h(){return Lp((function(e){return Sd.getInstance().createReportV2(e).then((function(e){return null==e?void 0:e.data}))}))}function Eh(){return Lp((function(e){return Sd.getInstance().getTotalRowsForExport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Ch(){return Lp((function(e){return Sd.getInstance().cancelReport(e).then((function(e){return null==e?void 0:e.data}))}))}function Sh(o){var a=this;return Lp((function(){return t(a,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.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,kh.cancelQueries({queryKey:["GET/reports/templates"]})];case 1:return n.sent(),t=kh.getQueryData(["GET/reports/templates"]),kh.setQueryData(["GET/reports/templates"],(function(t){return e(e([],t,!0),[o],!1)})),[2,{previousTemplates:t}]}}))}))},onError:function(e,t,n){kh.setQueryData(["GET/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){kh.invalidateQueries({queryKey:["GET/reports/templates"]})}})}function Rh(e){return Lp((function(){return Sd.getInstance().updateReportTemplate(e).then((function(e){return null==e?void 0:e.data}))}))}function xh(e,o,a){var r=this;return void 0===a&&(a=null),Lp((function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().postSmartRoutingCreateWorkflow(e,o).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,t.sent()]}}))}))}),a)}function Th(e,o){var a=this,r=e.versionCode,i=e.accountCode,s=e.organizationCode;return void 0===o&&(o=null),Lp((function(){return t(a,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,Sd.getInstance().postSmartRoutingPublishVersion(i,r,s).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}),o)}function Ih(e,t){var n=e.data,o=e.accountCode;return void 0===t&&(t=null),Lp((function(){return Sd.getInstance().putSmartRoutingUpdateWorkflow(o,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),t)}function Oh(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Lp((function(){return Sd.getInstance().deleteSmartRoutingVersion(o,n).then((function(e){return null==e?void 0:e.data}))}),t)}function Ah(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Lp((function(){return Sd.getInstance().postSmartRoutingDuplicateVersion(o,n).then((function(e){return null==e?void 0:e.data}))}),t)}function zh(e,t){var n=e.paymentMethod,o=e.active,a=e.accountCode;return void 0===t&&(t=null),Lp((function(){return Sd.getInstance().putSmartRoutingToggleMethod(a,n,o).then((function(e){return null==e?void 0:e.data}))}),t)}function Ph(e,t){var n=e.declinedId,o=e.accountCode;return void 0===t&&(t=null),Lp((function(e){return void 0===e&&(e=null),Sd.getInstance().updateSmartRoutingDeclinedGroup(o,n,e).then((function(e){return null==e?void 0:e.data}))}),t)}function Dh(e){var t=e.accountCode;return Lp((function(e){return void 0===e&&(e=null),Sd.getInstance().createSmartRoutingDeclinedGroup(t,e).then((function(e){return null==e?void 0:e.data}))}),e.options)}function Lh(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Lp((function(e){return void 0===e&&(e=!1),Sd.getInstance().updateSmartRoutingFavorite(o,n,e).then((function(e){return null==e?void 0:e.data}))}),t)}function Nh(e,t){var n=e.code,o=e.name,a=e.accountCode;return void 0===t&&(t=null),Lp((function(){return Sd.getInstance().putSmartRoutingUpdateWorkflowName(a,{code:n,name:o}).then((function(e){return null==e?void 0:e.data}))}),t)}function qh(e,t){var n=e.accountCode,o=e.workflowVersionCode;return void 0===t&&(t=null),Lp((function(e){return Sd.getInstance().simulateSmartRoutingTransaction(n,o,e).then((function(e){return null==e?void 0:e.data}))}),t)}function Mh(e,t){return void 0===t&&(t=null),Lp((function(t){return Sd.getInstance().updateMonitorRedistribution(e,t).then((function(e){return null==e?void 0:e.data}))}),t)}function Uh(e,t){return void 0===t&&(t={}),Lp((function(t){var n=t.declinedGroupCode;return Sd.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 Bh(e,t){return void 0===t&&(t={}),Lp((function(t){var n=t.payload;return Sd.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 Fh=function(e){return Lp((function(t){return Sd.getInstance().createMonitorThreshold(t,e).then((function(e){return e.data}))}))},Wh=function(e){return Lp((function(t){return Sd.getInstance().createMonitorTemplate(t,e).then((function(e){return e.data}))}))};function Hh(){return Lp((function(e){var t=e.payload;return Sd.getInstance().postSlackMessageChannel(t).then((function(e){return null==e?void 0:e.data}))}))}function Vh(){return Lp((function(e){var t=e.userCode,n=e.organizationCode;return Sd.getInstance().deleteUserTeamV2({userCode:t,organizationCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Gh(){return Lp((function(){return Sd.getInstance().setCustodian().then((function(e){return null==e?void 0:e.data}))}))}function Kh(){return Lp((function(e){var t=e.payload,n=e.accountCode;return Sd.getInstance().createRoles(t,n).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function $h(){var e=this;return Lp((function(o){var a=o.payload,r=o.id,i=o.accountCode;return t(e,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().editRoles({payload:a,id:r},i)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}}))}))}),{useErrorBoundary:!1})}function Qh(){return Lp((function(e){return Sd.getInstance().deleteRoles(e).then((function(e){return null==e?void 0:e.data}))}))}function Jh(){return Lp(["post-payment-links"],(function(e){var t=e.payload,n=e.accountCode;return Sd.getInstance().postPaymentLinks({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Xh(){return Lp(["post-delete-payment-link"],(function(e){var t=e.code;return Sd.getInstance().postDeletePaymentLink({code:t}).then((function(e){return null==e?void 0:e.data}))}))}function Yh(){return Lp(["patch-payment-links"],(function(e){var t=e.payload,n=e.accountCode,o=e.paymentLinkCode;return Sd.getInstance().patchPaymentLinks({payload:t,accountCode:n,paymentLinkCode:o}).then((function(e){return null==e?void 0:e.data}))}))}function Zh(){return Lp(["post-subscription"],(function(e){return Sd.getInstance().postSubscription(e).then((function(e){return null==e?void 0:e.data}))}))}function em(){return Lp(["post-pause-subscription"],(function(e){var t=e.subscriptionCode;return Sd.getInstance().postPauseSubscription(t).then((function(e){return null==e?void 0:e.data}))}))}function tm(){return Lp(["post-resume-subscription"],(function(e){var t=e.subscriptionCode;return Sd.getInstance().postResumeSubscription(t).then((function(e){return null==e?void 0:e.data}))}))}function nm(){return Lp(["post-cancel-subscription"],(function(e){var t=e.subscriptionCode;return Sd.getInstance().postCancelSubscription(t).then((function(e){return null==e?void 0:e.data}))}))}function om(){return Lp(["patch-subscription"],(function(e){var t=e.subscriptionCode,n=e.payload;return Sd.getInstance().patchSubscription(t,n).then((function(e){return null==e?void 0:e.data}))}))}function am(){return Lp(["post-reschedule-subscription"],(function(e){var t=e.subscriptionCode;return Sd.getInstance().postRescheduleSubscription(t).then((function(e){return null==e?void 0:e.data}))}))}function rm(){return Lp(["post-list-subscriptions"],(function(e){return Sd.getInstance().postListSubscriptions(e).then((function(e){return null==e?void 0:e.data}))}))}function im(){return Lp((function(e){var t=e.payload;return Sd.getInstance().postUserSettings(t)}),{onMutate:function(e){return e}})}function sm(){return Lp((function(e){return Sd.getInstance().postUserThemeSettings(e)}))}function um(){return Lp((function(e){var t=e.payload,n=e.section;return Sd.getInstance().postUserSettingsTables(t,n)}),{onMutate:function(e){return e},onSuccess:function(e){var t=kh.getQueryData(["fetch-profile"]);e.data&&kh.setQueryData(["fetch-profile"],a(a({},t),{settings:e.data}))}})}function cm(e){return Lp(["pinned-sections"],(function(e){var t=e.payload;return Sd.getInstance().postUserSettingsPinned(t)}),{onMutate:function(t){var n=t.payload;return e({payload:n})}})}function lm(){return Lp((function(e){var t=e.password,n=e.otp;return Sd.getInstance().getMfaTokenValidation(t,n).then((function(e){return null==e?void 0:e.data}))}))}function dm(){return Lp((function(){return Sd.getInstance().getEmailOtp().then((function(e){return null==e?void 0:e.data}))}))}function pm(){return Lp((function(e){return Sd.getInstance().confirmMfaOtp(e).then((function(e){return null==e?void 0:e.data}))}))}function hm(){return Lp((function(e){return Sd.getInstance().unrollMfa(e).then((function(e){return null==e?void 0:e.data}))}))}function mm(){return Lp((function(){return Sd.getInstance().validatePasswordStatus().then((function(e){return null==e?void 0:e.data})).catch((function(e){return{valid:!1}}))}))}function fm(){return Lp(["post-get-allowlist-items"],(function(e){var t=e.payload;return Sd.getInstance().postAllowlistItems({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function gm(){return Lp(["post-get-allowlist-multi-account"],(function(e){var t=e.payload;return Sd.getInstance().postGetAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function ym(){return Lp(["post-create-allowlist-multi-account"],(function(e){var t=e.payload;return Sd.getInstance().postCreateAllowlistMultiAccount({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function bm(){return Lp(["patch-change-status-allowlist"],(function(e){var t=e.payload;return Sd.getInstance().patchChangeStatusAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function vm(){return Lp(["patch-change-status-allowlist-item"],(function(e){var t=e.payload;return Sd.getInstance().patchChangeStatusAllowlistItem({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function km(){return Lp(["post-add-allowlist-items"],(function(e){var t=e.payload;return Sd.getInstance().patchAddAllowlistItems({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function jm(){return Lp(["patch-allowlist"],(function(e){var t=e.payload;return Sd.getInstance().patchAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function wm(){return Lp(["post-blacklist-multi-account"],(function(e){var t=e.payload;return Sd.getInstance().postBlackListMultiAccount({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function _m(){return Lp(["put-blacklist"],(function(e){return Sd.getInstance().putBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Em(){return Lp(["change-blacklist"],(function(e){return Sd.getInstance().changeBlackListStatus(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Cm(){return Lp(["change-blacklist-item"],(function(e){return Sd.getInstance().changeBlackListStatusItem(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Sm(){return Lp(["post-blacklist-items"],(function(e){var t=e.payload;return Sd.getInstance().postBlackListItems({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Rm(){return Lp(["delete-blacklist"],(function(e){var t=e.black_list_code;return Sd.getInstance().deleteBlackListType({black_list_code:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function xm(e){var t=e.handleSetProgress;return Lp(["post-blacklist-batch"],(function(e){var n=e.blacklist_code,o=e.expiration_days,a=e.file;return Sd.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 Tm(){return Lp(["change-payments-webhook"],(function(e){var t=e.status,n=e.paymentCode;return Sd.getInstance().postChangePaymentsWebhook({status:t,paymentCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Im(){return Lp(["delete-blacklist-items"],(function(e){var t=e.blocklist_code,n=e.blocklist_item_id,o=e.account_code;return Sd.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 Om(){return Lp(["valiate-blacklist-items"],(function(e){return Sd.getInstance().valiateBlockListItems({payload:e}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Am(){return Lp(["delete-allowlist-item"],(function(e){return Sd.getInstance().deleteAllowlistItem({payload:e}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function zm(){return Lp(["validate-allowlist-items"],(function(e){return Sd.getInstance().validateAllowlistItems({payload:e}).then((function(e){return e.data})).catch((function(e){return e}))}))}function Pm(e){var t=e.fileName,n=e.onSuccess,o=e.onError,a=u(0),r=a[0],i=a[1],s=c({cancel:function(){return null}}),l=Lp(["upload-file-chargeback",t],(function(e){var t=Sd.getInstance().uploadFileS3ClientBatchRefunds({payload:e,handleSetProgress:i}),a=t.promise,r=t.cancel;return s.current.cancel=r,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:l,cancelRequest:s.current.cancel,progress:r}}function Dm(){return Lp((function(e){return Sd.getInstance().uploadBatchRefundsV2({payload:e}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Lm(){var e=this;return Lp((function(o){return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().batchRefundByFile({payload:o}).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function Nm(){var e=this;return Lp((function(o){var a=o.batchRefundId,r=o.organizationCode,i=o.accountCode;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().getBatchRefundProcessedFileDownload(a,r,i).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function qm(){var e=this;return Lp((function(o){var a=o.batchRefundId,r=o.organizationCode,i=o.accountCode;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().getBatchRefundUserFileDownload(a,r,i).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function Mm(){var e=c({cancel:function(){return null}}),t=Lp(["upload-file"],(function(t){var n=Sd.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 Um(){return Lp((function(e){var t=e.payload,n=e.organizationCode;return Sd.getInstance().updateMFAConfig(t,n)}))}function Bm(){return Lp((function(e){var t=e.payload,n=e.organizationCode;return Sd.getInstance().mfaExcludeUsers(t,n)}))}function Fm(e){return Dp(["GET/scheduled-reports",e],(function(){return Sd.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 Wm(){return Lp((function(e){var t=e.payload;return Sd.getInstance().postScheduledReport(t).then((function(e){return{data:e.data,status:e.status}})).catch((function(e){return e}))}))}function Hm(){return Lp((function(e){var t=e.reportCode,n=e.payload;return Sd.getInstance().updateScheduledReport(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Vm(){return Lp((function(e){return Sd.getInstance().deleteScheduledReport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Gm(){return Lp((function(e){return Sd.getInstance().getConditionalConfigRules(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Km(){return Lp((function(e){return Sd.getInstance().getRule(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function $m(){return Lp((function(e){var t=e.payload,n=e.accountCode;return Sd.getInstance().postCreateRuleMultiAccount(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Qm(){return Lp((function(e){var t=e.payload,n=e.ruleId,o=e.accountCode;return Sd.getInstance().postEditRule(t,n,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Jm(){return Lp((function(e){var t=e.payload;return Sd.getInstance().postCreateCustomizedApiKeys(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Xm(){return Lp((function(e){var t=e.payload,n=e.code;return Sd.getInstance().pathCreateCustomizedApiKeys(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Ym(){return Lp((function(e){var t=e.code,n=e.password;return Sd.getInstance().getCustomizedApiKeysToken(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}))}function Zm(){return Lp((function(e){var t=e.passwordOtp;return Sd.getInstance().getDeveloperCredentialsValidatePassword(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}))}function ef(){return Lp((function(e){var t=e.password;return Sd.getInstance().getDeveloperCredentialsValidatePasswordRegularUser(t).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function tf(){return Lp((function(e){var t=e.code;return Sd.getInstance().deleteCustomizedApiKeys(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function nf(){return Lp((function(e){var t=e.payload,n=e.code;return Sd.getInstance().patchApiKeysEditNote(t,n).then((function(e){return e.data})).catch((function(e){return e}))}))}function of(){return Lp((function(e){var t=e.payload,n=e.code,o=e.password;return Sd.getInstance().postApiKeysRoll(t,n,o).then((function(e){return e.data})).catch((function(e){return e}))}))}function af(){return Lp((function(e){var t=e.password,n=e.accountCode;return Sd.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 rf(e){return Lp((function(e){var t=e.payload;return Sd.getInstance().postAuditMonitors(t)}),{onMutate:e.onMutate})}function sf(){return Lp((function(e){var t=e.codes;return Sd.getInstance().postResendWebhooks({codes:t}).then((function(e){return null==e?void 0:e.data}))}))}function uf(){return Lp((function(e){return Sd.getInstance().postExportApiLogs(e).then((function(e){return null==e?void 0:e.data}))}))}function cf(){return Lp((function(e){return Sd.getInstance().postExportWebhooksLogs(e).then((function(e){return null==e?void 0:e.data}))}))}function lf(o){var a=this;return Lp((function(){return Sd.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,kh.cancelQueries({queryKey:["GET/reconciliation/reports/templates"]})];case 1:return n.sent(),t=null===(a=kh.getQueryData(["GET/reconciliation/reports/templates"]))||void 0===a?void 0:a.templates,kh.setQueryData(["GET/reconciliation/reports/templates"],(function(t){return{templates:e(e([],t.templates,!0),[o],!1)}})),[2,{previousTemplates:t}]}}))}))},onError:function(e,t,n){kh.setQueryData(["GET/reconciliation/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){kh.invalidateQueries({queryKey:["GET/reconciliation/reports/templates"]})},useErrorBoundary:!1})}function df(e){return Lp((function(){return Sd.getInstance().updateReconciliationReportTemplate(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function pf(){return Lp(["POST/reconciliation/alerts"],(function(e){return Sd.getInstance().postReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){kh.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function hf(){return Lp(["DELETE/reconciliation/alerts"],(function(e){return Sd.getInstance().deleteReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){kh.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function mf(){return Lp(["UPDATE/reconciliation/alerts"],(function(e){return Sd.getInstance().updateReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){kh.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function ff(){return Lp((function(e){var t=e.payload;return Sd.getInstance().postCreateInsightsReport(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function gf(){return Lp((function(e){return Sd.getInstance().createSamlConfig(e)}))}function yf(){return Lp((function(e){return Sd.getInstance().updateSamlConfig(e)}))}function bf(){return Lp((function(){return Sd.getInstance().deleteSamlConfig()}))}function vf(e,t){return void 0===t&&(t={}),Lp((function(t){return Sd.getInstance().generateAIWorkflowRoutes(e,t).then((function(e){return null==e?void 0:e.data}))}),a(a({},t),{useErrorBoundary:!1}))}function kf(e){return void 0===e&&(e={}),Lp((function(e){return Sd.getInstance().postAIGenerationFeedback(e).then((function(e){return null==e?void 0:e.data}))}),a(a({},e),{useErrorBoundary:!1}))}function jf(){return Lp((function(e){return Sd.getInstance().createChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function wf(){return Lp((function(e){return Sd.getInstance().deleteChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function _f(){return Lp((function(e){var t=e.chart_id,n=e.type,o=e.name,a=e.user_prompt,r=void 0===a?"":a;return Sd.getInstance().patchChartGPTChart(t,{type:n,name:o,user_prompt:r}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Ef(){var e=this;return Lp((function(o){return t(e,void 0,void 0,(function(){var e,t,a,r,i;return n(this,(function(n){switch(n.label){case 0:return[4,Sd.getInstance().createChartGPTChart(o)];case 1:if(e=n.sent(),!(t=null!==(r=null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.chartgpt_id)&&void 0!==r?r:null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.chart_id))throw new Error("Failed to create chart: No chart ID returned");return[2,{chart_id:t}]}}))}))}),{useErrorBoundary:!1})}function Cf(){return Lp((function(e){return Sd.getInstance().createChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Sf(){var e=this;return Lp((function(o){return t(e,void 0,void 0,(function(){var e,t,a,r,i;return n(this,(function(n){switch(n.label){case 0:return[4,Sd.getInstance().createChartGPTChart(o)];case 1:if(e=n.sent(),!(t=null!==(r=null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.chartgpt_id)&&void 0!==r?r:null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.chart_id))throw new Error("Failed to create chart: No chart ID returned");return[2,{chart_id:t}]}}))}))}),{useErrorBoundary:!1})}function Rf(){var e=this;return Lp(["POST/template-reporting/report-templates"],(function(o){return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().createTemplateReporting(o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){kh.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function xf(){var e=this;return Lp(["POST/template-reporting/report-templates/clone"],(function(o){var a=o.templateId,r=o.payload;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().cloneReportTemplate(a,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){kh.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function Tf(){var e=this;return Lp(["PATCH/template-reporting/report-templates/selection"],(function(o){var a=o.templateId,r=o.payload;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().updateTemplateSelection(a,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){kh.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function If(){var e=this;return Lp(["PATCH/template-reporting/report-templates/status"],(function(o){var a=o.templateId,r=o.payload;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().changeTemplateStatus(a,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){kh.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function Of(){var e=this;return Lp(["DELETE/template-reporting/report-templates"],(function(o){var a=o.templateId,r=o.payload;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().deleteReportTemplate(a,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){kh.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function Af(){var e=this;return Lp(["POST/template-reporting/report-schedules"],(function(o){return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().createReportSchedule(o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){kh.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})}function zf(){var e=this;return Lp(["PATCH/template-reporting/report-schedules/disable"],(function(o){var a=o.scheduleId,r=o.payload;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().disableReportSchedule(a,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){kh.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})}function Pf(){var e=this;return Lp(["DELETE/template-reporting/report-schedules"],(function(o){var a=o.scheduleId,r=o.payload;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().deleteReportSchedule(a,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onSuccess:function(){kh.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})}function Df(){return Lp((function(e){return Sd.getInstance().postOrganizationConfigs(e)}))}function Lf(){return Lp((function(e){return Sd.getInstance().putOrganizationConfigsByAccount(e)}))}var Nf,qf=function(){var e,t;return null===(t=null===(e=function(e){var t=localStorage.getItem(e),n=u(t&&JSON.parse(t)),o=n[0],a=n[1];return l((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 Mf(e){var o=this;return Dp(["fetch-payments-lazy",e],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().postPaymentsLazy(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function Uf(e){return Dp(["fetch-payments-evaluated",e],(function(){return Sd.getInstance().postPaymentsEvaluated(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function Bf(e){var o=this,a=e.paymentCode,r=e.enabled,i=void 0===r||r,s=Sd.getInstance();return Dp(["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}))]}))}))}),{enabled:i,cacheTime:500,useErrorBoundary:!1})}function Ff(e){var o=this,a=e.payment_code,r=e.enabled,i=void 0===r||r,s=Sd.getInstance();return Dp(["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}))]}))}))}),{enabled:!!a&&i,cacheTime:0,useErrorBoundary:!1})}function Wf(e){var o=this,a=e.transaction_code,r=e.enabled,i=void 0===r||r,s=Sd.getInstance();return Dp(["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&&i,cacheTime:0,useErrorBoundary:!1})}function Hf(e){var t=qf();return Dp(["payment-methods",e],(function(){return Sd.getInstance().getPaymentMethodsByCountry({provider_id:null==e?void 0:e.provider_id,country:null==e?void 0:e.country},t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e&&!!(null==e?void 0:e.provider_id),useErrorBoundary:!1})}function Vf(){return Dp({queryKey:["/payment-methods/providers"],queryFn:function(){return Sd.getInstance().getPaymentMethodsAndProviders().then((function(e){return null==e?void 0:e.data}))},cacheTime:864e5,useErrorBoundary:!1})}function Gf(){return Dp(["GET/catalog/card-brands"],(function(){return Sd.getInstance().getCardBrands().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Kf(e,t){return void 0===e&&(e=!0),void 0===t&&(t=Sc.PAYMENTS),Dp(["payment-filters",e,t],(function(){return Sd.getInstance().getPaymentFilters(t).then((function(e){return null==e?void 0:e.data}))}),{enabled:e,useErrorBoundary:!1,cacheTime:3e5})}function $f(){return Dp(["payment-metrics-filters"],(function(){return Sd.getInstance().getPaymentMetricsFilters().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Qf(e){var t=e.transaction_code,n=e.enabled;return Dp(["payment-transaction-details",t],(function(){return Sd.getInstance().getPaymentTransactionsDetails({transaction_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function Jf(e){var t=e.payment_code,n=e.enabled;return Dp(["transaction-history",t],(function(){return Sd.getInstance().getTransactionHistoryByPaymentCode({payment_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function Xf(e){var o=this;return Dp(["POST/transactions",JSON.stringify(e)],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().postTransactions(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e,cacheTime:0,useErrorBoundary:!1})}function Yf(e){var o=this;return Dp(["POST/fraud-transactions",JSON.stringify(e)],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().postFraudTransactions(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function Zf(e){return Dp(["GET/payout-detail",JSON.stringify(e)],(function(){var t=Sd.getInstance();return e.organization_code?t.getPayoutDetails(e).then((function(e){return null==e?void 0:e.data})):{}}),{enabled:!!e.organization_code&&!!e&&e.enabled,cacheTime:0,useErrorBoundary:!1})}function eg(e){return Dp(["GET/payout-transaction-detail",JSON.stringify(e)],(function(){return Sd.getInstance().getPayoutTransactionDetails(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e&&!!(null==e?void 0:e.transaction_code)&&(null==e?void 0:e.enabled),cacheTime:0,useErrorBoundary:!1})}function tg(e){var t=qf();return Dp(["GET/payout-history-detail",JSON.stringify(e)],(function(){return Sd.getInstance().getPayoutHistoryDetails(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.payout_code)&&e.enabled,cacheTime:0,useErrorBoundary:!1})}function ng(e,o){var a=this,r=qf();return Dp(["GET/useGetProofOfCancel",r,e,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().getProofOfCancel(e,r,o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e&&!!r&&!!o,cacheTime:0,useErrorBoundary:!1})}function og(e,o){var a=this,r=qf();return Dp(["GET/useGetProofOfPayment",r,e,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().getProofOfPayment(e,r,o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e&&!!r&&!!o,cacheTime:0,useErrorBoundary:!1})}function ag(e,o,a){var r=this,i=Sd.getInstance();return Dp(["send-payment-notification",e,o],(function(){return t(r,void 0,void 0,(function(){var t,r;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,i.sendPaymentNotification(e,o)];case 1:return t=n.sent(),a.onSuccess(),[2,t.data];case 2:throw r=n.sent(),a.onError(),r;case 3:return[2]}}))}))}),{enabled:a.enabled,cacheTime:0,useErrorBoundary:!1})}function rg(e){return Dp(["usePayoutsList",e&&JSON.stringify(e)],(function(){var t=Sd.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 ig(e){var o=this;void 0===e&&(e=!0);var a=qf();return Dp(["getPayoutsFilters",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().getPayoutsFilters(a).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{enabled:e&&!!a})}function sg(e){var t=e.password,n=e.accountCode;return Dp(["developers"],(function(){return Sd.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 ug(){return Dp(["fetch-customized-api-keys-members"],(function(){return Sd.getInstance().getCustomizedApiKeysMembers().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function cg(){return Dp(["developers-get-allowed-ips"],(function(){return Sd.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 lg(){return Dp(["fetch-customized-api-keys-accounts"],(function(){return Sd.getInstance().getCustomizedApiKeysAccounts().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function dg(e){return Dp(["fetch-customized-api-keys",e],(function(){return Sd.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 pg(){return Dp(["fetch-customized-api-keys-products"],(function(){return Sd.getInstance().getCustomizedApiKeysProducts().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{cacheTime:0})}function hg(){return Lp(["developers-patch-allowed-ips"],(function(e){return Sd.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 mg(){return Dp(["fetch-organizations"],(function(){return Sd.getInstance().getOrganization().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function fg(){return Dp(["fetch-all-organizations",qf()],(function(){return Sd.getInstance().getAllOrganization().then((function(e){return(null==e?void 0:e.data)||[]}))}),{cacheTime:36e5,keepPreviousData:!0,useErrorBoundary:!1})}function gg(e){var t=qf();return Dp(["organizations-provider-params",e],(function(e){var n=e.queryKey;return Sd.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 yg(e){var t=e.integration_code,n=e.enabled,o=e.accountCode;return Dp(["integration-params",t,o],(function(){return t.includes("undefined")?{}:Sd.getInstance().getIntegrationParams({accountCode:o,integration_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,useErrorBoundary:!1})}function bg(e){var t=e.accountCode,n=e.organizationCode,o=qf();return Dp(["organizations-account-integrations",t,n],(function(){return Sd.getInstance().getIntegrationByAccountV2({accountCode:t,organizationCode:n||o}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,enabled:!!t,useErrorBoundary:!1})}function vg(e){var t=e.accountCode,n=e.paymentMethod;return Dp(["fetch-connections-by-payment-method",n,t],(function(){return Sd.getInstance().getConnectionsByPaymentMethod(t,n).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!n&&!!t,cacheTime:0,useErrorBoundary:!1})}function kg(){var e=this;return Dp(["fetch-hash-pylon"],(function(){return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Sd.getInstance().getHashPylon()]}))}))}),{keepPreviousData:!0,useErrorBoundary:!1})}function jg(){return Dp(["connections"],(function(){return Sd.getInstance().getConnections().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function wg(){return Dp(["dialogs"],(function(){return Sd.getInstance().getDialogs().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,retryDelay:2e3,cacheTime:36e5})}function _g(){return Dp(["params-catalog"],(function(){return Sd.getInstance().getWebhookParamsV2().then((function(e){return null==e?void 0:e.data}))}))}function Eg(e){var t=e.accountCode,n=e.name;return Dp(["webhooks",t,n],(function(){return Sd.getInstance().getWebhooksV3({accountCode:t,name:n}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,useErrorBoundary:!1})}function Cg(e){var t=e.accountCode,n=e.enabled;return Dp(["webhooks-detail",t],(function(){return Sd.getInstance().getWebhooksV2Detail({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!n})}function Sg(e){var t,n=qf(),o=null!==(t=null!=e?e:n)&&void 0!==t?t:null;return Dp({queryKey:["accounts",o],queryFn:function(){return Sd.getInstance().getAccounts(o).then((function(e){return null==e?void 0:e.data}))},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!o})}function Rg(e){return Dp(["accountsV2",e],(function(){return Sd.getInstance().getAccountsV2().then((function(e){return(null==e?void 0:e.data)||[]})).catch((function(e){throw e}))}),{keepPreviousData:!0,enabled:!!e,useErrorBoundary:!1})}function xg(e){return Dp(["accountsV2-by-user",e],(function(){return e?Sd.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 Tg(e,o){var a=this;return Dp({queryKey:["accounts-for-impersonation",e,o],queryFn:function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().getAccountsForImpersonation(e).then((function(e){var t,n;return(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.response)||void 0===n?void 0:n.map((function(e){return{label:e.name,value:o?e.code_testing:e.code_live,code_live:e.code_live,code_testing:e.code_testing}})))||[]}))]}))}))},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function Ig(e){return Dp({queryKey:["pending-duplicate-accounts",e],queryFn:function(){return Sd.getInstance().getPendingDuplicateAccounts()},useErrorBoundary:!1,keepPreviousData:!0,refetchInterval:e})}function Og(){return Dp(["menu"],(function(){return Sd.getInstance().getMenu().then((function(e){return ud(e)?fd:null==e?void 0:e.data})).catch((function(){return fd}))}))}function Ag(){return Dp(["/payment/statuses/style"],(function(){return Sd.getInstance().useGetPaymentStatusesStyles().then((function(e){return ud(e)?cd:null==e?void 0:e.data})).catch((function(){return cd}))}))}function zg(){return Dp(["/transaction/statuses/style"],(function(){return Sd.getInstance().useGetTransactionStatusesStyles().then((function(e){return ud(e)?ld:null==e?void 0:e.data})).catch((function(){return ld}))}),{cacheTime:36e5,useErrorBoundary:!1})}function Pg(){return Dp(["/reconciliation/transaction/statuses/style"],(function(){return Sd.getInstance().useGetReconciliationTransactionStatusesStyles().then((function(e){return ud(e)?dd:null==e?void 0:e.data})).catch((function(){return dd}))}))}function Dg(){return Dp(["timezone-catalog"],(function(){return Sd.getInstance().useGetTimeZoneCatalog().then((function(e){return ud(e)?pd:null==e?void 0:e.data})).catch((function(){return pd}))}))}function Lg(){return Dp(["/cms/audit-logs-filters"],(function(){return Sd.getInstance().useGetAuditLogsFilters().then((function(e){return ud(e)?hd:null==e?void 0:e.data})).catch((function(){return hd}))}))}function Ng(){return Dp(["/cms/static-contents"],(function(){return Sd.getInstance().getDashboardStaticContents().then((function(e){var t,n;return ud(e)?md:(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t[0])||void 0===n?void 0:n.data)||{}}))}),{cacheTime:6048e5,useErrorBoundary:!1})}function qg(){return Dp(["/cms/locales"],(function(){return Sd.getInstance().getLocales().then((function(e){return ud(e)?gd:e.data})).catch((function(){return gd}))}))}!function(e){e.IN_PROGRESS="IN_PROGRESS",e.COMPLETED="COMPLETED",e.FAILED="FAILED"}(Nf||(Nf={}));var Mg=function(){var e=u("ON"===localStorage.getItem("isTesting")),t=e[0],n=e[1];return l((function(){window.addEventListener("storage",(function(e){"isTesting"===e.key&&n("ON"===e.newValue)}))}),[]),{isTesting:t}};function Ug(e){return Dp(["smart-routing-methods",e],(function(){return Sd.getInstance().getSmartRoutingMethods(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function Bg(e,t){return Dp(["smart-routing-workflow",t,e],(function(){return Sd.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 Fg(e,t){return Dp(["smart-routing-condition-types",e,t],(function(){return Sd.getInstance().getSmartRoutingConditionTypes(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!e})}function Wg(e,t){return Dp(["smart-routing-condition-payment-method",e,t],(function(){return Sd.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 Hg(e,t){return Dp(["smart-routing-condition-types-values",t,e],(function(){return Sd.getInstance().getSmartRoutingConditionTypesValues(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&!!e,useErrorBoundary:!1})}function Vg(e){var t=e.accountCode,n=e.workflowVersionId;return Dp(["smart-routing-workflow-version",n,t],(function(){return Sd.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 Gg(e,t,n){return Dp(["smart-routing-next-route",e,n,t],(function(){return Sd.getInstance().getSmartRoutingNextSteps(e,t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function Kg(e){return Dp(["smart-routing-decline-groups",e],(function(){return Sd.getInstance().getSmartRoutingDeclinedGroup(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function $g(e,t){return Dp(["smart-routing-payment-route",e,t],(function(){return Sd.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 Qg(e){return Dp(["smart-routing-simulate-condition-type-values",e],(function(){return Sd.getInstance().getSmartRoutingSimulateConditionTypeValues(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function Jg(e){var t=e.text,n=e.conditionType;return Dp(["smart-routing-search-condition-values",t,n],(function(){return Sd.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 Xg(){return Dp(["smart-routing-conversion-rates"],(function(){return Sd.getInstance().getProviderConversionRatesData().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!1,useErrorBoundary:!1})}function Yg(){var e=this;return Dp({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,Sd.getInstance().get3DSExemptions()];case 1:return[2,e.sent().data]}}))}))},useErrorBoundary:!1})}function Zg(){var e=this;return Dp({queryKey:["smart-routing-network-tokens-onboarding"],queryFn:function(){return t(e,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,Sd.getInstance().getNetworkTokensOnboarding()];case 1:return[2,e.sent().data]}}))}))},useErrorBoundary:!1})}function ey(e){return Dp(["fetch-routing-monitors-templates",e],(function(){return Sd.getInstance().getRoutingMonitorsTemplates(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function ty(e,t){return Dp(["fetch-routing-monitors-template",e],(function(){return Sd.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 ny(e){var t=e.accountCode;return Dp(["checkouts",t],(function(){return Sd.getInstance().getCheckouts({accountCode:t}).then((function(e){return e.data}))}),{cacheTime:0,enabled:Boolean(t)})}function oy(e){var t=e.accountCode;return Dp(["checkouts-template"],(function(){return Sd.getInstance().getCheckoutTemplate({accountCode:t}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,enabled:Boolean(t)})}var ay=function(e){return["checkout-builder-name-and-icon",e.paymentMethodType,e.type]},ry=function(e,t){var n=e.paymentMethodType,o=e.type;return Dp(ay({paymentMethodType:n,type:o}),(function(){return Sd.getInstance().getNameAndIcon({paymentMethodType:n,type:o}).then((function(e){return null==e?void 0:e.data}))}),t)},iy=function(e){return["checkout-builder-required-fields",e.paymentMethodType,e.type]},sy=function(e,t){var n=e.paymentMethodType,o=e.type;return Dp(iy({paymentMethodType:n,type:o}),(function(){return Sd.getInstance().getRequiredFields({paymentMethodType:n,type:o}).then((function(e){return null==e?void 0:e.data}))}),t)};function uy(e){var t=e.accountCode;return Dp(["styling-sdk-dynamic",t],(function(){return Sd.getInstance().getStylingSdkDynamic({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function cy(e){var t=e.accountCode;return Dp(["styling-theme",t],(function(){return Sd.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 ly(e){var t=e.accountCode;return Dp(["styling-settings",t],(function(){return Sd.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 dy(e){var t=e.accountCode,n=e.environment,o=void 0===n?"live":n;return Dp(["styling-settings-v2",t],(function(){return Sd.getInstance().getStylingSettingsV2({accountCode:t,environment:o}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function py(){return Lp((function(e){var t=e.accountCode,n=e.environment,o=void 0===n?"live":n,a=e.payload;return Sd.getInstance().changeStylingSettings({accountCode:t,environment:o,payload:a}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function hy(){return Dp(["fetch-profile"],(function(){return Sd.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 my(){var e=this;return Dp(["get-user-full"],(function(){return t(e,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,Sd.getInstance().getUserFull()];case 1:return[2,e.sent().data]}}))}))}),{keepPreviousData:!0,useErrorBoundary:!1})}function fy(e,t){return Dp(["fetch-permissions",e,t],(function(){var e,t,n,o=localStorage.getItem("account"),a=localStorage.getItem("user"),r=o&&JSON.parse(o),i=a&&JSON.parse(a);return((null==i?void 0:i.merlin)?null===(e=null==i?void 0:i.merlin)||void 0===e?void 0:e.permissions:null===(n=null===(t=null==r?void 0:r.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 gy(e){return Dp(["email-verification",e],(function(){return Sd.getInstance().emailVerification(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function yy(){return Dp({queryKey:["get-login-methods"],queryFn:function(){return Sd.getInstance().getLoginMethods().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}})}function by(){return Dp(["fetch-impersonation-users"],(function(){return Sd.getInstance().getImpersonationUsers().then((function(e){var t;return(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.result)||[]}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function vy(){return Dp(["fetch-impersonation-enabled"],(function(){return Sd.getInstance().getImpersonationEnabled().then((function(e){return null==e?void 0:e.data}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function ky(e,o,a,r,i){var s=this;return void 0===a&&(a=1),void 0===r&&(r=10),Dp(["get-users-to-impersonate",e,o,a,r,i],(function(){return t(s,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().getUsersToImpersonate(e,o,a,r,i).then((function(e){return null==e?void 0:e.data}))]}))}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function jy(e){var t;return Dp(["fetch-communications",e],(function(){return Sd.getInstance().getCommunications(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null===(t=e.account_codes)||void 0===t?void 0:t.length),useErrorBoundary:!1,cacheTime:3e3})}function wy(){return Dp(["fetch-communications-filters"],(function(){return Sd.getInstance().getCommunicationsFilters().then((function(e){return null==e?void 0:e.data}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function _y(e,t){return Dp(["fetch-communication-details",e],(function(){return Sd.getInstance().getCommunicationDetails(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e,useErrorBoundary:!1,cacheTime:0})}function Ey(e){return Dp(["notifications-customer",e],(function(){return Sd.getInstance().getNotificationsCustomer(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,keepPreviousData:!1})}function Cy(e){return Dp(["validate-opsgenie-key",e],(function(){return Sd.getInstance().getValidateOpsgenieKey(e).then((function(e){return null==e?void 0:e.data})).catch((function(){return{error:!0}}))}),{enabled:!!e,cacheTime:0})}function Sy(){return Dp(["notifications-merged"],(function(){return Sd.getInstance().getMergedNotifications().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{keepPreviousData:!1,cacheTime:0})}function Ry(){return Lp((function(e){return Sd.getInstance().getNotificationsNumber(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function xy(){var e=this;return Lp((function(o){return t(e,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().pathNotification(o)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}}))}))}))}var Ty={key:"metadata_fields",name:"metadata_fields",unique_key:"metadata_fields"};function Iy(){return Dp(["reports"],(function(){return Sd.getInstance().reportsList().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Oy(e){return void 0===e&&(e=!0),Dp(["reports-multi-env"],(function(){return Sd.getInstance().reportsListMultiEnv().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e})}function Ay(e,t,n){return void 0===t&&(t=!1),Dp(["reports/".concat(e)],(function(){return Sd.getInstance().downloadReports(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:t,onSuccess:n,useErrorBoundary:!1})}function zy(e){return Dp(["GET/reports/templates"],(function(){return Sd.getInstance().getReportTemplates().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e,useErrorBoundary:!1})}function Py(o,a,r){var i=this;return Dp(["GET/reports/columns/".concat(a,"/").concat(r)],(function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().getReportColumns(a,r).then((function(t){return a===Oc.ALL&&r===Ic.PAYMENTS?e(e([],null==t?void 0:t.data,!0),[Ty],!1):null==t?void 0:t.data})).catch((function(e){return e}))]}))}))}),{enabled:o,useErrorBoundary:!1})}function Dy(e,o){var a=this,r=qf();return Dp(["getRefundPdf",e,r,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().getRefundPdf(e,r,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))]}))}))}),{enabled:!!e&&!!r,useErrorBoundary:!1})}function Ly(){var e=qf();return Dp(["teams-filters-members"],(function(){return Sd.getInstance().teamsFiltersMembers({organizationCode:e}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0})}function Ny(e){var t=e.organizationCode,n=e.accountCodes,o=e.search,a=e.status,r=e.roleId,i=e.statuses,s=e.roleIds,u=e.page,c=e.pageSize,l=qf();return Dp(["fetch-post-members-v2",t,n,o,a,r,i,s,u,c],(function(){return Sd.getInstance().postMembersPaginatedV2({organizationCode:l,accountCodes:n,search:o,status:a,roleId:r,statuses:i,roleIds:s,page:u,pageSize:c}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&!!n,cacheTime:0,useErrorBoundary:!1})}function qy(){return Dp(["fetch-roles"],(function(){return Sd.getInstance().getRoles().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function My(){return Dp(["fetch-rolespermissions"],(function(){return Sd.getInstance().getRolesPermissions().then((function(e){return null==e?void 0:e.data}))}))}function Uy(){return Dp(["fetch-permissions-catalog"],(function(){return Sd.getInstance().getPermissionsCatalog().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function By(e){return Dp(["data-report",e],(function(){return Sd.getInstance().getSmartRoutingDataReport(e).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,useErrorBoundary:!1})}function Fy(e,t,n,o){var a,r;void 0===n&&(n=!0);var i=null!==(a=null==o?void 0:o.staleTime)&&void 0!==a?a:3e5,s=null!==(r=null==o?void 0:o.cacheTime)&&void 0!==r?r:3e5;return Dp(["get-insights-conversion-rate-metrics-v2",e,t],(function(){return Sd.getInstance().getInsightsMetricsConversionRateV2(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:n&&(!!(null==e?void 0:e.currency_code)&&"Empty"!==(null==e?void 0:e.currency_code)&&"string"==typeof(null==e?void 0:e.currency_code)||Array.isArray(null==e?void 0:e.currency_code)&&0===(null==e?void 0:e.currency_code.length)),staleTime:i,cacheTime:s,useErrorBoundary:!1,retry:1})}function Wy(e,t){return Dp(["get-insights-conversion-rate-view-more-metrics",t,e],(function(){return Sd.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 Hy(e){return Dp(["get-insights-conversion-rate-fallback-metrics",e],(function(){return Sd.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 Vy(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Dp(["get-insights-volume-metrics",t,e],(function(){return Sd.getInstance().getInsightsMetricsVolume(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function Gy(e,t,n,o){return void 0===o&&(o=!0),delete t.account_code,Dp(["get-insights-volume-metrics-v2",t,e,n],(function(){return Sd.getInstance().getInsightsMetricsVolumeV2(e,n,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:o,cacheTime:200,useErrorBoundary:!1})}function Ky(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Dp(["get-insights-total-payment-fraud-metrics",t,e],(function(){return Sd.getInstance().getInsightsMetricsTotalPaymentsAndFraud(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function $y(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Dp(["get-insights-customer-payment-fraud-metrics",t,e],(function(){return Sd.getInstance().getInsightsMetricsCustomerPaymentsAndFraud(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function Qy(e){return Dp(["get-insights-overview",e],(function(){return Sd.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 Jy(e,t){var n=!!(null==e?void 0:e.enabled)&&void 0!==(null==e?void 0:e.account_code);return Dp(["get-insights-overview-v3",e,t],(function(){return Sd.getInstance().getInsightOverviewV3(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:0,useErrorBoundary:!1})}function Xy(e){return Dp(["get-insights-home-metrics",e],(function(){return Sd.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 Yy(e){return Dp(["get-insights-reports",e],(function(){return Sd.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 Zy(e){return Dp(["get-insights-reports-again",e],(function(){return Sd.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 eb(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-fraud-screening-volume-and-count-tx",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsightsFraudScreeningVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function tb(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-fraud-screening-conversion-rate",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsightsFraudScreeningConversionRate(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function nb(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-3ds-volume-and-count-tx",o,e],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsights3dsVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function ob(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-3ds-conversion-rate-and-evolution",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsights3dsConversionRateAndEvolution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function ab(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-3ds-decline-reasons",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsights3dsDeclineReasons(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function rb(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-3ds-frictionless-vs-challenge",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsights3dsFrictionlessVsChallenge(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function ib(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-chargebacks-volume-and-count-tx",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsightsChargebacksVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function sb(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-chargebacks-total-rate-and-evolution",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsightsChargebacksTotalRateAndEvolution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function ub(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-chargebacks-win-rate",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsightsChargebacksWinRate(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function cb(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-chargebacks-disputed",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsightsChargebacksDisputed(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function lb(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-chargebacks-by-provider-and-card-brand",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsightsChargebacksByProviderAndCardBrand(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function db(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-chargebacks-reasons-distribution",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsightsChargebacksReasonsDistribution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function pb(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-chargebacks-status-distribution",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsightsChargebacksStatusDistribution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function hb(e,o,a){var r=this;return void 0===a&&(a={enabled:!0}),Dp({queryKey:["post-insights-chargebacks-by-card-brand",e,o],queryFn:function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getInsightsChargebacksByCardBrand(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function mb(e,t){return Dp(["fetch-reconciliation-transaction",e],(function(){return Sd.getInstance().getReconciliationTransactions(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t,useErrorBoundary:!1})}function fb(e,t){return Dp(["fetch-reconciliation-settlements",e],(function(){return Sd.getInstance().getReconciliationSettlements(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t,useErrorBoundary:!1})}function gb(e,t){return Dp(["fetch-reconciliation-metrics",e],(function(){return Sd.getInstance().getReconciliationMetrics(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t,cacheTime:500})}function yb(){return Dp(["GET-reconciliation-filters"],(function(){return Sd.getInstance().getReconciliationFilters().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function bb(e){return Dp(["GET/v1/reconciliation/table/".concat(e,"/columns")],(function(){return Sd.getInstance().getAllTableColumns(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function vb(){return Dp(["GET/v1/reconciliation/active"],(function(){return Sd.getInstance().getReconciliationActive().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function kb(e,t,n){return Dp(["GET/reconciliation/reports/columns/".concat(t,"/").concat(n)],(function(){return Sd.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 jb(e){return Dp(["GET/reconciliation/reports/templates"],(function(){return Sd.getInstance().getReconciliationReportTemplates().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{enabled:e,useErrorBoundary:!1})}function wb(e){var t=e.body,n=e.params,o=e.enabled;return Dp(["GET/reconciliation/alerts/list",t,n],(function(){return Sd.getInstance().getReconciliationAlerts(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function _b(e){var t=e.body,n=e.params,o=e.enabled;return Dp(["GET/reconciliation/agenda/list",t,n],(function(){return Sd.getInstance().getReconciliationAgenda(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Eb(e){var t=e.body,n=e.params,o=e.enabled;return Dp(["GET/reconciliation/agenda/insights",t,n],(function(){return Sd.getInstance().getReconciliationAgendaInsightByKey(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Cb(e){var t=e.body,n=e.params,o=e.enabled;return Dp(["GET/reconciliation/sales/list",t,n],(function(){return Sd.getInstance().getReconciliationSales(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Sb(e){var t=e.body,n=e.params,o=e.enabled;return Dp(["GET/reconciliation/advancements/list",t,n],(function(){return Sd.getInstance().getReconciliationAdvancements(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Rb(e){var t=e.body,n=e.params,o=e.enabled;return Dp(["GET/reconciliation/fees/list",t,n],(function(){return Sd.getInstance().getReconciliationFees(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function xb(e){var o=this,a=Object.values(e).filter(Boolean);return Dp(["feature-flags",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().getFeatureFlagId(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:a.length>1,useErrorBoundary:!1})}function Tb(e){var o=this,a=Dp({queryKey:["all-feature-flags",Object.values(e).filter(Boolean)],queryFn:function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().getFeatureFlagIdAll({accountCode:e.account_code}).then((function(e){return null==e?void 0:e.data}))]}))}))},enabled:!!e.account_code&&!!e.organization_code&&!!e.email,cacheTime:9e5,useErrorBoundary:!1}),r=Tp();return l((function(){r.setQueryData(["cached-feature-flags"],a)}),[a,r]),a}function Ib(e){var t,n,o=Tp(),r=o.getQueryState(["cached-feature-flags"]),i=Boolean(!(null===(t=null==r?void 0:r.data)||void 0===t?void 0:t.status)||"loading"===(null===(n=null==r?void 0:r.data)||void 0===n?void 0:n.status)),s=Dp({queryKey:["cached-feature-flags"],queryFn:function(){},enabled:!1,select:function(t){var n;return{result:null===(n=null==t?void 0:t.data)||void 0===n?void 0:n[e]}},initialData:function(){var e=o.getQueryData(["cached-feature-flags"]);return(null==e?void 0:e.data)||{}}});return a(a({},s),{isLoading:i})}function Ob(e){return Dp(["events",e],(function(){return Sd.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 Ab(e){return Dp(["audit-monitor-event-detail",e],(function(){return Sd.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 zb(e){return Dp(["api-logs",e],(function(){return Sd.getInstance().postApiLogs({payload:e}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e.organizationCode,cacheTime:0,useErrorBoundary:!1})}function Pb(e){var t=e.params;return Dp(["webhook-logs",t],(function(){return Sd.getInstance().postWebhookLogs({payload:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t.organizationCode,cacheTime:0,useErrorBoundary:!1})}function Db(e){return Dp(["api-logs-detail",e],(function(){return Sd.getInstance().getApiLogsDetailByPaymentCode(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e,cacheTime:0,useErrorBoundary:!1})}function Lb(e,t){return Dp(["fetch-payment-links",e,t],(function(){return Sd.getInstance().getPaymentLinks(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,cacheTime:0})}function Nb(e){return Dp(["payment-link"],(function(){return Sd.getInstance().getPaymentLinksByCode(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function qb(e){return void 0===e&&(e=!0),Dp(["countries",e],(function(){return Sd.getInstance().useGetCountriesConfig().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e,keepPreviousData:!0})}function Mb(e){var t=localStorage.getItem("lang")||"en",n=e||t;return Dp(["countries-v2",n],(function(){return Sd.getInstance().useGetCountriesConfigV2(n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!0,keepPreviousData:!0})}function Ub(e){return Dp(["timezone"],(function(){return Sd.getInstance().getTimezone(e).then((function(e){return ud(e)?pd:null==e?void 0:e.data})).catch((function(){return pd}))}),{enabled:!0,keepPreviousData:!0})}function Bb(e){return Dp(["installments-plans",e],(function(){return Sd.getInstance().getInstallmentPlans(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(e),useErrorBoundary:!1})}function Fb(e,t){return void 0===t&&(t=!0),Dp(["subscription",e],(function(){return Sd.getInstance().getSubscriptionByCode(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&t,cacheTime:500})}function Wb(e,t,n,o){return void 0===o&&(o=!0),Dp(["subscription-payments",e,t,n],(function(){return Sd.getInstance().getSubscriptionPayments(e,t,n).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e&&o,cacheTime:0})}function Hb(e){return Lp((function(e){var t=e.payload;return Sd.getInstance().firebaseUserSubscribe(t)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Vb(e,t){return Dp(["get-cofig-allow-list",e],(function(){return Sd.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 Gb(e){return Dp(["get-black-list",e],(function(){return Sd.getInstance().getBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!e})}function Kb(e,t,n,o){var a;return Dp(["post-black-list",e],(function(){return Sd.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 $b(e,t,n){return Dp(["get-block-list-summary",e,t,n],(function(){var o=Sd.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 Qb(e,t,n,o,a,r){return Dp(["black-list-detail",e,t,o,a,r],(function(){return Sd.getInstance().getBlacklistDetail(e,t,n,o,a).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&r,cacheTime:0})}function Jb(e,t,n){return Dp(["allow-list-detail",e],(function(){return Sd.getInstance().getAllowlistDetail(e,t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{enabled:!!e&&!!n})}function Xb(e){return Dp(["query-post-get-allowlist-multi-account",JSON.stringify(e)],(function(){return Sd.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 Yb(e,o){var a=this;return void 0===e&&(e=26),void 0===o&&(o=0),Dp(["batch-refunds",e,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().getBatchRefunds(e,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{cacheTime:0})}function Zb(e){return Dp(["velocity-rules",e],(function(){var t=Sd.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 ev(){return Dp(["config-rules"],(function(){return Sd.getInstance().getAllConfigRules().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0})}function tv(e,t){var n=e.organizationCode;return Dp(["mfa-excluded-users",n],(function(){return Sd.getInstance().getMFAExcludedUsers({organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function nv(e,t){var n=e.organizationCode;return Dp(["mfa-config",n],(function(){return Sd.getInstance().getMFAConfig({organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function ov(e,t){return Dp(["mfa-enforcement-status",e.accountCode],(function(){return Sd.getInstance().getMFAEnforcementStatus().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function av(e){return Dp(["fetch-organization-saml-config",e],(function(){return Sd.getInstance().getSamlConfig().then((function(e){return e.data}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function rv(e){return Dp(["chartgpt-chart-execute",e],(function(){return Sd.getInstance().executeChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e})}function iv(){return Dp(["chartgpt-user-charts"],(function(){return Sd.getInstance().getChartsByUser().then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0})}function sv(){var e=this;return Dp(["chartgpt-user-charts-with-results"],(function(){return t(e,void 0,void 0,(function(){var e,o,r,i=this;return n(this,(function(s){switch(s.label){case 0:return[4,(e=Sd.getInstance()).getChartsByUser()];case 1:return o=s.sent(),r=(null==o?void 0:o.data)||[],[4,Promise.all(r.map((function(o){return t(i,void 0,void 0,(function(){var t,r,i,s,u,c,l,d;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e.executeChartGPTChart(o.code)];case 1:return t=n.sent(),[2,a(a({},o),{user_prompt:null!==(s=null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.user_prompt)&&void 0!==s?s:o.user_prompt,unit_to_display:null!==(c=null===(u=null==t?void 0:t.data)||void 0===u?void 0:u.unit_to_display)&&void 0!==c?c:o.unit_to_display,results:null!==(d=null===(l=null==t?void 0:t.data)||void 0===l?void 0:l.results)&&void 0!==d?d:[]})];case 2:return r=n.sent(),console.error("Failed to execute chart ".concat(o.chart_id,":"),r),[2,a(a({},o),{results:[]})];case 3:return[2]}}))}))})))];case 2:return[2,s.sent()]}}))}))}))}function uv(e,o,a){var r=this;return void 0===a&&(a=!0),Dp(["chartgpt-patch-and-execute",e,o],(function(){return t(r,void 0,void 0,(function(){var t,a,r,i,s;return n(this,(function(n){switch(n.label){case 0:return[4,(t=Sd.getInstance()).patchChartGPTChart(e,o)];case 1:return a=n.sent(),r=null==a?void 0:a.data,[4,t.executeChartGPTChart(e)];case 2:return i=n.sent(),s=null==i?void 0:i.data,[2,{chart:r,execution:s}]}}))}))}),{enabled:a&&!!e,retry:!1})}function cv(){return Dp(["languages"],(function(){return Sd.getInstance().getLanguages().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,cacheTime:300})}function lv(){var e=localStorage.getItem("lang")||"en";return Dp(["translations",e],(function(){return Sd.getInstance().getTranslations(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,cacheTime:3e4})}function dv(e){var o=this;return Dp({queryKey:["network-tokens-onboarding",e],queryFn:function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Sd.getInstance().getNetworkTokensOnboardingByOrganization(e)];case 1:return[2,t.sent().data]}}))}))},enabled:!!e,useErrorBoundary:!1,cacheTime:0})}var pv=function(e){if(!e)return"";var t=new Date(e);return"".concat(["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][t.getUTCMonth()]," ").concat(t.getUTCDate())},hv=function(e,t,n){if(!t||!n)return e||[];var o=function(e,t){var n=[],o=new Date(e),a=new Date(t);o.setUTCHours(0,0,0,0),a.setUTCHours(0,0,0,0);for(var r=new Date(o);r<=a;)n.push(r.toISOString()),r.setUTCDate(r.getUTCDate()+1);return n}(t,n),a=new Map;return null==e||e.forEach((function(e){if(e.date){var t=new Date(e.date).toISOString().split("T")[0];a.set(t,e.value)}})),o.map((function(e){var t=e.split("T")[0];return{date:e,value:a.get(t)||"0"}}))},mv=function(e){var t,n=null===(t=e.plots)||void 0===t?void 0:t[0];if(!n||!n.rows)return{distribution:[],total:0};var o=parseFloat(n.value||"0");return{distribution:n.rows.map((function(e){var t,n=100*parseFloat(e.value),a=Math.round(o*parseFloat(e.value));return{key:(null===(t=e.label)||void 0===t?void 0:t.toUpperCase())||"UNKNOWN",total:a,percentage:n,amount:a}})),total:o}},fv=function(e,t,n){var o,a={};return null===(o=e.plots)||void 0===o||o.forEach((function(e){var o=hv(e.rows,t,n),r=e.label;a[r]=o.map((function(e){return{key:e.date||"",total:100*parseFloat(e.value),current_label:pv(e.date||""),current_amount:100*parseFloat(e.value)}}))})),a},gv=function(e,t,n){var o,a=null===(o=e.plots)||void 0===o?void 0:o[0];return{distribution:hv(null==a?void 0:a.rows,t,n).map((function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:pv(e.date||""),current_amount:parseFloat(e.value)}})),total:parseFloat((null==a?void 0:a.value)||"0"),total_amount:parseFloat((null==a?void 0:a.value)||"0")}},yv=function(e,t,n){var o,a=null===(o=e.plots)||void 0===o?void 0:o[0];return{distribution:hv(null==a?void 0:a.rows,t,n).map((function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:pv(e.date||""),current_amount:parseFloat(e.value)}})),total:parseFloat((null==a?void 0:a.value)||"0"),total_amount:parseFloat((null==a?void 0:a.value)||"0")}},bv=function(e,o){return Dp(a({queryKey:["smart-recovery-communications-by-day",e],queryFn:function(){return t(void 0,void 0,void 0,(function(){var t,o,a;return n(this,(function(n){switch(n.label){case 0:return t=Sd.getInstance(),o={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/communications-by-day",o)];case 1:return a=n.sent(),[2,(r=a.data,i=o.start_date,s=o.end_date,u=r.plots||[],c=u.find((function(e){return"TOTAL_COMMUNICATIONS_LABEL"===e.label})),l=u.find((function(e){return"COMPLETED_COMMUNICATIONS_LABEL"===e.label})),d=u.find((function(e){return"CONVERSION_RATE_LABEL"===e.label})),p=hv(null==c?void 0:c.rows,i,s),h=hv(null==l?void 0:l.rows,i,s),m=hv(null==d?void 0:d.rows,i,s),{communications:{distribution:p.map((function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:pv(e.date||""),current_amount:parseFloat(e.value)}})),total:parseFloat((null==c?void 0:c.value)||"0")},conversion_rate:{distribution:m.map((function(e){return{key:e.date||"",total:parseFloat(e.value),percentage:parseFloat(e.value)}})),total:parseFloat((null==d?void 0:d.value)||"0")},completed_communications:{distribution:h.map((function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:pv(e.date||""),current_amount:parseFloat(e.value)}})),total:parseFloat((null==l?void 0:l.value)||"0")}})]}var r,i,s,u,c,l,d,p,h,m}))}))},enabled:!!e.organization_code,staleTime:3e5},o))},vv=function(e,o){return Dp(a({queryKey:["smart-recovery-communications-by-substatus",e],queryFn:function(){return t(void 0,void 0,void 0,(function(){var t,o,a;return n(this,(function(n){switch(n.label){case 0:return t=Sd.getInstance(),o={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/communications-by-substatus",o)];case 1:return a=n.sent(),[2,mv(a.data)]}}))}))},enabled:!!e.organization_code,staleTime:3e5},o))},kv=function(e,o){return Dp(a({queryKey:["smart-recovery-communications-substatus-by-day",e],queryFn:function(){return t(void 0,void 0,void 0,(function(){var t,o,a;return n(this,(function(n){switch(n.label){case 0:return t=Sd.getInstance(),o={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/communications-substatus-by-day",o)];case 1:return a=n.sent(),[2,fv(a.data,o.start_date,o.end_date)]}}))}))},enabled:!!e.organization_code,staleTime:3e5},o))},jv=function(e,o){return Dp(a({queryKey:["smart-recovery-recovered-tpv-by-day",e],queryFn:function(){return t(void 0,void 0,void 0,(function(){var t,o,a;return n(this,(function(n){switch(n.label){case 0:return t=Sd.getInstance(),o={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/recovered-tpv-by-day",o)];case 1:return a=n.sent(),[2,gv(a.data,o.start_date,o.end_date)]}}))}))},enabled:!!e.organization_code,staleTime:3e5},o))},wv=function(e,o){return Dp(a({queryKey:["smart-recovery-recovered-payments-by-day",e],queryFn:function(){return t(void 0,void 0,void 0,(function(){var t,o,a;return n(this,(function(n){switch(n.label){case 0:return t=Sd.getInstance(),o={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/recovered-payments-by-day",o)];case 1:return a=n.sent(),[2,yv(a.data,o.start_date,o.end_date)]}}))}))},enabled:!!e.organization_code,staleTime:3e5},o))};function _v(e,o){var a=this;return Dp(["POST/template-reporting/templates/search",e],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().searchReportTemplates(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:o,useErrorBoundary:!1,cacheTime:0})}function Ev(e,o,a){var r=this;return Dp(["POST/template-reporting/template-by-id/search",e,o],(function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().searchReportTemplateById(e,o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:a&&!!e,useErrorBoundary:!1,cacheTime:0})}function Cv(e,o){var a=this;return Dp(["POST/template-reporting/schedules/search",e],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().searchReportSchedules(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:o,useErrorBoundary:!1,cacheTime:0})}function Sv(e,o,a){var r=this;return Dp(["POST/template-reporting/schedule-by-id/search",e,o],(function(){return t(r,void 0,void 0,(function(){return n(this,(function(t){return[2,Sd.getInstance().searchReportScheduleById(e,o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:a&&!!e,useErrorBoundary:!1,cacheTime:0})}function Rv(){return Dp({queryKey:["organization-configs"],queryFn:function(){return Sd.getInstance().getOrganizationConfigs().then((function(e){return null==e?void 0:e.data}))},cacheTime:0,useErrorBoundary:!1})}function xv(){return xv=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},xv.apply(this,arguments)}
217
217
  /**
218
218
  * match-sorter-utils
219
219
  *
@@ -223,12 +223,12 @@ function Go(e){const t=Vo.parse(e),n={};for(const e in t)void 0!==t[e]&&(n[e]=t[
223
223
  * LICENSE.md file in the root directory of this source tree.
224
224
  *
225
225
  * @license MIT
226
- */const Sv={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Ấ":"A","Ắ":"A","Ẳ":"A","Ẵ":"A","Ặ":"A","Æ":"AE","Ầ":"A","Ằ":"A","Ȃ":"A","Ç":"C","Ḉ":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ế":"E","Ḗ":"E","Ề":"E","Ḕ":"E","Ḝ":"E","Ȇ":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ḯ":"I","Ȋ":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ố":"O","Ṍ":"O","Ṓ":"O","Ȏ":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","ấ":"a","ắ":"a","ẳ":"a","ẵ":"a","ặ":"a","æ":"ae","ầ":"a","ằ":"a","ȃ":"a","ç":"c","ḉ":"c","è":"e","é":"e","ê":"e","ë":"e","ế":"e","ḗ":"e","ề":"e","ḕ":"e","ḝ":"e","ȇ":"e","ì":"i","í":"i","î":"i","ï":"i","ḯ":"i","ȋ":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ố":"o","ṍ":"o","ṓ":"o","ȏ":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","C̆":"C","c̆":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","Ǵ":"G","ĝ":"g","ǵ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ḫ":"H","ḫ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","Ḱ":"K","ḱ":"k","K̆":"K","k̆":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"l","ł":"l","Ḿ":"M","ḿ":"m","M̆":"M","m̆":"m","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","N̆":"N","n̆":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","P̆":"P","p̆":"p","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","R̆":"R","r̆":"r","Ȓ":"R","ȓ":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","Ș":"S","ș":"s","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","ț":"t","Ț":"T","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","T̆":"T","t̆":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ȗ":"U","ȗ":"u","V̆":"V","v̆":"v","Ŵ":"W","ŵ":"w","Ẃ":"W","ẃ":"w","X̆":"X","x̆":"x","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Y̆":"Y","y̆":"y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","Ứ":"U","ứ":"u","Ṹ":"U","ṹ":"u","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o","Þ":"TH","þ":"th","Ṕ":"P","ṕ":"p","Ṥ":"S","ṥ":"s","X́":"X","x́":"x","Ѓ":"Г","ѓ":"г","Ќ":"К","ќ":"к","A̋":"A","a̋":"a","E̋":"E","e̋":"e","I̋":"I","i̋":"i","Ǹ":"N","ǹ":"n","Ồ":"O","ồ":"o","Ṑ":"O","ṑ":"o","Ừ":"U","ừ":"u","Ẁ":"W","ẁ":"w","Ỳ":"Y","ỳ":"y","Ȁ":"A","ȁ":"a","Ȅ":"E","ȅ":"e","Ȉ":"I","ȉ":"i","Ȍ":"O","ȍ":"o","Ȑ":"R","ȑ":"r","Ȕ":"U","ȕ":"u","B̌":"B","b̌":"b","Č̣":"C","č̣":"c","Ê̌":"E","ê̌":"e","F̌":"F","f̌":"f","Ǧ":"G","ǧ":"g","Ȟ":"H","ȟ":"h","J̌":"J","ǰ":"j","Ǩ":"K","ǩ":"k","M̌":"M","m̌":"m","P̌":"P","p̌":"p","Q̌":"Q","q̌":"q","Ř̩":"R","ř̩":"r","Ṧ":"S","ṧ":"s","V̌":"V","v̌":"v","W̌":"W","w̌":"w","X̌":"X","x̌":"x","Y̌":"Y","y̌":"y","A̧":"A","a̧":"a","B̧":"B","b̧":"b","Ḑ":"D","ḑ":"d","Ȩ":"E","ȩ":"e","Ɛ̧":"E","ɛ̧":"e","Ḩ":"H","ḩ":"h","I̧":"I","i̧":"i","Ɨ̧":"I","ɨ̧":"i","M̧":"M","m̧":"m","O̧":"O","o̧":"o","Q̧":"Q","q̧":"q","U̧":"U","u̧":"u","X̧":"X","x̧":"x","Z̧":"Z","z̧":"z"},Rv=Object.keys(Sv).join("|"),xv=new RegExp(Rv,"g");
226
+ */const Tv={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Ấ":"A","Ắ":"A","Ẳ":"A","Ẵ":"A","Ặ":"A","Æ":"AE","Ầ":"A","Ằ":"A","Ȃ":"A","Ç":"C","Ḉ":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ế":"E","Ḗ":"E","Ề":"E","Ḕ":"E","Ḝ":"E","Ȇ":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ḯ":"I","Ȋ":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ố":"O","Ṍ":"O","Ṓ":"O","Ȏ":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","ấ":"a","ắ":"a","ẳ":"a","ẵ":"a","ặ":"a","æ":"ae","ầ":"a","ằ":"a","ȃ":"a","ç":"c","ḉ":"c","è":"e","é":"e","ê":"e","ë":"e","ế":"e","ḗ":"e","ề":"e","ḕ":"e","ḝ":"e","ȇ":"e","ì":"i","í":"i","î":"i","ï":"i","ḯ":"i","ȋ":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ố":"o","ṍ":"o","ṓ":"o","ȏ":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","C̆":"C","c̆":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","Ǵ":"G","ĝ":"g","ǵ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ḫ":"H","ḫ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","Ḱ":"K","ḱ":"k","K̆":"K","k̆":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"l","ł":"l","Ḿ":"M","ḿ":"m","M̆":"M","m̆":"m","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","N̆":"N","n̆":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","P̆":"P","p̆":"p","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","R̆":"R","r̆":"r","Ȓ":"R","ȓ":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","Ș":"S","ș":"s","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","ț":"t","Ț":"T","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","T̆":"T","t̆":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ȗ":"U","ȗ":"u","V̆":"V","v̆":"v","Ŵ":"W","ŵ":"w","Ẃ":"W","ẃ":"w","X̆":"X","x̆":"x","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Y̆":"Y","y̆":"y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","Ứ":"U","ứ":"u","Ṹ":"U","ṹ":"u","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o","Þ":"TH","þ":"th","Ṕ":"P","ṕ":"p","Ṥ":"S","ṥ":"s","X́":"X","x́":"x","Ѓ":"Г","ѓ":"г","Ќ":"К","ќ":"к","A̋":"A","a̋":"a","E̋":"E","e̋":"e","I̋":"I","i̋":"i","Ǹ":"N","ǹ":"n","Ồ":"O","ồ":"o","Ṑ":"O","ṑ":"o","Ừ":"U","ừ":"u","Ẁ":"W","ẁ":"w","Ỳ":"Y","ỳ":"y","Ȁ":"A","ȁ":"a","Ȅ":"E","ȅ":"e","Ȉ":"I","ȉ":"i","Ȍ":"O","ȍ":"o","Ȑ":"R","ȑ":"r","Ȕ":"U","ȕ":"u","B̌":"B","b̌":"b","Č̣":"C","č̣":"c","Ê̌":"E","ê̌":"e","F̌":"F","f̌":"f","Ǧ":"G","ǧ":"g","Ȟ":"H","ȟ":"h","J̌":"J","ǰ":"j","Ǩ":"K","ǩ":"k","M̌":"M","m̌":"m","P̌":"P","p̌":"p","Q̌":"Q","q̌":"q","Ř̩":"R","ř̩":"r","Ṧ":"S","ṧ":"s","V̌":"V","v̌":"v","W̌":"W","w̌":"w","X̌":"X","x̌":"x","Y̌":"Y","y̌":"y","A̧":"A","a̧":"a","B̧":"B","b̧":"b","Ḑ":"D","ḑ":"d","Ȩ":"E","ȩ":"e","Ɛ̧":"E","ɛ̧":"e","Ḩ":"H","ḩ":"h","I̧":"I","i̧":"i","Ɨ̧":"I","ɨ̧":"i","M̧":"M","m̧":"m","O̧":"O","o̧":"o","Q̧":"Q","q̧":"q","U̧":"U","u̧":"u","X̧":"X","x̧":"x","Z̧":"Z","z̧":"z"},Iv=Object.keys(Tv).join("|"),Ov=new RegExp(Iv,"g");
227
227
  /**
228
228
  * @name match-sorter
229
229
  * @license MIT license.
230
230
  * @copyright (c) 2099 Kent C. Dodds
231
231
  * @author Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)
232
232
  */
233
- const Tv=7,Iv=6,Ov=5,Av=4,zv=3,Pv=2,Dv=1,Lv=0;function Nv(e,t,n){var o;if((n=n||{}).threshold=null!=(o=n.threshold)?o:Dv,!n.accessors){const o=qv(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],r=Fv(a),i=Uv(e,a);for(let e=0,t=i.length;e<t;e++)n.push({itemValue:i[e],attributes:r})}return n}(e,n.accessors),r={rankedValue:e,rank:Lv,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let e=0;e<a.length;e++){const o=a[e];let i=qv(o.itemValue,t,n);const{minRanking:s,maxRanking:u,threshold:c=n.threshold}=o.attributes;i<s&&i>=Dv?i=s:i>u&&(i=u),i=Math.min(i,u),i>=c&&i>r.rank&&(r.rank=i,r.passed=!0,r.accessorIndex=e,r.accessorThreshold=c,r.rankedValue=o.itemValue)}return r}function qv(e,t,n){return e=Mv(e,n),(t=Mv(t,n)).length>e.length?Lv:e===t?Tv:(e=e.toLowerCase())===(t=t.toLowerCase())?Iv:e.startsWith(t)?Ov:e.includes(` ${t}`)?Av:e.includes(t)?zv:1===t.length?Lv:function(e){let t="";return e.split(" ").forEach((e=>{e.split("-").forEach((e=>{t+=e.substr(0,1)}))})),t}(e).includes(t)?Pv:function(e,t){let n=0,o=0;function a(e,t,o){for(let a=o,r=t.length;a<r;a++){if(t[a]===e)return n+=1,a+1}return-1}function r(e){const o=1/e,a=n/t.length;return Dv+a*o}const i=a(t[0],e,0);if(i<0)return Lv;o=i;for(let n=1,r=t.length;n<r;n++){o=a(t[n],e,o);if(!(o>-1))return Lv}const s=o-i;return r(s)}(e,t)}function Mv(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=e.replace(xv,(e=>Sv[e]))),e}function Uv(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 Bv={maxRanking:1/0,minRanking:-1/0};function Fv(e){return"function"==typeof e?Bv:{...Bv,...e}}function Wv(e,t){const[n,o]=i.useState();i.useEffect((()=>{const n=(e=>{try{const t=localStorage.getItem(e);return"string"==typeof t?JSON.parse(t):void 0}catch{return}})(e);o(null==n?"function"==typeof t?t():t:n)}),[t,e]);return[n,i.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 Hv,Vv=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}(),Gv=function(){function e(e){this.generateIdentifier=e,this.kv=new Vv}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}(),Kv=(Hv=function(e,t){return Hv=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])},Hv(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}Hv(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),$v=function(e){function t(){var t=e.call(this,(function(e){return e.name}))||this;return t.classToAllowedProps=new Map,t}return Kv(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}(Gv),Qv=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,r=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i};function Jv(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 r=o[a];if(t(r))return r}}function Xv(e,t){Object.entries(e).forEach((function(e){var n=Qv(e,2),o=n[0],a=n[1];return t(a,o)}))}function Yv(e,t){return-1!==e.indexOf(t)}function Zv(e,t){for(var n=0;n<e.length;n++){var o=e[n];if(t(o))return o}}var ek=function(){function e(){this.transfomers={}}return e.prototype.register=function(e){this.transfomers[e.name]=e},e.prototype.findApplicable=function(e){return Jv(this.transfomers,(function(t){return t.isApplicable(e)}))},e.prototype.findByName=function(e){return this.transfomers[e]},e}(),tk=function(e){return void 0===e},nk=function(e){return"object"==typeof e&&null!==e&&(e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype))},ok=function(e){return nk(e)&&0===Object.keys(e).length},ak=function(e){return Array.isArray(e)},rk=function(e){return e instanceof Map},ik=function(e){return e instanceof Set},sk=function(e){return"Symbol"===function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e)},uk=function(e){return"number"==typeof e&&isNaN(e)},ck=function(e){return function(e){return"boolean"==typeof e}(e)||function(e){return null===e}(e)||tk(e)||function(e){return"number"==typeof e&&!isNaN(e)}(e)||function(e){return"string"==typeof e}(e)||sk(e)},lk=function(e){return e.replace(/\./g,"\\.")},dk=function(e){return e.map(String).map(lk).join(".")},pk=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 r=n;return t.push(r),t},hk=function(){return hk=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},hk.apply(this,arguments)},mk=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,r=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},fk=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e};function gk(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var yk=[gk(tk,"undefined",(function(){return null}),(function(){})),gk((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)})),gk((function(e){return e instanceof Date&&!isNaN(e.valueOf())}),"Date",(function(e){return e.toISOString()}),(function(e){return new Date(e)})),gk((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})),gk((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)})),gk(ik,"set",(function(e){return fk([],mk(e.values()))}),(function(e){return new Set(e)})),gk(rk,"map",(function(e){return fk([],mk(e.entries()))}),(function(e){return new Map(e)})),gk((function(e){return uk(e)||((t=e)===1/0||t===-1/0);var t}),"number",(function(e){return uk(e)?"NaN":e>0?"Infinity":"-Infinity"}),Number),gk((function(e){return 0===e&&1/e==-1/0}),"number",(function(){return"-0"}),Number),gk((function(e){return e instanceof URL}),"URL",(function(e){return e.toString()}),(function(e){return new URL(e)}))];function bk(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var vk=bk((function(e,t){return!!sk(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})),kk=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((function(e,t){return e[t.name]=t,e}),{}),jk=bk((function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}),(function(e){return["typed-array",e.constructor.name]}),(function(e){return fk([],mk(e))}),(function(e,t){var n=kk[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)}));function wk(e,t){return!!(null==e?void 0:e.constructor)&&!!t.classRegistry.getIdentifier(e.constructor)}var _k=bk(wk,(function(e,t){return["class",t.classRegistry.getIdentifier(e.constructor)]}),(function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return hk({},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)})),Ek=bk((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)})),Ck=[_k,vk,Ek,jk],Sk=function(e,t){var n=Zv(Ck,(function(n){return n.isApplicable(e,t)}));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var o=Zv(yk,(function(n){return n.isApplicable(e,t)}));return o?{value:o.transform(e,t),type:o.annotation}:void 0},Rk={};yk.forEach((function(e){Rk[e.annotation]=e}));var xk=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function Tk(e){if(Yv(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Yv(e,"prototype"))throw new Error("prototype is not allowed as a property");if(Yv(e,"constructor"))throw new Error("constructor is not allowed as a property")}var Ik=function(e,t,n){if(Tk(t),0===t.length)return n(e);for(var o=e,a=0;a<t.length-1;a++){var r=t[a];if(ak(o))o=o[+r];else if(nk(o))o=o[r];else if(ik(o)){o=xk(o,i=+r)}else if(rk(o)){if(a===t.length-2)break;var i=+r,s=0==+t[++a]?"key":"value",u=xk(o,i);switch(s){case"key":o=u;break;case"value":o=o.get(u)}}}var c=t[t.length-1];if(ak(o)?o[+c]=n(o[+c]):nk(o)&&(o[c]=n(o[c])),ik(o)){var l=xk(o,+c),d=n(l);l!==d&&(o.delete(l),o.add(d))}if(rk(o)){i=+t[t.length-2];var p=xk(o,i);switch(s=0==+c?"key":"value"){case"key":var h=n(p);o.set(h,o.get(p)),h!==p&&o.delete(p);break;case"value":o.set(p,n(o.get(p)))}}return e},Ok=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,r=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},Ak=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e};function zk(e,t,n){if(void 0===n&&(n=[]),e)if(ak(e)){var o=Ok(e,2),a=o[0],r=o[1];r&&Xv(r,(function(e,o){zk(e,t,Ak(Ak([],Ok(n)),Ok(pk(o))))})),t(a,n)}else Xv(e,(function(e,o){return zk(e,t,Ak(Ak([],Ok(n)),Ok(pk(o))))}))}function Pk(e,t,n){return zk(t,(function(t,o){e=Ik(e,o,(function(e){return function(e,t,n){if(!ak(t)){var o=Rk[t];if(!o)throw new Error("Unknown transformation: "+t);return o.untransform(e,n)}switch(t[0]){case"symbol":return vk.untransform(e,t,n);case"class":return _k.untransform(e,t,n);case"custom":return Ek.untransform(e,t,n);case"typed-array":return jk.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}}(e,t,n)}))})),e}function Dk(e,t){function n(t,n){var o=function(e,t){Tk(t);for(var n=0;n<t.length;n++){var o=t[n];if(ik(e))e=xk(e,+o);else if(rk(e)){var a=+o,r=0==+t[++n]?"key":"value",i=xk(e,a);switch(r){case"key":e=i;break;case"value":e=e.get(i)}}else e=e[o]}return e}(e,pk(n));t.map(pk).forEach((function(t){e=Ik(e,t,(function(){return o}))}))}if(ak(t)){var o=Ok(t,2),a=o[0],r=o[1];a.forEach((function(t){e=Ik(e,pk(t),(function(){return e}))})),r&&Xv(r,n)}else Xv(t,n);return e}var Lk=function(e,t,n,o,a,r,i){var s;void 0===a&&(a=[]),void 0===r&&(r=[]),void 0===i&&(i=new Map);var u=ck(e);if(!u){!function(e,t,n){var o=n.get(e);o?o.push(t):n.set(e,[t])}(e,a,t);var c=i.get(e);if(c)return o?{transformedValue:null}:c}if(!function(e,t){return nk(e)||ak(e)||rk(e)||ik(e)||wk(e,t)}(e,n)){var l=Sk(e,n),d=l?{transformedValue:l.value,annotations:[l.type]}:{transformedValue:e};return u||i.set(e,d),d}if(Yv(r,e))return{transformedValue:null};var p=Sk(e,n),h=null!==(s=null==p?void 0:p.value)&&void 0!==s?s:e,m=ak(h)?[]:{},f={};Xv(h,(function(s,u){var c=Lk(s,t,n,o,Ak(Ak([],Ok(a)),[u]),Ak(Ak([],Ok(r)),[e]),i);m[u]=c.transformedValue,ak(c.annotations)?f[u]=c.annotations:nk(c.annotations)&&Xv(c.annotations,(function(e,t){f[lk(u)+"."+t]=e}))}));var g=ok(f)?{transformedValue:m,annotations:p?[p.type]:void 0}:{transformedValue:m,annotations:p?[p.type,f]:f};return u||i.set(e,g),g};function Nk(e){return Object.prototype.toString.call(e).slice(8,-1)}function qk(e){return"Array"===Nk(e)}function Mk(e,t={}){if(qk(e))return e.map((e=>Mk(e,t)));if(!function(e){if("Object"!==Nk(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(qk(t.props)&&!t.props.includes(o))return n;return function(e,t,n,o,a){const r={}.propertyIsEnumerable.call(o,t)?"enumerable":"nonenumerable";"enumerable"===r&&(e[t]=n),a&&"nonenumerable"===r&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}(n,o,Mk(e[o],t),e,t.nonenumerable),n}),{})}var Uk=function(){return Uk=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},Uk.apply(this,arguments)},Bk=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,r=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},Fk=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e},Wk=function(){function e(e){var t=(void 0===e?{}:e).dedupe,n=void 0!==t&&t;this.classRegistry=new $v,this.symbolRegistry=new Gv((function(e){var t;return null!==(t=e.description)&&void 0!==t?t:""})),this.customTransformerRegistry=new ek,this.allowedErrorProps=[],this.dedupe=n}return e.prototype.serialize=function(e){var t=new Map,n=Lk(e,t,this,this.dedupe),o={json:n.transformedValue};n.annotations&&(o.meta=Uk(Uk({},o.meta),{values:n.annotations}));var a,r,i,s,u=(a=t,r=this.dedupe,i={},s=void 0,a.forEach((function(e){if(!(e.length<=1)){r||(e=e.map((function(e){return e.map(String)})).sort((function(e,t){return e.length-t.length})));var t=Ok(e),n=t[0],o=t.slice(1);0===n.length?s=o.map(dk):i[dk(n)]=o.map(dk)}})),s?ok(i)?[s]:[s,i]:ok(i)?void 0:i);return u&&(o.meta=Uk(Uk({},o.meta),{referentialEqualities:u})),o},e.prototype.deserialize=function(e){var t=e.json,n=e.meta,o=Mk(t);return(null==n?void 0:n.values)&&(o=Pk(o,n.values,this)),(null==n?void 0:n.referentialEqualities)&&(o=Dk(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(Uk({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,Fk([],Bk(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 Hk={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",paused:"#8c49eb",warning:"#ffb200"},Vk=i.createContext(Hk);function Gk({theme:e,...t}){return i.createElement(Vk.Provider,Cv({value:e},t))}function Kk({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 $k(e){return"fetching"===e.state.fetchStatus?"fetching":e.getObserversCount()?"paused"===e.state.fetchStatus?"paused":e.isStale()?"stale":"fresh":"inactive"}function Qk(e,t,n={}){return i.forwardRef((({style:o,...a},r)=>{const s=i.useContext(Vk),u=Object.entries(n).reduce(((e,[t,n])=>function(e){const[t,n]=i.useState((()=>{if("undefined"!=typeof window)return window.matchMedia(e).matches}));return i.useEffect((()=>{if("undefined"!=typeof window){const t=window.matchMedia(e),o=({matches:e})=>n(e);return t.addListener(o),()=>{t.removeListener(o)}}}),[t,e,n]),t}(t)?{...e,..."function"==typeof n?n(a,s):n}:e),{});return i.createElement(e,{...a,style:{..."function"==typeof t?t(a,s):t,...o,...u},ref:r})}))}const Jk=(e,t=!1)=>{const{json:n}=Wk.serialize(e);return JSON.stringify(n,null,t?2:void 0)},Xk=e=>"idle"!==e.state.fetchStatus?0:e.getObserversCount()?e.isStale()?2:1:3,Yk=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,Zk={"Status > Last Updated":(e,t)=>Xk(e)===Xk(t)?Yk(e,t):Xk(e)>Xk(t)?1:-1,"Query Hash":(e,t)=>e.queryHash.localeCompare(t.queryHash),"Last Updated":Yk},ej=500,tj={top:"bottom",bottom:"top",left:"right",right:"left"};function nj(e){return["left","right"].includes(e)}function oj(e){return tj[e]}function aj(e,t){return""+e+(t.charAt(0).toUpperCase()+t.slice(1))}function rj(e="bottom"){const t=nj(e),n=oj(e),o=aj("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 ij=Qk("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"}}),sj=Qk("div",(()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"})),{"(max-width: 700px)":(e,t)=>({borderTop:"2px solid "+t.gray})}),uj=Qk("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"}))),cj=Qk("span",{display:"flex",flexWrap:"wrap",gap:"0.5em",fontSize:"0.9em"}),lj=Qk("span",{display:"inline-flex",alignItems:"center",padding:".2em .4em",fontWeight:"bold",textShadow:"0 0 10px black",borderRadius:".2em"}),dj=Qk("code",{fontSize:".9em",color:"inherit",background:"inherit"}),pj=Qk("input",((e,t)=>({backgroundColor:t.inputBackgroundColor,border:0,borderRadius:".2em",color:t.inputTextColor,fontSize:".9em",lineHeight:"1.3",padding:".3em .4em"}))),hj=Qk("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 mj({text:e}){return i.createElement("span",{style:{position:"absolute",width:"0.1px",height:"0.1px",overflow:"hidden"}},e)}const fj=Qk("div",{fontFamily:"Menlo, monospace",fontSize:"1em",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),gj=Qk("span",{color:"white"}),yj=Qk("button",{cursor:"pointer",color:"white"}),bj=Qk("button",{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}),vj=({value:e})=>{const[t,n]=i.useState("NoCopy");return i.createElement("button",{onClick:"NoCopy"===t?()=>{navigator.clipboard.writeText(Wk.stringify(e)).then((()=>{n("SuccessCopy"),setTimeout((()=>{n("NoCopy")}),1500)}),(e=>{console.error("Failed to copy: ",e),n("ErrorCopy"),setTimeout((()=>{n("NoCopy")}),1500)}))}:void 0,style:{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}},"NoCopy"===t?i.createElement(Ej,null):"SuccessCopy"===t?i.createElement(Sj,null):i.createElement(Cj,null))},kj=Qk("span",((e,t)=>({color:t.danger}))),jj=Qk("div",{marginLeft:".1em",paddingLeft:"1em",borderLeft:"2px solid rgba(0,0,0,.15)"}),wj=Qk("span",{color:"grey",fontSize:".7em"}),_j=({expanded:e,style:t={}})=>i.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:"rotate("+(e?90:0)+"deg) "+(t.transform||""),...t}},"▶"),Ej=()=>i.createElement("span",{"aria-label":"Copy object to clipboard",title:"Copy object to clipboard",style:{paddingLeft:"1em"}},i.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10"},i.createElement("path",{fill:"currentColor",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"}),i.createElement("path",{fill:"currentColor",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"}))),Cj=()=>i.createElement("span",{"aria-label":"Failed copying to clipboard",title:"Failed copying to clipboard",style:{paddingLeft:"1em",display:"flex",alignItems:"center"}},i.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10",display:"block"},i.createElement("path",{fill:"red",d:"M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z"})),i.createElement("span",{style:{color:"red",fontSize:"12px",paddingLeft:"4px",position:"relative",top:"2px"}},"See console")),Sj=()=>i.createElement("span",{"aria-label":"Object copied to clipboard",title:"Object copied to clipboard",style:{paddingLeft:"1em",display:"inline-block",verticalAlign:"middle"}},i.createElement("svg",{height:"16",viewBox:"0 0 16 16",width:"16",display:"block"},i.createElement("path",{fill:"green",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"})));const Rj=({handleEntry:e,label:t,value:n,subEntries:o=[],subEntryPages:a=[],type:r,expanded:s=!1,copyable:u=!1,toggleExpanded:c,pageSize:l})=>{const[d,p]=i.useState([]);return i.createElement(fj,{key:t},a.length?i.createElement(i.Fragment,null,i.createElement(bj,{onClick:()=>c()},i.createElement(_j,{expanded:s})," ",t," ",i.createElement(wj,null,"iterable"===String(r).toLowerCase()?"(Iterable) ":"",o.length," ",o.length>1?"items":"item")),u?i.createElement(vj,{value:n}):null,s?1===a.length?i.createElement(jj,null,o.map(e)):i.createElement(jj,null,a.map(((t,n)=>i.createElement("div",{key:n},i.createElement(fj,null,i.createElement(yj,{onClick:()=>p((e=>e.includes(n)?e.filter((e=>e!==n)):[...e,n]))},i.createElement(_j,{expanded:s})," [",n*l," ..."," ",n*l+l-1,"]"),d.includes(n)?i.createElement(jj,null,t.map(e)):null))))):null):i.createElement(i.Fragment,null,i.createElement(gj,null,t,":")," ",i.createElement(kj,null,Jk(n))))};function xj({value:e,defaultExpanded:t,renderer:n=Rj,pageSize:o=100,copyable:a=!1,...r}){const[s,u]=i.useState(Boolean(t)),c=i.useCallback((()=>u((e=>!e))),[]);let l=typeof e,d=[];const p=e=>{const n=!0===t?{[e.label]:!0}:null==t?void 0:t[e.label];return{...e,defaultExpanded:n}};var h;Array.isArray(e)?(l="array",d=e.map(((e,t)=>p({label:t.toString(),value:e})))):null!==e&&"object"==typeof e&&(h=e,Symbol.iterator in h)&&"function"==typeof e[Symbol.iterator]?(l="Iterable",d=Array.from(e,((e,t)=>p({label:t.toString(),value:e})))):"object"==typeof e&&null!==e&&(l="object",d=Object.entries(e).map((([e,t])=>p({label:e,value:t}))));const 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}(d,o);return n({handleEntry:t=>i.createElement(xj,Cv({key:t.label,value:e,renderer:n,copyable:a},r,t)),type:l,subEntries:d,subEntryPages:m,value:e,expanded:s,copyable:a,toggleExpanded:c,pageSize:o,...r})}function Tj(e){return i.createElement("svg",Cv({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),i.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(-33.000000, 0.000000)"},i.createElement("path",{d:"M72.7239712,61.3436237 C69.631224,46.362877 68.9675112,34.8727722 70.9666331,26.5293551 C72.1555965,21.5671678 74.3293088,17.5190846 77.6346064,14.5984631 C81.1241394,11.5150478 85.5360327,10.0020122 90.493257,10.0020122 C98.6712013,10.0020122 107.26826,13.7273214 116.455725,20.8044264 C120.20312,23.6910458 124.092437,27.170411 128.131651,31.2444746 C128.45314,30.8310265 128.816542,30.4410453 129.22143,30.0806152 C140.64098,19.9149716 150.255245,13.5989272 158.478408,11.1636507 C163.367899,9.715636 167.958526,9.57768202 172.138936,10.983031 C176.551631,12.4664684 180.06766,15.5329489 182.548314,19.8281091 C186.642288,26.9166735 187.721918,36.2310983 186.195595,47.7320243 C185.573451,52.4199112 184.50985,57.5263831 183.007094,63.0593153 C183.574045,63.1277086 184.142416,63.2532808 184.705041,63.4395297 C199.193932,68.2358678 209.453582,73.3937462 215.665021,79.2882839 C219.360669,82.7953831 221.773972,86.6998434 222.646365,91.0218204 C223.567176,95.5836746 222.669313,100.159332 220.191548,104.451297 C216.105211,111.529614 208.591643,117.11221 197.887587,121.534031 C193.589552,123.309539 188.726579,124.917559 183.293259,126.363748 C183.541176,126.92292 183.733521,127.516759 183.862138,128.139758 C186.954886,143.120505 187.618598,154.61061 185.619477,162.954027 C184.430513,167.916214 182.256801,171.964297 178.951503,174.884919 C175.46197,177.968334 171.050077,179.48137 166.092853,179.48137 C157.914908,179.48137 149.31785,175.756061 140.130385,168.678956 C136.343104,165.761613 132.410866,162.238839 128.325434,158.108619 C127.905075,158.765474 127.388968,159.376011 126.77857,159.919385 C115.35902,170.085028 105.744755,176.401073 97.5215915,178.836349 C92.6321009,180.284364 88.0414736,180.422318 83.8610636,179.016969 C79.4483686,177.533532 75.9323404,174.467051 73.4516862,170.171891 C69.3577116,163.083327 68.2780823,153.768902 69.8044053,142.267976 C70.449038,137.410634 71.56762,132.103898 73.1575891,126.339009 C72.5361041,126.276104 71.9120754,126.144816 71.2949591,125.940529 C56.8060684,121.144191 46.5464184,115.986312 40.3349789,110.091775 C36.6393312,106.584675 34.2260275,102.680215 33.3536352,98.3582381 C32.4328237,93.7963839 33.3306866,89.2207269 35.8084524,84.9287618 C39.8947886,77.8504443 47.4083565,72.2678481 58.1124133,67.8460273 C62.5385143,66.0176154 67.5637208,64.366822 73.1939394,62.8874674 C72.9933393,62.3969171 72.8349374,61.8811235 72.7239712,61.3436237 Z",fill:"#002C4B",fillRule:"nonzero",transform:"translate(128.000000, 95.000000) scale(-1, 1) translate(-128.000000, -95.000000) "}),i.createElement("path",{d:"M113.396882,64 L142.608177,64 C144.399254,64 146.053521,64.958025 146.944933,66.5115174 L161.577138,92.0115174 C162.461464,93.5526583 162.461464,95.4473417 161.577138,96.9884826 L146.944933,122.488483 C146.053521,124.041975 144.399254,125 142.608177,125 L113.396882,125 C111.605806,125 109.951539,124.041975 109.060126,122.488483 L94.4279211,96.9884826 C93.543596,95.4473417 93.543596,93.5526583 94.4279211,92.0115174 L109.060126,66.5115174 C109.951539,64.958025 111.605806,64 113.396882,64 Z M138.987827,70.2765273 C140.779849,70.2765273 142.434839,71.2355558 143.325899,72.7903404 L154.343038,92.0138131 C155.225607,93.5537825 155.225607,95.4462175 154.343038,96.9861869 L143.325899,116.20966 C142.434839,117.764444 140.779849,118.723473 138.987827,118.723473 L117.017233,118.723473 C115.225211,118.723473 113.570221,117.764444 112.67916,116.20966 L101.662022,96.9861869 C100.779452,95.4462175 100.779452,93.5537825 101.662022,92.0138131 L112.67916,72.7903404 C113.570221,71.2355558 115.225211,70.2765273 117.017233,70.2765273 L138.987827,70.2765273 Z M135.080648,77.1414791 L120.924411,77.1414791 C119.134228,77.1414791 117.480644,78.0985567 116.5889,79.6508285 L116.5889,79.6508285 L109.489217,92.0093494 C108.603232,93.5515958 108.603232,95.4484042 109.489217,96.9906506 L109.489217,96.9906506 L116.5889,109.349172 C117.480644,110.901443 119.134228,111.858521 120.924411,111.858521 L120.924411,111.858521 L135.080648,111.858521 C136.870831,111.858521 138.524416,110.901443 139.41616,109.349172 L139.41616,109.349172 L146.515843,96.9906506 C147.401828,95.4484042 147.401828,93.5515958 146.515843,92.0093494 L146.515843,92.0093494 L139.41616,79.6508285 C138.524416,78.0985567 136.870831,77.1414791 135.080648,77.1414791 L135.080648,77.1414791 Z M131.319186,83.7122186 C133.108028,83.7122186 134.760587,84.6678753 135.652827,86.2183156 L138.983552,92.0060969 C139.87203,93.5500005 139.87203,95.4499995 138.983552,96.9939031 L135.652827,102.781684 C134.760587,104.332125 133.108028,105.287781 131.319186,105.287781 L124.685874,105.287781 C122.897032,105.287781 121.244473,104.332125 120.352233,102.781684 L117.021508,96.9939031 C116.13303,95.4499995 116.13303,93.5500005 117.021508,92.0060969 L120.352233,86.2183156 C121.244473,84.6678753 122.897032,83.7122186 124.685874,83.7122186 L131.319186,83.7122186 Z M128.003794,90.1848875 C126.459294,90.1848875 125.034382,91.0072828 124.263005,92.3424437 C123.491732,93.6774232 123.491732,95.3225768 124.263005,96.6575563 C125.034382,97.9927172 126.459294,98.8151125 128.001266,98.8151125 L128.001266,98.8151125 C129.545766,98.8151125 130.970678,97.9927172 131.742055,96.6575563 C132.513327,95.3225768 132.513327,93.6774232 131.742055,92.3424437 C130.970678,91.0072828 129.545766,90.1848875 128.003794,90.1848875 L128.003794,90.1848875 Z M93,94.5009646 L100.767764,94.5009646",fill:"#FFD94C"}),i.createElement("path",{d:"M87.8601729,108.357758 C89.1715224,107.608286 90.8360246,108.074601 91.5779424,109.399303 L91.5779424,109.399303 L92.0525843,110.24352 C95.8563392,116.982993 99.8190116,123.380176 103.940602,129.435068 C108.807881,136.585427 114.28184,143.82411 120.362479,151.151115 C121.316878,152.30114 121.184944,154.011176 120.065686,154.997937 L120.065686,154.997937 L119.454208,155.534625 C99.3465389,173.103314 86.2778188,176.612552 80.2480482,166.062341 C74.3500652,155.742717 76.4844915,136.982888 86.6513274,109.782853 C86.876818,109.179582 87.3045861,108.675291 87.8601729,108.357758 Z M173.534177,129.041504 C174.986131,128.785177 176.375496,129.742138 176.65963,131.194242 L176.65963,131.194242 L176.812815,131.986376 C181.782365,157.995459 178.283348,171 166.315764,171 C154.609745,171 139.708724,159.909007 121.612702,137.727022 C121.211349,137.235047 120.994572,136.617371 121,135.981509 C121.013158,134.480686 122.235785,133.274651 123.730918,133.287756 L123.730918,133.287756 L124.684654,133.294531 C132.305698,133.335994 139.714387,133.071591 146.910723,132.501323 C155.409039,131.82788 164.283523,130.674607 173.534177,129.041504 Z M180.408726,73.8119663 C180.932139,72.4026903 182.508386,71.6634537 183.954581,72.149012 L183.954581,72.149012 L184.742552,72.4154854 C210.583763,81.217922 220.402356,90.8916805 214.198332,101.436761 C208.129904,111.751366 190.484347,119.260339 161.26166,123.963678 C160.613529,124.067994 159.948643,123.945969 159.382735,123.618843 C158.047025,122.846729 157.602046,121.158214 158.388848,119.847438 L158.388848,119.847438 L158.889328,119.0105 C162.877183,112.31633 166.481358,105.654262 169.701854,99.0242957 C173.50501,91.1948179 177.073967,82.7907081 180.408726,73.8119663 Z M94.7383398,66.0363218 C95.3864708,65.9320063 96.0513565,66.0540315 96.6172646,66.3811573 C97.9529754,67.153271 98.3979538,68.8417862 97.6111517,70.1525615 L97.6111517,70.1525615 L97.1106718,70.9895001 C93.1228168,77.6836699 89.5186416,84.3457379 86.2981462,90.9757043 C82.49499,98.8051821 78.9260328,107.209292 75.5912744,116.188034 C75.0678608,117.59731 73.4916142,118.336546 72.045419,117.850988 L72.045419,117.850988 L71.2574475,117.584515 C45.4162372,108.782078 35.597644,99.1083195 41.8016679,88.5632391 C47.8700957,78.2486335 65.515653,70.7396611 94.7383398,66.0363218 Z M136.545792,34.4653746 C156.653461,16.8966864 169.722181,13.3874478 175.751952,23.9376587 C181.649935,34.2572826 179.515508,53.0171122 169.348673,80.2171474 C169.123182,80.8204179 168.695414,81.324709 168.139827,81.6422422 C166.828478,82.3917144 165.163975,81.9253986 164.422058,80.6006966 L164.422058,80.6006966 L163.947416,79.7564798 C160.143661,73.0170065 156.180988,66.6198239 152.059398,60.564932 C147.192119,53.4145727 141.71816,46.1758903 135.637521,38.8488847 C134.683122,37.6988602 134.815056,35.9888243 135.934314,35.0020629 L135.934314,35.0020629 Z M90.6842361,18 C102.390255,18 117.291276,29.0909926 135.387298,51.2729777 C135.788651,51.7649527 136.005428,52.3826288 136,53.0184911 C135.986842,54.5193144 134.764215,55.7253489 133.269082,55.7122445 L133.269082,55.7122445 L132.315346,55.7054689 C124.694302,55.6640063 117.285613,55.9284091 110.089277,56.4986773 C101.590961,57.17212 92.7164767,58.325393 83.4658235,59.9584962 C82.0138691,60.2148231 80.6245044,59.2578618 80.3403697,57.805758 L80.3403697,57.805758 L80.1871846,57.0136235 C75.2176347,31.0045412 78.7166519,18 90.6842361,18 Z",fill:"#FF4154"}))))}const Ij=(e,t,n=!1)=>Ep.useSyncExternalStore(i.useCallback((t=>n?()=>{}:e.subscribe(ap.batchCalls(t))),[e,n]),t,t),Oj=i.forwardRef((function(e,t){const{isOpen:n=!0,styleNonce:o,setIsOpen:a,context:r,onDragStart:s,onPositionChange:u,showCloseButton:c,position:l,closeButtonProps:d={},errorTypes:p=[],...h}=e,{onClick:m,...f}=d,g=Tp({context:r}),y=g.getQueryCache(),[b,v]=Wv("reactQueryDevtoolsSortFn",Object.keys(Zk)[0]),[k,j]=Wv("reactQueryDevtoolsFilter",""),[w,_]=Wv("reactQueryDevtoolsBaseSort",1),E=i.useMemo((()=>Zk[b]),[b]),C=Ij(y,(()=>y.getAll().length),!n),[S,R]=Wv("reactQueryDevtoolsActiveQueryHash",""),x=i.useMemo((()=>{const e=y.getAll();if(0===C)return[];const t=k?e.filter((e=>Nv(e.queryHash,k).passed)):[...e];return E?t.sort(((e,t)=>E(e,t)*w)):t}),[w,E,k,C,y]),[T,I]=i.useState(!1);return i.createElement(Gk,{theme:Hk},i.createElement(ij,Cv({ref:t,className:"ReactQueryDevtoolsPanel","aria-label":"React Query Devtools Panel",id:"ReactQueryDevtoolsPanel"},h,{style:{height:ej,position:"relative",...h.style}}),i.createElement("style",{nonce:o,dangerouslySetInnerHTML:{__html:"\n .ReactQueryDevtoolsPanel * {\n scrollbar-color: "+Hk.backgroundAlt+" "+Hk.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: "+Hk.backgroundAlt+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-thumb, .ReactQueryDevtoolsPanel scrollbar-thumb {\n background: "+Hk.gray+";\n border-radius: .5em;\n border: 3px solid "+Hk.backgroundAlt+";\n }\n "}}),i.createElement("div",{style:rj(l),onMouseDown:s}),n&&i.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:"1px solid "+Hk.grayAlt,display:"flex",flexDirection:"column"}},i.createElement("div",{style:{padding:".5em",background:Hk.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},i.createElement("button",{type:"button","aria-label":"Close React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true",onClick:()=>a(!1),style:{display:"inline-flex",background:"none",border:0,padding:0,marginRight:".5em",cursor:"pointer"}},i.createElement(Tj,{"aria-hidden":!0}),i.createElement(mj,{text:"Close React Query Devtools"})),i.createElement("div",{style:{display:"flex",flexDirection:"column"}},i.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:".5em"}},i.createElement(zj,{queryCache:y}),l&&u?i.createElement(hj,{"aria-label":"Panel position",value:l,style:{marginInlineStart:".5em"},onChange:e=>u(e.target.value)},i.createElement("option",{value:"left"},"Left"),i.createElement("option",{value:"right"},"Right"),i.createElement("option",{value:"top"},"Top"),i.createElement("option",{value:"bottom"},"Bottom")):null),i.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"0.5em"}},i.createElement(pj,{placeholder:"Filter","aria-label":"Filter by queryhash",value:null!=k?k:"",onChange:e=>j(e.target.value),onKeyDown:e=>{"Escape"===e.key&&j("")},style:{flex:"1",width:"100%"}}),i.createElement(hj,{"aria-label":"Sort queries",value:b,onChange:e=>v(e.target.value),style:{flex:"1",minWidth:75,marginRight:".5em"}},Object.keys(Zk).map((e=>i.createElement("option",{key:e,value:e},"Sort by ",e)))),i.createElement(uj,{type:"button",onClick:()=>_((e=>-1*e)),style:{padding:".3em .4em",marginRight:".5em"}},1===w?"⬆ Asc":"⬇ Desc"),i.createElement(uj,{title:"Clear cache","aria-label":"Clear cache",type:"button",onClick:()=>y.clear(),style:{padding:".3em .4em",marginRight:".5em"}},"Clear"),i.createElement(uj,{type:"button",onClick:()=>{T?(Xd.setOnline(void 0),I(!1),window.dispatchEvent(new Event("online"))):(Xd.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"}},i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"2em",height:"2em",viewBox:"0 0 24 24",stroke:T?Hk.danger:"currentColor",fill:"none"},T?i.createElement(i.Fragment,null,i.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),i.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),i.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),i.createElement("path",{d:"M6.343 12.343a7.963 7.963 0 0 1 3.864 -2.14m4.163 .155a7.965 7.965 0 0 1 3.287 2"}),i.createElement("path",{d:"M3.515 9.515a12 12 0 0 1 3.544 -2.455m3.101 -.92a12 12 0 0 1 10.325 3.374"}),i.createElement("line",{x1:"3",y1:"3",x2:"21",y2:"21"})):i.createElement(i.Fragment,null,i.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),i.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),i.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),i.createElement("path",{d:"M6.343 12.343a8 8 0 0 1 11.314 0"}),i.createElement("path",{d:"M3.515 9.515c4.686 -4.687 12.284 -4.687 17 0"}))),i.createElement(mj,{text:T?"Restore offline mock":"Mock offline behavior"}))))),i.createElement("div",{style:{overflowY:"auto",flex:"1"}},x.map((e=>i.createElement(Pj,{queryKey:e.queryKey,activeQueryHash:S,setActiveQueryHash:R,key:e.queryHash,queryCache:y}))))),S&&n?i.createElement(Aj,{activeQueryHash:S,queryCache:y,queryClient:g,errorTypes:p}):null,c?i.createElement(uj,Cv({type:"button","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true"},f,{style:{position:"absolute",zIndex:99999,margin:".5em",bottom:0,left:0,...f.style},onClick:e=>{a(!1),null==m||m(e)}}),"Close"):null))})),Aj=({queryCache:e,activeQueryHash:t,queryClient:n,errorTypes:o})=>{var a,r;const s=Ij(e,(()=>e.getAll().find((e=>e.queryHash===t)))),u=Ij(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.state})),c=null!=(a=Ij(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.isStale()})))&&a,l=null!=(r=Ij(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.getObserversCount()})))?r:0,p=d((()=>{if(s&&null!=u&&u.error){const e=o.find((e=>{var t;return e.initializer(s).toString()===(null==(t=u.error)?void 0:t.toString())}));return null==e?void 0:e.name}}),[s,null==u?void 0:u.error,o]);if(!s||!u)return null;const h=e=>{var t;const n=null!=(t=null==e?void 0:e.initializer(s))?t:new Error("Unknown error from devtools"),o=s.options;s.setState({status:"error",error:n,fetchMeta:{...s.state.fetchMeta,__previousQueryOptions:o}})};return i.createElement(sj,null,i.createElement("div",{style:{padding:".5em",background:Hk.backgroundAlt,position:"sticky",top:0,zIndex:1}},"Query Details"),i.createElement("div",{style:{padding:".5em"}},i.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"flex-start",justifyContent:"space-between"}},i.createElement(dj,{style:{lineHeight:"1.8em"}},i.createElement("pre",{style:{margin:0,padding:0,overflow:"auto"}},Jk(s.queryKey,!0))),i.createElement("span",{style:{padding:"0.3em .6em",borderRadius:"0.4em",fontWeight:"bold",textShadow:"0 2px 10px black",background:Kk({queryState:u,isStale:c,observerCount:l,theme:Hk}),flexShrink:0}},$k(s))),i.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"center",justifyContent:"space-between"}},"Observers: ",i.createElement(dj,null,l)),i.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},"Last Updated:"," ",i.createElement(dj,null,new Date(u.dataUpdatedAt).toLocaleTimeString()))),i.createElement("div",{style:{background:Hk.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Actions"),i.createElement("div",{style:{padding:"0.5em",display:"flex",flexWrap:"wrap",gap:"0.5em",alignItems:"flex-end"}},i.createElement(uj,{type:"button",onClick:()=>{const e=null==s?void 0:s.fetch();null==e||e.catch(Dj)},disabled:"fetching"===u.fetchStatus,style:{background:Hk.active}},"Refetch")," ",i.createElement(uj,{type:"button",onClick:()=>n.invalidateQueries(s),style:{background:Hk.warning,color:Hk.inputTextColor}},"Invalidate")," ",i.createElement(uj,{type:"button",onClick:()=>n.resetQueries(s),style:{background:Hk.gray}},"Reset")," ",i.createElement(uj,{type:"button",onClick:()=>n.removeQueries(s),style:{background:Hk.danger}},"Remove")," ",i.createElement(uj,{type:"button",onClick:()=>{var e;if("fetching"!==s.state.fetchStatus||void 0!==(null==(e=s.state.fetchMeta)?void 0:e.__previousQueryOptions))if(void 0===s.state.data)s.fetch(s.state.fetchMeta.__previousQueryOptions,{cancelRefetch:!0});else{const e=s.options;s.fetch({...e,queryFn:()=>new Promise((()=>{})),cacheTime:-1}),s.setState({data:void 0,status:"loading",fetchMeta:{...s.state.fetchMeta,__previousQueryOptions:e}})}},style:{background:Hk.paused}},"loading"===s.state.status?"Restore":"Trigger"," ","loading")," ",0===o.length||"error"===s.state.status?i.createElement(uj,{type:"button",onClick:()=>{s.state.error?n.resetQueries(s):h()},style:{background:Hk.danger}},"error"===s.state.status?"Restore":"Trigger"," error"):i.createElement("label",null,"Trigger error:",i.createElement(hj,{value:null!=p?p:"",style:{marginInlineStart:".5em"},onChange:e=>{const t=o.find((t=>t.name===e.target.value));h(t)}},i.createElement("option",{key:"",value:""}),o.map((e=>i.createElement("option",{key:e.name,value:e.name},e.name)))))),i.createElement("div",{style:{background:Hk.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Data Explorer"),i.createElement("div",{style:{padding:".5em"}},i.createElement(xj,{label:"Data",value:u.data,defaultExpanded:{},copyable:!0})),i.createElement("div",{style:{background:Hk.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Query Explorer"),i.createElement("div",{style:{padding:".5em"}},i.createElement(xj,{label:"Query",value:s,defaultExpanded:{queryKey:!0}})))},zj=({queryCache:e})=>{const t=Ij(e,(()=>e.getAll().filter((e=>"fresh"===$k(e))).length)),n=Ij(e,(()=>e.getAll().filter((e=>"fetching"===$k(e))).length)),o=Ij(e,(()=>e.getAll().filter((e=>"paused"===$k(e))).length)),a=Ij(e,(()=>e.getAll().filter((e=>"stale"===$k(e))).length)),r=Ij(e,(()=>e.getAll().filter((e=>"inactive"===$k(e))).length));return i.createElement(cj,null,i.createElement(lj,{style:{background:Hk.success,opacity:t?1:.3}},"fresh ",i.createElement(dj,null,"(",t,")"))," ",i.createElement(lj,{style:{background:Hk.active,opacity:n?1:.3}},"fetching ",i.createElement(dj,null,"(",n,")"))," ",i.createElement(lj,{style:{background:Hk.paused,opacity:o?1:.3}},"paused ",i.createElement(dj,null,"(",o,")"))," ",i.createElement(lj,{style:{background:Hk.warning,color:"black",textShadow:"0",opacity:a?1:.3}},"stale ",i.createElement(dj,null,"(",a,")"))," ",i.createElement(lj,{style:{background:Hk.gray,opacity:r?1:.3}},"inactive ",i.createElement(dj,null,"(",r,")")))},Pj=i.memo((({queryKey:e,setActiveQueryHash:t,activeQueryHash:n,queryCache:o})=>{var a,r,s,u;const c=null!=(a=Ij(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.queryHash})))?a:"",l=Ij(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.state})),d=null!=(r=Ij(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.isStale()})))&&r,p=null!=(s=Ij(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.isDisabled()})))&&s,h=null!=(u=Ij(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.getObserversCount()})))?u:0;return l?i.createElement("div",{role:"button","aria-label":"Open query details for "+c,onClick:()=>t(n===c?"":c),style:{display:"flex",borderBottom:"solid 1px "+Hk.grayAlt,cursor:"pointer",background:c===n?"rgba(255,255,255,.1)":void 0}},i.createElement("div",{style:{flex:"0 0 auto",width:"2em",height:"2em",background:Kk({queryState:l,isStale:d,observerCount:h,theme:Hk}),display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold",textShadow:d?"0":"0 0 10px black",color:d?"black":"white"}},h),p?i.createElement("div",{style:{flex:"0 0 auto",height:"2em",background:Hk.gray,display:"flex",alignItems:"center",fontWeight:"bold",padding:"0 0.5em"}},"disabled"):null,i.createElement(dj,{style:{padding:".5em"}},""+c)):null}));function Dj(){}Pj.displayName="QueryRow";const Lj="development"!==process.env.NODE_ENV?function(){return null}:function({initialIsOpen:e,panelProps:t={},closeButtonProps:n={},toggleButtonProps:o={},position:a="bottom-left",containerElement:r="aside",context:s,styleNonce:u,panelPosition:c="bottom",errorTypes:l=[]}){const d=i.useRef(null),p=i.useRef(null),[h,m]=Wv("reactQueryDevtoolsOpen",e),[f,g]=Wv("reactQueryDevtoolsHeight",ej),[y,b]=Wv("reactQueryDevtoolsWidth",ej),[v="bottom",k]=Wv("reactQueryDevtoolsPanelPosition",c),[j,w]=i.useState(!1),[_,E]=i.useState(!1),C=function(){const e=i.useRef(!1),t=i.useCallback((()=>e.current),[]);return i.useEffect((()=>(e.current=!0,()=>{e.current=!1})),[]),t}();i.useEffect((()=>{w(null!=h&&h)}),[h,j,w]),i.useEffect((()=>{const e=p.current;if(e){const t=()=>{j&&(e.style.visibility="visible")},n=()=>{j||(e.style.visibility="hidden")};return e.addEventListener("transitionstart",t),e.addEventListener("transitionend",n),()=>{e.removeEventListener("transitionstart",t),e.removeEventListener("transitionend",n)}}}),[j]),i.useEffect((()=>{var e;if(j&&null!=(e=d.current)&&e.parentElement){const{parentElement:e}=d.current,t=aj("padding",v),n=nj(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?y:f)+"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}))}}}),[j,v,f,y]);const{style:S={},...R}=t,{style:x={},onClick:T,...I}=o,O=function({position:e="bottom",height:t,width:n,devtoolsTheme:o,isOpen:a,isResizing:r,panelStyle:i}){const s=oj(e),u=aj("border",s),c=nj(e);return{...i,direction:"ltr",position:"fixed",[e]:0,[u]:"1px solid "+o.gray,transformOrigin:s,boxShadow:"0 0 20px rgba(0,0,0,.3)",zIndex:99999,visibility:a?"visible":"hidden",...r?{transition:"none"}:{transition:"all .2s ease"},...a?{opacity:1,pointerEvents:"all",transform:c?"translateX(0) scale(1)":"translateY(0) scale(1)"}:{opacity:0,pointerEvents:"none",transform:c?"translateX(15px) scale(1.02)":"translateY(15px) scale(1.02)"},...c?{top:0,height:"100vh",maxWidth:"90%",width:"number"==typeof n&&n>=70?n:ej}:{left:0,width:"100%",maxHeight:"90%",height:"number"==typeof t&&t>=70?t:ej}}}({position:v,devtoolsTheme:Hk,isOpen:j,height:f,width:y,isResizing:_,panelStyle:S});return C()?i.createElement(r,{ref:d,className:"ReactQueryDevtools","aria-label":"React Query Devtools"},i.createElement(Gk,{theme:Hk},i.createElement(Oj,Cv({ref:p,context:s,styleNonce:u,position:v,onPositionChange:k,showCloseButton:!0,closeButtonProps:n},R,{style:O,isOpen:j,setIsOpen:m,onDragStart:e=>((e,t)=>{if(!e)return;if(0!==t.button)return;const n=nj(v);E(!0);const{height:o,width:a}=e.getBoundingClientRect(),r=t.clientX,i=t.clientY;let s=0;const u=e=>{e.preventDefault(),n?(s=a+("right"===v?r-e.clientX:e.clientX-r),b(s)):(s=o+("bottom"===v?i-e.clientY:e.clientY-i),g(s)),m(!(s<70))},c=()=>{_&&E(!1),document.removeEventListener("mousemove",u,!1),document.removeEventListener("mouseUp",c,!1)};document.addEventListener("mousemove",u,!1),document.addEventListener("mouseup",c,!1)})(p.current,e),errorTypes:l}))),j?null:i.createElement("button",Cv({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"},...x}}),i.createElement(Tj,{"aria-hidden":!0}),i.createElement(mj,{text:"Open React Query Devtools"}))):null};process.env.NODE_ENV;var Nj,qj={backgroundColor:"#fcfcff",width:"100%",zIndex:1e7,height:"100%",position:"absolute"};function Mj(e){var o=this,r=e.children,i=process.env.ENVIRONMENT,s=d((function(){return"DEV"!==i&&"LOCAL"!==i?"testing":"live"}),[i]),c=u(!1),h=c[0],m=c[1],f=p((function(e){return t(o,void 0,void 0,(function(){var t,o,r,i,u;return n(this,(function(n){switch(n.label){case 0:return t=localStorage.getItem("headers"),o=t&&JSON.parse(t),r=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live",i=localStorage.getItem("x-organization-code"),u=i?JSON.parse(i).value:"",[4,Sd.refreshInstance({headers:a(a({},o),{"X-Environment":r||s,"x-organization-code":u,"x-account-code":e.detail.accountCode,"X-Content-Type-Options":"nosniff"})})];case 1:return n.sent(),[2]}}))}))}),[s]);l((function(){return addEventListener("ACCOUNT_CHANGED",f),function(){window.removeEventListener("ACCOUNT_CHANGED",f)}}),[f]);var g=p((function(e){return t(o,void 0,void 0,(function(){var t,o,r,i,u,c,l;return n(this,(function(n){switch(n.label){case 0:return t=localStorage.getItem("headers"),(o=t&&JSON.parse(t))?(r=localStorage.getItem("x-organization-code"),i=localStorage.getItem("account"),u=i?null===(l=JSON.parse(i).value)||void 0===l?void 0:l.code:"",c=r?JSON.parse(r).value:"",[4,Sd.refreshInstance({headers:a(a({},o),{"X-Environment":e||s,"x-organization-code":c,"x-account-code":u,"X-Content-Type-Options":"nosniff"})})]):[3,2];case 1:n.sent(),kh.refetchQueries(["fetch-profile","accountsV2","accounts","fetch-all-organizations","fetch-permissions"]),m(!0),n.label=2;case 2:return[2]}}))}))}),[s,m]);return l((function(){var e=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live";window.addEventListener("storage",(function(t){if("token"===t.key||"isTesting"===t.key){var n="OFF"===t.newValue?"live":"testing";"isTesting"===t.key?g(n):"token"===t.key&&g(e)}})),g(e)}),[m,g]),h?React.createElement(Ip,{client:kh},r,React.createElement(Lj,{initialIsOpen:!1})):React.createElement("div",{style:qj})}!function(e){e.ECONNABORTED="ECONNABORTED",e.ETIMEDOUT="ETIMEDOUT",e.ERR_BAD_REQUEST="ERR_BAD_REQUEST"}(Nj||(Nj={}));var Uj=function(){var e=c(null),t=c(null),n=c(null),o=u(!1),a=o[0],r=o[1],i=u(null),s=i[0],d=i[1],h=u(null),m=h[0],f=h[1],g=p((function(){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null)}),[]),y=p((function(){if("undefined"==typeof window||"dashboard.dev.y.uno"!==window.location.hostname){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null),f(null);try{var o=new WebSocket("".concat(Cd["WS_URL_".concat(Cd.ENVIRONMENT)],"/data-assistant/charts/ws"));e.current=o,o.onopen=function(){r(!0);var e=localStorage.getItem("token");e&&o.send(JSON.stringify({type:"auth",token:e})),t.current=setInterval((function(){o.readyState===WebSocket.OPEN?o.send(JSON.stringify({type:"ping"})):(g(),r(!1))}),3e4)},o.onmessage=function(e){try{var t=JSON.parse(e.data);d(t)}catch(e){f("Failed to parse server response")}},o.onerror=function(e){f("Connection error occurred"),r(!1)},o.onclose=function(e){r(!1),g(),e.wasClean||1e3===e.code||(n.current=setTimeout((function(){y()}),5e3))}}catch(e){f("Failed to establish connection")}}}),[]),b=p((function(t){var n;(null===(n=e.current)||void 0===n?void 0:n.readyState)===WebSocket.OPEN&&e.current.send(JSON.stringify({type:"subscribe",chart_id:t}))}),[]),v=p((function(t){var n;(null===(n=e.current)||void 0===n?void 0:n.readyState)===WebSocket.OPEN&&e.current.send(JSON.stringify({type:"unsubscribe",chart_id:t}))}),[]),k=p((function(){d(null)}),[]),j=p((function(){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null),e.current&&(r(!1),e.current.close(1e3,"Manual disconnect"),e.current=null)}),[]);return l((function(){return y(),function(){g(),j()}}),[]),{subscribe:b,unsubscribe:v,disconnect:j,connect:y,clearChartData:k,isConnected:a,chartData:s,connectionError:m}},Bj=["LOCAL","DEV","STG"].includes(process.env.ENVIRONMENT||"");"undefined"!=typeof window&&Bj&&function(){t(this,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:if(!ja())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,ba.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{Lc as AI,Ed as Api,Nj as ApiErrorCodes,Mj as ApiProvider,Sd as ApiSingleton,Tc as Cms,xc as Country,zc as DataReport,qp as DuplicateSetting,Rc as Organization,Nc as OrganizationConfig,Sc as PaymentFiltersSection,Df as PendingDuplicateAccountStatus,Dc as ReconciliationAgendaInsight,Pc as ReconciliationReportType,Ic as ReportType,Cc as SendPaymentNotification,Ac as SmartRouting,Oc as TemplateType,ny as getQueryKeyGetNameAndIcon,ay as getQueryKeyRequiredFields,vh as queryCache,kh as queryClient,Jg as use3DSExemptions,vf as useAICreateWorkflow,Rb as useAllFeatureFlags,$b as useAllowListDetail,Kb as useBlackListDetail,xb as useCachedFeatureFlag,Ch as useCancelReport,nm as useCancelSubscription,ih as useChangePasswordV2,Tm as useChangePaymentsWebhook,Em as useChangeStatusBlackList,Cm as useChangeStatusItemBlackList,ly as useChangeStylingSettings,If as useChangeTemplateStatus,yh as useChargebacksUpload,Uj as useChartAssistantSocket,ov as useChartExecute,xf as useCloneTemplate,jy as useCommunicationDetails,vy as useCommunications,gv as useCommunicationsByDay,yv as useCommunicationsBySubstatus,ky as useCommunicationsFilters,bv as useCommunicationsSubstatusByDay,pm as useConfirmedOtpMfa,Eh as useCountRowsForReport,Ef as useCreateAndExecuteChart,Sf as useCreateAndExecuteChartWithTimezone,jf as useCreateChart,Cf as useCreateChartWithTimezone,Wh as useCreateMonitorTemplate,Fh as useCreateMonitorThreshold,gh as useCreateOperationTransaction,Jh as useCreatePaymentLinks,pf as useCreateReconciliationAlert,lf as useCreateReconciliationReportTemplate,jh as useCreateReconciliationsReportV2,wh as useCreateReconciliationsReportV3,Sh as useCreateReportTemplate,_h as useCreateReportV2,Kh as useCreateRoles,gf as useCreateSamlConfig,Af as useCreateSchedule,Wm as useCreateScheduledReport,Zh as useCreateSubscription,Rf as useCreateTemplate,lh as useCreateUserAuth0,xh as useCreateWorkflow,$p as useDeleteAccountsUserMassive,Am as useDeleteAllowlistItem,Rm as useDeleteBlackListType,Im as useDeleteBlockListItem,wf as useDeleteChart,tf as useDeleteCustomizedApiKeys,Xh as useDeletePaymentLink,hf as useDeleteReconciliationAlert,Qh as useDeleteRoles,bf as useDeleteSamlConfig,Pf as useDeleteSchedule,Vm as useDeleteScheduledReport,Of as useDeleteTemplate,Vh as useDeleteUserTeamV2,Oh as useDeleteVersion,Up as useDeleteWebhookV2,zf as useDisableSchedule,Wp as useDuplicateAccount,Ah as useDuplicateVersion,Yh as useEditPaymentLinks,$h as useEditRoles,my as useEmailVerification,Bm as useExcludeUsers,uf as useExportApiLogs,cf as useExportWebhooksLogs,Sb as useFeatureFlags,Fb as useFirebaseUserSubscribe,kf as useGenerateFeedback,Eg as useGetAccounts,Sg as useGetAccountsByUser,Rg as useGetAccountsForImpersonation,Cg as useGetAccountsV2,Yb as useGetAllConfigRules,hg as useGetAllOrganizations,Eb as useGetAllReconciliationsAdvancements,jb as useGetAllReconciliationsAgenda,kb as useGetAllReconciliationsAlerts,Cb as useGetAllReconciliationsFees,_b as useGetAllReconciliationsSales,gb as useGetAllTableColumns,sg as useGetAllowedIps,zb as useGetApiLogsDetailByPaymentCode,Tb as useGetAuditEvents,Pg as useGetAuditLogsFilters,Ib as useGetAuditMonitorEventDetail,Nm as useGetBatchRefundProcessedFileDownload,qm as useGetBatchRefundUserFileDownload,Jb as useGetBatchRefunds,Hb as useGetBlackList,Gb as useGetBlockListSummary,Hf as useGetCardBrands,av as useGetChartsByUser,rv as useGetChartsByUserWithResults,ty as useGetCheckoutTemplate,ey as useGetCheckouts,Gm as useGetConditionalConfigRules,Wb as useGetConfigAllowlist,vg as useGetConnections,yg as useGetConnectionsByPaymentMethod,Lb as useGetCountriesConfigPaymentLink,Nb as useGetCountriesConfigPaymentLinkV2,rg as useGetCredentials,af as useGetCredentialsMFA,cg as useGetCustomizedApiKeys,ug as useGetCustomizedApiKeysAccounts,ig as useGetCustomizedApiKeysMembers,lg as useGetCustomizedApiKeysProducts,Ym as useGetCustomizedApiKeysToken,Dg as useGetDashboardStaticContents,kg as useGetDialogs,Iy as useGetDownloadReport,dm as useGetEmailOtp,bg as useGetHashPylon,yy as useGetImpersonationEnabled,gy as useGetImpersonationUsers,Jy as useGetInsightsReport,Xy as useGetInsightsReportAgain,Mb as useGetInstallmentPlans,gg as useGetIntegrationByAccountV2,fg as useGetIntegrationParams,sv as useGetLanguages,Lg as useGetLocales,fy as useGetLoginMethods,ev as useGetMFAConfig,Zb as useGetMFAExcludedUsers,tv as useGetMFAStatus,Tg as useGetMenu,Ey as useGetMergedNotifications,oy as useGetNameAndIcon,cv as useGetNetworkTokensOnboardingByOrganization,wy as useGetNotificationsCustomer,Cy as useGetNotificationsNumberMutation,pg as useGetOrganization,Vf as useGetPaymentFilters,Db as useGetPaymentLinkByCode,Pb as useGetPaymentLinks,Wf as useGetPaymentMethodsAndProviders,Gf as useGetPaymentMetricsFilters,Ig as useGetPaymentStatusesStyles,Kf as useGetPaymentTransactionsDetails,Mf as useGetPaymentV2,Ff as useGetPaymentsMethodsByCountry,Xf as useGetPayoutDetail,Zf as useGetPayoutHistoryDetail,Yf as useGetPayoutTransactionDetail,xg as useGetPendingDuplicateAccounts,hy as useGetPermissions,qy as useGetPermissionsCatalog,dy as useGetProfile,eg as useGetProofOfCancel,tg as useGetProofOfPayment,mg as useGetProviderParams,yb as useGetReconciliationActive,wb as useGetReconciliationAgendaInsightsByKey,fb as useGetReconciliationFilters,mb as useGetReconciliationMetrics,Ag as useGetReconciliationTransactionStatusesStyles,pb as useGetReconciliationTransactions,bb as useGetReconciliationsReportColumns,vb as useGetReconciliationsReportTemplates,zy as useGetRefundPdf,Ay as useGetReportColumns,Oy as useGetReportTemplates,xy as useGetReportsList,Ty as useGetReportsListMultiEnv,ry as useGetRequiredFields,Ly as useGetRoles,Ny as useGetRolesPermissions,Zg as useGetRoutingMonitorsTemplate,Yg as useGetRoutingMonitorsTemplates,Km as useGetRule,nv as useGetSamlConfig,Fm as useGetScheduledReportsList,hb as useGetSettlements,Bg as useGetSmartRoutingConditionPaymentMethod,Ug as useGetSmartRoutingConditionTypes,Fg as useGetSmartRoutingConditionTypesValues,My as useGetSmartRoutingDataReport,Vg as useGetSmartRoutingDeclineGroups,qg as useGetSmartRoutingMethods,Hg as useGetSmartRoutingNextRoute,Gg as useGetSmartRoutingPaymentRoute,$g as useGetSmartRoutingSearchConditionValues,Kg as useGetSmartRoutingSimulateConditionTypeValues,Mg as useGetSmartRoutingWorkflow,Wg as useGetSmartRoutingWorkflowVersion,iy as useGetStylingSdkDynamic,uy as useGetStylingSettings,cy as useGetStylingSettingsV2,sy as useGetStylingTheme,Ub as useGetSubscriptionByCode,Bb as useGetSubscriptionPayments,Py as useGetTeamsFiltersMembers,zg as useGetTimeZoneCatalog,qb as useGetTimezonePaymentLink,lm as useGetTokenValidation,Uf as useGetTransactionDetailsV2,$f as useGetTransactionHistoryByPaymentCode,Bf as useGetTransactionRawResponse,Og as useGetTransactionStatusesStyles,uv as useGetTranslations,py as useGetUserFull,by as useGetUsersToImpersonate,_y as useGetValidateOpsgenieKey,jg as useGetWebhookParamsV2,_g as useGetWebhooksV2Detail,wg as useGetWebhooksV3,tb as useInsights3dsConversionRateAndEvolution,nb as useInsights3dsDeclineReasons,ob as useInsights3dsFrictionlessVsChallenge,eb as useInsights3dsVolumeAndCountTx,db as useInsightsChargebacksByCardBrand,ub as useInsightsChargebacksByProviderAndCardBrand,sb as useInsightsChargebacksDisputed,cb as useInsightsChargebacksReasonsDistribution,lb as useInsightsChargebacksStatusDistribution,rb as useInsightsChargebacksTotalRateAndEvolution,ab as useInsightsChargebacksVolumeAndCountTx,ib as useInsightsChargebacksWinRate,Uy as useInsightsConversionRateMetricsV2,Gy as useInsightsCustomerPaymentsAndFraudMetrics,Fy as useInsightsFallbackMetrics,Zy as useInsightsFraudScreeningConversionRate,Yy as useInsightsFraudScreeningVolumeAndCountTx,Qy as useInsightsHomeMetrics,Ky as useInsightsOverviewMetrics,$y as useInsightsOverviewMetricsV3,Vy as useInsightsTotalPaymentsAndFraudMetrics,Wy as useInsightsVolumeMetrics,Hy as useInsightsVolumeMetricsV2,uh as useInviteUsersMultiaccountMassive,Ng as useIsTesting,rm as useListSubscriptions,ph as useLoginMethods,Xg as useNetworkTokensOnboarding,Zp as useNewPostConnectionValidate,Vp as usePatchAccountV2,km as usePatchAddAllowlistItems,dg as usePatchAllowedIps,jm as usePatchAllowlist,iv as usePatchAndExecuteChart,nf as usePatchApiKeysEditNote,bm as usePatchChangeStatusAllowlist,vm as usePatchChangeStatusAllowlistItem,_f as usePatchChartName,eh as usePatchConnection,Xm as usePathCreateCustomizedApiKeys,Sy as usePathNotifications,em as usePauseSubscription,ag as usePayoutsFilters,og as usePayoutsList,Fp as usePostAccount,Qb as usePostAllowlistMultiAccount,of as usePostApiKeysRoll,Ob as usePostApiLogs,rf as usePostAuditMonitors,Lm as usePostBatchRefundByFile,xm as usePostBlackListBatch,Sm as usePostBlackListItems,wm as usePostBlackListMultiAccount,Vb as usePostBlockList,dh as usePostCall,Jp as usePostChangeStatusConnection,Yp as usePostConnectionMultiAccount,ym as usePostCreateAllowlistMultiAccount,Jm as usePostCreateCustomizedApiKeys,ff as usePostCreateInsightsReport,$m as usePostCreateRuleMultiAccount,Zm as usePostCredentialsValidatePassword,ef as usePostCredentialsValidatePasswordRegularUser,th as usePostDefaultRoutes,Qm as usePostEditRule,Jf as usePostFraudTransactions,fm as usePostGetAllowlistItems,gm as usePostGetAllowlistMultiAccount,Dy as usePostMembersPaginatedV2,oh as usePostNetworkTokensOnboarding,qf as usePostPaymentsEvaluated,Nf as usePostPaymentsLazy,Hh as usePostSlackMessageChannel,Qf as usePostTransactions,im as usePostUserSettings,cm as usePostUserSettingsPinned,um as usePostUserSettingsTables,sm as usePostUserThemeSettings,Qp as usePostValideStatusConnection,Xb as usePostVelocityRules,Ab as usePostWebhookLogs,Mp as usePostWebhookMultiAccount,Qg as useProviderConversionRatesData,bh as useProviderRawResponse,Th as usePublishVersion,Gp as usePutAccountPrincipal,Kp as usePutAccountsUserMassive,_m as usePutBlackListType,Xp as usePutCosts,kv as useRecoveredPaymentsByDay,vv as useRecoveredTPVByDay,am as useRescheduleSubscription,sf as useResendWebhooks,tm as useResumeSubscription,Hp as useRetryDuplicateAccount,Ih as useSaveVersion,Ev as useSearchScheduleById,_v as useSearchSchedules,wv as useSearchTemplateById,jv as useSearchTemplates,ng as useSendPaymentNotification,Gh as useSetCustodian,Dh as useSmartRoutingCreateDeclinedGroup,Nh as useSmartRoutingEditWorkflowName,Bh as useSmartRoutingMultiAccountDeclinedGroupCreate,Uh as useSmartRoutingRemoveDeclinedGroup,qh as useSmartRoutingSimulateTransaction,Lh as useSmartRoutingToggleFavorite,Ph as useSmartRoutingUpdateDeclinedGroup,Mh as useSmartRoutingUpdateMonitorRedistribution,zh as useToggleMethod,ch as useUnInviteUsersV2,hm as useUnrollUserV2,mh as useUpdateCheckoutTemplate,hh as useUpdateIsActiveCheckout,Um as useUpdateMFAConfig,ah as useUpdateOrganizationStatus,sh as useUpdateProfile,mf as useUpdateReconciliationAlert,df as useUpdateReconciliationReportTemplate,Rh as useUpdateReportTemplate,yf as useUpdateSamlConfig,Hm as useUpdateScheduledReport,fh as useUpdateStylingTheme,om as useUpdateSubscription,Tf as useUpdateTemplateSelection,Bp as useUpdateWebhookV2,Pm as useUploadBatchRefundsFileV2,Dm as useUploadBatchRefundsV2,Mm as useUploadFileS3ClientBatchRefunds,zm as useValiateAllowlistItems,Om as useValidateBlockListItems,nh as useValidateCredentials,rh as useValidateOrgName,mm as useValidatePasswordStatus,By as useViewMoreMetrics};
233
+ const Av=7,zv=6,Pv=5,Dv=4,Lv=3,Nv=2,qv=1,Mv=0;function Uv(e,t,n){var o;if((n=n||{}).threshold=null!=(o=n.threshold)?o:qv,!n.accessors){const o=Bv(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],r=Vv(a),i=Wv(e,a);for(let e=0,t=i.length;e<t;e++)n.push({itemValue:i[e],attributes:r})}return n}(e,n.accessors),r={rankedValue:e,rank:Mv,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let e=0;e<a.length;e++){const o=a[e];let i=Bv(o.itemValue,t,n);const{minRanking:s,maxRanking:u,threshold:c=n.threshold}=o.attributes;i<s&&i>=qv?i=s:i>u&&(i=u),i=Math.min(i,u),i>=c&&i>r.rank&&(r.rank=i,r.passed=!0,r.accessorIndex=e,r.accessorThreshold=c,r.rankedValue=o.itemValue)}return r}function Bv(e,t,n){return e=Fv(e,n),(t=Fv(t,n)).length>e.length?Mv:e===t?Av:(e=e.toLowerCase())===(t=t.toLowerCase())?zv:e.startsWith(t)?Pv:e.includes(` ${t}`)?Dv:e.includes(t)?Lv:1===t.length?Mv:function(e){let t="";return e.split(" ").forEach((e=>{e.split("-").forEach((e=>{t+=e.substr(0,1)}))})),t}(e).includes(t)?Nv:function(e,t){let n=0,o=0;function a(e,t,o){for(let a=o,r=t.length;a<r;a++){if(t[a]===e)return n+=1,a+1}return-1}function r(e){const o=1/e,a=n/t.length;return qv+a*o}const i=a(t[0],e,0);if(i<0)return Mv;o=i;for(let n=1,r=t.length;n<r;n++){o=a(t[n],e,o);if(!(o>-1))return Mv}const s=o-i;return r(s)}(e,t)}function Fv(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=e.replace(Ov,(e=>Tv[e]))),e}function Wv(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 Hv={maxRanking:1/0,minRanking:-1/0};function Vv(e){return"function"==typeof e?Hv:{...Hv,...e}}function Gv(e,t){const[n,o]=i.useState();i.useEffect((()=>{const n=(e=>{try{const t=localStorage.getItem(e);return"string"==typeof t?JSON.parse(t):void 0}catch{return}})(e);o(null==n?"function"==typeof t?t():t:n)}),[t,e]);return[n,i.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 Kv,$v=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}(),Qv=function(){function e(e){this.generateIdentifier=e,this.kv=new $v}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}(),Jv=(Kv=function(e,t){return Kv=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])},Kv(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}Kv(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Xv=function(e){function t(){var t=e.call(this,(function(e){return e.name}))||this;return t.classToAllowedProps=new Map,t}return Jv(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}(Qv),Yv=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,r=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i};function Zv(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 r=o[a];if(t(r))return r}}function ek(e,t){Object.entries(e).forEach((function(e){var n=Yv(e,2),o=n[0],a=n[1];return t(a,o)}))}function tk(e,t){return-1!==e.indexOf(t)}function nk(e,t){for(var n=0;n<e.length;n++){var o=e[n];if(t(o))return o}}var ok=function(){function e(){this.transfomers={}}return e.prototype.register=function(e){this.transfomers[e.name]=e},e.prototype.findApplicable=function(e){return Zv(this.transfomers,(function(t){return t.isApplicable(e)}))},e.prototype.findByName=function(e){return this.transfomers[e]},e}(),ak=function(e){return void 0===e},rk=function(e){return"object"==typeof e&&null!==e&&(e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype))},ik=function(e){return rk(e)&&0===Object.keys(e).length},sk=function(e){return Array.isArray(e)},uk=function(e){return e instanceof Map},ck=function(e){return e instanceof Set},lk=function(e){return"Symbol"===function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e)},dk=function(e){return"number"==typeof e&&isNaN(e)},pk=function(e){return function(e){return"boolean"==typeof e}(e)||function(e){return null===e}(e)||ak(e)||function(e){return"number"==typeof e&&!isNaN(e)}(e)||function(e){return"string"==typeof e}(e)||lk(e)},hk=function(e){return e.replace(/\./g,"\\.")},mk=function(e){return e.map(String).map(hk).join(".")},fk=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 r=n;return t.push(r),t},gk=function(){return gk=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},gk.apply(this,arguments)},yk=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,r=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},bk=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e};function vk(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var kk=[vk(ak,"undefined",(function(){return null}),(function(){})),vk((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)})),vk((function(e){return e instanceof Date&&!isNaN(e.valueOf())}),"Date",(function(e){return e.toISOString()}),(function(e){return new Date(e)})),vk((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})),vk((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)})),vk(ck,"set",(function(e){return bk([],yk(e.values()))}),(function(e){return new Set(e)})),vk(uk,"map",(function(e){return bk([],yk(e.entries()))}),(function(e){return new Map(e)})),vk((function(e){return dk(e)||((t=e)===1/0||t===-1/0);var t}),"number",(function(e){return dk(e)?"NaN":e>0?"Infinity":"-Infinity"}),Number),vk((function(e){return 0===e&&1/e==-1/0}),"number",(function(){return"-0"}),Number),vk((function(e){return e instanceof URL}),"URL",(function(e){return e.toString()}),(function(e){return new URL(e)}))];function jk(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var wk=jk((function(e,t){return!!lk(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})),_k=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((function(e,t){return e[t.name]=t,e}),{}),Ek=jk((function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}),(function(e){return["typed-array",e.constructor.name]}),(function(e){return bk([],yk(e))}),(function(e,t){var n=_k[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)}));function Ck(e,t){return!!(null==e?void 0:e.constructor)&&!!t.classRegistry.getIdentifier(e.constructor)}var Sk=jk(Ck,(function(e,t){return["class",t.classRegistry.getIdentifier(e.constructor)]}),(function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return gk({},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)})),Rk=jk((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)})),xk=[Sk,wk,Rk,Ek],Tk=function(e,t){var n=nk(xk,(function(n){return n.isApplicable(e,t)}));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var o=nk(kk,(function(n){return n.isApplicable(e,t)}));return o?{value:o.transform(e,t),type:o.annotation}:void 0},Ik={};kk.forEach((function(e){Ik[e.annotation]=e}));var Ok=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function Ak(e){if(tk(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(tk(e,"prototype"))throw new Error("prototype is not allowed as a property");if(tk(e,"constructor"))throw new Error("constructor is not allowed as a property")}var zk=function(e,t,n){if(Ak(t),0===t.length)return n(e);for(var o=e,a=0;a<t.length-1;a++){var r=t[a];if(sk(o))o=o[+r];else if(rk(o))o=o[r];else if(ck(o)){o=Ok(o,i=+r)}else if(uk(o)){if(a===t.length-2)break;var i=+r,s=0==+t[++a]?"key":"value",u=Ok(o,i);switch(s){case"key":o=u;break;case"value":o=o.get(u)}}}var c=t[t.length-1];if(sk(o)?o[+c]=n(o[+c]):rk(o)&&(o[c]=n(o[c])),ck(o)){var l=Ok(o,+c),d=n(l);l!==d&&(o.delete(l),o.add(d))}if(uk(o)){i=+t[t.length-2];var p=Ok(o,i);switch(s=0==+c?"key":"value"){case"key":var h=n(p);o.set(h,o.get(p)),h!==p&&o.delete(p);break;case"value":o.set(p,n(o.get(p)))}}return e},Pk=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,r=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},Dk=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e};function Lk(e,t,n){if(void 0===n&&(n=[]),e)if(sk(e)){var o=Pk(e,2),a=o[0],r=o[1];r&&ek(r,(function(e,o){Lk(e,t,Dk(Dk([],Pk(n)),Pk(fk(o))))})),t(a,n)}else ek(e,(function(e,o){return Lk(e,t,Dk(Dk([],Pk(n)),Pk(fk(o))))}))}function Nk(e,t,n){return Lk(t,(function(t,o){e=zk(e,o,(function(e){return function(e,t,n){if(!sk(t)){var o=Ik[t];if(!o)throw new Error("Unknown transformation: "+t);return o.untransform(e,n)}switch(t[0]){case"symbol":return wk.untransform(e,t,n);case"class":return Sk.untransform(e,t,n);case"custom":return Rk.untransform(e,t,n);case"typed-array":return Ek.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}}(e,t,n)}))})),e}function qk(e,t){function n(t,n){var o=function(e,t){Ak(t);for(var n=0;n<t.length;n++){var o=t[n];if(ck(e))e=Ok(e,+o);else if(uk(e)){var a=+o,r=0==+t[++n]?"key":"value",i=Ok(e,a);switch(r){case"key":e=i;break;case"value":e=e.get(i)}}else e=e[o]}return e}(e,fk(n));t.map(fk).forEach((function(t){e=zk(e,t,(function(){return o}))}))}if(sk(t)){var o=Pk(t,2),a=o[0],r=o[1];a.forEach((function(t){e=zk(e,fk(t),(function(){return e}))})),r&&ek(r,n)}else ek(t,n);return e}var Mk=function(e,t,n,o,a,r,i){var s;void 0===a&&(a=[]),void 0===r&&(r=[]),void 0===i&&(i=new Map);var u=pk(e);if(!u){!function(e,t,n){var o=n.get(e);o?o.push(t):n.set(e,[t])}(e,a,t);var c=i.get(e);if(c)return o?{transformedValue:null}:c}if(!function(e,t){return rk(e)||sk(e)||uk(e)||ck(e)||Ck(e,t)}(e,n)){var l=Tk(e,n),d=l?{transformedValue:l.value,annotations:[l.type]}:{transformedValue:e};return u||i.set(e,d),d}if(tk(r,e))return{transformedValue:null};var p=Tk(e,n),h=null!==(s=null==p?void 0:p.value)&&void 0!==s?s:e,m=sk(h)?[]:{},f={};ek(h,(function(s,u){var c=Mk(s,t,n,o,Dk(Dk([],Pk(a)),[u]),Dk(Dk([],Pk(r)),[e]),i);m[u]=c.transformedValue,sk(c.annotations)?f[u]=c.annotations:rk(c.annotations)&&ek(c.annotations,(function(e,t){f[hk(u)+"."+t]=e}))}));var g=ik(f)?{transformedValue:m,annotations:p?[p.type]:void 0}:{transformedValue:m,annotations:p?[p.type,f]:f};return u||i.set(e,g),g};function Uk(e){return Object.prototype.toString.call(e).slice(8,-1)}function Bk(e){return"Array"===Uk(e)}function Fk(e,t={}){if(Bk(e))return e.map((e=>Fk(e,t)));if(!function(e){if("Object"!==Uk(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(Bk(t.props)&&!t.props.includes(o))return n;return function(e,t,n,o,a){const r={}.propertyIsEnumerable.call(o,t)?"enumerable":"nonenumerable";"enumerable"===r&&(e[t]=n),a&&"nonenumerable"===r&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}(n,o,Fk(e[o],t),e,t.nonenumerable),n}),{})}var Wk=function(){return Wk=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},Wk.apply(this,arguments)},Hk=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,r=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},Vk=function(e,t){for(var n=0,o=t.length,a=e.length;n<o;n++,a++)e[a]=t[n];return e},Gk=function(){function e(e){var t=(void 0===e?{}:e).dedupe,n=void 0!==t&&t;this.classRegistry=new Xv,this.symbolRegistry=new Qv((function(e){var t;return null!==(t=e.description)&&void 0!==t?t:""})),this.customTransformerRegistry=new ok,this.allowedErrorProps=[],this.dedupe=n}return e.prototype.serialize=function(e){var t=new Map,n=Mk(e,t,this,this.dedupe),o={json:n.transformedValue};n.annotations&&(o.meta=Wk(Wk({},o.meta),{values:n.annotations}));var a,r,i,s,u=(a=t,r=this.dedupe,i={},s=void 0,a.forEach((function(e){if(!(e.length<=1)){r||(e=e.map((function(e){return e.map(String)})).sort((function(e,t){return e.length-t.length})));var t=Pk(e),n=t[0],o=t.slice(1);0===n.length?s=o.map(mk):i[mk(n)]=o.map(mk)}})),s?ik(i)?[s]:[s,i]:ik(i)?void 0:i);return u&&(o.meta=Wk(Wk({},o.meta),{referentialEqualities:u})),o},e.prototype.deserialize=function(e){var t=e.json,n=e.meta,o=Fk(t);return(null==n?void 0:n.values)&&(o=Nk(o,n.values,this)),(null==n?void 0:n.referentialEqualities)&&(o=qk(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(Wk({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,Vk([],Hk(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 Kk={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",paused:"#8c49eb",warning:"#ffb200"},$k=i.createContext(Kk);function Qk({theme:e,...t}){return i.createElement($k.Provider,xv({value:e},t))}function Jk({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 Xk(e){return"fetching"===e.state.fetchStatus?"fetching":e.getObserversCount()?"paused"===e.state.fetchStatus?"paused":e.isStale()?"stale":"fresh":"inactive"}function Yk(e,t,n={}){return i.forwardRef((({style:o,...a},r)=>{const s=i.useContext($k),u=Object.entries(n).reduce(((e,[t,n])=>function(e){const[t,n]=i.useState((()=>{if("undefined"!=typeof window)return window.matchMedia(e).matches}));return i.useEffect((()=>{if("undefined"!=typeof window){const t=window.matchMedia(e),o=({matches:e})=>n(e);return t.addListener(o),()=>{t.removeListener(o)}}}),[t,e,n]),t}(t)?{...e,..."function"==typeof n?n(a,s):n}:e),{});return i.createElement(e,{...a,style:{..."function"==typeof t?t(a,s):t,...o,...u},ref:r})}))}const Zk=(e,t=!1)=>{const{json:n}=Gk.serialize(e);return JSON.stringify(n,null,t?2:void 0)},ej=e=>"idle"!==e.state.fetchStatus?0:e.getObserversCount()?e.isStale()?2:1:3,tj=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,nj={"Status > Last Updated":(e,t)=>ej(e)===ej(t)?tj(e,t):ej(e)>ej(t)?1:-1,"Query Hash":(e,t)=>e.queryHash.localeCompare(t.queryHash),"Last Updated":tj},oj=500,aj={top:"bottom",bottom:"top",left:"right",right:"left"};function rj(e){return["left","right"].includes(e)}function ij(e){return aj[e]}function sj(e,t){return""+e+(t.charAt(0).toUpperCase()+t.slice(1))}function uj(e="bottom"){const t=rj(e),n=ij(e),o=sj("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 cj=Yk("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"}}),lj=Yk("div",(()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"})),{"(max-width: 700px)":(e,t)=>({borderTop:"2px solid "+t.gray})}),dj=Yk("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"}))),pj=Yk("span",{display:"flex",flexWrap:"wrap",gap:"0.5em",fontSize:"0.9em"}),hj=Yk("span",{display:"inline-flex",alignItems:"center",padding:".2em .4em",fontWeight:"bold",textShadow:"0 0 10px black",borderRadius:".2em"}),mj=Yk("code",{fontSize:".9em",color:"inherit",background:"inherit"}),fj=Yk("input",((e,t)=>({backgroundColor:t.inputBackgroundColor,border:0,borderRadius:".2em",color:t.inputTextColor,fontSize:".9em",lineHeight:"1.3",padding:".3em .4em"}))),gj=Yk("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 yj({text:e}){return i.createElement("span",{style:{position:"absolute",width:"0.1px",height:"0.1px",overflow:"hidden"}},e)}const bj=Yk("div",{fontFamily:"Menlo, monospace",fontSize:"1em",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),vj=Yk("span",{color:"white"}),kj=Yk("button",{cursor:"pointer",color:"white"}),jj=Yk("button",{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}),wj=({value:e})=>{const[t,n]=i.useState("NoCopy");return i.createElement("button",{onClick:"NoCopy"===t?()=>{navigator.clipboard.writeText(Gk.stringify(e)).then((()=>{n("SuccessCopy"),setTimeout((()=>{n("NoCopy")}),1500)}),(e=>{console.error("Failed to copy: ",e),n("ErrorCopy"),setTimeout((()=>{n("NoCopy")}),1500)}))}:void 0,style:{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}},"NoCopy"===t?i.createElement(Rj,null):"SuccessCopy"===t?i.createElement(Tj,null):i.createElement(xj,null))},_j=Yk("span",((e,t)=>({color:t.danger}))),Ej=Yk("div",{marginLeft:".1em",paddingLeft:"1em",borderLeft:"2px solid rgba(0,0,0,.15)"}),Cj=Yk("span",{color:"grey",fontSize:".7em"}),Sj=({expanded:e,style:t={}})=>i.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:"rotate("+(e?90:0)+"deg) "+(t.transform||""),...t}},"▶"),Rj=()=>i.createElement("span",{"aria-label":"Copy object to clipboard",title:"Copy object to clipboard",style:{paddingLeft:"1em"}},i.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10"},i.createElement("path",{fill:"currentColor",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"}),i.createElement("path",{fill:"currentColor",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"}))),xj=()=>i.createElement("span",{"aria-label":"Failed copying to clipboard",title:"Failed copying to clipboard",style:{paddingLeft:"1em",display:"flex",alignItems:"center"}},i.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10",display:"block"},i.createElement("path",{fill:"red",d:"M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z"})),i.createElement("span",{style:{color:"red",fontSize:"12px",paddingLeft:"4px",position:"relative",top:"2px"}},"See console")),Tj=()=>i.createElement("span",{"aria-label":"Object copied to clipboard",title:"Object copied to clipboard",style:{paddingLeft:"1em",display:"inline-block",verticalAlign:"middle"}},i.createElement("svg",{height:"16",viewBox:"0 0 16 16",width:"16",display:"block"},i.createElement("path",{fill:"green",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"})));const Ij=({handleEntry:e,label:t,value:n,subEntries:o=[],subEntryPages:a=[],type:r,expanded:s=!1,copyable:u=!1,toggleExpanded:c,pageSize:l})=>{const[d,p]=i.useState([]);return i.createElement(bj,{key:t},a.length?i.createElement(i.Fragment,null,i.createElement(jj,{onClick:()=>c()},i.createElement(Sj,{expanded:s})," ",t," ",i.createElement(Cj,null,"iterable"===String(r).toLowerCase()?"(Iterable) ":"",o.length," ",o.length>1?"items":"item")),u?i.createElement(wj,{value:n}):null,s?1===a.length?i.createElement(Ej,null,o.map(e)):i.createElement(Ej,null,a.map(((t,n)=>i.createElement("div",{key:n},i.createElement(bj,null,i.createElement(kj,{onClick:()=>p((e=>e.includes(n)?e.filter((e=>e!==n)):[...e,n]))},i.createElement(Sj,{expanded:s})," [",n*l," ..."," ",n*l+l-1,"]"),d.includes(n)?i.createElement(Ej,null,t.map(e)):null))))):null):i.createElement(i.Fragment,null,i.createElement(vj,null,t,":")," ",i.createElement(_j,null,Zk(n))))};function Oj({value:e,defaultExpanded:t,renderer:n=Ij,pageSize:o=100,copyable:a=!1,...r}){const[s,u]=i.useState(Boolean(t)),c=i.useCallback((()=>u((e=>!e))),[]);let l=typeof e,d=[];const p=e=>{const n=!0===t?{[e.label]:!0}:null==t?void 0:t[e.label];return{...e,defaultExpanded:n}};var h;Array.isArray(e)?(l="array",d=e.map(((e,t)=>p({label:t.toString(),value:e})))):null!==e&&"object"==typeof e&&(h=e,Symbol.iterator in h)&&"function"==typeof e[Symbol.iterator]?(l="Iterable",d=Array.from(e,((e,t)=>p({label:t.toString(),value:e})))):"object"==typeof e&&null!==e&&(l="object",d=Object.entries(e).map((([e,t])=>p({label:e,value:t}))));const 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}(d,o);return n({handleEntry:t=>i.createElement(Oj,xv({key:t.label,value:e,renderer:n,copyable:a},r,t)),type:l,subEntries:d,subEntryPages:m,value:e,expanded:s,copyable:a,toggleExpanded:c,pageSize:o,...r})}function Aj(e){return i.createElement("svg",xv({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),i.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(-33.000000, 0.000000)"},i.createElement("path",{d:"M72.7239712,61.3436237 C69.631224,46.362877 68.9675112,34.8727722 70.9666331,26.5293551 C72.1555965,21.5671678 74.3293088,17.5190846 77.6346064,14.5984631 C81.1241394,11.5150478 85.5360327,10.0020122 90.493257,10.0020122 C98.6712013,10.0020122 107.26826,13.7273214 116.455725,20.8044264 C120.20312,23.6910458 124.092437,27.170411 128.131651,31.2444746 C128.45314,30.8310265 128.816542,30.4410453 129.22143,30.0806152 C140.64098,19.9149716 150.255245,13.5989272 158.478408,11.1636507 C163.367899,9.715636 167.958526,9.57768202 172.138936,10.983031 C176.551631,12.4664684 180.06766,15.5329489 182.548314,19.8281091 C186.642288,26.9166735 187.721918,36.2310983 186.195595,47.7320243 C185.573451,52.4199112 184.50985,57.5263831 183.007094,63.0593153 C183.574045,63.1277086 184.142416,63.2532808 184.705041,63.4395297 C199.193932,68.2358678 209.453582,73.3937462 215.665021,79.2882839 C219.360669,82.7953831 221.773972,86.6998434 222.646365,91.0218204 C223.567176,95.5836746 222.669313,100.159332 220.191548,104.451297 C216.105211,111.529614 208.591643,117.11221 197.887587,121.534031 C193.589552,123.309539 188.726579,124.917559 183.293259,126.363748 C183.541176,126.92292 183.733521,127.516759 183.862138,128.139758 C186.954886,143.120505 187.618598,154.61061 185.619477,162.954027 C184.430513,167.916214 182.256801,171.964297 178.951503,174.884919 C175.46197,177.968334 171.050077,179.48137 166.092853,179.48137 C157.914908,179.48137 149.31785,175.756061 140.130385,168.678956 C136.343104,165.761613 132.410866,162.238839 128.325434,158.108619 C127.905075,158.765474 127.388968,159.376011 126.77857,159.919385 C115.35902,170.085028 105.744755,176.401073 97.5215915,178.836349 C92.6321009,180.284364 88.0414736,180.422318 83.8610636,179.016969 C79.4483686,177.533532 75.9323404,174.467051 73.4516862,170.171891 C69.3577116,163.083327 68.2780823,153.768902 69.8044053,142.267976 C70.449038,137.410634 71.56762,132.103898 73.1575891,126.339009 C72.5361041,126.276104 71.9120754,126.144816 71.2949591,125.940529 C56.8060684,121.144191 46.5464184,115.986312 40.3349789,110.091775 C36.6393312,106.584675 34.2260275,102.680215 33.3536352,98.3582381 C32.4328237,93.7963839 33.3306866,89.2207269 35.8084524,84.9287618 C39.8947886,77.8504443 47.4083565,72.2678481 58.1124133,67.8460273 C62.5385143,66.0176154 67.5637208,64.366822 73.1939394,62.8874674 C72.9933393,62.3969171 72.8349374,61.8811235 72.7239712,61.3436237 Z",fill:"#002C4B",fillRule:"nonzero",transform:"translate(128.000000, 95.000000) scale(-1, 1) translate(-128.000000, -95.000000) "}),i.createElement("path",{d:"M113.396882,64 L142.608177,64 C144.399254,64 146.053521,64.958025 146.944933,66.5115174 L161.577138,92.0115174 C162.461464,93.5526583 162.461464,95.4473417 161.577138,96.9884826 L146.944933,122.488483 C146.053521,124.041975 144.399254,125 142.608177,125 L113.396882,125 C111.605806,125 109.951539,124.041975 109.060126,122.488483 L94.4279211,96.9884826 C93.543596,95.4473417 93.543596,93.5526583 94.4279211,92.0115174 L109.060126,66.5115174 C109.951539,64.958025 111.605806,64 113.396882,64 Z M138.987827,70.2765273 C140.779849,70.2765273 142.434839,71.2355558 143.325899,72.7903404 L154.343038,92.0138131 C155.225607,93.5537825 155.225607,95.4462175 154.343038,96.9861869 L143.325899,116.20966 C142.434839,117.764444 140.779849,118.723473 138.987827,118.723473 L117.017233,118.723473 C115.225211,118.723473 113.570221,117.764444 112.67916,116.20966 L101.662022,96.9861869 C100.779452,95.4462175 100.779452,93.5537825 101.662022,92.0138131 L112.67916,72.7903404 C113.570221,71.2355558 115.225211,70.2765273 117.017233,70.2765273 L138.987827,70.2765273 Z M135.080648,77.1414791 L120.924411,77.1414791 C119.134228,77.1414791 117.480644,78.0985567 116.5889,79.6508285 L116.5889,79.6508285 L109.489217,92.0093494 C108.603232,93.5515958 108.603232,95.4484042 109.489217,96.9906506 L109.489217,96.9906506 L116.5889,109.349172 C117.480644,110.901443 119.134228,111.858521 120.924411,111.858521 L120.924411,111.858521 L135.080648,111.858521 C136.870831,111.858521 138.524416,110.901443 139.41616,109.349172 L139.41616,109.349172 L146.515843,96.9906506 C147.401828,95.4484042 147.401828,93.5515958 146.515843,92.0093494 L146.515843,92.0093494 L139.41616,79.6508285 C138.524416,78.0985567 136.870831,77.1414791 135.080648,77.1414791 L135.080648,77.1414791 Z M131.319186,83.7122186 C133.108028,83.7122186 134.760587,84.6678753 135.652827,86.2183156 L138.983552,92.0060969 C139.87203,93.5500005 139.87203,95.4499995 138.983552,96.9939031 L135.652827,102.781684 C134.760587,104.332125 133.108028,105.287781 131.319186,105.287781 L124.685874,105.287781 C122.897032,105.287781 121.244473,104.332125 120.352233,102.781684 L117.021508,96.9939031 C116.13303,95.4499995 116.13303,93.5500005 117.021508,92.0060969 L120.352233,86.2183156 C121.244473,84.6678753 122.897032,83.7122186 124.685874,83.7122186 L131.319186,83.7122186 Z M128.003794,90.1848875 C126.459294,90.1848875 125.034382,91.0072828 124.263005,92.3424437 C123.491732,93.6774232 123.491732,95.3225768 124.263005,96.6575563 C125.034382,97.9927172 126.459294,98.8151125 128.001266,98.8151125 L128.001266,98.8151125 C129.545766,98.8151125 130.970678,97.9927172 131.742055,96.6575563 C132.513327,95.3225768 132.513327,93.6774232 131.742055,92.3424437 C130.970678,91.0072828 129.545766,90.1848875 128.003794,90.1848875 L128.003794,90.1848875 Z M93,94.5009646 L100.767764,94.5009646",fill:"#FFD94C"}),i.createElement("path",{d:"M87.8601729,108.357758 C89.1715224,107.608286 90.8360246,108.074601 91.5779424,109.399303 L91.5779424,109.399303 L92.0525843,110.24352 C95.8563392,116.982993 99.8190116,123.380176 103.940602,129.435068 C108.807881,136.585427 114.28184,143.82411 120.362479,151.151115 C121.316878,152.30114 121.184944,154.011176 120.065686,154.997937 L120.065686,154.997937 L119.454208,155.534625 C99.3465389,173.103314 86.2778188,176.612552 80.2480482,166.062341 C74.3500652,155.742717 76.4844915,136.982888 86.6513274,109.782853 C86.876818,109.179582 87.3045861,108.675291 87.8601729,108.357758 Z M173.534177,129.041504 C174.986131,128.785177 176.375496,129.742138 176.65963,131.194242 L176.65963,131.194242 L176.812815,131.986376 C181.782365,157.995459 178.283348,171 166.315764,171 C154.609745,171 139.708724,159.909007 121.612702,137.727022 C121.211349,137.235047 120.994572,136.617371 121,135.981509 C121.013158,134.480686 122.235785,133.274651 123.730918,133.287756 L123.730918,133.287756 L124.684654,133.294531 C132.305698,133.335994 139.714387,133.071591 146.910723,132.501323 C155.409039,131.82788 164.283523,130.674607 173.534177,129.041504 Z M180.408726,73.8119663 C180.932139,72.4026903 182.508386,71.6634537 183.954581,72.149012 L183.954581,72.149012 L184.742552,72.4154854 C210.583763,81.217922 220.402356,90.8916805 214.198332,101.436761 C208.129904,111.751366 190.484347,119.260339 161.26166,123.963678 C160.613529,124.067994 159.948643,123.945969 159.382735,123.618843 C158.047025,122.846729 157.602046,121.158214 158.388848,119.847438 L158.388848,119.847438 L158.889328,119.0105 C162.877183,112.31633 166.481358,105.654262 169.701854,99.0242957 C173.50501,91.1948179 177.073967,82.7907081 180.408726,73.8119663 Z M94.7383398,66.0363218 C95.3864708,65.9320063 96.0513565,66.0540315 96.6172646,66.3811573 C97.9529754,67.153271 98.3979538,68.8417862 97.6111517,70.1525615 L97.6111517,70.1525615 L97.1106718,70.9895001 C93.1228168,77.6836699 89.5186416,84.3457379 86.2981462,90.9757043 C82.49499,98.8051821 78.9260328,107.209292 75.5912744,116.188034 C75.0678608,117.59731 73.4916142,118.336546 72.045419,117.850988 L72.045419,117.850988 L71.2574475,117.584515 C45.4162372,108.782078 35.597644,99.1083195 41.8016679,88.5632391 C47.8700957,78.2486335 65.515653,70.7396611 94.7383398,66.0363218 Z M136.545792,34.4653746 C156.653461,16.8966864 169.722181,13.3874478 175.751952,23.9376587 C181.649935,34.2572826 179.515508,53.0171122 169.348673,80.2171474 C169.123182,80.8204179 168.695414,81.324709 168.139827,81.6422422 C166.828478,82.3917144 165.163975,81.9253986 164.422058,80.6006966 L164.422058,80.6006966 L163.947416,79.7564798 C160.143661,73.0170065 156.180988,66.6198239 152.059398,60.564932 C147.192119,53.4145727 141.71816,46.1758903 135.637521,38.8488847 C134.683122,37.6988602 134.815056,35.9888243 135.934314,35.0020629 L135.934314,35.0020629 Z M90.6842361,18 C102.390255,18 117.291276,29.0909926 135.387298,51.2729777 C135.788651,51.7649527 136.005428,52.3826288 136,53.0184911 C135.986842,54.5193144 134.764215,55.7253489 133.269082,55.7122445 L133.269082,55.7122445 L132.315346,55.7054689 C124.694302,55.6640063 117.285613,55.9284091 110.089277,56.4986773 C101.590961,57.17212 92.7164767,58.325393 83.4658235,59.9584962 C82.0138691,60.2148231 80.6245044,59.2578618 80.3403697,57.805758 L80.3403697,57.805758 L80.1871846,57.0136235 C75.2176347,31.0045412 78.7166519,18 90.6842361,18 Z",fill:"#FF4154"}))))}const zj=(e,t,n=!1)=>Ep.useSyncExternalStore(i.useCallback((t=>n?()=>{}:e.subscribe(ap.batchCalls(t))),[e,n]),t,t),Pj=i.forwardRef((function(e,t){const{isOpen:n=!0,styleNonce:o,setIsOpen:a,context:r,onDragStart:s,onPositionChange:u,showCloseButton:c,position:l,closeButtonProps:d={},errorTypes:p=[],...h}=e,{onClick:m,...f}=d,g=Tp({context:r}),y=g.getQueryCache(),[b,v]=Gv("reactQueryDevtoolsSortFn",Object.keys(nj)[0]),[k,j]=Gv("reactQueryDevtoolsFilter",""),[w,_]=Gv("reactQueryDevtoolsBaseSort",1),E=i.useMemo((()=>nj[b]),[b]),C=zj(y,(()=>y.getAll().length),!n),[S,R]=Gv("reactQueryDevtoolsActiveQueryHash",""),x=i.useMemo((()=>{const e=y.getAll();if(0===C)return[];const t=k?e.filter((e=>Uv(e.queryHash,k).passed)):[...e];return E?t.sort(((e,t)=>E(e,t)*w)):t}),[w,E,k,C,y]),[T,I]=i.useState(!1);return i.createElement(Qk,{theme:Kk},i.createElement(cj,xv({ref:t,className:"ReactQueryDevtoolsPanel","aria-label":"React Query Devtools Panel",id:"ReactQueryDevtoolsPanel"},h,{style:{height:oj,position:"relative",...h.style}}),i.createElement("style",{nonce:o,dangerouslySetInnerHTML:{__html:"\n .ReactQueryDevtoolsPanel * {\n scrollbar-color: "+Kk.backgroundAlt+" "+Kk.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: "+Kk.backgroundAlt+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-thumb, .ReactQueryDevtoolsPanel scrollbar-thumb {\n background: "+Kk.gray+";\n border-radius: .5em;\n border: 3px solid "+Kk.backgroundAlt+";\n }\n "}}),i.createElement("div",{style:uj(l),onMouseDown:s}),n&&i.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:"1px solid "+Kk.grayAlt,display:"flex",flexDirection:"column"}},i.createElement("div",{style:{padding:".5em",background:Kk.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},i.createElement("button",{type:"button","aria-label":"Close React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true",onClick:()=>a(!1),style:{display:"inline-flex",background:"none",border:0,padding:0,marginRight:".5em",cursor:"pointer"}},i.createElement(Aj,{"aria-hidden":!0}),i.createElement(yj,{text:"Close React Query Devtools"})),i.createElement("div",{style:{display:"flex",flexDirection:"column"}},i.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:".5em"}},i.createElement(Lj,{queryCache:y}),l&&u?i.createElement(gj,{"aria-label":"Panel position",value:l,style:{marginInlineStart:".5em"},onChange:e=>u(e.target.value)},i.createElement("option",{value:"left"},"Left"),i.createElement("option",{value:"right"},"Right"),i.createElement("option",{value:"top"},"Top"),i.createElement("option",{value:"bottom"},"Bottom")):null),i.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"0.5em"}},i.createElement(fj,{placeholder:"Filter","aria-label":"Filter by queryhash",value:null!=k?k:"",onChange:e=>j(e.target.value),onKeyDown:e=>{"Escape"===e.key&&j("")},style:{flex:"1",width:"100%"}}),i.createElement(gj,{"aria-label":"Sort queries",value:b,onChange:e=>v(e.target.value),style:{flex:"1",minWidth:75,marginRight:".5em"}},Object.keys(nj).map((e=>i.createElement("option",{key:e,value:e},"Sort by ",e)))),i.createElement(dj,{type:"button",onClick:()=>_((e=>-1*e)),style:{padding:".3em .4em",marginRight:".5em"}},1===w?"⬆ Asc":"⬇ Desc"),i.createElement(dj,{title:"Clear cache","aria-label":"Clear cache",type:"button",onClick:()=>y.clear(),style:{padding:".3em .4em",marginRight:".5em"}},"Clear"),i.createElement(dj,{type:"button",onClick:()=>{T?(Xd.setOnline(void 0),I(!1),window.dispatchEvent(new Event("online"))):(Xd.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"}},i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"2em",height:"2em",viewBox:"0 0 24 24",stroke:T?Kk.danger:"currentColor",fill:"none"},T?i.createElement(i.Fragment,null,i.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),i.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),i.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),i.createElement("path",{d:"M6.343 12.343a7.963 7.963 0 0 1 3.864 -2.14m4.163 .155a7.965 7.965 0 0 1 3.287 2"}),i.createElement("path",{d:"M3.515 9.515a12 12 0 0 1 3.544 -2.455m3.101 -.92a12 12 0 0 1 10.325 3.374"}),i.createElement("line",{x1:"3",y1:"3",x2:"21",y2:"21"})):i.createElement(i.Fragment,null,i.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),i.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),i.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),i.createElement("path",{d:"M6.343 12.343a8 8 0 0 1 11.314 0"}),i.createElement("path",{d:"M3.515 9.515c4.686 -4.687 12.284 -4.687 17 0"}))),i.createElement(yj,{text:T?"Restore offline mock":"Mock offline behavior"}))))),i.createElement("div",{style:{overflowY:"auto",flex:"1"}},x.map((e=>i.createElement(Nj,{queryKey:e.queryKey,activeQueryHash:S,setActiveQueryHash:R,key:e.queryHash,queryCache:y}))))),S&&n?i.createElement(Dj,{activeQueryHash:S,queryCache:y,queryClient:g,errorTypes:p}):null,c?i.createElement(dj,xv({type:"button","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true"},f,{style:{position:"absolute",zIndex:99999,margin:".5em",bottom:0,left:0,...f.style},onClick:e=>{a(!1),null==m||m(e)}}),"Close"):null))})),Dj=({queryCache:e,activeQueryHash:t,queryClient:n,errorTypes:o})=>{var a,r;const s=zj(e,(()=>e.getAll().find((e=>e.queryHash===t)))),u=zj(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.state})),c=null!=(a=zj(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.isStale()})))&&a,l=null!=(r=zj(e,(()=>{var n;return null==(n=e.getAll().find((e=>e.queryHash===t)))?void 0:n.getObserversCount()})))?r:0,p=d((()=>{if(s&&null!=u&&u.error){const e=o.find((e=>{var t;return e.initializer(s).toString()===(null==(t=u.error)?void 0:t.toString())}));return null==e?void 0:e.name}}),[s,null==u?void 0:u.error,o]);if(!s||!u)return null;const h=e=>{var t;const n=null!=(t=null==e?void 0:e.initializer(s))?t:new Error("Unknown error from devtools"),o=s.options;s.setState({status:"error",error:n,fetchMeta:{...s.state.fetchMeta,__previousQueryOptions:o}})};return i.createElement(lj,null,i.createElement("div",{style:{padding:".5em",background:Kk.backgroundAlt,position:"sticky",top:0,zIndex:1}},"Query Details"),i.createElement("div",{style:{padding:".5em"}},i.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"flex-start",justifyContent:"space-between"}},i.createElement(mj,{style:{lineHeight:"1.8em"}},i.createElement("pre",{style:{margin:0,padding:0,overflow:"auto"}},Zk(s.queryKey,!0))),i.createElement("span",{style:{padding:"0.3em .6em",borderRadius:"0.4em",fontWeight:"bold",textShadow:"0 2px 10px black",background:Jk({queryState:u,isStale:c,observerCount:l,theme:Kk}),flexShrink:0}},Xk(s))),i.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"center",justifyContent:"space-between"}},"Observers: ",i.createElement(mj,null,l)),i.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},"Last Updated:"," ",i.createElement(mj,null,new Date(u.dataUpdatedAt).toLocaleTimeString()))),i.createElement("div",{style:{background:Kk.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Actions"),i.createElement("div",{style:{padding:"0.5em",display:"flex",flexWrap:"wrap",gap:"0.5em",alignItems:"flex-end"}},i.createElement(dj,{type:"button",onClick:()=>{const e=null==s?void 0:s.fetch();null==e||e.catch(qj)},disabled:"fetching"===u.fetchStatus,style:{background:Kk.active}},"Refetch")," ",i.createElement(dj,{type:"button",onClick:()=>n.invalidateQueries(s),style:{background:Kk.warning,color:Kk.inputTextColor}},"Invalidate")," ",i.createElement(dj,{type:"button",onClick:()=>n.resetQueries(s),style:{background:Kk.gray}},"Reset")," ",i.createElement(dj,{type:"button",onClick:()=>n.removeQueries(s),style:{background:Kk.danger}},"Remove")," ",i.createElement(dj,{type:"button",onClick:()=>{var e;if("fetching"!==s.state.fetchStatus||void 0!==(null==(e=s.state.fetchMeta)?void 0:e.__previousQueryOptions))if(void 0===s.state.data)s.fetch(s.state.fetchMeta.__previousQueryOptions,{cancelRefetch:!0});else{const e=s.options;s.fetch({...e,queryFn:()=>new Promise((()=>{})),cacheTime:-1}),s.setState({data:void 0,status:"loading",fetchMeta:{...s.state.fetchMeta,__previousQueryOptions:e}})}},style:{background:Kk.paused}},"loading"===s.state.status?"Restore":"Trigger"," ","loading")," ",0===o.length||"error"===s.state.status?i.createElement(dj,{type:"button",onClick:()=>{s.state.error?n.resetQueries(s):h()},style:{background:Kk.danger}},"error"===s.state.status?"Restore":"Trigger"," error"):i.createElement("label",null,"Trigger error:",i.createElement(gj,{value:null!=p?p:"",style:{marginInlineStart:".5em"},onChange:e=>{const t=o.find((t=>t.name===e.target.value));h(t)}},i.createElement("option",{key:"",value:""}),o.map((e=>i.createElement("option",{key:e.name,value:e.name},e.name)))))),i.createElement("div",{style:{background:Kk.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Data Explorer"),i.createElement("div",{style:{padding:".5em"}},i.createElement(Oj,{label:"Data",value:u.data,defaultExpanded:{},copyable:!0})),i.createElement("div",{style:{background:Kk.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Query Explorer"),i.createElement("div",{style:{padding:".5em"}},i.createElement(Oj,{label:"Query",value:s,defaultExpanded:{queryKey:!0}})))},Lj=({queryCache:e})=>{const t=zj(e,(()=>e.getAll().filter((e=>"fresh"===Xk(e))).length)),n=zj(e,(()=>e.getAll().filter((e=>"fetching"===Xk(e))).length)),o=zj(e,(()=>e.getAll().filter((e=>"paused"===Xk(e))).length)),a=zj(e,(()=>e.getAll().filter((e=>"stale"===Xk(e))).length)),r=zj(e,(()=>e.getAll().filter((e=>"inactive"===Xk(e))).length));return i.createElement(pj,null,i.createElement(hj,{style:{background:Kk.success,opacity:t?1:.3}},"fresh ",i.createElement(mj,null,"(",t,")"))," ",i.createElement(hj,{style:{background:Kk.active,opacity:n?1:.3}},"fetching ",i.createElement(mj,null,"(",n,")"))," ",i.createElement(hj,{style:{background:Kk.paused,opacity:o?1:.3}},"paused ",i.createElement(mj,null,"(",o,")"))," ",i.createElement(hj,{style:{background:Kk.warning,color:"black",textShadow:"0",opacity:a?1:.3}},"stale ",i.createElement(mj,null,"(",a,")"))," ",i.createElement(hj,{style:{background:Kk.gray,opacity:r?1:.3}},"inactive ",i.createElement(mj,null,"(",r,")")))},Nj=i.memo((({queryKey:e,setActiveQueryHash:t,activeQueryHash:n,queryCache:o})=>{var a,r,s,u;const c=null!=(a=zj(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.queryHash})))?a:"",l=zj(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.state})),d=null!=(r=zj(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.isStale()})))&&r,p=null!=(s=zj(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.isDisabled()})))&&s,h=null!=(u=zj(o,(()=>{var t;return null==(t=o.find(e))?void 0:t.getObserversCount()})))?u:0;return l?i.createElement("div",{role:"button","aria-label":"Open query details for "+c,onClick:()=>t(n===c?"":c),style:{display:"flex",borderBottom:"solid 1px "+Kk.grayAlt,cursor:"pointer",background:c===n?"rgba(255,255,255,.1)":void 0}},i.createElement("div",{style:{flex:"0 0 auto",width:"2em",height:"2em",background:Jk({queryState:l,isStale:d,observerCount:h,theme:Kk}),display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold",textShadow:d?"0":"0 0 10px black",color:d?"black":"white"}},h),p?i.createElement("div",{style:{flex:"0 0 auto",height:"2em",background:Kk.gray,display:"flex",alignItems:"center",fontWeight:"bold",padding:"0 0.5em"}},"disabled"):null,i.createElement(mj,{style:{padding:".5em"}},""+c)):null}));function qj(){}Nj.displayName="QueryRow";const Mj="development"!==process.env.NODE_ENV?function(){return null}:function({initialIsOpen:e,panelProps:t={},closeButtonProps:n={},toggleButtonProps:o={},position:a="bottom-left",containerElement:r="aside",context:s,styleNonce:u,panelPosition:c="bottom",errorTypes:l=[]}){const d=i.useRef(null),p=i.useRef(null),[h,m]=Gv("reactQueryDevtoolsOpen",e),[f,g]=Gv("reactQueryDevtoolsHeight",oj),[y,b]=Gv("reactQueryDevtoolsWidth",oj),[v="bottom",k]=Gv("reactQueryDevtoolsPanelPosition",c),[j,w]=i.useState(!1),[_,E]=i.useState(!1),C=function(){const e=i.useRef(!1),t=i.useCallback((()=>e.current),[]);return i.useEffect((()=>(e.current=!0,()=>{e.current=!1})),[]),t}();i.useEffect((()=>{w(null!=h&&h)}),[h,j,w]),i.useEffect((()=>{const e=p.current;if(e){const t=()=>{j&&(e.style.visibility="visible")},n=()=>{j||(e.style.visibility="hidden")};return e.addEventListener("transitionstart",t),e.addEventListener("transitionend",n),()=>{e.removeEventListener("transitionstart",t),e.removeEventListener("transitionend",n)}}}),[j]),i.useEffect((()=>{var e;if(j&&null!=(e=d.current)&&e.parentElement){const{parentElement:e}=d.current,t=sj("padding",v),n=rj(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?y:f)+"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}))}}}),[j,v,f,y]);const{style:S={},...R}=t,{style:x={},onClick:T,...I}=o,O=function({position:e="bottom",height:t,width:n,devtoolsTheme:o,isOpen:a,isResizing:r,panelStyle:i}){const s=ij(e),u=sj("border",s),c=rj(e);return{...i,direction:"ltr",position:"fixed",[e]:0,[u]:"1px solid "+o.gray,transformOrigin:s,boxShadow:"0 0 20px rgba(0,0,0,.3)",zIndex:99999,visibility:a?"visible":"hidden",...r?{transition:"none"}:{transition:"all .2s ease"},...a?{opacity:1,pointerEvents:"all",transform:c?"translateX(0) scale(1)":"translateY(0) scale(1)"}:{opacity:0,pointerEvents:"none",transform:c?"translateX(15px) scale(1.02)":"translateY(15px) scale(1.02)"},...c?{top:0,height:"100vh",maxWidth:"90%",width:"number"==typeof n&&n>=70?n:oj}:{left:0,width:"100%",maxHeight:"90%",height:"number"==typeof t&&t>=70?t:oj}}}({position:v,devtoolsTheme:Kk,isOpen:j,height:f,width:y,isResizing:_,panelStyle:S});return C()?i.createElement(r,{ref:d,className:"ReactQueryDevtools","aria-label":"React Query Devtools"},i.createElement(Qk,{theme:Kk},i.createElement(Pj,xv({ref:p,context:s,styleNonce:u,position:v,onPositionChange:k,showCloseButton:!0,closeButtonProps:n},R,{style:O,isOpen:j,setIsOpen:m,onDragStart:e=>((e,t)=>{if(!e)return;if(0!==t.button)return;const n=rj(v);E(!0);const{height:o,width:a}=e.getBoundingClientRect(),r=t.clientX,i=t.clientY;let s=0;const u=e=>{e.preventDefault(),n?(s=a+("right"===v?r-e.clientX:e.clientX-r),b(s)):(s=o+("bottom"===v?i-e.clientY:e.clientY-i),g(s)),m(!(s<70))},c=()=>{_&&E(!1),document.removeEventListener("mousemove",u,!1),document.removeEventListener("mouseUp",c,!1)};document.addEventListener("mousemove",u,!1),document.addEventListener("mouseup",c,!1)})(p.current,e),errorTypes:l}))),j?null:i.createElement("button",xv({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"},...x}}),i.createElement(Aj,{"aria-hidden":!0}),i.createElement(yj,{text:"Open React Query Devtools"}))):null};process.env.NODE_ENV;var Uj,Bj={backgroundColor:"#fcfcff",width:"100%",zIndex:1e7,height:"100%",position:"absolute"};function Fj(e){var o=this,r=e.children,i=process.env.ENVIRONMENT,s=d((function(){return"DEV"!==i&&"LOCAL"!==i?"testing":"live"}),[i]),c=u(!1),h=c[0],m=c[1],f=p((function(e){return t(o,void 0,void 0,(function(){var t,o,r,i,u;return n(this,(function(n){switch(n.label){case 0:return t=localStorage.getItem("headers"),o=t&&JSON.parse(t),r=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live",i=localStorage.getItem("x-organization-code"),u=i?JSON.parse(i).value:"",[4,Sd.refreshInstance({headers:a(a({},o),{"X-Environment":r||s,"x-organization-code":u,"x-account-code":e.detail.accountCode,"X-Content-Type-Options":"nosniff"})})];case 1:return n.sent(),[2]}}))}))}),[s]);l((function(){return addEventListener("ACCOUNT_CHANGED",f),function(){window.removeEventListener("ACCOUNT_CHANGED",f)}}),[f]);var g=p((function(e){return t(o,void 0,void 0,(function(){var t,o,r,i,u,c,l;return n(this,(function(n){switch(n.label){case 0:return t=localStorage.getItem("headers"),(o=t&&JSON.parse(t))?(r=localStorage.getItem("x-organization-code"),i=localStorage.getItem("account"),u=i?null===(l=JSON.parse(i).value)||void 0===l?void 0:l.code:"",c=r?JSON.parse(r).value:"",[4,Sd.refreshInstance({headers:a(a({},o),{"X-Environment":e||s,"x-organization-code":c,"x-account-code":u,"X-Content-Type-Options":"nosniff"})})]):[3,2];case 1:n.sent(),kh.refetchQueries(["fetch-profile","accountsV2","accounts","fetch-all-organizations","fetch-permissions"]),m(!0),n.label=2;case 2:return[2]}}))}))}),[s,m]);return l((function(){var e=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live";window.addEventListener("storage",(function(t){if("token"===t.key||"isTesting"===t.key){var n="OFF"===t.newValue?"live":"testing";"isTesting"===t.key?g(n):"token"===t.key&&g(e)}})),g(e)}),[m,g]),h?React.createElement(Ip,{client:kh},r,React.createElement(Mj,{initialIsOpen:!1})):React.createElement("div",{style:Bj})}!function(e){e.ECONNABORTED="ECONNABORTED",e.ETIMEDOUT="ETIMEDOUT",e.ERR_BAD_REQUEST="ERR_BAD_REQUEST"}(Uj||(Uj={}));var Wj=function(){var e=c(null),t=c(null),n=c(null),o=u(!1),a=o[0],r=o[1],i=u(null),s=i[0],d=i[1],h=u(null),m=h[0],f=h[1],g=p((function(){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null)}),[]),y=p((function(){if("undefined"==typeof window||"dashboard.dev.y.uno"!==window.location.hostname){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null),f(null);try{var o=new WebSocket("".concat(Cd["WS_URL_".concat(Cd.ENVIRONMENT)],"/data-assistant/charts/ws"));e.current=o,o.onopen=function(){r(!0);var e=localStorage.getItem("token");e&&o.send(JSON.stringify({type:"auth",token:e})),t.current=setInterval((function(){o.readyState===WebSocket.OPEN?o.send(JSON.stringify({type:"ping"})):(g(),r(!1))}),3e4)},o.onmessage=function(e){try{var t=JSON.parse(e.data);d(t)}catch(e){f("Failed to parse server response")}},o.onerror=function(e){f("Connection error occurred"),r(!1)},o.onclose=function(e){r(!1),g(),e.wasClean||1e3===e.code||(n.current=setTimeout((function(){y()}),5e3))}}catch(e){f("Failed to establish connection")}}}),[]),b=p((function(t){var n;(null===(n=e.current)||void 0===n?void 0:n.readyState)===WebSocket.OPEN&&e.current.send(JSON.stringify({type:"subscribe",chart_id:t}))}),[]),v=p((function(t){var n;(null===(n=e.current)||void 0===n?void 0:n.readyState)===WebSocket.OPEN&&e.current.send(JSON.stringify({type:"unsubscribe",chart_id:t}))}),[]),k=p((function(){d(null)}),[]),j=p((function(){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null),e.current&&(r(!1),e.current.close(1e3,"Manual disconnect"),e.current=null)}),[]);return l((function(){return y(),function(){g(),j()}}),[]),{subscribe:b,unsubscribe:v,disconnect:j,connect:y,clearChartData:k,isConnected:a,chartData:s,connectionError:m}},Hj=["LOCAL","DEV","STG"].includes(process.env.ENVIRONMENT||"");"undefined"!=typeof window&&Hj&&function(){t(this,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:if(!ja())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,ba.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{Lc as AI,Ed as Api,Uj as ApiErrorCodes,Fj as ApiProvider,Sd as ApiSingleton,Tc as Cms,xc as Country,zc as DataReport,qp as DuplicateSetting,Rc as Organization,Nc as OrganizationConfig,Sc as PaymentFiltersSection,Nf as PendingDuplicateAccountStatus,Dc as ReconciliationAgendaInsight,Pc as ReconciliationReportType,Ic as ReportType,Cc as SendPaymentNotification,Ac as SmartRouting,Oc as TemplateType,ay as getQueryKeyGetNameAndIcon,iy as getQueryKeyRequiredFields,vh as queryCache,kh as queryClient,Yg as use3DSExemptions,vf as useAICreateWorkflow,Tb as useAllFeatureFlags,Jb as useAllowListDetail,Qb as useBlackListDetail,Ib as useCachedFeatureFlag,Ch as useCancelReport,nm as useCancelSubscription,ih as useChangePasswordV2,Tm as useChangePaymentsWebhook,Em as useChangeStatusBlackList,Cm as useChangeStatusItemBlackList,py as useChangeStylingSettings,If as useChangeTemplateStatus,yh as useChargebacksUpload,Wj as useChartAssistantSocket,rv as useChartExecute,xf as useCloneTemplate,_y as useCommunicationDetails,jy as useCommunications,bv as useCommunicationsByDay,vv as useCommunicationsBySubstatus,wy as useCommunicationsFilters,kv as useCommunicationsSubstatusByDay,pm as useConfirmedOtpMfa,Eh as useCountRowsForReport,Ef as useCreateAndExecuteChart,Sf as useCreateAndExecuteChartWithTimezone,jf as useCreateChart,Cf as useCreateChartWithTimezone,Wh as useCreateMonitorTemplate,Fh as useCreateMonitorThreshold,gh as useCreateOperationTransaction,Jh as useCreatePaymentLinks,pf as useCreateReconciliationAlert,lf as useCreateReconciliationReportTemplate,jh as useCreateReconciliationsReportV2,wh as useCreateReconciliationsReportV3,Sh as useCreateReportTemplate,_h as useCreateReportV2,Kh as useCreateRoles,gf as useCreateSamlConfig,Af as useCreateSchedule,Wm as useCreateScheduledReport,Zh as useCreateSubscription,Rf as useCreateTemplate,lh as useCreateUserAuth0,xh as useCreateWorkflow,$p as useDeleteAccountsUserMassive,Am as useDeleteAllowlistItem,Rm as useDeleteBlackListType,Im as useDeleteBlockListItem,wf as useDeleteChart,tf as useDeleteCustomizedApiKeys,Xh as useDeletePaymentLink,hf as useDeleteReconciliationAlert,Qh as useDeleteRoles,bf as useDeleteSamlConfig,Pf as useDeleteSchedule,Vm as useDeleteScheduledReport,Of as useDeleteTemplate,Vh as useDeleteUserTeamV2,Oh as useDeleteVersion,Up as useDeleteWebhookV2,zf as useDisableSchedule,Wp as useDuplicateAccount,Ah as useDuplicateVersion,Yh as useEditPaymentLinks,$h as useEditRoles,gy as useEmailVerification,Bm as useExcludeUsers,uf as useExportApiLogs,cf as useExportWebhooksLogs,xb as useFeatureFlags,Hb as useFirebaseUserSubscribe,kf as useGenerateFeedback,Sg as useGetAccounts,xg as useGetAccountsByUser,Tg as useGetAccountsForImpersonation,Rg as useGetAccountsV2,ev as useGetAllConfigRules,fg as useGetAllOrganizations,Sb as useGetAllReconciliationsAdvancements,_b as useGetAllReconciliationsAgenda,wb as useGetAllReconciliationsAlerts,Rb as useGetAllReconciliationsFees,Cb as useGetAllReconciliationsSales,bb as useGetAllTableColumns,cg as useGetAllowedIps,Db as useGetApiLogsDetailByPaymentCode,Ob as useGetAuditEvents,Lg as useGetAuditLogsFilters,Ab as useGetAuditMonitorEventDetail,Nm as useGetBatchRefundProcessedFileDownload,qm as useGetBatchRefundUserFileDownload,Yb as useGetBatchRefunds,Gb as useGetBlackList,$b as useGetBlockListSummary,Gf as useGetCardBrands,iv as useGetChartsByUser,sv as useGetChartsByUserWithResults,oy as useGetCheckoutTemplate,ny as useGetCheckouts,Gm as useGetConditionalConfigRules,Vb as useGetConfigAllowlist,jg as useGetConnections,vg as useGetConnectionsByPaymentMethod,qb as useGetCountriesConfigPaymentLink,Mb as useGetCountriesConfigPaymentLinkV2,sg as useGetCredentials,af as useGetCredentialsMFA,dg as useGetCustomizedApiKeys,lg as useGetCustomizedApiKeysAccounts,ug as useGetCustomizedApiKeysMembers,pg as useGetCustomizedApiKeysProducts,Ym as useGetCustomizedApiKeysToken,Ng as useGetDashboardStaticContents,wg as useGetDialogs,Ay as useGetDownloadReport,dm as useGetEmailOtp,kg as useGetHashPylon,vy as useGetImpersonationEnabled,by as useGetImpersonationUsers,Yy as useGetInsightsReport,Zy as useGetInsightsReportAgain,Bb as useGetInstallmentPlans,bg as useGetIntegrationByAccountV2,yg as useGetIntegrationParams,cv as useGetLanguages,qg as useGetLocales,yy as useGetLoginMethods,nv as useGetMFAConfig,tv as useGetMFAExcludedUsers,ov as useGetMFAStatus,Og as useGetMenu,Sy as useGetMergedNotifications,ry as useGetNameAndIcon,dv as useGetNetworkTokensOnboardingByOrganization,Ey as useGetNotificationsCustomer,Ry as useGetNotificationsNumberMutation,mg as useGetOrganization,Rv as useGetOrganizationConfigs,Kf as useGetPaymentFilters,Nb as useGetPaymentLinkByCode,Lb as useGetPaymentLinks,Vf as useGetPaymentMethodsAndProviders,$f as useGetPaymentMetricsFilters,Ag as useGetPaymentStatusesStyles,Qf as useGetPaymentTransactionsDetails,Bf as useGetPaymentV2,Hf as useGetPaymentsMethodsByCountry,Zf as useGetPayoutDetail,tg as useGetPayoutHistoryDetail,eg as useGetPayoutTransactionDetail,Ig as useGetPendingDuplicateAccounts,fy as useGetPermissions,Uy as useGetPermissionsCatalog,hy as useGetProfile,ng as useGetProofOfCancel,og as useGetProofOfPayment,gg as useGetProviderParams,vb as useGetReconciliationActive,Eb as useGetReconciliationAgendaInsightsByKey,yb as useGetReconciliationFilters,gb as useGetReconciliationMetrics,Pg as useGetReconciliationTransactionStatusesStyles,mb as useGetReconciliationTransactions,kb as useGetReconciliationsReportColumns,jb as useGetReconciliationsReportTemplates,Dy as useGetRefundPdf,Py as useGetReportColumns,zy as useGetReportTemplates,Iy as useGetReportsList,Oy as useGetReportsListMultiEnv,sy as useGetRequiredFields,qy as useGetRoles,My as useGetRolesPermissions,ty as useGetRoutingMonitorsTemplate,ey as useGetRoutingMonitorsTemplates,Km as useGetRule,av as useGetSamlConfig,Fm as useGetScheduledReportsList,fb as useGetSettlements,Wg as useGetSmartRoutingConditionPaymentMethod,Fg as useGetSmartRoutingConditionTypes,Hg as useGetSmartRoutingConditionTypesValues,By as useGetSmartRoutingDataReport,Kg as useGetSmartRoutingDeclineGroups,Ug as useGetSmartRoutingMethods,Gg as useGetSmartRoutingNextRoute,$g as useGetSmartRoutingPaymentRoute,Jg as useGetSmartRoutingSearchConditionValues,Qg as useGetSmartRoutingSimulateConditionTypeValues,Bg as useGetSmartRoutingWorkflow,Vg as useGetSmartRoutingWorkflowVersion,uy as useGetStylingSdkDynamic,ly as useGetStylingSettings,dy as useGetStylingSettingsV2,cy as useGetStylingTheme,Fb as useGetSubscriptionByCode,Wb as useGetSubscriptionPayments,Ly as useGetTeamsFiltersMembers,Dg as useGetTimeZoneCatalog,Ub as useGetTimezonePaymentLink,lm as useGetTokenValidation,Ff as useGetTransactionDetailsV2,Jf as useGetTransactionHistoryByPaymentCode,Wf as useGetTransactionRawResponse,zg as useGetTransactionStatusesStyles,lv as useGetTranslations,my as useGetUserFull,ky as useGetUsersToImpersonate,Cy as useGetValidateOpsgenieKey,_g as useGetWebhookParamsV2,Cg as useGetWebhooksV2Detail,Eg as useGetWebhooksV3,ob as useInsights3dsConversionRateAndEvolution,ab as useInsights3dsDeclineReasons,rb as useInsights3dsFrictionlessVsChallenge,nb as useInsights3dsVolumeAndCountTx,hb as useInsightsChargebacksByCardBrand,lb as useInsightsChargebacksByProviderAndCardBrand,cb as useInsightsChargebacksDisputed,db as useInsightsChargebacksReasonsDistribution,pb as useInsightsChargebacksStatusDistribution,sb as useInsightsChargebacksTotalRateAndEvolution,ib as useInsightsChargebacksVolumeAndCountTx,ub as useInsightsChargebacksWinRate,Fy as useInsightsConversionRateMetricsV2,$y as useInsightsCustomerPaymentsAndFraudMetrics,Hy as useInsightsFallbackMetrics,tb as useInsightsFraudScreeningConversionRate,eb as useInsightsFraudScreeningVolumeAndCountTx,Xy as useInsightsHomeMetrics,Qy as useInsightsOverviewMetrics,Jy as useInsightsOverviewMetricsV3,Ky as useInsightsTotalPaymentsAndFraudMetrics,Vy as useInsightsVolumeMetrics,Gy as useInsightsVolumeMetricsV2,uh as useInviteUsersMultiaccountMassive,Mg as useIsTesting,rm as useListSubscriptions,ph as useLoginMethods,Zg as useNetworkTokensOnboarding,Zp as useNewPostConnectionValidate,Vp as usePatchAccountV2,km as usePatchAddAllowlistItems,hg as usePatchAllowedIps,jm as usePatchAllowlist,uv as usePatchAndExecuteChart,nf as usePatchApiKeysEditNote,bm as usePatchChangeStatusAllowlist,vm as usePatchChangeStatusAllowlistItem,_f as usePatchChartName,eh as usePatchConnection,Xm as usePathCreateCustomizedApiKeys,xy as usePathNotifications,em as usePauseSubscription,ig as usePayoutsFilters,rg as usePayoutsList,Fp as usePostAccount,Xb as usePostAllowlistMultiAccount,of as usePostApiKeysRoll,zb as usePostApiLogs,rf as usePostAuditMonitors,Lm as usePostBatchRefundByFile,xm as usePostBlackListBatch,Sm as usePostBlackListItems,wm as usePostBlackListMultiAccount,Kb as usePostBlockList,dh as usePostCall,Jp as usePostChangeStatusConnection,Yp as usePostConnectionMultiAccount,ym as usePostCreateAllowlistMultiAccount,Jm as usePostCreateCustomizedApiKeys,ff as usePostCreateInsightsReport,$m as usePostCreateRuleMultiAccount,Zm as usePostCredentialsValidatePassword,ef as usePostCredentialsValidatePasswordRegularUser,th as usePostDefaultRoutes,Qm as usePostEditRule,Yf as usePostFraudTransactions,fm as usePostGetAllowlistItems,gm as usePostGetAllowlistMultiAccount,Ny as usePostMembersPaginatedV2,oh as usePostNetworkTokensOnboarding,Df as usePostOrganizationConfigs,Uf as usePostPaymentsEvaluated,Mf as usePostPaymentsLazy,Hh as usePostSlackMessageChannel,Xf as usePostTransactions,im as usePostUserSettings,cm as usePostUserSettingsPinned,um as usePostUserSettingsTables,sm as usePostUserThemeSettings,Qp as usePostValideStatusConnection,Zb as usePostVelocityRules,Pb as usePostWebhookLogs,Mp as usePostWebhookMultiAccount,Xg as useProviderConversionRatesData,bh as useProviderRawResponse,Th as usePublishVersion,Gp as usePutAccountPrincipal,Kp as usePutAccountsUserMassive,_m as usePutBlackListType,Xp as usePutCosts,Lf as usePutOrganizationConfigsByAccount,wv as useRecoveredPaymentsByDay,jv as useRecoveredTPVByDay,am as useRescheduleSubscription,sf as useResendWebhooks,tm as useResumeSubscription,Hp as useRetryDuplicateAccount,Ih as useSaveVersion,Sv as useSearchScheduleById,Cv as useSearchSchedules,Ev as useSearchTemplateById,_v as useSearchTemplates,ag as useSendPaymentNotification,Gh as useSetCustodian,Dh as useSmartRoutingCreateDeclinedGroup,Nh as useSmartRoutingEditWorkflowName,Bh as useSmartRoutingMultiAccountDeclinedGroupCreate,Uh as useSmartRoutingRemoveDeclinedGroup,qh as useSmartRoutingSimulateTransaction,Lh as useSmartRoutingToggleFavorite,Ph as useSmartRoutingUpdateDeclinedGroup,Mh as useSmartRoutingUpdateMonitorRedistribution,zh as useToggleMethod,ch as useUnInviteUsersV2,hm as useUnrollUserV2,mh as useUpdateCheckoutTemplate,hh as useUpdateIsActiveCheckout,Um as useUpdateMFAConfig,ah as useUpdateOrganizationStatus,sh as useUpdateProfile,mf as useUpdateReconciliationAlert,df as useUpdateReconciliationReportTemplate,Rh as useUpdateReportTemplate,yf as useUpdateSamlConfig,Hm as useUpdateScheduledReport,fh as useUpdateStylingTheme,om as useUpdateSubscription,Tf as useUpdateTemplateSelection,Bp as useUpdateWebhookV2,Pm as useUploadBatchRefundsFileV2,Dm as useUploadBatchRefundsV2,Mm as useUploadFileS3ClientBatchRefunds,zm as useValiateAllowlistItems,Om as useValidateBlockListItems,nh as useValidateCredentials,rh as useValidateOrgName,mm as useValidatePasswordStatus,Wy as useViewMoreMetrics};
234
234
  //# sourceMappingURL=index.js.map