@yuno-payments/dashboard-api-mfe 0.36.25 → 0.36.26

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.
@@ -1,5 +1,5 @@
1
1
  import { UseQueryResult } from '@tanstack/react-query';
2
- import type { RefundPdfResponse, Reports, ReportType, TemplateType, CentralizedColumn } from '../../types';
2
+ import { RefundPdfResponse, Reports, ReportType, TemplateType, CentralizedColumn } from '../../types';
3
3
  import { AxiosError } from 'axios';
4
4
  export declare function useGetReportsList(): UseQueryResult<Array<Reports.IListReportsResponse>, unknown>;
5
5
  export declare function useGetReportsListMultiEnv(enabled?: boolean): UseQueryResult<Reports.IRetrieveReportResponse[] | {
@@ -220,7 +220,7 @@ function ra(e){const t=ia.parse(e),n={};for(const e in t)void 0!==t[e]&&(n[e]=t[
220
220
  *
221
221
  * This source code is licensed under the MIT license found in the
222
222
  * LICENSE file in the root directory of this source tree.
223
- */"production"===process.env.NODE_ENV?kf.exports=function(){if(bf)return xf;bf=1;var e=x,t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useState,o=e.useEffect,a=e.useLayoutEffect,i=e.useDebugValue;function r(e){var n=e.getSnapshot;e=e.value;try{var o=n();return!t(e,o)}catch(e){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var s=t(),c=n({inst:{value:s,getSnapshot:t}}),u=c[0].inst,l=c[1];return a((function(){u.value=s,u.getSnapshot=t,r(u)&&l({inst:u})}),[e,s,t]),o((function(){return r(u)&&l({inst:u}),e((function(){r(u)&&l({inst:u})}))}),[e]),i(s),s};return xf.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:s,xf}():kf.exports=(wf||(wf=1,"production"!==process.env.NODE_ENV&&function(){function e(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!n(e,o)}catch(e){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=x,n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=t.useState,a=t.useEffect,i=t.useLayoutEffect,r=t.useDebugValue,s=!1,c=!1,u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(u,l){s||void 0===t.startTransition||(s=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var p=l();if(!c){var d=l();n(p,d)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}var m=(d=o({inst:{value:p,getSnapshot:l}}))[0].inst,h=d[1];return i((function(){m.value=p,m.getSnapshot=l,e(m)&&h({inst:m})}),[u,p,l]),a((function(){return e(m)&&h({inst:m}),u((function(){e(m)&&h({inst:m})}))}),[u]),r(p),p};jf.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:u,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),jf);var _f=kf.exports;const Ef=_f.useSyncExternalStore,Cf=k.createContext(void 0),Sf=k.createContext(!1);function Rf(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Cf),window.ReactQueryClientContext):Cf)}const Tf=({context:e}={})=>{const t=k.useContext(Rf(e,k.useContext(Sf)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Of=({client:e,children:t,context:n,contextSharing:o=!1})=>{k.useEffect((()=>(e.mount(),()=>{e.unmount()})),[e]),"production"!==process.env.NODE_ENV&&o&&e.getLogger().error("The contextSharing option has been deprecated and will be removed in the next major version");const a=Rf(n,o);return k.createElement(Sf.Provider,{value:!n&&o},k.createElement(a.Provider,{value:e},t))},Af=k.createContext(!1);Af.Provider;const If=k.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function zf(e,t){return"function"==typeof e?e(...t):!!e}function Lf(e,t){const n=Tf({context:e.context}),o=k.useContext(Af),a=k.useContext(If),i=n.defaultQueryOptions(e);i._optimisticResults=o?"isRestoring":"optimistic",i.onError&&(i.onError=of.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=of.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=of.batchCalls(i.onSettled)),(e=>{e.suspense&&"number"!=typeof e.staleTime&&(e.staleTime=1e3)})(i),((e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))})(i,a),(e=>{k.useEffect((()=>{e.clearReset()}),[e])})(a);const[r]=k.useState((()=>new t(n,i))),s=r.getOptimisticResult(i);if(Ef(k.useCallback((e=>{const t=o?()=>{}:r.subscribe(of.batchCalls(e));return r.updateResult(),t}),[r,o]),(()=>r.getCurrentResult()),(()=>r.getCurrentResult())),k.useEffect((()=>{r.setOptions(i,{listeners:!1})}),[i,r]),((e,t,n)=>(null==e?void 0:e.suspense)&&((e,t)=>e.isLoading&&e.isFetching&&!t)(t,n))(i,s,o))throw((e,t,n)=>t.fetchOptimistic(e).then((({data:t})=>{null==e.onSuccess||e.onSuccess(t),null==e.onSettled||e.onSettled(t,null)})).catch((t=>{n.clearReset(),null==e.onError||e.onError(t),null==e.onSettled||e.onSettled(void 0,t)})))(i,r,a);if((({result:e,errorResetBoundary:t,useErrorBoundary:n,query:o})=>e.isError&&!t.isReset()&&!e.isFetching&&zf(n,[e.error,o]))({result:s,errorResetBoundary:a,useErrorBoundary:i.useErrorBoundary,query:r.getCurrentQuery()}))throw s.error;return i.notifyOnChangeProps?s:r.trackResult(s)}function Pf(e,t,n){return Lf(Ah(e,t,n),mf)}function Df(e,t,n){const o=function(e,t,n){return Wh(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}(e,t,n),a=Tf({context:o.context}),[i]=k.useState((()=>new vf(a,o)));k.useEffect((()=>{i.setOptions(o)}),[i,o]);const r=Ef(k.useCallback((e=>i.subscribe(of.batchCalls(e))),[i]),(()=>i.getCurrentResult()),(()=>i.getCurrentResult())),s=k.useCallback(((e,t)=>{i.mutate(e,t).catch(qf)}),[i]);if(r.error&&zf(i.options.useErrorBoundary,[r.error]))throw r.error;return{...r,mutate:s,mutateAsync:r.mutate}}function qf(){}function Nf(e){return Df((function(e){var t=e.payload;return Eh.getInstance().postWebhookV2MultiAccount({payload:t})}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Mf(e){return Df((function(e){var t=e.code,n=e.accountCode;return Eh.getInstance().deleteWebhookV2(t,n)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Ff(e){return Df((function(e){var t=e.code,n=e.payload,o=e.accountCode;return Eh.getInstance().updateWebhookV2(t,n,o)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Uf(){return Df((function(e){var t=e.name,n=e.principal;return Eh.getInstance().postAccount(t,n)}))}function Bf(){return Df((function(e){var t=e.name,n=e.code,o=e.principal;return Eh.getInstance().patchAccountV2({name:t,code:n,principal:o})}))}function Hf(){return Df((function(e){var t=e.account_code;return Eh.getInstance().putAccountPrincipal({account_code:t})}))}function Wf(){return Df((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return Eh.getInstance().putAccountsUserMassive(t,n,o)}))}function Gf(){return Df((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return Eh.getInstance().deleteAccountsUserMassive(t,n,o)}))}function Vf(){return Df(["post-validate-status-connection"],(function(e){var t=e.payload,n=e.accountCode;return Eh.getInstance().postValidateStatusConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function $f(){return Df(["post-change-status-connection"],(function(e){var t=e.payload,n=e.accountCode;return Eh.getInstance().postChangeStatusConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Kf(){return Df((function(e){return Eh.getInstance().putCosts(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Qf(){return Df(["post-connection"],(function(e){var t=e.payload;return Eh.getInstance().postMultiConnection({payload:t}).then((function(e){return null==e?void 0:e.data}))}))}function Jf(){return Df(["new-post-connection-validate"],(function(){return Eh.getInstance().postMultiConnectionValidate().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Xf(){return Df(["patch-connection"],(function(e){var t=e.payload,n=e.connectionCode;return Eh.getInstance().patchConnection({payload:t,connectionCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Yf(){return Df((function(e){var t=e.payload;return Eh.getInstance().postDefaultRoutes({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function Zf(){return Df((function(e){return Eh.getInstance().postValidateCredentials(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function eg(){return Df(["patch-organizations"],(function(){return Eh.getInstance().updateOrganizationStatus().then((function(e){return null==e?void 0:e.data}))}))}function tg(){return Df((function(e){return Eh.getInstance().getOrgByName(e).then((function(e){return null==e?void 0:e.data}))}))}function ng(){var e=this;return Df((function(o){return t(e,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,Eh.getInstance().changePasswordV2(o).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}))}function og(e){return Df((function(e){return Eh.getInstance().updateProfile(e)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function ag(){return Df((function(e){return Eh.getInstance().inviteUsersMassive(e,e.organizationCode)}))}function ig(){return Df((function(e){var t=e.userCode,n=e.organizationCode;return Eh.getInstance().unInviteUsersV2({userCode:t,organizationCode:n})}))}function rg(){return Df((function(e){return Eh.getInstance().createUserAuth0(e)}))}function sg(){return Df((function(e){return Eh.getInstance().postCall(e)}))}function cg(){return Df((function(e){return Eh.getInstance().changeLoginMethods(e)}))}function ug(e){return Df((function(e){return Eh.getInstance().updateIsActiveCheckout(e)}),e)}function lg(){return Df((function(e){var t=e.accountCode,n=e.template;return Eh.getInstance().updateCheckoutTemplate({accountCode:t,template:n}).then((function(e){return null==e?void 0:e.data}))}))}function pg(){return Df((function(e){var t=e.accountCode,n=e.theme;return Eh.getInstance().updateStylingTheme({accountCode:t,theme:n}).then((function(e){return null==e?void 0:e.data}))}))}function dg(){return Df((function(e){var t=e.payload,n=e.transactionId,o=e.paymentId,a=e.action;return Eh.getInstance().createOperationTransaction(t,n,o,a)}))}function mg(){return Df((function(e){var t=e.payload,n=e.paymentId,o=e.transactionId,a=e.handleSetProgress;return Eh.getInstance().uploadChargebacks(t,n,o,a)}))}var hg=new sf({}),fg=new class{constructor(e={}){this.queryCache=e.queryCache||new sf,this.mutationCache=e.mutationCache||new lf,this.logger=e.logger||nf,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=Kh.subscribe((()=>{Kh.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())})),this.unsubscribeOnline=Jh.subscribe((()=>{Jh.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]=Ih(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=Ah(e,t,n),a=this.getQueryData(o.queryKey);return a?Promise.resolve(a):this.fetchQuery(o)}getQueriesData(e){return this.getQueryCache().findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const o=this.queryCache.find(e),a=function(e,t){return"function"==typeof e?e(t):e}(t,null==o?void 0:o.state.data);if(void 0===a)return;const i=Ah(e),r=this.defaultQueryOptions(i);return this.queryCache.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return of.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]=Ih(e,t),o=this.queryCache;of.batch((()=>{o.findAll(n).forEach((e=>{o.remove(e)}))}))}resetQueries(e,t,n){const[o,a]=Ih(e,t,n),i=this.queryCache,r={type:"active",...o};return of.batch((()=>(i.findAll(o).forEach((e=>{e.reset()})),this.refetchQueries(r,a))))}cancelQueries(e,t,n){const[o,a={}]=Ih(e,t,n);void 0===a.revert&&(a.revert=!0);const i=of.batch((()=>this.queryCache.findAll(o).map((e=>e.cancel(a)))));return Promise.all(i).then(Rh).catch(Rh)}invalidateQueries(e,t,n){const[o,a]=Ih(e,t,n);return of.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]=Ih(e,t,n),i=of.batch((()=>this.queryCache.findAll(o).filter((e=>!e.isDisabled())).map((e=>{var t;return e.fetch(void 0,{...a,cancelRefetch:null==(t=null==a?void 0:a.cancelRefetch)||t,meta:{refetchPage:o.refetchPage}})}))));let r=Promise.all(i).then(Rh);return null!=a&&a.throwOnError||(r=r.catch(Rh)),r}fetchQuery(e,t,n){const o=Ah(e,t,n),a=this.defaultQueryOptions(o);void 0===a.retry&&(a.retry=!1);const i=this.queryCache.build(this,a);return i.isStaleByTime(a.staleTime)?i.fetch(a):Promise.resolve(i.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(Rh).catch(Rh)}fetchInfiniteQuery(e,t,n){const o=Ah(e,t,n);return o.behavior=pf(),this.fetchQuery(o)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(Rh).catch(Rh)}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=>Dh(e)===Dh(t.queryKey)));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find((t=>qh(e,t.queryKey)));if("production"!==process.env.NODE_ENV){this.queryDefaults.filter((t=>qh(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=>Dh(e)===Dh(t.mutationKey)));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find((t=>qh(e,t.mutationKey)));if("production"!==process.env.NODE_ENV){this.mutationDefaults.filter((t=>qh(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=Ph(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:hg});function gg(){return Df((function(e){return Eh.getInstance().createReconciliationsReportV2(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function yg(){return Df((function(e){return Eh.getInstance().createReportV2(e).then((function(e){return null==e?void 0:e.data}))}))}function vg(){return Df((function(e){return Eh.getInstance().getTotalRowsForExport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function bg(){return Df((function(e){return Eh.getInstance().cancelReport(e).then((function(e){return null==e?void 0:e.data}))}))}function kg(o){var a=this;return Df((function(){return t(a,void 0,void 0,(function(){return n(this,(function(e){return[2,Eh.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,fg.cancelQueries({queryKey:["GET/reports/templates"]})];case 1:return n.sent(),t=fg.getQueryData(["GET/reports/templates"]),fg.setQueryData(["GET/reports/templates"],(function(t){return e(e([],t,!0),[o],!1)})),[2,{previousTemplates:t}]}}))}))},onError:function(e,t,n){fg.setQueryData(["GET/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){fg.invalidateQueries({queryKey:["GET/reports/templates"]})}})}function xg(e){return Df((function(){return Eh.getInstance().updateReportTemplate(e).then((function(e){return null==e?void 0:e.data}))}))}function wg(e,o,a){var i=this;return void 0===a&&(a=null),Df((function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Eh.getInstance().postSmartRoutingCreateWorkflow(e,o).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,t.sent()]}}))}))}),a)}function jg(e,o){var a=this,i=e.versionCode,r=e.accountCode,s=e.organizationCode;return void 0===o&&(o=null),Df((function(){return t(a,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,Eh.getInstance().postSmartRoutingPublishVersion(r,i,s).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}),o)}function _g(e,t){var n=e.data,o=e.accountCode;return void 0===t&&(t=null),Df((function(){return Eh.getInstance().putSmartRoutingUpdateWorkflow(o,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),t)}function Eg(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Df((function(){return Eh.getInstance().deleteSmartRoutingVersion(o,n).then((function(e){return null==e?void 0:e.data}))}),t)}function Cg(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Df((function(){return Eh.getInstance().postSmartRoutingDuplicateVersion(o,n).then((function(e){return null==e?void 0:e.data}))}),t)}function Sg(e,t){var n=e.paymentMethod,o=e.active,a=e.accountCode;return void 0===t&&(t=null),Df((function(){return Eh.getInstance().putSmartRoutingToggleMethod(a,n,o).then((function(e){return null==e?void 0:e.data}))}),t)}function Rg(e,t){var n=e.declinedId,o=e.accountCode;return void 0===t&&(t=null),Df((function(e){return void 0===e&&(e=null),Eh.getInstance().updateSmartRoutingDeclinedGroup(o,n,e).then((function(e){return null==e?void 0:e.data}))}),t)}function Tg(e){var t=e.accountCode;return Df((function(e){return void 0===e&&(e=null),Eh.getInstance().createSmartRoutingDeclinedGroup(t,e).then((function(e){return null==e?void 0:e.data}))}),e.options)}function Og(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Df((function(e){return void 0===e&&(e=!1),Eh.getInstance().updateSmartRoutingFavorite(o,n,e).then((function(e){return null==e?void 0:e.data}))}),t)}function Ag(e,t){var n=e.code,o=e.name,a=e.accountCode;return void 0===t&&(t=null),Df((function(){return Eh.getInstance().putSmartRoutingUpdateWorkflowName(a,{code:n,name:o}).then((function(e){return null==e?void 0:e.data}))}),t)}function Ig(e,t){var n=e.accountCode,o=e.workflowVersionCode;return void 0===t&&(t=null),Df((function(e){return Eh.getInstance().simulateSmartRoutingTransaction(n,o,e).then((function(e){return null==e?void 0:e.data}))}),t)}function zg(e,t){return void 0===t&&(t=null),Df((function(t){return Eh.getInstance().updateMonitorRedistribution(e,t).then((function(e){return null==e?void 0:e.data}))}),t)}function Lg(e,t){return void 0===t&&(t={}),Df((function(t){var n=t.declinedGroupCode;return Eh.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 Pg(e,t){return void 0===t&&(t={}),Df((function(t){var n=t.payload;return Eh.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 Dg=function(e){return Df((function(t){return Eh.getInstance().createMonitorThreshold(t,e).then((function(e){return e.data}))}))},qg=function(e){return Df((function(t){return Eh.getInstance().createMonitorTemplate(t,e).then((function(e){return e.data}))}))};function Ng(){return Df((function(e){var t=e.payload;return Eh.getInstance().postSlackMessageChannel(t).then((function(e){return null==e?void 0:e.data}))}))}function Mg(){return Df((function(e){var t=e.userCode,n=e.organizationCode;return Eh.getInstance().deleteUserTeamV2({userCode:t,organizationCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Fg(){return Df((function(){return Eh.getInstance().setCustodian().then((function(e){return null==e?void 0:e.data}))}))}function Ug(){return Df((function(e){var t=e.payload,n=e.accountCode;return Eh.getInstance().createRoles(t,n).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Bg(){var e=this;return Df((function(o){var a=o.payload,i=o.id,r=o.accountCode;return t(e,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:return[4,Eh.getInstance().editRoles({payload:a,id:i},r)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}}))}))}),{useErrorBoundary:!1})}function Hg(){return Df((function(e){return Eh.getInstance().deleteRoles(e).then((function(e){return null==e?void 0:e.data}))}))}function Wg(){return Df(["post-payment-links"],(function(e){var t=e.payload,n=e.accountCode;return Eh.getInstance().postPaymentLinks({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Gg(){return Df(["post-delete-payment-link"],(function(e){var t=e.code;return Eh.getInstance().postDeletePaymentLink({code:t}).then((function(e){return null==e?void 0:e.data}))}))}function Vg(){return Df(["patch-payment-links"],(function(e){var t=e.payload,n=e.accountCode,o=e.paymentLinkCode;return Eh.getInstance().patchPaymentLinks({payload:t,accountCode:n,paymentLinkCode:o}).then((function(e){return null==e?void 0:e.data}))}))}function $g(){return Df((function(e){var t=e.payload;return Eh.getInstance().postUserSettings(t)}),{onMutate:function(e){return e}})}function Kg(){return Df((function(e){return Eh.getInstance().postUserThemeSettings(e)}))}function Qg(){return Df((function(e){var t=e.payload,n=e.section;return Eh.getInstance().postUserSettingsTables(t,n)}),{onMutate:function(e){return e},onSuccess:function(e){var t=fg.getQueryData(["fetch-profile"]);e.data&&fg.setQueryData(["fetch-profile"],a(a({},t),{settings:e.data}))}})}function Jg(e){return Df(["pinned-sections"],(function(e){var t=e.payload;return Eh.getInstance().postUserSettingsPinned(t)}),{onMutate:function(t){var n=t.payload;return e({payload:n})}})}function Xg(){return Df((function(e){var t=e.password,n=e.otp;return Eh.getInstance().getMfaTokenValidation(t,n).then((function(e){return null==e?void 0:e.data}))}))}function Yg(){return Df((function(){return Eh.getInstance().getEmailOtp().then((function(e){return null==e?void 0:e.data}))}))}function Zg(){return Df((function(e){return Eh.getInstance().confirmMfaOtp(e).then((function(e){return null==e?void 0:e.data}))}))}function ey(){return Df((function(e){return Eh.getInstance().unrollMfa(e).then((function(e){return null==e?void 0:e.data}))}))}function ty(){return Df((function(){return Eh.getInstance().validatePasswordStatus().then((function(e){return null==e?void 0:e.data})).catch((function(e){return{valid:!1}}))}))}function ny(){return Df(["post-get-allowlist-items"],(function(e){var t=e.payload;return Eh.getInstance().postAllowlistItems({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function oy(){return Df(["post-get-allowlist-multi-account"],(function(e){var t=e.payload;return Eh.getInstance().postGetAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function ay(){return Df(["post-create-allowlist-multi-account"],(function(e){var t=e.payload;return Eh.getInstance().postCreateAllowlistMultiAccount({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function iy(){return Df(["patch-change-status-allowlist"],(function(e){var t=e.payload;return Eh.getInstance().patchChangeStatusAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function ry(){return Df(["patch-change-status-allowlist-item"],(function(e){var t=e.payload;return Eh.getInstance().patchChangeStatusAllowlistItem({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function sy(){return Df(["post-add-allowlist-items"],(function(e){var t=e.payload;return Eh.getInstance().patchAddAllowlistItems({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function cy(){return Df(["patch-allowlist"],(function(e){var t=e.payload;return Eh.getInstance().patchAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function uy(){return Df(["post-blacklist-multi-account"],(function(e){var t=e.payload;return Eh.getInstance().postBlackListMultiAccount({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function ly(){return Df(["put-blacklist"],(function(e){return Eh.getInstance().putBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function py(){return Df(["change-blacklist"],(function(e){return Eh.getInstance().changeBlackListStatus(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function dy(){return Df(["change-blacklist-item"],(function(e){return Eh.getInstance().changeBlackListStatusItem(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function my(){return Df(["post-blacklist-items"],(function(e){var t=e.payload;return Eh.getInstance().postBlackListItems({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function hy(){return Df(["delete-blacklist"],(function(e){var t=e.black_list_code;return Eh.getInstance().deleteBlackListType({black_list_code:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function fy(e){var t=e.handleSetProgress;return Df(["post-blacklist-batch"],(function(e){var n=e.blacklist_code,o=e.expiration_days,a=e.file;return Eh.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 gy(){return Df(["change-payments-webhook"],(function(e){var t=e.status,n=e.paymentCode;return Eh.getInstance().postChangePaymentsWebhook({status:t,paymentCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function yy(){return Df(["delete-blacklist-items"],(function(e){var t=e.blocklist_code,n=e.blocklist_item_id,o=e.account_code;return Eh.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 vy(){return Df(["valiate-blacklist-items"],(function(e){return Eh.getInstance().valiateBlockListItems({payload:e}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function by(){return Df(["delete-allowlist-item"],(function(e){return Eh.getInstance().deleteAllowlistItem({payload:e}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function ky(){return Df(["validate-allowlist-items"],(function(e){return Eh.getInstance().validateAllowlistItems({payload:e}).then((function(e){return e.data})).catch((function(e){return e}))}))}function xy(e){var t=e.fileName,n=e.onSuccess,o=e.onError,a=w(0),i=a[0],r=a[1],s=j({cancel:function(){return null}}),c=Df(["upload-file-chargeback",t],(function(e){var t=Eh.getInstance().uploadFileS3ClientBatchRefunds({payload:e,handleSetProgress:r}),a=t.promise,i=t.cancel;return s.current.cancel=i,a.then((function(e){return null==n||n(null==e?void 0:e.data),null==e?void 0:e.data})).catch((function(e){throw null==o||o(),e}))}),{useErrorBoundary:!1});return{mutation:c,cancelRequest:s.current.cancel,progress:i}}function wy(){return Df((function(e){return Eh.getInstance().uploadBatchRefundsV2({payload:e}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function jy(){var e=this;return Df((function(o){return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Eh.getInstance().batchRefundByFile({payload:o}).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function _y(){var e=this;return Df((function(o){var a=o.batchRefundId,i=o.organizationCode,r=o.accountCode;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Eh.getInstance().getBatchRefundProcessedFileDownload(a,i,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function Ey(){var e=this;return Df((function(o){var a=o.batchRefundId,i=o.organizationCode,r=o.accountCode;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Eh.getInstance().getBatchRefundUserFileDownload(a,i,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function Cy(){var e=j({cancel:function(){return null}}),t=Df(["upload-file"],(function(t){var n=Eh.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 Sy(){return Df((function(e){var t=e.payload,n=e.organizationCode;return Eh.getInstance().updateMFAConfig(t,n)}))}function Ry(){return Df((function(e){var t=e.payload,n=e.organizationCode;return Eh.getInstance().mfaExcludeUsers(t,n)}))}function Ty(e){return Pf(["GET/scheduled-reports",e],(function(){return Eh.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 Oy(){return Df((function(e){var t=e.payload;return Eh.getInstance().postScheduledReport(t).then((function(e){return{data:e.data,status:e.status}})).catch((function(e){return e}))}))}function Ay(){return Df((function(e){var t=e.reportCode,n=e.payload;return Eh.getInstance().updateScheduledReport(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Iy(){return Df((function(e){return Eh.getInstance().deleteScheduledReport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function zy(){return Df((function(e){return Eh.getInstance().getConditionalConfigRules(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Ly(){return Df((function(e){return Eh.getInstance().getRule(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Py(){return Df((function(e){var t=e.payload,n=e.accountCode;return Eh.getInstance().postCreateRuleMultiAccount(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Dy(){return Df((function(e){var t=e.payload,n=e.ruleId,o=e.accountCode;return Eh.getInstance().postEditRule(t,n,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function qy(){return Df((function(e){var t=e.payload;return Eh.getInstance().postCreateCustomizedApiKeys(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Ny(){return Df((function(e){var t=e.payload,n=e.code;return Eh.getInstance().pathCreateCustomizedApiKeys(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function My(){return Df((function(e){var t=e.code,n=e.password;return Eh.getInstance().getCustomizedApiKeysToken(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}))}function Fy(){return Df((function(e){var t=e.passwordOtp;return Eh.getInstance().getDeveloperCredentialsValidatePassword(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}))}function Uy(){return Df((function(e){var t=e.code;return Eh.getInstance().deleteCustomizedApiKeys(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function By(){return Df((function(e){var t=e.payload,n=e.code;return Eh.getInstance().patchApiKeysEditNote(t,n).then((function(e){return e.data})).catch((function(e){return e}))}))}function Hy(){return Df((function(e){var t=e.payload,n=e.code,o=e.password;return Eh.getInstance().postApiKeysRoll(t,n,o).then((function(e){return e.data})).catch((function(e){return e}))}))}function Wy(){return Df((function(e){var t=e.password,n=e.accountCode;return Eh.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 Gy(e){return Df((function(e){var t=e.payload;return Eh.getInstance().postAuditMonitors(t)}),{onMutate:e.onMutate})}function Vy(o){var a=this;return Df((function(){return Eh.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,fg.cancelQueries({queryKey:["GET/reconciliation/reports/templates"]})];case 1:return n.sent(),t=null===(a=fg.getQueryData(["GET/reconciliation/reports/templates"]))||void 0===a?void 0:a.templates,fg.setQueryData(["GET/reconciliation/reports/templates"],(function(t){return{templates:e(e([],t.templates,!0),[o],!1)}})),[2,{previousTemplates:t}]}}))}))},onError:function(e,t,n){fg.setQueryData(["GET/reconciliation/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){fg.invalidateQueries({queryKey:["GET/reconciliation/reports/templates"]})},useErrorBoundary:!1})}function $y(e){return Df((function(){return Eh.getInstance().updateReconciliationReportTemplate(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Ky(){return Df(["POST/reconciliation/alerts"],(function(e){return Eh.getInstance().postReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){fg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function Qy(){return Df(["DELETE/reconciliation/alerts"],(function(e){return Eh.getInstance().deleteReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){fg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function Jy(){return Df(["UPDATE/reconciliation/alerts"],(function(e){return Eh.getInstance().updateReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){fg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function Xy(){return Df((function(e){var t=e.payload;return Eh.getInstance().postCreateInsightsReport(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Yy(){return Df((function(e){return Eh.getInstance().createSamlConfig(e)}))}function Zy(){return Df((function(e){return Eh.getInstance().updateSamlConfig(e)}))}function ev(){return Df((function(){return Eh.getInstance().deleteSamlConfig()}))}function tv(e,t){return void 0===t&&(t={}),Df((function(t){return Eh.getInstance().generateAIWorkflowRoutes(e,t).then((function(e){return null==e?void 0:e.data}))}),a(a({},t),{useErrorBoundary:!1}))}function nv(e){return void 0===e&&(e={}),Df((function(e){return Eh.getInstance().postAIGenerationFeedback(e).then((function(e){return null==e?void 0:e.data}))}),a(a({},e),{useErrorBoundary:!1}))}function ov(){return Df((function(e){return Eh.getInstance().createChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function av(){return Df((function(e){return Eh.getInstance().deleteChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function iv(){return Df((function(e){var t=e.chartgpt_id,n=e.type,o=e.name;return Eh.getInstance().patchChartGPTChart(t,{type:n,name:o}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function rv(){var e=this;return Df((function(o){return t(e,void 0,void 0,(function(){var e,a,i,r,s,c,u,l=this;return n(this,(function(p){switch(p.label){case 0:return[4,(e=Eh.getInstance()).createChartGPTChart(o)];case 1:if(a=p.sent(),!(i=null===(u=null==a?void 0:a.data)||void 0===u?void 0:u.chartgpt_id))throw new Error("Failed to create chart: No chart ID returned");return r=function(){return t(l,void 0,void 0,(function(){var o=this;return n(this,(function(a){return[2,new Promise((function(a,r){var s=setInterval((function(){return t(o,void 0,void 0,(function(){var t,o,c;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e.getChartById(i)];case 1:return t=n.sent(),"ERROR"===(null==(o=null==t?void 0:t.data)?void 0:o.status)&&(clearInterval(s),a(o)),"DRAFT"===(null==o?void 0:o.status)&&(clearInterval(s),a(o)),[3,3];case 2:return c=n.sent(),clearInterval(s),r(c),[3,3];case 3:return[2]}}))}))}),1e4)}))]}))}))},[4,r()];case 2:return s=p.sent(),[4,e.executeChartGPTChart(i)];case 3:return c=p.sent(),[2,{chart:s,chartgpt_id:i,execution:null==c?void 0:c.data}]}}))}))}),{useErrorBoundary:!1})}var sv=function(){var e,t;return null===(t=null===(e=function(e){var t=localStorage.getItem(e),n=w(t&&JSON.parse(t)),o=n[0],a=n[1];return _((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 cv(e){var o=this;return Pf(["fetch-payments-lazy",e],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Eh.getInstance().postPaymentsLazy(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{enabled:!!e&&Object.keys(e).length>0,cacheTime:0})}function uv(e){return Pf(["fetch-payments-evaluated",e],(function(){return Eh.getInstance().postPaymentsEvaluated(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&Object.keys(e).length>0,cacheTime:0})}function lv(e){var o=this,a=e.paymentCode,i=e.enabled,r=void 0===i||i,s=Eh.getInstance();return Pf(["get-payment-v2",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,s.getPaymentV2(a).then((function(e){return e.data})).catch((function(e){throw e}))]}))}))}),{enabled:r,cacheTime:500})}function pv(e){var o=this,a=e.payment_code,i=e.enabled,r=void 0===i||i,s=Eh.getInstance();return Pf(["get-payment-transaction-details-v2",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,s.getTransactionDetailsV2({payment_code:a}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))]}))}))}),{enabled:!!a&&r,cacheTime:0})}function dv(e){var o=this,a=e.transaction_code,i=e.enabled,r=void 0===i||i,s=Eh.getInstance();return Pf(["get-payment-transaction-raw-response",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,s.getTransactionRawResponse({transaction_code:a})]}))}))}),{enabled:!!a&&r,cacheTime:0})}function mv(e){var t=sv();return Pf(["payment-methods",e],(function(){return Eh.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 hv(){return Pf({queryKey:["/payment-methods/providers"],queryFn:function(){return Eh.getInstance().getPaymentMethodsAndProviders().then((function(e){return null==e?void 0:e.data}))},cacheTime:864e5,useErrorBoundary:!1})}function fv(){return Pf(["GET/catalog/card-brands"],(function(){return Eh.getInstance().getCardBrands().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function gv(e,t){return void 0===e&&(e=!0),void 0===t&&(t=qd.PAYMENTS),Pf(["payment-filters",e,t],(function(){return Eh.getInstance().getPaymentFilters(t).then((function(e){return null==e?void 0:e.data}))}),{enabled:e,useErrorBoundary:!1,cacheTime:3e5})}function yv(){return Pf(["payment-metrics-filters"],(function(){return Eh.getInstance().getPaymentMetricsFilters().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function vv(e){var t=e.transaction_code,n=e.enabled;return Pf(["payment-transaction-details",t],(function(){return Eh.getInstance().getPaymentTransactionsDetails({transaction_code:t}).then((function(e){return null==e?void 0:e.data})).catch((function(){return{error:!0}}))}),{enabled:!!t&&(void 0===n||n)})}function bv(e){var t=e.payment_code,n=e.enabled;return Pf(["transaction-history",t],(function(){return Eh.getInstance().getTransactionHistoryByPaymentCode({payment_code:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function kv(e){var o=this;return Pf(["POST/transactions",JSON.stringify(e)],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Eh.getInstance().postTransactions(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{enabled:!!e,cacheTime:0})}function xv(e){var o=this;return Pf(["POST/fraud-transactions",JSON.stringify(e)],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Eh.getInstance().postFraudTransactions(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{enabled:!!e&&Object.keys(e).length>0,cacheTime:0})}function wv(e){return Pf(["GET/payout-detail",JSON.stringify(e)],(function(){var t=Eh.getInstance();return e.organization_code?t.getPayoutDetails(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e})):{}}),{enabled:!!e.organization_code&&!!e&&e.enabled,cacheTime:0})}function jv(e){return Pf(["GET/payout-transaction-detail",JSON.stringify(e)],(function(){return Eh.getInstance().getPayoutTransactionDetails(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&!!(null==e?void 0:e.transaction_code)&&(null==e?void 0:e.enabled),cacheTime:0})}function _v(e){var t=sv();return Pf(["GET/payout-history-detail",JSON.stringify(e)],(function(){return Eh.getInstance().getPayoutHistoryDetails(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!(null==e?void 0:e.payout_code)&&e.enabled,cacheTime:0})}function Ev(e,o){var a=this,i=sv();return Pf(["GET/useGetProofOfCancel",i,e,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Eh.getInstance().getProofOfCancel(e,i,o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e&&!!i&&!!o,cacheTime:0,useErrorBoundary:!1})}function Cv(e,o){var a=this,i=sv();return Pf(["GET/useGetProofOfPayment",i,e,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Eh.getInstance().getProofOfPayment(e,i,o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e&&!!i&&!!o,cacheTime:0,useErrorBoundary:!1})}function Sv(e,o,a){var i=this,r=Eh.getInstance();return Pf(["send-payment-notification",e,o],(function(){return t(i,void 0,void 0,(function(){var t,i;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,r.sendPaymentNotification(e,o)];case 1:return t=n.sent(),a.onSuccess(),[2,t.data];case 2:throw i=n.sent(),a.onError(),i;case 3:return[2]}}))}))}),{enabled:a.enabled,cacheTime:0,useErrorBoundary:!1})}function Rv(e){return Pf(["usePayoutsList",e&&JSON.stringify(e)],(function(){var t=Eh.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 Tv(e){var o=this;void 0===e&&(e=!0);var a=sv();return Pf(["getPayoutsFilters",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,Eh.getInstance().getPayoutsFilters(a).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{enabled:e&&!!a})}function Ov(e){var t=e.password,n=e.accountCode;return Pf(["developers"],(function(){return Eh.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 Av(){return Pf(["fetch-customized-api-keys-members"],(function(){return Eh.getInstance().getCustomizedApiKeysMembers().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function Iv(){return Pf(["developers-get-allowed-ips"],(function(){return Eh.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 zv(){return Pf(["fetch-customized-api-keys-accounts"],(function(){return Eh.getInstance().getCustomizedApiKeysAccounts().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function Lv(e){return Pf(["fetch-customized-api-keys",e],(function(){return Eh.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 Pv(){return Pf(["fetch-customized-api-keys-products"],(function(){return Eh.getInstance().getCustomizedApiKeysProducts().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{cacheTime:0})}function Dv(){return Df(["developers-patch-allowed-ips"],(function(e){return Eh.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 qv(){return Pf(["fetch-organizations"],(function(){return Eh.getInstance().getOrganization().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function Nv(){return Pf(["fetch-all-organizations",sv()],(function(){return Eh.getInstance().getAllOrganization().then((function(e){return(null==e?void 0:e.data)||[]}))}),{cacheTime:36e5,keepPreviousData:!0,useErrorBoundary:!1})}function Mv(e){var t=sv();return Pf(["organizations-provider-params",e],(function(e){var n=e.queryKey;return Eh.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 Fv(e){var t=e.integration_code,n=e.enabled,o=e.accountCode;return Pf(["integration-params",t,o],(function(){return t.includes("undefined")?{}:Eh.getInstance().getIntegrationParams({accountCode:o,integration_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,useErrorBoundary:!1})}function Uv(e){var t=e.accountCode,n=e.organizationCode,o=sv(),a=Pf(["organizations-account-integrations",t,n],(function(){return Eh.getInstance().getIntegrationByAccountV2({accountCode:t,organizationCode:n||o}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,enabled:!!t,useErrorBoundary:!1});return a}function Bv(e){var t=e.accountCode,n=e.paymentMethod;return Pf(["fetch-connections-by-payment-method",n,t],(function(){return Eh.getInstance().getConnectionsByPaymentMethod(t,n).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!n&&!!t,cacheTime:0,useErrorBoundary:!1})}function Hv(){var e=this;return Pf(["fetch-hash-pylon"],(function(){return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Eh.getInstance().getHashPylon()]}))}))}),{keepPreviousData:!0,useErrorBoundary:!1})}function Wv(){return Pf(["connections"],(function(){return Eh.getInstance().getConnections().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Gv(){return Pf(["dialogs"],(function(){return Eh.getInstance().getDialogs().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,retryDelay:2e3,cacheTime:36e5})}function Vv(){return Pf(["params-catalog"],(function(){return Eh.getInstance().getWebhookParamsV2().then((function(e){return null==e?void 0:e.data}))}))}function $v(e){var t=e.accountCode,n=e.name;return Pf(["webhooks",t,n],(function(){return Eh.getInstance().getWebhooksV3({accountCode:t,name:n}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,useErrorBoundary:!1})}function Kv(e){var t=e.accountCode,n=e.enabled;return Pf(["webhooks-detail",t],(function(){return Eh.getInstance().getWebhooksV2Detail({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!n})}function Qv(e){var t,n=sv(),o=null!==(t=null!=e?e:n)&&void 0!==t?t:null;return Pf({queryKey:["accounts",o],queryFn:function(){return Eh.getInstance().getAccounts(o).then((function(e){return null==e?void 0:e.data}))},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!o})}function Jv(e){return Pf(["accountsV2",e],(function(){return Eh.getInstance().getAccountsV2().then((function(e){return(null==e?void 0:e.data)||[]})).catch((function(e){throw e}))}),{keepPreviousData:!0,enabled:!!e,useErrorBoundary:!1})}function Xv(e){return Pf(["accountsV2-by-user",e],(function(){return e?Eh.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 Yv(){return Pf(["menu"],(function(){return Eh.getInstance().getMenu().then((function(e){return ch(e)?fh:null==e?void 0:e.data})).catch((function(){return fh}))}))}function Zv(){return Pf(["/payment/statuses/style"],(function(){return Eh.getInstance().useGetPaymentStatusesStyles().then((function(e){return ch(e)?uh:null==e?void 0:e.data})).catch((function(){return uh}))}))}function eb(){return Pf(["/transaction/statuses/style"],(function(){return Eh.getInstance().useGetTransactionStatusesStyles().then((function(e){return ch(e)?lh:null==e?void 0:e.data})).catch((function(){return lh}))}),{cacheTime:36e5,useErrorBoundary:!1})}function tb(){return Pf(["/reconciliation/transaction/statuses/style"],(function(){return Eh.getInstance().useGetReconciliationTransactionStatusesStyles().then((function(e){return ch(e)?ph:null==e?void 0:e.data})).catch((function(){return ph}))}))}function nb(){return Pf(["timezone-catalog"],(function(){return Eh.getInstance().useGetTimeZoneCatalog().then((function(e){return ch(e)?dh:null==e?void 0:e.data})).catch((function(){return dh}))}))}function ob(){return Pf(["/cms/audit-logs-filters"],(function(){return Eh.getInstance().useGetAuditLogsFilters().then((function(e){return ch(e)?mh:null==e?void 0:e.data})).catch((function(){return mh}))}))}function ab(){return Pf(["/cms/static-contents"],(function(){return Eh.getInstance().getDashboardStaticContents().then((function(e){var t,n;return ch(e)?hh:(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 ib(){return Pf(["/cms/locales"],(function(){return Eh.getInstance().getLocales().then((function(e){return ch(e)?gh:e.data})).catch((function(){return gh}))}))}var rb=function(){var e=w("ON"===localStorage.getItem("isTesting")),t=e[0],n=e[1];return _((function(){window.addEventListener("storage",(function(e){"isTesting"===e.key&&n("ON"===e.newValue)}))}),[]),{isTesting:t}};function sb(e){return Pf(["smart-routing-methods",e],(function(){return Eh.getInstance().getSmartRoutingMethods(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function cb(e,t){return Pf(["smart-routing-workflow",t,e],(function(){return Eh.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 ub(e,t){return Pf(["smart-routing-condition-types",e,t],(function(){return Eh.getInstance().getSmartRoutingConditionTypes(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!e})}function lb(e,t){return Pf(["smart-routing-condition-payment-method",e,t],(function(){return Eh.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 pb(e,t){return Pf(["smart-routing-condition-types-values",t,e],(function(){return Eh.getInstance().getSmartRoutingConditionTypesValues(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&!!e,useErrorBoundary:!1})}function db(e){var t=e.accountCode,n=e.workflowVersionId;return Pf(["smart-routing-workflow-version",n,t],(function(){return Eh.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 mb(e,t,n){return Pf(["smart-routing-next-route",e,n,t],(function(){return Eh.getInstance().getSmartRoutingNextSteps(e,t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function hb(e){return Pf(["smart-routing-decline-groups",e],(function(){return Eh.getInstance().getSmartRoutingDeclinedGroup(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function fb(e,t){return Pf(["smart-routing-payment-route",e,t],(function(){return Eh.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 gb(e){return Pf(["smart-routing-simulate-condition-type-values",e],(function(){return Eh.getInstance().getSmartRoutingSimulateConditionTypeValues(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function yb(e){var t=e.text,n=e.conditionType;return Pf(["smart-routing-search-condition-values",t,n],(function(){return Eh.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 vb(){return Pf(["smart-routing-conversion-rates"],(function(){return Eh.getInstance().getProviderConversionRatesData().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!1,useErrorBoundary:!1})}function bb(){var e=this;return Pf({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,Eh.getInstance().get3DSExemptions()];case 1:return[2,e.sent().data]}}))}))},useErrorBoundary:!1})}function kb(e){return Pf(["fetch-routing-monitors-templates",e],(function(){return Eh.getInstance().getRoutingMonitorsTemplates(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function xb(e,t){return Pf(["fetch-routing-monitors-template",e],(function(){return Eh.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 wb(e){var t=e.accountCode;return Pf(["checkouts",t],(function(){return Eh.getInstance().getCheckouts({accountCode:t}).then((function(e){return e.data}))}),{cacheTime:0,enabled:Boolean(t)})}function jb(e){var t=e.accountCode;return Pf(["checkouts-template"],(function(){return Eh.getInstance().getCheckoutTemplate({accountCode:t}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,enabled:Boolean(t)})}var _b=function(e){return["checkout-builder-name-and-icon",e.paymentMethodType,e.type]},Eb=function(e,t){var n=e.paymentMethodType,o=e.type;return Pf(_b({paymentMethodType:n,type:o}),(function(){return Eh.getInstance().getNameAndIcon({paymentMethodType:n,type:o}).then((function(e){return null==e?void 0:e.data}))}),t)},Cb=function(e){return["checkout-builder-required-fields",e.paymentMethodType,e.type]},Sb=function(e,t){var n=e.paymentMethodType,o=e.type;return Pf(Cb({paymentMethodType:n,type:o}),(function(){return Eh.getInstance().getRequiredFields({paymentMethodType:n,type:o}).then((function(e){return null==e?void 0:e.data}))}),t)};function Rb(e){var t=e.accountCode;return Pf(["styling-theme",t],(function(){return Eh.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 Tb(e){var t=e.accountCode;return Pf(["styling-settings",t],(function(){return Eh.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 Ob(){return Pf(["fetch-profile"],(function(){return Eh.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 Ab(e,t){return Pf(["fetch-permissions",e,t],(function(){var e,t,n,o=localStorage.getItem("account"),a=localStorage.getItem("user"),i=o&&JSON.parse(o),r=a&&JSON.parse(a);return((null==r?void 0:r.merlin)?null===(e=null==r?void 0:r.merlin)||void 0===e?void 0:e.permissions:null===(n=null===(t=null==i?void 0:i.value)||void 0===t?void 0:t.role)||void 0===n?void 0:n.permission_ids.map((function(e){return{permission_name:e,description:e,resource_server_name:e,resource_server_identifier:e}})))||[]}))}function Ib(e){return Pf(["email-verification",e],(function(){return Eh.getInstance().emailVerification(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function zb(){return Pf({queryKey:["get-login-methods"],queryFn:function(){return Eh.getInstance().getLoginMethods().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}})}function Lb(){return Pf(["fetch-impersonation-users"],(function(){return Eh.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 Pb(){return Pf(["fetch-impersonation-enabled"],(function(){return Eh.getInstance().getImpersonationEnabled().then((function(e){return null==e?void 0:e.data}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Db(e){return Pf(["notifications-customer",e],(function(){return Eh.getInstance().getNotificationsCustomer(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,keepPreviousData:!1})}function qb(e){return Pf(["validate-opsgenie-key",e],(function(){return Eh.getInstance().getValidateOpsgenieKey(e).then((function(e){return null==e?void 0:e.data})).catch((function(){return{error:!0}}))}),{enabled:!!e,cacheTime:0})}function Nb(){return Pf(["notifications-merged"],(function(){return Eh.getInstance().getMergedNotifications().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{keepPreviousData:!1,cacheTime:0})}function Mb(){return Df((function(e){return Eh.getInstance().getNotificationsNumber(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Fb(){var e=this;return Df((function(o){return t(e,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:return[4,Eh.getInstance().pathNotification(o)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}}))}))}))}var Ub={key:"metadata_fields",name:"metadata_fields"};function Bb(){return Pf(["reports"],(function(){return Eh.getInstance().reportsList().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Hb(e){return void 0===e&&(e=!0),Pf(["reports-multi-env"],(function(){return Eh.getInstance().reportsListMultiEnv().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e})}function Wb(e,t,n){return void 0===t&&(t=!1),Pf(["reports/".concat(e)],(function(){return Eh.getInstance().downloadReports(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:t,onSuccess:n,useErrorBoundary:!1})}function Gb(e){return Pf(["GET/reports/templates"],(function(){return Eh.getInstance().getReportTemplates().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e,useErrorBoundary:!1})}function Vb(t,n,o){return Pf(["GET/reports/columns/".concat(n,"/").concat(o)],(function(){return Eh.getInstance().getReportColumns(n,o).then((function(t){return"ALL"===n&&"PAYMENTS"===o?e(e([],null==t?void 0:t.data,!0),[Ub],!1):null==t?void 0:t.data})).catch((function(e){return e}))}),{enabled:t,useErrorBoundary:!1})}function $b(e,o){var a=this,i=sv();return Pf(["getRefundPdf",e,i,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Eh.getInstance().getRefundPdf(e,i,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))]}))}))}),{enabled:!!e&&!!i,useErrorBoundary:!1})}function Kb(){var e=sv();return Pf(["teams-filters-members"],(function(){return Eh.getInstance().teamsFiltersMembers({organizationCode:e}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0})}function Qb(e){var t=e.organizationCode,n=e.accountCodes,o=e.email,a=e.page,i=e.pageSize,r=sv();return Pf(["fetch-post-members-v2",t,n,o,a,i],(function(){return Eh.getInstance().postMembersPaginatedV2({organizationCode:r,accountCodes:n,email:o,page:a,pageSize:i}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&!!n,cacheTime:0,useErrorBoundary:!1})}function Jb(){return Pf(["fetch-roles"],(function(){return Eh.getInstance().getRoles().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Xb(){return Pf(["fetch-rolespermissions"],(function(){return Eh.getInstance().getRolesPermissions().then((function(e){return null==e?void 0:e.data}))}))}function Yb(){return Pf(["fetch-permissions-catalog"],(function(){return Eh.getInstance().getPermissionsCatalog().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Zb(e){return Pf(["data-report",e],(function(){return Eh.getInstance().getSmartRoutingDataReport(e).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,useErrorBoundary:!1})}function ek(e,t,n){return void 0===n&&(n=!0),Pf(["get-insights-conversion-rate-metrics-v2",e,t],(function(){return Eh.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:3e5,cacheTime:3e5,useErrorBoundary:!1,retry:1})}function tk(e,t){return Pf(["get-insights-conversion-rate-view-more-metrics",t,e],(function(){return Eh.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 nk(e){return Pf(["get-insights-conversion-rate-fallback-metrics",e],(function(){return Eh.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 ok(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Pf(["get-insights-volume-metrics",t,e],(function(){return Eh.getInstance().getInsightsMetricsVolume(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function ak(e,t,n,o){return void 0===o&&(o=!0),delete t.account_code,Pf(["get-insights-volume-metrics-v2",t,e,n],(function(){return Eh.getInstance().getInsightsMetricsVolumeV2(e,n,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:o,cacheTime:200,useErrorBoundary:!1})}function ik(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Pf(["get-insights-total-payment-fraud-metrics",t,e],(function(){return Eh.getInstance().getInsightsMetricsTotalPaymentsAndFraud(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function rk(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Pf(["get-insights-customer-payment-fraud-metrics",t,e],(function(){return Eh.getInstance().getInsightsMetricsCustomerPaymentsAndFraud(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function sk(e){return Pf(["get-insights-overview",e],(function(){return Eh.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 ck(e,t){var n=!!(null==e?void 0:e.enabled)&&void 0!==(null==e?void 0:e.account_code);return Pf(["get-insights-overview-v3",e,t],(function(){return Eh.getInstance().getInsightOverviewV3(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:0,useErrorBoundary:!1})}function uk(e){return Pf(["get-insights-home-metrics",e],(function(){return Eh.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 lk(e){return Pf(["get-insights-reports",e],(function(){return Eh.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 pk(e){return Pf(["get-insights-reports-again",e],(function(){return Eh.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 dk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Pf({queryKey:["post-insights-fraud-screening-volume-and-count-tx",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Eh.getInstance().getInsightsFraudScreeningVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function mk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Pf({queryKey:["post-insights-fraud-screening-conversion-rate",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Eh.getInstance().getInsightsFraudScreeningConversionRate(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function hk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Pf({queryKey:["post-insights-3ds-volume-and-count-tx",o,e],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Eh.getInstance().getInsights3dsVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function fk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Pf({queryKey:["post-insights-3ds-conversion-rate-and-evolution",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Eh.getInstance().getInsights3dsConversionRateAndEvolution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function gk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Pf({queryKey:["post-insights-3ds-decline-reasons",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Eh.getInstance().getInsights3dsDeclineReasons(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function yk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Pf({queryKey:["post-insights-3ds-frictionless-vs-challenge",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Eh.getInstance().getInsights3dsFrictionlessVsChallenge(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function vk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Pf({queryKey:["post-insights-chargebacks-volume-and-count-tx",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Eh.getInstance().getInsightsChargebacksVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function bk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Pf({queryKey:["post-insights-chargebacks-win-rate",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Eh.getInstance().getInsightsChargebacksWinRate(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function kk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Pf({queryKey:["post-insights-chargebacks-disputed",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Eh.getInstance().getInsightsChargebacksDisputed(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function xk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Pf({queryKey:["post-insights-chargebacks-by-provider-and-card-brand",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Eh.getInstance().getInsightsChargebacksByProviderAndCardBrand(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function wk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Pf({queryKey:["post-insights-chargebacks-reasons-distribution",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Eh.getInstance().getInsightsChargebacksReasonsDistribution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function jk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Pf({queryKey:["post-insights-chargebacks-status-distribution",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Eh.getInstance().getInsightsChargebacksStatusDistribution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function _k(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Pf({queryKey:["post-insights-chargebacks-by-card-brand",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Eh.getInstance().getInsightsChargebacksByCardBrand(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Ek(e,t){return Pf(["fetch-reconciliation-transaction",e],(function(){return Eh.getInstance().getReconciliationTransactions(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t,useErrorBoundary:!1})}function Ck(e,t){return Pf(["fetch-reconciliation-settlements",e],(function(){return Eh.getInstance().getReconciliationSettlements(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t,useErrorBoundary:!1})}function Sk(e,t){return Pf(["fetch-reconciliation-metrics",e],(function(){return Eh.getInstance().getReconciliationMetrics(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t,cacheTime:500})}function Rk(){return Pf(["GET-reconciliation-filters"],(function(){return Eh.getInstance().getReconciliationFilters().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Tk(e){return Pf(["GET/v1/reconciliation/table/".concat(e,"/columns")],(function(){return Eh.getInstance().getAllTableColumns(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Ok(){return Pf(["GET/v1/reconciliation/active"],(function(){return Eh.getInstance().getReconciliationActive().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Ak(e,t,n){return Pf(["GET/reconciliation/reports/columns/".concat(t,"/").concat(n)],(function(){return Eh.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 Ik(e){return Pf(["GET/reconciliation/reports/templates"],(function(){return Eh.getInstance().getReconciliationReportTemplates().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{enabled:e,useErrorBoundary:!1})}function zk(e){var t=e.body,n=e.params,o=e.enabled;return Pf(["GET/reconciliation/alerts/list",t,n],(function(){return Eh.getInstance().getReconciliationAlerts(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Lk(e){var t=e.body,n=e.params,o=e.enabled;return Pf(["GET/reconciliation/agenda/list",t,n],(function(){return Eh.getInstance().getReconciliationAgenda(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Pk(e){var t=e.body,n=e.params,o=e.enabled;return Pf(["GET/reconciliation/agenda/insights",t,n],(function(){return Eh.getInstance().getReconciliationAgendaInsightByKey(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Dk(e){var t=e.body,n=e.params,o=e.enabled;return Pf(["GET/reconciliation/sales/list",t,n],(function(){return Eh.getInstance().getReconciliationSales(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function qk(e){var t=e.body,n=e.params,o=e.enabled;return Pf(["GET/reconciliation/advancements/list",t,n],(function(){return Eh.getInstance().getReconciliationAdvancements(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Nk(e){var t=e.body,n=e.params,o=e.enabled;return Pf(["GET/reconciliation/fees/list",t,n],(function(){return Eh.getInstance().getReconciliationFees(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Mk(e){var o=this,a=Object.values(e).filter(Boolean);return Pf(["feature-flags",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Eh.getInstance().getFeatureFlagId(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:a.length>1,useErrorBoundary:!1})}function Fk(e){var o=this,a=Pf({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,Eh.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}),i=Tf();return _((function(){i.setQueryData(["cached-feature-flags"],a)}),[a,i]),a}function Uk(e){var t=Tf();return Pf({queryKey:["cached-feature-flags"],queryFn:function(){},enabled:!1,select:function(t){var n;return{result:null===(n=t.data)||void 0===n?void 0:n[e]}},initialData:function(){var e=t.getQueryData(["cached-feature-flags"]);return(null==e?void 0:e.data)||{}}})}function Bk(e){return Pf(["events",e],(function(){return Eh.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 Hk(e){return Pf(["audit-monitor-event-detail",e],(function(){return Eh.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 Wk(e,t){return Pf(["fetch-payment-links",e,t],(function(){return Eh.getInstance().getPaymentLinks(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,cacheTime:0})}function Gk(e){return Pf(["payment-link"],(function(){return Eh.getInstance().getPaymentLinksByCode(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function Vk(e){return void 0===e&&(e=!0),Pf(["countries",e],(function(){return Eh.getInstance().useGetCountriesConfig().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e,keepPreviousData:!0})}function $k(e){var t=localStorage.getItem("lang")||"en",n=e||t;return Pf(["countries-v2",n],(function(){return Eh.getInstance().useGetCountriesConfigV2(n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!0,keepPreviousData:!0})}function Kk(e){return Pf(["timezone"],(function(){return Eh.getInstance().getTimezone(e).then((function(e){return ch(e)?dh:null==e?void 0:e.data})).catch((function(){return dh}))}),{enabled:!0,keepPreviousData:!0})}function Qk(e){return Df((function(e){var t=e.payload;return Eh.getInstance().firebaseUserSubscribe(t)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Jk(e,t){return Pf(["get-cofig-allow-list",e],(function(){return Eh.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 Xk(e){return Pf(["get-black-list",e],(function(){return Eh.getInstance().getBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!e})}function Yk(e,t,n,o){var a;return Pf(["post-black-list",e],(function(){return Eh.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 Zk(e,t,n){return Pf(["get-block-list-summary",e,t,n],(function(){var o=Eh.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 ex(e,t,n,o,a,i){return Pf(["black-list-detail",e,t,o,a,i],(function(){return Eh.getInstance().getBlacklistDetail(e,t,n,o,a).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&i,cacheTime:0})}function tx(e,t,n){return Pf(["allow-list-detail",e],(function(){return Eh.getInstance().getAllowlistDetail(e,t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{enabled:!!e&&!!n})}function nx(e){return Pf(["query-post-get-allowlist-multi-account",JSON.stringify(e)],(function(){return Eh.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 ox(e,o){var a=this;return void 0===e&&(e=26),void 0===o&&(o=0),Pf(["batch-refunds",e,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Eh.getInstance().getBatchRefunds(e,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{cacheTime:0})}function ax(e){return Pf(["velocity-rules",e],(function(){var t=Eh.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 ix(){return Pf(["config-rules"],(function(){return Eh.getInstance().getAllConfigRules().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0})}function rx(e,t){var n=e.organizationCode;return Pf(["mfa-excluded-users",n],(function(){return Eh.getInstance().getMFAExcludedUsers({organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function sx(e,t){var n=e.organizationCode;return Pf(["mfa-config",n],(function(){return Eh.getInstance().getMFAConfig({organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function cx(e,t){return Pf(["mfa-enforcement-status",e.accountCode],(function(){return Eh.getInstance().getMFAEnforcementStatus().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function ux(e){return Pf(["fetch-organization-saml-config",e],(function(){return Eh.getInstance().getSamlConfig().then((function(e){return e.data}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function lx(e){return Pf(["chartgpt-chart-execute",e],(function(){return Eh.getInstance().executeChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e})}function px(){return Pf(["chartgpt-user-charts"],(function(){return Eh.getInstance().getChartsByUser().then((function(e){return null==e?void 0:e.data}))}))}function dx(){var e=this;return Pf(["chartgpt-user-charts-with-results"],(function(){return t(e,void 0,void 0,(function(){var e,o,i,r=this;return n(this,(function(s){switch(s.label){case 0:return[4,(e=Eh.getInstance()).getChartsByUser()];case 1:return o=s.sent(),i=(null==o?void 0:o.data)||[],[4,Promise.all(i.map((function(o){return t(r,void 0,void 0,(function(){var t,i,r;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e.executeChartGPTChart(o.chartgpt_id)];case 1:return t=n.sent(),[2,a(a({},o),{results:(null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.results)||[]})];case 2:return i=n.sent(),console.error("Failed to execute chart ".concat(o.chartgpt_id,":"),i),[2,a(a({},o),{results:[]})];case 3:return[2]}}))}))})))];case 2:return[2,s.sent()]}}))}))}))}function mx(e,o,a){var i=this;return void 0===a&&(a=!0),Pf(["chartgpt-patch-and-execute",e,o],(function(){return t(i,void 0,void 0,(function(){var t,a,i,r,s;return n(this,(function(n){switch(n.label){case 0:return[4,(t=Eh.getInstance()).patchChartGPTChart(e,o)];case 1:return a=n.sent(),i=null==a?void 0:a.data,[4,t.executeChartGPTChart(e)];case 2:return r=n.sent(),s=null==r?void 0:r.data,[2,{chart:i,execution:s}]}}))}))}),{enabled:a&&!!e,retry:!1})}function hx(){return Pf(["languages"],(function(){return Eh.getInstance().getLanguages().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,cacheTime:300})}function fx(){return Pf(["translations"],(function(){return Eh.getInstance().getTranslations().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,cacheTime:300})}function gx(){return gx=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},gx.apply(this,arguments)}
223
+ */"production"===process.env.NODE_ENV?kf.exports=function(){if(bf)return xf;bf=1;var e=x,t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useState,o=e.useEffect,a=e.useLayoutEffect,i=e.useDebugValue;function r(e){var n=e.getSnapshot;e=e.value;try{var o=n();return!t(e,o)}catch(e){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var s=t(),c=n({inst:{value:s,getSnapshot:t}}),u=c[0].inst,l=c[1];return a((function(){u.value=s,u.getSnapshot=t,r(u)&&l({inst:u})}),[e,s,t]),o((function(){return r(u)&&l({inst:u}),e((function(){r(u)&&l({inst:u})}))}),[e]),i(s),s};return xf.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:s,xf}():kf.exports=(wf||(wf=1,"production"!==process.env.NODE_ENV&&function(){function e(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!n(e,o)}catch(e){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=x,n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=t.useState,a=t.useEffect,i=t.useLayoutEffect,r=t.useDebugValue,s=!1,c=!1,u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(u,l){s||void 0===t.startTransition||(s=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var p=l();if(!c){var d=l();n(p,d)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}var m=(d=o({inst:{value:p,getSnapshot:l}}))[0].inst,h=d[1];return i((function(){m.value=p,m.getSnapshot=l,e(m)&&h({inst:m})}),[u,p,l]),a((function(){return e(m)&&h({inst:m}),u((function(){e(m)&&h({inst:m})}))}),[u]),r(p),p};jf.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:u,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),jf);var _f=kf.exports;const Ef=_f.useSyncExternalStore,Cf=k.createContext(void 0),Sf=k.createContext(!1);function Rf(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Cf),window.ReactQueryClientContext):Cf)}const Tf=({context:e}={})=>{const t=k.useContext(Rf(e,k.useContext(Sf)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Of=({client:e,children:t,context:n,contextSharing:o=!1})=>{k.useEffect((()=>(e.mount(),()=>{e.unmount()})),[e]),"production"!==process.env.NODE_ENV&&o&&e.getLogger().error("The contextSharing option has been deprecated and will be removed in the next major version");const a=Rf(n,o);return k.createElement(Sf.Provider,{value:!n&&o},k.createElement(a.Provider,{value:e},t))},Af=k.createContext(!1);Af.Provider;const If=k.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function zf(e,t){return"function"==typeof e?e(...t):!!e}function Lf(e,t){const n=Tf({context:e.context}),o=k.useContext(Af),a=k.useContext(If),i=n.defaultQueryOptions(e);i._optimisticResults=o?"isRestoring":"optimistic",i.onError&&(i.onError=of.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=of.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=of.batchCalls(i.onSettled)),(e=>{e.suspense&&"number"!=typeof e.staleTime&&(e.staleTime=1e3)})(i),((e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))})(i,a),(e=>{k.useEffect((()=>{e.clearReset()}),[e])})(a);const[r]=k.useState((()=>new t(n,i))),s=r.getOptimisticResult(i);if(Ef(k.useCallback((e=>{const t=o?()=>{}:r.subscribe(of.batchCalls(e));return r.updateResult(),t}),[r,o]),(()=>r.getCurrentResult()),(()=>r.getCurrentResult())),k.useEffect((()=>{r.setOptions(i,{listeners:!1})}),[i,r]),((e,t,n)=>(null==e?void 0:e.suspense)&&((e,t)=>e.isLoading&&e.isFetching&&!t)(t,n))(i,s,o))throw((e,t,n)=>t.fetchOptimistic(e).then((({data:t})=>{null==e.onSuccess||e.onSuccess(t),null==e.onSettled||e.onSettled(t,null)})).catch((t=>{n.clearReset(),null==e.onError||e.onError(t),null==e.onSettled||e.onSettled(void 0,t)})))(i,r,a);if((({result:e,errorResetBoundary:t,useErrorBoundary:n,query:o})=>e.isError&&!t.isReset()&&!e.isFetching&&zf(n,[e.error,o]))({result:s,errorResetBoundary:a,useErrorBoundary:i.useErrorBoundary,query:r.getCurrentQuery()}))throw s.error;return i.notifyOnChangeProps?s:r.trackResult(s)}function Pf(e,t,n){return Lf(Ah(e,t,n),mf)}function Df(e,t,n){const o=function(e,t,n){return Wh(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}(e,t,n),a=Tf({context:o.context}),[i]=k.useState((()=>new vf(a,o)));k.useEffect((()=>{i.setOptions(o)}),[i,o]);const r=Ef(k.useCallback((e=>i.subscribe(of.batchCalls(e))),[i]),(()=>i.getCurrentResult()),(()=>i.getCurrentResult())),s=k.useCallback(((e,t)=>{i.mutate(e,t).catch(qf)}),[i]);if(r.error&&zf(i.options.useErrorBoundary,[r.error]))throw r.error;return{...r,mutate:s,mutateAsync:r.mutate}}function qf(){}function Nf(e){return Df((function(e){var t=e.payload;return Eh.getInstance().postWebhookV2MultiAccount({payload:t})}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Mf(e){return Df((function(e){var t=e.code,n=e.accountCode;return Eh.getInstance().deleteWebhookV2(t,n)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Ff(e){return Df((function(e){var t=e.code,n=e.payload,o=e.accountCode;return Eh.getInstance().updateWebhookV2(t,n,o)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Uf(){return Df((function(e){var t=e.name,n=e.principal;return Eh.getInstance().postAccount(t,n)}))}function Bf(){return Df((function(e){var t=e.name,n=e.code,o=e.principal;return Eh.getInstance().patchAccountV2({name:t,code:n,principal:o})}))}function Hf(){return Df((function(e){var t=e.account_code;return Eh.getInstance().putAccountPrincipal({account_code:t})}))}function Wf(){return Df((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return Eh.getInstance().putAccountsUserMassive(t,n,o)}))}function Gf(){return Df((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return Eh.getInstance().deleteAccountsUserMassive(t,n,o)}))}function Vf(){return Df(["post-validate-status-connection"],(function(e){var t=e.payload,n=e.accountCode;return Eh.getInstance().postValidateStatusConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function $f(){return Df(["post-change-status-connection"],(function(e){var t=e.payload,n=e.accountCode;return Eh.getInstance().postChangeStatusConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Kf(){return Df((function(e){return Eh.getInstance().putCosts(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Qf(){return Df(["post-connection"],(function(e){var t=e.payload;return Eh.getInstance().postMultiConnection({payload:t}).then((function(e){return null==e?void 0:e.data}))}))}function Jf(){return Df(["new-post-connection-validate"],(function(){return Eh.getInstance().postMultiConnectionValidate().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Xf(){return Df(["patch-connection"],(function(e){var t=e.payload,n=e.connectionCode;return Eh.getInstance().patchConnection({payload:t,connectionCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Yf(){return Df((function(e){var t=e.payload;return Eh.getInstance().postDefaultRoutes({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function Zf(){return Df((function(e){return Eh.getInstance().postValidateCredentials(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function eg(){return Df(["patch-organizations"],(function(){return Eh.getInstance().updateOrganizationStatus().then((function(e){return null==e?void 0:e.data}))}))}function tg(){return Df((function(e){return Eh.getInstance().getOrgByName(e).then((function(e){return null==e?void 0:e.data}))}))}function ng(){var e=this;return Df((function(o){return t(e,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,Eh.getInstance().changePasswordV2(o).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}))}function og(e){return Df((function(e){return Eh.getInstance().updateProfile(e)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function ag(){return Df((function(e){return Eh.getInstance().inviteUsersMassive(e,e.organizationCode)}))}function ig(){return Df((function(e){var t=e.userCode,n=e.organizationCode;return Eh.getInstance().unInviteUsersV2({userCode:t,organizationCode:n})}))}function rg(){return Df((function(e){return Eh.getInstance().createUserAuth0(e)}))}function sg(){return Df((function(e){return Eh.getInstance().postCall(e)}))}function cg(){return Df((function(e){return Eh.getInstance().changeLoginMethods(e)}))}function ug(e){return Df((function(e){return Eh.getInstance().updateIsActiveCheckout(e)}),e)}function lg(){return Df((function(e){var t=e.accountCode,n=e.template;return Eh.getInstance().updateCheckoutTemplate({accountCode:t,template:n}).then((function(e){return null==e?void 0:e.data}))}))}function pg(){return Df((function(e){var t=e.accountCode,n=e.theme;return Eh.getInstance().updateStylingTheme({accountCode:t,theme:n}).then((function(e){return null==e?void 0:e.data}))}))}function dg(){return Df((function(e){var t=e.payload,n=e.transactionId,o=e.paymentId,a=e.action;return Eh.getInstance().createOperationTransaction(t,n,o,a)}))}function mg(){return Df((function(e){var t=e.payload,n=e.paymentId,o=e.transactionId,a=e.handleSetProgress;return Eh.getInstance().uploadChargebacks(t,n,o,a)}))}var hg=new sf({}),fg=new class{constructor(e={}){this.queryCache=e.queryCache||new sf,this.mutationCache=e.mutationCache||new lf,this.logger=e.logger||nf,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=Kh.subscribe((()=>{Kh.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())})),this.unsubscribeOnline=Jh.subscribe((()=>{Jh.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]=Ih(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=Ah(e,t,n),a=this.getQueryData(o.queryKey);return a?Promise.resolve(a):this.fetchQuery(o)}getQueriesData(e){return this.getQueryCache().findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const o=this.queryCache.find(e),a=function(e,t){return"function"==typeof e?e(t):e}(t,null==o?void 0:o.state.data);if(void 0===a)return;const i=Ah(e),r=this.defaultQueryOptions(i);return this.queryCache.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return of.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]=Ih(e,t),o=this.queryCache;of.batch((()=>{o.findAll(n).forEach((e=>{o.remove(e)}))}))}resetQueries(e,t,n){const[o,a]=Ih(e,t,n),i=this.queryCache,r={type:"active",...o};return of.batch((()=>(i.findAll(o).forEach((e=>{e.reset()})),this.refetchQueries(r,a))))}cancelQueries(e,t,n){const[o,a={}]=Ih(e,t,n);void 0===a.revert&&(a.revert=!0);const i=of.batch((()=>this.queryCache.findAll(o).map((e=>e.cancel(a)))));return Promise.all(i).then(Rh).catch(Rh)}invalidateQueries(e,t,n){const[o,a]=Ih(e,t,n);return of.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]=Ih(e,t,n),i=of.batch((()=>this.queryCache.findAll(o).filter((e=>!e.isDisabled())).map((e=>{var t;return e.fetch(void 0,{...a,cancelRefetch:null==(t=null==a?void 0:a.cancelRefetch)||t,meta:{refetchPage:o.refetchPage}})}))));let r=Promise.all(i).then(Rh);return null!=a&&a.throwOnError||(r=r.catch(Rh)),r}fetchQuery(e,t,n){const o=Ah(e,t,n),a=this.defaultQueryOptions(o);void 0===a.retry&&(a.retry=!1);const i=this.queryCache.build(this,a);return i.isStaleByTime(a.staleTime)?i.fetch(a):Promise.resolve(i.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(Rh).catch(Rh)}fetchInfiniteQuery(e,t,n){const o=Ah(e,t,n);return o.behavior=pf(),this.fetchQuery(o)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(Rh).catch(Rh)}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=>Dh(e)===Dh(t.queryKey)));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find((t=>qh(e,t.queryKey)));if("production"!==process.env.NODE_ENV){this.queryDefaults.filter((t=>qh(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=>Dh(e)===Dh(t.mutationKey)));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find((t=>qh(e,t.mutationKey)));if("production"!==process.env.NODE_ENV){this.mutationDefaults.filter((t=>qh(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=Ph(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:hg});function gg(){return Df((function(e){return Eh.getInstance().createReconciliationsReportV2(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function yg(){return Df((function(e){return Eh.getInstance().createReportV2(e).then((function(e){return null==e?void 0:e.data}))}))}function vg(){return Df((function(e){return Eh.getInstance().getTotalRowsForExport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function bg(){return Df((function(e){return Eh.getInstance().cancelReport(e).then((function(e){return null==e?void 0:e.data}))}))}function kg(o){var a=this;return Df((function(){return t(a,void 0,void 0,(function(){return n(this,(function(e){return[2,Eh.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,fg.cancelQueries({queryKey:["GET/reports/templates"]})];case 1:return n.sent(),t=fg.getQueryData(["GET/reports/templates"]),fg.setQueryData(["GET/reports/templates"],(function(t){return e(e([],t,!0),[o],!1)})),[2,{previousTemplates:t}]}}))}))},onError:function(e,t,n){fg.setQueryData(["GET/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){fg.invalidateQueries({queryKey:["GET/reports/templates"]})}})}function xg(e){return Df((function(){return Eh.getInstance().updateReportTemplate(e).then((function(e){return null==e?void 0:e.data}))}))}function wg(e,o,a){var i=this;return void 0===a&&(a=null),Df((function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Eh.getInstance().postSmartRoutingCreateWorkflow(e,o).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,t.sent()]}}))}))}),a)}function jg(e,o){var a=this,i=e.versionCode,r=e.accountCode,s=e.organizationCode;return void 0===o&&(o=null),Df((function(){return t(a,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,Eh.getInstance().postSmartRoutingPublishVersion(r,i,s).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}),o)}function _g(e,t){var n=e.data,o=e.accountCode;return void 0===t&&(t=null),Df((function(){return Eh.getInstance().putSmartRoutingUpdateWorkflow(o,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),t)}function Eg(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Df((function(){return Eh.getInstance().deleteSmartRoutingVersion(o,n).then((function(e){return null==e?void 0:e.data}))}),t)}function Cg(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Df((function(){return Eh.getInstance().postSmartRoutingDuplicateVersion(o,n).then((function(e){return null==e?void 0:e.data}))}),t)}function Sg(e,t){var n=e.paymentMethod,o=e.active,a=e.accountCode;return void 0===t&&(t=null),Df((function(){return Eh.getInstance().putSmartRoutingToggleMethod(a,n,o).then((function(e){return null==e?void 0:e.data}))}),t)}function Rg(e,t){var n=e.declinedId,o=e.accountCode;return void 0===t&&(t=null),Df((function(e){return void 0===e&&(e=null),Eh.getInstance().updateSmartRoutingDeclinedGroup(o,n,e).then((function(e){return null==e?void 0:e.data}))}),t)}function Tg(e){var t=e.accountCode;return Df((function(e){return void 0===e&&(e=null),Eh.getInstance().createSmartRoutingDeclinedGroup(t,e).then((function(e){return null==e?void 0:e.data}))}),e.options)}function Og(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Df((function(e){return void 0===e&&(e=!1),Eh.getInstance().updateSmartRoutingFavorite(o,n,e).then((function(e){return null==e?void 0:e.data}))}),t)}function Ag(e,t){var n=e.code,o=e.name,a=e.accountCode;return void 0===t&&(t=null),Df((function(){return Eh.getInstance().putSmartRoutingUpdateWorkflowName(a,{code:n,name:o}).then((function(e){return null==e?void 0:e.data}))}),t)}function Ig(e,t){var n=e.accountCode,o=e.workflowVersionCode;return void 0===t&&(t=null),Df((function(e){return Eh.getInstance().simulateSmartRoutingTransaction(n,o,e).then((function(e){return null==e?void 0:e.data}))}),t)}function zg(e,t){return void 0===t&&(t=null),Df((function(t){return Eh.getInstance().updateMonitorRedistribution(e,t).then((function(e){return null==e?void 0:e.data}))}),t)}function Lg(e,t){return void 0===t&&(t={}),Df((function(t){var n=t.declinedGroupCode;return Eh.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 Pg(e,t){return void 0===t&&(t={}),Df((function(t){var n=t.payload;return Eh.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 Dg=function(e){return Df((function(t){return Eh.getInstance().createMonitorThreshold(t,e).then((function(e){return e.data}))}))},qg=function(e){return Df((function(t){return Eh.getInstance().createMonitorTemplate(t,e).then((function(e){return e.data}))}))};function Ng(){return Df((function(e){var t=e.payload;return Eh.getInstance().postSlackMessageChannel(t).then((function(e){return null==e?void 0:e.data}))}))}function Mg(){return Df((function(e){var t=e.userCode,n=e.organizationCode;return Eh.getInstance().deleteUserTeamV2({userCode:t,organizationCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Fg(){return Df((function(){return Eh.getInstance().setCustodian().then((function(e){return null==e?void 0:e.data}))}))}function Ug(){return Df((function(e){var t=e.payload,n=e.accountCode;return Eh.getInstance().createRoles(t,n).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Bg(){var e=this;return Df((function(o){var a=o.payload,i=o.id,r=o.accountCode;return t(e,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:return[4,Eh.getInstance().editRoles({payload:a,id:i},r)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}}))}))}),{useErrorBoundary:!1})}function Hg(){return Df((function(e){return Eh.getInstance().deleteRoles(e).then((function(e){return null==e?void 0:e.data}))}))}function Wg(){return Df(["post-payment-links"],(function(e){var t=e.payload,n=e.accountCode;return Eh.getInstance().postPaymentLinks({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Gg(){return Df(["post-delete-payment-link"],(function(e){var t=e.code;return Eh.getInstance().postDeletePaymentLink({code:t}).then((function(e){return null==e?void 0:e.data}))}))}function Vg(){return Df(["patch-payment-links"],(function(e){var t=e.payload,n=e.accountCode,o=e.paymentLinkCode;return Eh.getInstance().patchPaymentLinks({payload:t,accountCode:n,paymentLinkCode:o}).then((function(e){return null==e?void 0:e.data}))}))}function $g(){return Df((function(e){var t=e.payload;return Eh.getInstance().postUserSettings(t)}),{onMutate:function(e){return e}})}function Kg(){return Df((function(e){return Eh.getInstance().postUserThemeSettings(e)}))}function Qg(){return Df((function(e){var t=e.payload,n=e.section;return Eh.getInstance().postUserSettingsTables(t,n)}),{onMutate:function(e){return e},onSuccess:function(e){var t=fg.getQueryData(["fetch-profile"]);e.data&&fg.setQueryData(["fetch-profile"],a(a({},t),{settings:e.data}))}})}function Jg(e){return Df(["pinned-sections"],(function(e){var t=e.payload;return Eh.getInstance().postUserSettingsPinned(t)}),{onMutate:function(t){var n=t.payload;return e({payload:n})}})}function Xg(){return Df((function(e){var t=e.password,n=e.otp;return Eh.getInstance().getMfaTokenValidation(t,n).then((function(e){return null==e?void 0:e.data}))}))}function Yg(){return Df((function(){return Eh.getInstance().getEmailOtp().then((function(e){return null==e?void 0:e.data}))}))}function Zg(){return Df((function(e){return Eh.getInstance().confirmMfaOtp(e).then((function(e){return null==e?void 0:e.data}))}))}function ey(){return Df((function(e){return Eh.getInstance().unrollMfa(e).then((function(e){return null==e?void 0:e.data}))}))}function ty(){return Df((function(){return Eh.getInstance().validatePasswordStatus().then((function(e){return null==e?void 0:e.data})).catch((function(e){return{valid:!1}}))}))}function ny(){return Df(["post-get-allowlist-items"],(function(e){var t=e.payload;return Eh.getInstance().postAllowlistItems({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function oy(){return Df(["post-get-allowlist-multi-account"],(function(e){var t=e.payload;return Eh.getInstance().postGetAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function ay(){return Df(["post-create-allowlist-multi-account"],(function(e){var t=e.payload;return Eh.getInstance().postCreateAllowlistMultiAccount({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function iy(){return Df(["patch-change-status-allowlist"],(function(e){var t=e.payload;return Eh.getInstance().patchChangeStatusAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function ry(){return Df(["patch-change-status-allowlist-item"],(function(e){var t=e.payload;return Eh.getInstance().patchChangeStatusAllowlistItem({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function sy(){return Df(["post-add-allowlist-items"],(function(e){var t=e.payload;return Eh.getInstance().patchAddAllowlistItems({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function cy(){return Df(["patch-allowlist"],(function(e){var t=e.payload;return Eh.getInstance().patchAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function uy(){return Df(["post-blacklist-multi-account"],(function(e){var t=e.payload;return Eh.getInstance().postBlackListMultiAccount({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function ly(){return Df(["put-blacklist"],(function(e){return Eh.getInstance().putBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function py(){return Df(["change-blacklist"],(function(e){return Eh.getInstance().changeBlackListStatus(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function dy(){return Df(["change-blacklist-item"],(function(e){return Eh.getInstance().changeBlackListStatusItem(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function my(){return Df(["post-blacklist-items"],(function(e){var t=e.payload;return Eh.getInstance().postBlackListItems({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function hy(){return Df(["delete-blacklist"],(function(e){var t=e.black_list_code;return Eh.getInstance().deleteBlackListType({black_list_code:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function fy(e){var t=e.handleSetProgress;return Df(["post-blacklist-batch"],(function(e){var n=e.blacklist_code,o=e.expiration_days,a=e.file;return Eh.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 gy(){return Df(["change-payments-webhook"],(function(e){var t=e.status,n=e.paymentCode;return Eh.getInstance().postChangePaymentsWebhook({status:t,paymentCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function yy(){return Df(["delete-blacklist-items"],(function(e){var t=e.blocklist_code,n=e.blocklist_item_id,o=e.account_code;return Eh.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 vy(){return Df(["valiate-blacklist-items"],(function(e){return Eh.getInstance().valiateBlockListItems({payload:e}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function by(){return Df(["delete-allowlist-item"],(function(e){return Eh.getInstance().deleteAllowlistItem({payload:e}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function ky(){return Df(["validate-allowlist-items"],(function(e){return Eh.getInstance().validateAllowlistItems({payload:e}).then((function(e){return e.data})).catch((function(e){return e}))}))}function xy(e){var t=e.fileName,n=e.onSuccess,o=e.onError,a=w(0),i=a[0],r=a[1],s=j({cancel:function(){return null}}),c=Df(["upload-file-chargeback",t],(function(e){var t=Eh.getInstance().uploadFileS3ClientBatchRefunds({payload:e,handleSetProgress:r}),a=t.promise,i=t.cancel;return s.current.cancel=i,a.then((function(e){return null==n||n(null==e?void 0:e.data),null==e?void 0:e.data})).catch((function(e){throw null==o||o(),e}))}),{useErrorBoundary:!1});return{mutation:c,cancelRequest:s.current.cancel,progress:i}}function wy(){return Df((function(e){return Eh.getInstance().uploadBatchRefundsV2({payload:e}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function jy(){var e=this;return Df((function(o){return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Eh.getInstance().batchRefundByFile({payload:o}).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function _y(){var e=this;return Df((function(o){var a=o.batchRefundId,i=o.organizationCode,r=o.accountCode;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Eh.getInstance().getBatchRefundProcessedFileDownload(a,i,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function Ey(){var e=this;return Df((function(o){var a=o.batchRefundId,i=o.organizationCode,r=o.accountCode;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Eh.getInstance().getBatchRefundUserFileDownload(a,i,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function Cy(){var e=j({cancel:function(){return null}}),t=Df(["upload-file"],(function(t){var n=Eh.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 Sy(){return Df((function(e){var t=e.payload,n=e.organizationCode;return Eh.getInstance().updateMFAConfig(t,n)}))}function Ry(){return Df((function(e){var t=e.payload,n=e.organizationCode;return Eh.getInstance().mfaExcludeUsers(t,n)}))}function Ty(e){return Pf(["GET/scheduled-reports",e],(function(){return Eh.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 Oy(){return Df((function(e){var t=e.payload;return Eh.getInstance().postScheduledReport(t).then((function(e){return{data:e.data,status:e.status}})).catch((function(e){return e}))}))}function Ay(){return Df((function(e){var t=e.reportCode,n=e.payload;return Eh.getInstance().updateScheduledReport(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Iy(){return Df((function(e){return Eh.getInstance().deleteScheduledReport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function zy(){return Df((function(e){return Eh.getInstance().getConditionalConfigRules(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Ly(){return Df((function(e){return Eh.getInstance().getRule(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Py(){return Df((function(e){var t=e.payload,n=e.accountCode;return Eh.getInstance().postCreateRuleMultiAccount(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Dy(){return Df((function(e){var t=e.payload,n=e.ruleId,o=e.accountCode;return Eh.getInstance().postEditRule(t,n,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function qy(){return Df((function(e){var t=e.payload;return Eh.getInstance().postCreateCustomizedApiKeys(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Ny(){return Df((function(e){var t=e.payload,n=e.code;return Eh.getInstance().pathCreateCustomizedApiKeys(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function My(){return Df((function(e){var t=e.code,n=e.password;return Eh.getInstance().getCustomizedApiKeysToken(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}))}function Fy(){return Df((function(e){var t=e.passwordOtp;return Eh.getInstance().getDeveloperCredentialsValidatePassword(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}))}function Uy(){return Df((function(e){var t=e.code;return Eh.getInstance().deleteCustomizedApiKeys(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function By(){return Df((function(e){var t=e.payload,n=e.code;return Eh.getInstance().patchApiKeysEditNote(t,n).then((function(e){return e.data})).catch((function(e){return e}))}))}function Hy(){return Df((function(e){var t=e.payload,n=e.code,o=e.password;return Eh.getInstance().postApiKeysRoll(t,n,o).then((function(e){return e.data})).catch((function(e){return e}))}))}function Wy(){return Df((function(e){var t=e.password,n=e.accountCode;return Eh.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 Gy(e){return Df((function(e){var t=e.payload;return Eh.getInstance().postAuditMonitors(t)}),{onMutate:e.onMutate})}function Vy(o){var a=this;return Df((function(){return Eh.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,fg.cancelQueries({queryKey:["GET/reconciliation/reports/templates"]})];case 1:return n.sent(),t=null===(a=fg.getQueryData(["GET/reconciliation/reports/templates"]))||void 0===a?void 0:a.templates,fg.setQueryData(["GET/reconciliation/reports/templates"],(function(t){return{templates:e(e([],t.templates,!0),[o],!1)}})),[2,{previousTemplates:t}]}}))}))},onError:function(e,t,n){fg.setQueryData(["GET/reconciliation/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){fg.invalidateQueries({queryKey:["GET/reconciliation/reports/templates"]})},useErrorBoundary:!1})}function $y(e){return Df((function(){return Eh.getInstance().updateReconciliationReportTemplate(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Ky(){return Df(["POST/reconciliation/alerts"],(function(e){return Eh.getInstance().postReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){fg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function Qy(){return Df(["DELETE/reconciliation/alerts"],(function(e){return Eh.getInstance().deleteReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){fg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function Jy(){return Df(["UPDATE/reconciliation/alerts"],(function(e){return Eh.getInstance().updateReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){fg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function Xy(){return Df((function(e){var t=e.payload;return Eh.getInstance().postCreateInsightsReport(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Yy(){return Df((function(e){return Eh.getInstance().createSamlConfig(e)}))}function Zy(){return Df((function(e){return Eh.getInstance().updateSamlConfig(e)}))}function ev(){return Df((function(){return Eh.getInstance().deleteSamlConfig()}))}function tv(e,t){return void 0===t&&(t={}),Df((function(t){return Eh.getInstance().generateAIWorkflowRoutes(e,t).then((function(e){return null==e?void 0:e.data}))}),a(a({},t),{useErrorBoundary:!1}))}function nv(e){return void 0===e&&(e={}),Df((function(e){return Eh.getInstance().postAIGenerationFeedback(e).then((function(e){return null==e?void 0:e.data}))}),a(a({},e),{useErrorBoundary:!1}))}function ov(){return Df((function(e){return Eh.getInstance().createChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function av(){return Df((function(e){return Eh.getInstance().deleteChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function iv(){return Df((function(e){var t=e.chartgpt_id,n=e.type,o=e.name;return Eh.getInstance().patchChartGPTChart(t,{type:n,name:o}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function rv(){var e=this;return Df((function(o){return t(e,void 0,void 0,(function(){var e,a,i,r,s,c,u,l=this;return n(this,(function(p){switch(p.label){case 0:return[4,(e=Eh.getInstance()).createChartGPTChart(o)];case 1:if(a=p.sent(),!(i=null===(u=null==a?void 0:a.data)||void 0===u?void 0:u.chartgpt_id))throw new Error("Failed to create chart: No chart ID returned");return r=function(){return t(l,void 0,void 0,(function(){var o=this;return n(this,(function(a){return[2,new Promise((function(a,r){var s=setInterval((function(){return t(o,void 0,void 0,(function(){var t,o,c;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e.getChartById(i)];case 1:return t=n.sent(),"ERROR"===(null==(o=null==t?void 0:t.data)?void 0:o.status)&&(clearInterval(s),a(o)),"DRAFT"===(null==o?void 0:o.status)&&(clearInterval(s),a(o)),[3,3];case 2:return c=n.sent(),clearInterval(s),r(c),[3,3];case 3:return[2]}}))}))}),1e4)}))]}))}))},[4,r()];case 2:return s=p.sent(),[4,e.executeChartGPTChart(i)];case 3:return c=p.sent(),[2,{chart:s,chartgpt_id:i,execution:null==c?void 0:c.data}]}}))}))}),{useErrorBoundary:!1})}var sv=function(){var e,t;return null===(t=null===(e=function(e){var t=localStorage.getItem(e),n=w(t&&JSON.parse(t)),o=n[0],a=n[1];return _((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 cv(e){var o=this;return Pf(["fetch-payments-lazy",e],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Eh.getInstance().postPaymentsLazy(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{enabled:!!e&&Object.keys(e).length>0,cacheTime:0})}function uv(e){return Pf(["fetch-payments-evaluated",e],(function(){return Eh.getInstance().postPaymentsEvaluated(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&Object.keys(e).length>0,cacheTime:0})}function lv(e){var o=this,a=e.paymentCode,i=e.enabled,r=void 0===i||i,s=Eh.getInstance();return Pf(["get-payment-v2",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,s.getPaymentV2(a).then((function(e){return e.data})).catch((function(e){throw e}))]}))}))}),{enabled:r,cacheTime:500})}function pv(e){var o=this,a=e.payment_code,i=e.enabled,r=void 0===i||i,s=Eh.getInstance();return Pf(["get-payment-transaction-details-v2",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,s.getTransactionDetailsV2({payment_code:a}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))]}))}))}),{enabled:!!a&&r,cacheTime:0})}function dv(e){var o=this,a=e.transaction_code,i=e.enabled,r=void 0===i||i,s=Eh.getInstance();return Pf(["get-payment-transaction-raw-response",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,s.getTransactionRawResponse({transaction_code:a})]}))}))}),{enabled:!!a&&r,cacheTime:0})}function mv(e){var t=sv();return Pf(["payment-methods",e],(function(){return Eh.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 hv(){return Pf({queryKey:["/payment-methods/providers"],queryFn:function(){return Eh.getInstance().getPaymentMethodsAndProviders().then((function(e){return null==e?void 0:e.data}))},cacheTime:864e5,useErrorBoundary:!1})}function fv(){return Pf(["GET/catalog/card-brands"],(function(){return Eh.getInstance().getCardBrands().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function gv(e,t){return void 0===e&&(e=!0),void 0===t&&(t=qd.PAYMENTS),Pf(["payment-filters",e,t],(function(){return Eh.getInstance().getPaymentFilters(t).then((function(e){return null==e?void 0:e.data}))}),{enabled:e,useErrorBoundary:!1,cacheTime:3e5})}function yv(){return Pf(["payment-metrics-filters"],(function(){return Eh.getInstance().getPaymentMetricsFilters().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function vv(e){var t=e.transaction_code,n=e.enabled;return Pf(["payment-transaction-details",t],(function(){return Eh.getInstance().getPaymentTransactionsDetails({transaction_code:t}).then((function(e){return null==e?void 0:e.data})).catch((function(){return{error:!0}}))}),{enabled:!!t&&(void 0===n||n)})}function bv(e){var t=e.payment_code,n=e.enabled;return Pf(["transaction-history",t],(function(){return Eh.getInstance().getTransactionHistoryByPaymentCode({payment_code:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function kv(e){var o=this;return Pf(["POST/transactions",JSON.stringify(e)],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Eh.getInstance().postTransactions(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{enabled:!!e,cacheTime:0})}function xv(e){var o=this;return Pf(["POST/fraud-transactions",JSON.stringify(e)],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Eh.getInstance().postFraudTransactions(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{enabled:!!e&&Object.keys(e).length>0,cacheTime:0})}function wv(e){return Pf(["GET/payout-detail",JSON.stringify(e)],(function(){var t=Eh.getInstance();return e.organization_code?t.getPayoutDetails(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e})):{}}),{enabled:!!e.organization_code&&!!e&&e.enabled,cacheTime:0})}function jv(e){return Pf(["GET/payout-transaction-detail",JSON.stringify(e)],(function(){return Eh.getInstance().getPayoutTransactionDetails(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&!!(null==e?void 0:e.transaction_code)&&(null==e?void 0:e.enabled),cacheTime:0})}function _v(e){var t=sv();return Pf(["GET/payout-history-detail",JSON.stringify(e)],(function(){return Eh.getInstance().getPayoutHistoryDetails(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!(null==e?void 0:e.payout_code)&&e.enabled,cacheTime:0})}function Ev(e,o){var a=this,i=sv();return Pf(["GET/useGetProofOfCancel",i,e,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Eh.getInstance().getProofOfCancel(e,i,o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e&&!!i&&!!o,cacheTime:0,useErrorBoundary:!1})}function Cv(e,o){var a=this,i=sv();return Pf(["GET/useGetProofOfPayment",i,e,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Eh.getInstance().getProofOfPayment(e,i,o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:!!e&&!!i&&!!o,cacheTime:0,useErrorBoundary:!1})}function Sv(e,o,a){var i=this,r=Eh.getInstance();return Pf(["send-payment-notification",e,o],(function(){return t(i,void 0,void 0,(function(){var t,i;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,r.sendPaymentNotification(e,o)];case 1:return t=n.sent(),a.onSuccess(),[2,t.data];case 2:throw i=n.sent(),a.onError(),i;case 3:return[2]}}))}))}),{enabled:a.enabled,cacheTime:0,useErrorBoundary:!1})}function Rv(e){return Pf(["usePayoutsList",e&&JSON.stringify(e)],(function(){var t=Eh.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 Tv(e){var o=this;void 0===e&&(e=!0);var a=sv();return Pf(["getPayoutsFilters",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,Eh.getInstance().getPayoutsFilters(a).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{enabled:e&&!!a})}function Ov(e){var t=e.password,n=e.accountCode;return Pf(["developers"],(function(){return Eh.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 Av(){return Pf(["fetch-customized-api-keys-members"],(function(){return Eh.getInstance().getCustomizedApiKeysMembers().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function Iv(){return Pf(["developers-get-allowed-ips"],(function(){return Eh.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 zv(){return Pf(["fetch-customized-api-keys-accounts"],(function(){return Eh.getInstance().getCustomizedApiKeysAccounts().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function Lv(e){return Pf(["fetch-customized-api-keys",e],(function(){return Eh.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 Pv(){return Pf(["fetch-customized-api-keys-products"],(function(){return Eh.getInstance().getCustomizedApiKeysProducts().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{cacheTime:0})}function Dv(){return Df(["developers-patch-allowed-ips"],(function(e){return Eh.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 qv(){return Pf(["fetch-organizations"],(function(){return Eh.getInstance().getOrganization().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function Nv(){return Pf(["fetch-all-organizations",sv()],(function(){return Eh.getInstance().getAllOrganization().then((function(e){return(null==e?void 0:e.data)||[]}))}),{cacheTime:36e5,keepPreviousData:!0,useErrorBoundary:!1})}function Mv(e){var t=sv();return Pf(["organizations-provider-params",e],(function(e){var n=e.queryKey;return Eh.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 Fv(e){var t=e.integration_code,n=e.enabled,o=e.accountCode;return Pf(["integration-params",t,o],(function(){return t.includes("undefined")?{}:Eh.getInstance().getIntegrationParams({accountCode:o,integration_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,useErrorBoundary:!1})}function Uv(e){var t=e.accountCode,n=e.organizationCode,o=sv(),a=Pf(["organizations-account-integrations",t,n],(function(){return Eh.getInstance().getIntegrationByAccountV2({accountCode:t,organizationCode:n||o}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,enabled:!!t,useErrorBoundary:!1});return a}function Bv(e){var t=e.accountCode,n=e.paymentMethod;return Pf(["fetch-connections-by-payment-method",n,t],(function(){return Eh.getInstance().getConnectionsByPaymentMethod(t,n).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!n&&!!t,cacheTime:0,useErrorBoundary:!1})}function Hv(){var e=this;return Pf(["fetch-hash-pylon"],(function(){return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,Eh.getInstance().getHashPylon()]}))}))}),{keepPreviousData:!0,useErrorBoundary:!1})}function Wv(){return Pf(["connections"],(function(){return Eh.getInstance().getConnections().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Gv(){return Pf(["dialogs"],(function(){return Eh.getInstance().getDialogs().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,retryDelay:2e3,cacheTime:36e5})}function Vv(){return Pf(["params-catalog"],(function(){return Eh.getInstance().getWebhookParamsV2().then((function(e){return null==e?void 0:e.data}))}))}function $v(e){var t=e.accountCode,n=e.name;return Pf(["webhooks",t,n],(function(){return Eh.getInstance().getWebhooksV3({accountCode:t,name:n}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,useErrorBoundary:!1})}function Kv(e){var t=e.accountCode,n=e.enabled;return Pf(["webhooks-detail",t],(function(){return Eh.getInstance().getWebhooksV2Detail({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!n})}function Qv(e){var t,n=sv(),o=null!==(t=null!=e?e:n)&&void 0!==t?t:null;return Pf({queryKey:["accounts",o],queryFn:function(){return Eh.getInstance().getAccounts(o).then((function(e){return null==e?void 0:e.data}))},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!o})}function Jv(e){return Pf(["accountsV2",e],(function(){return Eh.getInstance().getAccountsV2().then((function(e){return(null==e?void 0:e.data)||[]})).catch((function(e){throw e}))}),{keepPreviousData:!0,enabled:!!e,useErrorBoundary:!1})}function Xv(e){return Pf(["accountsV2-by-user",e],(function(){return e?Eh.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 Yv(){return Pf(["menu"],(function(){return Eh.getInstance().getMenu().then((function(e){return ch(e)?fh:null==e?void 0:e.data})).catch((function(){return fh}))}))}function Zv(){return Pf(["/payment/statuses/style"],(function(){return Eh.getInstance().useGetPaymentStatusesStyles().then((function(e){return ch(e)?uh:null==e?void 0:e.data})).catch((function(){return uh}))}))}function eb(){return Pf(["/transaction/statuses/style"],(function(){return Eh.getInstance().useGetTransactionStatusesStyles().then((function(e){return ch(e)?lh:null==e?void 0:e.data})).catch((function(){return lh}))}),{cacheTime:36e5,useErrorBoundary:!1})}function tb(){return Pf(["/reconciliation/transaction/statuses/style"],(function(){return Eh.getInstance().useGetReconciliationTransactionStatusesStyles().then((function(e){return ch(e)?ph:null==e?void 0:e.data})).catch((function(){return ph}))}))}function nb(){return Pf(["timezone-catalog"],(function(){return Eh.getInstance().useGetTimeZoneCatalog().then((function(e){return ch(e)?dh:null==e?void 0:e.data})).catch((function(){return dh}))}))}function ob(){return Pf(["/cms/audit-logs-filters"],(function(){return Eh.getInstance().useGetAuditLogsFilters().then((function(e){return ch(e)?mh:null==e?void 0:e.data})).catch((function(){return mh}))}))}function ab(){return Pf(["/cms/static-contents"],(function(){return Eh.getInstance().getDashboardStaticContents().then((function(e){var t,n;return ch(e)?hh:(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 ib(){return Pf(["/cms/locales"],(function(){return Eh.getInstance().getLocales().then((function(e){return ch(e)?gh:e.data})).catch((function(){return gh}))}))}var rb=function(){var e=w("ON"===localStorage.getItem("isTesting")),t=e[0],n=e[1];return _((function(){window.addEventListener("storage",(function(e){"isTesting"===e.key&&n("ON"===e.newValue)}))}),[]),{isTesting:t}};function sb(e){return Pf(["smart-routing-methods",e],(function(){return Eh.getInstance().getSmartRoutingMethods(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function cb(e,t){return Pf(["smart-routing-workflow",t,e],(function(){return Eh.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 ub(e,t){return Pf(["smart-routing-condition-types",e,t],(function(){return Eh.getInstance().getSmartRoutingConditionTypes(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!e})}function lb(e,t){return Pf(["smart-routing-condition-payment-method",e,t],(function(){return Eh.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 pb(e,t){return Pf(["smart-routing-condition-types-values",t,e],(function(){return Eh.getInstance().getSmartRoutingConditionTypesValues(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&!!e,useErrorBoundary:!1})}function db(e){var t=e.accountCode,n=e.workflowVersionId;return Pf(["smart-routing-workflow-version",n,t],(function(){return Eh.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 mb(e,t,n){return Pf(["smart-routing-next-route",e,n,t],(function(){return Eh.getInstance().getSmartRoutingNextSteps(e,t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function hb(e){return Pf(["smart-routing-decline-groups",e],(function(){return Eh.getInstance().getSmartRoutingDeclinedGroup(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function fb(e,t){return Pf(["smart-routing-payment-route",e,t],(function(){return Eh.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 gb(e){return Pf(["smart-routing-simulate-condition-type-values",e],(function(){return Eh.getInstance().getSmartRoutingSimulateConditionTypeValues(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function yb(e){var t=e.text,n=e.conditionType;return Pf(["smart-routing-search-condition-values",t,n],(function(){return Eh.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 vb(){return Pf(["smart-routing-conversion-rates"],(function(){return Eh.getInstance().getProviderConversionRatesData().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!1,useErrorBoundary:!1})}function bb(){var e=this;return Pf({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,Eh.getInstance().get3DSExemptions()];case 1:return[2,e.sent().data]}}))}))},useErrorBoundary:!1})}function kb(e){return Pf(["fetch-routing-monitors-templates",e],(function(){return Eh.getInstance().getRoutingMonitorsTemplates(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function xb(e,t){return Pf(["fetch-routing-monitors-template",e],(function(){return Eh.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 wb(e){var t=e.accountCode;return Pf(["checkouts",t],(function(){return Eh.getInstance().getCheckouts({accountCode:t}).then((function(e){return e.data}))}),{cacheTime:0,enabled:Boolean(t)})}function jb(e){var t=e.accountCode;return Pf(["checkouts-template"],(function(){return Eh.getInstance().getCheckoutTemplate({accountCode:t}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,enabled:Boolean(t)})}var _b=function(e){return["checkout-builder-name-and-icon",e.paymentMethodType,e.type]},Eb=function(e,t){var n=e.paymentMethodType,o=e.type;return Pf(_b({paymentMethodType:n,type:o}),(function(){return Eh.getInstance().getNameAndIcon({paymentMethodType:n,type:o}).then((function(e){return null==e?void 0:e.data}))}),t)},Cb=function(e){return["checkout-builder-required-fields",e.paymentMethodType,e.type]},Sb=function(e,t){var n=e.paymentMethodType,o=e.type;return Pf(Cb({paymentMethodType:n,type:o}),(function(){return Eh.getInstance().getRequiredFields({paymentMethodType:n,type:o}).then((function(e){return null==e?void 0:e.data}))}),t)};function Rb(e){var t=e.accountCode;return Pf(["styling-theme",t],(function(){return Eh.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 Tb(e){var t=e.accountCode;return Pf(["styling-settings",t],(function(){return Eh.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 Ob(){return Pf(["fetch-profile"],(function(){return Eh.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 Ab(e,t){return Pf(["fetch-permissions",e,t],(function(){var e,t,n,o=localStorage.getItem("account"),a=localStorage.getItem("user"),i=o&&JSON.parse(o),r=a&&JSON.parse(a);return((null==r?void 0:r.merlin)?null===(e=null==r?void 0:r.merlin)||void 0===e?void 0:e.permissions:null===(n=null===(t=null==i?void 0:i.value)||void 0===t?void 0:t.role)||void 0===n?void 0:n.permission_ids.map((function(e){return{permission_name:e,description:e,resource_server_name:e,resource_server_identifier:e}})))||[]}))}function Ib(e){return Pf(["email-verification",e],(function(){return Eh.getInstance().emailVerification(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function zb(){return Pf({queryKey:["get-login-methods"],queryFn:function(){return Eh.getInstance().getLoginMethods().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}})}function Lb(){return Pf(["fetch-impersonation-users"],(function(){return Eh.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 Pb(){return Pf(["fetch-impersonation-enabled"],(function(){return Eh.getInstance().getImpersonationEnabled().then((function(e){return null==e?void 0:e.data}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Db(e){return Pf(["notifications-customer",e],(function(){return Eh.getInstance().getNotificationsCustomer(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,keepPreviousData:!1})}function qb(e){return Pf(["validate-opsgenie-key",e],(function(){return Eh.getInstance().getValidateOpsgenieKey(e).then((function(e){return null==e?void 0:e.data})).catch((function(){return{error:!0}}))}),{enabled:!!e,cacheTime:0})}function Nb(){return Pf(["notifications-merged"],(function(){return Eh.getInstance().getMergedNotifications().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{keepPreviousData:!1,cacheTime:0})}function Mb(){return Df((function(e){return Eh.getInstance().getNotificationsNumber(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Fb(){var e=this;return Df((function(o){return t(e,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:return[4,Eh.getInstance().pathNotification(o)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}}))}))}))}var Ub={key:"metadata_fields",name:"metadata_fields"};function Bb(){return Pf(["reports"],(function(){return Eh.getInstance().reportsList().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Hb(e){return void 0===e&&(e=!0),Pf(["reports-multi-env"],(function(){return Eh.getInstance().reportsListMultiEnv().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e})}function Wb(e,t,n){return void 0===t&&(t=!1),Pf(["reports/".concat(e)],(function(){return Eh.getInstance().downloadReports(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:t,onSuccess:n,useErrorBoundary:!1})}function Gb(e){return Pf(["GET/reports/templates"],(function(){return Eh.getInstance().getReportTemplates().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e,useErrorBoundary:!1})}function Vb(t,n,o){return Pf(["GET/reports/columns/".concat(n,"/").concat(o)],(function(){return Eh.getInstance().getReportColumns(n,o).then((function(t){return n===Bd.ALL&&o===Ud.PAYMENTS?e(e([],null==t?void 0:t.data,!0),[Ub],!1):null==t?void 0:t.data})).catch((function(e){return e}))}),{enabled:t,useErrorBoundary:!1})}function $b(e,o){var a=this,i=sv();return Pf(["getRefundPdf",e,i,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Eh.getInstance().getRefundPdf(e,i,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))]}))}))}),{enabled:!!e&&!!i,useErrorBoundary:!1})}function Kb(){var e=sv();return Pf(["teams-filters-members"],(function(){return Eh.getInstance().teamsFiltersMembers({organizationCode:e}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0})}function Qb(e){var t=e.organizationCode,n=e.accountCodes,o=e.email,a=e.page,i=e.pageSize,r=sv();return Pf(["fetch-post-members-v2",t,n,o,a,i],(function(){return Eh.getInstance().postMembersPaginatedV2({organizationCode:r,accountCodes:n,email:o,page:a,pageSize:i}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&!!n,cacheTime:0,useErrorBoundary:!1})}function Jb(){return Pf(["fetch-roles"],(function(){return Eh.getInstance().getRoles().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Xb(){return Pf(["fetch-rolespermissions"],(function(){return Eh.getInstance().getRolesPermissions().then((function(e){return null==e?void 0:e.data}))}))}function Yb(){return Pf(["fetch-permissions-catalog"],(function(){return Eh.getInstance().getPermissionsCatalog().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Zb(e){return Pf(["data-report",e],(function(){return Eh.getInstance().getSmartRoutingDataReport(e).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,useErrorBoundary:!1})}function ek(e,t,n){return void 0===n&&(n=!0),Pf(["get-insights-conversion-rate-metrics-v2",e,t],(function(){return Eh.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:3e5,cacheTime:3e5,useErrorBoundary:!1,retry:1})}function tk(e,t){return Pf(["get-insights-conversion-rate-view-more-metrics",t,e],(function(){return Eh.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 nk(e){return Pf(["get-insights-conversion-rate-fallback-metrics",e],(function(){return Eh.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 ok(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Pf(["get-insights-volume-metrics",t,e],(function(){return Eh.getInstance().getInsightsMetricsVolume(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function ak(e,t,n,o){return void 0===o&&(o=!0),delete t.account_code,Pf(["get-insights-volume-metrics-v2",t,e,n],(function(){return Eh.getInstance().getInsightsMetricsVolumeV2(e,n,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:o,cacheTime:200,useErrorBoundary:!1})}function ik(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Pf(["get-insights-total-payment-fraud-metrics",t,e],(function(){return Eh.getInstance().getInsightsMetricsTotalPaymentsAndFraud(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function rk(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Pf(["get-insights-customer-payment-fraud-metrics",t,e],(function(){return Eh.getInstance().getInsightsMetricsCustomerPaymentsAndFraud(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function sk(e){return Pf(["get-insights-overview",e],(function(){return Eh.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 ck(e,t){var n=!!(null==e?void 0:e.enabled)&&void 0!==(null==e?void 0:e.account_code);return Pf(["get-insights-overview-v3",e,t],(function(){return Eh.getInstance().getInsightOverviewV3(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:0,useErrorBoundary:!1})}function uk(e){return Pf(["get-insights-home-metrics",e],(function(){return Eh.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 lk(e){return Pf(["get-insights-reports",e],(function(){return Eh.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 pk(e){return Pf(["get-insights-reports-again",e],(function(){return Eh.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 dk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Pf({queryKey:["post-insights-fraud-screening-volume-and-count-tx",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Eh.getInstance().getInsightsFraudScreeningVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function mk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Pf({queryKey:["post-insights-fraud-screening-conversion-rate",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Eh.getInstance().getInsightsFraudScreeningConversionRate(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function hk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Pf({queryKey:["post-insights-3ds-volume-and-count-tx",o,e],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Eh.getInstance().getInsights3dsVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function fk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Pf({queryKey:["post-insights-3ds-conversion-rate-and-evolution",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Eh.getInstance().getInsights3dsConversionRateAndEvolution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function gk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Pf({queryKey:["post-insights-3ds-decline-reasons",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Eh.getInstance().getInsights3dsDeclineReasons(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function yk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Pf({queryKey:["post-insights-3ds-frictionless-vs-challenge",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Eh.getInstance().getInsights3dsFrictionlessVsChallenge(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function vk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Pf({queryKey:["post-insights-chargebacks-volume-and-count-tx",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Eh.getInstance().getInsightsChargebacksVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function bk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Pf({queryKey:["post-insights-chargebacks-win-rate",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Eh.getInstance().getInsightsChargebacksWinRate(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function kk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Pf({queryKey:["post-insights-chargebacks-disputed",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Eh.getInstance().getInsightsChargebacksDisputed(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function xk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Pf({queryKey:["post-insights-chargebacks-by-provider-and-card-brand",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Eh.getInstance().getInsightsChargebacksByProviderAndCardBrand(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function wk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Pf({queryKey:["post-insights-chargebacks-reasons-distribution",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Eh.getInstance().getInsightsChargebacksReasonsDistribution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function jk(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Pf({queryKey:["post-insights-chargebacks-status-distribution",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Eh.getInstance().getInsightsChargebacksStatusDistribution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function _k(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Pf({queryKey:["post-insights-chargebacks-by-card-brand",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,Eh.getInstance().getInsightsChargebacksByCardBrand(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function Ek(e,t){return Pf(["fetch-reconciliation-transaction",e],(function(){return Eh.getInstance().getReconciliationTransactions(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t,useErrorBoundary:!1})}function Ck(e,t){return Pf(["fetch-reconciliation-settlements",e],(function(){return Eh.getInstance().getReconciliationSettlements(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t,useErrorBoundary:!1})}function Sk(e,t){return Pf(["fetch-reconciliation-metrics",e],(function(){return Eh.getInstance().getReconciliationMetrics(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t,cacheTime:500})}function Rk(){return Pf(["GET-reconciliation-filters"],(function(){return Eh.getInstance().getReconciliationFilters().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Tk(e){return Pf(["GET/v1/reconciliation/table/".concat(e,"/columns")],(function(){return Eh.getInstance().getAllTableColumns(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Ok(){return Pf(["GET/v1/reconciliation/active"],(function(){return Eh.getInstance().getReconciliationActive().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Ak(e,t,n){return Pf(["GET/reconciliation/reports/columns/".concat(t,"/").concat(n)],(function(){return Eh.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 Ik(e){return Pf(["GET/reconciliation/reports/templates"],(function(){return Eh.getInstance().getReconciliationReportTemplates().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{enabled:e,useErrorBoundary:!1})}function zk(e){var t=e.body,n=e.params,o=e.enabled;return Pf(["GET/reconciliation/alerts/list",t,n],(function(){return Eh.getInstance().getReconciliationAlerts(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Lk(e){var t=e.body,n=e.params,o=e.enabled;return Pf(["GET/reconciliation/agenda/list",t,n],(function(){return Eh.getInstance().getReconciliationAgenda(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Pk(e){var t=e.body,n=e.params,o=e.enabled;return Pf(["GET/reconciliation/agenda/insights",t,n],(function(){return Eh.getInstance().getReconciliationAgendaInsightByKey(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Dk(e){var t=e.body,n=e.params,o=e.enabled;return Pf(["GET/reconciliation/sales/list",t,n],(function(){return Eh.getInstance().getReconciliationSales(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function qk(e){var t=e.body,n=e.params,o=e.enabled;return Pf(["GET/reconciliation/advancements/list",t,n],(function(){return Eh.getInstance().getReconciliationAdvancements(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Nk(e){var t=e.body,n=e.params,o=e.enabled;return Pf(["GET/reconciliation/fees/list",t,n],(function(){return Eh.getInstance().getReconciliationFees(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Mk(e){var o=this,a=Object.values(e).filter(Boolean);return Pf(["feature-flags",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Eh.getInstance().getFeatureFlagId(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:a.length>1,useErrorBoundary:!1})}function Fk(e){var o=this,a=Pf({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,Eh.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}),i=Tf();return _((function(){i.setQueryData(["cached-feature-flags"],a)}),[a,i]),a}function Uk(e){var t=Tf();return Pf({queryKey:["cached-feature-flags"],queryFn:function(){},enabled:!1,select:function(t){var n;return{result:null===(n=t.data)||void 0===n?void 0:n[e]}},initialData:function(){var e=t.getQueryData(["cached-feature-flags"]);return(null==e?void 0:e.data)||{}}})}function Bk(e){return Pf(["events",e],(function(){return Eh.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 Hk(e){return Pf(["audit-monitor-event-detail",e],(function(){return Eh.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 Wk(e,t){return Pf(["fetch-payment-links",e,t],(function(){return Eh.getInstance().getPaymentLinks(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,cacheTime:0})}function Gk(e){return Pf(["payment-link"],(function(){return Eh.getInstance().getPaymentLinksByCode(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function Vk(e){return void 0===e&&(e=!0),Pf(["countries",e],(function(){return Eh.getInstance().useGetCountriesConfig().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e,keepPreviousData:!0})}function $k(e){var t=localStorage.getItem("lang")||"en",n=e||t;return Pf(["countries-v2",n],(function(){return Eh.getInstance().useGetCountriesConfigV2(n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!0,keepPreviousData:!0})}function Kk(e){return Pf(["timezone"],(function(){return Eh.getInstance().getTimezone(e).then((function(e){return ch(e)?dh:null==e?void 0:e.data})).catch((function(){return dh}))}),{enabled:!0,keepPreviousData:!0})}function Qk(e){return Df((function(e){var t=e.payload;return Eh.getInstance().firebaseUserSubscribe(t)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Jk(e,t){return Pf(["get-cofig-allow-list",e],(function(){return Eh.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 Xk(e){return Pf(["get-black-list",e],(function(){return Eh.getInstance().getBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!e})}function Yk(e,t,n,o){var a;return Pf(["post-black-list",e],(function(){return Eh.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 Zk(e,t,n){return Pf(["get-block-list-summary",e,t,n],(function(){var o=Eh.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 ex(e,t,n,o,a,i){return Pf(["black-list-detail",e,t,o,a,i],(function(){return Eh.getInstance().getBlacklistDetail(e,t,n,o,a).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&i,cacheTime:0})}function tx(e,t,n){return Pf(["allow-list-detail",e],(function(){return Eh.getInstance().getAllowlistDetail(e,t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{enabled:!!e&&!!n})}function nx(e){return Pf(["query-post-get-allowlist-multi-account",JSON.stringify(e)],(function(){return Eh.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 ox(e,o){var a=this;return void 0===e&&(e=26),void 0===o&&(o=0),Pf(["batch-refunds",e,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,Eh.getInstance().getBatchRefunds(e,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{cacheTime:0})}function ax(e){return Pf(["velocity-rules",e],(function(){var t=Eh.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 ix(){return Pf(["config-rules"],(function(){return Eh.getInstance().getAllConfigRules().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0})}function rx(e,t){var n=e.organizationCode;return Pf(["mfa-excluded-users",n],(function(){return Eh.getInstance().getMFAExcludedUsers({organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function sx(e,t){var n=e.organizationCode;return Pf(["mfa-config",n],(function(){return Eh.getInstance().getMFAConfig({organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function cx(e,t){return Pf(["mfa-enforcement-status",e.accountCode],(function(){return Eh.getInstance().getMFAEnforcementStatus().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function ux(e){return Pf(["fetch-organization-saml-config",e],(function(){return Eh.getInstance().getSamlConfig().then((function(e){return e.data}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function lx(e){return Pf(["chartgpt-chart-execute",e],(function(){return Eh.getInstance().executeChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e})}function px(){return Pf(["chartgpt-user-charts"],(function(){return Eh.getInstance().getChartsByUser().then((function(e){return null==e?void 0:e.data}))}))}function dx(){var e=this;return Pf(["chartgpt-user-charts-with-results"],(function(){return t(e,void 0,void 0,(function(){var e,o,i,r=this;return n(this,(function(s){switch(s.label){case 0:return[4,(e=Eh.getInstance()).getChartsByUser()];case 1:return o=s.sent(),i=(null==o?void 0:o.data)||[],[4,Promise.all(i.map((function(o){return t(r,void 0,void 0,(function(){var t,i,r;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e.executeChartGPTChart(o.chartgpt_id)];case 1:return t=n.sent(),[2,a(a({},o),{results:(null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.results)||[]})];case 2:return i=n.sent(),console.error("Failed to execute chart ".concat(o.chartgpt_id,":"),i),[2,a(a({},o),{results:[]})];case 3:return[2]}}))}))})))];case 2:return[2,s.sent()]}}))}))}))}function mx(e,o,a){var i=this;return void 0===a&&(a=!0),Pf(["chartgpt-patch-and-execute",e,o],(function(){return t(i,void 0,void 0,(function(){var t,a,i,r,s;return n(this,(function(n){switch(n.label){case 0:return[4,(t=Eh.getInstance()).patchChartGPTChart(e,o)];case 1:return a=n.sent(),i=null==a?void 0:a.data,[4,t.executeChartGPTChart(e)];case 2:return r=n.sent(),s=null==r?void 0:r.data,[2,{chart:i,execution:s}]}}))}))}),{enabled:a&&!!e,retry:!1})}function hx(){return Pf(["languages"],(function(){return Eh.getInstance().getLanguages().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,cacheTime:300})}function fx(){return Pf(["translations"],(function(){return Eh.getInstance().getTranslations().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,cacheTime:300})}function gx(){return gx=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},gx.apply(this,arguments)}
224
224
  /**
225
225
  * match-sorter-utils
226
226
  *