@zeniai/web-app-ui 5.1.60-dev → 5.1.61-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/AddressRoutes-BWnt9cIC.js +1 -0
- package/dist/assets/{AddressScreen-B3VxKVsm.js → AddressScreen-Cyw252uq.js} +1 -1
- package/dist/assets/{AiCfoScreen-CxUZrUe6.js → AiCfoScreen-bE_YH6Fi.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-uGTk7D6Z.js → BillPayApprovalRoutes-BYeOa3fn.js} +1 -1
- package/dist/assets/{BillPayRoutes-B4MYuRle.js → BillPayRoutes-Q37Bip2_.js} +1 -1
- package/dist/assets/{BusinessVerificationPageScreen-BoQL4-Oc.js → BusinessVerificationPageScreen-DDNp0i_6.js} +1 -1
- package/dist/assets/{CardsAiCfoScreen-DOjaOTIW.js → CardsAiCfoScreen-OIj82XD6.js} +1 -1
- package/dist/assets/{ChargeCardRoutes-BwUyHx0V.js → ChargeCardRoutes-CYNI9iYT.js} +1 -1
- package/dist/assets/{CompanyPassportScreen-D9FdVjLZ.js → CompanyPassportScreen-B529KL6X.js} +1 -1
- package/dist/assets/{ConnectionAuthScreen-D2lagtAc.js → ConnectionAuthScreen-BhglfBxw.js} +1 -1
- package/dist/assets/CustomerOnboardingAuthScreen-BODgBJcA.js +1 -0
- package/dist/assets/CustomerOnboardingRoutes-Cespkqcr.js +30 -0
- package/dist/assets/{DashboardRoutes-DdQJBKft.js → DashboardRoutes-D42ZwOZ2.js} +1 -1
- package/dist/assets/{DefaultTenantHome-Bq1e6Two.js → DefaultTenantHome-DjxQUC_9.js} +1 -1
- package/dist/assets/{DomesticWireDetailScreen-CUtA9hl5.js → DomesticWireDetailScreen-C8RoK7MV.js} +1 -1
- package/dist/assets/{DrawerScreen-DH8ydvUJ.js → DrawerScreen-BJPPsAw9.js} +1 -1
- package/dist/assets/{EntityDetailRoutes-BDlOs1iD.js → EntityDetailRoutes-DPZ-OJr4.js} +1 -1
- package/dist/assets/{ExpenseAutomationRoutes-JFMM2o6Q.js → ExpenseAutomationRoutes-CrHU_K2U.js} +1 -1
- package/dist/assets/{FeaturePreviewScreen-DttBoo3w.js → FeaturePreviewScreen-sSF2UCv0.js} +1 -1
- package/dist/assets/{HubSpotOAuthCallbackScreen-CTIys_Ac.js → HubSpotOAuthCallbackScreen-Cr8RPtj3.js} +1 -1
- package/dist/assets/{MagicLinkRoutes-Bbrp9yb4.js → MagicLinkRoutes-UfcpgHsN.js} +1 -1
- package/dist/assets/{MagicLinkSignInScreen-wsLKenOn.js → MagicLinkSignInScreen-T9sB_-W8.js} +1 -1
- package/dist/assets/{MobileAppDrawer-DOdKZ6eR.js → MobileAppDrawer-CjCM5bjN.js} +1 -1
- package/dist/assets/NotFoundScreen-CflOAMKa.js +1 -0
- package/dist/assets/{NotificationRoutes-C3NJQaBA.js → NotificationRoutes-BkHhaOdW.js} +1 -1
- package/dist/assets/{OAuthConsentScreen-BIGa0ruC.js → OAuthConsentScreen-oGOpIW2V.js} +1 -1
- package/dist/assets/{PandLWithForecastRoutes-Ce2SPyhW.js → PandLWithForecastRoutes-eeY-GDaz.js} +1 -1
- package/dist/assets/{PeopleRoutes-OwQwZ1NQ.js → PeopleRoutes-D_iNvraD.js} +1 -1
- package/dist/assets/{PerformanceRoutes-CoB1O0dR.js → PerformanceRoutes-CNOho0fU.js} +1 -1
- package/dist/assets/{Preview-dDFLUSBQ.js → Preview-DgYvT3D-.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-BQZ2NFG-.js → QBOConnectionScreen-o1myqUmo.js} +1 -1
- package/dist/assets/{ReferralListScreen-DoHN-iLK.js → ReferralListScreen-BUtp3UMq.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRoutes-BjB8dB9T.js → ReimbursementApprovalRoutes-CS0osEZO.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-DJf65wBd.js → ReimbursementApprovalRuleDetailScreen-CwTYQVzk.js} +1 -1
- package/dist/assets/{ReimbursementRoutes--7oGilFy.js → ReimbursementRoutes-C-egDkm9.js} +1 -1
- package/dist/assets/{ReportsRoutes-COqA8f7e.js → ReportsRoutes-CvVV3qr2.js} +1 -1
- package/dist/assets/{RewardsRoutes-DbUUR-tG.js → RewardsRoutes-ByI0ZIpM.js} +1 -1
- package/dist/assets/{ScreenRoutes-Cx9i1dRt.js → ScreenRoutes-BUsrnJNl.js} +2 -2
- package/dist/assets/{SettingsRoutes-XpIT8yrn.js → SettingsRoutes-CDmDtEjA.js} +1 -1
- package/dist/assets/{SetupPagesScreen-C883vxB-.js → SetupPagesScreen-Dh8Hk4GJ.js} +1 -1
- package/dist/assets/{SignInScreen-BlOBFJPA.js → SignInScreen-DMdUjPFw.js} +1 -1
- package/dist/assets/{SignOutScreen-BbTKwHIb.js → SignOutScreen-Du8uZhJl.js} +1 -1
- package/dist/assets/{TaskListScreen-A7aV-yiF.js → TaskListScreen-Bojtuf_r.js} +1 -1
- package/dist/assets/{TaskRoutes-BaTgjrdZ.js → TaskRoutes-DFB7uLPO.js} +1 -1
- package/dist/assets/{TransactionDetailRoutes-C_Orz-Lz.js → TransactionDetailRoutes-B0zjqIdX.js} +1 -1
- package/dist/assets/{TransactionDetailScreen-DHdS4J3N.js → TransactionDetailScreen-CbYNGoLT.js} +1 -1
- package/dist/assets/{TransactionListRoutes-B5wpQo4s.js → TransactionListRoutes-BMhnQERQ.js} +1 -1
- package/dist/assets/{TreasuryRoutes-T4MLJL18.js → TreasuryRoutes-Cn_6Bv2l.js} +1 -1
- package/dist/assets/{VendorsRoutes-ikvPe4Sn.js → VendorsRoutes-C-7eDYZA.js} +1 -1
- package/dist/assets/{WiseConfirmationScreen-CdZZPj6p.js → WiseConfirmationScreen-BOqcCxC3.js} +1 -1
- package/dist/assets/{ZeniAccountRoutes-CUyHxcKz.js → ZeniAccountRoutes-CYCO4Mlh.js} +1 -1
- package/dist/assets/{ZeniAccountStatementScreen-DQWuTFCk.js → ZeniAccountStatementScreen-BZCaKTup.js} +1 -1
- package/dist/assets/{accountMappingHelper-BBILjeHz.js → accountMappingHelper-BPz1owqi.js} +1 -1
- package/dist/assets/{analytics-BlxwN6GD.js → analytics-C-A3qVJh.js} +1 -1
- package/dist/assets/{analyticsHelper-JD26-jfw.js → analyticsHelper-CB3wiVZA.js} +1 -1
- package/dist/assets/{core-Ctjv24YM.js → core-SRRzy8qJ.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-Z8As9uQN.js → decodeURIComponentSafe-Bz-26BXW.js} +1 -1
- package/dist/assets/{dnd-DdE4ICzz.js → dnd-CR8sMRK3.js} +1 -1
- package/dist/assets/{empty-Cgmg-ODN.js → empty-BjaZv87n.js} +1 -1
- package/dist/assets/{empty-BgBFHjf_.js → empty-Btqk4ZK3.js} +1 -1
- package/dist/assets/{emptyVideoElement-BxJPDgaA.js → emptyVideoElement-CcSCePHi.js} +1 -1
- package/dist/assets/{epic-D1NCPIYf.js → epic-DDYIjE2A.js} +1 -1
- package/dist/assets/{getLocaleForTenant-DSAEK88o.js → getLocaleForTenant-BDBK629h.js} +1 -1
- package/dist/assets/{index-B6LHkFfA.js → index-6PBzTIZ2.js} +1 -1
- package/dist/assets/{index-DN_Tvj5e.js → index-CEFX9nem.js} +1 -1
- package/dist/assets/{index-DZAo63F3.js → index-CejiZfG4.js} +1 -1
- package/dist/assets/{index-Brx9Hk6c.js → index-CxtVVz4g.js} +1 -1
- package/dist/assets/{index-B2_u2l5p.js → index-DQiNpCi5.js} +85 -85
- package/dist/assets/{index-DrylXWCT.js → index-DiKyQs4W.js} +1 -1
- package/dist/assets/{index-D5yqrruP.js → index-JPErnqsm.js} +2 -2
- package/dist/assets/{index-hzMyClsK.js → index-rTYnRLvf.js} +1 -1
- package/dist/assets/{lexical-z-P2V9ug.js → lexical-qJrDnJMV.js} +1 -1
- package/dist/assets/{liveblocks-UQZFqaDN.js → liveblocks-DS8sOLD1.js} +1 -1
- package/dist/assets/{lottie-h9wdJ9gi.js → lottie-Coq2aDEW.js} +1 -1
- package/dist/assets/{mui-DU4JyJ-_.js → mui-DQ-jfgFM.js} +1 -1
- package/dist/assets/{pathToGoBack-dHZq4iEC.js → pathToGoBack-BmSmVqnZ.js} +1 -1
- package/dist/assets/{pdf-BK4Cbxeo.js → pdf-D2Xq7623.js} +4 -4
- package/dist/assets/{pdf-lib-BWuwD2_b.js → pdf-lib-fB9Fkl6A.js} +1 -1
- package/dist/assets/{plaid-Dtkg2fMC.js → plaid-DWZgMqW3.js} +1 -1
- package/dist/assets/{pusher-BRkEMaTd.js → pusher-Xj81uOBz.js} +1 -1
- package/dist/assets/{react-DDqHZ_bg.js → react-BlqDZveQ.js} +1 -1
- package/dist/assets/{react-BEV1hQDm.js → react-CgdBA-iC.js} +1 -1
- package/dist/assets/{react-lX-1Fc9t.js → react-DRyTZBkZ.js} +1 -1
- package/dist/assets/{react-BTEnGEot.js → react-DrjKWElm.js} +1 -1
- package/dist/assets/{react-Tzoiwmeg.js → react-DyXk5i5q.js} +1 -1
- package/dist/assets/{react-B6jUeEM2.js → react-eGjCUI9Z.js} +1 -1
- package/dist/assets/{recharts-RL5R0Iqz.js → recharts-CHATJmXy.js} +1 -1
- package/dist/assets/{routePaths-DQVLxXKn.js → routePaths-CN_gBlNJ.js} +1 -1
- package/dist/assets/{sentry-C0E1AQIe.js → sentry-B2Aew07S.js} +1 -1
- package/dist/assets/{url-DASTrDxO.js → url-BOKPP8B2.js} +1 -1
- package/dist/assets/{url-B8pn9E20.js → url-BfvldWlU.js} +1 -1
- package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-B_thEjYk.js → useAiCfoDashboardSuggestedQuestionsChips-D-BWgoPI.js} +1 -1
- package/dist/assets/{useAskAiCfoHostNavButtonProps-Q4FV3LSW.js → useAskAiCfoHostNavButtonProps-COXanSTX.js} +1 -1
- package/dist/assets/{useCashManagementBanner-NM9lBibn.js → useCashManagementBanner-C9MfAi7A.js} +1 -1
- package/dist/assets/{useChargeCardPusherEvents-HzaLnrlm.js → useChargeCardPusherEvents-oFZCnH6V.js} +1 -1
- package/dist/assets/{useDeviceId-_WmC04ST.js → useDeviceId-obtSvxuy.js} +1 -1
- package/dist/assets/{useEmailConnectResultRefresh-Dym62Z_F.js → useEmailConnectResultRefresh-CM4GNdWT.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-iSw8uA8Y.js → useInitialThreadRequest-DY5p7j5O.js} +1 -1
- package/dist/assets/{utils-hcCBORos.js → utils-D8kKiFqT.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-DL6O8tOb.js → withTransactionSidePanel-C3WgEurr.js} +1 -1
- package/dist/assets/{zeni-epic-state-ym9j-rvL.js → zeni-epic-state-DcKqCCCg.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/AddressRoutes-BfIfKyrk.js +0 -1
- package/dist/assets/CustomerOnboardingAuthScreen-CkvBriLt.js +0 -1
- package/dist/assets/CustomerOnboardingRoutes-DWKwUU9B.js +0 -30
- package/dist/assets/NotFoundScreen-DMlQVohM.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-DQiNpCi5.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-B2Aew07S.js"><link rel="modulepreload" crossorigin href="/assets/core-SRRzy8qJ.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-DcKqCCCg.js"><link rel="modulepreload" crossorigin href="/assets/mui-DQ-jfgFM.js"><link rel="modulepreload" crossorigin href="/assets/analytics-C-A3qVJh.js"><link rel="modulepreload" crossorigin href="/assets/utils-D8kKiFqT.js"><link rel="stylesheet" crossorigin href="/assets/index-BUmr5maU.css"></head><body style="margin:0"><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><div class="app-shell-loader" id="app-shell-loader"><div class="app-shell-sidebar"><div class="app-shell-sidebar-group"><div class="app-shell-bar zeni-logo" style="width:96px;height:20px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:78px;height:16px"></div><div class="app-shell-bar" style="width:46px;height:16px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:110px;height:16px"></div><div class="app-shell-bar" style="width:84px;height:16px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:84px;height:16px"></div><div class="app-shell-bar" style="width:64px;height:16px"></div></div></div><div class="app-shell-main"><div class="app-shell-navbar"><div class="app-shell-bar" style="width:106px;height:27px"></div><div class="app-shell-bar" style="width:111px;height:32px"></div></div><div class="app-shell-logo"><svg width="96" height="96" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16.768 0.0270284C16.571 -0.055168 16.348 0.0572476 16.2913 0.267574C16.2713 0.342517 16.2489 0.417461 16.2253 0.491196C16.0094 1.15723 15.6459 1.76645 15.148 2.27776C14.3056 3.14203 13.1847 3.61949 11.9918 3.6207H11.9883C10.7978 3.6207 9.67689 3.14565 8.83445 2.2838C8.33653 1.7737 7.97077 1.16448 7.75367 0.499657C7.73007 0.425922 7.70765 0.350979 7.68641 0.276035C7.62978 0.065709 7.40678 -0.0454978 7.20974 0.0366985C6.05463 0.522624 4.98565 1.17899 4.0323 1.97436C3.91195 2.07468 3.87301 2.24512 3.93083 2.39259C3.9792 2.51589 4.03112 2.63797 4.08539 2.75764C4.51133 3.70894 5.10364 4.5853 5.84815 5.34682C7.48937 7.0246 9.66863 7.9493 11.9871 7.9493H11.9954C14.3162 7.94689 16.4978 7.01855 18.1379 5.33595C18.8812 4.57321 19.4711 3.69564 19.8959 2.74434C19.9502 2.62347 20.0009 2.50138 20.0493 2.37809C20.1071 2.23062 20.0682 2.06018 19.9478 1.95985C18.9933 1.16569 17.9231 0.511745 16.768 0.0270284Z"/><path d="M19.9102 21.2422C19.4843 20.2933 18.8931 19.4194 18.151 18.6603C16.5086 16.9801 14.3223 16.053 12.0038 16.0578C8.50304 16.0614 5.48371 18.1961 4.11031 21.2603C4.05722 21.38 4.0053 21.5009 3.95575 21.623C3.89675 21.7704 3.93569 21.9421 4.05722 22.0436C5.01175 22.8366 6.08073 23.4893 7.23466 23.9728C7.4317 24.055 7.65352 23.9438 7.71134 23.7335C7.73139 23.6573 7.75381 23.5836 7.77859 23.5086C8.37207 21.6979 10.0416 20.3888 12.0073 20.3864H12.012C13.2025 20.3864 14.3234 20.8614 15.1659 21.7233C15.6626 22.231 16.026 22.8378 16.2431 23.5002C16.2679 23.5739 16.2903 23.6489 16.3104 23.7238C16.3682 23.9341 16.59 24.0453 16.787 23.9619C17.9422 23.476 19.01 22.8209 19.9633 22.0255C20.0837 21.9252 20.1226 21.7535 20.0648 21.606C20.0164 21.4828 19.9645 21.3631 19.9102 21.2422Z"/><path d="M0.132148 10.1666C0.158105 9.98769 0.305591 9.85352 0.482575 9.85352L23.5093 9.81726C23.6863 9.81726 23.8338 9.95022 23.8609 10.1291C23.9518 10.7347 23.999 11.3548 23.999 11.9858C24.0001 12.6131 23.9541 13.2284 23.8668 13.8292C23.8408 14.0081 23.6934 14.1422 23.5164 14.1422L0.489654 14.1773C0.312671 14.1773 0.165185 14.0443 0.138047 13.8654C0.0471956 13.2598 0 12.6397 0 12.0088C0 11.3826 0.0448358 10.7673 0.132148 10.1666Z"/></svg></div></div></div></body></html>
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./liveblocks-UQZFqaDN.js";import{A as d}from"./AddressScreen-B3VxKVsm.js";import i from"./NotFoundScreen-DMlQVohM.js";import"./sentry-C0E1AQIe.js";import{o as s,p as r}from"./core-Ctjv24YM.js";import"./zeni-epic-state-ym9j-rvL.js";import"./recharts-RL5R0Iqz.js";import"./index-B2_u2l5p.js";import"./mui-DU4JyJ-_.js";import"./analytics-BlxwN6GD.js";import"./plaid-Dtkg2fMC.js";import"./dnd-DdE4ICzz.js";import"./stripe-DMRn4zHo.js";import"./lottie-h9wdJ9gi.js";import"./lexical-z-P2V9ug.js";import"./pdf-BK4Cbxeo.js";import"./utils-hcCBORos.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new t.Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="cd0ff2b4-1e27-4329-addf-f475e5a9db34",t._sentryDebugIdIdentifier="sentry-dbid-cd0ff2b4-1e27-4329-addf-f475e5a9db34")}catch{}})();function _(){return e.jsxs(s,{children:[e.jsx(r,{path:"/edit/:addressType/:addressId",element:e.jsx(d,{})}),e.jsx(r,{path:"/new/:addressType",element:e.jsx(d,{})}),e.jsx(r,{path:"*",element:e.jsx(i,{})})]})}export{_ as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-UQZFqaDN.js";import{z as n}from"./index-B2_u2l5p.js";import{g as d}from"./QBOConnectionScreen-BQZ2NFG-.js";import"./sentry-C0E1AQIe.js";import{g as p,N as s}from"./core-Ctjv24YM.js";import"./zeni-epic-state-ym9j-rvL.js";import"./recharts-RL5R0Iqz.js";import"./mui-DU4JyJ-_.js";import"./analytics-BlxwN6GD.js";import"./plaid-Dtkg2fMC.js";import"./dnd-DdE4ICzz.js";import"./stripe-DMRn4zHo.js";import"./lottie-h9wdJ9gi.js";import"./lexical-z-P2V9ug.js";import"./pdf-BK4Cbxeo.js";import"./utils-hcCBORos.js";import"./empty-BgBFHjf_.js";import"./pdf-lib-BWuwD2_b.js";import"./index-DrylXWCT.js";import"./url-DASTrDxO.js";import"./index-B6LHkFfA.js";import"./decodeURIComponentSafe-Z8As9uQN.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new t.Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="817363c8-7f1d-4590-b58b-cef70b99ca15",t._sentryDebugIdIdentifier="sentry-dbid-817363c8-7f1d-4590-b58b-cef70b99ca15")}catch{}})();const U=()=>{const t=p(),{code:o,realmId:r,state:e}=d(t.search),m=n.getSignedInUser()?.userId??"";if(f(o,r,e,m)===!0){const a=`../../${e}/onboarding?code=${o}&realmId=${r}&state=auth_flow`;return i.jsx(s,{to:a})}return i.jsx(s,{to:"../../"})},f=(t,o,r,e)=>t!=""&&o!=""&&r!=""&&e!=null&&e!="";export{U as default,f as hasValidParams};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-UQZFqaDN.js";import{t as ht,A as Me}from"./AddressScreen-B3VxKVsm.js";import St from"./NotFoundScreen-DMlQVohM.js";import{a as u}from"./sentry-C0E1AQIe.js";import{h as Ce,g as ke,u as H,i as Ie,j as x,N as j,n as Ee,l as bt,o as Ct,p as K}from"./core-Ctjv24YM.js";import{$ as _e,I as xe,z as $,W as Ae,U as M,B as kt,s as N,x as ae,d as G,ap as at,f as de,aq as It,q as Et,ar as Ne,i as Se,as as _t,o as $e,at as Ge,au as xt,av as ze,aw as At}from"./index-B2_u2l5p.js";import{eV as W,fS as vt,fA as ve,fy as Oe,bs as Ot,o4 as Tt,fO as wt,bS as Pt,tj as Dt,tm as Ft,MP as jt,MQ as Ut,MR as Bt,xH as Vt,Er as Rt,u8 as Lt,MS as Mt,k6 as be,k9 as ot,Mk as Nt,bY as $t,c6 as le,tN as Te,ty as Gt,MT as ue,tO as st,Kd as zt,la as it,MU as Qt,MV as Kt,rg as qt,hn as Zt,Mc as ge,hk as Ht,Md as Wt,xW as Xt,rk as Yt,hc as Jt,hf as Qe,MW as rt,MX as en,D_ as tn,MY as nn,E2 as an,tp as on,MZ as sn,M_ as rn,k4 as cn,k7 as dn,t_ as un,tA as ct,tM as ln,bE as Ke,cy as pn,tZ as qe,rz as mn,rn as gn,l2 as fn,ge as yn,gd as hn,gc as Sn,M$ as bn,ts as Cn,t$ as kn,u2 as In,u5 as En,ub as _n,cX as xn}from"./zeni-epic-state-ym9j-rvL.js";import{n as we}from"./mui-DU4JyJ-_.js";import{g as An,h as vn,q as oe}from"./QBOConnectionScreen-BQZ2NFG-.js";import{u as On}from"./useEmailConnectResultRefresh-Dym62Z_F.js";import{u as Tn}from"./useChargeCardPusherEvents-HzaLnrlm.js";import{u as wn}from"./plaid-Dtkg2fMC.js";import"./recharts-RL5R0Iqz.js";import"./analytics-BlxwN6GD.js";import"./dnd-DdE4ICzz.js";import"./stripe-DMRn4zHo.js";import"./lottie-h9wdJ9gi.js";import"./lexical-z-P2V9ug.js";import"./pdf-BK4Cbxeo.js";import"./utils-hcCBORos.js";import"./empty-BgBFHjf_.js";import"./pdf-lib-BWuwD2_b.js";import"./index-DrylXWCT.js";import"./url-DASTrDxO.js";import"./index-B6LHkFfA.js";import"./decodeURIComponentSafe-Z8As9uQN.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new t.Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="c4494e92-5dea-41cb-9f27-f7c1e4335027",t._sentryDebugIdIdentifier="sentry-dbid-c4494e92-5dea-41cb-9f27-f7c1e4335027")}catch{}})();const Pn=Ee(function(t,s){const n=[];s.isApAgingFeatureEnabled===!1&&n.push("accounts_payable_aging"),s.isArAgingFeatureEnabled===!1&&n.push("accounts_receivable_aging"),s.shouldFetchZeniAccountsPromoCard===!1&&n.push("zeni_accounts_promo_card"),s.shouldFetchRewardsPlanCard===!1&&n.push("rewards_card"),s.isExpenseAutomationEnabledForUser===!1&&n.push("expense_automation_card");const o=wt(t,n,s.signedInUser,s.isExpenseAutomationFeatureEnabledV2,s.isExpenseAutomationEnabledForUser,s.isTreasuryEnabled);return{dashboardFetchState:Pt(o.reportsInOrder.map(c=>({fetchState:c.fetchState,error:c.error}))).fetchState}},function(t,s){const{themeState:n,navigate:o,location:c}=s;return{onZeniLogoClick:()=>{n.toggle()},onDashboardFetchDone:()=>{const l=N(c.state?.pathnameStackToGoBack,c.pathname);o("../../dashboard",{state:{pathnameStackToGoBack:l,message:"activation"}})}}})(It),Dn=()=>{const t=Ce(),s=ke(),n=H(),o=_e(),[c,l]=u.useState(!1),[h,k]=u.useState(!1),{tenantEmailDomain:e}=Ie(),i=xe(),d=$.getSignedInUser(),{useFeatureGate:p}=Ae(),{isFeatureEnabled:A}=p(M.isApAgingFeatureEnabled),{isFeatureEnabled:r}=p(M.isArAgingFeatureEnabled),{isFeatureEnabled:g}=p(M.isDepositAccountsFeatureEnabled),{isFeatureEnabled:_}=p(M.isReferralFeatureEnabled),{isFeatureEnabled:E}=p(M.isExpenseAutomationEnabledV2),{isFeatureEnabled:m}=p(M.isDebitCardFeatureEnabled),U=kt(),S=x(I=>W(I)),{isFeatureEnabled:P}=p(M.isTreasuryEnabled),V=S.company!=null&&vt(S.company),y=P&&V,b=x(I=>I.onboardingCustomerViewState.fetchState),v=S.excludedResources,B=S.companyId??$.getSignedInUserTenant(e)?.companyId;if(d==null)throw Error("Can't access onboarding flow without signing in...");const D=ve(m,S),O=Oe(S),w=[],q=v?.resources?.find(I=>I.resource==="/reports/top_expenses")==null,z=v?.resources?.find(I=>I.resource==="/reports/task_card")==null,X=S?.userRole!=null&&Ot(S?.userRole),Y=v?.resources?.find(I=>I.resource==="/bills")==null&&!X,Q=v?.resources?.find(I=>I.resource==="/reimbursements")==null;if(q===!1&&w.push("top_expenses"),z===!1&&w.push("task_card"),Y===!1&&w.push("bill_pay_card","bill_pay_promo_card"),Q===!1&&w.push("reimbursement_card","reimbursement_promo_card"),g===!1&&w.push("zeni_accounts_promo_card"),_===!1&&w.push("rewards_card"),u.useEffect(()=>{b!=="Completed"||c||D||O||(l(!0),n(Tt(d.userId,B,S.tenantId,!0,!1,w)))},[c,b,D,O,d,S.tenantId,n]),u.useEffect(()=>{(D||O)&&setTimeout(()=>{k(!0)},5e3)},[D,O]),b!=="Completed")return a.jsx(j,{to:"../"});if(b==="Completed"&&h){const I=N(s.state?.pathnameStackToGoBack,s.pathname);if(D)return a.jsx(j,{to:"../../checking",state:{...s.state,pathnameStackToGoBack:I,message:"activation"}});if(O)return a.jsx(j,{to:"../../cards",state:{...s.state,pathnameStackToGoBack:I,message:"activation"}})}return i?.loggedInUserRoleMap!=null?a.jsxs(a.Fragment,{children:[a.jsx(ae,{analytics:G,onLoad:I=>(F=>F.trackPageLoaded(de.Event.onboardingDashboardActivation))(I)}),a.jsx(Pn,{navigate:t,location:s,themeState:o,signedInUser:d,isApAgingFeatureEnabled:A,isArAgingFeatureEnabled:r,shouldFetchZeniAccountsPromoCard:g,shouldFetchRewardsPlanCard:_,isExpenseAutomationEnabledForUser:U,isExpenseAutomationFeatureEnabledV2:E,isTreasuryEnabled:y,loggedInUserRoleMap:i?.loggedInUserRoleMap})]}):a.jsx(at,{})},fe=["reading_books","finance_graph","reconciliation","cfo_foundation"],ye=["llm_fine_tuning","rag_knowledge_graph","personalized_context"],Ze=(t,s)=>{const n=new Map(t.map(o=>[o.key,o]));return s.map(o=>{return c=n.get(o)?.status,c==="starting"||c==="building"?c:"idle";var c})},He=(t,s)=>{if(t.length===0)return!1;const n=new Map(t.map(o=>[o.key,o]));return s.every(o=>n.get(o)?.status==="ready")},Fn=new Set(Mt),We=we.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
background-color: ${t=>t.theme.colors.grey4};
|
|
5
|
-
`,Xe=we.div`
|
|
6
|
-
display: flex;
|
|
7
|
-
flex-direction: column;
|
|
8
|
-
align-items: center;
|
|
9
|
-
flex: 1;
|
|
10
|
-
min-width: 0;
|
|
11
|
-
|
|
12
|
-
${t=>t.skipLegacyDrawerOffset?`
|
|
13
|
-
width: 100%;
|
|
14
|
-
padding-left: ${$e.sp0};
|
|
15
|
-
`:`
|
|
16
|
-
min-width: calc(100% - ${Ge}px);
|
|
17
|
-
padding-left: ${Ge}px;
|
|
18
|
-
`}
|
|
19
|
-
|
|
20
|
-
${t=>t.theme.breakpoints.down("md")} {
|
|
21
|
-
width: 100%;
|
|
22
|
-
padding-left: ${$e.sp0};
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
${t=>t.windowSize!=="small"?"overflow: auto;":""}
|
|
26
|
-
`,Ye=Ee(function(t,s){const{companyId:n,isAdmin:o,currentTenant:c,isOnAddressPage:l}=s,h=$.getSignedInUser(),k=c.tenantId,e={userId:h?.userId??"",sessionId:h?.zeniSessionId??"",tenantId:k??""},i=W(t),d=Te(t,n),p=rt(t),A=le(c?.userRole??[])&&d.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",r=en(t.userRoleConfigState);return{onboardingCustomerView:d,analytics:G,isRefreshingViewInBackground:!1,isDisabled:A,companyTitles:r.companyTitles,connectedAccountProvider:i.company?.featuresActivationInfo.connectedAccountProvider??"",fileProps:{filesEndPoint:xt.fileMicroServiceBaseUrl,authParams:e},signedInUser:$.getSignedInUser(),currentTenant:i,isAdmin:o,isOnAddressPage:l,meetingUrl:"https://meetings.hubspot.com/niharn/zeni-onboarding-overview?embed=true",cardPaymentView:p,isCardPaymentPopupOpen:!1,stripeKey:Se.stripeKey}},function(t,s){const{companyId:n,currentTenant:o,themeState:c,navigate:l,location:h}=s,{tenantEmailDomain:k}=o;return{onFetchLinkTokenClick:(e,i)=>{t(_n(e,i))},onEstablishConnectionClick:(e,i)=>{t(En(e,i))},onUpdatePaymentAccountStatus:(e,i,d)=>{t(In(e,i,d))},onUpdatePaymentAccountLoginStatus:(e,i)=>{t(kn(!1,e,i))},onEstablishConnectionSuccess:()=>{t(Cn(n,!0,!1))},handleOnConnectClick:()=>{G.trackOnboardingConnectQBO(),oe.handleClick()},updateQBOPopupState:e=>{t(ue({isQBOPopupOpen:e}))},onCompanyOfficerUpdated:e=>{const i=e.map(d=>{const{officerType:p,userId:A,name:r,email:g,ssn:_,nationalityCountryCode:E,dob:m,phone:U,syncToken:S,selectDocument:P,role:V,ownership:y,isSelectedForVerification:b,userVerificationStatus:v,fileIds:B,isPhoneVerified:D}=d;let O;return P.selectDocumentType==="driverLicense"?O="driving_license":P.selectDocumentType==="passport"?O="passport":P.selectDocumentType==="stateId"?O="id_document":P.selectDocumentType==="ssnCard"&&(O="social_security_card"),{officerType:p,userId:A,firstName:r.firstName,lastName:r.lastName,email:g,ssn:_,nationalityCountryCode:E?.selectedOption!=null?ze(E.selectedOption):void 0,phone:U,birthday:m!=null?Ke(m?.toString()):m,syncToken:S,titleAtCompany:V.selectedOption,ownershipInCompany:y,documentTypeSelectedForVerification:O,isSelectedForVerification:b,userVerificationStatus:v,fileIds:B,additionalDocumentTypesRequestedForVerification:[],additionalSubmittedDocumentsForVerificationFileIds:[],areAdditionalDocumentsRequestedForVerification:!1,areAdditionalDocumentsSubmittedForVerification:!1,isPhoneVerified:D}});t(qe({officers:i}))},onGetOtp:(e,i)=>{t(Sn(e,"CustomerOnboarding")),i!=null&&t(bn({officerType:i,phone:e}))},onResendOtp:e=>{t(hn(e,"CustomerOnboarding"))},onVerifyOtp:(e,i)=>{t(yn(e,i,"CustomerOnboarding"))},updateFilesEntity:e=>{t(fn({files:e}))},onDeleteFile:e=>{t(gn(e))},onEditFileName:(e,i)=>{t(mn(e,i.split(".")[0]))},onCompanyDetailsChanged:e=>{const{companyDescription:i,companyIndustry:d,companyIndustryType:p,companyLegalName:A,companyTaxId:r,companyWebsite:g,companyPhone:_,primaryContactEmail:E,primaryContactName:m,primaryContactUserId:U,primaryContactSyncToken:S,syncToken:P,fileIds:V,typeOfIncorporation:y,stateOfIncorporation:b,incDate:v,companySourceOfFunds:B,companySourceOfFundsDescription:D,companySubIndustry:O,countriesOfOperations:w,purposeOfAccount:q,purposeOfAccountDescription:z,regulatedStatus:X,regulatedStatusDescription:Y,transactionVolume:Q,transactionVolumeDescription:I,usNexus:F,usNexusTypes:se}=e,R={companyId:n,companyDescription:i,companyIndustry:d.selectedOption,companyIndustryType:p?.selectedOption??"",companyLegalName:A,taxIdOrEIN:r,website:g!=""&&g!=null?pn(g):void 0,phone:_,syncToken:P,fileIds:V,incDate:v!=null?Ke(v?.toString()):v,typeOfIncorporation:y?.selectedOption??"",stateOfIncorporation:b?.selectedOption??"",companySourceOfFunds:B?.selectedOption??"",companySourceOfFundsDescription:D,companySubIndustry:O?.selectedOption??"",countriesOfOperations:w?.selectedOptions.map(J=>J.length===2?J:ze(J))??[],purposeOfAccount:q?.selectedOption??"",purposeOfAccountDescription:z,regulatedStatus:X??"",regulatedStatusDescription:Y,transactionVolume:Q?.selectedOption??"",transactionVolumeDescription:I,usNexus:F,usNexusTypes:se?.selectedOptions??[]},pe={userId:U,firstName:m.firstName,lastName:m.lastName,email:E,syncToken:S};t(qe({companyDetails:R,primaryContactDetails:pe}))},onAddressClick:(e,i)=>{const d=et(k,e,i),p=N(h.state?.pathnameStackToGoBack,h.pathname);l(d,{state:{pathnameStackToGoBack:p}})},onRegisteredAddressClick:(e,i)=>{const d=et(k,e,i),p=N(h.state?.pathnameStackToGoBack,h.pathname);l(d,{state:{pathnameStackToGoBack:p}})},onUpdateCustomerView:(e,i,d)=>{t(ln(n,!1,i,d,e))},onAddressEditHandler:e=>{if(e!=null){const i=ht(e);t(it({addressType:"subscription_billing_address",addressToCreate:i}))}},onSkipSetupClick:()=>{const e=N(h.state?.pathnameStackToGoBack,h.pathname);t(ct(n,!1,!1)),l("./activation",{state:{pathnameStackToGoBack:e}})},onUpdateStep:e=>{t(st({step:e}))},onUpdateSubStep:e=>{t(un({subStep:e}))},onZeniLogoClick:()=>{c.toggle()},handleLogOutClick:()=>{const e=N(h.state?.pathnameStackToGoBack,h.pathname);l("/signout",{replace:!0,state:{pathnameStackToGoBack:e,message:"logout"}})},handleCockpitClick:()=>{window.open("/cockpit")},handleCreateCardSetupIntent:e=>{t(ot(e))},handleConfirmCardSetupIntent:e=>{t(dn(e))},updateCardPaymentModalState:e=>{t(ue({isCardPaymentPopupOpen:e}))},handleAddCardPaymentSource:(e,i,d)=>{t(cn(e,i,d))},handleFetchPaymentSources:()=>{t(be())},resetCardPaymentViewState:()=>{t(rn())},handleResetCardPaymentErrorStatuses:()=>{t(sn())},redirectToProductSuitePage:()=>{const e=N(h.state?.pathnameStackToGoBack,h.pathname);l(`/${k}/onboarding/thankyou`,{state:{pathnameStackToGoBack:e,message:"OnboardingThankyou"},replace:!0})},onAcknowledgeAiFinanceTeam:()=>{n!=null&&t(on(n))},onIdentityDocumentUploadedForAutofill:e=>{if(n==null)return;const i=nn(e.documentType);i!=null&&t(an({target:"onboarding",companyId:n,officerType:e.officerType,fileId:e.fileId,documentType:i}))},onCompanyDocumentUploadedForAutofill:e=>{n!=null&&t(tn({target:"onboarding",companyId:n,fileId:e.fileId,documentType:e.documentType}))}}})(_t),ce=({taxCFOCustomer:t=!1,isOnAddressPage:s=!1,appContent:n})=>{const o=Ce(),c=ke(),l=H(),h=Et(),k=_e(),[e,i]=u.useState(!1),[d,p]=u.useState(!1),[A,r]=u.useState(!1),{tenantEmailDomain:g}=Ie(),_=xe(),{useFeatureGate:E}=Ae(),{isFeatureEnabled:m}=E(M.isDebitCardFeatureEnabled),U=bt("/:tenantEmailDomain/onboarding")!==null&&c.search?.includes("code"),S=x(f=>f.onboardingCustomerViewState.fetchState),P=x(f=>f.onboardingCustomerViewState.currentStep),V=x(f=>f.onboardingCustomerViewState.uiState),y=x(f=>W(f)),b=x(f=>f.userRoleConfigState.fetchState),v=x(f=>f.cardPaymentViewState),B=Ne(v.addCardPaymentSourceStatus.fetchState),D=v.addCardPaymentSourceStatus.fetchState,{code:O,realmId:w,state:q}=An(c.search),z=y.externalConnections?.accounting[0],X=z?.connectionType,Y=z?.connectionName,Q=z?.connectionId??"",I=$.getSignedInUser()?.userId??"";u.useEffect(()=>{d||(p(!0),l(be()))},[d,l]),u.useEffect(()=>{A||(ot(["card"]),r(!0))},[A]),u.useEffect(()=>{B==="In-Progress"&&D==="Completed"&&l(be())},[B,D]),u.useEffect(()=>{vn(O,w,q,Q,I)===!0&&y.externalConnections?.saveConnectionState!=="In-Progress"&&S==="Completed"&&(l(Nt(y.tenantId,{connection_type:X??"accounting",connection_name:Y??"quickbooks_online",authorization_code:O,realm_id:w,connection_id:Q,user_id:I},$t(window.location.origin+"/onboarding/auth"))),G.trackOnboardingSaveQBOConnection(w,Q),o(c.pathname))},[O,w,q,c.pathname,S]),u.useEffect(()=>{oe.isInitiated===!1&&S==="Completed"&&oe.init("/onboarding/auth",y.tenantEmailDomain)},[S]);const F=y.companyId??$.getSignedInUserTenant(g)?.companyId,se=le(y?.userRole??[]),R=x(f=>Te(f,F));u.useEffect(()=>{e||S!=="Not-Started"||F==null||(i(!0),l(Gt(F,!0,!U)))},[e,S,F]),u.useEffect(()=>{y.externalConnections?.saveConnectionState!=="Completed"&&y.externalConnections?.saveConnectionState!=="Error"||!V.isQBOPopupOpen||P!=="connect_ledger"||l(ue({isQBOPopupOpen:!1}))},[y.externalConnections?.saveConnectionState]),u.useEffect(()=>{S==="Completed"&&U&&(l(st({step:"connect_ledger"})),l(ue({isQBOPopupOpen:!0})))},[U,S]),u.useEffect(()=>{b==="Not-Started"&&l(zt(!0))},[b,l]);const pe=Ne(R.companyDetailsLocalData?.addressStatus);u.useEffect(()=>{R.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&R.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&pe==null&&l(it({addressType:"company_registered_address",addressToCreate:R.companyDetailsLocalData?.addressStatus?.addressToCreate}))},[R.companyDetailsLocalData?.addressStatus?.addressToCreate,R.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate]);const J=R.isInterimEmailSent,Pe=$.getSignedInUser();if(Pe==null)throw Error("Can't access onboarding flow without signing in...");const dt=ve(m,y),ut=Oe(y),De=y.company?.companyOnboardingInfo.isOnboardingCompleted,Fe=f=>f.trackPageLoaded(de.Event.onboardingPage),je=y.productSettings.isOtherProductsEnabled,lt=y.productSettings.isTreasuryEnabled,Ue=jn({tenantEmailDomain:g??"",signedInUserEmail:Pe.userEmail??"",companyId:F}),Be=(({companyId:f})=>{const L=H(),ie=x(T=>T.onboardingCustomerViewState?.aiAgentsActivation),ee=x(T=>W(T).company?.companyOnboardingInfo?.onboardingInfo?.onboardingAiActivationInfo?.isOnboardingAiActivationViewed??!1),me=u.useCallback(()=>{L(Dt())},[L]);u.useEffect(()=>{me()},[me]);const Ve=u.useCallback(()=>{f==null||f===""||ee||L(Ft(f))},[f,ee,L]),pt=u.useMemo(()=>{if(f==null||f==="")return[];const T=`private-encrypted-${f}`;return[`${T}.ledger-ingestion.counts-updated`,`${T}.ai-agents-activation.phase-changed`]},[f]),mt=u.useCallback((T,te)=>{if(te==null||typeof te!="object")return;const C=te;if(T!=="ledger-ingestion.counts-updated"){if(T==="ai-agents-activation.phase-changed"){const re=typeof C.phase_key=="string"?C.phase_key:typeof C.key=="string"?C.key:"",Z=typeof C.status=="string"?C.status:"idle";if(re==="")return;L(Ut({key:re,status:Z==="starting"||Z==="building"||Z==="ready"?Z:"idle",startedAt:typeof C.started_at=="string"?C.started_at:void 0,completedAt:typeof C.completed_at=="string"?C.completed_at:void 0}))}}else L(jt({customerCount:typeof C.customer_count=="number"?C.customer_count:void 0,glAccountCount:typeof C.gl_account_count=="number"?C.gl_account_count:void 0,targetTransactionCount:typeof C.target_transaction_count=="number"?C.target_transaction_count:void 0,transactionCount:typeof C.transaction_count=="number"?C.transaction_count:void 0,vendorCount:typeof C.vendor_count=="number"?C.vendor_count:void 0}))},[L]);return Tn({events:pt,onEvent:mt,onSubscribed:me}),u.useMemo(()=>{const T=ie?.phases??[],te=Ze(T,fe),C=Ze(T,ye),re=He(T,fe),Z=He(T,ye),Re=T.some(yt=>yt.status!=="idle"),ne=!ee&&!Re,Le=ee&&!Re,gt=Le?fe.map(()=>"building"):te,ft=Le?ye.map(()=>"building"):C;return{ledgerRowStatuses:ne?void 0:gt,backgroundRowStatuses:ne?void 0:ft,showLedgerReadyInLabel:ne?void 0:re,showBackgroundReadyInLabel:ne?void 0:Z,forceContinueEnabled:!ne||void 0,counts:ie?.counts,onContinueClicked:Ve}},[ie?.phases,ie?.counts,ee,Ve])})({companyId:F});if(De===!0){if(!je)return lt?a.jsx(j,{to:"../../treasury"}):dt?a.jsx(j,{to:"../../checking"}):ut?a.jsx(j,{to:"../../cards"}):a.jsx(j,{to:"../../dashboard"});const f=R.updateStatus.fetchState==="In-Progress";if(je&&!f)return t?a.jsxs(We,{children:[a.jsx(ae,{analytics:G,onLoad:L=>Fe(L)}),a.jsx(Ye,{navigate:o,location:c,companyId:F,currentTenant:y,isAdmin:se,isOnAddressPage:s,themeState:k,googleAPIKey:Se.googleMapsAPIKey,integrationsSectionProps:Ue,aiAgentsActivationProps:Be}),n!=null?a.jsx(Xe,{windowSize:h,skipLegacyDrawerOffset:s&&y.productSettings.isOtherProductsEnabled!==!0,children:n}):null]}):a.jsx(j,{to:"../../onboarding/thankyou"})}else if(De===!1&&_?.loggedInUserRoleMap!=null)return J===!0?a.jsx(j,{to:"../../onboarding/thankyou"}):a.jsxs(We,{children:[a.jsx(ae,{analytics:G,onLoad:f=>Fe(f)}),a.jsx(Ye,{navigate:o,location:c,companyId:F,currentTenant:y,isAdmin:se,isOnAddressPage:s,themeState:k,googleAPIKey:Se.googleMapsAPIKey,integrationsSectionProps:Ue,aiAgentsActivationProps:Be}),n!=null?a.jsx(Xe,{windowSize:h,skipLegacyDrawerOffset:s&&y.productSettings.isOtherProductsEnabled!==!0,children:n}):null]});return null},he="external_integrations",jn=({tenantEmailDomain:t,signedInUserEmail:s,companyId:n})=>{const o=H();On();const{plaidAccounts:c,onAddPlaidAccount:l}=(({companyId:r})=>{const g=H(),_=x(b=>b.plaidAccountViewState.external_account.plaidConnectionDetails.link_external_account),E=x(b=>Bt(b.paymentAccountState)),m=u.useRef(!1);u.useEffect(()=>{g(Vt())},[g]);const U=u.useCallback(b=>{g(Rt(b,r,"external_account",void 0,"link_external_account")),m.current=!1},[g,r]),S=u.useCallback(()=>{m.current=!1},[]),{open:P,ready:V}=wn({token:_.linkToken??null,onSuccess:U,onExit:S});u.useEffect(()=>{m.current&&V&&(P(),m.current=!1)},[V,P]);const y=u.useCallback(()=>{m.current=!0,g(Lt("external_account","link_external_account"))},[g]);return{plaidAccounts:u.useMemo(()=>E.map(b=>{return{accountId:b.paymentAccountId,name:b.institutionDetails?.institutionName??b.accountName,mask:b.accountLast4Digits,balanceFormatted:(v=b.balances?.current?.amount,B=b.balances?.current?.currencySymbol,v==null?"":`${B??"$"}${v.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`),isActive:Fn.has(b.providerVerificationStatus?.code??"")};var v,B}),[E]),onAddPlaidAccount:y}})({companyId:n}),h=x(r=>W(r)),k=x(r=>r.tenantState.fetchState),e=x(r=>Qt(r,n)),i=x(r=>Kt(r,he)),d=u.useMemo(()=>new Set(i.map(r=>r.additionalInfo).filter(r=>r!=null)),[i]),p=h.tenantId,A=le(h.userRole??[]);return u.useEffect(()=>{o(qt(he))},[o]),u.useMemo(()=>({isAdmin:A,integrationsView:e,isLoading:k==="In-Progress",notifyMeRegisteredSlugs:d,saveChargeBeeState:e.externalConnections?.saveAPIKeyConnectionState??"Not-Started",saveChargeBeeError:e.externalConnections?.saveAPIKeyConnectionError?.message,saveHubSpotState:e.externalConnections?.saveOAuthConnectionState??"Not-Started",saveHubSpotError:e.externalConnections?.saveOAuthConnectionError?.message,saveConnectorCredentialsStateBySlug:e.externalConnections?.saveConnectorCredentialsStateBySlug??{},saveConnectorCredentialsErrorBySlug:Object.fromEntries(Object.entries(e.externalConnections?.saveConnectorCredentialsErrorBySlug??{}).map(([r,g])=>[r,g?.message])),deleteConnectionState:e.externalConnections?.deleteConnectionState??"Not-Started",deleteConnectionError:e.externalConnections?.deleteConnectionError?.message,onConnectGmail:()=>{o(Qe(p,"gmail",Je()))},onConnectOutlook:()=>{o(Qe(p,"outlook",Je()))},onConnectHubSpot:(r,g)=>{const _=e.externalConnections?.revenue?.find(m=>m.connectionName==="hubspot")?.connectionId;if(_==null)return;const E=`${window.location.origin}/oauth/hubspot/callback`;sessionStorage.setItem("hubspot_oauth_pending",JSON.stringify({client_id:r,client_secret:g,connection_id:_,redirect_uri:E,tenant_id:p})),window.location.href=`https://app.hubspot.com/oauth/authorize?client_id=${encodeURIComponent(r)}&scope=${encodeURIComponent("oauth crm.objects.deals.read crm.objects.owners.read")}&redirect_uri=${encodeURIComponent(E)}`},onDisconnect:(r,g)=>{o(Jt(p,r,ge(g)))},onNotifyMe:r=>{o(Yt(he,r,s))},onReconnectQBO:()=>{oe.init("/onboarding/auth",t),oe.handleClick()},onRefreshClick:()=>{e.integrations.refreshQBO.fetchState!=="In-Progress"&&o(Xt())},onSaveChargeBeeCredentials:(r,g)=>{const _=e.externalConnections?.revenue?.find(E=>E.connectionName==="chargebee")?.connectionId;_!=null&&o(Ht(p,_,ge("revenue"),Wt("chargebee"),{api_key:r,site:g}))},onSaveConnectorCredentials:r=>{o(Zt(p,ge("payments"),r))},plaidAccounts:c,onAddPlaidAccount:l}),[A,e,k,d,p,s,t,o,c,l])};function Je(){const t=new URL(window.location.href);return t.searchParams.set("onboarding_step","connect_data_source"),t.toString()}function et(t,s,n){let o=`/${t}/onboarding/address`;return o=n!=null?o.concat(`/edit/${s}/${encodeURIComponent(n)}`):o.concat(`/new/${s}`),o}const tt=we.div`
|
|
27
|
-
display: flex;
|
|
28
|
-
height: 100vh;
|
|
29
|
-
background-color: ${t=>t.theme.colors.grey4};
|
|
30
|
-
`,nt=Ee(function(t,s){const{companyId:n,currentTenant:o}=s,c=Te(t,n),l=rt(t);return{hasVerifiedBankAccount:(c.paymentAccount?.providerVerificationStatus?.code?.includes("verified")??!1)||(l.bankAccountsList[0]?.providerVerificationStatus?.code?.includes("verified")??!1),isDisabled:le(o?.userRole??[])&&c.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",signedInUser:$.getSignedInUser(),currentTenant:o,meetingUrl:"https://meetings.hubspot.com/niharn/zeni-onboarding-overview?embed=true"}},function(t,s){const{currentTenant:n,themeState:o,navigate:c,location:l}=s,{tenantEmailDomain:h}=n;return{onZeniLogoClick:()=>{o.toggle()},handleLogOutClick:()=>{const k=N(l.state?.pathnameStackToGoBack,l.pathname);c("/signout",{replace:!0,state:{pathnameStackToGoBack:k,message:"logout"}})},handleCockpitClick:()=>{window.open("/cockpit")},handleUpdatePaymentAddressDetailClick:()=>{const k=N(l.state?.pathnameStackToGoBack,l.pathname);c(`/${h}/onboarding/billing/edit`,{state:{pathnameStackToGoBack:k,message:"UpdatePaymentAddressDetail"}})}}})(At),Un=()=>{const t=Ce(),s=H(),n=ke(),o=_e(),{useFeatureGate:c}=Ae(),{isFeatureEnabled:l}=c(M.isDebitCardFeatureEnabled),{tenantEmailDomain:h}=Ie(),k=xe(),[e,i]=u.useState(!1);u.useEffect(()=>{e===!1&&n.state?.message==="OnboardingThankyou"&&i(!0)},[n.state]);const d=x(m=>W(m)),p=d.productSettings.isOtherProductsEnabled;u.useEffect(()=>{s(ct(A,!1,!p))},[]);const A=d.companyId??$.getSignedInUserTenant(h)?.companyId;if(k.loggedInUser==null)throw Error("Can't access onboarding flow without signing in...");const r=ve(l,d),g=Oe(d),_=x(m=>m.onboardingCustomerViewState.updateStatus.fetchState),E=d.company?.companyOnboardingInfo.isOnboardingCompleted;if(E!==!0||p)return _==="Completed"&&E===!0&&p&&k?.loggedInUserRoleMap!=null?a.jsxs(tt,{children:[a.jsx(ae,{analytics:G,onLoad:m=>{m.trackPageLoaded(de.Event.onboardingLandingPage,"Onboarding",xn(d.productSettings))}}),a.jsx(nt,{navigate:t,showUpdatePaymentDetailButton:p,location:n,companyId:A,currentTenant:d,themeState:o,isVisitingFirstTime:e})]}):_==="Completed"&&E===!1&&k?.loggedInUserRoleMap!=null?a.jsxs(tt,{children:[a.jsx(ae,{analytics:G,onLoad:m=>{m.trackPageLoaded(de.Event.onboardingInterimPage)}}),a.jsx(nt,{navigate:t,showUpdatePaymentDetailButton:p,location:n,companyId:A,currentTenant:d,themeState:o,isVisitingFirstTime:e})]}):a.jsx(at,{});{const m={pathnameStackToGoBack:n.state?.pathnameStackToGoBack,message:"activation"};return r?a.jsx(j,{to:"../../checking",state:m,replace:!0}):g?a.jsx(j,{to:"../../cards",state:m,replace:!0}):a.jsx(j,{to:"../../dashboard",state:m,replace:!0})}};function ca(){return a.jsxs(Ct,{children:[a.jsx(K,{path:"/",element:a.jsx(ce,{})}),a.jsx(K,{path:"/billing/edit",element:a.jsx(ce,{taxCFOCustomer:!0})}),a.jsx(K,{path:"/thankyou",element:a.jsx(Un,{})}),a.jsx(K,{path:"/activation",element:a.jsx(Dn,{})}),a.jsx(K,{path:"/address/edit/:addressType/:addressId",element:a.jsx(ce,{isOnAddressPage:!0,appContent:a.jsx(Me,{})})}),a.jsx(K,{path:"/address/new/:addressType",element:a.jsx(ce,{isOnAddressPage:!0,appContent:a.jsx(Me,{})})}),a.jsx(K,{path:"*",element:a.jsx(St,{})})]})}export{ca as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./liveblocks-UQZFqaDN.js";import{h as n,n as e}from"./core-Ctjv24YM.js";import{H as i}from"./index-B2_u2l5p.js";import"./mui-DU4JyJ-_.js";import"./sentry-C0E1AQIe.js";import"./zeni-epic-state-ym9j-rvL.js";import"./recharts-RL5R0Iqz.js";import"./analytics-BlxwN6GD.js";import"./plaid-Dtkg2fMC.js";import"./dnd-DdE4ICzz.js";import"./stripe-DMRn4zHo.js";import"./lottie-h9wdJ9gi.js";import"./lexical-z-P2V9ug.js";import"./pdf-BK4Cbxeo.js";import"./utils-hcCBORos.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]="0ab14885-0bd8-4d23-8ea3-76b5f5ab5fbf",o._sentryDebugIdIdentifier="sentry-dbid-0ab14885-0bd8-4d23-8ea3-76b5f5ab5fbf")}catch{}})();const a=e(null,function(o,t){return{onGoBack:()=>{t.navigate(-1)},onGoHome:()=>{t.navigate("/")}}})(i);function _(){const o=n();return r.jsx(a,{navigate:o})}export{_ as default};
|