@zeniai/web-app-ui 5.3.45-qa → 5.3.46-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 (126) hide show
  1. package/dist/assets/{AccountMappingScreen-EqyOLk0W.js → AccountMappingScreen-CfueHDEF.js} +2 -2
  2. package/dist/assets/{ActualMatchingMatchDetailScreen-B_Hxuz1x.js → ActualMatchingMatchDetailScreen-fiSieMf_.js} +1 -1
  3. package/dist/assets/AddressRoutes-nZx4HWhJ.js +1 -0
  4. package/dist/assets/AddressScreen-D06QouT5.js +9 -0
  5. package/dist/assets/{AiCfoScreen-DgiomMQs.js → AiCfoScreen-V8xy8p4b.js} +1 -1
  6. package/dist/assets/{AppDrawer-C9JSspSl.js → AppDrawer-CyBGsFud.js} +1 -1
  7. package/dist/assets/{BillPayApprovalRoutes-CtPNwVvl.js → BillPayApprovalRoutes-C1N-qtHk.js} +1 -1
  8. package/dist/assets/{BillPayRoutes-Duz6Vx7D.js → BillPayRoutes-CdYxJOPQ.js} +1 -1
  9. package/dist/assets/{BusinessVerificationPageScreen-BAWcvg1q.js → BusinessVerificationPageScreen-BScFHNdu.js} +2 -2
  10. package/dist/assets/CardsAiCfoScreen-BQ4Zn40f.js +14 -0
  11. package/dist/assets/{ChargeCardRoutes-B08xwpTq.js → ChargeCardRoutes-tPmmU_fw.js} +1 -1
  12. package/dist/assets/{CompanyPassportScreen-CbwVCSdf.js → CompanyPassportScreen-CMIjHc5k.js} +1 -1
  13. package/dist/assets/{ConnectionAuthScreen-BcoTZa8L.js → ConnectionAuthScreen-BdMANdwF.js} +1 -1
  14. package/dist/assets/CustomerOnboardingAuthScreen-BjVB3FB2.js +1 -0
  15. package/dist/assets/{CustomerOnboardingRoutes-BP006ys9.js → CustomerOnboardingRoutes-BqAwy1Go.js} +3 -3
  16. package/dist/assets/{DashboardRoutes-DKsy8kjy.js → DashboardRoutes-C3Q7vlXr.js} +1 -1
  17. package/dist/assets/{DefaultTenantHome-h9sstg-6.js → DefaultTenantHome-CPPof4Nd.js} +1 -1
  18. package/dist/assets/{DomesticWireDetailScreen-DdrkO-LG.js → DomesticWireDetailScreen-Bo5pk1NL.js} +3 -3
  19. package/dist/assets/DrawerScreen-DYwMLd1Q.js +1 -0
  20. package/dist/assets/{EntityDetailRoutes-TJfEMlzp.js → EntityDetailRoutes-_eEqLjSQ.js} +1 -1
  21. package/dist/assets/{ExpenseAutomationRoutes-FRK8lYq7.js → ExpenseAutomationRoutes-D17PZLn2.js} +1 -1
  22. package/dist/assets/{FeaturePreviewScreen-R_rh5xYj.js → FeaturePreviewScreen-BE9pWqir.js} +1 -1
  23. package/dist/assets/{HubSpotOAuthCallbackScreen-Bf48Zrcv.js → HubSpotOAuthCallbackScreen-CDOpB-J7.js} +1 -1
  24. package/dist/assets/{InboxNotificationsProvider-CMirleoY.js → InboxNotificationsProvider-gj6fT2eX.js} +1 -1
  25. package/dist/assets/{InvoicingRoutes-D9DMbY6F.js → InvoicingRoutes-rYerhkHV.js} +1 -1
  26. package/dist/assets/{MagicLinkRoutes-DVS2kuyq.js → MagicLinkRoutes-D8pvaYpW.js} +6 -6
  27. package/dist/assets/MagicLinkSignInScreen-CW3gjVTf.js +12 -0
  28. package/dist/assets/{MobileAppDrawer-DEm85bH8.js → MobileAppDrawer-Dubbrc5R.js} +1 -1
  29. package/dist/assets/NotFoundScreen-r2t5kGnd.js +1 -0
  30. package/dist/assets/{NotificationRoutes-DlVY8cS0.js → NotificationRoutes-C0XszwDJ.js} +1 -1
  31. package/dist/assets/{OAuthConsentScreen-0eyA85wD.js → OAuthConsentScreen-CS66Nuk1.js} +1 -1
  32. package/dist/assets/{PandLWithForecastRoutes-Ciu8QGi3.js → PandLWithForecastRoutes-tEXmnuYa.js} +1 -1
  33. package/dist/assets/{PaymentLinkScreen-DSvOcNW8.js → PaymentLinkScreen-Ba8XuIED.js} +1 -1
  34. package/dist/assets/{PeopleRoutes-B29gnv2-.js → PeopleRoutes-MPpefoB8.js} +9 -9
  35. package/dist/assets/{PerformanceRoutes-C-oSemZm.js → PerformanceRoutes-v3vPCjna.js} +1 -1
  36. package/dist/assets/{Preview-DPyEVqHc.js → Preview-j2_daqeV.js} +1 -1
  37. package/dist/assets/{QBOConnectionScreen-CUhLSYvc.js → QBOConnectionScreen-CAoS33ZU.js} +23 -23
  38. package/dist/assets/{ReimbursementApprovalRoutes-CS9p1qcB.js → ReimbursementApprovalRoutes-BqXyuFCU.js} +1 -1
  39. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-CJnxkFoz.js → ReimbursementApprovalRuleDetailScreen-B9f-fas4.js} +1 -1
  40. package/dist/assets/{ReimbursementRoutes-DaGg2TTR.js → ReimbursementRoutes-IZQbGrfA.js} +1 -1
  41. package/dist/assets/{ReportsRoutes-BsvYUCIx.js → ReportsRoutes-R5Ca0XU-.js} +1 -1
  42. package/dist/assets/RewardsRoutes-CRQWx3J1.js +1 -0
  43. package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-CJ28c5Wc.js → ScheduleDetailsPrepaidExpensesScreen-BMDMlpQa.js} +4 -4
  44. package/dist/assets/{ScreenRoutes-Lei7nnrR.js → ScreenRoutes-Cwhq-96H.js} +2 -2
  45. package/dist/assets/{SettingsRoutes-DJiPiJIZ.js → SettingsRoutes-CMH4A66d.js} +1 -1
  46. package/dist/assets/{SetupPagesScreen-BzPNt5Xb.js → SetupPagesScreen-BzKWg1IS.js} +1 -1
  47. package/dist/assets/SignInScreen-Niy78Kvo.js +1 -0
  48. package/dist/assets/SignOutScreen-z5R4ARFQ.js +9 -0
  49. package/dist/assets/TaskListScreen-CQ5GSVtZ.js +9 -0
  50. package/dist/assets/{TaskRoutes-BAifN0A-.js → TaskRoutes-BLHPB9C2.js} +2 -2
  51. package/dist/assets/TransactionDetailRoutes-DWH8l2BY.js +1 -0
  52. package/dist/assets/{TransactionDetailScreen-C32uKUIF.js → TransactionDetailScreen-Cyr21RUS.js} +2 -2
  53. package/dist/assets/{TransactionListRoutes-Ebou9bMl.js → TransactionListRoutes-DeHnVgrc.js} +1 -1
  54. package/dist/assets/{TreasuryRoutes-Bq4RVae3.js → TreasuryRoutes-CH1V36gd.js} +5 -5
  55. package/dist/assets/{VendorsRoutes-dtzf2p8G.js → VendorsRoutes-D5fLbpGk.js} +1 -1
  56. package/dist/assets/{WiseConfirmationScreen-Dzz50WS2.js → WiseConfirmationScreen-B4K2TMeC.js} +1 -1
  57. package/dist/assets/{ZeniAccountRoutes-C2FWt_0o.js → ZeniAccountRoutes-B_-Cub3b.js} +1 -1
  58. package/dist/assets/ZeniAccountStatementScreen-Cg7a4ZMC.js +9 -0
  59. package/dist/assets/{accountMappingHelper-B5wpHG39.js → accountMappingHelper-DWzrp9Pr.js} +1 -1
  60. package/dist/assets/{analytics-5LJ4BXQX.js → analytics-wktvfErl.js} +1 -1
  61. package/dist/assets/{analyticsHelper-k_Sp-PwA.js → analyticsHelper-BZsIqD3O.js} +1 -1
  62. package/dist/assets/{core-BI5oX4mx.js → core-D6EV-11Y.js} +1 -1
  63. package/dist/assets/{decodeURIComponentSafe-B7oIXSPO.js → decodeURIComponentSafe-MQV5aj_5.js} +1 -1
  64. package/dist/assets/{dnd-D6wtGmk9.js → dnd-CkchuQYc.js} +1 -1
  65. package/dist/assets/{empty-D1y42ZwI.js → empty-DQLKD1Hp.js} +1 -1
  66. package/dist/assets/{empty-PW7BYANj.js → empty-PZV8n_Ql.js} +1 -1
  67. package/dist/assets/{emptyVideoElement-DRIlZkGm.js → emptyVideoElement-CnlqukSR.js} +1 -1
  68. package/dist/assets/{epic-BgEnH7Qf.js → epic-CVdAQuh9.js} +1 -1
  69. package/dist/assets/{expenseAutomationHelper-CqPrLTRM.js → expenseAutomationHelper-DEOPVtcg.js} +1 -1
  70. package/dist/assets/{getLocaleForTenant-Cv6I-eSM.js → getLocaleForTenant-DffZrhDN.js} +1 -1
  71. package/dist/assets/{index-BT5wSX8Z.js → index-8ioAZPP6.js} +1 -1
  72. package/dist/assets/{index-BgSgl7o0.js → index-B5kf_qFj.js} +1 -1
  73. package/dist/assets/{index-Cnd56s5E.js → index-BlnK23AJ.js} +1 -1
  74. package/dist/assets/{index-ChUBWLsO.js → index-CBlRXIxp.js} +1 -1
  75. package/dist/assets/{index-C8KisrNI.js → index-CKDPlCKN.js} +2 -2
  76. package/dist/assets/{index-Cf-PV9pR.js → index-EnAqWoDC.js} +1 -1
  77. package/dist/assets/{index-C2L5Bzwa.js → index-lv0eG9-7.js} +13420 -13420
  78. package/dist/assets/{index-COJM8F4x.js → index-qI_nnuux.js} +1 -1
  79. package/dist/assets/{lexical-BLu7UAko.js → lexical-C6tQwGBF.js} +1 -1
  80. package/dist/assets/{liveblocks-CW9yScMF.js → liveblocks-DKqwsBQp.js} +1 -1
  81. package/dist/assets/{lottie-lQbJqTc2.js → lottie-BwhdO6jl.js} +1 -1
  82. package/dist/assets/{mui-KP5Ep0NX.js → mui-qouWiIWk.js} +1 -1
  83. package/dist/assets/{pathToGoBack-Ddmf68xx.js → pathToGoBack-DMRqTTJ7.js} +1 -1
  84. package/dist/assets/{pdf-DflcYtDk.js → pdf-DcGn_mX8.js} +4 -4
  85. package/dist/assets/{pdf-lib-iL5hUpKl.js → pdf-lib-DndwkHl6.js} +1 -1
  86. package/dist/assets/{plaid-BrgJMdej.js → plaid-deRHM6gT.js} +1 -1
  87. package/dist/assets/{pusher-CN7UYIVv.js → pusher-BmM2v3Ys.js} +1 -1
  88. package/dist/assets/{react-C3b5GjIN.js → react-1c5WrJsc.js} +1 -1
  89. package/dist/assets/{react-D7C_-SWb.js → react-D6U1M1pt.js} +1 -1
  90. package/dist/assets/{react-Ow08-_5J.js → react-DFunsRdI.js} +1 -1
  91. package/dist/assets/{react-XJ6XyB9N.js → react-DZ82GBCj.js} +1 -1
  92. package/dist/assets/{react-C3_gvmu5.js → react-DiQLb4cq.js} +1 -1
  93. package/dist/assets/{react-BvzziK5i.js → react-QkGRtVkE.js} +1 -1
  94. package/dist/assets/{recharts-DRl2ZsSW.js → recharts-C9zWmt1W.js} +1 -1
  95. package/dist/assets/{routePaths-BrIEdo8u.js → routePaths-BxLZuqJn.js} +1 -1
  96. package/dist/assets/{sentry-C_uJQK1a.js → sentry-CxSdF_rC.js} +1 -1
  97. package/dist/assets/{stripSplatSuffix-CSXpdRK5.js → stripSplatSuffix-CYVrHv_0.js} +1 -1
  98. package/dist/assets/{url-Csr3E4Sb.js → url-BSgCM0lM.js} +1 -1
  99. package/dist/assets/{url-0wqXxJRo.js → url-Ej5v3O6d.js} +1 -1
  100. package/dist/assets/{useActualMatchingMatchDetail-C-OzIN8B.js → useActualMatchingMatchDetail-Bq60hvvx.js} +1 -1
  101. package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-CZodBcrZ.js → useAiCfoDashboardSuggestedQuestionsChips-sigyClkp.js} +1 -1
  102. package/dist/assets/useAskAiCfoHostNavButtonProps-Cgk5vvuH.js +1 -0
  103. package/dist/assets/{useChargeCardPusherEvents-B3svLsmE.js → useChargeCardPusherEvents-gKhYa0T8.js} +1 -1
  104. package/dist/assets/{useDeviceId-CAlK1w38.js → useDeviceId-RToKfM0O.js} +1 -1
  105. package/dist/assets/{useEmailConnectResultRefresh-CIZ_wxDt.js → useEmailConnectResultRefresh-DefipxZh.js} +1 -1
  106. package/dist/assets/{useInitialThreadRequest-BNsRpSRE.js → useInitialThreadRequest-BXjZ5prE.js} +1 -1
  107. package/dist/assets/{useTaskManagerAccess-Bhr2JI_X.js → useTaskManagerAccess-CncuT8wV.js} +1 -1
  108. package/dist/assets/{utils-BzQpFQvw.js → utils-D8aAQJhF.js} +1 -1
  109. package/dist/assets/{withTransactionSidePanel-mkP2Wc9X.js → withTransactionSidePanel-BY_v_z2c.js} +1 -1
  110. package/dist/assets/{zeni-epic-state-CIizsNeB.js → zeni-epic-state-CZbm731W.js} +3 -3
  111. package/dist/index.html +1 -1
  112. package/package.json +3 -3
  113. package/dist/assets/AddressRoutes-ByQnL6Ep.js +0 -1
  114. package/dist/assets/AddressScreen-C2qj6tYr.js +0 -9
  115. package/dist/assets/CardsAiCfoScreen-BdTJBLec.js +0 -14
  116. package/dist/assets/CustomerOnboardingAuthScreen-BpGFH1t5.js +0 -1
  117. package/dist/assets/DrawerScreen-KSeYe6Xi.js +0 -1
  118. package/dist/assets/MagicLinkSignInScreen-CmaiVv9M.js +0 -12
  119. package/dist/assets/NotFoundScreen-CS6UgwGr.js +0 -1
  120. package/dist/assets/RewardsRoutes-BeNSEmB_.js +0 -1
  121. package/dist/assets/SignInScreen-OFMK0Fhv.js +0 -1
  122. package/dist/assets/SignOutScreen-Duww-LZM.js +0 -9
  123. package/dist/assets/TaskListScreen-Dy6L1Gr_.js +0 -9
  124. package/dist/assets/TransactionDetailRoutes-KEbThb3n.js +0 -1
  125. package/dist/assets/ZeniAccountStatementScreen-CJtdjYJW.js +0 -9
  126. package/dist/assets/useAskAiCfoHostNavButtonProps-4TGjNsPg.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-C2L5Bzwa.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-C_uJQK1a.js"><link rel="modulepreload" crossorigin href="/assets/core-BI5oX4mx.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-CIizsNeB.js"><link rel="modulepreload" crossorigin href="/assets/mui-KP5Ep0NX.js"><link rel="modulepreload" crossorigin href="/assets/analytics-5LJ4BXQX.js"><link rel="modulepreload" crossorigin href="/assets/utils-BzQpFQvw.js"><link rel="stylesheet" crossorigin href="/assets/index-BhC2LNQw.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-lv0eG9-7.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-CxSdF_rC.js"><link rel="modulepreload" crossorigin href="/assets/core-D6EV-11Y.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-CZbm731W.js"><link rel="modulepreload" crossorigin href="/assets/mui-qouWiIWk.js"><link rel="modulepreload" crossorigin href="/assets/analytics-wktvfErl.js"><link rel="modulepreload" crossorigin href="/assets/utils-D8aAQJhF.js"><link rel="stylesheet" crossorigin href="/assets/index-BhC2LNQw.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.3.45-qa",
3
+ "version": "5.3.46-dev",
4
4
  "files": [
5
5
  "dist/**/*"
6
6
  ],
@@ -29,8 +29,8 @@
29
29
  "@sentry/react": "^9.42.1",
30
30
  "@stripe/stripe-js": "^4.4.0",
31
31
  "@zeniai/client-analytics": "2.0.92",
32
- "@zeniai/client-epic-state": "5.2.48",
33
- "@zeniai/web-components": "4.3.81",
32
+ "@zeniai/client-epic-state": "5.2.49",
33
+ "@zeniai/web-components": "4.3.82",
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-CW9yScMF.js";import{A as i}from"./AddressScreen-C2qj6tYr.js";import s from"./NotFoundScreen-CS6UgwGr.js";import"./sentry-C_uJQK1a.js";import{n as d,o as r}from"./core-BI5oX4mx.js";import"./zeni-epic-state-CIizsNeB.js";import"./recharts-DRl2ZsSW.js";import"./index-C2L5Bzwa.js";import"./mui-KP5Ep0NX.js";import"./analytics-5LJ4BXQX.js";import"./plaid-BrgJMdej.js";import"./dnd-D6wtGmk9.js";import"./stripe-cKAAJElX.js";import"./lottie-lQbJqTc2.js";import"./lexical-BLu7UAko.js";import"./pdf-DflcYtDk.js";import"./utils-BzQpFQvw.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]="81cbb5c1-1b56-4d87-a240-ae6c03b91825",t._sentryDebugIdIdentifier="sentry-dbid-81cbb5c1-1b56-4d87-a240-ae6c03b91825")}catch{}})();function _(){return e.jsxs(d,{children:[e.jsx(r,{path:"/edit/:addressType/:addressId",element:e.jsx(i,{})}),e.jsx(r,{path:"/new/:addressType",element:e.jsx(i,{})}),e.jsx(r,{path:"*",element:e.jsx(s,{})})]})}export{_ as default};
@@ -1,9 +0,0 @@
1
- import{j as d}from"./liveblocks-CW9yScMF.js";import{a as S}from"./sentry-C_uJQK1a.js";import{h as T,u as P,g as j,i as E,j as B,l as M}from"./core-BI5oX4mx.js";import{a1 as $,c as D,z as L,U as V,a7 as K,a8 as U,k as C,S as m,a3 as F,Z as h,a4 as z}from"./index-C2L5Bzwa.js";import{Vb as _,ip as R,fF as G,Vc as H,c8 as N,Vd as O,mH as q}from"./zeni-epic-state-CIizsNeB.js";import{n as Z}from"./mui-KP5Ep0NX.js";import J from"./NotFoundScreen-CS6UgwGr.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]="f87d45e5-bb56-4a68-abe2-f8e606feb838",e._sentryDebugIdIdentifier="sentry-dbid-f87d45e5-bb56-4a68-abe2-f8e606feb838")}catch{}})();const Q=Z.div`
2
- display: flex;
3
- height: 100vh;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- `,W=M((function(e,s){const{addressId:o,isSubPage:i,addressType:c}=s,l=G(e),a=s.roleMap!=null&&H(s.roleMap),n=i||c==="user_address"||N(l?.userRole??[])||a?void 0:"readonly";if(o==null){const t=O(c,e);return{addressToEdit:t?.addressToCreate,loadingState:t?.status?.fetchState,googleAPIKey:h.googleMapsAPIKey,isDisabled:n,isSubPage:i,dontShowSaveConfirmationPopup:s.dontShowSaveConfirmation}}const r=_(e,o);return{addressToEdit:r.address,loadingState:r.fetchState,googleAPIKey:h.googleMapsAPIKey,isDisabled:n}}),(function(e,s){const{navigate:o,location:i,addressType:c}=s,l=a=>{if(a==="express-pay")o("../express-pay/add-wire");else{const n=i.state,r=z(n?.pathnameStackToGoBack);let t=r.poppedPathname??v();const u=n?.queryParams;if(u){const g=new URLSearchParams(u).toString();g&&(t=`${t}?${g}`)}o(t,{state:{pathnameStackToGoBack:r.newStack}})}};return{onSubmitHandler:a=>{const n=X(a);e(q({addressType:c,addressToCreate:n})),C?.trackSaveAddressClicked(m.Event.saveAddressClicked,{street:a.street.addressString,city:a.city,state:a.state,country:a.country.selectedOption??"",postalCode:a.postalCode,suite:a.suite,secondaryInfo:a.secondaryInfo}),l(s.bankAccountContext)},onCancel:()=>{l(s.bankAccountContext)}}}))(F);function de({isSubPage:e,hideAddressSubTitle:s=!1,hideAddressBackButton:o=!1,dontShowSaveConfirmation:i,accountContext:c,addressTypeParam:l}){const a=T(),n=P(),r=j(),{addressId:t,addressType:u}=E(),g=$(),I=D(),k=L.getSignedInUser(),[f,w]=S.useState(t==null),p=B((b=>t!=null?_(b,t).fetchState:"Not-Started")),x=V();if(k==null)throw Error("Can't access address page without signing in...");const A=b=>b.trackPageLoaded(t!=null?m.Event.editAddress:m.Event.addAddress),y=l??u;return S.useEffect((()=>{f||t==null||(w(!0),n(R(t,!1)))}),[f,t,n]),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)?!f&&p==="Not-Started"||f&&p==="In-Progress"?d.jsx(K,{fetchState:p,style:{backgroundColor:I.colors.grey5}}):t!=null&&p==="Error"?(a(`${v(1)}/new`,{replace:!0}),d.jsx(d.Fragment,{})):d.jsxs(d.Fragment,{children:[d.jsx(U,{analytics:C,onLoad:A}),d.jsx(Q,{windowSize:g,children:d.jsx(W,{location:r,navigate:a,isSubPage:e===!0,hideAddressBackButton:o,hideAddressSubTitle:s,addressId:t,addressType:y,dontShowSaveConfirmation:i,bankAccountContext:c,roleMap:x?.loggedInUserRoleMap})})]}):d.jsx(J,{})}const v=(e=2)=>{let s="../";for(let o=0;o<e;o++)s=`${s}../`;return s},X=e=>({street:[e.street.addressString,e.suite,e.secondaryInfo],city:e.city,state:e.state,country:e.country.selectedOption??"",countryCode:e.countryCode,postalCode:e.postalCode,latitude:e.street.addressValue?.locationLat,longitude:e.street.addressValue?.locationLng});export{de as A,X as t};
@@ -1,14 +0,0 @@
1
- import{j as g}from"./liveblocks-CW9yScMF.js";import{a as l}from"./sentry-C_uJQK1a.js";import{u as pe,h as he,g as fe,j as M,i as Ce,l as Se}from"./core-BI5oX4mx.js";import{a as ge,e8 as be,z as ye,ea as Pe,ec as N,ed as Ie,bn as W,a8 as we,k as $,ee as H,eo as Ee,G as ke,S as Ae,w as xe,eh as Te,ei as Ue,av as _e,el as Oe,em as ve,bk as Qe,en as Fe}from"./index-C2L5Bzwa.js";import{gK as $e,fE as G,fF as je,g8 as De,jh as Le,jd as Ve,fG as z,gu as qe,go as Re,gq as B,gw as Me,gx as He,gy as ze,gz as Be,gA as Ne}from"./zeni-epic-state-CIizsNeB.js";import{D as We,n as D,P as Ge,S as Ke}from"./mui-KP5Ep0NX.js";import"./recharts-DRl2ZsSW.js";import"./analytics-5LJ4BXQX.js";import"./plaid-BrgJMdej.js";import"./dnd-D6wtGmk9.js";import"./stripe-cKAAJElX.js";import"./lottie-lQbJqTc2.js";import"./lexical-BLu7UAko.js";import"./pdf-DflcYtDk.js";import"./utils-BzQpFQvw.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]="1467e7ce-7f14-46c1-bbdf-ef3ed2f1e651",e._sentryDebugIdIdentifier="sentry-dbid-1467e7ce-7f14-46c1-bbdf-ef3ed2f1e651")}catch{}})();const K="chat-response-generated",Y="cards/ask",J="card_policy_hero";function j(e){return`/${e}/cards`}function X(e){return`/${e}/cards/policy`}const Ye=Se((function(e,a){const o=G(e),c=a.isSubmitting,d=Ue(e,{allUsers:a.allUsers,onCardPolicyVendorSearchTextChange:a.onCardPolicyVendorSearchTextChange});return{showSampleQuestions:a.sessionFromUrl==="new_chat"&&o.uiState.currentChatSessionId==null,aiCfoView:o,isSubmitting:c,isNewChatSession:a.sessionFromUrl==="new_chat",isFullView:!0,tableDownloadEndPoint:`${_e}/tableDownload`,exportDownloadEndPoint:Oe(),emailLinkQuestion:a.emailLinkQuestion,autoSubmitEmailLinkQuestion:a.autoSubmitEmailLinkQuestion,onEmailLinkQuestionProcessed:a.onEmailLinkQuestionProcessed,isFileUploadEnabled:a.isFileUploadEnabled,isUploadPromoVisible:a.isUploadPromoVisible,onUploadPromoClose:a.onUploadPromoClose,...d}}),(function(e,a){const{location:o,currentTenant:c,userId:d,navigate:m,currentChatSessionId:h,allSessionsWithOrderedQuestionAnswers:E,isAiCardCreationEnabled:x,isCardPolicyEnabled:T,cardPolicyPageContext:U}=a,i=c.tenantEmailDomain,f=o.state?.referrer,p=f===J?X(i):j(i);return{onEventReceived:(n,t)=>{if(n===K&&typeof t.text=="string"&&typeof t.metadata=="object"){const s=t,C=He(s.type),b=s.metadata.chat_session_id??null,{currentChatSession:y,currentQuestionAnswer:u,currentQuestionAnswerSummary:P}=W(E,b);C!=="answer"?$.trackAICFOChatResponseGenerated(C,u?.question.questionText??"",s.text,b,Fe(P,y),s.metadata.message_id??null):$.trackAICFOChatAnswerGenerated(s.text,u?.question.questionText??"",(s.follow_up_questions?.length??0)>0,!!s.assumptions,!!s.insights,s.visualization!=null,ze(s.visualization?.type??"")??null,b,s.summarized_title,s.metadata.message_id??null),e(Be({chatSessionId:s.metadata.chat_session_id,responseType:C,fetchState:{fetchState:"Completed",error:void 0}})),e(Ne({chatSessionId:s.metadata.chat_session_id,answerPayload:s,userId:d}))}},onSubmit:(n,t,s,C)=>{n&&Qe(e,n,t,h,E,d,C,s,U)},updateCurrentInput:n=>{e(B(n))},onStopSubmit:()=>{},onUpdateScrollYOffset:n=>{e(Me(n))},onSelectSampleQuestion:()=>{},onBackClick:()=>{m(-1)},onCloseClick:()=>{m(p,{state:{...o.state}}),e(B(""))},togglePageView:()=>{m(p,{state:N(o.state)}),a.setIsAiCfoOpen(!0)},onCopy:()=>{},onThumbsUp:()=>{},onThumbsDown:()=>{},onTogglePageView:()=>{m(-1)},onNewChatClick:()=>{h!=null&&e(Re()),m((function(n){return`/${n}/${Y}`})(i),{state:{...o.state}})},onToggleCotCollapsed:(n,t)=>{e(qe({questionAnswerId:n,isCollapsed:t}))},...ve(e,{isAiCardCreationEnabled:x,isCardPolicyEnabled:T,currentChatSessionId:h,onAfterCardsCreationSubmit:()=>{a.setIsAiCfoOpen(!0),m(j(i),{state:{...o.state}})},onAfterCardPolicySubmit:()=>{a.setIsAiCfoOpen(!0),m(`/${i}/cards/policy`,{state:{...o.state}})}})}}))(xe(Te)),{spendManagement:{chargeCard:{cardsAiCfoHero:Z,cardPolicyAiCfoHero:ee}}}=ke.getLocalizedStrings(),A=Z.pageTitle,Je=ee.pageTitle,Xe=Z.chatHeaderSubtitle,Ze=ee.chatHeaderSubtitle,gt=({isFileUploadEnabled:e})=>{const{setIsAiCfoOpen:a}=ge(),o=pe(),c=he(),d=fe(),[m,h]=l.useState(!1),{allUsers:E,isAiCardCreationEnabled:x,isCardPolicyEnabled:T,onCardPolicyVendorSearchTextChange:U}=be();l.useEffect((()=>{o($e())}),[o]);const i=M((r=>G(r))),f=ye.getSignedInUser(),{session_id:p}=Ce(),n=M((r=>je(r))),t=i.uiState.currentChatSessionId,s=n.tenantEmailDomain,{handleUploadPromoClose:C,isUploadPromoVisible:b}=Pe({isFileUploadEnabled:e,tenantEmailDomain:s}),y=d.state,u=y?.aiCfoInitialQuestion??null,P=!!y?.aiCfoShouldSubmit,I=y?.referrer===J,te=I?"card_policy":void 0,se=l.useMemo((()=>({title:I?Je:A,subtitle:I?Ze:Xe})),[I]),[ae,_]=l.useState(null),[oe,O]=l.useState(!1),v=l.useRef(!1);l.useEffect((()=>{v.current||u==null||u===""||(_(u),O(P),v.current=!0)}),[u,P]);const ne=l.useCallback((()=>{_(null),O(!1),c(d.pathname,{replace:!0,state:N(d.state)})}),[d.pathname,d.state,c]),ie=n.masterTOSInfo,S=ie?.isMasterTOSAccepted??!1,k=l.useRef(null);l.useEffect((()=>{if(S&&k.current!=null){const{question:r,shouldSubmit:w}=k.current;k.current=null,_(r),O(w),v.current=!1}}),[S]);const{visitedSessions:L}=Ie(t),Q=i.fetchState,F=i.uiState.chatSessionsNextPageToken.hasMore||!i.uiState.chatSessionsFirstPageFetched,V=t!=null?i.fetchChatSessionHistoryByChatSessionId?.[t]?.fetchState??"Not-Started":"Not-Started",q=t==null||(i.uiState.chatHistoryNextPageToken[t]?.hasMore??!0),R=i.allSessionsWithOrderedQuestionAnswers,{currentSessionQuestionAnswers:re}=W(R,t),le=re.length===0;l.useEffect((()=>{t!=null&&p!==t&&c((function(r,w){return`/${r}/${Y}/${w}`})(s,t),{state:{...d.state},replace:!0})}),[t,p,s,c,d.state]),l.useEffect((()=>{p!=null&&t==null&&p!=="new_chat"&&o(De({sessionId:p,agentId:"controller"}))}),[]);const de=l.useMemo((()=>({events:L.map((r=>`private-encrypted-chat-${r}.${K}`)),eventCallback:(r,w,me)=>me.onEventReceived(r,w)})),[L]);if(l.useEffect((()=>{Q!=="In-Progress"&&F&&o(Le())}),[Q,F,o]),l.useEffect((()=>{t!=null&&V!=="In-Progress"&&q&&f!=null&&Q==="Completed"&&!F&&o(Ve(t,f.userId))}),[V,q,t,f,o]),f==null)throw Error("Can't access Cards AI CFO page without signing in...");const ce=p??"new_chat",ue=t!=null&&i.responseStateByChatSessionId?.[t]?.answer?.fetchState==="In-Progress";return g.jsxs(tt,{children:[g.jsx(we,{analytics:$,onLoad:r=>r.trackPageLoaded(Ae.Event.aiCFOPage)}),S?g.jsx(Ye,{...de,currentChatSessionId:t,allSessionsWithOrderedQuestionAnswers:R,allUsers:E,isAiCardCreationEnabled:x,isCardPolicyEnabled:T,openOnboardingPage:()=>h(!0),userId:f.userId,setIsAiCfoOpen:a,navigate:c,sessionFromUrl:ce,location:d,isSubmitting:ue,isEmptyChatWithSession:le,customPageTitle:A,chatHeader:se,currentTenant:n,emailLinkQuestion:ae??void 0,autoSubmitEmailLinkQuestion:oe,onEmailLinkQuestionProcessed:ne,isFileUploadEnabled:e,isUploadPromoVisible:b,onUploadPromoClose:C,onCardPolicyVendorSearchTextChange:U,cardPolicyPageContext:te}):g.jsx(H,{isTOSAccepted:S,acceptMasterTOSState:i.masterTOSAcceptanceState,customPageTitle:A,onCloseClick:()=>{c(I?X(s):j(s),{state:{...d.state}})},onCompleteClick:()=>{S||n.userRoleId==null||(u!=null&&u!==""&&(k.current={question:u,shouldSubmit:P}),o(z(n.userRoleId)))}}),g.jsx(We,{anchor:"right",open:m,transitionDuration:250,PaperProps:{component:st,style:{width:`${Ee}vw`}},slotProps:{backdrop:{style:{backgroundColor:"transparent",cursor:"pointer"}}},onClose:()=>h(!1),children:g.jsx(et,{onClick:r=>r.stopPropagation(),children:g.jsx(H,{isTOSAccepted:S,acceptMasterTOSState:i.masterTOSAcceptanceState,customPageTitle:A,onCloseClick:()=>h(!1),onCompleteClick:()=>{S||n.userRoleId==null||o(z(n.userRoleId)),h(!1)}})})})]})},et=D(Ke)`
2
- display: flex;
3
- min-height: 100%;
4
- flex-direction: column;
5
- `,tt=D.div`
6
- flex: 1 1 auto;
7
- display: flex;
8
- flex-direction: column;
9
- min-height: 0;
10
- width: 100%;
11
- `,st=D(Ge)`
12
- box-shadow: ${({theme:e})=>e.colors.elevation2};
13
- color: ${({theme:e})=>e.colors.grey4};
14
- `;export{gt as default};
@@ -1 +0,0 @@
1
- import{j as i}from"./liveblocks-CW9yScMF.js";import{z as m}from"./index-C2L5Bzwa.js";import{g as n}from"./QBOConnectionScreen-CUhLSYvc.js";import"./sentry-C_uJQK1a.js";import{g as p,N as a}from"./core-BI5oX4mx.js";import"./zeni-epic-state-CIizsNeB.js";import"./recharts-DRl2ZsSW.js";import"./mui-KP5Ep0NX.js";import"./analytics-5LJ4BXQX.js";import"./plaid-BrgJMdej.js";import"./dnd-D6wtGmk9.js";import"./stripe-cKAAJElX.js";import"./lottie-lQbJqTc2.js";import"./lexical-BLu7UAko.js";import"./pdf-DflcYtDk.js";import"./utils-BzQpFQvw.js";import"./empty-D1y42ZwI.js";import"./pdf-lib-iL5hUpKl.js";import"./index-BT5wSX8Z.js";import"./url-0wqXxJRo.js";import"./index-Cf-PV9pR.js";import"./decodeURIComponentSafe-B7oIXSPO.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]="a1205b81-d106-415b-bd92-85aeae53ace3",t._sentryDebugIdIdentifier="sentry-dbid-a1205b81-d106-415b-bd92-85aeae53ace3")}catch{}})();const U=()=>{const t=p(),{code:o,realmId:r,state:e}=n(t.search),s=m.getSignedInUser()?.userId??"";if(f(o,r,e,s)===!0){const d=`../../${e}/onboarding?code=${o}&realmId=${r}&state=auth_flow`;return i.jsx(a,{to:d})}return i.jsx(a,{to:"../../"})},f=(t,o,r,e)=>t!=""&&o!=""&&r!=""&&e!=null&&e!="";export{U as default,f as hasValidParams};
@@ -1 +0,0 @@
1
- import{j as i}from"./liveblocks-CW9yScMF.js";import{a1 as d,ab as l,c as f}from"./index-C2L5Bzwa.js";import{D as b}from"./mui-KP5Ep0NX.js";import"./sentry-C_uJQK1a.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]="c0c598f3-c0a4-43a6-914b-a6b171c990b0",e._sentryDebugIdIdentifier="sentry-dbid-c0c598f3-c0a4-43a6-914b-a6b171c990b0")}catch{}})();const p={drawerLeftMargin:new l(0,0,240)};function h(e){const{isOpen:r,drawerLeftMargin:o,children:n,onClose:t}=e,a=d(),s=o?.valuePx(a)??p.drawerLeftMargin.valuePx(a),c=f();return i.jsx(b,{anchor:"right",open:r,PaperProps:{style:{width:`calc(100% - ${s})`}},slotProps:{backdrop:{style:{backgroundColor:c.colors.black,opacity:.8,cursor:"pointer"}}},onClose:t,children:n})}export{h as D};
@@ -1,12 +0,0 @@
1
- import{j as u}from"./liveblocks-CW9yScMF.js";import{a as g}from"./sentry-C_uJQK1a.js";import{u as O,g as _,h as w,t as M,j as l,N as U}from"./core-BI5oX4mx.js";import{z as r,c as P,G as V,Q as A,k as N,S as $,_ as G,$ as Q,X as R}from"./index-C2L5Bzwa.js";import{fF as W,TL as X,Uc as q,U3 as B,gi as H,gk as J,U8 as K,gU as Y,dj as Z,Ud as ee,Ue as te}from"./zeni-epic-state-CIizsNeB.js";import{n as ne}from"./mui-KP5Ep0NX.js";import{u as ae}from"./useDeviceId-CAlK1w38.js";import{f as se}from"./analyticsHelper-k_Sp-PwA.js";import{t as ie}from"./getLocaleForTenant-Cv6I-eSM.js";import"./recharts-DRl2ZsSW.js";import"./analytics-5LJ4BXQX.js";import"./plaid-BrgJMdej.js";import"./dnd-D6wtGmk9.js";import"./stripe-cKAAJElX.js";import"./lottie-lQbJqTc2.js";import"./lexical-BLu7UAko.js";import"./pdf-DflcYtDk.js";import"./utils-BzQpFQvw.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]="d0d1e6ae-88be-4ac4-ac2a-2661881d645f",t._sentryDebugIdIdentifier="sentry-dbid-d0d1e6ae-88be-4ac4-ac2a-2661881d645f")}catch{}})();const T=(t,s)=>t!=null&&t.length>0&&s==="magic_links";function Te(){const t=O(),s=_(),f=w(),[y]=M(),n=y.get("token"),p=y.get("stytch_token_type"),m=r.getMagicLinkCodeVerifier(),i=ae(),{otpChallenge:d,twoFAPhoneNumber:C,magicLinkEmail:c,verifyDeviceFetchState:x,resendVerifyDeviceOTPFetchState:z}=l((e=>e.tenantState)),S=l((e=>e.tenantState.fetchState)),b=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))),k=l((e=>X(e))),D=r.getSignedInUser(),v=P().mode;g.useEffect((()=>{a?.zeniSessionId==null&&n!=null&&T(n,p)&&i!=null&&m!=null&&(r.saveMagicLinkTriggered(n),t(q(n,i,m)))}),[n,p,t,i,m,a?.zeniSessionId]),g.useEffect((()=>{I!=="In-Progress"||S!=="Completed"&&b!=="Completed"||a?.zeniSessionId==null||o==null||(n!=null&&r.saveLastUsedMagicLinkToken(n),r.saveSignedInUserWithSession(a,a.zeniSessionId),r.saveSignedInUserTenants(B(k.tenantsInOrder),a.zeniSessionId),H(a.userId,a.zeniSessionId,o.tenantId),t(J(o.tenantId)),r.saveActiveTenantDomainForUser(o.tenantEmailDomain),t(K("Completed")),V.updateAppLocaleID(ie(o)),se(a,o,v,void 0,k.tenantsInOrder),Y().then((()=>{const e=R();e!=null&&A(e)})),setTimeout((()=>{N.trackLogin($.Event.loginSuccess,"email",Z(o.productSettings))}),2e3))}),[I,S,b,a,o,k,v,s.state,t]);const E=g.useCallback((()=>{f("/signin/auth")}),[f]),j=g.useCallback((()=>{i!=null&&d!=null&&c!=null&&t(ee(i,c,d))}),[i,d,t,c]),F=g.useCallback((e=>{i!=null&&n!=null&&c!=null&&d!=null&&t(te(e,i,c,d))}),[i,n,t,c,d]);if(h==="Completed"&&d!=null)return u.jsx(G,{phoneNumber:C,verifyOtpFetchState:x.fetchState,resendVerifyDeviceOTPFetchState:z,onResendOtp:j,onVerifyOtp:F,onCancelVerifyDevice:E});if(I==="In-Progress"&&S==="Completed"&&a?.zeniSessionId!=null&&o!=null||D!=null){const e=s.state?.origin??"/";return u.jsx(U,{to:e,state:{...s.state,origin:""}})}if(!T(n,p)||m==null||h==="Error"){const e=s.state?.origin??"/",L=n!=null&&r.getLastUsedMagicLinkToken()===n;return u.jsx(U,{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(Q,{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{Te as default};
@@ -1 +0,0 @@
1
- import{j as e}from"./liveblocks-CW9yScMF.js";import{h as r,l as i}from"./core-BI5oX4mx.js";import{am as n}from"./index-C2L5Bzwa.js";import"./mui-KP5Ep0NX.js";import"./sentry-C_uJQK1a.js";import"./zeni-epic-state-CIizsNeB.js";import"./recharts-DRl2ZsSW.js";import"./analytics-5LJ4BXQX.js";import"./plaid-BrgJMdej.js";import"./dnd-D6wtGmk9.js";import"./stripe-cKAAJElX.js";import"./lottie-lQbJqTc2.js";import"./lexical-BLu7UAko.js";import"./pdf-DflcYtDk.js";import"./utils-BzQpFQvw.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]="f2f6ef04-8019-4dfe-8bec-98d5efe59039",o._sentryDebugIdIdentifier="sentry-dbid-f2f6ef04-8019-4dfe-8bec-98d5efe59039")}catch{}})();const f=i(null,(function(o,t){return{onGoBack:()=>{t.navigate(-1)},onGoHome:()=>{t.navigate("/")}}}))(n);function _(){const o=r();return e.jsx(f,{navigate:o})}export{_ as default};
@@ -1 +0,0 @@
1
- import{j as a}from"./liveblocks-CW9yScMF.js";import{z as w,a8 as b,k as u,S as k,e4 as D,N as E,d as I}from"./index-C2L5Bzwa.js";import"./mui-KP5Ep0NX.js";import g from"./NotFoundScreen-CS6UgwGr.js";import{a as c}from"./sentry-C_uJQK1a.js";import{u as C,j as h,h as F,g as L,l as T,n as U,o as d,N as y}from"./core-BI5oX4mx.js";import{fF as _,a1M as j,a1N as p,DI as P,p$ as V,a1O as G,DG as z}from"./zeni-epic-state-CIizsNeB.js";import"./recharts-DRl2ZsSW.js";import"./analytics-5LJ4BXQX.js";import"./plaid-BrgJMdej.js";import"./dnd-D6wtGmk9.js";import"./stripe-cKAAJElX.js";import"./lottie-lQbJqTc2.js";import"./lexical-BLu7UAko.js";import"./pdf-DflcYtDk.js";import"./utils-BzQpFQvw.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]="26996ed1-7f04-4d51-a0c1-3a5e09816d61",e._sentryDebugIdIdentifier="sentry-dbid-26996ed1-7f04-4d51-a0c1-3a5e09816d61")}catch{}})();const M=T((function(e,t){const n=j(e);return{inviteFormView:n.localData,submitStatus:n.saveStatus,userName:t.userName,rewardsPlan:n.rewardsPlan,companyLegalName:t.companyName}}),(function(e,t){const{navigate:n}=t,i=w.getSignedInUser();return{onDismissClick:()=>{e(p()),n("/")},onSendClick:()=>{if(i!=null){const s=[],r=[];t.inviteFormCompayData.forEach((l=>{s.push(l.companyName),r.push(l.emailIds[0])})),u.trackInviteEmailClicked("send",s,r,s.length)}e(z())},onUpdateInviteFormLocalData:s=>{e(G({localData:s}))},onSubmitSuccess:()=>{e(p())},onCancelClick:()=>{i!=null&&u.trackInviteEmailClicked("cancel")}}}))(D),O=()=>{const e=C(),[t,n]=c.useState(!1),[i,s]=c.useState(!1),r=h((o=>_(o))),l=F(),x=L(),f=w.getSignedInUser();if(f==null)throw Error("Can't access invite referral screen without signing in...");const m=h((o=>j(o))),N=f?.firstName!=null?f.firstName:"User";c.useEffect((()=>{e(p()),r?.rewardsLastViewedTime==null&&i===!1&&(e(P()),s(!0))}),[]),c.useEffect((()=>{t||m.fetchState!=="Not-Started"||(n(!0),e(V(!0)))}),[m.fetchState,e]);const S=r.company?.companyInfo.companyLegalName??r.companyName;return a.jsxs(a.Fragment,{children:[m.fetchState==="Completed"?a.jsx(b,{analytics:u,onLoad:o=>(v=>v.trackPageLoaded(k.Event.inviteEmailViewed))(o)}):null,a.jsx(M,{navigate:l,location:x,currentTenant:r,companyName:S,userName:N,inviteFormCompayData:m.localData})]})};function ne(){const{useFeatureGate:e}=E(),{isFeatureEnabled:t}=e(I.isReferralFeatureEnabled);return a.jsxs(U,{children:[a.jsx(d,{path:"/",element:a.jsx(y,{to:"refer",replace:!0})}),a.jsx(d,{path:"how-it-works",element:a.jsx(y,{to:"refer",replace:!0})}),a.jsx(d,{path:"refer/*",element:t?a.jsx(O,{}):a.jsx(g,{})}),a.jsx(d,{path:"*",element:a.jsx(g,{})})]})}export{ne as default};
@@ -1 +0,0 @@
1
- import{j as u}from"./liveblocks-CW9yScMF.js";import{a as f,R as T,q as A}from"./sentry-C_uJQK1a.js";import{u as z,h as D,j as c,g as j,N as F,l as M}from"./core-BI5oX4mx.js";import{u as O,z as s,c as P,k as E,G as N,Q as _,S as B,T as $,X as V,Y as q,Z as v}from"./index-C2L5Bzwa.js";import{fF as J,TL as Q,U3 as R,gi as W,gk as X,U8 as G,gU as H,dj as Y,U9 as y,Ua as Z,Ub as K,b$ as U}from"./zeni-epic-state-CIizsNeB.js";import"./mui-KP5Ep0NX.js";import{u as ee}from"./useDeviceId-CAlK1w38.js";import{f as te}from"./analyticsHelper-k_Sp-PwA.js";import{t as ne}from"./getLocaleForTenant-Cv6I-eSM.js";import"./recharts-DRl2ZsSW.js";import"./analytics-5LJ4BXQX.js";import"./plaid-BrgJMdej.js";import"./dnd-D6wtGmk9.js";import"./stripe-cKAAJElX.js";import"./lottie-lQbJqTc2.js";import"./lexical-BLu7UAko.js";import"./pdf-DflcYtDk.js";import"./utils-BzQpFQvw.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]="983187fb-34be-4852-8eea-0580d0ca0c20",t._sentryDebugIdIdentifier="sentry-dbid-983187fb-34be-4852-8eea-0580d0ca0c20")}catch{}})();const ie=M((function(t,i){const d=t.tenantState.fetchState,g=t.tenantState.sendEmailMagicLinkFetchState,{magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:l}=i;return{googleClientId:v.googleClientId,microsoftClientId:v.microsoftClientId,signInError:t.tenantState.error?.error,fetchState:d,sendMagicLinkStatus:g,magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:l}}),(function(t,i){const{location:d,navigate:g}=i;return console.warn(JSON.stringify(window.location)),{onOAuthError:(n,a)=>{A({message:`OAuth error from provider ${a} with error ${n}`,level:"error",tags:{authProvider:a,errorType:"zeni.login.error"},extra:{error:n,windowLocation:window.location.href}})},onOAuthSuccess:(n,a)=>{const l=a==="google"?window.location.origin:window.location.origin+window.location.pathname;t(K({authCode:n,oauthProvider:a,appType:"web",redirectUri:U(l),sourceUri:U(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(Z(n,a)))},clearSignInError:()=>{t(y())}}}))(q),ae=T.memo(ie);function ve({setTenantEmailDomain:t}){const i=z(),d=D(),{clearAllLoading:g}=O(),n=s.getSignedInUser();f.useLayoutEffect((()=>{g()}),[g]);const a=ee(),l=c((e=>e.tenantState.magicLinkCodeVerifier)),{sendEmailMagicLinkFetchState:k,accountLocked:b,accountUnlockTime:L}=c((e=>e.tenantState)),p=c((e=>e.tenantState.fetchState)),h=c((e=>e.tenantState.activeTenantFetchState.fetchState)),S=c((e=>e.tenantState.signInState)),o=c((e=>e.tenantState.loggedInUser)),r=c((e=>J(e))),I=c((e=>Q(e))),m=j(),w=P().mode,C=m.state?.magicLinkExpired,x=m.state?.magicLinkAlreadyUsed;if(f.useEffect((()=>{k.fetchState==="Completed"&&l!=null&&(E.trackSignInLinkSent(),s.saveMagicLinkCodeVerifier(l))}),[k.fetchState,l]),f.useEffect((()=>{t(void 0)}),[]),f.useEffect((()=>{S!=="In-Progress"||p!=="Completed"&&h!=="Completed"||o?.zeniSessionId==null||r==null||(s.savePayNowInfoTooltip(!0,o.zeniSessionId),s.saveSignedInUserWithSession(o,o.zeniSessionId),s.saveSignedInUserTenants(R(I.tenantsInOrder),o.zeniSessionId),W(o.userId,o.zeniSessionId,r.tenantId),i(X(r.tenantId)),s.saveActiveTenantDomainForUser(r.tenantEmailDomain),i(G("Completed")),N.updateAppLocaleID(ne(r)),te(o,r,w,void 0,I.tenantsInOrder),H().then((()=>{const e=V();e!=null&&_(e)})),setTimeout((()=>{E.trackLogin(B.Event.loginSuccess,o.authProvider??"google",Y(r.productSettings))}),2e3))}),[S,p,h,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(F,{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}),b===!0&&L!=null?u.jsx($,{onClose:()=>i(y()),unlockDate:L}):null]})}export{ve as default};
@@ -1,9 +0,0 @@
1
- import{j as s}from"./liveblocks-CW9yScMF.js";import{a as i}from"./sentry-C_uJQK1a.js";import{u as c,g as l,N as u}from"./core-BI5oX4mx.js";import{z as n,k as a,S as m,a7 as p}from"./index-C2L5Bzwa.js";import{gX as g,Up as y}from"./zeni-epic-state-CIizsNeB.js";import{n as b}from"./mui-KP5Ep0NX.js";import"./recharts-DRl2ZsSW.js";import"./analytics-5LJ4BXQX.js";import"./plaid-BrgJMdej.js";import"./dnd-D6wtGmk9.js";import"./stripe-cKAAJElX.js";import"./lottie-lQbJqTc2.js";import"./lexical-BLu7UAko.js";import"./pdf-DflcYtDk.js";import"./utils-BzQpFQvw.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]="c546efcd-f474-40ae-9bdf-076ae0e76d5d",e._sentryDebugIdIdentifier="sentry-dbid-c546efcd-f474-40ae-9bdf-076ae0e76d5d")}catch{}})();function N(){const e=c(),t=l(),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(f){console.error("Error during sign out:",f)}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{N as default};
@@ -1,9 +0,0 @@
1
- import{j as C}from"./liveblocks-CW9yScMF.js";import{a as T}from"./sentry-C_uJQK1a.js";import{h as pa,u as fa,g as Ta,k as ga,j as F,i as _a,l as ma}from"./core-BI5oX4mx.js";import{aK as Da,aL as Sa,z as x,N as ba,d as G,as as ha,a8 as Ea,k as ya,S as Aa,e7 as Ca,p as R,a4 as Ga}from"./index-C2L5Bzwa.js";import{fF as Ia,a1T as H,QW as B,a1U as J,a1P as Ba,Qi as M,a1V as Ka,Qq as W,Q0 as La,PE as va,QX as V,a1W as q,gh as wa,QN as Ra,QS as Ua,QF as Pa,QD as X,QT as Fa,QA as ja,a1X as xa,a1Y as $a,a1Z as Na,a1_ as Qa,a1$ as I,dx as Oa,dw as Za,a20 as za,PZ as Ma}from"./zeni-epic-state-CIizsNeB.js";import{n as Wa}from"./mui-KP5Ep0NX.js";import{u as Va}from"./useAskAiCfoHostNavButtonProps-4TGjNsPg.js";import{M as qa}from"./MobileAppDrawer-DEm85bH8.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]="a0880ff2-f079-471f-afd5-cd83300530ad",e._sentryDebugIdIdentifier="sentry-dbid-a0880ff2-f079-471f-afd5-cd83300530ad")}catch{}})();const c={TASK_CREATED:"task-created",TASK_UPDATED:"task-updated",TASK_SNOOZE_RESURFACED:"task-snooze-resurfaced",TASKS_BULK_UPDATED:"tasks-bulk-updated",TASKS_BULK_DELETED:"tasks-bulk-deleted"},Xa=(e,a)=>e==null||e===""?[]:a.map((n=>`private-encrypted-${e}.${n}`)),Ya=(e,a)=>e==null||e===""?[]:a.map((n=>`private-encrypted-${e}.${n}`)),U=e=>Array.isArray(e)&&e.every((a=>typeof a=="string")),Ha=e=>{if(e==null||typeof e!="object")return null;const a=e,n=typeof a.task_id=="string"?a.task_id:typeof a.id=="string"?a.id:null;if(n==null||typeof a.tenant_id!="string"||typeof a.event_type!="string")return null;const o={task_id:n,tenant_id:a.tenant_id,event_type:a.event_type};return typeof a.is_private=="boolean"&&(o.is_private=a.is_private),U(a.assignees)&&(o.assignees=a.assignees),U(a.direct_assignees)&&(o.direct_assignees=a.direct_assignees),typeof a.created_by=="string"&&(o.created_by=a.created_by),U(a.task_group_ids)&&(o.task_group_ids=a.task_group_ids),typeof a.name=="string"&&(o.name=a.name),typeof a.parent_task_id=="string"&&(o.parent_task_id=a.parent_task_id),o},Ja=e=>{if(e==null||typeof e!="object")return null;const a=e;return U(a.task_ids)?{task_ids:a.task_ids}:null},pe=e=>{if(e==null||typeof e!="object")return null;const a=e;return typeof a.task_id!="string"?null:{task_id:a.task_id}},ae=e=>{const{events:a,onEvent:n,onSubscribed:o}=e,i=Da(),g=T.useRef(n),l=T.useRef(o),_=T.useRef(0);T.useEffect((()=>{g.current=n}),[n]),T.useEffect((()=>{l.current=o}),[o]);const t=T.useMemo((()=>[...a].sort().join("|")),[a]);T.useEffect((()=>{if(i==null||a.length===0)return;const s=[],p=new Set,b=()=>{if(l.current==null)return;const m=Date.now();m-_.current<5e3||(_.current=m,l.current())};return a.forEach((m=>{const[D,S]=Sa(m);if(S==="")return;const E=i.channel(D),y=f=>{g.current(S,f)};let k;if(E?.subscribed===!0){if(k=E,k.bind(S,y),!p.has(D)){p.add(D),b();const f=()=>{b()};k.bind("pusher:subscription_succeeded",f),s.push((()=>{k.unbind("pusher:subscription_succeeded",f)}))}s.push((()=>{E.unbind(S,y)}))}else{if(k=E??i.subscribe(D),k.bind(S,y),!p.has(D)){p.add(D);const f=()=>{b()};k.bind("pusher:subscription_succeeded",f),s.push((()=>{k.unbind("pusher:subscription_succeeded",f)}))}s.push((()=>{k.unbind(S,y)}))}})),()=>{s.forEach((m=>m()))}}),[i,t])},ee=Wa.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
- `,te=ma((function(e,a){const n=H(e,a.isTaskTemplatesEnabled),{taskGroupId:o}=a,i=o!=null&&o!==""?{...n,taskGroupsWithTasksList:n.taskGroupsWithTasksList.map((t=>({...t,tasks:t.tasks.filter((s=>s.taskGroupIds.includes(o)))}))).filter((t=>t.tasks.length>0))}:n,g=Ba(e),l=x.isZeniUser(),_=e.taskDetailState?.subTaskCreateStatus?.fetchState;return{taskListView:i,tagListView:g,localData:i.localData,isTaskTemplatesEnabled:a.isTaskTemplatesEnabled,isZeniUser:l,subTaskCreateStatus:_}}),(function(e,a){const{navigate:n,currentTenant:o,location:i,isTaskTemplatesEnabled:g}=a,{tenantEmailDomain:l}=o,{groupByKey:_}=a.uiState;return{onTaskManagementRowClick:t=>{const s=Y(l,t),p=R(i.state?.pathnameStackToGoBack,i.pathname);n(s,{state:{pathnameStackToGoBack:p}})},onReloadTasks:()=>{e(B(!0,g))},onTabChange:t=>{e(Qa(t))},onParentTaskClick:t=>{const s=Y(l,t);window.open(s,"_blank","noopener")},bulkUpdateTasks:(t,s)=>{e(X(t,null,s))},onNewTaskClick:()=>{if(a.localData.defaultTaskGroupId!=null){const t=j(l,a.localData.defaultTaskGroupId),s=R(i.state?.pathnameStackToGoBack,i.pathname);n(t,{state:{pathnameStackToGoBack:s,message:"comingFromTaskListPage"}})}},onColumnSortConfigChanged:(t,s)=>{e(q({uiState:{sortKey:t,sortOrder:s}}))},onFiltersChange:t=>{e(Na({filters:t}))},onSearchTextChanged:t=>{e($a({searchText:t}))},onReloadCards:()=>{e(B(!0,g))},onBackClick:()=>{if(i.state?.message==="triggerBackClick"){const t=Ga(i.state?.pathnameStackToGoBack),s=t.poppedPathname??"../";n(s,{state:{pathnameStackToGoBack:t.newStack}})}else n("../")},updateLocalData:t=>{e(xa({localData:t}))},resetLocalData:()=>{e(J({taskGroupById:a.taskGroupState.taskGroupById}))},handleCreateGroup:t=>{e(ja(a.localData.newTaskGroupName,t))},assignGroupToTasks:t=>{e(X(a.localData.selectedTaskIds,t,Fa(a.uiState.groupByKey,t)))},onDeleteTaskGroup:t=>{e(Pa(t))},onAddNewTaskToTaskGroup:t=>{if(a.localData.defaultTaskGroupId!=null){const s=ne(_,t);e(M({taskDetailLocalData:s}));const p=j(l,a.uiState.groupByKey==="groupName"?t:a.localData.defaultTaskGroupId),b=R(i.state?.pathnameStackToGoBack,i.pathname);n(p,{state:{pathnameStackToGoBack:b,message:"comingFromTaskListPage"}})}},onDragNDrop:(t,s)=>{e(Ua(a.localData.selectedTaskIds.length>0?a.localData.selectedTaskIds:[t],s))},onTaskGroupRename:(t,s)=>{e(Ra(t,s))},onTimeSpentUpdate:(t,s)=>{e(V({task:t,updates:s}))},onShowToast:t=>{e(wa(t))},onGroupByFilterChange:t=>{e(q({uiState:{groupByKey:t}}))},updateTask:(t,s)=>{e(V({task:t,updates:s}))},onCreateTagClick:(t,s)=>{e(va(t,s))},onSubtaskCreation:(t,s)=>{e(La({...s,parentTaskId:t}))},handleGroupTemplateClick:t=>{e(W(t,[]))},handleGroupTemplateTaskClick:(t,s)=>{e(W(t,[s]))},handleNewTaskInitialization:t=>{if(e(M({taskDetailLocalData:{...Ka,name:t}})),a.localData.defaultTaskGroupId!=null){const s=j(l,a.localData.defaultTaskGroupId),p=R(i.state?.pathnameStackToGoBack,i.pathname);n(s,{state:{pathnameStackToGoBack:p,message:"comingFromTaskListPage"}})}},onTaskGroupNameClick:t=>{n(`/${l}/tasks/group/${t}`)},onQuickResponsesClick:()=>{n(`/${l}/tasks/quick-responses`)}}}))(Ca);function se(){const e=pa(),a=fa(),n=Ta(),o=x.getSignedInUser(),i=x.isZeniUser(),g=ga(),l=F((u=>Ia(u))),{taskGroupId:_}=_a(),{useFeatureGate:t}=ba(),{isFeatureEnabled:s}=t(G.isTaskTemplatesEnabled),{isFeatureEnabled:p}=t(G.isTaskCannedResponsesEnabled),{isFeatureEnabled:b}=t(G.isTaskCategorizationEnabled),{isFeatureEnabled:m}=t(G.isTaskBulkResolutionEnabled),{isFeatureEnabled:D}=t(G.isTaskGroupAssigneesEnabled),{isFeatureEnabled:S}=t(G.isTaskRecurringParentEnabled),[E,y]=T.useState(!1),k=F((u=>H(u,s))),f=F((u=>u.taskGroupState)),K=k.fetchState,{isAiCfoAccessEnabled:aa,onAskAiCfoClick:ea}=Va({mobileExploreReferrer:"Task Checklist"});ha({isDataReady:K==="Completed"}),T.useEffect((()=>{a(B(!1,s))}),[l?.tenantId,a,s]);const ta=T.useMemo((()=>{const u=[c.TASK_CREATED,c.TASK_UPDATED,c.TASKS_BULK_UPDATED,c.TASKS_BULK_DELETED],A=[c.TASK_CREATED,c.TASK_UPDATED,c.TASK_SNOOZE_RESURFACED,c.TASKS_BULK_UPDATED];return[...Xa(l?.companyId,u),...Ya(o?.userId,A)]}),[l?.companyId,o?.userId]);if(ae({events:ta,onEvent:(u,A)=>{switch(u){case c.TASK_CREATED:case c.TASK_UPDATED:{const r=Ha(A);if(r!=null){const w=g.getState(),$=r.task_id,h=$!=null?w.taskState.taskByID?.[$]:void 0,P=h!=null;if(!i)if(r.is_private===!0){if(!P)return}else{const L=o?.userId,v=new Set([...r.assignees??[],...r.direct_assignees??[]]);if(r.created_by!=null&&r.created_by!==""&&v.add(r.created_by),!(L!=null&&v.has(L))&&!P)return}if(u===c.TASK_UPDATED&&P&&h!=null&&Array.isArray(r.task_group_ids)){const L=new Set(Object.values(w.taskGroupState.taskGroupById??{}).filter((d=>d!=null&&!d.isDeleted)).map((d=>d.id))),v=(h.taskGroupIds??[]).filter((d=>L.has(d))),N=(r.task_group_ids??[]).filter((d=>L.has(d))),sa=v.length===N.length&&v.every((d=>N.includes(d))),Q=h.taskGroupIds??[],O=r.task_group_ids??[],na=Q.length!==O.length||!Q.every((d=>O.includes(d))),oa=(d,da)=>{const Z=d??[],z=da??[];if(Z.length!==z.length)return!1;const ca=new Set(z);return Z.every((ka=>ca.has(ka)))},ra=r.name==null||r.name===h.name,ia=r.is_private==null||r.is_private===h.isPrivate,la=r.assignees==null||oa(r.assignees,h.assignees),ua=r.direct_assignees==null;if(sa&&na&&ra&&ia&&la&&ua)return}}return void a(B(!0,s))}case c.TASKS_BULK_DELETED:{const r=Ja(A);return r==null?void 0:void r.task_ids.forEach((w=>a(Ma(w))))}case c.TASKS_BULK_UPDATED:case c.TASK_SNOOZE_RESURFACED:return void a(B(!0,s))}},onSubscribed:()=>{a(B(!0,s))}}),T.useEffect((()=>{K==="Completed"&&a(J({taskGroupById:f.taskGroupById}))}),[K,f.taskGroupById]),o==null)throw Error("Can't access task list page without signing in...");return C.jsxs(C.Fragment,{children:[K==="Completed"?C.jsx(Ea,{analytics:ya,onLoad:u=>(A=>A.trackPageLoaded(Aa.Event.taskListPage))(u)}):null,C.jsxs(ee,{children:[C.jsx(qa,{isAppContentDrawerOpen:E,handleDrawerToggle:u=>{y(u)}}),C.jsx(te,{location:n,navigate:e,currentTenant:l,taskGroupId:_,taskGroupState:f,localData:k.localData,uiState:k.uiState,isTaskTemplatesEnabled:s,taskListFetchState:K,isTaskCategorizationEnabled:b,isTaskCannedResponsesEnabled:p,isTaskBulkResolutionEnabled:m,isTaskGroupAssigneesEnabled:D,isTaskRecurringParentEnabled:S,isAiCfoAccessEnabled:aa,onAskAiCfoClick:ea})]})]})}const Y=(e,a)=>`/${e}/tasks/${encodeURIComponent(a)}`,j=(e,a)=>`/${e}/tasks/new/${a}`,ne=(e,a)=>{if(e==="assignee"){const n=a.split(",");return{...I.taskDetailLocalData,assignee:n}}if(e==="priority"){const n=Oa(a);return{...I.taskDetailLocalData,priority:n}}if(e==="status"){const n=Za(a);return{...I.taskDetailLocalData,status:n}}if(e==="tag"){const n=a.split(",");return{...I.taskDetailLocalData,tagIds:n}}if(e==="dueDate"){const n=za(a);return{...I.taskDetailLocalData,dueDate:n}}return{...I.taskDetailLocalData}},fe=Object.freeze(Object.defineProperty({__proto__:null,default:se},Symbol.toStringTag,{value:"Module"}));export{c as T,Ya as a,Xa as b,Ja as c,Ha as d,se as e,fe as f,pe as t,ae as u};
@@ -1 +0,0 @@
1
- import{j as t}from"./liveblocks-CW9yScMF.js";import i from"./NotFoundScreen-CS6UgwGr.js";import{T as r}from"./TransactionDetailScreen-C32uKUIF.js";import"./sentry-C_uJQK1a.js";import{n as a,o as e}from"./core-BI5oX4mx.js";import"./zeni-epic-state-CIizsNeB.js";import"./recharts-DRl2ZsSW.js";import"./index-C2L5Bzwa.js";import"./mui-KP5Ep0NX.js";import"./analytics-5LJ4BXQX.js";import"./plaid-BrgJMdej.js";import"./dnd-D6wtGmk9.js";import"./stripe-cKAAJElX.js";import"./lottie-lQbJqTc2.js";import"./lexical-BLu7UAko.js";import"./pdf-DflcYtDk.js";import"./utils-BzQpFQvw.js";import"./useAskAiCfoHostNavButtonProps-4TGjNsPg.js";import"./decodeURIComponentSafe-B7oIXSPO.js";import"./useInitialThreadRequest-BNsRpSRE.js";import"./routePaths-BrIEdo8u.js";import"./expenseAutomationHelper-CqPrLTRM.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new o.Error().stack;n&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[n]="bfd19369-9f5a-4875-9ff9-f0a50fe2624d",o._sentryDebugIdIdentifier="sentry-dbid-bfd19369-9f5a-4875-9ff9-f0a50fe2624d")}catch{}})();function z(){return t.jsxs(a,{children:[t.jsx(e,{path:"/:transactionTypeEncoded/:transactionId",element:t.jsx(r,{})}),t.jsx(e,{path:"/:transactionTypeEncoded/:transactionId/page-not-found",element:t.jsx(i,{})}),t.jsx(e,{path:"/:transactionTypeEncoded/:transactionId/vendor/create",element:t.jsx(r,{})}),t.jsx(e,{path:"/*",element:t.jsx(r,{})})]})}export{z as default};
@@ -1,9 +0,0 @@
1
- import{j as i}from"./liveblocks-CW9yScMF.js";import{a as u}from"./sentry-C_uJQK1a.js";import{h as $,u as x,g as T,i as j,j as p}from"./core-BI5oX4mx.js";import{T4 as s,T3 as v,$r as B,fF as C,$s as z}from"./zeni-epic-state-CIizsNeB.js";import{a1 as D,ae as g,c as E,z as L,a7 as P,d6 as N,a4 as U}from"./index-C2L5Bzwa.js";import{n as _}from"./mui-KP5Ep0NX.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]="5fb8202b-e139-4454-91ba-4eff4a15146c",e._sentryDebugIdIdentifier="sentry-dbid-5fb8202b-e139-4454-91ba-4eff4a15146c")}catch{}})();const G=_.div`
2
- display: flex;
3
- height: 100vh;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- `;function H(){const e=$(),n=x(),d=D(),f=T();let{accountId:a}=j(),l=`${g.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${a}`;a==null&&f.pathname.includes(`${s}/statements`)&&(a=s,l=`${g.bankingMicroServiceBaseUrl}/1.0/${s}`);const[m,b]=u.useState(!1),h=E();u.useEffect((()=>{m||(b(!0),n(v(a??"",!1)))}),[m,n]);const o=p((t=>B(t,a??""))),y=()=>{const t=U(f.state?.pathnameStackToGoBack),S=t.poppedPathname??"..";e(S,{state:{pathnameStackToGoBack:t.newStack}})},r=L.getSignedInUser(),c=p((t=>C(t))),I={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:c.tenantId??""},w=z(a??"")===!0?s:o.zeniAccountDetail?.accountLast4??"",k=c.company?.companyInfo.companyLegalName??c.companyName;if(r==null)throw Error("Can't access address page without signing in...");return o.fetchState!=="Completed"?i.jsx(P,{fetchState:"In-Progress",style:{backgroundColor:h.colors.grey5}}):i.jsx(G,{windowSize:d,children:i.jsx(N,{currentTenantCompanyName:k,statementListView:o,accountLast4:w,onBackClick:y,authParams:I,downloadEndPoint:l})})}export{H as Z};
@@ -1 +0,0 @@
1
- import{a as b}from"./sentry-C_uJQK1a.js";import{h as u,g,i as h,j as S}from"./core-BI5oX4mx.js";import{fF as y}from"./zeni-epic-state-CIizsNeB.js";import{a as k,a1 as C,f as A,ar as T,x as I,p as w,au as x}from"./index-C2L5Bzwa.js";import"./mui-KP5Ep0NX.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]="ead57db8-7bb2-43e7-9479-707cd1c189ce",e._sentryDebugIdIdentifier="sentry-dbid-ead57db8-7bb2-43e7-9479-707cd1c189ce")}catch{}})();function j(e){const{mobileExploreReferrer:t}=e,{isAiCfoOpen:r,setIsAiCfoOpen:i}=k(),n=u(),o=g(),{tenantEmailDomain:s}=h(),d=C(),f=x(d),l=A(),p=T(),m=S((a=>a.tenantState.fetchState==="Completed"||a.tenantState.activeTenantFetchState.fetchState==="Completed"?y(a):void 0)),c=m?.masterTOSInfo?.isMasterTOSAccepted??!1;return{isAiCfoAccessEnabled:p&&l&&!r,onAskAiCfoClick:b.useCallback((()=>{if(s!=null)if(c)if(f){const a=w(o.state?.pathnameStackToGoBack,o.pathname);n(`/${s}/ai-cfo/explore`,{state:{pathnameStackToGoBack:a,referrer:t}})}else i(!0);else I({location:o,navigate:n,mergeState:{referrer:t}})}),[c,f,o,t,n,i,s])}}export{j as u};