@zeniai/web-app-ui 5.1.54-qa → 5.1.55-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/AddressRoutes-DvgS57PS.js +1 -0
- package/dist/assets/AddressScreen-kHZ3pkiE.js +9 -0
- package/dist/assets/{AiCfoScreen-CuCVJ-9z.js → AiCfoScreen-CnZOpF7D.js} +1 -1
- package/dist/assets/BillPayApprovalRoutes-CIS2PKjh.js +1 -0
- package/dist/assets/{BillPayRoutes-C-57jjzC.js → BillPayRoutes-Cp4tN_kn.js} +1 -1
- package/dist/assets/{BusinessVerificationPageScreen-CoxJBcce.js → BusinessVerificationPageScreen-Ds_dEqcf.js} +1 -1
- package/dist/assets/{CardsAiCfoScreen-BXut6M7h.js → CardsAiCfoScreen-DkmqTSNf.js} +1 -1
- package/dist/assets/{ChargeCardRoutes-DAakvdza.js → ChargeCardRoutes-CqBU7ZCW.js} +1 -1
- package/dist/assets/CompanyPassportScreen-DBSTWMtn.js +1 -0
- package/dist/assets/{ConnectionAuthScreen-BOHdbzkN.js → ConnectionAuthScreen-DzKO3rid.js} +1 -1
- package/dist/assets/CustomerOnboardingAuthScreen-ucKYqEJq.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-Dh6ZowLh.js → CustomerOnboardingRoutes-CBqysmDl.js} +3 -3
- package/dist/assets/{DashboardRoutes-Cox4nEtE.js → DashboardRoutes-C0rT4cbB.js} +1 -1
- package/dist/assets/{DefaultTenantHome-DsGlDo8q.js → DefaultTenantHome-BPqd9f9F.js} +1 -1
- package/dist/assets/{DomesticWireDetailScreen-Dwlu904z.js → DomesticWireDetailScreen-BqVZ4JA4.js} +1 -1
- package/dist/assets/DrawerScreen-CuqanTdv.js +1 -0
- package/dist/assets/EntityDetailRoutes-BCC1kZvg.js +1 -0
- package/dist/assets/{ExpenseAutomationRoutes-CKsYpo_A.js → ExpenseAutomationRoutes-BvUJJ11E.js} +1 -1
- package/dist/assets/FeaturePreviewScreen-DruJFyVL.js +1 -0
- package/dist/assets/{HubSpotOAuthCallbackScreen-074s_I3B.js → HubSpotOAuthCallbackScreen-JY_hR32w.js} +1 -1
- package/dist/assets/{MagicLinkRoutes-Cu1l5Hae.js → MagicLinkRoutes-C4tggAcT.js} +6 -6
- package/dist/assets/MagicLinkSignInScreen-DSCcYkfy.js +12 -0
- package/dist/assets/{MobileAppDrawer-BPYh3fz7.js → MobileAppDrawer-DSwbMXYq.js} +1 -1
- package/dist/assets/NotFoundScreen-DaDxz3Zq.js +1 -0
- package/dist/assets/{NotificationRoutes-CM26Uc2-.js → NotificationRoutes-DlUwzF5Z.js} +1 -1
- package/dist/assets/{OAuthConsentScreen-OutOQhzE.js → OAuthConsentScreen-BQwxsDot.js} +1 -1
- package/dist/assets/{PandLWithForecastRoutes-B0qogd0A.js → PandLWithForecastRoutes-D3okgigP.js} +1 -1
- package/dist/assets/{PeopleRoutes-CUTyVwx1.js → PeopleRoutes-De0hcTG9.js} +2 -2
- package/dist/assets/{PerformanceRoutes-12eFPdp_.js → PerformanceRoutes-C_ycbWFc.js} +1 -1
- package/dist/assets/{Preview-DIHwHgF2.js → Preview-JiizEL_C.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-D87ZntTL.js → QBOConnectionScreen-BOOiYmna.js} +1 -1
- package/dist/assets/ReferralListScreen-Cv0fhFUv.js +5 -0
- package/dist/assets/ReimbursementApprovalRoutes-hf0qddAB.js +1 -0
- package/dist/assets/ReimbursementApprovalRuleDetailScreen-BTAascVp.js +1 -0
- package/dist/assets/{ReimbursementRoutes-DSyBtaLh.js → ReimbursementRoutes-7HSI61Wk.js} +5 -5
- package/dist/assets/{ReportsRoutes-CrvdJeby.js → ReportsRoutes-BB28RWU5.js} +1 -1
- package/dist/assets/{RewardsRoutes-DYWFgTvw.js → RewardsRoutes-DVcld8aj.js} +1 -1
- package/dist/assets/ScreenRoutes-CFaDbJ8O.js +2 -0
- package/dist/assets/{SettingsRoutes-D-CGv9n3.js → SettingsRoutes-D4--hBRA.js} +1 -1
- package/dist/assets/{SetupPagesScreen-Bfb-yG5Q.js → SetupPagesScreen-Cl6654uo.js} +1 -1
- package/dist/assets/SignInScreen-DovpkvtQ.js +1 -0
- package/dist/assets/SignOutScreen-BwLbw69y.js +9 -0
- package/dist/assets/{TaskListScreen-SFzbbBq2.js → TaskListScreen-Cc1704_o.js} +2 -2
- package/dist/assets/{TaskRoutes-CgfIdOfE.js → TaskRoutes-COfhZO9a.js} +1 -1
- package/dist/assets/{TransactionDetailRoutes-BX1iNIyW.js → TransactionDetailRoutes-BLjycMRi.js} +1 -1
- package/dist/assets/{TransactionDetailScreen-bJ4okRq5.js → TransactionDetailScreen-DuwJpwyK.js} +1 -1
- package/dist/assets/{TransactionListRoutes-C7_m6Yqx.js → TransactionListRoutes-B6GnstS7.js} +1 -1
- package/dist/assets/{TreasuryRoutes-CueVe1jr.js → TreasuryRoutes-CHZyInsw.js} +6 -6
- package/dist/assets/{VendorsRoutes-DrErfdsR.js → VendorsRoutes-DlVyqp0b.js} +1 -1
- package/dist/assets/WiseConfirmationScreen-CeC5ER-6.js +12 -0
- package/dist/assets/{ZeniAccountRoutes-_K25ghKx.js → ZeniAccountRoutes-DggTbH7A.js} +9 -9
- package/dist/assets/ZeniAccountStatementScreen-CU1luGN8.js +9 -0
- package/dist/assets/{accountMappingHelper-BSLlTYQH.js → accountMappingHelper-BfrLGhoG.js} +1 -1
- package/dist/assets/{analytics-BHHyMpuV.js → analytics-CQmVOD4d.js} +1 -1
- package/dist/assets/{analyticsHelper-BsjRdUZX.js → analyticsHelper-BcD2hj7Q.js} +1 -1
- package/dist/assets/{core-CLKYLs-8.js → core-CbpoBsNm.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-Bm32N7cj.js → decodeURIComponentSafe-9Mzf3G8U.js} +1 -1
- package/dist/assets/{dnd-BgEYAbRi.js → dnd-CX5suNP6.js} +1 -1
- package/dist/assets/{empty-CwSgGrxu.js → empty-BijKctOw.js} +1 -1
- package/dist/assets/{empty-DdtYEopm.js → empty-DhAifQ6-.js} +1 -1
- package/dist/assets/{emptyVideoElement-D6kbFw8A.js → emptyVideoElement-D-mIIbkx.js} +1 -1
- package/dist/assets/epic-D_RLnD_Y.js +2 -0
- package/dist/assets/{getLocaleForTenant-C_VQis3o.js → getLocaleForTenant-DvFF548D.js} +1 -1
- package/dist/assets/{index-DR5HeC7u.js → index-B781xFYL.js} +2 -2
- package/dist/assets/{index-UrW8im9e.js → index-Bg6fgf4p.js} +1 -1
- package/dist/assets/{index-Dr5dodMd.js → index-CR_Xz42r.js} +1 -1
- package/dist/assets/{index-CTH1zZXf.js → index-CTRa-Eva.js} +1 -1
- package/dist/assets/{index-D_hiFYsE.js → index-CoMuhThK.js} +11456 -11456
- package/dist/assets/{index-CtRgwYlG.js → index-D-GsKzyX.js} +1 -1
- package/dist/assets/{index-DxSdRLh_.js → index-Mdt1gUpR.js} +1 -1
- package/dist/assets/{index-BzKXgra3.js → index-cXBO33fb.js} +1 -1
- package/dist/assets/{lexical-DN4b_Twn.js → lexical-BS7d_1CV.js} +1 -1
- package/dist/assets/{liveblocks-B6jAIe9x.js → liveblocks-BLlSTcoD.js} +1 -1
- package/dist/assets/{lottie-C38Bn-X6.js → lottie-BY8e0Ufw.js} +1 -1
- package/dist/assets/{mui-AZmtqUsi.js → mui-DcNGd9L2.js} +1 -1
- package/dist/assets/{pathToGoBack-ogdURlZM.js → pathToGoBack-C2QnAeVh.js} +1 -1
- package/dist/assets/{pdf-BzNDzZ8_.js → pdf-BslZhgI8.js} +4 -4
- package/dist/assets/{pdf-lib-0dW_LSbG.js → pdf-lib-BxiXr152.js} +1 -1
- package/dist/assets/{plaid-2Q72y6JT.js → plaid-B62punae.js} +1 -1
- package/dist/assets/{pusher-DsUo-9K1.js → pusher-yI34WBaU.js} +1 -1
- package/dist/assets/{react-DsxTC2P5.js → react-BhNVTcBK.js} +1 -1
- package/dist/assets/{react-C_zFJEm7.js → react-Bxt57-xI.js} +1 -1
- package/dist/assets/{react-DoYlyteP.js → react-CcJOgdcP.js} +1 -1
- package/dist/assets/{react-Ckos0IeG.js → react-D4d29E8H.js} +1 -1
- package/dist/assets/{react-BvYGWaT4.js → react-DP_wuGKo.js} +1 -1
- package/dist/assets/{react-BpYPYN78.js → react-bALoVfnT.js} +1 -1
- package/dist/assets/{recharts-CyaYjFwn.js → recharts-C0aThBg3.js} +1 -1
- package/dist/assets/{routePaths-XSngD1ow.js → routePaths-BqMV9loV.js} +1 -1
- package/dist/assets/{sentry-95bdnR3R.js → sentry-D_xp3E3Q.js} +1 -1
- package/dist/assets/{url-Br2V-Pa5.js → url-Cn_1-HsX.js} +1 -1
- package/dist/assets/{url-C5803Pxi.js → url-DZdoYQOC.js} +1 -1
- package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-CmgL0oiB.js → useAiCfoDashboardSuggestedQuestionsChips-Bw1l6HHU.js} +1 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-Dkub9Q1g.js +1 -0
- package/dist/assets/{useCashManagementBanner-Dy5XCSd3.js → useCashManagementBanner-zmolS1ux.js} +1 -1
- package/dist/assets/{useDeviceId-B5LKCqFY.js → useDeviceId-BX67JldO.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-D1F5GLCG.js → useInitialThreadRequest-DKCJ4fRp.js} +1 -1
- package/dist/assets/{utils-CDpOkGne.js → utils-BQO84dIV.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-kr0tYyxP.js → withTransactionSidePanel-DzEVaF52.js} +1 -1
- package/dist/assets/{zeni-epic-state-CjQblqOQ.js → zeni-epic-state-CkeDRiud.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/AddressRoutes-B9BoI8Fv.js +0 -1
- package/dist/assets/AddressScreen-BRdhnUB3.js +0 -9
- package/dist/assets/BillPayApprovalRoutes-BrRYqqLJ.js +0 -1
- package/dist/assets/CompanyPassportScreen-DUlm9sdh.js +0 -1
- package/dist/assets/CustomerOnboardingAuthScreen-BQyQByde.js +0 -1
- package/dist/assets/DrawerScreen-KqrF4Sq7.js +0 -1
- package/dist/assets/EntityDetailRoutes-COXR1SAJ.js +0 -1
- package/dist/assets/FeaturePreviewScreen-CNGfajWs.js +0 -1
- package/dist/assets/MagicLinkSignInScreen-iqOI3pqv.js +0 -12
- package/dist/assets/NotFoundScreen-ChEBjJeL.js +0 -1
- package/dist/assets/ReferralListScreen-BsBo666O.js +0 -5
- package/dist/assets/ReimbursementApprovalRoutes-ClbZ-O2b.js +0 -1
- package/dist/assets/ReimbursementApprovalRuleDetailScreen-D_Tk1V_u.js +0 -1
- package/dist/assets/ScreenRoutes-BE5zmBx7.js +0 -2
- package/dist/assets/SignInScreen-DKI-p16g.js +0 -1
- package/dist/assets/SignOutScreen-C2_s3moc.js +0 -9
- package/dist/assets/WiseConfirmationScreen-DrQXGVBy.js +0 -12
- package/dist/assets/ZeniAccountStatementScreen-Be29Xc0Q.js +0 -9
- package/dist/assets/epic-DZb8kqBH.js +0 -2
- package/dist/assets/useAskAiCfoHostNavButtonProps-FETbJUjN.js +0 -1
package/dist/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en"><head><meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate"><meta http-equiv="expires" content="0"><meta http-equiv="pragma" content="no-cache"><meta charset="UTF-8"><link rel="icon" type="image/svg+xml" href="/assets/favicon-D56XvgAH.ico"><meta name="ROBOTS" content="NOINDEX, NOFOLLOW"><meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1"><meta name="theme-color" content="#000000"><meta name="description" content="Zeni - Modern Finance Team For Startups"><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&family=Manrope:wght@200..800&display=swap"><link rel="apple-touch-icon" href="/assets/logo192-CqcTe-t4.png"><link rel="manifest" href="/assets/manifest-icT4lOF5.json"><title>Zeni - Modern Finance Team For Startups</title><script src="/theme-detect.js"></script><style>:root{--logo-color-from:#D4DCDD;--logo-color-to:#E9F0F0;--bar-color-from:#E9F0F0;--bar-color-to:#D4DCDD;--sidebar-bg:#F3F7F7;--main-bg:#FAFCFC;--divider-color:#D4DCDD}html{background-color:#f3f7f7}html[data-theme=dark]{background-color:#1b1c1c;--logo-color-from:#545B5C;--logo-color-to:#3E4343;--bar-color-from:#3E4343;--bar-color-to:#545B5C;--sidebar-bg:#1B1C1C;--main-bg:#202222;--divider-color:#545B5C}.app-shell-loader{position:fixed;inset:0;display:flex;background-color:var(--sidebar-bg);z-index:9999}.app-shell-sidebar{width:210px;flex-shrink:0;background-color:var(--sidebar-bg);padding:16px 16px 0;display:flex;flex-direction:column;gap:36px;border-right:1px solid var(--divider-color);box-sizing:border-box}.app-shell-sidebar-group{display:flex;flex-direction:column;gap:10px}.app-shell-bar{height:10px;border-radius:5px;background-color:var(--bar-color-from);animation:app-shell-bar-shimmer 1.6s linear infinite}.app-shell-navbar{height:56px;display:flex;flex-direction:row;border-bottom:1px solid var(--divider-color);padding:0 32px;align-items:center;justify-content:space-between;box-sizing:border-box}@keyframes app-shell-bar-shimmer{0%,100%{background-color:var(--bar-color-from)}50%{background-color:var(--bar-color-to)}}.app-shell-main{flex:1;background-color:var(--main-bg)}.app-shell-logo{display:inline-flex;width:100%;height:calc(100vh - 56px);justify-content:center;align-items:center}.app-shell-logo svg path{animation:app-shell-color-cycle 1.6s linear infinite}@keyframes app-shell-color-cycle{0%,100%{fill:var(--logo-color-from)}50%{fill:var(--logo-color-to)}}@media (max-width:899px){.app-shell-sidebar{display:none}.app-shell-main{background-color:var(--sidebar-bg)}}</style><noscript><style>.app-shell-loader{display:none}</style></noscript><script async type="module" crossorigin src="/assets/index-
|
|
1
|
+
<!DOCTYPE html><html lang="en"><head><meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate"><meta http-equiv="expires" content="0"><meta http-equiv="pragma" content="no-cache"><meta charset="UTF-8"><link rel="icon" type="image/svg+xml" href="/assets/favicon-D56XvgAH.ico"><meta name="ROBOTS" content="NOINDEX, NOFOLLOW"><meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1"><meta name="theme-color" content="#000000"><meta name="description" content="Zeni - Modern Finance Team For Startups"><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&family=Manrope:wght@200..800&display=swap"><link rel="apple-touch-icon" href="/assets/logo192-CqcTe-t4.png"><link rel="manifest" href="/assets/manifest-icT4lOF5.json"><title>Zeni - Modern Finance Team For Startups</title><script src="/theme-detect.js"></script><style>:root{--logo-color-from:#D4DCDD;--logo-color-to:#E9F0F0;--bar-color-from:#E9F0F0;--bar-color-to:#D4DCDD;--sidebar-bg:#F3F7F7;--main-bg:#FAFCFC;--divider-color:#D4DCDD}html{background-color:#f3f7f7}html[data-theme=dark]{background-color:#1b1c1c;--logo-color-from:#545B5C;--logo-color-to:#3E4343;--bar-color-from:#3E4343;--bar-color-to:#545B5C;--sidebar-bg:#1B1C1C;--main-bg:#202222;--divider-color:#545B5C}.app-shell-loader{position:fixed;inset:0;display:flex;background-color:var(--sidebar-bg);z-index:9999}.app-shell-sidebar{width:210px;flex-shrink:0;background-color:var(--sidebar-bg);padding:16px 16px 0;display:flex;flex-direction:column;gap:36px;border-right:1px solid var(--divider-color);box-sizing:border-box}.app-shell-sidebar-group{display:flex;flex-direction:column;gap:10px}.app-shell-bar{height:10px;border-radius:5px;background-color:var(--bar-color-from);animation:app-shell-bar-shimmer 1.6s linear infinite}.app-shell-navbar{height:56px;display:flex;flex-direction:row;border-bottom:1px solid var(--divider-color);padding:0 32px;align-items:center;justify-content:space-between;box-sizing:border-box}@keyframes app-shell-bar-shimmer{0%,100%{background-color:var(--bar-color-from)}50%{background-color:var(--bar-color-to)}}.app-shell-main{flex:1;background-color:var(--main-bg)}.app-shell-logo{display:inline-flex;width:100%;height:calc(100vh - 56px);justify-content:center;align-items:center}.app-shell-logo svg path{animation:app-shell-color-cycle 1.6s linear infinite}@keyframes app-shell-color-cycle{0%,100%{fill:var(--logo-color-from)}50%{fill:var(--logo-color-to)}}@media (max-width:899px){.app-shell-sidebar{display:none}.app-shell-main{background-color:var(--sidebar-bg)}}</style><noscript><style>.app-shell-loader{display:none}</style></noscript><script async type="module" crossorigin src="/assets/index-CoMuhThK.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-D_xp3E3Q.js"><link rel="modulepreload" crossorigin href="/assets/core-CbpoBsNm.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-CkeDRiud.js"><link rel="modulepreload" crossorigin href="/assets/mui-DcNGd9L2.js"><link rel="modulepreload" crossorigin href="/assets/analytics-CQmVOD4d.js"><link rel="modulepreload" crossorigin href="/assets/utils-BQO84dIV.js"><link rel="stylesheet" crossorigin href="/assets/index-BUmr5maU.css"></head><body style="margin:0"><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><div class="app-shell-loader" id="app-shell-loader"><div class="app-shell-sidebar"><div class="app-shell-sidebar-group"><div class="app-shell-bar zeni-logo" style="width:96px;height:20px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:78px;height:16px"></div><div class="app-shell-bar" style="width:46px;height:16px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:110px;height:16px"></div><div class="app-shell-bar" style="width:84px;height:16px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:84px;height:16px"></div><div class="app-shell-bar" style="width:64px;height:16px"></div></div></div><div class="app-shell-main"><div class="app-shell-navbar"><div class="app-shell-bar" style="width:106px;height:27px"></div><div class="app-shell-bar" style="width:111px;height:32px"></div></div><div class="app-shell-logo"><svg width="96" height="96" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16.768 0.0270284C16.571 -0.055168 16.348 0.0572476 16.2913 0.267574C16.2713 0.342517 16.2489 0.417461 16.2253 0.491196C16.0094 1.15723 15.6459 1.76645 15.148 2.27776C14.3056 3.14203 13.1847 3.61949 11.9918 3.6207H11.9883C10.7978 3.6207 9.67689 3.14565 8.83445 2.2838C8.33653 1.7737 7.97077 1.16448 7.75367 0.499657C7.73007 0.425922 7.70765 0.350979 7.68641 0.276035C7.62978 0.065709 7.40678 -0.0454978 7.20974 0.0366985C6.05463 0.522624 4.98565 1.17899 4.0323 1.97436C3.91195 2.07468 3.87301 2.24512 3.93083 2.39259C3.9792 2.51589 4.03112 2.63797 4.08539 2.75764C4.51133 3.70894 5.10364 4.5853 5.84815 5.34682C7.48937 7.0246 9.66863 7.9493 11.9871 7.9493H11.9954C14.3162 7.94689 16.4978 7.01855 18.1379 5.33595C18.8812 4.57321 19.4711 3.69564 19.8959 2.74434C19.9502 2.62347 20.0009 2.50138 20.0493 2.37809C20.1071 2.23062 20.0682 2.06018 19.9478 1.95985C18.9933 1.16569 17.9231 0.511745 16.768 0.0270284Z"/><path d="M19.9102 21.2422C19.4843 20.2933 18.8931 19.4194 18.151 18.6603C16.5086 16.9801 14.3223 16.053 12.0038 16.0578C8.50304 16.0614 5.48371 18.1961 4.11031 21.2603C4.05722 21.38 4.0053 21.5009 3.95575 21.623C3.89675 21.7704 3.93569 21.9421 4.05722 22.0436C5.01175 22.8366 6.08073 23.4893 7.23466 23.9728C7.4317 24.055 7.65352 23.9438 7.71134 23.7335C7.73139 23.6573 7.75381 23.5836 7.77859 23.5086C8.37207 21.6979 10.0416 20.3888 12.0073 20.3864H12.012C13.2025 20.3864 14.3234 20.8614 15.1659 21.7233C15.6626 22.231 16.026 22.8378 16.2431 23.5002C16.2679 23.5739 16.2903 23.6489 16.3104 23.7238C16.3682 23.9341 16.59 24.0453 16.787 23.9619C17.9422 23.476 19.01 22.8209 19.9633 22.0255C20.0837 21.9252 20.1226 21.7535 20.0648 21.606C20.0164 21.4828 19.9645 21.3631 19.9102 21.2422Z"/><path d="M0.132148 10.1666C0.158105 9.98769 0.305591 9.85352 0.482575 9.85352L23.5093 9.81726C23.6863 9.81726 23.8338 9.95022 23.8609 10.1291C23.9518 10.7347 23.999 11.3548 23.999 11.9858C24.0001 12.6131 23.9541 13.2284 23.8668 13.8292C23.8408 14.0081 23.6934 14.1422 23.5164 14.1422L0.489654 14.1773C0.312671 14.1773 0.165185 14.0443 0.138047 13.8654C0.0471956 13.2598 0 12.6397 0 12.0088C0 11.3826 0.0448358 10.7673 0.132148 10.1666Z"/></svg></div></div></div></body></html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/web-app-ui",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.55-dev",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/**/*"
|
|
6
6
|
],
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"@sentry/react": "^9.42.1",
|
|
29
29
|
"@stripe/stripe-js": "^4.4.0",
|
|
30
30
|
"@zeniai/client-analytics": "2.0.21",
|
|
31
|
-
"@zeniai/client-epic-state": "5.1.
|
|
32
|
-
"@zeniai/web-components": "4.1.
|
|
31
|
+
"@zeniai/client-epic-state": "5.1.3",
|
|
32
|
+
"@zeniai/web-components": "4.1.75",
|
|
33
33
|
"color": "3.1.3",
|
|
34
34
|
"cross-fetch": "^4.0.0",
|
|
35
35
|
"crypto-js": "4.2.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./liveblocks-B6jAIe9x.js";import{A as d}from"./AddressScreen-BRdhnUB3.js";import i from"./NotFoundScreen-ChEBjJeL.js";import"./sentry-95bdnR3R.js";import{o as s,p as r}from"./core-CLKYLs-8.js";import"./zeni-epic-state-CjQblqOQ.js";import"./recharts-CyaYjFwn.js";import"./index-D_hiFYsE.js";import"./mui-AZmtqUsi.js";import"./analytics-BHHyMpuV.js";import"./plaid-2Q72y6JT.js";import"./dnd-BgEYAbRi.js";import"./stripe-DMRn4zHo.js";import"./lottie-C38Bn-X6.js";import"./lexical-DN4b_Twn.js";import"./pdf-BzNDzZ8_.js";import"./utils-CDpOkGne.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new t.Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="cd0ff2b4-1e27-4329-addf-f475e5a9db34",t._sentryDebugIdIdentifier="sentry-dbid-cd0ff2b4-1e27-4329-addf-f475e5a9db34")}catch{}})();function _(){return e.jsxs(s,{children:[e.jsx(r,{path:"/edit/:addressType/:addressId",element:e.jsx(d,{})}),e.jsx(r,{path:"/new/:addressType",element:e.jsx(d,{})}),e.jsx(r,{path:"*",element:e.jsx(i,{})})]})}export{_ as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as n}from"./liveblocks-B6jAIe9x.js";import{a as h}from"./sentry-95bdnR3R.js";import{h as T,u as _,g as j,i as M,j as E,n as B}from"./core-CLKYLs-8.js";import{K as $,m as D,z as K,j as L,B as O,A as z,c as C,e as S,k as F,h as b,n as N}from"./index-D_hiFYsE.js";import{Ml as k,hO as R,eW as U,Mm as G,c7 as V,Mn as q,l7 as H}from"./zeni-epic-state-CjQblqOQ.js";import{n as W}from"./mui-AZmtqUsi.js";import J from"./NotFoundScreen-ChEBjJeL.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="3faab922-bc8a-4136-9280-2fe1c145ee1f",e._sentryDebugIdIdentifier="sentry-dbid-3faab922-bc8a-4136-9280-2fe1c145ee1f")}catch{}})();const Q=W.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`,X=B(function(e,t){const{addressId:o,isSubPage:i,addressType:c}=t,l=U(e),a=t.roleMap!=null&&G(t.roleMap),r=i||c==="user_address"||V(l?.userRole??[])||a?void 0:"readonly";if(o==null){const s=q(c,e);return{addressToEdit:s?.addressToCreate,loadingState:s?.status?.fetchState,googleAPIKey:b.googleMapsAPIKey,isDisabled:r,isSubPage:i,dontShowSaveConfirmationPopup:t.dontShowSaveConfirmation}}const d=k(e,o);return{addressToEdit:d.address,loadingState:d.fetchState,googleAPIKey:b.googleMapsAPIKey,isDisabled:r}},function(e,t){const{navigate:o,location:i,addressType:c}=t,l=a=>{if(a==="express-pay")o("../express-pay/add-wire");else{const r=i.state,d=N(r?.pathnameStackToGoBack);let s=d.poppedPathname??w();const u=r?.queryParams;if(u){const f=new URLSearchParams(u).toString();f&&(s=`${s}?${f}`)}o(s,{state:{pathnameStackToGoBack:d.newStack}})}};return{onSubmitHandler:a=>{const r=Y(a);e(H({addressType:c,addressToCreate:r})),C?.trackSaveAddressClicked(S.Event.saveAddressClicked,{street:a.street.addressString,city:a.city,state:a.state,country:a.country.selectedOption??"",postalCode:a.postalCode,suite:a.suite,secondaryInfo:a.secondaryInfo}),l(t.bankAccountContext)},onCancel:()=>{l(t.bankAccountContext)}}})(F);function ne({isSubPage:e,hideAddressSubTitle:t=!1,hideAddressBackButton:o=!1,dontShowSaveConfirmation:i,accountContext:c,addressTypeParam:l}){const a=T(),r=_(),d=j(),{addressId:s,addressType:u}=M(),f=$(),A=D(),I=K.getSignedInUser(),[g,v]=h.useState(s==null),p=E(m=>s!=null?k(m,s).fetchState:"Not-Started"),x=L();if(I==null)throw Error("Can't access address page without signing in...");const P=m=>m.trackPageLoaded(s!=null?S.Event.editAddress:S.Event.addAddress),y=l??u;return h.useEffect(()=>{g||s==null||(v(!0),r(R(s,!1)))},[g,s,r]),y==null||y.match(/(user_address|company_address|company_registered_address|vendor_address|officer_([1-9]|10)_address)$/g)?!g&&p==="Not-Started"||g&&p==="In-Progress"?n.jsx(O,{fetchState:p,style:{backgroundColor:A.colors.grey5}}):s!=null&&p==="Error"?(a(`${w(1)}/new`,{replace:!0}),n.jsx(n.Fragment,{})):n.jsxs(n.Fragment,{children:[n.jsx(z,{analytics:C,onLoad:P}),n.jsx(Q,{windowSize:f,children:n.jsx(X,{location:d,navigate:a,isSubPage:e===!0,hideAddressBackButton:o,hideAddressSubTitle:t,addressId:s,addressType:y,dontShowSaveConfirmation:i,bankAccountContext:c,roleMap:x?.loggedInUserRoleMap})})]}):n.jsx(J,{})}const w=(e=2)=>{let t="../";for(let o=0;o<e;o++)t=`${t}../`;return t},Y=e=>({street:[e.street.addressString,e.suite,e.secondaryInfo],city:e.city,state:e.state,country:e.country.selectedOption??"",countryCode:e.countryCode,postalCode:e.postalCode,latitude:e.street.addressValue?.locationLat,longitude:e.street.addressValue?.locationLng});export{ne as A,Y as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as c}from"./liveblocks-B6jAIe9x.js";import{a as v}from"./sentry-95bdnR3R.js";import{h as B,g as j,u as P,j as y,N as q,n as U,i as K,o as ee,p as C}from"./core-CLKYLs-8.js";import{eW as k,PD as A,Pj as h,zb as E,z3 as J,z7 as R,yY as Y,Pl as G,zd as te,y$ as H,zg as M,zc as D}from"./zeni-epic-state-CjQblqOQ.js";import{m as O,z as V,B as T,a7 as Q,bI as ae,af as _,bz as X,bJ as oe,bK as le,bL as pe}from"./index-D_hiFYsE.js";import"./mui-AZmtqUsi.js";import{i as se}from"./ReimbursementApprovalRuleDetailScreen-D_Tk1V_u.js";import re from"./NotFoundScreen-ChEBjJeL.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new e.Error().stack;p&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[p]="7c48ec75-9009-4344-9391-03f73337cef4",e._sentryDebugIdIdentifier="sentry-dbid-7c48ec75-9009-4344-9391-03f73337cef4")}catch{}})();const N="bill-approval-rule-update",ne=U(function(e){return{approvalView:A(e),billPaySetupApproverViewUpdateData:h(e).billPaySetupApproverViewUpdateData}},function(e,p){const{navigate:t,location:s}=p;return{onApprovalRulesEventReceived:a=>{a.endsWith(N)&&e(G(!1))},onBackClick:()=>{_(s)?t("../../"):t("../../../bills/setup")},onDeleteRuleClick:a=>{e(Y(a,!1))},onEditRuleClick:a=>{a!=null?(e(R(a)),t(`./${a}/edit`)):(e(R()),t("./new"))}}})(Q(ae)),ie=()=>{const e=B(),p=j(),t=P(),[s,a]=v.useState(!1),[i,r]=v.useState(!1),d=O(),o=y(l=>l.billPaySetupApproverViewState.fetchState),u=y(l=>k(l)),n=y(l=>A(l)),f=y(l=>h(l).billPaySetupApproverViewUpdateData);if(v.useEffect(()=>{f?.updateStatus.fetchState==="Completed"&&t(E())},[f]),v.useEffect(()=>{s||o!=="Not-Started"||(a(!0),t(J(!0,!0,!1)))},[s,o,t]),V.getSignedInUser()==null)throw Error("Can't access billpay approval without signing in...");v.useEffect(()=>{n.allApprovalRules.length===0&&n.fetchState==="Completed"&&(i||(r(!0),t(R())),e("./new"))},[i,n,t]);const m={events:u.companyId!=null?[`private-encrypted-${u.companyId}.${N}`]:[],eventCallback:(l,w,g)=>{l.endsWith(N)&&g.onApprovalRulesEventReceived(l)}};return u.companyBillPayInfo?.info?.isBillPayTOSAccepted===!1?c.jsx(q,{to:"../../promo"}):u.companyBillPayInfo?.info?.isBillPayTOSAccepted!==!0||n.fetchState!=="Completed"&&n.fetchState!=="Error"?c.jsx(T,{fetchState:"In-Progress",style:{backgroundColor:d.colors.grey5}}):c.jsx(ne,{currentTenant:u,location:p,navigate:e,...m})},F="bill-approval-rule-update",ce=U(function(e){const p=A(e),t=h(e).billPaySetupApproverViewUpdateData,s={};for(const i of Object.values(e.contactState.contactById))i?.id!=null&&(s[i.id]=i.fullName);const a={};for(const i of Object.values(e.classState.classesByKey))i?.classId!=null&&(a[i.classId]=i.className);return{approvalView:p,billPaySetupApproverViewUpdateData:t,vendorNamesById:s,departmentNamesById:a}},function(e,p){const{navigate:t,location:s}=p;return{onApprovalRulesEventReceived:a=>{a.endsWith(F)&&e(G(!1))},onBackClick:()=>{_(s)?t("../../"):t("../../../bills/setup")},onDeleteRuleClick:a=>{e(Y(a,!0))},onEditRuleClick:a=>{a!=null?(e(R(a)),t(`./${a}/edit`)):(e(R()),t("./new"))},onReorderRules:a=>{e(te(a,!0))}}})(Q(oe)),ue=()=>{const e=y(t=>k(t)),{isApprovalRulesV3Enabled:p}=X(e?.tenantId);return p?c.jsx(de,{}):c.jsx(ie,{})},de=()=>{const e=B(),p=j(),t=P(),[s,a]=v.useState(!1),[i,r]=v.useState(!1),d=O(),o=y(l=>l.billPaySetupApproverViewState.fetchState),u=y(l=>k(l)),n=y(l=>A(l)),f=y(l=>h(l).billPaySetupApproverViewUpdateData);if(v.useEffect(()=>{f?.updateStatus.fetchState==="Completed"&&t(E())},[f]),v.useEffect(()=>{s||o!=="Not-Started"||(a(!0),t(J(!0,!0,!0)))},[s,o,t]),V.getSignedInUser()==null)throw Error("Can't access billpay approval without signing in...");v.useEffect(()=>{n.allApprovalRules.length===0&&n.fetchState==="Completed"&&(i||(r(!0),t(R())),e("./new"))},[i,n,t]);const m={events:u.companyId!=null?[`private-encrypted-${u.companyId}.${F}`]:[],eventCallback:(l,w,g)=>{l.endsWith(F)&&g.onApprovalRulesEventReceived(l)}};return u.companyBillPayInfo?.info?.isBillPayTOSAccepted===!1?c.jsx(q,{to:"../../promo"}):u.companyBillPayInfo?.info?.isBillPayTOSAccepted!==!0||n.fetchState!=="Completed"&&n.fetchState!=="Error"?c.jsx(T,{fetchState:"In-Progress",style:{backgroundColor:d.colors.grey5}}):c.jsx(ce,{currentTenant:u,location:p,navigate:e,...m})},ve=U(function(e,p){const t=h(e),s=t.billPaySetupApproverViewUpdateData?.type??"approval_create",a=s==="approval_create"&&t.allApprovalRules.length!==0;let i=t.allApprovalRules.length===0;return p.approvalRuleId&&(i=t.allApprovalRules.findIndex(r=>r.approvalRuleId===p.approvalRuleId)===0),{localData:t,hideUpperBoundField:a,isLowerBoundDisabled:i,approvalUpdateActionType:s}},function(e,p){const{navigate:t,approvalUpdateDataView:s,approverViewData:a,approvalRuleId:i}=p,r=s.billPaySetupApproverViewUpdateData?.type,d=_(p.location);return{onApprovalRuleDataUpdated:o=>{const u=f=>{const m=[];return f.forEach(l=>{const w=l.actors.selectedUsers.map(b=>({type:"user",userId:b.userId,isImplicitActor:!1})),g=l.actors.selectedNonUsers.map(b=>{const I=!!se(b.value);return{type:I?"attribute":"role",subType:b.value,userId:void 0,idType:void 0,isImplicitActor:!I}}),S=w.concat(g);m.push({action:l.stepType.selectedOption,actors:S,operator:S.length>1?l.stepType.selectedOption==="require_approval"?"or":"and":"is"})}),m},n={amount:{type:"amount",comparator:"range",min:{amount:o.lowerBound,currencyCode:"USD",currencySymbol:"$"},max:{amount:o.upperBound,currencyCode:"USD",currencySymbol:"$"}}};if(r==="approval_create"){const f={criteria:n,steps:u(o.steps),isApplicableOnPendingApprovalEntity:o.applyToExistingBills.includes("applyToExistingBills")};e(D(f))}else{const f={approvalRuleId:i,criteria:n,steps:u(o.steps),isApplicableOnPendingApprovalEntity:o.applyToExistingBills.includes("applyToExistingBills")};e(D(f))}},onResetClick:()=>{e(E()),r==="approval_update"||d?t("../"):a.allApprovalRules.length===0&&a.fetchState==="Completed"?t("../../setup"):t("../")},onBackClick:()=>{e(E()),r==="approval_update"||d?t("../"):a.allApprovalRules.length===0&&a.fetchState==="Completed"?t("../../setup"):t("../")},onSaveRuleClick:()=>{e(M(!1))},onSaveRuleSuccess:()=>{t("../")}}})(le);function fe(){const e=B(),p=P(),t=j(),{approvalRuleId:s}=K(),a=V.getSignedInUser(),i=O(),r=y(n=>h(n)),d=y(n=>A(n)),[o,u]=v.useState(!1);if(v.useEffect(()=>{o||(u(!0),p(H(!0)))}),v.useEffect(()=>{d.fetchState==="Not-Started"&&e(s!=null?"../../":"../")},[d,s]),a==null)throw Error("Can't access address page without signing in...");return r.approverListFetchStatus.fetchState=="Not-Started"||r.approverListFetchStatus.fetchState==="In-Progress"?c.jsx(T,{fetchState:r.approverListFetchStatus.fetchState,style:{backgroundColor:i.colors.grey5}}):c.jsx(ve,{navigate:e,approvalUpdateDataView:r,approvalRuleId:s,approverViewData:d,location:t})}const ye=U(function(e,p){const t=h(e),s=t.billPaySetupApproverViewUpdateData?.type??"approval_create",a=[],i={};for(const r of Object.values(e.contactState.contactById))r?.id!=null&&(a.push(r.id),i[r.id]=r.fullName);return{localData:t,approvalUpdateActionType:s,allVendorIds:a,vendorNamesById:i,editingRuleId:s==="approval_update"?p.approvalRuleId:void 0,allApprovalRulesWithUser:A(e).allApprovalRules}},function(e,p){const{navigate:t,approvalUpdateDataView:s,approverViewData:a,approvalRuleId:i}=p,r=s.billPaySetupApproverViewUpdateData?.type,d=_(p.location);return{onApprovalRuleDataUpdated:o=>{const u=S=>{const b=[];return S.forEach(I=>{const $=I.actorKind?.selectedOption,z=I.selectedRole?.selectedOption;let x=[];$==="role"&&z!=null?x=[{type:"attribute",subType:z,userId:void 0,idType:void 0,isImplicitActor:!1}]:$==="specific_person"&&(x=(I.persons?.selectedUsers??[]).map(Z=>({type:"user",userId:Z.userId,isImplicitActor:!1})));const L=I.action??"require_approval";b.push({action:L,actors:x,operator:x.length>1?L==="require_approval"?"or":"and":"is"})}),b},n=o.amountCriteria,f=o.vendorCriteria,m=o.departmentCriteria,l={};if(n!=null&&n.comparator.selectedOption!=null){const S=n.comparator.selectedOption;l.amount={type:"amount",comparator:S,min:S==="less_than"?void 0:n.min,max:S==="greater_than"?void 0:n.max}}const w=f?.selection.selectedOptions??[];w.length>0&&(l.vendor={type:"vendor",operator:f?.operator.selectedOption??"is",vendorIds:w});const g=m?.selection.selectedOptions??[];if(g.length>0&&(l.department={type:"department",operator:m?.operator.selectedOption??"is",departmentIds:g}),r==="approval_create"){const S={name:o.name,description:o.description,separationOfDuties:o.separationOfDuties,isFallback:o.isFallback,criteria:l,steps:u(o.steps),isApplicableOnPendingApprovalEntity:o.applyToExistingBills.includes("applyToExistingBills")};e(D(S))}else{const S={approvalRuleId:i,name:o.name,description:o.description,separationOfDuties:o.separationOfDuties,isFallback:o.isFallback,criteria:l,steps:u(o.steps),isApplicableOnPendingApprovalEntity:o.applyToExistingBills.includes("applyToExistingBills")};e(D(S))}},onResetClick:()=>{e(E()),r==="approval_update"||d?t("../"):a.allApprovalRules.length===0&&a.fetchState==="Completed"?t("../../setup"):t("../")},onBackClick:()=>{e(E()),r==="approval_update"||d?t("../"):a.allApprovalRules.length===0&&a.fetchState==="Completed"?t("../../setup"):t("../")},onSaveRuleClick:()=>{e(M(!0))},onSaveRuleSuccess:()=>{t("../")},onEditExistingRule:o=>{e(R(o)),t(r==="approval_update"?`../../${o}/edit`:`../${o}/edit`)}}})(pe);function W(){const e=y(t=>k(t)),{isApprovalRulesV3Enabled:p}=X(e?.tenantId);return p?c.jsx(Se,{}):c.jsx(fe,{})}function Se(){const e=B(),p=P(),t=j(),{approvalRuleId:s}=K(),a=V.getSignedInUser(),i=O(),r=y(n=>h(n)),d=y(n=>A(n)),[o,u]=v.useState(!1);if(v.useEffect(()=>{o||(u(!0),p(H(!0)))}),v.useEffect(()=>{d.fetchState==="Not-Started"&&e(s!=null?"../../":"../")},[d,s]),a==null)throw Error("Can't access address page without signing in...");return r.approverListFetchStatus.fetchState=="Not-Started"||r.approverListFetchStatus.fetchState==="In-Progress"?c.jsx(T,{fetchState:r.approverListFetchStatus.fetchState,style:{backgroundColor:i.colors.grey5}}):c.jsx(ye,{navigate:e,approvalUpdateDataView:r,approvalRuleId:s,approverViewData:d,location:t},s??"new")}function Ee(){return c.jsxs(ee,{children:[c.jsx(C,{path:"/",element:c.jsx(ue,{})}),c.jsx(C,{path:"/new",element:c.jsx(W,{})}),c.jsx(C,{path:"/:approvalRuleId/edit",element:c.jsx(W,{})}),c.jsx(C,{path:"*",element:c.jsx(re,{})})]})}export{Ee as B};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as m}from"./liveblocks-B6jAIe9x.js";import{a as g}from"./sentry-95bdnR3R.js";import{h as w,u as x,g as k,i as T,j as O,n as E}from"./core-CLKYLs-8.js";import{z as C,b9 as F,A as P,c as A,e as V,af as N,ba as j,at as L,au as U,r as B}from"./index-D_hiFYsE.js";import{eW as h,gh as M,to as R,gc as _,c7 as z,OQ as G,bn as Y,rx as $,rl as H,k$ as K,mA as S,OR as Q,bE as W,cz as b,mK as Z,mN as q}from"./zeni-epic-state-CjQblqOQ.js";import"./mui-AZmtqUsi.js";import{d as J}from"./routePaths-XSngD1ow.js";import{M as X}from"./MobileAppDrawer-BPYh3fz7.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new n.Error().stack;t&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[t]="50fe66e7-3a02-4f81-aacd-332fb289d76a",n._sentryDebugIdIdentifier="sentry-dbid-50fe66e7-3a02-4f81-aacd-332fb289d76a")}catch{}})();const ee=E(function(n){const t=_(n),i=C.getSignedInUser(),l=h(n),c=l.tenantId,p={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:c??""},f=z(l?.userRole??[])&&t.localData.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",e=G(n.companyConfigState),a=n.countryListState?.byCountryListCode?.nationalityCountryList?.countries??[];return{isCompanyVerified:t.companyView?.company?.company?.companyBillPayInfo?.companyVerificationStatus?.code==="verified",companyPassportView:t,allIndustries:e.companyIndustries??[],allNationalityCountries:a,isDisabled:f,authParams:p,filesEndPoint:`${L.fileMicroServiceBaseUrl}`,isZeniUser:Y(i)}},function(n,t){const{companyId:i,currentTenant:l,navigate:c,location:p}=t,{tenantEmailDomain:f}=l;return{onScheduleClick:e=>{let a=e.href;a.includes("http")||(a="https://".concat(a)),window.open(a,"_blank")},onSaveAll:()=>{n(q())},onAddressClick:e=>{const a=J(f,e),o=B(p.state?.pathnameStackToGoBack,p.pathname);c(a,{state:{pathnameStackToGoBack:o}})},onResetClick:()=>{n(Z({companyId:i}))},onBackClick:()=>{c("../")},onCompanyDetailsChanged:e=>{const{companyInfo:a,incInfo:o,taxDetails:r,zeniFinanceTeam:d}=e,{website:u}=a,{meetingLink:y}=d,{incDate:s}=o,{taxesFiledYears:D}=r,v={companyInfo:{...a,website:u!=""&&u!=null?b(u):void 0,meetingLink:y!=""&&y!=null?b(y):void 0,industry:a.industry.selectedOption,companyIndustryType:a.companyIndustryType?.selectedOption??void 0,companySubIndustry:a.companySubIndustry?.selectedOption??void 0,businessModel:a.businessModel.selectedOption??"",companySourceOfFunds:a.companySourceOfFunds?.selectedOption,companySourceOfFundsDescription:a.companySourceOfFundsDescription??void 0,countriesOfOperations:a.countriesOfOperations?.selectedOptions?.map(I=>I.length===2?I:U(I))??[],transactionVolume:a.transactionVolume?.selectedOption??void 0,transactionVolumeDescription:a.transactionVolumeDescription??void 0,regulatedStatus:a.regulatedStatus??void 0,regulatedStatusDescription:a.regulatedStatusDescription??void 0,usNexus:a.usNexus??void 0,usNexusTypes:a.usNexusTypes?.selectedOptions??[],purposeOfAccount:a.purposeOfAccount?.selectedOption??void 0,purposeOfAccountDescription:a.purposeOfAccountDescription??void 0},incInfo:{typeOfInc:o.typeOfInc.selectedOption??"",stateOfInc:o.stateOfInc.selectedOption??"",incDate:s!=null?W(s?.toString()):s,fileId:o.fileIds[0]},taxDetails:{taxIdOrEIN:r.taxIdOrEIN,sicCode:r.sicCode,naicsCode:r.naicsCode,dunsNumber:r.dunsNumber,taxesFiledYears:D.selectedOptions.map(I=>parseInt(I)),fileId:r.fileIds[0]}};n(S({companyDetails:v}))},onPrimaryContactDetailsUpdated:e=>{n(S({primaryContact:{userId:e.userId,email:e.email.trim(),firstName:e.name.firstName,lastName:e.name.lastName}}))},onNewCompanyOfficerAdded:e=>{n(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:void 0}]}))},onNewCompanyOfficerRemoved:e=>{n(Q(e))},onCompanyOfficerUpdated:e=>{n(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:e.userId}]}))},updateFilesEntity:e=>{n(K({files:e}))},onDeleteFile:e=>{n(H(e))},onEditFileName:(e,a)=>{n($(e,a.split(".")[0]))}}})(j);function de(){const n=w(),t=x(),i=k(),{tenantEmailDomain:l}=T(),[c,p]=g.useState(!1),[f,e]=g.useState(!1),a=O(s=>s.companyViewState.passportView.fetchState),o=O(s=>s.companyConfigState.fetchState),r=O(s=>h(s)),d=r.companyId??C.getSignedInUserTenant(l)?.companyId;if(C.getSignedInUser()==null)throw Error("Can't access company details page without signing in...");g.useEffect(()=>{c||a!=="Not-Started"||d==null||(p(!0),t(M(d)))},[c,a,d,t]),g.useEffect(()=>{o==="Not-Started"&&t(R())},[o,t]);const u=s=>{e(s)},y=a==="Not-Started"||a==="In-Progress"||o==="Not-Started"||o==="In-Progress";return d!=null&&a==="Error"?m.jsx(F,{onGoHome:()=>n("../",{replace:!0}),onReload:()=>window.location.reload()}):m.jsxs(m.Fragment,{children:[m.jsx(P,{analytics:A,onLoad:s=>s.trackPageLoaded(V.Event.companyPassport,N(i)?"Settings":"Company Passport")}),N(i)?m.jsx(X,{isAppContentDrawerOpen:f,handleDrawerToggle:u}):null,m.jsx(ee,{companyId:d,navigate:n,location:i,isLoading:y,currentTenant:r,isSettings:N(i),onClickMenuIcon:()=>{u(!0)}})]})}export{de as C};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-B6jAIe9x.js";import{z as n}from"./index-D_hiFYsE.js";import{g as d}from"./QBOConnectionScreen-D87ZntTL.js";import"./sentry-95bdnR3R.js";import{g as p,N as s}from"./core-CLKYLs-8.js";import"./zeni-epic-state-CjQblqOQ.js";import"./recharts-CyaYjFwn.js";import"./mui-AZmtqUsi.js";import"./analytics-BHHyMpuV.js";import"./plaid-2Q72y6JT.js";import"./dnd-BgEYAbRi.js";import"./stripe-DMRn4zHo.js";import"./lottie-C38Bn-X6.js";import"./lexical-DN4b_Twn.js";import"./pdf-BzNDzZ8_.js";import"./utils-CDpOkGne.js";import"./empty-DdtYEopm.js";import"./pdf-lib-0dW_LSbG.js";import"./index-CtRgwYlG.js";import"./url-Br2V-Pa5.js";import"./index-UrW8im9e.js";import"./decodeURIComponentSafe-Bm32N7cj.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new t.Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="817363c8-7f1d-4590-b58b-cef70b99ca15",t._sentryDebugIdIdentifier="sentry-dbid-817363c8-7f1d-4590-b58b-cef70b99ca15")}catch{}})();const U=()=>{const t=p(),{code:o,realmId:r,state:e}=d(t.search),m=n.getSignedInUser()?.userId??"";if(f(o,r,e,m)===!0){const a=`../../${e}/onboarding?code=${o}&realmId=${r}&state=auth_flow`;return i.jsx(s,{to:a})}return i.jsx(s,{to:"../../"})},f=(t,o,r,e)=>t!=""&&o!=""&&r!=""&&e!=null&&e!="";export{U as default,f as hasValidParams};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-B6jAIe9x.js";import{K as c,E as l,m as f}from"./index-D_hiFYsE.js";import{D as b}from"./mui-AZmtqUsi.js";import"./sentry-95bdnR3R.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="b4f83c93-6b8c-4125-b836-c9db747f101c",e._sentryDebugIdIdentifier="sentry-dbid-b4f83c93-6b8c-4125-b836-c9db747f101c")}catch{}})();const p={drawerLeftMargin:new l(0,0,240)};function m(e){const{isOpen:r,drawerLeftMargin:o,children:t,onClose:s}=e,n=c(),a=o?.valuePx(n)??p.drawerLeftMargin.valuePx(n),d=f();return i.jsx(b,{anchor:"right",open:r,PaperProps:{style:{width:`calc(100% - ${a})`}},slotProps:{backdrop:{style:{backgroundColor:d.colors.black,opacity:.8,cursor:"pointer"}}},onClose:s,children:t})}export{m as D};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-B6jAIe9x.js";import{a as d}from"./sentry-95bdnR3R.js";import{h as A,u as B,g as G,i as q,j as c,N as F,n as M,o as O,p as W}from"./core-CLKYLs-8.js";import{NN as _,eW as J,N9 as R,lr as Y,JO as k,NS as $,ME as z,kr as V,JP as S,Ne as H,Nf as K,MG as L,MF as Q}from"./zeni-epic-state-CjQblqOQ.js";import{aS as U,c as X,n as Z,r as tt}from"./index-D_hiFYsE.js";import"./mui-AZmtqUsi.js";import{d as b}from"./decodeURIComponentSafe-Bm32N7cj.js";import{w as et}from"./withTransactionSidePanel-kr0tYyxP.js";import{f as nt,c as at}from"./routePaths-XSngD1ow.js";import"./recharts-CyaYjFwn.js";import"./analytics-BHHyMpuV.js";import"./plaid-2Q72y6JT.js";import"./dnd-BgEYAbRi.js";import"./stripe-DMRn4zHo.js";import"./lottie-C38Bn-X6.js";import"./lexical-DN4b_Twn.js";import"./pdf-BzNDzZ8_.js";import"./utils-CDpOkGne.js";import"./useAskAiCfoHostNavButtonProps-FETbJUjN.js";import"./TransactionDetailScreen-bJ4okRq5.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new n.Error().stack;t&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[t]="d9ec955e-0efb-4d98-bd14-8fc04f4bd9df",n._sentryDebugIdIdentifier="sentry-dbid-d9ec955e-0efb-4d98-bd14-8fc04f4bd9df")}catch{}})();const ot=M(function(n,t){const e=t.entity,o=$(n,t.entity,"EntityDetail");return{selectedEntity:e,autoCompleteData:{autoCompleteText:e.name,entityAutoCompleteView:z(n,"common")},trendWithTransactionsReport:o,analytics:X,isAccountingClassesEnabled:V(n)}},function(n,t){return{onTransactionItemClick:e=>{if(t.openTransactionPanel)return void t.openTransactionPanel(e.id,e.type);const o=`${at(e,t.tenantEmailDomain)}`,l=tt(t.location.state?.pathnameStackToGoBack,t.location.pathname);t.navigate(o,{state:{pathnameStackToGoBack:l}})},autoCompleteActions:{onAutoCompleteInputChange:e=>{e.trim().length>=2?n(L({searchString:e,searchOrigin:"common"})):e.trim().length===0&&n(Q("common"))},onAutoCompleteEntity:e=>{const o=nt(e,t.tenantEmailDomain);n(H()),n(K()),t.resetTrendIsFetchedStates(),t.navigate(o,{replace:!0,state:{pathnameStackToGoBack:t.location.state?.pathnameStackToGoBack}})},onCancelAutoComplete:()=>{const e=Z(t.location.state?.pathnameStackToGoBack),o=e.poppedPathname??I();t.navigate(o,{state:{pathnameStackToGoBack:e.newStack}})}},onTrendSelectedPeriodChange:e=>{if(t.closeSidePanel?.(),e==null)t.defaultTransactionTimePeriod!=null&&n(S(t.entity,"EntityDetail",{timeframe:"quarter",timePeriod:t.defaultTransactionTimePeriod}));else{const o=e.currentTimePeriod==null?e.addTimePeriod:{startDate:e.addTimePeriod.startDate,endDate:e.currentTimePeriod.endDate};n(k(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:e.addTimePeriod})),n(S(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:o}))}}}})(U),it=et(function({entityType:n,...t}){const e=A(),o=B(),l=G(),[m,T]=d.useState(!1),[h,D]=d.useState(!1),{tenantEmailDomain:C,entityIdEncoded:x,entityNameEncoded:N}=q(),r=b(x??""),f=b(N??""),p=rt(r,f),j=[r,f].filter(a=>a!=null),i={name:f,id:r,type:n,zeniId:r,qboId:r},g=c(a=>_(a.customerIncomeState,a.vendorExpenseState,a.trendState,i,"quarter")),v=c(a=>J(a).company?.companyInfo.firstMonthOfFY??1),u=c(a=>R(a.trendWithTransactionsState,i,"EntityDetail"));d.useEffect(()=>{m===!1&&p===!0&&(T(!0),o(Y(i)))},[m,p,i]);const E=c(a=>a.trendState.fetchState),P=u?.selectedPeriod?.timePeriod??g,w=function(a,y){return a!=null&&y!=null?{startDate:a.startDate,endDate:y?.endDate}:y}(u?.selectedPeriod?.timePeriod,g);return d.useEffect(()=>{m===!0&&h===!1&&E==="Completed"&&(D(!0),P!=null&&o(k(i,"EntityDetail",{timeframe:u?.selectedPeriod?.timeframe??"quarter",timePeriod:P})))},[m,h,E]),p?s.jsx(ot,{firstMonthOfFY:v,tenantEmailDomain:C,location:l,navigate:e,entity:i,defaultTransactionTimePeriod:w,resetTrendIsFetchedStates:()=>{T(!1),D(!1)},...t}):s.jsx(F,{to:I(j.length)})}),rt=(n,t)=>t!=null&&t.length>0&&n!=null&&n.length>0,I=(n=2)=>{let t="../";for(let e=0;e<n;e++)t=`${t}../`;return t};function xt({entityType:n}){return s.jsx(O,{children:s.jsx(W,{path:"/:entityIdEncoded/:entityNameEncoded/*",element:s.jsx(it,{entityType:n})})})}export{xt as EntityDetailRoutes,xt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-B6jAIe9x.js";import{a as r}from"./sentry-95bdnR3R.js";import{a3 as l,a4 as p,a5 as d,n as m}from"./index-D_hiFYsE.js";import"./mui-AZmtqUsi.js";import c from"./NotFoundScreen-ChEBjJeL.js";import{h as u,g as b}from"./core-CLKYLs-8.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="e5992879-11fa-4121-8a97-eb0ecebef062",e._sentryDebugIdIdentifier="sentry-dbid-e5992879-11fa-4121-8a97-eb0ecebef062")}catch{}})();const _=()=>{const e=u(),a=b(),t=r.useCallback(()=>{window.open("https://www.zeni.ai/demo/request","_blank")},[]),i=r.useCallback(()=>{(()=>{const n=m(a.state?.pathnameStackToGoBack),f=n.poppedPathname??k();e(f,{state:{pathnameStackToGoBack:n.newStack}})})()},[]),o=l(a.pathname);return o!=null?s.jsx(p,{menuItem:d(o),onDemoClick:t,onGoBack:i}):s.jsx(c,{})},k=(e=2)=>{let a="../";for(let t=0;t<e;t++)a=`${a}../`;return a};export{_ as F};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{j as u}from"./liveblocks-B6jAIe9x.js";import{a as f}from"./sentry-95bdnR3R.js";import{u as U,g as _,h as w,t as M,j as l,N as x}from"./core-CLKYLs-8.js";import{z as r,m as P,D as V,d as A,c as N,e as W,Y,M as J,g as K}from"./index-D_hiFYsE.js";import{eW as R,Ly as $,LI as q,Lz as B,fx as G,f_ as H,LE as Q,gm as X,cY as Z,LJ as ee,LK as te}from"./zeni-epic-state-CjQblqOQ.js";import{n as ne}from"./mui-AZmtqUsi.js";import{u as se}from"./useDeviceId-B5LKCqFY.js";import{f as ae}from"./analyticsHelper-BsjRdUZX.js";import{t as ie}from"./getLocaleForTenant-C_VQis3o.js";import"./recharts-CyaYjFwn.js";import"./analytics-BHHyMpuV.js";import"./plaid-2Q72y6JT.js";import"./dnd-BgEYAbRi.js";import"./stripe-DMRn4zHo.js";import"./lottie-C38Bn-X6.js";import"./lexical-DN4b_Twn.js";import"./pdf-BzNDzZ8_.js";import"./utils-CDpOkGne.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="5de3b975-e9fe-4ded-8a70-56e6a4f0f500",t._sentryDebugIdIdentifier="sentry-dbid-5de3b975-e9fe-4ded-8a70-56e6a4f0f500")}catch{}})();const z=(t,a)=>t!=null&&t.length>0&&a==="magic_links";function ze(){const t=U(),a=_(),m=w(),[k]=M(),n=k.get("token"),p=k.get("stytch_token_type"),g=r.getMagicLinkCodeVerifier(),i=se(),{otpChallenge:d,twoFAPhoneNumber:D,magicLinkEmail:c,verifyDeviceFetchState:T,resendVerifyDeviceOTPFetchState:C}=l(e=>e.tenantState),S=l(e=>e.tenantState.fetchState),b=l(e=>e.tenantState.activeTenantFetchState.fetchState),I=l(e=>e.tenantState.signInState),h=l(e=>e.tenantState.magicLinkSignInFetchState.fetchState),s=l(e=>e.tenantState.loggedInUser),o=l(e=>R(e)),y=l(e=>$(e)),E=r.getSignedInUser(),L=P().mode;f.useEffect(()=>{s?.zeniSessionId==null&&n!=null&&z(n,p)&&i!=null&&g!=null&&(r.saveMagicLinkTriggered(n),t(q(n,i,g)))},[n,p,t,i,g,s?.zeniSessionId]),f.useEffect(()=>{I!=="In-Progress"||S!=="Completed"&&b!=="Completed"||s?.zeniSessionId==null||o==null||(n!=null&&r.saveLastUsedMagicLinkToken(n),r.saveSignedInUserWithSession(s,s.zeniSessionId),r.saveSignedInUserTenants(B(y.tenantsInOrder),s.zeniSessionId),G(s.userId,s.zeniSessionId,o.tenantId),t(H(o.tenantId)),r.saveActiveTenantDomainForUser(o.tenantEmailDomain),t(Q("Completed")),V.updateAppLocaleID(ie(o)),ae(s,o,L,void 0,y.tenantsInOrder),X().then(()=>{const e=K();e!=null&&A(e)}),setTimeout(()=>{N.trackLogin(W.Event.loginSuccess,"email",Z(o.productSettings))},2e3))},[I,S,b,s,o,y,L,a.state,t]);const j=f.useCallback(()=>{m("/signin/auth")},[m]),F=f.useCallback(()=>{i!=null&&d!=null&&c!=null&&t(ee(i,c,d))},[i,d,t,c]),O=f.useCallback(e=>{i!=null&&n!=null&&c!=null&&d!=null&&t(te(e,i,c,d))},[i,n,t,c,d]);if(h==="Completed"&&d!=null)return u.jsx(Y,{phoneNumber:D,verifyOtpFetchState:T.fetchState,resendVerifyDeviceOTPFetchState:C,onResendOtp:F,onVerifyOtp:O,onCancelVerifyDevice:j});if(I==="In-Progress"&&S==="Completed"&&s?.zeniSessionId!=null&&o!=null||E!=null){const e=a.state?.origin??"/";return u.jsx(x,{to:e,state:{...a.state,origin:""}})}if(!z(n,p)||g==null||h==="Error"){const e=a.state?.origin??"/",v=n!=null&&r.getLastUsedMagicLinkToken()===n;return u.jsx(x,{to:e,state:{...a.state,origin:"",magicLinkAlreadyUsed:v,magicLinkExpired:!v&&(r.isMagicLinkTriggered(n??"")||h==="Error"&&s?.zeniSessionId==null)}})}return u.jsx(oe,{"data-testid":"smooth-loader",children:u.jsx(J,{size:"ExtraLarge",start:!0})})}const oe=ne.div`
|
|
2
|
-
position: fixed;
|
|
3
|
-
top: 0;
|
|
4
|
-
left: 0;
|
|
5
|
-
right: 0;
|
|
6
|
-
bottom: 0;
|
|
7
|
-
display: flex;
|
|
8
|
-
align-items: center;
|
|
9
|
-
justify-content: center;
|
|
10
|
-
z-index: 9999;
|
|
11
|
-
background-color: ${t=>t.theme.colors.background};
|
|
12
|
-
`;export{ze as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./liveblocks-B6jAIe9x.js";import{h as n,n as e}from"./core-CLKYLs-8.js";import{R as i}from"./index-D_hiFYsE.js";import"./mui-AZmtqUsi.js";import"./sentry-95bdnR3R.js";import"./zeni-epic-state-CjQblqOQ.js";import"./recharts-CyaYjFwn.js";import"./analytics-BHHyMpuV.js";import"./plaid-2Q72y6JT.js";import"./dnd-BgEYAbRi.js";import"./stripe-DMRn4zHo.js";import"./lottie-C38Bn-X6.js";import"./lexical-DN4b_Twn.js";import"./pdf-BzNDzZ8_.js";import"./utils-CDpOkGne.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new o.Error().stack;t&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[t]="9ceba748-25d5-4d32-9a3c-da4194015415",o._sentryDebugIdIdentifier="sentry-dbid-9ceba748-25d5-4d32-9a3c-da4194015415")}catch{}})();const a=e(null,function(o,t){return{onGoBack:()=>{t.navigate(-1)},onGoHome:()=>{t.navigate("/")}}})(i);function _(){const o=n();return r.jsx(a,{navigate:o})}export{_ as default};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-B6jAIe9x.js";import{a as o}from"./sentry-95bdnR3R.js";import{j as f,h as F,u as H,g as _,n as V}from"./core-CLKYLs-8.js";import{m as W,K as M,z as R,bb as U,E as N,X as $,_ as z,A as X,c as l,e as q,a7 as K,bc as G}from"./index-D_hiFYsE.js";import{fF as J,eW as Q,OS as P,OT as Y,vs as Z,vi as g,fH as ee,bS as ae,vn as re,OU as ne}from"./zeni-epic-state-CjQblqOQ.js";import{D as te,e as se,n as oe,S as ie}from"./mui-AZmtqUsi.js";import{u as le}from"./useAskAiCfoHostNavButtonProps-FETbJUjN.js";import{M as de}from"./MobileAppDrawer-BPYh3fz7.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="05227a08-6b5f-4487-a8fd-da40c429eaa5",e._sentryDebugIdIdentifier="sentry-dbid-05227a08-6b5f-4487-a8fd-da40c429eaa5")}catch{}})();const ce={overlayWidth:new N(100,100,30)},fe=({isReferralDrawerOpen:e,closeDrawerHandler:a})=>{const r=W(),n=M();if(R.getSignedInUser()==null)throw Error("Can't access How Referral works without signing in...");const i=()=>{a(!0)},u=f(d=>J(d));return s.jsx(te,{anchor:"right",open:e,PaperProps:{style:{width:ce.overlayWidth.valuePercentage(n),boxShadow:"none"}},slotProps:{backdrop:{style:{opacity:.75,backgroundColor:r.colors.black,cursor:"pointer"}}},onClose:()=>i(),children:s.jsx(se,{in:e,direction:"left",children:s.jsx(ue,{onClick:d=>d.stopPropagation(),children:s.jsx(U,{onDismissClick:i,rewardsPlan:u.rewardsPlan})})})})},ue=oe(ie)`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
`,I="refer-and-earn-status-update",we=V(function(e){const a=P(e),r=e.referralViewState.rewardsPlanFetchState,n=ae([a,r]);return{inviteList:a.invitations,uiState:a.uiState,pendingBonus:a.pendingBonus,earnedBonus:a.earnedBonus,pendingReferrals:a.pendingReferrals,fetchState:n.fetchState,rewardsPlan:a.rewardsPlan}},function(e,a){const{navigate:r}=a;return{onColumnSortConfigChanged:(n,i)=>{e(ne({sortOrder:i,sortkey:n}))},onInviteClick:()=>{l.trackRewardsPageClicked("invite via email"),r("../refer")},onHowItWorksClick:()=>{l.trackRewardsPageClicked("know more"),r("../how-it-works")},onResendInviteClick:n=>{l.trackRewardsPageClicked("resend invite"),e(re(n))},onBackClick:()=>{r("../",{relative:"path"})},onReloadInvitees:()=>{e(g(!0))},onCopyReferralLink:()=>{l.trackRewardsPageClicked("copy referral link")},onClickRefer:()=>{l.trackRewardsPageClicked("refer")},onEventReceived:n=>{n===I&&e(g(!0,!0))}}})(K(G));function be({isReferralDrawerOpen:e}){const a=F(),r=H(),n=_(),[i,u]=o.useState(!1),[d,D]=o.useState(!1),[x,E]=o.useState(!1),[k,C]=o.useState(!1),w=R.getSignedInUser(),h=f(t=>Q(t)),m=f(t=>P(t)),v=m.fetchState,p=f(t=>t.referralViewState.rewardsPlanFetchState),S=Y([m,p]),{areTenantIdsInSync:c}=$();o.useEffect(()=>{h?.rewardsLastViewedTime==null&&x===!1&&(r(Z()),E(!0))},[]),o.useEffect(()=>{!i&&v==="Not-Started"&&c&&(u(!0),r(g(!0)))},[v,r,c]),o.useEffect(()=>{!d&&p.fetchState==="Not-Started"&&c&&(D(!0),r(ee(!0)))},[p,r,c]),o.useEffect(()=>{C(e!=null&&e===!0)},[e]);const[j,A]=o.useState(!1),b=t=>{A(t)},{isAiCfoAccessEnabled:O,onAskAiCfoClick:T}=le({mobileExploreReferrer:"Rewards"});z({isDataReady:S===!0});const L={events:w?.userId!=null?[`private-encrypted-${w.userId}.${I}`]:[],eventCallback:(t,y,B)=>{B.onEventReceived(t)}};return s.jsxs(s.Fragment,{children:[S===!0?s.jsx(X,{analytics:l,onLoad:t=>(y=>{w!=null&&y.trackPageLoaded(q.Event.rewardsPageViewed)})(t)}):null,s.jsx(de,{isAppContentDrawerOpen:j,handleDrawerToggle:b}),k===!0?s.jsx(fe,{closeDrawerHandler:()=>{C(!1),a("..")},isReferralDrawerOpen:k}):null,s.jsx(we,{location:n,navigate:a,currentTenant:h,onClickMenuIcon:()=>{b(!0)},isAiCfoAccessEnabled:O,onAskAiCfoClick:T,...L})]})}export{be as R};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-B6jAIe9x.js";import P from"./NotFoundScreen-ChEBjJeL.js";import{a as c}from"./sentry-95bdnR3R.js";import{h as E,g as x,u as C,j as u,N as k,n as D,o as z,p as v}from"./core-CLKYLs-8.js";import{eW as j,PM as b,Q0 as S,Ff as V,Eo as T,Fe as m,F5 as U,Qg as B,Fh as Q}from"./zeni-epic-state-CjQblqOQ.js";import{m as N,z as O,B as W,a7 as $,bW as K,af as F,bz as M,bX as X}from"./index-D_hiFYsE.js";import"./mui-AZmtqUsi.js";import{R as A}from"./ReimbursementApprovalRuleDetailScreen-D_Tk1V_u.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="bf753263-9230-46f2-b3be-e6573b7f286c",e._sentryDebugIdIdentifier="sentry-dbid-bf753263-9230-46f2-b3be-e6573b7f286c")}catch{}})();const w="reimbursement-approval-rule-update",q=D(function(e){return{approvalView:b(e),remiSetupApproverViewUpdateData:S(e).remiSetupApproverViewUpdateData}},function(e,r){const{navigate:t,location:i}=r;return{onApprovalRulesEventReceived:a=>{a.endsWith(w)&&e(B(!1))},onBackClick:()=>{F(i)?t("../../"):t("../../../reimbursements/setup")},onDeleteRuleClick:a=>{e(U(a,!1))},onEditRuleClick:a=>{a!=null?(e(m(a)),t(`./${a}/edit`)):(e(m()),t("./new"))}}})($(K)),G=()=>{const e=E(),r=x(),t=C(),[i,a]=c.useState(!1),[o,h]=c.useState(!1),d=u(n=>n.remiSetupApproverViewState.fetchState),p=u(n=>j(n)),g=N(),l=u(n=>b(n)),f=u(n=>S(n).remiSetupApproverViewUpdateData);if(c.useEffect(()=>{f?.updateStatus.fetchState==="Completed"&&t(V())},[f]),c.useEffect(()=>{i||d!=="Not-Started"||(a(!0),t(T(!0,!1,!1,!1)))},[i,d,t]),O.getSignedInUser()==null)throw Error("Can't access reimbursement approval without signing in...");c.useEffect(()=>{l.allApprovalRules.length===0&&l.fetchState==="Completed"&&(o||(h(!0),t(m())),e("./new"))},[o,l,t]);const R={events:p.companyId!=null?[`private-encrypted-${p.companyId}.${w}`]:[],eventCallback:(n,_,y)=>{n.endsWith(w)&&y.onApprovalRulesEventReceived(n)}};return p.companyReimbursementInfo?.info?.isReimbursementTOSAccepted===!1?s.jsx(k,{to:"../../promo"}):p.companyReimbursementInfo?.info?.isReimbursementTOSAccepted!==!0||l.fetchState!=="Completed"&&l.fetchState!=="Error"?s.jsx(W,{fetchState:"In-Progress",style:{backgroundColor:g.colors.grey5}}):s.jsx(q,{currentTenant:p,location:r,navigate:e,...R})},I="reimbursement-approval-rule-update",H=D(function(e){const r=b(e),t=S(e).remiSetupApproverViewUpdateData,i={};for(const o of Object.values(e.contactState.contactById))o?.id!=null&&(i[o.id]=o.fullName);const a={};for(const o of Object.values(e.classState.classesByKey))o?.classId!=null&&(a[o.classId]=o.className);return{approvalView:r,remiSetupApproverViewUpdateData:t,vendorNamesById:i,departmentNamesById:a}},function(e,r){const{navigate:t,location:i}=r;return{onApprovalRulesEventReceived:a=>{a.endsWith(I)&&e(B(!1))},onBackClick:()=>{F(i)?t("../../"):t("../../../reimbursements/setup")},onDeleteRuleClick:a=>{e(U(a,!0))},onEditRuleClick:a=>{a!=null?(e(m(a)),t(`./${a}/edit`)):(e(m()),t("./new"))},onReorderRules:a=>{e(Q(a,!0))}}})($(X)),J=()=>{const e=u(t=>j(t)),{isApprovalRulesV3Enabled:r}=M(e?.tenantId);return r?s.jsx(L,{}):s.jsx(G,{})},L=()=>{const e=E(),r=x(),t=C(),[i,a]=c.useState(!1),[o,h]=c.useState(!1),d=u(n=>n.remiSetupApproverViewState.fetchState),p=u(n=>j(n)),g=N(),l=u(n=>b(n)),f=u(n=>S(n).remiSetupApproverViewUpdateData);if(c.useEffect(()=>{f?.updateStatus.fetchState==="Completed"&&t(V())},[f]),c.useEffect(()=>{i||d!=="Not-Started"||(a(!0),t(T(!0,!1,!1,!0)))},[i,d,t]),O.getSignedInUser()==null)throw Error("Can't access reimbursement approval without signing in...");c.useEffect(()=>{l.allApprovalRules.length===0&&l.fetchState==="Completed"&&(o||(h(!0),t(m())),e("./new"))},[o,l,t]);const R={events:p.companyId!=null?[`private-encrypted-${p.companyId}.${I}`]:[],eventCallback:(n,_,y)=>{n.endsWith(I)&&y.onApprovalRulesEventReceived(n)}};return p.companyReimbursementInfo?.info?.isReimbursementTOSAccepted===!1?s.jsx(k,{to:"../../promo"}):p.companyReimbursementInfo?.info?.isReimbursementTOSAccepted!==!0||l.fetchState!=="Completed"&&l.fetchState!=="Error"?s.jsx(W,{fetchState:"In-Progress",style:{backgroundColor:g.colors.grey5}}):s.jsx(H,{currentTenant:p,location:r,navigate:e,...R})};function oe(){return s.jsxs(z,{children:[s.jsx(v,{path:"/",element:s.jsx(J,{})}),s.jsx(v,{path:"/new",element:s.jsx(A,{})}),s.jsx(v,{path:"/:approvalRuleId/edit",element:s.jsx(A,{})}),s.jsx(v,{path:"*",element:s.jsx(P,{})})]})}export{oe as R};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as g}from"./liveblocks-B6jAIe9x.js";import{a as y}from"./sentry-95bdnR3R.js";import{h as _,u as C,g as O,i as k,j as R,n as F}from"./core-CLKYLs-8.js";import{Q0 as E,PM as T,F8 as V,Fk as j,Ff as A,Fg as w,Q1 as B,eW as M,Fe as Q}from"./zeni-epic-state-CjQblqOQ.js";import{z as N,m as P,B as $,bM as W,af as q,bz as K,bN as L}from"./index-D_hiFYsE.js";import"./mui-AZmtqUsi.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="ab9d7f0f-6388-46ee-8d2b-023752825b72",e._sentryDebugIdIdentifier="sentry-dbid-ab9d7f0f-6388-46ee-8d2b-023752825b72")}catch{}})();const G=F(function(e,s){const t=E(e),o=t.remiSetupApproverViewUpdateData?.type??"approval_create",r=o==="approval_create"&&t.allApprovalRules.length!==0;let n=t.allApprovalRules.length===0;return s.approvalRuleId&&(n=t.allApprovalRules.findIndex(p=>p.approvalRuleId===s.approvalRuleId)===0),{localData:t,hideUpperBoundField:r,isLowerBoundDisabled:n,approvalUpdateActionType:o}},function(e,s){const{navigate:t,approvalUpdateDataView:o,approverViewData:r,approvalRuleId:n}=s,p=o.remiSetupApproverViewUpdateData?.type,i=q(s.location);return{onApprovalRuleDataUpdated:a=>{const d=v=>{const b=[];return v.forEach(u=>{const S=u.actors.selectedUsers.map(m=>({type:"user",subType:void 0,userId:m.userId,idType:"user",isImplicitActor:!1})),I=u.actors.selectedNonUsers.map(m=>{const f=(h=m.value,B(h)==null);var h;return{type:f?"attribute":"role",subType:m.value,userId:void 0,idType:void 0,isImplicitActor:!f}}),c=S.concat(I);b.push({action:u.stepType.selectedOption,actors:c,operator:c.length>1?u.stepType.selectedOption==="require_approval"?"or":"and":"is"})}),b},l={amount:{type:"amount",comparator:"range",min:{amount:a.lowerBound,currencyCode:"USD",currencySymbol:"$"},max:{amount:a.upperBound,currencyCode:"USD",currencySymbol:"$"}}};if(p==="approval_create"){const v={criteria:l,steps:d(a.steps),isApplicableOnPendingApprovalEntity:a.applyToExistingReimbursements.includes("applyToExistingReimbursements")};e(w(v))}else{const v={approvalRuleId:n,criteria:l,steps:d(a.steps),isApplicableOnPendingApprovalEntity:a.applyToExistingReimbursements.includes("applyToExistingReimbursements")};e(w(v))}},onResetClick:()=>{e(A()),p==="approval_update"||i?t("../"):r.allApprovalRules.length===0&&r.fetchState==="Completed"?t("../../setup"):t("../")},onBackClick:()=>{e(A()),p==="approval_update"||i?t("../"):r.allApprovalRules.length===0&&r.fetchState==="Completed"?t("../../setup"):t("../")},onSaveRuleClick:()=>{e(j(!1))},onSaveRuleSuccess:()=>{t("../")}}})(W);function H(){const e=_(),s=C(),t=O(),{approvalRuleId:o}=k(),r=N.getSignedInUser(),n=P(),p=R(l=>E(l)),i=R(l=>T(l)),[a,d]=y.useState(!1);if(y.useEffect(()=>{a||(d(!0),s(V(!0)))}),y.useEffect(()=>{i.fetchState==="Not-Started"&&e(o!=null?"../../":"../")},[i,o]),r==null)throw Error("Can't access address page without signing in...");return p.approversDetailsFetchStatus.fetchState=="Not-Started"||p.approversDetailsFetchStatus.fetchState==="In-Progress"?g.jsx($,{fetchState:p.approversDetailsFetchStatus.fetchState,style:{backgroundColor:n.colors.grey5}}):g.jsx(G,{navigate:e,approvalUpdateDataView:p,approvalRuleId:o,approverViewData:i,location:t})}function se(e){return B(e)==null}const J=F(function(e,s){const t=E(e),o=t.remiSetupApproverViewUpdateData?.type??"approval_create",r=[],n={};for(const p of Object.values(e.contactState.contactById))p?.id!=null&&(r.push(p.id),n[p.id]=p.fullName);return{localData:t,approvalUpdateActionType:o,allVendorIds:r,vendorNamesById:n,editingRuleId:o==="approval_update"?s.approvalRuleId:void 0,allApprovalRulesWithUser:T(e).allApprovalRules}},function(e,s){const{navigate:t,approvalUpdateDataView:o,approverViewData:r,approvalRuleId:n}=s,p=o.remiSetupApproverViewUpdateData?.type,i=q(s.location);return{onApprovalRuleDataUpdated:a=>{const d=c=>{const m=[];return c.forEach(f=>{const h=f.actorKind?.selectedOption,U=f.selectedRole?.selectedOption;let D=[];h==="role"&&U!=null?D=[{type:"attribute",subType:U,userId:void 0,idType:void 0,isImplicitActor:!1}]:h==="specific_person"&&(D=(f.persons?.selectedUsers??[]).map(z=>({type:"user",subType:void 0,userId:z.userId,idType:"user",isImplicitActor:!1})));const x=f.action??"require_approval";m.push({action:x,actors:D,operator:D.length>1?x==="require_approval"?"or":"and":"is"})}),m},l=a.amountCriteria,v=a.vendorCriteria,b=a.departmentCriteria,u={};if(l!=null&&l.comparator.selectedOption!=null){const c=l.comparator.selectedOption;u.amount={type:"amount",comparator:c,min:c==="less_than"?void 0:l.min,max:c==="greater_than"?void 0:l.max}}const S=v?.selection.selectedOptions??[];S.length>0&&(u.vendor={type:"vendor",operator:v?.operator.selectedOption??"is",vendorIds:S});const I=b?.selection.selectedOptions??[];if(I.length>0&&(u.department={type:"department",operator:b?.operator.selectedOption??"is",departmentIds:I}),p==="approval_create"){const c={name:a.name,description:a.description,separationOfDuties:a.separationOfDuties,isFallback:a.isFallback,criteria:u,steps:d(a.steps),isApplicableOnPendingApprovalEntity:a.applyToExistingReimbursements.includes("applyToExistingReimbursements")};e(w(c))}else{const c={approvalRuleId:n,name:a.name,description:a.description,separationOfDuties:a.separationOfDuties,isFallback:a.isFallback,criteria:u,steps:d(a.steps),isApplicableOnPendingApprovalEntity:a.applyToExistingReimbursements.includes("applyToExistingReimbursements")};e(w(c))}},onResetClick:()=>{e(A()),p==="approval_update"||i?t("../"):r.allApprovalRules.length===0&&r.fetchState==="Completed"?t("../../setup"):t("../")},onBackClick:()=>{e(A()),p==="approval_update"||i?t("../"):r.allApprovalRules.length===0&&r.fetchState==="Completed"?t("../../setup"):t("../")},onSaveRuleClick:()=>{e(j(!0))},onSaveRuleSuccess:()=>{t("../")},onEditExistingRule:a=>{e(Q(a)),t(p==="approval_update"?`../../${a}/edit`:`../${a}/edit`)}}})(L);function oe(){const e=R(t=>M(t)),{isApprovalRulesV3Enabled:s}=K(e?.tenantId);return s?g.jsx(X,{}):g.jsx(H,{})}function X(){const e=_(),s=C(),t=O(),{approvalRuleId:o}=k(),r=N.getSignedInUser(),n=P(),p=R(l=>E(l)),i=R(l=>T(l)),[a,d]=y.useState(!1);if(y.useEffect(()=>{a||(d(!0),s(V(!0)))}),y.useEffect(()=>{i.fetchState==="Not-Started"&&e(o!=null?"../../":"../")},[i,o]),r==null)throw Error("Can't access address page without signing in...");return p.approversDetailsFetchStatus.fetchState=="Not-Started"||p.approversDetailsFetchStatus.fetchState==="In-Progress"?g.jsx($,{fetchState:p.approversDetailsFetchStatus.fetchState,style:{backgroundColor:n.colors.grey5}}):g.jsx(J,{navigate:e,approvalUpdateDataView:p,approvalRuleId:o,approverViewData:i,location:t},o??"new")}export{oe as R,se as i};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardRoutes-Cox4nEtE.js","assets/sentry-95bdnR3R.js","assets/core-CLKYLs-8.js","assets/zeni-epic-state-CjQblqOQ.js","assets/index-D_hiFYsE.js","assets/mui-AZmtqUsi.js","assets/analytics-BHHyMpuV.js","assets/utils-CDpOkGne.js","assets/withTransactionSidePanel-kr0tYyxP.js","assets/useAskAiCfoHostNavButtonProps-FETbJUjN.js","assets/TransactionDetailScreen-bJ4okRq5.js","assets/decodeURIComponentSafe-Bm32N7cj.js","assets/routePaths-XSngD1ow.js","assets/NotFoundScreen-ChEBjJeL.js","assets/useInitialThreadRequest-D1F5GLCG.js","assets/analyticsHelper-BsjRdUZX.js","assets/CompanyPassportScreen-DUlm9sdh.js","assets/MobileAppDrawer-BPYh3fz7.js","assets/useAiCfoDashboardSuggestedQuestionsChips-CmgL0oiB.js","assets/FeaturePreviewScreen-CNGfajWs.js","assets/ReferralListScreen-BsBo666O.js","assets/index-BUmr5maU.css","assets/BillPayRoutes-C-57jjzC.js","assets/AddressScreen-BRdhnUB3.js","assets/DomesticWireDetailScreen-Dwlu904z.js","assets/DrawerScreen-KqrF4Sq7.js","assets/SetupPagesScreen-Bfb-yG5Q.js","assets/BusinessVerificationPageScreen-CoxJBcce.js","assets/BillPayApprovalRoutes-BrRYqqLJ.js","assets/ReimbursementApprovalRuleDetailScreen-D_Tk1V_u.js","assets/getLocaleForTenant-C_VQis3o.js","assets/ReimbursementRoutes-DSyBtaLh.js","assets/ReimbursementApprovalRoutes-ClbZ-O2b.js","assets/TransactionListRoutes-C7_m6Yqx.js","assets/ZeniAccountStatementScreen-Be29Xc0Q.js","assets/SettingsRoutes-D-CGv9n3.js","assets/accountMappingHelper-BSLlTYQH.js","assets/QBOConnectionScreen-D87ZntTL.js","assets/empty-DdtYEopm.js","assets/index-CtRgwYlG.js","assets/url-Br2V-Pa5.js","assets/index-UrW8im9e.js","assets/ReportsRoutes-CrvdJeby.js","assets/ChargeCardRoutes-DAakvdza.js","assets/PeopleRoutes-CUTyVwx1.js","assets/ExpenseAutomationRoutes-CKsYpo_A.js","assets/TreasuryRoutes-CueVe1jr.js","assets/useCashManagementBanner-Dy5XCSd3.js","assets/VendorsRoutes-DrErfdsR.js","assets/pathToGoBack-ogdURlZM.js","assets/ZeniAccountRoutes-_K25ghKx.js","assets/AddressRoutes-B9BoI8Fv.js","assets/PandLWithForecastRoutes-B0qogd0A.js","assets/CustomerOnboardingRoutes-Dh6ZowLh.js","assets/TransactionDetailRoutes-BX1iNIyW.js","assets/EntityDetailRoutes-COXR1SAJ.js","assets/NotificationRoutes-CM26Uc2-.js","assets/PerformanceRoutes-12eFPdp_.js","assets/RewardsRoutes-DYWFgTvw.js","assets/TaskRoutes-CgfIdOfE.js","assets/TaskListScreen-SFzbbBq2.js","assets/AiCfoScreen-CuCVJ-9z.js","assets/CardsAiCfoScreen-BXut6M7h.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{_ as a,bn as ls,eW as cs,fB as ds,fz as ms,fA as us,gi as _s,fo as Es,cU as Ae,cB as ps,fR as As,ct as xs,bE as gs,bq as Is,fW as Ts,v as js,Lz as hs,bt as Us,LA as bs,bK as Rs,fT as Hs,bJ as Ds,bs as ys,cp as fs,LB as Cs,LC as vs,cR as Os,cT as Ps,cS as Fs,cA as Ls,cH as Bs,o4 as xe,fx as ge,gs as ks,f_ as Ie,gp as Te,gq as je,f$ as Vs}from"./zeni-epic-state-CjQblqOQ.js";import{j as e}from"./liveblocks-B6jAIe9x.js";import{a as v}from"./sentry-95bdnR3R.js";import{u as Ss,h as Ns,i as Ms,g as Zs,j as G,l as he,N as c,o as ws,p as t}from"./core-CLKYLs-8.js";import{m as zs,u as Gs,z as R,F as $s,a as Ws,s as qs,x as L,j as Ys,L as B,D as Ue,t as _,P as Js,c as se,l}from"./index-D_hiFYsE.js";import"./mui-AZmtqUsi.js";import{f as be}from"./analyticsHelper-BsjRdUZX.js";import{t as Ks}from"./getLocaleForTenant-C_VQis3o.js";import"./recharts-CyaYjFwn.js";import"./analytics-BHHyMpuV.js";import"./plaid-2Q72y6JT.js";import"./dnd-BgEYAbRi.js";import"./stripe-DMRn4zHo.js";import"./lottie-C38Bn-X6.js";import"./lexical-DN4b_Twn.js";import"./pdf-BzNDzZ8_.js";import"./utils-CDpOkGne.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},U=new i.Error().stack;U&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[U]="32c15d4a-3113-46ab-9f6e-d0d1c506db63",i._sentryDebugIdIdentifier="sentry-dbid-32c15d4a-3113-46ab-9f6e-d0d1c506db63")}catch{}})();const Qs={dashboard:()=>a(()=>import("./DashboardRoutes-Cox4nEtE.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21])),bills:()=>a(()=>import("./BillPayRoutes-C-57jjzC.js"),__vite__mapDeps([22,1,2,3,4,5,6,7,23,13,24,9,14,25,17,19,26,15,12,27,28,29,30,21])),reimbursement:()=>a(()=>import("./ReimbursementRoutes-DSyBtaLh.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,13,26,17,15,12,27,19,9,14,25,32,29,30,21])),transactions:()=>a(()=>import("./TransactionListRoutes-C7_m6Yqx.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,34,21])),settings:()=>a(()=>import("./SettingsRoutes-D-CGv9n3.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,17,36,23,13,15,27,12,16,37,38,39,40,41,11,28,29,32,21])),reports:()=>a(()=>import("./ReportsRoutes-CrvdJeby.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,13,19,14,12,17,21])),chargeCards:()=>a(()=>import("./ChargeCardRoutes-DAakvdza.js"),__vite__mapDeps([43,1,2,3,4,5,6,7,9,17,26,13,15,12,27,14,23,21])),people:()=>a(()=>import("./PeopleRoutes-CUTyVwx1.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,13,9,17,21])),expenseAutomation:()=>a(()=>import("./ExpenseAutomationRoutes-CKsYpo_A.js"),__vite__mapDeps([45,1,2,3,13,4,5,6,7,9,10,11,12,8,36,25,21])),treasury:()=>a(()=>import("./TreasuryRoutes-CueVe1jr.js"),__vite__mapDeps([46,1,2,3,4,5,6,7,13,26,17,15,12,27,9,14,47,19,21])),vendors:()=>a(()=>import("./VendorsRoutes-DrErfdsR.js"),__vite__mapDeps([48,1,2,3,4,5,6,7,23,13,19,12,49,9,17,25,36,21])),zeniAccounts:()=>a(()=>import("./ZeniAccountRoutes-_K25ghKx.js"),__vite__mapDeps([50,1,2,3,4,5,6,7,47,13,26,17,15,12,27,19,24,23,9,34,21]))},Xs=["bills","transactions","settings","reimbursement","reports","chargeCards","people"],ae=i=>{"requestIdleCallback"in window?requestIdleCallback(i):setTimeout(i,100)},ea=l(()=>a(()=>import("./ReportsRoutes-CrvdJeby.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,13,19,14,12,17,21]))),sa=l(()=>a(()=>import("./AddressRoutes-B9BoI8Fv.js"),__vite__mapDeps([51,1,2,3,23,4,5,6,7,13,21]))),aa=l(()=>a(()=>import("./PeopleRoutes-CUTyVwx1.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,13,9,17,21]))),na=l(()=>a(()=>import("./PandLWithForecastRoutes-B0qogd0A.js"),__vite__mapDeps([52,1,2,3,4,5,6,7,13,19,9,14,12,17,21]))),ta=l(()=>a(()=>import("./CustomerOnboardingRoutes-Dh6ZowLh.js"),__vite__mapDeps([53,1,2,3,23,4,5,6,7,13,37,38,39,40,41,11,21]))),ia=l(()=>a(()=>import("./VendorsRoutes-DrErfdsR.js"),__vite__mapDeps([48,1,2,3,4,5,6,7,23,13,19,12,49,9,17,25,36,21]))),ra=l(()=>a(()=>import("./TransactionDetailRoutes-BX1iNIyW.js"),__vite__mapDeps([54,1,2,3,13,4,5,6,7,10,9,11,12,21]))),Re=l(()=>a(()=>import("./EntityDetailRoutes-COXR1SAJ.js"),__vite__mapDeps([55,1,2,3,4,5,6,7,11,8,9,10,12,21]))),oa=l(()=>a(()=>import("./DashboardRoutes-Cox4nEtE.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]))),He=l(()=>a(()=>import("./BillPayRoutes-C-57jjzC.js"),__vite__mapDeps([22,1,2,3,4,5,6,7,23,13,24,9,14,25,17,19,26,15,12,27,28,29,30,21]))),la=l(()=>a(()=>import("./SettingsRoutes-D-CGv9n3.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,17,36,23,13,15,27,12,16,37,38,39,40,41,11,28,29,32,21]))),De=l(()=>a(()=>import("./ReimbursementRoutes-DSyBtaLh.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,13,26,17,15,12,27,19,9,14,25,32,29,30,21]))),ca=l(()=>a(()=>import("./ZeniAccountRoutes-_K25ghKx.js"),__vite__mapDeps([50,1,2,3,4,5,6,7,47,13,26,17,15,12,27,19,24,23,9,34,21]))),da=l(()=>a(()=>import("./TreasuryRoutes-CueVe1jr.js"),__vite__mapDeps([46,1,2,3,4,5,6,7,13,26,17,15,12,27,9,14,47,19,21]))),ma=l(()=>a(()=>import("./TransactionListRoutes-C7_m6Yqx.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,34,21]))),ua=l(()=>a(()=>import("./ChargeCardRoutes-DAakvdza.js"),__vite__mapDeps([43,1,2,3,4,5,6,7,9,17,26,13,15,12,27,14,23,21]))),_a=l(()=>a(()=>import("./NotificationRoutes-CM26Uc2-.js"),__vite__mapDeps([56,1,2,3,13,4,5,6,7,9,21]))),Ea=l(()=>a(()=>import("./PerformanceRoutes-12eFPdp_.js"),__vite__mapDeps([57,1,2,3,13,4,5,6,7,9,17,21]))),pa=l(()=>a(()=>import("./ExpenseAutomationRoutes-CKsYpo_A.js"),__vite__mapDeps([45,1,2,3,13,4,5,6,7,9,10,11,12,8,36,25,21]))),Aa=l(()=>a(()=>import("./RewardsRoutes-DYWFgTvw.js"),__vite__mapDeps([58,1,2,3,4,5,6,7,13,20,9,17,21]))),xa=l(()=>a(()=>import("./TaskRoutes-CgfIdOfE.js"),__vite__mapDeps([59,1,2,3,13,4,5,6,7,14,17,60,9,21]))),ga=l(()=>a(()=>import("./AiCfoScreen-CuCVJ-9z.js"),__vite__mapDeps([61,1,2,3,4,5,6,7,18,49,21]))),ye=l(()=>a(()=>import("./CardsAiCfoScreen-BXut6M7h.js"),__vite__mapDeps([62,1,2,3,4,5,6,7,21]))),D=l(()=>a(()=>import("./NotFoundScreen-ChEBjJeL.js"),__vite__mapDeps([13,1,2,3,4,5,6,7,21]))),Ia=l(()=>a(()=>import("./TaskListScreen-SFzbbBq2.js"),__vite__mapDeps([60,1,2,3,4,5,6,7,9,17,21])));function wa({setTenantEmailDomain:i}){const U=Ss(),V=Ns(),{tenantEmailDomain:o}=Ms(),S=zs().mode,{setLoading:f,clearAllLoading:O,clearLoading:Z}=Gs(),y=R.getSignedInUserTenant(o)?.tenantId,j=R.getSignedInUser(),K=ls(j),$=Zs(),[N,Ce]=v.useState(!1),r=G(n=>cs(n)),{useFeatureGate:P}=$s(),w=Ws(),ve=qs(),{isFeatureEnabled:Oe}=P(L.isExpenseAutomationEnabled),{isFeatureEnabled:Pe}=P(L.isExpenseAutomationEnabledV2),Fe=Pe||Oe&&K,{isFeatureEnabled:Le}=P(L.isDepositAccountsFeatureEnabled),{isFeatureEnabled:Be}=P(L.isTreasuryEnabled),{isFeatureEnabled:ke}=P(L.isChargeCardFeatureEnabled),{isFeatureEnabled:ne}=P(L.isDebitCardFeatureEnabled),h=G(n=>n.tenantState.fetchState),p=G(n=>n.tenantState.activeTenantFetchState.fetchState),u=p==="Completed"||h==="Completed"?ds(ne,r):void 0,W=p==="Completed"||h==="Completed"?ms(r):void 0,Ve=p==="Completed"||h==="Completed"?us(r):void 0,Se=ke||ne||!!Ve||!!W||!!u,{isFeatureEnabled:Ne}=P(L.isSettingsFeatureEnabled),{isFeatureEnabled:Q}=P(L.isAiCfoFileUploadEnabled),q=G(n=>_s(n));if(o!=null){const n=R.getSignedInUserTenant(o);j!=null&&n!=null&&be(j,r,S)}const z={tenantId:y,userId:j?.userId,sessionId:j?.zeniSessionId},te=Es(),E=Ys(),Me=r.company==null||E?.loggedInUserRoleMap!=null&&Ae(E.loggedInUserRole),Ze=ps(E?.loggedInUserRoleMap),ie=v.useRef(!0),re=he("/:tenantEmailDomain/onboarding/*")!==null,X=he("/:tenantEmailDomain/month_end_close_checks/review/:selectedTab/:selectedPeriod/*"),we=G(n=>z.tenantId!=null?As(n,z.tenantId):void 0);v.useEffect(()=>{f(B.TENANT_FETCHING),i(o)},[o]),v.useEffect(()=>{if(X!=null&&y!=null){const n=X.params.selectedPeriod;if(n!=null){const b=n.split("-");if(b.length===2){const d=xs(Number(b[0])),s=Number(b[1]),m=gs(`01-${d<10?`0${d}`:d}-${s}`,Ue.getLocalizedStrings().dateFormat.analytics.DDDashMMDashYYYY),M=Is();m.isAfter(M,"month")===!1?U(Ts(y,{month:d,year:s})):V("./month_end_close_checks/review")}}}},[X,y]),v.useEffect(()=>{N||(Ce(!0),f(B.TENANT_FETCHING)),ie.current?ie.current=!1:!js(te,z)&&R.isSignedIn()&&(f(B.TENANT_FETCHING),function(n,b,d,s){if(ge(b?.userId,b?.zeniSessionId,n.tenantId),d(ks(!0)),d(Ie(n.tenantId)),n.tenantId!=null&&_.clearTenant(n.tenantId),n.tenantId!=null){const m=R.getSignedInUserTenantWithId(n.tenantId);s&&Ue.updateAppLocaleID(Ks(s)),m?.tenantEmailDomain!=null&&R.saveActiveTenantDomainForUser(m?.tenantEmailDomain)}n.userId!=null?se.identify(n.userId,{tenant_id:n.tenantId}):se.resetUserIdentity()}(z,j,U,we))},[z,te,j,U,R]),v.useEffect(()=>{R.isSignedIn()&&(f(B.TENANT_FETCHING),function(n,b,d,s,m,M,k){if(d==null&&s==null)return void console.warn("There is no current tenant selected!!");const Y=s!=null&&m?.zeniSessionId!=null,is=d==null||d.tenantId!==s,rs=d!=null&&d.excludedResources==null,os=d!=null&&d.externalConnections==null;if(Y&&is){k(Ie(s));const J=R.getSignedInUserTenantWithId(s);J?.tenantEmailDomain!=null&&R.saveActiveTenantDomainForUser(J?.tenantEmailDomain),ge(m?.userId,m?.zeniSessionId,s),_.shouldFetchExcludedResources(s)&&(_.markExcludedResourcesFetchStarted(s),k(Te(m.userId,s))),_.shouldFetchConnections(s)&&(_.markConnectionsFetchStarted(s),k(je(m.userId,s)))}else Y&&rs&&_.shouldFetchExcludedResources(s)&&(_.markExcludedResourcesFetchStarted(s),k(Te(m.userId,s))),Y&&os&&_.shouldFetchConnections(s)&&(_.markConnectionsFetchStarted(s),k(je(m.userId,s)));if(Y){se.identify(m.userId,{tenant_id:s});const J=s==null||s!=null&&(b==="Completed"||b==="Error");n==="Completed"||b!=="Not-Started"&&b!=="Error"||s==null||!_.shouldFetchActiveTenant(s)||(_.markActiveTenantFetchStarted(s),M(B.TENANT_FETCHING),k(Vs(m.userId,s,m.zeniSessionId))),J&&(n==="Not-Started"||n==="Error")&&_.shouldFetchAllTenants()&&(_.markAllTenantsFetchStarted(),k(xe(m.userId,m.zeniSessionId)))}}(h,p,r,y,j,f,U))},[y,p]),v.useEffect(()=>{R.isSignedIn()&&h==="Completed"&&q.tenantsBaseInOrder.length>0&&(Z(B.TENANT_FETCHING),R.saveSignedInUserTenants(hs(q.tenantsBaseInOrder)),j!=null&&be(j,r,S,void 0,q.tenantsBaseInOrder))},[q,h,r,j]),v.useEffect(()=>{p==="In-Progress"&&f(B.TENANT_FETCHING),p!=="Completed"&&p!=="Error"||(p==="Completed"&&y!=null?(O(),_.markActiveTenantFetchCompleted(y)):p==="Error"&&y!=null&&(_.markActiveTenantFetchFailed(y),Z(B.TENANT_FETCHING),Z(B.TENANT_SWITCHING))),h!=="Completed"&&h!=="Error"||(h==="Completed"?_.markAllTenantsFetchCompleted():h==="Error"&&_.markAllTenantsFetchFailed())},[p,h,y,N]);const oe=v.useRef(!1);v.useEffect(()=>{!oe.current&&p==="Completed"&&N&&(oe.current=!0,function(n=Xs,b=3e3){setTimeout(()=>{const d=s=>{if(s>=n.length)return;const m=n[s],M=Qs[m];M!=null?M().then(()=>ae(()=>d(s+1))).catch(()=>ae(()=>d(s+1))):d(s+1)};ae(()=>d(0))},b)}())},[p,N]);const C=r?.userRole!=null&&Us(r?.userRole),{isFeatureEnabled:ze}=P(L.isReferralFeatureEnabled),Ge=r?.userRole!=null&&r.userRole.includes("charge_card_user"),$e=r?.userRole!=null&&r.userRole.includes("charge_card_admin"),F=r?.userRole!=null&&Ae(r.userRole),le=r?.company==null||r.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!C,ce=Se&&!C,We=bs(E?.loggedInUserRoleMap),qe=r.externalConnections?.accounting[0]?.isValid,de=r.company?.companyOnboardingInfo.isOnboardingCompleted,me=r?.company==null||r.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!C,ue=me&&Rs(E?.loggedInUserRoleMap),_e=Le&&!C,Ye=r.company!=null&&Hs(r.company),Je=Be&&Ye===!0&&!C,Ke=le&&Ds(E?.loggedInUserRoleMap),Qe=ce&&ys(E?.loggedInUserRoleMap),Xe=_e&&fs(E?.loggedInUserRoleMap),es=Cs(E?.loggedInUserRoleMap),ss=vs(E?.loggedInUserRoleMap),A=Os(E?.loggedInUserRoleMap),x=Ps(E?.loggedInUserRoleMap),g=Fs(E?.loggedInUserRoleMap),I=Ls(E?.loggedInUserRoleMap),T=Bs(E?.loggedInUserRoleMap),Ee=le&&I,pe=me&&T,as=_e&&A,ns=Je&&x,ee=ce&&g,ts=r.excludedResources?.resources?.find(n=>n.resource==="/invites")!=null||Ze===!0||We===!0||es===!0||ss===!0;return R.isSignedIn()?y==null?h==="Completed"?e.jsx(c,{to:"/",replace:!0,state:{...$.state,message:"...",origin:$.pathname}}):(j!=null&&h!=="In-Progress"&&U(xe(j.userId,j.zeniSessionId)),null):p!=="In-Progress"&&p!=="Not-Started"||h==="Completed"?(de===!0||K&&!re)&&qe===!1&&u===!1&&W===!1?(i(void 0),e.jsx(c,{to:"/connection/auth",replace:!0})):!N||de!==!1||re||K?N&&r?.userRole&&u!=null&&W!=null&&o!=null&&Object.keys(E.loggedInUserRoleMap).length>0?e.jsx(ws,{children:e.jsxs(t,{element:e.jsx(Js,{}),children:[e.jsx(t,{path:"/",element:e.jsx(Ta,{isDashboardAccess:F,isUserHasZeniAccountsAccess:A,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:I,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:x,isTenantBankingOnly:u,isTenantCardsOnly:W})}),e.jsx(t,{path:"dashboard/*",element:F?e.jsx(oa,{}):e.jsx(H,{isUserHasZeniAccountsAccess:A,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:I,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:x,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reports/*",element:F?e.jsx(ea,{}):e.jsx(H,{isUserHasZeniAccountsAccess:A,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:I,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:x,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"people/*",element:ts||F?e.jsx(aa,{}):e.jsx(H,{isUserHasZeniAccountsAccess:A,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:I,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:x,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"forecast/*",element:F?e.jsx(na,{}):e.jsx(H,{isUserHasZeniAccountsAccess:A,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:I,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:x,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"onboarding/*",element:e.jsx(ta,{})}),e.jsx(t,{path:"transaction/*",element:F&&C===!1||Ge||$e?e.jsx(ra,{}):e.jsx(H,{isUserHasZeniAccountsAccess:A,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:I,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:x,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"transactions/*",element:F&&C===!1?e.jsx(ma,{}):e.jsx(H,{isUserHasZeniAccountsAccess:A,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:I,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:x,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"customer/*",element:F&&C===!1?e.jsx(Re,{entityType:"customer"}):e.jsx(H,{isUserHasZeniAccountsAccess:A,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:I,isUserHasReimbursementAccess:T,isTenantBankingOnly:u,isUserHasTreasuryAccess:x,tenantEmailDomain:o})}),e.jsx(t,{path:"vendor/*",element:F&&C===!1?e.jsx(Re,{entityType:"vendor"}):e.jsx(H,{isUserHasZeniAccountsAccess:A,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:I,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:x,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"tasks",element:e.jsx(Ia,{})}),e.jsx(t,{path:"tasks/*",element:e.jsx(xa,{})}),e.jsx(t,{path:"address/*",element:Ke||ue||Xe||Qe?e.jsx(sa,{}):e.jsx(H,{isUserHasZeniAccountsAccess:A,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:I,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:x,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"checking/*",element:as?e.jsx(ca,{}):e.jsx(D,{})}),e.jsx(t,{path:"treasury/*",element:ns?e.jsx(da,{}):e.jsx(D,{})}),e.jsx(t,{path:"performance",element:ve?e.jsx(Ea,{}):e.jsx(fe,{tenantEmailDomain:o})}),e.jsx(t,{path:"month_end_close_checks/review/*",element:Fe&&C===!1?e.jsx(pa,{}):e.jsx(fe,{tenantEmailDomain:o})}),e.jsx(t,{path:"notifications/*",element:e.jsx(_a,{})}),e.jsx(t,{path:"vendors/*",element:Me?e.jsx(ia,{}):e.jsx(D,{})}),e.jsx(t,{path:"bill/*",element:Ee?e.jsx(He,{}):e.jsx(H,{isUserHasZeniAccountsAccess:A,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:I,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:x,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"bills/*",element:Ee?e.jsx(He,{}):e.jsx(H,{isUserHasZeniAccountsAccess:A,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:I,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:x,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reimbursement/*",element:pe?e.jsx(De,{}):e.jsx(H,{isUserHasZeniAccountsAccess:A,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:I,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:x,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reimbursements/*",element:pe?e.jsx(De,{}):e.jsx(H,{isUserHasZeniAccountsAccess:A,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:I,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:x,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"settings/*",element:Ne?e.jsx(la,{hasAdminLevelAccess:ue}):e.jsx(D,{})}),e.jsx(t,{path:"cards/ask",element:ee&&w?e.jsx(ye,{isFileUploadEnabled:Q}):e.jsx(D,{})}),e.jsx(t,{path:"cards/ask/:session_id",element:ee&&w?e.jsx(ye,{isFileUploadEnabled:Q}):e.jsx(D,{})}),e.jsx(t,{path:"cards/*",element:ee?e.jsx(ua,{}):e.jsx(D,{})}),e.jsx(t,{path:"rewards/*",element:ze?e.jsx(Aa,{}):e.jsx(D,{})}),e.jsx(t,{path:"/ai-cfo",element:w?e.jsx(c,{to:"explore"}):e.jsx(D,{})}),e.jsx(t,{path:"/ai-cfo/",element:w?e.jsx(c,{to:"explore"}):e.jsx(D,{})}),e.jsx(t,{path:"/ai-cfo/:session_id",element:w?e.jsx(ga,{isFileUploadEnabled:Q}):e.jsx(D,{})}),e.jsx(t,{path:"*",element:e.jsx(D,{})})]})}):null:(i(void 0),e.jsx(c,{to:"onboarding",replace:!0})):null:(console.warn("User logged out!!"),i(void 0),e.jsx(c,{to:"/signin/auth",replace:!0,state:{...$.state,message:"...",origin:$.pathname}}))}const Ta=({isDashboardAccess:i,isUserHasZeniAccountsAccess:U,isUserHasChargeCardAccess:V,isUserHasBillPayAccess:o,isUserHasReimbursementAccess:S,isUserHasTreasuryAccess:f,isTenantBankingOnly:O,isTenantCardsOnly:Z})=>O===!0&&U?e.jsx(c,{to:"checking"}):Z===!0?e.jsx(c,{to:"cards"}):i?e.jsx(c,{to:"dashboard"}):U?e.jsx(c,{to:"checking"}):f?e.jsx(c,{to:"treasury"}):V?e.jsx(c,{to:"cards"}):o?e.jsx(c,{to:"bills"}):S?e.jsx(c,{to:"reimbursements"}):e.jsx(c,{to:"dashboard"}),H=({isUserHasZeniAccountsAccess:i,isUserHasChargeCardAccess:U,isUserHasBillPayAccess:V,isUserHasReimbursementAccess:o,isUserHasTreasuryAccess:S,isTenantBankingOnly:f,tenantEmailDomain:O})=>f===!0||i?e.jsx(ba,{tenantEmailDomain:O}):S?e.jsx(Ua,{tenantEmailDomain:O}):U?e.jsx(Ra,{tenantEmailDomain:O}):V?e.jsx(ha,{tenantEmailDomain:O}):o?e.jsx(ja,{tenantEmailDomain:O}):e.jsx(D,{}),ja=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/reimbursements`}),ha=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/bills`}),Ua=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/treasury`}),ba=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/checking`}),Ra=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/cards`}),fe=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/dashboard`});export{H as FallBackRoute,wa as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as f}from"./liveblocks-B6jAIe9x.js";import{a as u,b as T,q as A}from"./sentry-95bdnR3R.js";import{u as D,h as z,j as c,g as F,N as M,n as O}from"./core-CLKYLs-8.js";import{u as j,z as s,m as P,c as w,D as _,d as B,e as N,G,g as V,f as W,h as v}from"./index-D_hiFYsE.js";import{eW as Y,Ly as $,Lz as q,fx as H,f_ as J,LE as K,gm as Q,cY as R,LF as y,LG as X,LH as Z,bY as b}from"./zeni-epic-state-CjQblqOQ.js";import"./mui-AZmtqUsi.js";import{u as ee}from"./useDeviceId-B5LKCqFY.js";import{f as te}from"./analyticsHelper-BsjRdUZX.js";import{t as ne}from"./getLocaleForTenant-C_VQis3o.js";import"./recharts-CyaYjFwn.js";import"./analytics-BHHyMpuV.js";import"./plaid-2Q72y6JT.js";import"./dnd-BgEYAbRi.js";import"./stripe-DMRn4zHo.js";import"./lottie-C38Bn-X6.js";import"./lexical-DN4b_Twn.js";import"./pdf-BzNDzZ8_.js";import"./utils-CDpOkGne.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new t.Error().stack;i&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[i]="cd277e24-c90b-49db-adcf-81623cfb10b7",t._sentryDebugIdIdentifier="sentry-dbid-cd277e24-c90b-49db-adcf-81623cfb10b7")}catch{}})();const ie=O(function(t,i){const d=t.tenantState.fetchState,g=t.tenantState.sendEmailMagicLinkFetchState,{magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:l}=i;return{googleClientId:v.googleClientId,microsoftClientId:v.microsoftClientId,signInError:t.tenantState.error?.error,fetchState:d,sendMagicLinkStatus:g,magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:l}},function(t,i){const{location:d,navigate:g}=i;return console.warn(JSON.stringify(window.location)),{onOAuthError:(n,a)=>{A({message:`OAuth error from provider ${a} with error ${n}`,level:"error",tags:{authProvider:a,errorType:"zeni.login.error"},extra:{error:n,windowLocation:window.location.href}})},onOAuthSuccess:(n,a)=>{const l=a==="google"?window.location.origin:window.location.origin+window.location.pathname;t(Z({authCode:n,oauthProvider:a,appType:"web",redirectUri:b(l),sourceUri:b(d.state!=null?d.state.origin:"")}))},getSignedInUser:()=>s.getSignedInUser(),onSignedInCallback:()=>{const n=d.state?.origin;n&&n!=="/"?g(n,{replace:!0}):window.open(window.location.origin,"_self")},sendMagicLink:n=>{const{deviceId:a}=i;a!=null&&(s.saveMagicLinkEmail(n),t(X(n,a)))},clearSignInError:()=>{t(y())}}})(W),ae=T.memo(ie);function ve({setTenantEmailDomain:t}){const i=D(),d=z(),{clearAllLoading:g}=j(),n=s.getSignedInUser();u.useLayoutEffect(()=>{g()},[g]);const a=ee(),l=c(e=>e.tenantState.magicLinkCodeVerifier),{sendEmailMagicLinkFetchState:L,accountLocked:x,accountUnlockTime:h}=c(e=>e.tenantState),p=c(e=>e.tenantState.fetchState),k=c(e=>e.tenantState.activeTenantFetchState.fetchState),S=c(e=>e.tenantState.signInState),o=c(e=>e.tenantState.loggedInUser),r=c(e=>Y(e)),I=c(e=>$(e)),m=F(),E=P().mode,C=m.state?.magicLinkExpired,U=m.state?.magicLinkAlreadyUsed;if(u.useEffect(()=>{L.fetchState==="Completed"&&l!=null&&(w.trackSignInLinkSent(),s.saveMagicLinkCodeVerifier(l))},[L.fetchState,l]),u.useEffect(()=>{t(void 0)},[]),u.useEffect(()=>{S!=="In-Progress"||p!=="Completed"&&k!=="Completed"||o?.zeniSessionId==null||r==null||(s.savePayNowInfoTooltip(!0,o.zeniSessionId),s.saveSignedInUserWithSession(o,o.zeniSessionId),s.saveSignedInUserTenants(q(I.tenantsInOrder),o.zeniSessionId),H(o.userId,o.zeniSessionId,r.tenantId),i(J(r.tenantId)),s.saveActiveTenantDomainForUser(r.tenantEmailDomain),i(K("Completed")),_.updateAppLocaleID(ne(r)),te(o,r,E,void 0,I.tenantsInOrder),Q().then(()=>{const e=V();e!=null&&B(e)}),setTimeout(()=>{w.trackLogin(N.Event.loginSuccess,o.authProvider??"google",R(r.productSettings))},2e3))},[S,p,k,o,r,I,E,m.state,i]),S==="In-Progress"&&p==="Completed"&&o?.zeniSessionId!=null&&r!=null||n!=null){const e=m.state?.origin??"/";return f.jsx(M,{to:e,state:{...m.state,origin:""}})}return f.jsxs(f.Fragment,{children:[f.jsx(ae,{magicLinkExpired:!!C,magicLinkAlreadyUsed:!!U,magicLinkExpiredEmail:s.getMagicLinkEmail()??void 0,location:m,navigate:d,deviceId:a??void 0,showEmailLogin:!0}),x===!0&&h!=null?f.jsx(G,{onClose:()=>i(y()),unlockDate:h}):null]})}export{ve as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-B6jAIe9x.js";import{a}from"./sentry-95bdnR3R.js";import{u,g as m,h as g,N as p}from"./core-CLKYLs-8.js";import{z as c,B as y,t as b,c as d,e as h}from"./index-D_hiFYsE.js";import{gr as x,gs as I,LW as w}from"./zeni-epic-state-CjQblqOQ.js";import{n as j}from"./mui-AZmtqUsi.js";import"./recharts-CyaYjFwn.js";import"./analytics-BHHyMpuV.js";import"./plaid-2Q72y6JT.js";import"./dnd-BgEYAbRi.js";import"./stripe-DMRn4zHo.js";import"./lottie-C38Bn-X6.js";import"./lexical-DN4b_Twn.js";import"./pdf-BzNDzZ8_.js";import"./utils-CDpOkGne.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="be79d1e9-55d6-4c5a-b20e-90cc2e29c6d7",e._sentryDebugIdIdentifier="sentry-dbid-be79d1e9-55d6-4c5a-b20e-90cc2e29c6d7")}catch{}})();function $(){const e=u(),t=m(),i=g(),n=a.useRef(!1),l=c.isSignedIn(),r=t.state?.message==="logout",o=r||l;return a.useEffect(()=>{o&&!n.current&&(n.current=!0,setTimeout(()=>{try{c.clearAll(),e(x()),e(I(!1)),w(),b.reset(),d.trackLogout(h.Event.logoutSuccess),d.resetUserIdentity()}catch(f){console.error("Error during sign out:",f)}finally{r||i("/signin/auth",{replace:!0})}},0))},[o,r]),o?s.jsx(v,{children:s.jsx(y,{fetchState:"In-Progress"})}):s.jsx(p,{to:"../",replace:!0})}const v=j.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`;export{$ as default};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./liveblocks-B6jAIe9x.js";import{a as f}from"./sentry-95bdnR3R.js";import{t as u,u as h,j as y,N as I}from"./core-CLKYLs-8.js";import{LT as b,fx as w,B2 as x}from"./zeni-epic-state-CjQblqOQ.js";import{z as c,B as j,I as S,N as D}from"./index-D_hiFYsE.js";import{n as l}from"./mui-AZmtqUsi.js";import"./recharts-CyaYjFwn.js";import"./analytics-BHHyMpuV.js";import"./plaid-2Q72y6JT.js";import"./dnd-BgEYAbRi.js";import"./stripe-DMRn4zHo.js";import"./lottie-C38Bn-X6.js";import"./lexical-DN4b_Twn.js";import"./pdf-BzNDzZ8_.js";import"./utils-CDpOkGne.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f227f932-214b-4c5c-ad67-9b662cc19cad",e._sentryDebugIdIdentifier="sentry-dbid-f227f932-214b-4c5c-ad67-9b662cc19cad")}catch{}})();const F=()=>{const[e]=u(),t=e.get("code")??"",s=e.get("state")??"",p=e.get("profileId")??"",[n,g]=f.useState(!1),a=h(),i=y(m=>b(m)),r=c.getSignedInUser(),d=c.getSignedInUserTenantWithId(s);if(r==null||d==null)return o.jsx(I,{to:"/signin/auth",replace:!0});if(r==null)throw Error("Can't access this page without signing in...");return w(r.userId,r.zeniSessionId,d?.tenantId),f.useEffect(()=>{n||(g(!0),a(x(t,p,s)))},[n,a]),i.fetchState==="Error"?o.jsx(E,{children:o.jsx(T,{children:i.error?.message??""})}):(i.fetchState==="Completed"&&window.close(),o.jsx(j,{fetchState:"In-Progress"}))},E=l.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
width: 100%;
|
|
4
|
-
height: 100vh;
|
|
5
|
-
flex-direction: row;
|
|
6
|
-
justify-content: center;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
9
|
-
`,T=l(D.LargeRegular)`
|
|
10
|
-
display: flex;
|
|
11
|
-
color: ${S.important};
|
|
12
|
-
`;export{F as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-B6jAIe9x.js";import{a as u}from"./sentry-95bdnR3R.js";import{h as x,u as B,g as $,i as j,j as p}from"./core-CLKYLs-8.js";import{KR as s,KQ as v,R7 as C,eW as T,R8 as z}from"./zeni-epic-state-CjQblqOQ.js";import{K as D,at as g,m as E,z as L,B as P,cd as N,n as R}from"./index-D_hiFYsE.js";import{n as _}from"./mui-AZmtqUsi.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c4ab19bf-0efa-4fdf-895e-612b40b5a34b",e._sentryDebugIdIdentifier="sentry-dbid-c4ab19bf-0efa-4fdf-895e-612b40b5a34b")}catch{}})();const K=_.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`;function W(){const e=x(),n=B(),d=D(),f=$();let{accountId:a}=j(),l=`${g.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${a}`;a==null&&f.pathname.includes(`${s}/statements`)&&(a=s,l=`${g.bankingMicroServiceBaseUrl}/1.0/${s}`);const[m,b]=u.useState(!1),h=E();u.useEffect(()=>{m||(b(!0),n(v(a??"",!1)))},[m,n]);const o=p(t=>C(t,a??"")),y=()=>{const t=R(f.state?.pathnameStackToGoBack),S=t.poppedPathname??"..";e(S,{state:{pathnameStackToGoBack:t.newStack}})},r=L.getSignedInUser(),c=p(t=>T(t)),I={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:c.tenantId??""},w=z(a??"")===!0?s:o.zeniAccountDetail?.accountLast4??"",k=c.company?.companyInfo.companyLegalName??c.companyName;if(r==null)throw Error("Can't access address page without signing in...");return o.fetchState!=="Completed"?i.jsx(P,{fetchState:"In-Progress",style:{backgroundColor:h.colors.grey5}}):i.jsx(K,{windowSize:d,children:i.jsx(N,{currentTenantCompanyName:k,statementListView:o,accountLast4:w,onBackClick:y,authParams:I,downloadEndPoint:l})})}export{W as Z};
|