@zeniai/web-app-ui 5.0.30-qa → 5.0.31-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-BB0IAnwd.js +1 -0
  2. package/dist/assets/{AddressScreen-B8yYVtsp.js → AddressScreen-B-XWLwJz.js} +2 -2
  3. package/dist/assets/{AiCfoScreen-D5DT92q0.js → AiCfoScreen-S4FQiHpO.js} +1 -1
  4. package/dist/assets/{BillPayApprovalRoutes-_Nn8XytY.js → BillPayApprovalRoutes-B1egU5zB.js} +1 -1
  5. package/dist/assets/{BillPayRoutes-DiOaEeiK.js → BillPayRoutes-8bl51LHZ.js} +1 -1
  6. package/dist/assets/{BusinessVerificationPageScreen-BSxQCdf9.js → BusinessVerificationPageScreen-DQnXkfU5.js} +1 -1
  7. package/dist/assets/{ChargeCardRoutes-BJ2OnWej.js → ChargeCardRoutes-wBqGCrgm.js} +1 -1
  8. package/dist/assets/CompanyPassportScreen-Z1md0y6m.js +1 -0
  9. package/dist/assets/ConnectionAuthScreen-NueGqJc8.js +11 -0
  10. package/dist/assets/CustomerOnboardingAuthScreen-WEhVBhWE.js +1 -0
  11. package/dist/assets/{CustomerOnboardingRoutes-D86yvZ_K.js → CustomerOnboardingRoutes-pf5KqaGk.js} +4 -4
  12. package/dist/assets/{DashboardRoutes-BctOjzJJ.js → DashboardRoutes-ByPd2kQs.js} +3 -3
  13. package/dist/assets/DefaultTenantHome-BmHfbGv-.js +1 -0
  14. package/dist/assets/{DomesticWireDetailScreen-C3zz9bDV.js → DomesticWireDetailScreen-B14sYeaV.js} +4 -4
  15. package/dist/assets/DrawerScreen-C5lqMVui.js +1 -0
  16. package/dist/assets/{EntityDetailRoutes-DUq6XgGD.js → EntityDetailRoutes-9ju-HCTE.js} +1 -1
  17. package/dist/assets/{ExpenseAutomationRoutes-btsHhwOD.js → ExpenseAutomationRoutes-IfNToeSv.js} +4 -4
  18. package/dist/assets/FeaturePreviewScreen-BMgGv_Zd.js +1 -0
  19. package/dist/assets/{MagicLinkRoutes-D7aOMYAN.js → MagicLinkRoutes-BWtSdEJS.js} +20 -20
  20. package/dist/assets/{MagicLinkSignInScreen-Bq3diFMJ.js → MagicLinkSignInScreen-D-9Ck5g5.js} +2 -2
  21. package/dist/assets/{MobileAppDrawer-GUj9NP-V.js → MobileAppDrawer-BQxVLh3h.js} +1 -1
  22. package/dist/assets/NotFoundScreen-Bj319KfG.js +1 -0
  23. package/dist/assets/{NotificationRoutes-DghvMnoi.js → NotificationRoutes-zfY6ukxB.js} +1 -1
  24. package/dist/assets/{PandLWithForecastRoutes-CNwOPqia.js → PandLWithForecastRoutes-BVpXwgEV.js} +1 -1
  25. package/dist/assets/PeopleRoutes-CU1FLJNc.js +22 -0
  26. package/dist/assets/{PerformanceRoutes-Bv-rHrzL.js → PerformanceRoutes-C-F4WMN5.js} +1 -1
  27. package/dist/assets/{Preview-CZ5D54Ln.js → Preview-D-dOsbtk.js} +1 -1
  28. package/dist/assets/{QBOConnectionScreen-Do6GcHOH.js → QBOConnectionScreen-4gKR6XoC.js} +1 -1
  29. package/dist/assets/ReferralListScreen-CIQmwFCE.js +5 -0
  30. package/dist/assets/{ReimbursementApprovalRoutes-CenENVF0.js → ReimbursementApprovalRoutes-Dv1IJorA.js} +1 -1
  31. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-Dhodo6pV.js → ReimbursementApprovalRuleDetailScreen-BlDyIeBa.js} +1 -1
  32. package/dist/assets/{ReimbursementRoutes-CvXWYXpX.js → ReimbursementRoutes-114cFaW9.js} +1 -1
  33. package/dist/assets/{ReportsRoutes-CPN53ZJI.js → ReportsRoutes-Ctjt_O1o.js} +1 -1
  34. package/dist/assets/{RewardsRoutes-B2N8pveX.js → RewardsRoutes-DckoH-ll.js} +1 -1
  35. package/dist/assets/ScreenRoutes-upY4g2Vi.js +2 -0
  36. package/dist/assets/{SettingsRoutes-CCYf0jwm.js → SettingsRoutes-BrnShKS4.js} +1 -1
  37. package/dist/assets/{SetupPagesScreen-DGmTfB64.js → SetupPagesScreen-Capra9ft.js} +5 -5
  38. package/dist/assets/{SignInScreen-B4i9v0jS.js → SignInScreen-CLtEbSjh.js} +1 -1
  39. package/dist/assets/SignOutScreen-BZ1h_EYe.js +9 -0
  40. package/dist/assets/TaskListScreen-lt_A09pK.js +9 -0
  41. package/dist/assets/{TaskRoutes-Jb7J6WB_.js → TaskRoutes-MwpHPco6.js} +1 -1
  42. package/dist/assets/TransactionDetailRoutes-BeyPKEa7.js +1 -0
  43. package/dist/assets/{TransactionDetailScreen-DnLY37QD.js → TransactionDetailScreen-52oOTE62.js} +2 -2
  44. package/dist/assets/{TransactionListRoutes-5wfVrF52.js → TransactionListRoutes-DeZA0UwC.js} +1 -1
  45. package/dist/assets/{TreasuryRoutes-Dcqd31uY.js → TreasuryRoutes-PyzmAhsI.js} +6 -6
  46. package/dist/assets/{VendorsRoutes-Cfx15kYZ.js → VendorsRoutes-DvGHQeaz.js} +18 -18
  47. package/dist/assets/WiseConfirmationScreen-DRYeu2ZQ.js +12 -0
  48. package/dist/assets/{ZeniAccountRoutes-CXU-kqQI.js → ZeniAccountRoutes-8l4BcOb0.js} +10 -10
  49. package/dist/assets/ZeniAccountStatementScreen-BUpGkUHU.js +9 -0
  50. package/dist/assets/{accountMappingHelper-BuBDUd0y.js → accountMappingHelper-BBTy6Dl6.js} +1 -1
  51. package/dist/assets/{analytics-CXvxIZdi.js → analytics-B-4kI5aZ.js} +1 -1
  52. package/dist/assets/{analyticsHelper-lS_UWv9a.js → analyticsHelper-B9vQdYAw.js} +1 -1
  53. package/dist/assets/{core-N7CPYDYo.js → core-BMqjFm_8.js} +1 -1
  54. package/dist/assets/{decodeURIComponentSafe-BRg86-e8.js → decodeURIComponentSafe-egTes0EJ.js} +1 -1
  55. package/dist/assets/{dnd-BJdF4dAe.js → dnd-BpZ9jXXU.js} +1 -1
  56. package/dist/assets/{empty-Xh23Dt4V.js → empty-Cc8MISoz.js} +1 -1
  57. package/dist/assets/{empty-ivMMehqG.js → empty-DgBo5O2j.js} +1 -1
  58. package/dist/assets/{emptyVideoElement-qJQU_1oZ.js → emptyVideoElement-C_vl52ej.js} +1 -1
  59. package/dist/assets/{epic-B59qfnft.js → epic-CUk-MsKI.js} +1 -1
  60. package/dist/assets/getLocaleForTenant-IZKRWLYU.js +1 -0
  61. package/dist/assets/{index-DwWYOOmV.js → index-6l9IJtY5.js} +1 -1
  62. package/dist/assets/{index-DR90_H3f.js → index-B1nNVK2x.js} +1 -1
  63. package/dist/assets/{index-DMAGHfZD.js → index-Baai4yEu.js} +1 -1
  64. package/dist/assets/{index-BGYa7wM7.js → index-C-WC9zcO.js} +1 -1
  65. package/dist/assets/{index-D4NJFPDg.js → index-DHCkjGMV.js} +2 -2
  66. package/dist/assets/{index-LdgTQxYG.js → index-DWhEk9kR.js} +9259 -9251
  67. package/dist/assets/{index-DIpLyfXI.js → index-T_lTSb9K.js} +1 -1
  68. package/dist/assets/{lexical-Bmj9x73b.js → lexical-BpJ6NvVW.js} +1 -1
  69. package/dist/assets/{liveblocks-CuuLovLj.js → liveblocks-BL82uaUB.js} +1 -1
  70. package/dist/assets/{lottie-DelpYGRl.js → lottie-C9I3xNMj.js} +1 -1
  71. package/dist/assets/{mui-Nnsyw35G.js → mui-BBgFxocq.js} +1 -1
  72. package/dist/assets/{pathToGoBack-35autqzA.js → pathToGoBack-7vAKTOya.js} +1 -1
  73. package/dist/assets/{pdf-Db4tsn59.js → pdf-D1g8XAVK.js} +3 -3
  74. package/dist/assets/{pdf-lib-B7TmZPq8.js → pdf-lib-Dic96SLf.js} +1 -1
  75. package/dist/assets/{plaid-B0yrp5RU.js → plaid-BF978JaN.js} +1 -1
  76. package/dist/assets/{pusher-BeLUfBMc.js → pusher-9fui6XyU.js} +1 -1
  77. package/dist/assets/{react-DQuAtIGV.js → react-Blo8bK-V.js} +1 -1
  78. package/dist/assets/{react-Bz6KpK1c.js → react-BwFYPs3Q.js} +1 -1
  79. package/dist/assets/{react-J9UyG_3m.js → react-CIux-mgk.js} +1 -1
  80. package/dist/assets/{react-CH9tfNyx.js → react-CnIImBRJ.js} +1 -1
  81. package/dist/assets/{react-C6xJrfdq.js → react-Ky1T-uwn.js} +1 -1
  82. package/dist/assets/{react-D8muHpk9.js → react-_KnKlAWQ.js} +1 -1
  83. package/dist/assets/{recharts-ClL8oIl2.js → recharts-CNaPDy7a.js} +1 -1
  84. package/dist/assets/{routePaths-9M_9tyIj.js → routePaths-Du7QTHFy.js} +1 -1
  85. package/dist/assets/{sentry-ElwAwfI4.js → sentry-TxGyOMmk.js} +1 -1
  86. package/dist/assets/{url-6L5KuS1P.js → url-koIkKyG9.js} +1 -1
  87. package/dist/assets/{url-CihgrT3C.js → url-wGZoJmgj.js} +1 -1
  88. package/dist/assets/useAskAiCfoHostNavButtonProps-DOnlne4U.js +1 -0
  89. package/dist/assets/{useDeviceId-B5IDPs1R.js → useDeviceId-CFf1cSOf.js} +1 -1
  90. package/dist/assets/useFetchSuggestedQuestionsWhenReady-BcLCvps4.js +1 -0
  91. package/dist/assets/{useInitialThreadRequest-uQv3PNHD.js → useInitialThreadRequest-CYdaNoua.js} +1 -1
  92. package/dist/assets/{utils-BenVS2u9.js → utils-DVwZ6SVx.js} +1 -1
  93. package/dist/assets/{withTransactionSidePanel-BPh2nU7i.js → withTransactionSidePanel-BcVBFV1R.js} +3 -3
  94. package/dist/assets/{zeni-epic-state-CYiHmIhw.js → zeni-epic-state-BEEtYoxL.js} +3 -3
  95. package/dist/index.html +1 -1
  96. package/package.json +2 -2
  97. package/dist/assets/AddressRoutes-BDVwnSnX.js +0 -1
  98. package/dist/assets/CompanyPassportScreen-DqCuwOfj.js +0 -1
  99. package/dist/assets/ConnectionAuthScreen-B-xd6A3q.js +0 -11
  100. package/dist/assets/CustomerOnboardingAuthScreen-KHV9lBb_.js +0 -1
  101. package/dist/assets/DefaultTenantHome-uV38fMx1.js +0 -1
  102. package/dist/assets/DrawerScreen-BtJNsxxv.js +0 -1
  103. package/dist/assets/FeaturePreviewScreen-CzbcQqnT.js +0 -1
  104. package/dist/assets/NotFoundScreen-DJKCZTPl.js +0 -1
  105. package/dist/assets/PeopleRoutes-BTd1nYfD.js +0 -22
  106. package/dist/assets/ReferralListScreen-uCiQYOhK.js +0 -5
  107. package/dist/assets/ScreenRoutes-CoHr230Q.js +0 -2
  108. package/dist/assets/SignOutScreen-B3VmuQ_9.js +0 -9
  109. package/dist/assets/TaskListScreen-Zs6Fzgtl.js +0 -9
  110. package/dist/assets/TransactionDetailRoutes-DySAJ-NN.js +0 -1
  111. package/dist/assets/WiseConfirmationScreen-BcugolM-.js +0 -12
  112. package/dist/assets/ZeniAccountStatementScreen-D_BrERYf.js +0 -9
  113. package/dist/assets/getLocaleForTenant-C2hP3WLv.js +0 -1
  114. package/dist/assets/useAskAiCfoHostNavButtonProps-DxSrWn97.js +0 -1
  115. package/dist/assets/useFetchSuggestedQuestionsWhenReady-uANUfjbc.js +0 -1
package/dist/index.html CHANGED
@@ -1 +1 @@
1
- <!DOCTYPE html><html lang="en"><head><meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate"><meta http-equiv="expires" content="0"><meta http-equiv="pragma" content="no-cache"><meta charset="UTF-8"><link rel="icon" type="image/svg+xml" href="/assets/favicon-D56XvgAH.ico"><meta name="ROBOTS" content="NOINDEX, NOFOLLOW"><meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1"><meta name="theme-color" content="#000000"><meta name="description" content="Zeni - Modern Finance Team For Startups"><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&family=Manrope:wght@200..800&display=swap"><link rel="apple-touch-icon" href="/assets/logo192-CqcTe-t4.png"><link rel="manifest" href="/assets/manifest-icT4lOF5.json"><title>Zeni - Modern Finance Team For Startups</title><script src="/theme-detect.js"></script><style>:root{--logo-color-from:#D4DCDD;--logo-color-to:#E9F0F0;--bar-color-from:#E9F0F0;--bar-color-to:#D4DCDD;--sidebar-bg:#F3F7F7;--main-bg:#FAFCFC;--divider-color:#D4DCDD}html{background-color:#f3f7f7}html[data-theme=dark]{background-color:#1b1c1c;--logo-color-from:#545B5C;--logo-color-to:#3E4343;--bar-color-from:#3E4343;--bar-color-to:#545B5C;--sidebar-bg:#1B1C1C;--main-bg:#202222;--divider-color:#545B5C}.app-shell-loader{position:fixed;inset:0;display:flex;background-color:var(--sidebar-bg);z-index:9999}.app-shell-sidebar{width:210px;flex-shrink:0;background-color:var(--sidebar-bg);padding:16px 16px 0;display:flex;flex-direction:column;gap:36px;border-right:1px solid var(--divider-color);box-sizing:border-box}.app-shell-sidebar-group{display:flex;flex-direction:column;gap:10px}.app-shell-bar{height:10px;border-radius:5px;background-color:var(--bar-color-from);animation:app-shell-bar-shimmer 1.6s linear infinite}.app-shell-navbar{height:56px;display:flex;flex-direction:row;border-bottom:1px solid var(--divider-color);padding:0 32px;align-items:center;justify-content:space-between;box-sizing:border-box}@keyframes app-shell-bar-shimmer{0%,100%{background-color:var(--bar-color-from)}50%{background-color:var(--bar-color-to)}}.app-shell-main{flex:1;background-color:var(--main-bg)}.app-shell-logo{display:inline-flex;width:100%;height:calc(100vh - 56px);justify-content:center;align-items:center}.app-shell-logo svg path{animation:app-shell-color-cycle 1.6s linear infinite}@keyframes app-shell-color-cycle{0%,100%{fill:var(--logo-color-from)}50%{fill:var(--logo-color-to)}}@media (max-width:899px){.app-shell-sidebar{display:none}.app-shell-main{background-color:var(--sidebar-bg)}}</style><noscript><style>.app-shell-loader{display:none}</style></noscript><script async type="module" crossorigin src="/assets/index-LdgTQxYG.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-ElwAwfI4.js"><link rel="modulepreload" crossorigin href="/assets/core-N7CPYDYo.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-CYiHmIhw.js"><link rel="modulepreload" crossorigin href="/assets/mui-Nnsyw35G.js"><link rel="modulepreload" crossorigin href="/assets/analytics-CXvxIZdi.js"><link rel="modulepreload" crossorigin href="/assets/utils-BenVS2u9.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-DWhEk9kR.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-TxGyOMmk.js"><link rel="modulepreload" crossorigin href="/assets/core-BMqjFm_8.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-BEEtYoxL.js"><link rel="modulepreload" crossorigin href="/assets/mui-BBgFxocq.js"><link rel="modulepreload" crossorigin href="/assets/analytics-B-4kI5aZ.js"><link rel="modulepreload" crossorigin href="/assets/utils-DVwZ6SVx.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.30-qa",
3
+ "version": "5.0.31-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.3",
31
31
  "@zeniai/client-epic-state": "5.0.15",
32
- "@zeniai/web-components": "4.0.34",
32
+ "@zeniai/web-components": "4.0.35",
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-CuuLovLj.js";import{A as d}from"./AddressScreen-B8yYVtsp.js";import i from"./NotFoundScreen-DJKCZTPl.js";import"./sentry-ElwAwfI4.js";import{n as s,o as r}from"./core-N7CPYDYo.js";import"./zeni-epic-state-CYiHmIhw.js";import"./recharts-ClL8oIl2.js";import"./index-LdgTQxYG.js";import"./mui-Nnsyw35G.js";import"./analytics-CXvxIZdi.js";import"./plaid-B0yrp5RU.js";import"./dnd-BJdF4dAe.js";import"./stripe-DMRn4zHo.js";import"./lottie-DelpYGRl.js";import"./lexical-Bmj9x73b.js";import"./pdf-Db4tsn59.js";import"./utils-BenVS2u9.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new t.Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="4bd15e18-5b5f-4be1-8d33-8bd696c76da2",t._sentryDebugIdIdentifier="sentry-dbid-4bd15e18-5b5f-4be1-8d33-8bd696c76da2")}catch{}})();function _(){return e.jsxs(s,{children:[e.jsx(r,{path:"/edit/:addressType/:addressId",element:e.jsx(d,{})}),e.jsx(r,{path:"/new/:addressType",element:e.jsx(d,{})}),e.jsx(r,{path:"*",element:e.jsx(i,{})})]})}export{_ as default};
@@ -1 +0,0 @@
1
- import{j as m}from"./liveblocks-CuuLovLj.js";import{a as g}from"./sentry-ElwAwfI4.js";import{j as w,h as x,u as k,l as T,g as O,k as E}from"./core-N7CPYDYo.js";import{z as C,b0 as F,y as P,c as L,f as V,aa as N,b1 as j,ao as A,ap as U,w as B}from"./index-LdgTQxYG.js";import{eN as h,fC as M,rx as _,fx as G,c0 as R,Lw as z,bn as Y,pF as $,pt as H,j$ as Z,lv as S,Lx as q,bC as J,cs as D,lD as K,lG as Q}from"./zeni-epic-state-CYiHmIhw.js";import"./mui-Nnsyw35G.js";import{c as W}from"./routePaths-9M_9tyIj.js";import{M as X}from"./MobileAppDrawer-GUj9NP-V.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="f009297e-c800-4930-8202-446008a6961a",t._sentryDebugIdIdentifier="sentry-dbid-f009297e-c800-4930-8202-446008a6961a")}catch{}})();const ee=E(function(t){const a=G(t),i=C.getSignedInUser(),l=h(t),c=l.tenantId,p={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:c??""},f=R(l?.userRole??[])&&a.localData.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",e=z(t.companyConfigState),n=t.countryListState?.byCountryListCode?.nationalityCountryList?.countries??[];return{isCompanyVerified:a.companyView?.company?.company?.companyBillPayInfo?.companyVerificationStatus?.code==="verified",companyPassportView:a,allIndustries:e.companyIndustries??[],allNationalityCountries:n,isDisabled:f,authParams:p,filesEndPoint:`${A.fileMicroServiceBaseUrl}`,isZeniUser:Y(i)}},function(t,a){const{companyId:i,currentTenant:l,navigate:c,location:p}=a,{tenantEmailDomain:f}=l;return{onScheduleClick:e=>{let n=e.href;n.includes("http")||(n="https://".concat(n)),window.open(n,"_blank")},onSaveAll:()=>{t(Q())},onAddressClick:e=>{const n=W(f,e),o=B(p.state?.pathnameStackToGoBack,p.pathname);c(n,{state:{pathnameStackToGoBack:o}})},onResetClick:()=>{t(K({companyId:i}))},onBackClick:()=>{c("../")},onCompanyDetailsChanged:e=>{const{companyInfo:n,incInfo:o,taxDetails:r,zeniFinanceTeam:d}=e,{website:u}=n,{meetingLink:y}=d,{incDate:s}=o,{taxesFiledYears:b}=r,v={companyInfo:{...n,website:u!=""&&u!=null?D(u):void 0,meetingLink:y!=""&&y!=null?D(y):void 0,industry:n.industry.selectedOption,companyIndustryType:n.companyIndustryType?.selectedOption??void 0,companySubIndustry:n.companySubIndustry?.selectedOption??void 0,businessModel:n.businessModel.selectedOption??"",companySourceOfFunds:n.companySourceOfFunds?.selectedOption,companySourceOfFundsDescription:n.companySourceOfFundsDescription??void 0,countriesOfOperations:n.countriesOfOperations?.selectedOptions?.map(I=>I.length===2?I:U(I))??[],transactionVolume:n.transactionVolume?.selectedOption??void 0,transactionVolumeDescription:n.transactionVolumeDescription??void 0,regulatedStatus:n.regulatedStatus??void 0,regulatedStatusDescription:n.regulatedStatusDescription??void 0,usNexus:n.usNexus??void 0,usNexusTypes:n.usNexusTypes?.selectedOptions??[],purposeOfAccount:n.purposeOfAccount?.selectedOption??void 0,purposeOfAccountDescription:n.purposeOfAccountDescription??void 0},incInfo:{typeOfInc:o.typeOfInc.selectedOption??"",stateOfInc:o.stateOfInc.selectedOption??"",incDate:s!=null?J(s?.toString()):s,fileId:o.fileIds[0]},taxDetails:{taxIdOrEIN:r.taxIdOrEIN,sicCode:r.sicCode,naicsCode:r.naicsCode,dunsNumber:r.dunsNumber,taxesFiledYears:b.selectedOptions.map(I=>parseInt(I)),fileId:r.fileIds[0]}};t(S({companyDetails:v}))},onPrimaryContactDetailsUpdated:e=>{t(S({primaryContact:{userId:e.userId,email:e.email.trim(),firstName:e.name.firstName,lastName:e.name.lastName}}))},onNewCompanyOfficerAdded:e=>{t(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:void 0}]}))},onNewCompanyOfficerRemoved:e=>{t(q(e))},onCompanyOfficerUpdated:e=>{t(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:e.userId}]}))},updateFilesEntity:e=>{t(Z({files:e}))},onDeleteFile:e=>{t(H(e))},onEditFileName:(e,n)=>{t($(e,n.split(".")[0]))}}})(j);function de(){const t=w(),a=x(),i=k(),{tenantEmailDomain:l}=T(),[c,p]=g.useState(!1),[f,e]=g.useState(!1),n=O(s=>s.companyViewState.passportView.fetchState),o=O(s=>s.companyConfigState.fetchState),r=O(s=>h(s)),d=r.companyId??C.getSignedInUserTenant(l)?.companyId;if(C.getSignedInUser()==null)throw Error("Can't access company details page without signing in...");g.useEffect(()=>{c||n!=="Not-Started"||d==null||(p(!0),a(M(d)))},[c,n,d,a]),g.useEffect(()=>{o==="Not-Started"&&a(_())},[o,a]);const u=s=>{e(s)},y=n==="Not-Started"||n==="In-Progress"||o==="Not-Started"||o==="In-Progress";return d!=null&&n==="Error"?m.jsx(F,{onGoHome:()=>t("../",{replace:!0}),onReload:()=>window.location.reload()}):m.jsxs(m.Fragment,{children:[m.jsx(P,{analytics:L,onLoad:s=>s.trackPageLoaded(V.Event.companyPassport,N(i)?"Settings":"Company Passport")}),N(i)?m.jsx(X,{isAppContentDrawerOpen:f,handleDrawerToggle:u}):null,m.jsx(ee,{companyId:d,navigate:t,location:i,isLoading:y,currentTenant:r,isSettings:N(i),onClickMenuIcon:()=>{u(!0)}})]})}export{de as C};
@@ -1,11 +0,0 @@
1
- import{j as C}from"./liveblocks-CuuLovLj.js";import{a}from"./sentry-ElwAwfI4.js";import{h as D,u as v,g as u,N as w}from"./core-N7CPYDYo.js";import{Ih as O,eN as A,fj as _,mm as j,fL as E,fi as L,eO as U,Io as F}from"./zeni-epic-state-CYiHmIhw.js";import{u as $,z as c,L as g,D as k,o as H}from"./index-LdgTQxYG.js";import{n as z}from"./mui-Nnsyw35G.js";import{t as R}from"./getLocaleForTenant-C2hP3WLv.js";import{g as P,Q as G}from"./QBOConnectionScreen-Do6GcHOH.js";import"./recharts-ClL8oIl2.js";import"./analytics-CXvxIZdi.js";import"./plaid-B0yrp5RU.js";import"./dnd-BJdF4dAe.js";import"./stripe-DMRn4zHo.js";import"./lottie-DelpYGRl.js";import"./lexical-Bmj9x73b.js";import"./pdf-Db4tsn59.js";import"./utils-BenVS2u9.js";import"./empty-Xh23Dt4V.js";import"./pdf-lib-B7TmZPq8.js";import"./index-BGYa7wM7.js";import"./url-CihgrT3C.js";import"./index-DIpLyfXI.js";import"./decodeURIComponentSafe-BRg86-e8.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new t.Error().stack;i&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[i]="6675bced-3101-4937-bc7b-af33a8cfa4e2",t._sentryDebugIdIdentifier="sentry-dbid-6675bced-3101-4937-bc7b-af33a8cfa4e2")}catch{}})();const Q=z.div`
2
- display: flex;
3
- flex: 1 1 auto;
4
- flex-direction: row;
5
- justify-content: center;
6
- align-items: center;
7
- width: 100%;
8
- height: 100vh;
9
- background-color: ${t=>t.theme.colors.background};
10
- box-shadow: ${t=>`0px 2px ${H.sp1} ${t.theme.colors.dropShadowNormal}`};
11
- `;function fe(){const t=D(),i=v(),{setLoading:d,clearAllLoading:b}=$(),f=a.useRef(!1),p=a.useRef(!1),{code:x,realmId:N,state:T}=P(i.search),y=x!==""&&N!==""&&T!=="",I=u(l=>O(l)),e=u(l=>A(l)),n=u(l=>l.tenantState.fetchState),r=u(l=>l.tenantState.activeTenantFetchState.fetchState),o=c.getSignedInUser(),m=c.getActiveTenantForUser()?.tenantId,s=e?.externalConnections?.fetchState,h=e?.externalConnections?.saveConnectionState,S=e.externalConnections?.accounting[0]?.isValid;return a.useLayoutEffect(()=>{d(g.CONNECTION_AUTH)},[d]),a.useEffect(()=>{f.current||o==null||m==null||(f.current=!0,n==="Completed"||r!=="Not-Started"&&r!=="Error"||(d(g.TENANT_FETCHING),t(_(o.userId,m))))},[f,n,d]),a.useEffect(()=>{e.tenantId==null&&!p.current&&o!=null&&(p.current=!0,!(m==null||m!=null&&(r==="Completed"||r==="Error"))||n!=="Not-Started"&&n!=="Error"||t(j(o.userId)))},[p,n,r]),a.useEffect(()=>{o==null||e?.tenantId==null||e.externalConnections!=null||n!=="Completed"&&r!=="Completed"||s==="In-Progress"||h!=="Error"||(d(g.CONNECTION_AUTH),t(E(o.userId,e.tenantId)))},[h]),a.useEffect(()=>{n!=="Completed"&&r!=="Completed"||o==null||e?.tenantId==null||(t(L(e.tenantId)),c.saveActiveTenantDomainForUser(e.tenantEmailDomain),U(o?.userId,o?.zeniSessionId,e.tenantId),k.updateAppLocaleID(R(F(e))),e.externalConnections!=null||n!=="Completed"&&r!=="Completed"||s==="In-Progress"||o==null||e==null||t(E(o.userId,e.tenantId)))},[n,r,s]),a.useEffect(()=>{I.tenantsCoreDetailsInOrder.length>0&&n==="Completed"&&c.saveSignedInUserTenants(I.tenantsCoreDetailsInOrder)},[I.tenantsCoreDetailsInOrder.length,n]),a.useEffect(()=>{n!=="Completed"&&n!=="Error"||r!=="Completed"&&r!=="Error"||s!=="Completed"&&s!=="Error"||b()},[n,r,s]),e==null||n!=="Completed"&&r!=="Completed"||s!=="Completed"?null:y||S===!1?C.jsx(Q,{children:C.jsx(G,{})}):C.jsx(w,{to:"/",replace:!0})}export{fe as default};
@@ -1 +0,0 @@
1
- import{j as d}from"./liveblocks-CuuLovLj.js";import{z as n}from"./index-LdgTQxYG.js";import{g as p}from"./QBOConnectionScreen-Do6GcHOH.js";import"./sentry-ElwAwfI4.js";import{u as a,N as i}from"./core-N7CPYDYo.js";import"./zeni-epic-state-CYiHmIhw.js";import"./recharts-ClL8oIl2.js";import"./mui-Nnsyw35G.js";import"./analytics-CXvxIZdi.js";import"./plaid-B0yrp5RU.js";import"./dnd-BJdF4dAe.js";import"./stripe-DMRn4zHo.js";import"./lottie-DelpYGRl.js";import"./lexical-Bmj9x73b.js";import"./pdf-Db4tsn59.js";import"./utils-BenVS2u9.js";import"./empty-Xh23Dt4V.js";import"./pdf-lib-B7TmZPq8.js";import"./index-BGYa7wM7.js";import"./url-CihgrT3C.js";import"./index-DIpLyfXI.js";import"./decodeURIComponentSafe-BRg86-e8.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 v}from"./liveblocks-CuuLovLj.js";import{a as u}from"./sentry-ElwAwfI4.js";import{h as y,g as b,k as w,u as A,N}from"./core-N7CPYDYo.js";import{Ih as k,eN as _,fj as U,Ii as L,mm as R,Ij as j}from"./zeni-epic-state-CYiHmIhw.js";import{u as z,z as f,L as T,t as S,D as O,b as $}from"./index-LdgTQxYG.js";import"./mui-Nnsyw35G.js";import{t as P}from"./getLocaleForTenant-C2hP3WLv.js";import"./recharts-ClL8oIl2.js";import"./analytics-CXvxIZdi.js";import"./plaid-B0yrp5RU.js";import"./dnd-BJdF4dAe.js";import"./stripe-DMRn4zHo.js";import"./lottie-DelpYGRl.js";import"./lexical-Bmj9x73b.js";import"./pdf-Db4tsn59.js";import"./utils-BenVS2u9.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]="4db9fc4c-2401-4b72-b102-b75e5e095755",t._sentryDebugIdIdentifier="sentry-dbid-4db9fc4c-2401-4b72-b102-b75e5e095755")}catch{}})();const Q=w(function(t){return{fetchState:t.tenantState.fetchState,activeTenantFetchState:t.tenantState.activeTenantFetchState.fetchState,currentTenant:_(t),tenantsInOrder:j(t).tenantsInOrder}})(function({fetchState:t,activeTenantFetchState:s,currentTenant:o,tenantsInOrder:h}){const r=A(),p=new URLSearchParams(r.search);if(o==null||t!=="Completed"&&s!=="Completed")return null;{let m="";const n=h.map(l=>l.tenantEmailDomain),i=r.state?.origin,a=r.state?.queryParams;let c=`../${o.tenantEmailDomain}`,d=null,e=!1,g=null,I=null;const C=E(r.pathname);if(C!=null)c=`../${o.tenantEmailDomain}/${C}`,m="comingFromV2UrlPath",C==="ai-cfo/explore"&&(d=p.get("question")?.replace(/^["']|["']$/g,"")??null,e=p.get("should_submit")==="true");else if(i!=null)if(n.reduce((l,F)=>l||i.split("/").find(D=>D===F)!=null,!1))c=i,i.includes("ai-cfo")&&a!=null&&(g=a.aiCfoRef??null,I=a.aiCfoEmailRefId??null);else{const l=E(i);l!=null?(c=`../${o.tenantEmailDomain}/${l}`,m="comingFromV2UrlPath",l==="ai-cfo/explore"&&a!=null&&(a.aiCfoQuestion!=null&&(d=a.aiCfoQuestion),a.aiCfoShouldSubmit==="true"&&(e=!0))):console.warn("Don't have access to previous path tenant!")}const x=$(c,p);return v.jsx(N,{to:x,replace:!0,state:{...r.state,origin:"",message:m,aiCfoInitialQuestion:d,aiCfoShouldSubmit:e,aiCfoRef:g,aiCfoEmailRefId:I}})}});function oe(){const t=y(),{setLoading:s,clearAllLoading:o}=z(),h=u.useRef(!1),r=u.useRef(!1),p=u.useRef(null),m=b(e=>k(e)),n=b(e=>e.tenantState.fetchState),i=b(e=>e.tenantState.error),a=b(e=>e.tenantState.activeTenantFetchState.fetchState),c=b(e=>_(e)),d=f.getSignedInUser();return u.useLayoutEffect(()=>{const e=f.getActiveTenantForUser()?.tenantId??null;p.current!==e&&(p.current=e,h.current=!1,r.current=!1,s(T.TENANT_FETCHING)),!h.current||a!=="Completed"&&a!=="Error"||(h.current=!1),!r.current||n!=="Completed"&&n!=="Error"||(r.current=!1)},[a,n]),u.useEffect(()=>{const e=f.getActiveTenantForUser()?.tenantId;h.current===!1&&d!=null&&e!=null&&S.shouldFetchActiveTenant(e)&&(h.current=!0,S.markActiveTenantFetchStarted(e),n==="Completed"||a!=="Not-Started"&&a!=="Error"||(s(T.TENANT_FETCHING),t(U(d.userId,e))))},[n,a,d,t]),u.useEffect(()=>{const e=f.getSignedInUser(),g=f.getActiveTenantForUser()?.tenantId,I=g==null||a==="Completed"||a==="Error";r.current===!1&&e!=null&&I&&S.shouldFetchAllTenants()&&(r.current=!0,S.markAllTenantsFetchStarted(),(n==="Not-Started"||n==="Error"&&!L(i))&&t(R(e.userId)))},[n,a,i,d,t]),u.useEffect(()=>{f.isSignedIn()&&n==="Completed"&&m.tenantsCoreDetailsInOrder.length>0&&(f.saveSignedInUserTenants(m.tenantsCoreDetailsInOrder),o())},[m.tenantsCoreDetailsInOrder,n]),u.useEffect(()=>{!f.isSignedIn()||n!=="Completed"&&a!=="Completed"||c==null||(O.updateAppLocaleID(P(c)),o())},[n,a,c]),v.jsx(Q,{})}const q=["dashboard/cash-balance","dashboard/card-balance","dashboard/operating-expenses","dashboard/revenue","dashboard/burn-rate","dashboard/cash-position","dashboard/top-expenses","dashboard/cash-in-cash-out","dashboard","reports","forecast","uncategorized-expense","uncategorized-income","missing-receipts","bills","cards/activate","cards","reimbursements","wise","checking","aicfo"],G={"dashboard/cash-balance":"dashboard/cash_balance","dashboard/card-balance":"dashboard/card_balance","dashboard/operating-expenses":"dashboard/operating_expenses","dashboard/revenue":"dashboard/revenue","dashboard/burn-rate":"dashboard/net_burn_or_income","dashboard/cash-position":"dashboard/cash_position","dashboard/top-expenses":"dashboard/top_expenses","dashboard/cash-in-cash-out":"dashboard/cash_in_cash_out",dashboard:"dashboard",reports:"reports",forecast:"forecast","uncategorized-expense":"transactions/uncategorized-expense","uncategorized-income":"transactions/uncategorized-income","missing-receipts":"transactions/missing-receipts",bills:"bills",reimbursements:"reimbursements","cards/activate":"cards/activate",cards:"cards",wise:"bills/wise/callback/link-account",checking:"checking",aicfo:"ai-cfo/explore"};function E(t){for(const s of q)if(t.toLocaleLowerCase().includes(s))return G[s]}export{oe as default};
@@ -1 +0,0 @@
1
- import{j as i}from"./liveblocks-CuuLovLj.js";import{K as f,E as l,h as c}from"./index-LdgTQxYG.js";import{D as b}from"./mui-Nnsyw35G.js";import"./sentry-ElwAwfI4.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]="17f0d6e8-f706-4c8b-a422-5c2bb595dd0f",e._sentryDebugIdIdentifier="sentry-dbid-17f0d6e8-f706-4c8b-a422-5c2bb595dd0f")}catch{}})();const p={drawerLeftMargin:new l(0,0,240)};function h(e){const{isOpen:r,drawerLeftMargin:o,children:t,onClose:s}=e,n=f(),d=o?.valuePx(n)??p.drawerLeftMargin.valuePx(n),a=c();return i.jsx(b,{anchor:"right",open:r,PaperProps:{style:{width:`calc(100% - ${d})`}},slotProps:{backdrop:{style:{backgroundColor:a.colors.black,opacity:.8,cursor:"pointer"}}},onClose:s,children:t})}export{h as D};
@@ -1 +0,0 @@
1
- import{j as s}from"./liveblocks-CuuLovLj.js";import{a as r}from"./sentry-ElwAwfI4.js";import{Y as f,Z as i,_ as l,s as p}from"./index-LdgTQxYG.js";import"./mui-Nnsyw35G.js";import m from"./NotFoundScreen-DJKCZTPl.js";import{j as b,u}from"./core-N7CPYDYo.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]="d0c74fb7-089e-4af2-8e20-5bdcc955cbdf",e._sentryDebugIdIdentifier="sentry-dbid-d0c74fb7-089e-4af2-8e20-5bdcc955cbdf")}catch{}})();const j=()=>{const e=b(),t=u(),a=r.useCallback(()=>{window.open("https://www.zeni.ai/demo/request","_blank")},[]),d=r.useCallback(()=>{(()=>{const n=p(t.state?.pathnameStackToGoBack),c=n.poppedPathname??k();e(c,{state:{pathnameStackToGoBack:n.newStack}})})()},[]),o=f(t.pathname);return o!=null?s.jsx(i,{menuItem:l(o),onDemoClick:a,onGoBack:d}):s.jsx(m,{})},k=(e=2)=>{let t="../";for(let a=0;a<e;a++)t=`${t}../`;return t};export{j as F};
@@ -1 +0,0 @@
1
- import{j as e}from"./liveblocks-CuuLovLj.js";import{j as r,k as i}from"./core-N7CPYDYo.js";import{X as n}from"./index-LdgTQxYG.js";import"./mui-Nnsyw35G.js";import"./sentry-ElwAwfI4.js";import"./zeni-epic-state-CYiHmIhw.js";import"./recharts-ClL8oIl2.js";import"./analytics-CXvxIZdi.js";import"./plaid-B0yrp5RU.js";import"./dnd-BJdF4dAe.js";import"./stripe-DMRn4zHo.js";import"./lottie-DelpYGRl.js";import"./lexical-Bmj9x73b.js";import"./pdf-Db4tsn59.js";import"./utils-BenVS2u9.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]="08a1fb90-c2ee-45d3-8148-a56dffb2c13c",o._sentryDebugIdIdentifier="sentry-dbid-08a1fb90-c2ee-45d3-8148-a56dffb2c13c")}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,22 +0,0 @@
1
- import{j as s}from"./liveblocks-CuuLovLj.js";import{J3 as oe,eN as q,jr as G,eT as Q,eR as ie,GE as Y,IH as re,sK as ke,J4 as X,sy as Pe,sT as je,sN as le,sC as de,sR as Te,sO as Le,J5 as ce,uo as ve,J6 as Fe,fx as Oe,J7 as J,sH as pe,sF as ue,sW as Ae,c0 as Re}from"./zeni-epic-state-CYiHmIhw.js";import{K as me,p as ee,l as E,z as W,a4 as ge,H as fe,af as he,ag as Ve,E as Ce,o as O,J as ye,D as be,ah as Ue,O as Be,N as Ze,y as $e,c as we,f as He,w as Je,ai as _e,j as ze}from"./index-LdgTQxYG.js";import{D as Se,n as K,S as De}from"./mui-Nnsyw35G.js";import te from"./NotFoundScreen-DJKCZTPl.js";import{a as l}from"./sentry-ElwAwfI4.js";import{h as se,l as Ge,g,j as We,u as Ke,k as Me,n as ne,o as H}from"./core-N7CPYDYo.js";import{u as Ne}from"./useAskAiCfoHostNavButtonProps-DxSrWn97.js";import{c as Xe}from"./useFetchSuggestedQuestionsWhenReady-uANUfjbc.js";import{M as qe}from"./MobileAppDrawer-GUj9NP-V.js";import"./recharts-ClL8oIl2.js";import"./analytics-CXvxIZdi.js";import"./plaid-B0yrp5RU.js";import"./dnd-BJdF4dAe.js";import"./stripe-DMRn4zHo.js";import"./lottie-DelpYGRl.js";import"./lexical-Bmj9x73b.js";import"./pdf-Db4tsn59.js";import"./utils-BenVS2u9.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]="2368fc7b-4c16-4183-8282-fa9d6fa09c02",e._sentryDebugIdIdentifier="sentry-dbid-2368fc7b-4c16-4183-8282-fa9d6fa09c02")}catch{}})();const Qe={overlayWidth:new Ce(100,100,48)},_=be.getLocalizedStrings().peoplePage.invitePage,Ye=({companyId:e,managersListView:n,companyPassportView:d,classListView:o,mode:f,isEditPeopleDrawerOpen:i,closeDrawerHandler:b})=>{const h=me(),u=se(),[A,R]=l.useState(!1),[k,w]=l.useState(!1),{userId:S}=Ge(),c=g(t=>oe(t)),m=g(t=>q(t)),D=g(t=>G(t)),{useFeatureGate:C}=ee(),{isFeatureEnabled:I}=C(E.isDebitCardFeatureEnabled),P=Q(I,m),L=ie(m),v=Y(m),V=re(m),U=!!m.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,x=!P&&D&&o.fetchState!=="Completed"||n.fetchState!=="Completed"||d.fetchState!=="Completed"||e==null;if(W.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const y=()=>{u(X()),b()},F=()=>{A===!0?w(!0):y()},B=d.companyView?.controllers?.map(t=>t.user),{isFeatureEnabled:Z}=C(E.isDepositAccountsFeatureEnabled),{isFeatureEnabled:$}=C(E.isChargeCardFeatureEnabled),p=ge(m,$,I),{isFeatureEnabled:j}=C(E.isTreasuryEnabled),T={peopleDetails:c,classList:o.classes,managersList:n.users,controllersList:B,mode:f,isZeniTenant:v,isAccountingClassesEnabled:D,isReimbursementDisabled:U===!1,isZeniAccountsDisabled:Z===!1,isChargeCardDisabled:p===!1,isTreasuryDisabled:j===!1,isLiteRoleDisabled:V===!1,isBankingOnlyTenant:P,isCardsOnlyTenant:L,onResetClick:y,onDeleteUser:t=>{u(de(t.userId,t.userRole.userRoleId))},onPeopleLocalDataUpdated:t=>{u(le({peopleLocalData:t})),R(!0)},onSaveClick:()=>{u(f==="zeni_only"?Pe(e):je(v))},onCloseClick:F,isLoading:x||c.person==null},r={onOkClick:()=>{w(!1),y()},onCancelClick:()=>{w(!1)}};return l.useEffect(()=>{x===!1&&S!=null&&u(ke(S))},[x,S]),l.useEffect(()=>{c.updatePersonState.fetchState==="Completed"&&y()},[c.updatePersonState.fetchState]),s.jsx(Se,{anchor:"right",open:i,PaperProps:{style:{width:Qe.overlayWidth.valuePercentage(h),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:fe.overlayDark,cursor:"pointer"}}},onClose:F,children:s.jsxs(es,{onClick:t=>t.stopPropagation(),children:[k===!0?s.jsx(he,{titleComponent:s.jsx(xe,{children:_.discardTitle}),descriptionComponent:s.jsx(Ee,{children:_.discardDescription}),primaryButtonText:_.discard,secondaryButtonText:_.no,action:r,isEditPopup:!0}):null,s.jsx(Ve,{...T})]})})},es=K(De)`
2
- display: flex;
3
- min-height: 100%;
4
- flex-direction: column;
5
- `,xe=K(ye.H6Regular)`
6
- margin-top: ${O.sp7};
7
- padding-left: ${O.sp8};
8
- padding-right: ${O.sp8};
9
- color: ${e=>e.theme.colors.primary};
10
- word-break: break-word;
11
- `,Ee=K(ye.LargeRegularSp)`
12
- color: ${e=>e.theme.colors.hero};
13
- padding-left: ${O.sp8};
14
- padding-right: ${O.sp8};
15
- margin-bottom: 30px;
16
- margin-top: ${O.sp4};
17
- white-space: pre-line;
18
- `,ss={overlayWidth:new Ce(100,100,48)},z=be.getLocalizedStrings().peoplePage.invitePage,as=({companyId:e,managersListView:n,companyPassportView:d,classListView:o,mode:f,isInvitePeopleDrawerOpen:i,closeDrawerHandler:b})=>{const h=me(),u=se(),[A,R]=l.useState(!1),[k,w]=l.useState(!1),S=g(r=>oe(r)),c=g(r=>q(r)),m=g(r=>G(r)),{useFeatureGate:D}=ee(),{isFeatureEnabled:C}=D(E.isDebitCardFeatureEnabled),I=Q(C,c),P=ie(c),L=Y(c),v=re(c),V=!!c.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,U=!I&&m&&o.fetchState!=="Completed"||n.fetchState!=="Completed"||d.fetchState!=="Completed"||e==null;if(W.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const x=()=>{b(),u(X())},y=()=>{A===!0?w(!0):x()},F={onOkClick:()=>{w(!1),x()},onCancelClick:()=>{w(!1)}},B=d.companyView?.controllers.map(r=>r.user),{isFeatureEnabled:Z}=D(E.isDepositAccountsFeatureEnabled),{isFeatureEnabled:$}=D(E.isChargeCardFeatureEnabled),p=ge(c,$,C),{isFeatureEnabled:j}=D(E.isTreasuryEnabled),T={classList:o.classes,managersList:n.users,controllersList:B,mode:f,isZeniTenant:L,onPeopleLocalDataUpdated:r=>{u(le({peopleLocalData:r})),R(!0)},onResetClick:x,onSaveClick:()=>{u(f==="zeni_only"?Te(e):Le())},onCloseClick:y,peopleDetails:S,isAccountingClassesEnabled:m,isReimbursementDisabled:V===!1,isLiteRoleDisabled:v===!1,isZeniAccountsDisabled:Z===!1,isChargeCardDisabled:p===!1,isTreasuryDisabled:j===!1,isBankingOnlyTenant:I,isCardsOnlyTenant:P,isLoading:U};return l.useEffect(()=>{S.invitePersonState.fetchState==="Completed"&&(b(),u(X()))},[S.invitePersonState.fetchState]),s.jsx(Se,{anchor:"right",open:i,PaperProps:{style:{width:ss.overlayWidth.valuePercentage(h),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:fe.overlayDark,cursor:"pointer"}}},onClose:y,children:s.jsxs(ts,{onClick:r=>r.stopPropagation(),children:[k===!0?s.jsx(he,{titleComponent:s.jsx(xe,{children:z.discardTitle}),descriptionComponent:s.jsx(Ee,{children:z.discardDescription}),primaryButtonText:z.discard,secondaryButtonText:z.no,action:F}):null,s.jsx(Ue,{...T})]})})},ts=K(De)`
19
- display: flex;
20
- min-height: 100%;
21
- flex-direction: column;
22
- `,ns=Me(function(e,n){const d=ce(e),o=W.getSignedInUser();return{data:d,loggedinUserId:o?.userId??"",isZeniTenant:n.isZeniTenant===!0,shouldFetchClasses:n.shouldFetchClasses,isZeniAdminUser:o?.userEmailDomain==="zeni.ai"&&n.isZeni===!0,isAccountingClassesEnabled:G(e),analytics:we}},function(e,n){const{navigate:d,companyId:o,shouldFetchClasses:f}=n;return{personAction:{onPersonDelete:(i,b)=>{e(de(i,b))},onResendInvite:i=>{e(Ae(i))},onReloadPeople:()=>{e(pe()),e(ue(o,f))},onBackClick:()=>{d("../../")},onModeChange:i=>{e(J({mode:i,searchText:"",sortKey:"name",sortOrder:"ascending"}))},onSearchTextChanged:i=>{e(J({searchText:i}))}}}})(_e);function N({isInvitePeopleDrawerOpen:e,isEditPeopleDrawerOpen:n}){const d=We(),o=se(),f=Ke(),{areTenantIdsInSync:i}=Be(),b=W.getSignedInUser(),h=g(a=>q(a)),{useFeatureGate:u}=ee(),{isFeatureEnabled:A}=u(E.isDebitCardFeatureEnabled),R=g(a=>G(a)),k=!Q(A,h)&&R,w=Y(h),S=h?.tenantId,{tenantEmailDomain:c}=h,[m,D]=l.useState(!1),[C,I]=l.useState(!1),[P,L]=l.useState(!1),[v,V]=l.useState("off"),[U,x]=l.useState(!1),y=a=>{x(a)},{isAiCfoOpen:F,setIsAiCfoOpen:B}=Ze(),{isAiCfoAccessEnabled:Z,onAskAiCfoClick:$}=Ne({isAiCfoOpen:F,setIsAiCfoOpen:B,mobileExploreReferrer:"People"}),p=g(a=>ce(a));Xe({isDataReady:p.fetchState==="Completed"});const j=g(a=>ve(a.classState,a.classListState)),T=g(a=>Fe(a.userState,a.userRoleState,a.userListViewState,"manager")),r=g(a=>Oe(a)),t=h?.companyId;l.useEffect(()=>{m&&v===p.uiState.mode||!i||(o(J({searchText:"",sortKey:"name",sortOrder:"ascending"})),V(p.uiState.mode),D(!0),o(pe()))},[m,b,S,o,p.uiState.mode,i]),l.useEffect(()=>{t!=null&&i&&o(ue(t,k))},[t,k,i]),l.useEffect(()=>{I(e!=null&&e===!0),L(n!=null&&n===!0&&n)},[e,n]),l.useEffect(()=>{o(J({searchText:"",sortKey:"name",sortOrder:"ascending"}))},[]);const ae=()=>{I(!1),L(!1),d("../")};return s.jsxs(s.Fragment,{children:[p.fetchState==="Completed"?s.jsx($e,{analytics:we,onLoad:a=>a.trackPageLoaded(He.Event.members)}):null,C===!0?s.jsx(as,{closeDrawerHandler:ae,isInvitePeopleDrawerOpen:C,managersListView:T,companyPassportView:r,classListView:j,companyId:t,mode:p.uiState.mode}):null,P===!0?s.jsx(Ye,{closeDrawerHandler:ae,isEditPeopleDrawerOpen:P,managersListView:T,companyPassportView:r,classListView:j,companyId:t,mode:p.uiState.mode}):null,s.jsx(qe,{isAppContentDrawerOpen:U,handleDrawerToggle:y}),s.jsx(ns,{navigate:d,signedInUser:b,isZeni:h.isZeni,isZeniTenant:w,peopleUIState:p.uiState,companyId:t,shouldFetchClasses:k,classList:j,managersView:T,peopleView:p,onInvitePeopleClick:()=>{d("./new")},onColumnSortConfigChanged:(a,M)=>{o(J({sortKey:a,sortOrder:M}))},onRowClick:a=>{const M=`/${c}/people/${encodeURIComponent(a)}/edit`,Ie=Je(f.state?.pathnameStackToGoBack,f.pathname);d(M,{state:{pathnameStackToGoBack:Ie}})},onClickMenuIcon:()=>{y(!0)},isAiCfoAccessEnabled:Z,onAskAiCfoClick:$})]})}function Es(){const e=ze();return Re(e?.loggedInUserRole??[])?s.jsxs(ne,{children:[s.jsx(H,{path:"/",element:s.jsx(N,{})}),s.jsx(H,{path:"new",element:s.jsx(N,{isInvitePeopleDrawerOpen:!0})}),s.jsx(H,{path:":userId/edit",element:s.jsx(N,{isEditPeopleDrawerOpen:!0})}),s.jsx(H,{path:"*",element:s.jsx(te,{})})]}):s.jsx(ne,{children:s.jsx(H,{path:"*",element:s.jsx(te,{})})})}export{Es as default};
@@ -1,5 +0,0 @@
1
- import{j as t}from"./liveblocks-CuuLovLj.js";import{a as o}from"./sentry-ElwAwfI4.js";import{g as f,j as M,h as V,u as W,k as F}from"./core-N7CPYDYo.js";import{h as _,K as z,z as R,b2 as U,E as $,O as X,N as Z,y as q,c as l,f as G,a1 as J,b3 as K}from"./index-LdgTQxYG.js";import{eX as Q,eN as Y,Ly as I,Lz as ee,ts as ae,ti as g,eZ as re,bM as ne,tn as se,LA as te}from"./zeni-epic-state-CYiHmIhw.js";import{D as oe,e as ie,n as le,S as de}from"./mui-Nnsyw35G.js";import{u as ce}from"./useAskAiCfoHostNavButtonProps-DxSrWn97.js";import{c as fe}from"./useFetchSuggestedQuestionsWhenReady-uANUfjbc.js";import{M as ue}from"./MobileAppDrawer-GUj9NP-V.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]="d44c2327-2a89-451d-bf40-617d61d6c2b2",e._sentryDebugIdIdentifier="sentry-dbid-d44c2327-2a89-451d-bf40-617d61d6c2b2")}catch{}})();const pe={overlayWidth:new $(100,100,30)},we=({isReferralDrawerOpen:e,closeDrawerHandler:a})=>{const r=_(),n=z();if(R.getSignedInUser()==null)throw Error("Can't access How Referral works without signing in...");const i=()=>{a(!0)},u=f(d=>Q(d));return t.jsx(oe,{anchor:"right",open:e,PaperProps:{style:{width:pe.overlayWidth.valuePercentage(n),boxShadow:"none"}},slotProps:{backdrop:{style:{opacity:.75,backgroundColor:r.colors.black,cursor:"pointer"}}},onClose:()=>i(),children:t.jsx(ie,{in:e,direction:"left",children:t.jsx(ge,{onClick:d=>d.stopPropagation(),children:t.jsx(U,{onDismissClick:i,rewardsPlan:u.rewardsPlan})})})})},ge=le(de)`
2
- display: flex;
3
- min-height: 100%;
4
- flex-direction: column;
5
- `,P="refer-and-earn-status-update",ke=F(function(e){const a=I(e),r=e.referralViewState.rewardsPlanFetchState,n=ne([a,r]);return{inviteList:a.invitations,uiState:a.uiState,pendingBonus:a.pendingBonus,earnedBonus:a.earnedBonus,pendingReferrals:a.pendingReferrals,fetchState:n.fetchState,rewardsPlan:a.rewardsPlan}},function(e,a){const{navigate:r}=a;return{onColumnSortConfigChanged:(n,i)=>{e(te({sortOrder:i,sortkey:n}))},onInviteClick:()=>{l.trackRewardsPageClicked("invite via email"),r("../refer")},onHowItWorksClick:()=>{l.trackRewardsPageClicked("know more"),r("../how-it-works")},onResendInviteClick:n=>{l.trackRewardsPageClicked("resend invite"),e(se(n))},onBackClick:()=>{r("../",{relative:"path"})},onReloadInvitees:()=>{e(g(!0))},onCopyReferralLink:()=>{l.trackRewardsPageClicked("copy referral link")},onClickRefer:()=>{l.trackRewardsPageClicked("refer")},onEventReceived:n=>{n===P&&e(g(!0,!0))}}})(J(K));function Pe({isReferralDrawerOpen:e}){const a=M(),r=V(),n=W(),[i,u]=o.useState(!1),[d,x]=o.useState(!1),[D,A]=o.useState(!1),[k,C]=o.useState(!1),p=R.getSignedInUser(),h=f(s=>Y(s)),m=f(s=>I(s)),b=m.fetchState,w=f(s=>s.referralViewState.rewardsPlanFetchState),y=ee([m,w]),{areTenantIdsInSync:c}=X();o.useEffect(()=>{h?.rewardsLastViewedTime==null&&D===!1&&(r(ae()),A(!0))},[]),o.useEffect(()=>{!i&&b==="Not-Started"&&c&&(u(!0),r(g(!0)))},[b,r,c]),o.useEffect(()=>{!d&&w.fetchState==="Not-Started"&&c&&(x(!0),r(re(!0)))},[w,r,c]),o.useEffect(()=>{C(e!=null&&e===!0)},[e]);const[E,j]=o.useState(!1),v=s=>{j(s)},{isAiCfoOpen:O,setIsAiCfoOpen:L}=Z(),{isAiCfoAccessEnabled:T,onAskAiCfoClick:B}=ce({isAiCfoOpen:O,setIsAiCfoOpen:L,mobileExploreReferrer:"Rewards"});fe({isDataReady:y===!0});const N={events:p?.userId!=null?[`private-${p.userId}.${P}`]:[],eventCallback:(s,S,H)=>{H.onEventReceived(s)}};return t.jsxs(t.Fragment,{children:[y===!0?t.jsx(q,{analytics:l,onLoad:s=>(S=>{p!=null&&S.trackPageLoaded(G.Event.rewardsPageViewed)})(s)}):null,t.jsx(ue,{isAppContentDrawerOpen:E,handleDrawerToggle:v}),k===!0?t.jsx(we,{closeDrawerHandler:()=>{C(!1),a("..")},isReferralDrawerOpen:k}):null,t.jsx(ke,{location:n,navigate:a,currentTenant:h,onClickMenuIcon:()=>{v(!0)},isAiCfoAccessEnabled:T,onAskAiCfoClick:B,...N})]})}export{Pe as R};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardRoutes-BctOjzJJ.js","assets/sentry-ElwAwfI4.js","assets/core-N7CPYDYo.js","assets/zeni-epic-state-CYiHmIhw.js","assets/index-LdgTQxYG.js","assets/mui-Nnsyw35G.js","assets/analytics-CXvxIZdi.js","assets/utils-BenVS2u9.js","assets/withTransactionSidePanel-BPh2nU7i.js","assets/useAskAiCfoHostNavButtonProps-DxSrWn97.js","assets/useFetchSuggestedQuestionsWhenReady-uANUfjbc.js","assets/TransactionDetailScreen-DnLY37QD.js","assets/decodeURIComponentSafe-BRg86-e8.js","assets/routePaths-9M_9tyIj.js","assets/NotFoundScreen-DJKCZTPl.js","assets/analyticsHelper-lS_UWv9a.js","assets/CompanyPassportScreen-DqCuwOfj.js","assets/MobileAppDrawer-GUj9NP-V.js","assets/FeaturePreviewScreen-CzbcQqnT.js","assets/ReferralListScreen-uCiQYOhK.js","assets/index-Bc34frN_.css","assets/BillPayRoutes-DiOaEeiK.js","assets/AddressScreen-B8yYVtsp.js","assets/DomesticWireDetailScreen-C3zz9bDV.js","assets/useInitialThreadRequest-uQv3PNHD.js","assets/DrawerScreen-BtJNsxxv.js","assets/SetupPagesScreen-DGmTfB64.js","assets/BusinessVerificationPageScreen-BSxQCdf9.js","assets/BillPayApprovalRoutes-_Nn8XytY.js","assets/ReimbursementApprovalRuleDetailScreen-Dhodo6pV.js","assets/getLocaleForTenant-C2hP3WLv.js","assets/ReimbursementRoutes-CvXWYXpX.js","assets/ReimbursementApprovalRoutes-CenENVF0.js","assets/TransactionListRoutes-5wfVrF52.js","assets/ZeniAccountStatementScreen-D_BrERYf.js","assets/SettingsRoutes-CCYf0jwm.js","assets/accountMappingHelper-BuBDUd0y.js","assets/QBOConnectionScreen-Do6GcHOH.js","assets/empty-Xh23Dt4V.js","assets/index-BGYa7wM7.js","assets/url-CihgrT3C.js","assets/index-DIpLyfXI.js","assets/ReportsRoutes-CPN53ZJI.js","assets/ChargeCardRoutes-BJ2OnWej.js","assets/PeopleRoutes-BTd1nYfD.js","assets/ExpenseAutomationRoutes-btsHhwOD.js","assets/TreasuryRoutes-Dcqd31uY.js","assets/VendorsRoutes-Cfx15kYZ.js","assets/pathToGoBack-35autqzA.js","assets/ZeniAccountRoutes-CXU-kqQI.js","assets/AddressRoutes-BDVwnSnX.js","assets/PandLWithForecastRoutes-CNwOPqia.js","assets/CustomerOnboardingRoutes-D86yvZ_K.js","assets/TransactionDetailRoutes-DySAJ-NN.js","assets/EntityDetailRoutes-DUq6XgGD.js","assets/NotificationRoutes-DghvMnoi.js","assets/PerformanceRoutes-Bv-rHrzL.js","assets/RewardsRoutes-B2N8pveX.js","assets/TaskRoutes-Jb7J6WB_.js","assets/TaskListScreen-Zs6Fzgtl.js","assets/AiCfoScreen-D5DT92q0.js"])))=>i.map(i=>d[i]);
2
- import{_ as n,bn as os,eN as ls,eT as cs,eR as ds,eS as ms,fD as us,eP as _s,cN as Ee,cu as Es,f9 as As,cm as ps,bC as Is,bq as gs,fe as xs,v as Ts,Ik as hs,bv as js,Il as Us,bE as bs,fb as Ds,bD as Hs,bs as Rs,cO as ys,Im as fs,In as Cs,cK as vs,cM as Os,cL as Ps,ct as Fs,cz as Ls,mm as Ae,eO as pe,fN as Bs,fi as Ie,fK as ge,fL as xe,fj as ks}from"./zeni-epic-state-CYiHmIhw.js";import{j as e}from"./liveblocks-CuuLovLj.js";import{a as v}from"./sentry-ElwAwfI4.js";import{h as Vs,j as Ns,l as Ss,u as Ms,g as z,i as Te,N as c,n as Zs,o as t}from"./core-N7CPYDYo.js";import{h as ws,u as zs,z as D,p as Gs,a as $s,I as Ys,l as L,j as qs,L as B,D as he,t as _,P as Ws,c as X,d as l}from"./index-LdgTQxYG.js";import"./mui-Nnsyw35G.js";import{f as je}from"./analyticsHelper-lS_UWv9a.js";import{t as Ks}from"./getLocaleForTenant-C2hP3WLv.js";import"./recharts-ClL8oIl2.js";import"./analytics-CXvxIZdi.js";import"./plaid-B0yrp5RU.js";import"./dnd-BJdF4dAe.js";import"./stripe-DMRn4zHo.js";import"./lottie-DelpYGRl.js";import"./lexical-Bmj9x73b.js";import"./pdf-Db4tsn59.js";import"./utils-BenVS2u9.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]="67fdbeab-235c-4a40-b90a-06891999c6e1",i._sentryDebugIdIdentifier="sentry-dbid-67fdbeab-235c-4a40-b90a-06891999c6e1")}catch{}})();const Js={dashboard:()=>n(()=>import("./DashboardRoutes-BctOjzJJ.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-DiOaEeiK.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-CvXWYXpX.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-5wfVrF52.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,13,34,20])),settings:()=>n(()=>import("./SettingsRoutes-CCYf0jwm.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-CPN53ZJI.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,14,18,10,24,13,17,20])),chargeCards:()=>n(()=>import("./ChargeCardRoutes-BJ2OnWej.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-BTd1nYfD.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,14,9,10,17,20])),expenseAutomation:()=>n(()=>import("./ExpenseAutomationRoutes-btsHhwOD.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-Dcqd31uY.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-Cfx15kYZ.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-CXU-kqQI.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-CPN53ZJI.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,14,18,10,24,13,17,20]))),en=l(()=>n(()=>import("./AddressRoutes-BDVwnSnX.js"),__vite__mapDeps([50,1,2,3,22,4,5,6,7,14,20]))),sn=l(()=>n(()=>import("./PeopleRoutes-BTd1nYfD.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,14,9,10,17,20]))),nn=l(()=>n(()=>import("./PandLWithForecastRoutes-CNwOPqia.js"),__vite__mapDeps([51,1,2,3,4,5,6,7,14,18,9,10,24,13,17,20]))),an=l(()=>n(()=>import("./CustomerOnboardingRoutes-D86yvZ_K.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-Cfx15kYZ.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-DySAJ-NN.js"),__vite__mapDeps([53,1,2,3,14,4,5,6,7,11,9,10,12,13,20]))),Ue=l(()=>n(()=>import("./EntityDetailRoutes-DUq6XgGD.js"),__vite__mapDeps([54,1,2,3,4,5,6,7,12,8,9,10,11,13,20]))),on=l(()=>n(()=>import("./DashboardRoutes-BctOjzJJ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]))),be=l(()=>n(()=>import("./BillPayRoutes-DiOaEeiK.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-CCYf0jwm.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]))),De=l(()=>n(()=>import("./ReimbursementRoutes-CvXWYXpX.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-CXU-kqQI.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-Dcqd31uY.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-5wfVrF52.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,13,34,20]))),un=l(()=>n(()=>import("./ChargeCardRoutes-BJ2OnWej.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-DghvMnoi.js"),__vite__mapDeps([55,1,2,3,14,4,5,6,7,9,10,20]))),En=l(()=>n(()=>import("./PerformanceRoutes-Bv-rHrzL.js"),__vite__mapDeps([56,1,2,3,14,4,5,6,7,9,10,17,20]))),An=l(()=>n(()=>import("./ExpenseAutomationRoutes-btsHhwOD.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-B2N8pveX.js"),__vite__mapDeps([57,1,2,3,4,5,6,7,14,19,9,10,17,20]))),In=l(()=>n(()=>import("./TaskRoutes-Jb7J6WB_.js"),__vite__mapDeps([58,1,2,3,14,4,5,6,7,24,17,59,9,10,20]))),gn=l(()=>n(()=>import("./AiCfoScreen-D5DT92q0.js"),__vite__mapDeps([60,1,2,3,4,5,6,7,48,20]))),y=l(()=>n(()=>import("./NotFoundScreen-DJKCZTPl.js"),__vite__mapDeps([14,1,2,3,4,5,6,7,20]))),xn=l(()=>n(()=>import("./TaskListScreen-Zs6Fzgtl.js"),__vite__mapDeps([59,1,2,3,4,5,6,7,9,10,17,20])));function wn({setTenantEmailDomain:i}){const U=Vs(),V=Ns(),{tenantEmailDomain:o}=Ss(),N=ws().mode,{setLoading:f,clearAllLoading:O,clearLoading:Z}=zs(),R=D.getSignedInUserTenant(o)?.tenantId,h=D.getSignedInUser(),K=os(h),G=Ms(),[S,Re]=v.useState(!1),r=z(a=>ls(a)),{useFeatureGate:P}=Gs(),J=$s(),ye=Ys(),{isFeatureEnabled:fe}=P(L.isExpenseAutomationEnabled),{isFeatureEnabled:Ce}=P(L.isExpenseAutomationEnabledV2),ve=Ce||fe&&K,{isFeatureEnabled:Oe}=P(L.isDepositAccountsFeatureEnabled),{isFeatureEnabled:Pe}=P(L.isTreasuryEnabled),{isFeatureEnabled:Fe}=P(L.isChargeCardFeatureEnabled),{isFeatureEnabled:se}=P(L.isDebitCardFeatureEnabled),j=z(a=>a.tenantState.fetchState),A=z(a=>a.tenantState.activeTenantFetchState.fetchState),u=A==="Completed"||j==="Completed"?cs(se,r):void 0,$=A==="Completed"||j==="Completed"?ds(r):void 0,Le=A==="Completed"||j==="Completed"?ms(r):void 0,Be=Fe||se||!!Le||!!$||!!u,{isFeatureEnabled:ke}=P(L.isSettingsFeatureEnabled),{isFeatureEnabled:Ve}=P(L.isAiCfoFileUploadEnabled),Y=z(a=>us(a));if(o!=null){const a=D.getSignedInUserTenant(o);h!=null&&a!=null&&je(h,r,N)}const w={tenantId:R,userId:h?.userId,sessionId:h?.zeniSessionId},ne=_s(),E=qs(),Ne=r.company==null||E?.loggedInUserRoleMap!=null&&Ee(E.loggedInUserRole),Se=Es(E?.loggedInUserRoleMap),ae=v.useRef(!0),te=Te("/:tenantEmailDomain/onboarding/*")!==null,Q=Te("/:tenantEmailDomain/month_end_close_checks/review/:selectedTab/:selectedPeriod/*"),Me=z(a=>w.tenantId!=null?As(a,w.tenantId):void 0);v.useEffect(()=>{f(B.TENANT_FETCHING),i(o)},[o]),v.useEffect(()=>{if(Q!=null&&R!=null){const a=Q.params.selectedPeriod;if(a!=null){const b=a.split("-");if(b.length===2){const d=ps(Number(b[0])),s=Number(b[1]),m=Is(`01-${d<10?`0${d}`:d}-${s}`,he.getLocalizedStrings().dateFormat.analytics.DDDashMMDashYYYY),M=gs();m.isAfter(M,"month")===!1?U(xs(R,{month:d,year:s})):V("./month_end_close_checks/review")}}}},[Q,R]),v.useEffect(()=>{S||(Re(!0),f(B.TENANT_FETCHING)),ae.current?ae.current=!1:!Ts(ne,w)&&D.isSignedIn()&&(f(B.TENANT_FETCHING),function(a,b,d,s){if(pe(b?.userId,b?.zeniSessionId,a.tenantId),d(Bs(!0)),d(Ie(a.tenantId)),a.tenantId!=null&&_.clearTenant(a.tenantId),a.tenantId!=null){const m=D.getSignedInUserTenantWithId(a.tenantId);s&&he.updateAppLocaleID(Ks(s)),m?.tenantEmailDomain!=null&&D.saveActiveTenantDomainForUser(m?.tenantEmailDomain)}a.userId!=null?X.identify(a.userId,{tenant_id:a.tenantId}):X.resetUserIdentity()}(w,h,U,Me))},[w,ne,h,U,D]),v.useEffect(()=>{D.isSignedIn()&&(f(B.TENANT_FETCHING),function(a,b,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=D.getSignedInUserTenantWithId(s);W?.tenantEmailDomain!=null&&D.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&&(b==="Completed"||b==="Error");a==="Completed"||b!=="Not-Started"&&b!=="Error"||s==null||!_.shouldFetchActiveTenant(s)||(_.markActiveTenantFetchStarted(s),M(B.TENANT_FETCHING),k(ks(m.userId,s,m.zeniSessionId))),W&&(a==="Not-Started"||a==="Error")&&_.shouldFetchAllTenants()&&(_.markAllTenantsFetchStarted(),k(Ae(m.userId,m.zeniSessionId)))}}(j,A,r,R,h,f,U))},[R,A]),v.useEffect(()=>{D.isSignedIn()&&j==="Completed"&&Y.tenantsBaseInOrder.length>0&&(Z(B.TENANT_FETCHING),D.saveSignedInUserTenants(hs(Y.tenantsBaseInOrder)),h!=null&&je(h,r,N,void 0,Y.tenantsBaseInOrder))},[Y,j,r,h]),v.useEffect(()=>{A==="In-Progress"&&f(B.TENANT_FETCHING),A!=="Completed"&&A!=="Error"||(A==="Completed"&&R!=null?(O(),_.markActiveTenantFetchCompleted(R)):A==="Error"&&R!=null&&(_.markActiveTenantFetchFailed(R),Z(B.TENANT_FETCHING),Z(B.TENANT_SWITCHING))),j!=="Completed"&&j!=="Error"||(j==="Completed"?_.markAllTenantsFetchCompleted():j==="Error"&&_.markAllTenantsFetchFailed())},[A,j,R,S]);const ie=v.useRef(!1);v.useEffect(()=>{!ie.current&&A==="Completed"&&S&&(ie.current=!0,function(a=Qs,b=3e3){setTimeout(()=>{const d=s=>{if(s>=a.length)return;const m=a[s],M=Js[m];M!=null?M().then(()=>ee(()=>d(s+1))).catch(()=>ee(()=>d(s+1))):d(s+1)};ee(()=>d(0))},b)}())},[A,S]);const C=r?.userRole!=null&&js(r?.userRole),{isFeatureEnabled:Ze}=P(L.isReferralFeatureEnabled),we=r?.userRole!=null&&r.userRole.includes("charge_card_user"),ze=r?.userRole!=null&&r.userRole.includes("charge_card_admin"),F=r?.userRole!=null&&Ee(r.userRole),re=r?.company==null||r.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!C,oe=Be&&!C,Ge=Us(E?.loggedInUserRoleMap),$e=r.externalConnections?.accounting[0]?.isValid,le=r.company?.companyOnboardingInfo.isOnboardingCompleted,ce=r?.company==null||r.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!C,de=ce&&bs(E?.loggedInUserRoleMap),me=Oe&&!C,Ye=r.company!=null&&Ds(r.company),qe=Pe&&Ye===!0&&!C,We=re&&Hs(E?.loggedInUserRoleMap),Ke=oe&&Rs(E?.loggedInUserRoleMap),Je=me&&ys(E?.loggedInUserRoleMap),Qe=fs(E?.loggedInUserRoleMap),Xe=Cs(E?.loggedInUserRoleMap),p=vs(E?.loggedInUserRoleMap),I=Os(E?.loggedInUserRoleMap),g=Ps(E?.loggedInUserRoleMap),x=Fs(E?.loggedInUserRoleMap),T=Ls(E?.loggedInUserRoleMap),ue=re&&x,_e=ce&&T,es=me&&p,ss=qe&&I,ns=oe&&g,as=r.excludedResources?.resources?.find(a=>a.resource==="/invites")!=null||Se===!0||Ge===!0||Qe===!0||Xe===!0;return D.isSignedIn()?R==null?j==="Completed"?e.jsx(c,{to:"/",replace:!0,state:{...G.state,message:"...",origin:G.pathname}}):(h!=null&&j!=="In-Progress"&&U(Ae(h.userId,h.zeniSessionId)),null):A!=="In-Progress"&&A!=="Not-Started"||j==="Completed"?(le===!0||K&&!te)&&$e===!1&&u===!1&&$===!1?(i(void 0),e.jsx(c,{to:"/connection/auth",replace:!0})):!S||le!==!1||te||K?S&&r?.userRole&&u!=null&&$!=null&&o!=null&&Object.keys(E.loggedInUserRoleMap).length>0?e.jsx(Zs,{children:e.jsxs(t,{element:e.jsx(Ws,{}),children:[e.jsx(t,{path:"/",element:e.jsx(Tn,{isDashboardAccess:F,isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,isTenantCardsOnly:$})}),e.jsx(t,{path:"dashboard/*",element:F?e.jsx(on,{}):e.jsx(H,{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(H,{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(H,{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(H,{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(H,{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(H,{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(H,{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(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"tasks",element:e.jsx(xn,{})}),e.jsx(t,{path:"tasks/*",element:e.jsx(In,{})}),e.jsx(t,{path:"address/*",element:We||de||Je||Ke?e.jsx(en,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"checking/*",element:es?e.jsx(cn,{}):e.jsx(y,{})}),e.jsx(t,{path:"treasury/*",element:ss?e.jsx(dn,{}):e.jsx(y,{})}),e.jsx(t,{path:"performance",element:ye?e.jsx(En,{}):e.jsx(He,{tenantEmailDomain:o})}),e.jsx(t,{path:"month_end_close_checks/review/*",element:ve&&C===!1?e.jsx(An,{}):e.jsx(He,{tenantEmailDomain:o})}),e.jsx(t,{path:"notifications/*",element:e.jsx(_n,{})}),e.jsx(t,{path:"vendors/*",element:Ne?e.jsx(tn,{}):e.jsx(y,{})}),e.jsx(t,{path:"bill/*",element:ue?e.jsx(be,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"bills/*",element:ue?e.jsx(be,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reimbursement/*",element:_e?e.jsx(De,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reimbursements/*",element:_e?e.jsx(De,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"settings/*",element:ke?e.jsx(ln,{hasAdminLevelAccess:de}):e.jsx(y,{})}),e.jsx(t,{path:"cards/*",element:ns?e.jsx(un,{}):e.jsx(y,{})}),e.jsx(t,{path:"rewards/*",element:Ze?e.jsx(pn,{}):e.jsx(y,{})}),e.jsx(t,{path:"/ai-cfo",element:J?e.jsx(c,{to:"explore"}):e.jsx(y,{})}),e.jsx(t,{path:"/ai-cfo/",element:J?e.jsx(c,{to:"explore"}):e.jsx(y,{})}),e.jsx(t,{path:"/ai-cfo/:session_id",element:J?e.jsx(gn,{isFileUploadEnabled:Ve}):e.jsx(y,{})}),e.jsx(t,{path:"*",element:e.jsx(y,{})})]})}):null:(i(void 0),e.jsx(c,{to:"onboarding",replace:!0})):null:(console.warn("User logged out!!"),i(void 0),e.jsx(c,{to:"/signin/auth",replace:!0,state:{...G.state,message:"...",origin:G.pathname}}))}const Tn=({isDashboardAccess:i,isUserHasZeniAccountsAccess:U,isUserHasChargeCardAccess:V,isUserHasBillPayAccess:o,isUserHasReimbursementAccess:N,isUserHasTreasuryAccess:f,isTenantBankingOnly:O,isTenantCardsOnly:Z})=>O===!0&&U?e.jsx(c,{to:"checking"}):Z===!0?e.jsx(c,{to:"cards"}):i?e.jsx(c,{to:"dashboard"}):U?e.jsx(c,{to:"checking"}):f?e.jsx(c,{to:"treasury"}):V?e.jsx(c,{to:"cards"}):o?e.jsx(c,{to:"bills"}):N?e.jsx(c,{to:"reimbursements"}):e.jsx(c,{to:"dashboard"}),H=({isUserHasZeniAccountsAccess:i,isUserHasChargeCardAccess:U,isUserHasBillPayAccess:V,isUserHasReimbursementAccess:o,isUserHasTreasuryAccess:N,isTenantBankingOnly:f,tenantEmailDomain:O})=>f===!0||i?e.jsx(bn,{tenantEmailDomain:O}):N?e.jsx(Un,{tenantEmailDomain:O}):U?e.jsx(Dn,{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`}),bn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/checking`}),Dn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/cards`}),He=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/dashboard`});export{H as FallBackRoute,wn as default};
@@ -1,9 +0,0 @@
1
- import{j as s}from"./liveblocks-CuuLovLj.js";import{a as f}from"./sentry-ElwAwfI4.js";import{h as u,u as m,j as p,N as g}from"./core-N7CPYDYo.js";import{z as a,B as b,t as y,c,f as h}from"./index-LdgTQxYG.js";import{fM as I,fN as x,IF as j}from"./zeni-epic-state-CYiHmIhw.js";import{n as w}from"./mui-Nnsyw35G.js";import"./recharts-ClL8oIl2.js";import"./analytics-CXvxIZdi.js";import"./plaid-B0yrp5RU.js";import"./dnd-BJdF4dAe.js";import"./stripe-DMRn4zHo.js";import"./lottie-DelpYGRl.js";import"./lexical-Bmj9x73b.js";import"./pdf-Db4tsn59.js";import"./utils-BenVS2u9.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]="550cff08-f1bb-4f30-9764-13f517892b56",e._sentryDebugIdIdentifier="sentry-dbid-550cff08-f1bb-4f30-9764-13f517892b56")}catch{}})();function U(){const e=u(),t=m(),i=p(),n=f.useRef(!1),l=a.isSignedIn(),r=t.state?.message==="logout",o=r||l;return f.useEffect(()=>{o&&!n.current&&(n.current=!0,setTimeout(()=>{try{a.clearAll(),e(I()),e(x(!1)),j(),y.reset(),c.trackLogout(h.Event.logoutSuccess),c.resetUserIdentity()}catch(d){console.error("Error during sign out:",d)}finally{r||i("/signin/auth",{replace:!0})}},0))},[o,r]),o?s.jsx(v,{children:s.jsx(b,{fetchState:"In-Progress"})}):s.jsx(g,{to:"../",replace:!0})}const v=w.div`
2
- display: flex;
3
- height: 100vh;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- `;export{U as default};
@@ -1,9 +0,0 @@
1
- import{j as k}from"./liveblocks-CuuLovLj.js";import{a as m}from"./sentry-ElwAwfI4.js";import{j as N,h as j,u as R,g as G,l as $,k as v}from"./core-N7CPYDYo.js";import{N as O,z as K,p as U,l as _,y as z,c as M,f as V,cE as W,w as T,s as q}from"./index-LdgTQxYG.js";import{eN as Y,Po as B,Ft as y,Pp as L,Pk as H,EU as S,Pq as J,EY as I,Ex as Q,Fu as b,Pr as w,gD as X,Fj as Z,Fo as aa,Fb as ta,F9 as ea,Fp as sa,F6 as oa,Ps as na,Pt as ia,Pu as la,Pv as d,e9 as ra,Pw as ca,Px as pa}from"./zeni-epic-state-CYiHmIhw.js";import{n as ka}from"./mui-Nnsyw35G.js";import{u as da}from"./useAskAiCfoHostNavButtonProps-DxSrWn97.js";import{c as ua}from"./useFetchSuggestedQuestionsWhenReady-uANUfjbc.js";import{M as ma}from"./MobileAppDrawer-GUj9NP-V.js";import"./recharts-ClL8oIl2.js";import"./analytics-CXvxIZdi.js";import"./plaid-B0yrp5RU.js";import"./dnd-BJdF4dAe.js";import"./stripe-DMRn4zHo.js";import"./lottie-DelpYGRl.js";import"./lexical-Bmj9x73b.js";import"./pdf-Db4tsn59.js";import"./utils-BenVS2u9.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]="d7347260-731c-45ab-a8db-bd2d680dad15",t._sentryDebugIdIdentifier="sentry-dbid-d7347260-731c-45ab-a8db-bd2d680dad15")}catch{}})();const Ta=ka.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
- `,fa=v(function(t,e){const o=B(t,e.isTaskTemplatesEnabled),{taskGroupId:i}=e,n=i!=null&&i!==""?{...o,taskGroupsWithTasksList:o.taskGroupsWithTasksList.map(l=>({...l,tasks:l.tasks.filter(r=>r.taskGroupIds.includes(i))})).filter(l=>l.tasks.length>0)}:o;return{taskListView:n,tagListView:H(t),localData:n.localData,isTaskTemplatesEnabled:e.isTaskTemplatesEnabled}},function(t,e){const{navigate:o,currentTenant:i,location:n,isTaskTemplatesEnabled:l}=e,{tenantEmailDomain:r}=i,{groupByKey:f}=e.uiState;return{onTaskManagementRowClick:a=>{const s=ga(r,a),p=T(n.state?.pathnameStackToGoBack,n.pathname);o(s,{state:{pathnameStackToGoBack:p}})},onReloadTasks:()=>{t(y(!0,l))},onNewTaskClick:()=>{if(e.localData.defaultTaskGroupId!=null){const a=C(r,e.localData.defaultTaskGroupId),s=T(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(la({filters:a}))},onSearchTextChanged:a=>{t(ia({searchText:a}))},onReloadCards:()=>{t(y(!0,l))},onBackClick:()=>{if(n.state?.message==="triggerBackClick"){const a=q(n.state?.pathnameStackToGoBack),s=a.poppedPathname??"../";o(s,{state:{pathnameStackToGoBack:a.newStack}})}else o("../")},updateLocalData:a=>{t(na({localData:a}))},resetLocalData:()=>{t(L({taskGroupById:e.taskGroupState.taskGroupById}))},handleCreateGroup:a=>{t(oa(e.localData.newTaskGroupName,a))},assignGroupToTasks:a=>{t(ea(e.localData.selectedTaskIds,a,sa(e.uiState.groupByKey,a)))},onDeleteTaskGroup:a=>{t(ta(a))},onAddNewTaskToTaskGroup:a=>{if(e.localData.defaultTaskGroupId!=null){const s=Da(f,a);t(S({taskDetailLocalData:s}));const p=C(r,e.uiState.groupByKey==="groupName"?a:e.localData.defaultTaskGroupId),g=T(n.state?.pathnameStackToGoBack,n.pathname);o(p,{state:{pathnameStackToGoBack:g,message:"comingFromTaskListPage"}})}},onDragNDrop:(a,s)=>{t(aa(e.localData.selectedTaskIds.length>0?e.localData.selectedTaskIds:[a],s))},onTaskGroupRename:(a,s)=>{t(Z(a,s))},onTimeSpentUpdate:(a,s)=>{t(b({task:a,updates:s}))},onShowToast:a=>{t(X(a))},onGroupByFilterChange:a=>{t(w({uiState:{groupByKey:a}}))},updateTask:(a,s)=>{t(b({task:a,updates:s}))},onCreateTagClick:(a,s)=>{t(Q(a,s))},handleGroupTemplateClick:a=>{t(I(a,[]))},handleGroupTemplateTaskClick:(a,s)=>{t(I(a,[s]))},handleNewTaskInitialization:a=>{if(t(S({taskDetailLocalData:{...J,name:a}})),e.localData.defaultTaskGroupId!=null){const s=C(r,e.localData.defaultTaskGroupId),p=T(n.state?.pathnameStackToGoBack,n.pathname);o(s,{state:{pathnameStackToGoBack:p,message:"comingFromTaskListPage"}})}},onTaskGroupNameClick:a=>{o(`/${r}/tasks/group/${a}`)}}})(W);function $a(){const{isAiCfoOpen:t,setIsAiCfoOpen:e}=O(),o=N(),i=j(),n=R(),l=K.getSignedInUser(),r=G(c=>Y(c)),{taskGroupId:f}=$(),{useFeatureGate:a}=U(),{isFeatureEnabled:s}=a(_.isTaskTemplatesEnabled),[p,g]=m.useState(!1),[E,F]=m.useState(!1),D=G(c=>B(c,s)),h=G(c=>c.taskGroupState),u=D.fetchState,{isAiCfoAccessEnabled:P,onAskAiCfoClick:x}=da({isAiCfoOpen:t,setIsAiCfoOpen:e,mobileExploreReferrer:"Task Checklist"});if(ua({isDataReady:u==="Completed"}),m.useEffect(()=>{p||(g(!0),i(y(!1,s)))},[p,i]),m.useEffect(()=>{u==="Completed"&&i(L({taskGroupById:h.taskGroupById}))},[u,h.taskGroupById]),l==null)throw Error("Can't access task list page without signing in...");return k.jsxs(k.Fragment,{children:[u==="Completed"?k.jsx(z,{analytics:M,onLoad:c=>(A=>A.trackPageLoaded(V.Event.taskListPage))(c)}):null,k.jsxs(Ta,{children:[k.jsx(ma,{isAppContentDrawerOpen:E,handleDrawerToggle:c=>{F(c)}}),k.jsx(fa,{location:n,navigate:o,currentTenant:r,taskGroupId:f,taskGroupState:h,localData:D.localData,uiState:D.uiState,isTaskTemplatesEnabled:s,taskListFetchState:u,isAiCfoAccessEnabled:P,onAskAiCfoClick:x})]})]})}const ga=(t,e)=>`/${t}/tasks/${encodeURIComponent(e)}`,C=(t,e)=>`/${t}/tasks/new/${e}`,Da=(t,e)=>{if(t==="assignee"){const o=e.split(",");return{...d.taskDetailLocalData,assignee:o}}if(t==="priority"){const o=ra(e);return{...d.taskDetailLocalData,priority:o}}if(t==="status"){const o=ca(e);return{...d.taskDetailLocalData,status:o}}if(t==="tag"){const o=e.split(",");return{...d.taskDetailLocalData,tagIds:o}}if(t==="dueDate"){const o=pa(e);return{...d.taskDetailLocalData,dueDate:o}}return{...d.taskDetailLocalData}};export{$a as default};
@@ -1 +0,0 @@
1
- import{j as t}from"./liveblocks-CuuLovLj.js";import i from"./NotFoundScreen-DJKCZTPl.js";import{T as r}from"./TransactionDetailScreen-DnLY37QD.js";import"./sentry-ElwAwfI4.js";import{n as d,o as e}from"./core-N7CPYDYo.js";import"./zeni-epic-state-CYiHmIhw.js";import"./recharts-ClL8oIl2.js";import"./index-LdgTQxYG.js";import"./mui-Nnsyw35G.js";import"./analytics-CXvxIZdi.js";import"./plaid-B0yrp5RU.js";import"./dnd-BJdF4dAe.js";import"./stripe-DMRn4zHo.js";import"./lottie-DelpYGRl.js";import"./lexical-Bmj9x73b.js";import"./pdf-Db4tsn59.js";import"./utils-BenVS2u9.js";import"./useAskAiCfoHostNavButtonProps-DxSrWn97.js";import"./useFetchSuggestedQuestionsWhenReady-uANUfjbc.js";import"./decodeURIComponentSafe-BRg86-e8.js";import"./routePaths-9M_9tyIj.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-CuuLovLj.js";import{a as d}from"./sentry-ElwAwfI4.js";import{q as u,h,g as y,N as I}from"./core-N7CPYDYo.js";import{IE as b,eO as w,yZ as x}from"./zeni-epic-state-CYiHmIhw.js";import{z as l,B as j,H as S,J as E}from"./index-LdgTQxYG.js";import{n as g}from"./mui-Nnsyw35G.js";import"./recharts-ClL8oIl2.js";import"./analytics-CXvxIZdi.js";import"./plaid-B0yrp5RU.js";import"./dnd-BJdF4dAe.js";import"./stripe-DMRn4zHo.js";import"./lottie-DelpYGRl.js";import"./lexical-Bmj9x73b.js";import"./pdf-Db4tsn59.js";import"./utils-BenVS2u9.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]="d4358ec8-6848-4f51-93ff-8d709fbf63af",e._sentryDebugIdIdentifier="sentry-dbid-d4358ec8-6848-4f51-93ff-8d709fbf63af")}catch{}})();const R=()=>{const[e]=u(),t=e.get("code")??"",s=e.get("state")??"",p=e.get("profileId")??"",[n,c]=d.useState(!1),a=h(),i=y(m=>b(m)),r=l.getSignedInUser(),f=l.getSignedInUserTenantWithId(s);if(r==null||f==null)return o.jsx(I,{to:"/signin/auth",replace:!0});if(r==null)throw Error("Can't access this page without signing in...");return w(r.userId,r.zeniSessionId,f?.tenantId),d.useEffect(()=>{n||(c(!0),a(x(t,p,s)))},[n,a]),i.fetchState==="Error"?o.jsx(D,{children:o.jsx(_,{children:i.error?.message??""})}):(i.fetchState==="Completed"&&window.close(),o.jsx(j,{fetchState:"In-Progress"}))},D=g.div`
2
- display: flex;
3
- width: 100%;
4
- height: 100vh;
5
- flex-direction: row;
6
- justify-content: center;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey5};
9
- `,_=g(E.LargeRegular)`
10
- display: flex;
11
- color: ${S.important};
12
- `;export{R as default};
@@ -1,9 +0,0 @@
1
- import{j as c}from"./liveblocks-CuuLovLj.js";import{a as u}from"./sentry-ElwAwfI4.js";import{j as x,h as B,u as N,l as $,g as p}from"./core-N7CPYDYo.js";import{HE as s,HD as j,NK as v,eN as C,NL as D}from"./zeni-epic-state-CYiHmIhw.js";import{K as E,ao as g,h as L,z as T,B as z,bZ as P,s as U}from"./index-LdgTQxYG.js";import{n as _}from"./mui-Nnsyw35G.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]="afb5a217-3a08-4a90-b21b-0d6814f9e855",e._sentryDebugIdIdentifier="sentry-dbid-afb5a217-3a08-4a90-b21b-0d6814f9e855")}catch{}})();const G=_.div`
2
- display: flex;
3
- height: 100vh;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- `;function q(){const e=x(),n=B(),d=E(),l=N();let{accountId:a}=$(),f=`${g.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${a}`;a==null&&l.pathname.includes(`${s}/statements`)&&(a=s,f=`${g.bankingMicroServiceBaseUrl}/1.0/${s}`);const[m,b]=u.useState(!1),h=L();u.useEffect(()=>{m||(b(!0),n(j(a??"",!1)))},[m,n]);const o=p(t=>v(t,a??"")),y=()=>{const t=U(l.state?.pathnameStackToGoBack),S=t.poppedPathname??"..";e(S,{state:{pathnameStackToGoBack:t.newStack}})},r=T.getSignedInUser(),i=p(t=>C(t)),I={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:i.tenantId??""},w=D(a??"")===!0?s:o.zeniAccountDetail?.accountLast4??"",k=i.company?.companyInfo.companyLegalName??i.companyName;if(r==null)throw Error("Can't access address page without signing in...");return o.fetchState!=="Completed"?c.jsx(z,{fetchState:"In-Progress",style:{backgroundColor:h.colors.grey5}}):c.jsx(G,{windowSize:d,children:c.jsx(P,{currentTenantCompanyName:k,statementListView:o,accountLast4:w,onBackClick:y,authParams:I,downloadEndPoint:f})})}export{q as Z};
@@ -1 +0,0 @@
1
- import{n}from"./index-LdgTQxYG.js";import"./mui-Nnsyw35G.js";import"./sentry-ElwAwfI4.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]="8f615ada-cbf3-4f3b-9d44-87b6c97d7e87",e._sentryDebugIdIdentifier="sentry-dbid-8f615ada-cbf3-4f3b-9d44-87b6c97d7e87")}catch{}})();function f(e){if(e.companyLocaleInfo!=null&&e.companyLocaleInfo.languageCode.length>0&&e.companyLocaleInfo.companyIncCountryCode.length>0){const o=`${e.companyLocaleInfo.languageCode.toLowerCase()}-${e.companyLocaleInfo.companyIncCountryCode.toUpperCase()}`;return console.warn(`localeID ${o}`),n(o)??"en"}return"en"}export{f as t};
@@ -1 +0,0 @@
1
- import{a as p}from"./sentry-ElwAwfI4.js";import{K as d,a as m,w as u,R as b}from"./index-LdgTQxYG.js";import"./mui-Nnsyw35G.js";import{b as y}from"./useFetchSuggestedQuestionsWhenReady-uANUfjbc.js";import{j as k,u as g,l as h}from"./core-N7CPYDYo.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]="2f5c8349-2627-4404-9674-651aa60e5ce1",e._sentryDebugIdIdentifier="sentry-dbid-2f5c8349-2627-4404-9674-651aa60e5ce1")}catch{}})();function E(e){const{isAiCfoOpen:a,setIsAiCfoOpen:t,mobileExploreReferrer:n}=e,r=k(),o=g(),{tenantEmailDomain:s}=h(),f=d(),i=b(f),l=m();return{isAiCfoAccessEnabled:y()&&l&&!a,onAskAiCfoClick:p.useCallback(()=>{if(s!=null)if(i){const c=u(o.state?.pathnameStackToGoBack,o.pathname);r(`/${s}/ai-cfo/explore`,{state:{pathnameStackToGoBack:c,referrer:n}})}else t(!0)},[i,o.pathname,o.state,n,r,t,s])}}export{E as u};
@@ -1 +0,0 @@
1
- import{a as c}from"./sentry-ElwAwfI4.js";import{h as d,s as i}from"./core-N7CPYDYo.js";import{p as y,l as h,a as g,$ as m,O as C}from"./index-LdgTQxYG.js";import"./mui-Nnsyw35G.js";import{eK as l,hF as p}from"./zeni-epic-state-CYiHmIhw.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]="abc0ae48-dd55-49fa-a67d-32283c88de40",e._sentryDebugIdIdentifier="sentry-dbid-abc0ae48-dd55-49fa-a67d-32283c88de40")}catch{}})();function x(){const{useFeatureGate:e}=y(),{isFeatureEnabled:t}=e(h.isAiCfoNavButtonEnabled),n=g();return t&&n}function b(e,t){return e!=="Completed"&&e!=="In-Progress"&&!(e==="Error"&&!t)}function I(e){const{areTenantIdsInSync:t}=C(),n=g(),a=x();return t&&e&&a&&n}function _(e){const{pageContexts:t,canFetchSuggestedQuestions:n}=e,a=d(),s=i(),o=c.useRef(null);c.useEffect(()=>{const r=o.current===!1&&n===!0;if(o.current=n,n&&t!=null&&t.length!==0)for(const u of t){const f=l(s.getState(),u)?.fetchState;b(f,r)&&a(p({pageContext:u}))}},[n,a,t,s])}function S(e){(function(t){const{pageContext:n,canFetchSuggestedQuestions:a}=t,s=d(),o=i(),r=c.useRef(null);c.useEffect(()=>{const u=r.current===!1&&a===!0;if(r.current=a,n==null||!a)return;const f=l(o.getState(),n)?.fetchState;b(f,u)&&s(p({pageContext:n}))},[a,s,n,o])})({canFetchSuggestedQuestions:I(e.isDataReady),pageContext:e.pageContext})}function Q(e){S({pageContext:m(),isDataReady:e.isDataReady})}export{_ as a,x as b,Q as c,I as u};