@zeniai/web-app-ui 5.3.82-dev → 5.3.83-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 (130) hide show
  1. package/dist/assets/{AccountMappingScreen-C1ayPIAG.js → AccountMappingScreen-BlAlbrnx.js} +1 -1
  2. package/dist/assets/{ActualMatchingMatchDetailScreen-WhvwIzcC.js → ActualMatchingMatchDetailScreen-BJS18VqA.js} +1 -1
  3. package/dist/assets/AddressRoutes-CjGixOCb.js +1 -0
  4. package/dist/assets/AddressScreen-BaUyC6hl.js +9 -0
  5. package/dist/assets/{AiCfoScreen-DFAyr8gH.js → AiCfoScreen-C2aGObgH.js} +1 -1
  6. package/dist/assets/{AppDrawer-DI_vp2xj.js → AppDrawer-B_sqYgfu.js} +1 -1
  7. package/dist/assets/{BillPayApprovalRoutes-DcY6lBge.js → BillPayApprovalRoutes-BdAzyIqn.js} +1 -1
  8. package/dist/assets/{BillPayRoutes-Cfhufn9I.js → BillPayRoutes-zkvSlLIB.js} +18 -18
  9. package/dist/assets/{BusinessVerificationPageScreen-DC4WfK27.js → BusinessVerificationPageScreen-DNhcrJIG.js} +1 -1
  10. package/dist/assets/{CardsAiCfoScreen-B5X7-nvK.js → CardsAiCfoScreen-C6zY5aHa.js} +1 -1
  11. package/dist/assets/{ChargeCardRoutes-DKflGNQM.js → ChargeCardRoutes-CUIv6Ff9.js} +1 -1
  12. package/dist/assets/{CompanyPassportScreen-y7X0MJz8.js → CompanyPassportScreen-2YfwMC3n.js} +1 -1
  13. package/dist/assets/ConnectionAuthScreen-Dbf96wBm.js +11 -0
  14. package/dist/assets/CustomerOnboardingAuthScreen-CsgeY_a3.js +1 -0
  15. package/dist/assets/{CustomerOnboardingRoutes-DOhBde9s.js → CustomerOnboardingRoutes-CmTSBCfZ.js} +1 -1
  16. package/dist/assets/{DashboardRoutes-DUDSVl0J.js → DashboardRoutes-ePaa6RzM.js} +1 -1
  17. package/dist/assets/{DefaultTenantHome-BPmXauyS.js → DefaultTenantHome-GxNyS_7I.js} +1 -1
  18. package/dist/assets/DomesticWireDetailScreen-DGTecQgJ.js +18 -0
  19. package/dist/assets/DrawerScreen-Ac2BNHGU.js +1 -0
  20. package/dist/assets/{EntityDetailRoutes-DWi6isSB.js → EntityDetailRoutes-By8U2MA9.js} +1 -1
  21. package/dist/assets/{ExpenseAutomationRoutes-CWCG6f-Z.js → ExpenseAutomationRoutes-CbAy6bRF.js} +1 -1
  22. package/dist/assets/FeaturePreviewScreen-WONNYPz2.js +1 -0
  23. package/dist/assets/{HubSpotOAuthCallbackScreen-BCD_byli.js → HubSpotOAuthCallbackScreen-CFlvNlLf.js} +1 -1
  24. package/dist/assets/{InboxNotificationsProvider-CnIopK35.js → InboxNotificationsProvider-yQHZ5K7x.js} +1 -1
  25. package/dist/assets/{InvoicingRoutes-By0wmZnY.js → InvoicingRoutes-7QJOc7_T.js} +1 -1
  26. package/dist/assets/{MagicLinkRoutes-CrNQ1d6Y.js → MagicLinkRoutes-BibsnD1q.js} +8 -8
  27. package/dist/assets/MagicLinkSignInScreen-BpOShVw6.js +12 -0
  28. package/dist/assets/{MobileAppDrawer-DeMnqMws.js → MobileAppDrawer-l8XzezC6.js} +1 -1
  29. package/dist/assets/NotFoundScreen-azJwEf6u.js +1 -0
  30. package/dist/assets/{NotificationRoutes-DXwqR_6J.js → NotificationRoutes-C4m7rB7l.js} +1 -1
  31. package/dist/assets/{OAuthConsentScreen-D-7AI34s.js → OAuthConsentScreen-CuXtenPv.js} +1 -1
  32. package/dist/assets/{PandLWithForecastRoutes-DwmnvviI.js → PandLWithForecastRoutes-FHrcpjWT.js} +1 -1
  33. package/dist/assets/{PaymentLinkScreen-sxUNJ-ai.js → PaymentLinkScreen-BSk9RfvR.js} +1 -1
  34. package/dist/assets/PeopleRoutes-BxrX1JFh.js +22 -0
  35. package/dist/assets/{PerformanceRoutes-9mPYusWH.js → PerformanceRoutes-u7jsxKOk.js} +1 -1
  36. package/dist/assets/{Preview-CxGDVP6M.js → Preview-B0DOkYjv.js} +1 -1
  37. package/dist/assets/{QBOConnectionScreen-fOrpVwph.js → QBOConnectionScreen-BSw99hss.js} +1 -1
  38. package/dist/assets/{ReimbursementApprovalRoutes-B13CHT4T.js → ReimbursementApprovalRoutes-Q1SCHF1l.js} +1 -1
  39. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-DyHV9hua.js → ReimbursementApprovalRuleDetailScreen-DILlSzn2.js} +1 -1
  40. package/dist/assets/{ReimbursementRoutes-BIilRUCw.js → ReimbursementRoutes-6xzsoOoQ.js} +6 -6
  41. package/dist/assets/{ReportsRoutes-DGD0Kisc.js → ReportsRoutes-BOEFIFhM.js} +1 -1
  42. package/dist/assets/{RewardsRoutes-DOe7osW-.js → RewardsRoutes-DJDgplhQ.js} +1 -1
  43. package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-mgDC8nA3.js → ScheduleDetailsPrepaidExpensesScreen-5-GevFMn.js} +1 -1
  44. package/dist/assets/ScreenRoutes-C3N1CK9B.js +2 -0
  45. package/dist/assets/{SettingsRoutes-DsKTn4YF.js → SettingsRoutes-DFwRhTG0.js} +6 -6
  46. package/dist/assets/{SetupPagesScreen-1DRsRGaO.js → SetupPagesScreen-Bwcyn81K.js} +5 -5
  47. package/dist/assets/SignInScreen-VNP75F_z.js +1 -0
  48. package/dist/assets/{SignOutScreen-C9nuOKax.js → SignOutScreen-DqT1J3CH.js} +1 -1
  49. package/dist/assets/{TaskListScreen-BvZ3nUhV.js → TaskListScreen-vhycpFEZ.js} +1 -1
  50. package/dist/assets/TaskRoutes-B6-8g-HW.js +9 -0
  51. package/dist/assets/TransactionDetailRoutes-BHcGo7KC.js +1 -0
  52. package/dist/assets/{TransactionDetailScreen-gg_jzjg4.js → TransactionDetailScreen-CuKBIwpF.js} +1 -1
  53. package/dist/assets/{TransactionListRoutes-DXtggfuW.js → TransactionListRoutes-D-MmK7A2.js} +1 -1
  54. package/dist/assets/{TreasuryRoutes-lxwEfAXe.js → TreasuryRoutes-Pqnpfg2v.js} +5 -5
  55. package/dist/assets/{VendorsRoutes-BuuNVNIw.js → VendorsRoutes-CNNCASwJ.js} +7 -7
  56. package/dist/assets/{WiseConfirmationScreen-Bm5Jwnlz.js → WiseConfirmationScreen-Q6839g40.js} +1 -1
  57. package/dist/assets/{ZeniAccountRoutes-DDXr_ULo.js → ZeniAccountRoutes-5EIDUyAv.js} +7 -7
  58. package/dist/assets/ZeniAccountStatementScreen-DEVWrSPx.js +9 -0
  59. package/dist/assets/{accountMappingHelper-DSmoEgXo.js → accountMappingHelper-Cmqzt3o8.js} +1 -1
  60. package/dist/assets/{analytics-ff6bapqe.js → analytics-Dk2G_EzJ.js} +1 -1
  61. package/dist/assets/{analyticsHelper-kcXI5tFD.js → analyticsHelper-D3Z95hnv.js} +1 -1
  62. package/dist/assets/{core-C32E0M-A.js → core-C9JgQJB4.js} +1 -1
  63. package/dist/assets/{decodeURIComponentSafe-C5UecJ4I.js → decodeURIComponentSafe-CYuijBUP.js} +1 -1
  64. package/dist/assets/{dnd-C_Bep5ai.js → dnd-C8GpPG0g.js} +1 -1
  65. package/dist/assets/{empty-DqCrlpnK.js → empty-BHiRckm6.js} +1 -1
  66. package/dist/assets/{empty-DAPHCQXk.js → empty-Bn6LwN65.js} +1 -1
  67. package/dist/assets/{emptyVideoElement-CBVQNEap.js → emptyVideoElement-WwpOn3mw.js} +1 -1
  68. package/dist/assets/epic-D8O9uIgs.js +2 -0
  69. package/dist/assets/{expenseAutomationHelper-DLsy_Ty8.js → expenseAutomationHelper-jtvNac2y.js} +1 -1
  70. package/dist/assets/{getLocaleForTenant-B7DrNxDF.js → getLocaleForTenant-CZcWFJHh.js} +1 -1
  71. package/dist/assets/{index-CfrgrNvU.js → index-B2whCLRz.js} +1 -1
  72. package/dist/assets/{index-BukMmlEq.js → index-B68exopT.js} +2 -2
  73. package/dist/assets/{index-CtLBLCty.js → index-BuFdtVKe.js} +1 -1
  74. package/dist/assets/{index-DCtJNiUy.js → index-BvMe6BwU.js} +11835 -11835
  75. package/dist/assets/{index-B4RhNvku.js → index-CJuvBgOO.js} +1 -1
  76. package/dist/assets/{index-DuYo1zmY.js → index-DF_McIvo.js} +1 -1
  77. package/dist/assets/{index-BcLofI65.js → index-Dv34Umyu.js} +1 -1
  78. package/dist/assets/{index-DIaTP7_M.js → index-e3kLs8y8.js} +1 -1
  79. package/dist/assets/{lexical-Byw8jdWu.js → lexical-DewpM37L.js} +1 -1
  80. package/dist/assets/{liveblocks-CcAJDSgG.js → liveblocks-QExkfWwX.js} +1 -1
  81. package/dist/assets/{lottie-DW03v0-7.js → lottie-C8c0mGol.js} +1 -1
  82. package/dist/assets/{mui-Ba-vLBC4.js → mui-DA_IUYGW.js} +1 -1
  83. package/dist/assets/{pathToGoBack-BbG758cW.js → pathToGoBack-Cad-ghSF.js} +1 -1
  84. package/dist/assets/{pdf-B6gXz38d.js → pdf-CglQcGFZ.js} +3 -3
  85. package/dist/assets/{pdf-lib-DW7wIt2i.js → pdf-lib-C9IVGH9O.js} +1 -1
  86. package/dist/assets/{plaid-CEp7her_.js → plaid-CG0Jj5NR.js} +1 -1
  87. package/dist/assets/{pusher-CeHXXfqs.js → pusher-BgQJzJsV.js} +1 -1
  88. package/dist/assets/{react-BQt0qic3.js → react-7YFwADXn.js} +1 -1
  89. package/dist/assets/{react-CTPAIO5c.js → react-Bsg7Q7CB.js} +1 -1
  90. package/dist/assets/{react-BEdnfLLu.js → react-BuwGlC3C.js} +1 -1
  91. package/dist/assets/{react-DcC_IWpk.js → react-CGoXARef.js} +1 -1
  92. package/dist/assets/{react-MOydQ4XL.js → react-DObiDMcZ.js} +1 -1
  93. package/dist/assets/{react-wmLhO00N.js → react-NcjXVgWJ.js} +1 -1
  94. package/dist/assets/{recharts-g8-bInqc.js → recharts-ikWEYduq.js} +1 -1
  95. package/dist/assets/{routePaths-BGf6E4zO.js → routePaths-CehqSbwZ.js} +1 -1
  96. package/dist/assets/{sentry-Bo3euLoP.js → sentry-oILOkT84.js} +1 -1
  97. package/dist/assets/{stripSplatSuffix-IWd2is7o.js → stripSplatSuffix-DfsbDgo5.js} +1 -1
  98. package/dist/assets/{url-DjGKFjyy.js → url-D33JsTdA.js} +1 -1
  99. package/dist/assets/{url-CzSmdUOo.js → url-DoKU4Zzh.js} +1 -1
  100. package/dist/assets/{useActualMatchingMatchDetail-D8RZjK70.js → useActualMatchingMatchDetail-hr4zSrCe.js} +1 -1
  101. package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-Dc6ROsau.js → useAiCfoDashboardSuggestedQuestionsChips-C5O_5leW.js} +1 -1
  102. package/dist/assets/useAskAiCfoHostNavButtonProps-BCWJ7jlQ.js +1 -0
  103. package/dist/assets/{useChargeCardPusherEvents-mHgU3OkI.js → useChargeCardPusherEvents-C3NE2ZHP.js} +1 -1
  104. package/dist/assets/{useDeviceId-D1tbmD3W.js → useDeviceId-DZAWgg2s.js} +1 -1
  105. package/dist/assets/{useEmailConnectResultRefresh-DICe2M-2.js → useEmailConnectResultRefresh-Bv3uwquX.js} +1 -1
  106. package/dist/assets/{useInitialThreadRequest-DitWfieX.js → useInitialThreadRequest-BCD3tBzH.js} +1 -1
  107. package/dist/assets/{useTaskManagerAccess-DP5KTNvW.js → useTaskManagerAccess-BRPFjPMD.js} +1 -1
  108. package/dist/assets/{useTaskManagerPusherEvents-mQG4ptVc.js → useTaskManagerPusherEvents-6s-T5fU4.js} +1 -1
  109. package/dist/assets/{utils-CY3YGcdR.js → utils-A5fkS8h7.js} +1 -1
  110. package/dist/assets/{withTransactionSidePanel-DIBSJL4n.js → withTransactionSidePanel-C47wmMlX.js} +3 -3
  111. package/dist/assets/{zeni-epic-state-yHa8unrA.js → zeni-epic-state-DLEY0NmH.js} +7 -7
  112. package/dist/index.html +1 -1
  113. package/package.json +3 -3
  114. package/dist/assets/AddressRoutes-y8YhHSJR.js +0 -1
  115. package/dist/assets/AddressScreen-De5NyEzZ.js +0 -9
  116. package/dist/assets/ConnectionAuthScreen-DbBitMLj.js +0 -11
  117. package/dist/assets/CustomerOnboardingAuthScreen-LSIDUzax.js +0 -1
  118. package/dist/assets/DomesticWireDetailScreen-BtVT1jo7.js +0 -18
  119. package/dist/assets/DrawerScreen-DEO6aDXv.js +0 -1
  120. package/dist/assets/FeaturePreviewScreen-Bcz_KiRo.js +0 -1
  121. package/dist/assets/MagicLinkSignInScreen-CVv9wx7_.js +0 -12
  122. package/dist/assets/NotFoundScreen-DiKdubNF.js +0 -1
  123. package/dist/assets/PeopleRoutes-Dpf-nOzf.js +0 -22
  124. package/dist/assets/ScreenRoutes-B6CsF55P.js +0 -2
  125. package/dist/assets/SignInScreen-old3vVaI.js +0 -1
  126. package/dist/assets/TaskRoutes-vQ9Qc0Wt.js +0 -9
  127. package/dist/assets/TransactionDetailRoutes-BnI9Ohm4.js +0 -1
  128. package/dist/assets/ZeniAccountStatementScreen-B61YBb2s.js +0 -9
  129. package/dist/assets/epic-uAZSWoZy.js +0 -2
  130. package/dist/assets/useAskAiCfoHostNavButtonProps-BO9PbO4e.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-DCtJNiUy.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-Bo3euLoP.js"><link rel="modulepreload" crossorigin href="/assets/core-C32E0M-A.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-yHa8unrA.js"><link rel="modulepreload" crossorigin href="/assets/mui-Ba-vLBC4.js"><link rel="modulepreload" crossorigin href="/assets/analytics-ff6bapqe.js"><link rel="modulepreload" crossorigin href="/assets/utils-CY3YGcdR.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-BvMe6BwU.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-oILOkT84.js"><link rel="modulepreload" crossorigin href="/assets/core-C9JgQJB4.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-DLEY0NmH.js"><link rel="modulepreload" crossorigin href="/assets/mui-DA_IUYGW.js"><link rel="modulepreload" crossorigin href="/assets/analytics-Dk2G_EzJ.js"><link rel="modulepreload" crossorigin href="/assets/utils-A5fkS8h7.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.82-dev",
3
+ "version": "5.3.83-dev",
4
4
  "files": [
5
5
  "dist/**/*"
6
6
  ],
@@ -29,8 +29,8 @@
29
29
  "@sentry/react": "^9.42.1",
30
30
  "@stripe/stripe-js": "^4.4.0",
31
31
  "@zeniai/client-analytics": "2.1.2",
32
- "@zeniai/client-epic-state": "5.2.79",
33
- "@zeniai/web-components": "4.4.20",
32
+ "@zeniai/client-epic-state": "5.2.80",
33
+ "@zeniai/web-components": "4.4.21",
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-CcAJDSgG.js";import{A as i}from"./AddressScreen-De5NyEzZ.js";import s from"./NotFoundScreen-DiKdubNF.js";import"./sentry-Bo3euLoP.js";import{n as d,o as r}from"./core-C32E0M-A.js";import"./zeni-epic-state-yHa8unrA.js";import"./recharts-g8-bInqc.js";import"./index-DCtJNiUy.js";import"./mui-Ba-vLBC4.js";import"./analytics-ff6bapqe.js";import"./plaid-CEp7her_.js";import"./dnd-C_Bep5ai.js";import"./stripe-cKAAJElX.js";import"./lottie-DW03v0-7.js";import"./lexical-Byw8jdWu.js";import"./pdf-B6gXz38d.js";import"./utils-CY3YGcdR.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new t.Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="81cbb5c1-1b56-4d87-a240-ae6c03b91825",t._sentryDebugIdIdentifier="sentry-dbid-81cbb5c1-1b56-4d87-a240-ae6c03b91825")}catch{}})();function _(){return e.jsxs(d,{children:[e.jsx(r,{path:"/edit/:addressType/:addressId",element:e.jsx(i,{})}),e.jsx(r,{path:"/new/:addressType",element:e.jsx(i,{})}),e.jsx(r,{path:"*",element:e.jsx(s,{})})]})}export{_ as default};
@@ -1,9 +0,0 @@
1
- import{j as r}from"./liveblocks-CcAJDSgG.js";import{a as S}from"./sentry-Bo3euLoP.js";import{h as P,u as T,g as j,i as E,j as B,l as L}from"./core-C32E0M-A.js";import{_ as M,z as V,V as $,a5 as D,a6 as K,j as C,Q as m,a1 as R,U as h,a2 as U}from"./index-DCtJNiUy.js";import{VP as _,it as z,fI as F,VQ as G,c9 as N,VR as O,mL as Q}from"./zeni-epic-state-yHa8unrA.js";import{u as q,n as H}from"./mui-Ba-vLBC4.js";import J from"./NotFoundScreen-DiKdubNF.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]="bb07b968-ac1b-4593-8813-f1784eb41d35",e._sentryDebugIdIdentifier="sentry-dbid-bb07b968-ac1b-4593-8813-f1784eb41d35")}catch{}})();const W=H.div`
2
- display: flex;
3
- height: 100vh;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- `,X=L((function(e,s){const{addressId:o,isSubPage:i,addressType:c}=s,l=F(e),a=s.roleMap!=null&&G(s.roleMap),n=i||c==="user_address"||N(l?.userRole??[])||a?void 0:"readonly";if(o==null){const t=O(c,e);return{addressToEdit:t?.addressToCreate,loadingState:t?.status?.fetchState,googleAPIKey:h.googleMapsAPIKey,isDisabled:n,isSubPage:i,dontShowSaveConfirmationPopup:s.dontShowSaveConfirmation}}const d=_(e,o);return{addressToEdit:d.address,loadingState:d.fetchState,googleAPIKey:h.googleMapsAPIKey,isDisabled:n}}),(function(e,s){const{navigate:o,location:i,addressType:c}=s,l=a=>{if(a==="express-pay")o("../express-pay/add-wire");else{const n=i.state,d=U(n?.pathnameStackToGoBack);let t=d.poppedPathname??v();const u=n?.queryParams;if(u){const g=new URLSearchParams(u).toString();g&&(t=`${t}?${g}`)}o(t,{state:{pathnameStackToGoBack:d.newStack}})}};return{onSubmitHandler:a=>{const n=Y(a);e(Q({addressType:c,addressToCreate:n})),C?.trackSaveAddressClicked(m.Event.saveAddressClicked,{street:a.street.addressString,city:a.city,state:a.state,country:a.country.selectedOption??"",postalCode:a.postalCode,suite:a.suite,secondaryInfo:a.secondaryInfo}),l(s.bankAccountContext)},onCancel:()=>{l(s.bankAccountContext)}}}))(R);function re({isSubPage:e,hideAddressSubTitle:s=!1,hideAddressBackButton:o=!1,dontShowSaveConfirmation:i,accountContext:c,addressTypeParam:l}){const a=P(),n=T(),d=j(),{addressId:t,addressType:u}=E(),g=M(),w=q(),I=V.getSignedInUser(),[p,k]=S.useState(t==null),f=B((b=>t!=null?_(b,t).fetchState:"Not-Started")),x=$();if(I==null)throw Error("Can't access address page without signing in...");const A=b=>b.trackPageLoaded(t!=null?m.Event.editAddress:m.Event.addAddress),y=l??u;return S.useEffect((()=>{p||t==null||(k(!0),n(z(t,!1)))}),[p,t,n]),y==null||y.match(/(user_address|company_address|company_registered_address|vendor_address|officer_([1-9]|10)_address|invoicing_customer_billing_address|invoicing_subscription_shipping_address|invoicing_business_address)$/g)?!p&&f==="Not-Started"||p&&f==="In-Progress"?r.jsx(D,{fetchState:f,style:{backgroundColor:w.colors.grey5}}):t!=null&&f==="Error"?(a(`${v(1)}/new`,{replace:!0}),r.jsx(r.Fragment,{})):r.jsxs(r.Fragment,{children:[r.jsx(K,{analytics:C,onLoad:A}),r.jsx(W,{windowSize:g,children:r.jsx(X,{location:d,navigate:a,isSubPage:e===!0,hideAddressBackButton:o,hideAddressSubTitle:s,addressId:t,addressType:y,dontShowSaveConfirmation:i,bankAccountContext:c,roleMap:x?.loggedInUserRoleMap})})]}):r.jsx(J,{})}const v=(e=2)=>{let s="../";for(let o=0;o<e;o++)s=`${s}../`;return s},Y=e=>({street:[e.street.addressString,e.suite,e.secondaryInfo],city:e.city,state:e.state,country:e.country.selectedOption??"",countryCode:e.countryCode,postalCode:e.postalCode,latitude:e.street.addressValue?.locationLat,longitude:e.street.addressValue?.locationLng});export{re as A,Y as t};
@@ -1,11 +0,0 @@
1
- import{j as I}from"./liveblocks-CcAJDSgG.js";import{a as o}from"./sentry-Bo3euLoP.js";import{u as k,h as R,g as H,j as C,N as w}from"./core-C32E0M-A.js";import{Ul as q,fI as z,go as G,pW as Q,gP as U,gn as V,gl as W,UL as B,gk as A}from"./zeni-epic-state-yHa8unrA.js";import{u as J,z as E,L as T,G as K,F as M}from"./index-DCtJNiUy.js";import{n as X}from"./mui-Ba-vLBC4.js";import{P as h,a as _}from"./AccountMappingScreen-C1ayPIAG.js";import{t as Y}from"./getLocaleForTenant-B7DrNxDF.js";import{g as Z,Q as ee}from"./QBOConnectionScreen-fOrpVwph.js";import"./recharts-g8-bInqc.js";import"./analytics-ff6bapqe.js";import"./plaid-CEp7her_.js";import"./dnd-C_Bep5ai.js";import"./stripe-cKAAJElX.js";import"./lottie-DW03v0-7.js";import"./lexical-Byw8jdWu.js";import"./pdf-B6gXz38d.js";import"./utils-CY3YGcdR.js";import"./MobileAppDrawer-DeMnqMws.js";import"./InboxNotificationsProvider-CnIopK35.js";import"./useTaskManagerAccess-DP5KTNvW.js";import"./accountMappingHelper-DSmoEgXo.js";import"./empty-DAPHCQXk.js";import"./pdf-lib-DW7wIt2i.js";import"./index-CfrgrNvU.js";import"./url-CzSmdUOo.js";import"./index-CtLBLCty.js";import"./decodeURIComponentSafe-C5UecJ4I.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]="dd137bae-694e-4ffa-a9c9-094a589e730f",t._sentryDebugIdIdentifier="sentry-dbid-dd137bae-694e-4ffa-a9c9-094a589e730f")}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 ${M.sp1} ${t.theme.colors.dropShadowNormal}`};
11
- `;function we(){const t=k(),i=R(),v=H(),{setLoading:c,clearAllLoading:m}=J(),S=o.useRef(!1),x=o.useRef(!1),N=o.useRef(!1),f=o.useRef(!1),{code:O,realmId:L,state:$}=Z(v.search),p=O!==""&&L!==""&&$!=="";p&&(N.current=!0);const j=sessionStorage.getItem(h),u=j===_.pending,F=j===_.ready,b=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((()=>{S.current||a==null||g==null||(S.current=!0,n==="Completed"||r!=="Not-Started"&&r!=="Error"||(c(T.TENANT_FETCHING),t(G(a.userId,g))))}),[S,n,c]),o.useEffect((()=>{e.tenantId==null&&!x.current&&a!=null&&(x.current=!0,!(g==null||g!=null&&(r==="Completed"||r==="Error"))||n!=="Not-Started"&&n!=="Error"||t(Q(a.userId)))}),[x,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(V(e.tenantId)),E.saveActiveTenantDomainForUser(e.tenantEmailDomain),W(a?.userId,a?.zeniSessionId,e.tenantId),K.updateAppLocaleID(Y(B(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((()=>{b.tenantsCoreDetailsInOrder.length>0&&n==="Completed"&&E.saveSignedInUserTenants(b.tenantsCoreDetailsInOrder)}),[b.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"&&(f.current=!0)}),[u,d]),o.useEffect((()=>{if(!u||D)return;const s=e.tenantEmailDomain!=null?`/${e.tenantEmailDomain}/settings/accounting`:"/";return f.current&&d==="Completed"?(sessionStorage.setItem(h,_.ready),m(),void i(s,{replace:!0})):f.current&&d==="Error"?(sessionStorage.removeItem(h),t(A({messageSection:"accounting_projects_qbo_reconnect_failed",messageText:"failed",type:"error"})),m(),void i(s,{replace:!0})):void(p||N.current||f.current||y!==!0||(sessionStorage.removeItem(h),t(A({messageSection:"accounting_projects_qbo_reconnect_failed",messageText:"failed",type:"error"})),m(),i(s,{replace:!0})))}),[u,D,d,p,y,e.tenantEmailDomain,m,t,i]),D)return null;if(p||y!==!0)return I.jsx(te,{children:I.jsx(ee,{})});if(u)return null;const P=e.tenantEmailDomain!=null?`/${e.tenantEmailDomain}/settings/accounting`:"/";return F?I.jsx(w,{to:P,replace:!0}):I.jsx(w,{to:"/",replace:!0})}export{we as default};
@@ -1 +0,0 @@
1
- import{j as i}from"./liveblocks-CcAJDSgG.js";import{z as m}from"./index-DCtJNiUy.js";import{g as n}from"./QBOConnectionScreen-fOrpVwph.js";import"./sentry-Bo3euLoP.js";import{g as p,N as a}from"./core-C32E0M-A.js";import"./zeni-epic-state-yHa8unrA.js";import"./recharts-g8-bInqc.js";import"./mui-Ba-vLBC4.js";import"./analytics-ff6bapqe.js";import"./plaid-CEp7her_.js";import"./dnd-C_Bep5ai.js";import"./stripe-cKAAJElX.js";import"./lottie-DW03v0-7.js";import"./lexical-Byw8jdWu.js";import"./pdf-B6gXz38d.js";import"./utils-CY3YGcdR.js";import"./empty-DAPHCQXk.js";import"./pdf-lib-DW7wIt2i.js";import"./index-CfrgrNvU.js";import"./url-CzSmdUOo.js";import"./index-CtLBLCty.js";import"./decodeURIComponentSafe-C5UecJ4I.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new t.Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="a1205b81-d106-415b-bd92-85aeae53ace3",t._sentryDebugIdIdentifier="sentry-dbid-a1205b81-d106-415b-bd92-85aeae53ace3")}catch{}})();const U=()=>{const t=p(),{code:o,realmId:r,state:e}=n(t.search),s=m.getSignedInUser()?.userId??"";if(f(o,r,e,s)===!0){const d=`../../${e}/onboarding?code=${o}&realmId=${r}&state=auth_flow`;return i.jsx(a,{to:d})}return i.jsx(a,{to:"../../"})},f=(t,o,r,e)=>t!=""&&o!=""&&r!=""&&e!=null&&e!="";export{U as default,f as hasValidParams};
@@ -1,18 +0,0 @@
1
- import{j as l}from"./liveblocks-CcAJDSgG.js";import{h as w,g as C,j as h,l as A,i as V}from"./core-C32E0M-A.js";import{Zk as k,Zr as W,gJ as J,gI as L,gH as M,kT as X,Xi as Y,uV as q,fI as B,YT as D,kR as T,Zl as S,Zu as F,kP as G,la as j}from"./zeni-epic-state-yHa8unrA.js";import{bL as K,_ as R,W as N,z as Z,a2 as p,A as v,a5 as U,bM as Q,F as _,bN as ee,p as te}from"./index-DCtJNiUy.js";import{u as H,n as O}from"./mui-Ba-vLBC4.js";import"./sentry-Bo3euLoP.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]="ed4de1d5-a8a9-42fb-8f8d-5adbcb9f47d2",e._sentryDebugIdIdentifier="sentry-dbid-ed4de1d5-a8a9-42fb-8f8d-5adbcb9f47d2")}catch{}})();const ae=A(null,(function(e,t){return{onSaveVendor:a=>{e(X(t.vendorId!==void 0?t.vendorId:void 0,t.billId,void 0,t.isExpressPayPage)),e(Y("common")),a!=null&&e(q(a))},onGetOtp:a=>{e(M(a,"BillPayVendor"))},onResendOtp:a=>{e(L(a,"BillPayVendor"))},onVerifyOtp:(a,n)=>{e(J(a,n,"BillPayVendor"))},onVerifyOtpSuccess:(a,n,o)=>{e(W(a,n,o))}}}))(K);function z({vendorId:e,billId:t,isExpressPayPage:a}){const n=w(),o=C(),s=h((r=>k(r,e)));return l.jsx(ae,{location:o,navigate:n,vendorId:e,billId:t,vendorViewDetails:s,isExpressPayPage:a??!1})}const ne=O.div`
2
- display: flex;
3
- height: 100vh;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- `,oe=A((function(e,t){const{vendorId:a,billId:n}=t,o=k(e,a),s=D(e,t.isVendorRecommendationEnabled,t.isZeniAccountsFeatureEnabled,n);return{billId:n,isDisabled:o.bankAccountCreationState.fetchState==="In-Progress"?"readonly":void 0,vendorViewDetails:o,file:s.file,bankAccountContext:t.bankAccountContext}}),(function(e,t){const{navigate:a,location:n,vendorId:o}=t;return{onFetchBankName:s=>{e(j(s))},onSaveHandler:s=>{e(G(t.bankAccountContext,s,"standard",o))},onCancel:()=>{(()=>{const s=p(n.state?.pathnameStackToGoBack),r=s.poppedPathname??P();a(r,{state:{pathnameStackToGoBack:s.newStack}})})(),e(S())},onACHDetailsUpdated:s=>{const{bankAccountSection:r}=s;e(F({data:r}))},onBackClick:()=>{if(e(T({fetchState:"Not-Started"})),t.bankAccountContext==="express-pay")a("../",{relative:"path"});else{const s=p(t.location.state?.pathnameStackToGoBack),r=s.poppedPathname??P(0);t.navigate(r,{state:{pathnameStackToGoBack:s.newStack}})}e(S())}}}))(Q);function fe({vendorIdParam:e,accountContext:t}){const a=w(),n=C(),o=R(),{vendorId:s,billId:r}=V(),c=e??s,{useFeatureGate:d}=N(),i=Z.getSignedInUser(),b=h((u=>B(u))),g=H(),I=p(n.state?.pathnameStackToGoBack),f=t??(I.poppedPathname?.includes("vendor")===!0?"vendor":"billDetail"),m=h((u=>k(u,c))),{isFeatureEnabled:x}=d(v.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:y}=d(v.isDepositAccountsFeatureEnabled);if(i==null)throw Error("Can't access address page without signing in...");return f==="billDetail"&&m.editVendorState?.saveStatus.fetchState==="In-Progress"?l.jsx(U,{fetchState:m.editVendorState?.saveStatus.fetchState??"Not-Started",style:{backgroundColor:g.colors.grey5}}):l.jsxs(ne,{windowSize:o,children:[l.jsx(z,{vendorId:c,billId:r}),l.jsx(oe,{location:n,navigate:a,billId:r,vendorId:c,currentTenant:b,bankAccountContext:f,isVendorRecommendationEnabled:x,isZeniAccountsFeatureEnabled:y})]})}const P=(e=2)=>{let t="../";for(let a=0;a<e;a++)t=`${t}../`;return t},me=(e,t,a)=>{let n=`/${e}/bill/${encodeURIComponent(t)}`;return a=="draft"&&(n+="/edit"),n},he=e=>`/${e}/bills`,ke=(e,t)=>{let a=`/${e}/bill`;return a=t!=null?a.concat(`/${t}/edit`):a.concat("/new"),a},E=(e,t,a,n)=>{let o=`/${e}/bill`;return o+=a!=null?`/${a}/edit/vendor`:"/new/vendor",o+=n!=null?`/${n}/edit/${t}`:`/create/${t}`,o};function Se(e,t,a){return E(e,"ach",t,a)}function ve(e,t,a){return E(e,"domestic",t,a)}function ge(e,t,a){return E(e,"international",t,a)}const se=(e,t,a)=>{let n=`/${e}/bill/`;return n=a!=null?n.concat(`${encodeURIComponent(a)}/${t}/`):n.concat(`new/${t}/`),n},de=O.div`
10
- display: flex;
11
- height: 100vh;
12
- width: 100%;
13
- flex: 1 1 auto;
14
- flex-direction: column;
15
- align-items: center;
16
- background-color: ${e=>e.theme.colors.grey4};
17
- box-shadow: ${e=>`0px 2px ${_.sp1} ${e.theme.colors.dropShadowNormal}`};
18
- `,re=A((function(e,t){const{vendorId:a,billId:n}=t,o=k(e,a),s=D(e,t.isVendorRecommendationEnabled,t.isZeniAccountsFeatureEnabled,n);return{billId:n,isDisabled:o.bankAccountCreationState.fetchState==="In-Progress"?"readonly":void 0,vendorViewDetails:o,file:s.file,bankAccountContext:t.bankAccountContext}}),(function(e,t){const{billId:a,navigate:n,location:o,vendorId:s,currentTenant:r}=t,{tenantEmailDomain:c}=r;return{onFetchBankName:d=>{e(j(d))},onSaveHandler:d=>{e(G(t.bankAccountContext,d,"us-domestic",s))},onWireDetailsUpdated:d=>{const{bankAccountSection:i}=d;e(F({data:i}))},onCancel:()=>{(()=>{const d=p(o.state?.pathnameStackToGoBack),i=d.poppedPathname??$();n(i,{state:{pathnameStackToGoBack:d.newStack}})})(),e(S())},onAddressClick:d=>{if(t.bankAccountContext==="express-pay")n("./add-address");else{const i=se(c,d,a),b=te(o.state?.pathnameStackToGoBack,o.pathname);n(i,{state:{pathnameStackToGoBack:b}})}},onBackClick:()=>{if(e(T({fetchState:"Not-Started"})),t.bankAccountContext==="express-pay")n("../",{relative:"path"});else{const d=p(t.location.state?.pathnameStackToGoBack),i=d.poppedPathname??$(0);t.navigate(i,{state:{pathnameStackToGoBack:d.newStack}})}e(S())}}}))(ee);function Ie({vendorIdParam:e,accountContext:t}){const a=w(),n=C(),o=R(),{vendorId:s,billId:r}=V(),c=e??s,d=Z.getSignedInUser(),{useFeatureGate:i}=N(),b=H(),g=h((u=>B(u))),I=p(n.state?.pathnameStackToGoBack),f=t??(I.poppedPathname?.includes("vendor")===!0?"vendor":"billDetail"),m=h((u=>k(u,c))),{isFeatureEnabled:x}=i(v.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:y}=i(v.isDepositAccountsFeatureEnabled);if(d==null)throw Error("Can't access address page without signing in...");return f==="billDetail"&&m.editVendorState?.saveStatus.fetchState==="In-Progress"?l.jsx(U,{fetchState:m.editVendorState?.saveStatus.fetchState??"Not-Started",style:{backgroundColor:b.colors.grey5,boxShadow:`0px 2px ${_.sp1} ${b.colors.dropShadowNormal}`}}):l.jsxs(de,{windowSize:o,children:[l.jsx(z,{vendorId:c,billId:r}),l.jsx(re,{location:n,navigate:a,billId:r,vendorId:c,currentTenant:g,bankAccountContext:f,isVendorRecommendationEnabled:x,isZeniAccountsFeatureEnabled:y})]})}const $=(e=2)=>{let t="../";for(let a=0;a<e;a++)t=`${t}../`;return t};export{fe as A,Ie as D,z as V,me as a,se as b,ke as c,ve as d,he as g,ge as i,Se as v};
@@ -1 +0,0 @@
1
- import{j as i}from"./liveblocks-CcAJDSgG.js";import{_ as l,a9 as c}from"./index-DCtJNiUy.js";import{u as f,D as p}from"./mui-Ba-vLBC4.js";import"./sentry-Bo3euLoP.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]="7343a8d4-dee6-4ca7-9ab3-2b3236099e14",e._sentryDebugIdIdentifier="sentry-dbid-7343a8d4-dee6-4ca7-9ab3-2b3236099e14")}catch{}})();const b={drawerLeftMargin:new c(0,0,240)};function h(e){const{isOpen:r,drawerLeftMargin:o,children:a,onClose:t}=e,n=l(),s=o?.valuePx(n)??b.drawerLeftMargin.valuePx(n),d=f();return i.jsx(p,{anchor:"right",open:r,PaperProps:{style:{width:`calc(100% - ${s})`}},slotProps:{backdrop:{style:{backgroundColor:d.colors.black,opacity:.8,cursor:"pointer"}}},onClose:t,children:a})}export{h as D};
@@ -1 +0,0 @@
1
- import{j as s}from"./liveblocks-CcAJDSgG.js";import{a as r}from"./sentry-Bo3euLoP.js";import{au as d,av as l,$ as p,a2 as f}from"./index-DCtJNiUy.js";import"./mui-Ba-vLBC4.js";import m from"./NotFoundScreen-DiKdubNF.js";import{h as u,g as b}from"./core-C32E0M-A.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]="e05c8e10-94d4-42c9-8a76-8483c25ef913",e._sentryDebugIdIdentifier="sentry-dbid-e05c8e10-94d4-42c9-8a76-8483c25ef913")}catch{}})();const _=()=>{const e=u(),a=b(),t=r.useCallback((()=>{window.open("https://www.zeni.ai/demo/request","_blank")}),[]),c=r.useCallback((()=>{(()=>{const n=f(a.state?.pathnameStackToGoBack),i=n.poppedPathname??k();e(i,{state:{pathnameStackToGoBack:n.newStack}})})()}),[]),o=d(a.pathname);return o!=null?s.jsx(l,{menuItem:p(o),onDemoClick:t,onGoBack:c}):s.jsx(m,{})},k=(e=2)=>{let a="../";for(let t=0;t<e;t++)a=`${a}../`;return a};export{_ as F};
@@ -1,12 +0,0 @@
1
- import{j as u}from"./liveblocks-CcAJDSgG.js";import{a as g}from"./sentry-Bo3euLoP.js";import{u as F,g as _,h as w,t as M,j as l,N as U}from"./core-C32E0M-A.js";import{z as r,G as P,O as V,j as A,Q as N,X as Q,Y as R,S as Y}from"./index-DCtJNiUy.js";import{fI as G,Un as H,UQ as W,UH as X,gl as $,gn as q,UM as B,gY as J,dk as K,UR as Z,US as ee}from"./zeni-epic-state-yHa8unrA.js";import{u as te,n as ne}from"./mui-Ba-vLBC4.js";import{u as ae}from"./useDeviceId-D1tbmD3W.js";import{f as se}from"./analyticsHelper-kcXI5tFD.js";import{t as ie}from"./getLocaleForTenant-B7DrNxDF.js";import"./recharts-g8-bInqc.js";import"./analytics-ff6bapqe.js";import"./plaid-CEp7her_.js";import"./dnd-C_Bep5ai.js";import"./stripe-cKAAJElX.js";import"./lottie-DW03v0-7.js";import"./lexical-Byw8jdWu.js";import"./pdf-B6gXz38d.js";import"./utils-CY3YGcdR.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new t.Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="286a66a7-72b4-4167-a59a-fed27865b99a",t._sentryDebugIdIdentifier="sentry-dbid-286a66a7-72b4-4167-a59a-fed27865b99a")}catch{}})();const T=(t,s)=>t!=null&&t.length>0&&s==="magic_links";function Te(){const t=F(),s=_(),f=w(),[b]=M(),n=b.get("token"),p=b.get("stytch_token_type"),m=r.getMagicLinkCodeVerifier(),i=ae(),{otpChallenge:d,twoFAPhoneNumber:x,magicLinkEmail:c,verifyDeviceFetchState:z,resendVerifyDeviceOTPFetchState:C}=l((e=>e.tenantState)),S=l((e=>e.tenantState.fetchState)),y=l((e=>e.tenantState.activeTenantFetchState.fetchState)),I=l((e=>e.tenantState.signInState)),h=l((e=>e.tenantState.magicLinkSignInFetchState.fetchState)),a=l((e=>e.tenantState.loggedInUser)),o=l((e=>G(e))),k=l((e=>H(e))),D=r.getSignedInUser(),v=te().mode;g.useEffect((()=>{a?.zeniSessionId==null&&n!=null&&T(n,p)&&i!=null&&m!=null&&(r.saveMagicLinkTriggered(n),t(W(n,i,m)))}),[n,p,t,i,m,a?.zeniSessionId]),g.useEffect((()=>{I!=="In-Progress"||S!=="Completed"&&y!=="Completed"||a?.zeniSessionId==null||o==null||(n!=null&&r.saveLastUsedMagicLinkToken(n),r.saveSignedInUserWithSession(a,a.zeniSessionId),r.saveSignedInUserTenants(X(k.tenantsInOrder),a.zeniSessionId),$(a.userId,a.zeniSessionId,o.tenantId),t(q(o.tenantId)),r.saveActiveTenantDomainForUser(o.tenantEmailDomain),t(B("Completed")),P.updateAppLocaleID(ie(o)),se(a,o,v,void 0,k.tenantsInOrder),J().then((()=>{const e=Y();e!=null&&V(e)})),setTimeout((()=>{A.trackLogin(N.Event.loginSuccess,"email",K(o.productSettings))}),2e3))}),[I,S,y,a,o,k,v,s.state,t]);const E=g.useCallback((()=>{f("/signin/auth")}),[f]),j=g.useCallback((()=>{i!=null&&d!=null&&c!=null&&t(Z(i,c,d))}),[i,d,t,c]),O=g.useCallback((e=>{i!=null&&n!=null&&c!=null&&d!=null&&t(ee(e,i,c,d))}),[i,n,t,c,d]);if(h==="Completed"&&d!=null)return u.jsx(Q,{phoneNumber:x,verifyOtpFetchState:z.fetchState,resendVerifyDeviceOTPFetchState:C,onResendOtp:j,onVerifyOtp:O,onCancelVerifyDevice:E});if(I==="In-Progress"&&S==="Completed"&&a?.zeniSessionId!=null&&o!=null||D!=null){const e=s.state?.origin??"/";return u.jsx(U,{to:e,state:{...s.state,origin:""}})}if(!T(n,p)||m==null||h==="Error"){const e=s.state?.origin??"/",L=n!=null&&r.getLastUsedMagicLinkToken()===n;return u.jsx(U,{to:e,state:{...s.state,origin:"",magicLinkAlreadyUsed:L,magicLinkExpired:!L&&(r.isMagicLinkTriggered(n??"")||h==="Error"&&a?.zeniSessionId==null)}})}return u.jsx(oe,{"data-testid":"smooth-loader",children:u.jsx(R,{size:"ExtraLarge",start:!0})})}const oe=ne.div`
2
- position: fixed;
3
- top: 0;
4
- left: 0;
5
- right: 0;
6
- bottom: 0;
7
- display: flex;
8
- align-items: center;
9
- justify-content: center;
10
- z-index: 9999;
11
- background-color: ${t=>t.theme.colors.background};
12
- `;export{Te as default};
@@ -1 +0,0 @@
1
- import{j as e}from"./liveblocks-CcAJDSgG.js";import{h as r,l as i}from"./core-C32E0M-A.js";import{ak as n}from"./index-DCtJNiUy.js";import"./mui-Ba-vLBC4.js";import"./sentry-Bo3euLoP.js";import"./zeni-epic-state-yHa8unrA.js";import"./recharts-g8-bInqc.js";import"./analytics-ff6bapqe.js";import"./plaid-CEp7her_.js";import"./dnd-C_Bep5ai.js";import"./stripe-cKAAJElX.js";import"./lottie-DW03v0-7.js";import"./lexical-Byw8jdWu.js";import"./pdf-B6gXz38d.js";import"./utils-CY3YGcdR.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,22 +0,0 @@
1
- import{j as a}from"./liveblocks-CcAJDSgG.js";import{VS as re,fI as Y,m3 as H,e0 as N,d$ as le,SJ as Q,Vf as de,Df as Pe,VT as J,D4 as je,Dp as Le,Dj as ce,D8 as pe,Dn as Te,Dk as ve,VU as ue,sx as Ve,g9 as Ae,gG as Fe,VV as _,Dc as me,Db as ge,Ds as Re,c9 as Oe}from"./zeni-epic-state-yHa8unrA.js";import{_ as fe,W as X,A as G,z as W,f as he,M as Ce,ad as ye,ax as be,ay as Ze,a9 as Se,F as R,ae as De,G as K,az as Ue,ao as Be,aq as $e,a6 as ze,j as we,Q as _e,p as Ge,aA as He,V as We}from"./index-DCtJNiUy.js";import{D as xe,n as M,S as Ie}from"./mui-Ba-vLBC4.js";import ae from"./NotFoundScreen-DiKdubNF.js";import{a as d}from"./sentry-Bo3euLoP.js";import{u as ee,i as Ke,j as g,h as Me,g as qe,l as Je,n as se,o as z}from"./core-C32E0M-A.js";import{u as Ye}from"./useAskAiCfoHostNavButtonProps-BO9PbO4e.js";import{M as Ne}from"./MobileAppDrawer-DeMnqMws.js";import"./recharts-g8-bInqc.js";import"./analytics-ff6bapqe.js";import"./plaid-CEp7her_.js";import"./dnd-C_Bep5ai.js";import"./stripe-cKAAJElX.js";import"./lottie-DW03v0-7.js";import"./lexical-Byw8jdWu.js";import"./pdf-B6gXz38d.js";import"./utils-CY3YGcdR.js";import"./InboxNotificationsProvider-CnIopK35.js";import"./useTaskManagerAccess-DP5KTNvW.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]="9a6dda18-5aff-40f2-b978-88d58a05519b",e._sentryDebugIdIdentifier="sentry-dbid-9a6dda18-5aff-40f2-b978-88d58a05519b")}catch{}})();const Qe={overlayWidth:new Se(100,100,48)},te=K.getLocalizedStrings().peoplePage.invitePage,ne=K.getLocalizedStrings().common,Xe=({companyId:e,managersListView:t,companyPassportView:c,classListView:n,mode:f,isEditPeopleDrawerOpen:i,closeDrawerHandler:b})=>{const h=fe(),m=ee(),[O,Z]=d.useState(!1),[k,S]=d.useState(!1),{userId:D}=Ke(),r=g((l=>re(l))),p=g((l=>Y(l))),E=g((l=>H(l))),{useFeatureGate:x}=X(),{isFeatureEnabled:I}=x(G.isDebitCardFeatureEnabled),P=N(I,p),T=le(p),v=Q(p),U=de(p),B=!!p.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,w=!P&&E&&n.fetchState!=="Completed"||t.fetchState!=="Completed"||c.fetchState!=="Completed"||e==null;if(W.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const C=()=>{m(J()),b()},V=()=>{O===!0?S(!0):C()},$=c.companyView?.controllers?.map((l=>l.user)),u=!!p.company?.companyZeniAccountInfo?.isZeniAccountEnabled,{isFeatureEnabled:j}=x(G.isChargeCardFeatureEnabled),L=he(p,j,I),{isCardsHidden:A}=Ce(p?.tenantId),y=!L||A,F=p.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",s={peopleDetails:r,classList:n.classes,managersList:t.users,controllersList:$,mode:f,isZeniTenant:v,isAccountingClassesEnabled:E,isReimbursementDisabled:B===!1,isZeniAccountsDisabled:u===!1,isChargeCardDisabled:y,isTreasuryDisabled:F===!1,isLiteRoleDisabled:U===!1,isBankingOnlyTenant:P,isCardsOnlyTenant:T,onResetClick:C,onDeleteUser:l=>{m(pe(l.userId,l.userRole.userRoleId))},onPeopleLocalDataUpdated:l=>{m(ce({peopleLocalData:l})),Z(!0)},onSaveClick:()=>{m(f==="zeni_only"?je(e):Le(v))},onCloseClick:V,isLoading:w||r.person==null},o={onOkClick:()=>{S(!1),C()},onCancelClick:()=>{S(!1)}};return d.useEffect((()=>{w===!1&&D!=null&&m(Pe(D))}),[w,D]),d.useEffect((()=>{r.updatePersonState.fetchState==="Completed"&&C()}),[r.updatePersonState.fetchState]),a.jsx(xe,{anchor:"right",open:i,PaperProps:{style:{width:Qe.overlayWidth.valuePercentage(h),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:ye.overlayDark,cursor:"pointer"}}},onClose:V,children:a.jsxs(ea,{onClick:l=>l.stopPropagation(),children:[k===!0?a.jsx(be,{titleComponent:a.jsx(ke,{children:te.discardTitle}),descriptionComponent:a.jsx(Ee,{children:te.discardDescription}),primaryButtonText:ne.yes,secondaryButtonText:ne.no,action:o,isEditPopup:!0}):null,a.jsx(Ze,{...s})]})})},ea=M(Ie)`
2
- display: flex;
3
- min-height: 100%;
4
- flex-direction: column;
5
- `,ke=M(De.H6Regular)`
6
- margin-top: ${R.sp7};
7
- padding-left: ${R.sp8};
8
- padding-right: ${R.sp8};
9
- color: ${e=>e.theme.colors.primary};
10
- word-break: break-word;
11
- `,Ee=M(De.LargeRegularSp)`
12
- color: ${e=>e.theme.colors.hero};
13
- padding-left: ${R.sp8};
14
- padding-right: ${R.sp8};
15
- margin-bottom: 30px;
16
- margin-top: ${R.sp4};
17
- white-space: pre-line;
18
- `,aa={overlayWidth:new Se(100,100,48)},oe=K.getLocalizedStrings().peoplePage.invitePage,ie=K.getLocalizedStrings().common,sa=({companyId:e,managersListView:t,companyPassportView:c,classListView:n,mode:f,isInvitePeopleDrawerOpen:i,closeDrawerHandler:b})=>{const h=fe(),m=ee(),[O,Z]=d.useState(!1),[k,S]=d.useState(!1),D=g((o=>re(o))),r=g((o=>Y(o))),p=g((o=>H(o))),{useFeatureGate:E}=X(),{isFeatureEnabled:x}=E(G.isDebitCardFeatureEnabled),I=N(x,r),P=le(r),T=Q(r),v=de(r),U=!!r.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,B=!I&&p&&n.fetchState!=="Completed"||t.fetchState!=="Completed"||c.fetchState!=="Completed"||e==null;if(W.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const w=()=>{b(),m(J())},C=()=>{O===!0?S(!0):w()},V={onOkClick:()=>{S(!1),w()},onCancelClick:()=>{S(!1)}},$=c.companyView?.controllers.map((o=>o.user)),u=!!r.company?.companyZeniAccountInfo?.isZeniAccountEnabled,{isFeatureEnabled:j}=E(G.isChargeCardFeatureEnabled),L=he(r,j,x),{isCardsHidden:A}=Ce(r?.tenantId),y=!L||A,F=r.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",s={classList:n.classes,managersList:t.users,controllersList:$,mode:f,isZeniTenant:T,onPeopleLocalDataUpdated:o=>{m(ce({peopleLocalData:o})),Z(!0)},onResetClick:w,onSaveClick:()=>{m(f==="zeni_only"?Te(e):ve())},onCloseClick:C,peopleDetails:D,isAccountingClassesEnabled:p,isReimbursementDisabled:U===!1,isLiteRoleDisabled:v===!1,isZeniAccountsDisabled:u===!1,isChargeCardDisabled:y,isTreasuryDisabled:F===!1,isBankingOnlyTenant:I,isCardsOnlyTenant:P,isLoading:B};return d.useEffect((()=>{D.invitePersonState.fetchState==="Completed"&&(b(),m(J()))}),[D.invitePersonState.fetchState]),a.jsx(xe,{anchor:"right",open:i,PaperProps:{style:{width:aa.overlayWidth.valuePercentage(h),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:ye.overlayDark,cursor:"pointer"}}},onClose:C,children:a.jsxs(ta,{onClick:o=>o.stopPropagation(),children:[k===!0?a.jsx(be,{titleComponent:a.jsx(ke,{children:oe.discardTitle}),descriptionComponent:a.jsx(Ee,{children:oe.discardDescription}),primaryButtonText:ie.yes,secondaryButtonText:ie.no,action:V}):null,a.jsx(Ue,{...s})]})})},ta=M(Ie)`
19
- display: flex;
20
- min-height: 100%;
21
- flex-direction: column;
22
- `,na=Je((function(e,t){const c=ue(e),n=W.getSignedInUser();return{data:c,loggedinUserId:n?.userId??"",isZeniTenant:t.isZeniTenant===!0,shouldFetchClasses:t.shouldFetchClasses,isZeniAdminUser:n?.userEmailDomain==="zeni.ai"&&t.isZeni===!0,isAccountingClassesEnabled:H(e),analytics:we}}),(function(e,t){const{navigate:c,companyId:n,shouldFetchClasses:f}=t;return{personAction:{onPersonDelete:(i,b)=>{e(pe(i,b))},onResendInvite:i=>{e(Re(i))},onReloadPeople:()=>{e(me()),e(ge(n,f))},onBackClick:()=>{c("../../")},onModeChange:i=>{e(_({mode:i,searchText:"",sortKey:"name",sortOrder:"ascending"}))},onSearchTextChanged:i=>{e(_({searchText:i}))}}}}))(He);function q({isInvitePeopleDrawerOpen:e,isEditPeopleDrawerOpen:t}){const c=Me(),n=ee(),f=qe(),{areTenantIdsInSync:i}=Be(),b=W.getSignedInUser(),h=g((s=>Y(s))),{useFeatureGate:m}=X(),{isFeatureEnabled:O}=m(G.isDebitCardFeatureEnabled),Z=g((s=>H(s))),k=!N(O,h)&&Z,S=Q(h),D=h?.tenantId,{tenantEmailDomain:r}=h,[p,E]=d.useState(!1),[x,I]=d.useState(!1),[P,T]=d.useState(!1),[v,U]=d.useState("off"),[B,w]=d.useState(!1),C=s=>{w(s)},{isAiCfoAccessEnabled:V,onAskAiCfoClick:$}=Ye({mobileExploreReferrer:"People"}),u=g((s=>ue(s)));$e({isDataReady:u.fetchState==="Completed"});const j=g((s=>Ve(s.classState,s.classListState))),L=g((s=>Ae(s.userState,s.userRoleState,s.userListViewState,"manager"))),A=g((s=>Fe(s))),y=h?.companyId;d.useEffect((()=>{p&&v===u.uiState.mode||!i||(n(_({searchText:"",sortKey:"name",sortOrder:"ascending"})),U(u.uiState.mode),E(!0),n(me()))}),[p,b,D,n,u.uiState.mode,i]),d.useEffect((()=>{y!=null&&i&&n(ge(y,k))}),[y,k,i]),d.useEffect((()=>{I(e!=null&&e===!0),T(t!=null&&t===!0&&t)}),[e,t]),d.useEffect((()=>{n(_({searchText:"",sortKey:"name",sortOrder:"ascending"}))}),[]);const F=()=>{I(!1),T(!1),c("../")};return a.jsxs(a.Fragment,{children:[u.fetchState==="Completed"?a.jsx(ze,{analytics:we,onLoad:s=>s.trackPageLoaded(_e.Event.members)}):null,x===!0?a.jsx(sa,{closeDrawerHandler:F,isInvitePeopleDrawerOpen:x,managersListView:L,companyPassportView:A,classListView:j,companyId:y,mode:u.uiState.mode}):null,P===!0?a.jsx(Xe,{closeDrawerHandler:F,isEditPeopleDrawerOpen:P,managersListView:L,companyPassportView:A,classListView:j,companyId:y,mode:u.uiState.mode}):null,a.jsx(Ne,{isAppContentDrawerOpen:B,handleDrawerToggle:C}),a.jsx(na,{navigate:c,signedInUser:b,isZeni:h.isZeni,isZeniTenant:S,peopleUIState:u.uiState,companyId:y,shouldFetchClasses:k,classList:j,managersView:L,peopleView:u,onInvitePeopleClick:()=>{c("./new")},onColumnSortConfigChanged:(s,o)=>{n(_({sortKey:s,sortOrder:o}))},onRowClick:s=>{const o=`/${r}/people/${encodeURIComponent(s)}/edit`,l=Ge(f.state?.pathnameStackToGoBack,f.pathname);c(o,{state:{pathnameStackToGoBack:l}})},onClickMenuIcon:()=>{C(!0)},isAiCfoAccessEnabled:V,onAskAiCfoClick:$})]})}function ka(){const e=We();return Oe(e?.loggedInUserRole??[])?a.jsxs(se,{children:[a.jsx(z,{path:"/",element:a.jsx(q,{})}),a.jsx(z,{path:"new",element:a.jsx(q,{isInvitePeopleDrawerOpen:!0})}),a.jsx(z,{path:":userId/edit",element:a.jsx(q,{isEditPeopleDrawerOpen:!0})}),a.jsx(z,{path:"*",element:a.jsx(ae,{})})]}):a.jsx(se,{children:a.jsx(z,{path:"*",element:a.jsx(ae,{})})})}export{ka as default};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/NotFoundScreen-DiKdubNF.js","assets/sentry-Bo3euLoP.js","assets/core-C32E0M-A.js","assets/zeni-epic-state-yHa8unrA.js","assets/index-DCtJNiUy.js","assets/mui-Ba-vLBC4.js","assets/analytics-ff6bapqe.js","assets/utils-CY3YGcdR.js","assets/index-BQ3cXEYt.css","assets/DashboardRoutes-DUDSVl0J.js","assets/withTransactionSidePanel-DIBSJL4n.js","assets/useAskAiCfoHostNavButtonProps-BO9PbO4e.js","assets/TransactionDetailScreen-gg_jzjg4.js","assets/decodeURIComponentSafe-C5UecJ4I.js","assets/useInitialThreadRequest-DitWfieX.js","assets/routePaths-BGf6E4zO.js","assets/expenseAutomationHelper-DLsy_Ty8.js","assets/stripSplatSuffix-IWd2is7o.js","assets/analyticsHelper-kcXI5tFD.js","assets/CompanyPassportScreen-y7X0MJz8.js","assets/MobileAppDrawer-DeMnqMws.js","assets/InboxNotificationsProvider-CnIopK35.js","assets/useTaskManagerAccess-DP5KTNvW.js","assets/useAiCfoDashboardSuggestedQuestionsChips-Dc6ROsau.js","assets/FeaturePreviewScreen-Bcz_KiRo.js","assets/BillPayRoutes-Cfhufn9I.js","assets/AddressScreen-De5NyEzZ.js","assets/DomesticWireDetailScreen-BtVT1jo7.js","assets/BusinessVerificationPageScreen-DC4WfK27.js","assets/DrawerScreen-DEO6aDXv.js","assets/SetupPagesScreen-1DRsRGaO.js","assets/BillPayApprovalRoutes-DcY6lBge.js","assets/ReimbursementApprovalRuleDetailScreen-DyHV9hua.js","assets/getLocaleForTenant-B7DrNxDF.js","assets/ReimbursementRoutes-BIilRUCw.js","assets/ReimbursementApprovalRoutes-B13CHT4T.js","assets/TransactionListRoutes-DXtggfuW.js","assets/ZeniAccountStatementScreen-B61YBb2s.js","assets/SettingsRoutes-DsKTn4YF.js","assets/AccountMappingScreen-C1ayPIAG.js","assets/QBOConnectionScreen-fOrpVwph.js","assets/empty-DAPHCQXk.js","assets/index-CfrgrNvU.js","assets/url-CzSmdUOo.js","assets/index-CtLBLCty.js","assets/accountMappingHelper-DSmoEgXo.js","assets/useEmailConnectResultRefresh-DICe2M-2.js","assets/ReportsRoutes-DGD0Kisc.js","assets/ChargeCardRoutes-DKflGNQM.js","assets/useChargeCardPusherEvents-mHgU3OkI.js","assets/PeopleRoutes-Dpf-nOzf.js","assets/ExpenseAutomationRoutes-CWCG6f-Z.js","assets/useActualMatchingMatchDetail-D8RZjK70.js","assets/ScheduleDetailsPrepaidExpensesScreen-mgDC8nA3.js","assets/pathToGoBack-BbG758cW.js","assets/TreasuryRoutes-lxwEfAXe.js","assets/VendorsRoutes-BuuNVNIw.js","assets/ZeniAccountRoutes-DDXr_ULo.js","assets/AddressRoutes-y8YhHSJR.js","assets/PandLWithForecastRoutes-DwmnvviI.js","assets/CustomerOnboardingRoutes-DOhBde9s.js","assets/TransactionDetailRoutes-BnI9Ohm4.js","assets/EntityDetailRoutes-DWi6isSB.js","assets/InvoicingRoutes-By0wmZnY.js","assets/NotificationRoutes-DXwqR_6J.js","assets/PerformanceRoutes-9mPYusWH.js","assets/ActualMatchingMatchDetailScreen-WhvwIzcC.js","assets/RewardsRoutes-DOe7osW-.js","assets/TaskRoutes-vQ9Qc0Wt.js","assets/TaskListScreen-BvZ3nUhV.js","assets/useTaskManagerPusherEvents-mQG4ptVc.js","assets/AiCfoScreen-DFAyr8gH.js","assets/CardsAiCfoScreen-B5X7-nvK.js"])))=>i.map(i=>d[i]);
2
- import{_ as s,bn as Es,fI as hs,e0 as ps,d$ as xs,Bl as gs,dj as Rs,c9 as js,gM as Is,gc as Ts,dg as pe,cH as As,gq as fs,cz as bs,bF as Ds,br as ys,UE as vs,v as Cs,UH as Os,bq as Us,UI as Ps,bL as ws,bK as Fs,bu as Ls,cv as Hs,UJ as Vs,UK as ks,db as Bs,de as Ss,dd as Ns,cG as Ms,cN as Zs,pW as xe,gl as ge,h0 as $s,gn as Re,gO as je,gP as Ie,go as zs}from"./zeni-epic-state-yHa8unrA.js";import{j as e}from"./liveblocks-CcAJDSgG.js";import{a as P}from"./sentry-Bo3euLoP.js";import{N as u,u as Gs,h as qs,i as Ws,g as Ys,j as $,q as Te,n as Js,o as n}from"./core-C32E0M-A.js";import{J as l,u as Ks,z as y,W as Qs,d as Xs,B as et,A as S,f as st,M as tt,V as nt,L as F,G as Ae,t as _,P as at,N as ot,j as ne}from"./index-DCtJNiUy.js";import{u as rt}from"./mui-Ba-vLBC4.js";import{f as fe}from"./analyticsHelper-kcXI5tFD.js";import{t as it}from"./getLocaleForTenant-B7DrNxDF.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},b=new o.Error().stack;b&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[b]="6467d9f4-3287-4df5-9b09-08e3ff4ebf32",o._sentryDebugIdIdentifier="sentry-dbid-6467d9f4-3287-4df5-9b09-08e3ff4ebf32")}catch{}})();const lt=l((()=>s((()=>import("./NotFoundScreen-DiKdubNF.js")),__vite__mapDeps([0,1,2,3,4,5,6,7,8])))),ut=({tenantEmailDomain:o})=>e.jsx(u,{to:`/${o}/reimbursements`}),dt=({tenantEmailDomain:o})=>e.jsx(u,{to:`/${o}/bills`}),be=({tenantEmailDomain:o})=>e.jsx(u,{to:`/${o}/treasury`}),De=({tenantEmailDomain:o})=>e.jsx(u,{to:`/${o}/checking`}),ye=({tenantEmailDomain:o})=>e.jsx(u,{to:`/${o}/cards`}),v=({showZeniAccountRoute:o,isUserHasBillPayAccess:b,isUserHasReimbursementAccess:N,showTreasuryRoute:i,isTenantBankingOnly:H,showChargeCardRoute:O,tenantEmailDomain:C})=>{if(H===!0){if(o)return e.jsx(De,{tenantEmailDomain:C});if(i)return e.jsx(be,{tenantEmailDomain:C});if(O)return e.jsx(ye,{tenantEmailDomain:C})}return o?e.jsx(De,{tenantEmailDomain:C}):i?e.jsx(be,{tenantEmailDomain:C}):O?e.jsx(ye,{tenantEmailDomain:C}):b?e.jsx(dt,{tenantEmailDomain:C}):N?e.jsx(ut,{tenantEmailDomain:C}):e.jsx(lt,{})},ct={dashboard:()=>s((()=>import("./DashboardRoutes-DUDSVl0J.js")),__vite__mapDeps([9,1,2,3,4,5,6,7,10,11,12,13,14,15,16,17,0,18,19,20,21,22,23,24,8])),bills:()=>s((()=>import("./BillPayRoutes-Cfhufn9I.js")),__vite__mapDeps([25,1,2,3,4,5,6,7,26,0,27,11,14,28,15,20,21,22,29,24,30,18,31,32,33,8])),reimbursement:()=>s((()=>import("./ReimbursementRoutes-BIilRUCw.js")),__vite__mapDeps([34,1,2,3,4,5,6,7,0,30,28,15,20,21,22,18,24,11,14,29,35,32,33,8])),transactions:()=>s((()=>import("./TransactionListRoutes-DXtggfuW.js")),__vite__mapDeps([36,1,2,3,4,5,6,7,10,11,12,13,14,15,16,17,37,8])),settings:()=>s((()=>import("./SettingsRoutes-DsKTn4YF.js")),__vite__mapDeps([38,1,2,3,4,5,6,7,22,39,20,21,40,41,42,43,44,13,45,26,0,18,28,15,19,46,31,32,35,8])),reports:()=>s((()=>import("./ReportsRoutes-DGD0Kisc.js")),__vite__mapDeps([47,1,2,3,4,5,6,7,0,24,14,15,20,21,22,8])),chargeCards:()=>s((()=>import("./ChargeCardRoutes-DKflGNQM.js")),__vite__mapDeps([48,1,2,3,4,5,6,7,11,20,21,22,30,28,15,0,18,14,49,26,8])),people:()=>s((()=>import("./PeopleRoutes-Dpf-nOzf.js")),__vite__mapDeps([50,1,2,3,4,5,6,7,0,11,20,21,22,8])),expenseAutomation:()=>s((()=>import("./ExpenseAutomationRoutes-CWCG6f-Z.js")),__vite__mapDeps([51,1,2,3,0,4,5,6,7,11,12,13,14,15,16,52,17,10,53,54,45,29,8])),treasury:()=>s((()=>import("./TreasuryRoutes-lxwEfAXe.js")),__vite__mapDeps([55,1,2,3,4,5,6,7,0,30,28,15,20,21,22,18,11,14,24,8])),vendors:()=>s((()=>import("./VendorsRoutes-BuuNVNIw.js")),__vite__mapDeps([56,1,2,3,4,5,6,7,26,0,24,53,54,15,11,20,21,22,29,45,8])),zeniAccounts:()=>s((()=>import("./ZeniAccountRoutes-DDXr_ULo.js")),__vite__mapDeps([57,1,2,3,4,5,6,7,0,30,28,15,20,21,22,18,24,27,26,11,37,8]))},mt=["bills","transactions","settings","reimbursement","reports","chargeCards","people"],ae=o=>{"requestIdleCallback"in window?requestIdleCallback(o):setTimeout(o,100)},_t=l((()=>s((()=>import("./ReportsRoutes-DGD0Kisc.js")),__vite__mapDeps([47,1,2,3,4,5,6,7,0,24,14,15,20,21,22,8])))),Et=l((()=>s((()=>import("./AddressRoutes-y8YhHSJR.js")),__vite__mapDeps([58,1,2,3,26,4,5,6,7,0,8])))),ht=l((()=>s((()=>import("./PeopleRoutes-Dpf-nOzf.js")),__vite__mapDeps([50,1,2,3,4,5,6,7,0,11,20,21,22,8])))),pt=l((()=>s((()=>import("./PandLWithForecastRoutes-DwmnvviI.js")),__vite__mapDeps([59,1,2,3,4,5,6,7,0,24,11,14,15,20,21,22,8])))),xt=l((()=>s((()=>import("./CustomerOnboardingRoutes-DOhBde9s.js")),__vite__mapDeps([60,1,2,3,26,4,5,6,7,0,40,41,42,43,44,13,46,49,8])))),gt=l((()=>s((()=>import("./VendorsRoutes-BuuNVNIw.js")),__vite__mapDeps([56,1,2,3,4,5,6,7,26,0,24,53,54,15,11,20,21,22,29,45,8])))),Rt=l((()=>s((()=>import("./TransactionDetailRoutes-BnI9Ohm4.js")),__vite__mapDeps([61,1,2,3,0,4,5,6,7,12,11,13,14,15,16,8])))),ve=l((()=>s((()=>import("./EntityDetailRoutes-DWi6isSB.js")),__vite__mapDeps([62,1,2,3,4,5,6,7,13,10,11,12,14,15,16,17,8])))),jt=l((()=>s((()=>import("./DashboardRoutes-DUDSVl0J.js")),__vite__mapDeps([9,1,2,3,4,5,6,7,10,11,12,13,14,15,16,17,0,18,19,20,21,22,23,24,8])))),Ce=l((()=>s((()=>import("./BillPayRoutes-Cfhufn9I.js")),__vite__mapDeps([25,1,2,3,4,5,6,7,26,0,27,11,14,28,15,20,21,22,29,24,30,18,31,32,33,8])))),It=l((()=>s((()=>import("./SettingsRoutes-DsKTn4YF.js")),__vite__mapDeps([38,1,2,3,4,5,6,7,22,39,20,21,40,41,42,43,44,13,45,26,0,18,28,15,19,46,31,32,35,8])))),Tt=l((()=>s((()=>import("./InvoicingRoutes-By0wmZnY.js")),__vite__mapDeps([63,1,2,3,4,5,6,7,26,0,20,21,22,40,41,42,43,44,13,8])))),Oe=l((()=>s((()=>import("./ReimbursementRoutes-BIilRUCw.js")),__vite__mapDeps([34,1,2,3,4,5,6,7,0,30,28,15,20,21,22,18,24,11,14,29,35,32,33,8])))),At=l((()=>s((()=>import("./ZeniAccountRoutes-DDXr_ULo.js")),__vite__mapDeps([57,1,2,3,4,5,6,7,0,30,28,15,20,21,22,18,24,27,26,11,37,8])))),ft=l((()=>s((()=>import("./TreasuryRoutes-lxwEfAXe.js")),__vite__mapDeps([55,1,2,3,4,5,6,7,0,30,28,15,20,21,22,18,11,14,24,8])))),bt=l((()=>s((()=>import("./TransactionListRoutes-DXtggfuW.js")),__vite__mapDeps([36,1,2,3,4,5,6,7,10,11,12,13,14,15,16,17,37,8])))),Dt=l((()=>s((()=>import("./ChargeCardRoutes-DKflGNQM.js")),__vite__mapDeps([48,1,2,3,4,5,6,7,11,20,21,22,30,28,15,0,18,14,49,26,8])))),yt=l((()=>s((()=>import("./NotificationRoutes-DXwqR_6J.js")),__vite__mapDeps([64,1,2,3,0,4,5,6,7,11,22,8])))),vt=l((()=>s((()=>import("./PerformanceRoutes-9mPYusWH.js")),__vite__mapDeps([65,1,2,3,0,4,5,6,7,11,20,21,22,8])))),Ct=l((()=>s((()=>import("./ExpenseAutomationRoutes-CWCG6f-Z.js")),__vite__mapDeps([51,1,2,3,0,4,5,6,7,11,12,13,14,15,16,52,17,10,53,54,45,29,8])))),Ot=l((()=>s((()=>import("./ActualMatchingMatchDetailScreen-WhvwIzcC.js")),__vite__mapDeps([66,1,2,3,4,5,6,7,52,17,13,15,0,8])))),Ut=l((()=>s((()=>import("./RewardsRoutes-DOe7osW-.js")),__vite__mapDeps([67,1,2,3,4,5,6,7,0,8])))),Pt=l((()=>s((()=>import("./TaskRoutes-vQ9Qc0Wt.js")),__vite__mapDeps([68,1,2,3,0,4,5,6,7,14,20,21,22,69,11,70,8])))),wt=l((()=>s((()=>import("./AiCfoScreen-DFAyr8gH.js")),__vite__mapDeps([71,1,2,3,4,5,6,7,23,54,15,70,8])))),Ue=l((()=>s((()=>import("./CardsAiCfoScreen-B5X7-nvK.js")),__vite__mapDeps([72,1,2,3,4,5,6,7,8])))),f=l((()=>s((()=>import("./NotFoundScreen-DiKdubNF.js")),__vite__mapDeps([0,1,2,3,4,5,6,7,8])))),Ft=l((()=>s((()=>import("./TaskListScreen-BvZ3nUhV.js").then((o=>o.f))),__vite__mapDeps([69,1,2,3,4,5,6,7,11,20,21,22,70,8])))),Lt=({isDashboardAccess:o,showZeniAccountRoute:b,isUserHasBillPayAccess:N,isUserHasReimbursementAccess:i,showTreasuryRoute:H,isTenantBankingOnly:O,isTenantCardsOnly:C,showChargeCardRoute:V})=>{if(O===!0){if(b)return e.jsx(u,{to:"checking"});if(H)return e.jsx(u,{to:"treasury"});if(V)return e.jsx(u,{to:"cards"})}return C===!0&&V?e.jsx(u,{to:"cards"}):o?e.jsx(u,{to:"dashboard"}):b?e.jsx(u,{to:"checking"}):H?e.jsx(u,{to:"treasury"}):V?e.jsx(u,{to:"cards"}):N?e.jsx(u,{to:"bills"}):i?e.jsx(u,{to:"reimbursements"}):e.jsx(u,{to:"dashboard"})},Pe=({tenantEmailDomain:o})=>e.jsx(u,{to:`/${o}/dashboard`}),$t=Object.freeze(Object.defineProperty({__proto__:null,default:function({setTenantEmailDomain:o}){const b=Gs(),N=qs(),{tenantEmailDomain:i}=Ws(),H=rt().mode,{setLoading:O,clearAllLoading:C,clearLoading:V}=Ks(),D=y.getSignedInUserTenant(i)?.tenantId,I=y.getSignedInUser(),J=Es(I),z=Ys(),[L,we]=P.useState(!1),r=$((a=>hs(a))),{useFeatureGate:k}=Qs(),M=Xs(),K=et(),Fe=!!r.company?.companyZeniAccountInfo?.isZeniAccountEnabled,Le=r.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",{isFeatureEnabled:He}=k(S.isChargeCardFeatureEnabled),{isFeatureEnabled:oe}=k(S.isDebitCardFeatureEnabled),T=$((a=>a.tenantState.fetchState)),p=$((a=>a.tenantState.activeTenantFetchState.fetchState)),E=p==="Completed"||T==="Completed"?ps(oe,r):void 0,Q=p==="Completed"||T==="Completed"?xs(r):void 0,re=p==="Completed"||T==="Completed"?gs(r)&&!Rs(r):void 0,Ve=st(r,He,oe),{isCardsHidden:ke}=tt(r?.tenantId),Be=!Ve||!!ke,{isFeatureEnabled:Se}=k(S.isSettingsFeatureEnabled),{isFeatureEnabled:X}=k(S.isAiCfoFileUploadEnabled),{isFeatureEnabled:Ne}=k(S.isInvoicingFeatureEnabled??"is_invoicing_feature_enabled"),Me=Ne||ot==="DEV",Ze=r?.userRole!=null&&js(r.userRole),G=$((a=>Is(a)));if(i!=null){const a=y.getSignedInUserTenant(i);I!=null&&a!=null&&fe(I,r,H)}const Z={tenantId:D,userId:I?.userId,sessionId:I?.zeniSessionId},ie=Ts(),h=nt(),$e=r.company==null||h?.loggedInUserRoleMap!=null&&pe(h.loggedInUserRole),ze=As(h?.loggedInUserRoleMap),ee=Te("/:tenantEmailDomain/onboarding/*")!==null,Ge=Te("/:tenantEmailDomain/month_end_close_checks/review/:selectedTab/:selectedPeriod/*"),se=Ge?.params.selectedPeriod,qe=$((a=>Z.tenantId!=null?fs(a,Z.tenantId):void 0));P.useEffect((()=>{O(F.TENANT_FETCHING),o(i)}),[i]),P.useEffect((()=>{if(se!=null&&D!=null){const a=se.split("-");if(a.length===2){const A=bs(Number(a[0])),c=Number(a[1]),t=Ds(`01-${A<10?`0${A}`:A}-${c}`,Ae.getLocalizedStrings().dateFormat.analytics.DDDashMMDashYYYY),d=ys();t.isAfter(d,"month")===!1?b(vs(D,{month:A,year:c})):N(`/${i}/month_end_close_checks/review`)}}}),[se,i,D]),P.useEffect((()=>{L||(we(!0),O(F.TENANT_FETCHING))}),[L,Z,ie,I,b,y]),P.useLayoutEffect((()=>{!Cs(ie,Z)&&y.isSignedIn()&&(O(F.TENANT_FETCHING),(function(a,A,c,t){if(ge(A?.userId,A?.zeniSessionId,a.tenantId),c($s(!0)),c(Re(a.tenantId)),a.tenantId!=null&&_.clearTenant(a.tenantId),a.tenantId!=null){const d=y.getSignedInUserTenantWithId(a.tenantId);t&&Ae.updateAppLocaleID(it(t)),d?.tenantEmailDomain!=null&&y.saveActiveTenantDomainForUser(d?.tenantEmailDomain)}a.userId!=null?ne.identify(a.userId,{tenant_id:a.tenantId}):ne.resetUserIdentity()})(Z,I,b,qe))}),[D]),P.useEffect((()=>{y.isSignedIn()&&(O(F.TENANT_FETCHING),(function(a,A,c,t,d,q,B){if(c==null&&t==null)return void console.warn("There is no current tenant selected!!");const W=t!=null&&d?.zeniSessionId!=null,cs=c==null||c.tenantId!==t,ms=c!=null&&c.excludedResources==null,_s=c!=null&&c.externalConnections==null;if(W&&cs){B(Re(t));const Y=y.getSignedInUserTenantWithId(t);Y?.tenantEmailDomain!=null&&y.saveActiveTenantDomainForUser(Y?.tenantEmailDomain),ge(d?.userId,d?.zeniSessionId,t),_.shouldFetchExcludedResources(t)&&(_.markExcludedResourcesFetchStarted(t),B(je(d.userId,t))),_.shouldFetchConnections(t)&&(_.markConnectionsFetchStarted(t),B(Ie(d.userId,t)))}else W&&ms&&_.shouldFetchExcludedResources(t)&&(_.markExcludedResourcesFetchStarted(t),B(je(d.userId,t))),W&&_s&&_.shouldFetchConnections(t)&&(_.markConnectionsFetchStarted(t),B(Ie(d.userId,t)));if(W){ne.identify(d.userId,{tenant_id:t});const Y=t==null||t!=null&&(A==="Completed"||A==="Error");a==="Completed"||A!=="Not-Started"&&A!=="Error"||t==null||!_.shouldFetchActiveTenant(t)||(_.markActiveTenantFetchStarted(t),q(F.TENANT_FETCHING),B(zs(d.userId,t,d.zeniSessionId))),Y&&(a==="Not-Started"||a==="Error")&&_.shouldFetchAllTenants()&&(_.markAllTenantsFetchStarted(),B(xe(d.userId,d.zeniSessionId)))}})(T,p,r,D,I,O,b))}),[D,p]),P.useEffect((()=>{y.isSignedIn()&&T==="Completed"&&G.tenantsBaseInOrder.length>0&&(V(F.TENANT_FETCHING),y.saveSignedInUserTenants(Os(G.tenantsBaseInOrder)),I!=null&&fe(I,r,H,void 0,G.tenantsBaseInOrder))}),[G,T,r,I]),P.useEffect((()=>{p==="In-Progress"&&O(F.TENANT_FETCHING),p!=="Completed"&&p!=="Error"||(p==="Completed"&&D!=null?(C(),_.markActiveTenantFetchCompleted(D)):p==="Error"&&D!=null&&(_.markActiveTenantFetchFailed(D),V(F.TENANT_FETCHING),V(F.TENANT_SWITCHING))),T!=="Completed"&&T!=="Error"||(T==="Completed"?_.markAllTenantsFetchCompleted():T==="Error"&&_.markAllTenantsFetchFailed())}),[p,T,D,L]);const le=P.useRef(!1);P.useEffect((()=>{!le.current&&p==="Completed"&&L&&(le.current=!0,(function(a=mt,A=3e3){setTimeout((()=>{const c=t=>{if(t>=a.length)return;const d=a[t],q=ct[d];q!=null?q().then((()=>ae((()=>c(t+1))))).catch((()=>ae((()=>c(t+1))))):c(t+1)};ae((()=>c(0)))}),A)})())}),[p,L]);const U=r?.userRole!=null&&Us(r?.userRole),{isFeatureEnabled:We}=k(S.isReferralFeatureEnabled),{isFeatureEnabled:Ye}=k(S.isAccrualEnabled),Je=r?.userRole!=null&&r.userRole.includes("charge_card_user"),Ke=r?.userRole!=null&&r.userRole.includes("charge_card_admin"),w=r?.userRole!=null&&pe(r.userRole),ue=r?.company==null||r.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!U,de=!Be&&!U,Qe=Ps(h?.loggedInUserRoleMap),Xe=r.externalConnections?.accounting[0]?.isValid,es=r.externalConnections?.fetchState==="Completed",te=r.company?.companyOnboardingInfo.isOnboardingCompleted,ce=r?.company==null||r.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!U,me=ce&&ws(h?.loggedInUserRoleMap),_e=Fe&&!U,ss=Le&&!U,ts=ue&&Fs(h?.loggedInUserRoleMap),ns=de&&Ls(h?.loggedInUserRoleMap),as=_e&&Hs(h?.loggedInUserRoleMap),os=Vs(h?.loggedInUserRoleMap),rs=ks(h?.loggedInUserRoleMap),is=Bs(h?.loggedInUserRoleMap),ls=Ss(h?.loggedInUserRoleMap),us=Ns(h?.loggedInUserRoleMap),x=Ms(h?.loggedInUserRoleMap),g=Zs(h?.loggedInUserRoleMap),Ee=ue&&x,he=ce&&g,R=_e&&is,j=ss&&ls,m=de&&us,ds=r.excludedResources?.resources?.find((a=>a.resource==="/invites"))!=null||ze===!0||Qe===!0||os===!0||rs===!0;return y.isSignedIn()?D==null?T==="Completed"?e.jsx(u,{to:"/",replace:!0,state:{...z.state,message:"...",origin:z.pathname}}):(I!=null&&T!=="In-Progress"&&b(xe(I.userId,I.zeniSessionId)),null):p!=="In-Progress"&&p!=="Not-Started"||T==="Completed"?(te===!0||J&&!ee)&&es&&Xe!==!0&&E===!1&&Q===!1&&re===!1?(o(void 0),e.jsx(u,{to:"/connection/auth",replace:!0})):!L||re!==!0||te!==!0||ee||J?!L||te!==!1||ee||J?L&&r?.userRole&&E!=null&&Q!=null&&i!=null&&Object.keys(h.loggedInUserRoleMap).length>0?e.jsx(Js,{children:e.jsxs(n,{element:e.jsx(at,{}),children:[e.jsx(n,{path:"/",element:e.jsx(Lt,{isDashboardAccess:w,showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:j,isTenantBankingOnly:E,isTenantCardsOnly:Q,showChargeCardRoute:m})}),e.jsx(n,{path:"dashboard/*",element:w?e.jsx(jt,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"reports/*",element:w?e.jsx(_t,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"people/*",element:ds||w?e.jsx(ht,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"forecast/*",element:w?e.jsx(pt,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"onboarding/*",element:e.jsx(xt,{})}),e.jsx(n,{path:"transaction/*",element:w&&U===!1||Je||Ke?e.jsx(Rt,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"transactions/*",element:w&&U===!1?e.jsx(bt,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"customer/*",element:w&&U===!1?e.jsx(ve,{entityType:"customer"}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,isTenantBankingOnly:E,showTreasuryRoute:j,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"vendor/*",element:w&&U===!1?e.jsx(ve,{entityType:"vendor"}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"tasks",element:e.jsx(Ft,{})}),e.jsx(n,{path:"tasks/*",element:e.jsx(Pt,{})}),e.jsx(n,{path:"address/*",element:ts||me||as||ns?e.jsx(Et,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"checking/*",element:R?e.jsx(At,{}):e.jsx(f,{})}),e.jsx(n,{path:"treasury/*",element:j?e.jsx(ft,{}):e.jsx(f,{})}),e.jsx(n,{path:"performance",element:K===!0?e.jsx(vt,{}):e.jsx(Pe,{tenantEmailDomain:i})}),e.jsx(n,{path:"month_end_close_checks/review/*",element:K===!0&&U===!1?e.jsx(Ct,{}):e.jsx(Pe,{tenantEmailDomain:i})}),e.jsx(n,{path:"expense-automation/actual-matching/:matchId",element:K===!0&&U===!1&&Ye===!0?e.jsx(Ot,{}):e.jsx(f,{})}),e.jsx(n,{path:"notifications/*",element:e.jsx(yt,{})}),e.jsx(n,{path:"vendors/*",element:$e?e.jsx(gt,{}):e.jsx(f,{})}),e.jsx(n,{path:"bill/*",element:Ee?e.jsx(Ce,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"bills/*",element:Ee?e.jsx(Ce,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"reimbursement/*",element:he?e.jsx(Oe,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"reimbursements/*",element:he?e.jsx(Oe,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"settings/*",element:Se?e.jsx(It,{hasAdminLevelAccess:me}):e.jsx(f,{})}),e.jsx(n,{path:"invoicing/*",element:Me&&Ze?e.jsx(Tt,{}):e.jsx(f,{})}),e.jsx(n,{path:"cards/ask",element:m&&M?e.jsx(Ue,{isFileUploadEnabled:X}):e.jsx(f,{})}),e.jsx(n,{path:"cards/ask/:session_id",element:m&&M?e.jsx(Ue,{isFileUploadEnabled:X}):e.jsx(f,{})}),e.jsx(n,{path:"cards/*",element:m?e.jsx(Dt,{}):e.jsx(f,{})}),e.jsx(n,{path:"rewards/*",element:We?e.jsx(Ut,{}):e.jsx(f,{})}),e.jsx(n,{path:"/ai-cfo",element:M?e.jsx(u,{to:"explore"}):e.jsx(f,{})}),e.jsx(n,{path:"/ai-cfo/",element:M?e.jsx(u,{to:"explore"}):e.jsx(f,{})}),e.jsx(n,{path:"/ai-cfo/:session_id",element:M?e.jsx(wt,{isFileUploadEnabled:X}):e.jsx(f,{})}),e.jsx(n,{path:"*",element:e.jsx(f,{})})]})}):null:(o(void 0),e.jsx(u,{to:`/${i}/onboarding`,replace:!0})):(o(void 0),e.jsx(u,{to:`/${i}/onboarding/thankyou`,replace:!0})):null:(console.warn("User logged out!!"),o(void 0),e.jsx(u,{to:"/signin/auth",replace:!0,state:{...z.state,message:"...",origin:z.pathname}}))}},Symbol.toStringTag,{value:"Module"}));export{v as F,$t as S};
@@ -1 +0,0 @@
1
- import{j as u}from"./liveblocks-CcAJDSgG.js";import{a as f,R as T,t as A}from"./sentry-Bo3euLoP.js";import{u as z,h as D,j as l,g as M,N as O,l as j}from"./core-C32E0M-A.js";import{u as P,z as s,j as E,G as F,O as _,Q as N,R as B,S as R,T as V,U as v}from"./index-DCtJNiUy.js";import{fI as $,Un as H,UH as J,gl as Q,gn as W,UM as Y,gY as G,dk as q,UN as U,UO as K,UP as X,c0 as b}from"./zeni-epic-state-yHa8unrA.js";import{u as Z}from"./mui-Ba-vLBC4.js";import{u as ee}from"./useDeviceId-D1tbmD3W.js";import{f as te}from"./analyticsHelper-kcXI5tFD.js";import{t as ne}from"./getLocaleForTenant-B7DrNxDF.js";import"./recharts-g8-bInqc.js";import"./analytics-ff6bapqe.js";import"./plaid-CEp7her_.js";import"./dnd-C_Bep5ai.js";import"./stripe-cKAAJElX.js";import"./lottie-DW03v0-7.js";import"./lexical-Byw8jdWu.js";import"./pdf-B6gXz38d.js";import"./utils-CY3YGcdR.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]="b6ac76a6-e52b-41b9-b385-6d0f3a90b5c4",t._sentryDebugIdIdentifier="sentry-dbid-b6ac76a6-e52b-41b9-b385-6d0f3a90b5c4")}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:b(c),sourceUri:b(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(U())}}}))(V),ae=T.memo(ie);function ve({setTenantEmailDomain:t}){const i=z(),d=D(),{clearAllLoading:g}=P(),n=s.getSignedInUser();f.useLayoutEffect((()=>{g()}),[g]);const a=ee(),c=l((e=>e.tenantState.magicLinkCodeVerifier)),{sendEmailMagicLinkFetchState:k,accountLocked:y,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=>H(e))),m=M(),w=Z().mode,C=m.state?.magicLinkExpired,x=m.state?.magicLinkAlreadyUsed;if(f.useEffect((()=>{k.fetchState==="Completed"&&c!=null&&(E.trackSignInLinkSent(),s.saveMagicLinkCodeVerifier(c))}),[k.fetchState,c]),f.useEffect((()=>{t(void 0)}),[]),f.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(J(I.tenantsInOrder),o.zeniSessionId),Q(o.userId,o.zeniSessionId,r.tenantId),i(W(r.tenantId)),s.saveActiveTenantDomainForUser(r.tenantEmailDomain),i(Y("Completed")),F.updateAppLocaleID(ne(r)),te(o,r,w,void 0,I.tenantsInOrder),G().then((()=>{const e=R();e!=null&&_(e)})),setTimeout((()=>{E.trackLogin(N.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 u.jsx(O,{to:e,state:{...m.state,origin:""}})}return u.jsxs(u.Fragment,{children:[u.jsx(ae,{magicLinkExpired:!!C,magicLinkAlreadyUsed:!!x,magicLinkExpiredEmail:s.getMagicLinkEmail()??void 0,location:m,navigate:d,deviceId:a??void 0,showEmailLogin:!0}),y===!0&&L!=null?u.jsx(B,{onClose:()=>i(U()),unlockDate:L}):null]})}export{ve as default};
@@ -1,9 +0,0 @@
1
- import{j as i}from"./liveblocks-CcAJDSgG.js";import he from"./NotFoundScreen-DiKdubNF.js";import{a as k}from"./sentry-Bo3euLoP.js";import{h as te,u as ne,j as g,g as Ee,i as De,N as Ie,l as be,n as Ce,o as E}from"./core-C32E0M-A.js";import{Qq as oe,Qt as Ge,Qn as ye,a2x as Ue,fI as re,a2y as ie,QU as I,QH as D,Qk as _e,Rn as Ae,Rg as Re,a2z as ce,gk as le,a2A as H,Qg as ve,Qd as Be,v2 as xe,uS as we,mD as je,QF as Pe,a2B as Fe,Rz as Ke,QB as Le,R2 as Qe,Q$ as $e,Qw as Ne,QY as ze,QR as Ze}from"./zeni-epic-state-yHa8unrA.js";import{z as b,e1 as Oe,K as Ve,W as qe,A as U,a2 as de,p as _,a6 as Me,j as J,Q as We,e2 as Ye,U as X,ac as He}from"./index-DCtJNiUy.js";import{n as Je}from"./mui-Ba-vLBC4.js";import{u as Xe}from"./useInitialThreadRequest-DitWfieX.js";import{M as ea}from"./MobileAppDrawer-DeMnqMws.js";import{T as m,t as aa,b as sa,a as ta,c as na,d as ee,e as oa}from"./TaskListScreen-BvZ3nUhV.js";import{u as ra}from"./useTaskManagerPusherEvents-mQG4ptVc.js";import"./recharts-g8-bInqc.js";import"./analytics-ff6bapqe.js";import"./plaid-CEp7her_.js";import"./dnd-C_Bep5ai.js";import"./stripe-cKAAJElX.js";import"./lottie-DW03v0-7.js";import"./lexical-Byw8jdWu.js";import"./pdf-B6gXz38d.js";import"./utils-CY3YGcdR.js";import"./InboxNotificationsProvider-CnIopK35.js";import"./useTaskManagerAccess-DP5KTNvW.js";import"./useAskAiCfoHostNavButtonProps-BO9PbO4e.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]="5c2f1082-d282-4292-847f-29a89e0ed2e7",e._sentryDebugIdIdentifier="sentry-dbid-5c2f1082-d282-4292-847f-29a89e0ed2e7")}catch{}})();function ia(){const e=te(),a=ne(),n=b.getSignedInUser(),{cannedResponses:c,fetchState:t,saveFetchState:l}=g((r=>r.cannedResponsesState)),d=k.useCallback((()=>{a(oe())}),[a]),S=k.useCallback(((r,C,G)=>{a(Ge({name:r,content:C,cannedResponseId:G}))}),[a]),s=k.useCallback((r=>{a(ye({cannedResponseId:r}))}),[a]);if(n==null)throw Error("Can't access quick responses page without signing in...");return i.jsx(Oe,{cannedResponses:c,isLoading:t==="In-Progress"||t==="Not-Started",isSaving:l==="In-Progress",onBackClick:()=>e(-1),onDelete:s,onFetch:d,onSave:S})}const Q=e=>e?.taskState?.taskByID,K=(e,a)=>{const n=Q(e);if(a!=null&&n!=null)return n[a]?.parentTaskId??void 0},ca=Ue([K,(e,a)=>{const n=K(e,a),c=Q(e);if(n!=null&&c!=null)return c[n]?.name},(e,a)=>{const n=K(e,a),c=Q(e);return n!=null&&c!=null&&c[n]!=null}],((e,a,n)=>{if(e!=null&&n===!0)return{id:e,name:a??""}}));let ae,se=[];const la=be((function(e,a){const{location:n,taskGroupId:c}=a,t=ce(e,a.taskId),l=re(e),d=ca(e,a.taskId),S=t.taskGroupId??c,s=S!=null?H(e.taskGroupState,S):void 0,r=b.getSignedInUser(),C=l.tenantId,G={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:C??""},B=ie(e),{tenantEmailDomain:x}=l,A=t.recurringSourceTaskId,w=A!=null?`${X.appUrl}/${x}/tasks/${encodeURIComponent(A)}`:void 0;var h;return{taskDetailSelectorView:t,authParams:G,isZeniUser:b.isZeniUser(),userGroupList:((h=e.userGroupsState.userGroupByUserGroupId)!==ae&&(ae=h,se=Object.values(h)),se),isNewClicked:n.state?.message==="comingFromTaskListPage",filesEndPoint:He.fileMicroServiceBaseUrl,companyName:a.currentTenant.companyName,companyId:a.currentTenant.companyId,currentUrl:`${X.appUrl}${a.location.pathname}`,cannedResponses:e.cannedResponsesState.cannedResponses,isCannedResponsesLoading:e.cannedResponsesState.fetchState==="In-Progress",recurringSourceTaskUrl:w,tagListView:B,taskGroupName:S!=null&&s!=null&&s.isDefault===!1?s.name:void 0,taskGroupList:e.taskGroupViewState.taskGroupsIds.map((f=>H(e.taskGroupState,f))).filter((f=>f!=null&&!f.isDeleted)).map((f=>({id:f.id,name:f.name,isDefault:f.isDefault}))),subtasks:t.subtasks,parentTaskRef: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(ze(n,s??d))},onArchiveTaskClick:()=>{a.taskId!=null&&e(Ne(a.taskId))},onSnoozeTask:(s,r)=>{e($e(s,r))},onUnsnoozeTask:s=>{e(Qe(s))},onCreateSubtask:(s,r)=>{e(Le({...r,parentTaskId:s}))},onSubtaskUpdate:(s,r)=>{e(Ke({task:s,updates:r}))},onShowToast:s=>{e(le(s))},onSubtaskRowClick:s=>{c(`/${S}/tasks/${s}`,{state:{pathnameStackToGoBack:_(l.state?.pathnameStackToGoBack,l.pathname)}})},onParentBreadcrumbClick:s=>{c(`/${S}/tasks/${s}`,{state:{pathnameStackToGoBack:_(l.state?.pathnameStackToGoBack,l.pathname)}})},onDismissClick:()=>{if(l.state?.message==="triggerBackClick"){const s=de(l.state?.pathnameStackToGoBack),r=s.poppedPathname??"../../dashboard";c(r,{state:{pathnameStackToGoBack:s.newStack}})}else{const s=v(S),r=_(l.state?.pathnameStackToGoBack,l.pathname);c(s,{state:{pathnameStackToGoBack:r}})}e(Fe({taskId:n}))},onDeleteTaskClick:()=>{e(Pe(n))},updateFilesEntity:s=>{e(je({files:s}))},onDeleteFile:s=>{e(we(s))},onEditFileName:(s,r)=>{e(xe(s,r.split(".")[0]))},onReloadTaskDetailPage:()=>{e(I(!1,n))},onCreateTagClick:s=>{e(Be(s,n))},onDeleteTagClick:s=>{e(ve(s,n))},onFetchCannedResponses:()=>{e(oe())},onManageTemplatesClick:()=>{c(`/${t.tenantEmailDomain}/tasks/quick-responses`)}}}))(Ye);function L(){const e=te(),a=ne(),n=Ee(),c=Ve(),{taskId:t,taskGroupId:l}=De(),d=g((o=>re(o))),S=Xe(d?.companyId),{useFeatureGate:s}=qe(),{isFeatureEnabled:r}=s(U.isTaskSnoozeEnabled),{isFeatureEnabled:C}=s(U.isTaskVisibilityEnabled),{isFeatureEnabled:G}=s(U.isTaskCannedResponsesEnabled),{isFeatureEnabled:B}=s(U.isTaskRecurringParentEnabled),{isFeatureEnabled:x}=s(U.isTaskGroupAssigneesEnabled),[A,w]=k.useState(!1),[h,f]=k.useState(!1),[$,ue]=k.useState(!1),[N,j]=k.useState(!1),y=k.useRef(!1),R=g((o=>o.taskListState.updateTasksFetchState.fetchState)),z=g((o=>ie(o))),Z=g((o=>o.taskGroupViewState.fetchState));k.useEffect((()=>{a(I(!1,t)),t!=null&&a(D(t))}),[a,t]);const O=b.getSignedInUser()?.userId,ke=b.isZeniUser(),pe=g((o=>t!=null?o.taskState.taskByID[t]?.syncToken:void 0)),V=()=>{d?.tenantEmailDomain!=null&&e(v(d.tenantEmailDomain))},q=()=>{a(le({messageSection:"delete_task",messageText:"success",type:"success"})),V()},me=k.useMemo((()=>{const o=[m.TASK_CREATED,m.TASK_UPDATED,m.TASKS_BULK_UPDATED,m.TASKS_BULK_DELETED],u=[...o,m.TASK_SNOOZE_RESURFACED];return[...sa(d?.companyId,o),...ta(O,u)]}),[d?.companyId,O]);ra({events:me,onSubscribed:()=>{t!=null&&(a(I(!0,t)),a(D(t)))},onEvent:(o,u)=>{if(t!=null)switch(o){case m.TASK_CREATED:case m.TASK_UPDATED:{const p=((F,fe,{isZeniUser:Te,storedSyncToken:ge,taskId:Y})=>{if(F!==m.TASK_CREATED&&F!==m.TASK_UPDATED)return"none";const T=aa(fe);return T==null?"none":T.parent_task_id===Y?"refreshSubtasks":F!==m.TASK_UPDATED||T.task_id!==Y?"none":T.is_deleted===!0?"leaveDeleted":T.is_private!==!0||Te?T.sync_token!=null&&T.sync_token===ge?"none":"refreshTask":"leaveNoAccess"})(o,u,{isZeniUser:ke,storedSyncToken:pe,taskId:t});p==="refreshTask"?(a(I(!0,t)),a(D(t))):p==="refreshSubtasks"?a(D(t)):p==="leaveDeleted"?q():p==="leaveNoAccess"&&V();break}case m.TASKS_BULK_UPDATED:{const p=ee(u);if(p==null)break;p.task_ids.includes(t)&&a(I(!0,t)),a(D(t));break}case m.TASKS_BULK_DELETED:{const p=ee(u);if(p==null)break;if(p.task_ids.includes(t)){q();break}a(D(t));break}case m.TASK_SNOOZE_RESURFACED:{na(u)?.task_id===t&&a(I(!0,t));break}}}}),k.useEffect((()=>{h||z.fetchState==="Completed"||(f(!0),a(_e()))}),[h,a,z.fetchState]),k.useEffect((()=>{$||Z==="Completed"||(ue(!0),a(Ae()))}),[$,a,Z]);const Se=k.useCallback((()=>{t!=null&&(y.current=!1,a(Re([t],null,{isArchived:!1})),j(!0))}),[a,t]);k.useEffect((()=>{if(N)if(R!=="In-Progress"){if(y.current){if(R==="Error")return j(!1),void(y.current=!1);if(R==="Completed"){j(!1),y.current=!1;const{tenantEmailDomain:o}=d;if(n.state?.message==="triggerBackClick"){const u=de(n.state?.pathnameStackToGoBack);e(u.poppedPathname??"../../dashboard",{state:{pathnameStackToGoBack:u.newStack}})}else{const u=v(o);e(u,{state:{pathnameStackToGoBack:_(n.state?.pathnameStackToGoBack,n.pathname)}})}}}}else y.current=!0}),[N,R,d,n,e]);const M=g((o=>ce(o,t))),P=M.fetchState,W=b.getSignedInUser();if(W==null)throw Error("Can't access task detail page without signing in...");if(P==="Error"&&M.error?.code===400){const{tenantEmailDomain:o}=d,u=v(o),p=_(n.state?.pathnameStackToGoBack,n.pathname);return i.jsx(Ie,{to:u,state:{pathnameStackToGoBack:p}})}return i.jsxs(i.Fragment,{children:[P==="Completed"?i.jsx(Me,{analytics:J,onLoad:o=>(u=>u.trackPageLoaded(We.Event.taskDetailPage))(o)}):null,i.jsxs(da,{children:[i.jsx(ea,{isAppContentDrawerOpen:A,handleDrawerToggle:o=>{w(o)}}),i.jsx(la,{analytics:J,currentTenant:d,handleZeniLogoClick:()=>{c.toggle()},initialOpenThreadRequest:S,location:n,loggedInUser:W,navigate:e,taskGroupId:l,taskId:t,taskDetailFetchState:P,onUnarchiveTaskClick:Se,isTaskSnoozeEnabled:r,isTaskVisibilityEnabled:C,isTaskCannedResponsesEnabled:G,isTaskRecurringParentEnabled:B,isTaskGroupAssigneesEnabled:x})]})]})}const da=Je.div`
2
- display: flex;
3
- min-height: 100%;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- `,v=e=>`/${e}/tasks`;function wa(){return i.jsxs(Ce,{children:[i.jsx(E,{path:"/new",element:i.jsx(L,{})}),i.jsx(E,{path:"/new/:taskGroupId",element:i.jsx(L,{})}),i.jsx(E,{path:"/group/:taskGroupId",element:i.jsx(oa,{})}),i.jsx(E,{path:"/quick-responses",element:i.jsx(ia,{})}),i.jsx(E,{path:"/:taskId",element:i.jsx(L,{})}),i.jsx(E,{path:"*",element:i.jsx(he,{})})]})}export{wa as default};
@@ -1 +0,0 @@
1
- import{j as t}from"./liveblocks-CcAJDSgG.js";import i from"./NotFoundScreen-DiKdubNF.js";import{T as r}from"./TransactionDetailScreen-gg_jzjg4.js";import"./sentry-Bo3euLoP.js";import{n as a,o as e}from"./core-C32E0M-A.js";import"./zeni-epic-state-yHa8unrA.js";import"./recharts-g8-bInqc.js";import"./index-DCtJNiUy.js";import"./mui-Ba-vLBC4.js";import"./analytics-ff6bapqe.js";import"./plaid-CEp7her_.js";import"./dnd-C_Bep5ai.js";import"./stripe-cKAAJElX.js";import"./lottie-DW03v0-7.js";import"./lexical-Byw8jdWu.js";import"./pdf-B6gXz38d.js";import"./utils-CY3YGcdR.js";import"./useAskAiCfoHostNavButtonProps-BO9PbO4e.js";import"./decodeURIComponentSafe-C5UecJ4I.js";import"./useInitialThreadRequest-DitWfieX.js";import"./routePaths-BGf6E4zO.js";import"./expenseAutomationHelper-DLsy_Ty8.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,9 +0,0 @@
1
- import{j as i}from"./liveblocks-CcAJDSgG.js";import{a as m}from"./sentry-Bo3euLoP.js";import{h as x,u as T,g as j,i as $,j as p}from"./core-C32E0M-A.js";import{TI as s,TH as v,a05 as B,fI as C,a06 as z}from"./zeni-epic-state-yHa8unrA.js";import{_ as D,ac as g,z as E,a5 as L,d3 as P,a2 as _}from"./index-DCtJNiUy.js";import{u as N,n as U}from"./mui-Ba-vLBC4.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]="c6ef5fe9-bd40-4045-a4dd-3e3955d400df",e._sentryDebugIdIdentifier="sentry-dbid-c6ef5fe9-bd40-4045-a4dd-3e3955d400df")}catch{}})();const G=U.div`
2
- display: flex;
3
- height: 100vh;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- `;function F(){const e=x(),n=T(),d=D(),f=j();let{accountId:a}=$(),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=N();m.useEffect((()=>{u||(y(!0),n(v(a??"",!1)))}),[u,n]);const o=p((t=>B(t,a??""))),I=()=>{const t=_(f.state?.pathnameStackToGoBack),S=t.poppedPathname??"..";e(S,{state:{pathnameStackToGoBack:t.newStack}})},r=E.getSignedInUser(),c=p((t=>C(t))),b={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:c.tenantId??""},w=z(a??"")===!0?s:o.zeniAccountDetail?.accountLast4??"",k=c.company?.companyInfo.companyLegalName??c.companyName;if(r==null)throw Error("Can't access address page without signing in...");return o.fetchState!=="Completed"?i.jsx(L,{fetchState:"In-Progress",style:{backgroundColor:h.colors.grey5}}):i.jsx(G,{windowSize:d,children:i.jsx(P,{currentTenantCompanyName:k,statementListView:o,accountLast4:w,onBackClick:I,authParams:b,downloadEndPoint:l})})}export{F as Z};