@zeniai/web-app-ui 5.3.92-dev → 5.3.93-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-Bh9jl7Ef.js → AccountMappingScreen-BTR8uKQK.js} +2 -2
- package/dist/assets/{ActualMatchingMatchDetailScreen-DjOPlh3J.js → ActualMatchingMatchDetailScreen-DpaCOnCM.js} +1 -1
- package/dist/assets/AddressRoutes-GFLqbgTr.js +1 -0
- package/dist/assets/AddressScreen-DWZzKMEw.js +9 -0
- package/dist/assets/AiCfoScreen-Dd__YIWm.js +22 -0
- package/dist/assets/{AppDrawer-BQB31RFD.js → AppDrawer-D2Tl26uq.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-C0zm6ZLS.js → BillPayApprovalRoutes-DV_p_SQ2.js} +1 -1
- package/dist/assets/{BillPayRoutes-kQgV7FX8.js → BillPayRoutes-sNvDS-kN.js} +6 -6
- package/dist/assets/{BusinessVerificationPageScreen-BSguq-g2.js → BusinessVerificationPageScreen-CVijkaE8.js} +2 -2
- package/dist/assets/{CardsAiCfoScreen-nH8-GKOx.js → CardsAiCfoScreen-DO_HCVwI.js} +1 -1
- package/dist/assets/{ChargeCardRoutes-C_cRa3L-.js → ChargeCardRoutes-mt2g3Jg0.js} +1 -1
- package/dist/assets/CompanyPassportScreen-_f68duti.js +1 -0
- package/dist/assets/{ConnectionAuthScreen-ByV6yTTU.js → ConnectionAuthScreen-oPVi82Cx.js} +2 -2
- package/dist/assets/CustomerOnboardingAuthScreen-C3FMpb4J.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-BUkw8ab2.js → CustomerOnboardingRoutes-BLRE7IK-.js} +3 -3
- package/dist/assets/{DashboardRoutes-DEx1rH65.js → DashboardRoutes-mQvE4jJ0.js} +3 -3
- package/dist/assets/{DefaultTenantHome-BPLwTBZP.js → DefaultTenantHome-Dh5bAcpG.js} +1 -1
- package/dist/assets/DomesticWireDetailScreen-pkS3AD2d.js +18 -0
- package/dist/assets/{DrawerScreen-Du8hsTKk.js → DrawerScreen-DI4gxsFO.js} +1 -1
- package/dist/assets/EntityDetailRoutes-BH8_jvsw.js +1 -0
- package/dist/assets/{ExpenseAutomationRoutes-DXUAGmqA.js → ExpenseAutomationRoutes-_6qCRlW0.js} +7 -7
- package/dist/assets/FeaturePreviewScreen-kue3YUvW.js +1 -0
- package/dist/assets/{HubSpotOAuthCallbackScreen-BkrFKuyY.js → HubSpotOAuthCallbackScreen-D64pI0iU.js} +1 -1
- package/dist/assets/{InboxNotificationsProvider-B5M0qdMl.js → InboxNotificationsProvider-DrljtAmN.js} +1 -1
- package/dist/assets/{InvoicingRoutes-DJ09h0-W.js → InvoicingRoutes-D6QJ-LnU.js} +1 -1
- package/dist/assets/{MagicLinkRoutes-BTzEpPhB.js → MagicLinkRoutes-DFwRCGOM.js} +20 -20
- package/dist/assets/MagicLinkSignInScreen-DaNmJtKR.js +12 -0
- package/dist/assets/MobileAppDrawer-D9iwyW6E.js +1 -0
- package/dist/assets/NotFoundScreen-DHpPkJUq.js +1 -0
- package/dist/assets/{NotificationRoutes-BxisUoq4.js → NotificationRoutes-CNN0JO68.js} +1 -1
- package/dist/assets/{OAuthConsentScreen-DVdmzuPK.js → OAuthConsentScreen-CMQBCmUq.js} +1 -1
- package/dist/assets/{PandLWithForecastRoutes-Deg1E66Q.js → PandLWithForecastRoutes-BhMRDGc1.js} +1 -1
- package/dist/assets/{PaymentLinkScreen-C9O2KV8I.js → PaymentLinkScreen-DstzeuhJ.js} +9 -9
- package/dist/assets/{PeopleRoutes-DiFR5w2N.js → PeopleRoutes-6Eq28etR.js} +9 -9
- package/dist/assets/{PerformanceRoutes-QyQRVdnM.js → PerformanceRoutes-DkxGB8dS.js} +1 -1
- package/dist/assets/{Preview-DUYMZtKt.js → Preview-Dfugi26f.js} +1 -1
- package/dist/assets/{QBOConnectionScreen--OQu_pq8.js → QBOConnectionScreen-DNwlxY3R.js} +1 -1
- package/dist/assets/ReimbursementApprovalRoutes-CzKIB6lB.js +1 -0
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-BJcgs97q.js → ReimbursementApprovalRuleDetailScreen-C0oxxTC0.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-BAWywZO-.js → ReimbursementRoutes-C2uBm8Jr.js} +7 -7
- package/dist/assets/{ReportsRoutes-DFArxL2E.js → ReportsRoutes-CmRsRF1m.js} +1 -1
- package/dist/assets/RewardsRoutes-cYws_8FH.js +1 -0
- package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-D_ls3-hC.js → ScheduleDetailsPrepaidExpensesScreen-DKDzHrf0.js} +5 -5
- package/dist/assets/ScreenRoutes-Cd2fvUao.js +2 -0
- package/dist/assets/{SettingsRoutes-BbvIIMXV.js → SettingsRoutes-DBJKrFxG.js} +6 -6
- package/dist/assets/{SetupPagesScreen-RWtDE1DO.js → SetupPagesScreen-C70xRnVo.js} +1 -1
- package/dist/assets/SignInScreen-DB64sQry.js +1 -0
- package/dist/assets/SignOutScreen-RkBhfYpP.js +9 -0
- package/dist/assets/TaskListScreen-DW7e6ef_.js +9 -0
- package/dist/assets/{TaskRoutes-CjSgWf1E.js → TaskRoutes-BRKcMi_T.js} +2 -2
- package/dist/assets/TransactionDetailRoutes-BFBaFYFk.js +1 -0
- package/dist/assets/{TransactionDetailScreen-DGElbhCa.js → TransactionDetailScreen-DPKP2gGJ.js} +2 -2
- package/dist/assets/{TransactionListRoutes-Db86k9iu.js → TransactionListRoutes-CDs1-rA6.js} +1 -1
- package/dist/assets/{TreasuryRoutes-DxWgKInd.js → TreasuryRoutes-BbsVM2lE.js} +1 -1
- package/dist/assets/{VendorsRoutes-DHlhSQpH.js → VendorsRoutes-B18gUSfI.js} +1 -1
- package/dist/assets/{WiseConfirmationScreen-CMvlKiZq.js → WiseConfirmationScreen-CMKnfyei.js} +1 -1
- package/dist/assets/{ZeniAccountRoutes-BMjC17N2.js → ZeniAccountRoutes-CWU7HNHh.js} +9 -9
- package/dist/assets/{ZeniAccountStatementScreen-BAIxCUhh.js → ZeniAccountStatementScreen-BcWZ9nqz.js} +1 -1
- package/dist/assets/{accountMappingHelper-CDFl9gNv.js → accountMappingHelper-PEq3iFwb.js} +1 -1
- package/dist/assets/{analytics-K5kCmXhx.js → analytics-wUVBNE2n.js} +1 -1
- package/dist/assets/{analyticsHelper-Cb3EUyBw.js → analyticsHelper-C8wUoU5C.js} +1 -1
- package/dist/assets/{core-CJLU9TYG.js → core-DtSa7_zJ.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-Cai8T7ud.js → decodeURIComponentSafe-CxfS79yY.js} +1 -1
- package/dist/assets/{dnd-BvQSnOXX.js → dnd-BRHUZ8LO.js} +1 -1
- package/dist/assets/{empty-CYTi1vUC.js → empty--RCTsu0x.js} +1 -1
- package/dist/assets/{empty-cTsBa_MX.js → empty-TXY6nS9o.js} +1 -1
- package/dist/assets/{emptyVideoElement-CkuydE4W.js → emptyVideoElement-jsNpgByF.js} +1 -1
- package/dist/assets/{epic-B7sSwFQr.js → epic-NcSj2eco.js} +1 -1
- package/dist/assets/{expenseAutomationHelper-AFTT-GAh.js → expenseAutomationHelper-BUiYzGxA.js} +1 -1
- package/dist/assets/{getLocaleForTenant-Bc7hFfBK.js → getLocaleForTenant-D03DEBIE.js} +1 -1
- package/dist/assets/{index-BcoLz164.js → index-BfiunY7r.js} +1 -1
- package/dist/assets/{index-DSH2m0Ax.js → index-Bfr7Ew4h.js} +1 -1
- package/dist/assets/{index-BTdRxzeE.js → index-BgQKS1TL.js} +1 -1
- package/dist/assets/{index-C6CmvTKV.js → index-CABDWa_r.js} +2 -2
- package/dist/assets/{index-Bac0_7La.js → index-CJhgQFRI.js} +13423 -13425
- package/dist/assets/{index-BjN-UlqP.js → index-CeI_n1Jv.js} +1 -1
- package/dist/assets/{index-C5DdgWE0.js → index-Cz1UMaoE.js} +1 -1
- package/dist/assets/{index-DqcV3YMG.js → index-DxlUZLeR.js} +1 -1
- package/dist/assets/{lexical-G-6YJUO1.js → lexical-CV0PpHfb.js} +1 -1
- package/dist/assets/{liveblocks-D0aPwrEa.js → liveblocks-CZZ7TQJf.js} +1 -1
- package/dist/assets/{lottie-CRpndHoM.js → lottie-_8fQYf62.js} +1 -1
- package/dist/assets/{mui-BTK8WNHw.js → mui-hHF2bYsV.js} +1 -1
- package/dist/assets/{pathToGoBack-DSav9J7K.js → pathToGoBack-sBV6PqT4.js} +1 -1
- package/dist/assets/{pdf-BlY1D9V4.js → pdf-DcTPEGUQ.js} +3 -3
- package/dist/assets/{pdf-lib-DubKZfxI.js → pdf-lib-DvlP1tZv.js} +1 -1
- package/dist/assets/{plaid-BWaZTH4h.js → plaid-l93gkere.js} +1 -1
- package/dist/assets/{pusher-NgljFe4c.js → pusher-Chl1DxG2.js} +1 -1
- package/dist/assets/{react-BdvVU4nA.js → react-B6u5wAGC.js} +1 -1
- package/dist/assets/{react-CXfU0Dfi.js → react-BPJWvFAw.js} +1 -1
- package/dist/assets/{react-Cd_9VlyA.js → react-BXuuk3m7.js} +1 -1
- package/dist/assets/{react-CJTAFFom.js → react-Ct10qt1E.js} +1 -1
- package/dist/assets/{react-XHCeVOeB.js → react-DvOc8dL3.js} +1 -1
- package/dist/assets/{react-BlKvPBUN.js → react-UkV3Bwgo.js} +1 -1
- package/dist/assets/{recharts-BEqM6zw3.js → recharts-DHYb1iJa.js} +1 -1
- package/dist/assets/{routePaths-CFVcdQVU.js → routePaths-66PPW-xS.js} +1 -1
- package/dist/assets/{sentry-Bh_Qiwsv.js → sentry-7oL5NFUY.js} +1 -1
- package/dist/assets/{stripSplatSuffix-Ba8pyF0x.js → stripSplatSuffix-Cj4hZLSk.js} +1 -1
- package/dist/assets/{url-YPAxZIuQ.js → url-AXfPza2U.js} +1 -1
- package/dist/assets/{url-CqXRBT9H.js → url-yW-1Hcty.js} +1 -1
- package/dist/assets/{useActualMatchingMatchDetail-Bo3l1zUQ.js → useActualMatchingMatchDetail-Bv7_wq27.js} +1 -1
- package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-BqbEtXbA.js → useAiCfoDashboardSuggestedQuestionsChips-B0543FEo.js} +1 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-C0sjuZuZ.js +1 -0
- package/dist/assets/{useChargeCardPusherEvents-IP7jEgbI.js → useChargeCardPusherEvents-DLwmfLZC.js} +1 -1
- package/dist/assets/{useDeviceId-BqYCCa6B.js → useDeviceId-DpOlnzI_.js} +1 -1
- package/dist/assets/{useEmailConnectResultRefresh-B2CM-p2n.js → useEmailConnectResultRefresh-DWBnl6oa.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-Byaj949Q.js → useInitialThreadRequest-Cf6qZ2C0.js} +1 -1
- package/dist/assets/useTaskManagerAccess-zRd8th0q.js +1 -0
- package/dist/assets/{useTaskManagerPusherEvents-xfS6T84X.js → useTaskManagerPusherEvents-CtTv0DPD.js} +1 -1
- package/dist/assets/{utils-DnIJUuGb.js → utils-D3PNq8pk.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-BOFkm0Uk.js → withTransactionSidePanel-DVXJCqK3.js} +1 -1
- package/dist/assets/{zeni-epic-state-DN1FMHPE.js → zeni-epic-state-DIQk-W8f.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/AddressRoutes-DiDhvZrH.js +0 -1
- package/dist/assets/AddressScreen-Djrv0IMM.js +0 -9
- package/dist/assets/AiCfoScreen-B4bDfb8M.js +0 -22
- package/dist/assets/CompanyPassportScreen-CMKrSOCe.js +0 -1
- package/dist/assets/CustomerOnboardingAuthScreen-Dr98fTM4.js +0 -1
- package/dist/assets/DomesticWireDetailScreen-CIlj8F4w.js +0 -18
- package/dist/assets/EntityDetailRoutes-BLSf8EBB.js +0 -1
- package/dist/assets/FeaturePreviewScreen-ae3ytT_c.js +0 -1
- package/dist/assets/MagicLinkSignInScreen-CyF3xUpa.js +0 -12
- package/dist/assets/MobileAppDrawer-Gq4sfjI3.js +0 -1
- package/dist/assets/NotFoundScreen-DVwEy2Nc.js +0 -1
- package/dist/assets/ReimbursementApprovalRoutes-Bu6Pn9AT.js +0 -1
- package/dist/assets/RewardsRoutes-CMb9MJ3w.js +0 -1
- package/dist/assets/ScreenRoutes-CjbhngRf.js +0 -2
- package/dist/assets/SignInScreen-5nP2m4Sd.js +0 -1
- package/dist/assets/SignOutScreen-C6DXPIPI.js +0 -9
- package/dist/assets/TaskListScreen-CLnMNKvr.js +0 -9
- package/dist/assets/TransactionDetailRoutes-CEyEoaOq.js +0 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-CkY97uj-.js +0 -1
- package/dist/assets/useTaskManagerAccess-CUawSS4F.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-CJhgQFRI.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-7oL5NFUY.js"><link rel="modulepreload" crossorigin href="/assets/core-DtSa7_zJ.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-DIQk-W8f.js"><link rel="modulepreload" crossorigin href="/assets/mui-hHF2bYsV.js"><link rel="modulepreload" crossorigin href="/assets/analytics-wUVBNE2n.js"><link rel="modulepreload" crossorigin href="/assets/utils-D3PNq8pk.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.93-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.5",
|
|
32
32
|
"@zeniai/client-epic-state": "5.2.86",
|
|
33
|
-
"@zeniai/web-components": "4.4.
|
|
33
|
+
"@zeniai/web-components": "4.4.29",
|
|
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-D0aPwrEa.js";import{A as i}from"./AddressScreen-Djrv0IMM.js";import s from"./NotFoundScreen-DVwEy2Nc.js";import"./sentry-Bh_Qiwsv.js";import{n as d,o as r}from"./core-CJLU9TYG.js";import"./zeni-epic-state-DN1FMHPE.js";import"./recharts-BEqM6zw3.js";import"./index-Bac0_7La.js";import"./mui-BTK8WNHw.js";import"./analytics-K5kCmXhx.js";import"./plaid-BWaZTH4h.js";import"./dnd-BvQSnOXX.js";import"./stripe-cKAAJElX.js";import"./lottie-CRpndHoM.js";import"./lexical-G-6YJUO1.js";import"./pdf-BlY1D9V4.js";import"./utils-DnIJUuGb.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 r}from"./liveblocks-D0aPwrEa.js";import{a as b}from"./sentry-Bh_Qiwsv.js";import{h as T,u as P,g as j,i as E,j as $,l as B}from"./core-CJLU9TYG.js";import{$ as L,z as M,V,a5 as D,a6 as K,j as C,N as S,a1 as R,U as h,a2 as U}from"./index-Bac0_7La.js";import{VQ as _,it as N,fI as z,VR as F,c9 as G,VS as O,mL as q}from"./zeni-epic-state-DN1FMHPE.js";import{u as H,n as Q}from"./mui-BTK8WNHw.js";import J from"./NotFoundScreen-DVwEy2Nc.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]="e2f54d6e-b433-4ae7-9b11-2ab9eaa6f3ce",e._sentryDebugIdIdentifier="sentry-dbid-e2f54d6e-b433-4ae7-9b11-2ab9eaa6f3ce")}catch{}})();const W=Q.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`,X=B((function(e,s){const{addressId:o,isSubPage:i,addressType:c}=s,l=z(e),a=s.roleMap!=null&&F(s.roleMap),n=i||c==="user_address"||G(l?.userRole??[])||a?void 0:"readonly";if(o==null){const t=O(c,e);return{addressToEdit:t?.addressToCreate,loadingState:t?.status?.fetchState,googleAPIKey:h.googleMapsAPIKey,isDisabled:n,isSubPage:i,dontShowSaveConfirmationPopup:s.dontShowSaveConfirmation}}const d=_(e,o);return{addressToEdit:d.address,loadingState:d.fetchState,googleAPIKey:h.googleMapsAPIKey,isDisabled:n}}),(function(e,s){const{navigate:o,location:i,addressType:c}=s,l=a=>{if(a==="express-pay")o("../express-pay/add-wire");else{const n=i.state,d=U(n?.pathnameStackToGoBack);let t=d.poppedPathname??v();const u=n?.queryParams;if(u){const g=new URLSearchParams(u).toString();g&&(t=`${t}?${g}`)}o(t,{state:{pathnameStackToGoBack:d.newStack}})}};return{onSubmitHandler:a=>{const n=Y(a);e(q({addressType:c,addressToCreate:n})),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 re({isSubPage:e,hideAddressSubTitle:s=!1,hideAddressBackButton:o=!1,dontShowSaveConfirmation:i,accountContext:c,addressTypeParam:l}){const a=T(),n=P(),d=j(),{addressId:t,addressType:u}=E(),g=L(),w=H(),I=M.getSignedInUser(),[f,k]=b.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 A=m=>m.trackPageLoaded(t!=null?S.Event.editAddress:S.Event.addAddress),y=l??u;return b.useEffect((()=>{f||t==null||(k(!0),n(N(t,!1)))}),[f,t,n]),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)?!f&&p==="Not-Started"||f&&p==="In-Progress"?r.jsx(D,{fetchState:p,style:{backgroundColor:w.colors.grey5}}):t!=null&&p==="Error"?(a(`${v(1)}/new`,{replace:!0}),r.jsx(r.Fragment,{})):r.jsxs(r.Fragment,{children:[r.jsx(K,{analytics:C,onLoad:A}),r.jsx(W,{windowSize:g,children:r.jsx(X,{location:d,navigate:a,isSubPage:e===!0,hideAddressBackButton:o,hideAddressSubTitle:s,addressId:t,addressType:y,dontShowSaveConfirmation:i,bankAccountContext:c,roleMap:x?.loggedInUserRoleMap})})]}):r.jsx(J,{})}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{re as A,Y as t};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import{j as S}from"./liveblocks-D0aPwrEa.js";import{a}from"./sentry-Bh_Qiwsv.js";import{u as Dt,h as Lt,i as Bt,g as Ft,j as v,l as Mt}from"./core-CJLU9TYG.js";import{e4 as Nt,a as $t,T as Vt,e5 as Gt,z as Ht,$ as zt,e6 as qt,e7 as Wt,e8 as Yt,bn as Be,e9 as We,ea as Jt,bm as Ye,a2 as ge,a6 as ce,j as N,eb as me,ec as Zt,ed as Kt,as as Xt,N as es,w as ts,ee as ss,ef as as,at as ns,eg as os,eh as is,ei as rs,ej as ls,p as us,bi as Fe,ek as ds}from"./index-Bac0_7La.js";import{fH as M,gw as R,Uy as cs,a2O as ms,a2P as Ss,jQ as hs,a2Q as ps,jN as fs,a2R as Se,jt as J,jW as Z,jz as Ie,jg as he,je as gs,jY as Is,jI as Je,UH as Me,gy as $,gN as Cs,UG as ks,Ur as Ne,fI as bs,j7 as vs,a2S as Es,gb as Ps,jp as ys,jl as ws,fJ as pe,gi as xs,a2T as Rs,a2U as Ts,a2V as js,gx as Os,gr as $e,k8 as Ve,gt as Ge,gz as As,a2W as He,jZ as Us,ji as _s,jC as Qs,jU as ze,jF as Ds,gA as Ls,gB as Bs,gC as Fs,gD as Ms}from"./zeni-epic-state-DN1FMHPE.js";import{D as Ns,n as V,S as $s,v as Vs}from"./mui-BTK8WNHw.js";import{u as Gs}from"./useAiCfoDashboardSuggestedQuestionsChips-BqbEtXbA.js";import{p as Hs}from"./pathToGoBack-DSav9J7K.js";import{j as zs}from"./routePaths-CFVcdQVU.js";import{u as qs}from"./useTaskManagerPusherEvents-xfS6T84X.js";import"./recharts-BEqM6zw3.js";import"./analytics-K5kCmXhx.js";import"./plaid-BWaZTH4h.js";import"./dnd-BvQSnOXX.js";import"./stripe-cKAAJElX.js";import"./lottie-CRpndHoM.js";import"./lexical-G-6YJUO1.js";import"./pdf-BlY1D9V4.js";import"./utils-DnIJUuGb.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new t.Error().stack;r&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[r]="07f2e715-1016-44df-a888-7306027b9aaa",t._sentryDebugIdIdentifier="sentry-dbid-07f2e715-1016-44df-a888-7306027b9aaa")}catch{}})();const Ws=["claimed","running","succeeded","failed","timeout"],fe=t=>typeof t=="string"&&t!=="",Ze="chat-response-generated";function Ys(t,r){if(r.kind!=="save")return;if(r.fetchState==="In-Progress")return{status:"saving"};if(r.fetchState==="Error")return{status:"failed"};if(r.fetchState!=="Completed")return;const h=R(t).skills.find((s=>s.macroId===r.savedMacroId));return h==null?void 0:{status:"saved",command:h.name}}const Js=Mt((function(t,r){const h=M(t),s=r.isSubmitting,d=h.uiState?.currentChatSessionId,l=d!=null?xs(t.aiCfoState,d):[],i=as(t,{allUsers:r.allUsers,onCardPolicyVendorSearchTextChange:r.onCardPolicyVendorSearchTextChange}),g=Rs(t),p=Ts(t),f=js(t);return{showSampleQuestions:r.sessionFromUrl==="explore"&&h.uiState.currentChatSessionId==null,aiCfoView:h,isSubmitting:s,isNewChatSession:r.sessionFromUrl==="new_chat"||r.sessionFromUrl==="explore",isFullView:!0,tableDownloadEndPoint:`${ns}/tableDownload`,exportDownloadEndPoint:rs(),emailLinkQuestion:r.emailLinkQuestion,autoSubmitEmailLinkQuestion:r.autoSubmitEmailLinkQuestion,onEmailLinkQuestionProcessed:r.onEmailLinkQuestionProcessed,routedInitialQuestionSource:r.routedInitialQuestionSource,routedInitialQuestionSuggestionIndex:r.routedInitialQuestionSuggestionIndex,exploreSuggestedPromptQuestions:r.exploreSuggestedPromptQuestions,exploreSuggestedPromptQuestionsLoading:r.exploreSuggestedPromptQuestionsLoading,isFileUploadEnabled:r.isFileUploadEnabled,isUploadPromoVisible:r.isUploadPromoVisible,onUploadPromoClose:r.onUploadPromoClose,skills:R(t).skills,skillSaveState:Ys(t,f),skillsEnabled:R(t).skillsEnabled,skillsList:R(t).skills,skillsListError:R(t).fetchState==="Error",skillsListLoading:R(t).fetchState==="In-Progress",skillsCanPublish:R(t).canPublish,skillSaving:f.fetchState==="In-Progress",skillSaveError:f.fetchState==="Error",skillVersionHistory:g.macroId!=null?{macroId:g.macroId,versions:g.versions,error:g.fetchState==="Error",loading:g.fetchState==="In-Progress"}:void 0,skillRestoreBody:p.macroId!=null&&p.version!=null?{macroId:p.macroId,version:p.version,instructions:p.instructions,error:p.fetchState==="Error",loading:p.fetchState==="In-Progress"}:void 0,skillDetail:Z(t).detail,skillDetailError:Z(t).fetchState==="Error",skillDetailLoading:Z(t).fetchState==="In-Progress",syntheticAnswers:l,resolveSyntheticAnswerCardTile:is(t),resolveSyntheticAnswerPolicyTile:os(t),...i}}),(function(t,r){const{location:h,currentTenant:s,userId:d,navigate:l,currentChatSessionId:i,allSessionsWithOrderedQuestionAnswers:g,isAiCardCreationEnabled:p,isCardPolicyEnabled:f,setIsAiCfoOpen:L}=r,B=s.tenantEmailDomain;return{onEventReceived:(n,o)=>{if(n===Ze&&typeof o.text=="string"&&typeof o.metadata=="object"){const c=o,j=Ls(c.type),E=c.metadata.chat_session_id??null,{currentChatSession:O,currentQuestionAnswer:G,currentQuestionAnswerSummary:A}=Ye(g,E);j!=="answer"?N.trackAICFOChatResponseGenerated(j,G?.question.questionText??"",c.text,E,ds(A,O),c.metadata.message_id??null):N.trackAICFOChatAnswerGenerated(c.text,G?.question.questionText??"",(c.follow_up_questions?.length??0)>0,!!c.assumptions,!!c.insights,c.visualization!=null,Bs(c.visualization?.type??"")??null,E,c.summarized_title,c.metadata.message_id??null),t(Fs({chatSessionId:c.metadata.chat_session_id,responseType:j,fetchState:{fetchState:"Completed",error:void 0}})),t(Ms({chatSessionId:c.metadata.chat_session_id,answerPayload:c,userId:d}))}},onSubmit:(n,o,c,j,E)=>{n&&Fe(t,n,o,i,g,d,j,c,void 0,E)},onFetchSkills:()=>{t(Je())},onOpenSkill:n=>{t(Ie({macroId:n})),t(Ds({macroId:n}))},onSaveSkill:(n,o)=>{t(ze({draft:n,macroId:o}))},onSaveSkillDraft:n=>{const o=n.displayName?.trim()??"",c=n.name?.trim()??"";t(ze({draft:{name:o.length>0?o:c,description:n.description?.trim()??null,instructions:n.instructions,visibility:"private"}}))},onFetchSkillVersionBody:(n,o)=>{t(Qs({macroId:n,version:o}))},onDeleteSkill:n=>{t(_s({macroId:n}))},onSetSkillVisibility:(n,o)=>{t(Us({macroId:n,visibility:o}))},onCloseSkillDetail:()=>{t(He())},onRunSkill:(n,o)=>{t($()),t($e()),Fe(t,o,"user_input",void 0,g,d,void 0,void 0,void 0,n),t(He())},updateCurrentInput:n=>{t(Ge(n))},onStopSubmit:()=>{},onUpdateScrollYOffset:n=>{t(As(n))},onSelectSampleQuestion:()=>{},onBackClick:()=>{l(-1)},onCloseClick:()=>{const n=ge(h.state?.pathnameStackToGoBack),o=n.poppedPathname??Hs(1);l(o,{state:{...h.state,pathnameStackToGoBack:n.newStack}}),t(Ge(""))},togglePageView:()=>{const n=ge(h.state?.pathnameStackToGoBack),o=n.poppedPathname??`/${s.tenantEmailDomain}/dashboard`;l(o,{state:{...We(h.state),pathnameStackToGoBack:n.newStack,message:"open_ai_cfo_drawer"}}),L(!0)},onCopy:()=>{},onThumbsUp:(n,o)=>{i!=null&&o?.messageId!=null&&t(Ve(i,o.messageId,"positive",o.questionText,o.answerText))},onThumbsDown:(n,o)=>{i!=null&&o?.messageId!=null&&t(Ve(i,o.messageId,"negative",o.questionText,o.answerText))},onTogglePageView:()=>{l(-1)},onNewChatClick:()=>{t($()),i!=null&&t($e());const n=us(h.state?.pathnameStackToGoBack,h.pathname);l(`/${s.tenantEmailDomain}/ai-cfo/new_chat`,{state:{pathnameStackToGoBack:n.slice(0,-1),referrer:"Sidebar"}})},onToggleCotCollapsed:(n,o)=>{t(Os({questionAnswerId:n,isCollapsed:o}))},onMenuClick:r.onMenuClick,...ls(t,{isAiCardCreationEnabled:p,isCardPolicyEnabled:f,currentChatSessionId:i,onAfterCardsCreationSubmit:()=>{L(!0),l(`/${B}/cards`,{state:{...h.state}})},onAfterCardPolicySubmit:()=>{L(!0),l(`/${B}/cards/policy`,{state:{...h.state}})}})}}))(ts(ss)),ka=({isFileUploadEnabled:t})=>{const r=Nt(),{setIsAiCfoOpen:h}=$t(),s=Dt(),d=Lt(),{session_id:l}=Bt(),i=Ft(),g=new URLSearchParams(i.search).get("routine")??void 0,[p,f]=a.useState(!1),L=v((e=>M(e).uiState.isSkillsBrowserOpen===!0)),B=v((e=>R(e).skillsEnabled)),n=v((e=>M(e).uiState.isRoutinesBrowserOpen===!0)),o=v((e=>cs(e))),c=v((e=>ms(e))),j=v((e=>Ss(e))),[E,O]=a.useState(void 0),[G,A]=a.useState(!1),[Ke,Ce]=a.useState(void 0),Xe=a.useCallback((()=>{Ce(void 0),O(void 0),A(!0)}),[]),et=a.useCallback((e=>{O(e),A(!0)}),[]),tt=a.useCallback((()=>{O(void 0),A(!1)}),[]),st=a.useCallback((e=>{s(hs({draft:e,...E!=null&&{scheduleId:E.scheduleId}})),O(void 0),A(!1)}),[s,E]),P=g,ke=o.routines.find((e=>e.scheduleId===P)),C=v((e=>ps(e))),at=a.useCallback((e=>{s(fs({scheduleId:e.scheduleId}))}),[s]);a.useEffect((()=>{s(P!=null?J({scheduleId:P}):Se())}),[s,P]);const F=ke?.macroId,nt=v((e=>Z(e))),be=F!=null&&F!==""&&nt.fetchState==="Not-Started";a.useEffect((()=>{be&&F!=null&&s(Ie({macroId:F}))}),[s,be,F]);const ot=v((e=>M(e).uiState.currentChatSessionId))??l,k=o.routines.find((e=>e.scheduleId===g))??o.routines.find((e=>e.scheduleId===Vt(ot))),T=k?.scheduleId??null,[ve,it]=a.useState(!0);a.useEffect((()=>{T!=null&&s(J({scheduleId:T}))}),[s,T]);const Ee=C.runs.some((e=>e.status==="claimed"||e.status==="running"))===!0;a.useEffect((()=>{if(P==null||Ee!==!0)return;const e=window.setInterval((()=>{s(J({scheduleId:P})),s(he())}),5e3);return()=>window.clearInterval(e)}),[s,Ee,P]);const rt=a.useCallback((e=>{Ce(e),O(void 0),A(!0)}),[]),lt=a.useCallback((e=>{s(gs({scheduleId:e.scheduleId}))}),[s]),ut=a.useCallback(((e,m)=>{s(Is({enabled:m,scheduleId:e.scheduleId}))}),[s]);a.useEffect((()=>{n&&s(he())}),[s,n]);const Pe=v((e=>R(e).skills)),K=a.useMemo((()=>Pe.map((e=>({macroId:e.macroId,name:e.displayName??e.name})))),[Pe]),dt=a.useCallback((e=>{s(Ie({macroId:e}))}),[s]),X=a.useCallback((()=>{s(Je()),s(Me())}),[s]),ct=a.useCallback((()=>{s($())}),[s]),{allUsers:mt,isAiCardCreationEnabled:St,isCardPolicyEnabled:ht,onCardPolicyVendorSearchTextChange:pt}=Gt();a.useEffect((()=>{s(Cs())}),[s]);const I=v((e=>M(e))),w=Ht.getSignedInUser();a.useEffect((()=>l==="routines"?(s($()),void s(ks())):l==="skills"?(s(Se()),s(Ne()),void s(Me())):(T==null&&s(Se()),s(Ne()),void s($()))),[s,T,g,l]);const ft=zt(),U=Xt(ft),b=v((e=>bs(e))),u=I.uiState.currentChatSessionId,y=b.tenantEmailDomain,D=y!=null&&y!=="",ee=a.useCallback((e=>{D&&d(`/${y}/ai-cfo/routines?routine=${encodeURIComponent(e.scheduleId)}`)}),[D,d,y]),te=a.useCallback((()=>{D&&d(`/${y}/ai-cfo/routines`)}),[D,d,y]),se=a.useCallback(((e,m)=>{const _=e.sessionId??C.sessionId;_!=null&&D&&d(`/${y}/ai-cfo/${_}?routine=${encodeURIComponent(m)}`)}),[D,d,C.sessionId,y]),gt=a.useMemo((()=>k==null?void 0:{error:C.fetchState==="Error",kind:"routineRuns",loading:C.fetchState==="In-Progress"||C.fetchState==="Not-Started",routineName:k.name,schedule:qt(k),skillName:k.isAdHoc===!0?void 0:K.find((e=>e.macroId===k.macroId))?.name,onOpenSkill:k.isAdHoc===!0?void 0:X,runs:C.runs,tzName:k.tzName,unreadCount:k.unreadRuns,open:ve,onToggle:()=>it((e=>!e)),onOpenRun:e=>se(e,k.scheduleId),onOpenRoutine:()=>ee(k),onOpenRoutines:te}),[X,te,ee,se,ve,k,C.fetchState,C.runs,K]),{handleUploadPromoClose:It,isUploadPromoVisible:Ct}=Wt({isFileUploadEnabled:t,tenantEmailDomain:y}),ae=Yt({currentTenant:b,currentChatSessionId:u,aiCfoView:I,skillsEnabled:B,onCloseSkills:ct,onOpenSkills:X}),{isSuggestedQuestionsLoading:kt,suggestedPromptQuestions:bt}=Gs(),H=i.state,z=H?.aiCfoInitialQuestion,ye=!!H?.aiCfoShouldSubmit;a.useEffect((()=>{const e=i.state;if(e?.[Be]!==!0)return;f(!0);const m={...e};delete m[Be],d(i,{replace:!0,state:m})}),[i.pathname,i.search,i.state,d]);const[vt,ne]=a.useState(null),[Et,oe]=a.useState(!1),[Pt,ie]=a.useState(void 0),[yt,re]=a.useState(void 0),we=a.useRef(!1);a.useEffect((()=>{if(!we.current&&z!=null&&z!==""){const e=i.state;ne(z),oe(ye),ie(e?.aiCfoInitialSubmissionSource!=null?e.aiCfoInitialSubmissionSource:void 0);const m=e?.aiCfoSuggestionIndex;re(typeof m=="number"?m:void 0),we.current=!0}}),[z,ye,i.state]);const wt=a.useCallback((()=>{ne(null),oe(!1),ie(void 0),re(void 0),d(i.pathname,{replace:!0,state:We(i.state)})}),[i.pathname,i.state,d]),xe=a.useMemo((()=>new URLSearchParams(i.search)),[i.search]),Re=xe.get("ref")??H?.aiCfoRef,le=xe.get("emailRefId")??H?.aiCfoEmailRefId,Te=a.useRef(!1);a.useEffect((()=>{Te.current||Re!=="month-end-email"||le==null||u!=null||w==null||(s(vs("controller",w.userId,le,"MONTH_END_EMAIL")),Te.current=!0)}),[Re,le,u,s,w]);const q=I.uiState.lastContextMessage;a.useEffect((()=>{q!=null&&q!==""&&u!=null&&(ne(q),oe(!0),ie(void 0),re(void 0),s(Es()))}),[q,u,s]);const xt=b.masterTOSInfo,x=xt?.isMasterTOSAccepted??!1,{visitedSessions:je}=Jt(u),W=I.fetchState,Y=I.uiState.chatSessionsNextPageToken.hasMore||!I.uiState.chatSessionsFirstPageFetched,Oe=u!=null?I.fetchChatSessionHistoryByChatSessionId?.[u]?.fetchState??"Not-Started":"Not-Started",Ae=u==null||(I.uiState.chatHistoryNextPageToken[u]?.hasMore??!0),Ue=I.allSessionsWithOrderedQuestionAnswers,{currentSessionQuestionAnswers:Rt}=Ye(Ue,u),Tt=Rt.length===0;a.useEffect((()=>{x||U||d("../dashboard",{state:{...i.state,message:"open_ai_cfo_drawer"}})}),[x,U,d,i.state]);const jt=a.useCallback((()=>{const e=ge(i.state?.pathnameStackToGoBack),m=b.tenantEmailDomain;d(e.poppedPathname??(m!=null?`/${m}/dashboard`:".."),{state:{...i.state,pathnameStackToGoBack:e.newStack}})}),[b.tenantEmailDomain,i.state,d]),_e=a.useRef(void 0),Qe=a.useRef(void 0);a.useEffect((()=>{const e=l!==_e.current,m=u!==Qe.current;_e.current=l,Qe.current=u,l!==u&&(!e||l==null||zs(l)?m&&u!=null&&d(`../ai-cfo/${u}`,{state:{...i.state}}):s(Ps({sessionId:l,agentId:"controller"})))}),[u,l]);const Ot=a.useMemo((()=>({events:je.map((e=>`private-encrypted-chat-${e}.${Ze}`)),eventCallback:(e,m,_)=>_.onEventReceived(e,m)})),[je]);a.useEffect((()=>{W!=="In-Progress"&&Y&&s(ys())}),[W,Y,s]),a.useEffect((()=>{u!=null&&Oe!=="In-Progress"&&Ae&&w!=null&&(l===u||W==="Completed"&&!Y)&&s(ws(u,w.userId))}),[Oe,W,Ae,Y,u,w,l,s]);const ue=w?.userId,At=a.useMemo((()=>{return ue==null?[]:[(e=ue,`private-encrypted-routines-${e}.routine-run-updated`)];var e}),[ue]),De=a.useCallback((e=>{const m=e!=null&&(e===P||e===T);(n||m)&&s(he()),m&&s(J({scheduleId:e}))}),[s,n,T,P]);qs({events:At,onSubscribed:()=>De(P??T),onEvent:(e,m)=>{const _=(de=>{if(de==null||typeof de!="object")return null;const Q=de;return fe(Q.schedule_id)&&fe(Q.run_id)?{scheduleId:Q.schedule_id,runId:Q.run_id,status:Ws.find((Qt=>Qt===Q.status))??null,finishedAt:fe(Q.finished_at)?Q.finished_at:null}:null})(m);_!=null&&De(_.scheduleId)}});const Le=e=>e.trackAICFOOnboardingScreenStateChanged("open","first_visit");if(w==null||l==null)throw Error("Can't access AI Controller page without signing in...");const Ut=u!=null&&I.responseStateByChatSessionId?.[u]?.answer?.fetchState==="In-Progress";if(!x&&U)return S.jsxs(Ks,{children:[S.jsx(ce,{analytics:N,onLoad:Le}),ae.drawerElement,S.jsx(Xs,{children:S.jsx(qe,{children:S.jsx(me,{isTOSAccepted:!1,acceptMasterTOSState:I.masterTOSAcceptanceState,onCloseClick:jt,onCompleteClick:()=>{b.userRoleId!=null&&s(pe(b.userRoleId))}})})})]});const _t=S.jsxs(S.Fragment,{children:[p&&!x?S.jsx(ce,{analytics:N,onLoad:Le}):null,S.jsx(me,{isTOSAccepted:x,acceptMasterTOSState:I.masterTOSAcceptanceState,showHeader:!1,togglePageView:x?()=>f(!1):void 0,onCloseClick:()=>f(!1),onCompleteClick:()=>{x||b.userRoleId==null||s(pe(b.userRoleId)),f(!1)}})]});return S.jsxs(S.Fragment,{children:[S.jsxs(Zs,{children:[S.jsx(ce,{analytics:N,onLoad:e=>e.trackPageLoaded(es.Event.aiCFOPage)}),U&&ae.drawerElement,S.jsx(Js,{answerExportEndPoint:r,...Ot,currentChatSessionId:u,allSessionsWithOrderedQuestionAnswers:Ue,allUsers:mt,isAiCardCreationEnabled:St,isCardPolicyEnabled:ht,openOnboardingPage:()=>f(!0),userId:w.userId,setIsAiCfoOpen:h,navigate:d,sessionFromUrl:l,location:i,isSubmitting:Ut,isEmptyChatWithSession:Tt,currentTenant:b,emailLinkQuestion:vt??void 0,autoSubmitEmailLinkQuestion:Et,onEmailLinkQuestionProcessed:wt,routedInitialQuestionSource:Pt,routedInitialQuestionSuggestionIndex:yt,onCardPolicyVendorSearchTextChange:pt,onMenuClick:U?ae.open:void 0,isFileUploadEnabled:t,isUploadPromoVisible:Ct,onUploadPromoClose:It,exploreSuggestedPromptQuestions:bt,exploreSuggestedPromptQuestionsLoading:kt,isSkillsOpen:L,isRoutinesOpen:n,routineCanCreate:j,routineEditing:E,routineEditorOpen:G,routineListError:o.fetchState==="Error",routineListLoading:o.fetchState==="In-Progress",routineMaxRoutines:o.maxRoutines,routineSaveError:c.fetchState==="Error",routineSaving:c.fetchState==="In-Progress",routineSchedulableSkills:K,routines:o.routines,onRoutineCreate:Xe,onRoutineDelete:lt,routineHistoryError:C.fetchState==="Error",routineHistoryLoading:C.fetchState==="In-Progress",chatSidePanel:gt,routineDetail:ke,routineRunningScheduleId:c.runningScheduleId,routineRuns:C.runs,onRoutineEdit:et,onRoutineOpenRun:(e,m)=>se(m,e.scheduleId),onRoutineRun:at,onRoutineCloseDetail:te,onRoutineDraft:rt,routineDraftPrompt:Ke,onRoutineOpenDetail:ee,onRoutineEditorCancel:tt,onRoutineLoadSkillInstructions:dt,onRoutineSave:st,onRoutineSetEnabled:ut,isCreateSkillEnabled:B,promoDismissalScope:y}),p&&U?S.jsx(Ns,{anchor:"right",open:p,transitionDuration:250,PaperProps:{component:ea,style:{width:"100%"}},slotProps:{backdrop:{style:{backgroundColor:"transparent",cursor:"pointer"}}},onClose:()=>f(!1),children:S.jsx(qe,{onClick:e=>e.stopPropagation(),children:S.jsx(me,{isTOSAccepted:x,acceptMasterTOSState:I.masterTOSAcceptanceState,onCloseClick:()=>f(!1),onCompleteClick:()=>{x||b.userRoleId==null||s(pe(b.userRoleId)),f(!1)}})})}):null]}),p&&!U?S.jsx(Zt,{open:p,onClose:()=>f(!1),children:S.jsx(Kt,{children:_t})}):null]})},qe=V($s)`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
`,Zs=V.div`
|
|
6
|
-
height: 100vh;
|
|
7
|
-
width: 100%;
|
|
8
|
-
`,Ks=V.div`
|
|
9
|
-
height: 100vh;
|
|
10
|
-
width: 100%;
|
|
11
|
-
display: flex;
|
|
12
|
-
flex-direction: column;
|
|
13
|
-
min-height: 0;
|
|
14
|
-
`,Xs=V.div`
|
|
15
|
-
flex: 1;
|
|
16
|
-
min-height: 0;
|
|
17
|
-
display: flex;
|
|
18
|
-
flex-direction: column;
|
|
19
|
-
`,ea=V(Vs)`
|
|
20
|
-
box-shadow: ${({theme:t})=>t.colors.elevation2};
|
|
21
|
-
color: ${({theme:t})=>t.colors.grey4};
|
|
22
|
-
`;export{ka as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as m}from"./liveblocks-D0aPwrEa.js";import{a as g}from"./sentry-Bh_Qiwsv.js";import{h as w,u as x,g as T,i as k,j as O,l as E}from"./core-CJLU9TYG.js";import{z as N,bq as F,a6 as P,j as V,N as j,n as b,br as L,ac as A,aE as U,p as B}from"./index-Bac0_7La.js";import{fI as D,gL as M,BY as Y,gG as _,c9 as G,YI as R,bn as z,v2 as q,uS as H,mD as J,oc as S,YJ as Z,bF as $,cF as C,on as K,ox as Q}from"./zeni-epic-state-DN1FMHPE.js";import"./mui-BTK8WNHw.js";import{d as W}from"./routePaths-CFVcdQVU.js";import{M as X}from"./MobileAppDrawer-Gq4sfjI3.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new a.Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="a6a1b855-0dc6-4b4a-b6dc-51f07e97ccc6",a._sentryDebugIdIdentifier="sentry-dbid-a6a1b855-0dc6-4b4a-b6dc-51f07e97ccc6")}catch{}})();const ee=E((function(a){const t=_(a),i=N.getSignedInUser(),p=D(a),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(a.companyConfigState),n=a.countryListState?.byCountryListCode?.nationalityCountryList?.countries??[];return{isCompanyVerified:t.companyView?.company?.company?.companyBillPayInfo?.companyVerificationStatus?.code==="verified",companyPassportView:t,allIndustries:e.companyIndustries??[],allNationalityCountries:n,isDisabled:f,authParams:l,filesEndPoint:`${A.fileMicroServiceBaseUrl}`,isZeniUser:z(i)}}),(function(a,t){const{companyId:i,currentTenant:p,navigate:c,location:l}=t,{tenantEmailDomain:f}=p;return{onScheduleClick:e=>{let n=e.href;n.includes("http")||(n="https://".concat(n)),window.open(n,"_blank")},onSaveAll:()=>{a(Q())},onAddressClick:e=>{const n=W(f,e),o=B(l.state?.pathnameStackToGoBack,l.pathname);c(n,{state:{pathnameStackToGoBack:o}})},onResetClick:()=>{a(K({companyId:i}))},onBackClick:()=>{c("../")},onCompanyDetailsChanged:e=>{const{companyInfo:n,incInfo:o,taxDetails:r,zeniFinanceTeam:d}=e,{website:u}=n,{meetingLink:y}=d,{incDate:s}=o,{taxesFiledYears:h}=r,v={companyInfo:{...n,website:u!=""&&u!=null?C(u):void 0,meetingLink:y!=""&&y!=null?C(y):void 0,industry:n.industry.selectedOption,companyIndustryType:n.companyIndustryType?.selectedOption??void 0,companySubIndustry:n.companySubIndustry?.selectedOption??void 0,businessModel:n.businessModel.selectedOption??"",companySourceOfFunds:n.companySourceOfFunds?.selectedOption,companySourceOfFundsDescription:n.companySourceOfFundsDescription??void 0,countriesOfOperations:n.countriesOfOperations?.selectedOptions?.map((I=>I.length===2?I:U(I)))??[],transactionVolume:n.transactionVolume?.selectedOption??void 0,transactionVolumeDescription:n.transactionVolumeDescription??void 0,regulatedStatus:n.regulatedStatus??void 0,regulatedStatusDescription:n.regulatedStatusDescription??void 0,usNexus:n.usNexus??void 0,usNexusTypes:n.usNexusTypes?.selectedOptions??[],purposeOfAccount:n.purposeOfAccount?.selectedOption??void 0,purposeOfAccountDescription:n.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]}};a(S({companyDetails:v}))},onPrimaryContactDetailsUpdated:e=>{a(S({primaryContact:{userId:e.userId,email:e.email.trim(),firstName:e.name.firstName,lastName:e.name.lastName}}))},onNewCompanyOfficerAdded:e=>{a(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=>{a(Z(e))},onCompanyOfficerUpdated:e=>{a(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=>{a(J({files:e}))},onDeleteFile:e=>{a(H(e))},onEditFileName:(e,n)=>{a(q(e,n.split(".")[0]))}}}))(L);function de(){const a=w(),t=x(),i=T(),{tenantEmailDomain:p}=k(),[c,l]=g.useState(!1),[f,e]=g.useState(!1),n=O((s=>s.companyViewState.passportView.fetchState)),o=O((s=>s.companyConfigState.fetchState)),r=O((s=>D(s))),d=r.companyId??N.getSignedInUserTenant(p)?.companyId;if(N.getSignedInUser()==null)throw Error("Can't access company details page without signing in...");g.useEffect((()=>{c||n!=="Not-Started"||d==null||(l(!0),t(M(d)))}),[c,n,d,t]),g.useEffect((()=>{o==="Not-Started"&&t(Y())}),[o,t]);const u=s=>{e(s)},y=n==="Not-Started"||n==="In-Progress"||o==="Not-Started"||o==="In-Progress";return d!=null&&n==="Error"?m.jsx(F,{onGoHome:()=>a("../",{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:a,location:i,isLoading:y,currentTenant:r,isSettings:b(i),onClickMenuIcon:()=>{u(!0)}})]})}export{de as C};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-D0aPwrEa.js";import{z as m}from"./index-Bac0_7La.js";import{g as n}from"./QBOConnectionScreen--OQu_pq8.js";import"./sentry-Bh_Qiwsv.js";import{g as p,N as a}from"./core-CJLU9TYG.js";import"./zeni-epic-state-DN1FMHPE.js";import"./recharts-BEqM6zw3.js";import"./mui-BTK8WNHw.js";import"./analytics-K5kCmXhx.js";import"./plaid-BWaZTH4h.js";import"./dnd-BvQSnOXX.js";import"./stripe-cKAAJElX.js";import"./lottie-CRpndHoM.js";import"./lexical-G-6YJUO1.js";import"./pdf-BlY1D9V4.js";import"./utils-DnIJUuGb.js";import"./empty-CYTi1vUC.js";import"./pdf-lib-DubKZfxI.js";import"./index-DqcV3YMG.js";import"./url-CqXRBT9H.js";import"./index-C5DdgWE0.js";import"./decodeURIComponentSafe-Cai8T7ud.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-D0aPwrEa.js";import{h as w,g as C,j as h,l as A,i as V}from"./core-CJLU9TYG.js";import{Zl as k,Zs as W,gJ as J,gI as L,gH as M,kT as X,Xj as Y,uV as q,fI as B,YU as D,kR as T,Zm as v,Zv as F,kP as G,la as j}from"./zeni-epic-state-DN1FMHPE.js";import{bL as K,$ as R,W as N,z as Z,a2 as p,A as S,a5 as U,bM as Q,E as H,bN as ee,p as te}from"./index-Bac0_7La.js";import{u as O,n as z}from"./mui-BTK8WNHw.js";import"./sentry-Bh_Qiwsv.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]="49b1cd77-864f-4a97-ab48-8ab9382c3446",e._sentryDebugIdIdentifier="sentry-dbid-49b1cd77-864f-4a97-ab48-8ab9382c3446")}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(v())},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(v())}}}))(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(S.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:y}=c(S.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 ve(e,t,a){return E(e,"ach",t,a)}function Se(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(v())},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(v())}}}))(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(S.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:y}=i(S.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,Se as d,he as g,ge as i,ve as v};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-D0aPwrEa.js";import{a as d}from"./sentry-Bh_Qiwsv.js";import{h as B,u as A,g as F,i as X,j as l,N as W,l as q,n as N,o as O}from"./core-CJLU9TYG.js";import{Xo as _,fI as M,WF as R,n3 as Y,SF as k,Xt as $,Xi as z,m3 as K,SG as P,WK as L,WL as V,Xk as H,Xj as J}from"./zeni-epic-state-DN1FMHPE.js";import{b6 as Q,j as U,a2 as Z,p as tt}from"./index-Bac0_7La.js";import"./mui-BTK8WNHw.js";import{d as S}from"./decodeURIComponentSafe-Cai8T7ud.js";import{w as et}from"./withTransactionSidePanel-BOFkm0Uk.js";import{f as at,c as nt}from"./routePaths-CFVcdQVU.js";import"./recharts-BEqM6zw3.js";import"./analytics-K5kCmXhx.js";import"./plaid-BWaZTH4h.js";import"./dnd-BvQSnOXX.js";import"./stripe-cKAAJElX.js";import"./lottie-CRpndHoM.js";import"./lexical-G-6YJUO1.js";import"./pdf-BlY1D9V4.js";import"./utils-DnIJUuGb.js";import"./useAskAiCfoHostNavButtonProps-CkY97uj-.js";import"./TransactionDetailScreen-DGElbhCa.js";import"./useInitialThreadRequest-Byaj949Q.js";import"./expenseAutomationHelper-AFTT-GAh.js";import"./stripSplatSuffix-Ba8pyF0x.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new a.Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="7fa5349f-926d-4b0b-bb5b-c19c301384b4",a._sentryDebugIdIdentifier="sentry-dbid-7fa5349f-926d-4b0b-bb5b-c19c301384b4")}catch{}})();const ot=q((function(a,t){const e=t.entity,o=$(a,t.entity,"EntityDetail");return{selectedEntity:e,autoCompleteData:{autoCompleteText:e.name,entityAutoCompleteView:z(a,"common")},trendWithTransactionsReport:o,analytics:U,isAccountingClassesEnabled:K(a)}}),(function(a,t){return{onTransactionItemClick:e=>{if(t.openTransactionPanel)return void t.openTransactionPanel(e.id,e.type);const o=`${nt(e,t.tenantEmailDomain)}`,c=tt(t.location.state?.pathnameStackToGoBack,t.location.pathname);t.navigate(o,{state:{pathnameStackToGoBack:c}})},autoCompleteActions:{onAutoCompleteInputChange:e=>{e.trim().length>=2?a(H({searchString:e,searchOrigin:"common"})):e.trim().length===0&&a(J("common"))},onAutoCompleteEntity:e=>{const o=at(e,t.tenantEmailDomain);a(L()),a(V()),t.resetTrendIsFetchedStates(),t.navigate(o,{replace:!0,state:{pathnameStackToGoBack:t.location.state?.pathnameStackToGoBack}})},onCancelAutoComplete:()=>{const e=Z(t.location.state?.pathnameStackToGoBack),o=e.poppedPathname??I();t.navigate(o,{state:{pathnameStackToGoBack:e.newStack}})}},onTrendSelectedPeriodChange:e=>{if(t.closeSidePanel?.(),e==null)t.defaultTransactionTimePeriod!=null&&a(P(t.entity,"EntityDetail",{timeframe:"quarter",timePeriod:t.defaultTransactionTimePeriod}));else{const o=e.currentTimePeriod==null?e.addTimePeriod:{startDate:e.addTimePeriod.startDate,endDate:e.currentTimePeriod.endDate};a(k(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:e.addTimePeriod})),a(P(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:o}))}}}}))(Q),it=et((function({entityType:a,...t}){const e=B(),o=A(),c=F(),[m,T]=d.useState(!1),[h,b]=d.useState(!1),{tenantEmailDomain:C,entityIdEncoded:j,entityNameEncoded:x}=X(),r=S(j??""),p=S(x??""),f=rt(r,p),v=[r,p].filter((n=>n!=null)),i={name:p,id:r,type:a,zeniId:r,qboId:r},D=l((n=>_(n.customerIncomeState,n.vendorExpenseState,n.trendState,i,"quarter"))),w=l((n=>M(n).company?.companyInfo.firstMonthOfFY??1)),u=l((n=>R(n.trendWithTransactionsState,i,"EntityDetail")));d.useEffect((()=>{m===!1&&f===!0&&(T(!0),o(Y(i)))}),[m,f,i]);const g=l((n=>n.trendState.fetchState)),E=u?.selectedPeriod?.timePeriod??D,G=(function(n,y){return n!=null&&y!=null?{startDate:n.startDate,endDate:y?.endDate}:y})(u?.selectedPeriod?.timePeriod,D);return d.useEffect((()=>{m===!0&&h===!1&&g==="Completed"&&(b(!0),E!=null&&o(k(i,"EntityDetail",{timeframe:u?.selectedPeriod?.timeframe??"quarter",timePeriod:E})))}),[m,h,g]),f?s.jsx(ot,{firstMonthOfFY:w,tenantEmailDomain:C,location:c,navigate:e,entity:i,defaultTransactionTimePeriod:G,resetTrendIsFetchedStates:()=>{T(!1),b(!1)},...t}):s.jsx(W,{to:I(v.length)})})),rt=(a,t)=>t!=null&&t.length>0&&a!=null&&a.length>0,I=(a=2)=>{let t="../";for(let e=0;e<a;e++)t=`${t}../`;return t};function wt({entityType:a}){return s.jsx(N,{children:s.jsx(O,{path:"/:entityIdEncoded/:entityNameEncoded/*",element:s.jsx(it,{entityType:a})})})}export{wt as EntityDetailRoutes,wt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-D0aPwrEa.js";import{a as r}from"./sentry-Bh_Qiwsv.js";import{au as d,av as l,B as p,a2 as m}from"./index-Bac0_7La.js";import"./mui-BTK8WNHw.js";import b from"./NotFoundScreen-DVwEy2Nc.js";import{h as u,g as c}from"./core-CJLU9TYG.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new a.Error().stack;e&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[e]="f295f1df-9143-40bb-a50f-a839aa60ebfa",a._sentryDebugIdIdentifier="sentry-dbid-f295f1df-9143-40bb-a50f-a839aa60ebfa")}catch{}})();const _=()=>{const a=u(),e=c(),t=r.useCallback((()=>{window.open("https://www.zeni.ai/demo/request","_blank")}),[]),f=r.useCallback((()=>{(()=>{const n=m(e.state?.pathnameStackToGoBack),i=n.poppedPathname??k();a(i,{state:{pathnameStackToGoBack:n.newStack}})})()}),[]),o=d(e.pathname);return o!=null?s.jsx(l,{menuItem:p(o),onDemoClick:t,onGoBack:f}):s.jsx(b,{})},k=(a=2)=>{let e="../";for(let t=0;t<a;t++)e=`${e}../`;return e};export{_ as F};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{j as u}from"./liveblocks-D0aPwrEa.js";import{a as g}from"./sentry-Bh_Qiwsv.js";import{u as O,g as _,h as w,t as M,j as l,N as U}from"./core-CJLU9TYG.js";import{z as r,G as N,K as P,j as V,N as A,X as R,Y,Q as G}from"./index-Bac0_7La.js";import{fI as K,Uo as Q,UR as W,UI as X,gl as $,gn as q,UN as B,gY as H,dk as J,US as Z,UT as ee}from"./zeni-epic-state-DN1FMHPE.js";import{u as te,n as ne}from"./mui-BTK8WNHw.js";import{u as se}from"./useDeviceId-BqYCCa6B.js";import{f as ae}from"./analyticsHelper-Cb3EUyBw.js";import{t as ie}from"./getLocaleForTenant-Bc7hFfBK.js";import"./recharts-BEqM6zw3.js";import"./analytics-K5kCmXhx.js";import"./plaid-BWaZTH4h.js";import"./dnd-BvQSnOXX.js";import"./stripe-cKAAJElX.js";import"./lottie-CRpndHoM.js";import"./lexical-G-6YJUO1.js";import"./pdf-BlY1D9V4.js";import"./utils-DnIJUuGb.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]="1ad9991a-7786-454e-94e4-52b0c49b9bff",t._sentryDebugIdIdentifier="sentry-dbid-1ad9991a-7786-454e-94e4-52b0c49b9bff")}catch{}})();const T=(t,a)=>t!=null&&t.length>0&&a==="magic_links";function Te(){const t=O(),a=_(),m=w(),[k]=M(),n=k.get("token"),p=k.get("stytch_token_type"),f=r.getMagicLinkCodeVerifier(),i=se(),{otpChallenge:d,twoFAPhoneNumber:C,magicLinkEmail:c,verifyDeviceFetchState:x,resendVerifyDeviceOTPFetchState:z}=l((e=>e.tenantState)),S=l((e=>e.tenantState.fetchState)),y=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=>K(e))),b=l((e=>Q(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"&&y!=="Completed"||s?.zeniSessionId==null||o==null||(n!=null&&r.saveLastUsedMagicLinkToken(n),r.saveSignedInUserWithSession(s,s.zeniSessionId),r.saveSignedInUserTenants(X(b.tenantsInOrder),s.zeniSessionId),$(s.userId,s.zeniSessionId,o.tenantId),t(q(o.tenantId)),r.saveActiveTenantDomainForUser(o.tenantEmailDomain),t(B("Completed")),N.updateAppLocaleID(ie(o)),ae(s,o,v,void 0,b.tenantsInOrder),H().then((()=>{const e=G();e!=null&&P(e)})),setTimeout((()=>{V.trackLogin(A.Event.loginSuccess,"email",J(o.productSettings))}),2e3))}),[I,S,y,s,o,b,v,a.state,t]);const E=g.useCallback((()=>{m("/signin/auth")}),[m]),j=g.useCallback((()=>{i!=null&&d!=null&&c!=null&&t(Z(i,c,d))}),[i,d,t,c]),F=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(R,{phoneNumber:C,verifyOtpFetchState:x.fetchState,resendVerifyDeviceOTPFetchState:z,onResendOtp:j,onVerifyOtp:F,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(Y,{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-D0aPwrEa.js";import{a as f}from"./sentry-Bh_Qiwsv.js";import{u as te,j as t,i as $e,g as Ge,h as Ue,q as _}from"./core-CJLU9TYG.js";import{fI as ne,Up as Me,Uq as se,gc as xe,fH as Ne,Uz as Re,Us as Pe,Ut as Ve,q3 as je,gp as Le,Uw as b,UB as Oe,UC as Q,gq as Ze,UD as qe,Ev as ze,h5 as He,cW as We,UE as Ye,gb as Je,gr as Ke}from"./zeni-epic-state-DN1FMHPE.js";import{w as Qe,i as Xe,Z as ea,W as aa,c as ta,f as na,u as sa,A as c,g as oa,e as ia,z as ra,d as da,k as ca,M as la,o as ua,l as fa,n as X,L as ma,C as ha,D as ba,p as S,j as ee,s as pa,R as ae,x as ga,y as Sa}from"./index-Bac0_7La.js";import{D as Ea}from"./mui-BTK8WNHw.js";import{u as ka}from"./InboxNotificationsProvider-B5M0qdMl.js";import{u as Ca}from"./useTaskManagerAccess-CUawSS4F.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]="699bef94-d091-4857-a368-b14fa1a45ba1",l._sentryDebugIdIdentifier="sentry-dbid-699bef94-d091-4857-a368-b14fa1a45ba1")}catch{}})();const Ta=Qe((({isAppContentDrawerOpen:l,handleDrawerToggle:i})=>{const{tenantEmailDomain:s}=$e(),a=Ge(),E=ea(),n=Ue(),F=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(Re),G=$.uiState.currentChatSessionId,C=na(),{setLoading:re}=sa(),[w,U]=f.useState(void 0),A=_("/:tenantEmailDomain/dashboard")!==null,M=_("/:tenantEmailDomain/reports")!==null,m=_("/: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=>Pe(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 D=t((e=>e.tenantState)),fe=t((e=>D.fetchState==="Completed"?Le(e):[])),g=t((e=>e.expenseAutomationViewState.selectedPeriodByTenantId)),{isFeatureEnabled:me}=d(c.isApAgingFeatureEnabled),{isFeatureEnabled:he}=d(c.isArAgingFeatureEnabled),R=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)),P=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:Z,hasFetchedAll:q,fetchMore:Te}=ka();f.useEffect((()=>{const e=setTimeout((()=>Te?.()),0);return()=>clearTimeout(e)})),f.useEffect((()=>{if(O===!1&&Z===!1&&q===!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,Z,q]),f.useEffect((()=>{C&&k&&!m&&j.fetchState==="Not-Started"&&F.tenantId!=null&&r(Oe("task_manager","dashboard"))}),[C,k,m,j.fetchState,F.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?Ze(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"),R===!1&&h.push("expense_automation_card");const W=t((e=>qe(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,De=p?.userEmail!=null&&N.fetchState==="Completed"&&Ye(N.notificationSettings,p.userEmail,x,o,k),J=da(),_e=J&&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:D.currentTenantId??"",tenants:D.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:De,notificationCountDetails:Ie,isExpenseAutomationEnabledForUser:R,selectedMenu:ua(a),rewardsConfiguration:{isRewardsTabVisible:T,isRewardsAnimated:ve,rewardsPlan:v.rewardsPlan},isAiCfoAccessEnabled:J,onNotificationIconClick:()=>{i(!1);let e=P===0&&V>0?"notifications/comments":"notifications/tasks";X(a)&&(e=P===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),K=e.type,Be=ae(K)&&K!=="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 Fe=ga(e.type);Sa(e.type)?(G!=null&&r(Ke()),n(`/${s}/ai-cfo/${e.type}`,{state:{pathnameStackToGoBack:u.slice(0,-1),referrer:"Sidebar"}})):n(`/${s}/${Fe}`,{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:_e,aiCfoView:$,isOnDashboard:A,updateCurrentChatSessionId:e=>{r(Je({sessionId:e,agentId:"controller"})),n(`/${s}/ai-cfo/${e}`,{state:{...a.state}})},halloweenAnimationEnabled:be,isTaskManagerAccessEnabled:k,thanksGivingAnimationEnabled:pe,christmasAnimationEnabled:ge,newYearAnimationEnabled:Se})})})),Fa=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{Fa as M};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./liveblocks-D0aPwrEa.js";import{h as r,l as i}from"./core-CJLU9TYG.js";import{ak as n}from"./index-Bac0_7La.js";import"./mui-BTK8WNHw.js";import"./sentry-Bh_Qiwsv.js";import"./zeni-epic-state-DN1FMHPE.js";import"./recharts-BEqM6zw3.js";import"./analytics-K5kCmXhx.js";import"./plaid-BWaZTH4h.js";import"./dnd-BvQSnOXX.js";import"./stripe-cKAAJElX.js";import"./lottie-CRpndHoM.js";import"./lexical-G-6YJUO1.js";import"./pdf-BlY1D9V4.js";import"./utils-DnIJUuGb.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 r}from"./liveblocks-D0aPwrEa.js";import Z from"./NotFoundScreen-DVwEy2Nc.js";import{a as p}from"./sentry-Bh_Qiwsv.js";import{h as C,g as D,u as V,j as u,N as k,l as N,n as z,o as g}from"./core-CJLU9TYG.js";import{fI as E,ZA as h,ZS as R,O5 as O,O1 as U,O4 as m,NW as L,_f as B,N_ as K,O7 as q}from"./zeni-epic-state-DN1FMHPE.js";import{z as T,w as _,c8 as F,n as $,bR as G,c9 as H}from"./index-Bac0_7La.js";import"./mui-BTK8WNHw.js";import{u as J,R as x}from"./ReimbursementApprovalRuleDetailScreen-BJcgs97q.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]="ca9fe1a4-b378-45bf-8ab7-0c9effe95ad7",e._sentryDebugIdIdentifier="sentry-dbid-ca9fe1a4-b378-45bf-8ab7-0c9effe95ad7")}catch{}})();const j="reimbursement-approval-rule-update",M=N((function(e){return{approvalView:h(e),remiSetupApproverViewUpdateData:R(e).remiSetupApproverViewUpdateData}}),(function(e,s){const{navigate:n,location:a}=s;return{onApprovalRulesEventReceived:t=>{t.endsWith(j)&&e(B(!1))},onBackClick:()=>{$(a)?n("../../"):n("../../../reimbursements/setup")},onDeleteRuleClick:t=>{e(L(t,!1))},onEditRuleClick:t=>{t!=null?(e(m(t)),n(`./${t}/edit`)):(e(m()),n("./new"))}}}))(_(F)),P=({isLoading:e})=>{const s=C(),n=D(),a=V(),[t,l]=p.useState(!1),[v,w]=p.useState(!1),S=u((o=>o.remiSetupApproverViewState.fetchState)),c=u((o=>E(o))),d=u((o=>h(o))),b=u((o=>R(o).remiSetupApproverViewUpdateData));if(p.useEffect((()=>{b?.updateStatus.fetchState==="Completed"&&a(O())}),[b]),p.useEffect((()=>{t||S!=="Not-Started"||e||(l(!0),a(U(!0,!1,!1,!1)))}),[t,S,e,a]),T.getSignedInUser()==null)throw Error("Can't access reimbursement approval without signing in...");p.useEffect((()=>{d.allApprovalRules.length===0&&d.fetchState==="Completed"&&(v||(w(!0),a(m())),s("./new"))}),[v,d,a]);const f={events:c.companyId!=null?[`private-encrypted-${c.companyId}.${j}`]:[],eventCallback:(o,y,I)=>{o.endsWith(j)&&I.onApprovalRulesEventReceived(o)}};return c?.companyReimbursementInfo?.info?.isReimbursementTOSAccepted===!1?r.jsx(k,{to:"../../promo"}):r.jsx(M,{currentTenant:c,location:n,navigate:s,...f})},A="reimbursement-approval-rule-update",Q=N((function(e){const s=h(e),n=R(e).remiSetupApproverViewUpdateData,a={};for(const l of Object.values(e.vendorState.vendorByID))l?.id!=null&&(a[l.id]=l.name);const t={};for(const l of Object.values(e.classState.classesByKey))l?.classId!=null&&(t[l.classId]=l.className);return{approvalView:s,remiSetupApproverViewUpdateData:n,vendorNamesById:a,departmentNamesById:t}}),(function(e,s){const{navigate:n,location:a}=s;return{onApprovalRulesEventReceived:t=>{t.endsWith(A)&&e(B(!1))},onBackClick:()=>{$(a)?n("../../"):n("../../../reimbursements/setup")},onDeleteRuleClick:t=>{e(L(t,!0))},onEditRuleClick:t=>{t!=null?(e(m(t)),n(`./${t}/edit`)):(e(m()),n("./new"))},onReorderRules:t=>{e(q(t,!0))}}}))(_(H)),X=()=>{const e=u((a=>E(a))),{isApprovalRulesV3Enabled:s,isLoading:n}=G(e?.tenantId);return s?r.jsx(Y,{isLoading:n}):r.jsx(P,{isLoading:n})},Y=({isLoading:e})=>{const s=C(),n=D(),a=V(),[t,l]=p.useState(!1),[v,w]=p.useState(!1),[S,c]=p.useState(!1),d=u((i=>i.remiSetupApproverViewState.fetchState)),b=u((i=>i.remiSetupApproverViewState.approverListState.fetchStatus.fetchState)),f=u((i=>E(i))),o=u((i=>h(i)));J();const y=u((i=>R(i).remiSetupApproverViewUpdateData));if(p.useEffect((()=>{y?.updateStatus.fetchState==="Completed"&&a(O())}),[y]),p.useEffect((()=>{t||d!=="Not-Started"||e||(l(!0),a(U(!0,!1,!1,!0)))}),[t,d,e,a]),p.useEffect((()=>{v||b!=="Not-Started"||e||(w(!0),a(K(!1,!0)))}),[v,b,e,a]),T.getSignedInUser()==null)throw Error("Can't access reimbursement approval without signing in...");p.useEffect((()=>{o.allApprovalRules.length===0&&o.fetchState==="Completed"&&(S||(c(!0),a(m())),s("./new"))}),[S,o,a]);const I={events:f.companyId!=null?[`private-encrypted-${f.companyId}.${A}`]:[],eventCallback:(i,ee,W)=>{i.endsWith(A)&&W.onApprovalRulesEventReceived(i)}};return f?.companyReimbursementInfo?.info?.isReimbursementTOSAccepted===!1?r.jsx(k,{to:"../../promo"}):r.jsx(Q,{currentTenant:f,location:n,navigate:s,isLoading:e,...I})};function le(){return r.jsxs(z,{children:[r.jsx(g,{path:"/",element:r.jsx(X,{})}),r.jsx(g,{path:"/new",element:r.jsx(x,{})}),r.jsx(g,{path:"/:approvalRuleId/edit",element:r.jsx(x,{})}),r.jsx(g,{path:"*",element:r.jsx(Z,{})})]})}export{le as R};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-D0aPwrEa.js";import{z as j,a6 as N,j as u,N as S,e0 as I,W as k,A as C}from"./index-Bac0_7La.js";import"./mui-BTK8WNHw.js";import g from"./NotFoundScreen-DVwEy2Nc.js";import{a as c}from"./sentry-Bh_Qiwsv.js";import{u as D,j as h,h as F,g as L,l as T,n as U,o as d,N as y}from"./core-CJLU9TYG.js";import{fI as _,a2v as w,a2w as p,Ea as P,q3 as V,a2x as q,E8 as z}from"./zeni-epic-state-DN1FMHPE.js";import"./recharts-BEqM6zw3.js";import"./analytics-K5kCmXhx.js";import"./plaid-BWaZTH4h.js";import"./dnd-BvQSnOXX.js";import"./stripe-cKAAJElX.js";import"./lottie-CRpndHoM.js";import"./lexical-G-6YJUO1.js";import"./pdf-BlY1D9V4.js";import"./utils-DnIJUuGb.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]="a09d868d-4df0-4cea-847c-26f75b928ea2",e._sentryDebugIdIdentifier="sentry-dbid-a09d868d-4df0-4cea-847c-26f75b928ea2")}catch{}})();const A=T((function(e,t){const n=w(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=j.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])})),u.trackInviteEmailClicked("send",s,r,s.length)}e(z())},onUpdateInviteFormLocalData:s=>{e(q({localData:s}))},onSubmitSuccess:()=>{e(p())},onCancelClick:()=>{i!=null&&u.trackInviteEmailClicked("cancel")}}}))(I),G=()=>{const e=D(),[t,n]=c.useState(!1),[i,s]=c.useState(!1),r=h((o=>_(o))),l=F(),x=L(),f=j.getSignedInUser();if(f==null)throw Error("Can't access invite referral screen without signing in...");const m=h((o=>w(o))),b=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:u,onLoad:o=>(E=>E.trackPageLoaded(S.Event.inviteEmailViewed))(o)}):null,a.jsx(A,{navigate:l,location:x,currentTenant:r,companyName:v,userName:b,inviteFormCompayData:m.localData})]})};function ne(){const{useFeatureGate:e}=k(),{isFeatureEnabled:t}=e(C.isReferralFeatureEnabled);return a.jsxs(U,{children:[a.jsx(d,{path:"/",element:a.jsx(y,{to:"refer",replace:!0})}),a.jsx(d,{path:"how-it-works",element:a.jsx(y,{to:"refer",replace:!0})}),a.jsx(d,{path:"refer/*",element:t?a.jsx(G,{}):a.jsx(g,{})}),a.jsx(d,{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-DVwEy2Nc.js","assets/sentry-Bh_Qiwsv.js","assets/core-CJLU9TYG.js","assets/zeni-epic-state-DN1FMHPE.js","assets/index-Bac0_7La.js","assets/mui-BTK8WNHw.js","assets/analytics-K5kCmXhx.js","assets/utils-DnIJUuGb.js","assets/index-BQ3cXEYt.css","assets/DashboardRoutes-DEx1rH65.js","assets/withTransactionSidePanel-BOFkm0Uk.js","assets/useAskAiCfoHostNavButtonProps-CkY97uj-.js","assets/TransactionDetailScreen-DGElbhCa.js","assets/decodeURIComponentSafe-Cai8T7ud.js","assets/useInitialThreadRequest-Byaj949Q.js","assets/routePaths-CFVcdQVU.js","assets/expenseAutomationHelper-AFTT-GAh.js","assets/stripSplatSuffix-Ba8pyF0x.js","assets/analyticsHelper-Cb3EUyBw.js","assets/CompanyPassportScreen-CMKrSOCe.js","assets/MobileAppDrawer-Gq4sfjI3.js","assets/InboxNotificationsProvider-B5M0qdMl.js","assets/useTaskManagerAccess-CUawSS4F.js","assets/useAiCfoDashboardSuggestedQuestionsChips-BqbEtXbA.js","assets/FeaturePreviewScreen-ae3ytT_c.js","assets/BillPayRoutes-kQgV7FX8.js","assets/AddressScreen-Djrv0IMM.js","assets/DomesticWireDetailScreen-CIlj8F4w.js","assets/BusinessVerificationPageScreen-BSguq-g2.js","assets/DrawerScreen-Du8hsTKk.js","assets/SetupPagesScreen-RWtDE1DO.js","assets/BillPayApprovalRoutes-C0zm6ZLS.js","assets/ReimbursementApprovalRuleDetailScreen-BJcgs97q.js","assets/getLocaleForTenant-Bc7hFfBK.js","assets/ReimbursementRoutes-BAWywZO-.js","assets/ReimbursementApprovalRoutes-Bu6Pn9AT.js","assets/TransactionListRoutes-Db86k9iu.js","assets/ZeniAccountStatementScreen-BAIxCUhh.js","assets/SettingsRoutes-BbvIIMXV.js","assets/AccountMappingScreen-Bh9jl7Ef.js","assets/QBOConnectionScreen--OQu_pq8.js","assets/empty-CYTi1vUC.js","assets/index-DqcV3YMG.js","assets/url-CqXRBT9H.js","assets/index-C5DdgWE0.js","assets/accountMappingHelper-CDFl9gNv.js","assets/useEmailConnectResultRefresh-B2CM-p2n.js","assets/ReportsRoutes-DFArxL2E.js","assets/ChargeCardRoutes-C_cRa3L-.js","assets/useChargeCardPusherEvents-IP7jEgbI.js","assets/PeopleRoutes-DiFR5w2N.js","assets/ExpenseAutomationRoutes-DXUAGmqA.js","assets/useActualMatchingMatchDetail-Bo3l1zUQ.js","assets/ScheduleDetailsPrepaidExpensesScreen-D_ls3-hC.js","assets/pathToGoBack-DSav9J7K.js","assets/TreasuryRoutes-DxWgKInd.js","assets/VendorsRoutes-DHlhSQpH.js","assets/ZeniAccountRoutes-BMjC17N2.js","assets/AddressRoutes-DiDhvZrH.js","assets/PandLWithForecastRoutes-Deg1E66Q.js","assets/CustomerOnboardingRoutes-BUkw8ab2.js","assets/TransactionDetailRoutes-CEyEoaOq.js","assets/EntityDetailRoutes-BLSf8EBB.js","assets/InvoicingRoutes-DJ09h0-W.js","assets/NotificationRoutes-BxisUoq4.js","assets/PerformanceRoutes-QyQRVdnM.js","assets/ActualMatchingMatchDetailScreen-DjOPlh3J.js","assets/RewardsRoutes-CMb9MJ3w.js","assets/TaskRoutes-CjSgWf1E.js","assets/TaskListScreen-CLnMNKvr.js","assets/useTaskManagerPusherEvents-xfS6T84X.js","assets/AiCfoScreen-B4bDfb8M.js","assets/CardsAiCfoScreen-nH8-GKOx.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 js,gM as Is,gc as Ts,dg as pe,cH as As,gq as bs,cz as Ds,bF as fs,br as ys,UF as vs,v as Cs,UI as Os,bq as Us,UJ as Ps,bL as ws,bK as Fs,bu as Ls,cv as Hs,UK as Vs,UL 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 je,gP as Ie,go as zs}from"./zeni-epic-state-DN1FMHPE.js";import{j as e}from"./liveblocks-D0aPwrEa.js";import{a as P}from"./sentry-Bh_Qiwsv.js";import{N as u,u as Gs,h as qs,i as Ws,g as Ys,j as $,q as Te,n as Js,o as n}from"./core-CJLU9TYG.js";import{F as l,u as Ks,z as y,W as Qs,d as Xs,e as et,A as S,g as st,H as tt,V as nt,L as F,G as Ae,t as _,P as at,J as ot,j as ne}from"./index-Bac0_7La.js";import{u as rt}from"./mui-BTK8WNHw.js";import{f as be}from"./analyticsHelper-Cb3EUyBw.js";import{t as it}from"./getLocaleForTenant-Bc7hFfBK.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]="39d85a4c-5c06-4a97-90fb-c5261311016b",o._sentryDebugIdIdentifier="sentry-dbid-39d85a4c-5c06-4a97-90fb-c5261311016b")}catch{}})();const lt=l((()=>s((()=>import("./NotFoundScreen-DVwEy2Nc.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-DEx1rH65.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-kQgV7FX8.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-BAWywZO-.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-Db86k9iu.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-BbvIIMXV.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-DFArxL2E.js")),__vite__mapDeps([47,1,2,3,4,5,6,7,0,24,14,15,20,21,22,8])),chargeCards:()=>s((()=>import("./ChargeCardRoutes-C_cRa3L-.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-DiFR5w2N.js")),__vite__mapDeps([50,1,2,3,4,5,6,7,0,11,20,21,22,8])),expenseAutomation:()=>s((()=>import("./ExpenseAutomationRoutes-DXUAGmqA.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-DxWgKInd.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-DHlhSQpH.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-BMjC17N2.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-DFArxL2E.js")),__vite__mapDeps([47,1,2,3,4,5,6,7,0,24,14,15,20,21,22,8])))),Et=l((()=>s((()=>import("./AddressRoutes-DiDhvZrH.js")),__vite__mapDeps([58,1,2,3,26,4,5,6,7,0,8])))),ht=l((()=>s((()=>import("./PeopleRoutes-DiFR5w2N.js")),__vite__mapDeps([50,1,2,3,4,5,6,7,0,11,20,21,22,8])))),pt=l((()=>s((()=>import("./PandLWithForecastRoutes-Deg1E66Q.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-BUkw8ab2.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-DHlhSQpH.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-CEyEoaOq.js")),__vite__mapDeps([61,1,2,3,0,4,5,6,7,12,11,13,14,15,16,8])))),ve=l((()=>s((()=>import("./EntityDetailRoutes-BLSf8EBB.js")),__vite__mapDeps([62,1,2,3,4,5,6,7,13,10,11,12,14,15,16,17,8])))),jt=l((()=>s((()=>import("./DashboardRoutes-DEx1rH65.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-kQgV7FX8.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])))),It=l((()=>s((()=>import("./SettingsRoutes-BbvIIMXV.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-DJ09h0-W.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-BAWywZO-.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-BMjC17N2.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-DxWgKInd.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-Db86k9iu.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-C_cRa3L-.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-BxisUoq4.js")),__vite__mapDeps([64,1,2,3,0,4,5,6,7,11,22,8])))),vt=l((()=>s((()=>import("./PerformanceRoutes-QyQRVdnM.js")),__vite__mapDeps([65,1,2,3,0,4,5,6,7,11,20,21,22,8])))),Ct=l((()=>s((()=>import("./ExpenseAutomationRoutes-DXUAGmqA.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-DjOPlh3J.js")),__vite__mapDeps([66,1,2,3,4,5,6,7,52,17,13,15,0,8])))),Ut=l((()=>s((()=>import("./RewardsRoutes-CMb9MJ3w.js")),__vite__mapDeps([67,1,2,3,4,5,6,7,0,8])))),Pt=l((()=>s((()=>import("./TaskRoutes-CjSgWf1E.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-B4bDfb8M.js")),__vite__mapDeps([71,1,2,3,4,5,6,7,23,54,15,70,8])))),Ue=l((()=>s((()=>import("./CardsAiCfoScreen-nH8-GKOx.js")),__vite__mapDeps([72,1,2,3,4,5,6,7,8])))),b=l((()=>s((()=>import("./NotFoundScreen-DVwEy2Nc.js")),__vite__mapDeps([0,1,2,3,4,5,6,7,8])))),Ft=l((()=>s((()=>import("./TaskListScreen-CLnMNKvr.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}=Ks(),f=y.getSignedInUserTenant(i)?.tenantId,I=y.getSignedInUser(),J=Es(I),z=Ys(),[L,we]=P.useState(!1),r=$((a=>hs(a))),{useFeatureGate:k}=Qs(),M=Xs(),K=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&&js(r.userRole),G=$((a=>Is(a)));if(i!=null){const a=y.getSignedInUserTenant(i);I!=null&&a!=null&&be(I,r,H)}const Z={tenantId:f,userId:I?.userId,sessionId:I?.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,I,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,I,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(je(d.userId,t))),_.shouldFetchConnections(t)&&(_.markConnectionsFetchStarted(t),B(Ie(d.userId,t)))}else W&&ms&&_.shouldFetchExcludedResources(t)&&(_.markExcludedResourcesFetchStarted(t),B(je(d.userId,t))),W&&_s&&_.shouldFetchConnections(t)&&(_.markConnectionsFetchStarted(t),B(Ie(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,I,O,D))}),[f,p]),P.useEffect((()=>{y.isSignedIn()&&T==="Completed"&&G.tenantsBaseInOrder.length>0&&(V(F.TENANT_FETCHING),y.saveSignedInUserTenants(Os(G.tenantsBaseInOrder)),I!=null&&be(I,r,H,void 0,G.tenantsBaseInOrder))}),[G,T,r,I]),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),Je=r?.userRole!=null&&r.userRole.includes("charge_card_user"),Ke=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,j=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}}):(I!=null&&T!=="In-Progress"&&D(xe(I.userId,I.zeniSessionId)),null):p!=="In-Progress"&&p!=="Not-Started"||T==="Completed"?(te===!0||J&&!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||J?!L||te!==!1||ee||J?L&&r?.userRole&&E!=null&&Q!=null&&i!=null&&Object.keys(h.loggedInUserRoleMap).length>0?e.jsx(Js,{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:j,isTenantBankingOnly:E,isTenantCardsOnly:Q,showChargeCardRoute:m})}),e.jsx(n,{path:"dashboard/*",element:w?e.jsx(jt,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:j,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:j,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:j,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:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"onboarding/*",element:e.jsx(xt,{})}),e.jsx(n,{path:"transaction/*",element:w&&U===!1||Je||Ke?e.jsx(Rt,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:j,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:j,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:j,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:j,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:j,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:j?e.jsx(bt,{}):e.jsx(b,{})}),e.jsx(n,{path:"performance",element:K===!0?e.jsx(vt,{}):e.jsx(Pe,{tenantEmailDomain:i})}),e.jsx(n,{path:"month_end_close_checks/review/*",element:K===!0&&U===!1?e.jsx(Ct,{}):e.jsx(Pe,{tenantEmailDomain:i})}),e.jsx(n,{path:"expense-automation/actual-matching/:matchId",element:K===!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:j,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:j,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:j,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:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"settings/*",element:Se?e.jsx(It,{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-D0aPwrEa.js";import{a as f,R as T,t as A}from"./sentry-Bh_Qiwsv.js";import{u as z,h as D,j as c,g as O,N as j,l as M}from"./core-CJLU9TYG.js";import{u as P,z as s,j as E,G as F,K as N,N as _,O as B,Q,S as V,U as v}from"./index-Bac0_7La.js";import{fI as $,Uo as J,UI as K,gl as R,gn as W,UN as Y,gY as G,dk as H,UO as y,UP as q,UQ as X,c0 as U}from"./zeni-epic-state-DN1FMHPE.js";import{u as Z}from"./mui-BTK8WNHw.js";import{u as ee}from"./useDeviceId-BqYCCa6B.js";import{f as te}from"./analyticsHelper-Cb3EUyBw.js";import{t as ne}from"./getLocaleForTenant-Bc7hFfBK.js";import"./recharts-BEqM6zw3.js";import"./analytics-K5kCmXhx.js";import"./plaid-BWaZTH4h.js";import"./dnd-BvQSnOXX.js";import"./stripe-cKAAJElX.js";import"./lottie-CRpndHoM.js";import"./lexical-G-6YJUO1.js";import"./pdf-BlY1D9V4.js";import"./utils-DnIJUuGb.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]="1b514297-4166-404c-97c3-384681cfdbd1",t._sentryDebugIdIdentifier="sentry-dbid-1b514297-4166-404c-97c3-384681cfdbd1")}catch{}})();const ie=M((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(X({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=>J(e))),m=O(),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(K(I.tenantsInOrder),o.zeniSessionId),R(o.userId,o.zeniSessionId,r.tenantId),i(W(r.tenantId)),s.saveActiveTenantDomainForUser(r.tenantEmailDomain),i(Y("Completed")),F.updateAppLocaleID(ne(r)),te(o,r,w,void 0,I.tenantsInOrder),G().then((()=>{const e=Q();e!=null&&N(e)})),setTimeout((()=>{E.trackLogin(_.Event.loginSuccess,o.authProvider??"google",H(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(j,{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-D0aPwrEa.js";import{a as i}from"./sentry-Bh_Qiwsv.js";import{u as d,g as f,N as u}from"./core-CJLU9TYG.js";import{z as n,j as a,N as m,a5 as p}from"./index-Bac0_7La.js";import{g$ as g,V2 as b}from"./zeni-epic-state-DN1FMHPE.js";import{n as y}from"./mui-BTK8WNHw.js";import"./recharts-BEqM6zw3.js";import"./analytics-K5kCmXhx.js";import"./plaid-BWaZTH4h.js";import"./dnd-BvQSnOXX.js";import"./stripe-cKAAJElX.js";import"./lottie-CRpndHoM.js";import"./lexical-G-6YJUO1.js";import"./pdf-BlY1D9V4.js";import"./utils-DnIJUuGb.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]="68b05c2d-37e0-4b33-801a-b5802071ae3b",e._sentryDebugIdIdentifier="sentry-dbid-68b05c2d-37e0-4b33-801a-b5802071ae3b")}catch{}})();function L(){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()),b(),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=y.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{L as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as A}from"./liveblocks-D0aPwrEa.js";import{a as u}from"./sentry-Bh_Qiwsv.js";import{u as H,k as J,j as G,h as ma,g as Sa,i as ya,l as Da}from"./core-CJLU9TYG.js";import{z as M,W as Ea,A as I,aq as ba,a6 as ha,j as Ga,N as Ca,e3 as Aa,p as F,a2 as Ia}from"./index-Bac0_7La.js";import{Qz as Ra,Rn as va,fI as Ba,a2E as na,gQ as Z,a2F as ra,a2z as La,QR as X,a2G as Ka,R3 as Y,QB as wa,Qd as Ua,Rz as aa,a2H as ea,gk as Pa,Rq as Fa,Rv as ja,Ri as xa,Rg as ta,Rw as Na,Rd as $a,a2I as Oa,a2J as za,a2K as Qa,a2L as Ma,a2M as R,dy as Za,dx as qa,a2N as Va,Qy as Wa}from"./zeni-epic-state-DN1FMHPE.js";import{n as Ha}from"./mui-BTK8WNHw.js";import{u as Ja}from"./useAskAiCfoHostNavButtonProps-CkY97uj-.js";import{M as Xa}from"./MobileAppDrawer-Gq4sfjI3.js";import{u as Ya}from"./useTaskManagerPusherEvents-xfS6T84X.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new a.Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="401a5aea-1046-4cac-b6ae-5a1b16dd2ef4",a._sentryDebugIdIdentifier="sentry-dbid-401a5aea-1046-4cac-b6ae-5a1b16dd2ef4")}catch{}})();const _={TASK_CREATED:"task-created",TASK_UPDATED:"task-updated",TASK_SNOOZE_RESURFACED:"task-snooze-resurfaced",TASKS_BULK_UPDATED:"tasks-bulk-updated",TASKS_BULK_DELETED:"tasks-bulk-deleted"},ae=(a,t)=>a==null||a===""?[]:t.map((n=>`private-encrypted-${a}.${n}`)),ee=(a,t)=>a==null||a===""?[]:t.map((n=>`private-encrypted-${a}.${n}`)),j=a=>Array.isArray(a)&&a.every((t=>typeof t=="string")),oa=a=>typeof a.task_id=="string"?a.task_id:typeof a.id=="string"?a.id:null,ge=a=>{if(a==null||typeof a!="object")return null;const t=a,n=oa(t);if(n==null)return null;const c={task_id:n};return typeof t.parent_task_id=="string"&&(c.parent_task_id=t.parent_task_id),typeof t.sync_token=="string"&&(c.sync_token=t.sync_token),typeof t.is_deleted=="boolean"&&(c.is_deleted=t.is_deleted),typeof t.is_private=="boolean"&&(c.is_private=t.is_private),c},te=a=>{if(a==null||typeof a!="object")return null;const t=a;return j(t.task_ids)?{task_ids:t.task_ids}:null},_e=a=>{if(a==null||typeof a!="object")return null;const t=a;return typeof t.task_id!="string"?null:{task_id:t.task_id}},se=Ha.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: ${a=>a.theme.colors.grey4};
|
|
9
|
-
`,ne=Da((function(a,t){const n=na(a,t.isTaskTemplatesEnabled),{taskGroupId:c}=t,p=c!=null&&c!==""?{...n,taskGroupsWithTasksList:n.taskGroupsWithTasksList.map((e=>({...e,tasks:e.tasks.filter((s=>s.taskGroupIds.includes(c)))}))).filter((e=>e.tasks.length>0))}:n,y=La(a),f=M.isZeniUser(),v=a.taskDetailState?.subTaskCreateStatus?.fetchState;return{taskListView:p,tagListView:y,localData:p.localData,isTaskTemplatesEnabled:t.isTaskTemplatesEnabled,isZeniUser:f,subTaskCreateStatus:v}}),(function(a,t){const{navigate:n,currentTenant:c,location:p,isTaskTemplatesEnabled:y}=t,{tenantEmailDomain:f}=c,{groupByKey:v}=t.uiState;return{onTaskManagementRowClick:e=>{const s=sa(f,e),D=F(p.state?.pathnameStackToGoBack,p.pathname);n(s,{state:{pathnameStackToGoBack:D}})},onReloadTasks:()=>{a(Z(!0,y))},onTabChange:e=>{a(Ma(e))},onParentTaskClick:e=>{const s=sa(f,e);window.open(s,"_blank","noopener")},bulkUpdateTasks:(e,s)=>{a(ta(e,null,s))},onNewTaskClick:()=>{if(t.localData.defaultTaskGroupId!=null){const e=Q(f,t.localData.defaultTaskGroupId),s=F(p.state?.pathnameStackToGoBack,p.pathname);n(e,{state:{pathnameStackToGoBack:s,message:"comingFromTaskListPage"}})}},onColumnSortConfigChanged:(e,s)=>{a(ea({uiState:{sortKey:e,sortOrder:s}}))},onFiltersChange:e=>{a(Qa({filters:e}))},onSearchTextChanged:e=>{a(za({searchText:e}))},onReloadCards:()=>{a(Z(!0,y))},onBackClick:()=>{if(p.state?.message==="triggerBackClick"){const e=Ia(p.state?.pathnameStackToGoBack),s=e.poppedPathname??"../";n(s,{state:{pathnameStackToGoBack:e.newStack}})}else n("../")},updateLocalData:e=>{a(Oa({localData:e}))},resetLocalData:()=>{a(ra({taskGroupById:t.taskGroupState.taskGroupById}))},handleCreateGroup:e=>{a($a(t.localData.newTaskGroupName,e))},assignGroupToTasks:e=>{a(ta(t.localData.selectedTaskIds,e,Na(t.uiState.groupByKey,e)))},onDeleteTaskGroup:e=>{a(xa(e))},onAddNewTaskToTaskGroup:e=>{if(t.localData.defaultTaskGroupId!=null){const s=oe(v,e);a(X({taskDetailLocalData:s}));const D=Q(f,t.uiState.groupByKey==="groupName"?e:t.localData.defaultTaskGroupId),x=F(p.state?.pathnameStackToGoBack,p.pathname);n(D,{state:{pathnameStackToGoBack:x,message:"comingFromTaskListPage"}})}},onDragNDrop:(e,s)=>{a(ja(t.localData.selectedTaskIds.length>0?t.localData.selectedTaskIds:[e],s))},onTaskGroupRename:(e,s)=>{a(Fa(e,s))},onTimeSpentUpdate:(e,s)=>{a(aa({task:e,updates:s}))},onShowToast:e=>{a(Pa(e))},onGroupByFilterChange:e=>{a(ea({uiState:{groupByKey:e}}))},updateTask:(e,s)=>{a(aa({task:e,updates:s}))},onCreateTagClick:(e,s)=>{a(Ua(e,s))},onSubtaskCreation:(e,s)=>{a(wa({...s,parentTaskId:e}))},handleGroupTemplateClick:e=>{a(Y(e,[]))},handleGroupTemplateTaskClick:(e,s)=>{a(Y(e,[s]))},handleNewTaskInitialization:e=>{if(a(X({taskDetailLocalData:{...Ka,name:e}})),t.localData.defaultTaskGroupId!=null){const s=Q(f,t.localData.defaultTaskGroupId),D=F(p.state?.pathnameStackToGoBack,p.pathname);n(s,{state:{pathnameStackToGoBack:D,message:"comingFromTaskListPage"}})}},onTaskGroupNameClick:e=>{n(`/${f}/tasks/group/${e}`)},onQuickResponsesClick:()=>{n(`/${f}/tasks/quick-responses`)}}}))(Aa);function re(){const a=ma(),t=H(),n=Sa(),c=M.getSignedInUser(),p=M.isZeniUser(),y=J(),f=G((d=>Ba(d))),{taskGroupId:v}=ya(),{useFeatureGate:e}=Ea(),{isFeatureEnabled:s}=e(I.isTaskTemplatesEnabled),{isFeatureEnabled:D}=e(I.isTaskCannedResponsesEnabled),{isFeatureEnabled:x}=e(I.isTaskCategorizationEnabled),{isFeatureEnabled:ia}=e(I.isTaskBulkResolutionEnabled),{isFeatureEnabled:la}=e(I.isTaskGroupAssigneesEnabled),{isFeatureEnabled:ua}=e(I.isTaskRecurringParentEnabled),[ca,da]=u.useState(!1),N=G((d=>na(d,s))),$=G((d=>d.taskGroupState)),B=N.fetchState,{isAiCfoAccessEnabled:ka,onAskAiCfoClick:pa}=Ja({mobileExploreReferrer:"Task Checklist"});ba({isDataReady:B==="Completed"});const{markBoardFetchInFlight:q,requestTaskRefetch:O}=(function(d){const m=H(),r=J(),T=u.useRef(!1),o=u.useRef(!1),k=u.useRef(!1),g=u.useRef(),l=u.useRef(),S=u.useRef(!1),L=u.useRef(),K=u.useCallback((()=>{L.current=r.getState().taskListState.byTab.live,S.current=!0}),[r]),w=u.useCallback((()=>{K(),m(Ra())}),[m,K]),E=u.useCallback((()=>{g.current=r.getState().taskGroupState.taskGroupById,k.current=!0,m(va())}),[m,r]),b=u.useCallback((()=>{T.current=!1,l.current!=null&&(clearTimeout(l.current),l.current=void 0),w(),k.current||r.getState().taskGroupViewState.fetchState==="In-Progress"?o.current=!0:E()}),[w,E,r]),z=u.useCallback((()=>{S.current?(T.current=!0,l.current==null&&(l.current=setTimeout((()=>{l.current=void 0,T.current&&r.getState().taskListState.fetchState!=="In-Progress"&&(S.current=!1,b())}),6e3))):b()}),[b,r]);u.useEffect((()=>{l.current!=null&&(clearTimeout(l.current),l.current=void 0),T.current=!1,o.current=!1,k.current=!1}),[d]);const h=G((i=>i.taskListState.fetchState)),C=G((i=>i.taskGroupViewState.fetchState)),U=G((i=>i.taskListState.byTab.live)),P=G((i=>i.taskGroupState.taskGroupById));return u.useEffect((()=>{h!=="In-Progress"&&(!S.current||U!==L.current||h==="Error")&&(S.current=!1,T.current&&(h!=="Completed"?h==="Error"&&(T.current=!1,l.current!=null&&(clearTimeout(l.current),l.current=void 0)):b()))}),[h,U,b]),u.useEffect((()=>{C!=="In-Progress"&&(!k.current||P!==g.current||C==="Error")&&(k.current=!1,o.current&&(o.current=!1,C!=="Error"&&E()))}),[C,P,E]),u.useEffect((()=>()=>{l.current!=null&&(clearTimeout(l.current),l.current=void 0)}),[]),{markBoardFetchInFlight:K,requestTaskRefetch:z}})(f?.tenantId);u.useEffect((()=>{y.getState().taskListState.hasValidState()||q(),t(Z(!1,s))}),[f?.tenantId,t,s,q,y]);const fa=u.useMemo((()=>{const d=[_.TASK_CREATED,_.TASK_UPDATED,_.TASKS_BULK_UPDATED,_.TASKS_BULK_DELETED],m=[_.TASK_CREATED,_.TASK_UPDATED,_.TASK_SNOOZE_RESURFACED,_.TASKS_BULK_UPDATED];return[...ae(f?.companyId,d),...ee(c?.userId,m)]}),[f?.companyId,c?.userId]);if(Ya({events:fa,onEvent:(d,m)=>{switch(d){case _.TASK_CREATED:case _.TASK_UPDATED:{const r=(T=>{if(T==null||typeof T!="object")return null;const o=T,k=oa(o);if(k==null||typeof o.tenant_id!="string"||typeof o.event_type!="string")return null;const g={task_id:k,tenant_id:o.tenant_id,event_type:o.event_type};return typeof o.is_private=="boolean"&&(g.is_private=o.is_private),j(o.assignees)&&(g.assignees=o.assignees),j(o.direct_assignees)&&(g.direct_assignees=o.direct_assignees),typeof o.created_by=="string"&&(g.created_by=o.created_by),j(o.task_group_ids)&&(g.task_group_ids=o.task_group_ids),typeof o.name=="string"&&(g.name=o.name),typeof o.parent_task_id=="string"&&(g.parent_task_id=o.parent_task_id),g})(m);if(r!=null){const T=y.getState(),o=r.task_id,k=o!=null?T.taskState.taskByID?.[o]:void 0,g=k!=null;if(!p)if(r.is_private===!0){if(!g)return}else{const l=c?.userId,S=new Set([...r.assignees??[],...r.direct_assignees??[]]);if(r.created_by!=null&&r.created_by!==""&&S.add(r.created_by),!(l!=null&&S.has(l))&&!g)return}if(d===_.TASK_UPDATED&&g&&k!=null&&Array.isArray(r.task_group_ids)){const l=new Set(Object.values(T.taskGroupState.taskGroupById??{}).filter((i=>i!=null&&!i.isDeleted)).map((i=>i.id))),S=(k.taskGroupIds??[]).filter((i=>l.has(i))),L=(r.task_group_ids??[]).filter((i=>l.has(i))),K=S.length===L.length&&S.every((i=>L.includes(i))),w=k.taskGroupIds??[],E=r.task_group_ids??[],b=w.length!==E.length||!w.every((i=>E.includes(i))),z=(i,Ta)=>{const V=i??[],W=Ta??[];if(V.length!==W.length)return!1;const ga=new Set(W);return V.every((_a=>ga.has(_a)))},h=r.name==null||r.name===k.name,C=r.is_private==null||r.is_private===k.isPrivate,U=r.assignees==null||z(r.assignees,k.assignees),P=r.direct_assignees==null;if(K&&b&&h&&C&&U&&P)return}}return void O()}case _.TASKS_BULK_DELETED:{const r=te(m);return r==null?void 0:void r.task_ids.forEach((T=>t(Wa(T))))}case _.TASKS_BULK_UPDATED:case _.TASK_SNOOZE_RESURFACED:return void O()}},onSubscribed:()=>{O()}}),u.useEffect((()=>{B==="Completed"&&t(ra({taskGroupById:$.taskGroupById}))}),[B,$.taskGroupById]),c==null)throw Error("Can't access task list page without signing in...");return A.jsxs(A.Fragment,{children:[B==="Completed"?A.jsx(ha,{analytics:Ga,onLoad:d=>(m=>m.trackPageLoaded(Ca.Event.taskListPage))(d)}):null,A.jsxs(se,{children:[A.jsx(Xa,{isAppContentDrawerOpen:ca,handleDrawerToggle:d=>{da(d)}}),A.jsx(ne,{location:n,navigate:a,currentTenant:f,taskGroupId:v,taskGroupState:$,localData:N.localData,uiState:N.uiState,isTaskTemplatesEnabled:s,taskListFetchState:B,isTaskCategorizationEnabled:x,isTaskCannedResponsesEnabled:D,isTaskBulkResolutionEnabled:ia,isTaskGroupAssigneesEnabled:la,isTaskRecurringParentEnabled:ua,isAiCfoAccessEnabled:ka,onAskAiCfoClick:pa})]})]})}const sa=(a,t)=>`/${a}/tasks/${encodeURIComponent(t)}`,Q=(a,t)=>`/${a}/tasks/new/${t}`,oe=(a,t)=>{if(a==="assignee"){const n=t.split(",");return{...R.taskDetailLocalData,assignee:n}}if(a==="priority"){const n=Za(t);return{...R.taskDetailLocalData,priority:n}}if(a==="status"){const n=qa(t);return{...R.taskDetailLocalData,status:n}}if(a==="tag"){const n=t.split(",");return{...R.taskDetailLocalData,tagIds:n}}if(a==="dueDate"){const n=Va(t);return{...R.taskDetailLocalData,dueDate:n}}return{...R.taskDetailLocalData}},me=Object.freeze(Object.defineProperty({__proto__:null,default:re},Symbol.toStringTag,{value:"Module"}));export{_ as T,ee as a,ae as b,_e as c,te as d,re as e,me as f,ge as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./liveblocks-D0aPwrEa.js";import i from"./NotFoundScreen-DVwEy2Nc.js";import{T as r}from"./TransactionDetailScreen-DGElbhCa.js";import"./sentry-Bh_Qiwsv.js";import{n as a,o as e}from"./core-CJLU9TYG.js";import"./zeni-epic-state-DN1FMHPE.js";import"./recharts-BEqM6zw3.js";import"./index-Bac0_7La.js";import"./mui-BTK8WNHw.js";import"./analytics-K5kCmXhx.js";import"./plaid-BWaZTH4h.js";import"./dnd-BvQSnOXX.js";import"./stripe-cKAAJElX.js";import"./lottie-CRpndHoM.js";import"./lexical-G-6YJUO1.js";import"./pdf-BlY1D9V4.js";import"./utils-DnIJUuGb.js";import"./useAskAiCfoHostNavButtonProps-CkY97uj-.js";import"./decodeURIComponentSafe-Cai8T7ud.js";import"./useInitialThreadRequest-Byaj949Q.js";import"./routePaths-CFVcdQVU.js";import"./expenseAutomationHelper-AFTT-GAh.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};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as m}from"./sentry-Bh_Qiwsv.js";import{h as u,g,i as h,j as S}from"./core-CJLU9TYG.js";import{fI as y}from"./zeni-epic-state-DN1FMHPE.js";import{a as k,$ as C,d as A,ap as I,s as T,p as w,as as D}from"./index-Bac0_7La.js";import"./mui-BTK8WNHw.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]="3bae5b7e-69dd-4168-98b4-aabe8b399f98",e._sentryDebugIdIdentifier="sentry-dbid-3bae5b7e-69dd-4168-98b4-aabe8b399f98")}catch{}})();function j(e){const{mobileExploreReferrer:a}=e,{isAiCfoOpen:r,setIsAiCfoOpen:i}=k(),s=u(),o=g(),{tenantEmailDomain:n}=h(),l=C(),f=D(l),c=A(),b=I(),p=S((t=>t.tenantState.fetchState==="Completed"||t.tenantState.activeTenantFetchState.fetchState==="Completed"?y(t):void 0)),d=p?.masterTOSInfo?.isMasterTOSAccepted??!1;return{isAiCfoAccessEnabled:b&&c&&!r,onAskAiCfoClick:m.useCallback((()=>{if(n!=null)if(d)if(f){const t=w(o.state?.pathnameStackToGoBack,o.pathname);s(`/${n}/ai-cfo/explore`,{state:{pathnameStackToGoBack:t,referrer:a}})}else i(!0);else T({location:o,navigate:s,mergeState:{referrer:a}})}),[d,f,o,a,s,i,n])}}export{j as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as r}from"./sentry-Bh_Qiwsv.js";import{bn as i}from"./zeni-epic-state-DN1FMHPE.js";import{W as d,A as t}from"./index-Bac0_7La.js";import"./mui-BTK8WNHw.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]="923af700-4bf3-4937-8fd1-0a8e8bb4739c",e._sentryDebugIdIdentifier="sentry-dbid-923af700-4bf3-4937-8fd1-0a8e8bb4739c")}catch{}})();const c=e=>{const{useFeatureGate:s}=d(),{isFeatureEnabled:n}=s(t.isTaskManagerCustomerUserAccessEnabled),{isFeatureEnabled:o}=s(t.isTaskManagerNotificationControlsEnabled),a=r.useMemo((()=>i(e)),[e]);return{isNotificationControlsEnabled:a||o,isTaskManagerAccessEnabled:a||n,isZeniUser:a}};export{c as u};
|