@zeniai/web-app-ui 5.0.9-dev → 5.0.10-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/dist/assets/AddressRoutes-ClrG4czN.js +1 -0
  2. package/dist/assets/AddressScreen-UQTTt07o.js +9 -0
  3. package/dist/assets/AiCfoScreen-D0ZuamWZ.js +11 -0
  4. package/dist/assets/{BillPayApprovalRoutes-Dks0BYHS.js → BillPayApprovalRoutes-BLBcPx1B.js} +1 -1
  5. package/dist/assets/{BillPayRoutes-DyYN5q_F.js → BillPayRoutes-7EIRA000.js} +1 -1
  6. package/dist/assets/{BusinessVerificationPageScreen-DbNtBlq9.js → BusinessVerificationPageScreen-BCq9-s11.js} +2 -2
  7. package/dist/assets/{ChargeCardRoutes-DDzL8gpY.js → ChargeCardRoutes-CqL5qnQo.js} +9 -9
  8. package/dist/assets/CompanyPassportScreen-9atxEdFF.js +1 -0
  9. package/dist/assets/{ConnectionAuthScreen-BwirMqZq.js → ConnectionAuthScreen-BMnYn9YI.js} +1 -1
  10. package/dist/assets/CustomerOnboardingAuthScreen-Cg582Z8u.js +1 -0
  11. package/dist/assets/{CustomerOnboardingRoutes-5AwlPOlH.js → CustomerOnboardingRoutes-QRW1FZfI.js} +4 -4
  12. package/dist/assets/{DashboardRoutes-BPkQitQx.js → DashboardRoutes-TZIxTJeb.js} +1 -1
  13. package/dist/assets/{DefaultTenantHome-D_Gz32KF.js → DefaultTenantHome-Dhx02wWv.js} +1 -1
  14. package/dist/assets/{DomesticWireDetailScreen-Cet8eqve.js → DomesticWireDetailScreen-DjDGDTBz.js} +3 -3
  15. package/dist/assets/DrawerScreen-DG33YoSv.js +1 -0
  16. package/dist/assets/{EntityDetailRoutes-CVOtLlxx.js → EntityDetailRoutes-Dql5Od85.js} +1 -1
  17. package/dist/assets/{ExpenseAutomationRoutes-D-ShrGPq.js → ExpenseAutomationRoutes-CYo6nFC7.js} +5 -5
  18. package/dist/assets/FeaturePreviewScreen-DgltNyCi.js +1 -0
  19. package/dist/assets/{MagicLinkRoutes-CWz8FVdT.js → MagicLinkRoutes-BGM-sZzT.js} +6 -6
  20. package/dist/assets/MagicLinkSignInScreen-CRNknrGE.js +12 -0
  21. package/dist/assets/MobileAppDrawer-jslKljAh.js +1 -0
  22. package/dist/assets/NotFoundScreen-BOOShTFL.js +1 -0
  23. package/dist/assets/{NotificationRoutes-CW6WHRSZ.js → NotificationRoutes-DOHToAa0.js} +1 -1
  24. package/dist/assets/PandLWithForecastRoutes-DT93-O0O.js +1 -0
  25. package/dist/assets/{PeopleRoutes-B-S9keOO.js → PeopleRoutes-BdMtXhM0.js} +5 -5
  26. package/dist/assets/PerformanceRoutes-DA01xJZL.js +1 -0
  27. package/dist/assets/{Preview-DYcWSu_p.js → Preview-Ce-yKggj.js} +1 -1
  28. package/dist/assets/{QBOConnectionScreen-CoK1XecU.js → QBOConnectionScreen-DaAy9F4R.js} +1 -1
  29. package/dist/assets/ReferralListScreen-CT6Goua6.js +5 -0
  30. package/dist/assets/ReimbursementApprovalRoutes-C76OIpQC.js +1 -0
  31. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-BcC01mNe.js → ReimbursementApprovalRuleDetailScreen-CwI2DR20.js} +1 -1
  32. package/dist/assets/{ReimbursementRoutes-D3zYz8wy.js → ReimbursementRoutes-By4bhdmE.js} +1 -1
  33. package/dist/assets/{ReportsRoutes-CljixoPv.js → ReportsRoutes-CUGvAqPf.js} +1 -1
  34. package/dist/assets/RewardsRoutes-BYzVPFGi.js +1 -0
  35. package/dist/assets/ScreenRoutes-B6e-0n2O.js +2 -0
  36. package/dist/assets/{SettingsRoutes-otH5iG80.js → SettingsRoutes-AaKbs5Fo.js} +7 -7
  37. package/dist/assets/{SetupPagesScreen-BXNBjv3j.js → SetupPagesScreen-BCxvmwj2.js} +5 -5
  38. package/dist/assets/{SignInScreen-YVvbAXIF.js → SignInScreen-CxIts5DK.js} +1 -1
  39. package/dist/assets/SignOutScreen-27MvP0w6.js +9 -0
  40. package/dist/assets/{TaskListScreen-DBwhGgZH.js → TaskListScreen-BCHbQwTl.js} +2 -2
  41. package/dist/assets/TaskRoutes-Bf2oLDNl.js +9 -0
  42. package/dist/assets/TransactionDetailRoutes-BZGy1w7P.js +1 -0
  43. package/dist/assets/{TransactionDetailScreen-v_iRnLm6.js → TransactionDetailScreen-CfRj9Znj.js} +2 -2
  44. package/dist/assets/{TransactionListRoutes-DelEkqAU.js → TransactionListRoutes-D0AbWIhY.js} +1 -1
  45. package/dist/assets/{TreasuryRoutes-DkznvHgV.js → TreasuryRoutes-CHF8__07.js} +5 -5
  46. package/dist/assets/{VendorsRoutes-CmyeEzqo.js → VendorsRoutes-FdyKnvtG.js} +12 -12
  47. package/dist/assets/WiseConfirmationScreen-CoxEFEpW.js +12 -0
  48. package/dist/assets/{ZeniAccountRoutes-XGCXjBgv.js → ZeniAccountRoutes-C6tX7kSt.js} +12 -12
  49. package/dist/assets/ZeniAccountStatementScreen--z-dKl5C.js +9 -0
  50. package/dist/assets/{accountMappingHelper-BmWub9rZ.js → accountMappingHelper-DC8hLo25.js} +1 -1
  51. package/dist/assets/{analytics-Fp0p9zzF.js → analytics-D76TbnBG.js} +1 -1
  52. package/dist/assets/{analyticsHelper-B5vDoHXs.js → analyticsHelper-BvhlneFh.js} +1 -1
  53. package/dist/assets/{core-BxynaUfL.js → core--8kDo-LJ.js} +1 -1
  54. package/dist/assets/{decodeURIComponentSafe-C4CdHegQ.js → decodeURIComponentSafe-C7w4UFFF.js} +1 -1
  55. package/dist/assets/{dnd-DTmBUnLk.js → dnd-C7FILogn.js} +1 -1
  56. package/dist/assets/{empty-Cr-F5mUv.js → empty-3u2VxJVl.js} +1 -1
  57. package/dist/assets/{empty-BCapHP-3.js → empty-Be_BVx3n.js} +1 -1
  58. package/dist/assets/{emptyVideoElement-DFWZAgeK.js → emptyVideoElement-2PLigQOf.js} +1 -1
  59. package/dist/assets/{epic-BRaAmsNG.js → epic-RtUezbdm.js} +1 -1
  60. package/dist/assets/{getLocaleForTenant-BE1pHVDh.js → getLocaleForTenant-BNCERJ--.js} +1 -1
  61. package/dist/assets/{index-BoAQJ4XP.js → index-B9x4skgF.js} +1 -1
  62. package/dist/assets/{index-0JOtcwRL.js → index-BWzDqQ_Z.js} +1 -1
  63. package/dist/assets/{index-BXlN7b10.js → index-BZ4v8_jI.js} +2 -2
  64. package/dist/assets/{index-BJLEQ2__.js → index-D2BuA-Eq.js} +1 -1
  65. package/dist/assets/{index-CMN0VTWt.js → index-DO3Ev_EW.js} +8162 -8188
  66. package/dist/assets/{index-z5S8dnQk.js → index-DwK3E-F6.js} +1 -1
  67. package/dist/assets/{index-DxCK0Ves.js → index-GDJvj_1Q.js} +1 -1
  68. package/dist/assets/{lexical-BgdBwfNo.js → lexical-roIufkFt.js} +1 -1
  69. package/dist/assets/{liveblocks-BOEQeN-H.js → liveblocks-CGYIz1sf.js} +1 -1
  70. package/dist/assets/{lottie-CHRWrHfY.js → lottie-BwZdyUox.js} +1 -1
  71. package/dist/assets/{mui-D7DqO3YQ.js → mui-COKu087d.js} +1 -1
  72. package/dist/assets/{pathToGoBack-5wx41ypO.js → pathToGoBack-BAEmu1ZG.js} +1 -1
  73. package/dist/assets/{pdf-DEWT-QpZ.js → pdf-CBQkrKS2.js} +4 -4
  74. package/dist/assets/{pdf-lib-DOPLrm4O.js → pdf-lib-C9qLw4cO.js} +1 -1
  75. package/dist/assets/{plaid-lowWm0fK.js → plaid-DzMABTsR.js} +1 -1
  76. package/dist/assets/{pusher-dR6xTdBt.js → pusher-TSE9lTnh.js} +1 -1
  77. package/dist/assets/{react-DHCq2NZd.js → react-BwlBpQg6.js} +1 -1
  78. package/dist/assets/{react-CITxf4P4.js → react-CG2bsPU9.js} +1 -1
  79. package/dist/assets/{react-wqVrph3b.js → react-D77OVu9R.js} +1 -1
  80. package/dist/assets/{react-BGoqYhRz.js → react-NGMn_z4n.js} +1 -1
  81. package/dist/assets/{react-4OyDFrBO.js → react-Q-oC4eFq.js} +1 -1
  82. package/dist/assets/{react-B5NEquCq.js → react-wPUmTj8i.js} +1 -1
  83. package/dist/assets/{recharts-DFfCUpO3.js → recharts-jENt1xXk.js} +1 -1
  84. package/dist/assets/{routePaths-tLvi4-VJ.js → routePaths-BOWJQWRe.js} +1 -1
  85. package/dist/assets/{sentry-BcE91o8k.js → sentry-ClGNqxTu.js} +1 -1
  86. package/dist/assets/{url-Cr6I6Veb.js → url-BQx25DrG.js} +1 -1
  87. package/dist/assets/{url-CKFkQ8vX.js → url-BVVYwai7.js} +1 -1
  88. package/dist/assets/useAskAiCfoHostNavButtonProps-BECmuzX_.js +1 -0
  89. package/dist/assets/{useDeviceId-L-TdNFYo.js → useDeviceId-CESE7gTF.js} +1 -1
  90. package/dist/assets/{useFetchSuggestedQuestionsWhenReady-Bpx2l830.js → useFetchSuggestedQuestionsWhenReady-CapxOzLt.js} +1 -1
  91. package/dist/assets/{useInitialThreadRequest-guWm_-78.js → useInitialThreadRequest-B5pNRjBx.js} +1 -1
  92. package/dist/assets/{utils-BMw-tiy-.js → utils-C9gYeSwW.js} +1 -1
  93. package/dist/assets/{withTransactionSidePanel-lvb3ni_e.js → withTransactionSidePanel-IHJ8nGIi.js} +2 -2
  94. package/dist/assets/{zeni-epic-state-C9u4BvTm.js → zeni-epic-state-Cb3mJiT_.js} +3 -3
  95. package/dist/index.html +1 -1
  96. package/package.json +2 -2
  97. package/dist/assets/AddressRoutes-CL334upZ.js +0 -1
  98. package/dist/assets/AddressScreen-Dnqvk39f.js +0 -9
  99. package/dist/assets/AiCfoScreen-DZh-dzaC.js +0 -11
  100. package/dist/assets/CompanyPassportScreen-CtaJgM_D.js +0 -1
  101. package/dist/assets/CustomerOnboardingAuthScreen-DSGPVAAz.js +0 -1
  102. package/dist/assets/DrawerScreen-C5Pyoiiy.js +0 -1
  103. package/dist/assets/FeaturePreviewScreen-Esm95F3O.js +0 -1
  104. package/dist/assets/MagicLinkSignInScreen-Dy9ZVfaY.js +0 -12
  105. package/dist/assets/MobileAppDrawer-DVs4kZOY.js +0 -1
  106. package/dist/assets/NotFoundScreen-C3zjg2pa.js +0 -1
  107. package/dist/assets/PandLWithForecastRoutes-JcUTTxdM.js +0 -1
  108. package/dist/assets/PerformanceRoutes-CNYDT1z6.js +0 -1
  109. package/dist/assets/ReferralListScreen-H3ugCkel.js +0 -5
  110. package/dist/assets/ReimbursementApprovalRoutes-BU7MjFhQ.js +0 -1
  111. package/dist/assets/RewardsRoutes-dtSU2rm8.js +0 -1
  112. package/dist/assets/ScreenRoutes-98svW53l.js +0 -2
  113. package/dist/assets/SignOutScreen-CvxeJUO0.js +0 -9
  114. package/dist/assets/TaskRoutes-D21v8ON-.js +0 -9
  115. package/dist/assets/TransactionDetailRoutes-BwPxRt-X.js +0 -1
  116. package/dist/assets/WiseConfirmationScreen-wKVEK2GQ.js +0 -12
  117. package/dist/assets/ZeniAccountStatementScreen-BxqDty2m.js +0 -9
  118. package/dist/assets/useAskAiCfoHostNavButtonProps-CIv6_RmV.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-CMN0VTWt.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-BcE91o8k.js"><link rel="modulepreload" crossorigin href="/assets/core-BxynaUfL.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-C9u4BvTm.js"><link rel="modulepreload" crossorigin href="/assets/mui-D7DqO3YQ.js"><link rel="modulepreload" crossorigin href="/assets/analytics-Fp0p9zzF.js"><link rel="modulepreload" crossorigin href="/assets/utils-BMw-tiy-.js"><link rel="stylesheet" crossorigin href="/assets/index-D-vub4_t.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-DO3Ev_EW.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-ClGNqxTu.js"><link rel="modulepreload" crossorigin href="/assets/core--8kDo-LJ.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-Cb3mJiT_.js"><link rel="modulepreload" crossorigin href="/assets/mui-COKu087d.js"><link rel="modulepreload" crossorigin href="/assets/analytics-D76TbnBG.js"><link rel="modulepreload" crossorigin href="/assets/utils-C9gYeSwW.js"><link rel="stylesheet" crossorigin href="/assets/index-D-vub4_t.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.0.9-dev",
3
+ "version": "5.0.10-dev",
4
4
  "files": [
5
5
  "dist/**/*"
6
6
  ],
@@ -29,7 +29,7 @@
29
29
  "@stripe/stripe-js": "^4.4.0",
30
30
  "@zeniai/client-analytics": "2.0.2",
31
31
  "@zeniai/client-epic-state": "5.0.7",
32
- "@zeniai/web-components": "4.0.13",
32
+ "@zeniai/web-components": "4.0.14",
33
33
  "color": "3.1.3",
34
34
  "cross-fetch": "^4.0.0",
35
35
  "crypto-js": "4.2.0",
@@ -1 +0,0 @@
1
- import{j as e}from"./liveblocks-BOEQeN-H.js";import{A as d}from"./AddressScreen-Dnqvk39f.js";import i from"./NotFoundScreen-C3zjg2pa.js";import"./sentry-BcE91o8k.js";import{n as s,o as r}from"./core-BxynaUfL.js";import"./zeni-epic-state-C9u4BvTm.js";import"./recharts-DFfCUpO3.js";import"./index-CMN0VTWt.js";import"./mui-D7DqO3YQ.js";import"./analytics-Fp0p9zzF.js";import"./plaid-lowWm0fK.js";import"./dnd-DTmBUnLk.js";import"./stripe-DMRn4zHo.js";import"./lottie-CHRWrHfY.js";import"./lexical-BgdBwfNo.js";import"./pdf-DEWT-QpZ.js";import"./utils-BMw-tiy-.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]="4bd15e18-5b5f-4be1-8d33-8bd696c76da2",t._sentryDebugIdIdentifier="sentry-dbid-4bd15e18-5b5f-4be1-8d33-8bd696c76da2")}catch{}})();function _(){return e.jsxs(s,{children:[e.jsx(r,{path:"/edit/:addressType/:addressId",element:e.jsx(d,{})}),e.jsx(r,{path:"/new/:addressType",element:e.jsx(d,{})}),e.jsx(r,{path:"*",element:e.jsx(i,{})})]})}export{_ as default};
@@ -1,9 +0,0 @@
1
- import{j as d}from"./liveblocks-BOEQeN-H.js";import{a as h}from"./sentry-BcE91o8k.js";import{j as P,h as _,u as j,l as E,g as $,k as M}from"./core-BxynaUfL.js";import{J as B,h as D,z as L,S as K,w as N,x as R,c as I,f as m,N as z,k as b,q as F}from"./index-CMN0VTWt.js";import{IZ as C,gI as U,eM as q,I_ as G,b$ as O,I$ as V,k2 as H}from"./zeni-epic-state-C9u4BvTm.js";import{n as J}from"./mui-D7DqO3YQ.js";import Z from"./NotFoundScreen-C3zjg2pa.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]="86a740f4-f3ff-4988-9b1e-64c849c298b5",e._sentryDebugIdIdentifier="sentry-dbid-86a740f4-f3ff-4988-9b1e-64c849c298b5")}catch{}})();const Q=J.div`
2
- display: flex;
3
- height: 100vh;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- `,W=M(function(e,t){const{addressId:o,isSubPage:i,addressType:c}=t,l=q(e),a=t.roleMap!=null&&G(t.roleMap),r=i||c==="user_address"||O(l?.userRole??[])||a?void 0:"readonly";if(o==null){const s=V(c,e);return{addressToEdit:s?.addressToCreate,loadingState:s?.status?.fetchState,googleAPIKey:b.googleMapsAPIKey,isDisabled:r,isSubPage:i,dontShowSaveConfirmationPopup:t.dontShowSaveConfirmation}}const n=C(e,o);return{addressToEdit:n.address,loadingState:n.fetchState,googleAPIKey:b.googleMapsAPIKey,isDisabled:r}},function(e,t){const{navigate:o,location:i,addressType:c}=t,l=a=>{if(a==="express-pay")o("../express-pay/add-wire");else{const r=i.state,n=F(r?.pathnameStackToGoBack);let s=n.poppedPathname??k();const u=r?.queryParams;if(u){const f=new URLSearchParams(u).toString();f&&(s=`${s}?${f}`)}o(s,{state:{pathnameStackToGoBack:n.newStack}})}};return{onSubmitHandler:a=>{const r=X(a);e(H({addressType:c,addressToCreate:r})),I?.trackSaveAddressClicked(m.Event.saveAddressClicked,{street:a.street.addressString,city:a.city,state:a.state,country:a.country.selectedOption??"",postalCode:a.postalCode,suite:a.suite,secondaryInfo:a.secondaryInfo}),l(t.bankAccountContext)},onCancel:()=>{l(t.bankAccountContext)}}})(z);function de({isSubPage:e,hideAddressSubTitle:t=!1,hideAddressBackButton:o=!1,dontShowSaveConfirmation:i,accountContext:c,addressTypeParam:l}){const a=P(),r=_(),n=j(),{addressId:s,addressType:u}=E(),f=B(),w=D(),x=L.getSignedInUser(),[g,v]=h.useState(s==null),p=$(S=>s!=null?C(S,s).fetchState:"Not-Started"),A=K();if(x==null)throw Error("Can't access address page without signing in...");const T=S=>S.trackPageLoaded(s!=null?m.Event.editAddress:m.Event.addAddress),y=l??u;return h.useEffect(()=>{g||s==null||(v(!0),r(U(s,!1)))},[g,s,r]),y==null||y.match(/(user_address|company_address|company_registered_address|vendor_address|officer_([1-9]|10)_address)$/g)?!g&&p==="Not-Started"||g&&p==="In-Progress"?d.jsx(N,{fetchState:p,style:{backgroundColor:w.colors.grey5}}):s!=null&&p==="Error"?(a(`${k(1)}/new`,{replace:!0}),d.jsx(d.Fragment,{})):d.jsxs(d.Fragment,{children:[d.jsx(R,{analytics:I,onLoad:T}),d.jsx(Q,{windowSize:f,children:d.jsx(W,{location:n,navigate:a,isSubPage:e===!0,hideAddressBackButton:o,hideAddressSubTitle:t,addressId:s,addressType:y,dontShowSaveConfirmation:i,bankAccountContext:c,roleMap:A?.loggedInUserRoleMap})})]}):d.jsx(Z,{})}const k=(e=2)=>{let t="../";for(let o=0;o<e;o++)t=`${t}../`;return t},X=e=>({street:[e.street.addressString,e.suite,e.secondaryInfo],city:e.city,state:e.state,country:e.country.selectedOption??"",countryCode:e.countryCode,postalCode:e.postalCode,latitude:e.street.addressValue?.locationLat,longitude:e.street.addressValue?.locationLng});export{de as A,X as t};
@@ -1,11 +0,0 @@
1
- import{j as S}from"./liveblocks-BOEQeN-H.js";import{a as i}from"./sentry-BcE91o8k.js";import{h as ee,j as te,u as se,g as B,l as ae,k as ne}from"./core-BxynaUfL.js";import{O as oe,cB as ie,z as re,J as le,cC as ce,cD as ue,cE as $,x as de,c as _,T as R,cF as me,cG as fe,f as pe,a1 as he,cH as Se,U as ge,r as Ce,q as we,cI as Ie,cJ as ke}from"./index-CMN0VTWt.js";import{fE as be,f3 as q,eM as Ee,hm as Te,Pv as ye,eL as Pe,hw as _e,hs as xe,fu as ve,fo as Qe,fh as Ae,fl as j,fp as Oe,fq as Fe,fr as De,fs as Le,ft as Me}from"./zeni-epic-state-C9u4BvTm.js";import{D as Ue,n as x,P as Be,S as Re}from"./mui-D7DqO3YQ.js";import{p as je}from"./pathToGoBack-5wx41ypO.js";import"./recharts-DFfCUpO3.js";import"./analytics-Fp0p9zzF.js";import"./plaid-lowWm0fK.js";import"./dnd-DTmBUnLk.js";import"./stripe-DMRn4zHo.js";import"./lottie-CHRWrHfY.js";import"./lexical-BgdBwfNo.js";import"./pdf-DEWT-QpZ.js";import"./utils-BMw-tiy-.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new a.Error().stack;r&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[r]="5cba84d2-e568-4335-9887-40e9307502e9",a._sentryDebugIdIdentifier="sentry-dbid-5cba84d2-e568-4335-9887-40e9307502e9")}catch{}})();const N="chat-response-generated",$e=ne(function(a,r){const n=q(a),d=r.isSubmitting;return{showSampleQuestions:r.sessionFromUrl==="explore"&&n.uiState.currentChatSessionId==null,aiCfoView:n,isSubmitting:d,isNewChatSession:r.sessionFromUrl==="new_chat"||r.sessionFromUrl==="explore",isFullView:!0,tableDownloadEndPoint:`${ge}/tableDownload`,emailLinkQuestion:r.emailLinkQuestion,autoSubmitEmailLinkQuestion:r.autoSubmitEmailLinkQuestion,onEmailLinkQuestionProcessed:r.onEmailLinkQuestionProcessed,isFileUploadEnabled:r.isFileUploadEnabled}},function(a,r){const{location:n,currentTenant:d,userId:c,navigate:f,currentChatSessionId:p,allSessionsWithOrderedQuestionAnswers:g}=r;return{onEventReceived:(e,o)=>{if(e===N&&typeof o.text=="string"&&typeof o.metadata=="object"){const t=o,m=Fe(t.type),u=t.metadata.chat_session_id??null,{currentChatSession:s,currentQuestionAnswer:C,currentQuestionAnswerSummary:h}=$(g,u);m!=="answer"?_.trackAICFOChatResponseGenerated(m,C?.question.questionText??"",t.text,u,ke(h,s),t.metadata.message_id??null):_.trackAICFOChatAnswerGenerated(t.text,C?.question.questionText??"",(t.follow_up_questions?.length??0)>0,!!t.assumptions,!!t.insights,t.visualization!=null,De(t.visualization?.type??"")??null,u,t.summarized_title,t.metadata.message_id??null),a(Le({chatSessionId:t.metadata.chat_session_id,responseType:m,fetchState:{fetchState:"Completed",error:void 0}})),a(Me({chatSessionId:t.metadata.chat_session_id,answerPayload:t,userId:c}))}},onSubmit:(e,o,t,m)=>{e&&Ie(a,e,o,p,g,c,m,t)},updateCurrentInput:e=>{a(j(e))},onStopSubmit:()=>{},onUpdateScrollYOffset:e=>{a(Oe(e))},onSelectSampleQuestion:()=>{},onBackClick:()=>{f(-1)},onCloseClick:()=>{const e=we(n.state?.pathnameStackToGoBack),o=e.poppedPathname??je(1);f(o,{state:{...n.state,pathnameStackToGoBack:e.newStack}}),a(j(""))},togglePageView:()=>{f(`/${d.tenantEmailDomain}/dashboard`,{state:{...n.state,message:"open_ai_cfo_drawer"}})},onCopy:()=>{},onThumbsUp:()=>{},onThumbsDown:()=>{},onTogglePageView:()=>{f(-1)},onNewChatClick:()=>{p!=null&&a(Ae());const e=Ce(n.state?.pathnameStackToGoBack,n.pathname);f(`/${d.tenantEmailDomain}/ai-cfo/new_chat`,{state:{pathnameStackToGoBack:e.slice(0,-1),referrer:"Sidebar"}})},onToggleCotCollapsed:(e,o)=>{a(Qe({questionAnswerId:e,isCollapsed:o}))},onMenuClick:r.onMenuClick}})(he(Se)),rt=({isFileUploadEnabled:a})=>{const{setIsAiCfoOpen:r}=oe(),n=ee(),d=te(),c=se(),[f,p]=i.useState(!1);i.useEffect(()=>{n(be())},[n]);const{customPageTitle:g}=ie(),e=B(l=>q(l)),o=re.getSignedInUser(),{session_id:t}=ae(),m=le(),u=B(l=>Ee(l)),s=e.uiState.currentChatSessionId,C=ce({currentTenant:u,currentChatSessionId:s,aiCfoView:e}),h=c.state,w=h?.aiCfoInitialQuestion,v=!!h?.aiCfoShouldSubmit,[G,b]=i.useState(null),[V,E]=i.useState(!1),Q=i.useRef(!1);i.useEffect(()=>{Q.current||w==null||w===""||(b(w),E(v),Q.current=!0)},[w,v]);const H=i.useCallback(()=>{b(null),E(!1)},[]),A=i.useMemo(()=>new URLSearchParams(c.search),[c.search]),O=A.get("ref")??h?.aiCfoRef,T=A.get("emailRefId")??h?.aiCfoEmailRefId,F=i.useRef(!1);i.useEffect(()=>{F.current||O!=="month-end-email"||T==null||s!=null||o==null||(n(Te("controller",o.userId,T,"MONTH_END_EMAIL")),F.current=!0)},[O,T,s,n,o]);const I=e.uiState.lastContextMessage;i.useEffect(()=>{I!=null&&I!==""&&s!=null&&(b(I),E(!0),n(ye()))},[I,s,n]);const W=u.masterTOSInfo,k=W?.isMasterTOSAccepted??!1,{visitedSessions:D}=ue(s),y=e.fetchState,P=e.uiState.chatSessionsNextPageToken.hasMore||!e.uiState.chatSessionsFirstPageFetched,L=s!=null?e.fetchChatSessionHistoryByChatSessionId?.[s]?.fetchState??"Not-Started":"Not-Started",M=s==null||(e.uiState.chatHistoryNextPageToken[s]?.hasMore??!0),U=e.allSessionsWithOrderedQuestionAnswers,{currentSessionQuestionAnswers:z}=$(U,s),J=z.length===0;i.useEffect(()=>{k||d("../dashboard",{state:{...c.state,message:"open_ai_cfo_drawer"}})},[k]),i.useEffect(()=>{s!=null&&t!==s&&d(`../ai-cfo/${s}`,{state:{...c.state}})},[s,t]),i.useEffect(()=>{t!=null&&s==null&&t!=="new_chat"&&t!=="explore"&&n(Pe({sessionId:t,agentId:"controller"}))},[]);const X=i.useMemo(()=>({events:D.map(l=>`private-chat-${l}.${N}`),eventCallback:(l,K,Z)=>Z.onEventReceived(l,K)}),[D]);if(i.useEffect(()=>{y!=="In-Progress"&&P&&n(_e())},[y,P,n]),i.useEffect(()=>{s!=null&&L!=="In-Progress"&&M&&o!=null&&y==="Completed"&&!P&&n(xe(s,o.userId))},[L,M,s,o,n]),o==null||t==null)throw Error("Can't access AI Controller page without signing in...");const Y=s!=null&&e.responseStateByChatSessionId?.[s]?.answer?.fetchState==="In-Progress";return S.jsxs(Ne,{children:[S.jsx(de,{analytics:_,onLoad:l=>l.trackPageLoaded(pe.Event.aiCFOPage)}),R(m)&&C.drawerElement,S.jsx($e,{...X,currentChatSessionId:s,allSessionsWithOrderedQuestionAnswers:U,openOnboardingPage:()=>p(!0),userId:o.userId,setIsAiCfoOpen:r,navigate:d,sessionFromUrl:t,location:c,isSubmitting:Y,isEmptyChatWithSession:J,customPageTitle:g,currentTenant:u,emailLinkQuestion:G??void 0,autoSubmitEmailLinkQuestion:V,onEmailLinkQuestionProcessed:H,onMenuClick:R(m)?C.open:void 0,isFileUploadEnabled:a}),S.jsx(Ue,{anchor:"right",open:f,transitionDuration:250,PaperProps:{component:Ge,style:{width:`${me}vw`}},slotProps:{backdrop:{style:{backgroundColor:"transparent",cursor:"pointer"}}},onClose:()=>p(!1),children:S.jsx(qe,{onClick:l=>l.stopPropagation(),children:S.jsx(fe,{isTOSAccepted:k,acceptMasterTOSState:e.masterTOSAcceptanceState,customPageTitle:g,onCloseClick:()=>p(!1),onCompleteClick:()=>{k||u.userRoleId==null||n(ve(u.userRoleId)),p(!1)}})})})]})},qe=x(Re)`
2
- display: flex;
3
- min-height: 100%;
4
- flex-direction: column;
5
- `,Ne=x.div`
6
- height: 100vh;
7
- width: 100%;
8
- `,Ge=x(Be)`
9
- box-shadow: ${({theme:a})=>a.colors.elevation2};
10
- color: ${({theme:a})=>a.colors.grey4};
11
- `;export{rt as default};
@@ -1 +0,0 @@
1
- import{j as m}from"./liveblocks-BOEQeN-H.js";import{a as g}from"./sentry-BcE91o8k.js";import{j as w,h as x,u as k,l as T,g as O,k as E}from"./core-BxynaUfL.js";import{z as N,aZ as F,x as P,c as L,f as V,aa as b,a_ as j,ao as A,ap as B,r as U}from"./index-CMN0VTWt.js";import{eM as D,fC as M,rt as _,fx as R,b$ as z,Lt as G,bm as Y,pB as Z,pp as $,jW as q,lq as S,Lu as H,bB as W,cr as C,ly as J,lB as K}from"./zeni-epic-state-C9u4BvTm.js";import"./mui-D7DqO3YQ.js";import{c as Q}from"./routePaths-tLvi4-VJ.js";import{M as X}from"./MobileAppDrawer-DVs4kZOY.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new a.Error().stack;n&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[n]="9743363a-8987-413d-8b4d-ae11bc2e93db",a._sentryDebugIdIdentifier="sentry-dbid-9743363a-8987-413d-8b4d-ae11bc2e93db")}catch{}})();const ee=E(function(a){const n=R(a),i=N.getSignedInUser(),l=D(a),c=l.tenantId,p={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:c??""},f=z(l?.userRole??[])&&n.localData.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",e=G(a.companyConfigState),t=a.countryListState?.byCountryListCode?.nationalityCountryList?.countries??[];return{isCompanyVerified:n.companyView?.company?.company?.companyBillPayInfo?.companyVerificationStatus?.code==="verified",companyPassportView:n,allIndustries:e.companyIndustries??[],allNationalityCountries:t,isDisabled:f,authParams:p,filesEndPoint:`${A.fileMicroServiceBaseUrl}`,isZeniUser:Y(i)}},function(a,n){const{companyId:i,currentTenant:l,navigate:c,location:p}=n,{tenantEmailDomain:f}=l;return{onScheduleClick:e=>{let t=e.href;t.includes("http")||(t="https://".concat(t)),window.open(t,"_blank")},onSaveAll:()=>{a(K())},onAddressClick:e=>{const t=Q(f,e),o=U(p.state?.pathnameStackToGoBack,p.pathname);c(t,{state:{pathnameStackToGoBack:o}})},onResetClick:()=>{a(J({companyId:i}))},onBackClick:()=>{c("../")},onCompanyDetailsChanged:e=>{const{companyInfo:t,incInfo:o,taxDetails:r,zeniFinanceTeam:d}=e,{website:u}=t,{meetingLink:y}=d,{incDate:s}=o,{taxesFiledYears:h}=r,v={companyInfo:{...t,website:u!=""&&u!=null?C(u):void 0,meetingLink:y!=""&&y!=null?C(y):void 0,industry:t.industry.selectedOption,companyIndustryType:t.companyIndustryType?.selectedOption??void 0,companySubIndustry:t.subIndustry?.selectedOption??void 0,businessModel:t.businessModel.selectedOption??"",companySourceOfFunds:t.companySourceOfFunds?.selectedOption,companySourceOfFundsDescription:t.companySourceOfFundsDescription??void 0,countriesOfOperations:t.countriesOfOperations?.selectedOptions?.map(I=>I.length===2?I:B(I))??[],transactionVolume:t.transactionVolume?.selectedOption??void 0,transactionVolumeDescription:t.transactionVolumeDescription??void 0,regulatedStatus:t.regulatedStatus??void 0,regulatedStatusDescription:t.regulatedStatusDescription??void 0,usNexus:t.usNexus??void 0,usNexusTypes:t.usNexusTypes?.selectedOptions??[],purposeOfAccount:t.purposeOfAccount?.selectedOption??void 0,purposeOfAccountDescription:t.purposeOfAccountDescription??void 0},incInfo:{typeOfInc:o.typeOfInc.selectedOption??"",stateOfInc:o.stateOfInc.selectedOption??"",incDate:s!=null?W(s?.toString()):s,fileId:o.fileIds[0]},taxDetails:{taxIdOrEIN:r.taxIdOrEIN,sicCode:r.sicCode,naicsCode:r.naicsCode,dunsNumber:r.dunsNumber,taxesFiledYears:h.selectedOptions.map(I=>parseInt(I)),fileId:r.fileIds[0]}};a(S({companyDetails:v}))},onPrimaryContactDetailsUpdated:e=>{a(S({primaryContact:{userId:e.userId,email:e.email.trim(),firstName:e.name.firstName,lastName:e.name.lastName}}))},onNewCompanyOfficerAdded:e=>{a(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:void 0}]}))},onNewCompanyOfficerRemoved:e=>{a(H(e))},onCompanyOfficerUpdated:e=>{a(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:e.userId}]}))},updateFilesEntity:e=>{a(q({files:e}))},onDeleteFile:e=>{a($(e))},onEditFileName:(e,t)=>{a(Z(e,t.split(".")[0]))}}})(j);function de(){const a=w(),n=x(),i=k(),{tenantEmailDomain:l}=T(),[c,p]=g.useState(!1),[f,e]=g.useState(!1),t=O(s=>s.companyViewState.passportView.fetchState),o=O(s=>s.companyConfigState.fetchState),r=O(s=>D(s)),d=r.companyId??N.getSignedInUserTenant(l)?.companyId;if(N.getSignedInUser()==null)throw Error("Can't access company details page without signing in...");g.useEffect(()=>{c||t!=="Not-Started"||d==null||(p(!0),n(M(d)))},[c,t,d,n]),g.useEffect(()=>{o==="Not-Started"&&n(_())},[o,n]);const u=s=>{e(s)},y=t==="Not-Started"||t==="In-Progress"||o==="Not-Started"||o==="In-Progress";return d!=null&&t==="Error"?m.jsx(F,{onGoHome:()=>a("../",{replace:!0}),onReload:()=>window.location.reload()}):m.jsxs(m.Fragment,{children:[m.jsx(P,{analytics:L,onLoad:s=>s.trackPageLoaded(V.Event.companyPassport,b(i)?"Settings":"Company Passport")}),b(i)?m.jsx(X,{isAppContentDrawerOpen:f,handleDrawerToggle:u}):null,m.jsx(ee,{companyId:d,navigate:a,location:i,isLoading:y,currentTenant:r,isSettings:b(i),onClickMenuIcon:()=>{u(!0)}})]})}export{de as C};
@@ -1 +0,0 @@
1
- import{j as d}from"./liveblocks-BOEQeN-H.js";import{z as n}from"./index-CMN0VTWt.js";import{g as p}from"./QBOConnectionScreen-CoK1XecU.js";import"./sentry-BcE91o8k.js";import{u as a,N as i}from"./core-BxynaUfL.js";import"./zeni-epic-state-C9u4BvTm.js";import"./recharts-DFfCUpO3.js";import"./mui-D7DqO3YQ.js";import"./analytics-Fp0p9zzF.js";import"./plaid-lowWm0fK.js";import"./dnd-DTmBUnLk.js";import"./stripe-DMRn4zHo.js";import"./lottie-CHRWrHfY.js";import"./lexical-BgdBwfNo.js";import"./pdf-DEWT-QpZ.js";import"./utils-BMw-tiy-.js";import"./empty-BCapHP-3.js";import"./pdf-lib-DOPLrm4O.js";import"./index-0JOtcwRL.js";import"./url-Cr6I6Veb.js";import"./index-DxCK0Ves.js";import"./decodeURIComponentSafe-C4CdHegQ.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]="b68d0d57-e81d-4cfb-97e6-d4dd5e5b7ebd",t._sentryDebugIdIdentifier="sentry-dbid-b68d0d57-e81d-4cfb-97e6-d4dd5e5b7ebd")}catch{}})();const U=()=>{const t=a(),{code:o,realmId:r,state:e}=p(t.search),s=n.getSignedInUser()?.userId??"";if(f(o,r,e,s)===!0){const m=`../../${e}/onboarding?code=${o}&realmId=${r}&state=auth_flow`;return d.jsx(i,{to:m})}return d.jsx(i,{to:"../../"})},f=(t,o,r,e)=>t!=""&&o!=""&&r!=""&&e!=null&&e!="";export{U as default,f as hasValidParams};
@@ -1 +0,0 @@
1
- import{j as i}from"./liveblocks-BOEQeN-H.js";import{J as l,G as f,h as c}from"./index-CMN0VTWt.js";import{D as p}from"./mui-D7DqO3YQ.js";import"./sentry-BcE91o8k.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="e1d2d06e-3e55-4e69-a663-4d50f5b3d062",e._sentryDebugIdIdentifier="sentry-dbid-e1d2d06e-3e55-4e69-a663-4d50f5b3d062")}catch{}})();const u={drawerLeftMargin:new f(0,0,240)};function h(e){const{isOpen:r,drawerLeftMargin:o,children:t,onClose:d}=e,n=l(),s=o?.valuePx(n)??u.drawerLeftMargin.valuePx(n),a=c();return i.jsx(p,{anchor:"right",open:r,PaperProps:{style:{width:`calc(100% - ${s})`}},slotProps:{backdrop:{style:{backgroundColor:a.colors.black,opacity:.8,cursor:"pointer"}}},onClose:d,children:t})}export{h as D};
@@ -1 +0,0 @@
1
- import{j as s}from"./liveblocks-BOEQeN-H.js";import{a as r}from"./sentry-BcE91o8k.js";import{X as i,Y as l,Z as p,q as m}from"./index-CMN0VTWt.js";import"./mui-D7DqO3YQ.js";import f from"./NotFoundScreen-C3zjg2pa.js";import{j as u,u as b}from"./core-BxynaUfL.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]="111e36ba-d76e-4111-8ecd-45c7ec984b77",e._sentryDebugIdIdentifier="sentry-dbid-111e36ba-d76e-4111-8ecd-45c7ec984b77")}catch{}})();const D=()=>{const e=u(),t=b(),a=r.useCallback(()=>{window.open("https://www.zeni.ai/demo/request","_blank")},[]),d=r.useCallback(()=>{(()=>{const n=m(t.state?.pathnameStackToGoBack),c=n.poppedPathname??k();e(c,{state:{pathnameStackToGoBack:n.newStack}})})()},[]),o=i(t.pathname);return o!=null?s.jsx(l,{menuItem:p(o),onDemoClick:a,onGoBack:d}):s.jsx(f,{})},k=(e=2)=>{let t="../";for(let a=0;a<e;a++)t=`${t}../`;return t};export{D as F};
@@ -1,12 +0,0 @@
1
- import{j as f}from"./liveblocks-BOEQeN-H.js";import{a as u}from"./sentry-BcE91o8k.js";import{h as U,u as _,j as w,q as M,g as l,N as T}from"./core-BxynaUfL.js";import{z as r,h as P,D as V,e as A,c as N,f as q,C as R,m as W,g as $}from"./index-CMN0VTWt.js";import{eM as B,Ie as G,Ip as H,If as J,eN as K,fi as Q,Il as X,fF as Y,cR as Z,Iq as ee,Ir as te}from"./zeni-epic-state-C9u4BvTm.js";import{n as ne}from"./mui-D7DqO3YQ.js";import{u as se}from"./useDeviceId-L-TdNFYo.js";import{f as ae}from"./analyticsHelper-B5vDoHXs.js";import{t as ie}from"./getLocaleForTenant-BE1pHVDh.js";import"./recharts-DFfCUpO3.js";import"./analytics-Fp0p9zzF.js";import"./plaid-lowWm0fK.js";import"./dnd-DTmBUnLk.js";import"./stripe-DMRn4zHo.js";import"./lottie-CHRWrHfY.js";import"./lexical-BgdBwfNo.js";import"./pdf-DEWT-QpZ.js";import"./utils-BMw-tiy-.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]="5e3178c1-433c-483f-9a05-216ee2fdf7a1",t._sentryDebugIdIdentifier="sentry-dbid-5e3178c1-433c-483f-9a05-216ee2fdf7a1")}catch{}})();const C=(t,a)=>t!=null&&t.length>0&&a==="magic_links";function Ce(){const t=U(),a=_(),m=w(),[y]=M(),n=y.get("token"),p=y.get("stytch_token_type"),g=r.getMagicLinkCodeVerifier(),i=se(),{otpChallenge:d,twoFAPhoneNumber:D,magicLinkEmail:c,verifyDeviceFetchState:x,resendVerifyDeviceOTPFetchState:z}=l(e=>e.tenantState),I=l(e=>e.tenantState.fetchState),b=l(e=>e.tenantState.activeTenantFetchState.fetchState),S=l(e=>e.tenantState.signInState),h=l(e=>e.tenantState.magicLinkSignInFetchState.fetchState),s=l(e=>e.tenantState.loggedInUser),o=l(e=>B(e)),k=l(e=>G(e)),E=r.getSignedInUser(),v=P().mode;u.useEffect(()=>{s?.zeniSessionId==null&&n!=null&&C(n,p)&&i!=null&&g!=null&&(r.saveMagicLinkTriggered(n),t(H(n,i,g)))},[n,p,t,i,g,s?.zeniSessionId]),u.useEffect(()=>{S!=="In-Progress"||I!=="Completed"&&b!=="Completed"||s?.zeniSessionId==null||o==null||(n!=null&&r.saveLastUsedMagicLinkToken(n),r.saveSignedInUserWithSession(s,s.zeniSessionId),r.saveSignedInUserTenants(J(k.tenantsInOrder),s.zeniSessionId),K(s.userId,s.zeniSessionId,o.tenantId),t(Q(o.tenantId)),r.saveActiveTenantDomainForUser(o.tenantEmailDomain),t(X("Completed")),V.updateAppLocaleID(ie(o)),ae(s,o,v,void 0,k.tenantsInOrder),Y().then(()=>{const e=$();e!=null&&A(e)}),setTimeout(()=>{N.trackLogin(q.Event.loginSuccess,"email",Z(o.productSettings))},2e3))},[S,I,b,s,o,k,v,a.state,t]);const F=u.useCallback(()=>{m("/signin/auth")},[m]),j=u.useCallback(()=>{i!=null&&d!=null&&c!=null&&t(ee(i,c,d))},[i,d,t,c]),O=u.useCallback(e=>{i!=null&&n!=null&&c!=null&&d!=null&&t(te(e,i,c,d))},[i,n,t,c,d]);if(h==="Completed"&&d!=null)return f.jsx(R,{phoneNumber:D,verifyOtpFetchState:x.fetchState,resendVerifyDeviceOTPFetchState:z,onResendOtp:j,onVerifyOtp:O,onCancelVerifyDevice:F});if(S==="In-Progress"&&I==="Completed"&&s?.zeniSessionId!=null&&o!=null||E!=null){const e=a.state?.origin??"/";return f.jsx(T,{to:e,state:{...a.state,origin:""}})}if(!C(n,p)||g==null||h==="Error"){const e=a.state?.origin??"/",L=n!=null&&r.getLastUsedMagicLinkToken()===n;return f.jsx(T,{to:e,state:{...a.state,origin:"",magicLinkAlreadyUsed:L,magicLinkExpired:!L&&(r.isMagicLinkTriggered(n??"")||h==="Error"&&s?.zeniSessionId==null)}})}return f.jsx(oe,{"data-testid":"smooth-loader",children:f.jsx(W,{size:"ExtraLarge",start:!0})})}const oe=ne.div`
2
- position: fixed;
3
- top: 0;
4
- left: 0;
5
- right: 0;
6
- bottom: 0;
7
- display: flex;
8
- align-items: center;
9
- justify-content: center;
10
- z-index: 9999;
11
- background-color: ${t=>t.theme.colors.background};
12
- `;export{Ce as default};
@@ -1 +0,0 @@
1
- import{j as U}from"./liveblocks-BOEQeN-H.js";import{a as c}from"./sentry-BcE91o8k.js";import{h as pe,g as a,l as We,u as Xe,j as qe,i as R}from"./core-BxynaUfL.js";import{eM as he,eU as Je,eV as Se,eO as Ke,bm as Qe,f3 as ea,eW as aa,eX as ta,eZ as na,f1 as sa,fb as oa,f2 as g,f5 as ia,f6 as ue,f9 as ra,f7 as da,f8 as la,fa as ca,cF as ua,fd as fa,cL as ma,bu as ba,eL as pa,fi as ha,fj as Sa,fh as ga}from"./zeni-epic-state-C9u4BvTm.js";import{a1 as Ea,a2 as ka,v as Ca,i as ya,z as k,a3 as Ia,u as Ta,s as r,a4 as wa,a5 as Fa,S as Aa,a as _a,a6 as Da,X as va,a7 as $a,a8 as Ba,a9 as fe,aa as me,L as Ma,ab as Pa,ac as be,c as x,r as F,ad as N,ae as Ra}from"./index-CMN0VTWt.js";import{D as xa}from"./mui-D7DqO3YQ.js";(function(){try{var f=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new f.Error().stack;d&&(f._sentryDebugIds=f._sentryDebugIds||{},f._sentryDebugIds[d]="112e465e-6fc0-4954-a068-c2ff5d6d6261",f._sentryDebugIdIdentifier="sentry-dbid-112e465e-6fc0-4954-a068-c2ff5d6d6261")}catch{}})();const Na=Ea(({isAppContentDrawerOpen:f,handleDrawerToggle:d})=>{const{tenantEmailDomain:t}=We(),n=Xe(),C=Ca(),o=qe(),V=Ke(),m=pe(),{useFeatureGate:i}=ya(),G=k.getSignedInUser(),A=Qe(G),s=a(e=>he(e)),L=a(e=>ea(e)),j=L.uiState.currentChatSessionId,y=Ia(),{setLoading:ge}=Ta(),[_,O]=c.useState(void 0),D=R("/:tenantEmailDomain/dashboard")!==null,z=R("/:tenantEmailDomain/reports")!==null,I=R("/:tenantEmailDomain/onboarding/*")!==null,{isFeatureEnabled:Y}=i(r.isDepositAccountsFeatureEnabled),{isFeatureEnabled:Ee}=i(r.isChargeCardFeatureEnabled),{isFeatureEnabled:Z}=i(r.isDebitCardFeatureEnabled),ke=wa(s,Ee,Z),{isFeatureEnabled:Ce}=i(r.isSettingsFeatureEnabled),H=a(e=>aa(e)),{isFeatureEnabled:T}=i(r.isReferralFeatureEnabled),v=a(e=>ta(e));c.useEffect(()=>{y&&T&&!I&&v.fetchState==="Not-Started"&&m(na(!0))},[y,T,v.fetchState,I]);const h=k.getSignedInUser(),$=a(e=>e.tenantState),ye=a(e=>$.fetchState==="Completed"?sa(e):[]),E=a(e=>e.expenseAutomationViewState.selectedPeriodByTenantId),{isFeatureEnabled:Ie}=i(r.isApAgingFeatureEnabled),{isFeatureEnabled:Te}=i(r.isArAgingFeatureEnabled),{isFeatureEnabled:W}=i(r.isExpenseAutomationEnabled),{isFeatureEnabled:X}=i(r.isExpenseAutomationEnabledV2),q=X||W&&A,{isFeatureEnabled:we}=i(r.isDashboardSidebarHalloweenAnimationEnabled),{isFeatureEnabled:Fe}=i(r.isDashboardSidebarThanksGivingAnimationEnabled),{isFeatureEnabled:Ae}=i(r.isDashboardSidebarChristmasAnimationEnabled),{isFeatureEnabled:_e}=i(r.isDashboardSidebarNewYearAnimationEnabled),{isFeatureEnabled:De}=i(r.isTreasuryEnabled),{isFeatureEnabled:ve}=i(r.isTaskManagerCustomerUserAccessEnabled),$e=A||!A&&ve,Be=s.company!=null&&oa(s.company),w=De&&Be,Me=a(e=>g(e).totalUnreadCount),Pe=a(e=>g(e).reducedFetchCountState),J=a(e=>g(e).notificationDetailsByTab.tasks.uiState.unreadCount),K=a(e=>g(e).notificationDetailsByTab.comments.uiState.unreadCount),Re=a(e=>g(e).notificationDetailsByTab.tasks.fetchCountState),B=a(e=>g(e).notificationDetailsByTab.comments.fetchCountState),{inboxNotifications:Q,isLoading:ee,isFetchingMore:ae,hasFetchedAll:te,fetchMore:xe}=Fa();c.useEffect(()=>{const e=setTimeout(()=>xe?.(),0);return()=>clearTimeout(e)}),c.useEffect(()=>{if(ee===!1&&ae===!1&&te===!0)if(s?.companyId!=null&&Q!=null){const e=`dashboard_${s.companyId}`;O(Q.filter(u=>u.roomId===e&&u.readAt==null).length)}else O(0)},[ee,ae,te]),c.useEffect(()=>{y&&!I&&Re.fetchState==="Not-Started"&&V.tenantId!=null&&m(ia("task_manager","dashboard"))},[y,V.tenantId]),c.useEffect(()=>{I||B.fetchState!=="Not-Started"||m(ue({fetchCountState:{fetchState:"In-Progress",error:void 0}},"comments"))},[]),c.useEffect(()=>{_!=null&&B.fetchState==="In-Progress"&&(m(ue({fetchCountState:{fetchState:"Completed",error:void 0}},"comments")),m(Se({unreadCount:_},"comments")))},[_,B.fetchState]);const Ne={fetchStatus:Pe,count:Me},ne=t!=null?k.getSignedInUserTenant(t):null,se=a(e=>ne?.tenantId!=null?ra(e,ne.tenantId):void 0),S=[];Ie===!1&&S.push("accounts_payable_aging"),Te===!1&&S.push("accounts_receivable_aging"),Y===!1&&S.push("zeni_accounts_promo_card"),T===!1&&S.push("rewards_card"),q===!1&&S.push("expense_automation_card");const Ue=Aa(),oe=a(e=>da(e,S,h,X,W,w).fetchState),ie=a(e=>la(e).fetchState),Ve=D&&(oe==="Completed"||oe==="Error")||z&&(ie==="Completed"||ie==="Error")||!D&&!z?void 0:"disabled",Ge=c.useMemo(()=>ca(s.userRole),[s.userRole]),Le=ua(Ge),je=s?.rewardsLastViewedTime==null,Oe=h?.userEmail!=null&&H.fetchState==="Completed"&&fa(H.notificationSettings,h.userEmail,Z,s),re=_a(),ze=re&&Da(n),de=ma(Ue?.loggedInUserRoleMap),le=s.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,M=c.useCallback(()=>w&&de&&!k.getTreasuryPopupSeen(t??"")&&le===!1&&va(n.pathname)!=="treasury",[w,de,le,n.pathname,t]),[Ye,ce]=c.useState(M);c.useEffect(()=>{ce(M())},[M]);const Ze=a(e=>e.treasurySetupViewState.treasuryFundsDetails).fundsDetails,He=$a(Ze);return U.jsx(xa,{container:window.document.body,variant:"temporary",open:f,onClose:()=>d(!1),PaperProps:{sx:{width:240,zIndex:8,borderRight:"none",backgroundImage:"none"}},ModalProps:{keepMounted:!0},children:U.jsx(Ba,{signedInUser:G,currentTenantId:$.currentTenantId??"",tenants:$.fetchState==="Completed"?ye:se!=null?[se]:[],currentTenant:s,isTenantDropdownDisabled:Ve,isSettings:me(n),isSettingsFeatureEnabled:Ce,isVendorsTabVisible:Le,isZeniAccountEnabled:Y,isChargeCardEnabled:ke,isTreasuryEnabled:w,treasuryYieldPercentage:He,isTreasuryPopupVisible:Ye,isNotificationsTabVisible:Oe,notificationCountDetails:Ne,isExpenseAutomationEnabledForUser:q&&ba(s.userRole)===!1,selectedMenu:fe(n),rewardsConfiguration:{isRewardsTabVisible:T,isRewardsAnimated:je,rewardsPlan:v.rewardsPlan},isAiCfoAccessEnabled:re,onNotificationIconClick:()=>{d(!1);let e=J===0&&K>0?"notifications/comments":"notifications/tasks";me(n)&&(e=J===0&&K>0?"../../notifications/comments":"../../notifications/tasks");const u=F(n.state?.pathnameStackToGoBack,n.pathname);o(e,{state:{pathnameStackToGoBack:u}})},handleCockpitClick:()=>{window.open("/cockpit")},handleLogOutClick:()=>{d(!1);const e=F(n.state?.pathnameStackToGoBack,n.pathname);o("/signout",{replace:!0,state:{pathnameStackToGoBack:e,message:"logout"}})},handleMenuChange:e=>{if(d(!1),e.type==="ai_cfo"){const p=F(n.state?.pathnameStackToGoBack,n.pathname);return x.trackAICFOChatScreenStateChanged("viewed","left_menu",j??null,null),void o(`/${t}/ai-cfo/explore`,{state:{pathnameStackToGoBack:p,referrer:"Sidebar"}})}const u=F(n.state?.pathnameStackToGoBack,n.pathname),l=e.type,b=N(l)&&l!=="command_center";if(N(e.type)&&E[s.tenantId]!=null&&x.trackMonthEndCloseClicked(E[s.tenantId].month,E[s.tenantId].year,"Sidebar"),b&&E[s.tenantId]!=null){const p=E[s.tenantId];return void o(`/${t}/month_end_close_checks/review/${e.type}/${p.month}-${p.year}`,{state:{pathnameStackToGoBack:u,referrer:"Sidebar"}})}const P=Ra(e.type);be(e.type)?(j!=null&&m(ga()),o(`/${t}/ai-cfo/${e.type}`,{state:{pathnameStackToGoBack:u.slice(0,-1),referrer:"Sidebar"}})):o(`/${t}/${P}`,{state:{pathnameStackToGoBack:u,referrer:"Sidebar"}})},handleMyProfileClick:()=>{d(!1),o(`/${t}/settings/my_profile`)},handleReferralsClick:()=>{d(!1),o(`/${t}/rewards`)},handleBackClick:()=>{o(`/${t}/dashboard`)},handleTenantSelect:e=>{ge(Ma.TENANT_SWITCHING),d(!1);const u=e.tenantEmailDomain,l=fe(n);let b=`/${encodeURIComponent(u)}/`;const P=N(l);l==="home"?b+="dashboard":l==="users_and_roles"?b+="people":Pa(l)?b+="settings/my_profile":be(l)?b+=`ai-cfo/${l}`:b+=l==="task_checklist"?"tasks":P?"month_end_close_checks/review":encodeURIComponent(l),o(b,{replace:!0}),h!=null&&(m(ha(e.tenantId)),m(Sa(h.userId,e.tenantId,h.zeniSessionId)));const p=e;x.trackCompanySwitch(p.companyId,p.companyName,p.userRole)},handlePopupClose:()=>{k.saveTreasuryPopupSeen(t??"",!0),ce(!1)},onZeniLogoClick:()=>{C.toggle()},isAiCfo:ze,aiCfoView:L,isOnDashboard:D,updateCurrentChatSessionId:e=>{m(pa({sessionId:e,agentId:"controller"})),o(`/${t}/ai-cfo/${e}`)},halloweenAnimationEnabled:we,isTaskManagerAccessEnabled:$e,thanksGivingAnimationEnabled:Fe,christmasAnimationEnabled:Ae,newYearAnimationEnabled:_e})})}),za=f=>{const d=pe(),t=a(C=>he(C)),n={events:t.userRoleId!=null?[`private-${t.userRoleId}.dashboard-user-notification`]:[],eventCallback:(C,o)=>{ka(o)&&Je(o.mode)==="dashboard"&&d(Se({unreadCount:o.data.unread},"tasks"))}};return U.jsx(Na,{...f,...n})};export{za as M};
@@ -1 +0,0 @@
1
- import{j as r}from"./liveblocks-BOEQeN-H.js";import{j as e,k as i}from"./core-BxynaUfL.js";import{$ as n}from"./index-CMN0VTWt.js";import"./mui-D7DqO3YQ.js";import"./sentry-BcE91o8k.js";import"./zeni-epic-state-C9u4BvTm.js";import"./recharts-DFfCUpO3.js";import"./analytics-Fp0p9zzF.js";import"./plaid-lowWm0fK.js";import"./dnd-DTmBUnLk.js";import"./stripe-DMRn4zHo.js";import"./lottie-CHRWrHfY.js";import"./lexical-BgdBwfNo.js";import"./pdf-DEWT-QpZ.js";import"./utils-BMw-tiy-.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]="b8f8fac2-1296-411e-a82c-6092195b86a4",o._sentryDebugIdIdentifier="sentry-dbid-b8f8fac2-1296-411e-a82c-6092195b86a4")}catch{}})();const a=i(null,function(o,t){return{onGoBack:()=>{t.navigate(-1)},onGoHome:()=>{t.navigate("/")}}})(n);function h(){const o=e();return r.jsx(a,{navigate:o})}export{h as default};
@@ -1 +0,0 @@
1
- import{j as n}from"./liveblocks-BOEQeN-H.js";import{j as z,h as H,u as Z,l as K,g as d,k as X,n as ee,o as C}from"./core-BxynaUfL.js";import{eM as M,qb as U,pL as ae,J5 as $,pG as T,bu as te,bm as se,bQ as oe,pH as re,J6 as ne,IS as S,dF as ie,ty as ce,J7 as le,tV as de,eT as me,eR as fe}from"./zeni-epic-state-C9u4BvTm.js";import{O as pe,z as ue,Q as he,S as Fe,i as w,s as q,x as be,c as B,aj as ge,r as Ie}from"./index-CMN0VTWt.js";import"./mui-D7DqO3YQ.js";import Ce from"./NotFoundScreen-C3zjg2pa.js";import{F as Se}from"./FeaturePreviewScreen-Esm95F3O.js";import{a as h}from"./sentry-BcE91o8k.js";import{u as Te}from"./useAskAiCfoHostNavButtonProps-CIv6_RmV.js";import{c as ye}from"./useFetchSuggestedQuestionsWhenReady-Bpx2l830.js";import{u as Ae}from"./useInitialThreadRequest-guWm_-78.js";import{t as xe}from"./routePaths-tLvi4-VJ.js";import{M as ke}from"./MobileAppDrawer-DVs4kZOY.js";import"./recharts-DFfCUpO3.js";import"./analytics-Fp0p9zzF.js";import"./plaid-lowWm0fK.js";import"./dnd-DTmBUnLk.js";import"./stripe-DMRn4zHo.js";import"./lottie-CHRWrHfY.js";import"./lexical-BgdBwfNo.js";import"./pdf-DEWT-QpZ.js";import"./utils-BMw-tiy-.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new s.Error().stack;a&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[a]="9e7445fb-8801-41ff-8465-2598652bcba7",s._sentryDebugIdIdentifier="sentry-dbid-9e7445fb-8801-41ff-8465-2598652bcba7")}catch{}})();const y=(s,a,e,o)=>{if(s!=a){const r=o??"";s!=null&&s.length>0?e(`../${a}${r}`,{replace:!0}):e(`${a}${r}`,{replace:!0})}},De=X(function(s){const a=ne(s),e={},o=a.pandLReportWithForecast.uiState.nodeCollapseState;return Object.keys(o).forEach(r=>{e[r]=o[r]===!1}),{selectedTimeframe:a.selectedTimeframe,isForecastVsActualOn:a.isForecastVsActualOn,compareMode:a.compareMode,forecastList:a.forecastList,selectedForecast:a.selectedForecast,pandLreport:a.pandLReportWithForecast,scrollPosition:a.pandLReportWithForecast.uiState.scrollPosition,nodeOpenStatus:e,type:"name+balances_forecast",analytics:B}},function(s,a){return{onForecastSelectionChanged:(e,o)=>{s($(e,o)),a.isPandLReportFetched(e)||s(T(e)),y(a.forecastIdFromUrlPath,e,a.navigate)},onTimeframeChanged:e=>{s(de(e))},onForecastVsActualsCompareToggle:e=>{s(le(e)),s(S({forecastId:a.forecastIdFromUrlPath,scrollPosition:{scrollLeft:0,scrollTop:0}}))},onCompareModeChanged:e=>{s(ce(a.firstMonthOfFY,e,0,[]))},onAccountBalanceClick:a.hasTransactionAccess!==!0?void 0:(e,o)=>{let r,i;const F=e.accountName===""?e.accountDescription:e.accountName;if(o.balanceTimeFrame==="month"||o.balanceTimeFrame==="quarter"?(r=o.balanceTimeFrame,i=ie(o)):o.balanceTimeFrame==="year"?(r="quarter",i={startDate:o.endDate.startOf("quarter"),endDate:o.endDate}):console.error(`timeframe ${o.balanceTimeFrame} is not supported`),i!=null&&r!=null){const f=xe(a.tenantEmailDomain,e.accountId,e.accountType,F,r,i),p=Ie(a.location.state?.pathnameStackToGoBack,a.location.pathname);a.navigate(f,{state:{pathnameStackToGoBack:p,referrer:"Forecast"}})}},onNodeCollapseToggled:(e,o)=>{s(S({forecastId:a.forecastIdFromUrlPath,nodeCollapseState:{nodeId:e,isCollapsed:o===!1}}))},onTableScroll:e=>{s(S({forecastId:a.forecastIdFromUrlPath,scrollPosition:e}))},onBackClick:()=>{a.navigate("../../")}}})(ge);function v(){const{isAiCfoOpen:s,setIsAiCfoOpen:a}=pe(),e=z(),o=H(),r=Z(),{forecastId:i,tenantEmailDomain:F}=K(),[f,p]=h.useState(!1),[b,A]=h.useState(!1),u=ue.getSignedInUser(),x=d(t=>M(t)),G=x.company?.companyInfo.firstMonthOfFY??1,c=d(t=>U(t.forecastState,t.forecastListState)),l=d(t=>t.forecastListState.fetchState==="Completed"),k=d(t=>t.profitAndLossState),D=d(t=>t.reportUIOptionsState.selectedForecast),j=t=>k.pandLByForecastID[t]!=null&&re(t,k).reducedAllFetchState.fetchState==="Completed",{areTenantIdsInSync:g}=he();ye({isDataReady:l});const{isAiCfoAccessEnabled:N,onAskAiCfoClick:_}=Te({isAiCfoOpen:s,setIsAiCfoOpen:a,mobileExploreReferrer:"Forecast"});h.useEffect(()=>{if(!f&&g)p(!0),l||o(ae());else if(l&&!b){A(!0);const t=((m,R,P)=>R!=null?m.forecasts.findIndex(I=>I.id===R):P!=null?m.forecasts.findIndex(I=>I.id===P):m.forecasts.length>0?0:-1)(c,i,D?.id);t===-1&&i!=null?e("page-not-found",{replace:!0}):t!==-1&&t!=D?.index?(o($(c.forecasts[t].id,t)),y(i,c.forecasts[t].id,e,r.search)):i==null&&t!==-1&&y(void 0,c.forecasts[t].id,e,r.search),t!==-1&&!j(c.forecasts[t].id)&&g&&o(T(c.forecasts[t].id))}},[f,p,o,l,c,b,A,U,T,g]);const L=Fe(),V=L?.loggedInUserRole!=null&&te(L.loggedInUserRole),{useFeatureGate:W}=w(),{isFeatureEnabled:O}=W(q.isReportsCommentingEnabled),Y=Ae(O?x?.companyId:void 0,{clearParams:l&&b}),[J,Q]=h.useState(!1),E=t=>{Q(t)};return n.jsxs(n.Fragment,{children:[l?n.jsx(be,{analytics:B,onLoad:t=>(m=>m.trackForecast())(t)}):null,n.jsx(ke,{isAppContentDrawerOpen:J,handleDrawerToggle:E}),n.jsx(De,{firstMonthOfFY:G,tenantEmailDomain:F,forecastIdFromUrlPath:i,navigate:e,location:r,isPandLReportFetched:j,meetingUrl:oe(`https://meetings.hubspot.com/svitlana-grankovska?firstname=${u?.firstName}&lastname=${u?.lastName}&email=${u?.userEmail}`),hasTransactionAccess:V,isAiCfoAccessEnabled:N,onAskAiCfoClick:_,isReportsCommentingEnabled:O,isZeniUser:se(u),initialOpenThreadRequest:Y,onClickMenuIcon:()=>{E(!0)}})]})}function He(){const s=d(i=>M(i)),{useFeatureGate:a}=w(),{isFeatureEnabled:e}=a(q.isDebitCardFeatureEnabled),o=me(e,s),r=fe(s);return o===!0||r===!0?n.jsx(Se,{}):n.jsxs(ee,{children:[n.jsx(C,{path:"/",element:n.jsx(v,{})}),n.jsx(C,{path:"/:forecastId",element:n.jsx(v,{})}),n.jsx(C,{path:"/:forecastId/*",element:n.jsx(Ce,{})})]})}export{He as PandLWithForecastRoutes,He as default};
@@ -1 +0,0 @@
1
- import{j as s}from"./liveblocks-BOEQeN-H.js";import _ from"./NotFoundScreen-C3zjg2pa.js";import{a as r}from"./sentry-BcE91o8k.js";import{j as v,u as M,g,l as U,h as P,N as z,k as V,n as B,o as h}from"./core-BxynaUfL.js";import{eM as F,OH as b,bn as H,bm as N,h2 as Q,gy as $}from"./zeni-epic-state-C9u4BvTm.js";import{v as q,z as I,O as G,cp as J}from"./index-CMN0VTWt.js";import"./mui-D7DqO3YQ.js";import{u as K}from"./useAskAiCfoHostNavButtonProps-CIv6_RmV.js";import{c as L}from"./useFetchSuggestedQuestionsWhenReady-Bpx2l830.js";import{M as W}from"./MobileAppDrawer-DVs4kZOY.js";import"./recharts-DFfCUpO3.js";import"./analytics-Fp0p9zzF.js";import"./plaid-lowWm0fK.js";import"./dnd-DTmBUnLk.js";import"./stripe-DMRn4zHo.js";import"./lottie-CHRWrHfY.js";import"./lexical-BgdBwfNo.js";import"./pdf-DEWT-QpZ.js";import"./utils-BMw-tiy-.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]="077ff369-d4bd-49a9-a2fd-a7608d843e4f",e._sentryDebugIdIdentifier="sentry-dbid-077ff369-d4bd-49a9-a2fd-a7608d843e4f")}catch{}})();const X=V(function(e){const t=I.getSignedInUser(),d=e.tenantState.currentTenantId,o={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:d??""},{aggregatedReportViewState:n}=b(e);return{authParams:o,isDisabled:!1,loggedInUser:t,aggregatedReport:n}},function(e,t){return{onBackClick:()=>{t.navigate("../../")},onClickMenuIcon:()=>{t.handleDrawerToggle(!0)}}})(J),Y=()=>{const e=v(),t=M(),d=q(),o=g(a=>F(a)),{aggregatedReportViewState:n}=g(a=>b(a)),{tenantEmailDomain:m}=U(),p=P(),f=I.getSignedInUser();if(f==null)throw new Error("Can't access this page without signing in...");const l=r.useRef(!1),[C,S]=r.useState(!1),k=H(o?.userRole??[]),w=o?.userRole?.includes("bookkeeping_admin")??!1,y=N(f),A=k||w||y,c=r.useCallback((a,i,O)=>{p(Q({fromMonth:a,toMonth:i,cacheOverride:O}))},[]);r.useEffect(()=>{n?.fetchState==="Completed"&&l.current&&(p($({messageSection:"data_refresh_update",messageText:"success",type:"success",showStatusIcon:!0})),l.current=!1)},[n?.fetchState]);const D=r.useCallback((a,i)=>{n!=null&&n?.fetchState==="In-Progress"||c(a,i,!0),l.current=!0},[n?.fetchState,c]),x=r.useCallback((a,i)=>{c(a,i,!1)},[c]),u=a=>{S(a)},{isAiCfoOpen:j,setIsAiCfoOpen:R}=G(),{isAiCfoAccessEnabled:T,onAskAiCfoClick:E}=K({isAiCfoOpen:j,setIsAiCfoOpen:R,mobileExploreReferrer:"Performance"});return L({isDataReady:n?.fetchState==="Completed"}),A?s.jsxs(s.Fragment,{children:[s.jsx(W,{isAppContentDrawerOpen:C,handleDrawerToggle:u}),s.jsx(X,{navigate:e,location:t,themeState:d,currentTenant:o,signedInUser:f,tenantEmailDomain:m,onReload:D,onTimeRangeSelect:x,handleDrawerToggle:u,isAiCfoAccessEnabled:T,onAskAiCfoClick:E})]}):s.jsx(z,{to:`/${m}/dashboard`,replace:!0})};function Ie(){return s.jsxs(B,{children:[s.jsx(h,{path:"*",element:s.jsx(Y,{})}),s.jsx(h,{path:"*",element:s.jsx(_,{})})]})}export{Ie as default};
@@ -1,5 +0,0 @@
1
- import{j as s}from"./liveblocks-BOEQeN-H.js";import{a as o}from"./sentry-BcE91o8k.js";import{g as f,j as V,h as M,u as N,k as W}from"./core-BxynaUfL.js";import{h as _,J as $,z as R,a$ as U,G as z,Q as G,O as J,x as Q,c as l,f as X,a1 as Z,b0 as q}from"./index-CMN0VTWt.js";import{eX as K,eM as Y,Lv as I,Lw as ee,to as ae,te as g,eZ as re,bL as ne,tj as te,Lx as se}from"./zeni-epic-state-C9u4BvTm.js";import{D as oe,e as ie,n as le,S as de}from"./mui-D7DqO3YQ.js";import{u as ce}from"./useAskAiCfoHostNavButtonProps-CIv6_RmV.js";import{c as fe}from"./useFetchSuggestedQuestionsWhenReady-Bpx2l830.js";import{M as ue}from"./MobileAppDrawer-DVs4kZOY.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]="1e3ba750-9744-4cb9-9312-162cda036db3",e._sentryDebugIdIdentifier="sentry-dbid-1e3ba750-9744-4cb9-9312-162cda036db3")}catch{}})();const pe={overlayWidth:new z(100,100,30)},we=({isReferralDrawerOpen:e,closeDrawerHandler:a})=>{const r=_(),n=$();if(R.getSignedInUser()==null)throw Error("Can't access How Referral works without signing in...");const i=()=>{a(!0)},u=f(d=>K(d));return s.jsx(oe,{anchor:"right",open:e,PaperProps:{style:{width:pe.overlayWidth.valuePercentage(n),boxShadow:"none"}},slotProps:{backdrop:{style:{opacity:.75,backgroundColor:r.colors.black,cursor:"pointer"}}},onClose:()=>i(),children:s.jsx(ie,{in:e,direction:"left",children:s.jsx(ge,{onClick:d=>d.stopPropagation(),children:s.jsx(U,{onDismissClick:i,rewardsPlan:u.rewardsPlan})})})})},ge=le(de)`
2
- display: flex;
3
- min-height: 100%;
4
- flex-direction: column;
5
- `,P="refer-and-earn-status-update",ke=W(function(e){const a=I(e),r=e.referralViewState.rewardsPlanFetchState,n=ne([a,r]);return{inviteList:a.invitations,uiState:a.uiState,pendingBonus:a.pendingBonus,earnedBonus:a.earnedBonus,pendingReferrals:a.pendingReferrals,fetchState:n.fetchState,rewardsPlan:a.rewardsPlan}},function(e,a){const{navigate:r}=a;return{onColumnSortConfigChanged:(n,i)=>{e(se({sortOrder:i,sortkey:n}))},onInviteClick:()=>{l.trackRewardsPageClicked("invite via email"),r("../refer")},onHowItWorksClick:()=>{l.trackRewardsPageClicked("know more"),r("../how-it-works")},onResendInviteClick:n=>{l.trackRewardsPageClicked("resend invite"),e(te(n))},onBackClick:()=>{r("../",{relative:"path"})},onReloadInvitees:()=>{e(g(!0))},onCopyReferralLink:()=>{l.trackRewardsPageClicked("copy referral link")},onClickRefer:()=>{l.trackRewardsPageClicked("refer")},onEventReceived:n=>{n===P&&e(g(!0,!0))}}})(Z(q));function Pe({isReferralDrawerOpen:e}){const a=V(),r=M(),n=N(),[i,u]=o.useState(!1),[d,x]=o.useState(!1),[D,A]=o.useState(!1),[k,C]=o.useState(!1),p=R.getSignedInUser(),h=f(t=>Y(t)),m=f(t=>I(t)),b=m.fetchState,w=f(t=>t.referralViewState.rewardsPlanFetchState),v=ee([m,w]),{areTenantIdsInSync:c}=G();o.useEffect(()=>{h?.rewardsLastViewedTime==null&&D===!1&&(r(ae()),A(!0))},[]),o.useEffect(()=>{!i&&b==="Not-Started"&&c&&(u(!0),r(g(!0)))},[b,r,c]),o.useEffect(()=>{!d&&w.fetchState==="Not-Started"&&c&&(x(!0),r(re(!0)))},[w,r,c]),o.useEffect(()=>{C(e!=null&&e===!0)},[e]);const[E,j]=o.useState(!1),y=t=>{j(t)},{isAiCfoOpen:O,setIsAiCfoOpen:L}=J(),{isAiCfoAccessEnabled:T,onAskAiCfoClick:B}=ce({isAiCfoOpen:O,setIsAiCfoOpen:L,mobileExploreReferrer:"Rewards"});fe({isDataReady:v===!0});const F={events:p?.userId!=null?[`private-${p.userId}.${P}`]:[],eventCallback:(t,S,H)=>{H.onEventReceived(t)}};return s.jsxs(s.Fragment,{children:[v===!0?s.jsx(Q,{analytics:l,onLoad:t=>(S=>{p!=null&&S.trackPageLoaded(X.Event.rewardsPageViewed)})(t)}):null,s.jsx(ue,{isAppContentDrawerOpen:E,handleDrawerToggle:y}),k===!0?s.jsx(we,{closeDrawerHandler:()=>{C(!1),a("..")},isReferralDrawerOpen:k}):null,s.jsx(ke,{location:n,navigate:a,currentTenant:h,onClickMenuIcon:()=>{y(!0)},isAiCfoAccessEnabled:T,onAskAiCfoClick:B,...F})]})}export{Pe as R};
@@ -1 +0,0 @@
1
- import{j as t}from"./liveblocks-BOEQeN-H.js";import x from"./NotFoundScreen-C3zjg2pa.js";import{a as p}from"./sentry-BcE91o8k.js";import{j as C,u as I,h as A,g as u,N as k,k as E,n as D,o as c}from"./core-BxynaUfL.js";import{eM as T,Mp as g,MF as S,Cl as U,Bu as V,Ck as d,Cb as M,MU as _}from"./zeni-epic-state-C9u4BvTm.js";import{h as $,z as B,w as F,a1 as N,bF as O,aa as W}from"./index-CMN0VTWt.js";import"./mui-D7DqO3YQ.js";import{R as v}from"./ReimbursementApprovalRuleDetailScreen-BcC01mNe.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="50a6b775-0b8c-4add-ac67-d2016a10571e",e._sentryDebugIdIdentifier="sentry-dbid-50a6b775-0b8c-4add-ac67-d2016a10571e")}catch{}})();const m="reimbursement-approval-rule-update",z=E(function(e){return{approvalView:g(e),remiSetupApproverViewUpdateData:S(e).remiSetupApproverViewUpdateData}},function(e,r){const{navigate:a,location:l}=r;return{onApprovalRulesEventReceived:n=>{n.endsWith(m)&&e(_(!1))},onBackClick:()=>{W(l)?a("../../"):a("../../../reimbursements/setup")},onDeleteRuleClick:n=>{e(M(n))},onEditRuleClick:n=>{n!=null?(e(d(n)),a(`./${n}/edit`)):(e(d()),a("./new"))}}})(N(O)),P=()=>{const e=C(),r=I(),a=A(),[l,n]=p.useState(!1),[f,w]=p.useState(!1),b=u(s=>s.remiSetupApproverViewState.fetchState),o=u(s=>T(s)),y=$(),i=u(s=>g(s)),h=u(s=>S(s).remiSetupApproverViewUpdateData);if(p.useEffect(()=>{h?.updateStatus.fetchState==="Completed"&&a(U())},[h]),p.useEffect(()=>{l||b!=="Not-Started"||(n(!0),a(V(!0)))},[l,b,a]),B.getSignedInUser()==null)throw Error("Can't access reimbursement approval without signing in...");p.useEffect(()=>{i.allApprovalRules.length===0&&i.fetchState==="Completed"&&(f||(w(!0),a(d())),e("./new"))},[f,i,a]);const j={events:o.companyId!=null?[`private-${o.companyId}.${m}`]:[],eventCallback:(s,q,R)=>{s.endsWith(m)&&R.onApprovalRulesEventReceived(s)}};return o.companyReimbursementInfo?.info?.isReimbursementTOSAccepted===!1?t.jsx(k,{to:"../../promo"}):o.companyReimbursementInfo?.info?.isReimbursementTOSAccepted!==!0||i.fetchState!=="Completed"&&i.fetchState!=="Error"?t.jsx(F,{fetchState:"In-Progress",style:{backgroundColor:y.colors.grey5}}):t.jsx(z,{currentTenant:o,location:r,navigate:e,...j})};function Z(){return t.jsxs(D,{children:[t.jsx(c,{path:"/",element:t.jsx(P,{})}),t.jsx(c,{path:"/new",element:t.jsx(v,{})}),t.jsx(c,{path:"/:approvalRuleId/edit",element:t.jsx(v,{})}),t.jsx(c,{path:"*",element:t.jsx(x,{})})]})}export{Z as R};
@@ -1 +0,0 @@
1
- import{j as a}from"./liveblocks-BOEQeN-H.js";import{i as j,z as w,aI as y,x as E,c as p,f as F,cy as P,s as L}from"./index-CMN0VTWt.js";import"./mui-D7DqO3YQ.js";import l from"./NotFoundScreen-C3zjg2pa.js";import{a as d}from"./sentry-BcE91o8k.js";import{h as T,g as b,j as V,u as A,k as R,n as U,o as u}from"./core-BxynaUfL.js";import{eM as z,Pe as C,M4 as M,Pf as k,to as Y,eZ as G,Pg as O,tm as Z}from"./zeni-epic-state-C9u4BvTm.js";import{R as x}from"./ReferralListScreen-H3ugCkel.js";import"./recharts-DFfCUpO3.js";import"./analytics-Fp0p9zzF.js";import"./plaid-lowWm0fK.js";import"./dnd-DTmBUnLk.js";import"./stripe-DMRn4zHo.js";import"./lottie-CHRWrHfY.js";import"./lexical-BgdBwfNo.js";import"./pdf-DEWT-QpZ.js";import"./utils-BMw-tiy-.js";import"./useAskAiCfoHostNavButtonProps-CIv6_RmV.js";import"./useFetchSuggestedQuestionsWhenReady-Bpx2l830.js";import"./MobileAppDrawer-DVs4kZOY.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]="c0d2026c-e07d-4d15-b847-908ec18d14e6",e._sentryDebugIdIdentifier="sentry-dbid-c0d2026c-e07d-4d15-b847-908ec18d14e6")}catch{}})();const q=R(function(e,t){const n=C(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(k()),n("..")},onSendClick:()=>{if(i!=null){const s=[],r=[];t.inviteFormCompayData.forEach(c=>{s.push(c.companyName),r.push(c.emailIds[0])}),p.trackInviteEmailClicked("send",s,r,s.length)}e(Z())},onUpdateInviteFormLocalData:s=>{e(O({localData:s}))},onSubmitSuccess:()=>{n("../../")},onCancelClick:()=>{i!=null&&p.trackInviteEmailClicked("cancel")}}})(P),B=()=>{const e=T(),[t,n]=d.useState(!1),[i,s]=d.useState(!1),r=b(o=>z(o)),c=V(),_=A(),{useDynamicConfig:g}=j(),f=w.getSignedInUser();if(f==null)throw Error("Can't access invite referral screen without signing in...");const m=b(o=>C(o)),v=f?.firstName!=null?f.firstName:"User",{configValue:h}=g(y.zeniCardsConfig),{configValue:D}=g(y.zeniAccountsConfig),I=M(D);d.useEffect(()=>{e(k()),r?.rewardsLastViewedTime==null&&i===!1&&(e(Y()),s(!0))},[]),d.useEffect(()=>{t||m.fetchState!=="Not-Started"||(n(!0),e(G(!0)))},[m.fetchState,e]);const N=r.company?.companyInfo.companyLegalName??r.companyName;return a.jsxs(a.Fragment,{children:[m.fetchState==="Completed"?a.jsx(E,{analytics:p,onLoad:o=>(S=>S.trackPageLoaded(F.Event.inviteEmailViewed))(o)}):null,a.jsx(q,{navigate:c,location:_,currentTenant:r,companyName:N,userName:v,inviteFormCompayData:m.localData,chargeCardCashbackRatePerTransaction:h.charge_card_cashback_rate_per_transaction!=null?h.charge_card_cashback_rate_per_transaction:.0175,maxAnnualPercentageYield:I.maxAnnualPercentageYield})]})};function fe(){const{useFeatureGate:e}=j(),{isFeatureEnabled:t}=e(L.isReferralFeatureEnabled);return a.jsxs(U,{children:[a.jsx(u,{path:"/",element:t?a.jsx(x,{}):a.jsx(l,{})}),a.jsx(u,{path:"how-it-works",element:t?a.jsx(x,{isReferralDrawerOpen:!0}):a.jsx(l,{})}),a.jsx(u,{path:"refer/*",element:t?a.jsx(B,{}):a.jsx(l,{})}),a.jsx(u,{path:"*",element:a.jsx(l,{})})]})}export{fe as default};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardRoutes-BPkQitQx.js","assets/sentry-BcE91o8k.js","assets/core-BxynaUfL.js","assets/zeni-epic-state-C9u4BvTm.js","assets/index-CMN0VTWt.js","assets/mui-D7DqO3YQ.js","assets/analytics-Fp0p9zzF.js","assets/utils-BMw-tiy-.js","assets/withTransactionSidePanel-lvb3ni_e.js","assets/useAskAiCfoHostNavButtonProps-CIv6_RmV.js","assets/useFetchSuggestedQuestionsWhenReady-Bpx2l830.js","assets/TransactionDetailScreen-v_iRnLm6.js","assets/decodeURIComponentSafe-C4CdHegQ.js","assets/routePaths-tLvi4-VJ.js","assets/NotFoundScreen-C3zjg2pa.js","assets/analyticsHelper-B5vDoHXs.js","assets/CompanyPassportScreen-CtaJgM_D.js","assets/MobileAppDrawer-DVs4kZOY.js","assets/FeaturePreviewScreen-Esm95F3O.js","assets/ReferralListScreen-H3ugCkel.js","assets/index-D-vub4_t.css","assets/BillPayRoutes-DyYN5q_F.js","assets/AddressScreen-Dnqvk39f.js","assets/DomesticWireDetailScreen-Cet8eqve.js","assets/useInitialThreadRequest-guWm_-78.js","assets/DrawerScreen-C5Pyoiiy.js","assets/SetupPagesScreen-BXNBjv3j.js","assets/BusinessVerificationPageScreen-DbNtBlq9.js","assets/BillPayApprovalRoutes-Dks0BYHS.js","assets/ReimbursementApprovalRuleDetailScreen-BcC01mNe.js","assets/getLocaleForTenant-BE1pHVDh.js","assets/ReimbursementRoutes-D3zYz8wy.js","assets/ReimbursementApprovalRoutes-BU7MjFhQ.js","assets/TransactionListRoutes-DelEkqAU.js","assets/ZeniAccountStatementScreen-BxqDty2m.js","assets/SettingsRoutes-otH5iG80.js","assets/accountMappingHelper-BmWub9rZ.js","assets/QBOConnectionScreen-CoK1XecU.js","assets/empty-BCapHP-3.js","assets/index-0JOtcwRL.js","assets/url-Cr6I6Veb.js","assets/index-DxCK0Ves.js","assets/ReportsRoutes-CljixoPv.js","assets/ChargeCardRoutes-DDzL8gpY.js","assets/PeopleRoutes-B-S9keOO.js","assets/ExpenseAutomationRoutes-D-ShrGPq.js","assets/TreasuryRoutes-DkznvHgV.js","assets/VendorsRoutes-CmyeEzqo.js","assets/pathToGoBack-5wx41ypO.js","assets/ZeniAccountRoutes-XGCXjBgv.js","assets/AddressRoutes-CL334upZ.js","assets/PandLWithForecastRoutes-JcUTTxdM.js","assets/CustomerOnboardingRoutes-5AwlPOlH.js","assets/TransactionDetailRoutes-BwPxRt-X.js","assets/EntityDetailRoutes-CVOtLlxx.js","assets/NotificationRoutes-CW6WHRSZ.js","assets/PerformanceRoutes-CNYDT1z6.js","assets/RewardsRoutes-dtSU2rm8.js","assets/TaskRoutes-D21v8ON-.js","assets/TaskListScreen-DBwhGgZH.js","assets/AiCfoScreen-DZh-dzaC.js"])))=>i.map(i=>d[i]);
2
- import{_ as a,bm as os,eM as ls,eT as cs,eR as ds,eS as ms,fD as us,eO as _s,cM as Ae,ct as As,f9 as Es,cl as ps,bB as Is,bp as gs,fe as xs,v as Ts,If as hs,bu as js,Ig as Us,bD as Ds,fb as Hs,bC as Rs,br as bs,cN as ys,Ih as fs,Ii as Cs,cJ as vs,cL as Os,cK as Ps,cs as Fs,cy as Ls,mh as Ee,eN as pe,Ij as Bs,fi as Ie,fI as ge,fJ as xe,fj as ks}from"./zeni-epic-state-C9u4BvTm.js";import{j as e}from"./liveblocks-BOEQeN-H.js";import{a as v}from"./sentry-BcE91o8k.js";import{h as Vs,j as Ss,l as Ns,u as Ms,g as z,i as Te,N as c,n as Zs,o as t}from"./core-BxynaUfL.js";import{h as ws,u as zs,z as H,i as Gs,a as $s,l as Ys,s as L,S as Ws,L as B,D as he,t as _,P as qs,c as X,d as l}from"./index-CMN0VTWt.js";import"./mui-D7DqO3YQ.js";import{f as je}from"./analyticsHelper-B5vDoHXs.js";import{t as Js}from"./getLocaleForTenant-BE1pHVDh.js";import"./recharts-DFfCUpO3.js";import"./analytics-Fp0p9zzF.js";import"./plaid-lowWm0fK.js";import"./dnd-DTmBUnLk.js";import"./stripe-DMRn4zHo.js";import"./lottie-CHRWrHfY.js";import"./lexical-BgdBwfNo.js";import"./pdf-DEWT-QpZ.js";import"./utils-BMw-tiy-.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},U=new i.Error().stack;U&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[U]="96111a1f-0691-48d2-aadd-8b6a6a99e4d7",i._sentryDebugIdIdentifier="sentry-dbid-96111a1f-0691-48d2-aadd-8b6a6a99e4d7")}catch{}})();const Ks={dashboard:()=>a(()=>import("./DashboardRoutes-BPkQitQx.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20])),bills:()=>a(()=>import("./BillPayRoutes-DyYN5q_F.js"),__vite__mapDeps([21,1,2,3,4,5,6,7,22,14,23,9,10,24,25,17,18,26,15,13,27,28,29,30,20])),reimbursement:()=>a(()=>import("./ReimbursementRoutes-D3zYz8wy.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,14,26,17,15,13,27,18,24,9,10,25,32,29,30,20])),transactions:()=>a(()=>import("./TransactionListRoutes-DelEkqAU.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,13,34,20])),settings:()=>a(()=>import("./SettingsRoutes-otH5iG80.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,17,36,22,14,15,27,13,16,37,38,39,40,41,12,28,29,32,20])),reports:()=>a(()=>import("./ReportsRoutes-CljixoPv.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,14,18,10,24,13,17,20])),chargeCards:()=>a(()=>import("./ChargeCardRoutes-DDzL8gpY.js"),__vite__mapDeps([43,1,2,3,4,5,6,7,26,17,14,15,13,27,9,10,22,20])),people:()=>a(()=>import("./PeopleRoutes-B-S9keOO.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,14,9,10,17,20])),expenseAutomation:()=>a(()=>import("./ExpenseAutomationRoutes-D-ShrGPq.js"),__vite__mapDeps([45,1,2,3,14,4,5,6,7,9,10,11,12,13,8,36,25,20])),treasury:()=>a(()=>import("./TreasuryRoutes-DkznvHgV.js"),__vite__mapDeps([46,1,2,3,4,5,6,7,14,26,17,15,13,27,9,10,18,20])),vendors:()=>a(()=>import("./VendorsRoutes-CmyeEzqo.js"),__vite__mapDeps([47,1,2,3,4,5,6,7,22,14,18,13,48,9,10,17,25,36,20])),zeniAccounts:()=>a(()=>import("./ZeniAccountRoutes-XGCXjBgv.js"),__vite__mapDeps([49,1,2,3,4,5,6,7,14,26,17,15,13,27,18,23,22,9,10,34,20]))},Qs=["bills","transactions","settings","reimbursement","reports","chargeCards","people"],ee=i=>{"requestIdleCallback"in window?requestIdleCallback(i):setTimeout(i,100)},Xs=l(()=>a(()=>import("./ReportsRoutes-CljixoPv.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,14,18,10,24,13,17,20]))),ea=l(()=>a(()=>import("./AddressRoutes-CL334upZ.js"),__vite__mapDeps([50,1,2,3,22,4,5,6,7,14,20]))),sa=l(()=>a(()=>import("./PeopleRoutes-B-S9keOO.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,14,9,10,17,20]))),aa=l(()=>a(()=>import("./PandLWithForecastRoutes-JcUTTxdM.js"),__vite__mapDeps([51,1,2,3,4,5,6,7,14,18,9,10,24,13,17,20]))),na=l(()=>a(()=>import("./CustomerOnboardingRoutes-5AwlPOlH.js"),__vite__mapDeps([52,1,2,3,22,4,5,6,7,14,37,38,39,40,41,12,20]))),ta=l(()=>a(()=>import("./VendorsRoutes-CmyeEzqo.js"),__vite__mapDeps([47,1,2,3,4,5,6,7,22,14,18,13,48,9,10,17,25,36,20]))),ia=l(()=>a(()=>import("./TransactionDetailRoutes-BwPxRt-X.js"),__vite__mapDeps([53,1,2,3,14,4,5,6,7,11,9,10,12,13,20]))),Ue=l(()=>a(()=>import("./EntityDetailRoutes-CVOtLlxx.js"),__vite__mapDeps([54,1,2,3,4,5,6,7,12,8,9,10,11,13,20]))),ra=l(()=>a(()=>import("./DashboardRoutes-BPkQitQx.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]))),De=l(()=>a(()=>import("./BillPayRoutes-DyYN5q_F.js"),__vite__mapDeps([21,1,2,3,4,5,6,7,22,14,23,9,10,24,25,17,18,26,15,13,27,28,29,30,20]))),oa=l(()=>a(()=>import("./SettingsRoutes-otH5iG80.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,17,36,22,14,15,27,13,16,37,38,39,40,41,12,28,29,32,20]))),He=l(()=>a(()=>import("./ReimbursementRoutes-D3zYz8wy.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,14,26,17,15,13,27,18,24,9,10,25,32,29,30,20]))),la=l(()=>a(()=>import("./ZeniAccountRoutes-XGCXjBgv.js"),__vite__mapDeps([49,1,2,3,4,5,6,7,14,26,17,15,13,27,18,23,22,9,10,34,20]))),ca=l(()=>a(()=>import("./TreasuryRoutes-DkznvHgV.js"),__vite__mapDeps([46,1,2,3,4,5,6,7,14,26,17,15,13,27,9,10,18,20]))),da=l(()=>a(()=>import("./TransactionListRoutes-DelEkqAU.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,13,34,20]))),ma=l(()=>a(()=>import("./ChargeCardRoutes-DDzL8gpY.js"),__vite__mapDeps([43,1,2,3,4,5,6,7,26,17,14,15,13,27,9,10,22,20]))),ua=l(()=>a(()=>import("./NotificationRoutes-CW6WHRSZ.js"),__vite__mapDeps([55,1,2,3,14,4,5,6,7,9,10,20]))),_a=l(()=>a(()=>import("./PerformanceRoutes-CNYDT1z6.js"),__vite__mapDeps([56,1,2,3,14,4,5,6,7,9,10,17,20]))),Aa=l(()=>a(()=>import("./ExpenseAutomationRoutes-D-ShrGPq.js"),__vite__mapDeps([45,1,2,3,14,4,5,6,7,9,10,11,12,13,8,36,25,20]))),Ea=l(()=>a(()=>import("./RewardsRoutes-dtSU2rm8.js"),__vite__mapDeps([57,1,2,3,4,5,6,7,14,19,9,10,17,20]))),pa=l(()=>a(()=>import("./TaskRoutes-D21v8ON-.js"),__vite__mapDeps([58,1,2,3,14,4,5,6,7,24,17,59,9,10,20]))),Ia=l(()=>a(()=>import("./AiCfoScreen-DZh-dzaC.js"),__vite__mapDeps([60,1,2,3,4,5,6,7,48,20]))),y=l(()=>a(()=>import("./NotFoundScreen-C3zjg2pa.js"),__vite__mapDeps([14,1,2,3,4,5,6,7,20]))),ga=l(()=>a(()=>import("./TaskListScreen-DBwhGgZH.js"),__vite__mapDeps([59,1,2,3,4,5,6,7,9,10,17,20])));function Za({setTenantEmailDomain:i}){const U=Vs(),V=Ss(),{tenantEmailDomain:o}=Ns(),S=ws().mode,{setLoading:f,clearAllLoading:O,clearLoading:Z}=zs(),b=H.getSignedInUserTenant(o)?.tenantId,h=H.getSignedInUser(),J=os(h),G=Ms(),[N,be]=v.useState(!1),r=z(n=>ls(n)),{useFeatureGate:P}=Gs(),K=$s(),ye=Ys(),{isFeatureEnabled:fe}=P(L.isExpenseAutomationEnabled),{isFeatureEnabled:Ce}=P(L.isExpenseAutomationEnabledV2),ve=Ce||fe&&J,{isFeatureEnabled:Oe}=P(L.isDepositAccountsFeatureEnabled),{isFeatureEnabled:Pe}=P(L.isTreasuryEnabled),{isFeatureEnabled:Fe}=P(L.isChargeCardFeatureEnabled),{isFeatureEnabled:se}=P(L.isDebitCardFeatureEnabled),j=z(n=>n.tenantState.fetchState),E=z(n=>n.tenantState.activeTenantFetchState.fetchState),u=E==="Completed"||j==="Completed"?cs(se,r):void 0,$=E==="Completed"||j==="Completed"?ds(r):void 0,Le=E==="Completed"||j==="Completed"?ms(r):void 0,Be=Fe||se||!!Le||!!$||!!u,{isFeatureEnabled:ke}=P(L.isSettingsFeatureEnabled),{isFeatureEnabled:Ve}=P(L.isAiCfoFileUploadEnabled),Y=z(n=>us(n));if(o!=null){const n=H.getSignedInUserTenant(o);h!=null&&n!=null&&je(h,r,S)}const w={tenantId:b,userId:h?.userId,sessionId:h?.zeniSessionId},ae=_s(),A=Ws(),Se=r.company==null||A?.loggedInUserRoleMap!=null&&Ae(A.loggedInUserRole),Ne=As(A?.loggedInUserRoleMap),ne=v.useRef(!0),te=Te("/:tenantEmailDomain/onboarding/*")!==null,Q=Te("/:tenantEmailDomain/month_end_close_checks/review/:selectedTab/:selectedPeriod/*"),Me=z(n=>w.tenantId!=null?Es(n,w.tenantId):void 0);v.useEffect(()=>{f(B.TENANT_FETCHING),i(o)},[o]),v.useEffect(()=>{if(Q!=null&&b!=null){const n=Q.params.selectedPeriod;if(n!=null){const D=n.split("-");if(D.length===2){const d=ps(Number(D[0])),s=Number(D[1]),m=Is(`01-${d<10?`0${d}`:d}-${s}`,he.getLocalizedStrings().dateFormat.analytics.DDDashMMDashYYYY),M=gs();m.isAfter(M,"month")===!1?U(xs(b,{month:d,year:s})):V("./month_end_close_checks/review")}}}},[Q,b]),v.useEffect(()=>{N||(be(!0),f(B.TENANT_FETCHING)),ne.current?ne.current=!1:!Ts(ae,w)&&H.isSignedIn()&&(f(B.TENANT_FETCHING),function(n,D,d,s){if(pe(D?.userId,D?.zeniSessionId,n.tenantId),d(Bs(!0)),d(Ie(n.tenantId)),n.tenantId!=null&&_.clearTenant(n.tenantId),n.tenantId!=null){const m=H.getSignedInUserTenantWithId(n.tenantId);s&&he.updateAppLocaleID(Js(s)),m?.tenantEmailDomain!=null&&H.saveActiveTenantDomainForUser(m?.tenantEmailDomain)}n.userId!=null?X.identify(n.userId,{tenant_id:n.tenantId}):X.resetUserIdentity()}(w,h,U,Me))},[w,ae,h,U,H]),v.useEffect(()=>{H.isSignedIn()&&(f(B.TENANT_FETCHING),function(n,D,d,s,m,M,k){if(d==null&&s==null)return void console.warn("There is no current tenant selected!!");const W=s!=null&&m?.zeniSessionId!=null,ts=d==null||d.tenantId!==s,is=d!=null&&d.excludedResources==null,rs=d!=null&&d.externalConnections==null;if(W&&ts){k(Ie(s));const q=H.getSignedInUserTenantWithId(s);q?.tenantEmailDomain!=null&&H.saveActiveTenantDomainForUser(q?.tenantEmailDomain),pe(m?.userId,m?.zeniSessionId,s),_.shouldFetchExcludedResources(s)&&(_.markExcludedResourcesFetchStarted(s),k(ge(m.userId,s))),_.shouldFetchConnections(s)&&(_.markConnectionsFetchStarted(s),k(xe(m.userId,s)))}else W&&is&&_.shouldFetchExcludedResources(s)&&(_.markExcludedResourcesFetchStarted(s),k(ge(m.userId,s))),W&&rs&&_.shouldFetchConnections(s)&&(_.markConnectionsFetchStarted(s),k(xe(m.userId,s)));if(W){X.identify(m.userId,{tenant_id:s});const q=s==null||s!=null&&(D==="Completed"||D==="Error");n==="Completed"||D!=="Not-Started"&&D!=="Error"||s==null||!_.shouldFetchActiveTenant(s)||(_.markActiveTenantFetchStarted(s),M(B.TENANT_FETCHING),k(ks(m.userId,s,m.zeniSessionId))),q&&(n==="Not-Started"||n==="Error")&&_.shouldFetchAllTenants()&&(_.markAllTenantsFetchStarted(),k(Ee(m.userId,m.zeniSessionId)))}}(j,E,r,b,h,f,U))},[b,E]),v.useEffect(()=>{H.isSignedIn()&&j==="Completed"&&Y.tenantsBaseInOrder.length>0&&(Z(B.TENANT_FETCHING),H.saveSignedInUserTenants(hs(Y.tenantsBaseInOrder)),h!=null&&je(h,r,S,void 0,Y.tenantsBaseInOrder))},[Y,j,r,h]),v.useEffect(()=>{E==="In-Progress"&&f(B.TENANT_FETCHING),E!=="Completed"&&E!=="Error"||(E==="Completed"&&b!=null?(O(),_.markActiveTenantFetchCompleted(b)):E==="Error"&&b!=null&&(_.markActiveTenantFetchFailed(b),Z(B.TENANT_FETCHING),Z(B.TENANT_SWITCHING))),j!=="Completed"&&j!=="Error"||(j==="Completed"?_.markAllTenantsFetchCompleted():j==="Error"&&_.markAllTenantsFetchFailed())},[E,j,b,N]);const ie=v.useRef(!1);v.useEffect(()=>{!ie.current&&E==="Completed"&&N&&(ie.current=!0,function(n=Qs,D=3e3){setTimeout(()=>{const d=s=>{if(s>=n.length)return;const m=n[s],M=Ks[m];M!=null?M().then(()=>ee(()=>d(s+1))).catch(()=>ee(()=>d(s+1))):d(s+1)};ee(()=>d(0))},D)}())},[E,N]);const C=r?.userRole!=null&&js(r?.userRole),{isFeatureEnabled:Ze}=P(L.isReferralFeatureEnabled),we=r?.userRole!=null&&r.userRole.includes("charge_card_user"),ze=r?.userRole!=null&&r.userRole.includes("charge_card_admin"),F=r?.userRole!=null&&Ae(r.userRole),re=r?.company==null||r.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!C,oe=Be&&!C,Ge=Us(A?.loggedInUserRoleMap),$e=r.externalConnections?.accounting[0]?.isValid,le=r.company?.companyOnboardingInfo.isOnboardingCompleted,ce=r?.company==null||r.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!C,de=ce&&Ds(A?.loggedInUserRoleMap),me=Oe&&!C,Ye=r.company!=null&&Hs(r.company),We=Pe&&Ye===!0&&!C,qe=re&&Rs(A?.loggedInUserRoleMap),Je=oe&&bs(A?.loggedInUserRoleMap),Ke=me&&ys(A?.loggedInUserRoleMap),Qe=fs(A?.loggedInUserRoleMap),Xe=Cs(A?.loggedInUserRoleMap),p=vs(A?.loggedInUserRoleMap),I=Os(A?.loggedInUserRoleMap),g=Ps(A?.loggedInUserRoleMap),x=Fs(A?.loggedInUserRoleMap),T=Ls(A?.loggedInUserRoleMap),ue=re&&x,_e=ce&&T,es=me&&p,ss=We&&I,as=oe&&g,ns=r.excludedResources?.resources?.find(n=>n.resource==="/invites")!=null||Ne===!0||Ge===!0||Qe===!0||Xe===!0;return H.isSignedIn()?b==null?j==="Completed"?e.jsx(c,{to:"/",replace:!0,state:{...G.state,message:"...",origin:G.pathname}}):(h!=null&&j!=="In-Progress"&&U(Ee(h.userId,h.zeniSessionId)),null):E!=="In-Progress"&&E!=="Not-Started"||j==="Completed"?(le===!0||J&&!te)&&$e===!1&&u===!1&&$===!1?(i(void 0),e.jsx(c,{to:"/connection/auth",replace:!0})):!N||le!==!1||te||J?N&&r?.userRole&&u!=null&&$!=null&&o!=null&&Object.keys(A.loggedInUserRoleMap).length>0?e.jsx(Zs,{children:e.jsxs(t,{element:e.jsx(qs,{}),children:[e.jsx(t,{path:"/",element:e.jsx(xa,{isDashboardAccess:F,isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,isTenantCardsOnly:$})}),e.jsx(t,{path:"dashboard/*",element:F?e.jsx(ra,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reports/*",element:F?e.jsx(Xs,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"people/*",element:ns||F?e.jsx(sa,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"forecast/*",element:F?e.jsx(aa,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"onboarding/*",element:e.jsx(na,{})}),e.jsx(t,{path:"transaction/*",element:F&&C===!1||we||ze?e.jsx(ia,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"transactions/*",element:F&&C===!1?e.jsx(da,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"customer/*",element:F&&C===!1?e.jsx(Ue,{entityType:"customer"}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isTenantBankingOnly:u,isUserHasTreasuryAccess:I,tenantEmailDomain:o})}),e.jsx(t,{path:"vendor/*",element:F&&C===!1?e.jsx(Ue,{entityType:"vendor"}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"tasks",element:e.jsx(ga,{})}),e.jsx(t,{path:"tasks/*",element:e.jsx(pa,{})}),e.jsx(t,{path:"address/*",element:qe||de||Ke||Je?e.jsx(ea,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"checking/*",element:es?e.jsx(la,{}):e.jsx(y,{})}),e.jsx(t,{path:"treasury/*",element:ss?e.jsx(ca,{}):e.jsx(y,{})}),e.jsx(t,{path:"performance",element:ye?e.jsx(_a,{}):e.jsx(Re,{tenantEmailDomain:o})}),e.jsx(t,{path:"month_end_close_checks/review/*",element:ve&&C===!1?e.jsx(Aa,{}):e.jsx(Re,{tenantEmailDomain:o})}),e.jsx(t,{path:"notifications/*",element:e.jsx(ua,{})}),e.jsx(t,{path:"vendors/*",element:Se?e.jsx(ta,{}):e.jsx(y,{})}),e.jsx(t,{path:"bill/*",element:ue?e.jsx(De,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"bills/*",element:ue?e.jsx(De,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reimbursement/*",element:_e?e.jsx(He,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reimbursements/*",element:_e?e.jsx(He,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"settings/*",element:ke?e.jsx(oa,{hasAdminLevelAccess:de}):e.jsx(y,{})}),e.jsx(t,{path:"cards/*",element:as?e.jsx(ma,{}):e.jsx(y,{})}),e.jsx(t,{path:"rewards/*",element:Ze?e.jsx(Ea,{}):e.jsx(y,{})}),e.jsx(t,{path:"/ai-cfo",element:K?e.jsx(c,{to:"explore"}):e.jsx(y,{})}),e.jsx(t,{path:"/ai-cfo/",element:K?e.jsx(c,{to:"explore"}):e.jsx(y,{})}),e.jsx(t,{path:"/ai-cfo/:session_id",element:K?e.jsx(Ia,{isFileUploadEnabled:Ve}):e.jsx(y,{})}),e.jsx(t,{path:"*",element:e.jsx(y,{})})]})}):null:(i(void 0),e.jsx(c,{to:"onboarding",replace:!0})):null:(console.warn("User logged out!!"),i(void 0),e.jsx(c,{to:"/signin/auth",replace:!0,state:{...G.state,message:"...",origin:G.pathname}}))}const xa=({isDashboardAccess:i,isUserHasZeniAccountsAccess:U,isUserHasChargeCardAccess:V,isUserHasBillPayAccess:o,isUserHasReimbursementAccess:S,isUserHasTreasuryAccess:f,isTenantBankingOnly:O,isTenantCardsOnly:Z})=>O===!0&&U?e.jsx(c,{to:"checking"}):Z===!0?e.jsx(c,{to:"cards"}):i?e.jsx(c,{to:"dashboard"}):U?e.jsx(c,{to:"checking"}):f?e.jsx(c,{to:"treasury"}):V?e.jsx(c,{to:"cards"}):o?e.jsx(c,{to:"bills"}):S?e.jsx(c,{to:"reimbursements"}):e.jsx(c,{to:"dashboard"}),R=({isUserHasZeniAccountsAccess:i,isUserHasChargeCardAccess:U,isUserHasBillPayAccess:V,isUserHasReimbursementAccess:o,isUserHasTreasuryAccess:S,isTenantBankingOnly:f,tenantEmailDomain:O})=>f===!0||i?e.jsx(Ua,{tenantEmailDomain:O}):S?e.jsx(ja,{tenantEmailDomain:O}):U?e.jsx(Da,{tenantEmailDomain:O}):V?e.jsx(ha,{tenantEmailDomain:O}):o?e.jsx(Ta,{tenantEmailDomain:O}):e.jsx(y,{}),Ta=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/reimbursements`}),ha=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/bills`}),ja=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/treasury`}),Ua=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/checking`}),Da=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/cards`}),Re=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/dashboard`});export{R as FallBackRoute,Za as default};
@@ -1,9 +0,0 @@
1
- import{j as s}from"./liveblocks-BOEQeN-H.js";import{a as n}from"./sentry-BcE91o8k.js";import{h as u,u as m,j as p,N as g}from"./core-BxynaUfL.js";import{z as d,w as y,t as h,c as f,f as I}from"./index-CMN0VTWt.js";import{IB as b,Ij as x,IC as j}from"./zeni-epic-state-C9u4BvTm.js";import{n as w}from"./mui-D7DqO3YQ.js";import"./recharts-DFfCUpO3.js";import"./analytics-Fp0p9zzF.js";import"./plaid-lowWm0fK.js";import"./dnd-DTmBUnLk.js";import"./stripe-DMRn4zHo.js";import"./lottie-CHRWrHfY.js";import"./lexical-BgdBwfNo.js";import"./pdf-DEWT-QpZ.js";import"./utils-BMw-tiy-.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]="76c40a6d-01fc-4a41-81aa-0ed061d9f14e",e._sentryDebugIdIdentifier="sentry-dbid-76c40a6d-01fc-4a41-81aa-0ed061d9f14e")}catch{}})();function $(){const e=u(),t=m(),a=p(),i=n.useRef(!1),c=d.isSignedIn(),r=t.state?.message==="logout",o=r||c;return n.useEffect(()=>{o&&!i.current&&(i.current=!0,setTimeout(()=>{try{d.clearAll(),e(b()),e(x(!1)),j(),h.reset(),f.trackLogout(I.Event.logoutSuccess),f.resetUserIdentity()}catch(l){console.error("Error during sign out:",l)}finally{r||a("/signin/auth",{replace:!0})}},0))},[o,r]),o?s.jsx(v,{children:s.jsx(y,{fetchState:"In-Progress"})}):s.jsx(g,{to:"../",replace:!0})}const v=w.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{$ as default};
@@ -1,9 +0,0 @@
1
- import{j as s}from"./liveblocks-BOEQeN-H.js";import M from"./NotFoundScreen-C3zjg2pa.js";import{a as p}from"./sentry-BcE91o8k.js";import{j as A,h as R,u as $,l as q,g as f,N as z,k as V,n as _,o as u}from"./core-BxynaUfL.js";import{v as O,z as w,r as C,x as Q,c as E,f as W,cz as H,k as Z,ao as J,q as K}from"./index-CMN0VTWt.js";import{eM as G,Ph as b,EM as v,EA as X,Fc as Y,Pi as P,Pj as aa,Ew as ea,Et as ta,pB as sa,pp as na,jW as oa,EG as ia,Pk as ra,ED as la,ER as ca,EQ as da}from"./zeni-epic-state-C9u4BvTm.js";import{n as pa}from"./mui-D7DqO3YQ.js";import{u as ma}from"./useInitialThreadRequest-guWm_-78.js";import{M as ua}from"./MobileAppDrawer-DVs4kZOY.js";import ka from"./TaskListScreen-DBwhGgZH.js";import"./recharts-DFfCUpO3.js";import"./analytics-Fp0p9zzF.js";import"./plaid-lowWm0fK.js";import"./dnd-DTmBUnLk.js";import"./stripe-DMRn4zHo.js";import"./lottie-CHRWrHfY.js";import"./lexical-BgdBwfNo.js";import"./pdf-DEWT-QpZ.js";import"./utils-BMw-tiy-.js";import"./useAskAiCfoHostNavButtonProps-CIv6_RmV.js";import"./useFetchSuggestedQuestionsWhenReady-Bpx2l830.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]="9a1b5273-54c9-4419-9368-9391825204d6",a._sentryDebugIdIdentifier="sentry-dbid-9a1b5273-54c9-4419-9368-9391825204d6")}catch{}})();const fa=V(function(a,t){const{location:n,taskGroupId:l}=t,d=P(a,t.taskId),c=G(a),i=l!=null?aa(a.taskGroupState,l):void 0,m=w.getSignedInUser(),e=c.tenantId,r={userId:m?.userId??"",sessionId:m?.zeniSessionId??"",tenantId:e??""},k=b(a);return{taskDetailSelectorView:d,authParams:r,isNewClicked:n.state?.message==="comingFromTaskListPage",filesEndPoint:J.fileMicroServiceBaseUrl,companyName:t.currentTenant.companyName,companyId:t.currentTenant.companyId,currentUrl:`${Z.appUrl}${t.location.pathname}`,tagListView:k,taskGroupName:l!=null&&i!=null&&i.isDefault===!1?i.name:void 0}},function(a,t){const{taskId:n,navigate:l,currentTenant:d,location:c,taskGroupId:i}=t,{tenantEmailDomain:m}=d;return{onSaveChangesToLocalStore:e=>{a(da({taskDetailLocalData:e,taskId:n}))},onSaveDetailClick:()=>{a(ca(n,i))},onArchiveTaskClick:()=>{t.taskId!=null&&a(la(t.taskId))},onDismissClick:()=>{if(c.state?.message==="triggerBackClick"){const e=K(c.state?.pathnameStackToGoBack),r=e.poppedPathname??"../../dashboard";l(r,{state:{pathnameStackToGoBack:e.newStack}})}else{const e=B(m),r=C(c.state?.pathnameStackToGoBack,c.pathname);l(e,{state:{pathnameStackToGoBack:r}})}a(ra({taskId:n}))},onDeleteTaskClick:()=>{a(ia(n))},updateFilesEntity:e=>{a(oa({files:e}))},onDeleteFile:e=>{a(na(e))},onEditFileName:(e,r)=>{a(sa(e,r.split(".")[0]))},onReloadTaskDetailPage:()=>{a(v(!1,n))},onCreateTagClick:e=>{a(ta(e,n))},onDeleteTagClick:e=>{a(ea(e,n))}}})(H);function I(){const a=A(),t=R(),n=$(),l=O(),{taskId:d,taskGroupId:c}=q(),i=f(o=>G(o)),m=ma(i?.companyId),[e,r]=p.useState(!1),[k,F]=p.useState(!1),[S,L]=p.useState(!1),[x,N]=p.useState(!1),j=f(o=>b(o)),y=f(o=>o.taskGroupViewState.fetchState);p.useEffect(()=>{k||(F(!0),t(v(!1,d)))},[k,t]),p.useEffect(()=>{S||j.fetchState==="Completed"||(L(!0),t(X()))},[S,t,j.fetchState]),p.useEffect(()=>{x||y==="Completed"||(N(!0),t(Y()))},[x,t,y]);const D=f(o=>P(o,d)),g=D.fetchState,T=w.getSignedInUser();if(T==null)throw Error("Can't access task detail page without signing in...");if(g==="Error"&&D.error?.code===400){const{tenantEmailDomain:o}=i,h=B(o),U=C(n.state?.pathnameStackToGoBack,n.pathname);return s.jsx(z,{to:h,state:{pathnameStackToGoBack:U}})}return s.jsxs(s.Fragment,{children:[g==="Completed"?s.jsx(Q,{analytics:E,onLoad:o=>(h=>h.trackPageLoaded(W.Event.taskDetailPage))(o)}):null,s.jsxs(ga,{children:[s.jsx(ua,{isAppContentDrawerOpen:e,handleDrawerToggle:o=>{r(o)}}),s.jsx(fa,{analytics:E,currentTenant:i,handleZeniLogoClick:()=>{l.toggle()},initialOpenThreadRequest:m,location:n,loggedInUser:T,navigate:a,taskGroupId:c,taskId:d,taskDetailFetchState:g})]})]})}const ga=pa.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: ${a=>a.theme.colors.grey4};
9
- `,B=a=>`/${a}/tasks`;function Aa(){return s.jsxs(_,{children:[s.jsx(u,{path:"/new",element:s.jsx(I,{})}),s.jsx(u,{path:"/new/:taskGroupId",element:s.jsx(I,{})}),s.jsx(u,{path:"/group/:taskGroupId",element:s.jsx(ka,{})}),s.jsx(u,{path:"/:taskId",element:s.jsx(I,{})}),s.jsx(u,{path:"*",element:s.jsx(M,{})})]})}export{Aa as default};
@@ -1 +0,0 @@
1
- import{j as t}from"./liveblocks-BOEQeN-H.js";import i from"./NotFoundScreen-C3zjg2pa.js";import{T as r}from"./TransactionDetailScreen-v_iRnLm6.js";import"./sentry-BcE91o8k.js";import{n as d,o as e}from"./core-BxynaUfL.js";import"./zeni-epic-state-C9u4BvTm.js";import"./recharts-DFfCUpO3.js";import"./index-CMN0VTWt.js";import"./mui-D7DqO3YQ.js";import"./analytics-Fp0p9zzF.js";import"./plaid-lowWm0fK.js";import"./dnd-DTmBUnLk.js";import"./stripe-DMRn4zHo.js";import"./lottie-CHRWrHfY.js";import"./lexical-BgdBwfNo.js";import"./pdf-DEWT-QpZ.js";import"./utils-BMw-tiy-.js";import"./useAskAiCfoHostNavButtonProps-CIv6_RmV.js";import"./useFetchSuggestedQuestionsWhenReady-Bpx2l830.js";import"./decodeURIComponentSafe-C4CdHegQ.js";import"./routePaths-tLvi4-VJ.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]="256f287b-7a3d-4d6d-890e-a8cb9db8b86d",o._sentryDebugIdIdentifier="sentry-dbid-256f287b-7a3d-4d6d-890e-a8cb9db8b86d")}catch{}})();function q(){return t.jsxs(d,{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{q as default};
@@ -1,12 +0,0 @@
1
- import{j as o}from"./liveblocks-BOEQeN-H.js";import{a as f}from"./sentry-BcE91o8k.js";import{q as u,h,g as y,N as I}from"./core-BxynaUfL.js";import{IA as w,eN as b,yV as x}from"./zeni-epic-state-C9u4BvTm.js";import{z as l,w as j,I as S,K as D}from"./index-CMN0VTWt.js";import{n as g}from"./mui-D7DqO3YQ.js";import"./recharts-DFfCUpO3.js";import"./analytics-Fp0p9zzF.js";import"./plaid-lowWm0fK.js";import"./dnd-DTmBUnLk.js";import"./stripe-DMRn4zHo.js";import"./lottie-CHRWrHfY.js";import"./lexical-BgdBwfNo.js";import"./pdf-DEWT-QpZ.js";import"./utils-BMw-tiy-.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]="044aded8-8a01-4055-a904-a14ab42e682f",e._sentryDebugIdIdentifier="sentry-dbid-044aded8-8a01-4055-a904-a14ab42e682f")}catch{}})();const W=()=>{const[e]=u(),t=e.get("code")??"",s=e.get("state")??"",p=e.get("profileId")??"",[a,m]=f.useState(!1),n=h(),i=y(c=>w(c)),r=l.getSignedInUser(),d=l.getSignedInUserTenantWithId(s);if(r==null||d==null)return o.jsx(I,{to:"/signin/auth",replace:!0});if(r==null)throw Error("Can't access this page without signing in...");return b(r.userId,r.zeniSessionId,d?.tenantId),f.useEffect(()=>{a||(m(!0),n(x(t,p,s)))},[a,n]),i.fetchState==="Error"?o.jsx(E,{children:o.jsx(_,{children:i.error?.message??""})}):(i.fetchState==="Completed"&&window.close(),o.jsx(j,{fetchState:"In-Progress"}))},E=g.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
- `,_=g(D.LargeRegular)`
10
- display: flex;
11
- color: ${S.important};
12
- `;export{W as default};
@@ -1,9 +0,0 @@
1
- import{j as c}from"./liveblocks-BOEQeN-H.js";import{a as f}from"./sentry-BcE91o8k.js";import{j as x,h as $,u as j,l as v,g as p}from"./core-BxynaUfL.js";import{HA as s,Hz as z,NH as B,eM as C,NI as N}from"./zeni-epic-state-C9u4BvTm.js";import{J as D,ao as g,h as E,z as L,w as P,bW as T,q as H}from"./index-CMN0VTWt.js";import{n as M}from"./mui-D7DqO3YQ.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]="914ada63-408b-48fa-8a5e-b609e8036e69",e._sentryDebugIdIdentifier="sentry-dbid-914ada63-408b-48fa-8a5e-b609e8036e69")}catch{}})();const _=M.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 W(){const e=x(),n=$(),d=D(),l=j();let{accountId:a}=v(),m=`${g.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${a}`;a==null&&l.pathname.includes(`${s}/statements`)&&(a=s,m=`${g.bankingMicroServiceBaseUrl}/1.0/${s}`);const[u,y]=f.useState(!1),h=E();f.useEffect(()=>{u||(y(!0),n(z(a??"",!1)))},[u,n]);const o=p(t=>B(t,a??"")),b=()=>{const t=H(l.state?.pathnameStackToGoBack),S=t.poppedPathname??"..";e(S,{state:{pathnameStackToGoBack:t.newStack}})},r=L.getSignedInUser(),i=p(t=>C(t)),I={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:i.tenantId??""},w=N(a??"")===!0?s:o.zeniAccountDetail?.accountLast4??"",k=i.company?.companyInfo.companyLegalName??i.companyName;if(r==null)throw Error("Can't access address page without signing in...");return o.fetchState!=="Completed"?c.jsx(P,{fetchState:"In-Progress",style:{backgroundColor:h.colors.grey5}}):c.jsx(_,{windowSize:d,children:c.jsx(T,{currentTenantCompanyName:k,statementListView:o,accountLast4:w,onBackClick:b,authParams:I,downloadEndPoint:m})})}export{W as Z};
@@ -1 +0,0 @@
1
- import{a as b}from"./sentry-BcE91o8k.js";import{J as p,a as d,r as m,T as u}from"./index-CMN0VTWt.js";import"./mui-D7DqO3YQ.js";import{b as y}from"./useFetchSuggestedQuestionsWhenReady-Bpx2l830.js";import{j as k,u as g,l as h}from"./core-BxynaUfL.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]="00ecfe78-5bf7-4269-a6fb-10802b97860c",e._sentryDebugIdIdentifier="sentry-dbid-00ecfe78-5bf7-4269-a6fb-10802b97860c")}catch{}})();function T(e){const{isAiCfoOpen:a,setIsAiCfoOpen:t,mobileExploreReferrer:n}=e,r=k(),o=g(),{tenantEmailDomain:s}=h(),i=p(),f=u(i),l=d();return{isAiCfoAccessEnabled:y()&&l&&!a,onAskAiCfoClick:b.useCallback(()=>{if(s!=null)if(f){const c=m(o.state?.pathnameStackToGoBack,o.pathname);r(`/${s}/ai-cfo/explore`,{state:{pathnameStackToGoBack:c,referrer:n}})}else t(!0)},[f,o.pathname,o.state,n,r,t,s])}}export{T as u};