@zeniai/web-app-ui 5.0.61-qa → 5.0.62-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 (115) hide show
  1. package/dist/assets/AddressRoutes-CWbtPs0T.js +1 -0
  2. package/dist/assets/AddressScreen-BeHKG8v1.js +9 -0
  3. package/dist/assets/{AiCfoScreen-BP9Ft687.js → AiCfoScreen-BJfPMTeD.js} +1 -1
  4. package/dist/assets/{BillPayApprovalRoutes-tYr_9OWR.js → BillPayApprovalRoutes-72raP4Au.js} +1 -1
  5. package/dist/assets/{BillPayRoutes-DmhKosIo.js → BillPayRoutes-CEWbGQhV.js} +1 -1
  6. package/dist/assets/{BusinessVerificationPageScreen-DHwpyl1f.js → BusinessVerificationPageScreen-BUCm7Odf.js} +2 -2
  7. package/dist/assets/{ChargeCardRoutes-DdDzkKLF.js → ChargeCardRoutes-CGWte3py.js} +8 -8
  8. package/dist/assets/{CompanyPassportScreen-BK2OTKJu.js → CompanyPassportScreen-BmSdom0e.js} +1 -1
  9. package/dist/assets/{ConnectionAuthScreen-k86NOnxb.js → ConnectionAuthScreen-DF0fkXNR.js} +1 -1
  10. package/dist/assets/CustomerOnboardingAuthScreen--LKCq1mD.js +1 -0
  11. package/dist/assets/{CustomerOnboardingRoutes-ibn4fZkx.js → CustomerOnboardingRoutes-COxgmIX3.js} +1 -1
  12. package/dist/assets/{DashboardRoutes-DsyeD2-B.js → DashboardRoutes-B9AUZ_Md.js} +1 -1
  13. package/dist/assets/{DefaultTenantHome-Dn3Q39m4.js → DefaultTenantHome-Bce_0IOJ.js} +1 -1
  14. package/dist/assets/{DomesticWireDetailScreen-D6Fv4KmF.js → DomesticWireDetailScreen-BVFVWlSA.js} +3 -3
  15. package/dist/assets/DrawerScreen-BWViotCB.js +1 -0
  16. package/dist/assets/{EntityDetailRoutes-B6fpxmHW.js → EntityDetailRoutes-CKRWkL2F.js} +1 -1
  17. package/dist/assets/{ExpenseAutomationRoutes-hPdcTllf.js → ExpenseAutomationRoutes-DDrxLrQX.js} +1 -1
  18. package/dist/assets/FeaturePreviewScreen-Bu3Nmz6L.js +1 -0
  19. package/dist/assets/MagicLinkRoutes-Cdzcjinn.js +72 -0
  20. package/dist/assets/MagicLinkSignInScreen-XzPOaXDf.js +12 -0
  21. package/dist/assets/{MobileAppDrawer-BsEeVHGJ.js → MobileAppDrawer-BuQb2buy.js} +1 -1
  22. package/dist/assets/NotFoundScreen-DXPtR234.js +1 -0
  23. package/dist/assets/{NotificationRoutes-CCNPEsKp.js → NotificationRoutes-DQOd5pN1.js} +1 -1
  24. package/dist/assets/{PandLWithForecastRoutes-wJ4pN9t1.js → PandLWithForecastRoutes-Ch0vhwLL.js} +1 -1
  25. package/dist/assets/{PeopleRoutes-uXI358fF.js → PeopleRoutes-DxzAopRH.js} +9 -9
  26. package/dist/assets/{PerformanceRoutes-DOyVY_Ow.js → PerformanceRoutes-BOLxnqNA.js} +1 -1
  27. package/dist/assets/{Preview-CIDoApcd.js → Preview-C1kzMAT1.js} +1 -1
  28. package/dist/assets/{QBOConnectionScreen-BH7qNWPW.js → QBOConnectionScreen-DowWnT4I.js} +1 -1
  29. package/dist/assets/ReferralListScreen-Dj04SxiV.js +5 -0
  30. package/dist/assets/ReimbursementApprovalRoutes-Dce13zkV.js +1 -0
  31. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-CEnbrTbv.js → ReimbursementApprovalRuleDetailScreen-CErT0hoJ.js} +1 -1
  32. package/dist/assets/{ReimbursementRoutes-BT2-7Gsa.js → ReimbursementRoutes-DbOJcy-l.js} +1 -1
  33. package/dist/assets/ReportsRoutes-m8OaVZVD.js +1 -0
  34. package/dist/assets/RewardsRoutes-Bhpz6tDz.js +1 -0
  35. package/dist/assets/ScreenRoutes-D3nR_ZAq.js +2 -0
  36. package/dist/assets/{SettingsRoutes-CLa1lnt-.js → SettingsRoutes-DXnpxjv_.js} +1 -1
  37. package/dist/assets/{SetupPagesScreen-CwdMwDRP.js → SetupPagesScreen-RaBTeZ3X.js} +5 -5
  38. package/dist/assets/{SignInScreen-DnvXxvnM.js → SignInScreen-BdxXXdlE.js} +1 -1
  39. package/dist/assets/SignOutScreen-Bpj0-554.js +9 -0
  40. package/dist/assets/TaskListScreen-DucJZ5Tc.js +9 -0
  41. package/dist/assets/TaskRoutes-BauTuLET.js +9 -0
  42. package/dist/assets/TransactionDetailRoutes-DkbxIzsT.js +1 -0
  43. package/dist/assets/{TransactionDetailScreen-DKG_MhFF.js → TransactionDetailScreen-DB2dMdqL.js} +2 -2
  44. package/dist/assets/{TransactionListRoutes-BSDQcv3U.js → TransactionListRoutes-SZ1iphEM.js} +1 -1
  45. package/dist/assets/{TreasuryRoutes-AWertsO5.js → TreasuryRoutes-CGEviXlY.js} +6 -6
  46. package/dist/assets/{VendorsRoutes-DW9oOFbY.js → VendorsRoutes-CIeivuDV.js} +1 -1
  47. package/dist/assets/WiseConfirmationScreen-C2YdpQUX.js +12 -0
  48. package/dist/assets/{ZeniAccountRoutes-Bu65VebN.js → ZeniAccountRoutes-WZ6oPa1B.js} +1 -1
  49. package/dist/assets/ZeniAccountStatementScreen-BcTdJcif.js +9 -0
  50. package/dist/assets/{accountMappingHelper-C_yfNaYk.js → accountMappingHelper-Bqj2mJfi.js} +1 -1
  51. package/dist/assets/{analytics-BMapadfi.js → analytics-B_uP5uGX.js} +1 -1
  52. package/dist/assets/{analyticsHelper-hJglLz67.js → analyticsHelper-CsFRydiU.js} +1 -1
  53. package/dist/assets/{core-Bycbr_zS.js → core-Cgen4kAj.js} +1 -1
  54. package/dist/assets/{decodeURIComponentSafe-D8oY1hc9.js → decodeURIComponentSafe-DztnZ-A4.js} +1 -1
  55. package/dist/assets/{dnd-Jwp37Hwc.js → dnd-DhFfs1wM.js} +1 -1
  56. package/dist/assets/{empty-BVzRSYkS.js → empty-CfLsUtpF.js} +1 -1
  57. package/dist/assets/{empty-DvEtWNNn.js → empty-Dt-07Rye.js} +1 -1
  58. package/dist/assets/{emptyVideoElement-wwbaO4KU.js → emptyVideoElement-v9g3UWiq.js} +1 -1
  59. package/dist/assets/{epic-C4FCGNFQ.js → epic-lM2FfDOS.js} +1 -1
  60. package/dist/assets/{getLocaleForTenant-hR2ZjLdG.js → getLocaleForTenant-Di1C7dV7.js} +1 -1
  61. package/dist/assets/{index-Co9dF_xb.js → index-BkCX5jRI.js} +1 -1
  62. package/dist/assets/{index-DB8zvt4r.js → index-C_giOD7z.js} +1 -1
  63. package/dist/assets/{index-C5fsf-f7.js → index-CiK_CtQ4.js} +1 -1
  64. package/dist/assets/{index-DmSlLFfZ.js → index-Dprn4SY3.js} +1 -1
  65. package/dist/assets/{index-Bo8i__Uw.js → index-Dwqwe5m-.js} +1 -1
  66. package/dist/assets/{index-D75hXUaQ.js → index-nofE1fwv.js} +2 -2
  67. package/dist/assets/{index-CkPLyKrL.js → index-trlF__w8.js} +12793 -12793
  68. package/dist/assets/{lexical-BFKF8Nqm.js → lexical-DJV7tysr.js} +1 -1
  69. package/dist/assets/{liveblocks-yYJhhlwl.js → liveblocks-CF908iAG.js} +1 -1
  70. package/dist/assets/{lottie-CQftbn5o.js → lottie-Ega9gP0x.js} +1 -1
  71. package/dist/assets/{mui-uwIb-0_u.js → mui-C7dUqSqV.js} +1 -1
  72. package/dist/assets/{pathToGoBack-6NBe70Qs.js → pathToGoBack-C7m35zDG.js} +1 -1
  73. package/dist/assets/{pdf-Clano961.js → pdf-CSmOdS_B.js} +3 -3
  74. package/dist/assets/{pdf-lib-qkfMQ_yu.js → pdf-lib-D5gPNITG.js} +1 -1
  75. package/dist/assets/{plaid-BtVuBiv6.js → plaid-CChs9PMx.js} +1 -1
  76. package/dist/assets/{pusher-CR1v05zD.js → pusher-C5oHaaZM.js} +1 -1
  77. package/dist/assets/{react-BwcG0A5u.js → react-CU9NYGdL.js} +1 -1
  78. package/dist/assets/{react-BjTfXtJu.js → react-CVXgK0Ih.js} +1 -1
  79. package/dist/assets/{react-BSMOFxva.js → react-ClL_vZpV.js} +1 -1
  80. package/dist/assets/{react-B-NPms-H.js → react-CrvQ92fR.js} +1 -1
  81. package/dist/assets/{react-DrnPjRY_.js → react-CsMGsa1f.js} +1 -1
  82. package/dist/assets/{react-D5gy2Tue.js → react-DrZcp68n.js} +1 -1
  83. package/dist/assets/{recharts-DgZ04ot6.js → recharts-Dyhe2tpB.js} +1 -1
  84. package/dist/assets/{routePaths-CMggNZ1T.js → routePaths-CqnfURaJ.js} +1 -1
  85. package/dist/assets/{sentry-CbgVFeom.js → sentry-cfxuOFew.js} +1 -1
  86. package/dist/assets/{url-CACUy1v-.js → url-B1qVva4A.js} +1 -1
  87. package/dist/assets/{url-Bvrri-wo.js → url-DOBNPG6D.js} +1 -1
  88. package/dist/assets/{useAskAiCfoHostNavButtonProps-C7xPewG5.js → useAskAiCfoHostNavButtonProps-C2mAQ-5p.js} +1 -1
  89. package/dist/assets/{useDeviceId-DGCuWe9z.js → useDeviceId-43L8M3To.js} +1 -1
  90. package/dist/assets/{useFetchSuggestedQuestionsWhenReady-DmtdISaY.js → useFetchSuggestedQuestionsWhenReady-B5mF_k6O.js} +1 -1
  91. package/dist/assets/{useInitialThreadRequest-DBrdowkN.js → useInitialThreadRequest-CME_1dn5.js} +1 -1
  92. package/dist/assets/{utils-CUNvYJ5h.js → utils-DumEze_M.js} +1 -1
  93. package/dist/assets/{withTransactionSidePanel-VWqgYGxS.js → withTransactionSidePanel-Dq1wepy8.js} +1 -1
  94. package/dist/assets/{zeni-epic-state-CIfm8mou.js → zeni-epic-state-DrGehtra.js} +3 -3
  95. package/dist/index.html +1 -1
  96. package/package.json +2 -2
  97. package/dist/assets/AddressRoutes-CVfu5Dox.js +0 -1
  98. package/dist/assets/AddressScreen-7k7vjaFG.js +0 -9
  99. package/dist/assets/CustomerOnboardingAuthScreen-DbwBw2uW.js +0 -1
  100. package/dist/assets/DrawerScreen-Dzpv8ixO.js +0 -1
  101. package/dist/assets/FeaturePreviewScreen-CZ4kSWCz.js +0 -1
  102. package/dist/assets/MagicLinkRoutes-Bg0SJwWd.js +0 -72
  103. package/dist/assets/MagicLinkSignInScreen-3waOEQgZ.js +0 -12
  104. package/dist/assets/NotFoundScreen-BnQ9IpWO.js +0 -1
  105. package/dist/assets/ReferralListScreen-CTukyk1g.js +0 -5
  106. package/dist/assets/ReimbursementApprovalRoutes-DcSHObaL.js +0 -1
  107. package/dist/assets/ReportsRoutes-JuhC6wWc.js +0 -1
  108. package/dist/assets/RewardsRoutes-DSOl9Z0M.js +0 -1
  109. package/dist/assets/ScreenRoutes-Ck32XMYo.js +0 -2
  110. package/dist/assets/SignOutScreen-CL2ZVx-I.js +0 -9
  111. package/dist/assets/TaskListScreen-DCK_sYz_.js +0 -9
  112. package/dist/assets/TaskRoutes-BPawNp5H.js +0 -9
  113. package/dist/assets/TransactionDetailRoutes-DNNxQ-Pu.js +0 -1
  114. package/dist/assets/WiseConfirmationScreen-CfuT7R3M.js +0 -12
  115. package/dist/assets/ZeniAccountStatementScreen-D1W40t46.js +0 -9
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-CkPLyKrL.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-CbgVFeom.js"><link rel="modulepreload" crossorigin href="/assets/core-Bycbr_zS.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-CIfm8mou.js"><link rel="modulepreload" crossorigin href="/assets/mui-uwIb-0_u.js"><link rel="modulepreload" crossorigin href="/assets/analytics-BMapadfi.js"><link rel="modulepreload" crossorigin href="/assets/utils-CUNvYJ5h.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-trlF__w8.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-cfxuOFew.js"><link rel="modulepreload" crossorigin href="/assets/core-Cgen4kAj.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-DrGehtra.js"><link rel="modulepreload" crossorigin href="/assets/mui-C7dUqSqV.js"><link rel="modulepreload" crossorigin href="/assets/analytics-B_uP5uGX.js"><link rel="modulepreload" crossorigin href="/assets/utils-DumEze_M.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.61-qa",
3
+ "version": "5.0.62-dev",
4
4
  "files": [
5
5
  "dist/**/*"
6
6
  ],
@@ -29,7 +29,7 @@
29
29
  "@stripe/stripe-js": "^4.4.0",
30
30
  "@zeniai/client-analytics": "2.0.8",
31
31
  "@zeniai/client-epic-state": "5.0.32",
32
- "@zeniai/web-components": "4.0.70",
32
+ "@zeniai/web-components": "4.0.71",
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-yYJhhlwl.js";import{A as d}from"./AddressScreen-7k7vjaFG.js";import i from"./NotFoundScreen-BnQ9IpWO.js";import"./sentry-CbgVFeom.js";import{n as s,o as r}from"./core-Bycbr_zS.js";import"./zeni-epic-state-CIfm8mou.js";import"./recharts-DgZ04ot6.js";import"./index-CkPLyKrL.js";import"./mui-uwIb-0_u.js";import"./analytics-BMapadfi.js";import"./plaid-BtVuBiv6.js";import"./dnd-Jwp37Hwc.js";import"./stripe-DMRn4zHo.js";import"./lottie-CQftbn5o.js";import"./lexical-BFKF8Nqm.js";import"./pdf-Clano961.js";import"./utils-CUNvYJ5h.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new t.Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="4bd15e18-5b5f-4be1-8d33-8bd696c76da2",t._sentryDebugIdIdentifier="sentry-dbid-4bd15e18-5b5f-4be1-8d33-8bd696c76da2")}catch{}})();function _(){return e.jsxs(s,{children:[e.jsx(r,{path:"/edit/:addressType/:addressId",element:e.jsx(d,{})}),e.jsx(r,{path:"/new/:addressType",element:e.jsx(d,{})}),e.jsx(r,{path:"*",element:e.jsx(i,{})})]})}export{_ as default};
@@ -1,9 +0,0 @@
1
- import{j as r}from"./liveblocks-yYJhhlwl.js";import{a as h}from"./sentry-CbgVFeom.js";import{j as T,h as _,u as j,l as E,g as M,k as $}from"./core-Bycbr_zS.js";import{q as B,h as D,z as L,j as K,w as N,y as R,d as C,f as m,n as z,k as b,r as F}from"./index-CkPLyKrL.js";import{I$ as k,gM as U,eN as q,J0 as G,c0 as J,J1 as O,k6 as V}from"./zeni-epic-state-CIfm8mou.js";import{n as H}from"./mui-uwIb-0_u.js";import Q from"./NotFoundScreen-BnQ9IpWO.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]="8e18865c-2eae-4767-8154-13a4fdd2c6b8",e._sentryDebugIdIdentifier="sentry-dbid-8e18865c-2eae-4767-8154-13a4fdd2c6b8")}catch{}})();const W=H.div`
2
- display: flex;
3
- height: 100vh;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- `,X=$(function(e,t){const{addressId:o,isSubPage:i,addressType:c}=t,l=q(e),a=t.roleMap!=null&&G(t.roleMap),d=i||c==="user_address"||J(l?.userRole??[])||a?void 0:"readonly";if(o==null){const s=O(c,e);return{addressToEdit:s?.addressToCreate,loadingState:s?.status?.fetchState,googleAPIKey:b.googleMapsAPIKey,isDisabled:d,isSubPage:i,dontShowSaveConfirmationPopup:t.dontShowSaveConfirmation}}const n=k(e,o);return{addressToEdit:n.address,loadingState:n.fetchState,googleAPIKey:b.googleMapsAPIKey,isDisabled:d}},function(e,t){const{navigate:o,location:i,addressType:c}=t,l=a=>{if(a==="express-pay")o("../express-pay/add-wire");else{const d=i.state,n=F(d?.pathnameStackToGoBack);let s=n.poppedPathname??w();const u=d?.queryParams;if(u){const g=new URLSearchParams(u).toString();g&&(s=`${s}?${g}`)}o(s,{state:{pathnameStackToGoBack:n.newStack}})}};return{onSubmitHandler:a=>{const d=Y(a);e(V({addressType:c,addressToCreate:d})),C?.trackSaveAddressClicked(m.Event.saveAddressClicked,{street:a.street.addressString,city:a.city,state:a.state,country:a.country.selectedOption??"",postalCode:a.postalCode,suite:a.suite,secondaryInfo:a.secondaryInfo}),l(t.bankAccountContext)},onCancel:()=>{l(t.bankAccountContext)}}})(z);function re({isSubPage:e,hideAddressSubTitle:t=!1,hideAddressBackButton:o=!1,dontShowSaveConfirmation:i,accountContext:c,addressTypeParam:l}){const a=T(),d=_(),n=j(),{addressId:s,addressType:u}=E(),g=B(),I=D(),v=L.getSignedInUser(),[f,x]=h.useState(s==null),p=M(S=>s!=null?k(S,s).fetchState:"Not-Started"),A=K();if(v==null)throw Error("Can't access address page without signing in...");const P=S=>S.trackPageLoaded(s!=null?m.Event.editAddress:m.Event.addAddress),y=l??u;return h.useEffect(()=>{f||s==null||(x(!0),d(U(s,!1)))},[f,s,d]),y==null||y.match(/(user_address|company_address|company_registered_address|vendor_address|officer_([1-9]|10)_address)$/g)?!f&&p==="Not-Started"||f&&p==="In-Progress"?r.jsx(N,{fetchState:p,style:{backgroundColor:I.colors.grey5}}):s!=null&&p==="Error"?(a(`${w(1)}/new`,{replace:!0}),r.jsx(r.Fragment,{})):r.jsxs(r.Fragment,{children:[r.jsx(R,{analytics:C,onLoad:P}),r.jsx(W,{windowSize:g,children:r.jsx(X,{location:n,navigate:a,isSubPage:e===!0,hideAddressBackButton:o,hideAddressSubTitle:t,addressId:s,addressType:y,dontShowSaveConfirmation:i,bankAccountContext:c,roleMap:A?.loggedInUserRoleMap})})]}):r.jsx(Q,{})}const w=(e=2)=>{let t="../";for(let o=0;o<e;o++)t=`${t}../`;return t},Y=e=>({street:[e.street.addressString,e.suite,e.secondaryInfo],city:e.city,state:e.state,country:e.country.selectedOption??"",countryCode:e.countryCode,postalCode:e.postalCode,latitude:e.street.addressValue?.locationLat,longitude:e.street.addressValue?.locationLng});export{re as A,Y as t};
@@ -1 +0,0 @@
1
- import{j as d}from"./liveblocks-yYJhhlwl.js";import{z as n}from"./index-CkPLyKrL.js";import{g as p}from"./QBOConnectionScreen-BH7qNWPW.js";import"./sentry-CbgVFeom.js";import{u as a,N as i}from"./core-Bycbr_zS.js";import"./zeni-epic-state-CIfm8mou.js";import"./recharts-DgZ04ot6.js";import"./mui-uwIb-0_u.js";import"./analytics-BMapadfi.js";import"./plaid-BtVuBiv6.js";import"./dnd-Jwp37Hwc.js";import"./stripe-DMRn4zHo.js";import"./lottie-CQftbn5o.js";import"./lexical-BFKF8Nqm.js";import"./pdf-Clano961.js";import"./utils-CUNvYJ5h.js";import"./empty-BVzRSYkS.js";import"./pdf-lib-qkfMQ_yu.js";import"./index-DmSlLFfZ.js";import"./url-CACUy1v-.js";import"./index-DB8zvt4r.js";import"./decodeURIComponentSafe-D8oY1hc9.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new t.Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="b68d0d57-e81d-4cfb-97e6-d4dd5e5b7ebd",t._sentryDebugIdIdentifier="sentry-dbid-b68d0d57-e81d-4cfb-97e6-d4dd5e5b7ebd")}catch{}})();const U=()=>{const t=a(),{code:o,realmId:r,state:e}=p(t.search),s=n.getSignedInUser()?.userId??"";if(f(o,r,e,s)===!0){const m=`../../${e}/onboarding?code=${o}&realmId=${r}&state=auth_flow`;return d.jsx(i,{to:m})}return d.jsx(i,{to:"../../"})},f=(t,o,r,e)=>t!=""&&o!=""&&r!=""&&e!=null&&e!="";export{U as default,f as hasValidParams};
@@ -1 +0,0 @@
1
- import{j as i}from"./liveblocks-yYJhhlwl.js";import{q as c,C as l,h as f}from"./index-CkPLyKrL.js";import{D as p}from"./mui-uwIb-0_u.js";import"./sentry-CbgVFeom.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]="4c16b3f2-8281-4a9e-9fd4-8a0c1cec6b29",e._sentryDebugIdIdentifier="sentry-dbid-4c16b3f2-8281-4a9e-9fd4-8a0c1cec6b29")}catch{}})();const b={drawerLeftMargin:new l(0,0,240)};function h(e){const{isOpen:r,drawerLeftMargin:o,children:t,onClose:a}=e,n=c(),s=o?.valuePx(n)??b.drawerLeftMargin.valuePx(n),d=f();return i.jsx(p,{anchor:"right",open:r,PaperProps:{style:{width:`calc(100% - ${s})`}},slotProps:{backdrop:{style:{backgroundColor:d.colors.black,opacity:.8,cursor:"pointer"}}},onClose:a,children:t})}export{h as D};
@@ -1 +0,0 @@
1
- import{j as s}from"./liveblocks-yYJhhlwl.js";import{a as r}from"./sentry-CbgVFeom.js";import{W as l,Y as p,Z as m,r as b}from"./index-CkPLyKrL.js";import"./mui-uwIb-0_u.js";import f from"./NotFoundScreen-BnQ9IpWO.js";import{j as u,u as c}from"./core-Bycbr_zS.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]="9dabe056-1e0d-4d53-9d0b-7a75e00eeb1e",e._sentryDebugIdIdentifier="sentry-dbid-9dabe056-1e0d-4d53-9d0b-7a75e00eeb1e")}catch{}})();const D=()=>{const e=u(),a=c(),t=r.useCallback(()=>{window.open("https://www.zeni.ai/demo/request","_blank")},[]),d=r.useCallback(()=>{(()=>{const n=b(a.state?.pathnameStackToGoBack),i=n.poppedPathname??k();e(i,{state:{pathnameStackToGoBack:n.newStack}})})()},[]),o=l(a.pathname);return o!=null?s.jsx(p,{menuItem:m(o),onDemoClick:t,onGoBack:d}):s.jsx(f,{})},k=(e=2)=>{let a="../";for(let t=0;t<e;t++)a=`${a}../`;return a};export{D as F};
@@ -1,72 +0,0 @@
1
- import{j as t}from"./liveblocks-yYJhhlwl.js";import{l as b,k as x,j,u as y,h as Z,q as ee,g as D,N as te,n as ae,o as p}from"./core-Bycbr_zS.js";import{Ix as S,Iy as k,Iz as N,yT as $,yF as L,IA as C,IB as ne,IC as oe,yJ as ie,eO as v,yQ as se,yN as le}from"./zeni-epic-state-CIfm8mou.js";import{q as g,o as r,B as re,d as I,k as E,n as de,r as ce,E as me,s as F,a as pe,p as ue,v as he,$ as xe,h as ge,w as fe,y as we,I as be,S as ye,A as Se,C as ke,R as Ie}from"./index-CkPLyKrL.js";import{n as c}from"./mui-uwIb-0_u.js";import f from"./NotFoundScreen-BnQ9IpWO.js";import{a as P}from"./sentry-CbgVFeom.js";import"./recharts-DgZ04ot6.js";import"./analytics-BMapadfi.js";import"./plaid-BtVuBiv6.js";import"./dnd-Jwp37Hwc.js";import"./stripe-DMRn4zHo.js";import"./lottie-CQftbn5o.js";import"./lexical-BFKF8Nqm.js";import"./pdf-Clano961.js";import"./utils-CUNvYJ5h.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]="734f4e4c-57ed-43eb-bd90-e24e03395a1c",e._sentryDebugIdIdentifier="sentry-dbid-734f4e4c-57ed-43eb-bd90-e24e03395a1c")}catch{}})();const ve=c.div`
2
- display: flex;
3
- 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
- box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
10
- `,je=x(function(e){const a=S(e),n=k(e),{companyName:o}=a;return{companyName:o,isDisabled:a.fetchState!=="Completed"?"disabled":void 0,magicLinkBankAccountDetails:n,magicLinkViewState:a}},function(e,a){const{vendorId:n,billId:o}=a;return{onFetchBankName:i=>{e(L(i))},onSaveHandler:i=>{I.trackBillPayMagicLinkSubmitBankAccountDetails(o),e($(i,"standard",n,o))},onACHDetailsUpdated:i=>{const{bankAccountSection:l}=i;e(N({data:l}))}}})(re);function z(){const e=g(),{vendorId:a,billId:n}=b();return a==null||n==null?t.jsx(f,{}):t.jsx(t.Fragment,{children:t.jsx(ve,{windowSize:e,children:t.jsx(je,{vendorId:a,billId:n})})})}const $e=c.div`
11
- display: flex;
12
- height: 100vh;
13
- width: 100%;
14
- flex: 1 1 auto;
15
- flex-direction: column;
16
- align-items: center;
17
- background-color: ${e=>e.theme.colors.grey4};
18
- box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
19
- `,Ce=x(function(e,a){const{isSubPage:n}=a;return{addressToEdit:C(e),googleAPIKey:E.googleMapsAPIKey,isSubPage:n}},function(e,a){const{navigate:n,location:o}=a,i=()=>{const l=ce(o.state?.pathnameStackToGoBack),s=l.poppedPathname??Ae();n(s,{state:{pathnameStackToGoBack:l.newStack}})};return{onSubmitHandler:l=>{const s=De(l);e(ne({addressToCreate:s})),i()},onCancel:()=>{i()}}})(de);function Be({isSubPage:e}){const a=j(),n=y(),o=g();return t.jsx(t.Fragment,{children:t.jsx($e,{windowSize:o,children:t.jsx(Ce,{location:n,navigate:a,isSubPage:e===!0,googleAPIKey:E.googleMapsAPIKey})})})}const Ae=(e=2)=>{let a="../";for(let n=0;n<e;n++)a=`${a}../`;return a},De=e=>({street:[e.street.addressString,e.suite,e.secondaryInfo],city:e.city,state:e.state,country:e.country.selectedOption??"",countryCode:e.countryCode,postalCode:e.postalCode,latitude:e.street.addressValue?.locationLat,longitude:e.street.addressValue?.locationLng}),Pe=c.div`
20
- display: flex;
21
- height: 100%;
22
- width: 100%;
23
- flex: 1 1 auto;
24
- flex-direction: column;
25
- align-items: center;
26
- background-color: ${e=>e.theme.colors.grey4};
27
- box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
28
- `,ze=x(function(e){const a=S(e),n=k(e),o=C(e),{companyName:i}=a;return{companyName:i,isDisabled:a.fetchState!=="Completed"?"disabled":void 0,magicLinkBankAccountDetails:n,mailingAddressDetails:o,magicLinkViewState:a}},function(e,a){const{navigate:n,location:o,vendorId:i,billId:l}=a;return{onFetchBankName:s=>{e(L(s))},onSaveHandler:s=>{I.trackBillPayMagicLinkSubmitBankAccountDetails(l),e($(s,"us-domestic",i,l))},onWireDetailsUpdated:s=>{const{bankAccountSection:d}=s;e(N({data:d}))},onAddressClick:()=>{const s=o.pathname.replace("us-domestic","address"),d=F(o.state?.pathnameStackToGoBack,o.pathname);n(s,{state:{pathnameStackToGoBack:d}})}}})(me);function Ne(){const e=j(),a=y(),n=g(),{vendorId:o,billId:i}=b();return o==null||i==null?t.jsx(f,{}):t.jsx(t.Fragment,{children:t.jsx(Pe,{windowSize:n,children:t.jsx(ze,{location:a,navigate:e,vendorId:o,billId:i})})})}const Le=c.div`
29
- display: flex;
30
- height: 100%;
31
- width: 100%;
32
- flex: 1 1 auto;
33
- flex-direction: column;
34
- align-items: center;
35
- background-color: ${e=>e.theme.colors.grey4};
36
- box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
37
- `,Ee=x(function(e){const a=S(e),n=k(e),o=C(e),{companyName:i}=a;return{companyName:i,isDisabled:a.fetchState!=="Completed"?"disabled":void 0,magicLinkBankAccountDetails:n,mailingAddressDetails:o,magicLinkViewState:a}},function(e,a){const{navigate:n,location:o,vendorId:i,billId:l}=a;return{onFetchBankNameBySwift:s=>{e(ie(s))},onSaveHandler:s=>{I.trackBillPayMagicLinkSubmitBankAccountDetails(l),e($(s,"international",i,l,a.isLocalCurrencyEnabled))},onBankDetailsUpdated:s=>{const{internationalWireSwiftAccountSection:d}=s;e(oe({data:d}))},onAddressClick:()=>{const s=o.pathname.replace("international","address"),d=F(o.state?.pathnameStackToGoBack,o.pathname);n(s,{state:{pathnameStackToGoBack:d}})}}})(he);function Fe(){const e=j(),a=y(),n=g(),{vendorId:o,billId:i}=b(),{useFeatureGate:l}=pe(),{isFeatureEnabled:s}=l(ue.isBillPayLocalCurrencyFeatureEnabled);return o==null||i==null?t.jsx(f,{}):t.jsx(Le,{windowSize:n,children:t.jsx(Ee,{location:a,navigate:e,vendorId:o,billId:i,isLocalCurrencyEnabled:s})})}const Te={containerWidth:new ke(100,58)},Ge=c(ye)`
38
- width: ${r.sp4};
39
- height: ${r.sp4};
40
- margin-bottom: ${r.sp3};
41
- margin-top: ${r.sp3};
42
- margin-left: ${r.sp8};
43
- cursor: pointer;
44
- position: absolute;
45
- color: ${e=>e.theme.colors.brandColorJade};
46
- `,He=c.div`
47
- display: flex;
48
- height: 100vh;
49
- flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
50
- width: 100vw;
51
- overflow-y: scroll;
52
- background-color: ${e=>e.theme.colors.grey4};
53
- `,Me=c.div`
54
- display: flex;
55
- flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
56
- flex-direction: column;
57
- width: ${e=>`${Te.containerWidth.value(e.windowSize)}%`};
58
- ${e=>e.windowSize!=="small"?"overflow: auto;":""}
59
- box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
60
- padding-top: ${e=>e.windowSize!=="small"?r.sp2:"0px"};
61
- `,Ve=c.div`
62
- display: flex;
63
- flex-direction: column;
64
- align-items: center;
65
- justify-content: center;
66
- padding: ${e=>e.windowSize==="small"?r.sp3:`62px ${r.sp6} ${r.sp9} ${r.sp8}`};
67
- height: ${e=>e.windowSize==="small"?"490px":"auto"};
68
- overflow: ${e=>e.windowSize==="small"?"unset":"hidden"};
69
- width: ${e=>e.windowSize=="small"?"auto":"42%"};
70
- background-color: ${e=>e.windowSize==="small"?e.theme.colors.grey4:e.theme.colors.background};
71
- margin-top: ${e=>e.windowSize==="small"?e.isAddressPage?"0px":"186px":"unset"};
72
- `,Ke=x(function(e,a){return{file:a.file,type:a.type}})(Se);function h({appContent:e}){const a=Z(),n=y(),{tenantEmailDomain:o,vendorId:i,billId:l}=b(),[s]=ee(),d=s.get("token"),T=n.pathname.includes("address"),w=g(),G=xe(),B=ge(),H=()=>{G.toggle()},M=D(u=>S(u)),V=D(u=>k(u)),{authParams:K,fetchState:m,billAttachment:W,billFetchState:A,companyName:_,currencySymbol:U,amount:q}=M,{tenantId:J,userId:O,sessionId:Q}=K,{fetchState:R,internationalBankAccountCreateStatus:X}=V;return P.useEffect(()=>{v(),m==="Not-Started"&&i!=null&&o!=null&&d!=null&&a(se(i,o,d))},[]),P.useEffect(()=>{m==="Completed"&&(v(O,Q,J),l!=null&&a(le(l)))},[m]),m==="Error"?t.jsx(f,{}):R==="Completed"||X.fetchState==="Completed"?(v(),t.jsx(te,{to:"../../../../../../../bank/account/save/success",replace:!0,relative:"path"})):m==="In-Progress"?t.jsx(fe,{fetchState:m,style:{height:"100vh",backgroundColor:B.colors.grey5,boxShadow:`0px 2px ${r.sp1} ${B.colors.dropShadowNormal}`}}):t.jsxs(t.Fragment,{children:[m==="Completed"&&A==="Completed"&&t.jsx(we,{analytics:I,onLoad:u=>(Y=>Y.trackBillPayMagicLinkPageLoad(o??"",i??"",_,l??"",We(n.pathname),U,q))(u)}),t.jsxs(He,{windowSize:w,children:[w!=="small"?t.jsx(Ge,{onClick:H}):null,t.jsx(Ve,{windowSize:w,isAddressPage:T,children:A==="In-Progress"?t.jsx(be,{size:"ExtraLarge",start:!0}):t.jsx(Ke,{file:W,type:"bill"})}),t.jsx(Me,{windowSize:w,children:e})]})]})}const We=e=>`${e.split("/").at(-2)}_${e.split("/").at(-1)}`;function _e(){return t.jsx(Ie,{})}function lt(){return t.jsxs(ae,{children:[t.jsx(p,{path:"bank/account/save/success",element:t.jsx(_e,{})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/ach/standard",element:t.jsx(h,{appContent:t.jsx(z,{})})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/ach/same-day",element:t.jsx(h,{appContent:t.jsx(z,{})})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/address",element:t.jsx(h,{appContent:t.jsx(Be,{isSubPage:!0})})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/us-domestic",element:t.jsx(h,{appContent:t.jsx(Ne,{})})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/international",element:t.jsx(h,{appContent:t.jsx(Fe,{})})}),t.jsx(p,{path:"*",element:t.jsx(f,{})})]})}export{lt as default};
@@ -1,12 +0,0 @@
1
- import{j as u}from"./liveblocks-yYJhhlwl.js";import{a as g}from"./sentry-CbgVFeom.js";import{h as O,u as _,j as w,q as M,g as l,N as T}from"./core-Bycbr_zS.js";import{z as r,h as P,D as V,e as A,d as N,f as q,x as G,I as R,i as W}from"./index-CkPLyKrL.js";import{eN as $,Ii as B,Is as H,Ij as J,eO as K,fh as Q,Io as X,fG as Y,cS as Z,It as ee,Iu as te}from"./zeni-epic-state-CIfm8mou.js";import{n as ne}from"./mui-uwIb-0_u.js";import{u as ae}from"./useDeviceId-DGCuWe9z.js";import{f as se}from"./analyticsHelper-hJglLz67.js";import{t as ie}from"./getLocaleForTenant-hR2ZjLdG.js";import"./recharts-DgZ04ot6.js";import"./analytics-BMapadfi.js";import"./plaid-BtVuBiv6.js";import"./dnd-Jwp37Hwc.js";import"./stripe-DMRn4zHo.js";import"./lottie-CQftbn5o.js";import"./lexical-BFKF8Nqm.js";import"./pdf-Clano961.js";import"./utils-CUNvYJ5h.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]="baece30a-2d47-4a0e-add7-9970f22d51d6",t._sentryDebugIdIdentifier="sentry-dbid-baece30a-2d47-4a0e-add7-9970f22d51d6")}catch{}})();const x=(t,s)=>t!=null&&t.length>0&&s==="magic_links";function xe(){const t=O(),s=_(),m=w(),[y]=M(),n=y.get("token"),p=y.get("stytch_token_type"),f=r.getMagicLinkCodeVerifier(),i=ae(),{otpChallenge:d,twoFAPhoneNumber:D,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=P().mode;g.useEffect(()=>{a?.zeniSessionId==null&&n!=null&&x(n,p)&&i!=null&&f!=null&&(r.saveMagicLinkTriggered(n),t(H(n,i,f)))},[n,p,t,i,f,a?.zeniSessionId]),g.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")),V.updateAppLocaleID(ie(o)),se(a,o,v,void 0,k.tenantsInOrder),Y().then(()=>{const e=W();e!=null&&A(e)}),setTimeout(()=>{N.trackLogin(q.Event.loginSuccess,"email",Z(o.productSettings))},2e3))},[S,I,b,a,o,k,v,s.state,t]);const j=g.useCallback(()=>{m("/signin/auth")},[m]),U=g.useCallback(()=>{i!=null&&d!=null&&c!=null&&t(ee(i,c,d))},[i,d,t,c]),F=g.useCallback(e=>{i!=null&&n!=null&&c!=null&&d!=null&&t(te(e,i,c,d))},[i,n,t,c,d]);if(h==="Completed"&&d!=null)return u.jsx(G,{phoneNumber:D,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(!x(n,p)||f==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{xe as default};
@@ -1 +0,0 @@
1
- import{j as e}from"./liveblocks-yYJhhlwl.js";import{j as r,k as i}from"./core-Bycbr_zS.js";import{V as n}from"./index-CkPLyKrL.js";import"./mui-uwIb-0_u.js";import"./sentry-CbgVFeom.js";import"./zeni-epic-state-CIfm8mou.js";import"./recharts-DgZ04ot6.js";import"./analytics-BMapadfi.js";import"./plaid-BtVuBiv6.js";import"./dnd-Jwp37Hwc.js";import"./stripe-DMRn4zHo.js";import"./lottie-CQftbn5o.js";import"./lexical-BFKF8Nqm.js";import"./pdf-Clano961.js";import"./utils-CUNvYJ5h.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,5 +0,0 @@
1
- import{j as s}from"./liveblocks-yYJhhlwl.js";import{a as o}from"./sentry-CbgVFeom.js";import{g as f,j as O,h as V,u as F,k as H}from"./core-Bycbr_zS.js";import{h as N,q as W,z as R,b3 as _,C as z,M as U,y as $,d as l,f as X,a1 as Z,b4 as q}from"./index-CkPLyKrL.js";import{eX as Q,eN as G,Lx as P,Ly as J,tr as K,th as g,eZ as Y,bM as ee,tm as re,Lz as ae}from"./zeni-epic-state-CIfm8mou.js";import{D as ne,e as te,n as se,S as oe}from"./mui-uwIb-0_u.js";import{u as ie}from"./useAskAiCfoHostNavButtonProps-C7xPewG5.js";import{c as le}from"./useFetchSuggestedQuestionsWhenReady-DmtdISaY.js";import{M as de}from"./MobileAppDrawer-BsEeVHGJ.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]="abe700ee-6564-4f0d-b29e-c5d9149428e9",e._sentryDebugIdIdentifier="sentry-dbid-abe700ee-6564-4f0d-b29e-c5d9149428e9")}catch{}})();const ce={overlayWidth:new z(100,100,30)},fe=({isReferralDrawerOpen:e,closeDrawerHandler:r})=>{const a=N(),n=W();if(R.getSignedInUser()==null)throw Error("Can't access How Referral works without signing in...");const i=()=>{r(!0)},u=f(d=>Q(d));return s.jsx(ne,{anchor:"right",open:e,PaperProps:{style:{width:ce.overlayWidth.valuePercentage(n),boxShadow:"none"}},slotProps:{backdrop:{style:{opacity:.75,backgroundColor:a.colors.black,cursor:"pointer"}}},onClose:()=>i(),children:s.jsx(te,{in:e,direction:"left",children:s.jsx(ue,{onClick:d=>d.stopPropagation(),children:s.jsx(_,{onDismissClick:i,rewardsPlan:u.rewardsPlan})})})})},ue=se(oe)`
2
- display: flex;
3
- min-height: 100%;
4
- flex-direction: column;
5
- `,I="refer-and-earn-status-update",we=H(function(e){const r=P(e),a=e.referralViewState.rewardsPlanFetchState,n=ee([r,a]);return{inviteList:r.invitations,uiState:r.uiState,pendingBonus:r.pendingBonus,earnedBonus:r.earnedBonus,pendingReferrals:r.pendingReferrals,fetchState:n.fetchState,rewardsPlan:r.rewardsPlan}},function(e,r){const{navigate:a}=r;return{onColumnSortConfigChanged:(n,i)=>{e(ae({sortOrder:i,sortkey:n}))},onInviteClick:()=>{l.trackRewardsPageClicked("invite via email"),a("../refer")},onHowItWorksClick:()=>{l.trackRewardsPageClicked("know more"),a("../how-it-works")},onResendInviteClick:n=>{l.trackRewardsPageClicked("resend invite"),e(re(n))},onBackClick:()=>{a("../",{relative:"path"})},onReloadInvitees:()=>{e(g(!0))},onCopyReferralLink:()=>{l.trackRewardsPageClicked("copy referral link")},onClickRefer:()=>{l.trackRewardsPageClicked("refer")},onEventReceived:n=>{n===I&&e(g(!0,!0))}}})(Z(q));function Se({isReferralDrawerOpen:e}){const r=O(),a=V(),n=F(),[i,u]=o.useState(!1),[d,x]=o.useState(!1),[D,E]=o.useState(!1),[k,h]=o.useState(!1),w=R.getSignedInUser(),C=f(t=>G(t)),m=f(t=>P(t)),b=m.fetchState,p=f(t=>t.referralViewState.rewardsPlanFetchState),y=J([m,p]),{areTenantIdsInSync:c}=U();o.useEffect(()=>{C?.rewardsLastViewedTime==null&&D===!1&&(a(K()),E(!0))},[]),o.useEffect(()=>{!i&&b==="Not-Started"&&c&&(u(!0),a(g(!0)))},[b,a,c]),o.useEffect(()=>{!d&&p.fetchState==="Not-Started"&&c&&(x(!0),a(Y(!0)))},[p,a,c]),o.useEffect(()=>{h(e!=null&&e===!0)},[e]);const[j,A]=o.useState(!1),v=t=>{A(t)},{isAiCfoAccessEnabled:L,onAskAiCfoClick:T}=ie({mobileExploreReferrer:"Rewards"});le({isDataReady:y===!0});const B={events:w?.userId!=null?[`private-${w.userId}.${I}`]:[],eventCallback:(t,S,M)=>{M.onEventReceived(t)}};return s.jsxs(s.Fragment,{children:[y===!0?s.jsx($,{analytics:l,onLoad:t=>(S=>{w!=null&&S.trackPageLoaded(X.Event.rewardsPageViewed)})(t)}):null,s.jsx(de,{isAppContentDrawerOpen:j,handleDrawerToggle:v}),k===!0?s.jsx(fe,{closeDrawerHandler:()=>{h(!1),r("..")},isReferralDrawerOpen:k}):null,s.jsx(we,{location:n,navigate:r,currentTenant:C,onClickMenuIcon:()=>{v(!0)},isAiCfoAccessEnabled:L,onAskAiCfoClick:T,...B})]})}export{Se as R};
@@ -1 +0,0 @@
1
- import{j as t}from"./liveblocks-yYJhhlwl.js";import R from"./NotFoundScreen-BnQ9IpWO.js";import{a as p}from"./sentry-CbgVFeom.js";import{j as C,u as I,h as A,g as u,N as E,k,n as D,o as d}from"./core-Bycbr_zS.js";import{eN as T,Mr as g,MH as S,Co as V,Bx as U,Cn as c,Ce as _,MW as M}from"./zeni-epic-state-CIfm8mou.js";import{h as N,z as W,w as $,a1 as B,bJ as O,ab as z}from"./index-CkPLyKrL.js";import"./mui-uwIb-0_u.js";import{R as v}from"./ReimbursementApprovalRuleDetailScreen-CEnbrTbv.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]="0e1898da-e117-40ca-b671-08da661fed11",e._sentryDebugIdIdentifier="sentry-dbid-0e1898da-e117-40ca-b671-08da661fed11")}catch{}})();const m="reimbursement-approval-rule-update",H=k(function(e){return{approvalView:g(e),remiSetupApproverViewUpdateData:S(e).remiSetupApproverViewUpdateData}},function(e,r){const{navigate:a,location:l}=r;return{onApprovalRulesEventReceived:s=>{s.endsWith(m)&&e(M(!1))},onBackClick:()=>{z(l)?a("../../"):a("../../../reimbursements/setup")},onDeleteRuleClick:s=>{e(_(s))},onEditRuleClick:s=>{s!=null?(e(c(s)),a(`./${s}/edit`)):(e(c()),a("./new"))}}})(B(O)),J=()=>{const e=C(),r=I(),a=A(),[l,s]=p.useState(!1),[f,w]=p.useState(!1),b=u(n=>n.remiSetupApproverViewState.fetchState),o=u(n=>T(n)),y=N(),i=u(n=>g(n)),h=u(n=>S(n).remiSetupApproverViewUpdateData);if(p.useEffect(()=>{h?.updateStatus.fetchState==="Completed"&&a(V())},[h]),p.useEffect(()=>{l||b!=="Not-Started"||(s(!0),a(U(!0)))},[l,b,a]),W.getSignedInUser()==null)throw Error("Can't access reimbursement approval without signing in...");p.useEffect(()=>{i.allApprovalRules.length===0&&i.fetchState==="Completed"&&(f||(w(!0),a(c())),e("./new"))},[f,i,a]);const j={events:o.companyId!=null?[`private-${o.companyId}.${m}`]:[],eventCallback:(n,P,x)=>{n.endsWith(m)&&x.onApprovalRulesEventReceived(n)}};return o.companyReimbursementInfo?.info?.isReimbursementTOSAccepted===!1?t.jsx(E,{to:"../../promo"}):o.companyReimbursementInfo?.info?.isReimbursementTOSAccepted!==!0||i.fetchState!=="Completed"&&i.fetchState!=="Error"?t.jsx($,{fetchState:"In-Progress",style:{backgroundColor:y.colors.grey5}}):t.jsx(H,{currentTenant:o,location:r,navigate:e,...j})};function Z(){return t.jsxs(D,{children:[t.jsx(d,{path:"/",element:t.jsx(J,{})}),t.jsx(d,{path:"/new",element:t.jsx(v,{})}),t.jsx(d,{path:"/:approvalRuleId/edit",element:t.jsx(v,{})}),t.jsx(d,{path:"*",element:t.jsx(R,{})})]})}export{Z as R};
@@ -1 +0,0 @@
1
- import{j as p}from"./liveblocks-yYJhhlwl.js";import{u as G,j as be,h as Ie,l as ye,g as d,k as ge,n as Ce,o as N}from"./core-Bycbr_zS.js";import{eN as M,f7 as C,IF as Se,jq as K,IG as W,pI as F,je as we,ih as Re,t1 as Te,pN as Oe,bv as Fe,IH as Ae,bn as ke,u4 as De,II as je,IJ as Ee,sZ as Pe,t5 as Me,IK as Y,IL as Le,IM as Be,IN as ve,IO as Ue,IP as S,IQ as A,IR as k,IS as H,IT as D,IU as j,dB as Ve,tM as xe,tA as q,tB as $,tS as ze,tF as Z,tY as Ge,IV as Ne,IW as Ye,IX as He,IY as qe,IZ as $e,eT as Ze,eR as Qe}from"./zeni-epic-state-CIfm8mou.js";import{J as Je,K as Ke,q as We,a as X,p as E,z as ee,M as Xe,j as ea,c as aa,y as sa,d as P,f as ta,s as ae,N as oa,O as na,Q as ra}from"./index-CkPLyKrL.js";import"./mui-uwIb-0_u.js";import ia from"./NotFoundScreen-BnQ9IpWO.js";import{F as la}from"./FeaturePreviewScreen-CZ4kSWCz.js";import{a as h}from"./sentry-CbgVFeom.js";import{u as ca,a as da,b as pa,c as fa}from"./useFetchSuggestedQuestionsWhenReady-DmtdISaY.js";import{u as ma}from"./useInitialThreadRequest-DBrdowkN.js";import{t as Q,a as J}from"./routePaths-CMggNZ1T.js";import{M as ua}from"./MobileAppDrawer-BsEeVHGJ.js";import"./recharts-DgZ04ot6.js";import"./analytics-BMapadfi.js";import"./plaid-BtVuBiv6.js";import"./dnd-Jwp37Hwc.js";import"./stripe-DMRn4zHo.js";import"./lottie-CQftbn5o.js";import"./lexical-BFKF8Nqm.js";import"./pdf-Clano961.js";import"./utils-CUNvYJ5h.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]="9bab6f41-02c7-4bc0-b474-f55e1a21aec3",e._sentryDebugIdIdentifier="sentry-dbid-9bab6f41-02c7-4bc0-b474-f55e1a21aec3")}catch{}})();const _a=["profit_loss","balance_sheet","cash_flow"],I=e=>{e(j({resetLeftScroll:!0})),e(D({resetLeftScroll:!0})),e(k({resetLeftScroll:!0})),e(A({resetLeftScroll:!0}))},ha=e=>{e(Ye()),e(He()),e(qe()),e($e())},ba=ge(function(e){const o=ee.getSignedInUser(),f=e.tenantState.currentTenantId,u=M(e),a=u?.companyName??"",s={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:f??""},t=C(e),r=Ae(u);return{fetchState:t.fetchState,selectedTimeframe:t.filter.timeframe,selectedReport:t.selectedReportId,displayOrder:t.displayOrder,reportFormat:t.reportFormat,dataAvailable:t.dataAvailable,balancesInTimeframe:t.balancesInTimeframe,allTimeframeTicks:t.allTimeframeTicks,selectedCOABalancesRange:t.filter.balancesRange,isCompareMode:t.isCompareModeOn,profitAndLossReport:t.profitAndLossReport,profitAndLossClassesViewReport:t.profitAndLossByClassReport,profitAndLossProjectViewReport:t.profitAndLossByProjectReport,profitAndLossByClassHorizontalReport:t.profitAndLossByClassHorizontalReport,balanceSheetReport:t.balanceSheetReport,cashFlowReport:t.cashFlowReport,downloadState:t.downloadState,analytics:P,isZeniUser:ke(o),showAccountGroups:r===!0,isAccountingClassesEnabled:K(e),isAccountingProjectsEnabled:W(e),currentTenantCompanyName:a,statementEndPoint:`${ra}/statement`,authParams:s,isZeniCOAUsed:r}},function(e,o){const{navigate:f,handleDrawerToggle:u}=o;return{onReloadReport:()=>{o.signedInUser!=null&&e(F(o.signedInUser.userId,!0,!1))},updateDownloadStateHandler:a=>{e(Ne(a))},onTimeframeSelectionChanged:(a,s,t)=>{if(e(Ge(a)),s){const{isCompareModeOn:r,filter:c}=o,{additionalBalances:m,balancesRange:l}=c;let i=[...m];a==="year"&&(i=i.filter(y=>y!=="this_period_vs_same_period_last_year"&&y!=="this_period_vs_same_period_last_year_percent"&&y!=="same_period_last_year")),e(q(o.firstMonthOfFY,r,l.numberOfPeriods<1?1:l.numberOfPeriods,i)),m.length>0&&e($(o.firstMonthOfFY,i.includes("this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent",l.numberOfPeriods<1?1:l.numberOfPeriods,i))}t!==!0&&setTimeout(()=>I(e),50)},onReportSelectionChanged:a=>{const s=o.selectedReportID;if(a===s)return;const t=o.classViewLayout;e(S(a)),(a==="balance_sheet"||a==="cash_flow")&&s==="profit_and_loss_by_classes"&&t==="horizontal"&&e(Z({numberOfPeriods:1,orderBy:"ascending_date"})),a!=="profit_and_loss"&&a!=="profit_and_loss_by_classes"&&s==="profit_and_loss_by_classes"&&t==="horizontal"&&e(Y({classViewLayout:"vertical"})),I(e)},onCOABalancesRangeChanged:(a,s)=>{e(Z(a,s)),I(e)},onThisPeriodChanged:(a,s,t)=>{e(ze(o.firstMonthOfFY,a,s<1?1:s)),t!==!0&&I(e)},onAdditionalBalanceSelectionChanged:(a,s,t,r)=>{e(q(o.firstMonthOfFY,a,t<1?1:t,s)),s.length>0&&e($(o.firstMonthOfFY,s.includes("this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent",t<1?1:t,s)),r!==!0&&o.isCompareModeOn===a||setTimeout(()=>I(e),50)},onUpdateHighlightedNumberOfPeriods:(a,s,t,r)=>{e(xe({firstMonthOfFY:o.firstMonthOfFY,isCompareModeOn:s,additionalBalances:a,maxNumOfPeriodsToHighlight:t<1?1:t,coaBalances:r}))},onAccountBalanceClick:o.hasTransactionAccess!==!0?void 0:(a,s,t)=>{let r,c;if(s.balanceTimeFrame==="month"||s.balanceTimeFrame==="quarter"?(r=s.balanceTimeFrame,c=Ve(s)):s.balanceTimeFrame==="year"?(r="quarter",c={startDate:s.endDate.startOf("quarter"),endDate:s.endDate}):console.error(`timeframe ${s.balanceTimeFrame} is not supported`),c!=null&&r!=null){const m=a.accountName===""?a.accountDescription:a.accountName,l=(()=>{if(o.selectedReportID==="profit_and_loss_by_classes"&&o.classViewLayout==="horizontal"&&a.accountType!=null){if(t?.isHorizontalClassTotalColumn===!0)return Q(o.tenantEmailDomain,a.accountId,a.accountType,m,r,c);if(t?.isHorizontalClassColumn===!0&&s.id!=null)return J(o.tenantEmailDomain,a.accountId,a.accountType,s.id,m,r,c)}return a.classesViewParentId!=null&&a.classesViewParentId.parentClassId!=null&&a.accountType!=null?J(o.tenantEmailDomain,a.accountId,a.accountType,a.classesViewParentId.parentClassId[0],m,r,c):a.accountType!=null?Q(o.tenantEmailDomain,a.accountId,a.accountType,m,r,c):void 0})();if(l!=null){const i=ae(o.location.state?.pathnameStackToGoBack,o.location.pathname);f(l,{state:{pathnameStackToGoBack:i,referrer:w(o.selectedReportID)}})}}},onTableScroll:(a,s)=>{switch(a){case"profit_and_loss":e(j({scrollPosition:s}));break;case"profit_and_loss_by_classes":e(D({scrollPosition:s}));break;case"profit_and_loss_by_projects":e(H({scrollPosition:s}));break;case"balance_sheet":e(k({scrollPosition:s}));break;case"cash_flow":e(A({scrollPosition:s}));break;default:console.log(`Table Scroll state for ${a} is not handled`)}},onElementCollapseStateChanged:(a,s,t)=>{switch(a){case"profit_and_loss":e(j({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;case"profit_and_loss_by_classes":e(D({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;case"profit_and_loss_by_projects":e(H({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;case"balance_sheet":e(k({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;case"cash_flow":e(A({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;default:console.log(`Collapse state toggle for ${a} is not handled`)}},onBackClick:()=>{f("../../")},onUpdateAccountViewMode:a=>{e(ve({viewMode:a})),e(Ue({viewMode:a})),a==="classes"?(o.analytics?.trackGroupBySwitch("Classes",w(o.selectedReportID)),e(S("profit_and_loss_by_classes"))):a==="project"?(o.analytics?.trackGroupBySwitch("Projects",w(o.selectedReportID)),e(S("profit_and_loss_by_projects"))):(o.analytics?.trackGroupBySwitch("Accounts",w(o.selectedReportID)),e(S("profit_and_loss"))),I(e)},onUpdateClassesToFilterOut:a=>{e(Be({classesToFilterOut:a}))},onUpdateProjectsToFilterOut:a=>{e(Le({projectsToFilterOut:a}))},onUpdateClassViewLayout:a=>{e(Y({classViewLayout:a}))},onOpenAccountViewMode:()=>{o.isAccountingClassesEnabled&&e(Pe()),o.isAccountingProjectsEnabled&&e(Me())},onUpdateDisplayOrder:a=>{e(Ee(a))},onUpdateReportFormat:a=>{ha(e),e(je(a))},onClickMenuIcon:()=>{u(!0)},onResyncReports:()=>{e(De("profit_and_loss_by_classes"))}}})(oa);function Ia(){const{isAiCfoOpen:e,setIsAiCfoOpen:o}=Ke(),f=We(),u=na(f),a=be(),s=Ie(),t=G(),{tenantEmailDomain:r}=ye(),{useFeatureGate:c}=X(),{isFeatureEnabled:m}=c(E.isReportsHorizontalClassLayoutSwitchEnabled),l=ee.getSignedInUser(),[i,y]=h.useState(!1),[L,se]=h.useState(!1),{isFeatureEnabled:B}=c(E.isReportsCommentingEnabled);if(l==null)throw Error("Can't access reports page without signing in...");const v=d(n=>M(n)),te=v.company?.companyInfo.firstMonthOfFY??1,oe=ma(B?v?.companyId:void 0),g=d(n=>C(n).fetchState),ne=d(n=>Se(n)),{areTenantIdsInSync:b}=Xe(),R=d(n=>n.financeStatementState.selectedReportId),U=d(n=>K(n)),T=d(n=>W(n)),re=d(n=>C(n).isCompareModeOn),_=d(n=>C(n).filter),O=d(n=>C(n).selectedReportAndTimeframeFetchState),ie=d(n=>n.profitAndLossClassesViewState.uiState.classViewLayout);h.useEffect(()=>{!i&&b&&(y(!0),s(F(l.userId,!0,!0,!1)))},[i,l,s,b]),h.useEffect(()=>{i&&!L&&g==="Completed"&&b&&(s(F(l.userId,!1,!0,!1)),se(!0))},[i,L,g,b]),h.useEffect(()=>{if(i&&O.fetchState==="Not-Started"&&_.timeframe!=="free_range"&&_.timeframe!=="week"&&b)switch(R){case"profit_and_loss":case"profit_and_loss_by_classes":s(Oe(_.timeframe));break;case"profit_and_loss_by_projects":T&&s(Te(_.timeframe));break;case"balance_sheet":s(Re(_.timeframe));break;case"cash_flow":s(we(_.timeframe))}},[i,R,O,b,U,T]);const V=ea(),le=V?.loggedInUserRole!=null&&Fe(V?.loggedInUserRole)!==!0,[ce,de]=h.useState(!1),x=n=>{de(n)},pe=aa(),fe=pa();return function(n){const{isDataReady:me}=n,{pathname:ue}=G(),z=Je(ue??"")==="reports",_e=ca(me),he=h.useMemo(()=>z?_a:void 0,[z]);da({canFetchSuggestedQuestions:_e,pageContexts:he})}({isDataReady:g==="Completed"}),fa({isDataReady:g==="Completed"}),p.jsxs(p.Fragment,{children:[g==="Completed"?p.jsx(sa,{analytics:P,onLoad:n=>n.trackPageLoaded(ta.Event.reports)}):null,p.jsx(ua,{isAppContentDrawerOpen:ce,handleDrawerToggle:x}),p.jsx(ba,{firstMonthOfFY:te,tenantEmailDomain:r,location:t,navigate:a,windowSize:f,classViewLayout:ie,selectedReportID:R,analytics:P,filter:_,isAccountingClassesEnabled:U,isAccountingProjectsEnabled:T,isCompareModeOn:re,hasTransactionAccess:le,signedInUser:l,selectedReportAndTimeframeFetchState:O,handleDrawerToggle:x,reportsResyncFetchState:ne.reportsResyncFetchState,isAiCfoAccessEnabled:fe&&pe&&!e,onAskAiCfoClick:()=>{if(u){const n=ae(t.state?.pathnameStackToGoBack,t.pathname);a(`/${r}/ai-cfo/explore`,{state:{pathnameStackToGoBack:n,referrer:"Reports"}})}else o(!0)},isHorizontalClassReportSwitchEnabled:m,isReportsCommentingEnabled:B,initialOpenThreadRequest:oe})]})}const w=e=>{switch(e){case"profit_and_loss":return"Profit & Loss";case"balance_sheet":return"Balance Sheet";case"cash_flow":return"Cash Flow";default:return"Reports"}};function xa(){const e=d(s=>M(s)),{useFeatureGate:o}=X(),{isFeatureEnabled:f}=o(E.isDebitCardFeatureEnabled),u=Ze(f,e),a=Qe(e);return u===!0||a===!0?p.jsx(la,{}):p.jsxs(Ce,{children:[p.jsx(N,{path:"/",element:p.jsx(Ia,{})}),p.jsx(N,{path:"*",element:p.jsx(ia,{})})]})}export{xa as default};
@@ -1 +0,0 @@
1
- import{j as a}from"./liveblocks-yYJhhlwl.js";import{a as j,z as w,aJ as y,y as I,d as p,f as F,cD as P,p as L}from"./index-CkPLyKrL.js";import"./mui-uwIb-0_u.js";import l from"./NotFoundScreen-BnQ9IpWO.js";import{a as d}from"./sentry-CbgVFeom.js";import{h as T,g as b,j as V,u as A,k as R,n as U,o as f}from"./core-Bycbr_zS.js";import{eN as z,Pg as C,M6 as Y,Ph as D,tr as G,eZ as J,Pi as M,tp as O}from"./zeni-epic-state-CIfm8mou.js";import{R as x}from"./ReferralListScreen-CTukyk1g.js";import"./recharts-DgZ04ot6.js";import"./analytics-BMapadfi.js";import"./plaid-BtVuBiv6.js";import"./dnd-Jwp37Hwc.js";import"./stripe-DMRn4zHo.js";import"./lottie-CQftbn5o.js";import"./lexical-BFKF8Nqm.js";import"./pdf-Clano961.js";import"./utils-CUNvYJ5h.js";import"./useAskAiCfoHostNavButtonProps-C7xPewG5.js";import"./useFetchSuggestedQuestionsWhenReady-DmtdISaY.js";import"./MobileAppDrawer-BsEeVHGJ.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]="7c051861-8d99-4ff3-93ba-596066d887be",e._sentryDebugIdIdentifier="sentry-dbid-7c051861-8d99-4ff3-93ba-596066d887be")}catch{}})();const Z=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(D()),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(O())},onUpdateInviteFormLocalData:s=>{e(M({localData:s}))},onSubmitSuccess:()=>{n("../../")},onCancelClick:()=>{o!=null&&p.trackInviteEmailClicked("cancel")}}})(P),q=()=>{const e=T(),[t,n]=d.useState(!1),[o,s]=d.useState(!1),r=b(i=>z(i)),c=V(),k=A(),{useDynamicConfig:g}=j(),u=w.getSignedInUser();if(u==null)throw Error("Can't access invite referral screen without signing in...");const m=b(i=>C(i)),v=u?.firstName!=null?u.firstName:"User",{configValue:h}=g(y.zeniCardsConfig),{configValue:_}=g(y.zeniAccountsConfig),N=Y(_);d.useEffect(()=>{e(D()),r?.rewardsLastViewedTime==null&&o===!1&&(e(G()),s(!0))},[]),d.useEffect(()=>{t||m.fetchState!=="Not-Started"||(n(!0),e(J(!0)))},[m.fetchState,e]);const S=r.company?.companyInfo.companyLegalName??r.companyName;return a.jsxs(a.Fragment,{children:[m.fetchState==="Completed"?a.jsx(I,{analytics:p,onLoad:i=>(E=>E.trackPageLoaded(F.Event.inviteEmailViewed))(i)}):null,a.jsx(Z,{navigate:c,location:k,currentTenant:r,companyName:S,userName:v,inviteFormCompayData:m.localData,chargeCardCashbackRatePerTransaction:h.charge_card_cashback_rate_per_transaction!=null?h.charge_card_cashback_rate_per_transaction:.0175,maxAnnualPercentageYield:N.maxAnnualPercentageYield})]})};function ue(){const{useFeatureGate:e}=j(),{isFeatureEnabled:t}=e(L.isReferralFeatureEnabled);return a.jsxs(U,{children:[a.jsx(f,{path:"/",element:t?a.jsx(x,{}):a.jsx(l,{})}),a.jsx(f,{path:"how-it-works",element:t?a.jsx(x,{isReferralDrawerOpen:!0}):a.jsx(l,{})}),a.jsx(f,{path:"refer/*",element:t?a.jsx(q,{}):a.jsx(l,{})}),a.jsx(f,{path:"*",element:a.jsx(l,{})})]})}export{ue as default};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardRoutes-DsyeD2-B.js","assets/sentry-CbgVFeom.js","assets/core-Bycbr_zS.js","assets/zeni-epic-state-CIfm8mou.js","assets/index-CkPLyKrL.js","assets/mui-uwIb-0_u.js","assets/analytics-BMapadfi.js","assets/utils-CUNvYJ5h.js","assets/withTransactionSidePanel-VWqgYGxS.js","assets/useAskAiCfoHostNavButtonProps-C7xPewG5.js","assets/useFetchSuggestedQuestionsWhenReady-DmtdISaY.js","assets/TransactionDetailScreen-DKG_MhFF.js","assets/decodeURIComponentSafe-D8oY1hc9.js","assets/routePaths-CMggNZ1T.js","assets/NotFoundScreen-BnQ9IpWO.js","assets/analyticsHelper-hJglLz67.js","assets/CompanyPassportScreen-BK2OTKJu.js","assets/MobileAppDrawer-BsEeVHGJ.js","assets/FeaturePreviewScreen-CZ4kSWCz.js","assets/ReferralListScreen-CTukyk1g.js","assets/index-Bc34frN_.css","assets/BillPayRoutes-DmhKosIo.js","assets/AddressScreen-7k7vjaFG.js","assets/DomesticWireDetailScreen-D6Fv4KmF.js","assets/useInitialThreadRequest-DBrdowkN.js","assets/DrawerScreen-Dzpv8ixO.js","assets/SetupPagesScreen-CwdMwDRP.js","assets/BusinessVerificationPageScreen-DHwpyl1f.js","assets/BillPayApprovalRoutes-tYr_9OWR.js","assets/ReimbursementApprovalRuleDetailScreen-CEnbrTbv.js","assets/getLocaleForTenant-hR2ZjLdG.js","assets/ReimbursementRoutes-BT2-7Gsa.js","assets/ReimbursementApprovalRoutes-DcSHObaL.js","assets/TransactionListRoutes-BSDQcv3U.js","assets/ZeniAccountStatementScreen-D1W40t46.js","assets/SettingsRoutes-CLa1lnt-.js","assets/accountMappingHelper-C_yfNaYk.js","assets/QBOConnectionScreen-BH7qNWPW.js","assets/empty-BVzRSYkS.js","assets/index-DmSlLFfZ.js","assets/url-CACUy1v-.js","assets/index-DB8zvt4r.js","assets/ReportsRoutes-JuhC6wWc.js","assets/ChargeCardRoutes-DdDzkKLF.js","assets/PeopleRoutes-uXI358fF.js","assets/ExpenseAutomationRoutes-hPdcTllf.js","assets/TreasuryRoutes-AWertsO5.js","assets/VendorsRoutes-DW9oOFbY.js","assets/pathToGoBack-6NBe70Qs.js","assets/ZeniAccountRoutes-Bu65VebN.js","assets/AddressRoutes-CVfu5Dox.js","assets/PandLWithForecastRoutes-wJ4pN9t1.js","assets/CustomerOnboardingRoutes-ibn4fZkx.js","assets/TransactionDetailRoutes-DNNxQ-Pu.js","assets/EntityDetailRoutes-B6fpxmHW.js","assets/NotificationRoutes-CCNPEsKp.js","assets/PerformanceRoutes-DOyVY_Ow.js","assets/RewardsRoutes-DSOl9Z0M.js","assets/TaskRoutes-BPawNp5H.js","assets/TaskListScreen-DCK_sYz_.js","assets/AiCfoScreen-BP9Ft687.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,fC as us,eP as _s,cO as Ae,cv as As,f8 as Es,cn as ps,bC as Is,bq as gs,fd as xs,v as Ts,Ij as hs,bv as js,Ik as Us,bE as Hs,fa as Rs,bD as Ds,bs,cj as ys,Il as fs,Im as Cs,cL as vs,cN as Os,cM as Ps,cu as Fs,cA as Ls,ml as Ee,eO as pe,fM as Bs,fh as Ie,fJ as ge,fK as xe,fi as ks}from"./zeni-epic-state-CIfm8mou.js";import{j as e}from"./liveblocks-yYJhhlwl.js";import{a as v}from"./sentry-CbgVFeom.js";import{h as Vs,j as Ss,l as Ns,u as Ms,g as z,i as Te,N as c,n as Zs,o as t}from"./core-Bycbr_zS.js";import{h as ws,u as zs,z as R,a as Gs,c as $s,H as Ys,p as L,j as qs,L as B,D as he,t as _,P as Ws,d as X,l}from"./index-CkPLyKrL.js";import"./mui-uwIb-0_u.js";import{f as je}from"./analyticsHelper-hJglLz67.js";import{t as Js}from"./getLocaleForTenant-hR2ZjLdG.js";import"./recharts-DgZ04ot6.js";import"./analytics-BMapadfi.js";import"./plaid-BtVuBiv6.js";import"./dnd-Jwp37Hwc.js";import"./stripe-DMRn4zHo.js";import"./lottie-CQftbn5o.js";import"./lexical-BFKF8Nqm.js";import"./pdf-Clano961.js";import"./utils-CUNvYJ5h.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]="72f91958-afb5-425a-9c36-6093c5c66440",i._sentryDebugIdIdentifier="sentry-dbid-72f91958-afb5-425a-9c36-6093c5c66440")}catch{}})();const Ks={dashboard:()=>n(()=>import("./DashboardRoutes-DsyeD2-B.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-DmhKosIo.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-BT2-7Gsa.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-BSDQcv3U.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,13,34,20])),settings:()=>n(()=>import("./SettingsRoutes-CLa1lnt-.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-JuhC6wWc.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,14,18,10,24,13,17,20])),chargeCards:()=>n(()=>import("./ChargeCardRoutes-DdDzkKLF.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-uXI358fF.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,14,9,10,17,20])),expenseAutomation:()=>n(()=>import("./ExpenseAutomationRoutes-hPdcTllf.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-AWertsO5.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-DW9oOFbY.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-Bu65VebN.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-JuhC6wWc.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,14,18,10,24,13,17,20]))),en=l(()=>n(()=>import("./AddressRoutes-CVfu5Dox.js"),__vite__mapDeps([50,1,2,3,22,4,5,6,7,14,20]))),sn=l(()=>n(()=>import("./PeopleRoutes-uXI358fF.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,14,9,10,17,20]))),nn=l(()=>n(()=>import("./PandLWithForecastRoutes-wJ4pN9t1.js"),__vite__mapDeps([51,1,2,3,4,5,6,7,14,18,9,10,24,13,17,20]))),an=l(()=>n(()=>import("./CustomerOnboardingRoutes-ibn4fZkx.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-DW9oOFbY.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-DNNxQ-Pu.js"),__vite__mapDeps([53,1,2,3,14,4,5,6,7,11,9,10,12,13,20]))),Ue=l(()=>n(()=>import("./EntityDetailRoutes-B6fpxmHW.js"),__vite__mapDeps([54,1,2,3,4,5,6,7,12,8,9,10,11,13,20]))),on=l(()=>n(()=>import("./DashboardRoutes-DsyeD2-B.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]))),He=l(()=>n(()=>import("./BillPayRoutes-DmhKosIo.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-CLa1lnt-.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]))),Re=l(()=>n(()=>import("./ReimbursementRoutes-BT2-7Gsa.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-Bu65VebN.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-AWertsO5.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-BSDQcv3U.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,13,34,20]))),un=l(()=>n(()=>import("./ChargeCardRoutes-DdDzkKLF.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-CCNPEsKp.js"),__vite__mapDeps([55,1,2,3,14,4,5,6,7,9,10,20]))),An=l(()=>n(()=>import("./PerformanceRoutes-DOyVY_Ow.js"),__vite__mapDeps([56,1,2,3,14,4,5,6,7,9,10,17,20]))),En=l(()=>n(()=>import("./ExpenseAutomationRoutes-hPdcTllf.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-DSOl9Z0M.js"),__vite__mapDeps([57,1,2,3,4,5,6,7,14,19,9,10,17,20]))),In=l(()=>n(()=>import("./TaskRoutes-BPawNp5H.js"),__vite__mapDeps([58,1,2,3,14,4,5,6,7,24,17,59,9,10,20]))),gn=l(()=>n(()=>import("./AiCfoScreen-BP9Ft687.js"),__vite__mapDeps([60,1,2,3,4,5,6,7,48,20]))),y=l(()=>n(()=>import("./NotFoundScreen-BnQ9IpWO.js"),__vite__mapDeps([14,1,2,3,4,5,6,7,20]))),xn=l(()=>n(()=>import("./TaskListScreen-DCK_sYz_.js"),__vite__mapDeps([59,1,2,3,4,5,6,7,9,10,17,20])));function wn({setTenantEmailDomain:i}){const U=Vs(),V=Ss(),{tenantEmailDomain:o}=Ns(),S=ws().mode,{setLoading:f,clearAllLoading:O,clearLoading:Z}=zs(),b=R.getSignedInUserTenant(o)?.tenantId,h=R.getSignedInUser(),J=os(h),G=Ms(),[N,be]=v.useState(!1),r=z(a=>ls(a)),{useFeatureGate:P}=Gs(),K=$s(),ye=Ys(),{isFeatureEnabled:fe}=P(L.isExpenseAutomationEnabled),{isFeatureEnabled:Ce}=P(L.isExpenseAutomationEnabledV2),ve=Ce||fe&&J,{isFeatureEnabled:Oe}=P(L.isDepositAccountsFeatureEnabled),{isFeatureEnabled:Pe}=P(L.isTreasuryEnabled),{isFeatureEnabled:Fe}=P(L.isChargeCardFeatureEnabled),{isFeatureEnabled:se}=P(L.isDebitCardFeatureEnabled),j=z(a=>a.tenantState.fetchState),E=z(a=>a.tenantState.activeTenantFetchState.fetchState),u=E==="Completed"||j==="Completed"?cs(se,r):void 0,$=E==="Completed"||j==="Completed"?ds(r):void 0,Le=E==="Completed"||j==="Completed"?ms(r):void 0,Be=Fe||se||!!Le||!!$||!!u,{isFeatureEnabled:ke}=P(L.isSettingsFeatureEnabled),{isFeatureEnabled:Ve}=P(L.isAiCfoFileUploadEnabled),Y=z(a=>us(a));if(o!=null){const a=R.getSignedInUserTenant(o);h!=null&&a!=null&&je(h,r,S)}const w={tenantId:b,userId:h?.userId,sessionId:h?.zeniSessionId},ne=_s(),A=qs(),Se=r.company==null||A?.loggedInUserRoleMap!=null&&Ae(A.loggedInUserRole),Ne=As(A?.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?Es(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 H=a.split("-");if(H.length===2){const d=ps(Number(H[0])),s=Number(H[1]),m=Is(`01-${d<10?`0${d}`:d}-${s}`,he.getLocalizedStrings().dateFormat.analytics.DDDashMMDashYYYY),M=gs();m.isAfter(M,"month")===!1?U(xs(b,{month:d,year:s})):V("./month_end_close_checks/review")}}}},[Q,b]),v.useEffect(()=>{N||(be(!0),f(B.TENANT_FETCHING)),ae.current?ae.current=!1:!Ts(ne,w)&&R.isSignedIn()&&(f(B.TENANT_FETCHING),function(a,H,d,s){if(pe(H?.userId,H?.zeniSessionId,a.tenantId),d(Bs(!0)),d(Ie(a.tenantId)),a.tenantId!=null&&_.clearTenant(a.tenantId),a.tenantId!=null){const m=R.getSignedInUserTenantWithId(a.tenantId);s&&he.updateAppLocaleID(Js(s)),m?.tenantEmailDomain!=null&&R.saveActiveTenantDomainForUser(m?.tenantEmailDomain)}a.userId!=null?X.identify(a.userId,{tenant_id:a.tenantId}):X.resetUserIdentity()}(w,h,U,Me))},[w,ne,h,U,R]),v.useEffect(()=>{R.isSignedIn()&&(f(B.TENANT_FETCHING),function(a,H,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=R.getSignedInUserTenantWithId(s);W?.tenantEmailDomain!=null&&R.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&&(H==="Completed"||H==="Error");a==="Completed"||H!=="Not-Started"&&H!=="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(Ee(m.userId,m.zeniSessionId)))}}(j,E,r,b,h,f,U))},[b,E]),v.useEffect(()=>{R.isSignedIn()&&j==="Completed"&&Y.tenantsBaseInOrder.length>0&&(Z(B.TENANT_FETCHING),R.saveSignedInUserTenants(hs(Y.tenantsBaseInOrder)),h!=null&&je(h,r,S,void 0,Y.tenantsBaseInOrder))},[Y,j,r,h]),v.useEffect(()=>{E==="In-Progress"&&f(B.TENANT_FETCHING),E!=="Completed"&&E!=="Error"||(E==="Completed"&&b!=null?(O(),_.markActiveTenantFetchCompleted(b)):E==="Error"&&b!=null&&(_.markActiveTenantFetchFailed(b),Z(B.TENANT_FETCHING),Z(B.TENANT_SWITCHING))),j!=="Completed"&&j!=="Error"||(j==="Completed"?_.markAllTenantsFetchCompleted():j==="Error"&&_.markAllTenantsFetchFailed())},[E,j,b,N]);const ie=v.useRef(!1);v.useEffect(()=>{!ie.current&&E==="Completed"&&N&&(ie.current=!0,function(a=Qs,H=3e3){setTimeout(()=>{const d=s=>{if(s>=a.length)return;const m=a[s],M=Ks[m];M!=null?M().then(()=>ee(()=>d(s+1))).catch(()=>ee(()=>d(s+1))):d(s+1)};ee(()=>d(0))},H)}())},[E,N]);const C=r?.userRole!=null&&js(r?.userRole),{isFeatureEnabled:Ze}=P(L.isReferralFeatureEnabled),we=r?.userRole!=null&&r.userRole.includes("charge_card_user"),ze=r?.userRole!=null&&r.userRole.includes("charge_card_admin"),F=r?.userRole!=null&&Ae(r.userRole),re=r?.company==null||r.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!C,oe=Be&&!C,Ge=Us(A?.loggedInUserRoleMap),$e=r.externalConnections?.accounting[0]?.isValid,le=r.company?.companyOnboardingInfo.isOnboardingCompleted,ce=r?.company==null||r.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!C,de=ce&&Hs(A?.loggedInUserRoleMap),me=Oe&&!C,Ye=r.company!=null&&Rs(r.company),qe=Pe&&Ye===!0&&!C,We=re&&Ds(A?.loggedInUserRoleMap),Je=oe&&bs(A?.loggedInUserRoleMap),Ke=me&&ys(A?.loggedInUserRoleMap),Qe=fs(A?.loggedInUserRoleMap),Xe=Cs(A?.loggedInUserRoleMap),p=vs(A?.loggedInUserRoleMap),I=Os(A?.loggedInUserRoleMap),g=Ps(A?.loggedInUserRoleMap),x=Fs(A?.loggedInUserRoleMap),T=Ls(A?.loggedInUserRoleMap),ue=re&&x,_e=ce&&T,es=me&&p,ss=qe&&I,ns=oe&&g,as=r.excludedResources?.resources?.find(a=>a.resource==="/invites")!=null||Ne===!0||Ge===!0||Qe===!0||Xe===!0;return R.isSignedIn()?b==null?j==="Completed"?e.jsx(c,{to:"/",replace:!0,state:{...G.state,message:"...",origin:G.pathname}}):(h!=null&&j!=="In-Progress"&&U(Ee(h.userId,h.zeniSessionId)),null):E!=="In-Progress"&&E!=="Not-Started"||j==="Completed"?(le===!0||J&&!te)&&$e===!1&&u===!1&&$===!1?(i(void 0),e.jsx(c,{to:"/connection/auth",replace:!0})):!N||le!==!1||te||J?N&&r?.userRole&&u!=null&&$!=null&&o!=null&&Object.keys(A.loggedInUserRoleMap).length>0?e.jsx(Zs,{children:e.jsxs(t,{element:e.jsx(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(D,{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(D,{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(D,{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(D,{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(D,{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(D,{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(D,{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(D,{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||Ke||Je?e.jsx(en,{}):e.jsx(D,{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(An,{}):e.jsx(De,{tenantEmailDomain:o})}),e.jsx(t,{path:"month_end_close_checks/review/*",element:ve&&C===!1?e.jsx(En,{}):e.jsx(De,{tenantEmailDomain:o})}),e.jsx(t,{path:"notifications/*",element:e.jsx(_n,{})}),e.jsx(t,{path:"vendors/*",element:Se?e.jsx(tn,{}):e.jsx(y,{})}),e.jsx(t,{path:"bill/*",element:ue?e.jsx(He,{}):e.jsx(D,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"bills/*",element:ue?e.jsx(He,{}):e.jsx(D,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reimbursement/*",element:_e?e.jsx(Re,{}):e.jsx(D,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reimbursements/*",element:_e?e.jsx(Re,{}):e.jsx(D,{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:K?e.jsx(c,{to:"explore"}):e.jsx(y,{})}),e.jsx(t,{path:"/ai-cfo/",element:K?e.jsx(c,{to:"explore"}):e.jsx(y,{})}),e.jsx(t,{path:"/ai-cfo/:session_id",element:K?e.jsx(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:S,isUserHasTreasuryAccess:f,isTenantBankingOnly:O,isTenantCardsOnly:Z})=>O===!0&&U?e.jsx(c,{to:"checking"}):Z===!0?e.jsx(c,{to:"cards"}):i?e.jsx(c,{to:"dashboard"}):U?e.jsx(c,{to:"checking"}):f?e.jsx(c,{to:"treasury"}):V?e.jsx(c,{to:"cards"}):o?e.jsx(c,{to:"bills"}):S?e.jsx(c,{to:"reimbursements"}):e.jsx(c,{to:"dashboard"}),D=({isUserHasZeniAccountsAccess:i,isUserHasChargeCardAccess:U,isUserHasBillPayAccess:V,isUserHasReimbursementAccess:o,isUserHasTreasuryAccess:S,isTenantBankingOnly:f,tenantEmailDomain:O})=>f===!0||i?e.jsx(Hn,{tenantEmailDomain:O}):S?e.jsx(Un,{tenantEmailDomain:O}):U?e.jsx(Rn,{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`}),Hn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/checking`}),Rn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/cards`}),De=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/dashboard`});export{D as FallBackRoute,wn as default};
@@ -1,9 +0,0 @@
1
- import{j as s}from"./liveblocks-yYJhhlwl.js";import{a}from"./sentry-CbgVFeom.js";import{h as c,u as m,j as p,N as g}from"./core-Bycbr_zS.js";import{z as f,w as y,t as h,d,f as b}from"./index-CkPLyKrL.js";import{fL as I,fM as x,IE as w}from"./zeni-epic-state-CIfm8mou.js";import{n as j}from"./mui-uwIb-0_u.js";import"./recharts-DgZ04ot6.js";import"./analytics-BMapadfi.js";import"./plaid-BtVuBiv6.js";import"./dnd-Jwp37Hwc.js";import"./stripe-DMRn4zHo.js";import"./lottie-CQftbn5o.js";import"./lexical-BFKF8Nqm.js";import"./pdf-Clano961.js";import"./utils-CUNvYJ5h.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]="d4164945-5231-40f4-a374-8f913310e2e0",e._sentryDebugIdIdentifier="sentry-dbid-d4164945-5231-40f4-a374-8f913310e2e0")}catch{}})();function q(){const e=c(),t=m(),i=p(),n=a.useRef(!1),l=f.isSignedIn(),r=t.state?.message==="logout",o=r||l;return a.useEffect(()=>{o&&!n.current&&(n.current=!0,setTimeout(()=>{try{f.clearAll(),e(I()),e(x(!1)),w(),h.reset(),d.trackLogout(b.Event.logoutSuccess),d.resetUserIdentity()}catch(u){console.error("Error during sign out:",u)}finally{r||i("/signin/auth",{replace:!0})}},0))},[o,r]),o?s.jsx(E,{children:s.jsx(y,{fetchState:"In-Progress"})}):s.jsx(g,{to:"../",replace:!0})}const E=j.div`
2
- display: flex;
3
- height: 100vh;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- `;export{q as default};
@@ -1,9 +0,0 @@
1
- import{j as k}from"./liveblocks-yYJhhlwl.js";import{a as T}from"./sentry-CbgVFeom.js";import{j as x,h as A,u as j,g as G,l as N,k as R}from"./core-Bycbr_zS.js";import{z as $,a as v,p as K,y as U,d as _,f as z,cF as M,s as g,r as O}from"./index-CkPLyKrL.js";import{eN as V,Pn as B,Fs as C,Po as L,Pj as W,ET as S,Pp as q,EX as I,Ew as X,Ft as b,Pq as w,gC as H,Fi as J,Fn as Q,Fa as Y,F8 as Z,Fo as aa,F5 as ta,Pr as ea,Ps as sa,Pt as oa,Pu as p,e9 as na,Pv as la,Pw as ra}from"./zeni-epic-state-CIfm8mou.js";import{n as ia}from"./mui-uwIb-0_u.js";import{u as ca}from"./useAskAiCfoHostNavButtonProps-C7xPewG5.js";import{c as da}from"./useFetchSuggestedQuestionsWhenReady-DmtdISaY.js";import{M as ka}from"./MobileAppDrawer-BsEeVHGJ.js";import"./recharts-DgZ04ot6.js";import"./analytics-BMapadfi.js";import"./plaid-BtVuBiv6.js";import"./dnd-Jwp37Hwc.js";import"./stripe-DMRn4zHo.js";import"./lottie-CQftbn5o.js";import"./lexical-BFKF8Nqm.js";import"./pdf-Clano961.js";import"./utils-CUNvYJ5h.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="29ea01db-0cd8-453b-bd10-e80d119ddd70",t._sentryDebugIdIdentifier="sentry-dbid-29ea01db-0cd8-453b-bd10-e80d119ddd70")}catch{}})();const pa=ia.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: ${t=>t.theme.colors.grey4};
9
- `,ua=R(function(t,e){const o=B(t,e.isTaskTemplatesEnabled),{taskGroupId:c}=e,n=c!=null&&c!==""?{...o,taskGroupsWithTasksList:o.taskGroupsWithTasksList.map(l=>({...l,tasks:l.tasks.filter(r=>r.taskGroupIds.includes(c))})).filter(l=>l.tasks.length>0)}:o;return{taskListView:n,tagListView:W(t),localData:n.localData,isTaskTemplatesEnabled:e.isTaskTemplatesEnabled}},function(t,e){const{navigate:o,currentTenant:c,location:n,isTaskTemplatesEnabled:l}=e,{tenantEmailDomain:r}=c,{groupByKey:u}=e.uiState;return{onTaskManagementRowClick:a=>{const s=ma(r,a),d=g(n.state?.pathnameStackToGoBack,n.pathname);o(s,{state:{pathnameStackToGoBack:d}})},onReloadTasks:()=>{t(C(!0,l))},onNewTaskClick:()=>{if(e.localData.defaultTaskGroupId!=null){const a=y(r,e.localData.defaultTaskGroupId),s=g(n.state?.pathnameStackToGoBack,n.pathname);o(a,{state:{pathnameStackToGoBack:s,message:"comingFromTaskListPage"}})}},onColumnSortConfigChanged:(a,s)=>{t(w({uiState:{sortKey:a,sortOrder:s}}))},onFiltersChange:a=>{t(oa({filters:a}))},onSearchTextChanged:a=>{t(sa({searchText:a}))},onReloadCards:()=>{t(C(!0,l))},onBackClick:()=>{if(n.state?.message==="triggerBackClick"){const a=O(n.state?.pathnameStackToGoBack),s=a.poppedPathname??"../";o(s,{state:{pathnameStackToGoBack:a.newStack}})}else o("../")},updateLocalData:a=>{t(ea({localData:a}))},resetLocalData:()=>{t(L({taskGroupById:e.taskGroupState.taskGroupById}))},handleCreateGroup:a=>{t(ta(e.localData.newTaskGroupName,a))},assignGroupToTasks:a=>{t(Z(e.localData.selectedTaskIds,a,aa(e.uiState.groupByKey,a)))},onDeleteTaskGroup:a=>{t(Y(a))},onAddNewTaskToTaskGroup:a=>{if(e.localData.defaultTaskGroupId!=null){const s=Ta(u,a);t(S({taskDetailLocalData:s}));const d=y(r,e.uiState.groupByKey==="groupName"?a:e.localData.defaultTaskGroupId),f=g(n.state?.pathnameStackToGoBack,n.pathname);o(d,{state:{pathnameStackToGoBack:f,message:"comingFromTaskListPage"}})}},onDragNDrop:(a,s)=>{t(Q(e.localData.selectedTaskIds.length>0?e.localData.selectedTaskIds:[a],s))},onTaskGroupRename:(a,s)=>{t(J(a,s))},onTimeSpentUpdate:(a,s)=>{t(b({task:a,updates:s}))},onShowToast:a=>{t(H(a))},onGroupByFilterChange:a=>{t(w({uiState:{groupByKey:a}}))},updateTask:(a,s)=>{t(b({task:a,updates:s}))},onCreateTagClick:(a,s)=>{t(X(a,s))},handleGroupTemplateClick:a=>{t(I(a,[]))},handleGroupTemplateTaskClick:(a,s)=>{t(I(a,[s]))},handleNewTaskInitialization:a=>{if(t(S({taskDetailLocalData:{...q,name:a}})),e.localData.defaultTaskGroupId!=null){const s=y(r,e.localData.defaultTaskGroupId),d=g(n.state?.pathnameStackToGoBack,n.pathname);o(s,{state:{pathnameStackToGoBack:d,message:"comingFromTaskListPage"}})}},onTaskGroupNameClick:a=>{o(`/${r}/tasks/group/${a}`)}}})(M);function ja(){const t=x(),e=A(),o=j(),c=$.getSignedInUser(),n=G(i=>V(i)),{taskGroupId:l}=N(),{useFeatureGate:r}=v(),{isFeatureEnabled:u}=r(K.isTaskTemplatesEnabled),[a,s]=T.useState(!1),[d,f]=T.useState(!1),h=G(i=>B(i,u)),D=G(i=>i.taskGroupState),m=h.fetchState,{isAiCfoAccessEnabled:E,onAskAiCfoClick:F}=ca({mobileExploreReferrer:"Task Checklist"});if(da({isDataReady:m==="Completed"}),T.useEffect(()=>{a||(s(!0),e(C(!1,u)))},[a,e]),T.useEffect(()=>{m==="Completed"&&e(L({taskGroupById:D.taskGroupById}))},[m,D.taskGroupById]),c==null)throw Error("Can't access task list page without signing in...");return k.jsxs(k.Fragment,{children:[m==="Completed"?k.jsx(U,{analytics:_,onLoad:i=>(P=>P.trackPageLoaded(z.Event.taskListPage))(i)}):null,k.jsxs(pa,{children:[k.jsx(ka,{isAppContentDrawerOpen:d,handleDrawerToggle:i=>{f(i)}}),k.jsx(ua,{location:o,navigate:t,currentTenant:n,taskGroupId:l,taskGroupState:D,localData:h.localData,uiState:h.uiState,isTaskTemplatesEnabled:u,taskListFetchState:m,isAiCfoAccessEnabled:E,onAskAiCfoClick:F})]})]})}const ma=(t,e)=>`/${t}/tasks/${encodeURIComponent(e)}`,y=(t,e)=>`/${t}/tasks/new/${e}`,Ta=(t,e)=>{if(t==="assignee"){const o=e.split(",");return{...p.taskDetailLocalData,assignee:o}}if(t==="priority"){const o=na(e);return{...p.taskDetailLocalData,priority:o}}if(t==="status"){const o=la(e);return{...p.taskDetailLocalData,status:o}}if(t==="tag"){const o=e.split(",");return{...p.taskDetailLocalData,tagIds:o}}if(t==="dueDate"){const o=ra(e);return{...p.taskDetailLocalData,dueDate:o}}return{...p.taskDetailLocalData}};export{ja as default};
@@ -1,9 +0,0 @@
1
- import{j as s}from"./liveblocks-yYJhhlwl.js";import $ from"./NotFoundScreen-BnQ9IpWO.js";import{a as m}from"./sentry-CbgVFeom.js";import{j as z,h as V,u as _,l as A,g as f,N as O,k as R,n as q,o as u}from"./core-Bycbr_zS.js";import{$ as J,z as w,s as C,y as M,d as D,f as H,cE as Q,k as Z,ap as K,r as W}from"./index-CkPLyKrL.js";import{eN as G,Pj as P,EP as b,ED as X,Ff as Y,Pk as v,Pl as ee,Ez as ae,Ew as te,pE as se,ps as ne,j_ as oe,EJ as ie,Pm as re,EG as le,EU as ce,ET as de}from"./zeni-epic-state-CIfm8mou.js";import{n as me}from"./mui-uwIb-0_u.js";import{u as pe}from"./useInitialThreadRequest-DBrdowkN.js";import{M as ue}from"./MobileAppDrawer-BsEeVHGJ.js";import ke from"./TaskListScreen-DCK_sYz_.js";import"./recharts-DgZ04ot6.js";import"./analytics-BMapadfi.js";import"./plaid-BtVuBiv6.js";import"./dnd-Jwp37Hwc.js";import"./stripe-DMRn4zHo.js";import"./lottie-CQftbn5o.js";import"./lexical-BFKF8Nqm.js";import"./pdf-Clano961.js";import"./utils-CUNvYJ5h.js";import"./useAskAiCfoHostNavButtonProps-C7xPewG5.js";import"./useFetchSuggestedQuestionsWhenReady-DmtdISaY.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]="15ec37e1-f4aa-4912-89fa-6175de2c2886",e._sentryDebugIdIdentifier="sentry-dbid-15ec37e1-f4aa-4912-89fa-6175de2c2886")}catch{}})();const fe=R(function(e,t){const{location:n,taskGroupId:l}=t,d=v(e,t.taskId),c=G(e),i=l!=null?ee(e.taskGroupState,l):void 0,p=w.getSignedInUser(),a=c.tenantId,r={userId:p?.userId??"",sessionId:p?.zeniSessionId??"",tenantId:a??""},k=P(e);return{taskDetailSelectorView:d,authParams:r,isNewClicked:n.state?.message==="comingFromTaskListPage",filesEndPoint:K.fileMicroServiceBaseUrl,companyName:t.currentTenant.companyName,companyId:t.currentTenant.companyId,currentUrl:`${Z.appUrl}${t.location.pathname}`,tagListView:k,taskGroupName:l!=null&&i!=null&&i.isDefault===!1?i.name:void 0}},function(e,t){const{taskId:n,navigate:l,currentTenant:d,location:c,taskGroupId:i}=t,{tenantEmailDomain:p}=d;return{onSaveChangesToLocalStore:a=>{e(de({taskDetailLocalData:a,taskId:n}))},onSaveDetailClick:()=>{e(ce(n,i))},onArchiveTaskClick:()=>{t.taskId!=null&&e(le(t.taskId))},onDismissClick:()=>{if(c.state?.message==="triggerBackClick"){const a=W(c.state?.pathnameStackToGoBack),r=a.poppedPathname??"../../dashboard";l(r,{state:{pathnameStackToGoBack:a.newStack}})}else{const a=B(p),r=C(c.state?.pathnameStackToGoBack,c.pathname);l(a,{state:{pathnameStackToGoBack:r}})}e(re({taskId:n}))},onDeleteTaskClick:()=>{e(ie(n))},updateFilesEntity:a=>{e(oe({files:a}))},onDeleteFile:a=>{e(ne(a))},onEditFileName:(a,r)=>{e(se(a,r.split(".")[0]))},onReloadTaskDetailPage:()=>{e(b(!1,n))},onCreateTagClick:a=>{e(te(a,n))},onDeleteTagClick:a=>{e(ae(a,n))}}})(Q);function I(){const e=z(),t=V(),n=_(),l=J(),{taskId:d,taskGroupId:c}=A(),i=f(o=>G(o)),p=pe(i?.companyId),[a,r]=m.useState(!1),[k,F]=m.useState(!1),[S,L]=m.useState(!1),[x,N]=m.useState(!1),y=f(o=>P(o)),E=f(o=>o.taskGroupViewState.fetchState);m.useEffect(()=>{k||(F(!0),t(b(!1,d)))},[k,t]),m.useEffect(()=>{S||y.fetchState==="Completed"||(L(!0),t(X()))},[S,t,y.fetchState]),m.useEffect(()=>{x||E==="Completed"||(N(!0),t(Y()))},[x,t,E]);const T=f(o=>v(o,d)),g=T.fetchState,j=w.getSignedInUser();if(j==null)throw Error("Can't access task detail page without signing in...");if(g==="Error"&&T.error?.code===400){const{tenantEmailDomain:o}=i,h=B(o),U=C(n.state?.pathnameStackToGoBack,n.pathname);return s.jsx(O,{to:h,state:{pathnameStackToGoBack:U}})}return s.jsxs(s.Fragment,{children:[g==="Completed"?s.jsx(M,{analytics:D,onLoad:o=>(h=>h.trackPageLoaded(H.Event.taskDetailPage))(o)}):null,s.jsxs(ge,{children:[s.jsx(ue,{isAppContentDrawerOpen:a,handleDrawerToggle:o=>{r(o)}}),s.jsx(fe,{analytics:D,currentTenant:i,handleZeniLogoClick:()=>{l.toggle()},initialOpenThreadRequest:p,location:n,loggedInUser:j,navigate:e,taskGroupId:c,taskId:d,taskDetailFetchState:g})]})]})}const ge=me.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
- `,B=e=>`/${e}/tasks`;function ze(){return s.jsxs(q,{children:[s.jsx(u,{path:"/new",element:s.jsx(I,{})}),s.jsx(u,{path:"/new/:taskGroupId",element:s.jsx(I,{})}),s.jsx(u,{path:"/group/:taskGroupId",element:s.jsx(ke,{})}),s.jsx(u,{path:"/:taskId",element:s.jsx(I,{})}),s.jsx(u,{path:"*",element:s.jsx($,{})})]})}export{ze as default};
@@ -1 +0,0 @@
1
- import{j as t}from"./liveblocks-yYJhhlwl.js";import i from"./NotFoundScreen-BnQ9IpWO.js";import{T as r}from"./TransactionDetailScreen-DKG_MhFF.js";import"./sentry-CbgVFeom.js";import{n as d,o as e}from"./core-Bycbr_zS.js";import"./zeni-epic-state-CIfm8mou.js";import"./recharts-DgZ04ot6.js";import"./index-CkPLyKrL.js";import"./mui-uwIb-0_u.js";import"./analytics-BMapadfi.js";import"./plaid-BtVuBiv6.js";import"./dnd-Jwp37Hwc.js";import"./stripe-DMRn4zHo.js";import"./lottie-CQftbn5o.js";import"./lexical-BFKF8Nqm.js";import"./pdf-Clano961.js";import"./utils-CUNvYJ5h.js";import"./useAskAiCfoHostNavButtonProps-C7xPewG5.js";import"./useFetchSuggestedQuestionsWhenReady-DmtdISaY.js";import"./decodeURIComponentSafe-D8oY1hc9.js";import"./routePaths-CMggNZ1T.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-yYJhhlwl.js";import{a as l}from"./sentry-CbgVFeom.js";import{q as u,h,g as y,N as I}from"./core-Bycbr_zS.js";import{ID as w,eO as b,yY as x}from"./zeni-epic-state-CIfm8mou.js";import{z as f,w as j,F as S,G as D}from"./index-CkPLyKrL.js";import{n as c}from"./mui-uwIb-0_u.js";import"./recharts-DgZ04ot6.js";import"./analytics-BMapadfi.js";import"./plaid-BtVuBiv6.js";import"./dnd-Jwp37Hwc.js";import"./stripe-DMRn4zHo.js";import"./lottie-CQftbn5o.js";import"./lexical-BFKF8Nqm.js";import"./pdf-Clano961.js";import"./utils-CUNvYJ5h.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]="4c0958ee-ac1d-4e6e-9736-5ee5cb08e5a1",e._sentryDebugIdIdentifier="sentry-dbid-4c0958ee-ac1d-4e6e-9736-5ee5cb08e5a1")}catch{}})();const W=()=>{const[e]=u(),t=e.get("code")??"",s=e.get("state")??"",g=e.get("profileId")??"",[n,p]=l.useState(!1),a=h(),i=y(m=>w(m)),r=f.getSignedInUser(),d=f.getSignedInUserTenantWithId(s);if(r==null||d==null)return o.jsx(I,{to:"/signin/auth",replace:!0});if(r==null)throw Error("Can't access this page without signing in...");return b(r.userId,r.zeniSessionId,d?.tenantId),l.useEffect(()=>{n||(p(!0),a(x(t,g,s)))},[n,a]),i.fetchState==="Error"?o.jsx(E,{children:o.jsx(_,{children:i.error?.message??""})}):(i.fetchState==="Completed"&&window.close(),o.jsx(j,{fetchState:"In-Progress"}))},E=c.div`
2
- display: flex;
3
- width: 100%;
4
- height: 100vh;
5
- flex-direction: row;
6
- justify-content: center;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey5};
9
- `,_=c(D.LargeRegular)`
10
- display: flex;
11
- color: ${S.important};
12
- `;export{W as default};
@@ -1,9 +0,0 @@
1
- import{j as i}from"./liveblocks-yYJhhlwl.js";import{a as u}from"./sentry-CbgVFeom.js";import{j as x,h as C,u as N,l as $,g as p}from"./core-Bycbr_zS.js";import{HD as s,HC as j,NJ as v,eN as B,NK as D}from"./zeni-epic-state-CIfm8mou.js";import{q as T,ap as g,h as z,z as E,w as L,b_ as P,r as _}from"./index-CkPLyKrL.js";import{n as U}from"./mui-uwIb-0_u.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]="01f7909a-c7f9-483b-a2cd-6410b3bdbcd0",e._sentryDebugIdIdentifier="sentry-dbid-01f7909a-c7f9-483b-a2cd-6410b3bdbcd0")}catch{}})();const G=U.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=C(),d=T(),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,b]=u.useState(!1),h=z();u.useEffect(()=>{m||(b(!0),n(j(a??"",!1)))},[m,n]);const o=p(t=>v(t,a??"")),y=()=>{const t=_(l.state?.pathnameStackToGoBack),S=t.poppedPathname??"..";e(S,{state:{pathnameStackToGoBack:t.newStack}})},c=E.getSignedInUser(),r=p(t=>B(t)),I={userId:c?.userId??"",sessionId:c?.zeniSessionId??"",tenantId:r.tenantId??""},w=D(a??"")===!0?s:o.zeniAccountDetail?.accountLast4??"",k=r.company?.companyInfo.companyLegalName??r.companyName;if(c==null)throw Error("Can't access address page without signing in...");return o.fetchState!=="Completed"?i.jsx(L,{fetchState:"In-Progress",style:{backgroundColor:h.colors.grey5}}):i.jsx(G,{windowSize:d,children:i.jsx(P,{currentTenantCompanyName:k,statementListView:o,accountLast4:w,onBackClick:y,authParams:I,downloadEndPoint:f})})}export{V as Z};