@zeniai/web-app-ui 5.3.86-dev → 5.3.87-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 (137) hide show
  1. package/dist/assets/{AccountMappingScreen-BXvURRvs.js → AccountMappingScreen-9MHulU9s.js} +2 -2
  2. package/dist/assets/{ActualMatchingMatchDetailScreen-CkPu1Iyz.js → ActualMatchingMatchDetailScreen-Db6bbB6u.js} +1 -1
  3. package/dist/assets/AddressRoutes-DHraPu2z.js +1 -0
  4. package/dist/assets/AddressScreen-BOTH_mRu.js +9 -0
  5. package/dist/assets/{AiCfoScreen-Akbbu7OO.js → AiCfoScreen-bjaeBeb9.js} +1 -1
  6. package/dist/assets/{AppDrawer-B4rZP8Bn.js → AppDrawer-UbqqLXJe.js} +1 -1
  7. package/dist/assets/{BillPayApprovalRoutes-BG_fZlTC.js → BillPayApprovalRoutes-CYDv31qk.js} +1 -1
  8. package/dist/assets/{BillPayRoutes-pg5PH9Oh.js → BillPayRoutes-C4GXOC5A.js} +6 -6
  9. package/dist/assets/BusinessVerificationPageScreen-CqSHzLo6.js +9 -0
  10. package/dist/assets/{CardsAiCfoScreen-hMGqj2aq.js → CardsAiCfoScreen-DZorjbaf.js} +1 -1
  11. package/dist/assets/{ChargeCardRoutes-STh2Wp7w.js → ChargeCardRoutes-C7tzEoGV.js} +6 -6
  12. package/dist/assets/CompanyPassportScreen-DViAGsze.js +1 -0
  13. package/dist/assets/{ConnectionAuthScreen-BKVwXbSh.js → ConnectionAuthScreen-yW3T26AI.js} +3 -3
  14. package/dist/assets/CustomerOnboardingAuthScreen-CEs020qJ.js +1 -0
  15. package/dist/assets/{CustomerOnboardingRoutes-CNIJctLU.js → CustomerOnboardingRoutes-B2flxgjR.js} +5 -5
  16. package/dist/assets/{DashboardRoutes-Cq-Lxh3h.js → DashboardRoutes-D6igUQ_c.js} +3 -3
  17. package/dist/assets/{DefaultTenantHome-CshmDcap.js → DefaultTenantHome-CMpQllfi.js} +1 -1
  18. package/dist/assets/DomesticWireDetailScreen-D-XdJZt2.js +18 -0
  19. package/dist/assets/{DrawerScreen-CBAh6dJa.js → DrawerScreen-DquM7PdJ.js} +1 -1
  20. package/dist/assets/EntityDetailRoutes-B7vzEsHl.js +1 -0
  21. package/dist/assets/{ExpenseAutomationRoutes-FZqTLeVo.js → ExpenseAutomationRoutes-o1rALTgt.js} +6 -6
  22. package/dist/assets/{FeaturePreviewScreen-CZR8YW-L.js → FeaturePreviewScreen-B0SxkBd3.js} +1 -1
  23. package/dist/assets/HubSpotOAuthCallbackScreen-CYGRU6le.js +1 -0
  24. package/dist/assets/{InboxNotificationsProvider-T1CjerOs.js → InboxNotificationsProvider-DPgK9Ai7.js} +1 -1
  25. package/dist/assets/{InvoicingRoutes-Ys89tvz2.js → InvoicingRoutes-BroIFZYm.js} +1 -1
  26. package/dist/assets/{MagicLinkRoutes-DR9AEDCZ.js → MagicLinkRoutes-BYZevXyH.js} +5 -5
  27. package/dist/assets/MagicLinkSignInScreen-DqgSvyNq.js +12 -0
  28. package/dist/assets/{MobileAppDrawer-CtIgBgQ-.js → MobileAppDrawer-C6gfQS8M.js} +1 -1
  29. package/dist/assets/NotFoundScreen-0hF8kIyY.js +1 -0
  30. package/dist/assets/NotificationRoutes-BRYauJLR.js +1 -0
  31. package/dist/assets/OAuthConsentScreen-B_ncopNh.js +1 -0
  32. package/dist/assets/PandLWithForecastRoutes-BU_XWD0n.js +1 -0
  33. package/dist/assets/{PaymentLinkScreen-EXZ3ZrN9.js → PaymentLinkScreen-6qwvkVJe.js} +1 -1
  34. package/dist/assets/{PeopleRoutes-CCoQcfmM.js → PeopleRoutes-BT10_5ZZ.js} +5 -5
  35. package/dist/assets/{PerformanceRoutes-Bx8pszb9.js → PerformanceRoutes-DEM0F09k.js} +1 -1
  36. package/dist/assets/{Preview-C3KwiSeU.js → Preview-xYIpXmh0.js} +1 -1
  37. package/dist/assets/{QBOConnectionScreen-B_IVukb7.js → QBOConnectionScreen-CPdRdNFp.js} +1 -1
  38. package/dist/assets/{ReimbursementApprovalRoutes-Dm2Et1-C.js → ReimbursementApprovalRoutes-kSFV0KaQ.js} +1 -1
  39. package/dist/assets/ReimbursementApprovalRuleDetailScreen-CD8m8c7W.js +1 -0
  40. package/dist/assets/{ReimbursementRoutes-D1jTtRL_.js → ReimbursementRoutes-B7HRPmdv.js} +4 -4
  41. package/dist/assets/{ReportsRoutes-DwdL-iuL.js → ReportsRoutes-CkYyyTje.js} +1 -1
  42. package/dist/assets/{RewardsRoutes-CKpKVKBM.js → RewardsRoutes-kEA_DefW.js} +1 -1
  43. package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-BTUJ8zwC.js → ScheduleDetailsPrepaidExpensesScreen-DH-G2ABB.js} +4 -4
  44. package/dist/assets/{ScreenRoutes-_NAgJfqV.js → ScreenRoutes-C72NzSAe.js} +2 -2
  45. package/dist/assets/{SettingsRoutes-BK2pVuXm.js → SettingsRoutes-gBgMK1MW.js} +5 -5
  46. package/dist/assets/{SetupPagesScreen-CUiMxOyt.js → SetupPagesScreen-CIrP22mo.js} +4 -4
  47. package/dist/assets/{SignInScreen-B16ytfH2.js → SignInScreen-DAl9_AVs.js} +1 -1
  48. package/dist/assets/SignOutScreen-CvQRUG30.js +9 -0
  49. package/dist/assets/TaskListScreen-DI37lN7R.js +9 -0
  50. package/dist/assets/TaskRoutes-Sr-eq5Xy.js +9 -0
  51. package/dist/assets/TransactionDetailRoutes-DHOAhb5X.js +1 -0
  52. package/dist/assets/{TransactionDetailScreen-DFFAXF6x.js → TransactionDetailScreen-BfwmFu4d.js} +2 -2
  53. package/dist/assets/{TransactionListRoutes-bvLvzle-.js → TransactionListRoutes-CcqGcmw0.js} +1 -1
  54. package/dist/assets/{TreasuryRoutes-DYIO-YgE.js → TreasuryRoutes-S1BfnYGO.js} +5 -5
  55. package/dist/assets/{VendorsRoutes-DxWng3tY.js → VendorsRoutes-D9wt7kTI.js} +1 -1
  56. package/dist/assets/WiseConfirmationScreen-CBCiP645.js +12 -0
  57. package/dist/assets/{ZeniAccountRoutes-bTRWcMAn.js → ZeniAccountRoutes-CgUN5fCf.js} +9 -9
  58. package/dist/assets/ZeniAccountStatementScreen-jmmjZcA9.js +9 -0
  59. package/dist/assets/{accountMappingHelper-Cl-vw8fd.js → accountMappingHelper-BYw-4sqP.js} +1 -1
  60. package/dist/assets/{analytics-bcpq8FmH.js → analytics-UPQyZr49.js} +1 -1
  61. package/dist/assets/{analyticsHelper-DTKAaOR4.js → analyticsHelper-nRPDDcpi.js} +1 -1
  62. package/dist/assets/{core-CLbwxogo.js → core-D4EC26kf.js} +1 -1
  63. package/dist/assets/{decodeURIComponentSafe-CTII6a9j.js → decodeURIComponentSafe-CDB32jt8.js} +1 -1
  64. package/dist/assets/{dnd-D7kr6gj3.js → dnd-CQ9igkkh.js} +1 -1
  65. package/dist/assets/{empty-BdckjUGv.js → empty-CI6RvMsS.js} +1 -1
  66. package/dist/assets/{empty-BIuVl5i4.js → empty-D2f6MViE.js} +1 -1
  67. package/dist/assets/{emptyVideoElement-CsPLODSh.js → emptyVideoElement-DMQKfl7Z.js} +1 -1
  68. package/dist/assets/epic-pH_zo6MR.js +2 -0
  69. package/dist/assets/expenseAutomationHelper-DLTA8kBq.js +1 -0
  70. package/dist/assets/{getLocaleForTenant-BdgPeU-B.js → getLocaleForTenant-B07LkoV2.js} +1 -1
  71. package/dist/assets/{index-COZnX9q1.js → index-B_bOZ9_a.js} +1 -1
  72. package/dist/assets/{index-C31Y0QTF.js → index-CEVAJ-IM.js} +1 -1
  73. package/dist/assets/{index-DPWxOeVp.js → index-CWHRX-bO.js} +1 -1
  74. package/dist/assets/{index-BWTXRZ02.js → index-Ch-ATQTq.js} +12598 -12590
  75. package/dist/assets/{index-CFqdtjWk.js → index-Cjagh0U7.js} +2 -2
  76. package/dist/assets/{index-CtHN3MJR.js → index-CllzBMQZ.js} +1 -1
  77. package/dist/assets/{index-CGtk3Boq.js → index-D7USIDVj.js} +1 -1
  78. package/dist/assets/{index-BGZGT2EB.js → index-DIih7oGD.js} +1 -1
  79. package/dist/assets/{lexical-DBQnrckW.js → lexical-DvwBeJWJ.js} +1 -1
  80. package/dist/assets/{liveblocks-B8NMVuJ_.js → liveblocks-DcDE-V-o.js} +1 -1
  81. package/dist/assets/{lottie-DZboDKA6.js → lottie-DBrmrNFb.js} +1 -1
  82. package/dist/assets/{mui-DB2eP-4H.js → mui-BCH_ILdb.js} +1 -1
  83. package/dist/assets/{pathToGoBack-kLAH7lQZ.js → pathToGoBack-rzbozB31.js} +1 -1
  84. package/dist/assets/{pdf-lib-B2sKhaXv.js → pdf-lib-CbTEittW.js} +1 -1
  85. package/dist/assets/{pdf-ByO6Vz9p.js → pdf-zGCHYG6q.js} +4 -4
  86. package/dist/assets/{plaid-BjkLQcpb.js → plaid-a-pmhWdo.js} +1 -1
  87. package/dist/assets/{pusher-DLAXsv5D.js → pusher-DTPJtuD1.js} +1 -1
  88. package/dist/assets/{react-Bnoavnug.js → react-BxMK-s19.js} +1 -1
  89. package/dist/assets/{react-CSeNOqFc.js → react-C83CKqL4.js} +1 -1
  90. package/dist/assets/{react-DnFO_FFm.js → react-CW0JS27q.js} +1 -1
  91. package/dist/assets/{react-6e8jc3Wj.js → react-Cc6y9hJ0.js} +1 -1
  92. package/dist/assets/{react-Bdnz9ur-.js → react-DEi14qD-.js} +1 -1
  93. package/dist/assets/{react-3YBksWOJ.js → react-Dom5mok4.js} +1 -1
  94. package/dist/assets/{recharts-DLaK4yUy.js → recharts-BRIJ8RH5.js} +1 -1
  95. package/dist/assets/{routePaths-D7Q4znoA.js → routePaths-D0-Tropc.js} +1 -1
  96. package/dist/assets/{sentry-Di8VmQH9.js → sentry-DB4rU-NW.js} +1 -1
  97. package/dist/assets/{stripSplatSuffix-vknm6I0a.js → stripSplatSuffix-DDkMarxH.js} +1 -1
  98. package/dist/assets/{url-DQtqpgyq.js → url-B6fk1MD4.js} +1 -1
  99. package/dist/assets/{url-D-LhAzLP.js → url-C0P0ff3A.js} +1 -1
  100. package/dist/assets/useActualMatchingMatchDetail-BNN20aCx.js +1 -0
  101. package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-CoIOeMrO.js → useAiCfoDashboardSuggestedQuestionsChips-DOmg3jmM.js} +1 -1
  102. package/dist/assets/{useAskAiCfoHostNavButtonProps-2NTBRuLk.js → useAskAiCfoHostNavButtonProps-CBSVhkeG.js} +1 -1
  103. package/dist/assets/{useChargeCardPusherEvents-CyCKOPqT.js → useChargeCardPusherEvents-WOovjOqT.js} +1 -1
  104. package/dist/assets/{useDeviceId-D9wKXTe6.js → useDeviceId-Dy35NfBh.js} +1 -1
  105. package/dist/assets/useEmailConnectResultRefresh-27P04Izm.js +1 -0
  106. package/dist/assets/{useInitialThreadRequest-_cR9E-my.js → useInitialThreadRequest-Da3K5Ksw.js} +1 -1
  107. package/dist/assets/{useTaskManagerAccess-DYYDLTVZ.js → useTaskManagerAccess-CX5toJpg.js} +1 -1
  108. package/dist/assets/{useTaskManagerPusherEvents-DaFacbHX.js → useTaskManagerPusherEvents-BiZinOaM.js} +1 -1
  109. package/dist/assets/{utils-cD9C-nwV.js → utils-CU_Pr3K6.js} +1 -1
  110. package/dist/assets/{withTransactionSidePanel-BOBG-nk3.js → withTransactionSidePanel-CCvid0cv.js} +1 -1
  111. package/dist/assets/{zeni-epic-state-DuYWeJse.js → zeni-epic-state-Bl3gAQPi.js} +5 -5
  112. package/dist/index.html +1 -1
  113. package/package.json +4 -4
  114. package/dist/assets/AddressRoutes-CRV9O3fJ.js +0 -1
  115. package/dist/assets/AddressScreen-CbqqBPeg.js +0 -9
  116. package/dist/assets/BusinessVerificationPageScreen-B81g6W18.js +0 -9
  117. package/dist/assets/CompanyPassportScreen-LxcAg-6u.js +0 -1
  118. package/dist/assets/CustomerOnboardingAuthScreen-yvp5XDgC.js +0 -1
  119. package/dist/assets/DomesticWireDetailScreen-BSEUD6C3.js +0 -18
  120. package/dist/assets/EntityDetailRoutes-CKxj6mH-.js +0 -1
  121. package/dist/assets/HubSpotOAuthCallbackScreen-CUlI7cbh.js +0 -1
  122. package/dist/assets/MagicLinkSignInScreen-2HP7A3da.js +0 -12
  123. package/dist/assets/NotFoundScreen-oJupr3pq.js +0 -1
  124. package/dist/assets/NotificationRoutes-DPQX5f6K.js +0 -1
  125. package/dist/assets/OAuthConsentScreen-BFDI6eC9.js +0 -1
  126. package/dist/assets/PandLWithForecastRoutes-DyZHHb1Z.js +0 -1
  127. package/dist/assets/ReimbursementApprovalRuleDetailScreen-CKOH-HzU.js +0 -1
  128. package/dist/assets/SignOutScreen-CYY1dAbn.js +0 -9
  129. package/dist/assets/TaskListScreen-DHzPd6H5.js +0 -9
  130. package/dist/assets/TaskRoutes-hldsrW8n.js +0 -9
  131. package/dist/assets/TransactionDetailRoutes-Cii1a7bV.js +0 -1
  132. package/dist/assets/WiseConfirmationScreen-3GfsXfj0.js +0 -12
  133. package/dist/assets/ZeniAccountStatementScreen-ulCu2kq_.js +0 -9
  134. package/dist/assets/epic-AKFDmlZB.js +0 -2
  135. package/dist/assets/expenseAutomationHelper-C40iB_7D.js +0 -1
  136. package/dist/assets/useActualMatchingMatchDetail-BtihcKgk.js +0 -1
  137. package/dist/assets/useEmailConnectResultRefresh-CLDF1mnr.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-BWTXRZ02.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-Di8VmQH9.js"><link rel="modulepreload" crossorigin href="/assets/core-CLbwxogo.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-DuYWeJse.js"><link rel="modulepreload" crossorigin href="/assets/mui-DB2eP-4H.js"><link rel="modulepreload" crossorigin href="/assets/analytics-bcpq8FmH.js"><link rel="modulepreload" crossorigin href="/assets/utils-cD9C-nwV.js"><link rel="stylesheet" crossorigin href="/assets/index-BQ3cXEYt.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-Ch-ATQTq.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-DB4rU-NW.js"><link rel="modulepreload" crossorigin href="/assets/core-D4EC26kf.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-Bl3gAQPi.js"><link rel="modulepreload" crossorigin href="/assets/mui-BCH_ILdb.js"><link rel="modulepreload" crossorigin href="/assets/analytics-UPQyZr49.js"><link rel="modulepreload" crossorigin href="/assets/utils-CU_Pr3K6.js"><link rel="stylesheet" crossorigin href="/assets/index-BQ3cXEYt.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.3.86-dev",
3
+ "version": "5.3.87-dev",
4
4
  "files": [
5
5
  "dist/**/*"
6
6
  ],
@@ -28,9 +28,9 @@
28
28
  "@sentry/core": "^9.42.1",
29
29
  "@sentry/react": "^9.42.1",
30
30
  "@stripe/stripe-js": "^4.4.0",
31
- "@zeniai/client-analytics": "2.1.2",
32
- "@zeniai/client-epic-state": "5.2.82",
33
- "@zeniai/web-components": "4.4.24",
31
+ "@zeniai/client-analytics": "2.1.4",
32
+ "@zeniai/client-epic-state": "5.2.83",
33
+ "@zeniai/web-components": "4.4.25",
34
34
  "color": "3.1.3",
35
35
  "crypto-js": "4.2.0",
36
36
  "dnd-core": "^16.0.1",
@@ -1 +0,0 @@
1
- import{j as e}from"./liveblocks-B8NMVuJ_.js";import{A as i}from"./AddressScreen-CbqqBPeg.js";import s from"./NotFoundScreen-oJupr3pq.js";import"./sentry-Di8VmQH9.js";import{n as d,o as r}from"./core-CLbwxogo.js";import"./zeni-epic-state-DuYWeJse.js";import"./recharts-DLaK4yUy.js";import"./index-BWTXRZ02.js";import"./mui-DB2eP-4H.js";import"./analytics-bcpq8FmH.js";import"./plaid-BjkLQcpb.js";import"./dnd-D7kr6gj3.js";import"./stripe-cKAAJElX.js";import"./lottie-DZboDKA6.js";import"./lexical-DBQnrckW.js";import"./pdf-ByO6Vz9p.js";import"./utils-cD9C-nwV.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]="81cbb5c1-1b56-4d87-a240-ae6c03b91825",t._sentryDebugIdIdentifier="sentry-dbid-81cbb5c1-1b56-4d87-a240-ae6c03b91825")}catch{}})();function _(){return e.jsxs(d,{children:[e.jsx(r,{path:"/edit/:addressType/:addressId",element:e.jsx(i,{})}),e.jsx(r,{path:"/new/:addressType",element:e.jsx(i,{})}),e.jsx(r,{path:"*",element:e.jsx(s,{})})]})}export{_ as default};
@@ -1,9 +0,0 @@
1
- import{j as r}from"./liveblocks-B8NMVuJ_.js";import{a as h}from"./sentry-Di8VmQH9.js";import{h as T,u as A,g as j,i as E,j as $,l as B}from"./core-CLbwxogo.js";import{$ as L,z as M,V,a5 as D,a6 as K,h as C,N as S,a1 as R,T as b,a2 as N}from"./index-BWTXRZ02.js";import{VP as _,it as z,fI as U,VQ as F,c9 as G,VR as O,mL as q}from"./zeni-epic-state-DuYWeJse.js";import{u as H,n as Q}from"./mui-DB2eP-4H.js";import J from"./NotFoundScreen-oJupr3pq.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="3f2a5155-29e8-44cd-b920-ef78ac8a381a",e._sentryDebugIdIdentifier="sentry-dbid-3f2a5155-29e8-44cd-b920-ef78ac8a381a")}catch{}})();const W=Q.div`
2
- display: flex;
3
- height: 100vh;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- `,X=B((function(e,s){const{addressId:o,isSubPage:i,addressType:c}=s,l=U(e),a=s.roleMap!=null&&F(s.roleMap),n=i||c==="user_address"||G(l?.userRole??[])||a?void 0:"readonly";if(o==null){const t=O(c,e);return{addressToEdit:t?.addressToCreate,loadingState:t?.status?.fetchState,googleAPIKey:b.googleMapsAPIKey,isDisabled:n,isSubPage:i,dontShowSaveConfirmationPopup:s.dontShowSaveConfirmation}}const d=_(e,o);return{addressToEdit:d.address,loadingState:d.fetchState,googleAPIKey:b.googleMapsAPIKey,isDisabled:n}}),(function(e,s){const{navigate:o,location:i,addressType:c}=s,l=a=>{if(a==="express-pay")o("../express-pay/add-wire");else{const n=i.state,d=N(n?.pathnameStackToGoBack);let t=d.poppedPathname??v();const u=n?.queryParams;if(u){const g=new URLSearchParams(u).toString();g&&(t=`${t}?${g}`)}o(t,{state:{pathnameStackToGoBack:d.newStack}})}};return{onSubmitHandler:a=>{const n=Y(a);e(q({addressType:c,addressToCreate:n})),C?.trackSaveAddressClicked(S.Event.saveAddressClicked,{street:a.street.addressString,city:a.city,state:a.state,country:a.country.selectedOption??"",postalCode:a.postalCode,suite:a.suite,secondaryInfo:a.secondaryInfo}),l(s.bankAccountContext)},onCancel:()=>{l(s.bankAccountContext)}}}))(R);function re({isSubPage:e,hideAddressSubTitle:s=!1,hideAddressBackButton:o=!1,dontShowSaveConfirmation:i,accountContext:c,addressTypeParam:l}){const a=T(),n=A(),d=j(),{addressId:t,addressType:u}=E(),g=L(),w=H(),I=M.getSignedInUser(),[f,k]=h.useState(t==null),p=$((m=>t!=null?_(m,t).fetchState:"Not-Started")),x=V();if(I==null)throw Error("Can't access address page without signing in...");const P=m=>m.trackPageLoaded(t!=null?S.Event.editAddress:S.Event.addAddress),y=l??u;return h.useEffect((()=>{f||t==null||(k(!0),n(z(t,!1)))}),[f,t,n]),y==null||y.match(/(user_address|company_address|company_registered_address|vendor_address|officer_([1-9]|10)_address|invoicing_customer_billing_address|invoicing_subscription_shipping_address|invoicing_business_address)$/g)?!f&&p==="Not-Started"||f&&p==="In-Progress"?r.jsx(D,{fetchState:p,style:{backgroundColor:w.colors.grey5}}):t!=null&&p==="Error"?(a(`${v(1)}/new`,{replace:!0}),r.jsx(r.Fragment,{})):r.jsxs(r.Fragment,{children:[r.jsx(K,{analytics:C,onLoad:P}),r.jsx(W,{windowSize:g,children:r.jsx(X,{location:d,navigate:a,isSubPage:e===!0,hideAddressBackButton:o,hideAddressSubTitle:s,addressId:t,addressType:y,dontShowSaveConfirmation:i,bankAccountContext:c,roleMap:x?.loggedInUserRoleMap})})]}):r.jsx(J,{})}const v=(e=2)=>{let s="../";for(let o=0;o<e;o++)s=`${s}../`;return s},Y=e=>({street:[e.street.addressString,e.suite,e.secondaryInfo],city:e.city,state:e.state,country:e.country.selectedOption??"",countryCode:e.countryCode,postalCode:e.postalCode,latitude:e.street.addressValue?.locationLat,longitude:e.street.addressValue?.locationLng});export{re as A,Y as t};
@@ -1,9 +0,0 @@
1
- import{a as O}from"./sentry-Di8VmQH9.js";import{u as H,j as b,h as se,g as oe,i as ie,N as ce,l as re}from"./core-CLbwxogo.js";import{fI as z,HZ as ue,Ib as de,Ln as le,Od as pe,OT as me,PI as fe,ZB as ye,BY as Se,SM as ge,ZC as Ie,ZD as be,ZE as he,ZF as Te,ZG as De,ZH as Ce,VQ as Oe,YH as ke,W3 as Ve,Mz as Ae,Mr as we,W4 as Ne,Mv as Fe,mL as ve,gJ as _e,gI as Ee,gH as xe,v2 as Be,uV as ze,uS as Re,mD as Me,C5 as Pe,C3 as R,bF as M,Ch as P,cF as Le}from"./zeni-epic-state-DuYWeJse.js";import{bR as Ue,V as Ze,W as je,bg as Ge,z as B,a6 as He,h as L,l as E,N as x,bT as Ke,ac as We,p as U,aE as Z}from"./index-BWTXRZ02.js";import{n as qe}from"./mui-DB2eP-4H.js";import{j as A}from"./liveblocks-B8NMVuJ_.js";import{d as j}from"./routePaths-D7Q4znoA.js";import{M as Ye}from"./MobileAppDrawer-CtIgBgQ-.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},c=new e.Error().stack;c&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[c]="ba9c928c-19a0-49ca-98b5-cf7b690860a1",e._sentryDebugIdIdentifier="sentry-dbid-ba9c928c-19a0-49ca-98b5-cf7b690860a1")}catch{}})();function it(){const e=H(),c=b((u=>z(u))),a=c?.tenantId,{isApprovalRulesV3Enabled:s,isLoading:l}=Ue(a),p=b((u=>u.billPaySetupApproverViewState.fetchState));O.useEffect((()=>{a==null||l||p==="Not-Started"&&e(ue(!0,!0,s))}),[a,l,s,p,e])}function G(e,c,a,s=!1){switch(c){case"zeni_accounts":e(fe(a,!0,s));break;case"zeni_treasury":e(me(a,!0,s));break;case"reimbursement":e(pe(a,!0,s));break;case"charge_cards":e(le(a,!0,s));break;default:e(de(a,!0,s))}}const $e=qe.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
- `,Je=re((function(e,c){const{businessVerificationDetails:a}=c,s=z(e),l=B.getSignedInUser(),p=s.tenantId,u={userId:l?.userId??"",sessionId:l?.zeniSessionId??"",tenantId:p??""},h=Oe(c.roleMap)&&a.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",t=ke(e.companyConfigState),o=Ve(e.userRoleConfigState);return{businessVerificationDetails:a,verficationDetailsFetchState:a.fetchState,isRefreshingViewInBackground:a.isRefreshingViewInBackground,allNationalityCountries:a.allNationalityCountries,filesEndPoint:`${We.fileMicroServiceBaseUrl}`,authParams:u,isDisabled:h,allIndustries:t.companyIndustries??[],companyTitles:o.companyTitles}}),(function(e,c){const{companyId:a,productType:s,currentTenant:l,navigate:p,location:u}=c,{tenantEmailDomain:h}=l;return{onCompanyDetailsChanged:t=>{const{companyDescription:o,companyIndustry:m,companyIndustryType:k,companyLegalName:V,companyTaxId:y,companyWebsite:f,companyPhone:S,primaryContactEmail:d,primaryContactName:i,primaryContactUserId:T,primaryContactSyncToken:D,syncToken:r,fileIds:C,incDate:n,typeOfIncorporation:g,stateOfIncorporation:w,sourceOfFunds:N,companySubIndustry:F,countriesOfOperations:I,companySourceOfFunds:K,companySourceOfFundsDescription:W,transactionVolume:q,transactionVolumeDescription:Y,purposeOfAccount:$,purposeOfAccountDescription:J,regulatedStatus:Q,regulatedStatusDescription:X,usNexus:ee,usNexusTypes:te}=t,v=k?.selectedOption,ae={companyId:a,companyDescription:o,companyIndustry:m.selectedOption,companyIndustryType:v==null||v===""?void 0:v,companyLegalName:V,taxIdOrEIN:y,website:f!=""&&f!=null?Le(f):void 0,phone:S,syncToken:r,fileIds:C,incDate:n!=null?M(n?.toString()):n,typeOfIncorporation:g?.selectedOption??"",stateOfIncorporation:w?.selectedOption??"",sourceOfFunds:N?.selectedOption??"",companySubIndustry:F?.selectedOption??"",countriesOfOperations:I?.selectedOptions.map((_=>_.length===2?_:Z(_)))??[],companySourceOfFunds:K?.selectedOption??"",companySourceOfFundsDescription:W,transactionVolume:q?.selectedOption??"",transactionVolumeDescription:Y,purposeOfAccount:$?.selectedOption??"",purposeOfAccountDescription:J,regulatedStatus:Q??"",regulatedStatusDescription:X,usNexus:ee,usNexusTypes:te?.selectedOptions??[]},ne={userId:T,firstName:i.firstName,lastName:i.lastName,email:d,syncToken:D};e(P({companyDetails:ae,primaryContactDetails:ne}))},onCompanyOfficerUpdated:t=>{const o=t.map((m=>{const{officerType:k,userId:V,name:y,email:f,nationalityCountryCode:S,ssn:d,dob:i,phone:T,syncToken:D,selectDocument:r,role:C,ownership:n,isSelectedForVerification:g,userVerificationStatus:w,treasuryUserVerificationStatus:N,fileIds:F}=m;let I;return r.selectDocumentType==="driverLicense"?I="driving_license":r.selectDocumentType==="passport"?I="passport":r.selectDocumentType==="stateId"?I="id_document":r.selectDocumentType==="ssnCard"&&(I="social_security_card"),{officerType:k,userId:V,firstName:y.firstName,lastName:y.lastName,email:f,ssn:d,nationalityCountryCode:S?.selectedOption!=null?Z(S.selectedOption):void 0,phone:T,birthday:i!=null?M(i?.toString()):i,syncToken:D,titleAtCompany:C.selectedOption,ownershipInCompany:n,documentTypeSelectedForVerification:I,isSelectedForVerification:g,userVerificationStatus:w,treasuryUserVerificationStatus:N,fileIds:F,additionalDocumentTypesRequestedForVerification:[],additionalSubmittedDocumentsForVerificationFileIds:[],areAdditionalDocumentsRequestedForVerification:!1,areAdditionalDocumentsSubmittedForVerification:!1}}));e(P({officers:o}))},onSaveDetailsClick:t=>{e(R(a,t,s))},onSendForVerificationClick:t=>{e(R(a,t,s,!0))},onAddressClick:t=>{const o=j(h,t),m=U(u.state?.pathnameStackToGoBack,u.pathname);p(o,{state:{pathnameStackToGoBack:m}})},onRegisteredAddressClick:t=>{const o=j(h,t),m=U(u.state?.pathnameStackToGoBack,u.pathname);p(o,{state:{pathnameStackToGoBack:m}})},onBackClick:()=>{e(Pe({companyId:a})),p("../setup")},updateFilesEntity:t=>{e(Me({files:t}))},onDeleteFile:t=>{e(Re(t))},onDeleteFileList:t=>{e(ze(t))},onEditFileName:(t,o)=>{e(Be(t,o.split(".")[0]))},onGetOtp:t=>{e(xe(t,"SpendManagementSetup"))},onResendOtp:t=>{e(Ee(t,"SpendManagementSetup"))},onVerifyOtp:(t,o)=>{e(_e(t,o,"SpendManagementSetup"))},saveNewAddressInLocalStore:(t,o)=>{e(ve({addressType:t,addressToCreate:o}))},onIdentityDocumentUploadedForAutofill:t=>{if(a==null)return;const o=Ne(t.documentType);o!=null&&e(Fe({target:"setup",companyId:a,officerType:t.officerType,fileId:t.fileId,documentType:o}))},onCompanyDocumentUploadedForAutofill:t=>{a!=null&&e(we({target:"setup",companyId:a,fileId:t.fileId,documentType:t.documentType}))},onResetKycKybClick:()=>{e(Ae())}}}))(Ke),ct=({productType:e})=>{const c=se(),a=oe(),s=H(),[l,p]=O.useState(!1),[u,h]=O.useState(!1),{tenantEmailDomain:t}=ie(),o=Ze(),{useDynamicConfig:m}=je(),{configValue:k}=m(Ge.zeniAccountsConfig),V=ye(k),y=b((n=>{switch(e){case"zeni_accounts":return n.zeniAccountSetupViewState.fetchState;case"reimbursement":return n.remiSetupViewState.fetchState;case"charge_cards":return n.chargeCardSetupViewState.fetchState;case"zeni_treasury":return n.treasurySetupViewState.fetchState;default:return n.billPaySetupViewState.fetchState}})),f=b((n=>n.companyConfigState.fetchState)),S=b((n=>n.userRoleConfigState.fetchState)),d=b((n=>z(n))),i=d.companyId??B.getSignedInUserTenant(t)?.companyId;O.useEffect((()=>{f==="Not-Started"&&s(Se()),S==="Not-Started"&&s(ge(!0))}),[f,S,s]),O.useEffect((()=>{l||y!=="Not-Started"||i==null||(p(!0),G(s,e,i))}),[l,y,i,s]);const T=b((n=>{switch(e){case"zeni_accounts":return De(n,i);case"zeni_treasury":return Te(n,i);case"charge_cards":return he(n,i);case"reimbursement":return be(n,i);default:return Ie(n,i)}})),D=T.kycKybResetStatus.fetchState;if(O.useEffect((()=>{D==="Completed"&&i!=null&&(G(s,e,i,!0),s(Ce()))}),[D,i,e,s]),B.getSignedInUser()==null)throw Error("Can't access business verification without signing in...");let r;switch(e){case"zeni_accounts":r=d.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted;break;case"reimbursement":r=d.companyReimbursementInfo?.info?.isReimbursementTOSAccepted;break;case"charge_cards":r=d.companyChargeCardInfo?.info?.isChargeCardTOSAccepted===!0||d.companyDebitCardInfo?.info?.isDebitCardTOSAccepted;break;case"zeni_treasury":r=d.companyTreasuryInfo?.info?.isTreasuryTOSAccepted;break;default:r=d.companyBillPayInfo?.info?.isBillPayTOSAccepted}const C=n=>{h(n)};return r===!1?A.jsx(ce,{to:"../promo"}):A.jsxs($e,{children:[A.jsx(He,{analytics:L,onLoad:n=>(g=>{switch(e){case"zeni_accounts":return g.trackPageLoaded(x.Event.zeniAccountsBusinessVerification);case"reimbursement":case"charge_cards":return g.trackPageLoaded(x.Event.reimbursementBusinessVerification);default:return g.trackPageLoaded(x.Event.billPayBusinessVerification,E(a)?"Settings":void 0)}})(n)}),E(a)?A.jsx(Ye,{isAppContentDrawerOpen:u,handleDrawerToggle:C}):null,A.jsx(Je,{businessVerificationDetails:T,navigate:c,location:a,companyId:i,analytics:L,currentTenant:d,productType:e,isSettings:E(a),roleMap:o?.loggedInUserRoleMap??{},onClickMenuIcon:()=>{C(!0)},maxInsuredAmount:V.maxInsuredAmount})]})};export{ct as B,G as d,it as u};
@@ -1 +0,0 @@
1
- import{j as m}from"./liveblocks-B8NMVuJ_.js";import{a as g}from"./sentry-Di8VmQH9.js";import{h as w,u as x,g as T,i as k,j as O,l as E}from"./core-CLbwxogo.js";import{z as N,bq as F,a6 as P,h as V,N as L,l as b,br as j,ac as A,aE as U,p as B}from"./index-BWTXRZ02.js";import{fI as D,gL as M,BY as Y,gG as _,c9 as G,YH as R,bn as z,v2 as H,uS as q,mD as Z,oc as S,YI as $,bF as J,cF as C,on as K,ox as Q}from"./zeni-epic-state-DuYWeJse.js";import"./mui-DB2eP-4H.js";import{d as W}from"./routePaths-D7Q4znoA.js";import{M as X}from"./MobileAppDrawer-CtIgBgQ-.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]="5584eb3e-a0e6-4f45-a20d-423b10459fde",t._sentryDebugIdIdentifier="sentry-dbid-5584eb3e-a0e6-4f45-a20d-423b10459fde")}catch{}})();const ee=E((function(t){const a=_(t),i=N.getSignedInUser(),l=D(t),c=l.tenantId,p={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:c??""},f=G(l?.userRole??[])&&a.localData.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",e=R(t.companyConfigState),n=t.countryListState?.byCountryListCode?.nationalityCountryList?.countries??[];return{isCompanyVerified:a.companyView?.company?.company?.companyBillPayInfo?.companyVerificationStatus?.code==="verified",companyPassportView:a,allIndustries:e.companyIndustries??[],allNationalityCountries:n,isDisabled:f,authParams:p,filesEndPoint:`${A.fileMicroServiceBaseUrl}`,isZeniUser:z(i)}}),(function(t,a){const{companyId:i,currentTenant:l,navigate:c,location:p}=a,{tenantEmailDomain:f}=l;return{onScheduleClick:e=>{let n=e.href;n.includes("http")||(n="https://".concat(n)),window.open(n,"_blank")},onSaveAll:()=>{t(Q())},onAddressClick:e=>{const n=W(f,e),o=B(p.state?.pathnameStackToGoBack,p.pathname);c(n,{state:{pathnameStackToGoBack:o}})},onResetClick:()=>{t(K({companyId:i}))},onBackClick:()=>{c("../")},onCompanyDetailsChanged:e=>{const{companyInfo:n,incInfo:o,taxDetails:r,zeniFinanceTeam:d}=e,{website:u}=n,{meetingLink:y}=d,{incDate:s}=o,{taxesFiledYears:h}=r,v={companyInfo:{...n,website:u!=""&&u!=null?C(u):void 0,meetingLink:y!=""&&y!=null?C(y):void 0,industry:n.industry.selectedOption,companyIndustryType:n.companyIndustryType?.selectedOption??void 0,companySubIndustry:n.companySubIndustry?.selectedOption??void 0,businessModel:n.businessModel.selectedOption??"",companySourceOfFunds:n.companySourceOfFunds?.selectedOption,companySourceOfFundsDescription:n.companySourceOfFundsDescription??void 0,countriesOfOperations:n.countriesOfOperations?.selectedOptions?.map((I=>I.length===2?I:U(I)))??[],transactionVolume:n.transactionVolume?.selectedOption??void 0,transactionVolumeDescription:n.transactionVolumeDescription??void 0,regulatedStatus:n.regulatedStatus??void 0,regulatedStatusDescription:n.regulatedStatusDescription??void 0,usNexus:n.usNexus??void 0,usNexusTypes:n.usNexusTypes?.selectedOptions??[],purposeOfAccount:n.purposeOfAccount?.selectedOption??void 0,purposeOfAccountDescription:n.purposeOfAccountDescription??void 0},incInfo:{typeOfInc:o.typeOfInc.selectedOption??"",stateOfInc:o.stateOfInc.selectedOption??"",incDate:s!=null?J(s?.toString()):s,fileId:o.fileIds[0]},taxDetails:{taxIdOrEIN:r.taxIdOrEIN,sicCode:r.sicCode,naicsCode:r.naicsCode,dunsNumber:r.dunsNumber,taxesFiledYears: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($(e))},onCompanyOfficerUpdated:e=>{t(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:e.userId}]}))},updateFilesEntity:e=>{t(Z({files:e}))},onDeleteFile:e=>{t(q(e))},onEditFileName:(e,n)=>{t(H(e,n.split(".")[0]))}}}))(j);function de(){const t=w(),a=x(),i=T(),{tenantEmailDomain:l}=k(),[c,p]=g.useState(!1),[f,e]=g.useState(!1),n=O((s=>s.companyViewState.passportView.fetchState)),o=O((s=>s.companyConfigState.fetchState)),r=O((s=>D(s))),d=r.companyId??N.getSignedInUserTenant(l)?.companyId;if(N.getSignedInUser()==null)throw Error("Can't access company details page without signing in...");g.useEffect((()=>{c||n!=="Not-Started"||d==null||(p(!0),a(M(d)))}),[c,n,d,a]),g.useEffect((()=>{o==="Not-Started"&&a(Y())}),[o,a]);const u=s=>{e(s)},y=n==="Not-Started"||n==="In-Progress"||o==="Not-Started"||o==="In-Progress";return d!=null&&n==="Error"?m.jsx(F,{onGoHome:()=>t("../",{replace:!0}),onReload:()=>window.location.reload()}):m.jsxs(m.Fragment,{children:[m.jsx(P,{analytics:V,onLoad:s=>s.trackPageLoaded(L.Event.companyPassport,b(i)?"Settings":"Company Passport")}),b(i)?m.jsx(X,{isAppContentDrawerOpen:f,handleDrawerToggle:u}):null,m.jsx(ee,{companyId:d,navigate:t,location:i,isLoading:y,currentTenant:r,isSettings:b(i),onClickMenuIcon:()=>{u(!0)}})]})}export{de as C};
@@ -1 +0,0 @@
1
- import{j as i}from"./liveblocks-B8NMVuJ_.js";import{z as m}from"./index-BWTXRZ02.js";import{g as n}from"./QBOConnectionScreen-B_IVukb7.js";import"./sentry-Di8VmQH9.js";import{g as p,N as a}from"./core-CLbwxogo.js";import"./zeni-epic-state-DuYWeJse.js";import"./recharts-DLaK4yUy.js";import"./mui-DB2eP-4H.js";import"./analytics-bcpq8FmH.js";import"./plaid-BjkLQcpb.js";import"./dnd-D7kr6gj3.js";import"./stripe-cKAAJElX.js";import"./lottie-DZboDKA6.js";import"./lexical-DBQnrckW.js";import"./pdf-ByO6Vz9p.js";import"./utils-cD9C-nwV.js";import"./empty-BdckjUGv.js";import"./pdf-lib-B2sKhaXv.js";import"./index-C31Y0QTF.js";import"./url-D-LhAzLP.js";import"./index-CtHN3MJR.js";import"./decodeURIComponentSafe-CTII6a9j.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]="a1205b81-d106-415b-bd92-85aeae53ace3",t._sentryDebugIdIdentifier="sentry-dbid-a1205b81-d106-415b-bd92-85aeae53ace3")}catch{}})();const U=()=>{const t=p(),{code:o,realmId:r,state:e}=n(t.search),s=m.getSignedInUser()?.userId??"";if(f(o,r,e,s)===!0){const d=`../../${e}/onboarding?code=${o}&realmId=${r}&state=auth_flow`;return i.jsx(a,{to:d})}return i.jsx(a,{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-B8NMVuJ_.js";import{h as w,g as C,j as h,l as A,i as V}from"./core-CLbwxogo.js";import{Zk as k,Zr as W,gJ as J,gI as L,gH as M,kT as X,Xi as Y,uV as q,fI as B,YT as D,kR as T,Zl as S,Zu as F,kP as G,la as j}from"./zeni-epic-state-DuYWeJse.js";import{bL as K,$ as R,W as N,z as Z,a2 as p,A as v,a5 as U,bM as Q,E as H,bN as ee,p as te}from"./index-BWTXRZ02.js";import{u as O,n as z}from"./mui-DB2eP-4H.js";import"./sentry-Di8VmQH9.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]="ab90ed75-9590-417f-b186-90b0ae74cbdc",e._sentryDebugIdIdentifier="sentry-dbid-ab90ed75-9590-417f-b186-90b0ae74cbdc")}catch{}})();const ae=A(null,(function(e,t){return{onSaveVendor:a=>{e(X(t.vendorId!==void 0?t.vendorId:void 0,t.billId,void 0,t.isExpressPayPage)),e(Y("common")),a!=null&&e(q(a))},onGetOtp:a=>{e(M(a,"BillPayVendor"))},onResendOtp:a=>{e(L(a,"BillPayVendor"))},onVerifyOtp:(a,n)=>{e(J(a,n,"BillPayVendor"))},onVerifyOtpSuccess:(a,n,o)=>{e(W(a,n,o))}}}))(K);function _({vendorId:e,billId:t,isExpressPayPage:a}){const n=w(),o=C(),s=h((c=>k(c,e)));return l.jsx(ae,{location:o,navigate:n,vendorId:e,billId:t,vendorViewDetails:s,isExpressPayPage:a??!1})}const ne=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:a,billId:n}=t,o=k(e,a),s=D(e,t.isVendorRecommendationEnabled,t.isZeniAccountsFeatureEnabled,n);return{billId:n,isDisabled:o.bankAccountCreationState.fetchState==="In-Progress"?"readonly":void 0,vendorViewDetails:o,file:s.file,bankAccountContext:t.bankAccountContext}}),(function(e,t){const{navigate:a,location:n,vendorId:o}=t;return{onFetchBankName:s=>{e(j(s))},onSaveHandler:s=>{e(G(t.bankAccountContext,s,"standard",o))},onCancel:()=>{(()=>{const s=p(n.state?.pathnameStackToGoBack),c=s.poppedPathname??$();a(c,{state:{pathnameStackToGoBack:s.newStack}})})(),e(S())},onACHDetailsUpdated:s=>{const{bankAccountSection:c}=s;e(F({data:c}))},onBackClick:()=>{if(e(T({fetchState:"Not-Started"})),t.bankAccountContext==="express-pay")a("../",{relative:"path"});else{const s=p(t.location.state?.pathnameStackToGoBack),c=s.poppedPathname??$(0);t.navigate(c,{state:{pathnameStackToGoBack:s.newStack}})}e(S())}}}))(Q);function fe({vendorIdParam:e,accountContext:t}){const a=w(),n=C(),o=R(),{vendorId:s,billId:c}=V(),d=e??s,{useFeatureGate:r}=N(),i=Z.getSignedInUser(),b=h((u=>B(u))),g=O(),I=p(n.state?.pathnameStackToGoBack),f=t??(I.poppedPathname?.includes("vendor")===!0?"vendor":"billDetail"),m=h((u=>k(u,d))),{isFeatureEnabled:x}=r(v.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:y}=r(v.isDepositAccountsFeatureEnabled);if(i==null)throw Error("Can't access address page without signing in...");return f==="billDetail"&&m.editVendorState?.saveStatus.fetchState==="In-Progress"?l.jsx(U,{fetchState:m.editVendorState?.saveStatus.fetchState??"Not-Started",style:{backgroundColor:g.colors.grey5}}):l.jsxs(ne,{windowSize:o,children:[l.jsx(_,{vendorId:d,billId:c}),l.jsx(oe,{location:n,navigate:a,billId:c,vendorId:d,currentTenant:b,bankAccountContext:f,isVendorRecommendationEnabled:x,isZeniAccountsFeatureEnabled:y})]})}const $=(e=2)=>{let t="../";for(let a=0;a<e;a++)t=`${t}../`;return t},me=(e,t,a)=>{let n=`/${e}/bill/${encodeURIComponent(t)}`;return a=="draft"&&(n+="/edit"),n},he=e=>`/${e}/bills`,ke=(e,t)=>{let a=`/${e}/bill`;return a=t!=null?a.concat(`/${t}/edit`):a.concat("/new"),a},E=(e,t,a,n)=>{let o=`/${e}/bill`;return o+=a!=null?`/${a}/edit/vendor`:"/new/vendor",o+=n!=null?`/${n}/edit/${t}`:`/create/${t}`,o};function Se(e,t,a){return E(e,"ach",t,a)}function ve(e,t,a){return E(e,"domestic",t,a)}function ge(e,t,a){return E(e,"international",t,a)}const se=(e,t,a)=>{let n=`/${e}/bill/`;return n=a!=null?n.concat(`${encodeURIComponent(a)}/${t}/`):n.concat(`new/${t}/`),n},re=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 ${H.sp1} ${e.theme.colors.dropShadowNormal}`};
18
- `,ce=A((function(e,t){const{vendorId:a,billId:n}=t,o=k(e,a),s=D(e,t.isVendorRecommendationEnabled,t.isZeniAccountsFeatureEnabled,n);return{billId:n,isDisabled:o.bankAccountCreationState.fetchState==="In-Progress"?"readonly":void 0,vendorViewDetails:o,file:s.file,bankAccountContext:t.bankAccountContext}}),(function(e,t){const{billId:a,navigate:n,location:o,vendorId:s,currentTenant:c}=t,{tenantEmailDomain:d}=c;return{onFetchBankName:r=>{e(j(r))},onSaveHandler:r=>{e(G(t.bankAccountContext,r,"us-domestic",s))},onWireDetailsUpdated:r=>{const{bankAccountSection:i}=r;e(F({data:i}))},onCancel:()=>{(()=>{const r=p(o.state?.pathnameStackToGoBack),i=r.poppedPathname??P();n(i,{state:{pathnameStackToGoBack:r.newStack}})})(),e(S())},onAddressClick:r=>{if(t.bankAccountContext==="express-pay")n("./add-address");else{const i=se(d,r,a),b=te(o.state?.pathnameStackToGoBack,o.pathname);n(i,{state:{pathnameStackToGoBack:b}})}},onBackClick:()=>{if(e(T({fetchState:"Not-Started"})),t.bankAccountContext==="express-pay")n("../",{relative:"path"});else{const r=p(t.location.state?.pathnameStackToGoBack),i=r.poppedPathname??P(0);t.navigate(i,{state:{pathnameStackToGoBack:r.newStack}})}e(S())}}}))(ee);function Ie({vendorIdParam:e,accountContext:t}){const a=w(),n=C(),o=R(),{vendorId:s,billId:c}=V(),d=e??s,r=Z.getSignedInUser(),{useFeatureGate:i}=N(),b=O(),g=h((u=>B(u))),I=p(n.state?.pathnameStackToGoBack),f=t??(I.poppedPathname?.includes("vendor")===!0?"vendor":"billDetail"),m=h((u=>k(u,d))),{isFeatureEnabled:x}=i(v.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:y}=i(v.isDepositAccountsFeatureEnabled);if(r==null)throw Error("Can't access address page without signing in...");return f==="billDetail"&&m.editVendorState?.saveStatus.fetchState==="In-Progress"?l.jsx(U,{fetchState:m.editVendorState?.saveStatus.fetchState??"Not-Started",style:{backgroundColor:b.colors.grey5,boxShadow:`0px 2px ${H.sp1} ${b.colors.dropShadowNormal}`}}):l.jsxs(re,{windowSize:o,children:[l.jsx(_,{vendorId:d,billId:c}),l.jsx(ce,{location:n,navigate:a,billId:c,vendorId:d,currentTenant:g,bankAccountContext:f,isVendorRecommendationEnabled:x,isZeniAccountsFeatureEnabled:y})]})}const P=(e=2)=>{let t="../";for(let a=0;a<e;a++)t=`${t}../`;return t};export{fe as A,Ie as D,_ as V,me as a,se as b,ke as c,ve as d,he as g,ge as i,Se as v};
@@ -1 +0,0 @@
1
- import{j as s}from"./liveblocks-B8NMVuJ_.js";import{a as d}from"./sentry-Di8VmQH9.js";import{h as B,u as A,g as X,i as q,j as l,N as F,l as W,n as N,o as O}from"./core-CLbwxogo.js";import{Xn as _,fI as M,WE as R,n3 as Y,SF as b,Xs as $,Xh as z,m3 as J,SG as S,WJ as K,WK as V,Xj as H,Xi as L}from"./zeni-epic-state-DuYWeJse.js";import{b6 as Q,h as U,a2 as Z,p as tt}from"./index-BWTXRZ02.js";import"./mui-DB2eP-4H.js";import{d as I}from"./decodeURIComponentSafe-CTII6a9j.js";import{w as et}from"./withTransactionSidePanel-BOBG-nk3.js";import{f as at,c as nt}from"./routePaths-D7Q4znoA.js";import"./recharts-DLaK4yUy.js";import"./analytics-bcpq8FmH.js";import"./plaid-BjkLQcpb.js";import"./dnd-D7kr6gj3.js";import"./stripe-cKAAJElX.js";import"./lottie-DZboDKA6.js";import"./lexical-DBQnrckW.js";import"./pdf-ByO6Vz9p.js";import"./utils-cD9C-nwV.js";import"./useAskAiCfoHostNavButtonProps-2NTBRuLk.js";import"./TransactionDetailScreen-DFFAXF6x.js";import"./useInitialThreadRequest-_cR9E-my.js";import"./expenseAutomationHelper-C40iB_7D.js";import"./stripSplatSuffix-vknm6I0a.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]="7e045332-9270-4fb8-ad9b-81896555f03c",a._sentryDebugIdIdentifier="sentry-dbid-7e045332-9270-4fb8-ad9b-81896555f03c")}catch{}})();const it=W((function(a,t){const e=t.entity,i=$(a,t.entity,"EntityDetail");return{selectedEntity:e,autoCompleteData:{autoCompleteText:e.name,entityAutoCompleteView:z(a,"common")},trendWithTransactionsReport:i,analytics:U,isAccountingClassesEnabled:J(a)}}),(function(a,t){return{onTransactionItemClick:e=>{if(t.openTransactionPanel)return void t.openTransactionPanel(e.id,e.type);const i=`${nt(e,t.tenantEmailDomain)}`,c=tt(t.location.state?.pathnameStackToGoBack,t.location.pathname);t.navigate(i,{state:{pathnameStackToGoBack:c}})},autoCompleteActions:{onAutoCompleteInputChange:e=>{e.trim().length>=2?a(H({searchString:e,searchOrigin:"common"})):e.trim().length===0&&a(L("common"))},onAutoCompleteEntity:e=>{const i=at(e,t.tenantEmailDomain);a(K()),a(V()),t.resetTrendIsFetchedStates(),t.navigate(i,{replace:!0,state:{pathnameStackToGoBack:t.location.state?.pathnameStackToGoBack}})},onCancelAutoComplete:()=>{const e=Z(t.location.state?.pathnameStackToGoBack),i=e.poppedPathname??k();t.navigate(i,{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 i=e.currentTimePeriod==null?e.addTimePeriod:{startDate:e.addTimePeriod.startDate,endDate:e.currentTimePeriod.endDate};a(b(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:e.addTimePeriod})),a(S(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:i}))}}}}))(Q),ot=et((function({entityType:a,...t}){const e=B(),i=A(),c=X(),[m,h]=d.useState(!1),[T,D]=d.useState(!1),{tenantEmailDomain:C,entityIdEncoded:j,entityNameEncoded:x}=q(),r=I(j??""),p=I(x??""),f=rt(r,p),v=[r,p].filter((n=>n!=null)),o={name:p,id:r,type:a,zeniId:r,qboId:r},g=l((n=>_(n.customerIncomeState,n.vendorExpenseState,n.trendState,o,"quarter"))),w=l((n=>M(n).company?.companyInfo.firstMonthOfFY??1)),u=l((n=>R(n.trendWithTransactionsState,o,"EntityDetail")));d.useEffect((()=>{m===!1&&f===!0&&(h(!0),i(Y(o)))}),[m,f,o]);const E=l((n=>n.trendState.fetchState)),P=u?.selectedPeriod?.timePeriod??g,G=(function(n,y){return n!=null&&y!=null?{startDate:n.startDate,endDate:y?.endDate}:y})(u?.selectedPeriod?.timePeriod,g);return d.useEffect((()=>{m===!0&&T===!1&&E==="Completed"&&(D(!0),P!=null&&i(b(o,"EntityDetail",{timeframe:u?.selectedPeriod?.timeframe??"quarter",timePeriod:P})))}),[m,T,E]),f?s.jsx(it,{firstMonthOfFY:w,tenantEmailDomain:C,location:c,navigate:e,entity:o,defaultTransactionTimePeriod:G,resetTrendIsFetchedStates:()=>{h(!1),D(!1)},...t}):s.jsx(F,{to:k(v.length)})})),rt=(a,t)=>t!=null&&t.length>0&&a!=null&&a.length>0,k=(a=2)=>{let t="../";for(let e=0;e<a;e++)t=`${t}../`;return t};function wt({entityType:a}){return s.jsx(N,{children:s.jsx(O,{path:"/:entityIdEncoded/:entityNameEncoded/*",element:s.jsx(ot,{entityType:a})})})}export{wt as EntityDetailRoutes,wt as default};
@@ -1 +0,0 @@
1
- import{a as i}from"./sentry-Di8VmQH9.js";import{u as l,h as f,g as m}from"./core-CLbwxogo.js";import{i0 as p,U$ as g,V0 as _}from"./zeni-epic-state-DuYWeJse.js";import{u as b,L as h,z as y}from"./index-BWTXRZ02.js";import"./liveblocks-B8NMVuJ_.js";import"./recharts-DLaK4yUy.js";import"./mui-DB2eP-4H.js";import"./analytics-bcpq8FmH.js";import"./plaid-BjkLQcpb.js";import"./dnd-D7kr6gj3.js";import"./stripe-cKAAJElX.js";import"./lottie-DZboDKA6.js";import"./lexical-DBQnrckW.js";import"./pdf-ByO6Vz9p.js";import"./utils-cD9C-nwV.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]="9c98bf96-8152-4a09-ae37-837d3d9d3885",e._sentryDebugIdIdentifier="sentry-dbid-9c98bf96-8152-4a09-ae37-837d3d9d3885")}catch{}})();function $(){const e=l(),n=f(),r=m(),{setLoading:o,clearAllLoading:c}=b(),s=i.useRef(!1);return i.useLayoutEffect((()=>{o(h.CONNECTION_AUTH)}),[o]),i.useEffect((()=>{if(s.current)return;s.current=!0;const a=new URLSearchParams(r.search).get("code"),d=sessionStorage.getItem("hubspot_oauth_pending");if(sessionStorage.removeItem("hubspot_oauth_pending"),a!=null&&d!=null){const t=JSON.parse(d);e(p(t.tenant_id,t.connection_id,g("revenue"),_("hubspot"),{authorization_code:a,client_id:t.client_id,client_secret:t.client_secret,redirect_uri:t.redirect_uri}))}c();const u=y.getActiveTenantForUser();n(u?.tenantEmailDomain!=null?`/${u.tenantEmailDomain}/settings/integrations`:"/",{replace:!0})}),[]),null}export{$ as default};
@@ -1,12 +0,0 @@
1
- import{j as u}from"./liveblocks-B8NMVuJ_.js";import{a as g}from"./sentry-Di8VmQH9.js";import{u as M,g as O,h as _,t as w,j as l,N as L}from"./core-CLbwxogo.js";import{z as r,G as P,M as V,h as A,N,U as R,Y,R as G}from"./index-BWTXRZ02.js";import{fI as H,Un as Q,UQ as W,UH as $,gl as q,gn as B,UM as J,gY as K,dk as X,UR as Z,US as ee}from"./zeni-epic-state-DuYWeJse.js";import{u as te,n as ne}from"./mui-DB2eP-4H.js";import{u as se}from"./useDeviceId-D9wKXTe6.js";import{f as ae}from"./analyticsHelper-DTKAaOR4.js";import{t as ie}from"./getLocaleForTenant-BdgPeU-B.js";import"./recharts-DLaK4yUy.js";import"./analytics-bcpq8FmH.js";import"./plaid-BjkLQcpb.js";import"./dnd-D7kr6gj3.js";import"./stripe-cKAAJElX.js";import"./lottie-DZboDKA6.js";import"./lexical-DBQnrckW.js";import"./pdf-ByO6Vz9p.js";import"./utils-cD9C-nwV.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]="57ebadb2-2999-4d25-8078-82c373e2e581",t._sentryDebugIdIdentifier="sentry-dbid-57ebadb2-2999-4d25-8078-82c373e2e581")}catch{}})();const T=(t,a)=>t!=null&&t.length>0&&a==="magic_links";function Te(){const t=M(),a=O(),f=_(),[b]=w(),n=b.get("token"),p=b.get("stytch_token_type"),m=r.getMagicLinkCodeVerifier(),i=se(),{otpChallenge:d,twoFAPhoneNumber:x,magicLinkEmail:c,verifyDeviceFetchState:z,resendVerifyDeviceOTPFetchState:C}=l((e=>e.tenantState)),S=l((e=>e.tenantState.fetchState)),y=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=>H(e))),k=l((e=>Q(e))),D=r.getSignedInUser(),v=te().mode;g.useEffect((()=>{s?.zeniSessionId==null&&n!=null&&T(n,p)&&i!=null&&m!=null&&(r.saveMagicLinkTriggered(n),t(W(n,i,m)))}),[n,p,t,i,m,s?.zeniSessionId]),g.useEffect((()=>{I!=="In-Progress"||S!=="Completed"&&y!=="Completed"||s?.zeniSessionId==null||o==null||(n!=null&&r.saveLastUsedMagicLinkToken(n),r.saveSignedInUserWithSession(s,s.zeniSessionId),r.saveSignedInUserTenants($(k.tenantsInOrder),s.zeniSessionId),q(s.userId,s.zeniSessionId,o.tenantId),t(B(o.tenantId)),r.saveActiveTenantDomainForUser(o.tenantEmailDomain),t(J("Completed")),P.updateAppLocaleID(ie(o)),ae(s,o,v,void 0,k.tenantsInOrder),K().then((()=>{const e=G();e!=null&&V(e)})),setTimeout((()=>{A.trackLogin(N.Event.loginSuccess,"email",X(o.productSettings))}),2e3))}),[I,S,y,s,o,k,v,a.state,t]);const E=g.useCallback((()=>{f("/signin/auth")}),[f]),j=g.useCallback((()=>{i!=null&&d!=null&&c!=null&&t(Z(i,c,d))}),[i,d,t,c]),F=g.useCallback((e=>{i!=null&&n!=null&&c!=null&&d!=null&&t(ee(e,i,c,d))}),[i,n,t,c,d]);if(h==="Completed"&&d!=null)return u.jsx(R,{phoneNumber:x,verifyOtpFetchState:z.fetchState,resendVerifyDeviceOTPFetchState:C,onResendOtp:j,onVerifyOtp:F,onCancelVerifyDevice:E});if(I==="In-Progress"&&S==="Completed"&&s?.zeniSessionId!=null&&o!=null||D!=null){const e=a.state?.origin??"/";return u.jsx(L,{to:e,state:{...a.state,origin:""}})}if(!T(n,p)||m==null||h==="Error"){const e=a.state?.origin??"/",U=n!=null&&r.getLastUsedMagicLinkToken()===n;return u.jsx(L,{to:e,state:{...a.state,origin:"",magicLinkAlreadyUsed:U,magicLinkExpired:!U&&(r.isMagicLinkTriggered(n??"")||h==="Error"&&s?.zeniSessionId==null)}})}return u.jsx(oe,{"data-testid":"smooth-loader",children:u.jsx(Y,{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{Te as default};
@@ -1 +0,0 @@
1
- import{j as e}from"./liveblocks-B8NMVuJ_.js";import{h as r,l as i}from"./core-CLbwxogo.js";import{ak as n}from"./index-BWTXRZ02.js";import"./mui-DB2eP-4H.js";import"./sentry-Di8VmQH9.js";import"./zeni-epic-state-DuYWeJse.js";import"./recharts-DLaK4yUy.js";import"./analytics-bcpq8FmH.js";import"./plaid-BjkLQcpb.js";import"./dnd-D7kr6gj3.js";import"./stripe-cKAAJElX.js";import"./lottie-DZboDKA6.js";import"./lexical-DBQnrckW.js";import"./pdf-ByO6Vz9p.js";import"./utils-cD9C-nwV.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]="e1fe4b0b-a509-4443-892f-577d1dfd5036",o._sentryDebugIdIdentifier="sentry-dbid-e1fe4b0b-a509-4443-892f-577d1dfd5036")}catch{}})();const a=i(null,(function(o,t){return{onGoBack:()=>{t.navigate(-1)},onGoHome:()=>{t.navigate("/")}}}))(n);function _(){const o=r();return e.jsx(a,{navigate:o})}export{_ as default};
@@ -1 +0,0 @@
1
- import{n as mt,b as lt,o as ft,j as N}from"./liveblocks-B8NMVuJ_.js";import ut from"./NotFoundScreen-oJupr3pq.js";import{a as k}from"./sentry-Di8VmQH9.js";import{h as ht,g as pt,i as kt,u as gt,j as b,l as bt,n as St,o as K}from"./core-CLbwxogo.js";import{cB as It,Ur as Y,fI as z,h5 as Tt,Uv as S,a1r as O,UB as m,Up as y,AL as F,Gs as Ct,a1s as At,Uo as yt,UD as Et,AQ as _t,a1t as $,br as j,gk as x,AU as X,a1u as Nt,cN as Bt,cG as wt}from"./zeni-epic-state-DuYWeJse.js";import{ao as xt,c as Ut,W as vt,A as Dt,aq as Gt,dI as Rt,p as B,dJ as Pt,w as Mt,dK as $t,i as jt,a2 as Ft}from"./index-BWTXRZ02.js";import"./mui-DB2eP-4H.js";import{u as Vt}from"./useAskAiCfoHostNavButtonProps-2NTBRuLk.js";import{u as Wt}from"./useTaskManagerAccess-DYYDLTVZ.js";import"./recharts-DLaK4yUy.js";import"./analytics-bcpq8FmH.js";import"./plaid-BjkLQcpb.js";import"./dnd-D7kr6gj3.js";import"./stripe-cKAAJElX.js";import"./lottie-DZboDKA6.js";import"./lexical-DBQnrckW.js";import"./pdf-ByO6Vz9p.js";import"./utils-cD9C-nwV.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new t.Error().stack;l&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[l]="cbbd2016-cf8a-4763-86ef-e9b46dbabd3a",t._sentryDebugIdIdentifier="sentry-dbid-cbbd2016-cf8a-4763-86ef-e9b46dbabd3a")}catch{}})();const qt=(t,l)=>new Promise(((n,h)=>{const g=t.map((c=>new Promise((o=>{l(c),o()}))));Promise.all(g).then((()=>{setTimeout((()=>{n()}),2e3)})).catch((c=>{h(c)}))})),Lt=bt((function(t,l){const n=Y(t),{signedInUser:h,isDebitCardFeatureEnabled:g,isTaskManagerAccessEnabled:c}=l,o=S(t),f=z(t),{currentTab:I}=o;return{notificationView:o,isNotificationSettingsVisible:h.userEmail!=null&&Et(n.notificationSettings,h.userEmail,g,f,c),isDisabled:o.notificationDetailsByTab[I].fetchState==="In-Progress"?"disabled":void 0}}),(function(t,l){const{location:n,tenantEmailDomain:h,loggedInUserRoleMap:g,externalNotificationsUnreadCount:c,allUnreadCommentsNotificationIds:o,navigate:f,markInboxNotificationAsRead:I,fetchMoreCommentsNotifications:v}=l;return{onNotificationClick:(e,s,d,r)=>{if(r==="task_deleted"){const i=`/${h}/tasks`,T=B(n.state?.pathnameStackToGoBack,n.pathname);f(i,{state:{pathnameStackToGoBack:T,message:"triggerBackClick"}})}else{const i=`/${h}/tasks/${s}`,T=B(n.state?.pathnameStackToGoBack,n.pathname);f(i,{state:{pathnameStackToGoBack:T,message:"triggerBackClick"}})}d==="unread"&&t(X("task_manager","read",[e],!1))},onCommentNotificationClick:(e,s,d)=>{const r=s.toString().split(`/${h}/`);if(r[1]!=null){d==="unread"&&(I(e),t($([e],j())));let i=`/${h}/${r[1]}`;const T=B(n.state?.pathnameStackToGoBack,n.pathname);r[1].startsWith("reimbursement")&&!Bt(g)&&(i="not-found"),r[1].startsWith("bill")&&!wt(g)&&(i="not-found"),f(i,{state:{pathnameStackToGoBack:T,message:"triggerBackClick"}})}},onUpdateNotificationViewUIState:(e,s)=>{t(y(e,s))},onUpdateNotificationTabState:(e,s)=>{t(m(e,s))},onUpdateNotificationViewCurrentTabAndSubTab:(e,s)=>{t(O(e,s));const d=`../${e}`,r=B(n.state?.pathnameStackToGoBack,n.pathname);f(d,{state:{pathnameStackToGoBack:r}})},onUpdateNotificationViewSubTab:e=>{t(Nt(e))},onFetchMoreNotifications:(e,s)=>{if(e==="tasks"){const d=[];s==="all"?d.push("read","unread"):s!=="mentions"&&d.push(s),t(F("task_manager","dashboard",d))}else v?.()},onUpdateNotificationStatus:(e,s,d,r)=>{e==="tasks"?t(X("task_manager",d,r)):(t(m({markAsReadState:{fetchState:"In-Progress",error:void 0}},"comments")),Promise.all(r.map((i=>{d==="read"&&(I(i),t($([i],j())))}))).then((()=>{t(m({markAsReadState:{fetchState:"Completed",error:void 0},selectedNotificationIds:[]},"comments")),t(y({unreadCount:c-r.length>0?c-r.length:0},"comments")),t(x({messageSection:"notification_mark_as_read",messageText:"success",type:"success",showStatusIcon:!0}))}),(i=>{t(m({markAsReadState:{fetchState:"Error",error:i}},"comments")),t(x({messageSection:"notification_mark_as_read",messageText:"failed",type:"error",showStatusIcon:!0}))})).catch((i=>{t(m({markAsReadState:{fetchState:"Error",error:i}},"comments")),t(x({messageSection:"notification_mark_as_read",messageText:"failed",type:"error",showStatusIcon:!0}))})))},onMarkAllNotificationsAsRead:e=>{e==="tasks"?t(_t("task_manager","read")):(t(m({markAsAllReadState:{fetchState:"In-Progress",error:void 0}},"comments")),qt(o,I).then((()=>{t($(o,j())),t(m({markAsAllReadState:{fetchState:"Completed",error:void 0}},"comments")),t(y({unreadCount:0},"comments")),t(x({messageSection:"notification_mark_as_read",messageText:"success",type:"success",showStatusIcon:!0}))})).catch((s=>{t(m({markAsAllReadState:{fetchState:"Error",error:s}},"comments")),t(x({messageSection:"notification_mark_as_read",messageText:"failed",type:"error",showStatusIcon:!0}))})))},onBackClick:()=>{const e=Ft(n.state?.pathnameStackToGoBack),s=e.poppedPathname??"../../dashboard";f(s,{state:{pathnameStackToGoBack:e.newStack}})},onSettingsClick:()=>{const e=B(n.state?.pathnameStackToGoBack,n.pathname);f("../../settings/notifications",{state:{pathnameStackToGoBack:e}})}}}))(Mt($t)),Qt=()=>{const t=ht(),l=pt(),{tenantEmailDomain:n,selectedTab:h}=kt(),{areTenantIdsInSync:g}=xt(),c=It(h??""),o=gt(),f=Ut(),[I,v]=k.useState(!1),e=b((a=>Y(a))),s=b((a=>z(a))),{useFeatureGate:d}=vt(),{isFeatureEnabled:r}=d(Dt.isDebitCardFeatureEnabled),{isAiCfoAccessEnabled:i,onAskAiCfoClick:T}=Vt({mobileExploreReferrer:"Notifications"});Gt({isDataReady:!0});const Z=Tt(s.userRole);if(s==null||n==null||s.companyId==null)throw Error("Can't access notifications page without current tenant...");if(f==null)throw Error("Can't access notifications page without signed in...");const V=b((a=>S(a).notificationDetailsByTab.tasks.fetchState)),W=b((a=>S(a).currentTab)),D=b((a=>S(a).currentSubTab)),tt=b((a=>S(a).notificationDetailsByTab.comments.fetchCountState)),G=b((a=>S(a).notificationDetailsByTab.comments.fetchState)),at=b((a=>S(a).notificationDetailsByTab.comments.uiState.unreadCount)),et=b((a=>S(a).allExternalNotifications)).filter((a=>a.inboxNotification.readAt==null)).map((a=>a.inboxNotification.id)),st=Rt().allUsers,{inboxNotifications:w,isLoading:E,hasFetchedAll:C,isFetchingMore:R,fetchMore:ot}=mt(),{threads:q,isLoading:L,fetchMore:Q,isFetchingMore:H,hasFetchedAll:J}=lt({query:{metadata:{companyId:s.companyId,application:"dashboard"}}});k.useEffect((()=>{if(W!==c&&c!=null&&o(O(c)),c==null){const a=`../${W}`,p=B(l.state?.pathnameStackToGoBack,l.pathname);t(a,{state:{pathnameStackToGoBack:p}})}}),[c]),k.useEffect((()=>{tt.fetchState==="Not-Started"&&o(m({fetchCountState:{fetchState:"In-Progress",error:void 0}},"comments"))}),[]),k.useEffect((()=>{if(E===!1&&C===!0&&s?.companyId!=null&&w!=null){const a=`dashboard_${s.companyId}`,p=w.filter((A=>A.roomId===a&&A.readAt==null)).length;o(m({fetchCountState:{fetchState:"Completed",error:void 0}},"comments")),o(y({unreadCount:p},"comments"))}}),[E,C]),k.useEffect((()=>{V!=="In-Progress"&&g&&o(F("task_manager","dashboard",["read","unread"]))}),[g]),k.useEffect((()=>{const a=setTimeout((()=>ot?.()),0);return()=>clearTimeout(a)}));const P=E||R===!0||C!==!0||E||R===!0||C!==!0;k.useEffect((()=>{P&&G!=="In-Progress"?o(m({fetchState:"In-Progress",error:void 0},"comments")):P||G!=="In-Progress"||o(m({fetchState:"Completed",error:void 0},"comments"))}),[P,G]),k.useEffect((()=>{o(y({hasMore:C!==!0},"comments"))}),[C]),k.useEffect((()=>{e.fetchState!=="In-Progress"&&e.fetchState!=="Completed"&&I===!1&&(v(!0),o(Ct()))}),[e.fetchState]),k.useEffect((()=>{if(E===!1&&L===!1&&w!=null&&q!=null){const a=`dashboard_${s.companyId}`,p=w.filter((u=>u.roomId===a)).filter((u=>Pt(u.kind))),A=p.filter((u=>u.readAt==null)),_=p.map((u=>u.id)),ct=p.map((u=>{const M=q.find((dt=>{return dt.id===((U=u).kind==="thread"?U.threadId:"subjectId"in U?U.subjectId:void 0);var U}));return M!=null?{inboxNotification:{...u,threadId:M.id},thread:M}:(H||J===!0||Q==null||Q(),null)})).filter((u=>u!=null));o(m({allNotificationsIds:_},"comments")),o(y({totalCount:_.length,unreadCount:A.length},"comments")),o(At(ct))}}),[E,R,H,C,J,L,w?.length]);const nt={events:s.userRoleId!=null?[`private-encrypted-${s.userRoleId}.dashboard-user-notification`]:[],eventCallback:(a,p)=>{if(jt(p)){const A=yt(p.mode);if(A==="dashboard"&&o(y({unreadCount:p.data.unread},"tasks")),V!=="In-Progress"){const _=[];D==="all"?_.push("read","unread"):D!=="mentions"&&_.push(D),o(F("task_manager",A,_,!0))}}}},it=ft(),{isTaskManagerAccessEnabled:rt}=Wt(f);return N.jsx(Lt,{tenantEmailDomain:n,loggedInUserRoleMap:Z,signedInUser:f,externalNotificationsUnreadCount:at,location:l,navigate:t,isDebitCardFeatureEnabled:r,isTaskManagerAccessEnabled:rt,users:st,markInboxNotificationAsRead:it,allUnreadCommentsNotificationIds:et,isAiCfoAccessEnabled:i,onAskAiCfoClick:T,...nt})};function ma(){return N.jsxs(St,{children:[N.jsx(K,{path:"/:selectedTab",element:N.jsx(Qt,{})}),N.jsx(K,{path:"*",element:N.jsx(ut,{})})]})}export{ma as default};
@@ -1 +0,0 @@
1
- import{j as m}from"./liveblocks-B8NMVuJ_.js";import{a as r}from"./sentry-Di8VmQH9.js";import{u as A,g as j,j as o,N as C}from"./core-CLbwxogo.js";import{V2 as P,fI as V,gp as x,V3 as z,V4 as D,V5 as M,V6 as R,pW as k,TJ as L}from"./zeni-epic-state-DuYWeJse.js";import{z as h,af as I}from"./index-BWTXRZ02.js";import"./mui-DB2eP-4H.js";import"./recharts-DLaK4yUy.js";import"./analytics-bcpq8FmH.js";import"./plaid-BjkLQcpb.js";import"./dnd-D7kr6gj3.js";import"./stripe-cKAAJElX.js";import"./lottie-DZboDKA6.js";import"./lexical-DBQnrckW.js";import"./pdf-ByO6Vz9p.js";import"./utils-cD9C-nwV.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new n.Error().stack;s&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[s]="541fe17c-2eec-43cd-91dd-19855d202666",n._sentryDebugIdIdentifier="sentry-dbid-541fe17c-2eec-43cd-91dd-19855d202666")}catch{}})();function ee(){const n=A(),s=j(),{params:t,error:i}=r.useMemo((()=>P(s.search)),[s.search]),w=r.useMemo((()=>new URLSearchParams(s.search).get("client_name")??t?.clientId??"Unknown Application"),[s.search,t]),p=h.isSignedIn(),a=h.getSignedInUser(),f=o((e=>V(e))),l=o((e=>x(e))),d=o((e=>e.tenantState.fetchState)),y=o(z),v=o(D),c=o(M),[S,E]=r.useState(null),[b,_]=r.useState(null);r.useEffect((()=>{document.querySelector("#app-shell-loader")?.remove()}),[]),r.useEffect((()=>()=>{n(R())}),[n,s.search]),r.useEffect((()=>{i!=null&&console.warn("[OAuthConsent] invalid params:",i)}),[i]);const g=r.useRef(!1);r.useEffect((()=>{p&&a!=null&&!g.current&&(d!=="Not-Started"&&d!=="Error"||(g.current=!0,n(k(a.userId,a.zeniSessionId??void 0))))}),[p,a,d,n]),r.useEffect((()=>{c!=null&&c!==""&&(window.location.href=c)}),[c]);const U=r.useMemo((()=>{if(f?.tenantId!=null)return f.tenantId;const e=h.getActiveTenantForUser()?.tenantId;return e!=null&&l.some((T=>T.tenantId===e))?e:l.length===1?l[0].tenantId:null}),[f?.tenantId,l]),u=S??U;return i!=null?m.jsx(I,{variant:"invalid_params",paramsError:i}):p?m.jsx(I,{variant:"signed_in",clientName:w,userEmail:a?.userEmail,isInitializing:d!=="Completed",tenants:l,selectedTenantId:u,onSelectTenant:E,approveError:b??v,isApproving:y==="In-Progress",showAllowButton:u!=null,onApprove:()=>{t!=null&&a!=null&&u!=null&&n(L(a.userId,a.zeniSessionId??void 0,u,t.clientId,t.redirectUri,t.codeChallenge,t.codeChallengeMethod,t.state,t.responseType))},onDeny:()=>{if(t!=null)try{const e=new URL(t.redirectUri);e.searchParams.set("error","access_denied"),e.searchParams.set("error_description","The user denied the request"),e.searchParams.set("state",t.state),window.location.href=e.toString()}catch{_("Unable to deny: redirect_uri is not a valid URL. Close this window or contact support.")}}}):m.jsx(C,{to:"/signin/auth",state:{origin:s.pathname+s.search},replace:!0})}export{ee as default};
@@ -1 +0,0 @@
1
- import{j as n}from"./liveblocks-B8NMVuJ_.js";import{h as G,u as Y,g as z,i as X,j as d,l as H,n as J,o as S}from"./core-CLbwxogo.js";import{fI as v,Aw as R,vc as K,VW as w,v7 as T,bq as Q,c0 as Z,v8 as ee,VX as ae,VE as C,ek as te,Ek as se,VY as oe,EI as re,e0 as ne,d$ as ce}from"./zeni-epic-state-DuYWeJse.js";import{ag as ie,z as le,ao as de,aq as me,V as fe,a6 as pe,h as M,aB as ue,p as he,W as ge,A as Fe}from"./index-BWTXRZ02.js";import"./mui-DB2eP-4H.js";import Ie from"./NotFoundScreen-oJupr3pq.js";import{F as be}from"./FeaturePreviewScreen-CZR8YW-L.js";import{a as g}from"./sentry-Di8VmQH9.js";import{u as Se}from"./useAskAiCfoHostNavButtonProps-2NTBRuLk.js";import{u as Ce}from"./useInitialThreadRequest-_cR9E-my.js";import{t as Te}from"./routePaths-D7Q4znoA.js";import{M as ye}from"./MobileAppDrawer-CtIgBgQ-.js";import"./recharts-DLaK4yUy.js";import"./analytics-bcpq8FmH.js";import"./plaid-BjkLQcpb.js";import"./dnd-D7kr6gj3.js";import"./stripe-cKAAJElX.js";import"./lottie-DZboDKA6.js";import"./lexical-DBQnrckW.js";import"./pdf-ByO6Vz9p.js";import"./utils-cD9C-nwV.js";import"./InboxNotificationsProvider-T1CjerOs.js";import"./useTaskManagerAccess-DYYDLTVZ.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]="a64d3e3a-6fc8-47ca-a0d5-97f627982230",s._sentryDebugIdIdentifier="sentry-dbid-a64d3e3a-6fc8-47ca-a0d5-97f627982230")}catch{}})();const y=(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})}},Ae=H((function(s){const e=ae(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:M}}),(function(s,e){return{onForecastSelectionChanged:(a,o)=>{s(w(a,o)),e.isPandLReportFetched(a)||s(T(a)),y(e.forecastIdFromUrlPath,a,e.navigate)},onTimeframeChanged:a=>{s(re(a))},onForecastVsActualsCompareToggle:a=>{s(oe(a)),s(C({forecastId:e.forecastIdFromUrlPath,scrollPosition:{scrollLeft:0,scrollTop:0}}))},onCompareModeChanged:a=>{s(se(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=te(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 u=Te(e.tenantEmailDomain,a.accountId,a.accountType,p,r,c),m=he(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(u,{state:{pathnameStackToGoBack:m,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("../../")}}}))(ue);function U(){const s=ie(),e=G(),a=Y(),o=z(),{forecastId:r,tenantEmailDomain:c}=X(),[p,u]=g.useState(!1),[m,A]=g.useState(!1),F=le.getSignedInUser(),k=d((t=>v(t))),V=k.company?.companyInfo.firstMonthOfFY??1,i=d((t=>R(t.forecastState,t.forecastListState))),l=d((t=>t.forecastListState.fetchState==="Completed")),x=d((t=>t.profitAndLossState)),D=d((t=>t.reportUIOptionsState.selectedForecast)),E=t=>x.pandLByForecastID[t]!=null&&ee(t,x).reducedAllFetchState.fetchState==="Completed",{areTenantIdsInSync:I}=de();me({isDataReady:l});const{isAiCfoAccessEnabled:q,onAskAiCfoClick:B}=Se({mobileExploreReferrer:"Forecast"});g.useEffect((()=>{if(!p&&I)u(!0),l||a(K());else if(l&&!m){A(!0);const t=((f,P,O)=>P!=null?f.forecasts.findIndex((b=>b.id===P)):O!=null?f.forecasts.findIndex((b=>b.id===O)):f.forecasts.length>0?0:-1)(i,r,D?.id);t===-1&&r!=null?e("page-not-found",{replace:!0}):t!==-1&&t!=D?.index?(a(w(i.forecasts[t].id,t)),y(r,i.forecasts[t].id,e,o.search)):r==null&&t!==-1&&y(void 0,i.forecasts[t].id,e,o.search),t!==-1&&!E(i.forecasts[t].id)&&I&&a(T(i.forecasts[t].id))}}),[p,u,a,l,i,m,A,R,T,I]);const j=fe(),_=j?.loggedInUserRole!=null&&Q(j.loggedInUserRole),$=Ce(k?.companyId,{clearParams:l&&m}),[N,W]=g.useState(!1),h=new URL(s("forecast_pandl"));h.searchParams.set("firstname",F?.firstName??""),h.searchParams.set("lastname",F?.lastName??""),h.searchParams.set("email",F?.userEmail??"");const L=t=>{W(t)};return n.jsxs(n.Fragment,{children:[l?n.jsx(pe,{analytics:M,onLoad:t=>(f=>f.trackForecast())(t)}):null,n.jsx(ye,{isAppContentDrawerOpen:N,handleDrawerToggle:L}),n.jsx(Ae,{firstMonthOfFY:V,tenantEmailDomain:c,forecastIdFromUrlPath:r,navigate:e,location:o,isPandLReportFetched:E,meetingUrl:Z(h.toString()),hasTransactionAccess:_,isAiCfoAccessEnabled:q,onAskAiCfoClick:B,initialOpenThreadRequest:$,onClickMenuIcon:()=>{L(!0)}})]})}function Xe(){const s=d((c=>v(c))),{useFeatureGate:e}=ge(),{isFeatureEnabled:a}=e(Fe.isDebitCardFeatureEnabled),o=ne(a,s),r=ce(s);return o===!0||r===!0?n.jsx(be,{}):n.jsxs(J,{children:[n.jsx(S,{path:"/",element:n.jsx(U,{})}),n.jsx(S,{path:"/:forecastId",element:n.jsx(U,{})}),n.jsx(S,{path:"/:forecastId/*",element:n.jsx(Ie,{})})]})}export{Xe as default};
@@ -1 +0,0 @@
1
- import{j as h}from"./liveblocks-B8NMVuJ_.js";import{a as m}from"./sentry-Di8VmQH9.js";import{u as O,j as g,h as C,g as _,i as V,l as k}from"./core-CLbwxogo.js";import{mv as L,ZR as w,Zz as U,NZ as B,Oa as j,O5 as A,O6 as E,ZS as N,fI as z,O4 as K}from"./zeni-epic-state-DuYWeJse.js";import{z as F,a5 as P,b$ as W,l as $,bR as G,c0 as H}from"./index-BWTXRZ02.js";import{u as Z}from"./mui-DB2eP-4H.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="3c2ae953-3406-43ab-9718-c3892584d9de",e._sentryDebugIdIdentifier="sentry-dbid-3c2ae953-3406-43ab-9718-c3892584d9de")}catch{}})();function J(){const e=O(),s=m.useRef(!1),t=g((o=>o.vendorListState.fetchStateBillsTab.fetchState??"Not-Started")),p=g((o=>o.vendorListState.allVendorIdsBillsTab.length>0));m.useEffect((()=>{s.current||p||t==="Completed"||t==="In-Progress"||(s.current=!0,e(L({})))}),[p,t,e])}const M=k((function(e,s){const t=w(e),p=t.remiSetupApproverViewUpdateData?.type??"approval_create",o=p==="approval_create"&&t.allApprovalRules.length!==0;let l=t.allApprovalRules.length===0;return s.approvalRuleId&&(l=t.allApprovalRules.findIndex((r=>r.approvalRuleId===s.approvalRuleId))===0),{localData:t,hideUpperBoundField:o,isLowerBoundDisabled:l,approvalUpdateActionType:p}}),(function(e,s){const{navigate:t,approvalUpdateDataView:p,approverViewData:o,approvalRuleId:l}=s,r=p.remiSetupApproverViewUpdateData?.type,i=$(s.location);return{onApprovalRuleDataUpdated:a=>{const d=v=>{const S=[];return v.forEach((u=>{const I=u.actors.selectedUsers.map((f=>({type:"user",subType:void 0,userId:f.userId,idType:"user",isImplicitActor:!1}))),b=u.actors.selectedNonUsers.map((f=>{const y=(R=f.value,N(R)==null);var R;return{type:y?"attribute":"role",subType:f.value,userId:void 0,idType:void 0,isImplicitActor:!y}})),c=I.concat(b);S.push({action:u.stepType.selectedOption,actors:c,operator:c.length>1?u.stepType.selectedOption==="require_approval"?"or":"and":"is"})})),S},n={amount:{type:"amount",comparator:"range",min:{amount:a.lowerBound,currencyCode:"USD",currencySymbol:"$"},max:{amount:a.upperBound,currencyCode:"USD",currencySymbol:"$"}}};if(r==="approval_create"){const v={criteria:n,steps:d(a.steps),isApplicableOnPendingApprovalEntity:a.applyToExistingReimbursements.includes("applyToExistingReimbursements")};e(E(v))}else{const v={approvalRuleId:l,criteria:n,steps:d(a.steps),isApplicableOnPendingApprovalEntity:a.applyToExistingReimbursements.includes("applyToExistingReimbursements")};e(E(v))}},onResetClick:()=>{e(A()),r==="approval_update"||i?t("../"):o.allApprovalRules.length===0&&o.fetchState==="Completed"?t("../../setup"):t("../")},onBackClick:()=>{e(A()),r==="approval_update"||i?t("../"):o.allApprovalRules.length===0&&o.fetchState==="Completed"?t("../../setup"):t("../")},onSaveRuleClick:()=>{e(j(!1))},onSaveRuleSuccess:()=>{t("../")}}}))(W);function Q(){const e=C(),s=O(),t=_(),{approvalRuleId:p}=V(),o=F.getSignedInUser(),l=Z(),r=g((n=>w(n))),i=g((n=>U(n))),[a,d]=m.useState(!1);if(m.useEffect((()=>{a||(d(!0),s(B(!0)))})),m.useEffect((()=>{i.fetchState==="Not-Started"&&e(p!=null?"../../":"../")}),[i,p]),o==null)throw Error("Can't access address page without signing in...");return r.approversDetailsFetchStatus.fetchState=="Not-Started"||r.approversDetailsFetchStatus.fetchState==="In-Progress"?h.jsx(P,{fetchState:r.approversDetailsFetchStatus.fetchState,style:{backgroundColor:l.colors.grey5}}):h.jsx(M,{navigate:e,approvalUpdateDataView:r,approvalRuleId:p,approverViewData:i,location:t})}function pe(e){return N(e)==null}const X=k((function(e,s){const t=w(e),p=t.remiSetupApproverViewUpdateData?.type??"approval_create",o=[],l={};for(const r of Object.values(e.vendorState.vendorByID))r?.id!=null&&(o.push(r.id),l[r.id]=r.name);return{localData:t,approvalUpdateActionType:p,allVendorIds:o,vendorNamesById:l,editingRuleId:p==="approval_update"?s.approvalRuleId:void 0,allApprovalRulesWithUser:U(e).allApprovalRules}}),(function(e,s){const{navigate:t,approvalUpdateDataView:p,approverViewData:o,approvalRuleId:l}=s,r=p.remiSetupApproverViewUpdateData?.type,i=$(s.location);return{onApprovalRuleDataUpdated:a=>{const d=c=>{const f=[];return c.forEach((y=>{const R=y.actorKind?.selectedOption,q=y.selectedRole?.selectedNonUsers??[];let D=[];R==="role"?D=q.map((T=>({type:"attribute",subType:T.value,userId:void 0,idType:void 0,isImplicitActor:!1}))):R==="specific_person"&&(D=(y.persons?.selectedUsers??[]).map((T=>({type:"user",subType:void 0,userId:T.userId,idType:"user",isImplicitActor:!1}))));const x=y.action??"require_approval";f.push({action:x,actors:D,operator:D.length>1?x==="require_approval"?"or":"and":"is"})})),f},n=a.amountCriteria,v=a.vendorCriteria,S=a.departmentCriteria,u={};if(n!=null&&n.comparator.selectedOption!=null){const c=n.comparator.selectedOption;u.amount={type:"amount",comparator:c,min:c==="less_than"?void 0:n.min,max:c==="greater_than"?void 0:n.max}}const I=v?.selection.selectedOptions??[];I.length>0&&(u.vendor={type:"vendor",operator:v?.operator.selectedOption??"is",vendorIds:I});const b=S?.selection.selectedOptions??[];if(b.length>0&&(u.department={type:"department",operator:S?.operator.selectedOption??"is",departmentIds:b}),r==="approval_create"){const c={name:a.name,description:a.description,separationOfDuties:a.separationOfDuties,criteria:u,steps:d(a.steps),isApplicableOnPendingApprovalEntity:a.applyToExistingReimbursements.includes("applyToExistingReimbursements")};e(E(c))}else{const c={approvalRuleId:l,name:a.name,description:a.description,separationOfDuties:a.separationOfDuties,criteria:u,steps:d(a.steps),isApplicableOnPendingApprovalEntity:a.applyToExistingReimbursements.includes("applyToExistingReimbursements")};e(E(c))}},onResetClick:()=>{e(A()),r==="approval_update"||i?t("../"):o.allApprovalRules.length===0&&o.fetchState==="Completed"?t("../../setup"):t("../")},onBackClick:()=>{e(A()),r==="approval_update"||i?t("../"):o.allApprovalRules.length===0&&o.fetchState==="Completed"?t("../../setup"):t("../")},onSaveRuleClick:()=>{e(j(!0))},onSaveRuleSuccess:()=>{t("../")},onEditExistingRule:a=>{e(K(a)),t(r==="approval_update"?`../../${a}/edit`:`../${a}/edit`)}}}))(H);function ne(){const e=g((t=>z(t))),{isApprovalRulesV3Enabled:s}=G(e?.tenantId);return s?h.jsx(Y,{}):h.jsx(Q,{})}function Y(){const e=C(),s=O(),t=_(),{approvalRuleId:p}=V(),o=F.getSignedInUser(),l=Z(),r=g((n=>w(n))),i=g((n=>U(n))),[a,d]=m.useState(!1);if(J(),m.useEffect((()=>{a||(d(!0),s(B(!1)))})),m.useEffect((()=>{i.fetchState==="Not-Started"&&e(p!=null?"../../":"../")}),[i,p]),o==null)throw Error("Can't access address page without signing in...");return r.approversDetailsFetchStatus.fetchState=="Not-Started"||r.approversDetailsFetchStatus.fetchState==="In-Progress"?h.jsx(P,{fetchState:r.approversDetailsFetchStatus.fetchState,style:{backgroundColor:l.colors.grey5}}):h.jsx(X,{navigate:e,approvalUpdateDataView:r,approvalRuleId:p,approverViewData:i,location:t},p??"new")}export{ne as R,pe as i,J as u};
@@ -1,9 +0,0 @@
1
- import{j as a}from"./liveblocks-B8NMVuJ_.js";import{a as s}from"./sentry-Di8VmQH9.js";import{u as l,g as f,N as u}from"./core-CLbwxogo.js";import{z as i,h as n,N as m,a5 as p}from"./index-BWTXRZ02.js";import{g$ as g,V1 as y}from"./zeni-epic-state-DuYWeJse.js";import{n as b}from"./mui-DB2eP-4H.js";import"./recharts-DLaK4yUy.js";import"./analytics-bcpq8FmH.js";import"./plaid-BjkLQcpb.js";import"./dnd-D7kr6gj3.js";import"./stripe-cKAAJElX.js";import"./lottie-DZboDKA6.js";import"./lexical-DBQnrckW.js";import"./pdf-ByO6Vz9p.js";import"./utils-cD9C-nwV.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]="1ceba2ba-2204-411a-aa4d-73c62648a41d",e._sentryDebugIdIdentifier="sentry-dbid-1ceba2ba-2204-411a-aa4d-73c62648a41d")}catch{}})();function L(){const e=l(),t=f(),r=s.useRef(!1),c=i.isSignedIn(),o=t.state?.message==="logout"||c;return s.useEffect((()=>{if(o&&!r.current){r.current=!0;try{e(g()),y(),n.trackLogout(m.Event.logoutSuccess),n.resetUserIdentity(),i.clearAll()}catch(d){console.error("Error during sign out:",d)}finally{window.location.replace("/signin/auth")}}}),[o,e]),o?a.jsx(h,{children:a.jsx(p,{fetchState:"In-Progress"})}):a.jsx(u,{to:"../",replace:!0})}const h=b.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{L as default};
@@ -1,9 +0,0 @@
1
- import{j as A}from"./liveblocks-B8NMVuJ_.js";import{a as u}from"./sentry-Di8VmQH9.js";import{u as H,k as J,j as C,h as me,g as Se,i as ye,l as be}from"./core-CLbwxogo.js";import{z as Z,W as De,A as I,aq as Ee,a6 as he,h as Ce,N as Ge,e3 as Ae,p as F,a2 as Ie}from"./index-BWTXRZ02.js";import{Qz as Re,Rn as ve,fI as Be,a2C as ne,gQ as q,a2D as re,a2y as Le,QR as X,a2E as Ke,R3 as Y,QB as we,Qd as Ue,Rz as ee,a2F as ae,gk as Pe,Rq as Fe,Rv as je,Ri as xe,Rg as te,Rw as $e,Rd as Ne,a2G as Oe,a2H as ze,a2I as Qe,a2J as Ze,a2K as R,dy as qe,dx as Me,a2L as Ve,Qy as We}from"./zeni-epic-state-DuYWeJse.js";import{n as He}from"./mui-DB2eP-4H.js";import{u as Je}from"./useAskAiCfoHostNavButtonProps-2NTBRuLk.js";import{M as Xe}from"./MobileAppDrawer-CtIgBgQ-.js";import{u as Ye}from"./useTaskManagerPusherEvents-DaFacbHX.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]="10bbc481-65a7-4751-9bbe-a34744e8dcd9",e._sentryDebugIdIdentifier="sentry-dbid-10bbc481-65a7-4751-9bbe-a34744e8dcd9")}catch{}})();const _={TASK_CREATED:"task-created",TASK_UPDATED:"task-updated",TASK_SNOOZE_RESURFACED:"task-snooze-resurfaced",TASKS_BULK_UPDATED:"tasks-bulk-updated",TASKS_BULK_DELETED:"tasks-bulk-deleted"},ea=(e,t)=>e==null||e===""?[]:t.map((n=>`private-encrypted-${e}.${n}`)),aa=(e,t)=>e==null||e===""?[]:t.map((n=>`private-encrypted-${e}.${n}`)),j=e=>Array.isArray(e)&&e.every((t=>typeof t=="string")),oe=e=>typeof e.task_id=="string"?e.task_id:typeof e.id=="string"?e.id:null,ga=e=>{if(e==null||typeof e!="object")return null;const t=e,n=oe(t);if(n==null)return null;const c={task_id:n};return typeof t.parent_task_id=="string"&&(c.parent_task_id=t.parent_task_id),typeof t.sync_token=="string"&&(c.sync_token=t.sync_token),typeof t.is_deleted=="boolean"&&(c.is_deleted=t.is_deleted),typeof t.is_private=="boolean"&&(c.is_private=t.is_private),c},ta=e=>{if(e==null||typeof e!="object")return null;const t=e;return j(t.task_ids)?{task_ids:t.task_ids}:null},_a=e=>{if(e==null||typeof e!="object")return null;const t=e;return typeof t.task_id!="string"?null:{task_id:t.task_id}},sa=He.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
- `,na=be((function(e,t){const n=ne(e,t.isTaskTemplatesEnabled),{taskGroupId:c}=t,p=c!=null&&c!==""?{...n,taskGroupsWithTasksList:n.taskGroupsWithTasksList.map((a=>({...a,tasks:a.tasks.filter((s=>s.taskGroupIds.includes(c)))}))).filter((a=>a.tasks.length>0))}:n,y=Le(e),T=Z.isZeniUser(),v=e.taskDetailState?.subTaskCreateStatus?.fetchState;return{taskListView:p,tagListView:y,localData:p.localData,isTaskTemplatesEnabled:t.isTaskTemplatesEnabled,isZeniUser:T,subTaskCreateStatus:v}}),(function(e,t){const{navigate:n,currentTenant:c,location:p,isTaskTemplatesEnabled:y}=t,{tenantEmailDomain:T}=c,{groupByKey:v}=t.uiState;return{onTaskManagementRowClick:a=>{const s=se(T,a),b=F(p.state?.pathnameStackToGoBack,p.pathname);n(s,{state:{pathnameStackToGoBack:b}})},onReloadTasks:()=>{e(q(!0,y))},onTabChange:a=>{e(Ze(a))},onParentTaskClick:a=>{const s=se(T,a);window.open(s,"_blank","noopener")},bulkUpdateTasks:(a,s)=>{e(te(a,null,s))},onNewTaskClick:()=>{if(t.localData.defaultTaskGroupId!=null){const a=Q(T,t.localData.defaultTaskGroupId),s=F(p.state?.pathnameStackToGoBack,p.pathname);n(a,{state:{pathnameStackToGoBack:s,message:"comingFromTaskListPage"}})}},onColumnSortConfigChanged:(a,s)=>{e(ae({uiState:{sortKey:a,sortOrder:s}}))},onFiltersChange:a=>{e(Qe({filters:a}))},onSearchTextChanged:a=>{e(ze({searchText:a}))},onReloadCards:()=>{e(q(!0,y))},onBackClick:()=>{if(p.state?.message==="triggerBackClick"){const a=Ie(p.state?.pathnameStackToGoBack),s=a.poppedPathname??"../";n(s,{state:{pathnameStackToGoBack:a.newStack}})}else n("../")},updateLocalData:a=>{e(Oe({localData:a}))},resetLocalData:()=>{e(re({taskGroupById:t.taskGroupState.taskGroupById}))},handleCreateGroup:a=>{e(Ne(t.localData.newTaskGroupName,a))},assignGroupToTasks:a=>{e(te(t.localData.selectedTaskIds,a,$e(t.uiState.groupByKey,a)))},onDeleteTaskGroup:a=>{e(xe(a))},onAddNewTaskToTaskGroup:a=>{if(t.localData.defaultTaskGroupId!=null){const s=oa(v,a);e(X({taskDetailLocalData:s}));const b=Q(T,t.uiState.groupByKey==="groupName"?a:t.localData.defaultTaskGroupId),x=F(p.state?.pathnameStackToGoBack,p.pathname);n(b,{state:{pathnameStackToGoBack:x,message:"comingFromTaskListPage"}})}},onDragNDrop:(a,s)=>{e(je(t.localData.selectedTaskIds.length>0?t.localData.selectedTaskIds:[a],s))},onTaskGroupRename:(a,s)=>{e(Fe(a,s))},onTimeSpentUpdate:(a,s)=>{e(ee({task:a,updates:s}))},onShowToast:a=>{e(Pe(a))},onGroupByFilterChange:a=>{e(ae({uiState:{groupByKey:a}}))},updateTask:(a,s)=>{e(ee({task:a,updates:s}))},onCreateTagClick:(a,s)=>{e(Ue(a,s))},onSubtaskCreation:(a,s)=>{e(we({...s,parentTaskId:a}))},handleGroupTemplateClick:a=>{e(Y(a,[]))},handleGroupTemplateTaskClick:(a,s)=>{e(Y(a,[s]))},handleNewTaskInitialization:a=>{if(e(X({taskDetailLocalData:{...Ke,name:a}})),t.localData.defaultTaskGroupId!=null){const s=Q(T,t.localData.defaultTaskGroupId),b=F(p.state?.pathnameStackToGoBack,p.pathname);n(s,{state:{pathnameStackToGoBack:b,message:"comingFromTaskListPage"}})}},onTaskGroupNameClick:a=>{n(`/${T}/tasks/group/${a}`)},onQuickResponsesClick:()=>{n(`/${T}/tasks/quick-responses`)}}}))(Ae);function ra(){const e=me(),t=H(),n=Se(),c=Z.getSignedInUser(),p=Z.isZeniUser(),y=J(),T=C((d=>Be(d))),{taskGroupId:v}=ye(),{useFeatureGate:a}=De(),{isFeatureEnabled:s}=a(I.isTaskTemplatesEnabled),{isFeatureEnabled:b}=a(I.isTaskCannedResponsesEnabled),{isFeatureEnabled:x}=a(I.isTaskCategorizationEnabled),{isFeatureEnabled:ie}=a(I.isTaskBulkResolutionEnabled),{isFeatureEnabled:le}=a(I.isTaskGroupAssigneesEnabled),{isFeatureEnabled:ue}=a(I.isTaskRecurringParentEnabled),[ce,de]=u.useState(!1),$=C((d=>ne(d,s))),N=C((d=>d.taskGroupState)),B=$.fetchState,{isAiCfoAccessEnabled:ke,onAskAiCfoClick:pe}=Je({mobileExploreReferrer:"Task Checklist"});Ee({isDataReady:B==="Completed"});const{markBoardFetchInFlight:M,requestTaskRefetch:O}=(function(d){const m=H(),r=J(),f=u.useRef(!1),o=u.useRef(!1),k=u.useRef(!1),g=u.useRef(),l=u.useRef(),S=u.useRef(!1),L=u.useRef(),K=u.useCallback((()=>{L.current=r.getState().taskListState.byTab.live,S.current=!0}),[r]),w=u.useCallback((()=>{K(),m(Re())}),[m,K]),D=u.useCallback((()=>{g.current=r.getState().taskGroupState.taskGroupById,k.current=!0,m(ve())}),[m,r]),E=u.useCallback((()=>{f.current=!1,l.current!=null&&(clearTimeout(l.current),l.current=void 0),w(),k.current||r.getState().taskGroupViewState.fetchState==="In-Progress"?o.current=!0:D()}),[w,D,r]),z=u.useCallback((()=>{S.current?(f.current=!0,l.current==null&&(l.current=setTimeout((()=>{l.current=void 0,f.current&&r.getState().taskListState.fetchState!=="In-Progress"&&(S.current=!1,E())}),6e3))):E()}),[E,r]);u.useEffect((()=>{l.current!=null&&(clearTimeout(l.current),l.current=void 0),f.current=!1,o.current=!1,k.current=!1}),[d]);const h=C((i=>i.taskListState.fetchState)),G=C((i=>i.taskGroupViewState.fetchState)),U=C((i=>i.taskListState.byTab.live)),P=C((i=>i.taskGroupState.taskGroupById));return u.useEffect((()=>{h!=="In-Progress"&&(!S.current||U!==L.current||h==="Error")&&(S.current=!1,f.current&&(h!=="Completed"?h==="Error"&&(f.current=!1,l.current!=null&&(clearTimeout(l.current),l.current=void 0)):E()))}),[h,U,E]),u.useEffect((()=>{G!=="In-Progress"&&(!k.current||P!==g.current||G==="Error")&&(k.current=!1,o.current&&(o.current=!1,G!=="Error"&&D()))}),[G,P,D]),u.useEffect((()=>()=>{l.current!=null&&(clearTimeout(l.current),l.current=void 0)}),[]),{markBoardFetchInFlight:K,requestTaskRefetch:z}})(T?.tenantId);u.useEffect((()=>{y.getState().taskListState.hasValidState()||M(),t(q(!1,s))}),[T?.tenantId,t,s,M,y]);const Te=u.useMemo((()=>{const d=[_.TASK_CREATED,_.TASK_UPDATED,_.TASKS_BULK_UPDATED,_.TASKS_BULK_DELETED],m=[_.TASK_CREATED,_.TASK_UPDATED,_.TASK_SNOOZE_RESURFACED,_.TASKS_BULK_UPDATED];return[...ea(T?.companyId,d),...aa(c?.userId,m)]}),[T?.companyId,c?.userId]);if(Ye({events:Te,onEvent:(d,m)=>{switch(d){case _.TASK_CREATED:case _.TASK_UPDATED:{const r=(f=>{if(f==null||typeof f!="object")return null;const o=f,k=oe(o);if(k==null||typeof o.tenant_id!="string"||typeof o.event_type!="string")return null;const g={task_id:k,tenant_id:o.tenant_id,event_type:o.event_type};return typeof o.is_private=="boolean"&&(g.is_private=o.is_private),j(o.assignees)&&(g.assignees=o.assignees),j(o.direct_assignees)&&(g.direct_assignees=o.direct_assignees),typeof o.created_by=="string"&&(g.created_by=o.created_by),j(o.task_group_ids)&&(g.task_group_ids=o.task_group_ids),typeof o.name=="string"&&(g.name=o.name),typeof o.parent_task_id=="string"&&(g.parent_task_id=o.parent_task_id),g})(m);if(r!=null){const f=y.getState(),o=r.task_id,k=o!=null?f.taskState.taskByID?.[o]:void 0,g=k!=null;if(!p)if(r.is_private===!0){if(!g)return}else{const l=c?.userId,S=new Set([...r.assignees??[],...r.direct_assignees??[]]);if(r.created_by!=null&&r.created_by!==""&&S.add(r.created_by),!(l!=null&&S.has(l))&&!g)return}if(d===_.TASK_UPDATED&&g&&k!=null&&Array.isArray(r.task_group_ids)){const l=new Set(Object.values(f.taskGroupState.taskGroupById??{}).filter((i=>i!=null&&!i.isDeleted)).map((i=>i.id))),S=(k.taskGroupIds??[]).filter((i=>l.has(i))),L=(r.task_group_ids??[]).filter((i=>l.has(i))),K=S.length===L.length&&S.every((i=>L.includes(i))),w=k.taskGroupIds??[],D=r.task_group_ids??[],E=w.length!==D.length||!w.every((i=>D.includes(i))),z=(i,fe)=>{const V=i??[],W=fe??[];if(V.length!==W.length)return!1;const ge=new Set(W);return V.every((_e=>ge.has(_e)))},h=r.name==null||r.name===k.name,G=r.is_private==null||r.is_private===k.isPrivate,U=r.assignees==null||z(r.assignees,k.assignees),P=r.direct_assignees==null;if(K&&E&&h&&G&&U&&P)return}}return void O()}case _.TASKS_BULK_DELETED:{const r=ta(m);return r==null?void 0:void r.task_ids.forEach((f=>t(We(f))))}case _.TASKS_BULK_UPDATED:case _.TASK_SNOOZE_RESURFACED:return void O()}},onSubscribed:()=>{O()}}),u.useEffect((()=>{B==="Completed"&&t(re({taskGroupById:N.taskGroupById}))}),[B,N.taskGroupById]),c==null)throw Error("Can't access task list page without signing in...");return A.jsxs(A.Fragment,{children:[B==="Completed"?A.jsx(he,{analytics:Ce,onLoad:d=>(m=>m.trackPageLoaded(Ge.Event.taskListPage))(d)}):null,A.jsxs(sa,{children:[A.jsx(Xe,{isAppContentDrawerOpen:ce,handleDrawerToggle:d=>{de(d)}}),A.jsx(na,{location:n,navigate:e,currentTenant:T,taskGroupId:v,taskGroupState:N,localData:$.localData,uiState:$.uiState,isTaskTemplatesEnabled:s,taskListFetchState:B,isTaskCategorizationEnabled:x,isTaskCannedResponsesEnabled:b,isTaskBulkResolutionEnabled:ie,isTaskGroupAssigneesEnabled:le,isTaskRecurringParentEnabled:ue,isAiCfoAccessEnabled:ke,onAskAiCfoClick:pe})]})]})}const se=(e,t)=>`/${e}/tasks/${encodeURIComponent(t)}`,Q=(e,t)=>`/${e}/tasks/new/${t}`,oa=(e,t)=>{if(e==="assignee"){const n=t.split(",");return{...R.taskDetailLocalData,assignee:n}}if(e==="priority"){const n=qe(t);return{...R.taskDetailLocalData,priority:n}}if(e==="status"){const n=Me(t);return{...R.taskDetailLocalData,status:n}}if(e==="tag"){const n=t.split(",");return{...R.taskDetailLocalData,tagIds:n}}if(e==="dueDate"){const n=Ve(t);return{...R.taskDetailLocalData,dueDate:n}}return{...R.taskDetailLocalData}},ma=Object.freeze(Object.defineProperty({__proto__:null,default:ra},Symbol.toStringTag,{value:"Module"}));export{_ as T,aa as a,ea as b,_a as c,ta as d,ra as e,ma as f,ga as t};
@@ -1,9 +0,0 @@
1
- import{j as i}from"./liveblocks-B8NMVuJ_.js";import ge from"./NotFoundScreen-oJupr3pq.js";import{a as k}from"./sentry-Di8VmQH9.js";import{h as te,u as ne,j as h,g as Ee,i as be,N as De,l as Ie,n as Ce,o as E}from"./core-CLbwxogo.js";import{Qq as oe,Qt as Ge,Qn as ye,a2x as _e,fI as re,a2y as ie,QU as D,QH as b,Qk as Ae,Rn as Re,Rg as Ue,a2z as ce,gk as le,a2A as H,Qg as ve,Qd as Be,v2 as xe,uS as we,mD as je,QF as Pe,a2B as Fe,Rz as Le,QB as Ke,R2 as Qe,Q$ as $e,Qw as Ne,QY as ze,QR as Ze}from"./zeni-epic-state-DuYWeJse.js";import{z as I,e1 as Oe,o as Ve,W as qe,A as _,a2 as ue,p as A,a6 as Me,h as J,N as We,e2 as Ye,T as X,ac as He}from"./index-BWTXRZ02.js";import{n as Je}from"./mui-DB2eP-4H.js";import{u as Xe}from"./useInitialThreadRequest-_cR9E-my.js";import{M as ea}from"./MobileAppDrawer-CtIgBgQ-.js";import{T as m,t as aa,b as sa,a as ta,c as na,d as ee,e as oa}from"./TaskListScreen-DHzPd6H5.js";import{u as ra}from"./useTaskManagerPusherEvents-DaFacbHX.js";import"./recharts-DLaK4yUy.js";import"./analytics-bcpq8FmH.js";import"./plaid-BjkLQcpb.js";import"./dnd-D7kr6gj3.js";import"./stripe-cKAAJElX.js";import"./lottie-DZboDKA6.js";import"./lexical-DBQnrckW.js";import"./pdf-ByO6Vz9p.js";import"./utils-cD9C-nwV.js";import"./InboxNotificationsProvider-T1CjerOs.js";import"./useTaskManagerAccess-DYYDLTVZ.js";import"./useAskAiCfoHostNavButtonProps-2NTBRuLk.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]="9482206a-41b2-4265-922a-2870cfadf49b",e._sentryDebugIdIdentifier="sentry-dbid-9482206a-41b2-4265-922a-2870cfadf49b")}catch{}})();function ia(){const e=te(),a=ne(),n=I.getSignedInUser(),{cannedResponses:c,fetchState:t,saveFetchState:l}=h((r=>r.cannedResponsesState)),u=k.useCallback((()=>{a(oe())}),[a]),S=k.useCallback(((r,C,G)=>{a(Ge({name:r,content:C,cannedResponseId:G}))}),[a]),s=k.useCallback((r=>{a(ye({cannedResponseId:r}))}),[a]);if(n==null)throw Error("Can't access quick responses page without signing in...");return i.jsx(Oe,{cannedResponses:c,isLoading:t==="In-Progress"||t==="Not-Started",isSaving:l==="In-Progress",onBackClick:()=>e(-1),onDelete:s,onFetch:u,onSave:S})}const Q=e=>e?.taskState?.taskByID,L=(e,a)=>{const n=Q(e);if(a!=null&&n!=null)return n[a]?.parentTaskId??void 0},ca=_e([L,(e,a)=>{const n=L(e,a),c=Q(e);if(n!=null&&c!=null)return c[n]?.name},(e,a)=>{const n=L(e,a),c=Q(e);return n!=null&&c!=null&&c[n]!=null}],((e,a,n)=>{if(e!=null&&n===!0)return{id:e,name:a??""}}));let ae,se=[];const la=Ie((function(e,a){const{location:n,taskGroupId:c}=a,t=ce(e,a.taskId),l=re(e),u=ca(e,a.taskId),S=t.taskGroupId??c,s=S!=null?H(e.taskGroupState,S):void 0,r=I.getSignedInUser(),C=l.tenantId,G={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:C??""},B=ie(e),{tenantEmailDomain:x}=l,R=t.recurringSourceTaskId,w=R!=null?`${X.appUrl}/${x}/tasks/${encodeURIComponent(R)}`:void 0;var g;return{taskDetailSelectorView:t,authParams:G,isZeniUser:I.isZeniUser(),userGroupList:((g=e.userGroupsState.userGroupByUserGroupId)!==ae&&(ae=g,se=Object.values(g)),se),isNewClicked:n.state?.message==="comingFromTaskListPage",filesEndPoint:He.fileMicroServiceBaseUrl,companyName:a.currentTenant.companyName,companyId:a.currentTenant.companyId,currentUrl:`${X.appUrl}${a.location.pathname}`,cannedResponses:e.cannedResponsesState.cannedResponses,isCannedResponsesLoading:e.cannedResponsesState.fetchState==="In-Progress",recurringSourceTaskUrl:w,tagListView:B,taskGroupName:S!=null&&s!=null&&s.isDefault===!1?s.name:void 0,taskGroupList:e.taskGroupViewState.taskGroupsIds.map((f=>H(e.taskGroupState,f))).filter((f=>f!=null&&!f.isDeleted)).map((f=>({id:f.id,name:f.name,isDefault:f.isDefault}))),subtasks:t.subtasks,parentTaskRef:u,subTaskCreateStatus:e.taskDetailState?.subTaskCreateStatus?.fetchState}}),(function(e,a){const{taskId:n,navigate:c,currentTenant:t,location:l,taskGroupId:u}=a,{tenantEmailDomain:S}=t;return{onSaveChangesToLocalStore:s=>{e(Ze({taskDetailLocalData:s,taskId:n}))},onSaveDetailClick:s=>{e(ze(n,s??u))},onArchiveTaskClick:()=>{a.taskId!=null&&e(Ne(a.taskId))},onSnoozeTask:(s,r)=>{e($e(s,r))},onUnsnoozeTask:s=>{e(Qe(s))},onCreateSubtask:(s,r)=>{e(Ke({...r,parentTaskId:s}))},onSubtaskUpdate:(s,r)=>{e(Le({task:s,updates:r}))},onShowToast:s=>{e(le(s))},onSubtaskRowClick:s=>{c(`/${S}/tasks/${s}`,{state:{pathnameStackToGoBack:A(l.state?.pathnameStackToGoBack,l.pathname)}})},onParentBreadcrumbClick:s=>{c(`/${S}/tasks/${s}`,{state:{pathnameStackToGoBack:A(l.state?.pathnameStackToGoBack,l.pathname)}})},onDismissClick:()=>{if(l.state?.message==="triggerBackClick"){const s=ue(l.state?.pathnameStackToGoBack),r=s.poppedPathname??"../../dashboard";c(r,{state:{pathnameStackToGoBack:s.newStack}})}else{const s=v(S),r=A(l.state?.pathnameStackToGoBack,l.pathname);c(s,{state:{pathnameStackToGoBack:r}})}e(Fe({taskId:n}))},onDeleteTaskClick:()=>{e(Pe(n))},updateFilesEntity:s=>{e(je({files:s}))},onDeleteFile:s=>{e(we(s))},onEditFileName:(s,r)=>{e(xe(s,r.split(".")[0]))},onReloadTaskDetailPage:()=>{e(D(!1,n))},onCreateTagClick:s=>{e(Be(s,n))},onDeleteTagClick:s=>{e(ve(s,n))},onFetchCannedResponses:()=>{e(oe())},onManageTemplatesClick:()=>{c(`/${t.tenantEmailDomain}/tasks/quick-responses`)}}}))(Ye);function K(){const e=te(),a=ne(),n=Ee(),c=Ve(),{taskId:t,taskGroupId:l}=be(),u=h((o=>re(o))),S=Xe(u?.companyId),{useFeatureGate:s}=qe(),{isFeatureEnabled:r}=s(_.isTaskSnoozeEnabled),{isFeatureEnabled:C}=s(_.isTaskVisibilityEnabled),{isFeatureEnabled:G}=s(_.isTaskCannedResponsesEnabled),{isFeatureEnabled:B}=s(_.isTaskRecurringParentEnabled),{isFeatureEnabled:x}=s(_.isTaskGroupAssigneesEnabled),[R,w]=k.useState(!1),[g,f]=k.useState(!1),[$,de]=k.useState(!1),[N,j]=k.useState(!1),y=k.useRef(!1),U=h((o=>o.taskListState.updateTasksFetchState.fetchState)),z=h((o=>ie(o))),Z=h((o=>o.taskGroupViewState.fetchState));k.useEffect((()=>{a(D(!1,t)),t!=null&&a(b(t))}),[a,t]);const O=I.getSignedInUser()?.userId,ke=I.isZeniUser(),pe=h((o=>t!=null?o.taskState.taskByID[t]?.syncToken:void 0)),V=()=>{u?.tenantEmailDomain!=null&&e(v(u.tenantEmailDomain))},q=()=>{a(le({messageSection:"delete_task",messageText:"success",type:"success"})),V()},me=k.useMemo((()=>{const o=[m.TASK_CREATED,m.TASK_UPDATED,m.TASKS_BULK_UPDATED,m.TASKS_BULK_DELETED],d=[...o,m.TASK_SNOOZE_RESURFACED];return[...sa(u?.companyId,o),...ta(O,d)]}),[u?.companyId,O]);ra({events:me,onSubscribed:()=>{t!=null&&(a(D(!0,t)),a(b(t)))},onEvent:(o,d)=>{if(t!=null)switch(o){case m.TASK_CREATED:case m.TASK_UPDATED:{const p=((F,fe,{isZeniUser:Te,storedSyncToken:he,taskId:Y})=>{if(F!==m.TASK_CREATED&&F!==m.TASK_UPDATED)return"none";const T=aa(fe);return T==null?"none":T.parent_task_id===Y?"refreshSubtasks":F!==m.TASK_UPDATED||T.task_id!==Y?"none":T.is_deleted===!0?"leaveDeleted":T.is_private!==!0||Te?T.sync_token!=null&&T.sync_token===he?"none":"refreshTask":"leaveNoAccess"})(o,d,{isZeniUser:ke,storedSyncToken:pe,taskId:t});p==="refreshTask"?(a(D(!0,t)),a(b(t))):p==="refreshSubtasks"?a(b(t)):p==="leaveDeleted"?q():p==="leaveNoAccess"&&V();break}case m.TASKS_BULK_UPDATED:{const p=ee(d);if(p==null)break;p.task_ids.includes(t)&&a(D(!0,t)),a(b(t));break}case m.TASKS_BULK_DELETED:{const p=ee(d);if(p==null)break;if(p.task_ids.includes(t)){q();break}a(b(t));break}case m.TASK_SNOOZE_RESURFACED:{na(d)?.task_id===t&&a(D(!0,t));break}}}}),k.useEffect((()=>{g||z.fetchState==="Completed"||(f(!0),a(Ae()))}),[g,a,z.fetchState]),k.useEffect((()=>{$||Z==="Completed"||(de(!0),a(Re()))}),[$,a,Z]);const Se=k.useCallback((()=>{t!=null&&(y.current=!1,a(Ue([t],null,{isArchived:!1})),j(!0))}),[a,t]);k.useEffect((()=>{if(N)if(U!=="In-Progress"){if(y.current){if(U==="Error")return j(!1),void(y.current=!1);if(U==="Completed"){j(!1),y.current=!1;const{tenantEmailDomain:o}=u;if(n.state?.message==="triggerBackClick"){const d=ue(n.state?.pathnameStackToGoBack);e(d.poppedPathname??"../../dashboard",{state:{pathnameStackToGoBack:d.newStack}})}else{const d=v(o);e(d,{state:{pathnameStackToGoBack:A(n.state?.pathnameStackToGoBack,n.pathname)}})}}}}else y.current=!0}),[N,U,u,n,e]);const M=h((o=>ce(o,t))),P=M.fetchState,W=I.getSignedInUser();if(W==null)throw Error("Can't access task detail page without signing in...");if(P==="Error"&&M.error?.code===400){const{tenantEmailDomain:o}=u,d=v(o),p=A(n.state?.pathnameStackToGoBack,n.pathname);return i.jsx(De,{to:d,state:{pathnameStackToGoBack:p}})}return i.jsxs(i.Fragment,{children:[P==="Completed"?i.jsx(Me,{analytics:J,onLoad:o=>(d=>d.trackPageLoaded(We.Event.taskDetailPage))(o)}):null,i.jsxs(ua,{children:[i.jsx(ea,{isAppContentDrawerOpen:R,handleDrawerToggle:o=>{w(o)}}),i.jsx(la,{analytics:J,currentTenant:u,handleZeniLogoClick:()=>{c.toggle()},initialOpenThreadRequest:S,location:n,loggedInUser:W,navigate:e,taskGroupId:l,taskId:t,taskDetailFetchState:P,onUnarchiveTaskClick:Se,isTaskSnoozeEnabled:r,isTaskVisibilityEnabled:C,isTaskCannedResponsesEnabled:G,isTaskRecurringParentEnabled:B,isTaskGroupAssigneesEnabled:x})]})]})}const ua=Je.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
- `,v=e=>`/${e}/tasks`;function wa(){return i.jsxs(Ce,{children:[i.jsx(E,{path:"/new",element:i.jsx(K,{})}),i.jsx(E,{path:"/new/:taskGroupId",element:i.jsx(K,{})}),i.jsx(E,{path:"/group/:taskGroupId",element:i.jsx(oa,{})}),i.jsx(E,{path:"/quick-responses",element:i.jsx(ia,{})}),i.jsx(E,{path:"/:taskId",element:i.jsx(K,{})}),i.jsx(E,{path:"*",element:i.jsx(ge,{})})]})}export{wa as default};
@@ -1 +0,0 @@
1
- import{j as t}from"./liveblocks-B8NMVuJ_.js";import i from"./NotFoundScreen-oJupr3pq.js";import{T as r}from"./TransactionDetailScreen-DFFAXF6x.js";import"./sentry-Di8VmQH9.js";import{n as a,o as e}from"./core-CLbwxogo.js";import"./zeni-epic-state-DuYWeJse.js";import"./recharts-DLaK4yUy.js";import"./index-BWTXRZ02.js";import"./mui-DB2eP-4H.js";import"./analytics-bcpq8FmH.js";import"./plaid-BjkLQcpb.js";import"./dnd-D7kr6gj3.js";import"./stripe-cKAAJElX.js";import"./lottie-DZboDKA6.js";import"./lexical-DBQnrckW.js";import"./pdf-ByO6Vz9p.js";import"./utils-cD9C-nwV.js";import"./useAskAiCfoHostNavButtonProps-2NTBRuLk.js";import"./decodeURIComponentSafe-CTII6a9j.js";import"./useInitialThreadRequest-_cR9E-my.js";import"./routePaths-D7Q4znoA.js";import"./expenseAutomationHelper-C40iB_7D.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new o.Error().stack;n&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[n]="bfd19369-9f5a-4875-9ff9-f0a50fe2624d",o._sentryDebugIdIdentifier="sentry-dbid-bfd19369-9f5a-4875-9ff9-f0a50fe2624d")}catch{}})();function z(){return t.jsxs(a,{children:[t.jsx(e,{path:"/:transactionTypeEncoded/:transactionId",element:t.jsx(r,{})}),t.jsx(e,{path:"/:transactionTypeEncoded/:transactionId/page-not-found",element:t.jsx(i,{})}),t.jsx(e,{path:"/:transactionTypeEncoded/:transactionId/vendor/create",element:t.jsx(r,{})}),t.jsx(e,{path:"/*",element:t.jsx(r,{})})]})}export{z as default};
@@ -1,12 +0,0 @@
1
- import{j as o}from"./liveblocks-B8NMVuJ_.js";import{a as f}from"./sentry-Di8VmQH9.js";import{t as u,u as h,j as b,N as y}from"./core-CLbwxogo.js";import{U_ as I,gl as w,JX as j}from"./zeni-epic-state-DuYWeJse.js";import{z as l,a5 as x,ad as S,ae as _}from"./index-BWTXRZ02.js";import{n as c}from"./mui-DB2eP-4H.js";import"./recharts-DLaK4yUy.js";import"./analytics-bcpq8FmH.js";import"./plaid-BjkLQcpb.js";import"./dnd-D7kr6gj3.js";import"./stripe-cKAAJElX.js";import"./lottie-DZboDKA6.js";import"./lexical-DBQnrckW.js";import"./pdf-ByO6Vz9p.js";import"./utils-cD9C-nwV.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]="4e444eca-7b9d-4b49-a9fb-c9d158cde1e6",e._sentryDebugIdIdentifier="sentry-dbid-4e444eca-7b9d-4b49-a9fb-c9d158cde1e6")}catch{}})();const A=()=>{const[e]=u(),t=e.get("code")??"",s=e.get("state")??"",g=e.get("profileId")??"",[n,p]=f.useState(!1),a=h(),i=b((m=>I(m))),r=l.getSignedInUser(),d=l.getSignedInUserTenantWithId(s);if(r==null||d==null)return o.jsx(y,{to:"/signin/auth",replace:!0});if(r==null)throw Error("Can't access this page without signing in...");return w(r.userId,r.zeniSessionId,d?.tenantId),f.useEffect((()=>{n||(p(!0),a(j(t,g,s)))}),[n,a]),i.fetchState==="Error"?o.jsx(D,{children:o.jsx(E,{children:i.error?.message??""})}):(i.fetchState==="Completed"&&window.close(),o.jsx(x,{fetchState:"In-Progress"}))},D=c.div`
2
- display: flex;
3
- width: 100%;
4
- height: 100vh;
5
- flex-direction: row;
6
- justify-content: center;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey5};
9
- `,E=c(_.LargeRegular)`
10
- display: flex;
11
- color: ${S.important};
12
- `;export{A as default};
@@ -1,9 +0,0 @@
1
- import{j as i}from"./liveblocks-B8NMVuJ_.js";import{a as m}from"./sentry-Di8VmQH9.js";import{h as x,u as T,g as $,i as j,j as p}from"./core-CLbwxogo.js";import{TI as s,TH as v,a05 as B,fI as C,a06 as z}from"./zeni-epic-state-DuYWeJse.js";import{$ as D,ac as g,z as E,a5 as L,d3 as P,a2 as N}from"./index-BWTXRZ02.js";import{u as U,n as _}from"./mui-DB2eP-4H.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]="7ee6dedc-8bd1-4b05-a7b5-4f3569cb5a46",e._sentryDebugIdIdentifier="sentry-dbid-7ee6dedc-8bd1-4b05-a7b5-4f3569cb5a46")}catch{}})();const G=_.div`
2
- display: flex;
3
- height: 100vh;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- `;function F(){const e=x(),n=T(),d=D(),l=$();let{accountId:a}=j(),u=`${g.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${a}`;a==null&&l.pathname.includes(`${s}/statements`)&&(a=s,u=`${g.bankingMicroServiceBaseUrl}/1.0/${s}`);const[f,b]=m.useState(!1),y=U();m.useEffect((()=>{f||(b(!0),n(v(a??"",!1)))}),[f,n]);const o=p((t=>B(t,a??""))),h=()=>{const t=N(l.state?.pathnameStackToGoBack),S=t.poppedPathname??"..";e(S,{state:{pathnameStackToGoBack:t.newStack}})},c=E.getSignedInUser(),r=p((t=>C(t))),I={userId:c?.userId??"",sessionId:c?.zeniSessionId??"",tenantId:r.tenantId??""},w=z(a??"")===!0?s:o.zeniAccountDetail?.accountLast4??"",k=r.company?.companyInfo.companyLegalName??r.companyName;if(c==null)throw Error("Can't access address page without signing in...");return o.fetchState!=="Completed"?i.jsx(L,{fetchState:"In-Progress",style:{backgroundColor:y.colors.grey5}}):i.jsx(G,{windowSize:d,children:i.jsx(P,{currentTenantCompanyName:k,statementListView:o,accountLast4:w,onBackClick:h,authParams:I,downloadEndPoint:u})})}export{F as Z};