@zeniai/web-app-ui 5.0.7-qa → 5.0.8-qa
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/AddressRoutes-CMLsknQg.js +1 -0
- package/dist/assets/AddressScreen-CzS53KmK.js +9 -0
- package/dist/assets/{AiCfoScreen-DGvQvC7f.js → AiCfoScreen-BfR_WAUY.js} +3 -3
- package/dist/assets/{BillPayApprovalRoutes-DGSGgIvj.js → BillPayApprovalRoutes-OpE7S5Ra.js} +1 -1
- package/dist/assets/{BillPayRoutes-B8LI_Qsf.js → BillPayRoutes-axo-SKgc.js} +10 -10
- package/dist/assets/{BusinessVerificationPageScreen-ZnINyDEr.js → BusinessVerificationPageScreen-D5XmscRr.js} +2 -2
- package/dist/assets/{ChargeCardRoutes-DqzoxnGl.js → ChargeCardRoutes-viH2izFk.js} +8 -8
- package/dist/assets/CompanyPassportScreen-BxubR0U3.js +1 -0
- package/dist/assets/ConnectionAuthScreen-CL2Yh8zj.js +11 -0
- package/dist/assets/CustomerOnboardingAuthScreen-BSVEycjw.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-Di5fRx2F.js → CustomerOnboardingRoutes-BS7CY5PQ.js} +4 -4
- package/dist/assets/{DashboardRoutes-Z9v4dCYn.js → DashboardRoutes-B8ZUfp35.js} +3 -3
- package/dist/assets/{DefaultTenantHome-BKfjimqs.js → DefaultTenantHome-CmxoCLw7.js} +1 -1
- package/dist/assets/{DomesticWireDetailScreen-ClnHC2ph.js → DomesticWireDetailScreen-DSQSKR9w.js} +4 -4
- package/dist/assets/DrawerScreen-BTwKpT_9.js +1 -0
- package/dist/assets/{EntityDetailRoutes-gLao7wuj.js → EntityDetailRoutes-D_BEywu_.js} +1 -1
- package/dist/assets/{ExpenseAutomationRoutes-CrnR7Lrw.js → ExpenseAutomationRoutes-9lDNU9cs.js} +5 -5
- package/dist/assets/FeaturePreviewScreen-Dr99eg64.js +1 -0
- package/dist/assets/MagicLinkRoutes-CeF1WSBY.js +72 -0
- package/dist/assets/MagicLinkSignInScreen-BBr6a7xt.js +12 -0
- package/dist/assets/{MobileAppDrawer-Dr8YUpu7.js → MobileAppDrawer-BkI4pCp1.js} +1 -1
- package/dist/assets/NotFoundScreen-BsYL6zqu.js +1 -0
- package/dist/assets/{NotificationRoutes-ClFpK-C6.js → NotificationRoutes-DUO3WvcP.js} +1 -1
- package/dist/assets/PandLWithForecastRoutes-BfsVk3Vf.js +1 -0
- package/dist/assets/{PeopleRoutes-DBRQVTVt.js → PeopleRoutes-DM78CUht.js} +3 -3
- package/dist/assets/PerformanceRoutes-CBDi4gyz.js +1 -0
- package/dist/assets/{Preview-MjcBAXnd.js → Preview-C-TyETku.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-DK9wxn3B.js → QBOConnectionScreen-BfooSrpS.js} +1 -1
- package/dist/assets/ReferralListScreen-BHutPF6F.js +5 -0
- package/dist/assets/{ReimbursementApprovalRoutes-DmHsyRFF.js → ReimbursementApprovalRoutes-Dif6cOro.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-_vi0SnM7.js → ReimbursementApprovalRuleDetailScreen-B0Q8zt66.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-BTbw2flH.js → ReimbursementRoutes-CjQsA-jF.js} +6 -6
- package/dist/assets/{ReportsRoutes-CDPP5ySl.js → ReportsRoutes-lxuzl_Wx.js} +1 -1
- package/dist/assets/RewardsRoutes-BiVBNcJr.js +1 -0
- package/dist/assets/{ScreenRoutes-159QKj4s.js → ScreenRoutes-DOpjKPVr.js} +2 -2
- package/dist/assets/{SettingsRoutes-BIVZr5DK.js → SettingsRoutes-D0rY2sqY.js} +4 -4
- package/dist/assets/{SetupPagesScreen-CVBxCxe5.js → SetupPagesScreen-xsDN3gQY.js} +5 -5
- package/dist/assets/SignInScreen-Cox6sg_r.js +1 -0
- package/dist/assets/SignOutScreen-BYcswMle.js +9 -0
- package/dist/assets/{TaskListScreen-MGrTepEx.js → TaskListScreen-Gh2BcJf5.js} +2 -2
- package/dist/assets/TaskRoutes-DLsxacD4.js +9 -0
- package/dist/assets/TransactionDetailRoutes-DEoXVFV0.js +1 -0
- package/dist/assets/{TransactionDetailScreen-CrA3WsFF.js → TransactionDetailScreen-B3XLOPyj.js} +2 -2
- package/dist/assets/{TransactionListRoutes-DwX8e6Ks.js → TransactionListRoutes-D5xKomzr.js} +1 -1
- package/dist/assets/TreasuryRoutes-DtYSpqNp.js +37 -0
- package/dist/assets/{VendorsRoutes-AINuWKjI.js → VendorsRoutes-iE2oE5sx.js} +10 -10
- package/dist/assets/WiseConfirmationScreen-Bk9m0DPr.js +12 -0
- package/dist/assets/{ZeniAccountRoutes-DRN7QXep.js → ZeniAccountRoutes-C0ogwbuf.js} +10 -10
- package/dist/assets/ZeniAccountStatementScreen-DCHmv1RE.js +9 -0
- package/dist/assets/{accountMappingHelper-C7lhn2QG.js → accountMappingHelper-CMyHY-D8.js} +1 -1
- package/dist/assets/{analytics-DVf_BIp2.js → analytics-BnogYQPW.js} +1 -1
- package/dist/assets/{analyticsHelper-CeoHmyKo.js → analyticsHelper-VcinlAtN.js} +1 -1
- package/dist/assets/{core-DDvaTX37.js → core-kCJNxrqK.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-CFMDmh9m.js → decodeURIComponentSafe-o2pxqUNn.js} +1 -1
- package/dist/assets/{dnd-V-MvMUKQ.js → dnd-BFDNLN4d.js} +1 -1
- package/dist/assets/{empty-CMRWUy5u.js → empty-BrKKuJyB.js} +1 -1
- package/dist/assets/{empty-BH3HNirl.js → empty-CT-qhBXX.js} +1 -1
- package/dist/assets/{emptyVideoElement-DcgSS6Hv.js → emptyVideoElement-Dh7SLvZr.js} +1 -1
- package/dist/assets/{epic-EUgR-DEx.js → epic-CAWrO46g.js} +1 -1
- package/dist/assets/getLocaleForTenant-1Uav7XAQ.js +1 -0
- package/dist/assets/{index-D0LGQvnR.js → index-7YbGGjkm.js} +1 -1
- package/dist/assets/{index-K968il8d.js → index-BIrdXBd5.js} +1 -1
- package/dist/assets/{index-Dw_Cve7-.js → index-BOKb4mE0.js} +1 -1
- package/dist/assets/{index-DVaIp1ct.js → index-C6ATGAAr.js} +1 -1
- package/dist/assets/{index-DnJYpNVb.js → index-CvT58EDq.js} +13725 -13797
- package/dist/assets/{index-Dxn7gemY.js → index-D2AzfBKx.js} +1 -1
- package/dist/assets/{index-DcCaBRIt.js → index-D3-PmkS_.js} +2 -2
- package/dist/assets/{lexical-CxLnVFxa.js → lexical-Dzssv7yV.js} +1 -1
- package/dist/assets/{liveblocks-CiToer5R.js → liveblocks-CiP_ybjI.js} +1 -1
- package/dist/assets/{lottie-BsqqVDQp.js → lottie-affxu90n.js} +1 -1
- package/dist/assets/{mui-CP2KeZRM.js → mui-DyZ66Hcs.js} +1 -1
- package/dist/assets/{pathToGoBack-DbeVW-hw.js → pathToGoBack-CZxyCUC3.js} +1 -1
- package/dist/assets/{pdf-CZO_R6LN.js → pdf-8e-E8rNQ.js} +3 -3
- package/dist/assets/{pdf-lib-DHbUCXaf.js → pdf-lib-BcflqWCN.js} +1 -1
- package/dist/assets/{plaid-_EXcf3jJ.js → plaid-FyiqUv2G.js} +1 -1
- package/dist/assets/{pusher-BppW-Uw8.js → pusher-CxuRwAae.js} +1 -1
- package/dist/assets/{react-CkSvbTDR.js → react-BoOc_4N3.js} +1 -1
- package/dist/assets/{react-D1rJN8lx.js → react-C2XRiQUN.js} +1 -1
- package/dist/assets/{react-BVOfIs_O.js → react-CmVQ18xG.js} +1 -1
- package/dist/assets/{react-DerqvQlW.js → react-D1lsM1-4.js} +1 -1
- package/dist/assets/{react-DEjR98iS.js → react-DCHHkfVQ.js} +1 -1
- package/dist/assets/{react-B4DfGJEk.js → react-aFvNsmqH.js} +1 -1
- package/dist/assets/{recharts-CxZa6yMn.js → recharts-BwJtr99T.js} +1 -1
- package/dist/assets/{routePaths-D9iN1cLV.js → routePaths-BSkJ1W8n.js} +1 -1
- package/dist/assets/{sentry-8AfgzGIO.js → sentry-FpOk-uOh.js} +1 -1
- package/dist/assets/{url-DV5smE06.js → url-Bl72EBuq.js} +1 -1
- package/dist/assets/{url-B8dUq2RL.js → url-DAvashYQ.js} +1 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-C9p_HWtx.js +1 -0
- package/dist/assets/{useDeviceId-C9CFDiHV.js → useDeviceId-LkHHn9A4.js} +1 -1
- package/dist/assets/useFetchSuggestedQuestionsWhenReady-CWbYAi7j.js +1 -0
- package/dist/assets/{useInitialThreadRequest-CBft5O6R.js → useInitialThreadRequest-Dia-MiHT.js} +1 -1
- package/dist/assets/{utils-DVMMWGFG.js → utils-Bq4O8z6v.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-13UAZ-FH.js → withTransactionSidePanel-6L7N_-mK.js} +3 -3
- package/dist/assets/{zeni-epic-state-D4vGt0eL.js → zeni-epic-state-CPD487tE.js} +5 -5
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/AddressRoutes-DC-HB6RD.js +0 -1
- package/dist/assets/AddressScreen-Dmce3A5k.js +0 -9
- package/dist/assets/CompanyPassportScreen-C4lx6LQP.js +0 -1
- package/dist/assets/ConnectionAuthScreen-EO0dLpTq.js +0 -11
- package/dist/assets/CustomerOnboardingAuthScreen-BXqLNxl6.js +0 -1
- package/dist/assets/DrawerScreen-Cdhf9aya.js +0 -1
- package/dist/assets/FeaturePreviewScreen-SnQ5YUgu.js +0 -1
- package/dist/assets/MagicLinkRoutes-Cu7xGWkX.js +0 -72
- package/dist/assets/MagicLinkSignInScreen-DS36_WSc.js +0 -12
- package/dist/assets/NotFoundScreen-LHqD0vPk.js +0 -1
- package/dist/assets/PandLWithForecastRoutes-6a_QMlVa.js +0 -1
- package/dist/assets/PerformanceRoutes-ConFkznH.js +0 -1
- package/dist/assets/ReferralListScreen-D7D_U76W.js +0 -5
- package/dist/assets/RewardsRoutes-GFb-ALSs.js +0 -1
- package/dist/assets/SignInScreen-BK71j1jJ.js +0 -1
- package/dist/assets/SignOutScreen-C00r1rFc.js +0 -9
- package/dist/assets/TaskRoutes-BUbVAVTA.js +0 -9
- package/dist/assets/TransactionDetailRoutes-BovwacAn.js +0 -1
- package/dist/assets/TreasuryRoutes-CdSpVWn2.js +0 -37
- package/dist/assets/WiseConfirmationScreen-CZuME63P.js +0 -12
- package/dist/assets/ZeniAccountStatementScreen-BCOPxpUz.js +0 -9
- package/dist/assets/getLocaleForTenant-DU8HEeVi.js +0 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-DKLQyfUj.js +0 -1
- package/dist/assets/useFetchSuggestedQuestionsWhenReady-B1Y3Jjir.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-CvT58EDq.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-FpOk-uOh.js"><link rel="modulepreload" crossorigin href="/assets/core-kCJNxrqK.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-CPD487tE.js"><link rel="modulepreload" crossorigin href="/assets/mui-DyZ66Hcs.js"><link rel="modulepreload" crossorigin href="/assets/analytics-BnogYQPW.js"><link rel="modulepreload" crossorigin href="/assets/utils-Bq4O8z6v.js"><link rel="stylesheet" crossorigin href="/assets/index-D-vub4_t.css"></head><body style="margin:0"><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><div class="app-shell-loader" id="app-shell-loader"><div class="app-shell-sidebar"><div class="app-shell-sidebar-group"><div class="app-shell-bar zeni-logo" style="width:96px;height:20px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:78px;height:16px"></div><div class="app-shell-bar" style="width:46px;height:16px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:110px;height:16px"></div><div class="app-shell-bar" style="width:84px;height:16px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:84px;height:16px"></div><div class="app-shell-bar" style="width:64px;height:16px"></div></div></div><div class="app-shell-main"><div class="app-shell-navbar"><div class="app-shell-bar" style="width:106px;height:27px"></div><div class="app-shell-bar" style="width:111px;height:32px"></div></div><div class="app-shell-logo"><svg width="96" height="96" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16.768 0.0270284C16.571 -0.055168 16.348 0.0572476 16.2913 0.267574C16.2713 0.342517 16.2489 0.417461 16.2253 0.491196C16.0094 1.15723 15.6459 1.76645 15.148 2.27776C14.3056 3.14203 13.1847 3.61949 11.9918 3.6207H11.9883C10.7978 3.6207 9.67689 3.14565 8.83445 2.2838C8.33653 1.7737 7.97077 1.16448 7.75367 0.499657C7.73007 0.425922 7.70765 0.350979 7.68641 0.276035C7.62978 0.065709 7.40678 -0.0454978 7.20974 0.0366985C6.05463 0.522624 4.98565 1.17899 4.0323 1.97436C3.91195 2.07468 3.87301 2.24512 3.93083 2.39259C3.9792 2.51589 4.03112 2.63797 4.08539 2.75764C4.51133 3.70894 5.10364 4.5853 5.84815 5.34682C7.48937 7.0246 9.66863 7.9493 11.9871 7.9493H11.9954C14.3162 7.94689 16.4978 7.01855 18.1379 5.33595C18.8812 4.57321 19.4711 3.69564 19.8959 2.74434C19.9502 2.62347 20.0009 2.50138 20.0493 2.37809C20.1071 2.23062 20.0682 2.06018 19.9478 1.95985C18.9933 1.16569 17.9231 0.511745 16.768 0.0270284Z"/><path d="M19.9102 21.2422C19.4843 20.2933 18.8931 19.4194 18.151 18.6603C16.5086 16.9801 14.3223 16.053 12.0038 16.0578C8.50304 16.0614 5.48371 18.1961 4.11031 21.2603C4.05722 21.38 4.0053 21.5009 3.95575 21.623C3.89675 21.7704 3.93569 21.9421 4.05722 22.0436C5.01175 22.8366 6.08073 23.4893 7.23466 23.9728C7.4317 24.055 7.65352 23.9438 7.71134 23.7335C7.73139 23.6573 7.75381 23.5836 7.77859 23.5086C8.37207 21.6979 10.0416 20.3888 12.0073 20.3864H12.012C13.2025 20.3864 14.3234 20.8614 15.1659 21.7233C15.6626 22.231 16.026 22.8378 16.2431 23.5002C16.2679 23.5739 16.2903 23.6489 16.3104 23.7238C16.3682 23.9341 16.59 24.0453 16.787 23.9619C17.9422 23.476 19.01 22.8209 19.9633 22.0255C20.0837 21.9252 20.1226 21.7535 20.0648 21.606C20.0164 21.4828 19.9645 21.3631 19.9102 21.2422Z"/><path d="M0.132148 10.1666C0.158105 9.98769 0.305591 9.85352 0.482575 9.85352L23.5093 9.81726C23.6863 9.81726 23.8338 9.95022 23.8609 10.1291C23.9518 10.7347 23.999 11.3548 23.999 11.9858C24.0001 12.6131 23.9541 13.2284 23.8668 13.8292C23.8408 14.0081 23.6934 14.1422 23.5164 14.1422L0.489654 14.1773C0.312671 14.1773 0.165185 14.0443 0.138047 13.8654C0.0471956 13.2598 0 12.6397 0 12.0088C0 11.3826 0.0448358 10.7673 0.132148 10.1666Z"/></svg></div></div></div></body></html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/web-app-ui",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.8-qa",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/**/*"
|
|
6
6
|
],
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"@sentry/react": "^9.42.1",
|
|
29
29
|
"@stripe/stripe-js": "^4.4.0",
|
|
30
30
|
"@zeniai/client-analytics": "2.0.2",
|
|
31
|
-
"@zeniai/client-epic-state": "5.0.
|
|
32
|
-
"@zeniai/web-components": "4.0.
|
|
31
|
+
"@zeniai/client-epic-state": "5.0.4",
|
|
32
|
+
"@zeniai/web-components": "4.0.11",
|
|
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-CiToer5R.js";import{A as i}from"./AddressScreen-Dmce3A5k.js";import s from"./NotFoundScreen-LHqD0vPk.js";import"./sentry-8AfgzGIO.js";import{n as d,o as r}from"./core-DDvaTX37.js";import"./zeni-epic-state-D4vGt0eL.js";import"./recharts-CxZa6yMn.js";import"./index-DnJYpNVb.js";import"./mui-CP2KeZRM.js";import"./lottie-BsqqVDQp.js";import"./analytics-DVf_BIp2.js";import"./plaid-_EXcf3jJ.js";import"./dnd-V-MvMUKQ.js";import"./stripe-DMRn4zHo.js";import"./lexical-CxLnVFxa.js";import"./pdf-CZO_R6LN.js";import"./utils-DVMMWGFG.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]="339d6624-b51b-426b-a0cc-e8e8bd837ae0",t._sentryDebugIdIdentifier="sentry-dbid-339d6624-b51b-426b-a0cc-e8e8bd837ae0")}catch{}})();function _(){return e.jsxs(d,{children:[e.jsx(r,{path:"/edit/:addressType/:addressId",element:e.jsx(i,{})}),e.jsx(r,{path:"/new/:addressType",element:e.jsx(i,{})}),e.jsx(r,{path:"*",element:e.jsx(s,{})})]})}export{_ as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as d}from"./liveblocks-CiToer5R.js";import{a as h}from"./sentry-8AfgzGIO.js";import{j as P,h as _,u as j,l as E,g as $,k as B}from"./core-DDvaTX37.js";import{Z as M,h as D,z as L,j as K,B as U,x as z,d as I,f as m,U as F,p as b,r as N}from"./index-DnJYpNVb.js";import{IZ as C,gI as R,eM as G,I_ as O,b$ as V,I$ as Z,k2 as q}from"./zeni-epic-state-D4vGt0eL.js";import{n as H}from"./mui-CP2KeZRM.js";import J from"./NotFoundScreen-LHqD0vPk.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]="bf181289-10f3-40ff-9f72-3ece80ad1964",e._sentryDebugIdIdentifier="sentry-dbid-bf181289-10f3-40ff-9f72-3ece80ad1964")}catch{}})();const Q=H.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`,W=B(function(e,t){const{addressId:o,isSubPage:i,addressType:c}=t,l=G(e),a=t.roleMap!=null&&O(t.roleMap),r=i||c==="user_address"||V(l?.userRole??[])||a?void 0:"readonly";if(o==null){const s=Z(c,e);return{addressToEdit:s?.addressToCreate,loadingState:s?.status?.fetchState,googleAPIKey:b.googleMapsAPIKey,isDisabled:r,isSubPage:i,dontShowSaveConfirmationPopup:t.dontShowSaveConfirmation}}const n=C(e,o);return{addressToEdit:n.address,loadingState:n.fetchState,googleAPIKey:b.googleMapsAPIKey,isDisabled:r}},function(e,t){const{navigate:o,location:i,addressType:c}=t,l=a=>{if(a==="express-pay")o("../express-pay/add-wire");else{const r=i.state,n=N(r?.pathnameStackToGoBack);let s=n.poppedPathname??k();const u=r?.queryParams;if(u){const f=new URLSearchParams(u).toString();f&&(s=`${s}?${f}`)}o(s,{state:{pathnameStackToGoBack:n.newStack}})}};return{onSubmitHandler:a=>{const r=X(a);e(q({addressType:c,addressToCreate:r})),I?.trackSaveAddressClicked(m.Event.saveAddressClicked,{street:a.street.addressString,city:a.city,state:a.state,country:a.country.selectedOption??"",postalCode:a.postalCode,suite:a.suite,secondaryInfo:a.secondaryInfo}),l(t.bankAccountContext)},onCancel:()=>{l(t.bankAccountContext)}}})(F);function de({isSubPage:e,hideAddressSubTitle:t=!1,hideAddressBackButton:o=!1,dontShowSaveConfirmation:i,accountContext:c,addressTypeParam:l}){const a=P(),r=_(),n=j(),{addressId:s,addressType:u}=E(),f=M(),w=D(),x=L.getSignedInUser(),[g,v]=h.useState(s==null),p=$(S=>s!=null?C(S,s).fetchState:"Not-Started"),A=K();if(x==null)throw Error("Can't access address page without signing in...");const T=S=>S.trackPageLoaded(s!=null?m.Event.editAddress:m.Event.addAddress),y=l??u;return h.useEffect(()=>{g||s==null||(v(!0),r(R(s,!1)))},[g,s,r]),y==null||y.match(/(user_address|company_address|company_registered_address|vendor_address|officer_([1-9]|10)_address)$/g)?!g&&p==="Not-Started"||g&&p==="In-Progress"?d.jsx(U,{fetchState:p,style:{backgroundColor:w.colors.grey5}}):s!=null&&p==="Error"?(a(`${k(1)}/new`,{replace:!0}),d.jsx(d.Fragment,{})):d.jsxs(d.Fragment,{children:[d.jsx(z,{analytics:I,onLoad:T}),d.jsx(Q,{windowSize:f,children:d.jsx(W,{location:n,navigate:a,isSubPage:e===!0,hideAddressBackButton:o,hideAddressSubTitle:t,addressId:s,addressType:y,dontShowSaveConfirmation:i,bankAccountContext:c,roleMap:A?.loggedInUserRoleMap})})]}):d.jsx(J,{})}const k=(e=2)=>{let t="../";for(let o=0;o<e;o++)t=`${t}../`;return t},X=e=>({street:[e.street.addressString,e.suite,e.secondaryInfo],city:e.city,state:e.state,country:e.country.selectedOption??"",countryCode:e.countryCode,postalCode:e.postalCode,latitude:e.street.addressValue?.locationLat,longitude:e.street.addressValue?.locationLng});export{de as A,X as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as m}from"./liveblocks-CiToer5R.js";import{a as g}from"./sentry-8AfgzGIO.js";import{j as w,h as x,u as k,l as T,g as O,k as E}from"./core-DDvaTX37.js";import{z as N,aZ as F,x as P,d as L,f as V,aa as b,a_ as j,ao as A,ap as B,s as U}from"./index-DnJYpNVb.js";import{eM as D,fC as M,rt as _,fx as R,b$ as z,Lt as G,bm as Y,pB as Z,pp as $,jW as q,lq as S,Lu as H,bB as W,cr as C,ly as J,lB as K}from"./zeni-epic-state-D4vGt0eL.js";import"./mui-CP2KeZRM.js";import{c as Q}from"./routePaths-D9iN1cLV.js";import{M as X}from"./MobileAppDrawer-Dr8YUpu7.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new a.Error().stack;n&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[n]="be98c0fd-c7ff-44ba-9003-39b20d48e144",a._sentryDebugIdIdentifier="sentry-dbid-be98c0fd-c7ff-44ba-9003-39b20d48e144")}catch{}})();const ee=E(function(a){const n=R(a),i=N.getSignedInUser(),l=D(a),c=l.tenantId,p={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:c??""},f=z(l?.userRole??[])&&n.localData.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",e=G(a.companyConfigState),t=a.countryListState?.byCountryListCode?.nationalityCountryList?.countries??[];return{isCompanyVerified:n.companyView?.company?.company?.companyBillPayInfo?.companyVerificationStatus?.code==="verified",companyPassportView:n,allIndustries:e.companyIndustries??[],allNationalityCountries:t,isDisabled:f,authParams:p,filesEndPoint:`${A.fileMicroServiceBaseUrl}`,isZeniUser:Y(i)}},function(a,n){const{companyId:i,currentTenant:l,navigate:c,location:p}=n,{tenantEmailDomain:f}=l;return{onScheduleClick:e=>{let t=e.href;t.includes("http")||(t="https://".concat(t)),window.open(t,"_blank")},onSaveAll:()=>{a(K())},onAddressClick:e=>{const t=Q(f,e),o=U(p.state?.pathnameStackToGoBack,p.pathname);c(t,{state:{pathnameStackToGoBack:o}})},onResetClick:()=>{a(J({companyId:i}))},onBackClick:()=>{c("../")},onCompanyDetailsChanged:e=>{const{companyInfo:t,incInfo:o,taxDetails:r,zeniFinanceTeam:d}=e,{website:u}=t,{meetingLink:y}=d,{incDate:s}=o,{taxesFiledYears:h}=r,v={companyInfo:{...t,website:u!=""&&u!=null?C(u):void 0,meetingLink:y!=""&&y!=null?C(y):void 0,industry:t.industry.selectedOption,companyIndustryType:t.companyIndustryType?.selectedOption??void 0,companySubIndustry:t.subIndustry?.selectedOption??void 0,businessModel:t.businessModel.selectedOption??"",companySourceOfFunds:t.companySourceOfFunds?.selectedOption,companySourceOfFundsDescription:t.companySourceOfFundsDescription??void 0,countriesOfOperations:t.countriesOfOperations?.selectedOptions?.map(I=>I.length===2?I:B(I))??[],transactionVolume:t.transactionVolume?.selectedOption??void 0,transactionVolumeDescription:t.transactionVolumeDescription??void 0,regulatedStatus:t.regulatedStatus??void 0,regulatedStatusDescription:t.regulatedStatusDescription??void 0,usNexus:t.usNexus??void 0,usNexusTypes:t.usNexusTypes?.selectedOptions??[],purposeOfAccount:t.purposeOfAccount?.selectedOption??void 0,purposeOfAccountDescription:t.purposeOfAccountDescription??void 0},incInfo:{typeOfInc:o.typeOfInc.selectedOption??"",stateOfInc:o.stateOfInc.selectedOption??"",incDate:s!=null?W(s?.toString()):s,fileId:o.fileIds[0]},taxDetails:{taxIdOrEIN:r.taxIdOrEIN,sicCode:r.sicCode,naicsCode:r.naicsCode,dunsNumber:r.dunsNumber,taxesFiledYears:h.selectedOptions.map(I=>parseInt(I)),fileId:r.fileIds[0]}};a(S({companyDetails:v}))},onPrimaryContactDetailsUpdated:e=>{a(S({primaryContact:{userId:e.userId,email:e.email.trim(),firstName:e.name.firstName,lastName:e.name.lastName}}))},onNewCompanyOfficerAdded:e=>{a(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:void 0}]}))},onNewCompanyOfficerRemoved:e=>{a(H(e))},onCompanyOfficerUpdated:e=>{a(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:e.userId}]}))},updateFilesEntity:e=>{a(q({files:e}))},onDeleteFile:e=>{a($(e))},onEditFileName:(e,t)=>{a(Z(e,t.split(".")[0]))}}})(j);function de(){const a=w(),n=x(),i=k(),{tenantEmailDomain:l}=T(),[c,p]=g.useState(!1),[f,e]=g.useState(!1),t=O(s=>s.companyViewState.passportView.fetchState),o=O(s=>s.companyConfigState.fetchState),r=O(s=>D(s)),d=r.companyId??N.getSignedInUserTenant(l)?.companyId;if(N.getSignedInUser()==null)throw Error("Can't access company details page without signing in...");g.useEffect(()=>{c||t!=="Not-Started"||d==null||(p(!0),n(M(d)))},[c,t,d,n]),g.useEffect(()=>{o==="Not-Started"&&n(_())},[o,n]);const u=s=>{e(s)},y=t==="Not-Started"||t==="In-Progress"||o==="Not-Started"||o==="In-Progress";return d!=null&&t==="Error"?m.jsx(F,{onGoHome:()=>a("../",{replace:!0}),onReload:()=>window.location.reload()}):m.jsxs(m.Fragment,{children:[m.jsx(P,{analytics:L,onLoad:s=>s.trackPageLoaded(V.Event.companyPassport,b(i)?"Settings":"Company Passport")}),b(i)?m.jsx(X,{isAppContentDrawerOpen:f,handleDrawerToggle:u}):null,m.jsx(ee,{companyId:d,navigate:a,location:i,isLoading:y,currentTenant:r,isSettings:b(i),onClickMenuIcon:()=>{u(!0)}})]})}export{de as C};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{j as C}from"./liveblocks-CiToer5R.js";import{a}from"./sentry-8AfgzGIO.js";import{h as D,u as v,g as m,N as w}from"./core-DDvaTX37.js";import{Ic as A,eM as O,fj as _,mh as j,fJ as b,fi as U,eN as L,Ik as k}from"./zeni-epic-state-D4vGt0eL.js";import{u as F,z as u,L as g,D as $,o as H}from"./index-DnJYpNVb.js";import{n as z}from"./mui-CP2KeZRM.js";import{t as R}from"./getLocaleForTenant-DU8HEeVi.js";import{g as P,Q as G}from"./QBOConnectionScreen-DK9wxn3B.js";import"./recharts-CxZa6yMn.js";import"./lottie-BsqqVDQp.js";import"./analytics-DVf_BIp2.js";import"./plaid-_EXcf3jJ.js";import"./dnd-V-MvMUKQ.js";import"./stripe-DMRn4zHo.js";import"./lexical-CxLnVFxa.js";import"./pdf-CZO_R6LN.js";import"./utils-DVMMWGFG.js";import"./empty-BH3HNirl.js";import"./pdf-lib-DHbUCXaf.js";import"./index-Dw_Cve7-.js";import"./url-DV5smE06.js";import"./index-DVaIp1ct.js";import"./decodeURIComponentSafe-CFMDmh9m.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]="0b123673-fd7f-4059-bf31-bb5ce4328808",t._sentryDebugIdIdentifier="sentry-dbid-0b123673-fd7f-4059-bf31-bb5ce4328808")}catch{}})();const J=z.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
flex: 1 1 auto;
|
|
4
|
-
flex-direction: row;
|
|
5
|
-
justify-content: center;
|
|
6
|
-
align-items: center;
|
|
7
|
-
width: 100%;
|
|
8
|
-
height: 100vh;
|
|
9
|
-
background-color: ${t=>t.theme.colors.background};
|
|
10
|
-
box-shadow: ${t=>`0px 2px ${H.sp1} ${t.theme.colors.dropShadowNormal}`};
|
|
11
|
-
`;function pe(){const t=D(),i=v(),{setLoading:d,clearAllLoading:E}=F(),p=a.useRef(!1),c=a.useRef(!1),{code:x,realmId:N,state:T}=P(i.search),y=x!==""&&N!==""&&T!=="",I=m(l=>A(l)),e=m(l=>O(l)),n=m(l=>l.tenantState.fetchState),r=m(l=>l.tenantState.activeTenantFetchState.fetchState),o=u.getSignedInUser(),f=u.getActiveTenantForUser()?.tenantId,s=e?.externalConnections?.fetchState,h=e?.externalConnections?.saveConnectionState,S=e.externalConnections?.accounting[0]?.isValid;return a.useLayoutEffect(()=>{d(g.CONNECTION_AUTH)},[d]),a.useEffect(()=>{p.current||o==null||f==null||(p.current=!0,n==="Completed"||r!=="Not-Started"&&r!=="Error"||(d(g.TENANT_FETCHING),t(_(o.userId,f))))},[p,n,d]),a.useEffect(()=>{e.tenantId==null&&!c.current&&o!=null&&(c.current=!0,!(f==null||f!=null&&(r==="Completed"||r==="Error"))||n!=="Not-Started"&&n!=="Error"||t(j(o.userId)))},[c,n,r]),a.useEffect(()=>{o==null||e?.tenantId==null||e.externalConnections!=null||n!=="Completed"&&r!=="Completed"||s==="In-Progress"||h!=="Error"||(d(g.CONNECTION_AUTH),t(b(o.userId,e.tenantId)))},[h]),a.useEffect(()=>{n!=="Completed"&&r!=="Completed"||o==null||e?.tenantId==null||(t(U(e.tenantId)),u.saveActiveTenantDomainForUser(e.tenantEmailDomain),L(o?.userId,o?.zeniSessionId,e.tenantId),$.updateAppLocaleID(R(k(e))),e.externalConnections!=null||n!=="Completed"&&r!=="Completed"||s==="In-Progress"||o==null||e==null||t(b(o.userId,e.tenantId)))},[n,r,s]),a.useEffect(()=>{I.tenantsCoreDetailsInOrder.length>0&&n==="Completed"&&u.saveSignedInUserTenants(I.tenantsCoreDetailsInOrder)},[I.tenantsCoreDetailsInOrder.length,n]),a.useEffect(()=>{n!=="Completed"&&n!=="Error"||r!=="Completed"&&r!=="Error"||s!=="Completed"&&s!=="Error"||E()},[n,r,s]),e==null||n!=="Completed"&&r!=="Completed"||s!=="Completed"?null:y||S===!1?C.jsx(J,{children:C.jsx(G,{})}):C.jsx(w,{to:"/",replace:!0})}export{pe as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-CiToer5R.js";import{z as m}from"./index-DnJYpNVb.js";import{g as n}from"./QBOConnectionScreen-DK9wxn3B.js";import"./sentry-8AfgzGIO.js";import{u as p,N as a}from"./core-DDvaTX37.js";import"./zeni-epic-state-D4vGt0eL.js";import"./recharts-CxZa6yMn.js";import"./mui-CP2KeZRM.js";import"./lottie-BsqqVDQp.js";import"./analytics-DVf_BIp2.js";import"./plaid-_EXcf3jJ.js";import"./dnd-V-MvMUKQ.js";import"./stripe-DMRn4zHo.js";import"./lexical-CxLnVFxa.js";import"./pdf-CZO_R6LN.js";import"./utils-DVMMWGFG.js";import"./empty-BH3HNirl.js";import"./pdf-lib-DHbUCXaf.js";import"./index-Dw_Cve7-.js";import"./url-DV5smE06.js";import"./index-DVaIp1ct.js";import"./decodeURIComponentSafe-CFMDmh9m.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]="34360189-ad08-40f6-93e1-76035a2c6a6d",t._sentryDebugIdIdentifier="sentry-dbid-34360189-ad08-40f6-93e1-76035a2c6a6d")}catch{}})();const U=()=>{const t=p(),{code:o,realmId:r,state:e}=n(t.search),s=m.getSignedInUser()?.userId??"";if(f(o,r,e,s)===!0){const d=`../../${e}/onboarding?code=${o}&realmId=${r}&state=auth_flow`;return i.jsx(a,{to:d})}return i.jsx(a,{to:"../../"})},f=(t,o,r,e)=>t!=""&&o!=""&&r!=""&&e!=null&&e!="";export{U as default,f as hasValidParams};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-CiToer5R.js";import{Z as f,y as l,h as c}from"./index-DnJYpNVb.js";import{D as b}from"./mui-CP2KeZRM.js";import"./sentry-8AfgzGIO.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]="7fcde72f-e252-4f4d-801f-b7b68711bcb2",e._sentryDebugIdIdentifier="sentry-dbid-7fcde72f-e252-4f4d-801f-b7b68711bcb2")}catch{}})();const p={drawerLeftMargin:new l(0,0,240)};function h(e){const{isOpen:r,drawerLeftMargin:o,children:t,onClose:s}=e,n=f(),d=o?.valuePx(n)??p.drawerLeftMargin.valuePx(n),a=c();return i.jsx(b,{anchor:"right",open:r,PaperProps:{style:{width:`calc(100% - ${d})`}},slotProps:{backdrop:{style:{backgroundColor:a.colors.black,opacity:.8,cursor:"pointer"}}},onClose:s,children:t})}export{h as D};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as d}from"./liveblocks-CiToer5R.js";import{a as s}from"./sentry-8AfgzGIO.js";import{W as l,X as p,_ as f,r as m}from"./index-DnJYpNVb.js";import"./mui-CP2KeZRM.js";import u from"./NotFoundScreen-LHqD0vPk.js";import{j as c,u as b}from"./core-DDvaTX37.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]="d50dd50f-35b4-47d0-8d32-31d09751e61d",e._sentryDebugIdIdentifier="sentry-dbid-d50dd50f-35b4-47d0-8d32-31d09751e61d")}catch{}})();const j=()=>{const e=c(),t=b(),o=s.useCallback(()=>{window.open("https://www.zeni.ai/demo/request","_blank")},[]),r=s.useCallback(()=>{(()=>{const n=m(t.state?.pathnameStackToGoBack),i=n.poppedPathname??k();e(i,{state:{pathnameStackToGoBack:n.newStack}})})()},[]),a=l(t.pathname);return a!=null?d.jsx(p,{menuItem:f(a),onDemoClick:o,onGoBack:r}):d.jsx(u,{})},k=(e=2)=>{let t="../";for(let o=0;o<e;o++)t=`${t}../`;return t};export{j as F};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./liveblocks-CiToer5R.js";import{l as b,k as x,j,u as y,h as X,q as ee,g as A,N as te,n as ae,o as p}from"./core-DDvaTX37.js";import{Iu as S,Iv as k,Iw as z,yQ as $,yC as L,Ix as C,Iy as ne,Iz as oe,yG as ie,eN as I,yN as se,yK as le}from"./zeni-epic-state-D4vGt0eL.js";import{Z as g,o as r,q as re,d as v,p as E,U as de,r as ce,F as me,s as F,n as pe,i as ue,N as he,Y as xe,h as ge,B as fe,x as we,w as be,S as ye,Q as Se,y as ke,H as ve}from"./index-DnJYpNVb.js";import{n as c}from"./mui-CP2KeZRM.js";import f from"./NotFoundScreen-LHqD0vPk.js";import{a as N}from"./sentry-8AfgzGIO.js";import"./recharts-CxZa6yMn.js";import"./lottie-BsqqVDQp.js";import"./analytics-DVf_BIp2.js";import"./plaid-_EXcf3jJ.js";import"./dnd-V-MvMUKQ.js";import"./stripe-DMRn4zHo.js";import"./lexical-CxLnVFxa.js";import"./pdf-CZO_R6LN.js";import"./utils-DVMMWGFG.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]="c7cc0d97-5083-4f47-be81-c7290d2e8156",e._sentryDebugIdIdentifier="sentry-dbid-c7cc0d97-5083-4f47-be81-c7290d2e8156")}catch{}})();const Ie=c.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
|
-
`,je=x(function(e){const a=S(e),n=k(e),{companyName:o}=a;return{companyName:o,isDisabled:a.fetchState!=="Completed"?"disabled":void 0,magicLinkBankAccountDetails:n,magicLinkViewState:a}},function(e,a){const{vendorId:n,billId:o}=a;return{onFetchBankName:i=>{e(L(i))},onSaveHandler:i=>{v.trackBillPayMagicLinkSubmitBankAccountDetails(o),e($(i,"standard",n,o))},onACHDetailsUpdated:i=>{const{bankAccountSection:l}=i;e(z({data:l}))}}})(re);function P(){const e=g(),{vendorId:a,billId:n}=b();return a==null||n==null?t.jsx(f,{}):t.jsx(t.Fragment,{children:t.jsx(Ie,{windowSize:e,children:t.jsx(je,{vendorId:a,billId:n})})})}const $e=c.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
|
-
`,Ce=x(function(e,a){const{isSubPage:n}=a;return{addressToEdit:C(e),googleAPIKey:E.googleMapsAPIKey,isSubPage:n}},function(e,a){const{navigate:n,location:o}=a,i=()=>{const l=ce(o.state?.pathnameStackToGoBack),s=l.poppedPathname??De();n(s,{state:{pathnameStackToGoBack:l.newStack}})};return{onSubmitHandler:l=>{const s=Ae(l);e(ne({addressToCreate:s})),i()},onCancel:()=>{i()}}})(de);function Be({isSubPage:e}){const a=j(),n=y(),o=g();return t.jsx(t.Fragment,{children:t.jsx($e,{windowSize:o,children:t.jsx(Ce,{location:n,navigate:a,isSubPage:e===!0,googleAPIKey:E.googleMapsAPIKey})})})}const De=(e=2)=>{let a="../";for(let n=0;n<e;n++)a=`${a}../`;return a},Ae=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}),Ne=c.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
|
-
`,Pe=x(function(e){const a=S(e),n=k(e),o=C(e),{companyName:i}=a;return{companyName:i,isDisabled:a.fetchState!=="Completed"?"disabled":void 0,magicLinkBankAccountDetails:n,mailingAddressDetails:o,magicLinkViewState:a}},function(e,a){const{navigate:n,location:o,vendorId:i,billId:l}=a;return{onFetchBankName:s=>{e(L(s))},onSaveHandler:s=>{v.trackBillPayMagicLinkSubmitBankAccountDetails(l),e($(s,"us-domestic",i,l))},onWireDetailsUpdated:s=>{const{bankAccountSection:d}=s;e(z({data:d}))},onAddressClick:()=>{const s=o.pathname.replace("us-domestic","address"),d=F(o.state?.pathnameStackToGoBack,o.pathname);n(s,{state:{pathnameStackToGoBack:d}})}}})(me);function ze(){const e=j(),a=y(),n=g(),{vendorId:o,billId:i}=b();return o==null||i==null?t.jsx(f,{}):t.jsx(t.Fragment,{children:t.jsx(Ne,{windowSize:n,children:t.jsx(Pe,{location:a,navigate:e,vendorId:o,billId:i})})})}const Le=c.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
|
-
`,Ee=x(function(e){const a=S(e),n=k(e),o=C(e),{companyName:i}=a;return{companyName:i,isDisabled:a.fetchState!=="Completed"?"disabled":void 0,magicLinkBankAccountDetails:n,mailingAddressDetails:o,magicLinkViewState:a}},function(e,a){const{navigate:n,location:o,vendorId:i,billId:l}=a;return{onFetchBankNameBySwift:s=>{e(ie(s))},onSaveHandler:s=>{v.trackBillPayMagicLinkSubmitBankAccountDetails(l),e($(s,"international",i,l,a.isLocalCurrencyEnabled))},onBankDetailsUpdated:s=>{const{internationalWireSwiftAccountSection:d}=s;e(oe({data:d}))},onAddressClick:()=>{const s=o.pathname.replace("international","address"),d=F(o.state?.pathnameStackToGoBack,o.pathname);n(s,{state:{pathnameStackToGoBack:d}})}}})(he);function Fe(){const e=j(),a=y(),n=g(),{vendorId:o,billId:i}=b(),{useFeatureGate:l}=pe(),{isFeatureEnabled:s}=l(ue.isBillPayLocalCurrencyFeatureEnabled);return o==null||i==null?t.jsx(f,{}):t.jsx(Le,{windowSize:n,children:t.jsx(Ee,{location:a,navigate:e,vendorId:o,billId:i,isLocalCurrencyEnabled:s})})}const Te={containerWidth:new ke(100,58)},Ge=c(ye)`
|
|
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
|
-
`,Me=c.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
|
-
`,He=c.div`
|
|
54
|
-
display: flex;
|
|
55
|
-
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
56
|
-
flex-direction: column;
|
|
57
|
-
width: ${e=>`${Te.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
|
-
`,Ke=c.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
|
-
`,Ve=x(function(e,a){return{file:a.file,type:a.type}})(Se);function h({appContent:e}){const a=X(),n=y(),{tenantEmailDomain:o,vendorId:i,billId:l}=b(),[s]=ee(),d=s.get("token"),T=n.pathname.includes("address"),w=g(),G=xe(),B=ge(),M=()=>{G.toggle()},H=A(u=>S(u)),K=A(u=>k(u)),{authParams:V,fetchState:m,billAttachment:U,billFetchState:D,companyName:W,currencySymbol:_,amount:q}=H,{tenantId:J,userId:O,sessionId:Q}=V,{fetchState:Y,internationalBankAccountCreateStatus:Z}=K;return N.useEffect(()=>{I(),m==="Not-Started"&&i!=null&&o!=null&&d!=null&&a(se(i,o,d))},[]),N.useEffect(()=>{m==="Completed"&&(I(O,Q,J),l!=null&&a(le(l)))},[m]),m==="Error"?t.jsx(f,{}):Y==="Completed"||Z.fetchState==="Completed"?(I(),t.jsx(te,{to:"../../../../../../../bank/account/save/success",replace:!0,relative:"path"})):m==="In-Progress"?t.jsx(fe,{fetchState:m,style:{height:"100vh",backgroundColor:B.colors.grey5,boxShadow:`0px 2px ${r.sp1} ${B.colors.dropShadowNormal}`}}):t.jsxs(t.Fragment,{children:[m==="Completed"&&D==="Completed"&&t.jsx(we,{analytics:v,onLoad:u=>(R=>R.trackBillPayMagicLinkPageLoad(o??"",i??"",W,l??"",Ue(n.pathname),_,q))(u)}),t.jsxs(Me,{windowSize:w,children:[w!=="small"?t.jsx(Ge,{onClick:M}):null,t.jsx(Ke,{windowSize:w,isAddressPage:T,children:D==="In-Progress"?t.jsx(be,{size:"ExtraLarge",start:!0}):t.jsx(Ve,{file:U,type:"bill"})}),t.jsx(He,{windowSize:w,children:e})]})]})}const Ue=e=>`${e.split("/").at(-2)}_${e.split("/").at(-1)}`;function We(){return t.jsx(ve,{})}function lt(){return t.jsxs(ae,{children:[t.jsx(p,{path:"bank/account/save/success",element:t.jsx(We,{})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/ach/standard",element:t.jsx(h,{appContent:t.jsx(P,{})})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/ach/same-day",element:t.jsx(h,{appContent:t.jsx(P,{})})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/address",element:t.jsx(h,{appContent:t.jsx(Be,{isSubPage:!0})})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/us-domestic",element:t.jsx(h,{appContent:t.jsx(ze,{})})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/international",element:t.jsx(h,{appContent:t.jsx(Fe,{})})}),t.jsx(p,{path:"*",element:t.jsx(f,{})})]})}export{lt as default};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{j as u}from"./liveblocks-CiToer5R.js";import{a as g}from"./sentry-8AfgzGIO.js";import{h as U,u as w,j as _,q as M,g as l,N as T}from"./core-DDvaTX37.js";import{z as r,h as P,D as V,e as A,d as N,f as q,I as R,w as W,g as $}from"./index-DnJYpNVb.js";import{eM as B,Ie as G,Ip as H,If as J,eN as K,fi as Q,Il as X,fF as Y,cR as Z,Iq as ee,Ir as te}from"./zeni-epic-state-D4vGt0eL.js";import{n as ne}from"./mui-CP2KeZRM.js";import{u as se}from"./useDeviceId-C9CFDiHV.js";import{f as ie}from"./analyticsHelper-CeoHmyKo.js";import{t as ae}from"./getLocaleForTenant-DU8HEeVi.js";import"./recharts-CxZa6yMn.js";import"./lottie-BsqqVDQp.js";import"./analytics-DVf_BIp2.js";import"./plaid-_EXcf3jJ.js";import"./dnd-V-MvMUKQ.js";import"./stripe-DMRn4zHo.js";import"./lexical-CxLnVFxa.js";import"./pdf-CZO_R6LN.js";import"./utils-DVMMWGFG.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]="ae0f57db-3595-4505-b4ed-b80e467265dc",t._sentryDebugIdIdentifier="sentry-dbid-ae0f57db-3595-4505-b4ed-b80e467265dc")}catch{}})();const D=(t,i)=>t!=null&&t.length>0&&i==="magic_links";function De(){const t=U(),i=w(),m=_(),[k]=M(),n=k.get("token"),p=k.get("stytch_token_type"),f=r.getMagicLinkCodeVerifier(),a=se(),{otpChallenge:d,twoFAPhoneNumber:x,magicLinkEmail:c,verifyDeviceFetchState:z,resendVerifyDeviceOTPFetchState:C}=l(e=>e.tenantState),I=l(e=>e.tenantState.fetchState),y=l(e=>e.tenantState.activeTenantFetchState.fetchState),S=l(e=>e.tenantState.signInState),h=l(e=>e.tenantState.magicLinkSignInFetchState.fetchState),s=l(e=>e.tenantState.loggedInUser),o=l(e=>B(e)),b=l(e=>G(e)),E=r.getSignedInUser(),v=P().mode;g.useEffect(()=>{s?.zeniSessionId==null&&n!=null&&D(n,p)&&a!=null&&f!=null&&(r.saveMagicLinkTriggered(n),t(H(n,a,f)))},[n,p,t,a,f,s?.zeniSessionId]),g.useEffect(()=>{S!=="In-Progress"||I!=="Completed"&&y!=="Completed"||s?.zeniSessionId==null||o==null||(n!=null&&r.saveLastUsedMagicLinkToken(n),r.saveSignedInUserWithSession(s,s.zeniSessionId),r.saveSignedInUserTenants(J(b.tenantsInOrder),s.zeniSessionId),K(s.userId,s.zeniSessionId,o.tenantId),t(Q(o.tenantId)),r.saveActiveTenantDomainForUser(o.tenantEmailDomain),t(X("Completed")),V.updateAppLocaleID(ae(o)),ie(s,o,v,void 0,b.tenantsInOrder),Y().then(()=>{const e=$();e!=null&&A(e)}),setTimeout(()=>{N.trackLogin(q.Event.loginSuccess,"email",Z(o.productSettings))},2e3))},[S,I,y,s,o,b,v,i.state,t]);const F=g.useCallback(()=>{m("/signin/auth")},[m]),j=g.useCallback(()=>{a!=null&&d!=null&&c!=null&&t(ee(a,c,d))},[a,d,t,c]),O=g.useCallback(e=>{a!=null&&n!=null&&c!=null&&d!=null&&t(te(e,a,c,d))},[a,n,t,c,d]);if(h==="Completed"&&d!=null)return u.jsx(R,{phoneNumber:x,verifyOtpFetchState:z.fetchState,resendVerifyDeviceOTPFetchState:C,onResendOtp:j,onVerifyOtp:O,onCancelVerifyDevice:F});if(S==="In-Progress"&&I==="Completed"&&s?.zeniSessionId!=null&&o!=null||E!=null){const e=i.state?.origin??"/";return u.jsx(T,{to:e,state:{...i.state,origin:""}})}if(!D(n,p)||f==null||h==="Error"){const e=i.state?.origin??"/",L=n!=null&&r.getLastUsedMagicLinkToken()===n;return u.jsx(T,{to:e,state:{...i.state,origin:"",magicLinkAlreadyUsed:L,magicLinkExpired:!L&&(r.isMagicLinkTriggered(n??"")||h==="Error"&&s?.zeniSessionId==null)}})}return u.jsx(oe,{"data-testid":"smooth-loader",children:u.jsx(W,{size:"ExtraLarge",start:!0})})}const oe=ne.div`
|
|
2
|
-
position: fixed;
|
|
3
|
-
top: 0;
|
|
4
|
-
left: 0;
|
|
5
|
-
right: 0;
|
|
6
|
-
bottom: 0;
|
|
7
|
-
display: flex;
|
|
8
|
-
align-items: center;
|
|
9
|
-
justify-content: center;
|
|
10
|
-
z-index: 9999;
|
|
11
|
-
background-color: ${t=>t.theme.colors.background};
|
|
12
|
-
`;export{De as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./liveblocks-CiToer5R.js";import{j as e,k as i}from"./core-DDvaTX37.js";import{V as n}from"./index-DnJYpNVb.js";import"./mui-CP2KeZRM.js";import"./sentry-8AfgzGIO.js";import"./zeni-epic-state-D4vGt0eL.js";import"./recharts-CxZa6yMn.js";import"./lottie-BsqqVDQp.js";import"./analytics-DVf_BIp2.js";import"./plaid-_EXcf3jJ.js";import"./dnd-V-MvMUKQ.js";import"./stripe-DMRn4zHo.js";import"./lexical-CxLnVFxa.js";import"./pdf-CZO_R6LN.js";import"./utils-DVMMWGFG.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]="ed306081-38cd-4ad5-93c8-51b7102c2a4f",o._sentryDebugIdIdentifier="sentry-dbid-ed306081-38cd-4ad5-93c8-51b7102c2a4f")}catch{}})();const a=i(null,function(o,t){return{onGoBack:()=>{t.navigate(-1)},onGoHome:()=>{t.navigate("/")}}})(n);function h(){const o=e();return r.jsx(a,{navigate:o})}export{h as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as n}from"./liveblocks-CiToer5R.js";import{j as H,h as Q,u as Z,l as K,g as d,k as X,n as ee,o as C}from"./core-DDvaTX37.js";import{eM as M,qb as U,pL as ae,J5 as $,pG as T,bu as te,bm as se,bQ as oe,pH as re,J6 as ne,IS as S,dF as ie,ty as ce,J7 as le,tV as de,eT as fe,eR as me}from"./zeni-epic-state-D4vGt0eL.js";import{G as pe,z as ue,J as he,j as Fe,n as w,i as G,x as ge,d as q,aj as Ie,s as be}from"./index-DnJYpNVb.js";import"./mui-CP2KeZRM.js";import Ce from"./NotFoundScreen-LHqD0vPk.js";import{F as Se}from"./FeaturePreviewScreen-SnQ5YUgu.js";import{a as h}from"./sentry-8AfgzGIO.js";import{u as Te}from"./useAskAiCfoHostNavButtonProps-DKLQyfUj.js";import{c as ye}from"./useFetchSuggestedQuestionsWhenReady-B1Y3Jjir.js";import{u as Ae}from"./useInitialThreadRequest-CBft5O6R.js";import{t as xe}from"./routePaths-D9iN1cLV.js";import{M as ke}from"./MobileAppDrawer-Dr8YUpu7.js";import"./recharts-CxZa6yMn.js";import"./lottie-BsqqVDQp.js";import"./analytics-DVf_BIp2.js";import"./plaid-_EXcf3jJ.js";import"./dnd-V-MvMUKQ.js";import"./stripe-DMRn4zHo.js";import"./lexical-CxLnVFxa.js";import"./pdf-CZO_R6LN.js";import"./utils-DVMMWGFG.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new s.Error().stack;a&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[a]="73f6c86e-00fe-4de9-a65d-2044fff2f309",s._sentryDebugIdIdentifier="sentry-dbid-73f6c86e-00fe-4de9-a65d-2044fff2f309")}catch{}})();const y=(s,a,e,o)=>{if(s!=a){const r=o??"";s!=null&&s.length>0?e(`../${a}${r}`,{replace:!0}):e(`${a}${r}`,{replace:!0})}},je=X(function(s){const a=ne(s),e={},o=a.pandLReportWithForecast.uiState.nodeCollapseState;return Object.keys(o).forEach(r=>{e[r]=o[r]===!1}),{selectedTimeframe:a.selectedTimeframe,isForecastVsActualOn:a.isForecastVsActualOn,compareMode:a.compareMode,forecastList:a.forecastList,selectedForecast:a.selectedForecast,pandLreport:a.pandLReportWithForecast,scrollPosition:a.pandLReportWithForecast.uiState.scrollPosition,nodeOpenStatus:e,type:"name+balances_forecast",analytics:q}},function(s,a){return{onForecastSelectionChanged:(e,o)=>{s($(e,o)),a.isPandLReportFetched(e)||s(T(e)),y(a.forecastIdFromUrlPath,e,a.navigate)},onTimeframeChanged:e=>{s(de(e))},onForecastVsActualsCompareToggle:e=>{s(le(e)),s(S({forecastId:a.forecastIdFromUrlPath,scrollPosition:{scrollLeft:0,scrollTop:0}}))},onCompareModeChanged:e=>{s(ce(a.firstMonthOfFY,e,0,[]))},onAccountBalanceClick:a.hasTransactionAccess!==!0?void 0:(e,o)=>{let r,i;const F=e.accountName===""?e.accountDescription:e.accountName;if(o.balanceTimeFrame==="month"||o.balanceTimeFrame==="quarter"?(r=o.balanceTimeFrame,i=ie(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 m=xe(a.tenantEmailDomain,e.accountId,e.accountType,F,r,i),p=be(a.location.state?.pathnameStackToGoBack,a.location.pathname);a.navigate(m,{state:{pathnameStackToGoBack:p,referrer:"Forecast"}})}},onNodeCollapseToggled:(e,o)=>{s(S({forecastId:a.forecastIdFromUrlPath,nodeCollapseState:{nodeId:e,isCollapsed:o===!1}}))},onTableScroll:e=>{s(S({forecastId:a.forecastIdFromUrlPath,scrollPosition:e}))},onBackClick:()=>{a.navigate("../../")}}})(Ie);function v(){const{isAiCfoOpen:s,setIsAiCfoOpen:a}=pe(),e=H(),o=Q(),r=Z(),{forecastId:i,tenantEmailDomain:F}=K(),[m,p]=h.useState(!1),[g,A]=h.useState(!1),u=ue.getSignedInUser(),x=d(t=>M(t)),B=x.company?.companyInfo.firstMonthOfFY??1,c=d(t=>U(t.forecastState,t.forecastListState)),l=d(t=>t.forecastListState.fetchState==="Completed"),k=d(t=>t.profitAndLossState),j=d(t=>t.reportUIOptionsState.selectedForecast),D=t=>k.pandLByForecastID[t]!=null&&re(t,k).reducedAllFetchState.fetchState==="Completed",{areTenantIdsInSync:I}=he();ye({isDataReady:l});const{isAiCfoAccessEnabled:N,onAskAiCfoClick:_}=Te({isAiCfoOpen:s,setIsAiCfoOpen:a,mobileExploreReferrer:"Forecast"});h.useEffect(()=>{if(!m&&I)p(!0),l||o(ae());else if(l&&!g){A(!0);const t=((f,R,P)=>R!=null?f.forecasts.findIndex(b=>b.id===R):P!=null?f.forecasts.findIndex(b=>b.id===P):f.forecasts.length>0?0:-1)(c,i,j?.id);t===-1&&i!=null?e("page-not-found",{replace:!0}):t!==-1&&t!=j?.index?(o($(c.forecasts[t].id,t)),y(i,c.forecasts[t].id,e,r.search)):i==null&&t!==-1&&y(void 0,c.forecasts[t].id,e,r.search),t!==-1&&!D(c.forecasts[t].id)&&I&&o(T(c.forecasts[t].id))}},[m,p,o,l,c,g,A,U,T,I]);const L=Fe(),J=L?.loggedInUserRole!=null&&te(L.loggedInUserRole),{useFeatureGate:V}=w(),{isFeatureEnabled:E}=V(G.isReportsCommentingEnabled),W=Ae(E?x?.companyId:void 0,{clearParams:l&&g}),[Y,z]=h.useState(!1),O=t=>{z(t)};return n.jsxs(n.Fragment,{children:[l?n.jsx(ge,{analytics:q,onLoad:t=>(f=>f.trackForecast())(t)}):null,n.jsx(ke,{isAppContentDrawerOpen:Y,handleDrawerToggle:O}),n.jsx(je,{firstMonthOfFY:B,tenantEmailDomain:F,forecastIdFromUrlPath:i,navigate:e,location:r,isPandLReportFetched:D,meetingUrl:oe(`https://meetings.hubspot.com/svitlana-grankovska?firstname=${u?.firstName}&lastname=${u?.lastName}&email=${u?.userEmail}`),hasTransactionAccess:J,isAiCfoAccessEnabled:N,onAskAiCfoClick:_,isReportsCommentingEnabled:E,isZeniUser:se(u),initialOpenThreadRequest:W,onClickMenuIcon:()=>{O(!0)}})]})}function Qe(){const s=d(i=>M(i)),{useFeatureGate:a}=w(),{isFeatureEnabled:e}=a(G.isDebitCardFeatureEnabled),o=fe(e,s),r=me(s);return o===!0||r===!0?n.jsx(Se,{}):n.jsxs(ee,{children:[n.jsx(C,{path:"/",element:n.jsx(v,{})}),n.jsx(C,{path:"/:forecastId",element:n.jsx(v,{})}),n.jsx(C,{path:"/:forecastId/*",element:n.jsx(Ce,{})})]})}export{Qe as PandLWithForecastRoutes,Qe as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-CiToer5R.js";import _ from"./NotFoundScreen-LHqD0vPk.js";import{a as r}from"./sentry-8AfgzGIO.js";import{j as M,u as v,g,l as U,h as P,N as z,k as V,n as B,o as h}from"./core-DDvaTX37.js";import{eM as F,OH as b,bn as G,bm as H,h2 as N,gy as Y}from"./zeni-epic-state-D4vGt0eL.js";import{Y as $,z as I,G as q,cp as J}from"./index-DnJYpNVb.js";import"./mui-CP2KeZRM.js";import{u as K}from"./useAskAiCfoHostNavButtonProps-DKLQyfUj.js";import{c as L}from"./useFetchSuggestedQuestionsWhenReady-B1Y3Jjir.js";import{M as Q}from"./MobileAppDrawer-Dr8YUpu7.js";import"./recharts-CxZa6yMn.js";import"./lottie-BsqqVDQp.js";import"./analytics-DVf_BIp2.js";import"./plaid-_EXcf3jJ.js";import"./dnd-V-MvMUKQ.js";import"./stripe-DMRn4zHo.js";import"./lexical-CxLnVFxa.js";import"./pdf-CZO_R6LN.js";import"./utils-DVMMWGFG.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]="0f0d47bc-233f-4567-ac6f-992487335756",e._sentryDebugIdIdentifier="sentry-dbid-0f0d47bc-233f-4567-ac6f-992487335756")}catch{}})();const W=V(function(e){const t=I.getSignedInUser(),c=e.tenantState.currentTenantId,o={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:c??""},{aggregatedReportViewState:n}=b(e);return{authParams:o,isDisabled:!1,loggedInUser:t,aggregatedReport:n}},function(e,t){return{onBackClick:()=>{t.navigate("../../")},onClickMenuIcon:()=>{t.handleDrawerToggle(!0)}}})(J),X=()=>{const e=M(),t=v(),c=$(),o=g(s=>F(s)),{aggregatedReportViewState:n}=g(s=>b(s)),{tenantEmailDomain:m}=U(),p=P(),d=I.getSignedInUser();if(d==null)throw new Error("Can't access this page without signing in...");const f=r.useRef(!1),[C,S]=r.useState(!1),k=G(o?.userRole??[]),w=o?.userRole?.includes("bookkeeping_admin")??!1,y=H(d),A=k||w||y,l=r.useCallback((s,i,O)=>{p(N({fromMonth:s,toMonth:i,cacheOverride:O}))},[]);r.useEffect(()=>{n?.fetchState==="Completed"&&f.current&&(p(Y({messageSection:"data_refresh_update",messageText:"success",type:"success",showStatusIcon:!0})),f.current=!1)},[n?.fetchState]);const D=r.useCallback((s,i)=>{n!=null&&n?.fetchState==="In-Progress"||l(s,i,!0),f.current=!0},[n?.fetchState,l]),x=r.useCallback((s,i)=>{l(s,i,!1)},[l]),u=s=>{S(s)},{isAiCfoOpen:j,setIsAiCfoOpen:R}=q(),{isAiCfoAccessEnabled:T,onAskAiCfoClick:E}=K({isAiCfoOpen:j,setIsAiCfoOpen:R,mobileExploreReferrer:"Performance"});return L({isDataReady:n?.fetchState==="Completed"}),A?a.jsxs(a.Fragment,{children:[a.jsx(Q,{isAppContentDrawerOpen:C,handleDrawerToggle:u}),a.jsx(W,{navigate:e,location:t,themeState:c,currentTenant:o,signedInUser:d,tenantEmailDomain:m,onReload:D,onTimeRangeSelect:x,handleDrawerToggle:u,isAiCfoAccessEnabled:T,onAskAiCfoClick:E})]}):a.jsx(z,{to:`/${m}/dashboard`,replace:!0})};function Ie(){return a.jsxs(B,{children:[a.jsx(h,{path:"*",element:a.jsx(X,{})}),a.jsx(h,{path:"*",element:a.jsx(_,{})})]})}export{Ie as default};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-CiToer5R.js";import{a as o}from"./sentry-8AfgzGIO.js";import{g as f,j as V,h as M,u as N,k as W}from"./core-DDvaTX37.js";import{h as _,Z as $,z as R,a$ as U,y as Z,J as z,G,x as J,d as l,f as X,a1 as q,b0 as Q}from"./index-DnJYpNVb.js";import{eX as K,eM as Y,Lv as I,Lw as ee,to as ae,te as g,eZ as re,bL as ne,tj as te,Lx as se}from"./zeni-epic-state-D4vGt0eL.js";import{D as oe,e as ie,n as le,S as ce}from"./mui-CP2KeZRM.js";import{u as de}from"./useAskAiCfoHostNavButtonProps-DKLQyfUj.js";import{c as fe}from"./useFetchSuggestedQuestionsWhenReady-B1Y3Jjir.js";import{M as ue}from"./MobileAppDrawer-Dr8YUpu7.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]="884eac86-2283-4e02-994f-9138ccdb3524",e._sentryDebugIdIdentifier="sentry-dbid-884eac86-2283-4e02-994f-9138ccdb3524")}catch{}})();const pe={overlayWidth:new Z(100,100,30)},we=({isReferralDrawerOpen:e,closeDrawerHandler:a})=>{const r=_(),n=$();if(R.getSignedInUser()==null)throw Error("Can't access How Referral works without signing in...");const i=()=>{a(!0)},u=f(c=>K(c));return s.jsx(oe,{anchor:"right",open:e,PaperProps:{style:{width:pe.overlayWidth.valuePercentage(n),boxShadow:"none"}},slotProps:{backdrop:{style:{opacity:.75,backgroundColor:r.colors.black,cursor:"pointer"}}},onClose:()=>i(),children:s.jsx(ie,{in:e,direction:"left",children:s.jsx(ge,{onClick:c=>c.stopPropagation(),children:s.jsx(U,{onDismissClick:i,rewardsPlan:u.rewardsPlan})})})})},ge=le(ce)`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
`,P="refer-and-earn-status-update",ke=W(function(e){const a=I(e),r=e.referralViewState.rewardsPlanFetchState,n=ne([a,r]);return{inviteList:a.invitations,uiState:a.uiState,pendingBonus:a.pendingBonus,earnedBonus:a.earnedBonus,pendingReferrals:a.pendingReferrals,fetchState:n.fetchState,rewardsPlan:a.rewardsPlan}},function(e,a){const{navigate:r}=a;return{onColumnSortConfigChanged:(n,i)=>{e(se({sortOrder:i,sortkey:n}))},onInviteClick:()=>{l.trackRewardsPageClicked("invite via email"),r("../refer")},onHowItWorksClick:()=>{l.trackRewardsPageClicked("know more"),r("../how-it-works")},onResendInviteClick:n=>{l.trackRewardsPageClicked("resend invite"),e(te(n))},onBackClick:()=>{r("../",{relative:"path"})},onReloadInvitees:()=>{e(g(!0))},onCopyReferralLink:()=>{l.trackRewardsPageClicked("copy referral link")},onClickRefer:()=>{l.trackRewardsPageClicked("refer")},onEventReceived:n=>{n===P&&e(g(!0,!0))}}})(q(Q));function Pe({isReferralDrawerOpen:e}){const a=V(),r=M(),n=N(),[i,u]=o.useState(!1),[c,x]=o.useState(!1),[D,A]=o.useState(!1),[k,C]=o.useState(!1),p=R.getSignedInUser(),h=f(t=>Y(t)),m=f(t=>I(t)),v=m.fetchState,w=f(t=>t.referralViewState.rewardsPlanFetchState),y=ee([m,w]),{areTenantIdsInSync:d}=z();o.useEffect(()=>{h?.rewardsLastViewedTime==null&&D===!1&&(r(ae()),A(!0))},[]),o.useEffect(()=>{!i&&v==="Not-Started"&&d&&(u(!0),r(g(!0)))},[v,r,d]),o.useEffect(()=>{!c&&w.fetchState==="Not-Started"&&d&&(x(!0),r(re(!0)))},[w,r,d]),o.useEffect(()=>{C(e!=null&&e===!0)},[e]);const[E,j]=o.useState(!1),S=t=>{j(t)},{isAiCfoOpen:L,setIsAiCfoOpen:O}=G(),{isAiCfoAccessEnabled:T,onAskAiCfoClick:B}=de({isAiCfoOpen:L,setIsAiCfoOpen:O,mobileExploreReferrer:"Rewards"});fe({isDataReady:y===!0});const F={events:p?.userId!=null?[`private-${p.userId}.${P}`]:[],eventCallback:(t,b,H)=>{H.onEventReceived(t)}};return s.jsxs(s.Fragment,{children:[y===!0?s.jsx(J,{analytics:l,onLoad:t=>(b=>{p!=null&&b.trackPageLoaded(X.Event.rewardsPageViewed)})(t)}):null,s.jsx(ue,{isAppContentDrawerOpen:E,handleDrawerToggle:S}),k===!0?s.jsx(we,{closeDrawerHandler:()=>{C(!1),a("..")},isReferralDrawerOpen:k}):null,s.jsx(ke,{location:n,navigate:a,currentTenant:h,onClickMenuIcon:()=>{S(!0)},isAiCfoAccessEnabled:T,onAskAiCfoClick:B,...F})]})}export{Pe as R};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-CiToer5R.js";import{n as j,z as w,aI as b,x as E,d as p,f as F,cy as P,i as L}from"./index-DnJYpNVb.js";import"./mui-CP2KeZRM.js";import l from"./NotFoundScreen-LHqD0vPk.js";import{a as d}from"./sentry-8AfgzGIO.js";import{h as T,g as y,j as V,u as A,k as R,n as U,o as u}from"./core-DDvaTX37.js";import{eM as z,Pe as C,M4 as M,Pf as k,to as Y,eZ as G,Pg as O,tm as Z}from"./zeni-epic-state-D4vGt0eL.js";import{R as x}from"./ReferralListScreen-D7D_U76W.js";import"./recharts-CxZa6yMn.js";import"./lottie-BsqqVDQp.js";import"./analytics-DVf_BIp2.js";import"./plaid-_EXcf3jJ.js";import"./dnd-V-MvMUKQ.js";import"./stripe-DMRn4zHo.js";import"./lexical-CxLnVFxa.js";import"./pdf-CZO_R6LN.js";import"./utils-DVMMWGFG.js";import"./useAskAiCfoHostNavButtonProps-DKLQyfUj.js";import"./useFetchSuggestedQuestionsWhenReady-B1Y3Jjir.js";import"./MobileAppDrawer-Dr8YUpu7.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]="eaba0196-8dcb-4d35-8da6-852b01240942",e._sentryDebugIdIdentifier="sentry-dbid-eaba0196-8dcb-4d35-8da6-852b01240942")}catch{}})();const q=R(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=w.getSignedInUser();return{onDismissClick:()=>{e(k()),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(Z())},onUpdateInviteFormLocalData:s=>{e(O({localData:s}))},onSubmitSuccess:()=>{n("../../")},onCancelClick:()=>{i!=null&&p.trackInviteEmailClicked("cancel")}}})(P),B=()=>{const e=T(),[t,n]=d.useState(!1),[i,s]=d.useState(!1),r=y(o=>z(o)),c=V(),_=A(),{useDynamicConfig:g}=j(),f=w.getSignedInUser();if(f==null)throw Error("Can't access invite referral screen without signing in...");const m=y(o=>C(o)),v=f?.firstName!=null?f.firstName:"User",{configValue:h}=g(b.zeniCardsConfig),{configValue:D}=g(b.zeniAccountsConfig),I=M(D);d.useEffect(()=>{e(k()),r?.rewardsLastViewedTime==null&&i===!1&&(e(Y()),s(!0))},[]),d.useEffect(()=>{t||m.fetchState!=="Not-Started"||(n(!0),e(G(!0)))},[m.fetchState,e]);const N=r.company?.companyInfo.companyLegalName??r.companyName;return a.jsxs(a.Fragment,{children:[m.fetchState==="Completed"?a.jsx(E,{analytics:p,onLoad:o=>(S=>S.trackPageLoaded(F.Event.inviteEmailViewed))(o)}):null,a.jsx(q,{navigate:c,location:_,currentTenant:r,companyName:N,userName:v,inviteFormCompayData:m.localData,chargeCardCashbackRatePerTransaction:h.charge_card_cashback_rate_per_transaction!=null?h.charge_card_cashback_rate_per_transaction:.0175,maxAnnualPercentageYield:I.maxAnnualPercentageYield})]})};function fe(){const{useFeatureGate:e}=j(),{isFeatureEnabled:t}=e(L.isReferralFeatureEnabled);return a.jsxs(U,{children:[a.jsx(u,{path:"/",element:t?a.jsx(x,{}):a.jsx(l,{})}),a.jsx(u,{path:"how-it-works",element:t?a.jsx(x,{isReferralDrawerOpen:!0}):a.jsx(l,{})}),a.jsx(u,{path:"refer/*",element:t?a.jsx(B,{}):a.jsx(l,{})}),a.jsx(u,{path:"*",element:a.jsx(l,{})})]})}export{fe as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as f}from"./liveblocks-CiToer5R.js";import{a as u,b as T,q as A}from"./sentry-8AfgzGIO.js";import{h as D,j as z,g as c,u as M,N as O,k as j}from"./core-DDvaTX37.js";import{u as F,z as s,h as P,d as E,D as N,e as _,f as B,k as V,g as $,m as q,p as v}from"./index-DnJYpNVb.js";import{eM as J,Ie as Q,If as R,eN as W,fi as H,Il as G,fF as K,cR as X,Im as b,In as Y,Io as Z,bQ as y}from"./zeni-epic-state-D4vGt0eL.js";import"./mui-CP2KeZRM.js";import{u as ee}from"./useDeviceId-C9CFDiHV.js";import{f as te}from"./analyticsHelper-CeoHmyKo.js";import{t as ne}from"./getLocaleForTenant-DU8HEeVi.js";import"./recharts-CxZa6yMn.js";import"./lottie-BsqqVDQp.js";import"./analytics-DVf_BIp2.js";import"./plaid-_EXcf3jJ.js";import"./dnd-V-MvMUKQ.js";import"./stripe-DMRn4zHo.js";import"./lexical-CxLnVFxa.js";import"./pdf-CZO_R6LN.js";import"./utils-DVMMWGFG.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]="e567880c-a01a-4354-9fce-3fd3d9ac07be",t._sentryDebugIdIdentifier="sentry-dbid-e567880c-a01a-4354-9fce-3fd3d9ac07be")}catch{}})();const ie=j(function(t,i){const d=t.tenantState.fetchState,g=t.tenantState.sendEmailMagicLinkFetchState,{magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:l}=i;return{googleClientId:v.googleClientId,microsoftClientId:v.microsoftClientId,signInError:t.tenantState.error?.error,fetchState:d,sendMagicLinkStatus:g,magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:l}},function(t,i){const{location:d,navigate:g}=i;return console.warn(JSON.stringify(window.location)),{onOAuthError:(n,a)=>{A({message:`OAuth error from provider ${a} with error ${n}`,level:"error",tags:{authProvider:a,errorType:"zeni.login.error"},extra:{error:n,windowLocation:window.location.href}})},onOAuthSuccess:(n,a)=>{const l=a==="google"?window.location.origin:window.location.origin+window.location.pathname;t(Z({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(Y(n,a)))},clearSignInError:()=>{t(b())}}})(q),ae=T.memo(ie);function ve({setTenantEmailDomain:t}){const i=D(),d=z(),{clearAllLoading:g}=F(),n=s.getSignedInUser();u.useLayoutEffect(()=>{g()},[g]);const a=ee(),l=c(e=>e.tenantState.magicLinkCodeVerifier),{sendEmailMagicLinkFetchState:h,accountLocked:C,accountUnlockTime:k}=c(e=>e.tenantState),p=c(e=>e.tenantState.fetchState),L=c(e=>e.tenantState.activeTenantFetchState.fetchState),I=c(e=>e.tenantState.signInState),o=c(e=>e.tenantState.loggedInUser),r=c(e=>J(e)),S=c(e=>Q(e)),m=M(),w=P().mode,U=m.state?.magicLinkExpired,x=m.state?.magicLinkAlreadyUsed;if(u.useEffect(()=>{h.fetchState==="Completed"&&l!=null&&(E.trackSignInLinkSent(),s.saveMagicLinkCodeVerifier(l))},[h.fetchState,l]),u.useEffect(()=>{t(void 0)},[]),u.useEffect(()=>{I!=="In-Progress"||p!=="Completed"&&L!=="Completed"||o?.zeniSessionId==null||r==null||(s.savePayNowInfoTooltip(!0,o.zeniSessionId),s.saveSignedInUserWithSession(o,o.zeniSessionId),s.saveSignedInUserTenants(R(S.tenantsInOrder),o.zeniSessionId),W(o.userId,o.zeniSessionId,r.tenantId),i(H(r.tenantId)),s.saveActiveTenantDomainForUser(r.tenantEmailDomain),i(G("Completed")),N.updateAppLocaleID(ne(r)),te(o,r,w,void 0,S.tenantsInOrder),K().then(()=>{const e=$();e!=null&&_(e)}),setTimeout(()=>{E.trackLogin(B.Event.loginSuccess,o.authProvider??"google",X(r.productSettings))},2e3))},[I,p,L,o,r,S,w,m.state,i]),I==="In-Progress"&&p==="Completed"&&o?.zeniSessionId!=null&&r!=null||n!=null){const e=m.state?.origin??"/";return f.jsx(O,{to:e,state:{...m.state,origin:""}})}return f.jsxs(f.Fragment,{children:[f.jsx(ae,{magicLinkExpired:!!U,magicLinkAlreadyUsed:!!x,magicLinkExpiredEmail:s.getMagicLinkEmail()??void 0,location:m,navigate:d,deviceId:a??void 0,showEmailLogin:!0}),C===!0&&k!=null?f.jsx(V,{onClose:()=>i(b()),unlockDate:k}):null]})}export{ve as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-CiToer5R.js";import{a as n}from"./sentry-8AfgzGIO.js";import{h as u,u as m,j as p,N as g}from"./core-DDvaTX37.js";import{z as f,B as y,t as h,d as c,f as I}from"./index-DnJYpNVb.js";import{IB as b,Ij as x,IC as j}from"./zeni-epic-state-D4vGt0eL.js";import{n as w}from"./mui-CP2KeZRM.js";import"./recharts-CxZa6yMn.js";import"./lottie-BsqqVDQp.js";import"./analytics-DVf_BIp2.js";import"./plaid-_EXcf3jJ.js";import"./dnd-V-MvMUKQ.js";import"./stripe-DMRn4zHo.js";import"./lexical-CxLnVFxa.js";import"./pdf-CZO_R6LN.js";import"./utils-DVMMWGFG.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]="e67fcc53-31f7-45e1-a70e-ec10613af5f1",e._sentryDebugIdIdentifier="sentry-dbid-e67fcc53-31f7-45e1-a70e-ec10613af5f1")}catch{}})();function $(){const e=u(),t=m(),i=p(),a=n.useRef(!1),l=f.isSignedIn(),r=t.state?.message==="logout",o=r||l;return n.useEffect(()=>{o&&!a.current&&(a.current=!0,setTimeout(()=>{try{f.clearAll(),e(b()),e(x(!1)),j(),h.reset(),c.trackLogout(I.Event.logoutSuccess),c.resetUserIdentity()}catch(d){console.error("Error during sign out:",d)}finally{r||i("/signin/auth",{replace:!0})}},0))},[o,r]),o?s.jsx(v,{children:s.jsx(y,{fetchState:"In-Progress"})}):s.jsx(g,{to:"../",replace:!0})}const v=w.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`;export{$ as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-CiToer5R.js";import M from"./NotFoundScreen-LHqD0vPk.js";import{a as p}from"./sentry-8AfgzGIO.js";import{j as A,h as R,u as V,l as $,g as k,N as z,k as _,n as O,o as f}from"./core-DDvaTX37.js";import{Y as q,z as w,s as C,x as Q,d as E,f as W,cz as H,p as Y,ao as Z,r as J}from"./index-DnJYpNVb.js";import{eM as G,Ph as b,EM as v,EA as K,Fc as X,Pi as P,Pj as aa,Ew as ea,Et as ta,pB as sa,pp as na,jW as oa,EG as ia,Pk as ra,ED as ca,ER as la,EQ as da}from"./zeni-epic-state-D4vGt0eL.js";import{n as pa}from"./mui-CP2KeZRM.js";import{u as ma}from"./useInitialThreadRequest-CBft5O6R.js";import{M as fa}from"./MobileAppDrawer-Dr8YUpu7.js";import ua from"./TaskListScreen-MGrTepEx.js";import"./recharts-CxZa6yMn.js";import"./lottie-BsqqVDQp.js";import"./analytics-DVf_BIp2.js";import"./plaid-_EXcf3jJ.js";import"./dnd-V-MvMUKQ.js";import"./stripe-DMRn4zHo.js";import"./lexical-CxLnVFxa.js";import"./pdf-CZO_R6LN.js";import"./utils-DVMMWGFG.js";import"./useAskAiCfoHostNavButtonProps-DKLQyfUj.js";import"./useFetchSuggestedQuestionsWhenReady-B1Y3Jjir.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new a.Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="c673f8c3-fcfc-4a1d-b537-cd33fac97df7",a._sentryDebugIdIdentifier="sentry-dbid-c673f8c3-fcfc-4a1d-b537-cd33fac97df7")}catch{}})();const ka=_(function(a,t){const{location:n,taskGroupId:c}=t,d=P(a,t.taskId),l=G(a),i=c!=null?aa(a.taskGroupState,c):void 0,m=w.getSignedInUser(),e=l.tenantId,r={userId:m?.userId??"",sessionId:m?.zeniSessionId??"",tenantId:e??""},u=b(a);return{taskDetailSelectorView:d,authParams:r,isNewClicked:n.state?.message==="comingFromTaskListPage",filesEndPoint:Z.fileMicroServiceBaseUrl,companyName:t.currentTenant.companyName,companyId:t.currentTenant.companyId,currentUrl:`${Y.appUrl}${t.location.pathname}`,tagListView:u,taskGroupName:c!=null&&i!=null&&i.isDefault===!1?i.name:void 0}},function(a,t){const{taskId:n,navigate:c,currentTenant:d,location:l,taskGroupId:i}=t,{tenantEmailDomain:m}=d;return{onSaveChangesToLocalStore:e=>{a(da({taskDetailLocalData:e,taskId:n}))},onSaveDetailClick:()=>{a(la(n,i))},onArchiveTaskClick:()=>{t.taskId!=null&&a(ca(t.taskId))},onDismissClick:()=>{if(l.state?.message==="triggerBackClick"){const e=J(l.state?.pathnameStackToGoBack),r=e.poppedPathname??"../../dashboard";c(r,{state:{pathnameStackToGoBack:e.newStack}})}else{const e=B(m),r=C(l.state?.pathnameStackToGoBack,l.pathname);c(e,{state:{pathnameStackToGoBack:r}})}a(ra({taskId:n}))},onDeleteTaskClick:()=>{a(ia(n))},updateFilesEntity:e=>{a(oa({files:e}))},onDeleteFile:e=>{a(na(e))},onEditFileName:(e,r)=>{a(sa(e,r.split(".")[0]))},onReloadTaskDetailPage:()=>{a(v(!1,n))},onCreateTagClick:e=>{a(ta(e,n))},onDeleteTagClick:e=>{a(ea(e,n))}}})(H);function I(){const a=A(),t=R(),n=V(),c=q(),{taskId:d,taskGroupId:l}=$(),i=k(o=>G(o)),m=ma(i?.companyId),[e,r]=p.useState(!1),[u,F]=p.useState(!1),[S,L]=p.useState(!1),[x,N]=p.useState(!1),j=k(o=>b(o)),y=k(o=>o.taskGroupViewState.fetchState);p.useEffect(()=>{u||(F(!0),t(v(!1,d)))},[u,t]),p.useEffect(()=>{S||j.fetchState==="Completed"||(L(!0),t(K()))},[S,t,j.fetchState]),p.useEffect(()=>{x||y==="Completed"||(N(!0),t(X()))},[x,t,y]);const D=k(o=>P(o,d)),g=D.fetchState,T=w.getSignedInUser();if(T==null)throw Error("Can't access task detail page without signing in...");if(g==="Error"&&D.error?.code===400){const{tenantEmailDomain:o}=i,h=B(o),U=C(n.state?.pathnameStackToGoBack,n.pathname);return s.jsx(z,{to:h,state:{pathnameStackToGoBack:U}})}return s.jsxs(s.Fragment,{children:[g==="Completed"?s.jsx(Q,{analytics:E,onLoad:o=>(h=>h.trackPageLoaded(W.Event.taskDetailPage))(o)}):null,s.jsxs(ga,{children:[s.jsx(fa,{isAppContentDrawerOpen:e,handleDrawerToggle:o=>{r(o)}}),s.jsx(ka,{analytics:E,currentTenant:i,handleZeniLogoClick:()=>{c.toggle()},initialOpenThreadRequest:m,location:n,loggedInUser:T,navigate:a,taskGroupId:l,taskId:d,taskDetailFetchState:g})]})]})}const ga=pa.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${a=>a.theme.colors.grey4};
|
|
9
|
-
`,B=a=>`/${a}/tasks`;function Aa(){return s.jsxs(O,{children:[s.jsx(f,{path:"/new",element:s.jsx(I,{})}),s.jsx(f,{path:"/new/:taskGroupId",element:s.jsx(I,{})}),s.jsx(f,{path:"/group/:taskGroupId",element:s.jsx(ua,{})}),s.jsx(f,{path:"/:taskId",element:s.jsx(I,{})}),s.jsx(f,{path:"*",element:s.jsx(M,{})})]})}export{Aa as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./liveblocks-CiToer5R.js";import i from"./NotFoundScreen-LHqD0vPk.js";import{T as r}from"./TransactionDetailScreen-CrA3WsFF.js";import"./sentry-8AfgzGIO.js";import{n as s,o}from"./core-DDvaTX37.js";import"./zeni-epic-state-D4vGt0eL.js";import"./recharts-CxZa6yMn.js";import"./index-DnJYpNVb.js";import"./mui-CP2KeZRM.js";import"./lottie-BsqqVDQp.js";import"./analytics-DVf_BIp2.js";import"./plaid-_EXcf3jJ.js";import"./dnd-V-MvMUKQ.js";import"./stripe-DMRn4zHo.js";import"./lexical-CxLnVFxa.js";import"./pdf-CZO_R6LN.js";import"./utils-DVMMWGFG.js";import"./useAskAiCfoHostNavButtonProps-DKLQyfUj.js";import"./useFetchSuggestedQuestionsWhenReady-B1Y3Jjir.js";import"./decodeURIComponentSafe-CFMDmh9m.js";import"./routePaths-D9iN1cLV.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="004616b6-9a8d-4249-8f63-7ccdecb2e86b",e._sentryDebugIdIdentifier="sentry-dbid-004616b6-9a8d-4249-8f63-7ccdecb2e86b")}catch{}})();function q(){return t.jsxs(s,{children:[t.jsx(o,{path:"/:transactionTypeEncoded/:transactionId",element:t.jsx(r,{})}),t.jsx(o,{path:"/:transactionTypeEncoded/:transactionId/page-not-found",element:t.jsx(i,{})}),t.jsx(o,{path:"/:transactionTypeEncoded/:transactionId/vendor/create",element:t.jsx(r,{})}),t.jsx(o,{path:"/*",element:t.jsx(r,{})})]})}export{q as default};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./liveblocks-CiToer5R.js";import{j as B,u as U,h as M,l as O,g as f,N as F,k as V,n as we,o as k}from"./core-DDvaTX37.js";import{ci as N,eM as D,My as P,D3 as ae,fc as H,CN as ne,MA as Ie,D6 as Te,Mw as ke,Mx as se,MO as be,Bd as je,s2 as Ae,MC as Ee,Dh as ve,Mz as re,cL as W,w8 as oe,eR as De,eT as Le,NJ as Fe,NK as Be,CO as Ue,NL as Me,CP as Pe,CY as Re,bu as Oe,bC as Ve,ct as Ne,bD as _e,cN as ze,fb as $e,br as Ge,Ig as Ze,ch as He}from"./zeni-epic-state-D4vGt0eL.js";import{j as _,al as We,z as A,x as z,d as b,bX as qe,bY as Je,bZ as Z,Z as q,h as Ke,J as Ye,G as Qe,n as ie,i as v,y as Xe,B as et,b_ as tt,ao as J,s as at,b$ as nt,r as K,c0 as st,w as Q,c1 as rt,a4 as ot}from"./index-DnJYpNVb.js";import{D as it,n as R,S as ct}from"./mui-CP2KeZRM.js";import lt from"./NotFoundScreen-LHqD0vPk.js";import{S as X}from"./SetupPagesScreen-CVBxCxe5.js";import{a as d}from"./sentry-8AfgzGIO.js";import{u as ut}from"./useAskAiCfoHostNavButtonProps-DKLQyfUj.js";import{c as dt}from"./useFetchSuggestedQuestionsWhenReady-B1Y3Jjir.js";import{M as ce}from"./MobileAppDrawer-Dr8YUpu7.js";import{F as pt}from"./FeaturePreviewScreen-SnQ5YUgu.js";import{a as ee}from"./analyticsHelper-CeoHmyKo.js";import"./recharts-CxZa6yMn.js";import"./lottie-BsqqVDQp.js";import"./analytics-DVf_BIp2.js";import"./plaid-_EXcf3jJ.js";import"./dnd-V-MvMUKQ.js";import"./stripe-DMRn4zHo.js";import"./lexical-CxLnVFxa.js";import"./pdf-CZO_R6LN.js";import"./utils-DVMMWGFG.js";import"./routePaths-D9iN1cLV.js";import"./BusinessVerificationPageScreen-ZnINyDEr.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="5d5e5253-62ee-49d4-bfe5-f386ddc64e04",t._sentryDebugIdIdentifier="sentry-dbid-5d5e5253-62ee-49d4-bfe5-f386ddc64e04")}catch{}})();const mt=V(function(t,a){const{companyId:n}=a;return{treasurySetupView:P(t,n),analytics:b}},function(t,a){const{navigate:n,analytics:o,treasurySetupView:p}=a;return{onBackClick:()=>{n("../")},onNextClick:()=>{const r=p.fundAllocationLocalData;o.trackTreasuryPortfolioConfirm(r.riskScore,ee(r)),t(Te(!0))},onUpdateFundAllocation:r=>{o.trackTreasuryAllocationAction("update",ee(r)),t(Ie(r))}}})(qe);function ft(){const t=B(),a=U(),n=M(),{tenantEmailDomain:o}=O(),p=_(),r=f(T=>T.treasurySetupViewState.portfolioAllocationUpdateStatus?.fetchState),m=We(r),s=N(p?.loggedInUserRoleMap),[c,i]=d.useState(!1),[y,I]=d.useState(!1),[u,l]=d.useState(!1),g=f(T=>D(T)),h=A.getSignedInUserTenant(o)?.companyId??g.companyId,C=A.getSignedInUser(),S=f(T=>P(T,h)),w=f(T=>T.treasurySetupViewState.fetchState),x=f(T=>T.treasurySetupViewState.currentAllocation.fetchStatus?.fetchState),L=f(T=>T.treasurySetupViewState.treasuryFundsDetails?.fetchStatus?.fetchState);if(C==null)throw Error("Can't access treasury portfolio allocation page without signing in...");if(d.useEffect(()=>{c||w!=="Not-Started"||h==null||(i(!0),n(ae(h,!0,!1)))},[c,w,h,n]),d.useEffect(()=>{u||L!=="Not-Started"||h==null||(l(!0),n(H()))},[u,L,h,n]),d.useEffect(()=>{y||x!=="Not-Started"||h==null||(I(!0),n(ne()))},[y,x,h,n]),d.useEffect(()=>{m==="In-Progress"&&r==="Completed"&&t("../")},[m,r,t]),g.companyTreasuryInfo?.info?.isTreasuryTOSAccepted===!1)return e.jsx(F,{to:"../promo"});const E=g.companyTreasuryInfo?.info?.isTreasuryTOSAccepted!==!0||w!=="Completed";return e.jsxs(e.Fragment,{children:[!E&&e.jsx(z,{analytics:b,onLoad:()=>{}}),e.jsx(mt,{navigate:t,location:a,companyId:h,isEditMode:!0,isLoading:E,isReadOnly:!s,treasurySetupView:S,analytics:b})]})}const yt=V(function(t,a){const n=a.currentTenant?.companyId;return{plaidConnectionDetails:be(t,n,"zeni_treasury","treasury_setup").plaidConnectionDetails,treasurySetupView:P(t,n)}},function(t,a){const{navigate:n,transferDetails:o,treasurySetupView:p}=a,r=o.treasuryTransferMoneyLocalData,m=p.fundAllocationLocalData;return{onCancelClick:()=>{Z(a.analytics,"cancel",r,m,"Transfer"),t(se()),n("../")},onTransferClick:()=>{Z(a.analytics,"confirm",r,m,"Transfer"),t(ve())},onSaveChangesToLocalStore:s=>{t(Ee(s))},onFetchLinkTokenClick:s=>{t(Ae("treasury_setup",s))},onEstablishConnectionClick:s=>{t(je(s,a.currentTenant?.companyId,"treasury_setup","zeni_treasury"))}}})(Je),gt=({isFirstTransfer:t})=>{const a=B(),{tenantEmailDomain:n}=O(),o=M(),[p,r]=d.useState(!1),[m,s]=d.useState(!1),[c,i]=d.useState(!1),[y,I]=d.useState(!1),u=f(x=>x.treasurySetupViewState.fetchState),l=f(x=>x.treasurySetupViewState.treasuryFundsDetails?.fetchStatus?.fetchState),g=f(x=>x.treasurySetupViewState.currentAllocation.fetchStatus?.fetchState),h=f(x=>D(x)),C=A.getSignedInUserTenant(n)?.companyId??h.companyId,S=f(x=>ke(x)),w=f(x=>P(x,C));if(A.getSignedInUser()==null)throw Error("Can't access treasury transfer page without signing in...");return d.useEffect(()=>{m||u!=="Not-Started"||C==null||(s(!0),o(ae(C,!0,!1)))},[m,u,C,o]),d.useEffect(()=>{c||l!=="Not-Started"||C==null||(i(!0),o(H()))},[c,l,C,o]),d.useEffect(()=>{y||g!=="Not-Started"||C==null||(I(!0),o(ne()))},[y,g,C,o]),e.jsxs(e.Fragment,{children:[e.jsx(z,{analytics:b,onLoad:()=>{}}),e.jsx(yt,{analytics:b,navigate:a,transferDetails:S,onAnotherTransferClick:()=>{r(!1),o(se())},currentTenant:h,treasurySetupView:w,showReviewContent:p,maxInsuredAmount:5e5,onReviewClick:()=>{Z(b,"review",S.treasuryTransferMoneyLocalData,w.fundAllocationLocalData,"Transfer"),r(!0)},isFirstTransfer:t,setShowReviewContent:r,onBackClick:()=>{}})]})},ht=R.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${t=>t.theme.colors.grey4};
|
|
9
|
-
`,St={overlayWidth:new Xe(100,100,48)},xt=V(function(t,a){const n=re(t),{companyId:o}=a;return{treasuryDetail:n,treasurySetupView:P(t,o),downloadEndPoint:`${J.bankingMicroServiceBaseUrl}/1.0/treasury-account/statements?query={"statement_type":"tax_statement"}`}},function(t,a){const{navigate:n,currentTenant:o,location:p,handleDrawerToggle:r,analytics:m}=a,{tenantEmailDomain:s}=o;return{onSettingsClick:()=>{m.trackAccountsListPageClicked("Settings Icon"),n("setup")},onReloadTransactions:()=>{t(oe(!0))},handleTreasuryOptionSelection:c=>{let i="page-not-found";c==="editPortfolio"?i=Ct(s):c==="statements"?i=wt(s):c==="taxLetter"?i=It(s):c==="settings"&&(i=Tt(s));const y=at(p.state?.pathnameStackToGoBack,p.pathname);n(i,{state:{pathnameStackToGoBack:y}})},onColumnSortConfigChanged:(c,i)=>{t(Fe({uiState:{sortKey:c,sortOrder:i}}))},onTransferClick:()=>{n("./transfer")},onBackClick:()=>{n("../../")},onClickMenuIcon:()=>{r(!0)},onAutoTransferClick:()=>{n("../../checking/auto-transfer")}}})(tt);function G({isTransferDrawerOpen:t,isEditPortfolioDrawerOpen:a}){const n=U(),o=B(),p=M(),r=q(),m=Ke(),s=f(j=>D(j)),{tenantEmailDomain:c}=O(),i=s.companyId??A.getSignedInUserTenant(c)?.companyId,[y,I]=d.useState(!1),u=f(j=>re(j)),l=u.fetchState,g=u.accountSummary?.totalBalance?.amount,h=f(j=>j.treasurySetupViewState.treasuryFundsDetails?.fetchStatus),C=s.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",S=_(),w=!!s.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,x=N(S?.loggedInUserRoleMap),L=W(S?.loggedInUserRoleMap),{areTenantIdsInSync:E}=Ye();d.useEffect(()=>{l==="Not-Started"&&!y&&E&&(I(!0),p(oe(!0)))},[y,p,l,E]),d.useEffect(()=>{u.transactionsFetchState.fetchState==="Completed"&&u.transactions.length===0&&!n.pathname.includes("transfer")&&x&&o("./transfer")},[u.transactionsFetchState.fetchState,u.transactions.length]);const T=()=>{o("..")},[le,ue]=d.useState(!1),Y=j=>{ue(j)},{isAiCfoOpen:de,setIsAiCfoOpen:pe}=Qe(),{isAiCfoAccessEnabled:me,onAskAiCfoClick:fe}=ut({isAiCfoOpen:de,setIsAiCfoOpen:pe,mobileExploreReferrer:"Treasury"});dt({isDataReady:l==="Completed"});const{useFeatureGate:$}=ie(),{isFeatureEnabled:ye}=$(v.isDebitCardFeatureEnabled),{isFeatureEnabled:ge}=$(v.isAutoTransferRuleEnabled),{isFeatureEnabled:he}=$(v.isTreasuryCommentingEnabled),Se=De(s),xe=Le(ye,s);if(Se===!0&&xe!==!0)return e.jsx(pt,{});if(C){const j=h?.fetchState!=="Completed"||u.accountSummaryFetchState.fetchState!=="Completed";return e.jsxs(e.Fragment,{children:[u.accountSummaryFetchState.fetchState==="Completed"&&h?.fetchState==="Completed"&&t===!1&&a===!1?e.jsx(z,{analytics:b,onLoad:()=>{}}):null,e.jsx(it,{onClose:T,anchor:"right",open:a||t,transitionDuration:250,PaperProps:{style:{width:St.overlayWidth.valuePercentage(r),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:m.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsxs(kt,{onClick:Ce=>Ce.stopPropagation(),children:[t===!0?e.jsx(gt,{isFirstTransfer:u.transactions.length===0||g===0}):null,a===!0?e.jsx(ft,{}):null]})}),e.jsxs(ht,{windowSize:r,children:[e.jsx(ce,{isAppContentDrawerOpen:le,handleDrawerToggle:Y}),e.jsx(xt,{treasuryDetailsView:u,isAutoTransferRuleEnabled:ge,navigate:o,currentTenant:s,location:n,companyId:i,analytics:b,isTreasuryCommentingEnabled:he,handleDrawerToggle:Y,isLoading:j,isAiCfoAccessEnabled:me,onAskAiCfoClick:fe})]})]})}return w&&x?e.jsx(F,{to:"../setup"}):s.companyTreasuryInfo?.info&&!w&&L?e.jsx(F,{to:"../promo",state:n.state}):e.jsx(et,{fetchState:"In-Progress",style:{backgroundColor:m.colors.grey5}})}const Ct=t=>`/${t}/treasury/edit-portfolio`,wt=t=>`/${t}/treasury/statements`,It=t=>`/${t}/treasury/tax-letter`,Tt=t=>`/${t}/treasury/setup`,kt=R(ct)`
|
|
10
|
-
display: flex;
|
|
11
|
-
min-height: 100%;
|
|
12
|
-
flex-direction: column;
|
|
13
|
-
`,bt=R.div`
|
|
14
|
-
display: flex;
|
|
15
|
-
height: 100vh;
|
|
16
|
-
width: 100%;
|
|
17
|
-
flex: 1 1 auto;
|
|
18
|
-
flex-direction: column;
|
|
19
|
-
align-items: center;
|
|
20
|
-
background-color: ${t=>t.theme.colors.grey4};
|
|
21
|
-
`;function jt(){const t=B(),a=M(),n=q(),o=U(),p=`${J.bankingMicroServiceBaseUrl}/1.0/treasury-account`,[r,m]=d.useState(!1),s=f(l=>Be(l));d.useEffect(()=>{r||s.fetchState!=="Not-Started"||(m(!0),a(Ue(!1)))},[r,s.fetchState,a]);const c=A.getSignedInUser(),i=f(l=>D(l)),y={userId:c?.userId??"",sessionId:c?.zeniSessionId??"",tenantId:i.tenantId??""},I=i.company?.companyInfo.companyLegalName??i.companyName;if(c==null)throw Error("Can't access statements page without signing in...");const u=s.fetchState!=="Completed";return e.jsx(bt,{windowSize:n,children:e.jsx(nt,{currentTenantCompanyName:I,statementListView:s,isLoading:u,onBackClick:()=>{const l=K(o.state?.pathnameStackToGoBack),g=l.poppedPathname??"..";t(g,{state:{pathnameStackToGoBack:l.newStack}})},authParams:y,downloadEndPoint:p})})}const At=R.div`
|
|
22
|
-
display: flex;
|
|
23
|
-
height: 100vh;
|
|
24
|
-
width: 100%;
|
|
25
|
-
flex: 1 1 auto;
|
|
26
|
-
flex-direction: column;
|
|
27
|
-
align-items: center;
|
|
28
|
-
background-color: ${t=>t.theme.colors.grey4};
|
|
29
|
-
`;function Et(){const t=B(),a=q(),n=U(),o=M(),p=`${J.bankingMicroServiceBaseUrl}/1.0/treasury-account`,[r,m]=d.useState(!1),s=f(l=>Me(l));d.useEffect(()=>{r||s.fetchState!=="Not-Started"||(m(!0),o(Pe(!1)))},[r,s.fetchState,o]);const c=A.getSignedInUser(),i=f(l=>D(l)),y={userId:c?.userId??"",sessionId:c?.zeniSessionId??"",tenantId:i.tenantId??""},I=i.company?.companyInfo.companyLegalName??i.companyName;if(c==null)throw Error("Can't access tax letter page without signing in...");const u=s.fetchState!=="Completed";return e.jsx(At,{windowSize:a,children:e.jsx(st,{currentTenantCompanyName:I,taxLetterListView:s,isLoading:u,onBackClick:()=>{const l=K(n.state?.pathnameStackToGoBack),g=l.poppedPathname??"..";t(g,{state:{pathnameStackToGoBack:l.newStack}})},authParams:y,downloadEndPoint:p})})}const vt=V(function(t,a){const{companyId:n}=a,o=P(t,n);return{treasurySetupView:o,isSetupComplete:o.companyTreasuryInfo?.businessVerificationStatus?.code==="verified",videoUrl:"https://www.youtube.com/watch?v=sqvJWKCMZgk",meetingUrl:"https://meetings.hubspot.com/yoshi-araki/treasury-product-schedule-demo-link?embed=true"}},function(t,a){const{navigate:n,companyId:o}=a;return{onSetupButtonClick:()=>{t(Re(o))},onBackClick:()=>{n("../..",{relative:"path"})},onTreasurySetupSuccess:p=>{n(p?"..":"../setup",{relative:"path"})}}})(rt),Dt=()=>{const t=B(),a=U(),n=M(),{tenantEmailDomain:o}=O(),[p,r]=d.useState(!1),m=f(S=>D(S)),[s,c]=d.useState(!1),i=f(S=>S.treasurySetupViewState.treasuryFundsDetails?.fetchStatus);d.useEffect(()=>{s||i?.fetchState!=="Not-Started"||y==null||(c(!0),n(H()))},[i,n]);const y=A.getSignedInUserTenant(o)?.companyId??m.companyId,I=A.getSignedInUser(),u=!!m.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,l=S=>{r(S)};if(I==null)throw Error("Can't access treasury promo page without signing in...");const g=_(),h=N(g?.loggedInUserRoleMap),C=W(g?.loggedInUserRoleMap);if(u&&h)return e.jsx(F,{to:"../../treasury/setup"});if(m.company?.companyTreasuryInfo&&(!u&&h||C)){if(a.state?.message==="activation"){const S=K(a.state?.pathnameStackToGoBack);t(a.pathname,{state:{...a.state,message:void 0,pathnameStackToGoBack:S.newStack}})}return i?.fetchState!=="Completed"?e.jsx(te,{children:e.jsx(Q,{size:"ExtraLarge",start:!0})}):e.jsxs(e.Fragment,{children:[e.jsx(z,{analytics:b,onLoad:S=>(w=>w.trackTreasuryPromoView("Treasury Promo Page"))(S)}),e.jsx(ce,{isAppContentDrawerOpen:p,handleDrawerToggle:l}),e.jsx(vt,{analytics:b,navigate:t,companyId:y,onClickMenuIcon:()=>{l(!0)}})]})}return e.jsx(te,{children:e.jsx(Q,{size:"ExtraLarge",start:!0})})},te=R.div`
|
|
30
|
-
display: flex;
|
|
31
|
-
width: 100%;
|
|
32
|
-
height: 100%;
|
|
33
|
-
flex-direction: row;
|
|
34
|
-
justify-content: center;
|
|
35
|
-
align-items: center;
|
|
36
|
-
background-color: ${t=>t.theme.colors.grey5};
|
|
37
|
-
`;function ta(){const t=U(),a=f(E=>D(E)),{useFeatureGate:n}=ie(),{isFeatureEnabled:o}=n(v.isTreasuryEnabled),p=!!a.company?.companyTreasuryInfo?.isTreasuryTOSAccepted,r=_(),m=W(r?.loggedInUserRoleMap),s=a?.userRole!=null&&Oe(a?.userRole),c=(a?.company==null||a.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!s)&&Ve(r?.loggedInUserRoleMap),i=Ne(r?.loggedInUserRoleMap),y=(a?.company==null||a.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!s)&&_e(r?.loggedInUserRoleMap),{isFeatureEnabled:I}=n(v.isDepositAccountsFeatureEnabled),u=I&&!s&&ze(r?.loggedInUserRoleMap),l=a.company!=null&&$e(a.company),g=o&&l===!0&&!s&&N(r?.loggedInUserRoleMap),{isFeatureEnabled:h}=n(v.isChargeCardFeatureEnabled),{isFeatureEnabled:C}=n(v.isDebitCardFeatureEnabled),S=ot(a,h,C)&&!s&&Ge(r?.loggedInUserRoleMap),w=Ze(r?.loggedInUserRoleMap),x=He(r?.loggedInUserRoleMap),L=a.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified";return e.jsxs(we,{children:[x?null:e.jsx(k,{path:"setup",element:e.jsx(X,{isBillPayAdminLevelAccess:c,isReimbursementAdminLevelAccess:y,isZeniAccountAdminLevelAccess:u,isChargeCardAdminLevelAccess:S,isTreasuryAdminLevelAccess:g,isUserHasOnlyCardAccess:w,isUserHasOnlyBillPayAccess:i,productType:"zeni_treasury",type:"setup"})}),x?null:e.jsx(k,{path:"verification",element:e.jsx(X,{isBillPayAdminLevelAccess:c,isUserHasOnlyBillPayAccess:i,isReimbursementAdminLevelAccess:y,isZeniAccountAdminLevelAccess:u,isChargeCardAdminLevelAccess:S,isTreasuryAdminLevelAccess:g,isUserHasOnlyCardAccess:w,productType:"zeni_treasury",type:"verification"})}),e.jsx(k,{path:"promo",element:e.jsx(Dt,{})}),e.jsx(k,{path:"statements",element:e.jsx(jt,{})}),e.jsx(k,{path:"tax-letter",element:e.jsx(Et,{})}),L?e.jsxs(e.Fragment,{children:[e.jsx(k,{path:"/",element:e.jsx(G,{isTransferDrawerOpen:!1,isEditPortfolioDrawerOpen:!1})}),g?e.jsxs(e.Fragment,{children:[e.jsx(k,{path:"edit-portfolio",element:e.jsx(G,{isEditPortfolioDrawerOpen:!0,isTransferDrawerOpen:!1})}),e.jsx(k,{path:"transfer",element:e.jsx(G,{isTransferDrawerOpen:!0,isEditPortfolioDrawerOpen:!1})})]}):null,e.jsx(k,{path:"*",element:e.jsx(lt,{})})]}):p&&g?e.jsx(k,{path:"*",element:e.jsx(F,{to:"../setup"})}):a.company?.companyZeniAccountInfo&&m?e.jsx(k,{path:"*",element:e.jsx(F,{to:"../promo",state:t.state})}):e.jsx(k,{path:"*",element:null})]})}export{ta as default};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./liveblocks-CiToer5R.js";import{a as f}from"./sentry-8AfgzGIO.js";import{q as u,h,g as b,N as y}from"./core-DDvaTX37.js";import{IA as I,eN as w,yV as x}from"./zeni-epic-state-D4vGt0eL.js";import{z as l,B as j,A as S,C as D}from"./index-DnJYpNVb.js";import{n as g}from"./mui-CP2KeZRM.js";import"./recharts-CxZa6yMn.js";import"./lottie-BsqqVDQp.js";import"./analytics-DVf_BIp2.js";import"./plaid-_EXcf3jJ.js";import"./dnd-V-MvMUKQ.js";import"./stripe-DMRn4zHo.js";import"./lexical-CxLnVFxa.js";import"./pdf-CZO_R6LN.js";import"./utils-DVMMWGFG.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]="5aaf11fb-a2ec-4d56-95d8-25a7f8bb1777",e._sentryDebugIdIdentifier="sentry-dbid-5aaf11fb-a2ec-4d56-95d8-25a7f8bb1777")}catch{}})();const W=()=>{const[e]=u(),t=e.get("code")??"",s=e.get("state")??"",p=e.get("profileId")??"",[n,c]=f.useState(!1),a=h(),i=b(m=>I(m)),r=l.getSignedInUser(),d=l.getSignedInUserTenantWithId(s);if(r==null||d==null)return o.jsx(y,{to:"/signin/auth",replace:!0});if(r==null)throw Error("Can't access this page without signing in...");return w(r.userId,r.zeniSessionId,d?.tenantId),f.useEffect(()=>{n||(c(!0),a(x(t,p,s)))},[n,a]),i.fetchState==="Error"?o.jsx(E,{children:o.jsx(_,{children:i.error?.message??""})}):(i.fetchState==="Completed"&&window.close(),o.jsx(j,{fetchState:"In-Progress"}))},E=g.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
width: 100%;
|
|
4
|
-
height: 100vh;
|
|
5
|
-
flex-direction: row;
|
|
6
|
-
justify-content: center;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
9
|
-
`,_=g(D.LargeRegular)`
|
|
10
|
-
display: flex;
|
|
11
|
-
color: ${S.important};
|
|
12
|
-
`;export{W as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-CiToer5R.js";import{a as f}from"./sentry-8AfgzGIO.js";import{j as x,h as B,u as $,l as j,g as p}from"./core-DDvaTX37.js";import{HA as s,Hz as v,NH as z,eM as C,NI as N}from"./zeni-epic-state-D4vGt0eL.js";import{Z as D,ao as g,h as E,z as L,B as P,bW as T,r as H}from"./index-DnJYpNVb.js";import{n as M}from"./mui-CP2KeZRM.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="700fec58-cd53-4c88-ba80-b26ecc844d6a",e._sentryDebugIdIdentifier="sentry-dbid-700fec58-cd53-4c88-ba80-b26ecc844d6a")}catch{}})();const _=M.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`;function q(){const e=x(),n=B(),d=D(),l=$();let{accountId:a}=j(),m=`${g.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${a}`;a==null&&l.pathname.includes(`${s}/statements`)&&(a=s,m=`${g.bankingMicroServiceBaseUrl}/1.0/${s}`);const[u,y]=f.useState(!1),h=E();f.useEffect(()=>{u||(y(!0),n(v(a??"",!1)))},[u,n]);const o=p(t=>z(t,a??"")),b=()=>{const t=H(l.state?.pathnameStackToGoBack),S=t.poppedPathname??"..";e(S,{state:{pathnameStackToGoBack:t.newStack}})},c=L.getSignedInUser(),r=p(t=>C(t)),I={userId:c?.userId??"",sessionId:c?.zeniSessionId??"",tenantId:r.tenantId??""},w=N(a??"")===!0?s:o.zeniAccountDetail?.accountLast4??"",k=r.company?.companyInfo.companyLegalName??r.companyName;if(c==null)throw Error("Can't access address page without signing in...");return o.fetchState!=="Completed"?i.jsx(P,{fetchState:"In-Progress",style:{backgroundColor:h.colors.grey5}}):i.jsx(_,{windowSize:d,children:i.jsx(T,{currentTenantCompanyName:k,statementListView:o,accountLast4:w,onBackClick:b,authParams:I,downloadEndPoint:m})})}export{q as Z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{v as n}from"./index-DnJYpNVb.js";import"./mui-CP2KeZRM.js";import"./sentry-8AfgzGIO.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]="23c9d42c-2eaa-4eeb-8884-b19442f979b9",e._sentryDebugIdIdentifier="sentry-dbid-23c9d42c-2eaa-4eeb-8884-b19442f979b9")}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 d}from"./sentry-8AfgzGIO.js";import{Z as p,a as b,s as m,M as u}from"./index-DnJYpNVb.js";import"./mui-CP2KeZRM.js";import{b as y}from"./useFetchSuggestedQuestionsWhenReady-B1Y3Jjir.js";import{j as k,u as g,l as h}from"./core-DDvaTX37.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]="08491ca1-63e4-40d1-b9c2-c6076ba5dec1",e._sentryDebugIdIdentifier="sentry-dbid-08491ca1-63e4-40d1-b9c2-c6076ba5dec1")}catch{}})();function E(e){const{isAiCfoOpen:a,setIsAiCfoOpen:t,mobileExploreReferrer:n}=e,r=k(),o=g(),{tenantEmailDomain:s}=h(),f=p(),i=u(f),c=b();return{isAiCfoAccessEnabled:y()&&c&&!a,onAskAiCfoClick:d.useCallback(()=>{if(s!=null)if(i){const l=m(o.state?.pathnameStackToGoBack,o.pathname);r(`/${s}/ai-cfo/explore`,{state:{pathnameStackToGoBack:l,referrer:n}})}else t(!0)},[i,o.pathname,o.state,n,r,t,s])}}export{E as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as c}from"./sentry-8AfgzGIO.js";import{h as i,s as d}from"./core-DDvaTX37.js";import{n as b,i as h,a as g,$ as m,J as C}from"./index-DnJYpNVb.js";import"./mui-CP2KeZRM.js";import{eJ as l,hA as p}from"./zeni-epic-state-D4vGt0eL.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]="d1088fe4-5a6e-466c-a85c-6d40805cc215",e._sentryDebugIdIdentifier="sentry-dbid-d1088fe4-5a6e-466c-a85c-6d40805cc215")}catch{}})();function x(){const{useFeatureGate:e}=b(),{isFeatureEnabled:t}=e(h.isAiCfoNavButtonEnabled),n=g();return t&&n}function y(e,t){return e!=="Completed"&&e!=="In-Progress"&&!(e==="Error"&&!t)}function I(e){const{areTenantIdsInSync:t}=C(),n=g(),a=x();return t&&e&&a&&n}function _(e){const{pageContexts:t,canFetchSuggestedQuestions:n}=e,a=i(),s=d(),o=c.useRef(null);c.useEffect(()=>{const r=o.current===!1&&n===!0;if(o.current=n,n&&t!=null&&t.length!==0)for(const u of t){const f=l(s.getState(),u)?.fetchState;y(f,r)&&a(p({pageContext:u}))}},[n,a,t,s])}function S(e){(function(t){const{pageContext:n,canFetchSuggestedQuestions:a}=t,s=i(),o=d(),r=c.useRef(null);c.useEffect(()=>{const u=r.current===!1&&a===!0;if(r.current=a,n==null||!a)return;const f=l(o.getState(),n)?.fetchState;y(f,u)&&s(p({pageContext:n}))},[a,s,n,o])})({canFetchSuggestedQuestions:I(e.isDataReady),pageContext:e.pageContext})}function Q(e){S({pageContext:m(),isDataReady:e.isDataReady})}export{_ as a,x as b,Q as c,I as u};
|