@zeniai/web-app-ui 5.3.87-dev → 5.3.88-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 (140) hide show
  1. package/dist/assets/{AccountMappingScreen-9MHulU9s.js → AccountMappingScreen-Db0caIkZ.js} +2 -2
  2. package/dist/assets/{ActualMatchingMatchDetailScreen-Db6bbB6u.js → ActualMatchingMatchDetailScreen--akEs1x5.js} +1 -1
  3. package/dist/assets/AddressRoutes-Btf8GDJA.js +1 -0
  4. package/dist/assets/AddressScreen-lx_HZDfg.js +9 -0
  5. package/dist/assets/{AiCfoScreen-bjaeBeb9.js → AiCfoScreen-DH4uTpfZ.js} +3 -3
  6. package/dist/assets/{AppDrawer-UbqqLXJe.js → AppDrawer-DAhxL0-t.js} +2 -2
  7. package/dist/assets/{BillPayApprovalRoutes-CYDv31qk.js → BillPayApprovalRoutes-z6WREO6S.js} +1 -1
  8. package/dist/assets/{BillPayRoutes-C4GXOC5A.js → BillPayRoutes-BNtj5Z6g.js} +8 -8
  9. package/dist/assets/BusinessVerificationPageScreen-CqCRDHlP.js +9 -0
  10. package/dist/assets/{CardsAiCfoScreen-DZorjbaf.js → CardsAiCfoScreen-BtuN3Fna.js} +2 -2
  11. package/dist/assets/{ChargeCardRoutes-C7tzEoGV.js → ChargeCardRoutes-Bwd20GRb.js} +7 -7
  12. package/dist/assets/{CompanyPassportScreen-DViAGsze.js → CompanyPassportScreen-BS8cAeG7.js} +1 -1
  13. package/dist/assets/ConnectionAuthScreen-NpomCNmq.js +11 -0
  14. package/dist/assets/CustomerOnboardingAuthScreen-K1DQpnRo.js +1 -0
  15. package/dist/assets/{CustomerOnboardingRoutes-B2flxgjR.js → CustomerOnboardingRoutes-Ctei1yxR.js} +5 -5
  16. package/dist/assets/{DashboardRoutes-D6igUQ_c.js → DashboardRoutes-Yd6ytWgF.js} +1 -1
  17. package/dist/assets/{DefaultTenantHome-CMpQllfi.js → DefaultTenantHome-C_ePwGG_.js} +1 -1
  18. package/dist/assets/{DomesticWireDetailScreen-D-XdJZt2.js → DomesticWireDetailScreen-agLHT6HV.js} +3 -3
  19. package/dist/assets/{DrawerScreen-DquM7PdJ.js → DrawerScreen-B3BZEyK7.js} +1 -1
  20. package/dist/assets/EntityDetailRoutes-DFTT7Jex.js +1 -0
  21. package/dist/assets/{ExpenseAutomationRoutes-o1rALTgt.js → ExpenseAutomationRoutes-7J9OIwql.js} +3 -3
  22. package/dist/assets/FeaturePreviewScreen-DInsBmdk.js +1 -0
  23. package/dist/assets/HubSpotOAuthCallbackScreen-wO_7Z3IU.js +1 -0
  24. package/dist/assets/{InboxNotificationsProvider-DPgK9Ai7.js → InboxNotificationsProvider-CJ6RDL31.js} +1 -1
  25. package/dist/assets/{InvoicingRoutes-BroIFZYm.js → InvoicingRoutes-cvqoXavi.js} +1 -1
  26. package/dist/assets/{MagicLinkRoutes-BYZevXyH.js → MagicLinkRoutes-B7dsytLy.js} +6 -6
  27. package/dist/assets/MagicLinkSignInScreen-D4aX7YwY.js +12 -0
  28. package/dist/assets/MobileAppDrawer-CTQRP8UJ.js +1 -0
  29. package/dist/assets/NotFoundScreen-BWSuWGJw.js +1 -0
  30. package/dist/assets/NotificationRoutes-DzRmN_jM.js +1 -0
  31. package/dist/assets/OAuthConsentScreen-eVNO9tpS.js +1 -0
  32. package/dist/assets/PandLWithForecastRoutes-B8_fFjT-.js +1 -0
  33. package/dist/assets/{PaymentLinkScreen-6qwvkVJe.js → PaymentLinkScreen-BFbh2fvr.js} +5 -5
  34. package/dist/assets/{PeopleRoutes-BT10_5ZZ.js → PeopleRoutes-DRqKHSzZ.js} +3 -3
  35. package/dist/assets/PerformanceRoutes-DRekxiu8.js +1 -0
  36. package/dist/assets/{Preview-xYIpXmh0.js → Preview-DOoN8piN.js} +1 -1
  37. package/dist/assets/{QBOConnectionScreen-CPdRdNFp.js → QBOConnectionScreen-DwtmgRyN.js} +1 -1
  38. package/dist/assets/{ReimbursementApprovalRoutes-kSFV0KaQ.js → ReimbursementApprovalRoutes-CL2uUquG.js} +1 -1
  39. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-CD8m8c7W.js → ReimbursementApprovalRuleDetailScreen-CXdcXz04.js} +1 -1
  40. package/dist/assets/{ReimbursementRoutes-B7HRPmdv.js → ReimbursementRoutes-DRi4OeXU.js} +5 -5
  41. package/dist/assets/{ReportsRoutes-CkYyyTje.js → ReportsRoutes-Bmh4S4Fl.js} +1 -1
  42. package/dist/assets/{RewardsRoutes-kEA_DefW.js → RewardsRoutes-CdUHO7Yc.js} +1 -1
  43. package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-DH-G2ABB.js → ScheduleDetailsPrepaidExpensesScreen-B6e9FDGx.js} +5 -5
  44. package/dist/assets/{ScreenRoutes-C72NzSAe.js → ScreenRoutes-NcBi_D0j.js} +2 -2
  45. package/dist/assets/{SettingsRoutes-gBgMK1MW.js → SettingsRoutes-CXMPeImh.js} +5 -5
  46. package/dist/assets/{SetupPagesScreen-CIrP22mo.js → SetupPagesScreen-u4czjChG.js} +4 -4
  47. package/dist/assets/SignInScreen-DfoNrTd3.js +1 -0
  48. package/dist/assets/SignOutScreen-CaEWLSLT.js +9 -0
  49. package/dist/assets/TaskListScreen-C4v_wDqU.js +9 -0
  50. package/dist/assets/TaskRoutes-pNExaoog.js +9 -0
  51. package/dist/assets/TransactionDetailRoutes-Bi3Vmb5p.js +1 -0
  52. package/dist/assets/{TransactionDetailScreen-BfwmFu4d.js → TransactionDetailScreen-BzGcsLih.js} +2 -2
  53. package/dist/assets/{TransactionListRoutes-CcqGcmw0.js → TransactionListRoutes-B432YMQA.js} +1 -1
  54. package/dist/assets/{TreasuryRoutes-S1BfnYGO.js → TreasuryRoutes-Crl38a_q.js} +5 -5
  55. package/dist/assets/{VendorsRoutes-D9wt7kTI.js → VendorsRoutes-xIHUU5cC.js} +1 -1
  56. package/dist/assets/WiseConfirmationScreen-COz0cxAH.js +12 -0
  57. package/dist/assets/{ZeniAccountRoutes-CgUN5fCf.js → ZeniAccountRoutes-D0ESQTiE.js} +9 -9
  58. package/dist/assets/ZeniAccountStatementScreen-mhMclD_-.js +9 -0
  59. package/dist/assets/{accountMappingHelper-BYw-4sqP.js → accountMappingHelper-CzuKXsfZ.js} +1 -1
  60. package/dist/assets/{analytics-UPQyZr49.js → analytics-BGlrzyDz.js} +1 -1
  61. package/dist/assets/{analyticsHelper-nRPDDcpi.js → analyticsHelper-N9KfV3Ey.js} +1 -1
  62. package/dist/assets/{core-D4EC26kf.js → core-C6dxOS4P.js} +1 -1
  63. package/dist/assets/{decodeURIComponentSafe-CDB32jt8.js → decodeURIComponentSafe-DX5mm8tE.js} +1 -1
  64. package/dist/assets/{dnd-CQ9igkkh.js → dnd-BtyoSdzG.js} +1 -1
  65. package/dist/assets/{empty-D2f6MViE.js → empty-20Do0ayr.js} +1 -1
  66. package/dist/assets/{empty-CI6RvMsS.js → empty-s4dMcXJj.js} +1 -1
  67. package/dist/assets/{emptyVideoElement-DMQKfl7Z.js → emptyVideoElement-Cn9_hQna.js} +1 -1
  68. package/dist/assets/epic-DcczydaG.js +2 -0
  69. package/dist/assets/expenseAutomationHelper-DCxx3oei.js +1 -0
  70. package/dist/assets/{getLocaleForTenant-B07LkoV2.js → getLocaleForTenant-D3SNBEiv.js} +1 -1
  71. package/dist/assets/{index-DIih7oGD.js → index-B2UVgtaW.js} +1 -1
  72. package/dist/assets/{index-D7USIDVj.js → index-Bk0SSvS0.js} +1 -1
  73. package/dist/assets/{index-CEVAJ-IM.js → index-CZ8Bq_4q.js} +1 -1
  74. package/dist/assets/{index-CWHRX-bO.js → index-DNfJb3gN.js} +1 -1
  75. package/dist/assets/{index-Cjagh0U7.js → index-DQSzwhal.js} +2 -2
  76. package/dist/assets/{index-CllzBMQZ.js → index-DVkDiHzq.js} +1 -1
  77. package/dist/assets/{index-B_bOZ9_a.js → index-I-q_Bo-e.js} +1 -1
  78. package/dist/assets/{index-Ch-ATQTq.js → index-pj4u0b1G.js} +14375 -14409
  79. package/dist/assets/{lexical-DvwBeJWJ.js → lexical-plr3Wvpq.js} +1 -1
  80. package/dist/assets/{liveblocks-DcDE-V-o.js → liveblocks-CRyd9n8B.js} +1 -1
  81. package/dist/assets/{lottie-DBrmrNFb.js → lottie-CXwABHQ0.js} +1 -1
  82. package/dist/assets/{mui-BCH_ILdb.js → mui-0pGBD9L4.js} +1 -1
  83. package/dist/assets/{pathToGoBack-rzbozB31.js → pathToGoBack-B8vmhE3I.js} +1 -1
  84. package/dist/assets/{pdf-zGCHYG6q.js → pdf-c_Y6aTYi.js} +4 -4
  85. package/dist/assets/{pdf-lib-CbTEittW.js → pdf-lib-kUoa-zRQ.js} +1 -1
  86. package/dist/assets/{plaid-a-pmhWdo.js → plaid-CO0-sO-T.js} +1 -1
  87. package/dist/assets/{pusher-DTPJtuD1.js → pusher-BfHG6cEQ.js} +1 -1
  88. package/dist/assets/{react-BxMK-s19.js → react-B6rMqh5y.js} +1 -1
  89. package/dist/assets/{react-DEi14qD-.js → react-B9ZK5e9A.js} +1 -1
  90. package/dist/assets/{react-CW0JS27q.js → react-C9Oqiteh.js} +1 -1
  91. package/dist/assets/{react-Dom5mok4.js → react-CKKOu6ZR.js} +1 -1
  92. package/dist/assets/{react-Cc6y9hJ0.js → react-Ds8BzNi6.js} +1 -1
  93. package/dist/assets/{react-C83CKqL4.js → react-rpmVlbhi.js} +1 -1
  94. package/dist/assets/{recharts-BRIJ8RH5.js → recharts-C9C0kAsT.js} +1 -1
  95. package/dist/assets/{routePaths-D0-Tropc.js → routePaths-D6noST9U.js} +1 -1
  96. package/dist/assets/{sentry-DB4rU-NW.js → sentry-BOmfv4Oi.js} +1 -1
  97. package/dist/assets/{stripSplatSuffix-DDkMarxH.js → stripSplatSuffix-4upapLOu.js} +1 -1
  98. package/dist/assets/{url-B6fk1MD4.js → url-1eFiIl2c.js} +1 -1
  99. package/dist/assets/{url-C0P0ff3A.js → url-BtRn4YUp.js} +1 -1
  100. package/dist/assets/useActualMatchingMatchDetail-CnwaLoCC.js +1 -0
  101. package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-DOmg3jmM.js → useAiCfoDashboardSuggestedQuestionsChips-Br490_x2.js} +1 -1
  102. package/dist/assets/useAskAiCfoHostNavButtonProps-D_lZcHX9.js +1 -0
  103. package/dist/assets/{useChargeCardPusherEvents-WOovjOqT.js → useChargeCardPusherEvents-ijimVvc8.js} +1 -1
  104. package/dist/assets/{useDeviceId-Dy35NfBh.js → useDeviceId-AGSM87EZ.js} +1 -1
  105. package/dist/assets/useEmailConnectResultRefresh-BRFhahB3.js +1 -0
  106. package/dist/assets/{useInitialThreadRequest-Da3K5Ksw.js → useInitialThreadRequest-B9k0MBEA.js} +1 -1
  107. package/dist/assets/{useTaskManagerAccess-CX5toJpg.js → useTaskManagerAccess-DlX9f1Pd.js} +1 -1
  108. package/dist/assets/{useTaskManagerPusherEvents-BiZinOaM.js → useTaskManagerPusherEvents-CDCMnrHo.js} +1 -1
  109. package/dist/assets/{utils-CU_Pr3K6.js → utils-DrAWZPZ0.js} +1 -1
  110. package/dist/assets/{withTransactionSidePanel-CCvid0cv.js → withTransactionSidePanel-DfxhH5Jw.js} +1 -1
  111. package/dist/assets/{zeni-epic-state-Bl3gAQPi.js → zeni-epic-state-C5-RfNOq.js} +5 -5
  112. package/dist/index.html +1 -1
  113. package/package.json +4 -4
  114. package/dist/assets/AddressRoutes-DHraPu2z.js +0 -1
  115. package/dist/assets/AddressScreen-BOTH_mRu.js +0 -9
  116. package/dist/assets/BusinessVerificationPageScreen-CqSHzLo6.js +0 -9
  117. package/dist/assets/ConnectionAuthScreen-yW3T26AI.js +0 -11
  118. package/dist/assets/CustomerOnboardingAuthScreen-CEs020qJ.js +0 -1
  119. package/dist/assets/EntityDetailRoutes-B7vzEsHl.js +0 -1
  120. package/dist/assets/FeaturePreviewScreen-B0SxkBd3.js +0 -1
  121. package/dist/assets/HubSpotOAuthCallbackScreen-CYGRU6le.js +0 -1
  122. package/dist/assets/MagicLinkSignInScreen-DqgSvyNq.js +0 -12
  123. package/dist/assets/MobileAppDrawer-C6gfQS8M.js +0 -1
  124. package/dist/assets/NotFoundScreen-0hF8kIyY.js +0 -1
  125. package/dist/assets/NotificationRoutes-BRYauJLR.js +0 -1
  126. package/dist/assets/OAuthConsentScreen-B_ncopNh.js +0 -1
  127. package/dist/assets/PandLWithForecastRoutes-BU_XWD0n.js +0 -1
  128. package/dist/assets/PerformanceRoutes-DEM0F09k.js +0 -1
  129. package/dist/assets/SignInScreen-DAl9_AVs.js +0 -1
  130. package/dist/assets/SignOutScreen-CvQRUG30.js +0 -9
  131. package/dist/assets/TaskListScreen-DI37lN7R.js +0 -9
  132. package/dist/assets/TaskRoutes-Sr-eq5Xy.js +0 -9
  133. package/dist/assets/TransactionDetailRoutes-DHOAhb5X.js +0 -1
  134. package/dist/assets/WiseConfirmationScreen-CBCiP645.js +0 -12
  135. package/dist/assets/ZeniAccountStatementScreen-jmmjZcA9.js +0 -9
  136. package/dist/assets/epic-pH_zo6MR.js +0 -2
  137. package/dist/assets/expenseAutomationHelper-DLTA8kBq.js +0 -1
  138. package/dist/assets/useActualMatchingMatchDetail-BNN20aCx.js +0 -1
  139. package/dist/assets/useAskAiCfoHostNavButtonProps-CBSVhkeG.js +0 -1
  140. package/dist/assets/useEmailConnectResultRefresh-27P04Izm.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-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>
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-pj4u0b1G.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-BOmfv4Oi.js"><link rel="modulepreload" crossorigin href="/assets/core-C6dxOS4P.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-C5-RfNOq.js"><link rel="modulepreload" crossorigin href="/assets/mui-0pGBD9L4.js"><link rel="modulepreload" crossorigin href="/assets/analytics-BGlrzyDz.js"><link rel="modulepreload" crossorigin href="/assets/utils-DrAWZPZ0.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.87-dev",
3
+ "version": "5.3.88-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.4",
32
- "@zeniai/client-epic-state": "5.2.83",
33
- "@zeniai/web-components": "4.4.25",
31
+ "@zeniai/client-analytics": "2.1.3",
32
+ "@zeniai/client-epic-state": "5.2.81",
33
+ "@zeniai/web-components": "4.4.26",
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-DcDE-V-o.js";import{A as i}from"./AddressScreen-BOTH_mRu.js";import s from"./NotFoundScreen-0hF8kIyY.js";import"./sentry-DB4rU-NW.js";import{n as d,o as r}from"./core-D4EC26kf.js";import"./zeni-epic-state-Bl3gAQPi.js";import"./recharts-BRIJ8RH5.js";import"./index-Ch-ATQTq.js";import"./mui-BCH_ILdb.js";import"./analytics-UPQyZr49.js";import"./plaid-a-pmhWdo.js";import"./dnd-CQ9igkkh.js";import"./stripe-cKAAJElX.js";import"./lottie-DBrmrNFb.js";import"./lexical-DvwBeJWJ.js";import"./pdf-zGCHYG6q.js";import"./utils-CU_Pr3K6.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 n}from"./liveblocks-DcDE-V-o.js";import{a as h}from"./sentry-DB4rU-NW.js";import{h as A,u as P,g as j,i as E,j as $,l as B}from"./core-D4EC26kf.js";import{$ as L,z as M,V,a5 as D,a6 as K,j as C,N as S,a1 as R,T as b,a2 as N}from"./index-Ch-ATQTq.js";import{VQ as _,it as z,fI as U,VR as F,c9 as G,VS as O,mL as q}from"./zeni-epic-state-Bl3gAQPi.js";import{u as H,n as Q}from"./mui-BCH_ILdb.js";import J from"./NotFoundScreen-0hF8kIyY.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]="490a36ed-95fe-4ced-80cd-203fd39b0f8f",e._sentryDebugIdIdentifier="sentry-dbid-490a36ed-95fe-4ced-80cd-203fd39b0f8f")}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),d=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:d,isSubPage:i,dontShowSaveConfirmationPopup:s.dontShowSaveConfirmation}}const r=_(e,o);return{addressToEdit:r.address,loadingState:r.fetchState,googleAPIKey:b.googleMapsAPIKey,isDisabled:d}}),(function(e,s){const{navigate:o,location:i,addressType:c}=s,l=a=>{if(a==="express-pay")o("../express-pay/add-wire");else{const d=i.state,r=N(d?.pathnameStackToGoBack);let t=r.poppedPathname??v();const u=d?.queryParams;if(u){const f=new URLSearchParams(u).toString();f&&(t=`${t}?${f}`)}o(t,{state:{pathnameStackToGoBack:r.newStack}})}};return{onSubmitHandler:a=>{const d=Y(a);e(q({addressType:c,addressToCreate:d})),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 ne({isSubPage:e,hideAddressSubTitle:s=!1,hideAddressBackButton:o=!1,dontShowSaveConfirmation:i,accountContext:c,addressTypeParam:l}){const a=A(),d=P(),r=j(),{addressId:t,addressType:u}=E(),f=L(),w=H(),I=M.getSignedInUser(),[g,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 T=m=>m.trackPageLoaded(t!=null?S.Event.editAddress:S.Event.addAddress),y=l??u;return h.useEffect((()=>{g||t==null||(k(!0),d(z(t,!1)))}),[g,t,d]),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)?!g&&p==="Not-Started"||g&&p==="In-Progress"?n.jsx(D,{fetchState:p,style:{backgroundColor:w.colors.grey5}}):t!=null&&p==="Error"?(a(`${v(1)}/new`,{replace:!0}),n.jsx(n.Fragment,{})):n.jsxs(n.Fragment,{children:[n.jsx(K,{analytics:C,onLoad:T}),n.jsx(W,{windowSize:f,children:n.jsx(X,{location:r,navigate:a,isSubPage:e===!0,hideAddressBackButton:o,hideAddressSubTitle:s,addressId:t,addressType:y,dontShowSaveConfirmation:i,bankAccountContext:c,roleMap:x?.loggedInUserRoleMap})})]}):n.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{ne as A,Y as t};
@@ -1,9 +0,0 @@
1
- import{a as O}from"./sentry-DB4rU-NW.js";import{u as W,j as b,h as se,g as oe,i as ie,N as re,l as ce}from"./core-D4EC26kf.js";import{fI as z,HZ as ue,Ib as de,Ln as le,Od as pe,OT as fe,PI as me,ZC as ye,BY as Se,SN as Ie,ZD as ge,ZE as be,ZF as he,ZG as Te,ZH as De,ZI as Ce,VR as Oe,YI as ke,W4 as Ve,Mz as Ae,Mr as we,W5 as Ne,Mv as Fe,mL as ve,gJ as _e,gI as Ee,gH as xe,v2 as Re,uV as ze,uS as Be,mD as Pe,C5 as Le,C3 as B,bF as P,Ch as L,cF as Me}from"./zeni-epic-state-Bl3gAQPi.js";import{bR as Ue,V as Ze,W as je,bg as Ge,z as R,a6 as We,j as M,n as E,N as x,bT as He,ac as Ke,p as U,aE as Z}from"./index-Ch-ATQTq.js";import{n as qe}from"./mui-BCH_ILdb.js";import{j as A}from"./liveblocks-DcDE-V-o.js";import{d as j}from"./routePaths-D0-Tropc.js";import{M as Ye}from"./MobileAppDrawer-C6gfQS8M.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="8b378f9f-1935-4c43-bd35-527fe1427c5f",e._sentryDebugIdIdentifier="sentry-dbid-8b378f9f-1935-4c43-bd35-527fe1427c5f")}catch{}})();function it(){const e=W(),r=b((u=>z(u))),a=r?.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,r,a,s=!1){switch(r){case"zeni_accounts":e(me(a,!0,s));break;case"zeni_treasury":e(fe(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=ce((function(e,r){const{businessVerificationDetails:a}=r,s=z(e),l=R.getSignedInUser(),p=s.tenantId,u={userId:l?.userId??"",sessionId:l?.zeniSessionId??"",tenantId:p??""},h=Oe(r.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:`${Ke.fileMicroServiceBaseUrl}`,authParams:u,isDisabled:h,allIndustries:t.companyIndustries??[],companyTitles:o.companyTitles}}),(function(e,r){const{companyId:a,productType:s,currentTenant:l,navigate:p,location:u}=r,{tenantEmailDomain:h}=l;return{onCompanyDetailsChanged:t=>{const{companyDescription:o,companyIndustry:f,companyIndustryType:k,companyLegalName:V,companyTaxId:y,companyWebsite:m,companyPhone:S,primaryContactEmail:d,primaryContactName:i,primaryContactUserId:T,primaryContactSyncToken:D,syncToken:c,fileIds:C,incDate:n,typeOfIncorporation:I,stateOfIncorporation:w,sourceOfFunds:N,companySubIndustry:F,countriesOfOperations:g,companySourceOfFunds:H,companySourceOfFundsDescription:K,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:f.selectedOption,companyIndustryType:v==null||v===""?void 0:v,companyLegalName:V,taxIdOrEIN:y,website:m!=""&&m!=null?Me(m):void 0,phone:S,syncToken:c,fileIds:C,incDate:n!=null?P(n?.toString()):n,typeOfIncorporation:I?.selectedOption??"",stateOfIncorporation:w?.selectedOption??"",sourceOfFunds:N?.selectedOption??"",companySubIndustry:F?.selectedOption??"",countriesOfOperations:g?.selectedOptions.map((_=>_.length===2?_:Z(_)))??[],companySourceOfFunds:H?.selectedOption??"",companySourceOfFundsDescription:K,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(L({companyDetails:ae,primaryContactDetails:ne}))},onCompanyOfficerUpdated:t=>{const o=t.map((f=>{const{officerType:k,userId:V,name:y,email:m,nationalityCountryCode:S,ssn:d,dob:i,phone:T,syncToken:D,selectDocument:c,role:C,ownership:n,isSelectedForVerification:I,userVerificationStatus:w,treasuryUserVerificationStatus:N,fileIds:F}=f;let g;return c.selectDocumentType==="driverLicense"?g="driving_license":c.selectDocumentType==="passport"?g="passport":c.selectDocumentType==="stateId"?g="id_document":c.selectDocumentType==="ssnCard"&&(g="social_security_card"),{officerType:k,userId:V,firstName:y.firstName,lastName:y.lastName,email:m,ssn:d,nationalityCountryCode:S?.selectedOption!=null?Z(S.selectedOption):void 0,phone:T,birthday:i!=null?P(i?.toString()):i,syncToken:D,titleAtCompany:C.selectedOption,ownershipInCompany:n,documentTypeSelectedForVerification:g,isSelectedForVerification:I,userVerificationStatus:w,treasuryUserVerificationStatus:N,fileIds:F,additionalDocumentTypesRequestedForVerification:[],additionalSubmittedDocumentsForVerificationFileIds:[],areAdditionalDocumentsRequestedForVerification:!1,areAdditionalDocumentsSubmittedForVerification:!1}}));e(L({officers:o}))},onSaveDetailsClick:t=>{e(B(a,t,s))},onSendForVerificationClick:t=>{e(B(a,t,s,!0))},onAddressClick:t=>{const o=j(h,t),f=U(u.state?.pathnameStackToGoBack,u.pathname);p(o,{state:{pathnameStackToGoBack:f}})},onRegisteredAddressClick:t=>{const o=j(h,t),f=U(u.state?.pathnameStackToGoBack,u.pathname);p(o,{state:{pathnameStackToGoBack:f}})},onBackClick:()=>{e(Le({companyId:a})),p("../setup")},updateFilesEntity:t=>{e(Pe({files:t}))},onDeleteFile:t=>{e(Be(t))},onDeleteFileList:t=>{e(ze(t))},onEditFileName:(t,o)=>{e(Re(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())}}}))(He),rt=({productType:e})=>{const r=se(),a=oe(),s=W(),[l,p]=O.useState(!1),[u,h]=O.useState(!1),{tenantEmailDomain:t}=ie(),o=Ze(),{useDynamicConfig:f}=je(),{configValue:k}=f(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}})),m=b((n=>n.companyConfigState.fetchState)),S=b((n=>n.userRoleConfigState.fetchState)),d=b((n=>z(n))),i=d.companyId??R.getSignedInUserTenant(t)?.companyId;O.useEffect((()=>{m==="Not-Started"&&s(Se()),S==="Not-Started"&&s(Ie(!0))}),[m,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 ge(n,i)}})),D=T.kycKybResetStatus.fetchState;if(O.useEffect((()=>{D==="Completed"&&i!=null&&(G(s,e,i,!0),s(Ce()))}),[D,i,e,s]),R.getSignedInUser()==null)throw Error("Can't access business verification without signing in...");let c;switch(e){case"zeni_accounts":c=d.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted;break;case"reimbursement":c=d.companyReimbursementInfo?.info?.isReimbursementTOSAccepted;break;case"charge_cards":c=d.companyChargeCardInfo?.info?.isChargeCardTOSAccepted===!0||d.companyDebitCardInfo?.info?.isDebitCardTOSAccepted;break;case"zeni_treasury":c=d.companyTreasuryInfo?.info?.isTreasuryTOSAccepted;break;default:c=d.companyBillPayInfo?.info?.isBillPayTOSAccepted}const C=n=>{h(n)};return c===!1?A.jsx(re,{to:"../promo"}):A.jsxs($e,{children:[A.jsx(We,{analytics:M,onLoad:n=>(I=>{switch(e){case"zeni_accounts":return I.trackPageLoaded(x.Event.zeniAccountsBusinessVerification);case"reimbursement":case"charge_cards":return I.trackPageLoaded(x.Event.reimbursementBusinessVerification);default:return I.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:r,location:a,companyId:i,analytics:M,currentTenant:d,productType:e,isSettings:E(a),roleMap:o?.loggedInUserRoleMap??{},onClickMenuIcon:()=>{C(!0)},maxInsuredAmount:V.maxInsuredAmount})]})};export{rt as B,G as d,it as u};
@@ -1,11 +0,0 @@
1
- import{j as I}from"./liveblocks-DcDE-V-o.js";import{a as o}from"./sentry-DB4rU-NW.js";import{u as F,h as R,g as H,j as C,N as w}from"./core-D4EC26kf.js";import{Um as q,fI as z,go as G,pW as M,gP as U,gn as Q,gl as V,UM as W,gk as A}from"./zeni-epic-state-Bl3gAQPi.js";import{u as B,z as E,L as T,G as J,E as K}from"./index-Ch-ATQTq.js";import{n as X}from"./mui-BCH_ILdb.js";import{P as b,a as _}from"./AccountMappingScreen-9MHulU9s.js";import{t as Y}from"./getLocaleForTenant-B07LkoV2.js";import{g as Z,Q as ee}from"./QBOConnectionScreen-CPdRdNFp.js";import"./recharts-BRIJ8RH5.js";import"./analytics-UPQyZr49.js";import"./plaid-a-pmhWdo.js";import"./dnd-CQ9igkkh.js";import"./stripe-cKAAJElX.js";import"./lottie-DBrmrNFb.js";import"./lexical-DvwBeJWJ.js";import"./pdf-zGCHYG6q.js";import"./utils-CU_Pr3K6.js";import"./MobileAppDrawer-C6gfQS8M.js";import"./InboxNotificationsProvider-DPgK9Ai7.js";import"./useTaskManagerAccess-CX5toJpg.js";import"./accountMappingHelper-BYw-4sqP.js";import"./empty-CI6RvMsS.js";import"./pdf-lib-CbTEittW.js";import"./index-CEVAJ-IM.js";import"./url-C0P0ff3A.js";import"./index-CllzBMQZ.js";import"./decodeURIComponentSafe-CDB32jt8.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new t.Error().stack;i&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[i]="c11f3dd7-886b-4ba3-8acd-b4d7f9891cd5",t._sentryDebugIdIdentifier="sentry-dbid-c11f3dd7-886b-4ba3-8acd-b4d7f9891cd5")}catch{}})();const te=X.div`
2
- display: flex;
3
- flex: 1 1 auto;
4
- flex-direction: row;
5
- justify-content: center;
6
- align-items: center;
7
- width: 100%;
8
- height: 100vh;
9
- background-color: ${t=>t.theme.colors.background};
10
- box-shadow: ${t=>`0px 2px ${K.sp1} ${t.theme.colors.dropShadowNormal}`};
11
- `;function we(){const t=F(),i=R(),v=H(),{setLoading:c,clearAllLoading:m}=B(),h=o.useRef(!1),S=o.useRef(!1),N=o.useRef(!1),p=o.useRef(!1),{code:O,realmId:$,state:L}=Z(v.search),f=O!==""&&$!==""&&L!=="";f&&(N.current=!0);const j=sessionStorage.getItem(b),u=j===_.pending,P=j===_.ready,x=C((s=>q(s))),e=C((s=>z(s))),n=C((s=>s.tenantState.fetchState)),r=C((s=>s.tenantState.activeTenantFetchState.fetchState)),a=E.getSignedInUser(),g=E.getActiveTenantForUser()?.tenantId,l=e?.externalConnections?.fetchState,d=e?.externalConnections?.saveConnectionState,y=e.externalConnections?.accounting[0]?.isValid;o.useLayoutEffect((()=>{c(T.CONNECTION_AUTH)}),[c]),o.useEffect((()=>{h.current||a==null||g==null||(h.current=!0,n==="Completed"||r!=="Not-Started"&&r!=="Error"||(c(T.TENANT_FETCHING),t(G(a.userId,g))))}),[h,n,c]),o.useEffect((()=>{e.tenantId==null&&!S.current&&a!=null&&(S.current=!0,!(g==null||g!=null&&(r==="Completed"||r==="Error"))||n!=="Not-Started"&&n!=="Error"||t(M(a.userId)))}),[S,n,r]),o.useEffect((()=>{a==null||e?.tenantId==null||e.externalConnections!=null||n!=="Completed"&&r!=="Completed"||l==="In-Progress"||d!=="Error"||(c(T.CONNECTION_AUTH),t(U(a.userId,e.tenantId)))}),[d]),o.useEffect((()=>{n!=="Completed"&&r!=="Completed"||a==null||e?.tenantId==null||(t(Q(e.tenantId)),E.saveActiveTenantDomainForUser(e.tenantEmailDomain),V(a?.userId,a?.zeniSessionId,e.tenantId),J.updateAppLocaleID(Y(W(e))),e.externalConnections!=null||n!=="Completed"&&r!=="Completed"||l==="In-Progress"||a==null||e==null||t(U(a.userId,e.tenantId)))}),[n,r,l]),o.useEffect((()=>{x.tenantsCoreDetailsInOrder.length>0&&n==="Completed"&&E.saveSignedInUserTenants(x.tenantsCoreDetailsInOrder)}),[x.tenantsCoreDetailsInOrder.length,n]);const D=e==null||n!=="Completed"&&r!=="Completed"||l!=="Completed";if(o.useEffect((()=>{n!=="Completed"&&n!=="Error"||r!=="Completed"&&r!=="Error"||l!=="Completed"&&l!=="Error"||m()}),[n,r,l]),o.useEffect((()=>{u&&d==="In-Progress"&&(p.current=!0)}),[u,d]),o.useEffect((()=>{if(!u||D)return;const s=e.tenantEmailDomain!=null?`/${e.tenantEmailDomain}/settings/accounting`:"/";return p.current&&d==="Completed"?(sessionStorage.setItem(b,_.ready),m(),void i(s,{replace:!0})):p.current&&d==="Error"?(sessionStorage.removeItem(b),t(A({messageSection:"accounting_projects_qbo_reconnect_failed",messageText:"failed",type:"error"})),m(),void i(s,{replace:!0})):void(f||N.current||p.current||y!==!0||(sessionStorage.removeItem(b),t(A({messageSection:"accounting_projects_qbo_reconnect_failed",messageText:"failed",type:"error"})),m(),i(s,{replace:!0})))}),[u,D,d,f,y,e.tenantEmailDomain,m,t,i]),D)return null;if(f||y!==!0)return I.jsx(te,{children:I.jsx(ee,{})});if(u)return null;const k=e.tenantEmailDomain!=null?`/${e.tenantEmailDomain}/settings/accounting`:"/";return P?I.jsx(w,{to:k,replace:!0}):I.jsx(w,{to:"/",replace:!0})}export{we as default};
@@ -1 +0,0 @@
1
- import{j as i}from"./liveblocks-DcDE-V-o.js";import{z as m}from"./index-Ch-ATQTq.js";import{g as n}from"./QBOConnectionScreen-CPdRdNFp.js";import"./sentry-DB4rU-NW.js";import{g as p,N as a}from"./core-D4EC26kf.js";import"./zeni-epic-state-Bl3gAQPi.js";import"./recharts-BRIJ8RH5.js";import"./mui-BCH_ILdb.js";import"./analytics-UPQyZr49.js";import"./plaid-a-pmhWdo.js";import"./dnd-CQ9igkkh.js";import"./stripe-cKAAJElX.js";import"./lottie-DBrmrNFb.js";import"./lexical-DvwBeJWJ.js";import"./pdf-zGCHYG6q.js";import"./utils-CU_Pr3K6.js";import"./empty-CI6RvMsS.js";import"./pdf-lib-CbTEittW.js";import"./index-CEVAJ-IM.js";import"./url-C0P0ff3A.js";import"./index-CllzBMQZ.js";import"./decodeURIComponentSafe-CDB32jt8.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 +0,0 @@
1
- import{j as s}from"./liveblocks-DcDE-V-o.js";import{a as d}from"./sentry-DB4rU-NW.js";import{h as B,u as A,g as F,i as X,j as l,N as W,l as q,n as N,o as O}from"./core-D4EC26kf.js";import{Xo as _,fI as M,WF as R,n3 as Y,SF as k,Xt as $,Xi as z,m3 as K,SG as P,WK as L,WL as V,Xk as H,Xj as J}from"./zeni-epic-state-Bl3gAQPi.js";import{b6 as Q,j as U,a2 as Z,p as tt}from"./index-Ch-ATQTq.js";import"./mui-BCH_ILdb.js";import{d as S}from"./decodeURIComponentSafe-CDB32jt8.js";import{w as et}from"./withTransactionSidePanel-CCvid0cv.js";import{f as at,c as nt}from"./routePaths-D0-Tropc.js";import"./recharts-BRIJ8RH5.js";import"./analytics-UPQyZr49.js";import"./plaid-a-pmhWdo.js";import"./dnd-CQ9igkkh.js";import"./stripe-cKAAJElX.js";import"./lottie-DBrmrNFb.js";import"./lexical-DvwBeJWJ.js";import"./pdf-zGCHYG6q.js";import"./utils-CU_Pr3K6.js";import"./useAskAiCfoHostNavButtonProps-CBSVhkeG.js";import"./TransactionDetailScreen-BfwmFu4d.js";import"./useInitialThreadRequest-Da3K5Ksw.js";import"./expenseAutomationHelper-DLTA8kBq.js";import"./stripSplatSuffix-DDkMarxH.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]="7fa5349f-926d-4b0b-bb5b-c19c301384b4",a._sentryDebugIdIdentifier="sentry-dbid-7fa5349f-926d-4b0b-bb5b-c19c301384b4")}catch{}})();const ot=q((function(a,t){const e=t.entity,o=$(a,t.entity,"EntityDetail");return{selectedEntity:e,autoCompleteData:{autoCompleteText:e.name,entityAutoCompleteView:z(a,"common")},trendWithTransactionsReport:o,analytics:U,isAccountingClassesEnabled:K(a)}}),(function(a,t){return{onTransactionItemClick:e=>{if(t.openTransactionPanel)return void t.openTransactionPanel(e.id,e.type);const o=`${nt(e,t.tenantEmailDomain)}`,c=tt(t.location.state?.pathnameStackToGoBack,t.location.pathname);t.navigate(o,{state:{pathnameStackToGoBack:c}})},autoCompleteActions:{onAutoCompleteInputChange:e=>{e.trim().length>=2?a(H({searchString:e,searchOrigin:"common"})):e.trim().length===0&&a(J("common"))},onAutoCompleteEntity:e=>{const o=at(e,t.tenantEmailDomain);a(L()),a(V()),t.resetTrendIsFetchedStates(),t.navigate(o,{replace:!0,state:{pathnameStackToGoBack:t.location.state?.pathnameStackToGoBack}})},onCancelAutoComplete:()=>{const e=Z(t.location.state?.pathnameStackToGoBack),o=e.poppedPathname??I();t.navigate(o,{state:{pathnameStackToGoBack:e.newStack}})}},onTrendSelectedPeriodChange:e=>{if(t.closeSidePanel?.(),e==null)t.defaultTransactionTimePeriod!=null&&a(P(t.entity,"EntityDetail",{timeframe:"quarter",timePeriod:t.defaultTransactionTimePeriod}));else{const o=e.currentTimePeriod==null?e.addTimePeriod:{startDate:e.addTimePeriod.startDate,endDate:e.currentTimePeriod.endDate};a(k(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:e.addTimePeriod})),a(P(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:o}))}}}}))(Q),it=et((function({entityType:a,...t}){const e=B(),o=A(),c=F(),[m,T]=d.useState(!1),[h,b]=d.useState(!1),{tenantEmailDomain:C,entityIdEncoded:j,entityNameEncoded:x}=X(),r=S(j??""),p=S(x??""),f=rt(r,p),v=[r,p].filter((n=>n!=null)),i={name:p,id:r,type:a,zeniId:r,qboId:r},D=l((n=>_(n.customerIncomeState,n.vendorExpenseState,n.trendState,i,"quarter"))),w=l((n=>M(n).company?.companyInfo.firstMonthOfFY??1)),u=l((n=>R(n.trendWithTransactionsState,i,"EntityDetail")));d.useEffect((()=>{m===!1&&f===!0&&(T(!0),o(Y(i)))}),[m,f,i]);const g=l((n=>n.trendState.fetchState)),E=u?.selectedPeriod?.timePeriod??D,G=(function(n,y){return n!=null&&y!=null?{startDate:n.startDate,endDate:y?.endDate}:y})(u?.selectedPeriod?.timePeriod,D);return d.useEffect((()=>{m===!0&&h===!1&&g==="Completed"&&(b(!0),E!=null&&o(k(i,"EntityDetail",{timeframe:u?.selectedPeriod?.timeframe??"quarter",timePeriod:E})))}),[m,h,g]),f?s.jsx(ot,{firstMonthOfFY:w,tenantEmailDomain:C,location:c,navigate:e,entity:i,defaultTransactionTimePeriod:G,resetTrendIsFetchedStates:()=>{T(!1),b(!1)},...t}):s.jsx(W,{to:I(v.length)})})),rt=(a,t)=>t!=null&&t.length>0&&a!=null&&a.length>0,I=(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(it,{entityType:a})})})}export{wt as EntityDetailRoutes,wt as default};
@@ -1 +0,0 @@
1
- import{j as s}from"./liveblocks-DcDE-V-o.js";import{a as r}from"./sentry-DB4rU-NW.js";import{au as i,av as l,Q as p,a2 as m}from"./index-Ch-ATQTq.js";import"./mui-BCH_ILdb.js";import c from"./NotFoundScreen-0hF8kIyY.js";import{h as u,g as b}from"./core-D4EC26kf.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]="46259803-014f-4edc-8864-d597a2b1f3f3",e._sentryDebugIdIdentifier="sentry-dbid-46259803-014f-4edc-8864-d597a2b1f3f3")}catch{}})();const _=()=>{const e=u(),a=b(),t=r.useCallback((()=>{window.open("https://www.zeni.ai/demo/request","_blank")}),[]),d=r.useCallback((()=>{(()=>{const n=m(a.state?.pathnameStackToGoBack),f=n.poppedPathname??k();e(f,{state:{pathnameStackToGoBack:n.newStack}})})()}),[]),o=i(a.pathname);return o!=null?s.jsx(l,{menuItem:p(o),onDemoClick:t,onGoBack:d}):s.jsx(c,{})},k=(e=2)=>{let a="../";for(let t=0;t<e;t++)a=`${a}../`;return a};export{_ as F};
@@ -1 +0,0 @@
1
- import{a as i}from"./sentry-DB4rU-NW.js";import{u as l,h as f,g as m}from"./core-D4EC26kf.js";import{i0 as p,V0 as g,V1 as _}from"./zeni-epic-state-Bl3gAQPi.js";import{u as b,L as h,z as y}from"./index-Ch-ATQTq.js";import"./liveblocks-DcDE-V-o.js";import"./recharts-BRIJ8RH5.js";import"./mui-BCH_ILdb.js";import"./analytics-UPQyZr49.js";import"./plaid-a-pmhWdo.js";import"./dnd-CQ9igkkh.js";import"./stripe-cKAAJElX.js";import"./lottie-DBrmrNFb.js";import"./lexical-DvwBeJWJ.js";import"./pdf-zGCHYG6q.js";import"./utils-CU_Pr3K6.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]="5c495f40-c7ce-4f61-a67b-0d17c6c1751d",e._sentryDebugIdIdentifier="sentry-dbid-5c495f40-c7ce-4f61-a67b-0d17c6c1751d")}catch{}})();function V(){const e=l(),n=f(),r=m(),{setLoading:o,clearAllLoading:u}=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"),c=sessionStorage.getItem("hubspot_oauth_pending");if(sessionStorage.removeItem("hubspot_oauth_pending"),a!=null&&c!=null){const t=JSON.parse(c);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}))}u();const d=y.getActiveTenantForUser();n(d?.tenantEmailDomain!=null?`/${d.tenantEmailDomain}/settings/integrations`:"/",{replace:!0})}),[]),null}export{V as default};
@@ -1,12 +0,0 @@
1
- import{j as u}from"./liveblocks-DcDE-V-o.js";import{a as f}from"./sentry-DB4rU-NW.js";import{u as O,g as _,h as w,t as M,j as l,N as L}from"./core-D4EC26kf.js";import{z as r,G as N,M as P,j as V,N as A,U as R,Y,R as G}from"./index-Ch-ATQTq.js";import{fI as W,Uo as $,UR as q,UI as B,gl as H,gn as J,UN as K,gY as Q,dk as X,US as Z,UT as ee}from"./zeni-epic-state-Bl3gAQPi.js";import{u as te,n as ne}from"./mui-BCH_ILdb.js";import{u as se}from"./useDeviceId-Dy35NfBh.js";import{f as ie}from"./analyticsHelper-nRPDDcpi.js";import{t as ae}from"./getLocaleForTenant-B07LkoV2.js";import"./recharts-BRIJ8RH5.js";import"./analytics-UPQyZr49.js";import"./plaid-a-pmhWdo.js";import"./dnd-CQ9igkkh.js";import"./stripe-cKAAJElX.js";import"./lottie-DBrmrNFb.js";import"./lexical-DvwBeJWJ.js";import"./pdf-zGCHYG6q.js";import"./utils-CU_Pr3K6.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new t.Error().stack;i&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[i]="868f5148-877f-4ff0-8359-3ee96ed3e864",t._sentryDebugIdIdentifier="sentry-dbid-868f5148-877f-4ff0-8359-3ee96ed3e864")}catch{}})();const T=(t,i)=>t!=null&&t.length>0&&i==="magic_links";function Te(){const t=O(),i=_(),m=w(),[y]=M(),n=y.get("token"),p=y.get("stytch_token_type"),g=r.getMagicLinkCodeVerifier(),a=se(),{otpChallenge:d,twoFAPhoneNumber:C,magicLinkEmail:c,verifyDeviceFetchState:x,resendVerifyDeviceOTPFetchState:z}=l((e=>e.tenantState)),S=l((e=>e.tenantState.fetchState)),b=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=>W(e))),k=l((e=>$(e))),D=r.getSignedInUser(),v=te().mode;f.useEffect((()=>{s?.zeniSessionId==null&&n!=null&&T(n,p)&&a!=null&&g!=null&&(r.saveMagicLinkTriggered(n),t(q(n,a,g)))}),[n,p,t,a,g,s?.zeniSessionId]),f.useEffect((()=>{I!=="In-Progress"||S!=="Completed"&&b!=="Completed"||s?.zeniSessionId==null||o==null||(n!=null&&r.saveLastUsedMagicLinkToken(n),r.saveSignedInUserWithSession(s,s.zeniSessionId),r.saveSignedInUserTenants(B(k.tenantsInOrder),s.zeniSessionId),H(s.userId,s.zeniSessionId,o.tenantId),t(J(o.tenantId)),r.saveActiveTenantDomainForUser(o.tenantEmailDomain),t(K("Completed")),N.updateAppLocaleID(ae(o)),ie(s,o,v,void 0,k.tenantsInOrder),Q().then((()=>{const e=G();e!=null&&P(e)})),setTimeout((()=>{V.trackLogin(A.Event.loginSuccess,"email",X(o.productSettings))}),2e3))}),[I,S,b,s,o,k,v,i.state,t]);const E=f.useCallback((()=>{m("/signin/auth")}),[m]),j=f.useCallback((()=>{a!=null&&d!=null&&c!=null&&t(Z(a,c,d))}),[a,d,t,c]),F=f.useCallback((e=>{a!=null&&n!=null&&c!=null&&d!=null&&t(ee(e,a,c,d))}),[a,n,t,c,d]);if(h==="Completed"&&d!=null)return u.jsx(R,{phoneNumber:C,verifyOtpFetchState:x.fetchState,resendVerifyDeviceOTPFetchState:z,onResendOtp:j,onVerifyOtp:F,onCancelVerifyDevice:E});if(I==="In-Progress"&&S==="Completed"&&s?.zeniSessionId!=null&&o!=null||D!=null){const e=i.state?.origin??"/";return u.jsx(L,{to:e,state:{...i.state,origin:""}})}if(!T(n,p)||g==null||h==="Error"){const e=i.state?.origin??"/",U=n!=null&&r.getLastUsedMagicLinkToken()===n;return u.jsx(L,{to:e,state:{...i.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 B}from"./liveblocks-DcDE-V-o.js";import{a as m}from"./sentry-DB4rU-NW.js";import{u as te,j as t,i as $e,g as Ge,h as Ue,q as F}from"./core-D4EC26kf.js";import{fI as ne,Up as Me,Uq as se,gc as xe,fH as Ne,Uz as Pe,Us as Re,Ut as Ve,q3 as je,gp as Le,Uw as h,UB as Oe,UC as K,gq as qe,UD as ze,Ev as Ze,h5 as He,cW as We,UE as Ye,gb as Xe,gr as Je}from"./zeni-epic-state-Bl3gAQPi.js";import{w as Ke,i as Qe,e as ea,W as aa,c as ta,f as na,u as sa,A as c,g as oa,X as ia,z as ra,d as da,k as ca,q as la,o as ua,l as ma,n as Q,L as fa,C as ba,D as ha,p as S,j as ee,v as pa,F as ae,y as ga,B as Sa}from"./index-Ch-ATQTq.js";import{D as Ea}from"./mui-BCH_ILdb.js";import{u as ka}from"./InboxNotificationsProvider-DPgK9Ai7.js";import{u as Ca}from"./useTaskManagerAccess-CX5toJpg.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new l.Error().stack;i&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[i]="9c0ab9dd-4c2b-44e5-aa66-0c1b41b4f47a",l._sentryDebugIdIdentifier="sentry-dbid-9c0ab9dd-4c2b-44e5-aa66-0c1b41b4f47a")}catch{}})();const Ta=Ke((({isAppContentDrawerOpen:l,handleDrawerToggle:i})=>{const{tenantEmailDomain:s}=$e(),a=Ge(),E=ea(),n=Ue(),D=xe(),r=te(),{useFeatureGate:d}=aa(),p=ta(),{isTaskManagerAccessEnabled:k}=Ca(p),o=t((e=>ne(e))),oe=o.masterTOSInfo?.isMasterTOSAccepted??!1,$=t((e=>Ne(e))),{status:ie}=t(Pe),G=$.uiState.currentChatSessionId,C=na(),{setLoading:re}=sa(),[w,U]=m.useState(void 0),v=F("/:tenantEmailDomain/dashboard")!==null,M=F("/:tenantEmailDomain/reports")!==null,f=F("/:tenantEmailDomain/onboarding/*")!==null,de=!!o.company?.companyZeniAccountInfo?.isZeniAccountEnabled,{isFeatureEnabled:ce}=d(c.isChargeCardFeatureEnabled),{isFeatureEnabled:x}=d(c.isDebitCardFeatureEnabled),le=oa(o,ce,x),{isFeatureEnabled:ue}=d(c.isSettingsFeatureEnabled),N=t((e=>Re(e))),{isFeatureEnabled:T}=d(c.isReferralFeatureEnabled),A=t((e=>Ve(e)));m.useEffect((()=>{C&&T&&!f&&A.fetchState==="Not-Started"&&r(je(!0))}),[C,T,A.fetchState,f]);const _=t((e=>e.tenantState)),me=t((e=>_.fetchState==="Completed"?Le(e):[])),g=t((e=>e.expenseAutomationViewState.selectedPeriodByTenantId)),{isFeatureEnabled:fe}=d(c.isApAgingFeatureEnabled),{isFeatureEnabled:be}=d(c.isArAgingFeatureEnabled),P=ia(),{isFeatureEnabled:he}=d(c.isDashboardSidebarHalloweenAnimationEnabled),{isFeatureEnabled:pe}=d(c.isDashboardSidebarThanksGivingAnimationEnabled),{isFeatureEnabled:ge}=d(c.isDashboardSidebarChristmasAnimationEnabled),{isFeatureEnabled:Se}=d(c.isDashboardSidebarNewYearAnimationEnabled),Ee=o.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",ke=t((e=>h(e).totalUnreadCount)),Ce=t((e=>h(e).reducedFetchCountState)),R=t((e=>h(e).notificationDetailsByTab.tasks.uiState.unreadCount)),V=t((e=>h(e).notificationDetailsByTab.comments.uiState.unreadCount)),j=t((e=>h(e).notificationDetailsByTab.tasks.fetchCountState)),I=t((e=>h(e).notificationDetailsByTab.comments.fetchCountState)),{inboxNotifications:L,isLoading:O,isFetchingMore:q,hasFetchedAll:z,fetchMore:Te}=ka();m.useEffect((()=>{const e=setTimeout((()=>Te?.()),0);return()=>clearTimeout(e)})),m.useEffect((()=>{if(O===!1&&q===!1&&z===!0)if(o?.companyId!=null&&L!=null){const e=`dashboard_${o.companyId}`;U(L.filter((u=>u.roomId===e&&u.readAt==null)).length)}else U(0)}),[O,q,z]),m.useEffect((()=>{C&&k&&!f&&j.fetchState==="Not-Started"&&D.tenantId!=null&&r(Oe("task_manager","dashboard"))}),[C,k,f,j.fetchState,D.tenantId,r]),m.useEffect((()=>{f||I.fetchState!=="Not-Started"||r(K({fetchCountState:{fetchState:"In-Progress",error:void 0}},"comments"))}),[f,I.fetchState,r]),m.useEffect((()=>{w!=null&&I.fetchState==="In-Progress"&&(r(K({fetchCountState:{fetchState:"Completed",error:void 0}},"comments")),r(se({unreadCount:w},"comments")))}),[w,I.fetchState]);const Ie={fetchStatus:Ce,count:ke},Z=s!=null?ra.getSignedInUserTenant(s):null,H=t((e=>Z?.tenantId!=null?qe(e,Z.tenantId):void 0)),b=[];fe===!1&&b.push("accounts_payable_aging"),be===!1&&b.push("accounts_receivable_aging"),b.push("zeni_accounts_promo_card","treasury_promo_card"),T===!1&&b.push("rewards_card"),P===!1&&b.push("expense_automation_card");const W=t((e=>ze(e,b).fetchState)),Y=t((e=>Ze(e).fetchState)),ye=v&&(W==="Completed"||W==="Error")||M&&(Y==="Completed"||Y==="Error")||!v&&!M?void 0:"disabled",we=m.useMemo((()=>He(o.userRole)),[o.userRole]),ve=We(we),Ae=o?.rewardsLastViewedTime==null,_e=p?.userEmail!=null&&N.fetchState==="Completed"&&Ye(N.notificationSettings,p.userEmail,x,o,k),X=da(),Fe=X&&ca(a);return B.jsx(Ea,{container:window.document.body,variant:"temporary",open:l,onClose:()=>i(!1),PaperProps:{sx:{width:240,zIndex:8,borderRight:"none",backgroundImage:"none"}},ModalProps:{keepMounted:!0},children:B.jsx(la,{signedInUser:p,currentTenantId:_.currentTenantId??"",tenants:_.fetchState==="Completed"?me:H!=null?[H]:[],currentTenant:o,isTenantDropdownDisabled:ye,isSettings:Q(a),isInvoicing:ma(a)&&ie==="completed",isSettingsFeatureEnabled:ue,isVendorsTabVisible:ve,isZeniAccountEnabled:de,isChargeCardEnabled:le,isTreasuryEnabled:Ee,isNotificationsTabVisible:_e,notificationCountDetails:Ie,isExpenseAutomationEnabledForUser:P,selectedMenu:ua(a),rewardsConfiguration:{isRewardsTabVisible:T,isRewardsAnimated:Ae,rewardsPlan:A.rewardsPlan},isAiCfoAccessEnabled:X,onNotificationIconClick:()=>{i(!1);let e=R===0&&V>0?"notifications/comments":"notifications/tasks";Q(a)&&(e=R===0&&V>0?"../../notifications/comments":"../../notifications/tasks");const u=S(a.state?.pathnameStackToGoBack,a.pathname);n(e,{state:{pathnameStackToGoBack:u}})},handleCockpitClick:()=>{window.open("/cockpit")},handleLogOutClick:()=>{i(!1);const e=S(a.state?.pathnameStackToGoBack,a.pathname);n("/signout",{replace:!0,state:{pathnameStackToGoBack:e,message:"logout"}})},handleMenuChange:e=>{if(i(!1),s==null)return;if(e.type==="invoicing")return void n(`../${s}/invoicing/overview`,{state:{pathnameStackToGoBack:S(a.state?.pathnameStackToGoBack,a.pathname),referrer:"Sidebar"}});if(e.type==="ai_cfo"){if(ee.trackAICFOChatScreenStateChanged("viewed","left_menu",G??null,null),!oe)return void pa({location:a,navigate:n,mergeState:{referrer:"Sidebar"}});const y=S(a.state?.pathnameStackToGoBack,a.pathname);return void n(`/${s}/ai-cfo/explore`,{state:{pathnameStackToGoBack:y,referrer:"Sidebar"}})}const u=S(a.state?.pathnameStackToGoBack,a.pathname),J=e.type,Be=ae(J)&&J!=="command_center";if(ae(e.type)&&g[o.tenantId]!=null&&ee.trackMonthEndCloseClicked(g[o.tenantId].month,g[o.tenantId].year,"Sidebar"),Be&&g[o.tenantId]!=null){const y=g[o.tenantId];return void n(`/${s}/month_end_close_checks/review/${e.type}/${y.month}-${y.year}`,{state:{pathnameStackToGoBack:u,referrer:"Sidebar"}})}const De=ga(e.type);Sa(e.type)?(G!=null&&r(Je()),n(`/${s}/ai-cfo/${e.type}`,{state:{pathnameStackToGoBack:u.slice(0,-1),referrer:"Sidebar"}})):n(`/${s}/${De}`,{state:{pathnameStackToGoBack:u,referrer:"Sidebar"}})},handleMyProfileClick:()=>{i(!1),n(`/${s}/settings/my_profile`)},handleReferralsClick:()=>{i(!1),n(`/${s}/rewards`)},handleBackClick:()=>{n(`/${s}/dashboard`)},handleTenantSelect:e=>{re(fa.TENANT_SWITCHING),i(!1),ba({dispatch:r,navigate:n,pathToNavigate:ha(e.tenantEmailDomain,a),selectedTenant:e,signedInUser:p})},onZeniLogoClick:()=>{E.toggle()},isAiCfo:Fe,aiCfoView:$,isOnDashboard:v,updateCurrentChatSessionId:e=>{r(Xe({sessionId:e,agentId:"controller"})),n(`/${s}/ai-cfo/${e}`,{state:{...a.state}})},halloweenAnimationEnabled:he,isTaskManagerAccessEnabled:k,thanksGivingAnimationEnabled:pe,christmasAnimationEnabled:ge,newYearAnimationEnabled:Se})})})),Da=l=>{const i=te(),s=t((E=>ne(E))),a={events:s.userRoleId!=null?[`private-encrypted-${s.userRoleId}.dashboard-user-notification`]:[],eventCallback:(E,n)=>{Qe(n)&&Me(n.mode)==="dashboard"&&i(se({unreadCount:n.data.unread},"tasks"))}};return B.jsx(Ta,{...l,...a})};export{Da as M};
@@ -1 +0,0 @@
1
- import{j as e}from"./liveblocks-DcDE-V-o.js";import{h as r,l as i}from"./core-D4EC26kf.js";import{ak as n}from"./index-Ch-ATQTq.js";import"./mui-BCH_ILdb.js";import"./sentry-DB4rU-NW.js";import"./zeni-epic-state-Bl3gAQPi.js";import"./recharts-BRIJ8RH5.js";import"./analytics-UPQyZr49.js";import"./plaid-a-pmhWdo.js";import"./dnd-CQ9igkkh.js";import"./stripe-cKAAJElX.js";import"./lottie-DBrmrNFb.js";import"./lexical-DvwBeJWJ.js";import"./pdf-zGCHYG6q.js";import"./utils-CU_Pr3K6.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-DcDE-V-o.js";import ut from"./NotFoundScreen-0hF8kIyY.js";import{a as k}from"./sentry-DB4rU-NW.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-D4EC26kf.js";import{cB as It,Us as Y,fI as z,h5 as Ct,Uw as S,a1s as O,UC as m,Uq as E,AL as F,Gs as Tt,a1t as At,Up as Et,UE as yt,AQ as _t,a1u as $,br as j,gk as x,AU as X,a1v as Nt,cN as Bt,cG as wt}from"./zeni-epic-state-Bl3gAQPi.js";import{ao as xt,c as Ut,W as vt,A as Gt,aq as Dt,dI as Rt,p as B,dJ as Pt,w as Mt,dK as $t,i as jt,a2 as Ft}from"./index-Ch-ATQTq.js";import"./mui-BCH_ILdb.js";import{u as Vt}from"./useAskAiCfoHostNavButtonProps-CBSVhkeG.js";import{u as Lt}from"./useTaskManagerAccess-CX5toJpg.js";import"./recharts-BRIJ8RH5.js";import"./analytics-UPQyZr49.js";import"./plaid-a-pmhWdo.js";import"./dnd-CQ9igkkh.js";import"./stripe-cKAAJElX.js";import"./lottie-DBrmrNFb.js";import"./lexical-DvwBeJWJ.js";import"./pdf-zGCHYG6q.js";import"./utils-CU_Pr3K6.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]="6601915d-09b4-4730-b1b9-b1b807748240",t._sentryDebugIdIdentifier="sentry-dbid-6601915d-09b4-4730-b1b9-b1b807748240")}catch{}})();const Wt=(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)}))})),qt=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&&yt(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:(a,s,d,r)=>{if(r==="task_deleted"){const i=`/${h}/tasks`,C=B(n.state?.pathnameStackToGoBack,n.pathname);f(i,{state:{pathnameStackToGoBack:C,message:"triggerBackClick"}})}else{const i=`/${h}/tasks/${s}`,C=B(n.state?.pathnameStackToGoBack,n.pathname);f(i,{state:{pathnameStackToGoBack:C,message:"triggerBackClick"}})}d==="unread"&&t(X("task_manager","read",[a],!1))},onCommentNotificationClick:(a,s,d)=>{const r=s.toString().split(`/${h}/`);if(r[1]!=null){d==="unread"&&(I(a),t($([a],j())));let i=`/${h}/${r[1]}`;const C=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:C,message:"triggerBackClick"}})}},onUpdateNotificationViewUIState:(a,s)=>{t(E(a,s))},onUpdateNotificationTabState:(a,s)=>{t(m(a,s))},onUpdateNotificationViewCurrentTabAndSubTab:(a,s)=>{t(O(a,s));const d=`../${a}`,r=B(n.state?.pathnameStackToGoBack,n.pathname);f(d,{state:{pathnameStackToGoBack:r}})},onUpdateNotificationViewSubTab:a=>{t(Nt(a))},onFetchMoreNotifications:(a,s)=>{if(a==="tasks"){const d=[];s==="all"?d.push("read","unread"):s!=="mentions"&&d.push(s),t(F("task_manager","dashboard",d))}else v?.()},onUpdateNotificationStatus:(a,s,d,r)=>{a==="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(E({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:a=>{a==="tasks"?t(_t("task_manager","read")):(t(m({markAsAllReadState:{fetchState:"In-Progress",error:void 0}},"comments")),Wt(o,I).then((()=>{t($(o,j())),t(m({markAsAllReadState:{fetchState:"Completed",error:void 0}},"comments")),t(E({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 a=Ft(n.state?.pathnameStackToGoBack),s=a.poppedPathname??"../../dashboard";f(s,{state:{pathnameStackToGoBack:a.newStack}})},onSettingsClick:()=>{const a=B(n.state?.pathnameStackToGoBack,n.pathname);f("../../settings/notifications",{state:{pathnameStackToGoBack:a}})}}}))(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),a=b((e=>Y(e))),s=b((e=>z(e))),{useFeatureGate:d}=vt(),{isFeatureEnabled:r}=d(Gt.isDebitCardFeatureEnabled),{isAiCfoAccessEnabled:i,onAskAiCfoClick:C}=Vt({mobileExploreReferrer:"Notifications"});Dt({isDataReady:!0});const Z=Ct(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((e=>S(e).notificationDetailsByTab.tasks.fetchState)),L=b((e=>S(e).currentTab)),G=b((e=>S(e).currentSubTab)),tt=b((e=>S(e).notificationDetailsByTab.comments.fetchCountState)),D=b((e=>S(e).notificationDetailsByTab.comments.fetchState)),et=b((e=>S(e).notificationDetailsByTab.comments.uiState.unreadCount)),at=b((e=>S(e).allExternalNotifications)).filter((e=>e.inboxNotification.readAt==null)).map((e=>e.inboxNotification.id)),st=Rt().allUsers,{inboxNotifications:w,isLoading:y,hasFetchedAll:T,isFetchingMore:R,fetchMore:ot}=mt(),{threads:W,isLoading:q,fetchMore:Q,isFetchingMore:H,hasFetchedAll:J}=lt({query:{metadata:{companyId:s.companyId,application:"dashboard"}}});k.useEffect((()=>{if(L!==c&&c!=null&&o(O(c)),c==null){const e=`../${L}`,p=B(l.state?.pathnameStackToGoBack,l.pathname);t(e,{state:{pathnameStackToGoBack:p}})}}),[c]),k.useEffect((()=>{tt.fetchState==="Not-Started"&&o(m({fetchCountState:{fetchState:"In-Progress",error:void 0}},"comments"))}),[]),k.useEffect((()=>{if(y===!1&&T===!0&&s?.companyId!=null&&w!=null){const e=`dashboard_${s.companyId}`,p=w.filter((A=>A.roomId===e&&A.readAt==null)).length;o(m({fetchCountState:{fetchState:"Completed",error:void 0}},"comments")),o(E({unreadCount:p},"comments"))}}),[y,T]),k.useEffect((()=>{V!=="In-Progress"&&g&&o(F("task_manager","dashboard",["read","unread"]))}),[g]),k.useEffect((()=>{const e=setTimeout((()=>ot?.()),0);return()=>clearTimeout(e)}));const P=y||R===!0||T!==!0||y||R===!0||T!==!0;k.useEffect((()=>{P&&D!=="In-Progress"?o(m({fetchState:"In-Progress",error:void 0},"comments")):P||D!=="In-Progress"||o(m({fetchState:"Completed",error:void 0},"comments"))}),[P,D]),k.useEffect((()=>{o(E({hasMore:T!==!0},"comments"))}),[T]),k.useEffect((()=>{a.fetchState!=="In-Progress"&&a.fetchState!=="Completed"&&I===!1&&(v(!0),o(Tt()))}),[a.fetchState]),k.useEffect((()=>{if(y===!1&&q===!1&&w!=null&&W!=null){const e=`dashboard_${s.companyId}`,p=w.filter((u=>u.roomId===e)).filter((u=>Pt(u.kind))),A=p.filter((u=>u.readAt==null)),_=p.map((u=>u.id)),ct=p.map((u=>{const M=W.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(E({totalCount:_.length,unreadCount:A.length},"comments")),o(At(ct))}}),[y,R,H,T,J,q,w?.length]);const nt={events:s.userRoleId!=null?[`private-encrypted-${s.userRoleId}.dashboard-user-notification`]:[],eventCallback:(e,p)=>{if(jt(p)){const A=Et(p.mode);if(A==="dashboard"&&o(E({unreadCount:p.data.unread},"tasks")),V!=="In-Progress"){const _=[];G==="all"?_.push("read","unread"):G!=="mentions"&&_.push(G),o(F("task_manager",A,_,!0))}}}},it=ft(),{isTaskManagerAccessEnabled:rt}=Lt(f);return N.jsx(qt,{tenantEmailDomain:n,loggedInUserRoleMap:Z,signedInUser:f,externalNotificationsUnreadCount:et,location:l,navigate:t,isDebitCardFeatureEnabled:r,isTaskManagerAccessEnabled:rt,users:st,markInboxNotificationAsRead:it,allUnreadCommentsNotificationIds:at,isAiCfoAccessEnabled:i,onAskAiCfoClick:C,...nt})};function me(){return N.jsxs(St,{children:[N.jsx(K,{path:"/:selectedTab",element:N.jsx(Qt,{})}),N.jsx(K,{path:"*",element:N.jsx(ut,{})})]})}export{me as default};
@@ -1 +0,0 @@
1
- import{j as m}from"./liveblocks-DcDE-V-o.js";import{a as r}from"./sentry-DB4rU-NW.js";import{u as A,g as j,j as o,N as C}from"./core-D4EC26kf.js";import{V3 as P,fI as V,gp as x,V4 as z,V5 as D,V6 as M,V7 as R,pW as k,TK as L}from"./zeni-epic-state-Bl3gAQPi.js";import{z as h,af as I}from"./index-Ch-ATQTq.js";import"./mui-BCH_ILdb.js";import"./recharts-BRIJ8RH5.js";import"./analytics-UPQyZr49.js";import"./plaid-a-pmhWdo.js";import"./dnd-CQ9igkkh.js";import"./stripe-cKAAJElX.js";import"./lottie-DBrmrNFb.js";import"./lexical-DvwBeJWJ.js";import"./pdf-zGCHYG6q.js";import"./utils-CU_Pr3K6.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new n.Error().stack;a&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[a]="d9a51ca8-2af9-4ae3-95b4-dfedd8f57b66",n._sentryDebugIdIdentifier="sentry-dbid-d9a51ca8-2af9-4ae3-95b4-dfedd8f57b66")}catch{}})();function ee(){const n=A(),a=j(),{params:t,error:i}=r.useMemo((()=>P(a.search)),[a.search]),w=r.useMemo((()=>new URLSearchParams(a.search).get("client_name")??t?.clientId??"Unknown Application"),[a.search,t]),f=h.isSignedIn(),s=h.getSignedInUser(),p=o((e=>V(e))),l=o((e=>x(e))),d=o((e=>e.tenantState.fetchState)),y=o(z),b=o(D),u=o(M),[v,S]=r.useState(null),[E,_]=r.useState(null);r.useEffect((()=>{document.querySelector("#app-shell-loader")?.remove()}),[]),r.useEffect((()=>()=>{n(R())}),[n,a.search]),r.useEffect((()=>{i!=null&&console.warn("[OAuthConsent] invalid params:",i)}),[i]);const g=r.useRef(!1);r.useEffect((()=>{f&&s!=null&&!g.current&&(d!=="Not-Started"&&d!=="Error"||(g.current=!0,n(k(s.userId,s.zeniSessionId??void 0))))}),[f,s,d,n]),r.useEffect((()=>{u!=null&&u!==""&&(window.location.href=u)}),[u]);const U=r.useMemo((()=>{if(p?.tenantId!=null)return p.tenantId;const e=h.getActiveTenantForUser()?.tenantId;return e!=null&&l.some((T=>T.tenantId===e))?e:l.length===1?l[0].tenantId:null}),[p?.tenantId,l]),c=v??U;return i!=null?m.jsx(I,{variant:"invalid_params",paramsError:i}):f?m.jsx(I,{variant:"signed_in",clientName:w,userEmail:s?.userEmail,isInitializing:d!=="Completed",tenants:l,selectedTenantId:c,onSelectTenant:S,approveError:E??b,isApproving:y==="In-Progress",showAllowButton:c!=null,onApprove:()=>{t!=null&&s!=null&&c!=null&&n(L(s.userId,s.zeniSessionId??void 0,c,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:a.pathname+a.search},replace:!0})}export{ee as default};
@@ -1 +0,0 @@
1
- import{j as n}from"./liveblocks-DcDE-V-o.js";import{h as W,u as Y,g as z,i as X,j as d,l as Z,n as H,o as S}from"./core-D4EC26kf.js";import{fI as v,Aw as R,vc as J,VX as w,v7 as T,bq as K,c0 as Q,v8 as ee,VY as ae,VF as C,ek as te,Ek as se,VZ as oe,EI as re,e0 as ne,d$ as ce}from"./zeni-epic-state-Bl3gAQPi.js";import{ag as ie,z as le,ao as de,aq as fe,V as me,a6 as pe,j as M,aB as ue,p as he,W as Fe,A as ge}from"./index-Ch-ATQTq.js";import"./mui-BCH_ILdb.js";import Ie from"./NotFoundScreen-0hF8kIyY.js";import{F as be}from"./FeaturePreviewScreen-B0SxkBd3.js";import{a as F}from"./sentry-DB4rU-NW.js";import{u as Se}from"./useAskAiCfoHostNavButtonProps-CBSVhkeG.js";import{u as Ce}from"./useInitialThreadRequest-Da3K5Ksw.js";import{t as Te}from"./routePaths-D0-Tropc.js";import{M as ye}from"./MobileAppDrawer-C6gfQS8M.js";import"./recharts-BRIJ8RH5.js";import"./analytics-UPQyZr49.js";import"./plaid-a-pmhWdo.js";import"./dnd-CQ9igkkh.js";import"./stripe-cKAAJElX.js";import"./lottie-DBrmrNFb.js";import"./lexical-DvwBeJWJ.js";import"./pdf-zGCHYG6q.js";import"./utils-CU_Pr3K6.js";import"./InboxNotificationsProvider-DPgK9Ai7.js";import"./useTaskManagerAccess-CX5toJpg.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]="5ffc30b6-efa1-46c6-8783-31ccf3313c79",s._sentryDebugIdIdentifier="sentry-dbid-5ffc30b6-efa1-46c6-8783-31ccf3313c79")}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=Z((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),f=he(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(u,{state:{pathnameStackToGoBack:f,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=W(),a=Y(),o=z(),{forecastId:r,tenantEmailDomain:c}=X(),[p,u]=F.useState(!1),[f,A]=F.useState(!1),g=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)),j=t=>x.pandLByForecastID[t]!=null&&ee(t,x).reducedAllFetchState.fetchState==="Completed",{areTenantIdsInSync:I}=de();fe({isDataReady:l});const{isAiCfoAccessEnabled:q,onAskAiCfoClick:B}=Se({mobileExploreReferrer:"Forecast"});F.useEffect((()=>{if(!p&&I)u(!0),l||a(J());else if(l&&!f){A(!0);const t=((m,P,O)=>P!=null?m.forecasts.findIndex((b=>b.id===P)):O!=null?m.forecasts.findIndex((b=>b.id===O)):m.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&&!j(i.forecasts[t].id)&&I&&a(T(i.forecasts[t].id))}}),[p,u,a,l,i,f,A,R,T,I]);const E=me(),_=E?.loggedInUserRole!=null&&K(E.loggedInUserRole),$=Ce(k?.companyId,{clearParams:l&&f}),[N,G]=F.useState(!1),h=new URL(s("forecast_pandl"));h.searchParams.set("firstname",g?.firstName??""),h.searchParams.set("lastname",g?.lastName??""),h.searchParams.set("email",g?.userEmail??"");const L=t=>{G(t)};return n.jsxs(n.Fragment,{children:[l?n.jsx(pe,{analytics:M,onLoad:t=>(m=>m.trackForecast())(t)}):null,n.jsx(ye,{isAppContentDrawerOpen:N,handleDrawerToggle:L}),n.jsx(Ae,{firstMonthOfFY:V,tenantEmailDomain:c,forecastIdFromUrlPath:r,navigate:e,location:o,isPandLReportFetched:j,meetingUrl:Q(h.toString()),hasTransactionAccess:_,isAiCfoAccessEnabled:q,onAskAiCfoClick:B,initialOpenThreadRequest:$,onClickMenuIcon:()=>{L(!0)}})]})}function Xe(){const s=d((c=>v(c))),{useFeatureGate:e}=Fe(),{isFeatureEnabled:a}=e(ge.isDebitCardFeatureEnabled),o=ne(a,s),r=ce(s);return o===!0||r===!0?n.jsx(be,{}):n.jsxs(H,{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 s}from"./liveblocks-DcDE-V-o.js";import E from"./NotFoundScreen-0hF8kIyY.js";import{a as r}from"./sentry-DB4rU-NW.js";import{h as _,g as v,j as p,i as M,u as P,N as U,l as z,n as O,o as h}from"./core-D4EC26kf.js";import{fI as B,a1w as b,bo as F,bn as N,iP as V,gk as q}from"./zeni-epic-state-Bl3gAQPi.js";import{e as L,z as I,aq as $,dL as G}from"./index-Ch-ATQTq.js";import"./mui-BCH_ILdb.js";import{u as H}from"./useAskAiCfoHostNavButtonProps-CBSVhkeG.js";import{M as J}from"./MobileAppDrawer-C6gfQS8M.js";import"./recharts-BRIJ8RH5.js";import"./analytics-UPQyZr49.js";import"./plaid-a-pmhWdo.js";import"./dnd-CQ9igkkh.js";import"./stripe-cKAAJElX.js";import"./lottie-DBrmrNFb.js";import"./lexical-DvwBeJWJ.js";import"./pdf-zGCHYG6q.js";import"./utils-CU_Pr3K6.js";import"./InboxNotificationsProvider-DPgK9Ai7.js";import"./useTaskManagerAccess-CX5toJpg.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]="d7883fc5-3676-4540-a4fc-afb4dfe484e4",e._sentryDebugIdIdentifier="sentry-dbid-d7883fc5-3676-4540-a4fc-afb4dfe484e4")}catch{}})();const K=z((function(e){const t=I.getSignedInUser(),c=e.tenantState.currentTenantId,o={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:c??""},{aggregatedReportViewState:n}=b(e);return{authParams:o,isDisabled:!1,loggedInUser:t,aggregatedReport:n}}),(function(e,t){return{onBackClick:()=>{t.navigate("../../")},onClickMenuIcon:()=>{t.handleDrawerToggle(!0)}}}))(G),Q=()=>{const e=_(),t=v(),c=L(),o=p((a=>B(a))),{aggregatedReportViewState:n}=p((a=>b(a))),{tenantEmailDomain:m}=M(),u=P(),l=I.getSignedInUser();if(l==null)throw new Error("Can't access this page without signing in...");const f=r.useRef(!1),[w,S]=r.useState(!1),C=F(o?.userRole??[]),k=o?.userRole?.includes("bookkeeping_admin")??!1,x=N(l),y=C||k||x,d=r.useCallback(((a,i,T)=>{u(V({fromMonth:a,toMonth:i,cacheOverride:T}))}),[]);r.useEffect((()=>{n?.fetchState==="Completed"&&f.current&&(u(q({messageSection:"data_refresh_update",messageText:"success",type:"success",showStatusIcon:!0})),f.current=!1)}),[n?.fetchState]);const D=r.useCallback(((a,i)=>{n!=null&&n?.fetchState==="In-Progress"||d(a,i,!0),f.current=!0}),[n?.fetchState,d]),j=r.useCallback(((a,i)=>{d(a,i,!1)}),[d]),g=a=>{S(a)},{isAiCfoAccessEnabled:R,onAskAiCfoClick:A}=H({mobileExploreReferrer:"Performance"});return $({isDataReady:n?.fetchState==="Completed"}),y?s.jsxs(s.Fragment,{children:[s.jsx(J,{isAppContentDrawerOpen:w,handleDrawerToggle:g}),s.jsx(K,{navigate:e,location:t,themeState:c,currentTenant:o,signedInUser:l,tenantEmailDomain:m,onReload:D,onTimeRangeSelect:j,handleDrawerToggle:g,isAiCfoAccessEnabled:R,onAskAiCfoClick:A})]}):s.jsx(U,{to:`/${m}/dashboard`,replace:!0})};function he(){return s.jsxs(O,{children:[s.jsx(h,{path:"*",element:s.jsx(Q,{})}),s.jsx(h,{path:"*",element:s.jsx(E,{})})]})}export{he as default};
@@ -1 +0,0 @@
1
- import{j as f}from"./liveblocks-DcDE-V-o.js";import{a as u,R as b,t as A}from"./sentry-DB4rU-NW.js";import{u as z,h as D,j as l,g as M,N as O,l as j}from"./core-D4EC26kf.js";import{u as P,z as s,j as E,G as F,M as N,N as _,O as B,R,S as V,T as v}from"./index-Ch-ATQTq.js";import{fI as $,Uo as J,UI as Q,gl as W,gn as Y,UN as G,gY as H,dk as q,UO as y,UP as K,UQ as X,c0 as U}from"./zeni-epic-state-Bl3gAQPi.js";import{u as Z}from"./mui-BCH_ILdb.js";import{u as ee}from"./useDeviceId-Dy35NfBh.js";import{f as te}from"./analyticsHelper-nRPDDcpi.js";import{t as ne}from"./getLocaleForTenant-B07LkoV2.js";import"./recharts-BRIJ8RH5.js";import"./analytics-UPQyZr49.js";import"./plaid-a-pmhWdo.js";import"./dnd-CQ9igkkh.js";import"./stripe-cKAAJElX.js";import"./lottie-DBrmrNFb.js";import"./lexical-DvwBeJWJ.js";import"./pdf-zGCHYG6q.js";import"./utils-CU_Pr3K6.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new t.Error().stack;i&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[i]="6acfd147-0442-42e0-a0c2-4ff96529daf8",t._sentryDebugIdIdentifier="sentry-dbid-6acfd147-0442-42e0-a0c2-4ff96529daf8")}catch{}})();const ie=j((function(t,i){const d=t.tenantState.fetchState,g=t.tenantState.sendEmailMagicLinkFetchState,{magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:c}=i;return{googleClientId:v.googleClientId,microsoftClientId:v.microsoftClientId,signInError:t.tenantState.error?.error,fetchState:d,sendMagicLinkStatus:g,magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:c}}),(function(t,i){const{location:d,navigate:g}=i;return console.warn(JSON.stringify(window.location)),{onOAuthError:(n,a)=>{A({message:`OAuth error from provider ${a} with error ${n}`,level:"error",tags:{authProvider:a,errorType:"zeni.login.error"},extra:{error:n,windowLocation:window.location.href}})},onOAuthSuccess:(n,a)=>{const c=a==="google"?window.location.origin:window.location.origin+window.location.pathname;t(X({authCode:n,oauthProvider:a,appType:"web",redirectUri:U(c),sourceUri:U(d.state!=null?d.state.origin:"")}))},getSignedInUser:()=>s.getSignedInUser(),onSignedInCallback:()=>{const n=d.state?.origin;n&&n!=="/"?g(n,{replace:!0}):window.open(window.location.origin,"_self")},sendMagicLink:n=>{const{deviceId:a}=i;a!=null&&(s.saveMagicLinkEmail(n),t(K(n,a)))},clearSignInError:()=>{t(y())}}}))(V),ae=b.memo(ie);function ve({setTenantEmailDomain:t}){const i=z(),d=D(),{clearAllLoading:g}=P(),n=s.getSignedInUser();u.useLayoutEffect((()=>{g()}),[g]);const a=ee(),c=l((e=>e.tenantState.magicLinkCodeVerifier)),{sendEmailMagicLinkFetchState:k,accountLocked:C,accountUnlockTime:L}=l((e=>e.tenantState)),p=l((e=>e.tenantState.fetchState)),h=l((e=>e.tenantState.activeTenantFetchState.fetchState)),S=l((e=>e.tenantState.signInState)),o=l((e=>e.tenantState.loggedInUser)),r=l((e=>$(e))),I=l((e=>J(e))),m=M(),w=Z().mode,x=m.state?.magicLinkExpired,T=m.state?.magicLinkAlreadyUsed;if(u.useEffect((()=>{k.fetchState==="Completed"&&c!=null&&(E.trackSignInLinkSent(),s.saveMagicLinkCodeVerifier(c))}),[k.fetchState,c]),u.useEffect((()=>{t(void 0)}),[]),u.useEffect((()=>{S!=="In-Progress"||p!=="Completed"&&h!=="Completed"||o?.zeniSessionId==null||r==null||(s.savePayNowInfoTooltip(!0,o.zeniSessionId),s.saveSignedInUserWithSession(o,o.zeniSessionId),s.saveSignedInUserTenants(Q(I.tenantsInOrder),o.zeniSessionId),W(o.userId,o.zeniSessionId,r.tenantId),i(Y(r.tenantId)),s.saveActiveTenantDomainForUser(r.tenantEmailDomain),i(G("Completed")),F.updateAppLocaleID(ne(r)),te(o,r,w,void 0,I.tenantsInOrder),H().then((()=>{const e=R();e!=null&&N(e)})),setTimeout((()=>{E.trackLogin(_.Event.loginSuccess,o.authProvider??"google",q(r.productSettings))}),2e3))}),[S,p,h,o,r,I,w,m.state,i]),S==="In-Progress"&&p==="Completed"&&o?.zeniSessionId!=null&&r!=null||n!=null){const e=m.state?.origin??"/";return f.jsx(O,{to:e,state:{...m.state,origin:""}})}return f.jsxs(f.Fragment,{children:[f.jsx(ae,{magicLinkExpired:!!x,magicLinkAlreadyUsed:!!T,magicLinkExpiredEmail:s.getMagicLinkEmail()??void 0,location:m,navigate:d,deviceId:a??void 0,showEmailLogin:!0}),C===!0&&L!=null?f.jsx(B,{onClose:()=>i(y()),unlockDate:L}):null]})}export{ve as default};
@@ -1,9 +0,0 @@
1
- import{j as s}from"./liveblocks-DcDE-V-o.js";import{a as i}from"./sentry-DB4rU-NW.js";import{u as d,g as f,N as u}from"./core-D4EC26kf.js";import{z as n,j as a,N as m,a5 as p}from"./index-Ch-ATQTq.js";import{g$ as g,V2 as b}from"./zeni-epic-state-Bl3gAQPi.js";import{n as y}from"./mui-BCH_ILdb.js";import"./recharts-BRIJ8RH5.js";import"./analytics-UPQyZr49.js";import"./plaid-a-pmhWdo.js";import"./dnd-CQ9igkkh.js";import"./stripe-cKAAJElX.js";import"./lottie-DBrmrNFb.js";import"./lexical-DvwBeJWJ.js";import"./pdf-zGCHYG6q.js";import"./utils-CU_Pr3K6.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]="68b05c2d-37e0-4b33-801a-b5802071ae3b",e._sentryDebugIdIdentifier="sentry-dbid-68b05c2d-37e0-4b33-801a-b5802071ae3b")}catch{}})();function L(){const e=d(),t=f(),r=i.useRef(!1),l=n.isSignedIn(),o=t.state?.message==="logout"||l;return i.useEffect((()=>{if(o&&!r.current){r.current=!0;try{e(g()),b(),a.trackLogout(m.Event.logoutSuccess),a.resetUserIdentity(),n.clearAll()}catch(c){console.error("Error during sign out:",c)}finally{window.location.replace("/signin/auth")}}}),[o,e]),o?s.jsx(h,{children:s.jsx(p,{fetchState:"In-Progress"})}):s.jsx(u,{to:"../",replace:!0})}const h=y.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-DcDE-V-o.js";import{a as u}from"./sentry-DB4rU-NW.js";import{u as H,k as J,j as G,h as ma,g as Sa,i as ya,l as Da}from"./core-D4EC26kf.js";import{z as M,W as Ea,A as I,aq as ba,a6 as ha,j as Ga,N as Ca,e3 as Aa,p as F,a2 as Ia}from"./index-Ch-ATQTq.js";import{Qz as Ra,Rn as va,fI as Ba,a2E as na,gQ as Z,a2F as ra,a2z as La,QR as X,a2G as Ka,R3 as Y,QB as wa,Qd as Ua,Rz as aa,a2H as ea,gk as Pa,Rq as Fa,Rv as ja,Ri as xa,Rg as ta,Rw as Na,Rd as $a,a2I as Oa,a2J as za,a2K as Qa,a2L as Ma,a2M as R,dy as Za,dx as qa,a2N as Va,Qy as Wa}from"./zeni-epic-state-Bl3gAQPi.js";import{n as Ha}from"./mui-BCH_ILdb.js";import{u as Ja}from"./useAskAiCfoHostNavButtonProps-CBSVhkeG.js";import{M as Xa}from"./MobileAppDrawer-C6gfQS8M.js";import{u as Ya}from"./useTaskManagerPusherEvents-BiZinOaM.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]="401a5aea-1046-4cac-b6ae-5a1b16dd2ef4",a._sentryDebugIdIdentifier="sentry-dbid-401a5aea-1046-4cac-b6ae-5a1b16dd2ef4")}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"},ae=(a,t)=>a==null||a===""?[]:t.map((n=>`private-encrypted-${a}.${n}`)),ee=(a,t)=>a==null||a===""?[]:t.map((n=>`private-encrypted-${a}.${n}`)),j=a=>Array.isArray(a)&&a.every((t=>typeof t=="string")),oa=a=>typeof a.task_id=="string"?a.task_id:typeof a.id=="string"?a.id:null,ge=a=>{if(a==null||typeof a!="object")return null;const t=a,n=oa(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},te=a=>{if(a==null||typeof a!="object")return null;const t=a;return j(t.task_ids)?{task_ids:t.task_ids}:null},_e=a=>{if(a==null||typeof a!="object")return null;const t=a;return typeof t.task_id!="string"?null:{task_id:t.task_id}},se=Ha.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: ${a=>a.theme.colors.grey4};
9
- `,ne=Da((function(a,t){const n=na(a,t.isTaskTemplatesEnabled),{taskGroupId:c}=t,p=c!=null&&c!==""?{...n,taskGroupsWithTasksList:n.taskGroupsWithTasksList.map((e=>({...e,tasks:e.tasks.filter((s=>s.taskGroupIds.includes(c)))}))).filter((e=>e.tasks.length>0))}:n,y=La(a),f=M.isZeniUser(),v=a.taskDetailState?.subTaskCreateStatus?.fetchState;return{taskListView:p,tagListView:y,localData:p.localData,isTaskTemplatesEnabled:t.isTaskTemplatesEnabled,isZeniUser:f,subTaskCreateStatus:v}}),(function(a,t){const{navigate:n,currentTenant:c,location:p,isTaskTemplatesEnabled:y}=t,{tenantEmailDomain:f}=c,{groupByKey:v}=t.uiState;return{onTaskManagementRowClick:e=>{const s=sa(f,e),D=F(p.state?.pathnameStackToGoBack,p.pathname);n(s,{state:{pathnameStackToGoBack:D}})},onReloadTasks:()=>{a(Z(!0,y))},onTabChange:e=>{a(Ma(e))},onParentTaskClick:e=>{const s=sa(f,e);window.open(s,"_blank","noopener")},bulkUpdateTasks:(e,s)=>{a(ta(e,null,s))},onNewTaskClick:()=>{if(t.localData.defaultTaskGroupId!=null){const e=Q(f,t.localData.defaultTaskGroupId),s=F(p.state?.pathnameStackToGoBack,p.pathname);n(e,{state:{pathnameStackToGoBack:s,message:"comingFromTaskListPage"}})}},onColumnSortConfigChanged:(e,s)=>{a(ea({uiState:{sortKey:e,sortOrder:s}}))},onFiltersChange:e=>{a(Qa({filters:e}))},onSearchTextChanged:e=>{a(za({searchText:e}))},onReloadCards:()=>{a(Z(!0,y))},onBackClick:()=>{if(p.state?.message==="triggerBackClick"){const e=Ia(p.state?.pathnameStackToGoBack),s=e.poppedPathname??"../";n(s,{state:{pathnameStackToGoBack:e.newStack}})}else n("../")},updateLocalData:e=>{a(Oa({localData:e}))},resetLocalData:()=>{a(ra({taskGroupById:t.taskGroupState.taskGroupById}))},handleCreateGroup:e=>{a($a(t.localData.newTaskGroupName,e))},assignGroupToTasks:e=>{a(ta(t.localData.selectedTaskIds,e,Na(t.uiState.groupByKey,e)))},onDeleteTaskGroup:e=>{a(xa(e))},onAddNewTaskToTaskGroup:e=>{if(t.localData.defaultTaskGroupId!=null){const s=oe(v,e);a(X({taskDetailLocalData:s}));const D=Q(f,t.uiState.groupByKey==="groupName"?e:t.localData.defaultTaskGroupId),x=F(p.state?.pathnameStackToGoBack,p.pathname);n(D,{state:{pathnameStackToGoBack:x,message:"comingFromTaskListPage"}})}},onDragNDrop:(e,s)=>{a(ja(t.localData.selectedTaskIds.length>0?t.localData.selectedTaskIds:[e],s))},onTaskGroupRename:(e,s)=>{a(Fa(e,s))},onTimeSpentUpdate:(e,s)=>{a(aa({task:e,updates:s}))},onShowToast:e=>{a(Pa(e))},onGroupByFilterChange:e=>{a(ea({uiState:{groupByKey:e}}))},updateTask:(e,s)=>{a(aa({task:e,updates:s}))},onCreateTagClick:(e,s)=>{a(Ua(e,s))},onSubtaskCreation:(e,s)=>{a(wa({...s,parentTaskId:e}))},handleGroupTemplateClick:e=>{a(Y(e,[]))},handleGroupTemplateTaskClick:(e,s)=>{a(Y(e,[s]))},handleNewTaskInitialization:e=>{if(a(X({taskDetailLocalData:{...Ka,name:e}})),t.localData.defaultTaskGroupId!=null){const s=Q(f,t.localData.defaultTaskGroupId),D=F(p.state?.pathnameStackToGoBack,p.pathname);n(s,{state:{pathnameStackToGoBack:D,message:"comingFromTaskListPage"}})}},onTaskGroupNameClick:e=>{n(`/${f}/tasks/group/${e}`)},onQuickResponsesClick:()=>{n(`/${f}/tasks/quick-responses`)}}}))(Aa);function re(){const a=ma(),t=H(),n=Sa(),c=M.getSignedInUser(),p=M.isZeniUser(),y=J(),f=G((d=>Ba(d))),{taskGroupId:v}=ya(),{useFeatureGate:e}=Ea(),{isFeatureEnabled:s}=e(I.isTaskTemplatesEnabled),{isFeatureEnabled:D}=e(I.isTaskCannedResponsesEnabled),{isFeatureEnabled:x}=e(I.isTaskCategorizationEnabled),{isFeatureEnabled:ia}=e(I.isTaskBulkResolutionEnabled),{isFeatureEnabled:la}=e(I.isTaskGroupAssigneesEnabled),{isFeatureEnabled:ua}=e(I.isTaskRecurringParentEnabled),[ca,da]=u.useState(!1),N=G((d=>na(d,s))),$=G((d=>d.taskGroupState)),B=N.fetchState,{isAiCfoAccessEnabled:ka,onAskAiCfoClick:pa}=Ja({mobileExploreReferrer:"Task Checklist"});ba({isDataReady:B==="Completed"});const{markBoardFetchInFlight:q,requestTaskRefetch:O}=(function(d){const m=H(),r=J(),T=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(Ra())}),[m,K]),E=u.useCallback((()=>{g.current=r.getState().taskGroupState.taskGroupById,k.current=!0,m(va())}),[m,r]),b=u.useCallback((()=>{T.current=!1,l.current!=null&&(clearTimeout(l.current),l.current=void 0),w(),k.current||r.getState().taskGroupViewState.fetchState==="In-Progress"?o.current=!0:E()}),[w,E,r]),z=u.useCallback((()=>{S.current?(T.current=!0,l.current==null&&(l.current=setTimeout((()=>{l.current=void 0,T.current&&r.getState().taskListState.fetchState!=="In-Progress"&&(S.current=!1,b())}),6e3))):b()}),[b,r]);u.useEffect((()=>{l.current!=null&&(clearTimeout(l.current),l.current=void 0),T.current=!1,o.current=!1,k.current=!1}),[d]);const h=G((i=>i.taskListState.fetchState)),C=G((i=>i.taskGroupViewState.fetchState)),U=G((i=>i.taskListState.byTab.live)),P=G((i=>i.taskGroupState.taskGroupById));return u.useEffect((()=>{h!=="In-Progress"&&(!S.current||U!==L.current||h==="Error")&&(S.current=!1,T.current&&(h!=="Completed"?h==="Error"&&(T.current=!1,l.current!=null&&(clearTimeout(l.current),l.current=void 0)):b()))}),[h,U,b]),u.useEffect((()=>{C!=="In-Progress"&&(!k.current||P!==g.current||C==="Error")&&(k.current=!1,o.current&&(o.current=!1,C!=="Error"&&E()))}),[C,P,E]),u.useEffect((()=>()=>{l.current!=null&&(clearTimeout(l.current),l.current=void 0)}),[]),{markBoardFetchInFlight:K,requestTaskRefetch:z}})(f?.tenantId);u.useEffect((()=>{y.getState().taskListState.hasValidState()||q(),t(Z(!1,s))}),[f?.tenantId,t,s,q,y]);const fa=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[...ae(f?.companyId,d),...ee(c?.userId,m)]}),[f?.companyId,c?.userId]);if(Ya({events:fa,onEvent:(d,m)=>{switch(d){case _.TASK_CREATED:case _.TASK_UPDATED:{const r=(T=>{if(T==null||typeof T!="object")return null;const o=T,k=oa(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 T=y.getState(),o=r.task_id,k=o!=null?T.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(T.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??[],E=r.task_group_ids??[],b=w.length!==E.length||!w.every((i=>E.includes(i))),z=(i,Ta)=>{const V=i??[],W=Ta??[];if(V.length!==W.length)return!1;const ga=new Set(W);return V.every((_a=>ga.has(_a)))},h=r.name==null||r.name===k.name,C=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&&b&&h&&C&&U&&P)return}}return void O()}case _.TASKS_BULK_DELETED:{const r=te(m);return r==null?void 0:void r.task_ids.forEach((T=>t(Wa(T))))}case _.TASKS_BULK_UPDATED:case _.TASK_SNOOZE_RESURFACED:return void O()}},onSubscribed:()=>{O()}}),u.useEffect((()=>{B==="Completed"&&t(ra({taskGroupById:$.taskGroupById}))}),[B,$.taskGroupById]),c==null)throw Error("Can't access task list page without signing in...");return A.jsxs(A.Fragment,{children:[B==="Completed"?A.jsx(ha,{analytics:Ga,onLoad:d=>(m=>m.trackPageLoaded(Ca.Event.taskListPage))(d)}):null,A.jsxs(se,{children:[A.jsx(Xa,{isAppContentDrawerOpen:ca,handleDrawerToggle:d=>{da(d)}}),A.jsx(ne,{location:n,navigate:a,currentTenant:f,taskGroupId:v,taskGroupState:$,localData:N.localData,uiState:N.uiState,isTaskTemplatesEnabled:s,taskListFetchState:B,isTaskCategorizationEnabled:x,isTaskCannedResponsesEnabled:D,isTaskBulkResolutionEnabled:ia,isTaskGroupAssigneesEnabled:la,isTaskRecurringParentEnabled:ua,isAiCfoAccessEnabled:ka,onAskAiCfoClick:pa})]})]})}const sa=(a,t)=>`/${a}/tasks/${encodeURIComponent(t)}`,Q=(a,t)=>`/${a}/tasks/new/${t}`,oe=(a,t)=>{if(a==="assignee"){const n=t.split(",");return{...R.taskDetailLocalData,assignee:n}}if(a==="priority"){const n=Za(t);return{...R.taskDetailLocalData,priority:n}}if(a==="status"){const n=qa(t);return{...R.taskDetailLocalData,status:n}}if(a==="tag"){const n=t.split(",");return{...R.taskDetailLocalData,tagIds:n}}if(a==="dueDate"){const n=Va(t);return{...R.taskDetailLocalData,dueDate:n}}return{...R.taskDetailLocalData}},me=Object.freeze(Object.defineProperty({__proto__:null,default:re},Symbol.toStringTag,{value:"Module"}));export{_ as T,ee as a,ae as b,_e as c,te as d,re as e,me as f,ge as t};
@@ -1,9 +0,0 @@
1
- import{j as r}from"./liveblocks-DcDE-V-o.js";import fe from"./NotFoundScreen-0hF8kIyY.js";import{a as u}from"./sentry-DB4rU-NW.js";import{h as ee,u as ae,j as g,g as ge,i as he,N as Ee,l as De,n as Ie,o as h}from"./core-D4EC26kf.js";import{Qq as se,Qt as be,Qn as Ce,a2y as _e,fI as te,a2z as ne,QU as D,QH as E,Qk as ye,Rn as Ae,Rg as Re,a2A as oe,gk as ie,a2B as H,a2C as Ge,Qg as Ue,Qd as ve,v2 as Be,uS as we,mD as xe,QF as je,a2D as Pe,Rz as Fe,QB as Le,R2 as Ke,Q$ as Qe,Qw as $e,QY as Ne,QR as ze}from"./zeni-epic-state-Bl3gAQPi.js";import{z as I,e1 as Ze,e as Oe,W as Ve,A as y,a2 as re,p as A,a6 as qe,j as J,N as Me,e2 as Ye,T as W,ac as He}from"./index-Ch-ATQTq.js";import{n as Je}from"./mui-BCH_ILdb.js";import{u as We}from"./useInitialThreadRequest-Da3K5Ksw.js";import{M as Xe}from"./MobileAppDrawer-C6gfQS8M.js";import{T as m,t as ea,b as aa,a as sa,c as ta,d as X,e as na}from"./TaskListScreen-DI37lN7R.js";import{u as oa}from"./useTaskManagerPusherEvents-BiZinOaM.js";import"./recharts-BRIJ8RH5.js";import"./analytics-UPQyZr49.js";import"./plaid-a-pmhWdo.js";import"./dnd-CQ9igkkh.js";import"./stripe-cKAAJElX.js";import"./lottie-DBrmrNFb.js";import"./lexical-DvwBeJWJ.js";import"./pdf-zGCHYG6q.js";import"./utils-CU_Pr3K6.js";import"./InboxNotificationsProvider-DPgK9Ai7.js";import"./useTaskManagerAccess-CX5toJpg.js";import"./useAskAiCfoHostNavButtonProps-CBSVhkeG.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]="2a9a63e5-deee-432f-8e32-690498f80304",e._sentryDebugIdIdentifier="sentry-dbid-2a9a63e5-deee-432f-8e32-690498f80304")}catch{}})();function ia(){const e=ee(),a=ae(),n=I.getSignedInUser(),{cannedResponses:c,fetchState:t,saveFetchState:l}=g((i=>i.cannedResponsesState)),d=u.useCallback((()=>{a(se())}),[a]),S=u.useCallback(((i,b,C)=>{a(be({name:i,content:b,cannedResponseId:C}))}),[a]),s=u.useCallback((i=>{a(Ce({cannedResponseId:i}))}),[a]);if(n==null)throw Error("Can't access quick responses page without signing in...");return r.jsx(Ze,{cannedResponses:c,isLoading:t==="In-Progress"||t==="Not-Started",isSaving:l==="In-Progress",onBackClick:()=>e(-1),onDelete:s,onFetch:d,onSave:S})}const K=e=>e?.taskState?.taskByID,F=(e,a)=>{const n=K(e);if(a!=null&&n!=null)return n[a]?.parentTaskId??void 0},ra=_e([F,(e,a)=>{const n=F(e,a),c=K(e);if(n!=null&&c!=null)return c[n]?.name},(e,a)=>{const n=F(e,a),c=K(e);return n!=null&&c!=null&&c[n]!=null}],((e,a,n)=>{if(e!=null&&n===!0)return{id:e,name:a??""}})),ca=De((function(e,a){const{location:n,taskGroupId:c}=a,t=oe(e,a.taskId),l=te(e),d=ra(e,a.taskId),S=t.taskGroupId??c,s=S!=null?H(e.taskGroupState,S):void 0,i=I.getSignedInUser(),b=l.tenantId,C={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:b??""},v=ne(e),{tenantEmailDomain:B}=l,R=t.recurringSourceTaskId,w=R!=null?`${W.appUrl}/${B}/tasks/${encodeURIComponent(R)}`:void 0;return{taskDetailSelectorView:t,authParams:C,isZeniUser:I.isZeniUser(),userGroupList:Ge(e),isNewClicked:n.state?.message==="comingFromTaskListPage",filesEndPoint:He.fileMicroServiceBaseUrl,companyName:a.currentTenant.companyName,companyId:a.currentTenant.companyId,currentUrl:`${W.appUrl}${a.location.pathname}`,cannedResponses:e.cannedResponsesState.cannedResponses,isCannedResponsesLoading:e.cannedResponsesState.fetchState==="In-Progress",recurringSourceTaskUrl:w,tagListView:v,taskGroupName:S!=null&&s!=null&&s.isDefault===!1?s.name:void 0,taskGroupList:e.taskGroupViewState.taskGroupsIds.map((T=>H(e.taskGroupState,T))).filter((T=>T!=null&&!T.isDeleted)).map((T=>({id:T.id,name:T.name,isDefault:T.isDefault}))),subtasks:t.subtasks,parentTaskRef:d,subTaskCreateStatus:e.taskDetailState?.subTaskCreateStatus?.fetchState}}),(function(e,a){const{taskId:n,navigate:c,currentTenant:t,location:l,taskGroupId:d}=a,{tenantEmailDomain:S}=t;return{onSaveChangesToLocalStore:s=>{e(ze({taskDetailLocalData:s,taskId:n}))},onSaveDetailClick:s=>{e(Ne(n,s??d))},onArchiveTaskClick:()=>{a.taskId!=null&&e($e(a.taskId))},onSnoozeTask:(s,i)=>{e(Qe(s,i))},onUnsnoozeTask:s=>{e(Ke(s))},onCreateSubtask:(s,i)=>{e(Le({...i,parentTaskId:s}))},onSubtaskUpdate:(s,i)=>{e(Fe({task:s,updates:i}))},onShowToast:s=>{e(ie(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=re(l.state?.pathnameStackToGoBack),i=s.poppedPathname??"../../dashboard";c(i,{state:{pathnameStackToGoBack:s.newStack}})}else{const s=U(S),i=A(l.state?.pathnameStackToGoBack,l.pathname);c(s,{state:{pathnameStackToGoBack:i}})}e(Pe({taskId:n}))},onDeleteTaskClick:()=>{e(je(n))},updateFilesEntity:s=>{e(xe({files:s}))},onDeleteFile:s=>{e(we(s))},onEditFileName:(s,i)=>{e(Be(s,i.split(".")[0]))},onReloadTaskDetailPage:()=>{e(D(!1,n))},onCreateTagClick:s=>{e(ve(s,n))},onDeleteTagClick:s=>{e(Ue(s,n))},onFetchCannedResponses:()=>{e(se())},onManageTemplatesClick:()=>{c(`/${t.tenantEmailDomain}/tasks/quick-responses`)}}}))(Ye);function L(){const e=ee(),a=ae(),n=ge(),c=Oe(),{taskId:t,taskGroupId:l}=he(),d=g((o=>te(o))),S=We(d?.companyId),{useFeatureGate:s}=Ve(),{isFeatureEnabled:i}=s(y.isTaskSnoozeEnabled),{isFeatureEnabled:b}=s(y.isTaskVisibilityEnabled),{isFeatureEnabled:C}=s(y.isTaskCannedResponsesEnabled),{isFeatureEnabled:v}=s(y.isTaskRecurringParentEnabled),{isFeatureEnabled:B}=s(y.isTaskGroupAssigneesEnabled),[R,w]=u.useState(!1),[T,ce]=u.useState(!1),[Q,le]=u.useState(!1),[$,x]=u.useState(!1),_=u.useRef(!1),G=g((o=>o.taskListState.updateTasksFetchState.fetchState)),N=g((o=>ne(o))),z=g((o=>o.taskGroupViewState.fetchState));u.useEffect((()=>{a(D(!1,t)),t!=null&&a(E(t))}),[a,t]);const Z=I.getSignedInUser()?.userId,de=I.isZeniUser(),ke=g((o=>t!=null?o.taskState.taskByID[t]?.syncToken:void 0)),O=()=>{d?.tenantEmailDomain!=null&&e(U(d.tenantEmailDomain))},V=()=>{a(ie({messageSection:"delete_task",messageText:"success",type:"success"})),O()},ue=u.useMemo((()=>{const o=[m.TASK_CREATED,m.TASK_UPDATED,m.TASKS_BULK_UPDATED,m.TASKS_BULK_DELETED],k=[...o,m.TASK_SNOOZE_RESURFACED];return[...aa(d?.companyId,o),...sa(Z,k)]}),[d?.companyId,Z]);oa({events:ue,onSubscribed:()=>{t!=null&&(a(D(!0,t)),a(E(t)))},onEvent:(o,k)=>{if(t!=null)switch(o){case m.TASK_CREATED:case m.TASK_UPDATED:{const p=((P,me,{isZeniUser:Se,storedSyncToken:Te,taskId:Y})=>{if(P!==m.TASK_CREATED&&P!==m.TASK_UPDATED)return"none";const f=ea(me);return f==null?"none":f.parent_task_id===Y?"refreshSubtasks":P!==m.TASK_UPDATED||f.task_id!==Y?"none":f.is_deleted===!0?"leaveDeleted":f.is_private!==!0||Se?f.sync_token!=null&&f.sync_token===Te?"none":"refreshTask":"leaveNoAccess"})(o,k,{isZeniUser:de,storedSyncToken:ke,taskId:t});p==="refreshTask"?(a(D(!0,t)),a(E(t))):p==="refreshSubtasks"?a(E(t)):p==="leaveDeleted"?V():p==="leaveNoAccess"&&O();break}case m.TASKS_BULK_UPDATED:{const p=X(k);if(p==null)break;p.task_ids.includes(t)&&a(D(!0,t)),a(E(t));break}case m.TASKS_BULK_DELETED:{const p=X(k);if(p==null)break;if(p.task_ids.includes(t)){V();break}a(E(t));break}case m.TASK_SNOOZE_RESURFACED:{ta(k)?.task_id===t&&a(D(!0,t));break}}}}),u.useEffect((()=>{T||N.fetchState==="Completed"||(ce(!0),a(ye()))}),[T,a,N.fetchState]),u.useEffect((()=>{Q||z==="Completed"||(le(!0),a(Ae()))}),[Q,a,z]);const pe=u.useCallback((()=>{t!=null&&(_.current=!1,a(Re([t],null,{isArchived:!1})),x(!0))}),[a,t]);u.useEffect((()=>{if($)if(G!=="In-Progress"){if(_.current){if(G==="Error")return x(!1),void(_.current=!1);if(G==="Completed"){x(!1),_.current=!1;const{tenantEmailDomain:o}=d;if(n.state?.message==="triggerBackClick"){const k=re(n.state?.pathnameStackToGoBack);e(k.poppedPathname??"../../dashboard",{state:{pathnameStackToGoBack:k.newStack}})}else{const k=U(o);e(k,{state:{pathnameStackToGoBack:A(n.state?.pathnameStackToGoBack,n.pathname)}})}}}}else _.current=!0}),[$,G,d,n,e]);const q=g((o=>oe(o,t))),j=q.fetchState,M=I.getSignedInUser();if(M==null)throw Error("Can't access task detail page without signing in...");if(j==="Error"&&q.error?.code===400){const{tenantEmailDomain:o}=d,k=U(o),p=A(n.state?.pathnameStackToGoBack,n.pathname);return r.jsx(Ee,{to:k,state:{pathnameStackToGoBack:p}})}return r.jsxs(r.Fragment,{children:[j==="Completed"?r.jsx(qe,{analytics:J,onLoad:o=>(k=>k.trackPageLoaded(Me.Event.taskDetailPage))(o)}):null,r.jsxs(la,{children:[r.jsx(Xe,{isAppContentDrawerOpen:R,handleDrawerToggle:o=>{w(o)}}),r.jsx(ca,{analytics:J,currentTenant:d,handleZeniLogoClick:()=>{c.toggle()},initialOpenThreadRequest:S,location:n,loggedInUser:M,navigate:e,taskGroupId:l,taskId:t,taskDetailFetchState:j,onUnarchiveTaskClick:pe,isTaskSnoozeEnabled:i,isTaskVisibilityEnabled:b,isTaskCannedResponsesEnabled:C,isTaskRecurringParentEnabled:v,isTaskGroupAssigneesEnabled:B})]})]})}const la=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
- `,U=e=>`/${e}/tasks`;function wa(){return r.jsxs(Ie,{children:[r.jsx(h,{path:"/new",element:r.jsx(L,{})}),r.jsx(h,{path:"/new/:taskGroupId",element:r.jsx(L,{})}),r.jsx(h,{path:"/group/:taskGroupId",element:r.jsx(na,{})}),r.jsx(h,{path:"/quick-responses",element:r.jsx(ia,{})}),r.jsx(h,{path:"/:taskId",element:r.jsx(L,{})}),r.jsx(h,{path:"*",element:r.jsx(fe,{})})]})}export{wa as default};
@@ -1 +0,0 @@
1
- import{j as t}from"./liveblocks-DcDE-V-o.js";import i from"./NotFoundScreen-0hF8kIyY.js";import{T as r}from"./TransactionDetailScreen-BfwmFu4d.js";import"./sentry-DB4rU-NW.js";import{n as a,o as e}from"./core-D4EC26kf.js";import"./zeni-epic-state-Bl3gAQPi.js";import"./recharts-BRIJ8RH5.js";import"./index-Ch-ATQTq.js";import"./mui-BCH_ILdb.js";import"./analytics-UPQyZr49.js";import"./plaid-a-pmhWdo.js";import"./dnd-CQ9igkkh.js";import"./stripe-cKAAJElX.js";import"./lottie-DBrmrNFb.js";import"./lexical-DvwBeJWJ.js";import"./pdf-zGCHYG6q.js";import"./utils-CU_Pr3K6.js";import"./useAskAiCfoHostNavButtonProps-CBSVhkeG.js";import"./decodeURIComponentSafe-CDB32jt8.js";import"./useInitialThreadRequest-Da3K5Ksw.js";import"./routePaths-D0-Tropc.js";import"./expenseAutomationHelper-DLTA8kBq.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-DcDE-V-o.js";import{a as f}from"./sentry-DB4rU-NW.js";import{t as u,u as b,j as h,N as y}from"./core-D4EC26kf.js";import{U$ as I,gl as w,JX as j}from"./zeni-epic-state-Bl3gAQPi.js";import{z as l,a5 as x,ad as S,ae as D}from"./index-Ch-ATQTq.js";import{n as c}from"./mui-BCH_ILdb.js";import"./recharts-BRIJ8RH5.js";import"./analytics-UPQyZr49.js";import"./plaid-a-pmhWdo.js";import"./dnd-CQ9igkkh.js";import"./stripe-cKAAJElX.js";import"./lottie-DBrmrNFb.js";import"./lexical-DvwBeJWJ.js";import"./pdf-zGCHYG6q.js";import"./utils-CU_Pr3K6.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]="7cbf33b4-be19-4cd8-a71b-e9b7d244da8b",e._sentryDebugIdIdentifier="sentry-dbid-7cbf33b4-be19-4cd8-a71b-e9b7d244da8b")}catch{}})();const A=()=>{const[e]=u(),t=e.get("code")??"",s=e.get("state")??"",g=e.get("profileId")??"",[n,p]=f.useState(!1),a=b(),i=h((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(E,{children:o.jsx(_,{children:i.error?.message??""})}):(i.fetchState==="Completed"&&window.close(),o.jsx(x,{fetchState:"In-Progress"}))},E=c.div`
2
- display: flex;
3
- width: 100%;
4
- height: 100vh;
5
- flex-direction: row;
6
- justify-content: center;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey5};
9
- `,_=c(D.LargeRegular)`
10
- display: flex;
11
- color: ${S.important};
12
- `;export{A as default};
@@ -1,9 +0,0 @@
1
- import{j as d}from"./liveblocks-DcDE-V-o.js";import{a as m}from"./sentry-DB4rU-NW.js";import{h as x,u as T,g as $,i as j,j as p}from"./core-D4EC26kf.js";import{TJ as s,TI as v,a06 as B,fI as C,a07 as z}from"./zeni-epic-state-Bl3gAQPi.js";import{$ as D,ac as g,z as E,a5 as L,d3 as P,a2 as N}from"./index-Ch-ATQTq.js";import{u as U,n as _}from"./mui-BCH_ILdb.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]="d8dabf6d-fdec-405b-9e89-00f2cadcc5fd",e._sentryDebugIdIdentifier="sentry-dbid-d8dabf6d-fdec-405b-9e89-00f2cadcc5fd")}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(),i=D(),f=$();let{accountId:a}=j(),l=`${g.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${a}`;a==null&&f.pathname.includes(`${s}/statements`)&&(a=s,l=`${g.bankingMicroServiceBaseUrl}/1.0/${s}`);const[u,y]=m.useState(!1),h=U();m.useEffect((()=>{u||(y(!0),n(v(a??"",!1)))}),[u,n]);const o=p((t=>B(t,a??""))),b=()=>{const t=N(f.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"?d.jsx(L,{fetchState:"In-Progress",style:{backgroundColor:h.colors.grey5}}):d.jsx(G,{windowSize:i,children:d.jsx(P,{currentTenantCompanyName:k,statementListView:o,accountLast4:w,onBackClick:b,authParams:I,downloadEndPoint:l})})}export{F as Z};