@zeniai/web-app-ui 5.0.34-qa → 5.0.35-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 (120) hide show
  1. package/dist/assets/AddressRoutes-3WEV_IDY.js +1 -0
  2. package/dist/assets/{AddressScreen-BzneUOo4.js → AddressScreen-DHdHIQtB.js} +2 -2
  3. package/dist/assets/{AiCfoScreen-D9CKKCB1.js → AiCfoScreen-BhzTgFiw.js} +2 -2
  4. package/dist/assets/{BillPayApprovalRoutes-udIinwV1.js → BillPayApprovalRoutes-DA0GkQvq.js} +1 -1
  5. package/dist/assets/{BillPayRoutes-BCdkqOaO.js → BillPayRoutes-CdGhtak3.js} +1 -1
  6. package/dist/assets/{BusinessVerificationPageScreen-X7xY6NZn.js → BusinessVerificationPageScreen-vJgUTiwv.js} +2 -2
  7. package/dist/assets/{ChargeCardRoutes-CboNm6AT.js → ChargeCardRoutes-mRwxVyTO.js} +8 -8
  8. package/dist/assets/CompanyPassportScreen-BzvRUSQp.js +1 -0
  9. package/dist/assets/{ConnectionAuthScreen-Bxjs6s-n.js → ConnectionAuthScreen-hJ5bfIH7.js} +1 -1
  10. package/dist/assets/CustomerOnboardingAuthScreen-Bwg5qQD_.js +1 -0
  11. package/dist/assets/{CustomerOnboardingRoutes-Bdd93GLs.js → CustomerOnboardingRoutes-D3CsgtWm.js} +4 -4
  12. package/dist/assets/{DashboardRoutes-DnO_uZew.js → DashboardRoutes-CCgT0PhE.js} +3 -3
  13. package/dist/assets/{DefaultTenantHome-B03RLRZu.js → DefaultTenantHome-DWCxXcon.js} +1 -1
  14. package/dist/assets/DomesticWireDetailScreen-CJP0cYEP.js +18 -0
  15. package/dist/assets/DrawerScreen-C1TnyHMa.js +1 -0
  16. package/dist/assets/EntityDetailRoutes-Qmmvv38B.js +1 -0
  17. package/dist/assets/{ExpenseAutomationRoutes-D4GTQt75.js → ExpenseAutomationRoutes-DsTzqdwU.js} +1 -1
  18. package/dist/assets/FeaturePreviewScreen-CFkQ1SQx.js +1 -0
  19. package/dist/assets/{MagicLinkRoutes-L1upryKn.js → MagicLinkRoutes-bTXqx2sy.js} +6 -6
  20. package/dist/assets/MagicLinkSignInScreen-Ch9tkQh6.js +12 -0
  21. package/dist/assets/{MobileAppDrawer-CRSAzIxd.js → MobileAppDrawer-DvG5gJ15.js} +1 -1
  22. package/dist/assets/NotFoundScreen-D9U9JdnM.js +1 -0
  23. package/dist/assets/{NotificationRoutes-PMbfvT4N.js → NotificationRoutes-BlBO0YR1.js} +1 -1
  24. package/dist/assets/PandLWithForecastRoutes-CfToeBbi.js +1 -0
  25. package/dist/assets/PeopleRoutes-Dg-C28lR.js +22 -0
  26. package/dist/assets/PerformanceRoutes-Ye9B8E45.js +1 -0
  27. package/dist/assets/{Preview-DAblAbpj.js → Preview-BbVH-6bH.js} +1 -1
  28. package/dist/assets/{QBOConnectionScreen-BzAa2D27.js → QBOConnectionScreen-Dy5vR9Yr.js} +1 -1
  29. package/dist/assets/ReferralListScreen-B4KYWwen.js +5 -0
  30. package/dist/assets/{ReimbursementApprovalRoutes-DPb24H1O.js → ReimbursementApprovalRoutes-BEUxHsg8.js} +1 -1
  31. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-BMT0CGtI.js → ReimbursementApprovalRuleDetailScreen-CMPqPG3U.js} +1 -1
  32. package/dist/assets/{ReimbursementRoutes-R1LL2Jul.js → ReimbursementRoutes-C0eCEfY0.js} +4 -4
  33. package/dist/assets/{ReportsRoutes-CBujwpU2.js → ReportsRoutes-tkgmjTD1.js} +1 -1
  34. package/dist/assets/RewardsRoutes-CrHzO3g-.js +1 -0
  35. package/dist/assets/ScreenRoutes-CWqttGks.js +2 -0
  36. package/dist/assets/{SettingsRoutes-3ioUPEs0.js → SettingsRoutes-VugGDW7q.js} +6 -6
  37. package/dist/assets/{SetupPagesScreen-D2Rtk73R.js → SetupPagesScreen-EtV9_VSj.js} +5 -5
  38. package/dist/assets/SignInScreen-DO2eKYhp.js +1 -0
  39. package/dist/assets/SignOutScreen-BZasc741.js +9 -0
  40. package/dist/assets/{TaskListScreen-Bct_XoDl.js → TaskListScreen-W8sHldFK.js} +2 -2
  41. package/dist/assets/{TaskRoutes-CLf_GzX3.js → TaskRoutes-BWfsqYOF.js} +1 -1
  42. package/dist/assets/TransactionDetailRoutes-DDz1zqu3.js +1 -0
  43. package/dist/assets/{TransactionDetailScreen-jNt-QdhE.js → TransactionDetailScreen-BL53vTcK.js} +2 -2
  44. package/dist/assets/{TransactionListRoutes-CZPaPN_2.js → TransactionListRoutes-9Zbnw9hY.js} +1 -1
  45. package/dist/assets/{TreasuryRoutes-C80Fysyq.js → TreasuryRoutes-JC_WOiG_.js} +6 -6
  46. package/dist/assets/{VendorsRoutes-DUgIWngO.js → VendorsRoutes-BTA0FcW-.js} +10 -10
  47. package/dist/assets/WiseConfirmationScreen-xODhNhCG.js +12 -0
  48. package/dist/assets/ZeniAccountRoutes-Bob9e5Lf.js +66 -0
  49. package/dist/assets/ZeniAccountStatementScreen-f8D-xrxi.js +9 -0
  50. package/dist/assets/{accountMappingHelper-1H6YzkWh.js → accountMappingHelper-xZvH7myI.js} +1 -1
  51. package/dist/assets/{analytics-D6PJZcCm.js → analytics-ZBaPMYvi.js} +1 -1
  52. package/dist/assets/{analyticsHelper-By8O4tIS.js → analyticsHelper-2PTnaCzY.js} +1 -1
  53. package/dist/assets/{core-C33SxPr0.js → core-DM1rowt8.js} +1 -1
  54. package/dist/assets/{decodeURIComponentSafe-DBubftdA.js → decodeURIComponentSafe-D0zhq0x7.js} +1 -1
  55. package/dist/assets/{dnd-WhcD1exD.js → dnd-C-Lnhdag.js} +1 -1
  56. package/dist/assets/{empty-CdwAoCYs.js → empty-CzFL6xhQ.js} +1 -1
  57. package/dist/assets/{empty-CH-y1nWQ.js → empty-D1U7YTsh.js} +1 -1
  58. package/dist/assets/{emptyVideoElement-D7Jr7Sdq.js → emptyVideoElement-B21ksJRH.js} +1 -1
  59. package/dist/assets/{epic-CWZablXh.js → epic-BmEhQOaL.js} +1 -1
  60. package/dist/assets/getLocaleForTenant-dha6PIh0.js +1 -0
  61. package/dist/assets/{index-DOtJS3_4.js → index-BrzMHfEZ.js} +2 -2
  62. package/dist/assets/{index-B0trrGH2.js → index-CID5TSpA.js} +1 -1
  63. package/dist/assets/{index-lRVIqDxX.js → index-Cb73b08V.js} +10568 -10380
  64. package/dist/assets/{index-VKfxo2ml.js → index-CrSe_x4f.js} +1 -1
  65. package/dist/assets/{index-li9kl9K_.js → index-DoOZkXVc.js} +1 -1
  66. package/dist/assets/{index-DZESz0T9.js → index-NBq_W8MN.js} +1 -1
  67. package/dist/assets/{index-DorjXAyZ.js → index-qDQ5flzN.js} +1 -1
  68. package/dist/assets/{lexical-QnRSjOj3.js → lexical-C5McV7XP.js} +1 -1
  69. package/dist/assets/{liveblocks-CobNzJQ8.js → liveblocks-BjW28Jor.js} +1 -1
  70. package/dist/assets/{lottie-C3pXl1t7.js → lottie-Lcmd6dcO.js} +1 -1
  71. package/dist/assets/{mui-BZJL7p2F.js → mui-D2eUyq0K.js} +1 -1
  72. package/dist/assets/{pathToGoBack-CZlpwtCa.js → pathToGoBack-BzV0PkoJ.js} +1 -1
  73. package/dist/assets/{pdf-B8JyBdKX.js → pdf-CnfUruOo.js} +3 -3
  74. package/dist/assets/{pdf-lib-ALX3DMYD.js → pdf-lib-w9llU0aY.js} +1 -1
  75. package/dist/assets/{plaid-JaP9Mc6f.js → plaid-BjrBUBaH.js} +1 -1
  76. package/dist/assets/{pusher-D0u2ilRO.js → pusher-C56PjV1T.js} +1 -1
  77. package/dist/assets/{react-D9j1suk9.js → react-BAZC123N.js} +1 -1
  78. package/dist/assets/{react-6yjdboHz.js → react-Bj4rG6HA.js} +1 -1
  79. package/dist/assets/{react-DCJPlJgN.js → react-C1mjYQZn.js} +1 -1
  80. package/dist/assets/{react-i0rXVvq8.js → react-CZyOFSB_.js} +1 -1
  81. package/dist/assets/{react-CrQJkVRu.js → react-DJgT0dzX.js} +1 -1
  82. package/dist/assets/{react-D2VdXtRP.js → react-DTlWrv59.js} +1 -1
  83. package/dist/assets/{recharts-DgAB7GKe.js → recharts-Boi6IWgf.js} +1 -1
  84. package/dist/assets/{routePaths-NebWlLTP.js → routePaths-BlrSfedH.js} +1 -1
  85. package/dist/assets/{sentry-4KELney1.js → sentry-Cxwj7RZa.js} +1 -1
  86. package/dist/assets/{url-xkPMMYm1.js → url-DP5jm42y.js} +1 -1
  87. package/dist/assets/{url-Bgtn40KH.js → url-YwSHsZ0_.js} +1 -1
  88. package/dist/assets/useAskAiCfoHostNavButtonProps-amkrtBpQ.js +1 -0
  89. package/dist/assets/{useDeviceId-aR311Sxi.js → useDeviceId-VctjeswX.js} +1 -1
  90. package/dist/assets/useFetchSuggestedQuestionsWhenReady-gIKSMWV6.js +1 -0
  91. package/dist/assets/{useInitialThreadRequest-C9yfgS4j.js → useInitialThreadRequest-BrNpT4Fp.js} +1 -1
  92. package/dist/assets/{utils-BZbMXTZs.js → utils-DnmDUA9M.js} +1 -1
  93. package/dist/assets/{withTransactionSidePanel-DOPR40fV.js → withTransactionSidePanel-DwkjF9He.js} +2 -2
  94. package/dist/assets/{zeni-epic-state-Bc0tGzp_.js → zeni-epic-state-CsIRSm_7.js} +3 -3
  95. package/dist/index.html +1 -1
  96. package/package.json +3 -3
  97. package/dist/assets/AddressRoutes-BAoL9X9M.js +0 -1
  98. package/dist/assets/CompanyPassportScreen-CMPOjcMf.js +0 -1
  99. package/dist/assets/CustomerOnboardingAuthScreen-COffYNOY.js +0 -1
  100. package/dist/assets/DomesticWireDetailScreen-BHBtD4Ei.js +0 -18
  101. package/dist/assets/DrawerScreen-fCclT3hl.js +0 -1
  102. package/dist/assets/EntityDetailRoutes-BO4dqv98.js +0 -1
  103. package/dist/assets/FeaturePreviewScreen-6rYoc9P_.js +0 -1
  104. package/dist/assets/MagicLinkSignInScreen-BWIXYHAU.js +0 -12
  105. package/dist/assets/NotFoundScreen-Tw99uwdp.js +0 -1
  106. package/dist/assets/PandLWithForecastRoutes-CLt1i3Y0.js +0 -1
  107. package/dist/assets/PeopleRoutes-RW_096jh.js +0 -22
  108. package/dist/assets/PerformanceRoutes-BavcAJuZ.js +0 -1
  109. package/dist/assets/ReferralListScreen-5n3Bty0k.js +0 -5
  110. package/dist/assets/RewardsRoutes-B2TCCUZn.js +0 -1
  111. package/dist/assets/ScreenRoutes-gVHLxFNG.js +0 -2
  112. package/dist/assets/SignInScreen-C7e3HnQN.js +0 -1
  113. package/dist/assets/SignOutScreen-Cws41GRM.js +0 -9
  114. package/dist/assets/TransactionDetailRoutes-Cv-b9ox5.js +0 -1
  115. package/dist/assets/WiseConfirmationScreen-CQ0UicYt.js +0 -12
  116. package/dist/assets/ZeniAccountRoutes-D4tdV3pp.js +0 -66
  117. package/dist/assets/ZeniAccountStatementScreen-CdjQf0_x.js +0 -9
  118. package/dist/assets/getLocaleForTenant-BYoBh_m7.js +0 -1
  119. package/dist/assets/useAskAiCfoHostNavButtonProps-jfcpkpra.js +0 -1
  120. package/dist/assets/useFetchSuggestedQuestionsWhenReady-Ds-n57vC.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-lRVIqDxX.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-4KELney1.js"><link rel="modulepreload" crossorigin href="/assets/core-C33SxPr0.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-Bc0tGzp_.js"><link rel="modulepreload" crossorigin href="/assets/mui-BZJL7p2F.js"><link rel="modulepreload" crossorigin href="/assets/analytics-D6PJZcCm.js"><link rel="modulepreload" crossorigin href="/assets/utils-BZbMXTZs.js"><link rel="stylesheet" crossorigin href="/assets/index-Bc34frN_.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-Cb73b08V.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-Cxwj7RZa.js"><link rel="modulepreload" crossorigin href="/assets/core-DM1rowt8.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-CsIRSm_7.js"><link rel="modulepreload" crossorigin href="/assets/mui-D2eUyq0K.js"><link rel="modulepreload" crossorigin href="/assets/analytics-ZBaPMYvi.js"><link rel="modulepreload" crossorigin href="/assets/utils-DnmDUA9M.js"><link rel="stylesheet" crossorigin href="/assets/index-Bc34frN_.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.34-qa",
3
+ "version": "5.0.35-dev",
4
4
  "files": [
5
5
  "dist/**/*"
6
6
  ],
@@ -28,8 +28,8 @@
28
28
  "@sentry/react": "^9.42.1",
29
29
  "@stripe/stripe-js": "^4.4.0",
30
30
  "@zeniai/client-analytics": "2.0.3",
31
- "@zeniai/client-epic-state": "5.0.16",
32
- "@zeniai/web-components": "4.0.38",
31
+ "@zeniai/client-epic-state": "5.0.17",
32
+ "@zeniai/web-components": "4.0.40",
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-CobNzJQ8.js";import{A as d}from"./AddressScreen-BzneUOo4.js";import i from"./NotFoundScreen-Tw99uwdp.js";import"./sentry-4KELney1.js";import{n as s,o as r}from"./core-C33SxPr0.js";import"./zeni-epic-state-Bc0tGzp_.js";import"./recharts-DgAB7GKe.js";import"./index-lRVIqDxX.js";import"./mui-BZJL7p2F.js";import"./analytics-D6PJZcCm.js";import"./plaid-JaP9Mc6f.js";import"./dnd-WhcD1exD.js";import"./stripe-DMRn4zHo.js";import"./lottie-C3pXl1t7.js";import"./lexical-QnRSjOj3.js";import"./pdf-B8JyBdKX.js";import"./utils-BZbMXTZs.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 +0,0 @@
1
- import{j as m}from"./liveblocks-CobNzJQ8.js";import{a as g}from"./sentry-4KELney1.js";import{j as w,h as x,u as k,l as T,g as O,k as E}from"./core-C33SxPr0.js";import{z as C,b0 as F,J as P,e as L,g as V,aa as N,b1 as j,ao as A,ap as U,s as B}from"./index-lRVIqDxX.js";import{eN as b,fC as M,rx as _,fx as G,c0 as R,Lw as z,bn as Y,pF as $,pt as H,j$ as J,lv as S,Lx as Z,bC as q,cs as D,lD as K,lG as Q}from"./zeni-epic-state-Bc0tGzp_.js";import"./mui-BZJL7p2F.js";import{c as W}from"./routePaths-NebWlLTP.js";import{M as X}from"./MobileAppDrawer-CRSAzIxd.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new n.Error().stack;t&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[t]="3d447725-41e7-43a0-bdc7-52c58a4ae10c",n._sentryDebugIdIdentifier="sentry-dbid-3d447725-41e7-43a0-bdc7-52c58a4ae10c")}catch{}})();const ee=E(function(n){const t=G(n),i=C.getSignedInUser(),l=b(n),c=l.tenantId,p={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:c??""},f=R(l?.userRole??[])&&t.localData.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",e=z(n.companyConfigState),a=n.countryListState?.byCountryListCode?.nationalityCountryList?.countries??[];return{isCompanyVerified:t.companyView?.company?.company?.companyBillPayInfo?.companyVerificationStatus?.code==="verified",companyPassportView:t,allIndustries:e.companyIndustries??[],allNationalityCountries:a,isDisabled:f,authParams:p,filesEndPoint:`${A.fileMicroServiceBaseUrl}`,isZeniUser:Y(i)}},function(n,t){const{companyId:i,currentTenant:l,navigate:c,location:p}=t,{tenantEmailDomain:f}=l;return{onScheduleClick:e=>{let a=e.href;a.includes("http")||(a="https://".concat(a)),window.open(a,"_blank")},onSaveAll:()=>{n(Q())},onAddressClick:e=>{const a=W(f,e),o=B(p.state?.pathnameStackToGoBack,p.pathname);c(a,{state:{pathnameStackToGoBack:o}})},onResetClick:()=>{n(K({companyId:i}))},onBackClick:()=>{c("../")},onCompanyDetailsChanged:e=>{const{companyInfo:a,incInfo:o,taxDetails:r,zeniFinanceTeam:d}=e,{website:u}=a,{meetingLink:y}=d,{incDate:s}=o,{taxesFiledYears:h}=r,v={companyInfo:{...a,website:u!=""&&u!=null?D(u):void 0,meetingLink:y!=""&&y!=null?D(y):void 0,industry:a.industry.selectedOption,companyIndustryType:a.companyIndustryType?.selectedOption??void 0,companySubIndustry:a.companySubIndustry?.selectedOption??void 0,businessModel:a.businessModel.selectedOption??"",companySourceOfFunds:a.companySourceOfFunds?.selectedOption,companySourceOfFundsDescription:a.companySourceOfFundsDescription??void 0,countriesOfOperations:a.countriesOfOperations?.selectedOptions?.map(I=>I.length===2?I:U(I))??[],transactionVolume:a.transactionVolume?.selectedOption??void 0,transactionVolumeDescription:a.transactionVolumeDescription??void 0,regulatedStatus:a.regulatedStatus??void 0,regulatedStatusDescription:a.regulatedStatusDescription??void 0,usNexus:a.usNexus??void 0,usNexusTypes:a.usNexusTypes?.selectedOptions??[],purposeOfAccount:a.purposeOfAccount?.selectedOption??void 0,purposeOfAccountDescription:a.purposeOfAccountDescription??void 0},incInfo:{typeOfInc:o.typeOfInc.selectedOption??"",stateOfInc:o.stateOfInc.selectedOption??"",incDate:s!=null?q(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]}};n(S({companyDetails:v}))},onPrimaryContactDetailsUpdated:e=>{n(S({primaryContact:{userId:e.userId,email:e.email.trim(),firstName:e.name.firstName,lastName:e.name.lastName}}))},onNewCompanyOfficerAdded:e=>{n(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=>{n(Z(e))},onCompanyOfficerUpdated:e=>{n(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=>{n(J({files:e}))},onDeleteFile:e=>{n(H(e))},onEditFileName:(e,a)=>{n($(e,a.split(".")[0]))}}})(j);function de(){const n=w(),t=x(),i=k(),{tenantEmailDomain:l}=T(),[c,p]=g.useState(!1),[f,e]=g.useState(!1),a=O(s=>s.companyViewState.passportView.fetchState),o=O(s=>s.companyConfigState.fetchState),r=O(s=>b(s)),d=r.companyId??C.getSignedInUserTenant(l)?.companyId;if(C.getSignedInUser()==null)throw Error("Can't access company details page without signing in...");g.useEffect(()=>{c||a!=="Not-Started"||d==null||(p(!0),t(M(d)))},[c,a,d,t]),g.useEffect(()=>{o==="Not-Started"&&t(_())},[o,t]);const u=s=>{e(s)},y=a==="Not-Started"||a==="In-Progress"||o==="Not-Started"||o==="In-Progress";return d!=null&&a==="Error"?m.jsx(F,{onGoHome:()=>n("../",{replace:!0}),onReload:()=>window.location.reload()}):m.jsxs(m.Fragment,{children:[m.jsx(P,{analytics:L,onLoad:s=>s.trackPageLoaded(V.Event.companyPassport,N(i)?"Settings":"Company Passport")}),N(i)?m.jsx(X,{isAppContentDrawerOpen:f,handleDrawerToggle:u}):null,m.jsx(ee,{companyId:d,navigate:n,location:i,isLoading:y,currentTenant:r,isSettings:N(i),onClickMenuIcon:()=>{u(!0)}})]})}export{de as C};
@@ -1 +0,0 @@
1
- import{j as d}from"./liveblocks-CobNzJQ8.js";import{z as n}from"./index-lRVIqDxX.js";import{g as p}from"./QBOConnectionScreen-BzAa2D27.js";import"./sentry-4KELney1.js";import{u as a,N as i}from"./core-C33SxPr0.js";import"./zeni-epic-state-Bc0tGzp_.js";import"./recharts-DgAB7GKe.js";import"./mui-BZJL7p2F.js";import"./analytics-D6PJZcCm.js";import"./plaid-JaP9Mc6f.js";import"./dnd-WhcD1exD.js";import"./stripe-DMRn4zHo.js";import"./lottie-C3pXl1t7.js";import"./lexical-QnRSjOj3.js";import"./pdf-B8JyBdKX.js";import"./utils-BZbMXTZs.js";import"./empty-CH-y1nWQ.js";import"./pdf-lib-ALX3DMYD.js";import"./index-VKfxo2ml.js";import"./url-Bgtn40KH.js";import"./index-B0trrGH2.js";import"./decodeURIComponentSafe-DBubftdA.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,18 +0,0 @@
1
- import{j as l}from"./liveblocks-CobNzJQ8.js";import{j as w,u as C,g as h,k as A,l as B}from"./core-C33SxPr0.js";import{Md as k,Mk as _,fA as L,fz as q,fy as J,io as W,Jl as K,pw as Q,eN as V,LL as D,il as T,Me as S,Mn as F,ij as G,iH as j}from"./zeni-epic-state-Bc0tGzp_.js";import{bm as X,Z as N,a as R,z as U,h as Z,q as p,d as v,B as z,bn as Y,o as H,bo as ee,s as te}from"./index-lRVIqDxX.js";import{n as M}from"./mui-BZJL7p2F.js";import"./sentry-4KELney1.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]="81acb483-c6e1-435e-808a-b37d534a4dbc",e._sentryDebugIdIdentifier="sentry-dbid-81acb483-c6e1-435e-808a-b37d534a4dbc")}catch{}})();const ne=A(null,function(e,t){return{onSaveVendor:n=>{e(W(t.vendorId!==void 0?t.vendorId:void 0,t.billId,void 0,t.isExpressPayPage)),e(K("common")),n!=null&&e(Q(n))},onGetOtp:n=>{e(J(n,"BillPayVendor"))},onResendOtp:n=>{e(q(n,"BillPayVendor"))},onVerifyOtp:(n,a)=>{e(L(n,a,"BillPayVendor"))},onVerifyOtpSuccess:(n,a,o)=>{e(_(n,a,o))}}})(X);function O({vendorId:e,billId:t,isExpressPayPage:n}){const a=w(),o=C(),s=h(r=>k(r,e));return l.jsx(ne,{location:o,navigate:a,vendorId:e,billId:t,vendorViewDetails:s,isExpressPayPage:n??!1})}const ae=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
- `,oe=A(function(e,t){const{vendorId:n,billId:a}=t,o=k(e,n),s=D(e,t.isVendorRecommendationEnabled,t.isZeniAccountsFeatureEnabled,a);return{billId:a,isDisabled:o.bankAccountCreationState.fetchState==="In-Progress"?"readonly":void 0,vendorViewDetails:o,file:s.file,bankAccountContext:t.bankAccountContext}},function(e,t){const{navigate:n,location:a,vendorId:o}=t;return{onFetchBankName:s=>{e(j(s))},onSaveHandler:s=>{e(G(t.bankAccountContext,s,"standard",o))},onCancel:()=>{(()=>{const s=p(a.state?.pathnameStackToGoBack),r=s.poppedPathname??P();n(r,{state:{pathnameStackToGoBack:s.newStack}})})(),e(S())},onACHDetailsUpdated:s=>{const{bankAccountSection:r}=s;e(F({data:r}))},onBackClick:()=>{if(e(T({fetchState:"Not-Started"})),t.bankAccountContext==="express-pay")n("../",{relative:"path"});else{const s=p(t.location.state?.pathnameStackToGoBack),r=s.poppedPathname??P(0);t.navigate(r,{state:{pathnameStackToGoBack:s.newStack}})}e(S())}}})(Y);function me({vendorIdParam:e,accountContext:t}){const n=w(),a=C(),o=N(),{vendorId:s,billId:r}=B(),i=e??s,{useFeatureGate:c}=R(),d=U.getSignedInUser(),b=h(u=>V(u)),g=Z(),x=p(a.state?.pathnameStackToGoBack),m=t??(x.poppedPathname?.includes("vendor")===!0?"vendor":"billDetail"),f=h(u=>k(u,i)),{isFeatureEnabled:I}=c(v.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:y}=c(v.isDepositAccountsFeatureEnabled);if(d==null)throw Error("Can't access address page without signing in...");return m==="billDetail"&&f.editVendorState?.saveStatus.fetchState==="In-Progress"?l.jsx(z,{fetchState:f.editVendorState?.saveStatus.fetchState??"Not-Started",style:{backgroundColor:g.colors.grey5}}):l.jsxs(ae,{windowSize:o,children:[l.jsx(O,{vendorId:i,billId:r}),l.jsx(oe,{location:a,navigate:n,billId:r,vendorId:i,currentTenant:b,bankAccountContext:m,isVendorRecommendationEnabled:I,isZeniAccountsFeatureEnabled:y})]})}const P=(e=2)=>{let t="../";for(let n=0;n<e;n++)t=`${t}../`;return t},fe=(e,t,n)=>{let a=`/${e}/bill/${encodeURIComponent(t)}`;return n=="draft"&&(a+="/edit"),a},he=e=>`/${e}/bills`,ke=(e,t)=>{let n=`/${e}/bill`;return n=t!=null?n.concat(`/${t}/edit`):n.concat("/new"),n},E=(e,t,n,a)=>{let o=`/${e}/bill`;return o+=n!=null?`/${n}/edit/vendor`:"/new/vendor",o+=a!=null?`/${a}/edit/${t}`:`/create/${t}`,o};function Se(e,t,n){return E(e,"ach",t,n)}function ve(e,t,n){return E(e,"domestic",t,n)}function ge(e,t,n){return E(e,"international",t,n)}const se=(e,t,n)=>{let a=`/${e}/bill/`;return a=n!=null?a.concat(`${encodeURIComponent(n)}/${t}/`):a.concat(`new/${t}/`),a},ce=M.div`
10
- display: flex;
11
- height: 100vh;
12
- width: 100%;
13
- flex: 1 1 auto;
14
- flex-direction: column;
15
- align-items: center;
16
- background-color: ${e=>e.theme.colors.grey4};
17
- box-shadow: ${e=>`0px 2px ${H.sp1} ${e.theme.colors.dropShadowNormal}`};
18
- `,re=A(function(e,t){const{vendorId:n,billId:a}=t,o=k(e,n),s=D(e,t.isVendorRecommendationEnabled,t.isZeniAccountsFeatureEnabled,a);return{billId:a,isDisabled:o.bankAccountCreationState.fetchState==="In-Progress"?"readonly":void 0,vendorViewDetails:o,file:s.file,bankAccountContext:t.bankAccountContext}},function(e,t){const{billId:n,navigate:a,location:o,vendorId:s,currentTenant:r}=t,{tenantEmailDomain:i}=r;return{onFetchBankName:c=>{e(j(c))},onSaveHandler:c=>{e(G(t.bankAccountContext,c,"us-domestic",s))},onWireDetailsUpdated:c=>{const{bankAccountSection:d}=c;e(F({data:d}))},onCancel:()=>{(()=>{const c=p(o.state?.pathnameStackToGoBack),d=c.poppedPathname??$();a(d,{state:{pathnameStackToGoBack:c.newStack}})})(),e(S())},onAddressClick:c=>{if(t.bankAccountContext==="express-pay")a("./add-address");else{const d=se(i,c,n),b=te(o.state?.pathnameStackToGoBack,o.pathname);a(d,{state:{pathnameStackToGoBack:b}})}},onBackClick:()=>{if(e(T({fetchState:"Not-Started"})),t.bankAccountContext==="express-pay")a("../",{relative:"path"});else{const c=p(t.location.state?.pathnameStackToGoBack),d=c.poppedPathname??$(0);t.navigate(d,{state:{pathnameStackToGoBack:c.newStack}})}e(S())}}})(ee);function xe({vendorIdParam:e,accountContext:t}){const n=w(),a=C(),o=N(),{vendorId:s,billId:r}=B(),i=e??s,c=U.getSignedInUser(),{useFeatureGate:d}=R(),b=Z(),g=h(u=>V(u)),x=p(a.state?.pathnameStackToGoBack),m=t??(x.poppedPathname?.includes("vendor")===!0?"vendor":"billDetail"),f=h(u=>k(u,i)),{isFeatureEnabled:I}=d(v.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:y}=d(v.isDepositAccountsFeatureEnabled);if(c==null)throw Error("Can't access address page without signing in...");return m==="billDetail"&&f.editVendorState?.saveStatus.fetchState==="In-Progress"?l.jsx(z,{fetchState:f.editVendorState?.saveStatus.fetchState??"Not-Started",style:{backgroundColor:b.colors.grey5,boxShadow:`0px 2px ${H.sp1} ${b.colors.dropShadowNormal}`}}):l.jsxs(ce,{windowSize:o,children:[l.jsx(O,{vendorId:i,billId:r}),l.jsx(re,{location:a,navigate:n,billId:r,vendorId:i,currentTenant:g,bankAccountContext:m,isVendorRecommendationEnabled:I,isZeniAccountsFeatureEnabled:y})]})}const $=(e=2)=>{let t="../";for(let n=0;n<e;n++)t=`${t}../`;return t};export{me as A,xe as D,O as V,fe as a,se as b,ke as c,ve as d,he as g,ge as i,Se as v};
@@ -1 +0,0 @@
1
- import{j as i}from"./liveblocks-CobNzJQ8.js";import{Z as f,y as l,h as c}from"./index-lRVIqDxX.js";import{D as b}from"./mui-BZJL7p2F.js";import"./sentry-4KELney1.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]="7fcde72f-e252-4f4d-801f-b7b68711bcb2",e._sentryDebugIdIdentifier="sentry-dbid-7fcde72f-e252-4f4d-801f-b7b68711bcb2")}catch{}})();const p={drawerLeftMargin:new l(0,0,240)};function h(e){const{isOpen:r,drawerLeftMargin:o,children:t,onClose:s}=e,n=f(),d=o?.valuePx(n)??p.drawerLeftMargin.valuePx(n),a=c();return i.jsx(b,{anchor:"right",open:r,PaperProps:{style:{width:`calc(100% - ${d})`}},slotProps:{backdrop:{style:{backgroundColor:a.colors.black,opacity:.8,cursor:"pointer"}}},onClose:s,children:t})}export{h as D};
@@ -1 +0,0 @@
1
- import{j as s}from"./liveblocks-CobNzJQ8.js";import{a as d}from"./sentry-4KELney1.js";import{j as B,h as A,u as J,l as q,g as l,N,k as F,n as R,o as W}from"./core-C33SxPr0.js";import{Ks as _,eN as M,JR as O,kr as K,GA as I,Kx as Y,Jk as $,jr as z,GB as S,JW as V,JX as X,Jm as H,Jl as L}from"./zeni-epic-state-Bc0tGzp_.js";import{aM as Q,e as U,q as Z,s as tt}from"./index-lRVIqDxX.js";import"./mui-BZJL7p2F.js";import{d as k}from"./decodeURIComponentSafe-DBubftdA.js";import{w as et}from"./withTransactionSidePanel-DOPR40fV.js";import{e as at,b as nt}from"./routePaths-NebWlLTP.js";import"./recharts-DgAB7GKe.js";import"./analytics-D6PJZcCm.js";import"./plaid-JaP9Mc6f.js";import"./dnd-WhcD1exD.js";import"./stripe-DMRn4zHo.js";import"./lottie-C3pXl1t7.js";import"./lexical-QnRSjOj3.js";import"./pdf-B8JyBdKX.js";import"./utils-BZbMXTZs.js";import"./useAskAiCfoHostNavButtonProps-jfcpkpra.js";import"./useFetchSuggestedQuestionsWhenReady-Ds-n57vC.js";import"./TransactionDetailScreen-jNt-QdhE.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]="ce006ef7-bd62-47d8-8d84-17a84ea30cca",a._sentryDebugIdIdentifier="sentry-dbid-ce006ef7-bd62-47d8-8d84-17a84ea30cca")}catch{}})();const ot=F(function(a,t){const e=t.entity,o=Y(a,t.entity,"EntityDetail");return{selectedEntity:e,autoCompleteData:{autoCompleteText:e.name,entityAutoCompleteView:$(a,"common")},trendWithTransactionsReport:o,analytics:U,isAccountingClassesEnabled:z(a)}},function(a,t){return{onTransactionItemClick:e=>{if(t.openTransactionPanel)return void t.openTransactionPanel(e.id,e.type);const o=`${nt(e,t.tenantEmailDomain)}`,c=tt(t.location.state?.pathnameStackToGoBack,t.location.pathname);t.navigate(o,{state:{pathnameStackToGoBack:c}})},autoCompleteActions:{onAutoCompleteInputChange:e=>{e.trim().length>=2?a(H({searchString:e,searchOrigin:"common"})):e.trim().length===0&&a(L("common"))},onAutoCompleteEntity:e=>{const o=at(e,t.tenantEmailDomain);a(V()),a(X()),t.resetTrendIsFetchedStates(),t.navigate(o,{replace:!0,state:{pathnameStackToGoBack:t.location.state?.pathnameStackToGoBack}})},onCancelAutoComplete:()=>{const e=Z(t.location.state?.pathnameStackToGoBack),o=e.poppedPathname??b();t.navigate(o,{state:{pathnameStackToGoBack:e.newStack}})}},onTrendSelectedPeriodChange:e=>{if(t.closeSidePanel?.(),e==null)t.defaultTransactionTimePeriod!=null&&a(S(t.entity,"EntityDetail",{timeframe:"quarter",timePeriod:t.defaultTransactionTimePeriod}));else{const o=e.currentTimePeriod==null?e.addTimePeriod:{startDate:e.addTimePeriod.startDate,endDate:e.currentTimePeriod.endDate};a(I(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:e.addTimePeriod})),a(S(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:o}))}}}})(Q),it=et(function({entityType:a,...t}){const e=B(),o=A(),c=J(),[m,T]=d.useState(!1),[h,D]=d.useState(!1),{tenantEmailDomain:C,entityIdEncoded:x,entityNameEncoded:j}=q(),r=k(x??""),p=k(j??""),u=rt(r,p),G=[r,p].filter(n=>n!=null),i={name:p,id:r,type:a,zeniId:r,qboId:r},g=l(n=>_(n.customerIncomeState,n.vendorExpenseState,n.trendState,i,"quarter")),v=l(n=>M(n).company?.companyInfo.firstMonthOfFY??1),f=l(n=>O(n.trendWithTransactionsState,i,"EntityDetail"));d.useEffect(()=>{m===!1&&u===!0&&(T(!0),o(K(i)))},[m,u,i]);const E=l(n=>n.trendState.fetchState),P=f?.selectedPeriod?.timePeriod??g,w=function(n,y){return n!=null&&y!=null?{startDate:n.startDate,endDate:y?.endDate}:y}(f?.selectedPeriod?.timePeriod,g);return d.useEffect(()=>{m===!0&&h===!1&&E==="Completed"&&(D(!0),P!=null&&o(I(i,"EntityDetail",{timeframe:f?.selectedPeriod?.timeframe??"quarter",timePeriod:P})))},[m,h,E]),u?s.jsx(ot,{firstMonthOfFY:v,tenantEmailDomain:C,location:c,navigate:e,entity:i,defaultTransactionTimePeriod:w,resetTrendIsFetchedStates:()=>{T(!1),D(!1)},...t}):s.jsx(N,{to:b(G.length)})}),rt=(a,t)=>t!=null&&t.length>0&&a!=null&&a.length>0,b=(a=2)=>{let t="../";for(let e=0;e<a;e++)t=`${t}../`;return t};function jt({entityType:a}){return s.jsx(R,{children:s.jsx(W,{path:"/:entityIdEncoded/:entityNameEncoded/*",element:s.jsx(it,{entityType:a})})})}export{jt as EntityDetailRoutes,jt as default};
@@ -1 +0,0 @@
1
- import{j as s}from"./liveblocks-CobNzJQ8.js";import{a as r}from"./sentry-4KELney1.js";import{U as i,W as l,Y as p,q as f}from"./index-lRVIqDxX.js";import"./mui-BZJL7p2F.js";import m from"./NotFoundScreen-Tw99uwdp.js";import{j as u,u as b}from"./core-C33SxPr0.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]="cd4bc2b0-cd04-4a7e-a6f7-55cd4e948919",e._sentryDebugIdIdentifier="sentry-dbid-cd4bc2b0-cd04-4a7e-a6f7-55cd4e948919")}catch{}})();const D=()=>{const e=u(),a=b(),t=r.useCallback(()=>{window.open("https://www.zeni.ai/demo/request","_blank")},[]),d=r.useCallback(()=>{(()=>{const n=f(a.state?.pathnameStackToGoBack),c=n.poppedPathname??k();e(c,{state:{pathnameStackToGoBack:n.newStack}})})()},[]),o=i(a.pathname);return o!=null?s.jsx(l,{menuItem:p(o),onDemoClick:t,onGoBack:d}):s.jsx(m,{})},k=(e=2)=>{let a="../";for(let t=0;t<e;t++)a=`${a}../`;return a};export{D as F};
@@ -1,12 +0,0 @@
1
- import{j as u}from"./liveblocks-CobNzJQ8.js";import{a as f}from"./sentry-4KELney1.js";import{h as O,u as _,j as w,q as A,g as l,N as T}from"./core-C33SxPr0.js";import{z as r,h as M,D as N,f as P,e as V,g as q,N as H,A as R,i as W}from"./index-lRVIqDxX.js";import{eN as $,Ij as B,It as G,Ik as J,eO as K,fi as Q,Ip as X,fH as Y,cS as Z,Iu as ee,Iv as te}from"./zeni-epic-state-Bc0tGzp_.js";import{n as ne}from"./mui-BZJL7p2F.js";import{u as ae}from"./useDeviceId-aR311Sxi.js";import{f as se}from"./analyticsHelper-By8O4tIS.js";import{t as ie}from"./getLocaleForTenant-BYoBh_m7.js";import"./recharts-DgAB7GKe.js";import"./analytics-D6PJZcCm.js";import"./plaid-JaP9Mc6f.js";import"./dnd-WhcD1exD.js";import"./stripe-DMRn4zHo.js";import"./lottie-C3pXl1t7.js";import"./lexical-QnRSjOj3.js";import"./pdf-B8JyBdKX.js";import"./utils-BZbMXTZs.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new t.Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="393aae50-726e-48aa-b552-2e4df3d4fad3",t._sentryDebugIdIdentifier="sentry-dbid-393aae50-726e-48aa-b552-2e4df3d4fad3")}catch{}})();const D=(t,s)=>t!=null&&t.length>0&&s==="magic_links";function De(){const t=O(),s=_(),m=w(),[y]=A(),n=y.get("token"),p=y.get("stytch_token_type"),g=r.getMagicLinkCodeVerifier(),i=ae(),{otpChallenge:d,twoFAPhoneNumber:x,magicLinkEmail:c,verifyDeviceFetchState:z,resendVerifyDeviceOTPFetchState:C}=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),a=l(e=>e.tenantState.loggedInUser),o=l(e=>$(e)),k=l(e=>B(e)),E=r.getSignedInUser(),v=M().mode;f.useEffect(()=>{a?.zeniSessionId==null&&n!=null&&D(n,p)&&i!=null&&g!=null&&(r.saveMagicLinkTriggered(n),t(G(n,i,g)))},[n,p,t,i,g,a?.zeniSessionId]),f.useEffect(()=>{S!=="In-Progress"||I!=="Completed"&&b!=="Completed"||a?.zeniSessionId==null||o==null||(n!=null&&r.saveLastUsedMagicLinkToken(n),r.saveSignedInUserWithSession(a,a.zeniSessionId),r.saveSignedInUserTenants(J(k.tenantsInOrder),a.zeniSessionId),K(a.userId,a.zeniSessionId,o.tenantId),t(Q(o.tenantId)),r.saveActiveTenantDomainForUser(o.tenantEmailDomain),t(X("Completed")),N.updateAppLocaleID(ie(o)),se(a,o,v,void 0,k.tenantsInOrder),Y().then(()=>{const e=W();e!=null&&P(e)}),setTimeout(()=>{V.trackLogin(q.Event.loginSuccess,"email",Z(o.productSettings))},2e3))},[S,I,b,a,o,k,v,s.state,t]);const j=f.useCallback(()=>{m("/signin/auth")},[m]),U=f.useCallback(()=>{i!=null&&d!=null&&c!=null&&t(ee(i,c,d))},[i,d,t,c]),F=f.useCallback(e=>{i!=null&&n!=null&&c!=null&&d!=null&&t(te(e,i,c,d))},[i,n,t,c,d]);if(h==="Completed"&&d!=null)return u.jsx(H,{phoneNumber:x,verifyOtpFetchState:z.fetchState,resendVerifyDeviceOTPFetchState:C,onResendOtp:U,onVerifyOtp:F,onCancelVerifyDevice:j});if(S==="In-Progress"&&I==="Completed"&&a?.zeniSessionId!=null&&o!=null||E!=null){const e=s.state?.origin??"/";return u.jsx(T,{to:e,state:{...s.state,origin:""}})}if(!D(n,p)||g==null||h==="Error"){const e=s.state?.origin??"/",L=n!=null&&r.getLastUsedMagicLinkToken()===n;return u.jsx(T,{to:e,state:{...s.state,origin:"",magicLinkAlreadyUsed:L,magicLinkExpired:!L&&(r.isMagicLinkTriggered(n??"")||h==="Error"&&a?.zeniSessionId==null)}})}return u.jsx(oe,{"data-testid":"smooth-loader",children:u.jsx(R,{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{De as default};
@@ -1 +0,0 @@
1
- import{j as e}from"./liveblocks-CobNzJQ8.js";import{j as r,k as i}from"./core-C33SxPr0.js";import{V as n}from"./index-lRVIqDxX.js";import"./mui-BZJL7p2F.js";import"./sentry-4KELney1.js";import"./zeni-epic-state-Bc0tGzp_.js";import"./recharts-DgAB7GKe.js";import"./analytics-D6PJZcCm.js";import"./plaid-JaP9Mc6f.js";import"./dnd-WhcD1exD.js";import"./stripe-DMRn4zHo.js";import"./lottie-C3pXl1t7.js";import"./lexical-QnRSjOj3.js";import"./pdf-B8JyBdKX.js";import"./utils-BZbMXTZs.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]="a6101124-68fb-49b2-8a98-0d630e11e347",o._sentryDebugIdIdentifier="sentry-dbid-a6101124-68fb-49b2-8a98-0d630e11e347")}catch{}})();const a=i(null,function(o,t){return{onGoBack:()=>{t.navigate(-1)},onGoHome:()=>{t.navigate("/")}}})(n);function h(){const o=r();return e.jsx(a,{navigate:o})}export{h as default};
@@ -1 +0,0 @@
1
- import{j as n}from"./liveblocks-CobNzJQ8.js";import{j as K,h as Z,u as H,l as Q,g as d,k as X,n as ee,o as C}from"./core-C33SxPr0.js";import{eN as M,qf as v,pP as ae,J8 as $,pK as S,bv as te,bn as se,bR as oe,pL as re,J9 as ne,IV as T,dB as ie,tC as ce,Ja as le,tZ as de,eT as me,eR as fe}from"./zeni-epic-state-Bc0tGzp_.js";import{I as pe,z as ue,K as he,j as ge,a as w,d as N,J as Fe,e as B,aj as be,s as Ie}from"./index-lRVIqDxX.js";import"./mui-BZJL7p2F.js";import Ce from"./NotFoundScreen-Tw99uwdp.js";import{F as Te}from"./FeaturePreviewScreen-6rYoc9P_.js";import{a as h}from"./sentry-4KELney1.js";import{u as Se}from"./useAskAiCfoHostNavButtonProps-jfcpkpra.js";import{c as ye}from"./useFetchSuggestedQuestionsWhenReady-Ds-n57vC.js";import{u as Ae}from"./useInitialThreadRequest-C9yfgS4j.js";import{t as ke}from"./routePaths-NebWlLTP.js";import{M as je}from"./MobileAppDrawer-CRSAzIxd.js";import"./recharts-DgAB7GKe.js";import"./analytics-D6PJZcCm.js";import"./plaid-JaP9Mc6f.js";import"./dnd-WhcD1exD.js";import"./stripe-DMRn4zHo.js";import"./lottie-C3pXl1t7.js";import"./lexical-QnRSjOj3.js";import"./pdf-B8JyBdKX.js";import"./utils-BZbMXTZs.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]="b0772074-2307-4c1b-80e7-8d7ee95d1392",s._sentryDebugIdIdentifier="sentry-dbid-b0772074-2307-4c1b-80e7-8d7ee95d1392")}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})}},xe=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(S(e)),y(a.forecastIdFromUrlPath,e,a.navigate)},onTimeframeChanged:e=>{s(de(e))},onForecastVsActualsCompareToggle:e=>{s(le(e)),s(T({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 g=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=ke(a.tenantEmailDomain,e.accountId,e.accountType,g,r,i),p=Ie(a.location.state?.pathnameStackToGoBack,a.location.pathname);a.navigate(f,{state:{pathnameStackToGoBack:p,referrer:"Forecast"}})}},onNodeCollapseToggled:(e,o)=>{s(T({forecastId:a.forecastIdFromUrlPath,nodeCollapseState:{nodeId:e,isCollapsed:o===!1}}))},onTableScroll:e=>{s(T({forecastId:a.forecastIdFromUrlPath,scrollPosition:e}))},onBackClick:()=>{a.navigate("../../")}}})(be);function U(){const{isAiCfoOpen:s,setIsAiCfoOpen:a}=pe(),e=K(),o=Z(),r=H(),{forecastId:i,tenantEmailDomain:g}=Q(),[f,p]=h.useState(!1),[F,A]=h.useState(!1),u=ue.getSignedInUser(),k=d(t=>M(t)),q=k.company?.companyInfo.firstMonthOfFY??1,c=d(t=>v(t.forecastState,t.forecastListState)),l=d(t=>t.forecastListState.fetchState==="Completed"),j=d(t=>t.profitAndLossState),x=d(t=>t.reportUIOptionsState.selectedForecast),D=t=>j.pandLByForecastID[t]!=null&&re(t,j).reducedAllFetchState.fetchState==="Completed",{areTenantIdsInSync:b}=he();ye({isDataReady:l});const{isAiCfoAccessEnabled:G,onAskAiCfoClick:_}=Se({isAiCfoOpen:s,setIsAiCfoOpen:a,mobileExploreReferrer:"Forecast"});h.useEffect(()=>{if(!f&&b)p(!0),l||o(ae());else if(l&&!F){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,x?.id);t===-1&&i!=null?e("page-not-found",{replace:!0}):t!==-1&&t!=x?.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&&!D(c.forecasts[t].id)&&b&&o(S(c.forecasts[t].id))}},[f,p,o,l,c,F,A,v,S,b]);const L=ge(),J=L?.loggedInUserRole!=null&&te(L.loggedInUserRole),{useFeatureGate:V}=w(),{isFeatureEnabled:E}=V(N.isReportsCommentingEnabled),W=Ae(E?k?.companyId:void 0,{clearParams:l&&F}),[Y,z]=h.useState(!1),O=t=>{z(t)};return n.jsxs(n.Fragment,{children:[l?n.jsx(Fe,{analytics:B,onLoad:t=>(m=>m.trackForecast())(t)}):null,n.jsx(je,{isAppContentDrawerOpen:Y,handleDrawerToggle:O}),n.jsx(xe,{firstMonthOfFY:q,tenantEmailDomain:g,forecastIdFromUrlPath:i,navigate:e,location:r,isPandLReportFetched:D,meetingUrl:oe(`https://meetings.hubspot.com/svitlana-grankovska?firstname=${u?.firstName}&lastname=${u?.lastName}&email=${u?.userEmail}`),hasTransactionAccess:J,isAiCfoAccessEnabled:G,onAskAiCfoClick:_,isReportsCommentingEnabled:E,isZeniUser:se(u),initialOpenThreadRequest:W,onClickMenuIcon:()=>{O(!0)}})]})}function Ze(){const s=d(i=>M(i)),{useFeatureGate:a}=w(),{isFeatureEnabled:e}=a(N.isDebitCardFeatureEnabled),o=me(e,s),r=fe(s);return o===!0||r===!0?n.jsx(Te,{}):n.jsxs(ee,{children:[n.jsx(C,{path:"/",element:n.jsx(U,{})}),n.jsx(C,{path:"/:forecastId",element:n.jsx(U,{})}),n.jsx(C,{path:"/:forecastId/*",element:n.jsx(Ce,{})})]})}export{Ze as PandLWithForecastRoutes,Ze as default};
@@ -1,22 +0,0 @@
1
- import{j as s}from"./liveblocks-CobNzJQ8.js";import{J3 as oe,eN as q,jr as _,eT as Q,eR as ie,GE as Y,IH as re,sK as ke,J4 as X,sy as Pe,sT as je,sN as le,sC as de,sR as Te,sO as Le,J5 as ce,uo as ve,J6 as Fe,fx as Ae,J7 as H,sH as pe,sF as ue,sW as Oe,c0 as Re}from"./zeni-epic-state-Bc0tGzp_.js";import{Z as me,a as ee,d as E,z,a4 as ge,E as he,af as fe,ag as Ve,y as Ce,o as A,G as be,D as ye,ah as Ue,K as Ze,I as Be,J as $e,e as Se,g as Ge,s as He,ai as Je,j as Ke}from"./index-lRVIqDxX.js";import{D as we,n as M,S as De}from"./mui-BZJL7p2F.js";import te from"./NotFoundScreen-Tw99uwdp.js";import{a as l}from"./sentry-4KELney1.js";import{h as se,l as _e,g,j as ze,u as Me,k as We,n as ne,o as G}from"./core-C33SxPr0.js";import{u as Ne}from"./useAskAiCfoHostNavButtonProps-jfcpkpra.js";import{c as Xe}from"./useFetchSuggestedQuestionsWhenReady-Ds-n57vC.js";import{M as qe}from"./MobileAppDrawer-CRSAzIxd.js";import"./recharts-DgAB7GKe.js";import"./analytics-D6PJZcCm.js";import"./plaid-JaP9Mc6f.js";import"./dnd-WhcD1exD.js";import"./stripe-DMRn4zHo.js";import"./lottie-C3pXl1t7.js";import"./lexical-QnRSjOj3.js";import"./pdf-B8JyBdKX.js";import"./utils-BZbMXTZs.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]="0eb66616-2090-4dd4-ae62-8e1ddad4a9db",e._sentryDebugIdIdentifier="sentry-dbid-0eb66616-2090-4dd4-ae62-8e1ddad4a9db")}catch{}})();const Qe={overlayWidth:new Ce(100,100,48)},J=ye.getLocalizedStrings().peoplePage.invitePage,Ye=({companyId:e,managersListView:n,companyPassportView:d,classListView:o,mode:h,isEditPeopleDrawerOpen:i,closeDrawerHandler:y})=>{const f=me(),u=se(),[O,R]=l.useState(!1),[k,S]=l.useState(!1),{userId:w}=_e(),c=g(t=>oe(t)),m=g(t=>q(t)),D=g(t=>_(t)),{useFeatureGate:C}=ee(),{isFeatureEnabled:I}=C(E.isDebitCardFeatureEnabled),P=Q(I,m),L=ie(m),v=Y(m),V=re(m),U=!!m.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,x=!P&&D&&o.fetchState!=="Completed"||n.fetchState!=="Completed"||d.fetchState!=="Completed"||e==null;if(z.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const b=()=>{u(X()),y()},F=()=>{O===!0?S(!0):b()},Z=d.companyView?.controllers?.map(t=>t.user),{isFeatureEnabled:B}=C(E.isDepositAccountsFeatureEnabled),{isFeatureEnabled:$}=C(E.isChargeCardFeatureEnabled),p=ge(m,$,I),{isFeatureEnabled:j}=C(E.isTreasuryEnabled),T={peopleDetails:c,classList:o.classes,managersList:n.users,controllersList:Z,mode:h,isZeniTenant:v,isAccountingClassesEnabled:D,isReimbursementDisabled:U===!1,isZeniAccountsDisabled:B===!1,isChargeCardDisabled:p===!1,isTreasuryDisabled:j===!1,isLiteRoleDisabled:V===!1,isBankingOnlyTenant:P,isCardsOnlyTenant:L,onResetClick:b,onDeleteUser:t=>{u(de(t.userId,t.userRole.userRoleId))},onPeopleLocalDataUpdated:t=>{u(le({peopleLocalData:t})),R(!0)},onSaveClick:()=>{u(h==="zeni_only"?Pe(e):je(v))},onCloseClick:F,isLoading:x||c.person==null},r={onOkClick:()=>{S(!1),b()},onCancelClick:()=>{S(!1)}};return l.useEffect(()=>{x===!1&&w!=null&&u(ke(w))},[x,w]),l.useEffect(()=>{c.updatePersonState.fetchState==="Completed"&&b()},[c.updatePersonState.fetchState]),s.jsx(we,{anchor:"right",open:i,PaperProps:{style:{width:Qe.overlayWidth.valuePercentage(f),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:he.overlayDark,cursor:"pointer"}}},onClose:F,children:s.jsxs(es,{onClick:t=>t.stopPropagation(),children:[k===!0?s.jsx(fe,{titleComponent:s.jsx(xe,{children:J.discardTitle}),descriptionComponent:s.jsx(Ee,{children:J.discardDescription}),primaryButtonText:J.discard,secondaryButtonText:J.no,action:r,isEditPopup:!0}):null,s.jsx(Ve,{...T})]})})},es=M(De)`
2
- display: flex;
3
- min-height: 100%;
4
- flex-direction: column;
5
- `,xe=M(be.H6Regular)`
6
- margin-top: ${A.sp7};
7
- padding-left: ${A.sp8};
8
- padding-right: ${A.sp8};
9
- color: ${e=>e.theme.colors.primary};
10
- word-break: break-word;
11
- `,Ee=M(be.LargeRegularSp)`
12
- color: ${e=>e.theme.colors.hero};
13
- padding-left: ${A.sp8};
14
- padding-right: ${A.sp8};
15
- margin-bottom: 30px;
16
- margin-top: ${A.sp4};
17
- white-space: pre-line;
18
- `,ss={overlayWidth:new Ce(100,100,48)},K=ye.getLocalizedStrings().peoplePage.invitePage,as=({companyId:e,managersListView:n,companyPassportView:d,classListView:o,mode:h,isInvitePeopleDrawerOpen:i,closeDrawerHandler:y})=>{const f=me(),u=se(),[O,R]=l.useState(!1),[k,S]=l.useState(!1),w=g(r=>oe(r)),c=g(r=>q(r)),m=g(r=>_(r)),{useFeatureGate:D}=ee(),{isFeatureEnabled:C}=D(E.isDebitCardFeatureEnabled),I=Q(C,c),P=ie(c),L=Y(c),v=re(c),V=!!c.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,U=!I&&m&&o.fetchState!=="Completed"||n.fetchState!=="Completed"||d.fetchState!=="Completed"||e==null;if(z.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const x=()=>{y(),u(X())},b=()=>{O===!0?S(!0):x()},F={onOkClick:()=>{S(!1),x()},onCancelClick:()=>{S(!1)}},Z=d.companyView?.controllers.map(r=>r.user),{isFeatureEnabled:B}=D(E.isDepositAccountsFeatureEnabled),{isFeatureEnabled:$}=D(E.isChargeCardFeatureEnabled),p=ge(c,$,C),{isFeatureEnabled:j}=D(E.isTreasuryEnabled),T={classList:o.classes,managersList:n.users,controllersList:Z,mode:h,isZeniTenant:L,onPeopleLocalDataUpdated:r=>{u(le({peopleLocalData:r})),R(!0)},onResetClick:x,onSaveClick:()=>{u(h==="zeni_only"?Te(e):Le())},onCloseClick:b,peopleDetails:w,isAccountingClassesEnabled:m,isReimbursementDisabled:V===!1,isLiteRoleDisabled:v===!1,isZeniAccountsDisabled:B===!1,isChargeCardDisabled:p===!1,isTreasuryDisabled:j===!1,isBankingOnlyTenant:I,isCardsOnlyTenant:P,isLoading:U};return l.useEffect(()=>{w.invitePersonState.fetchState==="Completed"&&(y(),u(X()))},[w.invitePersonState.fetchState]),s.jsx(we,{anchor:"right",open:i,PaperProps:{style:{width:ss.overlayWidth.valuePercentage(f),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:he.overlayDark,cursor:"pointer"}}},onClose:b,children:s.jsxs(ts,{onClick:r=>r.stopPropagation(),children:[k===!0?s.jsx(fe,{titleComponent:s.jsx(xe,{children:K.discardTitle}),descriptionComponent:s.jsx(Ee,{children:K.discardDescription}),primaryButtonText:K.discard,secondaryButtonText:K.no,action:F}):null,s.jsx(Ue,{...T})]})})},ts=M(De)`
19
- display: flex;
20
- min-height: 100%;
21
- flex-direction: column;
22
- `,ns=We(function(e,n){const d=ce(e),o=z.getSignedInUser();return{data:d,loggedinUserId:o?.userId??"",isZeniTenant:n.isZeniTenant===!0,shouldFetchClasses:n.shouldFetchClasses,isZeniAdminUser:o?.userEmailDomain==="zeni.ai"&&n.isZeni===!0,isAccountingClassesEnabled:_(e),analytics:Se}},function(e,n){const{navigate:d,companyId:o,shouldFetchClasses:h}=n;return{personAction:{onPersonDelete:(i,y)=>{e(de(i,y))},onResendInvite:i=>{e(Oe(i))},onReloadPeople:()=>{e(pe()),e(ue(o,h))},onBackClick:()=>{d("../../")},onModeChange:i=>{e(H({mode:i,searchText:"",sortKey:"name",sortOrder:"ascending"}))},onSearchTextChanged:i=>{e(H({searchText:i}))}}}})(Je);function N({isInvitePeopleDrawerOpen:e,isEditPeopleDrawerOpen:n}){const d=ze(),o=se(),h=Me(),{areTenantIdsInSync:i}=Ze(),y=z.getSignedInUser(),f=g(a=>q(a)),{useFeatureGate:u}=ee(),{isFeatureEnabled:O}=u(E.isDebitCardFeatureEnabled),R=g(a=>_(a)),k=!Q(O,f)&&R,S=Y(f),w=f?.tenantId,{tenantEmailDomain:c}=f,[m,D]=l.useState(!1),[C,I]=l.useState(!1),[P,L]=l.useState(!1),[v,V]=l.useState("off"),[U,x]=l.useState(!1),b=a=>{x(a)},{isAiCfoOpen:F,setIsAiCfoOpen:Z}=Be(),{isAiCfoAccessEnabled:B,onAskAiCfoClick:$}=Ne({isAiCfoOpen:F,setIsAiCfoOpen:Z,mobileExploreReferrer:"People"}),p=g(a=>ce(a));Xe({isDataReady:p.fetchState==="Completed"});const j=g(a=>ve(a.classState,a.classListState)),T=g(a=>Fe(a.userState,a.userRoleState,a.userListViewState,"manager")),r=g(a=>Ae(a)),t=f?.companyId;l.useEffect(()=>{m&&v===p.uiState.mode||!i||(o(H({searchText:"",sortKey:"name",sortOrder:"ascending"})),V(p.uiState.mode),D(!0),o(pe()))},[m,y,w,o,p.uiState.mode,i]),l.useEffect(()=>{t!=null&&i&&o(ue(t,k))},[t,k,i]),l.useEffect(()=>{I(e!=null&&e===!0),L(n!=null&&n===!0&&n)},[e,n]),l.useEffect(()=>{o(H({searchText:"",sortKey:"name",sortOrder:"ascending"}))},[]);const ae=()=>{I(!1),L(!1),d("../")};return s.jsxs(s.Fragment,{children:[p.fetchState==="Completed"?s.jsx($e,{analytics:Se,onLoad:a=>a.trackPageLoaded(Ge.Event.members)}):null,C===!0?s.jsx(as,{closeDrawerHandler:ae,isInvitePeopleDrawerOpen:C,managersListView:T,companyPassportView:r,classListView:j,companyId:t,mode:p.uiState.mode}):null,P===!0?s.jsx(Ye,{closeDrawerHandler:ae,isEditPeopleDrawerOpen:P,managersListView:T,companyPassportView:r,classListView:j,companyId:t,mode:p.uiState.mode}):null,s.jsx(qe,{isAppContentDrawerOpen:U,handleDrawerToggle:b}),s.jsx(ns,{navigate:d,signedInUser:y,isZeni:f.isZeni,isZeniTenant:S,peopleUIState:p.uiState,companyId:t,shouldFetchClasses:k,classList:j,managersView:T,peopleView:p,onInvitePeopleClick:()=>{d("./new")},onColumnSortConfigChanged:(a,W)=>{o(H({sortKey:a,sortOrder:W}))},onRowClick:a=>{const W=`/${c}/people/${encodeURIComponent(a)}/edit`,Ie=He(h.state?.pathnameStackToGoBack,h.pathname);d(W,{state:{pathnameStackToGoBack:Ie}})},onClickMenuIcon:()=>{b(!0)},isAiCfoAccessEnabled:B,onAskAiCfoClick:$})]})}function Es(){const e=Ke();return Re(e?.loggedInUserRole??[])?s.jsxs(ne,{children:[s.jsx(G,{path:"/",element:s.jsx(N,{})}),s.jsx(G,{path:"new",element:s.jsx(N,{isInvitePeopleDrawerOpen:!0})}),s.jsx(G,{path:":userId/edit",element:s.jsx(N,{isEditPeopleDrawerOpen:!0})}),s.jsx(G,{path:"*",element:s.jsx(te,{})})]}):s.jsx(ne,{children:s.jsx(G,{path:"*",element:s.jsx(te,{})})})}export{Es as default};
@@ -1 +0,0 @@
1
- import{j as a}from"./liveblocks-CobNzJQ8.js";import _ from"./NotFoundScreen-Tw99uwdp.js";import{a as o}from"./sentry-4KELney1.js";import{j as v,u as M,g,l as U,h as P,N as z,k as N,n as V,o as h}from"./core-C33SxPr0.js";import{eN as B,OK as b,bo as F,bn as K,h7 as H,gD as $}from"./zeni-epic-state-Bc0tGzp_.js";import{x as q,z as I,I as G,cs as J}from"./index-lRVIqDxX.js";import"./mui-BZJL7p2F.js";import{u as L}from"./useAskAiCfoHostNavButtonProps-jfcpkpra.js";import{c as Q}from"./useFetchSuggestedQuestionsWhenReady-Ds-n57vC.js";import{M as W}from"./MobileAppDrawer-CRSAzIxd.js";import"./recharts-DgAB7GKe.js";import"./analytics-D6PJZcCm.js";import"./plaid-JaP9Mc6f.js";import"./dnd-WhcD1exD.js";import"./stripe-DMRn4zHo.js";import"./lottie-C3pXl1t7.js";import"./lexical-QnRSjOj3.js";import"./pdf-B8JyBdKX.js";import"./utils-BZbMXTZs.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]="587a1901-1d7b-421c-a869-da93d4029105",e._sentryDebugIdIdentifier="sentry-dbid-587a1901-1d7b-421c-a869-da93d4029105")}catch{}})();const X=N(function(e){const t=I.getSignedInUser(),c=e.tenantState.currentTenantId,r={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:c??""},{aggregatedReportViewState:n}=b(e);return{authParams:r,isDisabled:!1,loggedInUser:t,aggregatedReport:n}},function(e,t){return{onBackClick:()=>{t.navigate("../../")},onClickMenuIcon:()=>{t.handleDrawerToggle(!0)}}})(J),Y=()=>{const e=v(),t=M(),c=q(),r=g(s=>B(s)),{aggregatedReportViewState:n}=g(s=>b(s)),{tenantEmailDomain:f}=U(),p=P(),l=I.getSignedInUser();if(l==null)throw new Error("Can't access this page without signing in...");const m=o.useRef(!1),[C,S]=o.useState(!1),w=F(r?.userRole??[]),k=r?.userRole?.includes("bookkeeping_admin")??!1,D=K(l),x=w||k||D,d=o.useCallback((s,i,O)=>{p(H({fromMonth:s,toMonth:i,cacheOverride:O}))},[]);o.useEffect(()=>{n?.fetchState==="Completed"&&m.current&&(p($({messageSection:"data_refresh_update",messageText:"success",type:"success",showStatusIcon:!0})),m.current=!1)},[n?.fetchState]);const A=o.useCallback((s,i)=>{n!=null&&n?.fetchState==="In-Progress"||d(s,i,!0),m.current=!0},[n?.fetchState,d]),y=o.useCallback((s,i)=>{d(s,i,!1)},[d]),u=s=>{S(s)},{isAiCfoOpen:j,setIsAiCfoOpen:R}=G(),{isAiCfoAccessEnabled:T,onAskAiCfoClick:E}=L({isAiCfoOpen:j,setIsAiCfoOpen:R,mobileExploreReferrer:"Performance"});return Q({isDataReady:n?.fetchState==="Completed"}),x?a.jsxs(a.Fragment,{children:[a.jsx(W,{isAppContentDrawerOpen:C,handleDrawerToggle:u}),a.jsx(X,{navigate:e,location:t,themeState:c,currentTenant:r,signedInUser:l,tenantEmailDomain:f,onReload:A,onTimeRangeSelect:y,handleDrawerToggle:u,isAiCfoAccessEnabled:T,onAskAiCfoClick:E})]}):a.jsx(z,{to:`/${f}/dashboard`,replace:!0})};function Ie(){return a.jsxs(V,{children:[a.jsx(h,{path:"*",element:a.jsx(Y,{})}),a.jsx(h,{path:"*",element:a.jsx(_,{})})]})}export{Ie as default};
@@ -1,5 +0,0 @@
1
- import{j as s}from"./liveblocks-CobNzJQ8.js";import{a as o}from"./sentry-4KELney1.js";import{g as f,j as N,h as V,u as W,k as M}from"./core-C33SxPr0.js";import{h as _,Z as z,z as R,b2 as U,y as Z,K as $,I as J,J as K,e as l,g as X,a1 as q,b3 as Q}from"./index-lRVIqDxX.js";import{eX as G,eN as Y,Ly as I,Lz as ee,ts as ae,ti as g,eZ as re,bM as ne,tn as te,LA as se}from"./zeni-epic-state-Bc0tGzp_.js";import{D as oe,e as ie,n as le,S as de}from"./mui-BZJL7p2F.js";import{u as ce}from"./useAskAiCfoHostNavButtonProps-jfcpkpra.js";import{c as fe}from"./useFetchSuggestedQuestionsWhenReady-Ds-n57vC.js";import{M as ue}from"./MobileAppDrawer-CRSAzIxd.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]="41840227-08a5-4b23-9458-d8edd313a600",e._sentryDebugIdIdentifier="sentry-dbid-41840227-08a5-4b23-9458-d8edd313a600")}catch{}})();const pe={overlayWidth:new Z(100,100,30)},we=({isReferralDrawerOpen:e,closeDrawerHandler:a})=>{const r=_(),n=z();if(R.getSignedInUser()==null)throw Error("Can't access How Referral works without signing in...");const i=()=>{a(!0)},u=f(d=>G(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=M(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))}}})(q(Q));function Pe({isReferralDrawerOpen:e}){const a=N(),r=V(),n=W(),[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)),y=m.fetchState,w=f(t=>t.referralViewState.rewardsPlanFetchState),b=ee([m,w]),{areTenantIdsInSync:c}=$();o.useEffect(()=>{h?.rewardsLastViewedTime==null&&D===!1&&(r(ae()),A(!0))},[]),o.useEffect(()=>{!i&&y==="Not-Started"&&c&&(u(!0),r(g(!0)))},[y,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),v=t=>{j(t)},{isAiCfoOpen:O,setIsAiCfoOpen:L}=J(),{isAiCfoAccessEnabled:T,onAskAiCfoClick:B}=ce({isAiCfoOpen:O,setIsAiCfoOpen:L,mobileExploreReferrer:"Rewards"});fe({isDataReady:b===!0});const F={events:p?.userId!=null?[`private-${p.userId}.${P}`]:[],eventCallback:(t,S,H)=>{H.onEventReceived(t)}};return s.jsxs(s.Fragment,{children:[b===!0?s.jsx(K,{analytics:l,onLoad:t=>(S=>{p!=null&&S.trackPageLoaded(X.Event.rewardsPageViewed)})(t)}):null,s.jsx(ue,{isAppContentDrawerOpen:E,handleDrawerToggle:v}),k===!0?s.jsx(we,{closeDrawerHandler:()=>{C(!1),a("..")},isReferralDrawerOpen:k}):null,s.jsx(ke,{location:n,navigate:a,currentTenant:h,onClickMenuIcon:()=>{v(!0)},isAiCfoAccessEnabled:T,onAskAiCfoClick:B,...F})]})}export{Pe as R};
@@ -1 +0,0 @@
1
- import{j as a}from"./liveblocks-CobNzJQ8.js";import{a as x,z as w,aI as b,J as E,e as p,g as F,cC as P,d as L}from"./index-lRVIqDxX.js";import"./mui-BZJL7p2F.js";import l from"./NotFoundScreen-Tw99uwdp.js";import{a as u}from"./sentry-4KELney1.js";import{h as T,g as y,j as V,u as A,k as R,n as U,o as f}from"./core-C33SxPr0.js";import{eN as z,Ph as C,M7 as Y,Pi as k,ts as q,eZ as G,Pj as J,tq as M}from"./zeni-epic-state-Bc0tGzp_.js";import{R as j}from"./ReferralListScreen-5n3Bty0k.js";import"./recharts-DgAB7GKe.js";import"./analytics-D6PJZcCm.js";import"./plaid-JaP9Mc6f.js";import"./dnd-WhcD1exD.js";import"./stripe-DMRn4zHo.js";import"./lottie-C3pXl1t7.js";import"./lexical-QnRSjOj3.js";import"./pdf-B8JyBdKX.js";import"./utils-BZbMXTZs.js";import"./useAskAiCfoHostNavButtonProps-jfcpkpra.js";import"./useFetchSuggestedQuestionsWhenReady-Ds-n57vC.js";import"./MobileAppDrawer-CRSAzIxd.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]="4afbbc46-12cd-4bf5-96cc-17619bb063a7",e._sentryDebugIdIdentifier="sentry-dbid-4afbbc46-12cd-4bf5-96cc-17619bb063a7")}catch{}})();const O=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,o=w.getSignedInUser();return{onDismissClick:()=>{e(k()),n("..")},onSendClick:()=>{if(o!=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(M())},onUpdateInviteFormLocalData:s=>{e(J({localData:s}))},onSubmitSuccess:()=>{n("../../")},onCancelClick:()=>{o!=null&&p.trackInviteEmailClicked("cancel")}}})(P),Z=()=>{const e=T(),[t,n]=u.useState(!1),[o,s]=u.useState(!1),r=y(i=>z(i)),c=V(),v=A(),{useDynamicConfig:g}=x(),d=w.getSignedInUser();if(d==null)throw Error("Can't access invite referral screen without signing in...");const m=y(i=>C(i)),_=d?.firstName!=null?d.firstName:"User",{configValue:h}=g(b.zeniCardsConfig),{configValue:D}=g(b.zeniAccountsConfig),I=Y(D);u.useEffect(()=>{e(k()),r?.rewardsLastViewedTime==null&&o===!1&&(e(q()),s(!0))},[]),u.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:i=>(S=>S.trackPageLoaded(F.Event.inviteEmailViewed))(i)}):null,a.jsx(O,{navigate:c,location:v,currentTenant:r,companyName:N,userName:_,inviteFormCompayData:m.localData,chargeCardCashbackRatePerTransaction:h.charge_card_cashback_rate_per_transaction!=null?h.charge_card_cashback_rate_per_transaction:.0175,maxAnnualPercentageYield:I.maxAnnualPercentageYield})]})};function de(){const{useFeatureGate:e}=x(),{isFeatureEnabled:t}=e(L.isReferralFeatureEnabled);return a.jsxs(U,{children:[a.jsx(f,{path:"/",element:t?a.jsx(j,{}):a.jsx(l,{})}),a.jsx(f,{path:"how-it-works",element:t?a.jsx(j,{isReferralDrawerOpen:!0}):a.jsx(l,{})}),a.jsx(f,{path:"refer/*",element:t?a.jsx(Z,{}):a.jsx(l,{})}),a.jsx(f,{path:"*",element:a.jsx(l,{})})]})}export{de as default};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardRoutes-DnO_uZew.js","assets/sentry-4KELney1.js","assets/core-C33SxPr0.js","assets/zeni-epic-state-Bc0tGzp_.js","assets/index-lRVIqDxX.js","assets/mui-BZJL7p2F.js","assets/analytics-D6PJZcCm.js","assets/utils-BZbMXTZs.js","assets/withTransactionSidePanel-DOPR40fV.js","assets/useAskAiCfoHostNavButtonProps-jfcpkpra.js","assets/useFetchSuggestedQuestionsWhenReady-Ds-n57vC.js","assets/TransactionDetailScreen-jNt-QdhE.js","assets/decodeURIComponentSafe-DBubftdA.js","assets/routePaths-NebWlLTP.js","assets/NotFoundScreen-Tw99uwdp.js","assets/analyticsHelper-By8O4tIS.js","assets/CompanyPassportScreen-CMPOjcMf.js","assets/MobileAppDrawer-CRSAzIxd.js","assets/FeaturePreviewScreen-6rYoc9P_.js","assets/ReferralListScreen-5n3Bty0k.js","assets/index-Bc34frN_.css","assets/BillPayRoutes-BCdkqOaO.js","assets/AddressScreen-BzneUOo4.js","assets/DomesticWireDetailScreen-BHBtD4Ei.js","assets/useInitialThreadRequest-C9yfgS4j.js","assets/DrawerScreen-fCclT3hl.js","assets/SetupPagesScreen-D2Rtk73R.js","assets/BusinessVerificationPageScreen-X7xY6NZn.js","assets/BillPayApprovalRoutes-udIinwV1.js","assets/ReimbursementApprovalRuleDetailScreen-BMT0CGtI.js","assets/getLocaleForTenant-BYoBh_m7.js","assets/ReimbursementRoutes-R1LL2Jul.js","assets/ReimbursementApprovalRoutes-DPb24H1O.js","assets/TransactionListRoutes-CZPaPN_2.js","assets/ZeniAccountStatementScreen-CdjQf0_x.js","assets/SettingsRoutes-3ioUPEs0.js","assets/accountMappingHelper-1H6YzkWh.js","assets/QBOConnectionScreen-BzAa2D27.js","assets/empty-CH-y1nWQ.js","assets/index-VKfxo2ml.js","assets/url-Bgtn40KH.js","assets/index-B0trrGH2.js","assets/ReportsRoutes-CBujwpU2.js","assets/ChargeCardRoutes-CboNm6AT.js","assets/PeopleRoutes-RW_096jh.js","assets/ExpenseAutomationRoutes-D4GTQt75.js","assets/TreasuryRoutes-C80Fysyq.js","assets/VendorsRoutes-DUgIWngO.js","assets/pathToGoBack-CZlpwtCa.js","assets/ZeniAccountRoutes-D4tdV3pp.js","assets/AddressRoutes-BAoL9X9M.js","assets/PandLWithForecastRoutes-CLt1i3Y0.js","assets/CustomerOnboardingRoutes-Bdd93GLs.js","assets/TransactionDetailRoutes-Cv-b9ox5.js","assets/EntityDetailRoutes-BO4dqv98.js","assets/NotificationRoutes-PMbfvT4N.js","assets/PerformanceRoutes-BavcAJuZ.js","assets/RewardsRoutes-B2TCCUZn.js","assets/TaskRoutes-CLf_GzX3.js","assets/TaskListScreen-Bct_XoDl.js","assets/AiCfoScreen-D9CKKCB1.js"])))=>i.map(i=>d[i]);
2
- import{_ as n,bn as os,eN as ls,eT as cs,eR as ds,eS as ms,fD as us,eP as _s,cN as Ee,cu as Es,f9 as As,cm as ps,bC as Is,bq as gs,fe as xs,v as Ts,Ik as hs,bv as js,Il as Us,bE as Ds,fb as Hs,bD as Rs,bs,cO as ys,Im as fs,In as Cs,cK as vs,cM as Os,cL as Ps,ct as Fs,cz as Ls,mm as Ae,eO as pe,fN as Bs,fi as Ie,fK as ge,fL as xe,fj as ks}from"./zeni-epic-state-Bc0tGzp_.js";import{j as e}from"./liveblocks-CobNzJQ8.js";import{a as v}from"./sentry-4KELney1.js";import{h as Vs,j as Ns,l as Ss,u as Ms,g as z,i as Te,N as c,n as Zs,o as t}from"./core-C33SxPr0.js";import{h as ws,u as zs,z as H,a as Gs,c as $s,v as Ys,d as L,j as qs,L as B,D as he,t as _,P as Ws,e as X,l}from"./index-lRVIqDxX.js";import"./mui-BZJL7p2F.js";import{f as je}from"./analyticsHelper-By8O4tIS.js";import{t as Ks}from"./getLocaleForTenant-BYoBh_m7.js";import"./recharts-DgAB7GKe.js";import"./analytics-D6PJZcCm.js";import"./plaid-JaP9Mc6f.js";import"./dnd-WhcD1exD.js";import"./stripe-DMRn4zHo.js";import"./lottie-C3pXl1t7.js";import"./lexical-QnRSjOj3.js";import"./pdf-B8JyBdKX.js";import"./utils-BZbMXTZs.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]="9a9fd77b-a66d-4a51-8dfc-fe2ee8a44819",i._sentryDebugIdIdentifier="sentry-dbid-9a9fd77b-a66d-4a51-8dfc-fe2ee8a44819")}catch{}})();const Js={dashboard:()=>n(()=>import("./DashboardRoutes-DnO_uZew.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:()=>n(()=>import("./BillPayRoutes-BCdkqOaO.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:()=>n(()=>import("./ReimbursementRoutes-R1LL2Jul.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,14,26,17,15,13,27,18,9,10,24,25,32,29,30,20])),transactions:()=>n(()=>import("./TransactionListRoutes-CZPaPN_2.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,13,34,20])),settings:()=>n(()=>import("./SettingsRoutes-3ioUPEs0.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:()=>n(()=>import("./ReportsRoutes-CBujwpU2.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,14,18,10,24,13,17,20])),chargeCards:()=>n(()=>import("./ChargeCardRoutes-CboNm6AT.js"),__vite__mapDeps([43,1,2,3,4,5,6,7,26,17,14,15,13,27,9,10,22,20])),people:()=>n(()=>import("./PeopleRoutes-RW_096jh.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,14,9,10,17,20])),expenseAutomation:()=>n(()=>import("./ExpenseAutomationRoutes-D4GTQt75.js"),__vite__mapDeps([45,1,2,3,14,4,5,6,7,9,10,11,12,13,8,36,25,20])),treasury:()=>n(()=>import("./TreasuryRoutes-C80Fysyq.js"),__vite__mapDeps([46,1,2,3,4,5,6,7,14,26,17,15,13,27,9,10,18,20])),vendors:()=>n(()=>import("./VendorsRoutes-DUgIWngO.js"),__vite__mapDeps([47,1,2,3,4,5,6,7,22,14,18,13,48,9,10,17,25,36,20])),zeniAccounts:()=>n(()=>import("./ZeniAccountRoutes-D4tdV3pp.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(()=>n(()=>import("./ReportsRoutes-CBujwpU2.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,14,18,10,24,13,17,20]))),en=l(()=>n(()=>import("./AddressRoutes-BAoL9X9M.js"),__vite__mapDeps([50,1,2,3,22,4,5,6,7,14,20]))),sn=l(()=>n(()=>import("./PeopleRoutes-RW_096jh.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,14,9,10,17,20]))),nn=l(()=>n(()=>import("./PandLWithForecastRoutes-CLt1i3Y0.js"),__vite__mapDeps([51,1,2,3,4,5,6,7,14,18,9,10,24,13,17,20]))),an=l(()=>n(()=>import("./CustomerOnboardingRoutes-Bdd93GLs.js"),__vite__mapDeps([52,1,2,3,22,4,5,6,7,14,37,38,39,40,41,12,20]))),tn=l(()=>n(()=>import("./VendorsRoutes-DUgIWngO.js"),__vite__mapDeps([47,1,2,3,4,5,6,7,22,14,18,13,48,9,10,17,25,36,20]))),rn=l(()=>n(()=>import("./TransactionDetailRoutes-Cv-b9ox5.js"),__vite__mapDeps([53,1,2,3,14,4,5,6,7,11,9,10,12,13,20]))),Ue=l(()=>n(()=>import("./EntityDetailRoutes-BO4dqv98.js"),__vite__mapDeps([54,1,2,3,4,5,6,7,12,8,9,10,11,13,20]))),on=l(()=>n(()=>import("./DashboardRoutes-DnO_uZew.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(()=>n(()=>import("./BillPayRoutes-BCdkqOaO.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]))),ln=l(()=>n(()=>import("./SettingsRoutes-3ioUPEs0.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(()=>n(()=>import("./ReimbursementRoutes-R1LL2Jul.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,14,26,17,15,13,27,18,9,10,24,25,32,29,30,20]))),cn=l(()=>n(()=>import("./ZeniAccountRoutes-D4tdV3pp.js"),__vite__mapDeps([49,1,2,3,4,5,6,7,14,26,17,15,13,27,18,23,22,9,10,34,20]))),dn=l(()=>n(()=>import("./TreasuryRoutes-C80Fysyq.js"),__vite__mapDeps([46,1,2,3,4,5,6,7,14,26,17,15,13,27,9,10,18,20]))),mn=l(()=>n(()=>import("./TransactionListRoutes-CZPaPN_2.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,13,34,20]))),un=l(()=>n(()=>import("./ChargeCardRoutes-CboNm6AT.js"),__vite__mapDeps([43,1,2,3,4,5,6,7,26,17,14,15,13,27,9,10,22,20]))),_n=l(()=>n(()=>import("./NotificationRoutes-PMbfvT4N.js"),__vite__mapDeps([55,1,2,3,14,4,5,6,7,9,10,20]))),En=l(()=>n(()=>import("./PerformanceRoutes-BavcAJuZ.js"),__vite__mapDeps([56,1,2,3,14,4,5,6,7,9,10,17,20]))),An=l(()=>n(()=>import("./ExpenseAutomationRoutes-D4GTQt75.js"),__vite__mapDeps([45,1,2,3,14,4,5,6,7,9,10,11,12,13,8,36,25,20]))),pn=l(()=>n(()=>import("./RewardsRoutes-B2TCCUZn.js"),__vite__mapDeps([57,1,2,3,4,5,6,7,14,19,9,10,17,20]))),In=l(()=>n(()=>import("./TaskRoutes-CLf_GzX3.js"),__vite__mapDeps([58,1,2,3,14,4,5,6,7,24,17,59,9,10,20]))),gn=l(()=>n(()=>import("./AiCfoScreen-D9CKKCB1.js"),__vite__mapDeps([60,1,2,3,4,5,6,7,48,20]))),y=l(()=>n(()=>import("./NotFoundScreen-Tw99uwdp.js"),__vite__mapDeps([14,1,2,3,4,5,6,7,20]))),xn=l(()=>n(()=>import("./TaskListScreen-Bct_XoDl.js"),__vite__mapDeps([59,1,2,3,4,5,6,7,9,10,17,20])));function wn({setTenantEmailDomain:i}){const U=Vs(),V=Ns(),{tenantEmailDomain:o}=Ss(),N=ws().mode,{setLoading:f,clearAllLoading:O,clearLoading:Z}=zs(),b=H.getSignedInUserTenant(o)?.tenantId,h=H.getSignedInUser(),K=os(h),G=Ms(),[S,be]=v.useState(!1),r=z(a=>ls(a)),{useFeatureGate:P}=Gs(),J=$s(),ye=Ys(),{isFeatureEnabled:fe}=P(L.isExpenseAutomationEnabled),{isFeatureEnabled:Ce}=P(L.isExpenseAutomationEnabledV2),ve=Ce||fe&&K,{isFeatureEnabled:Oe}=P(L.isDepositAccountsFeatureEnabled),{isFeatureEnabled:Pe}=P(L.isTreasuryEnabled),{isFeatureEnabled:Fe}=P(L.isChargeCardFeatureEnabled),{isFeatureEnabled:se}=P(L.isDebitCardFeatureEnabled),j=z(a=>a.tenantState.fetchState),A=z(a=>a.tenantState.activeTenantFetchState.fetchState),u=A==="Completed"||j==="Completed"?cs(se,r):void 0,$=A==="Completed"||j==="Completed"?ds(r):void 0,Le=A==="Completed"||j==="Completed"?ms(r):void 0,Be=Fe||se||!!Le||!!$||!!u,{isFeatureEnabled:ke}=P(L.isSettingsFeatureEnabled),{isFeatureEnabled:Ve}=P(L.isAiCfoFileUploadEnabled),Y=z(a=>us(a));if(o!=null){const a=H.getSignedInUserTenant(o);h!=null&&a!=null&&je(h,r,N)}const w={tenantId:b,userId:h?.userId,sessionId:h?.zeniSessionId},ne=_s(),E=qs(),Ne=r.company==null||E?.loggedInUserRoleMap!=null&&Ee(E.loggedInUserRole),Se=Es(E?.loggedInUserRoleMap),ae=v.useRef(!0),te=Te("/:tenantEmailDomain/onboarding/*")!==null,Q=Te("/:tenantEmailDomain/month_end_close_checks/review/:selectedTab/:selectedPeriod/*"),Me=z(a=>w.tenantId!=null?As(a,w.tenantId):void 0);v.useEffect(()=>{f(B.TENANT_FETCHING),i(o)},[o]),v.useEffect(()=>{if(Q!=null&&b!=null){const a=Q.params.selectedPeriod;if(a!=null){const D=a.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(()=>{S||(be(!0),f(B.TENANT_FETCHING)),ae.current?ae.current=!1:!Ts(ne,w)&&H.isSignedIn()&&(f(B.TENANT_FETCHING),function(a,D,d,s){if(pe(D?.userId,D?.zeniSessionId,a.tenantId),d(Bs(!0)),d(Ie(a.tenantId)),a.tenantId!=null&&_.clearTenant(a.tenantId),a.tenantId!=null){const m=H.getSignedInUserTenantWithId(a.tenantId);s&&he.updateAppLocaleID(Ks(s)),m?.tenantEmailDomain!=null&&H.saveActiveTenantDomainForUser(m?.tenantEmailDomain)}a.userId!=null?X.identify(a.userId,{tenant_id:a.tenantId}):X.resetUserIdentity()}(w,h,U,Me))},[w,ne,h,U,H]),v.useEffect(()=>{H.isSignedIn()&&(f(B.TENANT_FETCHING),function(a,D,d,s,m,M,k){if(d==null&&s==null)return void console.warn("There is no current tenant selected!!");const q=s!=null&&m?.zeniSessionId!=null,ts=d==null||d.tenantId!==s,is=d!=null&&d.excludedResources==null,rs=d!=null&&d.externalConnections==null;if(q&&ts){k(Ie(s));const W=H.getSignedInUserTenantWithId(s);W?.tenantEmailDomain!=null&&H.saveActiveTenantDomainForUser(W?.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 q&&is&&_.shouldFetchExcludedResources(s)&&(_.markExcludedResourcesFetchStarted(s),k(ge(m.userId,s))),q&&rs&&_.shouldFetchConnections(s)&&(_.markConnectionsFetchStarted(s),k(xe(m.userId,s)));if(q){X.identify(m.userId,{tenant_id:s});const W=s==null||s!=null&&(D==="Completed"||D==="Error");a==="Completed"||D!=="Not-Started"&&D!=="Error"||s==null||!_.shouldFetchActiveTenant(s)||(_.markActiveTenantFetchStarted(s),M(B.TENANT_FETCHING),k(ks(m.userId,s,m.zeniSessionId))),W&&(a==="Not-Started"||a==="Error")&&_.shouldFetchAllTenants()&&(_.markAllTenantsFetchStarted(),k(Ae(m.userId,m.zeniSessionId)))}}(j,A,r,b,h,f,U))},[b,A]),v.useEffect(()=>{H.isSignedIn()&&j==="Completed"&&Y.tenantsBaseInOrder.length>0&&(Z(B.TENANT_FETCHING),H.saveSignedInUserTenants(hs(Y.tenantsBaseInOrder)),h!=null&&je(h,r,N,void 0,Y.tenantsBaseInOrder))},[Y,j,r,h]),v.useEffect(()=>{A==="In-Progress"&&f(B.TENANT_FETCHING),A!=="Completed"&&A!=="Error"||(A==="Completed"&&b!=null?(O(),_.markActiveTenantFetchCompleted(b)):A==="Error"&&b!=null&&(_.markActiveTenantFetchFailed(b),Z(B.TENANT_FETCHING),Z(B.TENANT_SWITCHING))),j!=="Completed"&&j!=="Error"||(j==="Completed"?_.markAllTenantsFetchCompleted():j==="Error"&&_.markAllTenantsFetchFailed())},[A,j,b,S]);const ie=v.useRef(!1);v.useEffect(()=>{!ie.current&&A==="Completed"&&S&&(ie.current=!0,function(a=Qs,D=3e3){setTimeout(()=>{const d=s=>{if(s>=a.length)return;const m=a[s],M=Js[m];M!=null?M().then(()=>ee(()=>d(s+1))).catch(()=>ee(()=>d(s+1))):d(s+1)};ee(()=>d(0))},D)}())},[A,S]);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&&Ee(r.userRole),re=r?.company==null||r.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!C,oe=Be&&!C,Ge=Us(E?.loggedInUserRoleMap),$e=r.externalConnections?.accounting[0]?.isValid,le=r.company?.companyOnboardingInfo.isOnboardingCompleted,ce=r?.company==null||r.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!C,de=ce&&Ds(E?.loggedInUserRoleMap),me=Oe&&!C,Ye=r.company!=null&&Hs(r.company),qe=Pe&&Ye===!0&&!C,We=re&&Rs(E?.loggedInUserRoleMap),Ke=oe&&bs(E?.loggedInUserRoleMap),Je=me&&ys(E?.loggedInUserRoleMap),Qe=fs(E?.loggedInUserRoleMap),Xe=Cs(E?.loggedInUserRoleMap),p=vs(E?.loggedInUserRoleMap),I=Os(E?.loggedInUserRoleMap),g=Ps(E?.loggedInUserRoleMap),x=Fs(E?.loggedInUserRoleMap),T=Ls(E?.loggedInUserRoleMap),ue=re&&x,_e=ce&&T,es=me&&p,ss=qe&&I,ns=oe&&g,as=r.excludedResources?.resources?.find(a=>a.resource==="/invites")!=null||Se===!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(Ae(h.userId,h.zeniSessionId)),null):A!=="In-Progress"&&A!=="Not-Started"||j==="Completed"?(le===!0||K&&!te)&&$e===!1&&u===!1&&$===!1?(i(void 0),e.jsx(c,{to:"/connection/auth",replace:!0})):!S||le!==!1||te||K?S&&r?.userRole&&u!=null&&$!=null&&o!=null&&Object.keys(E.loggedInUserRoleMap).length>0?e.jsx(Zs,{children:e.jsxs(t,{element:e.jsx(Ws,{}),children:[e.jsx(t,{path:"/",element:e.jsx(Tn,{isDashboardAccess:F,isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,isTenantCardsOnly:$})}),e.jsx(t,{path:"dashboard/*",element:F?e.jsx(on,{}):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:as||F?e.jsx(sn,{}):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(nn,{}):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(an,{})}),e.jsx(t,{path:"transaction/*",element:F&&C===!1||we||ze?e.jsx(rn,{}):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(mn,{}):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(xn,{})}),e.jsx(t,{path:"tasks/*",element:e.jsx(In,{})}),e.jsx(t,{path:"address/*",element:We||de||Je||Ke?e.jsx(en,{}):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(cn,{}):e.jsx(y,{})}),e.jsx(t,{path:"treasury/*",element:ss?e.jsx(dn,{}):e.jsx(y,{})}),e.jsx(t,{path:"performance",element:ye?e.jsx(En,{}):e.jsx(Re,{tenantEmailDomain:o})}),e.jsx(t,{path:"month_end_close_checks/review/*",element:ve&&C===!1?e.jsx(An,{}):e.jsx(Re,{tenantEmailDomain:o})}),e.jsx(t,{path:"notifications/*",element:e.jsx(_n,{})}),e.jsx(t,{path:"vendors/*",element:Ne?e.jsx(tn,{}):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(ln,{hasAdminLevelAccess:de}):e.jsx(y,{})}),e.jsx(t,{path:"cards/*",element:ns?e.jsx(un,{}):e.jsx(y,{})}),e.jsx(t,{path:"rewards/*",element:Ze?e.jsx(pn,{}):e.jsx(y,{})}),e.jsx(t,{path:"/ai-cfo",element:J?e.jsx(c,{to:"explore"}):e.jsx(y,{})}),e.jsx(t,{path:"/ai-cfo/",element:J?e.jsx(c,{to:"explore"}):e.jsx(y,{})}),e.jsx(t,{path:"/ai-cfo/:session_id",element:J?e.jsx(gn,{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 Tn=({isDashboardAccess:i,isUserHasZeniAccountsAccess:U,isUserHasChargeCardAccess:V,isUserHasBillPayAccess:o,isUserHasReimbursementAccess:N,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"}):N?e.jsx(c,{to:"reimbursements"}):e.jsx(c,{to:"dashboard"}),R=({isUserHasZeniAccountsAccess:i,isUserHasChargeCardAccess:U,isUserHasBillPayAccess:V,isUserHasReimbursementAccess:o,isUserHasTreasuryAccess:N,isTenantBankingOnly:f,tenantEmailDomain:O})=>f===!0||i?e.jsx(Dn,{tenantEmailDomain:O}):N?e.jsx(Un,{tenantEmailDomain:O}):U?e.jsx(Hn,{tenantEmailDomain:O}):V?e.jsx(jn,{tenantEmailDomain:O}):o?e.jsx(hn,{tenantEmailDomain:O}):e.jsx(y,{}),hn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/reimbursements`}),jn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/bills`}),Un=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/treasury`}),Dn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/checking`}),Hn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/cards`}),Re=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/dashboard`});export{R as FallBackRoute,wn as default};
@@ -1 +0,0 @@
1
- import{j as u}from"./liveblocks-CobNzJQ8.js";import{a as f,b as T,q as D}from"./sentry-4KELney1.js";import{h as A,j as z,g as l,u as j,N as M,k as O}from"./core-C33SxPr0.js";import{u as F,z as s,h as P,e as E,D as N,f as _,g as B,F as q,i as V,k as $,m as v}from"./index-lRVIqDxX.js";import{eN as H,Ij as J,Ik as R,eO as W,fi as G,Ip as K,fH as Q,cS as X,Iq as b,Ir as Y,Is as Z,bR as y}from"./zeni-epic-state-Bc0tGzp_.js";import"./mui-BZJL7p2F.js";import{u as ee}from"./useDeviceId-aR311Sxi.js";import{f as te}from"./analyticsHelper-By8O4tIS.js";import{t as ne}from"./getLocaleForTenant-BYoBh_m7.js";import"./recharts-DgAB7GKe.js";import"./analytics-D6PJZcCm.js";import"./plaid-JaP9Mc6f.js";import"./dnd-WhcD1exD.js";import"./stripe-DMRn4zHo.js";import"./lottie-C3pXl1t7.js";import"./lexical-QnRSjOj3.js";import"./pdf-B8JyBdKX.js";import"./utils-BZbMXTZs.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new t.Error().stack;i&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[i]="9a5d78b5-7923-4425-9606-421f7ea64d69",t._sentryDebugIdIdentifier="sentry-dbid-9a5d78b5-7923-4425-9606-421f7ea64d69")}catch{}})();const ie=O(function(t,i){const d=t.tenantState.fetchState,g=t.tenantState.sendEmailMagicLinkFetchState,{magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:c}=i;return{googleClientId:v.googleClientId,microsoftClientId:v.microsoftClientId,signInError:t.tenantState.error?.error,fetchState:d,sendMagicLinkStatus:g,magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:c}},function(t,i){const{location:d,navigate:g}=i;return console.warn(JSON.stringify(window.location)),{onOAuthError:(n,a)=>{D({message:`OAuth error from provider ${a} with error ${n}`,level:"error",tags:{authProvider:a,errorType:"zeni.login.error"},extra:{error:n,windowLocation:window.location.href}})},onOAuthSuccess:(n,a)=>{const c=a==="google"?window.location.origin:window.location.origin+window.location.pathname;t(Z({authCode:n,oauthProvider:a,appType:"web",redirectUri:y(c),sourceUri:y(d.state!=null?d.state.origin:"")}))},getSignedInUser:()=>s.getSignedInUser(),onSignedInCallback:()=>{const n=d.state?.origin;n&&n!=="/"?g(n,{replace:!0}):window.open(window.location.origin,"_self")},sendMagicLink:n=>{const{deviceId:a}=i;a!=null&&(s.saveMagicLinkEmail(n),t(Y(n,a)))},clearSignInError:()=>{t(b())}}})($),ae=T.memo(ie);function ve({setTenantEmailDomain:t}){const i=A(),d=z(),{clearAllLoading:g}=F(),n=s.getSignedInUser();f.useLayoutEffect(()=>{g()},[g]);const a=ee(),c=l(e=>e.tenantState.magicLinkCodeVerifier),{sendEmailMagicLinkFetchState:k,accountLocked:C,accountUnlockTime:h}=l(e=>e.tenantState),p=l(e=>e.tenantState.fetchState),L=l(e=>e.tenantState.activeTenantFetchState.fetchState),I=l(e=>e.tenantState.signInState),o=l(e=>e.tenantState.loggedInUser),r=l(e=>H(e)),S=l(e=>J(e)),m=j(),w=P().mode,U=m.state?.magicLinkExpired,x=m.state?.magicLinkAlreadyUsed;if(f.useEffect(()=>{k.fetchState==="Completed"&&c!=null&&(E.trackSignInLinkSent(),s.saveMagicLinkCodeVerifier(c))},[k.fetchState,c]),f.useEffect(()=>{t(void 0)},[]),f.useEffect(()=>{I!=="In-Progress"||p!=="Completed"&&L!=="Completed"||o?.zeniSessionId==null||r==null||(s.savePayNowInfoTooltip(!0,o.zeniSessionId),s.saveSignedInUserWithSession(o,o.zeniSessionId),s.saveSignedInUserTenants(R(S.tenantsInOrder),o.zeniSessionId),W(o.userId,o.zeniSessionId,r.tenantId),i(G(r.tenantId)),s.saveActiveTenantDomainForUser(r.tenantEmailDomain),i(K("Completed")),N.updateAppLocaleID(ne(r)),te(o,r,w,void 0,S.tenantsInOrder),Q().then(()=>{const e=V();e!=null&&_(e)}),setTimeout(()=>{E.trackLogin(B.Event.loginSuccess,o.authProvider??"google",X(r.productSettings))},2e3))},[I,p,L,o,r,S,w,m.state,i]),I==="In-Progress"&&p==="Completed"&&o?.zeniSessionId!=null&&r!=null||n!=null){const e=m.state?.origin??"/";return u.jsx(M,{to:e,state:{...m.state,origin:""}})}return u.jsxs(u.Fragment,{children:[u.jsx(ae,{magicLinkExpired:!!U,magicLinkAlreadyUsed:!!x,magicLinkExpiredEmail:s.getMagicLinkEmail()??void 0,location:m,navigate:d,deviceId:a??void 0,showEmailLogin:!0}),C===!0&&h!=null?u.jsx(q,{onClose:()=>i(b()),unlockDate:h}):null]})}export{ve as default};
@@ -1,9 +0,0 @@
1
- import{j as s}from"./liveblocks-CobNzJQ8.js";import{a}from"./sentry-4KELney1.js";import{h as c,u as m,j as p,N as g}from"./core-C33SxPr0.js";import{z as d,B as y,t as b,e as f,g as h}from"./index-lRVIqDxX.js";import{fM as I,fN as x,IF as j}from"./zeni-epic-state-Bc0tGzp_.js";import{n as w}from"./mui-BZJL7p2F.js";import"./recharts-DgAB7GKe.js";import"./analytics-D6PJZcCm.js";import"./plaid-JaP9Mc6f.js";import"./dnd-WhcD1exD.js";import"./stripe-DMRn4zHo.js";import"./lottie-C3pXl1t7.js";import"./lexical-QnRSjOj3.js";import"./pdf-B8JyBdKX.js";import"./utils-BZbMXTZs.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]="e9b8631d-df81-41d1-9e5d-26e6b7fe9e86",e._sentryDebugIdIdentifier="sentry-dbid-e9b8631d-df81-41d1-9e5d-26e6b7fe9e86")}catch{}})();function U(){const e=c(),t=m(),i=p(),n=a.useRef(!1),l=d.isSignedIn(),r=t.state?.message==="logout",o=r||l;return a.useEffect(()=>{o&&!n.current&&(n.current=!0,setTimeout(()=>{try{d.clearAll(),e(I()),e(x(!1)),j(),b.reset(),f.trackLogout(h.Event.logoutSuccess),f.resetUserIdentity()}catch(u){console.error("Error during sign out:",u)}finally{r||i("/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{U as default};
@@ -1 +0,0 @@
1
- import{j as t}from"./liveblocks-CobNzJQ8.js";import i from"./NotFoundScreen-Tw99uwdp.js";import{T as r}from"./TransactionDetailScreen-jNt-QdhE.js";import"./sentry-4KELney1.js";import{n as d,o as e}from"./core-C33SxPr0.js";import"./zeni-epic-state-Bc0tGzp_.js";import"./recharts-DgAB7GKe.js";import"./index-lRVIqDxX.js";import"./mui-BZJL7p2F.js";import"./analytics-D6PJZcCm.js";import"./plaid-JaP9Mc6f.js";import"./dnd-WhcD1exD.js";import"./stripe-DMRn4zHo.js";import"./lottie-C3pXl1t7.js";import"./lexical-QnRSjOj3.js";import"./pdf-B8JyBdKX.js";import"./utils-BZbMXTZs.js";import"./useAskAiCfoHostNavButtonProps-jfcpkpra.js";import"./useFetchSuggestedQuestionsWhenReady-Ds-n57vC.js";import"./decodeURIComponentSafe-DBubftdA.js";import"./routePaths-NebWlLTP.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-CobNzJQ8.js";import{a as f}from"./sentry-4KELney1.js";import{q as u,h,g as y,N as I}from"./core-C33SxPr0.js";import{IE as b,eO as w,yZ as x}from"./zeni-epic-state-Bc0tGzp_.js";import{z as l,B as j,E as S,G as E}from"./index-lRVIqDxX.js";import{n as g}from"./mui-BZJL7p2F.js";import"./recharts-DgAB7GKe.js";import"./analytics-D6PJZcCm.js";import"./plaid-JaP9Mc6f.js";import"./dnd-WhcD1exD.js";import"./stripe-DMRn4zHo.js";import"./lottie-C3pXl1t7.js";import"./lexical-QnRSjOj3.js";import"./pdf-B8JyBdKX.js";import"./utils-BZbMXTZs.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]="3026d4ad-7c33-4a78-9926-87395f9e7bdd",e._sentryDebugIdIdentifier="sentry-dbid-3026d4ad-7c33-4a78-9926-87395f9e7bdd")}catch{}})();const W=()=>{const[e]=u(),t=e.get("code")??"",s=e.get("state")??"",p=e.get("profileId")??"",[n,c]=f.useState(!1),a=h(),i=y(m=>b(m)),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 w(r.userId,r.zeniSessionId,d?.tenantId),f.useEffect(()=>{n||(c(!0),a(x(t,p,s)))},[n,a]),i.fetchState==="Error"?o.jsx(D,{children:o.jsx(_,{children:i.error?.message??""})}):(i.fetchState==="Completed"&&window.close(),o.jsx(j,{fetchState:"In-Progress"}))},D=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(E.LargeRegular)`
10
- display: flex;
11
- color: ${S.important};
12
- `;export{W as default};
@@ -1,66 +0,0 @@
1
- import{j as n}from"./liveblocks-CobNzJQ8.js";import{j as G,u as W,h as _,l as H,g as k,k as J,N as ne,n as $e,o as C}from"./core-C33SxPr0.js";import{eN as N,Nr as we,Ns as He,cO as te,cj as Ze,fb as Ge,wa as Ae,An as We,w4 as Fn,Nt as Rn,Nu as Un,w7 as Ln,we as Ce,w1 as zn,v_ as Mn,Me as pe,Nv as _n,DH as Nn,Jk as Vn,DJ as $n,k8 as Fe,Nw as Hn,pF as Je,pt as Ye,j$ as Ke,k2 as Re,Jl as Ue,Jm as Zn,Nx as Gn,k1 as Wn,ko as Jn,jS as Yn,ip as Kn,io as qn,Ny as Qn,Nz as xe,Do as Xn,NA as et,NB as nt,M7 as De,NC as Le,ND as tt,DU as at,MR as ot,Bh as qe,s6 as Qe,NE as st,DR as rt,NF as Xe,cK as Ie,DY as en,fc as it,eR as nn,eT as Se,DW as ct,Bb as lt,DO as dt,NG as tn,NH as an,Dq as on,DA as ze,NI as ut,Du as pt,NJ as mt,MG as ht,DZ as gt,bv as ft,bD as yt,cu as Ct,bE as xt,bs as kt,Il as wt}from"./zeni-epic-state-Bc0tGzp_.js";import{j as ae,a as $,z as A,d as B,h as L,B as oe,bO as At,R as be,Z as V,y as Y,q as sn,al as Dt,aa as Me,e as U,bP as It,ao as ve,bQ as St,J as me,bR as bt,g as Ee,aI as Z,bS as vt,K as Et,I as rn,a7 as jt,bT as _e,bU as Pt,s as ee,bV as Tt,bW as Ot,bX as Bt,bY as Ft,a4 as Rt,o as Ut}from"./index-lRVIqDxX.js";import{n as z,D as K,S as q}from"./mui-BZJL7p2F.js";import ue from"./NotFoundScreen-Tw99uwdp.js";import{S as Ne}from"./SetupPagesScreen-D2Rtk73R.js";import{F as cn}from"./FeaturePreviewScreen-6rYoc9P_.js";import{a as d}from"./sentry-4KELney1.js";import{M as he}from"./MobileAppDrawer-CRSAzIxd.js";import{A as Lt,D as zt,V as Mt}from"./DomesticWireDetailScreen-BHBtD4Ei.js";import{A as _t}from"./AddressScreen-BzneUOo4.js";import{u as ln}from"./useAskAiCfoHostNavButtonProps-jfcpkpra.js";import{c as dn}from"./useFetchSuggestedQuestionsWhenReady-Ds-n57vC.js";import{Z as Nt}from"./ZeniAccountStatementScreen-CdjQf0_x.js";import"./recharts-DgAB7GKe.js";import"./analytics-D6PJZcCm.js";import"./plaid-JaP9Mc6f.js";import"./dnd-WhcD1exD.js";import"./stripe-DMRn4zHo.js";import"./lottie-C3pXl1t7.js";import"./lexical-QnRSjOj3.js";import"./pdf-B8JyBdKX.js";import"./utils-BZbMXTZs.js";import"./analyticsHelper-By8O4tIS.js";import"./routePaths-NebWlLTP.js";import"./BusinessVerificationPageScreen-X7xY6NZn.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]="a1fba6d7-6fdc-45e7-add7-0e1d4c476d73",e._sentryDebugIdIdentifier="sentry-dbid-a1fba6d7-6fdc-45e7-add7-0e1d4c476d73")}catch{}})();const Vt=z.div`
2
- display: flex;
3
- min-height: 100%;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- `,$t=J(function(e){return{autoTransferRuleView:we(e),downloadAccountDetailEndPoint:`${be}/account_details`,transferLimit:5e5,depositAccountListView:We(e.depositAccountState,e.depositAccountListState)}},function(e,t){const{navigate:s,handleDrawerToggle:o}=t;return{onBackClick:()=>{s("..")},onClickMenuIcon:()=>{o(!0)},onFetchAutoTransferRules:a=>{e(Ae(a))},onCreateRule:()=>{e(Mn())},onUpdateRule:a=>{e(Ce(a))},onDeleteClick:a=>{e(zn(a))},onPauseClick:a=>{e(Ce(a,!0,!1))},onResumeClick:a=>{e(Ce(a,!1,!0))},onActivityClick:(a,r)=>{e(Ln(a,r))},onUpdateRuleLocalData:a=>{e(Un(a))},clearRuleLocalData:()=>{e(Rn())},onEditClick:a=>{s(`./${a}/edit`)},onEditDrawerClose:()=>{s("../../",{relative:"path"})},onReviewClick:()=>{e(Fn())}}})(At);function Ve({isEditDrawerOpen:e}){const t=G(),s=W(),o=_(),a=ae(),{ruleId:r,tenantEmailDomain:l}=H(),{useFeatureGate:c}=$(),[u,h]=d.useState(!1),[x,i]=d.useState(!1),p=k(S=>N(S)),m=k(S=>we(S)),g=m?.fetchState??"Not-Started",v=k(S=>He(S)),y=p?.companyId??A.getSignedInUserTenant(l)?.companyId,w=te(a?.loggedInUserRoleMap)||Ze(a?.loggedInUserRoleMap),{isFeatureEnabled:I}=c(B.isTreasuryEnabled),f=p?.company!=null&&Ge(p.company),D=I&&f,T=A.getSignedInUser(),M=p.tenantId,F={userId:T?.userId??"",sessionId:T?.zeniSessionId??"",tenantId:M??""};d.useEffect(()=>{!x&&g==="Not-Started"&&y&&(i(!0),o(Ae(!0)))},[x,g,y,o]);const E=S=>{h(S)},P=L(),O=!!s.state?.scrollToAddRule;return m?.fetchState!=="Completed"?n.jsx(oe,{fetchState:"In-Progress",style:{backgroundColor:P.colors.grey5}}):n.jsxs(Vt,{children:[n.jsx(he,{isAppContentDrawerOpen:u,handleDrawerToggle:E}),n.jsx($t,{navigate:t,location:s,currentTenant:p,handleDrawerToggle:E,isEditDrawerOpen:e,editingRuleId:r,authParams:F,includeTreasuryOption:D,hasAdminLevelAccess:w,zeniAccountsConfigDetail:v,scrollToAddRule:O})]})}const Ht={overlayWidth:new Y(100,100,58)},Zt=({vendorId:e,isDrawerOpen:t,closeDrawerHandler:s})=>{const o=_(),a=L(),r=V();if(A.getSignedInUser()==null)throw Error("Can't access ach account page without signing in...");return n.jsx(K,{onClose:()=>{s(!0),o(pe())},anchor:"right",open:t,PaperProps:{style:{width:Ht.overlayWidth.valuePercentage(r),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:a.colors.black,opacity:.75,cursor:"pointer"}}},children:n.jsx(Gt,{onClick:l=>l.stopPropagation(),children:n.jsx(Lt,{vendorIdParam:e,accountContext:"express-pay"})})})},Gt=z(q)`
10
- display: flex;
11
- min-height: 100%;
12
- flex-direction: column;
13
- `,Wt={overlayWidth:new Y(100,100,58)},Jt=({isDrawerOpen:e,closeDrawerHandler:t})=>{const s=_(),o=L(),a=V();if(A.getSignedInUser()==null)throw Error("Can't access address page without signing in...");return n.jsx(K,{onClose:()=>{t(!0),s(pe())},anchor:"right",open:e,PaperProps:{style:{width:Wt.overlayWidth.valuePercentage(a),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.75,cursor:"pointer"}}},children:n.jsx(Yt,{onClick:r=>r.stopPropagation(),children:n.jsx(_t,{accountContext:"express-pay",addressTypeParam:"vendor_address"})})})},Yt=z(q)`
14
- display: flex;
15
- min-height: 100%;
16
- flex-direction: column;
17
- `,Kt={overlayWidth:new Y(100,100,58)},qt=({vendorId:e,isDrawerOpen:t,closeDrawerHandler:s})=>{const o=_(),a=L(),r=V();if(A.getSignedInUser()==null)throw Error("Can't access ach account page without signing in...");return n.jsx(K,{onClose:()=>{s(!0),o(pe())},anchor:"right",open:t,PaperProps:{style:{width:Kt.overlayWidth.valuePercentage(r),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:a.colors.black,opacity:.75,cursor:"pointer"}}},children:n.jsx(Qt,{onClick:l=>l.stopPropagation(),children:n.jsx(zt,{vendorIdParam:e,accountContext:"express-pay"})})})},Qt=z(q)`
18
- display: flex;
19
- min-height: 100%;
20
- flex-direction: column;
21
- `,Xt=z.div`
22
- display: flex;
23
- height: 100vh;
24
- width: 100%;
25
- flex: 1 1 auto;
26
- flex-direction: column;
27
- align-items: center;
28
- background-color: ${e=>e.theme.colors.grey4};
29
- `,ea=J(function(e,t){const s=N(e),o=A.getSignedInUser(),a=s.tenantId,r={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:a??""},l=t.expressPayDetails,c=e.entityAutoCompleteState.autoCompleteText.common,u=Vn(e,"common");return{expressPayDetails:l,fileProps:{authParams:r,filesEndPoint:`${ve.fileMicroServiceBaseUrl}`},vendorSearchAutoCompleteData:{autoCompleteText:c,entityAutoCompleteView:u},analytics:t.analytics}},function(e,t){const{navigate:s}=t;return{onSaveVendor:o=>{e(qn(o,void 0,void 0,!0))},saveVendorDetailLocalData:(o,a)=>{e(Re({vendorId:a,localData:o}))},saveExpressPayLocalData:o=>{e(Kn({localData:o}))},onVendorSelected:o=>{o!=null&&e(Yn(o,!1))},updateSelectedVendorForCreate:o=>{e(Jn(o))},initializeVendorAddress:()=>{e(Wn())},resetVendorSaveStatus:o=>{e(Gn({vendorId:o}))},vendorSearchAutoCompleteActions:{onAutoCompleteInputChange:(o,a)=>{o.trim().length>=2?e(Zn({searchString:o,entityType:a,searchOrigin:"common"})):o.trim().length===0&&e(Ue("common"))},onCancelAutoComplete:()=>{e(Ue("common"))}},chooseNewVendor:o=>{e(Re({localData:{vendorName:o}}))},onClickAddAccount:o=>{o.method.toLowerCase().indexOf("ach")!==-1?s("./add-ach",{relative:"path"}):o.method.toLowerCase().indexOf("wire")!==-1&&o.method.toLowerCase().indexOf("domestic")!==-1&&s("./add-wire",{relative:"path"})},updateFilesEntity:o=>{e(Ke({files:o}))},onDeleteFile:o=>{e(Ye(o))},onEditFileName:(o,a)=>{e(Je(o,a.split(".")[0]))},onBackClick:o=>{o!=null&&e(Fe(o)),e(Fe()),e(Hn()),e(pe()),s("../",{relative:"path"})},onSchedulePayment:()=>{e($n())}}})(It);function le({isAddACHDrawerOpen:e,isAddWireDrawerOpen:t,isAddAddressDrawerOpen:s}){const o=G(),a=W(),r=_(),[l,c]=d.useState(!1),{tenantEmailDomain:u}=H(),h=ae(),x=L(),i=k(j=>j.expressPayState.fetchState),p=k(j=>N(j)),m=k(j=>_n(j)),g=m.expressPayLocalData?.vendorId,v=p.companyId??A.getSignedInUserTenant(u)?.companyId,[y,w]=d.useState(!1),[I,f]=d.useState(!1),[D,T]=d.useState(!1),M=sn(a.state?.pathnameStackToGoBack),{poppedPathname:F}=M,E=F?.split("/"),P=E?.[E.length-1];d.useEffect(()=>{e===!0?w(!0):(w(!1),document.body.style.overflow="auto")},[e]),d.useEffect(()=>{t===!0?f(!0):(f(!1),document.body.style.overflow="auto")},[t]),d.useEffect(()=>{s===!0?T(!0):(T(!1),document.body.style.overflow="auto")},[s]),d.useEffect(()=>{i==="Not-Started"&&r(Nn(!0,!0))},[i,r]);const O=Dt(m.vendorViewDetails.bankAccountCreationState?.fetchState);if(d.useEffect(()=>{O==="In-Progress"&&m.vendorViewDetails.bankAccountCreationState?.fetchState==="Completed"&&b()},[O,m.vendorViewDetails.bankAccountCreationState?.fetchState]),A.getSignedInUser()==null)throw Error("Can't access express pay page without signing in...");const S=j=>{c(j)},b=()=>{w(!1),f(!1),o("../",{relative:"path"})};return m.fetchState==="Completed"?n.jsxs(Xt,{children:[Me(a)?n.jsx(he,{isAppContentDrawerOpen:l,handleDrawerToggle:S}):null,y===!0?n.jsx(Zt,{vendorId:g,closeDrawerHandler:b,isDrawerOpen:y}):null,I===!0?n.jsx(qt,{vendorId:g,closeDrawerHandler:b,isDrawerOpen:I}):null,D===!0?n.jsx(Jt,{closeDrawerHandler:b,isDrawerOpen:D}):null,n.jsx(Mt,{vendorId:g,isExpressPayPage:!0}),n.jsx(ea,{navigate:o,location:a,companyId:v,accountId:P,analytics:U,currentTenant:p,vendorId:g,roleMap:h?.loggedInUserRoleMap,isSettings:Me(a),expressPayDetails:m,onClickMenuIcon:()=>{S(!0)}})]}):n.jsx(oe,{fetchState:"In-Progress",style:{backgroundColor:x.colors.grey5}})}const na={overlayWidth:new Y(100,100,58)},ta=({authParams:e,downloadAccountDetailEndPoint:t,isAccountInfoDrawerOpen:s,zeniBankAccountDetail:o,closeDrawerHandler:a})=>{const r=L(),l=V(),c=k(i=>He(i)),u=k(i=>N(i));if(A.getSignedInUser()==null)throw Error("Can't access Account detail page without signing in...");const h=()=>{a(!0)},x={depositAccount:o,onDismissClick:h,zeniAccountsConfigDetail:c,authParams:e,downloadAccountDetailEndPoint:t,currentTenant:u};return n.jsx(K,{anchor:"right",open:s,PaperProps:{style:{width:na.overlayWidth.valuePercentage(l),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:r.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>h(),children:n.jsx(aa,{onClick:i=>i.stopPropagation(),children:n.jsx(St,{...x})})})},aa=z(q)`
30
- display: flex;
31
- min-height: 100%;
32
- flex-direction: column;
33
- `,oa={overlayWidth:new Y(100,100,58)},un=({isCheckDepositDrawerOpen:e,closeDrawerHandler:t})=>{const s=L(),o=V(),a=_(),r=k(i=>N(i)),l=A.getSignedInUser(),c=r.tenantId,u={userId:l?.userId??"",sessionId:l?.zeniSessionId??"",tenantId:c??""};if(l==null)throw Error("Can't access check deposit page without signing in...");const h=k(i=>Qn(i)),x={analytics:U,checkDeposit:h,filesEndPoint:`${ve.fileMicroServiceBaseUrl}`,authParams:u,onSaveChangesToLocalStore:i=>{a(et(i))},updateFilesEntity:i=>{a(Ke({files:i}))},onAnotherTransferClick:()=>{a(xe())},onDeleteFile:i=>{a(Ye(i))},onEditFileName:(i,p)=>{a(Je(i,p.split(".")[0]))},onCheckDpositClick:()=>{a(Xn())},onDismissClick:()=>{t(!0),a(xe())}};return n.jsxs(n.Fragment,{children:[n.jsx(me,{analytics:U,onLoad:i=>(p=>p.trackPageLoaded(Ee.Event.accountsDepositCheckFormViewed))(i)}),n.jsx(K,{anchor:"right",open:e,PaperProps:{style:{width:oa.overlayWidth.valuePercentage(o),boxShadow:"none",zIndex:8}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.75,cursor:"pointer"}}},onClose:(i,p)=>(p==="backdropClick"||p==="escapeKeyDown")&&(t(!0),void a(xe())),children:n.jsx(sa,{onClick:i=>i.stopPropagation(),children:n.jsx(bt,{...x})})})]})},sa=z(q)`
34
- display: flex;
35
- min-height: 100%;
36
- flex-direction: column;
37
- `,ra={overlayWidth:new Y(100,100,58)},ia=J(function(e,t){const s=t.currentTenant?.companyId;return{plaidConnectionDetails:ot(e,s,"zeni_accounts","external_account").plaidConnectionDetails,depositAccountListView:We(e.depositAccountState,e.depositAccountListState)}},function(e,t){return{onReviewClick:()=>e(rt()),clearReviewTransferDetail:()=>e(st()),onFetchLinkTokenClick:s=>{e(Qe("external_account",s))},onEstablishConnectionClick:s=>{e(qe(s,t.currentTenant?.companyId,"external_account",void 0,"link_external_account"))}}})(vt),pn=({isTransferDrawerOpen:e,authParams:t,downloadAccountDetailEndPoint:s,closeDrawerHandler:o,zeniAccountsConfig:a})=>{const r=k(f=>nt(f)),l=k(f=>N(f)),c=L(),u=V(),h=_(),{accountId:x}=H(),[i,p]=d.useState("achTransfer"),[m,g]=d.useState(!1);if(A.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const{useDynamicConfig:v}=$(),{configValue:y}=v(Z.zeniAccountsConfig),w=De(y),I=()=>{o(!0),h(Le())};return d.useEffect(()=>{r.reviewTransferDetail.fetchState==="Completed"&&g(!0)},[g,r.reviewTransferDetail.fetchState]),n.jsxs(n.Fragment,{children:[n.jsx(me,{analytics:U,onLoad:f=>(D=>D.trackPageLoaded(Ee.Event.zeniAccountsTransferFormViewed))(f)}),n.jsx(K,{onClose:()=>{(i==="achTransfer"&&m===!1||i==="achTransfer"&&m&&r.fetchState==="Completed")&&I()},anchor:"right",open:e,PaperProps:{style:{width:ra.overlayWidth.valuePercentage(u),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:c.colors.black,opacity:.75,cursor:"pointer"}}},children:n.jsx(ca,{onClick:f=>f.stopPropagation(),children:n.jsx(ia,{analytics:U,transferDetails:r,authParams:t,downloadAccountDetailEndPoint:s,onTransferClick:()=>{U.trackTransferBetweenAccountsFormClicked("Transfer",r.reviewTransferDetail.reviewTransferMoney.isShowDailyAchLimitWarning?"Review Split Transfer":"Review Transfer",r.transferDetailLocalData.transferFrom?.label,r.transferDetailLocalData.transferTo?.label,r.transferDetailLocalData.amount.amount,r.reviewTransferDetail.reviewTransferMoney.isShowDailyAchLimitWarning,r.reviewTransferDetail.reviewTransferMoney.transferSchedules.length,r.transferDetailLocalData.transferFrom?.accType==="paymentAccount"&&r.transferDetailLocalData.transferTo?.accType==="depositAccount"&&a.zeniAccountsConfigDetail.depositProductConfig.depositProducts?.[0].range?.[1]!=null&&r.transferDetailLocalData.amount.amount>a.zeniAccountsConfigDetail.depositProductConfig.depositProducts[0].range[1]),h(at(x))},onDismissClick:I,onSaveChangesToLocalStore:f=>{h(tt(f))},onAnotherTransferClick:()=>{g(!1),h(Le())},currentTenant:l,zeniAccountsConfigDetail:a,currentDrawerContent:i,setCurrentDrawerContent:p,showReviewContent:m,setShowReviewContent:g,onBackClick:()=>{},maxInsuredAmount:w.maxInsuredAmount})})})]})},ca=z(q)`
38
- display: flex;
39
- min-height: 100%;
40
- flex-direction: column;
41
- `,la=z.div`
42
- display: flex;
43
- min-height: 100%;
44
- width: 100%;
45
- flex: 1 1 auto;
46
- flex-direction: column;
47
- align-items: center;
48
- background-color: ${e=>e.theme.colors.grey4};
49
- `,da=J(function(e,t){return{zeniAccountListView:Xe(e),isExpressPayEnabled:t.isExpressPayEnabled,analytics:t.analytics}},function(e,t){const{navigate:s,currentTenant:o,location:a,companyId:r,handleDrawerToggle:l,analytics:c,isBillPayEnabled:u,isDebitCardFeatureEnabled:h}=t,{tenantEmailDomain:x}=o;return{onZeniAccountClick:(i,p)=>{c.trackAccountsListPageClicked("Accounts Row Item Click",p,"active");const m=ua(x,i),g=ee(a.state?.pathnameStackToGoBack,a.pathname);s(m,{state:{pathnameStackToGoBack:g}})},onSettingsClick:()=>{c.trackAccountsListPageClicked("Settings Icon"),s("setup")},onReloadTransactions:()=>{e(en(!1))},handleMoveMoneyOptionSelection:(i,p)=>{let m="page-not-found";i==="sendMoney"&&(m=fn(x)),i==="payBill"?m=mn(o,u,h):i==="transfer"?(m=hn(x),p!=null&&e(tn(p))):i==="checkDeposit"&&(m=gn(x));const g=ee(a.state?.pathnameStackToGoBack,a.pathname);s(m,{state:{pathnameStackToGoBack:g}})},unlinkPaymentAccount:(i,p)=>{c.trackAccountsListPageClicked("Unlink Account",p),e(dt(i))},onFetchLinkTokenClick:(i,p)=>{e(Qe("external_account",i,p))},onUpdatePaymentAccountStatus:(i,p,m)=>{e(lt(i,p,"zeni_accounts","external_account",m))},onEstablishConnectionClick:i=>{e(qe(i,r,"external_account",void 0,"link_external_account"))},onCreateCheckingClick:i=>{e(ct(i))},onClickMenuIcon:()=>{l(!0)},onTreasuryGetStartedClick:()=>{s("../../treasury/promo")},onAutoTransferClick:i=>{i?s("./auto-transfer",{state:{...a.state,scrollToAddRule:!0}}):s("./auto-transfer")}}})(Pt);function ke({isTransferDrawerOpen:e,isCheckDepositDrawerOpen:t}){const s=W(),o=G(),a=_(),r=V(),{tenantEmailDomain:l}=H(),{useDynamicConfig:c,useFeatureGate:u}=$(),h=L(),{configValue:x}=c(Z.zeniAccountsConfig),{isFeatureEnabled:i}=u(B.isTreasuryEnabled),{isFeatureEnabled:p}=u(B.isDebitCardFeatureEnabled),{isFeatureEnabled:m}=u(B.isAutoTransferRuleEnabled),{isFeatureEnabled:g}=u(B.isCheckingCommentingEnabled),v=De(x),y=k(R=>N(R)),w=y.companyId??A.getSignedInUserTenant(l)?.companyId,{configValue:I}=c(Z.expressPayConfig),f=I.is_enable_all_tenants===!0||I.tenant_ids!=null&&I.tenant_ids.includes(y.tenantId),[D,T]=d.useState(!1),[M,F]=d.useState(!1),[E,P]=d.useState(!1),[O,S]=d.useState(!1),b=k(R=>Xe(R)),j=b.fetchState,se=k(R=>we(R)),re=se?.fetchState??"Not-Started",ge=!!y.companyZeniAccountInfo?.info?.isZeniAccountEnabled,ie=ae(),ce=!!y.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted,Q=!!y.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,X=te(ie?.loggedInUserRoleMap),yn=Ie(ie?.loggedInUserRoleMap),Cn=!!y.companyBillPayInfo?.info?.isBillPayEnabled,je=A.getSignedInUser(),xn={userId:je?.userId??"",sessionId:je?.zeniSessionId??"",tenantId:y.tenantId??""},kn=`${be}/account_details`,{areTenantIdsInSync:Pe}=Et();d.useEffect(()=>{!D&&Pe&&(T(!0),a(en(!1)))},[D,a,j,Pe]),d.useEffect(()=>{!M&&re==="Not-Started"&&w&&(F(!0),a(Ae(!0)))},[M,re,w,a]),d.useEffect(()=>{e!=null&&e===!0?P(!0):(P(!1),document.body.style.overflow="auto")},[e]),d.useEffect(()=>{S(t!=null&&t===!0)},[t]);const Te=()=>{P(!1),o("..")},[wn,An]=d.useState(!1),Oe=R=>{An(R)},{isAiCfoOpen:Dn,setIsAiCfoOpen:In}=rn(),{isAiCfoAccessEnabled:Sn,onAskAiCfoClick:bn}=ln({isAiCfoOpen:Dn,setIsAiCfoOpen:In,mobileExploreReferrer:"Checking Accounts"});dn({isDataReady:j==="Completed"});const vn=y.company!=null&&Ge(y.company),fe=(i&&vn)===!0&&!Q,[En,jn]=d.useState(!1),ye=k(R=>R.treasurySetupViewState.treasuryFundsDetails),Pn=ye.fundsDetails,Tn=jt(Pn);d.useEffect(()=>{fe!==!0||En||ye?.fetchStatus.fetchState!=="Not-Started"||(jn(!0),a(it()))},[ye.fetchStatus,a]);const On=nn(y),Bn=Se(p,y);return On===!0&&Bn!==!0?n.jsx(cn,{}):ge?n.jsxs(n.Fragment,{children:[b.fetchState==="Completed"&&E===!1&&O===!1?n.jsx(me,{analytics:U,onLoad:R=>(Be=>{Be.trackAccountsListPageViewed(b.depositAccountsSelectorView.depositAccounts.length,b.externalAccountsSelectorView.paymentAccounts.length,_e(b.summary?.totalBalance.available.amount??0),_e(b.summary?.totalInterest.available.amount??0),b.zeniAccountsConfig.zeniAccountsConfigDetail.annualPercentageYield),fe&&Be.trackTreasuryPromoView("Checking Promo Banner")})(R)}):null,E===!0?n.jsx(pn,{closeDrawerHandler:Te,isTransferDrawerOpen:E,zeniAccountsConfig:b.zeniAccountsConfig,authParams:xn,downloadAccountDetailEndPoint:kn}):null,O===!0?n.jsx(un,{closeDrawerHandler:Te,isCheckDepositDrawerOpen:O}):null,n.jsxs(la,{windowSize:r,children:[n.jsx(he,{isAppContentDrawerOpen:wn,handleDrawerToggle:Oe}),n.jsx(da,{zeniBankListView:b,navigate:o,currentTenant:y,location:s,companyId:w,analytics:U,maxInsuredAmount:v.maxInsuredAmount,isExpressPayEnabled:f,isBillPayEnabled:Cn,isCheckingCommentingEnabled:g,isDebitCardFeatureEnabled:p,isAutoTransferRuleEnabled:m,handleDrawerToggle:Oe,showTreasuryPromo:fe,treasuryYieldPercentage:Tn,treasuryInsuredAmount:5e5,isAiCfoAccessEnabled:Sn,onAskAiCfoClick:bn})]})]}):ce&&X?n.jsx(ne,{to:"../setup"}):y.companyZeniAccountInfo?.info&&!ce&&yn?n.jsx(ne,{to:"../promo",state:s.state}):n.jsx(oe,{fetchState:"In-Progress",style:{backgroundColor:h.colors.grey5}})}const mn=(e,t,s)=>{const o=Se(s,e),{tenantEmailDomain:a}=e;return o===!0||t===!1?`/${a}/bills`:`/${a}/bill/new`},ua=(e,t)=>`/${e}/checking/${t}`,hn=(e,t)=>t==null?`/${e}/checking/transfer`:`/${e}/checking/${t}/transfer`,gn=(e,t)=>t==null?`/${e}/checking/check-deposit`:`/${e}/checking/${t}/check-deposit`,fn=e=>`/${e}/checking/express-pay`,pa=z.div`
50
- display: flex;
51
- width: 100%;
52
- flex: 1 1 auto;
53
- flex-direction: column;
54
- align-items: center;
55
- min-height: 100vh;
56
- background-color: ${e=>e.theme.colors.grey4};
57
- `,ma=J(function(e,t){const{currentTenant:s}=t,o=an(e,t.accountId),a=A.getSignedInUser(),r=e.tenantState.currentTenantId,l={userId:a?.userId??"",sessionId:a?.zeniSessionId??"",tenantId:r??""},c=o.accountDetail?.id??"";return{currentTenantCompanyName:s.companyName??"",authParams:l,downloadEndPoint:`${ve.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${c}`,zeniAccountDetail:o,isExpressPayEnabled:t.isExpressPayEnabled,fetchState:o.fetchState}},function(e,t){const{navigate:s,currentTenant:o,location:a,accountId:r}=t,{tenantEmailDomain:l}=o;return{handleMoveMoneyOptionSelection:(c,u)=>{let h="page-not-found";c==="sendMoney"?h=fn(l):c==="payBill"?h=mn(o,t.isBillPayEnabled,t.isDebitCardFeatureEnabled):c==="transfer"?(h=hn(l,r),u!=null&&e(tn(u))):c==="checkDeposit"?(h=gn(l,r),u!=null&&e(ut(u))):c==="accountStatement"&&(h=fa(l,r));const x=ee(a.state?.pathnameStackToGoBack,a.pathname);s(h,{state:{pathnameStackToGoBack:x}})},onViewAllTransactionClick:()=>{const c=ga(l,r),u=ee(a.state?.pathnameStackToGoBack,a.pathname);s(c,{state:{pathnameStackToGoBack:u}})},onAccountDetailClick:()=>{const c=ha(l,r),u=ee(a.state?.pathnameStackToGoBack,a.pathname);s(c,{state:{pathnameStackToGoBack:u}})},onEditNameClick:c=>{e(ze(r,"editName",c))},onReloadZeniAccountDetailPage:()=>{e(on(r,!1))},onCloseAccountClick:()=>{e(ze(r,"closeAccount",""))},onBackClick:()=>{s("../",{relative:"path"})}}})(Tt);function de({isTransferDrawerOpen:e,isCheckDepositDrawerOpen:t,isAccountInfoDrawerOpen:s}){const o=W(),a=G(),r=_(),l=V(),{tenantEmailDomain:c,accountId:u}=H(),{useDynamicConfig:h}=$(),{useFeatureGate:x}=$(),{isFeatureEnabled:i}=x(B.isDebitCardFeatureEnabled),{isFeatureEnabled:p}=x(B.isCheckingCommentingEnabled),m=k(X=>N(X)),{configValue:g}=h(Z.expressPayConfig),v=g.is_enable_all_tenants===!0||g.tenant_ids!=null&&g.tenant_ids.includes(m.tenantId),y=!!m.companyBillPayInfo?.info?.isBillPayEnabled,w=A.getSignedInUser(),I=m.companyId??A.getSignedInUserTenant(c)?.companyId,f={userId:w?.userId??"",sessionId:w?.zeniSessionId??"",tenantId:m.tenantId??""},D=`${be}/account_details`,[T,M]=d.useState(!1),[F,E]=d.useState(!1),[P,O]=d.useState(!1),[S,b]=d.useState(!1),j=k(X=>an(X,u??"")),se=j.fetchState,{isAiCfoOpen:re,setIsAiCfoOpen:ge}=rn(),{isAiCfoAccessEnabled:ie,onAskAiCfoClick:ce}=ln({isAiCfoOpen:re,setIsAiCfoOpen:ge,mobileExploreReferrer:"Checking Account Detail"});dn({isDataReady:se==="Completed"}),d.useEffect(()=>{T||(r(on(u??"",!1)),M(!0))},[T,r,se]),d.useEffect(()=>{b(s!=null&&s===!0)},[s]),d.useEffect(()=>{e!=null&&e===!0?E(!0):(E(!1),document.body.style.overflow="auto")},[e]),d.useEffect(()=>{O(t!=null&&t===!0)},[t]);const Q=()=>{b(!1),a("..")};return n.jsxs(n.Fragment,{children:[S===!0&&j.accountDetail!=null?n.jsx(ta,{authParams:f,downloadAccountDetailEndPoint:D,closeDrawerHandler:Q,isAccountInfoDrawerOpen:S,zeniBankAccountDetail:j.accountDetail}):null,F===!0?n.jsx(pn,{closeDrawerHandler:Q,isTransferDrawerOpen:F,zeniAccountsConfig:j.zeniAccountsConfig,authParams:f,downloadAccountDetailEndPoint:D}):null,P===!0?n.jsx(un,{closeDrawerHandler:Q,isCheckDepositDrawerOpen:P}):null,n.jsx(pa,{windowSize:l,children:n.jsx(ma,{navigate:a,currentTenant:m,location:o,companyId:I,isDebitCardFeatureEnabled:i,accountId:u??"",isBillPayEnabled:y,isCheckingCommentingEnabled:p,isExpressPayEnabled:v,isAiCfoAccessEnabled:ie,onAskAiCfoClick:ce})})]})}const ha=(e,t)=>`/${e}/checking/${t}/account-info`,ga=(e,t)=>`/${e}/checking/${t}/transactions`,fa=(e,t)=>`/${e}/checking/${t}/statements`,ya=z.div`
58
- display: flex;
59
- height: 100vh;
60
- width: 100%;
61
- flex: 1 1 auto;
62
- flex-direction: column;
63
- overflow: auto;
64
- align-items: center;
65
- background-color: ${e=>e.theme.colors.grey4};
66
- `;function Ca(){const e=G(),t=_(),s=V(),{accountId:o}=H(),{useFeatureGate:a}=$(),{isFeatureEnabled:r}=a(B.isCheckingCommentingEnabled),[l,c]=d.useState(!1);d.useEffect(()=>{l||(c(!0),t(pt(o??"",!1)))},[l,t]);const u=k(h=>mt(h,o??""));if(A.getSignedInUser()==null)throw Error("Can't access address page without signing in...");return n.jsx(ya,{windowSize:s,children:n.jsx(Ot,{transactionListView:u,depositAccountId:o??"",isCheckingCommentingEnabled:r,onBackClick:()=>{e("../")}})})}const xa=J(function(e,t){const{companyId:s}=t;return{zeniAccountSetupView:ht(e,s),meetingUrl:"https://meetings.hubspot.com/niharn/demo-accounts?embed=true"}},function(e,t){const{navigate:s,companyId:o}=t;return{onSetupButtonClick:()=>{U.trackAccountsPromoPageClicked("Setup Accounts"),e(gt(o))},onBackClick:()=>{s("../..",{relative:"path"})},onSetupZeniAccountSuccess:()=>{s("../setup",{relative:"path"})}}})(Ft),ka=()=>{const e=G(),t=W(),{tenantEmailDomain:s}=H(),{useDynamicConfig:o}=$(),a=L(),[r,l]=d.useState(!1),[c,u]=d.useState(!1),h=k(f=>N(f)),{configValue:x}=o(Z.zeniAccountsConfig),i=De(x);d.useEffect(()=>{c===!1&&t.state?.message==="activation"&&u(!0)},[t.state]);const p=A.getSignedInUserTenant(s)?.companyId??h.companyId,m=A.getSignedInUser(),g=!!h.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted,v=f=>{l(f)};if(m==null)throw Error("Can't access Zeni account promo page without signing in...");const y=ae(),w=te(y?.loggedInUserRoleMap),I=Ie(y?.loggedInUserRoleMap);if(g&&w)return n.jsx(ne,{to:"../../checking/setup"});if(h.company?.companyZeniAccountInfo&&(!g&&w||I)){if(t.state?.message==="activation"){const f=sn(t.state?.pathnameStackToGoBack);e(t.pathname,{state:{...t.state,message:void 0,pathnameStackToGoBack:f.newStack}})}return n.jsxs(n.Fragment,{children:[n.jsx(Bt,{showConfetti:c}),n.jsx(me,{analytics:U,onLoad:f=>(D=>D.trackPageLoaded(Ee.Event.accountsPromoPageViewed))(f)}),n.jsx(he,{isAppContentDrawerOpen:r,handleDrawerToggle:v}),n.jsx(xa,{analytics:U,navigate:e,companyId:p,onClickMenuIcon:()=>{v(!0)},maxAnnualPercentageYield:i.maxAnnualPercentageYield,maxInsuredAmount:i.maxInsuredAmount,exampleBankBalance:3e6})]})}return n.jsx(oe,{fetchState:"In-Progress",style:{backgroundColor:a.colors.grey5}})};function Ya(){const e=W(),t=k(S=>N(S)),s=L(),{useFeatureGate:o,useDynamicConfig:a}=$(),r=ae(),l=te(r?.loggedInUserRoleMap),c=Ie(r?.loggedInUserRoleMap),u=!!t.company?.companyZeniAccountInfo.isZeniAccountEnabled,h=!!t.company?.companyZeniAccountInfo.isZeniAccountTOSAccepted,{isFeatureEnabled:x}=o(B.isChargeCardFeatureEnabled),{isFeatureEnabled:i}=o(B.isDebitCardFeatureEnabled),p=nn(t),m=Se(i,t),g=t?.userRole!=null&&ft(t?.userRole),v=(t?.company==null||t.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!g)&&yt(r?.loggedInUserRoleMap),y=Ct(r?.loggedInUserRoleMap),w=(t?.company==null||t.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!g)&&xt(r?.loggedInUserRoleMap),{isFeatureEnabled:I}=o(B.isDepositAccountsFeatureEnabled),f=I&&!g,{configValue:D}=a(Z.expressPayConfig),T=D.is_enable_all_tenants===!0||D.tenant_ids!=null&&D.tenant_ids.includes(t.tenantId),{isFeatureEnabled:M}=o(B.isAutoTransferRuleEnabled),F=Rt(t,x,i)&&!g&&kt(r?.loggedInUserRoleMap),E=wt(r?.loggedInUserRoleMap),P=f&&te(r?.loggedInUserRoleMap),O=P||Ze(r?.loggedInUserRoleMap);return n.jsxs($e,{children:[n.jsx(C,{path:"setup",element:n.jsx(Ne,{isBillPayAdminLevelAccess:v,isUserHasOnlyBillPayAccess:y,isReimbursementAdminLevelAccess:w,isZeniAccountAdminLevelAccess:P,isChargeCardAdminLevelAccess:F,isUserHasOnlyCardAccess:E,productType:"zeni_accounts",type:"setup"})}),n.jsx(C,{path:"verification",element:n.jsx(Ne,{isBillPayAdminLevelAccess:v,isUserHasOnlyBillPayAccess:y,isReimbursementAdminLevelAccess:w,isZeniAccountAdminLevelAccess:P,isChargeCardAdminLevelAccess:F,isUserHasOnlyCardAccess:E,productType:"zeni_accounts",type:"verification"})}),M?n.jsxs(n.Fragment,{children:[n.jsx(C,{path:"auto-transfer",element:n.jsx(Ve,{})}),O?n.jsx(C,{path:"auto-transfer/:ruleId/edit",element:n.jsx(Ve,{isEditDrawerOpen:!0})}):null]}):n.jsx(C,{path:"auto-transfer",element:n.jsx(ue,{})}),T&&l?n.jsxs(n.Fragment,{children:[n.jsx(C,{path:"express-pay",element:n.jsx(le,{})}),n.jsx(C,{path:"express-pay/add-ach",element:n.jsx(le,{isAddACHDrawerOpen:!0})}),n.jsx(C,{path:"express-pay/add-wire/add-address",element:n.jsx(le,{isAddAddressDrawerOpen:!0})}),n.jsx(C,{path:"express-pay/add-wire",element:n.jsx(le,{isAddWireDrawerOpen:!0})})]}):n.jsx(C,{path:"express-pay",element:n.jsx(ue,{})}),n.jsx(C,{path:"promo",element:n.jsx(ka,{})}),p&&!m?n.jsx(C,{path:"/*",element:n.jsx(cn,{})}):u?n.jsxs(n.Fragment,{children:[n.jsx(C,{path:"/",element:n.jsx(ke,{})}),n.jsx(C,{path:"transfer",element:n.jsx(ke,{isTransferDrawerOpen:!0})}),n.jsx(C,{path:"check-deposit",element:n.jsx(ke,{isCheckDepositDrawerOpen:!0})}),n.jsx(C,{path:":accountId/*",element:n.jsx(wa,{})}),n.jsx(C,{path:"*",element:n.jsx(ue,{})})]}):h&&l?n.jsx(C,{path:"*",element:n.jsx(ne,{to:"../setup"})}):t.company?.companyZeniAccountInfo&&c?n.jsx(C,{path:"*",element:n.jsx(ne,{to:"../promo",state:e.state})}):n.jsx(C,{path:"*",element:n.jsx(oe,{fetchState:"In-Progress",style:{backgroundColor:s.colors.grey5,boxShadow:`0px 2px ${Ut.sp1} ${s.colors.dropShadowNormal}`}})})]})}function wa(){return n.jsxs($e,{children:[n.jsx(C,{path:"/",element:n.jsx(de,{})}),n.jsx(C,{path:"account-info",element:n.jsx(de,{isAccountInfoDrawerOpen:!0})}),n.jsx(C,{path:"transfer",element:n.jsx(de,{isTransferDrawerOpen:!0})}),n.jsx(C,{path:"check-deposit",element:n.jsx(de,{isCheckDepositDrawerOpen:!0})}),n.jsx(C,{path:"transactions",element:n.jsx(Ca,{})}),n.jsx(C,{path:"statements",element:n.jsx(Nt,{})}),n.jsx(C,{path:"*",element:n.jsx(ue,{})})]})}export{Ya as default};
@@ -1,9 +0,0 @@
1
- import{j as i}from"./liveblocks-CobNzJQ8.js";import{a as u}from"./sentry-4KELney1.js";import{j as x,h as B,u as N,l as $,g as p}from"./core-C33SxPr0.js";import{HE as s,HD as j,NK as v,eN as C,NL as D}from"./zeni-epic-state-Bc0tGzp_.js";import{Z as E,ao as g,h as L,z as T,B as z,bZ as P,q as U}from"./index-lRVIqDxX.js";import{n as _}from"./mui-BZJL7p2F.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]="34e68a83-680e-410e-8c73-f4af2a46ba1e",e._sentryDebugIdIdentifier="sentry-dbid-34e68a83-680e-410e-8c73-f4af2a46ba1e")}catch{}})();const Z=_.div`
2
- display: flex;
3
- height: 100vh;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- `;function V(){const e=x(),n=B(),d=E(),l=N();let{accountId:a}=$(),f=`${g.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${a}`;a==null&&l.pathname.includes(`${s}/statements`)&&(a=s,f=`${g.bankingMicroServiceBaseUrl}/1.0/${s}`);const[m,h]=u.useState(!1),y=L();u.useEffect(()=>{m||(h(!0),n(j(a??"",!1)))},[m,n]);const o=p(t=>v(t,a??"")),b=()=>{const t=U(l.state?.pathnameStackToGoBack),S=t.poppedPathname??"..";e(S,{state:{pathnameStackToGoBack:t.newStack}})},r=T.getSignedInUser(),c=p(t=>C(t)),I={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:c.tenantId??""},w=D(a??"")===!0?s:o.zeniAccountDetail?.accountLast4??"",k=c.company?.companyInfo.companyLegalName??c.companyName;if(r==null)throw Error("Can't access address page without signing in...");return o.fetchState!=="Completed"?i.jsx(z,{fetchState:"In-Progress",style:{backgroundColor:y.colors.grey5}}):i.jsx(Z,{windowSize:d,children:i.jsx(P,{currentTenantCompanyName:k,statementListView:o,accountLast4:w,onBackClick:b,authParams:I,downloadEndPoint:f})})}export{V as Z};
@@ -1 +0,0 @@
1
- import{_ as n}from"./index-lRVIqDxX.js";import"./mui-BZJL7p2F.js";import"./sentry-4KELney1.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="1cc931fe-7c26-409c-bd5a-73471b9fde7a",e._sentryDebugIdIdentifier="sentry-dbid-1cc931fe-7c26-409c-bd5a-73471b9fde7a")}catch{}})();function r(e){if(e.companyLocaleInfo!=null&&e.companyLocaleInfo.languageCode.length>0&&e.companyLocaleInfo.companyIncCountryCode.length>0){const o=`${e.companyLocaleInfo.languageCode.toLowerCase()}-${e.companyLocaleInfo.companyIncCountryCode.toUpperCase()}`;return console.warn(`localeID ${o}`),n(o)??"en"}return"en"}export{r as t};
@@ -1 +0,0 @@
1
- import{a as c}from"./sentry-4KELney1.js";import{Z as d,c as b,s as m,Q as u}from"./index-lRVIqDxX.js";import"./mui-BZJL7p2F.js";import{b as y}from"./useFetchSuggestedQuestionsWhenReady-Ds-n57vC.js";import{j as k,u as g,l as h}from"./core-C33SxPr0.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]="e445e90e-66f3-4351-8f51-2e0a04eb2fbf",e._sentryDebugIdIdentifier="sentry-dbid-e445e90e-66f3-4351-8f51-2e0a04eb2fbf")}catch{}})();function E(e){const{isAiCfoOpen:a,setIsAiCfoOpen:t,mobileExploreReferrer:n}=e,f=k(),o=g(),{tenantEmailDomain:s}=h(),i=d(),r=u(i),l=b();return{isAiCfoAccessEnabled:y()&&l&&!a,onAskAiCfoClick:c.useCallback(()=>{if(s!=null)if(r){const p=m(o.state?.pathnameStackToGoBack,o.pathname);f(`/${s}/ai-cfo/explore`,{state:{pathnameStackToGoBack:p,referrer:n}})}else t(!0)},[r,o.pathname,o.state,n,f,t,s])}}export{E as u};
@@ -1 +0,0 @@
1
- import{a as u}from"./sentry-4KELney1.js";import{h as i,s as d}from"./core-C33SxPr0.js";import{a as y,d as h,c as g,$ as m,K as C}from"./index-lRVIqDxX.js";import"./mui-BZJL7p2F.js";import{eK as l,hF as b}from"./zeni-epic-state-Bc0tGzp_.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]="2fe59511-2f3b-4bf2-b8d2-9f623be0f739",e._sentryDebugIdIdentifier="sentry-dbid-2fe59511-2f3b-4bf2-b8d2-9f623be0f739")}catch{}})();function x(){const{useFeatureGate:e}=y(),{isFeatureEnabled:t}=e(h.isAiCfoNavButtonEnabled),n=g();return t&&n}function p(e,t){return e!=="Completed"&&e!=="In-Progress"&&!(e==="Error"&&!t)}function I(e){const{areTenantIdsInSync:t}=C(),n=g(),s=x();return t&&e&&s&&n}function _(e){const{pageContexts:t,canFetchSuggestedQuestions:n}=e,s=i(),a=d(),o=u.useRef(null);u.useEffect(()=>{const f=o.current===!1&&n===!0;if(o.current=n,n&&t!=null&&t.length!==0)for(const r of t){const c=l(a.getState(),r)?.fetchState;p(c,f)&&s(b({pageContext:r}))}},[n,s,t,a])}function S(e){(function(t){const{pageContext:n,canFetchSuggestedQuestions:s}=t,a=i(),o=d(),f=u.useRef(null);u.useEffect(()=>{const r=f.current===!1&&s===!0;if(f.current=s,n==null||!s)return;const c=l(o.getState(),n)?.fetchState;p(c,r)&&a(b({pageContext:n}))},[s,a,n,o])})({canFetchSuggestedQuestions:I(e.isDataReady),pageContext:e.pageContext})}function Q(e){S({pageContext:m(),isDataReady:e.isDataReady})}export{_ as a,x as b,Q as c,I as u};