@zeniai/web-app-ui 5.0.38-qa → 5.0.39-qa
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-CkOp0KBJ.js +1 -0
- package/dist/assets/AddressScreen-BSQICFhr.js +9 -0
- package/dist/assets/{AiCfoScreen-Ca4LNe3w.js → AiCfoScreen-CrnjyMsM.js} +3 -3
- package/dist/assets/{BillPayApprovalRoutes-CJ8wuAz_.js → BillPayApprovalRoutes-BlGzzdX8.js} +1 -1
- package/dist/assets/{BillPayRoutes-BRlZ70M1.js → BillPayRoutes-BFdnUhCL.js} +1 -1
- package/dist/assets/{BusinessVerificationPageScreen-eXEfIkto.js → BusinessVerificationPageScreen-LIgZfYZl.js} +1 -1
- package/dist/assets/{ChargeCardRoutes-CvXNOvHK.js → ChargeCardRoutes-CdIJyx1v.js} +8 -8
- package/dist/assets/{CompanyPassportScreen-Gh2Ydu5q.js → CompanyPassportScreen-BFNeCyKS.js} +1 -1
- package/dist/assets/{ConnectionAuthScreen-BFFRkNcH.js → ConnectionAuthScreen-BvOF39We.js} +1 -1
- package/dist/assets/CustomerOnboardingAuthScreen-B-fgrrwe.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-BWJytPj5.js → CustomerOnboardingRoutes-Ckhkc2-o.js} +4 -4
- package/dist/assets/{DashboardRoutes-gtoJj3ZL.js → DashboardRoutes-A1bq9pYG.js} +3 -3
- package/dist/assets/{DefaultTenantHome-ChIpZM0k.js → DefaultTenantHome-DDpM6njO.js} +1 -1
- package/dist/assets/{DomesticWireDetailScreen-Dvz01lPM.js → DomesticWireDetailScreen-CpyML3o0.js} +3 -3
- package/dist/assets/DrawerScreen-ZOYmYtiQ.js +1 -0
- package/dist/assets/{EntityDetailRoutes-C8wll_2v.js → EntityDetailRoutes-DvGFPXvk.js} +1 -1
- package/dist/assets/{ExpenseAutomationRoutes-DUaHiAJz.js → ExpenseAutomationRoutes-D617kxC9.js} +1 -1
- package/dist/assets/FeaturePreviewScreen-BVTqHPLz.js +1 -0
- package/dist/assets/{MagicLinkRoutes-DkshBmDf.js → MagicLinkRoutes-DSfnxinT.js} +6 -6
- package/dist/assets/MagicLinkSignInScreen-BixBs1_j.js +12 -0
- package/dist/assets/{MobileAppDrawer-QG3OyZWm.js → MobileAppDrawer-BM5YrSJf.js} +1 -1
- package/dist/assets/NotFoundScreen-BKWF6ihY.js +1 -0
- package/dist/assets/{NotificationRoutes-Bk3kVCQ8.js → NotificationRoutes-Bj2lzhMk.js} +1 -1
- package/dist/assets/{PandLWithForecastRoutes-6d3dovF9.js → PandLWithForecastRoutes-BuAtRZAV.js} +1 -1
- package/dist/assets/{PeopleRoutes-DZgNz1F3.js → PeopleRoutes-DkoJxbms.js} +5 -5
- package/dist/assets/PerformanceRoutes-CtB8r_Zt.js +1 -0
- package/dist/assets/{Preview-CndYnn6b.js → Preview-DLOEu4zI.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-D1B2HgyQ.js → QBOConnectionScreen-8M1Isur2.js} +1 -1
- package/dist/assets/{ReferralListScreen-UugzZha0.js → ReferralListScreen-WnKquMs2.js} +2 -2
- package/dist/assets/{ReimbursementApprovalRoutes-gZol7oDC.js → ReimbursementApprovalRoutes-BxMg0n7p.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-DksTmtyx.js → ReimbursementApprovalRuleDetailScreen-QMCJ5JFk.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-CfdW-www.js → ReimbursementRoutes-BNXu-UZK.js} +4 -4
- package/dist/assets/{ReportsRoutes-BhmIU7uQ.js → ReportsRoutes-BMVv16o9.js} +1 -1
- package/dist/assets/{RewardsRoutes-D1XwHpXh.js → RewardsRoutes-RCDjFEsk.js} +1 -1
- package/dist/assets/ScreenRoutes-Dzx1DkVo.js +2 -0
- package/dist/assets/{SettingsRoutes-ChLcwwYd.js → SettingsRoutes-BQYaslzP.js} +1 -1
- package/dist/assets/{SetupPagesScreen-BjL8Ji7B.js → SetupPagesScreen-BrQEDhrW.js} +1 -1
- package/dist/assets/{SignInScreen-DrtAIy3Z.js → SignInScreen-DEmtWbT5.js} +1 -1
- package/dist/assets/SignOutScreen-C9flOZYi.js +9 -0
- package/dist/assets/{TaskListScreen-oXlMAxYF.js → TaskListScreen-CZxoJtk5.js} +2 -2
- package/dist/assets/{TaskRoutes-7R4bAUMo.js → TaskRoutes-D2wcY5C9.js} +1 -1
- package/dist/assets/TransactionDetailRoutes-BtJTjIq1.js +1 -0
- package/dist/assets/{TransactionDetailScreen-DDaVaJog.js → TransactionDetailScreen-CeTqKq1P.js} +2 -2
- package/dist/assets/{TransactionListRoutes-BYkLVUtz.js → TransactionListRoutes-C-09GTjl.js} +1 -1
- package/dist/assets/{TreasuryRoutes-BsS-ZOYn.js → TreasuryRoutes-BRiD28fy.js} +5 -5
- package/dist/assets/{VendorsRoutes-CVJCoTPA.js → VendorsRoutes-CIiya0jZ.js} +16 -16
- package/dist/assets/WiseConfirmationScreen-BWctDiUm.js +12 -0
- package/dist/assets/{ZeniAccountRoutes-DrA6VPhC.js → ZeniAccountRoutes-BQLY8EsR.js} +6 -6
- package/dist/assets/ZeniAccountStatementScreen-NEQM5a9q.js +9 -0
- package/dist/assets/{accountMappingHelper-C9T7Gxnz.js → accountMappingHelper--rLckD6f.js} +1 -1
- package/dist/assets/{analytics-BQrb6Qbx.js → analytics-mzFODb5o.js} +1 -1
- package/dist/assets/{analyticsHelper-BaS-TCZK.js → analyticsHelper-DXrcjvYH.js} +1 -1
- package/dist/assets/{core-81_24gOZ.js → core-BubQIu6S.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-DUAqgtlO.js → decodeURIComponentSafe-CQu96dXk.js} +1 -1
- package/dist/assets/{dnd-DYlS7coJ.js → dnd-DfDJJbCe.js} +1 -1
- package/dist/assets/{empty-IJhN6c4V.js → empty-BXl_GIzm.js} +1 -1
- package/dist/assets/{empty-BHEYeVOC.js → empty-DoiJiIOT.js} +1 -1
- package/dist/assets/{emptyVideoElement-CrtPRaok.js → emptyVideoElement-DuRLxTVq.js} +1 -1
- package/dist/assets/{epic-BblTXhk9.js → epic-Du0FVZFp.js} +1 -1
- package/dist/assets/getLocaleForTenant-Bmzh0dWG.js +1 -0
- package/dist/assets/{index-CSr79OAo.js → index-3f_3VO8X.js} +1 -1
- package/dist/assets/{index-DFpTkjFL.js → index-BkPq37_D.js} +1 -1
- package/dist/assets/{index-BpmUFemh.js → index-Cb3Cshcf.js} +2 -2
- package/dist/assets/{index-CRjeW04C.js → index-CdhL0YSO.js} +1 -1
- package/dist/assets/{index-VCI6NqXG.js → index-CqP5KqcS.js} +1 -1
- package/dist/assets/{index-C6H4vxcd.js → index-DFJtuV1Z.js} +1 -1
- package/dist/assets/{index-CrJkkWJL.js → index-DV34jTgR.js} +11649 -11651
- package/dist/assets/{lexical-CbrHQrBN.js → lexical-DN5KCrlF.js} +1 -1
- package/dist/assets/{liveblocks-DQZTUYaP.js → liveblocks-BHZdtJcc.js} +1 -1
- package/dist/assets/{lottie-BBbI6qbQ.js → lottie-gnA_5xOD.js} +1 -1
- package/dist/assets/{mui-PBYO31bv.js → mui-0MDcfZss.js} +1 -1
- package/dist/assets/{pathToGoBack-CNOyJ0er.js → pathToGoBack-BKfD9QEY.js} +1 -1
- package/dist/assets/{pdf-B6wzUPO1.js → pdf-C0szHkI5.js} +4 -4
- package/dist/assets/{pdf-lib-CKCsK44t.js → pdf-lib-OpBUUM2v.js} +1 -1
- package/dist/assets/{plaid-DlKzKckL.js → plaid-HewcrDZy.js} +1 -1
- package/dist/assets/{pusher-jT_hHe5T.js → pusher-BR9tgS76.js} +1 -1
- package/dist/assets/{react-C3sc2tPf.js → react-BEfhC3R7.js} +1 -1
- package/dist/assets/{react-BDm7rF03.js → react-BNR0CEeq.js} +1 -1
- package/dist/assets/{react-Dr42bYzi.js → react-BXBPcOZA.js} +1 -1
- package/dist/assets/{react-DAIMCefk.js → react-CqMcqV_5.js} +1 -1
- package/dist/assets/{react-CYoQiS6O.js → react-j2ystBqG.js} +1 -1
- package/dist/assets/{react-CZGMUEzJ.js → react-yFfiFnTS.js} +1 -1
- package/dist/assets/{recharts-CoGzUQZp.js → recharts-DvtW-69R.js} +1 -1
- package/dist/assets/{routePaths-DR4gfTc6.js → routePaths-C5Lafv0C.js} +1 -1
- package/dist/assets/{sentry-TZXmKDQw.js → sentry-DZSZgDRD.js} +1 -1
- package/dist/assets/{url-BhcVQyWm.js → url-D4mw3YGe.js} +1 -1
- package/dist/assets/{url-BxGPefvi.js → url-JGKPEDKg.js} +1 -1
- package/dist/assets/{useAskAiCfoHostNavButtonProps-BMpPQ4Uh.js → useAskAiCfoHostNavButtonProps-DiqwuEJY.js} +1 -1
- package/dist/assets/{useDeviceId-DZQ32NYC.js → useDeviceId-CO4gql30.js} +1 -1
- package/dist/assets/{useFetchSuggestedQuestionsWhenReady-1y-0GGXu.js → useFetchSuggestedQuestionsWhenReady-B2O-2DEY.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-kn57qnnE.js → useInitialThreadRequest-M39oZ9lT.js} +1 -1
- package/dist/assets/{utils-ByIWXJU0.js → utils-pmzt2XS6.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-1iVfcB2H.js → withTransactionSidePanel-B9u3nLVs.js} +3 -3
- package/dist/assets/{zeni-epic-state-ByRn6LTM.js → zeni-epic-state-DW-k0kJS.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/AddressRoutes-Ck5zYaXC.js +0 -1
- package/dist/assets/AddressScreen-DR83IpwJ.js +0 -9
- package/dist/assets/CustomerOnboardingAuthScreen-DIDAzwVI.js +0 -1
- package/dist/assets/DrawerScreen-DABhXfXD.js +0 -1
- package/dist/assets/FeaturePreviewScreen-_jA5SicE.js +0 -1
- package/dist/assets/MagicLinkSignInScreen-CVN1DKMx.js +0 -12
- package/dist/assets/NotFoundScreen-Bz1OgFA4.js +0 -1
- package/dist/assets/PerformanceRoutes-Czxmf_tW.js +0 -1
- package/dist/assets/ScreenRoutes-BUcaxMD_.js +0 -2
- package/dist/assets/SignOutScreen-CoLGWHxd.js +0 -9
- package/dist/assets/TransactionDetailRoutes-CbuDVM1U.js +0 -1
- package/dist/assets/WiseConfirmationScreen-BtuAX8oK.js +0 -12
- package/dist/assets/ZeniAccountStatementScreen-BYzlXUGF.js +0 -9
- package/dist/assets/getLocaleForTenant-CeVyT6xv.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-DV34jTgR.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-DZSZgDRD.js"><link rel="modulepreload" crossorigin href="/assets/core-BubQIu6S.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-DW-k0kJS.js"><link rel="modulepreload" crossorigin href="/assets/mui-0MDcfZss.js"><link rel="modulepreload" crossorigin href="/assets/analytics-mzFODb5o.js"><link rel="modulepreload" crossorigin href="/assets/utils-pmzt2XS6.js"><link rel="stylesheet" crossorigin href="/assets/index-Bc34frN_.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.0.
|
|
3
|
+
"version": "5.0.39-qa",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/**/*"
|
|
6
6
|
],
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"@sentry/core": "^9.42.1",
|
|
28
28
|
"@sentry/react": "^9.42.1",
|
|
29
29
|
"@stripe/stripe-js": "^4.4.0",
|
|
30
|
-
"@zeniai/client-analytics": "2.0.
|
|
30
|
+
"@zeniai/client-analytics": "2.0.4",
|
|
31
31
|
"@zeniai/client-epic-state": "5.0.22",
|
|
32
|
-
"@zeniai/web-components": "4.0.
|
|
32
|
+
"@zeniai/web-components": "4.0.46",
|
|
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-DQZTUYaP.js";import{A as d}from"./AddressScreen-DR83IpwJ.js";import i from"./NotFoundScreen-Bz1OgFA4.js";import"./sentry-TZXmKDQw.js";import{n as s,o as r}from"./core-81_24gOZ.js";import"./zeni-epic-state-ByRn6LTM.js";import"./recharts-CoGzUQZp.js";import"./index-CrJkkWJL.js";import"./mui-PBYO31bv.js";import"./analytics-BQrb6Qbx.js";import"./plaid-DlKzKckL.js";import"./dnd-DYlS7coJ.js";import"./stripe-DMRn4zHo.js";import"./lottie-BBbI6qbQ.js";import"./lexical-CbrHQrBN.js";import"./pdf-B6wzUPO1.js";import"./utils-ByIWXJU0.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]="4bd15e18-5b5f-4be1-8d33-8bd696c76da2",t._sentryDebugIdIdentifier="sentry-dbid-4bd15e18-5b5f-4be1-8d33-8bd696c76da2")}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 r}from"./liveblocks-DQZTUYaP.js";import{a as h}from"./sentry-TZXmKDQw.js";import{j as T,h as _,u as j,l as E,g as B,k as M}from"./core-81_24gOZ.js";import{Z as $,h as D,z as L,A as K,v as N,w as J,e as C,g as S,m as z,j as b,p as F}from"./index-CrJkkWJL.js";import{J0 as k,gN as R,eN as U,J1 as G,c0 as O,J2 as V,k7 as q}from"./zeni-epic-state-ByRn6LTM.js";import{n as H}from"./mui-PBYO31bv.js";import Z from"./NotFoundScreen-Bz1OgFA4.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]="da0d83e3-aa1b-4fcb-b6ac-cc019009cf75",e._sentryDebugIdIdentifier="sentry-dbid-da0d83e3-aa1b-4fcb-b6ac-cc019009cf75")}catch{}})();const Q=H.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
|
-
`,W=M(function(e,t){const{addressId:o,isSubPage:i,addressType:c}=t,l=U(e),a=t.roleMap!=null&&G(t.roleMap),d=i||c==="user_address"||O(l?.userRole??[])||a?void 0:"readonly";if(o==null){const s=V(c,e);return{addressToEdit:s?.addressToCreate,loadingState:s?.status?.fetchState,googleAPIKey:b.googleMapsAPIKey,isDisabled:d,isSubPage:i,dontShowSaveConfirmationPopup:t.dontShowSaveConfirmation}}const n=k(e,o);return{addressToEdit:n.address,loadingState:n.fetchState,googleAPIKey:b.googleMapsAPIKey,isDisabled:d}},function(e,t){const{navigate:o,location:i,addressType:c}=t,l=a=>{if(a==="express-pay")o("../express-pay/add-wire");else{const d=i.state,n=F(d?.pathnameStackToGoBack);let s=n.poppedPathname??w();const u=d?.queryParams;if(u){const g=new URLSearchParams(u).toString();g&&(s=`${s}?${g}`)}o(s,{state:{pathnameStackToGoBack:n.newStack}})}};return{onSubmitHandler:a=>{const d=X(a);e(q({addressType:c,addressToCreate:d})),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)}}})(z);function re({isSubPage:e,hideAddressSubTitle:t=!1,hideAddressBackButton:o=!1,dontShowSaveConfirmation:i,accountContext:c,addressTypeParam:l}){const a=T(),d=_(),n=j(),{addressId:s,addressType:u}=E(),g=$(),v=D(),A=L.getSignedInUser(),[f,I]=h.useState(s==null),p=B(m=>s!=null?k(m,s).fetchState:"Not-Started"),x=K();if(A==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(()=>{f||s==null||(I(!0),d(R(s,!1)))},[f,s,d]),y==null||y.match(/(user_address|company_address|company_registered_address|vendor_address|officer_([1-9]|10)_address)$/g)?!f&&p==="Not-Started"||f&&p==="In-Progress"?r.jsx(N,{fetchState:p,style:{backgroundColor:v.colors.grey5}}):s!=null&&p==="Error"?(a(`${w(1)}/new`,{replace:!0}),r.jsx(r.Fragment,{})):r.jsxs(r.Fragment,{children:[r.jsx(J,{analytics:C,onLoad:P}),r.jsx(Q,{windowSize:g,children:r.jsx(W,{location:n,navigate:a,isSubPage:e===!0,hideAddressBackButton:o,hideAddressSubTitle:t,addressId:s,addressType:y,dontShowSaveConfirmation:i,bankAccountContext:c,roleMap:x?.loggedInUserRoleMap})})]}):r.jsx(Z,{})}const w=(e=2)=>{let t="../";for(let o=0;o<e;o++)t=`${t}../`;return t},X=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{re as A,X as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as d}from"./liveblocks-DQZTUYaP.js";import{z as n}from"./index-CrJkkWJL.js";import{g as p}from"./QBOConnectionScreen-D1B2HgyQ.js";import"./sentry-TZXmKDQw.js";import{u as a,N as i}from"./core-81_24gOZ.js";import"./zeni-epic-state-ByRn6LTM.js";import"./recharts-CoGzUQZp.js";import"./mui-PBYO31bv.js";import"./analytics-BQrb6Qbx.js";import"./plaid-DlKzKckL.js";import"./dnd-DYlS7coJ.js";import"./stripe-DMRn4zHo.js";import"./lottie-BBbI6qbQ.js";import"./lexical-CbrHQrBN.js";import"./pdf-B6wzUPO1.js";import"./utils-ByIWXJU0.js";import"./empty-BHEYeVOC.js";import"./pdf-lib-CKCsK44t.js";import"./index-CRjeW04C.js";import"./url-BhcVQyWm.js";import"./index-C6H4vxcd.js";import"./decodeURIComponentSafe-DUAqgtlO.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]="b68d0d57-e81d-4cfb-97e6-d4dd5e5b7ebd",t._sentryDebugIdIdentifier="sentry-dbid-b68d0d57-e81d-4cfb-97e6-d4dd5e5b7ebd")}catch{}})();const U=()=>{const t=a(),{code:o,realmId:r,state:e}=p(t.search),s=n.getSignedInUser()?.userId??"";if(f(o,r,e,s)===!0){const m=`../../${e}/onboarding?code=${o}&realmId=${r}&state=auth_flow`;return d.jsx(i,{to:m})}return d.jsx(i,{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 d}from"./liveblocks-DQZTUYaP.js";import{Z as c,C as l,h as b}from"./index-CrJkkWJL.js";import{D as f}from"./mui-PBYO31bv.js";import"./sentry-TZXmKDQw.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]="7a8e1cc8-650b-42c0-a487-16b0b3648e3b",e._sentryDebugIdIdentifier="sentry-dbid-7a8e1cc8-650b-42c0-a487-16b0b3648e3b")}catch{}})();const p={drawerLeftMargin:new l(0,0,240)};function h(e){const{isOpen:r,drawerLeftMargin:o,children:t,onClose:a}=e,n=c(),s=o?.valuePx(n)??p.drawerLeftMargin.valuePx(n),i=b();return d.jsx(f,{anchor:"right",open:r,PaperProps:{style:{width:`calc(100% - ${s})`}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.8,cursor:"pointer"}}},onClose:a,children:t})}export{h as D};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-DQZTUYaP.js";import{a as r}from"./sentry-TZXmKDQw.js";import{V as i,X as c,_ as l,p}from"./index-CrJkkWJL.js";import"./mui-PBYO31bv.js";import m from"./NotFoundScreen-Bz1OgFA4.js";import{j as u,u as b}from"./core-81_24gOZ.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]="d40fc12e-7ded-4bac-88f0-a58a8bf35380",e._sentryDebugIdIdentifier="sentry-dbid-d40fc12e-7ded-4bac-88f0-a58a8bf35380")}catch{}})();const j=()=>{const e=u(),a=b(),t=r.useCallback(()=>{window.open("https://www.zeni.ai/demo/request","_blank")},[]),d=r.useCallback(()=>{(()=>{const n=p(a.state?.pathnameStackToGoBack),f=n.poppedPathname??k();e(f,{state:{pathnameStackToGoBack:n.newStack}})})()},[]),o=i(a.pathname);return o!=null?s.jsx(c,{menuItem:l(o),onDemoClick:t,onGoBack:d}):s.jsx(m,{})},k=(e=2)=>{let a="../";for(let t=0;t<e;t++)a=`${a}../`;return a};export{j as F};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{j as u}from"./liveblocks-DQZTUYaP.js";import{a as f}from"./sentry-TZXmKDQw.js";import{h as O,u as _,j as w,q as M,g as l,N as T}from"./core-81_24gOZ.js";import{z as r,h as P,D as V,f as A,e as N,g as q,q as H,T as R,i as W}from"./index-CrJkkWJL.js";import{eN as $,Ij as B,It as G,Ik as J,eO as K,fi as Q,Ip as X,fH as Y,cS as Z,Iu as ee,Iv as te}from"./zeni-epic-state-ByRn6LTM.js";import{n as ne}from"./mui-PBYO31bv.js";import{u as se}from"./useDeviceId-DZQ32NYC.js";import{f as ie}from"./analyticsHelper-BaS-TCZK.js";import{t as ae}from"./getLocaleForTenant-CeVyT6xv.js";import"./recharts-CoGzUQZp.js";import"./analytics-BQrb6Qbx.js";import"./plaid-DlKzKckL.js";import"./dnd-DYlS7coJ.js";import"./stripe-DMRn4zHo.js";import"./lottie-BBbI6qbQ.js";import"./lexical-CbrHQrBN.js";import"./pdf-B6wzUPO1.js";import"./utils-ByIWXJU0.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]="b9f72397-7414-42b2-a7cc-5bef1d82a2c6",t._sentryDebugIdIdentifier="sentry-dbid-b9f72397-7414-42b2-a7cc-5bef1d82a2c6")}catch{}})();const C=(t,i)=>t!=null&&t.length>0&&i==="magic_links";function Ce(){const t=O(),i=_(),m=w(),[k]=M(),n=k.get("token"),p=k.get("stytch_token_type"),g=r.getMagicLinkCodeVerifier(),a=se(),{otpChallenge:d,twoFAPhoneNumber:D,magicLinkEmail:c,verifyDeviceFetchState:x,resendVerifyDeviceOTPFetchState:z}=l(e=>e.tenantState),I=l(e=>e.tenantState.fetchState),y=l(e=>e.tenantState.activeTenantFetchState.fetchState),S=l(e=>e.tenantState.signInState),h=l(e=>e.tenantState.magicLinkSignInFetchState.fetchState),s=l(e=>e.tenantState.loggedInUser),o=l(e=>$(e)),b=l(e=>B(e)),E=r.getSignedInUser(),v=P().mode;f.useEffect(()=>{s?.zeniSessionId==null&&n!=null&&C(n,p)&&a!=null&&g!=null&&(r.saveMagicLinkTriggered(n),t(G(n,a,g)))},[n,p,t,a,g,s?.zeniSessionId]),f.useEffect(()=>{S!=="In-Progress"||I!=="Completed"&&y!=="Completed"||s?.zeniSessionId==null||o==null||(n!=null&&r.saveLastUsedMagicLinkToken(n),r.saveSignedInUserWithSession(s,s.zeniSessionId),r.saveSignedInUserTenants(J(b.tenantsInOrder),s.zeniSessionId),K(s.userId,s.zeniSessionId,o.tenantId),t(Q(o.tenantId)),r.saveActiveTenantDomainForUser(o.tenantEmailDomain),t(X("Completed")),V.updateAppLocaleID(ae(o)),ie(s,o,v,void 0,b.tenantsInOrder),Y().then(()=>{const e=W();e!=null&&A(e)}),setTimeout(()=>{N.trackLogin(q.Event.loginSuccess,"email",Z(o.productSettings))},2e3))},[S,I,y,s,o,b,v,i.state,t]);const j=f.useCallback(()=>{m("/signin/auth")},[m]),U=f.useCallback(()=>{a!=null&&d!=null&&c!=null&&t(ee(a,c,d))},[a,d,t,c]),F=f.useCallback(e=>{a!=null&&n!=null&&c!=null&&d!=null&&t(te(e,a,c,d))},[a,n,t,c,d]);if(h==="Completed"&&d!=null)return u.jsx(H,{phoneNumber:D,verifyOtpFetchState:x.fetchState,resendVerifyDeviceOTPFetchState:z,onResendOtp:U,onVerifyOtp:F,onCancelVerifyDevice:j});if(S==="In-Progress"&&I==="Completed"&&s?.zeniSessionId!=null&&o!=null||E!=null){const e=i.state?.origin??"/";return u.jsx(T,{to:e,state:{...i.state,origin:""}})}if(!C(n,p)||g==null||h==="Error"){const e=i.state?.origin??"/",L=n!=null&&r.getLastUsedMagicLinkToken()===n;return u.jsx(T,{to:e,state:{...i.state,origin:"",magicLinkAlreadyUsed:L,magicLinkExpired:!L&&(r.isMagicLinkTriggered(n??"")||h==="Error"&&s?.zeniSessionId==null)}})}return u.jsx(oe,{"data-testid":"smooth-loader",children:u.jsx(R,{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{Ce as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./liveblocks-DQZTUYaP.js";import{j as e,k as i}from"./core-81_24gOZ.js";import{R as n}from"./index-CrJkkWJL.js";import"./mui-PBYO31bv.js";import"./sentry-TZXmKDQw.js";import"./zeni-epic-state-ByRn6LTM.js";import"./recharts-CoGzUQZp.js";import"./analytics-BQrb6Qbx.js";import"./plaid-DlKzKckL.js";import"./dnd-DYlS7coJ.js";import"./stripe-DMRn4zHo.js";import"./lottie-BBbI6qbQ.js";import"./lexical-CbrHQrBN.js";import"./pdf-B6wzUPO1.js";import"./utils-ByIWXJU0.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]="b01df3c4-110c-4040-bc67-78b2276eb150",o._sentryDebugIdIdentifier="sentry-dbid-b01df3c4-110c-4040-bc67-78b2276eb150")}catch{}})();const s=i(null,function(o,t){return{onGoBack:()=>{t.navigate(-1)},onGoHome:()=>{t.navigate("/")}}})(n);function h(){const o=e();return r.jsx(s,{navigate:o})}export{h as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-DQZTUYaP.js";import _ from"./NotFoundScreen-Bz1OgFA4.js";import{a as o}from"./sentry-TZXmKDQw.js";import{j as v,u as M,g,l as U,h as P,N as z,k as N,n as V,o as h}from"./core-81_24gOZ.js";import{eN as B,OK as b,bo as F,bn as H,h7 as K,gD as $}from"./zeni-epic-state-ByRn6LTM.js";import{x as q,z as I,H as G,cs as J}from"./index-CrJkkWJL.js";import"./mui-PBYO31bv.js";import{u as L}from"./useAskAiCfoHostNavButtonProps-BMpPQ4Uh.js";import{c as Q}from"./useFetchSuggestedQuestionsWhenReady-1y-0GGXu.js";import{M as W}from"./MobileAppDrawer-QG3OyZWm.js";import"./recharts-CoGzUQZp.js";import"./analytics-BQrb6Qbx.js";import"./plaid-DlKzKckL.js";import"./dnd-DYlS7coJ.js";import"./stripe-DMRn4zHo.js";import"./lottie-BBbI6qbQ.js";import"./lexical-CbrHQrBN.js";import"./pdf-B6wzUPO1.js";import"./utils-ByIWXJU0.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]="82f7075d-2ed9-42e9-815f-242a44d3d72a",e._sentryDebugIdIdentifier="sentry-dbid-82f7075d-2ed9-42e9-815f-242a44d3d72a")}catch{}})();const X=N(function(e){const t=I.getSignedInUser(),d=e.tenantState.currentTenantId,r={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:d??""},{aggregatedReportViewState:n}=b(e);return{authParams:r,isDisabled:!1,loggedInUser:t,aggregatedReport:n}},function(e,t){return{onBackClick:()=>{t.navigate("../../")},onClickMenuIcon:()=>{t.handleDrawerToggle(!0)}}})(J),Y=()=>{const e=v(),t=M(),d=q(),r=g(s=>B(s)),{aggregatedReportViewState:n}=g(s=>b(s)),{tenantEmailDomain:m}=U(),p=P(),l=I.getSignedInUser();if(l==null)throw new Error("Can't access this page without signing in...");const f=o.useRef(!1),[C,S]=o.useState(!1),k=F(r?.userRole??[]),w=r?.userRole?.includes("bookkeeping_admin")??!1,D=H(l),x=k||w||D,c=o.useCallback((s,i,O)=>{p(K({fromMonth:s,toMonth:i,cacheOverride:O}))},[]);o.useEffect(()=>{n?.fetchState==="Completed"&&f.current&&(p($({messageSection:"data_refresh_update",messageText:"success",type:"success",showStatusIcon:!0})),f.current=!1)},[n?.fetchState]);const A=o.useCallback((s,i)=>{n!=null&&n?.fetchState==="In-Progress"||c(s,i,!0),f.current=!0},[n?.fetchState,c]),y=o.useCallback((s,i)=>{c(s,i,!1)},[c]),u=s=>{S(s)},{isAiCfoOpen:j,setIsAiCfoOpen:R}=G(),{isAiCfoAccessEnabled:T,onAskAiCfoClick:E}=L({isAiCfoOpen:j,setIsAiCfoOpen:R,mobileExploreReferrer:"Performance"});return Q({isDataReady:n?.fetchState==="Completed"}),x?a.jsxs(a.Fragment,{children:[a.jsx(W,{isAppContentDrawerOpen:C,handleDrawerToggle:u}),a.jsx(X,{navigate:e,location:t,themeState:d,currentTenant:r,signedInUser:l,tenantEmailDomain:m,onReload:A,onTimeRangeSelect:y,handleDrawerToggle:u,isAiCfoAccessEnabled:T,onAskAiCfoClick:E})]}):a.jsx(z,{to:`/${m}/dashboard`,replace:!0})};function Ie(){return a.jsxs(V,{children:[a.jsx(h,{path:"*",element:a.jsx(Y,{})}),a.jsx(h,{path:"*",element:a.jsx(_,{})})]})}export{Ie as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardRoutes-gtoJj3ZL.js","assets/sentry-TZXmKDQw.js","assets/core-81_24gOZ.js","assets/zeni-epic-state-ByRn6LTM.js","assets/index-CrJkkWJL.js","assets/mui-PBYO31bv.js","assets/analytics-BQrb6Qbx.js","assets/utils-ByIWXJU0.js","assets/withTransactionSidePanel-1iVfcB2H.js","assets/useAskAiCfoHostNavButtonProps-BMpPQ4Uh.js","assets/useFetchSuggestedQuestionsWhenReady-1y-0GGXu.js","assets/TransactionDetailScreen-DDaVaJog.js","assets/decodeURIComponentSafe-DUAqgtlO.js","assets/routePaths-DR4gfTc6.js","assets/NotFoundScreen-Bz1OgFA4.js","assets/analyticsHelper-BaS-TCZK.js","assets/CompanyPassportScreen-Gh2Ydu5q.js","assets/MobileAppDrawer-QG3OyZWm.js","assets/FeaturePreviewScreen-_jA5SicE.js","assets/ReferralListScreen-UugzZha0.js","assets/index-Bc34frN_.css","assets/BillPayRoutes-BRlZ70M1.js","assets/AddressScreen-DR83IpwJ.js","assets/DomesticWireDetailScreen-Dvz01lPM.js","assets/useInitialThreadRequest-kn57qnnE.js","assets/DrawerScreen-DABhXfXD.js","assets/SetupPagesScreen-BjL8Ji7B.js","assets/BusinessVerificationPageScreen-eXEfIkto.js","assets/BillPayApprovalRoutes-CJ8wuAz_.js","assets/ReimbursementApprovalRuleDetailScreen-DksTmtyx.js","assets/getLocaleForTenant-CeVyT6xv.js","assets/ReimbursementRoutes-CfdW-www.js","assets/ReimbursementApprovalRoutes-gZol7oDC.js","assets/TransactionListRoutes-BYkLVUtz.js","assets/ZeniAccountStatementScreen-BYzlXUGF.js","assets/SettingsRoutes-ChLcwwYd.js","assets/accountMappingHelper-C9T7Gxnz.js","assets/QBOConnectionScreen-D1B2HgyQ.js","assets/empty-BHEYeVOC.js","assets/index-CRjeW04C.js","assets/url-BhcVQyWm.js","assets/index-C6H4vxcd.js","assets/ReportsRoutes-BhmIU7uQ.js","assets/ChargeCardRoutes-CvXNOvHK.js","assets/PeopleRoutes-DZgNz1F3.js","assets/ExpenseAutomationRoutes-DUaHiAJz.js","assets/TreasuryRoutes-BsS-ZOYn.js","assets/VendorsRoutes-CVJCoTPA.js","assets/pathToGoBack-CNOyJ0er.js","assets/ZeniAccountRoutes-DrA6VPhC.js","assets/AddressRoutes-Ck5zYaXC.js","assets/PandLWithForecastRoutes-6d3dovF9.js","assets/CustomerOnboardingRoutes-BWJytPj5.js","assets/TransactionDetailRoutes-CbuDVM1U.js","assets/EntityDetailRoutes-C8wll_2v.js","assets/NotificationRoutes-Bk3kVCQ8.js","assets/PerformanceRoutes-Czxmf_tW.js","assets/RewardsRoutes-D1XwHpXh.js","assets/TaskRoutes-7R4bAUMo.js","assets/TaskListScreen-oXlMAxYF.js","assets/AiCfoScreen-Ca4LNe3w.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{_ as n,bn as os,eN as ls,eT as cs,eR as ds,eS as ms,fD as us,eP as _s,cO as Ae,cv as As,f9 as Es,cn as ps,bC as Is,bq as gs,fe as xs,v as Ts,Ik as hs,bv as js,Il as Us,bE as bs,fb as Ds,bD as Hs,bs as Rs,cj as ys,Im as fs,In as Cs,cL as vs,cN as Os,cM as Ps,cu as Fs,cA as Ls,mm as Ee,eO as pe,fN as Bs,fi as Ie,fK as ge,fL as xe,fj as ks}from"./zeni-epic-state-ByRn6LTM.js";import{j as e}from"./liveblocks-DQZTUYaP.js";import{a as v}from"./sentry-TZXmKDQw.js";import{h as Vs,j as Ns,l as Ss,u as Ms,g as z,i as Te,N as c,n as Zs,o as t}from"./core-81_24gOZ.js";import{h as ws,u as zs,z as D,a as Gs,c as $s,I as Ys,d as L,A as qs,L as B,D as he,t as _,P as Ws,e as X,l}from"./index-CrJkkWJL.js";import"./mui-PBYO31bv.js";import{f as je}from"./analyticsHelper-BaS-TCZK.js";import{t as Ks}from"./getLocaleForTenant-CeVyT6xv.js";import"./recharts-CoGzUQZp.js";import"./analytics-BQrb6Qbx.js";import"./plaid-DlKzKckL.js";import"./dnd-DYlS7coJ.js";import"./stripe-DMRn4zHo.js";import"./lottie-BBbI6qbQ.js";import"./lexical-CbrHQrBN.js";import"./pdf-B6wzUPO1.js";import"./utils-ByIWXJU0.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]="a97e472a-80cc-42a0-9171-b435d910b404",i._sentryDebugIdIdentifier="sentry-dbid-a97e472a-80cc-42a0-9171-b435d910b404")}catch{}})();const Js={dashboard:()=>n(()=>import("./DashboardRoutes-gtoJj3ZL.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20])),bills:()=>n(()=>import("./BillPayRoutes-BRlZ70M1.js"),__vite__mapDeps([21,1,2,3,4,5,6,7,22,14,23,9,10,24,25,17,18,26,15,13,27,28,29,30,20])),reimbursement:()=>n(()=>import("./ReimbursementRoutes-CfdW-www.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,14,26,17,15,13,27,18,9,10,24,25,32,29,30,20])),transactions:()=>n(()=>import("./TransactionListRoutes-BYkLVUtz.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,13,34,20])),settings:()=>n(()=>import("./SettingsRoutes-ChLcwwYd.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,17,36,22,14,15,27,13,16,37,38,39,40,41,12,28,29,32,20])),reports:()=>n(()=>import("./ReportsRoutes-BhmIU7uQ.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,14,18,10,24,13,17,20])),chargeCards:()=>n(()=>import("./ChargeCardRoutes-CvXNOvHK.js"),__vite__mapDeps([43,1,2,3,4,5,6,7,26,17,14,15,13,27,9,10,22,20])),people:()=>n(()=>import("./PeopleRoutes-DZgNz1F3.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,14,9,10,17,20])),expenseAutomation:()=>n(()=>import("./ExpenseAutomationRoutes-DUaHiAJz.js"),__vite__mapDeps([45,1,2,3,14,4,5,6,7,9,10,11,12,13,8,36,25,20])),treasury:()=>n(()=>import("./TreasuryRoutes-BsS-ZOYn.js"),__vite__mapDeps([46,1,2,3,4,5,6,7,14,26,17,15,13,27,9,10,18,20])),vendors:()=>n(()=>import("./VendorsRoutes-CVJCoTPA.js"),__vite__mapDeps([47,1,2,3,4,5,6,7,22,14,18,13,48,9,10,17,25,36,20])),zeniAccounts:()=>n(()=>import("./ZeniAccountRoutes-DrA6VPhC.js"),__vite__mapDeps([49,1,2,3,4,5,6,7,14,26,17,15,13,27,18,23,22,9,10,34,20]))},Qs=["bills","transactions","settings","reimbursement","reports","chargeCards","people"],ee=i=>{"requestIdleCallback"in window?requestIdleCallback(i):setTimeout(i,100)},Xs=l(()=>n(()=>import("./ReportsRoutes-BhmIU7uQ.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,14,18,10,24,13,17,20]))),en=l(()=>n(()=>import("./AddressRoutes-Ck5zYaXC.js"),__vite__mapDeps([50,1,2,3,22,4,5,6,7,14,20]))),sn=l(()=>n(()=>import("./PeopleRoutes-DZgNz1F3.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,14,9,10,17,20]))),nn=l(()=>n(()=>import("./PandLWithForecastRoutes-6d3dovF9.js"),__vite__mapDeps([51,1,2,3,4,5,6,7,14,18,9,10,24,13,17,20]))),an=l(()=>n(()=>import("./CustomerOnboardingRoutes-BWJytPj5.js"),__vite__mapDeps([52,1,2,3,22,4,5,6,7,14,37,38,39,40,41,12,20]))),tn=l(()=>n(()=>import("./VendorsRoutes-CVJCoTPA.js"),__vite__mapDeps([47,1,2,3,4,5,6,7,22,14,18,13,48,9,10,17,25,36,20]))),rn=l(()=>n(()=>import("./TransactionDetailRoutes-CbuDVM1U.js"),__vite__mapDeps([53,1,2,3,14,4,5,6,7,11,9,10,12,13,20]))),Ue=l(()=>n(()=>import("./EntityDetailRoutes-C8wll_2v.js"),__vite__mapDeps([54,1,2,3,4,5,6,7,12,8,9,10,11,13,20]))),on=l(()=>n(()=>import("./DashboardRoutes-gtoJj3ZL.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]))),be=l(()=>n(()=>import("./BillPayRoutes-BRlZ70M1.js"),__vite__mapDeps([21,1,2,3,4,5,6,7,22,14,23,9,10,24,25,17,18,26,15,13,27,28,29,30,20]))),ln=l(()=>n(()=>import("./SettingsRoutes-ChLcwwYd.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,17,36,22,14,15,27,13,16,37,38,39,40,41,12,28,29,32,20]))),De=l(()=>n(()=>import("./ReimbursementRoutes-CfdW-www.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,14,26,17,15,13,27,18,9,10,24,25,32,29,30,20]))),cn=l(()=>n(()=>import("./ZeniAccountRoutes-DrA6VPhC.js"),__vite__mapDeps([49,1,2,3,4,5,6,7,14,26,17,15,13,27,18,23,22,9,10,34,20]))),dn=l(()=>n(()=>import("./TreasuryRoutes-BsS-ZOYn.js"),__vite__mapDeps([46,1,2,3,4,5,6,7,14,26,17,15,13,27,9,10,18,20]))),mn=l(()=>n(()=>import("./TransactionListRoutes-BYkLVUtz.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,13,34,20]))),un=l(()=>n(()=>import("./ChargeCardRoutes-CvXNOvHK.js"),__vite__mapDeps([43,1,2,3,4,5,6,7,26,17,14,15,13,27,9,10,22,20]))),_n=l(()=>n(()=>import("./NotificationRoutes-Bk3kVCQ8.js"),__vite__mapDeps([55,1,2,3,14,4,5,6,7,9,10,20]))),An=l(()=>n(()=>import("./PerformanceRoutes-Czxmf_tW.js"),__vite__mapDeps([56,1,2,3,14,4,5,6,7,9,10,17,20]))),En=l(()=>n(()=>import("./ExpenseAutomationRoutes-DUaHiAJz.js"),__vite__mapDeps([45,1,2,3,14,4,5,6,7,9,10,11,12,13,8,36,25,20]))),pn=l(()=>n(()=>import("./RewardsRoutes-D1XwHpXh.js"),__vite__mapDeps([57,1,2,3,4,5,6,7,14,19,9,10,17,20]))),In=l(()=>n(()=>import("./TaskRoutes-7R4bAUMo.js"),__vite__mapDeps([58,1,2,3,14,4,5,6,7,24,17,59,9,10,20]))),gn=l(()=>n(()=>import("./AiCfoScreen-Ca4LNe3w.js"),__vite__mapDeps([60,1,2,3,4,5,6,7,48,20]))),y=l(()=>n(()=>import("./NotFoundScreen-Bz1OgFA4.js"),__vite__mapDeps([14,1,2,3,4,5,6,7,20]))),xn=l(()=>n(()=>import("./TaskListScreen-oXlMAxYF.js"),__vite__mapDeps([59,1,2,3,4,5,6,7,9,10,17,20])));function wn({setTenantEmailDomain:i}){const U=Vs(),V=Ns(),{tenantEmailDomain:o}=Ss(),N=ws().mode,{setLoading:f,clearAllLoading:O,clearLoading:Z}=zs(),R=D.getSignedInUserTenant(o)?.tenantId,h=D.getSignedInUser(),K=os(h),G=Ms(),[S,Re]=v.useState(!1),r=z(a=>ls(a)),{useFeatureGate:P}=Gs(),J=$s(),ye=Ys(),{isFeatureEnabled:fe}=P(L.isExpenseAutomationEnabled),{isFeatureEnabled:Ce}=P(L.isExpenseAutomationEnabledV2),ve=Ce||fe&&K,{isFeatureEnabled:Oe}=P(L.isDepositAccountsFeatureEnabled),{isFeatureEnabled:Pe}=P(L.isTreasuryEnabled),{isFeatureEnabled:Fe}=P(L.isChargeCardFeatureEnabled),{isFeatureEnabled:se}=P(L.isDebitCardFeatureEnabled),j=z(a=>a.tenantState.fetchState),E=z(a=>a.tenantState.activeTenantFetchState.fetchState),u=E==="Completed"||j==="Completed"?cs(se,r):void 0,$=E==="Completed"||j==="Completed"?ds(r):void 0,Le=E==="Completed"||j==="Completed"?ms(r):void 0,Be=Fe||se||!!Le||!!$||!!u,{isFeatureEnabled:ke}=P(L.isSettingsFeatureEnabled),{isFeatureEnabled:Ve}=P(L.isAiCfoFileUploadEnabled),Y=z(a=>us(a));if(o!=null){const a=D.getSignedInUserTenant(o);h!=null&&a!=null&&je(h,r,N)}const w={tenantId:R,userId:h?.userId,sessionId:h?.zeniSessionId},ne=_s(),A=qs(),Ne=r.company==null||A?.loggedInUserRoleMap!=null&&Ae(A.loggedInUserRole),Se=As(A?.loggedInUserRoleMap),ae=v.useRef(!0),te=Te("/:tenantEmailDomain/onboarding/*")!==null,Q=Te("/:tenantEmailDomain/month_end_close_checks/review/:selectedTab/:selectedPeriod/*"),Me=z(a=>w.tenantId!=null?Es(a,w.tenantId):void 0);v.useEffect(()=>{f(B.TENANT_FETCHING),i(o)},[o]),v.useEffect(()=>{if(Q!=null&&R!=null){const a=Q.params.selectedPeriod;if(a!=null){const b=a.split("-");if(b.length===2){const d=ps(Number(b[0])),s=Number(b[1]),m=Is(`01-${d<10?`0${d}`:d}-${s}`,he.getLocalizedStrings().dateFormat.analytics.DDDashMMDashYYYY),M=gs();m.isAfter(M,"month")===!1?U(xs(R,{month:d,year:s})):V("./month_end_close_checks/review")}}}},[Q,R]),v.useEffect(()=>{S||(Re(!0),f(B.TENANT_FETCHING)),ae.current?ae.current=!1:!Ts(ne,w)&&D.isSignedIn()&&(f(B.TENANT_FETCHING),function(a,b,d,s){if(pe(b?.userId,b?.zeniSessionId,a.tenantId),d(Bs(!0)),d(Ie(a.tenantId)),a.tenantId!=null&&_.clearTenant(a.tenantId),a.tenantId!=null){const m=D.getSignedInUserTenantWithId(a.tenantId);s&&he.updateAppLocaleID(Ks(s)),m?.tenantEmailDomain!=null&&D.saveActiveTenantDomainForUser(m?.tenantEmailDomain)}a.userId!=null?X.identify(a.userId,{tenant_id:a.tenantId}):X.resetUserIdentity()}(w,h,U,Me))},[w,ne,h,U,D]),v.useEffect(()=>{D.isSignedIn()&&(f(B.TENANT_FETCHING),function(a,b,d,s,m,M,k){if(d==null&&s==null)return void console.warn("There is no current tenant selected!!");const q=s!=null&&m?.zeniSessionId!=null,ts=d==null||d.tenantId!==s,is=d!=null&&d.excludedResources==null,rs=d!=null&&d.externalConnections==null;if(q&&ts){k(Ie(s));const W=D.getSignedInUserTenantWithId(s);W?.tenantEmailDomain!=null&&D.saveActiveTenantDomainForUser(W?.tenantEmailDomain),pe(m?.userId,m?.zeniSessionId,s),_.shouldFetchExcludedResources(s)&&(_.markExcludedResourcesFetchStarted(s),k(ge(m.userId,s))),_.shouldFetchConnections(s)&&(_.markConnectionsFetchStarted(s),k(xe(m.userId,s)))}else q&&is&&_.shouldFetchExcludedResources(s)&&(_.markExcludedResourcesFetchStarted(s),k(ge(m.userId,s))),q&&rs&&_.shouldFetchConnections(s)&&(_.markConnectionsFetchStarted(s),k(xe(m.userId,s)));if(q){X.identify(m.userId,{tenant_id:s});const W=s==null||s!=null&&(b==="Completed"||b==="Error");a==="Completed"||b!=="Not-Started"&&b!=="Error"||s==null||!_.shouldFetchActiveTenant(s)||(_.markActiveTenantFetchStarted(s),M(B.TENANT_FETCHING),k(ks(m.userId,s,m.zeniSessionId))),W&&(a==="Not-Started"||a==="Error")&&_.shouldFetchAllTenants()&&(_.markAllTenantsFetchStarted(),k(Ee(m.userId,m.zeniSessionId)))}}(j,E,r,R,h,f,U))},[R,E]),v.useEffect(()=>{D.isSignedIn()&&j==="Completed"&&Y.tenantsBaseInOrder.length>0&&(Z(B.TENANT_FETCHING),D.saveSignedInUserTenants(hs(Y.tenantsBaseInOrder)),h!=null&&je(h,r,N,void 0,Y.tenantsBaseInOrder))},[Y,j,r,h]),v.useEffect(()=>{E==="In-Progress"&&f(B.TENANT_FETCHING),E!=="Completed"&&E!=="Error"||(E==="Completed"&&R!=null?(O(),_.markActiveTenantFetchCompleted(R)):E==="Error"&&R!=null&&(_.markActiveTenantFetchFailed(R),Z(B.TENANT_FETCHING),Z(B.TENANT_SWITCHING))),j!=="Completed"&&j!=="Error"||(j==="Completed"?_.markAllTenantsFetchCompleted():j==="Error"&&_.markAllTenantsFetchFailed())},[E,j,R,S]);const ie=v.useRef(!1);v.useEffect(()=>{!ie.current&&E==="Completed"&&S&&(ie.current=!0,function(a=Qs,b=3e3){setTimeout(()=>{const d=s=>{if(s>=a.length)return;const m=a[s],M=Js[m];M!=null?M().then(()=>ee(()=>d(s+1))).catch(()=>ee(()=>d(s+1))):d(s+1)};ee(()=>d(0))},b)}())},[E,S]);const C=r?.userRole!=null&&js(r?.userRole),{isFeatureEnabled:Ze}=P(L.isReferralFeatureEnabled),we=r?.userRole!=null&&r.userRole.includes("charge_card_user"),ze=r?.userRole!=null&&r.userRole.includes("charge_card_admin"),F=r?.userRole!=null&&Ae(r.userRole),re=r?.company==null||r.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!C,oe=Be&&!C,Ge=Us(A?.loggedInUserRoleMap),$e=r.externalConnections?.accounting[0]?.isValid,le=r.company?.companyOnboardingInfo.isOnboardingCompleted,ce=r?.company==null||r.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!C,de=ce&&bs(A?.loggedInUserRoleMap),me=Oe&&!C,Ye=r.company!=null&&Ds(r.company),qe=Pe&&Ye===!0&&!C,We=re&&Hs(A?.loggedInUserRoleMap),Ke=oe&&Rs(A?.loggedInUserRoleMap),Je=me&&ys(A?.loggedInUserRoleMap),Qe=fs(A?.loggedInUserRoleMap),Xe=Cs(A?.loggedInUserRoleMap),p=vs(A?.loggedInUserRoleMap),I=Os(A?.loggedInUserRoleMap),g=Ps(A?.loggedInUserRoleMap),x=Fs(A?.loggedInUserRoleMap),T=Ls(A?.loggedInUserRoleMap),ue=re&&x,_e=ce&&T,es=me&&p,ss=qe&&I,ns=oe&&g,as=r.excludedResources?.resources?.find(a=>a.resource==="/invites")!=null||Se===!0||Ge===!0||Qe===!0||Xe===!0;return D.isSignedIn()?R==null?j==="Completed"?e.jsx(c,{to:"/",replace:!0,state:{...G.state,message:"...",origin:G.pathname}}):(h!=null&&j!=="In-Progress"&&U(Ee(h.userId,h.zeniSessionId)),null):E!=="In-Progress"&&E!=="Not-Started"||j==="Completed"?(le===!0||K&&!te)&&$e===!1&&u===!1&&$===!1?(i(void 0),e.jsx(c,{to:"/connection/auth",replace:!0})):!S||le!==!1||te||K?S&&r?.userRole&&u!=null&&$!=null&&o!=null&&Object.keys(A.loggedInUserRoleMap).length>0?e.jsx(Zs,{children:e.jsxs(t,{element:e.jsx(Ws,{}),children:[e.jsx(t,{path:"/",element:e.jsx(Tn,{isDashboardAccess:F,isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,isTenantCardsOnly:$})}),e.jsx(t,{path:"dashboard/*",element:F?e.jsx(on,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reports/*",element:F?e.jsx(Xs,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"people/*",element:as||F?e.jsx(sn,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"forecast/*",element:F?e.jsx(nn,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"onboarding/*",element:e.jsx(an,{})}),e.jsx(t,{path:"transaction/*",element:F&&C===!1||we||ze?e.jsx(rn,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"transactions/*",element:F&&C===!1?e.jsx(mn,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"customer/*",element:F&&C===!1?e.jsx(Ue,{entityType:"customer"}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isTenantBankingOnly:u,isUserHasTreasuryAccess:I,tenantEmailDomain:o})}),e.jsx(t,{path:"vendor/*",element:F&&C===!1?e.jsx(Ue,{entityType:"vendor"}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"tasks",element:e.jsx(xn,{})}),e.jsx(t,{path:"tasks/*",element:e.jsx(In,{})}),e.jsx(t,{path:"address/*",element:We||de||Je||Ke?e.jsx(en,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"checking/*",element:es?e.jsx(cn,{}):e.jsx(y,{})}),e.jsx(t,{path:"treasury/*",element:ss?e.jsx(dn,{}):e.jsx(y,{})}),e.jsx(t,{path:"performance",element:ye?e.jsx(An,{}):e.jsx(He,{tenantEmailDomain:o})}),e.jsx(t,{path:"month_end_close_checks/review/*",element:ve&&C===!1?e.jsx(En,{}):e.jsx(He,{tenantEmailDomain:o})}),e.jsx(t,{path:"notifications/*",element:e.jsx(_n,{})}),e.jsx(t,{path:"vendors/*",element:Ne?e.jsx(tn,{}):e.jsx(y,{})}),e.jsx(t,{path:"bill/*",element:ue?e.jsx(be,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"bills/*",element:ue?e.jsx(be,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reimbursement/*",element:_e?e.jsx(De,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reimbursements/*",element:_e?e.jsx(De,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"settings/*",element:ke?e.jsx(ln,{hasAdminLevelAccess:de}):e.jsx(y,{})}),e.jsx(t,{path:"cards/*",element:ns?e.jsx(un,{}):e.jsx(y,{})}),e.jsx(t,{path:"rewards/*",element:Ze?e.jsx(pn,{}):e.jsx(y,{})}),e.jsx(t,{path:"/ai-cfo",element:J?e.jsx(c,{to:"explore"}):e.jsx(y,{})}),e.jsx(t,{path:"/ai-cfo/",element:J?e.jsx(c,{to:"explore"}):e.jsx(y,{})}),e.jsx(t,{path:"/ai-cfo/:session_id",element:J?e.jsx(gn,{isFileUploadEnabled:Ve}):e.jsx(y,{})}),e.jsx(t,{path:"*",element:e.jsx(y,{})})]})}):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:{...G.state,message:"...",origin:G.pathname}}))}const Tn=({isDashboardAccess:i,isUserHasZeniAccountsAccess:U,isUserHasChargeCardAccess:V,isUserHasBillPayAccess:o,isUserHasReimbursementAccess:N,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"}):N?e.jsx(c,{to:"reimbursements"}):e.jsx(c,{to:"dashboard"}),H=({isUserHasZeniAccountsAccess:i,isUserHasChargeCardAccess:U,isUserHasBillPayAccess:V,isUserHasReimbursementAccess:o,isUserHasTreasuryAccess:N,isTenantBankingOnly:f,tenantEmailDomain:O})=>f===!0||i?e.jsx(bn,{tenantEmailDomain:O}):N?e.jsx(Un,{tenantEmailDomain:O}):U?e.jsx(Dn,{tenantEmailDomain:O}):V?e.jsx(jn,{tenantEmailDomain:O}):o?e.jsx(hn,{tenantEmailDomain:O}):e.jsx(y,{}),hn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/reimbursements`}),jn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/bills`}),Un=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/treasury`}),bn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/checking`}),Dn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/cards`}),He=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/dashboard`});export{H as FallBackRoute,wn as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-DQZTUYaP.js";import{a as n}from"./sentry-TZXmKDQw.js";import{h as u,u as m,j as p,N as g}from"./core-81_24gOZ.js";import{z as f,v as b,t as y,e as d,g as h}from"./index-CrJkkWJL.js";import{fM as I,fN as x,IF as j}from"./zeni-epic-state-ByRn6LTM.js";import{n as v}from"./mui-PBYO31bv.js";import"./recharts-CoGzUQZp.js";import"./analytics-BQrb6Qbx.js";import"./plaid-DlKzKckL.js";import"./dnd-DYlS7coJ.js";import"./stripe-DMRn4zHo.js";import"./lottie-BBbI6qbQ.js";import"./lexical-CbrHQrBN.js";import"./pdf-B6wzUPO1.js";import"./utils-ByIWXJU0.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]="122dab39-5c05-4fea-9721-8207bdb9068c",e._sentryDebugIdIdentifier="sentry-dbid-122dab39-5c05-4fea-9721-8207bdb9068c")}catch{}})();function $(){const e=u(),t=m(),i=p(),a=n.useRef(!1),c=f.isSignedIn(),r=t.state?.message==="logout",o=r||c;return n.useEffect(()=>{o&&!a.current&&(a.current=!0,setTimeout(()=>{try{f.clearAll(),e(I()),e(x(!1)),j(),y.reset(),d.trackLogout(h.Event.logoutSuccess),d.resetUserIdentity()}catch(l){console.error("Error during sign out:",l)}finally{r||i("/signin/auth",{replace:!0})}},0))},[o,r]),o?s.jsx(w,{children:s.jsx(b,{fetchState:"In-Progress"})}):s.jsx(g,{to:"../",replace:!0})}const w=v.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 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./liveblocks-DQZTUYaP.js";import i from"./NotFoundScreen-Bz1OgFA4.js";import{T as r}from"./TransactionDetailScreen-DDaVaJog.js";import"./sentry-TZXmKDQw.js";import{n as d,o as e}from"./core-81_24gOZ.js";import"./zeni-epic-state-ByRn6LTM.js";import"./recharts-CoGzUQZp.js";import"./index-CrJkkWJL.js";import"./mui-PBYO31bv.js";import"./analytics-BQrb6Qbx.js";import"./plaid-DlKzKckL.js";import"./dnd-DYlS7coJ.js";import"./stripe-DMRn4zHo.js";import"./lottie-BBbI6qbQ.js";import"./lexical-CbrHQrBN.js";import"./pdf-B6wzUPO1.js";import"./utils-ByIWXJU0.js";import"./useAskAiCfoHostNavButtonProps-BMpPQ4Uh.js";import"./useFetchSuggestedQuestionsWhenReady-1y-0GGXu.js";import"./decodeURIComponentSafe-DUAqgtlO.js";import"./routePaths-DR4gfTc6.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new o.Error().stack;n&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[n]="256f287b-7a3d-4d6d-890e-a8cb9db8b86d",o._sentryDebugIdIdentifier="sentry-dbid-256f287b-7a3d-4d6d-890e-a8cb9db8b86d")}catch{}})();function q(){return t.jsxs(d,{children:[t.jsx(e,{path:"/:transactionTypeEncoded/:transactionId",element:t.jsx(r,{})}),t.jsx(e,{path:"/:transactionTypeEncoded/:transactionId/page-not-found",element:t.jsx(i,{})}),t.jsx(e,{path:"/:transactionTypeEncoded/:transactionId/vendor/create",element:t.jsx(r,{})}),t.jsx(e,{path:"/*",element:t.jsx(r,{})})]})}export{q as default};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./liveblocks-DQZTUYaP.js";import{a as f}from"./sentry-TZXmKDQw.js";import{q as u,h,g as y,N as I}from"./core-81_24gOZ.js";import{IE as b,eO as w,yZ as x}from"./zeni-epic-state-ByRn6LTM.js";import{z as l,v as j,F as S,Q as E}from"./index-CrJkkWJL.js";import{n as g}from"./mui-PBYO31bv.js";import"./recharts-CoGzUQZp.js";import"./analytics-BQrb6Qbx.js";import"./plaid-DlKzKckL.js";import"./dnd-DYlS7coJ.js";import"./stripe-DMRn4zHo.js";import"./lottie-BBbI6qbQ.js";import"./lexical-CbrHQrBN.js";import"./pdf-B6wzUPO1.js";import"./utils-ByIWXJU0.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]="907d9fb2-75ac-468e-8206-18e9f0501737",e._sentryDebugIdIdentifier="sentry-dbid-907d9fb2-75ac-468e-8206-18e9f0501737")}catch{}})();const W=()=>{const[e]=u(),t=e.get("code")??"",s=e.get("state")??"",p=e.get("profileId")??"",[n,c]=f.useState(!1),a=h(),i=y(m=>b(m)),r=l.getSignedInUser(),d=l.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||(c(!0),a(x(t,p,s)))},[n,a]),i.fetchState==="Error"?o.jsx(v,{children:o.jsx(D,{children:i.error?.message??""})}):(i.fetchState==="Completed"&&window.close(),o.jsx(j,{fetchState:"In-Progress"}))},v=g.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
|
-
`,D=g(E.LargeRegular)`
|
|
10
|
-
display: flex;
|
|
11
|
-
color: ${S.important};
|
|
12
|
-
`;export{W as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-DQZTUYaP.js";import{a as u}from"./sentry-TZXmKDQw.js";import{j as x,h as v,u as N,l as $,g as p}from"./core-81_24gOZ.js";import{HE as s,HD as j,NK as B,eN as C,NL as D}from"./zeni-epic-state-ByRn6LTM.js";import{Z as E,ao as g,h as L,z as T,v as z,bZ as P,p as U}from"./index-CrJkkWJL.js";import{n as _}from"./mui-PBYO31bv.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]="4edf96fe-fd80-4d7f-90a3-19b9c71f9ee5",e._sentryDebugIdIdentifier="sentry-dbid-4edf96fe-fd80-4d7f-90a3-19b9c71f9ee5")}catch{}})();const Z=_.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 q(){const e=x(),n=v(),d=E(),f=N();let{accountId:a}=$(),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,h]=u.useState(!1),y=L();u.useEffect(()=>{m||(h(!0),n(j(a??"",!1)))},[m,n]);const o=p(t=>B(t,a??"")),b=()=>{const t=U(f.state?.pathnameStackToGoBack),S=t.poppedPathname??"..";e(S,{state:{pathnameStackToGoBack:t.newStack}})},r=T.getSignedInUser(),c=p(t=>C(t)),I={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:c.tenantId??""},w=D(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(z,{fetchState:"In-Progress",style:{backgroundColor:y.colors.grey5}}):i.jsx(Z,{windowSize:d,children:i.jsx(P,{currentTenantCompanyName:k,statementListView:o,accountLast4:w,onBackClick:b,authParams:I,downloadEndPoint:l})})}export{q as Z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{W as n}from"./index-CrJkkWJL.js";import"./mui-PBYO31bv.js";import"./sentry-TZXmKDQw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="36602dce-6a66-47b6-8825-cbe89afce2ea",e._sentryDebugIdIdentifier="sentry-dbid-36602dce-6a66-47b6-8825-cbe89afce2ea")}catch{}})();function l(e){if(e.companyLocaleInfo!=null&&e.companyLocaleInfo.languageCode.length>0&&e.companyLocaleInfo.companyIncCountryCode.length>0){const o=`${e.companyLocaleInfo.languageCode.toLowerCase()}-${e.companyLocaleInfo.companyIncCountryCode.toUpperCase()}`;return console.warn(`localeID ${o}`),n(o)??"en"}return"en"}export{l as t};
|