@zeniai/web-app-ui 5.3.97-prod → 5.3.98-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 (123) hide show
  1. package/dist/assets/{AccountMappingScreen-a2WKt_Zz.js → AccountMappingScreen-DkipdeBd.js} +2 -2
  2. package/dist/assets/{ActualMatchingMatchDetailScreen-Dx-7M6YE.js → ActualMatchingMatchDetailScreen-Yq3IhSD1.js} +1 -1
  3. package/dist/assets/AddressRoutes-C6aHDBRx.js +1 -0
  4. package/dist/assets/{AddressScreen-B6AtGf0I.js → AddressScreen-SveIGGcZ.js} +2 -2
  5. package/dist/assets/AiCfoScreen-C0a5Kz2R.js +22 -0
  6. package/dist/assets/{AppDrawer-DzVpIgUp.js → AppDrawer-iCXzB-Zx.js} +1 -1
  7. package/dist/assets/{BillPayApprovalRoutes-DJpZgSx4.js → BillPayApprovalRoutes-CO68g4sl.js} +1 -1
  8. package/dist/assets/{BillPayRoutes-B-H1Ll5j.js → BillPayRoutes-9Bp55PZY.js} +1 -1
  9. package/dist/assets/{BusinessVerificationPageScreen-COo9gHfR.js → BusinessVerificationPageScreen-BEKu1sS6.js} +2 -2
  10. package/dist/assets/{CardsAiCfoScreen-B0AN6CaH.js → CardsAiCfoScreen-Do3B6xOK.js} +2 -2
  11. package/dist/assets/{ChargeCardRoutes-BkPIQGm3.js → ChargeCardRoutes-TfS6URYe.js} +1 -1
  12. package/dist/assets/{CompanyPassportScreen-jq2fHl7T.js → CompanyPassportScreen-CzgRbofg.js} +1 -1
  13. package/dist/assets/{ConnectionAuthScreen-D99s2v7M.js → ConnectionAuthScreen-BwEBh9bB.js} +1 -1
  14. package/dist/assets/CustomerOnboardingAuthScreen-DxbrkI4o.js +1 -0
  15. package/dist/assets/{CustomerOnboardingRoutes-NBZgL-g8.js → CustomerOnboardingRoutes-B6z9gODa.js} +3 -3
  16. package/dist/assets/{DashboardRoutes-X4weW81R.js → DashboardRoutes-DvqewcQi.js} +3 -3
  17. package/dist/assets/{DefaultTenantHome-vOg3zIzs.js → DefaultTenantHome-DHj0LZf2.js} +1 -1
  18. package/dist/assets/{DomesticWireDetailScreen-BlmhoHMG.js → DomesticWireDetailScreen-NsnrfBbI.js} +1 -1
  19. package/dist/assets/{DrawerScreen-BBbx5mMD.js → DrawerScreen-C-sU_EBz.js} +1 -1
  20. package/dist/assets/{EntityDetailRoutes-D9zCSQQE.js → EntityDetailRoutes-Cd9AUwPz.js} +1 -1
  21. package/dist/assets/{ExpenseAutomationRoutes-CMmzZe2L.js → ExpenseAutomationRoutes-B-LCmWX6.js} +1 -1
  22. package/dist/assets/{FeaturePreviewScreen-DaYVFWL5.js → FeaturePreviewScreen-DHsaAADF.js} +1 -1
  23. package/dist/assets/{HubSpotOAuthCallbackScreen-C8p4bnQA.js → HubSpotOAuthCallbackScreen-CqtvTlMw.js} +1 -1
  24. package/dist/assets/{InboxNotificationsProvider-BGnTxdqM.js → InboxNotificationsProvider-BbgapV9e.js} +1 -1
  25. package/dist/assets/{InvoicingRoutes-DmHiQCAL.js → InvoicingRoutes-CteMwomX.js} +1 -1
  26. package/dist/assets/{MagicLinkRoutes-DFibofPE.js → MagicLinkRoutes-CjOGoDmF.js} +1 -1
  27. package/dist/assets/MagicLinkSignInScreen-Csaci2Yg.js +12 -0
  28. package/dist/assets/{MobileAppDrawer-BB6EHjZm.js → MobileAppDrawer-Dzg3ZYKF.js} +1 -1
  29. package/dist/assets/NotFoundScreen-CSyRIHbc.js +1 -0
  30. package/dist/assets/{NotificationRoutes-BPGYRYGb.js → NotificationRoutes-zC1-rHQB.js} +1 -1
  31. package/dist/assets/{OAuthConsentScreen-07e6KeV_.js → OAuthConsentScreen-BGX1agKv.js} +1 -1
  32. package/dist/assets/{PandLWithForecastRoutes-C_k91sXk.js → PandLWithForecastRoutes-CITu_u8l.js} +1 -1
  33. package/dist/assets/{PaymentLinkScreen-BRUd7xs7.js → PaymentLinkScreen-_UAo_fsM.js} +1 -1
  34. package/dist/assets/PeopleRoutes-B9Skn948.js +22 -0
  35. package/dist/assets/{PerformanceRoutes-CbocqAgg.js → PerformanceRoutes-Bw19vP5H.js} +1 -1
  36. package/dist/assets/{Preview-CoPNQw49.js → Preview-CuBMxPUC.js} +1 -1
  37. package/dist/assets/{QBOConnectionScreen-BZN_FSy4.js → QBOConnectionScreen-DHNNL8-f.js} +1 -1
  38. package/dist/assets/{ReimbursementApprovalRoutes-DAyHmaIc.js → ReimbursementApprovalRoutes-BgKx8N_6.js} +1 -1
  39. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-BOoaZF7P.js → ReimbursementApprovalRuleDetailScreen-C-jZxtX5.js} +1 -1
  40. package/dist/assets/{ReimbursementRoutes-BvbYAz2l.js → ReimbursementRoutes-1GgOF6-S.js} +1 -1
  41. package/dist/assets/{ReportsRoutes-CrYYUNb9.js → ReportsRoutes-DDrHQIpT.js} +1 -1
  42. package/dist/assets/{RewardsRoutes-1bMhjgQ-.js → RewardsRoutes-BDo_jXck.js} +1 -1
  43. package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-DRO3hp2p.js → ScheduleDetailsPrepaidExpensesScreen-Co9SdTEQ.js} +1 -1
  44. package/dist/assets/{ScreenRoutes-BVJSt_Wy.js → ScreenRoutes-5TQ3QdBJ.js} +2 -2
  45. package/dist/assets/{SettingsRoutes-DrV7kRto.js → SettingsRoutes--Mb2rkVX.js} +6 -6
  46. package/dist/assets/{SetupPagesScreen-m_vUbxDJ.js → SetupPagesScreen-E1ySiMh3.js} +1 -1
  47. package/dist/assets/SignInScreen-cOdJloLh.js +1 -0
  48. package/dist/assets/SignOutScreen-D3furmi9.js +9 -0
  49. package/dist/assets/{TaskListScreen-kYjbeYv7.js → TaskListScreen-DgOpvPPF.js} +2 -2
  50. package/dist/assets/{TaskRoutes-DuRVybJv.js → TaskRoutes-BPBfVKWi.js} +2 -2
  51. package/dist/assets/TransactionDetailRoutes-BdBwnPUo.js +1 -0
  52. package/dist/assets/{TransactionDetailScreen-CyFtGeWi.js → TransactionDetailScreen-CEmYD0Tg.js} +1 -1
  53. package/dist/assets/{TransactionListRoutes-C2PWwDL1.js → TransactionListRoutes-BzcrVUiM.js} +1 -1
  54. package/dist/assets/{TreasuryRoutes-wHVCQLW1.js → TreasuryRoutes-Dpl0kdhr.js} +1 -1
  55. package/dist/assets/{VendorsRoutes-CvI1-TaU.js → VendorsRoutes-Bc6Bj7xz.js} +1 -1
  56. package/dist/assets/{WiseConfirmationScreen-BEuSdYcV.js → WiseConfirmationScreen-iFg0baoI.js} +1 -1
  57. package/dist/assets/{ZeniAccountRoutes-75qI1mDE.js → ZeniAccountRoutes-BJVsLkSB.js} +9 -9
  58. package/dist/assets/{ZeniAccountStatementScreen-DGf9ZNfu.js → ZeniAccountStatementScreen-zPoNSIDN.js} +1 -1
  59. package/dist/assets/{accountMappingHelper-CbjvAL8N.js → accountMappingHelper-DTvekvpS.js} +1 -1
  60. package/dist/assets/{analytics-C5pGZKS4.js → analytics-DgsLc9VO.js} +1 -1
  61. package/dist/assets/{analyticsHelper-Dngadv29.js → analyticsHelper-sTbcNkFd.js} +1 -1
  62. package/dist/assets/{core-yoefL3fM.js → core-wa4jvXau.js} +1 -1
  63. package/dist/assets/{decodeURIComponentSafe-CqQnGC2-.js → decodeURIComponentSafe-CIevgEwa.js} +1 -1
  64. package/dist/assets/{dnd-0Jes4WSF.js → dnd-Cbngon1O.js} +1 -1
  65. package/dist/assets/{empty-e7x27WWK.js → empty-BLA-Ut17.js} +1 -1
  66. package/dist/assets/{empty-BVRvdlll.js → empty-DGZZ0Isy.js} +1 -1
  67. package/dist/assets/{emptyVideoElement-BFSuzL0Z.js → emptyVideoElement-IpJePceg.js} +1 -1
  68. package/dist/assets/epic-DgP8mAwL.js +2 -0
  69. package/dist/assets/{expenseAutomationHelper-Bb4aYRfb.js → expenseAutomationHelper-B9h6s4MU.js} +1 -1
  70. package/dist/assets/{getLocaleForTenant-C89a4WTN.js → getLocaleForTenant-B2kDgrkF.js} +1 -1
  71. package/dist/assets/{index-BCL499aj.js → index-4Nv-4tI_.js} +1 -1
  72. package/dist/assets/{index-Z6lOr6kQ.js → index-8CGije3n.js} +2 -2
  73. package/dist/assets/{index-gieT9B7k.js → index-BGcr7M3t.js} +4767 -4767
  74. package/dist/assets/{index-BWbRBnz6.js → index-D4oD0Zwi.js} +1 -1
  75. package/dist/assets/{index-C88z97Uz.js → index-DSayiUiZ.js} +1 -1
  76. package/dist/assets/{index-DZ_MCjOs.js → index-Dsfoke68.js} +1 -1
  77. package/dist/assets/{index-DNY3SbT-.js → index-S7x3Q8ir.js} +1 -1
  78. package/dist/assets/{index-BEX3sG4W.js → index-h9Yx7xG4.js} +1 -1
  79. package/dist/assets/{lexical-dxojhk9l.js → lexical-BhCVvQ5e.js} +1 -1
  80. package/dist/assets/{liveblocks-DeKIuJW0.js → liveblocks-S_bQ6bIM.js} +1 -1
  81. package/dist/assets/{lottie-CnTyxWZD.js → lottie-CMd-N9jH.js} +1 -1
  82. package/dist/assets/{mui-DNBa4RDa.js → mui-Ci0HQ48M.js} +1 -1
  83. package/dist/assets/{pathToGoBack-BuXrBWGz.js → pathToGoBack-BQ4U7b_1.js} +1 -1
  84. package/dist/assets/{pdf-C3-hmPnT.js → pdf-OHT1WZQx.js} +4 -4
  85. package/dist/assets/{pdf-lib-Bgi4UACS.js → pdf-lib-B91RK-F0.js} +1 -1
  86. package/dist/assets/{plaid-Do2QMrb7.js → plaid-BWdXQkCk.js} +1 -1
  87. package/dist/assets/{pusher-DCfCvP3L.js → pusher-8A5uNu4P.js} +1 -1
  88. package/dist/assets/{react-Bo_sMPSC.js → react--GqNzBLX.js} +1 -1
  89. package/dist/assets/{react-BbFyQyxn.js → react-B_sF0JCy.js} +1 -1
  90. package/dist/assets/{react-BjywgR9c.js → react-BxAOQlUv.js} +1 -1
  91. package/dist/assets/{react-DJ9yypq6.js → react-CG53JZQx.js} +1 -1
  92. package/dist/assets/{react-DxOETQGz.js → react-CbVqKv24.js} +1 -1
  93. package/dist/assets/{react-gAEV5rCq.js → react-DkS5-yyq.js} +1 -1
  94. package/dist/assets/{recharts-8-QnWlJw.js → recharts-Dwi7DT-C.js} +1 -1
  95. package/dist/assets/{routePaths-DxbnHvry.js → routePaths-CEJABH0C.js} +1 -1
  96. package/dist/assets/{sentry-CFIOXaw2.js → sentry-BU5jEr8h.js} +1 -1
  97. package/dist/assets/{stripSplatSuffix-CYUofRbQ.js → stripSplatSuffix-1d8c6YLM.js} +1 -1
  98. package/dist/assets/{url-TC_CWeaX.js → url-BPQU9fEv.js} +1 -1
  99. package/dist/assets/{url-D3zeTwSU.js → url-zU7Z4CO_.js} +1 -1
  100. package/dist/assets/{useActualMatchingMatchDetail-BWJUXzrC.js → useActualMatchingMatchDetail-BF3bwUO7.js} +1 -1
  101. package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-CCxYxTcB.js → useAiCfoDashboardSuggestedQuestionsChips-Dut4uoVw.js} +1 -1
  102. package/dist/assets/{useAskAiCfoHostNavButtonProps-D8R8bYQf.js → useAskAiCfoHostNavButtonProps-CZ-JbWqQ.js} +1 -1
  103. package/dist/assets/{useChargeCardPusherEvents-BfAxZGEU.js → useChargeCardPusherEvents-BloaCcy0.js} +1 -1
  104. package/dist/assets/{useDeviceId-Bube9FVm.js → useDeviceId-D7PzfQ-u.js} +1 -1
  105. package/dist/assets/{useEmailConnectResultRefresh-CoCs_Xxn.js → useEmailConnectResultRefresh-BO75ukY9.js} +1 -1
  106. package/dist/assets/{useInitialThreadRequest-D5Rvmxsw.js → useInitialThreadRequest-ZafvGlm9.js} +1 -1
  107. package/dist/assets/{useTaskManagerAccess-BtIiKAtf.js → useTaskManagerAccess-DpldujcE.js} +1 -1
  108. package/dist/assets/{useTaskManagerPusherEvents-CHydXPys.js → useTaskManagerPusherEvents-CowYG4es.js} +1 -1
  109. package/dist/assets/{utils-CmXRO8Fm.js → utils-Zs4lusR-.js} +1 -1
  110. package/dist/assets/{withTransactionSidePanel-DP7Z-cPy.js → withTransactionSidePanel-BPZ1XJCd.js} +1 -1
  111. package/dist/assets/{zeni-epic-state-DYdYief8.js → zeni-epic-state-lWD60tIp.js} +7 -7
  112. package/dist/index.html +1 -1
  113. package/package.json +3 -3
  114. package/dist/assets/AddressRoutes-ypB1towI.js +0 -1
  115. package/dist/assets/AiCfoScreen-D-sh5v2C.js +0 -22
  116. package/dist/assets/CustomerOnboardingAuthScreen-BytBfRN1.js +0 -1
  117. package/dist/assets/MagicLinkSignInScreen-BJxcNQg7.js +0 -12
  118. package/dist/assets/NotFoundScreen-Bsm3y_yC.js +0 -1
  119. package/dist/assets/PeopleRoutes-Cb9-xkjv.js +0 -22
  120. package/dist/assets/SignInScreen-DsjUpmIJ.js +0 -1
  121. package/dist/assets/SignOutScreen-CSM-9H2A.js +0 -9
  122. package/dist/assets/TransactionDetailRoutes-1ksjmLB-.js +0 -1
  123. package/dist/assets/epic-CkkNMCQ8.js +0 -2
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-gieT9B7k.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-CFIOXaw2.js"><link rel="modulepreload" crossorigin href="/assets/core-yoefL3fM.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-DYdYief8.js"><link rel="modulepreload" crossorigin href="/assets/mui-DNBa4RDa.js"><link rel="modulepreload" crossorigin href="/assets/analytics-C5pGZKS4.js"><link rel="modulepreload" crossorigin href="/assets/utils-CmXRO8Fm.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-BGcr7M3t.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-BU5jEr8h.js"><link rel="modulepreload" crossorigin href="/assets/core-wa4jvXau.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-lWD60tIp.js"><link rel="modulepreload" crossorigin href="/assets/mui-Ci0HQ48M.js"><link rel="modulepreload" crossorigin href="/assets/analytics-DgsLc9VO.js"><link rel="modulepreload" crossorigin href="/assets/utils-Zs4lusR-.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.97-prod",
3
+ "version": "5.3.98-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.7",
32
- "@zeniai/client-epic-state": "5.2.90",
33
- "@zeniai/web-components": "4.4.33",
32
+ "@zeniai/client-epic-state": "5.2.91",
33
+ "@zeniai/web-components": "4.4.34",
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-DeKIuJW0.js";import{A as i}from"./AddressScreen-B6AtGf0I.js";import s from"./NotFoundScreen-Bsm3y_yC.js";import"./sentry-CFIOXaw2.js";import{n as d,o as r}from"./core-yoefL3fM.js";import"./zeni-epic-state-DYdYief8.js";import"./recharts-8-QnWlJw.js";import"./index-gieT9B7k.js";import"./mui-DNBa4RDa.js";import"./analytics-C5pGZKS4.js";import"./plaid-Do2QMrb7.js";import"./dnd-0Jes4WSF.js";import"./stripe-cKAAJElX.js";import"./lottie-CnTyxWZD.js";import"./lexical-dxojhk9l.js";import"./pdf-C3-hmPnT.js";import"./utils-CmXRO8Fm.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,22 +0,0 @@
1
- import{j as S}from"./liveblocks-DeKIuJW0.js";import{a as n}from"./sentry-CFIOXaw2.js";import{u as Dt,h as Lt,i as Bt,g as Ft,j as v,l as Mt}from"./core-yoefL3fM.js";import{e5 as $t,a as Nt,U as Vt,e6 as Gt,z as Ht,_ as zt,e7 as qt,e8 as Wt,e9 as Yt,bn as Be,ea as We,eb as Zt,bm as Ye,a2 as ge,a6 as ce,h as $,ec as me,ed as Jt,ee as Kt,as as Xt,K as es,w as ts,ef as ss,eg as ns,at as as,eh as os,ei as is,ej as rs,ek as ls,p as us,bi as Fe,el as ds}from"./index-gieT9B7k.js";import{fH as M,gw as R,UH as cs,a2Z as ms,a2_ as Ss,jQ as hs,a2$ as ps,jN as fs,a30 as Se,jt as Z,jW as J,jz as Ie,jg as he,je as gs,jY as Is,jI as Ze,UQ as Me,gy as N,gN as Cs,UP as ks,UA as $e,fI as bs,j7 as vs,a31 as Es,gb as Ps,jp as ws,jl as ys,fJ as pe,gi as xs,a32 as Rs,a33 as Ts,a34 as js,gx as Os,gr as Ne,k8 as Ve,gt as Ge,gz as As,a35 as He,jZ as _s,ji as Us,jC as Qs,jU as ze,jF as Ds,gA as Ls,gB as Bs,gC as Fs,gD as Ms}from"./zeni-epic-state-DYdYief8.js";import{D as $s,n as V,S as Ns,v as Vs}from"./mui-DNBa4RDa.js";import{u as Gs}from"./useAiCfoDashboardSuggestedQuestionsChips-CCxYxTcB.js";import{p as Hs}from"./pathToGoBack-BuXrBWGz.js";import{j as zs}from"./routePaths-DxbnHvry.js";import{u as qs}from"./useTaskManagerPusherEvents-CHydXPys.js";import"./recharts-8-QnWlJw.js";import"./analytics-C5pGZKS4.js";import"./plaid-Do2QMrb7.js";import"./dnd-0Jes4WSF.js";import"./stripe-cKAAJElX.js";import"./lottie-CnTyxWZD.js";import"./lexical-dxojhk9l.js";import"./pdf-C3-hmPnT.js";import"./utils-CmXRO8Fm.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new t.Error().stack;r&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[r]="34b07132-1ec6-45f6-893f-5f5d97138e15",t._sentryDebugIdIdentifier="sentry-dbid-34b07132-1ec6-45f6-893f-5f5d97138e15")}catch{}})();const Ws=["claimed","running","succeeded","failed","timeout"],fe=t=>typeof t=="string"&&t!=="",Je="chat-response-generated";function Ys(t,r){if(r.kind!=="save")return;if(r.fetchState==="In-Progress")return{status:"saving"};if(r.fetchState==="Error")return{status:"failed"};if(r.fetchState!=="Completed")return;const h=R(t).skills.find((s=>s.macroId===r.savedMacroId));return h==null?void 0:{status:"saved",command:h.name}}const Zs=Mt((function(t,r){const h=M(t),s=r.isSubmitting,d=h.uiState?.currentChatSessionId,l=d!=null?xs(t.aiCfoState,d):[],i=ns(t,{allUsers:r.allUsers,onCardPolicyVendorSearchTextChange:r.onCardPolicyVendorSearchTextChange}),g=Rs(t),p=Ts(t),f=js(t);return{showSampleQuestions:r.sessionFromUrl==="explore"&&h.uiState.currentChatSessionId==null,aiCfoView:h,isSubmitting:s,isNewChatSession:r.sessionFromUrl==="new_chat"||r.sessionFromUrl==="explore",isFullView:!0,tableDownloadEndPoint:`${as}/tableDownload`,exportDownloadEndPoint:rs(),emailLinkQuestion:r.emailLinkQuestion,autoSubmitEmailLinkQuestion:r.autoSubmitEmailLinkQuestion,onEmailLinkQuestionProcessed:r.onEmailLinkQuestionProcessed,routedInitialQuestionSource:r.routedInitialQuestionSource,routedInitialQuestionSuggestionIndex:r.routedInitialQuestionSuggestionIndex,exploreSuggestedPromptQuestions:r.exploreSuggestedPromptQuestions,exploreSuggestedPromptQuestionsLoading:r.exploreSuggestedPromptQuestionsLoading,isFileUploadEnabled:r.isFileUploadEnabled,isUploadPromoVisible:r.isUploadPromoVisible,onUploadPromoClose:r.onUploadPromoClose,skills:R(t).skills,skillSaveState:Ys(t,f),skillsEnabled:R(t).skillsEnabled,skillsList:R(t).skills,skillsListError:R(t).fetchState==="Error",skillsListLoading:R(t).fetchState==="In-Progress",skillsCanPublish:R(t).canPublish,skillSaving:f.fetchState==="In-Progress",skillSaveError:f.fetchState==="Error",skillVersionHistory:g.macroId!=null?{macroId:g.macroId,versions:g.versions,error:g.fetchState==="Error",loading:g.fetchState==="In-Progress"}:void 0,skillRestoreBody:p.macroId!=null&&p.version!=null?{macroId:p.macroId,version:p.version,instructions:p.instructions,error:p.fetchState==="Error",loading:p.fetchState==="In-Progress"}:void 0,skillDetail:J(t).detail,skillDetailError:J(t).fetchState==="Error",skillDetailLoading:J(t).fetchState==="In-Progress",syntheticAnswers:l,resolveSyntheticAnswerCardTile:is(t),resolveSyntheticAnswerPolicyTile:os(t),...i}}),(function(t,r){const{location:h,currentTenant:s,userId:d,navigate:l,currentChatSessionId:i,allSessionsWithOrderedQuestionAnswers:g,isAiCardCreationEnabled:p,isCardPolicyEnabled:f,setIsAiCfoOpen:L}=r,B=s.tenantEmailDomain;return{onEventReceived:(a,o)=>{if(a===Je&&typeof o.text=="string"&&typeof o.metadata=="object"){const c=o,j=Ls(c.type),E=c.metadata.chat_session_id??null,{currentChatSession:O,currentQuestionAnswer:G,currentQuestionAnswerSummary:A}=Ye(g,E);j!=="answer"?$.trackAICFOChatResponseGenerated(j,G?.question.questionText??"",c.text,E,ds(A,O),c.metadata.message_id??null):$.trackAICFOChatAnswerGenerated(c.text,G?.question.questionText??"",(c.follow_up_questions?.length??0)>0,!!c.assumptions,!!c.insights,c.visualization!=null,Bs(c.visualization?.type??"")??null,E,c.summarized_title,c.metadata.message_id??null),t(Fs({chatSessionId:c.metadata.chat_session_id,responseType:j,fetchState:{fetchState:"Completed",error:void 0}})),t(Ms({chatSessionId:c.metadata.chat_session_id,answerPayload:c,userId:d}))}},onSubmit:(a,o,c,j,E)=>{a&&Fe(t,a,o,i,g,d,j,c,void 0,E)},onFetchSkills:()=>{t(Ze())},onOpenSkill:a=>{t(Ie({macroId:a})),t(Ds({macroId:a}))},onSaveSkill:(a,o)=>{t(ze({draft:a,macroId:o}))},onSaveSkillDraft:a=>{const o=a.displayName?.trim()??"",c=a.name?.trim()??"";t(ze({draft:{name:o.length>0?o:c,description:a.description?.trim()??null,instructions:a.instructions,visibility:"private"}}))},onFetchSkillVersionBody:(a,o)=>{t(Qs({macroId:a,version:o}))},onDeleteSkill:a=>{t(Us({macroId:a}))},onSetSkillVisibility:(a,o)=>{t(_s({macroId:a,visibility:o}))},onCloseSkillDetail:()=>{t(He())},onRunSkill:(a,o)=>{t(N()),t(Ne()),Fe(t,o,"user_input",void 0,g,d,void 0,void 0,void 0,a),t(He())},updateCurrentInput:a=>{t(Ge(a))},onStopSubmit:()=>{},onUpdateScrollYOffset:a=>{t(As(a))},onSelectSampleQuestion:()=>{},onBackClick:()=>{l(-1)},onCloseClick:()=>{const a=ge(h.state?.pathnameStackToGoBack),o=a.poppedPathname??Hs(1);l(o,{state:{...h.state,pathnameStackToGoBack:a.newStack}}),t(Ge(""))},togglePageView:()=>{const a=ge(h.state?.pathnameStackToGoBack),o=a.poppedPathname??`/${s.tenantEmailDomain}/dashboard`;l(o,{state:{...We(h.state),pathnameStackToGoBack:a.newStack,message:"open_ai_cfo_drawer"}}),L(!0)},onCopy:()=>{},onThumbsUp:(a,o)=>{i!=null&&o?.messageId!=null&&t(Ve(i,o.messageId,"positive",o.questionText,o.answerText))},onThumbsDown:(a,o)=>{i!=null&&o?.messageId!=null&&t(Ve(i,o.messageId,"negative",o.questionText,o.answerText))},onTogglePageView:()=>{l(-1)},onNewChatClick:()=>{t(N()),i!=null&&t(Ne());const a=us(h.state?.pathnameStackToGoBack,h.pathname);l(`/${s.tenantEmailDomain}/ai-cfo/new_chat`,{state:{pathnameStackToGoBack:a.slice(0,-1),referrer:"Sidebar"}})},onToggleCotCollapsed:(a,o)=>{t(Os({questionAnswerId:a,isCollapsed:o}))},onMenuClick:r.onMenuClick,...ls(t,{isAiCardCreationEnabled:p,isCardPolicyEnabled:f,currentChatSessionId:i,onAfterCardsCreationSubmit:()=>{L(!0),l(`/${B}/cards`,{state:{...h.state}})},onAfterCardPolicySubmit:()=>{L(!0),l(`/${B}/cards/policy`,{state:{...h.state}})}})}}))(ts(ss)),bn=({isFileUploadEnabled:t})=>{const r=$t(),{setIsAiCfoOpen:h}=Nt(),s=Dt(),d=Lt(),{session_id:l}=Bt(),i=Ft(),g=new URLSearchParams(i.search).get("routine")??void 0,[p,f]=n.useState(!1),L=v((e=>M(e).uiState.isSkillsBrowserOpen===!0)),B=v((e=>R(e).skillsEnabled)),a=v((e=>M(e).uiState.isRoutinesBrowserOpen===!0)),o=v((e=>cs(e))),c=v((e=>ms(e))),j=v((e=>Ss(e))),[E,O]=n.useState(void 0),[G,A]=n.useState(!1),[Ke,Ce]=n.useState(void 0),Xe=n.useCallback((()=>{Ce(void 0),O(void 0),A(!0)}),[]),et=n.useCallback((e=>{O(e),A(!0)}),[]),tt=n.useCallback((()=>{O(void 0),A(!1)}),[]),st=n.useCallback((e=>{s(hs({draft:e,...E!=null&&{scheduleId:E.scheduleId}})),O(void 0),A(!1)}),[s,E]),P=g,ke=o.routines.find((e=>e.scheduleId===P)),C=v((e=>ps(e))),nt=n.useCallback((e=>{s(fs({scheduleId:e.scheduleId}))}),[s]);n.useEffect((()=>{s(P!=null?Z({scheduleId:P}):Se())}),[s,P]);const F=ke?.macroId,at=v((e=>J(e))),be=F!=null&&F!==""&&at.fetchState==="Not-Started";n.useEffect((()=>{be&&F!=null&&s(Ie({macroId:F}))}),[s,be,F]);const ot=v((e=>M(e).uiState.currentChatSessionId))??l,k=o.routines.find((e=>e.scheduleId===g))??o.routines.find((e=>e.scheduleId===Vt(ot))),T=k?.scheduleId??null,[ve,it]=n.useState(!0);n.useEffect((()=>{T!=null&&s(Z({scheduleId:T}))}),[s,T]);const Ee=C.runs.some((e=>e.status==="claimed"||e.status==="running"))===!0;n.useEffect((()=>{if(P==null||Ee!==!0)return;const e=window.setInterval((()=>{s(Z({scheduleId:P})),s(he())}),5e3);return()=>window.clearInterval(e)}),[s,Ee,P]);const rt=n.useCallback((e=>{Ce(e),O(void 0),A(!0)}),[]),lt=n.useCallback((e=>{s(gs({scheduleId:e.scheduleId}))}),[s]),ut=n.useCallback(((e,m)=>{s(Is({enabled:m,scheduleId:e.scheduleId}))}),[s]);n.useEffect((()=>{a&&s(he())}),[s,a]);const Pe=v((e=>R(e).skills)),K=n.useMemo((()=>Pe.map((e=>({macroId:e.macroId,name:e.displayName??e.name})))),[Pe]),dt=n.useCallback((e=>{s(Ie({macroId:e}))}),[s]),X=n.useCallback((()=>{s(Ze()),s(Me())}),[s]),ct=n.useCallback((()=>{s(N())}),[s]),{allUsers:mt,isAiCardCreationEnabled:St,isCardPolicyEnabled:ht,onCardPolicyVendorSearchTextChange:pt}=Gt();n.useEffect((()=>{s(Cs())}),[s]);const I=v((e=>M(e))),y=Ht.getSignedInUser();n.useEffect((()=>l==="routines"?(s(N()),void s(ks())):l==="skills"?(s(Se()),s($e()),void s(Me())):(T==null&&s(Se()),s($e()),void s(N()))),[s,T,g,l]);const ft=zt(),_=Xt(ft),b=v((e=>bs(e))),u=I.uiState.currentChatSessionId,w=b.tenantEmailDomain,D=w!=null&&w!=="",ee=n.useCallback((e=>{D&&d(`/${w}/ai-cfo/routines?routine=${encodeURIComponent(e.scheduleId)}`)}),[D,d,w]),te=n.useCallback((()=>{D&&d(`/${w}/ai-cfo/routines`)}),[D,d,w]),se=n.useCallback(((e,m)=>{const U=e.sessionId??C.sessionId;U!=null&&D&&d(`/${w}/ai-cfo/${U}?routine=${encodeURIComponent(m)}`)}),[D,d,C.sessionId,w]),gt=n.useMemo((()=>k==null?void 0:{error:C.fetchState==="Error",kind:"routineRuns",loading:C.fetchState==="In-Progress"||C.fetchState==="Not-Started",routineName:k.name,schedule:qt(k),skillName:k.isAdHoc===!0?void 0:K.find((e=>e.macroId===k.macroId))?.name,onOpenSkill:k.isAdHoc===!0?void 0:X,runs:C.runs,tzName:k.tzName,unreadCount:k.unreadRuns,open:ve,onToggle:()=>it((e=>!e)),onOpenRun:e=>se(e,k.scheduleId),onOpenRoutine:()=>ee(k),onOpenRoutines:te}),[X,te,ee,se,ve,k,C.fetchState,C.runs,K]),{handleUploadPromoClose:It,isUploadPromoVisible:Ct}=Wt({isFileUploadEnabled:t,tenantEmailDomain:w}),ne=Yt({currentTenant:b,currentChatSessionId:u,aiCfoView:I,skillsEnabled:B,onCloseSkills:ct,onOpenSkills:X}),{isSuggestedQuestionsLoading:kt,suggestedPromptQuestions:bt}=Gs(),H=i.state,z=H?.aiCfoInitialQuestion,we=!!H?.aiCfoShouldSubmit;n.useEffect((()=>{const e=i.state;if(e?.[Be]!==!0)return;f(!0);const m={...e};delete m[Be],d(i,{replace:!0,state:m})}),[i.pathname,i.search,i.state,d]);const[vt,ae]=n.useState(null),[Et,oe]=n.useState(!1),[Pt,ie]=n.useState(void 0),[wt,re]=n.useState(void 0),ye=n.useRef(!1);n.useEffect((()=>{if(!ye.current&&z!=null&&z!==""){const e=i.state;ae(z),oe(we),ie(e?.aiCfoInitialSubmissionSource!=null?e.aiCfoInitialSubmissionSource:void 0);const m=e?.aiCfoSuggestionIndex;re(typeof m=="number"?m:void 0),ye.current=!0}}),[z,we,i.state]);const yt=n.useCallback((()=>{ae(null),oe(!1),ie(void 0),re(void 0),d(i.pathname,{replace:!0,state:We(i.state)})}),[i.pathname,i.state,d]),xe=n.useMemo((()=>new URLSearchParams(i.search)),[i.search]),Re=xe.get("ref")??H?.aiCfoRef,le=xe.get("emailRefId")??H?.aiCfoEmailRefId,Te=n.useRef(!1);n.useEffect((()=>{Te.current||Re!=="month-end-email"||le==null||u!=null||y==null||(s(vs("controller",y.userId,le,"MONTH_END_EMAIL")),Te.current=!0)}),[Re,le,u,s,y]);const q=I.uiState.lastContextMessage;n.useEffect((()=>{q!=null&&q!==""&&u!=null&&(ae(q),oe(!0),ie(void 0),re(void 0),s(Es()))}),[q,u,s]);const xt=b.masterTOSInfo,x=xt?.isMasterTOSAccepted??!1,{visitedSessions:je}=Zt(u),W=I.fetchState,Y=I.uiState.chatSessionsNextPageToken.hasMore||!I.uiState.chatSessionsFirstPageFetched,Oe=u!=null?I.fetchChatSessionHistoryByChatSessionId?.[u]?.fetchState??"Not-Started":"Not-Started",Ae=u==null||(I.uiState.chatHistoryNextPageToken[u]?.hasMore??!0),_e=I.allSessionsWithOrderedQuestionAnswers,{currentSessionQuestionAnswers:Rt}=Ye(_e,u),Tt=Rt.length===0;n.useEffect((()=>{x||_||d("../dashboard",{state:{...i.state,message:"open_ai_cfo_drawer"}})}),[x,_,d,i.state]);const jt=n.useCallback((()=>{const e=ge(i.state?.pathnameStackToGoBack),m=b.tenantEmailDomain;d(e.poppedPathname??(m!=null?`/${m}/dashboard`:".."),{state:{...i.state,pathnameStackToGoBack:e.newStack}})}),[b.tenantEmailDomain,i.state,d]),Ue=n.useRef(void 0),Qe=n.useRef(void 0);n.useEffect((()=>{const e=l!==Ue.current,m=u!==Qe.current;Ue.current=l,Qe.current=u,l!==u&&(!e||l==null||zs(l)?m&&u!=null&&d(`../ai-cfo/${u}`,{state:{...i.state}}):s(Ps({sessionId:l,agentId:"controller"})))}),[u,l]);const Ot=n.useMemo((()=>({events:je.map((e=>`private-encrypted-chat-${e}.${Je}`)),eventCallback:(e,m,U)=>U.onEventReceived(e,m)})),[je]);n.useEffect((()=>{W!=="In-Progress"&&Y&&s(ws())}),[W,Y,s]),n.useEffect((()=>{u!=null&&Oe!=="In-Progress"&&Ae&&y!=null&&(l===u||W==="Completed"&&!Y)&&s(ys(u,y.userId))}),[Oe,W,Ae,Y,u,y,l,s]);const ue=y?.userId,At=n.useMemo((()=>{return ue==null?[]:[(e=ue,`private-encrypted-routines-${e}.routine-run-updated`)];var e}),[ue]),De=n.useCallback((e=>{const m=e!=null&&(e===P||e===T);(a||m)&&s(he()),m&&s(Z({scheduleId:e}))}),[s,a,T,P]);qs({events:At,onSubscribed:()=>De(P??T),onEvent:(e,m)=>{const U=(de=>{if(de==null||typeof de!="object")return null;const Q=de;return fe(Q.schedule_id)&&fe(Q.run_id)?{scheduleId:Q.schedule_id,runId:Q.run_id,status:Ws.find((Qt=>Qt===Q.status))??null,finishedAt:fe(Q.finished_at)?Q.finished_at:null}:null})(m);U!=null&&De(U.scheduleId)}});const Le=e=>e.trackAICFOOnboardingScreenStateChanged("open","first_visit");if(y==null||l==null)throw Error("Can't access AI Controller page without signing in...");const _t=u!=null&&I.responseStateByChatSessionId?.[u]?.answer?.fetchState==="In-Progress";if(!x&&_)return S.jsxs(Ks,{children:[S.jsx(ce,{analytics:$,onLoad:Le}),ne.drawerElement,S.jsx(Xs,{children:S.jsx(qe,{children:S.jsx(me,{isTOSAccepted:!1,acceptMasterTOSState:I.masterTOSAcceptanceState,onCloseClick:jt,onCompleteClick:()=>{b.userRoleId!=null&&s(pe(b.userRoleId))}})})})]});const Ut=S.jsxs(S.Fragment,{children:[p&&!x?S.jsx(ce,{analytics:$,onLoad:Le}):null,S.jsx(me,{isTOSAccepted:x,acceptMasterTOSState:I.masterTOSAcceptanceState,showHeader:!1,togglePageView:x?()=>f(!1):void 0,onCloseClick:()=>f(!1),onCompleteClick:()=>{x||b.userRoleId==null||s(pe(b.userRoleId)),f(!1)}})]});return S.jsxs(S.Fragment,{children:[S.jsxs(Js,{children:[S.jsx(ce,{analytics:$,onLoad:e=>e.trackPageLoaded(es.Event.aiCFOPage)}),_&&ne.drawerElement,S.jsx(Zs,{answerExportEndPoint:r,...Ot,currentChatSessionId:u,allSessionsWithOrderedQuestionAnswers:_e,allUsers:mt,isAiCardCreationEnabled:St,isCardPolicyEnabled:ht,openOnboardingPage:()=>f(!0),userId:y.userId,setIsAiCfoOpen:h,navigate:d,sessionFromUrl:l,location:i,isSubmitting:_t,isEmptyChatWithSession:Tt,currentTenant:b,emailLinkQuestion:vt??void 0,autoSubmitEmailLinkQuestion:Et,onEmailLinkQuestionProcessed:yt,routedInitialQuestionSource:Pt,routedInitialQuestionSuggestionIndex:wt,onCardPolicyVendorSearchTextChange:pt,onMenuClick:_?ne.open:void 0,isFileUploadEnabled:t,isUploadPromoVisible:Ct,onUploadPromoClose:It,exploreSuggestedPromptQuestions:bt,exploreSuggestedPromptQuestionsLoading:kt,isSkillsOpen:L,isRoutinesOpen:a,routineCanCreate:j,routineEditing:E,routineEditorOpen:G,routineListError:o.fetchState==="Error",routineListLoading:o.fetchState==="In-Progress",routineMaxRoutines:o.maxRoutines,routineSaveError:c.fetchState==="Error",routineSaving:c.fetchState==="In-Progress",routineSchedulableSkills:K,routines:o.routines,onRoutineCreate:Xe,onRoutineDelete:lt,routineHistoryError:C.fetchState==="Error",routineHistoryLoading:C.fetchState==="In-Progress",chatSidePanel:gt,routineDetail:ke,routineRunningScheduleId:c.runningScheduleId,routineRuns:C.runs,onRoutineEdit:et,onRoutineOpenRun:(e,m)=>se(m,e.scheduleId),onRoutineRun:nt,onRoutineCloseDetail:te,onRoutineDraft:rt,routineDraftPrompt:Ke,onRoutineOpenDetail:ee,onRoutineEditorCancel:tt,onRoutineLoadSkillInstructions:dt,onRoutineSave:st,onRoutineSetEnabled:ut,isCreateSkillEnabled:B,promoDismissalScope:w}),p&&_?S.jsx($s,{anchor:"right",open:p,transitionDuration:250,PaperProps:{component:en,style:{width:"100%"}},slotProps:{backdrop:{style:{backgroundColor:"transparent",cursor:"pointer"}}},onClose:()=>f(!1),children:S.jsx(qe,{onClick:e=>e.stopPropagation(),children:S.jsx(me,{isTOSAccepted:x,acceptMasterTOSState:I.masterTOSAcceptanceState,onCloseClick:()=>f(!1),onCompleteClick:()=>{x||b.userRoleId==null||s(pe(b.userRoleId)),f(!1)}})})}):null]}),p&&!_?S.jsx(Jt,{open:p,onClose:()=>f(!1),children:S.jsx(Kt,{children:Ut})}):null]})},qe=V(Ns)`
2
- display: flex;
3
- min-height: 100%;
4
- flex-direction: column;
5
- `,Js=V.div`
6
- height: 100vh;
7
- width: 100%;
8
- `,Ks=V.div`
9
- height: 100vh;
10
- width: 100%;
11
- display: flex;
12
- flex-direction: column;
13
- min-height: 0;
14
- `,Xs=V.div`
15
- flex: 1;
16
- min-height: 0;
17
- display: flex;
18
- flex-direction: column;
19
- `,en=V(Vs)`
20
- box-shadow: ${({theme:t})=>t.colors.elevation2};
21
- color: ${({theme:t})=>t.colors.grey4};
22
- `;export{bn as default};
@@ -1 +0,0 @@
1
- import{j as i}from"./liveblocks-DeKIuJW0.js";import{z as m}from"./index-gieT9B7k.js";import{g as n}from"./QBOConnectionScreen-BZN_FSy4.js";import"./sentry-CFIOXaw2.js";import{g as p,N as a}from"./core-yoefL3fM.js";import"./zeni-epic-state-DYdYief8.js";import"./recharts-8-QnWlJw.js";import"./mui-DNBa4RDa.js";import"./analytics-C5pGZKS4.js";import"./plaid-Do2QMrb7.js";import"./dnd-0Jes4WSF.js";import"./stripe-cKAAJElX.js";import"./lottie-CnTyxWZD.js";import"./lexical-dxojhk9l.js";import"./pdf-C3-hmPnT.js";import"./utils-CmXRO8Fm.js";import"./empty-BVRvdlll.js";import"./pdf-lib-Bgi4UACS.js";import"./index-BCL499aj.js";import"./url-D3zeTwSU.js";import"./index-C88z97Uz.js";import"./decodeURIComponentSafe-CqQnGC2-.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,12 +0,0 @@
1
- import{j as u}from"./liveblocks-DeKIuJW0.js";import{a as g}from"./sentry-CFIOXaw2.js";import{u as O,g as _,h as w,t as V,j as l,N as T}from"./core-yoefL3fM.js";import{z as r,G as M,I as P,h as A,K as N,W as R,Y as W,R as Y}from"./index-gieT9B7k.js";import{fI as $,Ux as G,U_ as K,UR as q,gl as B,gn as H,UW as J,gY as Q,dk as X,U$ as Z,V0 as ee}from"./zeni-epic-state-DYdYief8.js";import{u as te,n as ne}from"./mui-DNBa4RDa.js";import{u as se}from"./useDeviceId-Bube9FVm.js";import{f as ae}from"./analyticsHelper-Dngadv29.js";import{t as ie}from"./getLocaleForTenant-C89a4WTN.js";import"./recharts-8-QnWlJw.js";import"./analytics-C5pGZKS4.js";import"./plaid-Do2QMrb7.js";import"./dnd-0Jes4WSF.js";import"./stripe-cKAAJElX.js";import"./lottie-CnTyxWZD.js";import"./lexical-dxojhk9l.js";import"./pdf-C3-hmPnT.js";import"./utils-CmXRO8Fm.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="edf51426-077b-4151-99cc-04d84bc2f9a2",t._sentryDebugIdIdentifier="sentry-dbid-edf51426-077b-4151-99cc-04d84bc2f9a2")}catch{}})();const U=(t,a)=>t!=null&&t.length>0&&a==="magic_links";function Ue(){const t=O(),a=_(),m=w(),[b]=V(),n=b.get("token"),p=b.get("stytch_token_type"),f=r.getMagicLinkCodeVerifier(),i=se(),{otpChallenge:d,twoFAPhoneNumber:x,magicLinkEmail:c,verifyDeviceFetchState:z,resendVerifyDeviceOTPFetchState:C}=l((e=>e.tenantState)),S=l((e=>e.tenantState.fetchState)),y=l((e=>e.tenantState.activeTenantFetchState.fetchState)),I=l((e=>e.tenantState.signInState)),h=l((e=>e.tenantState.magicLinkSignInFetchState.fetchState)),s=l((e=>e.tenantState.loggedInUser)),o=l((e=>$(e))),k=l((e=>G(e))),D=r.getSignedInUser(),v=te().mode;g.useEffect((()=>{s?.zeniSessionId==null&&n!=null&&U(n,p)&&i!=null&&f!=null&&(r.saveMagicLinkTriggered(n),t(K(n,i,f)))}),[n,p,t,i,f,s?.zeniSessionId]),g.useEffect((()=>{I!=="In-Progress"||S!=="Completed"&&y!=="Completed"||s?.zeniSessionId==null||o==null||(n!=null&&r.saveLastUsedMagicLinkToken(n),r.saveSignedInUserWithSession(s,s.zeniSessionId),r.saveSignedInUserTenants(q(k.tenantsInOrder),s.zeniSessionId),B(s.userId,s.zeniSessionId,o.tenantId),t(H(o.tenantId)),r.saveActiveTenantDomainForUser(o.tenantEmailDomain),t(J("Completed")),M.updateAppLocaleID(ie(o)),ae(s,o,v,void 0,k.tenantsInOrder),Q().then((()=>{const e=Y();e!=null&&P(e)})),setTimeout((()=>{A.trackLogin(N.Event.loginSuccess,"email",X(o.productSettings))}),2e3))}),[I,S,y,s,o,k,v,a.state,t]);const E=g.useCallback((()=>{m("/signin/auth")}),[m]),j=g.useCallback((()=>{i!=null&&d!=null&&c!=null&&t(Z(i,c,d))}),[i,d,t,c]),F=g.useCallback((e=>{i!=null&&n!=null&&c!=null&&d!=null&&t(ee(e,i,c,d))}),[i,n,t,c,d]);if(h==="Completed"&&d!=null)return u.jsx(R,{phoneNumber:x,verifyOtpFetchState:z.fetchState,resendVerifyDeviceOTPFetchState:C,onResendOtp:j,onVerifyOtp:F,onCancelVerifyDevice:E});if(I==="In-Progress"&&S==="Completed"&&s?.zeniSessionId!=null&&o!=null||D!=null){const e=a.state?.origin??"/";return u.jsx(T,{to:e,state:{...a.state,origin:""}})}if(!U(n,p)||f==null||h==="Error"){const e=a.state?.origin??"/",L=n!=null&&r.getLastUsedMagicLinkToken()===n;return u.jsx(T,{to:e,state:{...a.state,origin:"",magicLinkAlreadyUsed:L,magicLinkExpired:!L&&(r.isMagicLinkTriggered(n??"")||h==="Error"&&s?.zeniSessionId==null)}})}return u.jsx(oe,{"data-testid":"smooth-loader",children:u.jsx(W,{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{Ue as default};
@@ -1 +0,0 @@
1
- import{j as e}from"./liveblocks-DeKIuJW0.js";import{h as r,l as i}from"./core-yoefL3fM.js";import{ak as n}from"./index-gieT9B7k.js";import"./mui-DNBa4RDa.js";import"./sentry-CFIOXaw2.js";import"./zeni-epic-state-DYdYief8.js";import"./recharts-8-QnWlJw.js";import"./analytics-C5pGZKS4.js";import"./plaid-Do2QMrb7.js";import"./dnd-0Jes4WSF.js";import"./stripe-cKAAJElX.js";import"./lottie-CnTyxWZD.js";import"./lexical-dxojhk9l.js";import"./pdf-C3-hmPnT.js";import"./utils-CmXRO8Fm.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-DeKIuJW0.js";import{W0 as re,fI as N,m3 as G,e0 as Y,d$ as le,SS as Q,Vp as ce,Di as Pe,W1 as J,D7 as je,Ds as Le,Dm as de,Db as pe,Dq as ve,Dn as Te,W2 as ue,sx as Ae,g9 as Ve,gG as Re,W3 as W,Df as me,De as ge,Dv as Fe,c9 as Oe}from"./zeni-epic-state-DYdYief8.js";import{_ as he,q as X,$ as _,z as H,f as fe,N as Ce,ad as ye,ax as be,ay as Ze,a9 as Se,E as F,ae as De,G as K,az as Be,ao as Ue,aq as $e,a6 as ze,h as we,K as We,p as _e,aA as Ge,V as He}from"./index-gieT9B7k.js";import{D as xe,n as q,S as Ie}from"./mui-DNBa4RDa.js";import ae from"./NotFoundScreen-Bsm3y_yC.js";import{a as c}from"./sentry-CFIOXaw2.js";import{u as ee,i as Ke,j as g,h as qe,g as Me,l as Je,n as se,o as z}from"./core-yoefL3fM.js";import{u as Ne}from"./useAskAiCfoHostNavButtonProps-D8R8bYQf.js";import{M as Ye}from"./MobileAppDrawer-BB6EHjZm.js";import"./recharts-8-QnWlJw.js";import"./analytics-C5pGZKS4.js";import"./plaid-Do2QMrb7.js";import"./dnd-0Jes4WSF.js";import"./stripe-cKAAJElX.js";import"./lottie-CnTyxWZD.js";import"./lexical-dxojhk9l.js";import"./pdf-C3-hmPnT.js";import"./utils-CmXRO8Fm.js";import"./InboxNotificationsProvider-BGnTxdqM.js";import"./useTaskManagerAccess-BtIiKAtf.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]="c16dc109-65b9-408e-9186-cc38ea660297",e._sentryDebugIdIdentifier="sentry-dbid-c16dc109-65b9-408e-9186-cc38ea660297")}catch{}})();const Qe={overlayWidth:new Se(100,100,48)},te=K.getLocalizedStrings().peoplePage.invitePage,ne=K.getLocalizedStrings().common,Xe=({companyId:e,managersListView:t,companyPassportView:d,classListView:n,mode:h,isEditPeopleDrawerOpen:i,closeDrawerHandler:b})=>{const f=he(),m=ee(),[O,Z]=c.useState(!1),[k,S]=c.useState(!1),{userId:D}=Ke(),r=g((l=>re(l))),p=g((l=>N(l))),E=g((l=>G(l))),{useFeatureGate:x}=X(),{isFeatureEnabled:I}=x(_.isDebitCardFeatureEnabled),P=Y(I,p),v=le(p),T=Q(p),B=ce(p),U=!!p.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,w=!P&&E&&n.fetchState!=="Completed"||t.fetchState!=="Completed"||d.fetchState!=="Completed"||e==null;if(H.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const C=()=>{m(J()),b()},A=()=>{O===!0?S(!0):C()},$=d.companyView?.controllers?.map((l=>l.user)),u=!!p.company?.companyZeniAccountInfo?.isZeniAccountEnabled,{isFeatureEnabled:j}=x(_.isChargeCardFeatureEnabled),L=fe(p,j,I),{isCardsHidden:V}=Ce(p?.tenantId),y=!L||V,R=p.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",s={peopleDetails:r,classList:n.classes,managersList:t.users,controllersList:$,mode:h,isZeniTenant:T,isAccountingClassesEnabled:E,isReimbursementDisabled:U===!1,isZeniAccountsDisabled:u===!1,isChargeCardDisabled:y,isTreasuryDisabled:R===!1,isLiteRoleDisabled:B===!1,isBankingOnlyTenant:P,isCardsOnlyTenant:v,onResetClick:C,onDeleteUser:l=>{m(pe(l.userId,l.userRole.userRoleId))},onPeopleLocalDataUpdated:l=>{m(de({peopleLocalData:l})),Z(!0)},onSaveClick:()=>{m(h==="zeni_only"?je(e):Le(T))},onCloseClick:A,isLoading:w||r.person==null},o={onOkClick:()=>{S(!1),C()},onCancelClick:()=>{S(!1)}};return c.useEffect((()=>{w===!1&&D!=null&&m(Pe(D))}),[w,D]),c.useEffect((()=>{r.updatePersonState.fetchState==="Completed"&&C()}),[r.updatePersonState.fetchState]),a.jsx(xe,{anchor:"right",open:i,PaperProps:{style:{width:Qe.overlayWidth.valuePercentage(f),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:ye.overlayDark,cursor:"pointer"}}},onClose:A,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=q(Ie)`
2
- display: flex;
3
- min-height: 100%;
4
- flex-direction: column;
5
- `,ke=q(De.H6Regular)`
6
- margin-top: ${F.sp7};
7
- padding-left: ${F.sp8};
8
- padding-right: ${F.sp8};
9
- color: ${e=>e.theme.colors.primary};
10
- word-break: break-word;
11
- `,Ee=q(De.LargeRegularSp)`
12
- color: ${e=>e.theme.colors.hero};
13
- padding-left: ${F.sp8};
14
- padding-right: ${F.sp8};
15
- margin-bottom: 30px;
16
- margin-top: ${F.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:d,classListView:n,mode:h,isInvitePeopleDrawerOpen:i,closeDrawerHandler:b})=>{const f=he(),m=ee(),[O,Z]=c.useState(!1),[k,S]=c.useState(!1),D=g((o=>re(o))),r=g((o=>N(o))),p=g((o=>G(o))),{useFeatureGate:E}=X(),{isFeatureEnabled:x}=E(_.isDebitCardFeatureEnabled),I=Y(x,r),P=le(r),v=Q(r),T=ce(r),B=!!r.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,U=!I&&p&&n.fetchState!=="Completed"||t.fetchState!=="Completed"||d.fetchState!=="Completed"||e==null;if(H.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const w=()=>{b(),m(J())},C=()=>{O===!0?S(!0):w()},A={onOkClick:()=>{S(!1),w()},onCancelClick:()=>{S(!1)}},$=d.companyView?.controllers.map((o=>o.user)),u=!!r.company?.companyZeniAccountInfo?.isZeniAccountEnabled,{isFeatureEnabled:j}=E(_.isChargeCardFeatureEnabled),L=fe(r,j,x),{isCardsHidden:V}=Ce(r?.tenantId),y=!L||V,R=r.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",s={classList:n.classes,managersList:t.users,controllersList:$,mode:h,isZeniTenant:v,onPeopleLocalDataUpdated:o=>{m(de({peopleLocalData:o})),Z(!0)},onResetClick:w,onSaveClick:()=>{m(h==="zeni_only"?ve(e):Te())},onCloseClick:C,peopleDetails:D,isAccountingClassesEnabled:p,isReimbursementDisabled:B===!1,isLiteRoleDisabled:T===!1,isZeniAccountsDisabled:u===!1,isChargeCardDisabled:y,isTreasuryDisabled:R===!1,isBankingOnlyTenant:I,isCardsOnlyTenant:P,isLoading:U};return c.useEffect((()=>{D.invitePersonState.fetchState==="Completed"&&(b(),m(J()))}),[D.invitePersonState.fetchState]),a.jsx(xe,{anchor:"right",open:i,PaperProps:{style:{width:aa.overlayWidth.valuePercentage(f),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:A}):null,a.jsx(Be,{...s})]})})},ta=q(Ie)`
19
- display: flex;
20
- min-height: 100%;
21
- flex-direction: column;
22
- `,na=Je((function(e,t){const d=ue(e),n=H.getSignedInUser();return{data:d,loggedinUserId:n?.userId??"",isZeniTenant:t.isZeniTenant===!0,shouldFetchClasses:t.shouldFetchClasses,isZeniAdminUser:n?.userEmailDomain==="zeni.ai"&&t.isZeni===!0,isAccountingClassesEnabled:G(e),analytics:we}}),(function(e,t){const{navigate:d,companyId:n,shouldFetchClasses:h}=t;return{personAction:{onPersonDelete:(i,b)=>{e(pe(i,b))},onResendInvite:i=>{e(Fe(i))},onReloadPeople:()=>{e(me()),e(ge(n,h))},onBackClick:()=>{d("../../")},onModeChange:i=>{e(W({mode:i,searchText:"",sortKey:"name",sortOrder:"ascending"}))},onSearchTextChanged:i=>{e(W({searchText:i}))}}}}))(Ge);function M({isInvitePeopleDrawerOpen:e,isEditPeopleDrawerOpen:t}){const d=qe(),n=ee(),h=Me(),{areTenantIdsInSync:i}=Ue(),b=H.getSignedInUser(),f=g((s=>N(s))),{useFeatureGate:m}=X(),{isFeatureEnabled:O}=m(_.isDebitCardFeatureEnabled),Z=g((s=>G(s))),k=!Y(O,f)&&Z,S=Q(f),D=f?.tenantId,{tenantEmailDomain:r}=f,[p,E]=c.useState(!1),[x,I]=c.useState(!1),[P,v]=c.useState(!1),[T,B]=c.useState("off"),[U,w]=c.useState(!1),C=s=>{w(s)},{isAiCfoAccessEnabled:A,onAskAiCfoClick:$}=Ne({mobileExploreReferrer:"People"}),u=g((s=>ue(s)));$e({isDataReady:u.fetchState==="Completed"});const j=g((s=>Ae(s.classState,s.classListState))),L=g((s=>Ve(s.userState,s.userRoleState,s.userListViewState,"manager"))),V=g((s=>Re(s))),y=f?.companyId;c.useEffect((()=>{p&&T===u.uiState.mode||!i||(n(W({searchText:"",sortKey:"name",sortOrder:"ascending"})),B(u.uiState.mode),E(!0),n(me()))}),[p,b,D,n,u.uiState.mode,i]),c.useEffect((()=>{y!=null&&i&&n(ge(y,k))}),[y,k,i]),c.useEffect((()=>{I(e!=null&&e===!0),v(t!=null&&t===!0&&t)}),[e,t]),c.useEffect((()=>{n(W({searchText:"",sortKey:"name",sortOrder:"ascending"}))}),[]);const R=()=>{I(!1),v(!1),d("../")};return a.jsxs(a.Fragment,{children:[u.fetchState==="Completed"?a.jsx(ze,{analytics:we,onLoad:s=>s.trackPageLoaded(We.Event.members)}):null,x===!0?a.jsx(sa,{closeDrawerHandler:R,isInvitePeopleDrawerOpen:x,managersListView:L,companyPassportView:V,classListView:j,companyId:y,mode:u.uiState.mode}):null,P===!0?a.jsx(Xe,{closeDrawerHandler:R,isEditPeopleDrawerOpen:P,managersListView:L,companyPassportView:V,classListView:j,companyId:y,mode:u.uiState.mode}):null,a.jsx(Ye,{isAppContentDrawerOpen:U,handleDrawerToggle:C}),a.jsx(na,{navigate:d,signedInUser:b,isZeni:f.isZeni,isZeniTenant:S,peopleUIState:u.uiState,companyId:y,shouldFetchClasses:k,classList:j,managersView:L,peopleView:u,onInvitePeopleClick:()=>{d("./new")},onColumnSortConfigChanged:(s,o)=>{n(W({sortKey:s,sortOrder:o}))},onRowClick:s=>{const o=`/${r}/people/${encodeURIComponent(s)}/edit`,l=_e(h.state?.pathnameStackToGoBack,h.pathname);d(o,{state:{pathnameStackToGoBack:l}})},onClickMenuIcon:()=>{C(!0)},isAiCfoAccessEnabled:A,onAskAiCfoClick:$})]})}function ka(){const e=He();return Oe(e?.loggedInUserRole??[])?a.jsxs(se,{children:[a.jsx(z,{path:"/",element:a.jsx(M,{})}),a.jsx(z,{path:"new",element:a.jsx(M,{isInvitePeopleDrawerOpen:!0})}),a.jsx(z,{path:":userId/edit",element:a.jsx(M,{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 +0,0 @@
1
- import{j as f}from"./liveblocks-DeKIuJW0.js";import{a as u,R as T,t as A}from"./sentry-CFIOXaw2.js";import{u as z,h as D,j as l,g as M,N as O,l as P}from"./core-yoefL3fM.js";import{u as j,z as s,h as E,G as F,I as N,K as _,O as B,R,S as V,T as v}from"./index-gieT9B7k.js";import{fI as W,Ux as Y,UR as $,gl as J,gn as K,UW as X,gY as G,dk as H,UX as y,UY as Z,UZ as q,c0 as U}from"./zeni-epic-state-DYdYief8.js";import{u as Q}from"./mui-DNBa4RDa.js";import{u as ee}from"./useDeviceId-Bube9FVm.js";import{f as te}from"./analyticsHelper-Dngadv29.js";import{t as ne}from"./getLocaleForTenant-C89a4WTN.js";import"./recharts-8-QnWlJw.js";import"./analytics-C5pGZKS4.js";import"./plaid-Do2QMrb7.js";import"./dnd-0Jes4WSF.js";import"./stripe-cKAAJElX.js";import"./lottie-CnTyxWZD.js";import"./lexical-dxojhk9l.js";import"./pdf-C3-hmPnT.js";import"./utils-CmXRO8Fm.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]="78f1d689-a8eb-4613-937f-3da523896463",t._sentryDebugIdIdentifier="sentry-dbid-78f1d689-a8eb-4613-937f-3da523896463")}catch{}})();const ie=P((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(q({authCode:n,oauthProvider:a,appType:"web",redirectUri:U(c),sourceUri:U(d.state!=null?d.state.origin:"")}))},getSignedInUser:()=>s.getSignedInUser(),onSignedInCallback:()=>{const n=d.state?.origin;n&&n!=="/"?g(n,{replace:!0}):window.open(window.location.origin,"_self")},sendMagicLink:n=>{const{deviceId:a}=i;a!=null&&(s.saveMagicLinkEmail(n),t(Z(n,a)))},clearSignInError:()=>{t(y())}}}))(V),ae=T.memo(ie);function ve({setTenantEmailDomain:t}){const i=z(),d=D(),{clearAllLoading:g}=j(),n=s.getSignedInUser();u.useLayoutEffect((()=>{g()}),[g]);const a=ee(),c=l((e=>e.tenantState.magicLinkCodeVerifier)),{sendEmailMagicLinkFetchState:k,accountLocked:x,accountUnlockTime:h}=l((e=>e.tenantState)),p=l((e=>e.tenantState.fetchState)),L=l((e=>e.tenantState.activeTenantFetchState.fetchState)),S=l((e=>e.tenantState.signInState)),o=l((e=>e.tenantState.loggedInUser)),r=l((e=>W(e))),I=l((e=>Y(e))),m=M(),w=Q().mode,C=m.state?.magicLinkExpired,b=m.state?.magicLinkAlreadyUsed;if(u.useEffect((()=>{k.fetchState==="Completed"&&c!=null&&(E.trackSignInLinkSent(),s.saveMagicLinkCodeVerifier(c))}),[k.fetchState,c]),u.useEffect((()=>{t(void 0)}),[]),u.useEffect((()=>{S!=="In-Progress"||p!=="Completed"&&L!=="Completed"||o?.zeniSessionId==null||r==null||(s.savePayNowInfoTooltip(!0,o.zeniSessionId),s.saveSignedInUserWithSession(o,o.zeniSessionId),s.saveSignedInUserTenants($(I.tenantsInOrder),o.zeniSessionId),J(o.userId,o.zeniSessionId,r.tenantId),i(K(r.tenantId)),s.saveActiveTenantDomainForUser(r.tenantEmailDomain),i(X("Completed")),F.updateAppLocaleID(ne(r)),te(o,r,w,void 0,I.tenantsInOrder),G().then((()=>{const e=R();e!=null&&N(e)})),setTimeout((()=>{E.trackLogin(_.Event.loginSuccess,o.authProvider??"google",H(r.productSettings))}),2e3))}),[S,p,L,o,r,I,w,m.state,i]),S==="In-Progress"&&p==="Completed"&&o?.zeniSessionId!=null&&r!=null||n!=null){const e=m.state?.origin??"/";return f.jsx(O,{to:e,state:{...m.state,origin:""}})}return f.jsxs(f.Fragment,{children:[f.jsx(ae,{magicLinkExpired:!!C,magicLinkAlreadyUsed:!!b,magicLinkExpiredEmail:s.getMagicLinkEmail()??void 0,location:m,navigate:d,deviceId:a??void 0,showEmailLogin:!0}),x===!0&&h!=null?f.jsx(B,{onClose:()=>i(y()),unlockDate:h}):null]})}export{ve as default};
@@ -1,9 +0,0 @@
1
- import{j as s}from"./liveblocks-DeKIuJW0.js";import{a as i}from"./sentry-CFIOXaw2.js";import{u as l,g as c,N as u}from"./core-yoefL3fM.js";import{z as n,h as a,K as m,a5 as p}from"./index-gieT9B7k.js";import{g$ as g,Vb as b}from"./zeni-epic-state-DYdYief8.js";import{n as y}from"./mui-DNBa4RDa.js";import"./recharts-8-QnWlJw.js";import"./analytics-C5pGZKS4.js";import"./plaid-Do2QMrb7.js";import"./dnd-0Jes4WSF.js";import"./stripe-cKAAJElX.js";import"./lottie-CnTyxWZD.js";import"./lexical-dxojhk9l.js";import"./pdf-C3-hmPnT.js";import"./utils-CmXRO8Fm.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]="bb373589-570d-49ea-8ff9-5ed3dc94e411",e._sentryDebugIdIdentifier="sentry-dbid-bb373589-570d-49ea-8ff9-5ed3dc94e411")}catch{}})();function L(){const e=l(),t=c(),r=i.useRef(!1),d=n.isSignedIn(),o=t.state?.message==="logout"||d;return i.useEffect((()=>{if(o&&!r.current){r.current=!0;try{e(g()),b(),a.trackLogout(m.Event.logoutSuccess),a.resetUserIdentity(),n.clearAll()}catch(f){console.error("Error during sign out:",f)}finally{window.location.replace("/signin/auth")}}}),[o,e]),o?s.jsx(h,{children:s.jsx(p,{fetchState:"In-Progress"})}):s.jsx(u,{to:"../",replace:!0})}const h=y.div`
2
- display: flex;
3
- height: 100vh;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- `;export{L as default};
@@ -1 +0,0 @@
1
- import{j as t}from"./liveblocks-DeKIuJW0.js";import i from"./NotFoundScreen-Bsm3y_yC.js";import{T as r}from"./TransactionDetailScreen-CyFtGeWi.js";import"./sentry-CFIOXaw2.js";import{n as a,o as e}from"./core-yoefL3fM.js";import"./zeni-epic-state-DYdYief8.js";import"./recharts-8-QnWlJw.js";import"./index-gieT9B7k.js";import"./mui-DNBa4RDa.js";import"./analytics-C5pGZKS4.js";import"./plaid-Do2QMrb7.js";import"./dnd-0Jes4WSF.js";import"./stripe-cKAAJElX.js";import"./lottie-CnTyxWZD.js";import"./lexical-dxojhk9l.js";import"./pdf-C3-hmPnT.js";import"./utils-CmXRO8Fm.js";import"./useAskAiCfoHostNavButtonProps-D8R8bYQf.js";import"./decodeURIComponentSafe-CqQnGC2-.js";import"./useInitialThreadRequest-D5Rvmxsw.js";import"./routePaths-DxbnHvry.js";import"./expenseAutomationHelper-Bb4aYRfb.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};