@zeniai/web-app-ui 5.2.1-qa → 5.2.2-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 (126) hide show
  1. package/dist/assets/AddressRoutes-BpuOCrFB.js +1 -0
  2. package/dist/assets/{AddressScreen-nKSLWJuc.js → AddressScreen-CUr-HVcT.js} +2 -2
  3. package/dist/assets/{AiCfoScreen-YMI_Ue0S.js → AiCfoScreen-CQ5-XgG8.js} +1 -1
  4. package/dist/assets/{BillPayApprovalRoutes-CsFX5rjw.js → BillPayApprovalRoutes-D2_kNfaY.js} +1 -1
  5. package/dist/assets/{BillPayRoutes-BHa9CFLd.js → BillPayRoutes-COEOJVsM.js} +17 -17
  6. package/dist/assets/{BusinessVerificationPageScreen-DPcnOTgE.js → BusinessVerificationPageScreen-BwKYUVXz.js} +2 -2
  7. package/dist/assets/{CardsAiCfoScreen-Byi_dC9M.js → CardsAiCfoScreen-HxTonb4Z.js} +1 -1
  8. package/dist/assets/{ChargeCardRoutes-Bt1hyW6W.js → ChargeCardRoutes-Br_JifOo.js} +10 -10
  9. package/dist/assets/CompanyPassportScreen-D5p8YGqx.js +1 -0
  10. package/dist/assets/ConnectionAuthScreen-C7C9oP-O.js +11 -0
  11. package/dist/assets/CustomerOnboardingAuthScreen-DHYr81WM.js +1 -0
  12. package/dist/assets/{CustomerOnboardingRoutes-DG97SmPk.js → CustomerOnboardingRoutes-D7xgi9kE.js} +8 -8
  13. package/dist/assets/{DashboardRoutes-A-E1fxlU.js → DashboardRoutes-CrUjulzU.js} +4 -4
  14. package/dist/assets/{DefaultTenantHome-40mCVCF-.js → DefaultTenantHome-CQVq15dz.js} +1 -1
  15. package/dist/assets/DomesticWireDetailScreen-mk_MQEQb.js +18 -0
  16. package/dist/assets/{DrawerScreen-OM7n56Dx.js → DrawerScreen-BWm1l0_Z.js} +1 -1
  17. package/dist/assets/EntityDetailRoutes-B8mgxcsD.js +1 -0
  18. package/dist/assets/{ExpenseAutomationRoutes-BmkWbc12.js → ExpenseAutomationRoutes-CY3gwyyO.js} +3 -3
  19. package/dist/assets/{FeaturePreviewScreen-CzJwTXfy.js → FeaturePreviewScreen-C0EZ8JBW.js} +1 -1
  20. package/dist/assets/HubSpotOAuthCallbackScreen-BwGxeepQ.js +1 -0
  21. package/dist/assets/{MagicLinkRoutes-C13fH60b.js → MagicLinkRoutes-DQ1ug8CF.js} +2 -2
  22. package/dist/assets/MagicLinkSignInScreen-tDhHVTnP.js +12 -0
  23. package/dist/assets/{MobileAppDrawer-DdLzgZKv.js → MobileAppDrawer-DJ3VpNqR.js} +1 -1
  24. package/dist/assets/NotFoundScreen-CamJ30ZO.js +1 -0
  25. package/dist/assets/{NotificationRoutes-DbrdVTft.js → NotificationRoutes-DK8GwbT3.js} +1 -1
  26. package/dist/assets/{OAuthConsentScreen-HS2eshhY.js → OAuthConsentScreen-Bk2mnH8v.js} +1 -1
  27. package/dist/assets/PandLWithForecastRoutes-BTkp9Nfx.js +1 -0
  28. package/dist/assets/PeopleRoutes-BqJR3HeE.js +22 -0
  29. package/dist/assets/PerformanceRoutes-y59oCr7_.js +1 -0
  30. package/dist/assets/{Preview-R-H_SCJF.js → Preview-ChMTg4zf.js} +1 -1
  31. package/dist/assets/{QBOConnectionScreen-BgrYxdBK.js → QBOConnectionScreen-CmRiNFSq.js} +1 -1
  32. package/dist/assets/ReferralListScreen-joOUNqNx.js +5 -0
  33. package/dist/assets/ReimbursementApprovalRoutes-CFENXyD5.js +1 -0
  34. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-Cx0XJ_uS.js → ReimbursementApprovalRuleDetailScreen-Be3YasZE.js} +1 -1
  35. package/dist/assets/{ReimbursementRoutes-Dkp04D2k.js → ReimbursementRoutes-BcC0c-hC.js} +5 -5
  36. package/dist/assets/{ReportsRoutes-BMTrr5Qa.js → ReportsRoutes-Do7TO9Xv.js} +1 -1
  37. package/dist/assets/RewardsRoutes-CxzqjLpY.js +1 -0
  38. package/dist/assets/{ScreenRoutes-DT-K2cjb.js → ScreenRoutes-Ch7ptvuu.js} +2 -2
  39. package/dist/assets/{SettingsRoutes-C2EyidL4.js → SettingsRoutes-BKO1Pjri.js} +8 -8
  40. package/dist/assets/{SetupPagesScreen-Bu5xPZaM.js → SetupPagesScreen-Dvy2GpFH.js} +5 -5
  41. package/dist/assets/SignInScreen-BZWZX1Q0.js +1 -0
  42. package/dist/assets/SignOutScreen-ej7zxFCM.js +9 -0
  43. package/dist/assets/{TaskListScreen-KWPzBGE2.js → TaskListScreen-CPjplYNX.js} +2 -2
  44. package/dist/assets/TaskRoutes-D6e-kYJP.js +9 -0
  45. package/dist/assets/{TransactionDetailRoutes-RaFXCYib.js → TransactionDetailRoutes-BQtZsJD1.js} +1 -1
  46. package/dist/assets/{TransactionDetailScreen-DgWPeyaq.js → TransactionDetailScreen-B1AYJUjQ.js} +2 -2
  47. package/dist/assets/{TransactionListRoutes-CjUKG5HR.js → TransactionListRoutes-De3qcM42.js} +1 -1
  48. package/dist/assets/{TreasuryRoutes-BKd9Wuop.js → TreasuryRoutes-C1F9Ijug.js} +5 -5
  49. package/dist/assets/{VendorsRoutes-DrkDaPal.js → VendorsRoutes-XJ9cWDA2.js} +21 -21
  50. package/dist/assets/WiseConfirmationScreen-kawXhbh0.js +12 -0
  51. package/dist/assets/{ZeniAccountRoutes-dq70WeFM.js → ZeniAccountRoutes-BXPbqBZ6.js} +9 -9
  52. package/dist/assets/ZeniAccountStatementScreen-DR8Npwal.js +9 -0
  53. package/dist/assets/{accountMappingHelper-D_5QqKtd.js → accountMappingHelper-BXTm4qLL.js} +1 -1
  54. package/dist/assets/{analytics-Dx20Frgp.js → analytics-B1ozuY-_.js} +1 -1
  55. package/dist/assets/analyticsHelper-mm28SP1t.js +1 -0
  56. package/dist/assets/{core-Deu6zgNz.js → core-jHXRcmGr.js} +1 -1
  57. package/dist/assets/{decodeURIComponentSafe-B2B9XdGW.js → decodeURIComponentSafe-C8Ut439h.js} +1 -1
  58. package/dist/assets/{dnd-CQEwIj2b.js → dnd-DXsHzzkY.js} +1 -1
  59. package/dist/assets/{empty-D6OiEgen.js → empty-CT_SeA8A.js} +1 -1
  60. package/dist/assets/{empty-BYHCt1Ql.js → empty-DkofjAEy.js} +1 -1
  61. package/dist/assets/{emptyVideoElement-DT5ERh7k.js → emptyVideoElement-xWUlB5cO.js} +1 -1
  62. package/dist/assets/epic-BU3yGtpS.js +2 -0
  63. package/dist/assets/{getLocaleForTenant-Goc_zo4E.js → getLocaleForTenant-BNQJePqV.js} +1 -1
  64. package/dist/assets/{index-DUGvnB6l.js → index-BaVUy8OL.js} +1 -1
  65. package/dist/assets/{index-x9_ludBd.js → index-BsfTwJVJ.js} +2 -2
  66. package/dist/assets/{index-CCeVfWXG.js → index-CVfL0TVn.js} +1 -1
  67. package/dist/assets/{index-s1I91N3w.js → index-Cz79PJvB.js} +1 -1
  68. package/dist/assets/{index-D1FLsJEr.js → index-D3N1b9aQ.js} +7 -7
  69. package/dist/assets/{index-Bpl8YvUJ.js → index-Dd8kzaST.js} +1 -1
  70. package/dist/assets/{index-DXBKeb53.js → index-bO5KWXDm.js} +1 -1
  71. package/dist/assets/{index-Diht5HAX.js → index-gdhkfqne.js} +1 -1
  72. package/dist/assets/{lexical-C3dsnw0c.js → lexical-BsEGFMKX.js} +1 -1
  73. package/dist/assets/{liveblocks-DJRxBaIV.js → liveblocks-Cl_SAGXq.js} +1 -1
  74. package/dist/assets/{lottie-CqN_xVLe.js → lottie-BvP-9pT9.js} +1 -1
  75. package/dist/assets/{mui-2-6pepya.js → mui-DT0mOTYO.js} +1 -1
  76. package/dist/assets/{pathToGoBack-oWhCBlv_.js → pathToGoBack-DeIlb7In.js} +1 -1
  77. package/dist/assets/{pdf-DoNTLdQS.js → pdf-CgzfzxbY.js} +3 -3
  78. package/dist/assets/{pdf-lib-CQlBYVN1.js → pdf-lib-BFqwhQQP.js} +1 -1
  79. package/dist/assets/{plaid-CAtEruxd.js → plaid-NlhYlsbZ.js} +1 -1
  80. package/dist/assets/{pusher-DVgs2vjL.js → pusher-Q2OMJpwL.js} +1 -1
  81. package/dist/assets/{react-BQK_PZ7X.js → react-3JBqx4v7.js} +1 -1
  82. package/dist/assets/{react-C1v_lzEp.js → react-BXjQIhaM.js} +1 -1
  83. package/dist/assets/{react-B9LU5ksb.js → react-C69jv4Ir.js} +1 -1
  84. package/dist/assets/{react-CuQlv2Xo.js → react-CbTW5azc.js} +1 -1
  85. package/dist/assets/{react-DvM9SJ-E.js → react-CzT5_e98.js} +1 -1
  86. package/dist/assets/{react-CaUElg_H.js → react-DyPd6pWl.js} +1 -1
  87. package/dist/assets/{recharts-DhkBu8Nc.js → recharts-qvF3Dod3.js} +1 -1
  88. package/dist/assets/{routePaths-DnU4nZVO.js → routePaths-m79Ycpnf.js} +1 -1
  89. package/dist/assets/{sentry-CCv9H2LX.js → sentry-4tqT1r6y.js} +1 -1
  90. package/dist/assets/{url-WAroKCYO.js → url-CXugcAfw.js} +1 -1
  91. package/dist/assets/{url-PHEx2VF6.js → url-yIFPVih_.js} +1 -1
  92. package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-2UTOy-pu.js → useAiCfoDashboardSuggestedQuestionsChips-BunYETHX.js} +1 -1
  93. package/dist/assets/{useAskAiCfoHostNavButtonProps-BSeuzuMu.js → useAskAiCfoHostNavButtonProps-DNA9YGXg.js} +1 -1
  94. package/dist/assets/useCashManagementBanner-TkTWt3zi.js +1 -0
  95. package/dist/assets/{useChargeCardPusherEvents-BKAhPUAk.js → useChargeCardPusherEvents-CTk-yEyL.js} +1 -1
  96. package/dist/assets/{useDeviceId-BPEf1gm7.js → useDeviceId-DYiky9LJ.js} +1 -1
  97. package/dist/assets/{useEmailConnectResultRefresh-CC7bzNqD.js → useEmailConnectResultRefresh-B9Wz5ZE4.js} +1 -1
  98. package/dist/assets/{useInitialThreadRequest-BLJkGJ7X.js → useInitialThreadRequest-DE7N6h-n.js} +1 -1
  99. package/dist/assets/{utils-Fa4tVlqJ.js → utils-Dc4uXotD.js} +1 -1
  100. package/dist/assets/{withTransactionSidePanel-DGRTBEXL.js → withTransactionSidePanel-C-SPdXRH.js} +2 -2
  101. package/dist/assets/{zeni-epic-state-Bs-2KETC.js → zeni-epic-state-BER7XwD9.js} +5 -5
  102. package/dist/index.html +1 -1
  103. package/package.json +3 -3
  104. package/dist/assets/AddressRoutes-_dq1yzrb.js +0 -1
  105. package/dist/assets/CompanyPassportScreen-iguimt1Z.js +0 -1
  106. package/dist/assets/ConnectionAuthScreen-B_sx8D_y.js +0 -11
  107. package/dist/assets/CustomerOnboardingAuthScreen-DgFgTk04.js +0 -1
  108. package/dist/assets/DomesticWireDetailScreen-DA0L_Ocw.js +0 -18
  109. package/dist/assets/EntityDetailRoutes-B_0KYTwn.js +0 -1
  110. package/dist/assets/HubSpotOAuthCallbackScreen-CmMEpDfA.js +0 -1
  111. package/dist/assets/MagicLinkSignInScreen-9In7ZPw9.js +0 -12
  112. package/dist/assets/NotFoundScreen-L94hFyts.js +0 -1
  113. package/dist/assets/PandLWithForecastRoutes-DRhxh1ur.js +0 -1
  114. package/dist/assets/PeopleRoutes-CZ-1HcmI.js +0 -22
  115. package/dist/assets/PerformanceRoutes-KqN8s96O.js +0 -1
  116. package/dist/assets/ReferralListScreen-BI2I20EQ.js +0 -5
  117. package/dist/assets/ReimbursementApprovalRoutes-BI5htWMH.js +0 -1
  118. package/dist/assets/RewardsRoutes-DDbomjok.js +0 -1
  119. package/dist/assets/SignInScreen-DwCk4nzP.js +0 -1
  120. package/dist/assets/SignOutScreen-D7PeHepA.js +0 -9
  121. package/dist/assets/TaskRoutes-DLfDlpMH.js +0 -9
  122. package/dist/assets/WiseConfirmationScreen-qDF39yp8.js +0 -12
  123. package/dist/assets/ZeniAccountStatementScreen--gvYWrVM.js +0 -9
  124. package/dist/assets/analyticsHelper-Ds6_JcxE.js +0 -1
  125. package/dist/assets/epic-MtyVcf5U.js +0 -2
  126. package/dist/assets/useCashManagementBanner-DGRgaWAY.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-D1FLsJEr.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-CCv9H2LX.js"><link rel="modulepreload" crossorigin href="/assets/core-Deu6zgNz.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-Bs-2KETC.js"><link rel="modulepreload" crossorigin href="/assets/mui-2-6pepya.js"><link rel="modulepreload" crossorigin href="/assets/analytics-Dx20Frgp.js"><link rel="modulepreload" crossorigin href="/assets/utils-Fa4tVlqJ.js"><link rel="stylesheet" crossorigin href="/assets/index-BUmr5maU.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-D3N1b9aQ.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-4tqT1r6y.js"><link rel="modulepreload" crossorigin href="/assets/core-jHXRcmGr.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-BER7XwD9.js"><link rel="modulepreload" crossorigin href="/assets/mui-DT0mOTYO.js"><link rel="modulepreload" crossorigin href="/assets/analytics-B1ozuY-_.js"><link rel="modulepreload" crossorigin href="/assets/utils-Dc4uXotD.js"><link rel="stylesheet" crossorigin href="/assets/index-BUmr5maU.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.2.1-qa",
3
+ "version": "5.2.2-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.31",
31
- "@zeniai/client-epic-state": "5.1.29",
32
- "@zeniai/web-components": "4.2.21",
31
+ "@zeniai/client-epic-state": "5.1.26",
32
+ "@zeniai/web-components": "4.2.22",
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-DJRxBaIV.js";import{A as d}from"./AddressScreen-nKSLWJuc.js";import i from"./NotFoundScreen-L94hFyts.js";import"./sentry-CCv9H2LX.js";import{o as s,p as r}from"./core-Deu6zgNz.js";import"./zeni-epic-state-Bs-2KETC.js";import"./recharts-DhkBu8Nc.js";import"./index-D1FLsJEr.js";import"./mui-2-6pepya.js";import"./analytics-Dx20Frgp.js";import"./plaid-CAtEruxd.js";import"./dnd-CQEwIj2b.js";import"./stripe-DMRn4zHo.js";import"./lottie-CqN_xVLe.js";import"./lexical-C3dsnw0c.js";import"./pdf-DoNTLdQS.js";import"./utils-Fa4tVlqJ.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]="cd0ff2b4-1e27-4329-addf-f475e5a9db34",t._sentryDebugIdIdentifier="sentry-dbid-cd0ff2b4-1e27-4329-addf-f475e5a9db34")}catch{}})();function _(){return e.jsxs(s,{children:[e.jsx(r,{path:"/edit/:addressType/:addressId",element:e.jsx(d,{})}),e.jsx(r,{path:"/new/:addressType",element:e.jsx(d,{})}),e.jsx(r,{path:"*",element:e.jsx(i,{})})]})}export{_ as default};
@@ -1 +0,0 @@
1
- import{j as m}from"./liveblocks-DJRxBaIV.js";import{a as g}from"./sentry-CCv9H2LX.js";import{h as w,u as x,g as T,i as k,j as O,n as E}from"./core-Deu6zgNz.js";import{z as C,be as P,D as F,d as V,f as j,ag as D,bf as A,au as L,av as U,v as B}from"./index-D1FLsJEr.js";import{eX as b,gj as M,tD as R,ge as _,c6 as z,Pp as G,bn as H,rD as Y,rr as q,l6 as X,mH as S,Pq as Z,bE as $,cz as N,mR as J,mU as K}from"./zeni-epic-state-Bs-2KETC.js";import"./mui-2-6pepya.js";import{d as Q}from"./routePaths-DnU4nZVO.js";import{M as W}from"./MobileAppDrawer-DdLzgZKv.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="903ac625-ab42-4473-96f2-1c1305229fc4",t._sentryDebugIdIdentifier="sentry-dbid-903ac625-ab42-4473-96f2-1c1305229fc4")}catch{}})();const ee=E(function(t){const a=_(t),i=C.getSignedInUser(),p=b(t),c=p.tenantId,l={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:c??""},f=z(p?.userRole??[])&&a.localData.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",e=G(t.companyConfigState),n=t.countryListState?.byCountryListCode?.nationalityCountryList?.countries??[];return{isCompanyVerified:a.companyView?.company?.company?.companyBillPayInfo?.companyVerificationStatus?.code==="verified",companyPassportView:a,allIndustries:e.companyIndustries??[],allNationalityCountries:n,isDisabled:f,authParams:l,filesEndPoint:`${L.fileMicroServiceBaseUrl}`,isZeniUser:H(i)}},function(t,a){const{companyId:i,currentTenant:p,navigate:c,location:l}=a,{tenantEmailDomain:f}=p;return{onScheduleClick:e=>{let n=e.href;n.includes("http")||(n="https://".concat(n)),window.open(n,"_blank")},onSaveAll:()=>{t(K())},onAddressClick:e=>{const n=Q(f,e),o=B(l.state?.pathnameStackToGoBack,l.pathname);c(n,{state:{pathnameStackToGoBack:o}})},onResetClick:()=>{t(J({companyId:i}))},onBackClick:()=>{c("../")},onCompanyDetailsChanged:e=>{const{companyInfo:n,incInfo:o,taxDetails:r,zeniFinanceTeam:d}=e,{website:u}=n,{meetingLink:y}=d,{incDate:s}=o,{taxesFiledYears:h}=r,v={companyInfo:{...n,website:u!=""&&u!=null?N(u):void 0,meetingLink:y!=""&&y!=null?N(y):void 0,industry:n.industry.selectedOption,companyIndustryType:n.companyIndustryType?.selectedOption??void 0,companySubIndustry:n.companySubIndustry?.selectedOption??void 0,businessModel:n.businessModel.selectedOption??"",companySourceOfFunds:n.companySourceOfFunds?.selectedOption,companySourceOfFundsDescription:n.companySourceOfFundsDescription??void 0,countriesOfOperations:n.countriesOfOperations?.selectedOptions?.map(I=>I.length===2?I:U(I))??[],transactionVolume:n.transactionVolume?.selectedOption??void 0,transactionVolumeDescription:n.transactionVolumeDescription??void 0,regulatedStatus:n.regulatedStatus??void 0,regulatedStatusDescription:n.regulatedStatusDescription??void 0,usNexus:n.usNexus??void 0,usNexusTypes:n.usNexusTypes?.selectedOptions??[],purposeOfAccount:n.purposeOfAccount?.selectedOption??void 0,purposeOfAccountDescription:n.purposeOfAccountDescription??void 0},incInfo:{typeOfInc:o.typeOfInc.selectedOption??"",stateOfInc:o.stateOfInc.selectedOption??"",incDate:s!=null?$(s?.toString()):s,fileId:o.fileIds[0]},taxDetails:{taxIdOrEIN:r.taxIdOrEIN,sicCode:r.sicCode,naicsCode:r.naicsCode,dunsNumber:r.dunsNumber,taxesFiledYears:h.selectedOptions.map(I=>parseInt(I)),fileId:r.fileIds[0]}};t(S({companyDetails:v}))},onPrimaryContactDetailsUpdated:e=>{t(S({primaryContact:{userId:e.userId,email:e.email.trim(),firstName:e.name.firstName,lastName:e.name.lastName}}))},onNewCompanyOfficerAdded:e=>{t(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:void 0}]}))},onNewCompanyOfficerRemoved:e=>{t(Z(e))},onCompanyOfficerUpdated:e=>{t(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:e.userId}]}))},updateFilesEntity:e=>{t(X({files:e}))},onDeleteFile:e=>{t(q(e))},onEditFileName:(e,n)=>{t(Y(e,n.split(".")[0]))}}})(A);function de(){const t=w(),a=x(),i=T(),{tenantEmailDomain:p}=k(),[c,l]=g.useState(!1),[f,e]=g.useState(!1),n=O(s=>s.companyViewState.passportView.fetchState),o=O(s=>s.companyConfigState.fetchState),r=O(s=>b(s)),d=r.companyId??C.getSignedInUserTenant(p)?.companyId;if(C.getSignedInUser()==null)throw Error("Can't access company details page without signing in...");g.useEffect(()=>{c||n!=="Not-Started"||d==null||(l(!0),a(M(d)))},[c,n,d,a]),g.useEffect(()=>{o==="Not-Started"&&a(R())},[o,a]);const u=s=>{e(s)},y=n==="Not-Started"||n==="In-Progress"||o==="Not-Started"||o==="In-Progress";return d!=null&&n==="Error"?m.jsx(P,{onGoHome:()=>t("../",{replace:!0}),onReload:()=>window.location.reload()}):m.jsxs(m.Fragment,{children:[m.jsx(F,{analytics:V,onLoad:s=>s.trackPageLoaded(j.Event.companyPassport,D(i)?"Settings":"Company Passport")}),D(i)?m.jsx(W,{isAppContentDrawerOpen:f,handleDrawerToggle:u}):null,m.jsx(ee,{companyId:d,navigate:t,location:i,isLoading:y,currentTenant:r,isSettings:D(i),onClickMenuIcon:()=>{u(!0)}})]})}export{de as C};
@@ -1,11 +0,0 @@
1
- import{j as g}from"./liveblocks-DJRxBaIV.js";import{a}from"./sentry-CCv9H2LX.js";import{u as D,g as v,j as m,N as w}from"./core-Deu6zgNz.js";import{LY as A,eX as O,g1 as _,oa as j,gs as h,g0 as L,fA as U,M3 as F}from"./zeni-epic-state-Bs-2KETC.js";import{u as $,z as c,L as C,a as k,o as H}from"./index-D1FLsJEr.js";import{n as z}from"./mui-2-6pepya.js";import{t as R}from"./getLocaleForTenant-Goc_zo4E.js";import{g as P,Q as G}from"./QBOConnectionScreen-BgrYxdBK.js";import"./recharts-DhkBu8Nc.js";import"./analytics-Dx20Frgp.js";import"./plaid-CAtEruxd.js";import"./dnd-CQEwIj2b.js";import"./stripe-DMRn4zHo.js";import"./lottie-CqN_xVLe.js";import"./lexical-C3dsnw0c.js";import"./pdf-DoNTLdQS.js";import"./utils-Fa4tVlqJ.js";import"./empty-D6OiEgen.js";import"./pdf-lib-CQlBYVN1.js";import"./index-CCeVfWXG.js";import"./url-PHEx2VF6.js";import"./index-Bpl8YvUJ.js";import"./decodeURIComponentSafe-B2B9XdGW.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new t.Error().stack;i&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[i]="45f81bbd-4c0f-4523-a4c4-92782ed03d02",t._sentryDebugIdIdentifier="sentry-dbid-45f81bbd-4c0f-4523-a4c4-92782ed03d02")}catch{}})();const M=z.div`
2
- display: flex;
3
- flex: 1 1 auto;
4
- flex-direction: row;
5
- justify-content: center;
6
- align-items: center;
7
- width: 100%;
8
- height: 100vh;
9
- background-color: ${t=>t.theme.colors.background};
10
- box-shadow: ${t=>`0px 2px ${H.sp1} ${t.theme.colors.dropShadowNormal}`};
11
- `;function pe(){const t=D(),i=v(),{setLoading:d,clearAllLoading:b}=$(),p=a.useRef(!1),f=a.useRef(!1),{code:x,realmId:T,state:y}=P(i.search),N=x!==""&&T!==""&&y!=="",I=m(l=>A(l)),e=m(l=>O(l)),n=m(l=>l.tenantState.fetchState),r=m(l=>l.tenantState.activeTenantFetchState.fetchState),o=c.getSignedInUser(),u=c.getActiveTenantForUser()?.tenantId,s=e?.externalConnections?.fetchState,E=e?.externalConnections?.saveConnectionState,S=e.externalConnections?.accounting[0]?.isValid;return a.useLayoutEffect(()=>{d(C.CONNECTION_AUTH)},[d]),a.useEffect(()=>{p.current||o==null||u==null||(p.current=!0,n==="Completed"||r!=="Not-Started"&&r!=="Error"||(d(C.TENANT_FETCHING),t(_(o.userId,u))))},[p,n,d]),a.useEffect(()=>{e.tenantId==null&&!f.current&&o!=null&&(f.current=!0,!(u==null||u!=null&&(r==="Completed"||r==="Error"))||n!=="Not-Started"&&n!=="Error"||t(j(o.userId)))},[f,n,r]),a.useEffect(()=>{o==null||e?.tenantId==null||e.externalConnections!=null||n!=="Completed"&&r!=="Completed"||s==="In-Progress"||E!=="Error"||(d(C.CONNECTION_AUTH),t(h(o.userId,e.tenantId)))},[E]),a.useEffect(()=>{n!=="Completed"&&r!=="Completed"||o==null||e?.tenantId==null||(t(L(e.tenantId)),c.saveActiveTenantDomainForUser(e.tenantEmailDomain),U(o?.userId,o?.zeniSessionId,e.tenantId),k.updateAppLocaleID(R(F(e))),e.externalConnections!=null||n!=="Completed"&&r!=="Completed"||s==="In-Progress"||o==null||e==null||t(h(o.userId,e.tenantId)))},[n,r,s]),a.useEffect(()=>{I.tenantsCoreDetailsInOrder.length>0&&n==="Completed"&&c.saveSignedInUserTenants(I.tenantsCoreDetailsInOrder)},[I.tenantsCoreDetailsInOrder.length,n]),a.useEffect(()=>{n!=="Completed"&&n!=="Error"||r!=="Completed"&&r!=="Error"||s!=="Completed"&&s!=="Error"||b()},[n,r,s]),e==null||n!=="Completed"&&r!=="Completed"||s!=="Completed"?null:N||S===!1?g.jsx(M,{children:g.jsx(G,{})}):g.jsx(w,{to:"/",replace:!0})}export{pe as default};
@@ -1 +0,0 @@
1
- import{j as i}from"./liveblocks-DJRxBaIV.js";import{z as n}from"./index-D1FLsJEr.js";import{g as d}from"./QBOConnectionScreen-BgrYxdBK.js";import"./sentry-CCv9H2LX.js";import{g as p,N as s}from"./core-Deu6zgNz.js";import"./zeni-epic-state-Bs-2KETC.js";import"./recharts-DhkBu8Nc.js";import"./mui-2-6pepya.js";import"./analytics-Dx20Frgp.js";import"./plaid-CAtEruxd.js";import"./dnd-CQEwIj2b.js";import"./stripe-DMRn4zHo.js";import"./lottie-CqN_xVLe.js";import"./lexical-C3dsnw0c.js";import"./pdf-DoNTLdQS.js";import"./utils-Fa4tVlqJ.js";import"./empty-D6OiEgen.js";import"./pdf-lib-CQlBYVN1.js";import"./index-CCeVfWXG.js";import"./url-PHEx2VF6.js";import"./index-Bpl8YvUJ.js";import"./decodeURIComponentSafe-B2B9XdGW.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]="817363c8-7f1d-4590-b58b-cef70b99ca15",t._sentryDebugIdIdentifier="sentry-dbid-817363c8-7f1d-4590-b58b-cef70b99ca15")}catch{}})();const U=()=>{const t=p(),{code:o,realmId:r,state:e}=d(t.search),m=n.getSignedInUser()?.userId??"";if(f(o,r,e,m)===!0){const a=`../../${e}/onboarding?code=${o}&realmId=${r}&state=auth_flow`;return i.jsx(s,{to:a})}return i.jsx(s,{to:"../../"})},f=(t,o,r,e)=>t!=""&&o!=""&&r!=""&&e!=null&&e!="";export{U as default,f as hasValidParams};
@@ -1,18 +0,0 @@
1
- import{j as l}from"./liveblocks-DJRxBaIV.js";import{h as w,g as C,j as h,n as A,i as B}from"./core-Deu6zgNz.js";import{Q6 as k,Qd as _,gh as q,gg as K,gf as W,ju as X,Nd as J,ru as L,eX as D,PE as V,js as T,Q7 as v,Qg as j,jq as F,jN as G}from"./zeni-epic-state-Bs-2KETC.js";import{bB as M,K as N,C as R,z as U,y as O,p,G as S,B as Q,bC as Y,o as Z,bD as ee,v as te}from"./index-D1FLsJEr.js";import{n as z}from"./mui-2-6pepya.js";import"./sentry-CCv9H2LX.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]="02856068-169b-4cf3-9d0c-4d778dde0e07",e._sentryDebugIdIdentifier="sentry-dbid-02856068-169b-4cf3-9d0c-4d778dde0e07")}catch{}})();const ne=A(null,function(e,t){return{onSaveVendor:n=>{e(X(t.vendorId!==void 0?t.vendorId:void 0,t.billId,void 0,t.isExpressPayPage)),e(J("common")),n!=null&&e(L(n))},onGetOtp:n=>{e(W(n,"BillPayVendor"))},onResendOtp:n=>{e(K(n,"BillPayVendor"))},onVerifyOtp:(n,a)=>{e(q(n,a,"BillPayVendor"))},onVerifyOtpSuccess:(n,a,o)=>{e(_(n,a,o))}}})(M);function H({vendorId:e,billId:t,isExpressPayPage:n}){const a=w(),o=C(),s=h(r=>k(r,e));return l.jsx(ne,{location:o,navigate:a,vendorId:e,billId:t,vendorViewDetails:s,isExpressPayPage:n??!1})}const ae=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
- `,oe=A(function(e,t){const{vendorId:n,billId:a}=t,o=k(e,n),s=V(e,t.isVendorRecommendationEnabled,t.isZeniAccountsFeatureEnabled,a);return{billId:a,isDisabled:o.bankAccountCreationState.fetchState==="In-Progress"?"readonly":void 0,vendorViewDetails:o,file:s.file,bankAccountContext:t.bankAccountContext}},function(e,t){const{navigate:n,location:a,vendorId:o}=t;return{onFetchBankName:s=>{e(G(s))},onSaveHandler:s=>{e(F(t.bankAccountContext,s,"standard",o))},onCancel:()=>{(()=>{const s=p(a.state?.pathnameStackToGoBack),r=s.poppedPathname??P();n(r,{state:{pathnameStackToGoBack:s.newStack}})})(),e(v())},onACHDetailsUpdated:s=>{const{bankAccountSection:r}=s;e(j({data:r}))},onBackClick:()=>{if(e(T({fetchState:"Not-Started"})),t.bankAccountContext==="express-pay")n("../",{relative:"path"});else{const s=p(t.location.state?.pathnameStackToGoBack),r=s.poppedPathname??P(0);t.navigate(r,{state:{pathnameStackToGoBack:s.newStack}})}e(v())}}})(Y);function fe({vendorIdParam:e,accountContext:t}){const n=w(),a=C(),o=N(),{vendorId:s,billId:r}=B(),i=e??s,{useFeatureGate:d}=R(),c=U.getSignedInUser(),b=h(u=>D(u)),g=O(),x=p(a.state?.pathnameStackToGoBack),f=t??(x.poppedPathname?.includes("vendor")===!0?"vendor":"billDetail"),m=h(u=>k(u,i)),{isFeatureEnabled:I}=d(S.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:y}=d(S.isDepositAccountsFeatureEnabled);if(c==null)throw Error("Can't access address page without signing in...");return f==="billDetail"&&m.editVendorState?.saveStatus.fetchState==="In-Progress"?l.jsx(Q,{fetchState:m.editVendorState?.saveStatus.fetchState??"Not-Started",style:{backgroundColor:g.colors.grey5}}):l.jsxs(ae,{windowSize:o,children:[l.jsx(H,{vendorId:i,billId:r}),l.jsx(oe,{location:a,navigate:n,billId:r,vendorId:i,currentTenant:b,bankAccountContext:f,isVendorRecommendationEnabled:I,isZeniAccountsFeatureEnabled:y})]})}const P=(e=2)=>{let t="../";for(let n=0;n<e;n++)t=`${t}../`;return t},me=(e,t,n)=>{let a=`/${e}/bill/${encodeURIComponent(t)}`;return n=="draft"&&(a+="/edit"),a},he=e=>`/${e}/bills`,ke=(e,t)=>{let n=`/${e}/bill`;return n=t!=null?n.concat(`/${t}/edit`):n.concat("/new"),n},E=(e,t,n,a)=>{let o=`/${e}/bill`;return o+=n!=null?`/${n}/edit/vendor`:"/new/vendor",o+=a!=null?`/${a}/edit/${t}`:`/create/${t}`,o};function ve(e,t,n){return E(e,"ach",t,n)}function Se(e,t,n){return E(e,"domestic",t,n)}function ge(e,t,n){return E(e,"international",t,n)}const se=(e,t,n)=>{let a=`/${e}/bill/`;return a=n!=null?a.concat(`${encodeURIComponent(n)}/${t}/`):a.concat(`new/${t}/`),a},de=z.div`
10
- display: flex;
11
- height: 100vh;
12
- width: 100%;
13
- flex: 1 1 auto;
14
- flex-direction: column;
15
- align-items: center;
16
- background-color: ${e=>e.theme.colors.grey4};
17
- box-shadow: ${e=>`0px 2px ${Z.sp1} ${e.theme.colors.dropShadowNormal}`};
18
- `,re=A(function(e,t){const{vendorId:n,billId:a}=t,o=k(e,n),s=V(e,t.isVendorRecommendationEnabled,t.isZeniAccountsFeatureEnabled,a);return{billId:a,isDisabled:o.bankAccountCreationState.fetchState==="In-Progress"?"readonly":void 0,vendorViewDetails:o,file:s.file,bankAccountContext:t.bankAccountContext}},function(e,t){const{billId:n,navigate:a,location:o,vendorId:s,currentTenant:r}=t,{tenantEmailDomain:i}=r;return{onFetchBankName:d=>{e(G(d))},onSaveHandler:d=>{e(F(t.bankAccountContext,d,"us-domestic",s))},onWireDetailsUpdated:d=>{const{bankAccountSection:c}=d;e(j({data:c}))},onCancel:()=>{(()=>{const d=p(o.state?.pathnameStackToGoBack),c=d.poppedPathname??$();a(c,{state:{pathnameStackToGoBack:d.newStack}})})(),e(v())},onAddressClick:d=>{if(t.bankAccountContext==="express-pay")a("./add-address");else{const c=se(i,d,n),b=te(o.state?.pathnameStackToGoBack,o.pathname);a(c,{state:{pathnameStackToGoBack:b}})}},onBackClick:()=>{if(e(T({fetchState:"Not-Started"})),t.bankAccountContext==="express-pay")a("../",{relative:"path"});else{const d=p(t.location.state?.pathnameStackToGoBack),c=d.poppedPathname??$(0);t.navigate(c,{state:{pathnameStackToGoBack:d.newStack}})}e(v())}}})(ee);function xe({vendorIdParam:e,accountContext:t}){const n=w(),a=C(),o=N(),{vendorId:s,billId:r}=B(),i=e??s,d=U.getSignedInUser(),{useFeatureGate:c}=R(),b=O(),g=h(u=>D(u)),x=p(a.state?.pathnameStackToGoBack),f=t??(x.poppedPathname?.includes("vendor")===!0?"vendor":"billDetail"),m=h(u=>k(u,i)),{isFeatureEnabled:I}=c(S.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:y}=c(S.isDepositAccountsFeatureEnabled);if(d==null)throw Error("Can't access address page without signing in...");return f==="billDetail"&&m.editVendorState?.saveStatus.fetchState==="In-Progress"?l.jsx(Q,{fetchState:m.editVendorState?.saveStatus.fetchState??"Not-Started",style:{backgroundColor:b.colors.grey5,boxShadow:`0px 2px ${Z.sp1} ${b.colors.dropShadowNormal}`}}):l.jsxs(de,{windowSize:o,children:[l.jsx(H,{vendorId:i,billId:r}),l.jsx(re,{location:a,navigate:n,billId:r,vendorId:i,currentTenant:g,bankAccountContext:f,isVendorRecommendationEnabled:I,isZeniAccountsFeatureEnabled:y})]})}const $=(e=2)=>{let t="../";for(let n=0;n<e;n++)t=`${t}../`;return t};export{fe as A,xe as D,H as V,me as a,se as b,ke as c,Se as d,he as g,ge as i,ve as v};
@@ -1 +0,0 @@
1
- import{j as s}from"./liveblocks-DJRxBaIV.js";import{a as d}from"./sentry-CCv9H2LX.js";import{h as A,u as B,g as O,i as G,j as c,N as q,n as F,o as _,p as K}from"./core-Deu6zgNz.js";import{Ol as z,eX as M,NJ as R,ly as W,Ke as I,Oq as X,Nc as Y,kx as $,Kf as S,NO as J,NP as V,Ne as H,Nd as L}from"./zeni-epic-state-Bs-2KETC.js";import{aX as Q,d as U,p as Z,v as tt}from"./index-D1FLsJEr.js";import"./mui-2-6pepya.js";import{d as k}from"./decodeURIComponentSafe-B2B9XdGW.js";import{w as et}from"./withTransactionSidePanel-DGRTBEXL.js";import{f as at,c as nt}from"./routePaths-DnU4nZVO.js";import"./recharts-DhkBu8Nc.js";import"./analytics-Dx20Frgp.js";import"./plaid-CAtEruxd.js";import"./dnd-CQEwIj2b.js";import"./stripe-DMRn4zHo.js";import"./lottie-CqN_xVLe.js";import"./lexical-C3dsnw0c.js";import"./pdf-DoNTLdQS.js";import"./utils-Fa4tVlqJ.js";import"./useAskAiCfoHostNavButtonProps-BSeuzuMu.js";import"./TransactionDetailScreen-DgWPeyaq.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new a.Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="203ae175-0e8c-4dc3-afcd-d2804cae8478",a._sentryDebugIdIdentifier="sentry-dbid-203ae175-0e8c-4dc3-afcd-d2804cae8478")}catch{}})();const ot=F(function(a,t){const e=t.entity,o=X(a,t.entity,"EntityDetail");return{selectedEntity:e,autoCompleteData:{autoCompleteText:e.name,entityAutoCompleteView:Y(a,"common")},trendWithTransactionsReport:o,analytics:U,isAccountingClassesEnabled:$(a)}},function(a,t){return{onTransactionItemClick:e=>{if(t.openTransactionPanel)return void t.openTransactionPanel(e.id,e.type);const o=`${nt(e,t.tenantEmailDomain)}`,l=tt(t.location.state?.pathnameStackToGoBack,t.location.pathname);t.navigate(o,{state:{pathnameStackToGoBack:l}})},autoCompleteActions:{onAutoCompleteInputChange:e=>{e.trim().length>=2?a(H({searchString:e,searchOrigin:"common"})):e.trim().length===0&&a(L("common"))},onAutoCompleteEntity:e=>{const o=at(e,t.tenantEmailDomain);a(J()),a(V()),t.resetTrendIsFetchedStates(),t.navigate(o,{replace:!0,state:{pathnameStackToGoBack:t.location.state?.pathnameStackToGoBack}})},onCancelAutoComplete:()=>{const e=Z(t.location.state?.pathnameStackToGoBack),o=e.poppedPathname??C();t.navigate(o,{state:{pathnameStackToGoBack:e.newStack}})}},onTrendSelectedPeriodChange:e=>{if(t.closeSidePanel?.(),e==null)t.defaultTransactionTimePeriod!=null&&a(S(t.entity,"EntityDetail",{timeframe:"quarter",timePeriod:t.defaultTransactionTimePeriod}));else{const o=e.currentTimePeriod==null?e.addTimePeriod:{startDate:e.addTimePeriod.startDate,endDate:e.currentTimePeriod.endDate};a(I(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:e.addTimePeriod})),a(S(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:o}))}}}})(Q),it=et(function({entityType:a,...t}){const e=A(),o=B(),l=O(),[m,T]=d.useState(!1),[h,D]=d.useState(!1),{tenantEmailDomain:b,entityIdEncoded:x,entityNameEncoded:v}=G(),r=k(x??""),p=k(v??""),u=rt(r,p),w=[r,p].filter(n=>n!=null),i={name:p,id:r,type:a,zeniId:r,qboId:r},g=c(n=>z(n.customerIncomeState,n.vendorExpenseState,n.trendState,i,"quarter")),N=c(n=>M(n).company?.companyInfo.firstMonthOfFY??1),f=c(n=>R(n.trendWithTransactionsState,i,"EntityDetail"));d.useEffect(()=>{m===!1&&u===!0&&(T(!0),o(W(i)))},[m,u,i]);const P=c(n=>n.trendState.fetchState),E=f?.selectedPeriod?.timePeriod??g,j=function(n,y){return n!=null&&y!=null?{startDate:n.startDate,endDate:y?.endDate}:y}(f?.selectedPeriod?.timePeriod,g);return d.useEffect(()=>{m===!0&&h===!1&&P==="Completed"&&(D(!0),E!=null&&o(I(i,"EntityDetail",{timeframe:f?.selectedPeriod?.timeframe??"quarter",timePeriod:E})))},[m,h,P]),u?s.jsx(ot,{firstMonthOfFY:N,tenantEmailDomain:b,location:l,navigate:e,entity:i,defaultTransactionTimePeriod:j,resetTrendIsFetchedStates:()=>{T(!1),D(!1)},...t}):s.jsx(q,{to:C(w.length)})}),rt=(a,t)=>t!=null&&t.length>0&&a!=null&&a.length>0,C=(a=2)=>{let t="../";for(let e=0;e<a;e++)t=`${t}../`;return t};function xt({entityType:a}){return s.jsx(_,{children:s.jsx(K,{path:"/:entityIdEncoded/:entityNameEncoded/*",element:s.jsx(it,{entityType:a})})})}export{xt as EntityDetailRoutes,xt as default};
@@ -1 +0,0 @@
1
- import{a as r}from"./sentry-CCv9H2LX.js";import{u as l,h as m,g as f}from"./core-Deu6zgNz.js";import{ht as p,Mk as b,Ml as g}from"./zeni-epic-state-Bs-2KETC.js";import{u as _,L as h,z as y}from"./index-D1FLsJEr.js";import"./liveblocks-DJRxBaIV.js";import"./recharts-DhkBu8Nc.js";import"./mui-2-6pepya.js";import"./analytics-Dx20Frgp.js";import"./plaid-CAtEruxd.js";import"./dnd-CQEwIj2b.js";import"./stripe-DMRn4zHo.js";import"./lottie-CqN_xVLe.js";import"./lexical-C3dsnw0c.js";import"./pdf-DoNTLdQS.js";import"./utils-Fa4tVlqJ.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]="1074b971-47b6-4181-aeba-914b6ae889fe",e._sentryDebugIdIdentifier="sentry-dbid-1074b971-47b6-4181-aeba-914b6ae889fe")}catch{}})();function M(){const e=l(),n=m(),o=f(),{setLoading:i,clearAllLoading:d}=_(),s=r.useRef(!1);return r.useLayoutEffect(()=>{i(h.CONNECTION_AUTH)},[i]),r.useEffect(()=>{if(s.current)return;s.current=!0;const a=new URLSearchParams(o.search).get("code"),u=sessionStorage.getItem("hubspot_oauth_pending");if(sessionStorage.removeItem("hubspot_oauth_pending"),a!=null&&u!=null){const t=JSON.parse(u);e(p(t.tenant_id,t.connection_id,b("revenue"),g("hubspot"),{authorization_code:a,client_id:t.client_id,client_secret:t.client_secret,redirect_uri:t.redirect_uri}))}d();const c=y.getActiveTenantForUser();n(c?.tenantEmailDomain!=null?`/${c.tenantEmailDomain}/settings/integrations`:"/",{replace:!0})},[]),null}export{M as default};
@@ -1,12 +0,0 @@
1
- import{j as f}from"./liveblocks-DJRxBaIV.js";import{a as u}from"./sentry-CCv9H2LX.js";import{u as F,g as _,h as O,t as w,j as l,N as T}from"./core-Deu6zgNz.js";import{z as r,y as A,a as P,e as V,d as N,f as W,s as $,W as R,g as X}from"./index-D1FLsJEr.js";import{eX as Z,L_ as q,M8 as B,L$ as G,fA as H,g0 as J,M4 as K,go as Q,cZ as Y,M9 as ee,Ma as te}from"./zeni-epic-state-Bs-2KETC.js";import{n as ne}from"./mui-2-6pepya.js";import{u as se}from"./useDeviceId-BPEf1gm7.js";import{f as ae}from"./analyticsHelper-Ds6_JcxE.js";import{t as ie}from"./getLocaleForTenant-Goc_zo4E.js";import"./recharts-DhkBu8Nc.js";import"./analytics-Dx20Frgp.js";import"./plaid-CAtEruxd.js";import"./dnd-CQEwIj2b.js";import"./stripe-DMRn4zHo.js";import"./lottie-CqN_xVLe.js";import"./lexical-C3dsnw0c.js";import"./pdf-DoNTLdQS.js";import"./utils-Fa4tVlqJ.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="122c8f9b-91d1-4103-a47f-1c15f2fb9439",t._sentryDebugIdIdentifier="sentry-dbid-122c8f9b-91d1-4103-a47f-1c15f2fb9439")}catch{}})();const x=(t,a)=>t!=null&&t.length>0&&a==="magic_links";function xe(){const t=F(),a=_(),m=O(),[y]=w(),n=y.get("token"),p=y.get("stytch_token_type"),g=r.getMagicLinkCodeVerifier(),i=se(),{otpChallenge:d,twoFAPhoneNumber:z,magicLinkEmail:c,verifyDeviceFetchState:C,resendVerifyDeviceOTPFetchState:D}=l(e=>e.tenantState),S=l(e=>e.tenantState.fetchState),k=l(e=>e.tenantState.activeTenantFetchState.fetchState),I=l(e=>e.tenantState.signInState),h=l(e=>e.tenantState.magicLinkSignInFetchState.fetchState),s=l(e=>e.tenantState.loggedInUser),o=l(e=>Z(e)),b=l(e=>q(e)),E=r.getSignedInUser(),v=A().mode;u.useEffect(()=>{s?.zeniSessionId==null&&n!=null&&x(n,p)&&i!=null&&g!=null&&(r.saveMagicLinkTriggered(n),t(B(n,i,g)))},[n,p,t,i,g,s?.zeniSessionId]),u.useEffect(()=>{I!=="In-Progress"||S!=="Completed"&&k!=="Completed"||s?.zeniSessionId==null||o==null||(n!=null&&r.saveLastUsedMagicLinkToken(n),r.saveSignedInUserWithSession(s,s.zeniSessionId),r.saveSignedInUserTenants(G(b.tenantsInOrder),s.zeniSessionId),H(s.userId,s.zeniSessionId,o.tenantId),t(J(o.tenantId)),r.saveActiveTenantDomainForUser(o.tenantEmailDomain),t(K("Completed")),P.updateAppLocaleID(ie(o)),ae(s,o,v,void 0,b.tenantsInOrder),Q().then(()=>{const e=X();e!=null&&V(e)}),setTimeout(()=>{N.trackLogin(W.Event.loginSuccess,"email",Y(o.productSettings))},2e3))},[I,S,k,s,o,b,v,a.state,t]);const M=u.useCallback(()=>{m("/signin/auth")},[m]),U=u.useCallback(()=>{i!=null&&d!=null&&c!=null&&t(ee(i,c,d))},[i,d,t,c]),j=u.useCallback(e=>{i!=null&&n!=null&&c!=null&&d!=null&&t(te(e,i,c,d))},[i,n,t,c,d]);if(h==="Completed"&&d!=null)return f.jsx($,{phoneNumber:z,verifyOtpFetchState:C.fetchState,resendVerifyDeviceOTPFetchState:D,onResendOtp:U,onVerifyOtp:j,onCancelVerifyDevice:M});if(I==="In-Progress"&&S==="Completed"&&s?.zeniSessionId!=null&&o!=null||E!=null){const e=a.state?.origin??"/";return f.jsx(T,{to:e,state:{...a.state,origin:""}})}if(!x(n,p)||g==null||h==="Error"){const e=a.state?.origin??"/",L=n!=null&&r.getLastUsedMagicLinkToken()===n;return f.jsx(T,{to:e,state:{...a.state,origin:"",magicLinkAlreadyUsed:L,magicLinkExpired:!L&&(r.isMagicLinkTriggered(n??"")||h==="Error"&&s?.zeniSessionId==null)}})}return f.jsx(oe,{"data-testid":"smooth-loader",children:f.jsx(R,{size:"ExtraLarge",start:!0})})}const oe=ne.div`
2
- position: fixed;
3
- top: 0;
4
- left: 0;
5
- right: 0;
6
- bottom: 0;
7
- display: flex;
8
- align-items: center;
9
- justify-content: center;
10
- z-index: 9999;
11
- background-color: ${t=>t.theme.colors.background};
12
- `;export{xe as default};
@@ -1 +0,0 @@
1
- import{j as r}from"./liveblocks-DJRxBaIV.js";import{h as n,n as e}from"./core-Deu6zgNz.js";import{U as i}from"./index-D1FLsJEr.js";import"./mui-2-6pepya.js";import"./sentry-CCv9H2LX.js";import"./zeni-epic-state-Bs-2KETC.js";import"./recharts-DhkBu8Nc.js";import"./analytics-Dx20Frgp.js";import"./plaid-CAtEruxd.js";import"./dnd-CQEwIj2b.js";import"./stripe-DMRn4zHo.js";import"./lottie-CqN_xVLe.js";import"./lexical-C3dsnw0c.js";import"./pdf-DoNTLdQS.js";import"./utils-Fa4tVlqJ.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]="8f21ada1-163d-445e-848f-3449dc675a20",o._sentryDebugIdIdentifier="sentry-dbid-8f21ada1-163d-445e-848f-3449dc675a20")}catch{}})();const a=e(null,function(o,t){return{onGoBack:()=>{t.navigate(-1)},onGoHome:()=>{t.navigate("/")}}})(i);function _(){const o=n();return r.jsx(a,{navigate:o})}export{_ as default};
@@ -1 +0,0 @@
1
- import{j as n}from"./liveblocks-DJRxBaIV.js";import{h as z,u as H,g as J,i as K,j as d,n as X,o as Z,p as I}from"./core-Deu6zgNz.js";import{eX as v,sd as P,rN as Q,MU as M,rI as S,bs as ee,bn as ae,bY as te,rJ as se,MV as oe,MH as C,dK as re,vV as ne,MW as ce,wg as ie,fE as le,fC as de}from"./zeni-epic-state-Bs-2KETC.js";import{z as me,_ as fe,a0 as pe,I as ue,C as O,G as w,D as he,d as $,ap as be,v as ge}from"./index-D1FLsJEr.js";import"./mui-2-6pepya.js";import Fe from"./NotFoundScreen-L94hFyts.js";import{F as Ie}from"./FeaturePreviewScreen-CzJwTXfy.js";import{a as b}from"./sentry-CCv9H2LX.js";import{u as Ce}from"./useAskAiCfoHostNavButtonProps-BSeuzuMu.js";import{u as Se}from"./useInitialThreadRequest-BLJkGJ7X.js";import{t as Te}from"./routePaths-DnU4nZVO.js";import{M as ye}from"./MobileAppDrawer-DdLzgZKv.js";import"./recharts-DhkBu8Nc.js";import"./analytics-Dx20Frgp.js";import"./plaid-CAtEruxd.js";import"./dnd-CQEwIj2b.js";import"./stripe-DMRn4zHo.js";import"./lottie-CqN_xVLe.js";import"./lexical-C3dsnw0c.js";import"./pdf-DoNTLdQS.js";import"./utils-Fa4tVlqJ.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new s.Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="b570016c-fb96-4a6c-9c27-65df76264bbd",s._sentryDebugIdIdentifier="sentry-dbid-b570016c-fb96-4a6c-9c27-65df76264bbd")}catch{}})();const T=(s,e,a,o)=>{if(s!=e){const r=o??"";s!=null&&s.length>0?a(`../${e}${r}`,{replace:!0}):a(`${e}${r}`,{replace:!0})}},ke=X(function(s){const e=oe(s),a={},o=e.pandLReportWithForecast.uiState.nodeCollapseState;return Object.keys(o).forEach(r=>{a[r]=o[r]===!1}),{selectedTimeframe:e.selectedTimeframe,isForecastVsActualOn:e.isForecastVsActualOn,compareMode:e.compareMode,forecastList:e.forecastList,selectedForecast:e.selectedForecast,pandLreport:e.pandLReportWithForecast,scrollPosition:e.pandLReportWithForecast.uiState.scrollPosition,nodeOpenStatus:a,type:"name+balances_forecast",analytics:$}},function(s,e){return{onForecastSelectionChanged:(a,o)=>{s(M(a,o)),e.isPandLReportFetched(a)||s(S(a)),T(e.forecastIdFromUrlPath,a,e.navigate)},onTimeframeChanged:a=>{s(ie(a))},onForecastVsActualsCompareToggle:a=>{s(ce(a)),s(C({forecastId:e.forecastIdFromUrlPath,scrollPosition:{scrollLeft:0,scrollTop:0}}))},onCompareModeChanged:a=>{s(ne(e.firstMonthOfFY,a,0,[]))},onAccountBalanceClick:e.hasTransactionAccess!==!0?void 0:(a,o)=>{let r,c;const p=a.accountName===""?a.accountDescription:a.accountName;if(o.balanceTimeFrame==="month"||o.balanceTimeFrame==="quarter"?(r=o.balanceTimeFrame,c=re(o)):o.balanceTimeFrame==="year"?(r="quarter",c={startDate:o.endDate.startOf("quarter"),endDate:o.endDate}):console.error(`timeframe ${o.balanceTimeFrame} is not supported`),c!=null&&r!=null){const m=Te(e.tenantEmailDomain,a.accountId,a.accountType,p,r,c),u=ge(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(m,{state:{pathnameStackToGoBack:u,referrer:"Forecast"}})}},onNodeCollapseToggled:(a,o)=>{s(C({forecastId:e.forecastIdFromUrlPath,nodeCollapseState:{nodeId:a,isCollapsed:o===!1}}))},onTableScroll:a=>{s(C({forecastId:e.forecastIdFromUrlPath,scrollPosition:a}))},onBackClick:()=>{e.navigate("../../")}}})(be);function U(){const s=z(),e=H(),a=J(),{forecastId:o,tenantEmailDomain:r}=K(),[c,p]=b.useState(!1),[m,u]=b.useState(!1),h=me.getSignedInUser(),y=d(t=>v(t)),N=y.company?.companyInfo.firstMonthOfFY??1,i=d(t=>P(t.forecastState,t.forecastListState)),l=d(t=>t.forecastListState.fetchState==="Completed"),k=d(t=>t.profitAndLossState),A=d(t=>t.reportUIOptionsState.selectedForecast),D=t=>k.pandLByForecastID[t]!=null&&se(t,k).reducedAllFetchState.fetchState==="Completed",{areTenantIdsInSync:g}=fe();pe({isDataReady:l});const{isAiCfoAccessEnabled:_,onAskAiCfoClick:B}=Ce({mobileExploreReferrer:"Forecast"});b.useEffect(()=>{if(!c&&g)p(!0),l||e(Q());else if(l&&!m){u(!0);const t=((f,L,R)=>L!=null?f.forecasts.findIndex(F=>F.id===L):R!=null?f.forecasts.findIndex(F=>F.id===R):f.forecasts.length>0?0:-1)(i,o,A?.id);t===-1&&o!=null?s("page-not-found",{replace:!0}):t!==-1&&t!=A?.index?(e(M(i.forecasts[t].id,t)),T(o,i.forecasts[t].id,s,a.search)):o==null&&t!==-1&&T(void 0,i.forecasts[t].id,s,a.search),t!==-1&&!D(i.forecasts[t].id)&&g&&e(S(i.forecasts[t].id))}},[c,p,e,l,i,m,u,P,S,g]);const x=ue(),G=x?.loggedInUserRole!=null&&ee(x.loggedInUserRole),{useFeatureGate:V}=O(),{isFeatureEnabled:E}=V(w.isReportsCommentingEnabled),W=Se(E?y?.companyId:void 0,{clearParams:l&&m}),[Y,q]=b.useState(!1),j=t=>{q(t)};return n.jsxs(n.Fragment,{children:[l?n.jsx(he,{analytics:$,onLoad:t=>(f=>f.trackForecast())(t)}):null,n.jsx(ye,{isAppContentDrawerOpen:Y,handleDrawerToggle:j}),n.jsx(ke,{firstMonthOfFY:N,tenantEmailDomain:r,forecastIdFromUrlPath:o,navigate:s,location:a,isPandLReportFetched:D,meetingUrl:te(`https://meetings.hubspot.com/svitlana-grankovska?firstname=${h?.firstName}&lastname=${h?.lastName}&email=${h?.userEmail}`),hasTransactionAccess:G,isAiCfoAccessEnabled:_,onAskAiCfoClick:B,isReportsCommentingEnabled:E,isZeniUser:ae(h),initialOpenThreadRequest:W,onClickMenuIcon:()=>{j(!0)}})]})}function qe(){const s=d(c=>v(c)),{useFeatureGate:e}=O(),{isFeatureEnabled:a}=e(w.isDebitCardFeatureEnabled),o=le(a,s),r=de(s);return o===!0||r===!0?n.jsx(Ie,{}):n.jsxs(Z,{children:[n.jsx(I,{path:"/",element:n.jsx(U,{})}),n.jsx(I,{path:"/:forecastId",element:n.jsx(U,{})}),n.jsx(I,{path:"/:forecastId/*",element:n.jsx(Fe,{})})]})}export{qe as PandLWithForecastRoutes,qe as default};
@@ -1,22 +0,0 @@
1
- import{j as a}from"./liveblocks-DJRxBaIV.js";import{MQ as ne,eX as Y,kx as G,fE as q,fC as oe,Ki as J,Mu as ie,uS as ke,MR as Q,uH as Ee,v0 as Pe,uW as re,uL as le,u_ as je,uX as ve,MS as de,wH as Le,fo as Te,ge as Re,MT as M,uP as ce,uO as pe,v3 as Ae,c6 as Fe}from"./zeni-epic-state-Bs-2KETC.js";import{K as ue,C as ee,G as K,z as W,i as me,H as fe,M as ge,al as he,am as Oe,F as Ce,o as O,N as ye,a as be,an as Ve,_ as Ze,a0 as Be,D as Ue,d as Se,f as He,v as $e,ao as Me,I as Ke}from"./index-D1FLsJEr.js";import{D as we,n as X,S as xe}from"./mui-2-6pepya.js";import se from"./NotFoundScreen-L94hFyts.js";import{a as d}from"./sentry-CCv9H2LX.js";import{u as ae,i as _e,j as f,h as ze,g as Ge,n as We,o as te,p as $}from"./core-Deu6zgNz.js";import{u as Xe}from"./useAskAiCfoHostNavButtonProps-BSeuzuMu.js";import{M as Ne}from"./MobileAppDrawer-DdLzgZKv.js";import"./recharts-DhkBu8Nc.js";import"./analytics-Dx20Frgp.js";import"./plaid-CAtEruxd.js";import"./dnd-CQEwIj2b.js";import"./stripe-DMRn4zHo.js";import"./lottie-CqN_xVLe.js";import"./lexical-C3dsnw0c.js";import"./pdf-DoNTLdQS.js";import"./utils-Fa4tVlqJ.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]="356e6556-4d63-4f73-a301-827fd76cd8ff",e._sentryDebugIdIdentifier="sentry-dbid-356e6556-4d63-4f73-a301-827fd76cd8ff")}catch{}})();const Qe={overlayWidth:new Ce(100,100,48)},_=be.getLocalizedStrings().peoplePage.invitePage,Ye=({companyId:e,managersListView:t,companyPassportView:c,classListView:n,mode:g,isEditPeopleDrawerOpen:i,closeDrawerHandler:b})=>{const h=ue(),m=ae(),[V,Z]=d.useState(!1),[k,S]=d.useState(!1),{userId:w}=_e(),r=f(l=>ne(l)),p=f(l=>Y(l)),E=f(l=>G(l)),{useFeatureGate:D}=ee(),{isFeatureEnabled:I}=D(K.isDebitCardFeatureEnabled),P=q(I,p),L=oe(p),T=J(p),B=ie(p),U=!!p.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,x=!P&&E&&n.fetchState!=="Completed"||t.fetchState!=="Completed"||c.fetchState!=="Completed"||e==null;if(W.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const C=()=>{m(Q()),b()},R=()=>{V===!0?S(!0):C()},H=c.companyView?.controllers?.map(l=>l.user),u=!!p.company?.companyZeniAccountInfo?.isZeniAccountEnabled,{isFeatureEnabled:j}=D(K.isChargeCardFeatureEnabled),v=me(p,j,I),{isCardsHidden:A}=fe(p?.tenantId),y=!v||A,F=p.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",s={peopleDetails:r,classList:n.classes,managersList:t.users,controllersList:H,mode:g,isZeniTenant:T,isAccountingClassesEnabled:E,isReimbursementDisabled:U===!1,isZeniAccountsDisabled:u===!1,isChargeCardDisabled:y,isTreasuryDisabled:F===!1,isLiteRoleDisabled:B===!1,isBankingOnlyTenant:P,isCardsOnlyTenant:L,onResetClick:C,onDeleteUser:l=>{m(le(l.userId,l.userRole.userRoleId))},onPeopleLocalDataUpdated:l=>{m(re({peopleLocalData:l})),Z(!0)},onSaveClick:()=>{m(g==="zeni_only"?Ee(e):Pe(T))},onCloseClick:R,isLoading:x||r.person==null},o={onOkClick:()=>{S(!1),C()},onCancelClick:()=>{S(!1)}};return d.useEffect(()=>{x===!1&&w!=null&&m(ke(w))},[x,w]),d.useEffect(()=>{r.updatePersonState.fetchState==="Completed"&&C()},[r.updatePersonState.fetchState]),a.jsx(we,{anchor:"right",open:i,PaperProps:{style:{width:Qe.overlayWidth.valuePercentage(h),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:ge.overlayDark,cursor:"pointer"}}},onClose:R,children:a.jsxs(qe,{onClick:l=>l.stopPropagation(),children:[k===!0?a.jsx(he,{titleComponent:a.jsx(De,{children:_.discardTitle}),descriptionComponent:a.jsx(Ie,{children:_.discardDescription}),primaryButtonText:_.discard,secondaryButtonText:_.no,action:o,isEditPopup:!0}):null,a.jsx(Oe,{...s})]})})},qe=X(xe)`
2
- display: flex;
3
- min-height: 100%;
4
- flex-direction: column;
5
- `,De=X(ye.H6Regular)`
6
- margin-top: ${O.sp7};
7
- padding-left: ${O.sp8};
8
- padding-right: ${O.sp8};
9
- color: ${e=>e.theme.colors.primary};
10
- word-break: break-word;
11
- `,Ie=X(ye.LargeRegularSp)`
12
- color: ${e=>e.theme.colors.hero};
13
- padding-left: ${O.sp8};
14
- padding-right: ${O.sp8};
15
- margin-bottom: 30px;
16
- margin-top: ${O.sp4};
17
- white-space: pre-line;
18
- `,Je={overlayWidth:new Ce(100,100,48)},z=be.getLocalizedStrings().peoplePage.invitePage,ea=({companyId:e,managersListView:t,companyPassportView:c,classListView:n,mode:g,isInvitePeopleDrawerOpen:i,closeDrawerHandler:b})=>{const h=ue(),m=ae(),[V,Z]=d.useState(!1),[k,S]=d.useState(!1),w=f(o=>ne(o)),r=f(o=>Y(o)),p=f(o=>G(o)),{useFeatureGate:E}=ee(),{isFeatureEnabled:D}=E(K.isDebitCardFeatureEnabled),I=q(D,r),P=oe(r),L=J(r),T=ie(r),B=!!r.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,U=!I&&p&&n.fetchState!=="Completed"||t.fetchState!=="Completed"||c.fetchState!=="Completed"||e==null;if(W.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const x=()=>{b(),m(Q())},C=()=>{V===!0?S(!0):x()},R={onOkClick:()=>{S(!1),x()},onCancelClick:()=>{S(!1)}},H=c.companyView?.controllers.map(o=>o.user),u=!!r.company?.companyZeniAccountInfo?.isZeniAccountEnabled,{isFeatureEnabled:j}=E(K.isChargeCardFeatureEnabled),v=me(r,j,D),{isCardsHidden:A}=fe(r?.tenantId),y=!v||A,F=r.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",s={classList:n.classes,managersList:t.users,controllersList:H,mode:g,isZeniTenant:L,onPeopleLocalDataUpdated:o=>{m(re({peopleLocalData:o})),Z(!0)},onResetClick:x,onSaveClick:()=>{m(g==="zeni_only"?je(e):ve())},onCloseClick:C,peopleDetails:w,isAccountingClassesEnabled:p,isReimbursementDisabled:B===!1,isLiteRoleDisabled:T===!1,isZeniAccountsDisabled:u===!1,isChargeCardDisabled:y,isTreasuryDisabled:F===!1,isBankingOnlyTenant:I,isCardsOnlyTenant:P,isLoading:U};return d.useEffect(()=>{w.invitePersonState.fetchState==="Completed"&&(b(),m(Q()))},[w.invitePersonState.fetchState]),a.jsx(we,{anchor:"right",open:i,PaperProps:{style:{width:Je.overlayWidth.valuePercentage(h),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:ge.overlayDark,cursor:"pointer"}}},onClose:C,children:a.jsxs(aa,{onClick:o=>o.stopPropagation(),children:[k===!0?a.jsx(he,{titleComponent:a.jsx(De,{children:z.discardTitle}),descriptionComponent:a.jsx(Ie,{children:z.discardDescription}),primaryButtonText:z.discard,secondaryButtonText:z.no,action:R}):null,a.jsx(Ve,{...s})]})})},aa=X(xe)`
19
- display: flex;
20
- min-height: 100%;
21
- flex-direction: column;
22
- `,sa=We(function(e,t){const c=de(e),n=W.getSignedInUser();return{data:c,loggedinUserId:n?.userId??"",isZeniTenant:t.isZeniTenant===!0,shouldFetchClasses:t.shouldFetchClasses,isZeniAdminUser:n?.userEmailDomain==="zeni.ai"&&t.isZeni===!0,isAccountingClassesEnabled:G(e),analytics:Se}},function(e,t){const{navigate:c,companyId:n,shouldFetchClasses:g}=t;return{personAction:{onPersonDelete:(i,b)=>{e(le(i,b))},onResendInvite:i=>{e(Ae(i))},onReloadPeople:()=>{e(ce()),e(pe(n,g))},onBackClick:()=>{c("../../")},onModeChange:i=>{e(M({mode:i,searchText:"",sortKey:"name",sortOrder:"ascending"}))},onSearchTextChanged:i=>{e(M({searchText:i}))}}}})(Me);function N({isInvitePeopleDrawerOpen:e,isEditPeopleDrawerOpen:t}){const c=ze(),n=ae(),g=Ge(),{areTenantIdsInSync:i}=Ze(),b=W.getSignedInUser(),h=f(s=>Y(s)),{useFeatureGate:m}=ee(),{isFeatureEnabled:V}=m(K.isDebitCardFeatureEnabled),Z=f(s=>G(s)),k=!q(V,h)&&Z,S=J(h),w=h?.tenantId,{tenantEmailDomain:r}=h,[p,E]=d.useState(!1),[D,I]=d.useState(!1),[P,L]=d.useState(!1),[T,B]=d.useState("off"),[U,x]=d.useState(!1),C=s=>{x(s)},{isAiCfoAccessEnabled:R,onAskAiCfoClick:H}=Xe({mobileExploreReferrer:"People"}),u=f(s=>de(s));Be({isDataReady:u.fetchState==="Completed"});const j=f(s=>Le(s.classState,s.classListState)),v=f(s=>Te(s.userState,s.userRoleState,s.userListViewState,"manager")),A=f(s=>Re(s)),y=h?.companyId;d.useEffect(()=>{p&&T===u.uiState.mode||!i||(n(M({searchText:"",sortKey:"name",sortOrder:"ascending"})),B(u.uiState.mode),E(!0),n(ce()))},[p,b,w,n,u.uiState.mode,i]),d.useEffect(()=>{y!=null&&i&&n(pe(y,k))},[y,k,i]),d.useEffect(()=>{I(e!=null&&e===!0),L(t!=null&&t===!0&&t)},[e,t]),d.useEffect(()=>{n(M({searchText:"",sortKey:"name",sortOrder:"ascending"}))},[]);const F=()=>{I(!1),L(!1),c("../")};return a.jsxs(a.Fragment,{children:[u.fetchState==="Completed"?a.jsx(Ue,{analytics:Se,onLoad:s=>s.trackPageLoaded(He.Event.members)}):null,D===!0?a.jsx(ea,{closeDrawerHandler:F,isInvitePeopleDrawerOpen:D,managersListView:v,companyPassportView:A,classListView:j,companyId:y,mode:u.uiState.mode}):null,P===!0?a.jsx(Ye,{closeDrawerHandler:F,isEditPeopleDrawerOpen:P,managersListView:v,companyPassportView:A,classListView:j,companyId:y,mode:u.uiState.mode}):null,a.jsx(Ne,{isAppContentDrawerOpen:U,handleDrawerToggle:C}),a.jsx(sa,{navigate:c,signedInUser:b,isZeni:h.isZeni,isZeniTenant:S,peopleUIState:u.uiState,companyId:y,shouldFetchClasses:k,classList:j,managersView:v,peopleView:u,onInvitePeopleClick:()=>{c("./new")},onColumnSortConfigChanged:(s,o)=>{n(M({sortKey:s,sortOrder:o}))},onRowClick:s=>{const o=`/${r}/people/${encodeURIComponent(s)}/edit`,l=$e(g.state?.pathnameStackToGoBack,g.pathname);c(o,{state:{pathnameStackToGoBack:l}})},onClickMenuIcon:()=>{C(!0)},isAiCfoAccessEnabled:R,onAskAiCfoClick:H})]})}function wa(){const e=Ke();return Fe(e?.loggedInUserRole??[])?a.jsxs(te,{children:[a.jsx($,{path:"/",element:a.jsx(N,{})}),a.jsx($,{path:"new",element:a.jsx(N,{isInvitePeopleDrawerOpen:!0})}),a.jsx($,{path:":userId/edit",element:a.jsx(N,{isEditPeopleDrawerOpen:!0})}),a.jsx($,{path:"*",element:a.jsx(se,{})})]}):a.jsx(te,{children:a.jsx($,{path:"*",element:a.jsx(se,{})})})}export{wa as default};
@@ -1 +0,0 @@
1
- import{j as s}from"./liveblocks-DJRxBaIV.js";import E from"./NotFoundScreen-L94hFyts.js";import{a as r}from"./sentry-CCv9H2LX.js";import{h as _,g as v,j as p,i as M,u as U,N as z,n as P,o as O,p as h}from"./core-Deu6zgNz.js";import{eX as B,T3 as b,bq as F,bn as N,ie as V,fz as q}from"./zeni-epic-state-Bs-2KETC.js";import{x as X,z as I,a0 as $,c_ as G}from"./index-D1FLsJEr.js";import"./mui-2-6pepya.js";import{u as H}from"./useAskAiCfoHostNavButtonProps-BSeuzuMu.js";import{M as J}from"./MobileAppDrawer-DdLzgZKv.js";import"./recharts-DhkBu8Nc.js";import"./analytics-Dx20Frgp.js";import"./plaid-CAtEruxd.js";import"./dnd-CQEwIj2b.js";import"./stripe-DMRn4zHo.js";import"./lottie-CqN_xVLe.js";import"./lexical-C3dsnw0c.js";import"./pdf-DoNTLdQS.js";import"./utils-Fa4tVlqJ.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]="fd775424-8169-4cd8-8326-9661f5f5d4bb",e._sentryDebugIdIdentifier="sentry-dbid-fd775424-8169-4cd8-8326-9661f5f5d4bb")}catch{}})();const K=P(function(e){const t=I.getSignedInUser(),c=e.tenantState.currentTenantId,o={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:c??""},{aggregatedReportViewState:n}=b(e);return{authParams:o,isDisabled:!1,loggedInUser:t,aggregatedReport:n}},function(e,t){return{onBackClick:()=>{t.navigate("../../")},onClickMenuIcon:()=>{t.handleDrawerToggle(!0)}}})(G),L=()=>{const e=_(),t=v(),c=X(),o=p(a=>B(a)),{aggregatedReportViewState:n}=p(a=>b(a)),{tenantEmailDomain:m}=M(),u=U(),l=I.getSignedInUser();if(l==null)throw new Error("Can't access this page without signing in...");const f=r.useRef(!1),[w,S]=r.useState(!1),C=F(o?.userRole??[]),x=o?.userRole?.includes("bookkeeping_admin")??!1,k=N(l),y=C||x||k,d=r.useCallback((a,i,A)=>{u(V({fromMonth:a,toMonth:i,cacheOverride:A}))},[]);r.useEffect(()=>{n?.fetchState==="Completed"&&f.current&&(u(q({messageSection:"data_refresh_update",messageText:"success",type:"success",showStatusIcon:!0})),f.current=!1)},[n?.fetchState]);const D=r.useCallback((a,i)=>{n!=null&&n?.fetchState==="In-Progress"||d(a,i,!0),f.current=!0},[n?.fetchState,d]),j=r.useCallback((a,i)=>{d(a,i,!1)},[d]),g=a=>{S(a)},{isAiCfoAccessEnabled:R,onAskAiCfoClick:T}=H({mobileExploreReferrer:"Performance"});return $({isDataReady:n?.fetchState==="Completed"}),y?s.jsxs(s.Fragment,{children:[s.jsx(J,{isAppContentDrawerOpen:w,handleDrawerToggle:g}),s.jsx(K,{navigate:e,location:t,themeState:c,currentTenant:o,signedInUser:l,tenantEmailDomain:m,onReload:D,onTimeRangeSelect:j,handleDrawerToggle:g,isAiCfoAccessEnabled:R,onAskAiCfoClick:T})]}):s.jsx(z,{to:`/${m}/dashboard`,replace:!0})};function ge(){return s.jsxs(O,{children:[s.jsx(h,{path:"*",element:s.jsx(L,{})}),s.jsx(h,{path:"*",element:s.jsx(E,{})})]})}export{ge as default};
@@ -1,5 +0,0 @@
1
- import{j as s}from"./liveblocks-DJRxBaIV.js";import{a as o}from"./sentry-CCv9H2LX.js";import{j as f,h as F,u as H,g as V,n as _}from"./core-Deu6zgNz.js";import{y as N,K as W,z as P,bg as K,F as M,_ as U,a0 as $,D as z,d as l,f as G,a9 as X,bh as q}from"./index-D1FLsJEr.js";import{fI as J,eX as Q,Pr as R,Ps as Y,vL as Z,vB as g,fK as ee,bS as ae,vG as re,Pt as ne}from"./zeni-epic-state-Bs-2KETC.js";import{D as te,e as se,n as oe,S as ie}from"./mui-2-6pepya.js";import{u as le}from"./useAskAiCfoHostNavButtonProps-BSeuzuMu.js";import{M as ce}from"./MobileAppDrawer-DdLzgZKv.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]="701e16cf-142a-4cd8-9e23-41da3c86a51c",e._sentryDebugIdIdentifier="sentry-dbid-701e16cf-142a-4cd8-9e23-41da3c86a51c")}catch{}})();const de={overlayWidth:new M(100,100,30)},fe=({isReferralDrawerOpen:e,closeDrawerHandler:a})=>{const r=N(),n=W();if(P.getSignedInUser()==null)throw Error("Can't access How Referral works without signing in...");const i=()=>{a(!0)},u=f(c=>J(c));return s.jsx(te,{anchor:"right",open:e,PaperProps:{style:{width:de.overlayWidth.valuePercentage(n),boxShadow:"none"}},slotProps:{backdrop:{style:{opacity:.75,backgroundColor:r.colors.black,cursor:"pointer"}}},onClose:()=>i(),children:s.jsx(se,{in:e,direction:"left",children:s.jsx(ue,{onClick:c=>c.stopPropagation(),children:s.jsx(K,{onDismissClick:i,rewardsPlan:u.rewardsPlan})})})})},ue=oe(ie)`
2
- display: flex;
3
- min-height: 100%;
4
- flex-direction: column;
5
- `,I="refer-and-earn-status-update",we=_(function(e){const a=R(e),r=e.referralViewState.rewardsPlanFetchState,n=ae([a,r]);return{inviteList:a.invitations,uiState:a.uiState,pendingBonus:a.pendingBonus,earnedBonus:a.earnedBonus,pendingReferrals:a.pendingReferrals,fetchState:n.fetchState,rewardsPlan:a.rewardsPlan}},function(e,a){const{navigate:r}=a;return{onColumnSortConfigChanged:(n,i)=>{e(ne({sortOrder:i,sortkey:n}))},onInviteClick:()=>{l.trackRewardsPageClicked("invite via email"),r("../refer")},onHowItWorksClick:()=>{l.trackRewardsPageClicked("know more"),r("../how-it-works")},onResendInviteClick:n=>{l.trackRewardsPageClicked("resend invite"),e(re(n))},onBackClick:()=>{r("../",{relative:"path"})},onReloadInvitees:()=>{e(g(!0))},onCopyReferralLink:()=>{l.trackRewardsPageClicked("copy referral link")},onClickRefer:()=>{l.trackRewardsPageClicked("refer")},onEventReceived:n=>{n===I&&e(g(!0,!0))}}})(X(q));function Se({isReferralDrawerOpen:e}){const a=F(),r=H(),n=V(),[i,u]=o.useState(!1),[c,D]=o.useState(!1),[x,E]=o.useState(!1),[k,h]=o.useState(!1),w=P.getSignedInUser(),C=f(t=>Q(t)),v=f(t=>R(t)),m=v.fetchState,p=f(t=>t.referralViewState.rewardsPlanFetchState),y=Y([v,p]),{areTenantIdsInSync:d}=U();o.useEffect(()=>{C?.rewardsLastViewedTime==null&&x===!1&&(r(Z()),E(!0))},[]),o.useEffect(()=>{!i&&m==="Not-Started"&&d&&(u(!0),r(g(!0)))},[m,r,d]),o.useEffect(()=>{!c&&p.fetchState==="Not-Started"&&d&&(D(!0),r(ee(!0)))},[p,r,d]),o.useEffect(()=>{h(e!=null&&e===!0)},[e]);const[j,A]=o.useState(!1),S=t=>{A(t)},{isAiCfoAccessEnabled:B,onAskAiCfoClick:T}=le({mobileExploreReferrer:"Rewards"});$({isDataReady:y===!0});const L={events:w?.userId!=null?[`private-encrypted-${w.userId}.${I}`]:[],eventCallback:(t,b,O)=>{O.onEventReceived(t)}};return s.jsxs(s.Fragment,{children:[y===!0?s.jsx(z,{analytics:l,onLoad:t=>(b=>{w!=null&&b.trackPageLoaded(G.Event.rewardsPageViewed)})(t)}):null,s.jsx(ce,{isAppContentDrawerOpen:j,handleDrawerToggle:S}),k===!0?s.jsx(fe,{closeDrawerHandler:()=>{h(!1),a("..")},isReferralDrawerOpen:k}):null,s.jsx(we,{location:n,navigate:a,currentTenant:C,onClickMenuIcon:()=>{S(!0)},isAiCfoAccessEnabled:B,onAskAiCfoClick:T,...L})]})}export{Se as R};
@@ -1 +0,0 @@
1
- import{j as r}from"./liveblocks-DJRxBaIV.js";import O from"./NotFoundScreen-L94hFyts.js";import{a as p}from"./sentry-CCv9H2LX.js";import{h as A,g as x,u as C,j as u,N as D,n as k,o as W,p as b}from"./core-Deu6zgNz.js";import{eX as j,Ql as g,QB as S,FG as V,EP as U,FF as d,Fw as B,QO as $,FI as _}from"./zeni-epic-state-Bs-2KETC.js";import{z as N,a9 as L,b$ as Q,ag as T,bE as z,c0 as G}from"./index-D1FLsJEr.js";import"./mui-2-6pepya.js";import{u as K,R as E}from"./ReimbursementApprovalRuleDetailScreen-Cx0XJ_uS.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="41b6dd34-796c-4049-8150-18c1913bccb7",e._sentryDebugIdIdentifier="sentry-dbid-41b6dd34-796c-4049-8150-18c1913bccb7")}catch{}})();const y="reimbursement-approval-rule-update",P=k(function(e){return{approvalView:g(e),remiSetupApproverViewUpdateData:S(e).remiSetupApproverViewUpdateData}},function(e,o){const{navigate:s,location:a}=o;return{onApprovalRulesEventReceived:t=>{t.endsWith(y)&&e($(!1))},onBackClick:()=>{T(a)?s("../../"):s("../../../reimbursements/setup")},onDeleteRuleClick:t=>{e(B(t,!1))},onEditRuleClick:t=>{t!=null?(e(d(t)),s(`./${t}/edit`)):(e(d()),s("./new"))}}})(L(Q)),X=({isLoading:e})=>{const o=A(),s=x(),a=C(),[t,i]=p.useState(!1),[m,w]=p.useState(!1),f=u(n=>n.remiSetupApproverViewState.fetchState),l=u(n=>j(n)),c=u(n=>g(n)),v=u(n=>S(n).remiSetupApproverViewUpdateData);if(p.useEffect(()=>{v?.updateStatus.fetchState==="Completed"&&a(V())},[v]),p.useEffect(()=>{t||f!=="Not-Started"||e||(i(!0),a(U(!0,!1,!1,!1)))},[t,f,e,a]),N.getSignedInUser()==null)throw Error("Can't access reimbursement approval without signing in...");p.useEffect(()=>{c.allApprovalRules.length===0&&c.fetchState==="Completed"&&(m||(w(!0),a(d())),o("./new"))},[m,c,a]);const R={events:l.companyId!=null?[`private-encrypted-${l.companyId}.${y}`]:[],eventCallback:(n,F,h)=>{n.endsWith(y)&&h.onApprovalRulesEventReceived(n)}};return l?.companyReimbursementInfo?.info?.isReimbursementTOSAccepted===!1?r.jsx(D,{to:"../../promo"}):r.jsx(P,{currentTenant:l,location:s,navigate:o,...R})},I="reimbursement-approval-rule-update",q=k(function(e){const o=g(e),s=S(e).remiSetupApproverViewUpdateData,a={};for(const i of Object.values(e.vendorState.vendorByID))i?.id!=null&&(a[i.id]=i.name);const t={};for(const i of Object.values(e.classState.classesByKey))i?.classId!=null&&(t[i.classId]=i.className);return{approvalView:o,remiSetupApproverViewUpdateData:s,vendorNamesById:a,departmentNamesById:t}},function(e,o){const{navigate:s,location:a}=o;return{onApprovalRulesEventReceived:t=>{t.endsWith(I)&&e($(!1))},onBackClick:()=>{T(a)?s("../../"):s("../../../reimbursements/setup")},onDeleteRuleClick:t=>{e(B(t,!0))},onEditRuleClick:t=>{t!=null?(e(d(t)),s(`./${t}/edit`)):(e(d()),s("./new"))},onReorderRules:t=>{e(_(t,!0))}}})(L(G)),H=()=>{const e=u(a=>j(a)),{isApprovalRulesV3Enabled:o,isLoading:s}=z(e?.tenantId);return o?r.jsx(J,{isLoading:s}):r.jsx(X,{isLoading:s})},J=({isLoading:e})=>{const o=A(),s=x(),a=C(),[t,i]=p.useState(!1),[m,w]=p.useState(!1),f=u(n=>n.remiSetupApproverViewState.fetchState),l=u(n=>j(n)),c=u(n=>g(n));K();const v=u(n=>S(n).remiSetupApproverViewUpdateData);if(p.useEffect(()=>{v?.updateStatus.fetchState==="Completed"&&a(V())},[v]),p.useEffect(()=>{t||f!=="Not-Started"||e||(i(!0),a(U(!0,!1,!1,!0)))},[t,f,e,a]),N.getSignedInUser()==null)throw Error("Can't access reimbursement approval without signing in...");p.useEffect(()=>{c.allApprovalRules.length===0&&c.fetchState==="Completed"&&(m||(w(!0),a(d())),o("./new"))},[m,c,a]);const R={events:l.companyId!=null?[`private-encrypted-${l.companyId}.${I}`]:[],eventCallback:(n,F,h)=>{n.endsWith(I)&&h.onApprovalRulesEventReceived(n)}};return l?.companyReimbursementInfo?.info?.isReimbursementTOSAccepted===!1?r.jsx(D,{to:"../../promo"}):r.jsx(q,{currentTenant:l,location:s,navigate:o,isLoading:e,...R})};function oe(){return r.jsxs(W,{children:[r.jsx(b,{path:"/",element:r.jsx(H,{})}),r.jsx(b,{path:"/new",element:r.jsx(E,{})}),r.jsx(b,{path:"/:approvalRuleId/edit",element:r.jsx(E,{})}),r.jsx(b,{path:"*",element:r.jsx(O,{})})]})}export{oe as R};
@@ -1 +0,0 @@
1
- import{j as a}from"./liveblocks-DJRxBaIV.js";import{C as x,z as w,aS as y,D as E,d as p,f as F,d9 as L,G as T}from"./index-D1FLsJEr.js";import"./mui-2-6pepya.js";import m from"./NotFoundScreen-L94hFyts.js";import{a as d}from"./sentry-CCv9H2LX.js";import{u as P,j as b,h as V,g as A,n as R,o as U,p as u}from"./core-Deu6zgNz.js";import{eX as z,TH as C,Q0 as G,TI as v,vL as J,fK as Y,TJ as H,vJ as K}from"./zeni-epic-state-Bs-2KETC.js";import{R as j}from"./ReferralListScreen-BI2I20EQ.js";import"./recharts-DhkBu8Nc.js";import"./analytics-Dx20Frgp.js";import"./plaid-CAtEruxd.js";import"./dnd-CQEwIj2b.js";import"./stripe-DMRn4zHo.js";import"./lottie-CqN_xVLe.js";import"./lexical-C3dsnw0c.js";import"./pdf-DoNTLdQS.js";import"./utils-Fa4tVlqJ.js";import"./useAskAiCfoHostNavButtonProps-BSeuzuMu.js";import"./MobileAppDrawer-DdLzgZKv.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]="28e228c5-a8b3-48ed-8c97-415a5cd5b133",e._sentryDebugIdIdentifier="sentry-dbid-28e228c5-a8b3-48ed-8c97-415a5cd5b133")}catch{}})();const O=R(function(e,t){const n=C(e);return{inviteFormView:n.localData,submitStatus:n.saveStatus,userName:t.userName,rewardsPlan:n.rewardsPlan,companyLegalName:t.companyName}},function(e,t){const{navigate:n}=t,i=w.getSignedInUser();return{onDismissClick:()=>{e(v()),n("..")},onSendClick:()=>{if(i!=null){const s=[],r=[];t.inviteFormCompayData.forEach(c=>{s.push(c.companyName),r.push(c.emailIds[0])}),p.trackInviteEmailClicked("send",s,r,s.length)}e(K())},onUpdateInviteFormLocalData:s=>{e(H({localData:s}))},onSubmitSuccess:()=>{n("../../")},onCancelClick:()=>{i!=null&&p.trackInviteEmailClicked("cancel")}}})(L),Q=()=>{const e=P(),[t,n]=d.useState(!1),[i,s]=d.useState(!1),r=b(o=>z(o)),c=V(),D=A(),{useDynamicConfig:g}=x(),f=w.getSignedInUser();if(f==null)throw Error("Can't access invite referral screen without signing in...");const l=b(o=>C(o)),_=f?.firstName!=null?f.firstName:"User",{configValue:h}=g(y.zeniCardsConfig),{configValue:S}=g(y.zeniAccountsConfig),k=G(S);d.useEffect(()=>{e(v()),r?.rewardsLastViewedTime==null&&i===!1&&(e(J()),s(!0))},[]),d.useEffect(()=>{t||l.fetchState!=="Not-Started"||(n(!0),e(Y(!0)))},[l.fetchState,e]);const I=r.company?.companyInfo.companyLegalName??r.companyName;return a.jsxs(a.Fragment,{children:[l.fetchState==="Completed"?a.jsx(E,{analytics:p,onLoad:o=>(N=>N.trackPageLoaded(F.Event.inviteEmailViewed))(o)}):null,a.jsx(O,{navigate:c,location:D,currentTenant:r,companyName:I,userName:_,inviteFormCompayData:l.localData,chargeCardCashbackRatePerTransaction:h.charge_card_cashback_rate_per_transaction!=null?h.charge_card_cashback_rate_per_transaction:.0175,maxAnnualPercentageYield:k.maxAnnualPercentageYield})]})};function ue(){const{useFeatureGate:e}=x(),{isFeatureEnabled:t}=e(T.isReferralFeatureEnabled);return a.jsxs(U,{children:[a.jsx(u,{path:"/",element:t?a.jsx(j,{}):a.jsx(m,{})}),a.jsx(u,{path:"how-it-works",element:t?a.jsx(j,{isReferralDrawerOpen:!0}):a.jsx(m,{})}),a.jsx(u,{path:"refer/*",element:t?a.jsx(Q,{}):a.jsx(m,{})}),a.jsx(u,{path:"*",element:a.jsx(m,{})})]})}export{ue as default};
@@ -1 +0,0 @@
1
- import{j as u}from"./liveblocks-DJRxBaIV.js";import{a as f,b as M,q as T}from"./sentry-CCv9H2LX.js";import{u as A,h as z,j as l,g as D,N as j,n as O}from"./core-Deu6zgNz.js";import{u as P,z as s,y as _,d as E,a as F,e as B,f as N,r as $,g as V,h as q,j as v}from"./index-D1FLsJEr.js";import{eX as J,L_ as W,L$ as X,fA as Y,g0 as H,M4 as Z,go as G,cZ as K,M5 as b,M6 as Q,M7 as R,bY as y}from"./zeni-epic-state-Bs-2KETC.js";import"./mui-2-6pepya.js";import{u as ee}from"./useDeviceId-BPEf1gm7.js";import{f as te}from"./analyticsHelper-Ds6_JcxE.js";import{t as ne}from"./getLocaleForTenant-Goc_zo4E.js";import"./recharts-DhkBu8Nc.js";import"./analytics-Dx20Frgp.js";import"./plaid-CAtEruxd.js";import"./dnd-CQEwIj2b.js";import"./stripe-DMRn4zHo.js";import"./lottie-CqN_xVLe.js";import"./lexical-C3dsnw0c.js";import"./pdf-DoNTLdQS.js";import"./utils-Fa4tVlqJ.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new t.Error().stack;i&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[i]="123c850f-8e57-42a4-8ded-506eb34057bd",t._sentryDebugIdIdentifier="sentry-dbid-123c850f-8e57-42a4-8ded-506eb34057bd")}catch{}})();const ie=O(function(t,i){const d=t.tenantState.fetchState,g=t.tenantState.sendEmailMagicLinkFetchState,{magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:c}=i;return{googleClientId:v.googleClientId,microsoftClientId:v.microsoftClientId,signInError:t.tenantState.error?.error,fetchState:d,sendMagicLinkStatus:g,magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:c}},function(t,i){const{location:d,navigate:g}=i;return console.warn(JSON.stringify(window.location)),{onOAuthError:(n,a)=>{T({message:`OAuth error from provider ${a} with error ${n}`,level:"error",tags:{authProvider:a,errorType:"zeni.login.error"},extra:{error:n,windowLocation:window.location.href}})},onOAuthSuccess:(n,a)=>{const c=a==="google"?window.location.origin:window.location.origin+window.location.pathname;t(R({authCode:n,oauthProvider:a,appType:"web",redirectUri:y(c),sourceUri:y(d.state!=null?d.state.origin:"")}))},getSignedInUser:()=>s.getSignedInUser(),onSignedInCallback:()=>{const n=d.state?.origin;n&&n!=="/"?g(n,{replace:!0}):window.open(window.location.origin,"_self")},sendMagicLink:n=>{const{deviceId:a}=i;a!=null&&(s.saveMagicLinkEmail(n),t(Q(n,a)))},clearSignInError:()=>{t(b())}}})(q),ae=M.memo(ie);function ve({setTenantEmailDomain:t}){const i=A(),d=z(),{clearAllLoading:g}=P(),n=s.getSignedInUser();f.useLayoutEffect(()=>{g()},[g]);const a=ee(),c=l(e=>e.tenantState.magicLinkCodeVerifier),{sendEmailMagicLinkFetchState:h,accountLocked:C,accountUnlockTime:L}=l(e=>e.tenantState),p=l(e=>e.tenantState.fetchState),k=l(e=>e.tenantState.activeTenantFetchState.fetchState),S=l(e=>e.tenantState.signInState),o=l(e=>e.tenantState.loggedInUser),r=l(e=>J(e)),I=l(e=>W(e)),m=D(),w=_().mode,U=m.state?.magicLinkExpired,x=m.state?.magicLinkAlreadyUsed;if(f.useEffect(()=>{h.fetchState==="Completed"&&c!=null&&(E.trackSignInLinkSent(),s.saveMagicLinkCodeVerifier(c))},[h.fetchState,c]),f.useEffect(()=>{t(void 0)},[]),f.useEffect(()=>{S!=="In-Progress"||p!=="Completed"&&k!=="Completed"||o?.zeniSessionId==null||r==null||(s.savePayNowInfoTooltip(!0,o.zeniSessionId),s.saveSignedInUserWithSession(o,o.zeniSessionId),s.saveSignedInUserTenants(X(I.tenantsInOrder),o.zeniSessionId),Y(o.userId,o.zeniSessionId,r.tenantId),i(H(r.tenantId)),s.saveActiveTenantDomainForUser(r.tenantEmailDomain),i(Z("Completed")),F.updateAppLocaleID(ne(r)),te(o,r,w,void 0,I.tenantsInOrder),G().then(()=>{const e=V();e!=null&&B(e)}),setTimeout(()=>{E.trackLogin(N.Event.loginSuccess,o.authProvider??"google",K(r.productSettings))},2e3))},[S,p,k,o,r,I,w,m.state,i]),S==="In-Progress"&&p==="Completed"&&o?.zeniSessionId!=null&&r!=null||n!=null){const e=m.state?.origin??"/";return u.jsx(j,{to:e,state:{...m.state,origin:""}})}return u.jsxs(u.Fragment,{children:[u.jsx(ae,{magicLinkExpired:!!U,magicLinkAlreadyUsed:!!x,magicLinkExpiredEmail:s.getMagicLinkEmail()??void 0,location:m,navigate:d,deviceId:a??void 0,showEmailLogin:!0}),C===!0&&L!=null?u.jsx($,{onClose:()=>i(b()),unlockDate:L}):null]})}export{ve as default};
@@ -1,9 +0,0 @@
1
- import{j as s}from"./liveblocks-DJRxBaIV.js";import{a as i}from"./sentry-CCv9H2LX.js";import{u as c,g as l,N as u}from"./core-Deu6zgNz.js";import{z as a,d as n,f as m,B as p}from"./index-D1FLsJEr.js";import{gt as g,Mm as y}from"./zeni-epic-state-Bs-2KETC.js";import{n as h}from"./mui-2-6pepya.js";import"./recharts-DhkBu8Nc.js";import"./analytics-Dx20Frgp.js";import"./plaid-CAtEruxd.js";import"./dnd-CQEwIj2b.js";import"./stripe-DMRn4zHo.js";import"./lottie-CqN_xVLe.js";import"./lexical-C3dsnw0c.js";import"./pdf-DoNTLdQS.js";import"./utils-Fa4tVlqJ.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]="0a7d2c7f-3638-4a43-a842-ec9df58fa989",e._sentryDebugIdIdentifier="sentry-dbid-0a7d2c7f-3638-4a43-a842-ec9df58fa989")}catch{}})();function M(){const e=c(),t=l(),r=i.useRef(!1),f=a.isSignedIn(),o=t.state?.message==="logout"||f;return i.useEffect(()=>{if(o&&!r.current){r.current=!0;try{e(g()),y(),n.trackLogout(m.Event.logoutSuccess),n.resetUserIdentity(),a.clearAll()}catch(d){console.error("Error during sign out:",d)}finally{window.location.replace("/signin/auth")}}},[o,e]),o?s.jsx(b,{children:s.jsx(p,{fetchState:"In-Progress"})}):s.jsx(u,{to:"../",replace:!0})}const b=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
- `;export{M as default};
@@ -1,9 +0,0 @@
1
- import{j as n}from"./liveblocks-DJRxBaIV.js";import se from"./NotFoundScreen-L94hFyts.js";import{a as c}from"./sentry-CCv9H2LX.js";import{h as M,u as O,j as g,g as ne,i as oe,N as ie,n as re,o as ce,p as f}from"./core-Deu6zgNz.js";import{I9 as Z,Ic as le,I6 as de,eX as H,TK as K,Iq as W,I3 as pe,IW as ue,IP as ke,TL as J,TM as z,H$ as me,HY as fe,rD as ge,rr as he,l6 as Ie,Ik as Se,TN as Te,IB as be,Iy as Ee,If as Ce,Iv as Ge,Iu as De}from"./zeni-epic-state-Bs-2KETC.js";import{z as G,da as xe,x as ye,C as je,G as b,p as Q,v as w,D as ve,d as V,f as we,db as Re,j as q,au as Be}from"./index-D1FLsJEr.js";import{n as Fe}from"./mui-2-6pepya.js";import{u as Pe}from"./useInitialThreadRequest-BLJkGJ7X.js";import{M as Ue}from"./MobileAppDrawer-DdLzgZKv.js";import Le from"./TaskListScreen-KWPzBGE2.js";import"./recharts-DhkBu8Nc.js";import"./analytics-Dx20Frgp.js";import"./plaid-CAtEruxd.js";import"./dnd-CQEwIj2b.js";import"./stripe-DMRn4zHo.js";import"./lottie-CqN_xVLe.js";import"./lexical-C3dsnw0c.js";import"./pdf-DoNTLdQS.js";import"./utils-Fa4tVlqJ.js";import"./useAskAiCfoHostNavButtonProps-BSeuzuMu.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]="c6afb8c5-a482-4cf4-91c6-8e9bbf06fe44",e._sentryDebugIdIdentifier="sentry-dbid-c6afb8c5-a482-4cf4-91c6-8e9bbf06fe44")}catch{}})();function $e(){const e=M(),t=O(),s=G.getSignedInUser(),{cannedResponses:u,fetchState:r,saveFetchState:d}=g(o=>o.cannedResponsesState),l=c.useCallback(()=>{t(Z())},[t]),k=c.useCallback((o,h,I)=>{t(le({name:o,content:h,cannedResponseId:I}))},[t]),a=c.useCallback(o=>{t(de({cannedResponseId:o}))},[t]);if(s==null)throw Error("Can't access quick responses page without signing in...");return n.jsx(xe,{cannedResponses:u,isLoading:r==="In-Progress"||r==="Not-Started",isSaving:d==="In-Progress",onBackClick:()=>e(-1),onDelete:a,onFetch:l,onSave:k})}let A,_=[];const Ne=re(function(e,t){const{location:s,taskGroupId:u}=t,r=J(e,t.taskId),d=H(e),l=r.taskGroupId??u,k=l!=null?z(e.taskGroupState,l):void 0,a=G.getSignedInUser(),o=d.tenantId,h={userId:a?.userId??"",sessionId:a?.zeniSessionId??"",tenantId:o??""},I=K(e),{tenantEmailDomain:D}=d,E=r.recurringSourceTaskId,x=E!=null?`${q.appUrl}/${D}/tasks/${encodeURIComponent(E)}`:void 0;var S;return{taskDetailSelectorView:r,authParams:h,isZeniUser:G.isZeniUser(),userGroupList:((S=e.userGroupsState.userGroupByUserGroupId)!==A&&(A=S,_=Object.values(S)),_),isNewClicked:s.state?.message==="comingFromTaskListPage",filesEndPoint:Be.fileMicroServiceBaseUrl,companyName:t.currentTenant.companyName,companyId:t.currentTenant.companyId,currentUrl:`${q.appUrl}${t.location.pathname}`,cannedResponses:e.cannedResponsesState.cannedResponses,isCannedResponsesLoading:e.cannedResponsesState.fetchState==="In-Progress",recurringSourceTaskUrl:x,tagListView:I,taskGroupName:l!=null&&k!=null&&k.isDefault===!1?k.name:void 0,taskGroupList:e.taskGroupViewState.taskGroupsIds.map(p=>z(e.taskGroupState,p)).filter(p=>p!=null&&!p.isDeleted).map(p=>({id:p.id,name:p.name,isDefault:p.isDefault}))}},function(e,t){const{taskId:s,navigate:u,currentTenant:r,location:d,taskGroupId:l}=t,{tenantEmailDomain:k}=r;return{onSaveChangesToLocalStore:a=>{e(De({taskDetailLocalData:a,taskId:s}))},onSaveDetailClick:a=>{e(Ge(s,a??l))},onArchiveTaskClick:()=>{t.taskId!=null&&e(Ce(t.taskId))},onSnoozeTask:(a,o)=>{e(Ee(a,o))},onUnsnoozeTask:a=>{e(be(a))},onDismissClick:()=>{if(d.state?.message==="triggerBackClick"){const a=Q(d.state?.pathnameStackToGoBack),o=a.poppedPathname??"../../dashboard";u(o,{state:{pathnameStackToGoBack:a.newStack}})}else{const a=R(k),o=w(d.state?.pathnameStackToGoBack,d.pathname);u(a,{state:{pathnameStackToGoBack:o}})}e(Te({taskId:s}))},onDeleteTaskClick:()=>{e(Se(s))},updateFilesEntity:a=>{e(Ie({files:a}))},onDeleteFile:a=>{e(he(a))},onEditFileName:(a,o)=>{e(ge(a,o.split(".")[0]))},onReloadTaskDetailPage:()=>{e(W(!1,s))},onCreateTagClick:a=>{e(fe(a,s))},onDeleteTagClick:a=>{e(me(a,s))},onFetchCannedResponses:()=>{e(Z())},onManageTemplatesClick:()=>{u(`/${r.tenantEmailDomain}/tasks/quick-responses`)}}})(Re);function v(){const e=M(),t=O(),s=ne(),u=ye(),{taskId:r,taskGroupId:d}=oe(),l=g(i=>H(i)),k=Pe(l?.companyId),{useFeatureGate:a}=je(),{isFeatureEnabled:o}=a(b.isTaskSnoozeEnabled),{isFeatureEnabled:h}=a(b.isTaskVisibilityEnabled),{isFeatureEnabled:I}=a(b.isTaskCannedResponsesEnabled),{isFeatureEnabled:D}=a(b.isTaskRecurringParentEnabled),{isFeatureEnabled:E}=a(b.isTaskGroupAssigneesEnabled),[x,S]=c.useState(!1),[p,X]=c.useState(!1),[B,Y]=c.useState(!1),[F,ee]=c.useState(!1),[P,y]=c.useState(!1),T=c.useRef(!1),C=g(i=>i.taskListState.updateTasksFetchState.fetchState),U=g(i=>K(i)),L=g(i=>i.taskGroupViewState.fetchState);c.useEffect(()=>{p||(X(!0),t(W(!1,r)))},[p,t]),c.useEffect(()=>{B||U.fetchState==="Completed"||(Y(!0),t(pe()))},[B,t,U.fetchState]),c.useEffect(()=>{F||L==="Completed"||(ee(!0),t(ue()))},[F,t,L]);const ae=c.useCallback(()=>{r!=null&&(T.current=!1,t(ke([r],null,{isArchived:!1})),y(!0))},[t,r]);c.useEffect(()=>{if(P)if(C!=="In-Progress"){if(T.current){if(C==="Error")return y(!1),void(T.current=!1);if(C==="Completed"){y(!1),T.current=!1;const{tenantEmailDomain:i}=l;if(s.state?.message==="triggerBackClick"){const m=Q(s.state?.pathnameStackToGoBack);e(m.poppedPathname??"../../dashboard",{state:{pathnameStackToGoBack:m.newStack}})}else{const m=R(i);e(m,{state:{pathnameStackToGoBack:w(s.state?.pathnameStackToGoBack,s.pathname)}})}}}}else T.current=!0},[P,C,l,s,e]);const $=g(i=>J(i,r)),j=$.fetchState,N=G.getSignedInUser();if(N==null)throw Error("Can't access task detail page without signing in...");if(j==="Error"&&$.error?.code===400){const{tenantEmailDomain:i}=l,m=R(i),te=w(s.state?.pathnameStackToGoBack,s.pathname);return n.jsx(ie,{to:m,state:{pathnameStackToGoBack:te}})}return n.jsxs(n.Fragment,{children:[j==="Completed"?n.jsx(ve,{analytics:V,onLoad:i=>(m=>m.trackPageLoaded(we.Event.taskDetailPage))(i)}):null,n.jsxs(ze,{children:[n.jsx(Ue,{isAppContentDrawerOpen:x,handleDrawerToggle:i=>{S(i)}}),n.jsx(Ne,{analytics:V,currentTenant:l,handleZeniLogoClick:()=>{u.toggle()},initialOpenThreadRequest:k,location:s,loggedInUser:N,navigate:e,taskGroupId:d,taskId:r,taskDetailFetchState:j,onUnarchiveTaskClick:ae,isTaskSnoozeEnabled:o,isTaskVisibilityEnabled:h,isTaskCannedResponsesEnabled:I,isTaskRecurringParentEnabled:D,isTaskGroupAssigneesEnabled:E})]})]})}const ze=Fe.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
- `,R=e=>`/${e}/tasks`;function ia(){return n.jsxs(ce,{children:[n.jsx(f,{path:"/new",element:n.jsx(v,{})}),n.jsx(f,{path:"/new/:taskGroupId",element:n.jsx(v,{})}),n.jsx(f,{path:"/group/:taskGroupId",element:n.jsx(Le,{})}),n.jsx(f,{path:"/quick-responses",element:n.jsx($e,{})}),n.jsx(f,{path:"/:taskId",element:n.jsx(v,{})}),n.jsx(f,{path:"*",element:n.jsx(se,{})})]})}export{ia as default};
@@ -1,12 +0,0 @@
1
- import{j as o}from"./liveblocks-DJRxBaIV.js";import{a as l}from"./sentry-CCv9H2LX.js";import{t as u,u as h,j as b,N as y}from"./core-Deu6zgNz.js";import{Mj as I,fA as w,Bl as j}from"./zeni-epic-state-Bs-2KETC.js";import{z as f,B as x,M as S,N as D}from"./index-D1FLsJEr.js";import{n as p}from"./mui-2-6pepya.js";import"./recharts-DhkBu8Nc.js";import"./analytics-Dx20Frgp.js";import"./plaid-CAtEruxd.js";import"./dnd-CQEwIj2b.js";import"./stripe-DMRn4zHo.js";import"./lottie-CqN_xVLe.js";import"./lexical-C3dsnw0c.js";import"./pdf-DoNTLdQS.js";import"./utils-Fa4tVlqJ.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]="2ba67d77-444b-4642-b771-435d910999a6",e._sentryDebugIdIdentifier="sentry-dbid-2ba67d77-444b-4642-b771-435d910999a6")}catch{}})();const q=()=>{const[e]=u(),t=e.get("code")??"",s=e.get("state")??"",g=e.get("profileId")??"",[n,m]=l.useState(!1),a=h(),i=b(c=>I(c)),r=f.getSignedInUser(),d=f.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),l.useEffect(()=>{n||(m(!0),a(j(t,g,s)))},[n,a]),i.fetchState==="Error"?o.jsx(E,{children:o.jsx(_,{children:i.error?.message??""})}):(i.fetchState==="Completed"&&window.close(),o.jsx(x,{fetchState:"In-Progress"}))},E=p.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
- `,_=p(D.LargeRegular)`
10
- display: flex;
11
- color: ${S.important};
12
- `;export{q as default};
@@ -1,9 +0,0 @@
1
- import{j as i}from"./liveblocks-DJRxBaIV.js";import{a as f}from"./sentry-CCv9H2LX.js";import{h as x,u as B,g as L,i as $,j as p}from"./core-Deu6zgNz.js";import{Lh as s,Lg as j,RF as v,eX as C,RG as T}from"./zeni-epic-state-Bs-2KETC.js";import{K as z,au as g,y as D,z as E,B as P,ci as G,p as N}from"./index-D1FLsJEr.js";import{n as _}from"./mui-2-6pepya.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]="fd17c67d-678a-4630-aec1-39703c3d179a",e._sentryDebugIdIdentifier="sentry-dbid-fd17c67d-678a-4630-aec1-39703c3d179a")}catch{}})();const U=_.div`
2
- display: flex;
3
- height: 100vh;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- `;function X(){const e=x(),n=B(),d=z(),l=L();let{accountId:a}=$(),u=`${g.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${a}`;a==null&&l.pathname.includes(`${s}/statements`)&&(a=s,u=`${g.bankingMicroServiceBaseUrl}/1.0/${s}`);const[m,y]=f.useState(!1),h=D();f.useEffect(()=>{m||(y(!0),n(j(a??"",!1)))},[m,n]);const o=p(t=>v(t,a??"")),I=()=>{const t=N(l.state?.pathnameStackToGoBack),S=t.poppedPathname??"..";e(S,{state:{pathnameStackToGoBack:t.newStack}})},c=E.getSignedInUser(),r=p(t=>C(t)),b={userId:c?.userId??"",sessionId:c?.zeniSessionId??"",tenantId:r.tenantId??""},w=T(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(P,{fetchState:"In-Progress",style:{backgroundColor:h.colors.grey5}}):i.jsx(U,{windowSize:d,children:i.jsx(G,{currentTenantCompanyName:k,statementListView:o,accountLast4:w,onBackClick:I,authParams:b,downloadEndPoint:u})})}export{X as Z};
@@ -1 +0,0 @@
1
- import{cM as m,cN as l,Mb as _,Mc as d}from"./zeni-epic-state-Bs-2KETC.js";import{d as u}from"./index-D1FLsJEr.js";import"./sentry-CCv9H2LX.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]="769cf3ec-73a2-4820-9805-40402593cdbe",e._sentryDebugIdIdentifier="sentry-dbid-769cf3ec-73a2-4820-9805-40402593cdbe")}catch{}})();const h=e=>{switch(e){case"this_month_to_date":case"this_week_to_date":case"this_year_to_date":case"last_year":case"last_week":case"last_month":case"last_6_months":case"last_3_months":case"last_12_months":case"free_range":return e;case"month":default:return"months";case"quarter":return"quarters";case"year":return"years"}},b=(e,a,o,i,s)=>{const c=[],r=[];let t=[];s?.forEach(n=>{c.push(n.companyId),r.push(n.companyName),t=t.concat(n.userRole)}),u.identify(e.userId,{tenant_id:a.tenantId,tenant_email_domain:a.tenantEmailDomain,company_id:a.companyId,company_name:a.companyName,user_role:a.userRole,chargebee_customer_id:i,$email:e.userEmail,user_email_domain:e.userEmailDomain,$first_name:e.firstName,$last_name:e.lastName,company_ids:s!=null?c:void 0,company_names:s!=null?r:void 0,user_roles:s!=null?t:void 0,app_type:"web",appearance:o})},g=(e,a)=>m(e,a)?"bill_pay":l(e,a)?"reimbursement":_(e,a)?"zeni_accounts":d(e,a)?"charge_cards":"bill_pay",w=e=>Object.values(e.allocation).map(String).join("-");export{w as a,b as f,g,h as t};