@yuno-payments/dashboard-api-mfe 0.35.0-beta.15 → 0.35.0-beta.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.js +1 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/mutations/chartgpt/chartgpt.mutation.d.ts +1 -0
- package/build/esm/index.js +1 -1
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/mutations/chartgpt/chartgpt.mutation.d.ts +1 -0
- package/build/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -26,6 +26,7 @@ export interface CreateAndExecuteChartPayload {
|
|
|
26
26
|
export interface CreateAndExecuteChartResult {
|
|
27
27
|
chart: ChartGPTChart;
|
|
28
28
|
execution: ChartGPTExecuteResponse;
|
|
29
|
+
chartgpt_id: string;
|
|
29
30
|
}
|
|
30
31
|
export declare function useCreateChart(): UseMutationResult<CreateChartGPTChartResponse, AxiosError<ErrorChartGPTResponse>, CreateChartGPTChartPayload>;
|
|
31
32
|
export declare function useDeleteChart(): UseMutationResult<void, AxiosError<ErrorChartGPTResponse>, string>;
|
package/build/esm/index.js
CHANGED
|
@@ -220,7 +220,7 @@ function ra(e){const t=ia.parse(e),n={};for(const e in t)void 0!==t[e]&&(n[e]=t[
|
|
|
220
220
|
*
|
|
221
221
|
* This source code is licensed under the MIT license found in the
|
|
222
222
|
* LICENSE file in the root directory of this source tree.
|
|
223
|
-
*/"production"===process.env.NODE_ENV?lf.exports=function(){if(uf)return pf;uf=1;var e=x,t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useState,o=e.useEffect,a=e.useLayoutEffect,i=e.useDebugValue;function r(e){var n=e.getSnapshot;e=e.value;try{var o=n();return!t(e,o)}catch(e){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var s=t(),c=n({inst:{value:s,getSnapshot:t}}),u=c[0].inst,l=c[1];return a((function(){u.value=s,u.getSnapshot=t,r(u)&&l({inst:u})}),[e,s,t]),o((function(){return r(u)&&l({inst:u}),e((function(){r(u)&&l({inst:u})}))}),[e]),i(s),s};return pf.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:s,pf}():lf.exports=(df||(df=1,"production"!==process.env.NODE_ENV&&function(){function e(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!n(e,o)}catch(e){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=x,n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=t.useState,a=t.useEffect,i=t.useLayoutEffect,r=t.useDebugValue,s=!1,c=!1,u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(u,l){s||void 0===t.startTransition||(s=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var p=l();if(!c){var d=l();n(p,d)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}var m=(d=o({inst:{value:p,getSnapshot:l}}))[0].inst,h=d[1];return i((function(){m.value=p,m.getSnapshot=l,e(m)&&h({inst:m})}),[u,p,l]),a((function(){return e(m)&&h({inst:m}),u((function(){e(m)&&h({inst:m})}))}),[u]),r(p),p};mf.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:u,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),mf);var hf=lf.exports;const ff=hf.useSyncExternalStore,gf=k.createContext(void 0),yf=k.createContext(!1);function vf(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=gf),window.ReactQueryClientContext):gf)}const bf=({context:e}={})=>{const t=k.useContext(vf(e,k.useContext(yf)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},kf=({client:e,children:t,context:n,contextSharing:o=!1})=>{k.useEffect((()=>(e.mount(),()=>{e.unmount()})),[e]),"production"!==process.env.NODE_ENV&&o&&e.getLogger().error("The contextSharing option has been deprecated and will be removed in the next major version");const a=vf(n,o);return k.createElement(yf.Provider,{value:!n&&o},k.createElement(a.Provider,{value:e},t))},xf=k.createContext(!1);xf.Provider;const wf=k.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function jf(e,t){return"function"==typeof e?e(...t):!!e}function Cf(e,t){const n=bf({context:e.context}),o=k.useContext(xf),a=k.useContext(wf),i=n.defaultQueryOptions(e);i._optimisticResults=o?"isRestoring":"optimistic",i.onError&&(i.onError=$h.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=$h.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=$h.batchCalls(i.onSettled)),(e=>{e.suspense&&"number"!=typeof e.staleTime&&(e.staleTime=1e3)})(i),((e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))})(i,a),(e=>{k.useEffect((()=>{e.clearReset()}),[e])})(a);const[r]=k.useState((()=>new t(n,i))),s=r.getOptimisticResult(i);if(ff(k.useCallback((e=>{const t=o?()=>{}:r.subscribe($h.batchCalls(e));return r.updateResult(),t}),[r,o]),(()=>r.getCurrentResult()),(()=>r.getCurrentResult())),k.useEffect((()=>{r.setOptions(i,{listeners:!1})}),[i,r]),((e,t,n)=>(null==e?void 0:e.suspense)&&((e,t)=>e.isLoading&&e.isFetching&&!t)(t,n))(i,s,o))throw((e,t,n)=>t.fetchOptimistic(e).then((({data:t})=>{null==e.onSuccess||e.onSuccess(t),null==e.onSettled||e.onSettled(t,null)})).catch((t=>{n.clearReset(),null==e.onError||e.onError(t),null==e.onSettled||e.onSettled(void 0,t)})))(i,r,a);if((({result:e,errorResetBoundary:t,useErrorBoundary:n,query:o})=>e.isError&&!t.isReset()&&!e.isFetching&&jf(n,[e.error,o]))({result:s,errorResetBoundary:a,useErrorBoundary:i.useErrorBoundary,query:r.getCurrentQuery()}))throw s.error;return i.notifyOnChangeProps?s:r.trackResult(s)}function Ef(e,t,n){return Cf(xh(e,t,n),nf)}function Sf(e,t,n){const o=function(e,t,n){return Ph(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}(e,t,n),a=bf({context:o.context}),[i]=k.useState((()=>new cf(a,o)));k.useEffect((()=>{i.setOptions(o)}),[i,o]);const r=ff(k.useCallback((e=>i.subscribe($h.batchCalls(e))),[i]),(()=>i.getCurrentResult()),(()=>i.getCurrentResult())),s=k.useCallback(((e,t)=>{i.mutate(e,t).catch(_f)}),[i]);if(r.error&&jf(i.options.useErrorBoundary,[r.error]))throw r.error;return{...r,mutate:s,mutateAsync:r.mutate}}function _f(){}function Rf(e){return Sf((function(e){var t=e.payload,n=e.accountCode;return fh.getInstance().postWebhook({payload:t,accountCode:n})}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Tf(e){return Sf((function(e){var t=e.payload,n=e.accountCode;return fh.getInstance().postWebhookV2({payload:t,accountCode:n})}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function If(e){return Sf((function(e){var t=e.payload;return fh.getInstance().postWebhookV2MultiAccount({payload:t})}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Of(e){return Sf((function(e){var t=e.code;return fh.getInstance().deleteWebhook(t)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Af(e){return Sf((function(e){var t=e.code,n=e.accountCode;return fh.getInstance().deleteWebhookV2(t,n)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function zf(e){return Sf((function(e){var t=e.code,n=e.payload;return fh.getInstance().updateWebhook(t,n)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Pf(e){return Sf((function(e){var t=e.code,n=e.payload,o=e.accountCode;return fh.getInstance().updateWebhookV2(t,n,o)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Lf(){return Sf((function(e){var t=e.name,n=e.principal;return fh.getInstance().postAccount(t,n)}))}function Df(){return Sf((function(e){var t=e.name,n=e.code,o=e.principal;return fh.getInstance().patchAccount({name:t,code:n,principal:o})}))}function qf(){return Sf((function(e){var t=e.name,n=e.code,o=e.principal;return fh.getInstance().patchAccountV2({name:t,code:n,principal:o})}))}function Nf(){return Sf((function(e){var t=e.account_code;return fh.getInstance().putAccountPrincipal({account_code:t})}))}function Mf(){return Sf((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return fh.getInstance().putAccountsUser(t,n,o)}))}function Ff(){return Sf((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return fh.getInstance().putAccountsUserMassive(t,n,o)}))}function Uf(){return Sf((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return fh.getInstance().deleteAccountsUserMassive(t,n,o)}))}function Bf(){return Sf(["post-validate-status-connection"],(function(e){var t=e.payload,n=e.accountCode;return fh.getInstance().postValidateStatusConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Wf(){return Sf(["post-change-status-connection"],(function(e){var t=e.payload,n=e.accountCode;return fh.getInstance().postChangeStatusConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Hf(){return Sf((function(e){return fh.getInstance().putCosts(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Vf(){return Sf(["post-connection"],(function(e){var t=e.payload,n=e.accountCode;return fh.getInstance().postConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Gf(){return Sf(["post-connection"],(function(e){var t=e.payload;return fh.getInstance().postMultiConnection({payload:t}).then((function(e){return null==e?void 0:e.data}))}))}function $f(){return Sf(["new-post-connection"],(function(e){var t=e.payload,n=e.accountCode;return fh.getInstance().newPostConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Kf(){return Sf(["new-post-connection-validate"],(function(){return fh.getInstance().postMultiConnectionValidate().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Qf(){return Sf(["patch-connection"],(function(e){var t=e.payload,n=e.connectionCode;return fh.getInstance().patchConnection({payload:t,connectionCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Jf(){return Sf(["delete-connection"],(function(e){return fh.getInstance().deleteConnection(e).then((function(e){return null==e?void 0:e.data}))}))}function Yf(){return Sf(["auth-connection"],(function(e){var t=e.payload,n=e.connectionCode;return fh.getInstance().postArchiveConnection({payload:t,connectionCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Xf(){return Sf((function(e){var t=e.payload;return fh.getInstance().postDefaultRoutes({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function Zf(){return Sf((function(e){return fh.getInstance().postValidateCredentials(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function eg(){return Sf(["patch-organizations"],(function(){return fh.getInstance().updateOrganizationStatus().then((function(e){return null==e?void 0:e.data}))}))}function tg(){return Sf((function(e){return fh.getInstance().getOrgByName(e).then((function(e){return null==e?void 0:e.data}))}))}function ng(e){var o=this;return Sf((function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().changePassword(e).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,t.sent()]}}))}))}))}function og(){var e=this;return Sf((function(o){return t(e,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,fh.getInstance().changePasswordV2(o).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}))}function ag(e){return Sf((function(e){return fh.getInstance().updateProfile(e)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function ig(){return Sf((function(e){return fh.getInstance().inviteUsers(e)}))}function rg(){return Sf((function(e){return fh.getInstance().inviteUsersV2(e,e.organizationCode)}))}function sg(){return Sf((function(e){return fh.getInstance().inviteUsersMassive(e,e.organizationCode)}))}function cg(){return Sf((function(e){var t=e.userCode;return fh.getInstance().unInviteUsers({userCode:t})}))}function ug(){return Sf((function(e){var t=e.userCode,n=e.organizationCode;return fh.getInstance().unInviteUsersV2({userCode:t,organizationCode:n})}))}function lg(){return Sf((function(e){return fh.getInstance().createUserAuth0(e)}))}function pg(){return Sf((function(e){return fh.getInstance().postCall(e)}))}function dg(){return Sf((function(e){return fh.getInstance().changeLoginMethods(e)}))}function mg(){return Sf((function(e){var t=e.paymentMethod,n=e.checkoutCode;return fh.getInstance().updateIsActivePaymentMethod(n,t).then((function(e){return null==e?void 0:e.data}))}))}function hg(e){return Sf((function(e){return fh.getInstance().updateIsActiveCheckout(e)}),e)}function fg(){return Sf((function(e){var t=e.accountCode,n=e.template;return fh.getInstance().updateCheckoutTemplate({accountCode:t,template:n}).then((function(e){return null==e?void 0:e.data}))}))}function gg(){return Sf((function(e){var t=e.accountCode,n=e.theme;return fh.getInstance().updateStylingTheme({accountCode:t,theme:n}).then((function(e){return null==e?void 0:e.data}))}))}function yg(){return Sf((function(e){var t=e.payload,n=e.transactionId,o=e.paymentId,a=e.action;return fh.getInstance().createOperationTransaction(t,n,o,a)}))}function vg(){return Sf((function(e){var t=e.payload,n=e.paymentId,o=e.transactionId,a=e.handleSetProgress;return fh.getInstance().uploadChargebacks(t,n,o,a)}))}var bg=new Jh({}),kg=new class{constructor(e={}){this.queryCache=e.queryCache||new Jh,this.mutationCache=e.mutationCache||new Zh,this.logger=e.logger||Gh,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0,"production"!==process.env.NODE_ENV&&e.logger&&this.logger.error("Passing a custom logger has been deprecated and will be removed in the next major version.")}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=Nh.subscribe((()=>{Nh.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())})),this.unsubscribeOnline=Fh.subscribe((()=>{Fh.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())})))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[n]=wh(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}ensureQueryData(e,t,n){const o=xh(e,t,n),a=this.getQueryData(o.queryKey);return a?Promise.resolve(a):this.fetchQuery(o)}getQueriesData(e){return this.getQueryCache().findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const o=this.queryCache.find(e),a=function(e,t){return"function"==typeof e?e(t):e}(t,null==o?void 0:o.state.data);if(void 0===a)return;const i=xh(e),r=this.defaultQueryOptions(i);return this.queryCache.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return $h.batch((()=>this.getQueryCache().findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,n)]))))}getQueryState(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}removeQueries(e,t){const[n]=wh(e,t),o=this.queryCache;$h.batch((()=>{o.findAll(n).forEach((e=>{o.remove(e)}))}))}resetQueries(e,t,n){const[o,a]=wh(e,t,n),i=this.queryCache,r={type:"active",...o};return $h.batch((()=>(i.findAll(o).forEach((e=>{e.reset()})),this.refetchQueries(r,a))))}cancelQueries(e,t,n){const[o,a={}]=wh(e,t,n);void 0===a.revert&&(a.revert=!0);const i=$h.batch((()=>this.queryCache.findAll(o).map((e=>e.cancel(a)))));return Promise.all(i).then(vh).catch(vh)}invalidateQueries(e,t,n){const[o,a]=wh(e,t,n);return $h.batch((()=>{var e,t;if(this.queryCache.findAll(o).forEach((e=>{e.invalidate()})),"none"===o.refetchType)return Promise.resolve();const n={...o,type:null!=(e=null!=(t=o.refetchType)?t:o.type)?e:"active"};return this.refetchQueries(n,a)}))}refetchQueries(e,t,n){const[o,a]=wh(e,t,n),i=$h.batch((()=>this.queryCache.findAll(o).filter((e=>!e.isDisabled())).map((e=>{var t;return e.fetch(void 0,{...a,cancelRefetch:null==(t=null==a?void 0:a.cancelRefetch)||t,meta:{refetchPage:o.refetchPage}})}))));let r=Promise.all(i).then(vh);return null!=a&&a.throwOnError||(r=r.catch(vh)),r}fetchQuery(e,t,n){const o=xh(e,t,n),a=this.defaultQueryOptions(o);void 0===a.retry&&(a.retry=!1);const i=this.queryCache.build(this,a);return i.isStaleByTime(a.staleTime)?i.fetch(a):Promise.resolve(i.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(vh).catch(vh)}fetchInfiniteQuery(e,t,n){const o=xh(e,t,n);return o.behavior=ef(),this.fetchQuery(o)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(vh).catch(vh)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const n=this.queryDefaults.find((t=>Sh(e)===Sh(t.queryKey)));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find((t=>_h(e,t.queryKey)));if("production"!==process.env.NODE_ENV){this.queryDefaults.filter((t=>_h(e,t.queryKey))).length>1&&this.logger.error("[QueryClient] Several query defaults match with key '"+JSON.stringify(e)+"'. The first matching query defaults are used. Please check how query defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetquerydefaults.")}return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){const n=this.mutationDefaults.find((t=>Sh(e)===Sh(t.mutationKey)));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find((t=>_h(e,t.mutationKey)));if("production"!==process.env.NODE_ENV){this.mutationDefaults.filter((t=>_h(e,t.mutationKey))).length>1&&this.logger.error("[QueryClient] Several mutation defaults match with key '"+JSON.stringify(e)+"'. The first matching mutation defaults are used. Please check how mutation defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetmutationdefaults.")}return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=Eh(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}({defaultOptions:{queries:{refetchOnWindowFocus:!1,refetchOnReconnect:!1,retry:!1,staleTime:3e5,useErrorBoundary:!0}},queryCache:bg});function xg(){return Sf((function(e){return fh.getInstance().createReport(e).then((function(e){return null==e?void 0:e.data}))}))}function wg(){return Sf((function(e){return fh.getInstance().createReconciliationsReportV2(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function jg(){return Sf((function(e){return fh.getInstance().createReportV2(e).then((function(e){return null==e?void 0:e.data}))}))}function Cg(){return Sf((function(e){return fh.getInstance().getTotalRowsForExport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Eg(){return Sf((function(e){return fh.getInstance().cancelReport(e).then((function(e){return null==e?void 0:e.data}))}))}function Sg(o){var a=this;return Sf((function(){return t(a,void 0,void 0,(function(){return n(this,(function(e){return[2,fh.getInstance().createReportTemplate(o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onMutate:function(o){return t(a,void 0,void 0,(function(){var t;return n(this,(function(n){switch(n.label){case 0:return[4,kg.cancelQueries({queryKey:["GET/reports/templates"]})];case 1:return n.sent(),t=kg.getQueryData(["GET/reports/templates"]),kg.setQueryData(["GET/reports/templates"],(function(t){return e(e([],t,!0),[o],!1)})),[2,{previousTemplates:t}]}}))}))},onError:function(e,t,n){kg.setQueryData(["GET/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){kg.invalidateQueries({queryKey:["GET/reports/templates"]})}})}function _g(e){return Sf((function(){return fh.getInstance().updateReportTemplate(e).then((function(e){return null==e?void 0:e.data}))}))}function Rg(e,o,a){var i=this;return void 0===a&&(a=null),Sf((function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().postSmartRoutingCreateWorkflow(e,o).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,t.sent()]}}))}))}),a)}function Tg(e,o){var a=this,i=e.versionCode,r=e.accountCode,s=e.organizationCode;return void 0===o&&(o=null),Sf((function(){return t(a,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,fh.getInstance().postSmartRoutingPublishVersion(r,i,s).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}),o)}function Ig(){return Sf(["validate-connection"],(function(e){var t=e.connectionCode;return fh.getInstance().postSmartRoutingValidateConnection(t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Og(e,t){var n=e.data,o=e.accountCode;return void 0===t&&(t=null),Sf((function(){return fh.getInstance().putSmartRoutingUpdateWorkflow(o,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),t)}function Ag(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Sf((function(){return fh.getInstance().deleteSmartRoutingVersion(o,n).then((function(e){return null==e?void 0:e.data}))}),t)}function zg(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Sf((function(){return fh.getInstance().postSmartRoutingDuplicateVersion(o,n).then((function(e){return null==e?void 0:e.data}))}),t)}function Pg(e,t){var n=e.paymentMethod,o=e.active,a=e.accountCode;return void 0===t&&(t=null),Sf((function(){return fh.getInstance().putSmartRoutingToggleMethod(a,n,o).then((function(e){return null==e?void 0:e.data}))}),t)}function Lg(e,t){var n=e.declinedId,o=e.accountCode;return void 0===t&&(t=null),Sf((function(e){return void 0===e&&(e=null),fh.getInstance().updateSmartRoutingDeclinedGroup(o,n,e).then((function(e){return null==e?void 0:e.data}))}),t)}function Dg(e){var t=e.accountCode;return Sf((function(e){return void 0===e&&(e=null),fh.getInstance().createSmartRoutingDeclinedGroup(t,e).then((function(e){return null==e?void 0:e.data}))}),e.options)}function qg(e){var t=e.accountCode;return Sf((function(e){return void 0===e&&(e=null),fh.getInstance().updateSmartRoutingTutorial(t,e||"").then((function(e){return null==e?void 0:e.data}))}),e.options)}function Ng(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Sf((function(e){return void 0===e&&(e=!1),fh.getInstance().updateSmartRoutingFavorite(o,n,e).then((function(e){return null==e?void 0:e.data}))}),t)}function Mg(e,t){var n=e.code,o=e.name,a=e.accountCode;return void 0===t&&(t=null),Sf((function(){return fh.getInstance().putSmartRoutingUpdateWorkflowName(a,{code:n,name:o}).then((function(e){return null==e?void 0:e.data}))}),t)}function Fg(e,t){var n=e.accountCode,o=e.workflowVersionCode;return void 0===t&&(t=null),Sf((function(e){return fh.getInstance().simulateSmartRoutingTransaction(n,o,e).then((function(e){return null==e?void 0:e.data}))}),t)}function Ug(e,t){return void 0===t&&(t=null),Sf((function(t){return fh.getInstance().updateMonitorRedistribution(e,t).then((function(e){return null==e?void 0:e.data}))}),t)}function Bg(e,t){return void 0===t&&(t={}),Sf((function(t){var n=t.declinedGroupCode;return fh.getInstance().removeDeclinedGroup(e,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),a(a({},t),{useErrorBoundary:!1}))}function Wg(e,t){return void 0===t&&(t={}),Sf((function(t){var n=t.payload;return fh.getInstance().multiAccountDeclinedGroupCreate(e,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),a(a({},t),{useErrorBoundary:!1}))}var Hg=function(e){return Sf((function(t){return fh.getInstance().createMonitorThreshold(t,e).then((function(e){return e.data}))}))},Vg=function(e){return Sf((function(t){return fh.getInstance().createMonitorTemplate(t,e).then((function(e){return e.data}))}))};function Gg(e){return Sf((function(){return fh.getInstance().createNotificacion(e).then((function(e){return null==e?void 0:e.data}))}))}function $g(){return Sf((function(){return fh.getInstance().getNotification().then((function(e){return null==e?void 0:e.data}))}))}function Kg(){return Sf((function(e){var t=e.payload;return fh.getInstance().postSlackMessageChannel(t).then((function(e){return null==e?void 0:e.data}))}))}function Qg(){var e=this;return Sf((function(o){var a=o.roles,i=o.userCode;return t(e,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().setRoles({roles:a,userCode:i})];case 1:return[2,null==(e=t.sent())?void 0:e.data]}}))}))}))}function Jg(){var e=this;return Sf((function(o){var a=o.userCode;return t(e,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().deleteUserTeam({userCode:a})];case 1:return[2,null==(e=t.sent())?void 0:e.data]}}))}))}))}function Yg(){return Sf((function(e){var t=e.userCode,n=e.organizationCode;return fh.getInstance().deleteUserTeamV2({userCode:t,organizationCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Xg(){return Sf((function(){return fh.getInstance().setCustodian().then((function(e){return null==e?void 0:e.data}))}))}function Zg(){return Sf((function(e){var t=e.payload,n=e.accountCode;return fh.getInstance().createRoles(t,n).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function ey(){var e=this;return Sf((function(o){var a=o.payload,i=o.id,r=o.accountCode;return t(e,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().editRoles({payload:a,id:i},r)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}}))}))}),{useErrorBoundary:!1})}function ty(){return Sf((function(e){return fh.getInstance().deleteRoles(e).then((function(e){return null==e?void 0:e.data}))}))}function ny(){return Sf(["post-payment-links"],(function(e){var t=e.payload,n=e.accountCode;return fh.getInstance().postPaymentLinks({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function oy(){return Sf(["post-products-account"],(function(e){var t=e.payload;return fh.getInstance().postCreateProducts({payload:t}).then((function(e){return null==e?void 0:e.data}))}))}function ay(){return Sf(["post-delete-payment-link"],(function(e){var t=e.code;return fh.getInstance().postDeletePaymentLink({code:t}).then((function(e){return null==e?void 0:e.data}))}))}function iy(){return Sf(["patch-payment-links"],(function(e){var t=e.payload,n=e.accountCode,o=e.paymentLinkCode;return fh.getInstance().patchPaymentLinks({payload:t,accountCode:n,paymentLinkCode:o}).then((function(e){return null==e?void 0:e.data}))}))}function ry(e){return Sf((function(){return fh.getInstance().postValidatePassword(e).then((function(e){return null==e?void 0:e.data}))}))}function sy(){return Sf((function(e){var t=e.payload;return fh.getInstance().postUserSettings(t)}),{onMutate:function(e){return e}})}function cy(){return Sf((function(e){return fh.getInstance().postUserThemeSettings(e)}))}function uy(){return Sf((function(e){var t=e.payload,n=e.section;return fh.getInstance().postUserSettingsTables(t,n)}),{onMutate:function(e){return e},onSuccess:function(e){var t=kg.getQueryData(["fetch-profile"]);e.data&&kg.setQueryData(["fetch-profile"],a(a({},t),{settings:e.data}))}})}function ly(e){return Sf(["pinned-sections"],(function(e){var t=e.payload;return fh.getInstance().postUserSettingsPinned(t)}),{onMutate:function(t){var n=t.payload;return e({payload:n})}})}function py(){return Sf((function(e){var t=e.password,n=e.otp;return fh.getInstance().getMfaTokenValidation(t,n).then((function(e){return null==e?void 0:e.data}))}))}function dy(e){return Sf((function(){return fh.getInstance().getMfaToken(e).then((function(e){return null==e?void 0:e.data}))}))}function my(){return Sf((function(){return fh.getInstance().getEmailOtp().then((function(e){return null==e?void 0:e.data}))}))}function hy(e){return Sf((function(){return fh.getInstance().validateOtp(e).then((function(e){return null==e?void 0:e.data}))}))}function fy(){return Sf((function(e){return fh.getInstance().confirmMfaOtp(e).then((function(e){return null==e?void 0:e.data}))}))}function gy(e){return Sf((function(){return fh.getInstance().confirmMfaOtp(e).then((function(e){return null==e?void 0:e.data}))}))}function yy(e){return Sf((function(){return fh.getInstance().unrollMfa(e).then((function(e){return null==e?void 0:e.data}))}))}function vy(){return Sf((function(e){return fh.getInstance().unrollMfa(e).then((function(e){return null==e?void 0:e.data}))}))}function by(){return Sf((function(){return fh.getInstance().sendOTPForMFA().then((function(e){return null==e?void 0:e.data}))}))}function ky(){return Sf((function(){return fh.getInstance().getMFAStatus().then((function(e){return null==e?void 0:e.data}))}))}function xy(){return Sf((function(){return fh.getInstance().validatePasswordStatus().then((function(e){return null==e?void 0:e.data})).catch((function(e){return{valid:!1}}))}))}function wy(){return Sf(["post-get-allowlist-items"],(function(e){var t=e.payload;return fh.getInstance().postAllowlistItems({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function jy(){return Sf(["post-get-allowlist-multi-account"],(function(e){var t=e.payload;return fh.getInstance().postGetAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Cy(){return Sf(["post-create-allowlist-multi-account"],(function(e){var t=e.payload;return fh.getInstance().postCreateAllowlistMultiAccount({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Ey(){return Sf(["patch-change-status-allowlist"],(function(e){var t=e.payload;return fh.getInstance().patchChangeStatusAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Sy(){return Sf(["patch-change-status-allowlist-item"],(function(e){var t=e.payload;return fh.getInstance().patchChangeStatusAllowlistItem({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function _y(){return Sf(["post-add-allowlist-items"],(function(e){var t=e.payload;return fh.getInstance().patchAddAllowlistItems({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Ry(){return Sf(["patch-allowlist"],(function(e){var t=e.payload;return fh.getInstance().patchAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Ty(){return Sf(["post-blacklist-multi-account"],(function(e){var t=e.payload;return fh.getInstance().postBlackListMultiAccount({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Iy(){return Sf(["post-blacklist"],(function(e){var t=e.payload;return fh.getInstance().postBlackListType({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Oy(){return Sf(["put-blacklist"],(function(e){return fh.getInstance().putBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Ay(){return Sf(["change-blacklist"],(function(e){return fh.getInstance().changeBlackListStatus(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function zy(){return Sf(["change-blacklist-item"],(function(e){return fh.getInstance().changeBlackListStatusItem(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Py(){return Sf(["post-blacklist-items"],(function(e){var t=e.payload;return fh.getInstance().postBlackListItems({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Ly(){return Sf(["delete-blacklist"],(function(e){var t=e.black_list_code;return fh.getInstance().deleteBlackListType({black_list_code:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Dy(){return Sf(["delete-blacklist-item"],(function(e){var t=e.black_list_code,n=e.account_code,o=e.item;return fh.getInstance().deleteBlackListItem({black_list_code:t,account_code:n,item:o}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function qy(e){var t=e.handleSetProgress;return Sf(["post-blacklist-batch"],(function(e){var n=e.blacklist_code,o=e.expiration_days,a=e.file;return fh.getInstance().postBlackListBatch({blacklist_code:n,expiration_days:o,file:a,handleSetProgress:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Ny(){return Sf(["change-payments-webhook"],(function(e){var t=e.status,n=e.paymentCode;return fh.getInstance().postChangePaymentsWebhook({status:t,paymentCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function My(){return Sf(["delete-blacklist-items"],(function(e){var t=e.blocklist_code,n=e.blocklist_item_id,o=e.account_code;return fh.getInstance().deleteBlockListItem({blocklist_code:t,blocklist_item_id:n,account_code:o}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Fy(){return Sf(["valiate-blacklist-items"],(function(e){return fh.getInstance().valiateBlockListItems({payload:e}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Uy(){return Sf(["delete-allowlist-item"],(function(e){return fh.getInstance().deleteAllowlistItem({payload:e}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function By(){return Sf(["validate-allowlist-items"],(function(e){return fh.getInstance().validateAllowlistItems({payload:e}).then((function(e){return e.data})).catch((function(e){return e}))}))}function Wy(e){var t=e.fileName,n=e.onSuccess,o=e.onError,a=w(0),i=a[0],r=a[1],s=j({cancel:function(){return null}}),c=Sf(["upload-file-chargeback",t],(function(e){var t=fh.getInstance().uploadFileS3ClientBatchRefunds({payload:e,handleSetProgress:r}),a=t.promise,i=t.cancel;return s.current.cancel=i,a.then((function(e){return null==n||n(null==e?void 0:e.data),null==e?void 0:e.data})).catch((function(e){throw null==o||o(),e}))}),{useErrorBoundary:!1});return{mutation:c,cancelRequest:s.current.cancel,progress:i}}function Hy(e){var t=e.handleSetProgress;return Sf((function(e){return fh.getInstance().uploadBatchRefunds({payload:e,handleSetProgress:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Vy(){return Sf((function(e){return fh.getInstance().uploadBatchRefundsV2({payload:e}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Gy(){var e=this;return Sf((function(o){return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,fh.getInstance().batchRefundByFile({payload:o}).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function $y(){var e=this;return Sf((function(o){var a=o.batchRefundId,i=o.organizationCode,r=o.accountCode;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,fh.getInstance().getBatchRefundProcessedFileDownload(a,i,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function Ky(){var e=this;return Sf((function(o){var a=o.batchRefundId,i=o.organizationCode,r=o.accountCode;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,fh.getInstance().getBatchRefundUserFileDownload(a,i,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function Qy(){var e=j({cancel:function(){return null}}),t=Sf(["upload-file"],(function(t){var n=fh.getInstance().uploadFileS3ClientBatchRefunds({payload:t}),o=n.promise,a=n.cancel;return e.current.cancel=a,o.then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}));return{mutation:t,cancelRequest:e.current.cancel}}function Jy(){return Sf((function(e){var t=e.payload,n=e.organizationCode;return fh.getInstance().updateMFAConfig(t,n)}))}function Yy(){return Sf((function(e){var t=e.payload,n=e.organizationCode;return fh.getInstance().mfaExcludeUsers(t,n)}))}function Xy(e){return Ef(["GET/scheduled-reports",e],(function(){return fh.getInstance().getScheduledReport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function Zy(){return Sf((function(e){var t=e.payload;return fh.getInstance().postScheduledReport(t).then((function(e){return{data:e.data,status:e.status}})).catch((function(e){return e}))}))}function ev(){return Sf((function(e){var t=e.reportCode,n=e.payload;return fh.getInstance().updateScheduledReport(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function tv(){return Sf((function(e){return fh.getInstance().deleteScheduledReport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function nv(){return Sf((function(e){return fh.getInstance().getConditionalConfigRules(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function ov(){return Sf((function(e){return fh.getInstance().getRule(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function av(){return Sf((function(e){var t=e.payload,n=e.accountCode;return fh.getInstance().postCreateRuleMultiAccount(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function iv(){return Sf((function(e){var t=e.payload,n=e.accountCode;return fh.getInstance().postCreateRule(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function rv(){return Sf((function(e){var t=e.payload,n=e.ruleId,o=e.accountCode;return fh.getInstance().postEditRule(t,n,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function sv(){return Sf((function(e){var t=e.payload;return fh.getInstance().postCreateCustomizedApiKeys(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function cv(){return Sf((function(e){var t=e.payload,n=e.code;return fh.getInstance().pathCreateCustomizedApiKeys(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function uv(){return Sf((function(e){var t=e.code,n=e.password;return fh.getInstance().getCustomizedApiKeysToken(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}))}function lv(){return Sf((function(e){var t=e.passwordOtp;return fh.getInstance().getDeveloperCredentialsValidatePassword(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}))}function pv(){return Sf((function(e){var t=e.code;return fh.getInstance().getCustomizedApiKeysShowToken(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function dv(){return Sf((function(e){var t=e.code;return fh.getInstance().deleteCustomizedApiKeys(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function mv(){return Sf((function(e){var t=e.payload,n=e.code;return fh.getInstance().patchApiKeysEditNote(t,n).then((function(e){return e.data})).catch((function(e){return e}))}))}function hv(){return Sf((function(e){var t=e.payload,n=e.code,o=e.password;return fh.getInstance().postApiKeysRoll(t,n,o).then((function(e){return e.data})).catch((function(e){return e}))}))}function fv(){return Sf((function(e){var t=e.password,n=e.accountCode;return fh.getInstance().getDeveloperCredentials(t,n).then((function(e){return a(a({},null==e?void 0:e.data),{isValid:!0})})).catch((function(e){var t,n;return{isValid:!1,status:e.response.status,error:null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.data}}))}))}function gv(e){return Sf((function(e){var t=e.payload;return fh.getInstance().postAuditMonitors(t)}),{onMutate:e.onMutate})}function yv(o){var a=this;return Sf((function(){return fh.getInstance().createReconciliationReportTemplate(o).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{onMutate:function(o){return t(a,void 0,void 0,(function(){var t,a;return n(this,(function(n){switch(n.label){case 0:return[4,kg.cancelQueries({queryKey:["GET/reconciliation/reports/templates"]})];case 1:return n.sent(),t=null===(a=kg.getQueryData(["GET/reconciliation/reports/templates"]))||void 0===a?void 0:a.templates,kg.setQueryData(["GET/reconciliation/reports/templates"],(function(t){return{templates:e(e([],t.templates,!0),[o],!1)}})),[2,{previousTemplates:t}]}}))}))},onError:function(e,t,n){kg.setQueryData(["GET/reconciliation/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){kg.invalidateQueries({queryKey:["GET/reconciliation/reports/templates"]})},useErrorBoundary:!1})}function vv(e){return Sf((function(){return fh.getInstance().updateReconciliationReportTemplate(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function bv(){return Sf(["POST/reconciliation/alerts"],(function(e){return fh.getInstance().postReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){kg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function kv(){return Sf(["DELETE/reconciliation/alerts"],(function(e){return fh.getInstance().deleteReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){kg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function xv(){return Sf(["UPDATE/reconciliation/alerts"],(function(e){return fh.getInstance().updateReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){kg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function wv(){return Sf((function(e){var t=e.payload;return fh.getInstance().postCreateInsightsReport(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function jv(){return Sf((function(e){return fh.getInstance().createSamlConfig(e)}))}function Cv(){return Sf((function(e){return fh.getInstance().updateSamlConfig(e)}))}function Ev(){return Sf((function(){return fh.getInstance().deleteSamlConfig()}))}function Sv(e,t){return void 0===t&&(t={}),Sf((function(t){return fh.getInstance().generateAIWorkflowRoutes(e,t).then((function(e){return null==e?void 0:e.data}))}),a(a({},t),{useErrorBoundary:!1}))}function _v(){return Sf((function(e){return fh.getInstance().createChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Rv(){return Sf((function(e){return fh.getInstance().deleteChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Tv(){return Sf((function(e){var t=e.chartgpt_id,n=e.type,o=e.name;return fh.getInstance().patchChartGPTChart(t,{type:n,name:o}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Iv(){var e=this;return Sf((function(o){return t(e,void 0,void 0,(function(){var e,a,i,r,s,c,u,l=this;return n(this,(function(p){switch(p.label){case 0:return[4,(e=fh.getInstance()).createChartGPTChart(o)];case 1:if(a=p.sent(),!(i=null===(u=null==a?void 0:a.data)||void 0===u?void 0:u.chartgpt_id))throw new Error("Failed to create chart: No chart ID returned");return r=function(){return t(l,void 0,void 0,(function(){var o=this;return n(this,(function(a){return[2,new Promise((function(a,r){var s=setInterval((function(){return t(o,void 0,void 0,(function(){var t,o,c;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e.getChartById(i)];case 1:return t=n.sent(),"DRAFT"===(null==(o=null==t?void 0:t.data)?void 0:o.status)&&(clearInterval(s),a(o)),[3,3];case 2:return c=n.sent(),clearInterval(s),r(c),[3,3];case 3:return[2]}}))}))}),1e4)}))]}))}))},[4,r()];case 2:return s=p.sent(),[4,e.executeChartGPTChart(i)];case 3:return c=p.sent(),[2,{chart:s,execution:null==c?void 0:c.data}]}}))}))}),{useErrorBoundary:!1})}var Ov=function(){var e,t;return null===(t=null===(e=function(e){var t=localStorage.getItem(e),n=w(t&&JSON.parse(t)),o=n[0],a=n[1];return C((function(){var t=function(t){if(t.key===e){var n=t.newValue;a(n)}};return window.addEventListener("storage",t),function(){window.removeEventListener("storage",t)}}),[e]),o}("account"))||void 0===e?void 0:e.value)||void 0===t?void 0:t.organization_code};function Av(e){var o=this;return Ef(["fetch-payments-lazy",e],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,fh.getInstance().postPaymentsLazy(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{enabled:!!e&&Object.keys(e).length>0,cacheTime:0})}function zv(e){return Ef(["fetch-payments-evaluated",e],(function(){return fh.getInstance().postPaymentsEvaluated(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&Object.keys(e).length>0,cacheTime:0})}function Pv(e){var t=e.enabled,n=void 0===t||t,o=i(e,["enabled"]);return Ef(["fetch-payments-".concat(o.payment_code),o],(function(){return fh.getInstance().getPayment(o).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:500})}function Lv(e){var o=this,a=e.paymentCode,i=e.enabled,r=void 0===i||i,s=fh.getInstance();return Ef(["get-payment-v2",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,s.getPaymentV2(a).then((function(e){return e.data})).catch((function(e){throw e}))]}))}))}),{enabled:r,cacheTime:500})}function Dv(e,t){return Ef(["payments/".concat(e,"/transactions"),t],(function(){return fh.getInstance().getPaymentTransactions(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,cacheTime:500})}function qv(e){return Ef(["payments/".concat(e,"/transactions/lazy")],(function(){return fh.getInstance().getPaymentTransactionsLazy(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e.response.data}))}),{enabled:!!e,cacheTime:500})}function Nv(e){var t=e.payment_code,n=e.transaction_code,o=e.enabled,a=void 0===o||o;return Ef(["payments/".concat(t,"/transactions/").concat(n)],(function(){return fh.getInstance().getTransactionDetails({payment_code:t,transaction_code:n}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:500,enabled:a})}function Mv(e){var o=this,a=e.payment_code,i=e.enabled,r=void 0===i||i,s=fh.getInstance();return Ef(["get-payment-transaction-details-v2",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,s.getTransactionDetailsV2({payment_code:a}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))]}))}))}),{enabled:!!a&&r,cacheTime:0})}function Fv(e){var o=this,a=e.transaction_code,i=e.enabled,r=void 0===i||i,s=fh.getInstance();return Ef(["get-payment-transaction-raw-response",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,s.getTransactionRawResponse({transaction_code:a})]}))}))}),{enabled:!!a&&r,cacheTime:0})}function Uv(e){var t=Ov();return Ef(["payment-methods",e],(function(){return fh.getInstance().getPaymentMethodsByCountry({provider_id:null==e?void 0:e.provider_id,country:null==e?void 0:e.country},t).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!e&&!!(null==e?void 0:e.provider_id),useErrorBoundary:!1})}function Bv(e){var t=e.provider;return Ef(["/payment-methods/provider/".concat(t)],(function(){return fh.getInstance().getPaymentMethodsByProvider({provider:t}).then((function(e){return null==e?void 0:e.data}))}))}function Wv(){return Ef(["/payment-methods/providers"],(function(){return fh.getInstance().getPaymentMethodsAndProviders().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Hv(){return Ef(["/payments/payment-methods/providers/active"],(function(){return fh.getInstance().getPaymentMethodsAndProvidersActive().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Vv(){return Ef(["/payments/transaction/statuses"],(function(){return fh.getInstance().useGetPaymentAndTrxStatuses().then((function(e){return null==e?void 0:e.data}))}))}function Gv(){return Ef(["GET/catalog/card-brands"],(function(){return fh.getInstance().getCardBrands().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function $v(e){return void 0===e&&(e=!0),Ef(["payment-filters",e],(function(){return fh.getInstance().getPaymentFilters().then((function(e){return null==e?void 0:e.data}))}),{enabled:e,useErrorBoundary:!1})}function Kv(){return Ef(["payment-metrics-filters"],(function(){return fh.getInstance().getPaymentMetricsFilters().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Qv(e){var t=e.transaction_code;return Ef(["payment-filters",t],(function(){return fh.getInstance().getTransactionHistory({transaction_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t})}function Jv(e){var t=e.transaction_code,n=e.enabled;return Ef(["payment-transaction-details",t],(function(){return fh.getInstance().getPaymentTransactionsDetails({transaction_code:t}).then((function(e){return null==e?void 0:e.data})).catch((function(){return{error:!0}}))}),{enabled:!!t&&(void 0===n||n)})}function Yv(e){var t=e.payment_code,n=e.enabled;return Ef(["transaction-history",t],(function(){return fh.getInstance().getTransactionHistoryByPaymentCode({payment_code:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function Xv(e){return Ef(["GET/transactions",JSON.stringify(e)],(function(){return fh.getInstance().getTransactions(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function Zv(e){var o=this;return Ef(["POST/transactions",JSON.stringify(e)],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,fh.getInstance().postTransactions(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{enabled:!!e,cacheTime:0})}function eb(e){var o=this;return Ef(["POST/fraud-transactions",JSON.stringify(e)],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,fh.getInstance().postFraudTransactions(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{enabled:!!e&&Object.keys(e).length>0,cacheTime:0})}function tb(e){return Ef(["GET/payout-detail",JSON.stringify(e)],(function(){var t=fh.getInstance();return e.organization_code?t.getPayoutDetails(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e})):{}}),{enabled:!!e.organization_code&&!!e&&e.enabled,cacheTime:0})}function nb(e){return Ef(["GET/payout-transaction-detail",JSON.stringify(e)],(function(){return fh.getInstance().getPayoutTransactionDetails(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&!!(null==e?void 0:e.transaction_code)&&(null==e?void 0:e.enabled),cacheTime:0})}function ob(e){var t=Ov();return Ef(["GET/payout-history-detail",JSON.stringify(e)],(function(){return fh.getInstance().getPayoutHistoryDetails(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!(null==e?void 0:e.payout_code)&&e.enabled,cacheTime:0})}function ab(e){var o=this,a=Ov();return Ef(["GET/useGetProofOfCancel",a,e],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,fh.getInstance().getProofOfCancel(e,a).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))]}))}))}),{enabled:!!e&&!!a,cacheTime:0,useErrorBoundary:!1})}function ib(e,o,a){var i=this,r=fh.getInstance();return Ef(["send-payment-notification",e,o],(function(){return t(i,void 0,void 0,(function(){var t,i;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,r.sendPaymentNotification(e,o)];case 1:return t=n.sent(),a.onSuccess(),[2,t.data];case 2:throw i=n.sent(),a.onError(),i;case 3:return[2]}}))}))}),{enabled:a.enabled,cacheTime:0,useErrorBoundary:!1})}function rb(e){return Ef(["usePayoutsList",e&&JSON.stringify(e)],(function(){var t=fh.getInstance();if(e)return t.postPayouts(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&!!Object.values(e).length,cacheTime:0})}function sb(e){var o=this;void 0===e&&(e=!0);var a=Ov();return Ef(["getPayoutsFilters",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,fh.getInstance().getPayoutsFilters(a).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{enabled:e&&!!a})}function cb(e){var t=e.password,n=e.accountCode;return Ef(["developers"],(function(){return fh.getInstance().getDeveloperCredentials(t,n).then((function(e){return a(a({},null==e?void 0:e.data),{isValid:!0})})).catch((function(e){var t,n;return{isValid:!1,status:e.response.status,error:null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.data}}))}),{enabled:!1,cacheTime:0})}function ub(e){var t=e.password;return Ef(["developers"],(function(){return fh.getInstance().getDeveloperCredentialsValidatePassword(t).then((function(e){return a(a({},null==e?void 0:e.data),{isValid:!0})})).catch((function(e){var t,n;return{isValid:!1,status:e.response.status,error:null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.data}}))}),{enabled:!1,cacheTime:0})}function lb(){return Ef(["fetch-customized-api-keys-members"],(function(){return fh.getInstance().getCustomizedApiKeysMembers().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function pb(){return Ef(["developers-get-allowed-ips"],(function(){return fh.getInstance().getAllowedIps().then((function(e){return(null==e?void 0:e.data)?a(a({},null==e?void 0:e.data),{isError:!1}):null})).catch((function(e){return a(a({},e),{isError:!0})}))}),{enabled:!1,cacheTime:0})}function db(){return Ef(["fetch-customized-api-keys-accounts"],(function(){return fh.getInstance().getCustomizedApiKeysAccounts().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function mb(e){return Ef(["fetch-customized-api-keys",e],(function(){return fh.getInstance().postCustomizedApiKeys(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!(null==e?void 0:e.length)})}function hb(){return Ef(["fetch-customized-api-keys-products"],(function(){return fh.getInstance().getCustomizedApiKeysProducts().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{cacheTime:0})}function fb(){return Sf(["developers-patch-allowed-ips"],(function(e){return fh.getInstance().patchAllowedIps(e).then((function(e){return(null==e?void 0:e.data)?a(a({},null==e?void 0:e.data),{isError:!1}):null})).catch((function(e){return a(a({},e),{isError:!0})}))}),{cacheTime:0})}function gb(){return Ef(["fetch-organizations"],(function(){return fh.getInstance().getOrganization().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function yb(){return Ef(["fetch-all-organizations"],(function(){return fh.getInstance().getAllOrganization().then((function(e){return(null==e?void 0:e.data)||[]}))}),{keepPreviousData:!0,useErrorBoundary:!1})}function vb(e){var t=Ov();return Ef(["organizations-provider-params",e],(function(e){var n=e.queryKey;return fh.getInstance().getProviderParams(n[1],t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.id),useErrorBoundary:!1})}function bb(e){var t=e.integration_code,n=e.enabled;return Ef(["integration-params",t],(function(){return t.includes("undefined")?{}:fh.getInstance().getIntegrationParams({integration_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,useErrorBoundary:!1})}function kb(e){var t=e.accountCode,n=e.organizationCode;return Ef(["organizations-account-integrations"],(function(){return fh.getInstance().getIntegrationByAccount({accountCode:t,organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!t})}function xb(e){var t=e.accountCode,n=e.organizationCode,o=Ov(),a=Ef(["organizations-account-integrations",t,n],(function(){return fh.getInstance().getIntegrationByAccountV2({accountCode:t,organizationCode:n||o}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,enabled:!!t,useErrorBoundary:!1});return a}function wb(e){var t=e.accountCode,n=e.paymentMethod;return Ef(["fetch-connections-by-payment-method",n,t],(function(){return fh.getInstance().getConnectionsByPaymentMethod(t,n).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!n&&!!t,cacheTime:0,useErrorBoundary:!1})}function jb(){var e=this;return Ef(["fetch-hash-pylon"],(function(){return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,fh.getInstance().getHashPylon()]}))}))}),{keepPreviousData:!0,useErrorBoundary:!1})}function Cb(){return Ef(["connections"],(function(){return fh.getInstance().getConnections().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Eb(){return Ef(["dialogs"],(function(){return fh.getInstance().getDialogs().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1,retryDelay:2e3})}function Sb(){return Ef(["params-catalog"],(function(){return fh.getInstance().getWebhookParams().then((function(e){return null==e?void 0:e.data}))}))}function _b(){return Ef(["params-catalog"],(function(){return fh.getInstance().getWebhookParamsV2().then((function(e){return null==e?void 0:e.data}))}))}function Rb(e){var t=e.accountCode;return Ef(["webhooks"],(function(){return fh.getInstance().getWebhooks({accountCode:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t})}function Tb(e){var t=e.accountCode;return Ef(["webhooks"],(function(){return fh.getInstance().getWebhooksV2({accountCode:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t})}function Ib(e){var t=e.accountCode,n=e.name;return Ef(["webhooks",t,n],(function(){return fh.getInstance().getWebhooksV3({accountCode:t,name:n}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,useErrorBoundary:!1})}function Ob(e){var t=e.accountCode,n=e.enabled;return Ef(["webhooks-detail",t],(function(){return fh.getInstance().getWebhooksV2Detail({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!n})}function Ab(e){var t,n=Ov(),o=null!==(t=null!=e?e:n)&&void 0!==t?t:null;return Ef({queryKey:["accounts",o],queryFn:function(){return fh.getInstance().getAccounts(o).then((function(e){return null==e?void 0:e.data}))},keepPreviousData:!0,cacheTime:3e3,enabled:!!o})}function zb(e){return Ef(["accountsV2",e],(function(){return fh.getInstance().getAccountsV2().then((function(e){return(null==e?void 0:e.data)||[]})).catch((function(e){throw e}))}),{keepPreviousData:!0,enabled:!!e,useErrorBoundary:!1})}function Pb(e){return Ef(["accountsV2-by-user",e],(function(){return e?fh.getInstance().getAccountsByUser(e).then((function(e){return{accountsV2ByUser:(null==e?void 0:e.data)||null}})).catch((function(e){return{accountsV2ByUser:[],error:e}})):{accountsV2ByUser:[]}}),{enabled:!!e,staleTime:0})}function Lb(){return Ef(["menu"],(function(){return fh.getInstance().getMenu().then((function(e){return Xm(e)?ih:null==e?void 0:e.data})).catch((function(){return ih}))}))}function Db(){return Ef(["/payment/statuses/style"],(function(){return fh.getInstance().useGetPaymentStatusesStyles().then((function(e){return Xm(e)?Zm:null==e?void 0:e.data})).catch((function(){return Zm}))}))}function qb(){return Ef(["/transaction/statuses/style"],(function(){return fh.getInstance().useGetTransactionStatusesStyles().then((function(e){return Xm(e)?eh:null==e?void 0:e.data})).catch((function(){return eh}))}))}function Nb(){return Ef(["/reconciliation/transaction/statuses/style"],(function(){return fh.getInstance().useGetReconciliationTransactionStatusesStyles().then((function(e){return Xm(e)?th:null==e?void 0:e.data})).catch((function(){return th}))}))}function Mb(){return Ef(["timezone-catalog"],(function(){return fh.getInstance().useGetTimeZoneCatalog().then((function(e){return Xm(e)?nh:null==e?void 0:e.data})).catch((function(){return nh}))}))}function Fb(){return Ef(["/cms/audit-logs-filters"],(function(){return fh.getInstance().useGetAuditLogsFilters().then((function(e){return Xm(e)?oh:null==e?void 0:e.data})).catch((function(){return oh}))}))}function Ub(){return Ef(["/cms/static-contents"],(function(){return fh.getInstance().getDashboardStaticContents().then((function(e){var t,n;return Xm(e)?ah:(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t[0])||void 0===n?void 0:n.data)||{}})).catch((function(){return ah}))}))}function Bb(){return Ef(["/cms/locales"],(function(){return fh.getInstance().getLocales().then((function(e){return Xm(e)?rh:e.data})).catch((function(){return rh}))}))}var Wb=function(){var e=w("ON"===localStorage.getItem("isTesting")),t=e[0],n=e[1];return C((function(){window.addEventListener("storage",(function(e){"isTesting"===e.key&&n("ON"===e.newValue)}))}),[]),{isTesting:t}};function Hb(e){return Ef(["smart-routing-methods",e],(function(){return fh.getInstance().getSmartRoutingMethods(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function Vb(e,t){return Ef(["smart-routing-workflow",t,e],(function(){return fh.getInstance().getSmartRoutingWorkflow(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!e,cacheTime:0,retry:!1})}function Gb(e,t){return Ef(["smart-routing-condition-types",e,t],(function(){return fh.getInstance().getSmartRoutingConditionTypes(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!e})}function $b(e,t){return Ef(["smart-routing-condition-payment-method",e,t],(function(){return fh.getInstance().getSmartRoutingConditionPaymentMethod(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:null!==t})}function Kb(e,t){return Ef(["smart-routing-condition-types-values",t,e],(function(){return fh.getInstance().getSmartRoutingConditionTypesValues(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!e})}function Qb(e){var t=e.accountCode,n=e.workflowVersionId;return Ef(["smart-routing-workflow-version",n,t],(function(){return fh.getInstance().getSmartRoutingWorkflowVersion(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!n&&!!t,cacheTime:0})}function Jb(e,t,n){return Ef(["smart-routing-next-route",e,n,t],(function(){return fh.getInstance().getSmartRoutingNextSteps(e,t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function Yb(e){return Ef(["smart-routing-decline-groups",e],(function(){return fh.getInstance().getSmartRoutingDeclinedGroup(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function Xb(e){return Ef(["smart-routing-tutorial",e],(function(){return fh.getInstance().getSmartRoutingTutorial(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function Zb(e,t){return Ef(["smart-routing-payment-route",e,t],(function(){return fh.getInstance().getSmartRoutingPaymentRoute(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&!!t,cacheTime:0})}function ek(e){return Ef(["smart-routing-simulate-condition-type-values",e],(function(){return fh.getInstance().getSmartRoutingSimulateConditionTypeValues(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function tk(e){var t=e.text,n=e.conditionType;return Ef(["smart-routing-search-condition-values",t,n],(function(){return fh.getInstance().getSmartRoutingSearchConditionValues(n,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!n&&!!t,cacheTime:0})}function nk(){return Ef(["smart-routing-conversion-rates"],(function(){return fh.getInstance().getProviderConversionRatesData().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!1,useErrorBoundary:!1})}function ok(){var e=this;return Ef({queryKey:["smart-routing-3ds-excemptions"],queryFn:function(){return t(e,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,fh.getInstance().get3DSExemptions()];case 1:return[2,e.sent().data]}}))}))},useErrorBoundary:!1})}function ak(e){return Ef(["fetch-routing-monitors-templates",e],(function(){return fh.getInstance().getRoutingMonitorsTemplates(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function ik(e,t){return Ef(["fetch-routing-monitors-template",e],(function(){return fh.getInstance().getRoutingMonitorsTemplate(e,t).then((function(e){return e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:!!e&&!!t&&"NONE"!==e,useErrorBoundary:!1})}function rk(e){var t=e.accountCode;return Ef(["checkouts",t],(function(){return fh.getInstance().getCheckouts({accountCode:t}).then((function(e){return e.data}))}),{cacheTime:0,enabled:Boolean(t)})}function sk(e){var t=e.accountCode;return Ef(["checkouts-template"],(function(){return fh.getInstance().getCheckoutTemplate({accountCode:t}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,enabled:Boolean(t)})}var ck=function(e){return["checkout-builder-name-and-icon",e.paymentMethodType,e.type]},uk=function(e,t){var n=e.paymentMethodType,o=e.type;return Ef(ck({paymentMethodType:n,type:o}),(function(){return fh.getInstance().getNameAndIcon({paymentMethodType:n,type:o}).then((function(e){return null==e?void 0:e.data}))}),t)},lk=function(e){return["checkout-builder-required-fields",e.paymentMethodType,e.type]},pk=function(e,t){var n=e.paymentMethodType,o=e.type;return Ef(lk({paymentMethodType:n,type:o}),(function(){return fh.getInstance().getRequiredFields({paymentMethodType:n,type:o}).then((function(e){return null==e?void 0:e.data}))}),t)};function dk(e){var t=e.accountCode;return Ef(["styling-theme",t],(function(){return fh.getInstance().getStylingTheme({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function mk(e){var t=e.accountCode;return Ef(["styling-settings",t],(function(){return fh.getInstance().getStylingSettings({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function hk(){return Ef(["fetch-profile"],(function(){return fh.getInstance().getProfile().then((function(e){var t=null==e?void 0:e.data;return t&&localStorage.setItem("user",JSON.stringify(t)),t})).catch((function(e){throw e}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function fk(e,t){return Ef(["fetch-permissions",e,t],(function(){var e,t,n,o=localStorage.getItem("account"),a=localStorage.getItem("user"),i=o&&JSON.parse(o),r=a&&JSON.parse(a);return((null==r?void 0:r.merlin)?null===(e=null==r?void 0:r.merlin)||void 0===e?void 0:e.permissions:null===(n=null===(t=null==i?void 0:i.value)||void 0===t?void 0:t.role)||void 0===n?void 0:n.permission_ids.map((function(e){return{permission_name:e,description:e,resource_server_name:e,resource_server_identifier:e}})))||[]}))}function gk(e){return Ef(["email-verification",e],(function(){return fh.getInstance().emailVerification(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function yk(e){return Ef(["login-sso",e],(function(){return fh.getInstance().getLoginSSO(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function vk(){return Ef({queryKey:["get-login-methods"],queryFn:function(){return fh.getInstance().getLoginMethods().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}})}function bk(e){return Ef(["notifications-customer",e],(function(){return fh.getInstance().getNotificationsCustomer(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,keepPreviousData:!1})}function kk(e){return Ef(["validate-opsgenie-key",e],(function(){return fh.getInstance().getValidateOpsgenieKey(e).then((function(e){return null==e?void 0:e.data})).catch((function(){return{error:!0}}))}),{enabled:!!e,cacheTime:0})}function xk(){return Ef(["notifications-merged"],(function(){return fh.getInstance().getMergedNotifications().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{keepPreviousData:!1,cacheTime:0})}function wk(e){return Ef(["notifications-account",e],(function(){return fh.getInstance().getNotificationsCustomer(e).then((function(e){return null==e?void 0:e.data}))}))}function jk(e){return Ef(["notifications-number",e],(function(){return fh.getInstance().getNotificationsNumber(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function Ck(){return Sf((function(e){return fh.getInstance().getNotificationsNumber(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Ek(){var e=this;return Sf((function(o){return t(e,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().pathNotification(o)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}}))}))}))}var Sk={key:"metadata_fields",name:"metadata_fields"};function _k(){return Ef(["reports"],(function(){return fh.getInstance().reportsList().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Rk(e){return void 0===e&&(e=!0),Ef(["reports-multi-env"],(function(){return fh.getInstance().reportsListMultiEnv().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e})}function Tk(e,t,n){return void 0===t&&(t=!1),Ef(["reports/".concat(e)],(function(){return fh.getInstance().downloadReports(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:t,onSuccess:n,useErrorBoundary:!1})}function Ik(e){return Ef(["GET/reports/templates"],(function(){return fh.getInstance().getReportTemplates().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e,useErrorBoundary:!1})}function Ok(t,n,o){return Ef(["GET/reports/columns/".concat(n,"/").concat(o)],(function(){return fh.getInstance().getReportColumns(n,o).then((function(t){return"ALL"===n&&"PAYMENTS"===o?e(e([],null==t?void 0:t.data,!0),[Sk],!1):null==t?void 0:t.data})).catch((function(e){return e}))}),{enabled:t,useErrorBoundary:!1})}function Ak(e){var o=this,a=Ov();return Ef(["getRefundPdf",e,a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,fh.getInstance().getRefundPdf(e,a).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))]}))}))}),{enabled:!!e&&!!a,useErrorBoundary:!1})}function zk(e){return Ef(["fetch-members"],(function(){return fh.getInstance().getMembers(e).then((function(e){return null==e?void 0:e.data}))}),{keepPreviousData:!0})}function Pk(e){var t=e.organizationCode,n=Ov();return Ef(["fetch-members-v3",t],(function(){return t?fh.getInstance().getMembersV3({organizationCode:n}).then((function(e){return null==e?void 0:e.data})):null}),{enabled:!!t,cacheTime:0})}function Lk(){var e=Ov();return Ef(["teams-filters-members"],(function(){return fh.getInstance().teamsFiltersMembers({organizationCode:e}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0})}function Dk(e){var t=e.organizationCode,n=e.accountCodes,o=Ov();return Ef(["fetch-members-v4",t,n],(function(){return n?t?fh.getInstance().getMembersV4({organizationCode:o,accountCodes:n}).then((function(e){return null==e?void 0:e.data})):null:{}}),{enabled:!!t&&!!n,cacheTime:0})}function qk(e){var t=e.organizationCode,n=e.accountCodes,o=Ov();return Ef(["fetch-post-members-v4",t,n],(function(){return fh.getInstance().postMembersV4({organizationCode:o,accountCodes:n}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&!!n,cacheTime:0})}function Nk(e){var t=e.organizationCode,n=e.accountCodes,o=e.page,a=e.pageSize,i=Ov();return Ef(["fetch-post-members-v4",t,n,o,a],(function(){return fh.getInstance().postMembersPaginated({organizationCode:i,accountCodes:n,page:o,pageSize:a}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&!!n,cacheTime:0,useErrorBoundary:!1})}function Mk(e){var t=e.organizationCode,n=e.accountCodes,o=e.email,a=e.page,i=e.pageSize,r=Ov();return Ef(["fetch-post-members-v2",t,n,o,a,i],(function(){return fh.getInstance().postMembersPaginatedV2({organizationCode:r,accountCodes:n,email:o,page:a,pageSize:i}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&!!n,cacheTime:0,useErrorBoundary:!1})}function Fk(){return Ef(["fetch-roles"],(function(){return fh.getInstance().getRoles().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Uk(){return Ef(["fetch-rolespermissions"],(function(){return fh.getInstance().getRolesPermissions().then((function(e){return null==e?void 0:e.data}))}))}function Bk(){return Ef(["fetch-permissions-catalog"],(function(){return fh.getInstance().getPermissionsCatalog().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Wk(e){return Ef(["data-report",e],(function(){return fh.getInstance().getSmartRoutingDataReport(e).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,useErrorBoundary:!1})}function Hk(e,t,n){return Ef(["data-insights",e],(function(){return("LOCAL"===process.env.ENVIRONMENT||"DEV"===process.env.ENVIRONMENT||localStorage.getItem("log_metrics"))&&(console.log("%c ".concat(e.key_metric),"background: #222; color: #bada55"),console.log(e)),fh.getInstance().getDashboardInsights(e).then((function(e){return null==e?void 0:e.data}))}),{keepPreviousData:n,enabled:!!e.account_code&&!!t&&!!e.key_metric&&"Empty"!==e.currency_code,cacheTime:0,useErrorBoundary:!1})}function Vk(e,t){return Ef(["get-isolated-metric",e],(function(){return fh.getInstance().getDashboardInsights(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e.account_code,cacheTime:0,keepPreviousData:t,useErrorBoundary:!1})}function Gk(e){return Ef(["get-insights-conversion-rate-metrics",e],(function(){return fh.getInstance().getInsightsMetricsConversionRate(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.enabled)&&void 0!==e.account_code,cacheTime:200,useErrorBoundary:!1})}function $k(e,t){return Ef(["get-insights-conversion-rate-metrics-v2",e,t],(function(){return fh.getInstance().getInsightsMetricsConversionRateV2(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!(null==e?void 0:e.enabled)&&void 0!==e.account_code,cacheTime:0,useErrorBoundary:!1})}function Kk(e,t){return Ef(["get-insights-conversion-rate-view-more-metrics",t,e],(function(){return fh.getInstance().getInsightsMetricsConversionRateViewMore(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.enabled)&&!!t,cacheTime:200,useErrorBoundary:!1})}function Qk(e){return Ef(["get-insights-conversion-rate-fallback-metrics",e],(function(){return fh.getInstance().getInsightFallbackMetrics(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.enabled),cacheTime:200,useErrorBoundary:!1})}function Jk(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Ef(["get-insights-volume-metrics",t,e],(function(){return fh.getInstance().getInsightsMetricsVolume(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function Yk(e,t,n,o){return void 0===o&&(o=!0),delete t.account_code,Ef(["get-insights-volume-metrics-v2",t,e,n],(function(){return fh.getInstance().getInsightsMetricsVolumeV2(e,n,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:o,cacheTime:200,useErrorBoundary:!1})}function Xk(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Ef(["get-insights-total-payment-fraud-metrics",t,e],(function(){return fh.getInstance().getInsightsMetricsTotalPaymentsAndFraud(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function Zk(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Ef(["get-insights-customer-payment-fraud-metrics",t,e],(function(){return fh.getInstance().getInsightsMetricsCustomerPaymentsAndFraud(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function ex(e){return Ef(["get-insights-overview",e],(function(){return fh.getInstance().getInsightOverview(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.enabled)&&void 0!==e.account_code,cacheTime:200,useErrorBoundary:!1})}function tx(e,t){var n=!!(null==e?void 0:e.enabled)&&void 0!==(null==e?void 0:e.account_code);return Ef(["get-insights-overview-v3",e,t],(function(){return fh.getInstance().getInsightOverviewV3(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:0,useErrorBoundary:!1})}function nx(e){return Ef(["get-insights-home-metrics",e],(function(){return fh.getInstance().getInsighstHomeMetrics(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.currency_code)&&!!(null==e?void 0:e.account_codes)&&!!(null==e?void 0:e.organization_code)&&(null==e?void 0:e.isLiveMode)&&!!(null==e?void 0:e.timezone),cacheTime:200,useErrorBoundary:!1})}function ox(e){return Ef(["get-insights-reports",e],(function(){return fh.getInstance().getInsightsReport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!(null==e?void 0:e.type),cacheTime:0,useErrorBoundary:!1})}function ax(e){return Ef(["get-insights-reports-again",e],(function(){return fh.getInstance().getInsightsReportAgain(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!(null==e?void 0:e.code),cacheTime:0,useErrorBoundary:!1})}function ix(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-fraud-screening-volume-and-count-tx",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsightsFraudScreeningVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function rx(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-fraud-screening-conversion-rate",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsightsFraudScreeningConversionRate(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function sx(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-3ds-volume-and-count-tx",o,e],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsights3dsVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function cx(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-3ds-conversion-rate-and-evolution",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsights3dsConversionRateAndEvolution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function ux(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-3ds-decline-reasons",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsights3dsDeclineReasons(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function lx(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-3ds-frictionless-vs-challenge",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsights3dsFrictionlessVsChallenge(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function px(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-chargebacks-volume-and-count-tx",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsightsChargebacksVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function dx(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-chargebacks-win-rate",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsightsChargebacksWinRate(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function mx(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-chargebacks-disputed",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsightsChargebacksDisputed(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function hx(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-chargebacks-by-provider-and-card-brand",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsightsChargebacksByProviderAndCardBrand(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function fx(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-chargebacks-reasons-distribution",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsightsChargebacksReasonsDistribution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function gx(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-chargebacks-status-distribution",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsightsChargebacksStatusDistribution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function yx(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-chargebacks-by-card-brand",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsightsChargebacksByCardBrand(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}var vx=function(e,o,i){return void 0===i&&(i={}),Ef(["conversion-rate-overview",e,o],(function(){return t(void 0,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsightsConversionRateOverview(o,e)];case 1:return[2,t.sent()]}}))}))}),a({useErrorBoundary:!1},i))},bx=function(e,o,i){return void 0===i&&(i={}),Ef(["conversion-rate-overview-fraud-3ds",e,o],(function(){return t(void 0,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsightsConversionRateOverviewFraud3ds(o,e)];case 1:return[2,t.sent()]}}))}))}),a({useErrorBoundary:!1},i))};function kx(e,t){return Ef(["fetch-reconciliation-transaction",e],(function(){return fh.getInstance().getReconciliationTransactions(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t,useErrorBoundary:!1})}function xx(e,t){return Ef(["fetch-reconciliation-settlements",e],(function(){return fh.getInstance().getReconciliationSettlements(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t,useErrorBoundary:!1})}function wx(e,t){return Ef(["fetch-reconciliation-settlements-header",e],(function(){return fh.getInstance().getReconciliationSettlementsHeader(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t,cacheTime:500})}function jx(e,t){return Ef(["fetch-reconciliation-settlements-body",e],(function(){return fh.getInstance().getReconciliationSettlementsBody(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t,cacheTime:500})}function Cx(e,t){return Ef(["fetch-reconciliation-metrics",e],(function(){return fh.getInstance().getReconciliationMetrics(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t,cacheTime:500})}function Ex(){return Ef(["GET-reconciliation-filters"],(function(){return fh.getInstance().getReconciliationFilters().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Sx(e){return Ef(["GET/v1/reconciliation/table/".concat(e,"/columns")],(function(){return fh.getInstance().getAllTableColumns(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function _x(){return Ef(["GET/v1/reconciliation/active"],(function(){return fh.getInstance().getReconciliationActive().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Rx(e,t,n){return Ef(["GET/reconciliation/reports/columns/".concat(t,"/").concat(n)],(function(){return fh.getInstance().getReconciliationsReportColumns(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{enabled:e,useErrorBoundary:!1})}function Tx(e){return Ef(["GET/reconciliation/reports/templates"],(function(){return fh.getInstance().getReconciliationReportTemplates().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{enabled:e,useErrorBoundary:!1})}function Ix(e){var t=e.body,n=e.params,o=e.enabled;return Ef(["GET/reconciliation/alerts/list",t,n],(function(){return fh.getInstance().getReconciliationAlerts(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Ox(e){var t=e.body,n=e.params,o=e.enabled;return Ef(["GET/reconciliation/agenda/list",t,n],(function(){return fh.getInstance().getReconciliationAgenda(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Ax(e){var t=e.body,n=e.params,o=e.enabled;return Ef(["GET/reconciliation/agenda/insights",t,n],(function(){return fh.getInstance().getReconciliationAgendaInsightByKey(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function zx(e){var t=e.body,n=e.params,o=e.enabled;return Ef(["GET/reconciliation/sales/list",t,n],(function(){return fh.getInstance().getReconciliationSales(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Px(e){var t=e.body,n=e.params,o=e.enabled;return Ef(["GET/reconciliation/advancements/list",t,n],(function(){return fh.getInstance().getReconciliationAdvancements(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Lx(e){var t=e.body,n=e.params,o=e.enabled;return Ef(["GET/reconciliation/fees/list",t,n],(function(){return fh.getInstance().getReconciliationFees(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Dx(e){var o=this,a=Object.values(e).filter(Boolean);return Ef(["feature-flags",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,fh.getInstance().getFeatureFlagId(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:a.length>1,useErrorBoundary:!1})}var qx=["FRAUD_INSIGHTS","STARROCKS_OVERVIEW_INSIGHTS","SHOW-BR-TABS","RECONCILIATION-TABS-V2","SHOW-RECON-FEES-TAB"];function Nx(e){var o=this,a=Ef({queryKey:["all-feature-flags",Object.values(e).filter(Boolean)],queryFn:function(){return t(o,void 0,void 0,(function(){var t,o;return n(this,(function(n){return t=fh.getInstance(),o={names:qx,body:e},[2,t.getFeatureFlagIdAll(o).then((function(e){return null==e?void 0:e.data}))]}))}))},enabled:!!e.account_code&&!!e.organization_code&&!!e.email,useErrorBoundary:!1}),i=bf();return C((function(){i.setQueryData(["cached-feature-flags"],a)}),[a,i]),a}function Mx(e){var t=bf();return Ef({queryKey:["cached-feature-flags"],queryFn:function(){},enabled:!1,select:function(t){var n;return{result:null===(n=t.data)||void 0===n?void 0:n[e]}},initialData:function(){var e=t.getQueryData(["cached-feature-flags"]);return(null==e?void 0:e.data)||{}}})}function Fx(e){return Ef(["events",e],(function(){return fh.getInstance().getAuditEvents(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e.account_code&&!!e.organizationCode,cacheTime:0,keepPreviousData:!0,useErrorBoundary:!1})}function Ux(e){return Ef(["audit-monitor-event-detail",e],(function(){return fh.getInstance().getAuditMonitorDetail(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:null!==e,cacheTime:0,useErrorBoundary:!1})}function Bx(e,t){return Ef(["fetch-payment-links",e,t],(function(){return fh.getInstance().getPaymentLinks(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,cacheTime:0})}function Wx(e){return Ef(["payment-link"],(function(){return fh.getInstance().getPaymentLinksByCode(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function Hx(e){var t=e.accountCode;return Ef(["products"],(function(){return fh.getInstance().getProductsByAccount({accountCode:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t})}function Vx(e,t){return Ef(["fetch-payments-by-link-code",e],(function(){return fh.getInstance().getPaymentsByPaymentLink(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e})}function Gx(e){return void 0===e&&(e=!0),Ef(["countries",e],(function(){return fh.getInstance().useGetCountriesConfig().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e,keepPreviousData:!0})}function $x(e){return Ef(["timezone"],(function(){return fh.getInstance().getTimezone(e).then((function(e){return Xm(e)?nh:null==e?void 0:e.data})).catch((function(){return nh}))}),{enabled:!0,keepPreviousData:!0})}function Kx(e){return Sf((function(e){var t=e.payload;return fh.getInstance().firebaseUserSubscribe(t)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Qx(e,t){return Ef(["get-cofig-allow-list",e],(function(){return fh.getInstance().getConfigAllowlist(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!e&&!!t})}function Jx(e){return Ef(["get-black-list",e],(function(){return fh.getInstance().getBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!e})}function Yx(e,t,n,o){var a;return Ef(["post-black-list",e],(function(){return fh.getInstance().postBlockList(e,null!=t?t:"",null!=n?n:0,null!=o?o:25).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:(null===(a=e[0])||void 0===a?void 0:a.length)>0&&null!==t,useErrorBoundary:!1})}function Xx(e){return Ef(["get-one-black-list",e],(function(){return fh.getInstance().getOneBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function Zx(e,t,n){return Ef(["get-block-list-summary",e,t,n],(function(){var o=fh.getInstance();return n?o.getBlackListSummary(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e})):Promise.resolve({})}),{enabled:!!e&&!!n})}function ew(e,t,n,o,a,i){return Ef(["black-list-detail",e,t,o,a,i],(function(){return fh.getInstance().getBlacklistDetail(e,t,n,o,a).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&i,cacheTime:0})}function tw(e,t,n){return Ef(["allow-list-detail",e],(function(){return fh.getInstance().getAllowlistDetail(e,t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{enabled:!!e&&!!n})}function nw(e){return Ef(["query-post-get-allowlist-multi-account",JSON.stringify(e)],(function(){return fh.getInstance().postGetAllowlist({payload:e}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function ow(e,o){var a=this;return void 0===e&&(e=26),void 0===o&&(o=0),Ef(["batch-refunds",e,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,fh.getInstance().getBatchRefunds(e,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{cacheTime:0})}function aw(e){return Ef(["velocity-rules",e],(function(){var t=fh.getInstance();return e?t.getVelocityRules(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e})):Promise.resolve({})}),{enabled:!!e,keepPreviousData:!0})}function iw(){return Ef(["config-rules"],(function(){return fh.getInstance().getAllConfigRules().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0})}function rw(e,t){var n=e.organizationCode;return Ef(["mfa-excluded-users",n],(function(){return fh.getInstance().getMFAExcludedUsers({organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function sw(e,t){var n=e.organizationCode;return Ef(["mfa-config",n],(function(){return fh.getInstance().getMFAConfig({organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function cw(e,t){return Ef(["mfa-enforcement-status",e.accountCode],(function(){return fh.getInstance().getMFAEnforcementStatus().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function uw(e){return Ef(["fetch-organization-saml-config",e],(function(){return fh.getInstance().getSamlConfig().then((function(e){return e.data}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function lw(e){return Ef(["chartgpt-chart-execute",e],(function(){return fh.getInstance().executeChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e})}function pw(){return Ef(["chartgpt-user-charts"],(function(){return fh.getInstance().getChartsByUser().then((function(e){return null==e?void 0:e.data}))}))}function dw(){var e=this;return Ef(["chartgpt-user-charts-with-results"],(function(){return t(e,void 0,void 0,(function(){var e,o,i,r=this;return n(this,(function(s){switch(s.label){case 0:return[4,(e=fh.getInstance()).getChartsByUser()];case 1:return o=s.sent(),i=(null==o?void 0:o.data)||[],[4,Promise.all(i.map((function(o){return t(r,void 0,void 0,(function(){var t,i,r;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e.executeChartGPTChart(o.chartgpt_id)];case 1:return t=n.sent(),[2,a(a({},o),{results:(null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.results)||[]})];case 2:return i=n.sent(),console.error("Failed to execute chart ".concat(o.chartgpt_id,":"),i),[2,a(a({},o),{results:[]})];case 3:return[2]}}))}))})))];case 2:return[2,s.sent()]}}))}))}))}function mw(){return mw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},mw.apply(this,arguments)}
|
|
223
|
+
*/"production"===process.env.NODE_ENV?lf.exports=function(){if(uf)return pf;uf=1;var e=x,t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useState,o=e.useEffect,a=e.useLayoutEffect,i=e.useDebugValue;function r(e){var n=e.getSnapshot;e=e.value;try{var o=n();return!t(e,o)}catch(e){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var s=t(),c=n({inst:{value:s,getSnapshot:t}}),u=c[0].inst,l=c[1];return a((function(){u.value=s,u.getSnapshot=t,r(u)&&l({inst:u})}),[e,s,t]),o((function(){return r(u)&&l({inst:u}),e((function(){r(u)&&l({inst:u})}))}),[e]),i(s),s};return pf.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:s,pf}():lf.exports=(df||(df=1,"production"!==process.env.NODE_ENV&&function(){function e(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!n(e,o)}catch(e){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=x,n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=t.useState,a=t.useEffect,i=t.useLayoutEffect,r=t.useDebugValue,s=!1,c=!1,u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(u,l){s||void 0===t.startTransition||(s=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var p=l();if(!c){var d=l();n(p,d)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}var m=(d=o({inst:{value:p,getSnapshot:l}}))[0].inst,h=d[1];return i((function(){m.value=p,m.getSnapshot=l,e(m)&&h({inst:m})}),[u,p,l]),a((function(){return e(m)&&h({inst:m}),u((function(){e(m)&&h({inst:m})}))}),[u]),r(p),p};mf.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:u,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),mf);var hf=lf.exports;const ff=hf.useSyncExternalStore,gf=k.createContext(void 0),yf=k.createContext(!1);function vf(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=gf),window.ReactQueryClientContext):gf)}const bf=({context:e}={})=>{const t=k.useContext(vf(e,k.useContext(yf)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},kf=({client:e,children:t,context:n,contextSharing:o=!1})=>{k.useEffect((()=>(e.mount(),()=>{e.unmount()})),[e]),"production"!==process.env.NODE_ENV&&o&&e.getLogger().error("The contextSharing option has been deprecated and will be removed in the next major version");const a=vf(n,o);return k.createElement(yf.Provider,{value:!n&&o},k.createElement(a.Provider,{value:e},t))},xf=k.createContext(!1);xf.Provider;const wf=k.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function jf(e,t){return"function"==typeof e?e(...t):!!e}function Cf(e,t){const n=bf({context:e.context}),o=k.useContext(xf),a=k.useContext(wf),i=n.defaultQueryOptions(e);i._optimisticResults=o?"isRestoring":"optimistic",i.onError&&(i.onError=$h.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=$h.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=$h.batchCalls(i.onSettled)),(e=>{e.suspense&&"number"!=typeof e.staleTime&&(e.staleTime=1e3)})(i),((e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))})(i,a),(e=>{k.useEffect((()=>{e.clearReset()}),[e])})(a);const[r]=k.useState((()=>new t(n,i))),s=r.getOptimisticResult(i);if(ff(k.useCallback((e=>{const t=o?()=>{}:r.subscribe($h.batchCalls(e));return r.updateResult(),t}),[r,o]),(()=>r.getCurrentResult()),(()=>r.getCurrentResult())),k.useEffect((()=>{r.setOptions(i,{listeners:!1})}),[i,r]),((e,t,n)=>(null==e?void 0:e.suspense)&&((e,t)=>e.isLoading&&e.isFetching&&!t)(t,n))(i,s,o))throw((e,t,n)=>t.fetchOptimistic(e).then((({data:t})=>{null==e.onSuccess||e.onSuccess(t),null==e.onSettled||e.onSettled(t,null)})).catch((t=>{n.clearReset(),null==e.onError||e.onError(t),null==e.onSettled||e.onSettled(void 0,t)})))(i,r,a);if((({result:e,errorResetBoundary:t,useErrorBoundary:n,query:o})=>e.isError&&!t.isReset()&&!e.isFetching&&jf(n,[e.error,o]))({result:s,errorResetBoundary:a,useErrorBoundary:i.useErrorBoundary,query:r.getCurrentQuery()}))throw s.error;return i.notifyOnChangeProps?s:r.trackResult(s)}function Ef(e,t,n){return Cf(xh(e,t,n),nf)}function Sf(e,t,n){const o=function(e,t,n){return Ph(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}(e,t,n),a=bf({context:o.context}),[i]=k.useState((()=>new cf(a,o)));k.useEffect((()=>{i.setOptions(o)}),[i,o]);const r=ff(k.useCallback((e=>i.subscribe($h.batchCalls(e))),[i]),(()=>i.getCurrentResult()),(()=>i.getCurrentResult())),s=k.useCallback(((e,t)=>{i.mutate(e,t).catch(_f)}),[i]);if(r.error&&jf(i.options.useErrorBoundary,[r.error]))throw r.error;return{...r,mutate:s,mutateAsync:r.mutate}}function _f(){}function Rf(e){return Sf((function(e){var t=e.payload,n=e.accountCode;return fh.getInstance().postWebhook({payload:t,accountCode:n})}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Tf(e){return Sf((function(e){var t=e.payload,n=e.accountCode;return fh.getInstance().postWebhookV2({payload:t,accountCode:n})}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function If(e){return Sf((function(e){var t=e.payload;return fh.getInstance().postWebhookV2MultiAccount({payload:t})}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Of(e){return Sf((function(e){var t=e.code;return fh.getInstance().deleteWebhook(t)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Af(e){return Sf((function(e){var t=e.code,n=e.accountCode;return fh.getInstance().deleteWebhookV2(t,n)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function zf(e){return Sf((function(e){var t=e.code,n=e.payload;return fh.getInstance().updateWebhook(t,n)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Pf(e){return Sf((function(e){var t=e.code,n=e.payload,o=e.accountCode;return fh.getInstance().updateWebhookV2(t,n,o)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Lf(){return Sf((function(e){var t=e.name,n=e.principal;return fh.getInstance().postAccount(t,n)}))}function Df(){return Sf((function(e){var t=e.name,n=e.code,o=e.principal;return fh.getInstance().patchAccount({name:t,code:n,principal:o})}))}function qf(){return Sf((function(e){var t=e.name,n=e.code,o=e.principal;return fh.getInstance().patchAccountV2({name:t,code:n,principal:o})}))}function Nf(){return Sf((function(e){var t=e.account_code;return fh.getInstance().putAccountPrincipal({account_code:t})}))}function Mf(){return Sf((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return fh.getInstance().putAccountsUser(t,n,o)}))}function Ff(){return Sf((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return fh.getInstance().putAccountsUserMassive(t,n,o)}))}function Uf(){return Sf((function(e){var t=e.organizationCode,n=e.userCode,o=e.payload;return fh.getInstance().deleteAccountsUserMassive(t,n,o)}))}function Bf(){return Sf(["post-validate-status-connection"],(function(e){var t=e.payload,n=e.accountCode;return fh.getInstance().postValidateStatusConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Wf(){return Sf(["post-change-status-connection"],(function(e){var t=e.payload,n=e.accountCode;return fh.getInstance().postChangeStatusConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Hf(){return Sf((function(e){return fh.getInstance().putCosts(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Vf(){return Sf(["post-connection"],(function(e){var t=e.payload,n=e.accountCode;return fh.getInstance().postConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Gf(){return Sf(["post-connection"],(function(e){var t=e.payload;return fh.getInstance().postMultiConnection({payload:t}).then((function(e){return null==e?void 0:e.data}))}))}function $f(){return Sf(["new-post-connection"],(function(e){var t=e.payload,n=e.accountCode;return fh.getInstance().newPostConnection({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Kf(){return Sf(["new-post-connection-validate"],(function(){return fh.getInstance().postMultiConnectionValidate().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Qf(){return Sf(["patch-connection"],(function(e){var t=e.payload,n=e.connectionCode;return fh.getInstance().patchConnection({payload:t,connectionCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Jf(){return Sf(["delete-connection"],(function(e){return fh.getInstance().deleteConnection(e).then((function(e){return null==e?void 0:e.data}))}))}function Yf(){return Sf(["auth-connection"],(function(e){var t=e.payload,n=e.connectionCode;return fh.getInstance().postArchiveConnection({payload:t,connectionCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Xf(){return Sf((function(e){var t=e.payload;return fh.getInstance().postDefaultRoutes({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function Zf(){return Sf((function(e){return fh.getInstance().postValidateCredentials(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}))}function eg(){return Sf(["patch-organizations"],(function(){return fh.getInstance().updateOrganizationStatus().then((function(e){return null==e?void 0:e.data}))}))}function tg(){return Sf((function(e){return fh.getInstance().getOrgByName(e).then((function(e){return null==e?void 0:e.data}))}))}function ng(e){var o=this;return Sf((function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().changePassword(e).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,t.sent()]}}))}))}))}function og(){var e=this;return Sf((function(o){return t(e,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,fh.getInstance().changePasswordV2(o).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}))}function ag(e){return Sf((function(e){return fh.getInstance().updateProfile(e)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function ig(){return Sf((function(e){return fh.getInstance().inviteUsers(e)}))}function rg(){return Sf((function(e){return fh.getInstance().inviteUsersV2(e,e.organizationCode)}))}function sg(){return Sf((function(e){return fh.getInstance().inviteUsersMassive(e,e.organizationCode)}))}function cg(){return Sf((function(e){var t=e.userCode;return fh.getInstance().unInviteUsers({userCode:t})}))}function ug(){return Sf((function(e){var t=e.userCode,n=e.organizationCode;return fh.getInstance().unInviteUsersV2({userCode:t,organizationCode:n})}))}function lg(){return Sf((function(e){return fh.getInstance().createUserAuth0(e)}))}function pg(){return Sf((function(e){return fh.getInstance().postCall(e)}))}function dg(){return Sf((function(e){return fh.getInstance().changeLoginMethods(e)}))}function mg(){return Sf((function(e){var t=e.paymentMethod,n=e.checkoutCode;return fh.getInstance().updateIsActivePaymentMethod(n,t).then((function(e){return null==e?void 0:e.data}))}))}function hg(e){return Sf((function(e){return fh.getInstance().updateIsActiveCheckout(e)}),e)}function fg(){return Sf((function(e){var t=e.accountCode,n=e.template;return fh.getInstance().updateCheckoutTemplate({accountCode:t,template:n}).then((function(e){return null==e?void 0:e.data}))}))}function gg(){return Sf((function(e){var t=e.accountCode,n=e.theme;return fh.getInstance().updateStylingTheme({accountCode:t,theme:n}).then((function(e){return null==e?void 0:e.data}))}))}function yg(){return Sf((function(e){var t=e.payload,n=e.transactionId,o=e.paymentId,a=e.action;return fh.getInstance().createOperationTransaction(t,n,o,a)}))}function vg(){return Sf((function(e){var t=e.payload,n=e.paymentId,o=e.transactionId,a=e.handleSetProgress;return fh.getInstance().uploadChargebacks(t,n,o,a)}))}var bg=new Jh({}),kg=new class{constructor(e={}){this.queryCache=e.queryCache||new Jh,this.mutationCache=e.mutationCache||new Zh,this.logger=e.logger||Gh,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0,"production"!==process.env.NODE_ENV&&e.logger&&this.logger.error("Passing a custom logger has been deprecated and will be removed in the next major version.")}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=Nh.subscribe((()=>{Nh.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())})),this.unsubscribeOnline=Fh.subscribe((()=>{Fh.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())})))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[n]=wh(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}ensureQueryData(e,t,n){const o=xh(e,t,n),a=this.getQueryData(o.queryKey);return a?Promise.resolve(a):this.fetchQuery(o)}getQueriesData(e){return this.getQueryCache().findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const o=this.queryCache.find(e),a=function(e,t){return"function"==typeof e?e(t):e}(t,null==o?void 0:o.state.data);if(void 0===a)return;const i=xh(e),r=this.defaultQueryOptions(i);return this.queryCache.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return $h.batch((()=>this.getQueryCache().findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,n)]))))}getQueryState(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}removeQueries(e,t){const[n]=wh(e,t),o=this.queryCache;$h.batch((()=>{o.findAll(n).forEach((e=>{o.remove(e)}))}))}resetQueries(e,t,n){const[o,a]=wh(e,t,n),i=this.queryCache,r={type:"active",...o};return $h.batch((()=>(i.findAll(o).forEach((e=>{e.reset()})),this.refetchQueries(r,a))))}cancelQueries(e,t,n){const[o,a={}]=wh(e,t,n);void 0===a.revert&&(a.revert=!0);const i=$h.batch((()=>this.queryCache.findAll(o).map((e=>e.cancel(a)))));return Promise.all(i).then(vh).catch(vh)}invalidateQueries(e,t,n){const[o,a]=wh(e,t,n);return $h.batch((()=>{var e,t;if(this.queryCache.findAll(o).forEach((e=>{e.invalidate()})),"none"===o.refetchType)return Promise.resolve();const n={...o,type:null!=(e=null!=(t=o.refetchType)?t:o.type)?e:"active"};return this.refetchQueries(n,a)}))}refetchQueries(e,t,n){const[o,a]=wh(e,t,n),i=$h.batch((()=>this.queryCache.findAll(o).filter((e=>!e.isDisabled())).map((e=>{var t;return e.fetch(void 0,{...a,cancelRefetch:null==(t=null==a?void 0:a.cancelRefetch)||t,meta:{refetchPage:o.refetchPage}})}))));let r=Promise.all(i).then(vh);return null!=a&&a.throwOnError||(r=r.catch(vh)),r}fetchQuery(e,t,n){const o=xh(e,t,n),a=this.defaultQueryOptions(o);void 0===a.retry&&(a.retry=!1);const i=this.queryCache.build(this,a);return i.isStaleByTime(a.staleTime)?i.fetch(a):Promise.resolve(i.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(vh).catch(vh)}fetchInfiniteQuery(e,t,n){const o=xh(e,t,n);return o.behavior=ef(),this.fetchQuery(o)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(vh).catch(vh)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const n=this.queryDefaults.find((t=>Sh(e)===Sh(t.queryKey)));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find((t=>_h(e,t.queryKey)));if("production"!==process.env.NODE_ENV){this.queryDefaults.filter((t=>_h(e,t.queryKey))).length>1&&this.logger.error("[QueryClient] Several query defaults match with key '"+JSON.stringify(e)+"'. The first matching query defaults are used. Please check how query defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetquerydefaults.")}return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){const n=this.mutationDefaults.find((t=>Sh(e)===Sh(t.mutationKey)));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find((t=>_h(e,t.mutationKey)));if("production"!==process.env.NODE_ENV){this.mutationDefaults.filter((t=>_h(e,t.mutationKey))).length>1&&this.logger.error("[QueryClient] Several mutation defaults match with key '"+JSON.stringify(e)+"'. The first matching mutation defaults are used. Please check how mutation defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetmutationdefaults.")}return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=Eh(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}({defaultOptions:{queries:{refetchOnWindowFocus:!1,refetchOnReconnect:!1,retry:!1,staleTime:3e5,useErrorBoundary:!0}},queryCache:bg});function xg(){return Sf((function(e){return fh.getInstance().createReport(e).then((function(e){return null==e?void 0:e.data}))}))}function wg(){return Sf((function(e){return fh.getInstance().createReconciliationsReportV2(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function jg(){return Sf((function(e){return fh.getInstance().createReportV2(e).then((function(e){return null==e?void 0:e.data}))}))}function Cg(){return Sf((function(e){return fh.getInstance().getTotalRowsForExport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Eg(){return Sf((function(e){return fh.getInstance().cancelReport(e).then((function(e){return null==e?void 0:e.data}))}))}function Sg(o){var a=this;return Sf((function(){return t(a,void 0,void 0,(function(){return n(this,(function(e){return[2,fh.getInstance().createReportTemplate(o).then((function(e){return null==e?void 0:e.data}))]}))}))}),{onMutate:function(o){return t(a,void 0,void 0,(function(){var t;return n(this,(function(n){switch(n.label){case 0:return[4,kg.cancelQueries({queryKey:["GET/reports/templates"]})];case 1:return n.sent(),t=kg.getQueryData(["GET/reports/templates"]),kg.setQueryData(["GET/reports/templates"],(function(t){return e(e([],t,!0),[o],!1)})),[2,{previousTemplates:t}]}}))}))},onError:function(e,t,n){kg.setQueryData(["GET/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){kg.invalidateQueries({queryKey:["GET/reports/templates"]})}})}function _g(e){return Sf((function(){return fh.getInstance().updateReportTemplate(e).then((function(e){return null==e?void 0:e.data}))}))}function Rg(e,o,a){var i=this;return void 0===a&&(a=null),Sf((function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().postSmartRoutingCreateWorkflow(e,o).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,t.sent()]}}))}))}),a)}function Tg(e,o){var a=this,i=e.versionCode,r=e.accountCode,s=e.organizationCode;return void 0===o&&(o=null),Sf((function(){return t(a,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,fh.getInstance().postSmartRoutingPublishVersion(r,i,s).then((function(e){return null==e?void 0:e.data}))];case 1:return[2,e.sent()]}}))}))}),o)}function Ig(){return Sf(["validate-connection"],(function(e){var t=e.connectionCode;return fh.getInstance().postSmartRoutingValidateConnection(t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Og(e,t){var n=e.data,o=e.accountCode;return void 0===t&&(t=null),Sf((function(){return fh.getInstance().putSmartRoutingUpdateWorkflow(o,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),t)}function Ag(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Sf((function(){return fh.getInstance().deleteSmartRoutingVersion(o,n).then((function(e){return null==e?void 0:e.data}))}),t)}function zg(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Sf((function(){return fh.getInstance().postSmartRoutingDuplicateVersion(o,n).then((function(e){return null==e?void 0:e.data}))}),t)}function Pg(e,t){var n=e.paymentMethod,o=e.active,a=e.accountCode;return void 0===t&&(t=null),Sf((function(){return fh.getInstance().putSmartRoutingToggleMethod(a,n,o).then((function(e){return null==e?void 0:e.data}))}),t)}function Lg(e,t){var n=e.declinedId,o=e.accountCode;return void 0===t&&(t=null),Sf((function(e){return void 0===e&&(e=null),fh.getInstance().updateSmartRoutingDeclinedGroup(o,n,e).then((function(e){return null==e?void 0:e.data}))}),t)}function Dg(e){var t=e.accountCode;return Sf((function(e){return void 0===e&&(e=null),fh.getInstance().createSmartRoutingDeclinedGroup(t,e).then((function(e){return null==e?void 0:e.data}))}),e.options)}function qg(e){var t=e.accountCode;return Sf((function(e){return void 0===e&&(e=null),fh.getInstance().updateSmartRoutingTutorial(t,e||"").then((function(e){return null==e?void 0:e.data}))}),e.options)}function Ng(e,t){var n=e.versionCode,o=e.accountCode;return void 0===t&&(t=null),Sf((function(e){return void 0===e&&(e=!1),fh.getInstance().updateSmartRoutingFavorite(o,n,e).then((function(e){return null==e?void 0:e.data}))}),t)}function Mg(e,t){var n=e.code,o=e.name,a=e.accountCode;return void 0===t&&(t=null),Sf((function(){return fh.getInstance().putSmartRoutingUpdateWorkflowName(a,{code:n,name:o}).then((function(e){return null==e?void 0:e.data}))}),t)}function Fg(e,t){var n=e.accountCode,o=e.workflowVersionCode;return void 0===t&&(t=null),Sf((function(e){return fh.getInstance().simulateSmartRoutingTransaction(n,o,e).then((function(e){return null==e?void 0:e.data}))}),t)}function Ug(e,t){return void 0===t&&(t=null),Sf((function(t){return fh.getInstance().updateMonitorRedistribution(e,t).then((function(e){return null==e?void 0:e.data}))}),t)}function Bg(e,t){return void 0===t&&(t={}),Sf((function(t){var n=t.declinedGroupCode;return fh.getInstance().removeDeclinedGroup(e,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),a(a({},t),{useErrorBoundary:!1}))}function Wg(e,t){return void 0===t&&(t={}),Sf((function(t){var n=t.payload;return fh.getInstance().multiAccountDeclinedGroupCreate(e,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),a(a({},t),{useErrorBoundary:!1}))}var Hg=function(e){return Sf((function(t){return fh.getInstance().createMonitorThreshold(t,e).then((function(e){return e.data}))}))},Vg=function(e){return Sf((function(t){return fh.getInstance().createMonitorTemplate(t,e).then((function(e){return e.data}))}))};function Gg(e){return Sf((function(){return fh.getInstance().createNotificacion(e).then((function(e){return null==e?void 0:e.data}))}))}function $g(){return Sf((function(){return fh.getInstance().getNotification().then((function(e){return null==e?void 0:e.data}))}))}function Kg(){return Sf((function(e){var t=e.payload;return fh.getInstance().postSlackMessageChannel(t).then((function(e){return null==e?void 0:e.data}))}))}function Qg(){var e=this;return Sf((function(o){var a=o.roles,i=o.userCode;return t(e,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().setRoles({roles:a,userCode:i})];case 1:return[2,null==(e=t.sent())?void 0:e.data]}}))}))}))}function Jg(){var e=this;return Sf((function(o){var a=o.userCode;return t(e,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().deleteUserTeam({userCode:a})];case 1:return[2,null==(e=t.sent())?void 0:e.data]}}))}))}))}function Yg(){return Sf((function(e){var t=e.userCode,n=e.organizationCode;return fh.getInstance().deleteUserTeamV2({userCode:t,organizationCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function Xg(){return Sf((function(){return fh.getInstance().setCustodian().then((function(e){return null==e?void 0:e.data}))}))}function Zg(){return Sf((function(e){var t=e.payload,n=e.accountCode;return fh.getInstance().createRoles(t,n).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function ey(){var e=this;return Sf((function(o){var a=o.payload,i=o.id,r=o.accountCode;return t(e,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().editRoles({payload:a,id:i},r)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}}))}))}),{useErrorBoundary:!1})}function ty(){return Sf((function(e){return fh.getInstance().deleteRoles(e).then((function(e){return null==e?void 0:e.data}))}))}function ny(){return Sf(["post-payment-links"],(function(e){var t=e.payload,n=e.accountCode;return fh.getInstance().postPaymentLinks({payload:t,accountCode:n}).then((function(e){return null==e?void 0:e.data}))}))}function oy(){return Sf(["post-products-account"],(function(e){var t=e.payload;return fh.getInstance().postCreateProducts({payload:t}).then((function(e){return null==e?void 0:e.data}))}))}function ay(){return Sf(["post-delete-payment-link"],(function(e){var t=e.code;return fh.getInstance().postDeletePaymentLink({code:t}).then((function(e){return null==e?void 0:e.data}))}))}function iy(){return Sf(["patch-payment-links"],(function(e){var t=e.payload,n=e.accountCode,o=e.paymentLinkCode;return fh.getInstance().patchPaymentLinks({payload:t,accountCode:n,paymentLinkCode:o}).then((function(e){return null==e?void 0:e.data}))}))}function ry(e){return Sf((function(){return fh.getInstance().postValidatePassword(e).then((function(e){return null==e?void 0:e.data}))}))}function sy(){return Sf((function(e){var t=e.payload;return fh.getInstance().postUserSettings(t)}),{onMutate:function(e){return e}})}function cy(){return Sf((function(e){return fh.getInstance().postUserThemeSettings(e)}))}function uy(){return Sf((function(e){var t=e.payload,n=e.section;return fh.getInstance().postUserSettingsTables(t,n)}),{onMutate:function(e){return e},onSuccess:function(e){var t=kg.getQueryData(["fetch-profile"]);e.data&&kg.setQueryData(["fetch-profile"],a(a({},t),{settings:e.data}))}})}function ly(e){return Sf(["pinned-sections"],(function(e){var t=e.payload;return fh.getInstance().postUserSettingsPinned(t)}),{onMutate:function(t){var n=t.payload;return e({payload:n})}})}function py(){return Sf((function(e){var t=e.password,n=e.otp;return fh.getInstance().getMfaTokenValidation(t,n).then((function(e){return null==e?void 0:e.data}))}))}function dy(e){return Sf((function(){return fh.getInstance().getMfaToken(e).then((function(e){return null==e?void 0:e.data}))}))}function my(){return Sf((function(){return fh.getInstance().getEmailOtp().then((function(e){return null==e?void 0:e.data}))}))}function hy(e){return Sf((function(){return fh.getInstance().validateOtp(e).then((function(e){return null==e?void 0:e.data}))}))}function fy(){return Sf((function(e){return fh.getInstance().confirmMfaOtp(e).then((function(e){return null==e?void 0:e.data}))}))}function gy(e){return Sf((function(){return fh.getInstance().confirmMfaOtp(e).then((function(e){return null==e?void 0:e.data}))}))}function yy(e){return Sf((function(){return fh.getInstance().unrollMfa(e).then((function(e){return null==e?void 0:e.data}))}))}function vy(){return Sf((function(e){return fh.getInstance().unrollMfa(e).then((function(e){return null==e?void 0:e.data}))}))}function by(){return Sf((function(){return fh.getInstance().sendOTPForMFA().then((function(e){return null==e?void 0:e.data}))}))}function ky(){return Sf((function(){return fh.getInstance().getMFAStatus().then((function(e){return null==e?void 0:e.data}))}))}function xy(){return Sf((function(){return fh.getInstance().validatePasswordStatus().then((function(e){return null==e?void 0:e.data})).catch((function(e){return{valid:!1}}))}))}function wy(){return Sf(["post-get-allowlist-items"],(function(e){var t=e.payload;return fh.getInstance().postAllowlistItems({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function jy(){return Sf(["post-get-allowlist-multi-account"],(function(e){var t=e.payload;return fh.getInstance().postGetAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Cy(){return Sf(["post-create-allowlist-multi-account"],(function(e){var t=e.payload;return fh.getInstance().postCreateAllowlistMultiAccount({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Ey(){return Sf(["patch-change-status-allowlist"],(function(e){var t=e.payload;return fh.getInstance().patchChangeStatusAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Sy(){return Sf(["patch-change-status-allowlist-item"],(function(e){var t=e.payload;return fh.getInstance().patchChangeStatusAllowlistItem({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function _y(){return Sf(["post-add-allowlist-items"],(function(e){var t=e.payload;return fh.getInstance().patchAddAllowlistItems({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Ry(){return Sf(["patch-allowlist"],(function(e){var t=e.payload;return fh.getInstance().patchAllowlist({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Ty(){return Sf(["post-blacklist-multi-account"],(function(e){var t=e.payload;return fh.getInstance().postBlackListMultiAccount({payload:t}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Iy(){return Sf(["post-blacklist"],(function(e){var t=e.payload;return fh.getInstance().postBlackListType({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Oy(){return Sf(["put-blacklist"],(function(e){return fh.getInstance().putBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Ay(){return Sf(["change-blacklist"],(function(e){return fh.getInstance().changeBlackListStatus(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function zy(){return Sf(["change-blacklist-item"],(function(e){return fh.getInstance().changeBlackListStatusItem(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Py(){return Sf(["post-blacklist-items"],(function(e){var t=e.payload;return fh.getInstance().postBlackListItems({payload:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Ly(){return Sf(["delete-blacklist"],(function(e){var t=e.black_list_code;return fh.getInstance().deleteBlackListType({black_list_code:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Dy(){return Sf(["delete-blacklist-item"],(function(e){var t=e.black_list_code,n=e.account_code,o=e.item;return fh.getInstance().deleteBlackListItem({black_list_code:t,account_code:n,item:o}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function qy(e){var t=e.handleSetProgress;return Sf(["post-blacklist-batch"],(function(e){var n=e.blacklist_code,o=e.expiration_days,a=e.file;return fh.getInstance().postBlackListBatch({blacklist_code:n,expiration_days:o,file:a,handleSetProgress:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Ny(){return Sf(["change-payments-webhook"],(function(e){var t=e.status,n=e.paymentCode;return fh.getInstance().postChangePaymentsWebhook({status:t,paymentCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function My(){return Sf(["delete-blacklist-items"],(function(e){var t=e.blocklist_code,n=e.blocklist_item_id,o=e.account_code;return fh.getInstance().deleteBlockListItem({blocklist_code:t,blocklist_item_id:n,account_code:o}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Fy(){return Sf(["valiate-blacklist-items"],(function(e){return fh.getInstance().valiateBlockListItems({payload:e}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Uy(){return Sf(["delete-allowlist-item"],(function(e){return fh.getInstance().deleteAllowlistItem({payload:e}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function By(){return Sf(["validate-allowlist-items"],(function(e){return fh.getInstance().validateAllowlistItems({payload:e}).then((function(e){return e.data})).catch((function(e){return e}))}))}function Wy(e){var t=e.fileName,n=e.onSuccess,o=e.onError,a=w(0),i=a[0],r=a[1],s=j({cancel:function(){return null}}),c=Sf(["upload-file-chargeback",t],(function(e){var t=fh.getInstance().uploadFileS3ClientBatchRefunds({payload:e,handleSetProgress:r}),a=t.promise,i=t.cancel;return s.current.cancel=i,a.then((function(e){return null==n||n(null==e?void 0:e.data),null==e?void 0:e.data})).catch((function(e){throw null==o||o(),e}))}),{useErrorBoundary:!1});return{mutation:c,cancelRequest:s.current.cancel,progress:i}}function Hy(e){var t=e.handleSetProgress;return Sf((function(e){return fh.getInstance().uploadBatchRefunds({payload:e,handleSetProgress:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Vy(){return Sf((function(e){return fh.getInstance().uploadBatchRefundsV2({payload:e}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Gy(){var e=this;return Sf((function(o){return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,fh.getInstance().batchRefundByFile({payload:o}).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function $y(){var e=this;return Sf((function(o){var a=o.batchRefundId,i=o.organizationCode,r=o.accountCode;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,fh.getInstance().getBatchRefundProcessedFileDownload(a,i,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function Ky(){var e=this;return Sf((function(o){var a=o.batchRefundId,i=o.organizationCode,r=o.accountCode;return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,fh.getInstance().getBatchRefundUserFileDownload(a,i,r).then((function(e){return null==e?void 0:e.data}))]}))}))}),{useErrorBoundary:!1})}function Qy(){var e=j({cancel:function(){return null}}),t=Sf(["upload-file"],(function(t){var n=fh.getInstance().uploadFileS3ClientBatchRefunds({payload:t}),o=n.promise,a=n.cancel;return e.current.cancel=a,o.then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}));return{mutation:t,cancelRequest:e.current.cancel}}function Jy(){return Sf((function(e){var t=e.payload,n=e.organizationCode;return fh.getInstance().updateMFAConfig(t,n)}))}function Yy(){return Sf((function(e){var t=e.payload,n=e.organizationCode;return fh.getInstance().mfaExcludeUsers(t,n)}))}function Xy(e){return Ef(["GET/scheduled-reports",e],(function(){return fh.getInstance().getScheduledReport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function Zy(){return Sf((function(e){var t=e.payload;return fh.getInstance().postScheduledReport(t).then((function(e){return{data:e.data,status:e.status}})).catch((function(e){return e}))}))}function ev(){return Sf((function(e){var t=e.reportCode,n=e.payload;return fh.getInstance().updateScheduledReport(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function tv(){return Sf((function(e){return fh.getInstance().deleteScheduledReport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function nv(){return Sf((function(e){return fh.getInstance().getConditionalConfigRules(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function ov(){return Sf((function(e){return fh.getInstance().getRule(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function av(){return Sf((function(e){var t=e.payload,n=e.accountCode;return fh.getInstance().postCreateRuleMultiAccount(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function iv(){return Sf((function(e){var t=e.payload,n=e.accountCode;return fh.getInstance().postCreateRule(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function rv(){return Sf((function(e){var t=e.payload,n=e.ruleId,o=e.accountCode;return fh.getInstance().postEditRule(t,n,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function sv(){return Sf((function(e){var t=e.payload;return fh.getInstance().postCreateCustomizedApiKeys(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function cv(){return Sf((function(e){var t=e.payload,n=e.code;return fh.getInstance().pathCreateCustomizedApiKeys(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function uv(){return Sf((function(e){var t=e.code,n=e.password;return fh.getInstance().getCustomizedApiKeysToken(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}))}function lv(){return Sf((function(e){var t=e.passwordOtp;return fh.getInstance().getDeveloperCredentialsValidatePassword(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}))}function pv(){return Sf((function(e){var t=e.code;return fh.getInstance().getCustomizedApiKeysShowToken(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function dv(){return Sf((function(e){var t=e.code;return fh.getInstance().deleteCustomizedApiKeys(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function mv(){return Sf((function(e){var t=e.payload,n=e.code;return fh.getInstance().patchApiKeysEditNote(t,n).then((function(e){return e.data})).catch((function(e){return e}))}))}function hv(){return Sf((function(e){var t=e.payload,n=e.code,o=e.password;return fh.getInstance().postApiKeysRoll(t,n,o).then((function(e){return e.data})).catch((function(e){return e}))}))}function fv(){return Sf((function(e){var t=e.password,n=e.accountCode;return fh.getInstance().getDeveloperCredentials(t,n).then((function(e){return a(a({},null==e?void 0:e.data),{isValid:!0})})).catch((function(e){var t,n;return{isValid:!1,status:e.response.status,error:null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.data}}))}))}function gv(e){return Sf((function(e){var t=e.payload;return fh.getInstance().postAuditMonitors(t)}),{onMutate:e.onMutate})}function yv(o){var a=this;return Sf((function(){return fh.getInstance().createReconciliationReportTemplate(o).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{onMutate:function(o){return t(a,void 0,void 0,(function(){var t,a;return n(this,(function(n){switch(n.label){case 0:return[4,kg.cancelQueries({queryKey:["GET/reconciliation/reports/templates"]})];case 1:return n.sent(),t=null===(a=kg.getQueryData(["GET/reconciliation/reports/templates"]))||void 0===a?void 0:a.templates,kg.setQueryData(["GET/reconciliation/reports/templates"],(function(t){return{templates:e(e([],t.templates,!0),[o],!1)}})),[2,{previousTemplates:t}]}}))}))},onError:function(e,t,n){kg.setQueryData(["GET/reconciliation/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){kg.invalidateQueries({queryKey:["GET/reconciliation/reports/templates"]})},useErrorBoundary:!1})}function vv(e){return Sf((function(){return fh.getInstance().updateReconciliationReportTemplate(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function bv(){return Sf(["POST/reconciliation/alerts"],(function(e){return fh.getInstance().postReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){kg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function kv(){return Sf(["DELETE/reconciliation/alerts"],(function(e){return fh.getInstance().deleteReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){kg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function xv(){return Sf(["UPDATE/reconciliation/alerts"],(function(e){return fh.getInstance().updateReconciliationAlert(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{onSuccess:function(){kg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function wv(){return Sf((function(e){var t=e.payload;return fh.getInstance().postCreateInsightsReport(t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function jv(){return Sf((function(e){return fh.getInstance().createSamlConfig(e)}))}function Cv(){return Sf((function(e){return fh.getInstance().updateSamlConfig(e)}))}function Ev(){return Sf((function(){return fh.getInstance().deleteSamlConfig()}))}function Sv(e,t){return void 0===t&&(t={}),Sf((function(t){return fh.getInstance().generateAIWorkflowRoutes(e,t).then((function(e){return null==e?void 0:e.data}))}),a(a({},t),{useErrorBoundary:!1}))}function _v(){return Sf((function(e){return fh.getInstance().createChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Rv(){return Sf((function(e){return fh.getInstance().deleteChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Tv(){return Sf((function(e){var t=e.chartgpt_id,n=e.type,o=e.name;return fh.getInstance().patchChartGPTChart(t,{type:n,name:o}).then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Iv(){var e=this;return Sf((function(o){return t(e,void 0,void 0,(function(){var e,a,i,r,s,c,u,l=this;return n(this,(function(p){switch(p.label){case 0:return[4,(e=fh.getInstance()).createChartGPTChart(o)];case 1:if(a=p.sent(),!(i=null===(u=null==a?void 0:a.data)||void 0===u?void 0:u.chartgpt_id))throw new Error("Failed to create chart: No chart ID returned");return r=function(){return t(l,void 0,void 0,(function(){var o=this;return n(this,(function(a){return[2,new Promise((function(a,r){var s=setInterval((function(){return t(o,void 0,void 0,(function(){var t,o,c;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e.getChartById(i)];case 1:return t=n.sent(),"DRAFT"===(null==(o=null==t?void 0:t.data)?void 0:o.status)&&(clearInterval(s),a(o)),[3,3];case 2:return c=n.sent(),clearInterval(s),r(c),[3,3];case 3:return[2]}}))}))}),1e4)}))]}))}))},[4,r()];case 2:return s=p.sent(),[4,e.executeChartGPTChart(i)];case 3:return c=p.sent(),[2,{chart:s,chartgpt_id:i,execution:null==c?void 0:c.data}]}}))}))}),{useErrorBoundary:!1})}var Ov=function(){var e,t;return null===(t=null===(e=function(e){var t=localStorage.getItem(e),n=w(t&&JSON.parse(t)),o=n[0],a=n[1];return C((function(){var t=function(t){if(t.key===e){var n=t.newValue;a(n)}};return window.addEventListener("storage",t),function(){window.removeEventListener("storage",t)}}),[e]),o}("account"))||void 0===e?void 0:e.value)||void 0===t?void 0:t.organization_code};function Av(e){var o=this;return Ef(["fetch-payments-lazy",e],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,fh.getInstance().postPaymentsLazy(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{enabled:!!e&&Object.keys(e).length>0,cacheTime:0})}function zv(e){return Ef(["fetch-payments-evaluated",e],(function(){return fh.getInstance().postPaymentsEvaluated(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&Object.keys(e).length>0,cacheTime:0})}function Pv(e){var t=e.enabled,n=void 0===t||t,o=i(e,["enabled"]);return Ef(["fetch-payments-".concat(o.payment_code),o],(function(){return fh.getInstance().getPayment(o).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:500})}function Lv(e){var o=this,a=e.paymentCode,i=e.enabled,r=void 0===i||i,s=fh.getInstance();return Ef(["get-payment-v2",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,s.getPaymentV2(a).then((function(e){return e.data})).catch((function(e){throw e}))]}))}))}),{enabled:r,cacheTime:500})}function Dv(e,t){return Ef(["payments/".concat(e,"/transactions"),t],(function(){return fh.getInstance().getPaymentTransactions(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,cacheTime:500})}function qv(e){return Ef(["payments/".concat(e,"/transactions/lazy")],(function(){return fh.getInstance().getPaymentTransactionsLazy(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e.response.data}))}),{enabled:!!e,cacheTime:500})}function Nv(e){var t=e.payment_code,n=e.transaction_code,o=e.enabled,a=void 0===o||o;return Ef(["payments/".concat(t,"/transactions/").concat(n)],(function(){return fh.getInstance().getTransactionDetails({payment_code:t,transaction_code:n}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:500,enabled:a})}function Mv(e){var o=this,a=e.payment_code,i=e.enabled,r=void 0===i||i,s=fh.getInstance();return Ef(["get-payment-transaction-details-v2",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,s.getTransactionDetailsV2({payment_code:a}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))]}))}))}),{enabled:!!a&&r,cacheTime:0})}function Fv(e){var o=this,a=e.transaction_code,i=e.enabled,r=void 0===i||i,s=fh.getInstance();return Ef(["get-payment-transaction-raw-response",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,s.getTransactionRawResponse({transaction_code:a})]}))}))}),{enabled:!!a&&r,cacheTime:0})}function Uv(e){var t=Ov();return Ef(["payment-methods",e],(function(){return fh.getInstance().getPaymentMethodsByCountry({provider_id:null==e?void 0:e.provider_id,country:null==e?void 0:e.country},t).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!e&&!!(null==e?void 0:e.provider_id),useErrorBoundary:!1})}function Bv(e){var t=e.provider;return Ef(["/payment-methods/provider/".concat(t)],(function(){return fh.getInstance().getPaymentMethodsByProvider({provider:t}).then((function(e){return null==e?void 0:e.data}))}))}function Wv(){return Ef(["/payment-methods/providers"],(function(){return fh.getInstance().getPaymentMethodsAndProviders().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Hv(){return Ef(["/payments/payment-methods/providers/active"],(function(){return fh.getInstance().getPaymentMethodsAndProvidersActive().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Vv(){return Ef(["/payments/transaction/statuses"],(function(){return fh.getInstance().useGetPaymentAndTrxStatuses().then((function(e){return null==e?void 0:e.data}))}))}function Gv(){return Ef(["GET/catalog/card-brands"],(function(){return fh.getInstance().getCardBrands().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function $v(e){return void 0===e&&(e=!0),Ef(["payment-filters",e],(function(){return fh.getInstance().getPaymentFilters().then((function(e){return null==e?void 0:e.data}))}),{enabled:e,useErrorBoundary:!1})}function Kv(){return Ef(["payment-metrics-filters"],(function(){return fh.getInstance().getPaymentMetricsFilters().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Qv(e){var t=e.transaction_code;return Ef(["payment-filters",t],(function(){return fh.getInstance().getTransactionHistory({transaction_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t})}function Jv(e){var t=e.transaction_code,n=e.enabled;return Ef(["payment-transaction-details",t],(function(){return fh.getInstance().getPaymentTransactionsDetails({transaction_code:t}).then((function(e){return null==e?void 0:e.data})).catch((function(){return{error:!0}}))}),{enabled:!!t&&(void 0===n||n)})}function Yv(e){var t=e.payment_code,n=e.enabled;return Ef(["transaction-history",t],(function(){return fh.getInstance().getTransactionHistoryByPaymentCode({payment_code:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function Xv(e){return Ef(["GET/transactions",JSON.stringify(e)],(function(){return fh.getInstance().getTransactions(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function Zv(e){var o=this;return Ef(["POST/transactions",JSON.stringify(e)],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,fh.getInstance().postTransactions(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{enabled:!!e,cacheTime:0})}function eb(e){var o=this;return Ef(["POST/fraud-transactions",JSON.stringify(e)],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,fh.getInstance().postFraudTransactions(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{enabled:!!e&&Object.keys(e).length>0,cacheTime:0})}function tb(e){return Ef(["GET/payout-detail",JSON.stringify(e)],(function(){var t=fh.getInstance();return e.organization_code?t.getPayoutDetails(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e})):{}}),{enabled:!!e.organization_code&&!!e&&e.enabled,cacheTime:0})}function nb(e){return Ef(["GET/payout-transaction-detail",JSON.stringify(e)],(function(){return fh.getInstance().getPayoutTransactionDetails(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&!!(null==e?void 0:e.transaction_code)&&(null==e?void 0:e.enabled),cacheTime:0})}function ob(e){var t=Ov();return Ef(["GET/payout-history-detail",JSON.stringify(e)],(function(){return fh.getInstance().getPayoutHistoryDetails(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!(null==e?void 0:e.payout_code)&&e.enabled,cacheTime:0})}function ab(e){var o=this,a=Ov();return Ef(["GET/useGetProofOfCancel",a,e],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,fh.getInstance().getProofOfCancel(e,a).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))]}))}))}),{enabled:!!e&&!!a,cacheTime:0,useErrorBoundary:!1})}function ib(e,o,a){var i=this,r=fh.getInstance();return Ef(["send-payment-notification",e,o],(function(){return t(i,void 0,void 0,(function(){var t,i;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,r.sendPaymentNotification(e,o)];case 1:return t=n.sent(),a.onSuccess(),[2,t.data];case 2:throw i=n.sent(),a.onError(),i;case 3:return[2]}}))}))}),{enabled:a.enabled,cacheTime:0,useErrorBoundary:!1})}function rb(e){return Ef(["usePayoutsList",e&&JSON.stringify(e)],(function(){var t=fh.getInstance();if(e)return t.postPayouts(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&!!Object.values(e).length,cacheTime:0})}function sb(e){var o=this;void 0===e&&(e=!0);var a=Ov();return Ef(["getPayoutsFilters",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(e){return[2,fh.getInstance().getPayoutsFilters(a).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{enabled:e&&!!a})}function cb(e){var t=e.password,n=e.accountCode;return Ef(["developers"],(function(){return fh.getInstance().getDeveloperCredentials(t,n).then((function(e){return a(a({},null==e?void 0:e.data),{isValid:!0})})).catch((function(e){var t,n;return{isValid:!1,status:e.response.status,error:null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.data}}))}),{enabled:!1,cacheTime:0})}function ub(e){var t=e.password;return Ef(["developers"],(function(){return fh.getInstance().getDeveloperCredentialsValidatePassword(t).then((function(e){return a(a({},null==e?void 0:e.data),{isValid:!0})})).catch((function(e){var t,n;return{isValid:!1,status:e.response.status,error:null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.data}}))}),{enabled:!1,cacheTime:0})}function lb(){return Ef(["fetch-customized-api-keys-members"],(function(){return fh.getInstance().getCustomizedApiKeysMembers().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function pb(){return Ef(["developers-get-allowed-ips"],(function(){return fh.getInstance().getAllowedIps().then((function(e){return(null==e?void 0:e.data)?a(a({},null==e?void 0:e.data),{isError:!1}):null})).catch((function(e){return a(a({},e),{isError:!0})}))}),{enabled:!1,cacheTime:0})}function db(){return Ef(["fetch-customized-api-keys-accounts"],(function(){return fh.getInstance().getCustomizedApiKeysAccounts().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function mb(e){return Ef(["fetch-customized-api-keys",e],(function(){return fh.getInstance().postCustomizedApiKeys(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!(null==e?void 0:e.length)})}function hb(){return Ef(["fetch-customized-api-keys-products"],(function(){return fh.getInstance().getCustomizedApiKeysProducts().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{cacheTime:0})}function fb(){return Sf(["developers-patch-allowed-ips"],(function(e){return fh.getInstance().patchAllowedIps(e).then((function(e){return(null==e?void 0:e.data)?a(a({},null==e?void 0:e.data),{isError:!1}):null})).catch((function(e){return a(a({},e),{isError:!0})}))}),{cacheTime:0})}function gb(){return Ef(["fetch-organizations"],(function(){return fh.getInstance().getOrganization().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{keepPreviousData:!0})}function yb(){return Ef(["fetch-all-organizations"],(function(){return fh.getInstance().getAllOrganization().then((function(e){return(null==e?void 0:e.data)||[]}))}),{keepPreviousData:!0,useErrorBoundary:!1})}function vb(e){var t=Ov();return Ef(["organizations-provider-params",e],(function(e){var n=e.queryKey;return fh.getInstance().getProviderParams(n[1],t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.id),useErrorBoundary:!1})}function bb(e){var t=e.integration_code,n=e.enabled;return Ef(["integration-params",t],(function(){return t.includes("undefined")?{}:fh.getInstance().getIntegrationParams({integration_code:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,useErrorBoundary:!1})}function kb(e){var t=e.accountCode,n=e.organizationCode;return Ef(["organizations-account-integrations"],(function(){return fh.getInstance().getIntegrationByAccount({accountCode:t,organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!t})}function xb(e){var t=e.accountCode,n=e.organizationCode,o=Ov(),a=Ef(["organizations-account-integrations",t,n],(function(){return fh.getInstance().getIntegrationByAccountV2({accountCode:t,organizationCode:n||o}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,enabled:!!t,useErrorBoundary:!1});return a}function wb(e){var t=e.accountCode,n=e.paymentMethod;return Ef(["fetch-connections-by-payment-method",n,t],(function(){return fh.getInstance().getConnectionsByPaymentMethod(t,n).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!n&&!!t,cacheTime:0,useErrorBoundary:!1})}function jb(){var e=this;return Ef(["fetch-hash-pylon"],(function(){return t(e,void 0,void 0,(function(){return n(this,(function(e){return[2,fh.getInstance().getHashPylon()]}))}))}),{keepPreviousData:!0,useErrorBoundary:!1})}function Cb(){return Ef(["connections"],(function(){return fh.getInstance().getConnections().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Eb(){return Ef(["dialogs"],(function(){return fh.getInstance().getDialogs().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1,retryDelay:2e3})}function Sb(){return Ef(["params-catalog"],(function(){return fh.getInstance().getWebhookParams().then((function(e){return null==e?void 0:e.data}))}))}function _b(){return Ef(["params-catalog"],(function(){return fh.getInstance().getWebhookParamsV2().then((function(e){return null==e?void 0:e.data}))}))}function Rb(e){var t=e.accountCode;return Ef(["webhooks"],(function(){return fh.getInstance().getWebhooks({accountCode:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t})}function Tb(e){var t=e.accountCode;return Ef(["webhooks"],(function(){return fh.getInstance().getWebhooksV2({accountCode:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t})}function Ib(e){var t=e.accountCode,n=e.name;return Ef(["webhooks",t,n],(function(){return fh.getInstance().getWebhooksV3({accountCode:t,name:n}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,useErrorBoundary:!1})}function Ob(e){var t=e.accountCode,n=e.enabled;return Ef(["webhooks-detail",t],(function(){return fh.getInstance().getWebhooksV2Detail({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!n})}function Ab(e){var t,n=Ov(),o=null!==(t=null!=e?e:n)&&void 0!==t?t:null;return Ef({queryKey:["accounts",o],queryFn:function(){return fh.getInstance().getAccounts(o).then((function(e){return null==e?void 0:e.data}))},keepPreviousData:!0,cacheTime:3e3,enabled:!!o})}function zb(e){return Ef(["accountsV2",e],(function(){return fh.getInstance().getAccountsV2().then((function(e){return(null==e?void 0:e.data)||[]})).catch((function(e){throw e}))}),{keepPreviousData:!0,enabled:!!e,useErrorBoundary:!1})}function Pb(e){return Ef(["accountsV2-by-user",e],(function(){return e?fh.getInstance().getAccountsByUser(e).then((function(e){return{accountsV2ByUser:(null==e?void 0:e.data)||null}})).catch((function(e){return{accountsV2ByUser:[],error:e}})):{accountsV2ByUser:[]}}),{enabled:!!e,staleTime:0})}function Lb(){return Ef(["menu"],(function(){return fh.getInstance().getMenu().then((function(e){return Xm(e)?ih:null==e?void 0:e.data})).catch((function(){return ih}))}))}function Db(){return Ef(["/payment/statuses/style"],(function(){return fh.getInstance().useGetPaymentStatusesStyles().then((function(e){return Xm(e)?Zm:null==e?void 0:e.data})).catch((function(){return Zm}))}))}function qb(){return Ef(["/transaction/statuses/style"],(function(){return fh.getInstance().useGetTransactionStatusesStyles().then((function(e){return Xm(e)?eh:null==e?void 0:e.data})).catch((function(){return eh}))}))}function Nb(){return Ef(["/reconciliation/transaction/statuses/style"],(function(){return fh.getInstance().useGetReconciliationTransactionStatusesStyles().then((function(e){return Xm(e)?th:null==e?void 0:e.data})).catch((function(){return th}))}))}function Mb(){return Ef(["timezone-catalog"],(function(){return fh.getInstance().useGetTimeZoneCatalog().then((function(e){return Xm(e)?nh:null==e?void 0:e.data})).catch((function(){return nh}))}))}function Fb(){return Ef(["/cms/audit-logs-filters"],(function(){return fh.getInstance().useGetAuditLogsFilters().then((function(e){return Xm(e)?oh:null==e?void 0:e.data})).catch((function(){return oh}))}))}function Ub(){return Ef(["/cms/static-contents"],(function(){return fh.getInstance().getDashboardStaticContents().then((function(e){var t,n;return Xm(e)?ah:(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t[0])||void 0===n?void 0:n.data)||{}})).catch((function(){return ah}))}))}function Bb(){return Ef(["/cms/locales"],(function(){return fh.getInstance().getLocales().then((function(e){return Xm(e)?rh:e.data})).catch((function(){return rh}))}))}var Wb=function(){var e=w("ON"===localStorage.getItem("isTesting")),t=e[0],n=e[1];return C((function(){window.addEventListener("storage",(function(e){"isTesting"===e.key&&n("ON"===e.newValue)}))}),[]),{isTesting:t}};function Hb(e){return Ef(["smart-routing-methods",e],(function(){return fh.getInstance().getSmartRoutingMethods(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function Vb(e,t){return Ef(["smart-routing-workflow",t,e],(function(){return fh.getInstance().getSmartRoutingWorkflow(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!e,cacheTime:0,retry:!1})}function Gb(e,t){return Ef(["smart-routing-condition-types",e,t],(function(){return fh.getInstance().getSmartRoutingConditionTypes(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!e})}function $b(e,t){return Ef(["smart-routing-condition-payment-method",e,t],(function(){return fh.getInstance().getSmartRoutingConditionPaymentMethod(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:null!==t})}function Kb(e,t){return Ef(["smart-routing-condition-types-values",t,e],(function(){return fh.getInstance().getSmartRoutingConditionTypesValues(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t&&!!e})}function Qb(e){var t=e.accountCode,n=e.workflowVersionId;return Ef(["smart-routing-workflow-version",n,t],(function(){return fh.getInstance().getSmartRoutingWorkflowVersion(t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!n&&!!t,cacheTime:0})}function Jb(e,t,n){return Ef(["smart-routing-next-route",e,n,t],(function(){return fh.getInstance().getSmartRoutingNextSteps(e,t,n).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function Yb(e){return Ef(["smart-routing-decline-groups",e],(function(){return fh.getInstance().getSmartRoutingDeclinedGroup(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function Xb(e){return Ef(["smart-routing-tutorial",e],(function(){return fh.getInstance().getSmartRoutingTutorial(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function Zb(e,t){return Ef(["smart-routing-payment-route",e,t],(function(){return fh.getInstance().getSmartRoutingPaymentRoute(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&!!t,cacheTime:0})}function ek(e){return Ef(["smart-routing-simulate-condition-type-values",e],(function(){return fh.getInstance().getSmartRoutingSimulateConditionTypeValues(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function tk(e){var t=e.text,n=e.conditionType;return Ef(["smart-routing-search-condition-values",t,n],(function(){return fh.getInstance().getSmartRoutingSearchConditionValues(n,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!n&&!!t,cacheTime:0})}function nk(){return Ef(["smart-routing-conversion-rates"],(function(){return fh.getInstance().getProviderConversionRatesData().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!1,useErrorBoundary:!1})}function ok(){var e=this;return Ef({queryKey:["smart-routing-3ds-excemptions"],queryFn:function(){return t(e,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,fh.getInstance().get3DSExemptions()];case 1:return[2,e.sent().data]}}))}))},useErrorBoundary:!1})}function ak(e){return Ef(["fetch-routing-monitors-templates",e],(function(){return fh.getInstance().getRoutingMonitorsTemplates(e).then((function(e){return e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function ik(e,t){return Ef(["fetch-routing-monitors-template",e],(function(){return fh.getInstance().getRoutingMonitorsTemplate(e,t).then((function(e){return e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:!!e&&!!t&&"NONE"!==e,useErrorBoundary:!1})}function rk(e){var t=e.accountCode;return Ef(["checkouts",t],(function(){return fh.getInstance().getCheckouts({accountCode:t}).then((function(e){return e.data}))}),{cacheTime:0,enabled:Boolean(t)})}function sk(e){var t=e.accountCode;return Ef(["checkouts-template"],(function(){return fh.getInstance().getCheckoutTemplate({accountCode:t}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,enabled:Boolean(t)})}var ck=function(e){return["checkout-builder-name-and-icon",e.paymentMethodType,e.type]},uk=function(e,t){var n=e.paymentMethodType,o=e.type;return Ef(ck({paymentMethodType:n,type:o}),(function(){return fh.getInstance().getNameAndIcon({paymentMethodType:n,type:o}).then((function(e){return null==e?void 0:e.data}))}),t)},lk=function(e){return["checkout-builder-required-fields",e.paymentMethodType,e.type]},pk=function(e,t){var n=e.paymentMethodType,o=e.type;return Ef(lk({paymentMethodType:n,type:o}),(function(){return fh.getInstance().getRequiredFields({paymentMethodType:n,type:o}).then((function(e){return null==e?void 0:e.data}))}),t)};function dk(e){var t=e.accountCode;return Ef(["styling-theme",t],(function(){return fh.getInstance().getStylingTheme({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function mk(e){var t=e.accountCode;return Ef(["styling-settings",t],(function(){return fh.getInstance().getStylingSettings({accountCode:t}).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function hk(){return Ef(["fetch-profile"],(function(){return fh.getInstance().getProfile().then((function(e){var t=null==e?void 0:e.data;return t&&localStorage.setItem("user",JSON.stringify(t)),t})).catch((function(e){throw e}))}),{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function fk(e,t){return Ef(["fetch-permissions",e,t],(function(){var e,t,n,o=localStorage.getItem("account"),a=localStorage.getItem("user"),i=o&&JSON.parse(o),r=a&&JSON.parse(a);return((null==r?void 0:r.merlin)?null===(e=null==r?void 0:r.merlin)||void 0===e?void 0:e.permissions:null===(n=null===(t=null==i?void 0:i.value)||void 0===t?void 0:t.role)||void 0===n?void 0:n.permission_ids.map((function(e){return{permission_name:e,description:e,resource_server_name:e,resource_server_identifier:e}})))||[]}))}function gk(e){return Ef(["email-verification",e],(function(){return fh.getInstance().emailVerification(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function yk(e){return Ef(["login-sso",e],(function(){return fh.getInstance().getLoginSSO(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function vk(){return Ef({queryKey:["get-login-methods"],queryFn:function(){return fh.getInstance().getLoginMethods().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}})}function bk(e){return Ef(["notifications-customer",e],(function(){return fh.getInstance().getNotificationsCustomer(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e,keepPreviousData:!1})}function kk(e){return Ef(["validate-opsgenie-key",e],(function(){return fh.getInstance().getValidateOpsgenieKey(e).then((function(e){return null==e?void 0:e.data})).catch((function(){return{error:!0}}))}),{enabled:!!e,cacheTime:0})}function xk(){return Ef(["notifications-merged"],(function(){return fh.getInstance().getMergedNotifications().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{keepPreviousData:!1,cacheTime:0})}function wk(e){return Ef(["notifications-account",e],(function(){return fh.getInstance().getNotificationsCustomer(e).then((function(e){return null==e?void 0:e.data}))}))}function jk(e){return Ef(["notifications-number",e],(function(){return fh.getInstance().getNotificationsNumber(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function Ck(){return Sf((function(e){return fh.getInstance().getNotificationsNumber(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}))}function Ek(){var e=this;return Sf((function(o){return t(e,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().pathNotification(o)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}}))}))}))}var Sk={key:"metadata_fields",name:"metadata_fields"};function _k(){return Ef(["reports"],(function(){return fh.getInstance().reportsList().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Rk(e){return void 0===e&&(e=!0),Ef(["reports-multi-env"],(function(){return fh.getInstance().reportsListMultiEnv().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e})}function Tk(e,t,n){return void 0===t&&(t=!1),Ef(["reports/".concat(e)],(function(){return fh.getInstance().downloadReports(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:t,onSuccess:n,useErrorBoundary:!1})}function Ik(e){return Ef(["GET/reports/templates"],(function(){return fh.getInstance().getReportTemplates().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e,useErrorBoundary:!1})}function Ok(t,n,o){return Ef(["GET/reports/columns/".concat(n,"/").concat(o)],(function(){return fh.getInstance().getReportColumns(n,o).then((function(t){return"ALL"===n&&"PAYMENTS"===o?e(e([],null==t?void 0:t.data,!0),[Sk],!1):null==t?void 0:t.data})).catch((function(e){return e}))}),{enabled:t,useErrorBoundary:!1})}function Ak(e){var o=this,a=Ov();return Ef(["getRefundPdf",e,a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,fh.getInstance().getRefundPdf(e,a).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))]}))}))}),{enabled:!!e&&!!a,useErrorBoundary:!1})}function zk(e){return Ef(["fetch-members"],(function(){return fh.getInstance().getMembers(e).then((function(e){return null==e?void 0:e.data}))}),{keepPreviousData:!0})}function Pk(e){var t=e.organizationCode,n=Ov();return Ef(["fetch-members-v3",t],(function(){return t?fh.getInstance().getMembersV3({organizationCode:n}).then((function(e){return null==e?void 0:e.data})):null}),{enabled:!!t,cacheTime:0})}function Lk(){var e=Ov();return Ef(["teams-filters-members"],(function(){return fh.getInstance().teamsFiltersMembers({organizationCode:e}).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0})}function Dk(e){var t=e.organizationCode,n=e.accountCodes,o=Ov();return Ef(["fetch-members-v4",t,n],(function(){return n?t?fh.getInstance().getMembersV4({organizationCode:o,accountCodes:n}).then((function(e){return null==e?void 0:e.data})):null:{}}),{enabled:!!t&&!!n,cacheTime:0})}function qk(e){var t=e.organizationCode,n=e.accountCodes,o=Ov();return Ef(["fetch-post-members-v4",t,n],(function(){return fh.getInstance().postMembersV4({organizationCode:o,accountCodes:n}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&!!n,cacheTime:0})}function Nk(e){var t=e.organizationCode,n=e.accountCodes,o=e.page,a=e.pageSize,i=Ov();return Ef(["fetch-post-members-v4",t,n,o,a],(function(){return fh.getInstance().postMembersPaginated({organizationCode:i,accountCodes:n,page:o,pageSize:a}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&!!n,cacheTime:0,useErrorBoundary:!1})}function Mk(e){var t=e.organizationCode,n=e.accountCodes,o=e.email,a=e.page,i=e.pageSize,r=Ov();return Ef(["fetch-post-members-v2",t,n,o,a,i],(function(){return fh.getInstance().postMembersPaginatedV2({organizationCode:r,accountCodes:n,email:o,page:a,pageSize:i}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t&&!!n,cacheTime:0,useErrorBoundary:!1})}function Fk(){return Ef(["fetch-roles"],(function(){return fh.getInstance().getRoles().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Uk(){return Ef(["fetch-rolespermissions"],(function(){return fh.getInstance().getRolesPermissions().then((function(e){return null==e?void 0:e.data}))}))}function Bk(){return Ef(["fetch-permissions-catalog"],(function(){return fh.getInstance().getPermissionsCatalog().then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{useErrorBoundary:!1})}function Wk(e){return Ef(["data-report",e],(function(){return fh.getInstance().getSmartRoutingDataReport(e).then((function(e){return null==e?void 0:e.data}))}),{cacheTime:0,useErrorBoundary:!1})}function Hk(e,t,n){return Ef(["data-insights",e],(function(){return("LOCAL"===process.env.ENVIRONMENT||"DEV"===process.env.ENVIRONMENT||localStorage.getItem("log_metrics"))&&(console.log("%c ".concat(e.key_metric),"background: #222; color: #bada55"),console.log(e)),fh.getInstance().getDashboardInsights(e).then((function(e){return null==e?void 0:e.data}))}),{keepPreviousData:n,enabled:!!e.account_code&&!!t&&!!e.key_metric&&"Empty"!==e.currency_code,cacheTime:0,useErrorBoundary:!1})}function Vk(e,t){return Ef(["get-isolated-metric",e],(function(){return fh.getInstance().getDashboardInsights(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e.account_code,cacheTime:0,keepPreviousData:t,useErrorBoundary:!1})}function Gk(e){return Ef(["get-insights-conversion-rate-metrics",e],(function(){return fh.getInstance().getInsightsMetricsConversionRate(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.enabled)&&void 0!==e.account_code,cacheTime:200,useErrorBoundary:!1})}function $k(e,t){return Ef(["get-insights-conversion-rate-metrics-v2",e,t],(function(){return fh.getInstance().getInsightsMetricsConversionRateV2(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!(null==e?void 0:e.enabled)&&void 0!==e.account_code,cacheTime:0,useErrorBoundary:!1})}function Kk(e,t){return Ef(["get-insights-conversion-rate-view-more-metrics",t,e],(function(){return fh.getInstance().getInsightsMetricsConversionRateViewMore(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.enabled)&&!!t,cacheTime:200,useErrorBoundary:!1})}function Qk(e){return Ef(["get-insights-conversion-rate-fallback-metrics",e],(function(){return fh.getInstance().getInsightFallbackMetrics(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.enabled),cacheTime:200,useErrorBoundary:!1})}function Jk(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Ef(["get-insights-volume-metrics",t,e],(function(){return fh.getInstance().getInsightsMetricsVolume(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function Yk(e,t,n,o){return void 0===o&&(o=!0),delete t.account_code,Ef(["get-insights-volume-metrics-v2",t,e,n],(function(){return fh.getInstance().getInsightsMetricsVolumeV2(e,n,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:o,cacheTime:200,useErrorBoundary:!1})}function Xk(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Ef(["get-insights-total-payment-fraud-metrics",t,e],(function(){return fh.getInstance().getInsightsMetricsTotalPaymentsAndFraud(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function Zk(e,t,n){return void 0===n&&(n=!0),delete t.account_code,Ef(["get-insights-customer-payment-fraud-metrics",t,e],(function(){return fh.getInstance().getInsightsMetricsCustomerPaymentsAndFraud(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:200,useErrorBoundary:!1})}function ex(e){return Ef(["get-insights-overview",e],(function(){return fh.getInstance().getInsightOverview(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.enabled)&&void 0!==e.account_code,cacheTime:200,useErrorBoundary:!1})}function tx(e,t){var n=!!(null==e?void 0:e.enabled)&&void 0!==(null==e?void 0:e.account_code);return Ef(["get-insights-overview-v3",e,t],(function(){return fh.getInstance().getInsightOverviewV3(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:n,cacheTime:0,useErrorBoundary:!1})}function nx(e){return Ef(["get-insights-home-metrics",e],(function(){return fh.getInstance().getInsighstHomeMetrics(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!(null==e?void 0:e.currency_code)&&!!(null==e?void 0:e.account_codes)&&!!(null==e?void 0:e.organization_code)&&(null==e?void 0:e.isLiveMode)&&!!(null==e?void 0:e.timezone),cacheTime:200,useErrorBoundary:!1})}function ox(e){return Ef(["get-insights-reports",e],(function(){return fh.getInstance().getInsightsReport(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!(null==e?void 0:e.type),cacheTime:0,useErrorBoundary:!1})}function ax(e){return Ef(["get-insights-reports-again",e],(function(){return fh.getInstance().getInsightsReportAgain(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!(null==e?void 0:e.code),cacheTime:0,useErrorBoundary:!1})}function ix(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-fraud-screening-volume-and-count-tx",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsightsFraudScreeningVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function rx(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-fraud-screening-conversion-rate",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsightsFraudScreeningConversionRate(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function sx(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-3ds-volume-and-count-tx",o,e],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsights3dsVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function cx(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-3ds-conversion-rate-and-evolution",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsights3dsConversionRateAndEvolution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function ux(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-3ds-decline-reasons",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsights3dsDeclineReasons(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function lx(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-3ds-frictionless-vs-challenge",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsights3dsFrictionlessVsChallenge(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function px(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-chargebacks-volume-and-count-tx",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsightsChargebacksVolumeAndCountTx(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function dx(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-chargebacks-win-rate",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsightsChargebacksWinRate(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function mx(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-chargebacks-disputed",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsightsChargebacksDisputed(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function hx(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-chargebacks-by-provider-and-card-brand",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsightsChargebacksByProviderAndCardBrand(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function fx(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-chargebacks-reasons-distribution",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsightsChargebacksReasonsDistribution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function gx(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-chargebacks-status-distribution",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsightsChargebacksStatusDistribution(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function yx(e,o,a){var i=this;return void 0===a&&(a={enabled:!0}),Ef({queryKey:["post-insights-chargebacks-by-card-brand",e,o],queryFn:function(){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsightsChargebacksByCardBrand(e,o)];case 1:return[2,t.sent()]}}))}))},enabled:a.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}var vx=function(e,o,i){return void 0===i&&(i={}),Ef(["conversion-rate-overview",e,o],(function(){return t(void 0,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsightsConversionRateOverview(o,e)];case 1:return[2,t.sent()]}}))}))}),a({useErrorBoundary:!1},i))},bx=function(e,o,i){return void 0===i&&(i={}),Ef(["conversion-rate-overview-fraud-3ds",e,o],(function(){return t(void 0,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,fh.getInstance().getInsightsConversionRateOverviewFraud3ds(o,e)];case 1:return[2,t.sent()]}}))}))}),a({useErrorBoundary:!1},i))};function kx(e,t){return Ef(["fetch-reconciliation-transaction",e],(function(){return fh.getInstance().getReconciliationTransactions(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t,useErrorBoundary:!1})}function xx(e,t){return Ef(["fetch-reconciliation-settlements",e],(function(){return fh.getInstance().getReconciliationSettlements(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:!!t,useErrorBoundary:!1})}function wx(e,t){return Ef(["fetch-reconciliation-settlements-header",e],(function(){return fh.getInstance().getReconciliationSettlementsHeader(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t,cacheTime:500})}function jx(e,t){return Ef(["fetch-reconciliation-settlements-body",e],(function(){return fh.getInstance().getReconciliationSettlementsBody(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t,cacheTime:500})}function Cx(e,t){return Ef(["fetch-reconciliation-metrics",e],(function(){return fh.getInstance().getReconciliationMetrics(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!t,cacheTime:500})}function Ex(){return Ef(["GET-reconciliation-filters"],(function(){return fh.getInstance().getReconciliationFilters().then((function(e){return null==e?void 0:e.data}))}),{useErrorBoundary:!1})}function Sx(e){return Ef(["GET/v1/reconciliation/table/".concat(e,"/columns")],(function(){return fh.getInstance().getAllTableColumns(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function _x(){return Ef(["GET/v1/reconciliation/active"],(function(){return fh.getInstance().getReconciliationActive().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}))}function Rx(e,t,n){return Ef(["GET/reconciliation/reports/columns/".concat(t,"/").concat(n)],(function(){return fh.getInstance().getReconciliationsReportColumns(t,n).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{enabled:e,useErrorBoundary:!1})}function Tx(e){return Ef(["GET/reconciliation/reports/templates"],(function(){return fh.getInstance().getReconciliationReportTemplates().then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){throw e}))}),{enabled:e,useErrorBoundary:!1})}function Ix(e){var t=e.body,n=e.params,o=e.enabled;return Ef(["GET/reconciliation/alerts/list",t,n],(function(){return fh.getInstance().getReconciliationAlerts(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Ox(e){var t=e.body,n=e.params,o=e.enabled;return Ef(["GET/reconciliation/agenda/list",t,n],(function(){return fh.getInstance().getReconciliationAgenda(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Ax(e){var t=e.body,n=e.params,o=e.enabled;return Ef(["GET/reconciliation/agenda/insights",t,n],(function(){return fh.getInstance().getReconciliationAgendaInsightByKey(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function zx(e){var t=e.body,n=e.params,o=e.enabled;return Ef(["GET/reconciliation/sales/list",t,n],(function(){return fh.getInstance().getReconciliationSales(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Px(e){var t=e.body,n=e.params,o=e.enabled;return Ef(["GET/reconciliation/advancements/list",t,n],(function(){return fh.getInstance().getReconciliationAdvancements(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Lx(e){var t=e.body,n=e.params,o=e.enabled;return Ef(["GET/reconciliation/fees/list",t,n],(function(){return fh.getInstance().getReconciliationFees(t,n).then((function(e){return e.data}))}),{enabled:o,useErrorBoundary:!1})}function Dx(e){var o=this,a=Object.values(e).filter(Boolean);return Ef(["feature-flags",a],(function(){return t(o,void 0,void 0,(function(){return n(this,(function(t){return[2,fh.getInstance().getFeatureFlagId(e).then((function(e){return null==e?void 0:e.data}))]}))}))}),{enabled:a.length>1,useErrorBoundary:!1})}var qx=["FRAUD_INSIGHTS","STARROCKS_OVERVIEW_INSIGHTS","SHOW-BR-TABS","RECONCILIATION-TABS-V2","SHOW-RECON-FEES-TAB"];function Nx(e){var o=this,a=Ef({queryKey:["all-feature-flags",Object.values(e).filter(Boolean)],queryFn:function(){return t(o,void 0,void 0,(function(){var t,o;return n(this,(function(n){return t=fh.getInstance(),o={names:qx,body:e},[2,t.getFeatureFlagIdAll(o).then((function(e){return null==e?void 0:e.data}))]}))}))},enabled:!!e.account_code&&!!e.organization_code&&!!e.email,useErrorBoundary:!1}),i=bf();return C((function(){i.setQueryData(["cached-feature-flags"],a)}),[a,i]),a}function Mx(e){var t=bf();return Ef({queryKey:["cached-feature-flags"],queryFn:function(){},enabled:!1,select:function(t){var n;return{result:null===(n=t.data)||void 0===n?void 0:n[e]}},initialData:function(){var e=t.getQueryData(["cached-feature-flags"]);return(null==e?void 0:e.data)||{}}})}function Fx(e){return Ef(["events",e],(function(){return fh.getInstance().getAuditEvents(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e.account_code&&!!e.organizationCode,cacheTime:0,keepPreviousData:!0,useErrorBoundary:!1})}function Ux(e){return Ef(["audit-monitor-event-detail",e],(function(){return fh.getInstance().getAuditMonitorDetail(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){throw e}))}),{enabled:null!==e,cacheTime:0,useErrorBoundary:!1})}function Bx(e,t){return Ef(["fetch-payment-links",e,t],(function(){return fh.getInstance().getPaymentLinks(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t,cacheTime:0})}function Wx(e){return Ef(["payment-link"],(function(){return fh.getInstance().getPaymentLinksByCode(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function Hx(e){var t=e.accountCode;return Ef(["products"],(function(){return fh.getInstance().getProductsByAccount({accountCode:t}).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!t})}function Vx(e,t){return Ef(["fetch-payments-by-link-code",e],(function(){return fh.getInstance().getPaymentsByPaymentLink(e,t).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e})}function Gx(e){return void 0===e&&(e=!0),Ef(["countries",e],(function(){return fh.getInstance().useGetCountriesConfig().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:e,keepPreviousData:!0})}function $x(e){return Ef(["timezone"],(function(){return fh.getInstance().getTimezone(e).then((function(e){return Xm(e)?nh:null==e?void 0:e.data})).catch((function(){return nh}))}),{enabled:!0,keepPreviousData:!0})}function Kx(e){return Sf((function(e){var t=e.payload;return fh.getInstance().firebaseUserSubscribe(t)}),{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Qx(e,t){return Ef(["get-cofig-allow-list",e],(function(){return fh.getInstance().getConfigAllowlist(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!e&&!!t})}function Jx(e){return Ef(["get-black-list",e],(function(){return fh.getInstance().getBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:!!e})}function Yx(e,t,n,o){var a;return Ef(["post-black-list",e],(function(){return fh.getInstance().postBlockList(e,null!=t?t:"",null!=n?n:0,null!=o?o:25).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:(null===(a=e[0])||void 0===a?void 0:a.length)>0&&null!==t,useErrorBoundary:!1})}function Xx(e){return Ef(["get-one-black-list",e],(function(){return fh.getInstance().getOneBlackListType(e).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e})}function Zx(e,t,n){return Ef(["get-block-list-summary",e,t,n],(function(){var o=fh.getInstance();return n?o.getBlackListSummary(e,t).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e})):Promise.resolve({})}),{enabled:!!e&&!!n})}function ew(e,t,n,o,a,i){return Ef(["black-list-detail",e,t,o,a,i],(function(){return fh.getInstance().getBlacklistDetail(e,t,n,o,a).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{enabled:!!e&&i,cacheTime:0})}function tw(e,t,n){return Ef(["allow-list-detail",e],(function(){return fh.getInstance().getAllowlistDetail(e,t).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{enabled:!!e&&!!n})}function nw(e){return Ef(["query-post-get-allowlist-multi-account",JSON.stringify(e)],(function(){return fh.getInstance().postGetAllowlist({payload:e}).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e}))}),{enabled:!!e,cacheTime:0})}function ow(e,o){var a=this;return void 0===e&&(e=26),void 0===o&&(o=0),Ef(["batch-refunds",e,o],(function(){return t(a,void 0,void 0,(function(){return n(this,(function(t){return[2,fh.getInstance().getBatchRefunds(e,o).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))]}))}))}),{cacheTime:0})}function aw(e){return Ef(["velocity-rules",e],(function(){var t=fh.getInstance();return e?t.getVelocityRules(e).then((function(e){return(null==e?void 0:e.data)||null})).catch((function(e){return e})):Promise.resolve({})}),{enabled:!!e,keepPreviousData:!0})}function iw(){return Ef(["config-rules"],(function(){return fh.getInstance().getAllConfigRules().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0})}function rw(e,t){var n=e.organizationCode;return Ef(["mfa-excluded-users",n],(function(){return fh.getInstance().getMFAExcludedUsers({organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function sw(e,t){var n=e.organizationCode;return Ef(["mfa-config",n],(function(){return fh.getInstance().getMFAConfig({organizationCode:n}).then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function cw(e,t){return Ef(["mfa-enforcement-status",e.accountCode],(function(){return fh.getInstance().getMFAEnforcementStatus().then((function(e){return null==e?void 0:e.data})).catch((function(e){return e}))}),{cacheTime:0,enabled:t})}function uw(e){return Ef(["fetch-organization-saml-config",e],(function(){return fh.getInstance().getSamlConfig().then((function(e){return e.data}))}),{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function lw(e){return Ef(["chartgpt-chart-execute",e],(function(){return fh.getInstance().executeChartGPTChart(e).then((function(e){return null==e?void 0:e.data}))}),{enabled:!!e})}function pw(){return Ef(["chartgpt-user-charts"],(function(){return fh.getInstance().getChartsByUser().then((function(e){return null==e?void 0:e.data}))}))}function dw(){var e=this;return Ef(["chartgpt-user-charts-with-results"],(function(){return t(e,void 0,void 0,(function(){var e,o,i,r=this;return n(this,(function(s){switch(s.label){case 0:return[4,(e=fh.getInstance()).getChartsByUser()];case 1:return o=s.sent(),i=(null==o?void 0:o.data)||[],[4,Promise.all(i.map((function(o){return t(r,void 0,void 0,(function(){var t,i,r;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e.executeChartGPTChart(o.chartgpt_id)];case 1:return t=n.sent(),[2,a(a({},o),{results:(null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.results)||[]})];case 2:return i=n.sent(),console.error("Failed to execute chart ".concat(o.chartgpt_id,":"),i),[2,a(a({},o),{results:[]})];case 3:return[2]}}))}))})))];case 2:return[2,s.sent()]}}))}))}))}function mw(){return mw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},mw.apply(this,arguments)}
|
|
224
224
|
/**
|
|
225
225
|
* match-sorter-utils
|
|
226
226
|
*
|