@zeniai/web-app-ui 5.3.84-prod → 5.3.85-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/{AccountMappingScreen-Da9lNgTh.js → AccountMappingScreen-VlkHI3xY.js} +2 -2
- package/dist/assets/{ActualMatchingMatchDetailScreen-Cme87N6F.js → ActualMatchingMatchDetailScreen-D2w0402Y.js} +1 -1
- package/dist/assets/AddressRoutes-ChEkAt9U.js +1 -0
- package/dist/assets/AddressScreen-Ddq_CqzP.js +9 -0
- package/dist/assets/{AiCfoScreen-CmeUs6M1.js → AiCfoScreen-DZMyDWi7.js} +1 -1
- package/dist/assets/{AppDrawer-BvSnr3LW.js → AppDrawer-DgKtqckJ.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-C7ELb8IL.js → BillPayApprovalRoutes-BNUUByv0.js} +1 -1
- package/dist/assets/{BillPayRoutes-2a_IZnwa.js → BillPayRoutes-C6ApjpPQ.js} +8 -8
- package/dist/assets/{BusinessVerificationPageScreen-BMy0l7mH.js → BusinessVerificationPageScreen-Bt2MC2-R.js} +2 -2
- package/dist/assets/{CardsAiCfoScreen-CqoF74R8.js → CardsAiCfoScreen-rZP4bSgz.js} +1 -1
- package/dist/assets/{ChargeCardRoutes-BRLKWsqh.js → ChargeCardRoutes-B-GJ-Bri.js} +7 -7
- package/dist/assets/CompanyPassportScreen-Bzj5vwX-.js +1 -0
- package/dist/assets/ConnectionAuthScreen-BYY41VkQ.js +11 -0
- package/dist/assets/CustomerOnboardingAuthScreen-D2U3ohrN.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-C-xGwLOY.js → CustomerOnboardingRoutes-DKZXnZ66.js} +3 -3
- package/dist/assets/{DashboardRoutes-B204TMlK.js → DashboardRoutes-DG0LnHD5.js} +1 -1
- package/dist/assets/{DefaultTenantHome-MEymJr7l.js → DefaultTenantHome-BfkBFl-w.js} +1 -1
- package/dist/assets/DomesticWireDetailScreen-DHQbDcNG.js +18 -0
- package/dist/assets/{DrawerScreen-D-EbmxsO.js → DrawerScreen-FFX6peDV.js} +1 -1
- package/dist/assets/{EntityDetailRoutes-DJQtBHmg.js → EntityDetailRoutes-DfxLoaAu.js} +1 -1
- package/dist/assets/{ExpenseAutomationRoutes-DndYYpK4.js → ExpenseAutomationRoutes-BvSgjc7b.js} +7 -7
- package/dist/assets/FeaturePreviewScreen-BKEnTrse.js +1 -0
- package/dist/assets/{HubSpotOAuthCallbackScreen-DUPKhb1k.js → HubSpotOAuthCallbackScreen-mZJfTUzG.js} +1 -1
- package/dist/assets/{InboxNotificationsProvider-BPTkk56Z.js → InboxNotificationsProvider-DTx76-7a.js} +1 -1
- package/dist/assets/{InvoicingRoutes-BegsYwP5.js → InvoicingRoutes-7dd3ECkW.js} +1 -1
- package/dist/assets/{MagicLinkRoutes-DGnkgyIy.js → MagicLinkRoutes-BePEhm0H.js} +21 -21
- package/dist/assets/MagicLinkSignInScreen-DdBVqdZ6.js +12 -0
- package/dist/assets/MobileAppDrawer-B-LrFFrs.js +1 -0
- package/dist/assets/NotFoundScreen-D7YKuY7u.js +1 -0
- package/dist/assets/{NotificationRoutes-yv8wAOZf.js → NotificationRoutes-DtJvpFLz.js} +1 -1
- package/dist/assets/{OAuthConsentScreen-BiUYup5g.js → OAuthConsentScreen-BlNpiX2k.js} +1 -1
- package/dist/assets/{PandLWithForecastRoutes-CdbkRZNP.js → PandLWithForecastRoutes-g9ft1qXA.js} +1 -1
- package/dist/assets/{PaymentLinkScreen-exmyEd7O.js → PaymentLinkScreen-9YlFVhJT.js} +5 -5
- package/dist/assets/{PeopleRoutes-CIibObVn.js → PeopleRoutes-CAteVI0g.js} +3 -3
- package/dist/assets/PerformanceRoutes-CGryxKcT.js +1 -0
- package/dist/assets/{Preview-CNq1BOL1.js → Preview-DCDdGY49.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-DCCiwBvr.js → QBOConnectionScreen-DRJ9l1ZN.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRoutes-f7b2MUNz.js → ReimbursementApprovalRoutes-CJHSclit.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-ZIBaIx9-.js → ReimbursementApprovalRuleDetailScreen-BSbU5iHI.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-Cx2mA5oI.js → ReimbursementRoutes-CwwSdr2n.js} +6 -6
- package/dist/assets/{ReportsRoutes-D_y8Fj_V.js → ReportsRoutes-C2Jb5zyi.js} +1 -1
- package/dist/assets/RewardsRoutes-BWyKBIYZ.js +1 -0
- package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-DCKvd2Rw.js → ScheduleDetailsPrepaidExpensesScreen-DX-YxATr.js} +1 -1
- package/dist/assets/ScreenRoutes-DN7T70Gm.js +2 -0
- package/dist/assets/{SettingsRoutes-DJySqZaP.js → SettingsRoutes-Bfs7XUiH.js} +6 -6
- package/dist/assets/{SetupPagesScreen-DIAlz55b.js → SetupPagesScreen-C1bkOzJr.js} +1 -1
- package/dist/assets/SignInScreen-BKWATPtE.js +1 -0
- package/dist/assets/SignOutScreen-TJtfwdGX.js +9 -0
- package/dist/assets/{TaskListScreen-CDkR9GBn.js → TaskListScreen-DvcC1URP.js} +2 -2
- package/dist/assets/TaskRoutes-DORm-aw2.js +9 -0
- package/dist/assets/TransactionDetailRoutes-8PpDu4Rs.js +1 -0
- package/dist/assets/{TransactionDetailScreen-Db4tleaR.js → TransactionDetailScreen-1ibKq26Q.js} +1 -1
- package/dist/assets/{TransactionListRoutes-Bou1SXH0.js → TransactionListRoutes-DLxmG7Ta.js} +1 -1
- package/dist/assets/{TreasuryRoutes-CAU50PuC.js → TreasuryRoutes-CLEbVEMG.js} +1 -1
- package/dist/assets/{VendorsRoutes-B0jpUEsr.js → VendorsRoutes-DB9yoziH.js} +1 -1
- package/dist/assets/{WiseConfirmationScreen-C7rNKySw.js → WiseConfirmationScreen-UrofaKPf.js} +1 -1
- package/dist/assets/{ZeniAccountRoutes-rvEU6aIV.js → ZeniAccountRoutes-YvPOvTvu.js} +9 -9
- package/dist/assets/{ZeniAccountStatementScreen-Bx3EGjPX.js → ZeniAccountStatementScreen-25uaLk4M.js} +1 -1
- package/dist/assets/{accountMappingHelper-CwsbX9Ea.js → accountMappingHelper-C4sKhzhY.js} +1 -1
- package/dist/assets/{analytics-BXM45nWq.js → analytics-DgOwHMv9.js} +1 -1
- package/dist/assets/{analyticsHelper-Cx6i8svJ.js → analyticsHelper-DeEJJP1T.js} +1 -1
- package/dist/assets/{core-C81VRbeP.js → core-CKdWu7C4.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-CrALq_f_.js → decodeURIComponentSafe-De-pfuHA.js} +1 -1
- package/dist/assets/{dnd-BdXAZjIP.js → dnd-GMAnxo5D.js} +1 -1
- package/dist/assets/{empty-CCGHlGh0.js → empty-CCBmgRCN.js} +1 -1
- package/dist/assets/{empty-CatVTIO7.js → empty-DZ4e7m7E.js} +1 -1
- package/dist/assets/{emptyVideoElement-B0T9fl5M.js → emptyVideoElement-CjciNHh4.js} +1 -1
- package/dist/assets/{epic-D-qeSG0v.js → epic-DaFddCaZ.js} +1 -1
- package/dist/assets/{expenseAutomationHelper-Crya3Dv_.js → expenseAutomationHelper-QjlEGiQT.js} +1 -1
- package/dist/assets/{getLocaleForTenant-nCPleYdt.js → getLocaleForTenant-BykJ4K_E.js} +1 -1
- package/dist/assets/{index--a-B3LAp.js → index-8yj575lF.js} +1 -1
- package/dist/assets/{index-BMGzjwLG.js → index-B-KqmJJm.js} +1 -1
- package/dist/assets/{index-CF1zoe-f.js → index-BZQtvi2u.js} +1 -1
- package/dist/assets/{index-CUVRvOQe.js → index-BunveEom.js} +1 -1
- package/dist/assets/{index-DE2jmi6G.js → index-D6kwssUw.js} +1 -1
- package/dist/assets/{index-B42hg9O2.js → index-DUEtWU0V.js} +2 -2
- package/dist/assets/{index-DBuws41Q.js → index-DpMage3e.js} +13860 -13846
- package/dist/assets/{index-Ba_1Hknz.js → index-ph4OiQVe.js} +1 -1
- package/dist/assets/{lexical-DcaHthb5.js → lexical-Bbndsy_i.js} +1 -1
- package/dist/assets/{liveblocks-ElMRERc9.js → liveblocks-CiRsIXv9.js} +1 -1
- package/dist/assets/{lottie-B6h9ACvw.js → lottie-Bk0D-wP9.js} +1 -1
- package/dist/assets/{mui-DoMnHjRT.js → mui-uBLtQnjV.js} +1 -1
- package/dist/assets/{pathToGoBack-CArS3X2C.js → pathToGoBack-B8jPctZc.js} +1 -1
- package/dist/assets/{pdf-DFrRjL7N.js → pdf-C6vaCCoi.js} +3 -3
- package/dist/assets/{pdf-lib-NwhHokxt.js → pdf-lib-xbfYrsmJ.js} +1 -1
- package/dist/assets/{plaid-4usmEsnw.js → plaid-BNZ1yRTN.js} +1 -1
- package/dist/assets/{pusher-B9pbrwG6.js → pusher-BxkxzHUj.js} +1 -1
- package/dist/assets/{react-DMYtvh_5.js → react-ABdSIYHq.js} +1 -1
- package/dist/assets/{react-BlNQJp9p.js → react-DDSLhBDZ.js} +1 -1
- package/dist/assets/{react-Rj0qpQ1t.js → react-DJjTf4Q5.js} +1 -1
- package/dist/assets/{react-B76u7RNU.js → react-jCicCcT0.js} +1 -1
- package/dist/assets/{react-BzqY0M4o.js → react-nPQI4P7d.js} +1 -1
- package/dist/assets/{react-DPm5G7V9.js → react-siQwgdfv.js} +1 -1
- package/dist/assets/{recharts-DdTjw53U.js → recharts-CnFcvsiB.js} +1 -1
- package/dist/assets/{routePaths-CfxWxmyX.js → routePaths-Ld6pXFbh.js} +1 -1
- package/dist/assets/{sentry-B8nCx7v9.js → sentry-DyyEkQvE.js} +1 -1
- package/dist/assets/{stripSplatSuffix-YfV8OHUS.js → stripSplatSuffix-CLkpHspw.js} +1 -1
- package/dist/assets/{url-BjLh-KZK.js → url-BCdZ1CbH.js} +1 -1
- package/dist/assets/{url-CyEEo-3q.js → url-C7o4oPZz.js} +1 -1
- package/dist/assets/{useActualMatchingMatchDetail-DVb3aFLv.js → useActualMatchingMatchDetail-Dbi0I2OZ.js} +1 -1
- package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-CdPJGZky.js → useAiCfoDashboardSuggestedQuestionsChips-WvX1r_Wk.js} +1 -1
- package/dist/assets/{useAskAiCfoHostNavButtonProps-CAip1ZNF.js → useAskAiCfoHostNavButtonProps-D35qbi_p.js} +1 -1
- package/dist/assets/{useChargeCardPusherEvents-BdQgr28p.js → useChargeCardPusherEvents-CvQP33nJ.js} +1 -1
- package/dist/assets/{useDeviceId-BHwBnu_B.js → useDeviceId-YV51-SzN.js} +1 -1
- package/dist/assets/{useEmailConnectResultRefresh-DLH0Ue8L.js → useEmailConnectResultRefresh-BnC-Kc6A.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-Df2EXypG.js → useInitialThreadRequest-D5CxaA02.js} +1 -1
- package/dist/assets/{useTaskManagerAccess-BpFV6J8j.js → useTaskManagerAccess-Bvl8DVEY.js} +1 -1
- package/dist/assets/{useTaskManagerPusherEvents-iP182dSE.js → useTaskManagerPusherEvents-Dec5VxRR.js} +1 -1
- package/dist/assets/{utils-CSS89dSa.js → utils-RyVg9L9D.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-BP_l6766.js → withTransactionSidePanel-BRJU_73M.js} +1 -1
- package/dist/assets/{zeni-epic-state-DklVhJVB.js → zeni-epic-state-BuhfcA02.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/AddressRoutes-B_mWuw-F.js +0 -1
- package/dist/assets/AddressScreen-DFztK6Ig.js +0 -9
- package/dist/assets/CompanyPassportScreen-B6j95Qyx.js +0 -1
- package/dist/assets/ConnectionAuthScreen-DP7_3Lnx.js +0 -11
- package/dist/assets/CustomerOnboardingAuthScreen-BpjWikGb.js +0 -1
- package/dist/assets/DomesticWireDetailScreen-CBzt-Nae.js +0 -18
- package/dist/assets/FeaturePreviewScreen-Cu8urpMS.js +0 -1
- package/dist/assets/MagicLinkSignInScreen-Cb3CO89l.js +0 -12
- package/dist/assets/MobileAppDrawer-DtO8FQWm.js +0 -1
- package/dist/assets/NotFoundScreen-DHMPApWS.js +0 -1
- package/dist/assets/PerformanceRoutes-DRZwF4Om.js +0 -1
- package/dist/assets/RewardsRoutes-CDc0bjMu.js +0 -1
- package/dist/assets/ScreenRoutes-CU67IyZN.js +0 -2
- package/dist/assets/SignInScreen-BODRPfBX.js +0 -1
- package/dist/assets/SignOutScreen-Bi7O_J9b.js +0 -9
- package/dist/assets/TaskRoutes-CQdL9o7q.js +0 -9
- package/dist/assets/TransactionDetailRoutes-Cjl1b082.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-DpMage3e.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-DyyEkQvE.js"><link rel="modulepreload" crossorigin href="/assets/core-CKdWu7C4.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-BuhfcA02.js"><link rel="modulepreload" crossorigin href="/assets/mui-uBLtQnjV.js"><link rel="modulepreload" crossorigin href="/assets/analytics-DgOwHMv9.js"><link rel="modulepreload" crossorigin href="/assets/utils-RyVg9L9D.js"><link rel="stylesheet" crossorigin href="/assets/index-BQ3cXEYt.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.3.
|
|
3
|
+
"version": "5.3.85-dev",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/**/*"
|
|
6
6
|
],
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@stripe/stripe-js": "^4.4.0",
|
|
31
31
|
"@zeniai/client-analytics": "2.1.3",
|
|
32
32
|
"@zeniai/client-epic-state": "5.2.81",
|
|
33
|
-
"@zeniai/web-components": "4.4.
|
|
33
|
+
"@zeniai/web-components": "4.4.23",
|
|
34
34
|
"color": "3.1.3",
|
|
35
35
|
"crypto-js": "4.2.0",
|
|
36
36
|
"dnd-core": "^16.0.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./liveblocks-ElMRERc9.js";import{A as i}from"./AddressScreen-DFztK6Ig.js";import s from"./NotFoundScreen-DHMPApWS.js";import"./sentry-B8nCx7v9.js";import{n as d,o as r}from"./core-C81VRbeP.js";import"./zeni-epic-state-DklVhJVB.js";import"./recharts-DdTjw53U.js";import"./index-DBuws41Q.js";import"./mui-DoMnHjRT.js";import"./analytics-BXM45nWq.js";import"./plaid-4usmEsnw.js";import"./dnd-BdXAZjIP.js";import"./stripe-cKAAJElX.js";import"./lottie-B6h9ACvw.js";import"./lexical-DcaHthb5.js";import"./pdf-DFrRjL7N.js";import"./utils-CSS89dSa.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]="81cbb5c1-1b56-4d87-a240-ae6c03b91825",t._sentryDebugIdIdentifier="sentry-dbid-81cbb5c1-1b56-4d87-a240-ae6c03b91825")}catch{}})();function _(){return e.jsxs(d,{children:[e.jsx(r,{path:"/edit/:addressType/:addressId",element:e.jsx(i,{})}),e.jsx(r,{path:"/new/:addressType",element:e.jsx(i,{})}),e.jsx(r,{path:"*",element:e.jsx(s,{})})]})}export{_ as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as n}from"./liveblocks-ElMRERc9.js";import{a as h}from"./sentry-B8nCx7v9.js";import{h as A,u as T,g as j,i as E,j as $,l as B}from"./core-C81VRbeP.js";import{$ as L,z as M,V,a5 as D,a6 as K,j as C,Q as S,a1 as R,X as b,a2 as z}from"./index-DBuws41Q.js";import{VP as _,it as F,fI as U,VQ as G,c9 as N,VR as O,mL as Q}from"./zeni-epic-state-DklVhJVB.js";import{u as q,n as H}from"./mui-DoMnHjRT.js";import X from"./NotFoundScreen-DHMPApWS.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]="fd5619c1-e86c-4341-97df-df8c8c9897f8",e._sentryDebugIdIdentifier="sentry-dbid-fd5619c1-e86c-4341-97df-df8c8c9897f8")}catch{}})();const J=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=B((function(e,s){const{addressId:o,isSubPage:i,addressType:c}=s,l=U(e),a=s.roleMap!=null&&G(s.roleMap),d=i||c==="user_address"||N(l?.userRole??[])||a?void 0:"readonly";if(o==null){const t=O(c,e);return{addressToEdit:t?.addressToCreate,loadingState:t?.status?.fetchState,googleAPIKey:b.googleMapsAPIKey,isDisabled:d,isSubPage:i,dontShowSaveConfirmationPopup:s.dontShowSaveConfirmation}}const r=_(e,o);return{addressToEdit:r.address,loadingState:r.fetchState,googleAPIKey:b.googleMapsAPIKey,isDisabled:d}}),(function(e,s){const{navigate:o,location:i,addressType:c}=s,l=a=>{if(a==="express-pay")o("../express-pay/add-wire");else{const d=i.state,r=z(d?.pathnameStackToGoBack);let t=r.poppedPathname??v();const u=d?.queryParams;if(u){const f=new URLSearchParams(u).toString();f&&(t=`${t}?${f}`)}o(t,{state:{pathnameStackToGoBack:r.newStack}})}};return{onSubmitHandler:a=>{const d=Y(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(s.bankAccountContext)},onCancel:()=>{l(s.bankAccountContext)}}}))(R);function ne({isSubPage:e,hideAddressSubTitle:s=!1,hideAddressBackButton:o=!1,dontShowSaveConfirmation:i,accountContext:c,addressTypeParam:l}){const a=A(),d=T(),r=j(),{addressId:t,addressType:u}=E(),f=L(),w=q(),I=M.getSignedInUser(),[g,k]=h.useState(t==null),p=$((m=>t!=null?_(m,t).fetchState:"Not-Started")),x=V();if(I==null)throw Error("Can't access address page without signing in...");const P=m=>m.trackPageLoaded(t!=null?S.Event.editAddress:S.Event.addAddress),y=l??u;return h.useEffect((()=>{g||t==null||(k(!0),d(F(t,!1)))}),[g,t,d]),y==null||y.match(/(user_address|company_address|company_registered_address|vendor_address|officer_([1-9]|10)_address|invoicing_customer_billing_address|invoicing_subscription_shipping_address|invoicing_business_address)$/g)?!g&&p==="Not-Started"||g&&p==="In-Progress"?n.jsx(D,{fetchState:p,style:{backgroundColor:w.colors.grey5}}):t!=null&&p==="Error"?(a(`${v(1)}/new`,{replace:!0}),n.jsx(n.Fragment,{})):n.jsxs(n.Fragment,{children:[n.jsx(K,{analytics:C,onLoad:P}),n.jsx(J,{windowSize:f,children:n.jsx(W,{location:r,navigate:a,isSubPage:e===!0,hideAddressBackButton:o,hideAddressSubTitle:s,addressId:t,addressType:y,dontShowSaveConfirmation:i,bankAccountContext:c,roleMap:x?.loggedInUserRoleMap})})]}):n.jsx(X,{})}const v=(e=2)=>{let s="../";for(let o=0;o<e;o++)s=`${s}../`;return s},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 m}from"./liveblocks-ElMRERc9.js";import{a as g}from"./sentry-B8nCx7v9.js";import{h as w,u as x,g as T,i as k,j as O,l as E}from"./core-C81VRbeP.js";import{z as C,bq as F,a6 as P,j as V,Q as j,n as b,br as L,ac as A,aE as U,p as B}from"./index-DBuws41Q.js";import{fI as N,gL as M,BY as Y,gG as _,c9 as G,YH as R,bn as z,v2 as H,uS as q,mD as Q,oc as S,YI as Z,bF as $,cF as D,on as J,ox as K}from"./zeni-epic-state-DklVhJVB.js";import"./mui-DoMnHjRT.js";import{d as W}from"./routePaths-CfxWxmyX.js";import{M as X}from"./MobileAppDrawer-DtO8FQWm.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]="2eac4cb8-5ba1-4abe-9fef-03acabe2e4a2",n._sentryDebugIdIdentifier="sentry-dbid-2eac4cb8-5ba1-4abe-9fef-03acabe2e4a2")}catch{}})();const ee=E((function(n){const t=_(n),i=C.getSignedInUser(),p=N(n),c=p.tenantId,l={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:c??""},f=G(p?.userRole??[])&&t.localData.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",e=R(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:l,filesEndPoint:`${A.fileMicroServiceBaseUrl}`,isZeniUser:z(i)}}),(function(n,t){const{companyId:i,currentTenant:p,navigate:c,location:l}=t,{tenantEmailDomain:f}=p;return{onScheduleClick:e=>{let a=e.href;a.includes("http")||(a="https://".concat(a)),window.open(a,"_blank")},onSaveAll:()=>{n(K())},onAddressClick:e=>{const a=W(f,e),o=B(l.state?.pathnameStackToGoBack,l.pathname);c(a,{state:{pathnameStackToGoBack:o}})},onResetClick:()=>{n(J({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:h}=r,v={companyInfo:{...a,website:u!=""&&u!=null?D(u):void 0,meetingLink:y!=""&&y!=null?D(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?$(s?.toString()):s,fileId:o.fileIds[0]},taxDetails:{taxIdOrEIN:r.taxIdOrEIN,sicCode:r.sicCode,naicsCode:r.naicsCode,dunsNumber:r.dunsNumber,taxesFiledYears:h.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(Z(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(Q({files:e}))},onDeleteFile:e=>{n(q(e))},onEditFileName:(e,a)=>{n(H(e,a.split(".")[0]))}}}))(L);function de(){const n=w(),t=x(),i=T(),{tenantEmailDomain:p}=k(),[c,l]=g.useState(!1),[f,e]=g.useState(!1),a=O((s=>s.companyViewState.passportView.fetchState)),o=O((s=>s.companyConfigState.fetchState)),r=O((s=>N(s))),d=r.companyId??C.getSignedInUserTenant(p)?.companyId;if(C.getSignedInUser()==null)throw Error("Can't access company details page without signing in...");g.useEffect((()=>{c||a!=="Not-Started"||d==null||(l(!0),t(M(d)))}),[c,a,d,t]),g.useEffect((()=>{o==="Not-Started"&&t(Y())}),[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:V,onLoad:s=>s.trackPageLoaded(j.Event.companyPassport,b(i)?"Settings":"Company Passport")}),b(i)?m.jsx(X,{isAppContentDrawerOpen:f,handleDrawerToggle:u}):null,m.jsx(ee,{companyId:d,navigate:n,location:i,isLoading:y,currentTenant:r,isSettings:b(i),onClickMenuIcon:()=>{u(!0)}})]})}export{de as C};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{j as I}from"./liveblocks-ElMRERc9.js";import{a as o}from"./sentry-B8nCx7v9.js";import{u as F,h as H,g as R,j as C,N as w}from"./core-C81VRbeP.js";import{Ul as q,fI as z,go as G,pW as Q,gP as U,gn as V,gl as W,UL as B,gk as A}from"./zeni-epic-state-DklVhJVB.js";import{u as J,z as E,L as T,G as K,H as M}from"./index-DBuws41Q.js";import{n as X}from"./mui-DoMnHjRT.js";import{P as h,a as _}from"./AccountMappingScreen-Da9lNgTh.js";import{t as Y}from"./getLocaleForTenant-nCPleYdt.js";import{g as Z,Q as ee}from"./QBOConnectionScreen-DCCiwBvr.js";import"./recharts-DdTjw53U.js";import"./analytics-BXM45nWq.js";import"./plaid-4usmEsnw.js";import"./dnd-BdXAZjIP.js";import"./stripe-cKAAJElX.js";import"./lottie-B6h9ACvw.js";import"./lexical-DcaHthb5.js";import"./pdf-DFrRjL7N.js";import"./utils-CSS89dSa.js";import"./MobileAppDrawer-DtO8FQWm.js";import"./InboxNotificationsProvider-BPTkk56Z.js";import"./useTaskManagerAccess-BpFV6J8j.js";import"./accountMappingHelper-CwsbX9Ea.js";import"./empty-CatVTIO7.js";import"./pdf-lib-NwhHokxt.js";import"./index-CF1zoe-f.js";import"./url-BjLh-KZK.js";import"./index--a-B3LAp.js";import"./decodeURIComponentSafe-CrALq_f_.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]="d7e16884-fd2e-4aff-a431-016f7e6248d1",t._sentryDebugIdIdentifier="sentry-dbid-d7e16884-fd2e-4aff-a431-016f7e6248d1")}catch{}})();const te=X.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
flex: 1 1 auto;
|
|
4
|
-
flex-direction: row;
|
|
5
|
-
justify-content: center;
|
|
6
|
-
align-items: center;
|
|
7
|
-
width: 100%;
|
|
8
|
-
height: 100vh;
|
|
9
|
-
background-color: ${t=>t.theme.colors.background};
|
|
10
|
-
box-shadow: ${t=>`0px 2px ${M.sp1} ${t.theme.colors.dropShadowNormal}`};
|
|
11
|
-
`;function we(){const t=F(),i=H(),v=R(),{setLoading:m,clearAllLoading:c}=J(),S=o.useRef(!1),x=o.useRef(!1),N=o.useRef(!1),f=o.useRef(!1),{code:O,realmId:L,state:$}=Z(v.search),p=O!==""&&L!==""&&$!=="";p&&(N.current=!0);const j=sessionStorage.getItem(h),u=j===_.pending,P=j===_.ready,y=C((s=>q(s))),e=C((s=>z(s))),n=C((s=>s.tenantState.fetchState)),r=C((s=>s.tenantState.activeTenantFetchState.fetchState)),a=E.getSignedInUser(),g=E.getActiveTenantForUser()?.tenantId,l=e?.externalConnections?.fetchState,d=e?.externalConnections?.saveConnectionState,b=e.externalConnections?.accounting[0]?.isValid;o.useLayoutEffect((()=>{m(T.CONNECTION_AUTH)}),[m]),o.useEffect((()=>{S.current||a==null||g==null||(S.current=!0,n==="Completed"||r!=="Not-Started"&&r!=="Error"||(m(T.TENANT_FETCHING),t(G(a.userId,g))))}),[S,n,m]),o.useEffect((()=>{e.tenantId==null&&!x.current&&a!=null&&(x.current=!0,!(g==null||g!=null&&(r==="Completed"||r==="Error"))||n!=="Not-Started"&&n!=="Error"||t(Q(a.userId)))}),[x,n,r]),o.useEffect((()=>{a==null||e?.tenantId==null||e.externalConnections!=null||n!=="Completed"&&r!=="Completed"||l==="In-Progress"||d!=="Error"||(m(T.CONNECTION_AUTH),t(U(a.userId,e.tenantId)))}),[d]),o.useEffect((()=>{n!=="Completed"&&r!=="Completed"||a==null||e?.tenantId==null||(t(V(e.tenantId)),E.saveActiveTenantDomainForUser(e.tenantEmailDomain),W(a?.userId,a?.zeniSessionId,e.tenantId),K.updateAppLocaleID(Y(B(e))),e.externalConnections!=null||n!=="Completed"&&r!=="Completed"||l==="In-Progress"||a==null||e==null||t(U(a.userId,e.tenantId)))}),[n,r,l]),o.useEffect((()=>{y.tenantsCoreDetailsInOrder.length>0&&n==="Completed"&&E.saveSignedInUserTenants(y.tenantsCoreDetailsInOrder)}),[y.tenantsCoreDetailsInOrder.length,n]);const D=e==null||n!=="Completed"&&r!=="Completed"||l!=="Completed";if(o.useEffect((()=>{n!=="Completed"&&n!=="Error"||r!=="Completed"&&r!=="Error"||l!=="Completed"&&l!=="Error"||c()}),[n,r,l]),o.useEffect((()=>{u&&d==="In-Progress"&&(f.current=!0)}),[u,d]),o.useEffect((()=>{if(!u||D)return;const s=e.tenantEmailDomain!=null?`/${e.tenantEmailDomain}/settings/accounting`:"/";return f.current&&d==="Completed"?(sessionStorage.setItem(h,_.ready),c(),void i(s,{replace:!0})):f.current&&d==="Error"?(sessionStorage.removeItem(h),t(A({messageSection:"accounting_projects_qbo_reconnect_failed",messageText:"failed",type:"error"})),c(),void i(s,{replace:!0})):void(p||N.current||f.current||b!==!0||(sessionStorage.removeItem(h),t(A({messageSection:"accounting_projects_qbo_reconnect_failed",messageText:"failed",type:"error"})),c(),i(s,{replace:!0})))}),[u,D,d,p,b,e.tenantEmailDomain,c,t,i]),D)return null;if(p||b!==!0)return I.jsx(te,{children:I.jsx(ee,{})});if(u)return null;const k=e.tenantEmailDomain!=null?`/${e.tenantEmailDomain}/settings/accounting`:"/";return P?I.jsx(w,{to:k,replace:!0}):I.jsx(w,{to:"/",replace:!0})}export{we as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-ElMRERc9.js";import{z as m}from"./index-DBuws41Q.js";import{g as n}from"./QBOConnectionScreen-DCCiwBvr.js";import"./sentry-B8nCx7v9.js";import{g as p,N as a}from"./core-C81VRbeP.js";import"./zeni-epic-state-DklVhJVB.js";import"./recharts-DdTjw53U.js";import"./mui-DoMnHjRT.js";import"./analytics-BXM45nWq.js";import"./plaid-4usmEsnw.js";import"./dnd-BdXAZjIP.js";import"./stripe-cKAAJElX.js";import"./lottie-B6h9ACvw.js";import"./lexical-DcaHthb5.js";import"./pdf-DFrRjL7N.js";import"./utils-CSS89dSa.js";import"./empty-CatVTIO7.js";import"./pdf-lib-NwhHokxt.js";import"./index-CF1zoe-f.js";import"./url-BjLh-KZK.js";import"./index--a-B3LAp.js";import"./decodeURIComponentSafe-CrALq_f_.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]="a1205b81-d106-415b-bd92-85aeae53ace3",t._sentryDebugIdIdentifier="sentry-dbid-a1205b81-d106-415b-bd92-85aeae53ace3")}catch{}})();const U=()=>{const t=p(),{code:o,realmId:r,state:e}=n(t.search),s=m.getSignedInUser()?.userId??"";if(f(o,r,e,s)===!0){const d=`../../${e}/onboarding?code=${o}&realmId=${r}&state=auth_flow`;return i.jsx(a,{to:d})}return i.jsx(a,{to:"../../"})},f=(t,o,r,e)=>t!=""&&o!=""&&r!=""&&e!=null&&e!="";export{U as default,f as hasValidParams};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import{j as l}from"./liveblocks-ElMRERc9.js";import{h as w,g as C,j as h,l as A,i as V}from"./core-C81VRbeP.js";import{Zk as k,Zr as W,gJ as J,gI as L,gH as M,kT as X,Xi as Y,uV as q,fI as B,YT as D,kR as T,Zl as S,Zu as F,kP as G,la as j}from"./zeni-epic-state-DklVhJVB.js";import{bL as K,$ as R,W as N,z as Z,a2 as p,A as v,a5 as U,bM as Q,H,bN as ee,p as te}from"./index-DBuws41Q.js";import{u as O,n as z}from"./mui-DoMnHjRT.js";import"./sentry-B8nCx7v9.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]="ceee5ec1-11ca-421e-9ee5-43e37b3587d0",e._sentryDebugIdIdentifier="sentry-dbid-ceee5ec1-11ca-421e-9ee5-43e37b3587d0")}catch{}})();const ae=A(null,(function(e,t){return{onSaveVendor:a=>{e(X(t.vendorId!==void 0?t.vendorId:void 0,t.billId,void 0,t.isExpressPayPage)),e(Y("common")),a!=null&&e(q(a))},onGetOtp:a=>{e(M(a,"BillPayVendor"))},onResendOtp:a=>{e(L(a,"BillPayVendor"))},onVerifyOtp:(a,n)=>{e(J(a,n,"BillPayVendor"))},onVerifyOtpSuccess:(a,n,o)=>{e(W(a,n,o))}}}))(K);function _({vendorId:e,billId:t,isExpressPayPage:a}){const n=w(),o=C(),s=h((r=>k(r,e)));return l.jsx(ae,{location:o,navigate:n,vendorId:e,billId:t,vendorViewDetails:s,isExpressPayPage:a??!1})}const ne=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
|
-
`,oe=A((function(e,t){const{vendorId:a,billId:n}=t,o=k(e,a),s=D(e,t.isVendorRecommendationEnabled,t.isZeniAccountsFeatureEnabled,n);return{billId:n,isDisabled:o.bankAccountCreationState.fetchState==="In-Progress"?"readonly":void 0,vendorViewDetails:o,file:s.file,bankAccountContext:t.bankAccountContext}}),(function(e,t){const{navigate:a,location:n,vendorId:o}=t;return{onFetchBankName:s=>{e(j(s))},onSaveHandler:s=>{e(G(t.bankAccountContext,s,"standard",o))},onCancel:()=>{(()=>{const s=p(n.state?.pathnameStackToGoBack),r=s.poppedPathname??$();a(r,{state:{pathnameStackToGoBack:s.newStack}})})(),e(S())},onACHDetailsUpdated:s=>{const{bankAccountSection:r}=s;e(F({data:r}))},onBackClick:()=>{if(e(T({fetchState:"Not-Started"})),t.bankAccountContext==="express-pay")a("../",{relative:"path"});else{const s=p(t.location.state?.pathnameStackToGoBack),r=s.poppedPathname??$(0);t.navigate(r,{state:{pathnameStackToGoBack:s.newStack}})}e(S())}}}))(Q);function me({vendorIdParam:e,accountContext:t}){const a=w(),n=C(),o=R(),{vendorId:s,billId:r}=V(),d=e??s,{useFeatureGate:c}=N(),i=Z.getSignedInUser(),b=h((u=>B(u))),g=O(),I=p(n.state?.pathnameStackToGoBack),m=t??(I.poppedPathname?.includes("vendor")===!0?"vendor":"billDetail"),f=h((u=>k(u,d))),{isFeatureEnabled:x}=c(v.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:y}=c(v.isDepositAccountsFeatureEnabled);if(i==null)throw Error("Can't access address page without signing in...");return m==="billDetail"&&f.editVendorState?.saveStatus.fetchState==="In-Progress"?l.jsx(U,{fetchState:f.editVendorState?.saveStatus.fetchState??"Not-Started",style:{backgroundColor:g.colors.grey5}}):l.jsxs(ne,{windowSize:o,children:[l.jsx(_,{vendorId:d,billId:r}),l.jsx(oe,{location:n,navigate:a,billId:r,vendorId:d,currentTenant:b,bankAccountContext:m,isVendorRecommendationEnabled:x,isZeniAccountsFeatureEnabled:y})]})}const $=(e=2)=>{let t="../";for(let a=0;a<e;a++)t=`${t}../`;return t},fe=(e,t,a)=>{let n=`/${e}/bill/${encodeURIComponent(t)}`;return a=="draft"&&(n+="/edit"),n},he=e=>`/${e}/bills`,ke=(e,t)=>{let a=`/${e}/bill`;return a=t!=null?a.concat(`/${t}/edit`):a.concat("/new"),a},E=(e,t,a,n)=>{let o=`/${e}/bill`;return o+=a!=null?`/${a}/edit/vendor`:"/new/vendor",o+=n!=null?`/${n}/edit/${t}`:`/create/${t}`,o};function Se(e,t,a){return E(e,"ach",t,a)}function ve(e,t,a){return E(e,"domestic",t,a)}function ge(e,t,a){return E(e,"international",t,a)}const se=(e,t,a)=>{let n=`/${e}/bill/`;return n=a!=null?n.concat(`${encodeURIComponent(a)}/${t}/`):n.concat(`new/${t}/`),n},ce=z.div`
|
|
10
|
-
display: flex;
|
|
11
|
-
height: 100vh;
|
|
12
|
-
width: 100%;
|
|
13
|
-
flex: 1 1 auto;
|
|
14
|
-
flex-direction: column;
|
|
15
|
-
align-items: center;
|
|
16
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
17
|
-
box-shadow: ${e=>`0px 2px ${H.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
18
|
-
`,re=A((function(e,t){const{vendorId:a,billId:n}=t,o=k(e,a),s=D(e,t.isVendorRecommendationEnabled,t.isZeniAccountsFeatureEnabled,n);return{billId:n,isDisabled:o.bankAccountCreationState.fetchState==="In-Progress"?"readonly":void 0,vendorViewDetails:o,file:s.file,bankAccountContext:t.bankAccountContext}}),(function(e,t){const{billId:a,navigate:n,location:o,vendorId:s,currentTenant:r}=t,{tenantEmailDomain:d}=r;return{onFetchBankName:c=>{e(j(c))},onSaveHandler:c=>{e(G(t.bankAccountContext,c,"us-domestic",s))},onWireDetailsUpdated:c=>{const{bankAccountSection:i}=c;e(F({data:i}))},onCancel:()=>{(()=>{const c=p(o.state?.pathnameStackToGoBack),i=c.poppedPathname??P();n(i,{state:{pathnameStackToGoBack:c.newStack}})})(),e(S())},onAddressClick:c=>{if(t.bankAccountContext==="express-pay")n("./add-address");else{const i=se(d,c,a),b=te(o.state?.pathnameStackToGoBack,o.pathname);n(i,{state:{pathnameStackToGoBack:b}})}},onBackClick:()=>{if(e(T({fetchState:"Not-Started"})),t.bankAccountContext==="express-pay")n("../",{relative:"path"});else{const c=p(t.location.state?.pathnameStackToGoBack),i=c.poppedPathname??P(0);t.navigate(i,{state:{pathnameStackToGoBack:c.newStack}})}e(S())}}}))(ee);function Ie({vendorIdParam:e,accountContext:t}){const a=w(),n=C(),o=R(),{vendorId:s,billId:r}=V(),d=e??s,c=Z.getSignedInUser(),{useFeatureGate:i}=N(),b=O(),g=h((u=>B(u))),I=p(n.state?.pathnameStackToGoBack),m=t??(I.poppedPathname?.includes("vendor")===!0?"vendor":"billDetail"),f=h((u=>k(u,d))),{isFeatureEnabled:x}=i(v.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:y}=i(v.isDepositAccountsFeatureEnabled);if(c==null)throw Error("Can't access address page without signing in...");return m==="billDetail"&&f.editVendorState?.saveStatus.fetchState==="In-Progress"?l.jsx(U,{fetchState:f.editVendorState?.saveStatus.fetchState??"Not-Started",style:{backgroundColor:b.colors.grey5,boxShadow:`0px 2px ${H.sp1} ${b.colors.dropShadowNormal}`}}):l.jsxs(ce,{windowSize:o,children:[l.jsx(_,{vendorId:d,billId:r}),l.jsx(re,{location:n,navigate:a,billId:r,vendorId:d,currentTenant:g,bankAccountContext:m,isVendorRecommendationEnabled:x,isZeniAccountsFeatureEnabled:y})]})}const P=(e=2)=>{let t="../";for(let a=0;a<e;a++)t=`${t}../`;return t};export{me as A,Ie as D,_ as V,fe as a,se as b,ke as c,ve as d,he as g,ge as i,Se as v};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-ElMRERc9.js";import{a as d}from"./sentry-B8nCx7v9.js";import{au as i,av as l,o as p,a2 as m}from"./index-DBuws41Q.js";import"./mui-DoMnHjRT.js";import f from"./NotFoundScreen-DHMPApWS.js";import{h as u,g as b}from"./core-C81VRbeP.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]="6ddb47ae-a6dc-4561-8d29-76ae28ac5edc",e._sentryDebugIdIdentifier="sentry-dbid-6ddb47ae-a6dc-4561-8d29-76ae28ac5edc")}catch{}})();const _=()=>{const e=u(),a=b(),t=d.useCallback((()=>{window.open("https://www.zeni.ai/demo/request","_blank")}),[]),r=d.useCallback((()=>{(()=>{const n=m(a.state?.pathnameStackToGoBack),c=n.poppedPathname??k();e(c,{state:{pathnameStackToGoBack:n.newStack}})})()}),[]),o=i(a.pathname);return o!=null?s.jsx(l,{menuItem:p(o),onDemoClick:t,onGoBack:r}):s.jsx(f,{})},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-ElMRERc9.js";import{a as g}from"./sentry-B8nCx7v9.js";import{u as F,g as _,h as w,t as M,j as l,N as U}from"./core-C81VRbeP.js";import{z as r,G as P,O as V,j as A,Q as N,Y as Q,Z as R,S as Y}from"./index-DBuws41Q.js";import{fI as G,Un as H,UQ as W,UH as Z,gl as $,gn as q,UM as B,gY as J,dk as K,UR as X,US as ee}from"./zeni-epic-state-DklVhJVB.js";import{u as te,n as ne}from"./mui-DoMnHjRT.js";import{u as se}from"./useDeviceId-BHwBnu_B.js";import{f as ae}from"./analyticsHelper-Cx6i8svJ.js";import{t as ie}from"./getLocaleForTenant-nCPleYdt.js";import"./recharts-DdTjw53U.js";import"./analytics-BXM45nWq.js";import"./plaid-4usmEsnw.js";import"./dnd-BdXAZjIP.js";import"./stripe-cKAAJElX.js";import"./lottie-B6h9ACvw.js";import"./lexical-DcaHthb5.js";import"./pdf-DFrRjL7N.js";import"./utils-CSS89dSa.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]="1c84835f-230a-455e-93e7-dd740fa82894",t._sentryDebugIdIdentifier="sentry-dbid-1c84835f-230a-455e-93e7-dd740fa82894")}catch{}})();const T=(t,a)=>t!=null&&t.length>0&&a==="magic_links";function Te(){const t=F(),a=_(),m=w(),[y]=M(),n=y.get("token"),p=y.get("stytch_token_type"),f=r.getMagicLinkCodeVerifier(),i=se(),{otpChallenge:d,twoFAPhoneNumber:x,magicLinkEmail:c,verifyDeviceFetchState:z,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=>G(e))),k=l((e=>H(e))),D=r.getSignedInUser(),v=te().mode;g.useEffect((()=>{s?.zeniSessionId==null&&n!=null&&T(n,p)&&i!=null&&f!=null&&(r.saveMagicLinkTriggered(n),t(W(n,i,f)))}),[n,p,t,i,f,s?.zeniSessionId]),g.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(Z(k.tenantsInOrder),s.zeniSessionId),$(s.userId,s.zeniSessionId,o.tenantId),t(q(o.tenantId)),r.saveActiveTenantDomainForUser(o.tenantEmailDomain),t(B("Completed")),P.updateAppLocaleID(ie(o)),ae(s,o,v,void 0,k.tenantsInOrder),J().then((()=>{const e=Y();e!=null&&V(e)})),setTimeout((()=>{A.trackLogin(N.Event.loginSuccess,"email",K(o.productSettings))}),2e3))}),[I,S,b,s,o,k,v,a.state,t]);const E=g.useCallback((()=>{m("/signin/auth")}),[m]),j=g.useCallback((()=>{i!=null&&d!=null&&c!=null&&t(X(i,c,d))}),[i,d,t,c]),O=g.useCallback((e=>{i!=null&&n!=null&&c!=null&&d!=null&&t(ee(e,i,c,d))}),[i,n,t,c,d]);if(h==="Completed"&&d!=null)return u.jsx(Q,{phoneNumber:x,verifyOtpFetchState:z.fetchState,resendVerifyDeviceOTPFetchState:C,onResendOtp:j,onVerifyOtp:O,onCancelVerifyDevice:E});if(I==="In-Progress"&&S==="Completed"&&s?.zeniSessionId!=null&&o!=null||D!=null){const e=a.state?.origin??"/";return u.jsx(U,{to:e,state:{...a.state,origin:""}})}if(!T(n,p)||f==null||h==="Error"){const e=a.state?.origin??"/",L=n!=null&&r.getLastUsedMagicLinkToken()===n;return u.jsx(U,{to:e,state:{...a.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{Te as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as B}from"./liveblocks-ElMRERc9.js";import{a as f}from"./sentry-B8nCx7v9.js";import{u as te,j as t,i as $e,g as Ge,h as Ue,q as F}from"./core-C81VRbeP.js";import{fI as ne,Uo as Me,Up as se,gc as xe,fH as Ne,Uy as Pe,Ur as Re,Us as Ve,q3 as je,gp as Le,Uv as b,UA as Oe,UB as Q,gq as qe,UC as Ze,Ev as ze,h5 as He,cW as We,UD as Ye,gb as Ke,gr as Je}from"./zeni-epic-state-DklVhJVB.js";import{w as Qe,i as Xe,K as ea,W as aa,c as ta,e as na,u as sa,A as c,f as oa,D as ia,z as ra,d as da,k as ca,E as la,q as ua,l as fa,n as X,L as ma,C as ha,F as ba,p as S,j as ee,s as pa,T as ae,y as ga,B as Sa}from"./index-DBuws41Q.js";import{D as Ea}from"./mui-DoMnHjRT.js";import{u as ka}from"./InboxNotificationsProvider-BPTkk56Z.js";import{u as Ca}from"./useTaskManagerAccess-BpFV6J8j.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new l.Error().stack;i&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[i]="3d61dea7-7c66-4f75-849b-071f5dc29e91",l._sentryDebugIdIdentifier="sentry-dbid-3d61dea7-7c66-4f75-849b-071f5dc29e91")}catch{}})();const Ta=Qe((({isAppContentDrawerOpen:l,handleDrawerToggle:i})=>{const{tenantEmailDomain:s}=$e(),a=Ge(),E=ea(),n=Ue(),D=xe(),r=te(),{useFeatureGate:d}=aa(),p=ta(),{isTaskManagerAccessEnabled:k}=Ca(p),o=t((e=>ne(e))),oe=o.masterTOSInfo?.isMasterTOSAccepted??!1,$=t((e=>Ne(e))),{status:ie}=t(Pe),G=$.uiState.currentChatSessionId,C=na(),{setLoading:re}=sa(),[w,U]=f.useState(void 0),A=F("/:tenantEmailDomain/dashboard")!==null,M=F("/:tenantEmailDomain/reports")!==null,m=F("/:tenantEmailDomain/onboarding/*")!==null,de=!!o.company?.companyZeniAccountInfo?.isZeniAccountEnabled,{isFeatureEnabled:ce}=d(c.isChargeCardFeatureEnabled),{isFeatureEnabled:x}=d(c.isDebitCardFeatureEnabled),le=oa(o,ce,x),{isFeatureEnabled:ue}=d(c.isSettingsFeatureEnabled),N=t((e=>Re(e))),{isFeatureEnabled:T}=d(c.isReferralFeatureEnabled),v=t((e=>Ve(e)));f.useEffect((()=>{C&&T&&!m&&v.fetchState==="Not-Started"&&r(je(!0))}),[C,T,v.fetchState,m]);const _=t((e=>e.tenantState)),fe=t((e=>_.fetchState==="Completed"?Le(e):[])),g=t((e=>e.expenseAutomationViewState.selectedPeriodByTenantId)),{isFeatureEnabled:me}=d(c.isApAgingFeatureEnabled),{isFeatureEnabled:he}=d(c.isArAgingFeatureEnabled),P=ia(),{isFeatureEnabled:be}=d(c.isDashboardSidebarHalloweenAnimationEnabled),{isFeatureEnabled:pe}=d(c.isDashboardSidebarThanksGivingAnimationEnabled),{isFeatureEnabled:ge}=d(c.isDashboardSidebarChristmasAnimationEnabled),{isFeatureEnabled:Se}=d(c.isDashboardSidebarNewYearAnimationEnabled),Ee=o.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",ke=t((e=>b(e).totalUnreadCount)),Ce=t((e=>b(e).reducedFetchCountState)),R=t((e=>b(e).notificationDetailsByTab.tasks.uiState.unreadCount)),V=t((e=>b(e).notificationDetailsByTab.comments.uiState.unreadCount)),j=t((e=>b(e).notificationDetailsByTab.tasks.fetchCountState)),I=t((e=>b(e).notificationDetailsByTab.comments.fetchCountState)),{inboxNotifications:L,isLoading:O,isFetchingMore:q,hasFetchedAll:Z,fetchMore:Te}=ka();f.useEffect((()=>{const e=setTimeout((()=>Te?.()),0);return()=>clearTimeout(e)})),f.useEffect((()=>{if(O===!1&&q===!1&&Z===!0)if(o?.companyId!=null&&L!=null){const e=`dashboard_${o.companyId}`;U(L.filter((u=>u.roomId===e&&u.readAt==null)).length)}else U(0)}),[O,q,Z]),f.useEffect((()=>{C&&k&&!m&&j.fetchState==="Not-Started"&&D.tenantId!=null&&r(Oe("task_manager","dashboard"))}),[C,k,m,j.fetchState,D.tenantId,r]),f.useEffect((()=>{m||I.fetchState!=="Not-Started"||r(Q({fetchCountState:{fetchState:"In-Progress",error:void 0}},"comments"))}),[m,I.fetchState,r]),f.useEffect((()=>{w!=null&&I.fetchState==="In-Progress"&&(r(Q({fetchCountState:{fetchState:"Completed",error:void 0}},"comments")),r(se({unreadCount:w},"comments")))}),[w,I.fetchState]);const Ie={fetchStatus:Ce,count:ke},z=s!=null?ra.getSignedInUserTenant(s):null,H=t((e=>z?.tenantId!=null?qe(e,z.tenantId):void 0)),h=[];me===!1&&h.push("accounts_payable_aging"),he===!1&&h.push("accounts_receivable_aging"),h.push("zeni_accounts_promo_card","treasury_promo_card"),T===!1&&h.push("rewards_card"),P===!1&&h.push("expense_automation_card");const W=t((e=>Ze(e,h).fetchState)),Y=t((e=>ze(e).fetchState)),ye=A&&(W==="Completed"||W==="Error")||M&&(Y==="Completed"||Y==="Error")||!A&&!M?void 0:"disabled",we=f.useMemo((()=>He(o.userRole)),[o.userRole]),Ae=We(we),ve=o?.rewardsLastViewedTime==null,_e=p?.userEmail!=null&&N.fetchState==="Completed"&&Ye(N.notificationSettings,p.userEmail,x,o,k),K=da(),Fe=K&&ca(a);return B.jsx(Ea,{container:window.document.body,variant:"temporary",open:l,onClose:()=>i(!1),PaperProps:{sx:{width:240,zIndex:8,borderRight:"none",backgroundImage:"none"}},ModalProps:{keepMounted:!0},children:B.jsx(la,{signedInUser:p,currentTenantId:_.currentTenantId??"",tenants:_.fetchState==="Completed"?fe:H!=null?[H]:[],currentTenant:o,isTenantDropdownDisabled:ye,isSettings:X(a),isInvoicing:fa(a)&&ie==="completed",isSettingsFeatureEnabled:ue,isVendorsTabVisible:Ae,isZeniAccountEnabled:de,isChargeCardEnabled:le,isTreasuryEnabled:Ee,isNotificationsTabVisible:_e,notificationCountDetails:Ie,isExpenseAutomationEnabledForUser:P,selectedMenu:ua(a),rewardsConfiguration:{isRewardsTabVisible:T,isRewardsAnimated:ve,rewardsPlan:v.rewardsPlan},isAiCfoAccessEnabled:K,onNotificationIconClick:()=>{i(!1);let e=R===0&&V>0?"notifications/comments":"notifications/tasks";X(a)&&(e=R===0&&V>0?"../../notifications/comments":"../../notifications/tasks");const u=S(a.state?.pathnameStackToGoBack,a.pathname);n(e,{state:{pathnameStackToGoBack:u}})},handleCockpitClick:()=>{window.open("/cockpit")},handleLogOutClick:()=>{i(!1);const e=S(a.state?.pathnameStackToGoBack,a.pathname);n("/signout",{replace:!0,state:{pathnameStackToGoBack:e,message:"logout"}})},handleMenuChange:e=>{if(i(!1),s==null)return;if(e.type==="invoicing")return void n(`../${s}/invoicing/overview`,{state:{pathnameStackToGoBack:S(a.state?.pathnameStackToGoBack,a.pathname),referrer:"Sidebar"}});if(e.type==="ai_cfo"){if(ee.trackAICFOChatScreenStateChanged("viewed","left_menu",G??null,null),!oe)return void pa({location:a,navigate:n,mergeState:{referrer:"Sidebar"}});const y=S(a.state?.pathnameStackToGoBack,a.pathname);return void n(`/${s}/ai-cfo/explore`,{state:{pathnameStackToGoBack:y,referrer:"Sidebar"}})}const u=S(a.state?.pathnameStackToGoBack,a.pathname),J=e.type,Be=ae(J)&&J!=="command_center";if(ae(e.type)&&g[o.tenantId]!=null&&ee.trackMonthEndCloseClicked(g[o.tenantId].month,g[o.tenantId].year,"Sidebar"),Be&&g[o.tenantId]!=null){const y=g[o.tenantId];return void n(`/${s}/month_end_close_checks/review/${e.type}/${y.month}-${y.year}`,{state:{pathnameStackToGoBack:u,referrer:"Sidebar"}})}const De=ga(e.type);Sa(e.type)?(G!=null&&r(Je()),n(`/${s}/ai-cfo/${e.type}`,{state:{pathnameStackToGoBack:u.slice(0,-1),referrer:"Sidebar"}})):n(`/${s}/${De}`,{state:{pathnameStackToGoBack:u,referrer:"Sidebar"}})},handleMyProfileClick:()=>{i(!1),n(`/${s}/settings/my_profile`)},handleReferralsClick:()=>{i(!1),n(`/${s}/rewards`)},handleBackClick:()=>{n(`/${s}/dashboard`)},handleTenantSelect:e=>{re(ma.TENANT_SWITCHING),i(!1),ha({dispatch:r,navigate:n,pathToNavigate:ba(e.tenantEmailDomain,a),selectedTenant:e,signedInUser:p})},onZeniLogoClick:()=>{E.toggle()},isAiCfo:Fe,aiCfoView:$,isOnDashboard:A,updateCurrentChatSessionId:e=>{r(Ke({sessionId:e,agentId:"controller"})),n(`/${s}/ai-cfo/${e}`,{state:{...a.state}})},halloweenAnimationEnabled:be,isTaskManagerAccessEnabled:k,thanksGivingAnimationEnabled:pe,christmasAnimationEnabled:ge,newYearAnimationEnabled:Se})})})),Da=l=>{const i=te(),s=t((E=>ne(E))),a={events:s.userRoleId!=null?[`private-encrypted-${s.userRoleId}.dashboard-user-notification`]:[],eventCallback:(E,n)=>{Xe(n)&&Me(n.mode)==="dashboard"&&i(se({unreadCount:n.data.unread},"tasks"))}};return B.jsx(Ta,{...l,...a})};export{Da as M};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./liveblocks-ElMRERc9.js";import{h as r,l as i}from"./core-C81VRbeP.js";import{ak as n}from"./index-DBuws41Q.js";import"./mui-DoMnHjRT.js";import"./sentry-B8nCx7v9.js";import"./zeni-epic-state-DklVhJVB.js";import"./recharts-DdTjw53U.js";import"./analytics-BXM45nWq.js";import"./plaid-4usmEsnw.js";import"./dnd-BdXAZjIP.js";import"./stripe-cKAAJElX.js";import"./lottie-B6h9ACvw.js";import"./lexical-DcaHthb5.js";import"./pdf-DFrRjL7N.js";import"./utils-CSS89dSa.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]="e1fe4b0b-a509-4443-892f-577d1dfd5036",o._sentryDebugIdIdentifier="sentry-dbid-e1fe4b0b-a509-4443-892f-577d1dfd5036")}catch{}})();const a=i(null,(function(o,t){return{onGoBack:()=>{t.navigate(-1)},onGoHome:()=>{t.navigate("/")}}}))(n);function _(){const o=r();return e.jsx(a,{navigate:o})}export{_ as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-ElMRERc9.js";import E from"./NotFoundScreen-DHMPApWS.js";import{a as r}from"./sentry-B8nCx7v9.js";import{h as _,g as v,j as p,i as M,u as P,N as U,l as z,n as O,o as h}from"./core-C81VRbeP.js";import{fI as B,a1v as b,bo as F,bn as N,iP as V,gk as q}from"./zeni-epic-state-DklVhJVB.js";import{K,z as I,aq as L,dL as $}from"./index-DBuws41Q.js";import"./mui-DoMnHjRT.js";import{u as G}from"./useAskAiCfoHostNavButtonProps-CAip1ZNF.js";import{M as H}from"./MobileAppDrawer-DtO8FQWm.js";import"./recharts-DdTjw53U.js";import"./analytics-BXM45nWq.js";import"./plaid-4usmEsnw.js";import"./dnd-BdXAZjIP.js";import"./stripe-cKAAJElX.js";import"./lottie-B6h9ACvw.js";import"./lexical-DcaHthb5.js";import"./pdf-DFrRjL7N.js";import"./utils-CSS89dSa.js";import"./InboxNotificationsProvider-BPTkk56Z.js";import"./useTaskManagerAccess-BpFV6J8j.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]="c3d925b8-dd50-4135-8202-8a211846685e",e._sentryDebugIdIdentifier="sentry-dbid-c3d925b8-dd50-4135-8202-8a211846685e")}catch{}})();const J=z((function(e){const t=I.getSignedInUser(),d=e.tenantState.currentTenantId,o={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:d??""},{aggregatedReportViewState:n}=b(e);return{authParams:o,isDisabled:!1,loggedInUser:t,aggregatedReport:n}}),(function(e,t){return{onBackClick:()=>{t.navigate("../../")},onClickMenuIcon:()=>{t.handleDrawerToggle(!0)}}}))($),Q=()=>{const e=_(),t=v(),d=K(),o=p((a=>B(a))),{aggregatedReportViewState:n}=p((a=>b(a))),{tenantEmailDomain:u}=M(),g=P(),l=I.getSignedInUser();if(l==null)throw new Error("Can't access this page without signing in...");const m=r.useRef(!1),[w,S]=r.useState(!1),C=F(o?.userRole??[]),k=o?.userRole?.includes("bookkeeping_admin")??!1,x=N(l),y=C||k||x,c=r.useCallback(((a,i,T)=>{g(V({fromMonth:a,toMonth:i,cacheOverride:T}))}),[]);r.useEffect((()=>{n?.fetchState==="Completed"&&m.current&&(g(q({messageSection:"data_refresh_update",messageText:"success",type:"success",showStatusIcon:!0})),m.current=!1)}),[n?.fetchState]);const D=r.useCallback(((a,i)=>{n!=null&&n?.fetchState==="In-Progress"||c(a,i,!0),m.current=!0}),[n?.fetchState,c]),j=r.useCallback(((a,i)=>{c(a,i,!1)}),[c]),f=a=>{S(a)},{isAiCfoAccessEnabled:R,onAskAiCfoClick:A}=G({mobileExploreReferrer:"Performance"});return L({isDataReady:n?.fetchState==="Completed"}),y?s.jsxs(s.Fragment,{children:[s.jsx(H,{isAppContentDrawerOpen:w,handleDrawerToggle:f}),s.jsx(J,{navigate:e,location:t,themeState:d,currentTenant:o,signedInUser:l,tenantEmailDomain:u,onReload:D,onTimeRangeSelect:j,handleDrawerToggle:f,isAiCfoAccessEnabled:R,onAskAiCfoClick:A})]}):s.jsx(U,{to:`/${u}/dashboard`,replace:!0})};function he(){return s.jsxs(O,{children:[s.jsx(h,{path:"*",element:s.jsx(Q,{})}),s.jsx(h,{path:"*",element:s.jsx(E,{})})]})}export{he as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-ElMRERc9.js";import{z as b,a6 as N,j as d,Q as S,e0 as I,W as k,A as C}from"./index-DBuws41Q.js";import"./mui-DoMnHjRT.js";import g from"./NotFoundScreen-DHMPApWS.js";import{a as c}from"./sentry-B8nCx7v9.js";import{u as D,j as h,h as F,g as L,l as T,n as U,o as u,N as y}from"./core-C81VRbeP.js";import{fI as _,a2u as j,a2v as p,Ea as P,q3 as V,a2w as q,E8 as z}from"./zeni-epic-state-DklVhJVB.js";import"./recharts-DdTjw53U.js";import"./analytics-BXM45nWq.js";import"./plaid-4usmEsnw.js";import"./dnd-BdXAZjIP.js";import"./stripe-cKAAJElX.js";import"./lottie-B6h9ACvw.js";import"./lexical-DcaHthb5.js";import"./pdf-DFrRjL7N.js";import"./utils-CSS89dSa.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]="5fb6512a-3a91-46ee-8890-616d57807c4b",e._sentryDebugIdIdentifier="sentry-dbid-5fb6512a-3a91-46ee-8890-616d57807c4b")}catch{}})();const A=T((function(e,t){const n=j(e);return{inviteFormView:n.localData,submitStatus:n.saveStatus,userName:t.userName,rewardsPlan:n.rewardsPlan,companyLegalName:t.companyName}}),(function(e,t){const{navigate:n}=t,i=b.getSignedInUser();return{onDismissClick:()=>{e(p()),n("/")},onSendClick:()=>{if(i!=null){const s=[],r=[];t.inviteFormCompayData.forEach((l=>{s.push(l.companyName),r.push(l.emailIds[0])})),d.trackInviteEmailClicked("send",s,r,s.length)}e(z())},onUpdateInviteFormLocalData:s=>{e(q({localData:s}))},onSubmitSuccess:()=>{e(p())},onCancelClick:()=>{i!=null&&d.trackInviteEmailClicked("cancel")}}}))(I),G=()=>{const e=D(),[t,n]=c.useState(!1),[i,s]=c.useState(!1),r=h((o=>_(o))),l=F(),w=L(),f=b.getSignedInUser();if(f==null)throw Error("Can't access invite referral screen without signing in...");const m=h((o=>j(o))),x=f?.firstName!=null?f.firstName:"User";c.useEffect((()=>{e(p()),r?.rewardsLastViewedTime==null&&i===!1&&(e(P()),s(!0))}),[]),c.useEffect((()=>{t||m.fetchState!=="Not-Started"||(n(!0),e(V(!0)))}),[m.fetchState,e]);const v=r.company?.companyInfo.companyLegalName??r.companyName;return a.jsxs(a.Fragment,{children:[m.fetchState==="Completed"?a.jsx(N,{analytics:d,onLoad:o=>(E=>E.trackPageLoaded(S.Event.inviteEmailViewed))(o)}):null,a.jsx(A,{navigate:l,location:w,currentTenant:r,companyName:v,userName:x,inviteFormCompayData:m.localData})]})};function ne(){const{useFeatureGate:e}=k(),{isFeatureEnabled:t}=e(C.isReferralFeatureEnabled);return a.jsxs(U,{children:[a.jsx(u,{path:"/",element:a.jsx(y,{to:"refer",replace:!0})}),a.jsx(u,{path:"how-it-works",element:a.jsx(y,{to:"refer",replace:!0})}),a.jsx(u,{path:"refer/*",element:t?a.jsx(G,{}):a.jsx(g,{})}),a.jsx(u,{path:"*",element:a.jsx(g,{})})]})}export{ne as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/NotFoundScreen-DHMPApWS.js","assets/sentry-B8nCx7v9.js","assets/core-C81VRbeP.js","assets/zeni-epic-state-DklVhJVB.js","assets/index-DBuws41Q.js","assets/mui-DoMnHjRT.js","assets/analytics-BXM45nWq.js","assets/utils-CSS89dSa.js","assets/index-BQ3cXEYt.css","assets/DashboardRoutes-B204TMlK.js","assets/withTransactionSidePanel-BP_l6766.js","assets/useAskAiCfoHostNavButtonProps-CAip1ZNF.js","assets/TransactionDetailScreen-Db4tleaR.js","assets/decodeURIComponentSafe-CrALq_f_.js","assets/useInitialThreadRequest-Df2EXypG.js","assets/routePaths-CfxWxmyX.js","assets/expenseAutomationHelper-Crya3Dv_.js","assets/stripSplatSuffix-YfV8OHUS.js","assets/analyticsHelper-Cx6i8svJ.js","assets/CompanyPassportScreen-B6j95Qyx.js","assets/MobileAppDrawer-DtO8FQWm.js","assets/InboxNotificationsProvider-BPTkk56Z.js","assets/useTaskManagerAccess-BpFV6J8j.js","assets/useAiCfoDashboardSuggestedQuestionsChips-CdPJGZky.js","assets/FeaturePreviewScreen-Cu8urpMS.js","assets/BillPayRoutes-2a_IZnwa.js","assets/AddressScreen-DFztK6Ig.js","assets/DomesticWireDetailScreen-CBzt-Nae.js","assets/BusinessVerificationPageScreen-BMy0l7mH.js","assets/DrawerScreen-D-EbmxsO.js","assets/SetupPagesScreen-DIAlz55b.js","assets/BillPayApprovalRoutes-C7ELb8IL.js","assets/ReimbursementApprovalRuleDetailScreen-ZIBaIx9-.js","assets/getLocaleForTenant-nCPleYdt.js","assets/ReimbursementRoutes-Cx2mA5oI.js","assets/ReimbursementApprovalRoutes-f7b2MUNz.js","assets/TransactionListRoutes-Bou1SXH0.js","assets/ZeniAccountStatementScreen-Bx3EGjPX.js","assets/SettingsRoutes-DJySqZaP.js","assets/AccountMappingScreen-Da9lNgTh.js","assets/QBOConnectionScreen-DCCiwBvr.js","assets/empty-CatVTIO7.js","assets/index-CF1zoe-f.js","assets/url-BjLh-KZK.js","assets/index--a-B3LAp.js","assets/accountMappingHelper-CwsbX9Ea.js","assets/useEmailConnectResultRefresh-DLH0Ue8L.js","assets/ReportsRoutes-D_y8Fj_V.js","assets/ChargeCardRoutes-BRLKWsqh.js","assets/useChargeCardPusherEvents-BdQgr28p.js","assets/PeopleRoutes-CIibObVn.js","assets/ExpenseAutomationRoutes-DndYYpK4.js","assets/useActualMatchingMatchDetail-DVb3aFLv.js","assets/ScheduleDetailsPrepaidExpensesScreen-DCKvd2Rw.js","assets/pathToGoBack-CArS3X2C.js","assets/TreasuryRoutes-CAU50PuC.js","assets/VendorsRoutes-B0jpUEsr.js","assets/ZeniAccountRoutes-rvEU6aIV.js","assets/AddressRoutes-B_mWuw-F.js","assets/PandLWithForecastRoutes-CdbkRZNP.js","assets/CustomerOnboardingRoutes-C-xGwLOY.js","assets/TransactionDetailRoutes-Cjl1b082.js","assets/EntityDetailRoutes-DJQtBHmg.js","assets/InvoicingRoutes-BegsYwP5.js","assets/NotificationRoutes-yv8wAOZf.js","assets/PerformanceRoutes-DRZwF4Om.js","assets/ActualMatchingMatchDetailScreen-Cme87N6F.js","assets/RewardsRoutes-CDc0bjMu.js","assets/TaskRoutes-CQdL9o7q.js","assets/TaskListScreen-CDkR9GBn.js","assets/useTaskManagerPusherEvents-iP182dSE.js","assets/AiCfoScreen-CmeUs6M1.js","assets/CardsAiCfoScreen-CqoF74R8.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{_ as s,bn as Es,fI as hs,e0 as ps,d$ as xs,Bl as gs,dj as Rs,c9 as Is,gM as js,gc as Ts,dg as pe,cH as As,gq as bs,cz as Ds,bF as fs,br as ys,UE as vs,v as Cs,UH as Os,bq as Us,UI as Ps,bL as ws,bK as Fs,bu as Ls,cv as Hs,UJ as Vs,UK as ks,db as Bs,de as Ss,dd as Ns,cG as Ms,cN as Zs,pW as xe,gl as ge,h0 as $s,gn as Re,gO as Ie,gP as je,go as zs}from"./zeni-epic-state-DklVhJVB.js";import{j as e}from"./liveblocks-ElMRERc9.js";import{a as P}from"./sentry-B8nCx7v9.js";import{N as u,u as Gs,h as qs,i as Ws,g as Ys,j as $,q as Te,n as Ks,o as n}from"./core-C81VRbeP.js";import{I as l,u as Js,z as y,W as Qs,d as Xs,D as et,A as S,f as st,M as tt,V as nt,L as F,G as Ae,t as _,P as at,N as ot,j as ne}from"./index-DBuws41Q.js";import{u as rt}from"./mui-DoMnHjRT.js";import{f as be}from"./analyticsHelper-Cx6i8svJ.js";import{t as it}from"./getLocaleForTenant-nCPleYdt.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},D=new o.Error().stack;D&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[D]="3fe75de4-c251-4930-a3e1-8bbe33451cd9",o._sentryDebugIdIdentifier="sentry-dbid-3fe75de4-c251-4930-a3e1-8bbe33451cd9")}catch{}})();const lt=l((()=>s((()=>import("./NotFoundScreen-DHMPApWS.js")),__vite__mapDeps([0,1,2,3,4,5,6,7,8])))),ut=({tenantEmailDomain:o})=>e.jsx(u,{to:`/${o}/reimbursements`}),dt=({tenantEmailDomain:o})=>e.jsx(u,{to:`/${o}/bills`}),De=({tenantEmailDomain:o})=>e.jsx(u,{to:`/${o}/treasury`}),fe=({tenantEmailDomain:o})=>e.jsx(u,{to:`/${o}/checking`}),ye=({tenantEmailDomain:o})=>e.jsx(u,{to:`/${o}/cards`}),v=({showZeniAccountRoute:o,isUserHasBillPayAccess:D,isUserHasReimbursementAccess:N,showTreasuryRoute:i,isTenantBankingOnly:H,showChargeCardRoute:O,tenantEmailDomain:C})=>{if(H===!0){if(o)return e.jsx(fe,{tenantEmailDomain:C});if(i)return e.jsx(De,{tenantEmailDomain:C});if(O)return e.jsx(ye,{tenantEmailDomain:C})}return o?e.jsx(fe,{tenantEmailDomain:C}):i?e.jsx(De,{tenantEmailDomain:C}):O?e.jsx(ye,{tenantEmailDomain:C}):D?e.jsx(dt,{tenantEmailDomain:C}):N?e.jsx(ut,{tenantEmailDomain:C}):e.jsx(lt,{})},ct={dashboard:()=>s((()=>import("./DashboardRoutes-B204TMlK.js")),__vite__mapDeps([9,1,2,3,4,5,6,7,10,11,12,13,14,15,16,17,0,18,19,20,21,22,23,24,8])),bills:()=>s((()=>import("./BillPayRoutes-2a_IZnwa.js")),__vite__mapDeps([25,1,2,3,4,5,6,7,26,0,27,11,14,28,15,20,21,22,29,24,30,18,31,32,33,8])),reimbursement:()=>s((()=>import("./ReimbursementRoutes-Cx2mA5oI.js")),__vite__mapDeps([34,1,2,3,4,5,6,7,0,30,28,15,20,21,22,18,24,11,14,29,35,32,33,8])),transactions:()=>s((()=>import("./TransactionListRoutes-Bou1SXH0.js")),__vite__mapDeps([36,1,2,3,4,5,6,7,10,11,12,13,14,15,16,17,37,8])),settings:()=>s((()=>import("./SettingsRoutes-DJySqZaP.js")),__vite__mapDeps([38,1,2,3,4,5,6,7,22,39,20,21,40,41,42,43,44,13,45,26,0,18,28,15,19,46,31,32,35,8])),reports:()=>s((()=>import("./ReportsRoutes-D_y8Fj_V.js")),__vite__mapDeps([47,1,2,3,4,5,6,7,0,24,14,15,20,21,22,8])),chargeCards:()=>s((()=>import("./ChargeCardRoutes-BRLKWsqh.js")),__vite__mapDeps([48,1,2,3,4,5,6,7,11,20,21,22,30,28,15,0,18,14,49,26,8])),people:()=>s((()=>import("./PeopleRoutes-CIibObVn.js")),__vite__mapDeps([50,1,2,3,4,5,6,7,0,11,20,21,22,8])),expenseAutomation:()=>s((()=>import("./ExpenseAutomationRoutes-DndYYpK4.js")),__vite__mapDeps([51,1,2,3,0,4,5,6,7,11,12,13,14,15,16,52,17,10,53,54,45,29,8])),treasury:()=>s((()=>import("./TreasuryRoutes-CAU50PuC.js")),__vite__mapDeps([55,1,2,3,4,5,6,7,0,30,28,15,20,21,22,18,11,14,24,8])),vendors:()=>s((()=>import("./VendorsRoutes-B0jpUEsr.js")),__vite__mapDeps([56,1,2,3,4,5,6,7,26,0,24,53,54,15,11,20,21,22,29,45,8])),zeniAccounts:()=>s((()=>import("./ZeniAccountRoutes-rvEU6aIV.js")),__vite__mapDeps([57,1,2,3,4,5,6,7,0,30,28,15,20,21,22,18,24,27,26,11,37,8]))},mt=["bills","transactions","settings","reimbursement","reports","chargeCards","people"],ae=o=>{"requestIdleCallback"in window?requestIdleCallback(o):setTimeout(o,100)},_t=l((()=>s((()=>import("./ReportsRoutes-D_y8Fj_V.js")),__vite__mapDeps([47,1,2,3,4,5,6,7,0,24,14,15,20,21,22,8])))),Et=l((()=>s((()=>import("./AddressRoutes-B_mWuw-F.js")),__vite__mapDeps([58,1,2,3,26,4,5,6,7,0,8])))),ht=l((()=>s((()=>import("./PeopleRoutes-CIibObVn.js")),__vite__mapDeps([50,1,2,3,4,5,6,7,0,11,20,21,22,8])))),pt=l((()=>s((()=>import("./PandLWithForecastRoutes-CdbkRZNP.js")),__vite__mapDeps([59,1,2,3,4,5,6,7,0,24,11,14,15,20,21,22,8])))),xt=l((()=>s((()=>import("./CustomerOnboardingRoutes-C-xGwLOY.js")),__vite__mapDeps([60,1,2,3,26,4,5,6,7,0,40,41,42,43,44,13,46,49,8])))),gt=l((()=>s((()=>import("./VendorsRoutes-B0jpUEsr.js")),__vite__mapDeps([56,1,2,3,4,5,6,7,26,0,24,53,54,15,11,20,21,22,29,45,8])))),Rt=l((()=>s((()=>import("./TransactionDetailRoutes-Cjl1b082.js")),__vite__mapDeps([61,1,2,3,0,4,5,6,7,12,11,13,14,15,16,8])))),ve=l((()=>s((()=>import("./EntityDetailRoutes-DJQtBHmg.js")),__vite__mapDeps([62,1,2,3,4,5,6,7,13,10,11,12,14,15,16,17,8])))),It=l((()=>s((()=>import("./DashboardRoutes-B204TMlK.js")),__vite__mapDeps([9,1,2,3,4,5,6,7,10,11,12,13,14,15,16,17,0,18,19,20,21,22,23,24,8])))),Ce=l((()=>s((()=>import("./BillPayRoutes-2a_IZnwa.js")),__vite__mapDeps([25,1,2,3,4,5,6,7,26,0,27,11,14,28,15,20,21,22,29,24,30,18,31,32,33,8])))),jt=l((()=>s((()=>import("./SettingsRoutes-DJySqZaP.js")),__vite__mapDeps([38,1,2,3,4,5,6,7,22,39,20,21,40,41,42,43,44,13,45,26,0,18,28,15,19,46,31,32,35,8])))),Tt=l((()=>s((()=>import("./InvoicingRoutes-BegsYwP5.js")),__vite__mapDeps([63,1,2,3,4,5,6,7,26,0,20,21,22,40,41,42,43,44,13,8])))),Oe=l((()=>s((()=>import("./ReimbursementRoutes-Cx2mA5oI.js")),__vite__mapDeps([34,1,2,3,4,5,6,7,0,30,28,15,20,21,22,18,24,11,14,29,35,32,33,8])))),At=l((()=>s((()=>import("./ZeniAccountRoutes-rvEU6aIV.js")),__vite__mapDeps([57,1,2,3,4,5,6,7,0,30,28,15,20,21,22,18,24,27,26,11,37,8])))),bt=l((()=>s((()=>import("./TreasuryRoutes-CAU50PuC.js")),__vite__mapDeps([55,1,2,3,4,5,6,7,0,30,28,15,20,21,22,18,11,14,24,8])))),Dt=l((()=>s((()=>import("./TransactionListRoutes-Bou1SXH0.js")),__vite__mapDeps([36,1,2,3,4,5,6,7,10,11,12,13,14,15,16,17,37,8])))),ft=l((()=>s((()=>import("./ChargeCardRoutes-BRLKWsqh.js")),__vite__mapDeps([48,1,2,3,4,5,6,7,11,20,21,22,30,28,15,0,18,14,49,26,8])))),yt=l((()=>s((()=>import("./NotificationRoutes-yv8wAOZf.js")),__vite__mapDeps([64,1,2,3,0,4,5,6,7,11,22,8])))),vt=l((()=>s((()=>import("./PerformanceRoutes-DRZwF4Om.js")),__vite__mapDeps([65,1,2,3,0,4,5,6,7,11,20,21,22,8])))),Ct=l((()=>s((()=>import("./ExpenseAutomationRoutes-DndYYpK4.js")),__vite__mapDeps([51,1,2,3,0,4,5,6,7,11,12,13,14,15,16,52,17,10,53,54,45,29,8])))),Ot=l((()=>s((()=>import("./ActualMatchingMatchDetailScreen-Cme87N6F.js")),__vite__mapDeps([66,1,2,3,4,5,6,7,52,17,13,15,0,8])))),Ut=l((()=>s((()=>import("./RewardsRoutes-CDc0bjMu.js")),__vite__mapDeps([67,1,2,3,4,5,6,7,0,8])))),Pt=l((()=>s((()=>import("./TaskRoutes-CQdL9o7q.js")),__vite__mapDeps([68,1,2,3,0,4,5,6,7,14,20,21,22,69,11,70,8])))),wt=l((()=>s((()=>import("./AiCfoScreen-CmeUs6M1.js")),__vite__mapDeps([71,1,2,3,4,5,6,7,23,54,15,70,8])))),Ue=l((()=>s((()=>import("./CardsAiCfoScreen-CqoF74R8.js")),__vite__mapDeps([72,1,2,3,4,5,6,7,8])))),b=l((()=>s((()=>import("./NotFoundScreen-DHMPApWS.js")),__vite__mapDeps([0,1,2,3,4,5,6,7,8])))),Ft=l((()=>s((()=>import("./TaskListScreen-CDkR9GBn.js").then((o=>o.f))),__vite__mapDeps([69,1,2,3,4,5,6,7,11,20,21,22,70,8])))),Lt=({isDashboardAccess:o,showZeniAccountRoute:D,isUserHasBillPayAccess:N,isUserHasReimbursementAccess:i,showTreasuryRoute:H,isTenantBankingOnly:O,isTenantCardsOnly:C,showChargeCardRoute:V})=>{if(O===!0){if(D)return e.jsx(u,{to:"checking"});if(H)return e.jsx(u,{to:"treasury"});if(V)return e.jsx(u,{to:"cards"})}return C===!0&&V?e.jsx(u,{to:"cards"}):o?e.jsx(u,{to:"dashboard"}):D?e.jsx(u,{to:"checking"}):H?e.jsx(u,{to:"treasury"}):V?e.jsx(u,{to:"cards"}):N?e.jsx(u,{to:"bills"}):i?e.jsx(u,{to:"reimbursements"}):e.jsx(u,{to:"dashboard"})},Pe=({tenantEmailDomain:o})=>e.jsx(u,{to:`/${o}/dashboard`}),$t=Object.freeze(Object.defineProperty({__proto__:null,default:function({setTenantEmailDomain:o}){const D=Gs(),N=qs(),{tenantEmailDomain:i}=Ws(),H=rt().mode,{setLoading:O,clearAllLoading:C,clearLoading:V}=Js(),f=y.getSignedInUserTenant(i)?.tenantId,j=y.getSignedInUser(),K=Es(j),z=Ys(),[L,we]=P.useState(!1),r=$((a=>hs(a))),{useFeatureGate:k}=Qs(),M=Xs(),J=et(),Fe=!!r.company?.companyZeniAccountInfo?.isZeniAccountEnabled,Le=r.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",{isFeatureEnabled:He}=k(S.isChargeCardFeatureEnabled),{isFeatureEnabled:oe}=k(S.isDebitCardFeatureEnabled),T=$((a=>a.tenantState.fetchState)),p=$((a=>a.tenantState.activeTenantFetchState.fetchState)),E=p==="Completed"||T==="Completed"?ps(oe,r):void 0,Q=p==="Completed"||T==="Completed"?xs(r):void 0,re=p==="Completed"||T==="Completed"?gs(r)&&!Rs(r):void 0,Ve=st(r,He,oe),{isCardsHidden:ke}=tt(r?.tenantId),Be=!Ve||!!ke,{isFeatureEnabled:Se}=k(S.isSettingsFeatureEnabled),{isFeatureEnabled:X}=k(S.isAiCfoFileUploadEnabled),{isFeatureEnabled:Ne}=k(S.isInvoicingFeatureEnabled??"is_invoicing_feature_enabled"),Me=Ne||ot==="DEV",Ze=r?.userRole!=null&&Is(r.userRole),G=$((a=>js(a)));if(i!=null){const a=y.getSignedInUserTenant(i);j!=null&&a!=null&&be(j,r,H)}const Z={tenantId:f,userId:j?.userId,sessionId:j?.zeniSessionId},ie=Ts(),h=nt(),$e=r.company==null||h?.loggedInUserRoleMap!=null&&pe(h.loggedInUserRole),ze=As(h?.loggedInUserRoleMap),ee=Te("/:tenantEmailDomain/onboarding/*")!==null,Ge=Te("/:tenantEmailDomain/month_end_close_checks/review/:selectedTab/:selectedPeriod/*"),se=Ge?.params.selectedPeriod,qe=$((a=>Z.tenantId!=null?bs(a,Z.tenantId):void 0));P.useEffect((()=>{O(F.TENANT_FETCHING),o(i)}),[i]),P.useEffect((()=>{if(se!=null&&f!=null){const a=se.split("-");if(a.length===2){const A=Ds(Number(a[0])),c=Number(a[1]),t=fs(`01-${A<10?`0${A}`:A}-${c}`,Ae.getLocalizedStrings().dateFormat.analytics.DDDashMMDashYYYY),d=ys();t.isAfter(d,"month")===!1?D(vs(f,{month:A,year:c})):N(`/${i}/month_end_close_checks/review`)}}}),[se,i,f]),P.useEffect((()=>{L||(we(!0),O(F.TENANT_FETCHING))}),[L,Z,ie,j,D,y]),P.useLayoutEffect((()=>{!Cs(ie,Z)&&y.isSignedIn()&&(O(F.TENANT_FETCHING),(function(a,A,c,t){if(ge(A?.userId,A?.zeniSessionId,a.tenantId),c($s(!0)),c(Re(a.tenantId)),a.tenantId!=null&&_.clearTenant(a.tenantId),a.tenantId!=null){const d=y.getSignedInUserTenantWithId(a.tenantId);t&&Ae.updateAppLocaleID(it(t)),d?.tenantEmailDomain!=null&&y.saveActiveTenantDomainForUser(d?.tenantEmailDomain)}a.userId!=null?ne.identify(a.userId,{tenant_id:a.tenantId}):ne.resetUserIdentity()})(Z,j,D,qe))}),[f]),P.useEffect((()=>{y.isSignedIn()&&(O(F.TENANT_FETCHING),(function(a,A,c,t,d,q,B){if(c==null&&t==null)return void console.warn("There is no current tenant selected!!");const W=t!=null&&d?.zeniSessionId!=null,cs=c==null||c.tenantId!==t,ms=c!=null&&c.excludedResources==null,_s=c!=null&&c.externalConnections==null;if(W&&cs){B(Re(t));const Y=y.getSignedInUserTenantWithId(t);Y?.tenantEmailDomain!=null&&y.saveActiveTenantDomainForUser(Y?.tenantEmailDomain),ge(d?.userId,d?.zeniSessionId,t),_.shouldFetchExcludedResources(t)&&(_.markExcludedResourcesFetchStarted(t),B(Ie(d.userId,t))),_.shouldFetchConnections(t)&&(_.markConnectionsFetchStarted(t),B(je(d.userId,t)))}else W&&ms&&_.shouldFetchExcludedResources(t)&&(_.markExcludedResourcesFetchStarted(t),B(Ie(d.userId,t))),W&&_s&&_.shouldFetchConnections(t)&&(_.markConnectionsFetchStarted(t),B(je(d.userId,t)));if(W){ne.identify(d.userId,{tenant_id:t});const Y=t==null||t!=null&&(A==="Completed"||A==="Error");a==="Completed"||A!=="Not-Started"&&A!=="Error"||t==null||!_.shouldFetchActiveTenant(t)||(_.markActiveTenantFetchStarted(t),q(F.TENANT_FETCHING),B(zs(d.userId,t,d.zeniSessionId))),Y&&(a==="Not-Started"||a==="Error")&&_.shouldFetchAllTenants()&&(_.markAllTenantsFetchStarted(),B(xe(d.userId,d.zeniSessionId)))}})(T,p,r,f,j,O,D))}),[f,p]),P.useEffect((()=>{y.isSignedIn()&&T==="Completed"&&G.tenantsBaseInOrder.length>0&&(V(F.TENANT_FETCHING),y.saveSignedInUserTenants(Os(G.tenantsBaseInOrder)),j!=null&&be(j,r,H,void 0,G.tenantsBaseInOrder))}),[G,T,r,j]),P.useEffect((()=>{p==="In-Progress"&&O(F.TENANT_FETCHING),p!=="Completed"&&p!=="Error"||(p==="Completed"&&f!=null?(C(),_.markActiveTenantFetchCompleted(f)):p==="Error"&&f!=null&&(_.markActiveTenantFetchFailed(f),V(F.TENANT_FETCHING),V(F.TENANT_SWITCHING))),T!=="Completed"&&T!=="Error"||(T==="Completed"?_.markAllTenantsFetchCompleted():T==="Error"&&_.markAllTenantsFetchFailed())}),[p,T,f,L]);const le=P.useRef(!1);P.useEffect((()=>{!le.current&&p==="Completed"&&L&&(le.current=!0,(function(a=mt,A=3e3){setTimeout((()=>{const c=t=>{if(t>=a.length)return;const d=a[t],q=ct[d];q!=null?q().then((()=>ae((()=>c(t+1))))).catch((()=>ae((()=>c(t+1))))):c(t+1)};ae((()=>c(0)))}),A)})())}),[p,L]);const U=r?.userRole!=null&&Us(r?.userRole),{isFeatureEnabled:We}=k(S.isReferralFeatureEnabled),{isFeatureEnabled:Ye}=k(S.isAccrualEnabled),Ke=r?.userRole!=null&&r.userRole.includes("charge_card_user"),Je=r?.userRole!=null&&r.userRole.includes("charge_card_admin"),w=r?.userRole!=null&&pe(r.userRole),ue=r?.company==null||r.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!U,de=!Be&&!U,Qe=Ps(h?.loggedInUserRoleMap),Xe=r.externalConnections?.accounting[0]?.isValid,es=r.externalConnections?.fetchState==="Completed",te=r.company?.companyOnboardingInfo.isOnboardingCompleted,ce=r?.company==null||r.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!U,me=ce&&ws(h?.loggedInUserRoleMap),_e=Fe&&!U,ss=Le&&!U,ts=ue&&Fs(h?.loggedInUserRoleMap),ns=de&&Ls(h?.loggedInUserRoleMap),as=_e&&Hs(h?.loggedInUserRoleMap),os=Vs(h?.loggedInUserRoleMap),rs=ks(h?.loggedInUserRoleMap),is=Bs(h?.loggedInUserRoleMap),ls=Ss(h?.loggedInUserRoleMap),us=Ns(h?.loggedInUserRoleMap),x=Ms(h?.loggedInUserRoleMap),g=Zs(h?.loggedInUserRoleMap),Ee=ue&&x,he=ce&&g,R=_e&&is,I=ss&&ls,m=de&&us,ds=r.excludedResources?.resources?.find((a=>a.resource==="/invites"))!=null||ze===!0||Qe===!0||os===!0||rs===!0;return y.isSignedIn()?f==null?T==="Completed"?e.jsx(u,{to:"/",replace:!0,state:{...z.state,message:"...",origin:z.pathname}}):(j!=null&&T!=="In-Progress"&&D(xe(j.userId,j.zeniSessionId)),null):p!=="In-Progress"&&p!=="Not-Started"||T==="Completed"?(te===!0||K&&!ee)&&es&&Xe!==!0&&E===!1&&Q===!1&&re===!1?(o(void 0),e.jsx(u,{to:"/connection/auth",replace:!0})):!L||re!==!0||te!==!0||ee||K?!L||te!==!1||ee||K?L&&r?.userRole&&E!=null&&Q!=null&&i!=null&&Object.keys(h.loggedInUserRoleMap).length>0?e.jsx(Ks,{children:e.jsxs(n,{element:e.jsx(at,{}),children:[e.jsx(n,{path:"/",element:e.jsx(Lt,{isDashboardAccess:w,showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:I,isTenantBankingOnly:E,isTenantCardsOnly:Q,showChargeCardRoute:m})}),e.jsx(n,{path:"dashboard/*",element:w?e.jsx(It,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:I,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"reports/*",element:w?e.jsx(_t,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:I,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"people/*",element:ds||w?e.jsx(ht,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:I,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"forecast/*",element:w?e.jsx(pt,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:I,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"onboarding/*",element:e.jsx(xt,{})}),e.jsx(n,{path:"transaction/*",element:w&&U===!1||Ke||Je?e.jsx(Rt,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:I,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"transactions/*",element:w&&U===!1?e.jsx(Dt,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:I,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"customer/*",element:w&&U===!1?e.jsx(ve,{entityType:"customer"}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,isTenantBankingOnly:E,showTreasuryRoute:I,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"vendor/*",element:w&&U===!1?e.jsx(ve,{entityType:"vendor"}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:I,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"tasks",element:e.jsx(Ft,{})}),e.jsx(n,{path:"tasks/*",element:e.jsx(Pt,{})}),e.jsx(n,{path:"address/*",element:ts||me||as||ns?e.jsx(Et,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:I,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"checking/*",element:R?e.jsx(At,{}):e.jsx(b,{})}),e.jsx(n,{path:"treasury/*",element:I?e.jsx(bt,{}):e.jsx(b,{})}),e.jsx(n,{path:"performance",element:J===!0?e.jsx(vt,{}):e.jsx(Pe,{tenantEmailDomain:i})}),e.jsx(n,{path:"month_end_close_checks/review/*",element:J===!0&&U===!1?e.jsx(Ct,{}):e.jsx(Pe,{tenantEmailDomain:i})}),e.jsx(n,{path:"expense-automation/actual-matching/:matchId",element:J===!0&&U===!1&&Ye===!0?e.jsx(Ot,{}):e.jsx(b,{})}),e.jsx(n,{path:"notifications/*",element:e.jsx(yt,{})}),e.jsx(n,{path:"vendors/*",element:$e?e.jsx(gt,{}):e.jsx(b,{})}),e.jsx(n,{path:"bill/*",element:Ee?e.jsx(Ce,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:I,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"bills/*",element:Ee?e.jsx(Ce,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:I,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"reimbursement/*",element:he?e.jsx(Oe,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:I,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"reimbursements/*",element:he?e.jsx(Oe,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:I,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"settings/*",element:Se?e.jsx(jt,{hasAdminLevelAccess:me}):e.jsx(b,{})}),e.jsx(n,{path:"invoicing/*",element:Me&&Ze?e.jsx(Tt,{}):e.jsx(b,{})}),e.jsx(n,{path:"cards/ask",element:m&&M?e.jsx(Ue,{isFileUploadEnabled:X}):e.jsx(b,{})}),e.jsx(n,{path:"cards/ask/:session_id",element:m&&M?e.jsx(Ue,{isFileUploadEnabled:X}):e.jsx(b,{})}),e.jsx(n,{path:"cards/*",element:m?e.jsx(ft,{}):e.jsx(b,{})}),e.jsx(n,{path:"rewards/*",element:We?e.jsx(Ut,{}):e.jsx(b,{})}),e.jsx(n,{path:"/ai-cfo",element:M?e.jsx(u,{to:"explore"}):e.jsx(b,{})}),e.jsx(n,{path:"/ai-cfo/",element:M?e.jsx(u,{to:"explore"}):e.jsx(b,{})}),e.jsx(n,{path:"/ai-cfo/:session_id",element:M?e.jsx(wt,{isFileUploadEnabled:X}):e.jsx(b,{})}),e.jsx(n,{path:"*",element:e.jsx(b,{})})]})}):null:(o(void 0),e.jsx(u,{to:`/${i}/onboarding`,replace:!0})):(o(void 0),e.jsx(u,{to:`/${i}/onboarding/thankyou`,replace:!0})):null:(console.warn("User logged out!!"),o(void 0),e.jsx(u,{to:"/signin/auth",replace:!0,state:{...z.state,message:"...",origin:z.pathname}}))}},Symbol.toStringTag,{value:"Module"}));export{v as F,$t as S};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as u}from"./liveblocks-ElMRERc9.js";import{a as f,R as T,t as A}from"./sentry-B8nCx7v9.js";import{u as z,h as D,j as c,g as M,N as O,l as j}from"./core-C81VRbeP.js";import{u as P,z as s,j as E,G as F,O as N,Q as _,R as B,S as R,U as V,X as v}from"./index-DBuws41Q.js";import{fI as $,Un as H,UH as J,gl as Q,gn as W,UM as X,gY as Y,dk as G,UN as y,UO as q,UP as K,c0 as U}from"./zeni-epic-state-DklVhJVB.js";import{u as Z}from"./mui-DoMnHjRT.js";import{u as ee}from"./useDeviceId-BHwBnu_B.js";import{f as te}from"./analyticsHelper-Cx6i8svJ.js";import{t as ne}from"./getLocaleForTenant-nCPleYdt.js";import"./recharts-DdTjw53U.js";import"./analytics-BXM45nWq.js";import"./plaid-4usmEsnw.js";import"./dnd-BdXAZjIP.js";import"./stripe-cKAAJElX.js";import"./lottie-B6h9ACvw.js";import"./lexical-DcaHthb5.js";import"./pdf-DFrRjL7N.js";import"./utils-CSS89dSa.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]="ed121e85-48e8-47ca-aec9-3dcabd78f5b9",t._sentryDebugIdIdentifier="sentry-dbid-ed121e85-48e8-47ca-aec9-3dcabd78f5b9")}catch{}})();const ie=j((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(K({authCode:n,oauthProvider:a,appType:"web",redirectUri:U(l),sourceUri:U(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(q(n,a)))},clearSignInError:()=>{t(y())}}}))(V),ae=T.memo(ie);function ve({setTenantEmailDomain:t}){const i=z(),d=D(),{clearAllLoading:g}=P(),n=s.getSignedInUser();f.useLayoutEffect((()=>{g()}),[g]);const a=ee(),l=c((e=>e.tenantState.magicLinkCodeVerifier)),{sendEmailMagicLinkFetchState:k,accountLocked:b,accountUnlockTime:L}=c((e=>e.tenantState)),p=c((e=>e.tenantState.fetchState)),h=c((e=>e.tenantState.activeTenantFetchState.fetchState)),S=c((e=>e.tenantState.signInState)),o=c((e=>e.tenantState.loggedInUser)),r=c((e=>$(e))),I=c((e=>H(e))),m=M(),w=Z().mode,C=m.state?.magicLinkExpired,x=m.state?.magicLinkAlreadyUsed;if(f.useEffect((()=>{k.fetchState==="Completed"&&l!=null&&(E.trackSignInLinkSent(),s.saveMagicLinkCodeVerifier(l))}),[k.fetchState,l]),f.useEffect((()=>{t(void 0)}),[]),f.useEffect((()=>{S!=="In-Progress"||p!=="Completed"&&h!=="Completed"||o?.zeniSessionId==null||r==null||(s.savePayNowInfoTooltip(!0,o.zeniSessionId),s.saveSignedInUserWithSession(o,o.zeniSessionId),s.saveSignedInUserTenants(J(I.tenantsInOrder),o.zeniSessionId),Q(o.userId,o.zeniSessionId,r.tenantId),i(W(r.tenantId)),s.saveActiveTenantDomainForUser(r.tenantEmailDomain),i(X("Completed")),F.updateAppLocaleID(ne(r)),te(o,r,w,void 0,I.tenantsInOrder),Y().then((()=>{const e=R();e!=null&&N(e)})),setTimeout((()=>{E.trackLogin(_.Event.loginSuccess,o.authProvider??"google",G(r.productSettings))}),2e3))}),[S,p,h,o,r,I,w,m.state,i]),S==="In-Progress"&&p==="Completed"&&o?.zeniSessionId!=null&&r!=null||n!=null){const e=m.state?.origin??"/";return u.jsx(O,{to:e,state:{...m.state,origin:""}})}return u.jsxs(u.Fragment,{children:[u.jsx(ae,{magicLinkExpired:!!C,magicLinkAlreadyUsed:!!x,magicLinkExpiredEmail:s.getMagicLinkEmail()??void 0,location:m,navigate:d,deviceId:a??void 0,showEmailLogin:!0}),b===!0&&L!=null?u.jsx(B,{onClose:()=>i(y()),unlockDate:L}):null]})}export{ve as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-ElMRERc9.js";import{a as i}from"./sentry-B8nCx7v9.js";import{u as d,g as f,N as u}from"./core-C81VRbeP.js";import{z as n,j as a,Q as m,a5 as p}from"./index-DBuws41Q.js";import{g$ as g,V1 as y}from"./zeni-epic-state-DklVhJVB.js";import{n as b}from"./mui-DoMnHjRT.js";import"./recharts-DdTjw53U.js";import"./analytics-BXM45nWq.js";import"./plaid-4usmEsnw.js";import"./dnd-BdXAZjIP.js";import"./stripe-cKAAJElX.js";import"./lottie-B6h9ACvw.js";import"./lexical-DcaHthb5.js";import"./pdf-DFrRjL7N.js";import"./utils-CSS89dSa.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]="c973ab0d-15e4-4860-812e-916a33444789",e._sentryDebugIdIdentifier="sentry-dbid-c973ab0d-15e4-4860-812e-916a33444789")}catch{}})();function N(){const e=d(),t=f(),r=i.useRef(!1),l=n.isSignedIn(),o=t.state?.message==="logout"||l;return i.useEffect((()=>{if(o&&!r.current){r.current=!0;try{e(g()),y(),a.trackLogout(m.Event.logoutSuccess),a.resetUserIdentity(),n.clearAll()}catch(c){console.error("Error during sign out:",c)}finally{window.location.replace("/signin/auth")}}}),[o,e]),o?s.jsx(h,{children:s.jsx(p,{fetchState:"In-Progress"})}):s.jsx(u,{to:"../",replace:!0})}const h=b.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{N as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-ElMRERc9.js";import he from"./NotFoundScreen-DHMPApWS.js";import{a as k}from"./sentry-B8nCx7v9.js";import{h as se,u as ne,j as g,g as Ee,i as be,N as De,l as Ie,n as Ce,o as E}from"./core-C81VRbeP.js";import{Qq as oe,Qt as Ge,Qn as ye,a2x as _e,fI as re,a2y as ie,QU as D,QH as b,Qk as Ae,Rn as Re,Rg as Ue,a2z as ce,gk as le,a2A as H,Qg as ve,Qd as Be,v2 as xe,uS as we,mD as je,QF as Pe,a2B as Fe,Rz as Ke,QB as Le,R2 as Qe,Q$ as $e,Qw as Ne,QY as ze,QR as Ze}from"./zeni-epic-state-DklVhJVB.js";import{z as I,e1 as Oe,K as Ve,W as qe,A as _,a2 as de,p as A,a6 as Me,j as J,Q as We,e2 as Ye,X,ac as He}from"./index-DBuws41Q.js";import{n as Je}from"./mui-DoMnHjRT.js";import{u as Xe}from"./useInitialThreadRequest-Df2EXypG.js";import{M as ea}from"./MobileAppDrawer-DtO8FQWm.js";import{T as m,t as aa,b as ta,a as sa,c as na,d as ee,e as oa}from"./TaskListScreen-CDkR9GBn.js";import{u as ra}from"./useTaskManagerPusherEvents-iP182dSE.js";import"./recharts-DdTjw53U.js";import"./analytics-BXM45nWq.js";import"./plaid-4usmEsnw.js";import"./dnd-BdXAZjIP.js";import"./stripe-cKAAJElX.js";import"./lottie-B6h9ACvw.js";import"./lexical-DcaHthb5.js";import"./pdf-DFrRjL7N.js";import"./utils-CSS89dSa.js";import"./InboxNotificationsProvider-BPTkk56Z.js";import"./useTaskManagerAccess-BpFV6J8j.js";import"./useAskAiCfoHostNavButtonProps-CAip1ZNF.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]="e1a24f11-2b76-4fd4-816d-9275ce4d1b14",e._sentryDebugIdIdentifier="sentry-dbid-e1a24f11-2b76-4fd4-816d-9275ce4d1b14")}catch{}})();function ia(){const e=se(),a=ne(),n=I.getSignedInUser(),{cannedResponses:c,fetchState:s,saveFetchState:l}=g((r=>r.cannedResponsesState)),d=k.useCallback((()=>{a(oe())}),[a]),S=k.useCallback(((r,C,G)=>{a(Ge({name:r,content:C,cannedResponseId:G}))}),[a]),t=k.useCallback((r=>{a(ye({cannedResponseId:r}))}),[a]);if(n==null)throw Error("Can't access quick responses page without signing in...");return i.jsx(Oe,{cannedResponses:c,isLoading:s==="In-Progress"||s==="Not-Started",isSaving:l==="In-Progress",onBackClick:()=>e(-1),onDelete:t,onFetch:d,onSave:S})}const Q=e=>e?.taskState?.taskByID,K=(e,a)=>{const n=Q(e);if(a!=null&&n!=null)return n[a]?.parentTaskId??void 0},ca=_e([K,(e,a)=>{const n=K(e,a),c=Q(e);if(n!=null&&c!=null)return c[n]?.name},(e,a)=>{const n=K(e,a),c=Q(e);return n!=null&&c!=null&&c[n]!=null}],((e,a,n)=>{if(e!=null&&n===!0)return{id:e,name:a??""}}));let ae,te=[];const la=Ie((function(e,a){const{location:n,taskGroupId:c}=a,s=ce(e,a.taskId),l=re(e),d=ca(e,a.taskId),S=s.taskGroupId??c,t=S!=null?H(e.taskGroupState,S):void 0,r=I.getSignedInUser(),C=l.tenantId,G={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:C??""},B=ie(e),{tenantEmailDomain:x}=l,R=s.recurringSourceTaskId,w=R!=null?`${X.appUrl}/${x}/tasks/${encodeURIComponent(R)}`:void 0;var h;return{taskDetailSelectorView:s,authParams:G,isZeniUser:I.isZeniUser(),userGroupList:((h=e.userGroupsState.userGroupByUserGroupId)!==ae&&(ae=h,te=Object.values(h)),te),isNewClicked:n.state?.message==="comingFromTaskListPage",filesEndPoint:He.fileMicroServiceBaseUrl,companyName:a.currentTenant.companyName,companyId:a.currentTenant.companyId,currentUrl:`${X.appUrl}${a.location.pathname}`,cannedResponses:e.cannedResponsesState.cannedResponses,isCannedResponsesLoading:e.cannedResponsesState.fetchState==="In-Progress",recurringSourceTaskUrl:w,tagListView:B,taskGroupName:S!=null&&t!=null&&t.isDefault===!1?t.name:void 0,taskGroupList:e.taskGroupViewState.taskGroupsIds.map((f=>H(e.taskGroupState,f))).filter((f=>f!=null&&!f.isDeleted)).map((f=>({id:f.id,name:f.name,isDefault:f.isDefault}))),subtasks:s.subtasks,parentTaskRef:d,subTaskCreateStatus:e.taskDetailState?.subTaskCreateStatus?.fetchState}}),(function(e,a){const{taskId:n,navigate:c,currentTenant:s,location:l,taskGroupId:d}=a,{tenantEmailDomain:S}=s;return{onSaveChangesToLocalStore:t=>{e(Ze({taskDetailLocalData:t,taskId:n}))},onSaveDetailClick:t=>{e(ze(n,t??d))},onArchiveTaskClick:()=>{a.taskId!=null&&e(Ne(a.taskId))},onSnoozeTask:(t,r)=>{e($e(t,r))},onUnsnoozeTask:t=>{e(Qe(t))},onCreateSubtask:(t,r)=>{e(Le({...r,parentTaskId:t}))},onSubtaskUpdate:(t,r)=>{e(Ke({task:t,updates:r}))},onShowToast:t=>{e(le(t))},onSubtaskRowClick:t=>{c(`/${S}/tasks/${t}`,{state:{pathnameStackToGoBack:A(l.state?.pathnameStackToGoBack,l.pathname)}})},onParentBreadcrumbClick:t=>{c(`/${S}/tasks/${t}`,{state:{pathnameStackToGoBack:A(l.state?.pathnameStackToGoBack,l.pathname)}})},onDismissClick:()=>{if(l.state?.message==="triggerBackClick"){const t=de(l.state?.pathnameStackToGoBack),r=t.poppedPathname??"../../dashboard";c(r,{state:{pathnameStackToGoBack:t.newStack}})}else{const t=v(S),r=A(l.state?.pathnameStackToGoBack,l.pathname);c(t,{state:{pathnameStackToGoBack:r}})}e(Fe({taskId:n}))},onDeleteTaskClick:()=>{e(Pe(n))},updateFilesEntity:t=>{e(je({files:t}))},onDeleteFile:t=>{e(we(t))},onEditFileName:(t,r)=>{e(xe(t,r.split(".")[0]))},onReloadTaskDetailPage:()=>{e(D(!1,n))},onCreateTagClick:t=>{e(Be(t,n))},onDeleteTagClick:t=>{e(ve(t,n))},onFetchCannedResponses:()=>{e(oe())},onManageTemplatesClick:()=>{c(`/${s.tenantEmailDomain}/tasks/quick-responses`)}}}))(Ye);function L(){const e=se(),a=ne(),n=Ee(),c=Ve(),{taskId:s,taskGroupId:l}=be(),d=g((o=>re(o))),S=Xe(d?.companyId),{useFeatureGate:t}=qe(),{isFeatureEnabled:r}=t(_.isTaskSnoozeEnabled),{isFeatureEnabled:C}=t(_.isTaskVisibilityEnabled),{isFeatureEnabled:G}=t(_.isTaskCannedResponsesEnabled),{isFeatureEnabled:B}=t(_.isTaskRecurringParentEnabled),{isFeatureEnabled:x}=t(_.isTaskGroupAssigneesEnabled),[R,w]=k.useState(!1),[h,f]=k.useState(!1),[$,ue]=k.useState(!1),[N,j]=k.useState(!1),y=k.useRef(!1),U=g((o=>o.taskListState.updateTasksFetchState.fetchState)),z=g((o=>ie(o))),Z=g((o=>o.taskGroupViewState.fetchState));k.useEffect((()=>{a(D(!1,s)),s!=null&&a(b(s))}),[a,s]);const O=I.getSignedInUser()?.userId,ke=I.isZeniUser(),pe=g((o=>s!=null?o.taskState.taskByID[s]?.syncToken:void 0)),V=()=>{d?.tenantEmailDomain!=null&&e(v(d.tenantEmailDomain))},q=()=>{a(le({messageSection:"delete_task",messageText:"success",type:"success"})),V()},me=k.useMemo((()=>{const o=[m.TASK_CREATED,m.TASK_UPDATED,m.TASKS_BULK_UPDATED,m.TASKS_BULK_DELETED],u=[...o,m.TASK_SNOOZE_RESURFACED];return[...ta(d?.companyId,o),...sa(O,u)]}),[d?.companyId,O]);ra({events:me,onSubscribed:()=>{s!=null&&(a(D(!0,s)),a(b(s)))},onEvent:(o,u)=>{if(s!=null)switch(o){case m.TASK_CREATED:case m.TASK_UPDATED:{const p=((F,fe,{isZeniUser:Te,storedSyncToken:ge,taskId:Y})=>{if(F!==m.TASK_CREATED&&F!==m.TASK_UPDATED)return"none";const T=aa(fe);return T==null?"none":T.parent_task_id===Y?"refreshSubtasks":F!==m.TASK_UPDATED||T.task_id!==Y?"none":T.is_deleted===!0?"leaveDeleted":T.is_private!==!0||Te?T.sync_token!=null&&T.sync_token===ge?"none":"refreshTask":"leaveNoAccess"})(o,u,{isZeniUser:ke,storedSyncToken:pe,taskId:s});p==="refreshTask"?(a(D(!0,s)),a(b(s))):p==="refreshSubtasks"?a(b(s)):p==="leaveDeleted"?q():p==="leaveNoAccess"&&V();break}case m.TASKS_BULK_UPDATED:{const p=ee(u);if(p==null)break;p.task_ids.includes(s)&&a(D(!0,s)),a(b(s));break}case m.TASKS_BULK_DELETED:{const p=ee(u);if(p==null)break;if(p.task_ids.includes(s)){q();break}a(b(s));break}case m.TASK_SNOOZE_RESURFACED:{na(u)?.task_id===s&&a(D(!0,s));break}}}}),k.useEffect((()=>{h||z.fetchState==="Completed"||(f(!0),a(Ae()))}),[h,a,z.fetchState]),k.useEffect((()=>{$||Z==="Completed"||(ue(!0),a(Re()))}),[$,a,Z]);const Se=k.useCallback((()=>{s!=null&&(y.current=!1,a(Ue([s],null,{isArchived:!1})),j(!0))}),[a,s]);k.useEffect((()=>{if(N)if(U!=="In-Progress"){if(y.current){if(U==="Error")return j(!1),void(y.current=!1);if(U==="Completed"){j(!1),y.current=!1;const{tenantEmailDomain:o}=d;if(n.state?.message==="triggerBackClick"){const u=de(n.state?.pathnameStackToGoBack);e(u.poppedPathname??"../../dashboard",{state:{pathnameStackToGoBack:u.newStack}})}else{const u=v(o);e(u,{state:{pathnameStackToGoBack:A(n.state?.pathnameStackToGoBack,n.pathname)}})}}}}else y.current=!0}),[N,U,d,n,e]);const M=g((o=>ce(o,s))),P=M.fetchState,W=I.getSignedInUser();if(W==null)throw Error("Can't access task detail page without signing in...");if(P==="Error"&&M.error?.code===400){const{tenantEmailDomain:o}=d,u=v(o),p=A(n.state?.pathnameStackToGoBack,n.pathname);return i.jsx(De,{to:u,state:{pathnameStackToGoBack:p}})}return i.jsxs(i.Fragment,{children:[P==="Completed"?i.jsx(Me,{analytics:J,onLoad:o=>(u=>u.trackPageLoaded(We.Event.taskDetailPage))(o)}):null,i.jsxs(da,{children:[i.jsx(ea,{isAppContentDrawerOpen:R,handleDrawerToggle:o=>{w(o)}}),i.jsx(la,{analytics:J,currentTenant:d,handleZeniLogoClick:()=>{c.toggle()},initialOpenThreadRequest:S,location:n,loggedInUser:W,navigate:e,taskGroupId:l,taskId:s,taskDetailFetchState:P,onUnarchiveTaskClick:Se,isTaskSnoozeEnabled:r,isTaskVisibilityEnabled:C,isTaskCannedResponsesEnabled:G,isTaskRecurringParentEnabled:B,isTaskGroupAssigneesEnabled:x})]})]})}const da=Je.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
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
|
-
`,v=e=>`/${e}/tasks`;function wa(){return i.jsxs(Ce,{children:[i.jsx(E,{path:"/new",element:i.jsx(L,{})}),i.jsx(E,{path:"/new/:taskGroupId",element:i.jsx(L,{})}),i.jsx(E,{path:"/group/:taskGroupId",element:i.jsx(oa,{})}),i.jsx(E,{path:"/quick-responses",element:i.jsx(ia,{})}),i.jsx(E,{path:"/:taskId",element:i.jsx(L,{})}),i.jsx(E,{path:"*",element:i.jsx(he,{})})]})}export{wa as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./liveblocks-ElMRERc9.js";import i from"./NotFoundScreen-DHMPApWS.js";import{T as r}from"./TransactionDetailScreen-Db4tleaR.js";import"./sentry-B8nCx7v9.js";import{n as a,o as e}from"./core-C81VRbeP.js";import"./zeni-epic-state-DklVhJVB.js";import"./recharts-DdTjw53U.js";import"./index-DBuws41Q.js";import"./mui-DoMnHjRT.js";import"./analytics-BXM45nWq.js";import"./plaid-4usmEsnw.js";import"./dnd-BdXAZjIP.js";import"./stripe-cKAAJElX.js";import"./lottie-B6h9ACvw.js";import"./lexical-DcaHthb5.js";import"./pdf-DFrRjL7N.js";import"./utils-CSS89dSa.js";import"./useAskAiCfoHostNavButtonProps-CAip1ZNF.js";import"./decodeURIComponentSafe-CrALq_f_.js";import"./useInitialThreadRequest-Df2EXypG.js";import"./routePaths-CfxWxmyX.js";import"./expenseAutomationHelper-Crya3Dv_.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]="bfd19369-9f5a-4875-9ff9-f0a50fe2624d",o._sentryDebugIdIdentifier="sentry-dbid-bfd19369-9f5a-4875-9ff9-f0a50fe2624d")}catch{}})();function z(){return t.jsxs(a,{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{z as default};
|