1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/password-manager-set-up-BHZHT32B.js","assets/rolldown-runtime-DErZjmJu.js","assets/vendor-forms-D7jxRuAn.js","assets/vendor-analytics-DkN1Rn0d.js","assets/vendor-charts-z5X2J1uQ.js","assets/vendor-spendbase-ui-G49Kq-Iz.js","assets/vendor-misc-DqVrgCHj.js","assets/vendor-dnd-59CisRQc.js","assets/vendor-misc-CNk1fSMN.css","assets/vendor-mui-CHwZM3EY.js","assets/vendor-i18n-CkfRGp2z.js","assets/vendor-spendbase-ui-BlivMPAe.css","assets/vendor-router-CFLXtB1U.js","assets/master-password-form-Cj7APzWF.js","assets/password-manager-recovery-phrase-DWQ3PIRQ.js","assets/Shield3d-Dlw54JC0.js","assets/password-manager-unlock-E0YMnIhs.js","assets/RecoveryPhraseModal-BY-I165q.js","assets/PinInput-CFWfuvZX.js","assets/password-manager-recovery-DmN3VZK8.js","assets/password-manager-all-records-fytDbc2X.js","assets/vendor-crypto-DjOFAuzF.js","assets/vendor-tanstack-DVVlrfYU.js","assets/PasswordManagerRecordList-mOfBUGCc.js","assets/users-CYb1TaGB.js","assets/password-manager-trial-BM0FN7EU.js","assets/password-manager-settings-DLLcr39k.js","assets/password-manager-admin-BJoVLj2A.js","assets/password-manager-archive-Ch35VlEp.js","assets/applications-page-CYPucGVT.js","assets/ApplicationTable-KWhIUDZQ.js","assets/ApplicationStatusSelect-eWyqfG-4.js","assets/columns-NRiruyIp.js","assets/subscriptions-PBzjs2oE.js","assets/ApplicationTable-ZkyUAdF3.css","assets/add-applications-ZCQ79K8r.js","assets/integration-icons-CR0NTt3r.js","assets/application-autocomplete-control-BwuXMowD.js","assets/browser-extension-T1pUVfQG.js","assets/integration-modal-fG7_0AWw.js","assets/microsoft-dynamics-sync-environments-BCkuJWcV.js","assets/IntegrationsProcess-Dwl0ahcO.js","assets/integrations-BPuWDAh5.js","assets/PageHeader-SgvYKd1Z.js","assets/applications-archive-page-CLTDYco8.js","assets/application-details-page-B2mEuaFa.js","assets/currencies-AhqKCLqM.js","assets/tables-C-MKYwWG.js","assets/AvatarImageLoader-b0IH1swS.js","assets/MenuList-6qZ7WHOf.js","assets/SwitchButtonsControl-XGdJkf_l.js","assets/review-bill-page-BPNJpvNR.js","assets/cancel-bill-pay-R73YA7w6.js","assets/recipients-BsLg4mgx.js","assets/recipient-form-BOA32Lun.js","assets/money-currency-select-ujXac49c.js","assets/money-master-CxXR5-rQ.js","assets/useMoneySessionInit-C7vnQXy6.js","assets/discounts-page-DUO7Cu39.js","assets/vendor-pdf-DEQ43x_E.js","assets/team-CW-PuDz3.js","assets/utils-CojsyGdE.js","assets/Currencies-CU0QYC-x.js","assets/money-dashboard-router-Bd6IRzT4.js","assets/transactions-mLTdH8j2.js","assets/crypto-DADqM3vu.js","assets/money-accounting-DLN_FaEA.js","assets/money-details-drawer-CJ8dY_zO.js","assets/DownloadReceiptButton-Dw0VO0G-.js","assets/role-permissions-DJ5vIJ43.js","assets/admin-dashboard-tabs-avneoSRs.js","assets/crypto-top-up-CPldbdeB.js","assets/config-DOnBwC17.js","assets/utils-K3zKHXTA.js","assets/top-up-account-BEnkEdP3.js","assets/money-header-B7vzidjx.js","assets/member-dashboard-Dhc0pBN-.js","assets/member-cards-placeholder-FBU51gQv.js","assets/move-money-CeCrOmEt.js","assets/move-money-send-out-ffMTRZ7p.js","assets/money-steps-container-DtwwMExX.js","assets/move-money-transfer-VKAaSCxI.js","assets/unsubscribe-D5LSBStk.js","assets/card-details-WsygVf-2.js","assets/create-card-BmgVlU3P.js","assets/card-stage-fallback-DyDpTWjK.js","assets/AdminSettings-hwa1z9mc.js","assets/SettingsContainer-Bg-M3qcX.js","assets/AccountingItegrationsGrid-DfZGMenx.js","assets/accounting-setup-wizard-DgHQqsh2.js","assets/integration-card-DTza7X4A.js","assets/MemberSettings-BYOfwgGA.js","assets/our-partners-mgpiFHfH.js","assets/fraud-prevention-REs_oEZp.js","assets/currency-rates-B-z3r9L2.js","assets/limits-BF5TNz4P.js","assets/fees-B22KxUgx.js","assets/money-accounting-page-CDr56862.js","assets/money-recipients-page-DhaBVQ89.js","assets/money-accounting-set-up-BBr5XlLH.js","assets/money-convert-B3lKDf8r.js","assets/money-billpays-page-O_Pnacgk.js","assets/money-ach-requests-page-CJRr827T.js","assets/money-payments-page-0A-S0jjr.js","assets/money-payments-settings-page-BjKN4OCY.js","assets/money-activation-BLSTFU5z.js","assets/USVerificationPage-Dl2JX3M8.js","assets/USContinueVerificationView-p4Ufnf57.js","assets/onboarding-page-SPmeFsYF.js","assets/onboarding-gPTTjK1h.js","assets/types-BxkXCVGR.js","assets/procurement-requests-BwkPoxXu.js","assets/NewRequestFormContent-CWt8c3t3.
1js","assets/procurement-requests-qSkXYmbv.js","assets/workflows-empty-state-B6_3IcU5.js","assets/payment-priority-select-afK2fIvX.js","assets/table-cells-voTxGBpn.js","assets/user-role-chip-BgfYORRt.js","assets/procurement-workflows-RtWR-BWQ.js","assets/publish-workflow-BO8tR9Lv.js","assets/vendor-emoji-Az6nqBEc.js","assets/procurement-request-details-DENjkDtv.js","assets/assignee-autocomplete-popover-BdTjhUsv.js","assets/invite-user-modal-xUITSUp3.js","assets/user-role-select-caxVRNuC.js","assets/user-autocomplete-popover-D0Hy6XUq.js","assets/procurement-wizard-BhhSL6tI.js","assets/trips-list-DvJp0G1i.js","assets/UsersAutocomplete-Bm0D0vY6.js","assets/StatusBadge-rvt8iNB2.js","assets/trip-details-gb2qSh9L.js","assets/travel-policies-CJ03MyF_.js","assets/layout-Ccb0xGPR.js","assets/layout-ligdP5nB.css","assets/release-notes-Dl1XsrZq.js","assets/master-layout-BabSnYJp.js","assets/utils-FRgZXf3H.js","assets/PasswordValidation-8SgfGMcL.js","assets/auth-layout-CvLSHMtX.js","assets/LogoContainer-eFWiojaS.js","assets/sign-in-classic-page-D94oTYNF.js","assets/auth-form-Cty1OnQp.js","assets/sign-up-entry-page-BL_hkCPN.js","assets/sign-up-email-page-VwTbg-yl.js","assets/forgot-password-page-dliRMA7c.js","assets/back-button-CxED20y9.js","assets/tfa-confirmation-page-_EQ3FID-.js","assets/set-new-password-page-DZcbmeib.js","assets/verify-email-page-hQWrg4n0.js","assets/account-locked-page-BkTFLZzB.js","assets/oauth-callback-page-CIEOd_JM.js","assets/OpenB
1ankingCallbackPage-DcGk_kh5.js","assets/document-upload-3xILT3Ac.js","assets/confirm-email-page-BI7bvBLh.js","assets/link-expired-page-BmutL6wa.js","assets/accept-invite-page-BzLSvBOc.js","assets/mobile-company-details-page-CsNtg8b1.js","assets/continue-on-web-page-DMUHD3wL.js","assets/dashboard-page-dc6ZfCox.js","assets/QRLogin-ChxaxAq5.js","assets/money-mcp-auth-B50KG-Cq.js","assets/profile-page-oE3Npd4p.js","assets/personal-details-Dbq9ivQJ.js","assets/company-details-CCktbW6J.js","assets/notifications-yFC5s-BG.js","assets/security-CJngs5Z5.js","assets/team-management-BM6SaGS5.js","assets/user-details-DV08wFUP.js","assets/members-page-DEXFiLoI.js","assets/member-details-page-C6RMiq9O.js","assets/ResolveMemberPage-okTgBucV.js","assets/integrations-page-COYUJOzt.js","assets/integration-settings-CwO_nbq-.js"])))=>i.map(i=>d[i]); 2(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`2.4.1`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`b26bdba4-6ee0-4a1f-97a4-85ef8ce041e2`,e._sentryDebugIdIdentifier=`sentry-dbid-b26bdba4-6ee0-4a1f-97a4-85ef8ce041e2`)}catch{}})();import{o as e,r as t}from"./rolldown-runtime-DErZjmJu.js";import{A as n,At as r,B as i,Bt as a,C as o,Cn as s,E as c,Ft as l,G as u,Gt as d,H as f,Ht as p,Jt as m,Kt as h,M as g,N as _,Nt as v,Ot as y,Pt as b,Q as x,S,T as ee,U as te,Ut as C,V as w,Vt as ne,W as re,Wt as ie,X as ae,Yt as oe,Z as se,_n as ce,b as le,bn as ue,et as de,h as fe,j as pe,k as me,kt as he,m as ge,p as _e,q as ve,qt as ye,rn as be,tt as xe,w as Se,x as Ce,y as we,zt as Te}from"./vendor-misc-DqVrgCHj.js";import{a as Ee,i as De,n as Oe,o as ke,r as Ae,t as je}from"./vendor-analytics-DkN1Rn0d.js";import{$ as T,$n as Me,A as Ne,Ai as Pe,B as Fe,Br as Ie,Bt as Le,C as Re,Ci as ze,Cn as Be,Ct as Ve,Di as He,Dt as Ue,E as We,Ei as Ge,F as Ke,Fr as qe,G as Je,Gn as Ye,Gr as Xe,Gt as Ze,H as Qe,I as $e,Ir as et,J as tt,K as nt,Kn as rt,Kr as it,L as at,Lr as ot,M as st,Mi as ct,Mt as lt,N as ut,Nr as dt,Nt as ft,O as pt,Oi as mt,Or as ht,P as gt,Pr as _t,Q as E,Qt as vt,R as D,S as yt,Si as bt,Sn as xt,Sr as St,T as Ct,U as wt,V as Tt,Vr as Et,Vt as Dt,W as Ot,X as kt,Xn as At,Xr as jt,Xt as Mt,Y as Nt,Yn as Pt,Yr as Ft,Z as It,_ as Lt,_t as Rt,a as zt,at as Bt,bi as Vt,c as Ht,ct as Ut,d as Wt,et as Gt,fi as Kt,fn as qt,fr as Jt,g as Yt,gi as Xt,gr as Zt,h as Qt,ht as $t,ii as en,in as tn,it as nn,ji as O,jr as rn,jt as an,k as on,ki as sn,kt as cn,l as ln,lr as un,mi as dn,mn as fn,mt as pn,ni as mn,nt as hn,oi as gn,p as _n,pi as vn,q as yn,qt as bn,rr as xn,rt as Sn,s as Cn,sn as wn,ti as Tn,tr as En,tt as Dn,un as On,ur as kn,v as An,vi as k,vt as jn,wi as A,x as Mn,xi as Nn,xt as Pn,yi as Fn,yn as In,z as Ln}from"./vendor-spendbase-ui-G49Kq-Iz.js";import{f as Rn}from"./vendor-charts-z5X2J1uQ.js";import{$ as zn,A as Bn,At as Vn,Bt as Hn,Ct as Un,E as Wn,F as Gn,H as Kn,I as qn,K as Jn,M as Yn,N as Xn,Nt as Zn,T as Qn,Tt as $n,U as er,Ut as tr,V as nr,Vt as rr,Wt as ir,X as ar,at as or,b as sr,c as cr,d as lr,en as ur,f as dr,h as fr,i as pr,in as mr,l as hr,lt as gr,m as _r,mt as vr,o as yr,p as br,pt as xr,t as Sr,tn as Cr,u as wr,v as Tr,vt as Er,w as Dr,xt as Or}from"./vendor-mui-CHwZM3EY.js";import{c as kr,d as Ar,f as jr,i as Mr,l as Nr,o as Pr,p as Fr,r as Ir,s as Lr,t as Rr,u as zr}from"./vendor-router-CFLXtB1U.js";import{i as Br,n as Vr,r as Hr,t as Ur}from"./vendor-i18n-CkfRGp2z.js";import{_ as Wr,a as Gr,b as Kr,d as qr,f as Jr,g as Yr,h as Xr,i as Zr,l as Qr,n as $r,o as ei,p as ti,r as ni,s as ri,t as ii,u as ai,v as oi,y as si}from"./vendor-forms-D7jxRuAn.js";import{i as j,n as ci,r as li,t as ui}from"./vendor-pdf-DEQ43x_E.js";import{c as di,f as fi,h as pi,i as M,l as N,m as mi,n as hi,p as P,r as gi,s as _i,t as vi,u as F}from"./vendor-tanstack-DVVlrfYU.js";import{n as yi,r as bi,t as xi}from"./vendor-rjsf-BSOIa2mD.js";import{a as Si,c as Ci,i as wi,l as Ti,n as Ei,o as Di,r as Oi,s as ki}from"./vendor-crypto-DjOFAuzF.js";import{n as Ai,r as ji,t as Mi}from"./vendor-libphonenumber-CK1xOvJP.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Ni=e(s()),I=e(ke()),L=Rn(),Pi=(0,I.createContext)({currency:null}),Fi={ENV:`production`,NODE_ENV:`production`,API_URL:`https://api.prod.spendbase.co`,CARDS_API_URL:`https://api.prod.spendbase.co`,WS_URL:`wss://live.prod.spendbase.co/connection/websocket`,G_CLIENT_ID:`196483825483-eb7b4e8hh9auojbv6ae3jliqito9f3eb.apps.googleusercontent.com`,GTM_ID:`GTM-K2ZT9C8G`,OPEN_REPLAY_ID:``,VERSION:`2.4.1`,BUILD_DATE:`2026-09-30T12:15:34.162Z`,HASH:`dc6e7975f3fbf7d9e601fe1a641a7af861753f69`,CHROME_EXTENSION_STORE_URL:`https://chromewebstore.google.com/detail/spendbase-for-chrome-saas/cfecjggfjnckaiklddkhamakopojjllc`,CHROME_EXTENSION_APP_ID:`cfecjggfjnckaiklddkhamakopojjllc`,BEAMER_PROJECT_ID:`KygIOlYk64753`,CLARITY_PROJECT_ID:`pwtfxakczw`,TRIBE_CARDS_ENABLE:`true`,DEMO:`false`,ENABLE_AI_ASSISTANT_FEATURE:`false`,ENABLE_ONBOARDING_OFFBOARDING_FEATURE:`true`,ENABLE_PASSWORD_MANAGER_FEATURE:`true`,ENABLE_GOOGlE_SHEETS_INTEGRATION_FEATURE:`true`,ENABLE_US_KYB_FEATURE:`true`,PUBLIC_POSTHOG_KEY:`phc_7U4Kt0xkp6n9qgX8JZrtjaB8Mj3f0Ja2dXU59AL2ZkV`,PUBLIC_POSTHOG_HOST:`https://eu.i.posthog.com`,SENTRY_DSN_PM:`https://9b5e73ab199b02ef952de4f65e3e95cb@o4511461972770816.ingest.us.sentry.io/4511461980766208`,SENTRY_ENV:`production`,MOBILE_APP_APP_STORE_
2LINK:`https://apps.apple.com/us/app/spendbase/id6474616305`,MOBILE_APP_GOOGLE_PLAY_LINK:`https://play.google.com/store/apps/details?id=com.spendbase.cards`,MULTICURRENCY_ELIGIBLE_TEAM_IDS:`019b024e-1fd1-7321-b5df-14cb684b3fc3,019aa179-7514-7c82-9367-eef93c84e1cf,008dad26-c437-4209-a92b-d691a4f1ebbe,ca2d6f86-6288-4f02-82b1-fb84199bbf0b,94dc5f39-5bdc-4a1f-99b3-511c6f15ed56,019bf9d3-0aa1-7007-8e98-609c6c9413a0,15dce509-7729-470d-a9fc-895b6c9e065f,019bf95e-dc93-7b24-9675-7e5b3aaba3ff,019bff35-652b-790c-b45e-a74a74a95b29,019c89b4-7bb2-7c93-8a89-70294d6eb6b7,*`,ENABLE_BILL_PAY_FEATURE:``,ENABLE_AUTOPAY_FEATURE:`false`,ENABLE_TRIPS_FEATURE:`false`,ENABLE_CLOUD_FEATURE:`false`,ENABLE_DOCUMENT_REQUESTS:`true`,PHYSICAL_CARDS_ENABLED:`true`,PHYSICAL_CARDS_TEAM_IDS:``,GBP_FASTER_PAYMENTS_DISABLED:`false`,ENABLE_CRYPTO_TOPUP_FEATURE:`true`,CRYPTO_NETWORKS:`ethereum`,API_KEYS_ENABLED:`false`,BANKING_REDIRECT_PATHS:`virtual-cards,banking-non-eu,banking-cards-for-ads,multi-currency`}.ENV||`production`;console.log(`ENV: ${Fi}`);var Ii=Fi===`development`,Li=Fi===`production`,Ri=Fi===`staging`,zi=Fi===`demo`,Bi={ENV:`production`,NODE_ENV:`production`,API_URL:`https://api.prod.spendbase.co`,CARDS_API_URL:`https://api.prod.spendbase.co`,WS_URL:`wss://live.prod.spendbase.co/connection/websocket`,G_CLIENT_ID:`196483825483-eb7b4e8hh9auojbv6ae3jliqito9f3eb.apps.googleusercontent.com`,GTM_ID:`GTM-K2ZT9C8G`,OPEN_REPLAY_ID:``,VERSION:`2.4.1`,BUILD_DATE:`2026-09-30T12:15:34.162Z`,HASH:`dc6e7975f3fbf7d9e601fe1a641a7af861753f69`,CHROME_EXTENSION_STORE_URL:`https://chromewebstore.google.com/detail/spendbase-for-chrome-saas/cfecjggfjnckaiklddkhamakopojjllc`,CHROME_EXTENSION_APP_ID:`cfecjggfjnckaiklddkhamakopojjllc`,BEAMER_PROJECT_ID:`KygIOlYk64753`,CLARITY_PROJECT_ID:`pwtfxakczw`,TRIBE_CARDS_ENABLE:`true`,DEMO:`false`,ENABLE_AI_ASSISTANT_FEATURE:`false`,ENABLE_ONBOARDING_OFFBOARDING_FEATURE:`true`,ENABLE_PASSWORD_MANAGER_FEATURE:`true`,ENABLE_GOOGlE_SHEETS_INTEGRATION_FEATURE:`true`,ENABLE_US_KYB_FEATURE:`true`,PUBLIC_POSTHOG_KEY:`phc_7U4Kt0xkp6n9qgX8JZrtjaB8Mj3f0Ja2dXU59AL2ZkV`,PUBLIC_POSTHOG_HOST:`https://eu.i.posthog.com`,SENTRY_DSN_PM:`https://9b5e73ab199b02ef952de4f65e3e95cb@o4511461972770816.ingest.us.sentry.io/4511461980766208`,SENTRY_ENV:`production`,MOBILE_APP_APP_STORE_LINK:`https://apps.apple.com/us/app/spendbase/id6474616305`,MOBILE_APP_GOOGLE_PLAY_LINK:`https://play.google.com/store/apps/details?id=com.spendbase.cards`,MULTICURRENCY_ELIGIBLE_TEAM_IDS:`019b024e-1fd1-7321-b5df-14cb684b3fc3,019aa179-7514-7c82-9367-eef93c84e1cf,008dad26-c437-4209-a92b-d691a4f1ebbe,ca2d6f86-6288-4f02-82b1-fb84199bbf0b,94dc5f39-5bdc-4a1f-99b3-511c6f15ed56,019bf9d3-0aa1-7007-8e98-609c6c9413a0,15dce509-7729-470d-a9fc-895b6c9e065f,019bf95e-dc93-7b24-9675-7e5b3aaba3ff,019bff35-652b-790c-b45e-a74a74a95b29,019c89b4-7bb2-7c93-8a89-70294d6eb6b7,*`,ENABLE_BILL_PAY_FEATURE:``,ENABLE_AUTOPAY_FEATURE:`false`,ENABLE_TRIPS_FEATURE:`false`,ENABLE_CLOUD_FEATURE:`false`,ENABLE_DOCUMENT_REQUESTS:`true`,PHYSICAL_CARDS_ENABLED:`true`,PHYSICAL_CARDS_TEAM_IDS:``,GBP_FASTER_PAYMENTS_DISABLED:`false`,ENABLE_CRYPTO_TOPUP_FEATURE:`true`,CRYPTO_NETWORKS:`ethereum`,API_KEYS_ENABLED:`false`,BANKING_REDIRECT_PATHS:`virtual-cards,banking-non-eu,banking-cards-for-ads,multi-currency`}.TRIBE_CARDS_ENABLE===`true`,R=class{static ENV=Fi;static IS_DEV=Ii;static IS_PROD=Li;static IS_STAGING=Ri;static IS_DEMO=zi;static API_URL={ENV:`production`,NODE_ENV:`production`,API_URL:`https://api.prod.spendbase.co`,CARDS_API_URL:`https://api.prod.spendbase.co`,WS_URL:`wss://live.prod.spendbase.co/connection/websocket`,G_CLIENT_ID:`196483825483-eb7b4e8hh9auojbv6ae3jliqito9f3eb.apps.googleusercontent.com`,GTM_ID:`GTM-K2ZT9C8G`,OPEN_REPLAY_ID:``,VERSION:`2.4.1`,BUILD_DATE:`2026-09-30T12:15:34.162Z`,HASH:`dc6e7975f3fbf7d9e601fe1a641a7af861753f69`,CHROME_EXTENSION_STORE_URL:`https://chromewebstore.google.com/detail/spendbase-for-chrome-saas/cfecjggfjnckaiklddkhamakopojjllc`,CHROME_EXTENSION_APP_ID:`cfecjggfjnckaiklddkhamakopojjllc`,BEAMER_PROJECT_ID:`KygIOlYk64753`,CLARITY_PROJECT_ID:`pwtfxakczw`,TRIBE_CARDS_ENABLE:`true`,DEMO:`false`,ENABLE_AI_ASSISTANT_FEATURE:`false`,ENABLE_ONBOARDING_OFFBOARDING_FEATURE:`true`,ENABLE_PASSWORD_MANAGER_FEATURE:`true`,ENABLE_GOOGlE_SHEETS_INTEGRATION_FEATURE:`true`,ENABLE_US_KYB_FEATURE:`true`,PUBLIC_POSTHOG_KEY:`phc_7U4Kt0xkp6n9qgX8JZrtjaB8Mj3f0Ja2dXU59AL2ZkV`,PUBLIC_POSTHOG_HOST:`https://eu.i.posthog.com`,SENTRY_DSN_PM:`https://9b5e73ab199b02ef952de4f65e3e95cb@o4511461972770816.ingest.us.sentry.io/4511461980766208`,SENTRY_ENV:`production`,MOBILE_APP_APP_STORE_
2LINK:`https://apps.apple.com/us/app/spendbase/id6474616305`,MOBILE_APP_GOOGLE_PLAY_LINK:`https://play.google.com/store/apps/details?id=com.spendbase.cards`,MULTICURRENCY_ELIGIBLE_TEAM_IDS:`019b024e-1fd1-7321-b5df-14cb684b3fc3,019aa179-7514-7c82-9367-eef93c84e1cf,008dad26-c437-4209-a92b-d691a4f1ebbe,ca2d6f86-6288-4f02-82b1-fb84199bbf0b,94dc5f39-5bdc-4a1f-99b3-511c6f15ed56,019bf9d3-0aa1-7007-8e98-609c6c9413a0,15dce509-7729-470d-a9fc-895b6c9e065f,019bf95e-dc93-7b24-9675-7e5b3aaba3ff,019bff35-652b-790c-b45e-a74a74a95b29,019c89b4-7bb2-7c93-8a89-70294d6eb6b7,*`,ENABLE_BILL_PAY_FEATURE:``,ENABLE_AUTOPAY_FEATURE:`false`,ENABLE_TRIPS_FEATURE:`false`,ENABLE_CLOUD_FEATURE:`false`,ENABLE_DOCUMENT_REQUESTS:`true`,PHYSICAL_CARDS_ENABLED:`true`,PHYSICAL_CARDS_TEAM_IDS:``,GBP_FASTER_PAYMENTS_DISABLED:`false`,ENABLE_CRYPTO_TOPUP_FEATURE:`true`,CRYPTO_NETWORKS:`ethereum`,API_KEYS_ENABLED:`false`,BANKING_REDIRECT_PATHS:`virtual-cards,banking-non-eu,banking-cards-for-ads,multi-currency`}.API_URL;static WS_URL={ENV:`production`,NODE_ENV:`production`,API_URL:`https://api.prod.spendbase.co`,CARDS_API_URL:`https://api.prod.spendbase.co`,WS_URL:`wss://live.prod.spendbase.co/connection/websocket`,G_CLIENT_ID:`196483825483-eb7b4e8hh9auojbv6ae3jliqito9f3eb.apps.googleusercontent.com`,GTM_ID:`GTM-K2ZT9C8G`,OPEN_REPLAY_ID:``,VERSION:`2.4.1`,BUILD_DATE:`2026-09-30T12:15:34.162Z`,HASH:`dc6e7975f3fbf7d9e601fe1a641a7af861753f69`,CHROME_EXTENSION_STORE_URL:`https://chromewebstore.google.com/detail/spendbase-for-chrome-saas/cfecjggfjnckaiklddkhamakopojjllc`,CHROME_EXTENSION_APP_ID:`cfecjggfjnckaiklddkhamakopojjllc`,BEAMER_PROJECT_ID:`KygIOlYk64753`,CLARITY_PROJECT_ID:`pwtfxakczw`,TRIBE_CARDS_ENABLE:`true`,DEMO:`false`,ENABLE_AI_ASSISTANT_FEATURE:`false`,ENABLE_ONBOARDING_OFFBOARDING_FEATURE:`true`,ENABLE_PASSWORD_MANAGER_FEATURE:`true`,ENABLE_GOOGlE_SHEETS_INTEGRATION_FEATURE:`true`,ENABLE_US_KYB_FEATURE:`true`,PUBLIC_POSTHOG_KEY:`phc_7U4Kt0xkp6n9qgX8JZrtjaB8Mj3f0Ja2dXU59AL2ZkV`,PUBLIC_POSTHOG_HOST:`https://eu.i.posthog.com`,SENTRY_DSN_PM:`https://9b5e73ab199b02ef952de4f65e3e95cb@o4511461972770816.ingest.us.sentry.io/4511461980766208`,SENTRY_ENV:`production`,MOBILE_APP_APP_STORE_LINK:`https://apps.apple.com/us/app/spendbase/id6474616305`,MOBILE_APP_GOOGLE_PLAY_LINK:`https://play.google.com/store/apps/details?id=com.spendbase.cards`,MULTICURRENCY_ELIGIBLE_TEAM_IDS:`019b024e-1fd1-7321-b5df-14cb684b3fc3,019aa179-7514-7c82-9367-eef93c84e1cf,008dad26-c437-4209-a92b-d691a4f1ebbe,ca2d6f86-6288-4f02-82b1-fb84199bbf0b,94dc5f39-5bdc-4a1f-99b3-511c6f15ed56,019bf9d3-0aa1-7007-8e98-609c6c9413a0,15dce509-7729-470d-a9fc-895b6c9e065f,019bf95e-dc93-7b24-9675-7e5b3aaba3ff,019bff35-652b-790c-b45e-a74a74a95b29,019c89b4-7bb2-7c93-8a89-70294d6eb6b7,*`,ENABLE_BILL_PAY_FEATURE:``,ENABLE_AUTOPAY_FEATURE:`false`,ENABLE_TRIPS_FEATURE:`false`,ENABLE_CLOUD_FEATURE:`false`,ENABLE_DOCUMENT_REQUESTS:`true`,PHYSICAL_CARDS_ENABLED:`true`,PHYSICAL_CARDS_TEAM_IDS:``,GBP_FASTER_PAYMENTS_DISABLED:`false`,ENABLE_CRYPTO_TOPUP_FEATURE:`true`,CRYPTO_NETWORKS:`ethereum`,API_KEYS_ENABLED:`false`,BANKING_REDIRECT_PATHS:`virtual-cards,banking-non-eu,banking-cards-for-ads,multi-currency`}.WS_URL;static CARDS_API_URL={ENV:`production`,NODE_ENV:`production`,API_URL:`https://api.prod.spendbase.co`,CARDS_API_URL:`https://api.prod.spendbase.co`,WS_URL:`wss://live.prod.spendbase.co/connection/websocket`,G_CLIENT_ID:`196483825483-eb7b4e8hh9auojbv6ae3jliqito9f3eb.apps.googleusercontent.com`,GTM_ID:`GTM-K2ZT9C8G`,OPEN_REPLAY_ID:``,VERSION:`2.4.1`,BUILD_DATE:`2026-09-30T12:15:34.162Z`,HASH:`dc6e7975f3fbf7d9e601fe1a641a7af861753f69`,CHROME_EXTENSION_STORE_URL:`https://chromewebstore.google.com/detail/spendbase-for-chrome-saas/cfecjggfjnckaiklddkhamakopojjllc`,CHROME_EXTENSION_APP_ID:`cfecjggfjnckaiklddkhamakopojjllc`,BEAMER_PROJECT_ID:`KygIOlYk64753`,CLARITY_PROJECT_ID:`pwtfxakczw`,TRIBE_CARDS_ENABLE:`true`,DEMO:`false`,ENABLE_AI_ASSISTANT_FEATURE:`false`,ENABLE_ONBOARDING_OFFBOARDING_FEATURE:`true`,ENABLE_PASSWORD_MANAGER_FEATURE:`true`,ENABLE_GOOGlE_SHEETS_INTEGRATION_FEATURE:`true`,ENABLE_US_KYB_FEATURE:`true`,PUBLIC_POSTHOG_KEY:`phc_7U4Kt0xkp6n9qgX8JZrtjaB8Mj3f0Ja2dXU59AL2ZkV`,PUBLIC_POSTHOG_HOST:`https://eu.i.posthog.com`,SENTRY_DSN_PM:`https://9b5e73ab199b02ef952de4f65e3e95cb@o4511461972770816.ingest.us.sentry.io/4511461980766208`,SENTRY_ENV:`production`,MOBILE_APP_APP_STORE_
2LINK:`https://apps.apple.com/us/app/spendbase/id6474616305`,MOBILE_APP_GOOGLE_PLAY_LINK:`https://play.google.com/store/apps/details?id=com.spendbase.cards`,MULTICURRENCY_ELIGIBLE_TEAM_IDS:`019b024e-1fd1-7321-b5df-14cb684b3fc3,019aa179-7514-7c82-9367-eef93c84e1cf,008dad26-c437-4209-a92b-d691a4f1ebbe,ca2d6f86-6288-4f02-82b1-fb84199bbf0b,94dc5f39-5bdc-4a1f-99b3-511c6f15ed56,019bf9d3-0aa1-7007-8e98-609c6c9413a0,15dce509-7729-470d-a9fc-895b6c9e065f,019bf95e-dc93-7b24-9675-7e5b3aaba3ff,019bff35-652b-790c-b45e-a74a74a95b29,019c89b4-7bb2-7c93-8a89-70294d6eb6b7,*`,ENABLE_BILL_PAY_FEATURE:``,ENABLE_AUTOPAY_FEATURE:`false`,ENABLE_TRIPS_FEATURE:`false`,ENABLE_CLOUD_FEATURE:`false`,ENABLE_DOCUMENT_REQUESTS:`true`,PHYSICAL_CARDS_ENABLED:`true`,PHYSICAL_CARDS_TEAM_IDS:``,GBP_FASTER_PAYMENTS_DISABLED:`false`,ENABLE_CRYPTO_TOPUP_FEATURE:`true`,CRYPTO_NETWORKS:`ethereum`,API_KEYS_ENABLED:`false`,BANKING_REDIRECT_PATHS:`virtual-cards,banking-non-eu,banking-cards-for-ads,multi-currency`}.CARDS_API_URL;static ENABLE_LOGGER={ENV:`production`,NODE_ENV:`production`,API_URL:`https://api.prod.spendbase.co`,CARDS_API_URL:`https://api.prod.spendbase.co`,WS_URL:`wss://live.prod.spendbase.co/connection/websocket`,G_CLIENT_ID:`196483825483-eb7b4e8hh9auojbv6ae3jliqito9f3eb.apps.googleusercontent.com`,GTM_ID:`GTM-K2ZT9C8G`,OPEN_REPLAY_ID:``,VERSION:`2.4.1`,BUILD_DATE:`2026-09-30T12:15:34.162Z`,HASH:`dc6e7975f3fbf7d9e601fe1a641a7af861753f69`,CHROME_EXTENSION_STORE_URL:`https://chromewebstore.google.com/detail/spendbase-for-chrome-saas/cfecjggfjnckaiklddkhamakopojjllc`,CHROME_EXTENSION_APP_ID:`cfecjggfjnckaiklddkhamakopojjllc`,BEAMER_PROJECT_ID:`KygIOlYk64753`,CLARITY_PROJECT_ID:`pwtfxakczw`,TRIBE_CARDS_ENABLE:`true`,DEMO:`false`,ENABLE_AI_ASSISTANT_FEATURE:`false`,ENABLE_ONBOARDING_OFFBOARDING_FEATURE:`true`,ENABLE_PASSWORD_MANAGER_FEATURE:`true`,ENABLE_GOOGlE_SHEETS_INTEGRATION_FEATURE:`true`,ENABLE_US_KYB_FEATURE:`true`,PUBLIC_POSTHOG_KEY:`phc_7U4Kt0xkp6n9qgX8JZrtjaB8Mj3f0Ja2dXU59AL2ZkV`,PUBLIC_POSTHOG_HOST:`https://eu.i.posthog.com`,SENTRY_DSN_PM:`https://9b5e73ab199b02ef952de4f65e3e95cb@o4511461972770816.ingest.us.sentry.io/4511461980766208`,SENTRY_ENV:`production`,MOBILE_APP_APP_STORE_LINK:`https://apps.apple.com/us/app/spendbase/id6474616305`,MOBILE_APP_GOOGLE_PLAY_LINK:`https://play.google.com/store/apps/details?id=com.spendbase.cards`,MULTICURRENCY_ELIGIBLE_TEAM_IDS:`019b024e-1fd1-7321-b5df-14cb684b3fc3,019aa179-7514-7c82-9367-eef93c84e1cf,008dad26-c437-4209-a92b-d691a4f1ebbe,ca2d6f86-6288-4f02-82b1-fb84199bbf0b,94dc5f39-5bdc-4a1f-99b3-511c6f15ed56,019bf9d3-0aa1-7007-8e98-609c6c9413a0,15dce509-7729-470d-a9fc-895b6c9e065f,019bf95e-dc93-7b24-9675-7e5b3aaba3ff,019bff35-652b-790c-b45e-a74a74a95b29,019c89b4-7bb2-7c93-8a89-70294d6eb6b7,*`,ENABLE_BILL_PAY_FEATURE:``,ENABLE_AUTOPAY_FEATURE:`false`,ENABLE_TRIPS_FEATURE:`false`,ENABLE_CLOUD_FEATURE:`false`,ENABLE_DOCUMENT_REQUESTS:`true`,PHYSICAL_CARDS_ENABLED:`true`,PHYSICAL_CARDS_TEAM_IDS:``,GBP_FASTER_PAYMENTS_DISABLED:`false`,ENABLE_CRYPTO_TOPUP_FEATURE:`true`,CRYPTO_NETWORKS:`ethereum`,API_KEYS_ENABLED:`false`,BANKING_REDIRECT_PATHS:`virtual-cards,banking-non-eu,banking-cards-for-ads,multi-currency`}.ENABLE_LOGGER;static BASE_PATH={ENV:`production`,NODE_ENV:`production`,API_URL:`https://api.prod.spendbase.co`,CARDS_API_URL:`https://api.prod.spendbase.co`,WS_URL:`wss://live.prod.spendbase.co/connection/websocket`,G_CLIENT_ID:`196483825483-eb7b4e8hh9auojbv6ae3jliqito9f3eb.apps.googleusercontent.com`,GTM_ID:`GTM-K2ZT9C8G`,OPEN_REPLAY_ID:``,VERSION:`2.4.1`,BUILD_DATE:`2026-09-30T12:15:34.162Z`,HASH:`dc6e7975f3fbf7d9e601fe1a641a7af861753f69`,CHROME_EXTENSION_STORE_URL:`https://chromewebstore.google.com/detail/spendbase-for-chrome-saas/cfecjggfjnckaiklddkhamakopojjllc`,CHROME_EXTENSION_APP_ID:`cfecjggfjnckaiklddkhamakopojjllc`,BEAMER_PROJECT_ID:`KygIOlYk64753`,CLARITY_PROJECT_ID:`pwtfxakczw`,TRIBE_CARDS_ENABLE:`true`,DEMO:`false`,ENABLE_AI_ASSISTANT_FEATURE:`false`,ENABLE_ONBOARDING_OFFBOARDING_FEATURE:`true`,ENABLE_PASSWORD_MANAGER_FEATURE:`true`,ENABLE_GOOGlE_SHEETS_INTEGRATION_FEATURE:`true`,ENABLE_US_KYB_FEATURE:`true`,PUBLIC_POSTHOG_KEY:`phc_7U4Kt0xkp6n9qgX8JZrtjaB8Mj3f0Ja2dXU59AL2ZkV`,PUBLIC_POSTHOG_HOST:`https://eu.i.posthog.com`,SENTRY_DSN_PM:`https://9b5e73ab199b02ef952de4f65e3e95cb@o4511461972770816.ingest.us.sentry.io/4511461980766208`,SENTRY_ENV:`production`,MOBILE_APP_APP_STORE_
2LINK:`https://apps.apple.com/us/app/spendbase/id6474616305`,MOBILE_APP_GOOGLE_PLAY_LINK:`https://play.google.com/store/apps/details?id=com.spendbase.cards`,MULTICURRENCY_ELIGIBLE_TEAM_IDS:`019b024e-1fd1-7321-b5df-14cb684b3fc3,019aa179-7514-7c82-9367-eef93c84e1cf,008dad26-c437-4209-a92b-d691a4f1ebbe,ca2d6f86-6288-4f02-82b1-fb84199bbf0b,94dc5f39-5bdc-4a1f-99b3-511c6f15ed56,019bf9d3-0aa1-7007-8e98-609c6c9413a0,15dce509-7729-470d-a9fc-895b6c9e065f,019bf95e-dc93-7b24-9675-7e5b3aaba3ff,019bff35-652b-790c-b45e-a74a74a95b29,019c89b4-7bb2-7c93-8a89-70294d6eb6b7,*`,ENABLE_BILL_PAY_FEATURE:``,ENABLE_AUTOPAY_FEATURE:`false`,ENABLE_TRIPS_FEATURE:`false`,ENABLE_CLOUD_FEATURE:`false`,ENABLE_DOCUMENT_REQUESTS:`true`,PHYSICAL_CARDS_ENABLED:`true`,PHYSICAL_CARDS_TEAM_IDS:``,GBP_FASTER_PAYMENTS_DISABLED:`false`,ENABLE_CRYPTO_TOPUP_FEATURE:`true`,CRYPTO_NETWORKS:`ethereum`,API_KEYS_ENABLED:`false`,BANKING_REDIRECT_PATHS:`virtual-cards,banking-non-eu,banking-cards-for-ads,multi-currency`}.BASE_PATH||`/`;static VERSION={ENV:`production`,NODE_ENV:`production`,API_URL:`https://api.prod.spendbase.co`,CARDS_API_URL:`https://api.prod.spendbase.co`,WS_URL:`wss://live.prod.spendbase.co/connection/websocket`,G_CLIENT_ID:`196483825483-eb7b4e8hh9auojbv6ae3jliqito9f3eb.apps.googleusercontent.com`,GTM_ID:`GTM-K2ZT9C8G`,OPEN_REPLAY_ID:``,VERSION:`2.4.1`,BUILD_DATE:`2026-09-30T12:15:34.162Z`,HASH:`dc6e7975f3fbf7d9e601fe1a641a7af861753f69`,CHROME_EXTENSION_STORE_URL:`https://chromewebstore.google.com/detail/spendbase-for-chrome-saas/cfecjggfjnckaiklddkhamakopojjllc`,CHROME_EXTENSION_APP_ID:`cfecjggfjnckaiklddkhamakopojjllc`,BEAMER_PROJECT_ID:`KygIOlYk64753`,CLARITY_PROJECT_ID:`pwtfxakczw`,TRIBE_CARDS_ENABLE:`true`,DEMO:`false`,ENABLE_AI_ASSISTANT_FEATURE:`false`,ENABLE_ONBOARDING_OFFBOARDING_FEATURE:`true`,ENABLE_PASSWORD_MANAGER_FEATURE:`true`,ENABLE_GOOGlE_SHEETS_INTEGRATION_FEATURE:`true`,ENABLE_US_KYB_FEATURE:`true`,PUBLIC_POSTHOG_KEY:`phc_7U4Kt0xkp6n9qgX8JZrtjaB8Mj3f0Ja2dXU59AL2ZkV`,PUBLIC_POSTHOG_HOST:`https://eu.i.posthog.com`,SENTRY_DSN_PM:`https://9b5e73ab199b02ef952de4f65e3e95cb@o4511461972770816.ingest.us.sentry.io/4511461980766208`,SENTRY_ENV:`production`,MOBILE_APP_APP_STORE_LINK:`https://apps.apple.com/us/app/spendbase/id6474616305`,MOBILE_APP_GOOGLE_PLAY_LINK:`https://play.google.com/store/apps/details?id=com.spendbase.cards`,MULTICURRENCY_ELIGIBLE_TEAM_IDS:`019b024e-1fd1-7321-b5df-14cb684b3fc3,019aa179-7514-7c82-9367-eef93c84e1cf,008dad26-c437-4209-a92b-d691a4f1ebbe,ca2d6f86-6288-4f02-82b1-fb84199bbf0b,94dc5f39-5bdc-4a1f-99b3-511c6f15ed56,019bf9d3-0aa1-7007-8e98-609c6c9413a0,15dce509-7729-470d-a9fc-895b6c9e065f,019bf95e-dc93-7b24-9675-7e5b3aaba3ff,019bff35-652b-790c-b45e-a74a74a95b29,019c89b4-7bb2-7c93-8a89-70294d6eb6b7,*`,ENABLE_BILL_PAY_FEATURE:``,ENABLE_AUTOPAY_FEATURE:`false`,ENABLE_TRIPS_FEATURE:`false`,ENABLE_CLOUD_FEATURE:`false`,ENABLE_DOCUMENT_REQUESTS:`true`,PHYSICAL_CARDS_ENABLED:`true`,PHYSICAL_CARDS_TEAM_IDS:``,GBP_FASTER_PAYMENTS_DISABLED:`false`,ENABLE_CRYPTO_TOPUP_FEATURE:`true`,CRYPTO_NETWORKS:`ethereum`,API_KEYS_ENABLED:`false`,BANKING_REDIRECT_PATHS:`virtual-cards,banking-non-eu,banking-cards-for-ads,multi-currency`}.VERSION;static HASH={ENV:`production`,NODE_ENV:`production`,API_URL:`https://api.prod.spendbase.co`,CARDS_API_URL:`https://api.prod.spendbase.co`,WS_URL:`wss://live.prod.spendbase.co/connection/websocket`,G_CLIENT_ID:`196483825483-eb7b4e8hh9auojbv6ae3jliqito9f3eb.apps.googleusercontent.com`,GTM_ID:`GTM-K2ZT9C8G`,OPEN_REPLAY_ID:``,VERSION:`2.4.1`,BUILD_DATE:`2026-09-30T12:15:34.162Z`,HASH:`dc6e7975f3fbf7d9e601fe1a641a7af861753f69`,CHROME_EXTENSION_STORE_URL:`https://chromewebstore.google.com/detail/spendbase-for-chrome-saas/cfecjggfjnckaiklddkhamakopojjllc`,CHROME_EXTENSION_APP_ID:`cfecjggfjnckaiklddkhamakopojjllc`,BEAMER_PROJECT_ID:`KygIOlYk64753`,CLARITY_PROJECT_ID:`pwtfxakczw`,TRIBE_CARDS_ENABLE:`true`,DEMO:`false`,ENABLE_AI_ASSISTANT_FEATURE:`false`,ENABLE_ONBOARDING_OFFBOARDING_FEATURE:`true`,ENABLE_PASSWORD_MANAGER_FEATURE:`true`,ENABLE_GOOGlE_SHEETS_INTEGRATION_FEATURE:`true`,ENABLE_US_KYB_FEATURE:`true`,PUBLIC_POSTHOG_KEY:`phc_7U4Kt0xkp6n9qgX8JZrtjaB8Mj3f0Ja2dXU59AL2ZkV`,PUBLIC_POSTHOG_HOST:`https://eu.i.posthog.com`,SENTRY_DSN_PM:`https://9b5e73ab199b02ef952de4f65e3e95cb@o4511461972770816.ingest.us.sentry.io/4511461980766208`,SENTRY_ENV:`production`,MOBILE_APP_APP_STORE_
2LINK:`https://apps.apple.com/us/app/spendbase/id6474616305`,MOBILE_APP_GOOGLE_PLAY_LINK:`https://play.google.com/store/apps/details?id=com.spendbase.cards`,MULTICURRENCY_ELIGIBLE_TEAM_IDS:`019b024e-1fd1-7321-b5df-14cb684b3fc3,019aa179-7514-7c82-9367-eef93c84e1cf,008dad26-c437-4209-a92b-d691a4f1ebbe,ca2d6f86-6288-4f02-82b1-fb84199bbf0b,94dc5f39-5bdc-4a1f-99b3-511c6f15ed56,019bf9d3-0aa1-7007-8e98-609c6c9413a0,15dce509-7729-470d-a9fc-895b6c9e065f,019bf95e-dc93-7b24-9675-7e5b3aaba3ff,019bff35-652b-790c-b45e-a74a74a95b29,019c89b4-7bb2-7c93-8a89-70294d6eb6b7,*`,ENABLE_BILL_PAY_FEATURE:``,ENABLE_AUTOPAY_FEATURE:`false`,ENABLE_TRIPS_FEATURE:`false`,ENABLE_CLOUD_FEATURE:`false`,ENABLE_DOCUMENT_REQUESTS:`true`,PHYSICAL_CARDS_ENABLED:`true`,PHYSICAL_CARDS_TEAM_IDS:``,GBP_FASTER_PAYMENTS_DISABLED:`false`,ENABLE_CRYPTO_TOPUP_FEATURE:`true`,CRYPTO_NETWORKS:`ethereum`,API_KEYS_ENABLED:`false`,BANKING_REDIRECT_PATHS:`virtual-cards,banking-non-eu,banking-cards-for-ads,multi-currency`}.HASH;static G_CLIENT_ID={ENV:`production`,NODE_ENV:`production`,API_URL:`https://api.prod.spendbase.co`,CARDS_API_URL:`https://api.prod.spendbase.co`,WS_URL:`wss://live.prod.spendbase.co/connection/websocket`,G_CLIENT_ID:`196483825483-eb7b4e8hh9auojbv6ae3jliqito9f3eb.apps.googleusercontent.com`,GTM_ID:`GTM-K2ZT9C8G`,OPEN_REPLAY_ID:``,VERSION:`2.4.1`,BUILD_DATE:`2026-09-30T12:15:34.162Z`,HASH:`dc6e7975f3fbf7d9e601fe1a641a7af861753f69`,CHROME_EXTENSION_STORE_URL:`https://chromewebstore.google.com/detail/spendbase-for-chrome-saas/cfecjggfjnckaiklddkhamakopojjllc`,CHROME_EXTENSION_APP_ID:`cfecjggfjnckaiklddkhamakopojjllc`,BEAMER_PROJECT_ID:`KygIOlYk64753`,CLARITY_PROJECT_ID:`pwtfxakczw`,TRIBE_CARDS_ENABLE:`true`,DEMO:`false`,ENABLE_AI_ASSISTANT_FEATURE:`false`,ENABLE_ONBOARDING_OFFBOARDING_FEATURE:`true`,ENABLE_PASSWORD_MANAGER_FEATURE:`true`,ENABLE_GOOGlE_SHEETS_INTEGRATION_FEATURE:`true`,ENABLE_US_KYB_FEATURE:`true`,PUBLIC_POSTHOG_KEY:`phc_7U4Kt0xkp6n9qgX8JZrtjaB8Mj3f0Ja2dXU59AL2ZkV`,PUBLIC_POSTHOG_HOST:`https://eu.i.posthog.com`,SENTRY_DSN_PM:`https://9b5e73ab199b02ef952de4f65e3e95cb@o4511461972770816.ingest.us.sentry.io/4511461980766208`,SENTRY_ENV:`production`,MOBILE_APP_APP_STORE_LINK:`https://apps.apple.com/us/app/spendbase/id6474616305`,MOBILE_APP_GOOGLE_PLAY_LINK:`https://play.google.com/store/apps/details?id=com.spendbase.cards`,MULTICURRENCY_ELIGIBLE_TEAM_IDS:`019b024e-1fd1-7321-b5df-14cb684b3fc3,019aa179-7514-7c82-9367-eef93c84e1cf,008dad26-c437-4209-a92b-d691a4f1ebbe,ca2d6f86-6288-4f02-82b1-fb84199bbf0b,94dc5f39-5bdc-4a1f-99b3-511c6f15ed56,019bf9d3-0aa1-7007-8e98-609c6c9413a0,15dce509-7729-470d-a9fc-895b6c9e065f,019bf95e-dc93-7b24-9675-7e5b3aaba3ff,019bff35-652b-790c-b45e-a74a74a95b29,019c89b4-7bb2-7c93-8a89-70294d6eb6b7,*`,ENABLE_BILL_PAY_FEATURE:``,ENABLE_AUTOPAY_FEATURE:`false`,ENABLE_TRIPS_FEATURE:`false`,ENABLE_CLOUD_FEATURE:`false`,ENABLE_DOCUMENT_REQUESTS:`true`,PHYSICAL_CARDS_ENABLED:`true`,PHYSICAL_CARDS_TEAM_IDS:``,GBP_FASTER_PAYMENTS_DISABLED:`false`,ENABLE_CRYPTO_TOPUP_FEATURE:`true`,CRYPTO_NETWORKS:`ethereum`,API_KEYS_ENABLED:`false`,BANKING_REDIRECT_PATHS:`virtual-cards,banking-non-eu,banking-cards-for-ads,multi-currency`}.G_CLIENT_ID;static GTM_ID={ENV:`production`,NODE_ENV:`production`,API_URL:`https://api.prod.spendbase.co`,CARDS_API_URL:`https://api.prod.spendbase.co`,WS_URL:`wss://live.prod.spendbase.co/connection/websocket`,G_CLIENT_ID:`196483825483-eb7b4e8hh9auojbv6ae3jliqito9f3eb.apps.googleusercontent.com`,GTM_ID:`GTM-K2ZT9C8G`,OPEN_REPLAY_ID:``,VERSION:`2.4.1`,BUILD_DATE:`2026-09-30T12:15:34.162Z`,HASH:`dc6e7975f3fbf7d9e601fe1a641a7af861753f69`,CHROME_EXTENSION_STORE_URL:`https://chromewebstore.google.com/detail/spendbase-for-chrome-saas/cfecjggfjnckaiklddkhamakopojjllc`,CHROME_EXTENSION_APP_ID:`cfecjggfjnckaiklddkhamakopojjllc`,BEAMER_PROJECT_ID:`KygIOlYk64753`,CLARITY_PROJECT_ID:`pwtfxakczw`,TRIBE_CARDS_ENABLE:`true`,DEMO:`false`,ENABLE_AI_ASSISTANT_FEATURE:`false`,ENABLE_ONBOARDING_OFFBOARDING_FEATURE:`true`,ENABLE_PASSWORD_MANAGER_FEATURE:`true`,ENABLE_GOOGlE_SHEETS_INTEGRATION_FEATURE:`true`,ENABLE_US_KYB_FEATURE:`true`,PUBLIC_POSTHOG_KEY:`phc_7U4Kt0xkp6n9qgX8JZrtjaB8Mj3f0Ja2dXU59AL2ZkV`,PUBLIC_POSTHOG_HOST:`https://eu.i.posthog.com`,SENTRY_DSN_PM:`https://9b5e73ab199b02ef952de4f65e3e95cb@o4511461972770816.ingest.us.sentry.io/4511461980766208`,SENTRY_ENV:`production`,MOBILE_APP_APP_STORE_
2LINK:`https://apps.apple.com/us/app/spendbase/id6474616305`,MOBILE_APP_GOOGLE_PLAY_LINK:`https://play.google.com/store/apps/details?id=com.spendbase.cards`,MULTICURRENCY_ELIGIBLE_TEAM_IDS:`019b024e-1fd1-7321-b5df-14cb684b3fc3,019aa179-7514-7c82-9367-eef93c84e1cf,008dad26-c437-4209-a92b-d691a4f1ebbe,ca2d6f86-6288-4f02-82b1-fb84199bbf0b,94dc5f39-5bdc-4a1f-99b3-511c6f15ed56,019bf9d3-0aa1-7007-8e98-609c6c9413a0,15dce509-7729-470d-a9fc-895b6c9e065f,019bf95e-dc93-7b24-9675-7e5b3aaba3ff,019bff35-652b-790c-b45e-a74a74a95b29,019c89b4-7bb2-7c93-8a89-70294d6eb6b7,*`,ENABLE_BILL_PAY_FEATURE:``,ENABLE_AUTOPAY_FEATURE:`false`,ENABLE_TRIPS_FEATURE:`false`,ENABLE_CLOUD_FEATURE:`false`,ENABLE_DOCUMENT_REQUESTS:`true`,PHYSICAL_CARDS_ENABLED:`true`,PHYSICAL_CARDS_TEAM_IDS:``,GBP_FASTER_PAYMENTS_DISABLED:`false`,ENABLE_CRYPTO_TOPUP_FEATURE:`true`,CRYPTO_NETWORKS:`ethereum`,API_KEYS_ENABLED:`false`,BANKING_REDIRECT_PATHS:`virtual-cards,banking-non-eu,banking-cards-for-ads,multi-currency`}.GTM_ID;static OPEN_REPLAY_ID={ENV:`production`,NODE_ENV:`production`,API_URL:`https://api.prod.spendbase.co`,CARDS_API_URL:`https://api.prod.spendbase.co`,WS_URL:`wss://live.prod.spendbase.co/connection/websocket`,G_CLIENT_ID:`196483825483-eb7b4e8hh9auojbv6ae3jliqito9f3eb.apps.googleusercontent.com`,GTM_ID:`GTM-K2ZT9C8G`,OPEN_REPLAY_ID:``,VERSION:`2.4.1`,BUILD_DATE:`2026-09-30T12:15:34.162Z`,HASH:`dc6e7975f3fbf7d9e601fe1a641a7af861753f69`,CHROME_EXTENSION_STORE_URL:`https://chromewebstore.google.com/detail/spendbase-for-chrome-saas/cfecjggfjnckaiklddkhamakopojjllc`,CHROME_EXTENSION_APP_ID:`cfecjggfjnckaiklddkhamakopojjllc`,BEAMER_PROJECT_ID:`KygIOlYk64753`,CLARITY_PROJECT_ID:`pwtfxakczw`,TRIBE_CARDS_ENABLE:`true`,DEMO:`false`,ENABLE_AI_ASSISTANT_FEATURE:`false`,ENABLE_ONBOARDING_OFFBOARDING_FEATURE:`true`,ENABLE_PASSWORD_MANAGER_FEATURE:`true`,ENABLE_GOOGlE_SHEETS_INTEGRATION_FEATURE:`true`,ENABLE_US_KYB_FEATURE:`true`,PUBLIC_POSTHOG_KEY:`phc_7U4Kt0xkp6n9qgX8JZrtjaB8Mj3f0Ja2dXU59AL2ZkV`,PUBLIC_POSTHOG_HOST:`https://eu.i.posthog.com`,SENTRY_DSN_PM:`https://9b5e73ab199b02ef952de4f65e3e95cb@o4511461972770816.ingest.us.sentry.io/4511461980766208`,SENTRY_ENV:`production`,MOBILE_APP_APP_STORE_LINK:`https://apps.apple.com/us/app/spendbase/id6474616305`,MOBILE_APP_GOOGLE_PLAY_LINK:`https://play.google.com/store/apps/details?id=com.spendbase.cards`,MULTICURRENCY_ELIGIBLE_TEAM_IDS:`019b024e-1fd1-7321-b5df-14cb684b3fc3,019aa179-7514-7c82-9367-eef93c84e1cf,008dad26-c437-4209-a92b-d691a4f1ebbe,ca2d6f86-6288-4f02-82b1-fb84199bbf0b,94dc5f39-5bdc-4a1f-99b3-511c6f15ed56,019bf9d3-0aa1-7007-8e98-609c6c9413a0,15dce509-7729-470d-a9fc-895b6c9e065f,019bf95e-dc93-7b24-9675-7e5b3aaba3ff,019bff35-652b-790c-b45e-a74a74a95b29,019c89b4-7bb2-7c93-8a89-70294d6eb6b7,*`,ENABLE_BILL_PAY_FEATURE:``,ENABLE_AUTOPAY_FEATURE:`false`,ENABLE_TRIPS_FEATURE:`false`,ENABLE_CLOUD_FEATURE:`false`,ENABLE_DOCUMENT_REQUESTS:`true`,PHYSICAL_CARDS_ENABLED:`true`,PHYSICAL_CARDS_TEAM_IDS:``,GBP_FASTER_PAYMENTS_DISABLED:`false`,ENABLE_CRYPTO_TOPUP_FEATURE:`true`,CRYPTO_NETWORKS:`ethereum`,API_KEYS_ENABLED:`false`,BANKING_REDIRECT_PATHS:`virtual-cards,banking-non-eu,banking-cards-for-ads,multi-currency`}.OPEN_REPLAY_ID;static TRIBE_CARDS_ENABLE=Bi;static BEAMER_PROJECT_ID={ENV:`production`,NODE_ENV:`production`,API_URL:`https://api.prod.spendbase.co`,CARDS_API_URL:`https://api.prod.spendbase.co`,WS_URL:`wss://live.prod.spendbase.co/connection/websocket`,G_CLIENT_ID:`196483825483-eb7b4e8hh9auojbv6ae3jliqito9f3eb.apps.googleusercontent.com`,GTM_ID:`GTM-K2ZT9C8G`,OPEN_REPLAY_ID:``,VERSION:`2.4.1`,BUILD_DATE:`2026-09-30T12:15:34.162Z`,HASH:`dc6e7975f3fbf7d9e601fe1a641a7af861753f69`,CHROME_EXTENSION_STORE_URL:`https://chromewebstore.google.com/detail/spendbase-for-chrome-saas/cfecjggfjnckaiklddkhamakopojjllc`,CHROME_EXTENSION_APP_ID:`cfecjggfjnckaiklddkhamakopojjllc`,BEAMER_PROJECT_ID:`KygIOlYk64753`,CLARITY_PROJECT_ID:`pwtfxakczw`,TRIBE_CARDS_ENABLE:`true`,DEMO:`false`,ENABLE_AI_ASSISTANT_FEATURE:`false`,ENABLE_ONBOARDING_OFFBOARDING_FEATURE:`true`,ENABLE_PASSWORD_MANAGER_FEATURE:`true`,ENABLE_GOOGlE_SHEETS_INTEGRATION_FEATURE:`true`,ENABLE_US_KYB_FEATURE:`true`,PUBLIC_POSTHOG_KEY:`phc_7U4Kt0xkp6n9qgX8JZrtjaB8Mj3f0Ja2dXU59AL2ZkV`,PUBLIC_POSTHOG_HOST:`https://eu.i.posthog.com`,SENTRY_DSN_PM:`https://9b5e73ab199b02ef952de4f65e3e95cb@o4511461972770816.ingest.us.sentry.io/4511461980766208`,SENTRY_ENV:`production`,MOBILE_APP_APP_STORE_
2LINK:`https://apps.apple.com/us/app/spendbase/id6474616305`,MOBILE_APP_GOOGLE_PLAY_LINK:`https://play.google.com/store/apps/details?id=com.spendbase.cards`,MULTICURRENCY_ELIGIBLE_TEAM_IDS:`019b024e-1fd1-7321-b5df-14cb684b3fc3,019aa179-7514-7c82-9367-eef93c84e1cf,008dad26-c437-4209-a92b-d691a4f1ebbe,ca2d6f86-6288-4f02-82b1-fb84199bbf0b,94dc5f39-5bdc-4a1f-99b3-511c6f15ed56,019bf9d3-0aa1-7007-8e98-609c6c9413a0,15dce509-7729-470d-a9fc-895b6c9e065f,019bf95e-dc93-7b24-9675-7e5b3aaba3ff,019bff35-652b-790c-b45e-a74a74a95b29,019c89b4-7bb2-7c93-8a89-70294d6eb6b7,*`,ENABLE_BILL_PAY_FEATURE:``,ENABLE_AUTOPAY_FEATURE:`false`,ENABLE_TRIPS_FEATURE:`false`,ENABLE_CLOUD_FEATURE:`false`,ENABLE_DOCUMENT_REQUESTS:`true`,PHYSICAL_CARDS_ENABLED:`true`,PHYSICAL_CARDS_TEAM_IDS:``,GBP_FASTER_PAYMENTS_DISABLED:`false`,ENABLE_CRYPTO_TOPUP_FEATURE:`true`,CRYPTO_NETWORKS:`ethereum`,API_KEYS_ENABLED:`false`,BANKING_REDIRECT_PATHS:`virtual-cards,banking-non-eu,banking-cards-for-ads,multi-currency`}.BEAMER_PROJECT_ID;static DEMO={ENV:`production`,NODE_ENV:`production`,API_URL:`https://api.prod.spendbase.co`,CARDS_API_URL:`https://api.prod.spendbase.co`,WS_URL:`wss://live.prod.spendbase.co/connection/websocket`,G_CLIENT_ID:`196483825483-eb7b4e8hh9auojbv6ae3jliqito9f3eb.apps.googleusercontent.com`,GTM_ID:`GTM-K2ZT9C8G`,OPEN_REPLAY_ID:``,VERSION:`2.4.1`,BUILD_DATE:`2026-09-30T12:15:34.162Z`,HASH:`dc6e7975f3fbf7d9e601fe1a641a7af861753f69`,CHROME_EXTENSION_STORE_URL:`https://chromewebstore.google.com/detail/spendbase-for-chrome-saas/cfecjggfjnckaiklddkhamakopojjllc`,CHROME_EXTENSION_APP_ID:`cfecjggfjnckaiklddkhamakopojjllc`,BEAMER_PROJECT_ID:`KygIOlYk64753`,CLARITY_PROJECT_ID:`pwtfxakczw`,TRIBE_CARDS_ENABLE:`true`,DEMO:`false`,ENABLE_AI_ASSISTANT_FEATURE:`false`,ENABLE_ONBOARDING_OFFBOARDING_FEATURE:`true`,ENABLE_PASSWORD_MANAGER_FEATURE:`true`,ENABLE_GOOGlE_SHEETS_INTEGRATION_FEATURE:`true`,ENABLE_US_KYB_FEATURE:`true`,PUBLIC_POSTHOG_KEY:`phc_7U4Kt0xkp6n9qgX8JZrtjaB8Mj3f0Ja2dXU59AL2ZkV`,PUBLIC_POSTHOG_HOST:`https://eu.i.posthog.com`,SENTRY_DSN_PM:`https://9b5e73ab199b02ef952de4f65e3e95cb@o4511461972770816.ingest.us.sentry.io/4511461980766208`,SENTRY_ENV:`production`,MOBILE_APP_APP_STORE_LINK:`https://apps.apple.com/us/app/spendbase/id6474616305`,MOBILE_APP_GOOGLE_PLAY_LINK:`https://play.google.com/store/apps/details?id=com.spendbase.cards`,MULTICURRENCY_ELIGIBLE_TEAM_IDS:`019b024e-1fd1-7321-b5df-14cb684b3fc3,019aa179-7514-7c82-9367-eef93c84e1cf,008dad26-c437-4209-a92b-d691a4f1ebbe,ca2d6f86-6288-4f02-82b1-fb84199bbf0b,94dc5f39-5bdc-4a1f-99b3-511c6f15ed56,019bf9d3-0aa1-7007-8e98-609c6c9413a0,15dce509-7729-470d-a9fc-895b6c9e065f,019bf95e-dc93-7b24-9675-7e5b3aaba3ff,019bff35-652b-790c-b45e-a74a74a95b29,019c89b4-7bb2-7c93-8a89-70294d6eb6b7,*`,ENABLE_BILL_PAY_FEATURE:``,ENABLE_AUTOPAY_FEATURE:`false`,ENABLE_TRIPS_FEATURE:`false`,ENABLE_CLOUD_FEATURE:`false`,ENABLE_DOCUMENT_REQUESTS:`true`,PHYSICAL_CARDS_ENABLED:`true`,PHYSICAL_CARDS_TEAM_IDS:``,GBP_FASTER_PAYMENTS_DISABLED:`false`,ENABLE_CRYPTO_TOPUP_FEATURE:`true`,CRYPTO_NETWORKS:`ethereum`,API_KEYS_ENABLED:`false`,BANKING_REDIRECT_PATHS:`virtual-cards,banking-non-eu,banking-cards-for-ads,multi-currency`}.DEMO;static CLARITY_PROJECT_ID={ENV:`production`,NODE_ENV:`production`,API_URL:`https://api.prod.spendbase.co`,CARDS_API_URL:`https://api.prod.spendbase.co`,WS_URL:`wss://live.prod.spendbase.co/connection/websocket`,G_CLIENT_ID:`196483825483-eb7b4e8hh9auojbv6ae3jliqito9f3eb.apps.googleusercontent.com`,GTM_ID:`GTM-K2ZT9C8G`,OPEN_REPLAY_ID:``,VERSION:`2.4.1`,BUILD_DATE:`2026-09-30T12:15:34.162Z`,HASH:`dc6e7975f3fbf7d9e601fe1a641a7af861753f69`,CHROME_EXTENSION_STORE_URL:`https://chromewebstore.google.com/detail/spendbase-for-chrome-saas/cfecjggfjnckaiklddkhamakopojjllc`,CHROME_EXTENSION_APP_ID:`cfecjggfjnckaiklddkhamakopojjllc`,BEAMER_PROJECT_ID:`KygIOlYk64753`,CLARITY_PROJECT_ID:`pwtfxakczw`,TRIBE_CARDS_ENABLE:`true`,DEMO:`false`,ENABLE_AI_ASSISTANT_FEATURE:`false`,ENABLE_ONBOARDING_OFFBOARDING_FEATURE:`true`,ENABLE_PASSWORD_MANAGER_FEATURE:`true`,ENABLE_GOOGlE_SHEETS_INTEGRATION_FEATURE:`true`,ENABLE_US_KYB_FEATURE:`true`,PUBLIC_POSTHOG_KEY:`phc_7U4Kt0xkp6n9qgX8JZrtjaB8Mj3f0Ja2dXU59AL2ZkV`,PUBLIC_POSTHOG_HOST:`https://eu.i.posthog.com`,SENTRY_DSN_PM:`https://9b5e73ab199b02ef952de4f65e3e95cb@o4511461972770816.ingest.us.sentry.io/4511461980766208`,SENTRY_ENV:`production`,MOBILE_APP_APP_STORE_
2LINK:`https://apps.apple.com/us/app/spendbase/id6474616305`,MOBILE_APP_GOOGLE_PLAY_LINK:`https://play.google.com/store/apps/details?id=com.spendbase.cards`,MULTICURRENCY_ELIGIBLE_TEAM_IDS:`019b024e-1fd1-7321-b5df-14cb684b3fc3,019aa179-7514-7c82-9367-eef93c84e1cf,008dad26-c437-4209-a92b-d691a4f1ebbe,ca2d6f86-6288-4f02-82b1-fb84199bbf0b,94dc5f39-5bdc-4a1f-99b3-511c6f15ed56,019bf9d3-0aa1-7007-8e98-609c6c9413a0,15dce509-7729-470d-a9fc-895b6c9e065f,019bf95e-dc93-7b24-9675-7e5b3aaba3ff,019bff35-652b-790c-b45e-a74a74a95b29,019c89b4-7bb2-7c93-8a89-70294d6eb6b7,*`,ENABLE_BILL_PAY_FEATURE:``,ENABLE_AUTOPAY_FEATURE:`false`,ENABLE_TRIPS_FEATURE:`false`,ENABLE_CLOUD_FEATURE:`false`,ENABLE_DOCUMENT_REQUESTS:`true`,PHYSICAL_CARDS_ENABLED:`true`,PHYSICAL_CARDS_TEAM_IDS:``,GBP_FASTER_PAYMENTS_DISABLED:`false`,ENABLE_CRYPTO_TOPUP_FEATURE:`true`,CRYPTO_NETWORKS:`ethereum`,API_KEYS_ENABLED:`false`,BANKING_REDIRECT_PATHS:`virtual-cards,banking-non-eu,banking-cards-for-ads,multi-currency`}.CLARITY_PROJECT_ID;static ENABLE_ONBOARDING_OFFBOARDING_FEATURE={ENV:`production`,NODE_ENV:`production`,API_URL:`https://api.prod.spendbase.co`,CARDS_API_URL:`https://api.prod.spendbase.co`,WS_URL:`wss://live.prod.spendbase.co/connection/websocket`,G_CLIENT_ID:`196483825483-eb7b4e8hh9auojbv6ae3jliqito9f3eb.apps.googleusercontent.com`,GTM_ID:`GTM-K2ZT9C8G`,OPEN_REPLAY_ID:``,VERSION:`2.4.1`,BUILD_DATE:`2026-09-30T12:15:34.162Z`,HASH:`dc6e7975f3fbf7d9e601fe1a641a7af861753f69`,CHROME_EXTENSION_STORE_URL:`https://chromewebstore.google.com/detail/spendbase-for-chrome-saas/cfecjggfjnckaiklddkhamakopojjllc`,CHROME_EXTENSION_APP_ID:`cfecjggfjnckaiklddkhamakopojjllc`,BEAMER_PROJECT_ID:`KygIOlYk64753`,CLARITY_PROJECT_ID:`pwtfxakczw`,TRIBE_CARDS_ENABLE:`true`,DEMO:`false`,ENABLE_AI_ASSISTANT_FEATURE:`false`,ENABLE_ONBOARDING_OFFBOARDING_FEATURE:`true`,ENABLE_PASSWORD_MANAGER_FEATURE:`true`,ENABLE_GOOGlE_SHEETS_INTEGRATION_FEATURE:`true`,ENABLE_US_KYB_FEATURE:`true`,PUBLIC_POSTHOG_KEY:`phc_7U4Kt0xkp6n9qgX8JZrtjaB8Mj3f0Ja2dXU59AL2ZkV`,PUBLIC_POSTHOG_HOST:`https://eu.i.posthog.com`,SENTRY_DSN_PM:`https://9b5e73ab199b02ef952de4f65e3e95cb@o4511461972770816.ingest.us.sentry.io/4511461980766208`,SENTRY_ENV:`production`,MOBILE_APP_APP_STORE_LINK:`https://apps.apple.com/us/app/spendbase/id6474616305`,MOBILE_APP_GOOGLE_PLAY_LINK:`https://play.google.com/store/apps/details?id=com.spendbase.cards`,MULTICURRENCY_ELIGIBLE_TEAM_IDS:`019b024e-1fd1-7321-b5df-14cb684b3fc3,019aa179-7514-7c82-9367-eef93c84e1cf,008dad26-c437-4209-a92b-d691a4f1ebbe,ca2d6f86-6288-4f02-82b1-fb84199bbf0b,94dc5f39-5bdc-4a1f-99b3-511c6f15ed56,019bf9d3-0aa1-7007-8e98-609c6c9413a0,15dce509-7729-470d-a9fc-895b6c9e065f,019bf95e-dc93-7b24-9675-7e5b3aaba3ff,019bff35-652b-790c-b45e-a74a74a95b29,019c89b4-7bb2-7c93-8a89-70294d6eb6b7,*`,ENABLE_BILL_PAY_FEATURE:``,ENABLE_AUTOPAY_FEATURE:`false`,ENABLE_TRIPS_FEATURE:`false`,ENABLE_CLOUD_FEATURE:`false`,ENABLE_DOCUMENT_REQUESTS:`true`,PHYSICAL_CARDS_ENABLED:`true`,PHYSICAL_CARDS_TEAM_IDS:``,GBP_FASTER_PAYMENTS_DISABLED:`false`,ENABLE_CRYPTO_TOPUP_FEATURE:`true`,CRYPTO_NETWORKS:`ethereum`,API_KEYS_ENABLED:`false`,BANKING_REDIRECT_PATHS:`virtual-cards,banking-non-eu,banking-cards-for-ads,multi-currency`}.ENABLE_ONBOARDING_OFFBOARDING_FEATURE===`true`;static ENABLE_PASSWORD_MANAGER_FEATURE={ENV:`production`,NODE_ENV:`production`,API_URL:`https://api.prod.spendbase.co`,CARDS_API_URL:`https://api.prod.spendbase.co`,WS_URL:`wss://live.prod.spendbase.co/connection/websocket`,G_CLIENT_ID:`196483825483-eb7b4e8hh9auojbv6ae3jliqito9f3eb.apps.googleusercontent.com`,GTM_ID:`GTM-K2ZT9C8G`,OPEN_REPLAY_ID:``,VERSION:`2.4.1`,BUILD_DATE:`2026-09-30T12:15:34.162Z`,HASH:`dc6e7975f3fbf7d9e601fe1a641a7af861753f69`,CHROME_EXTENSION_STORE_URL:`https://chromewebstore.google.com/detail/spendbase-for-chrome-saas/cfecjggfjnckaiklddkhamakopojjllc`,CHROME_EXTENSION_APP_ID:`cfecjggfjnckaiklddkhamakopojjllc`,BEAMER_PROJECT_ID:`KygIOlYk64753`,CLARITY_PROJECT_ID:`pwtfxakczw`,TRIBE_CARDS_ENABLE:`true`,DEMO:`false`,ENABLE_AI_ASSISTANT_FEATURE:`false`,ENABLE_ONBOARDING_OFFBOARDING_FEATURE:`true`,ENABLE_PASSWORD_MANAGER_FEATURE:`true`,ENABLE_GOOGlE_SHEETS_INTEGRATION_FEATURE:`true`,ENABLE_US_KYB_FEATURE:`true`,PUBLIC_POSTHOG_KEY:`phc_7U4Kt0xkp6n9qgX8JZrtjaB8Mj3f0Ja2dXU59AL2ZkV`,PUBLIC_POSTHOG_HOST:`https://eu.i.posthog.com`,SENTRY_DSN_PM:`https://9b5e73ab199b02ef952de4f65e3e95cb@o4511461972770816.ingest.us.sentry.io/4511461980766208`,SENTRY_ENV:`production`,MOBILE_APP_APP_STORE_
2LINK:`https://apps.apple.com/us/app/spendbase/id6474616305`,MOBILE_APP_GOOGLE_PLAY_LINK:`https://play.google.com/store/apps/details?id=com.spendbase.cards`,MULTICURRENCY_ELIGIBLE_TEAM_IDS:`019b024e-1fd1-7321-b5df-14cb684b3fc3,019aa179-7514-7c82-9367-eef93c84e1cf,008dad26-c437-4209-a92b-d691a4f1ebbe,ca2d6f86-6288-4f02-82b1-fb84199bbf0b,94dc5f39-5bdc-4a1f-99b3-511c6f15ed56,019bf9d3-0aa1-7007-8e98-609c6c9413a0,15dce509-7729-470d-a9fc-895b6c9e065f,019bf95e-dc93-7b24-9675-7e5b3aaba3ff,019bff35-652b-790c-b45e-a74a74a95b29,019c89b4-7bb2-7c93-8a89-70294d6eb6b7,*`,ENABLE_BILL_PAY_FEATURE:``,ENABLE_AUTOPAY_FEATURE:`false`,ENABLE_TRIPS_FEATURE:`false`,ENABLE_CLOUD_FEATURE:`false`,ENABLE_DOCUMENT_REQUESTS:`true`,PHYSICAL_CARDS_ENABLED:`true`,PHYSICAL_CARDS_TEAM_IDS:``,GBP_FASTER_PAYMENTS_DISABLED:`false`,ENABLE_CRYPTO_TOPUP_FEATURE:`true`,CRYPTO_NETWORKS:`ethereum`,API_KEYS_ENABLED:`false`,BANKING_REDIRECT_PATHS:`virtual-cards,banking-non-eu,banking-cards-for-ads,multi-currency`}.ENABLE_PASSWORD_MANAGER_FEATURE===`true`;static ENABLE_GOOGlE_SHEETS_INTEGRATION_FEATURE={ENV:`production`,NODE_ENV:`production`,API_URL:`https://api.prod.spendbase.co`,CARDS_API_URL:`https://api.prod.spendbase.co`,WS_URL:`wss://live.prod.spendbase.co/connection/websocket`,G_CLIENT_ID:`196483825483-eb7b4e8hh9auojbv6ae3jliqito9f3eb.apps.googleusercontent.com`,GTM_ID:`GTM-K2ZT9C8G`,OPEN_REPLAY_ID:``,VERSION:`2.4.1`,BUILD_DATE:`2026-09-30T12:15:34.162Z`,HASH:`dc6e7975f3fbf7d9e601fe1a641a7af861753f69`,CHROME_EXTENSION_STORE_URL:`https://chromewebstore.google.com/detail/spendbase-for-chrome-saas/cfecjggfjnckaiklddkhamakopojjllc`,CHROME_EXTENSION_APP_ID:`cfecjggfjnckaiklddkhamakopojjllc`,BEAMER_PROJECT_ID:`KygIOlYk64753`,CLARITY_PROJECT_ID:`pwtfxakczw`,TRIBE_CARDS_ENABLE:`true`,DEMO:`false`,ENABLE_AI_ASSISTANT_FEATURE:`false`,ENABLE_ONBOARDING_OFFBOARDING_FEATURE:`true`,ENABLE_PASSWORD_MANAGER_FEATURE:`true`,ENABLE_GOOGlE_SHEETS_INTEGRATION_FEATURE:`true`,ENABLE_US_KYB_FEATURE:`true`,PUBLIC_POSTHOG_KEY:`phc_7U4Kt0xkp6n9qgX8JZrtjaB8Mj3f0Ja2dXU59AL2ZkV`,PUBLIC_POSTHOG_HOST:`https://eu.i.posthog.com`,SENTRY_DSN_PM:`https://9b5e73ab199b02ef952de4f65e3e95cb@o4511461972770816.ingest.us.sentry.io/4511461980766208`,SENTRY_ENV:`production`,MOBILE_APP_APP_STORE_LINK:`https://apps.apple.com/us/app/spendbase/id6474616305`,MOBILE_APP_GOOGLE_PLAY_LINK:`https://play.google.com/store/apps/details?id=com.spendbase.cards`,MULTICURRENCY_ELIGIBLE_TEAM_IDS:`019b024e-1fd1-7321-b5df-14cb684b3fc3,019aa179-7514-7c82-9367-eef93c84e1cf,008dad26-c437-4209-a92b-d691a4f1ebbe,ca2d6f86-6288-4f02-82b1-fb84199bbf0b,94dc5f39-5bdc-4a1f-99b3-511c6f15ed56,019bf9d3-0aa1-7007-8e98-609c6c9413a0,15dce509-7729-470d-a9fc-895b6c9e065f,019bf95e-dc93-7b24-9675-7e5b3aaba3ff,019bff35-652b-790c-b45e-a74a74a95b29,019c89b4-7bb2-7c93-8a89-70294d6eb6b7,*`,ENABLE_BILL_PAY_FEATURE:``,ENABLE_AUTOPAY_FEATURE:`false`,ENABLE_TRIPS_FEATURE:`false`,ENABLE_CLOUD_FEATURE:`false`,ENABLE_DOCUMENT_REQUESTS:`true`,PHYSICAL_CARDS_ENABLED:`true`,PHYSICAL_CARDS_TEAM_IDS:``,GBP_FASTER_PAYMENTS_DISABLED:`false`,ENABLE_CRYPTO_TOPUP_FEATURE:`true`,CRYPTO_NETWORKS:`ethereum`,API_KEYS_ENABLED:`false`,BANKING_REDIRECT_PATHS:`virtual-cards,banking-non-eu,banking-cards-for-ads,multi-currency`}.ENABLE_GOOGlE_SHEETS_INTEGRATION_FEATURE===`true`;static ENABLE_US_KYB_FEATURE={ENV:`production`,NODE_ENV:`production`,API_URL:`https://api.prod.spendbase.co`,CARDS_API_URL:`https://api.prod.spendbase.co`,WS_URL:`wss://live.prod.spendbase.co/connection/websocket`,G_CLIENT_ID:`196483825483-eb7b4e8hh9auojbv6ae3jliqito9f3eb.apps.googleusercontent.com`,GTM_ID:`GTM-K2ZT9C8G`,OPEN_REPLAY_ID:``,VERSION:`2.4.1`,BUILD_DATE:`2026-09-30T12:15:34.162Z`,HASH:`dc6e7975f3fbf7d9e601fe1a641a7af861753f69`,CHROME_EXTENSION_STORE_URL:`https://chromewebstore.google.com/detail/spendbase-for-chrome-saas/cfecjggfjnckaiklddkhamakopojjllc`,CHROME_EXTENSION_APP_ID:`cfecjggfjnckaiklddkhamakopojjllc`,BEAMER_PROJECT_ID:`KygIOlYk64753`,CLARITY_PROJECT_ID:`pwtfxakczw`,TRIBE_CARDS_ENABLE:`true`,DEMO:`false`,ENABLE_AI_ASSISTANT_FEATURE:`false`,ENABLE_ONBOARDING_OFFBOARDING_FEATURE:`true`,ENABLE_PASSWORD_MANAGER_FEATURE:`true`,ENABLE_GOOGlE_SHEETS_INTEGRATION_FEATURE:`true`,ENABLE_US_KYB_FEATURE:`true`,PUBLIC_POSTHOG_KEY:`phc_7U4Kt0xkp6n9qgX8JZrtjaB8Mj3f0Ja2dXU59AL2ZkV`,PUBLIC_POSTHOG_HOST:`https://eu.i.posthog.com`,SENTRY_DSN_PM:`https://9b5e73ab199b02ef952de4f65e3e95cb@o4511461972770816.ingest.us.sentry.io/4511461980766208`,SENTRY_ENV:`production`,MOBILE_APP_APP_STORE_
2LINK:`https://apps.apple.com/us/app/spendbase/id6474616305`,MOBILE_APP_GOOGLE_PLAY_LINK:`https://play.google.com/store/apps/details?id=com.spendbase.cards`,MULTICURRENCY_ELIGIBLE_TEAM_IDS:`019b024e-1fd1-7321-b5df-14cb684b3fc3,019aa179-7514-7c82-9367-eef93c84e1cf,008dad26-c437-4209-a92b-d691a4f1ebbe,ca2d6f86-6288-4f02-82b1-fb84199bbf0b,94dc5f39-5bdc-4a1f-99b3-511c6f15ed56,019bf9d3-0aa1-7007-8e98-609c6c9413a0,15dce509-7729-470d-a9fc-895b6c9e065f,019bf95e-dc93-7b24-9675-7e5b3aaba3ff,019bff35-652b-790c-b45e-a74a74a95b29,019c89b4-7bb2-7c93-8a89-70294d6eb6b7,*`,ENABLE_BILL_PAY_FEATURE:``,ENABLE_AUTOPAY_FEATURE:`false`,ENABLE_TRIPS_FEATURE:`false`,ENABLE_CLOUD_FEATURE:`false`,ENABLE_DOCUMENT_REQUESTS:`true`,PHYSICAL_CARDS_ENABLED:`true`,PHYSICAL_CARDS_TEAM_IDS:``,GBP_FASTER_PAYMENTS_DISABLED:`false`,ENABLE_CRYPTO_TOPUP_FEATURE:`true`,CRYPTO_NETWORKS:`ethereum`,API_KEYS_ENABLED:`false`,BANKING_REDIRECT_PATHS:`virtual-cards,banking-non-eu,banking-cards-for-ads,multi-currency`}.ENABLE_US_KYB_FEATURE===`true`;static ENABLE_BILL_PAY_FEATURE={ENV:`production`,NODE_ENV:`production`,API_URL:`https://api.prod.spendbase.co`,CARDS_API_URL:`https://api.prod.spendbase.co`,WS_URL:`wss://live.prod.spendbase.co/connection/websocket`,G_CLIENT_ID:`196483825483-eb7b4e8hh9auojbv6ae3jliqito9f3eb.apps.googleusercontent.com`,GTM_ID:`GTM-K2ZT9C8G`,OPEN_REPLAY_ID:``,VERSION:`2.4.1`,BUILD_DATE:`2026-09-30T12:15:34.162Z`,HASH:`dc6e7975f3fbf7d9e601fe1a641a7af861753f69`,CHROME_EXTENSION_STORE_URL:`https://chromewebstore.google.com/detail/spendbase-for-chrome-saas/cfecjggfjnckaiklddkhamakopojjllc`,CHROME_EXTENSION_APP_ID:`cfecjggfjnckaiklddkhamakopojjllc`,BEAMER_PROJECT_ID:`KygIOlYk64753`,CLARITY_PROJECT_ID:`pwtfxakczw`,TRIBE_CARDS_ENABLE:`true`,DEMO:`false`,ENABLE_AI_ASSISTANT_FEATURE:`false`,ENABLE_ONBOARDING_OFFBOARDING_FEATURE:`true`,ENABLE_PASSWORD_MANAGER_FEATURE:`true`,ENABLE_GOOGlE_SHEETS_INTEGRATION_FEATURE:`true`,ENABLE_US_KYB_FEATURE:`true`,PUBLIC_POSTHOG_KEY:`phc_7U4Kt0xkp6n9qgX8JZrtjaB8Mj3f0Ja2dXU59AL2ZkV`,PUBLIC_POSTHOG_HOST:`https://eu.i.posthog.com`,SENTRY_DSN_PM:`https://9b5e73ab199b02ef952de4f65e3e95cb@o4511461972770816.ingest.us.sentry.io/4511461980766208`,SENTRY_ENV:`production`,MOBILE_APP_APP_STORE_LINK:`https://apps.apple.com/us/app/spendbase/id6474616305`,MOBILE_APP_GOOGLE_PLAY_LINK:`https://play.google.com/store/apps/details?id=com.spendbase.cards`,MULTICURRENCY_ELIGIBLE_TEAM_IDS:`019b024e-1fd1-7321-b5df-14cb684b3fc3,019aa179-7514-7c82-9367-eef93c84e1cf,008dad26-c437-4209-a92b-d691a4f1ebbe,ca2d6f86-6288-4f02-82b1-fb84199bbf0b,94dc5f39-5bdc-4a1f-99b3-511c6f15ed56,019bf9d3-0aa1-7007-8e98-609c6c9413a0,15dce509-7729-470d-a9fc-895b6c9e065f,019bf95e-dc93-7b24-9675-7e5b3aaba3ff,019bff35-652b-790c-b45e-a74a74a95b29,019c89b4-7bb2-7c93-8a89-70294d6eb6b7,*`,ENABLE_BILL_PAY_FEATURE:``,ENABLE_AUTOPAY_FEATURE:`false`,ENABLE_TRIPS_FEATURE:`false`,ENABLE_CLOUD_FEATURE:`false`,ENABLE_DOCUMENT_REQUESTS:`true`,PHYSICAL_CARDS_ENABLED:`true`,PHYSICAL_CARDS_TEAM_IDS:``,GBP_FASTER_PAYMENTS_DISABLED:`false`,ENABLE_CRYPTO_TOPUP_FEATURE:`true`,CRYPTO_NETWORKS:`ethereum`,API_KEYS_ENABLED:`false`,BANKING_REDIRECT_PATHS:`virtual-cards,banking-non-eu,banking-cards-for-ads,multi-currency`}.ENABLE_BILL_PAY_FEATURE===`true`;static ENABLE_AUTOPAY_FEATURE={ENV:`production`,NODE_ENV:`production`,API_URL:`https://api.prod.spendbase.co`,CARDS_API_URL:`https://api.prod.spendbase.co`,WS_URL:`wss://live.prod.spendbase.co/connection/websocket`,G_CLIENT_ID:`196483825483-eb7b4e8hh9auojbv6ae3jliqito9f3eb.apps.googleusercontent.com`,GTM_ID:`GTM-K2ZT9C8G`,OPEN_REPLAY_ID:``,VERSION:`2.4.1`,BUILD_DATE:`2026-09-30T12:15:34.162Z`,HASH:`dc6e7975f3fbf7d9e601fe1a641a7af861753f69`,CHROME_EXTENSION_STORE_URL:`https://chromewebstore.google.com/detail/spendbase-for-chrome-saas/cfecjggfjnckaiklddkhamakopojjllc`,CHROME_EXTENSION_APP_ID:`cfecjggfjnckaiklddkhamakopojjllc`,BEAMER_PROJECT_ID:`KygIOlYk64753`,CLARITY_PROJECT_ID:`pwtfxakczw`,TRIBE_CARDS_ENABLE:`true`,DEMO:`false`,ENABLE_AI_ASSISTANT_FEATURE:`false`,ENABLE_ONBOARDING_OFFBOARDING_FEATURE:`true`,ENABLE_PASSWORD_MANAGER_FEATURE:`true`,ENABLE_GOOGlE_SHEETS_INTEGRATION_FEATURE:`true`,ENABLE_US_KYB_FEATURE:`true`,PUBLIC_POSTHOG_KEY:`phc_7U4Kt0xkp6n9qgX8JZrtjaB8Mj3f0Ja2dXU59AL2ZkV`,PUBLIC_POSTHOG_HOST:`https://eu.i.posthog.com`,SENTRY_DSN_PM:`https://9b5e73ab199b02ef952de4f65e3e95cb@o4511461972770816.ingest.us.sentry.io/4511461980766208`,SENTRY_ENV:`production`,MOBILE_APP_APP_STORE_
2LINK:`https://apps.apple.com/us/app/spendbase/id6474616305`,MOBILE_APP_GOOGLE_PLAY_LINK:`https://play.google.com/store/apps/details?id=com.spendbase.cards`,MULTICURRENCY_ELIGIBLE_TEAM_IDS:`019b024e-1fd1-7321-b5df-14cb684b3fc3,019aa179-7514-7c82-9367-eef93c84e1cf,008dad26-c437-4209-a92b-d691a4f1ebbe,ca2d6f86-6288-4f02-82b1-fb84199bbf0b,94dc5f39-5bdc-4a1f-99b3-511c6f15ed56,019bf9d3-0aa1-7007-8e98-609c6c9413a0,15dce509-7729-470d-a9fc-895b6c9e065f,019bf95e-dc93-7b24-9675-7e5b3aaba3ff,019bff35-652b-790c-b45e-a74a74a95b29,019c89b4-7bb2-7c93-8a89-70294d6eb6b7,*`,ENABLE_BILL_PAY_FEATURE:``,ENABLE_AUTOPAY_FEATURE:`false`,ENABLE_TRIPS_FEATURE:`false`,ENABLE_CLOUD_FEATURE:`false`,ENABLE_DOCUMENT_REQUESTS:`true`,PHYSICAL_CARDS_ENABLED:`true`,PHYSICAL_CARDS_TEAM_IDS:``,GBP_FASTER_PAYMENTS_DISABLED:`false`,ENABLE_CRYPTO_TOPUP_FEATURE:`true`,CRYPTO_NETWORKS:`ethereum`,API_KEYS_ENABLED:`false`,BANKING_REDIRECT_PATHS:`virtual-cards,banking-non-eu,banking-cards-for-ads,multi-currency`}.ENABLE_AUTOPAY_FEATURE===`true`;static ENABLE_TRIPS_FEATURE={ENV:`production`,NODE_ENV:`production`,API_URL:`https://api.prod.spendbase.co`,CARDS_API_URL:`https://api.prod.spendbase.co`,WS_URL:`wss://live.prod.spendbase.co/connection/websocket`,G_CLIENT_ID:`196483825483-eb7b4e8hh9auojbv6ae3jliqito9f3eb.apps.googleusercontent.com`,GTM_ID:`GTM-K2ZT9C8G`,OPEN_REPLAY_ID:``,VERSION:`2.4.1`,BUILD_DATE:`2026-09-30T12:15:34.162Z`,HASH:`dc6e7975f3fbf7d9e601fe1a641a7af861753f69`,CHROME_EXTENSION_STORE_URL:`https://chromewebstore.google.com/detail/spendbase-for-chrome-saas/cfecjggfjnckaiklddkhamakopojjllc`,CHROME_EXTENSION_APP_ID:`cfecjggfjnckaiklddkhamakopojjllc`,BEAMER_PROJECT_ID:`KygIOlYk64753`,CLARITY_PROJECT_ID:`pwtfxakczw`,TRIBE_CARDS_ENABLE:`true`,DEMO:`false`,ENABLE_AI_ASSISTANT_FEATURE:`false`,ENABLE_ONBOARDING_OFFBOARDING_FEATURE:`true`,ENABLE_PASSWORD_MANAGER_FEATURE:`true`,ENABLE_GOOGlE_SHEETS_INTEGRATION_FEATURE:`true`,ENABLE_US_KYB_FEATURE:`true`,PUBLIC_POSTHOG_KEY:`phc_7U4Kt0xkp6n9qgX8JZrtjaB8Mj3f0Ja2dXU59AL2ZkV`,PUBLIC_POSTHOG_HOST:`https://eu.i.posthog.com`,SENTRY_DSN_PM:`https://9b5e73ab199b02ef952de4f65e3e95cb@o4511461972770816.ingest.us.sentry.io/4511461980766208`,SENTRY_ENV:`production`,MOBILE_APP_APP_STORE_LINK:`https://apps.apple.com/us/app/spendbase/id6474616305`,MOBILE_APP_GOOGLE_PLAY_LINK:`https://play.google.com/store/apps/details?id=com.spendbase.cards`,MULTICURRENCY_ELIGIBLE_TEAM_IDS:`019b024e-1fd1-7321-b5df-14cb684b3fc3,019aa179-7514-7c82-9367-eef93c84e1cf,008dad26-c437-4209-a92b-d691a4f1ebbe,ca2d6f86-6288-4f02-82b1-fb84199bbf0b,94dc5f39-5bdc-4a1f-99b3-511c6f15ed56,019bf9d3-0aa1-7007-8e98-609c6c9413a0,15dce509-7729-470d-a9fc-895b6c9e065f,019bf95e-dc93-7b24-9675-7e5b3aaba3ff,019bff35-652b-790c-b45e-a74a74a95b29,019c89b4-7bb2-7c93-8a89-70294d6eb6b7,*`,ENABLE_BILL_PAY_FEATURE:``,ENABLE_AUTOPAY_FEATURE:`false`,ENABLE_TRIPS_FEATURE:`false`,ENABLE_CLOUD_FEATURE:`false`,ENABLE_DOCUMENT_REQUESTS:`true`,PHYSICAL_CARDS_ENABLED:`true`,PHYSICAL_CARDS_TEAM_IDS:``,GBP_FASTER_PAYMENTS_DISABLED:`false`,ENABLE_CRYPTO_TOPUP_FEATURE:`true`,CRYPTO_NETWORKS:`ethereum`,API_KEYS_ENABLED:`false`,BANKING_REDIRECT_PATHS:`virtual-cards,banking-non-eu,banking-cards-for-ads,multi-currency`}.ENABLE_TRIPS_FEATURE!==`false`;static ENABLE_DOCUMENT_REQUESTS={ENV:`production`,NODE_ENV:`production`,API_URL:`https://api.prod.spendbase.co`,CARDS_API_URL:`https://api.prod.spendbase.co`,WS_URL:`wss://live.prod.spendbase.co/connection/websocket`,G_CLIENT_ID:`196483825483-eb7b4e8hh9auojbv6ae3jliqito9f3eb.apps.googleusercontent.com`,GTM_ID:`GTM-K2ZT9C8G`,OPEN_REPLAY_ID:``,VERSION:`2.4.1`,BUILD_DATE:`2026-09-30T12:15:34.162Z`,HASH:`dc6e7975f3fbf7d9e601fe1a641a7af861753f69`,CHROME_EXTENSION_STORE_URL:`https://chromewebstore.google.com/detail/spendbase-for-chrome-saas/cfecjggfjnckaiklddkhamakopojjllc`,CHROME_EXTENSION_APP_ID:`cfecjggfjnckaiklddkhamakopojjllc`,BEAMER_PROJECT_ID:`KygIOlYk64753`,CLARITY_PROJECT_ID:`pwtfxakczw`,TRIBE_CARDS_ENABLE:`true`,DEMO:`false`,ENABLE_AI_ASSISTANT_FEATURE:`false`,ENABLE_ONBOARDING_OFFBOARDING_FEATURE:`true`,ENABLE_PASSWORD_MANAGER_FEATURE:`true`,ENABLE_GOOGlE_SHEETS_INTEGRATION_FEATURE:`true`,ENABLE_US_KYB_FEATURE:`true`,PUBLIC_POSTHOG_KEY:`phc_7U4Kt0xkp6n9qgX8JZrtjaB8Mj3f0Ja2dXU59AL2ZkV`,PUBLIC_POSTHOG_HOST:`https://eu.i.posthog.com`,SENTRY_DSN_PM:`https://9b5e73ab199b02ef952de4f65e3e95cb@o4511461972770816.ingest.us.sentry.io/4511461980766208`,SENTRY_ENV:`production`,MOBILE_APP_APP_STORE_
2LINK:`https://apps.apple.com/us/app/spendbase/id6474616305`,MOBILE_APP_GOOGLE_PLAY_LINK:`https://play.google.com/store/apps/details?id=com.spendbase.cards`,MULTICURRENCY_ELIGIBLE_TEAM_IDS:`019b024e-1fd1-7321-b5df-14cb684b3fc3,019aa179-7514-7c82-9367-eef93c84e1cf,008dad26-c437-4209-a92b-d691a4f1ebbe,ca2d6f86-6288-4f02-82b1-fb84199bbf0b,94dc5f39-5bdc-4a1f-99b3-511c6f15ed56,019bf9d3-0aa1-7007-8e98-609c6c9413a0,15dce509-7729-470d-a9fc-895b6c9e065f,019bf95e-dc93-7b24-9675-7e5b3aaba3ff,019bff35-652b-790c-b45e-a74a74a95b29,019c89b4-7bb2-7c93-8a89-70294d6eb6b7,*`,ENABLE_BILL_PAY_FEATURE:``,ENABLE_AUTOPAY_FEATURE:`false`,ENABLE_TRIPS_FEATURE:`false`,ENABLE_CLOUD_FEATURE:`false`,ENABLE_DOCUMENT_REQUESTS:`true`,PHYSICAL_CARDS_ENABLED:`true`,PHYSICAL_CARDS_TEAM_IDS:``,GBP_FASTER_PAYMENTS_DISABLED:`false`,ENABLE_CRYPTO_TOPUP_FEATURE:`true`,CRYPTO_NETWORKS:`ethereum`,API_KEYS_ENABLED:`false`,BANKING_REDIRECT_PATHS:`virtual-cards,banking-non-eu,banking-cards-for-ads,multi-currency`}.ENABLE_DOCUMENT_REQUESTS===`true`;static PHYSICAL_CARDS_ENABLED={ENV:`production`,NODE_ENV:`production`,API_URL:`https://api.prod.spendbase.co`,CARDS_API_URL:`https://api.prod.spendbase.co`,WS_URL:`wss://live.prod.spendbase.co/connection/websocket`,G_CLIENT_ID:`196483825483-eb7b4e8hh9auojbv6ae3jliqito9f3eb.apps.googleusercontent.com`,GTM_ID:`GTM-K2ZT9C8G`,OPEN_REPLAY_ID:``,VERSION:`2.4.1`,BUILD_DATE:`2026-09-30T12:15:34.162Z`,HASH:`dc6e7975f3fbf7d9e601fe1a641a7af861753f69`,CHROME_EXTENSION_STORE_URL:`https://chromewebstore.google.com/detail/spendbase-for-chrome-saas/cfecjggfjnckaiklddkhamakopojjllc`,CHROME_EXTENSION_APP_ID:`cfecjggfjnckaiklddkhamakopojjllc`,BEAMER_PROJECT_ID:`KygIOlYk64753`,CLARITY_PROJECT_ID:`pwtfxakczw`,TRIBE_CARDS_ENABLE:`true`,DEMO:`false`,ENABLE_AI_ASSISTANT_FEATURE:`false`,ENABLE_ONBOARDING_OFFBOARDING_FEATURE:`true`,ENABLE_PASSWORD_MANAGER_FEATURE:`true`,ENABLE_GOOGlE_SHEETS_INTEGRATION_FEATURE:`true`,ENABLE_US_KYB_FEATURE:`true`,PUBLIC_POSTHOG_KEY:`phc_7U4Kt0xkp6n9qgX8JZrtjaB8Mj3f0Ja2dXU59AL2ZkV`,PUBLIC_POSTHOG_HOST:`https://eu.i.posthog.com`,SENTRY_DSN_PM:`https://9b5e73ab199b02ef952de4f65e3e95cb@o4511461972770816.ingest.us.sentry.io/4511461980766208`,SENTRY_ENV:`production`,MOBILE_APP_APP_STORE_LINK:`https://apps.apple.com/us/app/spendbase/id6474616305`,MOBILE_APP_GOOGLE_PLAY_LINK:`https://play.google.com/store/apps/details?id=com.spendbase.cards`,MULTICURRENCY_ELIGIBLE_TEAM_IDS:`019b024e-1fd1-7321-b5df-14cb684b3fc3,019aa179-7514-7c82-9367-eef93c84e1cf,008dad26-c437-4209-a92b-d691a4f1ebbe,ca2d6f86-6288-4f02-82b1-fb84199bbf0b,94dc5f39-5bdc-4a1f-99b3-511c6f15ed56,019bf9d3-0aa1-7007-8e98-609c6c9413a0,15dce509-7729-470d-a9fc-895b6c9e065f,019bf95e-dc93-7b24-9675-7e5b3aaba3ff,019bff35-652b-790c-b45e-a74a74a95b29,019c89b4-7bb2-7c93-8a89-70294d6eb6b7,*`,ENABLE_BILL_PAY_FEATURE:``,ENABLE_AUTOPAY_FEATURE:`false`,ENABLE_TRIPS_FEATURE:`false`,ENABLE_CLOUD_FEATURE:`false`,ENABLE_DOCUMENT_REQUESTS:`true`,PHYSICAL_CARDS_ENABLED:`true`,PHYSICAL_CARDS_TEAM_IDS:``,GBP_FASTER_PAYMENTS_DISABLED:`false`,ENABLE_CRYPTO_TOPUP_FEATURE:`true`,CRYPTO_NETWORKS:`ethereum`,API_KEYS_ENABLED:`false`,BANKING_REDIRECT_PATHS:`virtual-cards,banking-non-eu,banking-cards-for-ads,multi-currency`}.PHYSICAL_CARDS_ENABLED===`true`;static GBP_FASTER_PAYMENTS_DISABLED={ENV:`production`,NODE_ENV:`production`,API_URL:`https://api.prod.spendbase.co`,CARDS_API_URL:`https://api.prod.spendbase.co`,WS_URL:`wss://live.prod.spendbase.co/connection/websocket`,G_CLIENT_ID:`196483825483-eb7b4e8hh9auojbv6ae3jliqito9f3eb.apps.googleusercontent.com`,GTM_ID:`GTM-K2ZT9C8G`,OPEN_REPLAY_ID:``,VERSION:`2.4.1`,BUILD_DATE:`2026-09-30T12:15:34.162Z`,HASH:`dc6e7975f3fbf7d9e601fe1a641a7af861753f69`,CHROME_EXTENSION_STORE_URL:`https://chromewebstore.google.com/detail/spendbase-for-chrome-saas/cfecjggfjnckaiklddkhamakopojjllc`,CHROME_EXTENSION_APP_ID:`cfecjggfjnckaiklddkhamakopojjllc`,BEAMER_PROJECT_ID:`KygIOlYk64753`,CLARITY_PROJECT_ID:`pwtfxakczw`,TRIBE_CARDS_ENABLE:`true`,DEMO:`false`,ENABLE_AI_ASSISTANT_FEATURE:`false`,ENABLE_ONBOARDING_OFFBOARDING_FEATURE:`true`,ENABLE_PASSWORD_MANAGER_FEATURE:`true`,ENABLE_GOOGlE_SHEETS_INTEGRATION_FEATURE:`true`,ENABLE_US_KYB_FEATURE:`true`,PUBLIC_POSTHOG_KEY:`phc_7U4Kt0xkp6n9qgX8JZrtjaB8Mj3f0Ja2dXU59AL2ZkV`,PUBLIC_POSTHOG_HOST:`https://eu.i.posthog.com`,SENTRY_DSN_PM:`https://9b5e73ab199b02ef952de4f65e3e95cb@o4511461972770816.ingest.us.sentry.io/4511461980766208`,SENTRY_ENV:`production`,MOBILE_APP_APP_STORE_
2LINK:`https://apps.apple.com/us/app/spendbase/id6474616305`,MOBILE_APP_GOOGLE_PLAY_LINK:`https://play.google.com/store/apps/details?id=com.spendbase.cards`,MULTICURRENCY_ELIGIBLE_TEAM_IDS:`019b024e-1fd1-7321-b5df-14cb684b3fc3,019aa179-7514-7c82-9367-eef93c84e1cf,008dad26-c437-4209-a92b-d691a4f1ebbe,ca2d6f86-6288-4f02-82b1-fb84199bbf0b,94dc5f39-5bdc-4a1f-99b3-511c6f15ed56,019bf9d3-0aa1-7007-8e98-609c6c9413a0,15dce509-7729-470d-a9fc-895b6c9e065f,019bf95e-dc93-7b24-9675-7e5b3aaba3ff,019bff35-652b-790c-b45e-a74a74a95b29,019c89b4-7bb2-7c93-8a89-70294d6eb6b7,*`,ENABLE_BILL_PAY_FEATURE:``,ENABLE_AUTOPAY_FEATURE:`false`,ENABLE_TRIPS_FEATURE:`false`,ENABLE_CLOUD_FEATURE:`false`,ENABLE_DOCUMENT_REQUESTS:`true`,PHYSICAL_CARDS_ENABLED:`true`,PHYSICAL_CARDS_TEAM_IDS:``,GBP_FASTER_PAYMENTS_DISABLED:`false`,ENABLE_CRYPTO_TOPUP_FEATURE:`true`,CRYPTO_NETWORKS:`ethereum`,API_KEYS_ENABLED:`false`,BANKING_REDIRECT_PATHS:`virtual-cards,banking-non-eu,banking-cards-for-ads,multi-currency`}.GBP_FASTER_PAYMENTS_DISABLED===`true`;static PHYSICAL_CARDS_TEAM_IDS=({ENV:`production`,NODE_ENV:`production`,API_URL:`https://api.prod.spendbase.co`,CARDS_API_URL:`https://api.prod.spendbase.co`,WS_URL:`wss://live.prod.spendbase.co/connection/websocket`,G_CLIENT_ID:`196483825483-eb7b4e8hh9auojbv6ae3jliqito9f3eb.apps.googleusercontent.com`,GTM_ID:`GTM-K2ZT9C8G`,OPEN_REPLAY_ID:``,VERSION:`2.4.1`,BUILD_DATE:`2026-09-30T12:15:34.162Z`,HASH:`dc6e7975f3fbf7d9e601fe1a641a7af861753f69`,CHROME_EXTENSION_STORE_URL:`https://chromewebstore.google.com/detail/spendbase-for-chrome-saas/cfecjggfjnckaiklddkhamakopojjllc`,CHROME_EXTENSION_APP_ID:`cfecjggfjnckaiklddkhamakopojjllc`,BEAMER_PROJECT_ID:`KygIOlYk64753`,CLARITY_PROJECT_ID:`pwtfxakczw`,TRIBE_CARDS_ENABLE:`true`,DEMO:`false`,ENABLE_AI_ASSISTANT_FEATURE:`false`,ENABLE_ONBOARDING_OFFBOARDING_FEATURE:`true`,ENABLE_PASSWORD_MANAGER_FEATURE:`true`,ENABLE_GOOGlE_SHEETS_INTEGRATION_FEATURE:`true`,ENABLE_US_KYB_FEATURE:`true`,PUBLIC_POSTHOG_KEY:`phc_7U4Kt0xkp6n9qgX8JZrtjaB8Mj3f0Ja2dXU59AL2ZkV`,PUBLIC_POSTHOG_HOST:`https://eu.i.posthog.com`,SENTRY_DSN_PM:`https://9b5e73ab199b02ef952de4f65e3e95cb@o4511461972770816.ingest.us.sentry.io/4511461980766208`,SENTRY_ENV:`production`,MOBILE_APP_APP_STORE_LINK:`https://apps.apple.com/us/app/spendbase/id6474616305`,MOBILE_APP_GOOGLE_PLAY_LINK:`https://play.google.com/store/apps/details?id=com.spendbase.cards`,MULTICURRENCY_ELIGIBLE_TEAM_IDS:`019b024e-1fd1-7321-b5df-14cb684b3fc3,019aa179-7514-7c82-9367-eef93c84e1cf,008dad26-c437-4209-a92b-d691a4f1ebbe,ca2d6f86-6288-4f02-82b1-fb84199bbf0b,94dc5f39-5bdc-4a1f-99b3-511c6f15ed56,019bf9d3-0aa1-7007-8e98-609c6c9413a0,15dce509-7729-470d-a9fc-895b6c9e065f,019bf95e-dc93-7b24-9675-7e5b3aaba3ff,019bff35-652b-790c-b45e-a74a74a95b29,019c89b4-7bb2-7c93-8a89-70294d6eb6b7,*`,ENABLE_BILL_PAY_FEATURE:``,ENABLE_AUTOPAY_FEATURE:`false`,ENABLE_TRIPS_FEATURE:`false`,ENABLE_CLOUD_FEATURE:`false`,ENABLE_DOCUMENT_REQUESTS:`true`,PHYSICAL_CARDS_ENABLED:`true`,PHYSICAL_CARDS_TEAM_IDS:``,GBP_FASTER_PAYMENTS_DISABLED:`false`,ENABLE_CRYPTO_TOPUP_FEATURE:`true`,CRYPTO_NETWORKS:`ethereum`,API_KEYS_ENABLED:`false`,BANKING_REDIRECT_PATHS:`virtual-cards,banking-non-eu,banking-cards-for-ads,multi-currency`}.PHYSICAL_CARDS_TEAM_IDS||``).split(`,`).map(e=>e.trim()).filter(Boolean);static ENABLE_CRYPTO_TOPUP_FEATURE={ENV:`production`,NODE_ENV:`production`,API_URL:`https://api.prod.spendbase.co`,CARDS_API_URL:`https://api.prod.spendbase.co`,WS_URL:`wss://live.prod.spendbase.co/connection/websocket`,G_CLIENT_ID:`196483825483-eb7b4e8hh9auojbv6ae3jliqito9f3eb.apps.googleusercontent.com`,GTM_ID:`GTM-K2ZT9C8G`,OPEN_REPLAY_ID:``,VERSION:`2.4.1`,BUILD_DATE:`2026-09-30T12:15:34.162Z`,HASH:`dc6e7975f3fbf7d9e601fe1a641a7af861753f69`,CHROME_EXTENSION_STORE_URL:`https://chromewebstore.google.com/detail/spendbase-for-chrome-saas/cfecjggfjnckaiklddkhamakopojjllc`,CHROME_EXTENSION_APP_ID:`cfecjggfjnckaiklddkhamakopojjllc`,BEAMER_PROJECT_ID:`KygIOlYk64753`,CLARITY_PROJECT_ID:`pwtfxakczw`,TRIBE_CARDS_ENABLE:`true`,DEMO:`false`,ENABLE_AI_ASSISTANT_FEATURE:`false`,ENABLE_ONBOARDING_OFFBOARDING_FEATURE:`true`,ENABLE_PASSWORD_MANAGER_FEATURE:`true`,ENABLE_GOOGlE_SHEETS_INTEGRATION_FEATURE:`true`,ENABLE_US_KYB_FEATURE:`true`,PUBLIC_POSTHOG_KEY:`phc_7U4Kt0xkp6n9qgX8JZrtjaB8Mj3f0Ja2dXU59AL2ZkV`,PUBLIC_POSTHOG_HOST:`https://eu.i.posthog.com`,SENTRY_DSN_PM:`https://9b5e73ab199b02ef952de4f65e3e95cb@o4511461972770816.ingest.us.sentry.io/4511461980766208`,SENTRY_ENV:`production`,MOBILE_APP_APP_STORE_
2LINK:`https://apps.apple.com/us/app/spendbase/id6474616305`,MOBILE_APP_GOOGLE_PLAY_LINK:`https://play.google.com/store/apps/details?id=com.spendbase.cards`,MULTICURRENCY_ELIGIBLE_TEAM_IDS:`019b024e-1fd1-7321-b5df-14cb684b3fc3,019aa179-7514-7c82-9367-eef93c84e1cf,008dad26-c437-4209-a92b-d691a4f1ebbe,ca2d6f86-6288-4f02-82b1-fb84199bbf0b,94dc5f39-5bdc-4a1f-99b3-511c6f15ed56,019bf9d3-0aa1-7007-8e98-609c6c9413a0,15dce509-7729-470d-a9fc-895b6c9e065f,019bf95e-dc93-7b24-9675-7e5b3aaba3ff,019bff35-652b-790c-b45e-a74a74a95b29,019c89b4-7bb2-7c93-8a89-70294d6eb6b7,*`,ENABLE_BILL_PAY_FEATURE:``,ENABLE_AUTOPAY_FEATURE:`false`,ENABLE_TRIPS_FEATURE:`false`,ENABLE_CLOUD_FEATURE:`false`,ENABLE_DOCUMENT_REQUESTS:`true`,PHYSICAL_CARDS_ENABLED:`true`,PHYSICAL_CARDS_TEAM_IDS:``,GBP_FASTER_PAYMENTS_DISABLED:`false`,ENABLE_CRYPTO_TOPUP_FEATURE:`true`,CRYPTO_NETWORKS:`ethereum`,API_KEYS_ENABLED:`false`,BANKING_REDIRECT_PATHS:`virtual-cards,banking-non-eu,banking-cards-for-ads,multi-currency`}.ENABLE_CRYPTO_TOPUP_FEATURE===`true`;static CRYPTO_NETWORKS=({ENV:`production`,NODE_ENV:`production`,API_URL:`https://api.prod.spendbase.co`,CARDS_API_URL:`https://api.prod.spendbase.co`,WS_URL:`wss://live.prod.spendbase.co/connection/websocket`,G_CLIENT_ID:`196483825483-eb7b4e8hh9auojbv6ae3jliqito9f3eb.apps.googleusercontent.com`,GTM_ID:`GTM-K2ZT9C8G`,OPEN_REPLAY_ID:``,VERSION:`2.4.1`,BUILD_DATE:`2026-09-30T12:15:34.162Z`,HASH:`dc6e7975f3fbf7d9e601fe1a641a7af861753f69`,CHROME_EXTENSION_STORE_URL:`https://chromewebstore.google.com/detail/spendbase-for-chrome-saas/cfecjggfjnckaiklddkhamakopojjllc`,CHROME_EXTENSION_APP_ID:`cfecjggfjnckaiklddkhamakopojjllc`,BEAMER_PROJECT_ID:`KygIOlYk64753`,CLARITY_PROJECT_ID:`pwtfxakczw`,TRIBE_CARDS_ENABLE:`true`,DEMO:`false`,ENABLE_AI_ASSISTANT_FEATURE:`false`,ENABLE_ONBOARDING_OFFBOARDING_FEATURE:`true`,ENABLE_PASSWORD_MANAGER_FEATURE:`true`,ENABLE_GOOGlE_SHEETS_INTEGRATION_FEATURE:`true`,ENABLE_US_KYB_FEATURE:`true`,PUBLIC_POSTHOG_KEY:`phc_7U4Kt0xkp6n9qgX8JZrtjaB8Mj3f0Ja2dXU59AL2ZkV`,PUBLIC_POSTHOG_HOST:`https://eu.i.posthog.com`,SENTRY_DSN_PM:`https://9b5e73ab199b02ef952de4f65e3e95cb@o4511461972770816.ingest.us.sentry.io/4511461980766208`,SENTRY_ENV:`production`,MOBILE_APP_APP_STORE_LINK:`https://apps.apple.com/us/app/spendbase/id6474616305`,MOBILE_APP_GOOGLE_PLAY_LINK:`https://play.google.com/store/apps/details?id=com.spendbase.cards`,MULTICURRENCY_ELIGIBLE_TEAM_IDS:`019b024e-1fd1-7321-b5df-14cb684b3fc3,019aa179-7514-7c82-9367-eef93c84e1cf,008dad26-c437-4209-a92b-d691a4f1ebbe,ca2d6f86-6288-4f02-82b1-fb84199bbf0b,94dc5f39-5bdc-4a1f-99b3-511c6f15ed56,019bf9d3-0aa1-7007-8e98-609c6c9413a0,15dce509-7729-470d-a9fc-895b6c9e065f,019bf95e-dc93-7b24-9675-7e5b3aaba3ff,019bff35-652b-790c-b45e-a74a74a95b29,019c89b4-7bb2-7c93-8a89-70294d6eb6b7,*`,ENABLE_BILL_PAY_FEATURE:``,ENABLE_AUTOPAY_FEATURE:`false`,ENABLE_TRIPS_FEATURE:`false`,ENABLE_CLOUD_FEATURE:`false`,ENABLE_DOCUMENT_REQUESTS:`true`,PHYSICAL_CARDS_ENABLED:`true`,PHYSICAL_CARDS_TEAM_IDS:``,GBP_FASTER_PAYMENTS_DISABLED:`false`,ENABLE_CRYPTO_TOPUP_FEATURE:`true`,CRYPTO_NETWORKS:`ethereum`,API_KEYS_ENABLED:`false`,BANKING_REDIRECT_PATHS:`virtual-cards,banking-non-eu,banking-cards-for-ads,multi-currency`}.CRYPTO_NETWORKS||``).split(`,`).map(e=>e.trim().toLowerCase()).filter(Boolean);static API_KEYS_ENABLED={ENV:`production`,NODE_ENV:`production`,API_URL:`https://api.prod.spendbase.co`,CARDS_API_URL:`https://api.prod.spendbase.co`,WS_URL:`wss://live.prod.spendbase.co/connection/websocket`,G_CLIENT_ID:`196483825483-eb7b4e8hh9auojbv6ae3jliqito9f3eb.apps.googleusercontent.com`,GTM_ID:`GTM-K2ZT9C8G`,OPEN_REPLAY_ID:``,VERSION:`2.4.1`,BUILD_DATE:`2026-09-30T12:15:34.162Z`,HASH:`dc6e7975f3fbf7d9e601fe1a641a7af861753f69`,CHROME_EXTENSION_STORE_URL:`https://chromewebstore.google.com/detail/spendbase-for-chrome-saas/cfecjggfjnckaiklddkhamakopojjllc`,CHROME_EXTENSION_APP_ID:`cfecjggfjnckaiklddkhamakopojjllc`,BEAMER_PROJECT_ID:`KygIOlYk64753`,CLARITY_PROJECT_ID:`pwtfxakczw`,TRIBE_CARDS_ENABLE:`true`,DEMO:`false`,ENABLE_AI_ASSISTANT_FEATURE:`false`,ENABLE_ONBOARDING_OFFBOARDING_FEATURE:`true`,ENABLE_PASSWORD_MANAGER_FEATURE:`true`,ENABLE_GOOGlE_SHEETS_INTEGRATION_FEATURE:`true`,ENABLE_US_KYB_FEATURE:`true`,PUBLIC_POSTHOG_KEY:`phc_7U4Kt0xkp6n9qgX8JZrtjaB8Mj3f0Ja2dXU59AL2ZkV`,PUBLIC_POSTHOG_HOST:`https://eu.i.posthog.com`,SENTRY_DSN_PM:`https://9b5e73ab199b02ef952de4f65e3e95cb@o4511461972770816.ingest.us.sentry.io/4511461980766208`,SENTRY_ENV:`production`,MOBILE_APP_APP_STORE_
2LINK:`https://apps.apple.com/us/app/spendbase/id6474616305`,MOBILE_APP_GOOGLE_PLAY_LINK:`https://play.google.com/store/apps/details?id=com.spendbase.cards`,MULTICURRENCY_ELIGIBLE_TEAM_IDS:`019b024e-1fd1-7321-b5df-14cb684b3fc3,019aa179-7514-7c82-9367-eef93c84e1cf,008dad26-c437-4209-a92b-d691a4f1ebbe,ca2d6f86-6288-4f02-82b1-fb84199bbf0b,94dc5f39-5bdc-4a1f-99b3-511c6f15ed56,019bf9d3-0aa1-7007-8e98-609c6c9413a0,15dce509-7729-470d-a9fc-895b6c9e065f,019bf95e-dc93-7b24-9675-7e5b3aaba3ff,019bff35-652b-790c-b45e-a74a74a95b29,019c89b4-7bb2-7c93-8a89-70294d6eb6b7,*`,ENABLE_BILL_PAY_FEATURE:``,ENABLE_AUTOPAY_FEATURE:`false`,ENABLE_TRIPS_FEATURE:`false`,ENABLE_CLOUD_FEATURE:`false`,ENABLE_DOCUMENT_REQUESTS:`true`,PHYSICAL_CARDS_ENABLED:`true`,PHYSICAL_CARDS_TEAM_IDS:``,GBP_FASTER_PAYMENTS_DISABLED:`false`,ENABLE_CRYPTO_TOPUP_FEATURE:`true`,CRYPTO_NETWORKS:`ethereum`,API_KEYS_ENABLED:`false`,BANKING_REDIRECT_PATHS:`virtual-cards,banking-non-eu,banking-cards-for-ads,multi-currency`}.API_KEYS_ENABLED===`true`;static CHROME_EXTENSION_STORE_URL={ENV:`production`,NODE_ENV:`production`,API_URL:`https://api.prod.spendbase.co`,CARDS_API_URL:`https://api.prod.spendbase.co`,WS_URL:`wss://live.prod.spendbase.co/connection/websocket`,G_CLIENT_ID:`196483825483-eb7b4e8hh9auojbv6ae3jliqito9f3eb.apps.googleusercontent.com`,GTM_ID:`GTM-K2ZT9C8G`,OPEN_REPLAY_ID:``,VERSION:`2.4.1`,BUILD_DATE:`2026-09-30T12:15:34.162Z`,HASH:`dc6e7975f3fbf7d9e601fe1a641a7af861753f69`,CHROME_EXTENSION_STORE_URL:`https://chromewebstore.google.com/detail/spendbase-for-chrome-saas/cfecjggfjnckaiklddkhamakopojjllc`,CHROME_EXTENSION_APP_ID:`cfecjggfjnckaiklddkhamakopojjllc`,BEAMER_PROJECT_ID:`KygIOlYk64753`,CLARITY_PROJECT_ID:`pwtfxakczw`,TRIBE_CARDS_ENABLE:`true`,DEMO:`false`,ENABLE_AI_ASSISTANT_FEATURE:`false`,ENABLE_ONBOARDING_OFFBOARDING_FEATURE:`true`,ENABLE_PASSWORD_MANAGER_FEATURE:`true`,ENABLE_GOOGlE_SHEETS_INTEGRATION_FEATURE:`true`,ENABLE_US_KYB_FEATURE:`true`,PUBLIC_POSTHOG_KEY:`phc_7U4Kt0xkp6n9qgX8JZrtjaB8Mj3f0Ja2dXU59AL2ZkV`,PUBLIC_POSTHOG_HOST:`https://eu.i.posthog.com`,SENTRY_DSN_PM:`https://9b5e73ab199b02ef952de4f65e3e95cb@o4511461972770816.ingest.us.sentry.io/4511461980766208`,SENTRY_ENV:`production`,MOBILE_APP_APP_STORE_LINK:`https://apps.apple.com/us/app/spendbase/id6474616305`,MOBILE_APP_GOOGLE_PLAY_LINK:`https://play.google.com/store/apps/details?id=com.spendbase.cards`,MULTICURRENCY_ELIGIBLE_TEAM_IDS:`019b024e-1fd1-7321-b5df-14cb684b3fc3,019aa179-7514-7c82-9367-eef93c84e1cf,008dad26-c437-4209-a92b-d691a4f1ebbe,ca2d6f86-6288-4f02-82b1-fb84199bbf0b,94dc5f39-5bdc-4a1f-99b3-511c6f15ed56,019bf9d3-0aa1-7007-8e98-609c6c9413a0,15dce509-7729-470d-a9fc-895b6c9e065f,019bf95e-dc93-7b24-9675-7e5b3aaba3ff,019bff35-652b-790c-b45e-a74a74a95b29,019c89b4-7bb2-7c93-8a89-70294d6eb6b7,*`,ENABLE_BILL_PAY_FEATURE:``,ENABLE_AUTOPAY_FEATURE:`false`,ENABLE_TRIPS_FEATURE:`false`,ENABLE_CLOUD_FEATURE:`false`,ENABLE_DOCUMENT_REQUESTS:`true`,PHYSICAL_CARDS_ENABLED:`true`,PHYSICAL_CARDS_TEAM_IDS:``,GBP_FASTER_PAYMENTS_DISABLED:`false`,ENABLE_CRYPTO_TOPUP_FEATURE:`true`,CRYPTO_NETWORKS:`ethereum`,API_KEYS_ENABLED:`false`,BANKING_REDIRECT_PATHS:`virtual-cards,banking-non-eu,banking-cards-for-ads,multi-currency`}.CHROME_EXTENSION_STORE_URL||``;static CHROME_EXTENSION_APP_ID={ENV:`production`,NODE_ENV:`production`,API_URL:`https://api.prod.spendbase.co`,CARDS_API_URL:`https://api.prod.spendbase.co`,WS_URL:`wss://live.prod.spendbase.co/connection/websocket`,G_CLIENT_ID:`196483825483-eb7b4e8hh9auojbv6ae3jliqito9f3eb.apps.googleusercontent.com`,GTM_ID:`GTM-K2ZT9C8G`,OPEN_REPLAY_ID:``,VERSION:`2.4.1`,BUILD_DATE:`2026-09-30T12:15:34.162Z`,HASH:`dc6e7975f3fbf7d9e601fe1a641a7af861753f69`,CHROME_EXTENSION_STORE_URL:`https://chromewebstore.google.com/detail/spendbase-for-chrome-saas/cfecjggfjnckaiklddkhamakopojjllc`,CHROME_EXTENSION_APP_ID:`cfecjggfjnckaiklddkhamakopojjllc`,BEAMER_PROJECT_ID:`KygIOlYk64753`,CLARITY_PROJECT_ID:`pwtfxakczw`,TRIBE_CARDS_ENABLE:`true`,DEMO:`false`,ENABLE_AI_ASSISTANT_FEATURE:`false`,ENABLE_ONBOARDING_OFFBOARDING_FEATURE:`true`,ENABLE_PASSWORD_MANAGER_FEATURE:`true`,ENABLE_GOOGlE_SHEETS_INTEGRATION_FEATURE:`true`,ENABLE_US_KYB_FEATURE:`true`,PUBLIC_POSTHOG_KEY:`phc_7U4Kt0xkp6n9qgX8JZrtjaB8Mj3f0Ja2dXU59AL2ZkV`,PUBLIC_POSTHOG_HOST:`https://eu.i.posthog.com`,SENTRY_DSN_PM:`https://9b5e73ab199b02ef952de4f65e3e95cb@o4511461972770816.ingest.us.sentry.io/4511461980766208`,SENTRY_ENV:`production`,MOBILE_APP_APP_STORE_
2LINK:`https://apps.apple.com/us/app/spendbase/id6474616305`,MOBILE_APP_GOOGLE_PLAY_LINK:`https://play.google.com/store/apps/details?id=com.spendbase.cards`,MULTICURRENCY_ELIGIBLE_TEAM_IDS:`019b024e-1fd1-7321-b5df-14cb684b3fc3,019aa179-7514-7c82-9367-eef93c84e1cf,008dad26-c437-4209-a92b-d691a4f1ebbe,ca2d6f86-6288-4f02-82b1-fb84199bbf0b,94dc5f39-5bdc-4a1f-99b3-511c6f15ed56,019bf9d3-0aa1-7007-8e98-609c6c9413a0,15dce509-7729-470d-a9fc-895b6c9e065f,019bf95e-dc93-7b24-9675-7e5b3aaba3ff,019bff35-652b-790c-b45e-a74a74a95b29,019c89b4-7bb2-7c93-8a89-70294d6eb6b7,*`,ENABLE_BILL_PAY_FEATURE:``,ENABLE_AUTOPAY_FEATURE:`false`,ENABLE_TRIPS_FEATURE:`false`,ENABLE_CLOUD_FEATURE:`false`,ENABLE_DOCUMENT_REQUESTS:`true`,PHYSICAL_CARDS_ENABLED:`true`,PHYSICAL_CARDS_TEAM_IDS:``,GBP_FASTER_PAYMENTS_DISABLED:`false`,ENABLE_CRYPTO_TOPUP_FEATURE:`true`,CRYPTO_NETWORKS:`ethereum`,API_KEYS_ENABLED:`false`,BANKING_REDIRECT_PATHS:`virtual-cards,banking-non-eu,banking-cards-for-ads,multi-currency`}.CHROME_EXTENSION_APP_ID||``;static PUBLIC_POSTHOG_KEY={ENV:`production`,NODE_ENV:`production`,API_URL:`https://api.prod.spendbase.co`,CARDS_API_URL:`https://api.prod.spendbase.co`,WS_URL:`wss://live.prod.spendbase.co/connection/websocket`,G_CLIENT_ID:`196483825483-eb7b4e8hh9auojbv6ae3jliqito9f3eb.apps.googleusercontent.com`,GTM_ID:`GTM-K2ZT9C8G`,OPEN_REPLAY_ID:``,VERSION:`2.4.1`,BUILD_DATE:`2026-09-30T12:15:34.162Z`,HASH:`dc6e7975f3fbf7d9e601fe1a641a7af861753f69`,CHROME_EXTENSION_STORE_URL:`https://chromewebstore.google.com/detail/spendbase-for-chrome-saas/cfecjggfjnckaiklddkhamakopojjllc`,CHROME_EXTENSION_APP_ID:`cfecjggfjnckaiklddkhamakopojjllc`,BEAMER_PROJECT_ID:`KygIOlYk64753`,CLARITY_PROJECT_ID:`pwtfxakczw`,TRIBE_CARDS_ENABLE:`true`,DEMO:`false`,ENABLE_AI_ASSISTANT_FEATURE:`false`,ENABLE_ONBOARDING_OFFBOARDING_FEATURE:`true`,ENABLE_PASSWORD_MANAGER_FEATURE:`true`,ENABLE_GOOGlE_SHEETS_INTEGRATION_FEATURE:`true`,ENABLE_US_KYB_FEATURE:`true`,PUBLIC_POSTHOG_KEY:`phc_7U4Kt0xkp6n9qgX8JZrtjaB8Mj3f0Ja2dXU59AL2ZkV`,PUBLIC_POSTHOG_HOST:`https://eu.i.posthog.com`,SENTRY_DSN_PM:`https://9b5e73ab199b02ef952de4f65e3e95cb@o4511461972770816.ingest.us.sentry.io/4511461980766208`,SENTRY_ENV:`production`,MOBILE_APP_APP_STORE_LINK:`https://apps.apple.com/us/app/spendbase/id6474616305`,MOBILE_APP_GOOGLE_PLAY_LINK:`https://play.google.com/store/apps/details?id=com.spendbase.cards`,MULTICURRENCY_ELIGIBLE_TEAM_IDS:`019b024e-1fd1-7321-b5df-14cb684b3fc3,019aa179-7514-7c82-9367-eef93c84e1cf,008dad26-c437-4209-a92b-d691a4f1ebbe,ca2d6f86-6288-4f02-82b1-fb84199bbf0b,94dc5f39-5bdc-4a1f-99b3-511c6f15ed56,019bf9d3-0aa1-7007-8e98-609c6c9413a0,15dce509-7729-470d-a9fc-895b6c9e065f,019bf95e-dc93-7b24-9675-7e5b3aaba3ff,019bff35-652b-790c-b45e-a74a74a95b29,019c89b4-7bb2-7c93-8a89-70294d6eb6b7,*`,ENABLE_BILL_PAY_FEATURE:``,ENABLE_AUTOPAY_FEATURE:`false`,ENABLE_TRIPS_FEATURE:`false`,ENABLE_CLOUD_FEATURE:`false`,ENABLE_DOCUMENT_REQUESTS:`true`,PHYSICAL_CARDS_ENABLED:`true`,PHYSICAL_CARDS_TEAM_IDS:``,GBP_FASTER_PAYMENTS_DISABLED:`false`,ENABLE_CRYPTO_TOPUP_FEATURE:`true`,CRYPTO_NETWORKS:`ethereum`,API_KEYS_ENABLED:`false`,BANKING_REDIRECT_PATHS:`virtual-cards,banking-non-eu,banking-cards-for-ads,multi-currency`}.PUBLIC_POSTHOG_KEY||``;static PUBLIC_POSTHOG_HOST={ENV:`production`,NODE_ENV:`production`,API_URL:`https://api.prod.spendbase.co`,CARDS_API_URL:`https://api.prod.spendbase.co`,WS_URL:`wss://live.prod.spendbase.co/connection/websocket`,G_CLIENT_ID:`196483825483-eb7b4e8hh9auojbv6ae3jliqito9f3eb.apps.googleusercontent.com`,GTM_ID:`GTM-K2ZT9C8G`,OPEN_REPLAY_ID:``,VERSION:`2.4.1`,BUILD_DATE:`2026-09-30T12:15:34.162Z`,HASH:`dc6e7975f3fbf7d9e601fe1a641a7af861753f69`,CHROME_EXTENSION_STORE_URL:`https://chromewebstore.google.com/detail/spendbase-for-chrome-saas/cfecjggfjnckaiklddkhamakopojjllc`,CHROME_EXTENSION_APP_ID:`cfecjggfjnckaiklddkhamakopojjllc`,BEAMER_PROJECT_ID:`KygIOlYk64753`,CLARITY_PROJECT_ID:`pwtfxakczw`,TRIBE_CARDS_ENABLE:`true`,DEMO:`false`,ENABLE_AI_ASSISTANT_FEATURE:`false`,ENABLE_ONBOARDING_OFFBOARDING_FEATURE:`true`,ENABLE_PASSWORD_MANAGER_FEATURE:`true`,ENABLE_GOOGlE_SHEETS_INTEGRATION_FEATURE:`true`,ENABLE_US_KYB_FEATURE:`true`,PUBLIC_POSTHOG_KEY:`phc_7U4Kt0xkp6n9qgX8JZrtjaB8Mj3f0Ja2dXU59AL2ZkV`,PUBLIC_POSTHOG_HOST:`https://eu.i.posthog.com`,SENTRY_DSN_PM:`https://9b5e73ab199b02ef952de4f65e3e95cb@o4511461972770816.ingest.us.sentry.io/4511461980766208`,SENTRY_ENV:`production`,MOBILE_APP_APP_STORE_
2LINK:`https://apps.apple.com/us/app/spendbase/id6474616305`,MOBILE_APP_GOOGLE_PLAY_LINK:`https://play.google.com/store/apps/details?id=com.spendbase.cards`,MULTICURRENCY_ELIGIBLE_TEAM_IDS:`019b024e-1fd1-7321-b5df-14cb684b3fc3,019aa179-7514-7c82-9367-eef93c84e1cf,008dad26-c437-4209-a92b-d691a4f1ebbe,ca2d6f86-6288-4f02-82b1-fb84199bbf0b,94dc5f39-5bdc-4a1f-99b3-511c6f15ed56,019bf9d3-0aa1-7007-8e98-609c6c9413a0,15dce509-7729-470d-a9fc-895b6c9e065f,019bf95e-dc93-7b24-9675-7e5b3aaba3ff,019bff35-652b-790c-b45e-a74a74a95b29,019c89b4-7bb2-7c93-8a89-70294d6eb6b7,*`,ENABLE_BILL_PAY_FEATURE:``,ENABLE_AUTOPAY_FEATURE:`false`,ENABLE_TRIPS_FEATURE:`false`,ENABLE_CLOUD_FEATURE:`false`,ENABLE_DOCUMENT_REQUESTS:`true`,PHYSICAL_CARDS_ENABLED:`true`,PHYSICAL_CARDS_TEAM_IDS:``,GBP_FASTER_PAYMENTS_DISABLED:`false`,ENABLE_CRYPTO_TOPUP_FEATURE:`true`,CRYPTO_NETWORKS:`ethereum`,API_KEYS_ENABLED:`false`,BANKING_REDIRECT_PATHS:`virtual-cards,banking-non-eu,banking-cards-for-ads,multi-currency`}.PUBLIC_POSTHOG_HOST||``;static SENTRY_DSN_PM={ENV:`production`,NODE_ENV:`production`,API_URL:`https://api.prod.spendbase.co`,CARDS_API_URL:`https://api.prod.spendbase.co`,WS_URL:`wss://live.prod.spendbase.co/connection/websocket`,G_CLIENT_ID:`196483825483-eb7b4e8hh9auojbv6ae3jliqito9f3eb.apps.googleusercontent.com`,GTM_ID:`GTM-K2ZT9C8G`,OPEN_REPLAY_ID:``,VERSION:`2.4.1`,BUILD_DATE:`2026-09-30T12:15:34.162Z`,HASH:`dc6e7975f3fbf7d9e601fe1a641a7af861753f69`,CHROME_EXTENSION_STORE_URL:`https://chromewebstore.google.com/detail/spendbase-for-chrome-saas/cfecjggfjnckaiklddkhamakopojjllc`,CHROME_EXTENSION_APP_ID:`cfecjggfjnckaiklddkhamakopojjllc`,BEAMER_PROJECT_ID:`KygIOlYk64753`,CLARITY_PROJECT_ID:`pwtfxakczw`,TRIBE_CARDS_ENABLE:`true`,DEMO:`false`,ENABLE_AI_ASSISTANT_FEATURE:`false`,ENABLE_ONBOARDING_OFFBOARDING_FEATURE:`true`,ENABLE_PASSWORD_MANAGER_FEATURE:`true`,ENABLE_GOOGlE_SHEETS_INTEGRATION_FEATURE:`true`,ENABLE_US_KYB_FEATURE:`true`,PUBLIC_POSTHOG_KEY:`phc_7U4Kt0xkp6n9qgX8JZrtjaB8Mj3f0Ja2dXU59AL2ZkV`,PUBLIC_POSTHOG_HOST:`https://eu.i.posthog.com`,SENTRY_DSN_PM:`https://9b5e73ab199b02ef952de4f65e3e95cb@o4511461972770816.ingest.us.sentry.io/4511461980766208`,SENTRY_ENV:`production`,MOBILE_APP_APP_STORE_LINK:`https://apps.apple.com/us/app/spendbase/id6474616305`,MOBILE_APP_GOOGLE_PLAY_LINK:`https://play.google.com/store/apps/details?id=com.spendbase.cards`,MULTICURRENCY_ELIGIBLE_TEAM_IDS:`019b024e-1fd1-7321-b5df-14cb684b3fc3,019aa179-7514-7c82-9367-eef93c84e1cf,008dad26-c437-4209-a92b-d691a4f1ebbe,ca2d6f86-6288-4f02-82b1-fb84199bbf0b,94dc5f39-5bdc-4a1f-99b3-511c6f15ed56,019bf9d3-0aa1-7007-8e98-609c6c9413a0,15dce509-7729-470d-a9fc-895b6c9e065f,019bf95e-dc93-7b24-9675-7e5b3aaba3ff,019bff35-652b-790c-b45e-a74a74a95b29,019c89b4-7bb2-7c93-8a89-70294d6eb6b7,*`,ENABLE_BILL_PAY_FEATURE:``,ENABLE_AUTOPAY_FEATURE:`false`,ENABLE_TRIPS_FEATURE:`false`,ENABLE_CLOUD_FEATURE:`false`,ENABLE_DOCUMENT_REQUESTS:`true`,PHYSICAL_CARDS_ENABLED:`true`,PHYSICAL_CARDS_TEAM_IDS:``,GBP_FASTER_PAYMENTS_DISABLED:`false`,ENABLE_CRYPTO_TOPUP_FEATURE:`true`,CRYPTO_NETWORKS:`ethereum`,API_KEYS_ENABLED:`false`,BANKING_REDIRECT_PATHS:`virtual-cards,banking-non-eu,banking-cards-for-ads,multi-currency`}.SENTRY_DSN_PM||``;static SENTRY_ENV={ENV:`production`,NODE_ENV:`production`,API_URL:`https://api.prod.spendbase.co`,CARDS_API_URL:`https://api.prod.spendbase.co`,WS_URL:`wss://live.prod.spendbase.co/connection/websocket`,G_CLIENT_ID:`196483825483-eb7b4e8hh9auojbv6ae3jliqito9f3eb.apps.googleusercontent.com`,GTM_ID:`GTM-K2ZT9C8G`,OPEN_REPLAY_ID:``,VERSION:`2.4.1`,BUILD_DATE:`2026-09-30T12:15:34.162Z`,HASH:`dc6e7975f3fbf7d9e601fe1a641a7af861753f69`,CHROME_EXTENSION_STORE_URL:`https://chromewebstore.google.com/detail/spendbase-for-chrome-saas/cfecjggfjnckaiklddkhamakopojjllc`,CHROME_EXTENSION_APP_ID:`cfecjggfjnckaiklddkhamakopojjllc`,BEAMER_PROJECT_ID:`KygIOlYk64753`,CLARITY_PROJECT_ID:`pwtfxakczw`,TRIBE_CARDS_ENABLE:`true`,DEMO:`false`,ENABLE_AI_ASSISTANT_FEATURE:`false`,ENABLE_ONBOARDING_OFFBOARDING_FEATURE:`true`,ENABLE_PASSWORD_MANAGER_FEATURE:`true`,ENABLE_GOOGlE_SHEETS_INTEGRATION_FEATURE:`true`,ENABLE_US_KYB_FEATURE:`true`,PUBLIC_POSTHOG_KEY:`phc_7U4Kt0xkp6n9qgX8JZrtjaB8Mj3f0Ja2dXU59AL2ZkV`,PUBLIC_POSTHOG_HOST:`https://eu.i.posthog.com`,SENTRY_DSN_PM:`https://9b5e73ab199b02ef952de4f65e3e95cb@o4511461972770816.ingest.us.sentry.io/4511461980766208`,SENTRY_ENV:`production`,MOBILE_APP_APP_STORE_
2LINK:`https://apps.apple.com/us/app/spendbase/id6474616305`,MOBILE_APP_GOOGLE_PLAY_LINK:`https://play.google.com/store/apps/details?id=com.spendbase.cards`,MULTICURRENCY_ELIGIBLE_TEAM_IDS:`019b024e-1fd1-7321-b5df-14cb684b3fc3,019aa179-7514-7c82-9367-eef93c84e1cf,008dad26-c437-4209-a92b-d691a4f1ebbe,ca2d6f86-6288-4f02-82b1-fb84199bbf0b,94dc5f39-5bdc-4a1f-99b3-511c6f15ed56,019bf9d3-0aa1-7007-8e98-609c6c9413a0,15dce509-7729-470d-a9fc-895b6c9e065f,019bf95e-dc93-7b24-9675-7e5b3aaba3ff,019bff35-652b-790c-b45e-a74a74a95b29,019c89b4-7bb2-7c93-8a89-70294d6eb6b7,*`,ENABLE_BILL_PAY_FEATURE:``,ENABLE_AUTOPAY_FEATURE:`false`,ENABLE_TRIPS_FEATURE:`false`,ENABLE_CLOUD_FEATURE:`false`,ENABLE_DOCUMENT_REQUESTS:`true`,PHYSICAL_CARDS_ENABLED:`true`,PHYSICAL_CARDS_TEAM_IDS:``,GBP_FASTER_PAYMENTS_DISABLED:`false`,ENABLE_CRYPTO_TOPUP_FEATURE:`true`,CRYPTO_NETWORKS:`ethereum`,API_KEYS_ENABLED:`false`,BANKING_REDIRECT_PATHS:`virtual-cards,banking-non-eu,banking-cards-for-ads,multi-currency`}.SENTRY_ENV||``;static MOBILE_APP_APP_STORE_LINK={ENV:`production`,NODE_ENV:`production`,API_URL:`https://api.prod.spendbase.co`,CARDS_API_URL:`https://api.prod.spendbase.co`,WS_URL:`wss://live.prod.spendbase.co/connection/websocket`,G_CLIENT_ID:`196483825483-eb7b4e8hh9auojbv6ae3jliqito9f3eb.apps.googleusercontent.com`,GTM_ID:`GTM-K2ZT9C8G`,OPEN_REPLAY_ID:``,VERSION:`2.4.1`,BUILD_DATE:`2026-09-30T12:15:34.162Z`,HASH:`dc6e7975f3fbf7d9e601fe1a641a7af861753f69`,CHROME_EXTENSION_STORE_URL:`https://chromewebstore.google.com/detail/spendbase-for-chrome-saas/cfecjggfjnckaiklddkhamakopojjllc`,CHROME_EXTENSION_APP_ID:`cfecjggfjnckaiklddkhamakopojjllc`,BEAMER_PROJECT_ID:`KygIOlYk64753`,CLARITY_PROJECT_ID:`pwtfxakczw`,TRIBE_CARDS_ENABLE:`true`,DEMO:`false`,ENABLE_AI_ASSISTANT_FEATURE:`false`,ENABLE_ONBOARDING_OFFBOARDING_FEATURE:`true`,ENABLE_PASSWORD_MANAGER_FEATURE:`true`,ENABLE_GOOGlE_SHEETS_INTEGRATION_FEATURE:`true`,ENABLE_US_KYB_FEATURE:`true`,PUBLIC_POSTHOG_KEY:`phc_7U4Kt0xkp6n9qgX8JZrtjaB8Mj3f0Ja2dXU59AL2ZkV`,PUBLIC_POSTHOG_HOST:`https://eu.i.posthog.com`,SENTRY_DSN_PM:`https://9b5e73ab199b02ef952de4f65e3e95cb@o4511461972770816.ingest.us.sentry.io/4511461980766208`,SENTRY_ENV:`production`,MOBILE_APP_APP_STORE_LINK:`https://apps.apple.com/us/app/spendbase/id6474616305`,MOBILE_APP_GOOGLE_PLAY_LINK:`https://play.google.com/store/apps/details?id=com.spendbase.cards`,MULTICURRENCY_ELIGIBLE_TEAM_IDS:`019b024e-1fd1-7321-b5df-14cb684b3fc3,019aa179-7514-7c82-9367-eef93c84e1cf,008dad26-c437-4209-a92b-d691a4f1ebbe,ca2d6f86-6288-4f02-82b1-fb84199bbf0b,94dc5f39-5bdc-4a1f-99b3-511c6f15ed56,019bf9d3-0aa1-7007-8e98-609c6c9413a0,15dce509-7729-470d-a9fc-895b6c9e065f,019bf95e-dc93-7b24-9675-7e5b3aaba3ff,019bff35-652b-790c-b45e-a74a74a95b29,019c89b4-7bb2-7c93-8a89-70294d6eb6b7,*`,ENABLE_BILL_PAY_FEATURE:``,ENABLE_AUTOPAY_FEATURE:`false`,ENABLE_TRIPS_FEATURE:`false`,ENABLE_CLOUD_FEATURE:`false`,ENABLE_DOCUMENT_REQUESTS:`true`,PHYSICAL_CARDS_ENABLED:`true`,PHYSICAL_CARDS_TEAM_IDS:``,GBP_FASTER_PAYMENTS_DISABLED:`false`,ENABLE_CRYPTO_TOPUP_FEATURE:`true`,CRYPTO_NETWORKS:`ethereum`,API_KEYS_ENABLED:`false`,BANKING_REDIRECT_PATHS:`virtual-cards,banking-non-eu,banking-cards-for-ads,multi-currency`}.MOBILE_APP_APP_STORE_LINK||``;static MOBILE_APP_GOOGLE_PLAY_LINK={ENV:`production`,NODE_ENV:`production`,API_URL:`https://api.prod.spendbase.co`,CARDS_API_URL:`https://api.prod.spendbase.co`,WS_URL:`wss://live.prod.spendbase.co/connection/websocket`,G_CLIENT_ID:`196483825483-eb7b4e8hh9auojbv6ae3jliqito9f3eb.apps.googleusercontent.com`,GTM_ID:`GTM-K2ZT9C8G`,OPEN_REPLAY_ID:``,VERSION:`2.4.1`,BUILD_DATE:`2026-09-30T12:15:34.162Z`,HASH:`dc6e7975f3fbf7d9e601fe1a641a7af861753f69`,CHROME_EXTENSION_STORE_URL:`https://chromewebstore.google.com/detail/spendbase-for-chrome-saas/cfecjggfjnckaiklddkhamakopojjllc`,CHROME_EXTENSION_APP_ID:`cfecjggfjnckaiklddkhamakopojjllc`,BEAMER_PROJECT_ID:`KygIOlYk64753`,CLARITY_PROJECT_ID:`pwtfxakczw`,TRIBE_CARDS_ENABLE:`true`,DEMO:`false`,ENABLE_AI_ASSISTANT_FEATURE:`false`,ENABLE_ONBOARDING_OFFBOARDING_FEATURE:`true`,ENABLE_PASSWORD_MANAGER_FEATURE:`true`,ENABLE_GOOGlE_SHEETS_INTEGRATION_FEATURE:`true`,ENABLE_US_KYB_FEATURE:`true`,PUBLIC_POSTHOG_KEY:`phc_7U4Kt0xkp6n9qgX8JZrtjaB8Mj3f0Ja2dXU59AL2ZkV`,PUBLIC_POSTHOG_HOST:`https://eu.i.posthog.com`,SENTRY_DSN_PM:`https://9b5e73ab199b02ef952de4f65e3e95cb@o4511461972770816.ingest.us.sentry.io/4511461980766208`,SENTRY_ENV:`production`,MOBILE_APP_APP_STORE_
2LINK:`https://apps.apple.com/us/app/spendbase/id6474616305`,MOBILE_APP_GOOGLE_PLAY_LINK:`https://play.google.com/store/apps/details?id=com.spendbase.cards`,MULTICURRENCY_ELIGIBLE_TEAM_IDS:`019b024e-1fd1-7321-b5df-14cb684b3fc3,019aa179-7514-7c82-9367-eef93c84e1cf,008dad26-c437-4209-a92b-d691a4f1ebbe,ca2d6f86-6288-4f02-82b1-fb84199bbf0b,94dc5f39-5bdc-4a1f-99b3-511c6f15ed56,019bf9d3-0aa1-7007-8e98-609c6c9413a0,15dce509-7729-470d-a9fc-895b6c9e065f,019bf95e-dc93-7b24-9675-7e5b3aaba3ff,019bff35-652b-790c-b45e-a74a74a95b29,019c89b4-7bb2-7c93-8a89-70294d6eb6b7,*`,ENABLE_BILL_PAY_FEATURE:``,ENABLE_AUTOPAY_FEATURE:`false`,ENABLE_TRIPS_FEATURE:`false`,ENABLE_CLOUD_FEATURE:`false`,ENABLE_DOCUMENT_REQUESTS:`true`,PHYSICAL_CARDS_ENABLED:`true`,PHYSICAL_CARDS_TEAM_IDS:``,GBP_FASTER_PAYMENTS_DISABLED:`false`,ENABLE_CRYPTO_TOPUP_FEATURE:`true`,CRYPTO_NETWORKS:`ethereum`,API_KEYS_ENABLED:`false`,BANKING_REDIRECT_PATHS:`virtual-cards,banking-non-eu,banking-cards-for-ads,multi-currency`}.MOBILE_APP_GOOGLE_PLAY_LINK||``;static MULTICURRENCY_ELIGIBLE_TEAM_IDS={ENV:`production`,NODE_ENV:`production`,API_URL:`https://api.prod.spendbase.co`,CARDS_API_URL:`https://api.prod.spendbase.co`,WS_URL:`wss://live.prod.spendbase.co/connection/websocket`,G_CLIENT_ID:`196483825483-eb7b4e8hh9auojbv6ae3jliqito9f3eb.apps.googleusercontent.com`,GTM_ID:`GTM-K2ZT9C8G`,OPEN_REPLAY_ID:``,VERSION:`2.4.1`,BUILD_DATE:`2026-09-30T12:15:34.162Z`,HASH:`dc6e7975f3fbf7d9e601fe1a641a7af861753f69`,CHROME_EXTENSION_STORE_URL:`https://chromewebstore.google.com/detail/spendbase-for-chrome-saas/cfecjggfjnckaiklddkhamakopojjllc`,CHROME_EXTENSION_APP_ID:`cfecjggfjnckaiklddkhamakopojjllc`,BEAMER_PROJECT_ID:`KygIOlYk64753`,CLARITY_PROJECT_ID:`pwtfxakczw`,TRIBE_CARDS_ENABLE:`true`,DEMO:`false`,ENABLE_AI_ASSISTANT_FEATURE:`false`,ENABLE_ONBOARDING_OFFBOARDING_FEATURE:`true`,ENABLE_PASSWORD_MANAGER_FEATURE:`true`,ENABLE_GOOGlE_SHEETS_INTEGRATION_FEATURE:`true`,ENABLE_US_KYB_FEATURE:`true`,PUBLIC_POSTHOG_KEY:`phc_7U4Kt0xkp6n9qgX8JZrtjaB8Mj3f0Ja2dXU59AL2ZkV`,PUBLIC_POSTHOG_HOST:`https://eu.i.posthog.com`,SENTRY_DSN_PM:`https://9b5e73ab199b02ef952de4f65e3e95cb@o4511461972770816.ingest.us.sentry.io/4511461980766208`,SENTRY_ENV:`production`,MOBILE_APP_APP_STORE_LINK:`https://apps.apple.com/us/app/spendbase/id6474616305`,MOBILE_APP_GOOGLE_PLAY_LINK:`https://play.google.com/store/apps/details?id=com.spendbase.cards`,MULTICURRENCY_ELIGIBLE_TEAM_IDS:`019b024e-1fd1-7321-b5df-14cb684b3fc3,019aa179-7514-7c82-9367-eef93c84e1cf,008dad26-c437-4209-a92b-d691a4f1ebbe,ca2d6f86-6288-4f02-82b1-fb84199bbf0b,94dc5f39-5bdc-4a1f-99b3-511c6f15ed56,019bf9d3-0aa1-7007-8e98-609c6c9413a0,15dce509-7729-470d-a9fc-895b6c9e065f,019bf95e-dc93-7b24-9675-7e5b3aaba3ff,019bff35-652b-790c-b45e-a74a74a95b29,019c89b4-7bb2-7c93-8a89-70294d6eb6b7,*`,ENABLE_BILL_PAY_FEATURE:``,ENABLE_AUTOPAY_FEATURE:`false`,ENABLE_TRIPS_FEATURE:`false`,ENABLE_CLOUD_FEATURE:`false`,ENABLE_DOCUMENT_REQUESTS:`true`,PHYSICAL_CARDS_ENABLED:`true`,PHYSICAL_CARDS_TEAM_IDS:``,GBP_FASTER_PAYMENTS_DISABLED:`false`,ENABLE_CRYPTO_TOPUP_FEATURE:`true`,CRYPTO_NETWORKS:`ethereum`,API_KEYS_ENABLED:`false`,BANKING_REDIRECT_PATHS:`virtual-cards,banking-non-eu,banking-cards-for-ads,multi-currency`}.MULTICURRENCY_ELIGIBLE_TEAM_IDS||``;static BANKING_REDIRECT_PATHS=({ENV:`production`,NODE_ENV:`production`,API_URL:`https://api.prod.spendbase.co`,CARDS_API_URL:`https://api.prod.spendbase.co`,WS_URL:`wss://live.prod.spendbase.co/connection/websocket`,G_CLIENT_ID:`196483825483-eb7b4e8hh9auojbv6ae3jliqito9f3eb.apps.googleusercontent.com`,GTM_ID:`GTM-K2ZT9C8G`,OPEN_REPLAY_ID:``,VERSION:`2.4.1`,BUILD_DATE:`2026-09-30T12:15:34.162Z`,HASH:`dc6e7975f3fbf7d9e601fe1a641a7af861753f69`,CHROME_EXTENSION_STORE_URL:`https://chromewebstore.google.com/detail/spendbase-for-chrome-saas/cfecjggfjnckaiklddkhamakopojjllc`,CHROME_EXTENSION_APP_ID:`cfecjggfjnckaiklddkhamakopojjllc`,BEAMER_PROJECT_ID:`KygIOlYk64753`,CLARITY_PROJECT_ID:`pwtfxakczw`,TRIBE_CARDS_ENABLE:`true`,DEMO:`false`,ENABLE_AI_ASSISTANT_FEATURE:`false`,ENABLE_ONBOARDING_OFFBOARDING_FEATURE:`true`,ENABLE_PASSWORD_MANAGER_FEATURE:`true`,ENABLE_GOOGlE_SHEETS_INTEGRATION_FEATURE:`true`,ENABLE_US_KYB_FEATURE:`true`,PUBLIC_POSTHOG_KEY:`phc_7U4Kt0xkp6n9qgX8JZrtjaB8Mj3f0Ja2dXU59AL2ZkV`,PUBLIC_POSTHOG_HOST:`https://eu.i.posthog.com`,SENTRY_DSN_PM:`https://9b5e73ab199b02ef952de4f65e3e95cb@o4511461972770816.ingest.us.sentry.io/4511461980766208`,SENTRY_ENV:`production`,MOBILE_APP_APP_STORE_
2LINK:`https://apps.apple.com/us/app/spendbase/id6474616305`,MOBILE_APP_GOOGLE_PLAY_LINK:`https://play.google.com/store/apps/details?id=com.spendbase.cards`,MULTICURRENCY_ELIGIBLE_TEAM_IDS:`019b024e-1fd1-7321-b5df-14cb684b3fc3,019aa179-7514-7c82-9367-eef93c84e1cf,008dad26-c437-4209-a92b-d691a4f1ebbe,ca2d6f86-6288-4f02-82b1-fb84199bbf0b,94dc5f39-5bdc-4a1f-99b3-511c6f15ed56,019bf9d3-0aa1-7007-8e98-609c6c9413a0,15dce509-7729-470d-a9fc-895b6c9e065f,019bf95e-dc93-7b24-9675-7e5b3aaba3ff,019bff35-652b-790c-b45e-a74a74a95b29,019c89b4-7bb2-7c93-8a89-70294d6eb6b7,*`,ENABLE_BILL_PAY_FEATURE:``,ENABLE_AUTOPAY_FEATURE:`false`,ENABLE_TRIPS_FEATURE:`false`,ENABLE_CLOUD_FEATURE:`false`,ENABLE_DOCUMENT_REQUESTS:`true`,PHYSICAL_CARDS_ENABLED:`true`,PHYSICAL_CARDS_TEAM_IDS:``,GBP_FASTER_PAYMENTS_DISABLED:`false`,ENABLE_CRYPTO_TOPUP_FEATURE:`true`,CRYPTO_NETWORKS:`ethereum`,API_KEYS_ENABLED:`false`,BANKING_REDIRECT_PATHS:`virtual-cards,banking-non-eu,banking-cards-for-ads,multi-currency`}.BANKING_REDIRECT_PATHS||``).split(`,`).filter(Boolean)},Vi=`default`,z=Br();z.use(Hr).init({fallbackLng:`en-US`,ns:Vi,defaultNS:Vi,contextSeparator:`_c_`,pluralSeparator:`_p_`,nsSeparator:!1,keySeparator:!1,interpolation:{escapeValue:!1},react:{useSuspense:!1,transSupportBasicHtmlNodes:!0}}),z.on(`languageChanged`,e=>{sn.changeLanguage(e)});var Hi=(e,t,n)=>{let r=t.lastIndexOf(`?`),i=e[r===-1||r<t.lastIndexOf(`/`)?t:t.slice(0,r)];return i?typeof i==`function`?i():Promise.resolve(i):new Promise((e,r)=>{(typeof queueMicrotask==`function`?queueMicrotask:setTimeout)(r.bind(null,Error(`Unknown variable dynamic import: `+t+(t.split(`/`).length===n?``:`. Note that variables only represent file names one level deep.`))))})},B=e(ye()),Ui=e(h()),Wi=e(d()),Gi=e(ie()),Ki=e(C()),qi=e(p()),Ji=e(ne()),Yi=e(a()),Xi=e(Te());B.extend(qi.default),B.extend(Ki.default),B.extend(Yi.default),B.extend(Wi.default),B.extend(Xi.default),B.extend(Gi.default),B.extend(Ji.default);var Zi=`en-US`,Qi={[Zi]:`en`,"uk-UA":Ui},$i=154,ea=z.t(`Only alphabetic characters, hyphens, commas, periods, forward slashes, and spaces are allowed`),ta=z.t(`Required`),na=z.t(`Please enter a valid email address.`),ra=z.t(`Card name must be at least 3 characters`),ia=z.t(`Card name must not exceed 26 characters`),aa=z.t(`Use only letters, numbers, and these symbols: ! ~ ' " ? @ : , * . + = _ -\` (and spaces) for the card name.`),oa=z.t(`Use latin characters only.`),sa=z.t(`Use only letters, numbers, and these symbols: ! ~ ' " ? @ : , * . + = _ -\` (and spaces) for the account name.`),ca=`\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF`,la=`[A-Za-z0-9${ca}](?:[A-Za-z0-9.~${ca}-]*[A-Za-z0-9${ca}])?`,ua=`[A-Za-z${ca}](?:[A-Za-z0-9.~${ca}-]*[A-Za-z${ca}])?`,da=RegExp(`^[^\\s@]+@(?:${la}\\.)+${ua}$`),fa=(e=na)=>[da,{message:e,excludeEmptyString:!0}],pa=e=>e.toLowerCase().trim(),ma=(e,t)=>!e||!t?!1:pa(e)===pa(t),ha=e=>e?da.test(pa(e)):!1,ga=e=>{let t=pa(e).split(`@`);return t.length===2?t[1]:null},_a=(e,t)=>{let n=ga(e);return n?t.includes(n):!1},va=[`mail.ru`,`yandex.ru`,`bk.ru`,`list.ru`,`inbox.ru`],ya=z.t(`Required`);z.t(`This document is required.`);var ba=e=>{if(!e)return!0;let t=e.split(`@`)[1];return t?!va.includes(t)&&!t.endsWith(`.ru`):!0},xa=e(ai()),Sa=/^[^"\\~`]*$/;(0,xa.default)(Kr);var Ca=250,wa=/^\S*$/,Ta=()=>Yr().required(z.t(`Password is required`)).max(Ca,z.t(`Password must be no longer than {{n}} characters`,{n:Ca})).matches(wa,{message:z.t(`Password cannot contain spaces`),excludeEmptyString:!0}).matches(Sa,{message:z.t('Password cannot contain " \\ ~ or `'),excludeEmptyString:!0}).min(12,z.t(`Password must be at least {{n}} characters`,{n:12})).minNumbers(1,z.t(`Password must contain a number`)).minUppercase(1,z.t(`Password must contain an uppercase letter`)).minSymbols(1,z.t(`Password must contain a special character`)),Ea=(e=`password`)=>Yr().required(z.t(`Please retype your password`)).oneOf([si(e)],z.t(`Passwords do not match`)),Da=/^(?:https?:\/\/)?(?:www\.)?([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,}$/i,Oa=/^([a-z0-9-]+\.)+[a-z]{2,}$/i,ka=e=>{if(!e)return e;let t=e.trim().toLowerCase();return!t.startsWith(`http://`)&&!t.startsWith(`https://`)&&(t=`https://${t}`),t},Aa=e=>{if(!e?.trim()||!Da.test(e.trim()))return!1;try{return new URL(ka(e.trim())),!0}catch{return!1}},ja=e=>{let t=e.trim();return t&&(/^https?:\/\//i.test(t)?t:`https://${t}`)},Ma=e=>{if(!e?.trim())return!1;try{let{hostname:t}=new URL(ja(e));return Oa.test(t)}catch{return!1}},Na=(e,t)=>e.find(e=>ma(e?.email,t?.email)),Pa=e=>e.replace(/\s/g,``),Fa=e=>e.stopPropagation(),Ia=e=>{let[t,n]=e?.trim().split(/\s+/)??[];if(t)return(t[0]+(n?.[0]??``)).toUpperCase()},La=e=>`${e.firstName} ${e.lastName}`,Ra=e=>{let t=(0,B.default)(e).utc();return(0,B.default)().diff(t,`M`)>=3},za=`filename=`,Ba=`filename*=UTF-8''`,Va=(e,t)=>decodeURI(e).replace(t?Ba:za,``).trim().replace(/^"+|"+$/g,``),Ha=e=>{let t=e.split(`;`),n,r;for(let e of t)e.includes(za)&&(n=e),e.includes(Ba)&&(r=e);return!n&&!r?``:Va(r||n,!!r)},Ua=`download`,Wa=6e4,Ga=(e,t)=>{let n=URL.createObjectURL(e),r=document.createElement(`a`);r.href=n,r.download=t||Ua,r.rel=`noopener`,document.body.appendChild(r),r.click(),setTimeout(()=>r.remove(),0),setTimeout(()=>URL.revokeObjectURL(n),Wa)},Ka=async(e,t)=>{let n=await fetch(e);if(!n.ok)throw Error(`Failed to fetch file: ${n.status}`);Ga(await n.blob(),t)},qa=e=>e?e.charAt(0).toUpperCase()+e.slice(1):``,Ja=()=>window.crypto.randomUUID(),Ya=e=>{if(e<0||isNaN(e))return{hours:0,minutes:0,seconds:0};let t=Math.floor(e/3600),n=Math.floor(e/60)-t*60,r=e%60;return{hours:t,minutes:n,seconds:+parseFloat(`${r}`).toFixed(0)}},Xa=(e,t=`.`)=>`${e?.charAt(0)?.toUpperCase()}${t}`,Za=e=>e?e.split(` `).filter(e=>!!e).slice(0,2).map(e=>e?.charAt(0)?.toUpperCase()||``).join(``):``,Qa=e=>e?.charAt(0)?.toUpperCase()||``,$a=e=>{if(!e)return null;try{let t=e.startsWith(`http`)?e:`https://${e}`,{hostname:n}=new URL(t);return`https://icons.duckduckgo.com/ip3/${n}.ico`}catch{return null}},eo=new Map;function to(e){return eo.get(e)??null}function no(e,t){eo.set(e,t)}function ro(e){if(!e)return null;try{let t=e.startsWith(`http`)?e:`https://${e}`;return new URL(t).hostname}catch{return null}}var io=137.508,ao=e=>`hsl(${e*io},50%,75%)`;function oo(e){return typeof e==`object`&&!!e&&Object.prototype.hasOwnProperty.call(e,`startDate`)&&Object.prototype.hasOwnProperty.call(e,`endDate`)}var so=`/no-access`,co=`/auth`,lo=`${co}/login`,uo=`${co}/sign-up`,fo=`${co}/sign-up/email`,po=`${co}/sign-in`,mo=`${co}/verify-email/:email`,ho=`${co}/forgot-password`,go=`${co}/tfa-confirmation`,_o=`${co}/set-new-password`,vo=`${co}/account-locked`,yo=`/confirm-email`,bo=`/oauth`,xo=`/open-banking/callback`,So={CREATE_PASSWORD:`/create-password`,COMPANY_DETAILS:`/company-detail
2s`,CONTINUE_ON_WEB:`/continue-on-web`},Co=`/invite`;`${Co}`;var wo=`/link-expired`,To=`/upload/:token`,Eo=`/insights`,Do=`/dashboard`,Oo=`/profile`;`${Oo}`;var ko=`/qr/login`,Ao=`redirectUrl`,jo=`source`,Mo=`extension`,No=`password-extension`,Po=`record`,Fo={ROOT:{path:`/applications`,title:z.t(`Applications`)},DETAILS:{path:`/applications/:id`,title:e=>z.t(`Applications: {{ name }}`,{name:e})},ARCHIVE:{path:`/applications/archive`,title:z.t(`Applications: Archive`)}},Io={ROOT:{path:`/employees`,title:z.t(`Applications`)},DETAILS:{path:`/employees/:id`,title:e=>z.t(`Employees: {{ name }}`,{name:e})},ARCHIVE:{path:`/employees/archive`,title:z.t(`Employees: Archive`)},RESOLVE_BY_USER_ID:{path:`/employees/resolve/:userId`}},Lo={ROOT:{path:`/profile`},PERSONAL:{path:`/profile/personal`},TEAM:{path:`/profile/team`},USER_DETAILS:{path:`/profile/team/users/:userId`},COMPANY:{path:`/profile/company`},NOTIFICATIONS:{path:`/profile/notifications`},SECURITY:{path:`/profile/security`}},Ro={ROOT:{path:`/discounts`,title:z.t(`Discounts`)}},zo={ROOT:{path:`/get-started`,title:z.t(`Get started`)}},Bo={ROOT:{path:`/password-manager`},SET_UP:{path:`/password-manager/auth/set-up`},UNLOCK:{path:`/password-manager/auth/unlock`},FOLDER:{path:`/password-manager/folder/:id`},CREATE_RECORD:{path:`/password-manager/create-record`},EDIT_RECORD:{path:`/password-manager/edit-record/:id`},RECORD:{path:`/password-manager/record/:id`},SETTINGS:{path:`/password-manager/settings`},RECOVERY:{path:`/password-manager/auth/recovery`},ARCHIVE:{path:`/password-manager/archive`}},Vo=`/money/money-invitation`,Ho=`/money/money-activation`,Uo=`${Ho}/disclosures`;`${Ho}`,`${Ho}`,`${Ho}`,`${Ho}`,`${Ho}`,`${Ho}`,`${Ho}`,`${Ho}`,`${Ho}`,`${Ho}`;var Wo=`/money`,Go=`/money/our-partners`,Ko=`/money/fraud-prevention`,qo=`/money/currency-rates`,Jo=`/money/limits`,Yo=`/money/fees`,Xo=`/money/move`,Zo=`/money/move/send-out`,Qo=`/money/move/transfer`,$o=`/money/settings`,es=`/money/unsubscribe-conversion-fee-notification`,ts=`/money/mcp/auth`,ns=`${Wo}/cards/create`,rs=`${Wo}/cards/:id?`,is=`${Wo}/accounts`,as=`${Wo}/withdraw`,os=`${Wo}/add-funds`,ss=`${Wo}/accounting`,cs=`${Wo}/accounting/settings`,ls=`${Wo}/accounting/set-up`,us=`${Wo}/payments`,ds=`${Wo}/payments/settings`,fs=`/integrations`,ps=`/integrations/:category?`,ms=`/integrations/:service/settings`,hs=`/release-notes`,gs=`/procurement`,_s=`${gs}/requests/:id?`,vs=`${gs}/workflows`,ys=`${vs}/new/:id?`,bs=`/trips`,xs=`${bs}/:id`,Ss=`${bs}/policies`,Cs=`${Ss}/new`,ws=`${Ss}/:id`,Ts=`https://www.spendbase.co/terms-and-conditions`,Es=`https://www.spendbase.co/privacy-policy`,Ds=`https://admin.google.com/`,Os={ROOT:{path:`/money/onboarding`}},ks=`/money/kyb`,As={WORKFLOW:{path:`${ks}/workflow/:workflowId/:stepId`},VERIFICATION:{path:`${ks}/verification`},CONTINUE:{path:`${ks}/continue`}},js={ROOT:{path:`${Wo}/recipients`}},Ms={ROOT:{path:`${Wo}/billpays`},REVIEW:{path:`${Wo}/billpays/review/:id`}},Ns={ROOT:{path:`${Wo}/ach-requests`}},Ps={ROOT:{path:`${Wo}/convert`}},Fs={INSIGHTS:`Insights`,VIRTUAL_CARDS:`Money`,USERS:`Employees`,INTEGRATIONS:`Integrations`,PROCUREMENT:`Procurement`,PROCUREMENT_WORKFLOWS:`Workflows`,TRIPS:`Trips`,DISCOUNTS:`Discounts`,PASSWORD_MANAGER:`Passwords`},Is={[lo]:`Login`,[uo]:`Sign up`,[ho]:`Forgot password`,[_o]:`Set new password`,[yo]:`Confirm email`,[wo]:`Link expired`,[Oo]:`Profile`,[Wo]:`Cards`,[is]:`Cards`,[as]:`Cards`,[os]:`Cards`,[Eo]:Fs.INSIGHTS,[Io.ROOT.path]:Fs.USERS,[Io.DETAILS.path]:Fs.USERS,[Fo.ROOT.path]:Fo.ROOT.title,[fs]:Fs.INTEGRATIONS,[gs]:Fs.PROCUREMENT,[vs]:Fs.PROCUREMENT_WORKFLOWS,[zo.ROOT.path]:zo.ROOT.title,[Fo.ROOT.path]:Fo.ROOT.title,[Fo.ARCHIVE.path]:Fo.ARCHIVE.title},Ls=3e3,Rs=(e,t,n=Ls)=>{let r=`${e}-ack`;return new Promise(i=>{let a=!1,o=null,s=e=>{a||(a=!0,document.removeEventListener(r,c),o!==null&&clearTimeout(o),i({acknowledged:e}))},c=()=>s(!0);document.addEventListener(r,c),o=setTimeout(()=>s(!1),n),document.dispatchEvent(new CustomEvent(e,{detail:t}))})},zs=()=>new URLSearchParams(location.search).get(jo)===Mo,Bs=()=>new URLSearchParams(location.search).get(jo)===No,Vs=async(e,t)=>{let{email:n,extensionReportToken:r}=e;if(!n||!r)return{acknowledged:!1};try{return location.search.includes(`extension-uninstalled`)&&t(),await Rs(Cl,{email:n,token:r})}catch{return{acknowledged:!1}}},Hs=async(e,t,n,r,i)=>{let{email:a,id:o}=e;if(!a||!t)return{acknowledged:!1};try{return location.search.includes(`password-extension-uninstalled`)&&i(),await Rs(wl,{email:a,token:t,refreshToken:n??null,tokenExpiresAt:r??null,accountId:o,isPasswordManagerEnabled:e.isPasswordManagerEnabled})}catch{return{acknowledged:!1}}},Us=(e,t)=>{if(typeof t==`string`&&!t.trim()&&!Ws(e))return;let n=new URLSearchParams(location.search);n.set(e,JSON.stringify(t));let r=new URL(location.href);r.search=n.toString(),history.replaceState({},``,r.toString())},Ws=(e,t)=>{let n=new URLSearchParams(location.search).get(e);if(!n)return t||``;try{return JSON.parse(n)}catch{return n}},Gs=(e,t={})=>e.reduce((e,n)=>({...e,[n]:Ws(n,t[n])}),{}),Ks=(e,t)=>{let n=e.startsWith(`http://`)||e.startsWith(`https://`),r=n?new URL(e):new URL(e,window.location.origin),i=new URLSearchParams(r.
2search);return Object.entries(t).forEach(([e,t])=>{t!=null&&i.set(e,typeof t==`object`?JSON.stringify(t):t)}),r.search=i.toString(),n?r.toString():r.pathname+r.search},qs=function(e){return e.ASC_ORDER=`asc`,e.DESC_ORDER=`desc`,e}({}),Js=function(e){return e.ENTER=`Enter`,e.ESCAPE=`Escape`,e}({}),Ys=function(e){return e.LOAD=`load`,e.ERROR=`error`,e.CLICK=`click`,e.COMPLETE=`complete`,e.RESIZE=`resize`,e.MESSAGE=`message`,e.OPEN=`open`,e.CLOSE=`close`,e}({}),V=function(e){return e.RESTRICTED_ACCESS=`RESTRICTED_ACCESS`,e.ALL_NOTIFICATIONS=`ALL_NOTIFICATIONS`,e.ALL_CONNECTS=`ALL_CONNECTS`,e.ALL_INVITATION=`ALL_INVITATION`,e.ALL_INTEGRATION=`ALL_INTEGRATION`,e.ALL_MEMBERS=`ALL_MEMBERS`,e.ALL_SERVICES=`ALL_SERVICES`,e.ALL_SERVICES_ALL=`ALL_SERVICES_ALL`,e.ALL_TEAM=`ALL_TEAM`,e.ALL_UPLOAD=`ALL_UPLOAD`,e.CARDS_MY_ONLY=`CARDS_MY_ONLY`,e.CARDS_ALL_ACCESS=`CARDS_ALL_ACCESS`,e.ALL_PROCUREMENT=`ALL_PROCUREMENT`,e.ALL_DISCOUNT_SERVICE=`ALL_DISCOUNT_SERVICE`,e.ALL_DISCOUNT_APPLICATION=`ALL_DISCOUNT_APPLICATION`,e.ALL_TRIPS=`ALL_TRIPS`,e}({}),Xs=function(e){return e.ADMIN_SAAS=`adminSaas`,e.ADMIN=`adminMoney`,e.MEMBER=`member`,e.CUSTOM=`custom`,e}({}),Zs=function(e){return e.USD=`usd`,e.EUR=`eur`,e.GBP=`gbp`,e.INR=`inr`,e.CAD=`cad`,e.UAH=`uah`,e}({}),Qs=function(e){return e.USD=`840`,e.EUR=`978`,e.GBP=`826`,e.PLN=`985`,e.CAD=`124`,e.RON=`946`,e.CZK=`203`,e.DKK=`208`,e.HUF=`348`,e.NOK=`578`,e.SEK=`752`,e.CHF=`756`,e}({}),$s=function(e){return e.X_DEVICE_TYPE=`X-Device-Type`,e}({}),ec=function(e){return e.INTEGRATION_KEY=`INTEGRATION_KEY`,e.REDIRECT_FROM=`REDIRECT_FROM`,e.SERVICE_KEY=`SERVICE_KEY`,e.LOGIN_TYPE=`LOGIN_TYPE`,e.REFERRAL_ID=`REFERRAL_ID`,e.SIGNUP_REFERRAL_ID=`SIGNUP_REFERRAL_ID`,e.SPEND_PERIOD=`SPEND_PERIOD`,e.COST_PERIOD=`COST_PERIOD`,e}({}),tc=function(e){return e.SERVICE_UNAVAILABLE=`Service unavailable`,e.UNATHORIZED=`The user was not found`,e.INVALID_TOKEN=`Invalid token`,e.SESSION_NOT_FOUND=`Session not found`,e.INVALID_REFRESH_TOKEN=`invalid_refresh_token`,e}({}),nc=function(e){return e.INTEGRATION_FAILED=`INTEGRATION_FAILED`,e}({}),rc=function(e){return e.PRIMARY=`primary`,e.SECONDARY=`secondary`,e}({}),ic=function(e){return e.RECOMMENDED=`recommended`,e.ALL_INTEGRATIONS=`all_integrations`,e.CONNECTED=`connected`,e.ACCOUNTING=`accounting`,e.IDENTITY_PROVIDER=`identity_provider`,e.SSOProviders=`sso_providers`,e.Finance=`finance`,e.BrowserExtension=`browser_extensions`,e}({}),H=function(e){return e.NotOnboarded=`NOT_ONBOARDED`,e.RegionSubmitted=`REGION_SUBMITTED`,e.RegistrationCountrySubmitted=`REGISTRATION_COUNTRY_SUBMITTED`,e.AgreementSubmitted=`AGREEMENT_SUBMITTED`,e.CompanyDetailsSubmitted=`COMPANY_DETAILS_SUBMITTED`,e.BusinessActivitySubmitted=`BUSINESS_ACTIVITY_SUBMITTED`,e.CompanyAddressSubmitted=`COMPANY_ADDRESS_SUBMITTED`,e.BeneficiaryPersonSubmitted=`BENEFICIARY_PERSON_SUBMITTED`,e.AdditionalDocumentsNeeded=`ADDITIONAL_DOCUMENTS_NEEDED`,e.AdditionalDocumentsSubmitted=`ADDITIONAL_DOCUMENTS_SUBMITTED`,e.DocumentsSubmitted=`DOCUMENTS_SUBMITTED`,e.AuthorizedPersonSubmitted=`AUTHORIZED_PERSON_SUBMITTED`,e.VerificationInProgress=`VERIFICATION_IN_PROGRESS`,e.Verified=`VERIFIED`,e.VerificationFailed=`VERIFICATION_FAILED`,e.Failed=`FAILED`,e.DocumentExpired=`DOCUMENT_EXPIRED`,e.DatabaseScreening=`DATABASE_SCREENING`,e.Blocked=`BLOCKED`,e.AdminApproved=`ADMIN_APPROVED`,e.ProvisionInProgress=`PROVISION_IN_PROGRESS`,e.ProvisionFailed=`PROVISION_FAILED`,e.Onboarded=`ONBOARDED`,e.ExpectedActivitySubmitted=`EXPECTED_ACTIVITY_SUBMITTED`,e}({}),ac=function(e){return e.NotOnboarded=`NotOnboarded`,e.AgreementSubmitted=`AgreementSubmitted`,e.CompanyDetailsSubmitted=`CompanyDetailsSubmitted`,e.CompanyAddressSubmitted=`CompanyAddressSubmitted`,e.BeneficiaryPersonSubmitted=`BeneficiaryPersonSubmitted`,e.AuthorizedPersonSubmitted=`AuthorizedPersonSubmitted`,e.AdditionalDocumentsNeeded=`AdditionalDocumentsNeeded`,e.DocumentsSubmitted=`DocumentsSubmitted`,e.VerificationInProgress=`VerificationInProgress`,e.Verified=`Verified`,e.VerificationFailed=`VerificationFailed`,e.Failed=`Failed`,e.DocumentExpired=`DocumentExpired`,e.DatabaseScreening=`DatabaseScreening`,e.Blocked=`Blocked`,e.AdminApproved=`AdminApproved`,e.ProvisionInProgress=`ProvisionInProgress`,e.ProvisionFailed=`ProvisionFailed`,e.Onboarded=`Onboarded`,e.RegistrationCountrySubmitted=`RegistrationCountrySubmitted`,e.BusinessActivitySubmitted=`BusinessActivitySubmitted`,e.ExpectedActivitySubmitted=`ExpectedActivitySubmitted`,e}({}
2),oc=function(e){return e.NotOnboarded=`NOT_ONBOARDED`,e.RegionSubmitted=`REGION_SUBMITTED`,e.CompanyDetailsSubmitted=`COMPANY_DETAILS_SUBMITTED`,e.CompanyAddressSubmitted=`COMPANY_ADDRESS_SUBMITTED`,e.BusinessActivitySubmitted=`BUSINESS_ACTIVITY_SUBMITTED`,e.ExpectedActivitySubmitted=`EXPECTED_ACTIVITY_SUBMITTED`,e.OwnershipsSubmitted=`OWNERSHIPS_SUBMITTED`,e.ControlPersonSubmitted=`CONTROL_PERSON_SUBMITTED`,e.DocumentsSubmitted=`DOCUMENTS_SUBMITTED`,e.ReviewInformationSubmitted=`REVIEW_INFORMATION_SUBMITTED`,e.CertificationAttestationSubmitted=`CERTIFICATION_ATTESTATION_SUBMITTED`,e.VerificationInProgress=`VERIFICATION_IN_PROGRESS`,e.Verified=`VERIFIED`,e.Rejected=`REJECTED`,e.ProvisionInProgress=`PROVISION_IN_PROGRESS`,e.ProvisionFailed=`PROVISION_FAILED`,e.Onboarded=`ONBOARDED`,e.Closed=`CLOSED`,e.VerificationRejected=`VERIFICATION_REJECTED`,e}({}),sc=function(e){return e.NotOnboarded=`NOT_ONBOARDED`,e.InProgress=`IN_PROGRESS`,e.InCompliance=`IN_COMPLIANCE`,e.Rejected=`REJECTED`,e.Onboarded=`ONBOARDED`,e.Closed=`CLOSED`,e}({}),cc=function(e){return e.AccountList=`account.list`,e.AccountDetails=`account.details`,e.AccountBalances=`account.balance`,e.AccountPayments=`account.payments`,e}({}),U={CERTIFICATE_OF_INCORPORATION:`Certificate of incorporation`,BENEFICIARY_CERTIFICATE_OF_INCORPORATION:`Beneficiary Certificate of incorporation`,MOA:`MOA`,AOA:`AOA`,PROOF_OF_ADDRESS:`Proof of address`,BENEFICIARY_PROOF_OF_ADDRESS:`Beneficiary Proof of address`,BENEFICIARY_INDIVIDUAL_PROOF_OF_ADDRESS:`Beneficiary address`,BENEFICIARY_OWNER_PROOF_OF_ADDRESS:`Beneficiary Owner Proof of address`,BENEFICIARY_INDIVIDUAL_OWNER_PROOF_OF_ADDRESS:`Beneficiary Owner address`,PROOF_OF_OPERATION_ADDRESS:`Proof of operational address`,BENEFICIARY_PROOF_OF_OPERATION_ADDRESS:`Beneficiary Proof of operational address`,BENEFICIAL_PERSON_DOCUMENT:`Beneficial person document`,BENEFICIAL_OWNER_PERSON_DOCUMENT:`Beneficiary Owner person document`,AUTHORIZED_PERSON_DOCUMENT:`Authorized person document`,REGISTER_OF_DIRECTORS_AND_SHAREHOLDERS:`Register of directors and shareholders`,BENEFICIARY_REGISTER_OF_DIRECTORS_AND_SHAREHOLDERS:`Beneficiary Register of directors and shareholders`,CORPORATE_POA:`Corporate POA`,COMPANY_CHART:`Company chart`,PROOF_OF_FUNDS:`Proof of funds`,COMPANY_LICENSE:`Company license`,BEN_ADDRESS:`Beneficiary address`,AUTH_ADDRESS:`Authorized address`,BEN_PERMANENT_RESIDENCE_PERMIT:`Beneficiary Permanent residence permit`,BEN_REFUGEE_CARD:`Beneficiary Refugee card`,BEN_DRIVERS_LICENSE:`Beneficiary Driver license`,BEN_ID_CARD:`Beneficiary ID Card`,AUTH_PASSPORT:`Authorized Passport`,AUTH_PERMANENT_RESIDENCE_PERMIT:`Authorized Permanent residence permit`,AUTH_REFUGEE_CARD:`Authorized Refugee card`,AUTH_DRIVERS_LICENSE:`Authorized Driver license`,AUTH_ID_CARD:`Authorized ID Card`,AUTH_OWNER_PASSPORT:`Authorized Owner Passport`,AUTH_OWNER_PERMANENT_RESIDENCE_PERMIT:`Authorized Owner Permanent residence permit`,AUTH_OWNER_REFUGEE_CARD:`Authorized Owner Refugee card`,AUTH_OWNER_DRIVERS_LICENSE:`Authorized Owner Driver license`,AUTH_OWNER_ID_CARD:`Authorized Owner ID Card`,AUTH_OWNER_ADDRESS:`Authorized Owner address`,BEN_OWNER_PERSON_DOCUMENT:`Beneficiary Owner person document`,BEN_OWNER_PASSPORT:`Beneficiary Owner Passport`,BEN_OWNER_PERMANENT_RESIDENCE_PERMIT:`Beneficiary Owner Permanent residence permit`,BEN_OWNER_REFUGEE_CARD:`Beneficiary Owner Refugee card`,BEN_OWNER_DRIVERS_LICENSE:`Beneficiary Owner Driver license`,BEN_OWNER_ID_CARD:`Beneficiary Owner ID Card`,BEN_OWNER_ADDRESS:`Beneficiary Owner address`},lc={FrontSide:`FrontSide`,BackSide:`BackSide`,OtherSide1:`OtherSide1`,OtherSide2:`OtherSide2`},W={GOVERNMENT_ID:`GOVERNMENT_ID`,PASSPORT:`PASSPORT`,PERMANENT_RESIDENCE_PERMIT:`PERMANENT_RESIDENCE_PERMIT`,DRIVERS_LICENSE:`DRIVERS_LICENSE`},uc=function(e){return e.PERMITTED=`Permitted`,e.PROHIBITED=`Prohibited`,e.EEAPLUS=`EeaPlus`,e}({}),dc=function(e){return e.applications=`applications`,e.departments=`departments`,e}({}),fc=function(e){return e.monthly=`monthly`,e.quarterly=`quarterly`,e.semiAnnually=`semi-annually`,e.annually=`annually`,e}({}),pc={ANNUALLY:`annually`,MONTHLY:`monthly`,QUARTERLY:`quarterly`,SEMI_ANNUALLY:`semi-annually`},mc={LAST_12_MONTHS:`last-12-months`,LAST_3_MONTHS:`last-3-months`,LAST_6_MONTHS:`last-6-months`,YTD:`ytd`,ALL_TIME:`all-time`,LAST_MONTH:`last-month`,CUSTOM:`custom`},hc=function(e){return e.NOTIFICATIONS=`notifications`,e.AGREEMENTS=`agreements`,e.BENEFICIARIES=`shareholders`,e.BALANCES=`balances`,e.OPENBANKING=`openbanking`,e.STATEMENTS_AND_REPORTS=`statementsAndReports`,e.ACCOUNTING_INTEGRATIONS=`accountingIntegrations`,e.API_KEYS=`apiKeys`,e}({}),gc=function(e){return e.Small=`Small`,e.Medium=`Medium`,e.Large=`Large`,e}({}),_c=function(e){return e.MoneyActivateTFA=`MoneyActivateTFA`,e.LockedCards=`LockedCards`,e.RegionMaster=`RegionMaster`,e.Outlet=`Outlet`,e}({}),vc=e=>e&&typeof e==`object`?`${e.sizeFrom}${e.sizeTo?`-${e.sizeTo}`:``}`:null,yc=(e=``)=>{let[t,n]=e.split(`-`);return{sizeFrom:t?Number(t):null,sizeTo:n?Number(n):null}},bc=({sizeFrom:e,sizeTo:t})=>t===null||(e||0)>=250?gc.Large:t<=49?gc.Small:t<=249?gc.Medium:null,xc=e=>new Promise(t=>setTimeout(t,e)),Sc=(e,t)=>
2(0,B.default)(e*1e3).format(t),Cc=e=>(0,B.default)(e*1e3).toDate();function wc(e,t){return parseFloat(e.toFixed(t)).toString()}var Tc=e=>{let t=Math.abs(e);if(t>=1||t===0)return 2;let n=t.toString().split(`.`)[1]||``,r=n.split(``).findIndex(e=>e!==`0`);return r===-1?2:r===0?n.length>1&&n.slice(1).split(``).some(e=>e!==`0`)?2:1:r+2},Ec=(e,t)=>{let n=10**t;return Math.floor(e*n)/n},Dc=({number:e,minimumFractionDigits:t,maxFractionDigits:n})=>{let r;return t===void 0?(r=Tc(e),n!==void 0&&(r=Math.min(r,n))):r=t,{value:Ec(e,r),fractionDigits:r}},Oc=e=>{try{let t=l(e);if(!t||!t.exp)return null;let n=t.exp*1e3-Date.now();return n>0?n:0}catch(e){return console.error(`TokenRefreshManager: Error decoding JWT token:`,e),null}},kc=e=>{let t=(0,B.default)(),n=(0,B.default)(e).diff(t);if(n<=0){let e=B.default.duration(Math.abs(n)),t=Math.floor(e.asDays());return t===0?{text:z.t(`less than a day left`),isOverdue:!1}:t===1?{text:z.t(`{{count}} day past due`,{count:t}),isOverdue:!0}:{text:z.t(`{{count}} days past due`,{count:t}),isOverdue:!0}}let r=B.default.duration(n),i=Math.floor(r.asDays());return i>0?{text:i===1?z.t(`{{count}} day left`,{count:i}):z.t(`{{count}} days left`,{count:i}),isOverdue:!1}:{text:z.t(`less than a day left`),isOverdue:!1}},Ac={ALLOWED_CHARS_PATTERN:/^[a-zA-Z0-9\s._\-()[\]]+$/,MUST_START_WITH_PATTERN:/^[a-zA-Z0-9]/,ALLOWED_CHARS_DESCRIPTION:`letters, numbers, spaces, dots, hyphens, underscores, parentheses, brackets`},jc=e=>!e||e.trim().length===0?{isValid:!1,errorMessage:z.t(`Filename cannot be empty`)}:Ac.MUST_START_WITH_PATTERN.test(e)?Ac.ALLOWED_CHARS_PATTERN.test(e)?{isValid:!0,errorMessage:``}:{isValid:!1,errorMessage:z.t(`Filename can only contain letters, numbers, hyphens, underscores, dots, spaces, parentheses and brackets`)}:{isValid:!1,errorMessage:z.t(`Filename must start with a letter or number`)},Mc=e=>jc(e.name),Nc=(e,t)=>e!==void 0&&t!==void 0&&t<e?{isValid:!1,errorMessage:z.t(`Max amount cannot be less than min amount`)}:{isValid:!0,errorMessage:``},Pc=`spendbase_utm_params`,Fc=[{queryParam:`utm_source`,key:`utmSource`},{queryParam:`utm_medium`,key:`utmMedium`},{queryParam:`utm_campaign`,key:`utmCampaign`},{queryParam:`utm_term`,key:`utmTerm`},{queryParam:`utm_content`,key:`utmContent`}],Ic=e=>{let t={};return Fc.forEach(({queryParam:n,key:r})=>{let i=e.get(n);i&&(t[r]=i)}),t},Lc=e=>{if(Object.keys(e).length!==0)try{sessionStorage.setItem(Pc,JSON.stringify(e))}catch(e){console.error(`Failed to store UTM parameters:`,e)}},Rc=()=>{try{let e=sessionStorage.getItem(Pc);if(e)return JSON.parse(e)}catch(e){console.error(`Failed to retrieve UTM parameters:`,e)}return{}},zc=()=>{try{sessionStorage.removeItem(Pc)}catch(e){console.error(`Failed to clear UTM parameters:`,e)}},Bc=()=>{Lc(Ic(new URLSearchParams(window.location.search)))},Vc=(e=0,t=2,n=!1)=>{if(e%1==0)return Number(e).toFixed(0);let r=10**t,i=Math.trunc(Number((e*r).toFixed(10)))/r;return new Intl.NumberFormat(`en-US`,{maximumFractionDigits:t,minimumFractionDigits:n?0:t,useGrouping:!1}).format(i)},Hc=({minimumFractionDigits:e=2,maximumFractionDigits:t=2})=>{let n=[e!=null&&`minimumFractionDigits: ${e}`,t!=null&&`maximumFractionDigits: ${t}`].filter(Boolean);return n.length?`(${n.join(`; `)})`:``},Uc=(e,t=2)=>{let n=10**t;return Math.trunc(Number((e*n).toFixed(10)))/n},Wc=e=>{let t=e.truncate?Uc(e.number,e.maximumFractionDigits??2):e.number;return z.t(`{{value, number${Hc(e)}}}`,{value:t})},Gc=()=>{let{t:e}=G();return{formatNumber:t=>{let n=t.truncate?Uc(t.number,t.maximumFractionDigits??2):t.number;return e(`{{value, number${Hc(t)}}}`,{value:n})}}},Kc=e=>{let{formatNumber:t}=Gc();return t(e)},qc=e=>e===void 0||isNaN(e)?`0`:Math.abs(e)>=1e6?`${wc(e/1e6,1)}M`:Wc({number:e}),Jc=e=>e.replace(/^\s*\[SDK Error\]\s*/i,``).trim(),Yc=e=>{if(!(typeof e!=`object`||!e||!(`message`in e)))return typeof e.message==`string`?e.message:void 0},Xc=({error:e,fallbackMessage:t=`An error occurred`})=>{if(m(e))return Jc(Yc(e.response?.data)||Yc(e)||t);if(e instanceof Error)return Jc(e.message);if(typeof e==`object`&&e&&`data`in e){let t=Yc(e.data);if(t)return Jc(t)}return Jc(Yc(e)||(typeof e==`string`?e:t))},Zc=e=>typeof e==`string`&&/file type .* not supported/i.test(e),Qc=function(e){return e.AllTime=`ALL_TIME`,e.Today=`TODAY`,e.ThisWeek=`THIS_WEEK`,e.LastMonth=`LAST_MONTH`,e.NextSevenDays=`NEXT_SEVEN_DAYS`,e.ThisMonth=`THIS_MONTH`,e.Next30D
2ays=`NEXT_30_DAYS`,e.Custom=`CUSTOM`,e}({}),$c=e=>{if(!e)return`ALL_TIME`;if(typeof e==`object`&&`from`in e&&`to`in e){let t=(0,B.default)(),n=(0,B.default)(Number(e.from)),r=(0,B.default)(Number(e.to));if(n.isSame(t.startOf(`day`),`minute`)&&r.isSame(t.endOf(`day`),`minute`))return`TODAY`;if(n.isSame(t.startOf(`week`),`minute`)&&r.isSame(t.endOf(`week`),`minute`))return`THIS_WEEK`;let i=t.subtract(1,`month`);if(n.isSame(i.startOf(`month`),`minute`)&&r.isSame(i.endOf(`month`),`minute`))return`LAST_MONTH`;let a=t.add(7,`day`);if(n.isSame(t.startOf(`day`),`minute`)&&r.isSame(a.endOf(`day`),`minute`))return`NEXT_SEVEN_DAYS`;if(n.isSame(t.startOf(`month`),`minute`)&&r.isSame(t.endOf(`month`),`minute`))return`THIS_MONTH`;let o=t.add(30,`day`);return n.isSame(t.startOf(`day`),`minute`)&&r.isSame(o.endOf(`day`),`minute`)?`NEXT_30_DAYS`:`CUSTOM`}return`ALL_TIME`},el=e=>{let t=(0,B.default)();switch(e){case`TODAY`:return{from:t.startOf(`day`).valueOf(),to:t.endOf(`day`).valueOf()};case`THIS_WEEK`:return{from:t.startOf(`week`).valueOf(),to:t.endOf(`week`).valueOf()};case`LAST_MONTH`:return{from:t.subtract(1,`month`).startOf(`month`).valueOf(),to:t.subtract(1,`month`).endOf(`month`).valueOf()};case`NEXT_SEVEN_DAYS`:return{from:t.startOf(`day`).valueOf(),to:t.add(7,`day`).endOf(`day`).valueOf()};case`THIS_MONTH`:return{from:t.startOf(`month`).valueOf(),to:t.endOf(`month`).valueOf()};case`NEXT_30_DAYS`:return{from:t.startOf(`day`).valueOf(),to:t.add(30,`day`).endOf(`day`).valueOf()};default:return null}},tl=e=>e.trim().replace(/\s+/g,` `),nl=(e,t,n={})=>{let{caseSensitive:r=!1,matchMode:i=`AND`}=n;if(!t||!e)return!t;let a=tl(r?t:t.toLowerCase()),o=r?e:e.toLowerCase(),s=a.split(` `).filter(e=>e.length>0);return s.length===0?!0:i===`AND`?s.every(e=>o.includes(e)):s.some(e=>o.includes(e))};function rl(e,t){return e.reduce((e,n)=>(e[n.id]=n[t],e),{})}var il=e=>!e||e.length<=50?e:`${e.slice(0,15)}...${e.slice(-15)}`,al=e=>{if(!e)return e;let t=Math.max(e.lastIndexOf(`/`),e.lastIndexOf(`\\`)),n=t>=0?e.slice(t+1):e,r=n.lastIndexOf(`.`);return r<=0?e:(t>=0?e.slice(0,t+1):``)+n.slice(0,r)};function ol(e,t=` `){return e.filter(Boolean).join(t)}var sl=e=>z.t(`Must be {{length}} characters or fewer`,{length:e}),cl=18,ll=e=>{let t=(0,B.default)(e),n=(0,B.default)();return t.add(cl,`year`).isBefore(n)},ul=(e,t)=>{let n={};return Object.keys(e).forEach(r=>{let i=e[r];t.includes(r)||(B.default.isDayjs(i)?n[r]=i:typeof i==`object`&&i&&!Array.isArray(i)?n[r]=ul(i,t):Array.isArray(i)?n[r]=i?.map(e=>typeof e==`object`&&e&&!Array.isArray(e)?ul(e,t):e):n[r]=i)}),n},dl=e=>e!=null&&e!==``,fl=(e,t=``)=>{let n=[];return Object.keys(e).forEach(r=>{let i=e[r],a=t?`${t}.${r}`:r;Array.isArray(i)?i.forEach((e,t)=>{n=[...n,...fl(e,`${a}.${t}`)]}):typeof i==`object`&&i?n=[...n,...fl(i,a)]:dl(i)&&n.push(a)}),n},pl=e=>`mailto:[email protected]?subject=${encodeURIComponent(`${e} support request`.trim())}`,ml=e=>{let t=document.createElement(`a`);t.href=pl(e),t.rel=`noopener`,t.style.display=`none`,document.body.appendChild(t),t.click(),t.remove()},hl=(e,t=Vi)=>Hi(Object.assign({
2"../../translations/en-US/default.json":()=>j(()=>import(`./default-DzAWWyND.js`),[]),
2"../../translations/en-US/default_old.json":()=>j(()=>import(`./default_old-Bt1QBVHz.js`),[]),
2"../../translations/uk-UA/default.json":()=>j(()=>import(`./default-I5ijxdnP.js`),[]),
2"../../translations/uk-UA/default_old.json":()=>j(()=>import(`./default_old-DPTVRK8Y.js`),[])
2}),`../../translations/${e}/${t}.json`,5),gl=async(e=Zi)=>{try{if(!z.hasResourceBundle(e,`default`)){let{default:t}=await hl(e);await z.addResourceBundle(e,Vi,t,!0,!0)}await z.changeLanguage(e)}catch(e){console.error(e)}B.default.locale(Qi[e]||`en-US`)},G=()=>{let{t:e,i18n:t}=Ur(Vi,{i18n:z});return{t:e,i18n:t}},K=(0,I.memo)(({values:e={},i18nKey:t,context:n,count:r,children:i,...a})=>{let{t:o,i18n:s}=G();return(0,L.jsx)(k,{...a,children:(0,L.jsx)(Vr,{t:o,i18n:s,i18nKey:t,count:r,context:n,values:e,children:i})})}),_l=`spendbase`,vl=`x-web-token`,yl=`x-access-token`,bl=`x-password-extension-token`,xl=`x-timezone`,Sl=`Content-Type`,Cl=`spendbase-authenticate`,wl=`spendbase-passwords-authenticate`,Tl=`.jpeg,.jpg,.pdf,.png`;z.t(`JPG/JPEG/PDF/PNG, up to {{ size }}MB`,{size:50});var El=`.csv,.xls,.xlsx,.pdf`,Dl=z.t(`Invoice, order form or contract document`),Ol=`.pdf,.xlsx,.png,.jpg,.jpeg,.csv,.gif,.svg,.webp,.doc,.docx`,kl=z.t(`PNG/XLS/XLSX/CSV/JPG/PNG/GIF/SVG/WEBP/DOC/DOCX, up to {{ size }}MB. Filename: letters, numbers, spaces, dots, hyphens, underscores only`,{size:10}),Al=5e3,jl=!1,Ml=()=>jl,Nl=()=>{jl=!0},Pl=()=>{jl=!1},Fl=function(e){return e.Success=`success`,e.Error=`health_error`,e.Warning=`health_warning`,e.Connect=`connect`,e.GettingData=`loading`,e.Disabled=`disabled`,e.Disconnecting=`disconnecting`,e.PendingSetup=`pending_setup`,e.InitialSyncSetup=`initial_sync_setup`,e.ComingSoon=`comingSoon`,e.EmptyStatus=`emptyStatus`,e}({}),Il=function(e){return e.HiBob=`hibob`,e.BambooHR=`bamboohr`,e.NetSuite=`netsuite`,e.Okta=`okta`,e.OneLogin=`onelogin`,e.Jira=`jira`,e.PeopleForce=`peopleforce`,e.Google=`google`,e.Microsoft=`microsoft`,e.Slack=`slack`,e.PipeDrive=`pipedrive`,e.HubSpot=`hubspot`,e.Salesforce=`salesforce`,e.Dropbox=`dropbox`,e.Notion=`notion`,e.Asana=`asana`,e.QuickBooks=`quickbooks`,e.ZohoBooks=`zoho_books`,e.Miro=`miro`,e.Xero=`xero`,e.FreshBooks=`freshbooks`,e.Github=`github`,e.Zendesk=`zendesk`,e.Gitlab=`gitlab`,e.Monday=`monday`,e.MicrosoftDynamics365=`microsoft_dynamics_365`,e.MailChimp=`mailchimp`,e.ClickUp=`clickup`,e.ChromeExtension=`chrome_extension`,e.GoogleSpreadsheets=`google-spreadsheets`,e.Jetbrains=`jetbrains`,e.DocuSign=`docusign`,e.AWS=`aws`,e}({}),Ll=async()=>$.requester.instance.get(`/v3/connects/categories`).then(({data:e})=>e),Rl=async({categoryId:e,searchTerm:t})=>$.requester.instance.get(`/v3/connects/categories/${e}?${r.stringify({searchTerm:t})}`).then(({data:e})=>e),zl=async()=>$.requester.instance.get(`/v2/integration/integrations-checklist`).then(({data:e})=>e),Bl=async e=>$.requester.instance.post(`/integration/request`,e).then(({data:e})=>e),Vl=async({serviceName:e,disabled:t=!1})=>$.requester.instance.post(`/v3/connects/${e}/${t?`disable`:`enable`}`).then(({data:e})=>e),Hl=async({service:e,redirectUri:t,optionalParams:n})=>$.requester.instance.get(`/integration/${e}/auth-url?${r.stringify({redirect_uri:R.IS_DEV?t:void 0,...n})}`).then(({data:e})=>e),Ul=async e=>$.requester.instance.post(`/v3/connects/disconnect`,{service:e}).then(({data:e})=>e),Wl=async({service:e,params:t,redirectUri:n})=>$.requester.instance.get(`/integration/${e}/success?${r.stringify({redirect_uri:R.IS_DEV?n:void 0,...t})}`).then(({data:e})=>e),Gl=async()=>$.requester.instance.get(`/integration/microsoft_dynamics_365/environments`).then(({data:e})=>e),Kl=async e=>$.requester.instance.post(`/integration/microsoft_dynamics_365/environments`,e).then(({data:e})=>e),ql=async()=>$.requester.instance.post(`/integration/microsoft_dynamics_365/sync`).then(({data:e})=>{let t={ok:Fl.Success,pending_setup:Fl.PendingSetup};return{...e,status:t[e.status]||e.status}}),Jl={all:[`integrations`],categories:()=>[...Jl.all,`categories`],lists:()=>[...Jl.all,`list`],list:e=>[...Jl.all,...Jl.lists(),{filters:e}],checklist:()=>[...Jl.all,`checklist`],microsoftDynamicsEnvironments:()=>[...Jl.all,`microsoft-dynamics-environments`]},Yl=Jl,Xl=(e={categoryId:ic.ALL_INTEGRATIONS})=>N({queryKey:Jl.list(e),queryFn:()=>Rl(e)}),Zl=(e,t)=>F({...Xl({searchTerm:``,categoryId:`all_integrations`,...e}),...t}),Ql=()=>N({queryKey:Jl.categories(),queryFn:Ll}),$l=e=>F({...Ql(),...e}),eu=()=>N({queryKey:Jl.checklist(),queryFn:zl}),tu=e=>F({...eu(),...e}),nu=()=>M({mutationFn:Bl,onSuccess:()=>{b({message:z.t(`Request sent`),variant:`success`})},onError:e=>{b({message:e?.data?.message??z.t(`Something went wrong. Please try again`),variant:`attention`})}}),ru=()=>{let e=P();return M({mutationFn:Vl,onSuccess:()=>
2{e.invalidateQueries({queryKey:Jl.all})}})},iu=()=>N({queryKey:Jl.microsoftDynamicsEnvironments(),queryFn:Gl}),au=e=>F({...iu(),...e}),ou=()=>{let e=P();return M({mutationFn:e=>Kl({environments:e.environments}),onSuccess:()=>{e.invalidateQueries({queryKey:Jl.microsoftDynamicsEnvironments()})},onError:e=>{b({message:e?.data?.message??z.t(`Something went wrong. Please try again`),variant:`attention`})}})},su=()=>M({mutationFn:ql,onError:e=>{b({message:e?.data?.message??z.t(`Something went wrong. Please try again`),variant:`attention`})}}),cu=()=>{let e=P();return M({mutationFn:e=>Ul(e),onSuccess:()=>{e.invalidateQueries({queryKey:Jl.all}),b({message:z.t(`Disconnect successful`),variant:`success`})},onError:e=>{b({message:e?.data?.message??z.t(`Disconnect failed please try again`),variant:`attention`})}})},lu=class{id=``;name=``;service=``;icon=``;status=null;companyUrl=``;tenantId=``;isCompanyUrl=!1;isThirdParty=!1;isBeta=!1;healthText=``;APIToken=``;integrationType=null;accountId;key;secret;token;serviceUserId;subdomain;domain;apiKey;clientId;clientSecret;organizationId;connectedEmail;category;enableFetchAvatar=!0;isComingSoon;cognitoDomain;roleArn;accessKeyId;secretAccessKey;region;constructor({service:e,icon:t,id:n,name:r,status:i,companyUrl:a,isCompanyUrl:o,isThirdParty:s,isBeta:c,healthText:l,APIToken:u,integrationType:d,accountId:f,key:p,secret:m,token:h,serviceUserId:g,subdomain:_,domain:v,apiKey:y,clientId:b,clientSecret:x,organizationId:S,connectedEmail:ee,category:te,enableFetchAvatar:C,isComingSoon:w,cognitoDomain:ne,roleArn:re,accessKeyId:ie,secretAccessKey:ae,region:oe}){this.id=n,this.name=r,this.service=e,this.icon=t,this.status=i,this.companyUrl=a,this.isCompanyUrl=o,this.isThirdParty=s,this.isBeta=c,this.healthText=l,this.APIToken=u,this.integrationType=d,this.accountId=f,this.key=p,this.secret=m,this.token=h,this.serviceUserId=g,this.subdomain=_,this.domain=v,this.apiKey=y,this.clientId=b,this.clientSecret=x,this.organizationId=S,this.connectedEmail=ee,this.category=te,this.isComingSoon=w,this.cognitoDomain=ne,this.roleArn=re,this.accessKeyId=ie,this.secretAccessKey=ae,this.region=oe,C!==void 0&&(this.enableFetchAvatar=C)}update(e){let{name:t,service:n,icon:r,status:i,companyUrl:a,APIToken:o,integrationType:s,accountId:c,key:l,secret:u,token:d,serviceUserId:f,subdomain:p,domain:m,apiKey:h,clientId:g,clientSecret:_,organizationId:v,connectedEmail:y,category:b,enableFetchAvatar:x,isComingSoon:S,cognitoDomain:ee,roleArn:te,accessKeyId:C,secretAccessKey:w,region:ne}=e;S!==void 0&&(this.isComingSoon=S),t&&(this.name=t),n&&(this.service=n),r&&(this.icon=r),i&&(this.status=i),a&&(this.companyUrl=a),o&&(this.APIToken=o),s&&(this.integrationType=s),c&&(this.accountId=c),l&&(this.key=l),u&&(this.secret=u),d&&(this.token=d),f&&(this.serviceUserId=f),p&&(this.subdomain=p),m&&(this.domain=m),h&&(this.apiKey=h),g&&(this.clientId=g),_&&(this.clientSecret=_),v&&(this.organizationId=v),y&&(this.connectedEmail=y),b&&(this.category=b),x!==void 0&&(this.enableFetchAvatar=x),ee&&(this.cognitoDomain=ee),te&&(this.roleArn=te),C&&(this.accessKeyId=C),w&&(this.secretAccessKey=w),ne&&(this.region=ne)}},uu=async e=>{let{data:t}=await $.requester.instance.post(`/v3/service/list`,e);return t},du=async e=>{let{data:t}=await $.requester.instance.post(`/v3/service/count`,e);return t},fu=async e=>{let{data:t}=await $.requester.instance.get(`/v3/service/view-counts`,{params:e});return t},pu=async e=>{let{data:t}=await $.requester.instance.get(`/v3/service/auto-complete`,{params:e});return t},mu=async e=>{let{data:t}=await $.requester.instance.post(`/v3/service/`,e);return t},hu=async e=>{let{data:t}=await $.requester.instance.post(`/v3/service/custom`,{serviceName:e});return t},gu=async({id:e,...t})=>{let{data:n}=await $.requester.instance.patch(`/v3/service/${e}/info`,t);return n},_u=async e=>{let{data:t}=await $.requester.instance.post(`/v3/service/info/bulk`,e);return t},vu=async e=>{let{data:t}=await $.requester.instance.post(`/v3/service/info/bulk`,e);return t},yu=async e=>{let{data:t}=await $.requester.instance.post(`/v3/service/info/bulk`,e);return t},bu=async e=>{let{data:t}=await $.requester.instance.post(`/v3/service/info/bulk`,e);return t},xu=async e=>{let{data:t}=await $.requester.instance.get(`/v3/service/dashboard/activity`,{params:e});return t},Su=async e=>{let{data:t}=await $.requester.instance.get(`/v3/service/${e.id}/info`);return t},Cu=async e=>{let t={};
2e?.costPeriod&&(t.cost_range=e.costPeriod),e?.spendPeriod&&(typeof e.spendPeriod==`string`?t.spend_range=e.spendPeriod:e.spendPeriod&&`startDate`in e.spendPeriod&&`endDate`in e.spendPeriod&&(t.start_date=e.spendPeriod.startDate.toISOString(),t.end_date=e.spendPeriod.endDate.toISOString()));let{data:n}=await $.requester.instance.get(`/v3/service/${e.id}/spend`,{params:t});return n},wu=async({id:e,...t})=>{let{data:n}=await $.requester.instance.post(`/v3/service/${e}/members`,t);return n},Tu=async()=>(await $.requester.instance.get(`/v3/service/csv`,{responseType:`blob`})).data,Eu=function(e){return e.NAME=`name`,e.TOTAL_LICENSES=`totalLicenses`,e.USERS=`members`,e.LAST_USED=`lastUsedAt`,e.LAST_USED_TIMESTAMP=`lastUsedAtTimestamp`,e.RENEWAL=`renewalDate`,e.RENEWAL_TIMESTAMP=`renewalDateTimestamp`,e.LAST_PAYMENT=`lastPaymentAmount`,e.TOTAL_COST=`totalCost`,e.TOTAL_SPENDS=`totalSpends`,e.LICENSE_PLAN=`licenseName`,e.STATUS=`status`,e.DEPARTMENTS=`departments`,e.OWNER=`owner`,e}({}),Du=()=>(0,I.useContext)(HW),Ou=()=>{let e=(0,I.useContext)(HW);if(!e)throw Error(`You have forgot to use StoreProvider, shame on you. (c) Michel Weststrate`);return e.rootStore},ku=()=>{let[e,t]=(0,I.useState)({}),{search:n,pathname:i}=zr();return(0,I.useEffect)(()=>{t(r.parse(n))},[n,i]),e},Au=(e=[])=>{let{data:t}=nG(),n=t?.permissions??[],r=e.length===0,i=n.some(t=>e.includes(t));return r||i},ju=()=>{let{i18n:e}=G(),t=e.language;return{formatDate:({date:e,format:n})=>e?n?(0,B.default)(e,void 0,t,!1).format(n):(0,B.default)(e,void 0,t,!1).fromNow():null}},Mu=e=>{let{formatDate:t}=ju();return(0,I.useMemo)(()=>t(e),[t,e.date,e.format])},Nu=e(he()),Pu=()=>{let[e,t]=(0,I.useState)(!1),n=(0,I.useCallback)(e=>()=>{e&&((0,Nu.default)(e),t(!0))},[]);return(0,I.useEffect)(()=>{let n=setTimeout(()=>{e&&t(!1)},1e3);return()=>clearTimeout(n)},[e]),{isCopied:e,copyToClipboard:n}},Fu=()=>{let{data:e}=nG(),{currency:t}=(0,I.useContext)(Pi),{t:n}=G();return{formatCurrency:({number:r,currency:i,currencyDisplay:a,minimumFractionDigits:o,showFullPrecision:s,maxFractionDigits:c=8,forceNegative:l})=>{let{value:u,fractionDigits:d}=Dc({number:r,minimumFractionDigits:o,maxFractionDigits:s?c:void 0}),f=n(`{{value, currency}}`,{value:u,currency:i||t||e?.teamCurrency||`USD`,currencyDisplay:a,minimumFractionDigits:d});return l?`-${f}`:f}}},Iu=e=>{let{formatCurrency:t}=Fu();return t(e)},Lu=(e,t=!1)=>{let n=(0,I.useRef)(e*1e3),[r,i]=(0,I.useState)(e),[a,o]=(0,I.useState)(t);return(0,I.useEffect)(()=>{n.current=e*1e3,i(e),o(!0)},[e]),(0,I.useEffect)(()=>{if(!a||n.current<=0)return;let e=Date.now(),t=n.current,r=Math.floor(t/1e3),o,s=()=>{if(n.current=t-(Date.now()-e),n.current<=0){n.current=0,i(0),cancelAnimationFrame(o);return}let c=Math.floor(n.current/1e3);c!==r&&(r=c,i(c)),a&&(o=window.requestAnimationFrame(s))};return o=window.requestAnimationFrame(s),()=>{cancelAnimationFrame(o)}},[a,e]),{formattedTime:Ya(r),timer:r,isPlaying:a,setIsPlaying:o}},Ru=({date:e})=>{let{t,i18n:n}=G(),r=n.language;return(0,I.useMemo)(()=>{if(!e)return null;let n=(0,B.default)(),i=(0,B.default)(e,void 0,r,!1),a=n.diff(i,`d`);return a===0?t(`Today`):a===1?t(`Yesterday`):(0,B.default)(e).fromNow()},[e,r,t])},zu=()=>{let{authStore:e}=Ou(),{webSession:t}=e;return(0,I.useSyncExternalStore)(t.subscribe,t.getVersion),t},Bu=()=>{let{authStore:e}=Ou(),{moneySession:t}=e;return(0,I.useSyncExternalStore)(t.subscribe,t.getVersion),t},Vu=()=>{let{data:e,isLoading:t}=nG(),n=zu(),r=t||!e&&n.isSilentRefreshAvailable;return{me:e,isAuthorized:!!e?.id,isResolving:r}},Hu=30*1e3,Uu=()=>{let{pathname:e}=zr(),t=(0,I.useRef)(0),n=(0,I.useRef)(!0),r=()=>{let e=Date.now();e-t.current<Hu||(t.current=e,RC())};(0,I.useEffect)(()=>{if(n.current){n.current=!1;return}r()},[e]),(0,I.useEffect)(()=>{let e=()=>{document.visibilityState===`visible`&&r()};return document.addEventListener(`visibilitychange`,e),()=>document.removeEventListener(`visibilitychange`,e)},[])},Wu=async()=>{let{authStore:e,trackingStore:t,requester:n,routeStore:r,localStorageStore:i}=$;try{sessionStorage.clear(),t.closeAllSessions(),await n.authService.logout({refreshToken:e.webSession.refreshToken,cardsRefreshToken:e.moneySession.refreshToken})}catch(e){console.error(`Logout request failed`,e)}finally{i.removeItem(ec.SIGNUP_REFERRAL_ID),BC(),r.navigate(lo),window.location.reload()}},Gu=async()=>$.requester.cardServiceInstance.post(`/cards-router/v1/accounts/init`).then(({data:e})=>e),Ku=async()=>$.requester.cardServiceInstance.get(`/cards/onboarding/stages`).then(({data:e})=>e),qu=1800,Ju=e=>new URLSearchParams(Object.entries(e).filter(([,e])=>e!=null&&e!==``).map(([e,t])=>[e,String(t)])).toString().length,Yu=e=>Ju(e)>qu,Xu=e=>e?e.split(`,`):void 0,Zu=(e,t)=>{let n={...e};for(let e of t)n[e]=Xu(n[e]);return n}
2,Qu=function(e){return e.NotVerified=`NotVerified`,e.VerificationFailed=`VerificationFailed`,e.PendingVerification=`PendingVerification`,e.DocumentsNeeded=`DocumentsNeeded`,e.Approved=`Approved`,e.Rejected=`Rejected`,e}({}),$u=function(e){return e.NEW=`NEW`,e.LOCKED=`LOCKED`,e.TERMINATED=`TERMINATED`,e.EXPIRED=`EXPIRED`,e.DEFAULT=`DEFAULT`,e.SUSPENDED=`SUSPENDED`,e.RISK=`RISK`,e.LIMIT_EXCEEDED=`LIMIT_EXCEED`,e.LIMIT_PENDING=`LIMIT_PENDING`,e.FAILED=`FAILED`,e}({}),ed=function(e){return e.VIRTUAL=`VIRTUAL`,e.PHYSICAL=`PHYSICAL`,e}({}),td=function(e){return e.PENDING=`PENDING`,e.IN_TRANSIT=`IN_TRANSIT`,e.DELIVERED=`DELIVERED`,e.FAILED=`FAILED`,e.RETURNED=`RETURNED`,e}({}),nd=[`PENDING`,`IN_TRANSIT`],rd=function(e){return e.DAILY=`DAILY`,e.WEEKLY=`WEEKLY`,e.MONTHLY=`MONTHLY`,e.FIXED=`FIXED`,e.UNLIMITED=`UNLIMITED`,e}({}),id=`TOTAL`,ad=e=>e.type===id?{...e,type:rd.FIXED}:e,od=e=>{if(!e?.limit&&!e?.pendingLimit)return e;let t={...e};return e.limit&&(t.limit=ad(e.limit)),e.pendingLimit&&(t.pendingLimit=ad(e.pendingLimit)),t},sd=e=>(e??[]).map(od),cd=async e=>$.requester.cardServiceInstance.get(`/cards-router/v1/cards/${e}`).then(({data:e})=>od(e)),ld=async e=>$.requester.cardServiceInstance.get(`/cards-router/v1/cards/${e}/details`).then(({data:e})=>e),ud=async e=>{let t=$.requester.cardServiceInstance,n=e??{};if(Yu(n)){let{cursor:e,limit:r,...i}=n;return t.post(`/cards-router/v1/cards/filter`,Zu(i,[`cardholderIds`,`provider_account_ids`,`status`,`cardLimit`,`cardType`]),{params:{cursor:e,limit:r}}).then(({data:e})=>({...e,cards:sd(e.cards)}))}return t.get(`/cards-router/v1/cards`,{params:n}).then(({data:e})=>({...e,cards:sd(e.cards)}))},dd=async e=>$.requester.cardServiceInstance.put(`/cards-router/v1/cards/${e}/terminate`).then(({data:e})=>e),fd=async e=>$.requester.cardServiceInstance.put(`/cards-router/v1/cards/${e}/lock`).then(({data:e})=>e),pd=async e=>$.requester.cardServiceInstance.put(`/cards-router/v1/cards/${e}/unlock`).then(({data:e})=>e),md=async e=>$.requester.cardServiceInstance.post(`/cards-router/v1/cards/${e}/pin/sms`).then(({data:e})=>e),hd=async({cardId:e,pin:t})=>$.requester.cardServiceInstance.post(`/cards-router/v1/cards/${e}/pin/verify`,{pin:t}).then(({data:e})=>e),gd=async({cardId:e,newPin:t,verifyToken:n})=>$.requester.cardServiceInstance.put(`/cards-router/v1/cards/${e}/pin`,{newPin:t,verifyToken:n}).then(({data:e})=>e),_d=async({cardId:e,newPin:t})=>$.requester.cardServiceInstance.put(`/cards-router/v1/cards/${e}/pin`,{newPin:t}).then(({data:e})=>e),vd=async({id:e,...t})=>$.requester.cardServiceInstance.put(`/cards-router/v1/cards/${e}/rename`,t).then(({data:e})=>e),yd=async e=>$.requester.cardServiceInstance.post(`/cards-router/v1/cards`,e).then(({data:e})=>e),bd=async({spendbaseUserId:e})=>$.requester.cardServiceInstance.get(`/cards-router/v1/cards/delivery-address`,{params:{spendbaseUserId:e}}).then(({data:e})=>e),xd=async({cardId:e,...t})=>$.requester.cardServiceInstance.put(`/cards-router/v1/cards/${e}/limit`,t).then(({data:e})=>e),Sd=async()=>$.requester.cardServiceInstance.get(`/cards-router/v1/cards/issue-status`).then(({data:e})=>e),Cd=async e=>$.requester.cardServiceInstance.get(`/cards-router/v1/cards/${e}/reassign-eligible-accounts`).then(({data:e})=>e),wd=async({cardId:e,...t})=>$.requester.cardServiceInstance.put(`/cards-router/v1/cards/${e}/reassign-account`,t).then(({data:e})=>e),Td={all:[`cards`],init:()=>[...Td.all,`init`],financialInfo:()=>[...Td.all,`financial-info`],issueStatus:()=>[...Td.all,`issue-status`]},Ed=Td,Dd=()=>N({queryKey:Td.init(),queryFn:Gu,retry:!1}),Od=e=>F({...Dd(),...e}),kd=()=>{let{data:e}=Od();return e?.region===_h.US},Ad=()=>{let{data:e}=Od();return e?.region===_h.USHighnote},jd=()=>{let{data:e}=Od();return Vh(e?.region)},Md=()=>{let{data:e}=Od();return e?.region===_h.EU},Nd=()=>{let{data:e}=Od();return e?.region===_h.CA},Pd=e=>{let{data:t}=Od(e);return Kh(t)},Fd=()=>F({queryKey:Td.financialInfo(),queryFn:Ku}),Id=()=>{let e=jd(),{data:t}=Fd(),{data:n}=qg({enabled:e}),r=t?.cardAvailableCurrencies,i=e?n?.cardAvailableCurrencies:void 0;return i?.length?i:r?.length?r:r??i},Ld=()=>{let{data:e}=Fd();return e?.canCreatePhysicalCards},Rd=()=>{let{data:e}=Fd();return e?.canCreateVirtualCards??e?.canCreateCards},zd=()=>{let e=jd(),{data:t,isSuccess:n}=F({queryKey:Td.issueStatus(),queryFn:Sd,enabled:e});return{count:t?.issuedCardsCount??0,limit:t?.issuedCardsLimit??0,canCreate:t?.canCreateCards??!e,blockReason:t?.blockReason,isLoaded:n}},Bd=()=>{let e=jd(),{canCreate:t,isLoaded:n}=zd(),r=Vd();return e?n&&!t:r},Vd=()=>{let e=rG(),t=Rd(),n=Ld();return e?t===!1&&n!==!0:t===!1},q=function(e){return e.Active=`active`,e.Closed=`closed`,e.Inactive=`inactive`,e.Suspended=`suspended`,e.Locked=`locked`,e.Pending=`pending`,e}({}),Hd=function(e){return e.Bank=`bank`,e.Master=`master`,e.Sub=`sub`,e}({}),Ud=function(e){return e.INITIAL_SETUP=`INITIAL_SETUP`,e.COMPLETED=`COMPLETED`,e.IBA
2N_CREATION=`IBAN_CREATION`,e.VIRTUAL_ACCOUNT_CREATION=`VIRTUAL_ACCOUNT_CREATION`,e.BANK_DETAILS=`BANK_DETAILS`,e.TRIBE_ACCOUNT_CREATION=`TRIBE_ACCOUNT_CREATION`,e.TRIBE_HOLDER_CREATION=`TRIBE_HOLDER_CREATION`,e.NOTIFICATION=`NOTIFICATION`,e}({}),Wd=function(e){return e.Failed=`failed`,e}({}),Gd={[q.Locked]:z.t(`This balance is locked and transactions are blocked. You can unlock it from Settings â Balances.`),[q.Suspended]:z.t(`This balance is suspended and transactions are blocked. Contact support to restore access.`),[q.Closed]:z.t(`This balance is closed and can no longer be used.`)},Kd=e=>typeof e==`string`?e.trim():``,qd=e=>Array.isArray(e)?e.reduce((e,t)=>{let n=Kd(t?.network),r=Kd(t?.asset),i=Kd(t?.address);if(!n||!r||!i)return e;let a=Kd(t?.memo);return e.push(a?{network:n,asset:r,address:i,memo:a}:{network:n,asset:r,address:i}),e},[]):[],Jd=(e,t)=>`${e}: ${t}`,Yd=({reference:e,purpose:t,coordinates:n,wallets:r,labels:i})=>{if(!e||!n&&!r?.length)return``;let a=[Jd(i.paymentReference,e),t];return n&&(a.push(Jd(i.beneficiary,n.beneficiary),Jd(i.routingNumber,n.routingNumber),Jd(i.accountNumber,n.accountNumber),Jd(i.bank,n.bankName)),n.bankAddress&&a.push(Jd(i.bankAddress,n.bankAddress))),r?.forEach(e=>{let t=n?i.crypto:i.cryptoOnly;a.push(``,`${t} â ${e.asset} · ${e.network}`,Jd(i.address,e.address)),e.memo&&a.push(Jd(i.memo,e.memo))}),a.join(` 3`)},Xd=8,Zd=`ac_`,Qd=12,$d=e=>{if(!e)return;let t;try{let n=e.replace(/-/g,`+`).replace(/_/g,`/`);t=atob(n.padEnd(n.length+(4-n.length%4)%4,`=`))}catch{return}if(!(t.length<=Xd))return{region:t.slice(0,2),bank:t.slice(2,4),currency:t.slice(4,7),providerId:t.slice(Xd)}},ef=e=>{let t=$d(e);if(!t)return;let{providerId:n}=t;if(!n.startsWith(Zd))return;let r=n.slice(3);if(!(r.length<Qd))return r.slice(0,Qd).toUpperCase()},tf=async e=>$.requester.cardServiceInstance.post(`/cards-router/v1/accounts/bank/exchange/quote`,e).then(({data:e})=>e),nf=async e=>$.requester.cardServiceInstance.post(`/cards-router/v1/accounts/bank/exchange/validate`,e).then(({data:e})=>e),rf={all:[`exchange`],exchangeQuote:e=>[...rf.all,`quote`,{params:e}]},af=e=>N({queryKey:rf.exchangeQuote(e),queryFn:()=>tf(e),staleTime:0,gcTime:0}),of=(e,t)=>F({...af(e),...t}),sf=({sourceCurrencyISOCode:e,targetCurrencyISOCode:t,operationType:n},r)=>{let{data:i,isLoading:a}=of({sourceCurrencyISOCode:e,targetCurrencyISOCode:t,goal:1,goalType:lf.Sell,operationType:n},r);return{initialExchangeRateLoading:a,exchangeRate:i?.exchangeRate.rate,exchangePercentage:i?.fees?.breakdown.find(e=>e.type===`exchange_percentage`)?.percentage}},cf=()=>M({mutationFn:e=>nf(e)}),lf=function(e){return e.Sell=`SELL`,e.Buy=`BUY`,e}({}),uf=function(e){return e.INSUFFICIENT_OPERATIONAL_FUNDS=`INSUFFICIENT_OPERATIONAL_FUNDS`,e.OPERATIONAL_ACCOUNT_INACTIVE=`OPERATIONAL_ACCOUNT_INACTIVE`,e.ACCOUNT_SUSPENDED=`ACCOUNT_SUSPENDED`,e}({}),df=function(e){return e.SendExchange=`SWIFT`,e.Exchange=`EXCHANGE`,e}({});function ff(e){let t=m(e)?e.response?.data:typeof e==`object`&&e&&`data`in e?e.data:void 0;if(typeof t!=`object`||!t||!(`errorCode`in t)||typeof t.errorCode!=`string`)return;let{errorCode:n}=t;if(!(n!==uf.INSUFFICIENT_OPERATIONAL_FUNDS&&n!==uf.OPERATIONAL_ACCOUNT_INACTIVE&&n!==uf.ACCOUNT_SUSPENDED))return{errorCode:n,maxAmount:`maxAmount`in t&&typeof t.maxAmount==`number`?t.maxAmount:void 0,maxAmountCurrencyISOCode:`maxAmountCurrencyISOCode`in t&&typeof t.maxAmountCurrencyISOCode==`string`?t.maxAmountCurrencyISOCode:void 0}}var pf=e=>e.startsWith(`text/`)&&!e.includes(`charset`)?`${e};charset=utf-8`:e,mf=({data:e,headers:t})=>{let n=String(t[`content-type`]||`application/octet-stream`);Ga(e instanceof Blob?e:new Blob([e],{type:pf(n)}),Ha(t[`content-disposition`]||``))},hf=`balance`,gf=(0,I.createContext)(null),_f=()=>{let e=$.localStorageStore.getItem(hf);return typeof e==`string`&&e?e:null},vf=e=>e.find(({state:e})=>e===q.Active)||e.find(({state:e})=>e===q.Suspended||e===q.Locked)||e.find(({state:e})=>e===q.Closed),yf=({children:e})=>{let[t,n]=(0,I.useState)(_f),{data:r}=fp({enabled:Pd({enabled:Bu().isTokenValid})}),i=(0,I.useCallback)(e=>{n(e),e&&$.localStorageStore.setItem(hf,e)},[]);(0,I.useEffect)(()=>
3{if(!r?.length||t&&r.some(({id:e})=>e===t))return;let e=vf(r);e&&e.id!==t&&i(e.id)},[r,t,i]);let a=(0,I.useMemo)(()=>({selectedId:t,setSelectedId:i}),[t,i]);return(0,L.jsx)(gf.Provider,{value:a,children:e})},bf=()=>{let e=(0,I.useContext)(gf);if(!e)throw Error(`useCurrentBalance must be used within a BalanceProvider`);return e},xf=()=>{let{selectedId:e,setSelectedId:t}=bf(),{data:n}=fp(),r=(0,I.useMemo)(()=>n?.find(({id:t})=>t===e)??null,[n,e]),i=(0,I.useCallback)(e=>t(typeof e==`string`?e:e.id),[t]);return{currentBalance:r,currentBalanceISONum:r?Qs[r.currencyISOCode]??null:null,totalBalance:r?.freeBalance??0,setCurrentBalance:i}},Sf=async()=>$.requester.cardServiceInstance.get(`/cards-router/v1/accounts/bank`).then(({data:e})=>e),Cf=async e=>$.requester.cardServiceInstance.get(`/cards-router/v1/accounts/bank/${e}/provider`).then(({data:e})=>e),wf=async e=>$.requester.cardServiceInstance.post(`/cards-router/v1/accounts/bank/transfer`,e).then(({data:e})=>e),Tf=async e=>$.requester.cardServiceInstance.post(`/cards-router/v1/accounts/bank/provision/start`,e).then(({data:e})=>e),Ef=async e=>$.requester.cardServiceInstance.post(`/cards-router/v1/accounts/provider`,e).then(({data:e})=>e),Df=async e=>$.requester.cardServiceInstance.post(`/cards-router/v1/accounts/provider/transfer`,e).then(({data:e})=>e),Of=async({accountId:e,...t})=>$.requester.cardServiceInstance.patch(`/cards-router/v1/accounts/provider/${e}/rename`,t).then(({data:e})=>e),kf=async({accountId:e})=>$.requester.cardServiceInstance.post(`/cards-router/v1/accounts/provider/${e}/close`).then(({data:e})=>e),Af=async({accountId:e})=>$.requester.cardServiceInstance.get(`/cards-router/v1/accounts/bank/${e}/reference/pdf`,{headers:{[Sl]:`application/pdf`},responseType:`blob`}),jf=async()=>$.requester.cardServiceInstance.get(`/cards-router/v1/accounts/bank/purposes`).then(({data:e})=>e),Mf=async e=>$.requester.cardServiceInstance.post(`/cards-router/v1/accounts/bank/confirm-payee`,e).then(({data:e})=>e),Nf=async()=>$.requester.cardServiceInstance.get(`cards-router/v1/accounts/currencies`).then(({data:e})=>e),Pf=async e=>$.requester.cardServiceInstance.post(`/cards-router/v1/accounts/bank/exchange/create`,e).then(({data:e})=>e),Ff=async()=>$.requester.cardServiceInstance.get(`/cards-router/v1/accounts/bank/exchange/config`).then(({data:e})=>e),If=async(e,t)=>$.requester.cardServiceInstance.post(`/cards-router/v1/accounts/bank/${e}/${t}`).then(({data:e})=>e),Lf=async e=>$.requester.cardServiceInstance.get(`/cards-router/v1/accounts/bank/${e}/details`).then(({data:e})=>e),Rf=async e=>$.requester.cardServiceInstance.get(`/cards-router/v1/accounts/bank/${e}/details/pdf`,{responseType:`blob`,headers:{[Sl]:`application/pdf`}}),zf=async e=>$.requester.cardServiceInstance.post(`/cards-router/v1/accounts/bank/${e}/details/email`).then(({data:e})=>e),Bf=async()=>$.requester.cardServiceInstance.get(`/cards-router/v1/accounts/openbanking/connections`).then(({data:e})=>e),Vf=async e=>$.requester.cardServiceInstance.post(`/cards-router/v1/accounts/openbanking/connections/revoke`,e),Hf=async()=>$.requester.cardServiceInstance.get(`/cards-router/v1/accounts/limit`).then(({data:e})=>e),Uf=R.PHYSICAL_CARDS_ENABLED,Wf=R.PHYSICAL_CARDS_TEAM_IDS,Gf=R.GBP_FASTER_PAYMENTS_DISABLED,Kf=R.API_KEYS_ENABLED,qf=async e=>$.requester.cardServiceInstance.get(`/cards-router/v1/currency/rates`,{params:e}).then(({data:e})=>e),Jf={all:[`currency`],currencyRates:e=>[...Jf.all,`rates`,e.currency_iso_code,e.date]},Yf=e=>{let t=Au([V.CARDS_ALL_ACCESS]);return F({queryKey:Jf.currencyRates(e),queryFn:()=>qf(e),enabled:t})},Xf=e=>Gf&&e===`GBP`,Zf=()=>{let{currentBalance:e}=xf();return Xf(e?.currencyISOCode)&&!e?.multicurrency},Qf=[`EUR`,`GBP`],$f=[`GBP`],ep=function(e){return e.EUR=`EUR`,e.GBP=`GBP`,e}({}),tp=[q.Active,q.Pending,q.Locked,q.Suspended,q.Inactive,q.Closed],np=e=>{let t=tp.indexOf(e);return t===-1?tp.length:t},rp=e=>[...e??[]].sort((e,t)=>np(e.state)-np(t.state)),ip=e=>e===q.Closed,ap=e=>e===q.Active,op=(e,t=[],n=[],r=[])=>{if(!e){let e=r.filter(({state:e})=>e===q.Inactive),t=[ep.EUR,ep.GBP].filter(e=>!n.some(t=>t.currencyISOCode===e)).map(e=>({id:window.crypto.randomUUID(),totalBalance:0,freeBalance:0,createdAt:0,updatedAt:0,currencyISOCode:e,state:q.Inactive,type:Hd.Bank,multicurrency:!1}));return[...e,...t]}return t.filter(({currencyISOCode:e})=>!n.some(t=>![q.Inactive,q.Closed].includes(t.state)&&t.currencyISOCode===e))},sp=e=>{if(!e.length)return{all_accounts:z.t(`All accounts`),active_accounts:z.t(`All active accounts`),closed_accounts:z.t(`All closed accounts`)};let t=e.filter(e=>e.state===q.Closed).length;return{all_accounts:String(e.length),active_accounts:String(e.length-t),closed_accounts:String(t)}},cp=(e,t=!1)=>(e??[]).filter(e=>ap(e.state)).map(({id:e,accountName:n,availableBalance:r,currencyISOCode:i}
3)=>{let a=Wc({number:r,truncate:!0,minimumFractionDigits:0});return t?{label:n??``,secondaryLabel:`${a} ${i}`,value:e}:{label:z.t(`{{accountName}} ({{formattedBalance}} {{currencyISOCode}})`,{accountName:n,formattedBalance:a,currencyISOCode:i,interpolation:{escapeValue:!1}}),value:e}}),lp={all:[`accounts`],bank:()=>[...lp.all,`bank`],provider:(e=``)=>[...lp.all,`provider`,e],limit:()=>[...lp.all,`limit`],withdrawalPurposes:[`withdrawal-purposes`],currencies:[`money-currencies`],exchangeConfig:[`exchange-config`],ibanDetails:(e=``)=>[...lp.all,`iban-details`,e],openbankingConnections:[`openbanking-connections`]},up=lp,dp=()=>N({queryKey:lp.bank(),queryFn:async()=>rp(await Sf())}),fp=e=>{let t=Bu();return F({...dp(),...e,enabled:(e?.enabled??!0)&&t.isTokenValid})},pp=e=>N({queryKey:lp.provider(e),queryFn:async()=>{if(e)return await Cf(e)}}),mp=(e,t)=>F({...pp(e),...t}),hp=()=>{let{currentBalance:e}=xf(),{data:t,isLoading:n}=mp(e?.id,{enabled:!!e});return(0,I.useMemo)(()=>{let e=[...t?.master_accounts??[],...t?.sub_accounts??[]];return{isLoading:n,hasAnyCards:e.some(e=>(e.cardCount??0)>0),totalCardCount:e.reduce((e,t)=>e+(t.cardCount??0),0),accountIdsWithCards:new Set(e.filter(e=>(e.cardCount??0)>0).map(e=>e.id))}},[t,n])},gp=e=>{let t=P();return M({mutationFn:Ef,onSuccess:async()=>{await t.invalidateQueries({queryKey:lp.all}),b({message:e?.successMessage??z.t(`Account created`),variant:`success`})},onError:()=>{b({message:e?.errorMessage??z.t(`Something went wrong. Please try again`),variant:`attention`,...e?.errorMessage&&{maxWidth:400}})}})}
3,_p=e=>{let t=e,n=t?.data??t?.response?.data;if(!n)return!1;let r=`${n.details??``} ${n.error??``}`.toLowerCase();return r.includes(`insufficient balance`)||r.includes(`insufficient funds`)},vp=()=>{let e=P();return M({mutationFn:wf,onSuccess:async()=>{await e.invalidateQueries({queryKey:lp.all}),b({message:z.t(`Money sent`),variant:`success`})},onError:e=>{b({message:_p(e)?z.t(`Insufficient funds on Master account`):z.t(`Something went wrong. Please try again`),variant:`attention`})}})},yp=()=>{let e=P();return M({mutationFn:Df,onSuccess:async()=>{await e.invalidateQueries({queryKey:lp.all}),await e.invalidateQueries({queryKey:qp.all})},onError:()=>{b({message:z.t(`Couldnât complete the transfer. Try again`),variant:`attention`,maxWidth:400})}})},bp=()=>{let e=P();return M({mutationFn:Tf,onSuccess:async()=>{await e.invalidateQueries({queryKey:lp.all}),b({message:z.t(`Balance activation may take time. Check back later`),variant:`success`})},onError:async()=>{await e.invalidateQueries({queryKey:lp.all}),b({message:z.t(`Something went wrong. Please try again`),variant:`attention`})}})},xp=e=>{let t=P();return M({mutationFn:Of,onSuccess:async()=>{await t.invalidateQueries({queryKey:lp.all}),b({message:e?.successMessage??z.t(`Account name updated`),variant:`success`})},onError:()=>{b({message:e?.errorMessage??z.t(`Unable to save changes. Try again.`),variant:`attention`,...e?.errorMessage&&{maxWidth:500}})}})},Sp=e=>{let t=P();return M({mutationFn:kf,onSuccess:async()=>{await t.invalidateQueries({queryKey:lp.all}),await t.invalidateQueries({queryKey:qp.all}),b({message:e?.successMessage??z.t(`Account closed`),variant:`success`})},onError:()=>{b({message:e?.errorMessage??z.t(`Unable to close this account. Try again.`),variant:`attention`,...e?.errorMessage&&{maxWidth:500}})}})},Cp=()=>M({mutationFn:Af,onSuccess(e){return mf(e)},onError(e){b(z.t(`Something went wrong. Please try again`),{variant:`attention`})}}),wp=()=>F({queryKey:lp.withdrawalPurposes,queryFn:jf}),Tp=()=>M({mutationFn:e=>(b({message:z.t(`Weâre verifying the recipientâs details...`),variant:`info`}),Mf(e)),onError:()=>{b({message:z.t(`Something went wrong. Please try again`),variant:`attention`})}}),Ep=()=>N({queryKey:lp.currencies,queryFn:Nf}),Dp=e=>F({...Ep(),...e}),Op=()=>M({mutationFn:Pf,onError:e=>{ff(e)||b({message:z.t(`Something went wrong. Please try again`),variant:`attention`})}}),kp=()=>N({queryKey:lp.exchangeConfig,queryFn:Ff}),Ap=e=>F({...kp(),...e}),jp=()=>{let e=P();return M({mutationFn:({balance:e,action:t})=>If(e.id,t),onSuccess:async(t,{balance:n,action:r})=>{let i=r===`Active`;e.setQueryData(lp.bank(),e=>e&&rp(e.map(e=>e.id===n.id?{...e,state:i?q.Active:q.Locked}:e))),b({message:n.multicurrency?i?z.t(`Multi-currency balance unlocked`):z.t(`Multi-currency balances locked`):`${n.currencyISOCode} ${i?z.t(`balance unlocked`):z.t(`balance locked`)}`,variant:`success`}),await(n.multicurrency?e.invalidateQueries({queryKey:lp.all}):Promise.all([e.invalidateQueries({queryKey:lp.bank()}),e.invalidateQueries({queryKey:lp.provider(n.id)})]))},onError:()=>{b({message:z.t(`Something went wrong. Please try again`),variant:`attention`})}})},Mp=(e,t)=>F({queryKey:lp.ibanDetails(e),queryFn:()=>Lf(e),enabled:!!e&&(t?.enabled??!0)}),Np=()=>M({mutationFn:Rf,onSuccess:e=>mf(e),onError:()=>{b({message:z.t(`Something went wrong. Please try again`),variant:`attention`})}}),Pp=()=>M({mutationFn:zf,onError:()=>{b({message:z.t(`Something went wrong. Please try again`),variant:`attention`})}}),Fp=e=>F({queryKey:lp.openbankingConnections,queryFn:Bf,...e??{}}),Ip=()=>{let e=P();return M({mutationFn:Vf,onSuccess:async(t,n)=>{e.setQueryData(lp.openbankingConnections,e=>e?.map(e=>e.id===n.openbanking_connection_id?{...e,status:`Disabled`}:e)),await e.invalidateQueries({queryKey:lp.openbankingConnections})},onError:()=>{b({message:z.t(`Something went wrong. Please try again`),variant:`attention`})}})},Lp=()=>{let e=jd();return F({queryKey:lp.limit(),queryFn:Hf,enabled:e})},Rp=(e,t)=>{if(!t||!e?.length)return{total:0,currency:t,budgetCount:0,hasMaskedInput:!1};let n=e.filter(e=>e.currencyISOCode===t);return{total:n.reduce((e,t)=>
3e+(Number.isFinite(t.availableBalance)?t.availableBalance:0),0),currency:t,budgetCount:n.length,hasMaskedInput:n.length>0&&n.every(e=>e.availableBalance===0)}},zp=()=>{let{data:e}=fp();return(0,I.useMemo)(()=>{let t=e??[],n=t.filter(({state:e})=>e!==q.Closed),r=t.filter(({state:e})=>e===q.Active);return{active:r,opened:n,closed:t.filter(({state:e})=>e===q.Closed),openedMulticurrency:n.filter(({multicurrency:e})=>e),activeMulticurrency:r.filter(({multicurrency:e})=>e),hasMulticurrency:t.some(({multicurrency:e})=>e)}},[e])},Bp=()=>{let{currentBalance:e}=xf(),t=e?.state;return{isActive:t===q.Active,isLocked:t===q.Locked,isSuspended:t===q.Suspended,isClosed:t===q.Closed,isInactive:t===q.Inactive,isPending:t===q.Pending}},Vp=(e,t)=>{let n=e.type===Hd.Master;return{id:e.id,currencyISOCode:e.currencyISOCode,availableBalance:e.freeBalance,isMaster:n,accountName:n?z.t(t?`Main budget`:`Master account`):e.name,state:e.state,createdAt:e.createdAt,updatedAt:e.updatedAt}},Hp=()=>{let{currentBalance:e}=xf(),{data:t}=mp(e?.id,{enabled:!!e}),n=jd();return(0,I.useMemo)(()=>{let r=e?.currencyISOCode,i=e=>e.currencyISOCode===r,a=(t?.master_accounts??[]).map(e=>Vp(e,n)).filter(i),o=(t?.sub_accounts??[]).map(e=>Vp(e,n)).filter(i);return{master:a,sub:o,all:[...a,...o]}},[t,e?.currencyISOCode,n])},Up=()=>{let{currentBalance:e}=xf(),{data:t,isPending:n}=mp(e?.id,{enabled:!!e}),r=jd();return(0,I.useMemo)(()=>{let i=e?.currencyISOCode;return{...Rp([...(t?.master_accounts??[]).map(e=>Vp(e,r)),...(t?.sub_accounts??[]).map(e=>Vp(e,r))],i),isPending:!!e&&n}},[t,e,n,r])},Wp=()=>{let{data:e,isSuccess:t}=Lp();return{count:e?.issuedAccountsCount??0,limit:e?.issuedAccountsLimit??0,canCreate:e?.canCreateAccounts??!0,blockReason:e?.blockReason,isLimitReached:e?!e.canCreateAccounts:!1,isLoaded:t}},Gp=function(e){return e.Individual=`INDIVIDUAL`,e.Business=`BUSINESS`,e}({}),Kp={all:[`payment-cards`],cards:e=>e?[...Kp.all,`list`,e]:[...Kp.all,`list`],card:e=>[...Kp.all,e],cardDetails:e=>[...Kp.all,e,`details`],cardLimits:[`cards-limits`],eligibleAccounts:e=>[...Kp.all,e,`eligible-accounts`],deliveryAddress:e=>[...Kp.all,`delivery-address`,e]},qp=Kp,Jp=e=>F({queryKey:Kp.deliveryAddress(e??``),queryFn:()=>bd({spendbaseUserId:e}),enabled:!!e}),Yp=e=>N({queryKey:Kp.card(e),queryFn:()=>cd(e)}),Xp=(e,t)=>F({...Yp(e),...t}),Zp=50,Qp=e=>{let t={limit:Zp,...e};return di({queryKey:Kp.cards(t),queryFn:({pageParam:e})=>ud({cursor:e,...t}),initialPageParam:void 0,getNextPageParam:e=>e.hasMore?e.nextCursor:void 0})},$p=(e,t)=>gi({...Qp(e),...t,enabled:!!e?.balance_id&&(t?.enabled??!0)}),em=(e,t)=>gi({...Qp(e),...t}),tm=e=>N({queryKey:Kp.cardDetails(e),queryFn:()=>ld(e)}),nm=(e,t)=>F({...tm(e),...t}),rm=()=>{let e=P();return M({mutationFn:dd,onSuccess:async(t,n)=>{await Promise.all([e.invalidateQueries({queryKey:Kp.cardDetails(n)}),e.invalidateQueries({queryKey:Kp.card(n)}),e.invalidateQueries({queryKey:Kp.cards()})])},onError:()=>{b({message:z.t(`An error occurred. Please try again`),variant:`attention`})}})},im=()=>{let e=P();return M({mutationFn:fd,onSuccess:async(t,n)=>{await Promise.all([e.invalidateQueries({queryKey:Kp.cardDetails(n)}),e.invalidateQueries({queryKey:Kp.card(n)}),e.invalidateQueries({queryKey:Kp.cards()})])},onError:()=>{b({message:z.t(`An error occurred. Please try again`),variant:`attention`})}})},am=()=>{let e=P();return M({mutationFn:pd,onSuccess:async(t,n)=>{await Promise.all([e.invalidateQueries({queryKey:Kp.cardDetails(n)}),e.invalidateQueries({queryKey:Kp.card(n)}),e.invalidateQueries({queryKey:Kp.cards()})])},onError:()=>{b({message:z.t(`An error occurred. Please try again`),variant:`attention`})}})},om=()=>M({mutationFn:md,onError:()=>{b({message:z.t(`An error occurred. Please try again`),variant:`attention`})}}),sm=()=>M({mutationFn:hd}),cm=()=>{let e=P();return M({mutationFn:gd,onSuccess:async(t,{cardId:n})=>{await Promise.all([e.invalidateQueries({queryKey:Kp.cardDetails(n)}),e.invalidateQueries({queryKey:Kp.card(n)}),e.invalidateQueries({queryKey:Kp.cards()})])}})},lm=()=>{let e=P();return M({mutationFn:_d,onSuccess:async(t,{cardId:n})=>
3{await Promise.all([e.invalidateQueries({queryKey:Kp.cardDetails(n)}),e.invalidateQueries({queryKey:Kp.card(n)})])}})},um=()=>{let e=P();return M({mutationFn:vd,onSuccess:async(t,{id:n})=>{b({message:z.t(`Card name updated`),variant:`success`}),await Promise.all([e.invalidateQueries({queryKey:Kp.cardDetails(n)}),e.invalidateQueries({queryKey:Kp.card(n)})])},onError:()=>{b({message:z.t(`An error occurred. Please try again`),variant:`attention`})}})},dm=e=>{let t=P();return M({mutationFn:yd,onSuccess:async()=>{await t.invalidateQueries({queryKey:Kp.all}),t.invalidateQueries({queryKey:up.all}),t.invalidateQueries({queryKey:Ed.financialInfo()}),t.invalidateQueries({queryKey:Ed.issueStatus()})},onError:t=>{b({message:e?.resolveErrorMessage?.(t)||t?.data?.message||z.t(`Failed to create card. Please try again.`),variant:`attention`,maxWidth:`fit-content`})}})},fm=()=>{let e=P();return M({mutationFn:xd,onSuccess:async()=>{await e.invalidateQueries({queryKey:Kp.all})},onError:e=>{b({message:e?.data?.message||z.t(`Failed to update card limit. Please try again.`),variant:`attention`})}})},pm=e=>N({queryKey:Kp.eligibleAccounts(e),queryFn:()=>Cd(e)}),mm=(e,t)=>F({...pm(e),...t}),hm=()=>{let e=P();return M({mutationFn:wd,onSuccess:async(t,{cardId:n})=>{b({message:z.t(`Account successfully updated`),variant:`success`}),e.setQueryData(Kp.card(n),e=>e&&{...e,accountName:t.new_account_name,ledgerAccountId:t.new_account_id}),await Promise.all([e.invalidateQueries({queryKey:Kp.cardDetails(n)}),e.invalidateQueries({queryKey:Kp.card(n)}),e.invalidateQueries({queryKey:Kp.cards()}),e.invalidateQueries({queryKey:Kp.eligibleAccounts(n)})])},onError:()=>{b({message:z.t(`Couldn't update the account. Please try again`),variant:`warning`,maxWidth:405})}})},gm=[$u.TERMINATED,$u.EXPIRED],_m=[...gm,$u.FAILED],vm=[Qu.NotVerified,Qu.PendingVerification,Qu.DocumentsNeeded],ym=[Qu.VerificationFailed,Qu.Rejected],bm=({status:e,pendingLimit:t,limit:n,onboardingStatus:r},{isUS:i=!1,withoutCardholderActivation:a=!1}={})=>{if(e===$u.DEFAULT&&(t||n?.deleteRequested))return{label:z.t(`Limit setup pending`),color:`secondary`};switch(e){case $u.LOCKED:return{label:z.t(`Locked`),color:`warning`};case $u.TERMINATED:return{label:z.t(`Terminated`),color:`secondary`};case $u.EXPIRED:return{label:z.t(`Expired`),color:`secondary`};case $u.SUSPENDED:return{label:z.t(`Suspended`),color:`error`};case $u.FAILED:return i?{label:z.t(`Failed`),color:`secondary`}:null;case $u.NEW:return r!=null&&ym.includes(r)?{label:z.t(`Verification rejected`),color:`error`}:r!=null&&vm.includes(r)?{label:z.t(`Identity verification required`),color:`warning`}:a?null:{label:z.t(`New`),color:`success`};default:return null}},xm=e=>{switch(e){case td.PENDING:return{label:z.t(`Printing`),color:`warning`};case td.IN_TRANSIT:return{label:z.t(`On the way`),color:`default`};case td.DELIVERED:return{label:z.t(`Delivered`),color:`success`};default:return null}},Sm=(e,{isUS:t=!1,withoutCardholderActivation:n=!1}={})=>{let r=[],i=e.status===$u.NEW,a=(t?_m:gm).includes(e.status),o=e.onboardingStatus===Qu.Approved,s=e.deliveryStatus===td.DELIVERED,c=e.userPinSet===!1,l=e.deliveryStatus&&!a&&(!i||o)&&(!s||c)?xm(e.deliveryStatus):null;l&&r.push(l);let u=bm(e,{isUS:t,withoutCardholderActivation:n});return u&&!(l&&i)&&r.push(u),r},Cm=function(e){return e.Unset=`Undefined`,e.Returned=`Returned`,e.BalanceAdjustment=`BalanceAdjustment`,e.Chargeback=`Chargeback`,e.Convert=`Exchange`,e.Revenue=`Revenue`,e.InternalFx=`InternalFx`,e.Autopay=`Autopay`,e}({}),wm=function(e){return e.Unset=`Undefined`,e.Bank=`Bank`,e.Internal=`Internal`,e.Card=`Card`,e.Crypto=`Crypto`,e}({}),Tm=function(e){return e.Awaiting=`awaiting`,e.PendingDeposit=`pending_deposit`,e.Held=`held`,e.Converting=`converting`,e.Settling=`settling`,e.Completed=`completed`,e.Failed=`failed`,e.Expired=`expired`,e.Unknown=`unknown`,e}({}),Em=function(e){return e.Unset=`Unset`,e.Pending=`Pending`,e.Confirmed=`Confirmed`,e.Rejected=`Rejected`,e}({}),Dm=function(e){return e.Debit=`debit`,e.Credit=`credit`,e}({}),Om=function(e){return e.Exchange=`EXCHANGE`,e.Swift=`SWIFT`,e}({}),km=function(e){return e.FPS=`FPS`,e.SCT=`SCT`,e.SCTI=`SCTI`,e.SWIFT=`SWIFT`,e.Wire=`Wire`,e}({}),Am=function(e){return e.InsufficientFunds=`InsufficientFunds`,e.ExpirationDate=`ExpirationDate`,e.PostalCode=`PostalCode`,e.CVC=`CVC/CVV`,e.LimitExceeded=`LimitExceeded`,e.CardAccountBlocked=`CardAccountBlocked`,e.DoNotHonor=`DoNotHonor`,e.ManualKeyEntryFailed=`ManualKeyEntryFailed`,e.MotoNotEnabled=`MotoNotEnabled`,e.CvvRequired=`CvvRequired`,e.MagneticStripeInvalid=`MagneticStripeInvalid`,e.RiskTransactionNotPermitted=`RiskTransactionNotPermitted`,e.RiskTransactionRejected=`RiskTransactionRejected`,e.CardRiskGroup=`CardRiskGroup`,e.CardBlocked=`CardBlocked`,e.CardSuspended=`CardSuspended`,e.StolenCard=`StolenCard`,e.ScaRequired=`ScaRequired`,e.UnknownError=`UnknownError`,e.AavValidatedUnknownError=`AavValidatedUnknownError`,e}({}),jm=`/cards-router/v1/crypto`,Mm={0:void 0,1:Tm.PendingDeposit,2:Tm.Held,3:Tm.Convert
3ing,4:Tm.Settling,5:Tm.Completed,6:Tm.Failed,7:Tm.Expired,8:Tm.Awaiting},Nm=e=>e?typeof e==`string`?Math.floor(new Date(e).getTime()/1e3):Number(e.seconds)||0:0,Pm=e=>e===Tm.Completed?Em.Confirmed:e===Tm.Failed||e===Tm.Expired?Em.Rejected:Em.Pending,Fm=e=>{let t=Mm[e.status]??Tm.Unknown;return{id:e.id,amount:e.to_amount?Number(e.to_amount):0,category:0,createdAt:Nm(e.created_at),updatedAt:Nm(e.updated_at),receipt:``,message:``,is_locked:!1,sourceType:wm.Crypto,eventType:Cm.Unset,state:Pm(t),type:Dm.Debit,currencyISOCode:e.to_symbol,attachment:void 0,details:{externalTransactionId:e.deposit_txid||e.id,hasAttachment:!1,senderName:``,cryptoStatus:t,walletAddress:e.deposit_address||void 0,network:e.from_network||void 0,fromSymbol:e.from_symbol,fromAmount:e.from_amount||void 0,toAmount:e.to_amount||void 0,indicativeRate:e.implied_rate||void 0}}},Im=new Set,Lm=e=>Im.has(e),Rm=null,zm=()=>{let e=tG();return e?.permissions?.includes(V.CARDS_ALL_ACCESS)?Rm!==e.id:!1},Bm=async()=>$.requester.cardServiceInstance.get(`${jm}/activity`).then(({data:e})=>{let t=(e.activity??[]).map(Fm);return t.forEach(({id:e})=>Im.add(e)),t}).catch(e=>(e?.status===403&&(Rm=tG()?.id??null),[])),Vm=async e=>$.requester.cardServiceInstance.get(`${jm}/activity/${e}`).then(({data:e})=>Fm(e.activity)),Hm=function(e){return e.PDF=`pdf`,e.CSV=`csv`,e.XML=`xml`,e}({}),Um=()=>Intl.DateTimeFormat().resolvedOptions().timeZone,Wm=3e4,Gm=[`cardIDs`,`subAccounts`,`type`,`status`,`direction`,`specificAmount`,`atLeast`,`noMoreThan`,`attachments`,`search`],Km=async(e,t)=>{if(t.cursor||!R.ENABLE_CRYPTO_TOPUP_FEATURE||!zm()||Gm.some(e=>t[e]))return e;let n=await Bm();return n.length?{...e,transactions:[...n,...e.transactions]}:e},qm=async e=>{let t=$.requester.cardServiceInstance,n=`/cards-router/v1/transactions`,r={[xl]:Um()};if(Yu(e)){let{cursor:i,limit:a,...o}=e;return t.post(n,Zu(o,[`cardIDs`,`subAccounts`,`type`,`status`]),{params:{cursor:i,limit:a},headers:r}).then(({data:t})=>Km(t,e))}return t.get(n,{params:e,headers:r}).then(({data:t})=>Km(t,e))},Jm=async e=>Lm(e)?{transaction:await Vm(e)}:$.requester.cardServiceInstance.get(`/cards-router/v1/transactions/${e}`).then(({data:e})=>e),Ym=async({transactionId:e,...t})=>$.requester.cardServiceInstance.post(`/cards-router/v1/attachments/transactions/${e}/note`,t).then(({data:e})=>e),Xm=async({transactionId:e,file:t})=>{let n=new FormData;return n.append(`file`,t,t.name),$.requester.cardServiceInstance.post(`/cards-router/v1/attachments/transactions/${e}/file`,n).then(({data:e})=>e).catch(e=>{throw Error(e?.data?.error)})},Zm=async({transactionId:e,...t})=>$.requester.cardServiceInstance.delete(`/cards-router/v1/attachments/transactions/${e}/file`,{params:t}).then(({data:e})=>e),Qm=async({accountID:e,...t})=>{let n=$.requester.cardServiceInstance,r=`/cards-router/v1/transactions/accounts/${e}/csv`,i={[Sl]:`text/csv`,[xl]:Um()};return Yu(t)?n.post(r,Zu(t,[`cardIDs`,`subAccounts`,`type`,`status`]),{headers:i,timeout:Wm}):n.get(r,{params:t,headers:i,timeout:Wm})},$m=async({accountId:e,...t})=>{let n=t.format===Hm.PDF?`application/pdf`:`text/csv`;return $.requester.cardServiceInstance.get(`/cards-router/v1/transactions/accounts/${e}/statements`,{headers:{[Sl]:n},responseType:`blob`,params:t,timeout:Wm})},eh=async e=>$.requester.cardServiceInstance.get(`/cards-router/v1/transactions/${e}/receipt`,{headers:{[xl]:Um(),[Sl]:`application/pdf`},responseType:`blob`}),th={all:[`transactions`],transactions:e=>[...th.all,`transactions-list`,e],transactionDetails:e=>[...th.all,`transaction-details`,e]},nh=R.ENABLE_CRYPTO_TOPUP_FEATURE?3e4:void 0,rh=th,ih=50,ah=e=>di({queryKey:rh.transactions(e),queryFn:({pageParam:t})=>qm({...e,cursor:t,limit:ih}),initialPageParam:void 0,getNextPageParam:e=>e.hasMore?e.nextCursor:void 0,refetchInterval:nh}),oh=(e,t)=>gi({...ah(e),...t}),sh=e=>N({queryKey:th.transactionDetails(e),queryFn:()=>Jm(e),refetchInterval:nh}),ch=(e,t)=>F({...sh(e),...t}),lh=()=>{let e=P();return M({mutationFn:Ym,onSuccess(t,{transactionId:n}){return e.invalidateQueries({queryKey:th.transactionDetails(n)})},onError:()=>{b({message:z.t(`Failed to edit note`),variant:`attention`})}})},uh=()=>{let e=P();
3return M({mutationFn:Xm,onSuccess(){e.invalidateQueries({queryKey:th.all})},onError:e=>{b(Zc(e.message)?z.t(`Please upload a file in one of the following formats: PDF, JPG, JPEG, PNG, HEIC, HEIF or WEBP, up to {{size}}MB`,{size:10}):e.message||z.t(`Something went wrong`),{variant:`attention`})}})},dh=()=>{let e=P();return M({mutationFn:Zm,onSuccess(){e.invalidateQueries({queryKey:th.all})},onError:e=>{b(e.message||z.t(`Something went wrong`),{variant:`attention`})}})},fh=()=>M({mutationFn:e=>Qm(e),onSuccess(e){return mf(e)}}),ph=()=>M({mutationFn:$m,onSuccess(e){return mf(e)},onError(e){b(z.t(`Something went wrong. Please try again`),{variant:`attention`})}}),mh=()=>M({mutationFn:eh,onSuccess(e){return mf(e)},onError(e){b(z.t(`Something went wrong. Please try again`),{variant:`attention`})}}),hh=function(e){return e.Pending=`pending`,e.Estimated=`estimated`,e.Exact=`exact`,e}({}),gh=e=>{switch(e){case Tm.Awaiting:case Tm.PendingDeposit:case Tm.Expired:case Tm.Unknown:return`pending`;case Tm.Held:case Tm.Converting:return`estimated`;default:return`exact`}},_h=function(e){return e.EU=`eu`,e.NA=`na`,e.US=`us`,e.CA=`ca`,e.USHighnote=`us-hn`,e}({}),vh=`spendbase_onboarding_flow`,yh=`flow`,bh=`us-hn`,xh=`/cards-router/v1/onboarding/us/us`,Sh=`/cards-router/v1/onboarding/us-hn/us-hn`,Ch=e=>e===bh,wh=e=>{let t=null;try{t=new URLSearchParams(e).get(yh)}catch{return Th()}if(!Ch(t))return Th();try{sessionStorage.setItem(vh,t)}catch(e){console.error(`Failed to store the onboarding flow:`,e)}return t},Th=()=>{try{let e=sessionStorage.getItem(vh);return Ch(e)?e:void 0}catch(e){console.error(`Failed to read the onboarding flow:`,e);return}},Eh=()=>{try{sessionStorage.removeItem(vh)}catch(e){console.error(`Failed to clear the onboarding flow:`,e)}},Dh=e=>e===`us-hn`?Sh:xh,Oh=e=>e===`us-hn`?_h.USHighnote:_h.US,kh=new Map([[`region`,`region`],[`review information`,`review_information`],[`certification and attestation`,`certification_attestation`]]),Ah=new Map([[`us_kyb_region`,`region`],[`us_kyb_review_information`,`review_information`],[`us_kyb_certification_attestation`,`certification_attestation`]]),jh=e=>{if(!e)return null;let t=Object.keys(e.schema??{});if(t.length===0){if(e.stage_after_submit===oc.RegionSubmitted)return`region`;if(e.stage_after_submit===oc.ReviewInformationSubmitted)return`review_information`;if(e.stage_after_submit===oc.CertificationAttestationSubmitted)return`certification_attestation`;if(e.active_stage===oc.DocumentsSubmitted)return`review_information`;if(e.active_stage===oc.ReviewInformationSubmitted)return`certification_attestation`}return(e.step_type?Ah.get(e.step_type):void 0)||(t.length>0?null:kh.get(e.name.trim().toLowerCase())??null)},Mh=e=>jh(e)!==null,Nh=e=>e?.stage===oc.NotOnboarded&&e?.status===sc.NotOnboarded,Ph=e=>e?.status===sc.InProgress,Fh=e=>e?.status===sc.InCompliance,Ih=e=>e?.status===sc.Rejected&&e?.stage===oc.Rejected,Lh=e=>e?.status===sc.Onboarded||e?.stage===oc.Onboarded,Rh=e=>e?.status===sc.Closed||e?.stage===oc.Closed,zh=e=>e?.stage!==oc.NotOnboarded&&e?.stage!==oc.DocumentsSubmitted,Bh=e=>e?.stage!==oc.NotOnboarded&&e?.stage!==oc.DocumentsSubmitted,Vh=e=>e===_h.US||e===_h.USHighnote,Hh=new Set(Object.values(_h)),Uh=e=>!!e&&Hh.has(e),Wh=(e,t)=>{let n=e?.region;return n&&!Uh(n)?n:n===_h.USHighnote?_h.USHighnote:e&&e.euStage!==H.NotOnboarded||!t?_h.EU:n??null},Gh=e=>Lh(e),Kh=e=>e?Vh(e.region)?Gh(e):e.euStage===H.Onboarded:!1,qh=()=>Dh(Th()),Jh=class extends Error{fieldErrors;constructor(e){super(`Document submission failed`),this.fieldErrors=e}},Yh=async e=>{let{data:t}=await $.requester.cardServiceInstance.get(`${qh()}/workflows/${e}`);return{steps:t.steps.filter(e=>!e.skipped)}},Xh=async({workflow_id:e,step_id:t,data:n,file_ids:r})=>{try{let{data:i}=await $.requester.cardServiceInstance.post(`${qh()}/workflows/${e}/steps/${t}`,{data:n,file_ids:r??[]});return i}catch(e){throw e&&typeof e==`object`&&`status`in e&&e.status===422?new Jh(e.data?.errors??{}):e}},Zh=async e=>{let{data:t}=await $.requester.cardServiceInstance.post(`${qh()}/files`,e);return t},Qh=async(e,t,n)=>{await oe.put(e,t,{headers:{"Content-Type":t.type},timeout:12e4,onUploadProgress:n?e=>{e.total&&n(Math.round(e.loaded/e.total*100))}:void 0})},$h=async e=>{await $.requester.cardServiceInstance.post(`/cards-router/v1/region`,{region:e})},eg=async()=>{let{data:e}=await $.requester.cardServiceInstance.get(`/cards-router/v1/onboarding/stage`);return e},tg=async e=>{await $.requester.cardServiceInstance.post(`${qh()}/workflows/${e}/cancel`)},ng=async()=>{let{data:e}=await $.requester.cardServiceInstance.get(`${qh()}/workflows`);return e},rg=async e=>{let{data:t}=await $.requester.cardServiceInstance.get(`${qh()}/workflows/${e}/documents`);return t},ig=async()=>{let{data:e}=await $.requester.cardServiceInstance.get(`/cards/onboarding/countries`);return e.countries},ag=`spendbase_kyb_step`,og=1440*60*1e3,sg=720*60*60*1e3,cg=1;
3function lg(e){return typeof e==`object`&&!!e&&e.version===cg&&typeof e.expiresAt==`number`&&typeof e.data==`object`&&e.data!==null}var ug=()=>tG()?.id??``,dg=(e,t)=>`${ag}_${ug()}_${e}_${t}`,fg=(e,t)=>{try{localStorage.removeItem(dg(e,t))}catch{}},pg=(e,t,n,r=og)=>{try{let i={version:cg,data:n,expiresAt:Date.now()+r};localStorage.setItem(dg(e,t),JSON.stringify(i))}catch{}},mg=(e,t)=>{try{let n=localStorage.getItem(dg(e,t));if(!n)return null;let r=JSON.parse(n);return!lg(r)||Date.now()>r.expiresAt?(localStorage.removeItem(dg(e,t)),null):r.data}catch{return null}},hg=e=>{try{let t=`${ag}_${ug()}_${e}_`;Object.keys(localStorage).filter(e=>e.startsWith(t)).forEach(e=>localStorage.removeItem(e))}catch{}},gg=e=>{try{let t=`${ag}_${e}_`;Object.keys(localStorage).filter(e=>e.startsWith(t)).forEach(e=>localStorage.removeItem(e))}catch{}},_g=`__global__`,vg=`__intro__`,yg=`__disclaimer__`,bg=`__review__`,xg=`__certification__`,Sg=new Set([yg,bg,xg]),Cg=e=>{try{let t=`${ag}_${ug()}_${e}_`;Object.keys(localStorage).filter(e=>e.startsWith(t)&&!Sg.has(e.slice(t.length))).forEach(e=>localStorage.removeItem(e))}catch{}},wg=()=>pg(_g,vg,{completed:!0},sg),Tg=()=>!!mg(_g,vg),Eg=()=>{try{localStorage.removeItem(dg(_g,vg))}catch{}},Dg=e=>pg(e,bg,{completed:!0},sg),Og=e=>!!mg(e,bg),kg=e=>fg(e,bg),Ag=e=>pg(e,xg,{completed:!0},sg),jg=e=>!!mg(e,xg),Mg=e=>fg(e,xg),Ng=50*1024*1024,Pg=/^(image\/(jpeg|png)|application\/pdf)$/,Fg={all:[`cards-onboarding`],workflowById:e=>[...Fg.all,`workflows`,e],workflows:()=>[...Fg.all,`workflows`],countries:[`countries`]},Ig=e=>N({queryKey:Fg.workflowById(e),queryFn:()=>Yh(e)}),Lg=(e,t)=>F({...Ig(e),enabled:!!e,...t}),Rg=()=>{let e=P();return M({mutationFn:Xh,onSuccess(){e.invalidateQueries({queryKey:Fg.workflows()}),e.invalidateQueries({queryKey:Ed.init()}),e.invalidateQueries({queryKey:[`member-onboarding-stage`]})},onError(t,{workflow_id:n}){e.invalidateQueries({queryKey:Fg.workflowById(n)})}})},zg=()=>{let e=P();return M({mutationFn:tg,onSuccess:(t,n)=>{hg(n),Eg(),Eh(),e.invalidateQueries({queryKey:Fg.workflows()}),e.invalidateQueries({queryKey:Fg.workflowById(n)})}})},Bg=()=>{let e=P();return M({mutationFn:e=>$h(e),onSuccess(t,n){e.setQueryData(Ed.init(),e=>e&&{...e,region:n}),e.invalidateQueries({queryKey:Ed.init()}),e.invalidateQueries({queryKey:[`member-onboarding-stage`]}),e.invalidateQueries({queryKey:Fg.workflows()})}})},Vg=()=>M({mutationFn:async({file:e,onProgress:t})=>{if(e.size>Ng)throw Error(`File size must not exceed 50 MB`);if(!Pg.test(e.type))throw Error(`Only images and PDF files are allowed`);let{file_id:n,upload_url:r}=await Zh({filename:e.name,content_type:e.type,size:e.size});return await Qh(r,e,t),n}}),Hg=()=>{let e=Bu(),{data:t,isLoading:n,isFetched:r}=F({...Dd(),enabled:!!e.isTokenValid}),i=Wh(t,R.ENABLE_US_KYB_FEATURE);return i?{region:i}:{region:null,isLoading:n,isFetched:r}},Ug=e=>F({queryKey:Fg.workflows(),queryFn:ng,...e}),Wg=()=>N({queryKey:Fg.countries,queryFn:ig}),Gg=e=>F({...Wg(),...e}),Kg=()=>N({queryKey:[`member-onboarding-stage`],queryFn:eg}),qg=e=>F({...Kg(),...e}),Jg=(e,t)=>F({queryKey:[...Fg.all,`documents`,e],queryFn:()=>rg(e),enabled:!!e&&(t?.enabled??!0),retry:!1}),Yg={},Xg=(e,t,n)=>{let r=!!e&&t.some(t=>!!mg(e,t.id)),{data:i}=Jg(e,{enabled:n&&!!e&&t.length>0&&!r}),a=(0,I.useMemo)(()=>{if(!i)return Yg;let e=Array.isArray(i.documents)?i.documents:Object.values(i.documents??{}),t={};for(let n of e)!n?.step_id||!n.data||(t[n.step_id]=n.data);return t},[i]);return(0,I.useEffect)(()=>{if(e)for(let[t,n]of Object.entries(a))mg(e,t)||pg(e,t,n)},[a,e]),a},Zg=e=>e?Ut[`${e}Icon`]??void 0:void 0,Qg=e=>Zg(e[`ui:group`]?.icon??e[`ui:icon`]),$g=e(bi()),e_=e(yi()),t_=new $g.default({allErrors:!0,strict:!1,validateFormats:!0,coerceTypes:!1,removeAdditional:!1});(0,e_.default)(t_);var n_=xi({ajvOptionsOverrides:{allErrors:!0,strict:!1,validateFormats:!0,coerceTypes:!1,removeAdditional:!1}});function r_(e){let t={...e};if(t.properties&&typeof t.properties==`object`){let e=t.properties;t.properties=Object.fromEntries(Object.entries(e).map(([e,t])=>{if(t&&typeof t==`object`){let n=t,r={...n};return Array.isArray(n.enum)&&(r.enum=n.enum.map(e=>e&&typeof e==`object`&&`value`in e?e.value:e)),n.properties&&(r.properties=r_(n).properties),n.items&&typeof n.items==`object`&&(r.items=r_(n.items)),[e,r]}return[e,t]}))}return t.items&&typeof t.items==`object`&&(t.items=r_(t.items)),t.if&&typeof t.if==`object`&&(t.if=r_(t.if)),t.then&&typeof t.then==`object`&&(t.then=r_(t.then)),t.else&&typeof t.else==`object`&&(t.else=r_(t.else)),t}function i_(e){let t={...e};if(t.properties&&typeof t.properties==`object`){let e=t.properties;t.properties=Object.fromEntries(Object.entries(e).filter(([e,t])=>t&&typeof t==`object`?t.type!==`array`:!0))}return t}function a_(e){let{keyword:t,params:n}=e;switch(t){case`required`:return z.t(`This field is required`);case`type`:return n.type===`number`?z.t(`Must be a valid number`):n.type===`boolean`?z.t(`Must be true or false`):z.t(`Invalid format`);case`minLength`:return n.limit===1?z.t(`This field is required`):z.t(`Must be at least {{count}} characters`,{count:n.limit});case`maxLength`:return z.t(`Must be at most {{count}} characters`,{count:n.limit});case`minimum`:return z.t(`Must be at least {{count}}`,{count:n.limit});case`maximum`:return z.t(`Must be at most {{count}}`,{count:n.limit});case`pattern`:return z.t(`Invalid format`);case`const`:return z.t(`This field is required`);case`enum`:return z.t(`Invalid value`);case`format`:return n.format===`date`?z.t(`Invalid date`):n.format===`email`?z.t(`Invalid email`):z.t(`Invalid format`);default:return z.t(`Invalid format`)}}function o_(e){return e?e.slice(1).replace(/\//g,`.`).replace(/\.(\d+)\./g,`[$1].`).replace(/\.(\d+)$/,`[$1]`):``}function s_(e){return e==null||e===``}function c_(e){return(0,B.default)().diff((0,B.default)(e),`year`)}function l_(e,t){let n={},r={type:`object`,properties:{},required:[]};
3e.forEach(e=>{let i={type:`string`};e.type===`number`?i.type=`number`:e.type===`boolean`?i.type=`boolean`:e.type===`date`?(i.type=`string`,i.format=`date`):e.type===`array-group`&&(i.type=`array`,e.itemsSchema&&(i.items=r_(e.itemsSchema))),e.format&&(i.format=e.format),e.constValue!==void 0&&(i.const=e.constValue),e.pattern&&(i.pattern=e.pattern),e.minLength!==void 0&&(i.minLength=e.minLength),e.maxLength!==void 0&&(i.maxLength=e.maxLength),e.minimum!==void 0&&(i.minimum=e.minimum),e.maximum!==void 0&&(i.maximum=e.maximum),e.options&&(i.enum=e.options.map(e=>e.value)),e.required&&(e.type===`text`||e.type===`textarea`)&&e.minLength===void 0&&(i.minLength=1),r.properties||={},r.properties[e.name]=i,e.constValue!==void 0&&t[e.name]!==e.constValue&&(n[e.name]=z.t(`This field is required`)),e.required&&(r.required||=[],r.required.push(e.name),s_(t[e.name])&&(n[e.name]=z.t(`This field is required`)))});let i=n_.rawValidation(r,t);if(e.forEach(e=>{if(e.type===`date`&&(e.minAge!==void 0||e.maxAge!==void 0)){let r=t[e.name];if(r&&typeof r==`string`){let t=c_(r);e.minAge!==void 0&&t<e.minAge?n[e.name]=z.t(`Must be at least {{minAge}} years old`,{minAge:e.minAge}):e.maxAge!==void 0&&t>e.maxAge&&(n[e.name]=z.t(`Must be at most {{maxAge}} years old`,{maxAge:e.maxAge}))}}}),!i.errors||i.errors.length===0)return Object.keys(n).length>0?{valid:!1,errors:n}:{valid:!0,errors:{}};let a=new Set;return i.errors.forEach(e=>{let t=o_(e.instancePath||``);if(t&&!n[t])n[t]=a_(e),e.keyword===`pattern`&&a.add(t);else if(!t&&e.params?.missingProperty){let t=e.params.missingProperty;n[t]||(n[t]=a_(e))}}),e.forEach(e=>{if(a.has(e.name)){let t=e.name.toLowerCase();t===`ssn`?n[e.name]=z.t(`Must be a valid SSN (e.g. 123-45-6789)`):t===`tin`?n[e.name]=z.t(`Must be a valid TIN (e.g. 12-3456789)`):t.includes(`zip`)&&(n[e.name]=z.t(`Must be a valid 5-digit ZIP code`))}}),{valid:!1,errors:n}}function u_(e,t){let n={},r=i_(e);r=r_(r);let i=t_.compile(r);i(t);let a=i.errors||[];return!a||a.length===0?{}:(a.forEach(e=>{if(e.schemaPath?.includes(`/if/`)||e.schemaPath?.includes(`/then/`)||e.schemaPath?.includes(`/else/`)){let t=o_(e.instancePath||``);if(t&&!n[t])n[t]=a_(e);else if(!t&&e.params?.missingProperty){let t=e.params.missingProperty;n[t]||(n[t]=a_(e))}}}),n)}var d_=({euStages:e=[]})=>{let t=Au([V.CARDS_ALL_ACCESS,V.CARDS_MY_ONLY]),n=Bu(),{data:r,isLoading:i}=Od({enabled:t&&n.isTokenValid});if(!r)return{isMoneyActive:!1,isLoading:i};if(Vh(r.region)){let t=Gh(r);return{isMoneyActive:!e.length||e.includes(H.Onboarded)?t:!t,isLoading:i}}return{isMoneyActive:e.length?e.includes(r.euStage):!0,isLoading:i}},f_=e(xe()),p_=e=>{let{data:t}=nG();return(0,f_.default)((e||t?.userCurrency)??``)},m_=({defaultValue:e,queryName:t=`tab`,onChange:n})=>
3{let r=zr(),i=Ar(),a=new URLSearchParams(r.search),o=a.get(t)||e,[s,c]=I.useState(o),l=(0,I.useCallback)((e,r)=>{c(r),a.set(t,r),i({search:a.toString()}),n?.(e,r)},[t,n]);return(0,I.useEffect)(()=>{let e=a.get(t);e&&e!==s&&c(e),n?.(null,e)},[r.search,t,n]),[s,l]},h_=(e,t)=>{ve(()=>{e(Gs(t))})},g_=({bottom:e,skip:t})=>{(0,I.useInsertionEffect)(()=>{if(t)return;let n=document.createElement(`style`);return n.innerHTML=` 4 #hubspot-messages-iframe-container { 5 bottom: ${e}px !important; 6 } 7 `,document.head.appendChild(n),()=>{document.head.removeChild(n)}},[t])},__=(e,t)=>{let[n,r]=(0,I.useState)(e);return[n,r,(0,I.useCallback)(()=>r(t),[t])]},v_=(e,t=!1)=>{let[n,r]=(0,I.useState)(t),[i,a,o]=__(void 0,void 0);return{open:n,openModal:(0,I.useCallback)(e=>{r(!0),a(e)},[a]),cancelModal:(0,I.useCallback)(()=>{r(!1),o()},[o]),confirmModal:(0,I.useCallback)(async()=>{await e(i),r(!1),o()},[e,o,i])}},y_=(e,t)=>`${t}${e}`,b_=(e,t,n)=>e.reduce((e,{id:r})=>r?{...e,[r]:!t.includes(y_(r,n))}:e,{}),x_=({columns:e,hiddenColumnIdPrefix:t})=>{let{data:n}=nG(),{mutate:r}=iG(),i=(0,I.useMemo)(()=>n?.tablesColumns??[],[n]),[a,o]=(0,I.useState)(b_(e,i,t)),s=(0,I.useCallback)(Bt(e=>{let n=new Set(i);for(let[r,i]of Object.entries(e)){let e=y_(r,t);i?n.delete(e):n.add(e)}r({tablesColumns:[...n]})},500),[i,t]);return{columnVisibility:a,onColumnVisibilityChange:e=>{let t=typeof e==`function`?e(a):e;o(t),s(t)}}},S_=(e,t,n)=>{let[r,i]=Pr(),{replace:a}=n??{},o=(0,I.useRef)(i);o.current=i;let s=r.get(e);return[(0,I.useMemo)(()=>{if(s===null)return t;try{return JSON.parse(s)}catch{return s}},[t,s]),(0,I.useCallback)(t=>{o.current(n=>{let r=new URLSearchParams(n);return t===void 0?r.delete(e):r.set(e,JSON.stringify(t)),r},{replace:a})},[e,a])]},C_=()=>{let[e,t]=Pr(),n=e.get(`sortBy`),r=e.get(`orderBy`),i=(0,I.useMemo)(()=>n?[{id:n,desc:r===`desc`}]:[],[n,r]);return[i,n=>{let r=typeof n==`function`?n(i):n;if(JSON.stringify(r)===JSON.stringify(i))return;let a=new URLSearchParams(e);if(r.length>0){let{id:e,desc:t}=r[0];a.set(`sortBy`,e),a.set(`orderBy`,t?`desc`:`asc`)}else a.delete(`sortBy`),a.delete(`orderBy`);t(a)}]},w_=e=>{let t=`table-column-sizing-${e}`,[n,r]=(0,I.useState)(()=>{let e=localStorage.getItem(t);return e?JSON.parse(e):{}});return{columnSizing:n,onColumnSizingChange:e=>{r(n=>{let r=typeof e==`function`?e(n):e;return localStorage.setItem(t,JSON.stringify(r)),r})}}},T_=()=>R.DEMO===`true`;function E_(e,t){let[n,r]=(0,I.useState)(()=>{try{let n=localStorage.getItem(e);return n?JSON.parse(n):t}catch{return t}}),i=(0,I.useCallback)(t=>{try{r(n=>{let r=t instanceof Function?t(n):t;return localStorage.setItem(e,JSON.stringify(r)),r})}catch(e){console.error(e)}},[e]);return(0,I.useEffect)(()=>{let t=t=>{t.key===e&&t.newValue&&r(JSON.parse(t.newValue))};return window.addEventListener(`storage`,t),()=>window.removeEventListener(`storage`,t)},[e]),[n,i]}var D_=(e={})=>{let{initialTab:t=0,scrollOffset:n=24,threshold:r=.3}=e,[i,a]=(0,I.useState)(t),o=(0,I.useRef)([]),s=(0,I.useRef)(null),c=e=>{let t=o.current[e];if(t&&s.current){let e=s.current,r=t,i=e.offsetTop,a=r.offsetTop;e.scrollTo({top:a-i-n,behavior:`smooth`})}};return(0,I.useEffect)(()=>{let e=s.current;if(!e)return;let t=()=>{let t=e.scrollTop,n=e.clientHeight*r;for(let r=o.current.length-1;r>=0;r--){let s=o.current[r];if(s){let o=s.offsetTop-e.offsetTop;if(t+n>=o){i!==r&&a(r);break}}}};return e.addEventListener(`scroll`,t),()=>e.removeEventListener(`scroll`,t)},[i,r]),{selectedTab:i,setSelectedTab:a,sectionRefs:o,scrollContainerRef:s,handleTabChange:e=>{a(e),c(e)},getSectionRef:e=>t=>{o.current[e]=t}}},O_=({hideThreshold:e=40,showThreshold:t=8}={})=>{let[n,r]=(0,I.useState)(!1);return{hidden:n,onScroll:(0,I.useCallback)(n=>{r(r=>n<=t?!1:n>e?!0:r)},[e,t])}},k_=(e,t)=>{let n=P(),r=(0,I.useRef)(t);r.current=t,(0,I.useEffect)(()=>{let t=$.requester.webSocketsService,n=e=>{let t=r.current[e.template];t&&t(e)};return t.subscribe(e,n),()=>{t.unsubscribe(e,n),t.client?.getSubscription(e)?.unsubscribe()}},[n,e])},A_=({mutationFn:e,filename:t})=>M({mutationFn:e,onSuccess:e=>{e&&t&&Ga(e,t)},onError:e=>{b({message:z.t(`Export failed`),variant:`attention`}),console.error(`Export failed:`,e)}}),j_=()=>{ae(()=>{Bc()})},M_=async()=>{let{data:e}=await $.requester.instance.post(`/v3/hubspot/bot-token`);return e},N_=async e=>{let{data:t}=await $.requester.instance.post(`/v3/hubspot/contact`,e);return t},P_=()=>M({mutationFn:M_}),F_=()=>M({mutationFn:N_,retry:!1}),I_=`41836896`,L_=`5421e079-781f-49c8-ad76-718decfc7b2b`,R_=`e96a42fa-444b-47d0-9ed1-18d3201b8a4a`,z_=`a78ed71b-9fb6-4e7c-bedb-667838b3cbab`,B_={"1-49":`1-10`,"50-99":`10-50`,"100-249":`50-200`,"250-499":`200-500`,500:`500-2000`},V_=e=>B_[e]??e,H_=()=>typeof document>`u`?``:document.cookie.split(`; `).find(e=>e.startsWith(`hubspotutk=`))?.split(`=`)[1]||``,U_=()=>({hutk:H_(),pageUri:typeof window<`u`?window.location.href:``,pageName:typeof document<`u`?document.title:``}),W_=async(e,t)=>{let n=`https://api.hsforms.com/submissions/v3/integration/submit/${I_}/${e}`;return(await fetch(n,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({fields:t,context:U_()})})).ok};async function G_(e){await W_(L_,[{name:`email`,value:e}])}async function K_(e){await W_(R_,[{name:`email`,value:e.email},{name:`firstname`,value:e.firstName},{name:`lastname`,value:e.lastName}])}async function q_(e){await W_(z_,[{name:`company`,value:e.company},{name:`jobtitle`,value:e.jobTitle}
7,{name:`company_size_group`,value:e.companySizeGroup},{name:`prospect_interested_in`,value:e.prospectInterestedIn}])}async function J_(e){if(!await W_(`d464f897-e0d1-4071-9e28-6336eca0de77`,[{name:`firstname`,value:e.firstName},{name:`email`,value:e.email},{name:`message`,value:e.message}]))throw Error(`HubSpot contact-sales form submission failed`)}var Y_=`spendbase_hubspot_registration_sent`,X_=()=>{try{return localStorage.getItem(Y_)===`true`}catch{return!1}},Z_=()=>{try{localStorage.setItem(Y_,`true`)}catch{}},Q_=()=>{let{data:e}=nG(),t=F_(),n=(0,I.useRef)(!1);(0,I.useEffect)(()=>{(async()=>{if(!(n.current||!e||X_())){n.current=!0;try{let n=Rc(),r=[];r.push(G_(e.email)),e.firstName&&e.lastName&&r.push(K_({email:e.email,firstName:e.firstName,lastName:e.lastName})),e.companyName&&e.companySize&&r.push(q_({company:e.companyName,jobTitle:e.companyRole??``,companySizeGroup:vc(e.companySize)??``,prospectInterestedIn:``})),r.push(t.mutateAsync({email:e.email,firstName:e.firstName,lastName:e.lastName,companyName:e.companyName,companyRole:e.companyRole,companySize:vc(e.companySize)??void 0,...n})),await Promise.all(r),Z_(),zc()}catch(e){console.error(`Failed to send registration data to HubSpot:`,e)}}})()},[e])},$_=()=>{let{data:e}=nG();return R.MULTICURRENCY_ELIGIBLE_TEAM_IDS.includes(`*`)?!0:!!e&&R.MULTICURRENCY_ELIGIBLE_TEAM_IDS.includes(e.companyID)},ev=(e={})=>{let{onValidFile:t,autoSanitize:n=!1}=e,[r,i]=(0,I.useState)(``);return{error:r,handleFileChange:async(e,n)=>{if(n)return!1;if(!e)return i(``),!0;let r=Mc(e);return r.isValid?(i(``),t?.(e),!0):(i(r.errorMessage),!1)},clearError:()=>i(``)}},tv=e=>(0,I.useMemo)(()=>{let t={},n=Nc(e.min,e.max);return n.isValid||(t.max=n.errorMessage),{errors:t,isValid:Object.keys(t).length===0}},[e.min,e.max,e.exact]),nv=(e,t)=>{let[n,r]=(0,I.useState)(t);return(0,I.useEffect)(()=>{let t=e.current;if(!t)return;let n=()=>{r(t.offsetWidth)};n();let i=new ResizeObserver(n);return i.observe(t),()=>{i.disconnect()}},[e]),n},rv=(e,t)=>{let[n,r]=(0,I.useState)(e),i=(0,I.useRef)(null);return[(0,I.useCallback)(e=>{if(i.current?.disconnect(),!e)return;let n=t?56:0,a=()=>r(e.offsetHeight+n);a(),i.current=new ResizeObserver(a),i.current.observe(e)},[t]),n]},iv=(e,t)=>{let n=(0,I.useRef)(t);n.current=t,(0,I.useEffect)(()=>{if(!e)return;let t=!1;window.history.pushState({closeOnBack:!0},``);let r=()=>{t=!0,n.current()};return window.addEventListener(`popstate`,r),()=>{window.removeEventListener(`popstate`,r),!t&&window.history.state?.closeOnBack&&window.history.back()}},[e])},av=()=>{let[e,t]=(0,I.useState)(()=>typeof window>`u`?pc.ANNUALLY:localStorage.getItem(ec.COST_PERIOD)||pc.ANNUALLY);return{period:e,updatePeriod:e=>{typeof window<`u`&&localStorage.setItem(ec.COST_PERIOD,e),t(e)}}},ov=()=>{let[e,t]=(0,I.useState)(()=>{if(typeof window>`u`)return mc.LAST_12_MONTHS;let e=localStorage.getItem(ec.SPEND_PERIOD);if(!e)return mc.LAST_12_MONTHS;try{let t=JSON.parse(e);return oo(t)?{startDate:new Date(t.startDate),endDate:new Date(t.endDate)}:t}catch{return mc.LAST_12_MONTHS}});return{period:e,updatePeriod:e=>{typeof window<`u`&&localStorage.setItem(ec.SPEND_PERIOD,JSON.stringify(e)),t(e)}}},sv=1e3,cv=(e,t,n)=>{try{localStorage.setItem(e,JSON.stringify(n?.length?ul(t,n):t))}catch{}},lv=e=>{try{let t=localStorage.getItem(e);if(!t)return!1;let n=JSON.parse(t);return!!n&&typeof n==`object`&&Object.keys(n).length>0}catch{return!1}},uv=({formId:e,formData:t,setValue:n,blackList:r,trigger:i})=>{let a=(0,I.useRef)({formId:e,formData:t,blackList:r});a.current={formId:e,formData:t,blackList:r};let o=(0,I.useRef)(!1);se(()=>{o.current=!1;let n=setTimeout(()=>{o.current||cv(e,t,r)},sv);return()=>clearTimeout(n)},[t,e]),(0,I.useEffect)(()=>()=>{if(o.current)return;let{formId:e,formData:t,blackList:n}=a.current;t&&Object.keys(t).length>0&&cv(e,t,n)},[]);let s=(0,I.useCallback)(()=>{o.current=!0;try{localStorage.removeItem(a.current.formId)}catch{}},[]);return(0,I.useEffect)(()=>{let t=localStorage.getItem(e),r=t?JSON.parse(t):null;if(r){Object.keys(r).forEach(e=>{n(e,r[e],{shouldDirty:!0})});let e=fl(r);e.length>0&&i(e)}}
7,[n,e,i]),{clearSavedFormData:s}},dv=function(e){return e.NEED_REVIEW=``,e.APPROVED=`APPROVED`,e.UNAPPROVED=`UNAPPROVED`,e}({}),fv=function(e){return e.Department=`departments.name`,e.Owner=`owner.id`,e.Status=`status`,e.Renewal=`renewalDateTimestamp`,e.ProjectedCost=`totalCost`,e.ActualSpend=`totalSpends`,e.Type=`type`,e}({}),pv=function(e){return e[e.OVERVIEW=0]=`OVERVIEW`,e[e.PRICING_PLANS=1]=`PRICING_PLANS`,e[e.MEMBERS_ACTIVITY=2]=`MEMBERS_ACTIVITY`,e[e.TRANSACTIONS=3]=`TRANSACTIONS`,e}({}),mv={"departments.name":fv.Department,"owner.id":fv.Owner,status:fv.Status,renewalDateTimestamp:fv.Renewal,totalCost:fv.ProjectedCost,totalSpends:fv.ActualSpend};fv.Renewal,fv.ProjectedCost,fv.ActualSpend;var hv=e=>{if(!e)return null;let t={};for(let[n,r]of Object.entries(mv)){let i=e[n]??{};t[r]={options:Object.keys(i),counts:i}}return t},gv={all:[`applications`],lists:()=>[...gv.all,`list`],teamListV1:e=>[...gv.all,`team-list`,{payload:e}],viewCounts:e=>[...gv.all,`view-counts`,{payload:e}],list:e=>[...gv.lists(),{payload:e}],listV1:e=>[...gv.lists(),{payload:e}],autoComplete:e=>[...gv.lists(),`auto-complete`,{params:e}],dashboard:e=>[...gv.all,`dashboard`,{payload:e}],details:()=>[...gv.all,`details`],detail:e=>[...gv.details(),e],detailInfo:e=>[...gv.detail(e.id),{params:e}],spend:e=>[...gv.detail(e.id),`spend`,{params:e}],members:e=>[...gv.detail(e.id),`members`,{payload:e}]},_v=gv,vv=e=>N({queryKey:_v.list(e),queryFn:()=>uu(e)}),yv=(e,t)=>F({...vv(e),...t}),bv=50,xv=e=>di({queryKey:[...gv.lists(),`infinite`,{payload:e}],queryFn:({pageParam:t})=>uu({...e,offset:t,pageSize:bv}),initialPageParam:0,getNextPageParam:(e,t)=>{if(e.rows.length===0)return;let n=t.reduce((e,t)=>e+t.rows.length,0);return n<e.metadata.totalCount?n:void 0}}),Sv=(e,t)=>{let n=gi({...xv(e),...t}),{data:r,hasNextPage:i,isFetchingNextPage:a,fetchNextPage:o}=n,s=(0,I.useMemo)(()=>r?.pages.flatMap(e=>e.rows)??[],[r?.pages]),c=r?.pages[0]?.metadata.totalCount??0,l=(0,I.useCallback)(()=>{i&&!a&&o()},[i,a,o]);return{...n,flatData:s,totalCount:c,handleLoadMore:l}},Cv=e=>N({queryKey:_v.list(e),queryFn:()=>du(e)}),wv=(e,t)=>F({...Cv(e),...t}),Tv=e=>N({queryKey:_v.viewCounts(e),queryFn:()=>fu(e),gcTime:0}),Ev=e=>N({queryKey:_v.autoComplete(e),queryFn:()=>pu(e)}),Dv=(e,t)=>F({...Ev(e),...t}),Ov=e=>N({queryKey:_v.dashboard(e),queryFn:()=>xu(e)}),kv=(e,t)=>F({...Ov(e),...t}),Av=e=>N({queryKey:_v.detail(e),queryFn:()=>Su(e)}),jv=(e,t)=>F({...Av(e),...t}),Mv=e=>N({queryKey:_v.spend(e),queryFn:()=>Cu(e)}),Nv=(e,t)=>F({...Mv(e),...t}),Pv=e=>N({queryKey:_v.members(e),queryFn:()=>wu(e)}),Fv=(e,t)=>F({...Pv(e),...t}),Iv=()=>{let e=P();return M({mutationFn:mu,onSuccess(){e.invalidateQueries({queryKey:gv.lists()}),b({message:z.t(`Application was created`),variant:`success`})}})},Lv=()=>{let e=P();return M({mutationFn:hu,onSuccess(){e.invalidateQueries({queryKey:gv.lists()})}})},Rv=()=>{let e=P();return M({mutationFn:gu,onSuccess(t,{id:n}){e.invalidateQueries({queryKey:gv.lists()}),e.invalidateQueries({queryKey:gv.detail({id:n})}),b({message:z.t(`Application was changed`),variant:`success`})}})},zv=()=>{let e=P();return M({mutationFn:({id:e,isHidden:t})=>gu({id:e,isHidden:t}),onSuccess(t,{id:n}){e.invalidateQueries({queryKey:gv.lists()}),e.invalidateQueries({queryKey:gv.detail({id:n})}),b({message:z.t(`Application was changed`),variant:`success`})}})},Bv=()=>{let e=P();return M({mutationFn:_u,onSuccess(){e.invalidateQueries({queryKey:gv.lists()}),e.invalidateQueries({queryKey:gv.details()}),b({message:z.t(`Owner added`),variant:`success`})}})},Vv=()=>{let e=P();return M({mutationFn:vu,onSuccess(){e.invalidateQueries({queryKey:gv.lists()}),e.invalidateQueries({queryKey:gv.details()}),b({message:z.t(`Department added`),variant:`success`})}})},Hv=()=>{let e=P();return M({mutationFn:yu,onSuccess(){e.invalidateQueries({queryKey:gv.lists()}),e.invalidateQueries({queryKey:gv.details()}),b({message:z.t(`Status changed`),variant:`success`})}})},Uv=()=>{let e=P();return M({mutationFn:bu,onSuccess(){e.invalidateQueries({queryKey:gv.lists()}),e.invalidateQueries({queryKey:gv.details()}),b({message:z.t(`Applications updated`),variant:`success`})}})},Wv=()=>A_({mutationFn:Tu,filename:`applications.csv`}),Gv=()=>{let{data:e}=yv({page:1,pageSize:1,searchTerm:``},{staleTime:120*1e3,placeholderData:pi});return(0,I.useMemo)(()=>hv(e?.metadata.facets),[e?.metadata.facets])};fv.Department,z.t(`Department`),fv.ActualSpend,z.t(`Actual spend`),fv.Owner,z.t(`Owner`),fv.ProjectedCost,z.t(`Projected cost`),fv.Renewal,z.t(`Renewal date`),fv.Status,z.t(`Status`),fv.Type,z.t(`Type`),fv.Department,fv.Owner,fv.Status,fv.Renewal,fv.ProjectedCost,fv.ActualSpend;var Kv=async e=>{let{data:t}=await $.requester.instance.post(`/auth/complete-invite`,{token:e});return t},qv=async e=>{let{data:t}=await $.requester.instance.post(`/auth/validate-token`,{token:e});return t},Jv=()=>
7{let e={isOpen:!1},t=new Set,n=()=>t.forEach(e=>e());return{open:(t=>{e={isOpen:!0,payload:t},n()}),close:()=>{e={isOpen:!1},n()},getSnapshot:()=>e,subscribe:e=>(t.add(e),()=>t.delete(e))}},Yv=e=>{let t=(0,I.useSyncExternalStore)(e.subscribe,e.getSnapshot);return{isOpen:t.isOpen,payload:t.payload,open:e.open,close:e.close}},Xv=Jv(),Zv=Jv(),Qv=Jv(),$v=Jv(),ey=Jv(),ty=()=>Yv(Xv),ny=()=>Yv(Zv),ry=()=>Yv(Qv),iy=()=>Yv($v),ay=()=>Yv(ey),oy=()=>typeof navigator>`u`?!1:/iPhone|iPad|iPod/i.test(navigator.userAgent),sy=()=>typeof navigator>`u`?!1:/Android/i.test(navigator.userAgent);function cy(){return oy()||sy()}function ly(){let e=window.innerWidth<Vt.breakpoints.values.md;return cy()&&e}function uy(){return pr(Vt.breakpoints.down(`md`))&&cy()}function dy(){return pr(Vt.breakpoints.up(`md`))}var fy=function(e){return e.MICROSOFT=`microsoft`,e.GOOGLE=`google`,e}({}),py=function(e){return e[e.SAME_PASSWORD=400]=`SAME_PASSWORD`,e[e.WRONG_PASSWORD=403]=`WRONG_PASSWORD`,e}({}),my=`Please use your work email address`,hy=429,gy=(e,t)=>e?.status===423?(t(vo),!0):!1,_y=(e,t)=>{t(e===my?uo:co)},vy=e=>{let t=e?.data;return t?.error||t?.message||``},yy=e=>{let t=e;if(Number(t?.status)!==hy)return vy(e)||z.t(`Something went wrong`);let n=t?.data?.timeLeft;return n?z.t(`Too many attempts. Please try again in {{timeLeft}} min.`,{timeLeft:Math.ceil(n/60)}):z.t(`Too many attempts. Please try again later.`)},by=null,xy=null,Sy=!1,Cy=null,wy=null,Ty=()=>Si({spawnWorker:()=>new Worker(new URL(`/assets/passwordWorker-BdRZOV6i.js`,``+import.meta.url),{type:`module`}),debug:R.IS_DEV,baseOptions:{cryptoSubWorker:!0,debug:R.IS_DEV}}),Ey=()=>(by||=Ty(),by),J=async()=>Ey(),Dy=async e=>{await(await J()).setAuthToken(e)},Oy=async({token:e,accountId:t})=>{if(!e||!t)return;let n=xy;if(n){if(wy&&wy!==t){await Fy();return}try{await n}catch{return}}if(!(!Sy||!Cy)){if(Cy!==t){await Fy();return}await Dy(e)}},ky=async e=>{if(xy){if(wy===e.accountId){await xy,await Oy({token:e.authToken,accountId:e.accountId});return}await Fy()}else Sy&&Cy&&Cy!==e.accountId&&await Fy();if(Sy&&Cy===e.accountId){await Oy({token:e.authToken,accountId:e.accountId});return}wy=e.accountId,Sy=!1;let t=(async()=>{let t=await J();if(await t.init(e),!await t.isOrgReady())throw Error(z.t(`Organization recovery key isn't active yet. Prompt the owner or admin to finish setup.`));wy===e.accountId&&(Cy=e.accountId,wy=null,Sy=!0)})();xy=t;try{await t,xy===t&&(xy=null)}catch(e){throw xy===t&&(xy=null,wy=null,Sy=!1,Cy=null),e}},Ay=()=>Sy,jy=15e3,My=0,Ny=!1,Py=()=>{!Sy||Ny||Date.now()-My<jy||(Ny=!0,J().then(async e=>{await e.reportActivity(),My=Date.now()}).catch(()=>{}).finally(()=>{Ny=!1}))},Fy=async()=>{let e=by;xy=null,Sy=!1,Cy=null,wy=null,by=null,e?.destroy&&await e.destroy().catch(()=>void 0)},Iy=e=>{let{authStore:t}=$;Pl(),`webToken`in e&&`refreshToken`in e&&(t.webSession.updateSession({token:e.webToken,refreshToken:e.refreshToken}),J().catch(()=>void 0)),`accessToken`in e&&`cardsRefreshToken`in e&&t.moneySession.updateSession({token:e.accessToken,refreshToken:e.cardsRefreshToken},!0),`passwordExtensionToken`in e&&`passwordExtensionRefreshToken`in e&&t.passwordExtensionSession.updateSession({token:e.passwordExtensionToken,refreshToken:e.passwordExtensionRefreshToken,...`passwordExtensionExpiresAt`in e?{expiresAt:e.passwordExtensionExpiresAt??null}:{}})},Ly=e=>{if(!e)return null;try{let t=new URL(e,window.location.origin);if(t.origin===window.location.origin)return t.pathname+t.search}catch(e){console.warn(`Invalid redirect URL`,e)}return null},Ry=(e,t)=>{let n=Ly(t);return e(n??`/`),n!==null},zy=async(e,{navigate:t,redirectUrl:n,skipHome:r=!1})=>{if(`webToken`in e||`accessToken`in e)return Iy(e),await LC(),r||Ry(t,n),{tfaRequired:!1};let i=e;return t(n?Ks(go,{redirectUrl:n}):go,{state:{loginToken:i.loginToken,userId:i.userId}}),{tfaRequired:!0}},By=()=>`${window.location.origin}${bo}`,Vy=e=>$.localStorageStore.setItem(ec.LOGIN_TYPE,e),Hy=()=>$.localStorageStore.removeItem(ec.LOGIN_TYPE),Uy=()=>$.localStorageStore.getItem(ec.SIGNUP_REFERRAL_ID)||void 0,Wy=()=>$.localStorageStore.removeItem(ec.SIGNUP_REFERRAL_ID),Gy=async e=>{e&&$.localStorageStore.setItem(ec.REDIRECT_FROM,e),Vy(fy.GOOGLE);let{url:t}=await $.requester.authService.getGoogleAuthUrl(By());window.location.href=t},Ky=async e=>{Vy(fy.MICROSOFT);let{url:t}=await $.requester.authService.getMSLoginUrl(By(),e);$.windowStore.openIntegrationWindow(t,fy.MICROSOFT),Wy()},qy=`verify_email_pending`,Jy=(e,t)=>{try{localStorage.setItem(qy,JSON.stringify({token:e,expiresAt:t}))}catch{}},Yy=()=>{try{localStorage.removeItem(qy)}catch{}},Xy=()=>{try{let e=localStorage.getItem(qy);if(!e)return null;let t=JSON.parse(e);if(t&&typeof t==`object`){let e=Math.floor((t.expiresAt-Date.now())/1e3);if(e>0)return{token:t.token||null,remainingSeconds:e,expiresAt:t.expiresAt||null};Yy()}}catch{Yy()}return null},Zy=e=>{let t=t=>{(t.key===qy||t.key===null)&&e()};return window.addEventListener(`storage`,t),()=>window.removeEventListener(`storage`,t)},Qy=()=>$.requester.authService,$y=()=>M({mutationFn:Kv}),eb=()=>M({mutationFn:qv}),tb=()=>{let e=Ar();return M({mutationFn:e=>Qy().loginDirect(e),onSuccess:(t,n)=>zy(t,{navigate:e,redirectUrl:n.redirectUrl}),onError:t=>{gy(t,e)}})},nb=()=>{let e=Ar();return M({mutationFn:({values:e})=>Qy().signUpDirect({...e,referralId:Uy()}),onSuccess:(t,{values:n,resend:r,redirectUrl:i})=>{let a=t.timer||120,o=Date.now()+a*1e3;t.token&&Jy(t.token,o);let s=mo.replace(`:email`,encodeURIComponent(n.email));e(i?Ks(s,{[Ao]:i}):s),!t.timer&&r&&$.alertsStore.showSuccess(`Confirmation email sent`)}})},rb=()=>{let e=Ar();return M({mutationFn:({idToken:e})=>Qy().loginWithGoogleOneTap({idToken:e,referralId:Uy()}),onSuccess:(t,{redirectUrl:n})=>zy(t,{navigate:e,redirectUrl:n}),onError:t=>{gy(t,e)||_y(vy(t),e)}})},ib=()=>{let e=Ar();return M({mutationFn:async({type:e,params:t})=>{let n=`${window.location.origin}${bo}`,r=Uy();if(e===fy.GOOGLE){let e=$.localStorageStore.getItem(ec.REDIRECT_FROM);return $.localStorageStore.removeItem(ec.REDIRECT_FROM),{result:await Qy().loginWithGoogleCode({...t,redirectUri:n,referralId:r}),redirectUrl:e}}let i=await Qy().loginWithMS({...t,redirectUri:n,referralId:r});return{result:i,redirectUrl:i.redirectUrl??null}},onSuccess:async({result:t,redirectUrl:n})=>{Hy(),await zy(t,{navigate:e,redirectUrl:n}),Wy()},onError:t=>{let n=vy(t);gy(t,e)||_y(n,e),n&&$.alertsStore.showError(n)}})},ab=e=>{let t=Ar();return M({mutationFn:e=>Qy().confirmTFACode(e),onSuccess:async n=>{Iy(n),await LC(),Ry(t,e)},onError:e=>{gy(e,t)}})},ob=()=>{let e=Ar();return M({mutationFn:({token:e,email:t,code:n})=>Qy().confirmEmail(e,t,n),onSuccess:async(t,{redirectUrl:n})=>{if(Yy(),Iy(t),await LC(),n){Ry(e,n);return}let r=tG();ly()?e(r?.setupStep===ZW.CompanyDetails?So.COMPANY_DETAILS:So.CONTINUE_ON_WEB):e(r?.isTeamOwner?zo.ROOT.path:`/`)}})},sb=()=>M({mutationFn:e=>Qy().resendVerification(e),onSuccess:e=>{let t=e.timer||120,n=Date.now()+t*1e3;e.token&&Jy(e.token,n)}}),cb=()=>M({mutationFn:({email:e})=>Qy().forgotPassword(e),onSuccess:(e,{resend:t})=>{ey.close(),!e.timer&&t&&$.alertsStore.showSuccess(`Recovery email sent`)},onError:e=>{$.alertsStore.showError(yy(e))}}),lb=()=>M({mutationFn:async e=>(await Qy().validateToken(e.token),Qy().setNewPassword(e)),onSuccess:()=>$.alertsStore.showSuccess(`Password updated successfully`)}),ub=()=>M({mutationFn:({values:e})=>Qy().changePassword(e),onSuccess:async(e,{setPassword:t})=>{ey.close(),$v.close(),await IC.invalidateQueries({queryKey:$W.all}),$.alertsStore.showSuccess(`Password ${t?`created`:`updated`} successfully`)}}),db=()=>M({mutationFn:e=>Qy().toggleTFA(e),onSuccess:async(e,t)=>{$.alertsStore.showSuccess(z.t(`Two-step verification is ${t.enabled?`ON`:`OFF`}!`)),Xv.close(),Zv.close(),await IC.invalidateQueries({queryKey:$W.all})}}),fb=()=>M({mutationFn:({code:e})=>{let t=tG()?.id;if(!t)throw Error(`No authenticated user`);return Qy().validateTFA({code:e,userId:t})}}
7),pb={qrPayload:null,state:null,expiresIn:0,error:null,realtimeError:null},mb=()=>{let[e,t]=(0,I.useState)(pb),n=(0,I.useRef)(null),r=(0,I.useRef)(()=>{}),i=(0,I.useCallback)(()=>{n.current&&=(n.current.unsubscribe(),null),$.requester.qrCodeWebSocketService.disconnect()},[]),a=(0,I.useCallback)(()=>{i(),t(pb)},[i]),o=(0,I.useCallback)(()=>{t(e=>({...e,state:`expired`,expiresIn:0}))},[]),s=(0,I.useCallback)(async e=>{try{Iy(await $.requester.qrCodeService.consumeQRCode(e)),await LC(),t(e=>({...e,state:`approved`})),i()}catch(e){t(t=>({...t,error:e?.response?.data?.message||`Failed to consume QR code`}))}},[i]);r.current=(0,I.useCallback)(e=>{switch(e.data?.type){case`SCANNED`:t(e=>({...e,state:`scanned`}));break;case`APPROVED`:t(e=>({...e,state:`approved`})),e.data?.code&&s(e.data.code);break;case`DENIED`:t(t=>({...t,state:`denied`,error:e.data?.error||`Login was denied`}));break;case`ERROR`:t(t=>({...t,state:`error`,error:e.data?.error||`An error occurred`}));break;default:t(e=>({...e,state:`active`}));break}},[s]);let c=(0,I.useCallback)(async(e,a,o)=>{if(!e||!a||!o)return!1;try{let s=(await $.requester.qrCodeWebSocketService.connect(a)).newSubscription(e,{token:o});return n.current=s,s.subscribe(),s.on(`publication`,e=>{try{r.current(JSON.parse(new TextDecoder(`utf-8`).decode(e.data)))}catch(e){console.error(`Error parsing QR code event:`,e)}}),s.on(`error`,()=>{t(e=>({...e,realtimeError:`Real-time connection lost. QR code status may not update properly.`})),i()}),!0}catch(e){return console.error(`QR Code: Failed to connect to Centrifugo:`,e),!1}},[i]),l=(0,I.useCallback)(async()=>{a();try{let e=await $.requester.qrCodeService.startQRCodeLogin();
7t({qrPayload:e.qrPayload,state:`active`,expiresIn:e.expiresIn,error:null,realtimeError:null}),await c(e.channel,e.wsAuthToken,e.wsChannelToken)||t(e=>({...e,realtimeError:`Failed to establish real-time connection. QR code status may not update.`}))}catch(e){t(t=>({...t,error:e?.response?.data?.message||`Failed to start QR code login`}))}},[a,c]);return{qrPayload:e.qrPayload,expiresIn:e.expiresIn,error:e.error,isQRCodeActive:e.qrPayload!==null&&e.state===`active`,isQRCodeExpired:e.state===`expired`||e.expiresIn<=0,isQRCodeScanned:e.state===`scanned`,isQRCodeApproved:e.state===`approved`,isQRCodeDenied:e.state===`denied`,isQRCodeError:e.state===`error`||e.error!==null,isRealtimeDegraded:e.realtimeError!==null,startQRCode:l,reset:a,expireQRCode:o}},hb=()=>{let{data:e,isLoading:t}=nG();return{isAuthenticatedLoading:t,isAuthenticated:!!e}},gb=function(e){return e.Vendor=`VENDOR`,e.Partner=`PARTNER`,e}({}),_b=function(e){return e.Annually=`ANNUALLY`,e.Monthly=`MONTHLY`,e.Quarterly=`QUARTERLY`,e.Custom=`CUSTOM`,e}({}),vb=function(e){return e.All=`all`,e.Partner=`partner`,e.Vendor=`vendor`,e}({}),yb=function(e){return e.NAME=`name`,e.RENEWAL_DATE=`renewalDate`,e.COMMITMENT_TERM=`commitmentTerm`,e.TOTAL_SAVED=`totalSaved`,e.ANNUAL_SPEND=`annualSpend`,e}({}),bb=async e=>{let{data:t}=await $.requester.instance.get(`/v2/discount-application`,{params:e});return t},xb=async e=>{let{data:t}=await $.requester.instance.post(`/v2/discount-application`,e);return t},Sb=async({id:e,...t})=>{let{data:n}=await $.requester.instance.patch(`/v2/discount-application/${e}`,t);return n},Cb=async e=>{let{data:t}=await $.requester.instance.delete(`/v2/discount-application/${e}`);return t},wb=async()=>{let{data:e}=await $.requester.instance.get(`/v2/discount-service/spending-attachment`);return e},Tb=async e=>{let t=new FormData;t.append(`attachment`,e);let{data:n}=await $.requester.instance.post(`/v2/discount-service/upload-spending-attachment`,t,{headers:{[Sl]:`multipart/form-data`}});return n},Eb=async e=>{let{data:t}=await $.requester.instance.delete(`/v2/discount-service/spending-attachment/${e}`);return t},Db=async()=>{let{data:e}=await $.requester.instance.post(`/v2/discount-service/submit`);return e},Ob=async()=>{let{data:e}=await $.requester.instance.get(`/v2/discount-application/total-saved`);return e},kb=async()=>{let{data:e}=await $.requester.instance.get(`/v2/discount-service`);return e},Ab=async e=>{let{data:t}=await $.requester.instance.get(`/v2/discount-application/${e}/attachments`);return t},jb=async({id:e,files:t})=>{let n=new FormData;t.forEach(e=>{n.append(`attachments`,e)});let{data:r}=await $.requester.instance.post(`/v2/discount-application/${e}/attachments`,n,{headers:{[Sl]:`multipart/form-data`}});return r},Mb=async({id:e,attachmentIds:t})=>{let{data:n}=await $.requester.instance.delete(`/v2/discount-application/${e}/attachments`,{params:{ids:t.join(`,`)}});return n},Nb=async({id:e,termsAndConditionsId:t})=>{let{data:n}=await $.requester.instance.post(`/v2/discount-application/${e}/terms-and-conditions/${t}/accept`);return n},Pb={all:[`discounts`],totalSaved:()=>[...Pb.all,`total-saved`],applicationsLists:()=>[...Pb.all,`applications-list`],applicationsList:e=>[...Pb.applicationsLists(),e],spendingAttachment:()=>[...Pb.all,`spending-attachment`],discountsServices:()=>[Pb.all,`discounts-services`],details:()=>[...Pb.all,`detail`],detail:e=>[...Pb.details(),{id:e}],attachments:e=>[...Pb.detail(e),`attachments`],deleteDiscountsApplication:[`delete-discounts-application`]},Fb=Pb,Ib=e=>N({queryKey:Fb.applicationsList(e),queryFn:()=>bb(e)}),Lb=(e,t)=>F({...Ib(e),...t}),Rb=()=>N({queryKey:Fb.spendingAttachment(),queryFn:wb}),zb=e=>F({...Rb(),...e}),Bb=()=>N({queryKey:Fb.totalSaved(),queryFn:Ob}),Vb=e=>F({...Bb(),...e}),Hb=()=>N({queryKey:Fb.discountsServices(),queryFn:kb}),Ub=e=>F({...Hb(),...e}),Wb=e=>N({queryKey:Fb.attachments(e),queryFn:()=>Ab(e)}),Gb=(e,t)=>F({...Wb(e),enabled:!!e,...t}),Kb=()=>{let e=P();return M({mutationFn:xb,onSuccess(){e.invalidateQueries({queryKey:Fb.applicationsLists()})}})},qb=()=>{let e=P();
7return M({mutationFn:Sb,onSuccess(){e.invalidateQueries({queryKey:Fb.applicationsLists()}),e.invalidateQueries({queryKey:Fb.totalSaved()})}})},Jb=()=>{let e=P();return M({mutationFn:Cb,mutationKey:Fb.deleteDiscountsApplication,onSuccess(){e.invalidateQueries({queryKey:Fb.applicationsLists()}),e.invalidateQueries({queryKey:Fb.totalSaved()}),b({message:z.t(`Application was removed`),variant:`success`})}})},Yb=()=>{let e=P();return M({mutationFn:Tb,onSuccess(){e.invalidateQueries({queryKey:Fb.spendingAttachment()})}})},Xb=()=>{let e=P();return M({mutationFn:Eb,onSuccess(){e.invalidateQueries({queryKey:Fb.spendingAttachment()})}})},Zb=()=>M({mutationFn:Db}),Qb=()=>{let e=P();return M({mutationFn:jb,onSuccess(t,{id:n}){e.invalidateQueries({queryKey:Fb.attachments(n)})}})},$b=()=>{let e=P();return M({mutationFn:Mb,onSuccess(t,{id:n}){e.invalidateQueries({queryKey:Fb.attachments(n)})}})},ex=()=>{let e=P();return M({mutationFn:Nb,onSuccess(){e.invalidateQueries({queryKey:Fb.applicationsLists()}),b({message:z.t(`Terms and Conditions accepted successfully`),variant:`success`})}})},tx={[_b.Annually]:{label:z.t(`Annually`)},[_b.Monthly]:{label:z.t(`Monthly`)},[_b.Quarterly]:{label:z.t(`Quarterly`)},[_b.Custom]:{label:z.t(`Custom`)}},nx=[_b.Annually,_b.Monthly,_b.Quarterly,_b.Custom],rx=e=>!!(e&&typeof e==`object`&&`current_spend_data`in e&&`projected_spend_data`in e&&Array.isArray(e.current_spend_data)&&Array.isArray(e.projected_spend_data)),ix=async()=>{let{data:e}=await $.requester.instance.get(`/v2/integration/spreadsheet-connection`);return e},ax=async()=>{let{data:e}=await $.requester.instance.get(`/v2/integration/spreadsheet-available`);return e.availableSheets},ox=async({documentId:e})=>{let{data:t}=await $.requester.instance.post(`/v2/integration/procurement`,{documentId:e,integrationName:Il.GoogleSpreadsheets});return t},sx=async()=>{let{data:e}=await $.requester.instance.post(`/v2/integration/procurement-sync`,{integrationName:Il.GoogleSpreadsheets});return e},cx=async()=>{await $.requester.instance.post(`/v3/connects/disconnect`,{service:Il.GoogleSpreadsheets})},lx={all:[`procurement-integrations`],googleSheet:()=>[...lx.all,`google-sheet`],googleSheetConnection:()=>[...lx.googleSheet(),`connection`],googleSheetList:()=>[...lx.googleSheet(),`list`]},ux=lx,dx=()=>N({queryKey:lx.googleSheetConnection(),queryFn:ix}),fx=e=>F({...dx(),...e}),px=()=>N({queryKey:lx.googleSheetList(),queryFn:ax}),mx=e=>F({...px(),...e}),hx=()=>M({mutationFn:ox,onError:()=>{b({message:z.t(`Failed to connect`),variant:`attention`})},onSuccess:()=>{b({message:z.t(`Spreadsheet connected`),variant:`success`})}}),gx=()=>{let e=P();return M({mutationFn:sx,onError:()=>{b({message:z.t(`Failed to sync google sheets`),variant:`attention`})},onSuccess:()=>{b({message:z.t(`Sync is successful`),variant:`success`}),e.invalidateQueries({queryKey:lx.googleSheetConnection()})}})},_x=()=>{let e=P();return M({mutationFn:cx,onSuccess(){e.invalidateQueries({queryKey:lx.all})}})},vx=!1,yx=function(e){return e.Notification=`connect-update`,e.IntegrationStatus=`integration-status`,e.Cards=`cards`,e.QRCode=`qrlogin`,e}({}),bx=[`cards`],xx=class{url;instance;client;teamId=``;userId=``;subscriptionToken=``;callbacks=new Map;resubscribeCallbacks=new Set;constructor(e,t){this.url=e,this.instance=t,this.url=e}setTeamId(e){this.teamId=e}setUserId(e){this.userId=e}async init(){if(!(!this.teamId||vx))try{vx=!0;let e=await this.instance.get(`/me/ws-token`).then(({data:e})=>e);if(!e?.authToken||!e?.subscriptionToken)return;this.subscriptionToken=e?.subscriptionToken,this.client=new te(this.url,{token:e.authToken}),this.client.connect(),await this.client.ready(Al),this.subscribeToChannel(`connect-update`),this.subscribeToChannel(`integration-status`),this.subscribeToChannel(`cards`)}catch(e){console.error(`WS connection error`,e),this.destroy(),vx=!1}}handleEvent(e,t){if(!this.callbacks.has(e)){console.log(`warn: no WS callbacks`);return}for(let n of this.callbacks.get(e)||[])n?.(t);R.IS_DEV&&console.log(`WS â `,t)}onResubscribe(e){return this.resubscribeCallbacks.add(e),()=>this.resubscribeCallbacks.delete(e)}subscribe(e,t){if(this.callbacks.has(e)){this.callbacks.get(e)?.add(t);return}this.callbacks.set(e,new Set([t]))}unsubscribe(e,t){if(this.callbacks.has(e)){let n=this.callbacks.get(e);n&&(n.delete(t),n.size===0&&this.callbacks.delete(e))}}destroy(){let e=this.client;if(this.client=null,e)try{e.disconnect()}catch(e){console.error(`WS disconnect error`,e)}}
7async subscribeToChannel(e){if(!this.client||!this.subscriptionToken||!this.subscriptionToken[e]){console.log(`warn: no WS token`);return}let t=e+`:`+this.teamId+(bx.includes(e)?`/`+this.userId:``);console.log(`WS: connecting to channel ${t}`);let n=this.client.getSubscription(t)||this.client.newSubscription(t,{token:this.subscriptionToken[e]}),r=!1;n.subscribe(),n.on(`subscribed`,()=>{if(console.log(`WS: subscribed ${t}`),r)for(let e of this.resubscribeCallbacks)e();r=!0,n.addListener(`publication`,t=>{try{let n=JSON.parse(new TextDecoder(`utf-8`).decode(t.data));this.handleEvent(e,n.data||n)}catch(e){console.error(`error handling WS message`,e,t.data)}})}),n.on(`unsubscribed`,e=>{console.log(`=============== unsubscribed`),console.log(`WS: unsubscribed`,e)}),n.on(`error`,e=>{console.log(`=============== error`),console.log(`WS: error`,e)})}},Sx=Jv(),Cx=Jv(),wx=Jv(),Tx=Jv(),Ex=Jv(),Dx=Jv(),Ox=Jv(),kx=()=>Yv(Sx),Ax=()=>Yv(Cx),jx=()=>Yv(wx),Mx=()=>Yv(Tx),Nx=()=>Yv(Ex),Px=()=>Yv(Dx),Fx=()=>Yv(Ox),Ix=e=>e.service===Il.Microsoft,Lx=({status:e,isComingSoon:t})=>!e&&!t,Rx=`${window.location.origin}${bo}`,zx=[...Yl.all,`current`],Bx=[...Yl.all,`connect-error`],Vx=()=>IC.getQueryData(zx)??null,Hx=e=>IC.setQueryData(zx,e),Ux=()=>F({queryKey:zx,queryFn:()=>Vx(),staleTime:1/0}).data??null,Wx=()=>{let{data:e}=F({queryKey:Bx,queryFn:()=>IC.getQueryData(Bx)??``,staleTime:1/0});return e??``},Gx=()=>IC.setQueryData(Bx,``),Kx=async e=>{let t=(await IC.fetchQuery(Xl({categoryId:ic.ALL_INTEGRATIONS})))?.rows.find(t=>t.service===e)??null;Hx(t?new lu(t):null)},qx=e=>{let t=Vx();if(!t)return null;t.update(e);let n=Object.assign(Object.create(Object.getPrototypeOf(t)),t);return Hx(n),n},Jx=()=>{$.windowStore.openIntegrationWindow(R?.CHROME_EXTENSION_STORE_URL,Il.ChromeExtension,``,!0)},Yx=()=>{$.requester.webSocketsService.subscribe(yx.IntegrationStatus,Xx)},Xx=e=>{let t=qa(e.service);if(IC.invalidateQueries({queryKey:Yl.all}),IC.invalidateQueries({queryKey:ux.all}),e.status===Fl.Success||e.status===Fl.GettingData){e.status===Fl.Success&&($.alertsStore.showSuccess(z.t(`Connect to {{service}} is successful`,{service:t})),e.service===`aws`&&IC.invalidateQueries({queryKey:Fb.discountsServices()}));return}e.status===Fl.Error&&($.alertsStore.showError(z.t(`Connect to {{service}} is failed`,{service:t})),$.trackingStore.sendOpenReplayEvent(nc.INTEGRATION_FAILED,e,!0)),e.removedAt&&$.alertsStore.showError(z.t(`Disconnected from {{service}}`,{service:t}))},Zx=async(e,t,n,r)=>{e===Il.MicrosoftDynamics365?t?.error_description?.match(/^[^:]+/)?.[0]===`AADSTS650052`&&IC.setQueryData(Bx,z.t(`Your account doesnât have access to Dynamics 365 Business Central. Please ask your admin to enable it.`)):IC.setQueryData(Bx,r??z.t(`Connection error. Please verify your access and try again`)),$.localStorageStore.removeItem(ec.SERVICE_KEY);try{await Kx(e)}catch{}Ex.open(),n&&$.routeStore.navigate(n.replace(window.location.origin,``),{replace:!0})},Qx=async(e,t,n)=>{try{Sx.close(),$.requester.webSocketsService.init(),await Wl({service:e,params:t,redirectUri:Rx}),$.localStorageStore.removeItem(ec.SERVICE_KEY),n&&$.routeStore.navigate(n.replace(window.location.origin,``),{replace:!0}),IC.invalidateQueries({queryKey:Yl.all}),e===`aws`&&IC.invalidateQueries({queryKey:Fb.discountsServices()}),await Kx(e),e===Il.MicrosoftDynamics365?wx.open():Tx.open(),IC.invalidateQueries({queryKey:_v.all})}catch(r){Zx(e,t,n,r?.data?.message)}},$x=async()=>{let e=Vx();if(e)try{await Ul(e.service),Sx.close(),Cx.close(),IC.invalidateQueries({queryKey:Yl.all}),e.service===`aws`&&IC.invalidateQueries({queryKey:Fb.discountsServices()}),$.alertsStore.showSuccess(z.t(`Disconnect successful`))}catch{$.alertsStore.showError(z.t(`Disconnect failed please try again`))}},eS=e=>{let t={clientUrl:e?.companyUrl,APIToken:e?.APIToken,domain:e?.domain,companyUrl:e?.companyUrl};return e&&Ix(e)&&(t.enableFetchAvatar=e.enableFetchAvatar),t},tS={[Il.Okta]:e=>btoa(JSON.stringify({companyUrl:e.companyUrl,APIToken:e.APIToken})),[Il.OneLogin]:e=>btoa(JSON.stringify({clientId:e.clientId,clientSecret:e.clientSecret,companyUrl:e.companyUrl})),[Il.Jira]:e=>btoa(JSON.stringify({organizationId:e.organizationId,apiKey:e.apiKey})),[Il.AWS]:e=>btoa(JSON.stringify({access_key_id:e.accessKeyId,secret_access_key:e.secretAccessKey,region:e.region,role_arn:e.roleArn})),[Il.PeopleForce]:e=>btoa(JSON.stringify({api_key:e.apiKey}))},nS=async e=>{let t=Vx(),{service:n=t?.service,redirectUrl:r=window.location.href}=e||{};if(!n)return;Hy();let i=tS[n];if(i&&t){await Qx(n,{code:i(t)}),Sx.close();return}let{url:a}=await Hl({service:n,redirectUri:Rx,optionalParams:eS(t)});$.windowStore.openIntegrationWindow(a,n,r)},rS=`connect-extension-banner-is-closed`,iS=`connect-slack-bot-banner-is-closed`,aS=e=>`${tG()?.id}-${e}`,oS=e=>!$.localStorageStore.getItem(aS(e)),sS=e=>$.localStorageStore.setItem(aS(e),!0),cS=e=>{let t=new Set;return{subscribe:e=>(t.add(e),()=>t.delete(e)),getSnapshot:()=>oS(e),dismiss:()=>
7{sS(e),t.forEach(e=>e())}}},lS=cS(rS),uS=cS(iS),dS=()=>lS.dismiss(),fS=()=>{let e=(0,I.useSyncExternalStore)(lS.subscribe,lS.getSnapshot),[t,n]=(0,I.useState)(!1);return{installExtensionBannerOpened:e,forceInstallGuideOpened:t,closeInstallExtensionBanner:(0,I.useCallback)(()=>lS.dismiss(),[]),openForceInstallGuide:(0,I.useCallback)(()=>n(!0),[]),closeForceInstallGuide:(0,I.useCallback)(()=>n(!1),[]),openExtensionPage:Jx}},pS=()=>({connectSlackBotBannerOpened:(0,I.useSyncExternalStore)(uS.subscribe,uS.getSnapshot),closeConnectSlackBotBanner:(0,I.useCallback)(()=>uS.dismiss(),[])}),mS=()=>{let{isAdmin:e}=vG(),{data:t,isLoading:n}=Zl(void 0,{enabled:e}),r=t?t.rows.some(e=>e.status===Fl.Success):!1,i=t?t.rows.some(e=>e.status===Fl.Error):!1,a=t?t.rows.some(e=>e.status===Fl.Warning):!1,o=t?t.rows.some(e=>e.status===Fl.GettingData):!1;return{isLoading:n,hasIntegrations:r,hasOnlyError:i&&!r&&!o,hasOnlyWarning:a&&!r&&!o,hasGettingData:o}},hS=e=>({id:e.id,seenAt:e.seenAt,createdAt:e.createdAt,title:e.data.title,text:e.data.text,picture:e.data.picture,service:e.data.service,level:e.data.level}),gS=async()=>{let{data:e}=await $.requester.instance.get(`/notifications/`);return e.map(hS)},_S=async()=>{await $.requester.instance.post(`/notifications/seen`)},vS=async()=>{let{data:e}=await $.requester.instance.get(`/notifications/preferences`);return e},yS=async e=>{await $.requester.instance.post(`/notifications/preferences`,e)},bS=async e=>{let{data:t}=await $.requester.instance.post(`/v3/members/list`,{...e});return t},xS=async e=>{let{data:t}=await $.requester.instance.post(`/v3/members/list/batch`,e);return t},SS=async e=>{let{data:t}=await $.requester.instance.get(`/v3/members/${e}/info`);return t},CS=async e=>{let{data:t}=await $.requester.instance.post(`/v3/members/list`,{userId:e});return t.rows[0]??null},wS=async({id:e,...t})=>{await $.requester.instance.patch(`/v3/members/${e}`,t)},TS=async e=>{await $.requester.instance.delete(`/v3/members/integrations`,{data:{memberId:e}})},ES=async e=>{let{data:t}=await $.requester.instance.post(`/v3/members/info/bulk`,e);return t},DS=async e=>{let{data:t}=await $.requester.instance.post(`/v3/members/info/bulk`,e);return t},OS=async e=>{let{data:t}=await $.requester.instance.post(`/v3/members/info/bulk`,e);return t},kS=async e=>{let{data:t}=await $.requester.instance.post(`/v3/members/info/bulk`,e);return t},AS=async e=>{let{data:t}=await $.requester.instance.post(`/v3/members/info/bulk`,e);return t},jS=async e=>{let{data:t}=await $.requester.instance.post(`/v2/member`,e);return t},MS=async e=>{let{data:t}=await $.requester.instance.post(`/v3/members/integration`,e);return t},NS=async({id:e,sortBy:t,orderBy:n})=>{let{data:r}=await $.requester.instance.get(`/v3/service/members/${e}/activity`,{params:{sortBy:t,orderBy:n}});return r},PS=async()=>(await $.requester.instance.get(`/v3/members/csv`,{responseType:`blob`})).data,FS=async e=>{let{data:t}=await $.requester.instance.get(`/v3/members/activity`,{params:e});return t},IS=async e=>{let{data:t}=await $.requester.instance.post(`/v3/members/csv/upload`,e);return t},LS=function(e){return e.Select=`select`,e.Name=`name`,e.JobTitle=`jobTitle`,e.HrStatus=`hrStatus`,e.Apps=`usedServicesCount`,e.Role=`role`,e.Department=`department`,e.AccountType=`accountType`,e.Price=`price`,e.LastUsed=`lastActivity`,e.LastUsedTimestamp=`lastActivityTimestamp`,e.Management=`management`,e.LicenseName=`licenseName`,e}({}),RS=function(e){return e.LicenseName=`licenseName`,e.Name=`serviceName`,e.Activity=`lastUsedAt`,e}({}),Y=function(e){return e.Department=`department.name`,e.JobTitle=`jobTitle`,e.usedServices=`usedServices.name`,e.AccountType=`accountType`,e.HrStatus=`hrStatus`,e}({}),zS=function(e){return e.Active=`ACTIVE`,e.Deactivated=`DEACTIVATED`,e}({}),BS=function(e){return e.Employee=`EMPLOYEE`,e.ServiceAccount=`SERVICE_ACCOUNT`,e}({}),VS=function(e){return e[e.OVERVIEW=0]=`OVERVIEW`,e[e.SUBSCRIPTION_ACTIVITY=1]=`SUBSCRIPTION_ACTIVITY`,e}({});Y.Department,z.t(`Department`),Y.JobTitle,z.t(`Job title`),Y.usedServices,z.t(`Apps used`),Y.AccountType,z.t(`Account type`),Y.HrStatus,z.t(`HR status`),Y.Department,Y.AccountType,Y.JobTitle,Y.HrStatus,Y.usedServices;var HS={accountType:Y.AccountType,"department.name":Y.Department,hrStatus:Y.HrStatus,jobTitle:Y.JobTitle,"usedServices.name":Y.usedServices},US=e=>{if(!e)return null;let t={};for(let[n,r]of Object.entries(HS)){let i=e[n]??{};t[r]={options:Object.keys(i),counts:i}}return t},WS=(e,t=1)=>{b({message:t>1?e?z.t(`Employees archived`):z.t(`Employees removed from archive`):e?z.t(`Employee moved to archive`):z.t(`Employee removed from archive`),variant:`success`})},GS={all:[`members`],details:e=>[...GS.all,e],byUserId:e=>[...GS.all,`by-user-id`,e],lists:()=>[...GS.all,`list`],list:e=>[...GS.lists(),{payload:e}],batch:e=>[...GS.lists(),`batch`,{memberIds:e.sort()}],jobTitles:()=>[...GS.all,`job-titles`],viewCounts:e=>[...GS.all,`view-counts`,{payload:e}],activity:e=>[...GS.all,`activity`,{payload:e}],dashboardActivity:e=>[...GS.all,`dashboard-activity`,{payload:e}]},KS=GS,qS=e=>N({queryKey:KS.list(e),queryFn:()=>bS(e)}),JS=(e,t)=>F({...qS(e),...t}),YS=()=>{let{data:e}=JS({page:1,pageSize:1,searchTerm:``},{staleTime:120*1e3,placeholderData:pi});return(0,I.useMemo)(()=>US(e?.metadata.facets),[e?.metadata.facets])},XS=50,ZS=e=>di({queryKey:[...GS.lists(),`infinite`,{payload:e}],queryFn:({pageParam:t})=>bS({...e,offset:t,pageSize:XS}),initialPageParam:0,getNextPageParam:(e,t)=>{if(e.rows.length===0)return;let n=t.reduce((e,t)=>
7e+t.rows.length,0);return n<e.metadata.totalCount?n:void 0}}),QS=(e,t)=>{let n=gi({...ZS(e),...t}),{data:r,hasNextPage:i,isFetchingNextPage:a,fetchNextPage:o}=n,s=(0,I.useMemo)(()=>r?.pages.flatMap(e=>e.rows)??[],[r?.pages]),c=r?.pages[0]?.metadata.totalCount??0,l=(0,I.useCallback)(()=>{i&&!a&&o()},[i,a,o]);return{...n,flatData:s,totalCount:c,handleLoadMore:l}},$S=e=>N({queryKey:KS.details(e),queryFn:()=>SS(e)}),eC=(e,t)=>F({...$S(e),...t}),tC=e=>N({queryKey:KS.byUserId(e),queryFn:()=>CS(e),enabled:!!e}),nC=(e,t)=>F({...tC(e),...t}),rC=e=>N({queryKey:KS.batch(e),queryFn:()=>xS({memberIds:e}),enabled:e.length>0}),iC=(e,t)=>F({...rC(e),...t}),aC=e=>N({queryKey:KS.activity(e),queryFn:()=>NS(e)}),oC=(e,t)=>F({...aC(e),...t}),sC=e=>N({queryKey:KS.dashboardActivity(e),queryFn:()=>FS(e)}),cC=(e,t)=>F({...sC(e),...t}),lC=()=>{let e=P();return M({mutationFn:wS,onSuccess(t,{id:n}){e.invalidateQueries({queryKey:KS.lists()}),e.invalidateQueries({queryKey:KS.details(n)}),e.invalidateQueries({queryKey:KS.jobTitles()}),e.invalidateQueries({queryKey:_v.details()})}})},uC=()=>{let e=P();return M({mutationFn:ES,onSuccess(){e.invalidateQueries({queryKey:KS.lists()}),e.invalidateQueries({queryKey:_v.details()}),b({message:z.t(`Department changed`),variant:`success`})}})},dC=()=>{let e=P();return M({mutationFn:DS,onSuccess(){e.invalidateQueries({queryKey:KS.lists()}),e.invalidateQueries({queryKey:KS.jobTitles()}),e.invalidateQueries({queryKey:_v.details()}),b({message:z.t(`Job title added`),variant:`success`})}})},fC=()=>{let e=P();return M({mutationFn:OS,onSuccess(){e.invalidateQueries({queryKey:KS.lists()}),e.invalidateQueries({queryKey:_v.details()}),b({message:z.t(`Account type changed`),variant:`success`})}})},pC=()=>{let e=P();return M({mutationFn:kS,onSuccess(){e.invalidateQueries({queryKey:KS.lists()}),e.invalidateQueries({queryKey:_v.details()}),b({message:z.t(`HR status changed`),variant:`success`})}})},mC=()=>{let e=P();return M({mutationFn:AS,onSuccess(t,{isHidden:n,memberIds:r}){e.invalidateQueries({queryKey:KS.lists()}),e.invalidateQueries({queryKey:_v.details()}),WS(n,r.length)}})},hC=()=>{let e=P();return M({mutationFn:jS,onSuccess(){e.invalidateQueries({queryKey:KS.lists()}),e.invalidateQueries({queryKey:_v.details()})}})},gC=()=>{let e=P();return M({mutationFn:MS,onSuccess(){e.invalidateQueries({queryKey:KS.lists()}),e.invalidateQueries({queryKey:_v.details()})}})},_C=()=>{let e=P();return M({mutationFn:TS,onSuccess(){e.invalidateQueries({queryKey:KS.lists()}),e.invalidateQueries({queryKey:_v.details()})}})},vC=()=>A_({mutationFn:PS,filename:`members.csv`}),yC=()=>{let e=P();return M({mutationFn:e=>IS(e),onSuccess(){e.invalidateQueries({queryKey:KS.lists()}),b({message:z.t(`Employees imported successfully`),variant:`success`})}})},bC={[zS.Active]:{label:z.t(`Active`),chipColor:`success`},[zS.Deactivated]:{label:z.t(`Deactivated`),chipColor:`secondary`}},xC={[BS.Employee]:z.t(`Employee`),[BS.ServiceAccount]:z.t(`Service account`)},SC=[BS.Employee,BS.ServiceAccount],CC=[zS.Active,zS.Deactivated],wC=e=>e.firstName&&e.lastName?`${e.firstName} ${e.lastName}`:e.firstName?e.firstName:e.email.split(`@`)[0],TC={all:[`notifications`],lists:()=>[...TC.all,`list`],list:()=>[...TC.lists()],preferences:()=>[...TC.all,`preferences`]},EC=TC,DC=()=>{let e=P(),t=(0,I.useRef)(void 0);t.current=t=>{let n={id:t.id,seenAt:t.seenAt||``,createdAt:t.createdAt||new Date().toISOString(),title:t.title,text:t.text,picture:t.picture,service:t.service,level:t.level};e.setQueryData(EC.list(),(e=[])=>e.some(e=>e.id===n.id)?e:[n,...e]),t.title?.includes(`successfully integrated!`)&&(e.invalidateQueries({queryKey:KS.all}),e.invalidateQueries({queryKey:_v.all}),e.invalidateQueries({queryKey:Yl.all}),e.invalidateQueries({queryKey:ux.all}),e.invalidateQueries({queryKey:Fb.discountsServices()}))},(0,I.useEffect)(()=>{let e=e=>{t.current?.(e)};return $.requester.webSocketsService.subscribe(yx.Notification,e),()=>{$.requester.webSocketsService.unsubscribe(yx.Notification,e)}},[])},OC=()=>N({queryKey:EC.list(),queryFn:gS,staleTime:1/0,gcTime:600*1e3,retry:3,retryDelay:e=>Math.min(1e3*2**e,3e4)}),kC=()=>F(OC()),AC=()=>{let{data:e=[]}=kC();return(0,I.useMemo)(()=>e.filter(e=>!e.seenAt).length,[e])},jC=()=>{let e=P();return M({mutationFn:_S,onMutate:async()=>{await e.cancelQueries({queryKey:EC.list()});let t=e.getQueryData(EC.list());return e.setQueryData(EC.list(),(e=[])=>e.map(e=>({...e,seenAt:e.seenAt||new Date().toISOString()}))),{previousNotifications:t}},onError:(t,n,r)=>{r?.previousNotifications&&e.setQueryData(EC.list(),r.previousNotifications),b({message:z.t(`Failed to mark notifications as seen`),variant:`attention`})},onSettled:()=>
7{e.invalidateQueries({queryKey:EC.list()})}})},MC=()=>N({queryKey:EC.preferences(),queryFn:vS,staleTime:300*1e3}),NC=()=>F(MC()),PC=()=>{let e=P();return M({mutationFn:yS,onMutate:async t=>{await e.cancelQueries({queryKey:EC.preferences()});let n=e.getQueryData(EC.preferences());return e.setQueryData(EC.preferences(),e=>({...e,...t})),{previousPreferences:n}},onSuccess:()=>{e.invalidateQueries({queryKey:EC.preferences()}),b({message:z.t(`Notification preferences saved`),variant:`success`})},onError:(t,n,r)=>{r?.previousPreferences&&e.setQueryData(EC.preferences(),r.previousPreferences),b({message:z.t(`Failed to save preferences`),variant:`attention`})}})},FC=1e3*60*5,IC=new mi({defaultOptions:{queries:{refetchOnWindowFocus:!1,staleTime:FC,gcTime:FC,retry:(e,t)=>t?.status===401||t?.status===403?!1:e<3,retryDelay:e=>{let t=1e3;return 2**e*t+Math.random()*t}}}}),LC=async()=>{let{webSession:e}=$.authStore;if(!e.isValid){if(!e.isSilentRefreshAvailable)return;try{await e.refreshSession()}catch{return}if(!e.isValid)return}let t;try{t=await IC.fetchQuery({...eG(),staleTime:0})}catch{return}if(t)try{let{requester:e,localStorageStore:n,trackingStore:r}=$;e.webSocketsService.setTeamId(t.companyID),e.webSocketsService.setUserId(t.id),await IC.ensureQueryData({queryKey:EC.list(),queryFn:gS}),await e.webSocketsService.init(),Yx(),n.setItem(ec.REFERRAL_ID,t.referralId??``),zC(t),r.setUserInfo(t)}catch{}},RC=async()=>{if($.authStore.webSession.isValid)try{await IC.fetchQuery({...eG(),staleTime:0})}catch{}},zC=async e=>{let t=$.requester.extensionService,{passwordExtensionSession:n}=$.authStore,r=Bs(),i=zs(),a=()=>{e.extensionReportToken&&t.reportUninstall({token:e.extensionReportToken})},o=null;r&&(o=b({message:z.t(`Connecting to extensionâ¦`),variant:`info`,persist:!0,closable:!1})),n.isSilentRefreshAvailable&&await n.refreshSession().catch(()=>void 0);let s=Hs(e,n.token,n.refreshToken,n.expiresAt,a),c=Vs(e,a);if(s.catch(()=>void 0),c.catch(()=>void 0),r){await s,o!==null&&v(o),dS(),window.close();return}if(i){await c,dS(),window.close();return}dS()},BC=()=>{Ml()||(Nl(),gg(tG()?.id??``),Fy().catch(()=>void 0),$.requester.webSocketsService.destroy(),IC.clear(),$.authStore.webSession.clearSession(),$.authStore.moneySession.clearSession(),$.authStore.passwordExtensionSession.clearSession())},VC=e=>m(e)&&e.response!==void 0&&e.response.status>=400&&e.response.status<500&&e.response.status!==408&&e.response.status!==429,HC=class{token=null;refreshToken=null;options;listeners=new Set;version=0;constructor(e){this.options=e,this.loadFromStorage(),typeof window<`u`&&window.addEventListener(`storage`,this.handleStorageEvent)}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getVersion=()=>this.version;emit(){this.version+=1,this.listeners.forEach(e=>e())}handleStorageEvent=e=>{if(e.key!==null&&e.key!==this.storageTokenKey&&e.key!==this.storageRefreshTokenKey)return;let t=this.refreshToken!==null;if(!this.loadFromStorage())return;let n=this.refreshToken!==null;this.options.reloadOnRemoteSessionChange&&t!==n&&window.location.reload()};dispose(){typeof window<`u`&&window.removeEventListener(`storage`,this.handleStorageEvent)}get storageTokenKey(){return`${this.options.tokenType}_value`}get storageRefreshTokenKey(){return`${this.options.tokenType}_refreshToken`}syncFromStorage(){return this.loadFromStorage()}loadFromStorage(){try{return this.token=localStorage.getItem(this.storageTokenKey),this.refreshToken=localStorage.getItem(this.storageRefreshTokenKey),this.emit(),!0}catch(e){return console.warn(`Failed to load tokens from localStorage:`,e),!1}}set({token:e,refreshToken:t}){if(e!==void 0){this.token=e;try{e===null?localStorage.removeItem(this.storageTokenKey):localStorage.setItem(this.storageTokenKey,e)}catch(e){console.warn(`Failed to save/remove token to localStorage:`,e)}}if(t!==void 0){this.refreshToken=t;try{t===null?localStorage.removeItem(this.storageRefreshTokenKey):localStorage.setItem(this.storageRefreshTokenKey,t)}catch(e){console.warn(`Failed to save/remove refresh token to localStorage:`,e)}}this.emit()}clear(){this.token=null,this.refreshToken=null;try{localStorage.removeItem(this.storageTokenKey),localStorage.removeItem(this.storageRefreshTokenKey)}catch(e){console.warn(`Failed to clear tokens from localStorage:`,e)}
7this.emit()}get isValid(){return this.token?(Oc(this.token)??0)>0:!1}get isRefreshValid(){return this.refreshToken?(Oc(this.refreshToken)??0)>0:!1}},UC=async e=>{let{data:t}=await oe.post(`${R?.API_URL}/sessions/money/refresh`,{refreshToken:e.refreshToken},{headers:{[$s.X_DEVICE_TYPE]:`web`,[yl]:e.accessToken}});return t},WC=async e=>{let{data:t}=await oe.post(`${R?.API_URL}/sessions/money/refresh/tfa`,e,{headers:{[$s.X_DEVICE_TYPE]:`web`}});return t},GC=class{defaultBufferTime=60*1e3;refetchTimeoutId;sessionTimeoutId;sessionTimeoutDuration=300*1e3;authToken=new HC({tokenType:`accessToken`});subscribe=e=>this.authToken.subscribe(e);getVersion=()=>this.authToken.getVersion();get token(){return this.authToken.token}get refreshToken(){return this.authToken.refreshToken}get isTokenValid(){return this.authToken.isValid}get isSilentRefreshAvailable(){return!!this.authToken.token&&this.authToken.isValid}get isRefreshWithTfaAvailable(){return!!this.authToken.refreshToken}updateSession({token:e,refreshToken:t},n=!1){this.authToken.set({token:e,refreshToken:t}),n||this.scheduleRefresh()}startSession(){clearTimeout(this.sessionTimeoutId),this.scheduleRefresh()}freezeSession(e){e?(this.stopRefresh(),this.clearTokenAndHoldRefresh()):this.sessionTimeoutId=setTimeout(()=>{this.stopRefresh(),this.clearTokenAndHoldRefresh()},this.sessionTimeoutDuration)}clearSession(){this.authToken.clear(),this.stopRefresh(),clearTimeout(this.sessionTimeoutId)}clearTokenAndHoldRefresh(){this.authToken.set({token:null}),this.stopRefresh()}scheduleRefresh(){if(clearTimeout(this.refetchTimeoutId),!this.isSilentRefreshAvailable){this.authToken.refreshToken&&this.authToken.token&&this.refresh();return}let e=Oc(this.authToken.token);if(e===null)return;let t=e-this.defaultBufferTime;if(t<=0){this.refresh();return}this.refetchTimeoutId=setTimeout(()=>{this.refresh()},t)}stopRefresh(){clearTimeout(this.refetchTimeoutId)}async refresh(){if(!(!this.authToken.token||!this.authToken.refreshToken))try{let e=await UC({accessToken:this.authToken.token,refreshToken:this.authToken.refreshToken});this.updateSession({token:e.accessToken,refreshToken:e.cardsRefreshToken})}catch(e){if(VC(e)){BC(),$.routeStore.navigate(lo);return}this.authToken.set({token:null})}}async refreshWithTfa(e){if(!this.isRefreshWithTfaAvailable)return;let t=await WC({tfaCode:e,refreshToken:this.authToken.refreshToken});this.updateSession({token:t.accessToken,refreshToken:t.cardsRefreshToken})}},KC=async e=>{let{data:t}=await oe.post(`${R?.API_URL}/sessions/passwords/refresh`,{refreshToken:e.refreshToken},{headers:{[$s.X_DEVICE_TYPE]:`web`,[bl]:e.token}});return t},qC=`password-extension-session-refresh`,JC=15*1e3,YC=60*1e3,XC=class{authToken=new HC({tokenType:`passwordExtensionToken`});expiresAt=null;refreshPromise=null;get token(){return this.authToken.token}get refreshToken(){return this.authToken.refreshToken}get isValid(){return this.authToken.isValid}get isSilentRefreshAvailable(){return this.authToken.isRefreshValid}updateSession({token:e,refreshToken:t,expiresAt:n}){this.authToken.set({token:e,refreshToken:t}),n!==void 0&&(this.expiresAt=n)}clearSession(){this.authToken.clear(),this.expiresAt=null}async refreshSession(){return!this.authToken.token||!this.authToken.refreshToken?null:(this.refreshPromise||=this.refreshExclusively().finally(()=>{this.refreshPromise=null}),this.refreshPromise)}async refreshExclusively(){if(typeof navigator>`u`||!navigator.locks)return this.performRefresh();let e=typeof AbortSignal<`u`&&typeof AbortSignal.timeout==`function`?{signal:AbortSignal.timeout(JC)}:{};try{return await navigator.locks.request(qC,e,()=>this.performRefresh())}catch(e){let t=e?.name;if(t===`TimeoutError`||t===`AbortError`)return null;throw e}}async performRefresh(){this.authToken.syncFromStorage();let e=this.authToken.token,t=this.authToken.refreshToken;if(!e||!t)return null;let n=Oc(e);if(n!==null&&n>YC)return e;try{let n=await KC({token:e,refreshToken:t});return this.updateSession({token:n.passwordExtensionToken,refreshToken:n.passwordExtensionRefreshToken,...n.passwordExtensionExpiresAt===void 0?{}:{expiresAt:n.passwordExtensionExpiresAt}}),n.passwordExtensionToken??null}catch{return null}}},ZC=async e=>{let{data:t}=await oe.post(`${R?.API_URL}/sessions/refresh`,{refreshToken:e.refreshToken},{headers:{[$s.X_DEVICE_TYPE]:`web`,[vl]:e.webToken},timeout:1e4});return t},QC=`web-session-refresh`,$C=15*1e3,ew=[1e3,3e3],tw=30*1e3,nw=class{defaultBufferTime=60*1e3;refetchTimeoutId;authToken=new HC({tokenType:`webToken`,reloadOnRemoteSessionChange:!0});refreshPromise=null;constructor(){typeof document<`u`&&document.addEventListener(`visibilitychange`,this.handleVisibilityChange)}subscribe=e=>this.authToken.subscribe(e);getVersion=()=>this.authToken.getVersion();handleVisibilityChange=()=>{document.visibilityState===`visible`&&this.isSilentRefreshAvailable&&this.scheduleRefresh()};dispose(){typeof document<`u`&&document.removeEventListener(`visibilitychange`,this.handleVisibilityChange),this.stopRefresh(),this.authToken.dispose()}get token(){return this.authToken.token}get isValid(){return this.authToken.isValid}get refreshToken(){return this.authToken.refreshToken}get isSilentRefreshAvailable(){return this.authToken.isRefreshValid}updateSession({token:e,refreshToken:t}){this.authToken.set({token:e,refreshToken:t}),this.scheduleRefresh(),e&&Oy({token:e,accountId:tG()?.id}).catch(()=>void 0)}startSession(){this.scheduleRefresh()}clearSession(){this.authToken.clear(),this.stopRefresh()}scheduleRefresh(e){if(!this.isSilentRefreshAvailable)return;clearTimeout(this.refetchTimeoutId);let t=e;if(t===void 0){let e=Oc(this.authToken.token);if(e===null)return;t=e-this.defaultBufferTime}if(t<=0){this.refreshSession().catch(()=>void 0);return}this.refetchTimeoutId=setTimeout(()=>{this.refreshSession().catch(()=>void 0)},t)}stopRefresh(){clearTimeout(this.refetchTimeoutId)}async refreshSession(){return!this.authToken.token||!this.authToken.refreshToken?null:(this.refreshPromise||=this.refreshExclusively().finally(()=>{this.refreshPromise=null}),this.refreshPromise)}async refreshExclusively(){if(typeof navigator>`u`||!navigator.locks)return this.performRefresh();let e=typeof AbortSignal<`u`&&typeof AbortSignal.timeout==`function`?{signal:AbortSignal.timeout($C)}:{};try{return await navigator.locks.request(QC,e,()=>this.performRefresh())}catch(e){let t=e?.name;if(t===`TimeoutError`||t===`AbortError`)return this.scheduleRefresh(tw),null;throw e}}async performRefresh(){let e=this.authToken.syncFromStorage(),t=this.authToken.token,n=this.authToken.refreshToken;if(!t||!n)return null;let r=Oc(t);if(r!==null&&r>this.defaultBufferTime)return this.updateSession({token:t,refreshToken:n}),t;for(let r=0;;r+=1){if(this.authToken.refreshToken!==n)return null;try{let e=await ZC({webToken:t,refreshToken:n});return this.authToken.refreshToken===n?(this.updateSession({token:e.webToken,refreshToken:e.refreshToken}),e.webToken??null):null}catch(t){if(this.authToken.refreshToken!==n)return null;if(e&&VC(t)){if(this.authToken.syncFromStorage(),this.authToken.refreshToken&&this.authToken.refreshToken!==n&&this.isValid){let e=this.authToken.token;return this.updateSession({token:e,refreshToken:this.authToken.refreshToken}),e}throw BC(),$.routeStore.navigate(lo),t}
7let i=ew[r];if(i===void 0)break;await xc(i)}}return this.scheduleRefresh(tw),null}},rw=class{moneySession=new GC;webSession=new nw;passwordExtensionSession=new XC},iw=e=>e,aw=e=>async t=>{let{response:n,config:r}=t;if(n?.status>=500)throw Error(tc.SERVICE_UNAVAILABLE);if(n?.status===401){if(Ml())throw n;let t=n.config.headers[$s.X_DEVICE_TYPE]===`money`,i=r;if(!t&&i&&!i._retriedAfterRefresh&&$.authStore.webSession.isSilentRefreshAvailable){i._retriedAfterRefresh=!0;let t=null;try{t=await $.authStore.webSession.refreshSession()}catch{throw n}if(t)return e().request(i);if($.authStore.webSession.isSilentRefreshAvailable)throw n}if(t){try{await ow.get(`/me`)}catch(e){if(e?.status===401)throw n;console.error(`Unexpected error while probing the web session:`,e)}throw tG()?.isTfaEnabled&&$.authStore.moneySession.freezeSession(!0),n}BC(),$.routeStore.navigate(lo)}throw n},ow=oe.create({baseURL:R?.API_URL,headers:{[$s.X_DEVICE_TYPE]:`web`},timeout:1e4});ow.interceptors.request.use(e=>{let t=$.authStore.webSession.token;return t&&(e.headers[vl]=t),e}),ow.interceptors.response.use(iw,aw(()=>ow));var sw=oe.create({baseURL:R?.CARDS_API_URL,headers:{[$s.X_DEVICE_TYPE]:`money`},timeout:1e4});sw.interceptors.request.use(e=>{let t=$.authStore.moneySession.token;return t&&(e.headers[yl]=t),e}),sw.interceptors.response.use(iw,aw(()=>sw));var X=oe.create({baseURL:R?.API_URL,headers:{[$s.X_DEVICE_TYPE]:`money`},timeout:1e4});X.interceptors.request.use(e=>{let t=$.authStore.moneySession.token;return t&&(e.headers[yl]=t),e}),X.interceptors.response.use(iw,aw(()=>X));var cw=class{instance;constructor(e){this.instance=e}login(e){return this.instance.post(`/auth/login`,e).then(({data:e})=>e)}loginWithGoogleOneTap(e){return this.instance.post(`/auth/google/one-tap`,e).then(({data:e})=>e)}getGoogleAuthUrl(e){return this.instance.get(`/auth/google/auth-url?${r.stringify({redirectUri:e})}`).then(({data:e})=>e)}getMSLoginUrl(e,t){let n={redirectUri:e,...t&&{redirectUrl:t}};return this.instance.get(`/auth/microsoft/auth-url?${r.stringify(n)}`).then(({data:e})=>e)}loginWithGoogleCode({code:e,redirectUri:t,referralId:n,state:r}){return this.instance.post(`/auth/google/oauth2-success`,{code:e,redirectUri:t,referralId:n,state:r}).then(({data:e})=>e)}loginWithMS(e){return this.instance.post(`/auth/microsoft/oauth2-success`,e).then(({data:e})=>e)}signUpDirect(e){return this.instance.post(`/auth/signup`,e).then(({data:e})=>e)}confirmEmail(e,t,n){return this.instance.post(`/auth/confirm-email`,{token:e,email:t,code:n}).then(({data:e})=>e)}resendVerification(e){return this.instance.post(`/auth/resend-verification`,{email:e}).then(({data:e})=>e)}loginDirect(e){return this.instance.post(`/auth/signin`,e).then(({data:e})=>e)}confirmTFACode(e){return this.instance.post(`/auth/signin-tfa`,e).then(({data:e})=>e)}validateTFA(e){return this.instance.post(`/auth/validate-tfa`,e)}forgotPassword(e){return this.instance.post(`/auth/reset-password`,{email:e}).then(({data:e})=>e)}setNewPassword(e){return this.instance.post(`/auth/set-new-password`,e)}logout(e){return this.instance.post(`/auth/logout`,e)}getMe(){return this.instance.get(`/me`).then(({data:e})=>e)}updateUserData(e){return this.instance.patch(`/me`,e).then(({data:e})=>e)}getTFASetupKeys(){return this.instance.get(`/me/tfa`).then(({data:e})=>e)}toggleTFA(e){return this.instance.post(`/me/tfa/set-enabled`,e).then(({data:e})=>e)}changePassword(e){return this.instance.post(`/me/change-password`,e)}validateToken(e){return this.instance.post(`/auth/validate-token`,{token:e}).then(({data:e})=>e)}validateRefreshToken(e){return this.instance.post(`/auth/validate-refresh-token`,{refreshToken:e})}acceptInvite(e){return this.instance.post(`/invitation/success`,e).then(e=>e.data)}};function lw(){let e=navigator.userAgent,t=Date.now(),n=uw(e),r=dw(e),i=fw(e),a=pw(),o=mw();return{uaRaw:e,browser:n,os:r,device:{type:i},timezone:a,language:o,clientTs:t,extra:{screen:{width:window.screen.width,height:window.screen.height},viewport:{width:window.innerWidth,height:window.innerHeight}}}}function uw(e){if(e.includes(`Chrome/`)){let t=e.match(/Chrome\/(\d+)/);return{name:`Chrome`,versionMajor:t?t[1]:`0`}}if(e.includes(`Firefox/`)){let t=e.match(/Firefox\/(\d+)/);return{name:`Firefox`,versionMajor:t?t[1]:`0`}}if(e.includes(`Safari/`)&&!e.includes(`Chrome`)){let t=e.match(/Version\/(\d+)/);return{name:`Safari`,versionMajor:t?t[1]:`0`}}if(e.includes(`Edg/`)){let t=e.match(/Edg\/(\d+)/);return{name:`Edge`,versionMajor:t?t[1]:`0`}}return{name:`Unknown`,versionMajor:`0`}}function dw(e){if(e.includes(`Windows NT`)){let t=e.match(/Windows NT ([\d.]+)/);return{name:`Windows`,version:t?t[1]:`Unknown`}}if(e.includes(`Mac OS X`)){let t=e.match(/Mac OS X ([\d_]+)/);return{name:`macOS`,version:t?t[1].replace(/_/g,`.`):`Unknown`}}if(e.includes(`Linux`))return{name:`Linux`,version:`Unknown`};if(e.includes(`iPhone`)||e.includes(`iPad`)){let t=e.match(/OS ([\d_]+)/);return{name:`iOS`,version:t?t[1].replace(/_/g,`.`):`Unknown`}}if(e.includes(`Android`)){let t=e.match(/Android ([\d.]+)/);return{name:`Android`,version:t?t[1]:`Unknown`}}return{name:`Unknown`,version:`Unknown`}}function fw(e){return e.includes(`Mobile`)||e.includes(`iPhone`)||e.includes(`Android`)?`mobile`:e.includes(`Tablet`)||e.includes(`iPad`)?`tablet`:`desktop`}function pw(){return{iana:Intl.DateTimeFormat().resolvedOptions().timeZone,offsetMinutes:new Date().getTimezoneOffset()*-1}}function mw(){let e=navigator.language||`en-US`;return{primary:e,all:Array.from(navigator.languages||[e])}}var hw=class{instance;constructor(e){this.instance=e}startQRCodeLogin(){let e=lw();return this.instance.post(`/auth/qr/start`,{browserContext:e}).then(({data:e})=>e)}consumeQRCode(e){return this.instance.post(`/auth/qr/consume`,{code:e}).then(({data:e})=>e)}},gw=class{wsUrl;client=null;constructor(e){this.wsUrl=e}async connect(e){if(this.client)return this.client;try{return this.client=new te(this.wsUrl,{token:e}),this.client.on(`connected`,()=>{console.log(`QR Code WebSocket: Connected`)}),this.client.on(`disconnected`,e=>{console.log(`QR Code WebSocket: Disconnected`,e)}),this.client.on(`error`,e=>{console.error(`QR Code WebSocket: Error`,e)}),this.client.connect(),await this.client.ready(Al),this.client}catch(e){throw console.error(`QR Code WebSocket: Failed to create client`,e),this.disconnect(),e}}disconnect(){let e=this.client;if(this.client=null,e)try{e.disconnect()}catch(e){console.error(`QR Code WebSocket: Failed to disconnect`,e)}}getClient(){return this.client}isConnected(){return this.client?.state===`connected`}},_w=class{instance;constructor(e){this.instance=e}getCurrentSubscriptions(e,{costRange:t,spendRange:n}){let i={serviceId:e,costRange:t};if(oo(n)){let{startDate:e,endDate:t}=n;i.spendRange=mc.CUSTOM,i.startDate=e,i.endDate=t}else i.spendRange=n;return this.instance.get(`/services?${r.stringify(i,{skipNull:!0})}`).then(({data:e})=>e)}getRenewals(){return this.instance.get(`/v3/analytics/renewals`).then(({data:e})=>e)}uploadSubscriptions(e){return this.instance.post(`/v2/service/upload`,e)}getSubscriptionsFields(){return this.instance.get(`/v3/service/fields`).then(({data:e})=>e)}},vw=class{instance;constructor(e){this.instance=e}getMembers(e){return this.instance.post(`/v3/members/list`,e).then(({data:e})=>e)}updateMember(e){return this.instance.patch(`/v3/members/${e.id}`,e)}getCurrentMember(e){return this.instance.get(`/v3/members/${e}/info`).then(({data:e})=>e)}inviteNewMember(e){return this.instance.post(`/invitation/send`,e).then(({data:e})=>e)}removeMember(e){return this.instance.delete(`/team/remove-user/${e}`)}},yw=class{instance;constructor(e){this.instance=e}uploadImage(e){return this.instance.post(`/v2/upload/user`,e).then(({data:e})=>e)}},bw=class{instance;constructor(e){this.instance=e}getDeals(){return j(()=>import(`./DEALS-DCXsbv7x.js`),[])}},xw=class{_cardsInstance;constructor(e){this._cardsInstance=e,X.defaults.headers[`ngrok-skip-browser-warning`]=!0,this._cardsInstance.defaults.headers[`ngrok-skip-browser-warning`]=!0}getStageData(){return X.get(`/cards/onboarding`).then(({data:e})=>e)}exitFlow(){return X.delete(`/cards/onboarding/exit`).then(({data:e})=>e)}getCountries(e){return X.get(`/cards/onboarding/countries`,e?{params:{filter:e}}:{}).then(({data:e})=>e)}getIndustries(e){return X.get(`/cards/onboarding/industries`,e?{params:{filter:e}}:{}).then(({data:e})=>e)}getIbanDetails(e){return this._cardsInstance.get(`/cards-router/v1/accounts/bank/${e}/details`).then(({data:e})=>e)}getIbanDetailsAsPDF(e,t){return this._cardsInstance.get(`/cards-router/v1/accounts/bank/${t}/details/pdf`,e)}sendIbanDetailsEmail(e){return this._cardsInstance.post(`/cards-router/v1/accounts/bank/${e}/details/email`).then(({data:e})=>e)}uploadFile(e){return X.post(`/cards/onboarding/file`,e).then(({data:e})=>e)}deleteFile(e){return X.delete(`/cards/onboarding/file`,{data:e}).then(({data:e})=>e)}submitAgreement(){return X.post(`/cards/onboarding/agreement`).then(({data:e})=>e)}submitCompanyDetails(e){return X.post(`/cards/onboarding/details`,e).then(({data:e})=>e)}submitExpectedActivity(e){return X.post(`/cards/onboarding/expected-activity`,e).then(({data:e})=>e)}submitCompanyAddress(e){return X.post(`/cards/onboarding/address`,e).then(({data:e})=>e)}submitBeneficiary(e){return X.post(`/cards/onboarding/affiliated`,e).then(({data:e})=>e)}submitLegalCompany(){return X.post(`/cards/onboarding/legal-company`).then(({data:e})=>e)}submitAuthorizedPerson(e){return X.post(`/cards/onboarding/affiliated`,e).then(({data:e})=>e)}submitAdditionalDocuments(){return X.post(`/cards/onboarding/additional-documents`).then(({data:e})=>e)}getWithdrawalPurposes(){return this._cardsInstance.get(`/cards-router/v1/accounts/bank/purposes`).then(({data:e})=>e)}confirmPayee(e){return this._cardsInstance.post(`/cards-router/v1/accounts/bank/confirm-payee`,e).then(({data:e})=>e)}changeIbanStatus(e,t){return this._cardsInstance.post(`/cards-router/v1/accounts/bank/${e}/${t}`).then(({data:e})=>e)}getOpenbankingConnections(){return this._cardsInstance.get(`/cards-router/v1/accounts/openbanking/connections`).then(({data:e})=>e)}disconnectOpenbankingConnection(e){return this._cardsInstance.post(`/cards-router/v1/accounts/openbanking/connections/revoke`,e)}downloadPDFFinancialDetails(e){return X.get(`/cards/financial-details/generate-pdf`,e)}},Sw=class{instance;constructor(e){this.instance=e}getNotifications(){return this.instance.get(`/notifications/`).then(({data:e})=>e)}markAllAsSeen(){return this.instance.post(`/notifications/seen`)}getPreferences(){return this.instance.get(`/notifications/preferences`).then(({data:e})=>e)}savePreferences(e){return this.instance.post(`/notifications/preferences`,e)}},Cw=class{instance;constructor(e){this.instance=e}getTransactions(e){return this.instance.post(`/v3/transactions/list`,e).then(({data:e})=>e)}getTransactionFields(){return this.instance.get(`/v3/transactions/fields`).then(({data:e})=>e)}uploadTransactionFields(e){return this.instance.post(`/v3/transactions/upload`,e).then(({data:e})=>e)}},ww=class{instance;constructor(e){this.instance=e}getCostAnalyticsData(e){return this.instance.get(`/v3/analytics/total-cost?${r.stringify(e,{skipNull:!0})}`).then(({data:e})=>e)}},Tw=class{instance;constructor(e){this.instance=e}async getHubspotChatToken(){let{data:e}=await this.instance.post(`/v3/hubspot/bot-token`);return e}},Ew=class{instance;constructor(e){this.instance=e}reportUninstall(e){return this.instance.post(`/v2/extension/report`,{type:`uninstall`,userAgent:navigator.userAgent,...e})}},Dw=class{rootStore;instance;cardServiceInstance;authService;subscriptionService;memberService;uploadService;dealService;cardService;
7webSocketsService;notificationService;transactionsService;analyticsService;hubspotService;extensionService;qrCodeService;qrCodeWebSocketService;constructor(e){this.rootStore=e,this.instance=ow,this.cardServiceInstance=sw,this.webSocketsService=new xx(R?.WS_URL,this.instance),this.qrCodeWebSocketService=new gw(R?.WS_URL),this.authService=new cw(this.instance),this.subscriptionService=new _w(this.instance),this.memberService=new vw(this.instance),this.uploadService=new yw(this.instance),this.dealService=new bw(this.instance),this.cardService=new xw(this.cardServiceInstance),this.notificationService=new Sw(this.instance),this.transactionsService=new Cw(this.instance),this.analyticsService=new ww(this.instance),this.hubspotService=new Tw(this.instance),this.extensionService=new Ew(this.instance),this.qrCodeService=new hw(this.instance)}},Ow=class{show(e,t={}){return b(e,{closable:!0,...t,autoHideDuration:t.action?mt:t.autoHideDuration})}showSuccess(e,t={}){this.show(e,{...t,variant:`success`})}showError(e,t={}){this.show(e,{...t,variant:`attention`})}showWarning(e=``,t={}){this.show(e,{...t,variant:`attention`})}showInfo(e=``,t={}){this.show(e,{...t,variant:`info`})}},kw=function(e){return e.InsightsPage=`insights_page`,e.MoneyPage=`money_page`,e.ProcurementPage=`procurement_page`,e.ApplicationPage=`application_page`,e.EmployeePage=`employee_page`,e.IntegrationsPage=`integrations_page`,e.SettingsPage=`settings_page`,e.DiscountMsaOpen=`discount_msa_open`,e.DiscountPotentialSavingOpen=`discount_potential_saving_open`,e.DiscountUploadCsv=`discount_upload_csv`,e.DiscountInviteUser=`discount_invite_user`,e.DiscountInviteUserAdded=`discount_invite_user_added`,e.DiscountCurrencySelect=`discount_currency_select`,e.DiscountAddService=`discount_add_service`,e.DiscountFilterServices=`discount_filter_services`,e.DiscountLearnMore=`discount_learn_more`,e.DiscountRemoveService=`discount_remove_service`,e.DiscountChangeCurrencyService=`discount_change_currency_service`,e.DiscountsTableSort=`discounts_table_sort`,e.ProcurementWorkflowStarted=`procurement_workflow_started`,e.ProcurementWorkflowFormBuilderStarted=`procurement_workflow_form_builder_started`,e.ProcurementWorkflowTreeStarted=`procurement_workflow_tree_started`,e.ProcurementRequestStarted=`procurement_request_start`,e.ProcurementRequestFormStarted=`procurement_request_form_start`,e.ProcurementPaymentPrioritySet=`procurement_payment_priority_set`,e.ProcurementPaymentPriorityChanged=`procurement_payment_priority_changed`,e.ProcurementPaymentPriorityModalOpened=`procurement_payment_priority_modal_opened`,e.InsightsViewAllApps=`insights_view_all_apps`,e.InsightsAddRenewal=`insights_add_renewal`,e.InsightsViewAllAppActivity=`insights_view_all_app_activity`,e.InsightsAppActivityTab=`insights_app_activity_tab`,e.InsightsViewAllEmployeeActivity=`insights_view_all_employee_activity`,e.InsightsEmployeeActivityTab=`insights_employee_activity_tab`,e.InsightsFilterPeriod=`insights_filter_period`,e.InsightsFilterType=`insights_filter_type`,e.IntegrationSearch=`integration_search`,e.IntegrationRequestIntegration=`integration_request_integration`,e.IntegrationModalTab=`integration_modal_tab`,e.IntegrationModalCertificates=`integration_modal_certificates`,e.IntegrationModalInviteAdmin=`integration_modal_invite_admin`,e.IntegrationConnect=`integration_connect`,e.IntegrationDisconnect=`integration_disconnect`,e.IntegrationConnectS2S=`integration_connect_s2s`,e.IntegrationSendRequestIntegration=`integration_send_request_integration`,e.SettingsProfile=`settings_profile`,e.SettingsProfileTeam=`settings_profile_team`,e.SettingsProfileSettings=`settings_profile_settings`,e.SettingsProfileSignOut=`settings_profile_sign_out`,e.SettingsTab=`settings_tab`,e.SettingsTeamInviteUser=`settings_team_invite_user`,e.SettingsTeamSendInviteUser=`settings_team_send_invite_user`,e.SettingsTeamInviteViaWorkspace=`settings_team_invite_via_workspace`,e.SettingsTeamSendInviteViaWorkspace=`settings_team_send_invite_via_workspace`,e.EmployeeButtonAddEmployee=`employee_button_add_employee`,e.EmployeeInviteUser=`employee_invite_user`,e.EmployeeAddFilter=`employee_add_filter`,e.EmployeeSetFilter=`employee_set_filter`,e.EmployeeTableSearch=`employee_table_search`,e.EmployeeTableChange=`employee_table_change`,e.EmployeeProfilePageChange=`employee_profile_page_change`,e.EmployeeTableSort=`employee_table_sort`,e.EmployeeAddedEmployee=`employee_added_employee`,e.EmployeeActionsArchive=`employee_actions_archive`,e.EmployeeActionsUnarchive=`employee_actions_unarchive`,e.EmployeeBulkChangeJobTitle=`employee_bulk_change_job_title`,e.EmployeeBulkChangeDepartments=`employee_bulk_change_departments`,e.EmployeeBulkChangeHrStatus=`employee_bulk_change_hr_status`,e.EmployeeBulkChangeAccountType=`employee_bulk_change_account_type`,e.EmployeeBulkChangeArchive=`employee_bulk_archive`,e.TableColumnManagement=`table_column_management`,e.ViewsOpen=`views_open`,e.ViewsSave=`views_save`,e.ViewsSaveAsNew=`views_save_as_new`,e.ViewsSaveChanges=`views_save_changes`,e.ViewsResetAll=`views_reset_all`,e.ApplicationsTableChange=`applications_table_change`,e.ApplicationsAddButton=`applications_add_button`,e.ApplicationsAddApplication=`applications_add_application`,e.ApplicationsUploadCsv=`applications_upload_csv`,e.ApplicationsUploadCsdApp=`applications_upload_csv_app`,e.ApplicationsUploadCsvTrans=`applications_upload_csv_trans`,e.ApplicationsTableSearch=`a
7pplications_table_search`,e.ApplicationsFilterType=`applications_filter_type`,e.ApplicationsAddFilter=`applications_add_filter`,e.ApplicationsSetFilter=`applications_set_filter`,e.ApplicationsTableSort=`applications_table_sort`,e.ApplicationsOpenArchivePage=`applications_open_archive_page`,e.ApplicationsActionsArchive=`applications_actions_archive`,e.ApplicationsActionsUnarchive=`applications_actions_unarchive`,e.ApplicationsBulkChangeOwner=`applications_bulk_change_owner`,e.ApplicationsBulkChangeDepartments=`applications_bulk_change_departments`,e.ApplicationsBulkChangeStatus=`applications_bulk_change_status`,e.ApplicationsBulkArchive=`applications_bulk_archive`,e.ApplicationTransactionsUploadCsv=`application_transactions_upload_csv`,e.ApplicationTransactionsConnectIntegration=`application_transactions_connect_integration`,e.ApplicationPricingPlansAdd=`application_pricing_plans_add`,e.ApplicationPricingPlansAdded=`application_pricing_plans_added`,e.ApplicationPricingPlansAddType=`application_pricing_plans_add_type`,e.ApplicationMembersBulkAssignPlan=`application_members_bulk_assign_plan`,e.ApplicationMembersAutoAssignPlan=`application_members_auto_assign_plan`,e.OnboardingStepViewed=`onboarding_step_viewed`,e.OnboardingTimeSpent=`onboarding_time_spent`,e.OnboardingStepAction=`onboarding_step_action`,e.PmAdminSetupCompleted=`pm_admin_setup_completed`,e.PmMasterPasswordUnlock=`pm_master_password_unlock`,e.PmRecordCreated=`pm_record_created`,e.PmRecordShared=`pm_record_shared`,e.PmTrialOfferViewed=`pm_trial_offer_viewed`,e.PmTrialStarted=`pm_trial_started`,e.PmTrialExpiredVaultViewed=`pm_trial_expired_vault_viewed`,e.PmContactSalesClicked=`pm_contact_sales_clicked`,e.PmQuickUnlockBannerSetupClicked=`pm_quick_unlock_banner_setup_clicked`,e.PmQuickUnlockBannerDismissed=`pm_quick_unlock_banner_dismissed`,e}({}),Aw=function(e){return e.FormCanceled=`form_canceled`,e.NextButtonClicked=`next_button_clicked`,e.BackButtonClicked=`back_button_clicked`,e.StepperClicked=`stepper_clicked`,e}({}),jw=function(e){return e.ModalBusinessBasedOpened=`modal_business_based_opened`,e.ModalReviewDocumentsOpened=`modal_review_documents_opened`,e.ModalCountryRegistrationOpened=`modal_country_registration_opened`,e.ModalOwnershipTypeOpened=`modal_ownership_type_opened`,e.ModalDocumentsChecklistCopied=`modal_documents_checklist_copied`,e.ModalCancelFormOpened=`modal_cancel_form_opened`,e.AgreementConfirmationChecked=`agreement_confirmation_checked`,e.AgreementReadChecked=`agreement_read_checked`,e.FullAgreementLinkClicked=`full_agreement_link_clicked`,e.ModalRestrictedCountriesOpened=`modal_restricted_countries_opened`,e.ModalPhotoTutorialOpened=`modal_photo_tutorial_opened`,e.ModalStatementDownloadOpened=`modal_statement_download_opened`,e.ViewDisclosuresClicked=`view_disclosures_clicked`,e.CountryWaitListClicked=`country_waitlist_clicked`,e.ResetCompanyClicked=`reset_company_clicked`,e.ShareholderAddClicked=`shareholder_add_clicked`,e.ShareholderEditClicked=`shareholder_edit_clicked`,e.ShareholderDeleteClicked=`shareholder_delete_clicked`,e.DirectorAddClicked=`director_add_clicked`,e.DirectorEditClicked=`director_edit_clicked`,e.DirectorDeleteClicked=`director_delete_clicked`,e.DirectorLinkClicked=`director_link_clicked`,e.CheckboxNoAdditionalDirectorsClicked=`checkbox_no_additional_directors_clicked`,e}({}),Mw=function(e){return e.GetStarted=`get_started`,e.Registration=`registration`,e.Structure=`structure`,e.Agreement=`agreement`,e.CompanyDetails=`company_details`,e.BusinessActivity=`business_activity`,e.ExpectedActivity=`expected_activity`,e.CompanyAddress=`company_address`,e.ShareholdersDetails=`shareholders_details`,e.DirectorsDetails=`directors_details`,e.AdditionalDocuments=`additional_documents`,e.Compliance=`compliance`,e}({}),Nw=(e,t,n)=>{let r=De();(0,I.useEffect)(()=>{e&&t&&n?(r.identify(e,{email:t}),r.group(`team`,n)):r.reset()},[r,e,t,n])},Pw=()=>{let{data:e}=nG(),t=De();return{track:(0,I.useCallback)((n,r,i)=>{if(e?.isAnalyticsActive)return t.capture(n,r,i)},[t,e?.isAnalyticsActive])}},Fw=e(je()),Iw=[`spendbase.co`,`partner-way.com`,`thegiraffe.io`],Lw=[`[email protected]`,`[email protected]`,`[email protected]`],Rw,zw=class{constructor(){this.initTrackers()}
7initTrackers(){R.IS_DEV||(R.GTM_ID&&Fw.default.initialize({gtmId:R.GTM_ID,dataLayerName:`dataLayer`}),R.OPEN_REPLAY_ID&&(Rw=new Oe({projectKey:R.OPEN_REPLAY_ID,revID:R?.VERSION,network:{sessionTokenHeader:`X-OpenReplay-SessionToken`,failuresOnly:!1,ignoreHeaders:!1,captureInIframes:!1,capturePayload:!0},__DISABLE_SECURE_MODE:R.IS_DEV})))}setUserInfo({email:e}){let[,t]=e.split(`@`);if(!Rw)return;let n=Lw.includes(e);Iw.includes(t)&&!n||(Rw.isActive()&&Rw?.stop(),Rw?.start({userID:e,forceNew:!0}))}closeAllSessions(){Rw?.stop()}sendOpenReplayEvent(e,t,n){Rw?.isActive()&&Rw.event(e,t,n)}sendEvent(e={}){Fw.default.dataLayer({dataLayer:e})}sendAuthorizedEvent(e){let t=tG();if(t){let{email:n}=t;this.sendEvent({event:e,userId:n})}}},Bw=t({PermissionAccess:()=>Vw,default:()=>Vw}),Vw=({permissions:e=[],fallback:t=null,children:n})=>Au(e)?n:t,Hw=({euStages:e=[],fallback:t=null,children:n})=>{let{isMoneyActive:r}=d_({euStages:e});return e.length===0||r?n:t},Uw=({children:e,fallback:t,strict:n=!1})=>{let{data:r,isLoading:i}=Od(),a=jd(),o=kd();return i||!r?null:(n?o:a)?e:t??(0,L.jsx)(Lr,{to:`/money`,replace:!0})},Ww=function(e){return e.Activated=`activated`,e.ActivatedHasFailedPayments=`activated_has_failed_payments`,e.Deactivated=`deactivated`,e}({}),Gw=`/cards-router/v1/autopay`,Kw=async()=>{let{data:e}=await $.requester.cardServiceInstance.get(`${Gw}/status`);return e},qw=async()=>{await $.requester.cardServiceInstance.put(`${Gw}/status/dismiss-banner`)},Jw=async e=>{await $.requester.cardServiceInstance.put(`${Gw}
7/settings/show-banner`,{showBanner:e})},Yw=async()=>{let{data:e}=await $.requester.cardServiceInstance.get(`${Gw}/settings`);return e},Xw=async e=>{let{data:t}=await $.requester.cardServiceInstance.put(`${Gw}/settings`,e);return t.settings},Zw={all:[`autopay`],status:()=>[...Zw.all,`status`],settings:()=>[...Zw.all,`settings`]},Qw=()=>N({queryKey:Zw.status(),queryFn:Kw}),$w=e=>F({...Qw(),...e,enabled:R.ENABLE_AUTOPAY_FEATURE&&(e?.enabled??!0)}),eT=()=>{let e=P();return M({mutationFn:qw,onSuccess:()=>{e.setQueryData(Zw.status(),e=>e&&{...e,showBanner:!1})}})},tT=()=>{let e=P();return M({mutationFn:Jw,onSuccess:(t,n)=>{e.setQueryData(Zw.status(),e=>e&&{...e,showBanner:n})}})},nT=()=>N({queryKey:Zw.settings(),queryFn:Yw}),rT=e=>F({...nT(),...e,enabled:R.ENABLE_AUTOPAY_FEATURE&&(e?.enabled??!0)}),iT=()=>{let e=P();return M({mutationFn:Xw,onSuccess:t=>{t?e.setQueryData(Zw.settings(),t):e.invalidateQueries({queryKey:Zw.settings()}),e.invalidateQueries({queryKey:Zw.status()}),e.invalidateQueries({queryKey:up.bank()})}})},aT=`modal`,oT=`balances`,sT=`money_pending_modal`,cT=`topUpCurrency`,lT=new Map([[Qs.EUR,{Icon:R.MULTICURRENCY_ELIGIBLE_TEAM_IDS?Sn(`EUR`):rt,title:z.t(`EUR balance`)}],[Qs.GBP,{Icon:R.MULTICURRENCY_ELIGIBLE_TEAM_IDS?Sn(`GBP`):Ye,title:z.t(`GBP balance`)}]]),uT={[ac.NotOnboarded]:H.NotOnboarded,[ac.AgreementSubmitted]:H.AgreementSubmitted,[ac.CompanyDetailsSubmitted]:H.CompanyDetailsSubmitted,[ac.CompanyAddressSubmitted]:H.CompanyAddressSubmitted,[ac.BeneficiaryPersonSubmitted]:H.BeneficiaryPersonSubmitted,[ac.AuthorizedPersonSubmitted]:H.AuthorizedPersonSubmitted,[ac.AdditionalDocumentsNeeded]:H.AdditionalDocumentsNeeded,[ac.DocumentsSubmitted]:H.DocumentsSubmitted,[ac.VerificationInProgress]:H.VerificationInProgress,[ac.Verified]:H.Verified,[ac.VerificationFailed]:H.VerificationFailed,[ac.Failed]:H.Failed,[ac.DocumentExpired]:H.DocumentExpired,[ac.DatabaseScreening]:H.DatabaseScreening,[ac.Blocked]:H.Blocked,[ac.AdminApproved]:H.AdminApproved,[ac.ProvisionInProgress]:H.ProvisionInProgress,[ac.ProvisionFailed]:H.ProvisionFailed,[ac.Onboarded]:H.Onboarded,[ac.RegistrationCountrySubmitted]:H.RegistrationCountrySubmitted,[ac.BusinessActivitySubmitted]:H.BusinessActivitySubmitted,[ac.ExpectedActivitySubmitted]:H.ExpectedActivitySubmitted},dT=`RECENT_CURRENCIES`,fT=[`USD`,`EUR`,`GBP`],pT=(e,t=`en`)=>{try{return new Intl.DisplayNames([t],{type:`currency`}).of(e)}catch{return e}},mT=(e,t)=>({value:e,label:e,searchableText:`${e} ${pT(e)}`.toLowerCase(),group:t}),hT=(e,t)=>{let n=t.toLowerCase();return e.filter(e=>e.searchableText.includes(n))},gT=async e=>{let{data:t}=await $.requester.instance.get(`/v2/currencies/rates/${e.to}`);return t},_T={all:[`currencies`],rates:e=>[..._T.all,`rates`,e]},vT=_T,yT=e=>N({queryKey:vT.rates(e),queryFn:()=>gT(e)}),bT=(e,t)=>F({...yT(e),...t}),xT=()=>{let e=(0,I.useCallback)(()=>{let e=localStorage.getItem(dT);return e?JSON.parse(e):[]},[]);return{getRecentCurrencies:e,saveRecentCurrency:(0,I.useCallback)(t=>{let n=[t,...e().filter(e=>e!==t)].slice(0,3);localStorage.setItem(dT,JSON.stringify(n))},[e])}},ST=({isOnboarding:e=!1,excludeCurrencies:t,allowedCurrencies:n})=>{let{t:r}=G(),{getRecentCurrencies:i}=xT(),{data:a}=bT({to:`usd`});return{options:(0,I.useMemo)(()=>{let o=n?.map(e=>e.toUpperCase()),s=a?.map(e=>e.baseCurrency?.toUpperCase()).filter(e=>!!e&&!t?.includes(e)&&(!o||o.includes(e))).map(e=>mT(e,r(`All currencies`)))??[],c=[],l=[],u=i(),d=[...new Set(u)].slice(0,3);return e||d.length===0?(c=fT.map(e=>mT(e,r(`Popular currencies`))).filter(e=>s.some(t=>t.value===e.value)),l=s.filter(e=>!fT.includes(e.value)).map(e=>({...e,group:r(`All currencies`)}))):(c=d.map(e=>mT(e,r(`Your recent currencies`))).filter(e=>s.some(t=>t.value===e.value)),l=s.filter(e=>!d.includes(e.value)).map(e=>({...e,group:r(`All currencies`)}))),[...c,...l]},[a,e,t,n,r,i]),loading:!a}},CT=({name:e,control:t,value:n,onChange:r,label:i,required:a,containerProps:o,isOnboarding:s,allowedCurrencies:c})=>{let{t:l}=G(),{anchorEl:u,open:d,onOpen:f,onClose:p}=Ot(),{saveRecentCurrency:m}=xT(),{options:h,loading:g}=ST({isOnboarding:s,allowedCurrencies:c}),_=t?Zr({name:e||``,control:t,rules:{required:a},defaultValue:n||``}):null,v=_?.field.value||n||``,y=_?.field.onChange||r,b=h.find(e=>e.value===v?.toUpperCase())||null,x=b?Sn(b.value):null;return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Fe,{type:`button`,name:e,control:t,value:b?b.label:``,label:i??l(`Primary currency`),placeholder:l(`Select currency`),required:a,onMouseDown:e=>{e.preventDefault();let t=e.currentTarget.querySelector(`input`);t&&(t.click(),t.focus()),f(e)},onKeyDown:e=>{(e.key===`Enter`||e.key===`ArrowDown`||e.key===`ArrowUp`)&&(e.preventDefault(),f({currentTarget:e.currentTarget,target:e.target}))},InputProps:{startAdornment:x?(0,L.jsx)(x,{}):null,endAdornment:(0,L.jsx)(He,{sx:{color:`neutral400`,transform:`rotate(-${d?180:0}deg)`}}),sx:e=>({[`& .${ir.input}`]:{cursor:`pointer`,textAlign:`left`,px:e.spacing(1)+` !important`},cursor:`pointer`})},...o}),(0,L.jsx)(Je,{value:null,open:d,onClose:p,anchorEl:u,options:h,groupBy:e=>e.group,filterOptions:(e,{inputValue:t})=>hT(e,t),onChange:(e,t)=>
7{y?.(t?.value||``),t&&!s&&m(t.value)},textFieldProps:{placeholder:l(`Search for a currency / country`)},renderOption:(e,t,{selected:n})=>{let r=t.value?.toUpperCase()||``,i=Sn(r);return(0,I.createElement)(gr,{...e,key:t.value,selected:n},(0,L.jsx)(tt,{startIcon:i&&(0,L.jsx)(i,{}),label:r,secondaryLabel:pT(r)}))},getOptionLabel:e=>e?.label||``,loading:g,popoverProps:{sx:{[`& .${er.root}`]:{gap:.5,display:`flex`,flexDirection:`column`}}}})]})},wT=({children:e})=>(0,L.jsxs)(T,{direction:`row`,gap:.75,alignItems:`flex-start`,children:[(0,L.jsx)(Zt,{size:20,sx:{flexShrink:0,mt:`2px`}}),e]}),TT=({open:e,onClose:t})=>{let{t:n}=G();return(0,L.jsx)(kt,{open:e,onClose:t,title:n(`How Auto-Pay uses this currency`),size:`small`,cancelTitle:n(`Close`),noCancelButton:!1,noSubmitButton:!0,cancelProps:{sx:e=>({backgroundColor:e.extendPalette.blue25,color:e.extendPalette.blue500})},children:(0,L.jsxs)(T,{gap:1.5,children:[(0,L.jsx)(K,{variant:`bodyM`,color:`neutral500`,children:`The selected currency is used to match your invoice payments with the correct payment account.`}),(0,L.jsxs)(T,{gap:1,children:[(0,L.jsx)(wT,{children:(0,L.jsx)(K,{variant:`bodyM`,color:`neutral500`,children:`Spendbase invoices are issued based on your contract.`})}),(0,L.jsx)(wT,{children:(0,L.jsx)(K,{variant:`bodyM`,color:`neutral500`,children:`The selected currency should match the one agreed in your contract.`})}),(0,L.jsx)(wT,{children:(0,L.jsx)(K,{variant:`bodyM`,color:`neutral500`,children:`The account used for Auto-Pay should use the same currency.`})}),(0,L.jsx)(wT,{children:(0,L.jsx)(K,{variant:`bodyM`,color:`neutral500`,children:`If you already have an account in this currency, we will use it.`})}),(0,L.jsx)(wT,{children:(0,L.jsx)(K,{variant:`bodyM`,color:`neutral500`,children:`If you do not have one yet, we will open it for you.`})})]})]})})},ET=({open:e,onClose:t,currency:n,onCurrencyChange:r,onActivate:i,isActivating:a})=>{let{t:o}=G(),[s,c]=(0,I.useState)(!1);iv(e,t);let l=$_(),{data:u}=fp({enabled:e}),{data:d}=Dp({enabled:e&&l}),f=(0,I.useMemo)(()=>{if(!u||l&&!d)return[];let e=u.filter(e=>e.state!==q.Closed).map(e=>e.currencyISOCode),t=l?(d??[]).map(e=>e.currencyISOCode):Qf;return Array.from(new Set([...e,...t]))},[u,d,l]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(It,{open:e,onClose:t,children:(0,L.jsxs)(O,{sx:{position:`fixed`,inset:0,bgcolor:`neutral0`,display:`flex`,flexDirection:`column`,overflow:`auto`,outline:`none`},children:[(0,L.jsx)(T,{direction:`row`,alignItems:`center`,justifyContent:`flex-end`,sx:e=>({height:72,flexShrink:0,px:3,borderBottom:`1px solid ${e.extendPalette.neutral100}`}),children:(0,L.jsx)(dn,{onClick:t,sx:e=>({width:36,height:36,backgroundColor:e.extendPalette.neutral50,borderRadius:e.extendStyles.radiusM}),children:(0,L.jsx)(rn,{})})}),(0,L.jsx)(O,{sx:{flex:1,display:`flex`,justifyContent:`center`,pt:6,pb:4,px:3},children:(0,L.jsxs)(T,{gap:3,sx:{width:480},children:[(0,L.jsx)(O,{sx:e=>({width:56,height:56,border:`1px solid ${e.extendPalette.neutral200}`,borderRadius:e.extendStyles.radiusM,display:`flex`,alignItems:`center`,justifyContent:`center`,flexShrink:0}),children:(0,L.jsx)(jt,{size:32,sx:e=>({color:e.extendPalette.blue500})})}),(0,L.jsxs)(T,{gap:.5,children:[(0,L.jsx)(K,{variant:`headlineM`,color:`neutral500`,children:`Automate invoice payments`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`Auto-Pay lets you pay Spendbase discount invoices automatically from the selected account.`})]}),(0,L.jsx)(E,{sx:e=>({borderColor:e.extendPalette.neutral100})}),(0,L.jsxs)(T,{gap:2.5,children:[(0,L.jsx)(K,{variant:`titleM`,color:`neutral500`,children:`What you'll need`}),(0,L.jsxs)(T,{gap:3.5,children:[(0,L.jsxs)(T,{direction:`row`,gap:1.5,alignItems:`flex-start`,children:[(0,L.jsx)(St,{size:20,sx:{flexShrink:0,mt:`2px`}}),(0,L.jsxs)(T,{gap:1.5,children:[(0,L.jsxs)(T,{gap:.5,children:[(0,L.jsx)(K,{variant:`labelM`,color:`neutral500`,children:`Connect payment account`}),(0,L.jsxs)(O,{children:[(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`It should match the currency agreed in your contract.`}),(0,L.jsx)(K,{variant:`labelM`,color:`blue500`,sx:{cursor:`pointer`,"&:hover":{textDecoration:`underline`}},onClick:()=>c(!0),children:`More about this`})]})]}),(0,L.jsx)(CT,{value:n,onChange:r,allowedCurrencies:f,containerProps:{sx:{width:240,"& .MuiOutlinedInput-root, & .MuiInputBase-root":{height:40}}},label:``})]})]}),(0,L.jsxs)(T,{direction:`row`,gap:1.5,alignItems:`flex-start`,children:[(0,L.jsx)(ht,{size:20,sx:{flexShrink:0,mt:`2px`}}),(0,L.jsxs)(T,{gap:.5,children:[(0,L.jsx)(K,{variant:`labelM`,color:`neutral500`,children:`Track invoices in Payments`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`Each new invoice will be paid once issued.`})]})]}),(0,L.jsxs)(T,{direction:`row`,gap:1.5,alignItems:`flex-start`,children:[(0,L.jsx)(Be,{size:20,sx:{flexShrink:0,mt:`2px`}}),(0,L.jsxs)(T,{gap:.5,children:[(0,L.jsx)(K,{variant:`labelM`,color:`neutral500`,children:`See payments in Activity`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`Use these transactions for tracking and reporting.`})]})]})]})]}),(0,L.jsx)(A,{variant:`primary`,size:`large`,onClick:i,loading:a,sx:{alignSelf:`flex-start`},children:o(`Turn On Auto-Pay`)})]})})]})}),(0,L.jsx)(TT,{open:s,onClose:()=>c(!1)})]})},DT=({open:e,onClose:t})=>{let{t:n}=G();return(0,L.jsx)(It,{open:e,onClose:t,children:(0,L.jsxs)(O,{sx:{position:`fixed`,inset:0,bgcolor:`neutral0`,display:`flex`,flexDirection:`column`,overflow:`auto`,outline:`none`},children:[(0,L.jsx)(T,{direction:`row`,alignItems:`center`,justifyContent:`flex-end`,sx:e=>({height:72,flexShrink:0,px:3,borderBottom:`1px solid ${e.extendPalette.neutral100}`}),children:(0,L.jsx)(dn,{onClick:t,sx:e=>({width:36,height:36,backgroundColor:e.extendPalette.neutral50,borderRadius:e.extendStyles.radiusM}),children:(0,L.jsx)(rn,{})})}),(0,L.jsx)(O,{sx:{flex:1,display:`flex`,justifyContent:`center`,pt:6,pb:4,px:3},children:(0,L.jsxs)(T,{gap:3,sx:{width:480},children:[(0,L.jsx)(O,{sx:e=>({width:56,height:56,border:`1px solid ${e.extendPalette.neutral200}`,borderRadius:e.extendStyles.radiusM,display:`flex`,alignItems:`center`,justifyContent:`center`,flexShrink:0}),children:(0,L.jsx)(jt,{size:32,sx:e=>({color:e.extendPalette.blue500})})}),(0,L.jsxs)(T,{gap:1.5,children:[(0,L.jsxs)(T,{gap:.5,children:[(0,L.jsx)(K,{variant:`headlineM`,color:`neutral500`,children:`Automate invoice payments`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`Auto-Pay lets you pay Spendbase discount invoices automatically from the selected account.`})]}),(0,L.jsx)(vn,{severity:`info`,message:n(`To use Auto-Pay, the company needs an active payment account.`)})]}),(0,L.jsx)(E,{sx:e=>({borderColor:e.extendPalette.neutral100})}),(0,L.jsxs)(T,{gap:2,alignItems:`flex-start`,children:[(0,L.jsxs)(T,{gap:.5,children:[(0,L.jsx)(K,{variant:`titleM`,color:`neutral500`,children:`Payment account setup in progress`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`Your company is currently completing payment account setup. Once it's ready, you'll be able to return and turn on Auto-Pay.`})]}),(0,L.jsx)(A,{variant:`secondary`,onClick:t,children:n(`Close`)})]})]})})]})})},OT=({open:e,onClose:t,onOpenPaymentAccount:n,isOpening:r})=>{let{t:i}=G();return iv(e,t),(0,L.jsx)(It,{open:e,onClose:t,children:(0,L.jsxs)(O,{sx:{position:`fixed`,inset:0,bgcolor:`neutral0`,display:`flex`,flexDirection:`column`,overflow:`auto`,outline:`none`},children:[(0,L.jsx)(T,{direction:`row`,alignItems:`center`,justifyContent:`flex-end`,sx:e=>({height:72,flexShrink:0,px:3,borderBottom:`1px solid ${e.extendPalette.neutral100}`}),children:(0,L.jsx)(dn,{onClick:t,sx:e=>({width:36,height:36,backgroundColor:e.extendPalette.neutral50,borderRadius:e.extendStyles.radiusM}),children:(0,L.jsx)(rn,{})})}),(0,L.jsx)(O,{sx:{flex:1,display:`flex`,justifyContent:`center`,pt:6,pb:4,px:3},children:(0,L.jsxs)(T,{gap:3,sx:{width:480},children:[(0,L.jsx)(O,{sx:e=>({width:56,height:56,border:`1px solid ${e.extendPalette.neutral200}`,borderRadius:e.extendStyles.radiusM,display:`flex`,alignItems:`center`,justifyContent:`center`,flexShrink:0}),children:(0,L.jsx)(jt,{size:32,sx:e=>({color:e.extendPalette.blue500})})}),(0,L.jsxs)(T,{gap:1.5,children:[(0,L.jsxs)(T,{gap:.5,children:[(0,L.jsx)(K,{variant:`headlineM`,color:`neutral500`,children:`Automate invoice payments`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`Auto-Pay lets you pay Spendbase discount invoices automatically from the selected account.`})]}),(0,L.jsx)(vn,{severity:`info`,message:i(`To use Auto-Pay, the company needs an active payment account.`)})]}),(0,L.jsx)(E,{sx:e=>({borderColor:e.extendPalette.neutral100})}),(0,L.jsxs)(T,{gap:2.5,children:[(0,L.jsx)(K,{variant:`titleM`,color:`neutral500`,children:`What you'll need`}),(0,L.jsxs)(T,{gap:3.5,children:[(0,L.jsxs)(T,{direction:`row`,gap:1.5,alignItems:`flex-start`,children:[(0,L.jsx)(Ft,{size:20,sx:{flexShrink:0,mt:`2px`}}),(0,L.jsxs)(T,{gap:.5,children:[(0,L.jsx)(K,{variant:`labelM`,color:`neutral500`,children:`Open payment account`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`Complete company verification and submit documents.`})]})]}),(0,L.jsxs)(T,{direction:`row`,gap:1.5,alignItems:`flex-start`,children:[(0,L.jsx)(St,{size:20,sx:{flexShrink:0,mt:`2px`}}),(0,L.jsxs)(T,{gap:.5,children:[(0,L.jsx)(K,{variant:`labelM`,color:`neutral500`,children:`Turn on Auto-Pay`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`Choose the currency and complete Auto-Pay setup.`})]})]}),(0,L.jsxs)(T,{direction:`row`,gap:1.5,alignItems:`flex-start`,children:[(0,L.jsx)(ht,{size:20,sx:{flexShrink:0,mt:`2px`}}),(0,L.jsxs)(T,{gap:.5,children:[(0,L.jsx)(K,{variant:`labelM`,color:`neutral500`,children:`Track invoices in Payments`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`Spendbase invoices will appear there automatically.`})]})]})]})]}),(0,L.jsx)(A,{variant:`primary`,size:`large`,onClick:n,loading:r,sx:{alignSelf:`flex-start`},children:i(`Open Payment Account`)})]})})]})})},kT=({open:e,onClose:t})=>{let{t:n}=G();return(0,L.jsx)(It,{open:e,onClose:t,children:(0,L.jsxs)(O,{sx:{position:`fixed`,inset:0,bgcolor:`neutral0`,display:`flex`,flexDirection:`column`,overflow:`auto`,outline:`none`},children:[(0,L.jsx)(T,{direction:`row`,alignItems:`center`,justifyContent:`flex-end`,sx:e=>({height:72,flexShrink:0,px:3,borderBottom:`1px solid ${e.extendPalette.neutral100}`}),children:(0,L.jsx)(dn,{onClick:t,sx:e=>({width:36,height:36,backgroundColor:e.extendPalette.neutral50,borderRadius:e.extendStyles.radiusM}),children:(0,L.jsx)(rn,{})})}),(0,L.jsx)(O,{sx:{flex:1,display:`flex`,justifyContent:`center`,pt:6,pb:4,px:3},children:(0,L.jsxs)(T,{gap:3,sx:{width:480},children:[(0,L.jsx)(O,{sx:e=>({width:56,height:56,border:`1px solid ${e.extendPalette.neutral200}`,borderRadius:e.extendStyles.radiusM,display:`flex`,alignItems:`center`,justifyContent:`center`,flexShrink:0}),children:(0,L.jsx)(jt,{size:32,sx:e=>({color:e.extendPalette.blue500})})}),(0,L.jsxs)(T,{gap:1.5,children:[(0,L.jsxs)(T,{gap:.5,children:[(0,L.jsx)(K,{variant:`headlineM`,color:`neutral500`,children:`Automate invoice payments`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`Auto-Pay lets you pay Spendbase discount invoices automatically from the selected account.`})]}),(0,L.jsx)(vn,{severity:`info`,message:n(`Auto-Pay is unavailable while accounts are restricted.`)})]}),(0,L.jsx)(E,{sx:e=>({borderColor:e.extendPalette.neutral100})}),(0,L.jsxs)(T,{gap:2,alignItems:`flex-start`,children:[(0,L.jsxs)(T,{gap:.5,children:[(0,L.jsx)(K,{variant:`titleM`,color:`neutral500`,children:`What this means`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`While your payment accounts are restricted, you can't make new payments or open new payment accounts. Because of this, Auto-Pay can't be turned on.`})]}),(0,L.jsx)(A,{variant:`secondary`,onClick:t,children:n(`Close`)})]})]})})]})})},AT=({sx:e,invoiceNumber:t=`INV-327832`,amount:n=5e3,currency:r=`EUR`})=>(0,L.jsxs)(T,{sx:[e=>({position:`relative`,justifyContent:`space-between`,top:16,width:251,backgroundColor:e.extendPalette.neutral0,borderRadius:`8.95px 8.95px 0 0`,boxShadow:`0px 5.967px 5.967px rgba(32, 32, 34, 0.08)`,gap:1}),...Array.isArray(e)?e:[e]],children:[(0,L.jsxs)(T,{direction:`row`,justifyContent:`space-between`,alignItems:`flex-start`,children:[(0,L.jsxs)(O,{children:[(0,L.jsx)(K,{sx:{fontSize:`17.9px`,fontWeight:600,lineHeight:1.2},color:`neutral500`,children:`Invoice`}),(0,L.jsx)(k,{sx:{fontSize:`8px`,fontWeight:500},color:`neutral400`,children:t})]}),(0,L.jsx)(O,{sx:e=>({width:28,height:28,backgroundColor:e.extendPalette.blue50,borderRadius:e.extendStyles.radiusS,flexShrink:0,display:`flex`,alignItems:`center`,justifyContent:`center`}),children:(0,L.jsx)(jt,{size:16,sx:e=>({color:e.extendPalette.blue500})})})]}),(0,L.jsxs)(O,{children:[(0,L.jsx)(K,{sx:{fontSize:`10.4px`,fontWeight:500},color:`neutral500`,children:`Total amount`}),(0,L.jsx)(k,{sx:{fontSize:`17.9px`,fontWeight:600}
7,color:`neutral500`,children:`${n.toLocaleString(`en-US`)} ${r}`})]})]}),jT=[{id:`INV-327832`,date:`Dec 20, 2024`,amount:`4,300`},{id:`INV-749812`,date:`Jan 14, 2025`,amount:`3,200`},{id:`INV-092712`,date:`Feb 02, 2026`,amount:`2,000`}],MT=({open:e,onClose:t,onTopUp:n,currency:r=`EUR`,entryPoint:i=`discounts`})=>{let{t:a}=G();return(0,L.jsx)(kt,{open:e,onClose:t,noActions:!0,withoutDivider:!0,disableClose:!0,size:`compact`,titleContainerProps:{sx:{display:`none`}},children:(0,L.jsxs)(T,{gap:4,children:[(0,L.jsx)(O,{height:165,display:`flex`,justifyContent:`center`,bgcolor:`green`,overflow:`hidden`,children:(0,L.jsxs)(T,{alignSelf:`center`,sx:e=>({mt:`auto`,width:336,height:141,overflow:`hidden`,borderRadius:`${e.extendStyles.radiusM} ${e.extendStyles.radiusM} 0 0`,borderBottom:`1px solid ${e.extendPalette.neutral0}`,backgroundColor:e.extendPalette.neutral0,boxShadow:`0 8px 16px 0 rgba(32, 32, 34, 0.08)`,gap:`22px`,pt:3,px:3,pb:0}),children:[(0,L.jsxs)(T,{direction:`row`,justifyContent:`space-between`,alignItems:`center`,children:[(0,L.jsx)(K,{variant:`headlineM`,color:`neutral500`,children:`Payments`}),(0,L.jsxs)(T,{direction:`row`,alignItems:`center`,sx:e=>({borderRadius:`4.222px`,border:`0.528px solid ${e.extendPalette.neutral100}`,padding:`4.222px 6.333px`}),children:[(0,L.jsx)(Zt,{size:15.5,sx:e=>({color:e.extendPalette.green500})}),(0,L.jsx)(K,{variant:`labelXS`,color:`neutral500`,children:`Auto-pay enabled`})]})]}),(0,L.jsx)(T,{gap:.5,children:jT.map(e=>(0,L.jsxs)(T,{direction:`row`,alignItems:`center`,minHeight:28,py:.75,px:1,bgcolor:`neutral50`,borderRadius:1,gap:.5,children:[(0,L.jsx)(k,{variant:`labelS`,color:`neutral400`,sx:{width:100},children:e.id}),(0,L.jsx)(k,{variant:`bodyS`,color:`neutral500`,sx:{width:100},children:e.date}),(0,L.jsx)(k,{variant:`titleS`,color:`neutral500`,textAlign:`right`,sx:{width:64},children:e.amount})]},e.id))})]})}),(0,L.jsxs)(T,{gap:2.5,children:[(0,L.jsx)(K,{variant:`headlineS`,color:`neutral500`,textAlign:`center`,children:`Auto-Pay is on`}),(0,L.jsxs)(T,{gap:2,children:[(0,L.jsxs)(K,{variant:`bodyM`,color:`neutral500`,values:{currency:r},children:[`Top up your `,(0,L.jsx)(`b`,{children:`{{currency}} balance`}),` to make sure automatic payments can go through successfully.`]}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral500`,children:`Your next Spendbase invoice will be paid automatically. Successful payments will appear in Activity.`})]})]}),(0,L.jsx)(T,{direction:`row`,justifyContent:`center`,gap:2,mt:4,children:i===`money`?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(A,{variant:`secondary`,onClick:t,children:a(`Close`)}),(0,L.jsx)(A,{variant:`primary`,onClick:n,children:a(`Top up account`)})]}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(A,{variant:`secondary`,onClick:t,children:a(`Back to Discounts`)}),(0,L.jsx)(A,{variant:`primary`,onClick:n,children:a(`Top up account`)})]})})]})})},NT=`EUR`,PT=()=>{let{data:e}=$w(),[t,n]=(0,I.useState)(null);return{currency:t??e?.suggestedBalanceCurrencyISOCode??NT,setCurrency:n}},FT=()=>{let[e,t]=(0,I.useState)(!1),[n,r]=(0,I.useState)(!1),[i,a]=(0,I.useState)(!1),{currency:o,setCurrency:s}=PT(),{mutateAsync:c,isPending:l}=iT();return{activationOpen:e,successOpen:n,isActivated:i,openActivation:()=>t(!0),closeActivation:()=>t(!1),closeSuccess:()=>r(!1),currency:o,setCurrency:s,activate:async()=>{try{await c({activated:!0,paymentMethod:{defaultBalance:{currencyISOCode:o}}}),t(!1),r(!0),a(!0)}catch{b({message:z.t(`We couldn't enable Auto-Pay. Please try again.`),variant:`attention`,maxWidth:`fit-content`})}},isActivating:l}},IT=({children:e,sx:t})=>(0,L.jsx)(O,{sx:ct(e=>({border:`1px solid ${e.extendPalette.neutral200}`,backgroundColor:`neutral50`,borderRadius:e.extendStyles.radiusM}),t),children:e}),LT=()=>{let{data:e}=nG(),{data:t}=$w({enabled:R.ENABLE_AUTOPAY_FEATURE});if(!R.ENABLE_AUTOPAY_FEATURE||!e||!t?.eligible)return!1;let n=e.role===Xs.ADMIN||e.role===Xs.ADMIN_SAAS,r=e.permissions.includes(V.CARDS_ALL_ACCESS)||e.permissions.includes(V.CARDS_MY_ONLY),i=e.permissions.includes(V.ALL_DISCOUNT_SERVICE);return n&&r&&i},RT=[`NOT_ONBOARDED`,`ONBOARDED`,`VERIFIED`,`FAILED`,`BLOCKED`,`PROVISION_FAILED`],zT=()=>{let e=Ar(),t=P(),n=LT(),r=t.getQueryData(Ed.init()),{data:i,isLoading:a}=fp({enabled:n}),o=FT(),{mutate:s}=tT(),[c,l]=(0,I.useState)(!1),[u,d]=(0,I.useState)(!1),[f,p]=(0,I.useState)(!1),m=()=>l(!0),h=()=>l(!1),g=()=>d(!0),_=()=>d(!1),v=()=>p(!0),y=()=>p(!1),x=r?.region===_h.EU?r?.euStage:r?.stage,S=x!==void 0&&!RT.includes(x);return{handleCta:()=>{try{let e=i?.[0];if(e?.state===q.Pending||S){g();return}if(!e||e.state===q.Inactive||e.state===q.Closed){m();return}if(e.state===q.Active){o.openActivation();return}if(e.state===q.Locked||e.state===q.Suspended){v();return}}catch{b({message:z.t(`We couldn't open the Auto-Pay setup. Please try again.`),variant:`attention`})}},isLoading:a,introOpen:c,closeIntro:h,handleOpenPaymentAccount:()=>{try{s(!0),h(),e(Ho)}catch{b({message:z.t(`We couldn't open the payment account flow. Please try again.`),variant:`attention`})}},inProgressOpen:u,closeInProgress:_,restrictedOpen:f,closeRestricted:y,...o}},BT=({showCard:e=!0})=>{let{handleCta:t,isLoading:n,introOpen:r,closeIntro:i,handleOpenPaymentAccount:a,inProgressOpen:o,closeInProgress:s,restrictedOpen:c,closeRestricted:l,activationOpen:u,closeActivation:d,successOpen:f,closeSuccess:p,currency:m,setCurrency:h,activate:g,isActivating:_}=zT(),{t:v}=G(),y=Ar();return(0,L.jsxs)(L.Fragment,{children:[e&&(0,L.jsxs)(IT,{sx:e=>({flex:1,position:`relative`,overflow:`hidden`,backgroundColor:e.extendPalette.blue25,border:`1px solid ${e.extendPalette.blue100}`,display:`flex`,justifyContent:`space-between`,px:2,pt:0,pb:1.5,gap:2,minHeight:152}),children:[(0,L.jsxs)(T,{gap:3,pt:2,children:[(0,L.jsxs)(T,{spacing:.5,sx:{maxWidth:339},children:[(0,L.jsx)(K,{variant:`titleL`,color:`neutral500`,children:`Automate invoice payments`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral500`,children:`Pay eligible Spendbase discount invoices automatically and manage them in Money.`})]}),(0,L.jsx)(A,{variant:`primary`,onClick:t,loading:n,sx:{height:32,minHeight:32,py:1.5,width:`max-content`},children:v(`Turn On Auto-Pay`)})]}),(0,L.jsx)(AT,{sx:e=>({padding:e.spacing(2.25,2.25,1.5),justifyContent:`space-between`})})]}),(0,L.jsx)(DT,{open:o,onClose:s}),(0,L.jsx)(kT,{open:c,onClose:l}),(0,L.jsx)(OT,{open:r,onClose:i,onOpenPaymentAccount:a}),(0,L.jsx)(ET,{open:u,onClose:d,currency:m,onCurrencyChange:h,onActivate:g,isActivating:_}),(0,L.jsx)(MT,{open:f,onClose:p,onTopUp:()=>{y(m?`${Wo}?${cT}=${m}`:`${Wo}?tab=accounts`),p()},currency:m})]})},VT=(0,I.memo)(({title:e,onCancel:t,onConfirm:n,icon:r,withoutIcon:i,iconColor:a=`red500`,submitVariant:o=`destructive`,...s})=>{let{t:c}=G();return(0,L.jsx)(kt,{title:(0,L.jsxs)(T,{direction:`row`,gap:1,children:[!i&&(r||(0,L.jsx)($t,{sx:{color:a,marginTop:`3px`}})),e]}),cancelTitle:c(`No, Go Back`),submitTitle:c(`Yes, Delete`),submitProps:{variant:o},onClose:t,onSubmit:n,...s})});li.workerSrc=new URL(`/assets/pdf.worker.min--PgD6g2g.mjs`,``+import.meta.url).toString();var HT=[`png`,`jpg`,`jpeg`,`webp`,`gif`,`bmp`,`svg`,`heic`,`heif`],UT=e=>{let t=e.split(/[?#]/)[0],n=t.lastIndexOf(`.`);return n===-1?``:t.slice(n+1).toLowerCase()},WT=({source:e,fileName:t,contentType:n,pageWidth:r=480})=>{let{t:i}=G(),[a,o]=(0,I.useState)(1),[s,c]=(0,I.useState)(1),[l,u]=(0,I.useState)(1),[d,f]=(0,I.useState)(!1),[p,m]=(0,I.useState)(!1),h=(0,I.useMemo)(()=>UT(t)||(typeof e==`string`?UT(e):``),[t,e]),g=n?n.startsWith(`image/`):HT.includes(h),_=n?n===`application/pdf`:h===`pdf`,[v,y]=(0,I.useState)(``);(0,I.useEffect)(()=>
7{if(!g){y(``);return}if(typeof e==`string`){y(e);return}let t=URL.createObjectURL(e);return y(t),()=>URL.revokeObjectURL(t)},[g,e]),(0,I.useEffect)(()=>{c(1),u(1),f(!1)},[e]);let x=g&&!d,S=e=>{o(e.numPages),c(1)},ee=async()=>{if(e instanceof Blob){Ga(e,t);return}m(!0);try{await Ka(e,t)}catch{b({message:i(`Something went wrong`),variant:`attention`})}finally{m(!1)}},te=()=>x?v?(0,L.jsx)(O,{display:`flex`,width:`100%`,children:(0,L.jsx)(O,{component:`img`,src:v,alt:t,onError:()=>f(!0),sx:{margin:`auto`,maxWidth:`${100*l}%`,maxHeight:`${100*l}%`,objectFit:`contain`,transition:`all 0.2s`}})}):(0,L.jsx)(yn,{sx:{margin:`auto`}}):_?(0,L.jsx)(ci,{file:e,onLoadSuccess:S,loading:(0,L.jsx)(yn,{sx:{margin:`auto`}}),error:(0,L.jsxs)(T,{gap:2.5,margin:`auto`,justifyContent:`center`,alignItems:`center`,children:[(0,L.jsx)(pn,{sx:{color:`neutral400`,width:48,height:48}}),(0,L.jsx)(K,{variant:`labelM`,color:`neutral400`,children:`Error loading preview, please reload page`})]}),children:(0,L.jsx)(ui,{width:r,pageNumber:s,scale:l,renderAnnotationLayer:!1,renderTextLayer:!1})}):(0,L.jsxs)(T,{gap:2.5,margin:`auto`,justifyContent:`center`,alignItems:`center`,children:[(0,L.jsx)(pn,{sx:{color:`neutral400`,width:48,height:48}}),(0,L.jsx)(K,{variant:`labelM`,color:`neutral400`,children:`Preview is not available for this file. Please download it to view.`})]}),C=x||_;return(0,L.jsxs)(T,{position:`relative`,width:`100%`,height:`100%`,alignItems:`center`,children:[(0,L.jsx)(O,{display:`flex`,width:`100%`,height:`100%`,overflow:`auto`,justifyContent:`center`,alignItems:`center`,sx:{"> .react-pdf__Document":{margin:`auto`}},children:te()}),(0,L.jsxs)(T,{direction:`row`,position:`absolute`,bottom:24,left:`50%`,p:1,alignItems:`center`,justifyContent:`center`,borderRadius:2,boxShadow:`0 8px 16px 0 rgba(32, 32, 34, 0.08)`,bgcolor:`neutral0`,sx:{transform:`translateX(-50%)`},children:[(0,L.jsx)(at,{title:i(`Download file`),children:(0,L.jsx)(`div`,{children:(0,L.jsx)(dn,{onClick:ee,disabled:p,children:p?(0,L.jsx)(yn,{size:`small`}):(0,L.jsx)(Jt,{})})})}),C&&(0,L.jsxs)(L.Fragment,{children:[_&&a>1&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(E,{flexItem:!0,orientation:`vertical`,sx:{mx:2}}),(0,L.jsxs)(T,{direction:`row`,alignItems:`center`,flexWrap:`nowrap`,children:[(0,L.jsx)(at,{title:i(`Prev page`),children:(0,L.jsx)(`div`,{children:(0,L.jsx)(dn,{onClick:()=>c(e=>Math.max(e-1,1)),disabled:s<=1,children:(0,L.jsx)(_t,{})})})}),(0,L.jsx)(k,{variant:`labelM`,color:`neutral500`,px:1.5,noWrap:!0,children:i(`{{page}} of {{numPages}}`,{numPages:a,page:s})}),(0,L.jsx)(at,{title:i(`Next page`),children:(0,L.jsx)(`div`,{children:(0,L.jsx)(dn,{onClick:()=>c(e=>Math.min(e+1,a)),disabled:s>=a,children:(0,L.jsx)(dt,{})})})})]})]}),(0,L.jsx)(E,{flexItem:!0,orientation:`vertical`,sx:{mx:2}}),(0,L.jsx)(at,{title:i(`Zoom out`),children:(0,L.jsx)(`div`,{children:(0,L.jsx)(dn,{onClick:()=>u(e=>Math.max(e-.25,.5)),children:(0,L.jsx)(fn,{})})})}),(0,L.jsx)(at,{title:i(`Zoom in`),children:(0,L.jsx)(`div`,{children:(0,L.jsx)(dn,{onClick:()=>u(e=>Math.min(e+.25,5)),children:(0,L.jsx)(tn,{})})})}),(0,L.jsx)(at,{title:i(`Reset to 100%`),children:(0,L.jsx)(`div`,{children:(0,L.jsx)(dn,{onClick:()=>u(1),children:(0,L.jsx)(Mt,{})})})})]})]})]})},GT=({open:e,onClose:t,source:n,fileName:r,contentType:i})=>{let{t:a}=G();return(0,L.jsx)(kt,{open:e,onClose:t,size:`xlarge`,title:r,titleProps:{ellipsis:!0},noSubmitButton:!0,cancelTitle:a(`Close`),children:(0,L.jsx)(O,{height:640,width:`100%`,bgcolor:`neutral50`,children:(0,L.jsx)(WT,{source:n,fileName:r,contentType:i,pageWidth:720})})})},Z=(e,t=!0)=>n=>(0,L.jsx)(I.Suspense,{fallback:t?(0,L.jsx)(Pe,{}):null,children:(0,L.jsx)(e,{...n})}),KT=e=>I.createElement(`svg`,{fill:`none`,height:40,viewBox:`0 0 40 40`,width:40,xmlns:`http://www.w3.org/2000/svg`,...e},I.createElement(`g`,{fill:`#7e8493`},I.createElement(`path`,{d:`m20.0005 11.25c-1.1766 0-2.3421.2254-3.4301.6638-1.0877.4383-2.0773 1.0812-2.9115 1.893l-1.8777 1.8194v-2.5633c0-.4313-.3496-.781-.781-.781-.4313 0-.781.3497-.781.781v4.3641c0 .4313.3497.781.781.781h4.4907c.4313 0 .781-.3497.781-.781s-.3497-.781-.781-.781h-2.6066l1.819-1.7625.0012-.0012c.6931-.6746 1.5175-1.2109 2.4265-1.5772.9091-.3663 1.8842-.5551 2.8695-.5551s1.9604.1888 2.8694.5551 1.7334.9026 2.4266 1.5772c.2969.2889.7717.2825 1.0606-.0144.2889-.2968.2824-.7716-.0144-1.0605-.8344-.8121-1.8241-1.4552-2.9121-1.8936s-2.2535-.6638-3.4301-.6638z`}),I.createElement(`path`,{d:`m23.728 22.573c0-.4313.3497-.781.781-.781h4.4907c.4313 0 .781.3497.781.781v4.3641c0 .4313-.3497.781-.781.781-.4314 0-.781-.3497-.781-.781v-2.5624l-1.8762 1.8179c-.8343.8118-1.8244 1.4553-2.9121 1.8936-1.088.4384-2.2535.6638-3.4301.6638s-2.3421-.2254-3.4301-.6638-2.0778-1.0815-2.9121-1.8936c-.2969-.2889-.3033-.7637-.0144-1.0605.2889-.2969.7637-.3033 1.0605-.0144.6932.6746 1.5176 1.2109 2.4266 1.5772.9091.3663 1.8842.5551 2.8695.5551s1.9604-.1888 2.8694-.5551 1.7334-.9026 2.4266-1.5772l.0012-.0012 1.819-1.7625h-2.6075c-.4313 0-.781-.3497-.781-.781z`}))),qT=(0,I.memo)(({src:e,alt:t=``,loading:n=`lazy`,width:r,height:i,animate:a=!1,fallback:o=(0,L.jsx)(KT,{}),loaderIcon:s=!1,...c})=>{let[l,u]=(0,I.useState)(!0),[d,f]=(0,I.useState)(!1),p=(0,I.useRef)(null),m=(0,I.useCallback)(()=>{u(!1)},[]),h=(0,I.useCallback)(()=>{u(!1),f(!0)},[]);(0,I.useEffect)(()=>
7{if(e===null)return m();if(!p?.current)return;p.current.addEventListener(Ys?.LOAD,m),p.current.addEventListener(Ys?.ERROR,h),p.current.addEventListener(Ys?.COMPLETE,m);let t=p.current;return()=>{t.removeEventListener(Ys?.LOAD,m),t.removeEventListener(Ys?.ERROR,h),t.removeEventListener(Ys?.COMPLETE,m)}},[p,h,m,e]);let g=d||e===null?(0,L.jsx)(O,{width:r,height:i,display:`flex`,alignItems:`center`,justifyContent:`center`,children:o}):(0,L.jsx)(O,{component:`img`,sx:{display:`flex`,alignItems:`center`,justifyContent:`center`},ref:p,src:e,alt:t,loading:n,width:r,height:i,...c});return(0,L.jsxs)(O,{position:`relative`,sx:{display:`flex`,alignItems:`center`,justifyContent:`center`},...c,children:[(0,L.jsx)(Jn,{mountOnEnter:!0,unmountOnExit:!0,in:l,children:(0,L.jsx)(O,{children:s&&(0,L.jsx)(Pe,{})})}),a?(0,L.jsx)(Tr,{in:!l,children:g}):(0,L.jsx)(O,{children:g})]})}),JT=(0,I.memo)(({open:e,children:t,className:n,height:r=110,tension:a=2e3,friction:o=200,delay:s=0,mass:c=5,component:l=i.div})=>{let u=I.Children.toArray(t);return(0,L.jsx)(O,{children:f(u.length,{config:{mass:c,tension:a,friction:o},opacity:+!!e,x:e?0:20,delay:s,height:e?r:0,from:{opacity:0,x:20,height:0}}).map(({height:e,...t},r)=>(0,L.jsx)(l,{className:n,style:t,children:(0,L.jsx)(l,{style:{height:e},children:u[r]})},r))})});JT.displayName=`Trail`;var YT=(0,I.memo)(({children:e,anchorEl:t,anchorOrigin:n={vertical:`top`,horizontal:`left`},transformOrigin:r={vertical:`top`,horizontal:`left`},handleClose:i,width:a,paperProps:o,...s})=>{let c=!!t;return(0,L.jsx)(Gt,{...s,open:c,anchorEl:t,onClose:i,MenuListProps:{sx:{p:0}},anchorOrigin:n,transformOrigin:r,PaperProps:{...o,sx:{width:a,borderRadius:`12px`,border:`2px solid`,borderColor:`neutral50`,color:`neutral900`,backgroundColor:`neutral0`,boxShadow:`0 4px 12px rgba(33, 34, 46, .08)`,...o?.sx}},children:e})}),XT=ur(Gn,Fn(`size`))(({theme:e,size:t})=>({"& .MuiAvatar-root":{border:`1px solid`,borderColor:e.extendPalette.neutral100,backgroundColor:e.extendPalette.neutral0,width:t,height:t,fontSize:t/2}})),ZT=e=>{let t=e.slice();return t.sort((e,t)=>e.icon&&!t.icon?-1:1),t},QT=e=>{let t=e?.name?.toUpperCase();return[t,e?.icon||t]},$T=(0,I.memo)(({items:e,size:t})=>{let{length:n}=e,[r,i,a]=ZT(e),o=n>=2,s=n>=3,[c,l]=QT(r),[u,d]=QT(i),[f,p]=QT(a);return(0,L.jsxs)(XT,{size:t,children:[(0,L.jsx)(qn,{alt:c,src:l}),o&&(0,L.jsx)(qn,{alt:u,src:d}),s&&(0,L.jsx)(qn,{alt:f,src:p})]})});(0,I.forwardRef)((e,t)=>{let{separators:n=!0,onChange:r,name:i,...a}=e,o=(0,I.useCallback)(({value:e})=>{r({target:{name:i,value:e}})},[i,r]);return(0,L.jsx)(g,{...a,getInputRef:t,onValueChange:o,decimalScale:2,allowLeadingZeros:!0,thousandSeparator:n,valueIsNumericString:!0})});var eE=(0,I.forwardRef)((e,t)=>{let{onChange:n,name:r,...i}=e,a=(0,I.useCallback)(({formattedValue:e})=>{n?.({target:{name:r,value:e}})},[r,n]);return(0,L.jsx)(_,{...i,getInputRef:t,onValueChange:a,format:`### ###`,displayType:`input`})}),tE=ur(dn)({position:`absolute`,left:24,top:24}),nE=ur(Dn)(({theme:e})=>({zIndex:e.zIndex.drawer,overflow:`hidden`,position:`absolute`})),rE=(0,I.memo)(({position:e=`left`,children:t,container:n,backButton:r,open:i,roundedBorder:a,handleClose:o,overlayTint:s,onTransitionEnd:c,...l})=>{let u=Cr();return(0,L.jsx)(nE,{...l,anchor:e,open:i,onClose:o,variant:`temporary`,PaperProps:{...l.PaperProps,sx:{overflow:`hidden`,borderRadius:a?u.extendStyles.radiusL:null,height:`100%`,backgroundColor:`neutral50`,...l.PaperProps?.sx}},slotProps:{backdrop:{sx:{position:`absolute`,backgroundColor:s?mr(u.extendPalette.neutral900,.8):`transparent`}}},ModalProps:{sx:{position:`absolute`},container:n,...l.ModalProps},SlideProps:{container:n,...l.SlideProps},onTransitionEnd:c,children:(0,L.jsxs)(D,{flex:`1`,width:`100%`,overflow:`auto`,role:`presentation`,display:`flex`,children:[(0,L.jsx)(O,{sx:{position:`absolute`,right:20,top:0,left:0,height:60,bgcolor:`neutral0`,zIndex:1},children:(0,L.jsx)(dn,{sx:{position:`absolute`,right:14,top:20},onClick:o,children:(0,L.jsx)(rn,{})})}),r&&(0,L.jsx)(tE,{onClick:r,children:(0,L.jsx)(mn,{})}),t]})})}
7),iE=ur(O)({borderBottom:1,borderColor:`divider`});(0,I.memo)(({children:e,handleChange:t,value:n})=>(0,L.jsx)(iE,{children:(0,L.jsx)(yr,{value:n,onChange:t,children:e})})),(0,I.memo)(({children:e,value:t,index:n,...r})=>(0,L.jsx)(D,{role:`tabpanel`,hidden:t!==n,...r,children:t===n&&(0,L.jsx)(O,{children:e})})),ur(D)(({theme:e})=>({position:`fixed`,bottom:e.spacing(6.5),left:`50%`,transform:`translateX(-50%)`,width:`fit-content`,padding:e.spacing(2),borderRadius:e.spacing(2),background:e.extendPalette.neutral900,zIndex:e.zIndex.modal})),ur(dn)(({theme:e})=>({padding:0,height:`auto`,width:`auto`,svg:{color:e.extendPalette.neutral100,background:`none`}})),ur(A)(({theme:e})=>({padding:0,height:`auto`,width:`auto`,minHeight:0,paddingRight:e.spacing(2),borderRadius:0,borderRight:`1px solid `+e.extendPalette.neutral700,marginRight:e.spacing(2),color:e.extendPalette.neutral100,textDecoration:`underline`,"&:hover":{background:`none`}}));var aE=ur(en,Fn(`positive`))(({theme:e,positive:t})=>({...t?{color:e.extendPalette.red500,transform:`rotate(180deg)`}:{color:e.extendPalette.green500}})),oE=0,sE=({trend:e,info:t})=>{let n=e>oE,r=(Math.abs(e)*100).toFixed(2);return e===oE?null:(0,L.jsxs)(D,{container:!0,wrap:`nowrap`,alignItems:`center`,children:[(0,L.jsx)(aE,{positive:n}),(0,L.jsxs)(k,{variant:`labelS`,children:[Math.ceil(Number(r)),`%`]}),t&&(0,L.jsxs)(L.Fragment,{children:[`\xA0`,(0,L.jsx)(k,{variant:`labelS`,color:`neutral500`,children:t})]})]})},cE=ti({code:Yr().min(6,z.t(`Verification code is too short`)).required(z.t(`Code is a required field`)).matches(/^[0-9]*$/,z.t(`Code must be a number`)).transform(e=>Pa(e))}),lE=()=>{let{t:e}=G(),t=Bu(),n=Ar(),{data:r}=nG(),[i,a]=(0,I.useState)(!1),{handleSubmit:o,control:s,formState:{isSubmitting:c,isValid:l},setError:u}=ei({resolver:ii(cE),mode:`onChange`,defaultValues:{code:``}});return i?(0,L.jsxs)(Hn,{sx:{margin:`auto auto`,width:400,p:0,border:0},children:[(0,L.jsxs)(T,{px:3,direction:`row`,alignItems:`center`,height:72,gap:1,children:[(0,L.jsx)(Le,{}),(0,L.jsx)(K,{variant:`titleL`,children:`Money is protected`})]}),(0,L.jsx)(E,{sx:{mx:3}}),(0,L.jsx)(T,{p:3,children:(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`Your session has expired, please log in again.`})}),(0,L.jsx)(E,{sx:{mx:3}}),(0,L.jsx)(O,{px:3,display:`flex`,justifyContent:`end`,alignItems:`center`,height:72,children:(0,L.jsx)(A,{variant:`primary`,size:`large`,onClick:()=>{BC(),n(lo)},children:e(`Back to login`)})})]}):(0,L.jsx)(Hn,{sx:{margin:`auto auto`,width:400,p:0,border:0},children:(0,L.jsxs)(`form`,{onSubmit:o(async({code:n})=>{try{await t.refreshWithTfa(n)}catch(t){let n=oe.isAxiosError(t)?t.response?.data:void 0;if(n?.Code===tc.INVALID_REFRESH_TOKEN||n?.error===tc.SESSION_NOT_FOUND){a(!0);return}u(`code`,{message:e(`Invalid verification code.`)})}}),children:[(0,L.jsxs)(T,{px:3,direction:`row`,alignItems:`center`,height:72,gap:1,children:[(0,L.jsx)(Le,{}),(0,L.jsx)(K,{variant:`titleL`,children:`Money is protected`})]}),(0,L.jsx)(E,{sx:{mx:3}}),(0,L.jsxs)(T,{p:3,children:[(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,mb:3,children:`Enter the code from your authentication app to access Money.`}),(0,L.jsx)(Ln,{placeholder:`000 000`,autoComplete:`one-time-code`,name:`code`,fullWidth:!0,control:s,InputProps:{inputComponent:eE}}),(0,L.jsxs)(O,{display:`flex`,mt:2,children:[(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`Have issues?\xA0`}),(0,L.jsx)(K,{component:`span`,variant:`labelM`,color:`blue500`,sx:{cursor:`pointer`},onClick:()=>ml(r?.companyName??``),children:`Contact support.`})]})]}),(0,L.jsx)(E,{sx:{mx:3}}),(0,L.jsx)(O,{px:3,display:`flex`,justifyContent:`end`,alignItems:`center`,height:72,children:(0,L.jsx)(A,{type:`submit`,variant:`primary`,size:`large`,loading:c,disabled:!l,children:e(`Access Money`)})})]})})},uE=({title:e,icon:t,disabled:n=!1,iconButtonProps:r,onClick:i,...a})=>(0,L.jsxs)(O,{display:`flex`,flexDirection:`column`,alignItems:`center`,gap:1,onClick:n?void 0:i,...a,children:[(0,L.jsx)(dn,{color:`tertiaryBlack`,component:`div`,...r,disabled:n,children:t}),(0,L.jsx)(k,{variant:`labelXS`,fontSize:9,color:n?`neutral300`:`neutral500`,children:e})]}),dE=ur(k)(({theme:e})=>
7({cursor:`pointer`,transition:e.transitions.create([`color`],{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),"&:hover":{color:e.extendPalette.neutral500},"&:active":{color:e.extendPalette.neutral400}})),fE=(0,I.memo)(({prevPage:e,prevPageRoute:t,currentEntity:n,children:r,containerProps:i})=>{let a=Ar(),o=(0,I.useCallback)(()=>a(t),[a,t]);return(0,L.jsxs)(D,{container:!0,width:`100%`,direction:`row`,justifyContent:`space-between`,alignItems:`center`,gap:1,...i,children:[(0,L.jsxs)(O,{display:`flex`,alignItems:`center`,gap:1,children:[(0,L.jsx)(dE,{variant:`headlineM`,color:`neutral300`,onClick:o,children:e}),(0,L.jsx)(dt,{sx:{fontSize:24},color:`action`}),(0,L.jsx)(k,{variant:`headlineM`,color:`neutral800`,children:n})]}),r]})}),pE=({rowSelection:e,onClose:t,children:n})=>Object.keys(e).length?(0,L.jsxs)(O,{display:`flex`,alignItems:`center`,gap:2,sx:e=>({position:`fixed`,bottom:32,left:`50%`,transform:`translateX(-50%)`,backgroundColor:e.extendPalette.neutral500,color:e.extendPalette.neutral0,borderRadius:e.extendStyles.radiusM,boxShadow:e.extendStyles.shadowM,p:1,zIndex:1e3}),children:[(0,L.jsx)(O,{sx:{mx:1.5,my:1.25},children:(0,L.jsxs)(k,{variant:`labelM`,children:[Object.keys(e).length,` selected`]})}),(0,L.jsx)(O,{children:n}),(0,L.jsx)(dn,{size:`large`,color:`dark`,onClick:t,children:(0,L.jsx)(Nn,{})})]}):null,mE=({isHidden:e,toggle:t,loading:n,archiveEntity:r})=>{let{open:i,openModal:a,cancelModal:o,confirmModal:s}=v_(t),{t:c}=G();return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(A,{variant:`tertiaryBlack`,size:`large`,startIcon:e?(0,L.jsx)(Ue,{}):(0,L.jsx)(gn,{}),onClick:e?t:a,children:c(e?`Remove from archive`:`Move to archive`)}),(0,L.jsx)(VT,{title:c(`Move {{entity}} to archive`,{entity:r}),submitProps:{startIcon:e?(0,L.jsx)(Ue,{}):(0,L.jsx)(gn,{}),variant:`primary`},submitTitle:c(e?`Unarchive`:`Archive`),cancelTitle:c(`Cancel`),open:i,onConfirm:s,onCancel:o,loading:n,withoutIcon:!0,children:(0,L.jsx)(k,{variant:`labelM`,color:`neutral400`,children:c(`Once archived, the {{entity}} will be removed from your active list but can still be accessed in the archive section.`,{entity:r})})})]})},hE=({featureTitle:e,title:t,descriptionSlot:n,to:r,withDivider:i=!0})=>(0,L.jsxs)(T,{gap:3,children:[(0,L.jsxs)(T,{direction:`row`,alignItems:`center`,gap:1,children:[(0,L.jsxs)(T,{direction:`row`,alignItems:`center`,gap:1,component:Rr,to:r,sx:{textDecoration:`none`},children:[(0,L.jsx)(k,{variant:`headlineM`,color:`neutral300`,children:e}),(0,L.jsx)(dt,{sx:{color:`neutral300`}})]}),(0,L.jsx)(K,{variant:`headlineM`,color:`neutral800`,children:t}),n&&(0,L.jsx)(O,{sx:{marginLeft:`auto`},children:n})]}),i&&(0,L.jsx)(E,{})]});(0,I.memo)(({from:e,to:t,cancel:n})=>{let r=w({val:t,from:{val:e},cancel:n});return(0,L.jsx)(i.span,{children:r.val.to(e=>Math.floor(e))})});var gE=(0,I.memo)(({title:e})=>(0,L.jsx)(n,{children:(0,L.jsxs)(`title`,{children:[e,` - Spendbase`]})})),_E=ur(me,Fn(`isIndependent`))(({isIndependent:e})=>({width:`100%`,...e&&{height:`100%`,overflow:`auto`}})),vE=ur(O)({position:`sticky`,top:0,zIndex:2}),yE=ur(O)({position:`absolute`,top:0,left:0,width:`100%`});ur(D)(({theme:e})=>({height:`85%`,backgroundColor:e.extendPalette.neutral0,borderBottomLeftRadius:e.extendStyles.radiusL,borderBottomRightRadius:e.extendStyles.radiusL}));var bE=40,xE=({items:e,overscan:t=2,containerRef:n,showFooter:r,FooterComponent:i,withoutMargin:a,HeaderComponent:o,endReached:s})=>{let c=(0,I.useRef)(null),{getTotalSize:l,getVirtualItems:u,measureElement:d}=hi({count:r&&i?e.length+1:e.length,getScrollElement:()=>(c?.current||n?.current)??null,estimateSize:(0,I.useCallback)(()=>bE,[]),overscan:t}),f=a?0:5.5,p=l(),m=u();return(0,I.useEffect)(()=>{let t=m[m.length-1];t&&e.length>0&&t.index===e.length-1&&s?.()},[e,s,m]),(0,L.jsxs)(_E,{isIndependent:!n,scrollableNodeProps:{ref:c},children:[o&&(0,L.jsx)(vE,{children:o}),(0,L.jsx)(O,{sx:{position:`relative`,width:`100%`},style:{height:p},mb:f,children:m.map(t=>{let{index:n,key:r,start:a}=t,o=n>e.length-1;return(0,L.jsx)(yE,{"data-index":n,ref:d,style:{transform:`translateY(${a}px)`},children:o?i:e[n]},r)})})]})},SE=48,CE=40,wE=36,TE=1,EE=(0,I.memo)((0,I.forwardRef)(({data:e,index:t,style:n},r)=>(0,I.cloneElement)(e[t],{style:n,"data-index":t,ref:r})));(0,I.memo)((0,I.forwardRef)(function({children:e,...t},n){let r=pr(Cr().breakpoints.up(`sm`),{noSsr:!0}),i=(0,I.useRef)(null),a=(0,I.useMemo)(()=>I.Children.toArray(e),[e]),{getTotalSize:o,getVirtualItems:s,measureElement:c}=hi({count:a.length,getScrollElement:()=>i?.current??null,paddingStart:2,overscan:TE,estimateSize:(0,I.useCallback)(()=>CE,[])}),l=o(),u=s(),d=(0,I.useCallback)(e=>(0,I.isValidElement)(e)&&e.type===ar?SE:r?wE:CE,[r]);return(0,L.jsx)(O,{component:`div`,ref:n,children:(0,L.jsx)(me,{scrollableNodeProps:{ref:i},...t,children:(0,L.jsx)(nr,{sx:{height:l},children:u.map(e=>{let{index:t,start:n}=e;return(0,L.jsx)(EE,{data:a,index:t,ref:c,style:{position:`absolute`,top:0,left:0,width:`100%`,willChange:`transform`,minHeight:`${d(a[t])}px`,transform:`translateY(${n}px)`}},t)})})})})}));var DE=(0,I.memo)(({onSubmit:e})=>{let{control:t,formState:{isDirty:n},handleSubmit:r}=ri(),i=Qr({control:t}),a=(0,I.useCallback)(Bt(()=>{r(e)()},500),[e]);return se(()=>{n&&a()},[i,n]),null});DE.displayName=`AutoSave`;var OE=({onSubmit:e,children:t,FormProps:n,formContext:r,onSuccess:i,...a})=>{let o=ei({...a});if(!r){let{handleSubmit:e}=o;return(0,L.jsx)(ni,{...o,children:(0,L.jsx)(O,{component:`form`,onSubmit:e(i||(()=>console.log(`submit handler "onSubmit" is missing`))),noValidate:!0,...n,children:t})})}return(0,L.jsx)(ni,{...r,children:(0,L.jsx)(O,{component:`form`,noValidate:!0,...n,onSubmit:e||(i?r?.handleSubmit(i):()=>console.log(`submit handler is missing`)),children:t})})},kE=1279,AE=`app`,jE=(0,I.memo)(()=>{let{width:e}=u(),t=uy();return(0,I.useEffect)(()=>{let n=document.getElementById(AE);if(!n)return;if(t){n.style.zoom=`1`;return}let r=e/kE;if(r>1){n.style.zoom=`1`;return}n.style.zoom=String(Number(r.toFixed(2)))},[e,t]),null}),ME=ur(k,Fn(`variant`,`color`))(({theme:e,color:t})=>({padding:e.spacing(0,.5),borderRadius:e.extendStyles.radiusS,...t===`primary`&&{backgroundColor:e.extendPalette.blue500,color:e.extendPalette.neutral0}
7,...t===`secondary`&&{backgroundColor:`transparent`,border:`1px solid ${e.extendPalette.blue200}`},...t===`tertiary`&&{backgroundColor:`transparent`,border:`1px solid ${e.extendPalette.orange200}`}}));(0,I.memo)(e=>(0,L.jsx)(ME,{...e}));var NE=({dataType:e,disabled:t=!1})=>{let{t:n}=G(),r=Wv(),i=vC();return(0,L.jsx)(A,{sx:{flexShrink:0},variant:`tertiaryBlack`,onClick:()=>{switch(e){case`applications`:r.mutate();break;case`members`:i.mutate();break;default:break}},disabled:t,loading:r.isPending||i.isPending,children:n(`Export All`)})},PE=ur(D)(({theme:e})=>({alignItems:`center`,justifyContent:`center`,backgroundColor:e.extendPalette.neutral100,position:`absolute`,inset:0,height:`100%`})),FE=ur(D)(({theme:e})=>({flexDirection:`column`,backgroundColor:e.extendPalette.neutral0,borderRadius:e.extendStyles.radiusL,textAlign:`center`,padding:e.spacing(6),width:`auto`})),IE=ur(O)({display:`flex`,position:`absolute`,top:40,left:40}),LE=ur(k)(({theme:e})=>({color:e.extendPalette.neutral500})),RE=(0,I.memo)(()=>{let{t:e}=G();return(0,L.jsx)(PE,{container:!0,children:(0,L.jsxs)(Vw,{permissions:[V.RESTRICTED_ACCESS],children:[(0,L.jsx)(IE,{children:(0,L.jsx)(In,{})}),(0,L.jsxs)(FE,{container:!0,item:!0,mb:4,children:[(0,L.jsx)(k,{variant:`displayS`,mb:1,children:e(`You donât have access`)}),(0,L.jsx)(LE,{variant:`bodyL`,children:e(`Ask your admin to invite you to the team.`)})]})]})})});RE.displayName=`NoAccess`;var zE=t({NoAccess:()=>RE}),BE=ur(k)(({theme:e})=>({flex:1,padding:e.spacing(1.5,2),borderRadius:e.extendStyles.radiusL,background:e.extendPalette.neutral50,color:e.extendPalette.neutral400})),VE=({open:e,onClose:t,onSubmit:n,onSelect:r,minReqFieldsString:i,headers:a,uploadOptions:o,selectedValues:s,matchedLength:c,disabled:l,loading:u})=>{let d=Cr(),{t:f}=G();return(0,L.jsxs)(kt,{open:e,size:`large`,onClose:t,noSubmitButton:!0,noCancelButton:!0,moreAction:(0,L.jsxs)(T,{direction:`row`,spacing:1,children:[(0,L.jsx)(A,{size:`large`,variant:`secondary`,onClick:t,children:f(`Cancel`)}),(0,L.jsx)(at,{title:l?f(`Minimum "{{fields}}" should be mapped.`,{fields:i}):``,placement:`top`,children:(0,L.jsx)(`span`,{children:(0,L.jsx)(A,{variant:`primary`,disabled:l,onClick:n,sx:{height:`100%`},fullWidth:!0,children:u?(0,L.jsx)(Pe,{}):f(`Confirm`)})})})]}),submitTitle:(0,L.jsx)(at,{title:l?f(`Minimum "{{fields}}" should be mapped.`,{fields:i}):``,placement:`top`,children:(0,L.jsx)(`span`,{children:(0,L.jsx)(A,{variant:`primary`,disabled:l,onClick:n,sx:{height:`100%`},fullWidth:!0,children:u?(0,L.jsx)(Pe,{}):f(`Confirm`)})})}),title:f(`Map attributes`),children:[(0,L.jsx)(K,{variant:`bodyL`,sx:{color:d.extendPalette.neutral700,mt:-2,mb:3},children:`CSV file must contain the first row as a table header, so please ensure that it is present in your file.`}),(0,L.jsxs)(D,{container:!0,gap:1,direction:`column`,maxHeight:`70vh`,wrap:`nowrap`,sx:{overflowY:`auto`},children:[(0,L.jsxs)(D,{item:!0,container:!0,gap:1,wrap:`nowrap`,children:[(0,L.jsx)(K,{variant:`labelM`,sx:{color:d.extendPalette.neutral500,width:334},children:`CSV file fields`}),(0,L.jsx)(K,{variant:`labelM`,sx:{color:d.extendPalette.neutral500,width:334},children:`Spendbase fields (${c}/${o.length})`})]}),(0,L.jsx)(D,{item:!0,container:!0,direction:`column`,gap:1,wrap:`nowrap`,children:a.map(([e,t])=>(0,L.jsxs)(D,{item:!0,container:!0,wrap:`nowrap`,justifyContent:`space-between`,alignItems:`center`,gap:3,children:[(0,L.jsx)(BE,{variant:`labelL`,children:e}),(0,L.jsx)(Tn,{sx:{color:t?d.extendPalette.blue500:d.extendPalette.neutral500}}),(0,L.jsx)(Ke,{placeholder:`Not found`,containerProps:{sx:{flex:1}},options:o,value:o.find(e=>e.value===t)?.value,onChange:t=>r(e,t),renderOption:(e,{value:t,label:n})=>(0,I.createElement)(Dr,{...e,key:t},(0,L.jsx)(tt,{label:n,multiple:!0,checked:s.some(e=>e===t)}))})]},e))})]})]})},HE=e=>(0,L.jsx)(st,{format:`DD/MM/YYYY`,...e}),UE=e(c()),WE=({link:e,icon:t,title:n})=>{let{t:r}=G(),{copyToClipboard:i}=Pu(),a=(0,I.useCallback)(()=>{e&&(i(e)(),b({variant:`success`,message:r(`Link copied`)}))},[e,i,r]);return(0,L.jsxs)(O,{display:`flex`,flexDirection:`column`,alignItems:`center`,bgcolor:`neutral50`,borderRadius:4,width:168,gap:.75,py:1.5,children:[t,(0,L.jsx)(k,{color:`neutral500`,variant:`labelS`,children:n}),(0,L.jsx)(UE.default,{size:96,value:e}),(0,L.jsx)(A,{variant:`textBlue`,onClick:a,children:r(`Copy link`)})]})},GE=({children:e})=>{let{t}=G(),{data:n}=nG(),r=[`Hi Spendbase Support,`,``,`We've reached the current limit of 10 budgets and would like to request an increase for our company.`,``,`C
7ompany name: ${n?.companyName??`[Company name]`}`,`Current number of budgets: 10`,``,`Please let us know if you need any additional information.`,``,`Thank you.`].join(` 8`),i=n?[`mailto:[email protected]`,`?subject=${encodeURIComponent(t(`Request to increase budget limit`))}`,`&body=${encodeURIComponent(r)}`].join(``):void 0;return(0,L.jsx)(at,{leaveDelay:500,PopperProps:{sx:{pointerEvents:`all`}},componentsProps:{tooltip:{sx:{bgcolor:`neutral0`,color:`neutral500`,boxShadow:`0px 8px 16px 0px rgba(32, 32, 34, 0.08)`,borderRadius:2,padding:1.5,maxWidth:268}},arrow:{sx:{display:`none`}}},title:(0,L.jsxs)(k,{variant:`bodyM`,color:`neutral500`,children:[t(`You've reached the limit of 10 budgets, including the Main budget.`),` `,(0,L.jsx)(O,{component:`a`,href:i,sx:{color:`blue500`,textDecoration:`none`,cursor:i?`pointer`:`default`},children:t(`Contact support`)}),` `,t(`if you need more.`)]}),placement:`top`,children:(0,L.jsx)(`span`,{style:{display:`inline-block`},children:e})})},KE=({children:e,disabled:t})=>(0,L.jsx)(at,{componentsProps:{tooltip:{sx:{padding:1.5,borderRadius:1.5}}},title:t?void 0:(0,L.jsxs)(T,{children:[(0,L.jsx)(O,{display:`flex`,justifyContent:`center`,alignItems:`center`,width:32,height:32,borderRadius:1.25,bgcolor:`blue25`,mb:2,children:(0,L.jsx)(Ge,{sx:{color:`blue500`}})}),(0,L.jsx)(K,{variant:`titleM`,sx:{mb:.5},children:`Virtual cards - coming soon!`}),(0,L.jsx)(K,{variant:`bodyM`,children:`This feature is in development and will be available soon. Weâll let you know as soon as itâs ready!`})]}),placement:`right`,children:(0,L.jsx)(O,{children:e})}),qE=({children:e,disabled:t})=>{let{t:n}=G();return(0,L.jsx)(at,{componentsProps:{tooltip:{sx:{paddingY:.5,paddingX:1,borderRadius:1.5}}},title:t?void 0:n(`Convert temporarily unavailable`),placement:`top`,children:(0,L.jsx)(O,{children:e})})},JE=({children:e,disabled:t})=>{let{t:n}=G();return(0,L.jsx)(at,{componentsProps:{tooltip:{sx:{paddingY:.5,paddingX:1,borderRadius:1.5}}},title:t?void 0:n(`Cards are not available in this currency`),placement:`top`,children:(0,L.jsx)(O,{children:e})})},YE=({children:e,disabled:t})=>{let{t:n}=G();return(0,L.jsx)(at,{componentsProps:{tooltip:{sx:{paddingY:.5,paddingX:1,borderRadius:1.5}}},title:t?void 0:n(`Outgoing GBP payments are no longer available`),placement:`top`,children:(0,L.jsx)(O,{children:e})})},XE=({children:e,disabled:t,blockReason:n})=>{let{t:r}=G();return(0,L.jsx)(at,{componentsProps:{tooltip:{sx:{paddingY:.5,paddingX:1,borderRadius:1.5,width:148}}},title:t?void 0:(0,L.jsx)(k,{variant:`labelS`,textAlign:`center`,children:r(n===`LIMIT_REACHED`?`Company has reached its card issuing limit.`:`Cards issuing is disabled for this company.`)}),placement:`top`,children:(0,L.jsx)(`div`,{children:e})})},ZE=({title:e,defaultExpanded:t,children:n,chipLabel:r,onExpandedChange:i})=>{let[a,o]=(0,I.useState)(!!t),s=()=>{o(!a),i?.(!a)};return(0,L.jsxs)(O,{borderRadius:3,overflow:`hidden`,bgcolor:`neutral50`,children:[(0,L.jsxs)(O,{display:`flex`,alignItems:`center`,justifyContent:`space-between`,pt:1.5,px:1.5,pb:1,onClick:()=>s(),sx:{cursor:`pointer`},children:[(0,L.jsxs)(O,{py:1,px:1.5,display:`flex`,alignItems:`center`,gap:1,children:[(0,L.jsx)(k,{variant:`titleL`,fontWeight:`bold`,children:e}),r&&(0,L.jsx)(Vn,{size:`small`,label:r,variant:`outlined`,color:`secondary`})]}),(0,L.jsx)(dn,{size:`small`,"aria-label":`expand`,children:(0,L.jsx)(He,{sx:{transform:`rotate(-${a?180:0}deg)`}})})]}),(0,L.jsx)(rr,{in:a,timeout:`auto`,unmountOnExit:!0,children:(0,L.jsx)(O,{px:1,pb:1.5,children:n})})]})},QE=ur(D,Fn(`editable`))(({theme:e,editable:t})=>({borderRadius:e.extendStyles.radiusM,svg:{display:`none`},...t&&{"&:hover":{backgroundColor:e.extendPalette.neutral100,cursor:`pointer`,svg:{display:`block`,color:e.extendPalette.neutral400},[`.spend-limit-progress .${Bn.root}`]:{backgroundColor:e.extendPalette.neutral200}},"&:active":{backgroundColor:e.extendPalette.neutral200}}})),$E=({value:e,image:t,title:n,icon:r,onClick:i,loading:a,iconPosition:o=`right`,...s})=>{let c=()=>typeof e==`string`||typeof e==`number`?(0,L.jsx)(k,{display:`block`,variant:`labelM`,color:`neutral500`,noWrap:!0,children:e}):e,l=!r&&!t||o===`top`;return(0,L.jsxs)(QE,{container:!0,alignItems:`center`,justifyContent:`space-between`,p:1.5,editable:!!i,onClick:i,...s,children:[(0,L.jsxs)(T,{gap:.5,width:l?`100%`:`80%`,children:[(0,L.jsxs)(T,{direction:`row`,justifyContent:`space-between`,children:[(0,L.jsx)(k,{variant:`labelM`,color:`neutral400`,children:n}),o===`top`&&r]}),a?(0,L.jsx)(sr,{variant:`text`,width:`100%`}):c()]}),o===`right`&&r,t&&(0,L.jsx)(qn,{src:t.src||void 0,type:`photo`,children:t.initials??e})]})},eD=()=>(0,L.jsx)(D,{sx:{position:`absolute`,inset:0,height:`100%`},container:!0,alignItems:`center`,justifyContent:`center`,direction:`column`,children:(0,L.jsx)(JT,{open:!0,children:(0,L.jsx)(O,{children:(0,L.jsxs)(JT,{open:!0,delay:150,component:i.span,children:[(0,L.jsx)(k,{component:`span`,variant:`titleL`,color:`inherit`,children:`Page\xA0`}),(0,L.jsx)(k,{component:`span`,variant:`titleL`,color:`inherit`,children:`Not\xA0`}),(0,L.jsx)(k,{component:`span`,variant:`titleL`,color:`inherit`,children:`Found`})]})})})}),tD=t({NotFound:()=>eD}),nD=({children:e,fallback:t})=>{let{isLoading:n}=nG(),{isLoading:r}=$w({enabled:R.ENABLE_AUTOPAY_FEATURE}),i=LT();return n||r?null:i?e:t??(0,L.jsx)(eD,{})},rD=({children:e,fallback:t})=>{let{data:n,isPending:r}=Od(),i=Ad();return r?null:n&&i?t??(0,L.jsx)(Lr,{to:`/money`,replace:!0}):e},iD=e=>{if(!e)return!1;let t=e.split(/[?#]/)[0].replace(/^\/+|\/+$/g,``);return R.BANKING_REDIRECT_PATHS.includes(t)},aD=e=>e?iD(e)?Os.ROOT.path:e:null,oD=({children:e})=>{let{rootStore:{routeStore:{navigate:t}}}=Du(),{isAuthorized:n,isResolving:r}=Vu(),i=zr(),a=i.pathname+i.search,o=Ws(`redirectUrl`)||(a===`/`?``:a),s=aD(o)??o,c=iD(o)?uo:lo,l=s?Ks(c,{[Ao]:s}):c,u=Au([V.RESTRICTED_ACCESS]);return r?(0,L.jsx)(Pe,{}):(u&&t(so),n?e:(0,L.jsx)(Lr,{to:l}))},sD=({children:e,fallback:t})=>{let{isResolving:n}=Vu();return n?t??(0,L.jsx)(Pe,{"data-testid":`public-route-loading-mask`}):e},cD=({children:e})=>{let{me:t,isResolving:n}=Vu();return t?(0,L.jsx)(Lr,{to:`/`}):n?(0,L.jsx)(Pe,{}):e},lD=()=>{let{data:e,isLoading:t}=nG();return{isTeamSigned:!!e?.isTeamSigned,isLoading:t}},uD=Wo,dD=Ro.ROOT.path,fD=({children:e})=>{let{isTeamSigned:t,isLoading:n}=lD(),{data:r}=nG();return!t&&!n?(0,L.jsx)(Lr,{to:r?.role===Xs.MEMBER?uD:dD}):e},pD=async()=>await(await J()).hasKeyChain(),mD=async e=>{let t=await(await J()).registration(e);if(!t)throw Error(z.t(`Failed to create master password`));return t.join(` `)},hD=async e=>{let t=await(await J()).login(e);if(!t)throw Error(z.t(`Invalid master password`));return t},gD=async({oldPassword:e,newPassword:t})=>{let n=await(await J()).changePassword(e,t);if(!n)throw Error(z.t(`Failed to change master password. Please check your current password and try again.`));return n},_D=async e=>{let t=await(await J()).recovery(e);if(!t)throw Error(z.t(`Recovery failed. Invalid seed phrase.`));return t.join(` `)},vD=async e=>{let t=await(await J()).validateRecoverySession(e);if(!t.ok)throw Error(z.t(`Invalid recovery details`));return t},yD=async e=>{let t=await(await J()).completeRecoverySession(e);if(!t?.ok||!t?.newSeed)throw Error(z.t(`Recovery session completion failed`));return t.newSeed.join(` `)},bD={masterPassword:[`masterPassword`]},xD=e=>Xc({error:e,fallbackMessage:z.t(`Something went wrong`)}),SD=()=>N({queryKey:bD.masterPassword,queryFn:pD}),CD=e=>F({...SD(),staleTime:0,...e}),wD=()=>M({mutationFn:mD,onSuccess:()=>{b({message:z.t(`Master password created`),variant:`success`})},onError:e=>{b({message:xD(e),variant:`attention`})}}),TD=()=>M({mutationFn:hD,onError:e=>{b({message:xD(e),variant:`attention`})}}),ED=()=>M({mutationFn:_D,onSuccess:()=>{b({message:z.t(`Master password updated`),variant:`success`})},onError:e=>{b({message:xD(e),variant:`attention`})}}),DD=()=>M({mutationFn:gD,onSuccess:()=>{b({message:z.t(`Master password updated`),variant:`success`})},onError:e=>{b({message:xD(e),variant:`attention`})}}),OD=()=>M({mutationFn:vD}),kD=()=>M({mutationFn:yD}),AD=`Spendbase`,jD=async()=>(await J()).getSessionSecurityState(),MD=async()=>(await J()).getSessionUserSettingsState(),ND=async e=>(await J()).updateSessionUserSettings(e),PD=async e=>
8(await J()).unlockSession({method:`pin`,pin:e}),FD=async()=>(await J()).unlockBiometric(),ID=async()=>(await J()).getBiometricStatus(),LD=async e=>(await J()).setPin(e),RD=async()=>{await(await J()).clearPin()},zD=async()=>(await J()).enrollBiometric({rpName:AD}),BD=async()=>{await(await J()).clearBiometric()},VD=async()=>{await(await J()).resetLocalVault()},HD={securityState:[`sessionSecurityState`],userSettings:[`sessionUserSettings`],biometricStatus:[`biometricStatus`]},UD=e=>Xc({error:e,fallbackMessage:z.t(`Something went wrong`)}),WD=e=>{e.invalidateQueries({queryKey:HD.securityState}),e.invalidateQueries({queryKey:HD.userSettings}),e.invalidateQueries({queryKey:HD.biometricStatus})},GD=()=>N({queryKey:HD.securityState,queryFn:jD}),KD=e=>F({...GD(),staleTime:0,...e}),qD=()=>N({queryKey:HD.userSettings,queryFn:MD}),JD=e=>F({...qD(),staleTime:0,...e}),YD=()=>N({queryKey:HD.biometricStatus,queryFn:ID}),XD=e=>F({...YD(),staleTime:0,...e}),ZD=()=>{let e=P();return M({mutationFn:PD,onSuccess:()=>WD(e),onError:e=>{b({message:UD(e),variant:`attention`})}})},QD=()=>{let e=P();return M({mutationFn:FD,onSuccess:()=>WD(e),onError:e=>{b({message:UD(e),variant:`attention`})}})},$D=()=>{let e=P();return M({mutationFn:ND,onSuccess:()=>WD(e),onError:e=>{b({message:UD(e),variant:`attention`})}})},eO=()=>{let e=P();return M({mutationFn:LD,onSuccess:()=>{WD(e),b({message:z.t(`PIN set`),variant:`success`})},onError:e=>{b({message:UD(e),variant:`attention`})}})},tO=()=>{let e=P();return M({mutationFn:RD,onSuccess:()=>{WD(e),b({message:z.t(`PIN removed`),variant:`success`})},onError:e=>{b({message:UD(e),variant:`attention`})}})},nO=()=>{let e=P();return M({mutationFn:zD,onSuccess:()=>WD(e),onError:e=>{b({message:UD(e),variant:`attention`})}})},rO=()=>{let e=P();return M({mutationFn:BD,onSuccess:()=>{WD(e),b({message:z.t(`Biometric unlock disabled`),variant:`success`})},onError:e=>{b({message:UD(e),variant:`attention`})}})},iO=()=>M({mutationFn:VD,onError:e=>{b({message:UD(e),variant:`attention`})}}),aO=()=>{let e=zu(),{data:t,isLoading:n}=nG(),[r,i]=(0,I.useState)(()=>Ay()),[a,o]=(0,I.useState)(null),s=t?.id,c=(0,I.useCallback)(async()=>{try{let t=e.token;if(!e.isValid||!t||!s)return;o(null),await ky({authToken:t,accountId:s,network:{baseUrl:`${R?.API_URL}/passwords`,onAuthTokenError:async()=>{let t=await e.refreshSession();if(!t)throw Error(`Password SDK auth refresh did not return a token`);return t}}}),o(null),i(Ay())}catch(e){o(e instanceof Error?e.message:`SDK initialization failed`),console.log(e)}},[s,e]);(0,I.useEffect)(()=>{c()},[s,c,e.isValid]);let l=e.isValid&&!!e.token&&!s&&n;return{loading:!a&&(l||e.isValid&&!!e.token&&!r&&!!s),error:a,initSdk:c}},oO=`pm_setup_complete`,sO=()=>{localStorage.setItem(oO,`true`)},cO=`You must save your Recovery Phrase before leaving. Without it, you cannot recover your account if you forget your Master Password. 9 10Are you sure you want to leave?`,lO=({isConfirmed:e,isActive:t,warningMessage:n=cO})=>{let r=t&&!e;return Nr(()=>r?!window.confirm(n):!1),(0,I.useEffect)(()=>{if(!r)return;let e=e=>{e.preventDefault(),e.returnValue=``};return window.addEventListener(`beforeunload`,e),()=>window.removeEventListener(`beforeunload`,e)},[r]),{confirmAndComplete:(0,I.useCallback)(()=>{sO()},[])}},uO=({Icon:e,title:t,body:n,actions:r})=>(0,L.jsxs)(T,{alignItems:`center`,spacing:3,p:3,border:1,borderColor:`neutral100`,borderRadius:2,marginX:`auto`,marginTop:6,marginBottom:`auto`,children:[(0,L.jsx)(O,{sx:e=>({backgroundColor:e.extendPalette.neutral50,padding:e.spacing(1.125),borderRadius:e.extendStyles.radiusM,lineHeight:0}),children:(0,L.jsx)(e,{size:30})}),(0,L.jsxs)(T,{alignItems:`center`,spacing:1,children:[(0,L.jsx)(k,{variant:`titleL`,children:t}),(0,L.jsx)(k,{variant:`bodyM`,color:`neutral400`,textAlign:`center`,children:n})]}),r]}),dO=()=>(0,L.jsx)(uO,{Icon:xt,title:`Password Manager Not Available`,body:`Ask your team owner or admin to enroll to password manager`,actions:(0,L.jsx)(A,{variant:`tertiaryBlack`,onClick:()=>{window.location.reload()},children:`Refresh`})}),fO=()=>(0,L.jsx)(O,{display:`flex`,justifyContent:`center`,alignItems:`center`,width:1,height:`100%`,flex:1,children:(0,L.jsx)(yn,{})}),pO=(0,I.createContext)({}),mO=()=>(0,I.useContext)(pO),hO=({children:e})=>{let[t,n]=(0,I.useState)(!1),[r,i]=(0,I.useState)(!1),[a,o]=(0,I.useState)(!1),[s,c]=(0,I.useState)(!1);return(0,L.jsx)(pO.Provider,{value:{isAuth:t,setIsAuth:n,ignoreAuthLoginEvents:r,setIgnoreAuthLoginEvents:i,isSyncing:a,setIsSyncing:o,hasCompletedInitialSync:s,setHasCompletedInitialSync:c},children:e})},gO=(e={})=>{let{enabled:t=!0}
10=e,{setIsAuth:n,setHasCompletedInitialSync:r,ignoreAuthLoginEvents:i}=mO(),a=P(),o=(0,I.useRef)(i);(0,I.useEffect)(()=>{o.current=i},[i]),(0,I.useEffect)(()=>{if(!t)return;let e=!0,i=null,s=()=>{e&&(o.current||(n(!0),Py()))},c=()=>{e&&(n(!1),r(!1))},l=()=>{e&&n(!1)},u=()=>{e&&WD(a)};return(async()=>{try{if(i=await J(),!e)return;let t=await i.isLoggedIn();e&&n(t),i.on(`auth:login`,s),i.on(`auth:logout`,c),i.on(`auth:locked`,l),i.on(`session-policy:updated`,u)}catch{}})(),()=>{e=!1,i&&(i.off(`auth:login`,s),i.off(`auth:logout`,c),i.off(`auth:locked`,l),i.off(`session-policy:updated`,u))}},[t,n,r,a])},_O=e(y()),vO=e=>typeof e==`boolean`?e:!1,yO=e=>({...e,sortBy:e.sortBy??`updated`,archived:vO(e.archived)}),bO=e=>{let t=e.permission;return{...e,permission:t,shares:e.shares??[],name:e.fields.name||``,shared:e.isShared,createdAt:new Date(e.createdAt).toISOString(),updatedAt:new Date(e.updatedAt).toISOString()}},xO=async e=>{let t=await(await J()).createDirectory(e.fields,e.parentId??void 0);return Py(),bO(t)},SO=async e=>{let t=await(await J()).updateDirectory(e.directoryId,e.fields);return Py(),bO(t)},CO=async({directoryId:e,parentId:t})=>{let n=await(await J()).moveDirectory(e,t);return Py(),bO(n)},wO=async e=>{await(await J()).archiveDirectory(e),Py()},TO=async e=>{await(await J()).unarchiveDirectory(e),Py()},EO=async e=>(await(await J()).getDirectories(yO(e))).map(bO),DO=async e=>bO(await(await J()).getDirectory(e)),OO=async e=>(await J()).getDirectoryShares(e,{includeInherited:!0,includePending:!0}),kO=async(e,t)=>{let n=await J();await n.shareDirectoryWithUsers(e,t.map(({userId:e,email:t,access:n})=>({userId:e,email:t,access:n}))),await n.syncNow(),Py()},AO={all:[`directories`],directories:e=>[`directories`,e],directory:e=>[`directories`,`item`,e],directoryShares:e=>[`directories`,`shares`,e]},jO=AO,MO=e=>e.state.isInvalidated,NO=e=>Xc({error:e,fallbackMessage:z.t(`Something went wrong`)}),PO={staleTime:1/0,refetchOnMount:MO,refetchOnReconnect:!1,refetchOnWindowFocus:!1,retry:!1},FO=()=>M({mutationFn:xO,onSuccess:()=>{b({message:z.t(`Folder created`),variant:`success`})},onError:e=>{b({message:NO(e),variant:`attention`})}}),IO=()=>M({mutationFn:({silent:e,...t})=>SO(t),onSuccess:(e,t)=>{t.silent||b({message:z.t(`Folder renamed`),variant:`success`})},onError:e=>{b({message:NO(e),variant:`attention`})}}),LO=()=>M({mutationFn:({silent:e,...t})=>CO(t),onSuccess:(e,t)=>{t.silent||b({message:z.t(`Folder moved`),variant:`success`})},onError:e=>{b({message:NO(e),variant:`attention`})}}),RO=()=>M({mutationFn:wO,onSuccess:()=>{b({message:z.t(`Folder removed`),variant:`success`})},onError:e=>{b({message:NO(e),variant:`attention`})}}),zO=()=>M({mutationFn:TO,onSuccess:()=>{b({message:z.t(`Folder restored`),variant:`success`})},onError:e=>{b({message:NO(e),variant:`attention`})}}),BO=e=>N({queryKey:AO.directories(e),queryFn:()=>EO(e),...PO}),VO=e=>N({queryKey:AO.directory(e),queryFn:()=>DO(e),...PO}),HO=e=>N({queryKey:AO.directoryShares(e),queryFn:()=>OO(e),...PO}),UO=(e,t)=>F({...BO(e),...t}),WO=(e,t)=>F({...VO(e),enabled:!!e,...t}),GO=(e,t)=>F({...HO(e),enabled:!!e,...t}),KO=()=>{let e=P();return M({mutationFn:({directoryId:e,users:t})=>kO(e,t),onSuccess:()=>{b({message:z.t(`Directory shared`),variant:`success`}),e.invalidateQueries({queryKey:jO.all})},onError:e=>{b({message:NO(e),variant:`attention`})}})},qO=e=>!!e.shared,JO=Di,YO=Ti,XO={password:`Password`,sshKey:`SSH key`,apiCredential:`API credential`,database:`Database`,server:`Server`,softwareLicense:`Software license`,wirelessRouter:`Wireless router`,cryptoWallet:`Crypto wallet`,generic:`Generic secret`},ZO=[`Visa`,`Mastercard`,`Amex`,`Discover`,`Diners Club`,`JCB`,`Maestro`,`UnionPay`,`RuPay`],QO=[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`,`10`,`11`,`12`],$O=Ci,ek={login:`Login`,card:`Card`,identity:`Identity`,note:`Note`,document:`Document`,secret:`Secret`,generic:`Generic`},tk={login:`login`,password:`password`,url:`url`,additionalUrls:`additionalUrlsText`,tfaSecret:`tfaSecret`,notes:`notes`,cardNumber:`cardNumber`,cardholderName:`cardholderName`,brand:`brand`,expMonth:`expMonth`,expYear:`expYear`,cvv:`cvv`,billingAddress:`billingAddress`,firstName:`firstName`,lastName:`lastName`,middleName:`middleName`,fullName:`fullName`,email:`email`,phone:`phone`,address:`address`,company:`company`,jobTitle:`jobTitle`,documentNumber:`documentNumber`,issuer:`issuer`,
10issueDate:`issueDate`,expiryDate:`expiryDate`,country:`country`,bankAccount:`bankAccount`,routingNumber:`routingNumber`,taxId:`taxId`,birthDate:`birthDate`,secretSubtype:`secretSubtype`,secret:`secret`,privateKey:`privateKey`,publicKey:`publicKey`,host:`host`,port:`port`,files:`files`},nk={login:{kind:`text`,label:`Login`,placeholder:`Email or Username`},password:{kind:`password`,label:`Password`,placeholder:`Type or generate password`,sensitive:!0},url:{kind:`text`,label:`Website`,placeholder:`https://`},additionalUrls:{kind:`textarea`,label:`Additional URLs`,placeholder:`One URL per line`,multilineRows:3},tfaSecret:{kind:`tfa`,label:`2FA code`,sensitive:!0},notes:{kind:`textarea`,label:`Notes`,multilineRows:4},cardNumber:{kind:`text`,label:`Card number`,placeholder:`Number`,sensitive:!0},cardholderName:{kind:`text`,label:`Cardholder name`},brand:{kind:`select`,label:`Brand`,enumValues:ZO},expMonth:{kind:`select`,label:`Expiration month`,enumValues:QO},expYear:{kind:`text`,label:`Expiration year`},cvv:{kind:`password`,label:`Security code (CVV)`,sensitive:!0},billingAddress:{kind:`textarea`,label:`Billing address`,placeholder:`Type billing address`,multilineRows:3},firstName:{kind:`text`,label:`First name`,placeholder:`Ada`},lastName:{kind:`text`,label:`Last name`,placeholder:`Lovelace`},middleName:{kind:`text`,label:`Middle name`,placeholder:`Byron`},fullName:{kind:`text`,label:`Full name`,placeholder:`Ada Byron Lovelace`},email:{kind:`text`,label:`Email`,placeholder:`[email protected]`},phone:{kind:`text`,label:`Phone number`,placeholder:`+1 555 123 4567`},address:{kind:`textarea`,label:`Address`,placeholder:`Type address`,multilineRows:3},company:{kind:`text`,label:`Company`,placeholder:`Spendbase`},jobTitle:{kind:`text`,label:`Job title`,placeholder:`Engineer`},documentNumber:{kind:`text`,label:`Document number`,placeholder:`AA123456`},issuer:{kind:`text`,label:`Issuer`,placeholder:`Government authority`},issueDate:{kind:`text`,label:`Issue date`,placeholder:`YYYY-MM-DD`},expiryDate:{kind:`text`,label:`Expiry date`,placeholder:`YYYY-MM-DD`},country:{kind:`text`,label:`Country`,placeholder:`United States`},bankAccount:{kind:`text`,label:`Bank account`,placeholder:`Account number or IBAN`,sensitive:!0},routingNumber:{kind:`text`,label:`Routing number`,placeholder:`021000021`,sensitive:!0},taxId:{kind:`text`,label:`Tax ID`,placeholder:`123-45-6789`,sensitive:!0},birthDate:{kind:`text`,label:`Birth date`,placeholder:`YYYY-MM-DD`},secretSubtype:{kind:`select`,label:`Secret type`,required:!0,enumValues:Ci},secret:{kind:`textarea`,label:`Secret`,placeholder:`Type secret value`,multilineRows:4,sensitive:!0},privateKey:{kind:`textarea`,label:`Private key`,placeholder:`Paste private key`,multilineRows:4,sensitive:!0},publicKey:{kind:`textarea`,label:`Public key`,placeholder:`Paste public key`,multilineRows:4,sensitive:!0},host:{kind:`text`,label:`Host`,placeholder:`db.example.com`},port:{kind:`text`,label:`Port`,placeholder:`5432`},files:{kind:`files`,label:`Files`}},rk={login:[`login`,`password`,`url`,`additionalUrlsText`,`tfaSecret`,`notes`],card:[`cardNumber`,`cardholderName`,`brand`,`expMonth`,`expYear`,`cvv`,`billingAddress`,`notes`],identity:[`fullName`,`firstName`,`middleName`,`lastName`,`email`,`phone`,`address`,`company`,`jobTitle`,`documentNumber`,`issuer`,`issueDate`,`expiryDate`,`country`,`bankAccount`,`routingNumber`,`taxId`,`birthDate`,`notes`],note:[`notes`],document:[`files`,`notes`],secret:[`secretSubtype`,`login`,`password`,`url`,`additionalUrlsText`,`secret`,`privateKey`,`publicKey`,`host`,`port`,`expiryDate`,`tfaSecret`,`files`,`notes`],generic:[`notes`]},ik={login:[`login`,`password`,`url`,`additionalUrlsText`,`tfaSecret`,`notes`],card:[`cardholderName`,`cardNumber`,`brand`,`expMonth`,`expYear`,`cvv`,`billingAddress`,`notes`],identity:[`firstName`,`middleName`,`lastName`,`fullName`,`email`,`phone`,`address`,`company`,`jobTitle`,`documentNumber`,`issuer`,`issueDate`,`expiryDate`,`country`,`bankAccount`,`routingNumber`,`taxId`,`birthDate`,`notes`],note:[`notes`],document:[`files`,`notes`],secret:[`secretSubtype`,`login`,`password`,`url`,`additionalUrlsText`,`secret`,`privateKey`,`publicKey`,`host`,`port`,`expiryDate`,`tfaSecret`,`files`,`notes`],generic:[`notes`]}
10,ak={login:[`login`,`url`],card:[`cardholderName`,`cardNumber`,`brand`],identity:[`fullName`,`email`,`phone`,`documentNumber`],note:[`notes`],document:[`files`,`notes`],secret:[`login`,`host`,`secretSubtype`,`url`],generic:[`notes`]},ok=e=>z.t(e),sk=e=>e in nk,ck=e=>{let t=nk[e];return{name:tk[e],supportedKey:e,kind:t.kind,label:t.label,placeholder:t.placeholder,multilineRows:t.multilineRows,required:t.required,sensitive:t.sensitive,enumValues:t.enumValues}},lk=e=>ok(ek[e]),uk=e=>ok(XO[e]),dk=()=>JO.map(e=>({label:lk(e),value:e})),fk=()=>$O.map(e=>({label:uk(e),value:e})),pk=e=>{let t=new Map;for(let n of ki(e))if(sk(n)){let e=ck(n);t.set(e.name,e)}return ik[e].map(e=>t.get(e)).filter(Boolean)},mk=e=>{let t=new Set([`title`,`recordType`,`__importData`]);for(let n of pk(e))t.add(n.supportedKey);return e===`login`&&t.add(`passkeys`),t.add(`files`),t},hk=(e,t)=>{let n=e.name===`additionalUrlsText`?t.additionalUrls:t[e.supportedKey];if(Array.isArray(n)){let e=n.map(e=>typeof e==`string`?e.trim():``).filter(Boolean);return e.length>0?e.join(` 11`):null}if(typeof n!=`string`)return null;let r=n.trim();return r?e.name===`secretSubtype`&&n in XO?uk(n):r:null},gk=e=>{let t=new Map(pk(e.recordType).map(e=>[e.name,e]));return rk[e.recordType].map(n=>{let r=t.get(n);if(!r)return null;let i=hk(r,e);return i?{name:r.name,kind:r.kind,label:r.label,value:i,sensitive:r.sensitive}:null}).filter(Boolean)},_k=e=>{if(typeof e!=`string`)return null;let t=e.trim();return t.length>0?t:null},vk=e=>{let t=e.replace(/\D/g,``);return t.length<4?e:`â¢â¢â¢â¢ ${t.slice(-4)}`},yk=e=>{let t=ak[e.recordType]?e.recordType:`login`;for(let n of ak[t]){let t=e[n];if(n===`files`&&Array.isArray(t)&&t.length>0)return t.length===1?z.t(`1 file`):z.t(`{{count}} files`,{count:t.length});let r=_k(t);if(r)return n===`cardNumber`?vk(r):n===`secretSubtype`&&r in XO?uk(r):n===`notes`?r.replace(/\s+/g,` `).slice(0,80):r}return lk(t)},bk=e=>!!e&&typeof e==`object`&&!Array.isArray(e),xk=e=>typeof e==`boolean`?e:!1,Sk=e=>({...e,sortBy:e.sortBy??`updated`,archived:xk(e.archived)}),Ck=(e,t)=>{if(!bk(e))return;let n=bk(e.fields),r=typeof e.source==`string`&&e.source.trim().length>0,i=typeof e.recordType==`string`&&e.recordType.trim().length>0,a={...e};delete a.source,delete a.sourceId,delete a.recordType,delete a.fields;let o=n||Object.keys(a).length>0?{...a,...n?e.fields:{}}:void 0;if(n&&r&&i&&Object.keys(a).length===0)return e;let s={source:r?e.source:`keeper`,...o?{fields:o}:{}};typeof e.sourceId==`string`&&e.sourceId.trim().length>0&&(s.sourceId=e.sourceId);let c=i?e.recordType:typeof t==`string`&&t.trim().length>0?t:void 0;return c&&(s.recordType=c),s},wk=e=>e==null||typeof e==`string`&&e.trim().length===0,Tk=(e,t)=>{if(Object.is(e,t))return!0;try{return JSON.stringify(e)===JSON.stringify(t)}catch{return!1}},Ek=(e,t)=>{if(!t||!bk(t.fields))return e;let n=mk(e.recordType),r={...t.fields},i=!1,a={...e};for(let[e,o]of Object.entries(t.fields)){if(!n.has(e)||wk(o))continue;let t=a[e];if(wk(t)){a[e]=o,delete r[e],i=!0;continue}Tk(t,o)&&(delete r[e],i=!0)}return i?(a.__importData={...t,fields:r},a):e},Dk=e=>{let t=YO(e.data?.recordType)?e.data:{...e.data,recordType:`login`},n=t.__importData,r=Ck(n,t.recordType),i=r&&r!==n?{...t,__importData:r}:t,a=Ek(i,i.__importData);return{...e,data:a,permission:e.permission,shares:e.shares??[]}},Ok=async e=>{let{directoryId:t,...n}=e,r=await(await J()).createRecord(t,n);return Py(),Dk(r)},kk=async e=>{let{recordId:t,...n}=e,r=await(await J()).updateRecord(t,n);return Py(),Dk(r)},Ak=async e=>{await(await J()).archiveRecord(e),Py()},jk=async e=>{await(await J()).unarchiveRecord(e),Py()},Mk=async({recordId:e,directoryId:t})=>{let n=await(await J()).moveRecord(e,t);return Py(),Dk(n)},Nk=async({recordId:e,directoryId:t})=>{await(await J()).linkRecord(e,t),Py()},Pk=async e=>(await J()).getRecordLinks(e),Fk=async({recordId:e,directoryId:t})=>{await(await J()).unlinkRecord(e,t),Py()},Ik=async e=>(await J()).countRecords(e),Lk=async e=>(await(await J()).getRecords(Sk(e))).map(Dk),Rk=async(e,t)=>{let n=await J();return Dk(t?await n.getRecord(e,{directoryId:t}):await n.getRecord(e))},zk=async(e,t)=>(await J()).getRecordShares(e,{directoryId:t,includeInherited:!0,includePending:!0}),Bk=async(e,t)=>{let n=await J();await n.shareRecordWithUsers(e,t.map(({userId:e,email:t,access:n})=>({userId:e,email:t,access:n}))),await n.syncNow(),Py()},Vk={all:[`records`],records:e=>[...Vk.all,e],recordsByDirectoryId:e=>[...Vk.all,`directory`,e],record:(e,t)=>t?[...Vk.all,`item`,e,{directoryId:t}]:[...Vk.all,`item`,e],recordLinks:e=>[...Vk.all,`links`,e],recordShares:(e,t)=>t?[...Vk.all,`shares`,e,{directoryId:t}]:[...Vk.all,`shares`,e],count:e=>[...Vk.all,`count`,e]},Hk=Vk,Uk=e=>e.state.isInvalidated,Wk=e=>Xc({error:e,fallbackMessage:z.t(`Something went wrong`)}),Gk={staleTime:1/0,refetchOnMount:Uk,refetchOnReconnect:!1,refetchOnWindowFocus:!1,retry:!1},Kk=()=>M({mutationFn:Ok,onSuccess:()=>{b({message:z.t(`Record created`),variant:`success`})},onError:e=>{b({message:Wk(e),variant:`attention`})}}),qk=()=>M({mutationFn:kk,onSuccess:()=>{b({message:z.t(`Record saved`),variant:`success`})},onError:e=>{b({message:Wk(e),variant:`attention`})}}),Jk=()=>M({mutationFn:Ak,onSuccess:()=>{b({message:z.t(`Record deleted`),variant:`success`})},onError:e=>{b({message:Wk(e),variant:`attention`})}}),Yk=()=>{let e=P();return M({mutationFn:Mk,onSuccess:(t,n)=>{b({message:z.t(`Record moved`),variant:`success`});let r=n.previousDirectoryId??null,i=t.directoryId??null;for(let[i,a]of e.getQueriesData({queryKey:Hk.all}))if(Array.isArray(a)&&i.length===2&&typeof i[1]==`object`&&i[1]!==null){let o=!1,s=a.map(e=>e.id===t.id&&(n.previousDirectoryId===void 0||(e.directoryId??null)===r)?(o=!0,t):e);o&&e.setQueryData(i,s)}let a=new Set([r,i].filter(e=>typeof e==`string`));a.size>
110&&e.invalidateQueries({predicate:e=>{let[n,r]=e.queryKey;if(n!==Hk.all[0])return!1;let i=r===`directory`||r===`count`?e.queryKey[2]:r===`item`&&e.queryKey[2]===t.id?e.queryKey[3]:null;return typeof i==`object`&&!!i&&`directoryId`in i&&a.has(i.directoryId)}}),e.setQueryData(Hk.record(t.id),t)},onError:e=>{b({message:Wk(e),variant:`attention`})}})},Xk=()=>{let e=P();return M({mutationFn:Nk,onSuccess:()=>{b({message:z.t(`Record linked`),variant:`success`}),e.invalidateQueries({queryKey:Hk.all})},onError:e=>{b({message:Wk(e),variant:`attention`})}})},Zk=()=>{let e=P();return M({mutationFn:Fk,onSuccess:()=>{b({message:z.t(`Link removed`),variant:`success`}),e.invalidateQueries({queryKey:Hk.all})},onError:e=>{b({message:Wk(e),variant:`attention`})}})},Qk=()=>M({mutationFn:jk,onSuccess:()=>{b({message:z.t(`Record restored`),variant:`success`})},onError:e=>{b({message:Wk(e),variant:`attention`})}}),$k=e=>N({queryKey:Vk.records(e),queryFn:()=>Lk(e),...Gk}),eA=(e,t)=>F({...$k(e),...t}),tA=(e,t)=>N({queryKey:Vk.record(e,t),queryFn:()=>Rk(e,t),...Gk}),nA=(e,t)=>N({queryKey:Vk.recordShares(e,t),queryFn:()=>zk(e,t),...Gk}),rA=e=>N({queryKey:Vk.recordLinks(e),queryFn:()=>Pk(e),...Gk}),iA=e=>N({queryKey:Vk.count(e),queryFn:()=>Ik(e),...Gk}),aA=(e,t)=>F({...iA(e),...t}),oA=(e,t)=>{let{directoryId:n,...r}=t??{};return F({...tA(e,n),enabled:!!e,...r})},sA=(e,t)=>{let{directoryId:n,...r}=t??{};return F({...nA(e,n),enabled:!!e,...r})},cA=(e,t)=>F({...rA(e),enabled:!!e,...t}),lA=()=>{let e=P();return M({mutationFn:({recordId:e,users:t})=>Bk(e,t),onSuccess:()=>{b({message:z.t(`Record shared`),variant:`success`}),e.invalidateQueries({queryKey:Hk.all})},onError:e=>{b({message:Wk(e),variant:`attention`})}})},uA=e=>`${e.id}:${e.directoryId??`root`}`,dA=e=>e===`edit`||e===`manage`||e===`owner`,fA=e=>!!e?.permission,pA=(e,t)=>e.permission===`owner`?dA(t.permission):!!t.permission,mA=e=>dA(e?.permission),hA=e=>dA(e?.permission),gA=(e,t)=>e?.permission===`owner`&&t!=null&&t.permission!==`owner`,_A=e=>typeof e.isShared==`boolean`?e.isShared:e.permission!==`owner`,vA=new Set([`source`,`sourceId`,`recordType`,`fields`]),yA=e=>!!e&&typeof e==`object`&&!Array.isArray(e),bA=e=>typeof e==`string`&&e.trim().length>0,xA=(e,t)=>Object.entries(e).reduce((e,[n,r])=>(t.has(n)||r===void 0||(e[n]=r),e),{}),SA=e=>{if(!yA(e))return null;let t=yA(e.fields)?{...e.fields}:xA(e,vA);return{source:bA(e.source)?e.source:void 0,sourceId:bA(e.sourceId)?e.sourceId:void 0,recordType:YO(e.recordType)?e.recordType:void 0,fields:t}},CA=e=>xA(e,mk(e.recordType)),wA=e=>{let t=SA(e.data.__importData),n=CA(e.data),r={...t?.fields??{},...n};return Object.keys(r).length===0?null:{title:e.data.title,recordType:t?.recordType??e.data.recordType,...t?.source?{source:t.source}:{},...t?.sourceId?{sourceId:t.sourceId}:{},fields:r}},TA=30,EA=6,DA=`sha1`,OA=wi({MIN_SECRET_BYTES:1}),kA=e=>{if(!e)return;let t=Number.parseInt(e,10);return Number.isFinite(t)&&t>0?t:void 0},AA=e=>{let t=kA(e);if(t===6||t===7||t===8)return t},jA=e=>{if(!e)return;let t=e.toLowerCase();if(t===`sha1`||t===`sha256`||t===`sha512`)return t},MA=e=>{let t=e.trim();if(!t.toLowerCase().startsWith(`otpauth://`))return null;try{let e=new URL(t);if(e.protocol!==`otpauth:`)return null;let n=e.hostname?.toLowerCase();if(n&&n!==`totp`&&n!==`hotp`)return null;let r=e.searchParams,i=r.get(`secret`);return i?{secret:i,digits:AA(r.get(`digits`)),period:kA(r.get(`period`)),algorithm:jA(r.get(`algorithm`))}:null}catch{return null}},NA=e=>e.trim().replace(/[\s-]+/g,``).replace(/=+$/g,``).toUpperCase(),PA=e=>{let[t,n]=(0,I.useState)(null),[r,i]=(0,I.useState)(0);return(0,I.useEffect)(()=>{if(!e){n(null),i(0);return}let t=MA(e),r=NA(t?.secret??e),a=t?.period??TA,o=t?.digits??EA,s=t?.algorithm??DA;if(!r){n(null),i(0);return}let c=()=>{let e=Math.floor(Date.now()/1e3);i(e%a/a*100);try{n(Oi({secret:r,period:a,digits:o,algorithm:s,epoch:e,guardrails:OA}))}catch{n(null)}};c();let l=setInterval(c,1e3);return()=>{clearInterval(l)}},[e]),{code:t,progress:r}},FA=1e4,IA=async(e,t)=>{let n=null;try{return await Promise.race([e,new Promise(e=>{n=setTimeout(()=>e(void 0),t)})])}finally{n&&clearTimeout(n)}},LA=async(e,t=FA)=>{await IA(e(),t)},RA=250,zA=50,BA=12e4,VA=8e3,HA=100,UA=2,WA=200,GA=100,KA=(e,t)=>{let n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n},qA=async(e,t,n)=>{let r=0,i=Array.from({length:Math.min(t,e.length)},async()=>{for(;r<e.length;){let t=e[r];r+=1,await n(t)}});await Promise.all(i)},JA=(e,t)=>
11{let n=new Map;for(let[r,i]of e)if(n.set(r,i),e.delete(r),n.size>=t)break;return n},YA=(e,t)=>t?`${e}::${t}`:e,XA=e=>{let[t,n]=e.split(`::`);return{recordId:t,directoryId:n}},ZA=e=>`full`,QA=e=>!!e&&typeof e==`object`&&!Array.isArray(e),$A=e=>e===`deleted`,ej=e=>e===`deleted`,tj=e=>e===`created`||e===`deleted`||e===`archived`||e===`unarchived`||e===`moved`,nj=e=>e===`deleted`||e===`archived`||e===`unarchived`,rj={deleted:3,archived:3,moved:2,updated:2,created:2,unarchived:2},ij={deleted:3,archived:3,updated:2,created:2,unarchived:2},aj=(e,t)=>{let n=e?.globalAction;return n?rj[t]>=rj[n]?t:n:t},oj=(e,t)=>e?rj[t]>=rj[e]?t:e:t,sj=(e,t)=>e?ij[t]>=ij[e]?t:e:t,cj=e=>{if(e[0]!==Hk.all[0])return null;if(e.length===2&&QA(e[1]))return{type:`all`,params:e[1]};if(e.length===3&&e[1]===`directory`&&QA(e[2])){let t=e[2];return t.directoryId?{type:`directory`,params:t}:null}return null},lj=e=>e[0]!==jO.all[0]||e.length!==2||!QA(e[1])?null:e[1],uj=(e,t)=>!(e.id!==t.id||e.directoryId!==t.directoryId||e.updatedAt!==t.updatedAt||e.createdAt!==t.createdAt||e.archivedAt!==t.archivedAt||e.permission!==t.permission||e.isShared!==t.isShared||!(0,_O.default)(e.data,t.data)||!(0,_O.default)(e.shares,t.shares)),dj=(e,t)=>!(e.id!==t.id||e.parentId!==t.parentId||e.updatedAt!==t.updatedAt||e.createdAt!==t.createdAt||e.archivedAt!==t.archivedAt||e.permission!==t.permission||e.shared!==t.shared||e.name!==t.name||!(0,_O.default)(e.fields,t.fields)||!(0,_O.default)(e.shares,t.shares)),fj=(e,t)=>{let n=t.params;if(t.type===`directory`&&e.directoryId!==n.directoryId||n.shared!==void 0&&n.shared!==null&&n.shared!==_A(e))return!1;if(n.archived!==void 0){let t=!!e.archivedAt;if(n.archived!==t)return!1}return!(n.createdFrom!==void 0&&e.createdAt<n.createdFrom||n.createdTo!==void 0&&e.createdAt>n.createdTo||n.updatedFrom!==void 0&&e.updatedAt<n.updatedFrom||n.updatedTo!==void 0&&e.updatedAt>n.updatedTo)},pj=(e,t)=>{if(t.parentId!==void 0&&t.parentId!==e.parentId||t.shared!==void 0&&t.shared!==null&&t.shared!==qO(e))return!1;if(t.archived!==void 0){let n=!!e.archivedAt;if(t.archived!==n)return!1}let n=Date.parse(e.createdAt),r=Date.parse(e.updatedAt);return!(t.createdFrom!==void 0&&n<t.createdFrom||t.createdTo!==void 0&&n>t.createdTo||t.updatedFrom!==void 0&&r<t.updatedFrom||t.updatedTo!==void 0&&r>t.updatedTo)},mj=(e,t)=>{if(!t.sortBy)return e;let n=t.sortBy===`created`?`createdAt`:`updatedAt`,r=t.sortDirection||`DESC`;return[...e].sort((e,t)=>{let i=e[n]-t[n];return r===`ASC`?i:-i})},hj=(e,t)=>{if(!t.sortBy)return e;let n=t.sortDirection||`DESC`;return[...e].sort((e,r)=>{let i=Date.parse(t.sortBy===`created`?e.createdAt:e.updatedAt)-Date.parse(t.sortBy===`created`?r.createdAt:r.updatedAt);return n===`ASC`?i:-i})},gj=(e,t,n,r,i,a)=>{if(!Array.isArray(e))return e;let o=a!==void 0||n?.directoryId!==void 0,s=a??n?.directoryId,c=e=>e.id===t?!o||e.directoryId===s:!1,l=e.findIndex(c);if($A(r)||!n||!fj(n,i))return l===-1?e:$A(r)&&!o?e.filter(e=>e.id!==t):e.filter(e=>!c(e));if(!n)return e;if(l===-1)return mj([...e,n],i.params);let u=e[l];if(uj(u,n))return e;let d=[...e];return d[l]=n,mj(d,i.params)},_j=(e,t,n,r,i)=>{if(!Array.isArray(e))return e;let a=e.findIndex(e=>e.id===t);if(ej(r)||!n||!pj(n,i))return a===-1?e:e.filter(e=>e.id!==t);if(!n)return e;if(a===-1)return hj([...e,n],i);let o=e[a];if(dj(o,n))return e;let s=[...e];return s[a]=n,hj(s,i)},vj=(e,t)=>{if(!Array.isArray(e))return null;let n=cj(e);return n?{queryKey:e,meta:n,data:t,changed:!1}:null},yj=e=>{if(!Array.isArray(e)||e[0]!==Hk.all[0]||e[1]!==`item`||typeof e[2]!=`string`)return null;let t=e[3];return t!==void 0&&(!QA(t)||t.directoryId!==void 0&&typeof t.directoryId!=`string`)?null:{queryKey:e,recordId:e[2],directoryId:QA(t)&&typeof t.directoryId==`string`?t.directoryId:void 0}},bj=(e,t)=>Array.isArray(e)?Array.from(new Set(e.filter(e=>e.id===t).map(e=>e.directoryId))):[],xj=e=>Array.from(new Set((e??[]).filter(e=>typeof e==`string`&&e.trim().length>0))),Sj=(e,t)=>{let n=xj(e.recordDirectoryIds?.[t]);return n.length>0?n:e.recordIds.length!==1||e.recordIds[0]!==t?[]:xj(e.directoryIds)},Cj=e=>Array.from(e.scopedActions.keys()),wj=(e,t)=>{if(!Array.isArray(e))return null;let n=lj(e);return n?{queryKey:e,params:n,data:t,changed:!1}:null},Tj=(e={})=>{let{enabled:t=!0}=e,n=P(),{setIsSyncing:r,setHasCompletedInitialSync:i}=mO(),a=(0,I.useRef)(null),o=(0,I.useRef)(!1),s=(0,I.useRef)(!1),c=(0,I.useRef)(new Map),l=(0,I.useRef)(new Map);(0,I.useEffect)(()=>
11{if(!t)return;let e=!0,u=!1,d=!1,f=null,p=c.current,m=l.current,h=null,g=()=>{r(!1),i(!0)},_=()=>{h&&clearTimeout(h),h=setTimeout(()=>{e&&g()},BA)},v=()=>{h&&=(clearTimeout(h),null)},y=async()=>{if(e){if(o.current){s.current=!0;return}o.current=!0;try{do s.current=!1,await le();while(e&&s.current)}finally{o.current=!1}}},b=(e=RA)=>{a.current||=setTimeout(()=>{a.current=null,y().catch(()=>void 0)},e)},x=()=>{n.invalidateQueries({queryKey:[...Hk.all,`count`]},{cancelRefetch:!1}).catch(()=>void 0)},S=()=>{d=!0,b()},ee=async()=>{x(),await Promise.all([n.invalidateQueries({queryKey:Hk.all,type:`active`},{cancelRefetch:!1}),n.invalidateQueries({queryKey:jO.all,type:`active`},{cancelRefetch:!1})])},te=()=>{[n.invalidateQueries({queryKey:Hk.all,type:`inactive`,refetchType:`none`},{cancelRefetch:!1}),n.invalidateQueries({queryKey:jO.all,type:`inactive`,refetchType:`none`},{cancelRefetch:!1})].forEach(e=>e.catch(()=>void 0))},C=(e,t,n=[])=>{let r=p.get(e)??{scopedActions:new Map};if(n.length===0)r.globalAction=aj(r,t),$A(t)&&r.scopedActions.clear();else if(!$A(r.globalAction??`updated`))for(let e of n)r.scopedActions.set(e,oj(r.scopedActions.get(e),t));p.set(e,r)},w=(e,t)=>{let n=m.get(e);m.set(e,sj(n,t))},ne=e=>{e?.recordIds?.length&&(e.recordIds.forEach(t=>{let n=Sj(e,t);C(t,e.action,n),e.action===`moved`&&n.length>0&&C(t,e.action)}),tj(e.action)?S():b())},re=e=>{e?.directoryIds?.length&&(e.directoryIds.forEach(t=>w(t,e.action)),nj(e.action)?S():b())},ie=e=>{e?.resourceIds?.length&&(e.resourceType===`record`?(e.resourceIds.forEach(e=>C(e,`updated`)),S()):(e.resourceIds.forEach(e=>w(e,`updated`)),S()),b())},ae=()=>{u=!1,r(!0),_()},oe=async()=>{try{te(),await LA(async()=>{await y(),await ee()})}finally{g()}},se=()=>{u||(u=!0,v(),a.current&&=(clearTimeout(a.current),null),oe().catch(()=>void 0))},ce=()=>{u||(u=!0,v(),a.current&&=(clearTimeout(a.current),null),g(),te(),y().catch(()=>void 0))},le=async()=>{if(!e)return;d&&(d=!1,x());let t=JA(p,WA),r=JA(m,GA),i=!1;if(t.size>0){let e=n.getQueriesData({queryKey:[...Hk.all,`item`],type:`active`}).map(([e])=>yj(e)).filter(e=>e!==null),r=n.getQueriesData({queryKey:Hk.all,type:`active`}).map(([e,t])=>vj(e,t)).filter(e=>e!==null);if(e.length>0||r.length>0){let a=new Map([[`full`,new Map]]),o=new Map([[`full`,new Set]]),s=(e,t,n)=>{o.get(n)?.add(YA(e,t))},c=async()=>{await(async e=>{let t=o.get(e),n=a.get(e);if(!t?.size||!n)return;let r=new Map;for(let e of t){let{recordId:t,directoryId:n}=XA(e),i=n??``,a=r.get(i)??new Set;a.add(t),r.set(i,a)}await qA(Array.from(r.entries()).flatMap(([e,t])=>KA(Array.from(t),HA).map(t=>({directoryId:e||void 0,ids:t}))),UA,async({directoryId:e,ids:t})=>{try{f??=await J();let r=await IA(f.getRecords({ids:t,...e?{directoryId:e}:{}}),VA);if(!r){i=!0;for(let r of t)n.set(YA(r,e),void 0);return}let a=r.map(Dk);for(let r of t){let t=a.find(t=>t.id===r&&(!e||t.directoryId===e));n.set(YA(r,e),t??null)}}catch{i=!0;for(let r of t)n.set(YA(r,e),void 0)}})})(`full`)},l=(e,t,n)=>a.get(n)?.get(YA(e,t));for(let n of e){let e=t.get(n.recordId);if(!e||$A(e.globalAction??`updated`))continue;let r=n.directoryId?e.scopedActions.get(n.directoryId):void 0;$A(r??`updated`)||(e.globalAction||r)&&s(n.recordId,n.directoryId,`full`)}for(let[e,n]of t)if(!$A(n.globalAction??`updated`))for(let t of r){let r=ZA(t.meta.params);if(t.meta.type===`directory`){let i=n.scopedActions.get(t.meta.params.directoryId);(n.globalAction||i&&!$A(i))&&s(e,t.meta.params.directoryId,r);continue}if(n.globalAction){for(let n of bj(t.data,e))s(e,n,r);s(e,void 0,r)}for(let[t,i]of n.scopedActions)$A(i)||s(e,t,r)}await c();for(let r of e){let e=t.get(r.recordId);if(!e)continue;let i=r.directoryId?e.scopedActions.get(r.directoryId):void 0;if($A(e.globalAction??`updated`)||$A(i??`updated`)){n.setQueryData(r.queryKey,null);continue}if(e.globalAction||i){let e=l(r.recordId,r.directoryId,`full`);e&&n.setQueryData(r.queryKey,e)}}for(let[e,n]of t)for(let t of r){let r=ZA(t.meta.params);if($A(n.globalAction??`updated`)){let r=gj(t.data,e,null,n.globalAction,t.meta);r!==t.data&&(t.data=r,t.changed=!0);continue}for(let[i,a]of n.scopedActions){if(t.meta.type===`directory`&&t.meta.params.directoryId!==i)continue;let n=$A(a)?null:l(e,i,r);if(n===void 0)continue;
11let o=gj(t.data,e,n,a,t.meta,i);o!==t.data&&(t.data=o,t.changed=!0)}if(!n.globalAction)continue;if(t.meta.type===`directory`){let i=t.meta.params.directoryId,a=l(e,i,r);if(a===void 0)continue;let o=gj(t.data,e,a,n.globalAction,t.meta,i);o!==t.data&&(t.data=o,t.changed=!0);continue}let i=new Set([...bj(t.data,e),...Cj(n)]);for(let a of i){let i=l(e,a,r);if(i===void 0)continue;let o=gj(t.data,e,i,n.globalAction,t.meta,a);o!==t.data&&(t.data=o,t.changed=!0)}let a=l(e,void 0,r);if(a){let r=gj(t.data,e,a,n.globalAction,t.meta,a.directoryId);r!==t.data&&(t.data=r,t.changed=!0)}}for(let e of r)e.changed&&n.setQueryData(e.queryKey,e.data)}}if(r.size>0){let e=n.getQueriesData({queryKey:jO.all,type:`active`}).map(([e,t])=>wj(e,t)).filter(e=>e!==null);if(e.length>0){let t=new Map([[`full`,new Map]]),a=new Map([[`full`,new Set]]);for(let t of e){let e=ZA(t.params),n=a.get(e);for(let[e,t]of r)ej(t)||n?.add(e)}await(async e=>{let n=Array.from(a.get(e)??[]),r=t.get(e);!n.length||!r||await qA(KA(n,HA),UA,async e=>{try{f??=await J();let t=await IA(f.getDirectories({ids:e}),VA);if(!t){i=!0;for(let t of e)r.set(t,void 0);return}let n=t.map(bO);for(let t of e){let e=n.find(e=>e.id===t);e||(i=!0),r.set(t,e)}}catch{i=!0;for(let t of e)r.set(t,void 0)}})})(`full`);let o=(e,n)=>t.get(n)?.get(e);for(let[t,n]of r)for(let r of e){let e=ZA(r.params),i=ej(n)?null:o(t,e);if(i===void 0)continue;let a=_j(r.data,t,i,n,r.params);a!==r.data&&(r.data=a,r.changed=!0)}for(let t of e)t.changed&&n.setQueryData(t.queryKey,t.data)}}i&&ee().catch(()=>void 0),(p.size>0||m.size>0)&&b(zA)};return(async()=>{try{if(f=await J(),!e)return;f.on(`sync:started`,ae),f.on(`records:updated`,ne),f.on(`directories:updated`,re),f.on(`shares:updated`,ie),f.on(`sync:completed`,se),f.on(`sync:failed`,ce),r(!0),_(),f.syncNow().then(()=>{e&&se()}).catch(()=>{e&&(ce(),ee().catch(()=>void 0))})}catch{g()}})().catch(()=>{e&&g()}),()=>{e=!1,h&&clearTimeout(h),a.current&&=(clearTimeout(a.current),null),o.current=!1,s.current=!1,p.clear(),m.clear(),f&&(f.off(`sync:started`,ae),f.off(`records:updated`,ne),f.off(`directories:updated`,re),f.off(`shares:updated`,ie),f.off(`sync:completed`,se),f.off(`sync:failed`,ce))}},[t,n,r,i])},Ej=()=>{let{loading:e,error:t}=aO(),{isAuth:n}=mO();return gO({enabled:!e&&!t}),Tj({enabled:n&&!e&&!t}),e?(0,L.jsx)(fO,{}):t?(0,L.jsx)(dO,{}):(0,L.jsx)(kr,{})},Dj=()=>(0,L.jsx)(hO,{children:(0,L.jsx)(Ej,{})}),Oj=t({OrgNotReadyBlockingScreen:()=>dO,PasswordManagerAuthContext:()=>pO,PasswordManagerAuthContextProvider:()=>hO,PasswordManagerLoader:()=>fO,PasswordManagerMaster:()=>Dj,usePasswordManagerAuthContext:()=>mO}),kj=({children:e})=>{let{isAuth:t}=mO(),{data:n,isLoading:r}=CD(),{data:i}=nG(),a=zr(),[o]=Pr(),s=o.get(jo)===No;if(r)return(0,L.jsx)(O,{display:`flex`,justifyContent:`center`,alignItems:`center`,width:1,height:`100vh`,children:(0,L.jsx)(yn,{})});if(s)return n?null:i?.setupStep!=null&&i.setupStep>=ZW.SelectStartFlow?(0,L.jsx)(Lr,{to:Bo.SET_UP.path,replace:!0}):(0,L.jsx)(Lr,{to:Ks(`/`,{[jo]:No}),replace:!0});if(!t){if(n){let e=a.pathname+a.search;return(0,L.jsx)(Lr,{to:e?Ks(Bo.UNLOCK.path,{[Ao]:e}):Bo.UNLOCK.path,replace:!0})}return(0,L.jsx)(Lr,{to:Bo.SET_UP.path,replace:!0})}return e},Aj=t({AutoPayAccess:()=>nD,CardStageAccess:()=>Hw,HighnoteBlockedAccess:()=>rD,PasswordManagerPrivateRoute:()=>kj,PermissionAccess:()=>Vw,PrivateRoute:()=>oD,PublicRoute:()=>sD,TeamSignedRoute:()=>fD,USOnlyAccess:()=>Uw}),jj=Z((0,I.lazy)(()=>j(()=>import(`./password-manager-set-up-BHZHT32B.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15])))),Mj=Z((0,I.lazy)(()=>j(()=>import(`./password-manager-unlock-E0YMnIhs.js`),__vite__mapDeps([16,1,2,3,4,5,6,7,8,9,10,11,12,13,17,14,15,18])))),Nj=Z((0,I.lazy)(()=>j(()=>import(`./password-manager-recovery-DmN3VZK8.js`),__vite__mapDeps([19,1,6,7,3,4,8,2,5,9,10,11,12,13,17,14])))),Pj=[{path:Bo.SET_UP.path,element:(0,L.jsx)(jj,{})},{path:Bo.UNLOCK.path,element:(0,L.jsx)(Mj,{})},{path:Bo.RECOVERY.path,element:(0,L.jsx)(Nj,{})}],Fj=()=>(0,L.jsx)(O,{width:`100%`,flex:1,height:`100%`,display:`flex`,alignItems:`center`,justifyContent:`center`,children:(0,L.jsxs)(T,{direction:`row`,spacing:1,alignItems:`center`,children:[(0,L.jsx)($t,{sx:{color:`red500`},size:24}),(0,L.jsx)(k,{variant:`labelM`,children:`Something went wrong. Please try again`})]})}),Ij=class extends I.PureComponent{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return console.log(e),{hasError:!0}}render(){return this.state.hasError?this.props.fallback??(0,L.jsx)(Fj,{}):this.props.children}},Lj=Z((0,I.lazy)(()=>j(()=>import(`./password-manager-all-records-fytDbc2X.js`),__vite__mapDeps([20,1,6,7,3,4,8,2,9,21,5,10,11,22,12,23,24,25,15])))),Rj=Z((0,I.lazy)(()=>j(()=>
11import(`./password-manager-settings-DLLcr39k.js`),__vite__mapDeps([26,1,6,7,3,4,8,2,9,5,10,11,22,12,27,24,13,25,18])))),zj=Z((0,I.lazy)(()=>j(()=>import(`./password-manager-archive-Ch35VlEp.js`),__vite__mapDeps([28,1,4,3,5,6,7,8,2,9,10,11,12,23,22,24,25,15])))),Bj=(0,I.lazy)(()=>j(()=>Promise.resolve().then(()=>Oj).then(e=>({default:e.PasswordManagerMaster})),void 0)),Vj=[{path:Bo.ROOT.path,element:(0,L.jsx)(fD,{children:(0,L.jsx)(S,{fallback:(0,L.jsx)(Fj,{}),beforeCapture:e=>e.setTag(`feature`,`password-manager`),children:(0,L.jsx)(I.Suspense,{fallback:(0,L.jsx)(fO,{}),children:(0,L.jsx)(Bj,{})})})}),children:[...Pj,{path:Bo.SETTINGS.path,element:(0,L.jsx)(kj,{children:(0,L.jsx)(Rj,{})})},{path:Bo.ARCHIVE.path,element:(0,L.jsx)(kj,{children:(0,L.jsx)(zj,{})})},{index:!0,element:(0,L.jsx)(kj,{children:(0,L.jsx)(Lj,{})})}]}],Hj=async({source:e})=>{let{data:t}=await $.requester.instance.get(`/v2/views`,{params:{source:e}});return t},Uj=async e=>{let{data:t}=await $.requester.instance.post(`/v2/views`,e);return t},Wj=async({id:e,...t})=>{let{data:n}=await $.requester.instance.patch(`/v2/views/${e}`,t);return n},Gj=async e=>{let{data:t}=await $.requester.instance.delete(`/v2/views/${e}`);return t},Kj=e=>`filters`in e.data,qj={all:[`views`],lists:()=>[...qj.all,`list`],list:e=>[...qj.lists(),{filters:e}]},Jj=qj,Yj=e=>N({queryKey:Jj.list(e),queryFn:()=>Hj(e)}),Xj=(e,t)=>F({...Yj(e),...t}),Zj=()=>{let e=P();return M({mutationFn:Uj,onSuccess(){e.invalidateQueries({queryKey:Jj.lists()})}})},Qj=()=>{let e=P();return M({mutationFn:Wj,onSuccess(){e.invalidateQueries({queryKey:Jj.lists()})}})},$j=()=>{let e=P();return M({mutationFn:Gj,onSuccess(){e.invalidateQueries({queryKey:Jj.lists()})}})},eM=function(e){return e.ApplicationGrid=`applicationGrid`,e.UserGrid=`userGrid`,e}({}),tM=async()=>{let{data:e}=await $.requester.instance.get(`/v3/department`);return e},nM=async e=>{let{data:t}=await $.requester.instance.post(`/v3/department`,e);return t},rM=async({id:e,...t})=>{let{data:n}=await $.requester.instance.patch(`/v3/department/${e}`,t);return n},iM=async e=>$.requester.instance.delete(`/v3/department/${e}`),aM={all:[`department`],list:()=>[...aM.all,`list`]},oM=aM,sM=()=>N({queryKey:oM.list(),queryFn:tM}),cM=e=>F({...sM(),...e}),lM=()=>{let e=P();return M({mutationFn:nM,onSuccess(){e.invalidateQueries({queryKey:aM.list()}),b({message:z.t(`Department tag was created`),variant:`success`})}})},uM=()=>{let e=P();return M({mutationFn:rM,onSuccess(){e.invalidateQueries({queryKey:aM.list()}),b({message:z.t(`Department tag was changed`),variant:`success`})}})},dM=()=>{let e=P();return M({mutationFn:iM,onSuccess(){e.invalidateQueries({queryKey:aM.list()}),b({message:z.t(`Department tag was removed`),variant:`success`})}})},fM=({value:e,onCreate:t,...n})=>e?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(E,{}),(0,L.jsx)(nr,{disablePadding:!0,children:(0,L.jsxs)(gr,{onClick:()=>t?.(e),...n,children:[(0,L.jsx)(K,{variant:`labelM`,children:`Create`}),(0,L.jsx)(Vn,{label:e,color:`secondary`,sx:{ml:1}})]})})]}):null,pM=({tags:e,getTagProps:t,inputProps:n={}})=>(0,L.jsxs)(O,{sx:e=>({display:`flex`,justifyContent:`start`,flexWrap:`wrap`,width:`100%`,gap:e.spacing(1),height:`fit-content`,border:`1.5px solid transparent`,padding:e.spacing(.75,1),borderColor:e.extendPalette.blue500,borderRadius:e.extendStyles.radiusM,"& input":{width:`auto`,height:`fit-content`,margin:0,outline:0,border:0,padding:0}}),children:[e.map(({label:e,value:n},r)=>{let{key:i,...a}=t({index:r});return(0,I.createElement)(Vn,{color:`secondary`,sx:{whiteSpace:`nowrap`,overflow:`hidden`},label:e,...a,key:n})}),(0,L.jsx)(`input`,{autoFocus:!0,...n})]}),mM=({loading:e})=>e?(0,L.jsx)(O,{display:`flex`,width:`100%`,height:36,children:(0,L.jsx)(yn,{size:`small`,sx:{m:`auto`}})}):null,hM=({values:e,options:t,loading:n,multiple:r,onChange:i,onCreate:a,menuItemSlot:o})=>{let{getRootProps:s,getInputProps:c,getListboxProps:l,getOptionProps:u,getItemProps:d,groupedOptions:f,inputValue:p}=zn({options:t,getOptionLabel:e=>e.label,isOptionEqualToValue:(e,t)=>e.value===t.value,open:!0,multiple:!0,disableCloseOnSelect:!0,onChange:i,value:e});return(0,L.jsxs)(O,{...s(),sx:{maxWidth:400},children:[(0,L.jsx)(pM,{tags:r?e:[],getTagProps:d,inputProps:{...c()}}),(0,L.jsxs)(T,{mt:1.5,height:`100%`,children:[(0,L.jsx)(K,{variant:`labelS`,color:`neutral400`,children:`Select or create one`}),!!f.length&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(E,{}),(0,L.jsx)(nr,{sx:{maxHeight:260,overflow:`auto`,py:0},...l(),children:f.map((e,t)=>{let{key:n,...r}=u({option:e,index:t}),i=r[`aria-selected`];
11return(0,L.jsxs)(gr,{...r,sx:{"& .actions":{opacity:0,transition:`opacity 0.2s`},"&:hover .actions":{opacity:1}},children:[(0,L.jsx)(Nt,{primary:e.label}),o?.(e),i&&(0,L.jsx)(qe,{sx:{color:`blue500`,m:.5}})]},n)})})]}),(0,L.jsx)(mM,{loading:n}),(0,L.jsx)(fM,{value:p,onCreate:a})]})]})},gM=(0,I.memo)(({tags:e,limitTags:t=1,disabled:n,loading:r,onClick:i,sx:a})=>{let o=e.slice(0,t),s=e.length-o.length;return(0,L.jsx)(yt,{onClick:i,loading:r,disabled:n,sx:a,content:e.length&&(0,L.jsxs)(L.Fragment,{children:[o.map(({label:e,value:t})=>(0,L.jsx)(Vn,{color:`secondary`,sx:{whiteSpace:`nowrap`,overflow:`hidden`},label:e},t)),!!s&&(0,L.jsx)(Vn,{label:`+${s}`,color:`secondary`,sx:{ml:1}})]})})}),_M=({option:e,onEdit:t,onDelete:n})=>{let{t:r}=G();return e.editable?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(O,{display:`flex`,sx:{color:`neutral400`,"&:hover":{color:`red500`},p:.6},onClick:n,children:(0,L.jsx)(vt,{className:`actions`})}),(0,L.jsx)(O,{display:`flex`,sx:{color:`neutral400`,"&:hover":{color:`neutral500`},p:.6},onClick:t,children:(0,L.jsx)(kn,{className:`actions`})})]}):(0,L.jsx)(at,{placement:`top`,title:r(`Integration import, cannot be edited`),children:(0,L.jsxs)(O,{display:`flex`,sx:{color:`neutral300`},onClick:e=>e.stopPropagation(),children:[(0,L.jsx)(vt,{className:`actions`,sx:{mx:.6}}),(0,L.jsx)(kn,{className:`actions`,sx:{mx:.6}})]})})},vM=({option:e,onClose:t,setValues:n})=>{let{t:r}=G(),{mutateAsync:i,isPending:a}=dM();return(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(kt,{open:!!e,title:(0,L.jsxs)(T,{direction:`row`,gap:1,children:[(0,L.jsx)($t,{sx:{color:`red500`,marginTop:`3px`}}),r(`Are you sure you want to delete this department?`)]}),onClose:t,onSubmit:async()=>{await i(e?.value),n(t=>t.filter(({value:t})=>t!==e.value)),t()},cancelTitle:r(`No, Go Back`),submitTitle:r(`Yes, Delete`),submitProps:{variant:`destructive`},loading:a,children:(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`Assigned tags of this department will be automatically removed.`})})})},yM=({option:e,onClose:t,setValues:n})=>{let[r,i]=(0,I.useState)(``),{t:a}=G(),{mutateAsync:o,isPending:s}=uM();return(0,I.useEffect)(()=>{e&&i(e.label)},[e]),(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(kt,{open:!!e,title:a(`Edit department`),submitTitle:a(`Confirm`),onClose:t,onSubmit:async()=>{await o({name:r,id:e?.value}),n(t=>t.map(t=>t.value===e.value?{label:r,value:t.value,editable:t.editable}:t)),t()},loading:s,children:(0,L.jsx)(Fe,{placeholder:a(`Name`),name:`name`,value:r,onChange:e=>i(e.currentTarget.value)})})})},bM=[],xM=({defaultValues:e=bM,onChange:t,multiple:n,disabled:r,loading:i,buttonSx:a={},...o})=>{let{anchorEl:s,onOpen:c,onClose:l,open:u}=Ot(),[d,f]=(0,I.useState)(e),{data:p,isLoading:m}=cM({enabled:u}),{mutateAsync:h,isPending:g}=lM(),_=(0,I.useCallback)(n=>{(n.length!==e.length||JSON.stringify(n)!==JSON.stringify(e))&&t(n),l()},[e,t,l]),v=(e,t)=>{if(n){f(t);return}let r=t.length?[t[t.length-1]]:[];f(r),_(r)},y=(0,I.useCallback)(async e=>{let t=await h({name:e});if(n){f(e=>[...e,{value:t.id,label:t.name,editable:t.isCustom}]);return}let r=[{value:t.id,label:t.name,editable:!0}];f(r),_(r)},[h,_,n]),[b,x]=(0,I.useState)(null),S=e=>{x(e)},ee=()=>{x(null)},[te,C]=(0,I.useState)(null),w=e=>{C(e)},ne=()=>{C(null)};return(0,I.useEffect)(()=>{f(e)},[e]),(0,L.jsxs)(O,{width:`100%`,height:48,...o,children:[(0,L.jsx)(gM,{onClick:c,tags:d,sx:a,disabled:r,loading:i}),u&&(0,L.jsx)(Gt,{open:u,anchorEl:s,onClose:()=>_(d),slotProps:{paper:{sx:{maxHeight:`100%`}}},anchorOrigin:{vertical:`top`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},children:(0,L.jsx)(hM,{values:d,options:p?.map(({id:e,name:t,isCustom:n})=>({value:e,label:t,editable:n}))||[],loading:m||g,onChange:v,onCreate:y,multiple:n,menuItemSlot:e=>(0,L.jsx)(_M,{option:e,onEdit:()=>S(e),onDelete:()=>w(e)})})}),b&&(0,L.jsx)(yM,{option:b,onClose:ee,setValues:f}),te&&(0,L.jsx)(vM,{option:te,onClose:ne,setValues:f})]})},SM=Tt(xM),CM=({members:e,onClear:t})=>{let{t:n}=G(),{track:r}=Pw(),{open:i,openModal:a,closeModal:o}=wt(!1),[s,c]=(0,I.useState)(null),{mutateAsync:l,isPending:u}=uC(),d=()=>{c(null),o()};return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(at,{title:n(`Add department`),
11children:(0,L.jsx)(dn,{size:`large`,color:`dark`,onClick:a,children:(0,L.jsx)(cn,{})})}),(0,L.jsx)(kt,{open:i,onClose:d,onSubmit:async()=>{if(s)try{await l({memberIds:e.map(({id:e})=>e),departmentId:s.value}),r(kw.EmployeeBulkChangeDepartments)}catch{b({message:n(`Auto assigned members can not change department!`),variant:`attention`})}d(),t()},loading:u,title:n(`Add department to {{count}} members`,{count:e.length}),submitTitle:n(`Add`),disabled:!s,size:`large`,children:(0,L.jsxs)(O,{display:`flex`,alignItems:`center`,children:[(0,L.jsx)(K,{variant:`labelM`,color:`neutral400`,sx:{width:212},children:`Department`}),(0,L.jsx)(xM,{defaultValues:s?[s]:[],onChange:([e])=>c(e),loading:u})]})})]})},wM=({value:e,onChange:t})=>{let{anchorEl:n,onClose:r,onOpen:i,open:a}=Ot(),o=async n=>{n!==e&&await t(n),r()};return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(yt,{onClick:i,content:e&&(0,L.jsx)(Vn,{variant:`outlined`,label:bC[e].label,color:bC[e].chipColor})}),(0,L.jsx)(Gt,{anchorEl:n,onClose:r,open:a,anchorOrigin:{vertical:`top`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},children:CC.map(e=>(0,L.jsx)(gr,{onClick:()=>{o(e),r()},children:(0,L.jsx)(Vn,{variant:`outlined`,label:bC[e].label,color:bC[e].chipColor})},e))})]})},TM=({members:e,onClear:t})=>{let{t:n}=G(),{track:r}=Pw(),{open:i,openModal:a,closeModal:o}=wt(!1),[s,c]=(0,I.useState)(null),{mutateAsync:l,isPending:u}=pC(),d=()=>{c(null),o()};return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(at,{title:n(`Change HR status`),children:(0,L.jsx)(dn,{size:`large`,color:`dark`,onClick:a,children:(0,L.jsx)(ft,{})})}),(0,L.jsx)(kt,{open:i,onClose:d,onSubmit:async()=>{s&&(await l({memberIds:e.map(({id:e})=>e),hrStatus:s}),r(kw.EmployeeBulkChangeHrStatus)),d(),t()},loading:u,title:n(`Change HR status to {{count}} members`,{count:e.length}),submitTitle:n(`Change`),disabled:!s,size:`large`,children:(0,L.jsxs)(O,{display:`flex`,alignItems:`center`,children:[(0,L.jsx)(K,{variant:`labelM`,color:`neutral400`,sx:{width:212},children:`HR status`}),(0,L.jsx)(wM,{value:s,onChange:c})]})})]})},EM=({value:e,onChange:t})=>{let{anchorEl:n,onClose:r,onOpen:i,open:a}=Ot(),o=async e=>{t(e),r()};return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(yt,{onClick:i,content:e&&(0,L.jsx)(k,{variant:`labelM`,children:xC[e]})}),(0,L.jsx)(Gt,{anchorEl:n,onClose:r,open:a,anchorOrigin:{vertical:`top`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},children:SC.map(e=>(0,L.jsx)(gr,{onClick:()=>{o(e),r()},children:xC[e]},e))})]})},DM=({members:e,onClear:t})=>{let{t:n}=G(),{track:r}=Pw(),{open:i,openModal:a,closeModal:o}=wt(!1),[s,c]=(0,I.useState)(null),{mutateAsync:l,isPending:u}=fC(),d=()=>{c(null),o()};return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(at,{title:n(`Change account type`),children:(0,L.jsx)(dn,{size:`large`,color:`dark`,onClick:a,children:(0,L.jsx)(Ie,{})})}),(0,L.jsx)(kt,{open:i,onClose:d,onSubmit:async()=>{s&&(await l({memberIds:e.map(({id:e})=>e),accountType:s}),r(kw.EmployeeBulkChangeAccountType)),d(),t()},loading:u,title:n(`Change account type to {{count}} members`,{count:e.length}),submitTitle:n(`Change`),disabled:!s,size:`large`,children:(0,L.jsxs)(O,{display:`flex`,alignItems:`center`,children:[(0,L.jsx)(K,{variant:`labelM`,color:`neutral400`,sx:{width:212},children:`Account type`}),(0,L.jsx)(EM,{value:s,onChange:c})]})})]})},OM=({members:e,onClear:t})=>{let{t:n}=G(),{track:r}=Pw(),{mutateAsync:i,isPending:a}=mC(),o=wt(),s=(0,I.useMemo)(()=>e.some(e=>e.isHidden),[e]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(at,{title:n(s?`Unarchive`:`Archive`),children:(0,L.jsx)(dn,{size:`large`,color:`dark`,onClick:o.openModal,children:s?(0,L.jsx)(Ue,{}):(0,L.jsx)(gn,{})})}),(0,L.jsx)(VT,{title:n(s?`Are you sure you want to unarchive {{count}} employees?`:`Are you sure you want to archive {{count}} employees?`,{count:e.length}),submitProps:{startIcon:s?(0,L.jsx)(Ue,{}):(0,L.jsx)(gn,{}),variant:`primary`},submitTitle:n(s?`Unarchive`:`Archive`),cancelTitle:n(`Cancel`),open:o.open,onConfirm:async()=>{await i({memberIds:e.map(({id:e})=>e),isHidden:!s}),r(kw.EmployeeBulkChangeArchive),t()},onCancel:o.closeModal,loading:a,withoutIcon:!0,children:!s&&(0,L.jsx)(K,{variant:`labelM`,color:`neutral400`,children:`Once archived, these employees will be removed from your active list but can still be accessed in the archive section.`})})]})},kM=({members:e,onClear:t})=>{let{t:n}=G(),{track:r}
11=Pw(),{open:i,openModal:a,closeModal:o}=wt(!1),[s,c]=(0,I.useState)(``),{mutateAsync:l,isPending:u}=dC(),d=()=>{c(``),o()};return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(at,{title:n(`Change job title`),children:(0,L.jsx)(dn,{size:`large`,color:`dark`,onClick:a,children:(0,L.jsx)(Pn,{})})}),(0,L.jsx)(kt,{open:i,onClose:d,onSubmit:async()=>{s&&(await l({memberIds:e.map(({id:e})=>e),jobTitle:s}),r(kw.EmployeeBulkChangeJobTitle)),d(),t()},loading:u,title:n(`Change job title to {{count}} members`,{count:e.length}),submitTitle:n(`Change`),disabled:!s,size:`large`,children:(0,L.jsxs)(O,{display:`flex`,alignItems:`center`,children:[(0,L.jsx)(K,{variant:`labelM`,color:`neutral400`,sx:{width:212},children:`Job title`}),(0,L.jsx)(Fe,{value:s,onChange:e=>c(e.target.value)})]})})]})},AM=(0,I.createContext)({}),jM=e=>ti({name:Yr().max(100).required(z.t(`Name is a required field`)).test(`unique-name`,z.t(`This name already exists`),t=>!e.includes(t))}).required(),MM=({opened:e,onClose:t})=>{let{track:n}=Pw(),{t:r}=G(),{mutateAsync:i}=Zj(),{source:a,filters:o,selectView:s,allViews:c}=(0,I.useContext)(AM),{handleSubmit:l,formState:{isValid:u,isSubmitting:d},reset:f,control:p}=ei({resolver:ii((0,I.useMemo)(()=>jM(c.map(e=>e.name)),[c])),defaultValues:{name:``},mode:`onChange`}),m=()=>{f(),t()},h=l(async({name:e})=>{s(await i({name:e,data:{filters:o},source:a})),n(kw.ViewsSaveAsNew,{source:a}),m()});return(0,L.jsx)(kt,{open:e,size:`small`,onClose:m,title:r(`Add view name`),disabled:!u,onSubmit:h,submitTitle:r(`Confirm`),loading:d,isForm:!0,children:(0,L.jsx)(Ln,{autoFocus:!0,name:`name`,control:p})})},NM=()=>{let{t:e}=G(),{track:t}=Pw(),{anchorEl:n,onOpen:r,onClose:i,open:a}=Ot(),{isSavePending:o,saveView:s,currentView:c,source:l}=(0,I.useContext)(AM),u=wt();return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(A,{loading:o?!0:void 0,variant:`secondary`,onClick:e=>{r(e),t(kw.ViewsSave,{source:l})},select:!0,children:e(`Save View`)}),(0,L.jsxs)(Gt,{anchorEl:n,open:a,onClose:i,children:[(0,L.jsx)(at,{title:e(`Default view cannot be modified`),children:(0,L.jsx)(`div`,{children:(0,L.jsx)(gr,{onClick:()=>{s(),i(),t(kw.ViewsSaveChanges,{source:l})},disabled:!c?.isCustom,children:e(`Save changes`)})})}),(0,L.jsx)(gr,{onClick:()=>{u.openModal(),i()},children:e(`Save as new view`)})]}),(0,L.jsx)(MM,{opened:u.open,onClose:u.closeModal})]})},PM=({filters:e})=>{let{t}=G(),{track:n}=Pw(),{isDirty:r,resetAll:i,source:a}=(0,I.useContext)(AM);return(0,L.jsxs)(T,{direction:`row`,maxWidth:`100%`,width:`100%`,overflow:`hidden`,alignItems:`center`,justifyContent:`space-between`,children:[(0,L.jsx)(T,{direction:`row`,alignItems:`center`,gap:1,children:e}),!r&&(0,L.jsxs)(T,{direction:`row`,alignItems:`center`,gap:1,children:[(0,L.jsx)(NM,{}),(0,L.jsx)(T,{direction:`row`,spacing:1,flexShrink:0,children:(0,L.jsx)(A,{variant:`tertiaryBlack`,onClick:()=>{i(),n(kw.ViewsResetAll,{source:a})},children:t(`Reset All`)})})]})]})},FM=function(e){return e.Equal=`equal`,e.Range=`range`,e.LessOrEqual=`lessOrEqual`,e.MoreOrEqual=`moreOrEqual`,e}({}),IM=e=>typeof e==`object`&&!!e&&(`from`in e||`to`in e),LM=`view-filter-open`,RM=(e,t)=>{(0,I.useEffect)(()=>{let n=n=>{n.detail===e&&t()};return document.addEventListener(LM,n),()=>document.removeEventListener(LM,n)},[e,t])},zM=e=>{let t=(0,I.useRef)(null),{anchorEl:n,onOpen:r,onClose:i,open:a,setAnchorEl:o}=Ot();return RM(e,()=>{o(t.current)}),{chipRef:t,onOpen:r,onClose:i,open:a,anchorEl:n}},BM=({searchTerm:e,pageSize:t})=>{let[n,r]=(0,I.useState)([]),[i,a]=(0,I.useState)(1),{data:o,isLoading:s,isFetching:c}=JS({searchTerm:e,page:i,pageSize:t}),l=o?.metadata?.totalCount||0,u=n.length<l&&n.length>0&&!s,{ref:d,inView:f}=Ce({threshold:.1,rootMargin:`0px`});return(0,I.useEffect)(()=>{r([]),a(1)},[e]),(0,I.useEffect)(()=>{f&&u&&!c&&a(e=>e+1)},[f,u,c]),(0,I.useEffect)(()=>{o?.rows&&r(i===1?o.rows:e=>{let t=new Set(e.map(e=>e.id)),n=o.rows.filter(e=>!t.has(e.id));return[...e,...n]})},[o,i]),{users:n,hasMore:u,lastItemRef:d,isLoading:s,isFetching:c}},VM=100,HM=({anchorEl:e,onClose:t,onSelect:n,renderBottomToolbar:r,loading:i,popoverProps:a})=>{let{t:o}=G(),[s,c]=(0,I.useState)(``),[l,u]=(0,I.useState)(``);x(()=>{u(s)},300,[s]);let{users:d,hasMore:f,lastItemRef:p,isLoading:m}=BM({searchTerm:l,pageSize:VM}),h=(0,I.useCallback)((e,{firstName:t,lastName:n,email:r,picture:i,id:a},{selected:o},{multiple:s})=>{let c=d.findIndex(e=>e.id===a)===d.length-1;return(0,I.createElement)(gr,{...e,key:a,multiple:s,selected:o,ref:c&&f?p:void 0,sx:{"&&":{minHeight:`44px`},"&:not(:last-of-type)":{mb:.5}}},(0,L.jsx)(tt,{label:`${t} ${n}`,secondaryLabel:r,startAvatar:(0,L.jsx)(qn,{src:i,type:`photo`}),multiple:s,checked:o}))},[d,f,p]),g=(0,I.useCallback)(({firstName:e,lastName:t})=>`${e} ${t}`,[]);return(0,L.jsx)(Je,{onClose:t,anchorEl:e,options:d,filterOptions:(0,I.useCallback)(e=>e,[]),onChange:(e,t)=>
11t&&n(t),onInputChange:(e,t)=>c(t),textFieldProps:{placeholder:o(`Search for a user...`)},renderOption:h,getOptionLabel:g,renderBottomToolbar:r,loading:m||i,popoverProps:{...a,slotProps:{...a?.slotProps,paper:{sx:{width:e?.offsetWidth,maxWidth:`none`}}}}})},UM=({selectedEmail:e,onAssign:t})=>{let{t:n}=G(),{data:r}=nG();return()=>{if(!r)return null;let i={id:r.id,email:r.email,firstName:r.firstName,lastName:r.lastName,picture:r.picture||``};return e===r.email?null:(0,L.jsx)(nr,{disablePadding:!0,children:(0,L.jsxs)(gr,{onClick:()=>t(i),children:[(0,L.jsx)(xr,{children:(0,L.jsx)(tn,{})}),(0,L.jsx)(Nt,{primary:n(`Assign to me`)})]})})}},WM={[dv.NEED_REVIEW]:{label:z.t(`Needs review`),variant:`outlined`,color:`secondary`},[dv.APPROVED]:{label:z.t(`Approved`),variant:`outlined`,color:`success`},[dv.UNAPPROVED]:{label:z.t(`Not approved`),variant:`outlined`,color:`error`}};dv.NEED_REVIEW,dv.APPROVED,dv.UNAPPROVED;var GM=({applications:e,anchorEl:t,onClose:n,loading:r,...i})=>{let{t:a}=G();return(0,L.jsx)(Je,{onClose:n,anchorEl:t,options:e,textFieldProps:{placeholder:a(`Select a application`)},loading:r,filterOptions:e=>e,getOptionLabel:e=>e?.name||``,renderOption:(e,{id:t,name:n,icon:r},{selected:i})=>(0,I.createElement)(gr,{...e,key:t,selected:i},(0,L.jsx)(tt,{label:n,startAvatar:(0,L.jsx)(qn,{src:r,type:`vendor`,size:`medium`,children:Za(n)}),checked:i})),...i})},KM=({anchorEl:e,onClose:t,loading:n,...r})=>{let[i,a]=(0,I.useState)(``),[o,s]=(0,I.useState)(``);x(()=>{s(i)},400,[i]);let{data:c,isLoading:l}=Dv({searchTerm:o,size:25},{enabled:!!e});return(0,L.jsx)(GM,{applications:c?.rows??[],onClose:t,anchorEl:e,loading:l||n,inputValue:i,onInputChange:(e,t)=>
11a(t),...r})},qM=function(e){return e.AllTime=`AllTime`,e.LastMonth=`LastMonth`,e.LastQuarter=`LastQuarter`,e.LastYear=`LastYear`,e}({}),JM=[{label:z.t(`All time`),value:`AllTime`},{label:z.t(`Last month`),value:`LastMonth`},{label:z.t(`Last quarter`),value:`LastQuarter`},{label:z.t(`Last year`),value:`LastYear`}],YM=e=>{let t=null,n=null;switch(e){case qM.LastMonth:t=(0,B.default)().subtract(1,`month`).startOf(`month`),n=(0,B.default)().subtract(1,`month`).endOf(`month`);break;case qM.LastQuarter:t=(0,B.default)().subtract(1,`quarter`).startOf(`quarter`),n=(0,B.default)().subtract(1,`quarter`).endOf(`quarter`);break;case qM.LastYear:t=(0,B.default)().subtract(1,`year`).startOf(`year`),n=(0,B.default)().subtract(1,`year`).endOf(`year`);break;default:break}return{from:t,to:n}},XM=e=>e?(0,B.default)(e):null,ZM=({label:e,data:t,updateFilter:n,deleteFilter:r,isChipStatic:i=!1})=>{let{t:a}=G(),{chipRef:o,onOpen:s,onClose:c,open:l,anchorEl:u}=zM(t.property),[d,f]=(0,I.useState)(IM(t.value)?null:t.value),[p,m]=(0,I.useState)(IM(t.value)?XM(t.value.from):null),[h,g]=(0,I.useState)(IM(t.value)?XM(t.value.to):null);(0,I.useEffect)(()=>{t.value?IM(t.value)?(f(null),m(XM(t.value.from)),g(XM(t.value.to))):(f(t.value),m(null),g(null)):(f(null),m(null),g(null))},[t.value]);let _=(0,I.useMemo)(()=>IM(t.value)?`${t.value.from?(0,B.default)(t.value.from).format(`DD/MM/YYYY`):`-`} - ${t.value.to?(0,B.default)(t.value.to).format(`DD/MM/YYYY`):`-`}`:t.value&&JM.find(e=>e.value===t.value)?.label,[t]),v=()=>{c(),!t.value&&!i&&r()},y=YM(d),b=(e,t)=>{let r=e?.isValid(),i=t?.isValid();!r&&!i||r&&i&&e.isAfter(t)||i&&t.isAfter((0,B.default)(),`day`)||n({value:{from:r?e.utc(!0).format(`YYYY-MM-DD`):``,to:i?t.utc(!0).format(`YYYY-MM-DD`):``}})};return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Mn,{ref:o,label:e,value:_,onClick:s,onDelete:r,isStatic:i,active:l}),(0,L.jsx)(nt,{anchorEl:u,onClose:v,open:l,transformOrigin:{vertical:`top`,horizontal:`left`},anchorOrigin:{vertical:`bottom`,horizontal:`left`},slotProps:{paper:{sx:{p:1.5,width:380,mt:.5}}},children:(0,L.jsxs)(T,{spacing:1,children:[(0,L.jsx)(Lt,{fullWidth:!0,options:JM,value:d??qM.AllTime,label:a(`Select period`),onChange:e=>{let t=e.target.value;m(null),g(null),f(t),n({value:t})}}),(0,L.jsxs)(T,{direction:`row`,spacing:1,children:[(0,L.jsx)(ut,{value:p??y.from,disableFuture:!0,maxDate:h||void 0,label:a(`From`),onChange:e=>{f(null),(e===null||e.isValid())&&m(e)},onAccept:e=>b(e,h),slotProps:{textField:{onBlur:()=>b(p,h)}},sx:{flex:1}}),(0,L.jsx)(ut,{value:h??y.to,label:a(`To`),disableFuture:!0,minDate:p||void 0,onChange:e=>{f(null),(e===null||e.isValid())&&g(e)},onAccept:e=>b(p,e),slotProps:{textField:{onBlur:()=>b(p,h)}},sx:{flex:1}})]})]})})]})},QM=({value:e,onChange:t,defaultValue:n})=>{let[r,i]=Qe({value:e,onChange:t,defaultValue:n}),a=(0,I.useMemo)(()=>r.filter(e=>e.value!==void 0),[r]);return{filters:r,addFilter:(0,I.useCallback)((e,t)=>{i(n=>[...n,{property:e,...t}])},[i]),deleteFilter:(0,I.useCallback)(e=>{i(t=>t.filter(t=>t.property!==e))},[i]),deleteMultipleFilters:(0,I.useCallback)(e=>{i(t=>t.filter(t=>!e.includes(t.property)))},[i]),removeFilterByValue:(0,I.useCallback)((e,t)=>{i(n=>n.filter(n=>!(n.property===e&&n.value===t)))},[i]),updateFilter:(0,I.useCallback)((e,t)=>{t.condition?i(n=>n.map(n=>n.property===e&&n.condition===t.condition?{...n,property:e,...t}:n)):i(n=>n.map(n=>n.property===e?{...n,property:e,...t}:n))},[i]),setFilters:i,resetAll:()=>{i([])},filtersWithValues:a}},$M=({allAvailableFiltersOptions:e,onAddNew:t,addFilter:n,filters:r})=>{let{anchorEl:i,onOpen:a,onClose:o,open:s}=Ot(),c=(0,I.useMemo)(()=>e.filter(e=>!r.find(t=>t.property===e.property)),[e,r]);return c.length===0?null:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(A,{variant:`tertiaryGray`,startIcon:(0,L.jsx)(tn,{}),onClick:e=>{a(e),t?.()},children:(0,L.jsx)(K,{variant:`labelM`,color:`neutral500`,children:`Add Filter`})}),s&&(0,L.jsx)(Gt,{anchorEl:i,open:s,onClose:o,children:c.map(({property:e,label:t,disabled:r})=>(0,L.jsx)(gr,{disabled:r,sx:{width:184},onClick:()=>{n(e,{condition:FM.Equal}),o(),setTimeout(()=>document.dispatchEvent(new CustomEvent(`view-filter-open`,{detail:e})))},children:t},e.toString()))})]})},eN=({filters:e,updateFilter:t,deleteFilter:n,filtersComponentMap:r,filtersLabelMap:i,onUpdateFilter:a})=>(0,L.jsx)(L.Fragment,{children:e.map(e=>r[e.property]&&(0,I.createElement)(r[e.property],{key:e.property,data:e,label:i[e.property],updateFilter:(...n)=>{t(e.property,...n),a?.(e.property,...n)},deleteFilter:n.bind(null,e.property)}))}),tN=({source:e})=>{let{data:t=[]}=Xj({source:e}),[n,r]=(0,I.useState)(),{filters:i,filtersWithValues:a,deleteFilter:o,removeFilterByValue:s,updateFilter:c,addFilter:l,setFilters:u}=QM({defaultValue:[]}),{mutate:d,isPending:f}=Qj(),p=(0,I.useMemo)(()=>t.find(e=>e.id===n),[t,n]),m=(0,I.useMemo)(()=>p?!p&&i.length!==0?!0:JSON.stringify(p.data.filters)===JSON.stringify(i):!1,[i,p]),h=()=>
11{u(p?.data?.filters??[])},g=(0,I.useCallback)(()=>{if(!p)return;let{id:e,data:t}=p;d({id:e,data:{...t,filters:i}})},[d,i,p]),_=(0,I.useCallback)(e=>{r(e.id),Kj(e)&&u(e.data.filters)},[]);return(0,I.useEffect)(()=>{!n&&t.length>0&&_(t[0])},[_,t,n]),(0,I.useEffect)(()=>{p&&u(p.data.filters)},[p]),{source:e,filters:i,allViews:t,isDirty:m,currentView:p,addFilter:l,deleteFilter:o,removeFilterByValue:s,updateFilter:c,selectView:_,resetAll:h,saveView:g,isSavePending:f,filtersWithValues:a}},nN=({id:e,name:t,open:n,onClose:r})=>{let{t:i}=G(),{mutateAsync:a,isPending:o}=$j(),{selectView:s,allViews:c,currentView:l}=(0,I.useContext)(AM);return(0,L.jsx)(VT,{open:n,title:i(`Are you sure you want to delete â{{name}}â view?`,{name:t}),onCancel:r,onConfirm:async()=>{e&&(await a(e),l?.id===e&&s(c[0]),r())},loading:o})},rN=e=>ti({name:Yr().max(100).required(z.t(`Name is a required field`)).test(`unique-name`,z.t(`This name already exists`),t=>!e.includes(t))}).required(),iN=({id:e,name:t=``,open:n,onClose:r})=>{let{t:i}=G(),{mutateAsync:a}=Qj(),{allViews:o}=(0,I.useContext)(AM),{handleSubmit:s,formState:c,reset:l,control:u}=ei({resolver:ii((0,I.useMemo)(()=>{let t=[];for(let n of o)n.id!==e&&t.push(n.name);return rN(t)},[o,e])),defaultValues:{name:t},mode:`onChange`}),{isValid:d,isSubmitting:f}=c,p=s(async t=>{e!==void 0&&await a({id:e,name:t.name}),r()});return(0,I.useEffect)(()=>
11{l({name:t})},[l,t]),(0,L.jsx)(kt,{open:n,size:`small`,onClose:()=>{l(),r()},title:i(`Rename view`),disabled:!d,onSubmit:p,submitTitle:i(`Confirm`),loading:f,isForm:!0,children:(0,L.jsx)(Ln,{autoFocus:!0,name:`name`,control:u})})},aN=()=>{let{t:e}=G(),{track:t}=Pw(),{allViews:n,selectView:r,source:i}=(0,I.useContext)(AM),{anchorEl:a,onOpen:o,onClose:s,open:c}=Ot(),[l,u]=(0,I.useState)(),d=wt(),f=wt(),p=e=>{d.openModal(),u(e),s()},m=e=>{f.openModal(),u(e),s()};return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(at,{title:e(`Saved views`),placement:`top`,children:(0,L.jsx)(dn,{color:`tertiaryBlack`,onClick:e=>{t(kw.ViewsOpen,{source:i}),o(e)},children:(0,L.jsx)(bn,{})})}),(0,L.jsx)(Gt,{open:c,anchorEl:a,onClose:s,slotProps:{paper:{sx:{minWidth:180,maxWidth:240}}},anchorOrigin:{vertical:`bottom`,horizontal:`right`},transformOrigin:{horizontal:`right`,vertical:`top`},children:n.map(e=>(0,L.jsxs)(gr,{onClick:()=>{r(e),s()},sx:e=>({[`.${Wn.root}`]:{opacity:0,transition:e.transitions.create([`opacity`],{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})},"&:hover":{[`.${Wn.root}`]:{opacity:1}},pr:5}),children:[(0,L.jsx)(Nt,{primaryTypographyProps:{noWrap:!0},children:e.name}),e.isCustom&&(0,L.jsx)(Qn,{children:(0,L.jsx)(oN,{onDeleteClick:()=>p(e),onRenameClick:()=>m(e)})})]},e.id))}),(0,L.jsx)(nN,{open:d.open,onClose:d.closeModal,...l}),(0,L.jsx)(iN,{open:f.open,onClose:f.closeModal,...l})]})},oN=({onRenameClick:e,onDeleteClick:t})=>{let{t:n}=G(),{anchorEl:r,onOpen:i,onClose:a,open:o}=Ot();return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(dn,{onClick:e=>{e.stopPropagation(),i(e)},children:(0,L.jsx)(qt,{})}),(0,L.jsxs)(Gt,{anchorEl:r,onClick:e=>e.stopPropagation(),open:o,onClose:a,children:[(0,L.jsxs)(gr,{onClick:()=>{e(),a()},children:[(0,L.jsx)(xr,{children:(0,L.jsx)(un,{})}),(0,L.jsx)(Nt,{children:n(`Rename`)})]}),(0,L.jsxs)(gr,{onClick:()=>{t(),a()},children:[(0,L.jsx)(xr,{children:(0,L.jsx)(vt,{})}),(0,L.jsx)(Nt,{children:n(`Delete`)})]})]})]})},sN=({value:e,handleSearch:t,...n})=>{let[r,i]=(0,I.useState)(e);return x(()=>t(r),400,[r]),(0,L.jsx)(L.Fragment,{children:(0,L.jsx)($e,{value:r,onChange:e=>i(e.target.value),onClear:r?()=>{i(``)}:void 0,...n})})},cN=(0,I.memo)(()=>(0,L.jsx)(T,{p:1,children:(0,L.jsx)(k,{variant:`labelM`,color:`neutral300`,children:`-`})})),lN=(0,I.memo)(({getValue:e})=>{let t=e();return t?(0,L.jsx)(T,{direction:`row`,alignItems:`center`,p:.75,gap:1,children:(0,L.jsx)(k,{variant:`labelM`,color:`neutral500`,ellipsis:!0,children:t})}):(0,L.jsx)(cN,{})}),uN=(0,I.memo)(({getValue:e})=>{let{price:t}=e(),n=Iu({number:t});return(0,L.jsx)(T,{p:1,children:(0,L.jsx)(k,{variant:`labelM`,color:`neutral500`,ellipsis:!0,children:t?n:`-`})})}),dN=(0,I.memo)(({getValue:e})=>{let{value:t}=e(),n=Mu({date:t}),r=Ra(t)?`red500`:`neutral500`;return t?(0,L.jsx)(T,{direction:`row`,alignItems:`center`,p:.75,gap:1,children:(0,L.jsx)(k,{variant:`labelM`,color:r,ellipsis:!0,children:n})}):(0,L.jsx)(cN,{})}),fN=(0,I.memo)(({row:e,isSelected:t,canSelect:n})=>(0,L.jsx)(Zn,{icon:(0,L.jsx)(ze,{sx:{color:`neutral200`}}),checkedIcon:(0,L.jsx)(bt,{}),checked:t,disabled:!n,onChange:e.getToggleSelectedHandler(),onClick:e=>e.stopPropagation()})),pN=({table:e})=>{let t=e.options.state?.rowSelection??{},n=Object.keys(t).length,r=e.options.meta?.onResetSelection,i=n>0&&r?r:e.getToggleAllPageRowsSelectedHandler();return(0,L.jsx)(Zn,{sx:{m:`-8px !important`},icon:(0,L.jsx)(ze,{sx:{color:`neutral200`}}),checkedIcon:(0,L.jsx)(bt,{}),indeterminateIcon:(0,L.jsx)(et,{}),checked:e.getIsAllPageRowsSelected(),indeterminate:!e.getIsAllPageRowsSelected()&&n>0,onChange:i})},mN=(0,I.memo)(({row:e,actionsCreator:t})=>{let{t:n}=G(),{anchorEl:r,onOpen:i,onClose:a,open:o}=Ot(),[s,c]=(0,I.useState)(!1),l=t(e.original);return l.length===0?null:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(at,{title:n(`Actions`),children:(0,L.jsx)(dn,{color:`gray`,onClick:e=>{i(e),c(!0)},children:(0,L.jsx)(qt,{})})}),s&&(0,L.jsx)(Gt,{open:o,anchorEl:r,onClose:a,anchorOrigin:{vertical:`bottom`,horizontal:`right`},transformOrigin:{vertical:`top`,horizontal:`right`},children:l.map(({name:t,action:n,icon:r})=>(0,L.jsx)(gr,{sx:{minWidth:168},onClick:()=>{n(e),a()},children:(0,L.jsx)(tt,{label:t,startIcon:r})},t))})]})}),hN=e=>t=>(0,L.jsx)(mN,{actionsCreator:e,...t}),gN=`actions-column-id`,_N=`select-column-id`,vN={id:_N,size:40,header:pN,cell:e=>(0,L.jsx)(fN,{...e,isSelected:e.row.getIsSelected(),canSelect:e.row.getCanSelect()}),meta:{loading:()=>(0,L.jsx)(O,{display:`flex`,alignItems:`center`,justifyContent:`center`,width:32,height:32,children:(0,L.jsx)(sr,{width:17,height:17,variant:`rectangular`,sx:{borderRadius:1}})}),stopPropagation:!0},enableHiding:!1,enableResizing:!1},yN=({targetCurrency:e,originalCurrency:t,hasOriginalAmount:n=!1})=>{let[r,i]=(0,I.useState)(!1),a=e?.toLowerCase(),o=t?.toLowerCase(),{data:s}=bT({to:a},{enabled:!!o&&r}),c=(0,I.useMemo)(()=>
11s?.find(e=>e.baseCurrency.toLowerCase()===o)?.rate,[s,o]),l=(0,I.useMemo)(()=>new Date().toLocaleDateString(void 0,{month:`short`,day:`numeric`,year:`numeric`}),[]),u=n&&o&&a!==o;return{shouldShowTooltip:u,conversionLine:u?`1 ${o} = ${c?c.toFixed(3):`â`} ${a}`:``,formattedDate:l,rate:c,onMouseEnter:()=>i(!0)}},bN=({filters:e,rightPanel:t,leftPanel:n,currentCount:r,isCurrentCountLoading:i,selectionLabel:a,stickyHeaderTop:o=56,containerProps:s})=>{let{t:c}=G();return(0,L.jsxs)(T,{position:`sticky`,top:o,pt:2,mb:1.5,zIndex:20,...s,sx:{backgroundColor:`neutral0`,...s?.sx},children:[(0,L.jsxs)(T,{direction:`row`,spacing:1.5,alignItems:`center`,children:[n&&(0,L.jsx)(T,{direction:`row`,alignItems:`center`,children:n}),t&&(0,L.jsx)(T,{direction:`row`,flex:1,alignItems:`center`,gap:1,children:t})]}),e&&(0,L.jsx)(T,{direction:`row`,maxWidth:`100%`,width:`100%`,overflow:`hidden`,alignItems:`center`,mt:1,children:e}),i?(0,L.jsx)(sr,{height:16,width:110,sx:{my:1.5}}):r!==void 0&&(0,L.jsx)(k,{variant:`labelS`,color:`neutral400`,mt:1.5,children:c(`Showing {{cnt}} items`,{cnt:r})}),a&&(0,L.jsx)(k,{variant:`labelS`,color:`neutral400`,mt:1.5,children:c(`Select items to take action`)})]})},xN=({member:e,open:t,closeModal:n})=>{let{t:r}=G(),{mutateAsync:i,isPending:a}=lC(),o=e?.isHidden;return(0,L.jsx)(VT,{title:r(o?`Are you sure you want to unarchive the employee?`:`Are you sure you want to archive the employee?`),submitProps:{startIcon:o?(0,L.jsx)(Ue,{}):(0,L.jsx)(gn,{}),variant:`primary`},submitTitle:r(o?`Unarchive`:`Archive`),cancelTitle:r(`Cancel`),open:t,onConfirm:async()=>{e&&await i({id:e.id,isHidden:!o}),n()},onCancel:n,loading:a,withoutIcon:!0,children:!o&&(0,L.jsx)(K,{variant:`labelM`,color:`neutral400`,children:`Once archived, these employee will be removed from your active list but can still be accessed in the archive section.`})})},SN={width:600,maxHeight:500,categoryListColumns:4,contentPanelColumns:8,activeIndicatorSize:18},CN={transformOrigin:{vertical:`top`,horizontal:`left`},anchorOrigin:{vertical:`bottom`,horizontal:`left`}},wN=`#2E5BFF`,TN={display:`flex`,cursor:`pointer`},EN=({open:e,anchorEl:t,onClose:n}={})=>{let r=(0,I.useRef)(null),[i,a]=(0,I.useState)(null),o=(0,I.useRef)(null),s=e!==void 0||t!==void 0,c=t===void 0?i:t,l=e===void 0?!!i:e,u=(0,I.useCallback)(()=>{o.current=document.activeElement,s||a(r.current)},[s]),d=(0,I.useCallback)(()=>{n&&n(),s||a(null),o.current&&=(o.current.focus(),null)},[s,n]);return(0,I.useEffect)(()=>{if(!l)return;let e=e=>{e.key===`Escape`&&d()};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[l,d]),{buttonRef:r,anchorEl:c,open:l,isControlled:s,handleOpen:u,handleClose:d}},DN=(e,t)=>{let n=(0,I.useCallback)(n=>{t(e.includes(n)?e.filter(e=>e!==n):[...e,n])},[e,t]),r=(0,I.useCallback)(n=>{t([...new Set([...e,...n])])},[e,t]),i=(0,I.useCallback)(n=>{t(e.filter(e=>!n.includes(e)))},[e,t]),a=(0,I.useMemo)(()=>new Set(e),[e]);return{handleToggle:n,handleSelectAll:r,handleClearAll:i,getSelectedCount:(0,I.useCallback)(e=>e.filter(e=>a.has(e)).length,[a]),areAllSelected:(0,I.useCallback)(e=>e.length>0&&e.every(e=>a.has(e)),[a]),isSelected:(0,I.useCallback)(e=>a.has(e),[a])}},ON=(e,t,{allowed:n,allKeyword:r,sections:i,isAdmin:a})=>{let o=(0,I.useMemo)(()=>e.length===1&&n.includes(e[0])?e[0]:null,[e,n]),s=(0,I.useMemo)(()=>new Set(e),[e]),c=(0,I.useMemo)(()=>{if(!o)return[];let e=i.filter(e=>o===r||e.keyword===o);return[...new Set(e.flatMap(e=>e.ids))]},[o,r,i]),l=(0,I.useMemo)(()=>new Set(c),[c]),u=(0,I.useCallback)(()=>o?c:e,[o,c,e]),d=(0,I.useCallback)(e=>o?l.has(e):s.has(e),[o,l,s]),f=(0,I.useCallback)(e=>{let n=u();t(n.includes(e)?n.filter(t=>t!==e):[...n,e])},[u,t]),p=(0,I.useCallback)(e=>{t([...new Set([...u(),...e])])},[u,t]),m=(0,I.useCallback)(e=>{t(u().filter(t=>!e.includes(t)))},[u,t]),h=(0,I.useCallback)(e=>o===r||o===e.keyword?!0:o?!1:e.ids.length>0&&e.ids.every(e=>s.has(e)),[o,r,s]);return{handleToggle:f,handleSelectAll:p,handleClearAll:m,handleSelectAllSection:(0,I.useCallback)((e,n,o)=>{if(!a||o){p(n);return}let s=i.filter(t=>t.keyword!==e);t(s.length>0&&s.every(h)?[r]:[e])},[a,i,h,r,p,t]),getSelectedCount:(0,I.useCallback)(e=>e.filter(d).length,[d]),areAllSelected:(0,I.useCallback)(e=>e.length>0&&e.every(d),[d]),isSelected:d}};function kN({filters:e,facets:t,filterCategories:n,buttonRef:r,popoverRef:i,buttonText:a,defaultCategory:o}){let{t:s}
11=G(),{buttonRef:c,anchorEl:l,open:u,handleOpen:d,handleClose:f}=EN(),[p,m]=(0,I.useState)(o??``),h=(0,I.useRef)(o);(0,I.useEffect)(()=>{o&&o!==h.current&&m(o),h.current=o},[o]),(0,I.useImperativeHandle)(i,()=>({openAt:e=>{e&&n.some(t=>t.category===e)&&m(e),d()}}));let g=n.find(e=>e.category===p)??n[0],_=g?.component,v=g?.getProps(e,t);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(A,{ref:(0,I.useCallback)(e=>{c&&(c.current=e),r&&(r.current=e)},[c,r]),variant:`tertiaryBlack`,startIcon:(0,L.jsx)(Pt,{}),onClick:d,sx:u?e=>({backgroundColor:e.extendPalette.neutral200}):void 0,children:a||s(`Filters`)}),(0,L.jsx)(nt,{anchorEl:l,onClose:f,open:u,transformOrigin:CN.transformOrigin,anchorOrigin:CN.anchorOrigin,slotProps:{paper:{sx:{width:SN.width,height:SN.maxHeight,mt:.5}}},children:(0,L.jsxs)(D,{container:!0,height:1,children:[(0,L.jsx)(D,{item:!0,xs:SN.categoryListColumns,sx:{borderRight:`1px solid`,borderColor:`divider`,maxHeight:SN.maxHeight,overflowY:`auto`,pr:1,height:`100%`},children:(0,L.jsx)(nr,{disablePadding:!0,children:n.map(({category:t,labelKey:n,isActive:r})=>(0,L.jsxs)(gr,{selected:g?.category===t,onClick:()=>m(t),sx:{justifyContent:`space-between`},children:[(0,L.jsx)(Nt,{primary:n}),r(e)&&(0,L.jsx)(Xt,{sx:{fontSize:SN.activeIndicatorSize,color:`primary.main`}})]},t))})}),(0,L.jsx)(D,{item:!0,xs:SN.contentPanelColumns,sx:{px:1.5,py:.5,maxHeight:SN.maxHeight,overflowY:`auto`},children:_&&v&&(0,L.jsx)(_,{...v})})]})})]})}var AN=({hasSelections:e,onSelectAll:t,onClearAll:n,showSelectAll:r=!0,showDeselectAll:i=!1,title:a})=>{let{t:o}=G();return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(T,{direction:`row`,justifyContent:`space-between`,alignItems:`center`,children:[(0,L.jsx)(k,{variant:`labelS`,color:`neutral400`,children:a||o(`Select one or more`)}),i?(0,L.jsx)(k,{variant:`labelS`,color:`blue500`,sx:{cursor:`pointer`},onClick:n,children:o(`Deselect All`)}):r&&(0,L.jsxs)(T,{direction:`row`,spacing:.5,alignItems:`center`,children:[(0,L.jsx)(k,{variant:`labelS`,color:`blue500`,sx:{cursor:`pointer`},onClick:t,children:o(`Select All`)}),e&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(k,{variant:`labelS`,color:`neutral400`,children:`|`}),(0,L.jsx)(k,{variant:`labelS`,color:`blue500`,sx:{cursor:`pointer`},onClick:n,children:o(`None`)})]})]})]}),(0,L.jsx)(E,{})]})},jN=({filterCount:e,onMoreClick:t})=>{let{t:n}=G();return e===0?null:(0,L.jsx)(A,{variant:`tertiaryBlack`,onClick:t,sx:{fontWeight:500},children:n(`+${e} more`)})},MN=10,NN=32,PN=4,FN=(e,t,n={})=>{let{totalCap:r=MN,maxPerSection:i=Math.floor(r/2),rowHeight:a=NN,rowGap:o=PN}=n;if(e===0||t===0)return{firstMaxHeight:e>0?405:void 0,secondMaxHeight:t>0?405:void 0};let s=Math.min(e,r-Math.min(t,i)),c=Math.min(t,r-Math.min(e,i)),l=(e,t)=>
11e>t?t*a+Math.max(0,t-1)*o:void 0;return{firstMaxHeight:l(e,s),secondMaxHeight:l(t,c)}},IN=(e,t)=>t===void 0||t===``?e:(0,L.jsxs)(L.Fragment,{children:[e,`: `,(0,L.jsx)(`span`,{style:{color:wN,marginLeft:`4px`},children:t})]}),LN=({value:e,onAdd:t,onRemove:n,onClear:r,options:i,labelMap:a,searchKeyMap:o,searchable:s=i.length>5,searchPlaceholder:c})=>{let{t:l}=G(),[u,d]=(0,I.useState)(``),f=(0,I.useMemo)(()=>{if(!i.length)return[];if(!u)return i;let e=u.toLowerCase();return i.filter(t=>{let n=(a?.[t]??t).toLowerCase(),r=(o?.[t]??n).toLowerCase();return n.includes(e)||r.includes(e)})},[i,u,a,o]),p=r=>{e.includes(r)?n(r):t(r)};return(0,L.jsxs)(T,{spacing:1.5,children:[s&&(0,L.jsx)($e,{value:u,onChange:e=>d(e.target.value),placeholder:c??l(`Search`),onClear:()=>d(``),fullWidth:!0,size:`small`}),(0,L.jsx)(AN,{hasSelections:e.length>0,onSelectAll:()=>{f.forEach(n=>{e.includes(n)||t(n)})},onClearAll:()=>r(),showSelectAll:f.length>0}),(0,L.jsx)(T,{spacing:1,children:f.length===0?(0,L.jsx)(Yn,{label:l(`No options available`),control:(0,L.jsx)(Zn,{disabled:!0})}):f.map(t=>(0,L.jsx)(Yn,{label:a?.[t]??t,control:(0,L.jsx)(Zn,{checked:e.includes(t),onChange:()=>p(t)})},t))})]})},RN=({hasValue:e,onClear:t})=>e?(0,L.jsx)(`span`,{onClick:t,style:TN,role:`button`,"aria-label":`Clear filter`,children:(0,L.jsx)(rn,{size:16})}):(0,L.jsx)(He,{}),zN=e=>(0,I.useCallback)(t=>{t.stopPropagation(),e()},[e]),BN=({label:e,isActive:t,onClear:n,children:r,popoverWidth:i=400})=>{let a=(0,I.useRef)(null),[o,s]=(0,I.useState)(null),c=()=>{s(a.current)},l=()=>{s(null)};return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(A,{ref:a,variant:`tertiaryBlack`,endIcon:(0,L.jsx)(RN,{hasValue:t,onClear:zN(()=>{n(),l()})}),onClick:c,sx:{fontWeight:500},children:e}),(0,L.jsx)(nt,{anchorEl:o,onClose:l,open:!!o,transformOrigin:{vertical:`top`,horizontal:`left`},anchorOrigin:{vertical:`bottom`,horizontal:`left`},slotProps:{paper:{sx:{p:1.5,width:i}}},children:r})]})},VN=e=>{let{t}=G();return(0,I.useMemo)(()=>{let n=e.label;switch(e.type){case`checkbox`:{let{values:r,labelMap:i}=e;return r.length===0?n:r.length===1?IN(n,i?.[r[0]]||r[0]):IN(n,t(`{{count}} selected`,{count:r.length}))}case`date`:{let{value:r,format:i=`MMM D, YYYY`}=e;if(!r)return n;let a=$c(r),o;switch(a){case Qc.Today:o=t(`Today`);break;case Qc.ThisWeek:o=t(`This week`);break;case Qc.LastMonth:o=t(`Last month`);break;case Qc.NextSevenDays:o=t(`Next 7 days`);break;case Qc.ThisMonth:o=t(`This month`);break;case Qc.Next30Days:o=t(`Next 30 days`);break;case Qc.Custom:`from`in r&&`to`in r&&(o=`${r.from?(0,B.default)(Number(r.from)).format(i):``} - ${r.to?(0,B.default)(Number(r.to)).format(i):``}`);break;case Qc.AllTime:default:o=void 0}return IN(n,o)}case`price`:{let{exact:t,min:r,max:i,currency:a}=e;if(t===void 0&&r===void 0&&i===void 0)return n;let o=a?`${a}, `:``,s;if(t!==void 0)s=`${o}${t}`;else if(r!==void 0&&i!==void 0)s=`${o}${r} - ${i}`;else if(r!==void 0)s=`${o}⥠${r}`;else if(i!==void 0)s=`${o}⤠${i}`;else return n;return IN(n,s)}default:return n}},[e,t])},HN=({label:e,values:t,options:n,onAdd:r,onRemove:i,onClear:a,searchable:o,searchPlaceholder:s,labelMap:c,searchKeyMap:l})=>(0,L.jsx)(BN,{label:VN({type:`checkbox`,label:e,values:t,labelMap:c}),isActive:t.length>0,onClear:a,children:(0,L.jsx)(LN,{value:t,onAdd:r,onRemove:i,onClear:a,options:n,labelMap:c,searchKeyMap:l,searchable:o,searchPlaceholder:s})}),UN=({value:e,onChange:t,onClearAll:n,allowedPresets:r})=>{let{t:i}=G(),[a,o]=(0,I.useState)($c(e)),[s,c]=(0,I.useState)(e&&`from`in e?(0,B.default)(Number(e.from)):null),[l,u]=(0,I.useState)(e&&`to`in e?(0,B.default)(Number(e.to)):null),d=r||[Qc.AllTime,Qc.Today,Qc.ThisWeek,Qc.ThisMonth,Qc.Custom],f=e=>{switch(e){case Qc.AllTime:return i(`All time`);case Qc.Today:return i(`Today`);case Qc.ThisWeek:return i(`This week`);case Qc.LastMonth:return i(`Last month`);case Qc.NextSevenDays:return i(`Next 7 days`);case Qc.ThisMonth:return i(`This month`);case Qc.Next30Days:return i(`Next 30 days`);case Qc.Custom:return i(`Custom range`);default:return``}},p=e=>{if(o(e),e===Qc.AllTime)t(void 0),c(null),u(null);else if(e===Qc.Custom)c(null),u(null);else{let n=el(e);n&&t(n)}};return(0,I.useEffect)(()=>{a===Qc.Custom&&s&&l&&t({from:s.startOf(`day`).valueOf(),to:l.endOf(`day`).valueOf()})},[s,l,a,t]),(0,L.jsxs)(T,{spacing:1.5,children:[(0,L.jsx)(AN,{hasSelections:e!==void 0,onSelectAll:()=>{},onClearAll:()=>{o(Qc.AllTime),c(null),u(null),n()},showSelectAll:!1}),(0,L.jsxs)(T,{spacing:1,children:[(0,L.jsx)(k,{variant:`labelS`,color:`neutral500`,children:i(`Period`)}),d.map(e=>e===Qc.Custom?null:(0,L.jsx)(Yn,{label:f(e),checked:a===e,onChange:()=>p(e),control:(0,L.jsx)(or,{})},e)),(0,L.jsx)(Yn,{label:`Custom range`,checked:a===Qc.Custom,onChange:()=>p(Qc.Custom),control:(0,L.jsx)(or,{})}),a===Qc.Custom&&(0,L.jsxs)(T,{direction:`row`,spacing:1,pt:1,children:[(0,L.jsx)(ut,{value:s,onChange:c,sx:{flex:1}}
11),(0,L.jsx)(ut,{value:l,onChange:u,sx:{flex:1}})]})]})]})},WN=({label:e,value:t,onChange:n,onClear:r,format:i})=>(0,L.jsx)(BN,{label:VN({type:`date`,label:e,value:t,format:i}),isActive:t!==void 0,onClear:r,children:(0,L.jsx)(UN,{value:t,onChange:n,onClearAll:r})}),GN=({exact:e,min:t,max:n,onExactChange:r,onMinChange:i,onMaxChange:a,onClearAll:o})=>{let[s,c]=(0,I.useState)(e),[l,u]=(0,I.useState)(t),[d,f]=(0,I.useState)(n),p=tv({min:l,max:d,exact:s});x(()=>{p.isValid&&r(s)},1e3,[s,p.isValid]),x(()=>{p.isValid&&i(l)},1e3,[l,p.isValid]),x(()=>{p.isValid&&a(d)},1e3,[d,p.isValid]);let m=s!==void 0||l!==void 0||d!==void 0,h=s!==void 0,g=l!==void 0||d!==void 0;return(0,L.jsxs)(T,{spacing:2,children:[(0,L.jsx)(AN,{hasSelections:m,onSelectAll:()=>{},onClearAll:()=>{c(void 0),u(void 0),f(void 0),o()},showSelectAll:!1}),(0,L.jsxs)(T,{spacing:1,children:[(0,L.jsx)(K,{variant:`labelM`,color:`neutral700`,children:`Exact`}),(0,L.jsx)(An,{value:s,onChange:e=>{let t=e.target.value;c(t?parseFloat(t):void 0)},placeholder:`=`,fullWidth:!0,disabled:g,numericInputProps:{min:0}})]}),(0,L.jsxs)(T,{spacing:1,children:[(0,L.jsx)(K,{variant:`labelM`,color:`neutral700`,children:`Min amount`}),(0,L.jsx)(An,{value:l,onChange:e=>{let t=e.target.value;u(t?parseFloat(t):void 0)},placeholder:`â¥`,fullWidth:!0,disabled:h,error:!!p.errors.min,helperText:p.errors.min,numericInputProps:{min:0}})]}),(0,L.jsxs)(T,{spacing:1,children:[(0,L.jsx)(K,{variant:`labelM`,color:`neutral700`,children:`Max amount`}),(0,L.jsx)(An,{value:d,onChange:e=>{let t=e.target.value;f(t?parseFloat(t):void 0)},placeholder:`â¤`,fullWidth:!0,disabled:h,error:!!p.errors.max,helperText:p.errors.max,numericInputProps:{min:0}})]})]})},KN=({label:e,exact:t,min:n,max:r,currency:i,onExactChange:a,onMinChange:o,onMaxChange:s,onClear:c})=>(0,L.jsx)(BN,{label:VN({type:`price`,label:e,exact:t,min:n,max:r,currency:i}),isActive:t!==void 0||n!==void 0||r!==void 0,onClear:c,children:(0,L.jsx)(GN,{exact:t,min:n,max:r,onExactChange:a,onMinChange:o,onMaxChange:s,onClearAll:c})}),qN=({hiddenCount:e,onMoreClick:t})=>(0,L.jsx)(jN,{filterCount:e,onMoreClick:t}),JN=(e,t=5)=>{let[n,r]=S_(`${e}FilterOrder`,``),i=(0,I.useCallback)(e=>{let t=(n?n.split(`,`):[]).filter(t=>t!==e);t.unshift(e),r(t.join(`,`))},[n,r]),a=(0,I.useCallback)(e=>{if(e.length===0)return[];let r=(n?n.split(`,`):[]).filter(t=>e.includes(t)),i=e.filter(e=>!r.includes(e));return[...r,...i].slice(0,t)},[n,t]);return(0,I.useMemo)(()=>({recordSelection:i,getDisplayOrder:a}),[i,a])},YN={[Y.Department]:e=>e.department.length>0,[Y.AccountType]:e=>e.accountType.length>0,[Y.HrStatus]:e=>e.hrStatus.length>0,[Y.JobTitle]:e=>e.jobTitle.length>0,[Y.usedServices]:e=>e.services.length>0},XN=Object.fromEntries(CC.map(e=>[e,bC[e].label])),ZN=[{category:Y.Department,labelKey:`Department`,isActive:e=>e.department.length>0,component:LN,getProps:(e,t)=>({value:e.department,onAdd:e.setDepartment,onRemove:e.removeDepartment,onClear:e.clearDepartment,options:t?.[Y.Department]?.options??[],searchable:!0,searchPlaceholder:`Search department`})},{category:Y.AccountType,labelKey:`Account type`,isActive:e=>e.accountType.length>0,component:LN,getProps:e=>({value:e.accountType,onAdd:e.setAccountType,onRemove:e.removeAccountType,onClear:e.clearAccountType,options:SC,labelMap:xC,searchable:!1})},{category:Y.HrStatus,labelKey:`HR status`,isActive:e=>e.hrStatus.length>0,component:LN,getProps:e=>({value:e.hrStatus,onAdd:e.setHrStatus,onRemove:e.removeHrStatus,onClear:e.clearHrStatus,options:CC,labelMap:XN,searchable:!1})},{category:Y.JobTitle,labelKey:`Job title`,isActive:e=>e.jobTitle.length>0,component:LN,getProps:(e,t)=>({value:e.jobTitle,onAdd:e.setJobTitle,onRemove:e.removeJobTitle,onClear:e.clearJobTitle,options:t?.[Y.JobTitle]?.options??[],searchable:!0,searchPlaceholder:`Search job title`})},{category:Y.usedServices,labelKey:`Apps used`,isActive:e=>e.services.length>0,component:LN,getProps:(e,t)=>({value:e.services,options:t?.[Y.usedServices]?.options??[],onAdd:e.setServices,onRemove:e.removeServices,onClear:e.clearServices,searchable:!0,searchPlaceholder:`Search for app`})}],QN=e=>{let t=(0,I.useCallback)(t=>{let n=e.filters.filter(e=>e.property===t).map(e=>e.value);return n?.length?n:[]},[e.filters]),n=(0,I.useCallback)((t,n)=>{e.addFilter(t,{condition:FM.Equal,value:n})},[e]),r=(0,I.useCallback)((t,n)=>{e.removeFilterByValue(t,n)},[e]),i=(0,I.useCallback)(t=>{e.deleteFilter(t)},[e]);return(0,I.useMemo)(()=>({department:t(Y.Department),setDepartment:e=>n(Y.Department,e),removeDepartment:e=>r(Y.Department,e),clearDepartment:()=>i(Y.Department),accountType:t(Y.AccountType),setAccountType:e=>n(Y.AccountType,e),removeAccountType:e=>r(Y.AccountType,e),clearAccountType:()=>i(Y.AccountType),hrStatus:t(Y.HrStatus),setHrStatus:e=>n(Y.HrStatus,e),removeHrStatus:e=>r(Y.HrStatus,e),clearHrStatus:()=>i(Y.HrStatus),jobTitle:t(Y.JobTitle),setJobTitle:e=>n(Y.JobTitle,e),removeJobTitle:e=>r(Y.JobTitle,e),clearJobTitle:()=>i(Y.JobTitle),services:t(Y.usedServices),setServices:e=>n(Y.usedServices,e),removeServices:e=>r(Y.usedServices,e),clearServices:()=>i(Y.usedServices)}),[t,n,r,i])},$N=({viewControl:e,facets:t,buttonRef:n}
11)=>(0,L.jsx)(kN,{filters:QN(e),facets:t,filterCategories:ZN,buttonRef:n,buttonText:`Filters`}),eP=({viewControl:e,facets:t,filtersButtonRef:n})=>{let r=QN(e),{getDisplayOrder:i}=JN(`members`),a=Object.fromEntries(CC.map(e=>[e,bC[e].label])),o=(0,I.useMemo)(()=>Object.keys(YN).filter(e=>YN[e](r)),[r]),s=i(o),c=o.length-s.length;return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)($N,{viewControl:e,facets:t,buttonRef:n}),s.includes(Y.Department)&&(0,L.jsx)(HN,{label:`Department`,values:r.department,options:t?.[Y.Department]?.options??[],onAdd:r.setDepartment,onRemove:r.removeDepartment,onClear:r.clearDepartment,searchable:!0,searchPlaceholder:`Search department`}),s.includes(Y.AccountType)&&(0,L.jsx)(HN,{label:`Account type`,values:r.accountType,options:SC,onAdd:r.setAccountType,onRemove:r.removeAccountType,onClear:r.clearAccountType,labelMap:xC,searchable:!1}),s.includes(Y.HrStatus)&&(0,L.jsx)(HN,{label:`HR status`,values:r.hrStatus,options:CC,onAdd:r.setHrStatus,onRemove:r.removeHrStatus,onClear:r.clearHrStatus,labelMap:a,searchable:!1}),s.includes(Y.JobTitle)&&(0,L.jsx)(HN,{label:`Job title`,values:r.jobTitle,options:t?.[Y.JobTitle]?.options??[],onAdd:r.setJobTitle,onRemove:r.removeJobTitle,onClear:r.clearJobTitle,searchable:!0,searchPlaceholder:`Search job title`}),s.includes(Y.usedServices)&&(0,L.jsx)(HN,{label:`Apps used`,values:r.services,options:t?.[Y.usedServices]?.options??[],onAdd:r.setServices,onRemove:r.removeServices,onClear:r.clearServices,searchable:!0,searchPlaceholder:`Search for app`}),(0,L.jsx)(qN,{hiddenCount:c,onMoreClick:()=>n.current?.click()})]})},tP={tableWrapper:`_tableWrapper_x1ev0_1`,sentinel:`_sentinel_x1ev0_7`,loadingMore:`_loadingMore_x1ev0_12`},nP=({memberId:e,department:t,isAutoAssigned:n,analyticsContext:r=`table`,tooltipPlacement:i=`top`,maxWidth:a=260})=>{let{t:o}=G(),{track:s}=Pw(),{mutate:c}=lC(),l=(0,I.useCallback)(t=>{c({id:e,departmentId:t[0]?.value??null},{onSuccess:()=>{s(r===`table`?kw.EmployeeTableChange:kw.EmployeeProfilePageChange,r===`table`?{col:`department`}:{field:`department`})},onError:e=>{console.error(`Failed to update department:`,e),b({message:o(`Failed to update department`),variant:`attention`})}})},[e,c,s,o,r]);return(0,L.jsx)(at,{title:n?o(`You can't edit department synced with your SSO Provider`):void 0,placement:i,children:(0,L.jsx)(`div`,{children:(0,L.jsx)(xM,{maxWidth:a,onClick:Fa,defaultValues:t?[{value:t.id,label:t.name,editable:t.isCustom}]:[],onChange:l,disabled:n})})})},rP=({member:e})=>(0,L.jsx)(nP,{memberId:e.id,department:e.department,isAutoAssigned:e.isAutoAssignedDepartment??!1,analyticsContext:`profile`,tooltipPlacement:`top-start`}),iP=({value:e,onChange:t,type:n=`text`})=>{let{anchorEl:r,onClose:i,onOpen:a,open:o}=Ot(),[s,c]=(0,I.useState)(e);(0,I.useEffect)(()=>{c(e)},[e]);let l=async()=>{s!==e&&t(s),i()};return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(yt,{onClick:a,content:e&&(0,L.jsx)(k,{ellipsis:!0,variant:`labelM`,children:e})}),(0,L.jsx)(nt,{anchorEl:r,onClose:l,open:o,anchorOrigin:{vertical:`top`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},children:(0,L.jsx)(`form`,{onSubmit:e=>{e.preventDefault(),l()},children:(0,L.jsx)(Fe,{autoFocus:!0,value:s,onChange:e=>c(e.target.value),type:n})})})]})},aP=({memberId:e,jobTitle:t,analyticsContext:n=`table`})=>{let{mutate:r}=lC(),{track:i}=Pw(),{t:a}=G(),o=(0,I.useCallback)(t=>{r({id:e,jobTitle:t},{onSuccess:()=>{i(n===`table`?kw.EmployeeTableChange:kw.EmployeeProfilePageChange,{col:`jobTitle`})},onError:e=>{console.error(`Failed to update job title:`,e),b({message:a(`Failed to update job title`),variant:`attention`})}})},[e,r,i,a,n]);return(0,L.jsx)(iP,{value:t??``,onChange:o})},oP=({member:e})=>(0,L.jsx)(aP,{memberId:e.id,jobTitle:e.jobTitle,analyticsContext:`profile`}),sP=({memberId:e,hrStatus:t,analyticsContext:n=`table`})=>{let{mutate:r}=lC(),{track:i}=Pw(),{t:a}=G();return(0,L.jsx)(wM,{value:t,onChange:(0,I.useCallback)(o=>{o!==t&&r({id:e,hrStatus:o},{onSuccess:()=>{i(n===`table`?kw.EmployeeTableChange:kw.EmployeeProfilePageChange,n===`table`?{col:`hdStatus`}:{col:`hrStatus`})},onError:e=>{console.error(`Failed to update HR status:`,e),b({message:a(`Failed to update HR status`),variant:`attention`})}})},[e,t,r,i,a,n])})},cP=({member:e})=>(0,L.jsx)(sP,{memberId:e.id,hrStatus:e.hrStatus,analyticsContext:`profile`}),lP=({memberId:e,accountType:t,analyticsContext:n=`table`})=>{let{mutate:r}=lC(),{track:i}=Pw(),{t:a}=G();return(0,L.jsx)(EM,{value:t,onChange:(0,I.useCallback)(t=>{r({id:e,accountType:t},{onSuccess:()=>{i(n===`table`?kw.EmployeeTableChange:kw.EmployeeProfilePageChange,{col:`accountType`})},onError:e=>{console.error(`Failed to update account type:`,e),b({message:a(`Failed to update account type`),variant:`attention`})}})},[e,r,i,a,n])})},uP=({member:e})=>(0,L.jsx)(lP,{memberId:e.id,accountType:e.accountType,analyticsContext:`profile`}),dP=({member:e})=>(0,L.jsx)(k,{variant:`labelM`,color:`neutral500`,children:e.email}),fP=(0,I.memo)(({getValue:e})=>{let{id:t,accountType:n}=e();return(0,L.jsx)(lP,{memberId:t,accountType:n,analyticsContext:`table`})}),pP=(0,I.memo)(({getValue:e})=>{let t=e(),n=t?.length??0,r=n>0,i=n>3&&`+${n-3}`;return(0,L.jsxs)(T,{px:1,direction:`row`,alignItems:`center`,spacing:1,children:[r?(0,L.jsx)($T,{items:t,size:28}):(0,L.jsx)(k,{variant:`labelM`,color:`neutral200`,children:`-`}),(0,L.jsx)(k,{variant:`labelM`,color:`neutral500`,noWrap:!0,children:i})]})}),mP=(0,I.memo)(({getValue:e,disableLink:t})=>{let{id:n,picture:r,fullName:i,email:a}=e(),o=(0,L.jsx)(T,{direction:`row`,alignItems:`center`,px:1,py:.75,children:(0,L.jsx)(tt,{label:i,secondaryLabel:a,startAvatar:(0,L.jsx)(qn,{size:`medium`,type:`photo`,src:r??``,children:i.charAt(0).toUpperCase()})})});return t?o:(0,L.jsx)(Rr,{to:be(Io.DETAILS.path,{id:n}),style:{textDecoration:`none`,color:`unset`},children:o})}),hP=(0,I.memo)(({getValue:e})=>{let{id:t,department:n,isAutoAssignedDepartment:r}=e();return(0,L.jsx)(nP,{memberId:t,department:n,isAutoAssigned:r??!1,analyticsContext:`table`})}),gP=(0,I.memo)(({getValue:e})=>{let{id:t,hrStatus:n}=e();return(0,L.jsx)(sP,{memberId:t,hrStatus:n,analyticsContext:`table`})}),_P=(0,I.memo)(({getValue:e})=>{let{id:t,jobTitle:n}=e();return(0,L.jsx)(aP,{memberId:t,jobTitle:n,analyticsContext:`table`})}),vP=Ne(),yP=e=>[vP.display(vN),vP.accessor(({firstName:e,lastName:t,id:n,picture:r,email:i})=>({id:n,picture:r,email:i,fullName:`${e} ${t}`}),{id:LS.Name,header:z.t(`Name`),size:200,enableSorting:!0,cell:mP,enableHiding:!1,meta:{stopPropagation:!0}}),vP.accessor(({id:e,jobTitle:t})=>({id:e,jobTitle:t}),{id:LS.JobTitle,header:z.t(`Job title`),enableSorting:!1,cell:_P,meta:{stopPropagation:!0}}),vP.accessor(({id:e,hrStatus:t})=>({id:e,hrStatus:t}),{id:LS.HrStatus,header:z.t(`HR status`),enableSorting:!1,cell:gP,maxSize:200,meta:{stopPropagation:!0}}),vP.accessor(({id:e,department:t,isAutoAssignedDepartment:n})=>({id:e,department:t,isAutoAssignedDepartment:n}),{id:LS.Department,header:z.t(`Department`),enableSorting:!1,cell:hP}),vP.accessor(({id:e,accountType:t})=>({id:e,accountType:t}),{id:LS.AccountType,header:z.t(`Account type`),maxSize:200,enableSorting:!1,cell:fP,meta:{stopPropagation:!0}}),vP.accessor(`usedServices`,{id:LS.Apps,header:z.t(`Apps used`),cell:pP,enableSorting:!0,meta:{stopPropagation:!0},enableResizing:!1}),vP.accessor(({lastActivity:e})=>({value:e}),{id:LS.LastUsedTimestamp,header:z.t(`Last activity`),cell:dN,maxSize:200,meta:{stopPropagation:!0}}
11),vP.display({id:gN,size:40,cell:hN(e),enableHiding:!1,meta:{stopPropagation:!0},enableResizing:!1})],bP=()=>{let{t:e}=G(),{track:t}=Pw(),{data:n}=nG(),[r,i]=(0,I.useState)(null),a=wt();return{actionsCreator:(0,I.useCallback)(r=>{let{email:o,isHidden:s}=r,c=()=>{i(r),a.openModal()};return n?.email===o?[]:[{name:e(s?`Unarchive`:`Archive`),action:()=>{c(),t(s?kw.EmployeeActionsUnarchive:kw.EmployeeActionsArchive)}}]},[t,e,a.openModal,n]),currentMember:r,archiveModal:a}},xP=(0,I.memo)(({archived:e=!1})=>{let{t}=G(),{track:n}=Pw(),r=Ar(),{scrollContainer:i}=(0,I.useContext)(UW),a=tN({source:eM.UserGrid}),o=(0,I.useRef)(null),[s,c]=rv(0,!0),[l,u]=C_(),[d,f]=S_(`search`,``),p=l[0]?l[0].desc?qs.DESC_ORDER:qs.ASC_ORDER:void 0,m=l[0]?.id,{flatData:h,totalCount:g,handleLoadMore:_,hasNextPage:v,isFetchingNextPage:y,isLoading:b}=QS({filters:a.filtersWithValues,searchTerm:d,orderBy:p??qs.DESC_ORDER,sortBy:m??LS.LastUsedTimestamp,isHidden:e}),{ref:x,inView:S}=Ce({root:i,rootMargin:`200px`});(0,I.useEffect)(()=>{S&&_()},[S,_]);let ee=(0,I.useMemo)(()=>b?We():h,[b,h]),te=YS(),C=a.filtersWithValues.length!==0||!!d,{actionsCreator:w,currentMember:ne,archiveModal:re}=bP(),[ie,ae,oe]=__({},{}),se=(0,I.useMemo)(()=>yP(w),[w]),{columnVisibility:ce,onColumnVisibilityChange:le}=x_({columns:se,hiddenColumnIdPrefix:`applications-grid_`}),{columnSizing:ue,onColumnSizingChange:de}=w_(`members-table`),fe=on({data:ee,columns:se,onSortingChange:e=>{u(e);let t=Ct(l,e);n(kw.EmployeeTableSort,t)},state:{sorting:l,columnPinning:{left:[_N,LS.Name],right:[gN]},rowSelection:ie,columnVisibility:ce,columnSizing:ue},rowCount:g,enableColumnResizing:!0,enableRowSelection:!0,onRowSelectionChange:ae,onColumnSizingChange:de,onColumnVisibilityChange:le}),pe=(0,I.useCallback)(({row:e})=>{r(be(Io.DETAILS.path,{id:e.original.id}))},[r]);(0,I.useEffect)(()=>{oe()},[a.filtersWithValues,d]);let me=e=>{f(e),e&&n(kw.EmployeeTableSearch,{search:e})},he=fe.getSelectedRowModel().rows.map(({original:e})=>e);return(0,L.jsx)(L.Fragment,{children:(0,L.jsxs)(`div`,{className:tP.tableWrapper,children:[(0,L.jsx)(AM.Provider,{value:{...a},children:(0,L.jsx)(bN,{containerProps:{ref:s},rightPanel:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(sN,{value:d,handleSearch:me,fullWidth:!0}),(0,L.jsx)(pt,{table:fe,onClick:()=>n(kw.TableColumnManagement,{source:eM.UserGrid})}),(0,L.jsx)(aN,{}),(0,L.jsx)(NE,{dataType:`members`})]}),filters:(0,L.jsx)(PM,{filters:(0,L.jsx)(eP,{viewControl:a,facets:te,filtersButtonRef:o})}),currentCount:g,isCurrentCountLoading:b})}),(0,L.jsx)(Re,{stickyHeaderTop:c,table:fe,onRowClick:pe,scrollContainer:i,noResults:ee.length===0&&C}),v&&(0,L.jsx)(`div`,{ref:x,className:tP.sentinel,children:y&&(0,L.jsx)(`div`,{className:tP.loadingMore,children:t(`Loading more...`)})}),(0,L.jsxs)(pE,{rowSelection:ie,onClose:oe,children:[(0,L.jsx)(kM,{members:he,onClear:oe}),(0,L.jsx)(CM,{members:he,onClear:oe}),(0,L.jsx)(TM,{members:he,onClear:oe}),(0,L.jsx)(DM,{members:he,onClear:oe}),(0,L.jsx)(OM,{members:he,onClear:oe})]}),(0,L.jsx)(xN,{member:ne,...re})]})})}),SP=()=>{let{t:e}=G();return(0,L.jsxs)(T,{gap:3,width:`100%`,children:[(0,L.jsx)(fE,{prevPage:e(`Employees`),prevPageRoute:Io.ROOT.path,currentEntity:e(`Archive`)}),(0,L.jsx)(Ij,{children:(0,L.jsx)(xP,{archived:!0})})]})},CP=({event:e,properties:t})=>{let{track:n}=Pw();return(0,I.useEffect)(()=>{n(e,t)},[e,n,t]),null};function wP(){let[e,t]=(0,I.useState)({isOpen:!1}),n=(0,I.useCallback)(e=>t({isOpen:!0,payload:e}),[]),r=(0,I.useCallback)(()=>t({isOpen:!1,payload:void 0}),[]);return(0,I.useMemo)(()=>({isOpen:e.isOpen,payload:e.payload,open:n,close:r}),[e,n,r])}var TP=(0,I.createContext)(null),EP=({children:e})=>{let t=wP(),n=wP(),r=wP(),i=wP(),a=wP(),o=(0,I.useMemo)(()=>({addLicense:t,editLicense:n,assignLicenses:r,assignMemberLicenses:i,autoAssignLicenses:a}),[t,n,r,i,a]);return(0,L.jsx)(TP.Provider,{value:o,children:e})},DP=()=>{let e=(0,I.useContext)(TP);if(!e)throw Error(`Application modal hooks must be used within an ApplicationModalsProvider`);return e},OP=()=>DP().addLicense,kP=()=>DP().editLicense,AP=()=>DP().assignLicenses,jP=()=>DP().assignMemberLicenses,MP=()=>DP().autoAssignLicenses,NP=Z((0,I.lazy)(()=>j(()=>Promise.resolve().then(()=>Bw),void 0))),PP=Z((0,I.lazy)(()=>j(()=>import(`./applications-page-CYPucGVT.js`),__vite__mapDeps([29,4,1,3,5,6,7,8,2,9,10,11,12,30,22,31,32,33,34,35,36,37,38,39,24,40,41,42,43])))),FP=Z((0,I.lazy)(()=>j(()=>import(`./applications-archive-page-CLTDYco8.js`),__vite__mapDeps([44,4,1,3,5,6,7,8,2,9,10,11,30,22,12,31,32,33,34])))),IP=Z((0,I.lazy)(()=>j(()=>
11import(`./application-details-page-B2mEuaFa.js`),__vite__mapDeps([45,1,6,7,3,4,8,2,9,5,10,11,22,12,36,33,31,39,24,40,46,42,47,48,49,50])))),LP=[{path:Fo.ROOT.path,element:(0,L.jsx)(fD,{children:(0,L.jsxs)(EP,{children:[(0,L.jsx)(kr,{}),(0,L.jsx)(CP,{event:kw.ApplicationPage})]})}),children:[{index:!0,element:(0,L.jsx)(NP,{permissions:[V.ALL_SERVICES],children:(0,L.jsx)(PP,{})})},{path:Fo.DETAILS.path,element:(0,L.jsx)(NP,{permissions:[V.ALL_SERVICES],children:(0,L.jsx)(IP,{})})},{path:Fo.ARCHIVE.path,element:(0,L.jsx)(NP,{permissions:[V.ALL_SERVICES],children:(0,L.jsx)(FP,{})})}]}],RP=Z((0,I.lazy)(()=>j(()=>import(`./review-bill-page-BPNJpvNR.js`),__vite__mapDeps([51,1,6,7,3,4,8,2,9,5,10,11,12,52,22,53,46,54,55])))),zP=Z((0,I.lazy)(()=>j(()=>import(`./money-master-CxXR5-rQ.js`).then(e=>({default:e.MoneyMaster})),__vite__mapDeps([56,1,6,7,3,4,8,9,5,2,10,11,22,12,57])))),BP=[{path:Ms.REVIEW.path,element:(0,L.jsx)(zP,{}),children:[...R.ENABLE_BILL_PAY_FEATURE?[{index:!0,element:(0,L.jsx)(oD,{children:(0,L.jsx)(RP,{})})}]:[]]}],VP=Z((0,I.lazy)(()=>j(()=>import(`./discounts-page-DUO7Cu39.js`),__vite__mapDeps([58,1,59,6,7,3,4,8,2,9,5,10,11,22,12,60,24,39,40,61,62,43])))),HP=[{path:Ro.ROOT.path,children:[{index:!0,element:(0,L.jsx)(Vw,{permissions:[V.ALL_DISCOUNT_SERVICE,V.ALL_DISCOUNT_APPLICATION],children:(0,L.jsx)(oD,{children:(0,L.jsx)(VP,{})})})}]}],UP=Z((0,I.lazy)(()=>j(()=>import(`./money-dashboard-router-Bd6IRzT4.js`).then(e=>({default:e.MoneyDashboardRouter})),__vite__mapDeps([63,1,6,7,3,4,8,5,2,9,10,11,22,12,64,65,66,53,24,55,46,67,68,69,70,71,72,73,74,75,49])))),WP=Z((0,I.lazy)(()=>j(()=>import(`./member-dashboard-Dhc0pBN-.js`).then(e=>({default:e.MemberDashboard})),__vite__mapDeps([76,1,6,7,3,4,8,5,2,9,10,11,70,22,12,64,65,66,53,24,55,46,67,68,69,71,72,73,74,77,75,49])))),GP=Z((0,I.lazy)(()=>j(()=>import(`./move-money-CeCrOmEt.js`).then(e=>({default:e.MoveMoney})),__vite__mapDeps([78,4,1,3,5,6,7,8,2,9,10,11,12])))),KP=Z((0,I.lazy)(()=>j(()=>import(`./move-money-send-out-ffMTRZ7p.js`).then(e=>({default:e.MoveMoneySendOut})),__vite__mapDeps([79,1,2,3,4,9,6,7,8,5,10,11,12,53,22,55,46,80,73,54,74,65])
11))),qP=Z((0,I.lazy)(()=>j(()=>import(`./move-money-transfer-VKAaSCxI.js`).then(e=>({default:e.MoveMoneyTransfer})),__vite__mapDeps([81,1,6,7,3,4,8,2,5,9,10,11,12,80,72,55,46,73,53,22])))),JP=Z((0,I.lazy)(()=>j(()=>import(`./unsubscribe-D5LSBStk.js`).then(e=>({default:e.UnsubscribedNotifications})),__vite__mapDeps([82,1,4,3,5,6,7,8,2,9,10,11])))),YP=Z((0,I.lazy)(()=>j(()=>import(`./card-details-WsygVf-2.js`).then(e=>({default:e.CardDetailsRouter})),__vite__mapDeps([83,1,6,7,3,4,8,2,9,5,10,11,12,64,22,65,66,53,24,55,46,67,68,69,70,71,72,73,74,18])))),XP=Z((0,I.lazy)(()=>j(()=>import(`./create-card-BmgVlU3P.js`).then(e=>({default:e.CreateCardPage})),__vite__mapDeps([84,1,6,7,3,4,8,2,9,5,10,11,12,64,22,65,66,53,24,55,46,67,68,69,70,71,72,73,74])))),ZP=Z((0,I.lazy)(()=>j(()=>Promise.resolve().then(()=>Aj).then(e=>({default:e.PrivateRoute})),void 0))),QP=Z((0,I.lazy)(()=>j(()=>Promise.resolve().then(()=>Aj).then(e=>({default:e.CardStageAccess})),void 0))),$P=Z((0,I.lazy)(()=>j(()=>Promise.resolve().then(()=>Aj).then(e=>({default:e.PermissionAccess})),void 0))),eF=Z((0,I.lazy)(()=>j(()=>Promise.resolve().then(()=>Aj).then(e=>({default:e.USOnlyAccess})),void 0))),tF=Z((0,I.lazy)(()=>j(()=>Promise.resolve().then(()=>Aj).then(e=>({default:e.AutoPayAccess})),void 0))),nF=Z((0,I.lazy)(()=>j(()=>Promise.resolve().then(()=>Aj).then(e=>({default:e.HighnoteBlockedAccess})),void 0))),rF=Z((0,I.lazy)(()=>j(()=>import(`./card-stage-fallback-DyDpTWjK.js`).then(e=>({default:e.CardStageFallback})),__vite__mapDeps([85,4,1,3,12,6,7,8])))),iF=Z((0,I.lazy)(()=>j(()=>import(`./AdminSettings-hwa1z9mc.js`),__vite__mapDeps([86,4,1,3,87,6,7,8,2,9,5,10,11,22,12,88,66,89,39,24,40,90,62])))),aF=Z((0,I.lazy)(()=>j(()=>import(`./MemberSettings-BYOfwgGA.js`),__vite__mapDeps([91,4,1,3,87,6,7,8,2,9,5,10,11,22,12,88,66,89,39,24,40,90,62])))),oF=Z((0,I.lazy)(()=>j(()=>import(`./our-partners-mgpiFHfH.js`),__vite__mapDeps([92,1,4,3,5,6,7,8,2,9,10,11,12])))),sF=Z((0,I.lazy)(()=>j(()=>import(`./fraud-prevention-REs_oEZp.js`),__vite__mapDeps([93,4,1,3,5,6,7,8,2,9,10,11])))),cF=Z((0,I.lazy)(()=>j(()=>import(`./currency-rates-B-z3r9L2.js`),__vite__mapDeps([94,1,6,7,3,4,8,9,5,2,10,11])))),lF=Z((0,I.lazy)(()=>j(()=>import(`./limits-BF5TNz4P.js`),__vite__mapDeps([95,1,4,3,9,6,7,8,5,2,10,11])))),uF=Z((0,I.lazy)(()=>j(()=>import(`./fees-B22KxUgx.js`),__vite__mapDeps([96,1,4,3,9,6,7,8,5,2,10,11,22,12])))),dF=Z((0,I.lazy)(()=>j(()=>import(`./member-cards-placeholder-FBU51gQv.js`).then(e=>e.n),__vite__mapDeps([77,1,4,3,5,6,7,8,2,9,10,11])))),fF=Z((0,I.lazy)(()=>j(()=>import(`./money-accounting-page-CDr56862.js`),__vite__mapDeps([97,1,6,7,3,4,8,9,5,2,10,11,12,64,22,65,66,53,24,55,46,67,68,69,89])))),pF=Z((0,I.lazy)(()=>j(()=>import(`./money-recipients-page-DhaBVQ89.js`),__vite__mapDeps([98,1,6,7,3,4,8,9,5,2,10,11,22,12,53,46,67,54,55])))),mF=Z((0,I.lazy)(()=>j(()=>import(`./accounting-setup-wizard-DgHQqsh2.js`).then(e=>e.r),__vite__mapDeps([89,1,6,7,3,4,8,2,9,5,10,11,12,66,22])))),hF=Z((0,I.lazy)(()=>j(()=>import(`./money-accounting-set-up-BBr5XlLH.js`),__vite__mapDeps([99,4,1,3,5,6,7,8,2,9,10,11,12,88,22,66,89,39,24,40,90])))),gF=Z((0,I.lazy)(()=>j(()=>import(`./money-convert-B3lKDf8r.js`),__vite__mapDeps([100,1,6,7,3,4,8,2,9,5,10,11,12,65,22,71,55,46,80,74])))),_F=Z((0,I.lazy)(()=>j(()=>import(`./money-billpays-page-O_Pnacgk.js`),__vite__mapDeps([101,1,6,7,3,4,8,2,9,5,10,11,12,52,22,53,67,68])))),vF=Z((0,I.lazy)(()=>j(()=>import(`./money-ach-requests-page-CJRr827T.js`),__vite__mapDeps([102,1,6,7,3,4,8,9,5,2,10,11,22,67])))),yF=Z((0,I.lazy)(()=>j(()=>import(`./money-payments-page-0A-S0jjr.js`),__vite__mapDeps([103,1,6,7,3,4,8,5,2,9,10,11,22,12,67,104])))),bF=Z((0,I.lazy)(()=>j(()=>import(`./money-payments-settings-page-BjKN4OCY.js`).then(e=>e.t),__vite__mapDeps([104,1,6,7,3,4,8,9,5,2,10,11,12])))),xF=[{path:Wo,element:(0,L.jsx)(ZP,{children:(0,L.jsx)(QP,{euStages:[H.Onboarded],fallback:(0,L.jsx)(rF,{}),children:(0,L.jsx)(kr,{})})}),children:[{index:!0,element:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)($P,{permissions:[V.CARDS_ALL_ACCESS],children:(0,L.jsx)(UP,{})}),(0,L.jsx)($P,{permissions:[V.CARDS_MY_ONLY],children:R.TRIBE_CARDS_ENABLE?(0,L.jsx)(WP,{}):(0,L.jsx)(dF,{})})]})},{path:$o,element:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)($P,{permissions:[V.CARDS_ALL_ACCESS],children:(0,L.jsx)(iF,{})}),(0,L.jsx)($P,{permissions:[V.CARDS_MY_ONLY],children:R.TRIBE_CARDS_ENABLE&&(0,L.jsx)(eF,{fallback:(0,L.jsx)(aF,{}),children:(0,L.jsx)(Lr,{to:`/money`,replace:!0})})})]})},{path:Xo,element:(0,L.jsx)($P,{permissions:[V.CARDS_ALL_ACCESS],children:(0,L.jsx)(nF,{children:(0,L.jsx)(GP,{})})})},{path:Ps.ROOT.path,element:(0,L.jsx)($P,{permissions:[V.CARDS_ALL_ACCESS],children:(0,L.jsx)(gF,{})})},{path:Zo,element:(0,L.jsx)($P,{permissions:[V.CARDS_ALL_ACCESS],children:(0,L.jsx)(nF,{children:(0,L.jsx)(KP,{})})})},{path:Qo,element:(0,L.jsx)($P,{permissions:[V.CARDS_ALL_ACCESS],children:(0,L.jsx)(nF,{children:(0,L.jsx)(qP,{})})})},...Uf?[{path:ns,element:(0,L.jsx)($P,{permissions:[V.CARDS_ALL_ACCESS],children:(0,L.jsx)(XP,{})})}]:[],{path:rs,element:(0,L.jsx)($P,{permissions:[V.CARDS_ALL_ACCESS,V.CARDS_MY_ONLY],children:(0,L.jsx)(YP,{})})},{path:Go,element:(0,L.jsx)($P,{permissions:[V.CARDS_ALL_ACCESS,V.CARDS_MY_ONLY],children:(0,L.jsx)(oF,{})})},{path:Ko,element:(0,L.jsx)($P,{permissions:[V.CARDS_ALL_ACCESS,V.CARDS_MY_ONLY],children:(0,L.jsx)(sF,{})})},{path:qo,element:(0,L.jsx)($P,{permissions:[V.CARDS_ALL_ACCESS],fallback:(0,L.jsx)(Lr,{to:Wo,replace:!0}),children:(0,L.jsx)(cF,{})})},{path:Jo,element:(0,L.jsx)($P,{permissions:[V.CARDS_ALL_ACCESS],children:(0,L.jsx)(lF,{})})},{path:Yo,element:(0,L.jsx)($P,{permissions:[V.CARDS_ALL_ACCESS,V.CARDS_MY_ONLY],children:(0,L.jsx)(uF,{})})},{path:es,element:(0,L.jsx)($P,{permissions:[V.CARDS_MY_ONLY],fallback:(0,L.jsx)(rF,{}),children:(0,L.jsx)(JP,{})})},{path:ss,element:(0,L.jsx)($P,{permissions:[V.CARDS_ALL_ACCESS],fallback:(0,L.jsx)(rF,{}),children:(0,L.jsx)(fF,{})})},{path:ls,element:(0,L.jsx)($P,{permissions:[V.CARDS_ALL_ACCESS],fallback:(0,L.jsx)(rF,{}),children:(0,L.jsx)(hF,{})})},{path:cs,element:(0,L.jsx)($P,{permissions:[V.CARDS_ALL_ACCESS],fallback:(0,L.jsx)(rF,{}),children:(0,L.jsx)(mF,{})})},{path:js.ROOT.path,element:(0,L.jsx)($P,{permissions:[V.CARDS_ALL_ACCESS],fallback:(0,L.jsx)(rF,{}),children:(0,L.jsx)(pF,{})})},...R.ENABLE_BILL_PAY_FEATURE?[{path:Ms.ROOT.path,element:(0,L.jsx)($P,{permissions:[V.CARDS_ALL_ACCESS],fallback:(0,L.jsx)(rF,{}),children:(0,L.jsx)(_F,{})})}]:[],{path:Ns.ROOT.path,element:(0,L.jsx)(eF,{strict:!0,children:(0,L.jsx)($P,{permissions:[V.CARDS_ALL_ACCESS],fallback:(0,L.jsx)(rF,{}),children:(0,L.jsx)(vF,{})})})},...R.ENABLE_AUTOPAY_FEATURE?[{path:us,element:(0,L.jsx)(tF,{children:(0,L.jsx)($P,{permissions:[V.CARDS_ALL_ACCESS],fallback:(0,L.jsx)(rF,{}),children:(0,L.jsx)(yF,{})})})},{path:ds,element:(0,L.jsx)(tF,{children:(0,L.jsx)($P,{permissions:[V.CARDS_ALL_ACCESS],fallback:(0,L.jsx)(rF,{}),children:(0,L.jsx)(bF,{})})})}]:[]]}];function SF(e,t){let n=t[e.field];return`ne`in e?n!==e.ne:n===e.value}function CF(e,t){return e?`and`in e?e.and.every(e=>SF(e,t)):SF(e,t):!0}function wF(e){return e.replace(/([A-Z])/g,` $1`).replace(/^./,e=>e.toUpperCase()).trim()}function TF(e){return e.map(e=>{if(e&&typeof e==`object`&&`value`in e){let t=e;return{value:String(t.value),label:String(t.label??t.value)}}return{value:String(e),label:String(e)}})}function EF(e,t){return e[`ui:title`]===void 0?e.title===void 0?wF(t):String(e.title):String(e[`ui:title`])}function DF(e){let t=e.type,n=e[`ui:widget`],r=e.enum,i=e.format,a=`text`;if(t===`array`)return{type:`array-group`,itemsSchema:e.items,maxItems:e[`ui:maxItems`]??4,addLabel:e[`ui:addLabel`],itemTitle:e[`ui:itemTitle`],itemSubtitle:e[`ui:itemSubtitle`],placeholder:e[`ui:placeholder`]??e.placeholder,description:e[`ui:description`]??e.description,defaultValue:e.default,aggregateConstraints:e[`ui:aggregateConstraints`]};a=t===`boolean`?`boolean`:t===`number`||t===`integer`?`number`:r?`select`:i===`date`||i===`date-time`?`date`:`text`,n===`textarea`?a=`textarea`:n===`file`||n===`upload`?a=`file`:n===`address-lookup`&&(a=`address`);let o={type:a,placeholder:e[`ui:placeholder`]??e.placeholder,description:e[`ui:description`]??e.description,defaultValue:e.default,visibleWhen:e[`ui:visibleWhen`],widget:n,pattern:e.pattern,format:i,constValue:`const`in e?e.const:void 0};return r&&(o.options=TF(r)),a===`address`&&e[`ui:fieldMapping`]&&(o.fieldMapping=e[`ui:fieldMapping`]),a===`address`&&e[`ui:widget:address-lookup:sourceCountry`]&&(o.sourceCountryField=e[`ui:widget:address-lookup:sourceCountry`]),e[`ui:dataSourceRef`]&&(o.dataSourceRef=e[`ui:dataSourceRef`]),e.minLength!==void 0&&(o.minLength=e.minLength),e.maxLength!==void 0&&(o.maxLength=e.maxLength),e[`ui:showMaxLength`]&&(o.showMaxLength=!0),e.minimum!==void 0&&(o.minimum=e.minimum),e.maximum!==void 0&&(o.maximum=e.maximum),e[`ui:minAge`]!==void 0&&(o.minAge=e[`ui:minAge`]),e[`ui:maxAge`]!==void 0&&(o.maxAge=e[`ui:maxAge`]),e[`ui:secure`]&&(o.secure=!0),e[`ui:suffix`]!==void 0&&(o.suffix=e[`ui:suffix`]),o}function OF(e,t,n){let r=t[e];return{name:e,label:EF(r,e),required:n.has(e),...DF(r)}}function kF(e){let t=e.properties??{},n=new Set(e.required??[]),r=e[`ui:order`]??[],i=new Set;
11r.forEach(e=>{Array.isArray(e)?e.forEach(e=>i.add(e)):i.add(e)});let a=[];return r.forEach((e,r)=>{if(Array.isArray(e)){let i=`row-${r}`;e.forEach(e=>{e in t&&a.push({...OF(e,t,n),rowGroup:i})})}else e in t&&a.push(OF(e,t,n))}),Object.keys(t).filter(e=>!i.has(e)).forEach(e=>a.push(OF(e,t,n))),a}var AF=async e=>$.requester.cardServiceInstance.get(`/cards-router/v1/address/suggestions`,{params:{...e,languageCode:`en`}}).then(({data:e})=>e),jF=async e=>$.requester.cardServiceInstance.get(`/cards-router/v1/address/suggestions/${e}`).then(({data:e})=>e),MF={all:[`address`],suggestions:e=>[...MF.all,`suggestions`,e.search,e.countryISOCode],details:e=>[...MF.all,`details`,e]},NF=e=>N({queryKey:MF.suggestions(e),queryFn:()=>AF(e)}),PF=(e,t)=>F({...NF(e),...t}),FF=e=>N({queryKey:MF.details(e),queryFn:()=>jF(e)}),IF=(e,t)=>F({...FF(e),...t}),LF=({field:e,locked:t,countryISOCode:n,error:r,onMultiChange:i})=>{let[a,o]=(0,I.useState)(``),[s,c]=(0,I.useState)(``),[l,u]=(0,I.useState)(null);x(()=>c(a),300,[a]);let{data:d}=PF({search:s,countryISOCode:n||void 0},{enabled:s.length>=2&&!l,staleTime:0}),{data:f}=IF(l?.id??``,{enabled:!!l?.id});(0,I.useEffect)(()=>{if(!f||!l?.id)return;let t=e.fieldMapping;if(t){let n={[e.name]:l.id};t.street&&(n[t.street]=f.street??``),t.city&&(n[t.city]=f.city??``),t.state&&(n[t.state]=f.region??``),t.zip&&(n[t.zip]=f.postal_code??``),i(n)}else{let t=e.name.replace(`AddressSearch`,``);i({[e.name]:l.id,[`${t}Street`]:f.street??``,[`${t}City`]:f.city??``,[`${t}State`]:f.region??``,[`${t}Zip`]:f.postal_code??``})}},[f,l?.id,e.name,e.fieldMapping,i]);let p=(d?.suggestions??[]).map(e=>({value:e.id,label:e.description})),m=l?[{value:l.id,label:l.label},...p.filter(e=>e.value!==l.id)]:p;return(0,L.jsx)(Ke,{label:t?(0,L.jsxs)(T,{direction:`row`,alignItems:`center`,gap:.5,component:`span`,children:[(0,L.jsx)(k,{variant:`inherit`,component:`span`,children:e.label}),(0,L.jsx)(xt,{sx:{fontSize:14,color:`neutral300`,verticalAlign:`middle`}})]}):e.label,value:l?.id??``,options:m,onChange:e=>{if(t||!e)return;let n=m.find(t=>t.value===String(e));n&&(u({id:n.value,label:n.label}),o(``))},onInputChange:(e,n,r)=>{t||r!==`input`||(o(n),u(null))},placeholder:e.placeholder??`Search address...`,fullWidth:!0,disabled:t,error:!!r,helperText:r,labelSize:`large`})},RF={"& .MuiInputBase-input":{fontWeight:500}},zF=({field:e,value:t,error:n,locked:r,onChange:i})=>{let{data:a,isLoading:o}=Gg(),s=(0,I.useMemo)(()=>(a??[]).map(e=>({value:e.iso31661Alpha2Code,label:e.name})),[a]);return(0,L.jsx)(Ke,{label:r?(0,L.jsxs)(T,{direction:`row`,alignItems:`center`,gap:.5,component:`span`,children:[e.label,(0,L.jsx)(xt,{sx:{fontSize:14,color:`neutral300`,verticalAlign:`middle`}})]}):e.label,value:t==null?``:String(t),placeholder:o?`Loadingâ¦`:e.placeholder??``,options:s,onChange:t=>i(e.name,t),fullWidth:!0,disabled:r||o,error:!!n,helperText:n,labelSize:`large`,sx:RF})},BF=[`name`,`fullName`,`full_name`,`legalName`,`companyName`];function VF(e,t){let n=e.firstName??e.first_name,r=e.lastName??e.last_name;if(n||r)return[n,r].filter(Boolean).join(` `).trim();for(let t of BF){let n=e[t];if(n&&typeof n==`string`)return n}if(t?.scanStrings){let t=Object.values(e).find(e=>typeof e==`string`&&e!==``);if(typeof t==`string`)return t}return t?.fallback??``}var HF=[`ownershipPercentage`,`ownership_percentage`,`percentage`];function UF(e){let t=HF.find(t=>e[t]!==void 0&&e[t]!==null&&e[t]!==``);return t?e[t]:void 0}function WF(e){let t=UF(e);if(t===void 0)return;let n=Number(t);return Number.isNaN(n)?void 0:n}var GF=({field:e,value:t,error:n,locked:r,stepContext:i,onChange:a})=>{let o=(e.dataSourceRef?i?.[e.dataSourceRef]:void 0)??[],s=(0,I.useMemo)(()=>o.map((e,t)=>({value:String(t),label:VF(e,{fallback:`Unknown`,scanStrings:!0})})),[o]);return(0,I.useEffect)(()=>{!r&&s.length===1&&t===void 0&&a(e.name,0)},[s.length,t,r]),(0,L.jsx)(Ke,{label:r?(0,L.jsxs)(T,{direction:`row`,alignItems:`center`,gap:.5,component:`span`,children:[e.label,(0,L.jsx)(xt,{sx:{fontSize:14,color:`neutral300`,verticalAlign:`middle`}})]}):e.label,value:t==null?``:String(t),placeholder:e.placeholder??``,options:s,onChange:t=>a(e.name,t===``?void 0:Number(t)),fullWidth:!0,disabled:r,error:!!n,helperText:n,labelSize:`large`,sx:RF})};function KF(e,t){if(!e)return{dialCode:``,number:``,countryCode:void 0};let n=ji(e);if(n)return{dialCode:String(n.countryCallingCode),number:n.nationalNumber,countryCode:n.country};let r=e.startsWith(`+`)?e:`+${e}`,i=[...t].sort((e,t)=>
11t.value.length-e.value.length);for(let e of i)if(r.startsWith(`+${e.value}`))return{dialCode:e.value,number:r.slice(e.value.length+1).trim(),countryCode:e.countryCode};return{dialCode:``,number:e,countryCode:void 0}}function qF(e,t){if(!t||!e)return e;try{return new Mi(t).input(e)}catch{return e}}function JF(e,t){let n=t.replace(/\D/g,``);return!e||!n?``:`+${e}${n}`}var YF=({field:e,value:t,error:n,locked:r,onChange:i})=>{let{data:a,isLoading:o}=Gg(),s=(0,I.useMemo)(()=>{let e=new Map;for(let t of a??[]){if(!t.callingCode)continue;let n=t.callingCode.replace(/\D/g,``);!n||e.has(n)||e.set(n,{value:n,label:`+${n}`,countryCode:t.iso31661Alpha2Code})}return[...e.values()]},[a]),c=typeof t==`string`?t:``,[l,u]=(0,I.useState)(`1`),[d,f]=(0,I.useState)(``),p=(0,I.useMemo)(()=>s.find(e=>e.value===l)?.countryCode??`US`,[s,l]),m=(0,I.useRef)(null);(0,I.useEffect)(()=>{if(s.length===0||c===m.current)return;let e=KF(c,s);u(e.dialCode||`1`),f(qF(e.number,e.countryCode??`US`)),m.current=c},[c,s]);let h=t=>{u(t);let n=JF(t,d);m.current=n,i(e.name,n)};return(0,L.jsxs)(T,{gap:0,width:`100%`,children:[(0,L.jsx)(Un,{size:`large`,variant:`primary`,sx:{mb:1,display:`block`},children:e.label}),(0,L.jsxs)(T,{direction:`row`,gap:1,alignItems:`flex-start`,width:`100%`,children:[(0,L.jsx)(Ke,{value:l,placeholder:o?`Loadingâ¦`:`+1`,options:s,onChange:e=>h(String(e??``)),disabled:r||o,error:!!n,containerProps:{sx:{width:104,flexShrink:0}},sx:RF,labelSize:`large`}),(0,L.jsx)(Fe,{value:d,placeholder:e.placeholder??`Phone number`,onChange:t=>{if(Ai(`+${l}${t.target.value.replace(/\D/g,``)}`)===`TOO_LONG`)return;let n=qF(t.target.value,p);f(n);let r=JF(l,n);m.current=r,i(e.name,r)},containerProps:{sx:{flex:1}},sx:RF,disabled:r,error:!!n,helperText:n,labelSize:`large`})]})]})},XF=({html:e,...t})=>{let n=(0,I.useMemo)(()=>le.sanitize(e),[e]);return(0,L.jsx)(k,{...t,dangerouslySetInnerHTML:{__html:n}})},ZF=({label:e,value:t,placeholder:n,locked:r,error:i,onChange:a})=>{let[o,s]=(0,I.useState)(!1);return(0,L.jsx)(Fe,{label:e,type:o?`text`:`password`,value:t,placeholder:n,autoComplete:`new-password`,onChange:e=>{let t=e.target.value.replace(/\D/g,``).slice(0,9),n=t;t.length>5?n=`${t.slice(0,3)}-${t.slice(3,5)}-${t.slice(5)}`:t.length>3&&(n=`${t.slice(0,3)}-${t.slice(3)}`),a(n)},fullWidth:!0,disabled:r,error:!!i,helperText:i,labelSize:`large`,sx:RF,InputProps:{endAdornment:(0,L.jsx)(dn,{onClick:()=>s(e=>!e),edge:`end`,size:`small`,children:o?(0,L.jsx)(En,{sx:{color:`neutral400`}}):(0,L.jsx)(xn,{sx:{color:`neutral400`}})})}})},QF=({field:e,value:t,error:n,locked:r,stepContext:i,formData:a,onChange:o,onMultiChange:s})=>{let{t:c}=G(),{mutateAsync:l,isPending:u}=Vg(),[d,f]=(0,I.useState)(void 0),[p,m]=(0,I.useState)(null),h=(0,I.useRef)(0),[g,_]=(0,I.useState)(!1),v=async t=>{if(!t){f(void 0),o(e.name,null);return}let n=++h.current;f(t),m(0);try{let r=await l({file:t,onProgress:m});if(n!==h.current)return;m(null),o(e.name,r)}catch(r){if(n!==h.current)return;console.error(`File upload failed`,r),f(void 0),m(null),o(e.name,null),b({message:c(`Failed to upload {{name}}`,{name:t.name}),variant:`attention`})}},y=e.label!==``,x=r&&y?(0,L.jsxs)(T,{direction:`row`,alignItems:`center`,gap:.5,component:`span`,children:[e.label,(0,L.jsx)(xt,{sx:{fontSize:14,color:`neutral300`,verticalAlign:`middle`}})]}):y?e.label:void 0;return(0,L.jsxs)(O,{children:[(()=>{if(e.widget===`country-select`||e.widget===`api-country-select`)return(0,L.jsx)(zF,{field:e,value:t,error:n,locked:r,onChange:o});if(e.widget===`phone-input`)return(0,L.jsx)(YF,{field:e,value:t,error:n,locked:r,onChange:o});if(e.widget===`beneficiary-select`)return(0,L.jsx)(GF,{field:e,value:t,error:n,locked:r,stepContext:i,onChange:o});switch(e.type){case`text`:{let i=typeof t==`string`?t:``;return e.secure||e.name===`ssn`?(0,L.jsx)(ZF,{label:x,value:i,placeholder:e.placeholder,locked:r,error:n,onChange:t=>o(e.name,t)}):(0,L.jsxs)(O,{children:[(0,L.jsx)(Fe,{label:x,value:i,placeholder:e.placeholder,onChange:t=>o(e.name,t.target.value),fullWidth:!0,disabled:r,error:!!n,helperText:n,labelSize:`large`,sx:RF}),e.showMaxLength&&e.maxLength!==void 0&&(0,L.jsxs)(k,{variant:`bodyM`,color:`neutral400`,mt:.5,textAlign:`center`,children:[i.length,` / `,e.maxLength]})]})}case`number`:{let i=e.suffix??(e.name===`ownershipPercentage`?`%`:void 0),a=t==null?``:String(t);return(0,L.jsx)(Fe,{label:x,type:`text`,inputMode:`decimal`,value:i&&a&&!g?`${a}${i}`:a,placeholder:e.placeholder,onFocus:()=>_(!0),onBlur:()=>_(!1),onChange:t=>{let n=t.target.value.replace(/[^\d.]/g,``),r=n.indexOf(`.`),i=r>=0?n.slice(0,r+1)+n.slice(r+1).replace(/\./g,``):n,a=i===``?null:parseFloat(i);o(e.name,Number.isNaN(a)?null:a)},fullWidth:!0,disabled:r,error:!!n,helperText:n,labelSize:`large`,sx:RF})}case`boolean`:return(0,L.jsxs)(O,{children:[(0,L.jsxs)(T,{direction:`row`,alignItems:`center`,component:`label`,children:[(0,L.jsx)(Zn,{sx:{py:0,px:1}
11,icon:(0,L.jsx)(ze,{sx:{color:n?`red500`:`neutral200`}}),checkedIcon:(0,L.jsx)(bt,{}),checked:!!t,onChange:t=>o(e.name,t.target.checked),disabled:r}),(0,L.jsxs)(T,{direction:`row`,alignItems:`center`,gap:.5,children:[(0,L.jsx)(k,{variant:`bodyM`,color:n?`red500`:`neutral500`,children:e.label}),r&&(0,L.jsx)(xt,{sx:{fontSize:14,color:`neutral300`}})]})]}),n&&(0,L.jsx)(k,{variant:`bodyS`,color:`red500`,mt:.5,ml:5,children:n})]});case`date`:{let i,a;return e.maxAge!==void 0&&(i=(0,B.default)().subtract(e.maxAge,`years`).subtract(1,`day`)),e.minAge!==void 0&&(a=(0,B.default)().subtract(e.minAge,`years`)),(0,L.jsx)(ut,{label:x,value:t?(0,B.default)(String(t)):null,onChange:t=>o(e.name,t?t.format(`YYYY-MM-DD`):null),minDate:i,maxDate:a,fullWidth:!0,disabled:r,error:!!n,helperText:n,labelSize:`large`,slotProps:{textField:{placeholder:``}},sx:RF})}case`select`:return e.widget===`tab-select`?(0,L.jsxs)(O,{children:[(0,L.jsxs)(T,{direction:`row`,alignItems:`center`,gap:.5,mb:1.5,children:[(0,L.jsx)(k,{variant:`labelM`,color:`neutral400`,children:e.label}),r&&(0,L.jsx)(xt,{sx:{fontSize:14,color:`neutral300`}})]}),(0,L.jsx)(T,{direction:`row`,gap:1,flexWrap:`wrap`,children:e.options?.map(n=>(0,L.jsx)(A,{variant:String(t)===n.value?`primary`:`secondary`,onClick:()=>!r&&o(e.name,n.value),disabled:r,children:n.label},n.value))}),n&&(0,L.jsx)(k,{variant:`bodyS`,color:`red500`,mt:.5,children:n})]}):(0,L.jsx)(Ke,{label:x,value:t==null?void 0:String(t),placeholder:e.placeholder??``,options:e.options??[],onChange:t=>o(e.name,typeof t==`object`&&t&&`value`in t?t.value:t),fullWidth:!0,disabled:r,error:!!n,helperText:n,labelSize:`large`,sx:RF});case`textarea`:{let i=typeof t==`string`?t:``;return(0,L.jsxs)(O,{children:[(0,L.jsx)(Fe,{label:x,value:i,placeholder:e.placeholder,onChange:t=>o(e.name,t.target.value),fullWidth:!0,multiline:!0,rows:3,disabled:r,error:!!n,helperText:n,labelSize:`large`,sx:RF}),e.showMaxLength&&e.maxLength!==void 0&&(0,L.jsxs)(k,{variant:`bodyM`,color:`neutral400`,mt:.5,textAlign:`center`,children:[i.length,` / `,e.maxLength]})]})}
11case`file`:return(0,L.jsxs)(O,{children:[(0,L.jsx)(_n,{label:x,value:d,onChange:v,disabled:r||u,loading:u||void 0,placeholder:e.placeholder??``,error:!!n,helperText:u&&p!==null?`Uploading⦠${p}%`:n,labelSize:`large`}),!d&&!!t&&!u&&(0,L.jsx)(k,{variant:`bodyS`,color:`neutral400`,mt:.5,children:`Previously uploaded`})]});case`address`:return(0,L.jsx)(LF,{field:e,locked:r,countryISOCode:(e.sourceCountryField?a?.[e.sourceCountryField]:void 0)||void 0,error:n,onMultiChange:s??(()=>{})});default:return null}})(),e.type!==`boolean`&&e.description&&!n&&(0,L.jsx)(XF,{variant:`bodyM`,color:`neutral400`,mt:.5,html:e.description})]})};function $F(e){let t=new Set,n=[];for(let r of e)if(!r.rowGroup)n.push(r);else if(!t.has(r.rowGroup)){t.add(r.rowGroup);let i=e.filter(e=>e.rowGroup===r.rowGroup);n.push(i.length===1?i[0]:i)}return n}function eI(e,t){let n={};for(let[r,i]of Object.entries(e)){let e=t.find(e=>e.name===r);if(e?.type===`select`&&e.options&&typeof i==`string`)if(e.options.find(e=>e.value===i))n[r]=i;else{let t=e.options.find(e=>e.label.toLowerCase()===i.toLowerCase());t&&(n[r]=t.value)}else n[r]=i}return n}var tI=/\{\{(\w+)\}\}/g;function nI(e,t){return e.replace(tI,(e,n)=>t(n)).replace(/\s+/g,` `).trim()}function rI(e,t){return t.split(`.`).reduce((e,t)=>e?.[t],e)}var iI=new Set([`api-country-select`,`country-select`]);
11function aI(e,t,n){if(e==null||e===``)return``;let r=t?.enum;if(Array.isArray(r)){for(let t of r)if(t&&typeof t==`object`&&`value`in t){let n=t;if(String(n.value)===String(e))return String(n.label??n.value)}else if(String(t)===String(e))return String(t)}let i=t?.[`ui:widget`];if(i&&iI.has(i)){let t=n.get(String(e));if(t)return t}return String(e)}function oI(e,t,n,r){return aI(t[e],n[e],r)}function sI(e,t,n,r){let i=[];for(let a of e){let e=tI.test(a);tI.lastIndex=0;let o=!1,s=a.replace(tI,(e,i)=>{let a=oI(i,t,n,r);return a&&(o=!0),a}).replace(/\s+/g,` `).trim();e&&!o||s&&i.push(s)}return i}function cI(e){return e.schema.properties??{}}function lI(e,t){let n=cI(e);if(t.forEach){let e=n[t.forEach]?.items?.properties;if(e)return e}return n}function uI(e,t,n,r){if(e.type===`document`){let n=e.field?rI(t,e.field):void 0,i=(Array.isArray(n)?n:n==null?[]:[n]).map(e=>r.filesById.get(String(e))).filter(e=>!!e);return i.length?{kind:`document`,label:e.label,files:i}:null}if(e.type===`address`&&e.lines){let i=sI(e.lines,t,n,r.countryMap);
11return i.length?{kind:`address`,label:e.label,lines:i}:null}if(e.secure&&e.field){let n=String(rI(t,e.field)??``);return n?{kind:`secure`,label:e.label,value:n}:null}if(e.template){let i=nI(e.template,e=>oI(e,t,n,r.countryMap));return i?{kind:`text`,label:e.label,value:i}:null}if(e.field){let i=aI(rI(t,e.field),n[e.field],r.countryMap);return i?{kind:`text`,label:e.label,value:i}:null}return null}function dI(e,t,n,r){let i=lI(n,e);return e.groups.map(e=>({rows:e.rows.map(e=>uI(e,t,i,r)).filter(e=>!!e)})).filter(e=>e.rows.length>0)}function fI(e){let t=e.schema[`ui:preview`];return t?(Array.isArray(t)?t:[t]).filter(e=>!!e&&typeof e==`object`&&!!e.card?.id):[]}var pI={Building:`building`,Briefcase:`briefcase`,UserSquare:`person`};function mI(e){return e&&pI[e]||`person`}function hI(e,t){let n=new Map;for(let t of e)for(let e of fI(t)){let r=e.card.id,i=n.get(r)??[];i.push({step:t,block:e}),n.set(r,i)}let r=[];for(let[e,i]of n){let n=[...i].sort((e,t)=>(e.block.order??0)-(t.block.order??0)),a=n.find(e=>e.block.card.title)??n[0],o=a.block.card,s=n.find(e=>e.block.card.type)?.block.card.type??`static`,c=n.find(e=>e.block.card.order!==void 0)?.block.card.order??0,l=n.find(e=>e.block.card.section)?.block.card.section??null,u=mI(n.find(e=>e.block.card.icon)?.block.card.icon);if(s===`list`){let i=n.find(e=>e.block.forEach&&e.block.card.title)??n.find(e=>e.block.forEach);if(!i)continue;(t.getSource(i.step)[i.block.forEach]??[]).forEach((a,s)=>{let d=[];for(let e of n)if(e===i)d.push(...dI(e.block,a,e.step,t));else if(e.block.forEach&&e.block.matchBy){let n=(t.getSource(e.step)[e.block.forEach]??[]).find(t=>Number(t[e.block.matchBy])===s);n&&d.push(...dI(e.block,n,e.step,t))}d.length&&r.push({key:`${e}-${s}`,order:c,section:l,icon:u,title:o.title?nI(o.title,e=>oI(e,a,lI(i.step,i.block),t.countryMap)):``,badge:o.badge&&nI(o.badge,e=>oI(e,a,lI(i.step,i.block),t.countryMap))||null,groups:d})});continue}let d=a.step,f=t.getSource(d);if(f.isAlsoBeneficialOwner===!0)continue;let p=[];for(let e of n)p.push(...dI(e.block,t.getSource(e.step),e.step,t));p.length&&r.push({key:e,order:c,section:l,icon:u,title:o.title?nI(o.title,e=>oI(e,f,cI(d),t.countryMap)):``,badge:o.badge&&nI(o.badge,e=>oI(e,f,cI(d),t.countryMap))||null,groups:p})}return r.sort((e,t)=>e.order-t.order)}function gI(e,t,n){if(!e){let e=Object.values(t).find(e=>typeof e==`string`&&e!==``);return typeof e==`string`?e:n}return nI(e,e=>String(t[e]??``))||n}var _I=({field:e,items:t,locked:n,stepContext:r,fullPage:i,onEditModeChange:a,onAggregateError:o,onChange:s})=>{let{t:c}=G(),[l,u]=(0,I.useState)(null),[d,f]=(0,I.useState)({}),[p,m]=(0,I.useState)({}),[h,g]=(0,I.useState)(!1),_=(0,I.useRef)(t.map(()=>crypto.randomUUID())),v=(0,I.useMemo)(()=>e.itemsSchema?kF(e.itemsSchema):[],[e.itemsSchema]),y=(0,I.useRef)(v);y.current=v;let b=e.maxItems??4,x=(0,I.useMemo)(()=>(e.aggregateConstraints??[]).flatMap(e=>{if(e.op!==`sum`)return[];let n=t.reduce((t,n)=>{let r=Number(n[e.field]);return t+(isNaN(r)?0:r)},0);return e.maximum!==void 0&&n>e.maximum?[e.message??c(`Total {{field}} exceeds {{max}}`,{field:e.field,max:e.maximum})]:e.minimum!==void 0&&n<e.minimum?[e.message??c(`Total {{field}} below {{min}}`,{field:e.field,min:e.minimum})]:[]}),[t,e.aggregateConstraints,c]);(0,I.useEffect)(()=>{o?.(e.name,x)},[x,e.name,o]);let S=v.filter(e=>CF(e.visibleWhen,d)),ee=()=>{g(!1),u(null),f({}),m({}),a?.(null)},te=()=>{f({}),m({}),g(!0),u(null),a?.({fieldName:e.name,label:e.addLabel??e.label,cancel:ee})},C=n=>{f({...t[n]}),m({}),u(n),g(!1),a?.({fieldName:e.name,label:e.addLabel??e.label,cancel:ee})},w=(e,t)=>{if(v.find(t=>t.name===e)?.widget===`tab-select`){let n=Object.fromEntries(v.filter(t=>{let n=t.visibleWhen;return n?`and`in n?n.and.some(t=>t.field===e):n.field===e:!1}).map(e=>[e.name,void 0]));f(r=>({...r,...n,[e]:t}))}else f(n=>({...n,[e]:t}));p[e]&&m(t=>{let n={...t};return delete n[e],n})},ne=(0,I.useCallback)(e=>{f(t=>({...t,...eI(e,y.current)})),m(t=>{let n=Object.keys(e);if(!n.some(e=>e in t))return t;let r={...t};for(let e of n)delete r[e];return r})},[]),re=()=>{let{valid:n,errors:r}=l_(S,d),i=new Set(S.map(e=>e.name)),o=e.itemsSchema?Object.fromEntries(Object.entries(u_(e.itemsSchema,d)).filter(([e])=>i.has(e))):{},c={...r,...o};if(!n||Object.keys(o).length>0){m(c);return}if(h)_.current=[..._.current,crypto.randomUUID()],s(e.name,[...t,d]);else if(l!==null){let n=t.map((e,t)=>t===l?d:e);s(e.name,n)}g(!1),u(null),f({}),m({}),a?.(null)},ie=n=>{_.current=_.current.filter((e,t)=>
11t!==n),s(e.name,t.filter((e,t)=>t!==n))},ae=h||l!==null,oe=()=>$F(S).map(e=>Array.isArray(e)?(0,L.jsx)(T,{direction:`row`,gap:2,children:e.map(e=>(0,L.jsx)(O,{flex:1,minWidth:0,children:(0,L.jsx)(QF,{field:e,value:d[e.name],error:p[e.name],stepContext:r,formData:d,onChange:w,onMultiChange:ne})},e.name))},e.map(e=>e.name).join(`-`)):(0,L.jsx)(QF,{field:e,value:d[e.name],error:p[e.name],stepContext:r,formData:d,onChange:w,onMultiChange:ne},e.name));return i?(0,L.jsxs)(T,{gap:3,children:[oe(),(0,L.jsx)(T,{direction:`row`,justifyContent:`flex-end`,children:(0,L.jsx)(A,{variant:`primary`,size:`medium`,onClick:re,children:e.addLabel??c(`Add`)})})]}):(0,L.jsxs)(O,{children:[(0,L.jsxs)(T,{direction:`row`,alignItems:`center`,gap:.5,mb:1.5,children:[(0,L.jsx)(k,{variant:`labelL`,color:`neutral500`,children:e.label}),n&&(0,L.jsx)(xt,{sx:{fontSize:14,color:`neutral300`}})]}),!!e.description&&(0,L.jsx)(XF,{variant:`bodyM`,color:`neutral500`,mb:1.5,html:e.description}),(0,L.jsx)(T,{gap:1.5,children:t.map((t,r)=>{let i=gI(e.itemTitle,t,`Item ${r+1}`),a=e.itemSubtitle&&gI(e.itemSubtitle,t,``).trim()||void 0;return(0,L.jsxs)(O,{sx:{px:2,py:1.5,border:1,borderColor:`neutral100`,borderRadius:2,display:`flex`,alignItems:`center`,justifyContent:`space-between`},children:[(0,L.jsxs)(T,{direction:`row`,alignItems:`center`,gap:1.5,children:[(0,L.jsx)(O,{sx:{width:32,height:32,borderRadius:1.5,bgcolor:`neutral50`,border:1,borderColor:`neutral100`,display:`flex`,alignItems:`center`,justifyContent:`center`,flexShrink:0},children:(0,L.jsx)(Ve,{sx:{color:`neutral500`,fontSize:20}})}),(0,L.jsxs)(O,{children:[(0,L.jsx)(k,{variant:`labelM`,color:`neutral500`,children:i}),a&&(0,L.jsx)(k,{variant:`labelS`,color:`neutral400`,children:a})]})]}),!n&&(0,L.jsxs)(T,{direction:`row`,alignItems:`center`,gap:`12px`,sx:{width:60,height:24},children:[(0,L.jsx)(O,{component:`button`,onClick:()=>!ae&&C(r),disabled:ae,sx:{width:24,height:24,display:`flex`,alignItems:`center`,justifyContent:`center`,background:`none`,border:`none`,padding:0,cursor:ae?`default`:`pointer`,opacity:ae?.4:1,flexShrink:0},children:(0,L.jsx)(un,{sx:{color:`neutral500`,fontSize:20}})}),(0,L.jsx)(O,{component:`button`,onClick:()=>!ae&&ie(r),disabled:ae,sx:{width:24,height:24,display:`flex`,alignItems:`center`,justifyContent:`center`,background:`none`,border:`none`,padding:`2px`,borderRadius:`8px`,cursor:ae?`default`:`pointer`,opacity:ae?.4:1,flexShrink:0,boxSizing:`border-box`},children:(0,L.jsx)(vt,{sx:{color:`red500`,fontSize:20}})})]})]},_.current[r]??r)})}),x.map((e,t)=>(0,L.jsx)(k,{variant:`bodyS`,color:`red500`,mt:.5,children:e},t)),ae&&(0,L.jsxs)(O,{sx:{mt:2,p:2,border:1,borderColor:`blue100`,borderRadius:2},children:[(0,L.jsx)(T,{gap:3,children:oe()}),(0,L.jsxs)(T,{direction:`row`,gap:1,mt:2,justifyContent:`flex-end`,children:[(0,L.jsx)(A,{variant:`secondary`,size:`medium`,onClick:ee,children:c(`Cancel`)}),(0,L.jsx)(A,{variant:`primary`,size:`medium`,onClick:re,children:c(`Save`)})]})]}),!n&&!ae&&t.length<b&&(0,L.jsx)(T,{mt:1,children:(0,L.jsx)(A,{variant:`tertiaryBlack`,size:`large`,onClick:te,sx:{alignSelf:`flex-start`},children:e.addLabel??c(`Add`)})})]})},vI=(0,I.createContext)(null),yI={},bI=(e,t)=>e.onNext===t.onNext&&e.isNextDisabled===t.isNextDisabled&&e.isNextLoading===t.isNextLoading&&e.nextLabel===t.nextLabel&&e.isHidden===t.isHidden,xI=({children:e})=>{let[t,n]=(0,I.useState)(yI),r=(0,I.useCallback)(e=>{n(t=>bI(t,e)?t:e)},[]),i=(0,I.useMemo)(()=>({config:t,setConfig:r}),[t,r]);return(0,L.jsx)(vI.Provider,{value:i,children:e})},SI=(e,t=!0)=>{let n=(0,I.useContext)(vI),{onNext:r,isNextDisabled:i,isNextLoading:a,nextLabel:o,isHidden:s}=e;(0,I.useEffect)(()=>{if(!(!n||!t))return n.setConfig({onNext:r,isNextDisabled:i,isNextLoading:a,nextLabel:o,isHidden:s}),()=>n.setConfig(yI)},[t,r,i,a,o,s])},CI=()=>(0,I.useContext)(vI)?.config??yI,wI=(0,I.lazy)(()=>j(()=>Promise.resolve().then(()=>PI).then(e=>({default:e.DocumentsStep})),void 0)),TI=({workflowId:e,step:t,initialData:n,stepContext:r,onStepComplete:i})=>{let{t:a}=G(),[o,s]=(0,I.useState)(n??t.prefill_data??{}),[c,l]=(0,I.useState)({}),[u,d]=(0,I.useState)({}),{mutate:f,isPending:p}=Rg(),[m,h]=(0,I.useState)(null),g=(0,I.useCallback)(e=>{h(e)},[]),_=(0,I.useCallback)((e,t)=>{d(n=>({...n,[e]:t}))},[]),v=(0,I.useMemo)(()=>kF(t.schema),[t.schema]),y=(0,I.useRef)(v);y.current=v;let x=(0,I.useMemo)(()=>v.filter(e=>CF(e.visibleWhen,o)),[v,o]),S=(0,I.useMemo)(()=>$F(x),[x]),ee=(e,t)=>
11{s(n=>({...n,[e]:t})),c[e]&&l(t=>{let n={...t};return delete n[e],n})},te=(0,I.useCallback)(e=>{s(t=>({...t,...eI(e,y.current)})),l(t=>{let n=Object.keys(e);if(!n.some(e=>e in t))return t;let r={...t};for(let e of n)delete r[e];return r})},[]),C=(0,I.useCallback)(()=>{if(t.step_type===`us_kyb_documents`)return;let n=v.filter(e=>CF(e.visibleWhen,o)),r=new Set(n.map(e=>e.name)),{valid:s,errors:c}=l_(n,o),d=Object.fromEntries(Object.entries(u_(t.schema,o)).filter(([e])=>r.has(e))),p={...c,...d};if(!s||Object.keys(d).length>0){l(p);return}if(Object.values(u).some(e=>e.length>0)){b({message:a(`Please fix all errors before continuing`),variant:`attention`});return}let m=v.flatMap(e=>{if(e.type===`file`)return o[e.name]?[o[e.name]]:[];if(e.type===`array-group`&&e.itemsSchema){let t=o[e.name]??[],n=kF(e.itemsSchema);return t.flatMap(e=>n.filter(e=>e.type===`file`).map(t=>e[t.name]).filter(Boolean))}return[]});f({workflow_id:e,step_id:t.id,data:o,file_ids:m},{onSuccess:()=>{pg(e,t.id,o),i()},onError:e=>{e instanceof Jh&&l(e.fieldErrors)}})},[t,v,o,e,f,i,u]),w=(0,I.useCallback)(n=>{let r=n.file_assignments.map(e=>e.file_id);f({workflow_id:e,step_id:t.id,data:n,file_ids:r},{onSuccess:()=>{pg(e,t.id,n),i()},onError:e=>{e instanceof Jh&&l(e.fieldErrors)}})},[t.id,e,f,i]),ne=t.step_type===`us_kyb_documents`,re=!!m;SI({onNext:C,isNextDisabled:p,isNextLoading:p,nextLabel:a(`Next`),isHidden:re},!ne);let ie=t.errors??{},ae={...c},oe=(e,n)=>{let i=t.locked_fields?.includes(e.name)??!1;return e.type===`array-group`?(0,L.jsx)(_I,{field:e,items:o[e.name]??[],locked:i,stepContext:r,fullPage:n,onEditModeChange:g,onAggregateError:_,onChange:ee},e.name):(0,L.jsx)(QF,{field:e,value:o[e.name],error:ae[e.name],locked:i,stepContext:r,formData:o,onChange:ee,onMultiChange:te},e.name)};return Object.entries(ie).forEach(([e,t])=>{ae[e]||(ae[e]=t)}),t.step_type===`us_kyb_documents`?(0,L.jsxs)(T,{gap:3,children:[(0,L.jsxs)(T,{gap:.5,children:[(0,L.jsx)(k,{variant:`headlineS`,color:`neutral500`,children:t.name}),!!t.schema.description&&(0,L.jsx)(XF,{variant:`bodyM`,color:`neutral400`,html:t.schema.description})]}),(0,L.jsx)(E,{}),(0,L.jsx)(I.Suspense,{fallback:null,children:(0,L.jsx)(wI,{step:t,workflowId:e,stepId:t.id,stepContext:r,onSubmit:w,isSubmitting:p})})]}):(0,L.jsxs)(T,{gap:3,children:[re?(0,L.jsxs)(T,{direction:`row`,alignItems:`center`,gap:1,children:[(0,L.jsx)(A,{variant:`text`,onClick:m.cancel,sx:{p:0,minWidth:0,color:`neutral500`},children:(0,L.jsx)(_t,{})}),(0,L.jsx)(k,{variant:`headlineS`,color:`neutral500`,children:m.label})]}):(0,L.jsxs)(T,{gap:.5,children:[(0,L.jsx)(k,{variant:`headlineS`,color:`neutral500`,children:t.name}),!!t.schema.description&&(0,L.jsx)(XF,{variant:`bodyM`,color:`neutral400`,html:t.schema.description})]}),!re&&(0,L.jsx)(E,{}),(0,L.jsx)(T,{gap:3,children:S.map(e=>re?Array.isArray(e)||e.name!==m.fieldName?null:oe(e,!0):Array.isArray(e)?(0,L.jsx)(T,{direction:`row`,gap:2,children:e.map(e=>(0,L.jsx)(O,{flex:1,minWidth:0,children:oe(e)},e.name))},e.map(e=>e.name).join(`-`)):oe(e))})]})},EI=ur(Kn)(({theme:e})=>({padding:e.spacing(0,0,0,2),listStyle:`auto`,"li::marker":{color:e.extendPalette.neutral400}})),DI=ur(Dr)(()=>({padding:0,display:`list-item`})),OI=[z.t(`Place your fingers on the edges of your document`),z.t(`Hold your document straight in front of the camera`),z.t(`Make sure your information is clear and visible`),z.t(`Use neutral background`),z.t(`Bring your document close to the camera`)],kI=({open:e,onClose:t})=>{let{t:n}=G();return(0,L.jsx)(kt,{open:e,size:`small`,title:n(`Document photo tutorial`),onClose:t,cancelTitle:n(`Got it`),noSubmitButton:!0,children:(0,L.jsx)(EI,{children:OI.map(e=>(0,L.jsx)(DI,{children:(0,L.jsx)(k,{variant:`bodyM`,color:`neutral400`,children:e})},e))})})},AI={building:Xe,person:jn,briefcase:it},jI=(0,I.memo)(({title:e,icon:t=`person`,iconColor:n=`neutral300`,titleSx:r,badge:i,defaultOpen:a=!0,error:o,children:s})=>{let[c,l]=(0,I.useState)(a),u=(0,I.useRef)(null),[d,f]=(0,I.useState)(a?`auto`:0),p=(0,I.useRef)(!1);(0,I.useEffect)(()=>{if(!p.current){p.current=!0;return}if(u.current)if(c){let e=u.current.scrollHeight;f(e);let t=setTimeout(()=>f(`auto`),220);return()=>clearTimeout(t)}else{let e=u.current.scrollHeight;f(e);let t=setTimeout(()=>f(0),10);return()=>clearTimeout(t)}},[c]);let m=(0,I.useMemo)(()=>({color:c?`neutral500`:`neutral400`,ml:`auto`,transform:c?`rotate(180deg)`:`rotate(0deg)`,transition:`transform 0.2s ease-in-out, color 0.2s ease-in-out`}),[c]),h=AI[t];return(0,L.jsxs)(T,{border:1,borderColor:o?`red500`:`neutral100`,borderRadius:2,children:[(0,L.jsxs)(T,{py:1,px:1.5,direction:`row`,alignItems:`center`,gap:1,sx:{cursor:`pointer`},onClick:()=>l(e=>!e),children:[(0,L.jsx)(h,{sx:{color:n,fontSize:18}}),(0,L.jsx)(k,{variant:`titleM`,sx:r,children:e}),i,(0,L.jsx)(He,{sx:m})]}),(0,L.jsxs)(`div`,{ref:u,style:{height:d,overflow:`hidden`,transition:`height 0.2s ease-in-out`},children:[(0,L.jsx)(E,{}),(0,L.jsx)(T,{gap:2,px:1.5,py:2,children:s})]})]})}),MI=({children:e})=>(0,L.jsx)(k,{variant:`labelXS`,color:`neutral500`,sx:{bgcolor:`neutral100`,borderRadius:`4px`,padding:`0.5px 4px 1.5px 4px`,minWidth:`16px`,whiteSpace:`nowrap`,textAlign:`center`},children:e}),NI=({pct:e})=>{let{t}=G();return(0,L.jsx)(MI,{children:t(`{{pct}}% of shares`,{pct:e})})},PI=t({DocumentsStep:()=>qI});function FI(e){if(!e||typeof e!=`object`)return null;let t=e;return Array.isArray(t.allowedTypes)?{kind:`person`,label:String(t.label??`Photo ID`),description:String(t.de
11scription??``),helpLink:t[`ui:helpLink`]?String(t[`ui:helpLink`]):void 0,allowedTypes:t.allowedTypes.map(e=>({value:String(e.value),label:String(e.label),sides:Array.isArray(e.sides)?e.sides:[`front`]})),required:!!t.required,maxFiles:Number(t.maxFiles??2),hint:t[`ui:hint`]?String(t[`ui:hint`]):void 0}:Array.isArray(t.documents)?{kind:`company`,documents:t.documents.map(e=>({key:String(e.key),label:String(e.label),description:String(e.description??``),required:!!e.required,maxFiles:Number(e.maxFiles??1),hint:e[`ui:hint`]?String(e[`ui:hint`]):void 0}))}:null}function II(e,t){let n=e[`ui:documentRules`];if(!n||typeof n!=`object`)return null;let r=n,i=e=>e in r?FI(r[e]):null;if(t.rule_key){let e=i(t.rule_key);if(e)return e}let a=t.entity_type===`company`?[...t.reason?[`company_${t.reason}`,t.reason]:[]]:[...t.reason?[`individual_${t.reason}`,t.reason]:[],`individual_us_person`,`individual_non_us_person`,`legal_entity`];for(let e of a){let t=i(e);if(t)return t}return null}function LI(e){if(!e||e.kind!==`person`)return e;let t=e.allowedTypes.filter(e=>e.value===`passport`);return t.length?{...e,allowedTypes:t,maxFiles:1,hint:void 0}:e}function RI(e,t){return LI(II(e,t))}function zI(e,t){if(!Array.isArray(t))return;let n=e.trim().toLowerCase();return t.find(e=>VF(e).toLowerCase()===n)}function BI(e,t,n){let r=t===`ownership`?zI(e.label,n?.beneficialOwners):void 0,i=e.display?.sharesPercent;i===void 0&&r&&(i=WF(r));let a=e.display?.ownerType??(r?.ownerType===`legal_entity`||r?.ownerType===`individual`?r.ownerType:void 0),o;return o=t===`company`||a===`legal_entity`?`building`:t===`control-person`?`person`:`briefcase`,{sharesPercent:i,ownerType:a,icon:o}}function VI(e,t,n){if(e.section)return e.section;if(e.entity_type===`company`)return`company`;let r=t[`ui:requiredDocumentRules`];if(e.rule_key&&Array.isArray(r)){let t=r.find(t=>t?.ruleKey===e.rule_key)?.dataSourceRef;if(t===`beneficialOwners`)return`ownership`;if(t===`controlPerson`)return`control-person`}return zI(e.label,n?.beneficialOwners)?`ownership`:zI(e.label,n?.controlPerson)?`control-person`:`ownership`}var HI=[`ownership`,`control-person`,`company`],UI={ownership:`Ownership`,"control-person":`Control person`,company:`Company`},WI=({isUploading:e,onFile:t})=>{let{t:n}=G(),r=(0,I.useRef)(null);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(A,{sx:{width:`fit-content`},variant:`tertiaryBlack`,loading:e||void 0,onClick:()=>r.current?.click(),children:n(`Upload`)}),(0,L.jsx)(Qt,{accept:Tl,maxSizeMB:50,onClick:e=>e.stopPropagation(),inputRef:r,onChange:e=>{e&&t(e)}})]})},GI=({files:e,max:t,isUploading:n,onUpload:r,onRemove:i})=>{let{t:a}=G();return(0,L.jsxs)(T,{direction:`row`,alignItems:`center`,flexWrap:`wrap`,gap:1,children:[e.map(e=>(0,L.jsx)(A,{sx:{width:`fit-content`},variant:`tertiaryBlack`,loading:n||void 0,endIcon:(0,L.jsx)(Nn,{}),onClick:()=>i(e.file_id),children:e.name},e.file_id)),e.length<t&&(0,L.jsx)(WI,{isUploading:n,onFile:r}),e.length<t&&(0,L.jsx)(k,{variant:`bodyS`,color:`neutral400`,children:a(`JPEG/JPG/PNG/PDF, up to {{size}}MB`,{size:50})})]})};function KI(e,t){if(!e||!t)return{files:[],docTypes:{}};let n=mg(e,t),r=n?.file_assignments;return{files:Array.isArray(r)?r.filter(e=>e&&typeof e.file_id==`string`).map(e=>({file_id:String(e.file_id),entity_type:e.entity_type===`company`?`company`:`person`,entity_id:String(e.entity_id??``),doc_type:String(e.doc_type??``),doc_side:String(e.doc_side??``),name:typeof e.name==`string`&&e.name?e.name:`Uploaded file`})):[],docTypes:n?.doc_types&&typeof n.doc_types==`object`?n.doc_types:{}}}var qI=({step:e,workflowId:t,stepId:n,stepContext:r,onSubmit:i,isSubmitting:a})=>{let{t:o}=G(),{mutateAsync:s}=Vg(),c=(0,I.useMemo)(()=>KI(t,n),[t,n]),[l,u]=(0,I.useState)(c.files),[d,f]=(0,I.useState)(c.docTypes),[p,m]=(0,I.useState)({}),[h,g]=(0,I.useState)(!1),_=(0,I.useRef)(!1),v=_i({queryKey:t?Ig(t).queryKey:void 0})>0;(0,I.useEffect)(()=>{!t||!n||pg(t,n,{file_assignments:l,doc_types:d})},[t,n,l,d]);let y=(e,t,n)=>`${e}__${t}__${n}`,x=async(e,t,n,r,i)=>{let a=y(e,n,r);m(e=>({...e,[a]:!0}));try{let a=await s({file:i});u(o=>[...o,{file_id:a,entity_type:t,entity_id:e,doc_type:n,doc_side:r,name:i.name}]),b({message:o(`Uploaded: {{name}}`,{name:i.name}),variant:`success`})}catch{b({message:o(`Failed to upload {{name}}`,{name:i.name}),variant:`attention`})}finally{m(e=>{let t={...e};return delete t[a],t})}},S=e=>{u(t=>t.filter(t=>t.file_id!==e))},ee=(e,t)=>
11{f(n=>({...n,[e]:t})),u(t=>t.filter(t=>t.entity_id!==e))},te=(0,I.useCallback)((e,t)=>d[e]??(t.allowedTypes.length===1?t.allowedTypes[0].value:null),[d]),C=(0,I.useCallback)(t=>{let n=RI(e.schema,t);if(!n)return!0;if(n.kind===`company`)return n.documents.filter(e=>e.required).every(e=>l.some(n=>n.entity_id===t.entity_id&&n.doc_type===e.key));let r=n.allowedTypes.find(e=>e.value===te(t.entity_id,n));return r?r.sides.every(e=>l.some(n=>n.entity_id===t.entity_id&&n.doc_type===r.value&&n.doc_side===e)):!1},[e.schema,l,te]),w=(0,I.useMemo)(()=>e.required_documents??[],[e.required_documents]),ne=(0,I.useMemo)(()=>{let t={ownership:[],"control-person":[],company:[]};for(let n of w)t[VI(n,e.schema,r)].push(n);return t},[w,e.schema,r]),re=w.length===0||w.every(C),ie=Object.values(p).some(Boolean),ae=(0,I.useCallback)(()=>{if(!re){g(!0);return}i({file_assignments:l.map(({name:e,...t})=>t)})},[re,i,l]);if((0,I.useEffect)(()=>{v||w.length>0||a||_.current||(_.current=!0,ae())},[v,w.length,a,ae]),SI({onNext:ae,isNextDisabled:ie,isNextLoading:a,nextLabel:o(`Next`)}),w.length===0)return(0,L.jsx)(T,{gap:3,children:(0,L.jsx)(k,{variant:`bodyM`,color:`neutral400`,children:o(`No additional documents required â you can proceed to submit.`)})});let oe=0;return(0,L.jsx)(T,{gap:4,children:HI.map(t=>{let n=ne[t];return n.length===0?null:(0,L.jsxs)(T,{gap:1.5,children:[(0,L.jsx)(k,{variant:`labelM`,color:`neutral400`,children:o(UI[t])}),n.map(n=>{let i=RI(e.schema,n);if(!i)return null;let a=BI(n,t,r),o=oe===0,s=C(n),c=h&&!s;return oe+=1,(0,L.jsx)(jI,{title:n.label,icon:a.icon,iconColor:`neutral500`,defaultOpen:o||!s,error:c,badge:a.sharesPercent===void 0?void 0:(0,L.jsx)(NI,{pct:a.sharesPercent}),children:i.kind===`person`?(0,L.jsx)(JI,{doc:n,rule:i,selectedDocType:te(n.entity_id,i),fileAssignments:l,uploadingSlots:p,showError:c,onDocTypeChange:ee,onUpload:x,onRemove:S}):(0,L.jsx)(YI,{doc:n,rule:i,fileAssignments:l,uploadingSlots:p,showError:c,onUpload:x,onRemove:S})},`${n.entity_id}_${n.rule_key??n.reason??n.entity_id}`)})]},t)})})},JI=({doc:e,rule:t,selectedDocType:n,fileAssignments:r,uploadingSlots:i,showError:a,onDocTypeChange:o,onUpload:s,onRemove:c})=>{let{t:l}=G(),u=wt(),d=t.allowedTypes.length===1,f=t.allowedTypes.find(e=>e.value===n)??null,p=t.allowedTypes.map(e=>({value:e.value,label:e.label})),m=f?.value===`passport`?l(`Attach clear photos or scans of your passport`):t.description,h=(0,L.jsx)(Wt,{component:`button`,type:`button`,variant:`bodyM`,onClick:u.openModal,sx:{width:`fit-content`},children:l(`How to make a document photo?`)});return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(T,{gap:2,children:[d?f&&(0,L.jsxs)(T,{gap:.5,children:[(0,L.jsx)(k,{variant:`labelM`,color:`neutral500`,children:f.label}),m&&(0,L.jsx)(k,{variant:`bodyM`,color:`neutral400`,children:m}),h]}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ke,{label:l(`Document type`),value:n??``,options:p,onChange:t=>t&&o(e.entity_id,String(t)),placeholder:l(`Select document type`),fullWidth:!0,labelSize:`groupMain`,labelVariant:`secondary`}),t.helpLink&&h]}),f&&(0,L.jsx)(T,{gap:2,children:f.sides.map(n=>{let a=r.filter(t=>t.entity_id===e.entity_id&&t.doc_type===f.value&&t.doc_side===n),o=!!i[`${e.entity_id}__${f.value}__${n}`],u=f.sides.length>1?1:t.maxFiles;return(0,L.jsxs)(T,{gap:1,children:[f.sides.length>1&&(0,L.jsx)(k,{variant:`labelM`,color:`neutral400`,children:l(n.charAt(0).toUpperCase()+n.slice(1))}),(0,L.jsx)(GI,{files:a,max:u,isUploading:o,onUpload:t=>s(e.entity_id,e.entity_type,f.value,n,t),onRemove:c})]},n)})})]}),a&&(0,L.jsx)(k,{variant:`bodyS`,color:`red500`,mt:1,children:l(`Document upload is required`)}),(0,L.jsx)(kI,{open:u.open,onClose:u.closeModal})]})},YI=({doc:e,rule:t,fileAssignments:n,uploadingSlots:r,showError:i,onUpload:a,onRemove:o})=>{let{t:s}=G();return(0,L.jsxs)(T,{gap:3,children:[t.documents.map(t=>{let i=n.filter(n=>n.entity_id===e.entity_id&&n.doc_type===t.key),s=!!r[`${e.entity_id}__${t.key}__`];return(0,L.jsxs)(T,{gap:1,children:[(0,L.jsxs)(k,{variant:`labelM`,color:`neutral500`,children:[t.label,t.required&&(0,L.jsx)(k,{component:`span`,color:`red500`,ml:.5,children:`*`})]}),t.description&&(0,L.jsx)(k,{variant:`bodyS`,color:`neutral400`,children:t.description}),(0,L.jsx)(GI,{files:i,max:t.maxFiles,isUploading:s,onUpload:n=>a(e.entity_id,e.entity_type,t.key,``,n),onRemove:o})]},t.key)}),i&&(0,L.jsx)(k,{variant:`bodyS`,color:`red500`,mt:1,children:s(`Document upload is required`)})]})},XI=({children:e})=>{let{data:t,isLoading:n}=Od();return n?null:t&&!Vh(t.region)?(0,L.jsx)(Lr,{to:Ho,replace:!0}):Lh(t)?(0,L.jsx)(Lr,{to:Wo,replace:!0}):e},ZI=({children:e})=>{let{data:t,isLoading:n}=Od(),{data:r,isLoading:i}=Ug(),a=r?.workflows.find(e=>!e.completed),{data:o,isLoading:s}=Lg(a?.id,{enabled:!!a?.id,staleTime:1/0,refetchOnMount:!1,refetchOnWindowFocus:!1,refetchOnReconnect:!1});if(n||i||a?.id&&s)return null;if(!t||!Vh(t.region))return(0,L.jsx)(Lr,{to:Ho});if(Lh(t))return(0,L.jsx)(Lr,{to:Wo,replace:!0});let c=o?.steps.find(e=>!e.completed);if(Nh(t))return a&&c?(0,L.jsx)(Lr,{to:be(As.WORKFLOW.path,{workflowId:a.id,stepId:c.id}),replace:!0}):(0,L.jsx)(Lr,{to:Ho,replace:!0});if(a&&Ph(t)){let e=a.id,n=o?.steps.find(e=>jh(e)===`review_information`),r=o?.steps.find(e=>jh(e)===`certification_attestation`),i=!!n?.completed||zh(t)&&Og(e),s=!!r?.completed||Bh(t)&&jg(e),c=t?.stage===oc.DocumentsSubmitted;if(o?.steps.find(e=>{if(c&&e.step_type===`us_kyb_documents`)return!1;let t=jh(e);return t===`review_information`?!i:t===`certification_attestation`?!s:!e.completed})||!i||!s)return(0,L.jsx)(Lr,{to:As.CONTINUE.path})}return e},QI=({files:e})=>(0,L.jsx)(T,{direction:`row`,alignItems:`center`,flexWrap:`wrap`,gap:1,children:e.map(e=>(0,L.jsx)(Vn,{variant:`filled`,color:`secondary`,size:`large`,icon:(0,L.jsx)(Me,{size:`small`}),label:(0,L.jsx)(Wt,{variant:`labelM`,href:e.url,download:e.file_name,target:`_blank`,rel:`noopener`,children:e.file_name})},e.id))}),$I=`â¢â¢â¢ââ¢â¢ââ¢â¢â¢â¢`,eL=({value:e})=>{let[t,n]=(0,I.useState)(!1);return(0,L.jsxs)(T,{direction:`row`,alignItems:`center`,gap:.5,children:[(0,L.jsx)(k,{variant:`labelM`,color:`neutral500`,children:t?e:$I}),(0,L.jsx)(dn,{size:`small`,onClick:()=>n(e=>!e),"aria-label":t?`Hide`:`Show`,children:t?(0,L.jsx)(En,{sx:{fontSize:16}}):(0,L.jsx)(xn,{sx:{fontSize:16}})})]})},tL=({row:e})=>(0,L.jsxs)(T,{gap:.25,children:[(0,L.jsx)(k,{variant:`labelM`,color:`neutral400`,children:e.label}),e.kind===`document`?(0,L.jsx)(QI,{files:e.files}):e.kind===`secure`?(0,L.jsx)(eL,{value:e.value}):(0,L.jsx)(k,{variant:`labelM`,sx:{whiteSpace:`pre-line`},color:`neutral500`,children:e.kind===`address`?e.lines.join(` 12`):e.value})]}),nL=({card:e,defaultOpen:t})=>(0,L.jsx)(jI,{title:e.title,icon:e.icon,iconColor:`neutral500`,badge:e.badge?(0,L.jsx)(MI,{children:e.badge}):void 0,defaultOpen:t,children:e.groups.map((e,t)=>(0,L.jsxs)(I.Fragment,{children:[t>0&&(0,L.jsx)(E,{}),e.rows.map((e,n)=>(0,L.jsx)(tL,{row:e},`${t}-${n}-${e.label}`))]},t))}),rL=`us_kyb_documents`,iL=({steps:e,workflowId:t,onComplete:n,isSubmitting:r})=>{let{t:i}=G();SI({onNext:n,nextLabel:i(`Next`),isNextDisabled:r,isNextLoading:r});let{data:a}=Gg(),{data:o}=Jg(t,{enabled:!!t}),s=(0,I.useMemo)(()=>{let e=new Map;for(let t of a??[])e.set(t.iso31661Alpha2Code,t.name);return e},[a]),{rawDocData:c,filesById:l,docStep:u}=(0,I.useMemo)(()=>{let t=new Map,n={},r=e.find(e=>e.step_type===rL);if(o){let e=Array.isArray(o.documents)?o.documents:Object.values(o.documents??{});for(let i of e){for(let e of i.files??[])t.set(e.id,e);r&&i.step_id===r.id&&(n=i.data??{})}}return{rawDocData:n,filesById:t,docStep:r}},[o,e]),d=(0,I.useMemo)(()=>{let n=new Map;for(let r of e)r.step_type!==rL&&n.set(r.id,mg(t,r.id)??r.prefill_data??{});return n},[e,t]),f=(0,I.useMemo)(()=>{let e={};for(let t of d.values())for(let[n,r]of Object.entries(t))Array.isArray(r)&&(e[n]=r);return e},[d]),p=(0,I.useMemo)(()=>{let e=f.beneficialOwners??[],t=t=>{let n=t.trim().toLowerCase(),r=e.findIndex(e=>VF(e).toLowerCase()===n);return r>=0?r:void 0},n=Array.isArray(c.file_assignments)?c.file_assignments:[],r=new Map;for(let e of u?.required_documents??[])r.set(e.entity_id,{label:e.label,section:e.section});let i=new Map,a=[];for(let e of n){let n=String(e.entity_id??``),o=r.get(n);if(n===`controlPerson`||o?.section===`control-person`){e.file_id&&a.push(String(e.file_id));continue}let s=o?.label?t(o.label):void 0;if(s===void 0||!e.file_id)continue;let c=i.get(s)??[];c.push(String(e.file_id)),i.set(s,c)}return{beneficialOwnerDocuments:[...i.entries()].map(([e,t])=>({ownerIndex:e,photoId:{fileIds:t}})),controlPersonDocuments:{photoId:{fileIds:a}}}},[c,u,f]),m=(0,I.useCallback)(e=>e.step_type===rL?p:d.get(e.id)??{},[p,d]),h=(0,I.useMemo)(()=>hI(e,{getSource:m,countryMap:s,filesById:l,arraysByName:f}),[e,m,s,l,f]),g=(0,I.useMemo)(()=>{let e=[];for(let t of h){let n=e[e.length-1];
12n&&n.section===t.section?n.cards.push(t):e.push({section:t.section,cards:[t]})}return e},[h]),_=0;return(0,L.jsxs)(T,{gap:3,children:[(0,L.jsxs)(T,{gap:.5,children:[(0,L.jsx)(k,{variant:`headlineS`,children:i(`Review information`)}),(0,L.jsx)(k,{variant:`bodyM`,color:`neutral400`,children:i(`Review all company, ownership, and control person details before submitting your application.`)})]}),(0,L.jsx)(E,{}),(0,L.jsx)(T,{gap:4,children:g.map(e=>(0,L.jsxs)(T,{gap:1.5,children:[e.section&&(0,L.jsx)(k,{variant:`titleM`,color:`neutral500`,children:e.section}),e.cards.map(e=>(0,L.jsx)(nL,{card:e,defaultOpen:_++===0},e.key))]},e.section??`_`))})]})},aL=[`By checking this box, I certify that I am duly authorized to act on behalf of the business and that all beneficial ownership and control information provided in connection with this application is true, accurate, complete, and current, in accordance with applicable U.S. laws and regulations, including the Bank Secrecy Act and FinCEN's Customer Due Diligence requirements. I acknowledge that Spendbase and its banking partners are entitled to rely on this certification`,`By checking this box, I consent to Spendbase, its banking partners, and their authorized service providers collecting, using, verifying, and sharing information about the business and its beneficial owners, officers, controllers, and authorized persons for purposes of identity verification, regulatory compliance, sanctions screening, fraud prevention, and ongoing monitoring, as permitted by U.S. law`,`By checking this box, I agree to promptly notify Spendbase of any changes to beneficial ownership, control, or authorized person information and acknowledge that failure to provide complete, accurate, or updated information may result in delays, restrictions, suspension, or termination of services`,(0,L.jsxs)(L.Fragment,{children:[`By checking this box, I acknowledge that I have reviewed and agree to the applicable`,` `,(0,L.jsx)(Wt,{variant:`bodyM`,href:Ts,target:`_blank`,rel:`noopener`,children:`Terms and Conditions`}),` `,`and`,` `,(0,L.jsx)(Wt,{variant:`bodyM`,href:Es,target:`_blank`,rel:`noopener`,children:`Privacy Policy`})]})],oL=({onComplete:e,isSubmitting:t})=>{let{t:n}=G(),[r,i]=(0,I.useState)(aL.map(()=>!1)),a=r.every(Boolean),o=e=>{i(t=>t.map((t,n)=>n===e?!t:t))};return SI({onNext:e,isNextDisabled:!a||t,isNextLoading:t,nextLabel:n(`Submit Application`)}),(0,L.jsxs)(T,{gap:3,children:[(0,L.jsxs)(T,{gap:.5,children:[(0,L.jsx)(k,{variant:`headlineS`,color:`neutral500`,children:`Certification and attestation`}),(0,L.jsx)(k,{variant:`bodyM`,color:`neutral400`,children:`Required Certifications and Consents`})]}),(0,L.jsx)(E,{}),(0,L.jsx)(k,{variant:`bodyM`,color:`neutral400`,children:`Before continuing, please review and confirm the following required certifications and consents. You cannot proceed without agreeing.`}),(0,L.jsx)(T,{gap:3,children:aL.map((e,t)=>(0,L.jsxs)(T,{direction:`row`,alignItems:`flex-start`,gap:1.5,component:`label`,sx:{cursor:`pointer`},children:[(0,L.jsx)(Zn,{sx:{py:0,px:0,flexShrink:0,mt:`1px`},icon:(0,L.jsx)(ze,{sx:{color:`neutral200`}}),checkedIcon:(0,L.jsx)(bt,{}),checked:r[t],onChange:()=>o(t)}),(0,L.jsx)(k,{variant:`bodyM`,color:`neutral400`,children:e})]},t))})]})},sL=({children:e})=>(0,L.jsx)(O,{sx:e=>({position:`fixed`,inset:0,zIndex:e.zIndex.modal,backgroundColor:e.extendPalette.neutral0,overflow:`auto`,display:`flex`}),children:e}),cL=({steps:e,onClick:t})=>(0,L.jsx)(T,{gap:1,children:e.map(e=>{let{id:n,label:r,isSelected:i,isCompleted:a,isDisabled:o,hide:s,icon:c,hasError:l}=e;if(s)return;let u=c,d=`subSteps`in e;return(0,L.jsxs)(I.Fragment,{children:[(0,L.jsxs)(T,{direction:`row`,gap:.75,sx:{py:1.25,px:1.5,borderRadius:2,bgcolor:i?`neutral100`:`neutral0`,cursor:o||!t?`default`:`pointer`},onClick:()=>!o&&t?.(d?e.subSteps[0]?.value:e.value),children:[a?(0,L.jsx)(Xt,{sx:{color:`blue500`}}):l?(0,L.jsx)($t,{sx:{color:`red500`}}):u&&(0,L.jsx)(u,{sx:{color:o&&!a?`neutral300`:`neutral500`}}),(0,L.jsx)(k,{variant:`labelM`,sx:{color:l&&!a?`red500`:o&&!a?`neutral300`:`neutral500`,ml:!u&&!a&&!l?2.75:0},children:r})]}),d&&i&&(0,L.jsx)(T,{children:e.subSteps.map(e=>!e.hide&&(0,L.jsx)(O,{gap:.75,sx:{py:1.25,pl:3,ml:22/8,borderLeft:2,borderColor:e.hasError&&!e.isCompleted?`red500`:e.isCompleted||e.isSelected?`blue500`:`neutral100`},children:(0,L.jsx)(k,{variant:`labelM`,sx:{color:e.hasError&&!e.isCompleted?`red500`:e.isDisabled&&!e.isCompleted?`neutral300`:`neutral500`,cursor:e.isDisabled||!t?`default`:`pointer`},onClick:()=>!e.isDisabled&&t?.(e.value),children:e.label})},e.id))})]},n)})}),lL=({active:e,completed:t})=>t?(0,L.jsx)(an,{sx:{height:24,width:24}}):(0,L.jsx)(lt,{sx:{color:e?`blue500`:`neutral400`,height:24,width:24}}),uL=ur(wr)(({theme:e})=>({[`&.${lr.alternativeLabel}`]:{top:10,left:`calc(-50% + 16px)`,right:`calc(50% + 16px)`},[`&.${lr.active}`]:{[`& .${lr.line}`]:{borderColor:e.extendPalette.neutral400}},[`&.${lr.completed}`]:{[`& .${lr.line}`]:{borderColor:e.extendPalette.blue500}},[`& .${lr.line}`]:{borderColor:e.extendPalette.neutral300,borderTopWidth:2,borderWidth:2,background:`#B6B6BC`,width:2,borderRadius:10,border:`none`}})),dL=ur(fr)(({theme:e})=>({marginLeft:e.spacing(-2)})),fL=ur(dr)(({theme:e})=>({margin:0,padding:0,cursor:`default`,[`& .${br.label}`]:{lineHeight:0},[`& .${br.active}, & .${br.completed}`]:{color:e.extendPalette.neutral500},[`& .${br.disabled}`]:{color:e.extendPalette.neutral400},[`& .${br.iconContainer}`]:{svg:{fontSize:24}},[`& .${br.iconContainer}.${_r.active}`]:{color:e.extendPalette.blue500},[`& .${br.disabled}.${br.iconContainer}`]:{color:e.extendPalette.neutral400},"&":{padding:e.spacing(.75,0)}})),pL=ur(hr)(({theme:e})=>({borderLeftWidth:2,padding:e.spacing(3,3,0,10)}
12)),mL=({steps:e,activeStep:t,stepProps:n,labelProps:r,contentProps:i,stepConnectorProps:a,...o})=>(0,L.jsx)(cr,{orientation:`vertical`,activeStep:t,connector:(0,L.jsx)(uL,{...a}),...o,children:e.map(({value:e,label:t,content:a,isCompleted:o,isActive:s})=>(0,L.jsxs)(dL,{active:s,completed:o,...n,children:[(0,L.jsx)(fL,{slots:{stepIcon:lL},...r,children:(0,L.jsx)(k,{variant:`titleM`,children:t})}),a&&(0,L.jsx)(pL,{...i,children:a})]},e))}),hL=({children:e,title:t,steps:n,cancelButton:r,currentStep:i,onCancel:a,onStepClick:o,footer:s,contentSx:c})=>{let l=(0,I.useMemo)(()=>{let e=[],t,r=[],a=()=>{!t||r.length===0||(e.push({id:t,label:t,icon:r[0]?.icon,isCompleted:r.every(e=>e.isCompleted),isSelected:r.some(e=>e.isSelected),isDisabled:r.every(e=>e.isDisabled),hasError:r.some(e=>e.hasError),subSteps:r}),t=void 0,r=[])};return n.forEach((n,o)=>{let s=`isCompleted`in n?!!n.isCompleted:i?o<i:!1,c=`isDisabled`in n?!!n.isDisabled:i?o>i:!1,l={id:o,label:n.title,icon:n.icon,value:o,isSelected:i===o,isCompleted:s,isDisabled:c,hasError:!!n.hasError};n.group?n.group===t?r.push(l):(a(),t=n.group,r=[l]):(a(),e.push(l))}),a(),e},[n,i]);return(0,L.jsxs)(D,{container:!0,direction:`column`,wrap:`nowrap`,height:`100%`,width:`100%`,sx:{px:3},children:[(0,L.jsxs)(D,{container:!0,direction:`column`,gap:1.5,width:`100%`,paddingTop:3,zIndex:1,bgcolor:`neutral0`,sx:{flexShrink:0},children:[(0,L.jsxs)(D,{container:!0,justifyContent:`space-between`,alignItems:`center`,children:[(0,L.jsx)(K,{color:`neutral500`,variant:`headlineM`,children:t}),r||(0,L.jsx)(A,{sx:{"&:hover":{background:`none`}},onClick:a,children:(0,L.jsx)(Nn,{sx:{color:`neutral400`}})})]}),(0,L.jsx)(E,{})]}),(0,L.jsxs)(D,{container:!0,wrap:`nowrap`,marginTop:3,sx:{flex:1,minHeight:0,overflowY:`auto`},children:[(0,L.jsx)(D,{item:!0,width:200,sx:{"> div":{position:`sticky`,top:0}},children:(0,L.jsx)(cL,{steps:l,onClick:o})}),(0,L.jsx)(D,{item:!0,sx:{mx:`auto`,mb:7,width:480,...c},children:e})]}),s&&(0,L.jsxs)(D,{container:!0,direction:`column`,zIndex:1,bgcolor:`neutral0`,sx:{flexShrink:0,mx:-3},children:[(0,L.jsx)(E,{}),s]})]})},gL=({onPrevious:e,onNext:t,isPreviousDisabled:n=!1,isNextDisabled:r=!1,isNextLoading:i=!1,nextLabel:a,previousLabel:o})=>{let{t:s}=G();return(0,L.jsxs)(T,{direction:`row`,alignItems:`center`,justifyContent:`space-between`,sx:{height:88,px:3},children:[(0,L.jsx)(A,{variant:`tertiaryBlack`,startIcon:(0,L.jsx)(_t,{}),onClick:e,disabled:n||!e,children:o??s(`Previous`)}),(0,L.jsx)(A,{variant:`primary`,endIcon:(0,L.jsx)(dt,{}),onClick:t,loading:i,disabled:r||!t,sx:{marginLeft:`auto`},children:a??s(`Next`)})]})},_L=({workflowId:e,open:t,onCancel:n})=>{let{t:r}=G(),i=zg(),a=Ar();return(0,L.jsx)(kt,{open:t,onClose:n,submitTitle:r(`Cancel Application`),cancelTitle:r(`Go Back`),title:r(`Are you sure you want to cancel your application?`),submitProps:{variant:`destructive`,loading:i.isPending},cancelProps:{variant:`tertiaryBlack`},onSubmit:async()=>{await i.mutateAsync(e),a(Ho)},size:`compact`,actionsAlignment:`space-between`,children:(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`All your saved progress will be permanently removed and you'll need to start over.`})})},vL=({workflowId:e,open:t,onClose:n})=>{let{t:r}=G(),i=Ar(),a=P(),o=zg(),[s,c]=(0,I.useState)(!1),l=async()=>{c(!0);try{await a.refetchQueries({queryKey:Ed.init()}),n(),i(As.CONTINUE.path)}finally{c(!1)}},u=async()=>{await o.mutateAsync(e),n(),i(Ho)},d=o.isPending||s;return(0,L.jsx)(kt,{open:t,onClose:n,submitTitle:r(`Save and exit`),submitProps:{variant:`secondary`,disabled:d},onSubmit:l,noCancelButton:!0,middleTitle:r(`Go Back`),middleProps:{variant:`tertiaryBlack`,disabled:d},noMiddleButton:!1,onMiddle:n,moreAction:(0,L.jsx)(A,{variant:`destructive`,size:`medium`,onClick:u,loading:d,sx:{fontSize:14,fontWeight:600},children:r(`Cancel Application`)}),title:r(`Are you sure you want to leave your application?`),size:`compact`,actionsAlignment:`space-between`,children:(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`You can save your progress and continue later, or cancel your application and remove your details.`})})},yL=5e3,bL=()=>{let{t:e}=G(),t=CI(),{workflowId:n,stepId:r}=jr(),i=Ar(),a=wt(),o=wt(),[s,c]=(0,I.useState)(null),l=(0,I.useRef)(null),{mutate:u,isPending:d}=Rg(),{mutate:f,isPending:p}=Bg(),{data:m}=Od(),h=Nh(m),{data:g,isLoading:_}=Lg(n,{refetchInterval:e=>{let t=e.state.data?.steps??[],n=t.find(e=>e.id===r)??t[0];return n?.step_type===`us_kyb_documents`&&n.verification_pending?yL:!1}}),v=(0,I.useMemo)(()=>g?.steps??[],[g]),y=(0,I.useMemo)(()=>v.filter(e=>!Mh(e)),[v]),b=v.find(e=>jh(e)===`review_information`),x=v.find(e=>jh(e)===`certification_attestation`),S=Xg(n,v,Vh(m?.region)&&Ph(m)),ee=(0,I.useCallback)(e=>(n?mg(n,e):null)??S[e]??null,[n,S]),te=Math.max(0,v.findIndex(e=>e.id===r)),C=v[te],w=jh(C),ne=C?y.findIndex(e=>e.id===C.id):-1,re=C?.completed?ee(C.id)??void 0:void 0,ie=(0,I.useMemo)(()=>{let e={};if(!n)return e;for(let t of v){if(!t.completed)continue;let n=ee(t.id);if(n)for(let[t,r]of Object.entries(n))Array.isArray(r)&&(e[t]=r)}let t=v.find(e=>e.step_type===`us_kyb_documents`)?.schema?.[`ui:dataSource`];if(t&&typeof t==`object`)for(let[n,r]of Object.entries(t)){let t=r;if(!t?.stepName||t.stepName===`_context`)continue;let i=v.find(e=>e.completed&&e.name?.trim().toLowerCase()===t.stepName.trim().toLowerCase());if(!i)continue;let a=ee(i.id);if(!a)continue;let o=t.field?a[t.field]:a;
12Array.isArray(o)?e[n]=o:o&&typeof o==`object`&&(e[n]=[o])}return e},[v,n,ee]),ae=n?zh(m):!1,oe=n?Bh(m):!1;(0,I.useEffect)(()=>{n&&m?.stage===oc.DocumentsSubmitted&&Mg(n)},[n,m?.stage]),(0,I.useEffect)(()=>{n&&(b&&!b.completed&&kg(n),x&&!x.completed&&Mg(n))},[n,b?.completed,x?.completed]);let se=!h&&C?.step_type===`us_kyb_documents`&&!!C.verification_pending&&!!n&&oe&&jg(n),ce=v.length>0&&v.every(e=>e.completed),le=v.some(e=>e.completed),ue=y.length>0&&y.every(e=>e.completed);(0,I.useEffect)(()=>{se&&i(As.VERIFICATION.path)},[se,i]),(0,I.useEffect)(()=>{if(!(!ue||!n)){if(!h&&(x?.completed||oe&&jg(n))){i(As.VERIFICATION.path);return}if(b?.completed||ae&&Og(n)){c(`certification`);return}c(`review`)}},[ue,n,i,h,b?.completed,x?.completed,ae,oe]);let de=e=>{let t=y[e],n=v.findIndex(e=>e.id===t?.id);return n>=0&&v.slice(0,n).every(e=>e.completed||e.skipped||Mh(e))},fe=e=>{if(e===void 0)return;let t=Number(e),r=t===y.length?b:t===y.length+1?x:y[t];r&&(t<y.length&&!de(t)||t===y.length&&!ue||t===y.length+1&&!b?.completed||(c(null),i(be(As.WORKFLOW.path,{workflowId:n,stepId:r.id}))))},pe=(0,I.useCallback)(()=>{if(C?.step_type===`us_kyb_documents`){b&&i(be(As.WORKFLOW.path,{workflowId:n,stepId:b.id})),c(`review`);return}let e=v.slice(te+1).find(e=>e.available&&!e.completed);if(e){i(be(As.WORKFLOW.path,{workflowId:n,stepId:e.id}));return}ce&&c(`review`)},[v,te,C?.step_type,b,i,n,ce]);(0,I.useEffect)(()=>{if(!(!C||C.completed||d||p)){if(w===`region`){if(l.current===C.id)return;let e=m?.region;if(!e){l.current=C.id,u({workflow_id:n,step_id:C.id,data:{},file_ids:[]},{onSuccess:pe});return}l.current=C.id,f(e,{onSuccess:()=>{u({workflow_id:n,step_id:C.id,data:{},file_ids:[]},{onSuccess:pe})}});return}if(w===`review_information`){c(`review`);return}w===`certification_attestation`&&c(`certification`)}},[C,w,pe,m?.region,p,d,u,f,n]);let me=(0,I.useCallback)((e,t)=>{n&&u({workflow_id:n,step_id:e.id,data:{},file_ids:[]},{onSuccess:t??pe})},[n,u,pe]),he=(0,I.useCallback)(()=>{if(b){me(b,()=>{Dg(n),c(`certification`)});return}Dg(n),c(`certification`)},[b,me,n]),ge=(0,I.useCallback)(()=>{if(x){me(x,()=>{Ag(n),Cg(n),i(As.VERIFICATION.path)});return}Ag(n),Cg(n),i(As.VERIFICATION.path),Eh()},[x,me,n,i]),_e=(0,I.useCallback)(()=>{let e=e=>{let t=y[e];t&&i(be(As.WORKFLOW.path,{workflowId:n,stepId:t.id}))};if(s===`certification`){c(`review`);return}if(s===`review`){c(null),e(y.length-1);return}ne>0&&e(ne-1)},[s,y,ne,i,n]),ve=s===null&&ne<=0,ye=!!b?.completed||(n&&ae?Og(n):!1),xe=!!x?.completed||(n&&oe?jg(n):!1),Se=[{title:`Review information`,icon:Zg(`SingleChoice`),isCompleted:ye,isDisabled:!ue},{title:`Certification and attestation`,icon:Zg(`FileCheck`),isCompleted:xe,isDisabled:!ye}],Ce=s===`review`||w===`review_information`?y.length:s===`certification`||w===`certification_attestation`?y.length+1:Math.max(0,ne);if(_)return(0,L.jsx)(O,{width:`100%`,display:`flex`,height:`100%`,flex:`1`,alignItems:`center`,justifyContent:`center`,children:(0,L.jsx)(yn,{})});let we=()=>s===`review`?(0,L.jsx)(iL,{steps:y,workflowId:n,stepContext:ie,onComplete:he,isSubmitting:d}):s===`certification`?(0,L.jsx)(oL,{onComplete:ge,isSubmitting:d}):w===`region`||w===`review_information`||w===`certification_attestation`?null:C&&n?(0,L.jsx)(TI,{workflowId:n,step:C,initialData:re,stepContext:ie,onStepComplete:pe},`${C.id}-${C.prefill_data!=null}`):null;return(0,L.jsxs)(hL,{title:(0,L.jsx)(K,{variant:`headlineM`,children:`Open payment account`}),cancelButton:(0,L.jsx)(dn,{color:`tertiaryBlack`,size:`medium`,onClick:le?o.openM
12odal:a.openModal,"aria-label":e(`Close`),children:(0,L.jsx)(Nn,{})}),currentStep:Ce,contentSx:{width:`100%`,maxWidth:944,mb:0,display:`flex`,flexDirection:`column`,gap:`10px`,pt:`24px`,px:`170px`,pb:0},steps:[...y.map((e,t)=>({title:e.name,icon:Qg(e.schema),isCompleted:e.completed,isDisabled:!e.available||!de(t),hasError:!e.completed&&!!e.errors&&Object.keys(e.errors).length>0,group:e.schema[`ui:group`]?.name})),...Se],onStepClick:fe,footer:t.isHidden?void 0:(0,L.jsx)(gL,{onPrevious:_e,isPreviousDisabled:ve,onNext:t.onNext,isNextDisabled:t.isNextDisabled,isNextLoading:t.isNextLoading,nextLabel:t.nextLabel}),children:[we(),(0,L.jsx)(O,{sx:{height:`80px`,flexShrink:0}}),(0,L.jsx)(_L,{workflowId:n,open:a.open,onCancel:a.closeModal}),(0,L.jsx)(vL,{workflowId:n,open:o.open,onClose:o.closeModal})]})},xL=()=>(0,L.jsx)(xI,{children:(0,L.jsx)(bL,{})}),SL=ti({code:Yr().min(6,z.t(`Verification code is too short`)).matches(/^[0-9]*$/,z.t(`Code must be a number`)).required(z.t(`Invalid code. Please try again.`)).transform(e=>Pa(e))}).required(),CL=({showLine:e})=>(0,L.jsxs)(T,{alignItems:`center`,width:10,children:[(0,L.jsx)(Zt,{size:20,sx:{color:`blue200`,"& path":{transform:`scale(1.6)`,transformOrigin:`center`,transformBox:`fill-box`}}}),e&&(0,L.jsx)(O,{sx:{width:`1px`,flex:1,bgcolor:`neutral200`,my:.5}})]}),wL=({open:e,onClose:t,onSuccess:n})=>{let r=ty(),i=e??r.isOpen,a=t??r.close,{data:o}=nG(),{data:s,isLoading:c}=sG({enabled:i&&!!o&&!o.isTfaEnabled}),{copyToClipboard:l}=Pu(),{mutateAsync:u,isPending:d}=cG(),{qr:f,secret:p}=s??{},m=ei({resolver:ii(SL),mode:`onChange`}),{handleSubmit:h,setError:g,formState:{isValid:_},control:v}=m,{t:y}=G(),x=(0,I.useRef)(!1),S=(0,I.useCallback)(async({code:e})=>{if(!x.current){x.current=!0;try{await u({code:e,enabled:!o?.isTfaEnabled}),a(),n?await n():b({message:y(`2FA has been successfully set up`),variant:`success`})}catch(e){e?.data?.error===`invalid TFA code`&&g(`code`,{message:y(`Invalid code. Please try again.`)})}finally{x.current=!1}}},[u,o?.isTfaEnabled,a,g,y,n]),ee=(0,I.useCallback)(()=>{p&&(l(p)(),b({message:y(`Copied to clipboard`),variant:`success`}))},[l,p,y]);return(0,L.jsx)(kt,{open:i,onClose:a,size:`medium`,title:y(`Setup 2FA`),submitTitle:y(`Verify and Save`),submitProps:{disabled:!_||d},loading:d,onSubmit:h(S),noCancelButton:!0,children:(0,L.jsx)(OE,{onSuccess:S,formContext:m,FormProps:{noValidate:!0,autoComplete:`new-password`},children:(0,L.jsxs)(T,{children:[(0,L.jsxs)(T,{direction:`row`,spacing:1.5,children:[(0,L.jsx)(CL,{showLine:!0}),(0,L.jsxs)(T,{spacing:.5,pb:3,children:[(0,L.jsx)(K,{variant:`titleM`,children:`Open an authenticator app`}),(0,L.jsx)(K,{variant:`bodyM`,children:`If you don't have one yet, download Google Authenticator or Authy.`})]})]}),(0,L.jsxs)(T,{direction:`row`,spacing:1.5,children:[(0,L.jsx)(CL,{showLine:!0}),(0,L.jsxs)(T,{spacing:1.5,pb:3,flex:1,children:[(0,L.jsxs)(T,{spacing:.5,children:[(0,L.jsx)(K,{variant:`titleM`,children:`Scan the QR code`}),(0,L.jsx)(K,{variant:`bodyM`,children:`Open the app and scan the QR code, or enter the setup key manually.`})]}),(0,L.jsxs)(T,{direction:`row`,spacing:3,alignItems:`center`,children:[(0,L.jsx)(O,{width:120,height:120,flexShrink:0,position:`relative`,children:c?(0,L.jsx)(Pe,{}):(0,L.jsx)(qT,{src:f??null,alt:`QRcode`,width:120,height:120})}),(0,L.jsxs)(T,{spacing:1,children:[(0,L.jsx)(k,{variant:`labelL`,color:`neutral800`,children:p}),(0,L.jsx)(A,{variant:`tertiaryBlack`,onClick:ee,sx:{px:`12px`,py:`8px`,width:`fit-content`},children:y(`Copy code`)})]})]})]})]}),(0,L.jsxs)(T,{direction:`row`,spacing:1.5,children:[(0,L.jsx)(CL,{showLine:!0}),(0,L.jsxs)(T,{spacing:1.5,flex:1,children:[(0,L.jsxs)(T,{spacing:.5,children:[(0,L.jsx)(K,{variant:`titleM`,children:`Enter the verification code`}),(0,L.jsx)(K,{variant:`bodyM`,children:`Enter the 6-digit code generated by your authenticator app.`})]}),(0,L.jsx)(Ln,{name:`code`,placeholder:`000 000`,autoComplete:`one-time-code`,control:v,required:!0,InputProps:{inputComponent:eE},sx:{width:200}})]})]})]})})})},TL=()=>{let{t:e}=G(),{open:t}=ty(),{data:n}=nG(),r=!!n?.isTfaEnabled,i=(0,I.useCallback)(()=>{window.open(Lo.TEAM.path,`_blank`)},[]),a=(0,I.useCallback)(()=>{r||t()},[r,t]),o=(0,I.useCallback)(()=>{b({message:e(`2FA has been successfully set up`),variant:`success`})},[e]);return(0,L.jsxs)(D,{container:!0,direction:`column`,width:`100%`,height:`100%`,bgcolor:`neutral0`,py:3,px:3,overflow:`hidden`,children:[(0,L.jsx)(D,{container:!0,alignItems:`center`,children:(0,L.jsx)(K,{variant:`headlineM`,children:`Money`})}),(0,L.jsxs)(T,{alignSelf:`center`,mt:`auto`,mb:`auto`,width:452,spacing:3,children:[(0,L.jsxs)(T,{spacing:1,children:[(0,L.jsx)(O,{sx:e=>({width:56,height:56,display:`flex`,alignItems:`center`,justifyContent:`center`,border:`1px solid ${e.extendPalette.neutral200}`,borderRadius:e.extendStyles.radiusM}),children:(0,L.jsx)(Ge,{sx:{color:`orange500`,width:32,height:32}})}),(0,L.jsx)(K,{variant:`headlineS`,mt:1,children:`Application under review`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`We're reviewing your application. This usually takes about 36 hours. In some cases, we may ask for additional documents.`})]}),(0,L.jsxs)(T,{spacing:1.5,children:[(0,L.jsx)(K,{variant:`labelM`,children:`You can do a few things while we review your application`}),(0,L.jsxs)(O,{border:1,borderColor:`neutral100`,borderRadius:3,children:[(0,L.jsx)(O,{p:2,borderBottom:1,borderColor:`neutral100`,sx:{cursor:`pointer`,borderTopLeftRadius:12,borderTopRightRadius:12,"&:hover":{bgcolor:`neutral50`},"&:active":{bgcolor:`neutral100`}},onClick:i,children:(0,L.jsxs)(T,{direction:`row`,gap:1.5,alignItems:`center`,justifyContent:`space-between`,children:[(0,L.jsxs)(T,{direction:`row`,gap:1.5,children:[(0,L.jsx)(Rt,{}),(0,L.jsxs)(T,{gap:.25,children:[(0,L.jsx)(K,{variant:`labelL`,children:`Invite your team`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`Add team members to your workspace.`})]})]}),(0,L.jsxs)(T,{direction:`row`,gap:.4,alignItems:`center`,flexShrink:0,children:[(0,L.jsx)(K,{color:`blue500`,variant:`labelM`,children:`Invite Team`}),(0,L.jsx)(Tn,{sx:{color:`blue500`}})]})]})}),(0,L.jsx)(O,{p:2,sx:{cursor:r?`default`:`pointer`,borderBottomLeftRadius:12,borderBottomRightRadius:12,"&:hover":{bgcolor:r?void 0:`neutral50`},"&:active":{bgcolor:r?void 0:`neutral100`}},onClick:r?void 0:a,children:(0,L.jsxs)(T,{direction:`row`,gap:1.5,alignItems:`center`,justifyContent:`space-between`,children:[(0,L.jsxs)(T,{direction:`row`,gap:1.5,children:[(0,L.jsx)(Dt,{sx:{color:r?`green500`:void 0}}),(0,L.jsxs)(T,{gap:.25,children:[(0,L.jsx)(K,{variant:`labelL`,children:`Protect account`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`Secure your account with two-factor authentication.`})]})]}
12),r?(0,L.jsxs)(T,{direction:`row`,gap:.4,alignItems:`center`,flexShrink:0,children:[(0,L.jsx)(ot,{sx:{color:`green500`}}),(0,L.jsx)(K,{color:`green500`,variant:`labelM`,children:`Completed`})]}):(0,L.jsxs)(T,{direction:`row`,gap:.4,alignItems:`center`,flexShrink:0,children:[(0,L.jsx)(K,{color:`blue500`,variant:`labelM`,children:`Set up 2FA`}),(0,L.jsx)(Tn,{sx:{color:`blue500`}})]})]})})]})]})]}),(0,L.jsx)(wL,{onSuccess:o})]})},EL=e=>I.createElement(`svg`,{width:918,height:257,viewBox:`0 0 918 257`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e},I.createElement(`path`,{d:`M0 35.2C0 22.8788 0 16.7183 2.39786 12.0122C4.50707 7.87264 7.87264 4.50707 12.0122 2.39786C16.7183 0 22.8788 0 35.2 0H882.8C895.121 0 901.282 0 905.988 2.39786C910.127 4.50707 913.493 7.87264 915.602 12.0122C918 16.7183 918 22.8788 918 35.2V257H0V35.2Z`,fill:`#F1F1F3`}),I.createElement(`path`,{d:`M9 34.6C9 25.6392 9 21.1587 10.7439 17.7362C12.2779 14.7256 14.7256 12.2779 17.7362 10.7439C21.1587 9 25.6392 9 34.6 9H883.4C892.361 9 896.841 9 900.264 10.7439C903.274 12.2779 905.722 14.7256 907.256 17.7362C909 21.1587 909 25.6392 909 34.6V257H9V34.6Z`,fill:`white`}),I.createElement(`g`,{clipPath:`url(#clip0_5891_237796)`},I.createElement(`path`,{d:`M279.906 49.7559H277.278L282.062 36.1667H285.101L289.892 49.7559H287.264L283.635 38.9535H283.529L279.906 49.7559ZM279.992 44.4277H287.158V46.405H279.992V44.4277ZM295.711 49.9549C294.694 49.9549 293.82 49.7315 293.09 49.2848C292.365 48.838 291.805 48.2209 291.411 47.4335C291.022 46.6417 290.828 45.7304 290.828 44.6997C290.828 43.6646 291.027 42.7512 291.425 41.9593C291.823 41.1631 292.385 40.5438 293.11 40.1014C293.84 39.6547 294.703 39.4313 295.698 39.4313C296.525 39.4313 297.257 39.5839 297.894 39.8891C298.536 40.1899 299.046 40.6168 299.427 41.1697C299.807 41.7182 300.024 42.3597 300.077 43.094H297.781C297.688 42.603 297.467 42.1938 297.118 41.8664C296.773 41.5347 296.311 41.3688 295.731 41.3688C295.24 41.3688 294.809 41.5015 294.437 41.7669C294.066 42.0279 293.776 42.4039 293.568 42.8949C293.364 43.3859 293.263 43.9743 293.263 44.6599C293.263 45.3544 293.364 45.9516 293.568 46.4515C293.771 46.9469 294.057 47.3295 294.424 47.5994C294.795 47.8648 295.231 47.9975 295.731 47.9975C296.085 47.9975 296.401 47.9311 296.68 47.7984C296.963 47.6613 297.2 47.4645 297.39 47.2079C297.58 46.9513 297.711 46.6395 297.781 46.2723H300.077C300.02 46.9933 299.807 47.6326 299.44 48.1899C299.073 48.7429 298.573 49.1764 297.941 49.4904C297.308 49.8001 296.565 49.9549 295.711 49.9549ZM307.139 39.564V41.4219H301.28V39.564H307.139ZM302.726 37.1222H305.128V46.6903C305.128 47.0133 305.177 47.261 305.274 47.4335C305.376 47.6016 305.509 47.7166 305.672 47.7785C305.836 47.8405 306.017 47.8714 306.217 47.8714C306.367 47.8714 306.504 47.8604 306.628 47.8382C306.756 47.8161 306.854 47.7962 306.92 47.7785L307.325 49.6563C307.196 49.7006 307.013 49.7492 306.774 49.8023C306.539 49.8554 306.252 49.8864 305.911 49.8952C305.31 49.9129 304.768 49.8222 304.286 49.6232C303.803 49.4197 303.421 49.1056 303.138 48.6809C302.859 48.2563 302.722 47.7254 302.726 47.0885V37.1222ZM309.148 49.7559V39.564H311.55V49.7559H309.148ZM310.355 38.1175C309.975 38.1175 309.648 37.9914 309.373 37.7393C309.099 37.4827 308.962 37.1753 308.962 36.8169C308.962 36.4542 309.099 36.1468 309.373 35.8946C309.648 35.6381 309.975 35.5098 310.355 35.5098C310.74 35.5098 311.068 35.6381 311.337 35.8946C311.612 36.1468 311.749 36.4542 311.749 36.8169C311.749 37.1753 311.612 37.4827 311.337 37.7393C311.068 37.9914 310.74 38.1175 310.355 38.1175ZM323.123 39.564L319.494 49.7559H316.84L313.21 39.564H315.771L318.114 47.1349H318.22L320.569 39.564H323.123ZM324.786 49.7559V39.564H327.188V49.7559H324.786ZM325.993 38.1175C325.613 38.1175 325.285 37.9914 325.011 37.7393C324.737 37.4827 324.6 37.1753 324.6 36.8169C324.6 36.4542 324.737 36.1468 325.011 35.8946C325.285 35.6381 325.613 35.5098 325.993 35.5098C326.378 35.5098 326.705 35.6381 326.975 35.8946C327.249 36.1468 327.387 36.4542 327.387 36.8169C327.387 37.1753 327.249 37.4827 326.975 37.7393C326.705 37.9914 326.378 38.1175 325.993 38.1175ZM334.747 39.564V41.4219H328.888V39.564H334.747ZM330.334 37.1222H332.736V46.6903C332.736 47.0133 332.785 47.261 332.882 47.4335C332.984 47.6016 333.117 47.7166 333.28 47.7785C333.444 47.8405 333.625 47.8714 333.825 47.8714C333.975 47.8714 334.112 47.8604 334.236 47.8382C334.364 47.8161 334.462 47.7962 334.528 47.7785L334.933 49.6563C334.804 49.7006 334.621 49.7492 334.382 49.8023C334.147 49.8554 333.86 49.8864 333.519 49.8952C332.918 49.9129 332.376 49.8222 331.894 49.6232C331.411 49.4197 331.029 49.1056 330.746 48.6809C330.467 48.2563 330.33 47.7254 330.334 47.0885V37.1222ZM338.249 53.5778C337.921 53.5778 337.618 53.5513 337.34 53.4982C337.065 53.4495 336.846 53.392 336.683 53.3257L337.24 51.4545C337.59 51.5562 337.901 51.6049 338.176 51.6005C338.45 51.5961 338.691 51.5098 338.899 51.3417C339.111 51.178 339.29 50.9038 339.436 50.5189L339.642 49.9682L335.946 39.564H338.494L340.843 47.261H340.949L343.305 39.564H345.859L341.779 50.99C341.588 51.5297 341.336 51.992 341.022 52.3768C340.708 52.7661 340.323 53.0625 339.868 53.266C339.416 53.4739 338.877 53.5778 338.249 53.5778Z`,fill:`#202022`}),I.createElement(`path`,{d:`M875.392 38.0658C875.392 37.7075 875.102 37.417 874.743 37.417C874.385 37.417 874.095 37.7075 874.095 38.0658V44.2849L871.958 42.1485C871.705 41.8952 871.294 41.8952 871.041 42.1485C870.787 42.4019 870.787 42.8127 871.041 43.0661L874.284 46.3095C874.286 46.3111 874.287 46.3127 874.289 46.3142C874.35 46.3743 874.42 46.4199 874.495 46.4508C874.571 46.4823 874.654 46.4998 874.741 46.5L874.743 46.5L874.745 46.5C874.922 46.4995 875.081 46.4287 875.198 46.3142C875.199 46.3127 875.201 46.3111 875.203 46.3095L878.446 43.0661C878.699 42.8127 878.699 42.4019 878.446 42.1485C878.193 41.8952 877.782 41.8952 877.529 42.1485L875.392 44.2849V38.0658Z`,fill:`#838388`}),I.createElement(`path`,{d:`M869.553 45.8512C869.911 45.8512 870.202 46.1417 870.202 46.5V47.7976C870.202 47.9697 870.27 48.1347 870.392 48.2564C870.514 48.3781 870.
12679 48.4464 870.851 48.4464H878.636C878.808 48.4464 878.973 48.3781 879.095 48.2564C879.217 48.1347 879.285 47.9697 879.285 47.7976V46.5C879.285 46.1417 879.575 45.8512 879.934 45.8512C880.292 45.8512 880.582 46.1417 880.582 46.5V47.7976C880.582 48.3138 880.377 48.8089 880.012 49.1739C879.647 49.5389 879.152 49.744 878.636 49.744H870.851C870.334 49.744 869.839 49.5389 869.474 49.1739C869.109 48.8089 868.904 48.3138 868.904 47.7976V46.5C868.904 46.1417 869.195 45.8512 869.553 45.8512Z`,fill:`#838388`}),I.createElement(`mask`,{id:`path-6-inside-1_5891_237796`,fill:`white`},I.createElement(`path`,{d:`M276.82 77.5117H890.315V105.968H276.82V77.5117Z`})),I.createElement(`path`,{d:`M276.82 77.5117H890.315V105.968H276.82V77.5117Z`,fill:`white`}),I.createElement(`path`,{d:`M890.315 105.19H276.82V106.747H890.315V105.19Z`,fill:`#F1F1F3`,mask:`url(#path-6-inside-1_5891_237796)`}),I.createElement(`path`,{d:`M283.901 95.8486C283.37 95.8486 282.895 95.757 282.477 95.5738C282.062 95.3906 281.733 95.1364 281.49 94.8113C281.25 94.4836 281.121 94.1043 281.103 93.6733H282.318C282.334 93.9081 282.413 94.112 282.554 94.2849C282.699 94.4552 282.887 94.5868 283.12 94.6797C283.352 94.7726 283.61 94.819 283.894 94.819C284.206 94.819 284.482 94.7648 284.722 94.6565C284.965 94.5481 285.154 94.3971 285.291 94.2036C285.428 94.0075 285.496 93.7817 285.496 93.5262C285.496 93.2605 285.428 93.0269 285.291 92.8257C285.157 92.6218 284.959 92.4618 284.699 92.3457C284.441 92.2296 284.128 92.1715 283.762 92.1715H283.092V91.1961H283.762C284.056 91.1961 284.314 91.1432 284.536 91.0374C284.761 90.9316 284.936 90.7846 285.063 90.5962C285.189 90.4052 285.252 90.182 285.252 89.9266C285.252 89.6814 285.197 89.4685 285.086 89.2879C284.977 89.1047 284.823 88.9615 284.621 88.8583C284.423 88.7551 284.188 88.7035 283.917 88.7035C283.659 88.7035 283.418 88.7512 283.193 88.8467C282.971 88.9396 282.791 89.0737 282.651 89.2492C282.512 89.4221 282.437 89.6298 282.427 89.8724H281.269C281.282 89.444 281.409 89.0673 281.649 88.7422C281.891 88.417 282.211 88.1629 282.609 87.9796C283.006 87.7964 283.447 87.7048 283.932 87.7048C284.441 87.7048 284.879 87.8042 285.248 88.0029C285.62 88.199 285.906 88.4609 286.108 88.7886C286.312 89.1163 286.412 89.475 286.41 89.8646C286.412 90.3085 286.288 90.6852 286.038 90.9949C285.79 91.3045 285.46 91.5122 285.047 91.618V91.68C285.574 91.76 285.981 91.969 286.27 92.307C286.562 92.645 286.706 93.0643 286.704 93.5649C286.706 94.001 286.585 94.392 286.34 94.7377C286.097 95.0835 285.766 95.3558 285.345 95.5544C284.925 95.7506 284.443 95.8486 283.901 95.8486ZM291.16 87.8132H292.611L295.135 93.9752H295.228L297.751 87.8132H299.203V95.7402H298.065V90.004H297.991L295.654 95.7286H294.709L292.371 90.0001H292.298V95.7402H291.16V87.8132ZM302.579 95.8718C302.202 95.8718 301.862 95.8022 301.557 95.6628C301.253 95.5209 301.011 95.3158 300.833 95.0474C300.658 94.779 300.57 94.45 300.57 94.0604C300.57 93.7249 300.635 93.4488 300.764 93.2321C300.893 93.0153 301.067 92.8437 301.286 92.7173C301.506 92.5908 301.751 92.4954 302.022 92.4309C302.293 92.3663 302.569 92.3173 302.85 92.2838C303.206 92.2425 303.495 92.2089 303.717 92.1831C303.939 92.1548 304.1 92.1096 304.201 92.0477C304.302 91.9857 304.352 91.8851 304.352 91.7458V91.7187C304.352 91.3806 304.256 91.1187 304.065 90.9329C303.877 90.7471 303.596 90.6542 303.222 90.6542C302.832 90.6542 302.525 90.7407 302.3 90.9136C302.078 91.0839 301.925 91.2735 301.84 91.4826L300.752 91.2348C300.881 90.8736 301.07 90.582 301.317 90.3601C301.568 90.1356 301.855 89.973 302.18 89.8724C302.506 89.7692 302.847 89.7176 303.206 89.7176C303.444 89.7176 303.695 89.7459 303.961 89.8027C304.229 89.8569 304.48 89.9575 304.712 90.1046C304.947 90.2517 305.139 90.462 305.289 90.7355C305.438 91.0065 305.513 91.3587 305.513 91.7922V95.7402H304.383V94.9274H304.336C304.262 95.0771 304.149 95.2242 304 95.3687C303.85 95.5132 303.658 95.6331 303.423 95.7286C303.188 95.8241 302.907 95.8718 302.579 95.8718ZM302.831 94.9429C303.151 94.9429 303.424 94.8797 303.651 94.7532C303.881 94.6268 304.055 94.4616 304.174 94.2578C304.295 94.0514 304.356 93.8307 304.356 93.5959V92.8295C304.314 92.8708 304.234 92.9095 304.116 92.9456C304 92.9792 303.867 93.0089 303.717 93.0347C303.567 93.0579 303.422 93.0798 303.28 93.1005C303.138 93.1185 303.019 93.134 302.924 93.1469C302.699 93.1753 302.494 93.223 302.308 93.2901C302.125 93.3572 301.978 93.454 301.867 93.5804C301.759 93.7043 301.704 93.8694 301.704 94.0759C301.704 94.3623 301.81 94.579 302.022 94.7261C302.233 94.8706 302.503 94.9429 302.831 94.9429ZM307.573 97.9697C307.4 97.9697 307.243 97.9555 307.101 97.9271C306.959 97.9013 306.853 97.8729 306.784 97.842L307.062 96.8937C307.274 96.9504 307.462 96.975 307.627 96.9672C307.792 96.9595 307.938 96.8975 308.065 96.7814C308.194 96.6653 308.307 96.4757 308.405 96.2124L308.549 95.8176L306.373 89.795H307.612L309.118 94.4087H309.179L310.685 89.795H311.928L309.477 96.5337C309.364 96.8434 309.219 97.1053 309.044 97.3194C308.869 97.5362 308.659 97.6988 308.417 97.8071C308.174 97.9155 307.893 97.9697 307.573 97.9697ZM315.884 95.7402V94.8732L318.567 92.0941C318.853 91.7922 319.089 91.5277 319.275 91.3006C319.463 91.071 319.604 90.8529 319.697 90.6465C319.79 90.4401 319.836 90.2207 319.836 89.9885C319.836 89.7253 319.774 89.4982 319.65 89.3073C319.527 89.1137 319.358 88.9654 319.143 88.8621C318.929 88.7564 318.688 88.7035 318.42 88.7035C318.136 88.7035 317.888 88.7615 317.676 88.8776C317.465 88.9938 317.302 89.1576 317.189 89.3692C317.075 89.5808 317.018 89.8285 317.018 90.1124H315.877C315.877 89.6298 315.988 89.2079 316.209 88.8467C316.431 88.4854 316.736 88.2054 317.123 88.0067C317.51 87.8055 317.95 87.7048 318.443 87.7048C318.941 87.7048 319.379 87.8042 319.759 88.0029C320.141 88.199 320.439 88.4673 320.653 88.808C320.867 89.146 320.974 89.5279 320.974 89.9537C320.974 90.2478 320.919 90.5355 320.808 90.8168C320.699 91.0981 320.51 91.4116 320.239 91.7574C319.968 92.1006 319.591 92.5173 319.109 93.0076L317.533 94.6565V94.7145H321.102V95.7402H315.884ZM325.329 95.8718C324.717 95.8693 324.195 95.708 323.761 95.388C323.328 95.068 322.996 94.6023 322.766 93.9907C322.537 93.3792 322.422 92.6425 322.422 91.7806C322.422 90.9213 322.537 90.1872 322.766 89.5782C322.999 88.9692 323.331 88.5048 323.765 88.1848C324.201 87.8648 324.722 87.7048 325.329 87.7048C325.935 87.7048 326.45
125 87.8661 326.888 88.1887C327.322 88.5086 327.654 88.9731 327.883 89.5821C328.115 90.1885 328.232 90.9213 328.232 91.7806C328.232 92.645 328.117 93.383 327.887 93.9946C327.657 94.6036 327.326 95.0693 326.892 95.3919C326.459 95.7118 325.938 95.8718 325.329 95.8718ZM325.329 94.8384C325.865 94.8384 326.285 94.5765 326.587 94.0526C326.891 93.5288 327.043 92.7715 327.043 91.7806C327.043 91.1226 326.974 90.5665 326.834 90.1124C326.698 89.6556 326.5 89.3099 326.242 89.075C325.987 88.8376 325.682 88.7189 325.329 88.7189C324.794 88.7189 324.375 88.9821 324.071 89.5085C323.766 90.0349 323.613 90.7923 323.61 91.7806C323.61 92.4412 323.678 92.9998 323.815 93.4566C323.955 93.9107 324.152 94.2552 324.407 94.49C324.663 94.7223 324.97 94.8384 325.329 94.8384ZM329.605 95.7402V94.8732L332.287 92.0941C332.573 91.7922 332.81 91.5277 332.995 91.3006C333.184 91.071 333.324 90.8529 333.417 90.6465C333.51 90.4401 333.557 90.2207 333.557 89.9885C333.557 89.7253 333.495 89.4982 333.371 89.3073C333.247 89.1137 333.078 88.9654 332.864 88.8621C332.65 88.7564 332.408 88.7035 332.14 88.7035C331.856 88.7035 331.608 88.7615 331.397 88.8776C331.185 88.9938 331.023 89.1576 330.909 89.3692C330.796 89.5808 330.739 89.8285 330.739 90.1124H329.597C329.597 89.6298 329.708 89.2079 329.93 88.8467C330.152 88.4854 330.456 88.2054 330.843 88.0067C331.23 87.8055 331.67 87.7048 332.163 87.7048C332.661 87.7048 333.1 87.8042 333.479 88.0029C333.861 88.199 334.159 88.4673 334.373 88.808C334.587 89.146 334.695 89.5279 334.695 89.9537C334.695 90.2478 334.639 90.5355 334.528 90.8168C334.42 91.0981 334.23 91.4116 333.959 91.7574C333.688 92.1006 333.311 92.5173 332.829 93.0076L331.254 94.6565V94.7145H334.822V95.7402H329.605ZM335.952 94.192V93.2243L339.378 87.8132H340.141V89.2376H339.657L337.207 93.116V93.1779H341.902V94.192H335.952ZM339.711 95.7402V93.8978L339.719 93.4566V87.8132H340.853V95.7402H339.711Z`,fill:`#838388`}),I.createElement(`rect`,{width:613.495,height:56.0554,transform:`translate(276.82 105.969)`,fill:`white`}),I.createElement(`rect`,{x:279.934,y:121.54,width:24.9135,height:24.9135,rx:6.22837,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M289.148 135.294C288.79 135.294 288.499 135.584 288.499 135.942C288.499 136.301 288.79 136.591 289.148 136.591H290.446C290.804 136.591 291.095 136.301 291.095 135.942C291.095 135.584 290.804 135.294 290.446 135.294H289.148Z`,fill:`#838388`}),I.createElement(`path`,{d:`M291.743 135.942C291.743 135.584 292.034 135.294 292.392 135.294H293.69C294.048 135.294 294.339 135.584 294.339 135.942C294.339 136.301 294.048 136.591 293.69 136.591H292.392C292.034 136.591 291.743 136.301 291.743 135.942Z`,fill:`#838388`}),I.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M287.526 128.806C286.63 128.806 285.904 129.532 285.904 130.428V137.564C285.904 138.46 286.63 139.186 287.526 139.186H297.258C298.154 139.186 298.88 138.46 298.88 137.564V130.428C298.88 129.532 298.154 128.806 297.258 128.806H287.526ZM297.582 132.05V130.428C297.582 130.248 297.437 130.103 297.258 130.103H287.526C287.347 130.103 287.202 130.248 287.202 130.428V132.05H297.582ZM287.202 133.347H297.582V137.564C297.582 137.743 297.437 137.889 297.258 137.889H287.526C287.347 137.889 287.202 137.743 287.202 137.564V133.347Z`,fill:`#838388`}),I.createElement(`path`,{d:`M321.458 129.727V137.654H320.359L316.33 131.841H316.256V137.654H315.06V129.727H316.167L320.201 135.549H320.274V129.727H321.458ZM325.615 137.774C325.057 137.774 324.571 137.647 324.155 137.391C323.74 137.136 323.417 136.778 323.188 136.319C322.958 135.86 322.843 135.323 322.843 134.709C322.843 134.092 322.958 133.553 323.188 133.091C323.417 132.629 323.74 132.27 324.155 132.015C324.571 131.759 325.057 131.632 325.615 131.632C326.172 131.632 326.658 131.759 327.074 132.015C327.489 132.27 327.812 132.629 328.041 133.091C328.271 133.553 328.386 134.092 328.386 134.709C328.386 135.323 328.271 135.86 328.041 136.319C327.812 136.778 327.489 137.136 327.074 137.391C326.658 137.647 326.172 137.774 325.615 137.774ZM325.618 136.803C325.98 136.803 326.279 136.707 326.516 136.516C326.754 136.325 326.929 136.071 327.043 135.754C327.159 135.436 327.217 135.087 327.217 134.705C327.217 134.326 327.159 133.977 327.043 133.66C326.929 133.34 326.754 133.083 326.516 132.89C326.279 132.696 325.98 132.599 325.618 132.599C325.255 132.599 324.953 132.696 324.713 132.89C324.475 133.083 324.299 133.34 324.182 133.66C324.069 133.977 324.012 134.326 324.012 134.705C324.012 135.087 324.069 135.436 324.182 135.754C324.299 136.071 324.475 136.325 324.713 136.516C324.953 136.707 325.255 136.803 325.618 136.803ZM332.453 131.709V132.638H329.206V131.709H332.453ZM330.076 130.285H331.234V135.909C331.234 136.133 331.267 136.302 331.334 136.416C331.401 136.527 331.488 136.603 331.594 136.644C331.702 136.683 331.819 136.702 331.946 136.702C332.039 136.702 332.12 136.696 332.19 136.683C332.259 136.67 332.314 136.66 332.352 136.652L332.561 137.608C332.494 137.634 332.399 137.659 332.275 137.685C332.151 137.714 331.996 137.729 331.81 137.732C331.506 137.737 331.222 137.683 330.959 137.569C330.696 137.456 330.483 137.28 330.32 137.043C330.158 136.805 330.076 136.507 330.076 136.149V130.285ZM333.733 137.654V131.709H334.89V137.654H333.733ZM334.318 130.792C334.116 130.792 333.943 130.725 333.799 130.59C333.657 130.454 333.586 130.291 333.586 130.103C333.586 129.912 333.657 129.749 333.799 129.615C333.943 129.478 334.116 129.41 334.318 129.41C334.519 129.41 334.69 129.478 334.832 129.615C334.977 129.749 335.049 129.912 335.049 130.103C335.049 130.291 334.977 130.454 334.832 130.59C334.69 130.725 334.519 130.792 334.318 130.792ZM338.952 137.774C338.394 137.774 337.908 137.647 337.492 137.391C337.077 137.136 336.754 136.778 336.525 136.319C336.295 135.86 336.18 135.323 336.18 134.709C336.18 134.092 336.295 133.553 336.525 133.091C336.754 132.629 337.077 132.27 337.492 132.015C337.908 131.759 338.394 131.632 338.952 131.632C339.509 131.632 339.995 131.759 340.411 132.015C340.826 132.27 341.149 132.629 341.379 133.091C341.608 133.553 341.723 134.092 341.723 134.709C341.723 135.323 341.608 135.86 341.379 136.319C341.149 136.778 340.826 137.136 340.411 137.391C339.995 137.647 339.509 137.774 338.952 137.774ZM338.956 136.803C339.317 136.803 339.616 136.707 339.854 136.516C340.091 136.325 340.266 136.071 340.38 135.754C340.496 135.436 340.554 135.087 340.554 134.705C340.554 134.326 340.496 133.977 340.38 133.66C340.266 133.34 340.091 133.083 339.854 132.89C339.616 132.696 339.317 132.599 338.956 132.599C338.592 132.599 338.29 132.696 338.05 132.89C337.812 133.083 337.636 133.34 337.52 133.66C337.406 133.977 337.349 134.326 337.349 134.705C337.349 135.087 337.406 135.436 337.52 135.754C337.636 136.071 337.812 136.325 338.05 136.516C338.29 136.707 338.592 136.803 338.956 136.803ZM344.172 134.124V137.654H343.015V131.709H344.126V132.677H344.199C344.336 132.362 344.55 132.109 344.842 131.918C345.136 131.727 345.506 131.632 345.953 131.632C346.358 131.632 346.713 131.717 347.017 131.887C347.322 132.055 347.558 132.305 347.725 132.638C347.893 132.971 347.977 133.382 347.977 133.873V137.654H346.82V134.012C346.82 133.581 346.707 133.244 346.483 133.002C346.258 132.757 345.95 132.634 345.558 132.634C345.29 132.634 345.051 132.692 344.842 132.808C344.635 132.924 344.472 133.095 344.35 133.319C344.232 133.541 344.172 133.809 344.172 134.124Z`,fill:`#202022`}),I.createElement(`path`,{d:`M511.716 136.541C511.403 136.541 511.118 136.465 510.86 136.312C510.602 136.158 510.396 135.951 510.241 135.693C510.089 135.435 510.013 135.15 510.013 134.838C510.013 134.523 510.089 134.238 510.241 133.982C510.396 133.724 510.602 133.519 510.86 133.367C511.118 133.212 511.403 133.135 511.716 133.135C512.03 133.135 512.316 133.212 512.571 133.367C512.829 133.519 513.034 133.724 513.186 133.982C513.341 134.238 513.419 134.523 513.419 134.838C513.419 135.15 513.341 135.435 513.186 135.693C513.034 135.951 512.829 136.158 512.571 136.312C512.316 136.465 512.03 136.541 511.716 136.541ZM517.485 136.541C517.173 136.541 516.887 136.465 516.629 136.312C516.371 136.158 516.165 135.951 516.01 135.693C515.858 135.435 515.782 135.15 515.782 134.838C515.782 134.523 515.858 134.238 516.01 133.982C516.165 133.724 516.371 133.519 516.629 133.367C516.887 133.212 517.173 133.135 517.485 133.135C517.8 133.135 518.085 133.212 518.34 133.367C518.598 133.519 518.803 133.724 518.956 133.982C519.11 134.238 519.188 134.523 519.188 134.838C519.188 135.15 519.11 135.435 518.956 135.693C518.803 135.951 518.598 136.158 518.34 136.312C518.085 136.465 517.8 136.541 517.485 136.541Z`,fill:`#838388`}),I.createElement(`path`,{d:`M524.537 136.448V135.48L527.963 130.069H
12528.725V131.493H528.242L525.792 135.372V135.434H530.487V136.448H524.537ZM528.296 137.996V136.154L528.304 135.712V130.069H529.438V137.996H528.296ZM534.737 130.069V137.996H533.537V131.269H533.49L531.594 132.508V131.362L533.571 130.069H534.737ZM536.714 136.448V135.48L540.14 130.069H540.902V131.493H540.419L537.969 135.372V135.434H542.664V136.448H536.714ZM540.473 137.996V136.154L540.481 135.712V130.069H541.615V137.996H540.473ZM546.914 130.069V137.996H545.714V131.269H545.667L543.771 132.508V131.362L545.748 130.069H546.914Z`,fill:`#838388`}),I.createElement(`path`,{d:`M816.936 133.533V134.536H811.486V133.533H816.936ZM822.684 132.848L822.316 133.646H817.227L817.517 132.848H822.684ZM821.991 134.42L821.616 135.225H817.227L817.517 134.42H821.991ZM823.629 130.746L823.172 131.726C823.027 131.602 822.87 131.49 822.7 131.389C822.529 131.288 822.346 131.208 822.15 131.149C821.954 131.087 821.744 131.056 821.519 131.056C821.106 131.056 820.739 131.167 820.416 131.389C820.093 131.611 819.839 131.944 819.653 132.388C819.47 132.829 819.379 133.378 819.379 134.036C819.379 134.694 819.47 135.244 819.653 135.685C819.839 136.127 820.093 136.458 820.416 136.68C820.739 136.899 821.106 137.009 821.519 137.009C821.746 137.009 821.958 136.979 822.154 136.92C822.353 136.861 822.533 136.783 822.696 136.688C822.861 136.59 823.009 136.487 823.141 136.378L823.609 137.354C823.336 137.601 823.018 137.788 822.657 137.915C822.296 138.041 821.917 138.104 821.519 138.104C820.871 138.104 820.297 137.941 819.797 137.613C819.299 137.285 818.908 136.818 818.624 136.212C818.34 135.603 818.198 134.878 818.198 134.036C818.198 133.193 818.34 132.466 818.624 131.857C818.908 131.248 819.299 130.78 819.797 130.452C820.297 130.125 820.871 129.961 821.519 129.961C821.932 129.961 822.316 130.029 822.673 130.166C823.029 130.3 823.347 130.494 823.629 130.746ZM828.03 130.069V137.996H826.83V131.269H826.783L824.887 132.508V131.362L826.864 130.069H828.03ZM830.174 137.996V137.129L832.856 134.35C833.143 134.048 833.379 133.784 833.564 133.556C833.753 133.327 833.893 133.109 833.986 132.902C834.079 132.696 834.126 132.477 834.126 132.244C834.126 131.981 834.064 131.754 833.94 131.563C833.816 131.37 833.647 131.221 833.433 131.118C833.219 131.012 832.977 130.959 832.709 130.959C832.425 130.959 832.178 131.017 831.966 131.133C831.754 131.25 831.592 131.413 831.478 131.625C831.365 131.837 831.308 132.084 831.308 132.368H830.166C830.166 131.886 830.277 131.464 830.499 131.103C830.721 130.741 831.025 130.461 831.412 130.263C831.799 130.061 832.239 129.961 832.732 129.961C833.23 129.961 833.669 130.06 834.048 130.259C834.43 130.455 834.728 130.723 834.942 131.064C835.157 131.402 835.264 131.784 835.264 132.21C835.264 132.504 835.208 132.791 835.097 133.073C834.989 133.354 834.799 133.667 834.528 134.013C834.257 134.356 833.881 134.773 833.398 135.263L831.823 136.912V136.97H835.391V137.996H830.174ZM837.636 138.07C837.425 138.07 837.243 137.995 837.091 137.845C836.938 137.693 836.862 137.51 836.862 137.296C836.862 137.084 836.938 136.903 837.091 136.754C837.243 136.601 837.425 136.525 837.636 136.525C837.848 136.525 838.03 136.601 838.182 136.754C838.334 136.903 838.41 137.084 838.41 137.296C838.41 137.437 838.374 137.568 838.302 137.686C838.232 137.803 838.14 137.895 838.023 137.965C837.907 138.035 837.778 138.07 837.636 138.07ZM842.485 129.961C842.839 129.963 843.187 130.028 843.53 130.154C843.874 130.281 844.183 130.487 844.459 130.774C844.738 131.06 844.96 131.447 845.125 131.935C845.293 132.42 845.378 133.024 845.381 133.746C845.381 134.44 845.311 135.058 845.171 135.6C845.032 136.139 844.832 136.595 844.572 136.967C844.314 137.338 844 137.621 843.631 137.814C843.262 138.008 842.847 138.104 842.385 138.104C841.912 138.104 841.493 138.012 841.127 137.826C840.76 137.64 840.462 137.383 840.233 137.056C840.003 136.725 839.86 136.346 839.803 135.918H840.983C841.061 136.258 841.218 136.534 841.456 136.746C841.696 136.955 842.005 137.059 842.385 137.059C842.965 137.059 843.418 136.807 843.743 136.301C844.068 135.792 844.232 135.083 844.235 134.172H844.173C844.039 134.394 843.871 134.585 843.67 134.745C843.471 134.905 843.248 135.029 843 135.116C842.752 135.204 842.488 135.248 842.207 135.248C841.75 135.248 841.334 135.136 840.96 134.911C840.586 134.687 840.288 134.378 840.066 133.986C839.844 133.594 839.733 133.146 839.733 132.643C839.733 132.142 839.847 131.688 840.074 131.281C840.304 130.873 840.624 130.55 841.034 130.313C841.447 130.073 841.931 129.956 842.485 129.961ZM842.489 130.967C842.187 130.967 841.915 131.042 841.672 131.192C841.432 131.339 841.243 131.539 841.103 131.791C840.964 132.042 840.894 132.32 840.894 132.628C840.894 132.935 840.962 133.213 841.096 133.464C841.233 133.711 841.418 133.909 841.653 134.056C841.891 134.2 842.161 134.273 842.466 134.273C842.693 134.273 842.905 134.229 843.101 134.141C843.297 134.053 843.468 133.932 843.616 133.777C843.763 133.62 843.877 133.442 843.96 133.243C844.043 133.044 844.084
12132.835 844.084 132.616C844.084 132.324 844.014 132.053 843.875 131.803C843.738 131.553 843.55 131.352 843.31 131.199C843.07 131.044 842.796 130.967 842.489 130.967ZM849.415 129.961C849.768 129.963 850.117 130.028 850.46 130.154C850.803 130.281 851.113 130.487 851.389 130.774C851.667 131.06 851.889 131.447 852.054 131.935C852.222 132.42 852.307 133.024 852.31 133.746C852.31 134.44 852.24 135.058 852.101 135.6C851.962 136.139 851.762 136.595 851.501 136.967C851.243 137.338 850.929 137.621 850.56 137.814C850.191 138.008 849.776 138.104 849.314 138.104C848.842 138.104 848.422 138.012 848.056 137.826C847.69 137.64 847.392 137.383 847.162 137.056C846.932 136.725 846.789 136.346 846.732 135.918H847.913C847.99 136.258 848.148 136.534 848.385 136.746C848.625 136.955 848.935 137.059 849.314 137.059C849.895 137.059 850.347 136.807 850.673 136.301C850.998 135.792 851.162 135.083 851.164 134.172H851.102C850.968 134.394 850.8 134.585 850.599 134.745C850.4 134.905 850.177 135.029 849.929 135.116C849.682 135.204 849.417 135.248 849.136 135.248C848.679 135.248 848.264 135.136 847.89 134.911C847.515 134.687 847.217 134.378 846.996 133.986C846.774 133.594 846.663 133.146 846.663 132.643C846.663 132.142 846.776 131.688 847.003 131.281C847.233 130.873 847.553 130.55 847.963 130.313C848.376 130.073 848.86 129.956 849.415 129.961ZM849.419 130.967C849.117 130.967 848.844 131.042 848.602 131.192C848.362 131.339 848.172 131.539 848.033 131.791C847.894 132.042 847.824 132.32 847.824 132.628C847.824 132.935 847.891 133.213 848.025 133.464C848.162 133.711 848.348 133.909 848.582 134.056C848.82 134.2 849.091 134.273 849.395 134.273C849.622 134.273 849.834 134.229 850.03 134.141C850.226 134.053 850.398 133.932 850.545 133.777C850.692 133.62 850.807 133.442 850.889 133.243C850.972 133.044 851.013 132.835 851.013 132.616C851.013 132.324 850.944 132.053 850.804 131.803C850.667 131.553 850.479 131.352 850.239 131.199C849.999 131.044 849.726 130.967 849.419 130.967Z`,fill:`#202022`}),I.createElement(`g`,{clipPath:`url(#clip1_5891_237796)`},I.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M885.427 136.184C885.724 136.495 885.713 136.987 885.402 137.284L881.463 141.041C881.162 141.328 880.689 141.328 880.388 141.041L878.422 139.162C878.111 138.865 878.1 138.372 878.397 138.062C878.694 137.751 879.187 137.74 879.498 138.037L880.926 139.402L884.327 136.158C884.638 135.861 885.131 135.872 885.427 136.184Z`,fill:`#00AC4F`}),I.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M873.187 126.99C872.757 126.99 872.409 127.338 872.409 127.768V140.225C872.409 140.655 872.757 141.004 873.187 141.004H877.858C878.288 141.004 878.637 141.352 878.637 141.782C878.637 142.212 878.288 142.561 877.858 142.561H873.187C871.897 142.561 870.852 141.515 870.852 140.225V127.768C870.852 126.478 871.897 125.433 873.187 125.433H882.53C883.82 125.433 884.865 126.478 884.865 127.768V133.997C884.865 134.427 884.517 134.775 884.087 134.775C883.657 134.775 883.308 134.427 883.308 133.997V127.768C883.308 127.338 882.96 126.99 882.53 126.99H873.187ZM873.187 132.439C873.187 132.009 873.536 131.661 873.966 131.661H878.637C879.067 131.661 879.416 132.009 879.416 132.439C879.416 132.869 879.067 133.218 878.637 133.218H873.966C873.536 133.218 873.187 132.869 873.187 132.439ZM873.966 128.547C873.536 128.547 873.187 128.895 873.187 129.325C873.187 129.755 873.536 130.104 873.966 130.104H881.751C882.181 130.104 882.53 129.755 882.53 129.325C882.53 128.895 882.181 128.547 881.751 128.547H873.966Z`,fill:`#202022`})),I.createElement(`rect`,{x:276.82,y:161.19,width:613,height:.778547,fill:`#F1F1F3`}),I.createElement(`rect`,{width:613.495,height:56.0554,transform:`translate(276.82 162.023)`,fill:`white`}),I.createElement(`rect`,{x:279.934,y:177.595,width:24.9135,height:24.9135,rx:6.22837,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M289.148 191.348C288.79 191.348 288.499 191.639 288.499 191.997C288.499 192.355 288.79 192.646 289.148 192.646H290.446C290.804 192.646 291.095 192.355 291.095 191.997C291.095 191.639 290.804 191.348 290.446 191.348H289.148Z`,fill:`#838388`}),I.createElement(`path`,{d:`M291.743 191.997C291.743 191.639 292.034 191.348 292.392 191.348H293.69C294.048 191.348 294.339 191.639 294.339 191.997C294.339 192.355 294.048 192.646 293.69 192.646H292.392C292.034 192.646 291.743 192.355 291.743 191.997Z`,fill:`#838388`}),I.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M287.526 184.86C286.63 184.86 285.904 185.587 285.904 186.482V193.619C285.904 194.515 286.63 195.241 287.526 195.241H297.258C298.154 195.241 298.88 194.515 298.88 193.619V186.482C298.88 185.587 298.154 184.86 297.258 184.86H287.526ZM297.582 188.104V186.482C297.582 186.303 297.437 186.158 297.258 186.158H287.526C287.347 186.158 287.202 186.303 287.202 186.482V188.104H297.582ZM287.202 189.402H297.582V193.619C297.582 193.798 297.437 193.943 297.258 193.943H287.526C287.347 193.943 287.202 193.798 287.202 193.619V189.402Z`,fill:`#838388`}),I.createElement(`path`,{d:`M316.612 193.709L314.414 185.782H315.672L317.216 191.921H317.29L318.896 185.782H320.142L321.749 191.925H321.822L323.363 185.782H324.625L322.422 193.709H321.218L319.55 187.771H319.488L317.82 193.709H316.612ZM325.622 193.709V187.764H326.78V193.709H325.
12622ZM326.207 186.846C326.005 186.846 325.833 186.779 325.688 186.645C325.546 186.508 325.475 186.346 325.475 186.157C325.475 185.966 325.546 185.804 325.688 185.67C325.833 185.533 326.005 185.465 326.207 185.465C326.408 185.465 326.58 185.533 326.722 185.67C326.866 185.804 326.938 185.966 326.938 186.157C326.938 186.346 326.866 186.508 326.722 186.645C326.58 186.779 326.408 186.846 326.207 186.846ZM328.213 193.709V192.916L331.433 188.824V188.77H328.317V187.764H332.877V188.608L329.78 192.648V192.703H332.985V193.709H328.213ZM334.227 193.709V192.916L337.447 188.824V188.77H334.331V187.764H338.891V188.608L335.794 192.648V192.703H338.999V193.709H334.227ZM344.012 193.709H342.742L345.595 185.782H346.976L349.829 193.709H348.56L346.318 187.222H346.257L344.012 193.709ZM344.224 190.605H348.343V191.611H344.224V190.605ZM350.934 193.709V187.764H352.091V193.709H350.934ZM351.519 186.846C351.317 186.846 351.144 186.779 351 186.645C350.858 186.508 350.787 186.346 350.787 186.157C350.787 185.966 350.858 185.804 351 185.67C351.144 185.533 351.317 185.465 351.519 185.465C351.72 185.465 351.892 185.533 352.033 185.67C352.178 185.804 352.25 185.966 352.25 186.157C352.25 186.346 352.178 186.508 352.033 186.645C351.892 186.779 351.72 186.846 351.519 186.846ZM353.648 193.709V187.764H354.767V188.708H354.829C354.937 188.388 355.128 188.137 355.402 187.953C355.678 187.768 355.99 187.675 356.339 187.675C356.411 187.675 356.496 187.677 356.594 187.682C356.695 187.688 356.773 187.694 356.83 187.702V188.809C356.784 188.796 356.701 188.782 356.582 188.766C356.464 188.748 356.345 188.739 356.226 188.739C355.953 188.739 355.709 188.797 355.495 188.913C355.283 189.027 355.115 189.186 354.992 189.389C354.868 189.591 354.806 189.82 354.806 190.078V193.709H353.648Z`,fill:`#202022`}),I.createElement(`path`,{d:`M511.716 192.595C511.403 192.595 511.118 192.519 510.86 192.367C510.602 192.212 510.396 192.006 510.241 191.748C510.089 191.49 510.013 191.205 510.013 190.892C510.013 190.578 510.089 190.292 510.241 190.037C510.396 189.779 510.602 189.574 510.86 189.422C511.118 189.267 511.403 189.189 511.716 189.189C512.03 189.189 512.316 189.267 512.571 189.422C512.829 189.574 513.034 189.779 513.186 190.037C513.341 190.292 513.419 190.578 513.419 190.892C513.419 191.205 513.341 191.49 513.186 191.748C513.034 192.006 512.829 192.212 512.571 192.367C512.316 192.519 512.03 192.595 511.716 192.595ZM517.485 192.595C517.173 192.595 516.887 192.519 516.629 192.367C516.371 192.212 516.165 192.006 516.01 191.748C515.858 191.49 515.782 191.205 515.782 190.892C515.782 190.578 515.858 190.292 516.01 190.037C516.165 189.779 516.371 189.574 516.629 189.422C516.887 189.267 517.173 189.189 517.485 189.189C517.8 189.189 518.085 189.267 518.34 189.422C518.598 189.574 518.803 189.779 518.956 190.037C519.11 190.292 519.188 190.578 519.188 190.892C519.188 191.205 519.11 191.49 518.956 191.748C518.803 192.006 518.598 192.212 518.34 192.367C518.085 192.519 517.8 192.595 517.485 192.595Z`,fill:`#838388`}),I.createElement(`path`,{d:`M524.537 192.503V191.535L527.963 186.124H528.725V187.548H528.242L525.792 191.427V191.488H530.487V192.503H524.537ZM528.296 194.051V192.208L528.304 191.767V186.124H529.438V194.051H528.296ZM534.737 186.124V194.051H533.537V187.324H533.49L531.594 188.562V187.417L533.571 186.124H534.737ZM536.714 192.503V191.535L540.14 186.124H540.902V187.548H540.419L537.969 191.427V191.488H542.664V192.503H536.714ZM540.473 194.051V192.208L540.481 191.767V186.124H541.615V194.051H540.473ZM546.914 186.124V194.051H545.714V187.324H545.667L543.771 188.562V187.417L545.748 186.124H546.914Z`,fill:`#838388`}),I.createElement(`path`,{d:`M810.316 189.588V190.59H804.866V189.588H810.316ZM816.063 188.903L815.696 189.7H810.606L810.896 188.903H816.063ZM815.371 190.474L814.995 191.279H810.606L810.896 190.474H815.371ZM817.008 186.801L816.551 187.78C816.407 187.657 816.249 187.544 816.079 187.444C815.909 187.343 815.725 187.263 815.529 187.204C815.333 187.142 815.123 187.111 814.898 187.111C814.486 187.111 814.118 187.222 813.795 187.444C813.473 187.666 813.219 187.998 813.033 188.442C812.85 188.884 812.758 189.433 812.758 190.091C812.758 190.749 812.85 191.299 813.033 191.74C813.219 192.181 813.473 192.513 813.795 192.735C814.118 192.954 814.486 193.064 814.898 193.064C815.126 193.064 815.337 193.034 815.533 192.975C815.732 192.915 815.913 192.838 816.075 192.743C816.24 192.644 816.389 192.541 816.52 192.433L816.989 193.408C816.715 193.656 816.398 193.843 816.036 193.969C815.675 194.096 815.296 194.159 814.898 194.159C814.251 194.159 813.677 193.995 813.176 193.668C812.678
12193.34 812.287 192.873 812.003 192.266C811.719 191.657 811.577 190.932 811.577 190.091C811.577 189.247 811.719 188.521 812.003 187.912C812.287 187.303 812.678 186.835 813.176 186.507C813.677 186.179 814.251 186.015 814.898 186.015C815.311 186.015 815.696 186.084 816.052 186.221C816.408 186.355 816.727 186.548 817.008 186.801ZM821.409 186.124V194.051H820.209V187.324H820.162L818.266 188.562V187.417L820.244 186.124H821.409ZM823.553 194.051V193.184L826.235 190.405C826.522 190.103 826.758 189.838 826.944 189.611C827.132 189.382 827.273 189.163 827.366 188.957C827.459 188.751 827.505 188.531 827.505 188.299C827.505 188.036 827.443 187.809 827.319 187.618C827.195 187.424 827.026 187.276 826.812 187.173C826.598 187.067 826.357 187.014 826.088 187.014C825.805 187.014 825.557 187.072 825.345 187.188C825.134 187.304 824.971 187.468 824.858 187.68C824.744 187.891 824.687 188.139 824.687 188.423H823.545C823.545 187.94 823.656 187.518 823.878 187.157C824.1 186.796 824.405 186.516 824.792 186.317C825.179 186.116 825.619 186.015 826.112 186.015C826.61 186.015 827.048 186.115 827.428 186.313C827.81 186.51 828.108 186.778 828.322 187.119C828.536 187.457 828.643 187.838 828.643 188.264C828.643 188.558 828.588 188.846 828.477 189.127C828.368 189.409 828.179 189.722 827.908 190.068C827.637 190.411 827.26 190.828 826.777 191.318L825.202 192.967V193.025H828.771V194.051H823.553ZM832.997 194.182C832.386 194.18 831.863 194.019 831.43 193.699C830.996 193.379 830.665 192.913 830.435 192.301C830.205 191.69 830.091 190.953 830.091 190.091C830.091 189.232 830.205 188.498 830.435 187.889C830.667 187.28 831 186.815 831.434 186.495C831.87 186.175 832.391 186.015 832.997 186.015C833.604 186.015 834.124 186.177 834.557 186.499C834.991 186.819 835.322 187.284 835.552 187.893C835.784 188.499 835.9 189.232 835.9 190.091C835.9 190.956 835.786 191.694 835.556 192.305C835.326 192.914 834.995 193.38 834.561 193.702C834.128 194.022 833.606 194.182 832.997 194.182ZM832.997 193.149C833.534 193.149 833.953 192.887 834.255 192.363C834.56 191.839 834.712 191.082 834.712 190.091C834.712 189.433 834.642 188.877 834.503 188.423C834.366 187.966 834.169 187.62 833.911 187.386C833.655 187.148 833.351 187.029 832.997 187.029C832.463 187.029 832.044 187.293 831.739 187.819C831.435 188.345 831.281 189.103 831.279 190.091C831.279 190.752 831.347 191.31 831.484 191.767C831.623 192.221 831.821 192.566 832.076 192.801C832.332 193.033 832.639 193.149 832.997 193.149ZM837.764 194.124C837.553 194.124 837.371 194.049 837.218 193.9C837.066 193.748 836.99 193.564 836.99 193.35C836.99 193.139 837.066 192.958 837.218 192.808C837.371 192.656 837.553 192.58 837.764 192.58C837.976 192.58 838.158 192.656 838.31 192.808C838.462 192.958 838.538 193.139 838.538 193.35C838.538 193.492 838.502 193.622 838.43 193.741C838.36 193.857 838.267 193.95 838.151 194.02C838.035 194.089 837.906 194.124 837.764 194.124ZM842.545 194.182C841.934 194.18 841.411 194.019 840.978 193.699C840.544 193.379 840.213 192.913 839.983 192.301C839.753 191.69 839.638 190.953 839.638 190.091C839.638 189.232 839.753 188.498 839.983 187.889C840.215 187.28 840.548 186.815 840.982 186.495C841.418 186.175 841.939 186.015 842.545 186.015C843.152 186.015 843.672 186.177 844.105 186.499C844.539 186.819 844.87 187.284 845.1 187.893C845.332 188.499 845.448 189.232 845.448 190.091C845.448 190.956 845.333 191.694 845.104 192.305C844.874 192.914 844.543 193.38 844.109 193.702C843.675 194.022 843.154 194.182 842.545 194.182ZM842.545 193.149C843.082 193.149 843.501 192.887 843.803 192.363C844.108 191.839 844.26 191.082 844.26 190.091C844.26 189.433 844.19 188.877 844.051 188.423C843.914 187.966 843.717 187.62 843.459 187.386C843.203 187.148 842.899 187.029 842.545 187.029C842.011 187.029 841.592 187.293 841.287 187.819C840.983 188.345 840.829 189.103 840.827 190.091C840.827 190.752 840.895 191.31 841.032 191.767C841.171 192.221 841.369 192.566 841.624 192.801C841.88 193.033 842.187 193.149 842.545 193.149ZM849.5 194.159C848.945 194.159 848.455 194.064 848.029 193.873C847.606 193.682 847.274 193.419 847.034 193.083C846.794 192.748 846.676 192.366 846.678 191.937C846.676 191.602 846.744 191.294 846.883 191.012C847.025 190.729 847.217 190.492 847.46 190.304C847.703 190.113 847.973 189.992 848.273 189.94V189.894C847.878 189.798 847.562 189.587 847.325 189.259C847.087 188.931 846.97 188.555 846.972 188.129C846.97 187.724 847.077 187.362 847.294 187.045C847.513 186.725 847.814 186.473 848.195 186.29C848.577 186.10
127 849.012 186.015 849.5 186.015C849.982 186.015 850.413 186.108 850.793 186.294C851.174 186.477 851.475 186.729 851.694 187.049C851.914 187.366 852.025 187.726 852.027 188.129C852.025 188.555 851.903 188.931 851.663 189.259C851.424 189.587 851.111 189.798 850.727 189.894V189.94C851.024 189.992 851.291 190.113 851.528 190.304C851.768 190.492 851.959 190.729 852.101 191.012C852.245 191.294 852.319 191.602 852.321 191.937C852.319 192.366 852.198 192.748 851.958 193.083C851.718 193.419 851.385 193.682 850.959 193.873C850.536 194.064 850.049 194.159 849.5 194.159ZM849.5 193.18C849.828 193.18 850.111 193.126 850.351 193.017C850.591 192.906 850.777 192.753 850.909 192.557C851.04 192.358 851.107 192.126 851.11 191.86C851.107 191.584 851.035 191.34 850.893 191.128C850.754 190.917 850.564 190.75 850.324 190.629C850.084 190.508 849.809 190.447 849.5 190.447C849.188 190.447 848.91 190.508 848.668 190.629C848.425 190.75 848.234 190.917 848.095 191.128C847.955 191.34 847.887 191.584 847.89 191.86C847.887 192.126 847.95 192.358 848.079 192.557C848.211 192.753 848.398 192.906 848.641 193.017C848.883 193.126 849.17 193.18 849.5 193.18ZM849.5 189.491C849.763 189.491 849.997 189.438 850.2 189.333C850.404 189.227 850.564 189.08 850.68 188.891C850.799 188.703 850.86 188.482 850.862 188.229C850.86 187.982 850.8 187.765 850.684 187.579C850.571 187.393 850.412 187.25 850.208 187.149C850.004 187.046 849.768 186.995 849.5 186.995C849.226 186.995 848.986 187.046 848.78 187.149C848.576 187.25 848.417 187.393 848.304 187.579C848.19 187.765 848.135 187.982 848.137 188.229C848.135 188.482 848.192 188.703 848.308 188.891C848.424 189.08 848.584 189.227 848.788 189.333C848.994 189.438 849.231 189.491 849.5 189.491Z`,fill:`#202022`}),I.createElement(`g`,{clipPath:`url(#clip2_5891_237796)`},I.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M885.427 192.238C885.724 192.549 885.713 193.042 885.402 193.339L881.463 197.096C881.162 197.383 880.689 197.383 880.388 197.096L878.422 195.217C878.111 194.92 878.1 194.427 878.397 194.116C878.694 193.805 879.187 193.794 879.498 194.091L880.926 195.456L884.327 192.212C884.638 191.915 885.131 191.927 885.427 192.238Z`,fill:`#00AC4F`}),I.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M873.187 183.044C872.757 183.044 872.409 183.393 872.409 183.823V196.28C872.409 196.71 872.757 197.058 873.187 197.058H877.858C878.288 197.058 878.637 197.407 878.637 197.837C878.637 198.267 878.288 198.615 877.858 198.615H873.187C871.897 198.615 870.852 197.57 870.852 196.28V183.823C870.852 182.533 871.897 181.487 873.187 181.487H882.53C883.82 181.487 884.865 182.533 884.865 183.823V190.051C884.865 190.481 884.517 190.83 884.087 190.83C883.657 190.83 883.308 190.481 883.308 190.051V183.823C883.308 183.393 882.96 183.044 882.53 183.044H873.187ZM873.187 188.494C873.187 188.064 873.536 187.715 873.966 187.715H878.637C879.067 187.715 879.416 188.064 879.416 188.494C879.416 188.924 879.067 189.273 878.637 189.273H873.966C873.536 189.273 873.187 188.924 873.187 188.494ZM873.966 184.601C873.536 184.601 873.187 184.95 873.187 185.38C873.187 185.81 873.536 186.158 873.966 186.158H881.751C882.181 186.158 882.53 185.81 882.53 185.38C882.53 184.95 882.181 184.601 881.751 184.601H873.966Z`,fill:`#202022`})),I.createElement(`rect`,{x:276.82,y:217.245,width:613,height:.778547,fill:`#F1F1F3`}),I.createElement(`rect`,{width:613.495,height:56.0554,transform:`translate(276.82 218.079)`,fill:`white`}),I.createElement(`rect`,{x:279.934,y:233.65,width:24.9135,height:24.9135,rx:6.22837,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M289.148 247.404C288.79 247.404 288.499 247.694 288.499 248.053C288.499 248.411 288.79 248.701 289.148 248.701H290.446C290.804 248.701 291.095 248.411 291.095 248.053C291.095 247.694 290.804 247.404 290.446 247.404H289.148Z`,fill:`#838388`}),I.createElement(`path`,{d:`M291.743 248.053C291.743 247.694 292.034 247.404 292.392 247.404H293.69C294.048 247.404 294.339 247.694 294.339 248.053C294.339 248.411 294.048 248.701 293.69 248.701H292.392C292.034 248.701 291.743 248.411 291.743 248.053Z`,fill:`#838388`}),I.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M287.526 240.916C286.63 240.916 285.904 241.642 285.904 242.538V249.675C285.904 250.57 286.63 251.297 287.526 251.297H297.258C298.154 251.297 298.88 250.57 298.88 249.675V242.538C298.88 241.642 298.154 240.916 297.258 240.916H287.526ZM297.582 244.16V242.538C297.582 242.359 297.437 242.214 297.258 242.214H287.526C287.347 242.214 287.202 242.359 287.202 242.538V244.16H297.582ZM287.202 245.458H297.582V249.675C297.582 249.854 297.437 249.999 297.258 249.999H287.526C287.347 249.999 287.202 249.854 287.202 249.675V245.458Z`,fill:`#838388`}),I.createElement(`path`,{d:`M315.06 249.765V241.838H319.976V242.8
1267H316.256V245.282H319.624V246.308H316.256V249.765H315.06ZM322.511 241.838V249.765H321.354V241.838H322.511ZM324.068 249.765V243.819H325.226V249.765H324.068ZM324.653 242.902C324.451 242.902 324.279 242.835 324.134 242.701C323.992 242.564 323.921 242.401 323.921 242.213C323.921 242.022 323.992 241.86 324.134 241.725C324.279 241.589 324.451 241.52 324.653 241.52C324.854 241.52 325.026 241.589 325.167 241.725C325.312 241.86 325.384 242.022 325.384 242.213C325.384 242.401 325.312 242.564 325.167 242.701C325.026 242.835 324.854 242.902 324.653 242.902ZM327.696 243.819L329.008 246.134L330.332 243.819H331.598L329.744 246.792L331.613 249.765H330.347L329.008 247.543L327.673 249.765H326.403L328.253 246.792L326.426 243.819H327.696ZM332.879 249.765V241.838H334.036V244.783H334.106C334.173 244.659 334.27 244.516 334.396 244.354C334.522 244.191 334.698 244.049 334.922 243.928C335.147 243.804 335.444 243.742 335.813 243.742C336.293 243.742 336.721 243.863 337.098 244.106C337.474 244.348 337.77 244.698 337.984 245.155C338.201 245.611 338.309 246.161 338.309 246.804C338.309 247.446 338.202 247.997 337.988 248.456C337.774 248.913 337.48 249.265 337.105 249.513C336.731 249.758 336.304 249.881 335.824 249.881C335.463 249.881 335.168 249.82 334.938 249.699C334.711 249.578 334.533 249.436 334.404 249.273C334.275 249.111 334.175 248.966 334.106 248.84H334.009V249.765H332.879ZM334.013 246.792C334.013 247.21 334.073 247.576 334.195 247.891C334.316 248.206 334.491 248.453 334.721 248.631C334.951 248.806 335.232 248.894 335.565 248.894C335.911 248.894 336.2 248.802 336.432 248.619C336.664 248.433 336.84 248.182 336.958 247.864C337.08 247.547 337.14 247.189 337.14 246.792C337.14 246.4 337.
12081 246.048 336.962 245.735C336.846 245.423 336.671 245.177 336.436 244.996C336.204 244.815 335.913 244.725 335.565 244.725C335.229 244.725 334.946 244.812 334.713 244.984C334.484 245.157 334.31 245.399 334.191 245.708C334.072 246.018 334.013 246.379 334.013 246.792ZM343.375 247.299V243.819H344.536V249.765H343.398V248.735H343.336C343.199 249.052 342.98 249.317 342.678 249.529C342.379 249.738 342.006 249.842 341.56 249.842C341.178 249.842 340.84 249.758 340.545 249.59C340.254 249.42 340.024 249.169 339.856 248.836C339.691 248.503 339.609 248.091 339.609 247.601V243.819H340.766V247.462C340.766 247.867 340.878 248.189 341.103 248.429C341.327 248.669 341.619 248.789 341.978 248.789C342.194 248.789 342.41 248.735 342.624 248.627C342.841 248.518 343.02 248.354 343.162 248.135C343.306 247.916 343.377 247.637 343.375 247.299ZM350.546 245.271L349.497 245.457C349.453 245.322 349.384 245.195 349.288 245.073C349.195 244.952 349.069 244.853 348.909 244.775C348.749 244.698 348.549 244.659 348.309 244.659C347.981 244.659 347.708 244.733 347.488 244.88C347.269 245.024 347.159 245.212 347.159 245.441C347.159 245.64 347.233 245.8 347.38 245.921C347.527 246.042 347.764 246.142 348.092 246.219L349.037 246.436C349.584 246.562 349.991 246.757 350.26 247.02C350.528 247.284 350.662 247.625 350.662 248.046C350.662 248.402 350.559 248.72 350.353 248.998C350.149 249.274 349.864 249.491 349.497 249.649C349.133 249.806 348.711 249.885 348.232 249.885C347.566 249.885 347.023 249.743 346.602 249.459C346.181 249.172 345.923 248.766 345.828 248.24L346.946 248.069C347.016 248.361 347.159 248.582 347.376 248.731C347.593 248.878 347.875 248.952 348.224 248.952C348.603 248.952 348.906 248.873 349.133 248.716C349.36 248.556 349.474 248.361 349.474 248.131C349.474 247.945 349.404 247.789 349.265 247.663C349.128 247.536 348.918 247.441 348.634 247.376L347.628 247.156C347.073 247.029 346.663 246.828 346.397 246.552C346.134 246.276 346.002 245.926 346.002 245.503C346.002 245.152 346.1 244.845 346.296 244.582C346.492 244.319 346.763 244.114 347.109 243.966C347.455 243.817 347.851 243.742 348.297 243.742C348.94 243.742 349.446 243.881 349.815 244.16C350.184 244.436 350.427 244.806 350.546 245.271Z`,fill:`#202022`}),I.createElement(`path`,{d:`M511.716 248.651C511.403 248.651 511.118 248.575 510.86 248.423C510.602 248.268 510.396 248.061 510.241 247.803C510.089 247.545 510.013 247.26 510.013 246.948C510.013 246.633 510.089 246.348 510.241 246.093C510.396 245.835 510.602 245.629 510.86 245.477C511.118 245.322 511.403 245.245 511.716 245.245C512.03 245.245 512.316 245.322 512.571 245.477C512.829 245.629 513.034 245.835 513.186 246.093C513.341 246.348 513.419 246.633 513.419 246.948C513.419 247.26 513.341 247.545 513.186 247.803C513.034 248.061 512.829 248.268 512.571 248.423C512.316 248.575 512.03 248.651 511.716 248.651ZM517.485 248.651C517.173 248.651 516.887 248.575 516.629 248.423C516.371 248.268 516.165 248.061 516.01 247.803C515.858 247.545 515.782 247.26 515.782 246.948C515.782 246.633 515.858 246.348 516.01 246.093C516.165 245.835 516.371 245.629 516.629 245.477C516.887 245.322 517.173 245.245 517.485 245.245C517.8 245.245 518.085 245.322 518.34 245.477C518.598 245.629 518.803 245.835 518.956 246.093C519.11 246.348 519.188 246.633 519.188 246.948C519.188 247.26 519.11 247.545 518.956 247.803C518.803 248.061 518.598 248.268 518.34 248.423C518.085 248.575 517.8 248.651 517.485 248.651Z`,fill:`#838388`}),I.createElement(`path`,{d:`M524.537 248.558V247.591L527.963 242.179H528.725V243.604H528.242L525.792 247.482V247.544H530.487V248.558H524.537ZM528.296 250.106V248.264L528.304 247.823V242.179H529.438V250.106H528.296ZM534.737 242.179V250.106H533.537V243.379H533.49L531.594 244.618V243.472L533.571 242.179H534.737ZM536.714 248.558V247.591L540.14 242.179H540.902V243.604H540.419L537.969 247.482V247.544H542.664V248.558H536.714ZM540.473 250.106V248.264L540.481 247.823V242.179H541.615V250.106H540.473ZM546.914 242.179V250.106H545.714V243.379H545.667L543.771 244.618V243.472L545.748 242.179H546.914Z`,fill:`#838388`}),I.createElement(`path`,{d:`M817.777 245.644V246.646H812.327V245.644H817.777ZM823.525 244.959L823.157 245.756H818.068L818.358 244.959H823.525ZM822.832 246.53L822.457 247.335H818.068L818.358 246.53H822.832ZM824.47 242.857L824.013 243.836C823.868 243.712 823.711 243.6 823.541 243.499C823.37 243.399 823.187 243.319 822.991 243.259C822.795 243.197 822.585 243.166 822.36 243.166C821.947 243.166 821.579 243.277 821.257 243.499C820.934 243.721 820.68 244.054 820.494 244.498C820.311 244.939 820.22 245.489 820.22 246.147C820.22 246.805 820.311 247.354 820.494 247.796C820.68 248.237 820.934 248.569 821.257 248.79C821.579 249.01 821.947 249.119 822.36 249.119C822.587 249.119 822.799 249.09 822.995 249.03C823.193 248.971 823.374 248.894 823.537 248.798C823.702 248.7 823.85 248.597 823.982 248.489L824.45 249.464C824.177 249.712 823.859 249.899 823.498 250.025C823.137 250.152 822.757 250.215 822.36 250.215C821.712 250.215 821.138 250.051 820.638 249.723C820.14 249.396 819.749 248.928 819.465 248.322C819.181 247.713 819.039 246.988 819.039 246.147C819.039 245.303 819.181 244.577 819.465 243.968C819.749 243.359 820.14 242.89 820.638 242.563C821.138 242.235 821.712 242.071 822.36 242.071C822.773 242.071 823.157 242.139 823.513 242.276C823.87 242.41 824.188 242.604 824.47 242.857ZM825.696 248.558V247.591L829.122 242.179H829.884V243.604H829.401L826.951 247.482V247.544H831.646V248.558H825.696ZM829.455 250.106V248.264L829.463 247.823V242.179H830.597V250.106H829.455ZM835.754 250.238C835.143 250.235 834.62 250.074 834.187 249.754C833.753 249.434 833.422 248.968 833.192 248.357C832.962 247.745 832.847 247.009 832.847 246.147C832.847 245.288 832.962 244.553 833.192 243.944C833.424 243.335 833.757 242.871 834.191 242.551C834.627 242.231 835.148 242.071 835.754 242.071C836.361 242.071 836.881 242.232 837.314 242.555C837.748 242.875 838.079 243.339 838.309 243.948C838.541 244.555 838.657 245.288 838.657 246.147C838.657 247.011 838.542 247.749 838.313 248.361C838.083 248.97 837.752 249.436 837.318 249.758C836.884 250.078 836.363 250.238 835.754 250.238ZM835.754 249.205C836.291 249.205 836.71 248.943 837.012 248.419C837.317 247.895 837.469 247.138 837.469 246.147C837.469 245.489 837.399 244.933 837.26 244.479C837.123 244.022 836.926 243.676 836.668 243.441C836.412 243.204 836.108 243.085 835.754 243.085C835.22 243.085 834.801 243.348 834.496 243.875C834.192 244.401 834.038 245.159 834.036 246.147C834.036 246.807 834.104 247.366 834.241 247.823C834.38 248.277 834.578 248.621 834.833 248.856C835.089 249.088 835.396 249.205 835.754 249.205ZM840.521 250.18C840.309 250.18 840.127 250.105 839.975 249.955C839.823 249.803 839.747 249.62 839.747 249.406C839.747 249.194 839.823 249.014 839.975 248.864C840.127 248.712 840.309 248.636 840.521 248.636C840.733 248.636 840.914 248.712 841.067 248.864C841.219 249.014 841.295 249.194 841.295 249.406C841.295 249.548 841.259 249.678 841.187 249.797C841.117 249.913 841.024 250.006 840.908 250.075C840.792 250.145 840.663 250.18 840.521 250.18ZM844.879 242.179V250.106H843.679V243.379H843.633L841.736 244.618V243.472L843.714 242.179H844.879ZM847.024 250.106V249.239L849.706 246.46C849.992 246.158 850.228 245.894 850.414 245.667C850.603 245.437 850.743 245.219 850.836 245.013C850.929 244.806 850.975 244.587 850.975 244.355C850.975 244.092 850.914 243.864 850.79 243.673C850.666 243.48 850.497 243.332 850.283 243.228C850.068 243.123 849.827 243.07 849.559 243.07C849.275 243.07 849.027 243.128 848.816 243.244C848.604 243.36 848.442 243.524 848.328 243.735C848.214 243.947 848.158 244.195 848.158 244.479H847.016C847.016 243.996 847.127 243.574 847.349 243.213C847.571 242.852 847.875 242.572 848.262 242.373C848.649 242.172 849.089 242.071 849.582 242.071C850.08 242.071 850.519 242.17 850.898 242.369C851.28 242.565 851.578 242.834 851.792 243.174C852.006 243.512 852.113 243.894 852.113 244.32C852.113 244.614 852.058 244.902 851.947 245.183C851.839 245.464 851.649 245.778 851.378 246.124C851.107 246.467 850.73 246.884 850.248 247.374L848.672 249.023V249.081H852.241V250.106H847.024Z`,fill:`#202022`}),I.createElement(`g`,{clipPath:`url(#clip3_5891_237796)`},I.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M885.427 248.294C885.724 248.605 885.713 249.098 885.402 249.395L881.463 253.152C881.162 253.439 880.689 253.439 880.388 253.151L878.422 251.273C878.111 250.976 878.1 250.483 878.397 250.172C878.694 249.861 879.187 249.85 879.498 250.147L880.926 251.512L884.327 248.268C884.638 247.971 885.131 247.983 885.427 248.294Z`,fill:`#00AC4F`}),I.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M873.187 239.1C872.757 239.1 872.409 239.449 872.409 239.879V252.335C872.409 252.765 872.757 253.114 873.187 253.114H877.858C878.288 253.114 878.637 253.462 878.637 253.892C878.637 254.322 878.288 254.671 877.858 254.671
12H873.187C871.897 254.671 870.852 253.625 870.852 252.335V239.879C870.852 238.589 871.897 237.543 873.187 237.543H882.53C883.82 237.543 884.865 238.589 884.865 239.879V246.107C884.865 246.537 884.517 246.886 884.087 246.886C883.657 246.886 883.308 246.537 883.308 246.107V239.879C883.308 239.449 882.96 239.1 882.53 239.1H873.187ZM873.187 244.55C873.187 244.12 873.536 243.771 873.966 243.771H878.637C879.067 243.771 879.416 244.12 879.416 244.55C879.416 244.98 879.067 245.328 878.637 245.328H873.966C873.536 245.328 873.187 244.98 873.187 244.55ZM873.966 240.657C873.536 240.657 873.187 241.006 873.187 241.436C873.187 241.865 873.536 242.214 873.966 242.214H881.751C882.181 242.214 882.53 241.865 882.53 241.436C882.53 241.006 882.181 240.657 881.751 240.657H873.966Z`,fill:`#202022`})),I.createElement(`mask`,{id:`path-35-inside-2_5891_237796`,fill:`white`},I.createElement(`path`,{d:`M9 9H258.135V606.924H9V9Z`})),I.createElement(`path`,{d:`M257.356 9V606.924H258.913V9H257.356Z`,fill:`#F1F1F3`,mask:`url(#path-35-inside-2_5891_237796)`}),I.createElement(`mask`,{id:`path-37-inside-3_5891_237796`,fill:`white`},I.createElement(`path`,{d:`M9 9H258.135V266.021H9V9Z`})),I.createElement(`path`,{d:`M258.135 265.242H9V266.799H258.135V265.242Z`,fill:`#F1F1F3`,mask:`url(#path-37-inside-3_5891_237796)`}),I.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M43.0647 39.8234C43.3181 39.57 43.3181 39.1592 43.0647 38.9058C42.8114 38.6525 42.4006 38.6525 42.1472 38.9058L38.2545 42.7986C38.0011 43.0519 38.0011 43.4627 38.2545 43.7161L42.1472 47.6088C42.4006 47.8622 42.8114 47.8622 43.0647 47.6088C43.3181 47.3555 43.3181 46.9447 43.0647 46.6913L40.2796 43.9061H47.7958C48.1541 43.9061 48.4446 43.6157 48.4446 43.2573C48.4446 42.899 48.1541 42.6086 47.7958 42.6086H40.2796L43.0647 39.8234Z`,fill:`#838388`}),I.createElement(`rect`,{x:34.3033,y:68.5592,width:198.529,height:120.675,rx:5.8391,fill:`black`}),I.createElement(`rect`,{x:34.3033,y:68.5592,width:198.529,height:120.675,rx:5.8391,stroke:`url(#paint0_radial_5891_237796)`,strokeWidth:.778547}),I.createElement(`rect`,{x:34.3033,y:68.5592,width:198.529,height:120.675,rx:5.8391,stroke:`url(#paint1_radial_5891_237796)`,strokeWidth:.778547}),I.createElement(`rect`,{x:34.3033,y:68.5592,width:198.529,height:120.675,rx:5.8391,stroke:`url(#paint2_radial_5891_237796)`,strokeWidth:.778547}),I.createElement(`path`,{d:`M49.7609 93.5787C49.165 93.5787 48.5946 93.4952 48.0496 93.328C47.5047 93.1536 47.0723 92.932 46.7526 92.6632L47.2431 91.5623C47.5483 91.8021 47.9261 92.0019 48.3766 92.1618C48.8271 92.3216 49.2886 92.4016 49.7609 92.4016C50.1605 92.4016 50.4839 92.358 50.731 92.2708C50.978 92.1836 51.1597 92.0673 51.2759 91.922C51.3922 91.7694 51.4503 91.5986 51.4503 91.4097C51.4503 91.1772 51.3668 90.9919 51.1996 90.8538C51.0325 90.7085 50.8145 90.5959 50.5457 90.5159C50.2841 90.4287 49.9898 90.3488 49.6628 90.2761C49.3431 90.2035 49.0197 90.1199 48.6927 90.0254C48.373 89.9237 48.0787 89.7965 47.8098 89.6439C47.5483 89.4841 47.3339 89.2734 47.1668 89.0118C46.9996 88.7502 46.9161 88.4159 46.9161 88.009C46.9161 87.5948 47.0251 87.217 47.2431 86.8754C47.4683 86.5266 47.8062 86.2505 48.2567 86.0471C48.7145 85.8363 49.2922 85.731 49.9898 85.731C50.4476 85.731 50.9017 85.7891 51.3522 85.9054C51.8028 86.0216 52.1951 86.1888 52.5294 86.4068L52.0825 87.5076C51.741 87.3042 51.3886 87.1552 51.0252 87.0607C50.6619 86.959 50.3131 86.9081 49.9789 86.9081C49.5865 86.9081 49.2668 86.9554 49.0197 87.0498C48.7799 87.1443 48.6019 87.2678 48.4856 87.4204C48.3766 87.573 48.3221 87.7474 48.3221 87.9436C48.3221 88.1761 48.4021 88.3651 48.5619 88.5104C48.7291 88.6484 48.9434 88.7574 49.205 88.8374C49.4739 88.9173 49.7718 88.9972 50.0988 89.0772C50.4258 89.1498 50.7491 89.2334 51.0688 89.3279C51.3958 89.4223 51.6901 89.5459 51.9517 89.6984C52.2206 89.851 52.4349 90.0581 52.5948 90.3197C52.7619 90.5813 52.8455 90.9119 52.8455 91.3116C52.8455 91.7185 52.7329 92.0964 52.5076 92.4452C52.2896 92.7867 51.9517 93.0628 51.4939 93.2735C51.0361 93.477 50.4585 93.5787 49.7609 93.5787ZM57.346 93.546C56.8737 93.546 56.4414 93.437 56.049 93.219C55.6638 93.001 55.355 92.6741 55.1225 92.2381C54.8972 91.7948 54.7846 91.2353 54.7846 90.5595C54.7846 89.8765 54.8936 89.317 55.1116 88.881C55.3369 88.445 55.642 88.1216 56.0272 87.9109C56.4123 87.6929 56.8519 87.5839 57.346 87.5839C57.9201 87.5839 58.4251 87.7074 58.8611 87.9545C59.3043 88.2016 59.6531 88.5467 59.9074 88.99C60.169 89.4332 60.2998 89.9564 60.2998 90.5595C60.2998 91.1626 60.169 91.6894 59.9074 92.14C59.6531 92.5832 59.3043 92.9284 58.8611 93.1754C58.4251 93.4225 57.9201 93.546 57.346 93.546ZM54.1197 95.5843V87.6493H55.4168V89.0227L55.3732 90.5704L55.4822 92.1182V95.5843H54.1197ZM57.1934 92.3798C57.5204 92.3798 57.8111 92.3071 58.0654 92.1618C58.327 92.0164 58.5341 91.8057 58.6867 91.5296C58.8393 91.2535 58.9156 90.9301 58.9156 90.5595C58.9156 90.1817 58.8393 89.8583 58.6867 89.5894C58.5341 89.3133 58.327 89.1026 58.0654 88.9573C57.8111 88.8119 57.5204 88.7393 57.1934 88.7393C56.8664 88.7393 56.5721 88.8119 56.3106 88.9573C56.049 89.1026 55.8419 89.3133 55.6893 89.5894C55.5367 89.8583 55.4604 90.1817 55.4604 90.5595C55.4604 90.9301 55.5367 91.2535 55.6893 91.5296C55.8419 91.8057 56.049 92.0164 56.3106 92.1618C56.5721 92.3071 56.8664 92.3798 57.1934 92.3798ZM64.3278 93.546C63.6811 93.546 63.1143 93.4189 62.6274 93.1645C62.1478 92.9029 61.7736 92.5469 61.5048 92.0964C61.2432 91.6459 61.1124 91.1336 61.1124 90.5595C61.1124 89.9782 61.2395 89.4659 61.4939 89.0227C61.7554 88.5721 62.1115 88.2197 62.562 87.9654C63.0198 87.7111 63.5394 87.5839 64.1207 87.5839C64.6875 87.5839 65.1925 87.7074 65.6357 87.9545C66.079 88.2016 66.4278 88.5503 66.6821 89.0009C66.9364 89.4514 67.0636 89.9818 67.0636 90.5922C67.0636 90.6503 67.0599 90.7157 67.0527 90.7884C67.0527 90.8611 67.049 90.9301 67.0418 90.9955H62.1914V90.0908H66.3224L65.7883 90.3742C65.7956 90.04 65.7266 89.7457 65.5812 89.4914C65.4359 89.237 65.2361 89.0372 64.9817 88.8919C64.7347 88.7465 64.4477 88.6739 64.1207 88.6739C63.7864 88.6739 63.4921 88.7465 63.2378 88.8919C62.9907 89.0372 62.7945 89.2407 62.6492 89.5023C62.5112 89.7566 62.4421 90.0581 62.4421 90.4069V90.6249C62.4421 90.9737 62.5221 91.2825 62.6819 91.5514C62.8418 91.8202 63.067 92.0273 63.3577 92.1727C63.6484 92.318 63.9826 92.3907 64.3605 92.3907C64.6875 92.3907 64.9817 92.3398 65.2433 92.2381C65.5049 92.1363 65.7375 91.9765 65.9409 91.7585L66.6712 92.5978C66.4096 92.9029 66.079 93.1391 65.6793 93.3062C65.2869 93.4661 64.8364 93.546 64.3278 93.546ZM71.6749 87.5839C72.14 87.5839 72.5541 87.6747 72.9175 87.8564C73.288 88.0381 73.5787 88.3178 73.7894 88.6957C74.0002 89.0663 74.1055 89.5459 74.1055 90.1344V93.4697H72.7431V90.3088C72.7431 89.7929 72.6195 89.4078 72.3725 89.1535C72.1327 88.8991 71.7948 88.772 71.3588 88.772C71.0391 88.772 70.7557 88.8374 70.5086 88.9682C70.2616 89.099 70.069 89.2952 69.931 89.5568C69.8002 89.8111 69.7348 90.1344 69.7348 90.5268V93.4697H68.3723V87.6493H69.6694V89.2189L69.4405 88.7393C69.6439 88.3
12687 69.9382 88.0853 70.3233 87.8891C70.7157 87.6856 71.1662 87.5839 71.6749 87.5839ZM78.3078 93.546C77.7483 93.546 77.2433 93.4225 76.7928 93.1754C76.3495 92.9211 76.0008 92.5723 75.7464 92.1291C75.4921 91.6858 75.3649 91.1626 75.3649 90.5595C75.3649 89.9564 75.4921 89.4332 75.7464 88.99C76.0008 88.5467 76.3495 88.2016 76.7928 87.9545C77.2433 87.7074 77.7483 87.5839 78.3078 87.5839C78.7947 87.5839 79.2307 87.6929 79.6158 87.9109C80.0009 88.1216 80.3061 88.445 80.5314 88.881C80.7566 89.317 80.8693 89.8765 80.8693 90.5595C80.8693 91.2353 80.7603 91.7948 80.5423 92.2381C80.3243 92.6741 80.0227 93.001 79.6376 93.219C79.2525 93.437 78.8092 93.546 78.3078 93.546ZM78.4713 92.3798C78.7983 92.3798 79.089 92.3071 79.3433 92.1618C79.6049 92.0164 79.812 91.8057 79.9646 91.5296C80.1245 91.2535 80.2044 90.9301 80.2044 90.5595C80.2044 90.1817 80.1245 89.8583 79.9646 89.5894C79.812 89.3133 79.6049 89.1026 79.3433 88.9573C79.089 88.8119 78.7983 88.7393 78.4713 88.7393C78.1444 88.7393 77.8501 88.8119 77.5885 88.9573C77.3341 89.1026 77.1271 89.3133 76.9672 89.5894C76.8146 89.8583 76.7383 90.1817 76.7383 90.5595C76.7383 90.9301 76.8146 91.2535 76.9672 91.5296C77.1271 91.8057 77.3341 92.0164 77.5885 92.1618C77.8501 92.3071 78.1444 92.3798 78.4713 92.3798ZM80.2371 93.4697V92.0964L80.2916 90.5486L80.1826 89.0009V85.3822H81.5341V93.4697H80.2371ZM86.5537 93.546C86.0596 93.546 85.62 93.437 85.2348 93.219C84.8497 93.001 84.5445 92.6741 84.3193 92.2381C84.1013 91.7948 83.9923 91.2353 83.9923 90.5595C83.9923 89.8765 84.1049 89.317 84.3302 88.881C84.5627 88.445 84.8715 88.1216 85.2566 87.9109C85.649 87.6929 86.0814 87.5839 86.5537 87.5839C87.1277 87.5839 87.6328 87.7074 88.0687 87.9545C88.512 88.2016 88.8608 88.5467 89.1151 88.99C89.3767 89.4332 89.5075 89.9564 89.5075 90.5595C89.5075 91.1626 89.3767 91.6858 89.1151 92.1291C88.8608 92.5723 88.512 92.9211 88.0687 93.1754C87.6328 93.4225 87.1277 93.546 86.5537 93.546ZM83.3274 93.4697V85.3822H84.6899V89.0009L84.5809 90.5486L84.6245 92.0964V93.4697H83.3274ZM86.4011 92.3798C86.7281 92.3798 87.0187 92.3071 87.2731 92.1618C87.5347 92.0164 87.7418 91.8057 87.8944 91.5296C88.0469 91.2535 88.1232 90.9301 88.1232 90.5595C88.1232 90.1817 88.0469 89.8583 87.8944 89.5894C87.7418 89.3133 87.5347 89.1026 87.2731 88.9573C87.0187 88.8119 86.7281 88.7393 86.4011 88.7393C86.0741 88.7393 85.7798 88.8119 85.5182 88.9573C85.2566 89.1026 85.0495 89.3133 84.8969 89.5894C84.7444 89.8583 84.6681 90.1817 84.6681 90.5595C84.6681 90.9301 84.7444 91.2535 84.8969 91.5296C85.0495 91.8057 85.2566 92.0164 85.5182 92.1618C85.7798 92.3071 86.0741 92.3798 86.4011 92.3798ZM94.3111 93.4697V92.2926L94.2348 92.0419V89.9818C94.2348 89.5822 94.1149 89.2734 93.8751 89.0554C93.6353 88.8301 93.272 88.7175 92.7851 88.7175C92.4582 88.7175 92.1348 88.7683 91.8151 88.8701C91.5026 88.9718 91.2374 89.1135 91.0194 89.2952L90.4853 88.3033C90.7978 88.0635 91.1684 87.8855 91.5971 87.7692C92.0331 87.6457 92.4836 87.5839 92.9486 87.5839C93.7915 87.5839 94.4419 87.7874 94.8997 88.1943C95.3647 88.5939 95.5973 89.2152 95.5973 90.0581V93.4697H94.3111ZM92.48 93.546C92.044 93.546 91.6625 93.4734 91.3355 93.328C91.0085 93.1754 90.7542 92.9683 90.5725 92.7068C90.3981 92.4379 90.3109 92.1363 90.3109 91.8021C90.3109 91.4751 90.3872 91.1808 90.5398 90.9192C90.6997 90.6576 90.9576 90.4505 91.3137 90.2979C91.6697 90.1453 92.1421 90.069 92.7306 90.069H94.4201V90.9737H92.8287C92.3637 90.9737 92.0512 91.05 91.8914 91.2026C91.7315 91.3479 91.6516 91.5296 91.6516 91.7476C91.6516 91.9946 91.7497 92.1908 91.9459 92.3362C92.1421 92.4815 92.4146 92.5542 92.7633 92.5542C93.0976 92.5542 93.3955 92.4779 93.6571 92.3253C93.926 92.1727 94.1185 91.9474 94.2348 91.6495L94.4637 92.467C94.3329 92.8085 94.0967 93.0737 93.7552 93.2626C93.421 93.4516 92.9959 93.546 92.48 93.546ZM99.1442 93.546C98.6574 93.546 98.1887 93.4843 97.7382 93.3607C97.2949 93.2299 96.9425 93.0737 96.6809 92.892L97.2041 91.8566C97.4657 92.0237 97.7782 92.1618 98.1415 92.2708C98.5048 92.3798 98.8681 92.4343 99.2314 92.4343C99.6602 92.4343 99.969 92.3761 100.158 92.2599C100.354 92.1436 100.452 91.9874 100.452 91.7912C100.452 91.6313 100.387 91.5114 100.256 91.4315C100.125 91.3443 99.9544 91.2789 99.7437 91.2353C99.533 91.1917 99.2968 91.1517 99.0352 91.1154C98.7809 91.0791 98.523 91.0318 98.2614 90.9737C98.007 90.9083 97.7745 90.8175 97.5638 90.7012C97.3531 90.5777 97.1823 90.4142 97.0515 90.2107C96.9207 90.0073 96.8553 89.7384 96.8553 89.4042C96.8553 89.0336 96.9607 88.7138 97.1714 88.445C97.3821 88.1689 97.6764 87.9581 98.0543 87.8128C98.4394 87.6602 98.8935 87.5839 99.4167 87.5839C99.8091 87.5839 100.205 87.6275 100.605 87.7147C101.004 87.8019 101.335 87.9254 101.597 88.0853L101.073 89.1208C100.797 88.9536 100.518 88.841 100.234 88.7829C99.9581 88.7175 99.682 88.6848 99.4058 88.6848C98.9916 88.6848 98.6828 88.7465 98.4794 88.8701C98.2832 88.9936 98.1851 89.1498 98.1851 89.3388C98.1851 89.5132 98.2505 89.6439 98.3813 89.7311C98.5121 89.8183 98.6828 89.8874 98.8935 89.9382C99.1043 89.9891 99.3368 90.0327 99.5911 90.069C99.8527 90.0981 100.111 90.1453 100.365 90.2107C100.619 90.2761 100.852 90.367 101.063 90.4832C101.281 90.5922 101.455 90.7484 101.586 90.9519C101.717 91.1554 101.782 91.4206 101.782 91.7476C101.782 92.1109 101.673 92.427 101.455 92.6959C101.244 92.9647 100.943 93.1754 100.55 93.328C100.158 93.4734 99.6892 93.546 99.1442 93.546ZM105.691 93.546C105.044 93.546 104.478 93.4189 103.991 93.1645C103.511 92.9029 103.137 92.5469 102.868 92.0964C102.606 91.6459 102.476 91.1336 102.476 90.5595C102.476 89.9782 102.603 89.4659 102.857 89.0227C103.119 88.5721 103.475 88.2197 103.925 87.9654C104.383 87.7111 104.903 87.5839 105.484 87.5839C106.051 87.5839 106.556 87.7074 106.999 87.9545C107.442 88.2016 107.791 88.5503 108.045 89.0009C108.3 89.4514 108.427 89.9818 108.427 90.5922C108.427 90.6503 108.423 90.7157 108.416 90.7884C108.416 90.8611 108.412 90.9301 108.405 90.9955H103.555V90.0908H107.686L107.152 90.3742C107.159 90.04 107.09 89.7457 106.945 89.4914C106.799 89.237 106.599 89.0372 106.345 88.8919C106.098 88.7465 105.811 88.6739 105.484 88.6739C105.15 88.6739 104.855 88.7465 104.601 88.8919C104.354 89.0372 104.158 89.2407 104.013 89.5023C103.874 89.7566 103.805 90.0581 103.805 90.4069V90.6249C103.805 90.9737 103.885 91.2825 104.045 91.5514C104.205 91.8202 104.43 92.0273 104.721 92.1727C105.012 92.318 105.346 92.3907 105.724 92.3907C106.051 92.3907 106.345 92.3398 106.607 92.2381C106.868 92.1363 107.101 91.9765 107.304 91.7585L108.035 92.5978C107.773 92.9029 107.442 93.1391 107.043 93.3062C106.65 93.4661 106.2 93.546 105.691 93.546Z`,fill:`white`}),I.createElement(`g`,{filter:`url(#filter0_d_5891_237796)`},I.createElement(`path`,{d:`M47.8379 173.109C47.6884 173.109 47.5483 173.075 47.4175 173.006C47.2867 172.932 47.1808 172.829 47.0998 172.698C47.0251 172.567 46.9877 172.418 46.9877 172.25C46.9877 172.088 47.0251 171.944 47.0998 171.82C47.1808 171.689 47.2867 171.586 47.4175 171.512C47.5483 171.437 47.6884 171.399 47.8379 171.399C47.9936 171.399 48.1337 171.437 48.2583 171.512C48.3891 171.586 48.4919 171.689 48.5666 171.82C48.6413
12171.944 48.6787 172.088 48.6787 172.25C48.6787 172.418 48.6413 172.567 48.5666 172.698C48.4919 172.829 48.3891 172.932 48.2583 173.006C48.1337 173.075 47.9936 173.109 47.8379 173.109ZM53.0179 173.109C52.8684 173.109 52.7283 173.075 52.5975 173.006C52.4667 172.932 52.3608 172.829 52.2798 172.698C52.2051 172.567 52.1677 172.418 52.1677 172.25C52.1677 172.088 52.2051 171.944 52.2798 171.82C52.3608 171.689 52.4667 171.586 52.5975 171.512C52.7283 171.437 52.8684 171.399 53.0179 171.399C53.1736 171.399 53.3137 171.437 53.4383 171.512C53.5691 171.586 53.6719 171.689 53.7466 171.82C53.8213 171.944 53.8587 172.088 53.8587 172.25C53.8587 172.418 53.8213 172.567 53.7466 172.698C53.6719 172.829 53.5691 172.932 53.4383 173.006C53.3137 173.075 53.1736 173.109 53.0179 173.109ZM58.1979 173.109C58.0484 173.109 57.9083 173.075 57.7775 173.006C57.6467 172.932 57.5408 172.829 57.4598 172.698C57.3851 172.567 57.3477 172.418 57.3477 172.25C57.3477 172.088 57.3851 171.944 57.4598 171.82C57.5408 171.689 57.6467 171.586 57.7775 171.512C57.9083 171.437 58.0484 171.399 58.1979 171.399C58.3536 171.399 58.4937 171.437 58.6183 171.512C58.7491 171.586 58.8519 171.689 58.9266 171.82C59.0014 171.944 59.0387 172.088 59.0387 172.25C59.0387 172.418 59.0014 172.567 58.9266 172.698C58.8519 172.829 58.7491 172.932 58.6183 173.006C58.4937 173.075 58.3536 173.109 58.1979 173.109ZM63.3779 173.109C63.2284 173.109 63.0883 173.075 62.9575 173.006C62.8267 172.932 62.7208 172.829 62.6399 172.698C62.5651 172.567 62.5277 172.418 62.5277 172.25C62.5277 172.088 62.5651 171.944 62.6399 171.82C62.7208 171.689 62.8267 171.586 62.9575 171.512C63.0883 171.437 63.2284 171.399 63.3779 171.399C63.5336 171.399 63.6738 171.437 63.7983 171.512C63.9291 171.586 64.0319 171.689 64.1066 171.82C64.1814 171.944 64.2187 172.088 64.2187 172.25C64.2187 172.418 64.1814 172.567 64.1066 172.698C64.0319 172.829 63.9291 172.932 63.7983 173.006C63.6738 173.075 63.5336 173.109 63.3779 173.109Z`,fill:`white`})),I.createElement(`g`,{filter:`url(#filter1_d_5891_237796)`},I.createElement(`path`,{d:`M74.0474 174.903C73.5865 174.903 73.138 174.831 72.702 174.688C72.2723 174.545 71.9204 174.352 71.6463 174.109L72.0761 173.371C72.2941 173.576 72.5775 173.744 72.9263 173.875C73.275 174.006 73.6487 174.071 74.0474 174.071C74.5332 174.071 74.91 173.969 75.1778 173.763C75.4519 173.551 75.5889 173.268 75.5889 172.913C75.5889 172.57 75.4581 172.296 75.1965 172.091C74.9411 171.879 74.5332 171.773 73.9726 171.773H73.4494V171.119L75.3927 168.727L75.5235 169.101H71.9453V168.288H76.2615V168.924L74.3276 171.306L73.8418 171.016H74.1501C74.9411 171.016 75.5328 171.194 75.9252 171.549C76.3238 171.904 76.5231 172.355 76.5231 172.904C76.5231 173.271 76.4328 173.607 76.2522 173.913C76.0716 174.218 75.7975 174.461 75.4301 174.641C75.0688 174.816 74.6079 174.903 74.0474 174.903ZM78.0485 173.221V172.567L81.3931 168.288H82.4021L79.0855 172.567L78.609 172.418H83.8315V173.221H78.0485ZM81.6827 174.828V173.221L81.7107 172.418V170.998H82.5889V174.828H81.6827ZM87.2412 174.903C86.7803 174.903 86.3319 174.831 85.8959 174.688C85.4662 174.545 85.1143 174.352 84.8402 174.109L85.27 173.371C85.488 173.576 85.7713 173.744 86.1201 173.875C86.4689 174.006 86.8395 174.071 87.2319 174.071C87.7302 174.071 88.1132 173.965 88.381 173.754C88.6489 173.542 88.7828 173.259 88.7828 172.904C88.7828 172.661 88.7236 172.449 88.6053 172.268C88.4869 172.088 88.2814 171.951 87.9887 171.857C87.7021 171.758 87.3066 171.708 86.8021 171.708H85.3167L85.6624 168.288H89.3527V169.101H86.008L86.4938 168.643L86.2229 171.343L85.7371 170.895H86.9983C87.6523 170.895 88.1786 170.979 88.5772 171.147C88.9758 171.315 89.2655 171.549 89.4461 171.848C89.6267 172.141 89.717 172.48 89.717 172.866C89.717 173.24 89.6267 173.582 89.4461 173.894C89.2655 174.199 88.9914 174.445 88.6239 174.632C88.2627 174.813 87.8018 174.903 87.2412 174.903ZM93.9886 174.903C93.4094 174.903 92.9142 174.775 92.5032 174.52C92.0921 174.264 91.7775 173.897 91.5596 173.417C91.3478 172.932 91.2419 172.34 91.2419 171.642C91.2419 170.901 91.3727 170.275 91.6343 169.764C91.8959 169.254 92.2602 168.868 92.7274 168.606C93.1945 168.344 93.7301 168.214 94.3343 168.214C94.6457 168.214 94.9416 168.245 95.2218 168.307C95.5083 168.369 95.7544 168.466 95.9599 168.597L95.6049 169.325C95.4367 169.207 95.2436 169.126 95.0256 169.082C94.8139 169.039 94.5897 169.017 94.353 169.017C93.6865 169.017 93.1571 169.226 92.7647 169.643C92.3724 170.054 92.1762 170.668 92.1762 171.483C92.1762 171.614 92.1824 171.77 92.1948 171.951C92.2073 172.131 92.2384 172.309 92.2883 172.483L91.9706 172.165C92.0641 171.879 92.2104 171.639 92.4097 171.446C92.6153 171.247 92.8582 171.1 93.1384 171.007C93.425 170.907 93.7333 170.858 94.0634 170.858C94.4993 170.858 94.8855 170.939 95.2218 171.1C95.5582 171.262 95.8229 171.493 96.016 171.792C96.209 172.085 96.3056 172.433 96.3056 172.838C96.3056 173.255 96.2028 173.62 95.9973 173.931C95.7917 174.243 95.5146 174.482 95.1658 174.651C94.817 174.819 94.4246 174.903 93.9886 174.903ZM93.9512 174.146C94.2378 174.146 94.4869 174.093 94.6987 173.987C94.9166 173.881 95.0879 173.735 95.2125 173.548C95.3371 173.355 95.3993 173.131 95.3993 172.876C95.3993 172.489 95.2654 172.184 94.9976 171.96C94.7298 171.73 94.3654 171.614 93.9045 171.614C93.6056 171.614 93.344 171.67 93.1198 171.782C92.8955 171.895 92.718 172.047 92.5872 172.24C92.4627 172.427 92.4004 172.642 92.4004 172.885C92.4004 173.109 92.4596 173.318 92.5779 173.511C92.6962 173.698 92.8706 173.85 93.1011 173.969C93.3315 174.087 93.6149 174.146 93.9512 174.146Z`,fill:`white`})),I.createElement(`rect`,{x:39.8281,y:198.966,width:31.1419,height:31.1419,rx:6.22837,fill:`#F9F9F9`}),I.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M55.4002 212.591C54.8839 212.591 54.3889 212.796 54.0239 213.161C53.6589 213.526 53.4538 214.021 53.4538 214.538C53.4538 215.054 53.6589 215.549 54.0239 215.914C54.3889 216.279 54.8839 216.484 55.4002 216.484C55.9164 216.484 56.4114 216.279 56.7764 215.914C57.1415 215.549 57.3465 215.054 57.3465 214.538C57.3465 214.021 57.1415 213.526 56.7764 213.161C56.4114 212.796 55.9164 212.591 55.4002 212.591ZM54.9414 214.079C55.0631 213.957 55.2281 213.889 55.4002 213.889C55.5722 213.889 55.7372 213.957 55.8589 214.079C55.9806 214.201 56.0489 214.366 56.0489 214.538C56.0489 214.71 55.9806 214.875 55.8589 214.996C55.7372 215.118 55.5722 215.186 55.4002 215.186C55.2281 215.186 55.0631 215.118 54.9414 214.996C54.8197 214.875 54.7514 214.71 54.7514 214.538C54.7514 214.366 54.8197 214.201 54.9414 214.079Z`,fill:`#202022`}),I.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M49.0118 214.883C48.9467 214.78 48.9122 214.659 48.9121 214.538C48.9122 214.416 48.9467 214.296 49.0118 214.192C50.6456 211.475 52.7727 209.996 55.4001 209.996C58.0275 209.996 60.1546 211.475 61.7884 214.192C61.8535 214.296 61.888 214.416 61.8881 214.538C61.888 214.659 61.8535 214.78 61.7884 214.883C60.1546 217.6 58.0275 219.079 55.4001 219.079C52.7727 219.079 50.6456 217.6 49.0118 214.883ZM55.4001 211.294C53.4545 211.294 51.7606 212.305 50.3246 214.538C51.7606 216.77 53.4545 217.782 55.4001 217.782C57.3457 217.782 59.0396 216.77 60.4756 214.538C59.0396 212.305 57.3457 211.294 55.4001 211.294Z`,fill:`#202022`}),I.createElement(`path`,{d:`M45.0691 244.336H43.2361V238.674H45.1271C45.6819 238.674 46.1584 238.787 46.5565 239.014C46.9546 239.239 47.2597 239.562 47.4716 239.984C47.6854 240.404 47.7923 240.909 47.7923 241.497C47.7923 242.086 47.6845 242.593 47.4689 243.017C47.2551 243.441 46.9454 243.767 46.5399 243.996C46.1344 244.223 45.6441 244.336 45.0691 244.336ZM44.0904 243.589H45.0221C45.4534 243.589 45.8119 243.508 46.0976 243.346C46.3832 243.182 46.597 242.945 46.739 242.636C46.8809 242.324 46.9519 241.944 46.9519 241.497C46.9519 241.052 46.8809 240.675 46.739 240.366C46.5989 240.056 46.3897 239.821 46.1114 239.661C45.8331 239.5 45.4875 239.42 45.0746 239.42H44.0904V243.589ZM50.6186 244.422C50.2002 244.422 49.8398 244.332 49.5376 244.153C49.2371 243.973 49.0049 243.719 48.8409 243.393
12C48.6787 243.065 48.5976 242.681 48.5976 242.24C48.5976 241.805 48.6787 241.422 48.8409 241.09C49.0049 240.758 49.2334 240.499 49.5265 240.313C49.8214 240.127 50.1661 240.034 50.5605 240.034C50.8001 240.034 51.0324 240.074 51.2572 240.153C51.4821 240.232 51.6839 240.357 51.8627 240.526C52.0415 240.696 52.1825 240.916 52.2857 241.187C52.3889 241.456 52.4405 241.783 52.4405 242.168V242.461H49.0648V241.842H51.6305C51.6305 241.625 51.5862 241.432 51.4978 241.264C51.4093 241.095 51.2849 240.961 51.1245 240.863C50.966 240.766 50.7798 240.717 50.566 240.717C50.3338 240.717 50.1311 240.774 49.9578 240.888C49.7864 241.001 49.6537 241.148 49.5597 241.331C49.4675 241.511 49.4214 241.708 49.4214 241.92V242.403C49.4214 242.687 49.4712 242.929 49.5707 243.128C49.6721 243.327 49.8131 243.479 49.9937 243.584C50.1744 243.687 50.3854 243.739 50.6269 243.739C50.7835 243.739 50.9264 243.717 51.0554 243.672C51.1844 243.626 51.2959 243.558 51.3899 243.468C51.4839 243.377 51.5558 243.266 51.6056 243.133L52.388 243.274C52.3253 243.505 52.2129 243.707 52.0507 243.88C51.8903 244.051 51.6885 244.185 51.4452 244.281C51.2038 244.375 50.9282 244.422 50.6186 244.422ZM55.34 240.089V240.753H53.0204V240.089H55.34ZM53.6425 239.072H54.4691V243.089C54.4691 243.249 54.4931 243.37 54.541 243.451C54.5889 243.53 54.6507 243.585 54.7263 243.614C54.8037 243.642 54.8875 243.656 54.9779 243.656C55.0442 243.656 55.1023 243.651 55.152 243.642C55.2018 243.633 55.2405 243.625 55.2681 243.62L55.4174 244.303C55.3695 244.321 55.3013 244.34 55.2129 244.358C55.1244 244.378 55.0138 244.389 54.8811 244.391C54.6636 244.395 54.4608 244.356 54.2728 244.275C54.0848 244.194 53.9328 244.069 53.8167 243.899C53.7006 243.73 53.6425 243.517 53.6425 243.26V239.072ZM57.4903 244.43C57.2212 244.43 56.9779 244.38 56.7604 244.281C56.5429 244.179 56.3706 244.033 56.2434 243.841C56.1181 243.649 56.0554 243.414 56.0554 243.136C56.0554 242.896 56.1015 242.699 56.1936 242.544C56.2858 242.39 56.4102 242.267 56.5669 242.177C56.7235 242.086 56.8986 242.018 57.0922 241.972C57.2857 241.926 57.4829 241.891 57.6838 241.867C57.9382 241.838 58.1446 241.814 58.3031 241.795C58.4616 241.775 58.5768 241.743 58.6487 241.698C58.7206 241.654 58.7565 241.582 58.7565 241.483V241.463C58.7565 241.222 58.6883 241.035 58.552 240.902C58.4174 240.769 58.2165 240.703 57.9492 240.703C57.6709 240.703 57.4516 240.765 57.2912 240.888C57.1327 241.01 57.0231 241.145 56.9622 241.295L56.1853 241.118C56.2775 240.86 56.4121 240.651 56.589 240.493C56.7678 240.333 56.9733 240.216 57.2055 240.145C57.4378 240.071 57.682 240.034 57.9382 240.034C58.1078 240.034 58.2875 240.054 58.4773 240.095C58.669 240.134 58.8478 240.205 59.0137 240.31C59.1814 240.416 59.3187 240.566 59.4256 240.761C59.5325 240.955 59.586 241.206 59.586 241.516V244.336H58.7787V243.755H58.7455C58.692 243.862 58.6119 243.967 58.505 244.071C58.398 244.174 58.2607 244.259 58.093 244.328C57.9253 244.396 57.7244 244.43 57.4903 244.43ZM57.67 243.766C57.8986 243.766 58.0939 243.721 58.2561 243.631C58.4202 243.541 58.5446 243.423 58.6294 243.277C58.716 243.13 58.7593 242.972 58.7593 242.804V242.257C58.7298 242.286 58.6727 242.314 58.5879 242.34C58.505 242.364 58.41 242.385 58.3031 242.403C58.1962 242.42 58.0921 242.436 57.9907 242.45C57.8893 242.463 57.8046 242.474 57.7364 242.484C57.576 242.504 57.4295 242.538 57.2968 242.586C57.1659 242.634 57.0608 242.703 56.9816 242.793C56.9042 242.882 56.8655 243 56.8655 243.147C56.8655 243.352 56.941 243.507 57.0922 243.612C57.2433 243.715 57.4359 243.766 57.67 243.766ZM60.687 244.336V240.089H61.5137V244.336H60.
12687ZM61.1045 239.434C60.9607 239.434 60.8372 239.386 60.734 239.29C60.6326 239.193 60.582 239.077 60.582 238.942C60.582 238.806 60.6326 238.689 60.734 238.594C60.8372 238.496 60.9607 238.447 61.1045 238.447C61.2483 238.447 61.3708 238.496 61.4722 238.594C61.5754 238.689 61.627 238.806 61.627 238.942C61.627 239.077 61.5754 239.193 61.4722 239.29C61.3708 239.386 61.2483 239.434 61.1045 239.434ZM63.4524 238.674V244.336H62.6258V238.674H63.4524ZM67.7467 241.126L66.9975 241.259C66.9662 241.163 66.9164 241.072 66.8482 240.985C66.7818 240.898 66.6915 240.828 66.5773 240.772C66.463 240.717 66.3201 240.689 66.1487 240.689C65.9146 240.689 65.7193 240.742 65.5626 240.847C65.4059 240.95 65.3276 241.084 65.3276 241.248C65.3276 241.39 65.3801 241.504 65.4852 241.591C65.5903 241.677 65.7598 241.748 65.9939 241.803L66.6685 241.958C67.0592 242.049 67.3505 242.188 67.5421 242.376C67.7338 242.564 67.8297 242.808 67.8297 243.108C67.8297 243.363 67.756 243.589 67.6085 243.789C67.4629 243.986 67.2592 244.141 66.9975 244.253C66.7376 244.365 66.4363 244.422 66.0934 244.422C65.6179 244.422 65.2299 244.32 64.9295 244.118C64.629 243.913 64.4447 243.623 64.3765 243.247L65.1755 243.125C65.2253 243.333 65.3276 243.491 65.4824 243.598C65.6373 243.703 65.8391 243.755 66.0879 243.755C66.3588 243.755 66.5754 243.699 66.7376 243.587C66.8998 243.472 66.9809 243.333 66.9809 243.169C66.9809 243.037 66.9311 242.925 66.8316 242.835C66.7339 242.744 66.5837 242.676 66.381 242.63L65.6621 242.473C65.2659 242.382 64.9728 242.238 64.783 242.041C64.595 241.844 64.501 241.594 64.501 241.292C64.501 241.041 64.571 240.822 64.7111 240.634C64.8511 240.446 65.0447 240.299 65.2917 240.194C65.5386 240.087 65.8216 240.034 66.1404 240.034C66.5994 240.034 66.9606 240.134 67.2242 240.333C67.4878 240.53 67.662 240.794 67.7467 241.126Z`,fill:`#202022`}),I.createElement(`rect`,{x:114.568,y:198.966,width:31.1419,height:31.1419,rx:6.22837,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M130.14 216.483C130.498 216.483 130.788 216.774 130.788 217.132V217.138C130.788 217.497 130.498 217.787 130.14 217.787C129.781 217.787 129.491 217.497 129.491 217.138V217.132C129.491 216.774 129.781 216.483 130.14 216.483Z`,fill:`#202022`}),I.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M126.896 213.239V211.293C126.896 210.432 127.237 209.607 127.846 208.999C128.454 208.391 129.279 208.049 130.14 208.049C131 208.049 131.825 208.391 132.433 208.999C133.042 209.607 133.383 210.432 133.383 211.293V213.239C133.9 213.239 134.395 213.444 134.76 213.809C135.125 214.174 135.33 214.669 135.33 215.186V219.078C135.33 219.594 135.125 220.09 134.76 220.455C134.395 220.82 133.9 221.025 133.383 221.025H126.896C126.379 221.025 125.884 220.82 125.519 220.455C125.154 220.09 124.949 219.594 124.949 219.078V215.186C124.949 214.669 125.154 214.174 125.519 213.809C125.884 213.444 126.379 213.239 126.896 213.239ZM128.763 209.916C129.128 209.551 129.623 209.346 130.14 209.346C130.656 209.346 131.151 209.551 131.516 209.916C131.881 210.281 132.086 210.777 132.086 211.293V213.239H128.193V211.293C128.193 210.777 128.398 210.281 128.763 209.916ZM133.383 214.537C133.556 214.537 133.721 214.605 133.842 214.727C133.964 214.848 134.032 215.013 134.032 215.186V219.078C134.032 219.25 133.964 219.415 133.842 219.537C133.721 219.659 133.556 219.727 133.383 219.727H126.896C126.724 219.727 126.558 219.659 126.437 219.537C126.315 219.415 126.247 219.25 126.247 219.078V215.186C126.247 215.013 126.315 214.848 126.437 214.727C126.558 214.605 126.724 214.537 126.896 214.537H133.383Z`,fill:`#202022`}),I.createElement(`path`,{d:`M121.842 244.336V238.674H122.697V243.601H125.262V244.336H121.842ZM127.959 244.422C127.561 244.422 127.214 244.33 126.917 244.148C126.62 243.965 126.39 243.71 126.226 243.382C126.062 243.054 125.98 242.671 125.98 242.232C125.98 241.791 126.062 241.406 126.226 241.076C126.39 240.746 126.62 240.49 126.917 240.308C127.214 240.125 127.561 240.034 127.959 240.034C128.357 240.034 128.705 240.125 129.002 240.308C129.298 240.49 129.529 240.746 129.693 241.076C129.857 241.406 129.939 241.791 129.939 242.232C129.939 242.671 129.85
127 243.054 129.693 243.382C129.529 243.71 129.298 243.965 129.002 244.148C128.705 244.33 128.357 244.422 127.959 244.422ZM127.962 243.728C128.22 243.728 128.434 243.66 128.604 243.523C128.773 243.387 128.898 243.205 128.98 242.978C129.063 242.752 129.104 242.502 129.104 242.229C129.104 241.958 129.063 241.709 128.98 241.483C128.898 241.254 128.773 241.071 128.604 240.933C128.434 240.794 128.22 240.725 127.962 240.725C127.702 240.725 127.487 240.794 127.315 240.933C127.146 241.071 127.019 241.254 126.936 241.483C126.855 241.709 126.815 241.958 126.815 242.229C126.815 242.502 126.855 242.752 126.936 242.978C127.019 243.205 127.146 243.387 127.315 243.523C127.487 243.66 127.702 243.728 127.962 243.728ZM132.65 244.422C132.239 244.422 131.886 244.329 131.589 244.142C131.294 243.954 131.067 243.695 130.909 243.366C130.75 243.036 130.671 242.658 130.671 242.232C130.671 241.801 130.752 241.42 130.914 241.09C131.076 240.758 131.305 240.499 131.6 240.313C131.895 240.127 132.242 240.034 132.642 240.034C132.965 240.034 133.252 240.094 133.505 240.214C133.757 240.332 133.961 240.498 134.116 240.711C134.272 240.925 134.365 241.175 134.395 241.461H133.59C133.546 241.262 133.445 241.09 133.286 240.946C133.13 240.803 132.92 240.731 132.656 240.731C132.426 240.731 132.224 240.792 132.05 240.913C131.879 241.033 131.745 241.204 131.65 241.427C131.554 241.649 131.506 241.91 131.506 242.213C131.506 242.522 131.553 242.79 131.647 243.014C131.741 243.239 131.874 243.413 132.045 243.537C132.218 243.66 132.422 243.722 132.656 243.722C132.813 243.722 132.955 243.694 133.082 243.636C133.211 243.577 133.319 243.494 133.405 243.385C133.494 243.276 133.555 243.145 133.59 242.992H134.395C134.365 243.267 134.276 243.512 134.127 243.728C133.977 243.943 133.778 244.113 133.527 244.236C133.278 244.36 132.986 244.422 132.65 244.422ZM136.039 242.896L136.034 241.886H136.178L137.87 240.089H138.859L136.93 242.135H136.8L136.039 242.896ZM135.279 244.336V238.674H136.106V244.336H135.279ZM137.961 244.336L136.44 242.318L137.01 241.74L138.975 244.336H137.961Z`,fill:`#202022`}),I.createElement(`rect`,{x:192.738,y:198.966,width:31.1419,height:31.1419,rx:6.22837,fill:`#F9F9F9`}),I.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M203.09 208.239C202.837 207.985 202.426 207.985 202.172 208.239C201.919 208.492 201.919 208.903 202.172 209.156L202.355 209.339C201.66 209.636 201.172 210.326 201.172 211.13V217.618C201.172 218.693 202.043 219.565 203.118 219.565H212.581L213.526 220.51C213.78 220.764 214.19 220.764 214.444 220.51C214.697 220.257 214.697 219.846 214.444 219.593L203.09 208.239ZM211.283 218.267L206.904 213.888H202.469V217.618C202.469 217.977 202.76 218.267 203.118 218.267H211.283ZM205.606 212.59L203.498 210.482H203.118C202.76 210.482 202.469 210.772 202.469 211.13V212.59H205.606ZM207.011 209.184C206.653 209.184 206.362 209.474 206.362 209.833C206.362 210.191 206.653 210.482 207.011 210.482H213.499C213.857 210.482 214.148 210.772 214.148 211.13V212.59H210.254C209.896 212.59 209.605 212.881 209.605 213.239C209.605 213.597 209.896 213.888 210.254 213.888H214.148V217.618C214.148 217.977 214.438 218.267 214.796 218.267C215.155 218.267 215.445 217.977 215.445 217.618V211.13C215.445 210.055 214.574 209.184 213.499 209.184H207.011Z`,fill:`#202022`}),I.createElement(`path`,{d:`M189.982 239.409V238.674H194.364V239.409H192.598V244.336H191.746V239.409H189.982ZM196.481 244.422C196.062 244.422 195.702 244.332 195.4 244.153C195.099 243.973 194.867 243.719 194.703 243.393C194.541 243.065 194.46 242.681 194.46 242.24C194.46 241.805 194.541 241.422 194.703 241.09C194.867 240.758 195.096 240.499 195.389 240.313C195.684 240.127 196.028 240.034 196.423 240.034C196.662 240.034 196.895 240.074 197.119 240.153C197.344 240.232 197.546 240.357 197.725 240.526C197.904 240.696 198.045 240.916 198.148 241.187C198.251 241.456 198.303 241.783 198.303 242.168V242.461H194.927V241.842H197.493C197.493 241.625 197.448 241.432 197.36 241.264C197.271 241.095 197.147 240.961 196.987 240.863C196.828 240.766 196.642 240.717 196.428 240.717C196.196 240.717 195.993 240.774 195.82 240.888C195.649 241.001 195.516 241.148 195.422 241.331C195.33 241.511 195.284 241.708 195.284 241.92V242.403C195.284 242.687 195.333 242.929 195.433 243.128C195.534 243.327 195.675 243.479 195.856 243.584C196.037 243.687 196.248 243.739 196.489 243.739C196.646 243.739 196.789 243.717 196.918 243.672C197.047 243.626 197.158 243.558 197.252 243.468C197.346 243.377 197.418 243.266 197.468 243.133L198.25 243.274C198.188 243.505 198.075 243.707 197.913 243.88C197.753 244.051 197.551 244.185 197.307 244.281C197.066 244.375 196.79 244.422 196.481 244.422ZM199.22 244.336V240.089H200.019V240.764H200.063C200.141 240.535 200.277 240.356 200.472 240.225C200.67 240.092 200.893 240.026 201.141 240.026C201.193 240.026 201.254 240.028 201.324 240.031C201.396 240.035 201.452 240.04 201.493 240.045V240.836C201.459 240.827 201.4 240.816 201.316 240.805C201.231 240.792 201.146 240.786 201.061 240.786C200.866 240.786 200.692 240.828 200.539 240.91C200.388 240.992 200.268 241.105 200.179 241.251C200.
12091 241.394 200.047 241.558 200.047 241.743V244.336H199.22ZM202.208 244.336V240.089H203.001V240.781H203.054C203.142 240.546 203.287 240.364 203.488 240.233C203.689 240.1 203.929 240.034 204.21 240.034C204.493 240.034 204.731 240.1 204.923 240.233C205.116 240.366 205.259 240.548 205.351 240.781H205.396C205.497 240.554 205.658 240.373 205.879 240.239C206.101 240.102 206.364 240.034 206.67 240.034C207.055 240.034 207.37 240.155 207.613 240.396C207.858 240.638 207.981 241.002 207.981 241.488V244.336H207.154V241.566C207.154 241.278 207.076 241.07 206.919 240.941C206.762 240.812 206.575 240.747 206.358 240.747C206.089 240.747 205.879 240.83 205.73 240.996C205.581 241.16 205.506 241.371 205.506 241.629V244.336H204.682V241.513C204.682 241.283 204.61 241.098 204.467 240.957C204.323 240.817 204.136 240.747 203.905 240.747C203.749 240.747 203.604 240.789 203.471 240.872C203.34 240.953 203.235 241.066 203.153 241.212C203.074 241.357 203.035 241.526 203.035 241.718V244.336H202.208ZM209.089 244.336V240.089H209.915V244.336H209.089ZM209.506 239.434C209.362 239.434 209.239 239.386 209.136 239.29C209.034 239.193 208.984 239.077 208.984 238.942C208.984 238.806 209.034 238.689 209.136 238.594C209.239 238.496 209.362 238.447 209.506 238.447C209.65 238.447 209.772 238.496 209.874 238.594C209.977 238.689 210.029 238.806 210.029 238.942C210.029 239.077 209.977 239.193 209.874 239.29C209.772 239.386 209.65 239.434 209.506 239.434ZM211.854 241.815V244.336H211.027V240.089H211.821V240.781H211.873C211.971 240.556 212.124 240.375 212.332 240.239C212.542 240.102 212.807 240.034 213.126 240.034C213.415 240.034 213.669 240.095 213.886 240.216C214.104 240.336 214.272 240.515 214.392 240.753C214.512 240.991 214.572 241.285 214.572 241.635V244.336H213.745V241.734C213.745 241.427 213.665 241.186 213.505 241.013C213.344 240.838 213.124 240.75 212.844 240.75C212.652 240.75 212.482 240.792 212.332 240.875C212.185 240.957 212.068 241.079 211.981 241.239C211.896 241.398 211.854 241.59 211.854 241.815ZM216.916 244.43C216.647 244.43 216.404 244.38 216.186 244.281C215.969 244.179 215.797 244.033 215.669 243.841C215.544 243.649 215.481 243.414 215.481 243.136C215.481 242.896 215.527 242.699 215.62 242.544C215.712 242.39 215.836 242.267 215.993 242.177C216.149 242.086 216.325 242.018 216.518 241.972C216.712 241.926 216.909 241.891 217.11 241.867C217.364 241.838 217.571 241.814 217.729 241.795C217.888 241.775 218.003 241.743 218.075 241.698C218.147 241.654 218.182 241.582 218.182 241.483V241.463C218.182 241.222 218.114 241.035 217.978 240.902C217.843 240.769 217.642 240.703 217.375 240.703C217.097 240.703 216.878 240.765 216.717 240.888C216.559 241.01 216.449 241.145 216.388 241.295L215.611 241.118C215.703 240.86 215.838 240.651 216.015 240.493C216.194 240.333 216.399 240.216 216.631 240.145C216.864 240.071 217.108 240.034 217.364 240.034C217.534 240.034 217.713 240.054 217.903 240.095C218.095 240.134 218.274 240.205 218.44 240.31C218.607 240.416 218.745 240.566 218.852 240.761C218.958 240.955 219.012 241.206 219.012 241.516V244.336H218.205V243.755H218.171C218.118 243.862 218.038 243.967 217.931 244.071C217.824 244.174 217.687 244.259 217.519 244.328C217.351 244.396 217.15 244.43 216.916 244.43ZM217.096 243.766C217.324 243.766 217.52 243.721 217.682 243.631C217.846 243.541 217.971 243.423 218.055 243.277C218.142 243.13 218.185 242.972 218.185 242.804V242.257C218.156 242.286 218.099 242.314 218.014 242.34C217.931 242.364 217.836 242.385 217.729 242.403C217.622 242.42 217.518 242.436 217.417 242.45C217.315 242.463 217.23 242.474 217.162 242.484C217.002 242.504 216.855 242.538 216.723 242.586C216.592 242.634 216.487 242.703 216.408 242.793C216.33 242.882 216.291 243 216.291 243.147C216.291 243.352 216.367 243.507 216.518 243.612C216.669 243.715 216.862 243.766 217.096 243.766ZM222.095 240.089V240.753H219.776V240.089H222.095ZM220.398 239.072H221.224V243.089C221.224 243.249 221.248 243.37 221.296 243.451C221.344 243.53 221.406 243.585 221.481 243.614C221.559 243.642 221.643 243.656 221.733 243.656C221.799 243.656 221.857 243.651 221.907 243.642C221.957 243.633 221.996 243.625 222.023 243.62L222.173 244.303C222.125 244.321 222.057 244.34 221.968 244.358C221.88 244.378 221.769 244.389 221.636 244.391C221.419 244.395 221.216 244.356 221.028 244.275C220.84 244.194 220.688 244.069 220.572 243.899C220.456 243.73 220.398 243.517 220.398 243.26V239.072ZM224.794 244.422C224.376 244.422 224.016 244.332 223.713 244.153C223.413 243.973 223.181 243.719 223.017 243.393C222.854 243.065 222.773 242.681 222.773 242.24C222.773 241.805 222.854 241.422 223.017 241.09C223.181 240.758 223.409 240.499 223.702 240.313C223.997 240.127 224.342 240.034 224.736 240.034C224.976 240.034 225.208 240.074 225.433 240.153C225.658 240.232 225.86 240.357 226.038 240.526C226.217 240.696 226.358 240.916 226.461 241.187C226.565 241.456 226.616 241.783 226.616 242.168V242.461H223.241V241.842H225.806C225.806 241.625 225.762 241.432 225.673 241.264C225.585 241.095 225.461 240.961 225.3 240.863C225.142 240.766 224.956 240.717 224.742 240.717C224.51 240.717 224.307 240.774 224.134 240.888C223.962 241.001 223.829 241.148 223.735 241.331C223.643 241.511 223.597 241.708 223.597 241.92V242.403C223.597 242.687 223.647 242.929 223.746 243.128C223.848 243.327 223.989 243.479 224.169 243.584C224.35 243.687 224.561 243.739 224.803 243.739C224.959 243.739 225.102 243.717 225.231 243.672C225.36 243.62
126 225.472 243.558 225.566 243.468C225.66 243.377 225.732 243.266 225.781 243.133L226.564 243.274C226.501 243.505 226.389 243.707 226.226 243.88C226.066 244.051 225.864 244.185 225.621 244.281C225.38 244.375 225.104 244.422 224.794 244.422Z`,fill:`#202022`})),I.createElement(`defs`,null,I.createElement(`filter`,{id:`filter0_d_5891_237796`,x:46.2097,y:171.399,width:18.7876,height:4.0456,filterUnits:`userSpaceOnUse`,colorInterpolationFilters:`sRGB`},I.createElement(`feFlood`,{floodOpacity:0,result:`BackgroundImageFix`}),I.createElement(`feColorMatrix`,{in:`SourceAlpha`,type:`matrix`,values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0`,result:`hardAlpha`}),I.createElement(`feOffset`,{dy:1.55709}),I.createElement(`feGaussianBlur`,{stdDeviation:.389273}),I.createElement(`feComposite`,{in2:`hardAlpha`,operator:`out`}),I.createElement(`feColorMatrix`,{type:`matrix`,values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0`}),I.createElement(`feBlend`,{mode:`normal`,in2:`BackgroundImageFix`,result:`effect1_dropShadow_5891_237796`}),I.createElement(`feBlend`,{mode:`normal`,in:`SourceGraphic`,in2:`effect1_dropShadow_5891_237796`,result:`shape`})),I.createElement(`filter`,{id:`filter1_d_5891_237796`,x:70.8679,y:168.214,width:26.2153,height:9.02509,filterUnits:`userSpaceOnUse`,colorInterpolationFilters:`sRGB`},I.createElement(`feFlood`,{floodOpacity:0,result:`BackgroundImageFix`}),I.createElement(`feColorMatrix`,{in:`SourceAlpha`,type:`matrix`,values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0`,result:`hardAlpha`}),I.createElement(`feOffset`,{dy:1.55709}),I.createElement(`feGaussianBlur`,{stdDeviation:.389273}),I.createElement(`feComposite`,{in2:`hardAlpha`,operator:`out`}),I.createElement(`feColorMatrix`,{type:`matrix`,values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0`}),I.createElement(`feBlend`,{mode:`normal`,in2:`BackgroundImageFix`,result:`effect1_dropShadow_5891_237796`}),I.createElement(`feBlend`,{mode:`normal`,in:`SourceGraphic`,in2:`effect1_dropShadow_5891_237796`,result:`shape`})),I.createElement(`radialGradient`,{id:`paint0_radial_5891_237796`,cx:0,cy:0,r:1,gradientUnits:`userSpaceOnUse`,gradientTransform:`translate(275.667 114.068) rotate(174.423) scale(326.961 82.8802)`},I.createElement(`stop`,{stopColor:`white`}),I.createElement(`stop`,{offset:1,stopColor:`white`,stopOpacity:0})),I.createElement(`radialGradient`,{id:`paint1_radial_5891_237796`,cx:0,cy:0,r:1,gradientUnits:`userSpaceOnUse`,gradientTransform:`translate(16.0748 -2.44247) rotate(30.647) scale(191.625 115.787)`},I.createElement(`stop`,{stopColor:`white`}),I.createElement(`stop`,{offset:1,stopColor:`white`,stopOpacity:0})),I.createElement(`radialGradient`,{id:`paint2_radial_5891_237796`,cx:0,cy:0,r:1,gradientUnits:`userSpaceOnUse`,gradientTransform:`translate(-46.0552 232.226) rotate(-5.34101) scale(245.279 61.9067)`},I.createElement(`stop`,{stopColor:`white`}),I.createElement(`stop`,{offset:1,stopColor:`white`,stopOpacity:0})),I.createElement(`clipPath`,{id:`clip0_5891_237796`},I.createElement(`rect`,{width:900,height:248,fill:`white`,transform:`translate(9 9)`})),I.createElement(`clipPath`,{id:`clip1_5891_237796`},I.createElement(`rect`,{width:18.6851,height:18.6851,fill:`white`,transform:`translate(868.516 124.654)`})),I.createElement(`clipPath`,{id:`clip2_5891_237796`},I.createElement(`rect`,{width:18.6851,height:18.6851,fill:`white`,transform:`translate(868.516 180.709)`})),I.createElement(`clipPath`,{id:`clip3_5891_237796`},I.createElement(`rect`,{width:18.6851,height:18.6851,fill:`white`,transform:`translate(868.516 236.765)`})))),DL=e=>I.createElement(`svg`,{width:212,height:213,viewBox:`0 0 212 213`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e},I.createElement(`path`,{d:`M7.31034 0.5H0V7.81034H7.31034V0.5Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M14.6207 0.5H7.31034V7.81034H14.6207V0.5Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M21.931 0.5H14.6207V7.81034H21.931V0.5Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M29.2414 0.5H21.931V7.81034H29.2414V0.5Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M36.5517 0.5H29.2414V7.81034H36.5517V0.5Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M43.8621 0.5H36.5517V7.81034H43.8621V0.5Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M51.1724 0.5H43.8621V7.81034H51.1724V0.5Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M65.7931 0.5H58.4828V7.81034H65.7931V0.5Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M80.4138 0.5H73.1034V7.81034H80.4138V0.5Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M95.0345 0.5H87.7241V7.81034H95.0345V0.5Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M109.655 0.5H102.345V7.81034H109.655V0.5Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M124.276 0.5H116.966V7.81034H124.276V0.5Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M138.897 0.5H131.586V7.81034H138.897V0.5Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M168.138 0.5H160.828V7.81034H168.138V0.5Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M175.448 0.5H168.138V7.81034H175.448V0.5Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M182.759 0.5H175.448V7.81034H182.759V0.5Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M190.069 0.5H182.759V7.81034H190.069V0.5Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M197.379 0.5H190.069V7.81034H197.379V0.5Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M204.69 0.5H197.379V7.81034H204.69V0.5
12Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M212 0.5H204.69V7.81034H212V0.5Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M7.31034 7.81034H0V15.1207H7.31034V7.81034Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M51.1724 7.81034H43.8621V15.1207H51.1724V7.81034Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M73.1034 7.81034H65.7931V15.1207H73.1034V7.81034Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M80.4138 7.81034H73.1034V15.1207H80.4138V7.81034Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M116.966 7.81034H109.655V15.1207H116.966V7.81034Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M124.276 7.81034H116.966V15.1207H124.276V7.81034Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M131.586 7.81034H124.276V15.1207H131.586V7.81034Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M153.517 7.81034H146.207V15.1207H153.517V7.81034Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M168.138 7.81034H160.828V15.1207H168.138V7.81034Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M212 7.81034H204.69V15.1207H212V7.81034Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M7.31034 15.1207H0V22.431H7.31034V15.1207Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M21.931 15.1207H14.6207V22.431H21.931V15.1207Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M29.2414 15.1207H21.931V22.431H29.2414V15.1207Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M36.5517 15.1207H29.2414V22.431H36.5517V15.1207Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M51.1724 15.1207H43.8621V22.431H51.1724V15.1207Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M65.7931 15.1207H58.4828V22.431H65.7931V15.1207Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M73.1034 15.1207H65.7931V22.431H73.1034V15.1207Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M87.7241 15.1207H80.4138V22.431H87.7241V15.1207Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M102.345 15.1207H95.0345V22.431H102.345V15.1207Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M116.966 15.1207H109.655V22.431H116.966V15.1207Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M146.207 15.1207H138.897V22.431H146.207V15.1207Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M168.138 15.1207H160.828V22.431H168.138V15.1207Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M182.759 15.1207H175.448V22.431H182.759V15.1207Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M190.069 15.1207H182.759V22.431H190.069V15.1207Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M197.379 15.1207H190.069V22.431H197.379V15.1207Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M212 15.1207H204.69V22.431H212V15.1207Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M7.31034 22.431H0V29.7414H7.31034V22.431Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M21.931 22.431H14.6207V29.7414H21.931V22.431Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M29.2414 22.431H21.931V29.7414H29.2414V22.431Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M36.5517 22.431H29.2414V29.7414H36.5517V22.431Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M51.1724 22.431H43.8621V29.7414H51.1724V22.431Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M65.7931 22.431H58.4828V29.7414H65.7931V22.431Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M73.1034 22.431H65.7931V29.7414H73.1034V22.431Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M80.4138 22.431H73.1034V29.7414H80.4138V22.431Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M87.7241 22.431H80.4138V29.7414H87.7241V22.431Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M109.655 22.431H102.345V29.7414H109.655V22.431Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M124.276 22.431H116.966V29.7414H124.276V22.431Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M131.586 22.431H124.276V29.7414H131.586V22.431Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M146.207 22.431H138.897V29.7414H146.207V22.431Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M153.517 22.431H146.207V29.7414H153.517V22.431Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M168.138 22.431H160.828V29.7414H168.138V22.431Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M182.759 22.431H175.448V29.7414H182.759V22.431Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M190.069 22.431H182.759V29.7414H190.069V22.431Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M197.379 22.431H190.069V29.7414H197.379V22.431Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M212 22.431H204.69V29.7414H212V22.431Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M7.31034 29.7414H0V37.0517H7.31034V29.7414Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M21.931 29.7414H14.6207V37.0517H21.931V29.7414Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M29.2414 29.7414H21.931V37.0517H29.2414V29.7414Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M36.5517 29.7414H29.2414V37.0517H36.5517V29.7414Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M51.1724 29.7414H43.8621V37.0517H51.1724V29.7414Z`,fill:`#F9F9F9`}
12),I.createElement(`path`,{d:`M73.1034 29.7414H65.7931V37.0517H73.1034V29.7414Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M80.4138 29.7414H73.1034V37.0517H80.4138V29.7414Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M102.345 29.7414H95.0345V37.0517H102.345V29.7414Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M124.276 29.7414H116.966V37.0517H124.276V29.7414Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M146.207 29.7414H138.897V37.0517H146.207V29.7414Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M168.138 29.7414H160.828V37.0517H168.138V29.7414Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M182.759 29.7414H175.448V37.0517H182.759V29.7414Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M190.069 29.7414H182.759V37.0517H190.069V29.7414Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M197.379 29.7414H190.069V37.0517H197.379V29.7414Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M212 29.7414H204.69V37.0517H212V29.7414Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M7.31034 37.0517H0V44.3621H7.31034V37.0517Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M51.1724 37.0517H43.8621V44.3621H51.1724V37.0517Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M65.7931 37.0517H58.4828V44.3621H65.7931V37.0517Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M73.1034 37.0517H65.7931V44.3621H73.1034V37.0517Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M80.4138 37.0517H73.1034V44.3621H80.4138V37.0517Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M124.276 37.0517H116.966V44.3621H124.276V37.0517Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M168.138 37.0517H160.828V44.3621H168.138V37.0517Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M212 37.0517H204.69V44.3621H212V37.0517Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M7.31034 44.3621H0V51.6724H7.31034V44.3621Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M14.6207 44.3621H7.31034V51.6724H14.6207V44.3621Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M21.931 44.3621H14.6207V51.6724H21.931V44.3621Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M29.2414 44.3621H21.931V51.6724H29.2414V44.3621Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M36.5517 44.3621H29.2414V51.6724H36.5517V44.3621Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M43.8621 44.3621H36.5517V51.6724H43.8621V44.3621Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M51.1724 44.3621H43.8621V51.6724H51.1724V44.3621Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M65.7931 44.3621H58.4828V51.6724H65.7931V44.3621Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M80.4138 44.3621H73.1034V51.6724H80.4138V44.3621Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M95.0345 44.3621H87.7241V51.6724H95.0345V44.3621Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M109.655 44.3621H102.345V51.6724H109.655V44.3621Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M124.276 44.3621H116.966V51.6724H124.276V44.3621Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M138.897 44.3621H131.586V51.6724H138.897V44.3621Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M153.517 44.3621H146.207V51.6724H153.517V44.3621Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M168.138 44.3621H160.828V51.6724H168.138V44.3621Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M175.448 44.3621H168.138V51.6724H175.448V44.3621Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M182.759 44.3621H175.448V51.6724H182.759V44.3621Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M190.069 44.3621H182.759V51.6724H190.069V44.3621Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M197.379 44.3621H190.069V51.6724H197.379V44.3621Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M204.69 44.3621H197.379V51.6724H204.69V44.3621Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M212 44.3621H204.69V51.6724H212V44.3621Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M65.7931 51.6724H58.4828V58.9828H65.7931V51.6724Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M73.1034 51.6724H65.7931V58.9828H73.1034V51.6724Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M80.4138 51.6724H73.1034V58.9828H80.4138V51.6724Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M87.7241 51.6724H80.4138V58.9828H87.7241V51.6724Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M102.345 51.6724H95.0345V58.9828H102.345V51.6724Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M109.655 51.6724H102.345V58.9828H109.655V51.6724Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M124.276 51.6724H116.966V58.9828H124.276V51.6724Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M146.207 51.6724H138.897V58.9828H146.207V51.6724Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M7.31034 58.9828H0V66.2931H7.31034V58.9828Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M14.6207 58.9828H7.31034V66.2931H14.6207V58.9828Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M29.2414 58.9828H21.931V66.2931H29.2414V58.9828Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M51.1724 58.9828H43.8621V66.2931H51.1724V58.9828Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M58.4828 58.9828H51.1724V66.2931H58.4828V58.9828Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M87.7241 58.9828H80.4138V66.2931H87.7241V58.9828Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M124.276 58.9828H116.966V66.2931H124.276V58.9828Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M138.897 58.9828H131.586V66.2931H138.897V58.9828Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M146.207 58.9828H138.897V66.2931H146.207V58.9828Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M160.828 58.9828H153.517V66.2931H160.828V58.9828Z`,fill:`#F9F9F9`}
12),I.createElement(`path`,{d:`M168.138 58.9828H160.828V66.2931H168.138V58.9828Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M175.448 58.9828H168.138V66.2931H175.448V58.9828Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M190.069 58.9828H182.759V66.2931H190.069V58.9828Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M197.379 58.9828H190.069V66.2931H197.379V58.9828Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M212 58.9828H204.69V66.2931H212V58.9828Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M21.931 66.2931H14.6207V73.6034H21.931V66.2931Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M29.2414 66.2931H21.931V73.6034H29.2414V66.2931Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M36.5517 66.2931H29.2414V73.6034H36.5517V66.2931Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M43.8621 66.2931H36.5517V73.6034H43.8621V66.2931Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M65.7931 66.2931H58.4828V73.6034H65.7931V66.2931Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M87.7241 66.2931H80.4138V73.6034H87.7241V66.2931Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M95.0345 66.2931H87.7241V73.6034H95.0345V66.2931Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M102.345 66.2931H95.0345V73.6034H102.345V66.2931Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M109.655 66.2931H102.345V73.6034H109.655V66.2931Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M124.276 66.2931H116.966V73.6034H124.276V66.2931Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M146.207 66.2931H138.897V73.6034H146.207V66.2931Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M153.517 66.2931H146.207V73.6034H153.517V66.2931Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M182.759 66.2931H175.448V73.6034H182.759V66.2931Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M190.069 66.2931H182.759V73.6034H190.069V66.2931Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M204.69 66.2931H197.379V73.6034H204.69V66.2931Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M212 66.2931H204.69V73.6034H212V66.2931Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M14.6207 73.6034H7.31034V80.9138H14.6207V73.6034Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M43.8621 73.6034H36.5517V80.9138H43.8621V73.6034Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M51.1724 73.6034H43.8621V80.9138H51.1724V73.6034Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M80.4138 73.6034H73.1034V80.9138H80.4138V73.6034Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M87.7241 73.6034H80.4138V80.9138H87.7241V73.6034Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M95.0345 73.6034H87.7241V80.9138H95.0345V73.6034Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M102.345 73.6034H95.0345V80.9138H102.345V73.6034Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M116.966 73.6034H109.655V80.9138H116.966V73.6034Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M153.517 73.6034H146.207V80.9138H153.517V73.6034Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M160.828 73.6034H153.517V80.9138H160.828V73.6034Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M175.448 73.6034H168.138V80.9138H175.448V73.6034Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M182.759 73.6034H175.448V80.9138H182.759V73.6034Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M190.069 73.6034H182.759V80.9138H190.069V73.6034Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M197.379 73.6034H190.069V80.9138H197.379V73.6034Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M21.931 80.9138H14.6207V88.2241H21.931V80.9138Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M43.8621 80.9138H36.5517V88.2241H43.8621V80.9138Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M58.4828 80.9138H51.1724V88.2241H58.4828V80.9138Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M80.4138 80.9138H73.1034V88.2241H80.4138V80.9138Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M87.7241 80.9138H80.4138V88.2241H87.7241V80.9138Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M95.0345 80.9138H87.7241V88.2241H95.0345V80.9138Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M116.966 80.9138H109.655V88.2241H116.966V80.9138Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M153.517 80.9138H146.207V88.2241H153.517V80.9138Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M197.379 80.9138H190.069V88.2241H197.379V80.9138Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M212 80.9138H204.69V88.2241H212V80.9138Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M7.31034 88.2241H0V95.5345H7.31034V88.2241Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M14.6207 88.2241H7.31034V95.5345H14.6207V88.2241Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M21.931 88.2241H14.6207V95.5345H21.931V88.2241Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M29.2414 88.2241H21.931V95.5345H29.2414V88.2241Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M36.5517 88.2241H29.2414V95.5345H36.5517V88.2241Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M51.1724 88.2241H43.8621V95.5345H51.1724V88.2241Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M58.4828 88.2241H51.1724V95.5345H58.4828V88.2241Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M65.7931 88.2241H58.4828V95.5345H65.793
121V88.2241Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M73.1034 88.2241H65.7931V95.5345H73.1034V88.2241Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M80.4138 88.2241H73.1034V95.5345H80.4138V88.2241Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M102.345 88.2241H95.0345V95.5345H102.345V88.2241Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M109.655 88.2241H102.345V95.5345H109.655V88.2241Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M131.586 88.2241H124.276V95.5345H131.586V88.2241Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M138.897 88.2241H131.586V95.5345H138.897V88.2241Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M153.517 88.2241H146.207V95.5345H153.517V88.2241Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M160.828 88.2241H153.517V95.5345H160.828V88.2241Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M175.448 88.2241H168.138V95.5345H175.448V88.2241Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M182.759 88.2241H175.448V95.5345H182.759V88.2241Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M21.931 95.5345H14.6207V102.845H21.931V95.5345Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M36.5517 95.5345H29.2414V102.845H36.5517V95.5345Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M58.4828 95.5345H51.1724V102.845H58.4828V95.5345Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M65.7931 95.5345H58.4828V102.845H65.7931V95.5345Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M87.7241 95.5345H80.4138V102.845H87.7241V95.5345Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M102.345 95.5345H95.0345V102.845H102.345V95.5345Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M116.966 95.5345H109.655V102.845H116.966V95.5345Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M131.586 95.5345H124.276V102.845H131.586V95.5345Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M153.517 95.5345H146.207V102.845H153.517V95.5345Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M160.828 95.5345H153.517V102.845H160.828V95.5345Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M168.138 95.5345H160.828V102.845H168.138V95.5345Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M190.069 95.5345H182.759V102.845H190.069V95.5345Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M197.379 95.5345H190.069V102.845H197.379V95.5345Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M212 95.5345H204.69V102.845H212V95.5345Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M14.6207 102.845H7.31034V110.155H14.6207V102.845Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M21.931 102.845H14.6207V110.155H21.931V102.845Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M43.8621 102.845H36.5517V110.155H43.8621V102.845Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M51.1724 102.845H43.8621V110.155H51.1724V102.845Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M58.4828 102.845H51.1724V110.155H58.4828V102.845Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M65.7931 102.845H58.4828V110.155H65.7931V102.845Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M80.4138 102.845H73.1034V110.155H80.4138V102.845Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M87.7241 102.845H80.4138V110.155H87.7241V102.845Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M109.655 102.845H102.345V110.155H109.655V102.845Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M160.828 102.845H153.517V110.155H160.828V102.845Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M182.759 102.845H175.448V110.155H182.759V102.845Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M190.069 102.845H182.759V110.155H190.069V102.845Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M7.31034 110.155H0V117.466H7.31034V110.155Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M14.6207 110.155H7.31034V117.466H14.6207V110.155Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M21.931 110.155H14.6207V117.466H21.931V110.155Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M73.1034 110.155H65.7931V117.466H73.1034V110.155Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M80.4138 110.155H73.1034V117.466H80.4138V110.155Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M87.7241 110.155H80.4138V117.466H87.7241V110.155Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M116.966 110.155H109.655V117.466H116.966V110.155Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M146.207 110.155H138.897V117.466H146.207V110.155Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M153.517 110.155H146.207V117.466H153.517V110.155Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M160.828 110.155H153.517V117.466H160.828V110.155Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M182.759 110.155H175.448V117.466H182.759V110.155Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M197.379 110.155H190.069V117.466H197.379V110.155Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M212 110.155H204.69V117.466H212V110.155Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M7.31034 117.466H0V124.776H7.31034V117.466Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M29.2414 117.466H21.931V124.776H29.2414V117.466Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M51.1724 117.466H43.8621V124.776H51.1724V117.466Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M65.7931 117.466H58.4828V124.776H65.793
121V117.466Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M73.1034 117.466H65.7931V124.776H73.1034V117.466Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M95.0345 117.466H87.7241V124.776H95.0345V117.466Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M146.207 117.466H138.897V124.776H146.207V117.466Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M168.138 117.466H160.828V124.776H168.138V117.466Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M175.448 117.466H168.138V124.776H175.448V117.466Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M190.069 117.466H182.759V124.776H190.069V117.466Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M197.379 117.466H190.069V124.776H197.379V117.466Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M204.69 117.466H197.379V124.776H204.69V117.466Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M212 117.466H204.69V124.776H212V117.466Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M29.2414 124.776H21.931V132.086H29.2414V124.776Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M43.8621 124.776H36.5517V132.086H43.8621V124.776Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M58.4828 124.776H51.1724V132.086H58.4828V124.776Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M65.7931 124.776H58.4828V132.086H65.7931V124.776Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M73.1034 124.776H65.7931V132.086H73.1034V124.776Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M109.655 124.776H102.345V132.086H109.655V124.776Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M116.966 124.776H109.655V132.086H116.966V124.776Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M124.276 124.776H116.966V132.086H124.276V124.776Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M146.207 124.776H138.897V132.086H146.207V124.776Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M160.828 124.776H153.517V132.086H160.828V124.776Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M175.448 124.776H168.138V132.086H175.448V124.776Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M190.069 124.776H182.759V132.086H190.069V124.776Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M212 124.776H204.69V132.086H212V124.776Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M7.31034 132.086H0V139.397H7.31034V132.086Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M21.931 132.086H14.6207V139.397H21.931V132.086Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M43.8621 132.086H36.5517V139.397H43.8621V132.086Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M51.1724 132.086H43.8621V139.397H51.1724V132.086Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M58.4828 132.086H51.1724V139.397H58.4828V132.086Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M73.1034 132.086H65.7931V139.397H73.1034V132.086Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M80.4138 132.086H73.1034V139.397H80.4138V132.086Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M87.7241 132.086H80.4138V139.397H87.7241V132.086Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M95.0345 132.086H87.7241V139.397H95.0345V132.086Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M109.655 132.086H102.345V139.397H109.655V132.086Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M116.966 132.086H109.655V139.397H116.966V132.086Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M124.276 132.086H116.966V139.397H124.276V132.086Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M138.897 132.086H131.586V139.397H138.897V132.086Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M146.207 132.086H138.897V139.397H146.207V132.086Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M168.138 132.086H160.828V139.397H168.138V132.086Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M7.31034 139.397H0V146.707H7.31034V139.397Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M29.2414 139.397H21.931V146.707H29.2414V139.397Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M36.5517 139.397H29.2414V146.707H36.5517V139.397Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M43.8621 139.397H36.5517V146.707H43.8621V139.397Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M65.7931 139.397H58.4828V146.707H65.7931V139.397Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M73.1034 139.397H65.7931V146.707H73.1034V139.397Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M102.345 139.397H95.0345V146.707H102.345V139.397Z`,fill:`#F9F9F9`}
12),I.createElement(`path`,{d:`M109.655 139.397H102.345V146.707H109.655V139.397Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M146.207 139.397H138.897V146.707H146.207V139.397Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M153.517 139.397H146.207V146.707H153.517V139.397Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M168.138 139.397H160.828V146.707H168.138V139.397Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M212 139.397H204.69V146.707H212V139.397Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M7.31034 146.707H0V154.017H7.31034V146.707Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M14.6207 146.707H7.31034V154.017H14.6207V146.707Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M21.931 146.707H14.6207V154.017H21.931V146.707Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M36.5517 146.707H29.2414V154.017H36.5517V146.707Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M43.8621 146.707H36.5517V154.017H43.8621V146.707Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M51.1724 146.707H43.8621V154.017H51.1724V146.707Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M73.1034 146.707H65.7931V154.017H73.1034V146.707Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M95.0345 146.707H87.7241V154.017H95.0345V146.707Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M109.655 146.707H102.345V154.017H109.655V146.707Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M124.276 146.707H116.966V154.017H124.276V146.707Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M131.586 146.707H124.276V154.017H131.586V146.707Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M146.207 146.707H138.897V154.017H146.207V146.707Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M153.517 146.707H146.207V154.017H153.517V146.707Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M160.828 146.707H153.517V154.017H160.828V146.707Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M168.138 146.707H160.828V154.017H168.138V146.707Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M175.448 146.707H168.138V154.017H175.448V146.707Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M182.759 146.707H175.448V154.017H182.759V146.707Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M190.069 146.707H182.759V154.017H190.069V146.707Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M204.69 146.707H197.379V154.017H204.69V146.707Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M212 146.707H204.69V154.017H212V146.707Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M87.7241 154.017H80.4138V161.328H87.7241V154.017Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M102.345 154.017H95.0345V161.328H102.345V154.017Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M116.966 154.017H109.655V161.328H116.966V154.017Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M124.276 154.017H116.966V161.328H124.276V154.017Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M146.207 154.017H138.897V161.328H146.207V154.017Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M153.517 154.017H146.207V161.328H153.517V154.017Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M182.759 154.017H175.448V161.328H182.759V154.017Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M190.069 154.017H182.759V161.328H190.069V154.017Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M7.31034 161.328H0V168.638H7.31034V161.328Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M14.6207 161.328H7.31034V168.638H14.6207V161.328Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M21.931 161.328H14.6207V168.638H21.931V161.328Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M29.2414 161.328H21.931V168.638H29.2414V161.328Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M36.5517 161.328H29.2414V168.638H36.5517V161.328Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M43.8621 161.328H36.5517V168.638H43.8621V161.328Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M51.1724 161.328H43.8621V168.638H51.1724V161.328Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M65.7931 161.328H58.4828V168.638H65.7931V161.328Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M73.1034 161.328H65.7931V168.638H73.1034V161.328Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M102.345 161.328H95.0345V168.638H102.345V161.328Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M109.655 161.328H102.345V168.638H109.655V161.328Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M153.517 161.328H146.207V168.638H153.517V161.328Z`,fill:`#F9F9F9`}
12),I.createElement(`path`,{d:`M168.138 161.328H160.828V168.638H168.138V161.328Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M182.759 161.328H175.448V168.638H182.759V161.328Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M204.69 161.328H197.379V168.638H204.69V161.328Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M212 161.328H204.69V168.638H212V161.328Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M7.31034 168.638H0V175.948H7.31034V168.638Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M51.1724 168.638H43.8621V175.948H51.1724V168.638Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M73.1034 168.638H65.7931V175.948H73.1034V168.638Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M80.4138 168.638H73.1034V175.948H80.4138V168.638Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M87.7241 168.638H80.4138V175.948H87.7241V168.638Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M102.345 168.638H95.0345V175.948H102.345V168.638Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M131.586 168.638H124.276V175.948H131.586V168.638Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M146.207 168.638H138.897V175.948H146.207V168.638Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M153.517 168.638H146.207V175.948H153.517V168.638Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M182.759 168.638H175.448V175.948H182.759V168.638Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M197.379 168.638H190.069V175.948H197.379V168.638Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M204.69 168.638H197.379V175.948H204.69V168.638Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M212 168.638H204.69V175.948H212V168.638Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M7.31034 175.948H0V183.259H7.31034V175.948Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M21.931 175.948H14.6207V183.259H21.931V175.948Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M29.2414 175.948H21.931V183.259H29.2414V175.948Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M36.5517 175.948H29.2414V183.259H36.5517V175.948Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M51.1724 175.948H43.8621V183.259H51.1724V175.948Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M73.1034 175.948H65.7931V183.259H73.1034V175.948Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M80.4138 175.948H73.1034V183.259H80.4138V175.948Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M87.7241 175.948H80.4138V183.259H87.7241V175.948Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M116.966 175.948H109.655V183.259H116.966V175.948Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M124.276 175.948H116.966V183.259H124.276V175.948Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M138.897 175.948H131.586V183.259H138.897V175.948Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M153.517 175.948H146.207V183.259H153.517V175.948Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M160.828 175.948H153.517V183.259H160.828V175.948Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M168.138 175.948H160.828V183.259H168.138V175.948Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M175.448 175.948H168.138V183.259H175.448V175.948Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M182.759 175.948H175.448V183.259H182.759V175.948Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M190.069 175.948H182.759V183.259H190.069V175.948Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M204.69 175.948H197.379V183.259H204.69V175.948Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M7.31034 183.259H0V190.569H7.31034V183.259Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M21.931 183.259H14.6207V190.569H21.931V183.259Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M29.2414 183.259H21.931V190.569H29.2414V183.259Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M36.5517 183.259H29.2414V190.569H36.5517V183.259Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M51.1724 183.259H43.8621V190.569H51.1724V183.259Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M65.7931 183.259H58.4828V190.569H65.7931V183.259Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M95.0345 183.259H87.7241V190.569H95.0345V183.259Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M124.276 183.259H116.966V190.569H124.276V183.259Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M131.586 183.259H124.276V190.569H131.586V183.259Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M153.517 183.259H146.207V190.569H153.517V183.259Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M160.828 183.259H153.517V190.569H160.828
12V183.259Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M168.138 183.259H160.828V190.569H168.138V183.259Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M175.448 183.259H168.138V190.569H175.448V183.259Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M190.069 183.259H182.759V190.569H190.069V183.259Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M204.69 183.259H197.379V190.569H204.69V183.259Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M7.31034 190.569H0V197.879H7.31034V190.569Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M21.931 190.569H14.6207V197.879H21.931V190.569Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M29.2414 190.569H21.931V197.879H29.2414V190.569Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M36.5517 190.569H29.2414V197.879H36.5517V190.569Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M51.1724 190.569H43.8621V197.879H51.1724V190.569Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M80.4138 190.569H73.1034V197.879H80.4138V190.569Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M95.0345 190.569H87.7241V197.879H95.0345V190.569Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M102.345 190.569H95.0345V197.879H102.345V190.569Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M109.655 190.569H102.345V197.879H109.655V190.569Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M131.586 190.569H124.276V197.879H131.586V190.569Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M138.897 190.569H131.586V197.879H138.897V190.569Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M146.207 190.569H138.897V197.879H146.207V190.569Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M153.517 190.569H146.207V197.879H153.517V190.569Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M160.828 190.569H153.517V197.879H160.828V190.569Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M182.759 190.569H175.448V197.879H182.759V190.569Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M197.379 190.569H190.069V197.879H197.379V190.569Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M7.31034 197.879H0V205.19H7.31034V197.879Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M51.1724 197.879H43.8621V205.19H51.1724V197.879Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M65.7931 197.879H58.4828V205.19H65.7931V197.879Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M80.4138 197.879H73.1034V205.19H80.4138V197.879Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M102.345 197.879H95.0345V205.19H102.345V197.879Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M109.655 197.879H102.345V205.19H109.655V197.879Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M116.966 197.879H109.655V205.19H116.966V197.879Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M124.276 197.879H116.966V205.19H124.276V197.879Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M131.586 197.879H124.276V205.19H131.586V197.879Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M160.828 197.879H153.517V205.19H160.828V197.879Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M168.138 197.879H160.828V205.19H168.138V197.879Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M175.448 197.879H168.138V205.19H175.448V197.879Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M182.759 197.879H175.448V205.19H182.759V197.879Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M190.069 197.879H182.759V205.19H190.069V197.879Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M204.69 197.879H197.379V205.19H204.69V197.879Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M212 197.879H204.69V205.19H212V197.879Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M7.31034 205.19H0V212.5H7.31034V205.19Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M14.6207 205.19H7.31034V212.5H14.6207V205.19Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M21.931 205.19H14.6207V212.5H21.931V205.19Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M29.2414 205.19H21.931V212.5H29.2414V205.19Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M36.5517 205.19H29.2414V212.5H36.5517V205.19Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M43.8621 205.19H36.5517V212.5H43.8621V205.19Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M51.1724 205.19H43.8621V212.5H51.1724V205.19Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M65.7931 205.19H58.4828V212.5H65.7931V205.19Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M73.1034 205.19H65.7931V212.5H73.1034V205.19Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M87.7241 205.19H80.4138V212.5H87.7241V205.19Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M102.345 205.19H95.0345V212.5H102.345V205.19Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M109.655 205.19H102.345V212.5H109.655V205.19Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M160.828 205.19H153.517V212.5H160.828V2
1205.19Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M175.448 205.19H168.138V212.5H175.448V205.19Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M182.759 205.19H175.448V212.5H182.759V205.19Z`,fill:`#F9F9F9`}),I.createElement(`path`,{d:`M197.379 205.19H190.069V212.5H197.379V205.19Z`,fill:`#F9F9F9`})),OL=()=>(0,L.jsx)(D,{container:!0,alignItems:`center`,justifyContent:`center`,overflow:`hidden`,zIndex:1,children:(0,L.jsx)(D,{position:`absolute`,bottom:0,zIndex:0,overflow:`hidden`,children:(0,L.jsx)(EL,{})})}),kL=ur(D)(({theme:e})=>({flex:0,flexDirection:`column`,margin:`auto`,width:480,marginTop:e.spacing(15),borderRadius:300,zIndex:2,background:`radial-gradient(50.17% 50.17% at 49.91% 53.65%, #FFF 0%, rgba(255, 255, 255, 0.94) 84.38%, rgba(255, 255, 255, 0.70) 90.63%, rgba(255, 255, 255, 0.00) 100%)`})),AL=ur(A)(()=>({padding:0,"&:hover":{background:`none`},span:{textDecoration:`underline`}})),jL=async e=>{let{data:t}=await X.get(`/cards/onboarding/countries`,e?{params:{filter:e}}:{});return t},ML=async e=>{let{data:t}=await X.get(`/cards/onboarding/industries`,e?{params:{filter:e}}:{});return t.categories},NL=async()=>{let{data:e}=await X.get(`/cards/onboarding`);return{...e,currentStage:uT[e.currentStage],hack_to_prevent_tanstack_query_optimization_when_data_same:new Date}},PL=async e=>{let{data:t}=await X.post(`/cards/onboarding/registration-country`,e);return t},FL=async()=>{let{data:e}=await X.post(`/cards/onboarding/agreement`);return e},IL=async e=>{let{data:t}=await X.post(`/cards/onboarding/company-details`,e);return t},LL=async e=>{let{data:t}=await X.post(`/cards/onboarding/business-activity`,e);return t},RL=async e=>{let{data:t}=await X.post(`/cards/onboarding/expected-activity`,e);return t},zL=async e=>{let{data:t}=await X.post(`/cards/onboarding/address`,e);return t},BL=async e=>{let{data:t}=await X.post(`/cards/onboarding/affiliated`,e);return t},VL=async()=>{let{data:e}=await X.post(`/cards/onboarding/documents`);return e},HL=async e=>{let{data:t}=await X.post(`/cards/onboarding/file`,e);return t},UL=async e=>{let{data:t}=await X.delete(`/cards/onboarding/file`,{data:e});return t},WL=async()=>{let{data:e}=await X.delete(`/cards/onboarding/exit`);return e},GL=async e=>{let{data:t}=await X.post(`/cards/onboarding/company-lookup/enrich`,{companyId:e});return t},KL=async()=>{let{data:e}=await X.post(`/cards/onboarding/company-lookup/reset`);return e},qL=async()=>{let{data:e}=await X.post(`/cards/onboarding/company-lookup/manual`,{});return e},JL=e=>typeof e==`object`&&!!e&&`status`in e&&e.status===403,YL=e=>{if(JL(e)){$.routeStore.navigate(Ho);return}b({message:z.t(`Couldn't proceed to the next step, please try again`),variant:`attention`})},XL={all:[`money-onboarding`],data:()=>[...XL.all,`data`],countries:e=>[`countries`,e],industries:e=>[`industries`,e],companyLookup:e=>[...XL.all,`company-lookup`,e]},ZL=XL,QL=()=>N({queryKey:XL.data(),queryFn:NL}),$L=e=>F({...QL(),...e}),eR=()=>{let e=P();return M({mutationFn:PL,onSuccess:()=>{e.invalidateQueries({queryKey:XL.data()})},onError:()=>{b({message:z.t(`Couldn't proceed to the next step, please try again`),variant:`attention`})}})},tR=()=>{let e=P();return M({mutationFn:FL,onSuccess:()=>{e.invalidateQueries({queryKey:XL.data()})},onError:()=>{b({message:z.t(`Couldn't proceed to the next step, please try again`),variant:`attention`})}})},nR=()=>{let e=P();return M({mutationFn:IL,onSuccess:()=>{e.invalidateQueries({queryKey:XL.data()})}
12,onError:YL})},rR=()=>{let e=P();return M({mutationFn:LL,onSuccess:()=>{e.invalidateQueries({queryKey:XL.data()})},onError:YL})},iR=()=>{let e=P();return M({mutationFn:RL,onSuccess:()=>{e.invalidateQueries({queryKey:XL.data()})},onError:YL})},aR=()=>{let e=P();return M({mutationFn:zL,onSuccess:()=>{e.invalidateQueries({queryKey:XL.data()})},onError:YL})},oR=()=>{let e=P();return M({mutationFn:BL,onSuccess:async()=>{await e.refetchQueries({queryKey:XL.data()})},onError:YL})},sR=e=>N({queryKey:XL.countries(e),queryFn:()=>jL(e),select:e=>e.countries}),cR=(e,t)=>F({...sR(e),...t}),lR=()=>F({...sR(),select:e=>e.probableCountryCode}),uR=e=>N({queryKey:XL.industries(e),queryFn:()=>ML(e)}),dR=(e,t)=>F({...uR(e),...t}),fR=()=>M({mutationFn:async({file:e,documentName:t,documentSide:n,formNumber:r,subFormNumber:i,documentType:a})=>{let o=new FormData;o.append(`file`,e),o.append(`documentSide`,n),o.append(`formNumber`,r.toString()),o.append(`documentName`,t.toString()),a&&o.append(`documentType`,a.toString()),i&&o.append(`subFormNumber`,i.toString()),await HL(o)}}),pR=()=>M({mutationFn:async e=>{try{return await UL(e),!0}catch{return!1}}}),mR=()=>{let e=P();return M({mutationFn:VL,onSuccess:async()=>{await Promise.all([e.refetchQueries({queryKey:XL.data()}),e.refetchQueries({queryKey:Ed.init()})])}
12,onError:YL})},hR=()=>{let e=P();return M({mutationFn:WL,onSuccess:async()=>{await Promise.all([e.refetchQueries({queryKey:XL.data()}),e.refetchQueries({queryKey:Ed.init()})])},onError:()=>{b({message:z.t(`Couldn't proceed to the next step, please try again`),variant:`attention`})}})},gR=(e,t=!0)=>F({queryKey:XL.companyLookup(e),queryFn:async({signal:t})=>{let{data:n}=await X.get(`/cards/onboarding/company-lookup/search`,{params:{query:e},timeout:0,signal:t});return n.companies},enabled:t&&e.length>=3,retry:!1,gcTime:0}),_R=()=>{let e=P();return M({mutationFn:GL,onSuccess:t=>{e.setQueryData(XL.data(),e=>e&&{...e,companyDetails:{...e.companyDetails,...t.data.companyDetails},companyLookup:{...e.companyLookup,...t.data.companyLookup}}),e.invalidateQueries({queryKey:XL.data()})},onError:()=>{b({message:z.t(`Failed to fetch company details`),variant:`attention`})}})},vR=()=>{let e=P();return M({mutationFn:KL,onSuccess:t=>{e.setQueryData(XL.data(),e=>e&&{...e,companyDetails:{...e.companyDetails,...t.data.companyDetails},companyLookup:{...e.companyLookup,...t.data.companyLookup}}),e.invalidateQueries({queryKey:XL.data()})},onError:()=>{b({message:z.t(`Failed to reset company lookup`),variant:`attention`})}})},yR=()=>{let e=P();return M({mutationFn:qL,onSuccess:()=>{e.invalidateQueries({queryKey:XL.data()})},onError:()=>{b({message:z.t(`Failed to set manual entry mode`),variant:`attention`})}})},bR=function(e){return e.ONE_TEN=`ONE_TEN`,e.ELEVEN_FORTY_NINE=`ELEVEN_FORTY_NINE`,e.FIFTY_NINETY_NINE=`FIFTY_NINETY_NINE`,e.ONE_HUNDRED_TWO_FORTY_NINE=`ONE_HUNDRED_TWO_FORTY_NINE`,e.TWO_FIFTY_FOUR_NINETY_NINE=`TWO_FIFTY_FOUR_NINETY_NINE`,e.FIVE_HUNDRED_PLUS=`FIVE_HUNDRED_PLUS`,e}({}),xR=function(e){return e.LESS_THAN_10K=`LESS_THAN_10K`,e.TEN_K_TO_50K=`TEN_K_TO_50K`,e.FIFTY_K_TO_200K=`FIFTY_K_TO_200K`,e.TWO_HUNDRED_K_TO_1M=`TWO_HUNDRED_K_TO_1M`,e.OVER_1M=`OVER_1M`,e}({}),SR=function(e){return e.LESS_THAN_1K=`LESS_THAN_1K`,e.ONE_K_TO_5K=`ONE_K_TO_5K`,e.FIVE_K_TO_25K=`FIVE_K_TO_25K`,e.TWENTYFIVE_K_TO_100K=`TWENTYFIVE_K_TO_100K`,e.ONEHUNDRED_K_TO_500K=`ONEHUNDRED_K_TO_500K`,e.OVER_500K=`OVER_500K`,e}({}),CR=function(e){return e.CUSTOMER_PAYMENTS=`CUSTOMER_PAYMENTS`,e.SUBSCRIPTIONS=`SUBSCRIPTIONS`,e.VENDOR_PAYMENTS=`VENDOR_PAYMENTS`,e.PAYROLL=`PAYROLL`,e.INTERNAL_TRANSFERS=`INTERNAL_TRANSFERS`,e.EXPENSE_REIMBURSEMENTS=`EXPENSE_REIMBURSEMENTS`,e.CARD_PAYMENTS=`CARD_PAYMENTS`,e.REFUNDS_CHARGEBACKS=`REFUNDS_CHARGEBACKS`,e.GOVERNMENT_TAX_PAYMENTS=`GOVERNMENT_TAX_PAYMENTS`,e.OTHER=`OTHER`,e}({}),wR=1e3,TR=({stepName:e,stepNumber:t})=>{let{track:n}=Pw(),r=(0,I.useRef)(Date.now());return(0,I.useEffect)(()=>{n(kw.OnboardingStepViewed,{step_name:e,step_number:t}),r.current=Date.now();let i=e;if(i!==Mw.Compliance)return()=>{let e=Date.now()-r.current;n(kw.OnboardingTimeSpent,{step_name:i,step_number:t,time_spent:Math.round(e/wR)})}},[e,t,n]),{trackStepAction:i=>{let a=Date.now()-r.current;n(kw.OnboardingStepAction,{step_name:e,step_number:t,time_spent:Math.round(a/wR),...i})}}},ER=({onError:e,onUpload:t,onDelete:n})=>{let{t:r}=G();return{onUploadFile:(0,I.useCallback)(async({file:i,payload:a,name:o})=>{if(i)try{return await t({...a,file:i}),!0}catch(t){return e(o,{message:Xc({error:t,fallbackMessage:r(`The file failed to upload, please try again.`)}),type:`custom`}),!1}return await n(a),!0},[e,t,n,r])}},Q={Agreement:`agreement`,CompanyDetails:`companyDetails`,BusinessActivity:`businessActivity`,ExpectedActivity:`expectedActivity`,CompanyAddress:`companyAddress`,Shareholders:`shareholders`,ShareholdersDraft:`shareholdersDraft`,Directors:`directors`,DirectorsDraft:`directorsDraft`,DirectorsLinkedShareholders:`directorsLinkedShareholders`,DirectorsHasAdditional:`directorsHasAdditional`,DirectorsAdditionalCount:`directorsAdditionalCount`,DirectorsConfirmationChecked:`directorsConfirmationChecked`},DR=[Q.Directors,Q.DirectorsDraft,Q.DirectorsLinkedShareholders,Q.DirectorsHasAdditional,Q.DirectorsAdditionalCount,Q.DirectorsConfirmationChecked],OR=[Q.Shareholders,Q.ShareholdersDraft],kR=e=>{try{e.forEach(e=>localStorage.removeItem(e))}catch{}},AR=e=>{try{let t=localStorage.getItem(e);if(!t)return null;let n=JSON.parse(t);return n&&typeof n==`object`&&Object.keys(n).length>0?n:null}catch{return null}},jR=()=>{let{t:e}=G(),t=Ar(),{data:n}=nG(),r=hR(),i=(0,I.useCallback)(()=>{t(Uo)},[t]),a=(0,I.useCallback)(async()=>
12{await r.mutateAsync(),Object.values(Q).forEach(e=>localStorage.removeItem(e)),t(Ho)},[r,t]);return(0,L.jsxs)(D,{container:!0,direction:`column`,width:`100%`,height:`100%`,bgcolor:`neutral0`,py:3,px:3,overflow:`hidden`,children:[(0,L.jsxs)(D,{container:!0,alignItems:`center`,justifyContent:`space-between`,children:[(0,L.jsx)(K,{variant:`headlineM`,children:`Cards`}),(0,L.jsx)(AL,{variant:`textGray`,onClick:i,children:(0,L.jsx)(K,{color:`neutral400`,variant:`labelM`,children:`View Disclosures`})})]}),(0,L.jsxs)(kL,{container:!0,children:[(0,L.jsx)(O,{display:`flex`,justifyContent:`center`,alignItems:`center`,padding:1.5,borderRadius:2,border:1,borderColor:`neutral200`,mb:4,width:`fit-content`,children:(0,L.jsx)(At,{sx:{color:`red500`,width:32,height:32}})}),(0,L.jsx)(K,{variant:`headlineS`,mb:.5,children:`Application rejected`}),(0,L.jsx)(K,{variant:`bodyM`,children:`We cannot process your registration due to our compliance policies and risk assessment criteria.`}),(0,L.jsxs)(T,{direction:`row`,gap:2,mt:3,children:[(0,L.jsx)(A,{onClick:()=>ml(n?.companyName??``),variant:`primary`,children:e(`Contact Support`)}),(0,L.jsx)(A,{variant:`textBlue`,onClick:a,loading:r.isPending,children:`Go to Get Started`})]})]}),(0,L.jsx)(OL,{})]})},MR=ur(D)(({theme:e})=>({padding:e.spacing(3,3,0)})),NR=ur(Kn)(({theme:e})=>({padding:e.spacing(0,0,0,4),listStyle:`initial`,pl:4})),PR=ur(Dr)(({theme:e})=>({padding:0,display:`list-item`,color:e.extendPalette.neutral400})),FR=()=>{let{t:e}=G();return(0,L.jsxs)(MR,{container:!0,direction:`column`,width:`100%`,height:`100%`,gap:3,children:[(0,L.jsx)(hE,{featureTitle:e(`Money`),to:Ho,title:e(`Disclosures`)}),(0,L.jsxs)(D,{container:!0,direction:`column`,gap:1,width:580,children:[(0,L.jsx)(K,{color:`neutral500`,variant:`titleL`,children:`Prevention of fraud`}),(0,L.jsxs)(NR,{children:[(0,L.jsx)(PR,{children:(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`Not sharing information e.g. we will never ask you to share your password`})}),(0,L.jsx)(PR,{children:(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`APP Scams - be aware of anyone pressuring you to transfer money, even if purporting to be from Moorwand or any other financial institution.`})})]})]}),(0,L.jsx)(E,{}),(0,L.jsxs)(D,{container:!0,direction:`column`,gap:1,width:580,children:[(0,L.jsx)(K,{color:`neutral500`,variant:`titleL`,children:`Safeguarding`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`Ensuring customers are clear that FSCS protection is not in place, and instead, funds are lodged with a credit institution, in segregated client accounts.`})]}),(0,L.jsx)(E,{}),(0,L.jsxs)(D,{container:!0,direction:`column`,gap:1,width:580,children:[(0,L.jsx)(K,{color:`neutral500`,variant:`titleL`,children:`Fees and charges`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`Ensuring the costs of running an account, transacting, foreign exchange fees and any redemption or closure fees, are made clear, and consumers can make informed decisions ahead of being charged for a product or service.`})]}),(0,L.jsx)(E,{}),(0,L.jsxs)(D,{container:!0,direction:`column`,gap:1,pb:3,width:580,children:[(0,L.jsx)(K,{color:`neutral500`,variant:`titleL`,children:`Payment service providers`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`Find out more about non-bank payment providers, what protections you have if you use their services, and what happens if a provider fails.`})]})]})},IR=t({Disclosures:()=>FR,Verification:()=>TL,VerificationFailed:()=>jR,default:()=>xL});function LR(){let[e,t]=(0,I.useState)({isOpen:!1}),n=(0,I.useCallback)(e=>t({isOpen:!0,payload:e}),[]),r=(0,I.useCallback)(()=>t({isOpen:!1,payload:void 0}),[]);return(0,I.useMemo)(()=>({isOpen:e.isOpen,payload:e.payload,open:n,close:r}),[e,n,r])}var RR=(0,I.createContext)(null),zR=({children:e})=>{let t=LR(),n=LR(),r=LR(),i=LR(),a=LR(),o=LR(),s=LR(),c=LR(),l=LR(),u=LR(),d=LR(),f=LR(),p=LR(),m=LR(),h=(0,I.useMemo)(()=>({moneyBalance:t,addFunds:n,cryptoTopUp:r,requestMoney:i,addAccount:a,cardDetails:o,updateCardName:s,editAccount:c,v4Agreement:l,usAgreement:u,terminateCard:d,restrictedCountries:f,documentsChecklist:p,exitCadsFlow:m}),[t,n,r,i,a,o,s,c,l,u,d,f,p,m]);return(0,L.jsx)(RR.Provider,{value:h,children:e})},BR=()=>
12{let e=(0,I.useContext)(RR);if(!e)throw Error(`Money modal hooks must be used within a MoneyModalsProvider`);return e},VR=()=>BR().moneyBalance,HR=()=>BR().addFunds,UR=()=>BR().cryptoTopUp,WR=()=>BR().requestMoney,GR=()=>BR().addAccount,KR=()=>BR().cardDetails,qR=()=>BR().updateCardName,JR=()=>BR().editAccount,YR=()=>BR().v4Agreement,XR=()=>BR().usAgreement,ZR=()=>BR().terminateCard,QR=()=>BR().documentsChecklist,$R=ur(Kn)(({theme:e})=>({padding:e.spacing(0,0,0,4),listStyle:`initial`})),ez=ur(Dr)(()=>({padding:0,display:`list-item`})),tz=[{key:`eu`,label:`Europe`},{key:`uk`,label:`United Kingdom`},{key:`us`,label:`United States`,disabled:!0}],nz=`Documents checklist 13To open your account, you'll need these documents ready: 14 15Company documents 16⢠Company registration certificate 17 Official registration document. 18⢠Proof of registered address 19 One of the following (issued within the last 3 months): 20 - Company utility bill 21 - Bank statement 22 Must clearly show your companyâs name and address. 23⢠Proof of operational address (if different) 24 One of the following (issued within the last 3 months): 25 - Company utility bill 26 - Bank statement 27 Must clearly show your companyâs name and address. 28 29For each individual shareholder 30⢠Photo ID 31 - ID card 32 - Passport 33 - Driver's license 34 - Permanent residence permit 35 The document must clearly show your photo, full name, and date of birth, and it must be valid (not expired). 36⢠Proof residence address 37 One document (issued within 3 months) showing the name and address: 38 - Utility bill 39 - Bank statement 40 - Rental agreement 41 - Government-issued document 42 43For each legal shareholder 44⢠Company registration certificate 45⢠Register of shareholders and directors 46⢠Proof of company address (registered or operational) 47 One of the following (issued within the last 3 months): 48 - Company utility bill 49 - Bank statement 50 Must clearly show your companyâs name and address. 51⢠Identity documents of the owners (if individuals) 52 - Photo ID 53 - Proof residence address 54 55We might also ask for 56⢠Business license 57 If your industry requires one (e.g. financial services, healthcare) 58⢠Source of funds 59 One document showing where your companyâs funds come from (issued within the last 6 months): 60 - Recent bank statements 61 - Last audited annual accounts 62 - Latest financial statement 63 - Investment agreement 64 - Invoices to clients 65 Must show your companyâs name. 66⢠Shareholders register 67 Only if your incorporation document doesn't list all owners 68⢠Identity documents of directors (if individuals) 69⢠Registration documents of directors (if legal entity) 70⢠Registration documents of shareholders and directors owners (if legal entity) 71`,rz=`What you'll need to apply 72To open a payment account, you may need to provide documents to verify your company and, in some cases, the individuals who own or control it. 73 74Company documents 75⢠Certificate or articles of incorporation 76⢠Government-issued business license 77⢠Partnership agreement 78⢠Trust instrument 79⢠Other official company registration document 80 81Beneficiary owners, control persons 82If a beneficial owner or control person is a non-U.S. person, we may ask for their passport. 83⢠Passport 84`,iz=()=>(0,L.jsxs)(D,{container:!0,direction:`column`,gap:2,children:[(0,L.jsx)(K,{color:`neutral400`,variant:`bodyM`,children:`To open your account, you'll need these documents ready:`}),(0,L.jsxs)(D,{container:!0,direction:`column`,children:[(0,L.jsx)(K,{variant:`titleM`,mb:.5,children:`Company documents`}),(0,L.jsx)($R,{children:(0,L.jsx)(ez,{children:(0,L.jsxs)(K,{variant:`bodyM`,color:`neutral500`,children:[`Company registration certificate`,(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`Official registration document.`})]})})}),(0,L.jsx)($R,{children:(0,L.jsx)(ez,{children:(0,L.jsxs)(K,{variant:`bodyM`,color:`neutral500`,children:[`Proof of registered address`,(0,L.jsxs)(K,{variant:`bodyM`,color:`neutral400`,children:[`One of the following (issued within the last 3 months):`,(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`- Company utility bill`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`- Bank statement`})]}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`Must clearly show your companyâs name and address.`})]})})}),(0,L.jsx)($R,{children:(0,L.jsxs)(ez,{children:[(0,L.jsx)(K,{variant:`bodyM`,color:`neutral500`,children:`Proof of operational address (if different)`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,display:`block`,mb:.5,children:`One of the following (issued within the last 3 months):`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,display:`block`,children:`- Company utility bill`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,display:`block`,children:`- Bank statement`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,display:`block`,children:`Must clearly show your company's name and address.`})]})})]}),(0,L.jsx)(E,{}),(0,L.jsxs)(D,{container:!0,direction:`column`,children:[(0,L.jsx)(K,{variant:`titleM`,mb:.5,children:`For each individual shareholder`}),(0,L.jsx)($R,{children:(0,L.jsxs)(ez,{children:[(0,L.jsxs)(K,{variant:`bodyM`,color:`neutral500`,children:[`Photo ID`,(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`- ID card`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`- Pass
84port`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`- Driver's license`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`- Permanent residence permit`})]}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`The document must clearly show your photo, full name, and date of birth, and it must be valid (not expired).`})]})}),(0,L.jsx)($R,{children:(0,L.jsx)(ez,{children:(0,L.jsxs)(K,{variant:`bodyM`,color:`neutral500`,children:[`Proof residence address`,(0,L.jsxs)(K,{variant:`bodyM`,color:`neutral400`,children:[`One document (issued within 3 months) showing the name and address:`,(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`- Utility bill`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`- Bank statement`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`- Rental agreement`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`- Government-issued document`})]})]})})})]}),(0,L.jsx)(E,{}),(0,L.jsxs)(D,{container:!0,direction:`column`,children:[(0,L.jsx)(K,{variant:`titleM`,mb:.5,children:`For each legal shareholder`}),(0,L.jsxs)($R,{children:[(0,L.jsx)(ez,{children:(0,L.jsx)(K,{variant:`bodyM`,color:`neutral500`,children:`Company registration certificate`})}),(0,L.jsx)(ez,{children:(0,L.jsx)(K,{variant:`bodyM`,color:`neutral500`,children:`Register of shareholders and directors`})}),(0,L.jsx)(ez,{children:(0,L.jsxs)(K,{variant:`bodyM`,color:`neutral500`,children:[`Proof of company address (registered or operational)`,(0,L.jsxs)(K,{variant:`bodyM`,color:`neutral400`,children:[`One of the following (issued within the last 3 months):`,(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`- Company utility bill`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`- Bank statement`})]}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`Must clearly show your companyâs name and address.`})]})}),(0,L.jsx)(ez,{children:(0,L.jsxs)(K,{variant:`bodyM`,color:`neutral500`,children:[`Identity documents of the owners (if individuals)`,(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`- Photo ID`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`- Proof residence address`})]})})]})]}),(0,L.jsx)(E,{}),(0,L.jsxs)(D,{container:!0,direction:`column`,children:[(0,L.jsx)(K,{color:`neutral500`,variant:`titleM`,children:`We might also ask for`}),(0,L.jsxs)($R,{children:[(0,L.jsx)(ez,{children:(0,L.jsxs)(K,{variant:`bodyM`,color:`neutral500`,children:[`Business license`,(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`If your industry requires one (e.g. financial services, healthcare)`})]})}),(0,L.jsx)(ez,{children:(0,L.jsxs)(K,{variant:`bodyM`,color:`neutral500`,children:[`Source of funds`,(0,L.jsxs)(K,{variant:`bodyM`,color:`neutral400`,children:[`One document showing where your companyâs funds come from (issued within the last 6 months):`,(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`- Recent bank statements`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`- Last audited annual accounts`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`- Latest financial statement`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`- Investment agreement`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`- Invoices to clients`})]}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`Must show your companyâs name.`})]})}),(0,L.jsx)(ez,{children:(0,L.jsxs)(K,{variant:`bodyM`,color:`neutral500`,children:[`Shareholders register`,(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`Only if your incorporation document doesn't list all owners`})]})}),(0,L.jsx)(ez,{children:(0,L.jsx)(K,{variant:`bodyM`,color:`neutral500`,children:`Identity documents of directors (if individuals)`})}),(0,L.jsx)(ez,{children:(0,L.jsx)(K,{variant:`bodyM`,color:`neutral500`,children:`Registration documents of directors (if legal entity)`})}),(0,L.jsx)(ez,{children:(0,L.jsx)(K,{variant:`bodyM`,color:`neutral500`,children:`Registration documents of shareholders and directors owners (if legal entity)`})})]})]})]}),az=()=>(0,L.jsxs)(D,{container:!0,direction:`column`,gap:2,children:[(0,L.jsx)(K,{color:`neutral400`,variant:`bodyM`,children:`To open a payment account, you may
84need to provide documents to verify your company and, in some cases, the individuals who own or control it.`}),(0,L.jsxs)(D,{container:!0,direction:`column`,children:[(0,L.jsx)(K,{variant:`titleM`,mb:.5,children:`Company documents`}),(0,L.jsxs)($R,{children:[(0,L.jsx)(ez,{children:(0,L.jsx)(K,{variant:`bodyM`,color:`neutral500`,children:`Certificate or articles of incorporation`})}),(0,L.jsx)(ez,{children:(0,L.jsx)(K,{variant:`bodyM`,color:`neutral500`,children:`Government-issued business license`})}),(0,L.jsx)(ez,{children:(0,L.jsx)(K,{variant:`bodyM`,color:`neutral500`,children:`Partnership agreement`})}),(0,L.jsx)(ez,{children:(0,L.jsx)(K,{variant:`bodyM`,color:`neutral500`,children:`Trust instrument`})}),(0,L.jsx)(ez,{children:(0,L.jsx)(K,{variant:`bodyM`,color:`neutral500`,children:`Other official company registration document`})})]})]}),(0,L.jsx)(E,{}),(0,L.jsxs)(D,{container:!0,direction:`column`,children:[(0,L.jsx)(K,{variant:`titleM`,mb:.5,children:`Beneficiary owners, control persons`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,mb:.5,children:`If a beneficial owner or control person is a non-U.S. person, we may ask for their passport.`}),(0,L.jsx)($R,{children:(0,L.jsx)(ez,{children:(0,L.jsx)(K,{variant:`bodyM`,color:`neutral500`,children:`Passport`})})})]})]}),oz=()=>{let{t:e}=G(),{isOpen:t,close:n,payload:r}=QR(),{data:i}=Od(),{copyToClipboard:a}=Pu(),[o,s]=(0,I.useState)(),c=Vh(i?.region)?`us`:`eu`,l=o??c;return(0,L.jsx)(kt,{open:t,size:`large`,onClose:n,title:e(`What you'll need to apply`),submitProps:{variant:`tertiaryBlack`,sx:{marginRight:`auto`,order:1}},cancelProps:{variant:`secondary`,sx:{order:2}},onSubmit:()=>{a(l===`us`?rz:nz)(),b({message:e(`Checklist copied`),variant:`success`}),r&&r({action:jw.ModalDocumentsChecklistCopied})},submitTitle:e(`Copy Checklist`),cancelTitle:e(`Got It`),children:(0,L.jsxs)(D,{container:!0,direction:`column`,gap:2,children:[(0,L.jsx)(T,{direction:`row`,gap:1.5,children:tz.filter(e=>!e.disabled).map(({key:e,label:t})=>{let n=e===l;return(0,L.jsx)(O,{component:`button`,type:`button`,onClick:()=>s(e),sx:e=>({cursor:`pointer`,px:1.75,py:1,borderRadius:`8px`,border:`1px solid ${n?e.extendPalette.blue100:e.extendPalette.neutral200}`,backgroundColor:n?e.extendPalette.blue100:e.extendPalette.neutral0,"&:hover":{backgroundColor:n?e.extendPalette.blue100:e.extendPalette.neutral50}}),children:(0,L.jsx)(K,{variant:`labelM`,color:n?`blue500`:`neutral500`,sx:{textAlign:`center`,fontWeight:600},children:t})},e)})}),l===`us`?(0,L.jsx)(az,{}):(0,L.jsx)(iz,{})]})})};ur(Kn)(({theme:e})=>({padding:e.spacing(0,0,0,4),listStyle:`initial`,"li::marker":{color:e.extendPalette.neutral400}})),ur(Dr)(()=>({padding:0,display:`list-item`}));var sz=/^[\p{L}\p{N}!~'"?@:,*+=_\s`.-]*$/u,cz=/^[^\u0400-\u04FF]*$/,lz={BASE_ALLOWED_CHARACTERS:/^$|^[\p{L}\p{N}\p{Pd}!~'"?@:,*.+=_/\s]+$/u,BASE_ALLOWED_CHARACTERS_WITHOUT_COLON:/^$|^[\p{L}\p{N}\p{Pd}!~'"?@,*.+=_/\s]+$/u,PROVIDER_SET_1:/^[0-9a-zA-Z .,&-/'#$()[]\]+$/,PROVIDER_SET_2:/^[a-zA-Z-,./ ]+$/,PROVIDER_SET_3:/^[0-9a-zA-Z]+$/,PROVIDER_SET_4:/^(?!')(?!.*[^0-9a-zA-Z]')[0-9a-zA-Z-,./' ]+$/,PROVIDER_SET_5:/^[0-9a-zA-Z-,./&!?;:*+ @()[]{}#%']+$/,PROVIDER_SET_6:/^[0-9a-zA-Z- ]+$/,PROVIDER_SET_7:/^[a-zA-Z\s'-]+$/},uz=({description:e,label:t})=>{let{t:n}=G(),{control:r}=ri();return(0,L.jsxs)(D,{container:!0,direction:`column`,gap:3,children:[e&&(0,L.jsx)(k,{color:`neutral400`,variant:`bodyM`,children:e}),(0,L.jsx)(Ln,{name:`accountName`,control:r,label:t??n(`Account name`),placeholder:n(`Type name`)})]})},dz=ti({accountName:Yr().trim().required(ta).matches(sz,sa)}),fz=()=>{let{t:e}=G(),{isOpen:t,close:n}=GR(),{currentBalance:r}=xf(),i=jd(),{isPending:a,mutateAsync:o}=gp(i?{successMessage:e(`Budget created`),errorMessage:e(`Couldn't create budget. Please try again.`)}:void 0),s=ei({resolver:ii(dz),mode:`onChange`}),{handleSubmit:c,formState:{isValid:l},reset:u}=s,d=()=>{n(),u()};return(0,L.jsx)(kt,{open:t,size:`small`,onClose:d,onSubmit:c(async({accountName:e})=>{if(!(a||!r?.id))try{await o({ledgerBankAccountId:r.id,accountName:e}),d()}catch{}}),disabled:!l,loading:a,title:e(i?`Create budget`:`New account`),submitTitle:e(`Create`),isForm:!0,children:(0,L.jsx)(ni,{...s,children:(0,L.jsx)(uz,{description:e(i?`Use budgets to organize funds and manage card spend. Your company can have up to 10 budgets, including the Main budget.`:`This creates an internal account (without a number) for allocating balance funds.`),label:i?e(`Budget name`):void 0})})})},pz=ti({accountName:Yr().trim().required(ta).matches(sz,sa)}),mz=()=>{let{t:e}=G(),t=jd(),{isOpen:n,close:r,payload:i}=JR(),a=i?.accountId,{all:o}=Hp(),{mutateAsync:s,isPending:c}=xp(t?{successMessage:e(`Budget name updated`),errorMessage:e(`We couldn't rename the budget. Please try again.`)}:void 0),l=ei({resolver:ii(pz),mode:`onChange`}),{reset:u,handleSubmit:d,formState:{isValid:f,isDirty:p}}=l;return(0,I.useEffect)(()=>
84{if(!a)return;let e=o.find(({id:e})=>e===a);e&&u({accountName:e.accountName})},[n,o,a,u]),(0,L.jsx)(kt,{open:n,size:`small`,onClose:r,onSubmit:d(async({accountName:e})=>{a&&(await s({accountId:a,name:e}),r())}),disabled:!f||!p,loading:c,title:e(t?`Rename budget`:`Rename account`),submitTitle:e(`Save`),isForm:!0,children:(0,L.jsx)(ni,{...l,children:(0,L.jsx)(uz,{label:t?e(`Budget name`):void 0})})})},hz=`MMMM D, YYYY`,gz=`DD MMM YYYY`,_z=`DD MMM YYYY, HH:mm`,vz=`DD MMM YYYY`,yz=`DD MMM YYYY, HH:mm`,bz=`YYYY-MM-DD`,xz=`D MMM YYYY`,Sz=`D MMMM YYYY`,Cz=`MMM DD, YYYY [at] HH:mm`,wz=`YYYY-MM-DDTHH:mm:ss.SSSZ`,Tz=new Map([[q.Pending,{title:z.t(`Activation in progress`),color:`neutral400`}],[q.Closed,{title:z.t(`Closed`),color:`neutral400`}],[Wd.Failed,{title:z.t(`Activation failed, please contact support`),color:`red500`}]]),Ez=e=>e===`EUR`?`SEPA, SEPA Instant`:e===`GBP`?`Faster Payment`:`SWIFT`,Dz=({currencyISOCode:e,balance:t,state:n,updatedAt:r,isActive:i,loading:a,disabled:o,hideTransferType:s,onClick:c})=>{let{t:l}=G(),u=Sn(e),d=Tz.get(n),f=Mu({date:Cc(r??0),format:xz}),p=Kc({number:t,minimumFractionDigits:0,maximumFractionDigits:2,truncate:!0});return(0,L.jsxs)(T,{height:120,gap:1.5,onClick:n===q.Inactive?void 0:c,sx:()=>({p:2,borderRadius:3,backgroundColor:`neutral50`,cursor:n===q.Inactive?`default`:`pointer`,...i&&{backgroundColor:`blue25`},...n!==q.Inactive&&{"&:hover":{backgroundColor:`neutral100`},"&:active":{backgroundColor:`neutral200`}},...[q.Pending,Wd.Failed].includes(n)&&{pointerEvents:`none`}}),children:[(0,L.jsxs)(T,{direction:`row`,alignItems:`center`,justifyContent:`space-between`,width:1,children:[(0,L.jsxs)(T,{direction:`row`,alignItems:`center`,gap:1,width:1,children:[u&&(0,L.jsx)(u,{sx:{borderRadius:`50%`,width:26,height:26}}),(0,L.jsxs)(T,{children:[(0,L.jsxs)(k,{variant:`labelM`,color:`neutral500`,children:[e,` `,l(`balance`)]}),!s&&(0,L.jsx)(k,{variant:`labelS`,color:`neutral400`,children:Ez(e)}
84)]}),n===q.Locked&&(0,L.jsx)(Vn,{sx:{marginLeft:`auto`},label:l(`Locked`),variant:`outlined`,color:`error`}),n===q.Suspended&&(0,L.jsx)(Vn,{sx:{marginLeft:`auto`},label:l(`Suspended`),variant:`outlined`,color:`error`})]}),(n===q.Pending||a)&&(0,L.jsx)(yn,{size:`small`})]}),(0,L.jsxs)(T,{mt:`auto`,children:[[q.Active,q.Closed,q.Suspended,q.Locked].includes(n)&&(0,L.jsx)(k,{variant:n===q.Closed?`titleL`:`headlineS`,color:n===q.Active?`neutral500`:`neutral400`,children:p}),(0,L.jsxs)(k,{variant:`labelS`,color:d?.color,children:[d?.title,n===q.Closed&&r&&` ã» ${f}`]}),n===q.Inactive&&(0,L.jsx)(A,{sx:{":hover":{textDecoration:`underline`,bgcolor:`transparent`},p:0,minHeight:`auto`,justifyContent:`start`},variant:`textBlue`,onClick:c,disabled:o,children:l(`Activate`)})]})]})},Oz=()=>{let{t:e}=G(),{currentBalance:t,setCurrentBalance:n}=xf(),{opened:r,closed:i}=zp(),{isOpen:a,close:o}=VR(),{data:s=[],isPending:c}=fp(),{data:l}=nG(),[u,d]=(0,I.useState)(r),[f,p]=(0,I.useState)(`Active`),{data:m}=Dp(),h=$_(),{mutateAsync:g,isPending:_,variables:v}=bp();(0,I.useEffect)(()=>{d(r)},[r]);let y=(0,I.useCallback)(async e=>{if(!(e.state===q.Pending||e.state===Wd.Failed)){if(e.state===q.Inactive){await g({currencyISOCode:e.currencyISOCode});return}n(e),o()}},[o,g,n]),b=(0,I.useCallback)(async e=>{await g({currencyISOCode:e})},[g]),x=(0,I.useCallback)(()=>u.map(e=>e?.step&&e?.step!==Ud.COMPLETED&&e?.step!==Ud.INITIAL_SETUP?{...e,state:Wd.Failed}:e),[u])().filter(e=>[q.Active,q.Suspended,q.Locked,q.Pending].includes(e.state)),S=l?op(h,m,r,s):[],ee=s.filter(e=>e.multicurrency).some(e=>e.state===q.Pending);return(0,L.jsx)(kt,{size:`xlarge`,onClose:o,open:a,title:e(`Balances`),noCancelButton:!0,noSubmitButton:!0,children:(0,L.jsxs)(T,{gap:3,children:[(0,L.jsx)(ln,{value:f,onChange:e=>e&&p(e),options:[{label:e(`Active`),value:`Active`},{label:e(`Closed`),value:`Closed`}],noCheckedIcon:!0,containerProps:{component:`div`}}),f===`Active`&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(D,{container:!0,spacing:2,children:c&&!x.length?Array.from({length:3}).map((e,t)=>(0,L.jsx)(D,{item:!0,xs:4,children:(0,L.jsx)(sr,{variant:`rounded`,height:120,sx:{borderRadius:3}})},t)):x.length?x.map(e=>(0,L.jsx)(D,{item:!0,xs:4,children:(0,L.jsx)(Dz,{balance:e.freeBalance,currencyISOCode:e.currencyISOCode,state:e.state,updatedAt:e.updatedAt,isActive:e.id===t?.id,loading:(c||e.state===q.Pending||_&&e.currencyISOCode===v?.currencyISOCode)&&e.state!==Wd.Failed,onClick:()=>y(e)},`${e.state}-${e.currencyISOCode}-${e.updatedAt}`)},e.id)):(0,L.jsx)(K,{variant:`labelM`,color:`neutral400`,children:`There are no active balances at the moment.`})}),!!S.length&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(E,{}),(0,L.jsx)(D,{container:!0,spacing:2,children:S.map(e=>(0,L.jsx)(D,{item:!0,xs:4,children:(0,L.jsx)(Dz,{balance:0,state:q.Inactive,currencyISOCode:e.currencyISOCode,disabled:_||ee,onClick:()=>b(e.currencyISOCode)},e.id)},e.id))})]})]}),f===`Closed`&&(i?.length?(0,L.jsx)(D,{container:!0,spacing:2,children:i.map(e=>(0,L.jsx)(D,{item:!0,xs:4,children:(0,L.jsx)(Dz,{balance:e.freeBalance,currencyISOCode:e.currencyISOCode,state:e.state,updatedAt:e.updatedAt,isActive:e.id===t?.id,onClick:()=>y(e)},`${e.state}-${e.currencyISOCode}-${e.updatedAt}`)},e.id))}):(0,L.jsx)(K,{variant:`labelM`,color:`neutral400`,children:`There are no closed balances at the moment.`}))]})})},kz=()=>{let{t:e}=G(),{currentBalance:t,setCurrentBalance:n}=xf(),{opened:r}=zp(),{isOpen:i,close:a}=VR(),{isPending:o}=fp(),s=r.filter(e=>e.currencyISOCode===`USD`&&[q.Active,q.Suspended,q.Locked].includes(e.state)),c=e=>{n(e),a()};return(0,L.jsx)(kt,{size:`xlarge`,onClose:a,open:i,title:e(`Balances`),noCancelButton:!0,noSubmitButton:!0,children:(0,L.jsx)(T,{gap:3,children:(0,L.jsx)(D,{container:!0,spacing:2,children:o&&!s.length?(0,L.jsx)(D,{item:!0,xs:4,children:(0,L.jsx)(sr,{variant:`rounded`,height:120,sx:{borderRadius:3}})}):s.map(e=>(0,L.jsx)(D,{item:!0,xs:4,children:(0,L.jsx)(Dz,{balance:e.freeBalance,currencyISOCode:e.currencyISOCode,state:e.state,updatedAt:e.updatedAt,isActive:e.id===t?.id,loading:o,onClick:()=>c(e)})},e.id))})})})},Az=()=>jd()?(0,L.jsx)(kz,{}):(0,L.jsx)(Oz,{}),jz=(0,I.createContext)(null),Mz=({children:e})=>{let[t,n]=(0,I.useState)(!1),r=(0,I.useRef)(null),i=(0,I.useRef)(null),a=()=>{r.current=null,i.current=null,n(!1)},o=(0,I.useCallback)(()=>new Promise((e,t)=>
84{r.current=e,i.current=t,n(!0)}),[]),s=(0,I.useCallback)(()=>{r.current?.(),a()},[]),c=(0,I.useCallback)(()=>{i.current?.(Error(`TFA cancelled`)),a()},[]),l=(0,I.useMemo)(()=>({isOpen:t,requestTfa:o,resolveTfa:s,rejectTfa:c}),[t,o,s,c]);return(0,L.jsx)(jz.Provider,{value:l,children:e})},Nz=()=>{let e=(0,I.useContext)(jz);if(!e)throw Error(`Money TFA hooks must be used within a MoneyTfaProvider`);return e},Pz=()=>({requestTfa:Nz().requestTfa}),Fz=()=>{let{isOpen:e,resolveTfa:t,rejectTfa:n}=Nz();return{isOpen:e,resolveTfa:t,rejectTfa:n}},Iz=[z.t(`Access to its funds`),z.t(`All balance operations`),z.t(`Pending transactions`),z.t(`Connected accounts and cards`)],Lz=[z.t(`Access to all funds across these balances`),z.t(`All operations on these balances`),z.t(`All pending transactions`),z.t(`Connected accounts and cards`)],Rz=({open:e,onClose:t,balance:n})=>{let{requestTfa:r}=Pz(),{mutateAsync:i}=jp(),{t:a}=G(),o=async()=>{if(n){t();try{await r(),await i({balance:n,action:`Suspend`})}catch{}}},s=n?.multicurrency;return(0,L.jsx)(kt,{open:e,onClose:t,title:s?a(`Are you sure you want to lock all multi-currency balances`):a(`Are you sure you want to lock {{name}} balance?`,{name:n?.currencyISOCode}),submitTitle:a(`Continue`),onSubmit:o,children:(0,L.jsxs)(T,{gap:1,children:[s?(0,L.jsxs)(K,{variant:`bodyM`,children:[`Locking multi-currency balances`,` `,(0,L.jsx)(k,{component:`span`,variant:`labelM`,children:`will apply to all active balances and will affect the following:`})]}):(0,L.jsx)(K,{variant:`bodyM`,children:`Please note that locking this balance will restrict:`}),(s?Lz:Iz).map(e=>(0,L.jsxs)(T,{direction:`row`,gap:1,children:[(0,L.jsx)(Et,{sx:{color:`orange500`}}),(0,L.jsx)(k,{variant:`bodyM`,children:e})]},e))]})})},zz=ti({code:Yr().min(6,z.t(`Code must be 6 characters`)).matches(/^[0-9]*$/,z.t(`Code must be a number`)).required(z.t(`Invalid verification code.`)).transform(e=>Pa(e))}).required(),Bz=()=>{let{t:e}=G(),{data:t}=nG(),{isOpen:n,resolveTfa:r,rejectTfa:i}=Fz(),{mutateAsync:a,isPending:o,isError:s}=fb(),[c,l]=(0,I.useState)(!1),{handleSubmit:u,control:d,formState:{isSubmitting:f,isValid:p},setError:m,reset:h}=ei({resolver:ii(zz),defaultValues:{code:``}}),g=()=>{h(),i()},_=async({code:e})=>{l(!0);try{await a({code:e}),h(),r()}catch{}l(!1)};(0,I.useEffect)(()=>{s&&m(`code`,{message:`Invalid verification code.`})},[s,m]);let v=!p||f;return(0,L.jsx)(kt,{open:n,size:`small`,title:e(`Two-factor authentication`),submitTitle:e(`Verify`),onClose:g,submitProps:{disabled:v,loading:o||c},onSubmit:u(_),isForm:!0,children:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(K,{variant:`bodyM`,mb:3,children:`Please enter the 2FA code from your authenticator app to confirm your action.`}),(0,L.jsx)(Ln,{placeholder:`000 000`,name:`code`,control:d,autoComplete:`one-time-code`,InputProps:{inputComponent:eE}}),(0,L.jsxs)(O,{display:`flex`,mt:2,children:[(0,L.jsx)(K,{variant:`bodyM`,children:`Have issues?\xA0`}),(0,L.jsx)(K,{component:`span`,variant:`bodyM`,color:`blue500`,sx:{cursor:`pointer`},onClick:()=>ml(t?.companyName??``),children:`Contact support.`})]})]})})};function Vz(e){let{steps:t,initialStep:n}=e,[r,i]=(0,I.useState)(n??t[0]),a=(0,I.useMemo)(()=>t.indexOf(r),[r,t]),o=a===0,s=a===t.length-1;return{currentStep:r,goToNextStep:(0,I.useCallback)(()=>{a<t.length-1&&i(t[a+1])},[a,t]),goToPreviousStep:(0,I.useCallback)(()=>{a>0&&i(t[a-1])},[a,t]),reset:(0,I.useCallback)(()=>{i(n??t[0])},[n,t]),isFirstStep:o,isLastStep:s}}function Hz(e){let{steps:t,initialStep:n,getServerState:r}=e,i=(0,I.createContext)(void 0);return{useWizardStepper:()=>(0,I.useContext)(i),WizardStepperProvider:({children:e})=>{let{data:a}=r(),o=a?.currentStage??n,[s,c]=(0,I.useState)(null),l=s??o;(0,I.useEffect)(()=>{s!==null&&s===o&&c(null)},[s,o]);let u=(0,I.useMemo)(()=>t.indexOf(l),[l]),d={steps:t,currentStep:l,currentStepIdx:u,toNextStep:(0,I.useCallback)(()=>{u>=0&&u<t.length-1&&c(t[u+1])},[u]),toPrevStep:(0,I.useCallback)(()=>{u>0&&c(t[u-1])},[u]),setCurrentStep:(0,I.useCallback)(e=>{c(e)},[]),stepWasSubmitted:u<t.indexOf(o)};return(0,L.jsx)(i.Provider,{value:d,children:e})}}}var Uz={CompanyLocation:`COMPANY_LOCATION`,Agreement:`AGREEMENT`,Kyb:`KYB`},Wz=[Uz.CompanyLocation,Uz.Agreement,Uz.Kyb],Gz={[H.NotOnboarded]:Uz.CompanyLocation,[H.RegionSubmitted]:Uz.Agreement,[H.RegistrationCountrySubmitted]:Uz.Agreement},Kz=e=>e?Gz[e]?Gz[e]:Uz.Kyb:Uz.CompanyLocation,{useWizardStepper:qz,WizardStepperProvider:Jz}=Hz({steps:Wz,initialStep:Uz.CompanyLocation,getServerState:()=>{let{data:e}=$L();return e?{data:{currentStage:Kz(e.currentStage)}}:{}}}),Yz=`https://spendbase-team.canny.io/spendbaseco`,Xz=`https://faq.spendbase.co/en/knowledge-base_spendbase`,Zz=`https://faq.spendbase.co/en/knowledge-base_spendbase/procurement`,Qz=`https://app.storylane.io/share/ej27gk5yp1gh`,$z=`https://assets.spendbase.co/assets/samples/applications.csv`,eB=`https://assets.spendbase.co/assets/samples/transactions.csv`,tB=`https://faq.spendbase.co/en/knowledge-base_spendbase/uploading-apps-via-csv-file`,nB=`https://faq.spendbase.co/en/knowledge-base_spendbase/uploading-actual-spends-via-csv-file`,rB=`https://assets.spendbase.co/assets/Spendbase_Payment_Account_Terms_And_Conditions_EU_UK.pdf`,iB=`https://assets.spendbase.co/assets/Spendbase_Terms_And_Conditions.pdf`,aB=`https://faq.spendbase.co/en/knowledge-base_spendbase/procurement`,oB=`https://assets.spendbase.co/assets/samples/employees.csv`,sB=`<html> 85<head> 86 <meta charset="utf-8"> 87</head> 88<body> 89<div 90 style="width: 480px; flex-direction: column; justify-content: center; align-items: flex-end; gap: 24px; display: inline-flex"> 91 <div 92 style="align-self: stretch; flex-direction: column; justify-content: center; align-items: flex-start; gap: 40px; display: flex"> 93<div style="align-self: stretch; border-radius: 12px; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 16px; display: flex"> 94<div style="align-self: stretch; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 12px; display: flex"> 95<div style="align-self: stretch; text-align: center; color: #838388; font-size: 20px; font-family: Inter; font-weight: 700; line-height: 20px; word-wrap: break-word">TERMS AND CONDITIONS</div> 96<div style="align-self: stretch; text-align: center; color: #838388; font-size: 14px; font-family: Inter; font-weight: 600; line-height: 20px; word-wrap: break-word">FOR EU/EEA &
96 UK-BASED CUSTOMERS ONLY</div> 97<div style="align-self: stretch; text-align: center; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">Last Updated: 8 July 2026</div> 98<div style="align-self: stretch; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">This Agreement governs your access to and use of the Services made available through the Spendbase Platform, including any Account, Card, payment functionality and related products or services provided in connection with the Programme.</div> 99<div style="align-self: stretch; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">The Services are provided by Partnerway OÃ, trading as Spendbase, a company incorporated in Estonia under registration number 16379208 with its registered office at Harju maakond, Tallinn, Kesklinna linnaosa, Tornimäe tn 3 // 5 // 7, 10145, Estonia (â<span style="font-weight: 600">Spendbase</span>â, â<span style="font-weight: 600">we</span>â, â<span style="font-weight: 600">us</span>â or â<span style="font-weight: 600">ourâ</span>).</div> 100<div style="align-self: stretch; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">Certain Services are provided by regulated financial institutions partnering with Spendbase. Accounts, E-Money and Cards made available under the Programme are provided by Moorwand Ltd, a company incorporated in England and Wales with company number 08491211 and authorized by the Financial Conduct Authority under the Electronic Money Regulations 2011 (FRN 900709). Information about Moorwand's authorization can be found in the Financial Services Register at\xA0<a href="https://register.fca.org.uk/" target="_blank" rel="noopener noreferrer" style="color: #1460F3; text-decoration: underline;">https://register.fca.org.uk</a>.</div> 101<div style="align-self: stretch; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">In the United Kingdom, your Spendbase Digital banking Account and Card is issued by Moorwand Ltd. Moorwand Ltd is authorised by the Financial Conduct Authority under the Electronic Money Regulations 2011 (Firm Reference Number 900709) to issue electronic money and payment instruments.</div> 102<div style="align-self: stretch; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">In the European Economic Area, your Spendbase Digital banking Account and Card is issued by Heuro SAS, in partnership with Moorwand Ltd. Heuro SAS is authorised by the Autorité de Contrôle Prudentiel et de Résolution (ACPR) under licence number 17478 to issue electronic money and payment instruments.</div> 103<div style="align-self: stretch; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">Moorwand Ltd is a Principal Member of Mastercard International Incorporated. The Card is issued under licence from Mastercard International Incorporated. Mastercard and the circles design are registered trademarks of Mastercard International Incorporated.</div> 104<div style="align-self: stretch; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">By applying for, accessing or using the Services, you confirm that you have read, understood and agree to be bound by this Agreement.</div> 105<div style="align-self: stretch; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Business Use Only. </span>The Services are intended solely for business and commercial purposes.<span style="font-weight: 600"> </span>You may only use the Services on behalf of a business that has been approved by Spendbase. Cards may only be issued to individuals authorized by that business.<span style="font-weight: 600"> </span>The Services must not be used for personal, family, or household purposes.</
105div> 106<div style="align-self: stretch; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">The following documents form part of this Agreement and are incorporated by reference:</div> 107<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; padding-left: 40px; "> 108<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">(a)</div> 109<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><a href="https://www.spendbase.co/payment-account-eu-uk-fees-and-limits/" target="_blank" rel="noopener noreferrer" style="color: #1460F3; text-decoration: underline;">Fees and Limits</a>;</div> 110</div> 111<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; padding-left: 40px; "> 112<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">(b)</div> 113<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><a href="https://www.spendbase.co/payment-Account-EU-UK-Privacy-Notice/" target="_blank" rel="noopener noreferrer" style="color: #1460F3; text-decoration: underline;">The Privacy Notice</a>; and</div> 114</div> 115<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; padding-left: 40px; "> 116<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">(c)</div> 117<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><a href="https://www.spendbase.co/payment-Account-EU-UK-Digital-Wallet-Terms-and-Conditions/" target="_blank" rel="noopener noreferrer" style="color: #1460F3; text-decoration: underline;">The Digital Wallet Terms and Conditions</a>.</div> 118</div> 119<div style="align-self: stretch; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">Applicable fees, charges, foreign exchange rates and transaction limits are set out in the <a href="https://www.spendbase.co/payment-account-eu-uk-fees-and-limits/" target="_blank" rel="noopener noreferrer" style="color: #1460F3; text-decoration: underline;">Fees and Limits</a> available through the Platform or Website.</div> 120<div style="align-self: stretch; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">Funds held in connection with the Services are not bank deposits and are not protected by any deposit guarantee scheme. Where funds are received in exchange for E-Money, they are safeguarded in accordance with applicable legal and regulatory requirements.</div> 121<div style="align-self: stretch; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">This Agreement is concluded in English. Any translation is provided for convenience only and, to the extent permitted by applicable law, the English version shall prevail.</div> 122</div> 123</div> 124<div style="align-self: stretch; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 12px; display: flex"> 125<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 126<div style="width: 40px; color: #838388; font-size: 16px; font-family: Inter; font-weight: 600; line-height: 24px; word-wrap: break-word">1.</div> 127<div style="flex: 1 1 0; color: #838388; font-size: 16px; font-family: Inter; font-weight: 600; line-height: 20px; word-wrap: break-word">DEFINITIONS</div> 128</div> 129<div style="align-self: stretch; padding-left: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">In this Agreement:</div> 130<div style="align-self: stretch; padding-left: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">â<span style="font-weight: 600">Account</span>â means an account made available through the Services.</div> 131<div style="align-self: stretch; padding-left: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">â<span style="font-weight: 600">Agreement</span>â means these Terms and Conditions, together with the Fees and Limits, Privacy Notice, Digital Wallet Terms and Conditions (where applicable), and any other documents expressly incorporated by reference, each as amended from time to time in accordance with this Agreement.</div> 132<div style="align-self: stretch; padding-left: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">â<span style="font-weight: 600">Applicable Law</span>â means any applicable law, regulation, rule, regulatory requirement, court order, sanction, guidance, direction or card scheme rule applicable to the Services, the Business Customer, a Cardholder, Spendbase or any Regulated Service Provider.</div> 133<div style="align-self: stretch; padding-left: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">â<span style="font-weight: 600">Business Customer</span>â means a legal entity, sole trader, partnership, charity, public body or other organization approved by Spendbase as the holder of an Account and established in a jurisdiction supported by the Regulated Service Provider and updated from time to time.</div> 134<div style="align-self: stretch; padding-left: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">â<span style="font-weight: 600">Business Day</span>â means a day on which banks are generally open for business in England, excluding Saturdays, Sundays and public holidays.</div> 135<div style="align-self: stretch; padding-left: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">â<span style="font-weight: 600">Card</span>â means a Virtual Card or Physical Card issued under the Programme.</div> 136<div style="align-self: stretch; padding-left: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">â<span style="font-weight: 600">Cardholder</span>â means an individual authorised by the Business Customer to use a Card.</div> 137<div style="align-self: stretch; padding-left: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">â<span style="font-weight: 600">E-Money</span>â means electronically stored monetary value issued in exchange for funds.</div> 138<div style="align-self: stretch; padding-left: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">â<span style="font-weight: 600">Merchant</span>â means any retailer, supplier, service provider or other person that accepts a Card as a means of payment</div> 139<div style="align-self: stretch; padding-left: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">â<span style="font-weight: 600">Physical Card</span>â means a physical payment card issued under the Programme.</div> 140<div style="align-self: stretch; padding-left: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">â<span style="font-weight: 600">Platform</span>â means the Spendbase website, mobile application, and related systems through which the Services are provided.
140</div> 141<div style="align-self: stretch; padding-left: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">â<span style="font-weight: 600">Regulated Service Provider</span>â means for the UK: Moorwand Ltd. Moorwand Ltd is authorised by the Financial Conduct Authority under the Electronic Money Regulations 2011 (Register ref: 900709) for the issuing of electronic money and payment instruments and registered in England & Wales No. 8491211. 9DU. Registered office Fora, 3 Lloyds Avenue, London, EC3N 3DS, United Kingdom; and for EEA: Heuro SAS is authorised by the Autorité de Contrôle Prudentiel et de Résolution (ACPR) under licence number 17478.</div> 142<div style="align-self: stretch; padding-left: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">â<span style="font-weight: 600">Security Credentials</span>â means passwords, passcodes, authentication credentials, one-time passcodes, biometric identifiers and other security measures used to access the Services.</div> 143<div style="align-self: stretch; padding-left: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">â<span style="font-weight: 600">Services</span>â means the products and services made available through the Platform.</div> 144<div style="align-self: stretch; padding-left: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">â<span style="font-weight: 600">Transaction</span>â means any payment, transfer, withdrawal, refund, chargeback or card transaction processed through the Services.</div> 145<div style="align-self: stretch; padding-left: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">â<span style="font-weight: 600">Virtual Card</span>â means a digital payment card issued without a physical form.</div> 146<div style="align-self: stretch; padding-left: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">References to the singular include the plural and vice versa. References to legislation include any amendment or replacement of that legislation. The words "including" and "includes" do not limit the meaning of the words preceding them.</div> 147</div> 148<div style="align-self: stretch; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 12px; display: flex"> 149<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 150<div style="width: 40px; color: #838388; font-size: 16px; font-family: Inter; font-weight: 600; line-height: 24px; word-wrap: break-word">2.</div> 151<div style="flex: 1 1 0; color: #838388; font-size: 16px; font-family: Inter; font-weight: 600; line-height: 20px; word-wrap: break-word">OPENING AND USING THE SERVICES</div> 152</div> 153<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 154<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">2.1</div> 155<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Eligibility. </span>To use the Services, you must: (a) be a Business Customer approved by Spendbase; (b) provide all information and documentation reasonably requested by us; (c) satisfy our onboarding, verification and compliance requirements; and (d) comply with this Agreement and Applicable Law. We may refuse an application or decline to provide any Service at our discretion where permitted by Applicable Law. You must remain eligible to use the Services throughout the duration of this Agreement. We may restrict, suspend or terminate access to any Service if we reasonably believe that you no longer satisfy our eligibility, compliance, legal or regulatory requirements.</div> 156</div> 157<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 158<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">2.2</div> 159<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Authority. </span>The individual accepting this Agreement on behalf of the Business Customer confirms that they are duly authorized to act on behalf of the Business Customer and to bind it to this Agreement. The Business Customer is responsible for all actions taken by its authorized representatives, Cardholders, and other authorized users.</div> 160</div> 161<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 162<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">2.3</div> 163<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Verification and Compliance Checks</span>. Before providing the Services, and at any time during the business relationship, we or our Regulated Service Providers may carry out identity, verification, sanctions, anti-money laundering, fraud prevention and other compliance checks. You must promptly provide any information or documentation reasonably requested for such purposes. Failure to provide requested information may result in delays, restrictions, suspension or termination of the Services.</div> 164</div> 165<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 166<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">2.4</div> 167<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Keeping Information Up to Date. </span>You must promptly notify us of any change to: (a) your legal name; (b) registered office or business address; (c) ownership or control structure; (d) authorized representatives; (e) contact details; or (f) any other information previously provided to us. We may require supporting evidence of any such changes.</div> 168</div> 169<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 170<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">2.5</div> 171<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Authorized Users and Cardholders. </span>The Business Customer may authorize individuals to access the Services and use Cards on its behalf. The Business Customer must ensure that all authorized users and Cardholders comply with this Agreement and any instructions issued by the Business Customer. The Business Customer remains fully responsible for all use of the Services by its authorized users and Cardholders.</div> 172</div> 173</div> 174<div style="align-self: stretch; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 12px; display: flex"> 175<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 176<div style="width: 40px; color: #838388; font-size: 16px; font-family: Inter; font-weight: 600; line-height: 24px; word-wrap: break-word">3.</div> 177<div style="flex: 1 1 0; color: #838388; font-size: 16px; font-family: Inter; font-weight: 600; line-height: 20px; word-wrap: break-word">ACCOUNTS</div> 178</div> 179<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 180<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">3.1</div> 181<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Account</span>. Once your application has been approved, we may provide you with an Account through the Platform. The Account enables you to hold E-Money, fund Cards, make and receive payments where available, and access other Services that we make available from time to time. The Account is intended solely for use in connection with your business activities and must not be used for personal, family or household purposes. Where available, an Account may be assigned an IBAN, account number, sort code or other unique identifier. You must ensure that any payment instruction contains the correct identifier. We may rely on the identifier provided in a payment instruction and will not be responsible for any loss resulting from an incorrect or incomplete identifier supplied by you</div> 182</div> 183<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 184<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">3.2</div> 185<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">E-Money</span>. Funds credited to your Account are exchanged for E-Money issued by the relevant Regulated Service Provider. E-Money does not constitute a deposit and no interest will be paid on E-Money balances unless expressly stated otherwise.</div> 186</div> 187<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 188<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">3.3</div> 189<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Funding Your Account</span>. You may add funds to your Account using the methods supported through the Platform from time to time. We may impose limits, verification requirements or other conditions on the receipt of funds where required for operational, security, legal or regulatory reasons. We may refuse, delay or return any payment where reasonably necessary to comply with Applicable Law, protect the security of the Services or manage financial crime risk.</div> 190</div> 191<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 192<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">3.4</div> 193<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Available Balance</span>. You may only use funds that have been credited to your Account and are reflected in your available balance. Certain transactions may result in funds being temporarily unavailable, including card authorizations, payment disputes, chargebacks, refunds, reversals or regulatory restrictions.</div> 194</div> 195<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 196<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">3.5</div> 197<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Statements and Transaction Information</span>. Information relating to your Transactions will be made available through the Platform. You may view and download your transaction history and account information at any time during the relationship. Where required by Applicable Law, transaction information will be provided in a durable medium free of charge at least once each month.</div> 198</div> 199<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 200<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">3.6</div> 201<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Keeping Sufficient Funds</span>. You must ensure that sufficient funds are available in your Account to cover Transactions, fees, chargebacks, refunds and any other amounts payable under this Agreement. If your Account acquires a negative balance for any reason, you must immediately repay the outstanding amount upon demand. We may recover any amount owed to us from funds held in your Account or otherwise due to you.</div> 202</div> 203<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 204<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">3.7</div> 205<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Restrictions</span>. We may place restrictions on your Account, refuse to process a Transaction, delay a payment or require additional information where reasonably necessary to comply with Applicable Law, investigate suspected fraud or financial crime, protect the security of the Services or comply with the requirements of a Regulated Service Provider or card scheme.</div> 206</div> 207<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 208<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">3.8</div> 209<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Set-Off</span>. Without affecting any other rights or remedies available to us, we may set off any amount owed by you to us under this Agreement against any funds held in your Account or otherwise payable to you.</div> 210</div> 211<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 212<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">
2123.9</div> 213<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Dormant Accounts</span>. Where an Account remains inactive for an extended period, we may apply restrictions, request updated information or close the Account in accordance with Applicable Law and our operational procedures. We may contact you before taking such action where required by Applicable Law.</div> 214</div> 215<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 216<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">3.10</div> 217<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Safeguarding of Funds</span>. Funds received in exchange for E-Money are safeguarded by the applicable Regulated Service Provider in accordance with Applicable Law. E-Money is not a deposit and is not covered by any deposit guarantee scheme or deposit insurance scheme.</div> 218</div> 219</div> 220<div style="align-self: stretch; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 12px; display: flex"> 221<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 222<div style="width: 40px; color: #838388; font-size: 16px; font-family: Inter; font-weight: 600; line-height: 24px; word-wrap: break-word">4.</div> 223<div style="flex: 1 1 0; color: #838388; font-size: 16px; font-family: Inter; font-weight: 600; line-height: 20px; word-wrap: break-word">CARDS</div> 224</div> 225<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 226<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">4.1</div> 227<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Issuing Cards</span>. Subject to eligibility, verification and ongoing compliance requirements, we may issue one or more Cards linked to your Account. Cards may be issued as Virtual Cards, Physical Cards or both. A Card may only be issued to and used by an individual authorized by the Business Customer. All Cards remain the property of the applicable issuer and may only be used in accordance with this Agreement.</div> 228</div> 229<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 230<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">4.2</div> 231<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Delivery and Activation</span>. Physical Cards may be delivered to the Cardholder or another recipient authorized by the Business Customer using a delivery method selected by us. The Business Customer is responsible for ensuring that delivery information remains accurate and up to date. A Physical Card may not be used until it has been activated using the method specified by us.</div> 232</div> 233<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 234<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">4.3</div> 235<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Using Cards</span>. Cards may be used to make Transactions wherever the applicable card scheme is accepted, subject to any restrictions imposed by us, the applicable Regulated Service Provider, the card scheme, Applicable Law or the Merchant. You must ensure that sufficient funds are available in your Account before authorizing a Transaction. We may decline a Transaction where there are insufficient funds available, where a Transaction would exceed an applicable limit or restriction, or where we reasonably consider the Transaction to present a legal, regulatory, security or fraud risk.</div> 236</div> 237<div style="align-self: stretch; padding-left: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">Availability of ATM withdrawals, cash withdrawals, and other card features may depend on the Card type and may be restricted, limited, or unavailable.</div> 238<div style="align-self: stretch; padding-left: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">Physical Cards may support contactless Transactions, subject to applicable limits, security requirements and card scheme rules.</div> 239<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 240<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">4.4</div> 241<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Card Controls</span>
241. The Business Customer may establish spending limits, usage restrictions and approval controls for Cards through the Platform where such functionality is available. The Business Customer remains responsible for all Transactions made using Cards issued under its Account.</div> 242</div> 243<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 244<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">4.5</div> 245<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Authorisations</span>. Certain Transactions may require an authorization to be placed against your available balance before the final Transaction amount is known. This commonly occurs in connection with hotels, vehicle rentals, subscriptions, recurring payments and similar transactions. Where an authorization is placed, the relevant amount may be unavailable for use until the Transaction is completed, reversed or expires in accordance with applicable card scheme rules.</div> 246</div> 247<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 248<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">4.6</div> 249<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">PINs and Card Security</span>. Where a Physical Card is issued with a PIN or other authentication method, the Cardholder must take reasonable steps to keep it secure and separate from the Card. PINs, security codes, and authentication credentials must not be disclosed to any unauthorized person.</div> 250</div> 251<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 252<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">4.7</div> 253<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Card Expiry, Renewal and Replacement</span>. Cards are valid until the expiry date displayed on the Card unless cancelled, suspended or terminated earlier. We may replace, renew or reissue a Card at any time for operational, security, legal or regulatory reasons. A fee may apply for replacement or expedited delivery of a Card, as set out in the <a href="https://www.spendbase.co/payment-account-eu-uk-fees-and-limits/" target="_blank" rel="noopener noreferrer" style="color: #1460F3; text-decoration: underline;">Fees and Limits</a>. Upon expiry, cancellation, replacement or termination of a Physical Card, the Cardholder must immediately cease using the Card and securely destroy it in accordance with our instructions.</div> 254</div> 255<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 256<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">4.8</div> 257<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Digital Wallets</span>. Where available, a Card may be added to a Digital Wallet. Use of a Digital Wallet is subject to the applicable Digital Wallet Terms and Conditions and the terms of the relevant wallet provider.</div> 258</div> 259<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 260<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">4.9</div> 261<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Lost, Stolen or Compromised Cards</span>. If a Card is lost, stolen, misappropriated or used without authorization, you must notify us without undue delay through the Platform or Customer Support. We may suspend, restrict, replace or cancel the Card and take any action reasonably necessary to protect the Account, the Business Customer, Spendbase, the applicable Regulated Service Provider or the card scheme.</div> 262</div> 263</div> 264<div style="align-self: stretch; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 12px; display: flex"> 265<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 266<div style="width: 40px; color: #838388; font-size: 16px; font-family: Inter; font-weight: 600; line-height: 24px; word-wrap: break-word">5.</div> 267<div style="flex: 1 1 0; color: #838388; font-size: 16px; font-family: Inter; font-weight: 600; line-height: 20px; word-wrap: break-word">PAYMENTS AND FOREIGN EXCHANGE</div> 268</div> 269<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 270<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">5.1</div> 271<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Authorizing Transactions</span>. A Transaction is authorized when you or an authorized Cardholder provides consent using a Card, Security Credentials, a Digital Wallet, an approval workflow, or any other authentication method accepted by us. We may rely on any instruction or Transaction that appears to have been authorised by you or an authorised user.</div> 272</div> 273<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 274<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">5.2</div> 275<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Refusing Transactions</span>. We may refuse to execute a Transaction or impose additional security checks where reasonably necessary to:</div> 276</div> 277<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; padding-left: 40px; "> 278<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">(a)</div> 279<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">comply with Applicable Law;</div> 280</div> 281<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; padding-left: 40px; "> 282<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">(b)</div> 283<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">prevent fraud, financial crime or unauthorized use;</div> 284</div> 285<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; padding-left: 40px; "> 286<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">(c)</div> 287<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">protect the security of the Services;</div> 288</div> 289<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; padding-left: 40px; "> 290<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">(d)</div> 291<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">comply with requirements imposed by a Regulated Service Provider or card scheme;
291 or</div> 292</div> 293<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; padding-left: 40px; "> 294<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">(e)</div> 295<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">where insufficient funds are available.</div> 296</div> 297<div style="align-self: stretch; padding-left: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">Where legally permitted, we will inform you of the refusal and, where appropriate, the reasons for it.</div> 298<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 299<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">5.3</div> 300<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Transaction Execution</span>. Once a Transaction has been authorized and received, it cannot normally be revoked. Transaction execution times depend on the payment type, currency, destination and applicable payment scheme. Information regarding expected execution times is available through the Platform and may be updated from time to time.</div> 301</div> 302<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 303<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">5.4</div> 304<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Foreign Exchange</span>. Where a Transaction is made in a currency different from the currency of the Account, the Transaction will be converted at the exchange rate applicable when the Transaction is processed. The applicable exchange rate, any mark-up and any foreign exchange fees will be disclosed in the <a href="https://www.spendbase.co/payment-account-eu-uk-fees-and-limits/" target="_blank" rel="noopener noreferrer" style="color: #1460F3; text-decoration: underline;">Fees and Limits</a> or through the Platform. Changes to reference exchange rates may take effect immediately and without prior notice.</div> 305</div> 306<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 307<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">5.5</div> 308<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Refunds and Reversals</span>. A refund, reversal or cancelled Transaction may not be available immediately after it has been processed by a Merchant, card scheme or payment provider. We will credit the relevant amount to your Account once the funds have been received by the applicable Regulated Service Provider.</div> 309</div> 310<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 311<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">5.6</div> 312<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Transaction Records</span>. Details of Transactions will be available through the Platform and may also be provided in a durable medium where required by Applicable Law.</div> 313</div> 314</div> 315<div style="align-self: stretch; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 12px; display: flex"> 316<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 317<div style="width: 40px; color: #838388; font-size: 16px; font-family: Inter; font-weight: 600; line-height: 24px; word-wrap: break-word">6.</div> 318<div style="flex: 1 1 0; color: #838388; font-size: 16px; font-family: Inter; font-weight: 600; line-height: 20px; word-wrap: break-word">SECURITY AND UNAUTHORISED TRANSACTIONS</div> 319</div> 320<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 321<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">6.1</div> 322<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Security. </span>You must take all reasonable steps to keep your Account, Cards, Security Credentials, devices and authentication methods secure at all times and prevent their unauthorised use. The Business Customer must maintain appropriate internal
322controls governing access to the Services and the use of Cards. Physical Cards must be kept secure and must not be provided to, shared with, or used by any unauthorized person. You must notify us without undue delay if you become aware of the loss, theft, misappropriation or unauthorised use of a Card, Security Credential or device used to access the Services.</div> 323</div> 324<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 325<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">6.2</div> 326<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Notification of Security Incidents</span>. You must notify us without undue delay if you become aware of, or suspect, the loss, theft or unauthorized use of a Card, the compromise of Security Credentials, unauthorized access to the Account, an unauthorized or incorrectly executed Transaction, or any actual or suspected fraud affecting the Services. Upon notification, we may suspend or replace a Card, reset Security Credentials or take any other action reasonably necessary to protect the Account and the Services.</div> 327</div> 328<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 329<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">6.3</div> 330<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Unauthorized Transactions</span>. If you believe that a Transaction was not authorized by you or an authorized Cardholder, you must notify us as soon as possible and, in any event, no later than 13 months after the date on which the Transaction was debited from the Account. We may require information and supporting documentation reasonably necessary to investigate the matter.</div> 331</div> 332<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 333<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">6.4</div> 334<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Liability</span>. The Business Customer is responsible for Transactions authorized by its authorized representatives, authorized users, and Cardholders. Subject to Applicable Law, the Business Customer may also be responsible for losses arising from fraud, intentional misconduct or a failure to comply with this Agreement. You will not be liable for losses arising from unauthorized Transactions occurring after you have notified us of the loss, theft or compromise of a Card or Security Credentials, unless you have acted fraudulently.</div> 335</div> 336<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 337<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">6.5</div> 338<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Investigations</span>. We may investigate any suspected unauthorized Transaction, security incident, or fraudulent activity and may request information, documentation, or cooperation from you during the investigation. Where we reasonably determine that a claim was unfounded or that a Transaction was properly authorized, we may reverse any provisional credit applied to the Account.</div> 339</div> 340</div> 341<div style="align-self: stretch; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 12px; display: flex"> 342<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 343<div style="width: 40px; color: #838388; font-size: 16px; font-family: Inter; font-weight: 600; line-height: 24px; word-wrap: break-word">7.</div> 344<div style="flex: 1 1 0; color: #838388; font-size: 16px; font-family: Inter; font-weight: 600; line-height: 20px; word-wrap: break-word">CHARGEBACKS, REFUNDS AND TRANSACTION DISPUTES</div> 345</div> 346<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 347<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">7.1</div> 348<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Merchant Disputes</span>. If you have a dispute relating to goods or services purchased using a Card, you should first attempt to resolve the dispute directly with the relevant Merchant. Spendbase is not responsible for the quality, safety, legality or delivery of any goods or services purchased using the Services.</div> 349</div> 350<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 351<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">7.2</div> 352<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Requesting a Chargeback or Investigation</span>. Where a Card Transaction may be eligible for a chargeback or other card scheme dispute process, you may request that we investigate the Transaction. You must provide all information and supporting evidence reasonably requested by us within the timeframe specified by us or the applicable card scheme. Failure to provide requested information may prevent us from pursuing the claim.</div> 353</div> 354<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 355<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">7.3</div> 356<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Refunds</span>. Any refund relating to a Card Transaction will be credited to the Account once it has been received by the applicable Regulated Service Provider. We are not responsible for delays caused by Merchants, acquiring banks, card schemes or other third parties involved in processing the refund.</div> 357</div> 358<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 359<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">7.4</div> 360<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Our Role</span>. We may assist with a Transaction dispute, chargeback request or card scheme claim where available, but we do not guarantee that any dispute will be resolved
360in your favour or that any amount will be recovered. Any chargeback, retrieval request or dispute process remains subject to the rules of the applicable card scheme and the decisions of the parties involved in the dispute process.</div> 361</div> 362<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 363<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">7.5</div> 364<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Reversal of Credits</span>. Where we apply a provisional credit to the Account pending completion of an investigation, we may reverse that credit if the claim is rejected, withdrawn, found to be invalid or otherwise determined in favour of the Merchant or another party.</div> 365</div> 366<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 367<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">7.6</div> 368<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Fees</span>. We may charge fees in connection with chargebacks, retrieval requests, dispute investigations or unsuccessful claims where permitted by Applicable Law and disclosed in the <a href="https://www.spendbase.co/payment-account-eu-uk-fees-and-limits/" target="_blank" rel="noopener noreferrer" style="color: #1460F3; text-decoration: underline;">Fees and Limits</a>.</div> 369</div> 370<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 371<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">7.7</div> 372<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Authorized Push Payment Fraud</span>. Where applicable, you may be entitled to reimbursement for certain Authorized Push Payment (APP) fraud losses in accordance with Applicable Law, mandatory reimbursement requirements, payment system rules or regulatory requirements. Eligibility for reimbursement may depend on the circumstances of the claim, compliance with applicable reporting requirements and any exceptions permitted under Applicable Law or the relevant reimbursement scheme. Further information regarding APP fraud protection and reimbursement rights is available through the Platform or upon request</div> 373</div> 374</div> 375<div style="align-self: stretch; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 12px; display: flex"> 376<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 377<div style="width: 40px; color: #838388; font-size: 16px; font-family: Inter; font-weight: 600; line-height: 24px; word-wrap: break-word">8.</div> 378<div style="flex: 1 1 0; color: #838388; font-size: 16px; font-family: Inter; font-weight: 600; line-height: 20px; word-wrap: break-word">RESTRICTED USE, COMPLIANCE AND SUSPENSION</div> 379</div> 380<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 381<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">8.1</div> 382<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Acceptable Use</span>. You must use the Services in accordance with this Agreement and Applicable Law. You must not use the Services for any unlawful, fraudulent, deceptive or abusive purpose, or in any manner that c
382ould expose Spendbase, a Regulated Service Provider, a card scheme or another customer to legal, regulatory, financial or reputational risk.</div> 383</div> 384<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 385<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">8.2</div> 386<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Compliance Requirements</span>. We may request information, documentation or explanations from you at any time in order to comply with legal, regulatory, risk management, fraud prevention, sanctions screening or anti-money laundering requirements. You must provide the requested information within a reasonable timeframe specified by us.</div> 387</div> 388<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 389<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">8.3</div> 390<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">
390Restrictions and Suspension</span>. We may block, refuse, delay, restrict or suspend any Transaction, Card, Account or Service immediately where we reasonably believe that:</div> 391</div> 392<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; padding-left: 40px; "> 393<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">(a)</div> 394<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">this is necessary to comply with Applicable Law or a regulatory obligation;</div> 395</div> 396<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; padding-left: 40px; "> 397<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">(b)</div> 398<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">the security of the Account, Card or Services may be compromised;</div> 399</div> 400<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; padding-left: 40px; "> 401<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">(c)</div> 402<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">unauthorised, fraudulent or suspicious activity may have occurred;</div> 403</div> 404<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; padding-left: 40px; "> 405<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">(d)</div> 406<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">information previously provided to us is inaccurate, incomplete or misleading;</div> 407</div> 408<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; padding-left: 40px; "> 409<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">(e)</div> 410<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">you have breached this Agreement; or</div> 411</div> 412<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; padding-left: 40px; "> 413<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">(f)</div> 414<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">continuing to provide the Services may expose us, a Regulated Service Provider or a card scheme to legal, regulatory, financial or reputational risk.</div> 415</div> 416<div style="align-self: stretch; padding-left: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">Where legally permitted, we will notify you of the restriction or suspension and the reasons for it.</div> 417<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 418<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">8.4</div> 419<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Duration of Restrictions</span>. Any restriction or suspension may remain in place for as long as reasonably necessary to investigate the matter, satisfy legal or regulatory requirements, protect the security of the Services or mitigate the relevant risk. We are not responsible for losses arising from actions reasonably taken under this Section.</div> 420</div> 421</div> 422<div style="align-self: stretch; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 12px; display: flex"> 423<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 424<div style="width: 40px; color: #838388; font-size: 16px; font-family: Inter; font-weight: 600; line-height: 24px; word-wrap: break-word">9.</div> 425<div style="flex: 1 1 0; color: #838388; font-size: 16px; font-family: Inter; font-weight: 600; line-height: 20px; word-wrap: break-word">FEES</div> 426</div> 427<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 428<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">9.1</div> 429<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Fees and Charges</span>. Fees, charges, foreign exchange mark-ups and other amounts payable in connection with the Services are set out in the <a href="https://www.spendbase.co/payment-account-eu-uk-fees-and-limits/" target="_blank" rel="noopener noreferrer" style="color: #1460F3; text-decoration: underline;">Fees and Limits</a>. By using the Services, you authorize us to deduct any applicable fees, charges and other amounts due under this Agreement from your Account.</div> 430</div> 431<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 432<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">9.2</div> 433<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Taxes</span>. Unless stated otherwise, all fees are exclusive of any applicable taxes, duties or similar governmental charges, which shall be payable by you where required by Applicable Law.</div> 434</div> 435<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 436<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">9.3</div> 437<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Insufficient Funds</span>. You must ensure that sufficient funds are available in your Account to cover any fees or charges payable under this Agreement. If any fee, charge or other amount payable by you results in a negative balance, you must promptly repay the outstanding amount upon demand.</div> 438</div> 439<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 440<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">9.4</div> 441<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Changes to Fees</span>. Changes to fees and charges will be communicated in accordance with Section 11.
441</div> 442</div> 443<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 444<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">9.5</div> 445<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Cashback</span>. Subject to this Agreement, the Business Customer may be eligible to receive cashback in respect of qualifying Card Transactions.</div> 446</div> 447<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; padding-left: 40px; "> 448<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">(a)</div> 449<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">Cashback is calculated based on the aggregate value of eligible settled Card Transactions processed during the applicable calculation period across Cards linked to the same Account.</div> 450</div> 451<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; padding-left: 40px; "> 452<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">(b)</div> 453<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">Cashback rates, eligibility thresholds, excluded Transaction types and any applicable limitations are set out in the Fees and Limits or otherwise communicated through the Platform.</div> 454</div> 455<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; padding-left: 40px; "> 456<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">(c)</div> 457<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">Certain Business Customers may be eligible for customised cashback rates, thresholds or programme terms. Where applicable, such terms will be displayed in the Business Customer's Account or otherwise communicated by us and shall prevail over any standard cashback terms.</div> 458</div> 459<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; padding-left: 40px; "> 460<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">(d)</div> 461<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">Cashback will not accrue in respect of Transactions that are reversed, refunded, charged back, disputed, fraudulent, unlawful or otherwise determined by us to be ineligible or made via ATM.</div> 462</div> 463<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; padding-left: 40px; "> 464<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">(e)</div> 465<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">We may adjust, withhold, reverse or recover cashback where reasonably necessary to correct an error, reflect a refund or reversal, prevent abuse of the cashback programme, comply with Applicable Law, or address fraudulent, suspicious or improper activity.</div> 466</div> 467<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; padding-left: 40px; "> 468<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">(f)</div> 469<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">We may refuse to award cashback where we reasonably believe that Transactions have been undertaken primarily to generate cashback, manipulate transaction volumes, circumvent programme rules or obtain an unintended benefit.</div> 470</div> 471<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; padding-left: 40px; "> 472<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">(g)</div> 473<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">We may modify cashback rates, eligibility criteria, thresholds or programme terms for individual Business Customers where agreed between the parties or otherwise communicated through the Platform.</div> 474</div> 475<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; padding-left: 40px; "> 476<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">(h)</div> 477<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">Cashback has no cash value until credited to the Account and may not be transferred, assigned or otherwise disposed of.</div> 478</div> 479<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; padding-left: 40px; "> 480<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">(i)</div> 481<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">Unless otherwise specified, cashback will be credited to the Account on a monthly basis following completion of the applicable calculation period.</div> 482</div> 483<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; padding-left: 40px; "> 484<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">(j)</div> 485<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">Cashback is discretionary and does not form part of any regulated payment service or electronic money service.</div> 486</div> 487</div> 488<div style="align-self: stretch; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 12px; display: flex"> 489<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 490<div style="width: 40px; color: #838388; font-size: 16px; font-family: Inter; font-weight: 600; line-height: 24px; word-wrap: break-word">10.</div> 491<div style="flex: 1 1 0; color: #838388; font-size: 16px; font-family: Inter; font-weight: 600; line-height: 20px; word-wrap: break-word">TERMINATION</div> 492</div> 493<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 494<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">10.1</div> 495<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Termination by You</span>. You may terminate this Agreement and close your Account at any time by contacting us through the Platform or Customer Support and following any reasonable closure procedures. Termination will not affect any rights or obligations that arose before the date of termination.</div> 496</div> 497<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 498<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">10.2</div> 499<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Termination by Us</span>. We may terminate this Agreement for any reason by providing at least 90 days' prior notice in a durable medium. </div> 500</div> 501<div style="align-self: stretch; padding-left: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">We may terminate or suspend this Agreement immediately, or close your Account, Cards or access to the Services without prior notice where we reasonably consider it necessary to:</div> 502<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; padding-left: 40px; "> 503<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">(a)</div> 504<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">comply with Applicable Law or a regulatory requirement;</div> 505</div> 506<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; padding-left: 40px; "> 507<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">(b)</div> 508<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">prevent fraud, financial crime, money laundering, terrorist financing or unauthorized use;</div> 509</div> 510<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; padding-left: 40px; "> 511<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">(c)</div> 512<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">protect the security or integrity of the Services;</div> 513</div> 514<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; padding-left: 40px; "> 515<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">(d)</div> 516<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">comply with requirements imposed by a Regulated Service Provider, card scheme or competent authority;</div> 517</div> 518<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; padding-left: 40px; "> 519<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">(e)</div> 520<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">address a breach of this Agreement;</div> 521</div> 522<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; padding-left: 40px; "> 523<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">(f)</div> 524<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">manage legal, regulatory, financial, operational or reputational risk; or</div> 525</div> 526<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; padding-left: 40px; "> 527<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">(g)</div> 528<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">where continued provision of the Services is no longer commercially, operationally or legally feasible.</div> 529</div> 530<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 531<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">10.3</div> 532<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Termination Notices</span>. Where we provide notice of termination, we will provide information regarding: (a) the effective date of termination; (b) how you may submit a complaint in relation to the termination decision; and (c) any applicable rights to refer a complaint to an ombudsman service, alternative dispute resolution body or other competent authority. Where permitted by Applicable Law, the termination notice may also include a general explanation of the reasons for termination.</div> 533</div> 534<div style="align-self: stretch; padding-left: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">We may limit, withhold or decline to provide reasons for termination where disclosure would be unlawful, contrary to regulatory requirements, prejudicial to the prevention or detection of crime, fraud, money laundering, terrorist financing or other financial misconduct, or otherwise restricted by Applicable Law.</div> 535<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 536<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">10.4</div> 537<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Effect of Termination</span>. Upon termination of this Agreement:</div> 538</div> 539<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; padding-left: 40px; "> 540<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">(a)</div> 541<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">your right to use the Services will cease;</div> 542</div> 543<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; padding-left: 40px; "> 544<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">(b)</div> 545<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">Cards linked to the Account may be cancelled or deactivated;</div> 546</div> 547<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; padding-left: 40px; "> 548<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">(c)</div> 549<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">pending transactions may still be processed;</div> 550</div> 551<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; padding-left: 40px; "> 552<div style="width: 40px; color: #838388; font-
552size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">(d)</div> 553<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">any fees, liabilities or obligations accrued before termination will remain payable;</div> 554</div> 555<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; padding-left: 40px; "> 556<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">(e)</div> 557<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">you must immediately stop using all Cards and Security Credentials associated with the Services; and</div> 558</div> 559<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; padding-left: 40px; "> 560<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">(f)</div> 561<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">any Physical Cards linked to the Account must immediately cease to be used and must be securely destroyed or returned to us if requested.</div> 562</div> 563<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 564<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">10.5</div> 565<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Remaining Funds</span>. Following termination, any remaining funds will be returned or redeemed in accordance with Applicable Law and the procedures communicated to you, subject to amounts that must be retained to cover pending Transactions, chargebacks, disputes, legal obligations or amounts owed to us. We may require verification of identity, authority or entitlement before releasing funds.</div> 566</div> 567<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 568<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">10.6</div> 569<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Survival</span>. Any provision of this Agreement that by its nature is intended to survive termination shall continue in effect after termination.</div> 570</div> 571</div> 572<div style="align-self: stretch; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 12px; display: flex"> 573<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 574<div style="width: 40px; color: #838388; font-size: 16px; font-family: Inter; font-weight: 600; line-height: 24px; word-wrap: break-word">11.</div> 575<div style="flex: 1 1 0; color: #838388; font-size: 16px; font-family: Inter; font-weight: 600; line-height: 20px; word-wrap: break-word">CHANGES TO THIS AGREEMENT</div> 576</div> 577<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 578<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">11.1</div> 579<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Changes</span>. We may amend this Agreement, the Fees and Limits, or any document incorporated by reference from time to time. Where required by Applicable Law, we will provide notice of the proposed change in a durable medium before the change takes effect.</div> 580</div> 581<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 582<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">11.2</div> 583<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Material Changes</span>. Where a proposed change is materially detrimental to you or where notice is required by Applicable Law, we will provide at least 30-day prior notice before the change becomes effective. During the notice period, you may terminate this Agreement without charge and with immediate effect.</div> 584</div> 585<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 586<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">11.3</div> 587<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Acceptance of Changes</span>. Unless Applicable Law requires otherwise, you will be deemed to have accepted a notified change if you do not object to the change before it becomes effective. Continued use of the Services after a change takes effect will constitute acceptance of the updated terms.</div> 588</div> 589<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 590<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">11.4</div> 591<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Changes Required by Law</span>. We may make changes with immediate effect where reasonably necessary to comply with Applicable Law, a regulatory requirement, a card scheme requirement, a court order or a requirement imposed by a Regulated Service Provider. Where practicable, we will notify you of such changes as soon as reasonably possible.</div> 592</div> 593</div> 594<div style="align-self: stretch; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 12px; display: flex"> 595<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 596<div style="width: 40px; color: #838388; font-size: 16px; font-family: Inter; font-weight: 600; line-height: 24px; word-wrap: break-word">12.</div> 597<div style="flex: 1 1 0; color: #838388; font-size: 16px; font-family: Inter; font-weight: 600; line-height: 20px; word-wrap: break-word">COMMUNICATIONS AND DATA PROTECTION</div> 598</div> 599<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 600<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">12.1</div> 601<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Communications</span>. You agree that we may communicate with you electronically through the Platform, email or any other contact details you have provided to us. By entering into this Agreement, you consent to receiving communications, notices, statements, disclosures and other information relating to the Services by electronic means, unless Applicable Law requires otherwise. You may withdraw your consent to electronic communications at any time. However, where electronic communications are necessary for the provision of the Services, withdrawal of consent may result in restrictions on your use of the Services or termination of this Agreement. You are responsible for ensuring that your contact details remain accurate and up to date and for regularly reviewing communications made available through the Platform. English is the language used for c
601ommunications during the relationship unless otherwise agreed.</div> 602</div> 603<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 604<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">12.2</div> 605<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Durable Medium</span>. Where required by Applicable Law, we will provide information in a durable medium. You may request a copy of this Agreement and certain other information relating to the Services at any time during the relationship.</div> 606</div> 607<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 608<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">12.3</div> 609<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Recording and Monitoring</span>. We may monitor, record and retain communications between you and us for security, training, quality assurance, fraud prevention, dispute resolution and legal or regulatory purposes.</div> 610</div> 611<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 612<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">12.4</div> 613<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Data Protection</span>. We process personal data in accordance with our Privacy Notice, which forms part of this Agreement. The Privacy Notice explains how we collect, use, share, retain and otherwise process personal data in connection with the Services.</div> 614</div> 615</div> 616<div style="align-self: stretch; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 12px; display: flex"> 617<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 618<div style="width: 40px; color: #838388; font-size: 16px; font-family: Inter; font-weight: 600; line-height: 24px; word-wrap: break-word">13.</div> 619<div style="flex: 1 1 0; color: #838388; font-size: 16px; font-family: Inter; font-weight: 600; line-height: 20px; word-wrap: break-word">COMPLAINTS</div> 620</div> 621<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 622<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">13.1</div> 623<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Contacting Us</span>. If you are dissatisfied with the Services, please contact Customer Support in the first instance. Details of how to submit a complaint are available through the Platform and in our Complaints Policy.</div> 624</div> 625<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 626<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">13.2</div> 627<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Complaint Handling</span>. We will investigate complaints fairly, consistently and promptly in accordance with our Complaints Policy and Applicable Law. We may request additional information or documentation where reasonably necessary to investigate a complaint. We will communicate the outcome of our investigation and any available escalation options in accordance with Applicable Law.</div> 628</div> 629<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 630<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">13.3</div> 631<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Escalation</span>. If you remain dissatisfied after we have completed our review of your complaint, you may be entitled to refer the complaint to an applicable ombudsman service, alternative dispute resolution body, regulatory authority or competent c
631ourt, depending on your eligibility, jurisdiction and the Services provided. Where required by Applicable Law, we will provide information regarding the applicable complaint escalation options when issuing our final response.</div> 632</div> 633<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 634<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">13.4</div> 635<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Financial Ombudsman Service</span>. Where eligible under Applicable Law, customers may have the right to refer a complaint to the Financial Ombudsman Service in the United Kingdom or another competent dispute resolution body in the relevant jurisdiction. Information regarding applicable redress procedures and eligibility requirements will be provided as part of the complaint handling process.</div> 636</div> 637</div> 638<div style="align-self: stretch; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 12px; display: flex"> 639<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 640<div style="width: 40px; color: #838388; font-size: 16px; font-family: Inter; font-weight: 600; line-height: 24px; word-wrap: break-word">14.</div> 641<div style="flex: 1 1 0; color: #838388; font-size: 16px; font-family: Inter; font-weight: 600; line-height: 20px; word-wrap: break-word">
641LIABILITY</div> 642</div> 643<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 644<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">14.1</div> 645<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Our Liability</span>. We will be responsible for losses suffered by you to the extent they are directly caused by our breach of this Agreement, negligence, fraud or wilful misconduct. Nothing in this Agreement excludes or limits any liability that cannot be excluded or limited under Applicable Law.</div> 646</div> 647<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 648<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">14.2</div> 649<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Events Outside Our Reasonable Control</span>. We will not be liable for any delay, interruption, failure or unavailability of the Services arising from circumstances beyond our reasonable control, including acts of government, regulatory action, failures of telecommunications networks, payment systems, card schemes, banking partners, service providers, utilities, cyberattacks, labour disputes or other events beyond our reasonable control.</div> 650</div> 651<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 652<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">14.3</div> 653<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Third-Party Services</span>. The Services may rely on third-party providers, including Merchants, card schemes, Regulated Service Providers, payment systems, banking partners and technology providers. To the maximum extent permitted by Applicable Law, we are not responsible for the acts, omissions, products, services, failures or insolvency of any such third party.</div> 654</div> 655<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 656<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">14.4</div> 657<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Indirect Losses</span>. To the maximum extent permitted by Applicable Law, we will not be liable for any indirect, incidental, consequential, special or punitive damages, including loss of profit, loss of revenue, loss of business opportunity, loss of goodwill, loss of anticipated savings or business interruption.</div> 658</div> 659<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 660<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">14.5</div> 661<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Mitigation</span>. Each party shall take reasonable steps to mitigate any loss or damage that it suffers in connection with this Agreement.</div> 662</div> 663<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 664<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">14.6</div> 665<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Regulatory Restrictions</span>. We will not be liable for any loss resulting from actions reasonably taken by us to comply with Applicable Law, regulatory requirements, sanctions obligations, card scheme rules or requirements imposed by a Regulated Service Provider.</div> 666</div> 667</div> 668<div style="align-self: stretch; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 12px; display: flex"> 669<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 670<div style="width: 40px; color: #838388; font-size: 16px; font-family: Inter; font-weight: 600; line-height: 24px; word-wrap: break-word">15.</div> 671<div style="flex: 1 1 0; color: #838388; font-size: 16px; font-family: Inter; font-weight: 600; line-height: 20px; word-wrap: break-word">GENERAL</div> 672</div> 673<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 674<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">15.1</div> 675<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Entire Agreement</span>. This Agreement, together with any documents incorporated by reference, constitutes the entire agreement between the parties in relation to the Services and supersedes any prior discussions, understandings or agreements relating to its subject matter.</div> 676</div> 677<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 678<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">15.2</div> 679<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Assignment</span>. You may not assign, transfer, charge or otherwise dispose of any of your rights or obligations under this Agreement without our prior written consent. We may assign, transfer or novate this Agreement, or any of our rights and obligations under it, to any affiliate, successor, Regulated Service Provider or other third party, provided that doing so does not materially reduce your rights under this Agreement.</div> 680</div> 681<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 682<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">15.3</div> 683<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">No Waiver</span>. Any delay or failure by either party to exercise a right or remedy under this Agreement shall not constitute a waiver of that right or remedy.</div> 684</div> 685<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 686<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">15.4</div> 687<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Severability</span>. If any provision of this Agreement is determined to be invalid, illegal or unenforceable, the remaining provisions shall remain in full force and effect.</div> 688</div> 689<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 690<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">15.5</div> 691<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Third-Party Rights</span>. A person who is not a party to this Agreement shall not have any right to enforce any provision of this Agreement except where expressly provided by Applicable Law.</div> 692</div> 693<div style="align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 8px; display: inline-flex; "> 694<div style="width: 40px; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word">15.6</div> 695<div style="flex: 1 1 0; color: #838388; font-size: 14px; font-family: Inter; font-weight: 400; line-height: 20px; word-wrap: break-word"><span style="font-weight: 600">Governing Law and Jurisdiction</span>. This Agreement and any non-contractual obligations arising out of or in connection with it shall be governed by the laws of England and Wales. The courts of England and Wales shall have exclusive jurisdiction to settle any dispute arising out of or in connection with this Agreement, except where Applicable Law requires otherwise.</div> 696</div> 697</div> 698 </div> 699</div> 700</body> 701</html> 702`,cB=()=>(0,L.jsx)(D,{container:!0,direction:`column`,gap:2,children:(0,L.jsx)(O,{sx:{'& [style*="width: 480px"]':{display:`flex !important`,mx:`auto`}},dangerouslySetInnerHTML:{__html:sB}})}),lB=({opened:e,onClose:t,tracker:n})=>{let{t:r}=G(),i=hR(),a=Ar(),{data:o}=$L();return(0,L.jsx)(kt,{open:e,onClose:t,submitTitle:r(`Cancel Application`),cancelTitle:r(`Go Back`),title:r(`Are you sure you want to cancel your application?`),submitProps:{variant:`destructive`},cancelProps:{variant:`tertiaryBlack`},onSubmit:async()=>
702{if(t(),!o?.currentStage||o.currentStage===H.NotOnboarded){a(Ho);return}await i.mutateAsync(),Object.values(Q).forEach(e=>localStorage.removeItem(e)),a(Ho),n?.({action:Aw.FormCanceled})},size:`compact`,actionsAlignment:`space-between`,children:(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`All your saved progress will be permanently removed and you'll need to start over.`})})},uB=({asIconBtn:e,onCancel:t,tracker:n})=>{let{t:r}=G(),i=wt(),a=async()=>{if(t){t();return}i.openModal()};return(0,L.jsxs)(L.Fragment,{children:[e?(0,L.jsx)(dn,{color:`tertiaryBlack`,size:`medium`,onClick:a,"aria-label":r(`Close`),children:(0,L.jsx)(Nn,{})}):(0,L.jsx)(A,{startIcon:(0,L.jsx)(Nn,{}),variant:`textGray`,size:`medium`,onClick:a,children:(0,L.jsx)(K,{children:`Cancel Form`})}),(0,L.jsx)(lB,{opened:i.open,onClose:i.closeModal,tracker:n})]})},dB=({opened:e,onClose:t,onSaveAndExit:n,saveAndExitDisabled:r,tracker:i})=>{let{t:a}=G(),o=hR(),s=Ar(),c=P(),[l,u]=(0,I.useState)(!1),d=async()=>{u(!0);try{await n?.(),await c.refetchQueries({queryKey:Ed.init()}),t(),s(Ho)}catch{b({message:a(`Couldn't save your data. Please try again.`),variant:`attention`})}finally{u(!1)}},f=async()=>{await o.mutateAsync(),Object.values(Q).forEach(e=>localStorage.removeItem(e)),i?.({action:Aw.FormCanceled}),t(),s(Ho)},p=o.isPending||l;return(0,L.jsx)(kt,{open:e,onClose:t,submitTitle:a(`Save and exit`),submitProps:{variant:`secondary`,disabled:p||r,loading:l},onSubmit:d,noCancelButton:!0,middleTitle:a(`Go Back`),middleProps:{variant:`tertiaryBlack`,disabled:p},noMiddleButton:!1,onMiddle:t,moreAction:(0,L.jsx)(A,{variant:`destructive`,size:`medium`,onClick:f,loading:o.isPending,sx:{fontSize:14,fontWeight:600},children:a(`Cancel Application`)}),title:a(`Are you sure you want to leave your application?`),size:`compact`,actionsAlignment:`space-between`,children:(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`You can save your progress and continue later, or cancel your application and remove your details.`})})},fB=({sidebar:e,footer:t,onCancel:n,children:r})=>(0,L.jsxs)(T,{direction:`column`,sx:e=>({height:`100%`,width:`100%`,backgroundColor:e.extendPalette.neutral0}),children:[(0,L.jsxs)(T,{direction:`row`,alignItems:`center`,justifyContent:`space-between`,sx:{height:72,px:3,flexShrink:0},children:[(0,L.jsx)(K,{variant:`headlineM`,color:`neutral500`,children:`Open payment account`}),(0,L.jsx)(uB,{asIconBtn:!0,onCancel:n})]}),(0,L.jsx)(E,{}),(0,L.jsxs)(T,{direction:`row`,sx:{flex:1,minHeight:0},children:[e?(0,L.jsx)(O,{sx:{width:336,flexShrink:0,overflow:`auto`},children:e}):null,(0,L.jsx)(O,{sx:{flex:1,minWidth:0,overflow:`auto`},children:r})]}),t?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(E,{}),(0,L.jsx)(O,{sx:{flexShrink:0},children:t})]}):null]}),pB=()=>{let{t:e}=G(),{toNextStep:t,toPrevStep:n,currentStepIdx:r,stepWasSubmitted:i}=qz(),{mutate:a,isPending:o}=tR(),[s,c]=(0,I.useState)(i),[l,u]=(0,I.useState)(i),[d,f]=E_(Q.Agreement,!1),{ref:p,inView:m}=Ce({threshold:.1});(0,I.useEffect)(()=>{m&&f(!0)},[m,f]);let h=d||i,g=s&&l;return(0,L.jsx)(fB,{footer:(0,L.jsx)(gL,{onPrevious:n,isPreviousDisabled:r===0,onNext:()=>{if(g){if(i){t();return}a(void 0,{onSuccess:()=>t()})}},isNextDisabled:!g,isNextLoading:o}),children:(0,L.jsxs)(O,{sx:{pl:`120px`,pr:`120px`,pt:3,minHeight:`100%`},children:[(0,L.jsx)(K,{variant:`headlineS`,color:`neutral500`,component:`div`,children:`Review and accept the terms`}),(0,L.jsx)(E,{sx:{mt:2,mb:3}}),(0,L.jsx)(O,{sx:{'& [style*="width: 480px"]':{display:`flex !important`,width:`100% !important`,maxWidth:`1040px !important`,mx:`auto`}},children:(0,L.jsx)(cB,{})}),(0,L.jsx)(O,{ref:p,sx:{height:1}}),(0,L.jsxs)(O,{sx:e=>({position:`sticky`,bottom:0,backgroundColor:e.extendPalette.neutral0,mt:3,pt:2,pb:3}),children:[(0,L.jsx)(E,{sx:{mb:2}}),(0,L.jsx)(at,{title:h?``:e(`Please read the terms before proceeding.`),placement:`top-start`,children:(0,L.jsxs)(T,{direction:`column`,gap:.5,mb:1,children:[(0,L.jsxs)(T,{component:`label`,direction:`row`,alignItems:`start`,sx:{cursor:h?`pointer`:`not-allowed`},children:[(0,L.jsx)(Zn,{sx:{py:0,px:1}
702,icon:(0,L.jsx)(ze,{sx:{color:`neutral200`}}),checkedIcon:(0,L.jsx)(bt,{}),checked:s,disabled:!h,onChange:e=>{h&&c(e.target.checked)}}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral500`,children:`I've read and agree to the terms and conditions`})]}),(0,L.jsxs)(T,{component:`label`,direction:`row`,alignItems:`start`,sx:{cursor:h?`pointer`:`not-allowed`},children:[(0,L.jsx)(Zn,{sx:{py:0,px:1},icon:(0,L.jsx)(ze,{sx:{color:`neutral200`}}),checkedIcon:(0,L.jsx)(bt,{}),checked:l,disabled:!h,onChange:e=>{h&&u(e.target.checked)}}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral500`,children:`I confirm all cardholders are authorized by my company, and I'll verify their identity as required by UK/EEA regulations`})]})]})}),(0,L.jsx)(O,{sx:{pl:1},children:(0,L.jsxs)(K,{variant:`bodyM`,color:`neutral400`,component:`span`,children:[(0,L.jsxs)(Wt,{target:`_blank`,href:rB,children:[e(`Download`),` `]}),`the full terms and conditions, including our fees and limits.`]})})]})]})})},mB=[`Spendbase is required under U.S. law and by its banking partners to perform identity, compliance, and risk checks when providing financial services.`,`These include KYB and KYC checks on the business and relevant individuals, such as beneficial owners, officers, and authorized persons, and may involve identity verification, sanctions and PEP screening, adverse media checks, fraud prevention, and ongoing monitoring.`,`By continuing, you acknowledge that these checks are mandatory and may continue throughout the business relationship.`,`Your application data will be temporarily saved so you can return and complete onboarding later.`],hB=({onPrevious:e,onNext:t,isNextLoading:n})=>(0,L.jsx)(fB,{footer:(0,L.jsx)(gL,{onPrevious:e,onNext:t,isNextLoading:n}),children:(0,L.jsxs)(O,{width:`100%`,pt:3,sx:{px:`120px`},children:[(0,L.jsx)(K,{variant:`headlineS`,color:`neutral500`,component:`div`,children:`Please review`}),(0,L.jsx)(E,{sx:{mt:3,mb:3}}),(0,L.jsx)(T,{gap:2,children:mB.map((e,t)=>(0,L.jsx)(k,{variant:`bodyM`,color:`neutral400`,component:`div`,children:e},t))})]})}),gB=({icon:e,title:t,subtitle:n,footer:r})=>(0,L.jsxs)(T,{direction:`row`,gap:1.5,alignItems:`flex-start`,children:[(0,L.jsx)(O,{sx:{width:24,height:24,display:`flex`,alignItems:`center`,justifyContent:`center`,flexShrink:0},children:e}),(0,L.jsxs)(T,{direction:`column`,gap:.25,children:[(0,L.jsx)(K,{variant:`labelL`,color:`neutral500`,children:t}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:n}),r]})]}),_B=()=>{let{open:e}=QR(),{trackStepAction:t}=TR({stepName:Mw.GetStarted,stepNumber:Object.values(Mw).indexOf(Mw.GetStarted)+1});return(0,L.jsxs)(T,{gap:3,mt:3,children:[(0,L.jsx)(E,{}),(0,L.jsxs)(T,{gap:.5,children:[(0,L.jsx)(K,{variant:`labelL`,color:`neutral500`,children:`What to expect next`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral500`,children:`Opening your payment account usually takes 5â10 minutes.`})]}),(0,L.jsxs)(T,{gap:2.5,children:[(0,L.jsx)(gB,{icon:(0,L.jsx)(Xe,{size:20,sx:{color:`neutral500`}}),title:`Business information`,subtitle:`Company legal details and address`}),(0,L.jsx)(gB,{icon:(0,L.jsx)(Rt,{size:20,sx:{color:`neutral500`}}),title:`Ownership details`,subtitle:`Shareholder and director information`}),(0,L.jsx)(gB,{icon:(0,L.jsx)(Me,{size:20,sx:{color:`neutral500`}}),title:`Documents`,subtitle:`Company and ownership documents`,footer:(0,L.jsxs)(T,{direction:`row`,gap:.5,alignItems:`center`,sx:{cursor:`pointer`},onClick:()=>{e(t),t({action:jw.ModalReviewDocumentsOpened})},children:[(0,L.jsx)(K,{variant:`labelM`,color:`blue500`,children:`Review Documents`}),(0,L.jsx)(Tn,{size:16,sx:{color:`blue500`}})]})})]})]})},vB=`https://forms.gle/jpn5Jz7LLN4eWWnA9`,yB=({countryName:e})=>{let{t}=G(),n=Ar();return(0,L.jsx)(fB,{onCancel:()=>{n(Ho)},children:(0,L.jsx)(O,{maxWidth:480,mx:`auto`,width:`100%`,pt:15,px:3,children:(0,L.jsxs)(T,{spacing:3,children:[(0,L.jsx)(O,{sx:{width:56,height:56,borderRadius:e=>e.extendStyles.radiusM,display:`flex`,alignItems:`center`,justifyContent:`center`,border:e=>`1px solid ${e.extendPalette.neutral200}`},children:(0,L.jsx)(ot,{sx:{fontSize:32,color:e=>e.extendPalette.green500}})}),(0,L.jsxs)(T,{spacing:.5,children:[(0,L.jsx)(K,{variant:`headlineS`,color:`neutral500`,children:`You're on the waitlist`}),(0,L.jsxs)(K,{variant:`bodyM`,color:`neutral500`,children:[`We'll notify you as soon as we open onboarding for businesses registered in`,` `,(0,L.jsxs)(k,{component:`span`,variant:`labelM`,fontWeight:500,children:[e,`.`]})]})]}),(0,L.jsx)(E,{}),(0,L.jsxs)(T,{spacing:2,alignItems:`start`,children:[(0,L.jsxs)(T,{spacing:.5,children:[(0,L.jsx)(K,{variant:`titleM`,color:`neutral500`,children:`Help us plan next launches`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral500`,children:`Share a few details about your business.`})]}),(0,L.jsx)(A,{variant:`secondary`,onClick:()=>window.open(vB),children:t(`Share details`)})]})]})})})},bB=[`EE`,`PL`,`GB`,`CY`],xB=()=>{let{t:e}=G(),t=zr(),{data:n}=cR(uc.EEAPLUS),{data:r}=cR(),{data:i}=lR(),{data:a}=$L(),{toNextStep:o}=qz(),{mutate:s,isPending:c}=eR(),{mutateAsync:l,isPending:u}=Bg(),{mutateAsync:d,isPending:f}=Rg(),{data:p}=Od(),m=Ar(),{trackStepAction:h}=TR({stepName:Mw.Registration,stepNumber:Object.values(Mw).indexOf(Mw.Registration)+1}),[g,_]=(0,I.useState)(a?.registrationCountry),[v,y]=(0,I.useState)(!1),[x,S]=(0,I.useState)(!1),ee=(0,I.useRef)(!1),te=t.state?.fromBankingRedirect===!0,C=g??a?.registrationCountry,w=(0,I.useMemo)(()=>{let t=n??[],i=new Map(t.map(e=>[e.iso31661Alpha2Code,e])),a=(r??[]).filter(e=>e.isWaitlist&&!i.has(e.iso31661Alpha2Code)),o=bB.map(e=>
702i.get(e)).filter(Boolean).map(t=>({label:t.name,value:t.iso31661Alpha2Code,group:e(`Popular countries`),isWaitlist:!1})),s=new Set(o.map(e=>e.value)),c=[...t,...a].filter(e=>!s.has(e.iso31661Alpha2Code)).sort((e,t)=>e.name.localeCompare(t.name)).map(t=>({label:t.name,value:t.iso31661Alpha2Code,group:e(`All countries`),isWaitlist:t.isWaitlist&&!(R.ENABLE_US_KYB_FEATURE&&t.iso31661Alpha2Code===`US`)}));return R.ENABLE_US_KYB_FEATURE&&!i.has(`US`)&&!c.some(e=>e.value===`US`)&&(c.push({label:`United States`,value:`US`,group:e(`All countries`),isWaitlist:!1}),c.sort((e,t)=>e.label.localeCompare(t.label))),[...o,...c]},[n,r,e]),ne=C?hn(C):null;(0,I.useEffect)(()=>{ee.current||a?.registrationCountry||!i||w.some(e=>e.value===i)&&(_(i),ee.current=!0)},[i,w,a?.registrationCountry]),(0,I.useEffect)(()=>{ee.current||g||Vh(p?.region)&&(_(`US`),ee.current=!0)},[p?.region,g]);let re=w.find(e=>e.value===C),ie=async t=>{let n=Th();if(n&&t!==`US`)return b({message:e(`This onboarding flow is for US companies only. Remove the flow parameter from the URL to continue with another country.`),variant:`attention`}),!1;let r=t===`US`?Oh(n):_h.EU;try{await l(r)}catch(t){let n=t?.data?.error;return b({message:typeof n==`string`&&n?n:e(`Failed to start onboarding. Please try again.`),variant:`attention`}),!1}return!0},ae=async()=>{let e=await ng(),t=e.workflows.find(e=>!e.completed)??e.workflows[0];if(!t)return null;let n=(await Yh(t.id)).steps.find(e=>jh(e)===`region`),r=t.id;if(!r||!n)return null;await d({workflow_id:r,step_id:n.id,data:{},file_ids:[]});let i=(await Yh(r)).steps.find(e=>!e.completed&&!Mh(e));return i?{workflowId:r,stepId:i.id}:null};return x?(0,L.jsx)(hB,{onPrevious:()=>S(!1),onNext:async()=>{try{if(!await ie(`US`))return;let e=await ae();wg(),m(e?be(As.WORKFLOW.path,{workflowId:e.workflowId,stepId:e.stepId}):Wo)}catch{b({message:e(`Failed to start onboarding. Please try again.`),variant:`attention`})}},isNextLoading:u||f}):v?(0,L.jsx)(yB,{countryName:re?.label??C??``}):(0,L.jsx)(fB,{footer:(0,L.jsx)(gL,{isPreviousDisabled:!0,onNext:async()=>{if(C){if(C===`US`&&R.ENABLE_US_KYB_FEATURE){S(!0);return}if(!(!C||!re)){if(re.isWaitlist){y(!0),h({action:jw.CountryWaitListClicked});return}if(h({action:Aw.NextButtonClicked}),await ie(C)){if(a?.registrationCountry===C){o();return}s({registrationCountry:C},{onSuccess:()=>o()})}}}},isNextDisabled:!C,isNextLoading:c||u||f}),children:(0,L.jsxs)(O,{maxWidth:480,mx:`auto`,width:`100%`,pt:3,px:3,children:[(0,L.jsx)(K,{variant:`headlineS`,color:`neutral500`,component:`div`,mb:.5,children:`Choose your company location`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,component:`div`,children:`Country where your company is registered`}),(0,L.jsx)(E,{sx:{my:3}}),(0,L.jsx)(Ke,{options:w,value:C,onChange:e=>_(typeof e==`string`?e:void 0),placeholder:e(`Select country`),disabled:c||u||f,ListboxProps:{style:{maxHeight:500}},componentsProps:{paper:{sx:{mt:.5}}},groupBy:e=>e.group,renderGroup:e=>(0,L.jsxs)(nr,{children:[(0,L.jsx)(k,{variant:`labelS`,color:`neutral400`,py:.5,children:e.group}),(0,L.jsx)(E,{}),(0,L.jsx)(nr,{sx:{p:0,mt:.5},children:e.children})]},e.key),textFieldProps:{slotProps:{input:{startAdornment:ne?(0,L.jsx)(ne,{}):null}}},renderOption:(t,n)=>{let r=n,i=hn(String(n.value));return(0,I.createElement)(gr,{...t,key:n.value,sx:{py:1.25,[`& .${vr.root}`]:{width:28,height:28}}},(0,L.jsx)(tt,{label:n.label,startIcon:i&&(0,L.jsx)(i,{sx:{width:28,height:28}})}),r.isWaitlist&&(0,L.jsx)(Vn,{size:`large`,color:`secondary`,variant:`filled`,sx:e=>({"&&":{backgroundColor:e.extendPalette.blue50,borderColor:e.extendPalette.blue50}}),label:e(`Join Waitlist`)}))}}),te&&(0,L.jsx)(_B,{})]})})},SB=[H.AgreementSubmitted,H.CompanyDetailsSubmitted,H.BusinessActivitySubmitted,H.ExpectedActivitySubmitted,H.CompanyAddressSubmitted,H.BeneficiaryPersonSubmitted,H.AuthorizedPersonSubmitted,H.DocumentsSubmitted],{useWizardStepper:CB,WizardStepperProvider:wB}=Hz({steps:SB,initialStep:H.AgreementSubmitted,getServerState:$L}),TB=({prevBtnProps:e,nextBtnProps:t,renderPrevBtn:n,renderNextBtn:r})=>{let{t:i}=G(),{currentStepIdx:a,steps:o,toNextStep:s,toPrevStep:c}=CB();return(0,L.jsxs)(T,{direction:`row`,alignItems:`center`,justifyContent:`space-between`,p:3,children:[n?n():(0,L.jsx)(A,{variant:`tertiaryBlack`,startIcon:(0,L.jsx)(_t,{}),onClick:c,disabled:a===0,...e,children:i(`Previous`)}),r?r():(0,L.jsx)(A,{variant:`primary`,endIcon:(0,L.jsx)(dt,{}),onClick:s,disabled:a>=o.length-1,sx:{marginLeft:`auto`},...t,children:i(`Next`)})]})},EB=({onCancel:e,onSaveAndExit:t,saveAndExitDisabled:n,tracker:r})=>{let{t:i}=G(),a=wt();return(0,L.jsxs)(T,{direction:`row`,justifyContent:`space-between`,alignItems:`center`,px:3,py:2.5,
702children:[(0,L.jsx)(K,{variant:`headlineM`,children:`Open payment account`}),(0,L.jsx)(dn,{color:`tertiaryBlack`,size:`medium`,onClick:()=>{if(e){e();return}r?.({action:jw.ModalCancelFormOpened}),a.openModal()},"aria-label":i(`Close`),children:(0,L.jsx)(Nn,{})}),(0,L.jsx)(dB,{opened:a.open,onClose:a.closeModal,onSaveAndExit:t,saveAndExitDisabled:n,tracker:r})]})},DB=[{id:`company-info`,icon:it,labelKey:`Company info`,stages:[H.AgreementSubmitted,H.CompanyDetailsSubmitted,H.BusinessActivitySubmitted],subSteps:[{id:`company-details`,stage:H.AgreementSubmitted,labelKey:`Company details`},{id:`business-activity`,stage:H.CompanyDetailsSubmitted,labelKey:`Business activity`},{id:`expected-activity`,stage:H.BusinessActivitySubmitted,labelKey:`Expected activity`}]},{id:`company-address`,stage:H.ExpectedActivitySubmitted,icon:wn,labelKey:`Company address`},{id:`shareholders`,stage:H.CompanyAddressSubmitted,icon:Rt,labelKey:`Shareholders`},{id:`directors`,stage:H.BeneficiaryPersonSubmitted,icon:jn,labelKey:`Directors`},{id:`documents`,stage:H.AuthorizedPersonSubmitted,icon:Me,labelKey:`Documents`}],OB=({tracker:e})=>{let{t}=G(),{currentStep:n,currentStepIdx:r,setCurrentStep:i}=CB(),{data:a}=$L(),o=SB.indexOf(a?.currentStage??SB[0]),[s,c]=(0,I.useState)(Math.max(r,o)),l=Math.max(r,o);l>s&&c(l);let u=e=>SB.indexOf(e)<o,d=e=>e===n,f=e=>SB.indexOf(e)>s||n===H.AuthorizedPersonSubmitted,p=e=>({id:e.id,value:e.stage,label:t(e.labelKey),isCompleted:u(e.stage),isSelected:d(e.stage),isDisabled:f(e.stage)}),m=e=>{let n={id:e.id,icon:e.icon,label:t(e.labelKey)};if(`stages`in e&&e.stages&&e.subSteps){let t=e.subSteps.map(e=>p(e));return{...n,isCompleted:e.stages.every(u),isSelected:e.stages.some(d),isDisabled:t.every(e=>e.isDisabled),subSteps:t}}if(`stage`in e&&e.stage)return{...n,value:e.stage,isCompleted:u(e.stage),isSelected:d(e.stage),isDisabled:f(e.stage)};throw Error(`Invalid step configuration for step: ${e.id}`)};return(0,L.jsx)(cL,{steps:DB.map(e=>m(e)),onClick:(0,I.useCallback)(t=>{i(t),e?.({action:Aw.StepperClicked})},[i,e])})},kB=(0,L.jsx)(E,{sx:e=>({margin:e.spacing(0,3,0,3)})}),AB=({header:e,sidebar:t,content:n,footer:r})=>(0,L.jsxs)(O,{display:`flex`,flexDirection:`column`,height:`100%`,children:[(0,L.jsxs)(T,{sx:{position:`sticky`,top:0,left:0,right:0,bgcolor:`neutral0`,zIndex:1},children:[e,kB]}),(0,L.jsxs)(D,{container:!0,flex:1,wrap:`nowrap`,children:[(0,L.jsx)(O,{width:280,p:3,sx:{"> div":{position:`sticky`,top:`88px`}},children:t}),(0,L.jsx)(O,{flex:1,overflow:`auto`,padding:3,sx:{scrollbarGutter:`stable`},children:n})]}),(0,L.jsxs)(T,{sx:{position:`sticky`,bottom:0,left:0,right:0,bgcolor:`neutral0`},children:[kB,r]})]}),jB=ti({companyDescription:Yr().trim().max(300).required(ya),website:Yr().nullable().when(`noWebsite`,{is:!0,then:e=>e.nullable().notRequired(),otherwise:e=>e.required(`Website is required. Please provide a valid URL or check "Company doesn't have a website".`).test(`is-valid-url`,`Please enter a valid URL (e.g., domain.com or https://domain.com)`,e=>e?Aa(e):!1).transform(e=>e&&ka(e))}),noWebsite:Wr().default(!1),subCategoryId:Yr().required(ya)}),MB=()=>{let{t:e}=G(),{data:t}=$L(),{trackStepAction:n}=TR({stepName:Mw.BusinessActivity,stepNumber:Object.values(Mw).indexOf(Mw.BusinessActivity)+1}),{toNextStep:r,stepWasSubmitted:i,toPrevStep:a}=CB(),{data:o}=dR(),s=rR(),{reset:c,handleSubmit:l,control:u,formState:{isValid:d,isDirty:f},setValue:p,trigger:m,watch:h,getValues:g}=ei({resolver:ii(jB),mode:`onChange`}),_=i&&!d,v=(0,I.useMemo)(()=>o?.map(e=>({value:e.id,label:e.name,children:e.industrySubCategories.map(e=>({value:e.id,label:e.name}))}))||[],[o]),y=Qr({control:u,name:`companyDescription`}),b=Qr({control:u,name:`noWebsite`}),x=Qr({control:u,name:`website`}),{clearSavedFormData:S}=uv({formId:Q.BusinessActivity,formData:f?h():{},setValue:p,trigger:m}),ee=async()=>{await s.mutateAsync({...g(),isCompleted:!1}),S()},te=l(async e=>{if(n({action:Aw.NextButtonClicked}),!f&&i){r();return}await s.mutateAsync({...e,isCompleted:!0}),S(),r()});return(0,I.useEffect)(()=>{!t?.businessActivity||f||lv(Q.BusinessActivity)||(c(t.businessActivity),m(fl(g())))},[c,t,f,m]),(0,L.jsx)(AB,{header:(0,L.jsx)(EB,{tracker:n,onSaveAndExit:ee,saveAndExitDisabled:_}),sidebar:(0,L.jsx)(OB,{tracker:n}),content:(0,L.jsxs)(T,{maxWidth:480,mx:`auto`,width:`100%`,pt:3,gap:3,children:[(0,L.jsxs)(T,{gap:.5,children:[(0,L.jsx)(K,{variant:`headlineS`,children:`Business activity`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`Provide information about your companyâs operations.`})]}),(0,L.jsx)(E,{}),(0,L.jsx)(Cn,{name:`subCategoryId`,control:u,options:v,label:e(`Industry`),labelSize:`large`,placeholder:e(`Select`),helperText:(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`Select one that best describes your business.`})}),(0,L.jsxs)(T,{children:[(0,L.jsx)(Ln,{name:`companyDescription`,label:e(`About company`),labelSize:`large`,placeholder:e(`Describe the products you sell or the services you offer in 2â3 sentences.`),multiline:!0,rows:3,control:u,inputProps:{maxLength:300}}),(0,L.jsxs)(k,{variant:`labelS`,textAlign:`center`,color:`neutral400`,mt:1,children:[y?.length??0,`/`,300]})]}),(0,L.jsxs)(T,{gap:.5,children:[(0,L.jsx)(Ln,{name:`website`,control:u,label:e(`Website`),labelSize:`large`,disabled:b}),(0,L.jsx)($r,{name:`noWebsite`,control:u,render:({field:t})=>(0,L.jsx)(Yn,{disabled:!!x,checked:!!t.value,control:(0,L.jsx)(Zn,{checked:!!t.value,onChange:(e,n)=>
702{t.onChange(n),m(`website`)}}),label:e(`Company doesn't have a website`),sx:{ml:.5}})})]})]}),footer:(0,L.jsx)(TB,{prevBtnProps:{onClick:()=>{n({action:Aw.BackButtonClicked}),a()}},nextBtnProps:{disabled:!d,loading:s.isPending,onClick:te}})})},NB=(e=``)=>we(e,{customReplacements:[[`'`,``]]}),PB=({control:e,fieldPrefix:t,registrationCountry:n,disabled:r,addressLabel:i,addressDescription:a,setValue:o})=>{let{t:s}=G(),{data:c}=cR(),l=c,u=(0,I.useMemo)(()=>l?.map(e=>({value:e.iso31661Alpha2Code,label:e.name}))||[],[l]),[d,f]=(0,I.useState)(``),[p,m]=(0,I.useState)(d??``),[h,g]=(0,I.useState)(p);x(()=>{g(p)},400,[p]);let _=h.trim(),{data:v,isLoading:y}=PF({search:_},{enabled:_.length>0}),b=(0,I.useMemo)(()=>v?.suggestions?.map(e=>({value:e.id,label:e.description}))??[],[v?.suggestions]),{data:S,refetch:ee,isFetching:te}=IF(d,{enabled:!1});(0,I.useEffect)(()=>{let e=d;b.some(t=>t.value===e)&&ee().then()},[ee,d,b]),(0,I.useEffect)(()=>{if(!S)return;let e={shouldDirty:!0,shouldTouch:!0,shouldValidate:!0},r=NB(S.street);if(o(`${t}.streetName`,r,e),o(`${t}.city`,NB(S.city),e),o(`${t}.stateOrProvince`,NB(S.region),e),o(`${t}.postalCode`,S.postal_code??``,e),S.country&&!n){let n=u.find(e=>e.label===S.country)?.value;o(`${t}.country`,n,e)}},[S,u,t,n,o]);let C={control:e,labelSize:`large`},w={autoComplete:`nope`},ne=(e,r,i)=>{if(i===`input`)m(r),f(r);
702else if(i===`clear`){m(``),f(``);let e={shouldDirty:!0,shouldTouch:!0};o(`${t}.streetName`,``,e),o(`${t}.city`,``,e),o(`${t}.stateOrProvince`,``,e),o(`${t}.postalCode`,``,e),o(`${t}.unitNumber`,``,e),n||o(`${t}.country`,``,e)}};return(0,L.jsxs)(T,{gap:2,children:[(0,L.jsx)(Ke,{...C,freeSolo:!0,options:b,value:p,onChange:e=>f(e),loading:y||te,inputValue:p,onInputChange:ne,label:i,placeholder:s(`Search by address`),containerProps:{fullWidth:!0},textFieldProps:{inputProps:{...w},InputProps:{startAdornment:(0,L.jsx)(Ze,{sx:{color:`neutral400`}})}},helperText:(0,L.jsx)(k,{variant:`bodyM`,color:`neutral400`,children:a})}),(0,L.jsx)(Ln,{...C,control:e,name:`${t}.streetName`,placeholder:s(`Street`),disabled:r,inputProps:w}),(0,L.jsx)(Ln,{...C,control:e,name:`${t}.unitNumber`,placeholder:s(`App, unit, suite (optional)`),disabled:r,inputProps:w}),(0,L.jsxs)(T,{direction:`row`,gap:3,children:[(0,L.jsx)(Ln,{...C,control:e,name:`${t}.city`,placeholder:s(`City`),containerProps:{sx:{width:224}},inputProps:w}),(0,L.jsx)(Ln,{...C,control:e,name:`${t}.stateOrProvince`,placeholder:s(`State or province`),containerProps:{sx:{flex:1}},inputProps:w})]}),(0,L.jsxs)(T,{direction:`row`,gap:3,children:[(0,L.jsx)(Ln,{...C,control:e,name:`${t}.postalCode`,placeholder:s(`Type postal code`),containerProps:{sx:{width:224}},inputProps:w}),(0,L.jsx)(gt,{...C,name:`${t}.country`,placeholder:s(`Country`),disabled:!!n||r,options:u,textFieldProps:{inputProps:w},containerProps:{sx:{flex:1}}})]})]})},{BASE_ALLOWED_CHARACTERS_WITHOUT_COLON:FB,PROVIDER_SET_4:IB,PROVIDER_SET_7:LB}=lz,RB=ti({country:Yr().required(ya),city:Yr().trim().matches(LB,z.t(`Enter a valid city name`)).max(50,sl(50)).required(ya),stateOrProvince:Yr().trim().matches(LB,z.t(`Enter a valid state or province name`)).max(50,sl(50)).required(ya),postalCode:Yr().trim().matches(FB,z.t(`Enter a valid postal code`)).max(12,sl(12)).required(ya),streetName:Yr().trim().matches(IB,z.t(`Enter a valid street name`)).max(50,sl(50)).required(ya),unitNumber:Yr().trim().matches(FB,z.t(`Enter a valid building number`)).max(20,sl(20)).notRequired()}),zB=function(e){return e.Registered=`registered`,e.Different=`different`,e.Remote=`remote`,e}({}),BB=ti({workLocationType:oi().oneOf(Object.values(zB)).required(),registrationAddress:RB.required(),operationalAddress:ti().when([`workLocationType`],([e],t)=>e===zB.Different?RB.required():t.notRequired()),isRemote:Wr().default(!1)}),VB=[{label:z.t(`Registered address`),value:zB.Registered},{label:z.t(`Different address`),value:zB.Different},{label:z.t(`Remote`),value:zB.Remote}],HB=()=>{let{t:e}=G(),{data:t}=$L(),{trackStepAction:n}=TR({stepName:Mw.CompanyAddress,stepNumber:Object.values(Mw).indexOf(Mw.CompanyAddress)+1}),{toNextStep:r,stepWasSubmitted:i,toPrevStep:a}=CB(),{data:o}=cR(),s=aR(),{setValue:c,reset:l,handleSubmit:u,control:d,formState:{isValid:f,isDirty:p},watch:m,trigger:h,getValues:g}=ei({resolver:ii(BB),mode:`onChange`}),_=i&&!f,{clearSavedFormData:v}=uv({formId:Q.CompanyAddress,formData:p?m():{},setValue:c,trigger:h}),y=m(`workLocationType`)===zB.Different,b=async()=>{let e=g(),t=e.workLocationType===zB.Remote;await s.mutateAsync({...e,isRemote:t,operationalAddress:e.workLocationType===zB.Different?e.operationalAddress:void 0,isCompleted:!1}),v()},x=u(async e=>{if(!p&&i){r(),n({action:Aw.NextButtonClicked});return}if(!o)return;let t=e.workLocationType===zB.Remote;await s.mutateAsync({...e,isRemote:t,operationalAddress:e.workLocationType===zB.Different?e.operationalAddress:void 0,isCompleted:!0}),v(),r(),n({action:Aw.NextButtonClicked})});return(0,I.useEffect)(()=>{if(!t?.address||!o||p||lv(Q.CompanyAddress))return;let e=t.address.isRemote,n=!e&&JSON.stringify(t.address.operationalAddress)===JSON.stringify(t.address.registrationAddress);l({...t.address,isRemote:e,workLocationType:e?zB.Remote:n?zB.Registered:zB.Different,operationalAddress:e||n?void 0:t.address.operationalAddress}),h(fl(g()))},[l,t,o,p,h]),(0,L.jsx)(AB,{header:(0,L.jsx)(EB,{tracker:n,onSaveAndExit:b,saveAndExitDisabled:_}),sidebar:(0,L.jsx)(OB,{tracker:n}),content:(0,L.jsxs)(T,{maxWidth:480,mx:`auto`,width:`100%`,pt:3,gap:3,children:[(0,L.jsxs)(T,{gap:.5,children:[(0,L.jsx)(K,{variant:`headlineS`,children:`Company address`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`Provide your companyâs registered and operating address.`})]}),(0,L.jsx)(E,{}),(0,L.jsx)(PB,{addressLabel:e(`Registered address`),addressDescription:e(`Your companyâs official registered address`),setValue:c,control:d,fieldPrefix:`registrationAddress`}),(0,L.jsx)(Ht,{name:`workLocationType`,control:d,labelSize:`large`,label:e(`Where does your team mainly w
702ork from?`),options:VB,requireSelection:!0}),y&&(0,L.jsx)(PB,{addressLabel:e(`Operational address`),control:d,setValue:c,fieldPrefix:`operationalAddress`})]}),footer:(0,L.jsx)(TB,{prevBtnProps:{onClick:()=>{n({action:Aw.BackButtonClicked}),a()}},nextBtnProps:{disabled:!f,loading:s.isPending,onClick:x}})})},UB=({selectedCompany:e,manualEntryMode:t,onEnrichCompany:n,onResetCompany:r,onManualEntry:i,isResetting:a=!1,isEnriching:o=!1})=>{let{t:s}=G(),[c,l]=(0,I.useState)(``),[u,d]=(0,I.useState)(``),[f,p]=(0,I.useState)(!1);x(()=>d(c),500,[c]);let{data:m=[],isLoading:h}=gR(u,u.length>=3&&!e&&!t),g=(0,I.useMemo)(()=>e?[{label:e.companyName,value:e.id,company:e}]:m.map(e=>({label:e.companyName,value:e.id,company:e})),[e,m]),_=u.length>=3&&!h&&g.length===0,v=g.length>0,y=e=>{if(!e)return;let t=g.find(t=>t.value===String(e));t?.company&&n(t.company.id)},b=()=>{l(``),d(``),i()},S=e=>{e.preventDefault(),e.stopPropagation()},ee=()=>{p(!0)},te=async()=>{l(``),d(``),await r(),p(!1)},C=(0,L.jsxs)(T,{gap:1,alignItems:`flex-start`,onMouseDown:S,children:[(0,L.jsx)(On,{size:24,sx:e=>({color:e.extendPalette.neutral300})}),(0,L.jsxs)(T,{spacing:.5,children:[(0,L.jsx)(K,{variant:`labelM`,children:`No matching companies found.`}),(0,L.jsx)(Wt,{onClick:b,variant:`labelM`,children:`Enter details manually`})]})]});return(0,L.jsxs)(T,{spacing:1.5,children:[(0,L.jsxs)(T,{direction:`row`,justifyContent:`space-between`,alignItems:`center`,children:[(0,L.jsxs)(T,{spacing:.5,children:[(0,L.jsx)(K,{variant:`titleM`,color:`neutral500`,children:`Find your company`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`Search using your company name or registration number.`})]}),(e||t)&&(0,L.jsx)(Wt,{onClick:ee,variant:`labelM`,children:`Reset`})]}),(0,L.jsx)(Ke,{disabled:!!e||t||o,options:g,loading:h||o,inputValue:c,onInputChange:(e,t,n)=>{n===`input`&&l(t)},onChange:e=>y(e),value:t?s(`Entered manually`):e?.id??void 0,placeholder:s(`Search`),getOptionLabel:e=>typeof e==`string`?e:e.label||``,filterOptions:e=>e,renderOption:(e,t)=>{let n=t;return(0,I.createElement)(Dr,{...e,key:n.value},(0,L.jsxs)(O,{display:`flex`,justifyContent:`space-between`,alignItems:`center`,width:`100%`,gap:2,children:[(0,L.jsx)(K,{variant:`bodyM`,color:`neutral600`,sx:{flex:1},children:n.company?.companyName}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:n.company?.registrationNumber})]}))},loadingText:(0,L.jsx)(sr,{height:20,width:120}),textFieldProps:{sx:{"& .MuiOutlinedInput-input":{padding:0}},InputProps:{sx:{height:40},startAdornment:(0,L.jsx)($n,{position:`start`,children:(0,L.jsx)(Ze,{})})}},noOptionsText:_?C:null,PaperComponent:({children:e,...t})=>(0,L.jsxs)(Hn,{...t,sx:{"& .MuiAutocomplete-loading":{p:1},"& .MuiAutocomplete-listbox":{maxHeight:180},"&:has(.manual-entry-footer:hover) .MuiAutocomplete-option":{backgroundColor:`transparent !important`}},children:[v?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(T,{px:.75,direction:`row`,justifyContent:`space-between`,children:[(0,L.jsx)(K,{variant:`labelS`,color:`neutral400`,children:`Company name`}),(0,L.jsx)(K,{variant:`labelS`,color:`neutral400`,children:`Registration number`})]}),(0,L.jsx)(E,{sx:{mt:1,mb:.5}})]}):null,e,v?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(E,{sx:{my:.5}}),(0,L.jsx)(O,{className:`manual-entry-footer`,px:.75,onMouseDown:S,children:(0,L.jsx)(Wt,{onClick:b,variant:`labelM`,children:`Enter details manually`})})]}):null,u.length<3&&(0,L.jsx)(K,{variant:`labelM`,color:`neutral400`,children:`Please enter at least 3 characters`})]})}),(0,L.jsx)(kt,{open:f,onClose:()=>p(!1),title:s(`Are you sure you want to reset?`),submitTitle:s(`Reset Form`),submitProps:{variant:`destructive`,loading:a},onSubmit:te,cancelTitle:s(`Go Back`),children:(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`You have already entered some information. If you reset the form now, all data on this page will be removed.`})})]})},WB=e=>{let{data:t}=cR(e);return{countryCallingCodeOptions:(0,I.useMemo)(()=>t?Array.from(new Map(t.map(({callingCode:e,name:t,id:n})=>[t,{id:n,callingCode:e,name:t}])).values()).sort((e,t)=>
702e.name.localeCompare(t.name,void 0,{sensitivity:`base`})).map(({id:e,callingCode:t,name:n})=>({value:e,label:t,optionTitle:`${t} (${n})`})):[],[t]),splitPhone:(0,I.useCallback)(e=>{let n=ji(e);return n?{callingCode:t?.find(e=>e.iso31661Alpha2Code===n.country)?.id||``,phone:n.nationalNumber}:{callingCode:``,phone:``}},[t])}},GB=/^[0-9a-zA-ZÃüÃöÃäÃÃ
Ã¥ÃøÃæŽžŠšÄÄÅÅÄÄ
ÄÄÄÄÄãÅÅÅÅŹźŻżÅÅŰűÄÄĮįŲųŪūÄÄÄÄĪīĢģĶķĻļÅ
ÅÃõÃéÃèÃêÃëÃçÃñÃáÃÃÃóÃúÃà Ã\-,./ ]+$/,KB=50,qB=ti({companyName:Yr().trim().matches(GB,z.t(`Enter a valid company name`)).max(KB,z.t(`Company name must be no longer than ${KB} characters`)).required(ya),tradingName:Yr().trim().max(300).notRequired().nullable(),structure:Yr().trim().matches(/^[^<>!@$%^*_+&#()[\]{}]*$/,z.t(`Enter a valid incorporation type`)).required(ya),registrationNumber:Yr().trim().max(100).required(ya),formationDate:Yr().required(ya).test(`is-not-future`,z.t(`Date cannot be in the future`),function(e){if(!e)return!0;let t=new Date(e),n=new Date;return n.setHours(23,59,59,999),t<=n}),numberOfEmployees:oi().transform(e=>e===``?null:e).oneOf(Object.values(bR),ya).required(ya),email:Yr().trim().email(z.t(`Enter a valid email`)).required(ya).test(`is-not-russian-email`,z.t(`You can not use this email domain for registration`),ba),callingCode:Yr().required(ya),phone:Yr().required(ya).test(`is-valid-phone`,z.t(`Invalid phone number`),function(e){if(!e)return!0;let t=(this.options.context?.find(e=>e.id===this.parent.callingCode)?.callingCode??``)+e;try{let e=ji(t);return e?e.isValid()?!0:this.createError({message:z.t(`Phone number is not valid for the selected country`)}):this.createError({message:z.t(`Phone number is not valid`)})}catch{return this.createError({message:z.t(`Invalid phone number format`)})}})}),JB={[bR.ONE_TEN]:`1-49`,[bR.ELEVEN_FORTY_NINE]:`1-49`,[bR.FIFTY_NINETY_NINE]:`50-99`,[bR.ONE_HUNDRED_TWO_FORTY_NINE]:`100-249`,[bR.TWO_FIFTY_FOUR_NINETY_NINE]:`250-499`,[bR.FIVE_HUNDRED_PLUS]:`500`},YB=[{label:`1-10`,value:bR.ONE_TEN},{label:`11-49`,value:bR.ELEVEN_FORTY_NINE},{label:`50-99`,value:bR.FIFTY_NINETY_NINE},{label:`100-249`,value:bR.ONE_HUNDRED_TWO_FORTY_NINE},{label:`250-499`,value:bR.TWO_FIFTY_FOUR_NINETY_NINE},{label:`500+`,value:bR.FIVE_HUNDRED_PLUS}],XB=(e,t)=>{let{phone:n,callingCode:r}=t(e.phone??``);return{phone:n,callingCode:r,companyName:e.companyName,email:e.email,formationDate:e.formationDate,numberOfEmployees:e.numberOfEmployees,registrationNumber:e.registrationNumber,structure:e.structure,tradingName:e.tradingName}},ZB=({stepData:e,countries:t,user:n,getValues:r,setValue:i})=>{if(e?.registrationCountry&&t&&!r(`callingCode`)){let n=t.find(t=>t.iso31661Alpha2Code===e.registrationCountry);n&&i(`callingCode`,n.id)}n&&!r(`email`)&&i(`email`,n.email),n?.companyName&&!r(`companyName`)&&i(`companyName`,n.companyName,{shouldValidate:!0})},QB=()=>{let{t:e}=G(),{data:t}=nG(),{data:n}=$L(),{trackStepAction:r}=TR({stepName:Mw.CompanyDetails,stepNumber:Object.values(Mw).indexOf(Mw.CompanyDetails)+1}),{toNextStep:i,stepWasSubmitted:a}=CB(),o=nR(),{mutateAsync:s}=iG(),{mutateAsync:c}=F_(),{countryCallingCodeOptions:l,splitPhone:u}=WB(),{data:d}=cR(),{setValue:f,handleSubmit:p,control:m,trigger:h,formState:{errors:g,isValid:_,isDirty:v},getValues:y,watch:b,reset:x}=ei({resolver:ii(qB),mode:`onChange`,context:d}),S=a&&!_,ee=Qr({control:m,name:`phone`}),te=Qr({control:m,name:`callingCode`}),C=_R(),w=vR(),ne=yR(),re=C.isPending,ie=w.isPending,ae=ne.isPending,oe=n?.companyLookup?.manuallyEntered??!1,se=n?.companyLookup?.kyckrCompanyId?{id:n.companyLookup.kyckrCompanyId,companyName:n.companyLookup.kyckrCompanyName||``,registrationNumber:n.companyDetails?.registrationNumber||``}:null,ce=(!!se||oe)&&!re&&!ie&&!ae,le=async()=>{let e=y(),t=d?.find(t=>t.id===e.callingCode);await o.mutateAsync({...e,formationDate:e.formationDate?(0,B.default)(e.formationDate).format(bz):e.formationDate,phone:e.phone&&t?t.callingCode+e.phone:``,isCompleted:!1}),de()},ue=p(async e=>{if(!v&&a){i(),r({action:Aw.NextButtonClicked});return}let n=d?.find(t=>
702t.id===e.callingCode);if(n){if(await o.mutateAsync({...e,formationDate:(0,B.default)(e.formationDate).format(bz),phone:n.callingCode+e.phone,isCompleted:!0}),de(),i(),t&&!t.companyName){let n=e.companyName,r=e.tradingName||e.companyName,i=JB[e.numberOfEmployees],a=Rc();Promise.all([s({companyName:n,companySize:yc(i)}),c({email:t.email,firstName:t.firstName,lastName:t.lastName,companyName:r,companyRole:t.companyRole,companySize:V_(i),...a}),q_({company:r,jobTitle:t.companyRole??``,companySizeGroup:V_(i),prospectInterestedIn:``})])}r({action:Aw.NextButtonClicked})}}),{clearSavedFormData:de}=uv({formId:Q.CompanyDetails,formData:v?b():{},setValue:f,trigger:h});return(0,I.useEffect)(()=>{n?.companyDetails&&!v&&d&&!lv(Q.CompanyDetails)&&Object.entries(XB(n.companyDetails,u)).forEach(([e,t])=>{t&&f(e,t,{shouldValidate:!0})}),setTimeout(()=>{ZB({stepData:n,countries:d,user:t,getValues:y,setValue:f})})},[d,x,u,n,v,t,y,f,h]),(0,I.useEffect)(()=>{d&&ee&&te&&h(`phone`)},[d,te,ee,h]),(0,L.jsx)(AB,{header:(0,L.jsx)(EB,{tracker:r,onSaveAndExit:le,saveAndExitDisabled:S}),sidebar:(0,L.jsx)(OB,{tracker:r}),content:(0,L.jsxs)(T,{maxWidth:480,mx:`auto`,width:`100%`,pt:3,gap:3,children:[(0,L.jsxs)(T,{gap:.5,children:[(0,L.jsx)(K,{variant:`headlineS`,children:`Company details`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`Provide registered company information.`})]}),(0,L.jsx)(E,{}),(0,L.jsx)(UB,{selectedCompany:se,manualEntryMode:oe,onEnrichCompany:async e=>{let r=await C.mutateAsync(e);localStorage.removeItem(Q.CompanyDetails),x(XB(r.data.companyDetails,u)),h(fl(y())),ZB({stepData:{...n,...r.data},countries:d,user:t,getValues:y,setValue:f})},onResetCompany:async()=>{let e=await w.mutateAsync();localStorage.removeItem(Q.CompanyDetails),x(XB(e.data.companyDetails,u)),h(fl(y())),ZB({stepData:{...n,...e.data},countries:d,user:t,getValues:y,setValue:f}),r({action:jw.ResetCompanyClicked})},onManualEntry:async()=>{await ne.mutateAsync(),localStorage.removeItem(Q.CompanyDetails)},isResetting:ie,isEnriching:re}),(re||ie||ae)&&(0,L.jsx)(T,{alignItems:`center`,justifyContent:`center`,py:4,children:(0,L.jsx)(yn,{})}),ce&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(E,{}),(0,L.jsx)(Ln,{name:`companyName`,control:m,label:e(`Company legal name`),labelSize:`large`,helperText:(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`Must match registration documents.`})}),(0,L.jsx)(Ln,{name:`tradingName`,control:m,label:e(`Trading name (Optional)`),labelSize:`large`}),(0,L.jsx)(Ln,{name:`structure`,control:m,label:e(`Company type`),labelSize:`large`,helperText:(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`LLC, LTD, PLC, partnership.`})}),(0,L.jsx)(Ln,{label:e(`Registration number`),labelSize:`large`,name:`registrationNumber`,control:m,fullWidth:!0,helperText:(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`As shown on your company registry.`})}),(0,L.jsx)(HE,{label:e(`Date incorporated`),labelSize:`large`,name:`formationDate`,control:m,disableFuture:!0,slotProps:{textField:{placeholder:e(`Select date`)}}}),(0,L.jsx)(Yt,{name:`numberOfEmployees`,control:m,label:e(`Number of employees`),labelSize:`large`,options:YB}),(0,L.jsx)(Ln,{name:`email`,control:m,label:e(`Contact email`),labelSize:`large`,helperText:(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`Used for verification and account communication.`})}),(0,L.jsxs)(Or,{children:[(0,L.jsx)(K,{variant:`labelM`,color:`neutral400`,children:`Contact phone`}),(0,L.jsxs)(D,{container:!0,gap:1,wrap:`nowrap`,alignItems:`end`,mt:1,children:[(0,L.jsx)(gt,{control:m,outsideError:g?.phone?.message,name:`callingCode`,disableClearable:!0,options:l,filterOptions:(e,{inputValue:t})=>e.filter(e=>{let n=t.toLowerCase().trim(),r=n.startsWith(`+`),i=e.optionTitle.match(/^\+?(\d+)\s*\((.+)\)$/);if(!i)return!1;let a=i[1],o=i[2].toLowerCase().trim();return r?e.optionTitle.toLowerCase().startsWith(n):a.startsWith(n)||o.startsWith(n)}),renderOption:(e,t)=>(0,I.createElement)(Dr,{...e,key:t.value},(0,L.jsx)(tt,{label:t.optionTitle})),placeholder:`+00`,slotProps:{paper:{sx:{width:250}}},containerProps:{sx:{width:200,textWrap:`nowrap`}}}),(0,L.jsx)($r,{name:`phone`,control:m,render:({field:e,fieldState:{error:t}})=>(0,L.jsx)(An,{...e,error:!!t?.message,helperText:t?.message&&` `,containerProps:{sx:{width:`100%`}},integer:!0,positive:!0,separators:!1})})]})]})]})]}),footer:(0,L.jsx)(TB,{nextBtnProps:{disabled:!ce||!_,loading:o.isPending,onClick:ue}})})},$B=function(e){return e.Beneficial=`BENEFICIAL`,e.Affiliated=`AUTHORISED`,e}({}),eV=function(e){return e.INDIVIDUAL=`INDIVIDUAL`,e.LEGAL_COMPANY=`LEGAL_COMPANY`,e}({}),{PROVIDER_SET_2:tV}=lz,nV={partyType:oi().oneOf(Object.values(eV)).required(ya),share:Xr().typeError(z.t(`Only numbers and a decimal point (.) are allowed`)).required(ya).max(100,z.t(`Share cannot exceed 100%`)).test(`minimum-share`,function(e){let{minimumBeneficiaryShare:t}=this.options.context||{};return t&&e&&e<t?this.createError({message:`You only need to add shareholders with ${t}% or more ownership.`}):!0}),prefillAsDirector:Wr().default(!1).notRequired(),email:Yr().trim().email(z.t(`Enter a valid email`)).required(ya).test(`is-not-russian-email`,z.t(`You can not use this email domain for registration`),ba),address:RB.required()},rV=ti().shape({...nV,firstName:Yr().trim().max(100,sl(100)).required(ya).matches(tV,ea),lastName:Yr().trim().max(100,sl(100)).required(ya).matches(tV,ea),dob:Yr().required(ya).test(`is-18-older`,z.t(`Users aged 18 and under cannot be registered`),e=>!!e&&ll(e))}),iV=rV.omit([`share`]),aV=ti().shape({partyType:oi().oneOf([eV.LEGAL_COMPANY]).required(ya),companyName:Yr().trim().max(100,sl(100)).required(ya).matches(tV,ea)}),oV=qr(e=>e?.partyType===eV.INDIVIDUAL?iV:aV),sV=ti().shape({...nV,companyName:Yr().trim().max(100,sl(100)).required(ya).matches(tV,ea),registrationNumber:Yr().trim().max(100).required(ya),operationalAddressIsSame:Wr().default(!0).required(),operationalAddress:ti().when([`operationalAddressIsSame`],([e],t)=>e?t.notRequired():RB.required()),owners:Jr().of(oV).min(1,z.t(`At least one owner is required`))}),cV=qr((e,{context:t})=>e?.partyType===eV.INDIVIDUAL?t?.withShare?rV:rV.omit([`share`]):t?.
702withShare?sV:sV.omit([`share`])),lV=[{label:z.t(`Individual`),value:eV.INDIVIDUAL},{label:z.t(`Legal entity`),value:eV.LEGAL_COMPANY}],uV=e=>e.partyType===eV.INDIVIDUAL,dV=(e,t=!0,n)=>{if(!e?.partyType)return!1;let r;r=e.partyType===eV.INDIVIDUAL?t?rV:rV.omit([`share`]):t?sV:sV.omit([`share`]);try{return r.validateSync(e,{abortEarly:!1,context:{minimumBeneficiaryShare:n,withShare:t}}),!0}catch{return!1}},fV=(e,t)=>e.map((e,n)=>{if(uV(e)){let r=e;return{...r,type:t,dob:r.dob?(0,B.default)(r.dob).format(bz):r.dob,formNumber:n+1}}let r=e;return{...r,type:t,formNumber:n+1,owners:r.owners?.map(e=>{if(e.partyType===eV.INDIVIDUAL){let t=e;return{...e,dob:t.dob?(0,B.default)(t.dob).format(bz):t.dob}}return e})}}),pV=({title:e,subtitle:t,icon:n,onDelete:r,onEdit:i})=>(0,L.jsxs)(T,{width:1,direction:`row`,alignItems:`center`,px:2,py:1.5,borderRadius:3,border:1,borderColor:`neutral100`,children:[(0,L.jsx)(O,{bgcolor:`neutral50`,p:1.25,borderRadius:2,border:1,borderColor:`neutral100`,display:`flex`,position:`relative`,width:`fit-content`,color:`neutral500`,children:(0,L.jsx)(n,{})}),(0,L.jsxs)(T,{ml:1.5,children:[(0,L.jsx)(k,{variant:`labelM`,children:e}),(0,L.jsx)(k,{variant:`labelS`,color:`neutral400`,children:t})]}),(0,L.jsxs)(T,{alignItems:`center`,direction:`row`,gap:1.5,ml:`auto`,children:[i&&(0,L.jsx)(dn,{onClick:i,children:(0,L.jsx)(un,{})}),(0,L.jsx)(dn,{onClick:r,children:(0,L.jsx)(vt,{sx:{color:`red500`}})})]})]}),mV=({withShare:e=!0,withDirectorCheckbox:t,control:n,setValue:r,addressDescription:i})=>{let{t:a}=G();return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ln,{name:`firstName`,control:n,label:a(`First name and middle name(s)`),labelSize:`large`}),(0,L.jsx)(Ln,{name:`lastName`,control:n,label:a(`Last name`),labelSize:`large`}),e&&(0,L.jsx)(Ln,{name:`share`,control:n,label:a(`Ownership percentage, %`),labelSize:`large`}),t&&(0,L.jsx)($r,{name:`prefillAsDirector`,control:n,render:({field:e})=>(0,L.jsx)(Yn,{checked:!!e.value,control:(0,L.jsx)(Zn,{checked:!!e.value,onChange:(t,n)=>e.onChange(n)}),label:(0,L.jsx)(K,{variant:`bodyM`,color:`neutral500`,children:`Shareholder is also a director`})})}),(0,L.jsx)(HE,{label:a(`Date of birth`),labelSize:`large`,name:`dob`,control:n,disableFuture:!0}),(0,L.jsx)(Ln,{name:`email`,control:n,label:a(`Contact email`),labelSize:`large`,helperText:(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`Used for verification and account communication.`})}),(0,L.jsx)(PB,{control:n,setValue:r,fieldPrefix:`address`,addressLabel:a(`Residence address`),addressDescription:i})]})},hV=({open:e,onClose:t,initialData:n,onOwnerSubmit:r})=>{let{t:i}=G(),{setValue:a,handleSubmit:o,control:s,formState:{isValid:c},watch:l,reset:u,getValues:d}=ei({resolver:ii(oV),mode:`onChange`,defaultValues:{partyType:eV.INDIVIDUAL}}),f=(0,I.useRef)({}),p=(0,I.useRef)(eV.INDIVIDUAL);(0,I.useEffect)(()=>{if(!n)return;u(n);let e=n.partyType;p.current=e,f.current[e]=n},[u,n]);let m=!!n,h=l(`partyType`),g=e=>{if(!e)return;let t=e;f.current[p.current]={...d(),partyType:p.current},p.current=t;let n=f.current[t];u(n||{partyType:t})},_=o(e=>{r(e),u({})});return(0,L.jsx)(kt,{title:i(m?`Edit owner`:`Add owner`),submitTitle:i(m?`Save Changes`:`Add Owner`),onClose:t,open:e,isForm:!0,disabled:!c,onSubmit:_,children:(0,L.jsxs)(T,{gap:3,children:[(0,L.jsx)(Ht,{control:s,name:`partyType`,options:lV,requireSelection:!0,onChange:g}),h===eV.INDIVIDUAL&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ln,{name:`firstName`,control:s,label:i(`First name and middle name(s)`),labelSize:`large`}),(0,L.jsx)(Ln,{name:`lastName`,control:s,label:i(`Last name`),labelSize:`large`}),(0,L.jsx)(HE,{label:i(`Date of birth`),labelSize:`large`,name:`dob`,control:s,disableFuture:!0}),(0,L.jsx)(Ln,{name:`email`,control:s,label:i(`Contact email`),labelSize:`large`,helperText:(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`Used for verification and account communication.`})}),(0,L.jsx)(PB,{control:s,setValue:a,fieldPrefix:`address`,addressLabel:i(`Residence address`),addressDescription:i(`The ownerâs current residential address.`)})]}),h===eV.LEGAL_COMPANY&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(K,{variant:`bodyM`,children:`Since this owner is a company, enter the company name only. Other details will be requested later.`}),(0,L.jsx)(Ln,{name:`companyName`,control:s,label:i(`Company legal name`),labelSize:`large`,helperText:(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`Must match registration documents.`})})]})]})})},gV=({withShares:e=!0,withDirectorCheckbox:t,control:n,setValue:r})=>{let{t:i}=G(),a=wt(),[o,s]=(0,I.useState)(null),{open:c,openModal:l,cancelModal:u,confirmModal:d}=v_(e=>{e!==void 0&&(m(e),b({message:i(`Owner removed`),variant:`success`}))}),{fields:f,append:p,remove:m,update:h}=Gr({control:n,name:`owners`}),g=Qr({name:`operationalAddressIsSame`,control:n}),_=e=>{if(a.closeModal(),typeof o==`number`){h(o,e),s(null),b({message:i(`Shareholder details updated`),variant:`success`});return}p(e)},v=e=>
702{s(e),a.openModal()};return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ln,{name:`companyName`,control:n,label:i(`Company legal name`),labelSize:`large`,helperText:(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`Must match registration documents.`})}),(0,L.jsx)(Ln,{label:i(`Registration number`),labelSize:`large`,name:`registrationNumber`,control:n,fullWidth:!0}),e&&(0,L.jsx)(Ln,{name:`share`,control:n,label:i(`Ownership percentage, %`),labelSize:`large`}),t&&(0,L.jsx)($r,{name:`prefillAsDirector`,control:n,render:({field:e})=>(0,L.jsx)(Yn,{checked:!!e.value||void 0,control:(0,L.jsx)(Zn,{checked:!!e.value||void 0,onChange:(t,n)=>e.onChange(n)}),label:(0,L.jsx)(K,{variant:`bodyM`,color:`neutral500`,children:`Shareholder is also a director`})})}),(0,L.jsx)(Ln,{name:`email`,control:n,label:i(`Contact email`),labelSize:`large`,helperText:(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`Used for verification and account communication.`})}),(0,L.jsx)(PB,{control:n,setValue:r,fieldPrefix:`address`,addressLabel:i(`Residence address`),addressDescription:i(`Your companyâs official registered address`)}),(0,L.jsxs)(T,{direction:`row`,children:[(0,L.jsx)($r,{name:`operationalAddressIsSame`,control:n,render:({field:{value:e,onChange:t}})=>(0,L.jsx)(Zn,{sx:{py:0,px:1},icon:(0,L.jsx)(ze,{sx:{color:`neutral200`}}),checkedIcon:(0,L.jsx)(bt,{}),checked:!!e,onChange:t})}),(0,L.jsx)(K,{variant:`bodyM`,children:`Operational address is the same as registered address`})]}),!g&&(0,L.jsx)(PB,{control:n,setValue:r,fieldPrefix:`operationalAddress`,addressLabel:i(`Operational address`)}),(0,L.jsxs)(T,{gap:2,children:[(0,L.jsx)(K,{variant:`labelM`,color:`neutral400`,children:`Who owns this company?`}),f.length>0&&(0,L.jsx)(T,{gap:1,children:f.map((e,t)=>e.partyType===eV.INDIVIDUAL?(0,L.jsx)(pV,{title:e.firstName,subtitle:i(`Individual`),icon:Ve,onDelete:()=>l(t),onEdit:()=>v(t)},t):(0,L.jsx)(pV,{title:e.companyName,subtitle:i(`Legal entity`),icon:Xe,onDelete:()=>l(t),onEdit:()=>v(t)},t))}),(0,L.jsx)(A,{sx:{width:`fit-content`},variant:`tertiaryBlack`,onClick:a.openModal,children:i(`Add owner`)}),(0,L.jsx)(hV,{initialData:typeof o==`number`?f[o]:void 0,open:a.open,onClose:a.closeModal,onOwnerSubmit:_})]}),(0,L.jsx)(kt,{open:c,onClose:u,title:i(`Are you sure you want to remove this owner?`),submitTitle:i(`Remove`),submitProps:{variant:`destructive`},onSubmit:d,children:(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`All details added for this owner will be deleted.`})})]})},_V=500,vV=(0,I.forwardRef)(({withShare:e=!0,withDirectorCheckbox:t,initialData:n,onShareholderSubmit:r,minimumBeneficiaryShare:i,submitTitle:a,addressDescription:o,onValidityChange:s,draftStorageKey:c},l)=>{let{setValue:u,handleSubmit:d,control:f,formState:{isValid:p},watch:m,reset:h,getValues:g,trigger:_}=ei({resolver:ii(cV),mode:`onChange`,context:{minimumBeneficiaryShare:i,withShare:e},defaultValues:{partyType:eV.INDIVIDUAL,operationalAddressIsSame:!0}});(0,I.useImperativeHandle)(l,()=>({getValues:g}));let v=(0,I.useRef)({}),y=(0,I.useRef)(eV.INDIVIDUAL);(0,I.useEffect)(()=>{s?.(p)},[p,s]),(0,I.useEffect)(()=>{if(!n)return;h(n),_(fl(g()));let e=n.partyType;v.current[e]=n,y.current=e},[h,n,_,g]),(0,I.useEffect)(()=>{if(n||!c)return;let e=AR(c);if(!e)return;h(e),_(fl(g()));let t=e.partyType;t&&(v.current[t]=e,y.current=t)},[c]),(0,I.useEffect)(()=>{if(n||!c)return;let e,t,r=!1,i=()=>{if(r){r=!1;try{localStorage.setItem(c,JSON.stringify(t))}catch{}}},a=m(n=>{t=n,r=!0,clearTimeout(e),e=setTimeout(i,_V)});return()=>{a.unsubscribe(),clearTimeout(e),i()}},[m,c,n]);let b=m(`partyType`);return(0,L.jsxs)(T,{maxWidth:480,mx:`auto`,width:`100%`,pt:3,gap:3,children:[(0,L.jsx)(Ht,{control:f,name:`partyType`,options:lV,requireSelection:!0,onChange:e=>{if(!e)return;let t=e;v.current[y.current]={...g(),partyType:y.current},y.current=t;let n=v.current[t];n?(h(n),_(fl(g()))):h({partyType:t,operationalAddressIsSame:!0})}}),b===eV.INDIVIDUAL&&(0,L.jsx)(mV,{control:f,setValue:u,withShare:e,withDirectorCheckbox:t,addressDescription:o}),b===eV.LEGAL_COMPANY&&(0,L.jsx)(gV,{control:f,setValue:u,withShares:e,withDirectorCheckbox:t}),(0,L.jsx)(A,{variant:`primary`,disabled:!p,size:`large`,sx:{ml:`auto`,mt:2},onClick:d(e=>r({...e,operationalAddress:e.operationalAddressIsSame?void 0:e.operationalAddress})),children:a})]})});vV.displayName=`PersonForm`;var yV=[{value:`true`,label:z.t(`Yes`)},{value:`false`,label:z.t(`No`)}],bV=4,xV=10,SV=(e,t,n,r)=>{let i=e.formNumber,a=!dV(e,!r);return uV(e)?(0,L.jsx)(pV,{title:a?z.t(`Incomplete profile`):`${e.firstName} ${e.lastName}`,subtitle:r?``:a?z.t(`Individual`):z.t(`Individual {{share}}% of shares`,{share:e.share}),icon:Ve,onDelete:t,onEdit:n},i):(0,L.jsx)(pV,{title:a?z.t(`Incomplete profile`):e.companyName,subtitle:r?``:a?z.t(`Legal entity`):z.t(`Legal entity {{share}}% of shares`,{share:e.share}),icon:Xe,onDelete:t,onEdit:n},i)},CV=()=>{let{t:e}=G(),{data:t}=$L(),{trackStepAction:n}=TR({stepName:Mw.DirectorsDetails,stepNumber:Object.values(Mw).indexOf(Mw.DirectorsDetails)+1}),{toPrevStep:r,toNextStep:i,stepWasSubmitted:a}=CB(),o=oR(),[s,c]=(0,I.useState)(!1),[l,u]=(0,I.useState)(null),[d,f]=(0,I.useState)(!1),p=(0,I.useRef)(!1),m=(0,I.useRef)(null),[h,g]=E_(Q.Directors,[]),[_,v]=E_(Q.DirectorsLinkedShareholders,[]),[y,x]=E_(Q.DirectorsHasAdditional,``),[S,ee]=E_(Q.DirectorsAdditionalCount,``),[te,C]=E_(Q.DirectorsConfirmationChecked,!1),w=h.length+_.length,ne=w>=bV,re=w===bV&&y===`true`,ie=re&&!(Number(S)>=1);(0,I.useEffect)(()=>{t&&t.shareholders.length&&!localStorage.getItem(Q.DirectorsLinkedShareholders)&&v(t.shareholders.filter(e=>e.prefillAsDirector).map(e=>e.formNumber))},[v,t]),(0,I.useEffect)(()=>{AR(Q.DirectorsDraft)&&c(!0)},[]),(0,I.useEffect)(()=>
702{if(!t?.directors||p.current)return;p.current=!0;let e=t.directors.filter(e=>!e.isAuthorizedFromBeneficiary),n=localStorage.getItem(Q.Directors)!==null;n||g(e);let r=(n?h:e).findIndex(e=>!dV(e,!1));r!==-1&&(u(r),c(!0))},[g,t,h]);let ae=s?!d:h.some(e=>!dV(e,!1)),oe=!h.length&&!_.length,se=a&&(ae||oe),{open:ce,openModal:le,cancelModal:ue,confirmModal:de}=v_(t=>{t!==void 0&&(g(e=>e.filter((e,n)=>n!==t)),u(null),c(!1),b({message:e(`Directory removed`),variant:`success`}),n({action:jw.DirectorDeleteClicked}))}),fe=Ot(),pe=e=>{let t=h.length;return{persons:fV(h,$B.Affiliated),personsFromBeneficiary:_.map((e,n)=>({beneficiaryFormNumber:e,formNumber:t+n+1})),additionalAuthorizedPersonsCount:re?Number(S):0,...e!==void 0&&{isCompleted:e}}},me=async()=>{let e=h;if(s&&m.current){let t=m.current.getValues();e=_e?h.map((e,n)=>n===l?t:e):[...h,t]}let t=e.length;await o.mutateAsync({persons:fV(e,$B.Affiliated),personsFromBeneficiary:_.map((e,n)=>({beneficiaryFormNumber:e,formNumber:t+n+1})),additionalAuthorizedPersonsCount:re?Number(S):0,confirmedNoAdditionalDirectors:te,isCompleted:!1}),kR(DR)},he=async()=>{te&&(n({action:Aw.NextButtonClicked}),await o.mutateAsync(pe(!0)),kR(DR),i())},ge=e=>{u(e),c(!0),n({action:jw.DirectorEditClicked})},_e=typeof l==`number`,ve=t=>{if(c(!1),n({action:jw.DirectorAddClicked}),localStorage.removeItem(Q.DirectorsDraft),_e){g(e=>e.map((e,n)=>n===l?t:e)),u(null),b({message:e(`Directory details updated`),variant:`success`});return}g(e=>[...e,t])},ye=e=>{n({action:jw.DirectorLinkClicked}),_.includes(e)?v(t=>t.filter(t=>t!==e)):v(t=>[...t,e]),fe.onClose()};return(0,L.jsx)(AB,{header:(0,L.jsx)(EB,{tracker:n,onSaveAndExit:me,saveAndExitDisabled:se}),sidebar:(0,L.jsx)(OB,{tracker:n}),content:(0,L.jsxs)(T,{maxWidth:480,mx:`auto`,width:`100%`,gap:3,children:[s?(0,L.jsxs)(T,{children:[(0,L.jsxs)(T,{direction:`row`,alignItems:`center`,gap:.5,children:[(0,L.jsx)(O,{display:`flex`,sx:{cursor:`pointer`},onClick:()=>{c(!1),u(null),localStorage.removeItem(Q.DirectorsDraft)},children:(0,L.jsx)(_t,{})}),(0,L.jsx)(k,{variant:`headlineS`,children:e(_e?`Edit director`:`Add director`)})]}),(0,L.jsx)(vV,{ref:m,initialData:_e?h[l]:void 0,minimumBeneficiaryShare:t?.minimumBeneficiaryShare,onShareholderSubmit:ve,withShare:!1,submitTitle:e(_e?`Save Changes`:`Add Director`),addressDescription:e(`The director's official registered address.`),onValidityChange:f,draftStorageKey:Q.DirectorsDraft})]}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(T,{gap:.5,children:[(0,L.jsx)(K,{variant:`headlineS`,children:`Directors`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`Add all individuals or entities responsible for managing your company.`})]}),(0,L.jsx)(E,{}),(0,L.jsxs)(T,{gap:1.5,children:[(0,L.jsxs)(T,{gap:.5,children:[(0,L.jsx)(K,{variant:`labelM`,children:`Director is also a shareholder`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`Link directors to directors if they're the same person or company.`})]}),_.length>0&&(0,L.jsx)(T,{gap:1.5,children:_.map(e=>{let n=t?.shareholders?.find(t=>t.formNumber===e);return n?SV(n,()=>ye(e)):null})}),(0,L.jsx)(A,{variant:`tertiaryBlack`,size:`large`,sx:{width:`fit-content`},onClick:fe.onOpen,disabled:ne,children:e(`Link Directors`)})]}),(0,L.jsxs)(T,{gap:1.5,children:[(0,L.jsxs)(T,{gap:.5,children:[(0,L.jsx)(K,{variant:`labelM`,children:`Add new directors`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`Include any additional directors not listed above.`})]}),h.map((e,t)=>SV(e,()=>le(t),()=>ge(t),!0)),(0,L.jsx)(A,{variant:`tertiaryBlack`,size:`large`,sx:{width:`fit-content`},onClick:()=>c(!0),disabled:ne,children:e(`Add Director`)})]}),w===bV&&(0,L.jsxs)(T,{gap:1.5,children:[(0,L.jsx)(K,{variant:`titleL`,children:`Does your company have any additional directors?`}),(0,L.jsx)(zt,{row:!0,value:y,onChange:e=>x(e.target.value),labels:yV}),y===`true`&&(0,L.jsx)(Fe,{value:S,onChange:e=>{ee(e.target.value.replace(/\D/g,``).replace(/^0+/,``).slice(0,xV))},label:e(`If yes, please specify the number of directors below. 703For companies with more than 4 directors, we will collect their details as part of the review process.`),placeholder:e(`Type number`),inputProps:{inputMode:`numeric`,pattern:`[0-9]*`,maxLength:xV}})]}),(0,L.jsxs)(D,{component:`label`,container:!0,alignItems:`start`,wrap:`nowrap`,mb:.5,children:[(0,L.jsx)(Zn,{sx:{py:0,px:1}
703,icon:(0,L.jsx)(ze,{sx:{color:`neutral200`}}),checkedIcon:(0,L.jsx)(bt,{}),checked:te,onChange:e=>{C(e.target.checked),n({action:jw.CheckboxNoAdditionalDirectorsClicked})}}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`I confirm that there are no additional directors to add.`})]})]}),(0,L.jsx)(kt,{open:ce,onClose:ue,title:e(`Are you sure you want to remove this shareholder?`),submitTitle:e(`Remove`),submitProps:{variant:`destructive`},onSubmit:de,children:(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`All details added for this shareholder will be deleted.`})}),(0,L.jsx)(Je,{onClose:fe.onClose,popoverProps:{transformOrigin:{vertical:`top`,horizontal:`left`},anchorOrigin:{vertical:`bottom`,horizontal:`left`}},anchorEl:fe.anchorEl,options:t?.shareholders?.map(t=>{let n=t.formNumber;return uV(t)?{label:t.firstName,value:n,secondaryLabel:t.email}:{label:t.companyName,value:n,secondaryLabel:e(`Legal entity`)}})||[],onChange:(e,t)=>{t&&ye(t.value)},textFieldProps:{placeholder:`Select a user`},renderOption:(e,{label:t,secondaryLabel:n,value:r},{selected:i},{multiple:a})=>(0,I.createElement)(gr,{...e,key:r,multiple:a,selected:i,sx:{div:{py:.5}}},(0,L.jsx)(tt,{label:t,secondaryLabel:n,startAvatar:(0,L.jsx)(qn,{type:`photo`,size:`medium`,children:nn(t)}),multiple:a,checked:i}))})]}),footer:!s&&(_e?(0,L.jsx)(A,{variant:`primary`,endIcon:(0,L.jsx)(dt,{}),disabled:!h.length,loading:o.isPending,sx:{marginLeft:`auto`},onClick:he,children:e(`Save Changes`)}):(0,L.jsx)(TB,{prevBtnProps:{onClick:()=>{n({action:Aw.BackButtonClicked}),r()}},nextBtnProps:{disabled:oe||!te||ie||ae,loading:o.isPending,onClick:he}}))})},wV=({config:e})=>{let t=fR(),n=pR(),r=P(),i=(0,I.useRef)(null),{onUploadFile:a}=ER({onError:(e,{message:t})=>b({message:t,variant:`attention`}),onUpload:t.mutateAsync,onDelete:n.mutateAsync}),o=(0,I.useCallback)(async t=>{await a({file:t,name:``,payload:e})&&r.invalidateQueries({queryKey:ZL.all})},[e,a,r]);return(0,L.jsxs)(L.Fragment,{children:[e.fileName?(0,L.jsx)(A,{sx:{width:`fit-content`},variant:`tertiaryBlack`,loading:t.isPending||n.isPending,endIcon:(0,L.jsx)(Nn,{}),onClick:()=>o(null),children:e.fileName}):(0,L.jsx)(A,{sx:{width:`fit-content`},variant:`tertiaryBlack`,loading:t.isPending||n.isPending,onClick:()=>i.current?.click(),children:e.uploadButtonTitle||z.t(`Upload`)}),(0,L.jsx)(Qt,{accept:Tl,maxSizeMB:50,onClick:e=>e.stopPropagation(),inputRef:i,onChange:o})]})},TV=({title:e,description:t,documentConfigs:n,extraSlot:r})=>(0,L.jsxs)(T,{px:1.5,py:1.5,borderBottom:1,borderColor:`neutral100`,children:[(0,L.jsx)(k,{variant:`labelM`,mb:.5,children:e}),(0,L.jsx)(k,{variant:`bodyM`,color:`neutral400`,mb:1.5,children:t}),(0,L.jsxs)(T,{direction:`row`,alignItems:`center`,flexWrap:`wrap`,gap:1,children:[r,n.map(e=>(0,L.jsx)(wV,{config:e},`${e.documentName}-${e.documentSide}-${e.formNumber}-${e.subFormNumber}`)),!n.every(e=>e.fileName)&&(0,L.jsx)(K,{variant:`bodyS`,color:`neutral400`,children:`JPEG/JPG/PNG/PDF, up to 50MB`})]})]}),EV=({items:e})=>(0,L.jsx)(Kn,{sx:e=>({padding:e.spacing(0,0,0,4),listStyle:`initial`,pl:3,"li::marker":{color:`neutral400`}}),children:e.map((e,t)=>(0,L.jsx)(Dr,{sx:e=>({...e.typography.bodyM,padding:0,pb:.5,display:`list-item`,lineHeight:`normal`}),children:e},t))}),DV=({configs:e})=>{let{t}=G();return(0,L.jsx)(TV,{title:t(`Proof of registered address`),description:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(K,{variant:`bodyM`,children:`One of the following (issued within the last 3 months):`}),(0,L.jsx)(EV,{items:[t(`Company utility bill`),t(`Bank statement`)]}),(0,L.jsx)(K,{variant:`bodyM`,children:`Must clearly show your companyâs name and address.`})]}),documentConfigs:e})},OV=({configs:e})=>{let{t}=G();return(0,L.jsx)(TV,{title:t(`Company registration certificate`),description:t(`Official registration document.`),documentConfigs:e})},kV=({configs:e})=>{let{t}=G();return(0,L.jsx)(TV,{title:t(`Proof of operational address`),description:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(K,{variant:`bodyM`,children:`One of the following (issued within the last 3 months):`}),(0,L.jsx)(EV,{items:[t(`Company utility bill`),t(`Bank statement`)]}),(0,L.jsx)(K,{variant:`bodyM`,children:`Must clearly show your companyâs name and address.`})]}),documentConfigs:e})},AV=({configs:e})=>{let{t}=G();return(0,L.jsx)(TV,{title:t(`Source of funds`),description:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(K,{variant:`bodyM`,children:`Upload one document showing where your company\\u2019s funds come from (issued within the last 6 months):`}),(0,L.jsx)(EV,{items:[t(`Recent bank statements`),t(`Last audited annual accounts`),t(`Latest financial statement`),t(`Investment agreement`),t(`Invoices to clients`)]}),(0,L.jsx)(K,{variant:`bodyM`,children:`Must show your company\\u2019s name.`})]}),documentConfigs:e})},jV=({configs:e})=>{let{t}=G();return(0,L.jsx)(TV,{title:t(`Proof of residential address`),description:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(K,{variant:`bodyM`,children:`Provide one document (issued within 3 months) showing the name and address:`}),(0,L.jsx)(EV,{items:[t(`Utility bill`),t(`Bank statement`),t(`Rental agreement`),t(`Government-issued document`)]})]}),documentConfigs:e})},MV=e=>({[W.GOVERNMENT_ID]:U.BEN_ID_CARD,[W.PASSPORT]:U.BENEFICIAL_PERSON_DOCUMENT,[W.PERMANENT_RESIDENCE_PERMIT]:U.BEN_PERMANENT_RESIDENCE_PERMIT,[W.DRIVERS_LICENSE]:U.BEN_DRIVERS_LICENSE})[e]||U.BENEFICIAL_PERSON_DOCUMENT,NV=e=>({[W.GOVERNMENT_ID]:U.AUTH_ID_CARD,[W.PASSPORT]:U.AUTH_PASSPORT,[W.PERMANENT_RESIDENCE_PERMIT]:U.AUTH_PERMANENT_RESIDENCE_PERMIT,[W.DRIVERS_LICENSE]:U.AUTH_DRIVERS_LICENSE})[e]||U.AUTHORIZED_PERSON_DOCUMENT,PV=e=>({[W.GOVERNMENT_ID]:U.BEN_OWNER_ID_CARD,[W.PASSPORT]:U.BEN_OWNER_PASSPORT,[W.PERMANENT_RESIDENCE_PERMIT]:U.BEN_OWNER_PERMANENT_RESIDENCE_PERMIT,[W.DRIVERS_LICENSE]:U.BEN_OWNER_DRIVERS_LICENSE})[e]||U.BEN_OWNER_PERSON_DOCUMENT,FV=e=>({[W.GOVERNMENT_ID]:U.AUTH_OWNER_ID_CARD,[W.PASSPORT]:U.AUTH_OWNER_PASSPORT,[W.PERMANENT_RESIDENCE_PERMIT]:U.AUTH_OWNER_PERMANENT_RESIDENCE_PERMIT,[W.DRIVERS_LICENSE]:U.AUTH_OWNER_DRIVERS_LICENSE})[e]||U.BEN_OWNER_PERSON_DOCUMENT,IV=e=>e.documentName.startsWith(`AUTH`)||e.documentName.startsWith(`Authorized`)||e.documentName===U.AUTHORIZED_PERSON_DOCUMENT,LV=e=>e.subFormNumber!==null,RV=[{value:W.GOVERNMENT_ID,label:z.t(`ID card`)},{value:W.DRIVERS_LICENSE,label:z.t(`Driver license`)},{value:W.PASSPORT,label:z.t(`Passport`)},{value:W.PERMANENT_RESIDENCE_PERMIT,label:z.t(`Permanent residence permit`)}],zV=({configs:e})=>{let{trackStepAction:t}=TR({stepName:Mw.AdditionalDocuments,stepNumber:Object.values(Mw).indexOf(Mw.AdditionalDocuments)+1}),{t:n}=G(),r=wt(),[i,a]=(0,I.useState)(e[0]?.documentType),o=pR(),s=P(),c=e[0]?IV(e[0]):!1,l=e[0]?LV(e[0]):!1,u=t=>{if(a(t),t!==i){let t=e.filter(e=>e.fileName).map(e=>o.mutateAsync(e));Promise.all(t).then(()=>{s.invalidateQueries({queryKey:ZL.all})}).catch(e=>{console.error(`Error deleting files:`,e)})}};return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(TV,{title:n(`Photo ID`),description:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(K,{variant:`bodyM`,children:`Choose the type of document you want to attach.`}),(0,L.jsx)(Wt,{onClick:()=>{t({action:jw.ModalPhotoTutorialOpened}),r.openModal()}})]}),extraSlot:(0,L.jsx)(Lt,{value:i,onChange:e=>u(e.target.value),placeholder:n(`Select document`),options:RV}),documentConfigs:i?(i===W.PASSPORT?[e[0]]:e).map(e=>{let t;return t=l?c?FV(i):PV(i):c?NV(i):MV(i),{...e,documentType:i,documentName:t}}):[]}),(0,L.jsx)(kI,{open:r.open,onClose:r.closeModal})]})},BV=({configs:e})=>{let{t}=G();return(0,L.jsx)(TV,{title:t(`Company registration certificate`),description:t(`Companyâs official registration document.`),documentConfigs:e})},VV=({configs:e})=>{let{t}=G();return(0,L.jsx)(TV,{title:t(`Register of shareholders and directors`),description:t(`Shows all registered shareholders and directors.`),documentConfigs:e})},HV=function(e){return e.CompanyRegistrationCertificate=`companyRegistrationCertificate`,e.RegistrationAddress=`registrationAddress`,e.OperationAddress=`operationAddress`,e.SourceOfFunds=`
703sourceOfFunds`,e.PhotoID=`photoId`,e.RegisterOfDirectorsAndShareholders=`registerOfDirectorsAndShareholders`,e}({}),UV=(e,t)=>({...e,fileName:t.find(t=>t.documentName===e.documentName&&t.documentSide===e.documentSide&&t.formNumber===e.formNumber&&t.subFormNumber===e.subFormNumber)?.fileName}),WV=(e,t)=>Object.fromEntries(Object.entries(e).map(([e,n])=>[e,n.map(e=>UV(e,t))])),GV={companyRegistrationCertificate:[{configName:`companyRegistrationCertificate`,formNumber:1,documentName:U.CERTIFICATE_OF_INCORPORATION,documentSide:lc.FrontSide,subFormNumber:null}],registrationAddress:[{configName:`registrationAddress`,formNumber:1,documentName:U.PROOF_OF_ADDRESS,documentSide:lc.FrontSide,subFormNumber:null}],operationAddress:[{configName:`operationAddress`,formNumber:1,documentName:U.PROOF_OF_OPERATION_ADDRESS,documentSide:lc.FrontSide,subFormNumber:null}],sourceOfFunds:[{configName:`sourceOfFunds`,formNumber:1,documentName:U.PROOF_OF_FUNDS,documentSide:lc.FrontSide,subFormNumber:null}]},KV=(e=[])=>WV(GV,e),qV=e=>({[W.GOVERNMENT_ID]:U.BEN_ID_CARD,[W.PASSPORT]:U.BENEFICIAL_PERSON_DOCUMENT,[W.PERMANENT_RESIDENCE_PERMIT]:U.BEN_PERMANENT_RESIDENCE_PERMIT,[W.DRIVERS_LICENSE]:U.BEN_DRIVERS_LICENSE})[e]||U.BENEFICIAL_PERSON_DOCUMENT,JV=e=>({[W.GOVERNMENT_ID]:U.AUTH_ID_CARD,[W.PASSPORT]:U.AUTH_PASSPORT,[W.PERMANENT_RESIDENCE_PERMIT]:U.AUTH_PERMANENT_RESIDENCE_PERMIT,[W.DRIVERS_LICENSE]:U.AUTH_DRIVERS_LICENSE})[e]||U.AUTHORIZED_PERSON_DOCUMENT,YV=e=>({[W.GOVERNMENT_ID]:U.BEN_OWNER_ID_CARD,[W.PASSPORT]:U.BEN_OWNER_PASSPORT,[W.PERMANENT_RESIDENCE_PERMIT]:U.BEN_OWNER_PERMANENT_RESIDENCE_PERMIT,[W.DRIVERS_LICENSE]:U.BEN_OWNER_DRIVERS_LICENSE})[e]||U.BEN_OWNER_PERSON_DOCUMENT,XV=(e,t,n)=>{let r=qV(t);return{photoId:[{configName:`photoId`,formNumber:e,uploadButtonTitle:z.t(`front`),documentName:r,documentSide:lc.FrontSide,documentType:t,subFormNumber:null},{configName:`photoId`,formNumber:e,uploadButtonTitle:z.t(`back`),documentName:r,documentSide:lc.BackSide,documentType:t,subFormNumber:null}],registrationAddress:[{configName:`registrationAddress`,formNumber:e,documentName:n===eV.INDIVIDUAL?U.BENEFICIARY_INDIVIDUAL_PROOF_OF_ADDRESS:U.BENEFICIARY_PROOF_OF_ADDRESS,documentSide:lc.FrontSide,subFormNumber:null}],companyRegistrationCertificate:[{configName:`companyRegistrationCertificate`,formNumber:e,documentName:U.BENEFICIARY_CERTIFICATE_OF_INCORPORATION,documentSide:lc.FrontSide,subFormNumber:null}],registerOfDirectorsAndShareholders:[{configName:`registerOfDirectorsAndShareholders`,formNumber:e,documentName:U.BENEFICIARY_REGISTER_OF_DIRECTORS_AND_SHAREHOLDERS,documentSide:lc.FrontSide,subFormNumber:null}],operationAddress:[{configName:`operationAddress`,formNumber:e,documentName:U.BENEFICIARY_PROOF_OF_OPERATION_ADDRESS,documentSide:lc.FrontSide,subFormNumber:null}]}},ZV=({formNumber:e,documentType:t,uploadedFiles:n=[],partyType:r})=>WV(XV(e,t,r),n),QV=({formNumber:e,subFormNumber:t,documentType:n,partyType:r})=>{let i=YV(n);return{photoId:[{configName:`photoId`,formNumber:e,subFormNumber:t,uploadButtonTitle:z.t(`front`),documentName:i,documentSide:lc.FrontSide,documentType:n},{configName:`photoId`,formNumber:e,subFormNumber:t,uploadButtonTitle:z.t(`back`),documentName:i,documentSide:lc.BackSide,documentType:n}],registrationAddress:[{configName:`registrationAddress`,formNumber:e,subFormNumber:t,documentName:r===eV.INDIVIDUAL?U.BENEFICIARY_INDIVIDUAL_OWNER_PROOF_OF_ADDRESS:U.BENEFICIARY_OWNER_PROOF_OF_ADDRESS,documentSide:lc.FrontSide}]}},$V=({formNumber:e,subFormNumber:t,documentType:n,uploadedFiles:r=[],partyType:i})=>WV(QV({formNumber:e,subFormNumber:t,documentType:n,partyType:i}),r),eH=(e,t)=>{let n=JV(t);return{photoId:[{configName:`photoId`,formNumber:e,uploadButtonTitle:z.t(`front`),documentName:n,documentSide:lc.FrontSide,documentType:t,subFormNumber:null},{configName:`photoId`,formNumber:e,uploadButtonTitle:z.t(`back`),documentName:n,documentSide:lc.BackSide,documentType:t,subFormNumber:null}],registrationAddress:[{configName:`registrationAddress`,formNumber:e,documentName:U.AUTH_ADDRESS,documentSide:lc.FrontSide,subFormNumber:null}]}},tH=({formNumber:e,documentType:t,uploadedFiles:n=[]})=>WV(eH(e,t),n),nH=`#FFF6DF`,rH=`#E0F7D4`,iH={companyRegistrationCertificate:OV,registrationAddress:DV,operationAddress:kV,sourceOfFunds:AV},aH={photoId:zV,registrationAddress:jV,companyRegistrationCertificate:BV,registerOfDirectorsAndShareholders:VV,operationAddress:kV},oH={photoId:zV,registrationAddress:jV},sH={photoId:zV,registrationAddress:jV},cH=(e,t=!1)=>({companyRegistrationCertificate:`⢠Company registration certificate 704Official registration document.`,registrationAddress:t?`⢠Proof of residence address 705One document (issued within 3 months) showing the name and address: 706- Utility bill 707- Bank statement 708- Rental agreement 709- Government-issued document`:`⢠Proof of registered address 710One of the following (issued within the last 3 months): 711- Company utility bill 712- Bank statement 713Must clearly show your company's name and address.`,operationAddress:`⢠Proof of operational address 714One of the following (issued within the last 3 months): 715- Company utility bill 716- Bank statement 717Must clearly show your company's name and address.`,sourceOfFunds:`⢠Source of funds 718One document showing where your company's funds come from (issued within the last 6 months): 719- Recent bank statements 720- Last audited annual accounts 721- Latest financial statement 722- Investment agreement 723- Invoices to clients 724Must show your company's name.`,photoId:`⢠Photo ID 725- ID card 726- Passport 727- Driver's license 728- Permanent residence permit 729The document must clearly show your photo, full name, and date of birth, and it must be valid (not expired).`,registerOfDirectorsAndShareholders:`⢠Register of shareholders and directors 730Official document listing all shareholders and directors.`})[e]||`⢠${e}`,lH=(e,t)=>{let n=`Documents checklist 731`;if(n+=`To open your account, you'll need these documents ready: 732 733`,e.company.length>0){n+=`Company 734`,t?.companyDetails?.companyName&&(n+=`${t.companyDetails.companyName}\n`);let r=new Set;
734e.company.forEach(e=>{e.length>0&&!r.has(e[0].configName)&&(n+=`${cH(e[0].configName,!1)}\n`,r.add(e[0].configName))}),n+=` 735`}return e.shareholders.length>0&&(n+=`Shareholders 736`,e.shareholders.forEach((e,r)=>{let i=t?.shareholders?.[r];if(!i)return;let a=uV(i)?i.firstName:i.companyName;n+=`${a} - ${i.share}% of shares\n`;let o=new Set;e.forEach(e=>{if(e.length>0&&!o.has(e[0].configName)){let t=i.partyType===eV.INDIVIDUAL;n+=`${cH(e[0].configName,t)}\n`,o.add(e[0].configName)}}),n+=` 737`})),e.owners.length>0&&(n+=`Shareholders owners 738`,e.owners.forEach(e=>{if(e.length===0)return;let r=e[0][0].formNumber-1,i=e[0][0].subFormNumber-1,a=t?.shareholders?.[r]?.owners?.[i],o=t?.shareholders?.[r];if(!a||!o)return;n+=`${a.firstName}\n`;let s=new Set;e.forEach(e=>{e.length>0&&!s.has(e[0].configName)&&(n+=`${cH(e[0].configName,!0)}\n`,s.add(e[0].configName))}),n+=` 739`})),e.directors.length>0&&(n+=`Directors 740`,e.directors.forEach(e=>{if(e.length===0)return;let r=e[0][0].formNumber-1,i=t?.directors?.[r];if(!i||i.isAuthorizedFromBeneficiary)return;n+=`${i.firstName}\n`;let a=new Set;e.forEach(e=>{e.length>0&&!a.has(e[0].configName)&&(n+=`${cH(e[0].configName,!0)}\n`,a.add(e[0].configName))}),n+=` 741`})),n.trim()},uH={color:`neutral300`,fontSize:18},dH={color:`green500`,fontSize:18},fH={cursor:`pointer`},pH={display:`inline-flex`,alignItems:`center`,bgcolor:nH,borderRadius:`4px`,padding:`0.5px 4px 1.5px`,minWidth:16,ml:.75},mH=220,hH=10,gH=(0,I.memo)(({title:e,description:t,content:n,icon:r,defaultOpen:i=!1,checked:a=!1,missingCount:o})=>{let{t:s}=G(),[c,l]=de(i),[u,d]=(0,I.useState)(i?`auto`:0),f=(0,I.useRef)(null),p=(0,I.useRef)(!1);(0,I.useEffect)(()=>{if(!p.current){p.current=!0;return}if(f.current)if(c){let e=f.current.scrollHeight;d(e);let t=setTimeout(()=>d(`auto`),mH);return()=>clearTimeout(t)}else{let e=f.current.scrollHeight;d(e);let t=setTimeout(()=>d(0),hH);return()=>clearTimeout(t)}},[c]);let m=(0,I.useMemo)(()=>({color:c?`neutral500`:`neutral400`,ml:`auto`,transform:c?`rotate(180deg)`:`rotate(0deg)`,transition:`transform 0.2s ease-in-out, color 0.2s ease-in-out`}),[c]),h=(0,I.useMemo)(()=>s(o===1?`{{count}} doc missing`:`{{count}} docs missing`,{count:o}),[o,s]);return(0,L.jsxs)(T,{border:1,borderColor:`neutral100`,borderRadius:2,children:[(0,L.jsxs)(T,{py:1,px:1.5,direction:`row`,alignItems:`center`,sx:fH,onClick:l,children:[a?(0,L.jsx)(Xt,{sx:dH}):(0,L.jsx)(r,{sx:uH}),(0,L.jsx)(k,{ml:1,variant:`titleM`,children:e}),(0,L.jsx)(O,{ml:.75,children:t}),!!o&&!c&&(0,L.jsx)(O,{sx:pH,children:(0,L.jsx)(k,{variant:`labelS`,color:`neutral500`,children:h})}),(0,L.jsx)(He,{sx:m})]}),(0,L.jsxs)(`div`,{ref:f,style:{height:u,overflow:`hidden`,transition:`height 0.2s ease-in-out`},children:[(0,L.jsx)(E,{}),n]})]})}),_H=(e,t)=>e[t],vH=({completed:e,total:t})=>{let{t:n}=G();return(0,L.jsx)(O,{sx:{display:`inline-flex`,alignItems:`center`,bgcolor:e===t?rH:nH,borderRadius:`4px`,px:`5px`,py:`2px`,minWidth:18,height:20},children:(0,L.jsx)(k,{variant:`labelS`,color:`neutral500`,children:n(`{{completed}}/{{total}} uploaded`,{completed:e,total:t})})})},yH={[U.BEN_OWNER_ID_CARD]:W.GOVERNMENT_ID,[U.AUTH_OWNER_ID_CARD]:W.GOVERNMENT_ID,[U.BEN_OWNER_PASSPORT]:W.PASSPORT,[U.AUTH_OWNER_PASSPORT]:W.PASSPORT,[U.BEN_OWNER_PERMANENT_RESIDENCE_PERMIT]:W.PERMANENT_RESIDENCE_PERMIT,[U.AUTH_OWNER_PERMANENT_RESIDENCE_PERMIT]:W.PERMANENT_RESIDENCE_PERMIT,[U.BEN_OWNER_DRIVERS_LICENSE]:W.DRIVERS_LICENSE,[U.AUTH_OWNER_DRIVERS_LICENSE]:W.DRIVERS_LICENSE},bH=(e,t,n)=>{let r=n.find(n=>n.formNumber===e&&n.subFormNumber===t&&yH[n.documentName]);return r?yH[r.documentName]:void 0},xH=(e,t)=>{let n=[],r=t?.uploadedFiles||[];return e.forEach((e,i)=>{e.forEach((e,a)=>{let o=i+1,s=a+1,c=t?.shareholders?.[i]?.owners?.[a]?.document?.type||bH(o,s,r),l=e.map(e=>$V({formNumber:o,subFormNumber:s,documentType:c,uploadedFiles:r,partyType:t?.shareholders?.[i]?.owners?.[a]?.partyType})[e]);n.push(l)})}),n.filter(e=>e.length>0)},SH=()=>{let{t:e}=G(),{data:t}=$L(),{copyToClipboard:n}=Pu(),r=Ar(),{trackStepAction:i}=TR({stepName:Mw.AdditionalDocuments,stepNumber:Object.values(Mw).indexOf(Mw.AdditionalDocuments)+1}),a=mR(),o=t?.address?.operationalAddress,s=t&&[`GB`,`EE`].includes(t.registrationCountry),c=t?.additionalDocuments.includes(U.PROOF_OF_FUNDS),l={company:[...s?[]:[HV.CompanyRegistrationCertificate],HV.RegistrationAddress,...o?[HV.OperationAddress]:[],...c?[HV.SourceOfFunds]:[]],shareholders:t?.shareholders?.map(e=>e.partyType===eV.INDIVIDUAL?[HV.PhotoID,HV.RegistrationAddress]:[HV.CompanyRegistrationCertificate,HV.RegisterOfDirectorsAndShareholders,...e.operationalAddress?[HV.OperationAddress]:[HV.RegistrationAddress]])||[],owners:t?.shareholders?.map(e=>
741e.owners||[])?.reduce((e,t,n)=>(e[n]=t.map(e=>e.partyType===eV.INDIVIDUAL?[HV.PhotoID,HV.RegistrationAddress]:[]),e),[])||[],directors:t?.directors?.map((e,t)=>({director:e,originalIndex:t})).filter(({director:e})=>e.partyType===eV.INDIVIDUAL&&!e.isAuthorizedFromBeneficiary).map(()=>[HV.PhotoID,HV.RegistrationAddress])||[]},u=t?.directors?.map((e,t)=>({director:e,originalIndex:t})).filter(({director:e})=>e.partyType===eV.INDIVIDUAL&&!e.isAuthorizedFromBeneficiary)||[],d={company:l.company.map(e=>KV(t?.uploadedFiles)[e]),shareholders:l.shareholders.map((e,n)=>e.map(e=>ZV({formNumber:n+1,documentType:t?.shareholders?.[n]?.document?.type,uploadedFiles:t?.uploadedFiles||[],partyType:t?.shareholders?.[n]?.partyType})[e])),owners:xH(l.owners,t),directors:u.map(({director:e,originalIndex:n})=>l.directors[u.findIndex(e=>e.originalIndex===n)].map(r=>tH({formNumber:n+1,documentType:e.document?.type,uploadedFiles:t?.uploadedFiles||[]})[r]))},f=()=>{n(lH(d,t))(),b({message:e(`Documents list is copied`),variant:`success`}),i({action:jw.ModalDocumentsChecklistCopied})},p=async()=>{await a.mutateAsync(),r(Os.ROOT.path),i({action:Aw.NextButtonClicked})},m=DH(d.company)&&d.shareholders.every(DH)&&d.owners.every(DH)&&d.directors.every(DH),h=TH([d.company]),g=TH(d.shareholders),_=TH(d.owners),v=TH(d.directors);return(0,L.jsx)(AB,{header:(0,L.jsx)(EB,{tracker:i}),sidebar:(0,L.jsx)(OB,{}),content:(0,L.jsxs)(T,{maxWidth:480,mx:`auto`,width:`100%`,pt:3,gap:3,children:[(0,L.jsxs)(T,{gap:.5,children:[(0,L.jsx)(K,{variant:`headlineS`,children:`Documents`}),(0,L.jsxs)(K,{variant:`bodyM`,color:`neutral400`,children:[`Submit the required documents to complete your company verification. Need to share the checklist?`,` `,(0,L.jsx)(Wt,{onClick:f,children:e(`Copy it here`)})]})]}),(0,L.jsx)(E,{}),(0,L.jsxs)(T,{gap:1.5,children:[(0,L.jsxs)(T,{direction:`row`,alignItems:`center`,justifyContent:`space-between`,children:[(0,L.jsx)(K,{variant:`labelM`,color:`neutral400`,children:`Company`}),(0,L.jsx)(vH,{completed:h.completed,total:h.total})]}),(0,L.jsx)(gH,{icon:Xe,defaultOpen:!0,title:t?.companyDetails?.companyName,content:d.company.map(e=>(0,I.createElement)(_H(iH,e[0].configName),{configs:e})),checked:DH(d.company),missingCount:wH(d.company)}),!!d.shareholders.length&&(0,L.jsxs)(T,{direction:`row`,alignItems:`center`,justifyContent:`space-between`,children:[(0,L.jsx)(K,{variant:`labelM`,color:`neutral400`,children:`Shareholders`}),(0,L.jsx)(vH,{completed:g.completed,total:g.total})]}),d.shareholders.map((n,r)=>{let i=t?.shareholders[r];if(i)return(0,L.jsx)(gH,{icon:it,title:uV(i)?i.firstName:i.companyName,description:(0,L.jsx)(Vn,{color:`secondary`,label:e(`{{share}}% of shares`,{share:i.share})}),content:n.map(e=>(0,I.createElement)(_H(aH,e[0].configName),{configs:e})),checked:DH(n),missingCount:wH(n)},i.formNumber)}),!!d.owners.length&&(0,L.jsxs)(T,{direction:`row`,alignItems:`center`,justifyContent:`space-between`,children:[(0,L.jsx)(K,{variant:`labelM`,color:`neutral400`,children:`Shareholder owners`}),(0,L.jsx)(vH,{completed:_.completed,total:_.total})]}),d.owners.map(e=>{let n=e[0][0].formNumber-1,r=e[0][0].subFormNumber-1,i=t?.shareholders[n]?.owners[r];if(i)return(0,L.jsx)(gH,{icon:Rt,title:i.firstName,content:e.map(e=>(0,I.createElement)(_H(oH,e[0].configName),{configs:e})),checked:DH(e),missingCount:wH(e)},i.formNumber)}),!!d.directors.length&&(0,L.jsxs)(T,{direction:`row`,alignItems:`center`,justifyContent:`space-between`,children:[(0,L.jsx)(K,{variant:`labelM`,color:`neutral400`,children:`Directors`}),(0,L.jsx)(vH,{completed:v.completed,total:v.total})]}),d.directors.map((e,t)=>{let n=u[t];if(!n)return;let{director:r}=n;return(0,L.jsx)(gH,{icon:jn,title:r.firstName,content:e.map(e=>(0,I.createElement)(_H(sH,e[0].configName),{configs:e})),checked:DH(e),missingCount:wH(e)},r.formNumber)})]})]}),footer:(0,L.jsx)(TB,{renderPrevBtn:()=>null,renderNextBtn:()=>(0,L.jsx)(A,{variant:`primary`,endIcon:(0,L.jsx)(dt,{}),onClick:p,disabled:!m,loading:a.isPending,sx:{marginLeft:`auto`},children:e(`Submit Application`)})})})},CH=e=>e.some(e=>!!e.fileName),wH=e=>e.some(CH)?e.filter(e=>!EH(e)).length:0,TH=e=>e.reduce((e,t)=>
741({total:e.total+t.length,completed:e.completed+t.filter(EH).length}),{total:0,completed:0}),EH=e=>e.every(e=>e.documentType&&e.documentType===W.PASSPORT&&e.documentSide===`BackSide`?!0:!!e.fileName),DH=e=>e.every(e=>EH(e)),OH=ti({txVolume:oi().oneOf(Object.values(xR)).required(ya),txSize:oi().oneOf(Object.values(SR)).required(ya),txType:Jr().of(Yr()).min(1,ya).required(ya),txTypeOther:Yr().trim().when(`txType`,{is:e=>e?.includes(CR.OTHER),then:e=>e.required(ya),otherwise:e=>e.notRequired()}),opsCountries:Jr().of(Yr()).min(1,ya).required(ya)}),kH=[{label:z.t(`Less than 10,000`),value:xR.LESS_THAN_10K},{label:z.t(`10,000 â 50,000`),value:xR.TEN_K_TO_50K},{label:z.t(`50,000 â 200,000`),value:xR.FIFTY_K_TO_200K},{label:z.t(`200,000 â 1,000,000`),value:xR.TWO_HUNDRED_K_TO_1M},{label:z.t(`Over 1,000,000`),value:xR.OVER_1M}],AH=[{label:z.t(`Less than 1,000`),value:SR.LESS_THAN_1K},{label:z.t(`1,000 â 5,000`),value:SR.ONE_K_TO_5K},{label:z.t(`5,000 â 25,000`),value:SR.FIVE_K_TO_25K},{label:z.t(`25,000 â 100,000`),value:SR.TWENTYFIVE_K_TO_100K},{label:z.t(`100,000 â 500,000`),value:SR.ONEHUNDRED_K_TO_500K},{label:z.t(`Over 500,000`),value:SR.OVER_500K}],jH=[{label:z.t(`Customer payments`),value:CR.CUSTOMER_PAYMENTS},{label:z.t(`Subscriptions`),value:CR.SUBSCRIPTIONS},{label:z.t(`Vendor payments`),value:CR.VENDOR_PAYMENTS},{label:z.t(`Payroll`),value:CR.PAYROLL},{label:z.t(`Internal transfers`),value:CR.INTERNAL_TRANSFERS},{label:z.t(`Expense reimbursements`),value:CR.EXPENSE_REIMBURSEMENTS},{label:z.t(`Card payments`),value:CR.CARD_PAYMENTS},{label:z.t(`Refunds / chargebacks`),value:CR.REFUNDS_CHARGEBACKS},{label:z.t(`Government / tax payments`),value:CR.GOVERNMENT_TAX_PAYMENTS},{label:z.t(`Other`),value:CR.OTHER}],MH=function(e){return e.EU=`EU`,e.Global=`GLOBAL`,e}({}),NH=()=>{let{t:e}=G(),{data:t}=$L(),{trackStepAction:n}=TR({stepName:Mw.ExpectedActivity,stepNumber:Object.values(Mw).indexOf(Mw.ExpectedActivity)+1}),{toNextStep:r,stepWasSubmitted:i,toPrevStep:a}=CB(),{data:o}=cR(),s=iR(),c=(0,I.useMemo)(()=>o?[{value:MH.Global,label:e(`Global`),group:e(`Presets`)},{value:MH.EU,label:e(`EU`),group:e(`Presets`)},...o.map(t=>({value:t.iso31661Alpha2Code,label:t.name,group:e(`All countries`)}))]:[],[o,e]),{reset:l,handleSubmit:u,control:d,formState:{isValid:f,isDirty:p},setValue:m,trigger:h,watch:g,getValues:_}=ei({resolver:ii(OH),mode:`onChange`}),v=i&&!f,{clearSavedFormData:y}=uv({formId:Q.ExpectedActivity,formData:p?g():{},setValue:m,trigger:h}),b=Qr({name:`txType`,control:d});(0,I.useEffect)(()=>{b?.includes(CR.OTHER)?h(`txTypeOther`):m(`txTypeOther`,``,{shouldValidate:!0})},[b,h,m]);let x=async()=>{let e=_(),t=e.opsCountries?.filter(e=>e===MH.Global||e===MH.EU)||[],n=e.opsCountries?.filter(e=>e!==MH.Global&&e!==MH.EU)||[];await s.mutateAsync({...e,opsScopes:t,opsCountries:n,isCompleted:!1}),y()},S=u(async e=>{if(!p&&i){r(),n({action:Aw.NextButtonClicked});return}let t=e.opsCountries?.filter(e=>e===MH.Global||e===MH.EU)||[],a=e.opsCountries?.filter(e=>e!==MH.Global&&e!==MH.EU)||[];await s.mutateAsync({...e,opsScopes:t,opsCountries:a,isCompleted:!0}),y(),r(),n({action:Aw.NextButtonClicked})});return(0,I.useEffect)(()=>{if(!t?.expectedActivity||p||lv(Q.ExpectedActivity))return;let e=[...t.expectedActivity.opsScopes||[],...t.expectedActivity.opsCountries||[]];l({...t.expectedActivity,opsCountries:e}),h(fl(_()))},[l,t,p,h]),(0,L.jsx)(AB,{header:(0,L.jsx)(EB,{tracker:n,onSaveAndExit:x,saveAndExitDisabled:v}),sidebar:(0,L.jsx)(OB,{tracker:n}),content:(0,L.jsxs)(T,{maxWidth:480,mx:`auto`,width:`100%`,pt:3,gap:3,children:[(0,L.jsxs)(T,{gap:.5,children:[(0,L.jsx)(K,{variant:`headlineS`,children:`Expected activity`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`Provide information about your expected account usage.`})]}),(0,L.jsx)(E,{}),(0,L.jsx)(Yt,{name:`txVolume`,control:d,label:e(`Expected monthly volume`),labelSize:`large`,placeholder:e(`Select`),options:kH,helperText:(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`Estimated total transaction amount per month.`})}),(0,L.jsx)(Yt,{name:`txSize`,control:d,label:e(`Average transaction size`),labelSize:`large`,placeholder:e(`Select`),options:AH}),(0,L.jsxs)(T,{gap:1.5,children:[(0,L.jsx)(gt,{multiple:!0,disableCloseOnSelect:!0,name:`txType`,control:d,label:e(`Account purpose`),labelSize:`large`,placeholder:e(`Select`),options:jH}),b?.includes(CR.OTHER)&&(0,L.jsx)(Ln,{name:`txTypeOther`,control:d,labelSize:`large`})]}),(0,L.jsx)(gt,{multiple:!0,disableCloseOnSelect:!0,name:`opsCountries`,control:d,label:e(`Expected payment countries`),labelSize:`large`,helperText:(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`Countries you expect to send or receive payments with.`}),placeholder:e(`Select`),options:c,groupBy:e=>e.group,renderGroup:e=>(0,L.jsxs)(nr,{children:[(0,L.jsx)(k,{variant:`labelS`,color:`neutral400`,mb:1,children:e.group}),(0,L.jsx)(E,{}),(0,L.jsx)(nr,{sx:{padding:0,mb:1,mt:.5},children:e.children})]},e.key),renderOption:(e,t,{selected:n})=>(0,I.createElement)(gr,{...e,key:t.value,selected:n},(0,L.jsx)(tt,{label:t.label,checked:n,multiple:!0}))})]}),footer:(0,L.jsx)(TB,{prevBtnProps:{onClick:()=>{n({action:Aw.BackButtonClicked}),a()}},nextBtnProps:{disabled:!f,loading:s.isPending,onClick:S}})})},PH=()=>{let{t:e}=G(),{data:t}=$L(),{trackStepAction:n}=TR({stepName:Mw.ShareholdersDetails,stepNumber:Object.values(Mw).indexOf(Mw.ShareholdersDetails)+1}),{toNextStep:r,stepWasSubmitted:i,toPrevStep:a}=CB(),o=oR(),[s,c]=(0,I.useState)(!1),[l,u]=(0,I.useState)(null),[d,f]=(0,I.useState)(!1),p=(0,I.useRef)(!1),m=(0,I.useRef)(null),[h,g]=E_(Q.Shareholders,[]),_=(0,I.useMemo)(()=>h.reduce((e,t)=>
741e+(Number(t.share)||0),0),[h])>100,{open:v,openModal:y,cancelModal:x,confirmModal:S}=v_(t=>{t!==void 0&&(g(e=>e.filter((e,n)=>n!==t)),u(null),c(!1),b({message:e(`Shareholder removed`),variant:`success`}),n({action:jw.ShareholderDeleteClicked}))}),ee=e=>({persons:fV(h,$B.Beneficial),...e!==void 0&&{isCompleted:e}}),te=async()=>{let e=h;if(s&&m.current){let t=m.current.getValues();e=ne?h.map((e,n)=>n===l?t:e):[...h,t]}await o.mutateAsync({persons:fV(e,$B.Beneficial),isCompleted:!1}),kR(OR)},C=async()=>{let e=t?.shareholders||[],a=JSON.stringify(h)!==JSON.stringify(e);if(n({action:Aw.NextButtonClicked}),!a&&i){r();return}await o.mutateAsync(ee(!0)),kR(OR),r()},w=e=>{u(e),c(!0),n({action:jw.ShareholderEditClicked})},ne=typeof l==`number`,re=t=>{if(c(!1),n({action:jw.ShareholderAddClicked}),localStorage.removeItem(Q.ShareholdersDraft),ne){g(e=>e.map((e,n)=>n===l?t:e)),u(null),b({message:e(`Shareholder details updated`),variant:`success`});return}g(e=>[...e,t])};(0,I.useEffect)(()=>{if(!t?.shareholders||p.current)return;p.current=!0;let e=localStorage.getItem(Q.Shareholders)!==null;e||g(t.shareholders);let n=(e?h:t.shareholders).findIndex(e=>!dV(e,!0,t.minimumBeneficiaryShare));n!==-1&&(u(n),c(!0))},[g,t,h]),(0,I.useEffect)(()=>{AR(Q.ShareholdersDraft)&&c(!0)},[]);let ie=s?!d:h.some(e=>!dV(e,!0,t?.minimumBeneficiaryShare)),ae=!h.length;return(0,L.jsx)(AB,{header:(0,L.jsx)(EB,{tracker:n,onSaveAndExit:te,saveAndExitDisabled:i&&(ie||ae)}),sidebar:(0,L.jsx)(OB,{tracker:n}),content:(0,L.jsxs)(T,{maxWidth:480,mx:`auto`,width:`100%`,gap:3,children:[s?(0,L.jsxs)(T,{children:[(0,L.jsxs)(T,{direction:`row`,alignItems:`center`,gap:.5,children:[(0,L.jsx)(O,{display:`flex`,sx:{cursor:`pointer`},onClick:()=>{u(null),c(!1),localStorage.removeItem(Q.ShareholdersDraft)},children:(0,L.jsx)(_t,{})}),(0,L.jsx)(k,{variant:`headlineS`,children:e(ne?`Edit shareholder`:`Add shareholder`)})]}),(0,L.jsx)(vV,{ref:m,initialData:ne?h[l]:void 0,minimumBeneficiaryShare:t?.minimumBeneficiaryShare,onShareholderSubmit:re,submitTitle:e(ne?`Save Changes`:`Add Shareholder`),addressDescription:e(`The shareholder's official registered address.`),withDirectorCheckbox:!0,onValidityChange:f,draftStorageKey:Q.ShareholdersDraft})]}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(T,{gap:.5,children:[(0,L.jsx)(K,{variant:`headlineS`,children:`Shareholders`}),(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`Provide information about your company's ownership structure.`})]}),(0,L.jsx)(E,{}),(0,L.jsxs)(T,{gap:1.5,children:[t?.minimumBeneficiaryShare&&(0,L.jsxs)(K,{variant:`bodyM`,children:[`Add all shareholders owning`,` `,(0,L.jsxs)(k,{component:`span`,variant:`titleM`,children:[t.minimumBeneficiaryShare.toString(),`% or more`]}),` `,`of your company's shares.`]}),h.map((n,r)=>{let i=!dV(n,!0,t?.minimumBeneficiaryShare);if(n.partyType===eV.INDIVIDUAL){let t=n;return(0,L.jsx)(pV,{title:i?e(`Incomplete profile`):`${t.firstName} ${t.lastName}`,subtitle:i?e(`Individual`):`${e(`Individual`)}ã»${t.share}% of shares`,icon:Ve,onDelete:()=>y(r),onEdit:()=>w(r)},r)}else{let t=n;return(0,L.jsx)(pV,{title:i?e(`Incomplete profile`):t.companyName,subtitle:i?e(`Legal entity`):`${e(`Legal entity`)}ã»${t.share}% of shares`,icon:Xe,onDelete:()=>y(r),onEdit:()=>w(r)},r)}}),_&&(0,L.jsx)(vn,{message:e(`Total ownership percentage cannot exceed 100%.`),severity:`attention`}),(0,L.jsx)(A,{variant:`tertiaryBlack`,size:`large`,sx:{width:`fit-content`},onClick:()=>c(!0),disabled:_,children:e(`Add Shareholder`)})]})]}),(0,L.jsx)(kt,{open:v,onClose:x,title:e(`Are you sure you want to remove this shareholder?`),submitTitle:e(`Remove`),submitProps:{variant:`destructive`},onSubmit:S,children:(0,L.jsx)(K,{variant:`bodyM`,color:`neutral400`,children:`All details added for this shareholder will be deleted.`})})]}),footer:!s&&(ne?(0,L.jsx)(A,{variant:`primary`,endIcon:(0,L.jsx)(dt,{}),disabled:!h.length||_,loading:o.isPending,sx:{marginLeft:`auto`},onClick:C,children:e(`Save Changes`)}):(0,L.jsx)(TB,{prevBtnProps:{onClick:()=>{n({action:Aw.BackButtonClicked}),a()}},nextBtnProps:{disabled:!h.length||_||ie,loading:o.isPending,onClick:C}}))})},FH={[H.AgreementSubmitted]:QB,[H.CompanyDetailsSubmitted]:MB,[H.BusinessActivitySubmitted]:NH,[H.ExpectedActivitySubmitted]:HB,[H.CompanyAddressSubmitted]:PH,[H.BeneficiaryPersonSubmitted]:CV,[H.AuthorizedPersonSubmitted]:SH},IH=()=>{let{currentStep:e}=CB();return(0,I.createElement)(FH[e]??QB)},LH=()=>(0,L.jsx)(wB,{children:(0,L.jsx)(IH,{})}),RH=()=>(0,L.jsx)(LH,{}),zH=()=>{let{currentStep:e}=qz();return e===Uz.CompanyLocation?(0,L.jsx)(xB,{}):e===Uz.Agreement?(0,L.jsx)(pB,{}):(0,L.jsx)(RH,{})},BH=()=>(0,L.jsxs)(Jz,{children:[(0,L.jsx)(zH,{}),(0,L.jsx)(oz,{})]}),VH=[H.VerificationInProgress,H.VerificationFailed,H.DocumentsSubmitted,H.Verified,H.AdminApproved,H.ProvisionInProgress,H.ProvisionFailed],HH=[H.DocumentExpired,H.DatabaseScreening,H.Failed],UH=()=>{wh(window.location.search);let{data:e,isLoading:t}=Od({enabled:!!Bu().isTokenValid}),{isLoading:n}=$L(),r=Vh(e?.region),i=!r&&e&&VH.includes(e.euStage),a=!r&&e&&HH.includes(e.euStage);return(0,I.useEffect)(()=>{let e=document.body.style.overflow;return document.body.style.overflow=`hidden`,()=>{document.body.style.overflow=e}},[]),i?(0,L.jsx)(TL,{}):a?(0,L.jsx)(jR,{}):(0,L.jsx)(O,{sx:e=>({position:`fixed`,inset:0,zIndex:e.zIndex.modal,backgroundColor:e.extendPalette.neutral0,overflow:`auto`}),children:n||t?(0,L.jsx)(Pe,{}):(0,L.jsx)(BH,{})})},WH=t({MoneyOnboardingPage:()=>UH,default:()=>GH}),GH=UH,KH=Z((0,I.lazy)(()=>j(()=>import(`./card-stage-fallback-DyDpTWjK.js`).then(e=>({default:e.CardStageFallback})),__vite__mapDeps([85,4,1,3,12,6,7,8])))),qH=Z((0,I.lazy)(()=>j(()=>Promise.resolve().then(()=>Aj).then(e=>({default:e.CardStageAccess})),void 0))),JH=Z((0,I.lazy)(()=>j(()=>Promise.resolve().then(()=>Aj).then(e=>({default:e.PermissionAccess})),void 0))),YH=Z((0,I.lazy)(()=>j(()=>import(`./member-cards-placeholder-FBU51gQv.js`).then(e=>e.n),__vite__mapDeps([77,1,4,3,5,6,7,8,2,9,10,11])))),XH=[{path:Os.ROOT.path,element:(0,L.jsx)(JH,{permissions:[V.CARDS_ALL_ACCESS],fallback:(0,L.jsx)(JH,{permissions:[V.CARDS_MY_ONLY],children:(0,L.jsx)(YH,{})}),children:(0,L.jsx)(qH,{euStages:Object.values(H).filter(e=>e!==H.Onboarded),fallback:(0,L.jsx)(KH,{}),children:(0,L.jsx)(UH,{})})})}],ZH=Z((0,I.lazy)(()=>j(()=>Promise.resolve().then(()=>IR).then(e=>({default:e.Disclosures})),void 0))),QH=Z((0,I.lazy)(()=>j(()=>import(`./money-activation-BLSTFU5z.js`).then(e=>({default:e.MoneyActivationPage})),__vite__mapDeps([105,1,4,3,5,6,7,8,2,9,10,11,12])))),$H=Z((0,I.lazy)(()=>j(()=>Promise.resolve().then(()=>Aj).then(e=>({default:e.PrivateRoute})),void 0))),eU=Z((0,I.lazy)(()=>j(()=>Promise.resolve().then(()=>Aj).then(e=>({default:e.CardStageAccess})),void 0))),tU=Z((0,I.lazy)(()=>j(()=>import(`./card-stage-fallback-DyDpTWjK.js`).then(e=>({default:e.CardStageFallback})),__vite__mapDeps([85,4,1,3,12,6,7,8])))),nU=Z((0,I.lazy)(()=>j(()=>import(`./member-cards-placeholder-FBU51gQv.js`).then(e=>e.n),__vite__mapDeps([77,1,4,3,5,6,7,8,2,9,10,11])))),rU=[{path:Ho,element:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Vw,{permissions:[V.CARDS_ALL_ACCESS],children:(0,L.jsx)(kr,{})}),(0,L.jsx)(Vw,{permissions:[V.CARDS_MY_ONLY],children:(0,L.jsx)(nU,{})})]}),children:[{index:!0,element:(0,L.jsx)($H,{children:(0,L.jsx)(eU,{euStages:[H.NotOnboarded,H.Blocked,H.RegistrationCountrySubmitted,H.AgreementSubmitted,H.CompanyDetailsSubmitted,H.BusinessActivitySubmitted,H.ExpectedActivitySubmitted,H.CompanyAddressSubmitted,H.BeneficiaryPersonSubmitted,H.AuthorizedPersonSubmitted],fallback:(0,L.jsx)(tU,{}),children:(0,L.jsx)(QH,{})})})},{path:Uo,element:(0,L.jsx)($H,{children:(0,L.jsx)(ZH,{})})}]},...XH],iU=()=>{let e=Ar(),{data:t}=nG(),{isSuccess:n,isError:r,mutate:i}=lG();return ve(i),(0,I.useEffect)(()=>{n&&e(Wo)},[n,e]),(0,I.useEffect)(()=>{r&&e(`/`)},[r,e]),(0,L.jsxs)(T,{flex:`1`,alignItems:`center`,justifyContent:`center`,gap:3,children:[(0,L.jsx)(yn,{}),(0,L.jsxs)(O,{textAlign:`center`,children:[(0,L.jsx)(K,{variant:`titleM`,children:`Just a moment - updating access to Money`}),(0,L.jsxs)(K,{variant:`titleM`,component:`span`,children:[`for`,` `]}),(0,L.jsxs)(k,{variant:`titleM`,component:`span`,children:[t?.companyName,`!`]})]})]})},aU=Z((0,I.lazy)(()=>j(()=>Promise.resolve().then(()=>IR),void 0))),oU=Z((0,I.lazy)(()=>j(()=>import(`./USVerificationPage-Dl2JX3M8.js`).then(e=>({default:e.USVerificationPage})),__vite__mapDeps([106,4,1,3,5,6,7,8,2,9,10,11,12])))),sU=Z((0,I.lazy)(()=>j(()=>import(`./USContinueVerificationView-p4Ufnf57.js`).then(e=>({default:e.USContinueVerificationView})),__vite__mapDeps([107,1,6,7,3,4,8,5,2,9,10,11,12])))),cU=[{path:As.WORKFLOW.path,element:(0,L.jsx)(XI,{children:(0,L.jsx)(sL,{children:(0,L.jsx)(aU,{})})})},{path:As.VERIFICATION.path,element:(0,L.jsx)(ZI,{children:(0,L.jsx)(oU,{})})},{path:As.CONTINUE.path,element:(0,L.jsx)(XI,{children:(0,L.jsx)(sU,{})})}],lU=Z((0,I.lazy)(()=>j(()=>import(`./money-master-CxXR5-rQ.js`).then(e=>({default:e.MoneyMaster})),__vite__mapDeps([56,1,6,7,3,4,8,9,5,2,10,11,22,12,57])))),uU=[{path:Wo,element:(0,L.jsx)(yf,{children:(0,L.jsx)(zR,{children:(0,L.jsx)(Mz,{children:(0,L.jsx)(lU,{})})})}),children:[...rU,...xF,...R.ENABLE_US_KYB_FEATURE?cU:[]]}],dU=[{path:Vo,element:(0,L.jsx)(kr,{}),children:[{index:!0,element:(0,L.jsx)(oD,{children:(0,L.jsx)(iU,{})})}]}],fU=Z((0,I.lazy)(()=>j(()=>import(`./onboarding-page-SPmeFsYF.js`),__vite__mapDeps([108,1,6,7,3,4,8,9,5,2,10,11,22,12,36,33,109,110,111,112,113,39,24,40,114,115,116,117,69,35,37])))),pU=[{path:zo.ROOT.path,children:[{index:!0,element:(0,L.jsx)(fD,{children:(0,L.jsx)(fU,{})})}]}],mU=Z((0,I.lazy)(()=>j(()=>Promise.resolve().then(()=>Bw),void 0))),hU=Z((0,I.lazy)(()=>j(()=>import(`./procurement-workflows-RtWR-BWQ.js`),__vite__mapDeps([118,1,6,7,3,4,8,9,5,2,10,11,12,113,22,114,119,120])))),gU=Z((0,I.lazy)(()=>j(()=>import(`./procurement-requests-BwkPoxXu.js`).then(e=>e.t),__vite__mapDeps([111,1,6,7,3,4,8,2,9,5,10,11,22,12,112,113,39,24,40,114,115,116,117,69])))),_U=Z((0,I.lazy)(()=>j(()=>import(`./procurement-request-details-DENjkDtv.js`),__vite__mapDeps([121,1,6,7,3,4,8,2,9,5,10,11,22,12,113,24,122,123,61,124,69,115,125])))),vU=Z((0,I.lazy)(()=>j(()=>import(`./procurement-wizard-BhhSL6tI.js`),__vite__mapDeps([126,1,6,7,3,4,8,2,9,5,10,11,22,12,112,113,24,122,123,61,124,69,119,120])))),yU=[{path:gs,element:(0,L.jsxs)(fD,{children:[(0,L.jsx)(kr,{}),(0,L.jsx)(CP,{event:kw.ProcurementPage})]}),children:[{index:!0,element:(0,L.jsx)(mU,{permissions:[V.ALL_SERVICES,V.ALL_MEMBERS,V.CARDS_ALL_ACCESS,V.ALL_PROCUREMENT],children:(0,L.jsx)(gU,{})})},{path:_s,element:(0,L.jsx)(mU,{permissions:[V.ALL_SERVICES,V.ALL_MEMBERS,V.CARDS_ALL_ACCESS,V.ALL_PROCUREMENT],children:(0,L.jsx)(_U,{})})},{path:vs,element:(0,L.jsx)(mU,{permissions:[V.ALL_PROCUREMENT],children:(0,L.jsx)(hU,{})})}]}],bU=[{path:ys,element:(0,L.jsx)(mU,{permissions:[V.ALL_PROCUREMENT],children:(0,L.jsx)(oD,{children:(0,L.jsx)(vU,{})})})}],xU=Z((0,I.lazy)(()=>j(()=>import(`./trips-list-DvJp0G1i.js`),__vite__mapDeps([127,1,4,3,9,6,7,8,5,2,10,11,12,128,22,24,129])))),SU=Z((0,I.lazy)(()=>j(()=>import(`./trip-details-gb2qSh9L.js`),__vite__mapDeps([130,1,6,7,3,4,8,9,5,2,10,11,12,128,22,24,129])))),CU=Z((0,I.lazy)(()=>j(()=>import(`./travel-policies-CJ03MyF_.js`).then(e=>({default:e.PoliciesList})),__vite__mapDeps([131,1,6,7,3,4,8,9,5,2,10,11,22,12,128,24])))),wU=Z((0,I.lazy)(()=>j(()=>import(`./travel-policies-CJ03MyF_.js`).then(e=>({default:e.PolicyEditor})),__vite__mapDeps([131,1,6,7,3,4,8,9,5,2,10,11,22,12,128,24])))),TU=[{path:bs,element:(0,L.jsx)(kr,{}),children:[{index:!0,element:(0,L.jsx)(xU,{})},{path:Ss,element:(0,L.jsx)(CU,{})},{path:Cs,element:(0,L.jsx)(wU,{})},{path:ws,element:(0,L.jsx)(wU,{})},{path:xs,element:(0,L.jsx)(SU,{})}]}],EU=()=>{let e=Au([V.ALL_PROCUREMENT]),t=Au([V.ALL_SERVICES,V.ALL_MEMBERS,V.ALL_CONNECTS]),n=Au([V.CARDS_MY_ONLY,V.CARDS_ALL_ACCESS]);if(!t){if(n)return(0,L.jsx)(Lr,{to:Wo,replace:!0});if(e)return(0,L.jsx)(Lr,{to:gs,replace:!0})}return(0,L.jsx)(Lr,{to:Eo,replace:!0})},DU=`pm_crash_reporting_consent`,OU=()=>{try{return localStorage.getItem(DU)!==`false`}catch{return!0}},kU=`[redacted]`,AU=[`password`,`pass`,`secret`,`token`,`otp`,`totp`,`seed`,`mnemonic`,`privatekey`,`masterkey`,`vault`,`cipher`,`note`,`cardnumber`,`cvv`,`value`],jU=[[RegExp(`((?:${AU.join(`|`)})[\\w-]*\\s*[=:]\\s*)[^\\s&;"']+`,`gi`),`$1${kU}`],[/(bearer\s+)[\w.\-+/=]+/gi,`$1${kU}`],[/\beyJ[\w-]+\.[\w-]+\.[\w-]+/g,kU]],MU=[`/passwords`],NU=6,PU=100,FU=e=>{let t=e.toLowerCase().replace(/[^a-z0-9]/g,``);return AU.some(e=>t.includes(e))},IU=e=>{let t=e;for(let[e,n]of jU)t=t.replace(e,n);return t},LU=e=>{try{let t=new URL(e,`http://x.invalid`),n=MU.some(e=>t.pathname.includes(e)),r=``;
741if(!n){let e=[...t.searchParams.entries()].map(([e,t])=>`${e}=${FU(e)?kU:t}`);e.length&&(r=`?${e.join(`&`)}`)}return(t.origin===`http://x.invalid`?t.pathname:`${t.origin}${t.pathname}`)+r}catch{return IU(e.split(`#`)[0])}},RU=(e,t=0)=>{if(t>NU)return kU;if(typeof e==`string`)return IU(e);if(Array.isArray(e))return e.slice(0,PU).map(e=>RU(e,t+1));if(e&&typeof e==`object`){let n={};for(let[r,i]of Object.entries(e))n[r]=FU(r)?kU:RU(i,t+1);return n}return e},zU=e=>{if(!e)return e;if(e.category===`console`||e.category===`ui.input`||e.category===`ui.click`||e.type===`dom`)return null;let t={...e};if(typeof t.message==`string`&&(t.message=IU(t.message)),t.data){let e=RU(t.data);typeof e.url==`string`&&(e.url=LU(e.url)),typeof e.to==`string`&&(e.to=LU(e.to)),typeof e.from==`string`&&(e.from=LU(e.from)),t.data=e}return t},BU=e=>{if(!e)return e;let t={...e};return typeof t.message==`string`&&(t.message=IU(t.message)),t.exception?.values&&(t.exception={...t.exception,values:t.exception.values.map(e=>({...e,value:typeof e.value==`string`?IU(e.value):e.value}))}),t.request&&(t.request={...t.request},typeof t.request.url==`string`&&(t.request.url=LU(t.request.url)),t.request.data!==void 0&&(t.request.data=RU(t.request.data))),t.extra&&=RU(t.extra),t.contexts&&=RU(t.contexts),t.breadcrumbs&&=t.breadcrumbs.map(zU).filter(e=>e!==null),t},VU=Bo.ROOT.path,HU=`password-manager`,UU=`app-crash`,WU=e=>e.tags?.scope===UU,GU=e=>typeof window<`u`&&window.location.pathname.startsWith(VU)||e.tags?.feature===HU?!0:!!(e.exception?.values?.flatMap(e=>e.stacktrace?.frames??[]))?.some(e=>e.filename?.includes(`password-manager`)),KU=!1,qU=()=>
741{if(KU)return;let e=R.SENTRY_DSN_PM;e&&R.ENABLE_PASSWORD_MANAGER_FEATURE&&OU()&&(o({dsn:e,environment:R.SENTRY_ENV||R.ENV,release:R.VERSION,sendDefaultPii:!1,sendClientReports:!1,tracesSampleRate:0,integrations:e=>e.filter(e=>e.name!==`BrowserSession`),beforeSend:e=>{let t=e;return WU(t)||GU(t)?BU(t):null},beforeBreadcrumb:e=>zU(e)}),KU=!0)},JU=e=>{Se(e,{tags:{scope:UU}})},YU=e=>{ee(e?{id:e}:null)},XU=()=>{let{t:e}=G(),t=Fr();return(0,I.useEffect)(()=>{JU(t)},[t]),(0,L.jsxs)(O,{minHeight:`100vh`,display:`flex`,alignItems:`center`,justifyContent:`center`,px:3,children:[(0,L.jsx)(Xn,{}),(0,L.jsxs)(T,{spacing:3,alignItems:`center`,children:[(0,L.jsx)(Fj,{}),(0,L.jsx)(A,{variant:`primary`,size:`large`,onClick:()=>window.location.reload(),children:e(`Reload page`)})]})]})},ZU=Z((0,I.lazy)(()=>j(()=>import(`./layout-Ccb0xGPR.js`),__vite__mapDeps([132,1,6,7,3,4,8,9,5,2,10,11,12,133])))),QU=Z((0,I.lazy)(()=>j(()=>import(`./release-notes-Dl1XsrZq.js`),__vite__mapDeps([134,4,1,3,5,6,7,8,2,9,10,11])))),$U=Z((0,I.lazy)(()=>j(()=>Promise.resolve().then(()=>tD).then(e=>({default:e.NotFound})),void 0))),eW=Z((0,I.lazy)(()=>j(()=>Promise.resolve().then(()=>zE).then(e=>({default:e.NoAccess})),void 0))),tW=Z((0,I.lazy)(()=>j(()=>import(`./master-layout-BabSnYJp.js`).then(e=>({default:e.Master})),__vite__mapDeps([135,1,6,7,3,4,8,2,9,5,10,11,22,12,65,66,109,110,60,24,136,25,117,69,48,137])))),nW=Z((0,I.lazy)(()=>j(()=>import(`./auth-layout-CvLSHMtX.js`).then(e=>e.t).then(e=>({default:e.Auth})),__vite__mapDeps([138,1,4,3,9,6,7,8,5,2,10,11,12,139])))),rW=Z((0,I.lazy)(()=>j(()=>import(`./sign-in-classic-page-D94oTYNF.js`).then(e=>({default:e.SignIn})),__vite__mapDeps([140,6,1,7,3,4,8,2,5,9,10,11,12,141])))),iW=Z((0,I.lazy)(()=>j(()=>import(`./sign-up-entry-page-BL_hkCPN.js`).then(e=>({default:e.SignUpEntry})),__vite__mapDeps([142,6,1,7,3,4,8,9,5,2,10,11,12,141])))),aW=Z((0,I.lazy)(()=>j(()=>import(`./sign-up-email-page-VwTbg-yl.js`).then(e=>({default:e.SignUpEmail})),__vite__mapDeps([143,1,6,7,3,4,8,2,5,9,10,11,12,137])))),oW=Z((0,I.lazy)(()=>j(()=>import(`./forgot-password-page-dliRMA7c.js`).then(e=>({default:e.ForgotPassword})),__vite__mapDeps([144,1,6,7,3,4,8,2,5,9,10,11,145,12])))),sW=Z((0,I.lazy)(()=>j(()=>import(`./tfa-confirmation-page-_EQ3FID-.js`).then(e=>({default:e.TFAConfirmation})),__vite__mapDeps([146,1,2,3,4,5,6,7,8,9,10,11,12,145])))),cW=Z((0,I.lazy)(()=>j(()=>import(`./set-new-password-page-DZcbmeib.js`).then(e=>({default:e.SetNewPassword})),__vite__mapDeps([147,1,2,3,4,5,6,7,8,9,10,11,12,137])))),lW=Z((0,I.lazy)(()=>j(()=>import(`./verify-email-page-hQWrg4n0.js`).then(e=>({default:e.VerifyEmail})),__vite__mapDeps([148,1,6,7,3,4,8,9,5,2,10,11,12])))),uW=Z((0,I.lazy)(()=>j(()=>import(`./account-locked-page-BkTFLZzB.js`).then(e=>({default:e.AccountLocked})),__vite__mapDeps([149,4,1,3,5,6,7,8,2,9,10,11,145,12])))),dW=Z((0,I.lazy)(()=>j(()=>import(`./oauth-callback-page-CIEOd_JM.js`).then(e=>({default:e.IntegrationCallback})),__vite__mapDeps([150,1,4,3,5,6,7,8,2,9,10,11])))),fW=Z((0,I.lazy)(()=>j(()=>import(`./OpenBankingCallbackPage-DcGk_kh5.js`).then(e=>({default:e.OpenBankingCallbackPage})),__vite__mapDeps([151,1,4,3,5,6,7,8,2,9,10,11])))),pW=Z((0,I.lazy)(()=>j(()=>import(`./document-upload-3xILT3Ac.js`).then(e=>({default:e.DocumentUploadPage})),__vite__mapDeps([152,1,6,7,3,4,8,9,5,2,10,11,22,12,57])))),mW=Z((0,I.lazy)(()=>j(()=>import(`./confirm-email-page-BI7bvBLh.js`).then(e=>({default:e.ConfirmEmail})),__vite__mapDeps([153,4,1,3,12,6,7,8])))),hW=Z((0,I.lazy)(()=>j(()=>import(`./link-expired-page-BmutL6wa.js`).then(e=>({default:e.LinkExpired})),__vite__mapDeps([154,1,4,3,5,6,7,8,2,9,10,11,138,12,139])))),gW=Z((0,I.lazy)(()=>j(()=>import(`./accept-invite-page-BzLSvBOc.js`).then(e=>({default:e.AcceptInvite})),__vite__mapDeps([155,1,4,3,5,6,7,8,2,9,10,11,12])))),_W=Z((0,I.lazy)(()=>j(()=>import(`./mobile-company-details-page-CsNtg8b1.js`).then(e=>({default:e.MobileCompanyDetails})),__vite__mapDeps([156,6,1,7,3,4,8,2,9,5,10,11,12,24,22,136,110,139])))),vW=Z((0,I.lazy)(()=>j(()=>import(`./continue-on-web-page-DMUHD3wL.js`).then(e=>({default:e.ContinueOnWeb})),__vite__mapDeps([157,1,4,3,5,6,7,8,2,9,10,11,12,138,139])))),yW=Z((0,I.lazy)(()=>j(()=>Promise.resolve().then(()=>Aj).then(e=>({default:e.PrivateRoute})),void 0))),bW=Z((0,I.lazy)(()=>j(()=>Promise.resolve().then(()=>Aj).then(e=>({default:e.PublicRoute})),void 0))),xW=Z((0,I.lazy)(()=>j(()=>Promise.resolve().then(()=>Aj).then(e=>({default:e.PermissionAccess})),void 0))),SW=Z((0,I.lazy)(()=>j(()=>import(`./dashboard-page-dc6ZfCox.js`).then(e=>({default:e.DashboardPage})),__vite__mapDeps([158,1,6,7,3,4,8,9,5,2,10,11,22,12,38,39,24,40,42,36,33,47,48,43])))),CW=Z((0,I.lazy)(()=>j(()=>import(`./QRLogin-ChxaxAq5.js`).then(e=>({default:e.QRLogin})),__vite__mapDeps([159,1,4,3,5,6,7,8,2,9,10,11])))),wW=Z((0,I.lazy)(()=>j(()=>import(`./money-mcp-auth-B50KG-Cq.js`).then(e=>({default:e.MoneyMCPAuth})),__vite__mapDeps([160,1,4,3,5,6,7,8,2,9,10,11,12]))));(0,I.lazy)(()=>j(()=>Promise.resolve().then(()=>WH),void 0));var TW=Z((0,I.lazy)(()=>j(()=>import(`./profile-page-oE3Npd4p.js`).then(e=>({default:e.ProfilePage})),__vite__mapDeps([161,1,6,7,3,4,8,9,5,2,10,11,12,24,22])))),EW=Z((0,I.lazy)(()=>j(()=>import(`./personal-details-Dbq9ivQJ.js`).then(e=>({default:e.PersonalDetails})),__vite__mapDeps([162,1,6,7,3,4,8,2,9,5,10,11,24,22])))),DW=Z((0,I.lazy)(()=>j(()=>
741import(`./company-details-CCktbW6J.js`).then(e=>({default:e.CompanyDetails})),__vite__mapDeps([163,1,6,7,3,4,8,2,5,9,10,11,24,22,50])))),OW=Z((0,I.lazy)(()=>j(()=>import(`./notifications-yFC5s-BG.js`).then(e=>({default:e.Notifications})),__vite__mapDeps([164,1,2,3,4,9,6,7,8,5,10,11,33])))),kW=Z((0,I.lazy)(()=>j(()=>import(`./security-CJngs5Z5.js`).then(e=>({default:e.Security})),__vite__mapDeps([165,1,2,3,4,9,6,7,8,5,10,11,12,137])))),AW=Z((0,I.lazy)(()=>j(()=>import(`./team-management-BM6SaGS5.js`).then(e=>({default:e.TeamManagement})),__vite__mapDeps([166,1,6,7,3,4,8,2,9,5,10,11,22,12,60,24,123,61,124,69,116,117])))),jW=Z((0,I.lazy)(()=>j(()=>import(`./user-details-DV08wFUP.js`).then(e=>({default:e.UserDetailsPage})),__vite__mapDeps([167,1,6,7,3,4,8,2,9,5,10,11,22,12,27,24,125,117,69,124])))),MW=Z((0,I.lazy)(()=>j(()=>import(`./members-page-DEXFiLoI.js`).then(e=>({default:e.MembersPage})),__vite__mapDeps([168,1,6,7,3,4,8,9,5,2,10,11,12,36,22,33,24,38,39,40,41,42,43])))),NW=Z((0,I.lazy)(()=>j(()=>import(`./member-details-page-C6RMiq9O.js`).then(e=>({default:e.MemberDetailsPage})),__vite__mapDeps([169,1,6,7,3,4,8,9,5,2,10,11,22,12,32,48])))),PW=Z((0,I.lazy)(()=>j(()=>import(`./ResolveMemberPage-okTgBucV.js`).then(e=>({default:e.ResolveMemberPage})),__vite__mapDeps([170,1,6,7,3,4,8,12])))),FW=Z((0,I.lazy)(()=>j(()=>import(`./integrations-page-COYUJOzt.js`).then(e=>({default:e.IntegrationsPage})),__vite__mapDeps([171,1,6,7,3,4,8,2,9,5,10,11,12,37,39,24,22,40,90,43])))),IW=Z((0,I.lazy)(()=>j(()=>import(`./integration-settings-CwO_nbq-.js`).then(e=>({default:e.IntegrationSettingsPage})),__vite__mapDeps([172,1,4,3,9,6,7,8,5,2,10,11,12,40])))),LW=Mr([{path:bo,element:(0,L.jsx)(dW,{})},{path:xo,element:(0,L.jsx)(fW,{})},{path:ts,element:(0,L.jsx)(wW,{})},...R.ENABLE_DOCUMENT_REQUESTS?[{path:To,element:(0,L.jsx)(yW,{children:(0,L.jsx)(pW,{})})}]:[],{path:`/`,element:(0,L.jsx)(ZU,{}),children:[{path:`/`,element:(0,L.jsx)(yW,{children:(0,L.jsx)(tW,{})}),children:[...pU,{path:Do,element:(0,L.jsx)(Lr,{to:Eo})},{path:Eo,children:[{index:!0,element:(0,L.jsx)(xW,{permissions:[V.ALL_SERVICES,V.ALL_MEMBERS,V.ALL_CONNECTS],children:(0,L.jsx)(fD,{children:(0,L.jsx)(SW,{})})})}]},...yU,...R.ENABLE_TRIPS_FEATURE?TU:[],...LP,{path:Io.ROOT.path,element:(0,L.jsxs)(fD,{children:[(0,L.jsx)(kr,{}),(0,L.jsx)(CP,{event:kw.EmployeePage})]}),children:[{index:!0,element:(0,L.jsx)(xW,{permissions:[V.ALL_MEMBERS],children:(0,L.jsx)(MW,{})})},{path:Io.DETAILS.path,element:(0,L.jsx)(xW,{permissions:[V.ALL_MEMBERS],children:(0,L.jsx)(NW,{})})},{path:Io.ARCHIVE.path,element:(0,L.jsx)(xW,{permissions:[V.ALL_MEMBERS],children:(0,L.jsx)(SP,{})})},{path:Io.RESOLVE_BY_USER_ID.path,element:(0,L.jsx)(xW,{permissions:[V.ALL_MEMBERS],children:(0,L.jsx)(PW,{})})}]},{path:ps,element:(0,L.jsx)(xW,{permissions:[V.ALL_CONNECTS],children:(0,L.jsxs)(fD,{children:[(0,L.jsx)(FW,{}),(0,L.jsx)(CP,{event:kw.IntegrationsPage})]})})},{path:ms,element:(0,L.jsx)(xW,{permissions:[V.ALL_CONNECTS],children:(0,L.jsx)(fD,{children:(0,L.jsx)(IW,{})})})},...uU,...dU,...HP,...R.ENABLE_PASSWORD_MANAGER_FEATURE?Vj:[],{path:Lo.ROOT.path,element:(0,L.jsx)(TW,{}),children:[{index:!0,element:(0,L.jsx)(Lr,{to:Lo.PERSONAL.path,replace:!0})},{path:Lo.PERSONAL.path,element:(0,L.jsx)(EW,{})},{path:Lo.USER_DETAILS.path,element:(0,L.jsx)(xW,{permissions:[V.ALL_TEAM],children:(0,L.jsx)(jW,{})})},{path:Lo.TEAM.path,element:(0,L.jsx)(xW,{permissions:[V.ALL_TEAM],children:(0,L.jsx)(AW,{})})},{path:Lo.COMPANY.path,element:(0,L.jsx)(DW,{})},{path:Lo.NOTIFICATIONS.path,element:(0,L.jsx)(OW,{})},{path:Lo.SECURITY.path,element:(0,L.jsx)(kW,{})}]},{path:`/`,element:(0,L.jsx)(EU,{})},{path:hs,element:(0,L.jsx)(QU,{})},{path:`*`,element:(0,L.jsx)($U,{})}]},{path:co,element:(0,L.jsx)(bW,{fallback:(0,L.jsx)(nW,{children:(0,L.jsx)(Pe,{})}),children:(0,L.jsx)(nW,{})}),children:[{index:!0,element:(0,L.jsx)(Lr,{to:lo,replace:!0})},{path:lo,element:(0,L.jsx)(cD,{children:(0,L.jsx)(rW,{})})},{path:po,element:(0,L.jsx)(Lr,{to:lo,replace:!0})},{path:uo,element:(0,L.jsx)(cD,{children:(0,L.jsx)(iW,{})})},{path:fo,element:(0,L.jsx)(cD,{children:(0,L.jsx)(aW,{})})},{path:ho,element:(0,L.jsx)(oW,{})},{path:go,element:(0,L.jsx)(sW,{})},{path:_o,element:(0,L.jsx)(cW,{})},{path:mo,element:(0,L.jsx)(cD,{children:(0,L.jsx)(lW,{})})},{path:vo,element:(0,L.jsx)(cD,{children:(0,L.jsx)(uW,{})})}]},...bU,...BP,{path:ko,element:(0,L.jsx)(bW,{children:(0,L.jsx)(CW,{})})},{path:yo,element:(0,L.jsx)(bW,{children:(0,L.jsx)(mW,{})})},{path:Co,element:(0,L.jsx)(bW,{children:(0,L.jsx)(gW,{})})},{path:wo,element:(0,L.jsx)(bW,{children:(0,L.jsx)(hW,{})})},{path:so,element:(0,L.jsx)(xW,{permissions:[V.RESTRICTED_ACCESS],fallback:(0,L.jsx)(Lr,{to:Eo,replace:!0}),children:(0,L.jsx)(eW,{})})},{path:So.COMPANY_DETAILS,element:(0,L.jsx)(yW,{children:(0,L.jsx)(_W,{})})},{path:So.CONTINUE_ON_WEB,element:(0,L.jsx)(yW,{children:(0,L.jsx)(vW,{})})},{path:`*`,element:(0,L.jsx)($U,{})}]},{path:`*`,element:(0,L.jsx)($U,{})}].map(e=>({...e,errorElement:(0,L.jsx)(XU,{})})),{basename:R?.BASE_PATH}),RW=class{router=LW;navigate=(e,t)=>
741{let{params:n,state:r,replace:i=!1}=t||{},a=be(e,n);this.router.navigate(a,{state:r,replace:i})}},zW=new(e(Ei())).default(`${_l}${vl}_`),BW=class{setItem(e,t){let n=encodeURIComponent(`${_l}${e}`);localStorage.setItem(`${n}`,`${zW.encrypt(t)}`)}getItem(e){let t=encodeURIComponent(`${_l}${e}`),n=localStorage.getItem(`${t}`);if(!n)return null;try{return zW.decrypt(n)}catch{return null}}removeItem(e){let t=encodeURIComponent(`${_l}${e}`);localStorage.removeItem(`${t}`)}},VW=class{localStorageStore;currentWindow=null;intervalID=null;constructor(e){this.localStorageStore=e}openIntegrationWindow(e,t,n,r=!1){this.currentWindow?.close(),this.intervalID&&window.clearInterval(this.intervalID),this.localStorageStore.setItem(ec.SERVICE_KEY,t),n&&this.localStorageStore.setItem(ec.REDIRECT_FROM,n),this.currentWindow=window.open(e,r?`_blank`:`_self`)}},$=new class{requester;authStore;localStorageStore;routeStore;alertsStore;windowStore;trackingStore;constructor(){this.localStorageStore=new BW,this.requester=new Dw(this),this.routeStore=new RW,this.alertsStore=new Ow,this.authStore=new rw,this.trackingStore=new zw,this.windowStore=new VW(this.localStorageStore)}},HW=(0,I.createContext)({rootStore:$}),UW=(0,I.createContext)({scrollContainer:null}),WW=async()=>{let{data:e}=await $.requester.instance.get(`/me`);return e},GW=async e=>{let{data:t}=await $.requester.instance.patch(`/me`,e);return t},KW=async()=>{let{data:e}=await $.requester.instance.get(`/me/tfa`);return e},qW=async e=>{let{data:t}=await $.requester.instance.post(`/me/tfa/set-enabled`,e);return t},JW=async()=>{await $.requester.instance.patch(`/me/role/admin-money`).then(({data:e})=>e)},YW=async e=>{await $.requester.instance.post(`/v2/team/currency`,e).then(({data:e})=>e)},XW=async e=>{await $.requester.instance.patch(`/me`,e)},ZW=function(e){return e[e.CompanyDetails=0]=`CompanyDetails`,e[e.SelectStartFlow=1]=`SelectStartFlow`,e[e.SetupPassword=2]=`SetupPassword`,e[e.SetupTFA=3]=`SetupTFA`,e[e.Finished=99]=`Finished`,e}({}),QW={all:[`me`],info:()=>[...QW.all,`info`],tfaKeys:()=>[...QW.all,`tfa-keys`]},$W=QW,eG=()=>N({queryKey:$W.info(),queryFn:WW}),tG=()=>IC.getQueryData($W.info()),nG=e=>{let{authStore:{webSession:t}}=Ou();return F({...eG(),...e,enabled:t.isValid})},rG=()=>{let{data:e}=nG();return Uf?Wf.length?!!e?.companyID&&Wf.includes(e.companyID):!0:!1},iG=()=>{let e=P();return M({mutationFn:GW,onSuccess(){e.invalidateQueries({queryKey:QW.info()})}})},aG=()=>{let e=P();return M({mutationFn:e=>{if(!e)throw Error(`No avatar file`);return $.requester.uploadService.uploadImage(e)},onSuccess(){e.invalidateQueries({queryKey:QW.info()})},onError(){b({message:z.t(`Failed to upload profile photo`),variant:`attention`})}})},oG=()=>N({queryKey:$W.tfaKeys(),queryFn:KW}),sG=e=>F({...oG(),...e}),cG=()=>{let e=P();
741return M({mutationFn:qW,onSuccess(t,n){n.enabled||e.invalidateQueries({queryKey:QW.tfaKeys()}),e.invalidateQueries({queryKey:QW.info()})}})},lG=()=>{let e=P();return M({mutationFn:JW,onSuccess:async()=>{await e.invalidateQueries({queryKey:QW.all})},onError:()=>{b({message:z.t(`Something went wrong. Please try again`),variant:`attention`})}})},uG=()=>{let e=P();return M({mutationFn:YW,onSuccess:async()=>{await e.invalidateQueries({queryKey:QW.info()})}})},dG=()=>{let e=P();return M({mutationFn:XW,onSuccess(){e.invalidateQueries({queryKey:QW.info()})}})},fG=[ZW.CompanyDetails,ZW.SelectStartFlow,ZW.Finished],pG=[ZW.CompanyDetails,ZW.SelectStartFlow,ZW.Finished],mG=e=>{if(e.isTeamOwner)return e.directLogin?fG:pG;let t=[];return e.isPasswordSet||t.push(ZW.SetupPassword),e.isTfaEnabled||t.push(ZW.SetupTFA),t.push(ZW.Finished),t},hG=new Set([ZW.CompanyDetails,ZW.SetupPassword,ZW.SetupTFA]),gG=e=>e==null?!1:hG.has(e),_G=()=>{let{data:e}=nG();if(!e)return{nextStep:null,currentStep:null,isAccountSetupFinished:!0,isLastStep:!1};let t=mG(e),n=e.setupStep??t[0],r=t.includes(n)?n:t[0],i=t.indexOf(r),a=i>=t.length?null:t[i+1],o=i===t.length-1-1;return{isAccountSetupFinished:r===ZW.Finished,currentStep:r,nextStep:a,isLastStep:o}},vG=()=>{let{data:e}=nG();return{isAdmin:e?.role===Xs.ADMIN||e?.role===Xs.ADMIN_SAAS}},yG=e(fe()),bG=e(ge()),xG=e(re());_e(),B.extend(xG.default),B.extend(yG.default),B.extend(bG.default);var SG=`en-gb`,CG=({children:e})=>(0,L.jsx)(Er,{dateAdapter:Sr,adapterLocale:SG,children:e});console.info(`Version: ${R.VERSION}, Commit: ${R.HASH}`),(0,xa.default)(Kr);var wG=ue({key:_l,prepend:!0}),TG={api_host:R.PUBLIC_POSTHOG_HOST},EG=({children:e})=>(Q_(),(0,L.jsx)(L.Fragment,{children:e})),DG=({children:e})=>(0,L.jsx)(tr,{theme:Vt,children:(0,L.jsx)(ce,{value:wG,children:(0,L.jsxs)(fi,{client:IC,children:[(0,L.jsx)(vi,{initialIsOpen:!1,client:IC}),(0,L.jsx)(CG,{children:(0,L.jsxs)(pe,{children:[(0,L.jsx)(Kt,{}),(0,L.jsx)(Ae,{apiKey:R.PUBLIC_POSTHOG_KEY,options:TG,children:(0,L.jsx)(EG,{children:e})})]})})]})})});R.IS_PROD&&Ee.init(R.CLARITY_PROJECT_ID),gl();var OG=()=>{let{data:e}=nG();return Nw(e?.id,e?.email,e?.companyID),(0,I.useEffect)(()=>YU(e?.id??null),[e?.id]),null};qU(),Ni.createRoot(document.getElementById(`app`)).render((0,L.jsx)(()=>{let{routeStore:{router:e},authStore:t}=Ou();return ae(()=>{LC()}),ae(()=>{t.webSession.isSilentRefreshAvailable&&t.webSession.startSession()}),(0,L.jsx)(Ij,{children:(0,L.jsxs)(DG,{children:[(0,L.jsx)(OG,{}),(0,L.jsx)(Ir,{router:e,fallbackElement:(0,L.jsx)(Pe,{})})]})})},{}));export{HR as $,nx as $a,im as $c,rc as $d,Oo as $f,DC as $i,Kf as $l,$O as $n,ry as $o,VE as $r,Gg as $s,ON as $t,$l as $u,Vz as A,Jx as Aa,dh as Ac,Gc as Ad,ns as Af,pT as Ai,Ap as Al,PA as An,sb as Ao,ja as Ap,QD as Ar,q_ as As,gP as At,ed as Au,Cz as B,Fx as Ba,Lm as Bc,bc as Bd,us as Bf,iT as Bi,wp as Bl,eA as Bn,Iy as Bo,ia as Bp,hD as Br,T_ as Bs,qN as Bt,Lu as Bu,eB as C,fS as Ca,Lh as Cc,Qc as Cd,ss as Cf,FT as Ci,Sp as Cl,FM as Cn,$y as Co,Ga as Cp,rO as Cr,ov as Cs,AP as Ct,Vd as Cu,Xz as D,Zx as Da,hh as Dc,qc as Dd,Ho as Df,CT as Di,Ip as Dl,xM as Dn,tb as Do,Fa as Dp,KD as Dr,tv as Ds,CP as Dt,kd as Du,Qz as E,Qx as Ea,_h as Ec,Xc as Ed,is as Ef,ET as Ei,gp as El,SM as En,cb as Eo,Ia as Ep,iO as Er,nv as Es,kP as Et,Ad as Eu,Dz as F,Ix as Fa,oh as Fc,kc as Fd,Xo as Ff,cT as Fi,mp as Fl,fA as Fn,Xy as Fo,_a as Fp,wD as Fr,j_ as Fs,uP as Ft,Wu as Fu,hz as G,yx as Ga,wm as Gc,fc as Gd,zo as Gf,jw as Gi,ip as Gl,Yk as Gn,sy as Go,ta as Gp,ZE as Gr,v_ as Gs,HN as Gt,Mu as Gu,gz as H,Px as Ha,Cm as Hc,gc as Hd,js as Hf,Vw as Hi,cp as Hl,Kk as Hn,Py as Ho,oa as Hp,aD as Hr,C_ as Hs,GN as Ht,Iu as Hu,vz as I,Lx as Ia,lh as Ic,wc as Id,Zo as If,lT as Ii,hp as Il,pA as In,Zy as Io,ma as Ip,TD as Ir,k_ as Is,cP as It,Uu as Iu,sz as J,_x as Ja,km as Jc,mc as Jd,Es as Jf,X as Ji,Qf as Jl,cA as Jn,dy as Jo,R as Jp,JE as Jr,h_ as Js,FN as Jt,Ou as Ju,mz as K,ux as Ka,Em as Kc,dc as Kd,Is as Kf,Aw as Ki,rp as Kl,lA as Kn,oy as Ko,$i as Kp,XE as Kr,__ as Ks,zN as Kt,Au as Ku,yz as L,Ox as La,uh as Lc,Sc as Ld,Qo as Lf,rT as Li,Pp as Ll,gA as Ln,Gy as
741Lo,ha as Lp,CD as Lr,O_ as Ls,oP as Lt,Bu as Lu,Rz as M,qx as Ma,ph as Mc,Vc as Md,Yo as Mf,aT as Mi,Dp as Ml,_A as Mn,nb as Mo,Ea as Mp,$D as Mr,V_ as Ms,mP as Mt,nd as Mu,Pz as N,Wx as Na,ch as Nc,Rc as Nd,Ko as Nf,oT as Ni,Fp as Nl,mA as Nn,db as No,Ta as Np,DD as Nr,F_ as Ns,fP as Nt,rd as Nu,iB as O,$x as Oa,gh as Oc,Uc as Od,Ms as Of,bT as Oi,Np as Ol,eM as On,rb as Oo,Pa as Op,JD as Or,ev as Os,xP as Ot,jd as Ou,Az as P,Ux as Pa,mh as Pc,Mc as Pd,Jo as Pf,sT as Pi,bp as Pl,hA as Pn,eb as Po,fa as Pp,kD as Pr,P_ as Ps,dP as Pt,$u as Pu,GR as Q,tx as Qa,nm as Qc,ic as Qd,ys as Qf,jC as Qi,Zf as Ql,qk as Qn,ty as Qo,WE as Qr,Zg as Qs,DN as Qt,cu as Qu,xz as R,Ax as Ra,Jm as Rc,Cc as Rd,Os as Rf,$w as Ri,vp as Rl,uA as Rn,Ky as Ro,pa as Rp,ED as Rr,D_ as Rs,rP as Rt,zu as Ru,nB as S,mS as Sa,Vh as Sc,nl as Sd,So as Sf,IT as Si,jp as Sl,zM as Sn,ub as So,qa as Sp,XD as Sr,pv as Ss,OP as St,Nd as Su,aB as T,Gx as Ta,Fh as Tc,el as Td,ls as Tf,AT as Ti,Op as Tl,AM as Tn,ab as To,La as Tp,nO as Tr,rv as Ts,MP as Tt,Md as Tu,_z as U,Mx as Ua,Om as Uc,_c as Ud,Wo as Uf,Pw as Ui,op as Ul,Jk as Un,vy as Uo,aa as Up,eD as Ur,S_ as Us,WN as Ut,Pu as Uu,bz as V,kx as Va,Tm as Vc,vc as Vd,ds as Vf,Ww as Vi,sp as Vl,aA as Vn,J as Vo,ra as Vp,lD as Vr,w_ as Vs,KN as Vt,Fu as Vu,Sz as W,jx as Wa,Am as Wc,hc as Wd,$o as Wf,kw as Wi,ap as Wl,Xk as Wn,py as Wo,na as Wp,$E as Wr,x_ as Ws,UN as Wt,ju as Wu,lz as X,fx as Xa,Jp as Xc,cc as Xd,gs as Xf,RC as Xi,Xf as Xl,Qk as Xn,ay as Xo,KE as Xr,p_ as Xs,AN as Xt,Eu as Xu,cz as Y,hx as Ya,Sm as Yc,H as Yd,_s as Yf,LC as Yi,$f as Yl,sA as Yn,uy as Yo,Pi as Yp,qE as Yr,m_ as Ys,IN as Yt,Du as Yu,oz as Z,gx as Za,dm as Zc,oc as Zd,vs as Zf,IC as Zi,Yf as Zl,Zk as Zn,iy as Zo,GE as Zr,Qg as Zs,kN as Zt,Zl as Zu,cB as _,WS as _a,Uh as _c,sl as _d,fs as _f,GT as _i,Wp as _l,YM as _n,yb as _o,$a as _p,IO as _r,Sv as _s,mL as _t,Rd as _u,$W as a,KS as aa,Mg as ac,su as ad,qs as af,gE as ai,om as al,hN as an,$b as ao,uo as ap,fk as ar,Fv as as,WR as at,df as au,$z as b,LS as ba,Ph as bc,il as bd,lo as bf,BT as bi,up as bl,UM as bn,hb as bo,Za as bp,lO as br,dv as bs,IF as bt,Fd as bu,rG as c,JS as ca,jg as cc,Tl as cd,Us as cf,pE as ci,rm as cl,lN as cn,Gb as co,Cs as cp,jO as cr,wv as cs,qR as ct,cf as cu,uG as d,yC as da,pg as dc,kl as dd,rs as df,lE as di,Xp as dl,aN as dn,zb as do,mo as dp,UO as dr,Bv as ds,cR as dt,qd as du,NC as ea,qg as ec,tu as ed,ec as ef,NE as ei,em as el,bN as en,rx as eo,Lo as ep,gk as er,ny as es,KR as et,Gf as eu,ZW as f,oC as fa,Bh as fc,Ol as fd,ps as ff,sE as fi,$p as fl,tN as fn,Zb as fo,oo as fp,WO as fr,Hv as fs,$L as ft,Gd as fu,lB as g,lC as ga,Mh as gc,ml as gd,Ds as gf,qT as gi,zp as gl,ZM as gn,_b as go,no as gp,zO as gr,kv as gs,wL as gt,Ld as gu,$ as h,_C as ha,Kh as hc,pl as hd,ho as hf,YT as hi,Hp as hl,QM as hn,Yb as ho,ro as hp,KO as hr,Lv as hs,TL as ht,Ed as hu,eG as i,wC as ia,Hg as ic,ou as id,V as if,xE as ii,lm as il,vN as in,Jb as io,fo as ip,dk as ir,jv as is,VR as it,lf as iu,Bz as j,Kx as ja,fh as jc,Kc as jd,qo as jf,fT as ji,Mp as jl,wA as jn,lb as jo,Ma as jp,ZD as jr,J_ as js,hP as jt,Qu as ju,rB as k,nS as ka,rh as kc,Wc as kd,Ps as kf,hT as ki,Cp as kl,Ij as kn,ib as ko,Na as kp,eO as kr,$_ as ks,_P as kt,td as ku,dG as l,eC as la,Tg as lc,Dl as ld,Fo as lf,fE as li,am as ll,cN as ln,Ub as lo,bs as lp,FO as lr,Gv as ls,YR as lt,ef as lu,UW as m,iC as ma,jh as mc,G as md,Ro as mf,eE as mi,Gp as ml,$M as mn,Qb as mo,to as mp,LO as mr,Iv as ms,DL as mt,Dd as mu,_G as n,PC as na,Lg as nc,nu as nd,Qs as nf,OE as ni,mm as nl,gN as nn,ex as no,Ao as np,yk as nr,Tv as ns,QR as nt,ff as nu,aG as o,hC as oa,Eg as oc,Il as od,Js as of,hE as oi,cm as ol,dN as on,Xb as oo,Ts as op,JO as or,Nv as os,ZR as ot,of as ou,WW as p,cC as pa,zh as pc,K as pd,Eo as pf,rE as pi,qp as pl,eN as pn,qb as po,ao as pp,GO as pr,Uv as ps,OL as pt,q as pu,fz as q,mx as qa,Dm as qc,pc as qd,Bo as qf,Mw as qi,ep as ql,oA as qn,cy as qo,z as qp,YE as qr,g_ as qs,RN as qt,ku as qu,gG as r,AC as ra,Ug as rc,ru as rd,Xs as rf,DE as ri,um as rl,_N as rn,Kb as ro,Fs as rp,lk as rr,yv as rs,JR as rt,uf as ru,nG as s,gC as sa,mg as sc,Fl as sd,Ws as
741sf,mE as si,fm as sl,uN as sn,Lb as so,Ss as sp,qO as sr,Dv as ss,XR as st,sf as su,vG as t,kC as ta,Xg as tc,au as td,Zs as tf,jE as ti,hm as tl,yN as tn,Fb as to,Po as tp,pk as tr,_v as ts,UR as tt,xf as tu,iG as u,nC as ua,Og as uc,El as ud,co as uf,uE as ui,sm as ul,sN as un,Vb as uo,As as up,RO as ur,Vv as us,TR as ut,Yd as uu,Yz as v,VS as va,Rh as vc,ol as vd,ms as vf,WT as vi,Bp as vl,KM as vn,gb as vo,Qa as vp,mO as vr,zv as vs,cL as vt,Id as vu,Zz as w,pS as wa,Ih as wc,$c as wd,cs as wf,MT as wi,Tp as wl,PM as wn,ob as wo,Ka as wp,tO as wr,av as ws,jP as wt,Bd as wu,oB as x,RS as xa,Gh as xc,rl as xd,Io as xf,LT as xi,fp as xl,HM as xn,mb as xo,Ja as xp,aO as xr,fv as xs,PF as xt,Od as xu,tB as y,zS as ya,Nh as yc,al as yd,wo as yf,VT as yi,Up as yl,WM as yn,vb as yo,Xa as yp,uO as yr,Rv as ys,kI as yt,zd as yu,wz as z,Nx as za,Hm as zc,yc as zd,Go as zf,eT as zi,yp as zl,Hk as zn,Ly as zo,sa as zp,OD as zr,E_ as zs,JN as zt,Ru as zu};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.