@zeniai/web-app-ui 5.0.37-qa → 5.0.38-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 (116) hide show
  1. package/dist/assets/AddressRoutes-CFlzwdul.js +1 -0
  2. package/dist/assets/AddressScreen-Cw-dklU2.js +9 -0
  3. package/dist/assets/AiCfoScreen-CS983lgP.js +11 -0
  4. package/dist/assets/{BillPayApprovalRoutes-CKKK8nzV.js → BillPayApprovalRoutes-xlaTTs0C.js} +1 -1
  5. package/dist/assets/{BillPayRoutes-ClxPJYau.js → BillPayRoutes-D1VOPUoh.js} +1 -1
  6. package/dist/assets/{BusinessVerificationPageScreen-ClbKVZ4q.js → BusinessVerificationPageScreen-DkwOmH2q.js} +2 -2
  7. package/dist/assets/{ChargeCardRoutes-CT2hTbW7.js → ChargeCardRoutes-D3YURNcK.js} +8 -8
  8. package/dist/assets/{CompanyPassportScreen-DZXZytAs.js → CompanyPassportScreen-C9mXVXr2.js} +1 -1
  9. package/dist/assets/{ConnectionAuthScreen-CQReapd2.js → ConnectionAuthScreen-C5Rpfpbz.js} +1 -1
  10. package/dist/assets/CustomerOnboardingAuthScreen-7kd7LmmV.js +1 -0
  11. package/dist/assets/{CustomerOnboardingRoutes-Zo1WT_33.js → CustomerOnboardingRoutes-jyaMTpEJ.js} +3 -3
  12. package/dist/assets/{DashboardRoutes-CeeblOg8.js → DashboardRoutes-DOzvVzpe.js} +1 -1
  13. package/dist/assets/{DefaultTenantHome-kz5KRd1R.js → DefaultTenantHome-C1eNf6k6.js} +1 -1
  14. package/dist/assets/{DomesticWireDetailScreen-CpX5BmG1.js → DomesticWireDetailScreen-BtQ6Rgup.js} +3 -3
  15. package/dist/assets/DrawerScreen-DMCWWoqu.js +1 -0
  16. package/dist/assets/{EntityDetailRoutes-pdP2GSDI.js → EntityDetailRoutes-DYK4VtQ3.js} +1 -1
  17. package/dist/assets/{ExpenseAutomationRoutes-CAoTyN5w.js → ExpenseAutomationRoutes-B4M_VHfs.js} +3 -3
  18. package/dist/assets/FeaturePreviewScreen-C9nGcb2y.js +1 -0
  19. package/dist/assets/{MagicLinkRoutes-piHUDtnr.js → MagicLinkRoutes-R6EiOSCx.js} +18 -18
  20. package/dist/assets/MagicLinkSignInScreen-B9R6T5PL.js +12 -0
  21. package/dist/assets/{MobileAppDrawer-BvUTGun5.js → MobileAppDrawer-DuACKsl0.js} +1 -1
  22. package/dist/assets/NotFoundScreen-By6iX_AK.js +1 -0
  23. package/dist/assets/{NotificationRoutes-oHBgsceL.js → NotificationRoutes-CckRRzHX.js} +1 -1
  24. package/dist/assets/{PandLWithForecastRoutes-B--hnF7d.js → PandLWithForecastRoutes-Dlw30mT3.js} +1 -1
  25. package/dist/assets/PeopleRoutes-DoaUfpUb.js +22 -0
  26. package/dist/assets/PerformanceRoutes-pWHyN4NV.js +1 -0
  27. package/dist/assets/{Preview-0OZBAqqM.js → Preview-cHYFAIpu.js} +1 -1
  28. package/dist/assets/{QBOConnectionScreen-dgF5agJb.js → QBOConnectionScreen-DKGxKd0E.js} +1 -1
  29. package/dist/assets/{ReferralListScreen-DDmewN_s.js → ReferralListScreen-7JoEaSvx.js} +2 -2
  30. package/dist/assets/{ReimbursementApprovalRoutes-DlaVIlGg.js → ReimbursementApprovalRoutes-q_xqohRp.js} +1 -1
  31. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-Ce0sj4gb.js → ReimbursementApprovalRuleDetailScreen-DYUjSPeD.js} +1 -1
  32. package/dist/assets/{ReimbursementRoutes-DWm7bpvn.js → ReimbursementRoutes-nLXGYdhr.js} +4 -4
  33. package/dist/assets/{ReportsRoutes-Cef0LqxA.js → ReportsRoutes-cpKf6Nnv.js} +1 -1
  34. package/dist/assets/RewardsRoutes-eJMK01sJ.js +1 -0
  35. package/dist/assets/ScreenRoutes-gbWBIULy.js +2 -0
  36. package/dist/assets/{SettingsRoutes-BFdtOGt8.js → SettingsRoutes-5cOxrdTC.js} +4 -4
  37. package/dist/assets/{SetupPagesScreen-DFPSH2yT.js → SetupPagesScreen-sAZpJNGi.js} +5 -5
  38. package/dist/assets/{SignInScreen-B3Nk77Ex.js → SignInScreen-DPfGBdeh.js} +1 -1
  39. package/dist/assets/SignOutScreen-BsvCrb0A.js +9 -0
  40. package/dist/assets/{TaskListScreen-D_1MZmAs.js → TaskListScreen-BYNqXG0-.js} +2 -2
  41. package/dist/assets/TaskRoutes-DDPxg7CG.js +9 -0
  42. package/dist/assets/TransactionDetailRoutes-BVkzBZ86.js +1 -0
  43. package/dist/assets/{TransactionDetailScreen-CBUCmjK_.js → TransactionDetailScreen-B5lMAMSc.js} +2 -2
  44. package/dist/assets/{TransactionListRoutes-DDr_bJ4e.js → TransactionListRoutes-qyh1PD-Z.js} +1 -1
  45. package/dist/assets/{TreasuryRoutes-BO6dCt_n.js → TreasuryRoutes-DuPOO_Nm.js} +5 -5
  46. package/dist/assets/{VendorsRoutes-CfSSoVkN.js → VendorsRoutes-B7HHnZHh.js} +16 -16
  47. package/dist/assets/WiseConfirmationScreen-HWW7D6Im.js +12 -0
  48. package/dist/assets/{ZeniAccountRoutes-CmGrp9O1.js → ZeniAccountRoutes-DXp1wP2W.js} +10 -10
  49. package/dist/assets/ZeniAccountStatementScreen-kuKTdjdd.js +9 -0
  50. package/dist/assets/{accountMappingHelper-C1oqIREw.js → accountMappingHelper-L2gJ16H8.js} +1 -1
  51. package/dist/assets/{analytics-CoCgUkdF.js → analytics-DaGIvUkL.js} +1 -1
  52. package/dist/assets/{analyticsHelper-C_j_qJ0w.js → analyticsHelper-DPM8WM8o.js} +1 -1
  53. package/dist/assets/{core-NS68e-Ni.js → core-D5Hit8x-.js} +1 -1
  54. package/dist/assets/{decodeURIComponentSafe-D5FRXf4K.js → decodeURIComponentSafe-DDEb_ZPT.js} +1 -1
  55. package/dist/assets/{dnd-DVlS_Tzy.js → dnd-BWi02USV.js} +1 -1
  56. package/dist/assets/{empty-BiNS9m_P.js → empty-CEC058x9.js} +1 -1
  57. package/dist/assets/{empty-DF7aXQXC.js → empty-Dcm4EccV.js} +1 -1
  58. package/dist/assets/{emptyVideoElement-DGzLnm2U.js → emptyVideoElement-Cg1_5pdj.js} +1 -1
  59. package/dist/assets/{epic-wZTK_lKE.js → epic-DqLG1WPh.js} +1 -1
  60. package/dist/assets/getLocaleForTenant-BDiDnhsV.js +1 -0
  61. package/dist/assets/{index-CDvPQSM3.js → index-1TQnr6ma.js} +1 -1
  62. package/dist/assets/{index-B9YsHzvp.js → index-B51-hBP4.js} +1 -1
  63. package/dist/assets/{index-VoaIvcTR.js → index-Bv05727x.js} +1 -1
  64. package/dist/assets/{index-DmGMsEpS.js → index-BzkVYl7p.js} +2 -2
  65. package/dist/assets/{index-Da8Tk_yD.js → index-C7yI3-qS.js} +9622 -9621
  66. package/dist/assets/{index-DJbljk5M.js → index-CFTsy12u.js} +1 -1
  67. package/dist/assets/{index-CbjMDb0z.js → index-D7pxWynk.js} +1 -1
  68. package/dist/assets/{lexical-B0eQyeR8.js → lexical-yXjK_sjC.js} +1 -1
  69. package/dist/assets/{liveblocks-ZWx6HW-l.js → liveblocks-BPC8B-82.js} +1 -1
  70. package/dist/assets/{lottie-_frhG95Y.js → lottie-CgXU1WMN.js} +1 -1
  71. package/dist/assets/{mui-BOQqbf6o.js → mui-DW04nVBh.js} +1 -1
  72. package/dist/assets/{pathToGoBack-DRhY1Q1L.js → pathToGoBack-DqR4pfCe.js} +1 -1
  73. package/dist/assets/{pdf-B95TO9NA.js → pdf-D6P4p3u8.js} +4 -4
  74. package/dist/assets/{pdf-lib-V86wYVmQ.js → pdf-lib-CL8r24Xn.js} +1 -1
  75. package/dist/assets/{plaid-CLzwK82c.js → plaid-BnTbuxYK.js} +1 -1
  76. package/dist/assets/{pusher-D9J5RBRe.js → pusher-DqEBDOP6.js} +1 -1
  77. package/dist/assets/{react-D46Jc9tM.js → react-BgBQCF9f.js} +1 -1
  78. package/dist/assets/{react-CTJq9i8P.js → react-CJQgzcbn.js} +1 -1
  79. package/dist/assets/{react-B7BWTEc-.js → react-D-TJl3XF.js} +1 -1
  80. package/dist/assets/{react-CgARVw-H.js → react-D8etWraJ.js} +1 -1
  81. package/dist/assets/{react-C0kLWle-.js → react-DvihdbV2.js} +1 -1
  82. package/dist/assets/{react-BhK-yoa1.js → react-wL8RpiLQ.js} +1 -1
  83. package/dist/assets/{recharts-CYb8hS9h.js → recharts-BAxVJ6il.js} +1 -1
  84. package/dist/assets/{routePaths-Bf6rAHfg.js → routePaths-DpkdUp-r.js} +1 -1
  85. package/dist/assets/{sentry-C87w4Kip.js → sentry-CWaXw80H.js} +1 -1
  86. package/dist/assets/{url-v-sU7ae0.js → url-BFVr25rm.js} +1 -1
  87. package/dist/assets/{url-Byn9Qf_N.js → url-wSZ4fiLg.js} +1 -1
  88. package/dist/assets/useAskAiCfoHostNavButtonProps-COcfEAPF.js +1 -0
  89. package/dist/assets/{useDeviceId-Bj62U6Du.js → useDeviceId-CgooY8pH.js} +1 -1
  90. package/dist/assets/useFetchSuggestedQuestionsWhenReady-Dye8etNE.js +1 -0
  91. package/dist/assets/{useInitialThreadRequest-BJwiGLk9.js → useInitialThreadRequest-7gkW3kbz.js} +1 -1
  92. package/dist/assets/{utils-CLB_b-LB.js → utils-DjtfEx4B.js} +1 -1
  93. package/dist/assets/{withTransactionSidePanel-cogaIzEz.js → withTransactionSidePanel-BgPYSbeD.js} +1 -1
  94. package/dist/assets/{zeni-epic-state-DMGzDfBV.js → zeni-epic-state-CVuyWhoX.js} +6 -6
  95. package/dist/index.html +1 -1
  96. package/package.json +3 -3
  97. package/dist/assets/AddressRoutes-B6Sb6lwY.js +0 -1
  98. package/dist/assets/AddressScreen-C5I0t41r.js +0 -9
  99. package/dist/assets/AiCfoScreen-BTkHFWKw.js +0 -11
  100. package/dist/assets/CustomerOnboardingAuthScreen-M8chC2UF.js +0 -1
  101. package/dist/assets/DrawerScreen-CgPjqO1B.js +0 -1
  102. package/dist/assets/FeaturePreviewScreen-CLCXRQfk.js +0 -1
  103. package/dist/assets/MagicLinkSignInScreen-BnolmbYg.js +0 -12
  104. package/dist/assets/NotFoundScreen-DygsPbRQ.js +0 -1
  105. package/dist/assets/PeopleRoutes-B7LjAuLz.js +0 -22
  106. package/dist/assets/PerformanceRoutes-DLOSJ9mb.js +0 -1
  107. package/dist/assets/RewardsRoutes-w9CjVAA9.js +0 -1
  108. package/dist/assets/ScreenRoutes-BSCfk_8q.js +0 -2
  109. package/dist/assets/SignOutScreen-DvO8bofW.js +0 -9
  110. package/dist/assets/TaskRoutes-Cyo2C8QB.js +0 -9
  111. package/dist/assets/TransactionDetailRoutes-ndRs00Oo.js +0 -1
  112. package/dist/assets/WiseConfirmationScreen-DuBMVrg2.js +0 -12
  113. package/dist/assets/ZeniAccountStatementScreen-BF1mBDxj.js +0 -9
  114. package/dist/assets/getLocaleForTenant-BIPiDn9Z.js +0 -1
  115. package/dist/assets/useAskAiCfoHostNavButtonProps-4p-dajJC.js +0 -1
  116. package/dist/assets/useFetchSuggestedQuestionsWhenReady-Cr0f3fzA.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-Da8Tk_yD.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-C87w4Kip.js"><link rel="modulepreload" crossorigin href="/assets/core-NS68e-Ni.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-DMGzDfBV.js"><link rel="modulepreload" crossorigin href="/assets/mui-BOQqbf6o.js"><link rel="modulepreload" crossorigin href="/assets/analytics-CoCgUkdF.js"><link rel="modulepreload" crossorigin href="/assets/utils-CLB_b-LB.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-C7yI3-qS.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-CWaXw80H.js"><link rel="modulepreload" crossorigin href="/assets/core-D5Hit8x-.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-CVuyWhoX.js"><link rel="modulepreload" crossorigin href="/assets/mui-DW04nVBh.js"><link rel="modulepreload" crossorigin href="/assets/analytics-DaGIvUkL.js"><link rel="modulepreload" crossorigin href="/assets/utils-DjtfEx4B.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.37-qa",
3
+ "version": "5.0.38-dev",
4
4
  "files": [
5
5
  "dist/**/*"
6
6
  ],
@@ -28,8 +28,8 @@
28
28
  "@sentry/react": "^9.42.1",
29
29
  "@stripe/stripe-js": "^4.4.0",
30
30
  "@zeniai/client-analytics": "2.0.5",
31
- "@zeniai/client-epic-state": "5.0.19",
32
- "@zeniai/web-components": "4.0.43",
31
+ "@zeniai/client-epic-state": "5.0.22",
32
+ "@zeniai/web-components": "4.0.45",
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-ZWx6HW-l.js";import{A as d}from"./AddressScreen-C5I0t41r.js";import i from"./NotFoundScreen-DygsPbRQ.js";import"./sentry-C87w4Kip.js";import{n as s,o as r}from"./core-NS68e-Ni.js";import"./zeni-epic-state-DMGzDfBV.js";import"./recharts-CYb8hS9h.js";import"./index-Da8Tk_yD.js";import"./mui-BOQqbf6o.js";import"./analytics-CoCgUkdF.js";import"./plaid-CLzwK82c.js";import"./dnd-DVlS_Tzy.js";import"./stripe-DMRn4zHo.js";import"./lottie-_frhG95Y.js";import"./lexical-B0eQyeR8.js";import"./pdf-B95TO9NA.js";import"./utils-CLB_b-LB.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new t.Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="4bd15e18-5b5f-4be1-8d33-8bd696c76da2",t._sentryDebugIdIdentifier="sentry-dbid-4bd15e18-5b5f-4be1-8d33-8bd696c76da2")}catch{}})();function _(){return e.jsxs(s,{children:[e.jsx(r,{path:"/edit/:addressType/:addressId",element:e.jsx(d,{})}),e.jsx(r,{path:"/new/:addressType",element:e.jsx(d,{})}),e.jsx(r,{path:"*",element:e.jsx(i,{})})]})}export{_ as default};
@@ -1,9 +0,0 @@
1
- import{j as d}from"./liveblocks-ZWx6HW-l.js";import{a as h}from"./sentry-C87w4Kip.js";import{j as T,h as _,u as j,l as E,g as B,k as M}from"./core-NS68e-Ni.js";import{Z as $,h as D,z as L,A as K,B as N,x as J,e as C,g as m,s as z,j as b,p as F}from"./index-Da8Tk_yD.js";import{J0 as k,gN as R,eN as U,J1 as G,c0 as O,J2 as V,k7 as q}from"./zeni-epic-state-DMGzDfBV.js";import{n as H}from"./mui-BOQqbf6o.js";import Z from"./NotFoundScreen-DygsPbRQ.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]="95cf469b-6e07-4a3a-97f8-98985a2f7129",e._sentryDebugIdIdentifier="sentry-dbid-95cf469b-6e07-4a3a-97f8-98985a2f7129")}catch{}})();const Q=H.div`
2
- display: flex;
3
- height: 100vh;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- `,W=M(function(e,t){const{addressId:o,isSubPage:i,addressType:c}=t,l=U(e),a=t.roleMap!=null&&G(t.roleMap),r=i||c==="user_address"||O(l?.userRole??[])||a?void 0:"readonly";if(o==null){const s=V(c,e);return{addressToEdit:s?.addressToCreate,loadingState:s?.status?.fetchState,googleAPIKey:b.googleMapsAPIKey,isDisabled:r,isSubPage:i,dontShowSaveConfirmationPopup:t.dontShowSaveConfirmation}}const n=k(e,o);return{addressToEdit:n.address,loadingState:n.fetchState,googleAPIKey:b.googleMapsAPIKey,isDisabled:r}},function(e,t){const{navigate:o,location:i,addressType:c}=t,l=a=>{if(a==="express-pay")o("../express-pay/add-wire");else{const r=i.state,n=F(r?.pathnameStackToGoBack);let s=n.poppedPathname??w();const u=r?.queryParams;if(u){const f=new URLSearchParams(u).toString();f&&(s=`${s}?${f}`)}o(s,{state:{pathnameStackToGoBack:n.newStack}})}};return{onSubmitHandler:a=>{const r=X(a);e(q({addressType:c,addressToCreate:r})),C?.trackSaveAddressClicked(m.Event.saveAddressClicked,{street:a.street.addressString,city:a.city,state:a.state,country:a.country.selectedOption??"",postalCode:a.postalCode,suite:a.suite,secondaryInfo:a.secondaryInfo}),l(t.bankAccountContext)},onCancel:()=>{l(t.bankAccountContext)}}})(z);function de({isSubPage:e,hideAddressSubTitle:t=!1,hideAddressBackButton:o=!1,dontShowSaveConfirmation:i,accountContext:c,addressTypeParam:l}){const a=T(),r=_(),n=j(),{addressId:s,addressType:u}=E(),f=$(),x=D(),A=L.getSignedInUser(),[g,I]=h.useState(s==null),p=B(S=>s!=null?k(S,s).fetchState:"Not-Started"),v=K();if(A==null)throw Error("Can't access address page without signing in...");const P=S=>S.trackPageLoaded(s!=null?m.Event.editAddress:m.Event.addAddress),y=l??u;return h.useEffect(()=>{g||s==null||(I(!0),r(R(s,!1)))},[g,s,r]),y==null||y.match(/(user_address|company_address|company_registered_address|vendor_address|officer_([1-9]|10)_address)$/g)?!g&&p==="Not-Started"||g&&p==="In-Progress"?d.jsx(N,{fetchState:p,style:{backgroundColor:x.colors.grey5}}):s!=null&&p==="Error"?(a(`${w(1)}/new`,{replace:!0}),d.jsx(d.Fragment,{})):d.jsxs(d.Fragment,{children:[d.jsx(J,{analytics:C,onLoad:P}),d.jsx(Q,{windowSize:f,children:d.jsx(W,{location:n,navigate:a,isSubPage:e===!0,hideAddressBackButton:o,hideAddressSubTitle:t,addressId:s,addressType:y,dontShowSaveConfirmation:i,bankAccountContext:c,roleMap:v?.loggedInUserRoleMap})})]}):d.jsx(Z,{})}const w=(e=2)=>{let t="../";for(let o=0;o<e;o++)t=`${t}../`;return t},X=e=>({street:[e.street.addressString,e.suite,e.secondaryInfo],city:e.city,state:e.state,country:e.country.selectedOption??"",countryCode:e.countryCode,postalCode:e.postalCode,latitude:e.street.addressValue?.locationLat,longitude:e.street.addressValue?.locationLng});export{de as A,X as t};
@@ -1,11 +0,0 @@
1
- import{j as h}from"./liveblocks-ZWx6HW-l.js";import{a as r}from"./sentry-C87w4Kip.js";import{h as oe,j as ne,u as ie,g as j,l as re,k as le}from"./core-NS68e-Ni.js";import{H as ce,cF as ue,z as de,Z as me,cG as pe,cH as fe,cI as he,cJ as q,x as Se,e as v,J as G,cK as ge,cL as Ce,g as be,a1 as ke,cM as we,K as Ie,r as Ee,p as V,aX as Pe,cN as Te}from"./index-Da8Tk_yD.js";import{fE as ye,f3 as H,eN as _e,hr as xe,Py as ve,eM as Ue,hB as Ae,hx as Qe,fu as Oe,fo as Fe,fh as De,fl as $,fp as Me,fq as Be,fr as Le,fs as Re,ft as Ne}from"./zeni-epic-state-DMGzDfBV.js";import{D as je,n as U,P as Ge,S as Ve}from"./mui-BOQqbf6o.js";import{p as $e}from"./pathToGoBack-DRhY1Q1L.js";import"./recharts-CYb8hS9h.js";import"./analytics-CoCgUkdF.js";import"./plaid-CLzwK82c.js";import"./dnd-DVlS_Tzy.js";import"./stripe-DMRn4zHo.js";import"./lottie-_frhG95Y.js";import"./lexical-B0eQyeR8.js";import"./pdf-B95TO9NA.js";import"./utils-CLB_b-LB.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new s.Error().stack;i&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[i]="d68e30f7-7d0d-490b-83f9-5ac8b9a27d06",s._sentryDebugIdIdentifier="sentry-dbid-d68e30f7-7d0d-490b-83f9-5ac8b9a27d06")}catch{}})();const W="chat-response-generated",qe=le(function(s,i){const a=H(s),m=i.isSubmitting;return{showSampleQuestions:i.sessionFromUrl==="explore"&&a.uiState.currentChatSessionId==null,aiCfoView:a,isSubmitting:m,isNewChatSession:i.sessionFromUrl==="new_chat"||i.sessionFromUrl==="explore",isFullView:!0,tableDownloadEndPoint:`${Ie}/tableDownload`,emailLinkQuestion:i.emailLinkQuestion,autoSubmitEmailLinkQuestion:i.autoSubmitEmailLinkQuestion,onEmailLinkQuestionProcessed:i.onEmailLinkQuestionProcessed,isFileUploadEnabled:i.isFileUploadEnabled,isUploadPromoVisible:i.isUploadPromoVisible,onUploadPromoClose:i.onUploadPromoClose}},function(s,i){const{location:a,currentTenant:m,userId:d,navigate:p,currentChatSessionId:f,allSessionsWithOrderedQuestionAnswers:S,setIsAiCfoOpen:l}=i;return{onEventReceived:(e,o)=>{if(e===W&&typeof o.text=="string"&&typeof o.metadata=="object"){const n=o,c=Be(n.type),t=n.metadata.chat_session_id??null,{currentChatSession:I,currentQuestionAnswer:g,currentQuestionAnswerSummary:E}=q(S,t);c!=="answer"?v.trackAICFOChatResponseGenerated(c,g?.question.questionText??"",n.text,t,Te(E,I),n.metadata.message_id??null):v.trackAICFOChatAnswerGenerated(n.text,g?.question.questionText??"",(n.follow_up_questions?.length??0)>0,!!n.assumptions,!!n.insights,n.visualization!=null,Le(n.visualization?.type??"")??null,t,n.summarized_title,n.metadata.message_id??null),s(Re({chatSessionId:n.metadata.chat_session_id,responseType:c,fetchState:{fetchState:"Completed",error:void 0}})),s(Ne({chatSessionId:n.metadata.chat_session_id,answerPayload:n,userId:d}))}},onSubmit:(e,o,n,c)=>{e&&Pe(s,e,o,f,S,d,c,n)},updateCurrentInput:e=>{s($(e))},onStopSubmit:()=>{},onUpdateScrollYOffset:e=>{s(Me(e))},onSelectSampleQuestion:()=>{},onBackClick:()=>{p(-1)},onCloseClick:()=>{const e=V(a.state?.pathnameStackToGoBack),o=e.poppedPathname??$e(1);p(o,{state:{...a.state,pathnameStackToGoBack:e.newStack}}),s($(""))},togglePageView:()=>{const e=V(a.state?.pathnameStackToGoBack),o=e.poppedPathname??`/${m.tenantEmailDomain}/dashboard`;p(o,{state:{...a.state,pathnameStackToGoBack:e.newStack,message:"open_ai_cfo_drawer"}}),l(!0)},onCopy:()=>{},onThumbsUp:()=>{},onThumbsDown:()=>{},onTogglePageView:()=>{p(-1)},onNewChatClick:()=>{f!=null&&s(De());const e=Ee(a.state?.pathnameStackToGoBack,a.pathname);p(`/${m.tenantEmailDomain}/ai-cfo/new_chat`,{state:{pathnameStackToGoBack:e.slice(0,-1),referrer:"Sidebar"}})},onToggleCotCollapsed:(e,o)=>{s(Fe({questionAnswerId:e,isCollapsed:o}))},onMenuClick:i.onMenuClick}})(ke(we)),dt=({isFileUploadEnabled:s})=>{const{setIsAiCfoOpen:i}=ce(),a=oe(),m=ne(),d=ie(),[p,f]=r.useState(!1);r.useEffect(()=>{a(ye())},[a]);const{customPageTitle:S}=ue(),l=j(u=>H(u)),e=de.getSignedInUser(),{session_id:o}=re(),n=me(),c=j(u=>_e(u)),t=l.uiState.currentChatSessionId,I=c.tenantEmailDomain,{handleUploadPromoClose:g,isUploadPromoVisible:E}=pe({isFileUploadEnabled:s,tenantEmailDomain:I}),A=fe({currentTenant:c,currentChatSessionId:t,aiCfoView:l}),C=d.state,b=C?.aiCfoInitialQuestion,Q=!!C?.aiCfoShouldSubmit,[z,P]=r.useState(null),[J,T]=r.useState(!1),O=r.useRef(!1);r.useEffect(()=>{O.current||b==null||b===""||(P(b),T(Q),O.current=!0)},[b,Q]);const K=r.useCallback(()=>{P(null),T(!1)},[]),F=r.useMemo(()=>new URLSearchParams(d.search),[d.search]),D=F.get("ref")??C?.aiCfoRef,y=F.get("emailRefId")??C?.aiCfoEmailRefId,M=r.useRef(!1);r.useEffect(()=>{M.current||D!=="month-end-email"||y==null||t!=null||e==null||(a(xe("controller",e.userId,y,"MONTH_END_EMAIL")),M.current=!0)},[D,y,t,a,e]);const k=l.uiState.lastContextMessage;r.useEffect(()=>{k!=null&&k!==""&&t!=null&&(P(k),T(!0),a(ve()))},[k,t,a]);const Z=c.masterTOSInfo,w=Z?.isMasterTOSAccepted??!1,{visitedSessions:B}=he(t),_=l.fetchState,x=l.uiState.chatSessionsNextPageToken.hasMore||!l.uiState.chatSessionsFirstPageFetched,L=t!=null?l.fetchChatSessionHistoryByChatSessionId?.[t]?.fetchState??"Not-Started":"Not-Started",R=t==null||(l.uiState.chatHistoryNextPageToken[t]?.hasMore??!0),N=l.allSessionsWithOrderedQuestionAnswers,{currentSessionQuestionAnswers:X}=q(N,t),Y=X.length===0;r.useEffect(()=>{w||m("../dashboard",{state:{...d.state,message:"open_ai_cfo_drawer"}})},[w]),r.useEffect(()=>{t!=null&&o!==t&&m(`../ai-cfo/${t}`,{state:{...d.state}})},[t,o]),r.useEffect(()=>{o!=null&&t==null&&o!=="new_chat"&&o!=="explore"&&a(Ue({sessionId:o,agentId:"controller"}))},[]);const ee=r.useMemo(()=>({events:B.map(u=>`private-chat-${u}.${W}`),eventCallback:(u,se,ae)=>ae.onEventReceived(u,se)}),[B]);if(r.useEffect(()=>{_!=="In-Progress"&&x&&a(Ae())},[_,x,a]),r.useEffect(()=>{t!=null&&L!=="In-Progress"&&R&&e!=null&&_==="Completed"&&!x&&a(Qe(t,e.userId))},[L,R,t,e,a]),e==null||o==null)throw Error("Can't access AI Controller page without signing in...");const te=t!=null&&l.responseStateByChatSessionId?.[t]?.answer?.fetchState==="In-Progress";return h.jsxs(We,{children:[h.jsx(Se,{analytics:v,onLoad:u=>u.trackPageLoaded(be.Event.aiCFOPage)}),G(n)&&A.drawerElement,h.jsx(qe,{...ee,currentChatSessionId:t,allSessionsWithOrderedQuestionAnswers:N,openOnboardingPage:()=>f(!0),userId:e.userId,setIsAiCfoOpen:i,navigate:m,sessionFromUrl:o,location:d,isSubmitting:te,isEmptyChatWithSession:Y,customPageTitle:S,currentTenant:c,emailLinkQuestion:z??void 0,autoSubmitEmailLinkQuestion:J,onEmailLinkQuestionProcessed:K,onMenuClick:G(n)?A.open:void 0,isFileUploadEnabled:s,isUploadPromoVisible:E,onUploadPromoClose:g}),h.jsx(je,{anchor:"right",open:p,transitionDuration:250,PaperProps:{component:ze,style:{width:`${ge}vw`}},slotProps:{backdrop:{style:{backgroundColor:"transparent",cursor:"pointer"}}},onClose:()=>f(!1),children:h.jsx(He,{onClick:u=>u.stopPropagation(),children:h.jsx(Ce,{isTOSAccepted:w,acceptMasterTOSState:l.masterTOSAcceptanceState,customPageTitle:S,onCloseClick:()=>f(!1),onCompleteClick:()=>{w||c.userRoleId==null||a(Oe(c.userRoleId)),f(!1)}})})})]})},He=U(Ve)`
2
- display: flex;
3
- min-height: 100%;
4
- flex-direction: column;
5
- `,We=U.div`
6
- height: 100vh;
7
- width: 100%;
8
- `,ze=U(Ge)`
9
- box-shadow: ${({theme:s})=>s.colors.elevation2};
10
- color: ${({theme:s})=>s.colors.grey4};
11
- `;export{dt as default};
@@ -1 +0,0 @@
1
- import{j as d}from"./liveblocks-ZWx6HW-l.js";import{z as n}from"./index-Da8Tk_yD.js";import{g as p}from"./QBOConnectionScreen-dgF5agJb.js";import"./sentry-C87w4Kip.js";import{u as a,N as i}from"./core-NS68e-Ni.js";import"./zeni-epic-state-DMGzDfBV.js";import"./recharts-CYb8hS9h.js";import"./mui-BOQqbf6o.js";import"./analytics-CoCgUkdF.js";import"./plaid-CLzwK82c.js";import"./dnd-DVlS_Tzy.js";import"./stripe-DMRn4zHo.js";import"./lottie-_frhG95Y.js";import"./lexical-B0eQyeR8.js";import"./pdf-B95TO9NA.js";import"./utils-CLB_b-LB.js";import"./empty-BiNS9m_P.js";import"./pdf-lib-V86wYVmQ.js";import"./index-DJbljk5M.js";import"./url-v-sU7ae0.js";import"./index-CDvPQSM3.js";import"./decodeURIComponentSafe-D5FRXf4K.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new t.Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="b68d0d57-e81d-4cfb-97e6-d4dd5e5b7ebd",t._sentryDebugIdIdentifier="sentry-dbid-b68d0d57-e81d-4cfb-97e6-d4dd5e5b7ebd")}catch{}})();const U=()=>{const t=a(),{code:o,realmId:r,state:e}=p(t.search),s=n.getSignedInUser()?.userId??"";if(f(o,r,e,s)===!0){const m=`../../${e}/onboarding?code=${o}&realmId=${r}&state=auth_flow`;return d.jsx(i,{to:m})}return d.jsx(i,{to:"../../"})},f=(t,o,r,e)=>t!=""&&o!=""&&r!=""&&e!=null&&e!="";export{U as default,f as hasValidParams};
@@ -1 +0,0 @@
1
- import{j as i}from"./liveblocks-ZWx6HW-l.js";import{Z as f,y as l,h as c}from"./index-Da8Tk_yD.js";import{D as b}from"./mui-BOQqbf6o.js";import"./sentry-C87w4Kip.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="7fcde72f-e252-4f4d-801f-b7b68711bcb2",e._sentryDebugIdIdentifier="sentry-dbid-7fcde72f-e252-4f4d-801f-b7b68711bcb2")}catch{}})();const p={drawerLeftMargin:new l(0,0,240)};function h(e){const{isOpen:r,drawerLeftMargin:o,children:t,onClose:s}=e,n=f(),d=o?.valuePx(n)??p.drawerLeftMargin.valuePx(n),a=c();return i.jsx(b,{anchor:"right",open:r,PaperProps:{style:{width:`calc(100% - ${d})`}},slotProps:{backdrop:{style:{backgroundColor:a.colors.black,opacity:.8,cursor:"pointer"}}},onClose:s,children:t})}export{h as D};
@@ -1 +0,0 @@
1
- import{j as s}from"./liveblocks-ZWx6HW-l.js";import{a as r}from"./sentry-C87w4Kip.js";import{X as d,Y as f,_ as l,p}from"./index-Da8Tk_yD.js";import"./mui-BOQqbf6o.js";import m from"./NotFoundScreen-DygsPbRQ.js";import{j as u,u as b}from"./core-NS68e-Ni.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]="acd41f63-5c60-4198-9c6c-71efcb653b21",e._sentryDebugIdIdentifier="sentry-dbid-acd41f63-5c60-4198-9c6c-71efcb653b21")}catch{}})();const j=()=>{const e=u(),t=b(),a=r.useCallback(()=>{window.open("https://www.zeni.ai/demo/request","_blank")},[]),c=r.useCallback(()=>{(()=>{const n=p(t.state?.pathnameStackToGoBack),i=n.poppedPathname??k();e(i,{state:{pathnameStackToGoBack:n.newStack}})})()},[]),o=d(t.pathname);return o!=null?s.jsx(f,{menuItem:l(o),onDemoClick:a,onGoBack:c}):s.jsx(m,{})},k=(e=2)=>{let t="../";for(let a=0;a<e;a++)t=`${t}../`;return t};export{j as F};
@@ -1,12 +0,0 @@
1
- import{j as u}from"./liveblocks-ZWx6HW-l.js";import{a as f}from"./sentry-C87w4Kip.js";import{h as O,u as _,j as w,q as M,g as l,N as T}from"./core-NS68e-Ni.js";import{z as r,h as P,D as V,f as A,e as N,g as q,G,m as H,i as R}from"./index-Da8Tk_yD.js";import{eN as W,Ij as $,It as B,Ik as J,eO as K,fi as Q,Ip as X,fH as Y,cS as Z,Iu as ee,Iv as te}from"./zeni-epic-state-DMGzDfBV.js";import{n as ne}from"./mui-BOQqbf6o.js";import{u as ae}from"./useDeviceId-Bj62U6Du.js";import{f as se}from"./analyticsHelper-C_j_qJ0w.js";import{t as ie}from"./getLocaleForTenant-BIPiDn9Z.js";import"./recharts-CYb8hS9h.js";import"./analytics-CoCgUkdF.js";import"./plaid-CLzwK82c.js";import"./dnd-DVlS_Tzy.js";import"./stripe-DMRn4zHo.js";import"./lottie-_frhG95Y.js";import"./lexical-B0eQyeR8.js";import"./pdf-B95TO9NA.js";import"./utils-CLB_b-LB.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]="7a28ab12-b8ff-4879-a655-fbb6aa19db91",t._sentryDebugIdIdentifier="sentry-dbid-7a28ab12-b8ff-4879-a655-fbb6aa19db91")}catch{}})();const D=(t,s)=>t!=null&&t.length>0&&s==="magic_links";function De(){const t=O(),s=_(),m=w(),[k]=M(),n=k.get("token"),p=k.get("stytch_token_type"),g=r.getMagicLinkCodeVerifier(),i=ae(),{otpChallenge:d,twoFAPhoneNumber:x,magicLinkEmail:c,verifyDeviceFetchState:z,resendVerifyDeviceOTPFetchState:C}=l(e=>e.tenantState),I=l(e=>e.tenantState.fetchState),y=l(e=>e.tenantState.activeTenantFetchState.fetchState),S=l(e=>e.tenantState.signInState),b=l(e=>e.tenantState.magicLinkSignInFetchState.fetchState),a=l(e=>e.tenantState.loggedInUser),o=l(e=>W(e)),h=l(e=>$(e)),E=r.getSignedInUser(),v=P().mode;f.useEffect(()=>{a?.zeniSessionId==null&&n!=null&&D(n,p)&&i!=null&&g!=null&&(r.saveMagicLinkTriggered(n),t(B(n,i,g)))},[n,p,t,i,g,a?.zeniSessionId]),f.useEffect(()=>{S!=="In-Progress"||I!=="Completed"&&y!=="Completed"||a?.zeniSessionId==null||o==null||(n!=null&&r.saveLastUsedMagicLinkToken(n),r.saveSignedInUserWithSession(a,a.zeniSessionId),r.saveSignedInUserTenants(J(h.tenantsInOrder),a.zeniSessionId),K(a.userId,a.zeniSessionId,o.tenantId),t(Q(o.tenantId)),r.saveActiveTenantDomainForUser(o.tenantEmailDomain),t(X("Completed")),V.updateAppLocaleID(ie(o)),se(a,o,v,void 0,h.tenantsInOrder),Y().then(()=>{const e=R();e!=null&&A(e)}),setTimeout(()=>{N.trackLogin(q.Event.loginSuccess,"email",Z(o.productSettings))},2e3))},[S,I,y,a,o,h,v,s.state,t]);const j=f.useCallback(()=>{m("/signin/auth")},[m]),U=f.useCallback(()=>{i!=null&&d!=null&&c!=null&&t(ee(i,c,d))},[i,d,t,c]),F=f.useCallback(e=>{i!=null&&n!=null&&c!=null&&d!=null&&t(te(e,i,c,d))},[i,n,t,c,d]);if(b==="Completed"&&d!=null)return u.jsx(G,{phoneNumber:x,verifyOtpFetchState:z.fetchState,resendVerifyDeviceOTPFetchState:C,onResendOtp:U,onVerifyOtp:F,onCancelVerifyDevice:j});if(S==="In-Progress"&&I==="Completed"&&a?.zeniSessionId!=null&&o!=null||E!=null){const e=s.state?.origin??"/";return u.jsx(T,{to:e,state:{...s.state,origin:""}})}if(!D(n,p)||g==null||b==="Error"){const e=s.state?.origin??"/",L=n!=null&&r.getLastUsedMagicLinkToken()===n;return u.jsx(T,{to:e,state:{...s.state,origin:"",magicLinkAlreadyUsed:L,magicLinkExpired:!L&&(r.isMagicLinkTriggered(n??"")||b==="Error"&&a?.zeniSessionId==null)}})}return u.jsx(oe,{"data-testid":"smooth-loader",children:u.jsx(H,{size:"ExtraLarge",start:!0})})}const oe=ne.div`
2
- position: fixed;
3
- top: 0;
4
- left: 0;
5
- right: 0;
6
- bottom: 0;
7
- display: flex;
8
- align-items: center;
9
- justify-content: center;
10
- z-index: 9999;
11
- background-color: ${t=>t.theme.colors.background};
12
- `;export{De as default};
@@ -1 +0,0 @@
1
- import{j as r}from"./liveblocks-ZWx6HW-l.js";import{j as e,k as i}from"./core-NS68e-Ni.js";import{R as n}from"./index-Da8Tk_yD.js";import"./mui-BOQqbf6o.js";import"./sentry-C87w4Kip.js";import"./zeni-epic-state-DMGzDfBV.js";import"./recharts-CYb8hS9h.js";import"./analytics-CoCgUkdF.js";import"./plaid-CLzwK82c.js";import"./dnd-DVlS_Tzy.js";import"./stripe-DMRn4zHo.js";import"./lottie-_frhG95Y.js";import"./lexical-B0eQyeR8.js";import"./pdf-B95TO9NA.js";import"./utils-CLB_b-LB.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]="b01df3c4-110c-4040-bc67-78b2276eb150",o._sentryDebugIdIdentifier="sentry-dbid-b01df3c4-110c-4040-bc67-78b2276eb150")}catch{}})();const s=i(null,function(o,t){return{onGoBack:()=>{t.navigate(-1)},onGoHome:()=>{t.navigate("/")}}})(n);function h(){const o=e();return r.jsx(s,{navigate:o})}export{h as default};
@@ -1,22 +0,0 @@
1
- import{j as s}from"./liveblocks-ZWx6HW-l.js";import{J3 as oe,eN as q,jr as J,eT as Q,eR as ie,GE as Y,IH as re,sK as ke,J4 as X,sy as Pe,sT as je,sN as le,sC as de,sR as Te,sO as Le,J5 as ce,uo as ve,J6 as Fe,fx as Ae,J7 as G,sH as pe,sF as ue,sW as Oe,c0 as Re}from"./zeni-epic-state-DMGzDfBV.js";import{Z as me,a as ee,d as E,z as W,a4 as ge,E as he,af as fe,ag as Ve,y as Ce,o as A,W as be,D as ye,ah as Ue,I as Ze,H as Be,x as $e,e as Se,g as He,r as Ge,ai as _e,A as ze}from"./index-Da8Tk_yD.js";import{D as we,n as K,S as De}from"./mui-BOQqbf6o.js";import te from"./NotFoundScreen-DygsPbRQ.js";import{a as l}from"./sentry-C87w4Kip.js";import{h as se,l as Je,g,j as We,u as Ke,k as Me,n as ne,o as H}from"./core-NS68e-Ni.js";import{u as Ne}from"./useAskAiCfoHostNavButtonProps-4p-dajJC.js";import{c as Xe}from"./useFetchSuggestedQuestionsWhenReady-Cr0f3fzA.js";import{M as qe}from"./MobileAppDrawer-BvUTGun5.js";import"./recharts-CYb8hS9h.js";import"./analytics-CoCgUkdF.js";import"./plaid-CLzwK82c.js";import"./dnd-DVlS_Tzy.js";import"./stripe-DMRn4zHo.js";import"./lottie-_frhG95Y.js";import"./lexical-B0eQyeR8.js";import"./pdf-B95TO9NA.js";import"./utils-CLB_b-LB.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]="269707ab-55eb-40a7-9b40-be58c02b8ddb",e._sentryDebugIdIdentifier="sentry-dbid-269707ab-55eb-40a7-9b40-be58c02b8ddb")}catch{}})();const Qe={overlayWidth:new Ce(100,100,48)},_=ye.getLocalizedStrings().peoplePage.invitePage,Ye=({companyId:e,managersListView:n,companyPassportView:d,classListView:o,mode:h,isEditPeopleDrawerOpen:i,closeDrawerHandler:y})=>{const f=me(),u=se(),[O,R]=l.useState(!1),[k,S]=l.useState(!1),{userId:w}=Je(),c=g(t=>oe(t)),m=g(t=>q(t)),D=g(t=>J(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 b=()=>{u(X()),y()},F=()=>{O===!0?S(!0):b()},Z=d.companyView?.controllers?.map(t=>t.user),{isFeatureEnabled:B}=C(E.isDepositAccountsFeatureEnabled),{isFeatureEnabled:$}=C(E.isChargeCardFeatureEnabled),p=ge(m,$,I),{isFeatureEnabled:j}=C(E.isTreasuryEnabled),T={peopleDetails:c,classList:o.classes,managersList:n.users,controllersList:Z,mode:h,isZeniTenant:v,isAccountingClassesEnabled:D,isReimbursementDisabled:U===!1,isZeniAccountsDisabled:B===!1,isChargeCardDisabled:p===!1,isTreasuryDisabled:j===!1,isLiteRoleDisabled:V===!1,isBankingOnlyTenant:P,isCardsOnlyTenant:L,onResetClick:b,onDeleteUser:t=>{u(de(t.userId,t.userRole.userRoleId))},onPeopleLocalDataUpdated:t=>{u(le({peopleLocalData:t})),R(!0)},onSaveClick:()=>{u(h==="zeni_only"?Pe(e):je(v))},onCloseClick:F,isLoading:x||c.person==null},r={onOkClick:()=>{S(!1),b()},onCancelClick:()=>{S(!1)}};return l.useEffect(()=>{x===!1&&w!=null&&u(ke(w))},[x,w]),l.useEffect(()=>{c.updatePersonState.fetchState==="Completed"&&b()},[c.updatePersonState.fetchState]),s.jsx(we,{anchor:"right",open:i,PaperProps:{style:{width:Qe.overlayWidth.valuePercentage(f),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:he.overlayDark,cursor:"pointer"}}},onClose:F,children:s.jsxs(es,{onClick:t=>t.stopPropagation(),children:[k===!0?s.jsx(fe,{titleComponent:s.jsx(xe,{children:_.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(be.H6Regular)`
6
- margin-top: ${A.sp7};
7
- padding-left: ${A.sp8};
8
- padding-right: ${A.sp8};
9
- color: ${e=>e.theme.colors.primary};
10
- word-break: break-word;
11
- `,Ee=K(be.LargeRegularSp)`
12
- color: ${e=>e.theme.colors.hero};
13
- padding-left: ${A.sp8};
14
- padding-right: ${A.sp8};
15
- margin-bottom: 30px;
16
- margin-top: ${A.sp4};
17
- white-space: pre-line;
18
- `,ss={overlayWidth:new Ce(100,100,48)},z=ye.getLocalizedStrings().peoplePage.invitePage,as=({companyId:e,managersListView:n,companyPassportView:d,classListView:o,mode:h,isInvitePeopleDrawerOpen:i,closeDrawerHandler:y})=>{const f=me(),u=se(),[O,R]=l.useState(!1),[k,S]=l.useState(!1),w=g(r=>oe(r)),c=g(r=>q(r)),m=g(r=>J(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=()=>{y(),u(X())},b=()=>{O===!0?S(!0):x()},F={onOkClick:()=>{S(!1),x()},onCancelClick:()=>{S(!1)}},Z=d.companyView?.controllers.map(r=>r.user),{isFeatureEnabled:B}=D(E.isDepositAccountsFeatureEnabled),{isFeatureEnabled:$}=D(E.isChargeCardFeatureEnabled),p=ge(c,$,C),{isFeatureEnabled:j}=D(E.isTreasuryEnabled),T={classList:o.classes,managersList:n.users,controllersList:Z,mode:h,isZeniTenant:L,onPeopleLocalDataUpdated:r=>{u(le({peopleLocalData:r})),R(!0)},onResetClick:x,onSaveClick:()=>{u(h==="zeni_only"?Te(e):Le())},onCloseClick:b,peopleDetails:w,isAccountingClassesEnabled:m,isReimbursementDisabled:V===!1,isLiteRoleDisabled:v===!1,isZeniAccountsDisabled:B===!1,isChargeCardDisabled:p===!1,isTreasuryDisabled:j===!1,isBankingOnlyTenant:I,isCardsOnlyTenant:P,isLoading:U};return l.useEffect(()=>{w.invitePersonState.fetchState==="Completed"&&(y(),u(X()))},[w.invitePersonState.fetchState]),s.jsx(we,{anchor:"right",open:i,PaperProps:{style:{width:ss.overlayWidth.valuePercentage(f),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:he.overlayDark,cursor:"pointer"}}},onClose:b,children:s.jsxs(ts,{onClick:r=>r.stopPropagation(),children:[k===!0?s.jsx(fe,{titleComponent:s.jsx(xe,{children: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:J(e),analytics:Se}},function(e,n){const{navigate:d,companyId:o,shouldFetchClasses:h}=n;return{personAction:{onPersonDelete:(i,y)=>{e(de(i,y))},onResendInvite:i=>{e(Oe(i))},onReloadPeople:()=>{e(pe()),e(ue(o,h))},onBackClick:()=>{d("../../")},onModeChange:i=>{e(G({mode:i,searchText:"",sortKey:"name",sortOrder:"ascending"}))},onSearchTextChanged:i=>{e(G({searchText:i}))}}}})(_e);function N({isInvitePeopleDrawerOpen:e,isEditPeopleDrawerOpen:n}){const d=We(),o=se(),h=Ke(),{areTenantIdsInSync:i}=Ze(),y=W.getSignedInUser(),f=g(a=>q(a)),{useFeatureGate:u}=ee(),{isFeatureEnabled:O}=u(E.isDebitCardFeatureEnabled),R=g(a=>J(a)),k=!Q(O,f)&&R,S=Y(f),w=f?.tenantId,{tenantEmailDomain:c}=f,[m,D]=l.useState(!1),[C,I]=l.useState(!1),[P,L]=l.useState(!1),[v,V]=l.useState("off"),[U,x]=l.useState(!1),b=a=>{x(a)},{isAiCfoOpen:F,setIsAiCfoOpen:Z}=Be(),{isAiCfoAccessEnabled:B,onAskAiCfoClick:$}=Ne({isAiCfoOpen:F,setIsAiCfoOpen:Z,mobileExploreReferrer:"People"}),p=g(a=>ce(a));Xe({isDataReady:p.fetchState==="Completed"});const j=g(a=>ve(a.classState,a.classListState)),T=g(a=>Fe(a.userState,a.userRoleState,a.userListViewState,"manager")),r=g(a=>Ae(a)),t=f?.companyId;l.useEffect(()=>{m&&v===p.uiState.mode||!i||(o(G({searchText:"",sortKey:"name",sortOrder:"ascending"})),V(p.uiState.mode),D(!0),o(pe()))},[m,y,w,o,p.uiState.mode,i]),l.useEffect(()=>{t!=null&&i&&o(ue(t,k))},[t,k,i]),l.useEffect(()=>{I(e!=null&&e===!0),L(n!=null&&n===!0&&n)},[e,n]),l.useEffect(()=>{o(G({searchText:"",sortKey:"name",sortOrder:"ascending"}))},[]);const ae=()=>{I(!1),L(!1),d("../")};return s.jsxs(s.Fragment,{children:[p.fetchState==="Completed"?s.jsx($e,{analytics:Se,onLoad:a=>a.trackPageLoaded(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:b}),s.jsx(ns,{navigate:d,signedInUser:y,isZeni:f.isZeni,isZeniTenant:S,peopleUIState:p.uiState,companyId:t,shouldFetchClasses:k,classList:j,managersView:T,peopleView:p,onInvitePeopleClick:()=>{d("./new")},onColumnSortConfigChanged:(a,M)=>{o(G({sortKey:a,sortOrder:M}))},onRowClick:a=>{const M=`/${c}/people/${encodeURIComponent(a)}/edit`,Ie=Ge(h.state?.pathnameStackToGoBack,h.pathname);d(M,{state:{pathnameStackToGoBack:Ie}})},onClickMenuIcon:()=>{b(!0)},isAiCfoAccessEnabled:B,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 +0,0 @@
1
- import{j as s}from"./liveblocks-ZWx6HW-l.js";import _ from"./NotFoundScreen-DygsPbRQ.js";import{a as o}from"./sentry-C87w4Kip.js";import{j as v,u as M,g,l as U,h as P,N as z,k as N,n as V,o as h}from"./core-NS68e-Ni.js";import{eN as B,OK as b,bo as F,bn as H,h7 as K,gD as $}from"./zeni-epic-state-DMGzDfBV.js";import{w as q,z as I,H as G,cs as J}from"./index-Da8Tk_yD.js";import"./mui-BOQqbf6o.js";import{u as L}from"./useAskAiCfoHostNavButtonProps-4p-dajJC.js";import{c as Q}from"./useFetchSuggestedQuestionsWhenReady-Cr0f3fzA.js";import{M as W}from"./MobileAppDrawer-BvUTGun5.js";import"./recharts-CYb8hS9h.js";import"./analytics-CoCgUkdF.js";import"./plaid-CLzwK82c.js";import"./dnd-DVlS_Tzy.js";import"./stripe-DMRn4zHo.js";import"./lottie-_frhG95Y.js";import"./lexical-B0eQyeR8.js";import"./pdf-B95TO9NA.js";import"./utils-CLB_b-LB.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]="d1fba5fa-a76a-47e7-880c-e968cfa65382",e._sentryDebugIdIdentifier="sentry-dbid-d1fba5fa-a76a-47e7-880c-e968cfa65382")}catch{}})();const X=N(function(e){const t=I.getSignedInUser(),c=e.tenantState.currentTenantId,r={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:c??""},{aggregatedReportViewState:n}=b(e);return{authParams:r,isDisabled:!1,loggedInUser:t,aggregatedReport:n}},function(e,t){return{onBackClick:()=>{t.navigate("../../")},onClickMenuIcon:()=>{t.handleDrawerToggle(!0)}}})(J),Y=()=>{const e=v(),t=M(),c=q(),r=g(a=>B(a)),{aggregatedReportViewState:n}=g(a=>b(a)),{tenantEmailDomain:m}=U(),p=P(),d=I.getSignedInUser();if(d==null)throw new Error("Can't access this page without signing in...");const f=o.useRef(!1),[C,w]=o.useState(!1),S=F(r?.userRole??[]),k=r?.userRole?.includes("bookkeeping_admin")??!1,D=H(d),A=S||k||D,l=o.useCallback((a,i,O)=>{p(K({fromMonth:a,toMonth:i,cacheOverride:O}))},[]);o.useEffect(()=>{n?.fetchState==="Completed"&&f.current&&(p($({messageSection:"data_refresh_update",messageText:"success",type:"success",showStatusIcon:!0})),f.current=!1)},[n?.fetchState]);const x=o.useCallback((a,i)=>{n!=null&&n?.fetchState==="In-Progress"||l(a,i,!0),f.current=!0},[n?.fetchState,l]),y=o.useCallback((a,i)=>{l(a,i,!1)},[l]),u=a=>{w(a)},{isAiCfoOpen:j,setIsAiCfoOpen:R}=G(),{isAiCfoAccessEnabled:T,onAskAiCfoClick:E}=L({isAiCfoOpen:j,setIsAiCfoOpen:R,mobileExploreReferrer:"Performance"});return Q({isDataReady:n?.fetchState==="Completed"}),A?s.jsxs(s.Fragment,{children:[s.jsx(W,{isAppContentDrawerOpen:C,handleDrawerToggle:u}),s.jsx(X,{navigate:e,location:t,themeState:c,currentTenant:r,signedInUser:d,tenantEmailDomain:m,onReload:x,onTimeRangeSelect:y,handleDrawerToggle:u,isAiCfoAccessEnabled:T,onAskAiCfoClick:E})]}):s.jsx(z,{to:`/${m}/dashboard`,replace:!0})};function Ie(){return s.jsxs(V,{children:[s.jsx(h,{path:"*",element:s.jsx(Y,{})}),s.jsx(h,{path:"*",element:s.jsx(_,{})})]})}export{Ie as default};
@@ -1 +0,0 @@
1
- import{j as a}from"./liveblocks-ZWx6HW-l.js";import{a as j,z as w,aI as y,x as E,e as p,g as F,cC as P,d as L}from"./index-Da8Tk_yD.js";import"./mui-BOQqbf6o.js";import l from"./NotFoundScreen-DygsPbRQ.js";import{a as d}from"./sentry-C87w4Kip.js";import{h as T,g as b,j as V,u as A,k as R,n as U,o as u}from"./core-NS68e-Ni.js";import{eN as z,Ph as C,M7 as Y,Pi as k,ts as q,eZ as G,Pj as M,tq as O}from"./zeni-epic-state-DMGzDfBV.js";import{R as x}from"./ReferralListScreen-DDmewN_s.js";import"./recharts-CYb8hS9h.js";import"./analytics-CoCgUkdF.js";import"./plaid-CLzwK82c.js";import"./dnd-DVlS_Tzy.js";import"./stripe-DMRn4zHo.js";import"./lottie-_frhG95Y.js";import"./lexical-B0eQyeR8.js";import"./pdf-B95TO9NA.js";import"./utils-CLB_b-LB.js";import"./useAskAiCfoHostNavButtonProps-4p-dajJC.js";import"./useFetchSuggestedQuestionsWhenReady-Cr0f3fzA.js";import"./MobileAppDrawer-BvUTGun5.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]="7498f537-8dc2-41aa-bcdd-2292932ee7b6",e._sentryDebugIdIdentifier="sentry-dbid-7498f537-8dc2-41aa-bcdd-2292932ee7b6")}catch{}})();const Z=R(function(e,t){const n=C(e);return{inviteFormView:n.localData,submitStatus:n.saveStatus,userName:t.userName,rewardsPlan:n.rewardsPlan,companyLegalName:t.companyName}},function(e,t){const{navigate:n}=t,o=w.getSignedInUser();return{onDismissClick:()=>{e(k()),n("..")},onSendClick:()=>{if(o!=null){const s=[],r=[];t.inviteFormCompayData.forEach(c=>{s.push(c.companyName),r.push(c.emailIds[0])}),p.trackInviteEmailClicked("send",s,r,s.length)}e(O())},onUpdateInviteFormLocalData:s=>{e(M({localData:s}))},onSubmitSuccess:()=>{n("../../")},onCancelClick:()=>{o!=null&&p.trackInviteEmailClicked("cancel")}}})(P),B=()=>{const e=T(),[t,n]=d.useState(!1),[o,s]=d.useState(!1),r=b(i=>z(i)),c=V(),v=A(),{useDynamicConfig:g}=j(),f=w.getSignedInUser();if(f==null)throw Error("Can't access invite referral screen without signing in...");const m=b(i=>C(i)),_=f?.firstName!=null?f.firstName:"User",{configValue:h}=g(y.zeniCardsConfig),{configValue:D}=g(y.zeniAccountsConfig),I=Y(D);d.useEffect(()=>{e(k()),r?.rewardsLastViewedTime==null&&o===!1&&(e(q()),s(!0))},[]),d.useEffect(()=>{t||m.fetchState!=="Not-Started"||(n(!0),e(G(!0)))},[m.fetchState,e]);const N=r.company?.companyInfo.companyLegalName??r.companyName;return a.jsxs(a.Fragment,{children:[m.fetchState==="Completed"?a.jsx(E,{analytics:p,onLoad:i=>(S=>S.trackPageLoaded(F.Event.inviteEmailViewed))(i)}):null,a.jsx(Z,{navigate:c,location:v,currentTenant:r,companyName:N,userName:_,inviteFormCompayData:m.localData,chargeCardCashbackRatePerTransaction:h.charge_card_cashback_rate_per_transaction!=null?h.charge_card_cashback_rate_per_transaction:.0175,maxAnnualPercentageYield:I.maxAnnualPercentageYield})]})};function fe(){const{useFeatureGate:e}=j(),{isFeatureEnabled:t}=e(L.isReferralFeatureEnabled);return a.jsxs(U,{children:[a.jsx(u,{path:"/",element:t?a.jsx(x,{}):a.jsx(l,{})}),a.jsx(u,{path:"how-it-works",element:t?a.jsx(x,{isReferralDrawerOpen:!0}):a.jsx(l,{})}),a.jsx(u,{path:"refer/*",element:t?a.jsx(B,{}):a.jsx(l,{})}),a.jsx(u,{path:"*",element:a.jsx(l,{})})]})}export{fe as default};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardRoutes-CeeblOg8.js","assets/sentry-C87w4Kip.js","assets/core-NS68e-Ni.js","assets/zeni-epic-state-DMGzDfBV.js","assets/index-Da8Tk_yD.js","assets/mui-BOQqbf6o.js","assets/analytics-CoCgUkdF.js","assets/utils-CLB_b-LB.js","assets/withTransactionSidePanel-cogaIzEz.js","assets/useAskAiCfoHostNavButtonProps-4p-dajJC.js","assets/useFetchSuggestedQuestionsWhenReady-Cr0f3fzA.js","assets/TransactionDetailScreen-CBUCmjK_.js","assets/decodeURIComponentSafe-D5FRXf4K.js","assets/routePaths-Bf6rAHfg.js","assets/NotFoundScreen-DygsPbRQ.js","assets/analyticsHelper-C_j_qJ0w.js","assets/CompanyPassportScreen-DZXZytAs.js","assets/MobileAppDrawer-BvUTGun5.js","assets/FeaturePreviewScreen-CLCXRQfk.js","assets/ReferralListScreen-DDmewN_s.js","assets/index-Bc34frN_.css","assets/BillPayRoutes-ClxPJYau.js","assets/AddressScreen-C5I0t41r.js","assets/DomesticWireDetailScreen-CpX5BmG1.js","assets/useInitialThreadRequest-BJwiGLk9.js","assets/DrawerScreen-CgPjqO1B.js","assets/SetupPagesScreen-DFPSH2yT.js","assets/BusinessVerificationPageScreen-ClbKVZ4q.js","assets/BillPayApprovalRoutes-CKKK8nzV.js","assets/ReimbursementApprovalRuleDetailScreen-Ce0sj4gb.js","assets/getLocaleForTenant-BIPiDn9Z.js","assets/ReimbursementRoutes-DWm7bpvn.js","assets/ReimbursementApprovalRoutes-DlaVIlGg.js","assets/TransactionListRoutes-DDr_bJ4e.js","assets/ZeniAccountStatementScreen-BF1mBDxj.js","assets/SettingsRoutes-BFdtOGt8.js","assets/accountMappingHelper-C1oqIREw.js","assets/QBOConnectionScreen-dgF5agJb.js","assets/empty-BiNS9m_P.js","assets/index-DJbljk5M.js","assets/url-v-sU7ae0.js","assets/index-CDvPQSM3.js","assets/ReportsRoutes-Cef0LqxA.js","assets/ChargeCardRoutes-CT2hTbW7.js","assets/PeopleRoutes-B7LjAuLz.js","assets/ExpenseAutomationRoutes-CAoTyN5w.js","assets/TreasuryRoutes-BO6dCt_n.js","assets/VendorsRoutes-CfSSoVkN.js","assets/pathToGoBack-DRhY1Q1L.js","assets/ZeniAccountRoutes-CmGrp9O1.js","assets/AddressRoutes-B6Sb6lwY.js","assets/PandLWithForecastRoutes-B--hnF7d.js","assets/CustomerOnboardingRoutes-Zo1WT_33.js","assets/TransactionDetailRoutes-ndRs00Oo.js","assets/EntityDetailRoutes-pdP2GSDI.js","assets/NotificationRoutes-oHBgsceL.js","assets/PerformanceRoutes-DLOSJ9mb.js","assets/RewardsRoutes-w9CjVAA9.js","assets/TaskRoutes-Cyo2C8QB.js","assets/TaskListScreen-D_1MZmAs.js","assets/AiCfoScreen-BTkHFWKw.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,cO as Ae,cv as As,f9 as Es,cn as ps,bC as Is,bq as gs,fe as xs,v as Ts,Ik as hs,bv as js,Il as Us,bE as Ds,fb as Hs,bD as Rs,bs,cj as ys,Im as fs,In as Cs,cL as vs,cN as Os,cM as Ps,cu as Fs,cA as Ls,mm as Ee,eO as pe,fN as ks,fi as Ie,fK as ge,fL as xe,fj as Bs}from"./zeni-epic-state-DMGzDfBV.js";import{j as e}from"./liveblocks-ZWx6HW-l.js";import{a as v}from"./sentry-C87w4Kip.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-NS68e-Ni.js";import{h as ws,u as zs,z as H,a as Gs,c as $s,k as Ys,d as L,A as qs,L as k,D as he,t as _,P as Ws,e as X,l}from"./index-Da8Tk_yD.js";import"./mui-BOQqbf6o.js";import{f as je}from"./analyticsHelper-C_j_qJ0w.js";import{t as Ks}from"./getLocaleForTenant-BIPiDn9Z.js";import"./recharts-CYb8hS9h.js";import"./analytics-CoCgUkdF.js";import"./plaid-CLzwK82c.js";import"./dnd-DVlS_Tzy.js";import"./stripe-DMRn4zHo.js";import"./lottie-_frhG95Y.js";import"./lexical-B0eQyeR8.js";import"./pdf-B95TO9NA.js";import"./utils-CLB_b-LB.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]="60a5d906-ffdd-41c6-8e25-b4624ad074ca",i._sentryDebugIdIdentifier="sentry-dbid-60a5d906-ffdd-41c6-8e25-b4624ad074ca")}catch{}})();const Js={dashboard:()=>n(()=>import("./DashboardRoutes-CeeblOg8.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-ClxPJYau.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-DWm7bpvn.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-DDr_bJ4e.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,13,34,20])),settings:()=>n(()=>import("./SettingsRoutes-BFdtOGt8.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-Cef0LqxA.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,14,18,10,24,13,17,20])),chargeCards:()=>n(()=>import("./ChargeCardRoutes-CT2hTbW7.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-B7LjAuLz.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,14,9,10,17,20])),expenseAutomation:()=>n(()=>import("./ExpenseAutomationRoutes-CAoTyN5w.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-BO6dCt_n.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-CfSSoVkN.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-CmGrp9O1.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-Cef0LqxA.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,14,18,10,24,13,17,20]))),en=l(()=>n(()=>import("./AddressRoutes-B6Sb6lwY.js"),__vite__mapDeps([50,1,2,3,22,4,5,6,7,14,20]))),sn=l(()=>n(()=>import("./PeopleRoutes-B7LjAuLz.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,14,9,10,17,20]))),nn=l(()=>n(()=>import("./PandLWithForecastRoutes-B--hnF7d.js"),__vite__mapDeps([51,1,2,3,4,5,6,7,14,18,9,10,24,13,17,20]))),an=l(()=>n(()=>import("./CustomerOnboardingRoutes-Zo1WT_33.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-CfSSoVkN.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-ndRs00Oo.js"),__vite__mapDeps([53,1,2,3,14,4,5,6,7,11,9,10,12,13,20]))),Ue=l(()=>n(()=>import("./EntityDetailRoutes-pdP2GSDI.js"),__vite__mapDeps([54,1,2,3,4,5,6,7,12,8,9,10,11,13,20]))),on=l(()=>n(()=>import("./DashboardRoutes-CeeblOg8.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]))),De=l(()=>n(()=>import("./BillPayRoutes-ClxPJYau.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-BFdtOGt8.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,17,36,22,14,15,27,13,16,37,38,39,40,41,12,28,29,32,20]))),He=l(()=>n(()=>import("./ReimbursementRoutes-DWm7bpvn.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-CmGrp9O1.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-BO6dCt_n.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-DDr_bJ4e.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,13,34,20]))),un=l(()=>n(()=>import("./ChargeCardRoutes-CT2hTbW7.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-oHBgsceL.js"),__vite__mapDeps([55,1,2,3,14,4,5,6,7,9,10,20]))),An=l(()=>n(()=>import("./PerformanceRoutes-DLOSJ9mb.js"),__vite__mapDeps([56,1,2,3,14,4,5,6,7,9,10,17,20]))),En=l(()=>n(()=>import("./ExpenseAutomationRoutes-CAoTyN5w.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-w9CjVAA9.js"),__vite__mapDeps([57,1,2,3,4,5,6,7,14,19,9,10,17,20]))),In=l(()=>n(()=>import("./TaskRoutes-Cyo2C8QB.js"),__vite__mapDeps([58,1,2,3,14,4,5,6,7,24,17,59,9,10,20]))),gn=l(()=>n(()=>import("./AiCfoScreen-BTkHFWKw.js"),__vite__mapDeps([60,1,2,3,4,5,6,7,48,20]))),y=l(()=>n(()=>import("./NotFoundScreen-DygsPbRQ.js"),__vite__mapDeps([14,1,2,3,4,5,6,7,20]))),xn=l(()=>n(()=>import("./TaskListScreen-D_1MZmAs.js"),__vite__mapDeps([59,1,2,3,4,5,6,7,9,10,17,20])));function wn({setTenantEmailDomain:i}){const U=Vs(),V=Ns(),{tenantEmailDomain:o}=Ss(),N=ws().mode,{setLoading:f,clearAllLoading:O,clearLoading:Z}=zs(),b=H.getSignedInUserTenant(o)?.tenantId,h=H.getSignedInUser(),K=os(h),G=Ms(),[S,be]=v.useState(!1),r=z(a=>ls(a)),{useFeatureGate:P}=Gs(),J=$s(),ye=Ys(),{isFeatureEnabled:fe}=P(L.isExpenseAutomationEnabled),{isFeatureEnabled:Ce}=P(L.isExpenseAutomationEnabledV2),ve=Ce||fe&&K,{isFeatureEnabled:Oe}=P(L.isDepositAccountsFeatureEnabled),{isFeatureEnabled:Pe}=P(L.isTreasuryEnabled),{isFeatureEnabled:Fe}=P(L.isChargeCardFeatureEnabled),{isFeatureEnabled:se}=P(L.isDebitCardFeatureEnabled),j=z(a=>a.tenantState.fetchState),E=z(a=>a.tenantState.activeTenantFetchState.fetchState),u=E==="Completed"||j==="Completed"?cs(se,r):void 0,$=E==="Completed"||j==="Completed"?ds(r):void 0,Le=E==="Completed"||j==="Completed"?ms(r):void 0,ke=Fe||se||!!Le||!!$||!!u,{isFeatureEnabled:Be}=P(L.isSettingsFeatureEnabled),{isFeatureEnabled:Ve}=P(L.isAiCfoFileUploadEnabled),Y=z(a=>us(a));if(o!=null){const a=H.getSignedInUserTenant(o);h!=null&&a!=null&&je(h,r,N)}const w={tenantId:b,userId:h?.userId,sessionId:h?.zeniSessionId},ne=_s(),A=qs(),Ne=r.company==null||A?.loggedInUserRoleMap!=null&&Ae(A.loggedInUserRole),Se=As(A?.loggedInUserRoleMap),ae=v.useRef(!0),te=Te("/:tenantEmailDomain/onboarding/*")!==null,Q=Te("/:tenantEmailDomain/month_end_close_checks/review/:selectedTab/:selectedPeriod/*"),Me=z(a=>w.tenantId!=null?Es(a,w.tenantId):void 0);v.useEffect(()=>{f(k.TENANT_FETCHING),i(o)},[o]),v.useEffect(()=>{if(Q!=null&&b!=null){const a=Q.params.selectedPeriod;if(a!=null){const D=a.split("-");if(D.length===2){const d=ps(Number(D[0])),s=Number(D[1]),m=Is(`01-${d<10?`0${d}`:d}-${s}`,he.getLocalizedStrings().dateFormat.analytics.DDDashMMDashYYYY),M=gs();m.isAfter(M,"month")===!1?U(xs(b,{month:d,year:s})):V("./month_end_close_checks/review")}}}},[Q,b]),v.useEffect(()=>{S||(be(!0),f(k.TENANT_FETCHING)),ae.current?ae.current=!1:!Ts(ne,w)&&H.isSignedIn()&&(f(k.TENANT_FETCHING),function(a,D,d,s){if(pe(D?.userId,D?.zeniSessionId,a.tenantId),d(ks(!0)),d(Ie(a.tenantId)),a.tenantId!=null&&_.clearTenant(a.tenantId),a.tenantId!=null){const m=H.getSignedInUserTenantWithId(a.tenantId);s&&he.updateAppLocaleID(Ks(s)),m?.tenantEmailDomain!=null&&H.saveActiveTenantDomainForUser(m?.tenantEmailDomain)}a.userId!=null?X.identify(a.userId,{tenant_id:a.tenantId}):X.resetUserIdentity()}(w,h,U,Me))},[w,ne,h,U,H]),v.useEffect(()=>{H.isSignedIn()&&(f(k.TENANT_FETCHING),function(a,D,d,s,m,M,B){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){B(Ie(s));const W=H.getSignedInUserTenantWithId(s);W?.tenantEmailDomain!=null&&H.saveActiveTenantDomainForUser(W?.tenantEmailDomain),pe(m?.userId,m?.zeniSessionId,s),_.shouldFetchExcludedResources(s)&&(_.markExcludedResourcesFetchStarted(s),B(ge(m.userId,s))),_.shouldFetchConnections(s)&&(_.markConnectionsFetchStarted(s),B(xe(m.userId,s)))}else q&&is&&_.shouldFetchExcludedResources(s)&&(_.markExcludedResourcesFetchStarted(s),B(ge(m.userId,s))),q&&rs&&_.shouldFetchConnections(s)&&(_.markConnectionsFetchStarted(s),B(xe(m.userId,s)));if(q){X.identify(m.userId,{tenant_id:s});const W=s==null||s!=null&&(D==="Completed"||D==="Error");a==="Completed"||D!=="Not-Started"&&D!=="Error"||s==null||!_.shouldFetchActiveTenant(s)||(_.markActiveTenantFetchStarted(s),M(k.TENANT_FETCHING),B(Bs(m.userId,s,m.zeniSessionId))),W&&(a==="Not-Started"||a==="Error")&&_.shouldFetchAllTenants()&&(_.markAllTenantsFetchStarted(),B(Ee(m.userId,m.zeniSessionId)))}}(j,E,r,b,h,f,U))},[b,E]),v.useEffect(()=>{H.isSignedIn()&&j==="Completed"&&Y.tenantsBaseInOrder.length>0&&(Z(k.TENANT_FETCHING),H.saveSignedInUserTenants(hs(Y.tenantsBaseInOrder)),h!=null&&je(h,r,N,void 0,Y.tenantsBaseInOrder))},[Y,j,r,h]),v.useEffect(()=>{E==="In-Progress"&&f(k.TENANT_FETCHING),E!=="Completed"&&E!=="Error"||(E==="Completed"&&b!=null?(O(),_.markActiveTenantFetchCompleted(b)):E==="Error"&&b!=null&&(_.markActiveTenantFetchFailed(b),Z(k.TENANT_FETCHING),Z(k.TENANT_SWITCHING))),j!=="Completed"&&j!=="Error"||(j==="Completed"?_.markAllTenantsFetchCompleted():j==="Error"&&_.markAllTenantsFetchFailed())},[E,j,b,S]);const ie=v.useRef(!1);v.useEffect(()=>{!ie.current&&E==="Completed"&&S&&(ie.current=!0,function(a=Qs,D=3e3){setTimeout(()=>{const d=s=>{if(s>=a.length)return;const m=a[s],M=Js[m];M!=null?M().then(()=>ee(()=>d(s+1))).catch(()=>ee(()=>d(s+1))):d(s+1)};ee(()=>d(0))},D)}())},[E,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&&Ae(r.userRole),re=r?.company==null||r.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!C,oe=ke&&!C,Ge=Us(A?.loggedInUserRoleMap),$e=r.externalConnections?.accounting[0]?.isValid,le=r.company?.companyOnboardingInfo.isOnboardingCompleted,ce=r?.company==null||r.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!C,de=ce&&Ds(A?.loggedInUserRoleMap),me=Oe&&!C,Ye=r.company!=null&&Hs(r.company),qe=Pe&&Ye===!0&&!C,We=re&&Rs(A?.loggedInUserRoleMap),Ke=oe&&bs(A?.loggedInUserRoleMap),Je=me&&ys(A?.loggedInUserRoleMap),Qe=fs(A?.loggedInUserRoleMap),Xe=Cs(A?.loggedInUserRoleMap),p=vs(A?.loggedInUserRoleMap),I=Os(A?.loggedInUserRoleMap),g=Ps(A?.loggedInUserRoleMap),x=Fs(A?.loggedInUserRoleMap),T=Ls(A?.loggedInUserRoleMap),ue=re&&x,_e=ce&&T,es=me&&p,ss=qe&&I,ns=oe&&g,as=r.excludedResources?.resources?.find(a=>a.resource==="/invites")!=null||Se===!0||Ge===!0||Qe===!0||Xe===!0;return H.isSignedIn()?b==null?j==="Completed"?e.jsx(c,{to:"/",replace:!0,state:{...G.state,message:"...",origin:G.pathname}}):(h!=null&&j!=="In-Progress"&&U(Ee(h.userId,h.zeniSessionId)),null):E!=="In-Progress"&&E!=="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(A.loggedInUserRoleMap).length>0?e.jsx(Zs,{children:e.jsxs(t,{element:e.jsx(Ws,{}),children:[e.jsx(t,{path:"/",element:e.jsx(Tn,{isDashboardAccess:F,isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,isTenantCardsOnly:$})}),e.jsx(t,{path:"dashboard/*",element:F?e.jsx(on,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reports/*",element:F?e.jsx(Xs,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"people/*",element:as||F?e.jsx(sn,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"forecast/*",element:F?e.jsx(nn,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"onboarding/*",element:e.jsx(an,{})}),e.jsx(t,{path:"transaction/*",element:F&&C===!1||we||ze?e.jsx(rn,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"transactions/*",element:F&&C===!1?e.jsx(mn,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"customer/*",element:F&&C===!1?e.jsx(Ue,{entityType:"customer"}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isTenantBankingOnly:u,isUserHasTreasuryAccess:I,tenantEmailDomain:o})}),e.jsx(t,{path:"vendor/*",element:F&&C===!1?e.jsx(Ue,{entityType:"vendor"}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"tasks",element:e.jsx(xn,{})}),e.jsx(t,{path:"tasks/*",element:e.jsx(In,{})}),e.jsx(t,{path:"address/*",element:We||de||Je||Ke?e.jsx(en,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"checking/*",element:es?e.jsx(cn,{}):e.jsx(y,{})}),e.jsx(t,{path:"treasury/*",element:ss?e.jsx(dn,{}):e.jsx(y,{})}),e.jsx(t,{path:"performance",element:ye?e.jsx(An,{}):e.jsx(Re,{tenantEmailDomain:o})}),e.jsx(t,{path:"month_end_close_checks/review/*",element:ve&&C===!1?e.jsx(En,{}):e.jsx(Re,{tenantEmailDomain:o})}),e.jsx(t,{path:"notifications/*",element:e.jsx(_n,{})}),e.jsx(t,{path:"vendors/*",element:Ne?e.jsx(tn,{}):e.jsx(y,{})}),e.jsx(t,{path:"bill/*",element:ue?e.jsx(De,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"bills/*",element:ue?e.jsx(De,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reimbursement/*",element:_e?e.jsx(He,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reimbursements/*",element:_e?e.jsx(He,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"settings/*",element:Be?e.jsx(ln,{hasAdminLevelAccess:de}):e.jsx(y,{})}),e.jsx(t,{path:"cards/*",element:ns?e.jsx(un,{}):e.jsx(y,{})}),e.jsx(t,{path:"rewards/*",element:Ze?e.jsx(pn,{}):e.jsx(y,{})}),e.jsx(t,{path:"/ai-cfo",element:J?e.jsx(c,{to:"explore"}):e.jsx(y,{})}),e.jsx(t,{path:"/ai-cfo/",element:J?e.jsx(c,{to:"explore"}):e.jsx(y,{})}),e.jsx(t,{path:"/ai-cfo/:session_id",element:J?e.jsx(gn,{isFileUploadEnabled:Ve}):e.jsx(y,{})}),e.jsx(t,{path:"*",element:e.jsx(y,{})})]})}):null:(i(void 0),e.jsx(c,{to:"onboarding",replace:!0})):null:(console.warn("User logged out!!"),i(void 0),e.jsx(c,{to:"/signin/auth",replace:!0,state:{...G.state,message:"...",origin:G.pathname}}))}const Tn=({isDashboardAccess:i,isUserHasZeniAccountsAccess:U,isUserHasChargeCardAccess:V,isUserHasBillPayAccess:o,isUserHasReimbursementAccess:N,isUserHasTreasuryAccess:f,isTenantBankingOnly:O,isTenantCardsOnly:Z})=>O===!0&&U?e.jsx(c,{to:"checking"}):Z===!0?e.jsx(c,{to:"cards"}):i?e.jsx(c,{to:"dashboard"}):U?e.jsx(c,{to:"checking"}):f?e.jsx(c,{to:"treasury"}):V?e.jsx(c,{to:"cards"}):o?e.jsx(c,{to:"bills"}):N?e.jsx(c,{to:"reimbursements"}):e.jsx(c,{to:"dashboard"}),R=({isUserHasZeniAccountsAccess:i,isUserHasChargeCardAccess:U,isUserHasBillPayAccess:V,isUserHasReimbursementAccess:o,isUserHasTreasuryAccess:N,isTenantBankingOnly:f,tenantEmailDomain:O})=>f===!0||i?e.jsx(Dn,{tenantEmailDomain:O}):N?e.jsx(Un,{tenantEmailDomain:O}):U?e.jsx(Hn,{tenantEmailDomain:O}):V?e.jsx(jn,{tenantEmailDomain:O}):o?e.jsx(hn,{tenantEmailDomain:O}):e.jsx(y,{}),hn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/reimbursements`}),jn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/bills`}),Un=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/treasury`}),Dn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/checking`}),Hn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/cards`}),Re=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/dashboard`});export{R as FallBackRoute,wn as default};
@@ -1,9 +0,0 @@
1
- import{j as s}from"./liveblocks-ZWx6HW-l.js";import{a}from"./sentry-C87w4Kip.js";import{h as c,u as m,j as p,N as g}from"./core-NS68e-Ni.js";import{z as d,B as y,t as b,e as f,g as h}from"./index-Da8Tk_yD.js";import{fM as I,fN as x,IF as j}from"./zeni-epic-state-DMGzDfBV.js";import{n as w}from"./mui-BOQqbf6o.js";import"./recharts-CYb8hS9h.js";import"./analytics-CoCgUkdF.js";import"./plaid-CLzwK82c.js";import"./dnd-DVlS_Tzy.js";import"./stripe-DMRn4zHo.js";import"./lottie-_frhG95Y.js";import"./lexical-B0eQyeR8.js";import"./pdf-B95TO9NA.js";import"./utils-CLB_b-LB.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e9b8631d-df81-41d1-9e5d-26e6b7fe9e86",e._sentryDebugIdIdentifier="sentry-dbid-e9b8631d-df81-41d1-9e5d-26e6b7fe9e86")}catch{}})();function U(){const e=c(),t=m(),i=p(),n=a.useRef(!1),l=d.isSignedIn(),r=t.state?.message==="logout",o=r||l;return a.useEffect(()=>{o&&!n.current&&(n.current=!0,setTimeout(()=>{try{d.clearAll(),e(I()),e(x(!1)),j(),b.reset(),f.trackLogout(h.Event.logoutSuccess),f.resetUserIdentity()}catch(u){console.error("Error during sign out:",u)}finally{r||i("/signin/auth",{replace:!0})}},0))},[o,r]),o?s.jsx(v,{children:s.jsx(y,{fetchState:"In-Progress"})}):s.jsx(g,{to:"../",replace:!0})}const v=w.div`
2
- display: flex;
3
- height: 100vh;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- `;export{U as default};
@@ -1,9 +0,0 @@
1
- import{j as s}from"./liveblocks-ZWx6HW-l.js";import $ from"./NotFoundScreen-DygsPbRQ.js";import{a as m}from"./sentry-C87w4Kip.js";import{j as A,h as V,u as M,l as R,g as f,N as _,k as z,n as O,o as u}from"./core-NS68e-Ni.js";import{w as q,z as w,r as b,x as H,e as T,g as K,cD as Q,j as Z,ao as J,p as W}from"./index-Da8Tk_yD.js";import{eN as C,Pk as G,EQ as v,EE as X,Fg as Y,Pl as P,Pm as ee,EA as ae,Ex as te,pF as se,pt as ne,j$ as oe,EK as ie,Pn as re,EH as le,EV as ce,EU as de}from"./zeni-epic-state-DMGzDfBV.js";import{n as me}from"./mui-BOQqbf6o.js";import{u as pe}from"./useInitialThreadRequest-BJwiGLk9.js";import{M as ue}from"./MobileAppDrawer-BvUTGun5.js";import ke from"./TaskListScreen-D_1MZmAs.js";import"./recharts-CYb8hS9h.js";import"./analytics-CoCgUkdF.js";import"./plaid-CLzwK82c.js";import"./dnd-DVlS_Tzy.js";import"./stripe-DMRn4zHo.js";import"./lottie-_frhG95Y.js";import"./lexical-B0eQyeR8.js";import"./pdf-B95TO9NA.js";import"./utils-CLB_b-LB.js";import"./useAskAiCfoHostNavButtonProps-4p-dajJC.js";import"./useFetchSuggestedQuestionsWhenReady-Cr0f3fzA.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]="480b251d-991c-49e4-8844-1c56cefd22b1",e._sentryDebugIdIdentifier="sentry-dbid-480b251d-991c-49e4-8844-1c56cefd22b1")}catch{}})();const fe=z(function(e,t){const{location:n,taskGroupId:l}=t,d=P(e,t.taskId),c=C(e),i=l!=null?ee(e.taskGroupState,l):void 0,p=w.getSignedInUser(),a=c.tenantId,r={userId:p?.userId??"",sessionId:p?.zeniSessionId??"",tenantId:a??""},k=G(e);return{taskDetailSelectorView:d,authParams:r,isNewClicked:n.state?.message==="comingFromTaskListPage",filesEndPoint:J.fileMicroServiceBaseUrl,companyName:t.currentTenant.companyName,companyId:t.currentTenant.companyId,currentUrl:`${Z.appUrl}${t.location.pathname}`,tagListView:k,taskGroupName:l!=null&&i!=null&&i.isDefault===!1?i.name:void 0}},function(e,t){const{taskId:n,navigate:l,currentTenant:d,location:c,taskGroupId:i}=t,{tenantEmailDomain:p}=d;return{onSaveChangesToLocalStore:a=>{e(de({taskDetailLocalData:a,taskId:n}))},onSaveDetailClick:()=>{e(ce(n,i))},onArchiveTaskClick:()=>{t.taskId!=null&&e(le(t.taskId))},onDismissClick:()=>{if(c.state?.message==="triggerBackClick"){const a=W(c.state?.pathnameStackToGoBack),r=a.poppedPathname??"../../dashboard";l(r,{state:{pathnameStackToGoBack:a.newStack}})}else{const a=B(p),r=b(c.state?.pathnameStackToGoBack,c.pathname);l(a,{state:{pathnameStackToGoBack:r}})}e(re({taskId:n}))},onDeleteTaskClick:()=>{e(ie(n))},updateFilesEntity:a=>{e(oe({files:a}))},onDeleteFile:a=>{e(ne(a))},onEditFileName:(a,r)=>{e(se(a,r.split(".")[0]))},onReloadTaskDetailPage:()=>{e(v(!1,n))},onCreateTagClick:a=>{e(te(a,n))},onDeleteTagClick:a=>{e(ae(a,n))}}})(Q);function I(){const e=A(),t=V(),n=M(),l=q(),{taskId:d,taskGroupId:c}=R(),i=f(o=>C(o)),p=pe(i?.companyId),[a,r]=m.useState(!1),[k,F]=m.useState(!1),[S,L]=m.useState(!1),[x,N]=m.useState(!1),j=f(o=>G(o)),y=f(o=>o.taskGroupViewState.fetchState);m.useEffect(()=>{k||(F(!0),t(v(!1,d)))},[k,t]),m.useEffect(()=>{S||j.fetchState==="Completed"||(L(!0),t(X()))},[S,t,j.fetchState]),m.useEffect(()=>{x||y==="Completed"||(N(!0),t(Y()))},[x,t,y]);const D=f(o=>P(o,d)),g=D.fetchState,E=w.getSignedInUser();if(E==null)throw Error("Can't access task detail page without signing in...");if(g==="Error"&&D.error?.code===400){const{tenantEmailDomain:o}=i,h=B(o),U=b(n.state?.pathnameStackToGoBack,n.pathname);return s.jsx(_,{to:h,state:{pathnameStackToGoBack:U}})}return s.jsxs(s.Fragment,{children:[g==="Completed"?s.jsx(H,{analytics:T,onLoad:o=>(h=>h.trackPageLoaded(K.Event.taskDetailPage))(o)}):null,s.jsxs(ge,{children:[s.jsx(ue,{isAppContentDrawerOpen:a,handleDrawerToggle:o=>{r(o)}}),s.jsx(fe,{analytics:T,currentTenant:i,handleZeniLogoClick:()=>{l.toggle()},initialOpenThreadRequest:p,location:n,loggedInUser:E,navigate:e,taskGroupId:c,taskId:d,taskDetailFetchState:g})]})]})}const ge=me.div`
2
- display: flex;
3
- min-height: 100%;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- `,B=e=>`/${e}/tasks`;function Ae(){return s.jsxs(O,{children:[s.jsx(u,{path:"/new",element:s.jsx(I,{})}),s.jsx(u,{path:"/new/:taskGroupId",element:s.jsx(I,{})}),s.jsx(u,{path:"/group/:taskGroupId",element:s.jsx(ke,{})}),s.jsx(u,{path:"/:taskId",element:s.jsx(I,{})}),s.jsx(u,{path:"*",element:s.jsx($,{})})]})}export{Ae as default};
@@ -1 +0,0 @@
1
- import{j as t}from"./liveblocks-ZWx6HW-l.js";import i from"./NotFoundScreen-DygsPbRQ.js";import{T as r}from"./TransactionDetailScreen-CBUCmjK_.js";import"./sentry-C87w4Kip.js";import{n as d,o as e}from"./core-NS68e-Ni.js";import"./zeni-epic-state-DMGzDfBV.js";import"./recharts-CYb8hS9h.js";import"./index-Da8Tk_yD.js";import"./mui-BOQqbf6o.js";import"./analytics-CoCgUkdF.js";import"./plaid-CLzwK82c.js";import"./dnd-DVlS_Tzy.js";import"./stripe-DMRn4zHo.js";import"./lottie-_frhG95Y.js";import"./lexical-B0eQyeR8.js";import"./pdf-B95TO9NA.js";import"./utils-CLB_b-LB.js";import"./useAskAiCfoHostNavButtonProps-4p-dajJC.js";import"./useFetchSuggestedQuestionsWhenReady-Cr0f3fzA.js";import"./decodeURIComponentSafe-D5FRXf4K.js";import"./routePaths-Bf6rAHfg.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-ZWx6HW-l.js";import{a as f}from"./sentry-C87w4Kip.js";import{q as u,h,g as b,N as y}from"./core-NS68e-Ni.js";import{IE as I,eO as w,yZ as x}from"./zeni-epic-state-DMGzDfBV.js";import{z as l,B as j,E as S,W as E}from"./index-Da8Tk_yD.js";import{n as g}from"./mui-BOQqbf6o.js";import"./recharts-CYb8hS9h.js";import"./analytics-CoCgUkdF.js";import"./plaid-CLzwK82c.js";import"./dnd-DVlS_Tzy.js";import"./stripe-DMRn4zHo.js";import"./lottie-_frhG95Y.js";import"./lexical-B0eQyeR8.js";import"./pdf-B95TO9NA.js";import"./utils-CLB_b-LB.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]="b46bac93-b4d1-4b2e-837e-5f1449489733",e._sentryDebugIdIdentifier="sentry-dbid-b46bac93-b4d1-4b2e-837e-5f1449489733")}catch{}})();const Z=()=>{const[e]=u(),t=e.get("code")??"",s=e.get("state")??"",p=e.get("profileId")??"",[n,c]=f.useState(!1),a=h(),i=b(m=>I(m)),r=l.getSignedInUser(),d=l.getSignedInUserTenantWithId(s);if(r==null||d==null)return o.jsx(y,{to:"/signin/auth",replace:!0});if(r==null)throw Error("Can't access this page without signing in...");return w(r.userId,r.zeniSessionId,d?.tenantId),f.useEffect(()=>{n||(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{Z as default};
@@ -1,9 +0,0 @@
1
- import{j as i}from"./liveblocks-ZWx6HW-l.js";import{a as f}from"./sentry-C87w4Kip.js";import{j as x,h as B,u as N,l as $,g as p}from"./core-NS68e-Ni.js";import{HE as s,HD as j,NK as v,eN as C,NL as D}from"./zeni-epic-state-DMGzDfBV.js";import{Z as E,ao as g,h as L,z as T,B as z,bZ as P,p as U}from"./index-Da8Tk_yD.js";import{n as _}from"./mui-BOQqbf6o.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]="2c193b6c-624e-4683-a671-b6f5cca71796",e._sentryDebugIdIdentifier="sentry-dbid-2c193b6c-624e-4683-a671-b6f5cca71796")}catch{}})();const Z=_.div`
2
- display: flex;
3
- height: 100vh;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- `;function q(){const e=x(),n=B(),d=E(),l=N();let{accountId:a}=$(),m=`${g.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${a}`;a==null&&l.pathname.includes(`${s}/statements`)&&(a=s,m=`${g.bankingMicroServiceBaseUrl}/1.0/${s}`);const[u,h]=f.useState(!1),y=L();f.useEffect(()=>{u||(h(!0),n(j(a??"",!1)))},[u,n]);const o=p(t=>v(t,a??"")),b=()=>{const t=U(l.state?.pathnameStackToGoBack),S=t.poppedPathname??"..";e(S,{state:{pathnameStackToGoBack:t.newStack}})},c=T.getSignedInUser(),r=p(t=>C(t)),I={userId:c?.userId??"",sessionId:c?.zeniSessionId??"",tenantId:r.tenantId??""},w=D(a??"")===!0?s:o.zeniAccountDetail?.accountLast4??"",k=r.company?.companyInfo.companyLegalName??r.companyName;if(c==null)throw Error("Can't access address page without signing in...");return o.fetchState!=="Completed"?i.jsx(z,{fetchState:"In-Progress",style:{backgroundColor:y.colors.grey5}}):i.jsx(Z,{windowSize:d,children:i.jsx(P,{currentTenantCompanyName:k,statementListView:o,accountLast4:w,onBackClick:b,authParams:I,downloadEndPoint:m})})}export{q as Z};
@@ -1 +0,0 @@
1
- import{N as n}from"./index-Da8Tk_yD.js";import"./mui-BOQqbf6o.js";import"./sentry-C87w4Kip.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new o.Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="5a061294-c353-4827-bf8b-964b7a2fddc7",o._sentryDebugIdIdentifier="sentry-dbid-5a061294-c353-4827-bf8b-964b7a2fddc7")}catch{}})();function r(o){if(o.companyLocaleInfo!=null&&o.companyLocaleInfo.languageCode.length>0&&o.companyLocaleInfo.companyIncCountryCode.length>0){const e=`${o.companyLocaleInfo.languageCode.toLowerCase()}-${o.companyLocaleInfo.companyIncCountryCode.toUpperCase()}`;return console.warn(`localeID ${e}`),n(e)??"en"}return"en"}export{r as t};
@@ -1 +0,0 @@
1
- import{a as d}from"./sentry-C87w4Kip.js";import{Z as b,c as p,r as m,J as u}from"./index-Da8Tk_yD.js";import"./mui-BOQqbf6o.js";import{b as y}from"./useFetchSuggestedQuestionsWhenReady-Cr0f3fzA.js";import{j as k,u as g,l as h}from"./core-NS68e-Ni.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]="a0fbca81-e016-4ec6-bcb3-5ff2f8913d6c",e._sentryDebugIdIdentifier="sentry-dbid-a0fbca81-e016-4ec6-bcb3-5ff2f8913d6c")}catch{}})();function E(e){const{isAiCfoOpen:a,setIsAiCfoOpen:t,mobileExploreReferrer:n}=e,f=k(),o=g(),{tenantEmailDomain:s}=h(),i=b(),r=u(i),c=p();return{isAiCfoAccessEnabled:y()&&c&&!a,onAskAiCfoClick:d.useCallback(()=>{if(s!=null)if(r){const l=m(o.state?.pathnameStackToGoBack,o.pathname);f(`/${s}/ai-cfo/explore`,{state:{pathnameStackToGoBack:l,referrer:n}})}else t(!0)},[r,o.pathname,o.state,n,f,t,s])}}export{E as u};
@@ -1 +0,0 @@
1
- import{a as u}from"./sentry-C87w4Kip.js";import{h as i,s as d}from"./core-NS68e-Ni.js";import{a as b,d as h,c as g,$ as m,I as C}from"./index-Da8Tk_yD.js";import"./mui-BOQqbf6o.js";import{eK as l,hF as p}from"./zeni-epic-state-DMGzDfBV.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]="23434624-8d1c-4e11-9aef-6896c5cdcca6",e._sentryDebugIdIdentifier="sentry-dbid-23434624-8d1c-4e11-9aef-6896c5cdcca6")}catch{}})();function I(){const{useFeatureGate:e}=b(),{isFeatureEnabled:t}=e(h.isAiCfoNavButtonEnabled),n=g();return t&&n}function y(e,t){return e!=="Completed"&&e!=="In-Progress"&&!(e==="Error"&&!t)}function x(e){const{areTenantIdsInSync:t}=C(),n=g(),a=I();return t&&e&&a&&n}function _(e){const{pageContexts:t,canFetchSuggestedQuestions:n}=e,a=i(),s=d(),o=u.useRef(null);u.useEffect(()=>{const c=o.current===!1&&n===!0;if(o.current=n,n&&t!=null&&t.length!==0)for(const r of t){const f=l(s.getState(),r)?.fetchState;y(f,c)&&a(p({pageContext:r}))}},[n,a,t,s])}function S(e){(function(t){const{pageContext:n,canFetchSuggestedQuestions:a}=t,s=i(),o=d(),c=u.useRef(null);u.useEffect(()=>{const r=c.current===!1&&a===!0;if(c.current=a,n==null||!a)return;const f=l(o.getState(),n)?.fetchState;y(f,r)&&s(p({pageContext:n}))},[a,s,n,o])})({canFetchSuggestedQuestions:x(e.isDataReady),pageContext:e.pageContext})}function Q(e){S({pageContext:m(),isDataReady:e.isDataReady})}export{_ as a,I as b,Q as c,x as u};