@yuno-payments/dashboard-api-mfe 0.36.33 → 0.36.34-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.js +1 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/queries/payments/payments.query.d.ts +18 -19
- package/build/cjs/types/types/payment/payment.d.ts +149 -0
- package/build/esm/index.js +1 -1
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/queries/payments/payments.query.d.ts +18 -19
- package/build/esm/types/types/payment/payment.d.ts +149 -0
- package/build/index.d.ts +166 -19
- package/package.json +1 -1
package/build/esm/index.js
CHANGED
|
@@ -220,7 +220,7 @@ function ra(e){const t=ia.parse(e),n={};for(const e in t)void 0!==t[e]&&(n[e]=t[
|
|
|
220
220
|
*
|
|
221
221
|
* This source code is licensed under the MIT license found in the
|
|
222
222
|
* LICENSE file in the root directory of this source tree.
|
|
223
|
-
*/"production"===process.env.NODE_ENV?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.payload,n=e.transactionId,o=e.paymentId,a=e.action;return Eh.getInstance().createOperationTransaction(t,n,o,a)}))}function dg(){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 mg=new sf({}),hg=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:mg});function fg(){return Df((function(e){return Eh.getInstance().createReconciliationsReportV2(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function gg(){return Df((function(e){return Eh.getInstance().createReportV2(e).then((function(e){return null==e?void 0:e.data}))}))}function yg(){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 vg(){return Df((function(e){return Eh.getInstance().cancelReport(e).then((function(e){return null==e?void 0:e.data}))}))}function bg(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,hg.cancelQueries({queryKey:["GET/reports/templates"]})];case 1:return n.sent(),t=hg.getQueryData(["GET/reports/templates"]),hg.setQueryData(["GET/reports/templates"],(function(t){return e(e([],t,!0),[o],!1)})),[2,{previousTemplates:t}]}}))}))},onError:function(e,t,n){hg.setQueryData(["GET/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){hg.invalidateQueries({queryKey:["GET/reports/templates"]})}})}function kg(e){return Df((function(){return Eh.getInstance().updateReportTemplate(e).then((function(e){return null==e?void 0:e.data}))}))}function xg(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 wg(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 jg(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 _g(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 Eg(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 Cg(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 Sg(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 Rg(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 Tg(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 Og(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 Ag(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 Ig(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 zg(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 Lg(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 Pg=function(e){return Df((function(t){return Eh.getInstance().createMonitorThreshold(t,e).then((function(e){return e.data}))}))},Dg=function(e){return Df((function(t){return Eh.getInstance().createMonitorTemplate(t,e).then((function(e){return e.data}))}))};function qg(){return Df((function(e){var t=e.payload;return Eh.getInstance().postSlackMessageChannel(t).then((function(e){return null==e?void 0:e.data}))}))}function Ng(){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 Mg(){return Df((function(){return Eh.getInstance().setCustodian().then((function(e){return null==e?void 0:e.data}))}))}function Fg(){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 Ug(){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 Bg(){return Df((function(e){return Eh.getInstance().deleteRoles(e).then((function(e){return null==e?void 0:e.data}))}))}function Hg(){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 Wg(){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 Gg(){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 Vg(){return Df((function(e){var t=e.payload;return Eh.getInstance().postUserSettings(t)}),{onMutate:function(e){return e}})}function $g(){return Df((function(e){return Eh.getInstance().postUserThemeSettings(e)}))}function Kg(){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=hg.getQueryData(["fetch-profile"]);e.data&&hg.setQueryData(["fetch-profile"],a(a({},t),{settings:e.data}))}})}function Qg(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 Jg(){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 Xg(){return Df((function(){return Eh.getInstance().getEmailOtp().then((function(e){return null==e?void 0:e.data}))}))}function Yg(){return Df((function(e){return Eh.getInstance().confirmMfaOtp(e).then((function(e){return null==e?void 0:e.data}))}))}function Zg(){return Df((function(e){return Eh.getInstance().unrollMfa(e).then((function(e){return null==e?void 0:e.data}))}))}function ey(){return Df((function(){return Eh.getInstance().validatePasswordStatus().then((function(e){return null==e?void 0:e.data})).catch((function(e){return{valid:!1}}))}))}function ty(){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 ny(){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 oy(){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 ay(){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 iy(){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 ry(){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 sy(){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 cy(){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 uy(){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 ly(){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 py(){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 dy(){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 my(){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 hy(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 fy(){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 gy(){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 yy(){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 vy(){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 by(){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 ky(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 xy(){return Df((function(e){return Eh.getInstance().uploadBatchRefundsV2({payload:e}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function wy(){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 jy(){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 _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().getBatchRefundUserFileDownload(a,i,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function Ey(){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 Cy(){return Df((function(e){var t=e.payload,n=e.organizationCode;return Eh.getInstance().updateMFAConfig(t,n)}))}function Sy(){return Df((function(e){var t=e.payload,n=e.organizationCode;return Eh.getInstance().mfaExcludeUsers(t,n)}))}function Ry(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 Ty(){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 Oy(){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 Ay(){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 Iy(){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 zy(){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 Ly(){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 Py(){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 Dy(){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 qy(){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 Ny(){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 My(){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 Fy(){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 Uy(){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 By(){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 Hy(){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 Wy(e){return Df((function(e){var t=e.payload;return Eh.getInstance().postAuditMonitors(t)}),{onMutate:e.onMutate})}function Gy(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,hg.cancelQueries({queryKey:["GET/reconciliation/reports/templates"]})];case 1:return n.sent(),t=null===(a=hg.getQueryData(["GET/reconciliation/reports/templates"]))||void 0===a?void 0:a.templates,hg.setQueryData(["GET/reconciliation/reports/templates"],(function(t){return{templates:e(e([],t.templates,!0),[o],!1)}})),[2,{previousTemplates:t}]}}))}))},onError:function(e,t,n){hg.setQueryData(["GET/reconciliation/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){hg.invalidateQueries({queryKey:["GET/reconciliation/reports/templates"]})},useErrorBoundary:!1})}function Vy(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 $y(){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(){hg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function Ky(){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(){hg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function Qy(){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(){hg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function Jy(){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 Xy(){return Df((function(e){return Eh.getInstance().createSamlConfig(e)}))}function Yy(){return Df((function(e){return Eh.getInstance().updateSamlConfig(e)}))}function Zy(){return Df((function(){return Eh.getInstance().deleteSamlConfig()}))}function ev(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 tv(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 nv(){return Df((function(e){return Eh.getInstance().createChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function ov(){return Df((function(e){return Eh.getInstance().deleteChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function av(){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 iv(){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 rv=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 sv(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 cv(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 uv(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 lv(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 pv(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 dv(e){var t=rv();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 mv(){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 hv(){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 fv(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 gv(){return Pf(["payment-metrics-filters"],(function(){return Eh.getInstance().getPaymentMetricsFilters().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function yv(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 vv(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 bv(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 kv(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 xv(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 wv(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 jv(e){var t=rv();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 _v(e,o){var a=this,i=rv();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 Ev(e,o){var a=this,i=rv();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 Cv(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 Sv(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 Rv(e){var o=this;void 0===e&&(e=!0);var a=rv();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 Tv(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 Ov(){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 Av(){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 Iv(){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 zv(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 Lv(){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 Pv(){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 Dv(){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 qv(){return Pf(["fetch-all-organizations",rv()],(function(){return Eh.getInstance().getAllOrganization().then((function(e){return(null==e?void 0:e.data)||[]}))}),{cacheTime:36e5,keepPreviousData:!0,useErrorBoundary:!1})}function Nv(e){var t=rv();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 Mv(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 Fv(e){var t=e.accountCode,n=e.organizationCode,o=rv(),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 Uv(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 Bv(){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 Hv(){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 Wv(){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 Gv(){return Pf(["params-catalog"],(function(){return Eh.getInstance().getWebhookParamsV2().then((function(e){return null==e?void 0:e.data}))}))}function Vv(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 $v(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 Kv(e){var t,n=rv(),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 Qv(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 Jv(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 Xv(){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 Yv(){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 Zv(){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 eb(){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 tb(){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 nb(){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 ob(){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 ab(){return Pf(["/cms/locales"],(function(){return Eh.getInstance().getLocales().then((function(e){return ch(e)?gh:e.data})).catch((function(){return gh}))}))}var ib=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 rb(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 sb(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 cb(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 ub(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 lb(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 pb(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 db(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 mb(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 hb(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 fb(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 gb(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 yb(){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 vb(){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 bb(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 kb(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 xb(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 wb(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 jb=function(e){return["checkout-builder-name-and-icon",e.paymentMethodType,e.type]},_b=function(e,t){var n=e.paymentMethodType,o=e.type;return Pf(jb({paymentMethodType:n,type:o}),(function(){return Eh.getInstance().getNameAndIcon({paymentMethodType:n,type:o}).then((function(e){return null==e?void 0:e.data}))}),t)},Eb=function(e){return["checkout-builder-required-fields",e.paymentMethodType,e.type]},Cb=function(e,t){var n=e.paymentMethodType,o=e.type;return Pf(Eb({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 Sb(e){var t=e.accountCode;return Pf(["styling-sdk-dynamic",t],(function(){return Eh.getInstance().getStylingSdkDynamic({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function Rb(e){var t=e.accountCode,n=e.environment,o=void 0===n?"live":n;return Pf(["styling-settings",t],(function(){return Eh.getInstance().getStylingSettings({accountCode:t,environment:o}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function Tb(){return Df((function(e){var t=e.accountCode,n=e.environment,o=void 0===n?"live":n,a=e.payload;return Eh.getInstance().changeStylingSettings({accountCode:t,environment:o,payload:a}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}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){var o=this;return Pf(["get-users-to-impersonate",e],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Eh.getInstance().getUsersToImpersonate(e).then((function(e){var t;return(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.users)||[]}))]}))}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function qb(e){var t;return Pf(["fetch-communications",e],(function(){return Eh.getInstance().getCommunications(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null===(t=e.account_codes)||void 0===t?void 0:t.length),useErrorBoundary:!1,cacheTime:3e3})}function Nb(){return Pf(["fetch-communications-filters"],(function(){return Eh.getInstance().getCommunicationsFilters().then((function(e){return null==e?void 0:e.data}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Mb(e,t){return Pf(["fetch-communication-details",e],(function(){return Eh.getInstance().getCommunicationDetails(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e,useErrorBoundary:!1,cacheTime:0})}function Fb(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 Ub(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 Bb(){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 Hb(){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 Wb(){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 Gb={key:"metadata_fields",name:"metadata_fields"};function Vb(){return Pf(["reports"],(function(){return Eh.getInstance().reportsList().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function $b(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 Kb(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 Qb(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 Jb(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),[Gb],!1):null==t?void 0:t.data})).catch((function(e){return e}))}),{enabled:t,useErrorBoundary:!1})}function Xb(e,o){var a=this,i=rv();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 Yb(){var e=rv();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 Zb(e){var t=e.organizationCode,n=e.accountCodes,o=e.email,a=e.page,i=e.pageSize,r=rv();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 ek(){return Pf(["fetch-roles"],(function(){return Eh.getInstance().getRoles().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function tk(){return Pf(["fetch-rolespermissions"],(function(){return Eh.getInstance().getRolesPermissions().then((function(e){return null==e?void 0:e.data}))}))}function nk(){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 ok(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 ak(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 ik(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 rk(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 sk(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 ck(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 uk(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 lk(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 pk(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 dk(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 mk(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 hk(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 fk(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 gk(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 yk(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 vk(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 bk(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 kk(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 xk(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 wk(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 jk(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 _k(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 Ek(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 Ck(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 Sk(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 Rk(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 Tk(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 Ok(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 Ak(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 Ik(){return Pf(["GET-reconciliation-filters"],(function(){return Eh.getInstance().getReconciliationFilters().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function zk(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 Lk(){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 Pk(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 Dk(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 qk(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 Nk(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 Mk(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 Fk(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 Uk(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 Bk(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 Hk(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 Wk(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 Gk(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 Vk(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 $k(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 Kk(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 Qk(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 Jk(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 Xk(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 Yk(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 Zk(e){return Df((function(e){var t=e.payload;return Eh.getInstance().firebaseUserSubscribe(t)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function ex(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 tx(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 nx(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 ox(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 ax(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 ix(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 rx(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 sx(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 cx(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 ux(){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 lx(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 px(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 dx(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 mx(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 hx(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 fx(){return Pf(["chartgpt-user-charts"],(function(){return Eh.getInstance().getChartsByUser().then((function(e){return null==e?void 0:e.data}))}))}function gx(){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 yx(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 vx(){return Pf(["languages"],(function(){return Eh.getInstance().getLanguages().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,cacheTime:300})}function bx(){var e=localStorage.getItem("lang")||"en";return Pf(["translations",e],(function(){return Eh.getInstance().getTranslations(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,cacheTime:3e4})}function kx(){return kx=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},kx.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.payload,n=e.transactionId,o=e.paymentId,a=e.action;return Eh.getInstance().createOperationTransaction(t,n,o,a)}))}function dg(){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 mg=new sf({}),hg=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:mg});function fg(){return Df((function(e){return Eh.getInstance().createReconciliationsReportV2(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function gg(){return Df((function(e){return Eh.getInstance().createReportV2(e).then((function(e){return null==e?void 0:e.data}))}))}function yg(){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 vg(){return Df((function(e){return Eh.getInstance().cancelReport(e).then((function(e){return null==e?void 0:e.data}))}))}function bg(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,hg.cancelQueries({queryKey:["GET/reports/templates"]})];case 1:return n.sent(),t=hg.getQueryData(["GET/reports/templates"]),hg.setQueryData(["GET/reports/templates"],(function(t){return e(e([],t,!0),[o],!1)})),[2,{previousTemplates:t}]}}))}))},onError:function(e,t,n){hg.setQueryData(["GET/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){hg.invalidateQueries({queryKey:["GET/reports/templates"]})}})}function kg(e){return Df((function(){return Eh.getInstance().updateReportTemplate(e).then((function(e){return null==e?void 0:e.data}))}))}function xg(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 wg(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 jg(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 _g(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 Eg(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 Cg(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 Sg(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 Rg(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 Tg(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 Og(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 Ag(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 Ig(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 zg(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 Lg(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 Pg=function(e){return Df((function(t){return Eh.getInstance().createMonitorThreshold(t,e).then((function(e){return e.data}))}))},Dg=function(e){return Df((function(t){return Eh.getInstance().createMonitorTemplate(t,e).then((function(e){return e.data}))}))};function qg(){return Df((function(e){var t=e.payload;return Eh.getInstance().postSlackMessageChannel(t).then((function(e){return null==e?void 0:e.data}))}))}function Ng(){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 Mg(){return Df((function(){return Eh.getInstance().setCustodian().then((function(e){return null==e?void 0:e.data}))}))}function Fg(){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 Ug(){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 Bg(){return Df((function(e){return Eh.getInstance().deleteRoles(e).then((function(e){return null==e?void 0:e.data}))}))}function Hg(){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 Wg(){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 Gg(){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 Vg(){return Df((function(e){var t=e.payload;return Eh.getInstance().postUserSettings(t)}),{onMutate:function(e){return e}})}function $g(){return Df((function(e){return Eh.getInstance().postUserThemeSettings(e)}))}function Kg(){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=hg.getQueryData(["fetch-profile"]);e.data&&hg.setQueryData(["fetch-profile"],a(a({},t),{settings:e.data}))}})}function Qg(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 Jg(){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 Xg(){return Df((function(){return Eh.getInstance().getEmailOtp().then((function(e){return null==e?void 0:e.data}))}))}function Yg(){return Df((function(e){return Eh.getInstance().confirmMfaOtp(e).then((function(e){return null==e?void 0:e.data}))}))}function Zg(){return Df((function(e){return Eh.getInstance().unrollMfa(e).then((function(e){return null==e?void 0:e.data}))}))}function ey(){return Df((function(){return Eh.getInstance().validatePasswordStatus().then((function(e){return null==e?void 0:e.data})).catch((function(e){return{valid:!1}}))}))}function ty(){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 ny(){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 oy(){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 ay(){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 iy(){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 ry(){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 sy(){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 cy(){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 uy(){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 ly(){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 py(){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 dy(){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 my(){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 hy(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 fy(){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 gy(){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 yy(){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 vy(){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 by(){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 ky(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 xy(){return Df((function(e){return Eh.getInstance().uploadBatchRefundsV2({payload:e}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function wy(){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 jy(){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 _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().getBatchRefundUserFileDownload(a,i,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function Ey(){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 Cy(){return Df((function(e){var t=e.payload,n=e.organizationCode;return Eh.getInstance().updateMFAConfig(t,n)}))}function Sy(){return Df((function(e){var t=e.payload,n=e.organizationCode;return Eh.getInstance().mfaExcludeUsers(t,n)}))}function Ry(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 Ty(){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 Oy(){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 Ay(){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 Iy(){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 zy(){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 Ly(){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 Py(){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 Dy(){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 qy(){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 Ny(){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 My(){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 Fy(){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 Uy(){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 By(){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 Hy(){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 Wy(e){return Df((function(e){var t=e.payload;return Eh.getInstance().postAuditMonitors(t)}),{onMutate:e.onMutate})}function Gy(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,hg.cancelQueries({queryKey:["GET/reconciliation/reports/templates"]})];case 1:return n.sent(),t=null===(a=hg.getQueryData(["GET/reconciliation/reports/templates"]))||void 0===a?void 0:a.templates,hg.setQueryData(["GET/reconciliation/reports/templates"],(function(t){return{templates:e(e([],t.templates,!0),[o],!1)}})),[2,{previousTemplates:t}]}}))}))},onError:function(e,t,n){hg.setQueryData(["GET/reconciliation/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){hg.invalidateQueries({queryKey:["GET/reconciliation/reports/templates"]})},useErrorBoundary:!1})}function Vy(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 $y(){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(){hg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function Ky(){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(){hg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function Qy(){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(){hg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function Jy(){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 Xy(){return Df((function(e){return Eh.getInstance().createSamlConfig(e)}))}function Yy(){return Df((function(e){return Eh.getInstance().updateSamlConfig(e)}))}function Zy(){return Df((function(){return Eh.getInstance().deleteSamlConfig()}))}function ev(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 tv(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 nv(){return Df((function(e){return Eh.getInstance().createChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function ov(){return Df((function(e){return Eh.getInstance().deleteChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function av(){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 iv(){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 rv=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 sv(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}))]}))}))}),{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function cv(e){return Pf(["fetch-payments-evaluated",e],(function(){return Eh.getInstance().postPaymentsEvaluated(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function uv(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}))]}))}))}),{enabled:r,cacheTime:500,useErrorBoundary:!1})}function lv(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}))]}))}))}),{enabled:!!a&&r,cacheTime:0,useErrorBoundary:!1})}function pv(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,useErrorBoundary:!1})}function dv(e){var t=rv();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 mv(){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 hv(){return Pf(["GET/catalog/card-brands"],(function(){return Eh.getInstance().getCardBrands().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function fv(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 gv(){return Pf(["payment-metrics-filters"],(function(){return Eh.getInstance().getPaymentMetricsFilters().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function yv(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}))}),{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function vv(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}))}),{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function bv(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}))]}))}))}),{enabled:!!e,cacheTime:0,useErrorBoundary:!1})}function kv(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}))]}))}))}),{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function xv(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})):{}}),{enabled:!!e.organization_code&&!!e&&e.enabled,cacheTime:0,useErrorBoundary:!1})}function wv(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}))}),{enabled:!!e&&!!(null==e?void 0:e.transaction_code)&&(null==e?void 0:e.enabled),cacheTime:0,useErrorBoundary:!1})}function jv(e){var t=rv();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}))}),{enabled:!!(null==e?void 0:e.payout_code)&&e.enabled,cacheTime:0,useErrorBoundary:!1})}function _v(e,o){var a=this,i=rv();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 Ev(e,o){var a=this,i=rv();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 Cv(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 Sv(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 Rv(e){var o=this;void 0===e&&(e=!0);var a=rv();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 Tv(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 Ov(){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 Av(){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 Iv(){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 zv(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 Lv(){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 Pv(){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 Dv(){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 qv(){return Pf(["fetch-all-organizations",rv()],(function(){return Eh.getInstance().getAllOrganization().then((function(e){return(null==e?void 0:e.data)||[]}))}),{cacheTime:36e5,keepPreviousData:!0,useErrorBoundary:!1})}function Nv(e){var t=rv();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 Mv(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 Fv(e){var t=e.accountCode,n=e.organizationCode,o=rv(),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 Uv(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 Bv(){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 Hv(){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 Wv(){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 Gv(){return Pf(["params-catalog"],(function(){return Eh.getInstance().getWebhookParamsV2().then((function(e){return null==e?void 0:e.data}))}))}function Vv(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 $v(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 Kv(e){var t,n=rv(),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 Qv(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 Jv(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 Xv(){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 Yv(){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 Zv(){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 eb(){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 tb(){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 nb(){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 ob(){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 ab(){return Pf(["/cms/locales"],(function(){return Eh.getInstance().getLocales().then((function(e){return ch(e)?gh:e.data})).catch((function(){return gh}))}))}var ib=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 rb(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 sb(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 cb(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 ub(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 lb(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 pb(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 db(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 mb(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 hb(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 fb(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 gb(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 yb(){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 vb(){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 bb(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 kb(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 xb(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 wb(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 jb=function(e){return["checkout-builder-name-and-icon",e.paymentMethodType,e.type]},_b=function(e,t){var n=e.paymentMethodType,o=e.type;return Pf(jb({paymentMethodType:n,type:o}),(function(){return Eh.getInstance().getNameAndIcon({paymentMethodType:n,type:o}).then((function(e){return null==e?void 0:e.data}))}),t)},Eb=function(e){return["checkout-builder-required-fields",e.paymentMethodType,e.type]},Cb=function(e,t){var n=e.paymentMethodType,o=e.type;return Pf(Eb({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 Sb(e){var t=e.accountCode;return Pf(["styling-sdk-dynamic",t],(function(){return Eh.getInstance().getStylingSdkDynamic({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function Rb(e){var t=e.accountCode,n=e.environment,o=void 0===n?"live":n;return Pf(["styling-settings",t],(function(){return Eh.getInstance().getStylingSettings({accountCode:t,environment:o}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function Tb(){return Df((function(e){var t=e.accountCode,n=e.environment,o=void 0===n?"live":n,a=e.payload;return Eh.getInstance().changeStylingSettings({accountCode:t,environment:o,payload:a}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}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){var o=this;return Pf(["get-users-to-impersonate",e],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,Eh.getInstance().getUsersToImpersonate(e).then((function(e){var t;return(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.users)||[]}))]}))}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function qb(e){var t;return Pf(["fetch-communications",e],(function(){return Eh.getInstance().getCommunications(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null===(t=e.account_codes)||void 0===t?void 0:t.length),useErrorBoundary:!1,cacheTime:3e3})}function Nb(){return Pf(["fetch-communications-filters"],(function(){return Eh.getInstance().getCommunicationsFilters().then((function(e){return null==e?void 0:e.data}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Mb(e,t){return Pf(["fetch-communication-details",e],(function(){return Eh.getInstance().getCommunicationDetails(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e,useErrorBoundary:!1,cacheTime:0})}function Fb(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 Ub(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 Bb(){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 Hb(){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 Wb(){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 Gb={key:"metadata_fields",name:"metadata_fields"};function Vb(){return Pf(["reports"],(function(){return Eh.getInstance().reportsList().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function $b(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 Kb(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 Qb(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 Jb(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),[Gb],!1):null==t?void 0:t.data})).catch((function(e){return e}))}),{enabled:t,useErrorBoundary:!1})}function Xb(e,o){var a=this,i=rv();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 Yb(){var e=rv();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 Zb(e){var t=e.organizationCode,n=e.accountCodes,o=e.email,a=e.page,i=e.pageSize,r=rv();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 ek(){return Pf(["fetch-roles"],(function(){return Eh.getInstance().getRoles().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function tk(){return Pf(["fetch-rolespermissions"],(function(){return Eh.getInstance().getRolesPermissions().then((function(e){return null==e?void 0:e.data}))}))}function nk(){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 ok(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 ak(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 ik(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 rk(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 sk(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 ck(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 uk(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 lk(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 pk(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 dk(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 mk(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 hk(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 fk(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 gk(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 yk(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 vk(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 bk(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 kk(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 xk(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 wk(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 jk(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 _k(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 Ek(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 Ck(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 Sk(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 Rk(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 Tk(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 Ok(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 Ak(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 Ik(){return Pf(["GET-reconciliation-filters"],(function(){return Eh.getInstance().getReconciliationFilters().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function zk(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 Lk(){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 Pk(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 Dk(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 qk(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 Nk(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 Mk(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 Fk(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 Uk(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 Bk(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 Hk(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 Wk(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 Gk(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 Vk(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 $k(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 Kk(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 Qk(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 Jk(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 Xk(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 Yk(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 Zk(e){return Df((function(e){var t=e.payload;return Eh.getInstance().firebaseUserSubscribe(t)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function ex(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 tx(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 nx(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 ox(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 ax(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 ix(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 rx(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 sx(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 cx(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 ux(){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 lx(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 px(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 dx(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 mx(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 hx(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 fx(){return Pf(["chartgpt-user-charts"],(function(){return Eh.getInstance().getChartsByUser().then((function(e){return null==e?void 0:e.data}))}))}function gx(){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 yx(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 vx(){return Pf(["languages"],(function(){return Eh.getInstance().getLanguages().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,cacheTime:300})}function bx(){var e=localStorage.getItem("lang")||"en";return Pf(["translations",e],(function(){return Eh.getInstance().getTranslations(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1,cacheTime:3e4})}function kx(){return kx=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},kx.apply(this,arguments)}
|
|
224
224
|
/**
|
|
225
225
|
* match-sorter-utils
|
|
226
226
|
*
|