@zeniai/web-app-ui 5.4.16-dev → 5.4.17-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.
Files changed (130) hide show
  1. package/dist/assets/{AccountMappingScreen-CDXqSiAc.js → AccountMappingScreen-DIZ1qWql.js} +2 -2
  2. package/dist/assets/{ActualMatchingMatchDetailScreen-CLGyk8Pf.js → ActualMatchingMatchDetailScreen-C6MMW6xe.js} +1 -1
  3. package/dist/assets/AddressRoutes-DneYortX.js +1 -0
  4. package/dist/assets/AddressScreen-CxRV-hrD.js +9 -0
  5. package/dist/assets/AiCfoScreen-Ct8ctLoM.js +22 -0
  6. package/dist/assets/{AppDrawer-B2nKx9FM.js → AppDrawer-DDlKiLbC.js} +1 -1
  7. package/dist/assets/{BillPayApprovalRoutes-DZgRuPl7.js → BillPayApprovalRoutes-WPV-16X0.js} +1 -1
  8. package/dist/assets/{BillPayRoutes-DswppA7i.js → BillPayRoutes-PQbxiOB3.js} +1 -1
  9. package/dist/assets/BusinessVerificationPageScreen-DaAqJAwC.js +9 -0
  10. package/dist/assets/{CardsAiCfoScreen-BcEAv9Pt.js → CardsAiCfoScreen-CVenT1_U.js} +1 -1
  11. package/dist/assets/{ChargeCardRoutes-DeJE6G2a.js → ChargeCardRoutes-uCAqAWIA.js} +1 -1
  12. package/dist/assets/{CompanyPassportScreen-u9kNx3Tg.js → CompanyPassportScreen-DtXzsb3x.js} +1 -1
  13. package/dist/assets/ConnectionAuthScreen-BC1VQ6tg.js +11 -0
  14. package/dist/assets/CustomerOnboardingAuthScreen-DGFpytn-.js +1 -0
  15. package/dist/assets/{CustomerOnboardingRoutes-i8teYQ0f.js → CustomerOnboardingRoutes-B6np-cNh.js} +5 -5
  16. package/dist/assets/{DashboardRoutes-CVe5_3-I.js → DashboardRoutes-9dawbCei.js} +4 -4
  17. package/dist/assets/{DefaultTenantHome-D6T8HuT3.js → DefaultTenantHome-BgSSAKid.js} +1 -1
  18. package/dist/assets/{DomesticWireDetailScreen-dIpkGH6g.js → DomesticWireDetailScreen-u2HKaCWA.js} +3 -3
  19. package/dist/assets/{DrawerScreen-Bl0Kb-2-.js → DrawerScreen-BmZb1i83.js} +1 -1
  20. package/dist/assets/{EntityDetailRoutes-DDHIuX8U.js → EntityDetailRoutes-DV-gNWAZ.js} +1 -1
  21. package/dist/assets/{ExpenseAutomationRoutes-DgHZQYiA.js → ExpenseAutomationRoutes-DJyIDCG4.js} +1 -1
  22. package/dist/assets/{FallBackRoute-VU9noj8V.js → FallBackRoute--cXyuVDR.js} +2 -2
  23. package/dist/assets/FeaturePreviewScreen-DjPPDYKv.js +1 -0
  24. package/dist/assets/HubSpotOAuthCallbackScreen-DL6_G6pe.js +1 -0
  25. package/dist/assets/{InboxNotificationsProvider-BGgv9Z5e.js → InboxNotificationsProvider-Daf1RQwd.js} +1 -1
  26. package/dist/assets/{InvoicingRoutes-BsZlsusO.js → InvoicingRoutes-DKlu_pXq.js} +2 -2
  27. package/dist/assets/{MagicLinkRoutes-BhGsmEvC.js → MagicLinkRoutes-BkZcOPcj.js} +17 -17
  28. package/dist/assets/MagicLinkSignInScreen-CmIZfa-U.js +12 -0
  29. package/dist/assets/{MobileAppDrawer-BUD0j7G2.js → MobileAppDrawer-DTqKEh3f.js} +1 -1
  30. package/dist/assets/NotFoundScreen-CY-XFa3a.js +1 -0
  31. package/dist/assets/{NotificationRoutes-ZaAHYFIU.js → NotificationRoutes-BwTXq37O.js} +1 -1
  32. package/dist/assets/{OAuthConsentScreen-BKY_MZq1.js → OAuthConsentScreen-NPetpQky.js} +1 -1
  33. package/dist/assets/{PandLWithForecastRoutes-YG8pfDPq.js → PandLWithForecastRoutes-eI5sgFXq.js} +1 -1
  34. package/dist/assets/{PaymentLinkScreen-CO2Phrs3.js → PaymentLinkScreen-C3fxjzB1.js} +1 -1
  35. package/dist/assets/{PeopleRoutes-B0Fd7My2.js → PeopleRoutes-B4kdNKMm.js} +5 -5
  36. package/dist/assets/PerformanceRoutes-CT8b6LEZ.js +1 -0
  37. package/dist/assets/{Preview-CHNtDMAW.js → Preview-Cr2n9zp9.js} +1 -1
  38. package/dist/assets/{QBOConnectionScreen-C4tVfsJt.js → QBOConnectionScreen-BLLJy6Ug.js} +1 -1
  39. package/dist/assets/{ReimbursementApprovalRoutes-fl_RHS7J.js → ReimbursementApprovalRoutes-DX03V50m.js} +1 -1
  40. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-C-svNJCY.js → ReimbursementApprovalRuleDetailScreen-y6N7Iuxh.js} +1 -1
  41. package/dist/assets/{ReimbursementRoutes-D_O2yTEO.js → ReimbursementRoutes-50C6Ebhr.js} +1 -1
  42. package/dist/assets/{ReportsRoutes-DvldCkWE.js → ReportsRoutes-CPbwIPP-.js} +1 -1
  43. package/dist/assets/{RewardsRoutes-DUEA8SkB.js → RewardsRoutes-cADkol8X.js} +1 -1
  44. package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-Cx-76x6C.js → ScheduleDetailsPrepaidExpensesScreen-Bb90T06-.js} +5 -5
  45. package/dist/assets/{ScreenRoutes-v-i1WS06.js → ScreenRoutes-BOM6GDiC.js} +2 -2
  46. package/dist/assets/{SettingsRoutes-B8JbWE0A.js → SettingsRoutes-Dd8PYfpt.js} +6 -6
  47. package/dist/assets/{SetupPagesScreen-QcHSEVBO.js → SetupPagesScreen-BY0N32JD.js} +1 -1
  48. package/dist/assets/SignInScreen-DGgeSRO8.js +1 -0
  49. package/dist/assets/SignOutScreen-DPsA_-Qd.js +9 -0
  50. package/dist/assets/{TaskListScreen-C4glK-a5.js → TaskListScreen-yze1VNuP.js} +2 -2
  51. package/dist/assets/{TaskRoutes-Bm5_wmyb.js → TaskRoutes-B5s7sZXk.js} +2 -2
  52. package/dist/assets/{TransactionDetailRoutes-Dv09esw0.js → TransactionDetailRoutes-D5llvRhv.js} +1 -1
  53. package/dist/assets/{TransactionDetailScreen-DvsztMnO.js → TransactionDetailScreen-CebcYk9B.js} +2 -2
  54. package/dist/assets/{TransactionListRoutes-B8IVQdNf.js → TransactionListRoutes-PnEvh6qc.js} +1 -1
  55. package/dist/assets/{TreasuryRoutes-CWptww3e.js → TreasuryRoutes-DbBm2doo.js} +4 -4
  56. package/dist/assets/{VendorsRoutes-BFk85yO0.js → VendorsRoutes-CQjAHjxC.js} +7 -7
  57. package/dist/assets/{WiseConfirmationScreen-Do34o9lu.js → WiseConfirmationScreen-d0_FJyyD.js} +1 -1
  58. package/dist/assets/{ZeniAccountRoutes-DLhkkoyT.js → ZeniAccountRoutes-CrROItmj.js} +8 -8
  59. package/dist/assets/{ZeniAccountStatementScreen-YKTGrgZ2.js → ZeniAccountStatementScreen-DiwM8zAQ.js} +1 -1
  60. package/dist/assets/{accountMappingHelper-DrXX0Mo9.js → accountMappingHelper-DHkHknqJ.js} +1 -1
  61. package/dist/assets/{analytics-Dt3suRsK.js → analytics-CabaUa1L.js} +1 -1
  62. package/dist/assets/{analyticsHelper-Cqab08I6.js → analyticsHelper-BOs1nNPv.js} +1 -1
  63. package/dist/assets/{core-BQjZS2e8.js → core-BQ6YlWys.js} +1 -1
  64. package/dist/assets/{decodeURIComponentSafe-CIIlt5ol.js → decodeURIComponentSafe-D_MvDEMm.js} +1 -1
  65. package/dist/assets/{dnd-DccPQo-x.js → dnd-DL41lZFs.js} +1 -1
  66. package/dist/assets/{empty-DGN7Wz7m.js → empty-CmBSqEpE.js} +1 -1
  67. package/dist/assets/{empty-CmsHIcyu.js → empty-mwfdcHvm.js} +1 -1
  68. package/dist/assets/{emptyVideoElement-CEk87dLW.js → emptyVideoElement-BIOkPHF6.js} +1 -1
  69. package/dist/assets/{epic-Cqfxkt7p.js → epic-PdviWWJR.js} +1 -1
  70. package/dist/assets/{expenseAutomationHelper-CTi3ttti.js → expenseAutomationHelper-Bn2j121J.js} +1 -1
  71. package/dist/assets/{getLocaleForTenant-DFe6xj72.js → getLocaleForTenant-jg4r2V28.js} +1 -1
  72. package/dist/assets/{index-But8NFor.js → index-B7zYAj-7.js} +1 -1
  73. package/dist/assets/{index-B2-Bbk9y.js → index-BNuLRh9K.js} +1 -1
  74. package/dist/assets/{index-hbfcGbz2.js → index-Bfsx1pdD.js} +1 -1
  75. package/dist/assets/{index-CbNzra9d.js → index-BiyVMPcR.js} +1 -1
  76. package/dist/assets/{index-CRxR6I-b.js → index-CamOdFyi.js} +1 -1
  77. package/dist/assets/{index-BkGKDMtv.js → index-DZBfE5XI.js} +3587 -3587
  78. package/dist/assets/{index-CZ1vtmNn.js → index-Deo5Hnb2.js} +1 -1
  79. package/dist/assets/{index-Bpok7EIX.js → index-Du1SP9oT.js} +2 -2
  80. package/dist/assets/{lexical-DQq5IX8L.js → lexical-BmxGnuDE.js} +1 -1
  81. package/dist/assets/{liveblocks-CueKZN6-.js → liveblocks-UAxYbctH.js} +1 -1
  82. package/dist/assets/{lottie-D6SetWLo.js → lottie-BPF4ysWw.js} +1 -1
  83. package/dist/assets/{mui-CQYR1UI4.js → mui-DYo6Z7Si.js} +1 -1
  84. package/dist/assets/{pathToGoBack-nfdDmjjO.js → pathToGoBack-CxX9ql3A.js} +1 -1
  85. package/dist/assets/{pdf-CqrelrTK.js → pdf-CHT1_0Mk.js} +3 -3
  86. package/dist/assets/{pdf-lib-CkerEMYe.js → pdf-lib-BMce44-8.js} +1 -1
  87. package/dist/assets/{plaid-Db_iti-b.js → plaid-BNcFec4W.js} +1 -1
  88. package/dist/assets/{pusher-DBCzLw-Z.js → pusher-C1AzfTgV.js} +1 -1
  89. package/dist/assets/{react-CT55RMnu.js → react-B13-Yejj.js} +1 -1
  90. package/dist/assets/{react-CQAnUX6b.js → react-BnffftLd.js} +1 -1
  91. package/dist/assets/{react-Bl0w5iM8.js → react-CSOME4pA.js} +1 -1
  92. package/dist/assets/{react-BazjfJbS.js → react-CT8AAIAI.js} +1 -1
  93. package/dist/assets/{react-Cg5Hbc0T.js → react-CjoLUzLz.js} +1 -1
  94. package/dist/assets/{react-H6VVspcR.js → react-DZjZzXEf.js} +1 -1
  95. package/dist/assets/{recharts-DNLEWX3j.js → recharts-VJtr9O-6.js} +1 -1
  96. package/dist/assets/{reportTimeframe-BsDWtESB.js → reportTimeframe-D2vFkQK6.js} +1 -1
  97. package/dist/assets/{routePaths-CiV55sI1.js → routePaths-CaZTJQOM.js} +1 -1
  98. package/dist/assets/{sentry-uvO3Tp8f.js → sentry-CQfqw6mU.js} +1 -1
  99. package/dist/assets/{stripSplatSuffix-C6Dmp1Fj.js → stripSplatSuffix-TzoGXcwz.js} +1 -1
  100. package/dist/assets/{url-CR4W537l.js → url-OL55dppf.js} +1 -1
  101. package/dist/assets/{url-BRJzriUX.js → url-dVvWrnA9.js} +1 -1
  102. package/dist/assets/{useActualMatchingMatchDetail-DY4J4jvo.js → useActualMatchingMatchDetail-DglThU_y.js} +1 -1
  103. package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-U0l3bFxn.js → useAiCfoDashboardSuggestedQuestionsChips-B4OxQoVy.js} +1 -1
  104. package/dist/assets/useAskAiCfoHostNavButtonProps-DV6iNvbF.js +1 -0
  105. package/dist/assets/{useChargeCardPusherEvents-Ba7ulirt.js → useChargeCardPusherEvents-Gp7Qmy_v.js} +1 -1
  106. package/dist/assets/{useDeviceId-CgZjgOTE.js → useDeviceId-B6KB8W5T.js} +1 -1
  107. package/dist/assets/{useEmailConnectResultRefresh-BMjAwZWL.js → useEmailConnectResultRefresh-DJgvOf06.js} +1 -1
  108. package/dist/assets/{useEnsureVendorListLoaded-BSdY2ycY.js → useEnsureVendorListLoaded-BbjOUcqm.js} +1 -1
  109. package/dist/assets/{useInitialThreadRequest-E--3OsRP.js → useInitialThreadRequest-BpNcTGLt.js} +1 -1
  110. package/dist/assets/{useTaskManagerAccess-DzHDJDg5.js → useTaskManagerAccess-CP331xWN.js} +1 -1
  111. package/dist/assets/{useTaskManagerPusherEvents-BKgeoe5K.js → useTaskManagerPusherEvents-BmjCwNse.js} +1 -1
  112. package/dist/assets/{utils-BUB23Z37.js → utils-BpLD-La5.js} +1 -1
  113. package/dist/assets/{withTransactionSidePanel-D8qNv0pH.js → withTransactionSidePanel-7NlWHlVm.js} +1 -1
  114. package/dist/assets/{zeni-epic-state-DNah8dni.js → zeni-epic-state-j9Po26Lg.js} +3 -3
  115. package/dist/index.html +1 -1
  116. package/package.json +2 -2
  117. package/dist/assets/AddressRoutes-BTMFaoPH.js +0 -1
  118. package/dist/assets/AddressScreen-CS8bv4zo.js +0 -9
  119. package/dist/assets/AiCfoScreen-CLNLnVZu.js +0 -22
  120. package/dist/assets/BusinessVerificationPageScreen-ByDASFk9.js +0 -9
  121. package/dist/assets/ConnectionAuthScreen-DVi6hxMj.js +0 -11
  122. package/dist/assets/CustomerOnboardingAuthScreen-cEY6ZjCp.js +0 -1
  123. package/dist/assets/FeaturePreviewScreen-e7I8ExNO.js +0 -1
  124. package/dist/assets/HubSpotOAuthCallbackScreen-CU5AUU74.js +0 -1
  125. package/dist/assets/MagicLinkSignInScreen-BRRvS_-g.js +0 -12
  126. package/dist/assets/NotFoundScreen-Da0kpRnr.js +0 -1
  127. package/dist/assets/PerformanceRoutes-4RVlZlPh.js +0 -1
  128. package/dist/assets/SignInScreen-6YsvQGsU.js +0 -1
  129. package/dist/assets/SignOutScreen-50K2PKll.js +0 -9
  130. package/dist/assets/useAskAiCfoHostNavButtonProps-Ds1IYXBl.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-BkGKDMtv.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-uvO3Tp8f.js"><link rel="modulepreload" crossorigin href="/assets/core-BQjZS2e8.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-DNah8dni.js"><link rel="modulepreload" crossorigin href="/assets/mui-CQYR1UI4.js"><link rel="modulepreload" crossorigin href="/assets/analytics-Dt3suRsK.js"><link rel="modulepreload" crossorigin href="/assets/utils-BUB23Z37.js"><link rel="stylesheet" crossorigin href="/assets/index-BQ3cXEYt.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-DZBfE5XI.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-CQfqw6mU.js"><link rel="modulepreload" crossorigin href="/assets/core-BQ6YlWys.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-j9Po26Lg.js"><link rel="modulepreload" crossorigin href="/assets/mui-DYo6Z7Si.js"><link rel="modulepreload" crossorigin href="/assets/analytics-CabaUa1L.js"><link rel="modulepreload" crossorigin href="/assets/utils-BpLD-La5.js"><link rel="stylesheet" crossorigin href="/assets/index-BQ3cXEYt.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.4.16-dev",
3
+ "version": "5.4.17-dev",
4
4
  "files": [
5
5
  "dist/**/*"
6
6
  ],
@@ -30,7 +30,7 @@
30
30
  "@stripe/stripe-js": "^4.4.0",
31
31
  "@zeniai/client-analytics": "2.1.12",
32
32
  "@zeniai/client-epic-state": "5.3.3",
33
- "@zeniai/web-components": "4.4.47",
33
+ "@zeniai/web-components": "4.4.50",
34
34
  "color": "3.1.3",
35
35
  "crypto-js": "4.2.0",
36
36
  "dnd-core": "^16.0.1",
@@ -1 +0,0 @@
1
- import{j as e}from"./liveblocks-CueKZN6-.js";import{A as i}from"./AddressScreen-CS8bv4zo.js";import s from"./NotFoundScreen-Da0kpRnr.js";import"./sentry-uvO3Tp8f.js";import{n as d,o as r}from"./core-BQjZS2e8.js";import"./zeni-epic-state-DNah8dni.js";import"./recharts-DNLEWX3j.js";import"./index-BkGKDMtv.js";import"./mui-CQYR1UI4.js";import"./analytics-Dt3suRsK.js";import"./plaid-Db_iti-b.js";import"./dnd-DccPQo-x.js";import"./stripe-cKAAJElX.js";import"./lottie-D6SetWLo.js";import"./lexical-DQq5IX8L.js";import"./pdf-CqrelrTK.js";import"./utils-BUB23Z37.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]="759b3caa-23db-47f6-8a7f-f9beb9346558",t._sentryDebugIdIdentifier="sentry-dbid-759b3caa-23db-47f6-8a7f-f9beb9346558")}catch{}})();function _(){return e.jsxs(d,{children:[e.jsx(r,{path:"/edit/:addressType/:addressId",element:e.jsx(i,{})}),e.jsx(r,{path:"/new/:addressType",element:e.jsx(i,{})}),e.jsx(r,{path:"*",element:e.jsx(s,{})})]})}export{_ as default};
@@ -1,9 +0,0 @@
1
- import{j as n}from"./liveblocks-CueKZN6-.js";import{a as h}from"./sentry-uvO3Tp8f.js";import{h as T,u as P,g as j,i as E,j as B,l as M}from"./core-BQjZS2e8.js";import{a2 as $,z as D,V as L,a8 as K,a9 as U,e as _,U as S,a4 as z,_ as b,a5 as F}from"./index-BkGKDMtv.js";import{a1z as C,iA as N,fI as R,a1a as V,c7 as G,_g as O,mS as q}from"./zeni-epic-state-DNah8dni.js";import{u as H,n as J}from"./mui-CQYR1UI4.js";import Q from"./NotFoundScreen-Da0kpRnr.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="2acea80b-03d5-4c66-ad37-78d8a71c2a0e",e._sentryDebugIdIdentifier="sentry-dbid-2acea80b-03d5-4c66-ad37-78d8a71c2a0e")}catch{}})();const W=J.div`
2
- display: flex;
3
- height: 100vh;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- `,X=M((function(e,s){const{addressId:o,isSubPage:i,addressType:c}=s,l=R(e),t=s.roleMap!=null&&V(s.roleMap),d=i||c==="user_address"||G(l?.userRole??[])||t?void 0:"readonly";if(o==null){const a=O(c,e);return{addressToEdit:a?.addressToCreate,loadingState:a?.status?.fetchState,googleAPIKey:b.googleMapsAPIKey,isDisabled:d,isSubPage:i,dontShowSaveConfirmationPopup:s.dontShowSaveConfirmation}}const r=C(e,o);return{addressToEdit:r.address,loadingState:r.fetchState,googleAPIKey:b.googleMapsAPIKey,isDisabled:d}}),(function(e,s){const{navigate:o,location:i,addressType:c}=s,l=t=>{if(t==="express-pay")o("../express-pay/add-wire");else{const d=i.state,r=F(d?.pathnameStackToGoBack);let a=r.poppedPathname??v();const u=d?.queryParams;if(u){const g=new URLSearchParams(u).toString();g&&(a=`${a}?${g}`)}o(a,{state:{pathnameStackToGoBack:r.newStack}})}};return{onSubmitHandler:t=>{const d=Y(t);e(q({addressType:c,addressToCreate:d})),_?.trackSaveAddressClicked(S.Event.saveAddressClicked,{street:t.street.addressString,city:t.city,state:t.state,country:t.country.selectedOption??"",postalCode:t.postalCode,suite:t.suite,secondaryInfo:t.secondaryInfo}),l(s.bankAccountContext)},onCancel:()=>{l(s.bankAccountContext)}}}))(z);function ne({isSubPage:e,hideAddressSubTitle:s=!1,hideAddressBackButton:o=!1,dontShowSaveConfirmation:i,accountContext:c,addressTypeParam:l}){const t=T(),d=P(),r=j(),{addressId:a,addressType:u}=E(),g=$(),w=H(),I=D.getSignedInUser(),[p,k]=h.useState(a==null),f=B((m=>a!=null?C(m,a).fetchState:"Not-Started")),x=L();if(I==null)throw Error("Can't access address page without signing in...");const A=m=>m.trackPageLoaded(a!=null?S.Event.editAddress:S.Event.addAddress),y=l??u;return h.useEffect((()=>{p||a==null||(k(!0),d(N(a,!1)))}),[p,a,d]),y==null||y.match(/(user_address|company_address|company_registered_address|vendor_address|officer_([1-9]|10)_address|invoicing_customer_billing_address|invoicing_subscription_shipping_address|invoicing_business_address)$/g)?!p&&f==="Not-Started"||p&&f==="In-Progress"?n.jsx(K,{fetchState:f,style:{backgroundColor:w.colors.grey5}}):a!=null&&f==="Error"?(t(`${v(1)}/new`,{replace:!0}),n.jsx(n.Fragment,{})):n.jsxs(n.Fragment,{children:[n.jsx(U,{analytics:_,onLoad:A}),n.jsx(W,{windowSize:g,children:n.jsx(X,{location:r,navigate:t,isSubPage:e===!0,hideAddressBackButton:o,hideAddressSubTitle:s,addressId:a,addressType:y,dontShowSaveConfirmation:i,bankAccountContext:c,roleMap:x?.loggedInUserRoleMap})})]}):n.jsx(Q,{})}const v=(e=2)=>{let s="../";for(let o=0;o<e;o++)s=`${s}../`;return s},Y=e=>({street:[e.street.addressString,e.suite,e.secondaryInfo],city:e.city,state:e.state,country:e.country.selectedOption??"",countryCode:e.countryCode,postalCode:e.postalCode,latitude:e.street.addressValue?.locationLat,longitude:e.street.addressValue?.locationLng});export{ne as A,Y as t};
@@ -1,22 +0,0 @@
1
- import{j as S}from"./liveblocks-CueKZN6-.js";import{a}from"./sentry-uvO3Tp8f.js";import{u as Qt,h as Lt,i as Bt,g as Mt,j as v,l as Ft}from"./core-BQjZS2e8.js";import{ec as Vt,j as $t,q as Nt,ed as Gt,z as qt,a2 as Ht,ee as zt,ef as Wt,eg as Jt,aE as Be,eh as We,ei as Xt,aD as Je,a5 as ge,a9 as ce,e as V,ej as me,ek as Yt,el as Zt,ax as Kt,U as es,w as ts,em as ss,en as as,aj as ns,eo as os,ep as is,eq as rs,er as ls,v as us,aw as Me,es as ds}from"./index-BkGKDMtv.js";import{fH as F,gw as R,UZ as cs,a3l as ms,a3m as Ss,jX as hs,a3n as ps,jU as fs,a3o as Se,jA as X,k1 as Y,jG as Ie,jn as he,jl as gs,k3 as Is,jP as Xe,V5 as Fe,gy as $,gN as Cs,V4 as ks,US as Ve,fI as bs,je as vs,a3p as Es,gb as Ps,jw as ws,js as ys,fJ as pe,gi as xs,a3q as Rs,a3r as Ts,a3s as Os,gx as js,gr as $e,kf as Ne,gt as Ge,gz as As,a3t as qe,k4 as Ds,jp as _s,jJ as Us,j$ as He,jM as Qs,gA as Ls,gB as Bs,gC as Ms,gD as Fs}from"./zeni-epic-state-DNah8dni.js";import{D as Vs,n as N,S as $s,v as Ns}from"./mui-CQYR1UI4.js";import{u as Gs}from"./useAiCfoDashboardSuggestedQuestionsChips-U0l3bFxn.js";import{p as qs}from"./pathToGoBack-nfdDmjjO.js";import{k as Hs}from"./routePaths-CiV55sI1.js";import{u as zs}from"./useTaskManagerPusherEvents-BKgeoe5K.js";import"./recharts-DNLEWX3j.js";import"./analytics-Dt3suRsK.js";import"./plaid-Db_iti-b.js";import"./dnd-DccPQo-x.js";import"./stripe-cKAAJElX.js";import"./lottie-D6SetWLo.js";import"./lexical-DQq5IX8L.js";import"./pdf-CqrelrTK.js";import"./utils-BUB23Z37.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new t.Error().stack;r&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[r]="585a61ba-d1b3-48a0-bac4-328c2f2621db",t._sentryDebugIdIdentifier="sentry-dbid-585a61ba-d1b3-48a0-bac4-328c2f2621db")}catch{}})();const Ws=["claimed","running","succeeded","failed","timeout"],fe=t=>typeof t=="string"&&t!=="",Ye="chat-response-generated";function Js(t,r){if(r.kind!=="save")return;if(r.fetchState==="In-Progress")return{status:"saving"};if(r.fetchState==="Error")return{status:"failed"};if(r.fetchState!=="Completed")return;const h=R(t).skills.find((s=>s.macroId===r.savedMacroId));return h==null?void 0:{status:"saved",command:h.name}}const Xs=Ft((function(t,r){const h=F(t),s=r.isSubmitting,d=h.uiState?.currentChatSessionId,l=d!=null?xs(t.aiCfoState,d):[],i=as(t,{allUsers:r.allUsers,onCardPolicyVendorSearchTextChange:r.onCardPolicyVendorSearchTextChange}),g=Rs(t),p=Ts(t),f=Os(t);return{showSampleQuestions:r.sessionFromUrl==="explore"&&h.uiState.currentChatSessionId==null,aiCfoView:h,isSubmitting:s,isNewChatSession:r.sessionFromUrl==="new_chat"||r.sessionFromUrl==="explore",isFullView:!0,tableDownloadEndPoint:`${ns}/tableDownload`,exportDownloadEndPoint:rs(),emailLinkQuestion:r.emailLinkQuestion,autoSubmitEmailLinkQuestion:r.autoSubmitEmailLinkQuestion,onEmailLinkQuestionProcessed:r.onEmailLinkQuestionProcessed,routedInitialQuestionSource:r.routedInitialQuestionSource,routedInitialQuestionSuggestionIndex:r.routedInitialQuestionSuggestionIndex,exploreSuggestedPromptQuestions:r.exploreSuggestedPromptQuestions,exploreSuggestedPromptQuestionsLoading:r.exploreSuggestedPromptQuestionsLoading,isFileUploadEnabled:r.isFileUploadEnabled,isUploadPromoVisible:r.isUploadPromoVisible,onUploadPromoClose:r.onUploadPromoClose,skills:R(t).skills,skillSaveState:Js(t,f),skillsEnabled:R(t).skillsEnabled,skillsList:R(t).skills,skillsListError:R(t).fetchState==="Error",skillsListLoading:R(t).fetchState==="In-Progress",skillsCanPublish:R(t).canPublish,skillSaving:f.fetchState==="In-Progress",skillSaveError:f.fetchState==="Error",skillVersionHistory:g.macroId!=null?{macroId:g.macroId,versions:g.versions,error:g.fetchState==="Error",loading:g.fetchState==="In-Progress"}:void 0,skillRestoreBody:p.macroId!=null&&p.version!=null?{macroId:p.macroId,version:p.version,instructions:p.instructions,error:p.fetchState==="Error",loading:p.fetchState==="In-Progress"}:void 0,skillDetail:Y(t).detail,skillDetailError:Y(t).fetchState==="Error",skillDetailLoading:Y(t).fetchState==="In-Progress",syntheticAnswers:l,resolveSyntheticAnswerCardTile:is(t),resolveSyntheticAnswerPolicyTile:os(t),...i}}),(function(t,r){const{location:h,currentTenant:s,userId:d,navigate:l,currentChatSessionId:i,allSessionsWithOrderedQuestionAnswers:g,isAiCardCreationEnabled:p,isCardPolicyEnabled:f,setIsAiCfoOpen:L}=r,B=s.tenantEmailDomain;return{onEventReceived:(n,o)=>{if(n===Ye&&typeof o.text=="string"&&typeof o.metadata=="object"){const c=o,O=Ls(c.type),E=c.metadata.chat_session_id??null,{currentChatSession:j,currentQuestionAnswer:G,currentQuestionAnswerSummary:A}=Je(g,E);O!=="answer"?V.trackAICFOChatResponseGenerated(O,G?.question.questionText??"",c.text,E,ds(A,j),c.metadata.message_id??null):V.trackAICFOChatAnswerGenerated(c.text,G?.question.questionText??"",(c.follow_up_questions?.length??0)>0,!!c.assumptions,!!c.insights,c.visualization!=null,Bs(c.visualization?.type??"")??null,E,c.summarized_title,c.metadata.message_id??null),t(Ms({chatSessionId:c.metadata.chat_session_id,responseType:O,fetchState:{fetchState:"Completed",error:void 0}})),t(Fs({chatSessionId:c.metadata.chat_session_id,answerPayload:c,userId:d}))}},onSubmit:(n,o,c,O,E)=>{n&&Me(t,n,o,i,g,d,O,c,void 0,E)},onFetchSkills:()=>{t(Xe())},onOpenSkill:n=>{t(Ie({macroId:n})),t(Qs({macroId:n}))},onSaveSkill:(n,o)=>{t(He({draft:n,macroId:o}))},onSaveSkillDraft:n=>{const o=n.displayName?.trim()??"",c=n.name?.trim()??"";t(He({draft:{name:o.length>0?o:c,description:n.description?.trim()??null,instructions:n.instructions,visibility:"private"}}))},onFetchSkillVersionBody:(n,o)=>{t(Us({macroId:n,version:o}))},onDeleteSkill:n=>{t(_s({macroId:n}))},onSetSkillVisibility:(n,o)=>{t(Ds({macroId:n,visibility:o}))},onCloseSkillDetail:()=>{t(qe())},onRunSkill:(n,o)=>{t($()),t($e()),Me(t,o,"user_input",void 0,g,d,void 0,void 0,void 0,n),t(qe())},updateCurrentInput:n=>{t(Ge(n))},onStopSubmit:()=>{},onUpdateScrollYOffset:n=>{t(As(n))},onSelectSampleQuestion:()=>{},onBackClick:()=>{l(-1)},onCloseClick:()=>{const n=ge(h.state?.pathnameStackToGoBack),o=n.poppedPathname??qs(1);l(o,{state:{...h.state,pathnameStackToGoBack:n.newStack}}),t(Ge(""))},togglePageView:()=>{const n=ge(h.state?.pathnameStackToGoBack),o=n.poppedPathname??`/${s.tenantEmailDomain}/dashboard`;l(o,{state:{...We(h.state),pathnameStackToGoBack:n.newStack,message:"open_ai_cfo_drawer"}}),L(!0)},onCopy:()=>{},onThumbsUp:(n,o)=>{i!=null&&o?.messageId!=null&&t(Ne(i,o.messageId,"positive",o.questionText,o.answerText))},onThumbsDown:(n,o)=>{i!=null&&o?.messageId!=null&&t(Ne(i,o.messageId,"negative",o.questionText,o.answerText))},onTogglePageView:()=>{l(-1)},onNewChatClick:()=>{t($()),i!=null&&t($e());const n=us(h.state?.pathnameStackToGoBack,h.pathname);l(`/${s.tenantEmailDomain}/ai-cfo/new_chat`,{state:{pathnameStackToGoBack:n.slice(0,-1),referrer:"Sidebar"}})},onToggleCotCollapsed:(n,o)=>{t(js({questionAnswerId:n,isCollapsed:o}))},onMenuClick:r.onMenuClick,...ls(t,{isAiCardCreationEnabled:p,isCardPolicyEnabled:f,currentChatSessionId:i,onAfterCardsCreationSubmit:()=>{L(!0),l(`/${B}/cards`,{state:{...h.state}})},onAfterCardPolicySubmit:()=>{L(!0),l(`/${B}/cards/policy`,{state:{...h.state}})}})}}))(ts(ss)),ka=({isFileUploadEnabled:t})=>{const r=Vt(),{setIsAiCfoOpen:h}=$t(),s=Qt(),d=Lt(),{session_id:l}=Bt(),i=Mt(),g=new URLSearchParams(i.search).get("routine")??void 0,[p,f]=a.useState(!1),L=v((e=>F(e).uiState.isSkillsBrowserOpen===!0)),B=v((e=>R(e).skillsEnabled)),n=v((e=>F(e).uiState.isRoutinesBrowserOpen===!0)),o=v((e=>cs(e))),c=v((e=>ms(e))),O=v((e=>Ss(e))),[E,j]=a.useState(void 0),[G,A]=a.useState(!1),[Ze,Ce]=a.useState(void 0),Ke=a.useCallback((()=>{Ce(void 0),j(void 0),A(!0)}),[]),et=a.useCallback((e=>{j(e),A(!0)}),[]),tt=a.useCallback((()=>{j(void 0),A(!1)}),[]),st=a.useCallback((e=>{s(hs({draft:e,...E!=null&&{scheduleId:E.scheduleId}})),j(void 0),A(!1)}),[s,E]),P=g,ke=o.routines.find((e=>e.scheduleId===P)),C=v((e=>ps(e))),at=a.useCallback((e=>{s(fs({scheduleId:e.scheduleId}))}),[s]);a.useEffect((()=>{s(P!=null?X({scheduleId:P}):Se())}),[s,P]);const M=ke?.macroId,nt=v((e=>Y(e))),be=M!=null&&M!==""&&nt.fetchState==="Not-Started";a.useEffect((()=>{be&&M!=null&&s(Ie({macroId:M}))}),[s,be,M]);const ot=v((e=>F(e).uiState.currentChatSessionId))??l,k=o.routines.find((e=>e.scheduleId===g))??o.routines.find((e=>e.scheduleId===Nt(ot))),T=k?.scheduleId??null,[ve,it]=a.useState(!0);a.useEffect((()=>{T!=null&&s(X({scheduleId:T}))}),[s,T]);const Ee=C.runs.some((e=>e.status==="claimed"||e.status==="running"))===!0;a.useEffect((()=>{if(P==null||Ee!==!0)return;const e=window.setInterval((()=>{s(X({scheduleId:P})),s(he())}),5e3);return()=>window.clearInterval(e)}),[s,Ee,P]);const rt=a.useCallback((e=>{Ce(e),j(void 0),A(!0)}),[]),lt=a.useCallback((e=>{s(gs({scheduleId:e.scheduleId}))}),[s]),ut=a.useCallback(((e,m)=>{s(Is({enabled:m,scheduleId:e.scheduleId}))}),[s]);a.useEffect((()=>{n&&s(he())}),[s,n]);const Pe=v((e=>R(e).skills)),Z=a.useMemo((()=>Pe.map((e=>({macroId:e.macroId,name:e.displayName??e.name})))),[Pe]),dt=a.useCallback((e=>{s(Ie({macroId:e}))}),[s]),K=a.useCallback((()=>{s(Xe()),s(Fe())}),[s]),ct=a.useCallback((()=>{s($())}),[s]),{allUsers:mt,isAiCardCreationEnabled:St,isCardPolicyEnabled:ht,onCardPolicyVendorSearchTextChange:pt}=Gt();a.useEffect((()=>{s(Cs())}),[s]);const I=v((e=>F(e))),y=qt.getSignedInUser();a.useEffect((()=>l==="routines"?(s($()),void s(ks())):l==="skills"?(s(Se()),s(Ve()),void s(Fe())):(T==null&&s(Se()),s(Ve()),void s($()))),[s,T,g,l]);const ft=Ht(),D=Kt(ft),b=v((e=>bs(e))),u=I.uiState.currentChatSessionId,w=b.tenantEmailDomain,Q=w!=null&&w!=="",ee=a.useCallback((e=>{Q&&d(`/${w}/ai-cfo/routines?routine=${encodeURIComponent(e.scheduleId)}`)}),[Q,d,w]),te=a.useCallback((()=>{Q&&d(`/${w}/ai-cfo/routines`)}),[Q,d,w]),se=a.useCallback(((e,m)=>{const _=e.sessionId??C.sessionId;_!=null&&Q&&d(`/${w}/ai-cfo/${_}?routine=${encodeURIComponent(m)}`)}),[Q,d,C.sessionId,w]),gt=a.useMemo((()=>k==null?void 0:{error:C.fetchState==="Error",kind:"routineRuns",loading:C.fetchState==="In-Progress"||C.fetchState==="Not-Started",routineName:k.name,schedule:zt(k),skillName:k.isAdHoc===!0?void 0:Z.find((e=>e.macroId===k.macroId))?.name,onOpenSkill:k.isAdHoc===!0?void 0:K,runs:C.runs,tzName:k.tzName,unreadCount:k.unreadRuns,open:ve,onToggle:()=>it((e=>!e)),onOpenRun:e=>se(e,k.scheduleId),onOpenRoutine:()=>ee(k),onOpenRoutines:te}),[K,te,ee,se,ve,k,C.fetchState,C.runs,Z]),{handleUploadPromoClose:It,isUploadPromoVisible:Ct}=Wt({isFileUploadEnabled:t,tenantEmailDomain:w}),ae=Jt({currentTenant:b,currentChatSessionId:u,aiCfoView:I,skillsEnabled:B,onCloseSkills:ct,onOpenSkills:K}),{isSuggestedQuestionsLoading:kt,suggestedPromptQuestions:bt}=Gs(),q=i.state,H=q?.aiCfoInitialQuestion,we=!!q?.aiCfoShouldSubmit;a.useEffect((()=>{const e=i.state;if(e?.[Be]!==!0)return;f(!0);const m={...e};delete m[Be],d(i,{replace:!0,state:m})}),[i.pathname,i.search,i.state,d]);const[vt,ne]=a.useState(null),[Et,oe]=a.useState(!1),[Pt,ie]=a.useState(void 0),[wt,re]=a.useState(void 0),ye=a.useRef(!1);a.useEffect((()=>{if(!ye.current&&H!=null&&H!==""){const e=i.state;ne(H),oe(we),ie(e?.aiCfoInitialSubmissionSource!=null?e.aiCfoInitialSubmissionSource:void 0);const m=e?.aiCfoSuggestionIndex;re(typeof m=="number"?m:void 0),ye.current=!0}}),[H,we,i.state]);const yt=a.useCallback((()=>{ne(null),oe(!1),ie(void 0),re(void 0),d(i.pathname,{replace:!0,state:We(i.state)})}),[i.pathname,i.state,d]),xe=a.useMemo((()=>new URLSearchParams(i.search)),[i.search]),Re=xe.get("ref")??q?.aiCfoRef,le=xe.get("emailRefId")??q?.aiCfoEmailRefId,Te=a.useRef(!1);a.useEffect((()=>{Te.current||Re!=="month-end-email"||le==null||u!=null||y==null||(s(vs("controller",y.userId,le,"MONTH_END_EMAIL")),Te.current=!0)}),[Re,le,u,s,y]);const z=I.uiState.lastContextMessage;a.useEffect((()=>{z!=null&&z!==""&&u!=null&&(ne(z),oe(!0),ie(void 0),re(void 0),s(Es()))}),[z,u,s]);const xt=b.masterTOSInfo,x=xt?.isMasterTOSAccepted??!1,{visitedSessions:Oe}=Xt(u),W=I.fetchState,J=I.uiState.chatSessionsNextPageToken.hasMore||!I.uiState.chatSessionsFirstPageFetched,je=u!=null?I.fetchChatSessionHistoryByChatSessionId?.[u]?.fetchState??"Not-Started":"Not-Started",Ae=u==null||(I.uiState.chatHistoryNextPageToken[u]?.hasMore??!0),De=I.allSessionsWithOrderedQuestionAnswers,{currentSessionQuestionAnswers:Rt}=Je(De,u),Tt=Rt.length===0;a.useEffect((()=>{x||D||d("../dashboard",{state:{...i.state,message:"open_ai_cfo_drawer"}})}),[x,D,d,i.state]);const Ot=a.useCallback((()=>{const e=ge(i.state?.pathnameStackToGoBack),m=b.tenantEmailDomain;d(e.poppedPathname??(m!=null?`/${m}/dashboard`:".."),{state:{...i.state,pathnameStackToGoBack:e.newStack}})}),[b.tenantEmailDomain,i.state,d]),_e=a.useRef(void 0),Ue=a.useRef(void 0);a.useEffect((()=>{const e=l!==_e.current,m=u!==Ue.current;_e.current=l,Ue.current=u,l!==u&&(!e||l==null||Hs(l)?m&&u!=null&&d(`../ai-cfo/${u}`,{state:{...i.state}}):s(Ps({sessionId:l,agentId:"controller"})))}),[u,l]);const jt=a.useMemo((()=>({events:Oe.map((e=>`private-encrypted-chat-${e}.${Ye}`)),eventCallback:(e,m,_)=>_.onEventReceived(e,m)})),[Oe]);a.useEffect((()=>{W!=="In-Progress"&&J&&s(ws())}),[W,J,s]),a.useEffect((()=>{u!=null&&je!=="In-Progress"&&Ae&&y!=null&&(l===u||W==="Completed"&&!J)&&s(ys(u,y.userId))}),[je,W,Ae,J,u,y,l,s]);const ue=y?.userId,At=a.useMemo((()=>{return ue==null?[]:[(e=ue,`private-encrypted-routines-${e}.routine-run-updated`)];var e}),[ue]),Qe=a.useCallback((e=>{const m=e!=null&&(e===P||e===T);(n||m)&&s(he()),m&&s(X({scheduleId:e}))}),[s,n,T,P]);zs({events:At,onSubscribed:()=>Qe(P??T),onEvent:(e,m)=>{const _=(de=>{if(de==null||typeof de!="object")return null;const U=de;return fe(U.schedule_id)&&fe(U.run_id)?{scheduleId:U.schedule_id,runId:U.run_id,status:Ws.find((Ut=>Ut===U.status))??null,finishedAt:fe(U.finished_at)?U.finished_at:null}:null})(m);_!=null&&Qe(_.scheduleId)}});const Le=e=>e.trackAICFOOnboardingScreenStateChanged("open","first_visit");if(y==null||l==null)throw Error("Can't access AI Controller page without signing in...");const Dt=u!=null&&I.responseStateByChatSessionId?.[u]?.answer?.fetchState==="In-Progress";if(!x&&D)return S.jsxs(Zs,{children:[S.jsx(ce,{analytics:V,onLoad:Le}),ae.drawerElement,S.jsx(Ks,{children:S.jsx(ze,{children:S.jsx(me,{isTOSAccepted:!1,acceptMasterTOSState:I.masterTOSAcceptanceState,onCloseClick:Ot,onCompleteClick:()=>{b.userRoleId!=null&&s(pe(b.userRoleId))}})})})]});const _t=S.jsxs(S.Fragment,{children:[p&&!x?S.jsx(ce,{analytics:V,onLoad:Le}):null,S.jsx(me,{isTOSAccepted:x,acceptMasterTOSState:I.masterTOSAcceptanceState,showHeader:!1,togglePageView:x?()=>f(!1):void 0,onCloseClick:()=>f(!1),onCompleteClick:()=>{x||b.userRoleId==null||s(pe(b.userRoleId)),f(!1)}})]});return S.jsxs(S.Fragment,{children:[S.jsxs(Ys,{children:[S.jsx(ce,{analytics:V,onLoad:e=>e.trackPageLoaded(es.Event.aiCFOPage)}),D&&ae.drawerElement,S.jsx(Xs,{answerExportEndPoint:r,...jt,currentChatSessionId:u,allSessionsWithOrderedQuestionAnswers:De,allUsers:mt,isAiCardCreationEnabled:St,isCardPolicyEnabled:ht,openOnboardingPage:()=>f(!0),userId:y.userId,setIsAiCfoOpen:h,navigate:d,sessionFromUrl:l,location:i,isSubmitting:Dt,isEmptyChatWithSession:Tt,currentTenant:b,emailLinkQuestion:vt??void 0,autoSubmitEmailLinkQuestion:Et,onEmailLinkQuestionProcessed:yt,routedInitialQuestionSource:Pt,routedInitialQuestionSuggestionIndex:wt,onCardPolicyVendorSearchTextChange:pt,onMenuClick:D?ae.open:void 0,isFileUploadEnabled:t,isUploadPromoVisible:Ct,onUploadPromoClose:It,exploreSuggestedPromptQuestions:bt,exploreSuggestedPromptQuestionsLoading:kt,isSkillsOpen:L,isRoutinesOpen:n,routineCanCreate:O,routineEditing:E,routineEditorOpen:G,routineListError:o.fetchState==="Error",routineListLoading:o.fetchState==="In-Progress",routineMaxRoutines:o.maxRoutines,routineSaveError:c.fetchState==="Error",routineSaving:c.fetchState==="In-Progress",routineSchedulableSkills:Z,routines:o.routines,onRoutineCreate:Ke,onRoutineDelete:lt,routineHistoryError:C.fetchState==="Error",routineHistoryLoading:C.fetchState==="In-Progress",chatSidePanel:gt,routineDetail:ke,routineRunningScheduleId:c.runningScheduleId,routineRuns:C.runs,onRoutineEdit:et,onRoutineOpenRun:(e,m)=>se(m,e.scheduleId),onRoutineRun:at,onRoutineCloseDetail:te,onRoutineDraft:rt,routineDraftPrompt:Ze,onRoutineOpenDetail:ee,onRoutineEditorCancel:tt,onRoutineLoadSkillInstructions:dt,onRoutineSave:st,onRoutineSetEnabled:ut,isCreateSkillEnabled:B,promoDismissalScope:w}),p&&D?S.jsx(Vs,{anchor:"right",open:p,transitionDuration:250,PaperProps:{component:ea,style:{width:"100%"}},slotProps:{backdrop:{style:{backgroundColor:"transparent",cursor:"pointer"}}},onClose:()=>f(!1),children:S.jsx(ze,{onClick:e=>e.stopPropagation(),children:S.jsx(me,{isTOSAccepted:x,acceptMasterTOSState:I.masterTOSAcceptanceState,onCloseClick:()=>f(!1),onCompleteClick:()=>{x||b.userRoleId==null||s(pe(b.userRoleId)),f(!1)}})})}):null]}),p&&!D?S.jsx(Yt,{open:p,onClose:()=>f(!1),children:S.jsx(Zt,{children:_t})}):null]})},ze=N($s)`
2
- display: flex;
3
- min-height: 100%;
4
- flex-direction: column;
5
- `,Ys=N.div`
6
- height: 100vh;
7
- width: 100%;
8
- `,Zs=N.div`
9
- height: 100vh;
10
- width: 100%;
11
- display: flex;
12
- flex-direction: column;
13
- min-height: 0;
14
- `,Ks=N.div`
15
- flex: 1;
16
- min-height: 0;
17
- display: flex;
18
- flex-direction: column;
19
- `,ea=N(Ns)`
20
- box-shadow: ${({theme:t})=>t.colors.elevation2};
21
- color: ${({theme:t})=>t.colors.grey4};
22
- `;export{ka as default};
@@ -1,9 +0,0 @@
1
- import{a as O}from"./sentry-uvO3Tp8f.js";import{u as q,j as h,h as se,g as oe,i as ie,N as re,l as ce}from"./core-BQjZS2e8.js";import{fI as z,If as ue,It as de,LF as le,Ov as pe,P9 as fe,P_ as me,a0T as ye,C8 as Se,Tc as ge,a14 as Ie,a15 as he,a16 as be,a17 as Te,a18 as De,a19 as Ce,a1a as Oe,YE as ke,a1b as Ve,MR as Ae,MJ as ve,a1c as we,MN as Ne,mS as Fe,gJ as _e,gI as Ee,gH as xe,vc as Re,v3 as ze,v0 as Pe,mK as Be,Ch as Me,Cf as P,bE as B,Ct as M,cv as Ue}from"./zeni-epic-state-DNah8dni.js";import{b0 as Le,V as je,p as Ge,au as Ke,z as R,a9 as qe,e as U,D as E,U as x,d0 as Je,af as Ze,v as L,bg as j}from"./index-BkGKDMtv.js";import{n as $e}from"./mui-CQYR1UI4.js";import{j as A}from"./liveblocks-CueKZN6-.js";import{d as G}from"./routePaths-CiV55sI1.js";import{M as He}from"./MobileAppDrawer-BUD0j7G2.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="3fa0ab64-e01e-40a0-8647-186a4fbaf628",e._sentryDebugIdIdentifier="sentry-dbid-3fa0ab64-e01e-40a0-8647-186a4fbaf628")}catch{}})();function it(){const e=q(),r=h((u=>z(u))),a=r?.tenantId,{isApprovalRulesV3Enabled:s,isLoading:l}=Le(a),p=h((u=>u.billPaySetupApproverViewState.fetchState));O.useEffect((()=>{a==null||l||p==="Not-Started"&&e(ue(!0,!0,s))}),[a,l,s,p,e])}function K(e,r,a,s=!1){switch(r){case"zeni_accounts":e(me(a,!0,s));break;case"zeni_treasury":e(fe(a,!0,s));break;case"reimbursement":e(pe(a,!0,s));break;case"charge_cards":e(le(a,!0,s));break;default:e(de(a,!0,s))}}const We=$e.div`
2
- display: flex;
3
- min-height: 100%;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- `,Ye=ce((function(e,r){const{businessVerificationDetails:a}=r,s=z(e),l=R.getSignedInUser(),p=s.tenantId,u={userId:l?.userId??"",sessionId:l?.zeniSessionId??"",tenantId:p??""},b=Oe(r.roleMap)&&a.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",t=ke(e.companyConfigState),o=Ve(e.userRoleConfigState);return{businessVerificationDetails:a,verficationDetailsFetchState:a.fetchState,isRefreshingViewInBackground:a.isRefreshingViewInBackground,allNationalityCountries:a.allNationalityCountries,filesEndPoint:`${Ze.fileMicroServiceBaseUrl}`,authParams:u,isDisabled:b,allIndustries:t.companyIndustries??[],companyTitles:o.companyTitles}}),(function(e,r){const{companyId:a,productType:s,currentTenant:l,navigate:p,location:u}=r,{tenantEmailDomain:b}=l;return{onCompanyDetailsChanged:t=>{const{companyDescription:o,companyIndustry:f,companyIndustryType:k,companyLegalName:V,companyTaxId:y,companyWebsite:m,companyPhone:S,primaryContactEmail:d,primaryContactName:i,primaryContactUserId:T,primaryContactSyncToken:D,syncToken:c,fileIds:C,incDate:n,typeOfIncorporation:g,stateOfIncorporation:v,sourceOfFunds:w,companySubIndustry:N,countriesOfOperations:I,companySourceOfFunds:J,companySourceOfFundsDescription:Z,transactionVolume:$,transactionVolumeDescription:H,purposeOfAccount:W,purposeOfAccountDescription:Y,regulatedStatus:Q,regulatedStatusDescription:X,usNexus:ee,usNexusTypes:te}=t,F=k?.selectedOption,ae={companyId:a,companyDescription:o,companyIndustry:f.selectedOption,companyIndustryType:F==null||F===""?void 0:F,companyLegalName:V,taxIdOrEIN:y,website:m!=""&&m!=null?Ue(m):void 0,phone:S,syncToken:c,fileIds:C,incDate:n!=null?B(n?.toString()):n,typeOfIncorporation:g?.selectedOption??"",stateOfIncorporation:v?.selectedOption??"",sourceOfFunds:w?.selectedOption??"",companySubIndustry:N?.selectedOption??"",countriesOfOperations:I?.selectedOptions.map((_=>_.length===2?_:j(_)))??[],companySourceOfFunds:J?.selectedOption??"",companySourceOfFundsDescription:Z,transactionVolume:$?.selectedOption??"",transactionVolumeDescription:H,purposeOfAccount:W?.selectedOption??"",purposeOfAccountDescription:Y,regulatedStatus:Q??"",regulatedStatusDescription:X,usNexus:ee,usNexusTypes:te?.selectedOptions??[]},ne={userId:T,firstName:i.firstName,lastName:i.lastName,email:d,syncToken:D};e(M({companyDetails:ae,primaryContactDetails:ne}))},onCompanyOfficerUpdated:t=>{const o=t.map((f=>{const{officerType:k,userId:V,name:y,email:m,nationalityCountryCode:S,ssn:d,dob:i,phone:T,syncToken:D,selectDocument:c,role:C,ownership:n,isSelectedForVerification:g,userVerificationStatus:v,treasuryUserVerificationStatus:w,fileIds:N}=f;let I;return c.selectDocumentType==="driverLicense"?I="driving_license":c.selectDocumentType==="passport"?I="passport":c.selectDocumentType==="stateId"?I="id_document":c.selectDocumentType==="ssnCard"&&(I="social_security_card"),{officerType:k,userId:V,firstName:y.firstName,lastName:y.lastName,email:m,ssn:d,nationalityCountryCode:S?.selectedOption!=null?j(S.selectedOption):void 0,phone:T,birthday:i!=null?B(i?.toString()):i,syncToken:D,titleAtCompany:C.selectedOption,ownershipInCompany:n,documentTypeSelectedForVerification:I,isSelectedForVerification:g,userVerificationStatus:v,treasuryUserVerificationStatus:w,fileIds:N,additionalDocumentTypesRequestedForVerification:[],additionalSubmittedDocumentsForVerificationFileIds:[],areAdditionalDocumentsRequestedForVerification:!1,areAdditionalDocumentsSubmittedForVerification:!1}}));e(M({officers:o}))},onSaveDetailsClick:t=>{e(P(a,t,s))},onSendForVerificationClick:t=>{e(P(a,t,s,!0))},onAddressClick:t=>{const o=G(b,t),f=L(u.state?.pathnameStackToGoBack,u.pathname);p(o,{state:{pathnameStackToGoBack:f}})},onRegisteredAddressClick:t=>{const o=G(b,t),f=L(u.state?.pathnameStackToGoBack,u.pathname);p(o,{state:{pathnameStackToGoBack:f}})},onBackClick:()=>{e(Me({companyId:a})),p("../setup")},updateFilesEntity:t=>{e(Be({files:t}))},onDeleteFile:t=>{e(Pe(t))},onDeleteFileList:t=>{e(ze(t))},onEditFileName:(t,o)=>{e(Re(t,o.split(".")[0]))},onGetOtp:t=>{e(xe(t,"SpendManagementSetup"))},onResendOtp:t=>{e(Ee(t,"SpendManagementSetup"))},onVerifyOtp:(t,o)=>{e(_e(t,o,"SpendManagementSetup"))},saveNewAddressInLocalStore:(t,o)=>{e(Fe({addressType:t,addressToCreate:o}))},onIdentityDocumentUploadedForAutofill:t=>{if(a==null)return;const o=we(t.documentType);o!=null&&e(Ne({target:"setup",companyId:a,officerType:t.officerType,fileId:t.fileId,documentType:o}))},onCompanyDocumentUploadedForAutofill:t=>{a!=null&&e(ve({target:"setup",companyId:a,fileId:t.fileId,documentType:t.documentType}))},onResetKycKybClick:()=>{e(Ae())}}}))(Je),rt=({productType:e})=>{const r=se(),a=oe(),s=q(),[l,p]=O.useState(!1),[u,b]=O.useState(!1),{tenantEmailDomain:t}=ie(),o=je(),{useDynamicConfig:f}=Ge(),{configValue:k}=f(Ke.zeniAccountsConfig),V=ye(k),y=h((n=>{switch(e){case"zeni_accounts":return n.zeniAccountSetupViewState.fetchState;case"reimbursement":return n.remiSetupViewState.fetchState;case"charge_cards":return n.chargeCardSetupViewState.fetchState;case"zeni_treasury":return n.treasurySetupViewState.fetchState;default:return n.billPaySetupViewState.fetchState}})),m=h((n=>n.companyConfigState.fetchState)),S=h((n=>n.userRoleConfigState.fetchState)),d=h((n=>z(n))),i=d.companyId??R.getSignedInUserTenant(t)?.companyId;O.useEffect((()=>{m==="Not-Started"&&s(Se()),S==="Not-Started"&&s(ge(!0))}),[m,S,s]),O.useEffect((()=>{l||y!=="Not-Started"||i==null||(p(!0),K(s,e,i))}),[l,y,i,s]);const T=h((n=>{switch(e){case"zeni_accounts":return De(n,i);case"zeni_treasury":return Te(n,i);case"charge_cards":return be(n,i);case"reimbursement":return he(n,i);default:return Ie(n,i)}})),D=T.kycKybResetStatus.fetchState;if(O.useEffect((()=>{D==="Completed"&&i!=null&&(K(s,e,i,!0),s(Ce()))}),[D,i,e,s]),R.getSignedInUser()==null)throw Error("Can't access business verification without signing in...");let c;switch(e){case"zeni_accounts":c=d.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted;break;case"reimbursement":c=d.companyReimbursementInfo?.info?.isReimbursementTOSAccepted;break;case"charge_cards":c=d.companyChargeCardInfo?.info?.isChargeCardTOSAccepted===!0||d.companyDebitCardInfo?.info?.isDebitCardTOSAccepted;break;case"zeni_treasury":c=d.companyTreasuryInfo?.info?.isTreasuryTOSAccepted;break;default:c=d.companyBillPayInfo?.info?.isBillPayTOSAccepted}const C=n=>{b(n)};return c===!1?A.jsx(re,{to:"../promo"}):A.jsxs(We,{children:[A.jsx(qe,{analytics:U,onLoad:n=>(g=>{switch(e){case"zeni_accounts":return g.trackPageLoaded(x.Event.zeniAccountsBusinessVerification);case"reimbursement":case"charge_cards":return g.trackPageLoaded(x.Event.reimbursementBusinessVerification);default:return g.trackPageLoaded(x.Event.billPayBusinessVerification,E(a)?"Settings":void 0)}})(n)}),E(a)?A.jsx(He,{isAppContentDrawerOpen:u,handleDrawerToggle:C}):null,A.jsx(Ye,{businessVerificationDetails:T,navigate:r,location:a,companyId:i,analytics:U,currentTenant:d,productType:e,isSettings:E(a),roleMap:o?.loggedInUserRoleMap??{},onClickMenuIcon:()=>{C(!0)},maxInsuredAmount:V.maxInsuredAmount})]})};export{rt as B,K as d,it as u};
@@ -1,11 +0,0 @@
1
- import{j as I}from"./liveblocks-CueKZN6-.js";import{a as o}from"./sentry-uvO3Tp8f.js";import{u as F,h as L,g as H,j as C,N as w}from"./core-BQjZS2e8.js";import{UN as q,fI as z,go as G,hd as V,gP as A,gn as Q,gl as B,V6 as J,gk as O}from"./zeni-epic-state-DNah8dni.js";import{u as K,z as E,c as T,G as M,R as W}from"./index-BkGKDMtv.js";import{n as X}from"./mui-CQYR1UI4.js";import{P as h,a as _}from"./AccountMappingScreen-CDXqSiAc.js";import{t as Y}from"./getLocaleForTenant-DFe6xj72.js";import{g as Z,Q as ee}from"./QBOConnectionScreen-C4tVfsJt.js";import"./recharts-DNLEWX3j.js";import"./analytics-Dt3suRsK.js";import"./plaid-Db_iti-b.js";import"./dnd-DccPQo-x.js";import"./stripe-cKAAJElX.js";import"./lottie-D6SetWLo.js";import"./lexical-DQq5IX8L.js";import"./pdf-CqrelrTK.js";import"./utils-BUB23Z37.js";import"./MobileAppDrawer-BUD0j7G2.js";import"./InboxNotificationsProvider-BGgv9Z5e.js";import"./useTaskManagerAccess-DzHDJDg5.js";import"./accountMappingHelper-DrXX0Mo9.js";import"./empty-CmsHIcyu.js";import"./pdf-lib-CkerEMYe.js";import"./index-hbfcGbz2.js";import"./url-CR4W537l.js";import"./index-But8NFor.js";import"./decodeURIComponentSafe-CIIlt5ol.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new t.Error().stack;i&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[i]="3896c829-54d6-4583-9ede-fc4aa93b4aca",t._sentryDebugIdIdentifier="sentry-dbid-3896c829-54d6-4583-9ede-fc4aa93b4aca")}catch{}})();const te=X.div`
2
- display: flex;
3
- flex: 1 1 auto;
4
- flex-direction: row;
5
- justify-content: center;
6
- align-items: center;
7
- width: 100%;
8
- height: 100vh;
9
- background-color: ${t=>t.theme.colors.background};
10
- box-shadow: ${t=>`0px 2px ${W.sp1} ${t.theme.colors.dropShadowNormal}`};
11
- `;function we(){const t=F(),i=L(),v=H(),{setLoading:d,clearAllLoading:m}=K(),S=o.useRef(!1),x=o.useRef(!1),N=o.useRef(!1),p=o.useRef(!1),{code:U,realmId:$,state:P}=Z(v.search),f=U!==""&&$!==""&&P!=="";f&&(N.current=!0);const j=sessionStorage.getItem(h),u=j===_.pending,R=j===_.ready,b=C((s=>q(s))),e=C((s=>z(s))),n=C((s=>s.tenantState.fetchState)),r=C((s=>s.tenantState.activeTenantFetchState.fetchState)),a=E.getSignedInUser(),g=E.getActiveTenantForUser()?.tenantId,l=e?.externalConnections?.fetchState,c=e?.externalConnections?.saveConnectionState,y=e.externalConnections?.accounting[0]?.isValid;o.useLayoutEffect((()=>{d(T.CONNECTION_AUTH)}),[d]),o.useEffect((()=>{S.current||a==null||g==null||(S.current=!0,n==="Completed"||r!=="Not-Started"&&r!=="Error"||(d(T.TENANT_FETCHING),t(G(a.userId,g))))}),[S,n,d]),o.useEffect((()=>{e.tenantId==null&&!x.current&&a!=null&&(x.current=!0,!(g==null||g!=null&&(r==="Completed"||r==="Error"))||n!=="Not-Started"&&n!=="Error"||t(V(a.userId)))}),[x,n,r]),o.useEffect((()=>{a==null||e?.tenantId==null||e.externalConnections!=null||n!=="Completed"&&r!=="Completed"||l==="In-Progress"||c!=="Error"||(d(T.CONNECTION_AUTH),t(A(a.userId,e.tenantId)))}),[c]),o.useEffect((()=>{n!=="Completed"&&r!=="Completed"||a==null||e?.tenantId==null||(t(Q(e.tenantId)),E.saveActiveTenantDomainForUser(e.tenantEmailDomain),B(a?.userId,a?.zeniSessionId,e.tenantId),M.updateAppLocaleID(Y(J(e))),e.externalConnections!=null||n!=="Completed"&&r!=="Completed"||l==="In-Progress"||a==null||e==null||t(A(a.userId,e.tenantId)))}),[n,r,l]),o.useEffect((()=>{b.tenantsCoreDetailsInOrder.length>0&&n==="Completed"&&E.saveSignedInUserTenants(b.tenantsCoreDetailsInOrder)}),[b.tenantsCoreDetailsInOrder.length,n]);const D=e==null||n!=="Completed"&&r!=="Completed"||l!=="Completed";if(o.useEffect((()=>{n!=="Completed"&&n!=="Error"||r!=="Completed"&&r!=="Error"||l!=="Completed"&&l!=="Error"||m()}),[n,r,l]),o.useEffect((()=>{u&&c==="In-Progress"&&(p.current=!0)}),[u,c]),o.useEffect((()=>{if(!u||D)return;const s=e.tenantEmailDomain!=null?`/${e.tenantEmailDomain}/settings/accounting`:"/";return p.current&&c==="Completed"?(sessionStorage.setItem(h,_.ready),m(),void i(s,{replace:!0})):p.current&&c==="Error"?(sessionStorage.removeItem(h),t(O({messageSection:"accounting_projects_qbo_reconnect_failed",messageText:"failed",type:"error"})),m(),void i(s,{replace:!0})):void(f||N.current||p.current||y!==!0||(sessionStorage.removeItem(h),t(O({messageSection:"accounting_projects_qbo_reconnect_failed",messageText:"failed",type:"error"})),m(),i(s,{replace:!0})))}),[u,D,c,f,y,e.tenantEmailDomain,m,t,i]),D)return null;if(f||y!==!0)return I.jsx(te,{children:I.jsx(ee,{})});if(u)return null;const k=e.tenantEmailDomain!=null?`/${e.tenantEmailDomain}/settings/accounting`:"/";return R?I.jsx(w,{to:k,replace:!0}):I.jsx(w,{to:"/",replace:!0})}export{we as default};
@@ -1 +0,0 @@
1
- import{j as i}from"./liveblocks-CueKZN6-.js";import{z as m}from"./index-BkGKDMtv.js";import{g as n}from"./QBOConnectionScreen-C4tVfsJt.js";import"./sentry-uvO3Tp8f.js";import{g as p,N as a}from"./core-BQjZS2e8.js";import"./zeni-epic-state-DNah8dni.js";import"./recharts-DNLEWX3j.js";import"./mui-CQYR1UI4.js";import"./analytics-Dt3suRsK.js";import"./plaid-Db_iti-b.js";import"./dnd-DccPQo-x.js";import"./stripe-cKAAJElX.js";import"./lottie-D6SetWLo.js";import"./lexical-DQq5IX8L.js";import"./pdf-CqrelrTK.js";import"./utils-BUB23Z37.js";import"./empty-CmsHIcyu.js";import"./pdf-lib-CkerEMYe.js";import"./index-hbfcGbz2.js";import"./url-CR4W537l.js";import"./index-But8NFor.js";import"./decodeURIComponentSafe-CIIlt5ol.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]="ebd28598-e6ad-49c0-9fdb-a537e411a6fc",t._sentryDebugIdIdentifier="sentry-dbid-ebd28598-e6ad-49c0-9fdb-a537e411a6fc")}catch{}})();const U=()=>{const t=p(),{code:o,realmId:r,state:e}=n(t.search),s=m.getSignedInUser()?.userId??"";if(f(o,r,e,s)===!0){const d=`../../${e}/onboarding?code=${o}&realmId=${r}&state=auth_flow`;return i.jsx(a,{to:d})}return i.jsx(a,{to:"../../"})},f=(t,o,r,e)=>t!=""&&o!=""&&r!=""&&e!=null&&e!="";export{U as default,f as hasValidParams};
@@ -1 +0,0 @@
1
- import{j as s}from"./liveblocks-CueKZN6-.js";import{a as r}from"./sentry-uvO3Tp8f.js";import{d7 as l,d8 as p,E as f,a5 as m}from"./index-BkGKDMtv.js";import"./mui-CQYR1UI4.js";import c from"./NotFoundScreen-Da0kpRnr.js";import{h as u,g as b}from"./core-BQjZS2e8.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="29a2d667-058f-4840-9eae-30d46e50e9b4",e._sentryDebugIdIdentifier="sentry-dbid-29a2d667-058f-4840-9eae-30d46e50e9b4")}catch{}})();const _=()=>{const e=u(),a=b(),t=r.useCallback((()=>{window.open("https://www.zeni.ai/demo/request","_blank")}),[]),d=r.useCallback((()=>{(()=>{const n=m(a.state?.pathnameStackToGoBack),i=n.poppedPathname??k();e(i,{state:{pathnameStackToGoBack:n.newStack}})})()}),[]),o=l(a.pathname);return o!=null?s.jsx(p,{menuItem:f(o),onDemoClick:t,onGoBack:d}):s.jsx(c,{})},k=(e=2)=>{let a="../";for(let t=0;t<e;t++)a=`${a}../`;return a};export{_ as F};
@@ -1 +0,0 @@
1
- import{a as i}from"./sentry-uvO3Tp8f.js";import{u as f,h as l,g as m}from"./core-BQjZS2e8.js";import{i7 as p,Vl as g,Vm as _}from"./zeni-epic-state-DNah8dni.js";import{u as b,c as h,z as y}from"./index-BkGKDMtv.js";import"./liveblocks-CueKZN6-.js";import"./recharts-DNLEWX3j.js";import"./mui-CQYR1UI4.js";import"./analytics-Dt3suRsK.js";import"./plaid-Db_iti-b.js";import"./dnd-DccPQo-x.js";import"./stripe-cKAAJElX.js";import"./lottie-D6SetWLo.js";import"./lexical-DQq5IX8L.js";import"./pdf-CqrelrTK.js";import"./utils-BUB23Z37.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a4d054a2-b7ab-40f6-920e-2844cfdead4f",e._sentryDebugIdIdentifier="sentry-dbid-a4d054a2-b7ab-40f6-920e-2844cfdead4f")}catch{}})();function V(){const e=f(),n=l(),r=m(),{setLoading:o,clearAllLoading:c}=b(),a=i.useRef(!1);return i.useLayoutEffect((()=>{o(h.CONNECTION_AUTH)}),[o]),i.useEffect((()=>{if(a.current)return;a.current=!0;const s=new URLSearchParams(r.search).get("code"),d=sessionStorage.getItem("hubspot_oauth_pending");if(sessionStorage.removeItem("hubspot_oauth_pending"),s!=null&&d!=null){const t=JSON.parse(d);e(p(t.tenant_id,t.connection_id,g("revenue"),_("hubspot"),{authorization_code:s,client_id:t.client_id,client_secret:t.client_secret,redirect_uri:t.redirect_uri}))}c();const u=y.getActiveTenantForUser();n(u?.tenantEmailDomain!=null?`/${u.tenantEmailDomain}/settings/integrations`:"/",{replace:!0})}),[]),null}export{V as default};
@@ -1,12 +0,0 @@
1
- import{j as u}from"./liveblocks-CueKZN6-.js";import{a as g}from"./sentry-uvO3Tp8f.js";import{u as F,g as O,h as _,t as w,j as l,N as T}from"./core-BQjZS2e8.js";import{z as r,G as P,T as M,e as A,U as N,$,a0 as G,X as R}from"./index-BkGKDMtv.js";import{fI as W,UP as X,Vb as Y,h9 as q,gl as B,gn as H,V7 as J,gY as K,d3 as Q,Vc as Z,Vd as ee}from"./zeni-epic-state-DNah8dni.js";import{u as te,n as ne}from"./mui-CQYR1UI4.js";import{u as ae}from"./useDeviceId-CgZjgOTE.js";import{f as se}from"./analyticsHelper-Cqab08I6.js";import{t as ie}from"./getLocaleForTenant-DFe6xj72.js";import"./recharts-DNLEWX3j.js";import"./analytics-Dt3suRsK.js";import"./plaid-Db_iti-b.js";import"./dnd-DccPQo-x.js";import"./stripe-cKAAJElX.js";import"./lottie-D6SetWLo.js";import"./lexical-DQq5IX8L.js";import"./pdf-CqrelrTK.js";import"./utils-BUB23Z37.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new t.Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="5d79a661-036a-4ea3-81fb-1c50b9744e63",t._sentryDebugIdIdentifier="sentry-dbid-5d79a661-036a-4ea3-81fb-1c50b9744e63")}catch{}})();const C=(t,s)=>t!=null&&t.length>0&&s==="magic_links";function Ce(){const t=F(),s=O(),f=_(),[k]=w(),n=k.get("token"),p=k.get("stytch_token_type"),m=r.getMagicLinkCodeVerifier(),i=ae(),{otpChallenge:d,twoFAPhoneNumber:D,magicLinkEmail:c,verifyDeviceFetchState:x,resendVerifyDeviceOTPFetchState:z}=l((e=>e.tenantState)),S=l((e=>e.tenantState.fetchState)),y=l((e=>e.tenantState.activeTenantFetchState.fetchState)),I=l((e=>e.tenantState.signInState)),h=l((e=>e.tenantState.magicLinkSignInFetchState.fetchState)),a=l((e=>e.tenantState.loggedInUser)),o=l((e=>W(e))),b=l((e=>X(e))),E=r.getSignedInUser(),v=te().mode;g.useEffect((()=>{a?.zeniSessionId==null&&n!=null&&C(n,p)&&i!=null&&m!=null&&(r.saveMagicLinkTriggered(n),t(Y(n,i,m)))}),[n,p,t,i,m,a?.zeniSessionId]),g.useEffect((()=>{I!=="In-Progress"||S!=="Completed"&&y!=="Completed"||a?.zeniSessionId==null||o==null||(n!=null&&r.saveLastUsedMagicLinkToken(n),r.saveSignedInUserWithSession(a,a.zeniSessionId),r.saveSignedInUserTenants(q(b.tenantsInOrder),a.zeniSessionId),B(a.userId,a.zeniSessionId,o.tenantId),t(H(o.tenantId)),r.saveActiveTenantDomainForUser(o.tenantEmailDomain),t(J("Completed")),P.updateAppLocaleID(ie(o)),se(a,o,v,void 0,b.tenantsInOrder),K().then((()=>{const e=R();e!=null&&M(e)})),setTimeout((()=>{A.trackLogin(N.Event.loginSuccess,"email",Q(o.productSettings))}),2e3))}),[I,S,y,a,o,b,v,s.state,t]);const U=g.useCallback((()=>{f("/signin/auth")}),[f]),V=g.useCallback((()=>{i!=null&&d!=null&&c!=null&&t(Z(i,c,d))}),[i,d,t,c]),j=g.useCallback((e=>{i!=null&&n!=null&&c!=null&&d!=null&&t(ee(e,i,c,d))}),[i,n,t,c,d]);if(h==="Completed"&&d!=null)return u.jsx($,{phoneNumber:D,verifyOtpFetchState:x.fetchState,resendVerifyDeviceOTPFetchState:z,onResendOtp:V,onVerifyOtp:j,onCancelVerifyDevice:U});if(I==="In-Progress"&&S==="Completed"&&a?.zeniSessionId!=null&&o!=null||E!=null){const e=s.state?.origin??"/";return u.jsx(T,{to:e,state:{...s.state,origin:""}})}if(!C(n,p)||m==null||h==="Error"){const e=s.state?.origin??"/",L=n!=null&&r.getLastUsedMagicLinkToken()===n;return u.jsx(T,{to:e,state:{...s.state,origin:"",magicLinkAlreadyUsed:L,magicLinkExpired:!L&&(r.isMagicLinkTriggered(n??"")||h==="Error"&&a?.zeniSessionId==null)}})}return u.jsx(oe,{"data-testid":"smooth-loader",children:u.jsx(G,{size:"ExtraLarge",start:!0})})}const oe=ne.div`
2
- position: fixed;
3
- top: 0;
4
- left: 0;
5
- right: 0;
6
- bottom: 0;
7
- display: flex;
8
- align-items: center;
9
- justify-content: center;
10
- z-index: 9999;
11
- background-color: ${t=>t.theme.colors.background};
12
- `;export{Ce as default};
@@ -1 +0,0 @@
1
- import{j as e}from"./liveblocks-CueKZN6-.js";import{h as r,l as i}from"./core-BQjZS2e8.js";import{d6 as n}from"./index-BkGKDMtv.js";import"./mui-CQYR1UI4.js";import"./sentry-uvO3Tp8f.js";import"./zeni-epic-state-DNah8dni.js";import"./recharts-DNLEWX3j.js";import"./analytics-Dt3suRsK.js";import"./plaid-Db_iti-b.js";import"./dnd-DccPQo-x.js";import"./stripe-cKAAJElX.js";import"./lottie-D6SetWLo.js";import"./lexical-DQq5IX8L.js";import"./pdf-CqrelrTK.js";import"./utils-BUB23Z37.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new o.Error().stack;t&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[t]="9aa67ded-70e9-4f18-a970-986bf2668dfb",o._sentryDebugIdIdentifier="sentry-dbid-9aa67ded-70e9-4f18-a970-986bf2668dfb")}catch{}})();const a=i(null,(function(o,t){return{onGoBack:()=>{t.navigate(-1)},onGoHome:()=>{t.navigate("/")}}}))(n);function _(){const o=r();return e.jsx(a,{navigate:o})}export{_ as default};
@@ -1 +0,0 @@
1
- import{j as s}from"./liveblocks-CueKZN6-.js";import E from"./NotFoundScreen-Da0kpRnr.js";import{a as r}from"./sentry-uvO3Tp8f.js";import{h as _,g as v,j as p,i as M,u as U,N as P,l as z,n as O,o as h}from"./core-BQjZS2e8.js";import{fI as B,a3h as b,bn as F,bm as N,iW as V,gk as W}from"./zeni-epic-state-DNah8dni.js";import{k as $,z as I,al as q,ea as G}from"./index-BkGKDMtv.js";import"./mui-CQYR1UI4.js";import{u as H}from"./useAskAiCfoHostNavButtonProps-Ds1IYXBl.js";import{M as J}from"./MobileAppDrawer-BUD0j7G2.js";import"./recharts-DNLEWX3j.js";import"./analytics-Dt3suRsK.js";import"./plaid-Db_iti-b.js";import"./dnd-DccPQo-x.js";import"./stripe-cKAAJElX.js";import"./lottie-D6SetWLo.js";import"./lexical-DQq5IX8L.js";import"./pdf-CqrelrTK.js";import"./utils-BUB23Z37.js";import"./InboxNotificationsProvider-BGgv9Z5e.js";import"./useTaskManagerAccess-DzHDJDg5.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2013c596-b5ff-4cc8-8797-79be05df42bc",e._sentryDebugIdIdentifier="sentry-dbid-2013c596-b5ff-4cc8-8797-79be05df42bc")}catch{}})();const K=z((function(e){const t=I.getSignedInUser(),c=e.tenantState.currentTenantId,o={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:c??""},{aggregatedReportViewState:n}=b(e);return{authParams:o,isDisabled:!1,loggedInUser:t,aggregatedReport:n}}),(function(e,t){return{onBackClick:()=>{t.navigate("../../")},onClickMenuIcon:()=>{t.handleDrawerToggle(!0)}}}))(G),L=()=>{const e=_(),t=v(),c=$(),o=p((a=>B(a))),{aggregatedReportViewState:n}=p((a=>b(a))),{tenantEmailDomain:m}=M(),u=U(),d=I.getSignedInUser();if(d==null)throw new Error("Can't access this page without signing in...");const f=r.useRef(!1),[w,S]=r.useState(!1),C=F(o?.userRole??[]),k=o?.userRole?.includes("bookkeeping_admin")??!1,x=N(d),y=C||k||x,l=r.useCallback(((a,i,T)=>{u(V({fromMonth:a,toMonth:i,cacheOverride:T}))}),[]);r.useEffect((()=>{n?.fetchState==="Completed"&&f.current&&(u(W({messageSection:"data_refresh_update",messageText:"success",type:"success",showStatusIcon:!0})),f.current=!1)}),[n?.fetchState]);const D=r.useCallback(((a,i)=>{n!=null&&n?.fetchState==="In-Progress"||l(a,i,!0),f.current=!0}),[n?.fetchState,l]),j=r.useCallback(((a,i)=>{l(a,i,!1)}),[l]),g=a=>{S(a)},{isAiCfoAccessEnabled:R,onAskAiCfoClick:A}=H({mobileExploreReferrer:"Performance"});return q({isDataReady:n?.fetchState==="Completed"}),y?s.jsxs(s.Fragment,{children:[s.jsx(J,{isAppContentDrawerOpen:w,handleDrawerToggle:g}),s.jsx(K,{navigate:e,location:t,themeState:c,currentTenant:o,signedInUser:d,tenantEmailDomain:m,onReload:D,onTimeRangeSelect:j,handleDrawerToggle:g,isAiCfoAccessEnabled:R,onAskAiCfoClick:A})]}):s.jsx(P,{to:`/${m}/dashboard`,replace:!0})};function he(){return s.jsxs(O,{children:[s.jsx(h,{path:"*",element:s.jsx(L,{})}),s.jsx(h,{path:"*",element:s.jsx(E,{})})]})}export{he as default};
@@ -1 +0,0 @@
1
- import{j as u}from"./liveblocks-CueKZN6-.js";import{a as f,R as T,v as A}from"./sentry-uvO3Tp8f.js";import{u as z,h as D,j as l,g as M,N as O,l as P}from"./core-BQjZS2e8.js";import{u as j,z as s,e as E,G as V,T as _,U as F,W as B,X as N,Y as $,_ as v}from"./index-BkGKDMtv.js";import{fI as W,UP as Y,h9 as J,gl as R,gn as q,V7 as G,gY as H,d3 as X,V8 as b,V9 as K,Va as Q,d$ as y}from"./zeni-epic-state-DNah8dni.js";import{u as Z}from"./mui-CQYR1UI4.js";import{u as ee}from"./useDeviceId-CgZjgOTE.js";import{f as te}from"./analyticsHelper-Cqab08I6.js";import{t as ne}from"./getLocaleForTenant-DFe6xj72.js";import"./recharts-DNLEWX3j.js";import"./analytics-Dt3suRsK.js";import"./plaid-Db_iti-b.js";import"./dnd-DccPQo-x.js";import"./stripe-cKAAJElX.js";import"./lottie-D6SetWLo.js";import"./lexical-DQq5IX8L.js";import"./pdf-CqrelrTK.js";import"./utils-BUB23Z37.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new t.Error().stack;i&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[i]="06d8654f-3436-4c9c-b881-787b468d6834",t._sentryDebugIdIdentifier="sentry-dbid-06d8654f-3436-4c9c-b881-787b468d6834")}catch{}})();const ie=P((function(t,i){const d=t.tenantState.fetchState,g=t.tenantState.sendEmailMagicLinkFetchState,{magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:c}=i;return{googleClientId:v.googleClientId,microsoftClientId:v.microsoftClientId,signInError:t.tenantState.error?.error,fetchState:d,sendMagicLinkStatus:g,magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:c}}),(function(t,i){const{location:d,navigate:g}=i;return console.warn(JSON.stringify(window.location)),{onOAuthError:(n,a)=>{A({message:`OAuth error from provider ${a} with error ${n}`,level:"error",tags:{authProvider:a,errorType:"zeni.login.error"},extra:{error:n,windowLocation:window.location.href}})},onOAuthSuccess:(n,a)=>{const c=a==="google"?window.location.origin:window.location.origin+window.location.pathname;t(Q({authCode:n,oauthProvider:a,appType:"web",redirectUri:y(c),sourceUri:y(d.state!=null?d.state.origin:"")}))},getSignedInUser:()=>s.getSignedInUser(),onSignedInCallback:()=>{const n=d.state?.origin;n&&n!=="/"?g(n,{replace:!0}):window.open(window.location.origin,"_self")},sendMagicLink:n=>{const{deviceId:a}=i;a!=null&&(s.saveMagicLinkEmail(n),t(K(n,a)))},clearSignInError:()=>{t(b())}}}))($),ae=T.memo(ie);function ve({setTenantEmailDomain:t}){const i=z(),d=D(),{clearAllLoading:g}=j(),n=s.getSignedInUser();f.useLayoutEffect((()=>{g()}),[g]);const a=ee(),c=l((e=>e.tenantState.magicLinkCodeVerifier)),{sendEmailMagicLinkFetchState:h,accountLocked:U,accountUnlockTime:k}=l((e=>e.tenantState)),p=l((e=>e.tenantState.fetchState)),L=l((e=>e.tenantState.activeTenantFetchState.fetchState)),S=l((e=>e.tenantState.signInState)),o=l((e=>e.tenantState.loggedInUser)),r=l((e=>W(e))),I=l((e=>Y(e))),m=M(),w=Z().mode,C=m.state?.magicLinkExpired,x=m.state?.magicLinkAlreadyUsed;if(f.useEffect((()=>{h.fetchState==="Completed"&&c!=null&&(E.trackSignInLinkSent(),s.saveMagicLinkCodeVerifier(c))}),[h.fetchState,c]),f.useEffect((()=>{t(void 0)}),[]),f.useEffect((()=>{S!=="In-Progress"||p!=="Completed"&&L!=="Completed"||o?.zeniSessionId==null||r==null||(s.savePayNowInfoTooltip(!0,o.zeniSessionId),s.saveSignedInUserWithSession(o,o.zeniSessionId),s.saveSignedInUserTenants(J(I.tenantsInOrder),o.zeniSessionId),R(o.userId,o.zeniSessionId,r.tenantId),i(q(r.tenantId)),s.saveActiveTenantDomainForUser(r.tenantEmailDomain),i(G("Completed")),V.updateAppLocaleID(ne(r)),te(o,r,w,void 0,I.tenantsInOrder),H().then((()=>{const e=N();e!=null&&_(e)})),setTimeout((()=>{E.trackLogin(F.Event.loginSuccess,o.authProvider??"google",X(r.productSettings))}),2e3))}),[S,p,L,o,r,I,w,m.state,i]),S==="In-Progress"&&p==="Completed"&&o?.zeniSessionId!=null&&r!=null||n!=null){const e=m.state?.origin??"/";return u.jsx(O,{to:e,state:{...m.state,origin:""}})}return u.jsxs(u.Fragment,{children:[u.jsx(ae,{magicLinkExpired:!!C,magicLinkAlreadyUsed:!!x,magicLinkExpiredEmail:s.getMagicLinkEmail()??void 0,location:m,navigate:d,deviceId:a??void 0,showEmailLogin:!0}),U===!0&&k!=null?u.jsx(B,{onClose:()=>i(b()),unlockDate:k}):null]})}export{ve as default};
@@ -1,9 +0,0 @@
1
- import{j as s}from"./liveblocks-CueKZN6-.js";import{a as i}from"./sentry-uvO3Tp8f.js";import{u as c,g as f,N as u}from"./core-BQjZS2e8.js";import{z as n,e as a,U as m,a8 as p}from"./index-BkGKDMtv.js";import{g$ as g,Vn as y}from"./zeni-epic-state-DNah8dni.js";import{n as b}from"./mui-CQYR1UI4.js";import"./recharts-DNLEWX3j.js";import"./analytics-Dt3suRsK.js";import"./plaid-Db_iti-b.js";import"./dnd-DccPQo-x.js";import"./stripe-cKAAJElX.js";import"./lottie-D6SetWLo.js";import"./lexical-DQq5IX8L.js";import"./pdf-CqrelrTK.js";import"./utils-BUB23Z37.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a4ea0733-5b3d-47c0-a3e8-31d688d9146d",e._sentryDebugIdIdentifier="sentry-dbid-a4ea0733-5b3d-47c0-a3e8-31d688d9146d")}catch{}})();function L(){const e=c(),t=f(),r=i.useRef(!1),d=n.isSignedIn(),o=t.state?.message==="logout"||d;return i.useEffect((()=>{if(o&&!r.current){r.current=!0;try{e(g()),y(),a.trackLogout(m.Event.logoutSuccess),a.resetUserIdentity(),n.clearAll()}catch(l){console.error("Error during sign out:",l)}finally{window.location.replace("/signin/auth")}}}),[o,e]),o?s.jsx(h,{children:s.jsx(p,{fetchState:"In-Progress"})}):s.jsx(u,{to:"../",replace:!0})}const h=b.div`
2
- display: flex;
3
- height: 100vh;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- `;export{L as default};
@@ -1 +0,0 @@
1
- import{a as b}from"./sentry-uvO3Tp8f.js";import{h as u,g,i as h,j as S}from"./core-BQjZS2e8.js";import{fI as y}from"./zeni-epic-state-DNah8dni.js";import{j as k,a2 as C,a as A,ar as I,J as T,v,ax as w}from"./index-BkGKDMtv.js";import"./mui-CQYR1UI4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f841527d-d16e-4762-b276-44690e349379",e._sentryDebugIdIdentifier="sentry-dbid-f841527d-d16e-4762-b276-44690e349379")}catch{}})();function j(e){const{mobileExploreReferrer:t}=e,{isAiCfoOpen:r,setIsAiCfoOpen:i}=k(),s=u(),o=g(),{tenantEmailDomain:n}=h(),l=C(),f=w(l),c=A(),p=I(),m=S((a=>a.tenantState.fetchState==="Completed"||a.tenantState.activeTenantFetchState.fetchState==="Completed"?y(a):void 0)),d=m?.masterTOSInfo?.isMasterTOSAccepted??!1;return{isAiCfoAccessEnabled:p&&c&&!r,onAskAiCfoClick:b.useCallback((()=>{if(n!=null)if(d)if(f){const a=v(o.state?.pathnameStackToGoBack,o.pathname);s(`/${n}/ai-cfo/explore`,{state:{pathnameStackToGoBack:a,referrer:t}})}else i(!0);else T({location:o,navigate:s,mergeState:{referrer:t}})}),[d,f,o,t,s,i,n])}}export{j as u};