@zeniai/web-app-ui 5.3.88-qa → 5.3.89-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 (138) hide show
  1. package/dist/assets/{AccountMappingScreen-CaoIfFGn.js → AccountMappingScreen-Dd-9mkbJ.js} +2 -2
  2. package/dist/assets/{ActualMatchingMatchDetailScreen-2JNjReGt.js → ActualMatchingMatchDetailScreen-CwU0IpO-.js} +1 -1
  3. package/dist/assets/AddressRoutes-DkKEg9nJ.js +1 -0
  4. package/dist/assets/AddressScreen-NLlV-cSD.js +9 -0
  5. package/dist/assets/{AiCfoScreen-ClfP5RRl.js → AiCfoScreen-DUNS2Dhv.js} +3 -3
  6. package/dist/assets/{AppDrawer-E1KXMTl6.js → AppDrawer-t7pXwFsy.js} +1 -1
  7. package/dist/assets/{BillPayApprovalRoutes-b-s007A0.js → BillPayApprovalRoutes-DOtDJlUD.js} +1 -1
  8. package/dist/assets/{BillPayRoutes-GXto7JZ0.js → BillPayRoutes-b2SMWo4z.js} +18 -18
  9. package/dist/assets/{BusinessVerificationPageScreen-DVoX6wr8.js → BusinessVerificationPageScreen-BMbooZ9c.js} +2 -2
  10. package/dist/assets/{CardsAiCfoScreen-BIEaaWwa.js → CardsAiCfoScreen-lmBrsGeg.js} +2 -2
  11. package/dist/assets/{ChargeCardRoutes-BpmZJ-Uq.js → ChargeCardRoutes-C9jB_BU5.js} +6 -6
  12. package/dist/assets/{CompanyPassportScreen-CKr2rLf3.js → CompanyPassportScreen-BslihQWZ.js} +1 -1
  13. package/dist/assets/ConnectionAuthScreen-DS5u9yD-.js +11 -0
  14. package/dist/assets/CustomerOnboardingAuthScreen-C7dVHXwO.js +1 -0
  15. package/dist/assets/{CustomerOnboardingRoutes-Bi6IaUjL.js → CustomerOnboardingRoutes-DmCDi77C.js} +5 -5
  16. package/dist/assets/{DashboardRoutes-BSeqoNjh.js → DashboardRoutes-CQAZF0k8.js} +3 -3
  17. package/dist/assets/{DefaultTenantHome-DG4DeY9D.js → DefaultTenantHome-DSgsISV-.js} +1 -1
  18. package/dist/assets/{DomesticWireDetailScreen-CJa7ddNR.js → DomesticWireDetailScreen-B1jSUQp2.js} +3 -3
  19. package/dist/assets/{DrawerScreen-C4CLhZpW.js → DrawerScreen-CLNuMP4c.js} +1 -1
  20. package/dist/assets/EntityDetailRoutes-Zk-9UMwO.js +1 -0
  21. package/dist/assets/{ExpenseAutomationRoutes-2dTQAmqe.js → ExpenseAutomationRoutes-DLqUzGyz.js} +4 -4
  22. package/dist/assets/FeaturePreviewScreen-D1TH0B4H.js +1 -0
  23. package/dist/assets/HubSpotOAuthCallbackScreen-CvYzzQt6.js +1 -0
  24. package/dist/assets/{InboxNotificationsProvider-DQWG4BJK.js → InboxNotificationsProvider-CmAbaz3a.js} +1 -1
  25. package/dist/assets/{InvoicingRoutes-5h1urdzf.js → InvoicingRoutes-DFf9_vlp.js} +2 -2
  26. package/dist/assets/{MagicLinkRoutes-Drj1Q2Tr.js → MagicLinkRoutes-DPRx78HI.js} +10 -10
  27. package/dist/assets/MagicLinkSignInScreen-Bsg6zj8U.js +12 -0
  28. package/dist/assets/MobileAppDrawer-C1CX08Nz.js +1 -0
  29. package/dist/assets/NotFoundScreen-DUP1I-Dh.js +1 -0
  30. package/dist/assets/{NotificationRoutes-qrUzNjl-.js → NotificationRoutes-b-zZEsBw.js} +1 -1
  31. package/dist/assets/OAuthConsentScreen-DMeszvcw.js +1 -0
  32. package/dist/assets/PandLWithForecastRoutes-Dh0lrJ4b.js +1 -0
  33. package/dist/assets/{PaymentLinkScreen-ByDRCPlC.js → PaymentLinkScreen-DZH3o71q.js} +1 -1
  34. package/dist/assets/PeopleRoutes-BXk_l6Ng.js +22 -0
  35. package/dist/assets/PerformanceRoutes-CuBRzzvZ.js +1 -0
  36. package/dist/assets/{Preview-CoLM-CRY.js → Preview-6s066EpN.js} +1 -1
  37. package/dist/assets/{QBOConnectionScreen-B7xiKB79.js → QBOConnectionScreen-MUHRwejb.js} +1 -1
  38. package/dist/assets/{ReimbursementApprovalRoutes-BDudJtQS.js → ReimbursementApprovalRoutes-BFxtthm2.js} +1 -1
  39. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-B5oVRiY9.js → ReimbursementApprovalRuleDetailScreen-BXCFB-xI.js} +1 -1
  40. package/dist/assets/{ReimbursementRoutes-CBPwcIRq.js → ReimbursementRoutes-AomTv5z8.js} +5 -5
  41. package/dist/assets/{ReportsRoutes-l_EmwvDT.js → ReportsRoutes-CUQDlOh2.js} +1 -1
  42. package/dist/assets/RewardsRoutes-D6jHcv01.js +1 -0
  43. package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-DOXuTH5b.js → ScheduleDetailsPrepaidExpensesScreen-B2Zz8Q8W.js} +5 -5
  44. package/dist/assets/ScreenRoutes-BBi6T6TG.js +2 -0
  45. package/dist/assets/{SettingsRoutes-DQM99Ih9.js → SettingsRoutes-CIKlS7WR.js} +6 -6
  46. package/dist/assets/{SetupPagesScreen-hwC4fmh3.js → SetupPagesScreen-Drwip476.js} +5 -5
  47. package/dist/assets/SignInScreen-B2i0uaaw.js +1 -0
  48. package/dist/assets/SignOutScreen-yXoT_vjf.js +9 -0
  49. package/dist/assets/TaskListScreen-BwBbID9Z.js +9 -0
  50. package/dist/assets/TaskRoutes-DkYij_G4.js +9 -0
  51. package/dist/assets/TransactionDetailRoutes-DmTwl-Oi.js +1 -0
  52. package/dist/assets/{TransactionDetailScreen-C_k5gdOu.js → TransactionDetailScreen-R1s2Fj0b.js} +2 -2
  53. package/dist/assets/{TransactionListRoutes-77NZmmmz.js → TransactionListRoutes-Cc6hdxdW.js} +1 -1
  54. package/dist/assets/{TreasuryRoutes-ESg23CqF.js → TreasuryRoutes-9B6vJLbh.js} +5 -5
  55. package/dist/assets/{VendorsRoutes-CGm7W9n5.js → VendorsRoutes-m5oaZn9_.js} +10 -10
  56. package/dist/assets/WiseConfirmationScreen-BEME5pnv.js +12 -0
  57. package/dist/assets/{ZeniAccountRoutes-6mRRYpTk.js → ZeniAccountRoutes-CbOETsfG.js} +10 -10
  58. package/dist/assets/ZeniAccountStatementScreen-CyFrpw1Y.js +9 -0
  59. package/dist/assets/{accountMappingHelper-Cwtkqs-4.js → accountMappingHelper-D7kdjZSp.js} +1 -1
  60. package/dist/assets/{analytics-GU--E2wR.js → analytics-CHOlTFyu.js} +1 -1
  61. package/dist/assets/{analyticsHelper-CqPAb4gE.js → analyticsHelper-BCFnQWXb.js} +1 -1
  62. package/dist/assets/{core-B_JBGGj4.js → core-DO2aQ9sC.js} +1 -1
  63. package/dist/assets/{decodeURIComponentSafe-Bfx7X0BB.js → decodeURIComponentSafe-BGunfdyb.js} +1 -1
  64. package/dist/assets/{dnd-BNQSfW-e.js → dnd-C6oCteDZ.js} +1 -1
  65. package/dist/assets/{empty-YIY19tj_.js → empty-BEdZehso.js} +1 -1
  66. package/dist/assets/{empty-iCIyLE1U.js → empty-BnXjgXTG.js} +1 -1
  67. package/dist/assets/{emptyVideoElement-CLkIQ8Q0.js → emptyVideoElement-DyfqG-Dl.js} +1 -1
  68. package/dist/assets/epic-Cg7zjUcf.js +2 -0
  69. package/dist/assets/expenseAutomationHelper-Box0P8C-.js +1 -0
  70. package/dist/assets/{getLocaleForTenant-BBK_Q8ap.js → getLocaleForTenant-Bn-3jfmk.js} +1 -1
  71. package/dist/assets/{index-DBkRpuph.js → index-BIf8ZdZy.js} +1 -1
  72. package/dist/assets/{index-B5kn_N6T.js → index-BX493DEc.js} +1 -1
  73. package/dist/assets/{index-CoiZFy-l.js → index-BpSPKksw.js} +2 -2
  74. package/dist/assets/{index-BWmX-byn.js → index-CHVvaLYS.js} +1 -1
  75. package/dist/assets/{index-DPLz3slo.js → index-CJp0mZVW.js} +1 -1
  76. package/dist/assets/{index-RqoC_epE.js → index-CqLY6f8A.js} +1 -1
  77. package/dist/assets/{index-BZYS83GK.js → index-D8IL39lv.js} +1 -1
  78. package/dist/assets/{index-CxBxIC3M.js → index-DtDfc4Ly.js} +14541 -14507
  79. package/dist/assets/{lexical-BtX2HNMw.js → lexical-Dahvp5A4.js} +1 -1
  80. package/dist/assets/{liveblocks-BGbHkUWH.js → liveblocks-DCIY2V5W.js} +1 -1
  81. package/dist/assets/{lottie-CRTHlKd4.js → lottie-BsiUbd07.js} +1 -1
  82. package/dist/assets/{mui-0YYVWRll.js → mui-Beesmy34.js} +1 -1
  83. package/dist/assets/{pathToGoBack-BU_KL0Rp.js → pathToGoBack-BF0QeMYg.js} +1 -1
  84. package/dist/assets/{pdf-Cqawvcms.js → pdf-Bi1FWCM7.js} +3 -3
  85. package/dist/assets/{pdf-lib-Bcr2YRnV.js → pdf-lib-D-883htS.js} +1 -1
  86. package/dist/assets/{plaid-Cq5IYWrp.js → plaid-IFb-JOAW.js} +1 -1
  87. package/dist/assets/{pusher-B3KP_c6g.js → pusher-CZ2f9qiw.js} +1 -1
  88. package/dist/assets/{react-ErGFJSyq.js → react-B37EnoMa.js} +1 -1
  89. package/dist/assets/{react-vPPNyTxO.js → react-B7Ae5uDO.js} +1 -1
  90. package/dist/assets/{react-D5hoWMwh.js → react-BBLrRlBQ.js} +1 -1
  91. package/dist/assets/{react-DjoF95y5.js → react-BGT56QSM.js} +1 -1
  92. package/dist/assets/{react-k137jtlu.js → react-C009U_vG.js} +1 -1
  93. package/dist/assets/{react-DcvWgGin.js → react-U8FVY9XX.js} +1 -1
  94. package/dist/assets/{recharts-CdRAMBV_.js → recharts-BFgvJAkx.js} +1 -1
  95. package/dist/assets/{routePaths-CK_7YRxn.js → routePaths-CWDMrD59.js} +1 -1
  96. package/dist/assets/{sentry-DNB0zbMo.js → sentry--FQm-CEz.js} +1 -1
  97. package/dist/assets/{stripSplatSuffix-C3U2swZ_.js → stripSplatSuffix-BjVyO64h.js} +1 -1
  98. package/dist/assets/{url-DL7rBiuc.js → url-CYqslED7.js} +1 -1
  99. package/dist/assets/{url-JLHTMUjY.js → url-aH6bFotI.js} +1 -1
  100. package/dist/assets/{useActualMatchingMatchDetail--rY1AHQR.js → useActualMatchingMatchDetail-B3AFBcfZ.js} +1 -1
  101. package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-DKK0MQjk.js → useAiCfoDashboardSuggestedQuestionsChips-DOb2Yrjn.js} +1 -1
  102. package/dist/assets/{useAskAiCfoHostNavButtonProps-BFcd-xr_.js → useAskAiCfoHostNavButtonProps-BH1yPMVh.js} +1 -1
  103. package/dist/assets/{useChargeCardPusherEvents-BlOmDRLq.js → useChargeCardPusherEvents-BzP1s6ty.js} +1 -1
  104. package/dist/assets/{useDeviceId-Cl3uTEmh.js → useDeviceId-04DUxcYB.js} +1 -1
  105. package/dist/assets/{useEmailConnectResultRefresh-BKk_XTkE.js → useEmailConnectResultRefresh-6HOW2gqB.js} +1 -1
  106. package/dist/assets/{useInitialThreadRequest-SNtsdFx0.js → useInitialThreadRequest-B_GduCEN.js} +1 -1
  107. package/dist/assets/{useTaskManagerAccess-D4sSbSN5.js → useTaskManagerAccess-DgmndGpu.js} +1 -1
  108. package/dist/assets/{useTaskManagerPusherEvents-C22zG5XL.js → useTaskManagerPusherEvents-BgO_yohE.js} +1 -1
  109. package/dist/assets/{utils-Dgku26-_.js → utils-9X_P6qcc.js} +1 -1
  110. package/dist/assets/{withTransactionSidePanel-ChmF5ZJU.js → withTransactionSidePanel-CRkrcV_c.js} +3 -3
  111. package/dist/assets/{zeni-epic-state-Xwy8a0yQ.js → zeni-epic-state-Cc-xO4DM.js} +5 -5
  112. package/dist/index.html +1 -1
  113. package/package.json +4 -4
  114. package/dist/assets/AddressRoutes-BhYsxEkG.js +0 -1
  115. package/dist/assets/AddressScreen-BrWge-9-.js +0 -9
  116. package/dist/assets/ConnectionAuthScreen-BcFhHy9U.js +0 -11
  117. package/dist/assets/CustomerOnboardingAuthScreen-BtLRx8Ld.js +0 -1
  118. package/dist/assets/EntityDetailRoutes-DlmTg0_T.js +0 -1
  119. package/dist/assets/FeaturePreviewScreen-D2uC0Gjp.js +0 -1
  120. package/dist/assets/HubSpotOAuthCallbackScreen-DI8Nq0sn.js +0 -1
  121. package/dist/assets/MagicLinkSignInScreen-3iAIROlL.js +0 -12
  122. package/dist/assets/MobileAppDrawer-Db4uI8qx.js +0 -1
  123. package/dist/assets/NotFoundScreen-DoDcFwTV.js +0 -1
  124. package/dist/assets/OAuthConsentScreen-C4rSjCZV.js +0 -1
  125. package/dist/assets/PandLWithForecastRoutes-DicvueW7.js +0 -1
  126. package/dist/assets/PeopleRoutes-CdYNSEIx.js +0 -22
  127. package/dist/assets/PerformanceRoutes-CD2tTMtz.js +0 -1
  128. package/dist/assets/RewardsRoutes-CKLzKNZh.js +0 -1
  129. package/dist/assets/ScreenRoutes-CEoSMCrd.js +0 -2
  130. package/dist/assets/SignInScreen-DjSfb5LP.js +0 -1
  131. package/dist/assets/SignOutScreen-D2tLQ4I5.js +0 -9
  132. package/dist/assets/TaskListScreen-CQZuEtBz.js +0 -9
  133. package/dist/assets/TaskRoutes-Usowqz1T.js +0 -9
  134. package/dist/assets/TransactionDetailRoutes-CmkMJrHR.js +0 -1
  135. package/dist/assets/WiseConfirmationScreen-CKDjangX.js +0 -12
  136. package/dist/assets/ZeniAccountStatementScreen-CBN6_AHz.js +0 -9
  137. package/dist/assets/epic-CHWNQ4Uf.js +0 -2
  138. package/dist/assets/expenseAutomationHelper-ByKy4nt3.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-CxBxIC3M.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-DNB0zbMo.js"><link rel="modulepreload" crossorigin href="/assets/core-B_JBGGj4.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-Xwy8a0yQ.js"><link rel="modulepreload" crossorigin href="/assets/mui-0YYVWRll.js"><link rel="modulepreload" crossorigin href="/assets/analytics-GU--E2wR.js"><link rel="modulepreload" crossorigin href="/assets/utils-Dgku26-_.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-DtDfc4Ly.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry--FQm-CEz.js"><link rel="modulepreload" crossorigin href="/assets/core-DO2aQ9sC.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-Cc-xO4DM.js"><link rel="modulepreload" crossorigin href="/assets/mui-Beesmy34.js"><link rel="modulepreload" crossorigin href="/assets/analytics-CHOlTFyu.js"><link rel="modulepreload" crossorigin href="/assets/utils-9X_P6qcc.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.3.88-qa",
3
+ "version": "5.3.89-dev",
4
4
  "files": [
5
5
  "dist/**/*"
6
6
  ],
@@ -28,9 +28,9 @@
28
28
  "@sentry/core": "^9.42.1",
29
29
  "@sentry/react": "^9.42.1",
30
30
  "@stripe/stripe-js": "^4.4.0",
31
- "@zeniai/client-analytics": "2.1.3",
32
- "@zeniai/client-epic-state": "5.2.81",
33
- "@zeniai/web-components": "4.4.26",
31
+ "@zeniai/client-analytics": "2.1.4",
32
+ "@zeniai/client-epic-state": "5.2.84",
33
+ "@zeniai/web-components": "4.4.27",
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-BGbHkUWH.js";import{A as i}from"./AddressScreen-BrWge-9-.js";import s from"./NotFoundScreen-DoDcFwTV.js";import"./sentry-DNB0zbMo.js";import{n as d,o as r}from"./core-B_JBGGj4.js";import"./zeni-epic-state-Xwy8a0yQ.js";import"./recharts-CdRAMBV_.js";import"./index-CxBxIC3M.js";import"./mui-0YYVWRll.js";import"./analytics-GU--E2wR.js";import"./plaid-Cq5IYWrp.js";import"./dnd-BNQSfW-e.js";import"./stripe-cKAAJElX.js";import"./lottie-CRTHlKd4.js";import"./lexical-BtX2HNMw.js";import"./pdf-Cqawvcms.js";import"./utils-Dgku26-_.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 r}from"./liveblocks-BGbHkUWH.js";import{a as h}from"./sentry-DNB0zbMo.js";import{h as A,u as T,g as j,i as E,j as $,l as B}from"./core-B_JBGGj4.js";import{$ as L,z as M,V,a5 as D,a6 as K,h as C,K as S,a1 as R,R as b,a2 as z}from"./index-CxBxIC3M.js";import{VP as _,it as F,fI as U,VQ as G,c9 as N,VR as O,mL as q}from"./zeni-epic-state-Xwy8a0yQ.js";import{u as H,n as Q}from"./mui-0YYVWRll.js";import J from"./NotFoundScreen-DoDcFwTV.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]="658a5243-8388-4300-baf0-cb5e3a6475af",e._sentryDebugIdIdentifier="sentry-dbid-658a5243-8388-4300-baf0-cb5e3a6475af")}catch{}})();const W=Q.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=B((function(e,s){const{addressId:o,isSubPage:i,addressType:c}=s,l=U(e),a=s.roleMap!=null&&G(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:b.googleMapsAPIKey,isDisabled:n,isSubPage:i,dontShowSaveConfirmationPopup:s.dontShowSaveConfirmation}}const d=_(e,o);return{addressToEdit:d.address,loadingState:d.fetchState,googleAPIKey:b.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,d=z(n?.pathnameStackToGoBack);let t=d.poppedPathname??v();const u=n?.queryParams;if(u){const g=new URLSearchParams(u).toString();g&&(t=`${t}?${g}`)}o(t,{state:{pathnameStackToGoBack:d.newStack}})}};return{onSubmitHandler:a=>{const n=Y(a);e(q({addressType:c,addressToCreate:n})),C?.trackSaveAddressClicked(S.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)}}}))(R);function re({isSubPage:e,hideAddressSubTitle:s=!1,hideAddressBackButton:o=!1,dontShowSaveConfirmation:i,accountContext:c,addressTypeParam:l}){const a=A(),n=T(),d=j(),{addressId:t,addressType:u}=E(),g=L(),w=H(),I=M.getSignedInUser(),[f,k]=h.useState(t==null),p=$((m=>t!=null?_(m,t).fetchState:"Not-Started")),x=V();if(I==null)throw Error("Can't access address page without signing in...");const P=m=>m.trackPageLoaded(t!=null?S.Event.editAddress:S.Event.addAddress),y=l??u;return h.useEffect((()=>{f||t==null||(k(!0),n(F(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"?r.jsx(D,{fetchState:p,style:{backgroundColor:w.colors.grey5}}):t!=null&&p==="Error"?(a(`${v(1)}/new`,{replace:!0}),r.jsx(r.Fragment,{})):r.jsxs(r.Fragment,{children:[r.jsx(K,{analytics:C,onLoad:P}),r.jsx(W,{windowSize:g,children:r.jsx(X,{location:d,navigate:a,isSubPage:e===!0,hideAddressBackButton:o,hideAddressSubTitle:s,addressId:t,addressType:y,dontShowSaveConfirmation:i,bankAccountContext:c,roleMap:x?.loggedInUserRoleMap})})]}):r.jsx(J,{})}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{re as A,Y as t};
@@ -1,11 +0,0 @@
1
- import{j as I}from"./liveblocks-BGbHkUWH.js";import{a as o}from"./sentry-DNB0zbMo.js";import{u as F,h as R,g as H,j as C,N as w}from"./core-B_JBGGj4.js";import{Ul as q,fI as z,go as G,pW as Q,gP as U,gn as V,gl as W,UL as B,gk as A}from"./zeni-epic-state-Xwy8a0yQ.js";import{u as J,z as E,L as T,G as K,C as M}from"./index-CxBxIC3M.js";import{n as X}from"./mui-0YYVWRll.js";import{P as h,a as _}from"./AccountMappingScreen-CaoIfFGn.js";import{t as Y}from"./getLocaleForTenant-BBK_Q8ap.js";import{g as Z,Q as ee}from"./QBOConnectionScreen-B7xiKB79.js";import"./recharts-CdRAMBV_.js";import"./analytics-GU--E2wR.js";import"./plaid-Cq5IYWrp.js";import"./dnd-BNQSfW-e.js";import"./stripe-cKAAJElX.js";import"./lottie-CRTHlKd4.js";import"./lexical-BtX2HNMw.js";import"./pdf-Cqawvcms.js";import"./utils-Dgku26-_.js";import"./MobileAppDrawer-Db4uI8qx.js";import"./InboxNotificationsProvider-DQWG4BJK.js";import"./useTaskManagerAccess-D4sSbSN5.js";import"./accountMappingHelper-Cwtkqs-4.js";import"./empty-YIY19tj_.js";import"./pdf-lib-Bcr2YRnV.js";import"./index-DBkRpuph.js";import"./url-DL7rBiuc.js";import"./index-BZYS83GK.js";import"./decodeURIComponentSafe-Bfx7X0BB.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]="b6053706-a973-4f5c-99ec-73bcf165fc29",t._sentryDebugIdIdentifier="sentry-dbid-b6053706-a973-4f5c-99ec-73bcf165fc29")}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 ${M.sp1} ${t.theme.colors.dropShadowNormal}`};
11
- `;function we(){const t=F(),i=R(),v=H(),{setLoading:d,clearAllLoading:m}=J(),S=o.useRef(!1),b=o.useRef(!1),N=o.useRef(!1),f=o.useRef(!1),{code:O,realmId:L,state:$}=Z(v.search),p=O!==""&&L!==""&&$!=="";p&&(N.current=!0);const j=sessionStorage.getItem(h),u=j===_.pending,P=j===_.ready,x=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&&!b.current&&a!=null&&(b.current=!0,!(g==null||g!=null&&(r==="Completed"||r==="Error"))||n!=="Not-Started"&&n!=="Error"||t(Q(a.userId)))}),[b,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(U(a.userId,e.tenantId)))}),[c]),o.useEffect((()=>{n!=="Completed"&&r!=="Completed"||a==null||e?.tenantId==null||(t(V(e.tenantId)),E.saveActiveTenantDomainForUser(e.tenantEmailDomain),W(a?.userId,a?.zeniSessionId,e.tenantId),K.updateAppLocaleID(Y(B(e))),e.externalConnections!=null||n!=="Completed"&&r!=="Completed"||l==="In-Progress"||a==null||e==null||t(U(a.userId,e.tenantId)))}),[n,r,l]),o.useEffect((()=>{x.tenantsCoreDetailsInOrder.length>0&&n==="Completed"&&E.saveSignedInUserTenants(x.tenantsCoreDetailsInOrder)}),[x.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"&&(f.current=!0)}),[u,c]),o.useEffect((()=>{if(!u||D)return;const s=e.tenantEmailDomain!=null?`/${e.tenantEmailDomain}/settings/accounting`:"/";return f.current&&c==="Completed"?(sessionStorage.setItem(h,_.ready),m(),void i(s,{replace:!0})):f.current&&c==="Error"?(sessionStorage.removeItem(h),t(A({messageSection:"accounting_projects_qbo_reconnect_failed",messageText:"failed",type:"error"})),m(),void i(s,{replace:!0})):void(p||N.current||f.current||y!==!0||(sessionStorage.removeItem(h),t(A({messageSection:"accounting_projects_qbo_reconnect_failed",messageText:"failed",type:"error"})),m(),i(s,{replace:!0})))}),[u,D,c,p,y,e.tenantEmailDomain,m,t,i]),D)return null;if(p||y!==!0)return I.jsx(te,{children:I.jsx(ee,{})});if(u)return null;const k=e.tenantEmailDomain!=null?`/${e.tenantEmailDomain}/settings/accounting`:"/";return P?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-BGbHkUWH.js";import{z as m}from"./index-CxBxIC3M.js";import{g as n}from"./QBOConnectionScreen-B7xiKB79.js";import"./sentry-DNB0zbMo.js";import{g as p,N as a}from"./core-B_JBGGj4.js";import"./zeni-epic-state-Xwy8a0yQ.js";import"./recharts-CdRAMBV_.js";import"./mui-0YYVWRll.js";import"./analytics-GU--E2wR.js";import"./plaid-Cq5IYWrp.js";import"./dnd-BNQSfW-e.js";import"./stripe-cKAAJElX.js";import"./lottie-CRTHlKd4.js";import"./lexical-BtX2HNMw.js";import"./pdf-Cqawvcms.js";import"./utils-Dgku26-_.js";import"./empty-YIY19tj_.js";import"./pdf-lib-Bcr2YRnV.js";import"./index-DBkRpuph.js";import"./url-DL7rBiuc.js";import"./index-BZYS83GK.js";import"./decodeURIComponentSafe-Bfx7X0BB.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 s}from"./liveblocks-BGbHkUWH.js";import{a as d}from"./sentry-DNB0zbMo.js";import{h as B,u as A,g as X,i as q,j as l,N as F,l as W,n as N,o as O}from"./core-B_JBGGj4.js";import{Xn as _,fI as M,WE as R,n3 as Y,SF as b,Xs as $,Xh as z,m3 as J,SG as S,WJ as K,WK as V,Xj as H,Xi as L}from"./zeni-epic-state-Xwy8a0yQ.js";import{b6 as Q,h as U,a2 as Z,p as tt}from"./index-CxBxIC3M.js";import"./mui-0YYVWRll.js";import{d as I}from"./decodeURIComponentSafe-Bfx7X0BB.js";import{w as et}from"./withTransactionSidePanel-ChmF5ZJU.js";import{f as at,c as nt}from"./routePaths-CK_7YRxn.js";import"./recharts-CdRAMBV_.js";import"./analytics-GU--E2wR.js";import"./plaid-Cq5IYWrp.js";import"./dnd-BNQSfW-e.js";import"./stripe-cKAAJElX.js";import"./lottie-CRTHlKd4.js";import"./lexical-BtX2HNMw.js";import"./pdf-Cqawvcms.js";import"./utils-Dgku26-_.js";import"./useAskAiCfoHostNavButtonProps-BFcd-xr_.js";import"./TransactionDetailScreen-C_k5gdOu.js";import"./useInitialThreadRequest-SNtsdFx0.js";import"./expenseAutomationHelper-ByKy4nt3.js";import"./stripSplatSuffix-C3U2swZ_.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new a.Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="7e045332-9270-4fb8-ad9b-81896555f03c",a._sentryDebugIdIdentifier="sentry-dbid-7e045332-9270-4fb8-ad9b-81896555f03c")}catch{}})();const it=W((function(a,t){const e=t.entity,i=$(a,t.entity,"EntityDetail");return{selectedEntity:e,autoCompleteData:{autoCompleteText:e.name,entityAutoCompleteView:z(a,"common")},trendWithTransactionsReport:i,analytics:U,isAccountingClassesEnabled:J(a)}}),(function(a,t){return{onTransactionItemClick:e=>{if(t.openTransactionPanel)return void t.openTransactionPanel(e.id,e.type);const i=`${nt(e,t.tenantEmailDomain)}`,c=tt(t.location.state?.pathnameStackToGoBack,t.location.pathname);t.navigate(i,{state:{pathnameStackToGoBack:c}})},autoCompleteActions:{onAutoCompleteInputChange:e=>{e.trim().length>=2?a(H({searchString:e,searchOrigin:"common"})):e.trim().length===0&&a(L("common"))},onAutoCompleteEntity:e=>{const i=at(e,t.tenantEmailDomain);a(K()),a(V()),t.resetTrendIsFetchedStates(),t.navigate(i,{replace:!0,state:{pathnameStackToGoBack:t.location.state?.pathnameStackToGoBack}})},onCancelAutoComplete:()=>{const e=Z(t.location.state?.pathnameStackToGoBack),i=e.poppedPathname??k();t.navigate(i,{state:{pathnameStackToGoBack:e.newStack}})}},onTrendSelectedPeriodChange:e=>{if(t.closeSidePanel?.(),e==null)t.defaultTransactionTimePeriod!=null&&a(S(t.entity,"EntityDetail",{timeframe:"quarter",timePeriod:t.defaultTransactionTimePeriod}));else{const i=e.currentTimePeriod==null?e.addTimePeriod:{startDate:e.addTimePeriod.startDate,endDate:e.currentTimePeriod.endDate};a(b(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:e.addTimePeriod})),a(S(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:i}))}}}}))(Q),ot=et((function({entityType:a,...t}){const e=B(),i=A(),c=X(),[m,h]=d.useState(!1),[T,D]=d.useState(!1),{tenantEmailDomain:C,entityIdEncoded:j,entityNameEncoded:x}=q(),r=I(j??""),p=I(x??""),f=rt(r,p),v=[r,p].filter((n=>n!=null)),o={name:p,id:r,type:a,zeniId:r,qboId:r},g=l((n=>_(n.customerIncomeState,n.vendorExpenseState,n.trendState,o,"quarter"))),w=l((n=>M(n).company?.companyInfo.firstMonthOfFY??1)),u=l((n=>R(n.trendWithTransactionsState,o,"EntityDetail")));d.useEffect((()=>{m===!1&&f===!0&&(h(!0),i(Y(o)))}),[m,f,o]);const E=l((n=>n.trendState.fetchState)),P=u?.selectedPeriod?.timePeriod??g,G=(function(n,y){return n!=null&&y!=null?{startDate:n.startDate,endDate:y?.endDate}:y})(u?.selectedPeriod?.timePeriod,g);return d.useEffect((()=>{m===!0&&T===!1&&E==="Completed"&&(D(!0),P!=null&&i(b(o,"EntityDetail",{timeframe:u?.selectedPeriod?.timeframe??"quarter",timePeriod:P})))}),[m,T,E]),f?s.jsx(it,{firstMonthOfFY:w,tenantEmailDomain:C,location:c,navigate:e,entity:o,defaultTransactionTimePeriod:G,resetTrendIsFetchedStates:()=>{h(!1),D(!1)},...t}):s.jsx(F,{to:k(v.length)})})),rt=(a,t)=>t!=null&&t.length>0&&a!=null&&a.length>0,k=(a=2)=>{let t="../";for(let e=0;e<a;e++)t=`${t}../`;return t};function wt({entityType:a}){return s.jsx(N,{children:s.jsx(O,{path:"/:entityIdEncoded/:entityNameEncoded/*",element:s.jsx(ot,{entityType:a})})})}export{wt as EntityDetailRoutes,wt as default};
@@ -1 +0,0 @@
1
- import{j as s}from"./liveblocks-BGbHkUWH.js";import{a as r}from"./sentry-DNB0zbMo.js";import{au as c,av as i,T as l,a2 as p}from"./index-CxBxIC3M.js";import"./mui-0YYVWRll.js";import m from"./NotFoundScreen-DoDcFwTV.js";import{h as u,g as b}from"./core-B_JBGGj4.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]="723f4cb2-1f7a-43e2-9565-6a37cd3c4dfb",e._sentryDebugIdIdentifier="sentry-dbid-723f4cb2-1f7a-43e2-9565-6a37cd3c4dfb")}catch{}})();const T=()=>{const e=u(),a=b(),t=r.useCallback((()=>{window.open("https://www.zeni.ai/demo/request","_blank")}),[]),d=r.useCallback((()=>{(()=>{const n=p(a.state?.pathnameStackToGoBack),f=n.poppedPathname??k();e(f,{state:{pathnameStackToGoBack:n.newStack}})})()}),[]),o=c(a.pathname);return o!=null?s.jsx(i,{menuItem:l(o),onDemoClick:t,onGoBack:d}):s.jsx(m,{})},k=(e=2)=>{let a="../";for(let t=0;t<e;t++)a=`${a}../`;return a};export{T as F};
@@ -1 +0,0 @@
1
- import{a as i}from"./sentry-DNB0zbMo.js";import{u as l,h as f,g as m}from"./core-B_JBGGj4.js";import{i0 as p,U$ as g,V0 as _}from"./zeni-epic-state-Xwy8a0yQ.js";import{u as b,L as h,z as y}from"./index-CxBxIC3M.js";import"./liveblocks-BGbHkUWH.js";import"./recharts-CdRAMBV_.js";import"./mui-0YYVWRll.js";import"./analytics-GU--E2wR.js";import"./plaid-Cq5IYWrp.js";import"./dnd-BNQSfW-e.js";import"./stripe-cKAAJElX.js";import"./lottie-CRTHlKd4.js";import"./lexical-BtX2HNMw.js";import"./pdf-Cqawvcms.js";import"./utils-Dgku26-_.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]="9c98bf96-8152-4a09-ae37-837d3d9d3885",e._sentryDebugIdIdentifier="sentry-dbid-9c98bf96-8152-4a09-ae37-837d3d9d3885")}catch{}})();function $(){const e=l(),n=f(),r=m(),{setLoading:o,clearAllLoading:c}=b(),s=i.useRef(!1);return i.useLayoutEffect((()=>{o(h.CONNECTION_AUTH)}),[o]),i.useEffect((()=>{if(s.current)return;s.current=!0;const a=new URLSearchParams(r.search).get("code"),d=sessionStorage.getItem("hubspot_oauth_pending");if(sessionStorage.removeItem("hubspot_oauth_pending"),a!=null&&d!=null){const t=JSON.parse(d);e(p(t.tenant_id,t.connection_id,g("revenue"),_("hubspot"),{authorization_code:a,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{$ as default};
@@ -1,12 +0,0 @@
1
- import{j as u}from"./liveblocks-BGbHkUWH.js";import{a as g}from"./sentry-DNB0zbMo.js";import{u as O,g as _,h as w,t as M,j as l,N as L}from"./core-B_JBGGj4.js";import{z as r,G as P,J as V,h as A,K as N,U as R,Y,N as G}from"./index-CxBxIC3M.js";import{fI as H,Un as J,UQ as K,UH as Q,gl as W,gn as $,UM as q,gY as B,dk as X,UR as Z,US as ee}from"./zeni-epic-state-Xwy8a0yQ.js";import{u as te,n as ne}from"./mui-0YYVWRll.js";import{u as se}from"./useDeviceId-Cl3uTEmh.js";import{f as ae}from"./analyticsHelper-CqPAb4gE.js";import{t as ie}from"./getLocaleForTenant-BBK_Q8ap.js";import"./recharts-CdRAMBV_.js";import"./analytics-GU--E2wR.js";import"./plaid-Cq5IYWrp.js";import"./dnd-BNQSfW-e.js";import"./stripe-cKAAJElX.js";import"./lottie-CRTHlKd4.js";import"./lexical-BtX2HNMw.js";import"./pdf-Cqawvcms.js";import"./utils-Dgku26-_.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="3d296123-d475-47a5-a676-3ef9f609e45d",t._sentryDebugIdIdentifier="sentry-dbid-3d296123-d475-47a5-a676-3ef9f609e45d")}catch{}})();const T=(t,a)=>t!=null&&t.length>0&&a==="magic_links";function Te(){const t=O(),a=_(),m=w(),[y]=M(),n=y.get("token"),p=y.get("stytch_token_type"),f=r.getMagicLinkCodeVerifier(),i=se(),{otpChallenge:d,twoFAPhoneNumber:x,magicLinkEmail:c,verifyDeviceFetchState:z,resendVerifyDeviceOTPFetchState:C}=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)),s=l((e=>e.tenantState.loggedInUser)),o=l((e=>H(e))),k=l((e=>J(e))),D=r.getSignedInUser(),v=te().mode;g.useEffect((()=>{s?.zeniSessionId==null&&n!=null&&T(n,p)&&i!=null&&f!=null&&(r.saveMagicLinkTriggered(n),t(K(n,i,f)))}),[n,p,t,i,f,s?.zeniSessionId]),g.useEffect((()=>{I!=="In-Progress"||S!=="Completed"&&b!=="Completed"||s?.zeniSessionId==null||o==null||(n!=null&&r.saveLastUsedMagicLinkToken(n),r.saveSignedInUserWithSession(s,s.zeniSessionId),r.saveSignedInUserTenants(Q(k.tenantsInOrder),s.zeniSessionId),W(s.userId,s.zeniSessionId,o.tenantId),t($(o.tenantId)),r.saveActiveTenantDomainForUser(o.tenantEmailDomain),t(q("Completed")),P.updateAppLocaleID(ie(o)),ae(s,o,v,void 0,k.tenantsInOrder),B().then((()=>{const e=G();e!=null&&V(e)})),setTimeout((()=>{A.trackLogin(N.Event.loginSuccess,"email",X(o.productSettings))}),2e3))}),[I,S,b,s,o,k,v,a.state,t]);const E=g.useCallback((()=>{m("/signin/auth")}),[m]),j=g.useCallback((()=>{i!=null&&d!=null&&c!=null&&t(Z(i,c,d))}),[i,d,t,c]),F=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(R,{phoneNumber:x,verifyOtpFetchState:z.fetchState,resendVerifyDeviceOTPFetchState:C,onResendOtp:j,onVerifyOtp:F,onCancelVerifyDevice:E});if(I==="In-Progress"&&S==="Completed"&&s?.zeniSessionId!=null&&o!=null||D!=null){const e=a.state?.origin??"/";return u.jsx(L,{to:e,state:{...a.state,origin:""}})}if(!T(n,p)||f==null||h==="Error"){const e=a.state?.origin??"/",U=n!=null&&r.getLastUsedMagicLinkToken()===n;return u.jsx(L,{to:e,state:{...a.state,origin:"",magicLinkAlreadyUsed:U,magicLinkExpired:!U&&(r.isMagicLinkTriggered(n??"")||h==="Error"&&s?.zeniSessionId==null)}})}return u.jsx(oe,{"data-testid":"smooth-loader",children:u.jsx(Y,{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 B}from"./liveblocks-BGbHkUWH.js";import{a as f}from"./sentry-DNB0zbMo.js";import{u as te,j as t,i as $e,g as Ge,h as Ue,q as _}from"./core-B_JBGGj4.js";import{fI as ne,Uo as Me,Up as se,gc as xe,fH as Ne,Uy as Pe,Ur as Re,Us as Ve,q3 as Oe,gp as Le,Uv as b,UA as je,UB as Q,gq as Ze,UC as qe,Ev as ze,h5 as He,cW as We,UD as Ye,gb as Je,gr as Ke}from"./zeni-epic-state-Xwy8a0yQ.js";import{w as Qe,i as Xe,Z as ea,W as aa,c as ta,e as na,u as sa,A as c,f as oa,O as ia,z as ra,d as da,k as ca,P as la,o as ua,l as fa,n as X,L as ma,y as ha,B as ba,p as S,h as ee,r as pa,D as ae,v as ga,x as Sa}from"./index-CxBxIC3M.js";import{D as ka}from"./mui-0YYVWRll.js";import{u as Ea}from"./InboxNotificationsProvider-DQWG4BJK.js";import{u as Ca}from"./useTaskManagerAccess-D4sSbSN5.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new l.Error().stack;i&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[i]="d2a70f1c-994f-4f0c-991b-0d17de64c3a8",l._sentryDebugIdIdentifier="sentry-dbid-d2a70f1c-994f-4f0c-991b-0d17de64c3a8")}catch{}})();const Ta=Qe((({isAppContentDrawerOpen:l,handleDrawerToggle:i})=>{const{tenantEmailDomain:s}=$e(),a=Ge(),k=ea(),n=Ue(),F=xe(),r=te(),{useFeatureGate:d}=aa(),p=ta(),{isTaskManagerAccessEnabled:E}=Ca(p),o=t((e=>ne(e))),oe=o.masterTOSInfo?.isMasterTOSAccepted??!1,$=t((e=>Ne(e))),{status:ie}=t(Pe),G=$.uiState.currentChatSessionId,C=na(),{setLoading:re}=sa(),[w,U]=f.useState(void 0),v=_("/:tenantEmailDomain/dashboard")!==null,M=_("/:tenantEmailDomain/reports")!==null,m=_("/:tenantEmailDomain/onboarding/*")!==null,de=!!o.company?.companyZeniAccountInfo?.isZeniAccountEnabled,{isFeatureEnabled:ce}=d(c.isChargeCardFeatureEnabled),{isFeatureEnabled:x}=d(c.isDebitCardFeatureEnabled),le=oa(o,ce,x),{isFeatureEnabled:ue}=d(c.isSettingsFeatureEnabled),N=t((e=>Re(e))),{isFeatureEnabled:T}=d(c.isReferralFeatureEnabled),A=t((e=>Ve(e)));f.useEffect((()=>{C&&T&&!m&&A.fetchState==="Not-Started"&&r(Oe(!0))}),[C,T,A.fetchState,m]);const D=t((e=>e.tenantState)),fe=t((e=>D.fetchState==="Completed"?Le(e):[])),g=t((e=>e.expenseAutomationViewState.selectedPeriodByTenantId)),{isFeatureEnabled:me}=d(c.isApAgingFeatureEnabled),{isFeatureEnabled:he}=d(c.isArAgingFeatureEnabled),P=ia(),{isFeatureEnabled:be}=d(c.isDashboardSidebarHalloweenAnimationEnabled),{isFeatureEnabled:pe}=d(c.isDashboardSidebarThanksGivingAnimationEnabled),{isFeatureEnabled:ge}=d(c.isDashboardSidebarChristmasAnimationEnabled),{isFeatureEnabled:Se}=d(c.isDashboardSidebarNewYearAnimationEnabled),ke=o.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",Ee=t((e=>b(e).totalUnreadCount)),Ce=t((e=>b(e).reducedFetchCountState)),R=t((e=>b(e).notificationDetailsByTab.tasks.uiState.unreadCount)),V=t((e=>b(e).notificationDetailsByTab.comments.uiState.unreadCount)),O=t((e=>b(e).notificationDetailsByTab.tasks.fetchCountState)),I=t((e=>b(e).notificationDetailsByTab.comments.fetchCountState)),{inboxNotifications:L,isLoading:j,isFetchingMore:Z,hasFetchedAll:q,fetchMore:Te}=Ea();f.useEffect((()=>{const e=setTimeout((()=>Te?.()),0);return()=>clearTimeout(e)})),f.useEffect((()=>{if(j===!1&&Z===!1&&q===!0)if(o?.companyId!=null&&L!=null){const e=`dashboard_${o.companyId}`;U(L.filter((u=>u.roomId===e&&u.readAt==null)).length)}else U(0)}),[j,Z,q]),f.useEffect((()=>{C&&E&&!m&&O.fetchState==="Not-Started"&&F.tenantId!=null&&r(je("task_manager","dashboard"))}),[C,E,m,O.fetchState,F.tenantId,r]),f.useEffect((()=>{m||I.fetchState!=="Not-Started"||r(Q({fetchCountState:{fetchState:"In-Progress",error:void 0}},"comments"))}),[m,I.fetchState,r]),f.useEffect((()=>{w!=null&&I.fetchState==="In-Progress"&&(r(Q({fetchCountState:{fetchState:"Completed",error:void 0}},"comments")),r(se({unreadCount:w},"comments")))}),[w,I.fetchState]);const Ie={fetchStatus:Ce,count:Ee},z=s!=null?ra.getSignedInUserTenant(s):null,H=t((e=>z?.tenantId!=null?Ze(e,z.tenantId):void 0)),h=[];me===!1&&h.push("accounts_payable_aging"),he===!1&&h.push("accounts_receivable_aging"),h.push("zeni_accounts_promo_card","treasury_promo_card"),T===!1&&h.push("rewards_card"),P===!1&&h.push("expense_automation_card");const W=t((e=>qe(e,h).fetchState)),Y=t((e=>ze(e).fetchState)),ye=v&&(W==="Completed"||W==="Error")||M&&(Y==="Completed"||Y==="Error")||!v&&!M?void 0:"disabled",we=f.useMemo((()=>He(o.userRole)),[o.userRole]),ve=We(we),Ae=o?.rewardsLastViewedTime==null,De=p?.userEmail!=null&&N.fetchState==="Completed"&&Ye(N.notificationSettings,p.userEmail,x,o,E),J=da(),_e=J&&ca(a);return B.jsx(ka,{container:window.document.body,variant:"temporary",open:l,onClose:()=>i(!1),PaperProps:{sx:{width:240,zIndex:8,borderRight:"none",backgroundImage:"none"}},ModalProps:{keepMounted:!0},children:B.jsx(la,{signedInUser:p,currentTenantId:D.currentTenantId??"",tenants:D.fetchState==="Completed"?fe:H!=null?[H]:[],currentTenant:o,isTenantDropdownDisabled:ye,isSettings:X(a),isInvoicing:fa(a)&&ie==="completed",isSettingsFeatureEnabled:ue,isVendorsTabVisible:ve,isZeniAccountEnabled:de,isChargeCardEnabled:le,isTreasuryEnabled:ke,isNotificationsTabVisible:De,notificationCountDetails:Ie,isExpenseAutomationEnabledForUser:P,selectedMenu:ua(a),rewardsConfiguration:{isRewardsTabVisible:T,isRewardsAnimated:Ae,rewardsPlan:A.rewardsPlan},isAiCfoAccessEnabled:J,onNotificationIconClick:()=>{i(!1);let e=R===0&&V>0?"notifications/comments":"notifications/tasks";X(a)&&(e=R===0&&V>0?"../../notifications/comments":"../../notifications/tasks");const u=S(a.state?.pathnameStackToGoBack,a.pathname);n(e,{state:{pathnameStackToGoBack:u}})},handleCockpitClick:()=>{window.open("/cockpit")},handleLogOutClick:()=>{i(!1);const e=S(a.state?.pathnameStackToGoBack,a.pathname);n("/signout",{replace:!0,state:{pathnameStackToGoBack:e,message:"logout"}})},handleMenuChange:e=>{if(i(!1),s==null)return;if(e.type==="invoicing")return void n(`../${s}/invoicing/overview`,{state:{pathnameStackToGoBack:S(a.state?.pathnameStackToGoBack,a.pathname),referrer:"Sidebar"}});if(e.type==="ai_cfo"){if(ee.trackAICFOChatScreenStateChanged("viewed","left_menu",G??null,null),!oe)return void pa({location:a,navigate:n,mergeState:{referrer:"Sidebar"}});const y=S(a.state?.pathnameStackToGoBack,a.pathname);return void n(`/${s}/ai-cfo/explore`,{state:{pathnameStackToGoBack:y,referrer:"Sidebar"}})}const u=S(a.state?.pathnameStackToGoBack,a.pathname),K=e.type,Be=ae(K)&&K!=="command_center";if(ae(e.type)&&g[o.tenantId]!=null&&ee.trackMonthEndCloseClicked(g[o.tenantId].month,g[o.tenantId].year,"Sidebar"),Be&&g[o.tenantId]!=null){const y=g[o.tenantId];return void n(`/${s}/month_end_close_checks/review/${e.type}/${y.month}-${y.year}`,{state:{pathnameStackToGoBack:u,referrer:"Sidebar"}})}const Fe=ga(e.type);Sa(e.type)?(G!=null&&r(Ke()),n(`/${s}/ai-cfo/${e.type}`,{state:{pathnameStackToGoBack:u.slice(0,-1),referrer:"Sidebar"}})):n(`/${s}/${Fe}`,{state:{pathnameStackToGoBack:u,referrer:"Sidebar"}})},handleMyProfileClick:()=>{i(!1),n(`/${s}/settings/my_profile`)},handleReferralsClick:()=>{i(!1),n(`/${s}/rewards`)},handleBackClick:()=>{n(`/${s}/dashboard`)},handleTenantSelect:e=>{re(ma.TENANT_SWITCHING),i(!1),ha({dispatch:r,navigate:n,pathToNavigate:ba(e.tenantEmailDomain,a),selectedTenant:e,signedInUser:p})},onZeniLogoClick:()=>{k.toggle()},isAiCfo:_e,aiCfoView:$,isOnDashboard:v,updateCurrentChatSessionId:e=>{r(Je({sessionId:e,agentId:"controller"})),n(`/${s}/ai-cfo/${e}`,{state:{...a.state}})},halloweenAnimationEnabled:be,isTaskManagerAccessEnabled:E,thanksGivingAnimationEnabled:pe,christmasAnimationEnabled:ge,newYearAnimationEnabled:Se})})})),Fa=l=>{const i=te(),s=t((k=>ne(k))),a={events:s.userRoleId!=null?[`private-encrypted-${s.userRoleId}.dashboard-user-notification`]:[],eventCallback:(k,n)=>{Xe(n)&&Me(n.mode)==="dashboard"&&i(se({unreadCount:n.data.unread},"tasks"))}};return B.jsx(Ta,{...l,...a})};export{Fa as M};
@@ -1 +0,0 @@
1
- import{j as e}from"./liveblocks-BGbHkUWH.js";import{h as r,l as i}from"./core-B_JBGGj4.js";import{ak as n}from"./index-CxBxIC3M.js";import"./mui-0YYVWRll.js";import"./sentry-DNB0zbMo.js";import"./zeni-epic-state-Xwy8a0yQ.js";import"./recharts-CdRAMBV_.js";import"./analytics-GU--E2wR.js";import"./plaid-Cq5IYWrp.js";import"./dnd-BNQSfW-e.js";import"./stripe-cKAAJElX.js";import"./lottie-CRTHlKd4.js";import"./lexical-BtX2HNMw.js";import"./pdf-Cqawvcms.js";import"./utils-Dgku26-_.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]="e1fe4b0b-a509-4443-892f-577d1dfd5036",o._sentryDebugIdIdentifier="sentry-dbid-e1fe4b0b-a509-4443-892f-577d1dfd5036")}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 m}from"./liveblocks-BGbHkUWH.js";import{a as r}from"./sentry-DNB0zbMo.js";import{u as A,g as j,j as o,N as C}from"./core-B_JBGGj4.js";import{V2 as P,fI as V,gp as x,V3 as z,V4 as D,V5 as M,V6 as R,pW as k,TJ as L}from"./zeni-epic-state-Xwy8a0yQ.js";import{z as h,af as I}from"./index-CxBxIC3M.js";import"./mui-0YYVWRll.js";import"./recharts-CdRAMBV_.js";import"./analytics-GU--E2wR.js";import"./plaid-Cq5IYWrp.js";import"./dnd-BNQSfW-e.js";import"./stripe-cKAAJElX.js";import"./lottie-CRTHlKd4.js";import"./lexical-BtX2HNMw.js";import"./pdf-Cqawvcms.js";import"./utils-Dgku26-_.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new n.Error().stack;s&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[s]="541fe17c-2eec-43cd-91dd-19855d202666",n._sentryDebugIdIdentifier="sentry-dbid-541fe17c-2eec-43cd-91dd-19855d202666")}catch{}})();function ee(){const n=A(),s=j(),{params:t,error:i}=r.useMemo((()=>P(s.search)),[s.search]),w=r.useMemo((()=>new URLSearchParams(s.search).get("client_name")??t?.clientId??"Unknown Application"),[s.search,t]),p=h.isSignedIn(),a=h.getSignedInUser(),f=o((e=>V(e))),l=o((e=>x(e))),d=o((e=>e.tenantState.fetchState)),y=o(z),v=o(D),c=o(M),[S,E]=r.useState(null),[b,_]=r.useState(null);r.useEffect((()=>{document.querySelector("#app-shell-loader")?.remove()}),[]),r.useEffect((()=>()=>{n(R())}),[n,s.search]),r.useEffect((()=>{i!=null&&console.warn("[OAuthConsent] invalid params:",i)}),[i]);const g=r.useRef(!1);r.useEffect((()=>{p&&a!=null&&!g.current&&(d!=="Not-Started"&&d!=="Error"||(g.current=!0,n(k(a.userId,a.zeniSessionId??void 0))))}),[p,a,d,n]),r.useEffect((()=>{c!=null&&c!==""&&(window.location.href=c)}),[c]);const U=r.useMemo((()=>{if(f?.tenantId!=null)return f.tenantId;const e=h.getActiveTenantForUser()?.tenantId;return e!=null&&l.some((T=>T.tenantId===e))?e:l.length===1?l[0].tenantId:null}),[f?.tenantId,l]),u=S??U;return i!=null?m.jsx(I,{variant:"invalid_params",paramsError:i}):p?m.jsx(I,{variant:"signed_in",clientName:w,userEmail:a?.userEmail,isInitializing:d!=="Completed",tenants:l,selectedTenantId:u,onSelectTenant:E,approveError:b??v,isApproving:y==="In-Progress",showAllowButton:u!=null,onApprove:()=>{t!=null&&a!=null&&u!=null&&n(L(a.userId,a.zeniSessionId??void 0,u,t.clientId,t.redirectUri,t.codeChallenge,t.codeChallengeMethod,t.state,t.responseType))},onDeny:()=>{if(t!=null)try{const e=new URL(t.redirectUri);e.searchParams.set("error","access_denied"),e.searchParams.set("error_description","The user denied the request"),e.searchParams.set("state",t.state),window.location.href=e.toString()}catch{_("Unable to deny: redirect_uri is not a valid URL. Close this window or contact support.")}}}):m.jsx(C,{to:"/signin/auth",state:{origin:s.pathname+s.search},replace:!0})}export{ee as default};
@@ -1 +0,0 @@
1
- import{j as n}from"./liveblocks-BGbHkUWH.js";import{h as G,u as Y,g as z,i as X,j as d,l as H,n as J,o as S}from"./core-B_JBGGj4.js";import{fI as v,Aw as R,vc as K,VW as w,v7 as T,bq as Q,c0 as Z,v8 as ee,VX as ae,VE as C,ek as te,Ek as se,VY as oe,EI as re,e0 as ne,d$ as ce}from"./zeni-epic-state-Xwy8a0yQ.js";import{ag as ie,z as le,ao as de,aq as me,V as fe,a6 as pe,h as M,aB as ue,p as he,W as ge,A as Fe}from"./index-CxBxIC3M.js";import"./mui-0YYVWRll.js";import Ie from"./NotFoundScreen-DoDcFwTV.js";import{F as be}from"./FeaturePreviewScreen-D2uC0Gjp.js";import{a as g}from"./sentry-DNB0zbMo.js";import{u as Se}from"./useAskAiCfoHostNavButtonProps-BFcd-xr_.js";import{u as Ce}from"./useInitialThreadRequest-SNtsdFx0.js";import{t as Te}from"./routePaths-CK_7YRxn.js";import{M as ye}from"./MobileAppDrawer-Db4uI8qx.js";import"./recharts-CdRAMBV_.js";import"./analytics-GU--E2wR.js";import"./plaid-Cq5IYWrp.js";import"./dnd-BNQSfW-e.js";import"./stripe-cKAAJElX.js";import"./lottie-CRTHlKd4.js";import"./lexical-BtX2HNMw.js";import"./pdf-Cqawvcms.js";import"./utils-Dgku26-_.js";import"./InboxNotificationsProvider-DQWG4BJK.js";import"./useTaskManagerAccess-D4sSbSN5.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new s.Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="a64d3e3a-6fc8-47ca-a0d5-97f627982230",s._sentryDebugIdIdentifier="sentry-dbid-a64d3e3a-6fc8-47ca-a0d5-97f627982230")}catch{}})();const y=(s,e,a,o)=>{if(s!=e){const r=o??"";s!=null&&s.length>0?a(`../${e}${r}`,{replace:!0}):a(`${e}${r}`,{replace:!0})}},Ae=H((function(s){const e=ae(s),a={},o=e.pandLReportWithForecast.uiState.nodeCollapseState;return Object.keys(o).forEach((r=>{a[r]=o[r]===!1})),{selectedTimeframe:e.selectedTimeframe,isForecastVsActualOn:e.isForecastVsActualOn,compareMode:e.compareMode,forecastList:e.forecastList,selectedForecast:e.selectedForecast,pandLreport:e.pandLReportWithForecast,scrollPosition:e.pandLReportWithForecast.uiState.scrollPosition,nodeOpenStatus:a,type:"name+balances_forecast",analytics:M}}),(function(s,e){return{onForecastSelectionChanged:(a,o)=>{s(w(a,o)),e.isPandLReportFetched(a)||s(T(a)),y(e.forecastIdFromUrlPath,a,e.navigate)},onTimeframeChanged:a=>{s(re(a))},onForecastVsActualsCompareToggle:a=>{s(oe(a)),s(C({forecastId:e.forecastIdFromUrlPath,scrollPosition:{scrollLeft:0,scrollTop:0}}))},onCompareModeChanged:a=>{s(se(e.firstMonthOfFY,a,0,[]))},onAccountBalanceClick:e.hasTransactionAccess!==!0?void 0:(a,o)=>{let r,c;const p=a.accountName===""?a.accountDescription:a.accountName;if(o.balanceTimeFrame==="month"||o.balanceTimeFrame==="quarter"?(r=o.balanceTimeFrame,c=te(o)):o.balanceTimeFrame==="year"?(r="quarter",c={startDate:o.endDate.startOf("quarter"),endDate:o.endDate}):console.error(`timeframe ${o.balanceTimeFrame} is not supported`),c!=null&&r!=null){const u=Te(e.tenantEmailDomain,a.accountId,a.accountType,p,r,c),m=he(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(u,{state:{pathnameStackToGoBack:m,referrer:"Forecast"}})}},onNodeCollapseToggled:(a,o)=>{s(C({forecastId:e.forecastIdFromUrlPath,nodeCollapseState:{nodeId:a,isCollapsed:o===!1}}))},onTableScroll:a=>{s(C({forecastId:e.forecastIdFromUrlPath,scrollPosition:a}))},onBackClick:()=>{e.navigate("../../")}}}))(ue);function U(){const s=ie(),e=G(),a=Y(),o=z(),{forecastId:r,tenantEmailDomain:c}=X(),[p,u]=g.useState(!1),[m,A]=g.useState(!1),F=le.getSignedInUser(),k=d((t=>v(t))),V=k.company?.companyInfo.firstMonthOfFY??1,i=d((t=>R(t.forecastState,t.forecastListState))),l=d((t=>t.forecastListState.fetchState==="Completed")),x=d((t=>t.profitAndLossState)),D=d((t=>t.reportUIOptionsState.selectedForecast)),E=t=>x.pandLByForecastID[t]!=null&&ee(t,x).reducedAllFetchState.fetchState==="Completed",{areTenantIdsInSync:I}=de();me({isDataReady:l});const{isAiCfoAccessEnabled:q,onAskAiCfoClick:B}=Se({mobileExploreReferrer:"Forecast"});g.useEffect((()=>{if(!p&&I)u(!0),l||a(K());else if(l&&!m){A(!0);const t=((f,P,O)=>P!=null?f.forecasts.findIndex((b=>b.id===P)):O!=null?f.forecasts.findIndex((b=>b.id===O)):f.forecasts.length>0?0:-1)(i,r,D?.id);t===-1&&r!=null?e("page-not-found",{replace:!0}):t!==-1&&t!=D?.index?(a(w(i.forecasts[t].id,t)),y(r,i.forecasts[t].id,e,o.search)):r==null&&t!==-1&&y(void 0,i.forecasts[t].id,e,o.search),t!==-1&&!E(i.forecasts[t].id)&&I&&a(T(i.forecasts[t].id))}}),[p,u,a,l,i,m,A,R,T,I]);const j=fe(),_=j?.loggedInUserRole!=null&&Q(j.loggedInUserRole),$=Ce(k?.companyId,{clearParams:l&&m}),[N,W]=g.useState(!1),h=new URL(s("forecast_pandl"));h.searchParams.set("firstname",F?.firstName??""),h.searchParams.set("lastname",F?.lastName??""),h.searchParams.set("email",F?.userEmail??"");const L=t=>{W(t)};return n.jsxs(n.Fragment,{children:[l?n.jsx(pe,{analytics:M,onLoad:t=>(f=>f.trackForecast())(t)}):null,n.jsx(ye,{isAppContentDrawerOpen:N,handleDrawerToggle:L}),n.jsx(Ae,{firstMonthOfFY:V,tenantEmailDomain:c,forecastIdFromUrlPath:r,navigate:e,location:o,isPandLReportFetched:E,meetingUrl:Z(h.toString()),hasTransactionAccess:_,isAiCfoAccessEnabled:q,onAskAiCfoClick:B,initialOpenThreadRequest:$,onClickMenuIcon:()=>{L(!0)}})]})}function Xe(){const s=d((c=>v(c))),{useFeatureGate:e}=ge(),{isFeatureEnabled:a}=e(Fe.isDebitCardFeatureEnabled),o=ne(a,s),r=ce(s);return o===!0||r===!0?n.jsx(be,{}):n.jsxs(J,{children:[n.jsx(S,{path:"/",element:n.jsx(U,{})}),n.jsx(S,{path:"/:forecastId",element:n.jsx(U,{})}),n.jsx(S,{path:"/:forecastId/*",element:n.jsx(Ie,{})})]})}export{Xe as default};
@@ -1,22 +0,0 @@
1
- import{j as a}from"./liveblocks-BGbHkUWH.js";import{VS as re,fI as Y,m3 as _,e0 as N,d$ as le,SJ as Q,Vf as ce,Df as Pe,VT as J,D4 as je,Dp as Le,Dj as de,D8 as pe,Dn as Te,Dk as ve,VU as ue,sx as Ve,g9 as Ae,gG as Fe,VV as G,Dc as me,Db as ge,Ds as Re,c9 as Oe}from"./zeni-epic-state-Xwy8a0yQ.js";import{$ as fe,W as X,A as H,z as W,f as he,F as Ce,ad as ye,ax as be,ay as Ze,a9 as Se,C as R,ae as De,G as K,az as Ue,ao as Be,aq as $e,a6 as ze,h as we,K as Ge,p as He,aA as _e,V as We}from"./index-CxBxIC3M.js";import{D as xe,n as M,S as Ie}from"./mui-0YYVWRll.js";import ae from"./NotFoundScreen-DoDcFwTV.js";import{a as c}from"./sentry-DNB0zbMo.js";import{u as ee,i as Ke,j as g,h as Me,g as qe,l as Je,n as se,o as z}from"./core-B_JBGGj4.js";import{u as Ye}from"./useAskAiCfoHostNavButtonProps-BFcd-xr_.js";import{M as Ne}from"./MobileAppDrawer-Db4uI8qx.js";import"./recharts-CdRAMBV_.js";import"./analytics-GU--E2wR.js";import"./plaid-Cq5IYWrp.js";import"./dnd-BNQSfW-e.js";import"./stripe-cKAAJElX.js";import"./lottie-CRTHlKd4.js";import"./lexical-BtX2HNMw.js";import"./pdf-Cqawvcms.js";import"./utils-Dgku26-_.js";import"./InboxNotificationsProvider-DQWG4BJK.js";import"./useTaskManagerAccess-D4sSbSN5.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]="88a3e1df-29af-4bca-b00a-75637baa9a19",e._sentryDebugIdIdentifier="sentry-dbid-88a3e1df-29af-4bca-b00a-75637baa9a19")}catch{}})();const Qe={overlayWidth:new Se(100,100,48)},te=K.getLocalizedStrings().peoplePage.invitePage,ne=K.getLocalizedStrings().common,Xe=({companyId:e,managersListView:t,companyPassportView:d,classListView:n,mode:f,isEditPeopleDrawerOpen:i,closeDrawerHandler:b})=>{const h=fe(),m=ee(),[O,Z]=c.useState(!1),[k,S]=c.useState(!1),{userId:D}=Ke(),r=g((l=>re(l))),p=g((l=>Y(l))),E=g((l=>_(l))),{useFeatureGate:x}=X(),{isFeatureEnabled:I}=x(H.isDebitCardFeatureEnabled),P=N(I,p),T=le(p),v=Q(p),U=ce(p),B=!!p.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,w=!P&&E&&n.fetchState!=="Completed"||t.fetchState!=="Completed"||d.fetchState!=="Completed"||e==null;if(W.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const C=()=>{m(J()),b()},V=()=>{O===!0?S(!0):C()},$=d.companyView?.controllers?.map((l=>l.user)),u=!!p.company?.companyZeniAccountInfo?.isZeniAccountEnabled,{isFeatureEnabled:j}=x(H.isChargeCardFeatureEnabled),L=he(p,j,I),{isCardsHidden:A}=Ce(p?.tenantId),y=!L||A,F=p.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",s={peopleDetails:r,classList:n.classes,managersList:t.users,controllersList:$,mode:f,isZeniTenant:v,isAccountingClassesEnabled:E,isReimbursementDisabled:B===!1,isZeniAccountsDisabled:u===!1,isChargeCardDisabled:y,isTreasuryDisabled:F===!1,isLiteRoleDisabled:U===!1,isBankingOnlyTenant:P,isCardsOnlyTenant:T,onResetClick:C,onDeleteUser:l=>{m(pe(l.userId,l.userRole.userRoleId))},onPeopleLocalDataUpdated:l=>{m(de({peopleLocalData:l})),Z(!0)},onSaveClick:()=>{m(f==="zeni_only"?je(e):Le(v))},onCloseClick:V,isLoading:w||r.person==null},o={onOkClick:()=>{S(!1),C()},onCancelClick:()=>{S(!1)}};return c.useEffect((()=>{w===!1&&D!=null&&m(Pe(D))}),[w,D]),c.useEffect((()=>{r.updatePersonState.fetchState==="Completed"&&C()}),[r.updatePersonState.fetchState]),a.jsx(xe,{anchor:"right",open:i,PaperProps:{style:{width:Qe.overlayWidth.valuePercentage(h),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:ye.overlayDark,cursor:"pointer"}}},onClose:V,children:a.jsxs(ea,{onClick:l=>l.stopPropagation(),children:[k===!0?a.jsx(be,{titleComponent:a.jsx(ke,{children:te.discardTitle}),descriptionComponent:a.jsx(Ee,{children:te.discardDescription}),primaryButtonText:ne.yes,secondaryButtonText:ne.no,action:o,isEditPopup:!0}):null,a.jsx(Ze,{...s})]})})},ea=M(Ie)`
2
- display: flex;
3
- min-height: 100%;
4
- flex-direction: column;
5
- `,ke=M(De.H6Regular)`
6
- margin-top: ${R.sp7};
7
- padding-left: ${R.sp8};
8
- padding-right: ${R.sp8};
9
- color: ${e=>e.theme.colors.primary};
10
- word-break: break-word;
11
- `,Ee=M(De.LargeRegularSp)`
12
- color: ${e=>e.theme.colors.hero};
13
- padding-left: ${R.sp8};
14
- padding-right: ${R.sp8};
15
- margin-bottom: 30px;
16
- margin-top: ${R.sp4};
17
- white-space: pre-line;
18
- `,aa={overlayWidth:new Se(100,100,48)},oe=K.getLocalizedStrings().peoplePage.invitePage,ie=K.getLocalizedStrings().common,sa=({companyId:e,managersListView:t,companyPassportView:d,classListView:n,mode:f,isInvitePeopleDrawerOpen:i,closeDrawerHandler:b})=>{const h=fe(),m=ee(),[O,Z]=c.useState(!1),[k,S]=c.useState(!1),D=g((o=>re(o))),r=g((o=>Y(o))),p=g((o=>_(o))),{useFeatureGate:E}=X(),{isFeatureEnabled:x}=E(H.isDebitCardFeatureEnabled),I=N(x,r),P=le(r),T=Q(r),v=ce(r),U=!!r.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,B=!I&&p&&n.fetchState!=="Completed"||t.fetchState!=="Completed"||d.fetchState!=="Completed"||e==null;if(W.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const w=()=>{b(),m(J())},C=()=>{O===!0?S(!0):w()},V={onOkClick:()=>{S(!1),w()},onCancelClick:()=>{S(!1)}},$=d.companyView?.controllers.map((o=>o.user)),u=!!r.company?.companyZeniAccountInfo?.isZeniAccountEnabled,{isFeatureEnabled:j}=E(H.isChargeCardFeatureEnabled),L=he(r,j,x),{isCardsHidden:A}=Ce(r?.tenantId),y=!L||A,F=r.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",s={classList:n.classes,managersList:t.users,controllersList:$,mode:f,isZeniTenant:T,onPeopleLocalDataUpdated:o=>{m(de({peopleLocalData:o})),Z(!0)},onResetClick:w,onSaveClick:()=>{m(f==="zeni_only"?Te(e):ve())},onCloseClick:C,peopleDetails:D,isAccountingClassesEnabled:p,isReimbursementDisabled:U===!1,isLiteRoleDisabled:v===!1,isZeniAccountsDisabled:u===!1,isChargeCardDisabled:y,isTreasuryDisabled:F===!1,isBankingOnlyTenant:I,isCardsOnlyTenant:P,isLoading:B};return c.useEffect((()=>{D.invitePersonState.fetchState==="Completed"&&(b(),m(J()))}),[D.invitePersonState.fetchState]),a.jsx(xe,{anchor:"right",open:i,PaperProps:{style:{width:aa.overlayWidth.valuePercentage(h),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:ye.overlayDark,cursor:"pointer"}}},onClose:C,children:a.jsxs(ta,{onClick:o=>o.stopPropagation(),children:[k===!0?a.jsx(be,{titleComponent:a.jsx(ke,{children:oe.discardTitle}),descriptionComponent:a.jsx(Ee,{children:oe.discardDescription}),primaryButtonText:ie.yes,secondaryButtonText:ie.no,action:V}):null,a.jsx(Ue,{...s})]})})},ta=M(Ie)`
19
- display: flex;
20
- min-height: 100%;
21
- flex-direction: column;
22
- `,na=Je((function(e,t){const d=ue(e),n=W.getSignedInUser();return{data:d,loggedinUserId:n?.userId??"",isZeniTenant:t.isZeniTenant===!0,shouldFetchClasses:t.shouldFetchClasses,isZeniAdminUser:n?.userEmailDomain==="zeni.ai"&&t.isZeni===!0,isAccountingClassesEnabled:_(e),analytics:we}}),(function(e,t){const{navigate:d,companyId:n,shouldFetchClasses:f}=t;return{personAction:{onPersonDelete:(i,b)=>{e(pe(i,b))},onResendInvite:i=>{e(Re(i))},onReloadPeople:()=>{e(me()),e(ge(n,f))},onBackClick:()=>{d("../../")},onModeChange:i=>{e(G({mode:i,searchText:"",sortKey:"name",sortOrder:"ascending"}))},onSearchTextChanged:i=>{e(G({searchText:i}))}}}}))(_e);function q({isInvitePeopleDrawerOpen:e,isEditPeopleDrawerOpen:t}){const d=Me(),n=ee(),f=qe(),{areTenantIdsInSync:i}=Be(),b=W.getSignedInUser(),h=g((s=>Y(s))),{useFeatureGate:m}=X(),{isFeatureEnabled:O}=m(H.isDebitCardFeatureEnabled),Z=g((s=>_(s))),k=!N(O,h)&&Z,S=Q(h),D=h?.tenantId,{tenantEmailDomain:r}=h,[p,E]=c.useState(!1),[x,I]=c.useState(!1),[P,T]=c.useState(!1),[v,U]=c.useState("off"),[B,w]=c.useState(!1),C=s=>{w(s)},{isAiCfoAccessEnabled:V,onAskAiCfoClick:$}=Ye({mobileExploreReferrer:"People"}),u=g((s=>ue(s)));$e({isDataReady:u.fetchState==="Completed"});const j=g((s=>Ve(s.classState,s.classListState))),L=g((s=>Ae(s.userState,s.userRoleState,s.userListViewState,"manager"))),A=g((s=>Fe(s))),y=h?.companyId;c.useEffect((()=>{p&&v===u.uiState.mode||!i||(n(G({searchText:"",sortKey:"name",sortOrder:"ascending"})),U(u.uiState.mode),E(!0),n(me()))}),[p,b,D,n,u.uiState.mode,i]),c.useEffect((()=>{y!=null&&i&&n(ge(y,k))}),[y,k,i]),c.useEffect((()=>{I(e!=null&&e===!0),T(t!=null&&t===!0&&t)}),[e,t]),c.useEffect((()=>{n(G({searchText:"",sortKey:"name",sortOrder:"ascending"}))}),[]);const F=()=>{I(!1),T(!1),d("../")};return a.jsxs(a.Fragment,{children:[u.fetchState==="Completed"?a.jsx(ze,{analytics:we,onLoad:s=>s.trackPageLoaded(Ge.Event.members)}):null,x===!0?a.jsx(sa,{closeDrawerHandler:F,isInvitePeopleDrawerOpen:x,managersListView:L,companyPassportView:A,classListView:j,companyId:y,mode:u.uiState.mode}):null,P===!0?a.jsx(Xe,{closeDrawerHandler:F,isEditPeopleDrawerOpen:P,managersListView:L,companyPassportView:A,classListView:j,companyId:y,mode:u.uiState.mode}):null,a.jsx(Ne,{isAppContentDrawerOpen:B,handleDrawerToggle:C}),a.jsx(na,{navigate:d,signedInUser:b,isZeni:h.isZeni,isZeniTenant:S,peopleUIState:u.uiState,companyId:y,shouldFetchClasses:k,classList:j,managersView:L,peopleView:u,onInvitePeopleClick:()=>{d("./new")},onColumnSortConfigChanged:(s,o)=>{n(G({sortKey:s,sortOrder:o}))},onRowClick:s=>{const o=`/${r}/people/${encodeURIComponent(s)}/edit`,l=He(f.state?.pathnameStackToGoBack,f.pathname);d(o,{state:{pathnameStackToGoBack:l}})},onClickMenuIcon:()=>{C(!0)},isAiCfoAccessEnabled:V,onAskAiCfoClick:$})]})}function ka(){const e=We();return Oe(e?.loggedInUserRole??[])?a.jsxs(se,{children:[a.jsx(z,{path:"/",element:a.jsx(q,{})}),a.jsx(z,{path:"new",element:a.jsx(q,{isInvitePeopleDrawerOpen:!0})}),a.jsx(z,{path:":userId/edit",element:a.jsx(q,{isEditPeopleDrawerOpen:!0})}),a.jsx(z,{path:"*",element:a.jsx(ae,{})})]}):a.jsx(se,{children:a.jsx(z,{path:"*",element:a.jsx(ae,{})})})}export{ka as default};
@@ -1 +0,0 @@
1
- import{j as s}from"./liveblocks-BGbHkUWH.js";import E from"./NotFoundScreen-DoDcFwTV.js";import{a as r}from"./sentry-DNB0zbMo.js";import{h as _,g as v,j as p,i as M,u as P,N as U,l as z,n as O,o as h}from"./core-B_JBGGj4.js";import{fI as B,a1v as b,bo as F,bn as N,iP as V,gk as q}from"./zeni-epic-state-Xwy8a0yQ.js";import{Z as L,z as I,aq as Z,dL as $}from"./index-CxBxIC3M.js";import"./mui-0YYVWRll.js";import{u as G}from"./useAskAiCfoHostNavButtonProps-BFcd-xr_.js";import{M as H}from"./MobileAppDrawer-Db4uI8qx.js";import"./recharts-CdRAMBV_.js";import"./analytics-GU--E2wR.js";import"./plaid-Cq5IYWrp.js";import"./dnd-BNQSfW-e.js";import"./stripe-cKAAJElX.js";import"./lottie-CRTHlKd4.js";import"./lexical-BtX2HNMw.js";import"./pdf-Cqawvcms.js";import"./utils-Dgku26-_.js";import"./InboxNotificationsProvider-DQWG4BJK.js";import"./useTaskManagerAccess-D4sSbSN5.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]="3162c3b0-f936-4ec8-9e6c-132fea7ce5e6",e._sentryDebugIdIdentifier="sentry-dbid-3162c3b0-f936-4ec8-9e6c-132fea7ce5e6")}catch{}})();const J=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)}}}))($),K=()=>{const e=_(),t=v(),c=L(),o=p((a=>B(a))),{aggregatedReportViewState:n}=p((a=>b(a))),{tenantEmailDomain:f}=M(),u=P(),d=I.getSignedInUser();if(d==null)throw new Error("Can't access this page without signing in...");const m=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"&&m.current&&(u(q({messageSection:"data_refresh_update",messageText:"success",type:"success",showStatusIcon:!0})),m.current=!1)}),[n?.fetchState]);const D=r.useCallback(((a,i)=>{n!=null&&n?.fetchState==="In-Progress"||l(a,i,!0),m.current=!0}),[n?.fetchState,l]),j=r.useCallback(((a,i)=>{l(a,i,!1)}),[l]),g=a=>{S(a)},{isAiCfoAccessEnabled:R,onAskAiCfoClick:A}=G({mobileExploreReferrer:"Performance"});return Z({isDataReady:n?.fetchState==="Completed"}),y?s.jsxs(s.Fragment,{children:[s.jsx(H,{isAppContentDrawerOpen:w,handleDrawerToggle:g}),s.jsx(J,{navigate:e,location:t,themeState:c,currentTenant:o,signedInUser:d,tenantEmailDomain:f,onReload:D,onTimeRangeSelect:j,handleDrawerToggle:g,isAiCfoAccessEnabled:R,onAskAiCfoClick:A})]}):s.jsx(U,{to:`/${f}/dashboard`,replace:!0})};function he(){return s.jsxs(O,{children:[s.jsx(h,{path:"*",element:s.jsx(K,{})}),s.jsx(h,{path:"*",element:s.jsx(E,{})})]})}export{he as default};
@@ -1 +0,0 @@
1
- import{j as a}from"./liveblocks-BGbHkUWH.js";import{z as w,a6 as N,h as f,K as S,e0 as I,W as k,A as C}from"./index-CxBxIC3M.js";import"./mui-0YYVWRll.js";import g from"./NotFoundScreen-DoDcFwTV.js";import{a as c}from"./sentry-DNB0zbMo.js";import{u as D,j as h,h as F,g as L,l as T,n as U,o as d,N as y}from"./core-B_JBGGj4.js";import{fI as _,a2u as j,a2v as p,Ea as P,q3 as V,a2w as q,E8 as z}from"./zeni-epic-state-Xwy8a0yQ.js";import"./recharts-CdRAMBV_.js";import"./analytics-GU--E2wR.js";import"./plaid-Cq5IYWrp.js";import"./dnd-BNQSfW-e.js";import"./stripe-cKAAJElX.js";import"./lottie-CRTHlKd4.js";import"./lexical-BtX2HNMw.js";import"./pdf-Cqawvcms.js";import"./utils-Dgku26-_.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]="ae3a78e3-05ac-4791-a08d-166b1ed9f25a",e._sentryDebugIdIdentifier="sentry-dbid-ae3a78e3-05ac-4791-a08d-166b1ed9f25a")}catch{}})();const A=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])})),f.trackInviteEmailClicked("send",s,r,s.length)}e(z())},onUpdateInviteFormLocalData:s=>{e(q({localData:s}))},onSubmitSuccess:()=>{e(p())},onCancelClick:()=>{i!=null&&f.trackInviteEmailClicked("cancel")}}}))(I),G=()=>{const e=D(),[t,n]=c.useState(!1),[i,s]=c.useState(!1),r=h((o=>_(o))),l=F(),x=L(),u=w.getSignedInUser();if(u==null)throw Error("Can't access invite referral screen without signing in...");const m=h((o=>j(o))),b=u?.firstName!=null?u.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 v=r.company?.companyInfo.companyLegalName??r.companyName;return a.jsxs(a.Fragment,{children:[m.fetchState==="Completed"?a.jsx(N,{analytics:f,onLoad:o=>(E=>E.trackPageLoaded(S.Event.inviteEmailViewed))(o)}):null,a.jsx(A,{navigate:l,location:x,currentTenant:r,companyName:v,userName:b,inviteFormCompayData:m.localData})]})};function ne(){const{useFeatureGate:e}=k(),{isFeatureEnabled:t}=e(C.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(G,{}):a.jsx(g,{})}),a.jsx(d,{path:"*",element:a.jsx(g,{})})]})}export{ne as default};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/NotFoundScreen-DoDcFwTV.js","assets/sentry-DNB0zbMo.js","assets/core-B_JBGGj4.js","assets/zeni-epic-state-Xwy8a0yQ.js","assets/index-CxBxIC3M.js","assets/mui-0YYVWRll.js","assets/analytics-GU--E2wR.js","assets/utils-Dgku26-_.js","assets/index-BQ3cXEYt.css","assets/DashboardRoutes-BSeqoNjh.js","assets/withTransactionSidePanel-ChmF5ZJU.js","assets/useAskAiCfoHostNavButtonProps-BFcd-xr_.js","assets/TransactionDetailScreen-C_k5gdOu.js","assets/decodeURIComponentSafe-Bfx7X0BB.js","assets/useInitialThreadRequest-SNtsdFx0.js","assets/routePaths-CK_7YRxn.js","assets/expenseAutomationHelper-ByKy4nt3.js","assets/stripSplatSuffix-C3U2swZ_.js","assets/analyticsHelper-CqPAb4gE.js","assets/CompanyPassportScreen-CKr2rLf3.js","assets/MobileAppDrawer-Db4uI8qx.js","assets/InboxNotificationsProvider-DQWG4BJK.js","assets/useTaskManagerAccess-D4sSbSN5.js","assets/useAiCfoDashboardSuggestedQuestionsChips-DKK0MQjk.js","assets/FeaturePreviewScreen-D2uC0Gjp.js","assets/BillPayRoutes-GXto7JZ0.js","assets/AddressScreen-BrWge-9-.js","assets/DomesticWireDetailScreen-CJa7ddNR.js","assets/BusinessVerificationPageScreen-DVoX6wr8.js","assets/DrawerScreen-C4CLhZpW.js","assets/SetupPagesScreen-hwC4fmh3.js","assets/BillPayApprovalRoutes-b-s007A0.js","assets/ReimbursementApprovalRuleDetailScreen-B5oVRiY9.js","assets/getLocaleForTenant-BBK_Q8ap.js","assets/ReimbursementRoutes-CBPwcIRq.js","assets/ReimbursementApprovalRoutes-BDudJtQS.js","assets/TransactionListRoutes-77NZmmmz.js","assets/ZeniAccountStatementScreen-CBN6_AHz.js","assets/SettingsRoutes-DQM99Ih9.js","assets/AccountMappingScreen-CaoIfFGn.js","assets/QBOConnectionScreen-B7xiKB79.js","assets/empty-YIY19tj_.js","assets/index-DBkRpuph.js","assets/url-DL7rBiuc.js","assets/index-BZYS83GK.js","assets/accountMappingHelper-Cwtkqs-4.js","assets/useEmailConnectResultRefresh-BKk_XTkE.js","assets/ReportsRoutes-l_EmwvDT.js","assets/ChargeCardRoutes-BpmZJ-Uq.js","assets/useChargeCardPusherEvents-BlOmDRLq.js","assets/PeopleRoutes-CdYNSEIx.js","assets/ExpenseAutomationRoutes-2dTQAmqe.js","assets/useActualMatchingMatchDetail--rY1AHQR.js","assets/ScheduleDetailsPrepaidExpensesScreen-DOXuTH5b.js","assets/pathToGoBack-BU_KL0Rp.js","assets/TreasuryRoutes-ESg23CqF.js","assets/VendorsRoutes-CGm7W9n5.js","assets/ZeniAccountRoutes-6mRRYpTk.js","assets/AddressRoutes-BhYsxEkG.js","assets/PandLWithForecastRoutes-DicvueW7.js","assets/CustomerOnboardingRoutes-Bi6IaUjL.js","assets/TransactionDetailRoutes-CmkMJrHR.js","assets/EntityDetailRoutes-DlmTg0_T.js","assets/InvoicingRoutes-5h1urdzf.js","assets/NotificationRoutes-qrUzNjl-.js","assets/PerformanceRoutes-CD2tTMtz.js","assets/ActualMatchingMatchDetailScreen-2JNjReGt.js","assets/RewardsRoutes-CKLzKNZh.js","assets/TaskRoutes-Usowqz1T.js","assets/TaskListScreen-CQZuEtBz.js","assets/useTaskManagerPusherEvents-C22zG5XL.js","assets/AiCfoScreen-ClfP5RRl.js","assets/CardsAiCfoScreen-BIEaaWwa.js"])))=>i.map(i=>d[i]);
2
- import{_ as s,bn as Es,fI as hs,e0 as ps,d$ as xs,Bl as gs,dj as Rs,c9 as Is,gM as js,gc as Ts,dg as pe,cH as As,gq as bs,cz as Ds,bF as fs,br as ys,UE as vs,v as Cs,UH as Os,bq as Us,UI as Ps,bL as ws,bK as Fs,bu as Ls,cv as Hs,UJ as Vs,UK as ks,db as Bs,de as Ss,dd as Ns,cG as Ms,cN as Zs,pW as xe,gl as ge,h0 as $s,gn as Re,gO as Ie,gP as je,go as zs}from"./zeni-epic-state-Xwy8a0yQ.js";import{j as e}from"./liveblocks-BGbHkUWH.js";import{a as P}from"./sentry-DNB0zbMo.js";import{N as u,u as Gs,h as qs,i as Ws,g as Ys,j as $,q as Te,n as Ks,o as n}from"./core-B_JBGGj4.js";import{E as l,u as Js,z as y,W as Qs,d as Xs,O as et,A as S,f as st,F as tt,V as nt,L as F,G as Ae,t as _,H as at,I as ot,h as ne}from"./index-CxBxIC3M.js";import{u as rt}from"./mui-0YYVWRll.js";import{f as be}from"./analyticsHelper-CqPAb4gE.js";import{t as it}from"./getLocaleForTenant-BBK_Q8ap.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},D=new o.Error().stack;D&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[D]="aa9f4e96-64ea-4b0c-b01c-c2d45ec18251",o._sentryDebugIdIdentifier="sentry-dbid-aa9f4e96-64ea-4b0c-b01c-c2d45ec18251")}catch{}})();const lt=l((()=>s((()=>import("./NotFoundScreen-DoDcFwTV.js")),__vite__mapDeps([0,1,2,3,4,5,6,7,8])))),ut=({tenantEmailDomain:o})=>e.jsx(u,{to:`/${o}/reimbursements`}),dt=({tenantEmailDomain:o})=>e.jsx(u,{to:`/${o}/bills`}),De=({tenantEmailDomain:o})=>e.jsx(u,{to:`/${o}/treasury`}),fe=({tenantEmailDomain:o})=>e.jsx(u,{to:`/${o}/checking`}),ye=({tenantEmailDomain:o})=>e.jsx(u,{to:`/${o}/cards`}),v=({showZeniAccountRoute:o,isUserHasBillPayAccess:D,isUserHasReimbursementAccess:N,showTreasuryRoute:i,isTenantBankingOnly:H,showChargeCardRoute:O,tenantEmailDomain:C})=>{if(H===!0){if(o)return e.jsx(fe,{tenantEmailDomain:C});if(i)return e.jsx(De,{tenantEmailDomain:C});if(O)return e.jsx(ye,{tenantEmailDomain:C})}return o?e.jsx(fe,{tenantEmailDomain:C}):i?e.jsx(De,{tenantEmailDomain:C}):O?e.jsx(ye,{tenantEmailDomain:C}):D?e.jsx(dt,{tenantEmailDomain:C}):N?e.jsx(ut,{tenantEmailDomain:C}):e.jsx(lt,{})},ct={dashboard:()=>s((()=>import("./DashboardRoutes-BSeqoNjh.js")),__vite__mapDeps([9,1,2,3,4,5,6,7,10,11,12,13,14,15,16,17,0,18,19,20,21,22,23,24,8])),bills:()=>s((()=>import("./BillPayRoutes-GXto7JZ0.js")),__vite__mapDeps([25,1,2,3,4,5,6,7,26,0,27,11,14,28,15,20,21,22,29,24,30,18,31,32,33,8])),reimbursement:()=>s((()=>import("./ReimbursementRoutes-CBPwcIRq.js")),__vite__mapDeps([34,1,2,3,4,5,6,7,0,30,28,15,20,21,22,18,24,11,14,29,35,32,33,8])),transactions:()=>s((()=>import("./TransactionListRoutes-77NZmmmz.js")),__vite__mapDeps([36,1,2,3,4,5,6,7,10,11,12,13,14,15,16,17,37,8])),settings:()=>s((()=>import("./SettingsRoutes-DQM99Ih9.js")),__vite__mapDeps([38,1,2,3,4,5,6,7,22,39,20,21,40,41,42,43,44,13,45,26,0,18,28,15,19,46,31,32,35,8])),reports:()=>s((()=>import("./ReportsRoutes-l_EmwvDT.js")),__vite__mapDeps([47,1,2,3,4,5,6,7,0,24,14,15,20,21,22,8])),chargeCards:()=>s((()=>import("./ChargeCardRoutes-BpmZJ-Uq.js")),__vite__mapDeps([48,1,2,3,4,5,6,7,11,20,21,22,30,28,15,0,18,14,49,26,8])),people:()=>s((()=>import("./PeopleRoutes-CdYNSEIx.js")),__vite__mapDeps([50,1,2,3,4,5,6,7,0,11,20,21,22,8])),expenseAutomation:()=>s((()=>import("./ExpenseAutomationRoutes-2dTQAmqe.js")),__vite__mapDeps([51,1,2,3,0,4,5,6,7,11,12,13,14,15,16,52,17,10,53,54,45,29,8])),treasury:()=>s((()=>import("./TreasuryRoutes-ESg23CqF.js")),__vite__mapDeps([55,1,2,3,4,5,6,7,0,30,28,15,20,21,22,18,11,14,24,8])),vendors:()=>s((()=>import("./VendorsRoutes-CGm7W9n5.js")),__vite__mapDeps([56,1,2,3,4,5,6,7,26,0,24,53,54,15,11,20,21,22,29,45,8])),zeniAccounts:()=>s((()=>import("./ZeniAccountRoutes-6mRRYpTk.js")),__vite__mapDeps([57,1,2,3,4,5,6,7,0,30,28,15,20,21,22,18,24,27,26,11,37,8]))},mt=["bills","transactions","settings","reimbursement","reports","chargeCards","people"],ae=o=>{"requestIdleCallback"in window?requestIdleCallback(o):setTimeout(o,100)},_t=l((()=>s((()=>import("./ReportsRoutes-l_EmwvDT.js")),__vite__mapDeps([47,1,2,3,4,5,6,7,0,24,14,15,20,21,22,8])))),Et=l((()=>s((()=>import("./AddressRoutes-BhYsxEkG.js")),__vite__mapDeps([58,1,2,3,26,4,5,6,7,0,8])))),ht=l((()=>s((()=>import("./PeopleRoutes-CdYNSEIx.js")),__vite__mapDeps([50,1,2,3,4,5,6,7,0,11,20,21,22,8])))),pt=l((()=>s((()=>import("./PandLWithForecastRoutes-DicvueW7.js")),__vite__mapDeps([59,1,2,3,4,5,6,7,0,24,11,14,15,20,21,22,8])))),xt=l((()=>s((()=>import("./CustomerOnboardingRoutes-Bi6IaUjL.js")),__vite__mapDeps([60,1,2,3,26,4,5,6,7,0,40,41,42,43,44,13,46,49,8])))),gt=l((()=>s((()=>import("./VendorsRoutes-CGm7W9n5.js")),__vite__mapDeps([56,1,2,3,4,5,6,7,26,0,24,53,54,15,11,20,21,22,29,45,8])))),Rt=l((()=>s((()=>import("./TransactionDetailRoutes-CmkMJrHR.js")),__vite__mapDeps([61,1,2,3,0,4,5,6,7,12,11,13,14,15,16,8])))),ve=l((()=>s((()=>import("./EntityDetailRoutes-DlmTg0_T.js")),__vite__mapDeps([62,1,2,3,4,5,6,7,13,10,11,12,14,15,16,17,8])))),It=l((()=>s((()=>import("./DashboardRoutes-BSeqoNjh.js")),__vite__mapDeps([9,1,2,3,4,5,6,7,10,11,12,13,14,15,16,17,0,18,19,20,21,22,23,24,8])))),Ce=l((()=>s((()=>import("./BillPayRoutes-GXto7JZ0.js")),__vite__mapDeps([25,1,2,3,4,5,6,7,26,0,27,11,14,28,15,20,21,22,29,24,30,18,31,32,33,8])))),jt=l((()=>s((()=>import("./SettingsRoutes-DQM99Ih9.js")),__vite__mapDeps([38,1,2,3,4,5,6,7,22,39,20,21,40,41,42,43,44,13,45,26,0,18,28,15,19,46,31,32,35,8])))),Tt=l((()=>s((()=>import("./InvoicingRoutes-5h1urdzf.js")),__vite__mapDeps([63,1,2,3,4,5,6,7,26,0,20,21,22,40,41,42,43,44,13,8])))),Oe=l((()=>s((()=>import("./ReimbursementRoutes-CBPwcIRq.js")),__vite__mapDeps([34,1,2,3,4,5,6,7,0,30,28,15,20,21,22,18,24,11,14,29,35,32,33,8])))),At=l((()=>s((()=>import("./ZeniAccountRoutes-6mRRYpTk.js")),__vite__mapDeps([57,1,2,3,4,5,6,7,0,30,28,15,20,21,22,18,24,27,26,11,37,8])))),bt=l((()=>s((()=>import("./TreasuryRoutes-ESg23CqF.js")),__vite__mapDeps([55,1,2,3,4,5,6,7,0,30,28,15,20,21,22,18,11,14,24,8])))),Dt=l((()=>s((()=>import("./TransactionListRoutes-77NZmmmz.js")),__vite__mapDeps([36,1,2,3,4,5,6,7,10,11,12,13,14,15,16,17,37,8])))),ft=l((()=>s((()=>import("./ChargeCardRoutes-BpmZJ-Uq.js")),__vite__mapDeps([48,1,2,3,4,5,6,7,11,20,21,22,30,28,15,0,18,14,49,26,8])))),yt=l((()=>s((()=>import("./NotificationRoutes-qrUzNjl-.js")),__vite__mapDeps([64,1,2,3,0,4,5,6,7,11,22,8])))),vt=l((()=>s((()=>import("./PerformanceRoutes-CD2tTMtz.js")),__vite__mapDeps([65,1,2,3,0,4,5,6,7,11,20,21,22,8])))),Ct=l((()=>s((()=>import("./ExpenseAutomationRoutes-2dTQAmqe.js")),__vite__mapDeps([51,1,2,3,0,4,5,6,7,11,12,13,14,15,16,52,17,10,53,54,45,29,8])))),Ot=l((()=>s((()=>import("./ActualMatchingMatchDetailScreen-2JNjReGt.js")),__vite__mapDeps([66,1,2,3,4,5,6,7,52,17,13,15,0,8])))),Ut=l((()=>s((()=>import("./RewardsRoutes-CKLzKNZh.js")),__vite__mapDeps([67,1,2,3,4,5,6,7,0,8])))),Pt=l((()=>s((()=>import("./TaskRoutes-Usowqz1T.js")),__vite__mapDeps([68,1,2,3,0,4,5,6,7,14,20,21,22,69,11,70,8])))),wt=l((()=>s((()=>import("./AiCfoScreen-ClfP5RRl.js")),__vite__mapDeps([71,1,2,3,4,5,6,7,23,54,15,70,8])))),Ue=l((()=>s((()=>import("./CardsAiCfoScreen-BIEaaWwa.js")),__vite__mapDeps([72,1,2,3,4,5,6,7,8])))),b=l((()=>s((()=>import("./NotFoundScreen-DoDcFwTV.js")),__vite__mapDeps([0,1,2,3,4,5,6,7,8])))),Ft=l((()=>s((()=>import("./TaskListScreen-CQZuEtBz.js").then((o=>o.f))),__vite__mapDeps([69,1,2,3,4,5,6,7,11,20,21,22,70,8])))),Lt=({isDashboardAccess:o,showZeniAccountRoute:D,isUserHasBillPayAccess:N,isUserHasReimbursementAccess:i,showTreasuryRoute:H,isTenantBankingOnly:O,isTenantCardsOnly:C,showChargeCardRoute:V})=>{if(O===!0){if(D)return e.jsx(u,{to:"checking"});if(H)return e.jsx(u,{to:"treasury"});if(V)return e.jsx(u,{to:"cards"})}return C===!0&&V?e.jsx(u,{to:"cards"}):o?e.jsx(u,{to:"dashboard"}):D?e.jsx(u,{to:"checking"}):H?e.jsx(u,{to:"treasury"}):V?e.jsx(u,{to:"cards"}):N?e.jsx(u,{to:"bills"}):i?e.jsx(u,{to:"reimbursements"}):e.jsx(u,{to:"dashboard"})},Pe=({tenantEmailDomain:o})=>e.jsx(u,{to:`/${o}/dashboard`}),$t=Object.freeze(Object.defineProperty({__proto__:null,default:function({setTenantEmailDomain:o}){const D=Gs(),N=qs(),{tenantEmailDomain:i}=Ws(),H=rt().mode,{setLoading:O,clearAllLoading:C,clearLoading:V}=Js(),f=y.getSignedInUserTenant(i)?.tenantId,j=y.getSignedInUser(),K=Es(j),z=Ys(),[L,we]=P.useState(!1),r=$((a=>hs(a))),{useFeatureGate:k}=Qs(),M=Xs(),J=et(),Fe=!!r.company?.companyZeniAccountInfo?.isZeniAccountEnabled,Le=r.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",{isFeatureEnabled:He}=k(S.isChargeCardFeatureEnabled),{isFeatureEnabled:oe}=k(S.isDebitCardFeatureEnabled),T=$((a=>a.tenantState.fetchState)),p=$((a=>a.tenantState.activeTenantFetchState.fetchState)),E=p==="Completed"||T==="Completed"?ps(oe,r):void 0,Q=p==="Completed"||T==="Completed"?xs(r):void 0,re=p==="Completed"||T==="Completed"?gs(r)&&!Rs(r):void 0,Ve=st(r,He,oe),{isCardsHidden:ke}=tt(r?.tenantId),Be=!Ve||!!ke,{isFeatureEnabled:Se}=k(S.isSettingsFeatureEnabled),{isFeatureEnabled:X}=k(S.isAiCfoFileUploadEnabled),{isFeatureEnabled:Ne}=k(S.isInvoicingFeatureEnabled??"is_invoicing_feature_enabled"),Me=Ne||ot==="DEV",Ze=r?.userRole!=null&&Is(r.userRole),G=$((a=>js(a)));if(i!=null){const a=y.getSignedInUserTenant(i);j!=null&&a!=null&&be(j,r,H)}const Z={tenantId:f,userId:j?.userId,sessionId:j?.zeniSessionId},ie=Ts(),h=nt(),$e=r.company==null||h?.loggedInUserRoleMap!=null&&pe(h.loggedInUserRole),ze=As(h?.loggedInUserRoleMap),ee=Te("/:tenantEmailDomain/onboarding/*")!==null,Ge=Te("/:tenantEmailDomain/month_end_close_checks/review/:selectedTab/:selectedPeriod/*"),se=Ge?.params.selectedPeriod,qe=$((a=>Z.tenantId!=null?bs(a,Z.tenantId):void 0));P.useEffect((()=>{O(F.TENANT_FETCHING),o(i)}),[i]),P.useEffect((()=>{if(se!=null&&f!=null){const a=se.split("-");if(a.length===2){const A=Ds(Number(a[0])),c=Number(a[1]),t=fs(`01-${A<10?`0${A}`:A}-${c}`,Ae.getLocalizedStrings().dateFormat.analytics.DDDashMMDashYYYY),d=ys();t.isAfter(d,"month")===!1?D(vs(f,{month:A,year:c})):N(`/${i}/month_end_close_checks/review`)}}}),[se,i,f]),P.useEffect((()=>{L||(we(!0),O(F.TENANT_FETCHING))}),[L,Z,ie,j,D,y]),P.useLayoutEffect((()=>{!Cs(ie,Z)&&y.isSignedIn()&&(O(F.TENANT_FETCHING),(function(a,A,c,t){if(ge(A?.userId,A?.zeniSessionId,a.tenantId),c($s(!0)),c(Re(a.tenantId)),a.tenantId!=null&&_.clearTenant(a.tenantId),a.tenantId!=null){const d=y.getSignedInUserTenantWithId(a.tenantId);t&&Ae.updateAppLocaleID(it(t)),d?.tenantEmailDomain!=null&&y.saveActiveTenantDomainForUser(d?.tenantEmailDomain)}a.userId!=null?ne.identify(a.userId,{tenant_id:a.tenantId}):ne.resetUserIdentity()})(Z,j,D,qe))}),[f]),P.useEffect((()=>{y.isSignedIn()&&(O(F.TENANT_FETCHING),(function(a,A,c,t,d,q,B){if(c==null&&t==null)return void console.warn("There is no current tenant selected!!");const W=t!=null&&d?.zeniSessionId!=null,cs=c==null||c.tenantId!==t,ms=c!=null&&c.excludedResources==null,_s=c!=null&&c.externalConnections==null;if(W&&cs){B(Re(t));const Y=y.getSignedInUserTenantWithId(t);Y?.tenantEmailDomain!=null&&y.saveActiveTenantDomainForUser(Y?.tenantEmailDomain),ge(d?.userId,d?.zeniSessionId,t),_.shouldFetchExcludedResources(t)&&(_.markExcludedResourcesFetchStarted(t),B(Ie(d.userId,t))),_.shouldFetchConnections(t)&&(_.markConnectionsFetchStarted(t),B(je(d.userId,t)))}else W&&ms&&_.shouldFetchExcludedResources(t)&&(_.markExcludedResourcesFetchStarted(t),B(Ie(d.userId,t))),W&&_s&&_.shouldFetchConnections(t)&&(_.markConnectionsFetchStarted(t),B(je(d.userId,t)));if(W){ne.identify(d.userId,{tenant_id:t});const Y=t==null||t!=null&&(A==="Completed"||A==="Error");a==="Completed"||A!=="Not-Started"&&A!=="Error"||t==null||!_.shouldFetchActiveTenant(t)||(_.markActiveTenantFetchStarted(t),q(F.TENANT_FETCHING),B(zs(d.userId,t,d.zeniSessionId))),Y&&(a==="Not-Started"||a==="Error")&&_.shouldFetchAllTenants()&&(_.markAllTenantsFetchStarted(),B(xe(d.userId,d.zeniSessionId)))}})(T,p,r,f,j,O,D))}),[f,p]),P.useEffect((()=>{y.isSignedIn()&&T==="Completed"&&G.tenantsBaseInOrder.length>0&&(V(F.TENANT_FETCHING),y.saveSignedInUserTenants(Os(G.tenantsBaseInOrder)),j!=null&&be(j,r,H,void 0,G.tenantsBaseInOrder))}),[G,T,r,j]),P.useEffect((()=>{p==="In-Progress"&&O(F.TENANT_FETCHING),p!=="Completed"&&p!=="Error"||(p==="Completed"&&f!=null?(C(),_.markActiveTenantFetchCompleted(f)):p==="Error"&&f!=null&&(_.markActiveTenantFetchFailed(f),V(F.TENANT_FETCHING),V(F.TENANT_SWITCHING))),T!=="Completed"&&T!=="Error"||(T==="Completed"?_.markAllTenantsFetchCompleted():T==="Error"&&_.markAllTenantsFetchFailed())}),[p,T,f,L]);const le=P.useRef(!1);P.useEffect((()=>{!le.current&&p==="Completed"&&L&&(le.current=!0,(function(a=mt,A=3e3){setTimeout((()=>{const c=t=>{if(t>=a.length)return;const d=a[t],q=ct[d];q!=null?q().then((()=>ae((()=>c(t+1))))).catch((()=>ae((()=>c(t+1))))):c(t+1)};ae((()=>c(0)))}),A)})())}),[p,L]);const U=r?.userRole!=null&&Us(r?.userRole),{isFeatureEnabled:We}=k(S.isReferralFeatureEnabled),{isFeatureEnabled:Ye}=k(S.isAccrualEnabled),Ke=r?.userRole!=null&&r.userRole.includes("charge_card_user"),Je=r?.userRole!=null&&r.userRole.includes("charge_card_admin"),w=r?.userRole!=null&&pe(r.userRole),ue=r?.company==null||r.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!U,de=!Be&&!U,Qe=Ps(h?.loggedInUserRoleMap),Xe=r.externalConnections?.accounting[0]?.isValid,es=r.externalConnections?.fetchState==="Completed",te=r.company?.companyOnboardingInfo.isOnboardingCompleted,ce=r?.company==null||r.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!U,me=ce&&ws(h?.loggedInUserRoleMap),_e=Fe&&!U,ss=Le&&!U,ts=ue&&Fs(h?.loggedInUserRoleMap),ns=de&&Ls(h?.loggedInUserRoleMap),as=_e&&Hs(h?.loggedInUserRoleMap),os=Vs(h?.loggedInUserRoleMap),rs=ks(h?.loggedInUserRoleMap),is=Bs(h?.loggedInUserRoleMap),ls=Ss(h?.loggedInUserRoleMap),us=Ns(h?.loggedInUserRoleMap),x=Ms(h?.loggedInUserRoleMap),g=Zs(h?.loggedInUserRoleMap),Ee=ue&&x,he=ce&&g,R=_e&&is,I=ss&&ls,m=de&&us,ds=r.excludedResources?.resources?.find((a=>a.resource==="/invites"))!=null||ze===!0||Qe===!0||os===!0||rs===!0;return y.isSignedIn()?f==null?T==="Completed"?e.jsx(u,{to:"/",replace:!0,state:{...z.state,message:"...",origin:z.pathname}}):(j!=null&&T!=="In-Progress"&&D(xe(j.userId,j.zeniSessionId)),null):p!=="In-Progress"&&p!=="Not-Started"||T==="Completed"?(te===!0||K&&!ee)&&es&&Xe!==!0&&E===!1&&Q===!1&&re===!1?(o(void 0),e.jsx(u,{to:"/connection/auth",replace:!0})):!L||re!==!0||te!==!0||ee||K?!L||te!==!1||ee||K?L&&r?.userRole&&E!=null&&Q!=null&&i!=null&&Object.keys(h.loggedInUserRoleMap).length>0?e.jsx(Ks,{children:e.jsxs(n,{element:e.jsx(at,{}),children:[e.jsx(n,{path:"/",element:e.jsx(Lt,{isDashboardAccess:w,showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:I,isTenantBankingOnly:E,isTenantCardsOnly:Q,showChargeCardRoute:m})}),e.jsx(n,{path:"dashboard/*",element:w?e.jsx(It,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:I,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"reports/*",element:w?e.jsx(_t,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:I,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"people/*",element:ds||w?e.jsx(ht,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:I,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"forecast/*",element:w?e.jsx(pt,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:I,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"onboarding/*",element:e.jsx(xt,{})}),e.jsx(n,{path:"transaction/*",element:w&&U===!1||Ke||Je?e.jsx(Rt,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:I,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"transactions/*",element:w&&U===!1?e.jsx(Dt,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:I,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"customer/*",element:w&&U===!1?e.jsx(ve,{entityType:"customer"}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,isTenantBankingOnly:E,showTreasuryRoute:I,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"vendor/*",element:w&&U===!1?e.jsx(ve,{entityType:"vendor"}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:I,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"tasks",element:e.jsx(Ft,{})}),e.jsx(n,{path:"tasks/*",element:e.jsx(Pt,{})}),e.jsx(n,{path:"address/*",element:ts||me||as||ns?e.jsx(Et,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:I,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"checking/*",element:R?e.jsx(At,{}):e.jsx(b,{})}),e.jsx(n,{path:"treasury/*",element:I?e.jsx(bt,{}):e.jsx(b,{})}),e.jsx(n,{path:"performance",element:J===!0?e.jsx(vt,{}):e.jsx(Pe,{tenantEmailDomain:i})}),e.jsx(n,{path:"month_end_close_checks/review/*",element:J===!0&&U===!1?e.jsx(Ct,{}):e.jsx(Pe,{tenantEmailDomain:i})}),e.jsx(n,{path:"expense-automation/actual-matching/:matchId",element:J===!0&&U===!1&&Ye===!0?e.jsx(Ot,{}):e.jsx(b,{})}),e.jsx(n,{path:"notifications/*",element:e.jsx(yt,{})}),e.jsx(n,{path:"vendors/*",element:$e?e.jsx(gt,{}):e.jsx(b,{})}),e.jsx(n,{path:"bill/*",element:Ee?e.jsx(Ce,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:I,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"bills/*",element:Ee?e.jsx(Ce,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:I,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"reimbursement/*",element:he?e.jsx(Oe,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:I,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"reimbursements/*",element:he?e.jsx(Oe,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:I,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"settings/*",element:Se?e.jsx(jt,{hasAdminLevelAccess:me}):e.jsx(b,{})}),e.jsx(n,{path:"invoicing/*",element:Me&&Ze?e.jsx(Tt,{}):e.jsx(b,{})}),e.jsx(n,{path:"cards/ask",element:m&&M?e.jsx(Ue,{isFileUploadEnabled:X}):e.jsx(b,{})}),e.jsx(n,{path:"cards/ask/:session_id",element:m&&M?e.jsx(Ue,{isFileUploadEnabled:X}):e.jsx(b,{})}),e.jsx(n,{path:"cards/*",element:m?e.jsx(ft,{}):e.jsx(b,{})}),e.jsx(n,{path:"rewards/*",element:We?e.jsx(Ut,{}):e.jsx(b,{})}),e.jsx(n,{path:"/ai-cfo",element:M?e.jsx(u,{to:"explore"}):e.jsx(b,{})}),e.jsx(n,{path:"/ai-cfo/",element:M?e.jsx(u,{to:"explore"}):e.jsx(b,{})}),e.jsx(n,{path:"/ai-cfo/:session_id",element:M?e.jsx(wt,{isFileUploadEnabled:X}):e.jsx(b,{})}),e.jsx(n,{path:"*",element:e.jsx(b,{})})]})}):null:(o(void 0),e.jsx(u,{to:`/${i}/onboarding`,replace:!0})):(o(void 0),e.jsx(u,{to:`/${i}/onboarding/thankyou`,replace:!0})):null:(console.warn("User logged out!!"),o(void 0),e.jsx(u,{to:"/signin/auth",replace:!0,state:{...z.state,message:"...",origin:z.pathname}}))}},Symbol.toStringTag,{value:"Module"}));export{v as F,$t as S};
@@ -1 +0,0 @@
1
- import{j as f}from"./liveblocks-BGbHkUWH.js";import{a as u,R as T,t as A}from"./sentry-DNB0zbMo.js";import{u as z,h as D,j as l,g as M,N as O,l as P}from"./core-B_JBGGj4.js";import{u as j,z as s,h as E,G as F,J as N,K as _,M as B,N as J,Q as R,R as v}from"./index-CxBxIC3M.js";import{fI as V,Un as $,UH as H,gl as K,gn as Q,UM as W,gY as Y,dk as G,UN as y,UO as q,UP as X,c0 as U}from"./zeni-epic-state-Xwy8a0yQ.js";import{u as Z}from"./mui-0YYVWRll.js";import{u as ee}from"./useDeviceId-Cl3uTEmh.js";import{f as te}from"./analyticsHelper-CqPAb4gE.js";import{t as ne}from"./getLocaleForTenant-BBK_Q8ap.js";import"./recharts-CdRAMBV_.js";import"./analytics-GU--E2wR.js";import"./plaid-Cq5IYWrp.js";import"./dnd-BNQSfW-e.js";import"./stripe-cKAAJElX.js";import"./lottie-CRTHlKd4.js";import"./lexical-BtX2HNMw.js";import"./pdf-Cqawvcms.js";import"./utils-Dgku26-_.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]="ef937aba-d4c6-41c8-8e46-e68d7fdf18ed",t._sentryDebugIdIdentifier="sentry-dbid-ef937aba-d4c6-41c8-8e46-e68d7fdf18ed")}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(X({authCode:n,oauthProvider:a,appType:"web",redirectUri:U(c),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(q(n,a)))},clearSignInError:()=>{t(y())}}}))(R),ae=T.memo(ie);function ve({setTenantEmailDomain:t}){const i=z(),d=D(),{clearAllLoading:g}=j(),n=s.getSignedInUser();u.useLayoutEffect((()=>{g()}),[g]);const a=ee(),c=l((e=>e.tenantState.magicLinkCodeVerifier)),{sendEmailMagicLinkFetchState:k,accountLocked:b,accountUnlockTime:h}=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=>V(e))),I=l((e=>$(e))),m=M(),w=Z().mode,C=m.state?.magicLinkExpired,x=m.state?.magicLinkAlreadyUsed;if(u.useEffect((()=>{k.fetchState==="Completed"&&c!=null&&(E.trackSignInLinkSent(),s.saveMagicLinkCodeVerifier(c))}),[k.fetchState,c]),u.useEffect((()=>{t(void 0)}),[]),u.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(H(I.tenantsInOrder),o.zeniSessionId),K(o.userId,o.zeniSessionId,r.tenantId),i(Q(r.tenantId)),s.saveActiveTenantDomainForUser(r.tenantEmailDomain),i(W("Completed")),F.updateAppLocaleID(ne(r)),te(o,r,w,void 0,I.tenantsInOrder),Y().then((()=>{const e=J();e!=null&&N(e)})),setTimeout((()=>{E.trackLogin(_.Event.loginSuccess,o.authProvider??"google",G(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 f.jsx(O,{to:e,state:{...m.state,origin:""}})}return f.jsxs(f.Fragment,{children:[f.jsx(ae,{magicLinkExpired:!!C,magicLinkAlreadyUsed:!!x,magicLinkExpiredEmail:s.getMagicLinkEmail()??void 0,location:m,navigate:d,deviceId:a??void 0,showEmailLogin:!0}),b===!0&&h!=null?f.jsx(B,{onClose:()=>i(y()),unlockDate:h}):null]})}export{ve as default};
@@ -1,9 +0,0 @@
1
- import{j as s}from"./liveblocks-BGbHkUWH.js";import{a as i}from"./sentry-DNB0zbMo.js";import{u as f,g as l,N as u}from"./core-B_JBGGj4.js";import{z as n,h as a,K as m,a5 as p}from"./index-CxBxIC3M.js";import{g$ as g,V1 as y}from"./zeni-epic-state-Xwy8a0yQ.js";import{n as b}from"./mui-0YYVWRll.js";import"./recharts-CdRAMBV_.js";import"./analytics-GU--E2wR.js";import"./plaid-Cq5IYWrp.js";import"./dnd-BNQSfW-e.js";import"./stripe-cKAAJElX.js";import"./lottie-CRTHlKd4.js";import"./lexical-BtX2HNMw.js";import"./pdf-Cqawvcms.js";import"./utils-Dgku26-_.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]="c6afe947-bdc8-4158-9b77-ec74d4645ca7",e._sentryDebugIdIdentifier="sentry-dbid-c6afe947-bdc8-4158-9b77-ec74d4645ca7")}catch{}})();function L(){const e=f(),t=l(),r=i.useRef(!1),c=n.isSignedIn(),o=t.state?.message==="logout"||c;return i.useEffect((()=>{if(o&&!r.current){r.current=!0;try{e(g()),y(),a.trackLogout(m.Event.logoutSuccess),a.resetUserIdentity(),n.clearAll()}catch(d){console.error("Error during sign out:",d)}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,9 +0,0 @@
1
- import{j as A}from"./liveblocks-BGbHkUWH.js";import{a as u}from"./sentry-DNB0zbMo.js";import{u as H,k as J,j as C,h as me,g as Se,i as ye,l as be}from"./core-B_JBGGj4.js";import{z as Z,W as De,A as I,aq as Ee,a6 as he,h as Ce,K as Ge,e3 as Ae,p as F,a2 as Ie}from"./index-CxBxIC3M.js";import{Qz as Re,Rn as ve,fI as Be,a2C as ne,gQ as q,a2D as re,a2y as Le,QR as X,a2E as Ke,R3 as Y,QB as we,Qd as Ue,Rz as ee,a2F as ae,gk as Pe,Rq as Fe,Rv as je,Ri as xe,Rg as te,Rw as $e,Rd as Oe,a2G as Ne,a2H as ze,a2I as Qe,a2J as Ze,a2K as R,dy as qe,dx as Me,a2L as Ve,Qy as We}from"./zeni-epic-state-Xwy8a0yQ.js";import{n as He}from"./mui-0YYVWRll.js";import{u as Je}from"./useAskAiCfoHostNavButtonProps-BFcd-xr_.js";import{M as Xe}from"./MobileAppDrawer-Db4uI8qx.js";import{u as Ye}from"./useTaskManagerPusherEvents-C22zG5XL.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]="beec3d1e-93fe-47a8-97ad-3fb3b9db1e38",e._sentryDebugIdIdentifier="sentry-dbid-beec3d1e-93fe-47a8-97ad-3fb3b9db1e38")}catch{}})();const _={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"},ea=(e,t)=>e==null||e===""?[]:t.map((n=>`private-encrypted-${e}.${n}`)),aa=(e,t)=>e==null||e===""?[]:t.map((n=>`private-encrypted-${e}.${n}`)),j=e=>Array.isArray(e)&&e.every((t=>typeof t=="string")),oe=e=>typeof e.task_id=="string"?e.task_id:typeof e.id=="string"?e.id:null,ga=e=>{if(e==null||typeof e!="object")return null;const t=e,n=oe(t);if(n==null)return null;const c={task_id:n};return typeof t.parent_task_id=="string"&&(c.parent_task_id=t.parent_task_id),typeof t.sync_token=="string"&&(c.sync_token=t.sync_token),typeof t.is_deleted=="boolean"&&(c.is_deleted=t.is_deleted),typeof t.is_private=="boolean"&&(c.is_private=t.is_private),c},ta=e=>{if(e==null||typeof e!="object")return null;const t=e;return j(t.task_ids)?{task_ids:t.task_ids}:null},_a=e=>{if(e==null||typeof e!="object")return null;const t=e;return typeof t.task_id!="string"?null:{task_id:t.task_id}},sa=He.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
- `,na=be((function(e,t){const n=ne(e,t.isTaskTemplatesEnabled),{taskGroupId:c}=t,p=c!=null&&c!==""?{...n,taskGroupsWithTasksList:n.taskGroupsWithTasksList.map((a=>({...a,tasks:a.tasks.filter((s=>s.taskGroupIds.includes(c)))}))).filter((a=>a.tasks.length>0))}:n,y=Le(e),f=Z.isZeniUser(),v=e.taskDetailState?.subTaskCreateStatus?.fetchState;return{taskListView:p,tagListView:y,localData:p.localData,isTaskTemplatesEnabled:t.isTaskTemplatesEnabled,isZeniUser:f,subTaskCreateStatus:v}}),(function(e,t){const{navigate:n,currentTenant:c,location:p,isTaskTemplatesEnabled:y}=t,{tenantEmailDomain:f}=c,{groupByKey:v}=t.uiState;return{onTaskManagementRowClick:a=>{const s=se(f,a),b=F(p.state?.pathnameStackToGoBack,p.pathname);n(s,{state:{pathnameStackToGoBack:b}})},onReloadTasks:()=>{e(q(!0,y))},onTabChange:a=>{e(Ze(a))},onParentTaskClick:a=>{const s=se(f,a);window.open(s,"_blank","noopener")},bulkUpdateTasks:(a,s)=>{e(te(a,null,s))},onNewTaskClick:()=>{if(t.localData.defaultTaskGroupId!=null){const a=Q(f,t.localData.defaultTaskGroupId),s=F(p.state?.pathnameStackToGoBack,p.pathname);n(a,{state:{pathnameStackToGoBack:s,message:"comingFromTaskListPage"}})}},onColumnSortConfigChanged:(a,s)=>{e(ae({uiState:{sortKey:a,sortOrder:s}}))},onFiltersChange:a=>{e(Qe({filters:a}))},onSearchTextChanged:a=>{e(ze({searchText:a}))},onReloadCards:()=>{e(q(!0,y))},onBackClick:()=>{if(p.state?.message==="triggerBackClick"){const a=Ie(p.state?.pathnameStackToGoBack),s=a.poppedPathname??"../";n(s,{state:{pathnameStackToGoBack:a.newStack}})}else n("../")},updateLocalData:a=>{e(Ne({localData:a}))},resetLocalData:()=>{e(re({taskGroupById:t.taskGroupState.taskGroupById}))},handleCreateGroup:a=>{e(Oe(t.localData.newTaskGroupName,a))},assignGroupToTasks:a=>{e(te(t.localData.selectedTaskIds,a,$e(t.uiState.groupByKey,a)))},onDeleteTaskGroup:a=>{e(xe(a))},onAddNewTaskToTaskGroup:a=>{if(t.localData.defaultTaskGroupId!=null){const s=oa(v,a);e(X({taskDetailLocalData:s}));const b=Q(f,t.uiState.groupByKey==="groupName"?a:t.localData.defaultTaskGroupId),x=F(p.state?.pathnameStackToGoBack,p.pathname);n(b,{state:{pathnameStackToGoBack:x,message:"comingFromTaskListPage"}})}},onDragNDrop:(a,s)=>{e(je(t.localData.selectedTaskIds.length>0?t.localData.selectedTaskIds:[a],s))},onTaskGroupRename:(a,s)=>{e(Fe(a,s))},onTimeSpentUpdate:(a,s)=>{e(ee({task:a,updates:s}))},onShowToast:a=>{e(Pe(a))},onGroupByFilterChange:a=>{e(ae({uiState:{groupByKey:a}}))},updateTask:(a,s)=>{e(ee({task:a,updates:s}))},onCreateTagClick:(a,s)=>{e(Ue(a,s))},onSubtaskCreation:(a,s)=>{e(we({...s,parentTaskId:a}))},handleGroupTemplateClick:a=>{e(Y(a,[]))},handleGroupTemplateTaskClick:(a,s)=>{e(Y(a,[s]))},handleNewTaskInitialization:a=>{if(e(X({taskDetailLocalData:{...Ke,name:a}})),t.localData.defaultTaskGroupId!=null){const s=Q(f,t.localData.defaultTaskGroupId),b=F(p.state?.pathnameStackToGoBack,p.pathname);n(s,{state:{pathnameStackToGoBack:b,message:"comingFromTaskListPage"}})}},onTaskGroupNameClick:a=>{n(`/${f}/tasks/group/${a}`)},onQuickResponsesClick:()=>{n(`/${f}/tasks/quick-responses`)}}}))(Ae);function ra(){const e=me(),t=H(),n=Se(),c=Z.getSignedInUser(),p=Z.isZeniUser(),y=J(),f=C((d=>Be(d))),{taskGroupId:v}=ye(),{useFeatureGate:a}=De(),{isFeatureEnabled:s}=a(I.isTaskTemplatesEnabled),{isFeatureEnabled:b}=a(I.isTaskCannedResponsesEnabled),{isFeatureEnabled:x}=a(I.isTaskCategorizationEnabled),{isFeatureEnabled:ie}=a(I.isTaskBulkResolutionEnabled),{isFeatureEnabled:le}=a(I.isTaskGroupAssigneesEnabled),{isFeatureEnabled:ue}=a(I.isTaskRecurringParentEnabled),[ce,de]=u.useState(!1),$=C((d=>ne(d,s))),O=C((d=>d.taskGroupState)),B=$.fetchState,{isAiCfoAccessEnabled:ke,onAskAiCfoClick:pe}=Je({mobileExploreReferrer:"Task Checklist"});Ee({isDataReady:B==="Completed"});const{markBoardFetchInFlight:M,requestTaskRefetch:N}=(function(d){const m=H(),r=J(),T=u.useRef(!1),o=u.useRef(!1),k=u.useRef(!1),g=u.useRef(),l=u.useRef(),S=u.useRef(!1),L=u.useRef(),K=u.useCallback((()=>{L.current=r.getState().taskListState.byTab.live,S.current=!0}),[r]),w=u.useCallback((()=>{K(),m(Re())}),[m,K]),D=u.useCallback((()=>{g.current=r.getState().taskGroupState.taskGroupById,k.current=!0,m(ve())}),[m,r]),E=u.useCallback((()=>{T.current=!1,l.current!=null&&(clearTimeout(l.current),l.current=void 0),w(),k.current||r.getState().taskGroupViewState.fetchState==="In-Progress"?o.current=!0:D()}),[w,D,r]),z=u.useCallback((()=>{S.current?(T.current=!0,l.current==null&&(l.current=setTimeout((()=>{l.current=void 0,T.current&&r.getState().taskListState.fetchState!=="In-Progress"&&(S.current=!1,E())}),6e3))):E()}),[E,r]);u.useEffect((()=>{l.current!=null&&(clearTimeout(l.current),l.current=void 0),T.current=!1,o.current=!1,k.current=!1}),[d]);const h=C((i=>i.taskListState.fetchState)),G=C((i=>i.taskGroupViewState.fetchState)),U=C((i=>i.taskListState.byTab.live)),P=C((i=>i.taskGroupState.taskGroupById));return u.useEffect((()=>{h!=="In-Progress"&&(!S.current||U!==L.current||h==="Error")&&(S.current=!1,T.current&&(h!=="Completed"?h==="Error"&&(T.current=!1,l.current!=null&&(clearTimeout(l.current),l.current=void 0)):E()))}),[h,U,E]),u.useEffect((()=>{G!=="In-Progress"&&(!k.current||P!==g.current||G==="Error")&&(k.current=!1,o.current&&(o.current=!1,G!=="Error"&&D()))}),[G,P,D]),u.useEffect((()=>()=>{l.current!=null&&(clearTimeout(l.current),l.current=void 0)}),[]),{markBoardFetchInFlight:K,requestTaskRefetch:z}})(f?.tenantId);u.useEffect((()=>{y.getState().taskListState.hasValidState()||M(),t(q(!1,s))}),[f?.tenantId,t,s,M,y]);const fe=u.useMemo((()=>{const d=[_.TASK_CREATED,_.TASK_UPDATED,_.TASKS_BULK_UPDATED,_.TASKS_BULK_DELETED],m=[_.TASK_CREATED,_.TASK_UPDATED,_.TASK_SNOOZE_RESURFACED,_.TASKS_BULK_UPDATED];return[...ea(f?.companyId,d),...aa(c?.userId,m)]}),[f?.companyId,c?.userId]);if(Ye({events:fe,onEvent:(d,m)=>{switch(d){case _.TASK_CREATED:case _.TASK_UPDATED:{const r=(T=>{if(T==null||typeof T!="object")return null;const o=T,k=oe(o);if(k==null||typeof o.tenant_id!="string"||typeof o.event_type!="string")return null;const g={task_id:k,tenant_id:o.tenant_id,event_type:o.event_type};return typeof o.is_private=="boolean"&&(g.is_private=o.is_private),j(o.assignees)&&(g.assignees=o.assignees),j(o.direct_assignees)&&(g.direct_assignees=o.direct_assignees),typeof o.created_by=="string"&&(g.created_by=o.created_by),j(o.task_group_ids)&&(g.task_group_ids=o.task_group_ids),typeof o.name=="string"&&(g.name=o.name),typeof o.parent_task_id=="string"&&(g.parent_task_id=o.parent_task_id),g})(m);if(r!=null){const T=y.getState(),o=r.task_id,k=o!=null?T.taskState.taskByID?.[o]:void 0,g=k!=null;if(!p)if(r.is_private===!0){if(!g)return}else{const l=c?.userId,S=new Set([...r.assignees??[],...r.direct_assignees??[]]);if(r.created_by!=null&&r.created_by!==""&&S.add(r.created_by),!(l!=null&&S.has(l))&&!g)return}if(d===_.TASK_UPDATED&&g&&k!=null&&Array.isArray(r.task_group_ids)){const l=new Set(Object.values(T.taskGroupState.taskGroupById??{}).filter((i=>i!=null&&!i.isDeleted)).map((i=>i.id))),S=(k.taskGroupIds??[]).filter((i=>l.has(i))),L=(r.task_group_ids??[]).filter((i=>l.has(i))),K=S.length===L.length&&S.every((i=>L.includes(i))),w=k.taskGroupIds??[],D=r.task_group_ids??[],E=w.length!==D.length||!w.every((i=>D.includes(i))),z=(i,Te)=>{const V=i??[],W=Te??[];if(V.length!==W.length)return!1;const ge=new Set(W);return V.every((_e=>ge.has(_e)))},h=r.name==null||r.name===k.name,G=r.is_private==null||r.is_private===k.isPrivate,U=r.assignees==null||z(r.assignees,k.assignees),P=r.direct_assignees==null;if(K&&E&&h&&G&&U&&P)return}}return void N()}case _.TASKS_BULK_DELETED:{const r=ta(m);return r==null?void 0:void r.task_ids.forEach((T=>t(We(T))))}case _.TASKS_BULK_UPDATED:case _.TASK_SNOOZE_RESURFACED:return void N()}},onSubscribed:()=>{N()}}),u.useEffect((()=>{B==="Completed"&&t(re({taskGroupById:O.taskGroupById}))}),[B,O.taskGroupById]),c==null)throw Error("Can't access task list page without signing in...");return A.jsxs(A.Fragment,{children:[B==="Completed"?A.jsx(he,{analytics:Ce,onLoad:d=>(m=>m.trackPageLoaded(Ge.Event.taskListPage))(d)}):null,A.jsxs(sa,{children:[A.jsx(Xe,{isAppContentDrawerOpen:ce,handleDrawerToggle:d=>{de(d)}}),A.jsx(na,{location:n,navigate:e,currentTenant:f,taskGroupId:v,taskGroupState:O,localData:$.localData,uiState:$.uiState,isTaskTemplatesEnabled:s,taskListFetchState:B,isTaskCategorizationEnabled:x,isTaskCannedResponsesEnabled:b,isTaskBulkResolutionEnabled:ie,isTaskGroupAssigneesEnabled:le,isTaskRecurringParentEnabled:ue,isAiCfoAccessEnabled:ke,onAskAiCfoClick:pe})]})]})}const se=(e,t)=>`/${e}/tasks/${encodeURIComponent(t)}`,Q=(e,t)=>`/${e}/tasks/new/${t}`,oa=(e,t)=>{if(e==="assignee"){const n=t.split(",");return{...R.taskDetailLocalData,assignee:n}}if(e==="priority"){const n=qe(t);return{...R.taskDetailLocalData,priority:n}}if(e==="status"){const n=Me(t);return{...R.taskDetailLocalData,status:n}}if(e==="tag"){const n=t.split(",");return{...R.taskDetailLocalData,tagIds:n}}if(e==="dueDate"){const n=Ve(t);return{...R.taskDetailLocalData,dueDate:n}}return{...R.taskDetailLocalData}},ma=Object.freeze(Object.defineProperty({__proto__:null,default:ra},Symbol.toStringTag,{value:"Module"}));export{_ as T,aa as a,ea as b,_a as c,ta as d,ra as e,ma as f,ga as t};
@@ -1,9 +0,0 @@
1
- import{j as i}from"./liveblocks-BGbHkUWH.js";import ge from"./NotFoundScreen-DoDcFwTV.js";import{a as k}from"./sentry-DNB0zbMo.js";import{h as te,u as ne,j as h,g as Ee,i as be,N as De,l as Ie,n as Ce,o as E}from"./core-B_JBGGj4.js";import{Qq as oe,Qt as Ge,Qn as ye,a2x as Re,fI as re,a2y as ie,QU as D,QH as b,Qk as _e,Rn as Ae,Rg as Ue,a2z as ce,gk as le,a2A as H,Qg as ve,Qd as Be,v2 as xe,uS as we,mD as je,QF as Pe,a2B as Fe,Rz as Ke,QB as Le,R2 as Qe,Q$ as $e,Qw as Ne,QY as Ze,QR as ze}from"./zeni-epic-state-Xwy8a0yQ.js";import{z as I,e1 as Oe,Z as Ve,W as qe,A as R,a2 as de,p as _,a6 as Me,h as J,K as We,e2 as Ye,R as X,ac as He}from"./index-CxBxIC3M.js";import{n as Je}from"./mui-0YYVWRll.js";import{u as Xe}from"./useInitialThreadRequest-SNtsdFx0.js";import{M as ea}from"./MobileAppDrawer-Db4uI8qx.js";import{T as m,t as aa,b as sa,a as ta,c as na,d as ee,e as oa}from"./TaskListScreen-CQZuEtBz.js";import{u as ra}from"./useTaskManagerPusherEvents-C22zG5XL.js";import"./recharts-CdRAMBV_.js";import"./analytics-GU--E2wR.js";import"./plaid-Cq5IYWrp.js";import"./dnd-BNQSfW-e.js";import"./stripe-cKAAJElX.js";import"./lottie-CRTHlKd4.js";import"./lexical-BtX2HNMw.js";import"./pdf-Cqawvcms.js";import"./utils-Dgku26-_.js";import"./InboxNotificationsProvider-DQWG4BJK.js";import"./useTaskManagerAccess-D4sSbSN5.js";import"./useAskAiCfoHostNavButtonProps-BFcd-xr_.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]="566a58e0-c83d-4caf-ad6a-329457b52d5f",e._sentryDebugIdIdentifier="sentry-dbid-566a58e0-c83d-4caf-ad6a-329457b52d5f")}catch{}})();function ia(){const e=te(),a=ne(),n=I.getSignedInUser(),{cannedResponses:c,fetchState:t,saveFetchState:l}=h((r=>r.cannedResponsesState)),d=k.useCallback((()=>{a(oe())}),[a]),S=k.useCallback(((r,C,G)=>{a(Ge({name:r,content:C,cannedResponseId:G}))}),[a]),s=k.useCallback((r=>{a(ye({cannedResponseId:r}))}),[a]);if(n==null)throw Error("Can't access quick responses page without signing in...");return i.jsx(Oe,{cannedResponses:c,isLoading:t==="In-Progress"||t==="Not-Started",isSaving:l==="In-Progress",onBackClick:()=>e(-1),onDelete:s,onFetch:d,onSave:S})}const Q=e=>e?.taskState?.taskByID,K=(e,a)=>{const n=Q(e);if(a!=null&&n!=null)return n[a]?.parentTaskId??void 0},ca=Re([K,(e,a)=>{const n=K(e,a),c=Q(e);if(n!=null&&c!=null)return c[n]?.name},(e,a)=>{const n=K(e,a),c=Q(e);return n!=null&&c!=null&&c[n]!=null}],((e,a,n)=>{if(e!=null&&n===!0)return{id:e,name:a??""}}));let ae,se=[];const la=Ie((function(e,a){const{location:n,taskGroupId:c}=a,t=ce(e,a.taskId),l=re(e),d=ca(e,a.taskId),S=t.taskGroupId??c,s=S!=null?H(e.taskGroupState,S):void 0,r=I.getSignedInUser(),C=l.tenantId,G={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:C??""},B=ie(e),{tenantEmailDomain:x}=l,A=t.recurringSourceTaskId,w=A!=null?`${X.appUrl}/${x}/tasks/${encodeURIComponent(A)}`:void 0;var g;return{taskDetailSelectorView:t,authParams:G,isZeniUser:I.isZeniUser(),userGroupList:((g=e.userGroupsState.userGroupByUserGroupId)!==ae&&(ae=g,se=Object.values(g)),se),isNewClicked:n.state?.message==="comingFromTaskListPage",filesEndPoint:He.fileMicroServiceBaseUrl,companyName:a.currentTenant.companyName,companyId:a.currentTenant.companyId,currentUrl:`${X.appUrl}${a.location.pathname}`,cannedResponses:e.cannedResponsesState.cannedResponses,isCannedResponsesLoading:e.cannedResponsesState.fetchState==="In-Progress",recurringSourceTaskUrl:w,tagListView:B,taskGroupName:S!=null&&s!=null&&s.isDefault===!1?s.name:void 0,taskGroupList:e.taskGroupViewState.taskGroupsIds.map((f=>H(e.taskGroupState,f))).filter((f=>f!=null&&!f.isDeleted)).map((f=>({id:f.id,name:f.name,isDefault:f.isDefault}))),subtasks:t.subtasks,parentTaskRef:d,subTaskCreateStatus:e.taskDetailState?.subTaskCreateStatus?.fetchState}}),(function(e,a){const{taskId:n,navigate:c,currentTenant:t,location:l,taskGroupId:d}=a,{tenantEmailDomain:S}=t;return{onSaveChangesToLocalStore:s=>{e(ze({taskDetailLocalData:s,taskId:n}))},onSaveDetailClick:s=>{e(Ze(n,s??d))},onArchiveTaskClick:()=>{a.taskId!=null&&e(Ne(a.taskId))},onSnoozeTask:(s,r)=>{e($e(s,r))},onUnsnoozeTask:s=>{e(Qe(s))},onCreateSubtask:(s,r)=>{e(Le({...r,parentTaskId:s}))},onSubtaskUpdate:(s,r)=>{e(Ke({task:s,updates:r}))},onShowToast:s=>{e(le(s))},onSubtaskRowClick:s=>{c(`/${S}/tasks/${s}`,{state:{pathnameStackToGoBack:_(l.state?.pathnameStackToGoBack,l.pathname)}})},onParentBreadcrumbClick:s=>{c(`/${S}/tasks/${s}`,{state:{pathnameStackToGoBack:_(l.state?.pathnameStackToGoBack,l.pathname)}})},onDismissClick:()=>{if(l.state?.message==="triggerBackClick"){const s=de(l.state?.pathnameStackToGoBack),r=s.poppedPathname??"../../dashboard";c(r,{state:{pathnameStackToGoBack:s.newStack}})}else{const s=v(S),r=_(l.state?.pathnameStackToGoBack,l.pathname);c(s,{state:{pathnameStackToGoBack:r}})}e(Fe({taskId:n}))},onDeleteTaskClick:()=>{e(Pe(n))},updateFilesEntity:s=>{e(je({files:s}))},onDeleteFile:s=>{e(we(s))},onEditFileName:(s,r)=>{e(xe(s,r.split(".")[0]))},onReloadTaskDetailPage:()=>{e(D(!1,n))},onCreateTagClick:s=>{e(Be(s,n))},onDeleteTagClick:s=>{e(ve(s,n))},onFetchCannedResponses:()=>{e(oe())},onManageTemplatesClick:()=>{c(`/${t.tenantEmailDomain}/tasks/quick-responses`)}}}))(Ye);function L(){const e=te(),a=ne(),n=Ee(),c=Ve(),{taskId:t,taskGroupId:l}=be(),d=h((o=>re(o))),S=Xe(d?.companyId),{useFeatureGate:s}=qe(),{isFeatureEnabled:r}=s(R.isTaskSnoozeEnabled),{isFeatureEnabled:C}=s(R.isTaskVisibilityEnabled),{isFeatureEnabled:G}=s(R.isTaskCannedResponsesEnabled),{isFeatureEnabled:B}=s(R.isTaskRecurringParentEnabled),{isFeatureEnabled:x}=s(R.isTaskGroupAssigneesEnabled),[A,w]=k.useState(!1),[g,f]=k.useState(!1),[$,ue]=k.useState(!1),[N,j]=k.useState(!1),y=k.useRef(!1),U=h((o=>o.taskListState.updateTasksFetchState.fetchState)),Z=h((o=>ie(o))),z=h((o=>o.taskGroupViewState.fetchState));k.useEffect((()=>{a(D(!1,t)),t!=null&&a(b(t))}),[a,t]);const O=I.getSignedInUser()?.userId,ke=I.isZeniUser(),pe=h((o=>t!=null?o.taskState.taskByID[t]?.syncToken:void 0)),V=()=>{d?.tenantEmailDomain!=null&&e(v(d.tenantEmailDomain))},q=()=>{a(le({messageSection:"delete_task",messageText:"success",type:"success"})),V()},me=k.useMemo((()=>{const o=[m.TASK_CREATED,m.TASK_UPDATED,m.TASKS_BULK_UPDATED,m.TASKS_BULK_DELETED],u=[...o,m.TASK_SNOOZE_RESURFACED];return[...sa(d?.companyId,o),...ta(O,u)]}),[d?.companyId,O]);ra({events:me,onSubscribed:()=>{t!=null&&(a(D(!0,t)),a(b(t)))},onEvent:(o,u)=>{if(t!=null)switch(o){case m.TASK_CREATED:case m.TASK_UPDATED:{const p=((F,fe,{isZeniUser:Te,storedSyncToken:he,taskId:Y})=>{if(F!==m.TASK_CREATED&&F!==m.TASK_UPDATED)return"none";const T=aa(fe);return T==null?"none":T.parent_task_id===Y?"refreshSubtasks":F!==m.TASK_UPDATED||T.task_id!==Y?"none":T.is_deleted===!0?"leaveDeleted":T.is_private!==!0||Te?T.sync_token!=null&&T.sync_token===he?"none":"refreshTask":"leaveNoAccess"})(o,u,{isZeniUser:ke,storedSyncToken:pe,taskId:t});p==="refreshTask"?(a(D(!0,t)),a(b(t))):p==="refreshSubtasks"?a(b(t)):p==="leaveDeleted"?q():p==="leaveNoAccess"&&V();break}case m.TASKS_BULK_UPDATED:{const p=ee(u);if(p==null)break;p.task_ids.includes(t)&&a(D(!0,t)),a(b(t));break}case m.TASKS_BULK_DELETED:{const p=ee(u);if(p==null)break;if(p.task_ids.includes(t)){q();break}a(b(t));break}case m.TASK_SNOOZE_RESURFACED:{na(u)?.task_id===t&&a(D(!0,t));break}}}}),k.useEffect((()=>{g||Z.fetchState==="Completed"||(f(!0),a(_e()))}),[g,a,Z.fetchState]),k.useEffect((()=>{$||z==="Completed"||(ue(!0),a(Ae()))}),[$,a,z]);const Se=k.useCallback((()=>{t!=null&&(y.current=!1,a(Ue([t],null,{isArchived:!1})),j(!0))}),[a,t]);k.useEffect((()=>{if(N)if(U!=="In-Progress"){if(y.current){if(U==="Error")return j(!1),void(y.current=!1);if(U==="Completed"){j(!1),y.current=!1;const{tenantEmailDomain:o}=d;if(n.state?.message==="triggerBackClick"){const u=de(n.state?.pathnameStackToGoBack);e(u.poppedPathname??"../../dashboard",{state:{pathnameStackToGoBack:u.newStack}})}else{const u=v(o);e(u,{state:{pathnameStackToGoBack:_(n.state?.pathnameStackToGoBack,n.pathname)}})}}}}else y.current=!0}),[N,U,d,n,e]);const M=h((o=>ce(o,t))),P=M.fetchState,W=I.getSignedInUser();if(W==null)throw Error("Can't access task detail page without signing in...");if(P==="Error"&&M.error?.code===400){const{tenantEmailDomain:o}=d,u=v(o),p=_(n.state?.pathnameStackToGoBack,n.pathname);return i.jsx(De,{to:u,state:{pathnameStackToGoBack:p}})}return i.jsxs(i.Fragment,{children:[P==="Completed"?i.jsx(Me,{analytics:J,onLoad:o=>(u=>u.trackPageLoaded(We.Event.taskDetailPage))(o)}):null,i.jsxs(da,{children:[i.jsx(ea,{isAppContentDrawerOpen:A,handleDrawerToggle:o=>{w(o)}}),i.jsx(la,{analytics:J,currentTenant:d,handleZeniLogoClick:()=>{c.toggle()},initialOpenThreadRequest:S,location:n,loggedInUser:W,navigate:e,taskGroupId:l,taskId:t,taskDetailFetchState:P,onUnarchiveTaskClick:Se,isTaskSnoozeEnabled:r,isTaskVisibilityEnabled:C,isTaskCannedResponsesEnabled:G,isTaskRecurringParentEnabled:B,isTaskGroupAssigneesEnabled:x})]})]})}const da=Je.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
- `,v=e=>`/${e}/tasks`;function wa(){return i.jsxs(Ce,{children:[i.jsx(E,{path:"/new",element:i.jsx(L,{})}),i.jsx(E,{path:"/new/:taskGroupId",element:i.jsx(L,{})}),i.jsx(E,{path:"/group/:taskGroupId",element:i.jsx(oa,{})}),i.jsx(E,{path:"/quick-responses",element:i.jsx(ia,{})}),i.jsx(E,{path:"/:taskId",element:i.jsx(L,{})}),i.jsx(E,{path:"*",element:i.jsx(ge,{})})]})}export{wa as default};
@@ -1 +0,0 @@
1
- import{j as t}from"./liveblocks-BGbHkUWH.js";import i from"./NotFoundScreen-DoDcFwTV.js";import{T as r}from"./TransactionDetailScreen-C_k5gdOu.js";import"./sentry-DNB0zbMo.js";import{n as a,o as e}from"./core-B_JBGGj4.js";import"./zeni-epic-state-Xwy8a0yQ.js";import"./recharts-CdRAMBV_.js";import"./index-CxBxIC3M.js";import"./mui-0YYVWRll.js";import"./analytics-GU--E2wR.js";import"./plaid-Cq5IYWrp.js";import"./dnd-BNQSfW-e.js";import"./stripe-cKAAJElX.js";import"./lottie-CRTHlKd4.js";import"./lexical-BtX2HNMw.js";import"./pdf-Cqawvcms.js";import"./utils-Dgku26-_.js";import"./useAskAiCfoHostNavButtonProps-BFcd-xr_.js";import"./decodeURIComponentSafe-Bfx7X0BB.js";import"./useInitialThreadRequest-SNtsdFx0.js";import"./routePaths-CK_7YRxn.js";import"./expenseAutomationHelper-ByKy4nt3.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,12 +0,0 @@
1
- import{j as o}from"./liveblocks-BGbHkUWH.js";import{a as f}from"./sentry-DNB0zbMo.js";import{t as u,u as h,j as b,N as y}from"./core-B_JBGGj4.js";import{U_ as I,gl as w,JX as j}from"./zeni-epic-state-Xwy8a0yQ.js";import{z as l,a5 as x,ad as S,ae as _}from"./index-CxBxIC3M.js";import{n as c}from"./mui-0YYVWRll.js";import"./recharts-CdRAMBV_.js";import"./analytics-GU--E2wR.js";import"./plaid-Cq5IYWrp.js";import"./dnd-BNQSfW-e.js";import"./stripe-cKAAJElX.js";import"./lottie-CRTHlKd4.js";import"./lexical-BtX2HNMw.js";import"./pdf-Cqawvcms.js";import"./utils-Dgku26-_.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]="4e444eca-7b9d-4b49-a9fb-c9d158cde1e6",e._sentryDebugIdIdentifier="sentry-dbid-4e444eca-7b9d-4b49-a9fb-c9d158cde1e6")}catch{}})();const A=()=>{const[e]=u(),t=e.get("code")??"",s=e.get("state")??"",g=e.get("profileId")??"",[n,p]=f.useState(!1),a=h(),i=b((m=>I(m))),r=l.getSignedInUser(),d=l.getSignedInUserTenantWithId(s);if(r==null||d==null)return o.jsx(y,{to:"/signin/auth",replace:!0});if(r==null)throw Error("Can't access this page without signing in...");return w(r.userId,r.zeniSessionId,d?.tenantId),f.useEffect((()=>{n||(p(!0),a(j(t,g,s)))}),[n,a]),i.fetchState==="Error"?o.jsx(D,{children:o.jsx(E,{children:i.error?.message??""})}):(i.fetchState==="Completed"&&window.close(),o.jsx(x,{fetchState:"In-Progress"}))},D=c.div`
2
- display: flex;
3
- width: 100%;
4
- height: 100vh;
5
- flex-direction: row;
6
- justify-content: center;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey5};
9
- `,E=c(_.LargeRegular)`
10
- display: flex;
11
- color: ${S.important};
12
- `;export{A as default};
@@ -1,9 +0,0 @@
1
- import{j as i}from"./liveblocks-BGbHkUWH.js";import{a as m}from"./sentry-DNB0zbMo.js";import{h as x,u as T,g as $,i as j,j as p}from"./core-B_JBGGj4.js";import{TI as s,TH as v,a05 as B,fI as C,a06 as z}from"./zeni-epic-state-Xwy8a0yQ.js";import{$ as D,ac as g,z as E,a5 as L,d3 as P,a2 as N}from"./index-CxBxIC3M.js";import{u as U,n as _}from"./mui-0YYVWRll.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]="7ee6dedc-8bd1-4b05-a7b5-4f3569cb5a46",e._sentryDebugIdIdentifier="sentry-dbid-7ee6dedc-8bd1-4b05-a7b5-4f3569cb5a46")}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 F(){const e=x(),n=T(),d=D(),l=$();let{accountId:a}=j(),u=`${g.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${a}`;a==null&&l.pathname.includes(`${s}/statements`)&&(a=s,u=`${g.bankingMicroServiceBaseUrl}/1.0/${s}`);const[f,b]=m.useState(!1),y=U();m.useEffect((()=>{f||(b(!0),n(v(a??"",!1)))}),[f,n]);const o=p((t=>B(t,a??""))),h=()=>{const t=N(l.state?.pathnameStackToGoBack),S=t.poppedPathname??"..";e(S,{state:{pathnameStackToGoBack:t.newStack}})},c=E.getSignedInUser(),r=p((t=>C(t))),I={userId:c?.userId??"",sessionId:c?.zeniSessionId??"",tenantId:r.tenantId??""},w=z(a??"")===!0?s:o.zeniAccountDetail?.accountLast4??"",k=r.company?.companyInfo.companyLegalName??r.companyName;if(c==null)throw Error("Can't access address page without signing in...");return o.fetchState!=="Completed"?i.jsx(L,{fetchState:"In-Progress",style:{backgroundColor:y.colors.grey5}}):i.jsx(G,{windowSize:d,children:i.jsx(P,{currentTenantCompanyName:k,statementListView:o,accountLast4:w,onBackClick:h,authParams:I,downloadEndPoint:u})})}export{F as Z};