@zeniai/web-app-ui 5.1.93-prod → 5.1.94-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/AddressRoutes-pUo9c-tv.js +1 -0
- package/dist/assets/{AddressScreen-Dqns8o7L.js → AddressScreen-DT4aul98.js} +2 -2
- package/dist/assets/{AiCfoScreen-CMCauxgE.js → AiCfoScreen-BhF2jfJu.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-DzOMp0L2.js → BillPayApprovalRoutes-DBrTLbUM.js} +1 -1
- package/dist/assets/{BillPayRoutes-yNX-iA8A.js → BillPayRoutes-DXvHcHbk.js} +6 -6
- package/dist/assets/{BusinessVerificationPageScreen-62HLVe0x.js → BusinessVerificationPageScreen-Om0cSThR.js} +2 -2
- package/dist/assets/{CardsAiCfoScreen-4QjrMuDm.js → CardsAiCfoScreen-CDZYVA_G.js} +1 -1
- package/dist/assets/{ChargeCardRoutes-JT1ktnG0.js → ChargeCardRoutes-BaEr-4Sf.js} +1 -1
- package/dist/assets/{CompanyPassportScreen-oS2G5pld.js → CompanyPassportScreen-B8wIBTwN.js} +1 -1
- package/dist/assets/{ConnectionAuthScreen-Bu06mAoB.js → ConnectionAuthScreen-3rXBpWwe.js} +1 -1
- package/dist/assets/CustomerOnboardingAuthScreen-qfvtTE_8.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-CI6qRXML.js → CustomerOnboardingRoutes-BSP_x0q_.js} +8 -8
- package/dist/assets/{DashboardRoutes-B-U5mAGm.js → DashboardRoutes-BH2h4M69.js} +3 -3
- package/dist/assets/{DefaultTenantHome-CkLznbI_.js → DefaultTenantHome-533CT5dy.js} +1 -1
- package/dist/assets/{DomesticWireDetailScreen-Q3vU2bMG.js → DomesticWireDetailScreen-DyCIP-L-.js} +3 -3
- package/dist/assets/DrawerScreen-hmdKhO49.js +1 -0
- package/dist/assets/{EntityDetailRoutes-DgD0rt0Q.js → EntityDetailRoutes-BifybXji.js} +1 -1
- package/dist/assets/{ExpenseAutomationRoutes-CxrDAOUS.js → ExpenseAutomationRoutes-ma2T2i_P.js} +3 -3
- package/dist/assets/FeaturePreviewScreen-BDSQN3lv.js +1 -0
- package/dist/assets/{HubSpotOAuthCallbackScreen-DTFVUd5Z.js → HubSpotOAuthCallbackScreen-DNmva7H-.js} +1 -1
- package/dist/assets/MagicLinkRoutes-DbkotQYT.js +72 -0
- package/dist/assets/{MagicLinkSignInScreen-CV4klGc6.js → MagicLinkSignInScreen-NQd0hGkj.js} +1 -1
- package/dist/assets/MobileAppDrawer-CpsSMjQ2.js +1 -0
- package/dist/assets/NotFoundScreen-_taUi6Es.js +1 -0
- package/dist/assets/{NotificationRoutes-CkNzEGNi.js → NotificationRoutes-Cu5dkfdj.js} +1 -1
- package/dist/assets/OAuthConsentScreen-D99q8ZiL.js +1 -0
- package/dist/assets/PandLWithForecastRoutes-DTEkwhMd.js +1 -0
- package/dist/assets/PeopleRoutes-W5cMaWf6.js +22 -0
- package/dist/assets/PerformanceRoutes-DyHolbpu.js +1 -0
- package/dist/assets/{Preview-DsqB8zvc.js → Preview-DGrNJzmQ.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-BscD4kCT.js → QBOConnectionScreen-D8kad0sY.js} +1 -1
- package/dist/assets/ReferralListScreen-BinxYKYV.js +5 -0
- package/dist/assets/{ReimbursementApprovalRoutes-CFc6siNR.js → ReimbursementApprovalRoutes-DUXSVDw2.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-C2FMWk-j.js → ReimbursementApprovalRuleDetailScreen-CgGJOA1u.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-D54WJIgE.js → ReimbursementRoutes-BLwsvqh4.js} +1 -1
- package/dist/assets/{ReportsRoutes-BrtJ_-m2.js → ReportsRoutes-kfn77iwu.js} +1 -1
- package/dist/assets/RewardsRoutes-D-idKZz4.js +1 -0
- package/dist/assets/ScreenRoutes-DQbm0Bd3.js +2 -0
- package/dist/assets/{SettingsRoutes-DQ0yh-8g.js → SettingsRoutes-CngnqM2k.js} +7 -7
- package/dist/assets/{SetupPagesScreen-DObnppv9.js → SetupPagesScreen-Bi7ql3Uc.js} +5 -5
- package/dist/assets/SignInScreen-B9F_7T01.js +1 -0
- package/dist/assets/SignOutScreen-5ReTv-2r.js +9 -0
- package/dist/assets/{TaskListScreen-C5nOYLN5.js → TaskListScreen-B92kUrNr.js} +2 -2
- package/dist/assets/{TaskRoutes-BhLal2L_.js → TaskRoutes-CtH7gfhd.js} +2 -2
- package/dist/assets/{TransactionDetailRoutes-CiULbGzd.js → TransactionDetailRoutes-CCGKgR5c.js} +1 -1
- package/dist/assets/{TransactionDetailScreen-ByvC4V3o.js → TransactionDetailScreen-DkN9stCC.js} +2 -2
- package/dist/assets/{TransactionListRoutes-DHP_TahM.js → TransactionListRoutes-BPGGfQYb.js} +1 -1
- package/dist/assets/{TreasuryRoutes-CJ_vGeGY.js → TreasuryRoutes-D3yl0U9P.js} +6 -6
- package/dist/assets/{VendorsRoutes-DpGiilRm.js → VendorsRoutes-CSf7xhk-.js} +1 -1
- package/dist/assets/WiseConfirmationScreen-CURrKHsJ.js +12 -0
- package/dist/assets/{ZeniAccountRoutes-Gt73EasM.js → ZeniAccountRoutes-Bvp0Q8q4.js} +1 -1
- package/dist/assets/{ZeniAccountStatementScreen-BrO-jfY4.js → ZeniAccountStatementScreen-BMxfX19s.js} +2 -2
- package/dist/assets/{accountMappingHelper-DpVopnHv.js → accountMappingHelper-Dk_23sfW.js} +1 -1
- package/dist/assets/{analytics-DrcSmo8f.js → analytics-BWMRmW6M.js} +1 -1
- package/dist/assets/{analyticsHelper-JSt5oFi8.js → analyticsHelper-DG9Hj57M.js} +1 -1
- package/dist/assets/{core-C5W8nxR1.js → core-BCzXpSj2.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-B4ofrmT1.js → decodeURIComponentSafe-BaVz5hiZ.js} +1 -1
- package/dist/assets/{dnd-BN-V7BQY.js → dnd-CMRnbWd0.js} +1 -1
- package/dist/assets/{empty-MvieyTY2.js → empty-BKEgBO1f.js} +1 -1
- package/dist/assets/{empty-efGcmHNA.js → empty-Huff3QoR.js} +1 -1
- package/dist/assets/{emptyVideoElement-D22fm1RT.js → emptyVideoElement-C3GRsAmj.js} +1 -1
- package/dist/assets/{epic-C0tR2xX2.js → epic-D2GJzmn7.js} +1 -1
- package/dist/assets/getLocaleForTenant-CJtZ2gVK.js +1 -0
- package/dist/assets/{index-EdDjmZsZ.js → index-BgtDuR7o.js} +2 -2
- package/dist/assets/{index-DCXaVzkG.js → index-D93ptPBX.js} +1 -1
- package/dist/assets/{index-BBxc6qHy.js → index-DD1fRxxW.js} +1 -1
- package/dist/assets/{index-DFbS5Iez.js → index-DnXXSSQr.js} +1 -1
- package/dist/assets/{index-DepVuD4d.js → index-F79NhlWc.js} +1 -1
- package/dist/assets/{index-DhtfwmwQ.js → index-RV1w-9NK.js} +1 -1
- package/dist/assets/{index-zWiSHOLd.js → index-jnJxCrIS.js} +8969 -8899
- package/dist/assets/{index-BKQuSuay.js → index-kgnb8add.js} +1 -1
- package/dist/assets/{lexical-LmEGSncg.js → lexical-CLfce6-g.js} +1 -1
- package/dist/assets/{liveblocks-D7MTBeqB.js → liveblocks-DgQRIsyS.js} +1 -1
- package/dist/assets/{lottie-Bcxhpfzr.js → lottie-D0l9jr5K.js} +1 -1
- package/dist/assets/{mui-CD-lJRrw.js → mui-BU88kzbO.js} +1 -1
- package/dist/assets/{pathToGoBack-C_7fp8nd.js → pathToGoBack-Ct5jhqDD.js} +1 -1
- package/dist/assets/{pdf-BpbLbEAW.js → pdf-DF6S6f8j.js} +3 -3
- package/dist/assets/{pdf-lib-ByihSr1f.js → pdf-lib-f4RyuKvB.js} +1 -1
- package/dist/assets/{plaid-D3pZvM_U.js → plaid-CnRfB1Gp.js} +1 -1
- package/dist/assets/{pusher-AkfuRGDS.js → pusher-CI9cnuX_.js} +1 -1
- package/dist/assets/{react-B6crEeoU.js → react-B17DU2Q8.js} +1 -1
- package/dist/assets/{react-CSTU0nI4.js → react-BkeoZEiD.js} +1 -1
- package/dist/assets/{react-DRz-S9RE.js → react-Df1nu3Jg.js} +1 -1
- package/dist/assets/{react-D8oP0smP.js → react-DjeVbFvw.js} +1 -1
- package/dist/assets/{react-BXOXkMoR.js → react-WN5d6PKR.js} +1 -1
- package/dist/assets/{react-C52QZxfc.js → react-o34Ibe9E.js} +1 -1
- package/dist/assets/{recharts-BnfhYobU.js → recharts-LNNCqKNo.js} +1 -1
- package/dist/assets/{routePaths-DEzJucxI.js → routePaths-BrpCPMmb.js} +1 -1
- package/dist/assets/{sentry-DVVsR48F.js → sentry-BHeH_DOJ.js} +1 -1
- package/dist/assets/{url-BYgELt_H.js → url-BMGD5Vyc.js} +1 -1
- package/dist/assets/{url-DjoTUBiJ.js → url-CvYl_jYF.js} +1 -1
- package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-CFGGYb9p.js → useAiCfoDashboardSuggestedQuestionsChips-CSP2rs4k.js} +1 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-BjXqzhKq.js +1 -0
- package/dist/assets/useCashManagementBanner-Chf9Io8m.js +1 -0
- package/dist/assets/{useChargeCardPusherEvents-D7wpQRE_.js → useChargeCardPusherEvents-a1rzK4fg.js} +1 -1
- package/dist/assets/{useDeviceId-BnrfnzK7.js → useDeviceId-CIiEEeSM.js} +1 -1
- package/dist/assets/{useEmailConnectResultRefresh-lWxckS4M.js → useEmailConnectResultRefresh-KQRYFmno.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-CPcuN5d8.js → useInitialThreadRequest-CIKn9Zyw.js} +1 -1
- package/dist/assets/{utils-fE4-NjiI.js → utils-BOLLxecq.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-DL8BhG5u.js → withTransactionSidePanel-ClneTDW0.js} +2 -2
- package/dist/assets/{zeni-epic-state-BDJoMjoR.js → zeni-epic-state-CeMrW02Z.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/AddressRoutes-Cn4m82VU.js +0 -1
- package/dist/assets/CustomerOnboardingAuthScreen-DTabcWxk.js +0 -1
- package/dist/assets/DrawerScreen-CMGdvP71.js +0 -1
- package/dist/assets/FeaturePreviewScreen-B_0uKukg.js +0 -1
- package/dist/assets/MagicLinkRoutes-CzGwkhkX.js +0 -72
- package/dist/assets/MobileAppDrawer-B2FnRj4O.js +0 -1
- package/dist/assets/NotFoundScreen-DIeJhZda.js +0 -1
- package/dist/assets/OAuthConsentScreen-CgMFQ18r.js +0 -1
- package/dist/assets/PandLWithForecastRoutes-H0hB0AgF.js +0 -1
- package/dist/assets/PeopleRoutes-B_g8cfdv.js +0 -22
- package/dist/assets/PerformanceRoutes-MEt6tq7t.js +0 -1
- package/dist/assets/ReferralListScreen-bLo9_GQZ.js +0 -5
- package/dist/assets/RewardsRoutes-C7Z3exkk.js +0 -1
- package/dist/assets/ScreenRoutes-DXjEvmoW.js +0 -2
- package/dist/assets/SignInScreen-CSr-6Z_R.js +0 -1
- package/dist/assets/SignOutScreen-DnThEHBw.js +0 -9
- package/dist/assets/WiseConfirmationScreen-sm6bvEyo.js +0 -12
- package/dist/assets/getLocaleForTenant-B_Il-nCM.js +0 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-DoAmGuPw.js +0 -1
- package/dist/assets/useCashManagementBanner-HwbKcvlA.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-jnJxCrIS.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-BHeH_DOJ.js"><link rel="modulepreload" crossorigin href="/assets/core-BCzXpSj2.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-CeMrW02Z.js"><link rel="modulepreload" crossorigin href="/assets/mui-BU88kzbO.js"><link rel="modulepreload" crossorigin href="/assets/analytics-BWMRmW6M.js"><link rel="modulepreload" crossorigin href="/assets/utils-BOLLxecq.js"><link rel="stylesheet" crossorigin href="/assets/index-BUmr5maU.css"></head><body style="margin:0"><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><div class="app-shell-loader" id="app-shell-loader"><div class="app-shell-sidebar"><div class="app-shell-sidebar-group"><div class="app-shell-bar zeni-logo" style="width:96px;height:20px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:78px;height:16px"></div><div class="app-shell-bar" style="width:46px;height:16px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:110px;height:16px"></div><div class="app-shell-bar" style="width:84px;height:16px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:84px;height:16px"></div><div class="app-shell-bar" style="width:64px;height:16px"></div></div></div><div class="app-shell-main"><div class="app-shell-navbar"><div class="app-shell-bar" style="width:106px;height:27px"></div><div class="app-shell-bar" style="width:111px;height:32px"></div></div><div class="app-shell-logo"><svg width="96" height="96" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16.768 0.0270284C16.571 -0.055168 16.348 0.0572476 16.2913 0.267574C16.2713 0.342517 16.2489 0.417461 16.2253 0.491196C16.0094 1.15723 15.6459 1.76645 15.148 2.27776C14.3056 3.14203 13.1847 3.61949 11.9918 3.6207H11.9883C10.7978 3.6207 9.67689 3.14565 8.83445 2.2838C8.33653 1.7737 7.97077 1.16448 7.75367 0.499657C7.73007 0.425922 7.70765 0.350979 7.68641 0.276035C7.62978 0.065709 7.40678 -0.0454978 7.20974 0.0366985C6.05463 0.522624 4.98565 1.17899 4.0323 1.97436C3.91195 2.07468 3.87301 2.24512 3.93083 2.39259C3.9792 2.51589 4.03112 2.63797 4.08539 2.75764C4.51133 3.70894 5.10364 4.5853 5.84815 5.34682C7.48937 7.0246 9.66863 7.9493 11.9871 7.9493H11.9954C14.3162 7.94689 16.4978 7.01855 18.1379 5.33595C18.8812 4.57321 19.4711 3.69564 19.8959 2.74434C19.9502 2.62347 20.0009 2.50138 20.0493 2.37809C20.1071 2.23062 20.0682 2.06018 19.9478 1.95985C18.9933 1.16569 17.9231 0.511745 16.768 0.0270284Z"/><path d="M19.9102 21.2422C19.4843 20.2933 18.8931 19.4194 18.151 18.6603C16.5086 16.9801 14.3223 16.053 12.0038 16.0578C8.50304 16.0614 5.48371 18.1961 4.11031 21.2603C4.05722 21.38 4.0053 21.5009 3.95575 21.623C3.89675 21.7704 3.93569 21.9421 4.05722 22.0436C5.01175 22.8366 6.08073 23.4893 7.23466 23.9728C7.4317 24.055 7.65352 23.9438 7.71134 23.7335C7.73139 23.6573 7.75381 23.5836 7.77859 23.5086C8.37207 21.6979 10.0416 20.3888 12.0073 20.3864H12.012C13.2025 20.3864 14.3234 20.8614 15.1659 21.7233C15.6626 22.231 16.026 22.8378 16.2431 23.5002C16.2679 23.5739 16.2903 23.6489 16.3104 23.7238C16.3682 23.9341 16.59 24.0453 16.787 23.9619C17.9422 23.476 19.01 22.8209 19.9633 22.0255C20.0837 21.9252 20.1226 21.7535 20.0648 21.606C20.0164 21.4828 19.9645 21.3631 19.9102 21.2422Z"/><path d="M0.132148 10.1666C0.158105 9.98769 0.305591 9.85352 0.482575 9.85352L23.5093 9.81726C23.6863 9.81726 23.8338 9.95022 23.8609 10.1291C23.9518 10.7347 23.999 11.3548 23.999 11.9858C24.0001 12.6131 23.9541 13.2284 23.8668 13.8292C23.8408 14.0081 23.6934 14.1422 23.5164 14.1422L0.489654 14.1773C0.312671 14.1773 0.165185 14.0443 0.138047 13.8654C0.0471956 13.2598 0 12.6397 0 12.0088C0 11.3826 0.0448358 10.7673 0.132148 10.1666Z"/></svg></div></div></div></body></html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/web-app-ui",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.94-dev",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/**/*"
|
|
6
6
|
],
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@stripe/stripe-js": "^4.4.0",
|
|
30
30
|
"@zeniai/client-analytics": "2.0.31",
|
|
31
31
|
"@zeniai/client-epic-state": "5.1.24",
|
|
32
|
-
"@zeniai/web-components": "4.2.
|
|
32
|
+
"@zeniai/web-components": "4.2.14",
|
|
33
33
|
"color": "3.1.3",
|
|
34
34
|
"cross-fetch": "^4.0.0",
|
|
35
35
|
"crypto-js": "4.2.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./liveblocks-D7MTBeqB.js";import{A as d}from"./AddressScreen-Dqns8o7L.js";import i from"./NotFoundScreen-DIeJhZda.js";import"./sentry-DVVsR48F.js";import{o as s,p as r}from"./core-C5W8nxR1.js";import"./zeni-epic-state-BDJoMjoR.js";import"./recharts-BnfhYobU.js";import"./index-zWiSHOLd.js";import"./mui-CD-lJRrw.js";import"./analytics-DrcSmo8f.js";import"./plaid-D3pZvM_U.js";import"./dnd-BN-V7BQY.js";import"./stripe-DMRn4zHo.js";import"./lottie-Bcxhpfzr.js";import"./lexical-LmEGSncg.js";import"./pdf-BpbLbEAW.js";import"./utils-fE4-NjiI.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new t.Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="cd0ff2b4-1e27-4329-addf-f475e5a9db34",t._sentryDebugIdIdentifier="sentry-dbid-cd0ff2b4-1e27-4329-addf-f475e5a9db34")}catch{}})();function _(){return e.jsxs(s,{children:[e.jsx(r,{path:"/edit/:addressType/:addressId",element:e.jsx(d,{})}),e.jsx(r,{path:"/new/:addressType",element:e.jsx(d,{})}),e.jsx(r,{path:"*",element:e.jsx(i,{})})]})}export{_ as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-D7MTBeqB.js";import{z as n}from"./index-zWiSHOLd.js";import{g as d}from"./QBOConnectionScreen-BscD4kCT.js";import"./sentry-DVVsR48F.js";import{g as p,N as s}from"./core-C5W8nxR1.js";import"./zeni-epic-state-BDJoMjoR.js";import"./recharts-BnfhYobU.js";import"./mui-CD-lJRrw.js";import"./analytics-DrcSmo8f.js";import"./plaid-D3pZvM_U.js";import"./dnd-BN-V7BQY.js";import"./stripe-DMRn4zHo.js";import"./lottie-Bcxhpfzr.js";import"./lexical-LmEGSncg.js";import"./pdf-BpbLbEAW.js";import"./utils-fE4-NjiI.js";import"./empty-efGcmHNA.js";import"./pdf-lib-ByihSr1f.js";import"./index-BKQuSuay.js";import"./url-DjoTUBiJ.js";import"./index-DhtfwmwQ.js";import"./decodeURIComponentSafe-B4ofrmT1.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new t.Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="817363c8-7f1d-4590-b58b-cef70b99ca15",t._sentryDebugIdIdentifier="sentry-dbid-817363c8-7f1d-4590-b58b-cef70b99ca15")}catch{}})();const U=()=>{const t=p(),{code:o,realmId:r,state:e}=d(t.search),m=n.getSignedInUser()?.userId??"";if(f(o,r,e,m)===!0){const a=`../../${e}/onboarding?code=${o}&realmId=${r}&state=auth_flow`;return i.jsx(s,{to:a})}return i.jsx(s,{to:"../../"})},f=(t,o,r,e)=>t!=""&&o!=""&&r!=""&&e!=null&&e!="";export{U as default,f as hasValidParams};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-D7MTBeqB.js";import{K as l,D as c,y as f}from"./index-zWiSHOLd.js";import{D as p}from"./mui-CD-lJRrw.js";import"./sentry-DVVsR48F.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="9bc2d0d9-a1d8-45e5-aeda-5725b86102f8",e._sentryDebugIdIdentifier="sentry-dbid-9bc2d0d9-a1d8-45e5-aeda-5725b86102f8")}catch{}})();const b={drawerLeftMargin:new c(0,0,240)};function h(e){const{isOpen:r,drawerLeftMargin:o,children:a,onClose:t}=e,n=l(),d=o?.valuePx(n)??b.drawerLeftMargin.valuePx(n),s=f();return i.jsx(p,{anchor:"right",open:r,PaperProps:{style:{width:`calc(100% - ${d})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:t,children:a})}export{h as D};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-D7MTBeqB.js";import{a as r}from"./sentry-DVVsR48F.js";import{a5 as f,a6 as l,a7 as p,p as m}from"./index-zWiSHOLd.js";import"./mui-CD-lJRrw.js";import c from"./NotFoundScreen-DIeJhZda.js";import{h as u,g as b}from"./core-C5W8nxR1.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]="b50ef9de-1e19-4e43-a9d6-fe41049e3584",e._sentryDebugIdIdentifier="sentry-dbid-b50ef9de-1e19-4e43-a9d6-fe41049e3584")}catch{}})();const _=()=>{const e=u(),a=b(),t=r.useCallback(()=>{window.open("https://www.zeni.ai/demo/request","_blank")},[]),d=r.useCallback(()=>{(()=>{const n=m(a.state?.pathnameStackToGoBack),i=n.poppedPathname??k();e(i,{state:{pathnameStackToGoBack:n.newStack}})})()},[]),o=f(a.pathname);return o!=null?s.jsx(l,{menuItem:p(o),onDemoClick:t,onGoBack:d}):s.jsx(c,{})},k=(e=2)=>{let a="../";for(let t=0;t<e;t++)a=`${a}../`;return a};export{_ as F};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-D7MTBeqB.js";import{i as S,n as g,h as C,g as y,u as ee,t as ae,j as E,N as te,o as ne,p}from"./core-C5W8nxR1.js";import{Mb as k,Mc as v,Md as M,Bf as B,B1 as T,Me as D,Mf as oe,Mg as se,B5 as ie,fA as $,Bc as le,B9 as re}from"./zeni-epic-state-BDJoMjoR.js";import{K as x,o as r,m as de,e as j,j as G,r as ce,p as me,n as pe,q as K,C as ue,U as he,s as ge,F as xe,y as fe,v as be,B as we,w as Se,W as ye,x as ke,A as ve,D as je,E as $e}from"./index-zWiSHOLd.js";import{n as m}from"./mui-CD-lJRrw.js";import f from"./NotFoundScreen-DIeJhZda.js";import{a as I}from"./sentry-DVVsR48F.js";import"./recharts-BnfhYobU.js";import"./analytics-DrcSmo8f.js";import"./plaid-D3pZvM_U.js";import"./dnd-BN-V7BQY.js";import"./stripe-DMRn4zHo.js";import"./lottie-Bcxhpfzr.js";import"./lexical-LmEGSncg.js";import"./pdf-BpbLbEAW.js";import"./utils-fE4-NjiI.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]="c99cc19c-fbca-4a35-80cf-94fbb6052aca",e._sentryDebugIdIdentifier="sentry-dbid-c99cc19c-fbca-4a35-80cf-94fbb6052aca")}catch{}})();const Ie=m.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100%;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
10
|
-
`,Ce=g(function(e){const t=k(e),n=v(e),{companyName:o}=t;return{companyName:o,isDisabled:t.fetchState!=="Completed"?"disabled":void 0,magicLinkBankAccountDetails:n,magicLinkViewState:t}},function(e,t){const{vendorId:n,billId:o}=t;return{onFetchBankName:s=>{e(T(s))},onSaveHandler:s=>{j.trackBillPayMagicLinkSubmitBankAccountDetails(o),e(B(s,"standard",n,o))},onACHDetailsUpdated:s=>{const{bankAccountSection:l}=s;e(M({data:l}))}}})(de);function F(){const e=x(),{vendorId:t,billId:n}=S();return t==null||n==null?a.jsx(f,{}):a.jsx(a.Fragment,{children:a.jsx(Ie,{windowSize:e,children:a.jsx(Ce,{vendorId:t,billId:n})})})}const Be=m.div`
|
|
11
|
-
display: flex;
|
|
12
|
-
height: 100vh;
|
|
13
|
-
width: 100%;
|
|
14
|
-
flex: 1 1 auto;
|
|
15
|
-
flex-direction: column;
|
|
16
|
-
align-items: center;
|
|
17
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
18
|
-
box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
19
|
-
`,De=g(function(e,t){const{isSubPage:n}=t;return{addressToEdit:D(e),googleAPIKey:G.googleMapsAPIKey,isSubPage:n}},function(e,t){const{navigate:n,location:o}=t,s=()=>{const l=me(o.state?.pathnameStackToGoBack),i=l.poppedPathname??Pe();n(i,{state:{pathnameStackToGoBack:l.newStack}})};return{onSubmitHandler:l=>{const i=ze(l);e(oe({addressToCreate:i})),s()},onCancel:()=>{s()}}})(ce);function Ae({isSubPage:e}){const t=C(),n=y(),o=x();return a.jsx(a.Fragment,{children:a.jsx(Be,{windowSize:o,children:a.jsx(De,{location:n,navigate:t,isSubPage:e===!0,googleAPIKey:G.googleMapsAPIKey})})})}const Pe=(e=2)=>{let t="../";for(let n=0;n<e;n++)t=`${t}../`;return t},ze=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}),Le=m.div`
|
|
20
|
-
display: flex;
|
|
21
|
-
height: 100%;
|
|
22
|
-
width: 100%;
|
|
23
|
-
flex: 1 1 auto;
|
|
24
|
-
flex-direction: column;
|
|
25
|
-
align-items: center;
|
|
26
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
27
|
-
box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
28
|
-
`,Ne=g(function(e){const t=k(e),n=v(e),o=D(e),{companyName:s}=t;return{companyName:s,isDisabled:t.fetchState!=="Completed"?"disabled":void 0,magicLinkBankAccountDetails:n,mailingAddressDetails:o,magicLinkViewState:t}},function(e,t){const{navigate:n,location:o,vendorId:s,billId:l}=t;return{onFetchBankName:i=>{e(T(i))},onSaveHandler:i=>{j.trackBillPayMagicLinkSubmitBankAccountDetails(l),e(B(i,"us-domestic",s,l))},onWireDetailsUpdated:i=>{const{bankAccountSection:d}=i;e(M({data:d}))},onAddressClick:()=>{const i=o.pathname.replace("us-domestic","address"),d=K(o.state?.pathnameStackToGoBack,o.pathname);n(i,{state:{pathnameStackToGoBack:d}})}}})(pe);function Ee(){const e=C(),t=y(),n=x(),{vendorId:o,billId:s}=S();return o==null||s==null?a.jsx(f,{}):a.jsx(a.Fragment,{children:a.jsx(Le,{windowSize:n,children:a.jsx(Ne,{location:t,navigate:e,vendorId:o,billId:s})})})}const Fe=m.div`
|
|
29
|
-
display: flex;
|
|
30
|
-
height: 100%;
|
|
31
|
-
width: 100%;
|
|
32
|
-
flex: 1 1 auto;
|
|
33
|
-
flex-direction: column;
|
|
34
|
-
align-items: center;
|
|
35
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
36
|
-
box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
37
|
-
`,Me=g(function(e){const t=k(e),n=v(e),o=D(e),{companyName:s}=t;return{companyName:s,isDisabled:t.fetchState!=="Completed"?"disabled":void 0,magicLinkBankAccountDetails:n,mailingAddressDetails:o,magicLinkViewState:t}},function(e,t){const{navigate:n,location:o,vendorId:s,billId:l}=t;return{onFetchBankNameBySwift:i=>{e(ie(i))},onSaveHandler:i=>{j.trackBillPayMagicLinkSubmitBankAccountDetails(l),e(B(i,"international",s,l,t.isLocalCurrencyEnabled))},onBankDetailsUpdated:i=>{const{internationalWireSwiftAccountSection:d}=i;e(se({data:d}))},onAddressClick:()=>{const i=o.pathname.replace("international","address"),d=K(o.state?.pathnameStackToGoBack,o.pathname);n(i,{state:{pathnameStackToGoBack:d}})}}})(ge);function Te(){const e=C(),t=y(),n=x(),{vendorId:o,billId:s}=S(),{useFeatureGate:l}=ue(),{isFeatureEnabled:i}=l(he.isBillPayLocalCurrencyFeatureEnabled);return o==null||s==null?a.jsx(f,{}):a.jsx(Fe,{windowSize:n,children:a.jsx(Me,{location:t,navigate:e,vendorId:o,billId:s,isLocalCurrencyEnabled:i})})}const Ge={containerWidth:new je(100,58)},Ke=m(ke)`
|
|
38
|
-
width: ${r.sp4};
|
|
39
|
-
height: ${r.sp4};
|
|
40
|
-
margin-bottom: ${r.sp3};
|
|
41
|
-
margin-top: ${r.sp3};
|
|
42
|
-
margin-left: ${r.sp8};
|
|
43
|
-
cursor: pointer;
|
|
44
|
-
position: absolute;
|
|
45
|
-
color: ${e=>e.theme.colors.brandColorJade};
|
|
46
|
-
`,Ve=m.div`
|
|
47
|
-
display: flex;
|
|
48
|
-
height: 100vh;
|
|
49
|
-
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
50
|
-
width: 100vw;
|
|
51
|
-
overflow-y: scroll;
|
|
52
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
53
|
-
`,We=m.div`
|
|
54
|
-
display: flex;
|
|
55
|
-
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
56
|
-
flex-direction: column;
|
|
57
|
-
width: ${e=>`${Ge.containerWidth.value(e.windowSize)}%`};
|
|
58
|
-
${e=>e.windowSize!=="small"?"overflow: auto;":""}
|
|
59
|
-
box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
60
|
-
padding-top: ${e=>e.windowSize!=="small"?r.sp2:"0px"};
|
|
61
|
-
`,_e=m.div`
|
|
62
|
-
display: flex;
|
|
63
|
-
flex-direction: column;
|
|
64
|
-
align-items: center;
|
|
65
|
-
justify-content: center;
|
|
66
|
-
padding: ${e=>e.windowSize==="small"?r.sp3:`62px ${r.sp6} ${r.sp9} ${r.sp8}`};
|
|
67
|
-
height: ${e=>e.windowSize==="small"?"490px":"auto"};
|
|
68
|
-
overflow: ${e=>e.windowSize==="small"?"unset":"hidden"};
|
|
69
|
-
width: ${e=>e.windowSize=="small"?"auto":"42%"};
|
|
70
|
-
background-color: ${e=>e.windowSize==="small"?e.theme.colors.grey4:e.theme.colors.background};
|
|
71
|
-
margin-top: ${e=>e.windowSize==="small"?e.isAddressPage?"0px":"186px":"unset"};
|
|
72
|
-
`,He=g(function(e,t){return{file:t.file,type:t.type}})(ve);function h({appContent:e}){const t=ee(),n=y(),{tenantEmailDomain:o,vendorId:s,billId:l}=S(),[i]=ae(),d=i.get("token"),V=n.pathname.includes("address"),b=x(),W=xe(),A=fe(),w=be(),_=()=>{W.toggle()},H=E(u=>k(u)),U=E(u=>v(u)),{authParams:q,fetchState:c,billAttachment:J,billFetchState:P,companyName:O,currencySymbol:Q,amount:R}=H,{tenantId:z,userId:L,sessionId:N}=q,{fetchState:X,internationalBankAccountCreateStatus:Y}=U;return I.useEffect(()=>{$()},[]),I.useEffect(()=>{w&&c==="Not-Started"&&s!=null&&o!=null&&d!=null&&t(le(s,o,d))},[w,c,s,o,d,t]),I.useEffect(()=>{w&&c==="Completed"&&($(L,N,z),l!=null&&t(re(l)))},[c,w,L,N,z,l,t]),c==="Error"?a.jsx(f,{}):X==="Completed"||Y.fetchState==="Completed"?($(),a.jsx(te,{to:"../../../../../../../bank/account/save/success",replace:!0,relative:"path"})):c==="In-Progress"?a.jsx(we,{fetchState:c,style:{height:"100vh",backgroundColor:A.colors.grey5,boxShadow:`0px 2px ${r.sp1} ${A.colors.dropShadowNormal}`}}):a.jsxs(a.Fragment,{children:[c==="Completed"&&P==="Completed"&&a.jsx(Se,{analytics:j,onLoad:u=>(Z=>Z.trackBillPayMagicLinkPageLoad(o??"",s??"",O,l??"",Ue(n.pathname),Q,R))(u)}),a.jsxs(Ve,{windowSize:b,children:[b!=="small"?a.jsx(Ke,{onClick:_}):null,a.jsx(_e,{windowSize:b,isAddressPage:V,children:P==="In-Progress"?a.jsx(ye,{size:"ExtraLarge",start:!0}):a.jsx(He,{file:J,type:"bill"})}),a.jsx(We,{windowSize:b,children:e})]})]})}const Ue=e=>`${e.split("/").at(-2)}_${e.split("/").at(-1)}`;function qe(){return a.jsx($e,{})}function da(){return a.jsxs(ne,{children:[a.jsx(p,{path:"bank/account/save/success",element:a.jsx(qe,{})}),a.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/ach/standard",element:a.jsx(h,{appContent:a.jsx(F,{})})}),a.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/ach/same-day",element:a.jsx(h,{appContent:a.jsx(F,{})})}),a.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/address",element:a.jsx(h,{appContent:a.jsx(Ae,{isSubPage:!0})})}),a.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/us-domestic",element:a.jsx(h,{appContent:a.jsx(Ee,{})})}),a.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/international",element:a.jsx(h,{appContent:a.jsx(Te,{})})}),a.jsx(p,{path:"*",element:a.jsx(f,{})})]})}export{da as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as N}from"./liveblocks-D7MTBeqB.js";import{a as l}from"./sentry-DVVsR48F.js";import{u as fe,j as n,i as Ye,g as qe,h as We,l as P}from"./core-C5W8nxR1.js";import{eX as me,fF as Xe,fG as pe,fr as Ke,bn as Qe,eW as Je,fH as ea,fI as aa,fK as ta,fN as na,fO as g,fQ as sa,fR as de,fU as oa,fS as ia,fT as ra,fV as da,cN as ca,fX as la,cT as ua,fq as fa,g0 as ma,g1 as pa,f$ as ba}from"./zeni-epic-state-BDJoMjoR.js";import{a9 as ha,aa as Sa,F as ga,C as Ea,z as k,v as ka,u as Ca,U as r,i as ya,d as Ia,ab as Ta,I as wa,c as Aa,ac as _a,a5 as Fa,ad as Da,ae as va,af as ce,ag as le,L as $a,ah as Ga,ai as ue,e as R,a1 as Ma,q as w,aj as x,ak as Pa}from"./index-zWiSHOLd.js";import{D as Ra}from"./mui-CD-lJRrw.js";(function(){try{var f=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new f.Error().stack;d&&(f._sentryDebugIds=f._sentryDebugIds||{},f._sentryDebugIds[d]="d26a4e5a-9caf-4c7f-a255-d33092baa45b",f._sentryDebugIdIdentifier="sentry-dbid-d26a4e5a-9caf-4c7f-a255-d33092baa45b")}catch{}})();const xa=ha(({isAppContentDrawerOpen:f,handleDrawerToggle:d})=>{const{tenantEmailDomain:t}=Ye(),a=qe(),C=ga(),o=We(),U=Ke(),m=fe(),{useFeatureGate:i}=Ea(),V=k.getSignedInUser(),B=Qe(V),s=n(e=>me(e)),be=s.masterTOSInfo?.isMasterTOSAccepted??!1,O=n(e=>Je(e)),j=O.uiState.currentChatSessionId,y=ka(),{setLoading:he}=Ca(),[A,L]=l.useState(void 0),_=P("/:tenantEmailDomain/dashboard")!==null,z=P("/:tenantEmailDomain/reports")!==null,I=P("/:tenantEmailDomain/onboarding/*")!==null,Se=!!s.company?.companyZeniAccountInfo?.isZeniAccountEnabled,{isFeatureEnabled:ge}=i(r.isChargeCardFeatureEnabled),{isFeatureEnabled:Z}=i(r.isDebitCardFeatureEnabled),Ee=ya(s,ge,Z),{isFeatureEnabled:ke}=i(r.isSettingsFeatureEnabled),H=n(e=>ea(e)),{isFeatureEnabled:T}=i(r.isReferralFeatureEnabled),F=n(e=>aa(e));l.useEffect(()=>{y&&T&&!I&&F.fetchState==="Not-Started"&&m(ta(!0))},[y,T,F.fetchState,I]);const h=k.getSignedInUser(),D=n(e=>e.tenantState),Ce=n(e=>D.fetchState==="Completed"?na(e):[]),E=n(e=>e.expenseAutomationViewState.selectedPeriodByTenantId),{isFeatureEnabled:ye}=i(r.isApAgingFeatureEnabled),{isFeatureEnabled:Ie}=i(r.isArAgingFeatureEnabled),{isFeatureEnabled:Te}=i(r.isExpenseAutomationEnabled),{isFeatureEnabled:we}=i(r.isExpenseAutomationEnabledV2),Y=Ia(),{isFeatureEnabled:Ae}=i(r.isDashboardSidebarHalloweenAnimationEnabled),{isFeatureEnabled:_e}=i(r.isDashboardSidebarThanksGivingAnimationEnabled),{isFeatureEnabled:Fe}=i(r.isDashboardSidebarChristmasAnimationEnabled),{isFeatureEnabled:De}=i(r.isDashboardSidebarNewYearAnimationEnabled),v=s.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",{isFeatureEnabled:ve}=i(r.isTaskManagerCustomerUserAccessEnabled),$e=B||!B&&ve,Ge=n(e=>g(e).totalUnreadCount),Me=n(e=>g(e).reducedFetchCountState),q=n(e=>g(e).notificationDetailsByTab.tasks.uiState.unreadCount),W=n(e=>g(e).notificationDetailsByTab.comments.uiState.unreadCount),Pe=n(e=>g(e).notificationDetailsByTab.tasks.fetchCountState),$=n(e=>g(e).notificationDetailsByTab.comments.fetchCountState),{inboxNotifications:X,isLoading:K,isFetchingMore:Q,hasFetchedAll:J,fetchMore:Re}=Ta();l.useEffect(()=>{const e=setTimeout(()=>Re?.(),0);return()=>clearTimeout(e)}),l.useEffect(()=>{if(K===!1&&Q===!1&&J===!0)if(s?.companyId!=null&&X!=null){const e=`dashboard_${s.companyId}`;L(X.filter(u=>u.roomId===e&&u.readAt==null).length)}else L(0)},[K,Q,J]),l.useEffect(()=>{y&&!I&&Pe.fetchState==="Not-Started"&&U.tenantId!=null&&m(sa("task_manager","dashboard"))},[y,U.tenantId]),l.useEffect(()=>{I||$.fetchState!=="Not-Started"||m(de({fetchCountState:{fetchState:"In-Progress",error:void 0}},"comments"))},[]),l.useEffect(()=>{A!=null&&$.fetchState==="In-Progress"&&(m(de({fetchCountState:{fetchState:"Completed",error:void 0}},"comments")),m(pe({unreadCount:A},"comments")))},[A,$.fetchState]);const xe={fetchStatus:Me,count:Ge},ee=t!=null?k.getSignedInUserTenant(t):null,ae=n(e=>ee?.tenantId!=null?oa(e,ee.tenantId):void 0),S=[];ye===!1&&S.push("accounts_payable_aging"),Ie===!1&&S.push("accounts_receivable_aging"),S.push("zeni_accounts_promo_card","treasury_promo_card"),T===!1&&S.push("rewards_card"),Y===!1&&S.push("expense_automation_card");const Ne=wa(),te=n(e=>ia(e,S,h,we,Te).fetchState),ne=n(e=>ra(e).fetchState),Ue=_&&(te==="Completed"||te==="Error")||z&&(ne==="Completed"||ne==="Error")||!_&&!z?void 0:"disabled",Ve=l.useMemo(()=>da(s.userRole),[s.userRole]),Be=ca(Ve),Oe=s?.rewardsLastViewedTime==null,je=h?.userEmail!=null&&H.fetchState==="Completed"&&la(H.notificationSettings,h.userEmail,Z,s),se=Aa(),Le=se&&_a(a),oe=ua(Ne?.loggedInUserRoleMap),ie=s.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,G=l.useCallback(()=>v&&oe&&!k.getTreasuryPopupSeen(t??"")&&ie===!1&&Fa(a.pathname)!=="treasury",[v,oe,ie,a.pathname,t]),[ze,re]=l.useState(G);l.useEffect(()=>{re(G())},[G]);const Ze=n(e=>e.treasurySetupViewState.treasuryFundsDetails).fundsDetails,He=Da(Ze);return N.jsx(Ra,{container:window.document.body,variant:"temporary",open:f,onClose:()=>d(!1),PaperProps:{sx:{width:240,zIndex:8,borderRight:"none",backgroundImage:"none"}},ModalProps:{keepMounted:!0},children:N.jsx(va,{signedInUser:V,currentTenantId:D.currentTenantId??"",tenants:D.fetchState==="Completed"?Ce:ae!=null?[ae]:[],currentTenant:s,isTenantDropdownDisabled:Ue,isSettings:le(a),isSettingsFeatureEnabled:ke,isVendorsTabVisible:Be,isZeniAccountEnabled:Se,isChargeCardEnabled:Ee,isTreasuryEnabled:v,treasuryYieldPercentage:He,isTreasuryPopupVisible:ze,isNotificationsTabVisible:je,notificationCountDetails:xe,isExpenseAutomationEnabledForUser:Y,selectedMenu:ce(a),rewardsConfiguration:{isRewardsTabVisible:T,isRewardsAnimated:Oe,rewardsPlan:F.rewardsPlan},isAiCfoAccessEnabled:se,onNotificationIconClick:()=>{d(!1);let e=q===0&&W>0?"notifications/comments":"notifications/tasks";le(a)&&(e=q===0&&W>0?"../../notifications/comments":"../../notifications/tasks");const u=w(a.state?.pathnameStackToGoBack,a.pathname);o(e,{state:{pathnameStackToGoBack:u}})},handleCockpitClick:()=>{window.open("/cockpit")},handleLogOutClick:()=>{d(!1);const e=w(a.state?.pathnameStackToGoBack,a.pathname);o("/signout",{replace:!0,state:{pathnameStackToGoBack:e,message:"logout"}})},handleMenuChange:e=>{if(d(!1),t==null)return;if(e.type==="ai_cfo"){if(R.trackAICFOChatScreenStateChanged("viewed","left_menu",j??null,null),!be)return void Ma({location:a,navigate:o,mergeState:{referrer:"Sidebar"}});const b=w(a.state?.pathnameStackToGoBack,a.pathname);return void o(`/${t}/ai-cfo/explore`,{state:{pathnameStackToGoBack:b,referrer:"Sidebar"}})}const u=w(a.state?.pathnameStackToGoBack,a.pathname),c=e.type,p=x(c)&&c!=="command_center";if(x(e.type)&&E[s.tenantId]!=null&&R.trackMonthEndCloseClicked(E[s.tenantId].month,E[s.tenantId].year,"Sidebar"),p&&E[s.tenantId]!=null){const b=E[s.tenantId];return void o(`/${t}/month_end_close_checks/review/${e.type}/${b.month}-${b.year}`,{state:{pathnameStackToGoBack:u,referrer:"Sidebar"}})}const M=Pa(e.type);ue(e.type)?(j!=null&&m(ba()),o(`/${t}/ai-cfo/${e.type}`,{state:{pathnameStackToGoBack:u.slice(0,-1),referrer:"Sidebar"}})):o(`/${t}/${M}`,{state:{pathnameStackToGoBack:u,referrer:"Sidebar"}})},handleMyProfileClick:()=>{d(!1),o(`/${t}/settings/my_profile`)},handleReferralsClick:()=>{d(!1),o(`/${t}/rewards`)},handleBackClick:()=>{o(`/${t}/dashboard`)},handleTenantSelect:e=>{he($a.TENANT_SWITCHING),d(!1);const u=e.tenantEmailDomain,c=ce(a);let p=`/${encodeURIComponent(u)}/`;const M=x(c);c==="home"?p+="dashboard":c==="users_and_roles"?p+="people":Ga(c)?p+="settings/my_profile":ue(c)?p+=`ai-cfo/${c}`:p+=c==="task_checklist"?"tasks":M?"month_end_close_checks/review":encodeURIComponent(c),o(p,{replace:!0}),h!=null&&(m(ma(e.tenantId)),m(pa(h.userId,e.tenantId,h.zeniSessionId)));const b=e;R.trackCompanySwitch(b.companyId,b.companyName,b.userRole)},handlePopupClose:()=>{k.saveTreasuryPopupSeen(t??"",!0),re(!1)},onZeniLogoClick:()=>{C.toggle()},isAiCfo:Le,aiCfoView:O,isOnDashboard:_,updateCurrentChatSessionId:e=>{m(fa({sessionId:e,agentId:"controller"})),o(`/${t}/ai-cfo/${e}`,{state:{...a.state}})},halloweenAnimationEnabled:Ae,isTaskManagerAccessEnabled:$e,thanksGivingAnimationEnabled:_e,christmasAnimationEnabled:Fe,newYearAnimationEnabled:De})})}),La=f=>{const d=fe(),t=n(C=>me(C)),a={events:t.userRoleId!=null?[`private-encrypted-${t.userRoleId}.dashboard-user-notification`]:[],eventCallback:(C,o)=>{Sa(o)&&Xe(o.mode)==="dashboard"&&d(pe({unreadCount:o.data.unread},"tasks"))}};return N.jsx(xa,{...f,...a})};export{La as M};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./liveblocks-D7MTBeqB.js";import{h as r,n}from"./core-C5W8nxR1.js";import{Q as i}from"./index-zWiSHOLd.js";import"./mui-CD-lJRrw.js";import"./sentry-DVVsR48F.js";import"./zeni-epic-state-BDJoMjoR.js";import"./recharts-BnfhYobU.js";import"./analytics-DrcSmo8f.js";import"./plaid-D3pZvM_U.js";import"./dnd-BN-V7BQY.js";import"./stripe-DMRn4zHo.js";import"./lottie-Bcxhpfzr.js";import"./lexical-LmEGSncg.js";import"./pdf-BpbLbEAW.js";import"./utils-fE4-NjiI.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]="e552295f-ad8f-4911-819f-e7382b348622",o._sentryDebugIdIdentifier="sentry-dbid-e552295f-ad8f-4911-819f-e7382b348622")}catch{}})();const f=n(null,function(o,t){return{onGoBack:()=>{t.navigate(-1)},onGoHome:()=>{t.navigate("/")}}})(i);function _(){const o=r();return e.jsx(f,{navigate:o})}export{_ as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as f}from"./liveblocks-D7MTBeqB.js";import{a as r}from"./sentry-DVVsR48F.js";import{u as T,g as A,j as o,N as j}from"./core-C5W8nxR1.js";import{Ml as C,eX as P,fN as x,Mm as z,Mn as D,Mo as L,Mp as N,o9 as R,Li as k}from"./zeni-epic-state-BDJoMjoR.js";import{z as h,H as I}from"./index-zWiSHOLd.js";import"./mui-CD-lJRrw.js";import"./recharts-BnfhYobU.js";import"./analytics-DrcSmo8f.js";import"./plaid-D3pZvM_U.js";import"./dnd-BN-V7BQY.js";import"./stripe-DMRn4zHo.js";import"./lottie-Bcxhpfzr.js";import"./lexical-LmEGSncg.js";import"./pdf-BpbLbEAW.js";import"./utils-fE4-NjiI.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new n.Error().stack;s&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[s]="19c8c4d7-0422-417c-94f8-7454debace02",n._sentryDebugIdIdentifier="sentry-dbid-19c8c4d7-0422-417c-94f8-7454debace02")}catch{}})();function ee(){const n=T(),s=A(),{params:t,error:i}=r.useMemo(()=>C(s.search),[s.search]),w=r.useMemo(()=>new URLSearchParams(s.search).get("client_name")??t?.clientId??"Unknown Application",[s.search,t]),p=h.isSignedIn(),a=h.getSignedInUser(),m=o(e=>P(e)),l=o(e=>x(e)),d=o(e=>e.tenantState.fetchState),y=o(z),v=o(D),c=o(L),[S,b]=r.useState(null),[E,_]=r.useState(null);r.useEffect(()=>{document.querySelector("#app-shell-loader")?.remove()},[]),r.useEffect(()=>()=>{n(N())},[n,s.search]),r.useEffect(()=>{i!=null&&console.warn("[OAuthConsent] invalid params:",i)},[i]);const g=r.useRef(!1);r.useEffect(()=>{p&&a!=null&&!g.current&&(d!=="Not-Started"&&d!=="Error"||(g.current=!0,n(R(a.userId,a.zeniSessionId??void 0))))},[p,a,d,n]),r.useEffect(()=>{c!=null&&c!==""&&(window.location.href=c)},[c]);const M=r.useMemo(()=>{if(m?.tenantId!=null)return m.tenantId;const e=h.getActiveTenantForUser()?.tenantId;return e!=null&&l.some(U=>U.tenantId===e)?e:l.length===1?l[0].tenantId:null},[m?.tenantId,l]),u=S??M;return i!=null?f.jsx(I,{variant:"invalid_params",paramsError:i}):p?f.jsx(I,{variant:"signed_in",clientName:w,userEmail:a?.userEmail,isInitializing:d!=="Completed",tenants:l,selectedTenantId:u,onSelectTenant:b,approveError:E??v,isApproving:y==="In-Progress",showAllowButton:u!=null,onApprove:()=>{t!=null&&a!=null&&u!=null&&n(k(a.userId,a.zeniSessionId??void 0,u,t.clientId,t.redirectUri,t.codeChallenge,t.codeChallengeMethod,t.state,t.responseType))},onDeny:()=>{if(t!=null)try{const e=new URL(t.redirectUri);e.searchParams.set("error","access_denied"),e.searchParams.set("error_description","The user denied the request"),e.searchParams.set("state",t.state),window.location.href=e.toString()}catch{_("Unable to deny: redirect_uri is not a valid URL. Close this window or contact support.")}}}):f.jsx(j,{to:"/signin/auth",state:{origin:s.pathname+s.search},replace:!0})}export{ee as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as n}from"./liveblocks-D7MTBeqB.js";import{h as z,u as Z,g as H,i as K,j as d,n as X,o as J,p as I}from"./core-C5W8nxR1.js";import{eX as P,sc as U,rM as Q,MS as v,rH as S,bs as ee,bn as ae,bY as te,rI as se,MT as oe,MF as C,dK as re,vU as ne,MU as ie,wf as ce,fE as le,fC as de}from"./zeni-epic-state-BDJoMjoR.js";import{z as fe,Z as me,a0 as pe,I as ue,C as O,U as w,w as he,e as $,ap as Fe,q as ge}from"./index-zWiSHOLd.js";import"./mui-CD-lJRrw.js";import be from"./NotFoundScreen-DIeJhZda.js";import{F as Ie}from"./FeaturePreviewScreen-B_0uKukg.js";import{a as F}from"./sentry-DVVsR48F.js";import{u as Ce}from"./useAskAiCfoHostNavButtonProps-DoAmGuPw.js";import{u as Se}from"./useInitialThreadRequest-CPcuN5d8.js";import{t as Te}from"./routePaths-DEzJucxI.js";import{M as ye}from"./MobileAppDrawer-B2FnRj4O.js";import"./recharts-BnfhYobU.js";import"./analytics-DrcSmo8f.js";import"./plaid-D3pZvM_U.js";import"./dnd-BN-V7BQY.js";import"./stripe-DMRn4zHo.js";import"./lottie-Bcxhpfzr.js";import"./lexical-LmEGSncg.js";import"./pdf-BpbLbEAW.js";import"./utils-fE4-NjiI.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new s.Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="6ce3bfad-3ef2-484f-93db-4d13880598aa",s._sentryDebugIdIdentifier="sentry-dbid-6ce3bfad-3ef2-484f-93db-4d13880598aa")}catch{}})();const T=(s,e,a,o)=>{if(s!=e){const r=o??"";s!=null&&s.length>0?a(`../${e}${r}`,{replace:!0}):a(`${e}${r}`,{replace:!0})}},ke=X(function(s){const e=oe(s),a={},o=e.pandLReportWithForecast.uiState.nodeCollapseState;return Object.keys(o).forEach(r=>{a[r]=o[r]===!1}),{selectedTimeframe:e.selectedTimeframe,isForecastVsActualOn:e.isForecastVsActualOn,compareMode:e.compareMode,forecastList:e.forecastList,selectedForecast:e.selectedForecast,pandLreport:e.pandLReportWithForecast,scrollPosition:e.pandLReportWithForecast.uiState.scrollPosition,nodeOpenStatus:a,type:"name+balances_forecast",analytics:$}},function(s,e){return{onForecastSelectionChanged:(a,o)=>{s(v(a,o)),e.isPandLReportFetched(a)||s(S(a)),T(e.forecastIdFromUrlPath,a,e.navigate)},onTimeframeChanged:a=>{s(ce(a))},onForecastVsActualsCompareToggle:a=>{s(ie(a)),s(C({forecastId:e.forecastIdFromUrlPath,scrollPosition:{scrollLeft:0,scrollTop:0}}))},onCompareModeChanged:a=>{s(ne(e.firstMonthOfFY,a,0,[]))},onAccountBalanceClick:e.hasTransactionAccess!==!0?void 0:(a,o)=>{let r,i;const p=a.accountName===""?a.accountDescription:a.accountName;if(o.balanceTimeFrame==="month"||o.balanceTimeFrame==="quarter"?(r=o.balanceTimeFrame,i=re(o)):o.balanceTimeFrame==="year"?(r="quarter",i={startDate:o.endDate.startOf("quarter"),endDate:o.endDate}):console.error(`timeframe ${o.balanceTimeFrame} is not supported`),i!=null&&r!=null){const f=Te(e.tenantEmailDomain,a.accountId,a.accountType,p,r,i),u=ge(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(f,{state:{pathnameStackToGoBack:u,referrer:"Forecast"}})}},onNodeCollapseToggled:(a,o)=>{s(C({forecastId:e.forecastIdFromUrlPath,nodeCollapseState:{nodeId:a,isCollapsed:o===!1}}))},onTableScroll:a=>{s(C({forecastId:e.forecastIdFromUrlPath,scrollPosition:a}))},onBackClick:()=>{e.navigate("../../")}}})(Fe);function M(){const s=z(),e=Z(),a=H(),{forecastId:o,tenantEmailDomain:r}=K(),[i,p]=F.useState(!1),[f,u]=F.useState(!1),h=fe.getSignedInUser(),y=d(t=>P(t)),B=y.company?.companyInfo.firstMonthOfFY??1,c=d(t=>U(t.forecastState,t.forecastListState)),l=d(t=>t.forecastListState.fetchState==="Completed"),k=d(t=>t.profitAndLossState),A=d(t=>t.reportUIOptionsState.selectedForecast),x=t=>k.pandLByForecastID[t]!=null&&se(t,k).reducedAllFetchState.fetchState==="Completed",{areTenantIdsInSync:g}=me();pe({isDataReady:l});const{isAiCfoAccessEnabled:q,onAskAiCfoClick:N}=Ce({mobileExploreReferrer:"Forecast"});F.useEffect(()=>{if(!i&&g)p(!0),l||e(Q());else if(l&&!f){u(!0);const t=((m,L,R)=>L!=null?m.forecasts.findIndex(b=>b.id===L):R!=null?m.forecasts.findIndex(b=>b.id===R):m.forecasts.length>0?0:-1)(c,o,A?.id);t===-1&&o!=null?s("page-not-found",{replace:!0}):t!==-1&&t!=A?.index?(e(v(c.forecasts[t].id,t)),T(o,c.forecasts[t].id,s,a.search)):o==null&&t!==-1&&T(void 0,c.forecasts[t].id,s,a.search),t!==-1&&!x(c.forecasts[t].id)&&g&&e(S(c.forecasts[t].id))}},[i,p,e,l,c,f,u,U,S,g]);const D=ue(),W=D?.loggedInUserRole!=null&&ee(D.loggedInUserRole),{useFeatureGate:_}=O(),{isFeatureEnabled:E}=_(w.isReportsCommentingEnabled),G=Se(E?y?.companyId:void 0,{clearParams:l&&f}),[Y,V]=F.useState(!1),j=t=>{V(t)};return n.jsxs(n.Fragment,{children:[l?n.jsx(he,{analytics:$,onLoad:t=>(m=>m.trackForecast())(t)}):null,n.jsx(ye,{isAppContentDrawerOpen:Y,handleDrawerToggle:j}),n.jsx(ke,{firstMonthOfFY:B,tenantEmailDomain:r,forecastIdFromUrlPath:o,navigate:s,location:a,isPandLReportFetched:x,meetingUrl:te(`https://meetings.hubspot.com/svitlana-grankovska?firstname=${h?.firstName}&lastname=${h?.lastName}&email=${h?.userEmail}`),hasTransactionAccess:W,isAiCfoAccessEnabled:q,onAskAiCfoClick:N,isReportsCommentingEnabled:E,isZeniUser:ae(h),initialOpenThreadRequest:G,onClickMenuIcon:()=>{j(!0)}})]})}function Ve(){const s=d(i=>P(i)),{useFeatureGate:e}=O(),{isFeatureEnabled:a}=e(w.isDebitCardFeatureEnabled),o=le(a,s),r=de(s);return o===!0||r===!0?n.jsx(Ie,{}):n.jsxs(J,{children:[n.jsx(I,{path:"/",element:n.jsx(M,{})}),n.jsx(I,{path:"/:forecastId",element:n.jsx(M,{})}),n.jsx(I,{path:"/:forecastId/*",element:n.jsx(be,{})})]})}export{Ve as PandLWithForecastRoutes,Ve as default};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-D7MTBeqB.js";import{MO as ne,eX as Y,kx as z,fE as X,fC as oe,Kg as J,Ms as ie,uR as ke,MP as N,uG as Ee,u$ as Pe,uV as re,uK as le,uZ as je,uW as ve,MQ as ce,wG as Le,fo as Te,ge as Re,MR as G,uO as de,uN as pe,v2 as Oe,c6 as Ae}from"./zeni-epic-state-BDJoMjoR.js";import{K as ue,C as ee,U as K,z as W,i as me,O as ge,G as fe,al as he,am as Fe,D as Ce,o as F,M as ye,a as be,an as Ve,Z as Ze,a0 as Ue,w as Be,e as Se,g as $e,q as Me,ao as Ge,I as Ke}from"./index-zWiSHOLd.js";import{D as we,n as q,S as xe}from"./mui-CD-lJRrw.js";import se from"./NotFoundScreen-DIeJhZda.js";import{a as c}from"./sentry-DVVsR48F.js";import{u as ae,i as He,j as g,h as _e,g as ze,n as We,o as te,p as M}from"./core-C5W8nxR1.js";import{u as qe}from"./useAskAiCfoHostNavButtonProps-DoAmGuPw.js";import{M as Qe}from"./MobileAppDrawer-B2FnRj4O.js";import"./recharts-BnfhYobU.js";import"./analytics-DrcSmo8f.js";import"./plaid-D3pZvM_U.js";import"./dnd-BN-V7BQY.js";import"./stripe-DMRn4zHo.js";import"./lottie-Bcxhpfzr.js";import"./lexical-LmEGSncg.js";import"./pdf-BpbLbEAW.js";import"./utils-fE4-NjiI.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]="1cb51640-a850-4254-a1fa-03cb21a4a75c",e._sentryDebugIdIdentifier="sentry-dbid-1cb51640-a850-4254-a1fa-03cb21a4a75c")}catch{}})();const Ne={overlayWidth:new Ce(100,100,48)},H=be.getLocalizedStrings().peoplePage.invitePage,Ye=({companyId:e,managersListView:t,companyPassportView:d,classListView:n,mode:f,isEditPeopleDrawerOpen:i,closeDrawerHandler:b})=>{const h=ue(),m=ae(),[V,Z]=c.useState(!1),[k,S]=c.useState(!1),{userId:w}=He(),r=g(l=>ne(l)),p=g(l=>Y(l)),E=g(l=>z(l)),{useFeatureGate:D}=ee(),{isFeatureEnabled:I}=D(K.isDebitCardFeatureEnabled),P=X(I,p),L=oe(p),T=J(p),U=ie(p),B=!!p.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,x=!P&&E&&n.fetchState!=="Completed"||t.fetchState!=="Completed"||d.fetchState!=="Completed"||e==null;if(W.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const C=()=>{m(N()),b()},R=()=>{V===!0?S(!0):C()},$=d.companyView?.controllers?.map(l=>l.user),u=!!p.company?.companyZeniAccountInfo?.isZeniAccountEnabled,{isFeatureEnabled:j}=D(K.isChargeCardFeatureEnabled),v=me(p,j,I),{isCardsHidden:O}=ge(p?.tenantId),y=!v||O,A=p.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",s={peopleDetails:r,classList:n.classes,managersList:t.users,controllersList:$,mode:f,isZeniTenant:T,isAccountingClassesEnabled:E,isReimbursementDisabled:B===!1,isZeniAccountsDisabled:u===!1,isChargeCardDisabled:y,isTreasuryDisabled:A===!1,isLiteRoleDisabled:U===!1,isBankingOnlyTenant:P,isCardsOnlyTenant:L,onResetClick:C,onDeleteUser:l=>{m(le(l.userId,l.userRole.userRoleId))},onPeopleLocalDataUpdated:l=>{m(re({peopleLocalData:l})),Z(!0)},onSaveClick:()=>{m(f==="zeni_only"?Ee(e):Pe(T))},onCloseClick:R,isLoading:x||r.person==null},o={onOkClick:()=>{S(!1),C()},onCancelClick:()=>{S(!1)}};return c.useEffect(()=>{x===!1&&w!=null&&m(ke(w))},[x,w]),c.useEffect(()=>{r.updatePersonState.fetchState==="Completed"&&C()},[r.updatePersonState.fetchState]),a.jsx(we,{anchor:"right",open:i,PaperProps:{style:{width:Ne.overlayWidth.valuePercentage(h),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:fe.overlayDark,cursor:"pointer"}}},onClose:R,children:a.jsxs(Xe,{onClick:l=>l.stopPropagation(),children:[k===!0?a.jsx(he,{titleComponent:a.jsx(De,{children:H.discardTitle}),descriptionComponent:a.jsx(Ie,{children:H.discardDescription}),primaryButtonText:H.discard,secondaryButtonText:H.no,action:o,isEditPopup:!0}):null,a.jsx(Fe,{...s})]})})},Xe=q(xe)`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
`,De=q(ye.H6Regular)`
|
|
6
|
-
margin-top: ${F.sp7};
|
|
7
|
-
padding-left: ${F.sp8};
|
|
8
|
-
padding-right: ${F.sp8};
|
|
9
|
-
color: ${e=>e.theme.colors.primary};
|
|
10
|
-
word-break: break-word;
|
|
11
|
-
`,Ie=q(ye.LargeRegularSp)`
|
|
12
|
-
color: ${e=>e.theme.colors.hero};
|
|
13
|
-
padding-left: ${F.sp8};
|
|
14
|
-
padding-right: ${F.sp8};
|
|
15
|
-
margin-bottom: 30px;
|
|
16
|
-
margin-top: ${F.sp4};
|
|
17
|
-
white-space: pre-line;
|
|
18
|
-
`,Je={overlayWidth:new Ce(100,100,48)},_=be.getLocalizedStrings().peoplePage.invitePage,ea=({companyId:e,managersListView:t,companyPassportView:d,classListView:n,mode:f,isInvitePeopleDrawerOpen:i,closeDrawerHandler:b})=>{const h=ue(),m=ae(),[V,Z]=c.useState(!1),[k,S]=c.useState(!1),w=g(o=>ne(o)),r=g(o=>Y(o)),p=g(o=>z(o)),{useFeatureGate:E}=ee(),{isFeatureEnabled:D}=E(K.isDebitCardFeatureEnabled),I=X(D,r),P=oe(r),L=J(r),T=ie(r),U=!!r.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,B=!I&&p&&n.fetchState!=="Completed"||t.fetchState!=="Completed"||d.fetchState!=="Completed"||e==null;if(W.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const x=()=>{b(),m(N())},C=()=>{V===!0?S(!0):x()},R={onOkClick:()=>{S(!1),x()},onCancelClick:()=>{S(!1)}},$=d.companyView?.controllers.map(o=>o.user),u=!!r.company?.companyZeniAccountInfo?.isZeniAccountEnabled,{isFeatureEnabled:j}=E(K.isChargeCardFeatureEnabled),v=me(r,j,D),{isCardsHidden:O}=ge(r?.tenantId),y=!v||O,A=r.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",s={classList:n.classes,managersList:t.users,controllersList:$,mode:f,isZeniTenant:L,onPeopleLocalDataUpdated:o=>{m(re({peopleLocalData:o})),Z(!0)},onResetClick:x,onSaveClick:()=>{m(f==="zeni_only"?je(e):ve())},onCloseClick:C,peopleDetails:w,isAccountingClassesEnabled:p,isReimbursementDisabled:U===!1,isLiteRoleDisabled:T===!1,isZeniAccountsDisabled:u===!1,isChargeCardDisabled:y,isTreasuryDisabled:A===!1,isBankingOnlyTenant:I,isCardsOnlyTenant:P,isLoading:B};return c.useEffect(()=>{w.invitePersonState.fetchState==="Completed"&&(b(),m(N()))},[w.invitePersonState.fetchState]),a.jsx(we,{anchor:"right",open:i,PaperProps:{style:{width:Je.overlayWidth.valuePercentage(h),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:fe.overlayDark,cursor:"pointer"}}},onClose:C,children:a.jsxs(aa,{onClick:o=>o.stopPropagation(),children:[k===!0?a.jsx(he,{titleComponent:a.jsx(De,{children:_.discardTitle}),descriptionComponent:a.jsx(Ie,{children:_.discardDescription}),primaryButtonText:_.discard,secondaryButtonText:_.no,action:R}):null,a.jsx(Ve,{...s})]})})},aa=q(xe)`
|
|
19
|
-
display: flex;
|
|
20
|
-
min-height: 100%;
|
|
21
|
-
flex-direction: column;
|
|
22
|
-
`,sa=We(function(e,t){const d=ce(e),n=W.getSignedInUser();return{data:d,loggedinUserId:n?.userId??"",isZeniTenant:t.isZeniTenant===!0,shouldFetchClasses:t.shouldFetchClasses,isZeniAdminUser:n?.userEmailDomain==="zeni.ai"&&t.isZeni===!0,isAccountingClassesEnabled:z(e),analytics:Se}},function(e,t){const{navigate:d,companyId:n,shouldFetchClasses:f}=t;return{personAction:{onPersonDelete:(i,b)=>{e(le(i,b))},onResendInvite:i=>{e(Oe(i))},onReloadPeople:()=>{e(de()),e(pe(n,f))},onBackClick:()=>{d("../../")},onModeChange:i=>{e(G({mode:i,searchText:"",sortKey:"name",sortOrder:"ascending"}))},onSearchTextChanged:i=>{e(G({searchText:i}))}}}})(Ge);function Q({isInvitePeopleDrawerOpen:e,isEditPeopleDrawerOpen:t}){const d=_e(),n=ae(),f=ze(),{areTenantIdsInSync:i}=Ze(),b=W.getSignedInUser(),h=g(s=>Y(s)),{useFeatureGate:m}=ee(),{isFeatureEnabled:V}=m(K.isDebitCardFeatureEnabled),Z=g(s=>z(s)),k=!X(V,h)&&Z,S=J(h),w=h?.tenantId,{tenantEmailDomain:r}=h,[p,E]=c.useState(!1),[D,I]=c.useState(!1),[P,L]=c.useState(!1),[T,U]=c.useState("off"),[B,x]=c.useState(!1),C=s=>{x(s)},{isAiCfoAccessEnabled:R,onAskAiCfoClick:$}=qe({mobileExploreReferrer:"People"}),u=g(s=>ce(s));Ue({isDataReady:u.fetchState==="Completed"});const j=g(s=>Le(s.classState,s.classListState)),v=g(s=>Te(s.userState,s.userRoleState,s.userListViewState,"manager")),O=g(s=>Re(s)),y=h?.companyId;c.useEffect(()=>{p&&T===u.uiState.mode||!i||(n(G({searchText:"",sortKey:"name",sortOrder:"ascending"})),U(u.uiState.mode),E(!0),n(de()))},[p,b,w,n,u.uiState.mode,i]),c.useEffect(()=>{y!=null&&i&&n(pe(y,k))},[y,k,i]),c.useEffect(()=>{I(e!=null&&e===!0),L(t!=null&&t===!0&&t)},[e,t]),c.useEffect(()=>{n(G({searchText:"",sortKey:"name",sortOrder:"ascending"}))},[]);const A=()=>{I(!1),L(!1),d("../")};return a.jsxs(a.Fragment,{children:[u.fetchState==="Completed"?a.jsx(Be,{analytics:Se,onLoad:s=>s.trackPageLoaded($e.Event.members)}):null,D===!0?a.jsx(ea,{closeDrawerHandler:A,isInvitePeopleDrawerOpen:D,managersListView:v,companyPassportView:O,classListView:j,companyId:y,mode:u.uiState.mode}):null,P===!0?a.jsx(Ye,{closeDrawerHandler:A,isEditPeopleDrawerOpen:P,managersListView:v,companyPassportView:O,classListView:j,companyId:y,mode:u.uiState.mode}):null,a.jsx(Qe,{isAppContentDrawerOpen:B,handleDrawerToggle:C}),a.jsx(sa,{navigate:d,signedInUser:b,isZeni:h.isZeni,isZeniTenant:S,peopleUIState:u.uiState,companyId:y,shouldFetchClasses:k,classList:j,managersView:v,peopleView:u,onInvitePeopleClick:()=>{d("./new")},onColumnSortConfigChanged:(s,o)=>{n(G({sortKey:s,sortOrder:o}))},onRowClick:s=>{const o=`/${r}/people/${encodeURIComponent(s)}/edit`,l=Me(f.state?.pathnameStackToGoBack,f.pathname);d(o,{state:{pathnameStackToGoBack:l}})},onClickMenuIcon:()=>{C(!0)},isAiCfoAccessEnabled:R,onAskAiCfoClick:$})]})}function wa(){const e=Ke();return Ae(e?.loggedInUserRole??[])?a.jsxs(te,{children:[a.jsx(M,{path:"/",element:a.jsx(Q,{})}),a.jsx(M,{path:"new",element:a.jsx(Q,{isInvitePeopleDrawerOpen:!0})}),a.jsx(M,{path:":userId/edit",element:a.jsx(Q,{isEditPeopleDrawerOpen:!0})}),a.jsx(M,{path:"*",element:a.jsx(se,{})})]}):a.jsx(te,{children:a.jsx(M,{path:"*",element:a.jsx(se,{})})})}export{wa as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-D7MTBeqB.js";import E from"./NotFoundScreen-DIeJhZda.js";import{a as r}from"./sentry-DVVsR48F.js";import{h as _,g as v,j as p,i as M,u as U,N as z,n as P,o as F,p as b}from"./core-C5W8nxR1.js";import{eX as O,T1 as h,bq as B,bn as N,ie as V,fz as q}from"./zeni-epic-state-BDJoMjoR.js";import{F as X,z as I,a0 as $,c_ as G}from"./index-zWiSHOLd.js";import"./mui-CD-lJRrw.js";import{u as H}from"./useAskAiCfoHostNavButtonProps-DoAmGuPw.js";import{M as J}from"./MobileAppDrawer-B2FnRj4O.js";import"./recharts-BnfhYobU.js";import"./analytics-DrcSmo8f.js";import"./plaid-D3pZvM_U.js";import"./dnd-BN-V7BQY.js";import"./stripe-DMRn4zHo.js";import"./lottie-Bcxhpfzr.js";import"./lexical-LmEGSncg.js";import"./pdf-BpbLbEAW.js";import"./utils-fE4-NjiI.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]="eb0dbfab-c3ce-4ebc-94da-c6bdfaf1b6c1",e._sentryDebugIdIdentifier="sentry-dbid-eb0dbfab-c3ce-4ebc-94da-c6bdfaf1b6c1")}catch{}})();const K=P(function(e){const t=I.getSignedInUser(),c=e.tenantState.currentTenantId,o={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:c??""},{aggregatedReportViewState:n}=h(e);return{authParams:o,isDisabled:!1,loggedInUser:t,aggregatedReport:n}},function(e,t){return{onBackClick:()=>{t.navigate("../../")},onClickMenuIcon:()=>{t.handleDrawerToggle(!0)}}})(G),L=()=>{const e=_(),t=v(),c=X(),o=p(a=>O(a)),{aggregatedReportViewState:n}=p(a=>h(a)),{tenantEmailDomain:m}=M(),u=U(),l=I.getSignedInUser();if(l==null)throw new Error("Can't access this page without signing in...");const f=r.useRef(!1),[w,S]=r.useState(!1),C=B(o?.userRole??[]),k=o?.userRole?.includes("bookkeeping_admin")??!1,x=N(l),y=C||k||x,d=r.useCallback((a,i,A)=>{u(V({fromMonth:a,toMonth:i,cacheOverride:A}))},[]);r.useEffect(()=>{n?.fetchState==="Completed"&&f.current&&(u(q({messageSection:"data_refresh_update",messageText:"success",type:"success",showStatusIcon:!0})),f.current=!1)},[n?.fetchState]);const D=r.useCallback((a,i)=>{n!=null&&n?.fetchState==="In-Progress"||d(a,i,!0),f.current=!0},[n?.fetchState,d]),j=r.useCallback((a,i)=>{d(a,i,!1)},[d]),g=a=>{S(a)},{isAiCfoAccessEnabled:R,onAskAiCfoClick:T}=H({mobileExploreReferrer:"Performance"});return $({isDataReady:n?.fetchState==="Completed"}),y?s.jsxs(s.Fragment,{children:[s.jsx(J,{isAppContentDrawerOpen:w,handleDrawerToggle:g}),s.jsx(K,{navigate:e,location:t,themeState:c,currentTenant:o,signedInUser:l,tenantEmailDomain:m,onReload:D,onTimeRangeSelect:j,handleDrawerToggle:g,isAiCfoAccessEnabled:R,onAskAiCfoClick:T})]}):s.jsx(z,{to:`/${m}/dashboard`,replace:!0})};function ge(){return s.jsxs(F,{children:[s.jsx(b,{path:"*",element:s.jsx(L,{})}),s.jsx(b,{path:"*",element:s.jsx(E,{})})]})}export{ge as default};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-D7MTBeqB.js";import{a as o}from"./sentry-DVVsR48F.js";import{j as f,h as F,u as H,g as V,n as K}from"./core-C5W8nxR1.js";import{y as N,K as W,z as P,bg as _,D as M,Z as U,a0 as $,w as q,e as l,g as z,a9 as X,bh as Z}from"./index-zWiSHOLd.js";import{fI as G,eX as J,Pp as R,Pq as Q,vK as Y,vA as g,fK as ee,bS as re,vF as ae,Pr as ne}from"./zeni-epic-state-BDJoMjoR.js";import{D as te,e as se,n as oe,S as ie}from"./mui-CD-lJRrw.js";import{u as le}from"./useAskAiCfoHostNavButtonProps-DoAmGuPw.js";import{M as ce}from"./MobileAppDrawer-B2FnRj4O.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="c6a563bb-8677-4e70-af42-787e5142dcc9",e._sentryDebugIdIdentifier="sentry-dbid-c6a563bb-8677-4e70-af42-787e5142dcc9")}catch{}})();const de={overlayWidth:new M(100,100,30)},fe=({isReferralDrawerOpen:e,closeDrawerHandler:r})=>{const a=N(),n=W();if(P.getSignedInUser()==null)throw Error("Can't access How Referral works without signing in...");const i=()=>{r(!0)},u=f(c=>G(c));return s.jsx(te,{anchor:"right",open:e,PaperProps:{style:{width:de.overlayWidth.valuePercentage(n),boxShadow:"none"}},slotProps:{backdrop:{style:{opacity:.75,backgroundColor:a.colors.black,cursor:"pointer"}}},onClose:()=>i(),children:s.jsx(se,{in:e,direction:"left",children:s.jsx(ue,{onClick:c=>c.stopPropagation(),children:s.jsx(_,{onDismissClick:i,rewardsPlan:u.rewardsPlan})})})})},ue=oe(ie)`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
`,I="refer-and-earn-status-update",pe=K(function(e){const r=R(e),a=e.referralViewState.rewardsPlanFetchState,n=re([r,a]);return{inviteList:r.invitations,uiState:r.uiState,pendingBonus:r.pendingBonus,earnedBonus:r.earnedBonus,pendingReferrals:r.pendingReferrals,fetchState:n.fetchState,rewardsPlan:r.rewardsPlan}},function(e,r){const{navigate:a}=r;return{onColumnSortConfigChanged:(n,i)=>{e(ne({sortOrder:i,sortkey:n}))},onInviteClick:()=>{l.trackRewardsPageClicked("invite via email"),a("../refer")},onHowItWorksClick:()=>{l.trackRewardsPageClicked("know more"),a("../how-it-works")},onResendInviteClick:n=>{l.trackRewardsPageClicked("resend invite"),e(ae(n))},onBackClick:()=>{a("../",{relative:"path"})},onReloadInvitees:()=>{e(g(!0))},onCopyReferralLink:()=>{l.trackRewardsPageClicked("copy referral link")},onClickRefer:()=>{l.trackRewardsPageClicked("refer")},onEventReceived:n=>{n===I&&e(g(!0,!0))}}})(X(Z));function ye({isReferralDrawerOpen:e}){const r=F(),a=H(),n=V(),[i,u]=o.useState(!1),[c,D]=o.useState(!1),[x,E]=o.useState(!1),[k,h]=o.useState(!1),p=P.getSignedInUser(),C=f(t=>J(t)),v=f(t=>R(t)),b=v.fetchState,w=f(t=>t.referralViewState.rewardsPlanFetchState),m=Q([v,w]),{areTenantIdsInSync:d}=U();o.useEffect(()=>{C?.rewardsLastViewedTime==null&&x===!1&&(a(Y()),E(!0))},[]),o.useEffect(()=>{!i&&b==="Not-Started"&&d&&(u(!0),a(g(!0)))},[b,a,d]),o.useEffect(()=>{!c&&w.fetchState==="Not-Started"&&d&&(D(!0),a(ee(!0)))},[w,a,d]),o.useEffect(()=>{h(e!=null&&e===!0)},[e]);const[j,A]=o.useState(!1),y=t=>{A(t)},{isAiCfoAccessEnabled:T,onAskAiCfoClick:B}=le({mobileExploreReferrer:"Rewards"});$({isDataReady:m===!0});const O={events:p?.userId!=null?[`private-encrypted-${p.userId}.${I}`]:[],eventCallback:(t,S,L)=>{L.onEventReceived(t)}};return s.jsxs(s.Fragment,{children:[m===!0?s.jsx(q,{analytics:l,onLoad:t=>(S=>{p!=null&&S.trackPageLoaded(z.Event.rewardsPageViewed)})(t)}):null,s.jsx(ce,{isAppContentDrawerOpen:j,handleDrawerToggle:y}),k===!0?s.jsx(fe,{closeDrawerHandler:()=>{h(!1),r("..")},isReferralDrawerOpen:k}):null,s.jsx(pe,{location:n,navigate:r,currentTenant:C,onClickMenuIcon:()=>{y(!0)},isAiCfoAccessEnabled:T,onAskAiCfoClick:B,...O})]})}export{ye as R};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-D7MTBeqB.js";import{C as x,z as j,aS as b,w as E,e as p,g as F,d9 as P,U as T}from"./index-zWiSHOLd.js";import"./mui-CD-lJRrw.js";import m from"./NotFoundScreen-DIeJhZda.js";import{a as d}from"./sentry-DVVsR48F.js";import{u as L,j as y,h as U,g as V,n as A,o as R,p as f}from"./core-C5W8nxR1.js";import{eX as z,TF as C,P_ as G,TG as _,vK as K,fK as Y,TH as H,vI as O}from"./zeni-epic-state-BDJoMjoR.js";import{R as w}from"./ReferralListScreen-bLo9_GQZ.js";import"./recharts-BnfhYobU.js";import"./analytics-DrcSmo8f.js";import"./plaid-D3pZvM_U.js";import"./dnd-BN-V7BQY.js";import"./stripe-DMRn4zHo.js";import"./lottie-Bcxhpfzr.js";import"./lexical-LmEGSncg.js";import"./pdf-BpbLbEAW.js";import"./utils-fE4-NjiI.js";import"./useAskAiCfoHostNavButtonProps-DoAmGuPw.js";import"./MobileAppDrawer-B2FnRj4O.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]="d23c1ced-fb10-424e-95aa-abf8bfbd9074",e._sentryDebugIdIdentifier="sentry-dbid-d23c1ced-fb10-424e-95aa-abf8bfbd9074")}catch{}})();const X=A(function(e,t){const n=C(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(_()),n("..")},onSendClick:()=>{if(i!=null){const s=[],r=[];t.inviteFormCompayData.forEach(c=>{s.push(c.companyName),r.push(c.emailIds[0])}),p.trackInviteEmailClicked("send",s,r,s.length)}e(O())},onUpdateInviteFormLocalData:s=>{e(H({localData:s}))},onSubmitSuccess:()=>{n("../../")},onCancelClick:()=>{i!=null&&p.trackInviteEmailClicked("cancel")}}})(P),q=()=>{const e=L(),[t,n]=d.useState(!1),[i,s]=d.useState(!1),r=y(o=>z(o)),c=U(),v=V(),{useDynamicConfig:g}=x(),u=j.getSignedInUser();if(u==null)throw Error("Can't access invite referral screen without signing in...");const l=y(o=>C(o)),D=u?.firstName!=null?u.firstName:"User",{configValue:h}=g(b.zeniCardsConfig),{configValue:S}=g(b.zeniAccountsConfig),k=G(S);d.useEffect(()=>{e(_()),r?.rewardsLastViewedTime==null&&i===!1&&(e(K()),s(!0))},[]),d.useEffect(()=>{t||l.fetchState!=="Not-Started"||(n(!0),e(Y(!0)))},[l.fetchState,e]);const I=r.company?.companyInfo.companyLegalName??r.companyName;return a.jsxs(a.Fragment,{children:[l.fetchState==="Completed"?a.jsx(E,{analytics:p,onLoad:o=>(N=>N.trackPageLoaded(F.Event.inviteEmailViewed))(o)}):null,a.jsx(X,{navigate:c,location:v,currentTenant:r,companyName:I,userName:D,inviteFormCompayData:l.localData,chargeCardCashbackRatePerTransaction:h.charge_card_cashback_rate_per_transaction!=null?h.charge_card_cashback_rate_per_transaction:.0175,maxAnnualPercentageYield:k.maxAnnualPercentageYield})]})};function fe(){const{useFeatureGate:e}=x(),{isFeatureEnabled:t}=e(T.isReferralFeatureEnabled);return a.jsxs(R,{children:[a.jsx(f,{path:"/",element:t?a.jsx(w,{}):a.jsx(m,{})}),a.jsx(f,{path:"how-it-works",element:t?a.jsx(w,{isReferralDrawerOpen:!0}):a.jsx(m,{})}),a.jsx(f,{path:"refer/*",element:t?a.jsx(q,{}):a.jsx(m,{})}),a.jsx(f,{path:"*",element:a.jsx(m,{})})]})}export{fe as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardRoutes-B-U5mAGm.js","assets/sentry-DVVsR48F.js","assets/core-C5W8nxR1.js","assets/zeni-epic-state-BDJoMjoR.js","assets/index-zWiSHOLd.js","assets/mui-CD-lJRrw.js","assets/analytics-DrcSmo8f.js","assets/utils-fE4-NjiI.js","assets/withTransactionSidePanel-DL8BhG5u.js","assets/useAskAiCfoHostNavButtonProps-DoAmGuPw.js","assets/TransactionDetailScreen-ByvC4V3o.js","assets/decodeURIComponentSafe-B4ofrmT1.js","assets/routePaths-DEzJucxI.js","assets/NotFoundScreen-DIeJhZda.js","assets/useInitialThreadRequest-CPcuN5d8.js","assets/analyticsHelper-JSt5oFi8.js","assets/CompanyPassportScreen-oS2G5pld.js","assets/MobileAppDrawer-B2FnRj4O.js","assets/useAiCfoDashboardSuggestedQuestionsChips-CFGGYb9p.js","assets/FeaturePreviewScreen-B_0uKukg.js","assets/ReferralListScreen-bLo9_GQZ.js","assets/index-BUmr5maU.css","assets/BillPayRoutes-yNX-iA8A.js","assets/AddressScreen-Dqns8o7L.js","assets/DomesticWireDetailScreen-Q3vU2bMG.js","assets/DrawerScreen-CMGdvP71.js","assets/SetupPagesScreen-DObnppv9.js","assets/BusinessVerificationPageScreen-62HLVe0x.js","assets/BillPayApprovalRoutes-DzOMp0L2.js","assets/ReimbursementApprovalRuleDetailScreen-C2FMWk-j.js","assets/getLocaleForTenant-B_Il-nCM.js","assets/ReimbursementRoutes-D54WJIgE.js","assets/ReimbursementApprovalRoutes-CFc6siNR.js","assets/TransactionListRoutes-DHP_TahM.js","assets/ZeniAccountStatementScreen-BrO-jfY4.js","assets/SettingsRoutes-DQ0yh-8g.js","assets/accountMappingHelper-DpVopnHv.js","assets/useEmailConnectResultRefresh-lWxckS4M.js","assets/QBOConnectionScreen-BscD4kCT.js","assets/empty-efGcmHNA.js","assets/index-BKQuSuay.js","assets/url-DjoTUBiJ.js","assets/index-DhtfwmwQ.js","assets/ReportsRoutes-BrtJ_-m2.js","assets/ChargeCardRoutes-JT1ktnG0.js","assets/useChargeCardPusherEvents-D7wpQRE_.js","assets/PeopleRoutes-B_g8cfdv.js","assets/ExpenseAutomationRoutes-CxrDAOUS.js","assets/TreasuryRoutes-CJ_vGeGY.js","assets/useCashManagementBanner-HwbKcvlA.js","assets/VendorsRoutes-DpGiilRm.js","assets/pathToGoBack-C_7fp8nd.js","assets/ZeniAccountRoutes-Gt73EasM.js","assets/AddressRoutes-Cn4m82VU.js","assets/PandLWithForecastRoutes-H0hB0AgF.js","assets/CustomerOnboardingRoutes-CI6qRXML.js","assets/TransactionDetailRoutes-CiULbGzd.js","assets/EntityDetailRoutes-DgD0rt0Q.js","assets/NotificationRoutes-CkNzEGNi.js","assets/PerformanceRoutes-MEt6tq7t.js","assets/RewardsRoutes-C7Z3exkk.js","assets/TaskRoutes-BhLal2L_.js","assets/TaskListScreen-C5nOYLN5.js","assets/AiCfoScreen-CMCauxgE.js","assets/CardsAiCfoScreen-4QjrMuDm.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{_ as t,bn as ls,eX as us,fE as cs,fC as ds,gk as ms,fr as _s,cU as pe,cA as hs,fU as Es,cs as ps,bE as Rs,bo as xs,fY as gs,v as Is,LZ as js,bs as Ts,L_ as As,bK as fs,bJ as Ds,bt as ys,co as bs,L$ as Cs,M0 as vs,cQ as Us,cT as Os,cS as ws,cz as Ps,cG as Fs,o9 as Re,fA as xe,gu as Ls,g0 as ge,gr as Ie,gs as je,g1 as ks}from"./zeni-epic-state-BDJoMjoR.js";import{j as e}from"./liveblocks-D7MTBeqB.js";import{a as w}from"./sentry-DVVsR48F.js";import{u as Hs,h as Bs,i as Vs,g as Ss,j as z,l as Te,N as u,o as Ns,p as a}from"./core-C5W8nxR1.js";import{y as Zs,u as Ms,z as D,C as zs,c as Gs,d as $s,U as G,i as Ys,O as Ws,I as qs,L as F,a as Ae,t as _,P as Js,e as X,l}from"./index-zWiSHOLd.js";import"./mui-CD-lJRrw.js";import{f as fe}from"./analyticsHelper-JSt5oFi8.js";import{t as Ks}from"./getLocaleForTenant-B_Il-nCM.js";import"./recharts-BnfhYobU.js";import"./analytics-DrcSmo8f.js";import"./plaid-D3pZvM_U.js";import"./dnd-BN-V7BQY.js";import"./stripe-DMRn4zHo.js";import"./lottie-Bcxhpfzr.js";import"./lexical-LmEGSncg.js";import"./pdf-BpbLbEAW.js";import"./utils-fE4-NjiI.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]="645c08c2-9c8e-42cf-87c0-ce7d8ccaf32d",o._sentryDebugIdIdentifier="sentry-dbid-645c08c2-9c8e-42cf-87c0-ce7d8ccaf32d")}catch{}})();const Qs={dashboard:()=>t(()=>import("./DashboardRoutes-B-U5mAGm.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21])),bills:()=>t(()=>import("./BillPayRoutes-yNX-iA8A.js"),__vite__mapDeps([22,1,2,3,4,5,6,7,23,13,24,9,14,25,17,19,26,15,12,27,28,29,30,21])),reimbursement:()=>t(()=>import("./ReimbursementRoutes-D54WJIgE.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,13,26,17,15,12,27,19,9,14,25,32,29,30,21])),transactions:()=>t(()=>import("./TransactionListRoutes-DHP_TahM.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,34,21])),settings:()=>t(()=>import("./SettingsRoutes-DQ0yh-8g.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,17,36,23,13,15,27,12,16,37,38,39,40,41,42,11,28,29,32,21])),reports:()=>t(()=>import("./ReportsRoutes-BrtJ_-m2.js"),__vite__mapDeps([43,1,2,3,4,5,6,7,13,19,14,12,17,21])),chargeCards:()=>t(()=>import("./ChargeCardRoutes-JT1ktnG0.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,9,17,26,13,15,12,27,14,45,23,21])),people:()=>t(()=>import("./PeopleRoutes-B_g8cfdv.js"),__vite__mapDeps([46,1,2,3,4,5,6,7,13,9,17,21])),expenseAutomation:()=>t(()=>import("./ExpenseAutomationRoutes-CxrDAOUS.js"),__vite__mapDeps([47,1,2,3,13,4,5,6,7,9,10,11,12,8,36,25,21])),treasury:()=>t(()=>import("./TreasuryRoutes-CJ_vGeGY.js"),__vite__mapDeps([48,1,2,3,4,5,6,7,13,26,17,15,12,27,9,14,49,19,21])),vendors:()=>t(()=>import("./VendorsRoutes-DpGiilRm.js"),__vite__mapDeps([50,1,2,3,4,5,6,7,23,13,19,12,51,9,17,25,36,21])),zeniAccounts:()=>t(()=>import("./ZeniAccountRoutes-Gt73EasM.js"),__vite__mapDeps([52,1,2,3,4,5,6,7,49,13,26,17,15,12,27,19,24,23,9,34,21]))},Xs=["bills","transactions","settings","reimbursement","reports","chargeCards","people"],ee=o=>{"requestIdleCallback"in window?requestIdleCallback(o):setTimeout(o,100)},et=l(()=>t(()=>import("./ReportsRoutes-BrtJ_-m2.js"),__vite__mapDeps([43,1,2,3,4,5,6,7,13,19,14,12,17,21]))),st=l(()=>t(()=>import("./AddressRoutes-Cn4m82VU.js"),__vite__mapDeps([53,1,2,3,23,4,5,6,7,13,21]))),tt=l(()=>t(()=>import("./PeopleRoutes-B_g8cfdv.js"),__vite__mapDeps([46,1,2,3,4,5,6,7,13,9,17,21]))),nt=l(()=>t(()=>import("./PandLWithForecastRoutes-H0hB0AgF.js"),__vite__mapDeps([54,1,2,3,4,5,6,7,13,19,9,14,12,17,21]))),at=l(()=>t(()=>import("./CustomerOnboardingRoutes-CI6qRXML.js"),__vite__mapDeps([55,1,2,3,23,4,5,6,7,13,38,39,40,41,42,11,37,45,21]))),ot=l(()=>t(()=>import("./VendorsRoutes-DpGiilRm.js"),__vite__mapDeps([50,1,2,3,4,5,6,7,23,13,19,12,51,9,17,25,36,21]))),rt=l(()=>t(()=>import("./TransactionDetailRoutes-CiULbGzd.js"),__vite__mapDeps([56,1,2,3,13,4,5,6,7,10,9,11,12,21]))),De=l(()=>t(()=>import("./EntityDetailRoutes-DgD0rt0Q.js"),__vite__mapDeps([57,1,2,3,4,5,6,7,11,8,9,10,12,21]))),it=l(()=>t(()=>import("./DashboardRoutes-B-U5mAGm.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]))),ye=l(()=>t(()=>import("./BillPayRoutes-yNX-iA8A.js"),__vite__mapDeps([22,1,2,3,4,5,6,7,23,13,24,9,14,25,17,19,26,15,12,27,28,29,30,21]))),lt=l(()=>t(()=>import("./SettingsRoutes-DQ0yh-8g.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,17,36,23,13,15,27,12,16,37,38,39,40,41,42,11,28,29,32,21]))),be=l(()=>t(()=>import("./ReimbursementRoutes-D54WJIgE.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,13,26,17,15,12,27,19,9,14,25,32,29,30,21]))),ut=l(()=>t(()=>import("./ZeniAccountRoutes-Gt73EasM.js"),__vite__mapDeps([52,1,2,3,4,5,6,7,49,13,26,17,15,12,27,19,24,23,9,34,21]))),ct=l(()=>t(()=>import("./TreasuryRoutes-CJ_vGeGY.js"),__vite__mapDeps([48,1,2,3,4,5,6,7,13,26,17,15,12,27,9,14,49,19,21]))),dt=l(()=>t(()=>import("./TransactionListRoutes-DHP_TahM.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,34,21]))),mt=l(()=>t(()=>import("./ChargeCardRoutes-JT1ktnG0.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,9,17,26,13,15,12,27,14,45,23,21]))),_t=l(()=>t(()=>import("./NotificationRoutes-CkNzEGNi.js"),__vite__mapDeps([58,1,2,3,13,4,5,6,7,9,21]))),ht=l(()=>t(()=>import("./PerformanceRoutes-MEt6tq7t.js"),__vite__mapDeps([59,1,2,3,13,4,5,6,7,9,17,21]))),Et=l(()=>t(()=>import("./ExpenseAutomationRoutes-CxrDAOUS.js"),__vite__mapDeps([47,1,2,3,13,4,5,6,7,9,10,11,12,8,36,25,21]))),pt=l(()=>t(()=>import("./RewardsRoutes-C7Z3exkk.js"),__vite__mapDeps([60,1,2,3,4,5,6,7,13,20,9,17,21]))),Rt=l(()=>t(()=>import("./TaskRoutes-BhLal2L_.js"),__vite__mapDeps([61,1,2,3,13,4,5,6,7,14,17,62,9,21]))),xt=l(()=>t(()=>import("./AiCfoScreen-CMCauxgE.js"),__vite__mapDeps([63,1,2,3,4,5,6,7,18,51,21]))),Ce=l(()=>t(()=>import("./CardsAiCfoScreen-4QjrMuDm.js"),__vite__mapDeps([64,1,2,3,4,5,6,7,21]))),b=l(()=>t(()=>import("./NotFoundScreen-DIeJhZda.js"),__vite__mapDeps([13,1,2,3,4,5,6,7,21]))),gt=l(()=>t(()=>import("./TaskListScreen-C5nOYLN5.js"),__vite__mapDeps([62,1,2,3,4,5,6,7,9,17,21])));function St({setTenantEmailDomain:o}){const T=Hs(),B=Bs(),{tenantEmailDomain:i}=Vs(),L=Zs().mode,{setLoading:U,clearAllLoading:C,clearLoading:k}=Ms(),v=D.getSignedInUserTenant(i)?.tenantId,I=D.getSignedInUser(),se=ls(I),$=Ss(),[V,Pe]=w.useState(!1),r=z(n=>us(n)),{useFeatureGate:N}=zs(),Z=Gs(),te=$s(),Fe=!!r.company?.companyZeniAccountInfo?.isZeniAccountEnabled,Le=r.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",{isFeatureEnabled:ke}=N(G.isChargeCardFeatureEnabled),{isFeatureEnabled:ne}=N(G.isDebitCardFeatureEnabled),A=z(n=>n.tenantState.fetchState),j=z(n=>n.tenantState.activeTenantFetchState.fetchState),h=j==="Completed"||A==="Completed"?cs(ne,r):void 0,J=j==="Completed"||A==="Completed"?ds(r):void 0,He=Ys(r,ke,ne),{isCardsHidden:Be}=Ws(r?.tenantId),Ve=!He||!!Be,{isFeatureEnabled:Se}=N(G.isSettingsFeatureEnabled),{isFeatureEnabled:K}=N(G.isAiCfoFileUploadEnabled),Y=z(n=>ms(n));if(i!=null){const n=D.getSignedInUserTenant(i);I!=null&&n!=null&&fe(I,r,L)}const M={tenantId:v,userId:I?.userId,sessionId:I?.zeniSessionId},ae=_s(),E=qs(),Ne=r.company==null||E?.loggedInUserRoleMap!=null&&pe(E.loggedInUserRole),Ze=hs(E?.loggedInUserRoleMap),oe=w.useRef(!0),re=Te("/:tenantEmailDomain/onboarding/*")!==null,Q=Te("/:tenantEmailDomain/month_end_close_checks/review/:selectedTab/:selectedPeriod/*"),Me=z(n=>M.tenantId!=null?Es(n,M.tenantId):void 0);w.useEffect(()=>{U(F.TENANT_FETCHING),o(i)},[i]),w.useEffect(()=>{if(Q!=null&&v!=null){const n=Q.params.selectedPeriod;if(n!=null){const f=n.split("-");if(f.length===2){const c=ps(Number(f[0])),s=Number(f[1]),d=Rs(`01-${c<10?`0${c}`:c}-${s}`,Ae.getLocalizedStrings().dateFormat.analytics.DDDashMMDashYYYY),S=xs();d.isAfter(S,"month")===!1?T(gs(v,{month:c,year:s})):B("./month_end_close_checks/review")}}}},[Q,v]),w.useEffect(()=>{V||(Pe(!0),U(F.TENANT_FETCHING)),oe.current?oe.current=!1:!Is(ae,M)&&D.isSignedIn()&&(U(F.TENANT_FETCHING),function(n,f,c,s){if(xe(f?.userId,f?.zeniSessionId,n.tenantId),c(Ls(!0)),c(ge(n.tenantId)),n.tenantId!=null&&_.clearTenant(n.tenantId),n.tenantId!=null){const d=D.getSignedInUserTenantWithId(n.tenantId);s&&Ae.updateAppLocaleID(Ks(s)),d?.tenantEmailDomain!=null&&D.saveActiveTenantDomainForUser(d?.tenantEmailDomain)}n.userId!=null?X.identify(n.userId,{tenant_id:n.tenantId}):X.resetUserIdentity()}(M,I,T,Me))},[M,ae,I,T,D]),w.useEffect(()=>{D.isSignedIn()&&(U(F.TENANT_FETCHING),function(n,f,c,s,d,S,H){if(c==null&&s==null)return void console.warn("There is no current tenant selected!!");const W=s!=null&&d?.zeniSessionId!=null,os=c==null||c.tenantId!==s,rs=c!=null&&c.excludedResources==null,is=c!=null&&c.externalConnections==null;if(W&&os){H(ge(s));const q=D.getSignedInUserTenantWithId(s);q?.tenantEmailDomain!=null&&D.saveActiveTenantDomainForUser(q?.tenantEmailDomain),xe(d?.userId,d?.zeniSessionId,s),_.shouldFetchExcludedResources(s)&&(_.markExcludedResourcesFetchStarted(s),H(Ie(d.userId,s))),_.shouldFetchConnections(s)&&(_.markConnectionsFetchStarted(s),H(je(d.userId,s)))}else W&&rs&&_.shouldFetchExcludedResources(s)&&(_.markExcludedResourcesFetchStarted(s),H(Ie(d.userId,s))),W&&is&&_.shouldFetchConnections(s)&&(_.markConnectionsFetchStarted(s),H(je(d.userId,s)));if(W){X.identify(d.userId,{tenant_id:s});const q=s==null||s!=null&&(f==="Completed"||f==="Error");n==="Completed"||f!=="Not-Started"&&f!=="Error"||s==null||!_.shouldFetchActiveTenant(s)||(_.markActiveTenantFetchStarted(s),S(F.TENANT_FETCHING),H(ks(d.userId,s,d.zeniSessionId))),q&&(n==="Not-Started"||n==="Error")&&_.shouldFetchAllTenants()&&(_.markAllTenantsFetchStarted(),H(Re(d.userId,d.zeniSessionId)))}}(A,j,r,v,I,U,T))},[v,j]),w.useEffect(()=>{D.isSignedIn()&&A==="Completed"&&Y.tenantsBaseInOrder.length>0&&(k(F.TENANT_FETCHING),D.saveSignedInUserTenants(js(Y.tenantsBaseInOrder)),I!=null&&fe(I,r,L,void 0,Y.tenantsBaseInOrder))},[Y,A,r,I]),w.useEffect(()=>{j==="In-Progress"&&U(F.TENANT_FETCHING),j!=="Completed"&&j!=="Error"||(j==="Completed"&&v!=null?(C(),_.markActiveTenantFetchCompleted(v)):j==="Error"&&v!=null&&(_.markActiveTenantFetchFailed(v),k(F.TENANT_FETCHING),k(F.TENANT_SWITCHING))),A!=="Completed"&&A!=="Error"||(A==="Completed"?_.markAllTenantsFetchCompleted():A==="Error"&&_.markAllTenantsFetchFailed())},[j,A,v,V]);const ie=w.useRef(!1);w.useEffect(()=>{!ie.current&&j==="Completed"&&V&&(ie.current=!0,function(n=Xs,f=3e3){setTimeout(()=>{const c=s=>{if(s>=n.length)return;const d=n[s],S=Qs[d];S!=null?S().then(()=>ee(()=>c(s+1))).catch(()=>ee(()=>c(s+1))):c(s+1)};ee(()=>c(0))},f)}())},[j,V]);const O=r?.userRole!=null&&Ts(r?.userRole),{isFeatureEnabled:ze}=N(G.isReferralFeatureEnabled),Ge=r?.userRole!=null&&r.userRole.includes("charge_card_user"),$e=r?.userRole!=null&&r.userRole.includes("charge_card_admin"),P=r?.userRole!=null&&pe(r.userRole),le=r?.company==null||r.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!O,ue=!Ve&&!O,Ye=As(E?.loggedInUserRoleMap),We=r.externalConnections?.accounting[0]?.isValid,ce=r.company?.companyOnboardingInfo.isOnboardingCompleted,de=r?.company==null||r.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!O,me=de&&fs(E?.loggedInUserRoleMap),_e=Fe&&!O,qe=Le&&!O,Je=le&&Ds(E?.loggedInUserRoleMap),Ke=ue&&ys(E?.loggedInUserRoleMap),Qe=_e&&bs(E?.loggedInUserRoleMap),Xe=Cs(E?.loggedInUserRoleMap),es=vs(E?.loggedInUserRoleMap),ss=Us(E?.loggedInUserRoleMap),ts=Os(E?.loggedInUserRoleMap),ns=ws(E?.loggedInUserRoleMap),p=Ps(E?.loggedInUserRoleMap),R=Fs(E?.loggedInUserRoleMap),he=le&&p,Ee=de&&R,x=_e&&ss,g=qe&&ts,m=ue&&ns,as=r.excludedResources?.resources?.find(n=>n.resource==="/invites")!=null||Ze===!0||Ye===!0||Xe===!0||es===!0;return D.isSignedIn()?v==null?A==="Completed"?e.jsx(u,{to:"/",replace:!0,state:{...$.state,message:"...",origin:$.pathname}}):(I!=null&&A!=="In-Progress"&&T(Re(I.userId,I.zeniSessionId)),null):j!=="In-Progress"&&j!=="Not-Started"||A==="Completed"?(ce===!0||se&&!re)&&We===!1&&h===!1&&J===!1?(o(void 0),e.jsx(u,{to:"/connection/auth",replace:!0})):!V||ce!==!1||re||se?V&&r?.userRole&&h!=null&&J!=null&&i!=null&&Object.keys(E.loggedInUserRoleMap).length>0?e.jsx(Ns,{children:e.jsxs(a,{element:e.jsx(Js,{}),children:[e.jsx(a,{path:"/",element:e.jsx(It,{isDashboardAccess:P,showZeniAccountRoute:x,isUserHasBillPayAccess:p,isUserHasReimbursementAccess:R,showTreasuryRoute:g,isTenantBankingOnly:h,isTenantCardsOnly:J,showChargeCardRoute:m})}),e.jsx(a,{path:"dashboard/*",element:P?e.jsx(it,{}):e.jsx(y,{showZeniAccountRoute:x,isUserHasBillPayAccess:p,isUserHasReimbursementAccess:R,showTreasuryRoute:g,isTenantBankingOnly:h,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(a,{path:"reports/*",element:P?e.jsx(et,{}):e.jsx(y,{showZeniAccountRoute:x,isUserHasBillPayAccess:p,isUserHasReimbursementAccess:R,showTreasuryRoute:g,isTenantBankingOnly:h,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(a,{path:"people/*",element:as||P?e.jsx(tt,{}):e.jsx(y,{showZeniAccountRoute:x,isUserHasBillPayAccess:p,isUserHasReimbursementAccess:R,showTreasuryRoute:g,isTenantBankingOnly:h,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(a,{path:"forecast/*",element:P?e.jsx(nt,{}):e.jsx(y,{showZeniAccountRoute:x,isUserHasBillPayAccess:p,isUserHasReimbursementAccess:R,showTreasuryRoute:g,isTenantBankingOnly:h,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(a,{path:"onboarding/*",element:e.jsx(at,{})}),e.jsx(a,{path:"transaction/*",element:P&&O===!1||Ge||$e?e.jsx(rt,{}):e.jsx(y,{showZeniAccountRoute:x,isUserHasBillPayAccess:p,isUserHasReimbursementAccess:R,showTreasuryRoute:g,isTenantBankingOnly:h,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(a,{path:"transactions/*",element:P&&O===!1?e.jsx(dt,{}):e.jsx(y,{showZeniAccountRoute:x,isUserHasBillPayAccess:p,isUserHasReimbursementAccess:R,showTreasuryRoute:g,isTenantBankingOnly:h,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(a,{path:"customer/*",element:P&&O===!1?e.jsx(De,{entityType:"customer"}):e.jsx(y,{showZeniAccountRoute:x,isUserHasBillPayAccess:p,isUserHasReimbursementAccess:R,isTenantBankingOnly:h,showTreasuryRoute:g,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(a,{path:"vendor/*",element:P&&O===!1?e.jsx(De,{entityType:"vendor"}):e.jsx(y,{showZeniAccountRoute:x,isUserHasBillPayAccess:p,isUserHasReimbursementAccess:R,showTreasuryRoute:g,isTenantBankingOnly:h,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(a,{path:"tasks",element:e.jsx(gt,{})}),e.jsx(a,{path:"tasks/*",element:e.jsx(Rt,{})}),e.jsx(a,{path:"address/*",element:Je||me||Qe||Ke?e.jsx(st,{}):e.jsx(y,{showZeniAccountRoute:x,isUserHasBillPayAccess:p,isUserHasReimbursementAccess:R,showTreasuryRoute:g,isTenantBankingOnly:h,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(a,{path:"checking/*",element:x?e.jsx(ut,{}):e.jsx(b,{})}),e.jsx(a,{path:"treasury/*",element:g?e.jsx(ct,{}):e.jsx(b,{})}),e.jsx(a,{path:"performance",element:te===!0?e.jsx(ht,{}):e.jsx(we,{tenantEmailDomain:i})}),e.jsx(a,{path:"month_end_close_checks/review/*",element:te===!0&&O===!1?e.jsx(Et,{}):e.jsx(we,{tenantEmailDomain:i})}),e.jsx(a,{path:"notifications/*",element:e.jsx(_t,{})}),e.jsx(a,{path:"vendors/*",element:Ne?e.jsx(ot,{}):e.jsx(b,{})}),e.jsx(a,{path:"bill/*",element:he?e.jsx(ye,{}):e.jsx(y,{showZeniAccountRoute:x,isUserHasBillPayAccess:p,isUserHasReimbursementAccess:R,showTreasuryRoute:g,isTenantBankingOnly:h,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(a,{path:"bills/*",element:he?e.jsx(ye,{}):e.jsx(y,{showZeniAccountRoute:x,isUserHasBillPayAccess:p,isUserHasReimbursementAccess:R,showTreasuryRoute:g,isTenantBankingOnly:h,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(a,{path:"reimbursement/*",element:Ee?e.jsx(be,{}):e.jsx(y,{showZeniAccountRoute:x,isUserHasBillPayAccess:p,isUserHasReimbursementAccess:R,showTreasuryRoute:g,isTenantBankingOnly:h,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(a,{path:"reimbursements/*",element:Ee?e.jsx(be,{}):e.jsx(y,{showZeniAccountRoute:x,isUserHasBillPayAccess:p,isUserHasReimbursementAccess:R,showTreasuryRoute:g,isTenantBankingOnly:h,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(a,{path:"settings/*",element:Se?e.jsx(lt,{hasAdminLevelAccess:me}):e.jsx(b,{})}),e.jsx(a,{path:"cards/ask",element:m&&Z?e.jsx(Ce,{isFileUploadEnabled:K}):e.jsx(b,{})}),e.jsx(a,{path:"cards/ask/:session_id",element:m&&Z?e.jsx(Ce,{isFileUploadEnabled:K}):e.jsx(b,{})}),e.jsx(a,{path:"cards/*",element:m?e.jsx(mt,{}):e.jsx(b,{})}),e.jsx(a,{path:"rewards/*",element:ze?e.jsx(pt,{}):e.jsx(b,{})}),e.jsx(a,{path:"/ai-cfo",element:Z?e.jsx(u,{to:"explore"}):e.jsx(b,{})}),e.jsx(a,{path:"/ai-cfo/",element:Z?e.jsx(u,{to:"explore"}):e.jsx(b,{})}),e.jsx(a,{path:"/ai-cfo/:session_id",element:Z?e.jsx(xt,{isFileUploadEnabled:K}):e.jsx(b,{})}),e.jsx(a,{path:"*",element:e.jsx(b,{})})]})}):null:(o(void 0),e.jsx(u,{to:"onboarding",replace:!0})):null:(console.warn("User logged out!!"),o(void 0),e.jsx(u,{to:"/signin/auth",replace:!0,state:{...$.state,message:"...",origin:$.pathname}}))}const It=({isDashboardAccess:o,showZeniAccountRoute:T,isUserHasBillPayAccess:B,isUserHasReimbursementAccess:i,showTreasuryRoute:L,isTenantBankingOnly:U,isTenantCardsOnly:C,showChargeCardRoute:k})=>{if(U===!0){if(T)return e.jsx(u,{to:"checking"});if(L)return e.jsx(u,{to:"treasury"});if(k)return e.jsx(u,{to:"cards"})}return C===!0&&k?e.jsx(u,{to:"cards"}):o?e.jsx(u,{to:"dashboard"}):T?e.jsx(u,{to:"checking"}):L?e.jsx(u,{to:"treasury"}):k?e.jsx(u,{to:"cards"}):B?e.jsx(u,{to:"bills"}):i?e.jsx(u,{to:"reimbursements"}):e.jsx(u,{to:"dashboard"})},y=({showZeniAccountRoute:o,isUserHasBillPayAccess:T,isUserHasReimbursementAccess:B,showTreasuryRoute:i,isTenantBankingOnly:L,showChargeCardRoute:U,tenantEmailDomain:C})=>{if(L===!0){if(o)return e.jsx(Ue,{tenantEmailDomain:C});if(i)return e.jsx(ve,{tenantEmailDomain:C});if(U)return e.jsx(Oe,{tenantEmailDomain:C})}return o?e.jsx(Ue,{tenantEmailDomain:C}):i?e.jsx(ve,{tenantEmailDomain:C}):U?e.jsx(Oe,{tenantEmailDomain:C}):T?e.jsx(Tt,{tenantEmailDomain:C}):B?e.jsx(jt,{tenantEmailDomain:C}):e.jsx(b,{})},jt=({tenantEmailDomain:o})=>e.jsx(u,{to:`/${o}/reimbursements`}),Tt=({tenantEmailDomain:o})=>e.jsx(u,{to:`/${o}/bills`}),ve=({tenantEmailDomain:o})=>e.jsx(u,{to:`/${o}/treasury`}),Ue=({tenantEmailDomain:o})=>e.jsx(u,{to:`/${o}/checking`}),Oe=({tenantEmailDomain:o})=>e.jsx(u,{to:`/${o}/cards`}),we=({tenantEmailDomain:o})=>e.jsx(u,{to:`/${o}/dashboard`});export{y as FallBackRoute,St as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as u}from"./liveblocks-D7MTBeqB.js";import{a as f,b as M,q as T}from"./sentry-DVVsR48F.js";import{u as A,h as z,j as c,g as D,N as j,n as O}from"./core-C5W8nxR1.js";import{u as P,z as s,y as F,e as E,a as B,f as _,g as N,V,h as Y,S as $,j as v}from"./index-zWiSHOLd.js";import{eX as q,LY as J,LZ as W,fA as X,g0 as Z,M2 as H,go as G,cY as K,M3 as C,M4 as Q,M5 as R,bY as y}from"./zeni-epic-state-BDJoMjoR.js";import"./mui-CD-lJRrw.js";import{u as ee}from"./useDeviceId-BnrfnzK7.js";import{f as te}from"./analyticsHelper-JSt5oFi8.js";import{t as ne}from"./getLocaleForTenant-B_Il-nCM.js";import"./recharts-BnfhYobU.js";import"./analytics-DrcSmo8f.js";import"./plaid-D3pZvM_U.js";import"./dnd-BN-V7BQY.js";import"./stripe-DMRn4zHo.js";import"./lottie-Bcxhpfzr.js";import"./lexical-LmEGSncg.js";import"./pdf-BpbLbEAW.js";import"./utils-fE4-NjiI.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]="e9e1ee64-ce38-40c1-a33a-f2a101a3d126",t._sentryDebugIdIdentifier="sentry-dbid-e9e1ee64-ce38-40c1-a33a-f2a101a3d126")}catch{}})();const ie=O(function(t,i){const d=t.tenantState.fetchState,g=t.tenantState.sendEmailMagicLinkFetchState,{magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:l}=i;return{googleClientId:v.googleClientId,microsoftClientId:v.microsoftClientId,signInError:t.tenantState.error?.error,fetchState:d,sendMagicLinkStatus:g,magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:l}},function(t,i){const{location:d,navigate:g}=i;return console.warn(JSON.stringify(window.location)),{onOAuthError:(n,a)=>{T({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(R({authCode:n,oauthProvider:a,appType:"web",redirectUri:y(l),sourceUri:y(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(C())}}})($),ae=M.memo(ie);function ve({setTenantEmailDomain:t}){const i=A(),d=z(),{clearAllLoading:g}=P(),n=s.getSignedInUser();f.useLayoutEffect(()=>{g()},[g]);const a=ee(),l=c(e=>e.tenantState.magicLinkCodeVerifier),{sendEmailMagicLinkFetchState:h,accountLocked:U,accountUnlockTime:L}=c(e=>e.tenantState),p=c(e=>e.tenantState.fetchState),k=c(e=>e.tenantState.activeTenantFetchState.fetchState),S=c(e=>e.tenantState.signInState),o=c(e=>e.tenantState.loggedInUser),r=c(e=>q(e)),I=c(e=>J(e)),m=D(),w=F().mode,b=m.state?.magicLinkExpired,x=m.state?.magicLinkAlreadyUsed;if(f.useEffect(()=>{h.fetchState==="Completed"&&l!=null&&(E.trackSignInLinkSent(),s.saveMagicLinkCodeVerifier(l))},[h.fetchState,l]),f.useEffect(()=>{t(void 0)},[]),f.useEffect(()=>{S!=="In-Progress"||p!=="Completed"&&k!=="Completed"||o?.zeniSessionId==null||r==null||(s.savePayNowInfoTooltip(!0,o.zeniSessionId),s.saveSignedInUserWithSession(o,o.zeniSessionId),s.saveSignedInUserTenants(W(I.tenantsInOrder),o.zeniSessionId),X(o.userId,o.zeniSessionId,r.tenantId),i(Z(r.tenantId)),s.saveActiveTenantDomainForUser(r.tenantEmailDomain),i(H("Completed")),B.updateAppLocaleID(ne(r)),te(o,r,w,void 0,I.tenantsInOrder),G().then(()=>{const e=Y();e!=null&&_(e)}),setTimeout(()=>{E.trackLogin(N.Event.loginSuccess,o.authProvider??"google",K(r.productSettings))},2e3))},[S,p,k,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:!!b,magicLinkAlreadyUsed:!!x,magicLinkExpiredEmail:s.getMagicLinkEmail()??void 0,location:m,navigate:d,deviceId:a??void 0,showEmailLogin:!0}),U===!0&&L!=null?u.jsx(V,{onClose:()=>i(C()),unlockDate:L}):null]})}export{ve as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-D7MTBeqB.js";import{a as i}from"./sentry-DVVsR48F.js";import{u as l,g as c,N as u}from"./core-C5W8nxR1.js";import{z as a,e as n,g as m,B as g}from"./index-zWiSHOLd.js";import{gt as p,Mk as y}from"./zeni-epic-state-BDJoMjoR.js";import{n as b}from"./mui-CD-lJRrw.js";import"./recharts-BnfhYobU.js";import"./analytics-DrcSmo8f.js";import"./plaid-D3pZvM_U.js";import"./dnd-BN-V7BQY.js";import"./stripe-DMRn4zHo.js";import"./lottie-Bcxhpfzr.js";import"./lexical-LmEGSncg.js";import"./pdf-BpbLbEAW.js";import"./utils-fE4-NjiI.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]="9ee5fea3-aa3d-48a1-85f1-d40bb7e27c04",e._sentryDebugIdIdentifier="sentry-dbid-9ee5fea3-aa3d-48a1-85f1-d40bb7e27c04")}catch{}})();function M(){const e=l(),t=c(),r=i.useRef(!1),f=a.isSignedIn(),o=t.state?.message==="logout"||f;return i.useEffect(()=>{if(o&&!r.current){r.current=!0;try{e(p()),y(),n.trackLogout(m.Event.logoutSuccess),n.resetUserIdentity(),a.clearAll()}catch(d){console.error("Error during sign out:",d)}finally{window.location.replace("/signin/auth")}}},[o,e]),o?s.jsx(h,{children:s.jsx(g,{fetchState:"In-Progress"})}):s.jsx(u,{to:"../",replace:!0})}const h=b.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`;export{M as default};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./liveblocks-D7MTBeqB.js";import{a as f}from"./sentry-DVVsR48F.js";import{t as u,u as h,j as y,N as b}from"./core-C5W8nxR1.js";import{Mh as I,fA as w,Bk as j}from"./zeni-epic-state-BDJoMjoR.js";import{z as l,B as x,G as S,M as D}from"./index-zWiSHOLd.js";import{n as c}from"./mui-CD-lJRrw.js";import"./recharts-BnfhYobU.js";import"./analytics-DrcSmo8f.js";import"./plaid-D3pZvM_U.js";import"./dnd-BN-V7BQY.js";import"./stripe-DMRn4zHo.js";import"./lottie-Bcxhpfzr.js";import"./lexical-LmEGSncg.js";import"./pdf-BpbLbEAW.js";import"./utils-fE4-NjiI.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]="cea52516-f8f8-4ad1-8532-5b26c406ed1b",e._sentryDebugIdIdentifier="sentry-dbid-cea52516-f8f8-4ad1-8532-5b26c406ed1b")}catch{}})();const W=()=>{const[e]=u(),t=e.get("code")??"",s=e.get("state")??"",p=e.get("profileId")??"",[n,g]=f.useState(!1),a=h(),i=y(m=>I(m)),r=l.getSignedInUser(),d=l.getSignedInUserTenantWithId(s);if(r==null||d==null)return o.jsx(b,{to:"/signin/auth",replace:!0});if(r==null)throw Error("Can't access this page without signing in...");return w(r.userId,r.zeniSessionId,d?.tenantId),f.useEffect(()=>{n||(g(!0),a(j(t,p,s)))},[n,a]),i.fetchState==="Error"?o.jsx(E,{children:o.jsx(_,{children:i.error?.message??""})}):(i.fetchState==="Completed"&&window.close(),o.jsx(x,{fetchState:"In-Progress"}))},E=c.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
width: 100%;
|
|
4
|
-
height: 100vh;
|
|
5
|
-
flex-direction: row;
|
|
6
|
-
justify-content: center;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
9
|
-
`,_=c(D.LargeRegular)`
|
|
10
|
-
display: flex;
|
|
11
|
-
color: ${S.important};
|
|
12
|
-
`;export{W as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{k as n}from"./index-zWiSHOLd.js";import"./mui-CD-lJRrw.js";import"./sentry-DVVsR48F.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="f17be0a9-8452-4732-8143-c042676b47a8",e._sentryDebugIdIdentifier="sentry-dbid-f17be0a9-8452-4732-8143-c042676b47a8")}catch{}})();function l(e){if(e.companyLocaleInfo!=null&&e.companyLocaleInfo.languageCode.length>0&&e.companyLocaleInfo.companyIncCountryCode.length>0){const o=`${e.companyLocaleInfo.languageCode.toLowerCase()}-${e.companyLocaleInfo.companyIncCountryCode.toUpperCase()}`;return console.warn(`localeID ${o}`),n(o)??"en"}return"en"}export{l as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as u}from"./sentry-DVVsR48F.js";import{h as b,g,i as h,j as S}from"./core-C5W8nxR1.js";import{eX as y}from"./zeni-epic-state-BDJoMjoR.js";import{Y as k,K as C,c as A,$ as T,a1 as I,q as w,a3 as D}from"./index-zWiSHOLd.js";import"./mui-CD-lJRrw.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]="20795573-50c9-45d4-8c87-e89f815250cc",e._sentryDebugIdIdentifier="sentry-dbid-20795573-50c9-45d4-8c87-e89f815250cc")}catch{}})();function j(e){const{mobileExploreReferrer:t}=e,{isAiCfoOpen:r,setIsAiCfoOpen:i}=k(),n=b(),o=g(),{tenantEmailDomain:s}=h(),l=C(),f=D(l),d=A(),p=T(),m=S(a=>a.tenantState.fetchState==="Completed"||a.tenantState.activeTenantFetchState.fetchState==="Completed"?y(a):void 0),c=m?.masterTOSInfo?.isMasterTOSAccepted??!1;return{isAiCfoAccessEnabled:p&&d&&!r,onAskAiCfoClick:u.useCallback(()=>{if(s!=null)if(c)if(f){const a=w(o.state?.pathnameStackToGoBack,o.pathname);n(`/${s}/ai-cfo/explore`,{state:{pathnameStackToGoBack:a,referrer:t}})}else i(!0);else I({location:o,navigate:n,mergeState:{referrer:t}})},[c,f,o,t,n,i,s])}}export{j as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as d}from"./sentry-DVVsR48F.js";import{u as m,h as b,i as c,j as f}from"./core-C5W8nxR1.js";import{C as l,U as g}from"./index-zWiSHOLd.js";import"./mui-CD-lJRrw.js";import{Ro as p,Rg as h,Bs as y}from"./zeni-epic-state-BDJoMjoR.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]="f90afd97-0ccd-445a-abaa-1c310f41e14e",e._sentryDebugIdIdentifier="sentry-dbid-f90afd97-0ccd-445a-abaa-1c310f41e14e")}catch{}})();function E(){const e=m(),a=b(),{tenantEmailDomain:o}=c(),{useFeatureGate:i}=l(),{isFeatureEnabled:t}=i(g.isCashManagementFeatureEnabled),r=f(s=>p(s)),u=f(s=>h(s)),n=r.banner.fetchState;if(d.useEffect(()=>{t===!0&&n!=="Completed"&&n!=="In-Progress"&&e(y(!1))},[e,t,n]),t===!0)return{banner:r.banner,bufferAmount:u.formData.bufferAmount,onSetUpAutoSweepClick:()=>{a(`/${o}/checking/cash_management/auto_sweep`,{state:{fromCashManagement:!0}})}}}export{E as u};
|