@zeniai/web-app-ui 5.2.9-dev → 5.2.10-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-HIo_2eUA.js +1 -0
- package/dist/assets/{AddressScreen-CS_7zy0w.js → AddressScreen-DJ_3MnK6.js} +1 -1
- package/dist/assets/{AiCfoScreen-iW6cLrky.js → AiCfoScreen-CtS-iR-f.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-CX584cho.js → BillPayApprovalRoutes-Bf6L6XeY.js} +1 -1
- package/dist/assets/{BillPayRoutes-CZ_W5Z9a.js → BillPayRoutes-D7_mnWYx.js} +1 -1
- package/dist/assets/{BusinessVerificationPageScreen-CyYTkSJk.js → BusinessVerificationPageScreen-qeMJ0wCE.js} +1 -1
- package/dist/assets/{CardsAiCfoScreen-Do2CM9NI.js → CardsAiCfoScreen-Y52Gs7uN.js} +1 -1
- package/dist/assets/{ChargeCardRoutes-Bw9A89pe.js → ChargeCardRoutes-DSQ6FUXi.js} +1 -1
- package/dist/assets/{CompanyPassportScreen-Cfn_9183.js → CompanyPassportScreen-75Cla0FO.js} +1 -1
- package/dist/assets/{ConnectionAuthScreen-DNfbV6Cs.js → ConnectionAuthScreen-cnWRAMKv.js} +1 -1
- package/dist/assets/CustomerOnboardingAuthScreen-C2P5Y8lU.js +1 -0
- package/dist/assets/CustomerOnboardingRoutes-DwfnXRL0.js +30 -0
- package/dist/assets/{DashboardRoutes-PGKQ0Moe.js → DashboardRoutes-BcwPj7vZ.js} +1 -1
- package/dist/assets/{DefaultTenantHome-x6jalJiO.js → DefaultTenantHome-CMKnv0sU.js} +1 -1
- package/dist/assets/{DomesticWireDetailScreen-BfQ0MRPv.js → DomesticWireDetailScreen-BlXcV2fG.js} +1 -1
- package/dist/assets/{DrawerScreen-ng7Vkepm.js → DrawerScreen-BoPFU7SR.js} +1 -1
- package/dist/assets/{EntityDetailRoutes-BZgvjOQf.js → EntityDetailRoutes-DWpIcLjm.js} +1 -1
- package/dist/assets/{ExpenseAutomationRoutes-DhN19M7c.js → ExpenseAutomationRoutes-BBke9yOS.js} +1 -1
- package/dist/assets/{FeaturePreviewScreen-BTGR97Fd.js → FeaturePreviewScreen-D6WKjJlU.js} +1 -1
- package/dist/assets/{HubSpotOAuthCallbackScreen-BTBofz2n.js → HubSpotOAuthCallbackScreen-Cn8xbz7K.js} +1 -1
- package/dist/assets/{MagicLinkRoutes-CVvSbDRe.js → MagicLinkRoutes-zQH9Mi2i.js} +1 -1
- package/dist/assets/{MagicLinkSignInScreen-BSaTrOoV.js → MagicLinkSignInScreen-Cw5ZdWiT.js} +1 -1
- package/dist/assets/{MobileAppDrawer-CrYdORTa.js → MobileAppDrawer-BNt5yYB_.js} +1 -1
- package/dist/assets/NotFoundScreen-bb3TXXqm.js +1 -0
- package/dist/assets/{NotificationRoutes-CpnG1o79.js → NotificationRoutes-DhdleHX2.js} +1 -1
- package/dist/assets/{OAuthConsentScreen-UW-i7iNJ.js → OAuthConsentScreen-DxNCNGlz.js} +1 -1
- package/dist/assets/{PandLWithForecastRoutes-BhJsKt5l.js → PandLWithForecastRoutes-BAYF91yK.js} +1 -1
- package/dist/assets/{PeopleRoutes-C2a-KGIZ.js → PeopleRoutes-0EvPepF5.js} +1 -1
- package/dist/assets/{PerformanceRoutes-DUsD3MMO.js → PerformanceRoutes-BaMTYMQc.js} +1 -1
- package/dist/assets/{Preview-Cj3JppRF.js → Preview-DmBwmeMg.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-6SpIc2GW.js → QBOConnectionScreen-DdzPLFVI.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRoutes-uO-QkUb5.js → ReimbursementApprovalRoutes-DYcp3ZQI.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-h4Xa7G88.js → ReimbursementApprovalRuleDetailScreen-BpTjuhRk.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-DOnoVy-K.js → ReimbursementRoutes-lwHd6juR.js} +1 -1
- package/dist/assets/{ReportsRoutes-D8ZGwQbw.js → ReportsRoutes-j4l-ppVW.js} +1 -1
- package/dist/assets/{RewardsRoutes-WlT7olAX.js → RewardsRoutes-8P94sTS8.js} +1 -1
- package/dist/assets/{ScreenRoutes-BfH4klTS.js → ScreenRoutes-CvmRrQkp.js} +2 -2
- package/dist/assets/{SettingsRoutes-LY7c8epf.js → SettingsRoutes-DmlfuJR1.js} +1 -1
- package/dist/assets/{SetupPagesScreen-B6MCIymI.js → SetupPagesScreen-CFSy9MGO.js} +1 -1
- package/dist/assets/{SignInScreen-By7D8uvx.js → SignInScreen-820s6zG2.js} +1 -1
- package/dist/assets/{SignOutScreen-CsyzSdg-.js → SignOutScreen-BltCHGf2.js} +1 -1
- package/dist/assets/{TaskListScreen-C1omaWqK.js → TaskListScreen-CptFrynw.js} +1 -1
- package/dist/assets/{TaskRoutes-6hwT2MgW.js → TaskRoutes-BTKKQ13t.js} +1 -1
- package/dist/assets/{TransactionDetailRoutes-CtLhxWox.js → TransactionDetailRoutes-CkCRF4w1.js} +1 -1
- package/dist/assets/{TransactionDetailScreen-Brema_7y.js → TransactionDetailScreen-Ba0XAZeZ.js} +1 -1
- package/dist/assets/{TransactionListRoutes-huZThwT8.js → TransactionListRoutes-SiAILtLj.js} +1 -1
- package/dist/assets/{TreasuryRoutes-B6pwb5CA.js → TreasuryRoutes-B0G2PpGc.js} +1 -1
- package/dist/assets/{VendorsRoutes-BvqnyUHV.js → VendorsRoutes-B-ytLkC0.js} +1 -1
- package/dist/assets/{WiseConfirmationScreen-BZm8dkwf.js → WiseConfirmationScreen-CW8LdE_o.js} +1 -1
- package/dist/assets/{ZeniAccountRoutes-BPo-hTc9.js → ZeniAccountRoutes-BliWhnxQ.js} +1 -1
- package/dist/assets/{ZeniAccountStatementScreen-DBY93QB3.js → ZeniAccountStatementScreen-cpvhoHZk.js} +1 -1
- package/dist/assets/{accountMappingHelper-F9iVvIst.js → accountMappingHelper-Cu47aLLw.js} +1 -1
- package/dist/assets/{analytics-CzAweyQD.js → analytics-CW1zdFm7.js} +1 -1
- package/dist/assets/{analyticsHelper-3Gu9cPjm.js → analyticsHelper-CPMPgJbh.js} +1 -1
- package/dist/assets/{core-DGp_s-v5.js → core-i8NP-_wJ.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-B1HNc06R.js → decodeURIComponentSafe-CWtVVOeC.js} +1 -1
- package/dist/assets/{dnd-Dv83AsVV.js → dnd-DslcPrv3.js} +1 -1
- package/dist/assets/{empty-CwBt9OsO.js → empty-B7bQqDzY.js} +1 -1
- package/dist/assets/{empty-Bs3ZKbS5.js → empty-D20MLmd1.js} +1 -1
- package/dist/assets/{emptyVideoElement-Ce3Auj8x.js → emptyVideoElement-ChcO5u-B.js} +1 -1
- package/dist/assets/{epic-B473FHIG.js → epic-Dtt0bmiB.js} +1 -1
- package/dist/assets/{getLocaleForTenant-DQyjLBRZ.js → getLocaleForTenant-KhVEJ6R2.js} +1 -1
- package/dist/assets/{index-CLXVBUN9.js → index-B9LK_TbN.js} +1 -1
- package/dist/assets/{index-CklnO7MC.js → index-B9Sgv9NR.js} +1 -1
- package/dist/assets/{index-D20OqJJX.js → index-BSHXxZmQ.js} +1 -1
- package/dist/assets/{index-TundQtwk.js → index-D-IZDKX8.js} +1 -1
- package/dist/assets/{index-Du4bjclL.js → index-D4jZKafy.js} +2 -2
- package/dist/assets/{index-B7XJe0Nt.js → index-DdxkZqcW.js} +1 -1
- package/dist/assets/{index-s0HleIMs.js → index-kv2B65Vd.js} +1431 -1431
- package/dist/assets/{index-BwhVclXq.js → index-xQ6QZSsg.js} +1 -1
- package/dist/assets/{lexical-BI9o6Rzd.js → lexical-Ii9S5yIP.js} +1 -1
- package/dist/assets/{liveblocks-BQ1kyMTn.js → liveblocks-DcIzwukV.js} +1 -1
- package/dist/assets/{lottie-CBfI26wD.js → lottie-DdHGU3nu.js} +1 -1
- package/dist/assets/{mui-BKDz48_f.js → mui-BiZrYGuH.js} +1 -1
- package/dist/assets/{pathToGoBack-DkAc2FWv.js → pathToGoBack-XkSNImKf.js} +1 -1
- package/dist/assets/{pdf-CLZhSauj.js → pdf-DmI-yqFa.js} +3 -3
- package/dist/assets/{pdf-lib-KHPbWA1x.js → pdf-lib-COLnix2R.js} +1 -1
- package/dist/assets/{plaid-FOcqk85t.js → plaid-BZbWifVR.js} +1 -1
- package/dist/assets/{pusher-C_fUl_CW.js → pusher-3N9hZ7vw.js} +1 -1
- package/dist/assets/{react-CE5DgNhh.js → react-B3_kiFrP.js} +1 -1
- package/dist/assets/{react-DXdWsARm.js → react-BgYvl2we.js} +1 -1
- package/dist/assets/{react-BNvttsYS.js → react-C0xHgXbx.js} +1 -1
- package/dist/assets/{react-Dm2rgxL7.js → react-CbvPaaO5.js} +1 -1
- package/dist/assets/{react-Ge7IlhvK.js → react-DA_gDnq5.js} +1 -1
- package/dist/assets/{react-Lt0NhAvg.js → react-DC5TLH0I.js} +1 -1
- package/dist/assets/{recharts-om305-Co.js → recharts-CqPHpbL0.js} +1 -1
- package/dist/assets/{routePaths-BSw_NTbY.js → routePaths-wA_3WBh7.js} +1 -1
- package/dist/assets/{sentry-CRnwGvtj.js → sentry-DmARXi_b.js} +1 -1
- package/dist/assets/{url-BEGOiM2S.js → url-1CKnXXri.js} +1 -1
- package/dist/assets/{url-BFXW4vx0.js → url-DkswVAuM.js} +1 -1
- package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-QHUuBb0J.js → useAiCfoDashboardSuggestedQuestionsChips-SoQlWR_F.js} +1 -1
- package/dist/assets/{useAskAiCfoHostNavButtonProps-Bh9PS9wx.js → useAskAiCfoHostNavButtonProps-C6Id_vuu.js} +1 -1
- package/dist/assets/{useCashManagementBanner-DTaGzioM.js → useCashManagementBanner-CUuZI_9N.js} +1 -1
- package/dist/assets/{useChargeCardPusherEvents-CtddpIll.js → useChargeCardPusherEvents-CDZzo60a.js} +1 -1
- package/dist/assets/{useDeviceId-CunMxRLL.js → useDeviceId-Rek-4R2r.js} +1 -1
- package/dist/assets/{useEmailConnectResultRefresh-BBoXuKk_.js → useEmailConnectResultRefresh-BV3YRmKJ.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-CwFv9Eqv.js → useInitialThreadRequest-CtKR3SPq.js} +1 -1
- package/dist/assets/{utils-BJ3kLhBy.js → utils-Cahat5el.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-D7VzfbTv.js → withTransactionSidePanel-D_vELex0.js} +1 -1
- package/dist/assets/{zeni-epic-state-Dk4VKziD.js → zeni-epic-state-C9sevClC.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/AddressRoutes-q8yYrEbz.js +0 -1
- package/dist/assets/CustomerOnboardingAuthScreen-B_3t9Fai.js +0 -1
- package/dist/assets/CustomerOnboardingRoutes-CYvJ6SV5.js +0 -30
- package/dist/assets/NotFoundScreen-De_OVTcT.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-kv2B65Vd.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-DmARXi_b.js"><link rel="modulepreload" crossorigin href="/assets/core-i8NP-_wJ.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-C9sevClC.js"><link rel="modulepreload" crossorigin href="/assets/mui-BiZrYGuH.js"><link rel="modulepreload" crossorigin href="/assets/analytics-CW1zdFm7.js"><link rel="modulepreload" crossorigin href="/assets/utils-Cahat5el.js"><link rel="stylesheet" crossorigin href="/assets/index-Czu7h9lW.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.2.
|
|
3
|
+
"version": "5.2.10-dev",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/**/*"
|
|
6
6
|
],
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"@sentry/core": "^9.42.1",
|
|
28
28
|
"@sentry/react": "^9.42.1",
|
|
29
29
|
"@stripe/stripe-js": "^4.4.0",
|
|
30
|
-
"@zeniai/client-analytics": "2.0.
|
|
30
|
+
"@zeniai/client-analytics": "2.0.40",
|
|
31
31
|
"@zeniai/client-epic-state": "5.1.36",
|
|
32
|
-
"@zeniai/web-components": "4.2.
|
|
32
|
+
"@zeniai/web-components": "4.2.34",
|
|
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-BQ1kyMTn.js";import{A as d}from"./AddressScreen-CS_7zy0w.js";import i from"./NotFoundScreen-De_OVTcT.js";import"./sentry-CRnwGvtj.js";import{o as s,p as r}from"./core-DGp_s-v5.js";import"./zeni-epic-state-Dk4VKziD.js";import"./recharts-om305-Co.js";import"./index-s0HleIMs.js";import"./mui-BKDz48_f.js";import"./analytics-CzAweyQD.js";import"./plaid-FOcqk85t.js";import"./dnd-Dv83AsVV.js";import"./stripe-cKAAJElX.js";import"./lottie-CBfI26wD.js";import"./lexical-BI9o6Rzd.js";import"./pdf-CLZhSauj.js";import"./utils-BJ3kLhBy.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-BQ1kyMTn.js";import{z as n}from"./index-s0HleIMs.js";import{g as d}from"./QBOConnectionScreen-6SpIc2GW.js";import"./sentry-CRnwGvtj.js";import{g as p,N as s}from"./core-DGp_s-v5.js";import"./zeni-epic-state-Dk4VKziD.js";import"./recharts-om305-Co.js";import"./mui-BKDz48_f.js";import"./analytics-CzAweyQD.js";import"./plaid-FOcqk85t.js";import"./dnd-Dv83AsVV.js";import"./stripe-cKAAJElX.js";import"./lottie-CBfI26wD.js";import"./lexical-BI9o6Rzd.js";import"./pdf-CLZhSauj.js";import"./utils-BJ3kLhBy.js";import"./empty-CwBt9OsO.js";import"./pdf-lib-KHPbWA1x.js";import"./index-BwhVclXq.js";import"./url-BFXW4vx0.js";import"./index-D20OqJJX.js";import"./decodeURIComponentSafe-B1HNc06R.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-BQ1kyMTn.js";import{t as ht,A as Ve}from"./AddressScreen-CS_7zy0w.js";import St from"./NotFoundScreen-De_OVTcT.js";import{a as d}from"./sentry-CRnwGvtj.js";import{h as be,g as Ie,u as ae,i as ke,j as k,N as B,l as Ct,n as tt,o as bt,p as H}from"./core-DGp_s-v5.js";import{eW as X,fD as _e,fB as ve,bs as It,fR as kt,bS as _t,oa as vt,tz as Ot,tC as Tt,N6 as wt,N7 as xt,kc as he,kf as nt,MD as Et,bZ as At,c7 as ue,u1 as Oe,tO as Pt,N8 as de,u2 as at,Kw as Dt,lg as ot,N9 as jt,Na as Ft,rx as Bt,hr as Nt,Mv as me,ho as Vt,Mw as Ut,ye as Rt,rB as Lt,hg as $t,hj as Ue,Nb as st,Nc as Gt,Eh as Mt,Nd as Qt,El as zt,tF as Kt,Ne as qt,Nf as Ht,ka as Zt,kd as Jt,ue as Wt,tQ as it,u0 as Xt,bE as Re,cA as Yt,ud as Le,rQ as en,rE as tn,l8 as nn,gi as an,gh as on,gg as sn,Ng as rn,tI as cn,uf as dn,ui as un,ul as ln,ur as pn,cZ as mn}from"./zeni-epic-state-Dk4VKziD.js";import{z as R,A as Te,X as Z,M as gn,s as z,_ as oe,c as L,aq as fn,J as yn,w as rt,T as ct,ar as $e,j as Se,f as Ce,as as hn,o as Ge,at as Me,au as Sn,av as Qe,aw as Cn,ax as bn}from"./index-s0HleIMs.js";import{n as we}from"./mui-BKDz48_f.js";import{g as In,h as kn,q as se}from"./QBOConnectionScreen-6SpIc2GW.js";import{u as _n,a as vn}from"./useEmailConnectResultRefresh-BBoXuKk_.js";import{u as On}from"./useChargeCardPusherEvents-CtddpIll.js";import"./recharts-om305-Co.js";import"./analytics-CzAweyQD.js";import"./plaid-FOcqk85t.js";import"./dnd-Dv83AsVV.js";import"./stripe-cKAAJElX.js";import"./lottie-CBfI26wD.js";import"./lexical-BI9o6Rzd.js";import"./pdf-CLZhSauj.js";import"./utils-BJ3kLhBy.js";import"./empty-CwBt9OsO.js";import"./pdf-lib-KHPbWA1x.js";import"./index-BwhVclXq.js";import"./url-BFXW4vx0.js";import"./index-D20OqJJX.js";import"./decodeURIComponentSafe-B1HNc06R.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},u=new e.Error().stack;u&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[u]="a54f03c3-f141-4a0c-acf6-7c9cf3e19216",e._sentryDebugIdIdentifier="sentry-dbid-a54f03c3-f141-4a0c-acf6-7c9cf3e19216")}catch{}})();const ze=e=>{switch(e){case"Complete":return"yes";case"Pending Review":case"Incomplete":return"partially";default:return"no"}},Tn=()=>{const e=be(),u=Ie(),i=ae(),[o,l]=d.useState(!1),[c,y]=d.useState(!1),{tenantEmailDomain:S}=ke(),t=R.getSignedInUser(),{useFeatureGate:n}=Te(),{isFeatureEnabled:s}=n(Z.isApAgingFeatureEnabled),{isFeatureEnabled:C}=n(Z.isArAgingFeatureEnabled),{isFeatureEnabled:_}=n(Z.isReferralFeatureEnabled),{isFeatureEnabled:I}=n(Z.isExpenseAutomationEnabledV2),{isFeatureEnabled:w}=n(Z.isDebitCardFeatureEnabled),r=gn(),g=k((h=>X(h))),p=k((h=>h.onboardingCustomerViewState.fetchState)),v=g.excludedResources,T=g.companyId??R.getSignedInUserTenant(S)?.companyId;if(t==null)throw Error("Can't access onboarding flow without signing in...");const x=_e(w,g),D=ve(g),m=[],$=v?.resources?.find((h=>h.resource==="/reports/top_expenses"))==null,j=v?.resources?.find((h=>h.resource==="/reports/task_card"))==null,G=g?.userRole!=null&&It(g?.userRole),M=v?.resources?.find((h=>h.resource==="/bills"))==null&&!G,A=v?.resources?.find((h=>h.resource==="/reimbursements"))==null;$===!1&&m.push("top_expenses"),j===!1&&m.push("task_card"),M===!1&&m.push("bill_pay_card","bill_pay_promo_card"),A===!1&&m.push("reimbursement_card","reimbursement_promo_card"),m.push("zeni_accounts_promo_card","treasury_promo_card"),_===!1&&m.push("rewards_card");const F=k((h=>{const O=[];s===!1&&O.push("accounts_payable_aging"),C===!1&&O.push("accounts_receivable_aging"),O.push("zeni_accounts_promo_card","treasury_promo_card"),_===!1&&O.push("rewards_card"),r===!1&&O.push("expense_automation_card");const J=kt(h,O,t,I,r);return _t(J.reportsInOrder.map((P=>({fetchState:P.fetchState,error:P.error})))).fetchState}));d.useEffect((()=>{p!=="Completed"||o||x||D||(l(!0),i(vt(t.userId,T,g.tenantId,!0,!1,m)))}),[o,p,x,D,t,g.tenantId,i]);const K=d.useRef(!1),Q=d.useCallback((()=>{const h={pathnameStackToGoBack:z(u.state?.pathnameStackToGoBack,u.pathname),message:"activation"};e(x?"../../checking":D?"../../cards":"../../dashboard",{state:h})}),[e,u,x,D]),N=d.useCallback((()=>{K.current||(K.current=!0,Q())}),[Q]);if(d.useEffect((()=>{const h=setTimeout((()=>y(!0)),3e3);return()=>clearTimeout(h)}),[]),d.useEffect((()=>{const h=setTimeout(N,6e3);return()=>clearTimeout(h)}),[N]),d.useEffect((()=>{x||D||!c||F!=="Completed"&&F!=="Error"||N()}),[c,F,x,D,N]),p!=="Completed")return a.jsx(B,{to:"../"});const V=g.company?.companyOnboardingInfo?.onboardingInfo,q={timeSinceQuoteSign:V?.onboardingTimeSinceQuoteSigned??"",timeSinceQuoteSignInMinutes:V?.onboardingToQuoteSignMinutes??0,isKybDone:ze(V?.businessVerified?.status),isKycDone:ze(V?.identityVerified?.status),paymentType:"",paymentSource:"",qboConnectionSource:V?.accountingConnectionCreationMode??""};return a.jsxs(a.Fragment,{children:[a.jsx(oe,{analytics:L,onLoad:h=>h.trackOnboardingDashboardActivation(q)}),a.jsx(fn,{show:!0,onComplete:N})]})},ge=["reading_books","finance_graph","reconciliation","cfo_foundation"],fe=["llm_fine_tuning","rag_knowledge_graph","personalized_context"],Ke=(e,u)=>{const i=new Map(e.map((o=>[o.key,o])));return u.map((o=>{return l=i.get(o)?.status,l==="starting"||l==="building"?l:"idle";var l}))},qe=(e,u)=>{if(e.length===0)return!1;const i=new Map(e.map((o=>[o.key,o])));return u.every((o=>i.get(o)?.status==="ready"))},He=we.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
5
|
-
`,Ze=we.div`
|
|
6
|
-
display: flex;
|
|
7
|
-
flex-direction: column;
|
|
8
|
-
align-items: center;
|
|
9
|
-
flex: 1;
|
|
10
|
-
min-width: 0;
|
|
11
|
-
|
|
12
|
-
${e=>e.skipLegacyDrawerOffset?`
|
|
13
|
-
width: 100%;
|
|
14
|
-
padding-left: ${Ge.sp0};
|
|
15
|
-
`:`
|
|
16
|
-
min-width: calc(100% - ${Me}px);
|
|
17
|
-
padding-left: ${Me}px;
|
|
18
|
-
`}
|
|
19
|
-
|
|
20
|
-
${e=>e.theme.breakpoints.down("md")} {
|
|
21
|
-
width: 100%;
|
|
22
|
-
padding-left: ${Ge.sp0};
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
${e=>e.windowSize!=="small"?"overflow: auto;":""}
|
|
26
|
-
`,Je=tt((function(e,u){const{companyId:i,isAdmin:o,currentTenant:l,isOnAddressPage:c}=u,y=R.getSignedInUser(),S=l.tenantId,t={userId:y?.userId??"",sessionId:y?.zeniSessionId??"",tenantId:S??""},n=X(e),s=Oe(e,i),C=st(e),_=ue(l?.userRole??[])&&s.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",I=Gt(e.userRoleConfigState);return{onboardingCustomerView:s,analytics:L,isRefreshingViewInBackground:!1,isDisabled:_,companyTitles:I.companyTitles,connectedAccountProvider:n.company?.featuresActivationInfo.connectedAccountProvider??"",fileProps:{filesEndPoint:Sn.fileMicroServiceBaseUrl,authParams:t},signedInUser:R.getSignedInUser(),currentTenant:n,isAdmin:o,isOnAddressPage:c,meetingUrl:"https://meetings.hubspot.com/niharn/zeni-onboarding-overview?embed=true",cardPaymentView:C,isCardPaymentPopupOpen:!1,stripeKey:Se.stripeKey}}),(function(e,u){const{companyId:i,currentTenant:o,themeState:l,navigate:c,location:y}=u,{tenantEmailDomain:S}=o;return{onFetchLinkTokenClick:(t,n)=>{e(pn(t,n))},onEstablishConnectionClick:(t,n)=>{e(ln(t,n))},onUpdatePaymentAccountStatus:(t,n,s)=>{e(un(t,n,s))},onUpdatePaymentAccountLoginStatus:(t,n)=>{e(dn(!1,t,n))},onEstablishConnectionSuccess:()=>{e(cn(i,!0,!1))},handleOnConnectClick:()=>{L.trackOnboardingConnectQBO(),se.handleClick()},updateQBOPopupState:t=>{e(de({isQBOPopupOpen:t}))},onCompanyOfficerUpdated:t=>{const n=t.map((s=>{const{officerType:C,userId:_,name:I,email:w,ssn:r,nationalityCountryCode:g,dob:p,phone:v,syncToken:T,selectDocument:x,role:D,ownership:m,isSelectedForVerification:$,userVerificationStatus:j,fileIds:G,isPhoneVerified:M}=s;let A;return x.selectDocumentType==="driverLicense"?A="driving_license":x.selectDocumentType==="passport"?A="passport":x.selectDocumentType==="stateId"?A="id_document":x.selectDocumentType==="ssnCard"&&(A="social_security_card"),{officerType:C,userId:_,firstName:I.firstName,lastName:I.lastName,email:w,ssn:r,nationalityCountryCode:g?.selectedOption!=null?Qe(g.selectedOption):void 0,phone:v,birthday:p!=null?Re(p?.toString()):p,syncToken:T,titleAtCompany:D.selectedOption,ownershipInCompany:m,documentTypeSelectedForVerification:A,isSelectedForVerification:$,userVerificationStatus:j,fileIds:G,additionalDocumentTypesRequestedForVerification:[],additionalSubmittedDocumentsForVerificationFileIds:[],areAdditionalDocumentsRequestedForVerification:!1,areAdditionalDocumentsSubmittedForVerification:!1,isPhoneVerified:M}}));e(Le({officers:n}))},onGetOtp:(t,n)=>{e(sn(t,"CustomerOnboarding")),n!=null&&e(rn({officerType:n,phone:t}))},onResendOtp:t=>{e(on(t,"CustomerOnboarding"))},onVerifyOtp:(t,n)=>{e(an(t,n,"CustomerOnboarding"))},updateFilesEntity:t=>{e(nn({files:t}))},onDeleteFile:t=>{e(tn(t))},onEditFileName:(t,n)=>{e(en(t,n.split(".")[0]))},onCompanyDetailsChanged:t=>{const{companyDescription:n,companyIndustry:s,companyIndustryType:C,companyLegalName:_,companyTaxId:I,companyWebsite:w,companyPhone:r,primaryContactEmail:g,primaryContactName:p,primaryContactUserId:v,primaryContactSyncToken:T,syncToken:x,fileIds:D,typeOfIncorporation:m,stateOfIncorporation:$,incDate:j,companySourceOfFunds:G,companySourceOfFundsDescription:M,companySubIndustry:A,countriesOfOperations:F,purposeOfAccount:K,purposeOfAccountDescription:Q,regulatedStatus:N,regulatedStatusDescription:V,transactionVolume:q,transactionVolumeDescription:h,usNexus:O,usNexusTypes:J}=t,P={companyId:i,companyDescription:n,companyIndustry:s.selectedOption,companyIndustryType:C?.selectedOption??"",companyLegalName:_,taxIdOrEIN:I,website:w!=""&&w!=null?Yt(w):void 0,phone:r,syncToken:x,fileIds:D,incDate:j!=null?Re(j?.toString()):j,typeOfIncorporation:m?.selectedOption??"",stateOfIncorporation:$?.selectedOption??"",companySourceOfFunds:G?.selectedOption??"",companySourceOfFundsDescription:M,companySubIndustry:A?.selectedOption??"",countriesOfOperations:F?.selectedOptions.map((Y=>Y.length===2?Y:Qe(Y)))??[],purposeOfAccount:K?.selectedOption??"",purposeOfAccountDescription:Q,regulatedStatus:N??"",regulatedStatusDescription:V,transactionVolume:q?.selectedOption??"",transactionVolumeDescription:h,usNexus:O,usNexusTypes:J?.selectedOptions??[]},le={userId:v,firstName:p.firstName,lastName:p.lastName,email:g,syncToken:T};e(Le({companyDetails:P,primaryContactDetails:le}))},onAddressClick:(t,n)=>{const s=Xe(S,t,n),C=z(y.state?.pathnameStackToGoBack,y.pathname);c(s,{state:{pathnameStackToGoBack:C}})},onRegisteredAddressClick:(t,n)=>{const s=Xe(S,t,n),C=z(y.state?.pathnameStackToGoBack,y.pathname);c(s,{state:{pathnameStackToGoBack:C}})},onUpdateCustomerView:(t,n,s)=>{e(Xt(i,!1,n,s,t))},onAddressEditHandler:t=>{if(t!=null){const n=ht(t);e(ot({addressType:"subscription_billing_address",addressToCreate:n}))}},onSkipSetupClick:()=>{const t=z(y.state?.pathnameStackToGoBack,y.pathname);e(it(i,!1,!1)),c("./activation",{state:{pathnameStackToGoBack:t}})},onUpdateStep:t=>{e(at({step:t}))},onUpdateSubStep:t=>{e(Wt({subStep:t}))},onZeniLogoClick:()=>{l.toggle()},handleLogOutClick:()=>{const t=z(y.state?.pathnameStackToGoBack,y.pathname);c("/signout",{replace:!0,state:{pathnameStackToGoBack:t,message:"logout"}})},handleCockpitClick:()=>{window.open("/cockpit")},handleReferralsClick:()=>{c(`/${S}/rewards`)},handleCreateCardSetupIntent:t=>{e(nt(t))},handleConfirmCardSetupIntent:t=>{e(Jt(t))},updateCardPaymentModalState:t=>{e(de({isCardPaymentPopupOpen:t}))},handleAddCardPaymentSource:(t,n,s)=>{e(Zt(t,n,s))},handleFetchPaymentSources:()=>{e(he())},resetCardPaymentViewState:()=>{e(Ht())},handleResetCardPaymentErrorStatuses:()=>{e(qt())},redirectToProductSuitePage:()=>{const t=z(y.state?.pathnameStackToGoBack,y.pathname);c(`/${S}/onboarding/thankyou`,{state:{pathnameStackToGoBack:t,message:"OnboardingThankyou"},replace:!0})},onAcknowledgeAiFinanceTeam:()=>{i!=null&&e(Kt(i))},onIdentityDocumentUploadedForAutofill:t=>{if(i==null)return;const n=Qt(t.documentType);n!=null&&e(zt({target:"onboarding",companyId:i,officerType:t.officerType,fileId:t.fileId,documentType:n}))},onCompanyDocumentUploadedForAutofill:t=>{i!=null&&e(Mt({target:"onboarding",companyId:i,fileId:t.fileId,documentType:t.documentType}))}}}))(hn),ce=({taxCFOCustomer:e=!1,isOnAddressPage:u=!1,appContent:i})=>{const o=be(),l=Ie(),c=ae(),y=yn(),S=rt(),[t,n]=d.useState(!1),[s,C]=d.useState(!1),[_,I]=d.useState(!1),{tenantEmailDomain:w}=ke(),r=ct(),{useFeatureGate:g}=Te(),{isFeatureEnabled:p}=g(Z.isDebitCardFeatureEnabled),v=Ct("/:tenantEmailDomain/onboarding")!==null&&l.search?.includes("code"),T=k((f=>f.onboardingCustomerViewState.fetchState)),x=k((f=>f.onboardingCustomerViewState.currentStep)),D=k((f=>f.onboardingCustomerViewState.uiState)),m=k((f=>X(f))),$=k((f=>f.userRoleConfigState.fetchState)),j=k((f=>f.cardPaymentViewState)),G=$e(j.addCardPaymentSourceStatus.fetchState),M=j.addCardPaymentSourceStatus.fetchState,{code:A,realmId:F,state:K}=In(l.search),Q=m.externalConnections?.accounting[0],N=Q?.connectionType,V=Q?.connectionName,q=Q?.connectionId??"",h=R.getSignedInUser()?.userId??"";d.useEffect((()=>{s||(C(!0),c(he()))}),[s,c]),d.useEffect((()=>{_||(nt(["card"]),I(!0))}),[_]),d.useEffect((()=>{G==="In-Progress"&&M==="Completed"&&c(he())}),[G,M]),d.useEffect((()=>{kn(A,F,K,q,h)===!0&&m.externalConnections?.saveConnectionState!=="In-Progress"&&T==="Completed"&&(c(Et(m.tenantId,{connection_type:N??"accounting",connection_name:V??"quickbooks_online",authorization_code:A,realm_id:F,connection_id:q,user_id:h},At(window.location.origin+"/onboarding/auth"))),L.trackOnboardingSaveQBOConnection(F,q),o(l.pathname))}),[A,F,K,l.pathname,T]),d.useEffect((()=>{se.isInitiated===!1&&T==="Completed"&&se.init("/onboarding/auth",m.tenantEmailDomain)}),[T]);const O=m.companyId??R.getSignedInUserTenant(w)?.companyId,J=ue(m?.userRole??[]),P=k((f=>Oe(f,O)));d.useEffect((()=>{t||T!=="Not-Started"||O==null||(n(!0),c(Pt(O,!0,!v)))}),[t,T,O]),d.useEffect((()=>{m.externalConnections?.saveConnectionState!=="Completed"&&m.externalConnections?.saveConnectionState!=="Error"||!D.isQBOPopupOpen||x!=="connect_ledger"||c(de({isQBOPopupOpen:!1}))}),[m.externalConnections?.saveConnectionState]),d.useEffect((()=>{T==="Completed"&&v&&(c(at({step:"connect_ledger"})),c(de({isQBOPopupOpen:!0})))}),[v,T]),d.useEffect((()=>{$==="Not-Started"&&c(Dt(!0))}),[$,c]);const le=$e(P.companyDetailsLocalData?.addressStatus);d.useEffect((()=>{P.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&P.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&le==null&&c(ot({addressType:"company_registered_address",addressToCreate:P.companyDetailsLocalData?.addressStatus?.addressToCreate}))}),[P.companyDetailsLocalData?.addressStatus?.addressToCreate,P.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate]);const Y=P.isInterimEmailSent,xe=R.getSignedInUser();if(xe==null)throw Error("Can't access onboarding flow without signing in...");const dt=_e(p,m),ut=ve(m),Ee=m.company?.companyOnboardingInfo.isOnboardingCompleted,Ae=f=>f.trackPageLoaded(Ce.Event.onboardingPage),Pe=m.productSettings.isOtherProductsEnabled,lt=m.productSettings.isTreasuryEnabled,De=wn({tenantEmailDomain:w??"",signedInUserEmail:xe.userEmail??"",companyId:O}),je=(({companyId:f})=>{const U=ae(),ie=k((E=>E.onboardingCustomerViewState?.aiAgentsActivation)),ee=k((E=>X(E).company?.companyOnboardingInfo?.onboardingInfo?.onboardingAiActivationInfo?.isOnboardingAiActivationViewed??!1)),pe=d.useCallback((()=>{U(Ot())}),[U]);d.useEffect((()=>{pe()}),[pe]);const Fe=d.useCallback((()=>{f==null||f===""||ee||U(Tt(f))}),[f,ee,U]),pt=d.useMemo((()=>{if(f==null||f==="")return[];const E=`private-encrypted-${f}`;return[`${E}.ledger-ingestion.counts-updated`,`${E}.ai-agents-activation.phase-changed`]}),[f]),mt=d.useCallback(((E,te)=>{if(te==null||typeof te!="object")return;const b=te;if(E!=="ledger-ingestion.counts-updated"){if(E==="ai-agents-activation.phase-changed"){const re=typeof b.phase_key=="string"?b.phase_key:typeof b.key=="string"?b.key:"",W=typeof b.status=="string"?b.status:"idle";if(re==="")return;U(xt({key:re,status:W==="starting"||W==="building"||W==="ready"?W:"idle",startedAt:typeof b.started_at=="string"?b.started_at:void 0,completedAt:typeof b.completed_at=="string"?b.completed_at:void 0}))}}else U(wt({customerCount:typeof b.customer_count=="number"?b.customer_count:void 0,glAccountCount:typeof b.gl_account_count=="number"?b.gl_account_count:void 0,targetTransactionCount:typeof b.target_transaction_count=="number"?b.target_transaction_count:void 0,transactionCount:typeof b.transaction_count=="number"?b.transaction_count:void 0,vendorCount:typeof b.vendor_count=="number"?b.vendor_count:void 0}))}),[U]);return On({events:pt,onEvent:mt,onSubscribed:pe}),d.useMemo((()=>{const E=ie?.phases??[],te=Ke(E,ge),b=Ke(E,fe),re=qe(E,ge),W=qe(E,fe),Be=E.some((yt=>yt.status!=="idle")),ne=!ee&&!Be,Ne=ee&&!Be,gt=Ne?ge.map((()=>"building")):te,ft=Ne?fe.map((()=>"building")):b;return{ledgerRowStatuses:ne?void 0:gt,backgroundRowStatuses:ne?void 0:ft,showLedgerReadyInLabel:ne?void 0:re,showBackgroundReadyInLabel:ne?void 0:W,forceContinueEnabled:!ne||void 0,counts:ie?.counts,onContinueClicked:Fe}}),[ie?.phases,ie?.counts,ee,Fe])})({companyId:O});if(Ee===!0){if(!Pe)return lt?a.jsx(B,{to:"../../treasury"}):dt?a.jsx(B,{to:"../../checking"}):ut?a.jsx(B,{to:"../../cards"}):a.jsx(B,{to:"../../dashboard"});const f=P.updateStatus.fetchState==="In-Progress";if(Pe&&!f)return e?a.jsxs(He,{children:[a.jsx(oe,{analytics:L,onLoad:U=>Ae(U)}),a.jsx(Je,{navigate:o,location:l,companyId:O,currentTenant:m,isAdmin:J,isOnAddressPage:u,themeState:S,googleAPIKey:Se.googleMapsAPIKey,integrationsSectionProps:De,aiAgentsActivationProps:je}),i!=null?a.jsx(Ze,{windowSize:y,skipLegacyDrawerOffset:u&&m.productSettings.isOtherProductsEnabled!==!0,children:i}):null]}):a.jsx(B,{to:"../../onboarding/thankyou"})}else if(Ee===!1&&r?.loggedInUserRoleMap!=null)return Y===!0?a.jsx(B,{to:"../../onboarding/thankyou"}):a.jsxs(He,{children:[a.jsx(oe,{analytics:L,onLoad:f=>Ae(f)}),a.jsx(Je,{navigate:o,location:l,companyId:O,currentTenant:m,isAdmin:J,isOnAddressPage:u,themeState:S,googleAPIKey:Se.googleMapsAPIKey,integrationsSectionProps:De,aiAgentsActivationProps:je}),i!=null?a.jsx(Ze,{windowSize:y,skipLegacyDrawerOffset:u&&m.productSettings.isOtherProductsEnabled!==!0,children:i}):null]});return null},ye="external_integrations",wn=({tenantEmailDomain:e,signedInUserEmail:u,companyId:i})=>{const o=ae(),{pendingAutoFocusTabId:l}=_n(),{plaidAccounts:c,onAddPlaidAccount:y}=vn({companyId:i}),S=k((r=>r.plaidAccountViewState.external_account.plaidConnectionDetails)),t=k((r=>X(r))),n=k((r=>r.tenantState.fetchState)),s=k((r=>jt(r,i))),C=k((r=>Ft(r,ye))),_=d.useMemo((()=>new Set(C.map((r=>r.additionalInfo)).filter((r=>r!=null)))),[C]),I=t.tenantId,w=ue(t.userRole??[]);return d.useEffect((()=>{o(Bt(ye))}),[o]),d.useMemo((()=>({isAdmin:w,integrationsView:s,isLoading:n==="In-Progress",notifyMeRegisteredSlugs:_,autoFocusTabId:l??void 0,saveChargeBeeState:s.externalConnections?.saveAPIKeyConnectionState??"Not-Started",saveChargeBeeError:s.externalConnections?.saveAPIKeyConnectionError?.message,saveHubSpotState:s.externalConnections?.saveOAuthConnectionState??"Not-Started",saveHubSpotError:s.externalConnections?.saveOAuthConnectionError?.message,saveConnectorCredentialsStateBySlug:s.externalConnections?.saveConnectorCredentialsStateBySlug??{},saveConnectorCredentialsErrorBySlug:Object.fromEntries(Object.entries(s.externalConnections?.saveConnectorCredentialsErrorBySlug??{}).map((([r,g])=>[r,g?.message]))),deleteConnectionState:s.externalConnections?.deleteConnectionState??"Not-Started",deleteConnectionError:s.externalConnections?.deleteConnectionError?.message,onConnectGmail:()=>{o(Ue(I,"gmail",We()))},onConnectOutlook:()=>{o(Ue(I,"outlook",We()))},onConnectHubSpot:(r,g)=>{const p=s.externalConnections?.revenue?.find((T=>T.connectionName==="hubspot"))?.connectionId;if(p==null)return;const v=`${window.location.origin}/oauth/hubspot/callback`;sessionStorage.setItem("hubspot_oauth_pending",JSON.stringify({client_id:r,client_secret:g,connection_id:p,redirect_uri:v,tenant_id:I})),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(v)}`},onDisconnect:(r,g)=>{o($t(I,r,me(g)))},onNotifyMe:r=>{L.trackIntegrationsNotifyMeClicked("Onboarding",r),o(Lt(ye,r,u))},onReconnectQBO:()=>{se.init("/onboarding/auth",e),se.handleClick()},onRefreshClick:()=>{s.integrations.refreshQBO.fetchState!=="In-Progress"&&o(Rt())},onSaveChargeBeeCredentials:(r,g)=>{const p=s.externalConnections?.revenue?.find((v=>v.connectionName==="chargebee"))?.connectionId;p!=null&&o(Vt(I,p,me("revenue"),Ut("chargebee"),{api_key:r,site:g}))},onSaveConnectorCredentials:r=>{o(Nt(I,me("payments"),r))},plaidAccounts:c,onAddPlaidAccount:y,plaidConnectionDetails:S})),[w,s,n,_,l,I,u,e,o,c,y,S])};function We(){const e=new URL(window.location.href);return e.searchParams.set("onboarding_step","connect_data_source"),e.toString()}function Xe(e,u,i){let o=`/${e}/onboarding/address`;return o=i!=null?o.concat(`/edit/${u}/${encodeURIComponent(i)}`):o.concat(`/new/${u}`),o}const Ye=we.div`
|
|
27
|
-
display: flex;
|
|
28
|
-
height: 100vh;
|
|
29
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
30
|
-
`,et=tt((function(e,u){const{companyId:i,currentTenant:o}=u,l=Oe(e,i),c=st(e);return{hasVerifiedBankAccount:(l.paymentAccount?.providerVerificationStatus?.code?.includes("verified")??!1)||(c.bankAccountsList[0]?.providerVerificationStatus?.code?.includes("verified")??!1),isDisabled:ue(o?.userRole??[])&&l.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",signedInUser:R.getSignedInUser(),currentTenant:o,meetingUrl:"https://meetings.hubspot.com/niharn/zeni-onboarding-overview?embed=true"}}),(function(e,u){const{currentTenant:i,themeState:o,navigate:l,location:c}=u,{tenantEmailDomain:y}=i;return{onZeniLogoClick:()=>{o.toggle()},handleLogOutClick:()=>{const S=z(c.state?.pathnameStackToGoBack,c.pathname);l("/signout",{replace:!0,state:{pathnameStackToGoBack:S,message:"logout"}})},handleCockpitClick:()=>{window.open("/cockpit")},handleReferralsClick:()=>{l(`/${y}/rewards`)},handleUpdatePaymentAddressDetailClick:()=>{const S=z(c.state?.pathnameStackToGoBack,c.pathname);l(`/${y}/onboarding/billing/edit`,{state:{pathnameStackToGoBack:S,message:"UpdatePaymentAddressDetail"}})}}}))(bn),xn=()=>{const e=be(),u=ae(),i=Ie(),o=rt(),{useFeatureGate:l}=Te(),{isFeatureEnabled:c}=l(Z.isDebitCardFeatureEnabled),{tenantEmailDomain:y}=ke(),S=ct(),[t,n]=d.useState(!1);d.useEffect((()=>{t===!1&&i.state?.message==="OnboardingThankyou"&&n(!0)}),[i.state]);const s=k((p=>X(p))),C=s.productSettings.isOtherProductsEnabled;d.useEffect((()=>{u(it(_,!1,!C))}),[]);const _=s.companyId??R.getSignedInUserTenant(y)?.companyId;if(S.loggedInUser==null)throw Error("Can't access onboarding flow without signing in...");const I=_e(c,s),w=ve(s),r=k((p=>p.onboardingCustomerViewState.updateStatus.fetchState)),g=s.company?.companyOnboardingInfo.isOnboardingCompleted;if(g!==!0||C)return r==="Completed"&&g===!0&&C&&S?.loggedInUserRoleMap!=null?a.jsxs(Ye,{children:[a.jsx(oe,{analytics:L,onLoad:p=>{p.trackPageLoaded(Ce.Event.onboardingLandingPage,"Onboarding",mn(s.productSettings))}}),a.jsx(et,{navigate:e,showUpdatePaymentDetailButton:C,location:i,companyId:_,currentTenant:s,themeState:o,isVisitingFirstTime:t})]}):r==="Completed"&&g===!1&&S?.loggedInUserRoleMap!=null?a.jsxs(Ye,{children:[a.jsx(oe,{analytics:L,onLoad:p=>{p.trackPageLoaded(Ce.Event.onboardingInterimPage)}}),a.jsx(et,{navigate:e,showUpdatePaymentDetailButton:C,location:i,companyId:_,currentTenant:s,themeState:o,isVisitingFirstTime:t})]}):a.jsx(Cn,{});{const p={pathnameStackToGoBack:i.state?.pathnameStackToGoBack,message:"activation"};return I?a.jsx(B,{to:"../../checking",state:p,replace:!0}):w?a.jsx(B,{to:"../../cards",state:p,replace:!0}):a.jsx(B,{to:"../../dashboard",state:p,replace:!0})}};function ta(){return a.jsxs(bt,{children:[a.jsx(H,{path:"/",element:a.jsx(ce,{})}),a.jsx(H,{path:"/billing/edit",element:a.jsx(ce,{taxCFOCustomer:!0})}),a.jsx(H,{path:"/thankyou",element:a.jsx(xn,{})}),a.jsx(H,{path:"/activation",element:a.jsx(Tn,{})}),a.jsx(H,{path:"/address/edit/:addressType/:addressId",element:a.jsx(ce,{isOnAddressPage:!0,appContent:a.jsx(Ve,{})})}),a.jsx(H,{path:"/address/new/:addressType",element:a.jsx(ce,{isOnAddressPage:!0,appContent:a.jsx(Ve,{})})}),a.jsx(H,{path:"*",element:a.jsx(St,{})})]})}export{ta as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./liveblocks-BQ1kyMTn.js";import{h as r,n}from"./core-DGp_s-v5.js";import{N as i}from"./index-s0HleIMs.js";import"./mui-BKDz48_f.js";import"./sentry-CRnwGvtj.js";import"./zeni-epic-state-Dk4VKziD.js";import"./recharts-om305-Co.js";import"./analytics-CzAweyQD.js";import"./plaid-FOcqk85t.js";import"./dnd-Dv83AsVV.js";import"./stripe-cKAAJElX.js";import"./lottie-CBfI26wD.js";import"./lexical-BI9o6Rzd.js";import"./pdf-CLZhSauj.js";import"./utils-BJ3kLhBy.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]="0d8bbeee-ef94-478e-b36a-0f30a9be8cda",e._sentryDebugIdIdentifier="sentry-dbid-0d8bbeee-ef94-478e-b36a-0f30a9be8cda")}catch{}})();const a=n(null,(function(e,o){return{onGoBack:()=>{o.navigate(-1)},onGoHome:()=>{o.navigate("/")}}}))(i);function _(){const e=r();return t.jsx(a,{navigate:e})}export{_ as default};
|