@yuno-payments/dashboard-api-mfe 2.0.5 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.js +1 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/queries/audit/audit-subscriptions.query.d.ts +2 -1
- package/build/cjs/types/queries/audit/audit.query.d.ts +4 -0
- package/build/cjs/types/types/audit/audit.d.ts +5 -4
- package/build/esm/index.js +3 -3
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/queries/audit/audit-subscriptions.query.d.ts +2 -1
- package/build/esm/types/queries/audit/audit.query.d.ts +4 -0
- package/build/esm/types/types/audit/audit.d.ts +5 -4
- package/build/index.d.ts +12 -6
- package/package.json +1 -1
package/build/esm/index.js
CHANGED
|
@@ -47,7 +47,7 @@ statuses/index.js:
|
|
|
47
47
|
*
|
|
48
48
|
* This source code is licensed under the MIT license found in the
|
|
49
49
|
* LICENSE file in the root directory of this source tree.
|
|
50
|
-
*/"production"===process.env.NODE_ENV?Lf.exports=function(){if(Df)return zf;Df=1;var e=s,t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useState,r=e.useEffect,o=e.useLayoutEffect,a=e.useDebugValue;function i(e){var n=e.getSnapshot;e=e.value;try{var r=n();return!t(e,r)}catch(e){return!0}}var c="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 o(function(){u.value=s,u.getSnapshot=t,i(u)&&l({inst:u})},[e,s,t]),r(function(){return i(u)&&l({inst:u}),e(function(){i(u)&&l({inst:u})})},[e]),a(s),s};return zf.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:c,zf}():Lf.exports=(qf||(qf=1,"production"!==process.env.NODE_ENV&&function(){function e(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(e){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=s,n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=t.useState,o=t.useEffect,a=t.useLayoutEffect,i=t.useDebugValue,c=!1,u=!1,l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(s,l){c||void 0===t.startTransition||(c=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var d=l();if(!u){var p=l();n(d,p)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),u=!0)}var h=(p=r({inst:{value:d,getSnapshot:l}}))[0].inst,f=p[1];return a(function(){h.value=d,h.getSnapshot=l,e(h)&&f({inst:h})},[s,d,l]),o(function(){return e(h)&&f({inst:h}),s(function(){e(h)&&f({inst:h})})},[s]),i(d),d};Nf.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:l,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Nf);var Uf=Lf.exports;const Bf=Uf.useSyncExternalStore,Mf=i.createContext(void 0),Ff=i.createContext(!1);function Hf(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Mf),window.ReactQueryClientContext):Mf)}const Wf=({context:e}={})=>{const t=i.useContext(Hf(e,i.useContext(Ff)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Vf=({client:e,children:t,context:n,contextSharing:r=!1})=>{i.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),"production"!==process.env.NODE_ENV&&r&&e.getLogger().error("The contextSharing option has been deprecated and will be removed in the next major version");const o=Hf(n,r);return i.createElement(Ff.Provider,{value:!n&&r},i.createElement(o.Provider,{value:e},t))},Gf=i.createContext(!1);Gf.Provider;const Kf=i.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function $f(e,t){return"function"==typeof e?e(...t):!!e}function Qf(e,t){const n=Wf({context:e.context}),r=i.useContext(Gf),o=i.useContext(Kf),a=n.defaultQueryOptions(e);a._optimisticResults=r?"isRestoring":"optimistic",a.onError&&(a.onError=bf.batchCalls(a.onError)),a.onSuccess&&(a.onSuccess=bf.batchCalls(a.onSuccess)),a.onSettled&&(a.onSettled=bf.batchCalls(a.onSettled)),(e=>{e.suspense&&("number"!=typeof e.staleTime&&(e.staleTime=1e3),"number"==typeof e.cacheTime&&(e.cacheTime=Math.max(e.cacheTime,1e3)))})(a),((e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))})(a,o),(e=>{i.useEffect(()=>{e.clearReset()},[e])})(o);const[s]=i.useState(()=>new t(n,a)),c=s.getOptimisticResult(a);if(Bf(i.useCallback(e=>{const t=r?()=>{}:s.subscribe(bf.batchCalls(e));return s.updateResult(),t},[s,r]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),i.useEffect(()=>{s.setOptions(a,{listeners:!1})},[a,s]),((e,t,n)=>(null==e?void 0:e.suspense)&&((e,t)=>e.isLoading&&e.isFetching&&!t)(t,n))(a,c,r))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)}))(a,s,o);if((({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&$f(n,[e.error,r]))({result:c,errorResetBoundary:o,useErrorBoundary:a.useErrorBoundary,query:s.getCurrentQuery()}))throw c.error;return a.notifyOnChangeProps?c:s.trackResult(c)}function Yf(e,t,n){return Qf(Gh(e,t,n),Rf)}function Jf(e,t,n){const r=function(e,t,n){return af(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}(e,t,n),o=Wf({context:r.context}),[a]=i.useState(()=>new jf(o,r));i.useEffect(()=>{a.setOptions(r)},[a,r]);const s=Bf(i.useCallback(e=>a.subscribe(bf.batchCalls(e)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),c=i.useCallback((e,t)=>{a.mutate(e,t).catch(Zf)},[a]);if(s.error&&$f(a.options.useErrorBoundary,[s.error]))throw s.error;return{...s,mutate:c,mutateAsync:s.mutate}}function Zf(){}var Xf;function eg(e){return Jf(function(e){var t=e.payload;return Bh.getInstance().postWebhookV2MultiAccount({payload:t})},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function tg(e){return Jf(function(e){var t=e.code,n=e.accountCode;return Bh.getInstance().deleteWebhookV2(t,n)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function ng(e){return Jf(function(e){var t=e.code,n=e.payload,r=e.accountCode;return Bh.getInstance().updateWebhookV2(t,n,r)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function rg(){return Jf(function(e){var t=e.name,n=e.principal;return Bh.getInstance().postAccount(t,n)})}function og(){return Jf(function(n){var r=e([Xf.ACCOUNT],n.duplicate_order,!0);return Bh.getInstance().duplicateAccount(t(t({},n),{duplicate_order:r}))})}function ag(){return Jf(function(e){return Bh.getInstance().retryDuplicateAccount(e)})}function ig(){return Jf(function(e){var t=e.name,n=e.code,r=e.principal;return Bh.getInstance().patchAccountV2({name:t,code:n,principal:r})})}function sg(){return Jf(function(e){var t=e.account_code;return Bh.getInstance().putAccountPrincipal({account_code:t})})}function cg(){return Jf(function(e){return Bh.getInstance().bulkDisableAccounts(e)},{useErrorBoundary:!1})}function ug(){return Jf(function(e){return Bh.getInstance().bulkEnableAccounts(e)},{useErrorBoundary:!1})}function lg(){return Jf(function(e){var t=e.organizationCode,n=e.userCode,r=e.payload;return Bh.getInstance().putAccountsUserMassive(t,n,r)})}function dg(){return Jf(function(e){var t=e.organizationCode,n=e.userCode,r=e.payload;return Bh.getInstance().deleteAccountsUserMassive(t,n,r)})}function pg(){return Jf(["post-validate-status-connection"],function(e){var t=e.payload,n=e.accountCode;return Bh.getInstance().postValidateStatusConnection({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function hg(){return Jf(["post-change-status-connection"],function(e){var t=e.payload,n=e.accountCode;return Bh.getInstance().postChangeStatusConnection({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function fg(){return Jf(function(e){return Bh.getInstance().putCosts(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function gg(){return Jf(["post-connection"],function(e){var t=e.payload;return Bh.getInstance().postMultiConnection({payload:t}).then(function(e){return null==e?void 0:e.data})})}function mg(){return Jf(["new-post-connection-validate"],function(){return Bh.getInstance().postMultiConnectionValidate().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function yg(){return Jf(["patch-connection"],function(e){var t=e.payload,n=e.connectionCode;return Bh.getInstance().patchConnection({payload:t,connectionCode:n}).then(function(e){return null==e?void 0:e.data})})}function vg(){return Jf(function(e){var t=e.payload;return Bh.getInstance().postDefaultRoutes({payload:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function bg(){return Jf(function(e){return Bh.getInstance().postValidateCredentials(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function kg(){var e=this;return Jf(function(t){var o=t.payload;return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Bh.getInstance().postNetworkTokensOnboarding(o)];case 1:return[2,e.sent().data]}})})},{useErrorBoundary:!1})}function _g(){return Jf(["patch-organizations"],function(){return Bh.getInstance().updateOrganizationStatus().then(function(e){return null==e?void 0:e.data})})}function wg(){var e=this;return Jf(function(t){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Bh.getInstance().changePasswordV2(t).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function Eg(){var e=this;return Jf(function(t){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Bh.getInstance().workosPasswordReset(t).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function xg(){var e=this;return Jf(function(){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Bh.getInstance().workosAdminPortal().then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function Sg(){var e=this;return Jf(function(){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Bh.getInstance().workosDomainVerificationPortal().then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function Cg(){var e=this;return Jf(function(t){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Bh.getInstance().workosVerifyMfa(t).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function Ig(e){return Jf(function(e){return Bh.getInstance().updateProfile(e)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Rg(){return Jf(function(e){return Bh.getInstance().inviteUsersMassive(e,e.organizationCode)})}function Tg(){return Jf(function(e){return Bh.getInstance().inviteUsersMassiveV2(e)})}function Og(){return Jf(function(e){var t=e.userCode,n=e.organizationCode;return Bh.getInstance().unInviteUsersV2({userCode:t,organizationCode:n})})}function Ag(){return Jf(function(e){return Bh.getInstance().postCall(e)})}function Pg(){return Jf(function(e){return Bh.getInstance().changeLoginMethods(e)})}!function(e){e.ACCOUNT="ACCOUNT",e.CHECKOUT_BUILDER="CHECKOUT_BUILDER",e.CONNECTION="CONNECTION",e.ROUTING="ROUTING",e.RISK_CONDITIONS="RISK_CONDITIONS",e.WEBHOOKS="WEBHOOKS"}(Xf||(Xf={}));var jg=function(){var e=c("ON"===localStorage.getItem("isTesting")),t=e[0],n=e[1];return u(function(){var e=function(e){"isTesting"===e.key&&n("ON"===e.newValue)};return window.addEventListener("storage",e),function(){window.removeEventListener("storage",e)}},[]),{isTesting:t}},Dg=function(e){var t=localStorage.getItem(e),n=c(t&&JSON.parse(t)),r=n[0],o=n[1];return u(function(){var t=function(t){if(t.key===e){var n=t.newValue;o(n)}};return window.addEventListener("storage",t),function(){window.removeEventListener("storage",t)}},[e]),r},Lg=function(){var e,t;return null===(t=null===(e=Dg("account"))||void 0===e?void 0:e.value)||void 0===t?void 0:t.organization_code},zg=function(){var e,t=jg().isTesting,n=null===(e=Dg("account"))||void 0===e?void 0:e.value;return(t?null==n?void 0:n.account_code_testing:null==n?void 0:n.account_code_live)||(null==n?void 0:n.code)};function qg(){if("undefined"==typeof window||"undefined"==typeof localStorage)return"dev";var e="ON"===localStorage.getItem("isTesting"),t=window.location.host;return"dashboard.y.uno"===t?e?"sb":"prod":"dashboard.staging.y.uno"===t?"stg":"dev"}function Ng(e){var n=zg(),r=l(n);return r.current=n,Jf(function(e){return Bh.getInstance().updateIsActiveCheckout(t(t({},e),{accountCode:r.current}))},e)}function Ug(e){var n=zg(),r=l(n);return r.current=n,Jf(function(e){return Bh.getInstance().publishCheckout(t(t({},e),{accountCode:r.current}))},e)}function Bg(){return Jf(function(e){var t=e.payload,n=e.transactionId,r=e.paymentId,o=e.action;return Bh.getInstance().createOperationTransaction(t,n,r,o)})}function Mg(){return Jf(function(e){var t=e.payload,n=e.paymentId,r=e.transactionId,o=e.handleSetProgress;return Bh.getInstance().uploadChargebacks(t,n,r,o)})}function Fg(){return Jf(function(e){var t=e.transactionCode,n=e.payload;return Bh.getInstance().postProviderRawResponse(t,n)})}function Hg(){return Jf(function(e){var t=e.paymentId,n=e.payload;return Bh.getInstance().addToRiskList(t,n)})}var Wg=new wf({}),Vg=new class{constructor(e={}){this.queryCache=e.queryCache||new wf,this.mutationCache=e.mutationCache||new Sf,this.logger=e.logger||vf,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=lf.subscribe(()=>{lf.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=pf.subscribe(()=>{pf.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]=Kh(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 r=Gh(e,t,n),o=this.getQueryData(r.queryKey);return o?Promise.resolve(o):this.fetchQuery(r)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){const r=this.queryCache.find(e),o=function(e,t){return"function"==typeof e?e(t):e}(t,null==r?void 0:r.state.data);if(void 0===o)return;const a=Gh(e),i=this.defaultQueryOptions(a);return this.queryCache.build(this,i).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return bf.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]=Kh(e,t),r=this.queryCache;bf.batch(()=>{r.findAll(n).forEach(e=>{r.remove(e)})})}resetQueries(e,t,n){const[r,o]=Kh(e,t,n),a=this.queryCache,i={type:"active",...r};return bf.batch(()=>(a.findAll(r).forEach(e=>{e.reset()}),this.refetchQueries(i,o)))}cancelQueries(e,t,n){const[r,o={}]=Kh(e,t,n);void 0===o.revert&&(o.revert=!0);const a=bf.batch(()=>this.queryCache.findAll(r).map(e=>e.cancel(o)));return Promise.all(a).then(Hh).catch(Hh)}invalidateQueries(e,t,n){const[r,o]=Kh(e,t,n);return bf.batch(()=>{var e,t;if(this.queryCache.findAll(r).forEach(e=>{e.invalidate()}),"none"===r.refetchType)return Promise.resolve();const n={...r,type:null!=(e=null!=(t=r.refetchType)?t:r.type)?e:"active"};return this.refetchQueries(n,o)})}refetchQueries(e,t,n){const[r,o]=Kh(e,t,n),a=bf.batch(()=>this.queryCache.findAll(r).filter(e=>!e.isDisabled()).map(e=>{var t;return e.fetch(void 0,{...o,cancelRefetch:null==(t=null==o?void 0:o.cancelRefetch)||t,meta:{refetchPage:r.refetchPage}})}));let i=Promise.all(a).then(Hh);return null!=o&&o.throwOnError||(i=i.catch(Hh)),i}fetchQuery(e,t,n){const r=Gh(e,t,n),o=this.defaultQueryOptions(r);void 0===o.retry&&(o.retry=!1);const a=this.queryCache.build(this,o);return a.isStaleByTime(o.staleTime)?a.fetch(o):Promise.resolve(a.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(Hh).catch(Hh)}fetchInfiniteQuery(e,t,n){const r=Gh(e,t,n);return r.behavior=Cf(),this.fetchQuery(r)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(Hh).catch(Hh)}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=>Jh(e)===Jh(t.queryKey));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find(t=>Zh(e,t.queryKey));if("production"!==process.env.NODE_ENV){this.queryDefaults.filter(t=>Zh(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=>Jh(e)===Jh(t.mutationKey));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find(t=>Zh(e,t.mutationKey));if("production"!==process.env.NODE_ENV){this.mutationDefaults.filter(t=>Zh(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=Yh(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:Wg});function Gg(){return Jf(function(e){return Bh.getInstance().createReconciliationsReportV2(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Kg(){return Jf(function(e){return Bh.getInstance().createReconciliationsReportV3(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function $g(){return Jf(function(e){return Bh.getInstance().createReportV2(e).then(function(e){return null==e?void 0:e.data})})}function Qg(){return Jf(function(e){return Bh.getInstance().getTotalRowsForExport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function Yg(){return Jf(function(e){return Bh.getInstance().cancelReport(e).then(function(e){return null==e?void 0:e.data})})}function Jg(t){var o=this;return Jf(function(){return n(o,void 0,void 0,function(){return r(this,function(e){return[2,Bh.getInstance().createReportTemplate(t).then(function(e){return null==e?void 0:e.data})]})})},{onMutate:function(t){return n(o,void 0,void 0,function(){var n;return r(this,function(r){switch(r.label){case 0:return[4,Vg.cancelQueries({queryKey:["GET/reports/templates"]})];case 1:return r.sent(),n=Vg.getQueryData(["GET/reports/templates"]),Vg.setQueryData(["GET/reports/templates"],function(n){return e(e([],n,!0),[t],!1)}),[2,{previousTemplates:n}]}})})},onError:function(e,t,n){Vg.setQueryData(["GET/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){Vg.invalidateQueries({queryKey:["GET/reports/templates"]})}})}function Zg(e){return Jf(function(){return Bh.getInstance().updateReportTemplate(e).then(function(e){return null==e?void 0:e.data})})}function Xg(){return Jf(function(e){return Bh.getInstance().deletePaymentsReportTemplate(e).then(function(e){return null==e?void 0:e.data})})}function em(e,t,o){var a=this;void 0===o&&(o=null);var i=(null==o?void 0:o.basePath)||Bd.DEFAULT_ROUTING_TYPE;return Jf(function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Bh.getInstance().postSmartRoutingCreateWorkflow(e,t,i).then(function(e){return null==e?void 0:e.data})];case 1:return[2,n.sent()]}})})},o)}function tm(e,t){var o=this,a=e.versionCode,i=e.accountCode,s=e.organizationCode,c=e.routingType,u=void 0===c?Bd.DEFAULT_ROUTING_TYPE:c;return void 0===t&&(t=null),Jf(function(){return n(o,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Bh.getInstance().postSmartRoutingPublishVersion(i,a,s,u).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})},t)}function nm(e,t){var n=e.data,r=e.accountCode,o=e.routingType,a=void 0===o?Bd.DEFAULT_ROUTING_TYPE:o;return void 0===t&&(t=null),Jf(function(){return Bh.getInstance().putSmartRoutingUpdateWorkflow(r,n,a).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},t)}function rm(e,t){var n=e.versionCode,r=e.accountCode,o=e.routingType,a=void 0===o?Bd.DEFAULT_ROUTING_TYPE:o;return void 0===t&&(t=null),Jf(function(){return Bh.getInstance().deleteSmartRoutingVersion(r,n,a).then(function(e){return null==e?void 0:e.data})},t)}function om(e,t){var n=e.versionCode,r=e.accountCode,o=e.routingType,a=void 0===o?Bd.DEFAULT_ROUTING_TYPE:o;return void 0===t&&(t=null),Jf(function(){return Bh.getInstance().postSmartRoutingDuplicateVersion(r,String(n),a).then(function(e){return null==e?void 0:e.data})},t)}function am(e,t){var n=e.paymentMethod,r=e.active,o=e.accountCode,a=e.routingType,i=void 0===a?Bd.DEFAULT_ROUTING_TYPE:a;return void 0===t&&(t=null),Jf(function(){return Bh.getInstance().putSmartRoutingToggleMethod(o,n,r,i).then(function(e){return null==e?void 0:e.data})},t)}function im(e,t){var o=this;return void 0===t&&(t=null),Jf(function(t){return n(o,void 0,void 0,function(){var n,o,a,i,s,c;return r(this,function(r){switch(r.label){case 0:return n=Bh.getInstance(),o=t.map(function(t){return n.putSmartRoutingToggleMethod(e,t.paymentMethod,t.active,t.routingType)}),[4,Promise.allSettled(o)];case 1:return a=r.sent(),i=a.filter(function(e){return"rejected"===e.status}),s=a.filter(function(e){return"fulfilled"===e.status}),c=i.map(function(e,n){return{paymentMethod:t[n].paymentMethod,error:"rejected"===e.status?e.reason:null}}),[2,{success:s.length,failed:i.length,total:t.length,errors:c}]}})})},t)}function sm(e,t){var n=e.declinedId,r=e.accountCode;return void 0===t&&(t=null),Jf(function(e){return void 0===e&&(e=null),Bh.getInstance().updateSmartRoutingDeclinedGroup(r,n,e).then(function(e){return null==e?void 0:e.data})},t)}function cm(e){var t=e.accountCode;return Jf(function(e){return void 0===e&&(e=null),Bh.getInstance().createSmartRoutingDeclinedGroup(t,e).then(function(e){return null==e?void 0:e.data})},e.options)}function um(e,t){var n=e.versionCode,r=e.accountCode,o=e.routingType,a=void 0===o?Bd.DEFAULT_ROUTING_TYPE:o;return void 0===t&&(t=null),Jf(function(e){return void 0===e&&(e=!1),Bh.getInstance().updateSmartRoutingFavorite(r,n,e,a).then(function(e){return null==e?void 0:e.data})},t)}function lm(e,t){var n=e.code,r=e.name,o=e.accountCode,a=e.routingType,i=void 0===a?Bd.DEFAULT_ROUTING_TYPE:a;return void 0===t&&(t=null),Jf(function(){return Bh.getInstance().putSmartRoutingUpdateWorkflowName(o,{code:n,name:r},i).then(function(e){return null==e?void 0:e.data})},t)}function dm(e,t){var n=e.accountCode,r=e.workflowVersionCode,o=e.routingType,a=void 0===o?Bd.DEFAULT_ROUTING_TYPE:o;return void 0===t&&(t=null),Jf(function(e){return Bh.getInstance().simulateSmartRoutingTransaction(n,r,e,a).then(function(e){return null==e?void 0:e.data})},t)}function pm(e,t){return void 0===t&&(t=null),Jf(function(t){return Bh.getInstance().updateMonitorRedistribution(e,t).then(function(e){return null==e?void 0:e.data})},t)}function hm(e,n){return void 0===n&&(n={}),Jf(function(t){var n=t.declinedGroupCode;return Bh.getInstance().removeDeclinedGroup(e,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},t(t({},n),{useErrorBoundary:!1}))}function fm(e,n){return void 0===n&&(n={}),Jf(function(t){var n=t.payload;return Bh.getInstance().multiAccountDeclinedGroupCreate(e,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},t(t({},n),{useErrorBoundary:!1}))}var gm=function(e){return Jf(function(t){return Bh.getInstance().createMonitorThreshold(t,e).then(function(e){return e.data})})},mm=function(e){return Jf(function(t){return Bh.getInstance().createMonitorTemplate(t,e).then(function(e){return e.data})})};function ym(){return Jf(function(e){var t=e.payload;return Bh.getInstance().postSlackFeatureNotification(t).then(function(e){return null==e?void 0:e.data})})}function vm(){return Jf(function(e){var t=e.userCode,n=e.organizationCode;return Bh.getInstance().deleteUserTeamV2({userCode:t,organizationCode:n}).then(function(e){return null==e?void 0:e.data})})}function bm(){return Jf(function(){return Bh.getInstance().setCustodian().then(function(e){return null==e?void 0:e.data})})}function km(){return Jf(function(e){var t=e.payload,n=e.accountCode;return Bh.getInstance().createRoles(t,n).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function _m(){var e=this;return Jf(function(t){var o=t.payload,a=t.id,i=t.accountCode;return n(e,void 0,void 0,function(){var e;return r(this,function(t){switch(t.label){case 0:return[4,Bh.getInstance().editRoles({payload:o,id:a},i)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}})})},{useErrorBoundary:!1})}function wm(){return Jf(function(e){return Bh.getInstance().deleteRoles(e).then(function(e){return null==e?void 0:e.data})})}function Em(){return Jf(function(e){var t=e.payload;return Bh.getInstance().createOrgRole(t).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function xm(){var e=this;return Jf(function(t){var o=t.payload,a=t.id;return n(e,void 0,void 0,function(){var e;return r(this,function(t){switch(t.label){case 0:return[4,Bh.getInstance().editOrgRole({payload:o,id:a})];case 1:return[2,null==(e=t.sent())?void 0:e.data]}})})},{useErrorBoundary:!1})}function Sm(){return Jf(function(e){return Bh.getInstance().deleteOrgRole(e).then(function(e){return null==e?void 0:e.data})})}function Cm(){return Jf(function(e){return Bh.getInstance().startUserExport({accountCodes:e.account_codes,name:e.name,search:e.search,statuses:e.statuses,roleIds:e.role_ids}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Im(){return Jf(["post-payment-links"],function(e){var t=e.payload,n=e.accountCode;return Bh.getInstance().postPaymentLinks({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data})})}function Rm(){return Jf(["post-delete-payment-link"],function(e){var t=e.code;return Bh.getInstance().postDeletePaymentLink({code:t}).then(function(e){return null==e?void 0:e.data})})}function Tm(){return Jf(["patch-payment-links"],function(e){var t=e.payload,n=e.accountCode,r=e.paymentLinkCode;return Bh.getInstance().patchPaymentLinks({payload:t,accountCode:n,paymentLinkCode:r}).then(function(e){return null==e?void 0:e.data})})}function Om(){return Jf(["upload-payment-link-logo"],function(e){var t=e.payload;return Bh.getInstance().uploadPaymentLinkLogo({payload:t}).then(function(e){return null==e?void 0:e.data})})}function Am(){return Jf(["post-subscription"],function(e){return Bh.getInstance().postSubscription(e).then(function(e){return null==e?void 0:e.data})})}function Pm(){return Jf(["post-pause-subscription"],function(e){var t=e.subscriptionCode;return Bh.getInstance().postPauseSubscription(t).then(function(e){return null==e?void 0:e.data})})}function jm(){return Jf(["post-resume-subscription"],function(e){var t=e.subscriptionCode;return Bh.getInstance().postResumeSubscription(t).then(function(e){return null==e?void 0:e.data})})}function Dm(){return Jf(["post-cancel-subscription"],function(e){var t=e.subscriptionCode;return Bh.getInstance().postCancelSubscription(t).then(function(e){return null==e?void 0:e.data})})}function Lm(){return Jf(["patch-subscription"],function(e){var t=e.subscriptionCode,n=e.payload;return Bh.getInstance().patchSubscription(t,n).then(function(e){return null==e?void 0:e.data})})}function zm(){return Jf(["post-reschedule-subscription"],function(e){var t=e.subscriptionCode;return Bh.getInstance().postRescheduleSubscription(t).then(function(e){return null==e?void 0:e.data})})}function qm(){return Jf(["post-list-subscriptions"],function(e){return Bh.getInstance().postListSubscriptions(e).then(function(e){return null==e?void 0:e.data})})}function Nm(){return Jf(function(e){var t=e.payload;return Bh.getInstance().postUserSettings(t)},{onMutate:function(e){return e}})}function Um(){return Jf(function(e){return Bh.getInstance().postUserThemeSettings(e)})}function Bm(){return Jf(function(e){var t=e.payload,n=e.section;return Bh.getInstance().postUserSettingsTables(t,n)},{onMutate:function(e){return e},onSuccess:function(e){var n=Vg.getQueryData(["fetch-profile"]);e.data&&Vg.setQueryData(["fetch-profile"],t(t({},n),{settings:e.data}))}})}function Mm(e){return Jf(["pinned-sections"],function(e){var t=e.payload;return Bh.getInstance().postUserSettingsPinned(t)},{onMutate:function(t){var n=t.payload;return e({payload:n})}})}function Fm(){return Yf(["fetch-profile"],function(){return Bh.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 Hm(){var e=this;return Yf(["get-user-full"],function(){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Bh.getInstance().getUserFull()];case 1:return[2,e.sent().data]}})})},{keepPreviousData:!0,useErrorBoundary:!1})}function Wm(e,t){return Yf(["fetch-permissions",e,t],function(){var e,t,n,r=localStorage.getItem("account"),o=localStorage.getItem("user"),a=r&&JSON.parse(r),i=o&&JSON.parse(o);return((null==i?void 0:i.merlin)?null===(e=null==i?void 0:i.merlin)||void 0===e?void 0:e.permissions:null===(n=null===(t=null==a?void 0:a.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 Vm(e){return Yf(["email-verification",e],function(){return Bh.getInstance().emailVerification(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e})}function Gm(){return Yf({queryKey:["get-login-methods"],queryFn:function(){return Bh.getInstance().getLoginMethods().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})}})}function Km(){return Yf(["fetch-impersonation-users"],function(){return Bh.getInstance().getImpersonationUsers().then(function(e){var t;return(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.result)||[]})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function $m(){return Yf(["fetch-impersonation-enabled"],function(){return Bh.getInstance().getImpersonationEnabled().then(function(e){return null==e?void 0:e.data})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Qm(e,t,o,a,i,s){var c=this;return void 0===o&&(o=1),void 0===a&&(a=10),Yf(["get-users-to-impersonate",e,t,o,a,i,s],function(){return n(c,void 0,void 0,function(){return r(this,function(n){return[2,Bh.getInstance().getUsersToImpersonate(e,t,o,a,i,s).then(function(e){return null==e?void 0:e.data})]})})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function Ym(e){var t;return Yf(["fetch-communications",e],function(){return Bh.getInstance().getCommunications(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null===(t=e.account_codes)||void 0===t?void 0:t.length),useErrorBoundary:!1,cacheTime:3e3})}function Jm(){return Yf(["fetch-communications-filters"],function(){return Bh.getInstance().getCommunicationsFilters().then(function(e){return null==e?void 0:e.data})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Zm(e,t){return Yf(["fetch-communication-details",e],function(){return Bh.getInstance().getCommunicationDetails(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e,useErrorBoundary:!1,cacheTime:0})}var Xm=["fetch-profile"];function ey(n,r,o){var a,i,s=Fm(),c=Nm().mutate,u=s.data,l=s.isLoading||!s.isFetched,p=null!==(i=null===(a=null==u?void 0:u.settings)||void 0===a?void 0:a.viewed_tutorials)&&void 0!==i?i:[],h="onboarding-".concat(null!=n?n:"default","-").concat(r,"-").concat(o),f=p.includes(h),g=d(function(){var n=null;Vg.setQueryData(Xm,function(r){var o,a,i;if(!r)return r;var s=null!==(a=null===(o=r.settings)||void 0===o?void 0:o.viewed_tutorials)&&void 0!==a?a:[];if(s.includes(h))return r;var c=e(e([],s,!0),[h],!1);return n=c,t(t({},r),{settings:t(t({},null!==(i=r.settings)&&void 0!==i?i:{}),{viewed_tutorials:c})})}),n&&c({payload:{viewed_tutorials:n}})},[h,c]);return{hasSeenOnboarding:f,dismiss:g,id:h,isProfileLoading:l}}function ty(){return Jf(function(e){var t=e.password,n=e.otp;return Bh.getInstance().getMfaTokenValidation(t,n).then(function(e){return null==e?void 0:e.data})})}function ny(){return Jf(function(){return Bh.getInstance().getEmailOtp().then(function(e){return null==e?void 0:e.data})})}function ry(){return Jf(function(e){return Bh.getInstance().confirmMfaOtp(e).then(function(e){return null==e?void 0:e.data})})}function oy(){return Jf(function(e){return Bh.getInstance().unrollMfa(e).then(function(e){return null==e?void 0:e.data})})}function ay(){return Jf(function(){return Bh.getInstance().validatePasswordStatus().then(function(e){return null==e?void 0:e.data}).catch(function(e){return{valid:!1}})})}function iy(){return Jf(["post-get-allowlist-items"],function(e){var t=e.payload;return Bh.getInstance().postAllowlistItems({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function sy(){return Jf(["post-get-allowlist-multi-account"],function(e){var t=e.payload;return Bh.getInstance().postGetAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function cy(){return Jf(["post-create-allowlist-multi-account"],function(e){var t=e.payload;return Bh.getInstance().postCreateAllowlistMultiAccount({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function uy(){return Jf(["patch-change-status-allowlist"],function(e){var t=e.payload;return Bh.getInstance().patchChangeStatusAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function ly(){return Jf(["patch-change-status-allowlist-item"],function(e){var t=e.payload;return Bh.getInstance().patchChangeStatusAllowlistItem({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function dy(){return Jf(["post-add-allowlist-items"],function(e){var t=e.payload;return Bh.getInstance().patchAddAllowlistItems({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function py(){return Jf(["patch-allowlist"],function(e){var t=e.payload;return Bh.getInstance().patchAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function hy(){return Jf(["post-blacklist-multi-account"],function(e){var t=e.payload;return Bh.getInstance().postBlackListMultiAccount({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function fy(){return Jf(["put-blacklist"],function(e){return Bh.getInstance().putBlackListType(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function gy(){return Jf(["change-blacklist"],function(e){return Bh.getInstance().changeBlackListStatus(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function my(){return Jf(["change-blacklist-item"],function(e){return Bh.getInstance().changeBlackListStatusItem(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function yy(){return Jf(["post-blacklist-items"],function(e){var t=e.payload,n=e.accountCode;return Bh.getInstance().postBlackListItems({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function vy(){return Jf(["delete-blacklist"],function(e){var t=e.black_list_code;return Bh.getInstance().deleteBlackListType({black_list_code:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function by(e){var t=e.handleSetProgress;return Jf(["post-blacklist-batch"],function(e){var n=e.blacklist_code,r=e.expiration_days,o=e.file,a=e.accountCode;return Bh.getInstance().postBlackListBatch({blacklist_code:n,expiration_days:r,file:o,handleSetProgress:t,accountCode:a}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function ky(){return Jf(["change-payments-webhook"],function(e){var t=e.status,n=e.paymentCode;return Bh.getInstance().postChangePaymentsWebhook({status:t,paymentCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function _y(){return Jf(["delete-blacklist-items"],function(e){var t=e.blocklist_code,n=e.blocklist_item_id,r=e.account_code;return Bh.getInstance().deleteBlockListItem({blocklist_code:t,blocklist_item_id:n,account_code:r}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function wy(){return Jf(["valiate-blacklist-items"],function(e){return Bh.getInstance().valiateBlockListItems({payload:e}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Ey(){return Jf(["delete-allowlist-item"],function(e){return Bh.getInstance().deleteAllowlistItem({payload:e}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function xy(){return Jf(["validate-allowlist-items"],function(e){return Bh.getInstance().validateAllowlistItems({payload:e}).then(function(e){return e.data}).catch(function(e){return e})})}function Sy(e){var t=e.fileName,n=e.onSuccess,r=e.onError,o=c(0),a=o[0],i=o[1],s=l({cancel:function(){return null}}),u=Jf(["upload-file-chargeback",t],function(e){var t=Bh.getInstance().uploadFileS3ClientBatchRefunds({payload:e,handleSetProgress:i}),o=t.promise,a=t.cancel;return s.current.cancel=a,o.then(function(e){return null==n||n(null==e?void 0:e.data),null==e?void 0:e.data}).catch(function(e){throw null==r||r(),e})},{useErrorBoundary:!1});return{mutation:u,cancelRequest:s.current.cancel,progress:a}}function Cy(){return Jf(function(e){return Bh.getInstance().uploadBatchRefundsV2({payload:e}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Iy(){var e=this;return Jf(function(t){return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Bh.getInstance().batchRefundByFile({payload:t}).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})}function Ry(){var e=this;return Jf(function(t){var o=t.batchRefundId,a=t.organizationCode,i=t.accountCode;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Bh.getInstance().getBatchRefundProcessedFileDownload(o,a,i).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})}function Ty(){var e=this;return Jf(function(t){var o=t.batchRefundId,a=t.organizationCode,i=t.accountCode;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Bh.getInstance().getBatchRefundUserFileDownload(o,a,i).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})}function Oy(){var e=l({cancel:function(){return null}}),t=Jf(["upload-file"],function(t){var n=Bh.getInstance().uploadFileS3ClientBatchRefunds({payload:t}),r=n.promise,o=n.cancel;return e.current.cancel=o,r.then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})});return{mutation:t,cancelRequest:e.current.cancel}}function Ay(){return Jf(function(e){var t=e.payload,n=e.organizationCode;return Bh.getInstance().updateMFAConfig(t,n)})}function Py(){return Jf(function(e){var t=e.payload,n=e.organizationCode;return Bh.getInstance().mfaExcludeUsers(t,n)})}function jy(e){return Yf(["GET/scheduled-reports",e],function(){return Bh.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 Dy(){return Jf(function(e){var t=e.payload;return Bh.getInstance().postScheduledReport(t).then(function(e){return{data:e.data,status:e.status}}).catch(function(e){return e})})}function Ly(){return Jf(function(e){var t=e.reportCode,n=e.payload;return Bh.getInstance().updateScheduledReport(t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function zy(){return Jf(function(e){return Bh.getInstance().deleteScheduledReport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function qy(){return Jf(function(e){return Bh.getInstance().getConditionalConfigRules(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Ny(){return Jf(function(e){return Bh.getInstance().getRule(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Uy(){return Jf(function(e){var t=e.payload,n=e.accountCode;return Bh.getInstance().postCreateRuleMultiAccount(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function By(){return Jf(function(e){var t=e.payload,n=e.ruleId,r=e.accountCode;return Bh.getInstance().postEditRule(t,n,r).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function My(){return Jf(function(e){var t=e.payload;return Bh.getInstance().postCreateCustomizedApiKeys(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Fy(){return Jf(function(e){var t=e.payload,n=e.code;return Bh.getInstance().pathCreateCustomizedApiKeys(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Hy(){return Jf(function(e){var t=e.code,n=e.password,r=e.otp,o=e.mfaToken;return Bh.getInstance().getCustomizedApiKeysToken(t,n,r,o).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})}function Wy(){return Jf(function(e){var t=e.passwordOtp;return Bh.getInstance().getDeveloperCredentialsValidatePassword(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})}function Vy(){return Jf(function(e){var t=e.password;return Bh.getInstance().getDeveloperCredentialsValidatePasswordRegularUser(t).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function Gy(){return Jf(function(e){var t=e.code;return Bh.getInstance().deleteCustomizedApiKeys(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Ky(){return Jf(function(e){var t=e.payload,n=e.code,r=e.password;return Bh.getInstance().patchApiKeysEditNote(t,n,r).then(function(e){return e.data}).catch(function(e){return e})})}function $y(){return Jf(function(e){var t=e.payload,n=e.code,r=e.password;return Bh.getInstance().postApiKeysRoll(t,n,r).then(function(e){return e.data}).catch(function(e){return e})})}function Qy(){return Jf(function(e){var n=e.password,r=e.accountCode,o=e.otp,a=e.mfaToken;return Bh.getInstance().getDeveloperCredentials(n,r,o,a).then(function(e){return t(t({},null==e?void 0:e.data),{isValid:!0})}).catch(function(e){var t,n,r;return{isValid:!1,status:null===(t=e.response)||void 0===t?void 0:t.status,error:null===(r=null===(n=null==e?void 0:e.response)||void 0===n?void 0:n.data)||void 0===r?void 0:r.data}})})}function Yy(){return Jf(function(e){var t=e.password,n=e.accountCode,r=e.otp,o=e.mfaToken;return Bh.getInstance().getDeveloperCredentials(t,n,r,o).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})}function Jy(){return Jf(function(){return Bh.getInstance().getOrganizationKeysMetadata().then(function(e){return(null==e?void 0:e.data)||null})})}function Zy(){return Jf(function(e){var t=e.note,n=e.password;return Bh.getInstance().patchOrganizationKeysNote({note:t},n).then(function(e){return(null==e?void 0:e.data)||null})})}function Xy(){return Jf(function(e){var t=e.password,n=e.otp,r=e.mfaToken;return Bh.getInstance().postOrganizationKeysRoll(t,n,r).then(function(e){return(null==e?void 0:e.data)||null})})}function ev(){return Jf(function(e){var t=e.password,n=e.otp,r=e.mfaToken;return Bh.getInstance().postOrganizationKeysTamRequest(t,n,r).then(function(e){return(null==e?void 0:e.data)||null})})}function tv(){return Jf(function(e){var t=e.password,n=e.otp,r=e.mfaToken;return Bh.getInstance().postOrganizationKeysMarkRevealed(t,n,r).then(function(e){return(null==e?void 0:e.data)||null})})}function nv(e){return Jf(function(e){var t=e.payload;return Bh.getInstance().postAuditMonitors(t)},{onMutate:e.onMutate})}function rv(){return Jf(function(e){var t=e.codes;return Bh.getInstance().postResendWebhooks({codes:t}).then(function(e){return null==e?void 0:e.data})})}function ov(){return Jf(function(e){var t=e.tab,n=e.payload;return Bh.getInstance().postUnifiedExport(t,n).then(function(e){return null==e?void 0:e.data})})}function av(){return Jf(function(e){return Bh.getInstance().postExportApiLogs(e).then(function(e){return null==e?void 0:e.data})})}function iv(){return Jf(function(e){return Bh.getInstance().postExportWebhooksLogs(e).then(function(e){return null==e?void 0:e.data})})}function sv(){return Jf(function(e){return Bh.getInstance().postExportDashboardLogs(e).then(function(e){return null==e?void 0:e.data})})}function cv(){return Jf(function(e){return Bh.getInstance().postExportMonitorsLogs(e).then(function(e){return null==e?void 0:e.data})})}function uv(e){var t,n,r=null===(t=e.response)||void 0===t?void 0:t.data;if(r)return r.code||(null===(n=r.data)||void 0===n?void 0:n.code)}function lv(){var e=Wf();return Jf(["create-audit-subscription"],function(e){return Bh.getInstance().createAuditSubscription(e).then(function(e){return{alreadyExists:!1,subscription:null==e?void 0:e.data}}).catch(function(e){var t;if(409===(null===(t=e.response)||void 0===t?void 0:t.status)&&"subscription_already_exists"===uv(e))return{alreadyExists:!0};throw e})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["audit-subscriptions"])}})}function dv(){var e=Wf();return Jf(["delete-audit-subscription"],function(e){return Bh.getInstance().deleteAuditSubscription(e).then(function(){}).catch(function(e){var t;if(404!==(null===(t=e.response)||void 0===t?void 0:t.status)||"subscription_not_found"!==uv(e))throw e})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["audit-subscriptions"])}})}function pv(t){var o=this;return Jf(function(){return Bh.getInstance().createReconciliationReportTemplate(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{onMutate:function(t){return n(o,void 0,void 0,function(){var n,o;return r(this,function(r){switch(r.label){case 0:return[4,Vg.cancelQueries({queryKey:["GET/reconciliation/reports/templates"]})];case 1:return r.sent(),n=null===(o=Vg.getQueryData(["GET/reconciliation/reports/templates"]))||void 0===o?void 0:o.templates,Vg.setQueryData(["GET/reconciliation/reports/templates"],function(n){return{templates:e(e([],n.templates,!0),[t],!1)}}),[2,{previousTemplates:n}]}})})},onError:function(e,t,n){Vg.setQueryData(["GET/reconciliation/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){Vg.invalidateQueries({queryKey:["GET/reconciliation/reports/templates"]})},useErrorBoundary:!1})}function hv(e){return Jf(function(){return Bh.getInstance().updateReconciliationReportTemplate(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{useErrorBoundary:!1})}function fv(){return Jf(["POST/reconciliation/alerts"],function(e){return Bh.getInstance().postReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Vg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function gv(){return Jf(["DELETE/reconciliation/alerts"],function(e){return Bh.getInstance().deleteReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Vg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function mv(){return Jf(["UPDATE/reconciliation/alerts"],function(e){return Bh.getInstance().updateReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Vg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function yv(){return Jf(function(e){var t=e.payload;return Bh.getInstance().postCreateInsightsReport(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function vv(){return Jf(function(e){return Bh.getInstance().createSamlConfig(e)})}function bv(){return Jf(function(e){return Bh.getInstance().updateSamlConfig(e)})}function kv(){return Jf(function(){return Bh.getInstance().deleteSamlConfig()})}function _v(e,n){return void 0===n&&(n={}),Jf(function(t){return Bh.getInstance().generateAIWorkflowRoutes(e,t).then(function(e){return null==e?void 0:e.data})},t(t({},n),{useErrorBoundary:!1}))}function wv(e){return void 0===e&&(e={}),Jf(function(e){return Bh.getInstance().postAIGenerationFeedback(e).then(function(e){return null==e?void 0:e.data})},t(t({},e),{useErrorBoundary:!1}))}function Ev(){return Jf(function(e){return Bh.getInstance().createChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function xv(){return Jf(function(e){return Bh.getInstance().deleteChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Sv(){return Jf(function(e){var t=e.chart_id,n=e.type,r=e.name,o=e.user_prompt,a=void 0===o?"":o;return Bh.getInstance().patchChartGPTChart(t,{type:n,name:r,user_prompt:a}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Cv(){var e=this;return Jf(function(t){return n(e,void 0,void 0,function(){var e,n,o,a,i;return r(this,function(r){switch(r.label){case 0:return[4,Bh.getInstance().createChartGPTChart(t)];case 1:if(e=r.sent(),!(n=null!==(a=null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.chartgpt_id)&&void 0!==a?a:null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.chart_id))throw new Error("Failed to create chart: No chart ID returned");return[2,{chart_id:n}]}})})},{useErrorBoundary:!1})}function Iv(){return Jf(function(e){return Bh.getInstance().createChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Rv(){var e=this;return Jf(function(t){return n(e,void 0,void 0,function(){var e,n,o,a,i;return r(this,function(r){switch(r.label){case 0:return[4,Bh.getInstance().createChartGPTChart(t)];case 1:if(e=r.sent(),!(n=null!==(a=null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.chartgpt_id)&&void 0!==a?a:null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.chart_id))throw new Error("Failed to create chart: No chart ID returned");return[2,{chart_id:n}]}})})},{useErrorBoundary:!1})}function Tv(e,t){var n=e.chartCode,r=Wf();return Jf(function(e){return Bh.getInstance().submitChartFeedback(n,{rating:e.rating,issues:e.issues||[],comment:e.comment}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(e){var o;r.invalidateQueries(["chart-feedback",n]),null===(o=null==t?void 0:t.onSuccess)||void 0===o||o.call(t,e)},onError:function(e){var n;null===(n=null==t?void 0:t.onError)||void 0===n||n.call(t,e)}})}function Ov(){var e=this;return Jf(["POST/template-reporting/report-templates"],function(t){return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Bh.getInstance().createTemplateReporting(t).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Vg.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function Av(){var e=this;return Jf(["POST/template-reporting/report-templates/clone"],function(t){var o=t.templateId,a=t.payload;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Bh.getInstance().cloneReportTemplate(o,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Vg.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function Pv(){var e=this;return Jf(["PATCH/template-reporting/report-templates/selection"],function(t){var o=t.templateId,a=t.payload;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Bh.getInstance().updateTemplateSelection(o,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Vg.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function jv(){var e=this;return Jf(["PATCH/template-reporting/report-templates/status"],function(t){var o=t.templateId,a=t.payload;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Bh.getInstance().changeTemplateStatus(o,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Vg.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function Dv(){var e=this;return Jf(["DELETE/template-reporting/report-templates"],function(t){var o=t.templateId,a=t.payload;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Bh.getInstance().deleteReportTemplate(o,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Vg.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function Lv(){var e=this;return Jf(["POST/template-reporting/report-schedules"],function(t){return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Bh.getInstance().createReportSchedule(t).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Vg.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})}function zv(){var e=this;return Jf(["PATCH/template-reporting/report-schedules/disable"],function(t){var o=t.scheduleId,a=t.payload;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Bh.getInstance().disableReportSchedule(o,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Vg.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})}function qv(){var e=this;return Jf(["DELETE/template-reporting/report-schedules"],function(t){var o=t.scheduleId,a=t.payload;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Bh.getInstance().deleteReportSchedule(o,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Vg.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})}function Nv(){return Jf(function(e){return Bh.getInstance().postOrganizationConfigs(e)})}function Uv(){return Jf(function(e){return Bh.getInstance().putOrganizationConfigsByAccount(e)})}function Bv(){return Jf(["create-installments-plan"],function(e){var t=e.payload;return Bh.getInstance().createInstallmentsPlan(t).then(function(e){return null==e?void 0:e.data})})}function Mv(){return Jf(["update-installments-plan"],function(e){var t=e.code,n=e.payload;return Bh.getInstance().updateInstallmentsPlan(t,n).then(function(e){return null==e?void 0:e.data})})}function Fv(){return Jf(["delete-installments-plan"],function(e){var t=e.code;return Bh.getInstance().deleteInstallmentsPlan(t).then(function(e){return null==e?void 0:e.data})})}function Hv(){return Jf(["bulk-create-installments-plans"],function(e){var t=e.payload;return Bh.getInstance().bulkCreateInstallmentsPlans(t).then(function(e){return null==e?void 0:e.data})})}function Wv(){return Jf(["bulk-delete-installments-plans"],function(e){var t=e.payload;return Bh.getInstance().bulkDeleteInstallmentsPlans(t).then(function(e){return null==e?void 0:e.data})})}function Vv(){return Jf(function(e){var t=e.accountCode,n=e.payload;return Bh.getInstance().createRecipientExport(n,t).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Gv(){return Jf(function(e){var t=e.accountCode,n=e.exportCode;return Bh.getInstance().downloadRecipientExport(n,t).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Kv(){var e=Wf();return Jf(["create-recipient"],function(e){var t=e.organizationCode,n=e.payload;return Bh.getInstance().createRecipient(t,n).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})}function $v(){var e=Wf();return Jf(["update-recipient"],function(e){var t=e.organizationCode,n=e.recipientId,r=e.payload;return Bh.getInstance().updateRecipient(t,n,r).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})}function Qv(){var e=Wf();return Jf(["delete-recipient"],function(e){var t=e.organizationCode,n=e.recipientId;return Bh.getInstance().deleteRecipient(t,n).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})}function Yv(){var e=Wf();return Jf(["create-onboarding"],function(e){var t=e.organizationCode,n=e.recipientId,r=e.payload;return Bh.getInstance().createOnboarding(t,n,r).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})}function Jv(){var e=Wf();return Jf(["update-onboarding"],function(e){var t=e.organizationCode,n=e.recipientId,r=e.onboardingId,o=e.payload;return Bh.getInstance().updateOnboarding(t,n,r,o).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})}function Zv(){var e=Wf();return Jf(["block-onboarding"],function(e){var t=e.organizationCode,n=e.recipientId,r=e.onboardingId;return Bh.getInstance().blockOnboarding(t,n,r).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})}function Xv(){var e=Wf();return Jf(["unblock-onboarding"],function(e){var t=e.organizationCode,n=e.recipientId,r=e.onboardingId;return Bh.getInstance().unblockOnboarding(t,n,r).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})}var eb="GET/concierge/access",tb="GET/concierge/access-requests/me";function nb(){return Yf([eb],function(){return Bh.getInstance().getConciergeAccess().then(function(e){return e.data})},{useErrorBoundary:!1})}function rb(){return Yf([tb],function(){return Bh.getInstance().getConciergeAccessRequestStatus().then(function(e){return e.data})},{useErrorBoundary:!1})}function ob(){return Jf(["PUT/concierge/access"],function(e){return Bh.getInstance().updateConciergeAccess(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Vg.invalidateQueries([eb])},useErrorBoundary:!1})}function ab(){return Jf(["POST/concierge/briefs"],function(e){return Bh.getInstance().createConciergeBrief(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Vg.invalidateQueries([eb])},useErrorBoundary:!1})}function ib(){return Jf(["PUT/concierge/briefs"],function(e){var t=e.briefId,n=e.payload;return Bh.getInstance().updateConciergeBrief(t,n).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Vg.invalidateQueries([eb])},useErrorBoundary:!1})}function sb(){return Jf(["POST/concierge/access-requests"],function(e){return Bh.getInstance().createConciergeAccessRequest(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Vg.invalidateQueries([tb])},useErrorBoundary:!1})}function cb(){return Jf(["DELETE/concierge/briefs"],function(e){return Bh.getInstance().deleteConciergeBrief(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Vg.invalidateQueries([eb])},useErrorBoundary:!1})}function ub(){return Jf(function(e){var t=e.payload;return Bh.getInstance().postPlaygroundExecuteFlow(t).then(function(e){return null==e?void 0:e.data})})}function lb(){return Jf(["post-integration-request"],function(e){var t=e.payload;return Bh.getInstance().postIntegrationRequest({payload:t}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function db(){var e=Wf();return Jf(["create-certificate"],function(e){var t=e.organizationCode,n=e.accountCode,r=e.payload;return Bh.getInstance().createCertificate(t,n,r).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["certificates"])}})}function pb(){var e=Wf();return Jf(["update-certificate-accounts"],function(e){var t=e.organizationCode,n=e.accountCode,r=e.certificateCode,o=e.payload;return Bh.getInstance().updateCertificateAccounts(t,n,r,o).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["certificates"])}})}function hb(){var e=Wf();return Jf(["delete-certificate"],function(e){var t=e.organizationCode,n=e.accountCode,r=e.certificateCode;return Bh.getInstance().deleteCertificate(t,n,r).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["certificates"])}})}function fb(){var e=Wf();return Jf(["delete-certificate-account"],function(e){var t=e.organizationCode,n=e.accountCode,r=e.certificateCode,o=e.accountCodeToRemove;return Bh.getInstance().deleteCertificateAccount(t,n,r,o).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["certificates"])}})}var gb;function mb(e){var t=this;return Yf(["fetch-payments-lazy",e],function(){return n(t,void 0,void 0,function(){return r(this,function(t){return[2,Bh.getInstance().postPaymentsLazy(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function yb(e){return Yf(["fetch-payments-evaluated",e],function(){return Bh.getInstance().postPaymentsEvaluated(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function vb(e){var t=this,o=e.paymentCode,a=e.enabled,i=void 0===a||a,s=Bh.getInstance();return Yf(["get-payment-v2",o],function(){return n(t,void 0,void 0,function(){return r(this,function(e){return[2,s.getPaymentV2(o).then(function(e){return e.data})]})})},{enabled:i,cacheTime:500,useErrorBoundary:!1})}function bb(e){var t=this,o=e.payment_code,a=e.enabled,i=void 0===a||a,s=Bh.getInstance();return Yf(["get-payment-transaction-details-v2",o],function(){return n(t,void 0,void 0,function(){return r(this,function(e){return[2,s.getTransactionDetailsV2({payment_code:o}).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!o&&i,cacheTime:0,useErrorBoundary:!1})}function kb(e){var t=this,o=e.transaction_code,a=e.enabled,i=void 0===a||a,s=Bh.getInstance();return Yf(["get-payment-transaction-raw-response",o],function(){return n(t,void 0,void 0,function(){return r(this,function(e){return[2,s.getTransactionRawResponse({transaction_code:o})]})})},{enabled:!!o&&i,cacheTime:0,useErrorBoundary:!1})}function _b(e){var t=Lg();return Yf(["payment-methods",e],function(){return Bh.getInstance().getPaymentMethodsByCountry({provider_id:null==e?void 0:e.provider_id,country:null==e?void 0:e.country},t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!(null==e?void 0:e.provider_id),useErrorBoundary:!1})}function wb(){return Yf({queryKey:["/payment-methods/providers"],queryFn:function(){return Bh.getInstance().getPaymentMethodsAndProviders().then(function(e){return null==e?void 0:e.data})},cacheTime:864e5,useErrorBoundary:!1})}function Eb(){return Yf(["GET/catalog/card-brands"],function(){return Bh.getInstance().getCardBrands().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function xb(e,t){return void 0===e&&(e=!0),void 0===t&&(t=Ld.PAYMENTS),Yf(["payment-filters",e,t],function(){return Bh.getInstance().getPaymentFilters(t).then(function(e){return null==e?void 0:e.data})},{enabled:e,useErrorBoundary:!1,cacheTime:3e5})}function Sb(){return Yf(["payment-metrics-filters"],function(){return Bh.getInstance().getPaymentMetricsFilters().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Cb(e){var t=e.transaction_code,n=e.enabled;return Yf(["payment-transaction-details",t],function(){return Bh.getInstance().getPaymentTransactionsDetails({transaction_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function Ib(e){var t=e.payment_code,n=e.enabled;return Yf(["transaction-history",t],function(){return Bh.getInstance().getTransactionHistoryByPaymentCode({payment_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function Rb(e){var t=this;return Yf(["POST/transactions",JSON.stringify(e)],function(){return n(t,void 0,void 0,function(){return r(this,function(t){return[2,Bh.getInstance().postTransactions(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e,cacheTime:0,useErrorBoundary:!1})}function Tb(e){var t=this;return Yf(["POST/fraud-transactions",JSON.stringify(e)],function(){return n(t,void 0,void 0,function(){return r(this,function(t){return[2,Bh.getInstance().postFraudTransactions(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function Ob(e){return Yf(["GET/payout-detail",JSON.stringify(e)],function(){var t=Bh.getInstance();return e.organization_code?t.getPayoutDetails(e).then(function(e){return null==e?void 0:e.data}):{}},{enabled:!!e.organization_code&&!!e&&e.enabled,cacheTime:0,useErrorBoundary:!1})}function Ab(e){return Yf(["GET/payout-transaction-detail",JSON.stringify(e)],function(){return Bh.getInstance().getPayoutTransactionDetails(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!(null==e?void 0:e.transaction_code)&&(null==e?void 0:e.enabled),cacheTime:0,useErrorBoundary:!1})}function Pb(e){var t=Lg();return Yf(["GET/payout-history-detail",JSON.stringify(e)],function(){return Bh.getInstance().getPayoutHistoryDetails(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.payout_code)&&e.enabled,cacheTime:0,useErrorBoundary:!1})}function jb(e,t){var o=this,a=Lg();return Yf(["GET/useGetProofOfCancel",a,e,t],function(){return n(o,void 0,void 0,function(){return r(this,function(n){return[2,Bh.getInstance().getProofOfCancel(e,a,t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!a&&!!t,cacheTime:0,useErrorBoundary:!1})}function Db(e,t){var o=this,a=Lg();return Yf(["GET/useGetProofOfPayment",a,e,t],function(){return n(o,void 0,void 0,function(){return r(this,function(n){return[2,Bh.getInstance().getProofOfPayment(e,a,t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!a&&!!t,cacheTime:0,useErrorBoundary:!1})}function Lb(e,t,o){var a=this,i=Bh.getInstance();return Yf(["send-payment-notification",e,t],function(){return n(a,void 0,void 0,function(){var n,a;return r(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,i.sendPaymentNotification(e,t)];case 1:return n=r.sent(),o.onSuccess(),[2,n.data];case 2:throw a=r.sent(),o.onError(),a;case 3:return[2]}})})},{enabled:o.enabled,cacheTime:0,useErrorBoundary:!1})}function zb(e){return Yf(["usePayoutsList",e&&JSON.stringify(e)],function(){var t=Bh.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 qb(e){var t=this;void 0===e&&(e=!0);var o=Lg();return Yf(["getPayoutsFilters",o],function(){return n(t,void 0,void 0,function(){return r(this,function(e){return[2,Bh.getInstance().getPayoutsFilters(o).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})]})})},{enabled:e&&!!o})}function Nb(e,t){var o=this;void 0===t&&(t=!0);var a=Lg();return Yf(["getPayoutTimeline",e,a],function(){return n(o,void 0,void 0,function(){var t;return r(this,function(n){return t=Bh.getInstance(),e?[2,t.getPayoutTimeline(e,a).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})]:[2]})})},{enabled:t&&!!e&&!!a,cacheTime:500,useErrorBoundary:!1})}function Ub(e){var n=e.password,r=e.accountCode,o=e.otp,a=e.mfaToken;return Yf(["developers"],function(){return Bh.getInstance().getDeveloperCredentials(n,r,o,a).then(function(e){return t(t({},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 Bb(){return Yf(["fetch-customized-api-keys-members"],function(){return Bh.getInstance().getCustomizedApiKeysMembers().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})}function Mb(){return Yf(["developers-get-allowed-ips"],function(){return Bh.getInstance().getAllowedIps().then(function(e){return(null==e?void 0:e.data)?t(t({},null==e?void 0:e.data),{isError:!1}):null}).catch(function(e){return t(t({},e),{isError:!0})})},{enabled:!1,cacheTime:0})}function Fb(){return Yf(["fetch-customized-api-keys-accounts"],function(){return Bh.getInstance().getCustomizedApiKeysAccounts().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})}function Hb(e){return Yf(["fetch-customized-api-keys",e],function(){return Bh.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 Wb(){return Yf(["fetch-customized-api-keys-products"],function(){return Bh.getInstance().getCustomizedApiKeysProducts().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{cacheTime:0})}function Vb(){return Jf(["developers-patch-allowed-ips"],function(e){return Bh.getInstance().patchAllowedIps(e).then(function(e){return(null==e?void 0:e.data)?t(t({},null==e?void 0:e.data),{isError:!1}):null}).catch(function(e){return t(t({},e),{isError:!0})})},{cacheTime:0})}function Gb(){return Yf(["fetch-organizations"],function(){return Bh.getInstance().getOrganization().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})}function Kb(e){var t=Lg();return Yf(["organizations-provider-params",e],function(e){var n=e.queryKey;return Bh.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 $b(e){var t=e.integration_code,n=e.enabled,r=e.accountCode;return Yf(["integration-params",t,r],function(){return t.includes("undefined")?{}:Bh.getInstance().getIntegrationParams({accountCode:r,integration_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:n,useErrorBoundary:!1})}function Qb(e){var t=e.accountCode,n=e.organizationCode,r=Lg();return Yf(["organizations-account-integrations",t,n],function(){return Bh.getInstance().getIntegrationByAccountV2({accountCode:t,organizationCode:n||r}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,enabled:!!t,useErrorBoundary:!1})}function Yb(e){var t=e.accountCode,n=e.paymentMethod,r=e.basePath,o=void 0===r?Bd.DEFAULT_ROUTING_TYPE:r;return Yf(["fetch-connections-by-payment-method",n,t,o],function(){return Bh.getInstance().getConnectionsByPaymentMethod(t,n,o).then(function(e){return null==e?void 0:e.data})},{enabled:!!n&&!!t,cacheTime:0,useErrorBoundary:!1})}function Jb(){var e=this;return Yf(["fetch-hash-pylon"],function(){return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Bh.getInstance().getHashPylon()]})})},{keepPreviousData:!0,useErrorBoundary:!1})}function Zb(){return Yf(["connections"],function(){return Bh.getInstance().getConnections().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function Xb(){return Yf(["params-catalog"],function(){return Bh.getInstance().getWebhookParamsV2().then(function(e){return null==e?void 0:e.data})})}function ek(e){var t=e.accountCode,n=e.name;return Yf(["webhooks",t,n],function(){return Bh.getInstance().getWebhooksV3({accountCode:t,name:n}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t,useErrorBoundary:!1})}function tk(e){var t=e.accountCode,n=e.enabled;return Yf(["webhooks-detail",t],function(){return Bh.getInstance().getWebhooksV2Detail({accountCode:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!n})}function nk(e){var t,n=Lg(),r=null!==(t=null!=e?e:n)&&void 0!==t?t:null;return Yf({queryKey:["accounts",r],queryFn:function(){return Bh.getInstance().getAccounts(r).then(function(e){return null==e?void 0:e.data})},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!r})}function rk(e){return Yf(["accountsV2",e],function(){return Bh.getInstance().getAccountsV2().then(function(e){return(null==e?void 0:e.data)||[]}).catch(function(e){throw e})},{keepPreviousData:!0,enabled:!!e,useErrorBoundary:!1})}function ok(e){var t=null==e?void 0:e.includeDisabled;return Yf(["accounts-by-organization",{includeDisabled:t}],function(){return Bh.getInstance().getAccountsByOrganization({includeDisabled:t}).then(function(e){return(null==e?void 0:e.data)||[]}).catch(function(e){throw e})},{keepPreviousData:!0,useErrorBoundary:!1})}function ak(e){return Yf(["accountsV2-by-user",e],function(){return e?Bh.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 ik(e,t){var o=this;return Yf({queryKey:["accounts-for-impersonation",e,t],queryFn:function(){return n(o,void 0,void 0,function(){return r(this,function(n){return[2,Bh.getInstance().getAccountsForImpersonation(e).then(function(e){var n,r;return(null===(r=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.response)||void 0===r?void 0:r.map(function(e){return{label:e.name,value:t?e.code_testing:e.code_live,code_live:e.code_live,code_testing:e.code_testing}}))||[]})]})})},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function sk(e){var t=this;return Yf({queryKey:["roles-for-impersonation",e],queryFn:function(){return n(t,void 0,void 0,function(){return r(this,function(t){return[2,Bh.getInstance().getRolesForImpersonation(e).then(function(e){var t,n;return(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.roles)||void 0===n?void 0:n.map(function(e){return{label:e.name,value:e.id}}))||[]})]})})},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function ck(e){return Yf({queryKey:["pending-duplicate-accounts",e],queryFn:function(){return Bh.getInstance().getPendingDuplicateAccounts()},useErrorBoundary:!1,keepPreviousData:!0,refetchInterval:e})}function uk(e,t){return void 0===t&&(t=Bd.DEFAULT_ROUTING_TYPE),Yf(["smart-routing-methods",e,t],function(){return Bh.getInstance().getSmartRoutingMethods(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function lk(e,t,n){return void 0===n&&(n=Bd.DEFAULT_ROUTING_TYPE),Yf(["smart-routing-workflow",t,e,n],function(){return Bh.getInstance().getSmartRoutingWorkflow(e,t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!e,cacheTime:0,retry:!1})}function dk(e,t,n){return void 0===n&&(n=Bd.DEFAULT_ROUTING_TYPE),Yf(["smart-routing-condition-types",e,t,n],function(){return Bh.getInstance().getSmartRoutingConditionTypes(e,t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!e})}function pk(e,t){return Yf(["smart-routing-condition-payment-method",e,t],function(){return Bh.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 hk(e,t){return Yf(["smart-routing-condition-types-values",t,e],function(){return Bh.getInstance().getSmartRoutingConditionTypesValues(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&!!e,useErrorBoundary:!1})}function fk(e){var t=e.accountCode,n=e.workflowVersionId,r=e.routingType,o=void 0===r?Bd.DEFAULT_ROUTING_TYPE:r;return Yf(["smart-routing-workflow-version",n,t,o],function(){return Bh.getInstance().getSmartRoutingWorkflowVersion(t,n,o).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!n&&!!t,cacheTime:0})}function gk(e,t,n,r){return void 0===r&&(r=Bd.DEFAULT_ROUTING_TYPE),Yf(["smart-routing-next-route",e,n,t,r],function(){return Bh.getInstance().getSmartRoutingNextSteps(e,t,n,r).then(function(e){return null==e?void 0:e.data})},{enabled:!!e,useErrorBoundary:!1})}function mk(e,t){return void 0===t&&(t=Bd.DEFAULT_ROUTING_TYPE),Yf(["smart-routing-decline-groups",e,t],function(){return Bh.getInstance().getSmartRoutingDeclinedGroup(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function yk(e,t,n){return void 0===n&&(n=Bd.DEFAULT_ROUTING_TYPE),Yf(["smart-routing-payment-route",e,t,n],function(){return Bh.getInstance().getSmartRoutingPaymentRoute(e,t,n).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!t,cacheTime:0,useErrorBoundary:!1})}function vk(e,t){return void 0===t&&(t=Bd.DEFAULT_ROUTING_TYPE),Yf(["smart-routing-simulate-condition-type-values",e,t],function(){return Bh.getInstance().getSmartRoutingSimulateConditionTypeValues(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function bk(e){var t=e.text,n=e.conditionType;return Yf(["smart-routing-search-condition-values",t,n],function(){return Bh.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 kk(){return Yf(["smart-routing-conversion-rates"],function(){return Bh.getInstance().getProviderConversionRatesData().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!1,useErrorBoundary:!1})}function _k(){var e=this;return Yf({queryKey:["smart-routing-3ds-excemptions"],queryFn:function(){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Bh.getInstance().get3DSExemptions()];case 1:return[2,e.sent().data]}})})},useErrorBoundary:!1})}function wk(){var e=this;return Yf({queryKey:["smart-routing-network-tokens-onboarding"],queryFn:function(){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Bh.getInstance().getNetworkTokensOnboarding()];case 1:return[2,e.sent().data]}})})},useErrorBoundary:!1})}function Ek(e){return Yf(["fetch-routing-monitors-templates",e],function(){return Bh.getInstance().getRoutingMonitorsTemplates(e).then(function(e){return e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function xk(e,t){return Yf(["fetch-routing-monitors-template",e],function(){return Bh.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 Sk(e,n){var r=e.accountCode,o=Yf(["checkouts",r],function(){return Bh.getInstance().getCheckouts({accountCode:r}).then(function(e){return e.data})},t({cacheTime:0,enabled:Boolean(r),useErrorBoundary:!1},n)),a=o.refetch;return t(t({},o),{refetch:function(e){return a(null!=e?e:void 0)}})}!function(e){e.IN_PROGRESS="IN_PROGRESS",e.COMPLETED="COMPLETED",e.FAILED="FAILED"}(gb||(gb={}));var Ck=function(e){return["checkout-builder-name-and-icon",e.paymentMethodType,e.type]},Ik=function(e,t){var n=e.paymentMethodType,r=e.type;return Yf(Ck({paymentMethodType:n,type:r}),function(){return Bh.getInstance().getNameAndIcon({paymentMethodType:n,type:r}).then(function(e){return null==e?void 0:e.data})},t)},Rk=function(e){return["checkout-builder-required-fields",e.paymentMethodType,e.type]},Tk=function(e,t){var n=e.paymentMethodType,r=e.type;return Yf(Rk({paymentMethodType:n,type:r}),function(){return Bh.getInstance().getRequiredFields({paymentMethodType:n,type:r}).then(function(e){return null==e?void 0:e.data})},t)},Ok=function(e){return Yf(["checkout-builder-country-data",e],function(){return Bh.getInstance().getCountryData({accountCode:e}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,enabled:Boolean(e),useErrorBoundary:!1})},Ak=function(e){return["checkout-payment-method-accounts",e.paymentMethod,e.organizationCode]},Pk=function(e,n){var r=e.paymentMethod,o=e.organizationCode;return Yf(Ak({paymentMethod:r,organizationCode:o}),function(){return Bh.getInstance().getPaymentMethodAccounts({paymentMethod:r,organizationCode:o}).then(function(e){return null==e?void 0:e.data})},t({cacheTime:0,enabled:Boolean(r),useErrorBoundary:!1},n))};function jk(e){var t=e.accountCode;return Yf(["styling-sdk-dynamic",t],function(){return Bh.getInstance().getStylingSdkDynamic({accountCode:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function Dk(e){var t=e.accountCode;return Yf(["styling-settings-v2",t],function(){return Bh.getInstance().getStylingSettingsV2({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 Lk(){return Jf(function(e){var t=e.accountCode,n=e.payload;return Bh.getInstance().changeStylingSettings({accountCode:t,payload:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function zk(e){return Yf(["notifications-customer",e],function(){return Bh.getInstance().getNotificationsCustomer(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,keepPreviousData:!1})}function qk(e){return Yf(["validate-opsgenie-key",e],function(){return Bh.getInstance().getValidateOpsgenieKey(e).then(function(e){return null==e?void 0:e.data}).catch(function(){return{error:!0}})},{enabled:!!e,cacheTime:0})}function Nk(){return Yf(["notifications-merged"],function(){return Bh.getInstance().getMergedNotifications().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{keepPreviousData:!1,cacheTime:0})}function Uk(){return Jf(function(e){return Bh.getInstance().getNotificationsNumber(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Bk(){var e=this;return Jf(function(t){return n(e,void 0,void 0,function(){var e;return r(this,function(n){switch(n.label){case 0:return[4,Bh.getInstance().pathNotification(t)];case 1:return[2,null==(e=n.sent())?void 0:e.data]}})})})}var Mk={key:"metadata_fields",name:"metadata_fields",unique_key:"metadata_fields"};function Fk(){return Yf(["reports"],function(){return Bh.getInstance().reportsList().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Hk(e){return void 0===e&&(e=!0),Yf(["reports-multi-env"],function(){return Bh.getInstance().reportsListMultiEnv().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e})}function Wk(e,t,n){return void 0===t&&(t=!1),Yf(["reports/".concat(e)],function(){return Bh.getInstance().downloadReports(e).then(function(e){return null==e?void 0:e.data})},{enabled:t,onSuccess:n,useErrorBoundary:!1})}function Vk(e){return Yf(["GET/reports/templates"],function(){return Bh.getInstance().getReportTemplates().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e,useErrorBoundary:!1})}function Gk(t,o,a){var i=this;return Yf(["GET/reports/columns/".concat(o,"/").concat(a)],function(){return n(i,void 0,void 0,function(){return r(this,function(t){return[2,Bh.getInstance().getReportColumns(o,a).then(function(t){return o===Ud.ALL&&a===Nd.PAYMENTS?e(e([],(null==t?void 0:t.data)||[],!0),[Mk],!1):null==t?void 0:t.data}).catch(function(e){return e})]})})},{enabled:t,useErrorBoundary:!1})}function Kk(e,t){var o=this,a=Lg();return Yf(["getRefundPdf",e,a,t],function(){return n(o,void 0,void 0,function(){return r(this,function(n){return[2,Bh.getInstance().getRefundPdf(e,a,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})]})})},{enabled:!!e&&!!a,useErrorBoundary:!1})}function $k(){var e=Lg();return Yf(["teams-filters-members"],function(){return Bh.getInstance().teamsFiltersMembers({organizationCode:e}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0})}function Qk(e){var t=e.organizationCode,n=e.accountCodes,r=e.search,o=e.status,a=e.roleId,i=e.statuses,s=e.roleIds,c=e.page,u=e.pageSize,l=Lg();return Yf(["fetch-post-members-v2",t,n,r,o,a,i,s,c,u],function(){return Bh.getInstance().postMembersPaginatedV2({organizationCode:l,accountCodes:n,search:r,status:o,roleId:a,statuses:i,roleIds:s,page:c,pageSize:u}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&!!n,cacheTime:0,useErrorBoundary:!1})}function Yk(){return Yf(["fetch-roles"],function(){return Bh.getInstance().getRoles().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Jk(){return Yf(["fetch-rolespermissions"],function(){return Bh.getInstance().getRolesPermissions().then(function(e){return null==e?void 0:e.data})})}function Zk(){return Yf(["fetch-permissions-catalog"],function(){return Bh.getInstance().getPermissionsCatalog().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function Xk(){return Yf(["fetch-org-roles-permissions"],function(){return Bh.getInstance().getOrgRolesPermissions().then(function(e){return null==e?void 0:e.data})})}function e_(){return Yf(["fetch-org-permissions-catalog"],function(){return Bh.getInstance().getOrgPermissionsCatalog().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function t_(e){var t=e.exportCode,n=e.enabled;return Yf(["user-export-status",t],function(){return Bh.getInstance().getUserExportStatus({exportCode:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&(void 0===n||n),refetchInterval:function(e){return("PENDING"===(null==e?void 0:e.status)||"IN_PROGRESS"===(null==e?void 0:e.status))&&5e3},useErrorBoundary:!1})}function n_(e){var t=e.page,n=void 0===t?0:t,r=e.pageSize,o=void 0===r?20:r,a=e.enabled;return Yf(["user-exports-list",n,o],function(){return Bh.getInstance().listUserExports({page:n,pageSize:o}).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===a||a,useErrorBoundary:!1})}function r_(){var e=this,t=Wf();return function(o){return n(e,void 0,void 0,function(){return r(this,function(e){return[2,t.fetchQuery(["user-export-status",o],function(){return Bh.getInstance().getUserExportStatus({exportCode:o}).then(function(e){return null==e?void 0:e.data})})]})})}}function o_(e){return Yf(["data-report",e],function(){return Bh.getInstance().getSmartRoutingDataReport(e).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,useErrorBoundary:!1})}function a_(e,t,n,r){void 0===n&&(n=!0);return Yf(["get-insights-conversion-rate-metrics-v2",e,t],function(){return Bh.getInstance().getInsightsMetricsConversionRateV2(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:n&&(!!(null==e?void 0:e.currency_code)&&"Empty"!==(null==e?void 0:e.currency_code)&&"string"==typeof(null==e?void 0:e.currency_code)||Array.isArray(null==e?void 0:e.currency_code)&&0===(null==e?void 0:e.currency_code.length)),staleTime:200,cacheTime:200,useErrorBoundary:!1,retry:1})}function i_(e,t){return Yf(["get-insights-conversion-rate-view-more-metrics",t,e],function(){return Bh.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 s_(e){return Yf(["get-insights-conversion-rate-fallback-metrics",e],function(){return Bh.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 c_(e,t,n,r){return void 0===r&&(r=!0),delete t.account_code,Yf(["get-insights-volume-metrics-v2",t,e,n],function(){return Bh.getInstance().getInsightsMetricsVolumeV2(e,n,t).then(function(e){return null==e?void 0:e.data})},{enabled:r,cacheTime:200,useErrorBoundary:!1})}function u_(e,t){var n=!!(null==e?void 0:e.enabled)&&void 0!==(null==e?void 0:e.account_code);return Yf(["get-insights-overview-v3",e,t],function(){return Bh.getInstance().getInsightOverviewV3(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:0,useErrorBoundary:!1})}function l_(e){return Yf(["get-insights-home-metrics",e],function(){return Bh.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 d_(e){return Yf(["get-insights-reports",e],function(){return Bh.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 p_(e){return Yf(["get-insights-reports-again",e],function(){return Bh.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 h_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Yf({queryKey:["post-insights-fraud-screening-volume-and-count-tx",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Bh.getInstance().getInsightsFraudScreeningVolumeAndCountTx(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function f_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Yf({queryKey:["post-insights-fraud-screening-conversion-rate",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Bh.getInstance().getInsightsFraudScreeningConversionRate(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function g_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Yf({queryKey:["post-insights-3ds-volume-and-count-tx",t,e],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Bh.getInstance().getInsights3dsVolumeAndCountTx(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function m_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Yf({queryKey:["post-insights-3ds-conversion-rate-and-evolution",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Bh.getInstance().getInsights3dsConversionRateAndEvolution(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function y_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Yf({queryKey:["post-insights-3ds-decline-reasons",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Bh.getInstance().getInsights3dsDeclineReasons(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function v_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Yf({queryKey:["post-insights-3ds-frictionless-vs-challenge",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Bh.getInstance().getInsights3dsFrictionlessVsChallenge(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function b_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Yf({queryKey:["post-insights-chargebacks-volume-and-count-tx",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Bh.getInstance().getInsightsChargebacksVolumeAndCountTx(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function k_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Yf({queryKey:["post-insights-chargebacks-total-rate-and-evolution",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Bh.getInstance().getInsightsChargebacksTotalRateAndEvolution(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function __(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Yf({queryKey:["post-insights-chargebacks-win-rate",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Bh.getInstance().getInsightsChargebacksWinRate(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function w_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Yf({queryKey:["post-insights-chargebacks-disputed",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Bh.getInstance().getInsightsChargebacksDisputed(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function E_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Yf({queryKey:["post-insights-chargebacks-by-provider-and-card-brand",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Bh.getInstance().getInsightsChargebacksByProviderAndCardBrand(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function x_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Yf({queryKey:["post-insights-chargebacks-reasons-distribution",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Bh.getInstance().getInsightsChargebacksReasonsDistribution(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function S_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Yf({queryKey:["post-insights-chargebacks-status-distribution",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Bh.getInstance().getInsightsChargebacksStatusDistribution(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function C_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Yf({queryKey:["post-insights-chargebacks-by-card-brand",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Bh.getInstance().getInsightsChargebacksByCardBrand(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function I_(e,t){return Yf(["fetch-reconciliation-transaction",e],function(){return Bh.getInstance().getReconciliationTransactions(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!!t,useErrorBoundary:!1})}function R_(e,t){return Yf(["fetch-reconciliation-settlements",e],function(){return Bh.getInstance().getReconciliationSettlements(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!!t,useErrorBoundary:!1})}function T_(e,t){return Yf(["fetch-reconciliation-metrics",e],function(){return Bh.getInstance().getReconciliationMetrics(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t,cacheTime:500})}function O_(){return Yf(["GET-reconciliation-filters"],function(){return Bh.getInstance().getReconciliationFilters().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function A_(e){return Yf(["GET/v1/reconciliation/table/".concat(e,"/columns")],function(){return Bh.getInstance().getAllTableColumns(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function P_(){return Yf(["GET/v1/reconciliation/active"],function(){return Bh.getInstance().getReconciliationActive().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{useErrorBoundary:!1})}function j_(e,t,n){return Yf(["GET/reconciliation/reports/columns/".concat(t,"/").concat(n)],function(){return Bh.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 D_(e){return Yf(["GET/reconciliation/reports/templates"],function(){return Bh.getInstance().getReconciliationReportTemplates().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{enabled:e,useErrorBoundary:!1})}function L_(e){var t=e.body,n=e.params,r=e.enabled;return Yf(["GET/reconciliation/alerts/list",t,n],function(){return Bh.getInstance().getReconciliationAlerts(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})}function z_(e){var t=e.body,n=e.params,r=e.enabled;return Yf(["GET/reconciliation/agenda/list",t,n],function(){return Bh.getInstance().getReconciliationAgenda(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})}function q_(e){var t=e.body,n=e.params,r=e.enabled;return Yf(["GET/reconciliation/agenda/insights",t,n],function(){return Bh.getInstance().getReconciliationAgendaInsightByKey(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})}function N_(e){var t=e.body,n=e.params,r=e.enabled;return Yf(["GET/reconciliation/sales/list",t,n],function(){return Bh.getInstance().getReconciliationSales(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})}function U_(e){var t=e.body,n=e.params,r=e.enabled;return Yf(["GET/reconciliation/advancements/list",t,n],function(){return Bh.getInstance().getReconciliationAdvancements(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})}function B_(e){var t=e.body,n=e.params,r=e.enabled;return Yf(["GET/reconciliation/fees/list",t,n],function(){return Bh.getInstance().getReconciliationFees(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})}function M_(e){var t=e.body,n=e.enabled;return Yf(["reconciliation-insights-conflicts-summary",t],function(){return Bh.getInstance().getReconciliationInsightsConflictsSummary(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function F_(e){var t=e.body,n=e.enabled;return Yf(["reconciliation-insights-not-reconciled-aggregators",t],function(){return Bh.getInstance().getReconciliationInsightsNotReconciledAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function H_(e){var t=e.body,n=e.enabled;return Yf(["reconciliation-insights-not-reconciled-list",t],function(){return Bh.getInstance().getReconciliationInsightsNotReconciledList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function W_(e){var t=e.body,n=e.enabled;return Yf(["reconciliation-insights-status-conflict-aggregators",t],function(){return Bh.getInstance().getReconciliationInsightsStatusConflictAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function V_(e){var t=e.body,n=e.enabled;return Yf(["reconciliation-insights-status-conflict-list",t],function(){return Bh.getInstance().getReconciliationInsightsStatusConflictList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function G_(e){var t=e.body,n=e.enabled;return Yf(["reconciliation-insights-amount-conflict-aggregators",t],function(){return Bh.getInstance().getReconciliationInsightsAmountConflictAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function K_(e){var t=e.body,n=e.enabled;return Yf(["reconciliation-insights-amount-conflict-list",t],function(){return Bh.getInstance().getReconciliationInsightsAmountConflictList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function $_(e){var t=e.body,n=e.enabled;return Yf(["reconciliation-insights-conflict-date-summary",t],function(){return Bh.getInstance().getReconciliationInsightsConflictDateSummary(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function Q_(e){var t=e.body,n=e.enabled;return Yf(["reconciliation-insights-conflict-date-aggregators",t],function(){return Bh.getInstance().getReconciliationInsightsConflictDateAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function Y_(e){var t=e.body,n=e.enabled;return Yf(["reconciliation-insights-conflict-date-list",t],function(){return Bh.getInstance().getReconciliationInsightsConflictDateList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function J_(e){var t=e.body,n=e.dateFilter,r=e.enabled;return Yf(["reconciliation-insights-incorrect-fees-summary",t,n],function(){return Bh.getInstance().getReconciliationInsightsIncorrectFeesSummary(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===r||r,useErrorBoundary:!1})}function Z_(e){var t=e.body,n=e.dateFilter,r=e.enabled;return Yf(["reconciliation-insights-incorrect-fees-aggregators",t,n],function(){return Bh.getInstance().getReconciliationInsightsIncorrectFeesAggregators(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===r||r,useErrorBoundary:!1})}function X_(e){var t=e.body,n=e.dateFilter,r=e.enabled;return Yf(["reconciliation-insights-incorrect-fees-list",t,n],function(){return Bh.getInstance().getReconciliationInsightsIncorrectFeesList(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===r||r,useErrorBoundary:!1})}function ew(e){var t=e.body,n=e.dateFilter,r=e.enabled;return Yf(["reconciliation-insights-fees-charged-summary",t,n],function(){return Bh.getInstance().getReconciliationInsightsFeesChargedSummary(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===r||r,useErrorBoundary:!1})}function tw(e){var t=e.body,n=e.dateFilter,r=e.enabled;return Yf(["reconciliation-insights-reconciled-summary",t,n],function(){return Bh.getInstance().getReconciliationInsightsReconciledSummary(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===r||r,useErrorBoundary:!1})}function nw(e){var t=e.body,n=e.dateFilter,r=e.transactionType,o=e.enabled;return Yf(["reconciliation-insights-reconciled-aggregators",t,n,r],function(){return Bh.getInstance().getReconciliationInsightsReconciledAggregators(t,n,r).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===o||o,useErrorBoundary:!1})}function rw(e){var t=e.body,n=e.dateFilter,r=e.transactionType,o=e.enabled;return Yf(["reconciliation-insights-reconciled-list",t,n,r],function(){return Bh.getInstance().getReconciliationInsightsReconciledList(t,n,r).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===o||o,useErrorBoundary:!1})}function ow(e){var t=e.body,n=e.enabled;return Yf(["reconciliation-insights-not-confirm-summary",t],function(){return Bh.getInstance().getReconciliationInsightsNotConfirmSummary(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function aw(e){var t=e.body,n=e.enabled;return Yf(["reconciliation-insights-not-confirm-aggregators",t],function(){return Bh.getInstance().getReconciliationInsightsNotConfirmAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function iw(e){var t=e.body,n=e.enabled;return Yf(["reconciliation-insights-not-confirm-list",t],function(){return Bh.getInstance().getReconciliationInsightsNotConfirmList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function sw(e){var t=e.body,n=e.enabled;return Yf(["reconciliation-insights-amount-to-be-settled-summary",t],function(){return Bh.getInstance().getReconciliationInsightsAmountToBeSettledSummary(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function cw(e){var t=e.body,n=e.enabled;return Yf(["reconciliation-insights-reconciliation-rate-by-provider",t],function(){return Bh.getInstance().getReconciliationInsightsReconciliationRateByProvider(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function uw(e){var t=e.body,n=e.enabled;return Yf(["reconciliation-insights-reconciliation-rate-by-account",t],function(){return Bh.getInstance().getReconciliationInsightsReconciliationRateByAccount(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function lw(e){var t=e.body,n=e.enabled;return Yf(["reconciliation-insights-reconciliation-rate-by-currency",t],function(){return Bh.getInstance().getReconciliationInsightsReconciliationRateByCurrency(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function dw(e){var t=e.body,n=e.enabled;return Yf(["reconciliation-insights-settlement-lookup",t],function(){return Bh.getInstance().getReconciliationInsightsSettlementLookup(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}var pw=Object.freeze({__proto__:null,useAllFeatureFlags:function(e){var t=this,o=Yf({queryKey:["all-feature-flags",Object.values(e).filter(Boolean)],queryFn:function(){return n(t,void 0,void 0,function(){return r(this,function(t){return[2,Bh.getInstance().getFeatureFlagIdAll({accountCode:e.account_code}).then(function(e){return null==e?void 0:e.data})]})})},enabled:!!e.account_code&&!!e.organization_code&&!!e.email,cacheTime:9e5,useErrorBoundary:!1}),a=Wf();return u(function(){a.setQueryData(["cached-feature-flags"],o)},[o,a]),o},useCachedFeatureFlag:function(e){var n,r,o=Wf(),a=o.getQueryState(["cached-feature-flags"]),i=Boolean(!(null===(n=null==a?void 0:a.data)||void 0===n?void 0:n.status)||"loading"===(null===(r=null==a?void 0:a.data)||void 0===r?void 0:r.status)),s=Yf({queryKey:["cached-feature-flags"],queryFn:function(){},enabled:!1,select:function(t){var n;return{result:null===(n=null==t?void 0:t.data)||void 0===n?void 0:n[e]}},initialData:function(){var e=o.getQueryData(["cached-feature-flags"]);return(null==e?void 0:e.data)||{}}});return t(t({},s),{isLoading:i})},useFeatureFlags:function(e){var t=this,o=Object.values(e).filter(Boolean);return Yf(["feature-flags",o],function(){return n(t,void 0,void 0,function(){return r(this,function(t){return[2,Bh.getInstance().getFeatureFlagId(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:o.length>1,useErrorBoundary:!1})}});function hw(e){return{data:e,error:null,isLoading:!1,isFetching:!1,isSuccess:!0,isError:!1,isLoadingError:!1,isRefetchError:!1,isStale:!1,isFetched:!0,isFetchedAfterMount:!0,isPlaceholderData:!1,isPreviousData:!1,isRefetching:!1,isPaused:!1,isInitialLoading:!1,status:"success",fetchStatus:"idle",dataUpdatedAt:Date.now(),errorUpdatedAt:0,failureCount:0,errorUpdateCount:0,refetch:function(){return Promise.resolve(hw(e))},remove:function(){}}}var fw=Object.freeze({__proto__:null,useAllFeatureFlags:function(e){return hw({})},useCachedFeatureFlag:function(e){return hw({result:h(e,!1)})},useFeatureFlags:function(e){var t,n=h(e.name,!1);return hw(((t={})[e.name]=n,t))}}),gw="datadog"==("datadog"===process.env.FEATURE_FLAGS_PROVIDER?"datadog":"legacy")?fw:pw,mw=gw.useFeatureFlags,yw=gw.useAllFeatureFlags,vw=gw.useCachedFeatureFlag;function bw(e){return Yf(["events",e],function(){return Bh.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 kw(e,t){return Yf(["audit-event-by-code",e,t],function(){return Bh.getInstance().getAuditEventByCode(e,null!=t?t:[]).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&Array.isArray(t),cacheTime:0,useErrorBoundary:!1,retry:!1})}function _w(e){return Yf(["audit-monitor-event-detail",e],function(){return Bh.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 ww(e){return Yf(["api-logs",e],function(){return Bh.getInstance().postApiLogs({payload:e}).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.organizationCode,cacheTime:0,useErrorBoundary:!1})}function Ew(e){var t=e.params;return Yf(["webhook-logs",t],function(){return Bh.getInstance().postWebhookLogs({payload:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t.organizationCode,cacheTime:0,useErrorBoundary:!1})}function xw(e,t){return Yf(["api-logs-detail",e,t],function(){return Bh.getInstance().getApiLogsDetailByPaymentCode(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e,cacheTime:0,useErrorBoundary:!1})}function Sw(e,t){return Yf(["api-logs-by-transaction",e,t],function(){return Bh.getInstance().getApiLogsByTransactionCode(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!t,cacheTime:0,useErrorBoundary:!1})}function Cw(e,t){return void 0===t&&(t=!0),Yf(["audit-exports-list",e],function(){return Bh.getInstance().getAuditExportsList(e).then(function(e){return null==e?void 0:e.data})},{enabled:t,cacheTime:0,useErrorBoundary:!1})}function Iw(e,t,n){return void 0===t&&(t=!1),Yf(["audit-export-download",e],function(){return Bh.getInstance().getAuditExportDownload(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&t,cacheTime:0,useErrorBoundary:!1,onSuccess:n})}function Rw(e){var t=e.tab,n=e.exportId,r=e.enabled,o=void 0!==r&&r,a=e.onSuccess;return Yf(["unified-export-status",t,n],function(){return Bh.getInstance().getUnifiedExportStatus(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:!!n&&o,cacheTime:0,useErrorBoundary:!1,onSuccess:a})}function Tw(e){var t=e.tab,n=e.page,r=void 0===n?0:n,o=e.size,a=void 0===o?10:o,i=e.enabled;return Yf(["unified-exports-list",t,r,a],function(){return Bh.getInstance().getUnifiedExportsList(t,r,a).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===i||i,cacheTime:0,useErrorBoundary:!1})}function Ow(e){return Yf(["api-logs-stats-requests",e],function(){return Bh.getInstance().postApiLogsStatsRequests(t({},e)).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.start_date,cacheTime:0,useErrorBoundary:!1})}function Aw(e){return Yf(["api-logs-stats-errors",e],function(){return Bh.getInstance().postApiLogsStatsErrors(t({},e)).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.start_date,cacheTime:0,useErrorBoundary:!1})}function Pw(e){return Yf(["api-logs-stats-errors-by-endpoint",e],function(){return Bh.getInstance().postApiLogsStatsErrorsByEndpoint(t({},e)).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.start_date,cacheTime:0,useErrorBoundary:!1})}function jw(e){return Yf(["api-logs-list",e],function(){return Bh.getInstance().postApiLogsList(t({},e)).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.start_date,cacheTime:0,useErrorBoundary:!1})}function Dw(e){var t=e.paymentCode,n=e.createdAtFrom,r=e.enabled;return Yf(["api-logs-v2-payment",t,n],function(){return Bh.getInstance().getApiLogsV3ByPaymentCode(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:(void 0===r||r)&&!!t,cacheTime:0,useErrorBoundary:!1})}function Lw(){return Yf(["audit-subscriptions"],function(){return Bh.getInstance().listAuditSubscriptions().then(function(e){var t;return(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.data)||[]})},{cacheTime:0,keepPreviousData:!0,useErrorBoundary:!1})}function zw(e,t){return Yf(["fetch-payment-links",e,t],function(){return Bh.getInstance().getPaymentLinks(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!t,cacheTime:0})}function qw(e){return Yf(["payment-link"],function(){return Bh.getInstance().getPaymentLinksByCode(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e})}function Nw(e){return void 0===e&&(e=!0),Yf(["countries",e],function(){return Bh.getInstance().useGetCountriesConfig().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e,keepPreviousData:!0})}function Uw(e){var t=localStorage.getItem("lang")||"en",n=e||t;return Yf(["countries-v2",n],function(){return Bh.getInstance().useGetCountriesConfigV2(n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!0,keepPreviousData:!0})}function Bw(e,t){return void 0===t&&(t=!0),Yf(["subscription",e],function(){return Bh.getInstance().getSubscriptionByCode(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&t,cacheTime:500})}function Mw(e,t,n,r){return void 0===r&&(r=!0),Yf(["subscription-payments",e,t,n],function(){return Bh.getInstance().getSubscriptionPayments(e,t,n).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&r,cacheTime:0})}function Fw(e){return Jf(function(e){var t=e.payload;return Bh.getInstance().firebaseUserSubscribe(t)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Hw(e,t){return Yf(["get-cofig-allow-list",e],function(){return Bh.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 Ww(e,t){return void 0===t&&(t=!0),Yf(["get-black-list",e],function(){return Bh.getInstance().getBlackListType(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:!!e&&t})}function Vw(e,t,n,r){var o;return Yf(["post-black-list",e],function(){return Bh.getInstance().postBlockList(e,null!=t?t:"",null!=n?n:0,null!=r?r:25).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:(null===(o=e[0])||void 0===o?void 0:o.length)>0&&null!==t,useErrorBoundary:!1})}function Gw(e,t,n){return Yf(["get-block-list-summary",e,t,n],function(){var r=Bh.getInstance();return n?r.getBlackListSummary(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e}):Promise.resolve({})},{enabled:!!e&&!!n})}function Kw(e,t,n,r,o,a){return Yf(["black-list-detail",e,t,r,o,a],function(){return Bh.getInstance().getBlacklistDetail(e,t,n,r,o).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&a,cacheTime:0})}function $w(e,t,n){return Yf(["allow-list-detail",e],function(){return Bh.getInstance().getAllowlistDetail(e,t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{enabled:!!e&&!!n})}function Qw(e,t){return void 0===t&&(t=!0),Yf(["query-post-get-allowlist-multi-account",JSON.stringify(e)],function(){return Bh.getInstance().postGetAllowlist({payload:e}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{enabled:!!e&&t,cacheTime:0})}function Yw(e,t){var o=this;return void 0===e&&(e=26),void 0===t&&(t=0),Yf(["batch-refunds",e,t],function(){return n(o,void 0,void 0,function(){return r(this,function(n){return[2,Bh.getInstance().getBatchRefunds(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})]})})},{cacheTime:0})}function Jw(e){return Yf(["velocity-rules",e],function(){var t=Bh.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 Zw(){return Yf(["config-rules"],function(){return Bh.getInstance().getAllConfigRules().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0})}function Xw(e,t){var n=e.organizationCode;return Yf(["mfa-excluded-users",n],function(){return Bh.getInstance().getMFAExcludedUsers({organizationCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})}function eE(e,t){var n=e.organizationCode;return Yf(["mfa-config",n],function(){return Bh.getInstance().getMFAConfig({organizationCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})}function tE(e,t){return Yf(["mfa-enforcement-status",e.accountCode],function(){return Bh.getInstance().getMFAEnforcementStatus().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})}function nE(e){return Yf(["workos-mfa-status"],function(){return Bh.getInstance().getWorkOsMfaStatus().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:e.enabled})}function rE(e){return Yf(["fetch-organization-saml-config",e],function(){return Bh.getInstance().getSamlConfig().then(function(e){return e.data})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function oE(e){return Yf(["chartgpt-chart-execute",e],function(){return Bh.getInstance().executeChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e})}function aE(){return Yf(["chartgpt-user-charts"],function(){return Bh.getInstance().getChartsByUser().then(function(e){return null==e?void 0:e.data})},{cacheTime:0})}function iE(){var e=this;return Yf(["chartgpt-user-charts-with-results"],function(){return n(e,void 0,void 0,function(){var e,o,a,i=this;return r(this,function(s){switch(s.label){case 0:return[4,(e=Bh.getInstance()).getChartsByUser()];case 1:return o=s.sent(),a=(null==o?void 0:o.data)||[],[4,Promise.all(a.map(function(o){return n(i,void 0,void 0,function(){var n,a,i,s,c,u,l,d;return r(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,e.executeChartGPTChart(o.code)];case 1:return n=r.sent(),[2,t(t({},o),{user_prompt:null!==(s=null===(i=null==n?void 0:n.data)||void 0===i?void 0:i.user_prompt)&&void 0!==s?s:o.user_prompt,unit_to_display:null!==(u=null===(c=null==n?void 0:n.data)||void 0===c?void 0:c.unit_to_display)&&void 0!==u?u:o.unit_to_display,results:null!==(d=null===(l=null==n?void 0:n.data)||void 0===l?void 0:l.results)&&void 0!==d?d:[]})];case 2:return a=r.sent(),console.error("Failed to execute chart ".concat(o.chart_id,":"),a),[2,t(t({},o),{results:[]})];case 3:return[2]}})})}))];case 2:return[2,s.sent()]}})})})}function sE(e,t,o){var a=this;return void 0===o&&(o=!0),Yf(["chartgpt-patch-and-execute",e,t],function(){return n(a,void 0,void 0,function(){var n,o,a,i,s;return r(this,function(r){switch(r.label){case 0:return[4,(n=Bh.getInstance()).patchChartGPTChart(e,t)];case 1:return o=r.sent(),a=null==o?void 0:o.data,[4,n.executeChartGPTChart(e)];case 2:return i=r.sent(),s=null==i?void 0:i.data,[2,{chart:a,execution:s}]}})})},{enabled:o&&!!e,retry:!1})}function cE(e){var t=this,o=e.chartCode,a=e.enabled;return Yf(["chart-feedback",o],function(){return n(t,void 0,void 0,function(){var e,t,n,a,i;return r(this,function(r){switch(r.label){case 0:e=Bh.getInstance(),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,e.getChartFeedback(o)];case 2:return t=r.sent(),(n=null==t?void 0:t.data)&&n.rating?[2,n]:[2,null];case 3:if(a=r.sent(),404===(null===(i=null==a?void 0:a.response)||void 0===i?void 0:i.status))return[2,null];throw a;case 4:return[2]}})})},{enabled:(void 0===a||a)&&!!o,staleTime:3e5})}function uE(){return Yf(["languages"],function(){return Bh.getInstance().getLanguages().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,cacheTime:300})}function lE(){var e=localStorage.getItem("lang")||"en";return Yf(["translations",e],function(){return Bh.getInstance().getTranslations(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,cacheTime:3e4})}function dE(e){var t=this;return Yf({queryKey:["network-tokens-onboarding",e],queryFn:function(){return n(t,void 0,void 0,function(){return r(this,function(t){switch(t.label){case 0:return[4,Bh.getInstance().getNetworkTokensOnboardingByOrganization(e)];case 1:return[2,t.sent().data]}})})},enabled:!!e,useErrorBoundary:!1,cacheTime:0})}var pE=function(e){if(!e)return"";var t=new Date(e);return"".concat(["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][t.getUTCMonth()]," ").concat(t.getUTCDate())},hE=function(e,t,n){if(!t||!n)return e||[];var r=function(e,t){var n=[],r=new Date(e),o=new Date(t);r.setUTCHours(0,0,0,0),o.setUTCHours(0,0,0,0);for(var a=new Date(r);a<=o;)n.push(a.toISOString()),a.setUTCDate(a.getUTCDate()+1);return n}(t,n),o=new Map;return null==e||e.forEach(function(e){if(e.date){var t=new Date(e.date).toISOString().split("T")[0];o.set(t,e.value)}}),r.map(function(e){var t=e.split("T")[0];return{date:e,value:o.get(t)||"0"}})},fE=function(e){var t,n=null===(t=e.plots)||void 0===t?void 0:t[0];if(!n||!n.rows)return{distribution:[],total:0};var r=parseFloat(n.value||"0");return{distribution:n.rows.map(function(e){var t,n=100*parseFloat(e.value),o=Math.round(r*parseFloat(e.value));return{key:(null===(t=e.label)||void 0===t?void 0:t.toUpperCase())||"UNKNOWN",total:o,percentage:n,amount:o}}),total:r}},gE=function(e,t,n){var r,o={};return null===(r=e.plots)||void 0===r||r.forEach(function(e){var r=hE(e.rows,t,n),a=e.label;o[a]=r.map(function(e){return{key:e.date||"",total:100*parseFloat(e.value),current_label:pE(e.date||""),current_amount:100*parseFloat(e.value)}})}),o},mE=function(e,t,n){var r,o=null===(r=e.plots)||void 0===r?void 0:r[0];return{distribution:hE(null==o?void 0:o.rows,t,n).map(function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:pE(e.date||""),current_amount:parseFloat(e.value)}}),total:parseFloat((null==o?void 0:o.value)||"0"),total_amount:parseFloat((null==o?void 0:o.value)||"0")}},yE=function(e,t,n){var r,o=null===(r=e.plots)||void 0===r?void 0:r[0];return{distribution:hE(null==o?void 0:o.rows,t,n).map(function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:pE(e.date||""),current_amount:parseFloat(e.value)}}),total:parseFloat((null==o?void 0:o.value)||"0"),total_amount:parseFloat((null==o?void 0:o.value)||"0")}},vE=function(e,o){return Yf(t({queryKey:["smart-recovery-communications-by-day",e],queryFn:function(){return n(void 0,void 0,void 0,function(){var t,n,o;return r(this,function(r){switch(r.label){case 0:return t=Bh.getInstance(),n={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/communications-by-day",n)];case 1:return o=r.sent(),[2,(a=o.data,i=n.start_date,s=n.end_date,c=a.plots||[],u=c.find(function(e){return"TOTAL_COMMUNICATIONS_LABEL"===e.label}),l=c.find(function(e){return"COMPLETED_COMMUNICATIONS_LABEL"===e.label}),d=c.find(function(e){return"CONVERSION_RATE_LABEL"===e.label}),p=hE(null==u?void 0:u.rows,i,s),h=hE(null==l?void 0:l.rows,i,s),f=hE(null==d?void 0:d.rows,i,s),{communications:{distribution:p.map(function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:pE(e.date||""),current_amount:parseFloat(e.value)}}),total:parseFloat((null==u?void 0:u.value)||"0")},conversion_rate:{distribution:f.map(function(e){return{key:e.date||"",total:parseFloat(e.value),percentage:parseFloat(e.value)}}),total:parseFloat((null==d?void 0:d.value)||"0")},completed_communications:{distribution:h.map(function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:pE(e.date||""),current_amount:parseFloat(e.value)}}),total:parseFloat((null==l?void 0:l.value)||"0")}})]}var a,i,s,c,u,l,d,p,h,f})})},enabled:!!e.organization_code,staleTime:3e5},o))},bE=function(e,o){return Yf(t({queryKey:["smart-recovery-communications-by-substatus",e],queryFn:function(){return n(void 0,void 0,void 0,function(){var t,n,o;return r(this,function(r){switch(r.label){case 0:return t=Bh.getInstance(),n={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/communications-by-substatus",n)];case 1:return o=r.sent(),[2,fE(o.data)]}})})},enabled:!!e.organization_code,staleTime:3e5},o))},kE=function(e,o){return Yf(t({queryKey:["smart-recovery-communications-substatus-by-day",e],queryFn:function(){return n(void 0,void 0,void 0,function(){var t,n,o;return r(this,function(r){switch(r.label){case 0:return t=Bh.getInstance(),n={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/communications-substatus-by-day",n)];case 1:return o=r.sent(),[2,gE(o.data,n.start_date,n.end_date)]}})})},enabled:!!e.organization_code,staleTime:3e5},o))},_E=function(e,o){return Yf(t({queryKey:["smart-recovery-recovered-tpv-by-day",e],queryFn:function(){return n(void 0,void 0,void 0,function(){var t,n,o;return r(this,function(r){switch(r.label){case 0:return t=Bh.getInstance(),n={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/recovered-tpv-by-day",n)];case 1:return o=r.sent(),[2,mE(o.data,n.start_date,n.end_date)]}})})},enabled:!!e.organization_code,staleTime:3e5},o))},wE=function(e,o){return Yf(t({queryKey:["smart-recovery-recovered-payments-by-day",e],queryFn:function(){return n(void 0,void 0,void 0,function(){var t,n,o;return r(this,function(r){switch(r.label){case 0:return t=Bh.getInstance(),n={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/recovered-payments-by-day",n)];case 1:return o=r.sent(),[2,yE(o.data,n.start_date,n.end_date)]}})})},enabled:!!e.organization_code,staleTime:3e5},o))};function EE(e,t){var o=this;return Yf(["POST/template-reporting/templates/search",e],function(){return n(o,void 0,void 0,function(){return r(this,function(t){return[2,Bh.getInstance().searchReportTemplates(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:t,useErrorBoundary:!1})}function xE(e,t,o){var a=this;return Yf(["POST/template-reporting/template-by-id/search",e,t],function(){return n(a,void 0,void 0,function(){return r(this,function(n){return[2,Bh.getInstance().searchReportTemplateById(e,t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:o&&!!e,useErrorBoundary:!1})}function SE(e,t){var o=this;return Yf(["POST/template-reporting/schedules/search",e],function(){return n(o,void 0,void 0,function(){return r(this,function(t){return[2,Bh.getInstance().searchReportSchedules(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:t,useErrorBoundary:!1})}function CE(e,t,o){var a=this;return Yf(["POST/template-reporting/schedule-by-id/search",e,t],function(){return n(a,void 0,void 0,function(){return r(this,function(n){return[2,Bh.getInstance().searchReportScheduleById(e,t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:o&&!!e,useErrorBoundary:!1})}function IE(){return Yf({queryKey:["organization-configs"],queryFn:function(){return Bh.getInstance().getOrganizationConfigs().then(function(e){return null==e?void 0:e.data})},cacheTime:0,useErrorBoundary:!1})}function RE(e){var t=e.accountCode,n=e.enabled;return Yf(["onboarding-status",t],function(){return Bh.getInstance().getOnboardingStatus(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 TE(e,t,o){var a=this;return void 0===o&&(o=!0),Yf(["get-recipients",e,t],function(){return n(a,void 0,void 0,function(){return r(this,function(n){return[2,Bh.getInstance().getRecipients(e,t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&o,cacheTime:0,useErrorBoundary:!1})}function OE(e,t,o){var a=this;return void 0===o&&(o=!0),Yf(["get-recipients-v2",e,t],function(){return n(a,void 0,void 0,function(){return r(this,function(n){return[2,Bh.getInstance().getRecipientsV2(e,t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&o,cacheTime:0,useErrorBoundary:!1})}function AE(e,t,o){var a,i=this;return void 0===o&&(o=!0),Yf(["get-recipient-by-id",e,t.recipient_id,null!==(a=t.masking_mode)&&void 0!==a?a:"masked"],function(){return n(i,void 0,void 0,function(){return r(this,function(n){return[2,Bh.getInstance().getRecipientById(e,t.recipient_id,t.masking_mode?{masking_mode:t.masking_mode}:void 0).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!t.recipient_id&&o,cacheTime:500,useErrorBoundary:!1})}function PE(e,t,o){var a=this;return void 0===o&&(o=!0),Yf(["get-onboarding-detail",e,t.recipient_id,t.onboarding_id],function(){return n(a,void 0,void 0,function(){return r(this,function(n){return[2,Bh.getInstance().getOnboardingDetail(e,t.recipient_id,t.onboarding_id).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!t.recipient_id&&!!t.onboarding_id&&o,cacheTime:500,useErrorBoundary:!1})}function jE(e,t,o){var a=this;return void 0===o&&(o=!0),Yf(["get-onboarding-timeline",e,t.onboarding_id],function(){return n(a,void 0,void 0,function(){return r(this,function(n){return[2,Bh.getInstance().getOnboardingTimeline(e,t.onboarding_id).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!t.onboarding_id&&o,cacheTime:500,useErrorBoundary:!1})}function DE(e,t,o){var a=this;return void 0===o&&(o=!0),Yf(["get-recipient-exports",e,t],function(){return n(a,void 0,void 0,function(){return r(this,function(n){return[2,Bh.getInstance().getRecipientExports(t,e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&o,cacheTime:0,useErrorBoundary:!1})}function LE(e,t,o){var a=this;return void 0===o&&(o=!0),Yf(["get-recipient-export-download",e,t],function(){return n(a,void 0,void 0,function(){return r(this,function(n){return[2,Bh.getInstance().downloadRecipientExport(t,e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!t&&o,cacheTime:0,useErrorBoundary:!1})}function zE(e,t,n){return void 0===t&&(t=!0),Yf(["installments-plans",e,n],function(){return Bh.getInstance().getInstallmentPlans(n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(e)&&t,useErrorBoundary:!1})}function qE(e,t){return void 0===t&&(t=!0),Yf(["search-installments-plans",JSON.stringify(e)],function(){return Bh.getInstance().searchInstallmentsPlans(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:t,useErrorBoundary:!1})}function NE(e){var t=this,o=e.paymentCode,a=e.enabled;return Yf({queryKey:["api-logs-v3",o],queryFn:function(){return n(t,void 0,void 0,function(){return r(this,function(e){return[2,Bh.getInstance().getApiLogsV3(o).then(function(e){return null==e?void 0:e.data})]})})},enabled:(void 0===a||a)&&!!o,staleTime:3e4,cacheTime:3e5,useErrorBoundary:!1})}function UE(e){var t=this,o=e.paymentCode,a=e.enabled;return Yf({queryKey:["webhook-timeline",o],queryFn:function(){return n(t,void 0,void 0,function(){return r(this,function(e){return[2,Bh.getInstance().getWebhookTimeline(o).then(function(e){return null==e?void 0:e.data})]})})},enabled:(void 0===a||a)&&!!o,staleTime:3e4,cacheTime:3e5,useErrorBoundary:!1})}function BE(){var e=this;return Yf(["workos-domain-status"],function(){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Bh.getInstance().workosDomainStatus().then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function ME(){var e=this;return Yf(["workos-sso-config-status"],function(){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Bh.getInstance().workosSsoConfigStatus().then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function FE(e){var t=this,o=e.scope,a=e.enabled;return Yf(["hidden-fields",o],function(){return n(t,void 0,void 0,function(){var e,t;return r(this,function(n){switch(n.label){case 0:return[4,Bh.getInstance().getHiddenFields({scope:o})];case 1:return e=n.sent(),[2,null!==(t=null==e?void 0:e.data)&&void 0!==t?t:[]]}})})},{enabled:!!o&&(void 0===a||a),staleTime:3e5,useErrorBoundary:!1})}function HE(e,t,o,a){var i=this;return void 0===o&&(o=!0),Yf(["certificates",e,t,null!=a?a:null],function(){return n(i,void 0,void 0,function(){return r(this,function(n){return[2,Bh.getInstance().getCertificates(e,t,a).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!t&&o,cacheTime:0,useErrorBoundary:!1})}function WE(e,t,o,a){var i=this;return void 0===a&&(a=!0),Yf(["download-certificate",e,t,o],function(){return n(i,void 0,void 0,function(){return r(this,function(n){return[2,Bh.getInstance().downloadCertificate(e,t,o).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!t&&!!o&&a,cacheTime:0,useErrorBoundary:!1})}function VE(){return VE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VE.apply(this,arguments)}
|
|
50
|
+
*/"production"===process.env.NODE_ENV?Lf.exports=function(){if(Df)return zf;Df=1;var e=s,t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useState,r=e.useEffect,o=e.useLayoutEffect,a=e.useDebugValue;function i(e){var n=e.getSnapshot;e=e.value;try{var r=n();return!t(e,r)}catch(e){return!0}}var c="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 o(function(){u.value=s,u.getSnapshot=t,i(u)&&l({inst:u})},[e,s,t]),r(function(){return i(u)&&l({inst:u}),e(function(){i(u)&&l({inst:u})})},[e]),a(s),s};return zf.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:c,zf}():Lf.exports=(qf||(qf=1,"production"!==process.env.NODE_ENV&&function(){function e(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(e){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=s,n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=t.useState,o=t.useEffect,a=t.useLayoutEffect,i=t.useDebugValue,c=!1,u=!1,l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(s,l){c||void 0===t.startTransition||(c=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var d=l();if(!u){var p=l();n(d,p)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),u=!0)}var h=(p=r({inst:{value:d,getSnapshot:l}}))[0].inst,f=p[1];return a(function(){h.value=d,h.getSnapshot=l,e(h)&&f({inst:h})},[s,d,l]),o(function(){return e(h)&&f({inst:h}),s(function(){e(h)&&f({inst:h})})},[s]),i(d),d};Nf.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:l,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Nf);var Uf=Lf.exports;const Bf=Uf.useSyncExternalStore,Mf=i.createContext(void 0),Ff=i.createContext(!1);function Hf(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Mf),window.ReactQueryClientContext):Mf)}const Wf=({context:e}={})=>{const t=i.useContext(Hf(e,i.useContext(Ff)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Vf=({client:e,children:t,context:n,contextSharing:r=!1})=>{i.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),"production"!==process.env.NODE_ENV&&r&&e.getLogger().error("The contextSharing option has been deprecated and will be removed in the next major version");const o=Hf(n,r);return i.createElement(Ff.Provider,{value:!n&&r},i.createElement(o.Provider,{value:e},t))},Gf=i.createContext(!1);Gf.Provider;const Kf=i.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function $f(e,t){return"function"==typeof e?e(...t):!!e}function Qf(e,t){const n=Wf({context:e.context}),r=i.useContext(Gf),o=i.useContext(Kf),a=n.defaultQueryOptions(e);a._optimisticResults=r?"isRestoring":"optimistic",a.onError&&(a.onError=bf.batchCalls(a.onError)),a.onSuccess&&(a.onSuccess=bf.batchCalls(a.onSuccess)),a.onSettled&&(a.onSettled=bf.batchCalls(a.onSettled)),(e=>{e.suspense&&("number"!=typeof e.staleTime&&(e.staleTime=1e3),"number"==typeof e.cacheTime&&(e.cacheTime=Math.max(e.cacheTime,1e3)))})(a),((e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))})(a,o),(e=>{i.useEffect(()=>{e.clearReset()},[e])})(o);const[s]=i.useState(()=>new t(n,a)),c=s.getOptimisticResult(a);if(Bf(i.useCallback(e=>{const t=r?()=>{}:s.subscribe(bf.batchCalls(e));return s.updateResult(),t},[s,r]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),i.useEffect(()=>{s.setOptions(a,{listeners:!1})},[a,s]),((e,t,n)=>(null==e?void 0:e.suspense)&&((e,t)=>e.isLoading&&e.isFetching&&!t)(t,n))(a,c,r))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)}))(a,s,o);if((({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&$f(n,[e.error,r]))({result:c,errorResetBoundary:o,useErrorBoundary:a.useErrorBoundary,query:s.getCurrentQuery()}))throw c.error;return a.notifyOnChangeProps?c:s.trackResult(c)}function Yf(e,t,n){return Qf(Gh(e,t,n),Rf)}function Jf(e,t,n){const r=function(e,t,n){return af(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}(e,t,n),o=Wf({context:r.context}),[a]=i.useState(()=>new jf(o,r));i.useEffect(()=>{a.setOptions(r)},[a,r]);const s=Bf(i.useCallback(e=>a.subscribe(bf.batchCalls(e)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),c=i.useCallback((e,t)=>{a.mutate(e,t).catch(Zf)},[a]);if(s.error&&$f(a.options.useErrorBoundary,[s.error]))throw s.error;return{...s,mutate:c,mutateAsync:s.mutate}}function Zf(){}var Xf;function eg(e){return Jf(function(e){var t=e.payload;return Bh.getInstance().postWebhookV2MultiAccount({payload:t})},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function tg(e){return Jf(function(e){var t=e.code,n=e.accountCode;return Bh.getInstance().deleteWebhookV2(t,n)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function ng(e){return Jf(function(e){var t=e.code,n=e.payload,r=e.accountCode;return Bh.getInstance().updateWebhookV2(t,n,r)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function rg(){return Jf(function(e){var t=e.name,n=e.principal;return Bh.getInstance().postAccount(t,n)})}function og(){return Jf(function(n){var r=e([Xf.ACCOUNT],n.duplicate_order,!0);return Bh.getInstance().duplicateAccount(t(t({},n),{duplicate_order:r}))})}function ag(){return Jf(function(e){return Bh.getInstance().retryDuplicateAccount(e)})}function ig(){return Jf(function(e){var t=e.name,n=e.code,r=e.principal;return Bh.getInstance().patchAccountV2({name:t,code:n,principal:r})})}function sg(){return Jf(function(e){var t=e.account_code;return Bh.getInstance().putAccountPrincipal({account_code:t})})}function cg(){return Jf(function(e){return Bh.getInstance().bulkDisableAccounts(e)},{useErrorBoundary:!1})}function ug(){return Jf(function(e){return Bh.getInstance().bulkEnableAccounts(e)},{useErrorBoundary:!1})}function lg(){return Jf(function(e){var t=e.organizationCode,n=e.userCode,r=e.payload;return Bh.getInstance().putAccountsUserMassive(t,n,r)})}function dg(){return Jf(function(e){var t=e.organizationCode,n=e.userCode,r=e.payload;return Bh.getInstance().deleteAccountsUserMassive(t,n,r)})}function pg(){return Jf(["post-validate-status-connection"],function(e){var t=e.payload,n=e.accountCode;return Bh.getInstance().postValidateStatusConnection({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function hg(){return Jf(["post-change-status-connection"],function(e){var t=e.payload,n=e.accountCode;return Bh.getInstance().postChangeStatusConnection({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function fg(){return Jf(function(e){return Bh.getInstance().putCosts(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function gg(){return Jf(["post-connection"],function(e){var t=e.payload;return Bh.getInstance().postMultiConnection({payload:t}).then(function(e){return null==e?void 0:e.data})})}function mg(){return Jf(["new-post-connection-validate"],function(){return Bh.getInstance().postMultiConnectionValidate().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function yg(){return Jf(["patch-connection"],function(e){var t=e.payload,n=e.connectionCode;return Bh.getInstance().patchConnection({payload:t,connectionCode:n}).then(function(e){return null==e?void 0:e.data})})}function vg(){return Jf(function(e){var t=e.payload;return Bh.getInstance().postDefaultRoutes({payload:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function bg(){return Jf(function(e){return Bh.getInstance().postValidateCredentials(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function kg(){var e=this;return Jf(function(t){var o=t.payload;return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Bh.getInstance().postNetworkTokensOnboarding(o)];case 1:return[2,e.sent().data]}})})},{useErrorBoundary:!1})}function _g(){return Jf(["patch-organizations"],function(){return Bh.getInstance().updateOrganizationStatus().then(function(e){return null==e?void 0:e.data})})}function wg(){var e=this;return Jf(function(t){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Bh.getInstance().changePasswordV2(t).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function Eg(){var e=this;return Jf(function(t){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Bh.getInstance().workosPasswordReset(t).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function xg(){var e=this;return Jf(function(){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Bh.getInstance().workosAdminPortal().then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function Sg(){var e=this;return Jf(function(){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Bh.getInstance().workosDomainVerificationPortal().then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function Cg(){var e=this;return Jf(function(t){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Bh.getInstance().workosVerifyMfa(t).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function Ig(e){return Jf(function(e){return Bh.getInstance().updateProfile(e)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Rg(){return Jf(function(e){return Bh.getInstance().inviteUsersMassive(e,e.organizationCode)})}function Tg(){return Jf(function(e){return Bh.getInstance().inviteUsersMassiveV2(e)})}function Og(){return Jf(function(e){var t=e.userCode,n=e.organizationCode;return Bh.getInstance().unInviteUsersV2({userCode:t,organizationCode:n})})}function Ag(){return Jf(function(e){return Bh.getInstance().postCall(e)})}function Pg(){return Jf(function(e){return Bh.getInstance().changeLoginMethods(e)})}!function(e){e.ACCOUNT="ACCOUNT",e.CHECKOUT_BUILDER="CHECKOUT_BUILDER",e.CONNECTION="CONNECTION",e.ROUTING="ROUTING",e.RISK_CONDITIONS="RISK_CONDITIONS",e.WEBHOOKS="WEBHOOKS"}(Xf||(Xf={}));var jg=function(){var e=c("ON"===localStorage.getItem("isTesting")),t=e[0],n=e[1];return u(function(){var e=function(e){"isTesting"===e.key&&n("ON"===e.newValue)};return window.addEventListener("storage",e),function(){window.removeEventListener("storage",e)}},[]),{isTesting:t}},Dg=function(e){var t=localStorage.getItem(e),n=c(t&&JSON.parse(t)),r=n[0],o=n[1];return u(function(){var t=function(t){if(t.key===e){var n=t.newValue;o(n)}};return window.addEventListener("storage",t),function(){window.removeEventListener("storage",t)}},[e]),r},Lg=function(){var e,t;return null===(t=null===(e=Dg("account"))||void 0===e?void 0:e.value)||void 0===t?void 0:t.organization_code},zg=function(){var e,t=jg().isTesting,n=null===(e=Dg("account"))||void 0===e?void 0:e.value;return(t?null==n?void 0:n.account_code_testing:null==n?void 0:n.account_code_live)||(null==n?void 0:n.code)};function qg(){if("undefined"==typeof window||"undefined"==typeof localStorage)return"dev";var e="ON"===localStorage.getItem("isTesting"),t=window.location.host;return"dashboard.y.uno"===t?e?"sb":"prod":"dashboard.staging.y.uno"===t?"stg":"dev"}function Ng(e){var n=zg(),r=l(n);return r.current=n,Jf(function(e){return Bh.getInstance().updateIsActiveCheckout(t(t({},e),{accountCode:r.current}))},e)}function Ug(e){var n=zg(),r=l(n);return r.current=n,Jf(function(e){return Bh.getInstance().publishCheckout(t(t({},e),{accountCode:r.current}))},e)}function Bg(){return Jf(function(e){var t=e.payload,n=e.transactionId,r=e.paymentId,o=e.action;return Bh.getInstance().createOperationTransaction(t,n,r,o)})}function Mg(){return Jf(function(e){var t=e.payload,n=e.paymentId,r=e.transactionId,o=e.handleSetProgress;return Bh.getInstance().uploadChargebacks(t,n,r,o)})}function Fg(){return Jf(function(e){var t=e.transactionCode,n=e.payload;return Bh.getInstance().postProviderRawResponse(t,n)})}function Hg(){return Jf(function(e){var t=e.paymentId,n=e.payload;return Bh.getInstance().addToRiskList(t,n)})}var Wg=new wf({}),Vg=new class{constructor(e={}){this.queryCache=e.queryCache||new wf,this.mutationCache=e.mutationCache||new Sf,this.logger=e.logger||vf,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=lf.subscribe(()=>{lf.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=pf.subscribe(()=>{pf.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]=Kh(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 r=Gh(e,t,n),o=this.getQueryData(r.queryKey);return o?Promise.resolve(o):this.fetchQuery(r)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){const r=this.queryCache.find(e),o=function(e,t){return"function"==typeof e?e(t):e}(t,null==r?void 0:r.state.data);if(void 0===o)return;const a=Gh(e),i=this.defaultQueryOptions(a);return this.queryCache.build(this,i).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return bf.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]=Kh(e,t),r=this.queryCache;bf.batch(()=>{r.findAll(n).forEach(e=>{r.remove(e)})})}resetQueries(e,t,n){const[r,o]=Kh(e,t,n),a=this.queryCache,i={type:"active",...r};return bf.batch(()=>(a.findAll(r).forEach(e=>{e.reset()}),this.refetchQueries(i,o)))}cancelQueries(e,t,n){const[r,o={}]=Kh(e,t,n);void 0===o.revert&&(o.revert=!0);const a=bf.batch(()=>this.queryCache.findAll(r).map(e=>e.cancel(o)));return Promise.all(a).then(Hh).catch(Hh)}invalidateQueries(e,t,n){const[r,o]=Kh(e,t,n);return bf.batch(()=>{var e,t;if(this.queryCache.findAll(r).forEach(e=>{e.invalidate()}),"none"===r.refetchType)return Promise.resolve();const n={...r,type:null!=(e=null!=(t=r.refetchType)?t:r.type)?e:"active"};return this.refetchQueries(n,o)})}refetchQueries(e,t,n){const[r,o]=Kh(e,t,n),a=bf.batch(()=>this.queryCache.findAll(r).filter(e=>!e.isDisabled()).map(e=>{var t;return e.fetch(void 0,{...o,cancelRefetch:null==(t=null==o?void 0:o.cancelRefetch)||t,meta:{refetchPage:r.refetchPage}})}));let i=Promise.all(a).then(Hh);return null!=o&&o.throwOnError||(i=i.catch(Hh)),i}fetchQuery(e,t,n){const r=Gh(e,t,n),o=this.defaultQueryOptions(r);void 0===o.retry&&(o.retry=!1);const a=this.queryCache.build(this,o);return a.isStaleByTime(o.staleTime)?a.fetch(o):Promise.resolve(a.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(Hh).catch(Hh)}fetchInfiniteQuery(e,t,n){const r=Gh(e,t,n);return r.behavior=Cf(),this.fetchQuery(r)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(Hh).catch(Hh)}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=>Jh(e)===Jh(t.queryKey));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find(t=>Zh(e,t.queryKey));if("production"!==process.env.NODE_ENV){this.queryDefaults.filter(t=>Zh(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=>Jh(e)===Jh(t.mutationKey));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find(t=>Zh(e,t.mutationKey));if("production"!==process.env.NODE_ENV){this.mutationDefaults.filter(t=>Zh(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=Yh(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:Wg});function Gg(){return Jf(function(e){return Bh.getInstance().createReconciliationsReportV2(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Kg(){return Jf(function(e){return Bh.getInstance().createReconciliationsReportV3(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function $g(){return Jf(function(e){return Bh.getInstance().createReportV2(e).then(function(e){return null==e?void 0:e.data})})}function Qg(){return Jf(function(e){return Bh.getInstance().getTotalRowsForExport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function Yg(){return Jf(function(e){return Bh.getInstance().cancelReport(e).then(function(e){return null==e?void 0:e.data})})}function Jg(t){var o=this;return Jf(function(){return n(o,void 0,void 0,function(){return r(this,function(e){return[2,Bh.getInstance().createReportTemplate(t).then(function(e){return null==e?void 0:e.data})]})})},{onMutate:function(t){return n(o,void 0,void 0,function(){var n;return r(this,function(r){switch(r.label){case 0:return[4,Vg.cancelQueries({queryKey:["GET/reports/templates"]})];case 1:return r.sent(),n=Vg.getQueryData(["GET/reports/templates"]),Vg.setQueryData(["GET/reports/templates"],function(n){return e(e([],n,!0),[t],!1)}),[2,{previousTemplates:n}]}})})},onError:function(e,t,n){Vg.setQueryData(["GET/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){Vg.invalidateQueries({queryKey:["GET/reports/templates"]})}})}function Zg(e){return Jf(function(){return Bh.getInstance().updateReportTemplate(e).then(function(e){return null==e?void 0:e.data})})}function Xg(){return Jf(function(e){return Bh.getInstance().deletePaymentsReportTemplate(e).then(function(e){return null==e?void 0:e.data})})}function em(e,t,o){var a=this;void 0===o&&(o=null);var i=(null==o?void 0:o.basePath)||Bd.DEFAULT_ROUTING_TYPE;return Jf(function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Bh.getInstance().postSmartRoutingCreateWorkflow(e,t,i).then(function(e){return null==e?void 0:e.data})];case 1:return[2,n.sent()]}})})},o)}function tm(e,t){var o=this,a=e.versionCode,i=e.accountCode,s=e.organizationCode,c=e.routingType,u=void 0===c?Bd.DEFAULT_ROUTING_TYPE:c;return void 0===t&&(t=null),Jf(function(){return n(o,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Bh.getInstance().postSmartRoutingPublishVersion(i,a,s,u).then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})},t)}function nm(e,t){var n=e.data,r=e.accountCode,o=e.routingType,a=void 0===o?Bd.DEFAULT_ROUTING_TYPE:o;return void 0===t&&(t=null),Jf(function(){return Bh.getInstance().putSmartRoutingUpdateWorkflow(r,n,a).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},t)}function rm(e,t){var n=e.versionCode,r=e.accountCode,o=e.routingType,a=void 0===o?Bd.DEFAULT_ROUTING_TYPE:o;return void 0===t&&(t=null),Jf(function(){return Bh.getInstance().deleteSmartRoutingVersion(r,n,a).then(function(e){return null==e?void 0:e.data})},t)}function om(e,t){var n=e.versionCode,r=e.accountCode,o=e.routingType,a=void 0===o?Bd.DEFAULT_ROUTING_TYPE:o;return void 0===t&&(t=null),Jf(function(){return Bh.getInstance().postSmartRoutingDuplicateVersion(r,String(n),a).then(function(e){return null==e?void 0:e.data})},t)}function am(e,t){var n=e.paymentMethod,r=e.active,o=e.accountCode,a=e.routingType,i=void 0===a?Bd.DEFAULT_ROUTING_TYPE:a;return void 0===t&&(t=null),Jf(function(){return Bh.getInstance().putSmartRoutingToggleMethod(o,n,r,i).then(function(e){return null==e?void 0:e.data})},t)}function im(e,t){var o=this;return void 0===t&&(t=null),Jf(function(t){return n(o,void 0,void 0,function(){var n,o,a,i,s,c;return r(this,function(r){switch(r.label){case 0:return n=Bh.getInstance(),o=t.map(function(t){return n.putSmartRoutingToggleMethod(e,t.paymentMethod,t.active,t.routingType)}),[4,Promise.allSettled(o)];case 1:return a=r.sent(),i=a.filter(function(e){return"rejected"===e.status}),s=a.filter(function(e){return"fulfilled"===e.status}),c=i.map(function(e,n){return{paymentMethod:t[n].paymentMethod,error:"rejected"===e.status?e.reason:null}}),[2,{success:s.length,failed:i.length,total:t.length,errors:c}]}})})},t)}function sm(e,t){var n=e.declinedId,r=e.accountCode;return void 0===t&&(t=null),Jf(function(e){return void 0===e&&(e=null),Bh.getInstance().updateSmartRoutingDeclinedGroup(r,n,e).then(function(e){return null==e?void 0:e.data})},t)}function cm(e){var t=e.accountCode;return Jf(function(e){return void 0===e&&(e=null),Bh.getInstance().createSmartRoutingDeclinedGroup(t,e).then(function(e){return null==e?void 0:e.data})},e.options)}function um(e,t){var n=e.versionCode,r=e.accountCode,o=e.routingType,a=void 0===o?Bd.DEFAULT_ROUTING_TYPE:o;return void 0===t&&(t=null),Jf(function(e){return void 0===e&&(e=!1),Bh.getInstance().updateSmartRoutingFavorite(r,n,e,a).then(function(e){return null==e?void 0:e.data})},t)}function lm(e,t){var n=e.code,r=e.name,o=e.accountCode,a=e.routingType,i=void 0===a?Bd.DEFAULT_ROUTING_TYPE:a;return void 0===t&&(t=null),Jf(function(){return Bh.getInstance().putSmartRoutingUpdateWorkflowName(o,{code:n,name:r},i).then(function(e){return null==e?void 0:e.data})},t)}function dm(e,t){var n=e.accountCode,r=e.workflowVersionCode,o=e.routingType,a=void 0===o?Bd.DEFAULT_ROUTING_TYPE:o;return void 0===t&&(t=null),Jf(function(e){return Bh.getInstance().simulateSmartRoutingTransaction(n,r,e,a).then(function(e){return null==e?void 0:e.data})},t)}function pm(e,t){return void 0===t&&(t=null),Jf(function(t){return Bh.getInstance().updateMonitorRedistribution(e,t).then(function(e){return null==e?void 0:e.data})},t)}function hm(e,n){return void 0===n&&(n={}),Jf(function(t){var n=t.declinedGroupCode;return Bh.getInstance().removeDeclinedGroup(e,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},t(t({},n),{useErrorBoundary:!1}))}function fm(e,n){return void 0===n&&(n={}),Jf(function(t){var n=t.payload;return Bh.getInstance().multiAccountDeclinedGroupCreate(e,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},t(t({},n),{useErrorBoundary:!1}))}var gm=function(e){return Jf(function(t){return Bh.getInstance().createMonitorThreshold(t,e).then(function(e){return e.data})})},mm=function(e){return Jf(function(t){return Bh.getInstance().createMonitorTemplate(t,e).then(function(e){return e.data})})};function ym(){return Jf(function(e){var t=e.payload;return Bh.getInstance().postSlackFeatureNotification(t).then(function(e){return null==e?void 0:e.data})})}function vm(){return Jf(function(e){var t=e.userCode,n=e.organizationCode;return Bh.getInstance().deleteUserTeamV2({userCode:t,organizationCode:n}).then(function(e){return null==e?void 0:e.data})})}function bm(){return Jf(function(){return Bh.getInstance().setCustodian().then(function(e){return null==e?void 0:e.data})})}function km(){return Jf(function(e){var t=e.payload,n=e.accountCode;return Bh.getInstance().createRoles(t,n).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function _m(){var e=this;return Jf(function(t){var o=t.payload,a=t.id,i=t.accountCode;return n(e,void 0,void 0,function(){var e;return r(this,function(t){switch(t.label){case 0:return[4,Bh.getInstance().editRoles({payload:o,id:a},i)];case 1:return[2,null==(e=t.sent())?void 0:e.data]}})})},{useErrorBoundary:!1})}function wm(){return Jf(function(e){return Bh.getInstance().deleteRoles(e).then(function(e){return null==e?void 0:e.data})})}function Em(){return Jf(function(e){var t=e.payload;return Bh.getInstance().createOrgRole(t).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function xm(){var e=this;return Jf(function(t){var o=t.payload,a=t.id;return n(e,void 0,void 0,function(){var e;return r(this,function(t){switch(t.label){case 0:return[4,Bh.getInstance().editOrgRole({payload:o,id:a})];case 1:return[2,null==(e=t.sent())?void 0:e.data]}})})},{useErrorBoundary:!1})}function Sm(){return Jf(function(e){return Bh.getInstance().deleteOrgRole(e).then(function(e){return null==e?void 0:e.data})})}function Cm(){return Jf(function(e){return Bh.getInstance().startUserExport({accountCodes:e.account_codes,name:e.name,search:e.search,statuses:e.statuses,roleIds:e.role_ids}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Im(){return Jf(["post-payment-links"],function(e){var t=e.payload,n=e.accountCode;return Bh.getInstance().postPaymentLinks({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data})})}function Rm(){return Jf(["post-delete-payment-link"],function(e){var t=e.code;return Bh.getInstance().postDeletePaymentLink({code:t}).then(function(e){return null==e?void 0:e.data})})}function Tm(){return Jf(["patch-payment-links"],function(e){var t=e.payload,n=e.accountCode,r=e.paymentLinkCode;return Bh.getInstance().patchPaymentLinks({payload:t,accountCode:n,paymentLinkCode:r}).then(function(e){return null==e?void 0:e.data})})}function Om(){return Jf(["upload-payment-link-logo"],function(e){var t=e.payload;return Bh.getInstance().uploadPaymentLinkLogo({payload:t}).then(function(e){return null==e?void 0:e.data})})}function Am(){return Jf(["post-subscription"],function(e){return Bh.getInstance().postSubscription(e).then(function(e){return null==e?void 0:e.data})})}function Pm(){return Jf(["post-pause-subscription"],function(e){var t=e.subscriptionCode;return Bh.getInstance().postPauseSubscription(t).then(function(e){return null==e?void 0:e.data})})}function jm(){return Jf(["post-resume-subscription"],function(e){var t=e.subscriptionCode;return Bh.getInstance().postResumeSubscription(t).then(function(e){return null==e?void 0:e.data})})}function Dm(){return Jf(["post-cancel-subscription"],function(e){var t=e.subscriptionCode;return Bh.getInstance().postCancelSubscription(t).then(function(e){return null==e?void 0:e.data})})}function Lm(){return Jf(["patch-subscription"],function(e){var t=e.subscriptionCode,n=e.payload;return Bh.getInstance().patchSubscription(t,n).then(function(e){return null==e?void 0:e.data})})}function zm(){return Jf(["post-reschedule-subscription"],function(e){var t=e.subscriptionCode;return Bh.getInstance().postRescheduleSubscription(t).then(function(e){return null==e?void 0:e.data})})}function qm(){return Jf(["post-list-subscriptions"],function(e){return Bh.getInstance().postListSubscriptions(e).then(function(e){return null==e?void 0:e.data})})}function Nm(){return Jf(function(e){var t=e.payload;return Bh.getInstance().postUserSettings(t)},{onMutate:function(e){return e}})}function Um(){return Jf(function(e){return Bh.getInstance().postUserThemeSettings(e)})}function Bm(){return Jf(function(e){var t=e.payload,n=e.section;return Bh.getInstance().postUserSettingsTables(t,n)},{onMutate:function(e){return e},onSuccess:function(e){var n=Vg.getQueryData(["fetch-profile"]);e.data&&Vg.setQueryData(["fetch-profile"],t(t({},n),{settings:e.data}))}})}function Mm(e){return Jf(["pinned-sections"],function(e){var t=e.payload;return Bh.getInstance().postUserSettingsPinned(t)},{onMutate:function(t){var n=t.payload;return e({payload:n})}})}function Fm(){return Yf(["fetch-profile"],function(){return Bh.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 Hm(){var e=this;return Yf(["get-user-full"],function(){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Bh.getInstance().getUserFull()];case 1:return[2,e.sent().data]}})})},{keepPreviousData:!0,useErrorBoundary:!1})}function Wm(e,t){return Yf(["fetch-permissions",e,t],function(){var e,t,n,r=localStorage.getItem("account"),o=localStorage.getItem("user"),a=r&&JSON.parse(r),i=o&&JSON.parse(o);return((null==i?void 0:i.merlin)?null===(e=null==i?void 0:i.merlin)||void 0===e?void 0:e.permissions:null===(n=null===(t=null==a?void 0:a.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 Vm(e){return Yf(["email-verification",e],function(){return Bh.getInstance().emailVerification(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e})}function Gm(){return Yf({queryKey:["get-login-methods"],queryFn:function(){return Bh.getInstance().getLoginMethods().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})}})}function Km(){return Yf(["fetch-impersonation-users"],function(){return Bh.getInstance().getImpersonationUsers().then(function(e){var t;return(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.result)||[]})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function $m(){return Yf(["fetch-impersonation-enabled"],function(){return Bh.getInstance().getImpersonationEnabled().then(function(e){return null==e?void 0:e.data})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Qm(e,t,o,a,i,s){var c=this;return void 0===o&&(o=1),void 0===a&&(a=10),Yf(["get-users-to-impersonate",e,t,o,a,i,s],function(){return n(c,void 0,void 0,function(){return r(this,function(n){return[2,Bh.getInstance().getUsersToImpersonate(e,t,o,a,i,s).then(function(e){return null==e?void 0:e.data})]})})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function Ym(e){var t;return Yf(["fetch-communications",e],function(){return Bh.getInstance().getCommunications(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null===(t=e.account_codes)||void 0===t?void 0:t.length),useErrorBoundary:!1,cacheTime:3e3})}function Jm(){return Yf(["fetch-communications-filters"],function(){return Bh.getInstance().getCommunicationsFilters().then(function(e){return null==e?void 0:e.data})},{keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3})}function Zm(e,t){return Yf(["fetch-communication-details",e],function(){return Bh.getInstance().getCommunicationDetails(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e,useErrorBoundary:!1,cacheTime:0})}var Xm=["fetch-profile"];function ey(n,r,o){var a,i,s=Fm(),c=Nm().mutate,u=s.data,l=s.isLoading||!s.isFetched,p=null!==(i=null===(a=null==u?void 0:u.settings)||void 0===a?void 0:a.viewed_tutorials)&&void 0!==i?i:[],h="onboarding-".concat(null!=n?n:"default","-").concat(r,"-").concat(o),f=p.includes(h),g=d(function(){var n=null;Vg.setQueryData(Xm,function(r){var o,a,i;if(!r)return r;var s=null!==(a=null===(o=r.settings)||void 0===o?void 0:o.viewed_tutorials)&&void 0!==a?a:[];if(s.includes(h))return r;var c=e(e([],s,!0),[h],!1);return n=c,t(t({},r),{settings:t(t({},null!==(i=r.settings)&&void 0!==i?i:{}),{viewed_tutorials:c})})}),n&&c({payload:{viewed_tutorials:n}})},[h,c]);return{hasSeenOnboarding:f,dismiss:g,id:h,isProfileLoading:l}}function ty(){return Jf(function(e){var t=e.password,n=e.otp;return Bh.getInstance().getMfaTokenValidation(t,n).then(function(e){return null==e?void 0:e.data})})}function ny(){return Jf(function(){return Bh.getInstance().getEmailOtp().then(function(e){return null==e?void 0:e.data})})}function ry(){return Jf(function(e){return Bh.getInstance().confirmMfaOtp(e).then(function(e){return null==e?void 0:e.data})})}function oy(){return Jf(function(e){return Bh.getInstance().unrollMfa(e).then(function(e){return null==e?void 0:e.data})})}function ay(){return Jf(function(){return Bh.getInstance().validatePasswordStatus().then(function(e){return null==e?void 0:e.data}).catch(function(e){return{valid:!1}})})}function iy(){return Jf(["post-get-allowlist-items"],function(e){var t=e.payload;return Bh.getInstance().postAllowlistItems({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function sy(){return Jf(["post-get-allowlist-multi-account"],function(e){var t=e.payload;return Bh.getInstance().postGetAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function cy(){return Jf(["post-create-allowlist-multi-account"],function(e){var t=e.payload;return Bh.getInstance().postCreateAllowlistMultiAccount({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function uy(){return Jf(["patch-change-status-allowlist"],function(e){var t=e.payload;return Bh.getInstance().patchChangeStatusAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function ly(){return Jf(["patch-change-status-allowlist-item"],function(e){var t=e.payload;return Bh.getInstance().patchChangeStatusAllowlistItem({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function dy(){return Jf(["post-add-allowlist-items"],function(e){var t=e.payload;return Bh.getInstance().patchAddAllowlistItems({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function py(){return Jf(["patch-allowlist"],function(e){var t=e.payload;return Bh.getInstance().patchAllowlist({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function hy(){return Jf(["post-blacklist-multi-account"],function(e){var t=e.payload;return Bh.getInstance().postBlackListMultiAccount({payload:t}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function fy(){return Jf(["put-blacklist"],function(e){return Bh.getInstance().putBlackListType(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function gy(){return Jf(["change-blacklist"],function(e){return Bh.getInstance().changeBlackListStatus(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function my(){return Jf(["change-blacklist-item"],function(e){return Bh.getInstance().changeBlackListStatusItem(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function yy(){return Jf(["post-blacklist-items"],function(e){var t=e.payload,n=e.accountCode;return Bh.getInstance().postBlackListItems({payload:t,accountCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function vy(){return Jf(["delete-blacklist"],function(e){var t=e.black_list_code;return Bh.getInstance().deleteBlackListType({black_list_code:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function by(e){var t=e.handleSetProgress;return Jf(["post-blacklist-batch"],function(e){var n=e.blacklist_code,r=e.expiration_days,o=e.file,a=e.accountCode;return Bh.getInstance().postBlackListBatch({blacklist_code:n,expiration_days:r,file:o,handleSetProgress:t,accountCode:a}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function ky(){return Jf(["change-payments-webhook"],function(e){var t=e.status,n=e.paymentCode;return Bh.getInstance().postChangePaymentsWebhook({status:t,paymentCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function _y(){return Jf(["delete-blacklist-items"],function(e){var t=e.blocklist_code,n=e.blocklist_item_id,r=e.account_code;return Bh.getInstance().deleteBlockListItem({blocklist_code:t,blocklist_item_id:n,account_code:r}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function wy(){return Jf(["valiate-blacklist-items"],function(e){return Bh.getInstance().valiateBlockListItems({payload:e}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Ey(){return Jf(["delete-allowlist-item"],function(e){return Bh.getInstance().deleteAllowlistItem({payload:e}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function xy(){return Jf(["validate-allowlist-items"],function(e){return Bh.getInstance().validateAllowlistItems({payload:e}).then(function(e){return e.data}).catch(function(e){return e})})}function Sy(e){var t=e.fileName,n=e.onSuccess,r=e.onError,o=c(0),a=o[0],i=o[1],s=l({cancel:function(){return null}}),u=Jf(["upload-file-chargeback",t],function(e){var t=Bh.getInstance().uploadFileS3ClientBatchRefunds({payload:e,handleSetProgress:i}),o=t.promise,a=t.cancel;return s.current.cancel=a,o.then(function(e){return null==n||n(null==e?void 0:e.data),null==e?void 0:e.data}).catch(function(e){throw null==r||r(),e})},{useErrorBoundary:!1});return{mutation:u,cancelRequest:s.current.cancel,progress:a}}function Cy(){return Jf(function(e){return Bh.getInstance().uploadBatchRefundsV2({payload:e}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Iy(){var e=this;return Jf(function(t){return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Bh.getInstance().batchRefundByFile({payload:t}).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})}function Ry(){var e=this;return Jf(function(t){var o=t.batchRefundId,a=t.organizationCode,i=t.accountCode;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Bh.getInstance().getBatchRefundProcessedFileDownload(o,a,i).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})}function Ty(){var e=this;return Jf(function(t){var o=t.batchRefundId,a=t.organizationCode,i=t.accountCode;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Bh.getInstance().getBatchRefundUserFileDownload(o,a,i).then(function(e){return null==e?void 0:e.data})]})})},{useErrorBoundary:!1})}function Oy(){var e=l({cancel:function(){return null}}),t=Jf(["upload-file"],function(t){var n=Bh.getInstance().uploadFileS3ClientBatchRefunds({payload:t}),r=n.promise,o=n.cancel;return e.current.cancel=o,r.then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})});return{mutation:t,cancelRequest:e.current.cancel}}function Ay(){return Jf(function(e){var t=e.payload,n=e.organizationCode;return Bh.getInstance().updateMFAConfig(t,n)})}function Py(){return Jf(function(e){var t=e.payload,n=e.organizationCode;return Bh.getInstance().mfaExcludeUsers(t,n)})}function jy(e){return Yf(["GET/scheduled-reports",e],function(){return Bh.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 Dy(){return Jf(function(e){var t=e.payload;return Bh.getInstance().postScheduledReport(t).then(function(e){return{data:e.data,status:e.status}}).catch(function(e){return e})})}function Ly(){return Jf(function(e){var t=e.reportCode,n=e.payload;return Bh.getInstance().updateScheduledReport(t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function zy(){return Jf(function(e){return Bh.getInstance().deleteScheduledReport(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function qy(){return Jf(function(e){return Bh.getInstance().getConditionalConfigRules(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Ny(){return Jf(function(e){return Bh.getInstance().getRule(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Uy(){return Jf(function(e){var t=e.payload,n=e.accountCode;return Bh.getInstance().postCreateRuleMultiAccount(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function By(){return Jf(function(e){var t=e.payload,n=e.ruleId,r=e.accountCode;return Bh.getInstance().postEditRule(t,n,r).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function My(){return Jf(function(e){var t=e.payload;return Bh.getInstance().postCreateCustomizedApiKeys(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Fy(){return Jf(function(e){var t=e.payload,n=e.code;return Bh.getInstance().pathCreateCustomizedApiKeys(t,n).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Hy(){return Jf(function(e){var t=e.code,n=e.password,r=e.otp,o=e.mfaToken;return Bh.getInstance().getCustomizedApiKeysToken(t,n,r,o).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})}function Wy(){return Jf(function(e){var t=e.passwordOtp;return Bh.getInstance().getDeveloperCredentialsValidatePassword(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})}function Vy(){return Jf(function(e){var t=e.password;return Bh.getInstance().getDeveloperCredentialsValidatePasswordRegularUser(t).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function Gy(){return Jf(function(e){var t=e.code;return Bh.getInstance().deleteCustomizedApiKeys(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function Ky(){return Jf(function(e){var t=e.payload,n=e.code,r=e.password;return Bh.getInstance().patchApiKeysEditNote(t,n,r).then(function(e){return e.data}).catch(function(e){return e})})}function $y(){return Jf(function(e){var t=e.payload,n=e.code,r=e.password;return Bh.getInstance().postApiKeysRoll(t,n,r).then(function(e){return e.data}).catch(function(e){return e})})}function Qy(){return Jf(function(e){var n=e.password,r=e.accountCode,o=e.otp,a=e.mfaToken;return Bh.getInstance().getDeveloperCredentials(n,r,o,a).then(function(e){return t(t({},null==e?void 0:e.data),{isValid:!0})}).catch(function(e){var t,n,r;return{isValid:!1,status:null===(t=e.response)||void 0===t?void 0:t.status,error:null===(r=null===(n=null==e?void 0:e.response)||void 0===n?void 0:n.data)||void 0===r?void 0:r.data}})})}function Yy(){return Jf(function(e){var t=e.password,n=e.accountCode,r=e.otp,o=e.mfaToken;return Bh.getInstance().getDeveloperCredentials(t,n,r,o).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})})}function Jy(){return Jf(function(){return Bh.getInstance().getOrganizationKeysMetadata().then(function(e){return(null==e?void 0:e.data)||null})})}function Zy(){return Jf(function(e){var t=e.note,n=e.password;return Bh.getInstance().patchOrganizationKeysNote({note:t},n).then(function(e){return(null==e?void 0:e.data)||null})})}function Xy(){return Jf(function(e){var t=e.password,n=e.otp,r=e.mfaToken;return Bh.getInstance().postOrganizationKeysRoll(t,n,r).then(function(e){return(null==e?void 0:e.data)||null})})}function ev(){return Jf(function(e){var t=e.password,n=e.otp,r=e.mfaToken;return Bh.getInstance().postOrganizationKeysTamRequest(t,n,r).then(function(e){return(null==e?void 0:e.data)||null})})}function tv(){return Jf(function(e){var t=e.password,n=e.otp,r=e.mfaToken;return Bh.getInstance().postOrganizationKeysMarkRevealed(t,n,r).then(function(e){return(null==e?void 0:e.data)||null})})}function nv(e){return Jf(function(e){var t=e.payload;return Bh.getInstance().postAuditMonitors(t)},{onMutate:e.onMutate})}function rv(){return Jf(function(e){var t=e.codes;return Bh.getInstance().postResendWebhooks({codes:t}).then(function(e){return null==e?void 0:e.data})})}function ov(){return Jf(function(e){var t=e.tab,n=e.payload;return Bh.getInstance().postUnifiedExport(t,n).then(function(e){return null==e?void 0:e.data})})}function av(){return Jf(function(e){return Bh.getInstance().postExportApiLogs(e).then(function(e){return null==e?void 0:e.data})})}function iv(){return Jf(function(e){return Bh.getInstance().postExportWebhooksLogs(e).then(function(e){return null==e?void 0:e.data})})}function sv(){return Jf(function(e){return Bh.getInstance().postExportDashboardLogs(e).then(function(e){return null==e?void 0:e.data})})}function cv(){return Jf(function(e){return Bh.getInstance().postExportMonitorsLogs(e).then(function(e){return null==e?void 0:e.data})})}function uv(e){var t,n,r=null===(t=e.response)||void 0===t?void 0:t.data;if(r)return r.code||(null===(n=r.data)||void 0===n?void 0:n.code)}function lv(){var e=Wf();return Jf(["create-audit-subscription"],function(e){return Bh.getInstance().createAuditSubscription(e).then(function(e){return{alreadyExists:!1,subscription:null==e?void 0:e.data}}).catch(function(e){var t;if(409===(null===(t=e.response)||void 0===t?void 0:t.status)&&"subscription_already_exists"===uv(e))return{alreadyExists:!0};throw e})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["audit-subscriptions"])}})}function dv(){var e=Wf();return Jf(["delete-audit-subscription"],function(e){return Bh.getInstance().deleteAuditSubscription(e).then(function(){}).catch(function(e){var t;if(404!==(null===(t=e.response)||void 0===t?void 0:t.status)||"subscription_not_found"!==uv(e))throw e})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["audit-subscriptions"])}})}function pv(t){var o=this;return Jf(function(){return Bh.getInstance().createReconciliationReportTemplate(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{onMutate:function(t){return n(o,void 0,void 0,function(){var n,o;return r(this,function(r){switch(r.label){case 0:return[4,Vg.cancelQueries({queryKey:["GET/reconciliation/reports/templates"]})];case 1:return r.sent(),n=null===(o=Vg.getQueryData(["GET/reconciliation/reports/templates"]))||void 0===o?void 0:o.templates,Vg.setQueryData(["GET/reconciliation/reports/templates"],function(n){return{templates:e(e([],n.templates,!0),[t],!1)}}),[2,{previousTemplates:n}]}})})},onError:function(e,t,n){Vg.setQueryData(["GET/reconciliation/reports/templates"],null==n?void 0:n.previousTemplates)},onSettled:function(){Vg.invalidateQueries({queryKey:["GET/reconciliation/reports/templates"]})},useErrorBoundary:!1})}function hv(e){return Jf(function(){return Bh.getInstance().updateReconciliationReportTemplate(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{useErrorBoundary:!1})}function fv(){return Jf(["POST/reconciliation/alerts"],function(e){return Bh.getInstance().postReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Vg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function gv(){return Jf(["DELETE/reconciliation/alerts"],function(e){return Bh.getInstance().deleteReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Vg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function mv(){return Jf(["UPDATE/reconciliation/alerts"],function(e){return Bh.getInstance().updateReconciliationAlert(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Vg.invalidateQueries(["GET/reconciliation/alerts/list"])},useErrorBoundary:!1})}function yv(){return Jf(function(e){var t=e.payload;return Bh.getInstance().postCreateInsightsReport(t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function vv(){return Jf(function(e){return Bh.getInstance().createSamlConfig(e)})}function bv(){return Jf(function(e){return Bh.getInstance().updateSamlConfig(e)})}function kv(){return Jf(function(){return Bh.getInstance().deleteSamlConfig()})}function _v(e,n){return void 0===n&&(n={}),Jf(function(t){return Bh.getInstance().generateAIWorkflowRoutes(e,t).then(function(e){return null==e?void 0:e.data})},t(t({},n),{useErrorBoundary:!1}))}function wv(e){return void 0===e&&(e={}),Jf(function(e){return Bh.getInstance().postAIGenerationFeedback(e).then(function(e){return null==e?void 0:e.data})},t(t({},e),{useErrorBoundary:!1}))}function Ev(){return Jf(function(e){return Bh.getInstance().createChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function xv(){return Jf(function(e){return Bh.getInstance().deleteChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Sv(){return Jf(function(e){var t=e.chart_id,n=e.type,r=e.name,o=e.user_prompt,a=void 0===o?"":o;return Bh.getInstance().patchChartGPTChart(t,{type:n,name:r,user_prompt:a}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Cv(){var e=this;return Jf(function(t){return n(e,void 0,void 0,function(){var e,n,o,a,i;return r(this,function(r){switch(r.label){case 0:return[4,Bh.getInstance().createChartGPTChart(t)];case 1:if(e=r.sent(),!(n=null!==(a=null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.chartgpt_id)&&void 0!==a?a:null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.chart_id))throw new Error("Failed to create chart: No chart ID returned");return[2,{chart_id:n}]}})})},{useErrorBoundary:!1})}function Iv(){return Jf(function(e){return Bh.getInstance().createChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Rv(){var e=this;return Jf(function(t){return n(e,void 0,void 0,function(){var e,n,o,a,i;return r(this,function(r){switch(r.label){case 0:return[4,Bh.getInstance().createChartGPTChart(t)];case 1:if(e=r.sent(),!(n=null!==(a=null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.chartgpt_id)&&void 0!==a?a:null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.chart_id))throw new Error("Failed to create chart: No chart ID returned");return[2,{chart_id:n}]}})})},{useErrorBoundary:!1})}function Tv(e,t){var n=e.chartCode,r=Wf();return Jf(function(e){return Bh.getInstance().submitChartFeedback(n,{rating:e.rating,issues:e.issues||[],comment:e.comment}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(e){var o;r.invalidateQueries(["chart-feedback",n]),null===(o=null==t?void 0:t.onSuccess)||void 0===o||o.call(t,e)},onError:function(e){var n;null===(n=null==t?void 0:t.onError)||void 0===n||n.call(t,e)}})}function Ov(){var e=this;return Jf(["POST/template-reporting/report-templates"],function(t){return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Bh.getInstance().createTemplateReporting(t).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Vg.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function Av(){var e=this;return Jf(["POST/template-reporting/report-templates/clone"],function(t){var o=t.templateId,a=t.payload;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Bh.getInstance().cloneReportTemplate(o,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Vg.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function Pv(){var e=this;return Jf(["PATCH/template-reporting/report-templates/selection"],function(t){var o=t.templateId,a=t.payload;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Bh.getInstance().updateTemplateSelection(o,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Vg.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function jv(){var e=this;return Jf(["PATCH/template-reporting/report-templates/status"],function(t){var o=t.templateId,a=t.payload;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Bh.getInstance().changeTemplateStatus(o,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Vg.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function Dv(){var e=this;return Jf(["DELETE/template-reporting/report-templates"],function(t){var o=t.templateId,a=t.payload;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Bh.getInstance().deleteReportTemplate(o,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Vg.invalidateQueries({queryKey:["POST/template-reporting/templates/search"]})},useErrorBoundary:!1})}function Lv(){var e=this;return Jf(["POST/template-reporting/report-schedules"],function(t){return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Bh.getInstance().createReportSchedule(t).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Vg.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})}function zv(){var e=this;return Jf(["PATCH/template-reporting/report-schedules/disable"],function(t){var o=t.scheduleId,a=t.payload;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Bh.getInstance().disableReportSchedule(o,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Vg.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})}function qv(){var e=this;return Jf(["DELETE/template-reporting/report-schedules"],function(t){var o=t.scheduleId,a=t.payload;return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Bh.getInstance().deleteReportSchedule(o,a).then(function(e){return null==e?void 0:e.data})]})})},{onSuccess:function(){Vg.invalidateQueries({queryKey:["POST/template-reporting/schedules/search"]})},useErrorBoundary:!1})}function Nv(){return Jf(function(e){return Bh.getInstance().postOrganizationConfigs(e)})}function Uv(){return Jf(function(e){return Bh.getInstance().putOrganizationConfigsByAccount(e)})}function Bv(){return Jf(["create-installments-plan"],function(e){var t=e.payload;return Bh.getInstance().createInstallmentsPlan(t).then(function(e){return null==e?void 0:e.data})})}function Mv(){return Jf(["update-installments-plan"],function(e){var t=e.code,n=e.payload;return Bh.getInstance().updateInstallmentsPlan(t,n).then(function(e){return null==e?void 0:e.data})})}function Fv(){return Jf(["delete-installments-plan"],function(e){var t=e.code;return Bh.getInstance().deleteInstallmentsPlan(t).then(function(e){return null==e?void 0:e.data})})}function Hv(){return Jf(["bulk-create-installments-plans"],function(e){var t=e.payload;return Bh.getInstance().bulkCreateInstallmentsPlans(t).then(function(e){return null==e?void 0:e.data})})}function Wv(){return Jf(["bulk-delete-installments-plans"],function(e){var t=e.payload;return Bh.getInstance().bulkDeleteInstallmentsPlans(t).then(function(e){return null==e?void 0:e.data})})}function Vv(){return Jf(function(e){var t=e.accountCode,n=e.payload;return Bh.getInstance().createRecipientExport(n,t).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Gv(){return Jf(function(e){var t=e.accountCode,n=e.exportCode;return Bh.getInstance().downloadRecipientExport(n,t).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Kv(){var e=Wf();return Jf(["create-recipient"],function(e){var t=e.organizationCode,n=e.payload;return Bh.getInstance().createRecipient(t,n).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})}function $v(){var e=Wf();return Jf(["update-recipient"],function(e){var t=e.organizationCode,n=e.recipientId,r=e.payload;return Bh.getInstance().updateRecipient(t,n,r).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})}function Qv(){var e=Wf();return Jf(["delete-recipient"],function(e){var t=e.organizationCode,n=e.recipientId;return Bh.getInstance().deleteRecipient(t,n).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})}function Yv(){var e=Wf();return Jf(["create-onboarding"],function(e){var t=e.organizationCode,n=e.recipientId,r=e.payload;return Bh.getInstance().createOnboarding(t,n,r).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})}function Jv(){var e=Wf();return Jf(["update-onboarding"],function(e){var t=e.organizationCode,n=e.recipientId,r=e.onboardingId,o=e.payload;return Bh.getInstance().updateOnboarding(t,n,r,o).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})}function Zv(){var e=Wf();return Jf(["block-onboarding"],function(e){var t=e.organizationCode,n=e.recipientId,r=e.onboardingId;return Bh.getInstance().blockOnboarding(t,n,r).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})}function Xv(){var e=Wf();return Jf(["unblock-onboarding"],function(e){var t=e.organizationCode,n=e.recipientId,r=e.onboardingId;return Bh.getInstance().unblockOnboarding(t,n,r).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["recipients"])}})}var eb="GET/concierge/access",tb="GET/concierge/access-requests/me";function nb(){return Yf([eb],function(){return Bh.getInstance().getConciergeAccess().then(function(e){return e.data})},{useErrorBoundary:!1})}function rb(){return Yf([tb],function(){return Bh.getInstance().getConciergeAccessRequestStatus().then(function(e){return e.data})},{useErrorBoundary:!1})}function ob(){return Jf(["PUT/concierge/access"],function(e){return Bh.getInstance().updateConciergeAccess(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Vg.invalidateQueries([eb])},useErrorBoundary:!1})}function ab(){return Jf(["POST/concierge/briefs"],function(e){return Bh.getInstance().createConciergeBrief(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Vg.invalidateQueries([eb])},useErrorBoundary:!1})}function ib(){return Jf(["PUT/concierge/briefs"],function(e){var t=e.briefId,n=e.payload;return Bh.getInstance().updateConciergeBrief(t,n).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Vg.invalidateQueries([eb])},useErrorBoundary:!1})}function sb(){return Jf(["POST/concierge/access-requests"],function(e){return Bh.getInstance().createConciergeAccessRequest(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Vg.invalidateQueries([tb])},useErrorBoundary:!1})}function cb(){return Jf(["DELETE/concierge/briefs"],function(e){return Bh.getInstance().deleteConciergeBrief(e).then(function(e){return e.data}).catch(function(e){throw e})},{onSuccess:function(){Vg.invalidateQueries([eb])},useErrorBoundary:!1})}function ub(){return Jf(function(e){var t=e.payload;return Bh.getInstance().postPlaygroundExecuteFlow(t).then(function(e){return null==e?void 0:e.data})})}function lb(){return Jf(["post-integration-request"],function(e){var t=e.payload;return Bh.getInstance().postIntegrationRequest({payload:t}).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function db(){var e=Wf();return Jf(["create-certificate"],function(e){var t=e.organizationCode,n=e.accountCode,r=e.payload;return Bh.getInstance().createCertificate(t,n,r).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["certificates"])}})}function pb(){var e=Wf();return Jf(["update-certificate-accounts"],function(e){var t=e.organizationCode,n=e.accountCode,r=e.certificateCode,o=e.payload;return Bh.getInstance().updateCertificateAccounts(t,n,r,o).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["certificates"])}})}function hb(){var e=Wf();return Jf(["delete-certificate"],function(e){var t=e.organizationCode,n=e.accountCode,r=e.certificateCode;return Bh.getInstance().deleteCertificate(t,n,r).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["certificates"])}})}function fb(){var e=Wf();return Jf(["delete-certificate-account"],function(e){var t=e.organizationCode,n=e.accountCode,r=e.certificateCode,o=e.accountCodeToRemove;return Bh.getInstance().deleteCertificateAccount(t,n,r,o).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,onSuccess:function(){e.invalidateQueries(["certificates"])}})}var gb;function mb(e){var t=this;return Yf(["fetch-payments-lazy",e],function(){return n(t,void 0,void 0,function(){return r(this,function(t){return[2,Bh.getInstance().postPaymentsLazy(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function yb(e){return Yf(["fetch-payments-evaluated",e],function(){return Bh.getInstance().postPaymentsEvaluated(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function vb(e){var t=this,o=e.paymentCode,a=e.enabled,i=void 0===a||a,s=Bh.getInstance();return Yf(["get-payment-v2",o],function(){return n(t,void 0,void 0,function(){return r(this,function(e){return[2,s.getPaymentV2(o).then(function(e){return e.data})]})})},{enabled:i,cacheTime:500,useErrorBoundary:!1})}function bb(e){var t=this,o=e.payment_code,a=e.enabled,i=void 0===a||a,s=Bh.getInstance();return Yf(["get-payment-transaction-details-v2",o],function(){return n(t,void 0,void 0,function(){return r(this,function(e){return[2,s.getTransactionDetailsV2({payment_code:o}).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!o&&i,cacheTime:0,useErrorBoundary:!1})}function kb(e){var t=this,o=e.transaction_code,a=e.enabled,i=void 0===a||a,s=Bh.getInstance();return Yf(["get-payment-transaction-raw-response",o],function(){return n(t,void 0,void 0,function(){return r(this,function(e){return[2,s.getTransactionRawResponse({transaction_code:o})]})})},{enabled:!!o&&i,cacheTime:0,useErrorBoundary:!1})}function _b(e){var t=Lg();return Yf(["payment-methods",e],function(){return Bh.getInstance().getPaymentMethodsByCountry({provider_id:null==e?void 0:e.provider_id,country:null==e?void 0:e.country},t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!(null==e?void 0:e.provider_id),useErrorBoundary:!1})}function wb(){return Yf({queryKey:["/payment-methods/providers"],queryFn:function(){return Bh.getInstance().getPaymentMethodsAndProviders().then(function(e){return null==e?void 0:e.data})},cacheTime:864e5,useErrorBoundary:!1})}function Eb(){return Yf(["GET/catalog/card-brands"],function(){return Bh.getInstance().getCardBrands().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function xb(e,t){return void 0===e&&(e=!0),void 0===t&&(t=Ld.PAYMENTS),Yf(["payment-filters",e,t],function(){return Bh.getInstance().getPaymentFilters(t).then(function(e){return null==e?void 0:e.data})},{enabled:e,useErrorBoundary:!1,cacheTime:3e5})}function Sb(){return Yf(["payment-metrics-filters"],function(){return Bh.getInstance().getPaymentMetricsFilters().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Cb(e){var t=e.transaction_code,n=e.enabled;return Yf(["payment-transaction-details",t],function(){return Bh.getInstance().getPaymentTransactionsDetails({transaction_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function Ib(e){var t=e.payment_code,n=e.enabled;return Yf(["transaction-history",t],function(){return Bh.getInstance().getTransactionHistoryByPaymentCode({payment_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&(void 0===n||n),useErrorBoundary:!1})}function Rb(e){var t=this;return Yf(["POST/transactions",JSON.stringify(e)],function(){return n(t,void 0,void 0,function(){return r(this,function(t){return[2,Bh.getInstance().postTransactions(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e,cacheTime:0,useErrorBoundary:!1})}function Tb(e){var t=this;return Yf(["POST/fraud-transactions",JSON.stringify(e)],function(){return n(t,void 0,void 0,function(){return r(this,function(t){return[2,Bh.getInstance().postFraudTransactions(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&Object.keys(e).length>0,cacheTime:0,useErrorBoundary:!1})}function Ob(e){return Yf(["GET/payout-detail",JSON.stringify(e)],function(){var t=Bh.getInstance();return e.organization_code?t.getPayoutDetails(e).then(function(e){return null==e?void 0:e.data}):{}},{enabled:!!e.organization_code&&!!e&&e.enabled,cacheTime:0,useErrorBoundary:!1})}function Ab(e){return Yf(["GET/payout-transaction-detail",JSON.stringify(e)],function(){return Bh.getInstance().getPayoutTransactionDetails(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!(null==e?void 0:e.transaction_code)&&(null==e?void 0:e.enabled),cacheTime:0,useErrorBoundary:!1})}function Pb(e){var t=Lg();return Yf(["GET/payout-history-detail",JSON.stringify(e)],function(){return Bh.getInstance().getPayoutHistoryDetails(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!(null==e?void 0:e.payout_code)&&e.enabled,cacheTime:0,useErrorBoundary:!1})}function jb(e,t){var o=this,a=Lg();return Yf(["GET/useGetProofOfCancel",a,e,t],function(){return n(o,void 0,void 0,function(){return r(this,function(n){return[2,Bh.getInstance().getProofOfCancel(e,a,t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!a&&!!t,cacheTime:0,useErrorBoundary:!1})}function Db(e,t){var o=this,a=Lg();return Yf(["GET/useGetProofOfPayment",a,e,t],function(){return n(o,void 0,void 0,function(){return r(this,function(n){return[2,Bh.getInstance().getProofOfPayment(e,a,t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!a&&!!t,cacheTime:0,useErrorBoundary:!1})}function Lb(e,t,o){var a=this,i=Bh.getInstance();return Yf(["send-payment-notification",e,t],function(){return n(a,void 0,void 0,function(){var n,a;return r(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,i.sendPaymentNotification(e,t)];case 1:return n=r.sent(),o.onSuccess(),[2,n.data];case 2:throw a=r.sent(),o.onError(),a;case 3:return[2]}})})},{enabled:o.enabled,cacheTime:0,useErrorBoundary:!1})}function zb(e){return Yf(["usePayoutsList",e&&JSON.stringify(e)],function(){var t=Bh.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 qb(e){var t=this;void 0===e&&(e=!0);var o=Lg();return Yf(["getPayoutsFilters",o],function(){return n(t,void 0,void 0,function(){return r(this,function(e){return[2,Bh.getInstance().getPayoutsFilters(o).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})]})})},{enabled:e&&!!o})}function Nb(e,t){var o=this;void 0===t&&(t=!0);var a=Lg();return Yf(["getPayoutTimeline",e,a],function(){return n(o,void 0,void 0,function(){var t;return r(this,function(n){return t=Bh.getInstance(),e?[2,t.getPayoutTimeline(e,a).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})]:[2]})})},{enabled:t&&!!e&&!!a,cacheTime:500,useErrorBoundary:!1})}function Ub(e){var n=e.password,r=e.accountCode,o=e.otp,a=e.mfaToken;return Yf(["developers"],function(){return Bh.getInstance().getDeveloperCredentials(n,r,o,a).then(function(e){return t(t({},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 Bb(){return Yf(["fetch-customized-api-keys-members"],function(){return Bh.getInstance().getCustomizedApiKeysMembers().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})}function Mb(){return Yf(["developers-get-allowed-ips"],function(){return Bh.getInstance().getAllowedIps().then(function(e){return(null==e?void 0:e.data)?t(t({},null==e?void 0:e.data),{isError:!1}):null}).catch(function(e){return t(t({},e),{isError:!0})})},{enabled:!1,cacheTime:0})}function Fb(){return Yf(["fetch-customized-api-keys-accounts"],function(){return Bh.getInstance().getCustomizedApiKeysAccounts().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})}function Hb(e){return Yf(["fetch-customized-api-keys",e],function(){return Bh.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 Wb(){return Yf(["fetch-customized-api-keys-products"],function(){return Bh.getInstance().getCustomizedApiKeysProducts().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{cacheTime:0})}function Vb(){return Jf(["developers-patch-allowed-ips"],function(e){return Bh.getInstance().patchAllowedIps(e).then(function(e){return(null==e?void 0:e.data)?t(t({},null==e?void 0:e.data),{isError:!1}):null}).catch(function(e){return t(t({},e),{isError:!0})})},{cacheTime:0})}function Gb(){return Yf(["fetch-organizations"],function(){return Bh.getInstance().getOrganization().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{keepPreviousData:!0})}function Kb(e){var t=Lg();return Yf(["organizations-provider-params",e],function(e){var n=e.queryKey;return Bh.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 $b(e){var t=e.integration_code,n=e.enabled,r=e.accountCode;return Yf(["integration-params",t,r],function(){return t.includes("undefined")?{}:Bh.getInstance().getIntegrationParams({accountCode:r,integration_code:t}).then(function(e){return null==e?void 0:e.data})},{enabled:n,useErrorBoundary:!1})}function Qb(e){var t=e.accountCode,n=e.organizationCode,r=Lg();return Yf(["organizations-account-integrations",t,n],function(){return Bh.getInstance().getIntegrationByAccountV2({accountCode:t,organizationCode:n||r}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,enabled:!!t,useErrorBoundary:!1})}function Yb(e){var t=e.accountCode,n=e.paymentMethod,r=e.basePath,o=void 0===r?Bd.DEFAULT_ROUTING_TYPE:r;return Yf(["fetch-connections-by-payment-method",n,t,o],function(){return Bh.getInstance().getConnectionsByPaymentMethod(t,n,o).then(function(e){return null==e?void 0:e.data})},{enabled:!!n&&!!t,cacheTime:0,useErrorBoundary:!1})}function Jb(){var e=this;return Yf(["fetch-hash-pylon"],function(){return n(e,void 0,void 0,function(){return r(this,function(e){return[2,Bh.getInstance().getHashPylon()]})})},{keepPreviousData:!0,useErrorBoundary:!1})}function Zb(){return Yf(["connections"],function(){return Bh.getInstance().getConnections().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function Xb(){return Yf(["params-catalog"],function(){return Bh.getInstance().getWebhookParamsV2().then(function(e){return null==e?void 0:e.data})})}function ek(e){var t=e.accountCode,n=e.name;return Yf(["webhooks",t,n],function(){return Bh.getInstance().getWebhooksV3({accountCode:t,name:n}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t,useErrorBoundary:!1})}function tk(e){var t=e.accountCode,n=e.enabled;return Yf(["webhooks-detail",t],function(){return Bh.getInstance().getWebhooksV2Detail({accountCode:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!n})}function nk(e){var t,n=Lg(),r=null!==(t=null!=e?e:n)&&void 0!==t?t:null;return Yf({queryKey:["accounts",r],queryFn:function(){return Bh.getInstance().getAccounts(r).then(function(e){return null==e?void 0:e.data})},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!r})}function rk(e){return Yf(["accountsV2",e],function(){return Bh.getInstance().getAccountsV2().then(function(e){return(null==e?void 0:e.data)||[]}).catch(function(e){throw e})},{keepPreviousData:!0,enabled:!!e,useErrorBoundary:!1})}function ok(e){var t=null==e?void 0:e.includeDisabled;return Yf(["accounts-by-organization",{includeDisabled:t}],function(){return Bh.getInstance().getAccountsByOrganization({includeDisabled:t}).then(function(e){return(null==e?void 0:e.data)||[]}).catch(function(e){throw e})},{keepPreviousData:!0,useErrorBoundary:!1})}function ak(e){return Yf(["accountsV2-by-user",e],function(){return e?Bh.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 ik(e,t){var o=this;return Yf({queryKey:["accounts-for-impersonation",e,t],queryFn:function(){return n(o,void 0,void 0,function(){return r(this,function(n){return[2,Bh.getInstance().getAccountsForImpersonation(e).then(function(e){var n,r;return(null===(r=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.response)||void 0===r?void 0:r.map(function(e){return{label:e.name,value:t?e.code_testing:e.code_live,code_live:e.code_live,code_testing:e.code_testing}}))||[]})]})})},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function sk(e){var t=this;return Yf({queryKey:["roles-for-impersonation",e],queryFn:function(){return n(t,void 0,void 0,function(){return r(this,function(t){return[2,Bh.getInstance().getRolesForImpersonation(e).then(function(e){var t,n;return(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.roles)||void 0===n?void 0:n.map(function(e){return{label:e.name,value:e.id}}))||[]})]})})},keepPreviousData:!0,useErrorBoundary:!1,cacheTime:3e3,enabled:!!e})}function ck(e){return Yf({queryKey:["pending-duplicate-accounts",e],queryFn:function(){return Bh.getInstance().getPendingDuplicateAccounts()},useErrorBoundary:!1,keepPreviousData:!0,refetchInterval:e})}function uk(e,t){return void 0===t&&(t=Bd.DEFAULT_ROUTING_TYPE),Yf(["smart-routing-methods",e,t],function(){return Bh.getInstance().getSmartRoutingMethods(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function lk(e,t,n){return void 0===n&&(n=Bd.DEFAULT_ROUTING_TYPE),Yf(["smart-routing-workflow",t,e,n],function(){return Bh.getInstance().getSmartRoutingWorkflow(e,t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!e,cacheTime:0,retry:!1})}function dk(e,t,n){return void 0===n&&(n=Bd.DEFAULT_ROUTING_TYPE),Yf(["smart-routing-condition-types",e,t,n],function(){return Bh.getInstance().getSmartRoutingConditionTypes(e,t,n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t&&!!e})}function pk(e,t){return Yf(["smart-routing-condition-payment-method",e,t],function(){return Bh.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 hk(e,t){return Yf(["smart-routing-condition-types-values",t,e],function(){return Bh.getInstance().getSmartRoutingConditionTypesValues(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&!!e,useErrorBoundary:!1})}function fk(e){var t=e.accountCode,n=e.workflowVersionId,r=e.routingType,o=void 0===r?Bd.DEFAULT_ROUTING_TYPE:r;return Yf(["smart-routing-workflow-version",n,t,o],function(){return Bh.getInstance().getSmartRoutingWorkflowVersion(t,n,o).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!n&&!!t,cacheTime:0})}function gk(e,t,n,r){return void 0===r&&(r=Bd.DEFAULT_ROUTING_TYPE),Yf(["smart-routing-next-route",e,n,t,r],function(){return Bh.getInstance().getSmartRoutingNextSteps(e,t,n,r).then(function(e){return null==e?void 0:e.data})},{enabled:!!e,useErrorBoundary:!1})}function mk(e,t){return void 0===t&&(t=Bd.DEFAULT_ROUTING_TYPE),Yf(["smart-routing-decline-groups",e,t],function(){return Bh.getInstance().getSmartRoutingDeclinedGroup(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function yk(e,t,n){return void 0===n&&(n=Bd.DEFAULT_ROUTING_TYPE),Yf(["smart-routing-payment-route",e,t,n],function(){return Bh.getInstance().getSmartRoutingPaymentRoute(e,t,n).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!t,cacheTime:0,useErrorBoundary:!1})}function vk(e,t){return void 0===t&&(t=Bd.DEFAULT_ROUTING_TYPE),Yf(["smart-routing-simulate-condition-type-values",e,t],function(){return Bh.getInstance().getSmartRoutingSimulateConditionTypeValues(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,cacheTime:0})}function bk(e){var t=e.text,n=e.conditionType;return Yf(["smart-routing-search-condition-values",t,n],function(){return Bh.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 kk(){return Yf(["smart-routing-conversion-rates"],function(){return Bh.getInstance().getProviderConversionRatesData().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!1,useErrorBoundary:!1})}function _k(){var e=this;return Yf({queryKey:["smart-routing-3ds-excemptions"],queryFn:function(){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Bh.getInstance().get3DSExemptions()];case 1:return[2,e.sent().data]}})})},useErrorBoundary:!1})}function wk(){var e=this;return Yf({queryKey:["smart-routing-network-tokens-onboarding"],queryFn:function(){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Bh.getInstance().getNetworkTokensOnboarding()];case 1:return[2,e.sent().data]}})})},useErrorBoundary:!1})}function Ek(e){return Yf(["fetch-routing-monitors-templates",e],function(){return Bh.getInstance().getRoutingMonitorsTemplates(e).then(function(e){return e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function xk(e,t){return Yf(["fetch-routing-monitors-template",e],function(){return Bh.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 Sk(e,n){var r=e.accountCode,o=Yf(["checkouts",r],function(){return Bh.getInstance().getCheckouts({accountCode:r}).then(function(e){return e.data})},t({cacheTime:0,enabled:Boolean(r),useErrorBoundary:!1},n)),a=o.refetch;return t(t({},o),{refetch:function(e){return a(null!=e?e:void 0)}})}!function(e){e.IN_PROGRESS="IN_PROGRESS",e.COMPLETED="COMPLETED",e.FAILED="FAILED"}(gb||(gb={}));var Ck=function(e){return["checkout-builder-name-and-icon",e.paymentMethodType,e.type]},Ik=function(e,t){var n=e.paymentMethodType,r=e.type;return Yf(Ck({paymentMethodType:n,type:r}),function(){return Bh.getInstance().getNameAndIcon({paymentMethodType:n,type:r}).then(function(e){return null==e?void 0:e.data})},t)},Rk=function(e){return["checkout-builder-required-fields",e.paymentMethodType,e.type]},Tk=function(e,t){var n=e.paymentMethodType,r=e.type;return Yf(Rk({paymentMethodType:n,type:r}),function(){return Bh.getInstance().getRequiredFields({paymentMethodType:n,type:r}).then(function(e){return null==e?void 0:e.data})},t)},Ok=function(e){return Yf(["checkout-builder-country-data",e],function(){return Bh.getInstance().getCountryData({accountCode:e}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,enabled:Boolean(e),useErrorBoundary:!1})},Ak=function(e){return["checkout-payment-method-accounts",e.paymentMethod,e.organizationCode]},Pk=function(e,n){var r=e.paymentMethod,o=e.organizationCode;return Yf(Ak({paymentMethod:r,organizationCode:o}),function(){return Bh.getInstance().getPaymentMethodAccounts({paymentMethod:r,organizationCode:o}).then(function(e){return null==e?void 0:e.data})},t({cacheTime:0,enabled:Boolean(r),useErrorBoundary:!1},n))};function jk(e){var t=e.accountCode;return Yf(["styling-sdk-dynamic",t],function(){return Bh.getInstance().getStylingSdkDynamic({accountCode:t}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(t),useErrorBoundary:!1})}function Dk(e){var t=e.accountCode;return Yf(["styling-settings-v2",t],function(){return Bh.getInstance().getStylingSettingsV2({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 Lk(){return Jf(function(e){var t=e.accountCode,n=e.payload;return Bh.getInstance().changeStylingSettings({accountCode:t,payload:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})})}function zk(e){return Yf(["notifications-customer",e],function(){return Bh.getInstance().getNotificationsCustomer(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e,keepPreviousData:!1})}function qk(e){return Yf(["validate-opsgenie-key",e],function(){return Bh.getInstance().getValidateOpsgenieKey(e).then(function(e){return null==e?void 0:e.data}).catch(function(){return{error:!0}})},{enabled:!!e,cacheTime:0})}function Nk(){return Yf(["notifications-merged"],function(){return Bh.getInstance().getMergedNotifications().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{keepPreviousData:!1,cacheTime:0})}function Uk(){return Jf(function(e){return Bh.getInstance().getNotificationsNumber(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})})}function Bk(){var e=this;return Jf(function(t){return n(e,void 0,void 0,function(){var e;return r(this,function(n){switch(n.label){case 0:return[4,Bh.getInstance().pathNotification(t)];case 1:return[2,null==(e=n.sent())?void 0:e.data]}})})})}var Mk={key:"metadata_fields",name:"metadata_fields",unique_key:"metadata_fields"};function Fk(){return Yf(["reports"],function(){return Bh.getInstance().reportsList().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Hk(e){return void 0===e&&(e=!0),Yf(["reports-multi-env"],function(){return Bh.getInstance().reportsListMultiEnv().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e})}function Wk(e,t,n){return void 0===t&&(t=!1),Yf(["reports/".concat(e)],function(){return Bh.getInstance().downloadReports(e).then(function(e){return null==e?void 0:e.data})},{enabled:t,onSuccess:n,useErrorBoundary:!1})}function Vk(e){return Yf(["GET/reports/templates"],function(){return Bh.getInstance().getReportTemplates().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e,useErrorBoundary:!1})}function Gk(t,o,a){var i=this;return Yf(["GET/reports/columns/".concat(o,"/").concat(a)],function(){return n(i,void 0,void 0,function(){return r(this,function(t){return[2,Bh.getInstance().getReportColumns(o,a).then(function(t){return o===Ud.ALL&&a===Nd.PAYMENTS?e(e([],(null==t?void 0:t.data)||[],!0),[Mk],!1):null==t?void 0:t.data}).catch(function(e){return e})]})})},{enabled:t,useErrorBoundary:!1})}function Kk(e,t){var o=this,a=Lg();return Yf(["getRefundPdf",e,a,t],function(){return n(o,void 0,void 0,function(){return r(this,function(n){return[2,Bh.getInstance().getRefundPdf(e,a,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})]})})},{enabled:!!e&&!!a,useErrorBoundary:!1})}function $k(){var e=Lg();return Yf(["teams-filters-members"],function(){return Bh.getInstance().teamsFiltersMembers({organizationCode:e}).then(function(e){return null==e?void 0:e.data})},{cacheTime:0})}function Qk(e){var t=e.organizationCode,n=e.accountCodes,r=e.search,o=e.status,a=e.roleId,i=e.statuses,s=e.roleIds,c=e.page,u=e.pageSize,l=Lg();return Yf(["fetch-post-members-v2",t,n,r,o,a,i,s,c,u],function(){return Bh.getInstance().postMembersPaginatedV2({organizationCode:l,accountCodes:n,search:r,status:o,roleId:a,statuses:i,roleIds:s,page:c,pageSize:u}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&!!n,cacheTime:0,useErrorBoundary:!1})}function Yk(){return Yf(["fetch-roles"],function(){return Bh.getInstance().getRoles().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function Jk(){return Yf(["fetch-rolespermissions"],function(){return Bh.getInstance().getRolesPermissions().then(function(e){return null==e?void 0:e.data})})}function Zk(){return Yf(["fetch-permissions-catalog"],function(){return Bh.getInstance().getPermissionsCatalog().then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{useErrorBoundary:!1})}function Xk(){return Yf(["fetch-org-roles-permissions"],function(){return Bh.getInstance().getOrgRolesPermissions().then(function(e){return null==e?void 0:e.data})})}function e_(){return Yf(["fetch-org-permissions-catalog"],function(){return Bh.getInstance().getOrgPermissionsCatalog().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function t_(e){var t=e.exportCode,n=e.enabled;return Yf(["user-export-status",t],function(){return Bh.getInstance().getUserExportStatus({exportCode:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t&&(void 0===n||n),refetchInterval:function(e){return("PENDING"===(null==e?void 0:e.status)||"IN_PROGRESS"===(null==e?void 0:e.status))&&5e3},useErrorBoundary:!1})}function n_(e){var t=e.page,n=void 0===t?0:t,r=e.pageSize,o=void 0===r?20:r,a=e.enabled;return Yf(["user-exports-list",n,o],function(){return Bh.getInstance().listUserExports({page:n,pageSize:o}).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===a||a,useErrorBoundary:!1})}function r_(){var e=this,t=Wf();return function(o){return n(e,void 0,void 0,function(){return r(this,function(e){return[2,t.fetchQuery(["user-export-status",o],function(){return Bh.getInstance().getUserExportStatus({exportCode:o}).then(function(e){return null==e?void 0:e.data})})]})})}}function o_(e){return Yf(["data-report",e],function(){return Bh.getInstance().getSmartRoutingDataReport(e).then(function(e){return null==e?void 0:e.data})},{cacheTime:0,useErrorBoundary:!1})}function a_(e,t,n,r){void 0===n&&(n=!0);return Yf(["get-insights-conversion-rate-metrics-v2",e,t],function(){return Bh.getInstance().getInsightsMetricsConversionRateV2(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:n&&(!!(null==e?void 0:e.currency_code)&&"Empty"!==(null==e?void 0:e.currency_code)&&"string"==typeof(null==e?void 0:e.currency_code)||Array.isArray(null==e?void 0:e.currency_code)&&0===(null==e?void 0:e.currency_code.length)),staleTime:200,cacheTime:200,useErrorBoundary:!1,retry:1})}function i_(e,t){return Yf(["get-insights-conversion-rate-view-more-metrics",t,e],function(){return Bh.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 s_(e){return Yf(["get-insights-conversion-rate-fallback-metrics",e],function(){return Bh.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 c_(e,t,n,r){return void 0===r&&(r=!0),delete t.account_code,Yf(["get-insights-volume-metrics-v2",t,e,n],function(){return Bh.getInstance().getInsightsMetricsVolumeV2(e,n,t).then(function(e){return null==e?void 0:e.data})},{enabled:r,cacheTime:200,useErrorBoundary:!1})}function u_(e,t){var n=!!(null==e?void 0:e.enabled)&&void 0!==(null==e?void 0:e.account_code);return Yf(["get-insights-overview-v3",e,t],function(){return Bh.getInstance().getInsightOverviewV3(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:n,cacheTime:0,useErrorBoundary:!1})}function l_(e){return Yf(["get-insights-home-metrics",e],function(){return Bh.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 d_(e){return Yf(["get-insights-reports",e],function(){return Bh.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 p_(e){return Yf(["get-insights-reports-again",e],function(){return Bh.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 h_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Yf({queryKey:["post-insights-fraud-screening-volume-and-count-tx",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Bh.getInstance().getInsightsFraudScreeningVolumeAndCountTx(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function f_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Yf({queryKey:["post-insights-fraud-screening-conversion-rate",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Bh.getInstance().getInsightsFraudScreeningConversionRate(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function g_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Yf({queryKey:["post-insights-3ds-volume-and-count-tx",t,e],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Bh.getInstance().getInsights3dsVolumeAndCountTx(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function m_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Yf({queryKey:["post-insights-3ds-conversion-rate-and-evolution",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Bh.getInstance().getInsights3dsConversionRateAndEvolution(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function y_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Yf({queryKey:["post-insights-3ds-decline-reasons",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Bh.getInstance().getInsights3dsDeclineReasons(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function v_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Yf({queryKey:["post-insights-3ds-frictionless-vs-challenge",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Bh.getInstance().getInsights3dsFrictionlessVsChallenge(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function b_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Yf({queryKey:["post-insights-chargebacks-volume-and-count-tx",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Bh.getInstance().getInsightsChargebacksVolumeAndCountTx(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function k_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Yf({queryKey:["post-insights-chargebacks-total-rate-and-evolution",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Bh.getInstance().getInsightsChargebacksTotalRateAndEvolution(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function __(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Yf({queryKey:["post-insights-chargebacks-win-rate",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Bh.getInstance().getInsightsChargebacksWinRate(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function w_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Yf({queryKey:["post-insights-chargebacks-disputed",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Bh.getInstance().getInsightsChargebacksDisputed(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function E_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Yf({queryKey:["post-insights-chargebacks-by-provider-and-card-brand",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Bh.getInstance().getInsightsChargebacksByProviderAndCardBrand(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function x_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Yf({queryKey:["post-insights-chargebacks-reasons-distribution",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Bh.getInstance().getInsightsChargebacksReasonsDistribution(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function S_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Yf({queryKey:["post-insights-chargebacks-status-distribution",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Bh.getInstance().getInsightsChargebacksStatusDistribution(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function C_(e,t,o){var a=this;return void 0===o&&(o={enabled:!0}),Yf({queryKey:["post-insights-chargebacks-by-card-brand",e,t],queryFn:function(){return n(a,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,Bh.getInstance().getInsightsChargebacksByCardBrand(e,t)];case 1:return[2,n.sent()]}})})},enabled:o.enabled&&void 0!==e.account_codes,cacheTime:200,useErrorBoundary:!1})}function I_(e,t){return Yf(["fetch-reconciliation-transaction",e],function(){return Bh.getInstance().getReconciliationTransactions(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!!t,useErrorBoundary:!1})}function R_(e,t){return Yf(["fetch-reconciliation-settlements",e],function(){return Bh.getInstance().getReconciliationSettlements(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{enabled:!!t,useErrorBoundary:!1})}function T_(e,t){return Yf(["fetch-reconciliation-metrics",e],function(){return Bh.getInstance().getReconciliationMetrics(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!t,cacheTime:500})}function O_(){return Yf(["GET-reconciliation-filters"],function(){return Bh.getInstance().getReconciliationFilters().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1})}function A_(e){return Yf(["GET/v1/reconciliation/table/".concat(e,"/columns")],function(){return Bh.getInstance().getAllTableColumns(e).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})})}function P_(){return Yf(["GET/v1/reconciliation/active"],function(){return Bh.getInstance().getReconciliationActive().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{useErrorBoundary:!1})}function j_(e,t,n){return Yf(["GET/reconciliation/reports/columns/".concat(t,"/").concat(n)],function(){return Bh.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 D_(e){return Yf(["GET/reconciliation/reports/templates"],function(){return Bh.getInstance().getReconciliationReportTemplates().then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){throw e})},{enabled:e,useErrorBoundary:!1})}function L_(e){var t=e.body,n=e.params,r=e.enabled;return Yf(["GET/reconciliation/alerts/list",t,n],function(){return Bh.getInstance().getReconciliationAlerts(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})}function z_(e){var t=e.body,n=e.params,r=e.enabled;return Yf(["GET/reconciliation/agenda/list",t,n],function(){return Bh.getInstance().getReconciliationAgenda(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})}function q_(e){var t=e.body,n=e.params,r=e.enabled;return Yf(["GET/reconciliation/agenda/insights",t,n],function(){return Bh.getInstance().getReconciliationAgendaInsightByKey(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})}function N_(e){var t=e.body,n=e.params,r=e.enabled;return Yf(["GET/reconciliation/sales/list",t,n],function(){return Bh.getInstance().getReconciliationSales(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})}function U_(e){var t=e.body,n=e.params,r=e.enabled;return Yf(["GET/reconciliation/advancements/list",t,n],function(){return Bh.getInstance().getReconciliationAdvancements(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})}function B_(e){var t=e.body,n=e.params,r=e.enabled;return Yf(["GET/reconciliation/fees/list",t,n],function(){return Bh.getInstance().getReconciliationFees(t,n).then(function(e){return e.data})},{enabled:r,useErrorBoundary:!1})}function M_(e){var t=e.body,n=e.enabled;return Yf(["reconciliation-insights-conflicts-summary",t],function(){return Bh.getInstance().getReconciliationInsightsConflictsSummary(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function F_(e){var t=e.body,n=e.enabled;return Yf(["reconciliation-insights-not-reconciled-aggregators",t],function(){return Bh.getInstance().getReconciliationInsightsNotReconciledAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function H_(e){var t=e.body,n=e.enabled;return Yf(["reconciliation-insights-not-reconciled-list",t],function(){return Bh.getInstance().getReconciliationInsightsNotReconciledList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function W_(e){var t=e.body,n=e.enabled;return Yf(["reconciliation-insights-status-conflict-aggregators",t],function(){return Bh.getInstance().getReconciliationInsightsStatusConflictAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function V_(e){var t=e.body,n=e.enabled;return Yf(["reconciliation-insights-status-conflict-list",t],function(){return Bh.getInstance().getReconciliationInsightsStatusConflictList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function G_(e){var t=e.body,n=e.enabled;return Yf(["reconciliation-insights-amount-conflict-aggregators",t],function(){return Bh.getInstance().getReconciliationInsightsAmountConflictAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function K_(e){var t=e.body,n=e.enabled;return Yf(["reconciliation-insights-amount-conflict-list",t],function(){return Bh.getInstance().getReconciliationInsightsAmountConflictList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function $_(e){var t=e.body,n=e.enabled;return Yf(["reconciliation-insights-conflict-date-summary",t],function(){return Bh.getInstance().getReconciliationInsightsConflictDateSummary(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function Q_(e){var t=e.body,n=e.enabled;return Yf(["reconciliation-insights-conflict-date-aggregators",t],function(){return Bh.getInstance().getReconciliationInsightsConflictDateAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function Y_(e){var t=e.body,n=e.enabled;return Yf(["reconciliation-insights-conflict-date-list",t],function(){return Bh.getInstance().getReconciliationInsightsConflictDateList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function J_(e){var t=e.body,n=e.dateFilter,r=e.enabled;return Yf(["reconciliation-insights-incorrect-fees-summary",t,n],function(){return Bh.getInstance().getReconciliationInsightsIncorrectFeesSummary(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===r||r,useErrorBoundary:!1})}function Z_(e){var t=e.body,n=e.dateFilter,r=e.enabled;return Yf(["reconciliation-insights-incorrect-fees-aggregators",t,n],function(){return Bh.getInstance().getReconciliationInsightsIncorrectFeesAggregators(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===r||r,useErrorBoundary:!1})}function X_(e){var t=e.body,n=e.dateFilter,r=e.enabled;return Yf(["reconciliation-insights-incorrect-fees-list",t,n],function(){return Bh.getInstance().getReconciliationInsightsIncorrectFeesList(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===r||r,useErrorBoundary:!1})}function ew(e){var t=e.body,n=e.dateFilter,r=e.enabled;return Yf(["reconciliation-insights-fees-charged-summary",t,n],function(){return Bh.getInstance().getReconciliationInsightsFeesChargedSummary(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===r||r,useErrorBoundary:!1})}function tw(e){var t=e.body,n=e.dateFilter,r=e.enabled;return Yf(["reconciliation-insights-reconciled-summary",t,n],function(){return Bh.getInstance().getReconciliationInsightsReconciledSummary(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===r||r,useErrorBoundary:!1})}function nw(e){var t=e.body,n=e.dateFilter,r=e.transactionType,o=e.enabled;return Yf(["reconciliation-insights-reconciled-aggregators",t,n,r],function(){return Bh.getInstance().getReconciliationInsightsReconciledAggregators(t,n,r).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===o||o,useErrorBoundary:!1})}function rw(e){var t=e.body,n=e.dateFilter,r=e.transactionType,o=e.enabled;return Yf(["reconciliation-insights-reconciled-list",t,n,r],function(){return Bh.getInstance().getReconciliationInsightsReconciledList(t,n,r).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===o||o,useErrorBoundary:!1})}function ow(e){var t=e.body,n=e.enabled;return Yf(["reconciliation-insights-not-confirm-summary",t],function(){return Bh.getInstance().getReconciliationInsightsNotConfirmSummary(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function aw(e){var t=e.body,n=e.enabled;return Yf(["reconciliation-insights-not-confirm-aggregators",t],function(){return Bh.getInstance().getReconciliationInsightsNotConfirmAggregators(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function iw(e){var t=e.body,n=e.enabled;return Yf(["reconciliation-insights-not-confirm-list",t],function(){return Bh.getInstance().getReconciliationInsightsNotConfirmList(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function sw(e){var t=e.body,n=e.enabled;return Yf(["reconciliation-insights-amount-to-be-settled-summary",t],function(){return Bh.getInstance().getReconciliationInsightsAmountToBeSettledSummary(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function cw(e){var t=e.body,n=e.enabled;return Yf(["reconciliation-insights-reconciliation-rate-by-provider",t],function(){return Bh.getInstance().getReconciliationInsightsReconciliationRateByProvider(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function uw(e){var t=e.body,n=e.enabled;return Yf(["reconciliation-insights-reconciliation-rate-by-account",t],function(){return Bh.getInstance().getReconciliationInsightsReconciliationRateByAccount(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function lw(e){var t=e.body,n=e.enabled;return Yf(["reconciliation-insights-reconciliation-rate-by-currency",t],function(){return Bh.getInstance().getReconciliationInsightsReconciliationRateByCurrency(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}function dw(e){var t=e.body,n=e.enabled;return Yf(["reconciliation-insights-settlement-lookup",t],function(){return Bh.getInstance().getReconciliationInsightsSettlementLookup(t).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===n||n,useErrorBoundary:!1})}var pw=Object.freeze({__proto__:null,useAllFeatureFlags:function(e){var t=this,o=Yf({queryKey:["all-feature-flags",Object.values(e).filter(Boolean)],queryFn:function(){return n(t,void 0,void 0,function(){return r(this,function(t){return[2,Bh.getInstance().getFeatureFlagIdAll({accountCode:e.account_code}).then(function(e){return null==e?void 0:e.data})]})})},enabled:!!e.account_code&&!!e.organization_code&&!!e.email,cacheTime:9e5,useErrorBoundary:!1}),a=Wf();return u(function(){a.setQueryData(["cached-feature-flags"],o)},[o,a]),o},useCachedFeatureFlag:function(e){var n,r,o=Wf(),a=o.getQueryState(["cached-feature-flags"]),i=Boolean(!(null===(n=null==a?void 0:a.data)||void 0===n?void 0:n.status)||"loading"===(null===(r=null==a?void 0:a.data)||void 0===r?void 0:r.status)),s=Yf({queryKey:["cached-feature-flags"],queryFn:function(){},enabled:!1,select:function(t){var n;return{result:null===(n=null==t?void 0:t.data)||void 0===n?void 0:n[e]}},initialData:function(){var e=o.getQueryData(["cached-feature-flags"]);return(null==e?void 0:e.data)||{}}});return t(t({},s),{isLoading:i})},useFeatureFlags:function(e){var t=this,o=Object.values(e).filter(Boolean);return Yf(["feature-flags",o],function(){return n(t,void 0,void 0,function(){return r(this,function(t){return[2,Bh.getInstance().getFeatureFlagId(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:o.length>1,useErrorBoundary:!1})}});function hw(e){return{data:e,error:null,isLoading:!1,isFetching:!1,isSuccess:!0,isError:!1,isLoadingError:!1,isRefetchError:!1,isStale:!1,isFetched:!0,isFetchedAfterMount:!0,isPlaceholderData:!1,isPreviousData:!1,isRefetching:!1,isPaused:!1,isInitialLoading:!1,status:"success",fetchStatus:"idle",dataUpdatedAt:Date.now(),errorUpdatedAt:0,failureCount:0,errorUpdateCount:0,refetch:function(){return Promise.resolve(hw(e))},remove:function(){}}}var fw=Object.freeze({__proto__:null,useAllFeatureFlags:function(e){return hw({})},useCachedFeatureFlag:function(e){return hw({result:h(e,!1)})},useFeatureFlags:function(e){var t,n=h(e.name,!1);return hw(((t={})[e.name]=n,t))}}),gw="datadog"==("datadog"===process.env.FEATURE_FLAGS_PROVIDER?"datadog":"legacy")?fw:pw,mw=gw.useFeatureFlags,yw=gw.useAllFeatureFlags,vw=gw.useCachedFeatureFlag;function bw(e){return Yf(["events",e],function(){return Bh.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 kw(e,t){return Yf(["audit-event-by-code",e,t],function(){return Bh.getInstance().getAuditEventByCode(e,null!=t?t:[]).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&Array.isArray(t),cacheTime:0,useErrorBoundary:!1,retry:!1})}function _w(e){return Yf(["audit-monitor-event-detail",e],function(){return Bh.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 ww(e){return Yf(["api-logs",e],function(){return Bh.getInstance().postApiLogs({payload:e}).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.organizationCode,cacheTime:0,useErrorBoundary:!1})}function Ew(e){var t=e.params;return Yf(["webhook-logs",t],function(){return Bh.getInstance().postWebhookLogs({payload:t}).then(function(e){return null==e?void 0:e.data})},{enabled:!!t.organizationCode,cacheTime:0,useErrorBoundary:!1})}function xw(e,t){return Yf(["api-logs-detail",e,t],function(){return Bh.getInstance().getApiLogsDetailByPaymentCode(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e,cacheTime:0,useErrorBoundary:!1})}function Sw(e,t,n){return Yf(["api-logs-by-payment-id",e,t,n],function(){return Bh.getInstance().getApiLogsByPaymentId(e,t,n).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!t,cacheTime:0,useErrorBoundary:!1})}function Cw(e,t){return Yf(["api-logs-by-transaction",e,t],function(){return Bh.getInstance().getApiLogsByTransactionCode(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&!!t,cacheTime:0,useErrorBoundary:!1})}function Iw(e,t){return void 0===t&&(t=!0),Yf(["audit-exports-list",e],function(){return Bh.getInstance().getAuditExportsList(e).then(function(e){return null==e?void 0:e.data})},{enabled:t,cacheTime:0,useErrorBoundary:!1})}function Rw(e,t,n){return void 0===t&&(t=!1),Yf(["audit-export-download",e],function(){return Bh.getInstance().getAuditExportDownload(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&t,cacheTime:0,useErrorBoundary:!1,onSuccess:n})}function Tw(e){var t=e.tab,n=e.exportId,r=e.enabled,o=void 0!==r&&r,a=e.onSuccess;return Yf(["unified-export-status",t,n],function(){return Bh.getInstance().getUnifiedExportStatus(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:!!n&&o,cacheTime:0,useErrorBoundary:!1,onSuccess:a})}function Ow(e){var t=e.tab,n=e.page,r=void 0===n?0:n,o=e.size,a=void 0===o?10:o,i=e.enabled;return Yf(["unified-exports-list",t,r,a],function(){return Bh.getInstance().getUnifiedExportsList(t,r,a).then(function(e){return null==e?void 0:e.data})},{enabled:void 0===i||i,cacheTime:0,useErrorBoundary:!1})}function Aw(e){return Yf(["api-logs-stats-requests",e],function(){return Bh.getInstance().postApiLogsStatsRequests(t({},e)).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.start_date,cacheTime:0,useErrorBoundary:!1})}function Pw(e){return Yf(["api-logs-stats-errors",e],function(){return Bh.getInstance().postApiLogsStatsErrors(t({},e)).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.start_date,cacheTime:0,useErrorBoundary:!1})}function jw(e){return Yf(["api-logs-stats-errors-by-endpoint",e],function(){return Bh.getInstance().postApiLogsStatsErrorsByEndpoint(t({},e)).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.start_date,cacheTime:0,useErrorBoundary:!1})}function Dw(e){return Yf(["api-logs-list",e],function(){return Bh.getInstance().postApiLogsList(t({},e)).then(function(e){return null==e?void 0:e.data})},{enabled:!!e.start_date,cacheTime:0,useErrorBoundary:!1})}function Lw(e){var t=e.paymentCode,n=e.createdAtFrom,r=e.enabled;return Yf(["api-logs-v2-payment",t,n],function(){return Bh.getInstance().getApiLogsV3ByPaymentCode(t,n).then(function(e){return null==e?void 0:e.data})},{enabled:(void 0===r||r)&&!!t,cacheTime:0,useErrorBoundary:!1})}function zw(){return Yf(["audit-subscriptions"],function(){return Bh.getInstance().listAuditSubscriptions().then(function(e){var t;return(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.data)||[]})},{cacheTime:0,keepPreviousData:!0,useErrorBoundary:!1})}function qw(e,t){return Yf(["fetch-payment-links",e,t],function(){return Bh.getInstance().getPaymentLinks(e,t).then(function(e){return null==e?void 0:e.data})},{enabled:!!t,cacheTime:0})}function Nw(e){return Yf(["payment-link"],function(){return Bh.getInstance().getPaymentLinksByCode(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e})}function Uw(e){return void 0===e&&(e=!0),Yf(["countries",e],function(){return Bh.getInstance().useGetCountriesConfig().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:e,keepPreviousData:!0})}function Bw(e){var t=localStorage.getItem("lang")||"en",n=e||t;return Yf(["countries-v2",n],function(){return Bh.getInstance().useGetCountriesConfigV2(n).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!0,keepPreviousData:!0})}function Mw(e,t){return void 0===t&&(t=!0),Yf(["subscription",e],function(){return Bh.getInstance().getSubscriptionByCode(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&t,cacheTime:500})}function Fw(e,t,n,r){return void 0===r&&(r=!0),Yf(["subscription-payments",e,t,n],function(){return Bh.getInstance().getSubscriptionPayments(e,t,n).then(function(e){return null==e?void 0:e.data})},{enabled:!!e&&r,cacheTime:0})}function Hw(e){return Jf(function(e){var t=e.payload;return Bh.getInstance().firebaseUserSubscribe(t)},{onMutate:function(e){return e},onSuccess:e.onSuccessCallback})}function Ww(e,t){return Yf(["get-cofig-allow-list",e],function(){return Bh.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 Vw(e,t){return void 0===t&&(t=!0),Yf(["get-black-list",e],function(){return Bh.getInstance().getBlackListType(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:!!e&&t})}function Gw(e,t,n,r){var o;return Yf(["post-black-list",e],function(){return Bh.getInstance().postBlockList(e,null!=t?t:"",null!=n?n:0,null!=r?r:25).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:(null===(o=e[0])||void 0===o?void 0:o.length)>0&&null!==t,useErrorBoundary:!1})}function Kw(e,t,n){return Yf(["get-block-list-summary",e,t,n],function(){var r=Bh.getInstance();return n?r.getBlackListSummary(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e}):Promise.resolve({})},{enabled:!!e&&!!n})}function $w(e,t,n,r,o,a){return Yf(["black-list-detail",e,t,r,o,a],function(){return Bh.getInstance().getBlacklistDetail(e,t,n,r,o).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{enabled:!!e&&a,cacheTime:0})}function Qw(e,t,n){return Yf(["allow-list-detail",e],function(){return Bh.getInstance().getAllowlistDetail(e,t).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{enabled:!!e&&!!n})}function Yw(e,t){return void 0===t&&(t=!0),Yf(["query-post-get-allowlist-multi-account",JSON.stringify(e)],function(){return Bh.getInstance().postGetAllowlist({payload:e}).then(function(e){return(null==e?void 0:e.data)||null}).catch(function(e){return e})},{enabled:!!e&&t,cacheTime:0})}function Jw(e,t){var o=this;return void 0===e&&(e=26),void 0===t&&(t=0),Yf(["batch-refunds",e,t],function(){return n(o,void 0,void 0,function(){return r(this,function(n){return[2,Bh.getInstance().getBatchRefunds(e,t).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})]})})},{cacheTime:0})}function Zw(e){return Yf(["velocity-rules",e],function(){var t=Bh.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 Xw(){return Yf(["config-rules"],function(){return Bh.getInstance().getAllConfigRules().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0})}function eE(e,t){var n=e.organizationCode;return Yf(["mfa-excluded-users",n],function(){return Bh.getInstance().getMFAExcludedUsers({organizationCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})}function tE(e,t){var n=e.organizationCode;return Yf(["mfa-config",n],function(){return Bh.getInstance().getMFAConfig({organizationCode:n}).then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})}function nE(e,t){return Yf(["mfa-enforcement-status",e.accountCode],function(){return Bh.getInstance().getMFAEnforcementStatus().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:t})}function rE(e){return Yf(["workos-mfa-status"],function(){return Bh.getInstance().getWorkOsMfaStatus().then(function(e){return null==e?void 0:e.data}).catch(function(e){return e})},{cacheTime:0,enabled:e.enabled})}function oE(e){return Yf(["fetch-organization-saml-config",e],function(){return Bh.getInstance().getSamlConfig().then(function(e){return e.data})},{cacheTime:0,enabled:!!e,useErrorBoundary:!1})}function aE(e){return Yf(["chartgpt-chart-execute",e],function(){return Bh.getInstance().executeChartGPTChart(e).then(function(e){return null==e?void 0:e.data})},{enabled:!!e})}function iE(){return Yf(["chartgpt-user-charts"],function(){return Bh.getInstance().getChartsByUser().then(function(e){return null==e?void 0:e.data})},{cacheTime:0})}function sE(){var e=this;return Yf(["chartgpt-user-charts-with-results"],function(){return n(e,void 0,void 0,function(){var e,o,a,i=this;return r(this,function(s){switch(s.label){case 0:return[4,(e=Bh.getInstance()).getChartsByUser()];case 1:return o=s.sent(),a=(null==o?void 0:o.data)||[],[4,Promise.all(a.map(function(o){return n(i,void 0,void 0,function(){var n,a,i,s,c,u,l,d;return r(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,e.executeChartGPTChart(o.code)];case 1:return n=r.sent(),[2,t(t({},o),{user_prompt:null!==(s=null===(i=null==n?void 0:n.data)||void 0===i?void 0:i.user_prompt)&&void 0!==s?s:o.user_prompt,unit_to_display:null!==(u=null===(c=null==n?void 0:n.data)||void 0===c?void 0:c.unit_to_display)&&void 0!==u?u:o.unit_to_display,results:null!==(d=null===(l=null==n?void 0:n.data)||void 0===l?void 0:l.results)&&void 0!==d?d:[]})];case 2:return a=r.sent(),console.error("Failed to execute chart ".concat(o.chart_id,":"),a),[2,t(t({},o),{results:[]})];case 3:return[2]}})})}))];case 2:return[2,s.sent()]}})})})}function cE(e,t,o){var a=this;return void 0===o&&(o=!0),Yf(["chartgpt-patch-and-execute",e,t],function(){return n(a,void 0,void 0,function(){var n,o,a,i,s;return r(this,function(r){switch(r.label){case 0:return[4,(n=Bh.getInstance()).patchChartGPTChart(e,t)];case 1:return o=r.sent(),a=null==o?void 0:o.data,[4,n.executeChartGPTChart(e)];case 2:return i=r.sent(),s=null==i?void 0:i.data,[2,{chart:a,execution:s}]}})})},{enabled:o&&!!e,retry:!1})}function uE(e){var t=this,o=e.chartCode,a=e.enabled;return Yf(["chart-feedback",o],function(){return n(t,void 0,void 0,function(){var e,t,n,a,i;return r(this,function(r){switch(r.label){case 0:e=Bh.getInstance(),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,e.getChartFeedback(o)];case 2:return t=r.sent(),(n=null==t?void 0:t.data)&&n.rating?[2,n]:[2,null];case 3:if(a=r.sent(),404===(null===(i=null==a?void 0:a.response)||void 0===i?void 0:i.status))return[2,null];throw a;case 4:return[2]}})})},{enabled:(void 0===a||a)&&!!o,staleTime:3e5})}function lE(){return Yf(["languages"],function(){return Bh.getInstance().getLanguages().then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,cacheTime:300})}function dE(){var e=localStorage.getItem("lang")||"en";return Yf(["translations",e],function(){return Bh.getInstance().getTranslations(e).then(function(e){return null==e?void 0:e.data})},{useErrorBoundary:!1,cacheTime:3e4})}function pE(e){var t=this;return Yf({queryKey:["network-tokens-onboarding",e],queryFn:function(){return n(t,void 0,void 0,function(){return r(this,function(t){switch(t.label){case 0:return[4,Bh.getInstance().getNetworkTokensOnboardingByOrganization(e)];case 1:return[2,t.sent().data]}})})},enabled:!!e,useErrorBoundary:!1,cacheTime:0})}var hE=function(e){if(!e)return"";var t=new Date(e);return"".concat(["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][t.getUTCMonth()]," ").concat(t.getUTCDate())},fE=function(e,t,n){if(!t||!n)return e||[];var r=function(e,t){var n=[],r=new Date(e),o=new Date(t);r.setUTCHours(0,0,0,0),o.setUTCHours(0,0,0,0);for(var a=new Date(r);a<=o;)n.push(a.toISOString()),a.setUTCDate(a.getUTCDate()+1);return n}(t,n),o=new Map;return null==e||e.forEach(function(e){if(e.date){var t=new Date(e.date).toISOString().split("T")[0];o.set(t,e.value)}}),r.map(function(e){var t=e.split("T")[0];return{date:e,value:o.get(t)||"0"}})},gE=function(e){var t,n=null===(t=e.plots)||void 0===t?void 0:t[0];if(!n||!n.rows)return{distribution:[],total:0};var r=parseFloat(n.value||"0");return{distribution:n.rows.map(function(e){var t,n=100*parseFloat(e.value),o=Math.round(r*parseFloat(e.value));return{key:(null===(t=e.label)||void 0===t?void 0:t.toUpperCase())||"UNKNOWN",total:o,percentage:n,amount:o}}),total:r}},mE=function(e,t,n){var r,o={};return null===(r=e.plots)||void 0===r||r.forEach(function(e){var r=fE(e.rows,t,n),a=e.label;o[a]=r.map(function(e){return{key:e.date||"",total:100*parseFloat(e.value),current_label:hE(e.date||""),current_amount:100*parseFloat(e.value)}})}),o},yE=function(e,t,n){var r,o=null===(r=e.plots)||void 0===r?void 0:r[0];return{distribution:fE(null==o?void 0:o.rows,t,n).map(function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:hE(e.date||""),current_amount:parseFloat(e.value)}}),total:parseFloat((null==o?void 0:o.value)||"0"),total_amount:parseFloat((null==o?void 0:o.value)||"0")}},vE=function(e,t,n){var r,o=null===(r=e.plots)||void 0===r?void 0:r[0];return{distribution:fE(null==o?void 0:o.rows,t,n).map(function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:hE(e.date||""),current_amount:parseFloat(e.value)}}),total:parseFloat((null==o?void 0:o.value)||"0"),total_amount:parseFloat((null==o?void 0:o.value)||"0")}},bE=function(e,o){return Yf(t({queryKey:["smart-recovery-communications-by-day",e],queryFn:function(){return n(void 0,void 0,void 0,function(){var t,n,o;return r(this,function(r){switch(r.label){case 0:return t=Bh.getInstance(),n={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/communications-by-day",n)];case 1:return o=r.sent(),[2,(a=o.data,i=n.start_date,s=n.end_date,c=a.plots||[],u=c.find(function(e){return"TOTAL_COMMUNICATIONS_LABEL"===e.label}),l=c.find(function(e){return"COMPLETED_COMMUNICATIONS_LABEL"===e.label}),d=c.find(function(e){return"CONVERSION_RATE_LABEL"===e.label}),p=fE(null==u?void 0:u.rows,i,s),h=fE(null==l?void 0:l.rows,i,s),f=fE(null==d?void 0:d.rows,i,s),{communications:{distribution:p.map(function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:hE(e.date||""),current_amount:parseFloat(e.value)}}),total:parseFloat((null==u?void 0:u.value)||"0")},conversion_rate:{distribution:f.map(function(e){return{key:e.date||"",total:parseFloat(e.value),percentage:parseFloat(e.value)}}),total:parseFloat((null==d?void 0:d.value)||"0")},completed_communications:{distribution:h.map(function(e){return{key:e.date||"",total:parseFloat(e.value),current_label:hE(e.date||""),current_amount:parseFloat(e.value)}}),total:parseFloat((null==l?void 0:l.value)||"0")}})]}var a,i,s,c,u,l,d,p,h,f})})},enabled:!!e.organization_code,staleTime:3e5},o))},kE=function(e,o){return Yf(t({queryKey:["smart-recovery-communications-by-substatus",e],queryFn:function(){return n(void 0,void 0,void 0,function(){var t,n,o;return r(this,function(r){switch(r.label){case 0:return t=Bh.getInstance(),n={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/communications-by-substatus",n)];case 1:return o=r.sent(),[2,gE(o.data)]}})})},enabled:!!e.organization_code,staleTime:3e5},o))},_E=function(e,o){return Yf(t({queryKey:["smart-recovery-communications-substatus-by-day",e],queryFn:function(){return n(void 0,void 0,void 0,function(){var t,n,o;return r(this,function(r){switch(r.label){case 0:return t=Bh.getInstance(),n={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/communications-substatus-by-day",n)];case 1:return o=r.sent(),[2,mE(o.data,n.start_date,n.end_date)]}})})},enabled:!!e.organization_code,staleTime:3e5},o))},wE=function(e,o){return Yf(t({queryKey:["smart-recovery-recovered-tpv-by-day",e],queryFn:function(){return n(void 0,void 0,void 0,function(){var t,n,o;return r(this,function(r){switch(r.label){case 0:return t=Bh.getInstance(),n={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/recovered-tpv-by-day",n)];case 1:return o=r.sent(),[2,yE(o.data,n.start_date,n.end_date)]}})})},enabled:!!e.organization_code,staleTime:3e5},o))},EE=function(e,o){return Yf(t({queryKey:["smart-recovery-recovered-payments-by-day",e],queryFn:function(){return n(void 0,void 0,void 0,function(){var t,n,o;return r(this,function(r){switch(r.label){case 0:return t=Bh.getInstance(),n={start_date:e.start_date||"",end_date:e.end_date||"",organization_code:e.organization_code,account_codes:e.account_code||[],countries:e.countries||[],channels:e.channels||[],focuses:e.focuses||[],timezone:e.timezone},[4,t.post("/nova-insights/recovered-payments-by-day",n)];case 1:return o=r.sent(),[2,vE(o.data,n.start_date,n.end_date)]}})})},enabled:!!e.organization_code,staleTime:3e5},o))};function xE(e,t){var o=this;return Yf(["POST/template-reporting/templates/search",e],function(){return n(o,void 0,void 0,function(){return r(this,function(t){return[2,Bh.getInstance().searchReportTemplates(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:t,useErrorBoundary:!1})}function SE(e,t,o){var a=this;return Yf(["POST/template-reporting/template-by-id/search",e,t],function(){return n(a,void 0,void 0,function(){return r(this,function(n){return[2,Bh.getInstance().searchReportTemplateById(e,t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:o&&!!e,useErrorBoundary:!1})}function CE(e,t){var o=this;return Yf(["POST/template-reporting/schedules/search",e],function(){return n(o,void 0,void 0,function(){return r(this,function(t){return[2,Bh.getInstance().searchReportSchedules(e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:t,useErrorBoundary:!1})}function IE(e,t,o){var a=this;return Yf(["POST/template-reporting/schedule-by-id/search",e,t],function(){return n(a,void 0,void 0,function(){return r(this,function(n){return[2,Bh.getInstance().searchReportScheduleById(e,t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:o&&!!e,useErrorBoundary:!1})}function RE(){return Yf({queryKey:["organization-configs"],queryFn:function(){return Bh.getInstance().getOrganizationConfigs().then(function(e){return null==e?void 0:e.data})},cacheTime:0,useErrorBoundary:!1})}function TE(e){var t=e.accountCode,n=e.enabled;return Yf(["onboarding-status",t],function(){return Bh.getInstance().getOnboardingStatus(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 OE(e,t,o){var a=this;return void 0===o&&(o=!0),Yf(["get-recipients",e,t],function(){return n(a,void 0,void 0,function(){return r(this,function(n){return[2,Bh.getInstance().getRecipients(e,t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&o,cacheTime:0,useErrorBoundary:!1})}function AE(e,t,o){var a=this;return void 0===o&&(o=!0),Yf(["get-recipients-v2",e,t],function(){return n(a,void 0,void 0,function(){return r(this,function(n){return[2,Bh.getInstance().getRecipientsV2(e,t).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&o,cacheTime:0,useErrorBoundary:!1})}function PE(e,t,o){var a,i=this;return void 0===o&&(o=!0),Yf(["get-recipient-by-id",e,t.recipient_id,null!==(a=t.masking_mode)&&void 0!==a?a:"masked"],function(){return n(i,void 0,void 0,function(){return r(this,function(n){return[2,Bh.getInstance().getRecipientById(e,t.recipient_id,t.masking_mode?{masking_mode:t.masking_mode}:void 0).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!t.recipient_id&&o,cacheTime:500,useErrorBoundary:!1})}function jE(e,t,o){var a=this;return void 0===o&&(o=!0),Yf(["get-onboarding-detail",e,t.recipient_id,t.onboarding_id],function(){return n(a,void 0,void 0,function(){return r(this,function(n){return[2,Bh.getInstance().getOnboardingDetail(e,t.recipient_id,t.onboarding_id).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!t.recipient_id&&!!t.onboarding_id&&o,cacheTime:500,useErrorBoundary:!1})}function DE(e,t,o){var a=this;return void 0===o&&(o=!0),Yf(["get-onboarding-timeline",e,t.onboarding_id],function(){return n(a,void 0,void 0,function(){return r(this,function(n){return[2,Bh.getInstance().getOnboardingTimeline(e,t.onboarding_id).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!t.onboarding_id&&o,cacheTime:500,useErrorBoundary:!1})}function LE(e,t,o){var a=this;return void 0===o&&(o=!0),Yf(["get-recipient-exports",e,t],function(){return n(a,void 0,void 0,function(){return r(this,function(n){return[2,Bh.getInstance().getRecipientExports(t,e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&o,cacheTime:0,useErrorBoundary:!1})}function zE(e,t,o){var a=this;return void 0===o&&(o=!0),Yf(["get-recipient-export-download",e,t],function(){return n(a,void 0,void 0,function(){return r(this,function(n){return[2,Bh.getInstance().downloadRecipientExport(t,e).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!t&&o,cacheTime:0,useErrorBoundary:!1})}function qE(e,t,n){return void 0===t&&(t=!0),Yf(["installments-plans",e,n],function(){return Bh.getInstance().getInstallmentPlans(n).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:Boolean(e)&&t,useErrorBoundary:!1})}function NE(e,t){return void 0===t&&(t=!0),Yf(["search-installments-plans",JSON.stringify(e)],function(){return Bh.getInstance().searchInstallmentsPlans(e).then(function(e){return null==e?void 0:e.data}).catch(function(e){throw e})},{cacheTime:0,enabled:t,useErrorBoundary:!1})}function UE(e){var t=this,o=e.paymentCode,a=e.enabled;return Yf({queryKey:["api-logs-v3",o],queryFn:function(){return n(t,void 0,void 0,function(){return r(this,function(e){return[2,Bh.getInstance().getApiLogsV3(o).then(function(e){return null==e?void 0:e.data})]})})},enabled:(void 0===a||a)&&!!o,staleTime:3e4,cacheTime:3e5,useErrorBoundary:!1})}function BE(e){var t=this,o=e.paymentCode,a=e.enabled;return Yf({queryKey:["webhook-timeline",o],queryFn:function(){return n(t,void 0,void 0,function(){return r(this,function(e){return[2,Bh.getInstance().getWebhookTimeline(o).then(function(e){return null==e?void 0:e.data})]})})},enabled:(void 0===a||a)&&!!o,staleTime:3e4,cacheTime:3e5,useErrorBoundary:!1})}function ME(){var e=this;return Yf(["workos-domain-status"],function(){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Bh.getInstance().workosDomainStatus().then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function FE(){var e=this;return Yf(["workos-sso-config-status"],function(){return n(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Bh.getInstance().workosSsoConfigStatus().then(function(e){return null==e?void 0:e.data})];case 1:return[2,e.sent()]}})})})}function HE(e){var t=this,o=e.scope,a=e.enabled;return Yf(["hidden-fields",o],function(){return n(t,void 0,void 0,function(){var e,t;return r(this,function(n){switch(n.label){case 0:return[4,Bh.getInstance().getHiddenFields({scope:o})];case 1:return e=n.sent(),[2,null!==(t=null==e?void 0:e.data)&&void 0!==t?t:[]]}})})},{enabled:!!o&&(void 0===a||a),staleTime:3e5,useErrorBoundary:!1})}function WE(e,t,o,a){var i=this;return void 0===o&&(o=!0),Yf(["certificates",e,t,null!=a?a:null],function(){return n(i,void 0,void 0,function(){return r(this,function(n){return[2,Bh.getInstance().getCertificates(e,t,a).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!t&&o,cacheTime:0,useErrorBoundary:!1})}function VE(e,t,o,a){var i=this;return void 0===a&&(a=!0),Yf(["download-certificate",e,t,o],function(){return n(i,void 0,void 0,function(){return r(this,function(n){return[2,Bh.getInstance().downloadCertificate(e,t,o).then(function(e){return null==e?void 0:e.data})]})})},{enabled:!!e&&!!t&&!!o&&a,cacheTime:0,useErrorBoundary:!1})}function GE(){return GE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GE.apply(this,arguments)}
|
|
51
51
|
/**
|
|
52
52
|
* match-sorter-utils
|
|
53
53
|
*
|
|
@@ -57,12 +57,12 @@ statuses/index.js:
|
|
|
57
57
|
* LICENSE.md file in the root directory of this source tree.
|
|
58
58
|
*
|
|
59
59
|
* @license MIT
|
|
60
|
-
*/const
|
|
60
|
+
*/const KE={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Ấ":"A","Ắ":"A","Ẳ":"A","Ẵ":"A","Ặ":"A","Æ":"AE","Ầ":"A","Ằ":"A","Ȃ":"A","Ç":"C","Ḉ":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ế":"E","Ḗ":"E","Ề":"E","Ḕ":"E","Ḝ":"E","Ȇ":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ḯ":"I","Ȋ":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ố":"O","Ṍ":"O","Ṓ":"O","Ȏ":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","ấ":"a","ắ":"a","ẳ":"a","ẵ":"a","ặ":"a","æ":"ae","ầ":"a","ằ":"a","ȃ":"a","ç":"c","ḉ":"c","è":"e","é":"e","ê":"e","ë":"e","ế":"e","ḗ":"e","ề":"e","ḕ":"e","ḝ":"e","ȇ":"e","ì":"i","í":"i","î":"i","ï":"i","ḯ":"i","ȋ":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ố":"o","ṍ":"o","ṓ":"o","ȏ":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","C̆":"C","c̆":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","Ǵ":"G","ĝ":"g","ǵ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ḫ":"H","ḫ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","Ḱ":"K","ḱ":"k","K̆":"K","k̆":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"l","ł":"l","Ḿ":"M","ḿ":"m","M̆":"M","m̆":"m","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","N̆":"N","n̆":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","P̆":"P","p̆":"p","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","R̆":"R","r̆":"r","Ȓ":"R","ȓ":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","Ș":"S","ș":"s","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","ț":"t","Ț":"T","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","T̆":"T","t̆":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ȗ":"U","ȗ":"u","V̆":"V","v̆":"v","Ŵ":"W","ŵ":"w","Ẃ":"W","ẃ":"w","X̆":"X","x̆":"x","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Y̆":"Y","y̆":"y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","Ứ":"U","ứ":"u","Ṹ":"U","ṹ":"u","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o","Þ":"TH","þ":"th","Ṕ":"P","ṕ":"p","Ṥ":"S","ṥ":"s","X́":"X","x́":"x","Ѓ":"Г","ѓ":"г","Ќ":"К","ќ":"к","A̋":"A","a̋":"a","E̋":"E","e̋":"e","I̋":"I","i̋":"i","Ǹ":"N","ǹ":"n","Ồ":"O","ồ":"o","Ṑ":"O","ṑ":"o","Ừ":"U","ừ":"u","Ẁ":"W","ẁ":"w","Ỳ":"Y","ỳ":"y","Ȁ":"A","ȁ":"a","Ȅ":"E","ȅ":"e","Ȉ":"I","ȉ":"i","Ȍ":"O","ȍ":"o","Ȑ":"R","ȑ":"r","Ȕ":"U","ȕ":"u","B̌":"B","b̌":"b","Č̣":"C","č̣":"c","Ê̌":"E","ê̌":"e","F̌":"F","f̌":"f","Ǧ":"G","ǧ":"g","Ȟ":"H","ȟ":"h","J̌":"J","ǰ":"j","Ǩ":"K","ǩ":"k","M̌":"M","m̌":"m","P̌":"P","p̌":"p","Q̌":"Q","q̌":"q","Ř̩":"R","ř̩":"r","Ṧ":"S","ṧ":"s","V̌":"V","v̌":"v","W̌":"W","w̌":"w","X̌":"X","x̌":"x","Y̌":"Y","y̌":"y","A̧":"A","a̧":"a","B̧":"B","b̧":"b","Ḑ":"D","ḑ":"d","Ȩ":"E","ȩ":"e","Ɛ̧":"E","ɛ̧":"e","Ḩ":"H","ḩ":"h","I̧":"I","i̧":"i","Ɨ̧":"I","ɨ̧":"i","M̧":"M","m̧":"m","O̧":"O","o̧":"o","Q̧":"Q","q̧":"q","U̧":"U","u̧":"u","X̧":"X","x̧":"x","Z̧":"Z","z̧":"z"},$E=Object.keys(KE).join("|"),QE=new RegExp($E,"g");
|
|
61
61
|
/**
|
|
62
62
|
* @name match-sorter
|
|
63
63
|
* @license MIT license.
|
|
64
64
|
* @copyright (c) 2099 Kent C. Dodds
|
|
65
65
|
* @author Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)
|
|
66
66
|
*/
|
|
67
|
-
const QE=7,YE=6,JE=5,ZE=4,XE=3,ex=2,tx=1,nx=0;function rx(e,t,n){var r;if((n=n||{}).threshold=null!=(r=n.threshold)?r:tx,!n.accessors){const r=ox(e,t,n);return{rankedValue:e,rank:r,accessorIndex:-1,accessorThreshold:n.threshold,passed:r>=n.threshold}}const o=function(e,t){const n=[];for(let r=0,o=t.length;r<o;r++){const o=t[r],a=cx(o),i=ix(e,o);for(let e=0,t=i.length;e<t;e++)n.push({itemValue:i[e],attributes:a})}return n}(e,n.accessors),a={rankedValue:e,rank:nx,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let e=0;e<o.length;e++){const r=o[e];let i=ox(r.itemValue,t,n);const{minRanking:s,maxRanking:c,threshold:u=n.threshold}=r.attributes;i<s&&i>=tx?i=s:i>c&&(i=c),i=Math.min(i,c),i>=u&&i>a.rank&&(a.rank=i,a.passed=!0,a.accessorIndex=e,a.accessorThreshold=u,a.rankedValue=r.itemValue)}return a}function ox(e,t,n){return e=ax(e,n),(t=ax(t,n)).length>e.length?nx:e===t?QE:(e=e.toLowerCase())===(t=t.toLowerCase())?YE:e.startsWith(t)?JE:e.includes(` ${t}`)?ZE:e.includes(t)?XE:1===t.length?nx:function(e){let t="";return e.split(" ").forEach(e=>{e.split("-").forEach(e=>{t+=e.substr(0,1)})}),t}(e).includes(t)?ex:function(e,t){let n=0,r=0;function o(e,t,r){for(let o=r,a=t.length;o<a;o++){if(t[o]===e)return n+=1,o+1}return-1}function a(e){const r=1/e,o=n/t.length;return tx+o*r}const i=o(t[0],e,0);if(i<0)return nx;r=i;for(let n=1,a=t.length;n<a;n++){r=o(t[n],e,r);if(!(r>-1))return nx}const s=r-i;return a(s)}(e,t)}function ax(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=e.replace($E,e=>GE[e])),e}function ix(e,t){let n=t;"object"==typeof t&&(n=t.accessor);const r=n(e);return null==r?[]:Array.isArray(r)?r:[String(r)]}const sx={maxRanking:1/0,minRanking:-1/0};function cx(e){return"function"==typeof e?sx:{...sx,...e}}function ux(e,t){const[n,r]=i.useState();i.useEffect(()=>{const n=(e=>{try{const t=localStorage.getItem(e);return"string"==typeof t?JSON.parse(t):void 0}catch{return}})(e);r(null==n?"function"==typeof t?t():t:n)},[t,e]);return[n,i.useCallback(t=>{r(n=>{let r=t;"function"==typeof t&&(r=t(n));try{localStorage.setItem(e,JSON.stringify(r))}catch{}return r})},[e])]}var lx,dx=function(){function e(){this.keyToValue=new Map,this.valueToKey=new Map}return e.prototype.set=function(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)},e.prototype.getByKey=function(e){return this.keyToValue.get(e)},e.prototype.getByValue=function(e){return this.valueToKey.get(e)},e.prototype.clear=function(){this.keyToValue.clear(),this.valueToKey.clear()},e}(),px=function(){function e(e){this.generateIdentifier=e,this.kv=new dx}return e.prototype.register=function(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))},e.prototype.clear=function(){this.kv.clear()},e.prototype.getIdentifier=function(e){return this.kv.getByValue(e)},e.prototype.getValue=function(e){return this.kv.getByKey(e)},e}(),hx=(lx=function(e,t){return lx=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},lx(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}lx(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),fx=function(e){function t(){var t=e.call(this,function(e){return e.name})||this;return t.classToAllowedProps=new Map,t}return hx(t,e),t.prototype.register=function(t,n){"object"==typeof n?(n.allowProps&&this.classToAllowedProps.set(t,n.allowProps),e.prototype.register.call(this,t,n.identifier)):e.prototype.register.call(this,t,n)},t.prototype.getAllowedProps=function(e){return this.classToAllowedProps.get(e)},t}(px),gx=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i};function mx(e,t){var n=function(e){if("values"in Object)return Object.values(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}(e);if("find"in n)return n.find(t);for(var r=n,o=0;o<r.length;o++){var a=r[o];if(t(a))return a}}function yx(e,t){Object.entries(e).forEach(function(e){var n=gx(e,2),r=n[0],o=n[1];return t(o,r)})}function vx(e,t){return-1!==e.indexOf(t)}function bx(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r))return r}}var kx=function(){function e(){this.transfomers={}}return e.prototype.register=function(e){this.transfomers[e.name]=e},e.prototype.findApplicable=function(e){return mx(this.transfomers,function(t){return t.isApplicable(e)})},e.prototype.findByName=function(e){return this.transfomers[e]},e}(),_x=function(e){return void 0===e},wx=function(e){return"object"==typeof e&&null!==e&&(e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype))},Ex=function(e){return wx(e)&&0===Object.keys(e).length},xx=function(e){return Array.isArray(e)},Sx=function(e){return e instanceof Map},Cx=function(e){return e instanceof Set},Ix=function(e){return"Symbol"===function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e)},Rx=function(e){return"number"==typeof e&&isNaN(e)},Tx=function(e){return function(e){return"boolean"==typeof e}(e)||function(e){return null===e}(e)||_x(e)||function(e){return"number"==typeof e&&!isNaN(e)}(e)||function(e){return"string"==typeof e}(e)||Ix(e)},Ox=function(e){return e.replace(/\./g,"\\.")},Ax=function(e){return e.map(String).map(Ox).join(".")},Px=function(e){for(var t=[],n="",r=0;r<e.length;r++){var o=e.charAt(r);if("\\"===o&&"."===e.charAt(r+1))n+=".",r++;else"."===o?(t.push(n),n=""):n+=o}var a=n;return t.push(a),t},jx=function(){return jx=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},jx.apply(this,arguments)},Dx=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},Lx=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};function zx(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var qx=[zx(_x,"undefined",function(){return null},function(){}),zx(function(e){return"bigint"==typeof e},"bigint",function(e){return e.toString()},function(e){return"undefined"!=typeof BigInt?BigInt(e):(console.error("Please add a BigInt polyfill."),e)}),zx(function(e){return e instanceof Date&&!isNaN(e.valueOf())},"Date",function(e){return e.toISOString()},function(e){return new Date(e)}),zx(function(e){return e instanceof Error},"Error",function(e,t){var n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(function(t){n[t]=e[t]}),n},function(e,t){var n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(function(t){n[t]=e[t]}),n}),zx(function(e){return e instanceof RegExp},"regexp",function(e){return""+e},function(e){var t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),zx(Cx,"set",function(e){return Lx([],Dx(e.values()))},function(e){return new Set(e)}),zx(Sx,"map",function(e){return Lx([],Dx(e.entries()))},function(e){return new Map(e)}),zx(function(e){return Rx(e)||((t=e)===1/0||t===-1/0);var t},"number",function(e){return Rx(e)?"NaN":e>0?"Infinity":"-Infinity"},Number),zx(function(e){return 0===e&&1/e==-1/0},"number",function(){return"-0"},Number),zx(function(e){return e instanceof URL},"URL",function(e){return e.toString()},function(e){return new URL(e)})];function Nx(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var Ux=Nx(function(e,t){return!!Ix(e)&&!!t.symbolRegistry.getIdentifier(e)},function(e,t){return["symbol",t.symbolRegistry.getIdentifier(e)]},function(e){return e.description},function(e,t,n){var r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),Bx=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(e,t){return e[t.name]=t,e},{}),Mx=Nx(function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},function(e){return["typed-array",e.constructor.name]},function(e){return Lx([],Dx(e))},function(e,t){var n=Bx[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function Fx(e,t){return!!(null==e?void 0:e.constructor)&&!!t.classRegistry.getIdentifier(e.constructor)}var Hx=Nx(Fx,function(e,t){return["class",t.classRegistry.getIdentifier(e.constructor)]},function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return jx({},e);var r={};return n.forEach(function(t){r[t]=e[t]}),r},function(e,t,n){var r=n.classRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(r.prototype),e)}),Wx=Nx(function(e,t){return!!t.customTransformerRegistry.findApplicable(e)},function(e,t){return["custom",t.customTransformerRegistry.findApplicable(e).name]},function(e,t){return t.customTransformerRegistry.findApplicable(e).serialize(e)},function(e,t,n){var r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),Vx=[Hx,Ux,Wx,Mx],Gx=function(e,t){var n=bx(Vx,function(n){return n.isApplicable(e,t)});if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var r=bx(qx,function(n){return n.isApplicable(e,t)});return r?{value:r.transform(e,t),type:r.annotation}:void 0},Kx={};qx.forEach(function(e){Kx[e.annotation]=e});var $x=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function Qx(e){if(vx(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(vx(e,"prototype"))throw new Error("prototype is not allowed as a property");if(vx(e,"constructor"))throw new Error("constructor is not allowed as a property")}var Yx=function(e,t,n){if(Qx(t),0===t.length)return n(e);for(var r=e,o=0;o<t.length-1;o++){var a=t[o];if(xx(r))r=r[+a];else if(wx(r))r=r[a];else if(Cx(r)){r=$x(r,i=+a)}else if(Sx(r)){if(o===t.length-2)break;var i=+a,s=0===+t[++o]?"key":"value",c=$x(r,i);switch(s){case"key":r=c;break;case"value":r=r.get(c)}}}var u=t[t.length-1];if(xx(r)?r[+u]=n(r[+u]):wx(r)&&(r[u]=n(r[u])),Cx(r)){var l=$x(r,+u),d=n(l);l!==d&&(r.delete(l),r.add(d))}if(Sx(r)){i=+t[t.length-2];var p=$x(r,i);switch(s=0===+u?"key":"value"){case"key":var h=n(p);r.set(h,r.get(p)),h!==p&&r.delete(p);break;case"value":r.set(p,n(r.get(p)))}}return e},Jx=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},Zx=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};function Xx(e,t,n){if(void 0===n&&(n=[]),e)if(xx(e)){var r=Jx(e,2),o=r[0],a=r[1];a&&yx(a,function(e,r){Xx(e,t,Zx(Zx([],Jx(n)),Jx(Px(r))))}),t(o,n)}else yx(e,function(e,r){return Xx(e,t,Zx(Zx([],Jx(n)),Jx(Px(r))))})}function eS(e,t,n){return Xx(t,function(t,r){e=Yx(e,r,function(e){return function(e,t,n){if(!xx(t)){var r=Kx[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}switch(t[0]){case"symbol":return Ux.untransform(e,t,n);case"class":return Hx.untransform(e,t,n);case"custom":return Wx.untransform(e,t,n);case"typed-array":return Mx.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}}(e,t,n)})}),e}function tS(e,t){function n(t,n){var r=function(e,t){Qx(t);for(var n=0;n<t.length;n++){var r=t[n];if(Cx(e))e=$x(e,+r);else if(Sx(e)){var o=+r,a=0===+t[++n]?"key":"value",i=$x(e,o);switch(a){case"key":e=i;break;case"value":e=e.get(i)}}else e=e[r]}return e}(e,Px(n));t.map(Px).forEach(function(t){e=Yx(e,t,function(){return r})})}if(xx(t)){var r=Jx(t,2),o=r[0],a=r[1];o.forEach(function(t){e=Yx(e,Px(t),function(){return e})}),a&&yx(a,n)}else yx(t,n);return e}var nS=function(e,t,n,r,o,a,i){var s;void 0===o&&(o=[]),void 0===a&&(a=[]),void 0===i&&(i=new Map);var c=Tx(e);if(!c){!function(e,t,n){var r=n.get(e);r?r.push(t):n.set(e,[t])}(e,o,t);var u=i.get(e);if(u)return r?{transformedValue:null}:u}if(!function(e,t){return wx(e)||xx(e)||Sx(e)||Cx(e)||Fx(e,t)}(e,n)){var l=Gx(e,n),d=l?{transformedValue:l.value,annotations:[l.type]}:{transformedValue:e};return c||i.set(e,d),d}if(vx(a,e))return{transformedValue:null};var p=Gx(e,n),h=null!==(s=null==p?void 0:p.value)&&void 0!==s?s:e,f=xx(h)?[]:{},g={};yx(h,function(s,c){var u=nS(s,t,n,r,Zx(Zx([],Jx(o)),[c]),Zx(Zx([],Jx(a)),[e]),i);f[c]=u.transformedValue,xx(u.annotations)?g[c]=u.annotations:wx(u.annotations)&&yx(u.annotations,function(e,t){g[Ox(c)+"."+t]=e})});var m=Ex(g)?{transformedValue:f,annotations:p?[p.type]:void 0}:{transformedValue:f,annotations:p?[p.type,g]:g};return c||i.set(e,m),m};function rS(e){return Object.prototype.toString.call(e).slice(8,-1)}function oS(e){return"Array"===rS(e)}function aS(e,t={}){if(oS(e))return e.map(e=>aS(e,t));if(!function(e){if("Object"!==rS(e))return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}(e))return e;return[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)].reduce((n,r)=>{if(oS(t.props)&&!t.props.includes(r))return n;return function(e,t,n,r,o){const a={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";"enumerable"===a&&(e[t]=n),o&&"nonenumerable"===a&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}(n,r,aS(e[r],t),e,t.nonenumerable),n},{})}var iS=function(){return iS=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},iS.apply(this,arguments)},sS=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},cS=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},uS=function(){function e(e){var t=(void 0===e?{}:e).dedupe,n=void 0!==t&&t;this.classRegistry=new fx,this.symbolRegistry=new px(function(e){var t;return null!==(t=e.description)&&void 0!==t?t:""}),this.customTransformerRegistry=new kx,this.allowedErrorProps=[],this.dedupe=n}return e.prototype.serialize=function(e){var t=new Map,n=nS(e,t,this,this.dedupe),r={json:n.transformedValue};n.annotations&&(r.meta=iS(iS({},r.meta),{values:n.annotations}));var o,a,i,s,c=(o=t,a=this.dedupe,i={},s=void 0,o.forEach(function(e){if(!(e.length<=1)){a||(e=e.map(function(e){return e.map(String)}).sort(function(e,t){return e.length-t.length}));var t=Jx(e),n=t[0],r=t.slice(1);0===n.length?s=r.map(Ax):i[Ax(n)]=r.map(Ax)}}),s?Ex(i)?[s]:[s,i]:Ex(i)?void 0:i);return c&&(r.meta=iS(iS({},r.meta),{referentialEqualities:c})),r},e.prototype.deserialize=function(e){var t=e.json,n=e.meta,r=aS(t);return(null==n?void 0:n.values)&&(r=eS(r,n.values,this)),(null==n?void 0:n.referentialEqualities)&&(r=tS(r,n.referentialEqualities)),r},e.prototype.stringify=function(e){return JSON.stringify(this.serialize(e))},e.prototype.parse=function(e){return this.deserialize(JSON.parse(e))},e.prototype.registerClass=function(e,t){this.classRegistry.register(e,t)},e.prototype.registerSymbol=function(e,t){this.symbolRegistry.register(e,t)},e.prototype.registerCustom=function(e,t){this.customTransformerRegistry.register(iS({name:t},e))},e.prototype.allowErrorProps=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];(e=this.allowedErrorProps).push.apply(e,cS([],sS(t)))},e.defaultInstance=new e,e.serialize=e.defaultInstance.serialize.bind(e.defaultInstance),e.deserialize=e.defaultInstance.deserialize.bind(e.defaultInstance),e.stringify=e.defaultInstance.stringify.bind(e.defaultInstance),e.parse=e.defaultInstance.parse.bind(e.defaultInstance),e.registerClass=e.defaultInstance.registerClass.bind(e.defaultInstance),e.registerSymbol=e.defaultInstance.registerSymbol.bind(e.defaultInstance),e.registerCustom=e.defaultInstance.registerCustom.bind(e.defaultInstance),e.allowErrorProps=e.defaultInstance.allowErrorProps.bind(e.defaultInstance),e}();const lS={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",paused:"#8c49eb",warning:"#ffb200"},dS=i.createContext(lS);function pS({theme:e,...t}){return i.createElement(dS.Provider,VE({value:e},t))}function hS({queryState:e,observerCount:t,isStale:n,theme:r}){return"fetching"===e.fetchStatus?r.active:t?"paused"===e.fetchStatus?r.paused:n?r.warning:r.success:r.gray}function fS(e){return"fetching"===e.state.fetchStatus?"fetching":e.getObserversCount()?"paused"===e.state.fetchStatus?"paused":e.isStale()?"stale":"fresh":"inactive"}function gS(e,t,n={}){return i.forwardRef(({style:r,...o},a)=>{const s=i.useContext(dS),c=Object.entries(n).reduce((e,[t,n])=>function(e){const[t,n]=i.useState(()=>{if("undefined"!=typeof window)return window.matchMedia(e).matches});return i.useEffect(()=>{if("undefined"!=typeof window){const t=window.matchMedia(e),r=({matches:e})=>n(e);return t.addListener(r),()=>{t.removeListener(r)}}},[t,e,n]),t}(t)?{...e,..."function"==typeof n?n(o,s):n}:e,{});return i.createElement(e,{...o,style:{..."function"==typeof t?t(o,s):t,...r,...c},ref:a})})}const mS=(e,t=!1)=>{const{json:n}=uS.serialize(e);return JSON.stringify(n,null,t?2:void 0)},yS=e=>"idle"!==e.state.fetchStatus?0:e.getObserversCount()?e.isStale()?2:1:3,vS=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,bS={"Status > Last Updated":(e,t)=>yS(e)===yS(t)?vS(e,t):yS(e)>yS(t)?1:-1,"Query Hash":(e,t)=>e.queryHash.localeCompare(t.queryHash),"Last Updated":vS},kS=500,_S={top:"bottom",bottom:"top",left:"right",right:"left"};function wS(e){return["left","right"].includes(e)}function ES(e){return _S[e]}function xS(e,t){return""+e+(t.charAt(0).toUpperCase()+t.slice(1))}function SS(e="bottom"){const t=wS(e),n=ES(e),r=xS("margin",n);return{position:"absolute",cursor:t?"col-resize":"row-resize",zIndex:1e5,[n]:0,[r]:"-4px",...t?{top:0,height:"100%",width:"4px"}:{width:"100%",height:"4px"}}}const CS=gS("div",(e,t)=>({fontSize:"clamp(12px, 1.5vw, 14px)",fontFamily:"sans-serif",display:"flex",backgroundColor:t.background,color:t.foreground}),{"(max-width: 700px)":{flexDirection:"column"},"(max-width: 600px)":{fontSize:".9em"}}),IS=gS("div",()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"}),{"(max-width: 700px)":(e,t)=>({borderTop:"2px solid "+t.gray})}),RS=gS("button",(e,t)=>({appearance:"none",fontSize:".9em",fontWeight:"bold",background:t.gray,border:"0",borderRadius:".3em",color:"white",padding:".5em",opacity:e.disabled?".5":void 0,cursor:"pointer"})),TS=gS("span",{display:"flex",flexWrap:"wrap",gap:"0.5em",fontSize:"0.9em"}),OS=gS("span",{display:"inline-flex",alignItems:"center",padding:".2em .4em",fontWeight:"bold",textShadow:"0 0 10px black",borderRadius:".2em"}),AS=gS("code",{fontSize:".9em",color:"inherit",background:"inherit"}),PS=gS("input",(e,t)=>({backgroundColor:t.inputBackgroundColor,border:0,borderRadius:".2em",color:t.inputTextColor,fontSize:".9em",lineHeight:"1.3",padding:".3em .4em"})),jS=gS("select",(e,t)=>({display:"inline-block",fontSize:".9em",fontFamily:"sans-serif",fontWeight:"normal",lineHeight:"1.3",padding:".3em 1.5em .3em .5em",height:"auto",border:0,borderRadius:".2em",appearance:"none",WebkitAppearance:"none",backgroundColor:t.inputBackgroundColor,backgroundImage:"url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23444444'><polygon points='0,25 100,25 50,75'/></svg>\")",backgroundRepeat:"no-repeat",backgroundPosition:"right .55em center",backgroundSize:".65em auto, 100%",color:t.inputTextColor}),{"(max-width: 500px)":{display:"none"}});function DS({text:e}){return i.createElement("span",{style:{position:"absolute",width:"0.1px",height:"0.1px",overflow:"hidden"}},e)}const LS=gS("div",{fontFamily:"Menlo, monospace",fontSize:"1em",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),zS=gS("span",{color:"white"}),qS=gS("button",{cursor:"pointer",color:"white"}),NS=gS("button",{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}),US=({value:e})=>{const[t,n]=i.useState("NoCopy");return i.createElement("button",{onClick:"NoCopy"===t?()=>{navigator.clipboard.writeText(uS.stringify(e)).then(()=>{n("SuccessCopy"),setTimeout(()=>{n("NoCopy")},1500)},e=>{console.error("Failed to copy: ",e),n("ErrorCopy"),setTimeout(()=>{n("NoCopy")},1500)})}:void 0,style:{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}},"NoCopy"===t?i.createElement(WS,null):"SuccessCopy"===t?i.createElement(GS,null):i.createElement(VS,null))},BS=gS("span",(e,t)=>({color:t.danger})),MS=gS("div",{marginLeft:".1em",paddingLeft:"1em",borderLeft:"2px solid rgba(0,0,0,.15)"}),FS=gS("span",{color:"grey",fontSize:".7em"}),HS=({expanded:e,style:t={}})=>i.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:"rotate("+(e?90:0)+"deg) "+(t.transform||""),...t}},"▶"),WS=()=>i.createElement("span",{"aria-label":"Copy object to clipboard",title:"Copy object to clipboard",style:{paddingLeft:"1em"}},i.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10"},i.createElement("path",{fill:"currentColor",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"}),i.createElement("path",{fill:"currentColor",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"}))),VS=()=>i.createElement("span",{"aria-label":"Failed copying to clipboard",title:"Failed copying to clipboard",style:{paddingLeft:"1em",display:"flex",alignItems:"center"}},i.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10",display:"block"},i.createElement("path",{fill:"red",d:"M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z"})),i.createElement("span",{style:{color:"red",fontSize:"12px",paddingLeft:"4px",position:"relative",top:"2px"}},"See console")),GS=()=>i.createElement("span",{"aria-label":"Object copied to clipboard",title:"Object copied to clipboard",style:{paddingLeft:"1em",display:"inline-block",verticalAlign:"middle"}},i.createElement("svg",{height:"16",viewBox:"0 0 16 16",width:"16",display:"block"},i.createElement("path",{fill:"green",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"})));const KS=({handleEntry:e,label:t,value:n,subEntries:r=[],subEntryPages:o=[],type:a,expanded:s=!1,copyable:c=!1,toggleExpanded:u,pageSize:l})=>{const[d,p]=i.useState([]);return i.createElement(LS,{key:t},o.length?i.createElement(i.Fragment,null,i.createElement(NS,{onClick:()=>u()},i.createElement(HS,{expanded:s})," ",t," ",i.createElement(FS,null,"iterable"===String(a).toLowerCase()?"(Iterable) ":"",r.length," ",r.length>1?"items":"item")),c?i.createElement(US,{value:n}):null,s?1===o.length?i.createElement(MS,null,r.map(e)):i.createElement(MS,null,o.map((t,n)=>i.createElement("div",{key:n},i.createElement(LS,null,i.createElement(qS,{onClick:()=>p(e=>e.includes(n)?e.filter(e=>e!==n):[...e,n])},i.createElement(HS,{expanded:s})," [",n*l," ..."," ",n*l+l-1,"]"),d.includes(n)?i.createElement(MS,null,t.map(e)):null)))):null):i.createElement(i.Fragment,null,i.createElement(zS,null,t,":")," ",i.createElement(BS,null,mS(n))))};function $S({value:e,defaultExpanded:t,renderer:n=KS,pageSize:r=100,copyable:o=!1,...a}){const[s,c]=i.useState(Boolean(t)),u=i.useCallback(()=>c(e=>!e),[]);let l=typeof e,d=[];const p=e=>{const n=!0===t?{[e.label]:!0}:null==t?void 0:t[e.label];return{...e,defaultExpanded:n}};var h;Array.isArray(e)?(l="array",d=e.map((e,t)=>p({label:t.toString(),value:e}))):null!==e&&"object"==typeof e&&(h=e,Symbol.iterator in h)&&"function"==typeof e[Symbol.iterator]?(l="Iterable",d=Array.from(e,(e,t)=>p({label:t.toString(),value:e}))):"object"==typeof e&&null!==e&&(l="object",d=Object.entries(e).map(([e,t])=>p({label:e,value:t})));const f=function(e,t){if(t<1)return[];let n=0;const r=[];for(;n<e.length;)r.push(e.slice(n,n+t)),n+=t;return r}(d,r);return n({handleEntry:t=>i.createElement($S,VE({key:t.label,value:e,renderer:n,copyable:o},a,t)),type:l,subEntries:d,subEntryPages:f,value:e,expanded:s,copyable:o,toggleExpanded:u,pageSize:r,...a})}function QS(e){return i.createElement("svg",VE({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),i.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(-33.000000, 0.000000)"},i.createElement("path",{d:"M72.7239712,61.3436237 C69.631224,46.362877 68.9675112,34.8727722 70.9666331,26.5293551 C72.1555965,21.5671678 74.3293088,17.5190846 77.6346064,14.5984631 C81.1241394,11.5150478 85.5360327,10.0020122 90.493257,10.0020122 C98.6712013,10.0020122 107.26826,13.7273214 116.455725,20.8044264 C120.20312,23.6910458 124.092437,27.170411 128.131651,31.2444746 C128.45314,30.8310265 128.816542,30.4410453 129.22143,30.0806152 C140.64098,19.9149716 150.255245,13.5989272 158.478408,11.1636507 C163.367899,9.715636 167.958526,9.57768202 172.138936,10.983031 C176.551631,12.4664684 180.06766,15.5329489 182.548314,19.8281091 C186.642288,26.9166735 187.721918,36.2310983 186.195595,47.7320243 C185.573451,52.4199112 184.50985,57.5263831 183.007094,63.0593153 C183.574045,63.1277086 184.142416,63.2532808 184.705041,63.4395297 C199.193932,68.2358678 209.453582,73.3937462 215.665021,79.2882839 C219.360669,82.7953831 221.773972,86.6998434 222.646365,91.0218204 C223.567176,95.5836746 222.669313,100.159332 220.191548,104.451297 C216.105211,111.529614 208.591643,117.11221 197.887587,121.534031 C193.589552,123.309539 188.726579,124.917559 183.293259,126.363748 C183.541176,126.92292 183.733521,127.516759 183.862138,128.139758 C186.954886,143.120505 187.618598,154.61061 185.619477,162.954027 C184.430513,167.916214 182.256801,171.964297 178.951503,174.884919 C175.46197,177.968334 171.050077,179.48137 166.092853,179.48137 C157.914908,179.48137 149.31785,175.756061 140.130385,168.678956 C136.343104,165.761613 132.410866,162.238839 128.325434,158.108619 C127.905075,158.765474 127.388968,159.376011 126.77857,159.919385 C115.35902,170.085028 105.744755,176.401073 97.5215915,178.836349 C92.6321009,180.284364 88.0414736,180.422318 83.8610636,179.016969 C79.4483686,177.533532 75.9323404,174.467051 73.4516862,170.171891 C69.3577116,163.083327 68.2780823,153.768902 69.8044053,142.267976 C70.449038,137.410634 71.56762,132.103898 73.1575891,126.339009 C72.5361041,126.276104 71.9120754,126.144816 71.2949591,125.940529 C56.8060684,121.144191 46.5464184,115.986312 40.3349789,110.091775 C36.6393312,106.584675 34.2260275,102.680215 33.3536352,98.3582381 C32.4328237,93.7963839 33.3306866,89.2207269 35.8084524,84.9287618 C39.8947886,77.8504443 47.4083565,72.2678481 58.1124133,67.8460273 C62.5385143,66.0176154 67.5637208,64.366822 73.1939394,62.8874674 C72.9933393,62.3969171 72.8349374,61.8811235 72.7239712,61.3436237 Z",fill:"#002C4B",fillRule:"nonzero",transform:"translate(128.000000, 95.000000) scale(-1, 1) translate(-128.000000, -95.000000) "}),i.createElement("path",{d:"M113.396882,64 L142.608177,64 C144.399254,64 146.053521,64.958025 146.944933,66.5115174 L161.577138,92.0115174 C162.461464,93.5526583 162.461464,95.4473417 161.577138,96.9884826 L146.944933,122.488483 C146.053521,124.041975 144.399254,125 142.608177,125 L113.396882,125 C111.605806,125 109.951539,124.041975 109.060126,122.488483 L94.4279211,96.9884826 C93.543596,95.4473417 93.543596,93.5526583 94.4279211,92.0115174 L109.060126,66.5115174 C109.951539,64.958025 111.605806,64 113.396882,64 Z M138.987827,70.2765273 C140.779849,70.2765273 142.434839,71.2355558 143.325899,72.7903404 L154.343038,92.0138131 C155.225607,93.5537825 155.225607,95.4462175 154.343038,96.9861869 L143.325899,116.20966 C142.434839,117.764444 140.779849,118.723473 138.987827,118.723473 L117.017233,118.723473 C115.225211,118.723473 113.570221,117.764444 112.67916,116.20966 L101.662022,96.9861869 C100.779452,95.4462175 100.779452,93.5537825 101.662022,92.0138131 L112.67916,72.7903404 C113.570221,71.2355558 115.225211,70.2765273 117.017233,70.2765273 L138.987827,70.2765273 Z M135.080648,77.1414791 L120.924411,77.1414791 C119.134228,77.1414791 117.480644,78.0985567 116.5889,79.6508285 L116.5889,79.6508285 L109.489217,92.0093494 C108.603232,93.5515958 108.603232,95.4484042 109.489217,96.9906506 L109.489217,96.9906506 L116.5889,109.349172 C117.480644,110.901443 119.134228,111.858521 120.924411,111.858521 L120.924411,111.858521 L135.080648,111.858521 C136.870831,111.858521 138.524416,110.901443 139.41616,109.349172 L139.41616,109.349172 L146.515843,96.9906506 C147.401828,95.4484042 147.401828,93.5515958 146.515843,92.0093494 L146.515843,92.0093494 L139.41616,79.6508285 C138.524416,78.0985567 136.870831,77.1414791 135.080648,77.1414791 L135.080648,77.1414791 Z M131.319186,83.7122186 C133.108028,83.7122186 134.760587,84.6678753 135.652827,86.2183156 L138.983552,92.0060969 C139.87203,93.5500005 139.87203,95.4499995 138.983552,96.9939031 L135.652827,102.781684 C134.760587,104.332125 133.108028,105.287781 131.319186,105.287781 L124.685874,105.287781 C122.897032,105.287781 121.244473,104.332125 120.352233,102.781684 L117.021508,96.9939031 C116.13303,95.4499995 116.13303,93.5500005 117.021508,92.0060969 L120.352233,86.2183156 C121.244473,84.6678753 122.897032,83.7122186 124.685874,83.7122186 L131.319186,83.7122186 Z M128.003794,90.1848875 C126.459294,90.1848875 125.034382,91.0072828 124.263005,92.3424437 C123.491732,93.6774232 123.491732,95.3225768 124.263005,96.6575563 C125.034382,97.9927172 126.459294,98.8151125 128.001266,98.8151125 L128.001266,98.8151125 C129.545766,98.8151125 130.970678,97.9927172 131.742055,96.6575563 C132.513327,95.3225768 132.513327,93.6774232 131.742055,92.3424437 C130.970678,91.0072828 129.545766,90.1848875 128.003794,90.1848875 L128.003794,90.1848875 Z M93,94.5009646 L100.767764,94.5009646",fill:"#FFD94C"}),i.createElement("path",{d:"M87.8601729,108.357758 C89.1715224,107.608286 90.8360246,108.074601 91.5779424,109.399303 L91.5779424,109.399303 L92.0525843,110.24352 C95.8563392,116.982993 99.8190116,123.380176 103.940602,129.435068 C108.807881,136.585427 114.28184,143.82411 120.362479,151.151115 C121.316878,152.30114 121.184944,154.011176 120.065686,154.997937 L120.065686,154.997937 L119.454208,155.534625 C99.3465389,173.103314 86.2778188,176.612552 80.2480482,166.062341 C74.3500652,155.742717 76.4844915,136.982888 86.6513274,109.782853 C86.876818,109.179582 87.3045861,108.675291 87.8601729,108.357758 Z M173.534177,129.041504 C174.986131,128.785177 176.375496,129.742138 176.65963,131.194242 L176.65963,131.194242 L176.812815,131.986376 C181.782365,157.995459 178.283348,171 166.315764,171 C154.609745,171 139.708724,159.909007 121.612702,137.727022 C121.211349,137.235047 120.994572,136.617371 121,135.981509 C121.013158,134.480686 122.235785,133.274651 123.730918,133.287756 L123.730918,133.287756 L124.684654,133.294531 C132.305698,133.335994 139.714387,133.071591 146.910723,132.501323 C155.409039,131.82788 164.283523,130.674607 173.534177,129.041504 Z M180.408726,73.8119663 C180.932139,72.4026903 182.508386,71.6634537 183.954581,72.149012 L183.954581,72.149012 L184.742552,72.4154854 C210.583763,81.217922 220.402356,90.8916805 214.198332,101.436761 C208.129904,111.751366 190.484347,119.260339 161.26166,123.963678 C160.613529,124.067994 159.948643,123.945969 159.382735,123.618843 C158.047025,122.846729 157.602046,121.158214 158.388848,119.847438 L158.388848,119.847438 L158.889328,119.0105 C162.877183,112.31633 166.481358,105.654262 169.701854,99.0242957 C173.50501,91.1948179 177.073967,82.7907081 180.408726,73.8119663 Z M94.7383398,66.0363218 C95.3864708,65.9320063 96.0513565,66.0540315 96.6172646,66.3811573 C97.9529754,67.153271 98.3979538,68.8417862 97.6111517,70.1525615 L97.6111517,70.1525615 L97.1106718,70.9895001 C93.1228168,77.6836699 89.5186416,84.3457379 86.2981462,90.9757043 C82.49499,98.8051821 78.9260328,107.209292 75.5912744,116.188034 C75.0678608,117.59731 73.4916142,118.336546 72.045419,117.850988 L72.045419,117.850988 L71.2574475,117.584515 C45.4162372,108.782078 35.597644,99.1083195 41.8016679,88.5632391 C47.8700957,78.2486335 65.515653,70.7396611 94.7383398,66.0363218 Z M136.545792,34.4653746 C156.653461,16.8966864 169.722181,13.3874478 175.751952,23.9376587 C181.649935,34.2572826 179.515508,53.0171122 169.348673,80.2171474 C169.123182,80.8204179 168.695414,81.324709 168.139827,81.6422422 C166.828478,82.3917144 165.163975,81.9253986 164.422058,80.6006966 L164.422058,80.6006966 L163.947416,79.7564798 C160.143661,73.0170065 156.180988,66.6198239 152.059398,60.564932 C147.192119,53.4145727 141.71816,46.1758903 135.637521,38.8488847 C134.683122,37.6988602 134.815056,35.9888243 135.934314,35.0020629 L135.934314,35.0020629 Z M90.6842361,18 C102.390255,18 117.291276,29.0909926 135.387298,51.2729777 C135.788651,51.7649527 136.005428,52.3826288 136,53.0184911 C135.986842,54.5193144 134.764215,55.7253489 133.269082,55.7122445 L133.269082,55.7122445 L132.315346,55.7054689 C124.694302,55.6640063 117.285613,55.9284091 110.089277,56.4986773 C101.590961,57.17212 92.7164767,58.325393 83.4658235,59.9584962 C82.0138691,60.2148231 80.6245044,59.2578618 80.3403697,57.805758 L80.3403697,57.805758 L80.1871846,57.0136235 C75.2176347,31.0045412 78.7166519,18 90.6842361,18 Z",fill:"#FF4154"}))))}const YS=(e,t,n=!1)=>Uf.useSyncExternalStore(i.useCallback(t=>n?()=>{}:e.subscribe(bf.batchCalls(t)),[e,n]),t,t),JS=i.forwardRef(function(e,t){const{isOpen:n=!0,styleNonce:r,setIsOpen:o,context:a,onDragStart:s,onPositionChange:c,showCloseButton:u,position:l,closeButtonProps:d={},errorTypes:p=[],...h}=e,{onClick:f,...g}=d,m=Wf({context:a}),y=m.getQueryCache(),[v,b]=ux("reactQueryDevtoolsSortFn",Object.keys(bS)[0]),[k,_]=ux("reactQueryDevtoolsFilter",""),[w,E]=ux("reactQueryDevtoolsBaseSort",1),x=i.useMemo(()=>bS[v],[v]),S=YS(y,()=>y.getAll().length,!n),[C,I]=ux("reactQueryDevtoolsActiveQueryHash",""),R=i.useMemo(()=>{const e=y.getAll();if(0===S)return[];const t=k?e.filter(e=>rx(e.queryHash,k).passed):[...e];return x?t.sort((e,t)=>x(e,t)*w):t},[w,x,k,S,y]),[T,O]=i.useState(!1);return i.createElement(pS,{theme:lS},i.createElement(CS,VE({ref:t,className:"ReactQueryDevtoolsPanel","aria-label":"React Query Devtools Panel",id:"ReactQueryDevtoolsPanel"},h,{style:{height:kS,position:"relative",...h.style}}),i.createElement("style",{nonce:r,dangerouslySetInnerHTML:{__html:"\n .ReactQueryDevtoolsPanel * {\n scrollbar-color: "+lS.backgroundAlt+" "+lS.gray+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar, .ReactQueryDevtoolsPanel scrollbar {\n width: 1em;\n height: 1em;\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-track, .ReactQueryDevtoolsPanel scrollbar-track {\n background: "+lS.backgroundAlt+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-thumb, .ReactQueryDevtoolsPanel scrollbar-thumb {\n background: "+lS.gray+";\n border-radius: .5em;\n border: 3px solid "+lS.backgroundAlt+";\n }\n "}}),i.createElement("div",{style:SS(l),onMouseDown:s}),n&&i.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:"1px solid "+lS.grayAlt,display:"flex",flexDirection:"column"}},i.createElement("div",{style:{padding:".5em",background:lS.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},i.createElement("button",{type:"button","aria-label":"Close React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true",onClick:()=>o(!1),style:{display:"inline-flex",background:"none",border:0,padding:0,marginRight:".5em",cursor:"pointer"}},i.createElement(QS,{"aria-hidden":!0}),i.createElement(DS,{text:"Close React Query Devtools"})),i.createElement("div",{style:{display:"flex",flexDirection:"column"}},i.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:".5em"}},i.createElement(XS,{queryCache:y}),l&&c?i.createElement(jS,{"aria-label":"Panel position",value:l,style:{marginInlineStart:".5em"},onChange:e=>c(e.target.value)},i.createElement("option",{value:"left"},"Left"),i.createElement("option",{value:"right"},"Right"),i.createElement("option",{value:"top"},"Top"),i.createElement("option",{value:"bottom"},"Bottom")):null),i.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"0.5em"}},i.createElement(PS,{placeholder:"Filter","aria-label":"Filter by queryhash",value:null!=k?k:"",onChange:e=>_(e.target.value),onKeyDown:e=>{"Escape"===e.key&&_("")},style:{flex:"1",width:"100%"}}),i.createElement(jS,{"aria-label":"Sort queries",value:v,onChange:e=>b(e.target.value),style:{flex:"1",minWidth:75,marginRight:".5em"}},Object.keys(bS).map(e=>i.createElement("option",{key:e,value:e},"Sort by ",e))),i.createElement(RS,{type:"button",onClick:()=>E(e=>-1*e),style:{padding:".3em .4em",marginRight:".5em"}},1===w?"⬆ Asc":"⬇ Desc"),i.createElement(RS,{title:"Clear cache","aria-label":"Clear cache",type:"button",onClick:()=>y.clear(),style:{padding:".3em .4em",marginRight:".5em"}},"Clear"),i.createElement(RS,{type:"button",onClick:()=>{T?(pf.setOnline(void 0),O(!1),window.dispatchEvent(new Event("online"))):(pf.setOnline(!1),O(!0))},"aria-label":T?"Restore offline mock":"Mock offline behavior",title:T?"Restore offline mock":"Mock offline behavior",style:{padding:"0",height:"2em"}},i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"2em",height:"2em",viewBox:"0 0 24 24",stroke:T?lS.danger:"currentColor",fill:"none"},T?i.createElement(i.Fragment,null,i.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),i.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),i.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),i.createElement("path",{d:"M6.343 12.343a7.963 7.963 0 0 1 3.864 -2.14m4.163 .155a7.965 7.965 0 0 1 3.287 2"}),i.createElement("path",{d:"M3.515 9.515a12 12 0 0 1 3.544 -2.455m3.101 -.92a12 12 0 0 1 10.325 3.374"}),i.createElement("line",{x1:"3",y1:"3",x2:"21",y2:"21"})):i.createElement(i.Fragment,null,i.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),i.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),i.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),i.createElement("path",{d:"M6.343 12.343a8 8 0 0 1 11.314 0"}),i.createElement("path",{d:"M3.515 9.515c4.686 -4.687 12.284 -4.687 17 0"}))),i.createElement(DS,{text:T?"Restore offline mock":"Mock offline behavior"}))))),i.createElement("div",{style:{overflowY:"auto",flex:"1"}},R.map(e=>i.createElement(eC,{queryKey:e.queryKey,activeQueryHash:C,setActiveQueryHash:I,key:e.queryHash,queryCache:y})))),C&&n?i.createElement(ZS,{activeQueryHash:C,queryCache:y,queryClient:m,errorTypes:p}):null,u?i.createElement(RS,VE({type:"button","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true"},g,{style:{position:"absolute",zIndex:99999,margin:".5em",bottom:0,left:0,...g.style},onClick:e=>{o(!1),null==f||f(e)}}),"Close"):null))}),ZS=({queryCache:e,activeQueryHash:t,queryClient:n,errorTypes:r})=>{var o,a;const s=YS(e,()=>e.getAll().find(e=>e.queryHash===t)),c=YS(e,()=>{var n;return null==(n=e.getAll().find(e=>e.queryHash===t))?void 0:n.state}),u=null!=(o=YS(e,()=>{var n;return null==(n=e.getAll().find(e=>e.queryHash===t))?void 0:n.isStale()}))&&o,l=null!=(a=YS(e,()=>{var n;return null==(n=e.getAll().find(e=>e.queryHash===t))?void 0:n.getObserversCount()}))?a:0,d=p(()=>{if(s&&null!=c&&c.error){const e=r.find(e=>{var t;return e.initializer(s).toString()===(null==(t=c.error)?void 0:t.toString())});return null==e?void 0:e.name}},[s,null==c?void 0:c.error,r]);if(!s||!c)return null;const h=e=>{var t;const n=null!=(t=null==e?void 0:e.initializer(s))?t:new Error("Unknown error from devtools"),r=s.options;s.setState({status:"error",error:n,fetchMeta:{...s.state.fetchMeta,__previousQueryOptions:r}})};return i.createElement(IS,null,i.createElement("div",{style:{padding:".5em",background:lS.backgroundAlt,position:"sticky",top:0,zIndex:1}},"Query Details"),i.createElement("div",{style:{padding:".5em"}},i.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"flex-start",justifyContent:"space-between"}},i.createElement(AS,{style:{lineHeight:"1.8em"}},i.createElement("pre",{style:{margin:0,padding:0,overflow:"auto"}},mS(s.queryKey,!0))),i.createElement("span",{style:{padding:"0.3em .6em",borderRadius:"0.4em",fontWeight:"bold",textShadow:"0 2px 10px black",background:hS({queryState:c,isStale:u,observerCount:l,theme:lS}),flexShrink:0}},fS(s))),i.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"center",justifyContent:"space-between"}},"Observers: ",i.createElement(AS,null,l)),i.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},"Last Updated:"," ",i.createElement(AS,null,new Date(c.dataUpdatedAt).toLocaleTimeString()))),i.createElement("div",{style:{background:lS.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Actions"),i.createElement("div",{style:{padding:"0.5em",display:"flex",flexWrap:"wrap",gap:"0.5em",alignItems:"flex-end"}},i.createElement(RS,{type:"button",onClick:()=>{const e=null==s?void 0:s.fetch();null==e||e.catch(tC)},disabled:"fetching"===c.fetchStatus,style:{background:lS.active}},"Refetch")," ",i.createElement(RS,{type:"button",onClick:()=>n.invalidateQueries(s),style:{background:lS.warning,color:lS.inputTextColor}},"Invalidate")," ",i.createElement(RS,{type:"button",onClick:()=>n.resetQueries(s),style:{background:lS.gray}},"Reset")," ",i.createElement(RS,{type:"button",onClick:()=>n.removeQueries(s),style:{background:lS.danger}},"Remove")," ",i.createElement(RS,{type:"button",onClick:()=>{var e;if("fetching"!==s.state.fetchStatus||void 0!==(null==(e=s.state.fetchMeta)?void 0:e.__previousQueryOptions))if(void 0===s.state.data)s.fetch(s.state.fetchMeta.__previousQueryOptions,{cancelRefetch:!0});else{const e=s.options;s.fetch({...e,queryFn:()=>new Promise(()=>{}),cacheTime:-1}),s.setState({data:void 0,status:"loading",fetchMeta:{...s.state.fetchMeta,__previousQueryOptions:e}})}},style:{background:lS.paused}},"loading"===s.state.status?"Restore":"Trigger"," ","loading")," ",0===r.length||"error"===s.state.status?i.createElement(RS,{type:"button",onClick:()=>{s.state.error?n.resetQueries(s):h()},style:{background:lS.danger}},"error"===s.state.status?"Restore":"Trigger"," error"):i.createElement("label",null,"Trigger error:",i.createElement(jS,{value:null!=d?d:"",style:{marginInlineStart:".5em"},onChange:e=>{const t=r.find(t=>t.name===e.target.value);h(t)}},i.createElement("option",{key:"",value:""}),r.map(e=>i.createElement("option",{key:e.name,value:e.name},e.name))))),i.createElement("div",{style:{background:lS.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Data Explorer"),i.createElement("div",{style:{padding:".5em"}},i.createElement($S,{label:"Data",value:c.data,defaultExpanded:{},copyable:!0})),i.createElement("div",{style:{background:lS.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Query Explorer"),i.createElement("div",{style:{padding:".5em"}},i.createElement($S,{label:"Query",value:s,defaultExpanded:{queryKey:!0}})))},XS=({queryCache:e})=>{const t=YS(e,()=>e.getAll().filter(e=>"fresh"===fS(e)).length),n=YS(e,()=>e.getAll().filter(e=>"fetching"===fS(e)).length),r=YS(e,()=>e.getAll().filter(e=>"paused"===fS(e)).length),o=YS(e,()=>e.getAll().filter(e=>"stale"===fS(e)).length),a=YS(e,()=>e.getAll().filter(e=>"inactive"===fS(e)).length);return i.createElement(TS,null,i.createElement(OS,{style:{background:lS.success,opacity:t?1:.3}},"fresh ",i.createElement(AS,null,"(",t,")"))," ",i.createElement(OS,{style:{background:lS.active,opacity:n?1:.3}},"fetching ",i.createElement(AS,null,"(",n,")"))," ",i.createElement(OS,{style:{background:lS.paused,opacity:r?1:.3}},"paused ",i.createElement(AS,null,"(",r,")"))," ",i.createElement(OS,{style:{background:lS.warning,color:"black",textShadow:"0",opacity:o?1:.3}},"stale ",i.createElement(AS,null,"(",o,")"))," ",i.createElement(OS,{style:{background:lS.gray,opacity:a?1:.3}},"inactive ",i.createElement(AS,null,"(",a,")")))},eC=i.memo(({queryKey:e,setActiveQueryHash:t,activeQueryHash:n,queryCache:r})=>{var o,a,s,c;const u=null!=(o=YS(r,()=>{var t;return null==(t=r.find(e))?void 0:t.queryHash}))?o:"",l=YS(r,()=>{var t;return null==(t=r.find(e))?void 0:t.state}),d=null!=(a=YS(r,()=>{var t;return null==(t=r.find(e))?void 0:t.isStale()}))&&a,p=null!=(s=YS(r,()=>{var t;return null==(t=r.find(e))?void 0:t.isDisabled()}))&&s,h=null!=(c=YS(r,()=>{var t;return null==(t=r.find(e))?void 0:t.getObserversCount()}))?c:0;return l?i.createElement("div",{role:"button","aria-label":"Open query details for "+u,onClick:()=>t(n===u?"":u),style:{display:"flex",borderBottom:"solid 1px "+lS.grayAlt,cursor:"pointer",background:u===n?"rgba(255,255,255,.1)":void 0}},i.createElement("div",{style:{flex:"0 0 auto",width:"2em",height:"2em",background:hS({queryState:l,isStale:d,observerCount:h,theme:lS}),display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold",textShadow:d?"0":"0 0 10px black",color:d?"black":"white"}},h),p?i.createElement("div",{style:{flex:"0 0 auto",height:"2em",background:lS.gray,display:"flex",alignItems:"center",fontWeight:"bold",padding:"0 0.5em"}},"disabled"):null,i.createElement(AS,{style:{padding:".5em"}},""+u)):null});function tC(){}eC.displayName="QueryRow";const nC="development"!==process.env.NODE_ENV?function(){return null}:function({initialIsOpen:e,panelProps:t={},closeButtonProps:n={},toggleButtonProps:r={},position:o="bottom-left",containerElement:a="aside",context:s,styleNonce:c,panelPosition:u="bottom",errorTypes:l=[]}){const d=i.useRef(null),p=i.useRef(null),[h,f]=ux("reactQueryDevtoolsOpen",e),[g,m]=ux("reactQueryDevtoolsHeight",kS),[y,v]=ux("reactQueryDevtoolsWidth",kS),[b="bottom",k]=ux("reactQueryDevtoolsPanelPosition",u),[_,w]=i.useState(!1),[E,x]=i.useState(!1),S=function(){const e=i.useRef(!1),t=i.useCallback(()=>e.current,[]);return i.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t}();i.useEffect(()=>{w(null!=h&&h)},[h,_,w]),i.useEffect(()=>{const e=p.current;if(e){const t=()=>{_&&(e.style.visibility="visible")},n=()=>{_||(e.style.visibility="hidden")};return e.addEventListener("transitionstart",t),e.addEventListener("transitionend",n),()=>{e.removeEventListener("transitionstart",t),e.removeEventListener("transitionend",n)}}},[_]),i.useEffect(()=>{var e;if(_&&null!=(e=d.current)&&e.parentElement){const{parentElement:e}=d.current,t=xS("padding",b),n=wS(b),r=(({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:r,paddingRight:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:r,paddingRight:o}))(e.style),o=()=>{e.style.padding="0px",e.style.paddingTop="0px",e.style.paddingBottom="0px",e.style.paddingLeft="0px",e.style.paddingRight="0px",e.style[t]=(n?y:g)+"px"};if(o(),"undefined"!=typeof window)return window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o),Object.entries(r).forEach(([t,n])=>{e.style[t]=n})}}},[_,b,g,y]);const{style:C={},...I}=t,{style:R={},onClick:T,...O}=r,A=function({position:e="bottom",height:t,width:n,devtoolsTheme:r,isOpen:o,isResizing:a,panelStyle:i}){const s=ES(e),c=xS("border",s),u=wS(e);return{...i,direction:"ltr",position:"fixed",[e]:0,[c]:"1px solid "+r.gray,transformOrigin:s,boxShadow:"0 0 20px rgba(0,0,0,.3)",zIndex:99999,visibility:o?"visible":"hidden",...a?{transition:"none"}:{transition:"all .2s ease"},...o?{opacity:1,pointerEvents:"all",transform:u?"translateX(0) scale(1)":"translateY(0) scale(1)"}:{opacity:0,pointerEvents:"none",transform:u?"translateX(15px) scale(1.02)":"translateY(15px) scale(1.02)"},...u?{top:0,height:"100vh",maxWidth:"90%",width:"number"==typeof n&&n>=70?n:kS}:{left:0,width:"100%",maxHeight:"90%",height:"number"==typeof t&&t>=70?t:kS}}}({position:b,devtoolsTheme:lS,isOpen:_,height:g,width:y,isResizing:E,panelStyle:C});return S()?i.createElement(a,{ref:d,className:"ReactQueryDevtools","aria-label":"React Query Devtools"},i.createElement(pS,{theme:lS},i.createElement(JS,VE({ref:p,context:s,styleNonce:c,position:b,onPositionChange:k,showCloseButton:!0,closeButtonProps:n},I,{style:A,isOpen:_,setIsOpen:f,onDragStart:e=>((e,t)=>{if(!e)return;if(0!==t.button)return;const n=wS(b);x(!0);const{height:r,width:o}=e.getBoundingClientRect(),a=t.clientX,i=t.clientY;let s=0;const c=e=>{e.preventDefault(),n?(s=o+("right"===b?a-e.clientX:e.clientX-a),v(s)):(s=r+("bottom"===b?i-e.clientY:e.clientY-i),m(s)),f(!(s<70))},u=()=>{E&&x(!1),document.removeEventListener("mousemove",c,!1),document.removeEventListener("mouseUp",u,!1)};document.addEventListener("mousemove",c,!1),document.addEventListener("mouseup",u,!1)})(p.current,e),errorTypes:l}))),_?null:i.createElement("button",VE({type:"button"},O,{"aria-label":"Open React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"false",onClick:e=>{f(!0),null==T||T(e)},style:{background:"none",border:0,padding:0,position:"fixed",zIndex:99999,display:"inline-flex",fontSize:"1.5em",margin:".5em",cursor:"pointer",width:"fit-content",..."top-right"===o?{top:"0",right:"0"}:"top-left"===o?{top:"0",left:"0"}:"bottom-right"===o?{bottom:"0",right:"0"}:{bottom:"0",left:"0"},...R}}),i.createElement(QS,{"aria-hidden":!0}),i.createElement(DS,{text:"Open React Query Devtools"}))):null};process.env.NODE_ENV;var rC,oC={backgroundColor:"#fcfcff",width:"100%",zIndex:1e7,height:"100%",position:"absolute"};function aC(e){var o=this,a=e.children,i=process.env.ENVIRONMENT,s=p(function(){return"DEV"!==i&&"LOCAL"!==i?"testing":"live"},[i]),l=c(!1),h=l[0],f=l[1],g=d(function(e){return n(o,void 0,void 0,function(){var n,o,a,i,c;return r(this,function(r){switch(r.label){case 0:return n=localStorage.getItem("headers"),o=n&&JSON.parse(n),a=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live",i=localStorage.getItem("x-organization-code"),c=i?JSON.parse(i).value:"",[4,Bh.refreshInstance({headers:t(t({},o),{"X-Environment":a||s,"x-organization-code":c,"x-account-code":e.detail.accountCode,"X-Content-Type-Options":"nosniff"})})];case 1:return r.sent(),[2]}})})},[s]);u(function(){return addEventListener("ACCOUNT_CHANGED",g),function(){window.removeEventListener("ACCOUNT_CHANGED",g)}},[g]);var m=d(function(e){return n(o,void 0,void 0,function(){var n,o,a,i,c,u,l;return r(this,function(r){switch(r.label){case 0:return n=localStorage.getItem("headers"),(o=n&&JSON.parse(n))?(a=localStorage.getItem("x-organization-code"),i=localStorage.getItem("account"),c=i?null===(l=JSON.parse(i).value)||void 0===l?void 0:l.code:"",u=a?JSON.parse(a).value:"",[4,Bh.refreshInstance({headers:t(t({},o),{"X-Environment":e||s,"x-organization-code":u,"x-account-code":c,"X-Content-Type-Options":"nosniff"})})]):[3,2];case 1:r.sent(),Vg.refetchQueries(["fetch-profile","accountsV2","accounts","fetch-all-organizations","fetch-permissions"]),f(!0),r.label=2;case 2:return[2]}})})},[s,f]);return u(function(){var e=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live";window.addEventListener("storage",function(t){if("token"===t.key||"isTesting"===t.key){var n="OFF"===t.newValue?"live":"testing";"isTesting"===t.key?m(n):"token"===t.key&&m(e)}}),m(e)},[f,m]),h?React.createElement(Vf,{client:Vg},a,React.createElement(nC,{initialIsOpen:!1})):React.createElement("div",{style:oC})}!function(e){e.ECONNABORTED="ECONNABORTED",e.ETIMEDOUT="ETIMEDOUT",e.ERR_BAD_REQUEST="ERR_BAD_REQUEST"}(rC||(rC={}));var iC=function(){var e=l(null),t=l(null),n=l(null),r=c(!1),o=r[0],a=r[1],i=c(null),s=i[0],p=i[1],h=c(null),f=h[0],g=h[1],m=d(function(){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null)},[]),y=d(function(){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null),g(null);try{var r=new WebSocket("".concat(Lh["WS_URL_".concat(Lh.ENVIRONMENT)],"/data-assistant/charts/ws"));e.current=r,r.onopen=function(){a(!0);var e=localStorage.getItem("token");e&&r.send(JSON.stringify({type:"auth",token:e})),t.current=setInterval(function(){r.readyState===WebSocket.OPEN?r.send(JSON.stringify({type:"ping"})):(m(),a(!1))},3e4)},r.onmessage=function(e){try{var t=JSON.parse(e.data);p(t)}catch(e){g("Failed to parse server response")}},r.onerror=function(e){g("Connection error occurred"),a(!1)},r.onclose=function(e){a(!1),m(),e.wasClean||1e3===e.code||(n.current=setTimeout(function(){y()},5e3))}}catch(e){g("Failed to establish connection")}},[]),v=d(function(t){var n;(null===(n=e.current)||void 0===n?void 0:n.readyState)===WebSocket.OPEN&&e.current.send(JSON.stringify({type:"subscribe",chart_id:t}))},[]),b=d(function(t){var n;(null===(n=e.current)||void 0===n?void 0:n.readyState)===WebSocket.OPEN&&e.current.send(JSON.stringify({type:"unsubscribe",chart_id:t}))},[]),k=d(function(){p(null)},[]),_=d(function(){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null),e.current&&(a(!1),e.current.close(1e3,"Manual disconnect"),e.current=null)},[]);return u(function(){return y(),function(){m(),_()}},[]),{subscribe:v,unsubscribe:b,disconnect:_,connect:y,clearChartData:k,isConnected:o,chartData:s,connectionError:f}},sC=["LOCAL","DEV","STG"].includes(process.env.ENVIRONMENT||"");"undefined"!=typeof window&&sC&&function(){n(this,void 0,void 0,function(){var e;return r(this,function(t){switch(t.label){case 0:if(!Ri())return console.info('MSW is disabled. Run "window.enableMSW()" to enable it.'),[2];console.info('MSW is enabled. Run "window.disableMSW()" to disable it.'),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,Si.start({serviceWorker:{url:"/mockServiceWorker.js"},onUnhandledRequest:"bypass"})];case 2:return t.sent(),[3,4];case 3:return e=t.sent(),console.error("Error starting MSW:",e),[3,4];case 4:return[2]}})})}();export{Vd as AI,Ph as Api,rC as ApiErrorCodes,aC as ApiProvider,Bh as ApiSingleton,Wd as Audit,eb as CONCIERGE_ACCESS_QUERY_KEY,tb as CONCIERGE_ACCESS_REQUEST_STATUS_QUERY_KEY,qd as Country,Md as DataReport,Xf as DuplicateSetting,kh as FEEDBACK_ISSUE_OPTIONS,zd as Organization,Gd as OrganizationConfig,Ld as PaymentFiltersSection,gb as PendingDuplicateAccountStatus,Hd as ReconciliationAgendaInsight,Fd as ReconciliationReportType,Nd as ReportType,zh as SESSION_EXPIRED_MESSAGE_TYPE,Dd as SendPaymentNotification,Bd as SmartRouting,Ud as TemplateType,Nh as emitExpired,qg as getDatadogEnvironment,Ck as getQueryKeyGetNameAndIcon,Ak as getQueryKeyPaymentMethodAccounts,Rk as getQueryKeyRequiredFields,Wg as queryCache,Vg as queryClient,Uh as resetExpiredGuard,_k as use3DSExemptions,_v as useAICreateWorkflow,zg as useAccountCode,Hg as useAddToRiskList,yw as useAllFeatureFlags,$w as useAllowListDetail,Kw as useBlackListDetail,Zv as useBlockOnboarding,Hv as useBulkCreateInstallmentsPlans,Wv as useBulkDeleteInstallmentsPlans,cg as useBulkDisableAccounts,ug as useBulkEnableAccounts,im as useBulkToggleMethod,vw as useCachedFeatureFlag,Yg as useCancelReport,Dm as useCancelSubscription,wg as useChangePasswordV2,ky as useChangePaymentsWebhook,gy as useChangeStatusBlackList,my as useChangeStatusItemBlackList,Lk as useChangeStylingSettings,jv as useChangeTemplateStatus,Mg as useChargebacksUpload,iC as useChartAssistantSocket,oE as useChartExecute,Av as useCloneTemplate,Zm as useCommunicationDetails,Ym as useCommunications,vE as useCommunicationsByDay,bE as useCommunicationsBySubstatus,Jm as useCommunicationsFilters,kE as useCommunicationsSubstatusByDay,ry as useConfirmedOtpMfa,Qg as useCountRowsForReport,Cv as useCreateAndExecuteChart,Rv as useCreateAndExecuteChartWithTimezone,lv as useCreateAuditSubscription,db as useCreateCertificate,Ev as useCreateChart,Iv as useCreateChartWithTimezone,ab as useCreateConciergeBrief,Bv as useCreateInstallmentsPlan,mm as useCreateMonitorTemplate,gm as useCreateMonitorThreshold,Yv as useCreateOnboarding,Bg as useCreateOperationTransaction,Em as useCreateOrgRole,Im as useCreatePaymentLinks,Kv as useCreateRecipient,Vv as useCreateRecipientExport,fv as useCreateReconciliationAlert,pv as useCreateReconciliationReportTemplate,Gg as useCreateReconciliationsReportV2,Kg as useCreateReconciliationsReportV3,Jg as useCreateReportTemplate,$g as useCreateReportV2,km as useCreateRoles,vv as useCreateSamlConfig,Lv as useCreateSchedule,Dy as useCreateScheduledReport,Am as useCreateSubscription,Ov as useCreateTemplate,em as useCreateWorkflow,dg as useDeleteAccountsUserMassive,Ey as useDeleteAllowlistItem,dv as useDeleteAuditSubscription,vy as useDeleteBlackListType,_y as useDeleteBlockListItem,hb as useDeleteCertificate,fb as useDeleteCertificateAccount,xv as useDeleteChart,cb as useDeleteConciergeBrief,Gy as useDeleteCustomizedApiKeys,Fv as useDeleteInstallmentsPlan,Sm as useDeleteOrgRole,Rm as useDeletePaymentLink,Qv as useDeleteRecipient,gv as useDeleteReconciliationAlert,Xg as useDeleteReportTemplate,wm as useDeleteRoles,kv as useDeleteSamlConfig,qv as useDeleteSchedule,zy as useDeleteScheduledReport,Dv as useDeleteTemplate,vm as useDeleteUserTeamV2,rm as useDeleteVersion,tg as useDeleteWebhookV2,zv as useDisableSchedule,WE as useDownloadCertificate,Gv as useDownloadRecipientExport,og as useDuplicateAccount,om as useDuplicateVersion,xm as useEditOrgRole,Tm as useEditPaymentLinks,_m as useEditRoles,Vm as useEmailVerification,Py as useExcludeUsers,av as useExportApiLogs,sv as useExportDashboardLogs,cv as useExportMonitorsLogs,iv as useExportWebhooksLogs,mw as useFeatureFlags,r_ as useFetchUserExportDetail,Fw as useFirebaseUserSubscribe,wv as useGenerateFeedback,nk as useGetAccounts,ok as useGetAccountsByOrganization,ak as useGetAccountsByUser,ik as useGetAccountsForImpersonation,rk as useGetAccountsV2,Zw as useGetAllConfigRules,U_ as useGetAllReconciliationsAdvancements,z_ as useGetAllReconciliationsAgenda,L_ as useGetAllReconciliationsAlerts,B_ as useGetAllReconciliationsFees,N_ as useGetAllReconciliationsSales,A_ as useGetAllTableColumns,Mb as useGetAllowedIps,Sw as useGetApiLogsByTransactionCode,xw as useGetApiLogsDetailByPaymentCode,jw as useGetApiLogsList,Aw as useGetApiLogsStatsErrors,Pw as useGetApiLogsStatsErrorsByEndpoint,Ow as useGetApiLogsStatsRequests,NE as useGetApiLogsV3,Dw as useGetApiLogsV3ByPaymentCode,kw as useGetAuditEventByCode,bw as useGetAuditEvents,Iw as useGetAuditExportDownload,Cw as useGetAuditExportsList,_w as useGetAuditMonitorEventDetail,Ry as useGetBatchRefundProcessedFileDownload,Ty as useGetBatchRefundUserFileDownload,Yw as useGetBatchRefunds,Ww as useGetBlackList,Gw as useGetBlockListSummary,Eb as useGetCardBrands,HE as useGetCertificates,cE as useGetChartFeedback,aE as useGetChartsByUser,iE as useGetChartsByUserWithResults,Sk as useGetCheckouts,nb as useGetConciergeAccess,rb as useGetConciergeAccessRequestStatus,qy as useGetConditionalConfigRules,Hw as useGetConfigAllowlist,Zb as useGetConnections,Yb as useGetConnectionsByPaymentMethod,Nw as useGetCountriesConfigPaymentLink,Uw as useGetCountriesConfigPaymentLinkV2,Ok as useGetCountryData,Ub as useGetCredentials,Qy as useGetCredentialsMFA,Hb as useGetCustomizedApiKeys,Fb as useGetCustomizedApiKeysAccounts,Bb as useGetCustomizedApiKeysMembers,Wb as useGetCustomizedApiKeysProducts,Hy as useGetCustomizedApiKeysToken,Wk as useGetDownloadReport,ny as useGetEmailOtp,Jb as useGetHashPylon,FE as useGetHiddenFields,$m as useGetImpersonationEnabled,Km as useGetImpersonationUsers,d_ as useGetInsightsReport,p_ as useGetInsightsReportAgain,zE as useGetInstallmentsPlans,Qb as useGetIntegrationByAccountV2,$b as useGetIntegrationParams,uE as useGetLanguages,Gm as useGetLoginMethods,eE as useGetMFAConfig,Xw as useGetMFAExcludedUsers,tE as useGetMFAStatus,Nk as useGetMergedNotifications,Ik as useGetNameAndIcon,dE as useGetNetworkTokensOnboardingByOrganization,zk as useGetNotificationsCustomer,Uk as useGetNotificationsNumberMutation,PE as useGetOnboardingDetail,RE as useGetOnboardingStatus,jE as useGetOnboardingTimeline,e_ as useGetOrgPermissionsCatalog,Xk as useGetOrgRolesPermissions,Gb as useGetOrganization,IE as useGetOrganizationConfigs,Jy as useGetOrganizationKeysMetadata,xb as useGetPaymentFilters,qw as useGetPaymentLinkByCode,zw as useGetPaymentLinks,Pk as useGetPaymentMethodAccounts,wb as useGetPaymentMethodsAndProviders,Sb as useGetPaymentMetricsFilters,Cb as useGetPaymentTransactionsDetails,vb as useGetPaymentV2,_b as useGetPaymentsMethodsByCountry,Ob as useGetPayoutDetail,Pb as useGetPayoutHistoryDetail,Nb as useGetPayoutTimeline,Ab as useGetPayoutTransactionDetail,ck as useGetPendingDuplicateAccounts,Wm as useGetPermissions,Zk as useGetPermissionsCatalog,Fm as useGetProfile,jb as useGetProofOfCancel,Db as useGetProofOfPayment,Kb as useGetProviderParams,AE as useGetRecipientById,LE as useGetRecipientExportDownload,DE as useGetRecipientExports,TE as useGetRecipients,OE as useGetRecipientsV2,P_ as useGetReconciliationActive,q_ as useGetReconciliationAgendaInsightsByKey,O_ as useGetReconciliationFilters,G_ as useGetReconciliationInsightsAmountConflictAggregators,K_ as useGetReconciliationInsightsAmountConflictList,sw as useGetReconciliationInsightsAmountToBeSettledSummary,Q_ as useGetReconciliationInsightsConflictDateAggregators,Y_ as useGetReconciliationInsightsConflictDateList,$_ as useGetReconciliationInsightsConflictDateSummary,M_ as useGetReconciliationInsightsConflictsSummary,ew as useGetReconciliationInsightsFeesChargedSummary,Z_ as useGetReconciliationInsightsIncorrectFeesAggregators,X_ as useGetReconciliationInsightsIncorrectFeesList,J_ as useGetReconciliationInsightsIncorrectFeesSummary,aw as useGetReconciliationInsightsNotConfirmAggregators,iw as useGetReconciliationInsightsNotConfirmList,ow as useGetReconciliationInsightsNotConfirmSummary,F_ as useGetReconciliationInsightsNotReconciledAggregators,H_ as useGetReconciliationInsightsNotReconciledList,nw as useGetReconciliationInsightsReconciledAggregators,rw as useGetReconciliationInsightsReconciledList,tw as useGetReconciliationInsightsReconciledSummary,uw as useGetReconciliationInsightsReconciliationRateByAccount,lw as useGetReconciliationInsightsReconciliationRateByCurrency,cw as useGetReconciliationInsightsReconciliationRateByProvider,dw as useGetReconciliationInsightsSettlementLookup,W_ as useGetReconciliationInsightsStatusConflictAggregators,V_ as useGetReconciliationInsightsStatusConflictList,T_ as useGetReconciliationMetrics,I_ as useGetReconciliationTransactions,j_ as useGetReconciliationsReportColumns,D_ as useGetReconciliationsReportTemplates,Kk as useGetRefundPdf,Gk as useGetReportColumns,Vk as useGetReportTemplates,Fk as useGetReportsList,Hk as useGetReportsListMultiEnv,Tk as useGetRequiredFields,Yk as useGetRoles,sk as useGetRolesForImpersonation,Jk as useGetRolesPermissions,xk as useGetRoutingMonitorsTemplate,Ek as useGetRoutingMonitorsTemplates,Ny as useGetRule,rE as useGetSamlConfig,jy as useGetScheduledReportsList,R_ as useGetSettlements,pk as useGetSmartRoutingConditionPaymentMethod,dk as useGetSmartRoutingConditionTypes,hk as useGetSmartRoutingConditionTypesValues,o_ as useGetSmartRoutingDataReport,mk as useGetSmartRoutingDeclineGroups,uk as useGetSmartRoutingMethods,gk as useGetSmartRoutingNextRoute,yk as useGetSmartRoutingPaymentRoute,bk as useGetSmartRoutingSearchConditionValues,vk as useGetSmartRoutingSimulateConditionTypeValues,lk as useGetSmartRoutingWorkflow,fk as useGetSmartRoutingWorkflowVersion,jk as useGetStylingSdkDynamic,Dk as useGetStylingSettingsV2,Bw as useGetSubscriptionByCode,Mw as useGetSubscriptionPayments,$k as useGetTeamsFiltersMembers,ty as useGetTokenValidation,bb as useGetTransactionDetailsV2,Ib as useGetTransactionHistoryByPaymentCode,kb as useGetTransactionRawResponse,lE as useGetTranslations,Rw as useGetUnifiedExportStatus,Tw as useGetUnifiedExportsList,t_ as useGetUserExportStatus,Hm as useGetUserFull,Qm as useGetUsersToImpersonate,qk as useGetValidateOpsgenieKey,Xb as useGetWebhookParamsV2,UE as useGetWebhookTimeline,tk as useGetWebhooksV2Detail,ek as useGetWebhooksV3,nE as useGetWorkOsMfaStatus,m_ as useInsights3dsConversionRateAndEvolution,y_ as useInsights3dsDeclineReasons,v_ as useInsights3dsFrictionlessVsChallenge,g_ as useInsights3dsVolumeAndCountTx,C_ as useInsightsChargebacksByCardBrand,E_ as useInsightsChargebacksByProviderAndCardBrand,w_ as useInsightsChargebacksDisputed,x_ as useInsightsChargebacksReasonsDistribution,S_ as useInsightsChargebacksStatusDistribution,k_ as useInsightsChargebacksTotalRateAndEvolution,b_ as useInsightsChargebacksVolumeAndCountTx,__ as useInsightsChargebacksWinRate,a_ as useInsightsConversionRateMetricsV2,s_ as useInsightsFallbackMetrics,f_ as useInsightsFraudScreeningConversionRate,h_ as useInsightsFraudScreeningVolumeAndCountTx,l_ as useInsightsHomeMetrics,u_ as useInsightsOverviewMetricsV3,c_ as useInsightsVolumeMetricsV2,Rg as useInviteUsersMultiaccountMassive,Tg as useInviteUsersMultiaccountMassiveV2,jg as useIsTesting,Lw as useListAuditSubscriptions,qm as useListSubscriptions,n_ as useListUserExports,Dg as useLocalStorage,Pg as useLoginMethods,wk as useNetworkTokensOnboarding,mg as useNewPostConnectionValidate,Lg as useOrganizationCode,ig as usePatchAccountV2,dy as usePatchAddAllowlistItems,Vb as usePatchAllowedIps,py as usePatchAllowlist,sE as usePatchAndExecuteChart,Ky as usePatchApiKeysEditNote,uy as usePatchChangeStatusAllowlist,ly as usePatchChangeStatusAllowlistItem,Sv as usePatchChartName,yg as usePatchConnection,Zy as usePatchOrganizationKeysNote,Fy as usePathCreateCustomizedApiKeys,Bk as usePathNotifications,Pm as usePauseSubscription,qb as usePayoutsFilters,zb as usePayoutsList,rg as usePostAccount,Qw as usePostAllowlistMultiAccount,$y as usePostApiKeysRoll,ww as usePostApiLogs,nv as usePostAuditMonitors,Iy as usePostBatchRefundByFile,by as usePostBlackListBatch,yy as usePostBlackListItems,hy as usePostBlackListMultiAccount,Vw as usePostBlockList,Ag as usePostCall,hg as usePostChangeStatusConnection,gg as usePostConnectionMultiAccount,cy as usePostCreateAllowlistMultiAccount,My as usePostCreateCustomizedApiKeys,yv as usePostCreateInsightsReport,Uy as usePostCreateRuleMultiAccount,Wy as usePostCredentialsValidatePassword,Vy as usePostCredentialsValidatePasswordRegularUser,Yy as usePostCredentialsWithOtpMfa,vg as usePostDefaultRoutes,By as usePostEditRule,Tb as usePostFraudTransactions,iy as usePostGetAllowlistItems,sy as usePostGetAllowlistMultiAccount,lb as usePostIntegrationRequest,Qk as usePostMembersPaginatedV2,kg as usePostNetworkTokensOnboarding,Nv as usePostOrganizationConfigs,tv as usePostOrganizationKeysMarkRevealed,Xy as usePostOrganizationKeysRoll,ev as usePostOrganizationKeysTamRequest,yb as usePostPaymentsEvaluated,mb as usePostPaymentsLazy,ub as usePostPlaygroundExecuteFlow,ym as usePostSlackFeatureNotification,Rb as usePostTransactions,Nm as usePostUserSettings,Mm as usePostUserSettingsPinned,Bm as usePostUserSettingsTables,Um as usePostUserThemeSettings,pg as usePostValideStatusConnection,Jw as usePostVelocityRules,Ew as usePostWebhookLogs,eg as usePostWebhookMultiAccount,kk as useProviderConversionRatesData,Fg as useProviderRawResponse,Ug as usePublishCheckout,tm as usePublishVersion,sg as usePutAccountPrincipal,lg as usePutAccountsUserMassive,fy as usePutBlackListType,fg as usePutCosts,Uv as usePutOrganizationConfigsByAccount,wE as useRecoveredPaymentsByDay,_E as useRecoveredTPVByDay,sb as useRequestConciergeAccess,zm as useRescheduleSubscription,rv as useResendWebhooks,jm as useResumeSubscription,ag as useRetryDuplicateAccount,nm as useSaveVersion,qE as useSearchInstallmentsPlans,CE as useSearchScheduleById,SE as useSearchSchedules,xE as useSearchTemplateById,EE as useSearchTemplates,Lb as useSendPaymentNotification,bm as useSetCustodian,cm as useSmartRoutingCreateDeclinedGroup,lm as useSmartRoutingEditWorkflowName,fm as useSmartRoutingMultiAccountDeclinedGroupCreate,hm as useSmartRoutingRemoveDeclinedGroup,dm as useSmartRoutingSimulateTransaction,um as useSmartRoutingToggleFavorite,sm as useSmartRoutingUpdateDeclinedGroup,pm as useSmartRoutingUpdateMonitorRedistribution,Cm as useStartUserExport,Tv as useSubmitChartFeedback,ey as useTableOnboarding,am as useToggleMethod,Og as useUnInviteUsersV2,Xv as useUnblockOnboarding,ov as useUnifiedExportStart,oy as useUnrollUserV2,pb as useUpdateCertificateAccounts,ob as useUpdateConciergeAccess,ib as useUpdateConciergeBrief,Mv as useUpdateInstallmentsPlan,Ng as useUpdateIsActiveCheckout,Ay as useUpdateMFAConfig,Jv as useUpdateOnboarding,_g as useUpdateOrganizationStatus,Ig as useUpdateProfile,$v as useUpdateRecipient,mv as useUpdateReconciliationAlert,hv as useUpdateReconciliationReportTemplate,Zg as useUpdateReportTemplate,bv as useUpdateSamlConfig,Ly as useUpdateScheduledReport,Lm as useUpdateSubscription,Pv as useUpdateTemplateSelection,ng as useUpdateWebhookV2,Sy as useUploadBatchRefundsFileV2,Cy as useUploadBatchRefundsV2,Oy as useUploadFileS3ClientBatchRefunds,Om as useUploadPaymentLinkLogo,xy as useValiateAllowlistItems,wy as useValidateBlockListItems,bg as useValidateCredentials,ay as useValidatePasswordStatus,i_ as useViewMoreMetrics,xg as useWorkosAdminPortal,BE as useWorkosDomainStatus,Sg as useWorkosDomainVerificationPortal,Eg as useWorkosPasswordReset,ME as useWorkosSsoConfigStatus,Cg as useWorkosVerifyMfa};
|
|
67
|
+
const YE=7,JE=6,ZE=5,XE=4,ex=3,tx=2,nx=1,rx=0;function ox(e,t,n){var r;if((n=n||{}).threshold=null!=(r=n.threshold)?r:nx,!n.accessors){const r=ax(e,t,n);return{rankedValue:e,rank:r,accessorIndex:-1,accessorThreshold:n.threshold,passed:r>=n.threshold}}const o=function(e,t){const n=[];for(let r=0,o=t.length;r<o;r++){const o=t[r],a=ux(o),i=sx(e,o);for(let e=0,t=i.length;e<t;e++)n.push({itemValue:i[e],attributes:a})}return n}(e,n.accessors),a={rankedValue:e,rank:rx,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let e=0;e<o.length;e++){const r=o[e];let i=ax(r.itemValue,t,n);const{minRanking:s,maxRanking:c,threshold:u=n.threshold}=r.attributes;i<s&&i>=nx?i=s:i>c&&(i=c),i=Math.min(i,c),i>=u&&i>a.rank&&(a.rank=i,a.passed=!0,a.accessorIndex=e,a.accessorThreshold=u,a.rankedValue=r.itemValue)}return a}function ax(e,t,n){return e=ix(e,n),(t=ix(t,n)).length>e.length?rx:e===t?YE:(e=e.toLowerCase())===(t=t.toLowerCase())?JE:e.startsWith(t)?ZE:e.includes(` ${t}`)?XE:e.includes(t)?ex:1===t.length?rx:function(e){let t="";return e.split(" ").forEach(e=>{e.split("-").forEach(e=>{t+=e.substr(0,1)})}),t}(e).includes(t)?tx:function(e,t){let n=0,r=0;function o(e,t,r){for(let o=r,a=t.length;o<a;o++){if(t[o]===e)return n+=1,o+1}return-1}function a(e){const r=1/e,o=n/t.length;return nx+o*r}const i=o(t[0],e,0);if(i<0)return rx;r=i;for(let n=1,a=t.length;n<a;n++){r=o(t[n],e,r);if(!(r>-1))return rx}const s=r-i;return a(s)}(e,t)}function ix(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=e.replace(QE,e=>KE[e])),e}function sx(e,t){let n=t;"object"==typeof t&&(n=t.accessor);const r=n(e);return null==r?[]:Array.isArray(r)?r:[String(r)]}const cx={maxRanking:1/0,minRanking:-1/0};function ux(e){return"function"==typeof e?cx:{...cx,...e}}function lx(e,t){const[n,r]=i.useState();i.useEffect(()=>{const n=(e=>{try{const t=localStorage.getItem(e);return"string"==typeof t?JSON.parse(t):void 0}catch{return}})(e);r(null==n?"function"==typeof t?t():t:n)},[t,e]);return[n,i.useCallback(t=>{r(n=>{let r=t;"function"==typeof t&&(r=t(n));try{localStorage.setItem(e,JSON.stringify(r))}catch{}return r})},[e])]}var dx,px=function(){function e(){this.keyToValue=new Map,this.valueToKey=new Map}return e.prototype.set=function(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)},e.prototype.getByKey=function(e){return this.keyToValue.get(e)},e.prototype.getByValue=function(e){return this.valueToKey.get(e)},e.prototype.clear=function(){this.keyToValue.clear(),this.valueToKey.clear()},e}(),hx=function(){function e(e){this.generateIdentifier=e,this.kv=new px}return e.prototype.register=function(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))},e.prototype.clear=function(){this.kv.clear()},e.prototype.getIdentifier=function(e){return this.kv.getByValue(e)},e.prototype.getValue=function(e){return this.kv.getByKey(e)},e}(),fx=(dx=function(e,t){return dx=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},dx(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}dx(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),gx=function(e){function t(){var t=e.call(this,function(e){return e.name})||this;return t.classToAllowedProps=new Map,t}return fx(t,e),t.prototype.register=function(t,n){"object"==typeof n?(n.allowProps&&this.classToAllowedProps.set(t,n.allowProps),e.prototype.register.call(this,t,n.identifier)):e.prototype.register.call(this,t,n)},t.prototype.getAllowedProps=function(e){return this.classToAllowedProps.get(e)},t}(hx),mx=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i};function yx(e,t){var n=function(e){if("values"in Object)return Object.values(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}(e);if("find"in n)return n.find(t);for(var r=n,o=0;o<r.length;o++){var a=r[o];if(t(a))return a}}function vx(e,t){Object.entries(e).forEach(function(e){var n=mx(e,2),r=n[0],o=n[1];return t(o,r)})}function bx(e,t){return-1!==e.indexOf(t)}function kx(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r))return r}}var _x=function(){function e(){this.transfomers={}}return e.prototype.register=function(e){this.transfomers[e.name]=e},e.prototype.findApplicable=function(e){return yx(this.transfomers,function(t){return t.isApplicable(e)})},e.prototype.findByName=function(e){return this.transfomers[e]},e}(),wx=function(e){return void 0===e},Ex=function(e){return"object"==typeof e&&null!==e&&(e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype))},xx=function(e){return Ex(e)&&0===Object.keys(e).length},Sx=function(e){return Array.isArray(e)},Cx=function(e){return e instanceof Map},Ix=function(e){return e instanceof Set},Rx=function(e){return"Symbol"===function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e)},Tx=function(e){return"number"==typeof e&&isNaN(e)},Ox=function(e){return function(e){return"boolean"==typeof e}(e)||function(e){return null===e}(e)||wx(e)||function(e){return"number"==typeof e&&!isNaN(e)}(e)||function(e){return"string"==typeof e}(e)||Rx(e)},Ax=function(e){return e.replace(/\./g,"\\.")},Px=function(e){return e.map(String).map(Ax).join(".")},jx=function(e){for(var t=[],n="",r=0;r<e.length;r++){var o=e.charAt(r);if("\\"===o&&"."===e.charAt(r+1))n+=".",r++;else"."===o?(t.push(n),n=""):n+=o}var a=n;return t.push(a),t},Dx=function(){return Dx=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Dx.apply(this,arguments)},Lx=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},zx=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};function qx(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var Nx=[qx(wx,"undefined",function(){return null},function(){}),qx(function(e){return"bigint"==typeof e},"bigint",function(e){return e.toString()},function(e){return"undefined"!=typeof BigInt?BigInt(e):(console.error("Please add a BigInt polyfill."),e)}),qx(function(e){return e instanceof Date&&!isNaN(e.valueOf())},"Date",function(e){return e.toISOString()},function(e){return new Date(e)}),qx(function(e){return e instanceof Error},"Error",function(e,t){var n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(function(t){n[t]=e[t]}),n},function(e,t){var n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(function(t){n[t]=e[t]}),n}),qx(function(e){return e instanceof RegExp},"regexp",function(e){return""+e},function(e){var t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),qx(Ix,"set",function(e){return zx([],Lx(e.values()))},function(e){return new Set(e)}),qx(Cx,"map",function(e){return zx([],Lx(e.entries()))},function(e){return new Map(e)}),qx(function(e){return Tx(e)||((t=e)===1/0||t===-1/0);var t},"number",function(e){return Tx(e)?"NaN":e>0?"Infinity":"-Infinity"},Number),qx(function(e){return 0===e&&1/e==-1/0},"number",function(){return"-0"},Number),qx(function(e){return e instanceof URL},"URL",function(e){return e.toString()},function(e){return new URL(e)})];function Ux(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var Bx=Ux(function(e,t){return!!Rx(e)&&!!t.symbolRegistry.getIdentifier(e)},function(e,t){return["symbol",t.symbolRegistry.getIdentifier(e)]},function(e){return e.description},function(e,t,n){var r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),Mx=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(e,t){return e[t.name]=t,e},{}),Fx=Ux(function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},function(e){return["typed-array",e.constructor.name]},function(e){return zx([],Lx(e))},function(e,t){var n=Mx[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function Hx(e,t){return!!(null==e?void 0:e.constructor)&&!!t.classRegistry.getIdentifier(e.constructor)}var Wx=Ux(Hx,function(e,t){return["class",t.classRegistry.getIdentifier(e.constructor)]},function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return Dx({},e);var r={};return n.forEach(function(t){r[t]=e[t]}),r},function(e,t,n){var r=n.classRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(r.prototype),e)}),Vx=Ux(function(e,t){return!!t.customTransformerRegistry.findApplicable(e)},function(e,t){return["custom",t.customTransformerRegistry.findApplicable(e).name]},function(e,t){return t.customTransformerRegistry.findApplicable(e).serialize(e)},function(e,t,n){var r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),Gx=[Wx,Bx,Vx,Fx],Kx=function(e,t){var n=kx(Gx,function(n){return n.isApplicable(e,t)});if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var r=kx(Nx,function(n){return n.isApplicable(e,t)});return r?{value:r.transform(e,t),type:r.annotation}:void 0},$x={};Nx.forEach(function(e){$x[e.annotation]=e});var Qx=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function Yx(e){if(bx(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(bx(e,"prototype"))throw new Error("prototype is not allowed as a property");if(bx(e,"constructor"))throw new Error("constructor is not allowed as a property")}var Jx=function(e,t,n){if(Yx(t),0===t.length)return n(e);for(var r=e,o=0;o<t.length-1;o++){var a=t[o];if(Sx(r))r=r[+a];else if(Ex(r))r=r[a];else if(Ix(r)){r=Qx(r,i=+a)}else if(Cx(r)){if(o===t.length-2)break;var i=+a,s=0===+t[++o]?"key":"value",c=Qx(r,i);switch(s){case"key":r=c;break;case"value":r=r.get(c)}}}var u=t[t.length-1];if(Sx(r)?r[+u]=n(r[+u]):Ex(r)&&(r[u]=n(r[u])),Ix(r)){var l=Qx(r,+u),d=n(l);l!==d&&(r.delete(l),r.add(d))}if(Cx(r)){i=+t[t.length-2];var p=Qx(r,i);switch(s=0===+u?"key":"value"){case"key":var h=n(p);r.set(h,r.get(p)),h!==p&&r.delete(p);break;case"value":r.set(p,n(r.get(p)))}}return e},Zx=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},Xx=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};function eS(e,t,n){if(void 0===n&&(n=[]),e)if(Sx(e)){var r=Zx(e,2),o=r[0],a=r[1];a&&vx(a,function(e,r){eS(e,t,Xx(Xx([],Zx(n)),Zx(jx(r))))}),t(o,n)}else vx(e,function(e,r){return eS(e,t,Xx(Xx([],Zx(n)),Zx(jx(r))))})}function tS(e,t,n){return eS(t,function(t,r){e=Jx(e,r,function(e){return function(e,t,n){if(!Sx(t)){var r=$x[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}switch(t[0]){case"symbol":return Bx.untransform(e,t,n);case"class":return Wx.untransform(e,t,n);case"custom":return Vx.untransform(e,t,n);case"typed-array":return Fx.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}}(e,t,n)})}),e}function nS(e,t){function n(t,n){var r=function(e,t){Yx(t);for(var n=0;n<t.length;n++){var r=t[n];if(Ix(e))e=Qx(e,+r);else if(Cx(e)){var o=+r,a=0===+t[++n]?"key":"value",i=Qx(e,o);switch(a){case"key":e=i;break;case"value":e=e.get(i)}}else e=e[r]}return e}(e,jx(n));t.map(jx).forEach(function(t){e=Jx(e,t,function(){return r})})}if(Sx(t)){var r=Zx(t,2),o=r[0],a=r[1];o.forEach(function(t){e=Jx(e,jx(t),function(){return e})}),a&&vx(a,n)}else vx(t,n);return e}var rS=function(e,t,n,r,o,a,i){var s;void 0===o&&(o=[]),void 0===a&&(a=[]),void 0===i&&(i=new Map);var c=Ox(e);if(!c){!function(e,t,n){var r=n.get(e);r?r.push(t):n.set(e,[t])}(e,o,t);var u=i.get(e);if(u)return r?{transformedValue:null}:u}if(!function(e,t){return Ex(e)||Sx(e)||Cx(e)||Ix(e)||Hx(e,t)}(e,n)){var l=Kx(e,n),d=l?{transformedValue:l.value,annotations:[l.type]}:{transformedValue:e};return c||i.set(e,d),d}if(bx(a,e))return{transformedValue:null};var p=Kx(e,n),h=null!==(s=null==p?void 0:p.value)&&void 0!==s?s:e,f=Sx(h)?[]:{},g={};vx(h,function(s,c){var u=rS(s,t,n,r,Xx(Xx([],Zx(o)),[c]),Xx(Xx([],Zx(a)),[e]),i);f[c]=u.transformedValue,Sx(u.annotations)?g[c]=u.annotations:Ex(u.annotations)&&vx(u.annotations,function(e,t){g[Ax(c)+"."+t]=e})});var m=xx(g)?{transformedValue:f,annotations:p?[p.type]:void 0}:{transformedValue:f,annotations:p?[p.type,g]:g};return c||i.set(e,m),m};function oS(e){return Object.prototype.toString.call(e).slice(8,-1)}function aS(e){return"Array"===oS(e)}function iS(e,t={}){if(aS(e))return e.map(e=>iS(e,t));if(!function(e){if("Object"!==oS(e))return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}(e))return e;return[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)].reduce((n,r)=>{if(aS(t.props)&&!t.props.includes(r))return n;return function(e,t,n,r,o){const a={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";"enumerable"===a&&(e[t]=n),o&&"nonenumerable"===a&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}(n,r,iS(e[r],t),e,t.nonenumerable),n},{})}var sS=function(){return sS=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},sS.apply(this,arguments)},cS=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},uS=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},lS=function(){function e(e){var t=(void 0===e?{}:e).dedupe,n=void 0!==t&&t;this.classRegistry=new gx,this.symbolRegistry=new hx(function(e){var t;return null!==(t=e.description)&&void 0!==t?t:""}),this.customTransformerRegistry=new _x,this.allowedErrorProps=[],this.dedupe=n}return e.prototype.serialize=function(e){var t=new Map,n=rS(e,t,this,this.dedupe),r={json:n.transformedValue};n.annotations&&(r.meta=sS(sS({},r.meta),{values:n.annotations}));var o,a,i,s,c=(o=t,a=this.dedupe,i={},s=void 0,o.forEach(function(e){if(!(e.length<=1)){a||(e=e.map(function(e){return e.map(String)}).sort(function(e,t){return e.length-t.length}));var t=Zx(e),n=t[0],r=t.slice(1);0===n.length?s=r.map(Px):i[Px(n)]=r.map(Px)}}),s?xx(i)?[s]:[s,i]:xx(i)?void 0:i);return c&&(r.meta=sS(sS({},r.meta),{referentialEqualities:c})),r},e.prototype.deserialize=function(e){var t=e.json,n=e.meta,r=iS(t);return(null==n?void 0:n.values)&&(r=tS(r,n.values,this)),(null==n?void 0:n.referentialEqualities)&&(r=nS(r,n.referentialEqualities)),r},e.prototype.stringify=function(e){return JSON.stringify(this.serialize(e))},e.prototype.parse=function(e){return this.deserialize(JSON.parse(e))},e.prototype.registerClass=function(e,t){this.classRegistry.register(e,t)},e.prototype.registerSymbol=function(e,t){this.symbolRegistry.register(e,t)},e.prototype.registerCustom=function(e,t){this.customTransformerRegistry.register(sS({name:t},e))},e.prototype.allowErrorProps=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];(e=this.allowedErrorProps).push.apply(e,uS([],cS(t)))},e.defaultInstance=new e,e.serialize=e.defaultInstance.serialize.bind(e.defaultInstance),e.deserialize=e.defaultInstance.deserialize.bind(e.defaultInstance),e.stringify=e.defaultInstance.stringify.bind(e.defaultInstance),e.parse=e.defaultInstance.parse.bind(e.defaultInstance),e.registerClass=e.defaultInstance.registerClass.bind(e.defaultInstance),e.registerSymbol=e.defaultInstance.registerSymbol.bind(e.defaultInstance),e.registerCustom=e.defaultInstance.registerCustom.bind(e.defaultInstance),e.allowErrorProps=e.defaultInstance.allowErrorProps.bind(e.defaultInstance),e}();const dS={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",paused:"#8c49eb",warning:"#ffb200"},pS=i.createContext(dS);function hS({theme:e,...t}){return i.createElement(pS.Provider,GE({value:e},t))}function fS({queryState:e,observerCount:t,isStale:n,theme:r}){return"fetching"===e.fetchStatus?r.active:t?"paused"===e.fetchStatus?r.paused:n?r.warning:r.success:r.gray}function gS(e){return"fetching"===e.state.fetchStatus?"fetching":e.getObserversCount()?"paused"===e.state.fetchStatus?"paused":e.isStale()?"stale":"fresh":"inactive"}function mS(e,t,n={}){return i.forwardRef(({style:r,...o},a)=>{const s=i.useContext(pS),c=Object.entries(n).reduce((e,[t,n])=>function(e){const[t,n]=i.useState(()=>{if("undefined"!=typeof window)return window.matchMedia(e).matches});return i.useEffect(()=>{if("undefined"!=typeof window){const t=window.matchMedia(e),r=({matches:e})=>n(e);return t.addListener(r),()=>{t.removeListener(r)}}},[t,e,n]),t}(t)?{...e,..."function"==typeof n?n(o,s):n}:e,{});return i.createElement(e,{...o,style:{..."function"==typeof t?t(o,s):t,...r,...c},ref:a})})}const yS=(e,t=!1)=>{const{json:n}=lS.serialize(e);return JSON.stringify(n,null,t?2:void 0)},vS=e=>"idle"!==e.state.fetchStatus?0:e.getObserversCount()?e.isStale()?2:1:3,bS=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,kS={"Status > Last Updated":(e,t)=>vS(e)===vS(t)?bS(e,t):vS(e)>vS(t)?1:-1,"Query Hash":(e,t)=>e.queryHash.localeCompare(t.queryHash),"Last Updated":bS},_S=500,wS={top:"bottom",bottom:"top",left:"right",right:"left"};function ES(e){return["left","right"].includes(e)}function xS(e){return wS[e]}function SS(e,t){return""+e+(t.charAt(0).toUpperCase()+t.slice(1))}function CS(e="bottom"){const t=ES(e),n=xS(e),r=SS("margin",n);return{position:"absolute",cursor:t?"col-resize":"row-resize",zIndex:1e5,[n]:0,[r]:"-4px",...t?{top:0,height:"100%",width:"4px"}:{width:"100%",height:"4px"}}}const IS=mS("div",(e,t)=>({fontSize:"clamp(12px, 1.5vw, 14px)",fontFamily:"sans-serif",display:"flex",backgroundColor:t.background,color:t.foreground}),{"(max-width: 700px)":{flexDirection:"column"},"(max-width: 600px)":{fontSize:".9em"}}),RS=mS("div",()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"}),{"(max-width: 700px)":(e,t)=>({borderTop:"2px solid "+t.gray})}),TS=mS("button",(e,t)=>({appearance:"none",fontSize:".9em",fontWeight:"bold",background:t.gray,border:"0",borderRadius:".3em",color:"white",padding:".5em",opacity:e.disabled?".5":void 0,cursor:"pointer"})),OS=mS("span",{display:"flex",flexWrap:"wrap",gap:"0.5em",fontSize:"0.9em"}),AS=mS("span",{display:"inline-flex",alignItems:"center",padding:".2em .4em",fontWeight:"bold",textShadow:"0 0 10px black",borderRadius:".2em"}),PS=mS("code",{fontSize:".9em",color:"inherit",background:"inherit"}),jS=mS("input",(e,t)=>({backgroundColor:t.inputBackgroundColor,border:0,borderRadius:".2em",color:t.inputTextColor,fontSize:".9em",lineHeight:"1.3",padding:".3em .4em"})),DS=mS("select",(e,t)=>({display:"inline-block",fontSize:".9em",fontFamily:"sans-serif",fontWeight:"normal",lineHeight:"1.3",padding:".3em 1.5em .3em .5em",height:"auto",border:0,borderRadius:".2em",appearance:"none",WebkitAppearance:"none",backgroundColor:t.inputBackgroundColor,backgroundImage:"url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23444444'><polygon points='0,25 100,25 50,75'/></svg>\")",backgroundRepeat:"no-repeat",backgroundPosition:"right .55em center",backgroundSize:".65em auto, 100%",color:t.inputTextColor}),{"(max-width: 500px)":{display:"none"}});function LS({text:e}){return i.createElement("span",{style:{position:"absolute",width:"0.1px",height:"0.1px",overflow:"hidden"}},e)}const zS=mS("div",{fontFamily:"Menlo, monospace",fontSize:"1em",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),qS=mS("span",{color:"white"}),NS=mS("button",{cursor:"pointer",color:"white"}),US=mS("button",{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}),BS=({value:e})=>{const[t,n]=i.useState("NoCopy");return i.createElement("button",{onClick:"NoCopy"===t?()=>{navigator.clipboard.writeText(lS.stringify(e)).then(()=>{n("SuccessCopy"),setTimeout(()=>{n("NoCopy")},1500)},e=>{console.error("Failed to copy: ",e),n("ErrorCopy"),setTimeout(()=>{n("NoCopy")},1500)})}:void 0,style:{cursor:"pointer",color:"inherit",font:"inherit",outline:"inherit",background:"transparent",border:"none",padding:0}},"NoCopy"===t?i.createElement(VS,null):"SuccessCopy"===t?i.createElement(KS,null):i.createElement(GS,null))},MS=mS("span",(e,t)=>({color:t.danger})),FS=mS("div",{marginLeft:".1em",paddingLeft:"1em",borderLeft:"2px solid rgba(0,0,0,.15)"}),HS=mS("span",{color:"grey",fontSize:".7em"}),WS=({expanded:e,style:t={}})=>i.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:"rotate("+(e?90:0)+"deg) "+(t.transform||""),...t}},"▶"),VS=()=>i.createElement("span",{"aria-label":"Copy object to clipboard",title:"Copy object to clipboard",style:{paddingLeft:"1em"}},i.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10"},i.createElement("path",{fill:"currentColor",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"}),i.createElement("path",{fill:"currentColor",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"}))),GS=()=>i.createElement("span",{"aria-label":"Failed copying to clipboard",title:"Failed copying to clipboard",style:{paddingLeft:"1em",display:"flex",alignItems:"center"}},i.createElement("svg",{height:"12",viewBox:"0 0 16 12",width:"10",display:"block"},i.createElement("path",{fill:"red",d:"M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z"})),i.createElement("span",{style:{color:"red",fontSize:"12px",paddingLeft:"4px",position:"relative",top:"2px"}},"See console")),KS=()=>i.createElement("span",{"aria-label":"Object copied to clipboard",title:"Object copied to clipboard",style:{paddingLeft:"1em",display:"inline-block",verticalAlign:"middle"}},i.createElement("svg",{height:"16",viewBox:"0 0 16 16",width:"16",display:"block"},i.createElement("path",{fill:"green",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"})));const $S=({handleEntry:e,label:t,value:n,subEntries:r=[],subEntryPages:o=[],type:a,expanded:s=!1,copyable:c=!1,toggleExpanded:u,pageSize:l})=>{const[d,p]=i.useState([]);return i.createElement(zS,{key:t},o.length?i.createElement(i.Fragment,null,i.createElement(US,{onClick:()=>u()},i.createElement(WS,{expanded:s})," ",t," ",i.createElement(HS,null,"iterable"===String(a).toLowerCase()?"(Iterable) ":"",r.length," ",r.length>1?"items":"item")),c?i.createElement(BS,{value:n}):null,s?1===o.length?i.createElement(FS,null,r.map(e)):i.createElement(FS,null,o.map((t,n)=>i.createElement("div",{key:n},i.createElement(zS,null,i.createElement(NS,{onClick:()=>p(e=>e.includes(n)?e.filter(e=>e!==n):[...e,n])},i.createElement(WS,{expanded:s})," [",n*l," ..."," ",n*l+l-1,"]"),d.includes(n)?i.createElement(FS,null,t.map(e)):null)))):null):i.createElement(i.Fragment,null,i.createElement(qS,null,t,":")," ",i.createElement(MS,null,yS(n))))};function QS({value:e,defaultExpanded:t,renderer:n=$S,pageSize:r=100,copyable:o=!1,...a}){const[s,c]=i.useState(Boolean(t)),u=i.useCallback(()=>c(e=>!e),[]);let l=typeof e,d=[];const p=e=>{const n=!0===t?{[e.label]:!0}:null==t?void 0:t[e.label];return{...e,defaultExpanded:n}};var h;Array.isArray(e)?(l="array",d=e.map((e,t)=>p({label:t.toString(),value:e}))):null!==e&&"object"==typeof e&&(h=e,Symbol.iterator in h)&&"function"==typeof e[Symbol.iterator]?(l="Iterable",d=Array.from(e,(e,t)=>p({label:t.toString(),value:e}))):"object"==typeof e&&null!==e&&(l="object",d=Object.entries(e).map(([e,t])=>p({label:e,value:t})));const f=function(e,t){if(t<1)return[];let n=0;const r=[];for(;n<e.length;)r.push(e.slice(n,n+t)),n+=t;return r}(d,r);return n({handleEntry:t=>i.createElement(QS,GE({key:t.label,value:e,renderer:n,copyable:o},a,t)),type:l,subEntries:d,subEntryPages:f,value:e,expanded:s,copyable:o,toggleExpanded:u,pageSize:r,...a})}function YS(e){return i.createElement("svg",GE({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),i.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(-33.000000, 0.000000)"},i.createElement("path",{d:"M72.7239712,61.3436237 C69.631224,46.362877 68.9675112,34.8727722 70.9666331,26.5293551 C72.1555965,21.5671678 74.3293088,17.5190846 77.6346064,14.5984631 C81.1241394,11.5150478 85.5360327,10.0020122 90.493257,10.0020122 C98.6712013,10.0020122 107.26826,13.7273214 116.455725,20.8044264 C120.20312,23.6910458 124.092437,27.170411 128.131651,31.2444746 C128.45314,30.8310265 128.816542,30.4410453 129.22143,30.0806152 C140.64098,19.9149716 150.255245,13.5989272 158.478408,11.1636507 C163.367899,9.715636 167.958526,9.57768202 172.138936,10.983031 C176.551631,12.4664684 180.06766,15.5329489 182.548314,19.8281091 C186.642288,26.9166735 187.721918,36.2310983 186.195595,47.7320243 C185.573451,52.4199112 184.50985,57.5263831 183.007094,63.0593153 C183.574045,63.1277086 184.142416,63.2532808 184.705041,63.4395297 C199.193932,68.2358678 209.453582,73.3937462 215.665021,79.2882839 C219.360669,82.7953831 221.773972,86.6998434 222.646365,91.0218204 C223.567176,95.5836746 222.669313,100.159332 220.191548,104.451297 C216.105211,111.529614 208.591643,117.11221 197.887587,121.534031 C193.589552,123.309539 188.726579,124.917559 183.293259,126.363748 C183.541176,126.92292 183.733521,127.516759 183.862138,128.139758 C186.954886,143.120505 187.618598,154.61061 185.619477,162.954027 C184.430513,167.916214 182.256801,171.964297 178.951503,174.884919 C175.46197,177.968334 171.050077,179.48137 166.092853,179.48137 C157.914908,179.48137 149.31785,175.756061 140.130385,168.678956 C136.343104,165.761613 132.410866,162.238839 128.325434,158.108619 C127.905075,158.765474 127.388968,159.376011 126.77857,159.919385 C115.35902,170.085028 105.744755,176.401073 97.5215915,178.836349 C92.6321009,180.284364 88.0414736,180.422318 83.8610636,179.016969 C79.4483686,177.533532 75.9323404,174.467051 73.4516862,170.171891 C69.3577116,163.083327 68.2780823,153.768902 69.8044053,142.267976 C70.449038,137.410634 71.56762,132.103898 73.1575891,126.339009 C72.5361041,126.276104 71.9120754,126.144816 71.2949591,125.940529 C56.8060684,121.144191 46.5464184,115.986312 40.3349789,110.091775 C36.6393312,106.584675 34.2260275,102.680215 33.3536352,98.3582381 C32.4328237,93.7963839 33.3306866,89.2207269 35.8084524,84.9287618 C39.8947886,77.8504443 47.4083565,72.2678481 58.1124133,67.8460273 C62.5385143,66.0176154 67.5637208,64.366822 73.1939394,62.8874674 C72.9933393,62.3969171 72.8349374,61.8811235 72.7239712,61.3436237 Z",fill:"#002C4B",fillRule:"nonzero",transform:"translate(128.000000, 95.000000) scale(-1, 1) translate(-128.000000, -95.000000) "}),i.createElement("path",{d:"M113.396882,64 L142.608177,64 C144.399254,64 146.053521,64.958025 146.944933,66.5115174 L161.577138,92.0115174 C162.461464,93.5526583 162.461464,95.4473417 161.577138,96.9884826 L146.944933,122.488483 C146.053521,124.041975 144.399254,125 142.608177,125 L113.396882,125 C111.605806,125 109.951539,124.041975 109.060126,122.488483 L94.4279211,96.9884826 C93.543596,95.4473417 93.543596,93.5526583 94.4279211,92.0115174 L109.060126,66.5115174 C109.951539,64.958025 111.605806,64 113.396882,64 Z M138.987827,70.2765273 C140.779849,70.2765273 142.434839,71.2355558 143.325899,72.7903404 L154.343038,92.0138131 C155.225607,93.5537825 155.225607,95.4462175 154.343038,96.9861869 L143.325899,116.20966 C142.434839,117.764444 140.779849,118.723473 138.987827,118.723473 L117.017233,118.723473 C115.225211,118.723473 113.570221,117.764444 112.67916,116.20966 L101.662022,96.9861869 C100.779452,95.4462175 100.779452,93.5537825 101.662022,92.0138131 L112.67916,72.7903404 C113.570221,71.2355558 115.225211,70.2765273 117.017233,70.2765273 L138.987827,70.2765273 Z M135.080648,77.1414791 L120.924411,77.1414791 C119.134228,77.1414791 117.480644,78.0985567 116.5889,79.6508285 L116.5889,79.6508285 L109.489217,92.0093494 C108.603232,93.5515958 108.603232,95.4484042 109.489217,96.9906506 L109.489217,96.9906506 L116.5889,109.349172 C117.480644,110.901443 119.134228,111.858521 120.924411,111.858521 L120.924411,111.858521 L135.080648,111.858521 C136.870831,111.858521 138.524416,110.901443 139.41616,109.349172 L139.41616,109.349172 L146.515843,96.9906506 C147.401828,95.4484042 147.401828,93.5515958 146.515843,92.0093494 L146.515843,92.0093494 L139.41616,79.6508285 C138.524416,78.0985567 136.870831,77.1414791 135.080648,77.1414791 L135.080648,77.1414791 Z M131.319186,83.7122186 C133.108028,83.7122186 134.760587,84.6678753 135.652827,86.2183156 L138.983552,92.0060969 C139.87203,93.5500005 139.87203,95.4499995 138.983552,96.9939031 L135.652827,102.781684 C134.760587,104.332125 133.108028,105.287781 131.319186,105.287781 L124.685874,105.287781 C122.897032,105.287781 121.244473,104.332125 120.352233,102.781684 L117.021508,96.9939031 C116.13303,95.4499995 116.13303,93.5500005 117.021508,92.0060969 L120.352233,86.2183156 C121.244473,84.6678753 122.897032,83.7122186 124.685874,83.7122186 L131.319186,83.7122186 Z M128.003794,90.1848875 C126.459294,90.1848875 125.034382,91.0072828 124.263005,92.3424437 C123.491732,93.6774232 123.491732,95.3225768 124.263005,96.6575563 C125.034382,97.9927172 126.459294,98.8151125 128.001266,98.8151125 L128.001266,98.8151125 C129.545766,98.8151125 130.970678,97.9927172 131.742055,96.6575563 C132.513327,95.3225768 132.513327,93.6774232 131.742055,92.3424437 C130.970678,91.0072828 129.545766,90.1848875 128.003794,90.1848875 L128.003794,90.1848875 Z M93,94.5009646 L100.767764,94.5009646",fill:"#FFD94C"}),i.createElement("path",{d:"M87.8601729,108.357758 C89.1715224,107.608286 90.8360246,108.074601 91.5779424,109.399303 L91.5779424,109.399303 L92.0525843,110.24352 C95.8563392,116.982993 99.8190116,123.380176 103.940602,129.435068 C108.807881,136.585427 114.28184,143.82411 120.362479,151.151115 C121.316878,152.30114 121.184944,154.011176 120.065686,154.997937 L120.065686,154.997937 L119.454208,155.534625 C99.3465389,173.103314 86.2778188,176.612552 80.2480482,166.062341 C74.3500652,155.742717 76.4844915,136.982888 86.6513274,109.782853 C86.876818,109.179582 87.3045861,108.675291 87.8601729,108.357758 Z M173.534177,129.041504 C174.986131,128.785177 176.375496,129.742138 176.65963,131.194242 L176.65963,131.194242 L176.812815,131.986376 C181.782365,157.995459 178.283348,171 166.315764,171 C154.609745,171 139.708724,159.909007 121.612702,137.727022 C121.211349,137.235047 120.994572,136.617371 121,135.981509 C121.013158,134.480686 122.235785,133.274651 123.730918,133.287756 L123.730918,133.287756 L124.684654,133.294531 C132.305698,133.335994 139.714387,133.071591 146.910723,132.501323 C155.409039,131.82788 164.283523,130.674607 173.534177,129.041504 Z M180.408726,73.8119663 C180.932139,72.4026903 182.508386,71.6634537 183.954581,72.149012 L183.954581,72.149012 L184.742552,72.4154854 C210.583763,81.217922 220.402356,90.8916805 214.198332,101.436761 C208.129904,111.751366 190.484347,119.260339 161.26166,123.963678 C160.613529,124.067994 159.948643,123.945969 159.382735,123.618843 C158.047025,122.846729 157.602046,121.158214 158.388848,119.847438 L158.388848,119.847438 L158.889328,119.0105 C162.877183,112.31633 166.481358,105.654262 169.701854,99.0242957 C173.50501,91.1948179 177.073967,82.7907081 180.408726,73.8119663 Z M94.7383398,66.0363218 C95.3864708,65.9320063 96.0513565,66.0540315 96.6172646,66.3811573 C97.9529754,67.153271 98.3979538,68.8417862 97.6111517,70.1525615 L97.6111517,70.1525615 L97.1106718,70.9895001 C93.1228168,77.6836699 89.5186416,84.3457379 86.2981462,90.9757043 C82.49499,98.8051821 78.9260328,107.209292 75.5912744,116.188034 C75.0678608,117.59731 73.4916142,118.336546 72.045419,117.850988 L72.045419,117.850988 L71.2574475,117.584515 C45.4162372,108.782078 35.597644,99.1083195 41.8016679,88.5632391 C47.8700957,78.2486335 65.515653,70.7396611 94.7383398,66.0363218 Z M136.545792,34.4653746 C156.653461,16.8966864 169.722181,13.3874478 175.751952,23.9376587 C181.649935,34.2572826 179.515508,53.0171122 169.348673,80.2171474 C169.123182,80.8204179 168.695414,81.324709 168.139827,81.6422422 C166.828478,82.3917144 165.163975,81.9253986 164.422058,80.6006966 L164.422058,80.6006966 L163.947416,79.7564798 C160.143661,73.0170065 156.180988,66.6198239 152.059398,60.564932 C147.192119,53.4145727 141.71816,46.1758903 135.637521,38.8488847 C134.683122,37.6988602 134.815056,35.9888243 135.934314,35.0020629 L135.934314,35.0020629 Z M90.6842361,18 C102.390255,18 117.291276,29.0909926 135.387298,51.2729777 C135.788651,51.7649527 136.005428,52.3826288 136,53.0184911 C135.986842,54.5193144 134.764215,55.7253489 133.269082,55.7122445 L133.269082,55.7122445 L132.315346,55.7054689 C124.694302,55.6640063 117.285613,55.9284091 110.089277,56.4986773 C101.590961,57.17212 92.7164767,58.325393 83.4658235,59.9584962 C82.0138691,60.2148231 80.6245044,59.2578618 80.3403697,57.805758 L80.3403697,57.805758 L80.1871846,57.0136235 C75.2176347,31.0045412 78.7166519,18 90.6842361,18 Z",fill:"#FF4154"}))))}const JS=(e,t,n=!1)=>Uf.useSyncExternalStore(i.useCallback(t=>n?()=>{}:e.subscribe(bf.batchCalls(t)),[e,n]),t,t),ZS=i.forwardRef(function(e,t){const{isOpen:n=!0,styleNonce:r,setIsOpen:o,context:a,onDragStart:s,onPositionChange:c,showCloseButton:u,position:l,closeButtonProps:d={},errorTypes:p=[],...h}=e,{onClick:f,...g}=d,m=Wf({context:a}),y=m.getQueryCache(),[v,b]=lx("reactQueryDevtoolsSortFn",Object.keys(kS)[0]),[k,_]=lx("reactQueryDevtoolsFilter",""),[w,E]=lx("reactQueryDevtoolsBaseSort",1),x=i.useMemo(()=>kS[v],[v]),S=JS(y,()=>y.getAll().length,!n),[C,I]=lx("reactQueryDevtoolsActiveQueryHash",""),R=i.useMemo(()=>{const e=y.getAll();if(0===S)return[];const t=k?e.filter(e=>ox(e.queryHash,k).passed):[...e];return x?t.sort((e,t)=>x(e,t)*w):t},[w,x,k,S,y]),[T,O]=i.useState(!1);return i.createElement(hS,{theme:dS},i.createElement(IS,GE({ref:t,className:"ReactQueryDevtoolsPanel","aria-label":"React Query Devtools Panel",id:"ReactQueryDevtoolsPanel"},h,{style:{height:_S,position:"relative",...h.style}}),i.createElement("style",{nonce:r,dangerouslySetInnerHTML:{__html:"\n .ReactQueryDevtoolsPanel * {\n scrollbar-color: "+dS.backgroundAlt+" "+dS.gray+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar, .ReactQueryDevtoolsPanel scrollbar {\n width: 1em;\n height: 1em;\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-track, .ReactQueryDevtoolsPanel scrollbar-track {\n background: "+dS.backgroundAlt+";\n }\n\n .ReactQueryDevtoolsPanel *::-webkit-scrollbar-thumb, .ReactQueryDevtoolsPanel scrollbar-thumb {\n background: "+dS.gray+";\n border-radius: .5em;\n border: 3px solid "+dS.backgroundAlt+";\n }\n "}}),i.createElement("div",{style:CS(l),onMouseDown:s}),n&&i.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:"1px solid "+dS.grayAlt,display:"flex",flexDirection:"column"}},i.createElement("div",{style:{padding:".5em",background:dS.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},i.createElement("button",{type:"button","aria-label":"Close React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true",onClick:()=>o(!1),style:{display:"inline-flex",background:"none",border:0,padding:0,marginRight:".5em",cursor:"pointer"}},i.createElement(YS,{"aria-hidden":!0}),i.createElement(LS,{text:"Close React Query Devtools"})),i.createElement("div",{style:{display:"flex",flexDirection:"column"}},i.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:".5em"}},i.createElement(eC,{queryCache:y}),l&&c?i.createElement(DS,{"aria-label":"Panel position",value:l,style:{marginInlineStart:".5em"},onChange:e=>c(e.target.value)},i.createElement("option",{value:"left"},"Left"),i.createElement("option",{value:"right"},"Right"),i.createElement("option",{value:"top"},"Top"),i.createElement("option",{value:"bottom"},"Bottom")):null),i.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"0.5em"}},i.createElement(jS,{placeholder:"Filter","aria-label":"Filter by queryhash",value:null!=k?k:"",onChange:e=>_(e.target.value),onKeyDown:e=>{"Escape"===e.key&&_("")},style:{flex:"1",width:"100%"}}),i.createElement(DS,{"aria-label":"Sort queries",value:v,onChange:e=>b(e.target.value),style:{flex:"1",minWidth:75,marginRight:".5em"}},Object.keys(kS).map(e=>i.createElement("option",{key:e,value:e},"Sort by ",e))),i.createElement(TS,{type:"button",onClick:()=>E(e=>-1*e),style:{padding:".3em .4em",marginRight:".5em"}},1===w?"⬆ Asc":"⬇ Desc"),i.createElement(TS,{title:"Clear cache","aria-label":"Clear cache",type:"button",onClick:()=>y.clear(),style:{padding:".3em .4em",marginRight:".5em"}},"Clear"),i.createElement(TS,{type:"button",onClick:()=>{T?(pf.setOnline(void 0),O(!1),window.dispatchEvent(new Event("online"))):(pf.setOnline(!1),O(!0))},"aria-label":T?"Restore offline mock":"Mock offline behavior",title:T?"Restore offline mock":"Mock offline behavior",style:{padding:"0",height:"2em"}},i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"2em",height:"2em",viewBox:"0 0 24 24",stroke:T?dS.danger:"currentColor",fill:"none"},T?i.createElement(i.Fragment,null,i.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),i.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),i.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),i.createElement("path",{d:"M6.343 12.343a7.963 7.963 0 0 1 3.864 -2.14m4.163 .155a7.965 7.965 0 0 1 3.287 2"}),i.createElement("path",{d:"M3.515 9.515a12 12 0 0 1 3.544 -2.455m3.101 -.92a12 12 0 0 1 10.325 3.374"}),i.createElement("line",{x1:"3",y1:"3",x2:"21",y2:"21"})):i.createElement(i.Fragment,null,i.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),i.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}),i.createElement("path",{d:"M9.172 15.172a4 4 0 0 1 5.656 0"}),i.createElement("path",{d:"M6.343 12.343a8 8 0 0 1 11.314 0"}),i.createElement("path",{d:"M3.515 9.515c4.686 -4.687 12.284 -4.687 17 0"}))),i.createElement(LS,{text:T?"Restore offline mock":"Mock offline behavior"}))))),i.createElement("div",{style:{overflowY:"auto",flex:"1"}},R.map(e=>i.createElement(tC,{queryKey:e.queryKey,activeQueryHash:C,setActiveQueryHash:I,key:e.queryHash,queryCache:y})))),C&&n?i.createElement(XS,{activeQueryHash:C,queryCache:y,queryClient:m,errorTypes:p}):null,u?i.createElement(TS,GE({type:"button","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"true"},g,{style:{position:"absolute",zIndex:99999,margin:".5em",bottom:0,left:0,...g.style},onClick:e=>{o(!1),null==f||f(e)}}),"Close"):null))}),XS=({queryCache:e,activeQueryHash:t,queryClient:n,errorTypes:r})=>{var o,a;const s=JS(e,()=>e.getAll().find(e=>e.queryHash===t)),c=JS(e,()=>{var n;return null==(n=e.getAll().find(e=>e.queryHash===t))?void 0:n.state}),u=null!=(o=JS(e,()=>{var n;return null==(n=e.getAll().find(e=>e.queryHash===t))?void 0:n.isStale()}))&&o,l=null!=(a=JS(e,()=>{var n;return null==(n=e.getAll().find(e=>e.queryHash===t))?void 0:n.getObserversCount()}))?a:0,d=p(()=>{if(s&&null!=c&&c.error){const e=r.find(e=>{var t;return e.initializer(s).toString()===(null==(t=c.error)?void 0:t.toString())});return null==e?void 0:e.name}},[s,null==c?void 0:c.error,r]);if(!s||!c)return null;const h=e=>{var t;const n=null!=(t=null==e?void 0:e.initializer(s))?t:new Error("Unknown error from devtools"),r=s.options;s.setState({status:"error",error:n,fetchMeta:{...s.state.fetchMeta,__previousQueryOptions:r}})};return i.createElement(RS,null,i.createElement("div",{style:{padding:".5em",background:dS.backgroundAlt,position:"sticky",top:0,zIndex:1}},"Query Details"),i.createElement("div",{style:{padding:".5em"}},i.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"flex-start",justifyContent:"space-between"}},i.createElement(PS,{style:{lineHeight:"1.8em"}},i.createElement("pre",{style:{margin:0,padding:0,overflow:"auto"}},yS(s.queryKey,!0))),i.createElement("span",{style:{padding:"0.3em .6em",borderRadius:"0.4em",fontWeight:"bold",textShadow:"0 2px 10px black",background:fS({queryState:c,isStale:u,observerCount:l,theme:dS}),flexShrink:0}},gS(s))),i.createElement("div",{style:{marginBottom:".5em",display:"flex",alignItems:"center",justifyContent:"space-between"}},"Observers: ",i.createElement(PS,null,l)),i.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},"Last Updated:"," ",i.createElement(PS,null,new Date(c.dataUpdatedAt).toLocaleTimeString()))),i.createElement("div",{style:{background:dS.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Actions"),i.createElement("div",{style:{padding:"0.5em",display:"flex",flexWrap:"wrap",gap:"0.5em",alignItems:"flex-end"}},i.createElement(TS,{type:"button",onClick:()=>{const e=null==s?void 0:s.fetch();null==e||e.catch(nC)},disabled:"fetching"===c.fetchStatus,style:{background:dS.active}},"Refetch")," ",i.createElement(TS,{type:"button",onClick:()=>n.invalidateQueries(s),style:{background:dS.warning,color:dS.inputTextColor}},"Invalidate")," ",i.createElement(TS,{type:"button",onClick:()=>n.resetQueries(s),style:{background:dS.gray}},"Reset")," ",i.createElement(TS,{type:"button",onClick:()=>n.removeQueries(s),style:{background:dS.danger}},"Remove")," ",i.createElement(TS,{type:"button",onClick:()=>{var e;if("fetching"!==s.state.fetchStatus||void 0!==(null==(e=s.state.fetchMeta)?void 0:e.__previousQueryOptions))if(void 0===s.state.data)s.fetch(s.state.fetchMeta.__previousQueryOptions,{cancelRefetch:!0});else{const e=s.options;s.fetch({...e,queryFn:()=>new Promise(()=>{}),cacheTime:-1}),s.setState({data:void 0,status:"loading",fetchMeta:{...s.state.fetchMeta,__previousQueryOptions:e}})}},style:{background:dS.paused}},"loading"===s.state.status?"Restore":"Trigger"," ","loading")," ",0===r.length||"error"===s.state.status?i.createElement(TS,{type:"button",onClick:()=>{s.state.error?n.resetQueries(s):h()},style:{background:dS.danger}},"error"===s.state.status?"Restore":"Trigger"," error"):i.createElement("label",null,"Trigger error:",i.createElement(DS,{value:null!=d?d:"",style:{marginInlineStart:".5em"},onChange:e=>{const t=r.find(t=>t.name===e.target.value);h(t)}},i.createElement("option",{key:"",value:""}),r.map(e=>i.createElement("option",{key:e.name,value:e.name},e.name))))),i.createElement("div",{style:{background:dS.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Data Explorer"),i.createElement("div",{style:{padding:".5em"}},i.createElement(QS,{label:"Data",value:c.data,defaultExpanded:{},copyable:!0})),i.createElement("div",{style:{background:dS.backgroundAlt,padding:".5em",position:"sticky",top:0,zIndex:1}},"Query Explorer"),i.createElement("div",{style:{padding:".5em"}},i.createElement(QS,{label:"Query",value:s,defaultExpanded:{queryKey:!0}})))},eC=({queryCache:e})=>{const t=JS(e,()=>e.getAll().filter(e=>"fresh"===gS(e)).length),n=JS(e,()=>e.getAll().filter(e=>"fetching"===gS(e)).length),r=JS(e,()=>e.getAll().filter(e=>"paused"===gS(e)).length),o=JS(e,()=>e.getAll().filter(e=>"stale"===gS(e)).length),a=JS(e,()=>e.getAll().filter(e=>"inactive"===gS(e)).length);return i.createElement(OS,null,i.createElement(AS,{style:{background:dS.success,opacity:t?1:.3}},"fresh ",i.createElement(PS,null,"(",t,")"))," ",i.createElement(AS,{style:{background:dS.active,opacity:n?1:.3}},"fetching ",i.createElement(PS,null,"(",n,")"))," ",i.createElement(AS,{style:{background:dS.paused,opacity:r?1:.3}},"paused ",i.createElement(PS,null,"(",r,")"))," ",i.createElement(AS,{style:{background:dS.warning,color:"black",textShadow:"0",opacity:o?1:.3}},"stale ",i.createElement(PS,null,"(",o,")"))," ",i.createElement(AS,{style:{background:dS.gray,opacity:a?1:.3}},"inactive ",i.createElement(PS,null,"(",a,")")))},tC=i.memo(({queryKey:e,setActiveQueryHash:t,activeQueryHash:n,queryCache:r})=>{var o,a,s,c;const u=null!=(o=JS(r,()=>{var t;return null==(t=r.find(e))?void 0:t.queryHash}))?o:"",l=JS(r,()=>{var t;return null==(t=r.find(e))?void 0:t.state}),d=null!=(a=JS(r,()=>{var t;return null==(t=r.find(e))?void 0:t.isStale()}))&&a,p=null!=(s=JS(r,()=>{var t;return null==(t=r.find(e))?void 0:t.isDisabled()}))&&s,h=null!=(c=JS(r,()=>{var t;return null==(t=r.find(e))?void 0:t.getObserversCount()}))?c:0;return l?i.createElement("div",{role:"button","aria-label":"Open query details for "+u,onClick:()=>t(n===u?"":u),style:{display:"flex",borderBottom:"solid 1px "+dS.grayAlt,cursor:"pointer",background:u===n?"rgba(255,255,255,.1)":void 0}},i.createElement("div",{style:{flex:"0 0 auto",width:"2em",height:"2em",background:fS({queryState:l,isStale:d,observerCount:h,theme:dS}),display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold",textShadow:d?"0":"0 0 10px black",color:d?"black":"white"}},h),p?i.createElement("div",{style:{flex:"0 0 auto",height:"2em",background:dS.gray,display:"flex",alignItems:"center",fontWeight:"bold",padding:"0 0.5em"}},"disabled"):null,i.createElement(PS,{style:{padding:".5em"}},""+u)):null});function nC(){}tC.displayName="QueryRow";const rC="development"!==process.env.NODE_ENV?function(){return null}:function({initialIsOpen:e,panelProps:t={},closeButtonProps:n={},toggleButtonProps:r={},position:o="bottom-left",containerElement:a="aside",context:s,styleNonce:c,panelPosition:u="bottom",errorTypes:l=[]}){const d=i.useRef(null),p=i.useRef(null),[h,f]=lx("reactQueryDevtoolsOpen",e),[g,m]=lx("reactQueryDevtoolsHeight",_S),[y,v]=lx("reactQueryDevtoolsWidth",_S),[b="bottom",k]=lx("reactQueryDevtoolsPanelPosition",u),[_,w]=i.useState(!1),[E,x]=i.useState(!1),S=function(){const e=i.useRef(!1),t=i.useCallback(()=>e.current,[]);return i.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t}();i.useEffect(()=>{w(null!=h&&h)},[h,_,w]),i.useEffect(()=>{const e=p.current;if(e){const t=()=>{_&&(e.style.visibility="visible")},n=()=>{_||(e.style.visibility="hidden")};return e.addEventListener("transitionstart",t),e.addEventListener("transitionend",n),()=>{e.removeEventListener("transitionstart",t),e.removeEventListener("transitionend",n)}}},[_]),i.useEffect(()=>{var e;if(_&&null!=(e=d.current)&&e.parentElement){const{parentElement:e}=d.current,t=SS("padding",b),n=ES(b),r=(({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:r,paddingRight:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingLeft:r,paddingRight:o}))(e.style),o=()=>{e.style.padding="0px",e.style.paddingTop="0px",e.style.paddingBottom="0px",e.style.paddingLeft="0px",e.style.paddingRight="0px",e.style[t]=(n?y:g)+"px"};if(o(),"undefined"!=typeof window)return window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o),Object.entries(r).forEach(([t,n])=>{e.style[t]=n})}}},[_,b,g,y]);const{style:C={},...I}=t,{style:R={},onClick:T,...O}=r,A=function({position:e="bottom",height:t,width:n,devtoolsTheme:r,isOpen:o,isResizing:a,panelStyle:i}){const s=xS(e),c=SS("border",s),u=ES(e);return{...i,direction:"ltr",position:"fixed",[e]:0,[c]:"1px solid "+r.gray,transformOrigin:s,boxShadow:"0 0 20px rgba(0,0,0,.3)",zIndex:99999,visibility:o?"visible":"hidden",...a?{transition:"none"}:{transition:"all .2s ease"},...o?{opacity:1,pointerEvents:"all",transform:u?"translateX(0) scale(1)":"translateY(0) scale(1)"}:{opacity:0,pointerEvents:"none",transform:u?"translateX(15px) scale(1.02)":"translateY(15px) scale(1.02)"},...u?{top:0,height:"100vh",maxWidth:"90%",width:"number"==typeof n&&n>=70?n:_S}:{left:0,width:"100%",maxHeight:"90%",height:"number"==typeof t&&t>=70?t:_S}}}({position:b,devtoolsTheme:dS,isOpen:_,height:g,width:y,isResizing:E,panelStyle:C});return S()?i.createElement(a,{ref:d,className:"ReactQueryDevtools","aria-label":"React Query Devtools"},i.createElement(hS,{theme:dS},i.createElement(ZS,GE({ref:p,context:s,styleNonce:c,position:b,onPositionChange:k,showCloseButton:!0,closeButtonProps:n},I,{style:A,isOpen:_,setIsOpen:f,onDragStart:e=>((e,t)=>{if(!e)return;if(0!==t.button)return;const n=ES(b);x(!0);const{height:r,width:o}=e.getBoundingClientRect(),a=t.clientX,i=t.clientY;let s=0;const c=e=>{e.preventDefault(),n?(s=o+("right"===b?a-e.clientX:e.clientX-a),v(s)):(s=r+("bottom"===b?i-e.clientY:e.clientY-i),m(s)),f(!(s<70))},u=()=>{E&&x(!1),document.removeEventListener("mousemove",c,!1),document.removeEventListener("mouseUp",u,!1)};document.addEventListener("mousemove",c,!1),document.addEventListener("mouseup",u,!1)})(p.current,e),errorTypes:l}))),_?null:i.createElement("button",GE({type:"button"},O,{"aria-label":"Open React Query Devtools","aria-controls":"ReactQueryDevtoolsPanel","aria-haspopup":"true","aria-expanded":"false",onClick:e=>{f(!0),null==T||T(e)},style:{background:"none",border:0,padding:0,position:"fixed",zIndex:99999,display:"inline-flex",fontSize:"1.5em",margin:".5em",cursor:"pointer",width:"fit-content",..."top-right"===o?{top:"0",right:"0"}:"top-left"===o?{top:"0",left:"0"}:"bottom-right"===o?{bottom:"0",right:"0"}:{bottom:"0",left:"0"},...R}}),i.createElement(YS,{"aria-hidden":!0}),i.createElement(LS,{text:"Open React Query Devtools"}))):null};process.env.NODE_ENV;var oC,aC={backgroundColor:"#fcfcff",width:"100%",zIndex:1e7,height:"100%",position:"absolute"};function iC(e){var o=this,a=e.children,i=process.env.ENVIRONMENT,s=p(function(){return"DEV"!==i&&"LOCAL"!==i?"testing":"live"},[i]),l=c(!1),h=l[0],f=l[1],g=d(function(e){return n(o,void 0,void 0,function(){var n,o,a,i,c;return r(this,function(r){switch(r.label){case 0:return n=localStorage.getItem("headers"),o=n&&JSON.parse(n),a=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live",i=localStorage.getItem("x-organization-code"),c=i?JSON.parse(i).value:"",[4,Bh.refreshInstance({headers:t(t({},o),{"X-Environment":a||s,"x-organization-code":c,"x-account-code":e.detail.accountCode,"X-Content-Type-Options":"nosniff"})})];case 1:return r.sent(),[2]}})})},[s]);u(function(){return addEventListener("ACCOUNT_CHANGED",g),function(){window.removeEventListener("ACCOUNT_CHANGED",g)}},[g]);var m=d(function(e){return n(o,void 0,void 0,function(){var n,o,a,i,c,u,l;return r(this,function(r){switch(r.label){case 0:return n=localStorage.getItem("headers"),(o=n&&JSON.parse(n))?(a=localStorage.getItem("x-organization-code"),i=localStorage.getItem("account"),c=i?null===(l=JSON.parse(i).value)||void 0===l?void 0:l.code:"",u=a?JSON.parse(a).value:"",[4,Bh.refreshInstance({headers:t(t({},o),{"X-Environment":e||s,"x-organization-code":u,"x-account-code":c,"X-Content-Type-Options":"nosniff"})})]):[3,2];case 1:r.sent(),Vg.refetchQueries(["fetch-profile","accountsV2","accounts","fetch-all-organizations","fetch-permissions"]),f(!0),r.label=2;case 2:return[2]}})})},[s,f]);return u(function(){var e=localStorage.getItem("isTesting")&&"OFF"!==localStorage.getItem("isTesting")?"testing":"live";window.addEventListener("storage",function(t){if("token"===t.key||"isTesting"===t.key){var n="OFF"===t.newValue?"live":"testing";"isTesting"===t.key?m(n):"token"===t.key&&m(e)}}),m(e)},[f,m]),h?React.createElement(Vf,{client:Vg},a,React.createElement(rC,{initialIsOpen:!1})):React.createElement("div",{style:aC})}!function(e){e.ECONNABORTED="ECONNABORTED",e.ETIMEDOUT="ETIMEDOUT",e.ERR_BAD_REQUEST="ERR_BAD_REQUEST"}(oC||(oC={}));var sC=function(){var e=l(null),t=l(null),n=l(null),r=c(!1),o=r[0],a=r[1],i=c(null),s=i[0],p=i[1],h=c(null),f=h[0],g=h[1],m=d(function(){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null)},[]),y=d(function(){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null),g(null);try{var r=new WebSocket("".concat(Lh["WS_URL_".concat(Lh.ENVIRONMENT)],"/data-assistant/charts/ws"));e.current=r,r.onopen=function(){a(!0);var e=localStorage.getItem("token");e&&r.send(JSON.stringify({type:"auth",token:e})),t.current=setInterval(function(){r.readyState===WebSocket.OPEN?r.send(JSON.stringify({type:"ping"})):(m(),a(!1))},3e4)},r.onmessage=function(e){try{var t=JSON.parse(e.data);p(t)}catch(e){g("Failed to parse server response")}},r.onerror=function(e){g("Connection error occurred"),a(!1)},r.onclose=function(e){a(!1),m(),e.wasClean||1e3===e.code||(n.current=setTimeout(function(){y()},5e3))}}catch(e){g("Failed to establish connection")}},[]),v=d(function(t){var n;(null===(n=e.current)||void 0===n?void 0:n.readyState)===WebSocket.OPEN&&e.current.send(JSON.stringify({type:"subscribe",chart_id:t}))},[]),b=d(function(t){var n;(null===(n=e.current)||void 0===n?void 0:n.readyState)===WebSocket.OPEN&&e.current.send(JSON.stringify({type:"unsubscribe",chart_id:t}))},[]),k=d(function(){p(null)},[]),_=d(function(){t.current&&(clearInterval(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null),e.current&&(a(!1),e.current.close(1e3,"Manual disconnect"),e.current=null)},[]);return u(function(){return y(),function(){m(),_()}},[]),{subscribe:v,unsubscribe:b,disconnect:_,connect:y,clearChartData:k,isConnected:o,chartData:s,connectionError:f}},cC=["LOCAL","DEV","STG"].includes(process.env.ENVIRONMENT||"");"undefined"!=typeof window&&cC&&function(){n(this,void 0,void 0,function(){var e;return r(this,function(t){switch(t.label){case 0:if(!Ri())return console.info('MSW is disabled. Run "window.enableMSW()" to enable it.'),[2];console.info('MSW is enabled. Run "window.disableMSW()" to disable it.'),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,Si.start({serviceWorker:{url:"/mockServiceWorker.js"},onUnhandledRequest:"bypass"})];case 2:return t.sent(),[3,4];case 3:return e=t.sent(),console.error("Error starting MSW:",e),[3,4];case 4:return[2]}})})}();export{Vd as AI,Ph as Api,oC as ApiErrorCodes,iC as ApiProvider,Bh as ApiSingleton,Wd as Audit,eb as CONCIERGE_ACCESS_QUERY_KEY,tb as CONCIERGE_ACCESS_REQUEST_STATUS_QUERY_KEY,qd as Country,Md as DataReport,Xf as DuplicateSetting,kh as FEEDBACK_ISSUE_OPTIONS,zd as Organization,Gd as OrganizationConfig,Ld as PaymentFiltersSection,gb as PendingDuplicateAccountStatus,Hd as ReconciliationAgendaInsight,Fd as ReconciliationReportType,Nd as ReportType,zh as SESSION_EXPIRED_MESSAGE_TYPE,Dd as SendPaymentNotification,Bd as SmartRouting,Ud as TemplateType,Nh as emitExpired,qg as getDatadogEnvironment,Ck as getQueryKeyGetNameAndIcon,Ak as getQueryKeyPaymentMethodAccounts,Rk as getQueryKeyRequiredFields,Wg as queryCache,Vg as queryClient,Uh as resetExpiredGuard,_k as use3DSExemptions,_v as useAICreateWorkflow,zg as useAccountCode,Hg as useAddToRiskList,yw as useAllFeatureFlags,Qw as useAllowListDetail,$w as useBlackListDetail,Zv as useBlockOnboarding,Hv as useBulkCreateInstallmentsPlans,Wv as useBulkDeleteInstallmentsPlans,cg as useBulkDisableAccounts,ug as useBulkEnableAccounts,im as useBulkToggleMethod,vw as useCachedFeatureFlag,Yg as useCancelReport,Dm as useCancelSubscription,wg as useChangePasswordV2,ky as useChangePaymentsWebhook,gy as useChangeStatusBlackList,my as useChangeStatusItemBlackList,Lk as useChangeStylingSettings,jv as useChangeTemplateStatus,Mg as useChargebacksUpload,sC as useChartAssistantSocket,aE as useChartExecute,Av as useCloneTemplate,Zm as useCommunicationDetails,Ym as useCommunications,bE as useCommunicationsByDay,kE as useCommunicationsBySubstatus,Jm as useCommunicationsFilters,_E as useCommunicationsSubstatusByDay,ry as useConfirmedOtpMfa,Qg as useCountRowsForReport,Cv as useCreateAndExecuteChart,Rv as useCreateAndExecuteChartWithTimezone,lv as useCreateAuditSubscription,db as useCreateCertificate,Ev as useCreateChart,Iv as useCreateChartWithTimezone,ab as useCreateConciergeBrief,Bv as useCreateInstallmentsPlan,mm as useCreateMonitorTemplate,gm as useCreateMonitorThreshold,Yv as useCreateOnboarding,Bg as useCreateOperationTransaction,Em as useCreateOrgRole,Im as useCreatePaymentLinks,Kv as useCreateRecipient,Vv as useCreateRecipientExport,fv as useCreateReconciliationAlert,pv as useCreateReconciliationReportTemplate,Gg as useCreateReconciliationsReportV2,Kg as useCreateReconciliationsReportV3,Jg as useCreateReportTemplate,$g as useCreateReportV2,km as useCreateRoles,vv as useCreateSamlConfig,Lv as useCreateSchedule,Dy as useCreateScheduledReport,Am as useCreateSubscription,Ov as useCreateTemplate,em as useCreateWorkflow,dg as useDeleteAccountsUserMassive,Ey as useDeleteAllowlistItem,dv as useDeleteAuditSubscription,vy as useDeleteBlackListType,_y as useDeleteBlockListItem,hb as useDeleteCertificate,fb as useDeleteCertificateAccount,xv as useDeleteChart,cb as useDeleteConciergeBrief,Gy as useDeleteCustomizedApiKeys,Fv as useDeleteInstallmentsPlan,Sm as useDeleteOrgRole,Rm as useDeletePaymentLink,Qv as useDeleteRecipient,gv as useDeleteReconciliationAlert,Xg as useDeleteReportTemplate,wm as useDeleteRoles,kv as useDeleteSamlConfig,qv as useDeleteSchedule,zy as useDeleteScheduledReport,Dv as useDeleteTemplate,vm as useDeleteUserTeamV2,rm as useDeleteVersion,tg as useDeleteWebhookV2,zv as useDisableSchedule,VE as useDownloadCertificate,Gv as useDownloadRecipientExport,og as useDuplicateAccount,om as useDuplicateVersion,xm as useEditOrgRole,Tm as useEditPaymentLinks,_m as useEditRoles,Vm as useEmailVerification,Py as useExcludeUsers,av as useExportApiLogs,sv as useExportDashboardLogs,cv as useExportMonitorsLogs,iv as useExportWebhooksLogs,mw as useFeatureFlags,r_ as useFetchUserExportDetail,Hw as useFirebaseUserSubscribe,wv as useGenerateFeedback,nk as useGetAccounts,ok as useGetAccountsByOrganization,ak as useGetAccountsByUser,ik as useGetAccountsForImpersonation,rk as useGetAccountsV2,Xw as useGetAllConfigRules,U_ as useGetAllReconciliationsAdvancements,z_ as useGetAllReconciliationsAgenda,L_ as useGetAllReconciliationsAlerts,B_ as useGetAllReconciliationsFees,N_ as useGetAllReconciliationsSales,A_ as useGetAllTableColumns,Mb as useGetAllowedIps,Sw as useGetApiLogsByPaymentId,Cw as useGetApiLogsByTransactionCode,xw as useGetApiLogsDetailByPaymentCode,Dw as useGetApiLogsList,Pw as useGetApiLogsStatsErrors,jw as useGetApiLogsStatsErrorsByEndpoint,Aw as useGetApiLogsStatsRequests,UE as useGetApiLogsV3,Lw as useGetApiLogsV3ByPaymentCode,kw as useGetAuditEventByCode,bw as useGetAuditEvents,Rw as useGetAuditExportDownload,Iw as useGetAuditExportsList,_w as useGetAuditMonitorEventDetail,Ry as useGetBatchRefundProcessedFileDownload,Ty as useGetBatchRefundUserFileDownload,Jw as useGetBatchRefunds,Vw as useGetBlackList,Kw as useGetBlockListSummary,Eb as useGetCardBrands,WE as useGetCertificates,uE as useGetChartFeedback,iE as useGetChartsByUser,sE as useGetChartsByUserWithResults,Sk as useGetCheckouts,nb as useGetConciergeAccess,rb as useGetConciergeAccessRequestStatus,qy as useGetConditionalConfigRules,Ww as useGetConfigAllowlist,Zb as useGetConnections,Yb as useGetConnectionsByPaymentMethod,Uw as useGetCountriesConfigPaymentLink,Bw as useGetCountriesConfigPaymentLinkV2,Ok as useGetCountryData,Ub as useGetCredentials,Qy as useGetCredentialsMFA,Hb as useGetCustomizedApiKeys,Fb as useGetCustomizedApiKeysAccounts,Bb as useGetCustomizedApiKeysMembers,Wb as useGetCustomizedApiKeysProducts,Hy as useGetCustomizedApiKeysToken,Wk as useGetDownloadReport,ny as useGetEmailOtp,Jb as useGetHashPylon,HE as useGetHiddenFields,$m as useGetImpersonationEnabled,Km as useGetImpersonationUsers,d_ as useGetInsightsReport,p_ as useGetInsightsReportAgain,qE as useGetInstallmentsPlans,Qb as useGetIntegrationByAccountV2,$b as useGetIntegrationParams,lE as useGetLanguages,Gm as useGetLoginMethods,tE as useGetMFAConfig,eE as useGetMFAExcludedUsers,nE as useGetMFAStatus,Nk as useGetMergedNotifications,Ik as useGetNameAndIcon,pE as useGetNetworkTokensOnboardingByOrganization,zk as useGetNotificationsCustomer,Uk as useGetNotificationsNumberMutation,jE as useGetOnboardingDetail,TE as useGetOnboardingStatus,DE as useGetOnboardingTimeline,e_ as useGetOrgPermissionsCatalog,Xk as useGetOrgRolesPermissions,Gb as useGetOrganization,RE as useGetOrganizationConfigs,Jy as useGetOrganizationKeysMetadata,xb as useGetPaymentFilters,Nw as useGetPaymentLinkByCode,qw as useGetPaymentLinks,Pk as useGetPaymentMethodAccounts,wb as useGetPaymentMethodsAndProviders,Sb as useGetPaymentMetricsFilters,Cb as useGetPaymentTransactionsDetails,vb as useGetPaymentV2,_b as useGetPaymentsMethodsByCountry,Ob as useGetPayoutDetail,Pb as useGetPayoutHistoryDetail,Nb as useGetPayoutTimeline,Ab as useGetPayoutTransactionDetail,ck as useGetPendingDuplicateAccounts,Wm as useGetPermissions,Zk as useGetPermissionsCatalog,Fm as useGetProfile,jb as useGetProofOfCancel,Db as useGetProofOfPayment,Kb as useGetProviderParams,PE as useGetRecipientById,zE as useGetRecipientExportDownload,LE as useGetRecipientExports,OE as useGetRecipients,AE as useGetRecipientsV2,P_ as useGetReconciliationActive,q_ as useGetReconciliationAgendaInsightsByKey,O_ as useGetReconciliationFilters,G_ as useGetReconciliationInsightsAmountConflictAggregators,K_ as useGetReconciliationInsightsAmountConflictList,sw as useGetReconciliationInsightsAmountToBeSettledSummary,Q_ as useGetReconciliationInsightsConflictDateAggregators,Y_ as useGetReconciliationInsightsConflictDateList,$_ as useGetReconciliationInsightsConflictDateSummary,M_ as useGetReconciliationInsightsConflictsSummary,ew as useGetReconciliationInsightsFeesChargedSummary,Z_ as useGetReconciliationInsightsIncorrectFeesAggregators,X_ as useGetReconciliationInsightsIncorrectFeesList,J_ as useGetReconciliationInsightsIncorrectFeesSummary,aw as useGetReconciliationInsightsNotConfirmAggregators,iw as useGetReconciliationInsightsNotConfirmList,ow as useGetReconciliationInsightsNotConfirmSummary,F_ as useGetReconciliationInsightsNotReconciledAggregators,H_ as useGetReconciliationInsightsNotReconciledList,nw as useGetReconciliationInsightsReconciledAggregators,rw as useGetReconciliationInsightsReconciledList,tw as useGetReconciliationInsightsReconciledSummary,uw as useGetReconciliationInsightsReconciliationRateByAccount,lw as useGetReconciliationInsightsReconciliationRateByCurrency,cw as useGetReconciliationInsightsReconciliationRateByProvider,dw as useGetReconciliationInsightsSettlementLookup,W_ as useGetReconciliationInsightsStatusConflictAggregators,V_ as useGetReconciliationInsightsStatusConflictList,T_ as useGetReconciliationMetrics,I_ as useGetReconciliationTransactions,j_ as useGetReconciliationsReportColumns,D_ as useGetReconciliationsReportTemplates,Kk as useGetRefundPdf,Gk as useGetReportColumns,Vk as useGetReportTemplates,Fk as useGetReportsList,Hk as useGetReportsListMultiEnv,Tk as useGetRequiredFields,Yk as useGetRoles,sk as useGetRolesForImpersonation,Jk as useGetRolesPermissions,xk as useGetRoutingMonitorsTemplate,Ek as useGetRoutingMonitorsTemplates,Ny as useGetRule,oE as useGetSamlConfig,jy as useGetScheduledReportsList,R_ as useGetSettlements,pk as useGetSmartRoutingConditionPaymentMethod,dk as useGetSmartRoutingConditionTypes,hk as useGetSmartRoutingConditionTypesValues,o_ as useGetSmartRoutingDataReport,mk as useGetSmartRoutingDeclineGroups,uk as useGetSmartRoutingMethods,gk as useGetSmartRoutingNextRoute,yk as useGetSmartRoutingPaymentRoute,bk as useGetSmartRoutingSearchConditionValues,vk as useGetSmartRoutingSimulateConditionTypeValues,lk as useGetSmartRoutingWorkflow,fk as useGetSmartRoutingWorkflowVersion,jk as useGetStylingSdkDynamic,Dk as useGetStylingSettingsV2,Mw as useGetSubscriptionByCode,Fw as useGetSubscriptionPayments,$k as useGetTeamsFiltersMembers,ty as useGetTokenValidation,bb as useGetTransactionDetailsV2,Ib as useGetTransactionHistoryByPaymentCode,kb as useGetTransactionRawResponse,dE as useGetTranslations,Tw as useGetUnifiedExportStatus,Ow as useGetUnifiedExportsList,t_ as useGetUserExportStatus,Hm as useGetUserFull,Qm as useGetUsersToImpersonate,qk as useGetValidateOpsgenieKey,Xb as useGetWebhookParamsV2,BE as useGetWebhookTimeline,tk as useGetWebhooksV2Detail,ek as useGetWebhooksV3,rE as useGetWorkOsMfaStatus,m_ as useInsights3dsConversionRateAndEvolution,y_ as useInsights3dsDeclineReasons,v_ as useInsights3dsFrictionlessVsChallenge,g_ as useInsights3dsVolumeAndCountTx,C_ as useInsightsChargebacksByCardBrand,E_ as useInsightsChargebacksByProviderAndCardBrand,w_ as useInsightsChargebacksDisputed,x_ as useInsightsChargebacksReasonsDistribution,S_ as useInsightsChargebacksStatusDistribution,k_ as useInsightsChargebacksTotalRateAndEvolution,b_ as useInsightsChargebacksVolumeAndCountTx,__ as useInsightsChargebacksWinRate,a_ as useInsightsConversionRateMetricsV2,s_ as useInsightsFallbackMetrics,f_ as useInsightsFraudScreeningConversionRate,h_ as useInsightsFraudScreeningVolumeAndCountTx,l_ as useInsightsHomeMetrics,u_ as useInsightsOverviewMetricsV3,c_ as useInsightsVolumeMetricsV2,Rg as useInviteUsersMultiaccountMassive,Tg as useInviteUsersMultiaccountMassiveV2,jg as useIsTesting,zw as useListAuditSubscriptions,qm as useListSubscriptions,n_ as useListUserExports,Dg as useLocalStorage,Pg as useLoginMethods,wk as useNetworkTokensOnboarding,mg as useNewPostConnectionValidate,Lg as useOrganizationCode,ig as usePatchAccountV2,dy as usePatchAddAllowlistItems,Vb as usePatchAllowedIps,py as usePatchAllowlist,cE as usePatchAndExecuteChart,Ky as usePatchApiKeysEditNote,uy as usePatchChangeStatusAllowlist,ly as usePatchChangeStatusAllowlistItem,Sv as usePatchChartName,yg as usePatchConnection,Zy as usePatchOrganizationKeysNote,Fy as usePathCreateCustomizedApiKeys,Bk as usePathNotifications,Pm as usePauseSubscription,qb as usePayoutsFilters,zb as usePayoutsList,rg as usePostAccount,Yw as usePostAllowlistMultiAccount,$y as usePostApiKeysRoll,ww as usePostApiLogs,nv as usePostAuditMonitors,Iy as usePostBatchRefundByFile,by as usePostBlackListBatch,yy as usePostBlackListItems,hy as usePostBlackListMultiAccount,Gw as usePostBlockList,Ag as usePostCall,hg as usePostChangeStatusConnection,gg as usePostConnectionMultiAccount,cy as usePostCreateAllowlistMultiAccount,My as usePostCreateCustomizedApiKeys,yv as usePostCreateInsightsReport,Uy as usePostCreateRuleMultiAccount,Wy as usePostCredentialsValidatePassword,Vy as usePostCredentialsValidatePasswordRegularUser,Yy as usePostCredentialsWithOtpMfa,vg as usePostDefaultRoutes,By as usePostEditRule,Tb as usePostFraudTransactions,iy as usePostGetAllowlistItems,sy as usePostGetAllowlistMultiAccount,lb as usePostIntegrationRequest,Qk as usePostMembersPaginatedV2,kg as usePostNetworkTokensOnboarding,Nv as usePostOrganizationConfigs,tv as usePostOrganizationKeysMarkRevealed,Xy as usePostOrganizationKeysRoll,ev as usePostOrganizationKeysTamRequest,yb as usePostPaymentsEvaluated,mb as usePostPaymentsLazy,ub as usePostPlaygroundExecuteFlow,ym as usePostSlackFeatureNotification,Rb as usePostTransactions,Nm as usePostUserSettings,Mm as usePostUserSettingsPinned,Bm as usePostUserSettingsTables,Um as usePostUserThemeSettings,pg as usePostValideStatusConnection,Zw as usePostVelocityRules,Ew as usePostWebhookLogs,eg as usePostWebhookMultiAccount,kk as useProviderConversionRatesData,Fg as useProviderRawResponse,Ug as usePublishCheckout,tm as usePublishVersion,sg as usePutAccountPrincipal,lg as usePutAccountsUserMassive,fy as usePutBlackListType,fg as usePutCosts,Uv as usePutOrganizationConfigsByAccount,EE as useRecoveredPaymentsByDay,wE as useRecoveredTPVByDay,sb as useRequestConciergeAccess,zm as useRescheduleSubscription,rv as useResendWebhooks,jm as useResumeSubscription,ag as useRetryDuplicateAccount,nm as useSaveVersion,NE as useSearchInstallmentsPlans,IE as useSearchScheduleById,CE as useSearchSchedules,SE as useSearchTemplateById,xE as useSearchTemplates,Lb as useSendPaymentNotification,bm as useSetCustodian,cm as useSmartRoutingCreateDeclinedGroup,lm as useSmartRoutingEditWorkflowName,fm as useSmartRoutingMultiAccountDeclinedGroupCreate,hm as useSmartRoutingRemoveDeclinedGroup,dm as useSmartRoutingSimulateTransaction,um as useSmartRoutingToggleFavorite,sm as useSmartRoutingUpdateDeclinedGroup,pm as useSmartRoutingUpdateMonitorRedistribution,Cm as useStartUserExport,Tv as useSubmitChartFeedback,ey as useTableOnboarding,am as useToggleMethod,Og as useUnInviteUsersV2,Xv as useUnblockOnboarding,ov as useUnifiedExportStart,oy as useUnrollUserV2,pb as useUpdateCertificateAccounts,ob as useUpdateConciergeAccess,ib as useUpdateConciergeBrief,Mv as useUpdateInstallmentsPlan,Ng as useUpdateIsActiveCheckout,Ay as useUpdateMFAConfig,Jv as useUpdateOnboarding,_g as useUpdateOrganizationStatus,Ig as useUpdateProfile,$v as useUpdateRecipient,mv as useUpdateReconciliationAlert,hv as useUpdateReconciliationReportTemplate,Zg as useUpdateReportTemplate,bv as useUpdateSamlConfig,Ly as useUpdateScheduledReport,Lm as useUpdateSubscription,Pv as useUpdateTemplateSelection,ng as useUpdateWebhookV2,Sy as useUploadBatchRefundsFileV2,Cy as useUploadBatchRefundsV2,Oy as useUploadFileS3ClientBatchRefunds,Om as useUploadPaymentLinkLogo,xy as useValiateAllowlistItems,wy as useValidateBlockListItems,bg as useValidateCredentials,ay as useValidatePasswordStatus,i_ as useViewMoreMetrics,xg as useWorkosAdminPortal,ME as useWorkosDomainStatus,Sg as useWorkosDomainVerificationPortal,Eg as useWorkosPasswordReset,FE as useWorkosSsoConfigStatus,Cg as useWorkosVerifyMfa};
|
|
68
68
|
//# sourceMappingURL=index.js.map
|