@zeniai/web-app-ui 5.2.9-qa → 5.2.10-next

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.
Files changed (106) hide show
  1. package/dist/assets/AddressRoutes-C_khJILT.js +1 -0
  2. package/dist/assets/{AddressScreen-Dqwi7asg.js → AddressScreen-B73AJWKw.js} +1 -1
  3. package/dist/assets/{AiCfoScreen-DZLM16VS.js → AiCfoScreen-DWBh_hN_.js} +1 -1
  4. package/dist/assets/{BillPayApprovalRoutes-CnCwb-Mh.js → BillPayApprovalRoutes-Buf7hiCY.js} +1 -1
  5. package/dist/assets/{BillPayRoutes-BusugyBh.js → BillPayRoutes-CKcpO7_D.js} +1 -1
  6. package/dist/assets/{BusinessVerificationPageScreen-Cy2CFeUz.js → BusinessVerificationPageScreen-BqeDbW3o.js} +1 -1
  7. package/dist/assets/{CardsAiCfoScreen-Bvc4PWGQ.js → CardsAiCfoScreen-DQ4N5BPh.js} +1 -1
  8. package/dist/assets/{ChargeCardRoutes-CXQLWwTK.js → ChargeCardRoutes-Bh_MBpoB.js} +1 -1
  9. package/dist/assets/{CompanyPassportScreen-nmEzz6fq.js → CompanyPassportScreen-BGd7r7TH.js} +1 -1
  10. package/dist/assets/{ConnectionAuthScreen-Bn6p5jCo.js → ConnectionAuthScreen-k1a7GClm.js} +1 -1
  11. package/dist/assets/CustomerOnboardingAuthScreen-C3Bv8pSC.js +1 -0
  12. package/dist/assets/CustomerOnboardingRoutes-DF-eWgjd.js +30 -0
  13. package/dist/assets/{DashboardRoutes-CYS11Tnq.js → DashboardRoutes-B2NW2nXj.js} +1 -1
  14. package/dist/assets/{DefaultTenantHome-DFG-x6vm.js → DefaultTenantHome-BgbFIrms.js} +1 -1
  15. package/dist/assets/{DomesticWireDetailScreen-zgK1EeEQ.js → DomesticWireDetailScreen-BUWvP3WY.js} +1 -1
  16. package/dist/assets/{DrawerScreen-Dj5itxnJ.js → DrawerScreen-EFBnv5Mb.js} +1 -1
  17. package/dist/assets/{EntityDetailRoutes-BVnuWs1u.js → EntityDetailRoutes-Cc8VvCzZ.js} +1 -1
  18. package/dist/assets/{ExpenseAutomationRoutes-CGWYEvDw.js → ExpenseAutomationRoutes-MQoA8t4l.js} +1 -1
  19. package/dist/assets/{FeaturePreviewScreen-BjS0m3cA.js → FeaturePreviewScreen-Cbvy-g_f.js} +1 -1
  20. package/dist/assets/{HubSpotOAuthCallbackScreen-B4wj4jwx.js → HubSpotOAuthCallbackScreen-BrdOuYlK.js} +1 -1
  21. package/dist/assets/{MagicLinkRoutes-DhLc4avU.js → MagicLinkRoutes-CDWPjCWd.js} +1 -1
  22. package/dist/assets/{MagicLinkSignInScreen-Bka9M-FA.js → MagicLinkSignInScreen-PzfGPMzn.js} +1 -1
  23. package/dist/assets/{MobileAppDrawer-2f948WLd.js → MobileAppDrawer-B1LrayEB.js} +1 -1
  24. package/dist/assets/NotFoundScreen-CEYKR6EV.js +1 -0
  25. package/dist/assets/{NotificationRoutes-BbxpzMby.js → NotificationRoutes-ihqDhPX-.js} +1 -1
  26. package/dist/assets/{OAuthConsentScreen-BFVA16-3.js → OAuthConsentScreen-BRT_dqI8.js} +1 -1
  27. package/dist/assets/{PandLWithForecastRoutes-BbFjbA4X.js → PandLWithForecastRoutes-DEhZGiD0.js} +1 -1
  28. package/dist/assets/{PeopleRoutes-yD3gTmoM.js → PeopleRoutes-DVY4Q7Hp.js} +1 -1
  29. package/dist/assets/{PerformanceRoutes-C9rfaaZ7.js → PerformanceRoutes-wBIg8p9P.js} +1 -1
  30. package/dist/assets/{Preview-DVcLvlJM.js → Preview-DGLS-lai.js} +1 -1
  31. package/dist/assets/{QBOConnectionScreen-KPblY_Id.js → QBOConnectionScreen-DIBhM5-n.js} +1 -1
  32. package/dist/assets/{ReimbursementApprovalRoutes-BtVtLo57.js → ReimbursementApprovalRoutes-C644QT_s.js} +1 -1
  33. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-B-NF15uO.js → ReimbursementApprovalRuleDetailScreen-NFqVNR5p.js} +1 -1
  34. package/dist/assets/{ReimbursementRoutes-DrPhcUVq.js → ReimbursementRoutes-BUFparp-.js} +1 -1
  35. package/dist/assets/{ReportsRoutes-4al_6uGo.js → ReportsRoutes-Ds1taqXk.js} +1 -1
  36. package/dist/assets/{RewardsRoutes-BUnw-0yn.js → RewardsRoutes-_lHVDHEf.js} +1 -1
  37. package/dist/assets/{ScreenRoutes-CAYGh4eu.js → ScreenRoutes-RB2hJZ9G.js} +2 -2
  38. package/dist/assets/{SettingsRoutes-CKliNhdm.js → SettingsRoutes-B7vdsHFZ.js} +1 -1
  39. package/dist/assets/{SetupPagesScreen-BjNE7Cm8.js → SetupPagesScreen-qTCCS6UQ.js} +1 -1
  40. package/dist/assets/{SignInScreen-CQdJr7uQ.js → SignInScreen-Dvuboby-.js} +1 -1
  41. package/dist/assets/{SignOutScreen-C9nBkJOZ.js → SignOutScreen-0_rqdeHx.js} +1 -1
  42. package/dist/assets/{TaskListScreen-Dy0ym2bJ.js → TaskListScreen-C7iXr721.js} +1 -1
  43. package/dist/assets/{TaskRoutes-C7FnHOcf.js → TaskRoutes-e1ZDknQo.js} +1 -1
  44. package/dist/assets/{TransactionDetailRoutes-BkSAMpem.js → TransactionDetailRoutes-CtXEemBb.js} +1 -1
  45. package/dist/assets/{TransactionDetailScreen-Df-lTaa7.js → TransactionDetailScreen-iUr_rYom.js} +1 -1
  46. package/dist/assets/{TransactionListRoutes-rczQJ3vr.js → TransactionListRoutes-C_zmVTtQ.js} +1 -1
  47. package/dist/assets/{TreasuryRoutes-DRks-0zi.js → TreasuryRoutes-ChTRfqeJ.js} +1 -1
  48. package/dist/assets/{VendorsRoutes-DBFuiYnF.js → VendorsRoutes-Dkh7xobi.js} +1 -1
  49. package/dist/assets/{WiseConfirmationScreen-DP9-e5Xd.js → WiseConfirmationScreen-CdcPlCa7.js} +1 -1
  50. package/dist/assets/{ZeniAccountRoutes-ewlJGl5c.js → ZeniAccountRoutes-DA4l0GWi.js} +1 -1
  51. package/dist/assets/{ZeniAccountStatementScreen-DWnERIBu.js → ZeniAccountStatementScreen-DpRHhmKq.js} +1 -1
  52. package/dist/assets/{accountMappingHelper-Gr9m7o7F.js → accountMappingHelper-21INvCOu.js} +1 -1
  53. package/dist/assets/{analytics-CnnfCSOg.js → analytics-B2y6XFqy.js} +1 -1
  54. package/dist/assets/{analyticsHelper-B-6LZuP4.js → analyticsHelper-BJUmcZdp.js} +1 -1
  55. package/dist/assets/{core-dwwFaYBE.js → core-BNlQPmZI.js} +1 -1
  56. package/dist/assets/{decodeURIComponentSafe-DPB81zx3.js → decodeURIComponentSafe-CKfw0Bv2.js} +1 -1
  57. package/dist/assets/{dnd-DZvuKFo2.js → dnd-DMxdSMN6.js} +1 -1
  58. package/dist/assets/{empty-C6x_q-2g.js → empty-42Sdxle4.js} +1 -1
  59. package/dist/assets/{empty-D-CDbU6V.js → empty-BTu4iQMe.js} +1 -1
  60. package/dist/assets/{emptyVideoElement-BIRkbwVd.js → emptyVideoElement-yYZvjhoB.js} +1 -1
  61. package/dist/assets/{epic-BCPu20Qu.js → epic-D-skpuz3.js} +1 -1
  62. package/dist/assets/{getLocaleForTenant-DwvsjOvL.js → getLocaleForTenant-CVqf6lDC.js} +1 -1
  63. package/dist/assets/{index-CJhMrDQa.js → index-BonmQyt5.js} +1 -1
  64. package/dist/assets/{index-BJuJWplp.js → index-CVQQCz3n.js} +1 -1
  65. package/dist/assets/{index-8OwuFG0U.js → index-DCefQivt.js} +1 -1
  66. package/dist/assets/{index-rl6qAmZH.js → index-DJcninHi.js} +1 -1
  67. package/dist/assets/{index-DcHHjvaZ.js → index-DQ627A2Y.js} +1431 -1431
  68. package/dist/assets/{index-DHUxeELF.js → index-_V5d2kT2.js} +1 -1
  69. package/dist/assets/{index-DowwiI_V.js → index-kig8y22l.js} +1 -1
  70. package/dist/assets/{index-BI9GRfhX.js → index-kp8GJUPv.js} +2 -2
  71. package/dist/assets/{lexical-CKHu_k04.js → lexical-DIwcPOOX.js} +1 -1
  72. package/dist/assets/{liveblocks-BGSO0Qat.js → liveblocks-CgB-eS47.js} +1 -1
  73. package/dist/assets/{lottie-dHew8Pi0.js → lottie-D0T6TwWM.js} +1 -1
  74. package/dist/assets/{mui-BtJzVyNP.js → mui-DrQknmqv.js} +1 -1
  75. package/dist/assets/{pathToGoBack-961Nhi8-.js → pathToGoBack-Dm-okQyO.js} +1 -1
  76. package/dist/assets/{pdf-fvaN7q8z.js → pdf-D8esTcXH.js} +3 -3
  77. package/dist/assets/{pdf-lib-BJAK6s2W.js → pdf-lib-BfsDfw00.js} +1 -1
  78. package/dist/assets/{plaid-DQ7S7SfR.js → plaid-Dur2bXd_.js} +1 -1
  79. package/dist/assets/{pusher-BZ3fvlQ6.js → pusher-DJ5ROm_G.js} +1 -1
  80. package/dist/assets/{react-hbwqeBOc.js → react-BR4lxG6C.js} +1 -1
  81. package/dist/assets/{react-w9IdoRbZ.js → react-BY8yRlvS.js} +1 -1
  82. package/dist/assets/{react-DYrCJ5-l.js → react-Bo4r-vUu.js} +1 -1
  83. package/dist/assets/{react-CgQ98v2I.js → react-BpvUO2gB.js} +1 -1
  84. package/dist/assets/{react-C0v88JXe.js → react-D4eYJxhr.js} +1 -1
  85. package/dist/assets/{react-BJ4U97lV.js → react-j9qkVCsv.js} +1 -1
  86. package/dist/assets/{recharts-DHViZ79s.js → recharts-CSVdRl0H.js} +1 -1
  87. package/dist/assets/{routePaths-Pys8bHTK.js → routePaths-CFy0gTEG.js} +1 -1
  88. package/dist/assets/{sentry-BxK72NTv.js → sentry-wTFBBAPh.js} +1 -1
  89. package/dist/assets/{url-CJVt52Qh.js → url-D7_Ps5yN.js} +1 -1
  90. package/dist/assets/{url-CpKMfgt9.js → url-vmJOCnxQ.js} +1 -1
  91. package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-Du-sPG0F.js → useAiCfoDashboardSuggestedQuestionsChips-DEu155ok.js} +1 -1
  92. package/dist/assets/{useAskAiCfoHostNavButtonProps-CEXExmUC.js → useAskAiCfoHostNavButtonProps-CwKalBPx.js} +1 -1
  93. package/dist/assets/{useCashManagementBanner-5JzC4Bv8.js → useCashManagementBanner-DGKAUjch.js} +1 -1
  94. package/dist/assets/{useChargeCardPusherEvents-CnnOtBlk.js → useChargeCardPusherEvents-DgSJu8gn.js} +1 -1
  95. package/dist/assets/{useDeviceId--iR7_ret.js → useDeviceId-khuJ_mL7.js} +1 -1
  96. package/dist/assets/{useEmailConnectResultRefresh-D80kpXmE.js → useEmailConnectResultRefresh-Kpmy9G5p.js} +1 -1
  97. package/dist/assets/{useInitialThreadRequest-Be44atB3.js → useInitialThreadRequest-BHfpSTJ4.js} +1 -1
  98. package/dist/assets/{utils-R2J97kpk.js → utils-B74IeKSG.js} +1 -1
  99. package/dist/assets/{withTransactionSidePanel-CNqfXJQc.js → withTransactionSidePanel-B9LYNV9j.js} +1 -1
  100. package/dist/assets/{zeni-epic-state-DZ68JIF_.js → zeni-epic-state-BAdkLncB.js} +3 -3
  101. package/dist/index.html +1 -1
  102. package/package.json +3 -3
  103. package/dist/assets/AddressRoutes-C2iTumHM.js +0 -1
  104. package/dist/assets/CustomerOnboardingAuthScreen-h8AsLQEL.js +0 -1
  105. package/dist/assets/CustomerOnboardingRoutes-CzHVsO43.js +0 -30
  106. package/dist/assets/NotFoundScreen-BkB6DL-8.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-DcHHjvaZ.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-BxK72NTv.js"><link rel="modulepreload" crossorigin href="/assets/core-dwwFaYBE.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-DZ68JIF_.js"><link rel="modulepreload" crossorigin href="/assets/mui-BtJzVyNP.js"><link rel="modulepreload" crossorigin href="/assets/analytics-CnnfCSOg.js"><link rel="modulepreload" crossorigin href="/assets/utils-R2J97kpk.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>
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-DQ627A2Y.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-wTFBBAPh.js"><link rel="modulepreload" crossorigin href="/assets/core-BNlQPmZI.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-BAdkLncB.js"><link rel="modulepreload" crossorigin href="/assets/mui-DrQknmqv.js"><link rel="modulepreload" crossorigin href="/assets/analytics-B2y6XFqy.js"><link rel="modulepreload" crossorigin href="/assets/utils-B74IeKSG.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.9-qa",
3
+ "version": "5.2.10-next",
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.37",
30
+ "@zeniai/client-analytics": "2.0.40",
31
31
  "@zeniai/client-epic-state": "5.1.36",
32
- "@zeniai/web-components": "4.2.31",
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-BGSO0Qat.js";import{A as d}from"./AddressScreen-Dqwi7asg.js";import i from"./NotFoundScreen-BkB6DL-8.js";import"./sentry-BxK72NTv.js";import{o as s,p as r}from"./core-dwwFaYBE.js";import"./zeni-epic-state-DZ68JIF_.js";import"./recharts-DHViZ79s.js";import"./index-DcHHjvaZ.js";import"./mui-BtJzVyNP.js";import"./analytics-CnnfCSOg.js";import"./plaid-DQ7S7SfR.js";import"./dnd-DZvuKFo2.js";import"./stripe-cKAAJElX.js";import"./lottie-dHew8Pi0.js";import"./lexical-CKHu_k04.js";import"./pdf-fvaN7q8z.js";import"./utils-R2J97kpk.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-BGSO0Qat.js";import{z as n}from"./index-DcHHjvaZ.js";import{g as d}from"./QBOConnectionScreen-KPblY_Id.js";import"./sentry-BxK72NTv.js";import{g as p,N as s}from"./core-dwwFaYBE.js";import"./zeni-epic-state-DZ68JIF_.js";import"./recharts-DHViZ79s.js";import"./mui-BtJzVyNP.js";import"./analytics-CnnfCSOg.js";import"./plaid-DQ7S7SfR.js";import"./dnd-DZvuKFo2.js";import"./stripe-cKAAJElX.js";import"./lottie-dHew8Pi0.js";import"./lexical-CKHu_k04.js";import"./pdf-fvaN7q8z.js";import"./utils-R2J97kpk.js";import"./empty-C6x_q-2g.js";import"./pdf-lib-BJAK6s2W.js";import"./index-DHUxeELF.js";import"./url-CJVt52Qh.js";import"./index-BJuJWplp.js";import"./decodeURIComponentSafe-DPB81zx3.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-BGSO0Qat.js";import{t as ht,A as Ve}from"./AddressScreen-Dqwi7asg.js";import St from"./NotFoundScreen-BkB6DL-8.js";import{a as d}from"./sentry-BxK72NTv.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-dwwFaYBE.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-DZ68JIF_.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-DcHHjvaZ.js";import{n as we}from"./mui-BtJzVyNP.js";import{g as In,h as kn,q as se}from"./QBOConnectionScreen-KPblY_Id.js";import{u as _n,a as vn}from"./useEmailConnectResultRefresh-D80kpXmE.js";import{u as On}from"./useChargeCardPusherEvents-CnnOtBlk.js";import"./recharts-DHViZ79s.js";import"./analytics-CnnfCSOg.js";import"./plaid-DQ7S7SfR.js";import"./dnd-DZvuKFo2.js";import"./stripe-cKAAJElX.js";import"./lottie-dHew8Pi0.js";import"./lexical-CKHu_k04.js";import"./pdf-fvaN7q8z.js";import"./utils-R2J97kpk.js";import"./empty-C6x_q-2g.js";import"./pdf-lib-BJAK6s2W.js";import"./index-DHUxeELF.js";import"./url-CJVt52Qh.js";import"./index-BJuJWplp.js";import"./decodeURIComponentSafe-DPB81zx3.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-BGSO0Qat.js";import{h as r,n}from"./core-dwwFaYBE.js";import{N as i}from"./index-DcHHjvaZ.js";import"./mui-BtJzVyNP.js";import"./sentry-BxK72NTv.js";import"./zeni-epic-state-DZ68JIF_.js";import"./recharts-DHViZ79s.js";import"./analytics-CnnfCSOg.js";import"./plaid-DQ7S7SfR.js";import"./dnd-DZvuKFo2.js";import"./stripe-cKAAJElX.js";import"./lottie-dHew8Pi0.js";import"./lexical-CKHu_k04.js";import"./pdf-fvaN7q8z.js";import"./utils-R2J97kpk.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};