@zeniai/web-app-ui 5.1.97-qa → 5.1.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 (122) hide show
  1. package/dist/assets/AddressRoutes-Up5IwqQs.js +1 -0
  2. package/dist/assets/{AddressScreen-4qRIlnK-.js → AddressScreen-UxWcRZmy.js} +2 -2
  3. package/dist/assets/{AiCfoScreen-C0xnk5cF.js → AiCfoScreen-BF05qSzR.js} +2 -2
  4. package/dist/assets/{BillPayApprovalRoutes-oopRYco4.js → BillPayApprovalRoutes-D-GuovwH.js} +1 -1
  5. package/dist/assets/{BillPayRoutes-B0ySvfjH.js → BillPayRoutes-DrOfY-VV.js} +10 -10
  6. package/dist/assets/{BusinessVerificationPageScreen-BfTuFBnf.js → BusinessVerificationPageScreen-B2HhT9ni.js} +2 -2
  7. package/dist/assets/{CardsAiCfoScreen-B68NhQxR.js → CardsAiCfoScreen-BPXCnKpZ.js} +1 -1
  8. package/dist/assets/{ChargeCardRoutes-BBe1i5WM.js → ChargeCardRoutes-CWdtg6YK.js} +6 -6
  9. package/dist/assets/CompanyPassportScreen-x21Ap6N1.js +1 -0
  10. package/dist/assets/{ConnectionAuthScreen-hJWTTt8K.js → ConnectionAuthScreen-ge2sUVoY.js} +1 -1
  11. package/dist/assets/CustomerOnboardingAuthScreen-BIMtfZH9.js +1 -0
  12. package/dist/assets/{CustomerOnboardingRoutes-CMiSGPxL.js → CustomerOnboardingRoutes-DqDGjNdb.js} +4 -4
  13. package/dist/assets/{DashboardRoutes-C-AFXkgO.js → DashboardRoutes-Cgw_iCM3.js} +4 -4
  14. package/dist/assets/{DefaultTenantHome-S2gSmw3u.js → DefaultTenantHome-CR0_CXQW.js} +1 -1
  15. package/dist/assets/DomesticWireDetailScreen-C2GdXtSa.js +18 -0
  16. package/dist/assets/DrawerScreen-B3cQzzUP.js +1 -0
  17. package/dist/assets/{EntityDetailRoutes-CoUef8K_.js → EntityDetailRoutes-CpurlHtH.js} +1 -1
  18. package/dist/assets/{ExpenseAutomationRoutes-DvnfBRy6.js → ExpenseAutomationRoutes-BGX8NlRB.js} +1 -1
  19. package/dist/assets/FeaturePreviewScreen-CMZ336vr.js +1 -0
  20. package/dist/assets/{HubSpotOAuthCallbackScreen-H96Zh7Xb.js → HubSpotOAuthCallbackScreen-CZAmJj_d.js} +1 -1
  21. package/dist/assets/{MagicLinkRoutes-BxVpzgVN.js → MagicLinkRoutes-BDaLfAq1.js} +9 -9
  22. package/dist/assets/MagicLinkSignInScreen-DEG2WA_h.js +12 -0
  23. package/dist/assets/{MobileAppDrawer-BLdyZXBV.js → MobileAppDrawer-BmpM5OEl.js} +1 -1
  24. package/dist/assets/NotFoundScreen-Dzg5zRVC.js +1 -0
  25. package/dist/assets/{NotificationRoutes-CMje6h_r.js → NotificationRoutes-BNb1ZPKE.js} +1 -1
  26. package/dist/assets/OAuthConsentScreen-D_0djnco.js +1 -0
  27. package/dist/assets/{PandLWithForecastRoutes-MVL6Lv1L.js → PandLWithForecastRoutes-cuWrGpLk.js} +1 -1
  28. package/dist/assets/PeopleRoutes-C4qepWZ_.js +22 -0
  29. package/dist/assets/PerformanceRoutes-BzhzpXd0.js +1 -0
  30. package/dist/assets/{Preview-Da-KYkaZ.js → Preview-BOuT-_53.js} +1 -1
  31. package/dist/assets/{QBOConnectionScreen-D2pSbt3W.js → QBOConnectionScreen-lQslhLmS.js} +1 -1
  32. package/dist/assets/ReferralListScreen-BieHflTg.js +5 -0
  33. package/dist/assets/{ReimbursementApprovalRoutes-D_uAmibG.js → ReimbursementApprovalRoutes-BhxstoNC.js} +1 -1
  34. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-oQrkg1Y7.js → ReimbursementApprovalRuleDetailScreen-CkEZJXQa.js} +1 -1
  35. package/dist/assets/{ReimbursementRoutes-BN-W5Zqw.js → ReimbursementRoutes-92SGBZZl.js} +4 -4
  36. package/dist/assets/{ReportsRoutes-BDn-mdcO.js → ReportsRoutes-a54YeLvu.js} +1 -1
  37. package/dist/assets/RewardsRoutes-0DC-adXs.js +1 -0
  38. package/dist/assets/{ScreenRoutes-DgLWjLgf.js → ScreenRoutes-BlNv4YIY.js} +2 -2
  39. package/dist/assets/{SettingsRoutes-B0KcbWsV.js → SettingsRoutes-C6UHiixM.js} +7 -7
  40. package/dist/assets/{SetupPagesScreen-Dux5L0dD.js → SetupPagesScreen-DdbFAdHb.js} +5 -5
  41. package/dist/assets/SignInScreen-HAlIOIjn.js +1 -0
  42. package/dist/assets/SignOutScreen-DW1gUCGz.js +9 -0
  43. package/dist/assets/{TaskListScreen-CLmDQlr2.js → TaskListScreen-B9eSStzs.js} +2 -2
  44. package/dist/assets/{TaskRoutes-Bvfb_uGY.js → TaskRoutes-BZqNTas-.js} +2 -2
  45. package/dist/assets/{TransactionDetailRoutes-CueWZ-Ua.js → TransactionDetailRoutes-BXo-56fO.js} +1 -1
  46. package/dist/assets/{TransactionDetailScreen-Ch1gEoDW.js → TransactionDetailScreen-jnjIQhYw.js} +2 -2
  47. package/dist/assets/{TransactionListRoutes-BtnPGpxm.js → TransactionListRoutes-BYb7ohjf.js} +1 -1
  48. package/dist/assets/{TreasuryRoutes-hhTgxfCu.js → TreasuryRoutes-D_Nc2Thq.js} +5 -5
  49. package/dist/assets/{VendorsRoutes-mwFtgJTR.js → VendorsRoutes-BW-uHhrx.js} +12 -12
  50. package/dist/assets/WiseConfirmationScreen-D1PZo18h.js +12 -0
  51. package/dist/assets/{ZeniAccountRoutes-DCD0MdZe.js → ZeniAccountRoutes-BiCibze4.js} +8 -8
  52. package/dist/assets/{ZeniAccountStatementScreen-DbDEELdQ.js → ZeniAccountStatementScreen-BrNKBtSn.js} +2 -2
  53. package/dist/assets/{accountMappingHelper-rs0CYQJW.js → accountMappingHelper-LYbX13CN.js} +1 -1
  54. package/dist/assets/{analytics-DL3j77s3.js → analytics-C32tZaP0.js} +1 -1
  55. package/dist/assets/{analyticsHelper-BLQhTmmj.js → analyticsHelper-DtQFmi0e.js} +1 -1
  56. package/dist/assets/{core-BUDfBDzW.js → core-BEqwGbSx.js} +1 -1
  57. package/dist/assets/{decodeURIComponentSafe-CAV5JFIH.js → decodeURIComponentSafe-DTCbLY6J.js} +1 -1
  58. package/dist/assets/{dnd-C2uuKLS_.js → dnd-aedH_7an.js} +1 -1
  59. package/dist/assets/{empty-gH7VKio2.js → empty-CTT5XurM.js} +1 -1
  60. package/dist/assets/{empty-BZfUgT7s.js → empty-DaJrG0iL.js} +1 -1
  61. package/dist/assets/{emptyVideoElement-DgEZFuvR.js → emptyVideoElement-BbF1KvUh.js} +1 -1
  62. package/dist/assets/epic-DAvRZRKw.js +2 -0
  63. package/dist/assets/getLocaleForTenant-CPQG2FZU.js +1 -0
  64. package/dist/assets/{index-Pwg8iACI.js → index-54sgiomr.js} +2 -2
  65. package/dist/assets/{index-CwfGUvf7.js → index-BHmbllBx.js} +1 -1
  66. package/dist/assets/{index-B1-02ULB.js → index-BV2hYWmb.js} +1 -1
  67. package/dist/assets/{index-DN3QU4tq.js → index-CIHRBtr6.js} +1 -1
  68. package/dist/assets/{index-JzqLJcCq.js → index-Ctjlt8lG.js} +1 -1
  69. package/dist/assets/{index-9PmElJom.js → index-DD5A7mJH.js} +13722 -13708
  70. package/dist/assets/{index-YvePaYki.js → index-DgEagwC7.js} +1 -1
  71. package/dist/assets/{index-DoyRxeZ8.js → index-hKu4f1iJ.js} +1 -1
  72. package/dist/assets/{lexical-BJhq3Vel.js → lexical-Dk1uI_nN.js} +1 -1
  73. package/dist/assets/{liveblocks-DvqoH3dJ.js → liveblocks-CI520bHO.js} +1 -1
  74. package/dist/assets/{lottie-DU31Qsck.js → lottie-0YTaCosS.js} +1 -1
  75. package/dist/assets/{mui-BX-eccqP.js → mui-6WrS_ojW.js} +1 -1
  76. package/dist/assets/{pathToGoBack-CwLFXs-c.js → pathToGoBack-DZgL3eGt.js} +1 -1
  77. package/dist/assets/{pdf-SnLRVeGX.js → pdf-XPdZ15Zh.js} +3 -3
  78. package/dist/assets/{pdf-lib-C5S3Bgj_.js → pdf-lib-DImtf-Hd.js} +1 -1
  79. package/dist/assets/{plaid-C1X6Gp1j.js → plaid-BwgJPT1f.js} +1 -1
  80. package/dist/assets/{pusher-BeI8juZo.js → pusher-vO-vyZDC.js} +1 -1
  81. package/dist/assets/{react-qzNQ2jmd.js → react-CSZBa4ot.js} +1 -1
  82. package/dist/assets/{react-BLUmJ7p4.js → react-CoNtbOCQ.js} +1 -1
  83. package/dist/assets/{react-CajOW-KO.js → react-DgrHNyrR.js} +1 -1
  84. package/dist/assets/{react-C0kyiULF.js → react-MpBkihu9.js} +1 -1
  85. package/dist/assets/{react-4K1mijgw.js → react-S4diJ2jH.js} +1 -1
  86. package/dist/assets/{react-gWLA1NwC.js → react-bA_ZDfL5.js} +1 -1
  87. package/dist/assets/{recharts-C3oDuogX.js → recharts-HPhXmfTv.js} +1 -1
  88. package/dist/assets/{routePaths-BPZ60_ul.js → routePaths-BEczkE7A.js} +1 -1
  89. package/dist/assets/{sentry-oCFmppdA.js → sentry-B9QSZuyZ.js} +1 -1
  90. package/dist/assets/{url-BJ6QhvOT.js → url-45TnfvPl.js} +1 -1
  91. package/dist/assets/{url-MZGYWUXg.js → url-toWtB1hu.js} +1 -1
  92. package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-CbeWjSYp.js → useAiCfoDashboardSuggestedQuestionsChips-DmLt0ng2.js} +1 -1
  93. package/dist/assets/useAskAiCfoHostNavButtonProps-BGHggyph.js +1 -0
  94. package/dist/assets/{useCashManagementBanner-DGFvypM8.js → useCashManagementBanner-CjSG1LM_.js} +1 -1
  95. package/dist/assets/{useChargeCardPusherEvents-Cb-4seWD.js → useChargeCardPusherEvents-CXqYtiJS.js} +1 -1
  96. package/dist/assets/{useDeviceId-B2fVfrfI.js → useDeviceId-BeyVLeTd.js} +1 -1
  97. package/dist/assets/{useEmailConnectResultRefresh-CrM96Zb1.js → useEmailConnectResultRefresh-DvejkSG7.js} +1 -1
  98. package/dist/assets/{useInitialThreadRequest-DfW2emMG.js → useInitialThreadRequest-CqJaxo92.js} +1 -1
  99. package/dist/assets/{utils-BdmIffFy.js → utils-7NyLmgtg.js} +1 -1
  100. package/dist/assets/{withTransactionSidePanel-CYfRQO6D.js → withTransactionSidePanel-CgEEpbzu.js} +1 -1
  101. package/dist/assets/{zeni-epic-state-BRNxIopP.js → zeni-epic-state-DDiwMHXL.js} +4 -4
  102. package/dist/index.html +1 -1
  103. package/package.json +3 -3
  104. package/dist/assets/AddressRoutes-CkFcdLcd.js +0 -1
  105. package/dist/assets/CompanyPassportScreen-tdQzIeXB.js +0 -1
  106. package/dist/assets/CustomerOnboardingAuthScreen-BR_iC0Wz.js +0 -1
  107. package/dist/assets/DomesticWireDetailScreen-Bf63TFDj.js +0 -18
  108. package/dist/assets/DrawerScreen-CNxma0Qg.js +0 -1
  109. package/dist/assets/FeaturePreviewScreen-BvY_XvYQ.js +0 -1
  110. package/dist/assets/MagicLinkSignInScreen-DU96qNSs.js +0 -12
  111. package/dist/assets/NotFoundScreen-Bjeg8OER.js +0 -1
  112. package/dist/assets/OAuthConsentScreen-jazB5K-T.js +0 -1
  113. package/dist/assets/PeopleRoutes-DSMPSkgq.js +0 -22
  114. package/dist/assets/PerformanceRoutes-C40c0t7S.js +0 -1
  115. package/dist/assets/ReferralListScreen-BRzq9B_u.js +0 -5
  116. package/dist/assets/RewardsRoutes-DFbFMPqn.js +0 -1
  117. package/dist/assets/SignInScreen-CPVG_KJo.js +0 -1
  118. package/dist/assets/SignOutScreen-DVvG8cxR.js +0 -9
  119. package/dist/assets/WiseConfirmationScreen-D9d_nucN.js +0 -12
  120. package/dist/assets/epic-Bh9aJ89a.js +0 -2
  121. package/dist/assets/getLocaleForTenant-D9pSDinJ.js +0 -1
  122. package/dist/assets/useAskAiCfoHostNavButtonProps-I9ttKeZb.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-9PmElJom.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-oCFmppdA.js"><link rel="modulepreload" crossorigin href="/assets/core-BUDfBDzW.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-BRNxIopP.js"><link rel="modulepreload" crossorigin href="/assets/mui-BX-eccqP.js"><link rel="modulepreload" crossorigin href="/assets/analytics-DL3j77s3.js"><link rel="modulepreload" crossorigin href="/assets/utils-BdmIffFy.js"><link rel="stylesheet" crossorigin href="/assets/index-BUmr5maU.css"></head><body style="margin:0"><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><div class="app-shell-loader" id="app-shell-loader"><div class="app-shell-sidebar"><div class="app-shell-sidebar-group"><div class="app-shell-bar zeni-logo" style="width:96px;height:20px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:78px;height:16px"></div><div class="app-shell-bar" style="width:46px;height:16px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:110px;height:16px"></div><div class="app-shell-bar" style="width:84px;height:16px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:84px;height:16px"></div><div class="app-shell-bar" style="width:64px;height:16px"></div></div></div><div class="app-shell-main"><div class="app-shell-navbar"><div class="app-shell-bar" style="width:106px;height:27px"></div><div class="app-shell-bar" style="width:111px;height:32px"></div></div><div class="app-shell-logo"><svg width="96" height="96" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16.768 0.0270284C16.571 -0.055168 16.348 0.0572476 16.2913 0.267574C16.2713 0.342517 16.2489 0.417461 16.2253 0.491196C16.0094 1.15723 15.6459 1.76645 15.148 2.27776C14.3056 3.14203 13.1847 3.61949 11.9918 3.6207H11.9883C10.7978 3.6207 9.67689 3.14565 8.83445 2.2838C8.33653 1.7737 7.97077 1.16448 7.75367 0.499657C7.73007 0.425922 7.70765 0.350979 7.68641 0.276035C7.62978 0.065709 7.40678 -0.0454978 7.20974 0.0366985C6.05463 0.522624 4.98565 1.17899 4.0323 1.97436C3.91195 2.07468 3.87301 2.24512 3.93083 2.39259C3.9792 2.51589 4.03112 2.63797 4.08539 2.75764C4.51133 3.70894 5.10364 4.5853 5.84815 5.34682C7.48937 7.0246 9.66863 7.9493 11.9871 7.9493H11.9954C14.3162 7.94689 16.4978 7.01855 18.1379 5.33595C18.8812 4.57321 19.4711 3.69564 19.8959 2.74434C19.9502 2.62347 20.0009 2.50138 20.0493 2.37809C20.1071 2.23062 20.0682 2.06018 19.9478 1.95985C18.9933 1.16569 17.9231 0.511745 16.768 0.0270284Z"/><path d="M19.9102 21.2422C19.4843 20.2933 18.8931 19.4194 18.151 18.6603C16.5086 16.9801 14.3223 16.053 12.0038 16.0578C8.50304 16.0614 5.48371 18.1961 4.11031 21.2603C4.05722 21.38 4.0053 21.5009 3.95575 21.623C3.89675 21.7704 3.93569 21.9421 4.05722 22.0436C5.01175 22.8366 6.08073 23.4893 7.23466 23.9728C7.4317 24.055 7.65352 23.9438 7.71134 23.7335C7.73139 23.6573 7.75381 23.5836 7.77859 23.5086C8.37207 21.6979 10.0416 20.3888 12.0073 20.3864H12.012C13.2025 20.3864 14.3234 20.8614 15.1659 21.7233C15.6626 22.231 16.026 22.8378 16.2431 23.5002C16.2679 23.5739 16.2903 23.6489 16.3104 23.7238C16.3682 23.9341 16.59 24.0453 16.787 23.9619C17.9422 23.476 19.01 22.8209 19.9633 22.0255C20.0837 21.9252 20.1226 21.7535 20.0648 21.606C20.0164 21.4828 19.9645 21.3631 19.9102 21.2422Z"/><path d="M0.132148 10.1666C0.158105 9.98769 0.305591 9.85352 0.482575 9.85352L23.5093 9.81726C23.6863 9.81726 23.8338 9.95022 23.8609 10.1291C23.9518 10.7347 23.999 11.3548 23.999 11.9858C24.0001 12.6131 23.9541 13.2284 23.8668 13.8292C23.8408 14.0081 23.6934 14.1422 23.5164 14.1422L0.489654 14.1773C0.312671 14.1773 0.165185 14.0443 0.138047 13.8654C0.0471956 13.2598 0 12.6397 0 12.0088C0 11.3826 0.0448358 10.7673 0.132148 10.1666Z"/></svg></div></div></div></body></html>
1
+ <!DOCTYPE html><html lang="en"><head><meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate"><meta http-equiv="expires" content="0"><meta http-equiv="pragma" content="no-cache"><meta charset="UTF-8"><link rel="icon" type="image/svg+xml" href="/assets/favicon-D56XvgAH.ico"><meta name="ROBOTS" content="NOINDEX, NOFOLLOW"><meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1"><meta name="theme-color" content="#000000"><meta name="description" content="Zeni - Modern Finance Team For Startups"><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&family=Manrope:wght@200..800&display=swap"><link rel="apple-touch-icon" href="/assets/logo192-CqcTe-t4.png"><link rel="manifest" href="/assets/manifest-icT4lOF5.json"><title>Zeni - Modern Finance Team For Startups</title><script src="/theme-detect.js"></script><style>:root{--logo-color-from:#D4DCDD;--logo-color-to:#E9F0F0;--bar-color-from:#E9F0F0;--bar-color-to:#D4DCDD;--sidebar-bg:#F3F7F7;--main-bg:#FAFCFC;--divider-color:#D4DCDD}html{background-color:#f3f7f7}html[data-theme=dark]{background-color:#1b1c1c;--logo-color-from:#545B5C;--logo-color-to:#3E4343;--bar-color-from:#3E4343;--bar-color-to:#545B5C;--sidebar-bg:#1B1C1C;--main-bg:#202222;--divider-color:#545B5C}.app-shell-loader{position:fixed;inset:0;display:flex;background-color:var(--sidebar-bg);z-index:9999}.app-shell-sidebar{width:210px;flex-shrink:0;background-color:var(--sidebar-bg);padding:16px 16px 0;display:flex;flex-direction:column;gap:36px;border-right:1px solid var(--divider-color);box-sizing:border-box}.app-shell-sidebar-group{display:flex;flex-direction:column;gap:10px}.app-shell-bar{height:10px;border-radius:5px;background-color:var(--bar-color-from);animation:app-shell-bar-shimmer 1.6s linear infinite}.app-shell-navbar{height:56px;display:flex;flex-direction:row;border-bottom:1px solid var(--divider-color);padding:0 32px;align-items:center;justify-content:space-between;box-sizing:border-box}@keyframes app-shell-bar-shimmer{0%,100%{background-color:var(--bar-color-from)}50%{background-color:var(--bar-color-to)}}.app-shell-main{flex:1;background-color:var(--main-bg)}.app-shell-logo{display:inline-flex;width:100%;height:calc(100vh - 56px);justify-content:center;align-items:center}.app-shell-logo svg path{animation:app-shell-color-cycle 1.6s linear infinite}@keyframes app-shell-color-cycle{0%,100%{fill:var(--logo-color-from)}50%{fill:var(--logo-color-to)}}@media (max-width:899px){.app-shell-sidebar{display:none}.app-shell-main{background-color:var(--sidebar-bg)}}</style><noscript><style>.app-shell-loader{display:none}</style></noscript><script async type="module" crossorigin src="/assets/index-DD5A7mJH.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-B9QSZuyZ.js"><link rel="modulepreload" crossorigin href="/assets/core-BEqwGbSx.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-DDiwMHXL.js"><link rel="modulepreload" crossorigin href="/assets/mui-6WrS_ojW.js"><link rel="modulepreload" crossorigin href="/assets/analytics-C32tZaP0.js"><link rel="modulepreload" crossorigin href="/assets/utils-7NyLmgtg.js"><link rel="stylesheet" crossorigin href="/assets/index-BUmr5maU.css"></head><body style="margin:0"><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><div class="app-shell-loader" id="app-shell-loader"><div class="app-shell-sidebar"><div class="app-shell-sidebar-group"><div class="app-shell-bar zeni-logo" style="width:96px;height:20px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:78px;height:16px"></div><div class="app-shell-bar" style="width:46px;height:16px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:110px;height:16px"></div><div class="app-shell-bar" style="width:84px;height:16px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:84px;height:16px"></div><div class="app-shell-bar" style="width:64px;height:16px"></div></div></div><div class="app-shell-main"><div class="app-shell-navbar"><div class="app-shell-bar" style="width:106px;height:27px"></div><div class="app-shell-bar" style="width:111px;height:32px"></div></div><div class="app-shell-logo"><svg width="96" height="96" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16.768 0.0270284C16.571 -0.055168 16.348 0.0572476 16.2913 0.267574C16.2713 0.342517 16.2489 0.417461 16.2253 0.491196C16.0094 1.15723 15.6459 1.76645 15.148 2.27776C14.3056 3.14203 13.1847 3.61949 11.9918 3.6207H11.9883C10.7978 3.6207 9.67689 3.14565 8.83445 2.2838C8.33653 1.7737 7.97077 1.16448 7.75367 0.499657C7.73007 0.425922 7.70765 0.350979 7.68641 0.276035C7.62978 0.065709 7.40678 -0.0454978 7.20974 0.0366985C6.05463 0.522624 4.98565 1.17899 4.0323 1.97436C3.91195 2.07468 3.87301 2.24512 3.93083 2.39259C3.9792 2.51589 4.03112 2.63797 4.08539 2.75764C4.51133 3.70894 5.10364 4.5853 5.84815 5.34682C7.48937 7.0246 9.66863 7.9493 11.9871 7.9493H11.9954C14.3162 7.94689 16.4978 7.01855 18.1379 5.33595C18.8812 4.57321 19.4711 3.69564 19.8959 2.74434C19.9502 2.62347 20.0009 2.50138 20.0493 2.37809C20.1071 2.23062 20.0682 2.06018 19.9478 1.95985C18.9933 1.16569 17.9231 0.511745 16.768 0.0270284Z"/><path d="M19.9102 21.2422C19.4843 20.2933 18.8931 19.4194 18.151 18.6603C16.5086 16.9801 14.3223 16.053 12.0038 16.0578C8.50304 16.0614 5.48371 18.1961 4.11031 21.2603C4.05722 21.38 4.0053 21.5009 3.95575 21.623C3.89675 21.7704 3.93569 21.9421 4.05722 22.0436C5.01175 22.8366 6.08073 23.4893 7.23466 23.9728C7.4317 24.055 7.65352 23.9438 7.71134 23.7335C7.73139 23.6573 7.75381 23.5836 7.77859 23.5086C8.37207 21.6979 10.0416 20.3888 12.0073 20.3864H12.012C13.2025 20.3864 14.3234 20.8614 15.1659 21.7233C15.6626 22.231 16.026 22.8378 16.2431 23.5002C16.2679 23.5739 16.2903 23.6489 16.3104 23.7238C16.3682 23.9341 16.59 24.0453 16.787 23.9619C17.9422 23.476 19.01 22.8209 19.9633 22.0255C20.0837 21.9252 20.1226 21.7535 20.0648 21.606C20.0164 21.4828 19.9645 21.3631 19.9102 21.2422Z"/><path d="M0.132148 10.1666C0.158105 9.98769 0.305591 9.85352 0.482575 9.85352L23.5093 9.81726C23.6863 9.81726 23.8338 9.95022 23.8609 10.1291C23.9518 10.7347 23.999 11.3548 23.999 11.9858C24.0001 12.6131 23.9541 13.2284 23.8668 13.8292C23.8408 14.0081 23.6934 14.1422 23.5164 14.1422L0.489654 14.1773C0.312671 14.1773 0.165185 14.0443 0.138047 13.8654C0.0471956 13.2598 0 12.6397 0 12.0088C0 11.3826 0.0448358 10.7673 0.132148 10.1666Z"/></svg></div></div></div></body></html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/web-app-ui",
3
- "version": "5.1.97-qa",
3
+ "version": "5.1.98-dev",
4
4
  "files": [
5
5
  "dist/**/*"
6
6
  ],
@@ -28,8 +28,8 @@
28
28
  "@sentry/react": "^9.42.1",
29
29
  "@stripe/stripe-js": "^4.4.0",
30
30
  "@zeniai/client-analytics": "2.0.31",
31
- "@zeniai/client-epic-state": "5.1.24",
32
- "@zeniai/web-components": "4.2.17",
31
+ "@zeniai/client-epic-state": "5.1.26",
32
+ "@zeniai/web-components": "4.2.18",
33
33
  "color": "3.1.3",
34
34
  "cross-fetch": "^4.0.0",
35
35
  "crypto-js": "4.2.0",
@@ -1 +0,0 @@
1
- import{j as e}from"./liveblocks-DvqoH3dJ.js";import{A as d}from"./AddressScreen-4qRIlnK-.js";import i from"./NotFoundScreen-Bjeg8OER.js";import"./sentry-oCFmppdA.js";import{o as s,p as r}from"./core-BUDfBDzW.js";import"./zeni-epic-state-BRNxIopP.js";import"./recharts-C3oDuogX.js";import"./index-9PmElJom.js";import"./mui-BX-eccqP.js";import"./analytics-DL3j77s3.js";import"./plaid-C1X6Gp1j.js";import"./dnd-C2uuKLS_.js";import"./stripe-DMRn4zHo.js";import"./lottie-DU31Qsck.js";import"./lexical-BJhq3Vel.js";import"./pdf-SnLRVeGX.js";import"./utils-BdmIffFy.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new t.Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="cd0ff2b4-1e27-4329-addf-f475e5a9db34",t._sentryDebugIdIdentifier="sentry-dbid-cd0ff2b4-1e27-4329-addf-f475e5a9db34")}catch{}})();function _(){return e.jsxs(s,{children:[e.jsx(r,{path:"/edit/:addressType/:addressId",element:e.jsx(d,{})}),e.jsx(r,{path:"/new/:addressType",element:e.jsx(d,{})}),e.jsx(r,{path:"*",element:e.jsx(i,{})})]})}export{_ as default};
@@ -1 +0,0 @@
1
- import{j as m}from"./liveblocks-DvqoH3dJ.js";import{a as g}from"./sentry-oCFmppdA.js";import{h as w,u as T,g as x,i as k,j as O,n as E}from"./core-BUDfBDzW.js";import{z as N,be as P,v as F,e as V,g as j,ag as C,bf as A,au as L,av as U,r as B}from"./index-9PmElJom.js";import{eX as h,gj as M,tC as _,ge as G,c6 as R,Pn as z,bn as Y,rC as q,rq as H,l5 as Q,mG as S,Po as X,bE as Z,cy as D,mQ as $,mT as J}from"./zeni-epic-state-BRNxIopP.js";import"./mui-BX-eccqP.js";import{d as K}from"./routePaths-BPZ60_ul.js";import{M as W}from"./MobileAppDrawer-BLdyZXBV.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]="5564750f-609a-41fc-9955-2cc2510dfd15",t._sentryDebugIdIdentifier="sentry-dbid-5564750f-609a-41fc-9955-2cc2510dfd15")}catch{}})();const ee=E(function(t){const a=G(t),i=N.getSignedInUser(),l=h(t),c=l.tenantId,p={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:c??""},f=R(l?.userRole??[])&&a.localData.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",e=z(t.companyConfigState),n=t.countryListState?.byCountryListCode?.nationalityCountryList?.countries??[];return{isCompanyVerified:a.companyView?.company?.company?.companyBillPayInfo?.companyVerificationStatus?.code==="verified",companyPassportView:a,allIndustries:e.companyIndustries??[],allNationalityCountries:n,isDisabled:f,authParams:p,filesEndPoint:`${L.fileMicroServiceBaseUrl}`,isZeniUser:Y(i)}},function(t,a){const{companyId:i,currentTenant:l,navigate:c,location:p}=a,{tenantEmailDomain:f}=l;return{onScheduleClick:e=>{let n=e.href;n.includes("http")||(n="https://".concat(n)),window.open(n,"_blank")},onSaveAll:()=>{t(J())},onAddressClick:e=>{const n=K(f,e),o=B(p.state?.pathnameStackToGoBack,p.pathname);c(n,{state:{pathnameStackToGoBack:o}})},onResetClick:()=>{t($({companyId:i}))},onBackClick:()=>{c("../")},onCompanyDetailsChanged:e=>{const{companyInfo:n,incInfo:o,taxDetails:r,zeniFinanceTeam:d}=e,{website:u}=n,{meetingLink:y}=d,{incDate:s}=o,{taxesFiledYears:b}=r,v={companyInfo:{...n,website:u!=""&&u!=null?D(u):void 0,meetingLink:y!=""&&y!=null?D(y):void 0,industry:n.industry.selectedOption,companyIndustryType:n.companyIndustryType?.selectedOption??void 0,companySubIndustry:n.companySubIndustry?.selectedOption??void 0,businessModel:n.businessModel.selectedOption??"",companySourceOfFunds:n.companySourceOfFunds?.selectedOption,companySourceOfFundsDescription:n.companySourceOfFundsDescription??void 0,countriesOfOperations:n.countriesOfOperations?.selectedOptions?.map(I=>I.length===2?I:U(I))??[],transactionVolume:n.transactionVolume?.selectedOption??void 0,transactionVolumeDescription:n.transactionVolumeDescription??void 0,regulatedStatus:n.regulatedStatus??void 0,regulatedStatusDescription:n.regulatedStatusDescription??void 0,usNexus:n.usNexus??void 0,usNexusTypes:n.usNexusTypes?.selectedOptions??[],purposeOfAccount:n.purposeOfAccount?.selectedOption??void 0,purposeOfAccountDescription:n.purposeOfAccountDescription??void 0},incInfo:{typeOfInc:o.typeOfInc.selectedOption??"",stateOfInc:o.stateOfInc.selectedOption??"",incDate:s!=null?Z(s?.toString()):s,fileId:o.fileIds[0]},taxDetails:{taxIdOrEIN:r.taxIdOrEIN,sicCode:r.sicCode,naicsCode:r.naicsCode,dunsNumber:r.dunsNumber,taxesFiledYears:b.selectedOptions.map(I=>parseInt(I)),fileId:r.fileIds[0]}};t(S({companyDetails:v}))},onPrimaryContactDetailsUpdated:e=>{t(S({primaryContact:{userId:e.userId,email:e.email.trim(),firstName:e.name.firstName,lastName:e.name.lastName}}))},onNewCompanyOfficerAdded:e=>{t(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:void 0}]}))},onNewCompanyOfficerRemoved:e=>{t(X(e))},onCompanyOfficerUpdated:e=>{t(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:e.userId}]}))},updateFilesEntity:e=>{t(Q({files:e}))},onDeleteFile:e=>{t(H(e))},onEditFileName:(e,n)=>{t(q(e,n.split(".")[0]))}}})(A);function de(){const t=w(),a=T(),i=x(),{tenantEmailDomain:l}=k(),[c,p]=g.useState(!1),[f,e]=g.useState(!1),n=O(s=>s.companyViewState.passportView.fetchState),o=O(s=>s.companyConfigState.fetchState),r=O(s=>h(s)),d=r.companyId??N.getSignedInUserTenant(l)?.companyId;if(N.getSignedInUser()==null)throw Error("Can't access company details page without signing in...");g.useEffect(()=>{c||n!=="Not-Started"||d==null||(p(!0),a(M(d)))},[c,n,d,a]),g.useEffect(()=>{o==="Not-Started"&&a(_())},[o,a]);const u=s=>{e(s)},y=n==="Not-Started"||n==="In-Progress"||o==="Not-Started"||o==="In-Progress";return d!=null&&n==="Error"?m.jsx(P,{onGoHome:()=>t("../",{replace:!0}),onReload:()=>window.location.reload()}):m.jsxs(m.Fragment,{children:[m.jsx(F,{analytics:V,onLoad:s=>s.trackPageLoaded(j.Event.companyPassport,C(i)?"Settings":"Company Passport")}),C(i)?m.jsx(W,{isAppContentDrawerOpen:f,handleDrawerToggle:u}):null,m.jsx(ee,{companyId:d,navigate:t,location:i,isLoading:y,currentTenant:r,isSettings:C(i),onClickMenuIcon:()=>{u(!0)}})]})}export{de as C};
@@ -1 +0,0 @@
1
- import{j as i}from"./liveblocks-DvqoH3dJ.js";import{z as n}from"./index-9PmElJom.js";import{g as d}from"./QBOConnectionScreen-D2pSbt3W.js";import"./sentry-oCFmppdA.js";import{g as p,N as s}from"./core-BUDfBDzW.js";import"./zeni-epic-state-BRNxIopP.js";import"./recharts-C3oDuogX.js";import"./mui-BX-eccqP.js";import"./analytics-DL3j77s3.js";import"./plaid-C1X6Gp1j.js";import"./dnd-C2uuKLS_.js";import"./stripe-DMRn4zHo.js";import"./lottie-DU31Qsck.js";import"./lexical-BJhq3Vel.js";import"./pdf-SnLRVeGX.js";import"./utils-BdmIffFy.js";import"./empty-gH7VKio2.js";import"./pdf-lib-C5S3Bgj_.js";import"./index-CwfGUvf7.js";import"./url-MZGYWUXg.js";import"./index-YvePaYki.js";import"./decodeURIComponentSafe-CAV5JFIH.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new t.Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="817363c8-7f1d-4590-b58b-cef70b99ca15",t._sentryDebugIdIdentifier="sentry-dbid-817363c8-7f1d-4590-b58b-cef70b99ca15")}catch{}})();const U=()=>{const t=p(),{code:o,realmId:r,state:e}=d(t.search),m=n.getSignedInUser()?.userId??"";if(f(o,r,e,m)===!0){const a=`../../${e}/onboarding?code=${o}&realmId=${r}&state=auth_flow`;return i.jsx(s,{to:a})}return i.jsx(s,{to:"../../"})},f=(t,o,r,e)=>t!=""&&o!=""&&r!=""&&e!=null&&e!="";export{U as default,f as hasValidParams};
@@ -1,18 +0,0 @@
1
- import{j as l}from"./liveblocks-DvqoH3dJ.js";import{h as w,g as C,j as h,n as A,i as B}from"./core-BUDfBDzW.js";import{Q4 as k,Qb as _,gh as q,gg as K,gf as W,ju as X,Nb as J,rt as L,eX as D,PC as V,js as T,Q5 as S,Qe as j,jq as F,jN as G}from"./zeni-epic-state-BRNxIopP.js";import{bB as M,K as N,C as R,z as U,y as O,q as p,G as v,B as Q,bC as Y,o as Z,bD as ee,r as te}from"./index-9PmElJom.js";import{n as z}from"./mui-BX-eccqP.js";import"./sentry-oCFmppdA.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]="1ff5658e-7c1a-4ce3-bde2-d0258d9e3e49",e._sentryDebugIdIdentifier="sentry-dbid-1ff5658e-7c1a-4ce3-bde2-d0258d9e3e49")}catch{}})();const ne=A(null,function(e,t){return{onSaveVendor:n=>{e(X(t.vendorId!==void 0?t.vendorId:void 0,t.billId,void 0,t.isExpressPayPage)),e(J("common")),n!=null&&e(L(n))},onGetOtp:n=>{e(W(n,"BillPayVendor"))},onResendOtp:n=>{e(K(n,"BillPayVendor"))},onVerifyOtp:(n,a)=>{e(q(n,a,"BillPayVendor"))},onVerifyOtpSuccess:(n,a,o)=>{e(_(n,a,o))}}})(M);function H({vendorId:e,billId:t,isExpressPayPage:n}){const a=w(),o=C(),s=h(d=>k(d,e));return l.jsx(ne,{location:o,navigate:a,vendorId:e,billId:t,vendorViewDetails:s,isExpressPayPage:n??!1})}const ae=z.div`
2
- display: flex;
3
- height: 100vh;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- `,oe=A(function(e,t){const{vendorId:n,billId:a}=t,o=k(e,n),s=V(e,t.isVendorRecommendationEnabled,t.isZeniAccountsFeatureEnabled,a);return{billId:a,isDisabled:o.bankAccountCreationState.fetchState==="In-Progress"?"readonly":void 0,vendorViewDetails:o,file:s.file,bankAccountContext:t.bankAccountContext}},function(e,t){const{navigate:n,location:a,vendorId:o}=t;return{onFetchBankName:s=>{e(G(s))},onSaveHandler:s=>{e(F(t.bankAccountContext,s,"standard",o))},onCancel:()=>{(()=>{const s=p(a.state?.pathnameStackToGoBack),d=s.poppedPathname??E();n(d,{state:{pathnameStackToGoBack:s.newStack}})})(),e(S())},onACHDetailsUpdated:s=>{const{bankAccountSection:d}=s;e(j({data:d}))},onBackClick:()=>{if(e(T({fetchState:"Not-Started"})),t.bankAccountContext==="express-pay")n("../",{relative:"path"});else{const s=p(t.location.state?.pathnameStackToGoBack),d=s.poppedPathname??E(0);t.navigate(d,{state:{pathnameStackToGoBack:s.newStack}})}e(S())}}})(Y);function fe({vendorIdParam:e,accountContext:t}){const n=w(),a=C(),o=N(),{vendorId:s,billId:d}=B(),i=e??s,{useFeatureGate:r}=R(),c=U.getSignedInUser(),b=h(u=>D(u)),g=O(),x=p(a.state?.pathnameStackToGoBack),f=t??(x.poppedPathname?.includes("vendor")===!0?"vendor":"billDetail"),m=h(u=>k(u,i)),{isFeatureEnabled:I}=r(v.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:y}=r(v.isDepositAccountsFeatureEnabled);if(c==null)throw Error("Can't access address page without signing in...");return f==="billDetail"&&m.editVendorState?.saveStatus.fetchState==="In-Progress"?l.jsx(Q,{fetchState:m.editVendorState?.saveStatus.fetchState??"Not-Started",style:{backgroundColor:g.colors.grey5}}):l.jsxs(ae,{windowSize:o,children:[l.jsx(H,{vendorId:i,billId:d}),l.jsx(oe,{location:a,navigate:n,billId:d,vendorId:i,currentTenant:b,bankAccountContext:f,isVendorRecommendationEnabled:I,isZeniAccountsFeatureEnabled:y})]})}const E=(e=2)=>{let t="../";for(let n=0;n<e;n++)t=`${t}../`;return t},me=(e,t,n)=>{let a=`/${e}/bill/${encodeURIComponent(t)}`;return n=="draft"&&(a+="/edit"),a},he=e=>`/${e}/bills`,ke=(e,t)=>{let n=`/${e}/bill`;return n=t!=null?n.concat(`/${t}/edit`):n.concat("/new"),n},P=(e,t,n,a)=>{let o=`/${e}/bill`;return o+=n!=null?`/${n}/edit/vendor`:"/new/vendor",o+=a!=null?`/${a}/edit/${t}`:`/create/${t}`,o};function Se(e,t,n){return P(e,"ach",t,n)}function ve(e,t,n){return P(e,"domestic",t,n)}function ge(e,t,n){return P(e,"international",t,n)}const se=(e,t,n)=>{let a=`/${e}/bill/`;return a=n!=null?a.concat(`${encodeURIComponent(n)}/${t}/`):a.concat(`new/${t}/`),a},re=z.div`
10
- display: flex;
11
- height: 100vh;
12
- width: 100%;
13
- flex: 1 1 auto;
14
- flex-direction: column;
15
- align-items: center;
16
- background-color: ${e=>e.theme.colors.grey4};
17
- box-shadow: ${e=>`0px 2px ${Z.sp1} ${e.theme.colors.dropShadowNormal}`};
18
- `,de=A(function(e,t){const{vendorId:n,billId:a}=t,o=k(e,n),s=V(e,t.isVendorRecommendationEnabled,t.isZeniAccountsFeatureEnabled,a);return{billId:a,isDisabled:o.bankAccountCreationState.fetchState==="In-Progress"?"readonly":void 0,vendorViewDetails:o,file:s.file,bankAccountContext:t.bankAccountContext}},function(e,t){const{billId:n,navigate:a,location:o,vendorId:s,currentTenant:d}=t,{tenantEmailDomain:i}=d;return{onFetchBankName:r=>{e(G(r))},onSaveHandler:r=>{e(F(t.bankAccountContext,r,"us-domestic",s))},onWireDetailsUpdated:r=>{const{bankAccountSection:c}=r;e(j({data:c}))},onCancel:()=>{(()=>{const r=p(o.state?.pathnameStackToGoBack),c=r.poppedPathname??$();a(c,{state:{pathnameStackToGoBack:r.newStack}})})(),e(S())},onAddressClick:r=>{if(t.bankAccountContext==="express-pay")a("./add-address");else{const c=se(i,r,n),b=te(o.state?.pathnameStackToGoBack,o.pathname);a(c,{state:{pathnameStackToGoBack:b}})}},onBackClick:()=>{if(e(T({fetchState:"Not-Started"})),t.bankAccountContext==="express-pay")a("../",{relative:"path"});else{const r=p(t.location.state?.pathnameStackToGoBack),c=r.poppedPathname??$(0);t.navigate(c,{state:{pathnameStackToGoBack:r.newStack}})}e(S())}}})(ee);function xe({vendorIdParam:e,accountContext:t}){const n=w(),a=C(),o=N(),{vendorId:s,billId:d}=B(),i=e??s,r=U.getSignedInUser(),{useFeatureGate:c}=R(),b=O(),g=h(u=>D(u)),x=p(a.state?.pathnameStackToGoBack),f=t??(x.poppedPathname?.includes("vendor")===!0?"vendor":"billDetail"),m=h(u=>k(u,i)),{isFeatureEnabled:I}=c(v.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:y}=c(v.isDepositAccountsFeatureEnabled);if(r==null)throw Error("Can't access address page without signing in...");return f==="billDetail"&&m.editVendorState?.saveStatus.fetchState==="In-Progress"?l.jsx(Q,{fetchState:m.editVendorState?.saveStatus.fetchState??"Not-Started",style:{backgroundColor:b.colors.grey5,boxShadow:`0px 2px ${Z.sp1} ${b.colors.dropShadowNormal}`}}):l.jsxs(re,{windowSize:o,children:[l.jsx(H,{vendorId:i,billId:d}),l.jsx(de,{location:a,navigate:n,billId:d,vendorId:i,currentTenant:g,bankAccountContext:f,isVendorRecommendationEnabled:I,isZeniAccountsFeatureEnabled:y})]})}const $=(e=2)=>{let t="../";for(let n=0;n<e;n++)t=`${t}../`;return t};export{fe as A,xe as D,H as V,me as a,se as b,ke as c,ve as d,he as g,ge as i,Se as v};
@@ -1 +0,0 @@
1
- import{j as i}from"./liveblocks-DvqoH3dJ.js";import{K as l,D as c,y as f}from"./index-9PmElJom.js";import{D as p}from"./mui-BX-eccqP.js";import"./sentry-oCFmppdA.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]="9bc2d0d9-a1d8-45e5-aeda-5725b86102f8",e._sentryDebugIdIdentifier="sentry-dbid-9bc2d0d9-a1d8-45e5-aeda-5725b86102f8")}catch{}})();const b={drawerLeftMargin:new c(0,0,240)};function h(e){const{isOpen:r,drawerLeftMargin:o,children:a,onClose:t}=e,n=l(),d=o?.valuePx(n)??b.drawerLeftMargin.valuePx(n),s=f();return i.jsx(p,{anchor:"right",open:r,PaperProps:{style:{width:`calc(100% - ${d})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:t,children:a})}export{h as D};
@@ -1 +0,0 @@
1
- import{j as s}from"./liveblocks-DvqoH3dJ.js";import{a as r}from"./sentry-oCFmppdA.js";import{a5 as c,a6 as l,a7 as p,q as b}from"./index-9PmElJom.js";import"./mui-BX-eccqP.js";import m from"./NotFoundScreen-Bjeg8OER.js";import{h as f,g as u}from"./core-BUDfBDzW.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]="527d9e25-3d01-4280-b0c1-0c01931b4bab",e._sentryDebugIdIdentifier="sentry-dbid-527d9e25-3d01-4280-b0c1-0c01931b4bab")}catch{}})();const _=()=>{const e=f(),a=u(),t=r.useCallback(()=>{window.open("https://www.zeni.ai/demo/request","_blank")},[]),d=r.useCallback(()=>{(()=>{const n=b(a.state?.pathnameStackToGoBack),i=n.poppedPathname??k();e(i,{state:{pathnameStackToGoBack:n.newStack}})})()},[]),o=c(a.pathname);return o!=null?s.jsx(l,{menuItem:p(o),onDemoClick:t,onGoBack:d}):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-DvqoH3dJ.js";import{a as g}from"./sentry-oCFmppdA.js";import{u as F,g as O,h as _,t as w,j as l,N as T}from"./core-BUDfBDzW.js";import{z as r,y as A,a as P,f as V,e as N,g as W,m as Y,W as R,j as X}from"./index-9PmElJom.js";import{eX as Z,LY as $,M6 as q,LZ as B,fA as G,g0 as H,M2 as J,go as K,cY as Q,M7 as ee,M8 as te}from"./zeni-epic-state-BRNxIopP.js";import{n as ne}from"./mui-BX-eccqP.js";import{u as ae}from"./useDeviceId-B2fVfrfI.js";import{f as se}from"./analyticsHelper-BLQhTmmj.js";import{t as ie}from"./getLocaleForTenant-D9pSDinJ.js";import"./recharts-C3oDuogX.js";import"./analytics-DL3j77s3.js";import"./plaid-C1X6Gp1j.js";import"./dnd-C2uuKLS_.js";import"./stripe-DMRn4zHo.js";import"./lottie-DU31Qsck.js";import"./lexical-BJhq3Vel.js";import"./pdf-SnLRVeGX.js";import"./utils-BdmIffFy.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]="4ab7b64a-388c-491f-bab1-ebd8ac06125c",t._sentryDebugIdIdentifier="sentry-dbid-4ab7b64a-388c-491f-bab1-ebd8ac06125c")}catch{}})();const x=(t,s)=>t!=null&&t.length>0&&s==="magic_links";function xe(){const t=F(),s=O(),f=_(),[y]=w(),n=y.get("token"),p=y.get("stytch_token_type"),m=r.getMagicLinkCodeVerifier(),i=ae(),{otpChallenge:d,twoFAPhoneNumber:z,magicLinkEmail:c,verifyDeviceFetchState:C,resendVerifyDeviceOTPFetchState:D}=l(e=>e.tenantState),S=l(e=>e.tenantState.fetchState),k=l(e=>e.tenantState.activeTenantFetchState.fetchState),b=l(e=>e.tenantState.signInState),I=l(e=>e.tenantState.magicLinkSignInFetchState.fetchState),a=l(e=>e.tenantState.loggedInUser),o=l(e=>Z(e)),h=l(e=>$(e)),E=r.getSignedInUser(),v=A().mode;g.useEffect(()=>{a?.zeniSessionId==null&&n!=null&&x(n,p)&&i!=null&&m!=null&&(r.saveMagicLinkTriggered(n),t(q(n,i,m)))},[n,p,t,i,m,a?.zeniSessionId]),g.useEffect(()=>{b!=="In-Progress"||S!=="Completed"&&k!=="Completed"||a?.zeniSessionId==null||o==null||(n!=null&&r.saveLastUsedMagicLinkToken(n),r.saveSignedInUserWithSession(a,a.zeniSessionId),r.saveSignedInUserTenants(B(h.tenantsInOrder),a.zeniSessionId),G(a.userId,a.zeniSessionId,o.tenantId),t(H(o.tenantId)),r.saveActiveTenantDomainForUser(o.tenantEmailDomain),t(J("Completed")),P.updateAppLocaleID(ie(o)),se(a,o,v,void 0,h.tenantsInOrder),K().then(()=>{const e=X();e!=null&&V(e)}),setTimeout(()=>{N.trackLogin(W.Event.loginSuccess,"email",Q(o.productSettings))},2e3))},[b,S,k,a,o,h,v,s.state,t]);const j=g.useCallback(()=>{f("/signin/auth")},[f]),M=g.useCallback(()=>{i!=null&&d!=null&&c!=null&&t(ee(i,c,d))},[i,d,t,c]),U=g.useCallback(e=>{i!=null&&n!=null&&c!=null&&d!=null&&t(te(e,i,c,d))},[i,n,t,c,d]);if(I==="Completed"&&d!=null)return u.jsx(Y,{phoneNumber:z,verifyOtpFetchState:C.fetchState,resendVerifyDeviceOTPFetchState:D,onResendOtp:M,onVerifyOtp:U,onCancelVerifyDevice:j});if(b==="In-Progress"&&S==="Completed"&&a?.zeniSessionId!=null&&o!=null||E!=null){const e=s.state?.origin??"/";return u.jsx(T,{to:e,state:{...s.state,origin:""}})}if(!x(n,p)||m==null||I==="Error"){const e=s.state?.origin??"/",L=n!=null&&r.getLastUsedMagicLinkToken()===n;return u.jsx(T,{to:e,state:{...s.state,origin:"",magicLinkAlreadyUsed:L,magicLinkExpired:!L&&(r.isMagicLinkTriggered(n??"")||I==="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{xe as default};
@@ -1 +0,0 @@
1
- import{j as r}from"./liveblocks-DvqoH3dJ.js";import{h as n,n as i}from"./core-BUDfBDzW.js";import{O as e}from"./index-9PmElJom.js";import"./mui-BX-eccqP.js";import"./sentry-oCFmppdA.js";import"./zeni-epic-state-BRNxIopP.js";import"./recharts-C3oDuogX.js";import"./analytics-DL3j77s3.js";import"./plaid-C1X6Gp1j.js";import"./dnd-C2uuKLS_.js";import"./stripe-DMRn4zHo.js";import"./lottie-DU31Qsck.js";import"./lexical-BJhq3Vel.js";import"./pdf-SnLRVeGX.js";import"./utils-BdmIffFy.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]="d7666c0b-2a75-4baf-97d7-b828025403bf",o._sentryDebugIdIdentifier="sentry-dbid-d7666c0b-2a75-4baf-97d7-b828025403bf")}catch{}})();const a=i(null,function(o,t){return{onGoBack:()=>{t.navigate(-1)},onGoHome:()=>{t.navigate("/")}}})(e);function _(){const o=n();return r.jsx(a,{navigate:o})}export{_ as default};
@@ -1 +0,0 @@
1
- import{j as m}from"./liveblocks-DvqoH3dJ.js";import{a as r}from"./sentry-oCFmppdA.js";import{u as T,g as A,j as o,N as j}from"./core-BUDfBDzW.js";import{Ml as C,eX as P,fN as x,Mm as z,Mn as D,Mo as L,Mp as N,o9 as R,Li as k}from"./zeni-epic-state-BRNxIopP.js";import{z as h,M as I}from"./index-9PmElJom.js";import"./mui-BX-eccqP.js";import"./recharts-C3oDuogX.js";import"./analytics-DL3j77s3.js";import"./plaid-C1X6Gp1j.js";import"./dnd-C2uuKLS_.js";import"./stripe-DMRn4zHo.js";import"./lottie-DU31Qsck.js";import"./lexical-BJhq3Vel.js";import"./pdf-SnLRVeGX.js";import"./utils-BdmIffFy.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new n.Error().stack;s&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[s]="a419abd1-ddb3-4468-96e2-6bfcf65d0163",n._sentryDebugIdIdentifier="sentry-dbid-a419abd1-ddb3-4468-96e2-6bfcf65d0163")}catch{}})();function ee(){const n=T(),s=A(),{params:t,error:i}=r.useMemo(()=>C(s.search),[s.search]),w=r.useMemo(()=>new URLSearchParams(s.search).get("client_name")??t?.clientId??"Unknown Application",[s.search,t]),p=h.isSignedIn(),a=h.getSignedInUser(),f=o(e=>P(e)),l=o(e=>x(e)),d=o(e=>e.tenantState.fetchState),b=o(z),y=o(D),u=o(L),[v,S]=r.useState(null),[E,M]=r.useState(null);r.useEffect(()=>{document.querySelector("#app-shell-loader")?.remove()},[]),r.useEffect(()=>()=>{n(N())},[n,s.search]),r.useEffect(()=>{i!=null&&console.warn("[OAuthConsent] invalid params:",i)},[i]);const g=r.useRef(!1);r.useEffect(()=>{p&&a!=null&&!g.current&&(d!=="Not-Started"&&d!=="Error"||(g.current=!0,n(R(a.userId,a.zeniSessionId??void 0))))},[p,a,d,n]),r.useEffect(()=>{u!=null&&u!==""&&(window.location.href=u)},[u]);const _=r.useMemo(()=>{if(f?.tenantId!=null)return f.tenantId;const e=h.getActiveTenantForUser()?.tenantId;return e!=null&&l.some(U=>U.tenantId===e)?e:l.length===1?l[0].tenantId:null},[f?.tenantId,l]),c=v??_;return i!=null?m.jsx(I,{variant:"invalid_params",paramsError:i}):p?m.jsx(I,{variant:"signed_in",clientName:w,userEmail:a?.userEmail,isInitializing:d!=="Completed",tenants:l,selectedTenantId:c,onSelectTenant:S,approveError:E??y,isApproving:b==="In-Progress",showAllowButton:c!=null,onApprove:()=>{t!=null&&a!=null&&c!=null&&n(k(a.userId,a.zeniSessionId??void 0,c,t.clientId,t.redirectUri,t.codeChallenge,t.codeChallengeMethod,t.state,t.responseType))},onDeny:()=>{if(t!=null)try{const e=new URL(t.redirectUri);e.searchParams.set("error","access_denied"),e.searchParams.set("error_description","The user denied the request"),e.searchParams.set("state",t.state),window.location.href=e.toString()}catch{M("Unable to deny: redirect_uri is not a valid URL. Close this window or contact support.")}}}):m.jsx(j,{to:"/signin/auth",state:{origin:s.pathname+s.search},replace:!0})}export{ee as default};
@@ -1,22 +0,0 @@
1
- import{j as a}from"./liveblocks-DvqoH3dJ.js";import{MO as ne,eX as Y,kx as z,fE as X,fC as oe,Kg as q,Ms as ie,uR as ke,MP as N,uG as Ee,u$ as Pe,uV as re,uK as le,uZ as je,uW as ve,MQ as de,wG as Le,fo as Te,ge as Re,MR as K,uO as ce,uN as pe,v2 as Oe,c6 as Ae}from"./zeni-epic-state-BRNxIopP.js";import{K as ue,C as ee,G as M,z as W,i as me,F as ge,J as fe,al as he,am as Fe,D as Ce,o as F,U as be,a as ye,an as Ve,Z as Ze,a0 as Ue,v as Be,e as Se,g as $e,r as Ge,ao as Ke,I as Me}from"./index-9PmElJom.js";import{D as we,n as J,S as xe}from"./mui-BX-eccqP.js";import se from"./NotFoundScreen-Bjeg8OER.js";import{a as d}from"./sentry-oCFmppdA.js";import{u as ae,i as He,j as g,h as _e,g as ze,n as We,o as te,p as G}from"./core-BUDfBDzW.js";import{u as Je}from"./useAskAiCfoHostNavButtonProps-I9ttKeZb.js";import{M as Qe}from"./MobileAppDrawer-BLdyZXBV.js";import"./recharts-C3oDuogX.js";import"./analytics-DL3j77s3.js";import"./plaid-C1X6Gp1j.js";import"./dnd-C2uuKLS_.js";import"./stripe-DMRn4zHo.js";import"./lottie-DU31Qsck.js";import"./lexical-BJhq3Vel.js";import"./pdf-SnLRVeGX.js";import"./utils-BdmIffFy.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]="4e67b88f-9949-46f3-bdab-d95984331abe",e._sentryDebugIdIdentifier="sentry-dbid-4e67b88f-9949-46f3-bdab-d95984331abe")}catch{}})();const Ne={overlayWidth:new Ce(100,100,48)},H=ye.getLocalizedStrings().peoplePage.invitePage,Ye=({companyId:e,managersListView:t,companyPassportView:c,classListView:n,mode:f,isEditPeopleDrawerOpen:i,closeDrawerHandler:y})=>{const h=ue(),m=ae(),[V,Z]=d.useState(!1),[k,S]=d.useState(!1),{userId:w}=He(),r=g(l=>ne(l)),p=g(l=>Y(l)),E=g(l=>z(l)),{useFeatureGate:D}=ee(),{isFeatureEnabled:I}=D(M.isDebitCardFeatureEnabled),P=X(I,p),L=oe(p),T=q(p),U=ie(p),B=!!p.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,x=!P&&E&&n.fetchState!=="Completed"||t.fetchState!=="Completed"||c.fetchState!=="Completed"||e==null;if(W.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const C=()=>{m(N()),y()},R=()=>{V===!0?S(!0):C()},$=c.companyView?.controllers?.map(l=>l.user),u=!!p.company?.companyZeniAccountInfo?.isZeniAccountEnabled,{isFeatureEnabled:j}=D(M.isChargeCardFeatureEnabled),v=me(p,j,I),{isCardsHidden:O}=ge(p?.tenantId),b=!v||O,A=p.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",s={peopleDetails:r,classList:n.classes,managersList:t.users,controllersList:$,mode:f,isZeniTenant:T,isAccountingClassesEnabled:E,isReimbursementDisabled:B===!1,isZeniAccountsDisabled:u===!1,isChargeCardDisabled:b,isTreasuryDisabled:A===!1,isLiteRoleDisabled:U===!1,isBankingOnlyTenant:P,isCardsOnlyTenant:L,onResetClick:C,onDeleteUser:l=>{m(le(l.userId,l.userRole.userRoleId))},onPeopleLocalDataUpdated:l=>{m(re({peopleLocalData:l})),Z(!0)},onSaveClick:()=>{m(f==="zeni_only"?Ee(e):Pe(T))},onCloseClick:R,isLoading:x||r.person==null},o={onOkClick:()=>{S(!1),C()},onCancelClick:()=>{S(!1)}};return d.useEffect(()=>{x===!1&&w!=null&&m(ke(w))},[x,w]),d.useEffect(()=>{r.updatePersonState.fetchState==="Completed"&&C()},[r.updatePersonState.fetchState]),a.jsx(we,{anchor:"right",open:i,PaperProps:{style:{width:Ne.overlayWidth.valuePercentage(h),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:fe.overlayDark,cursor:"pointer"}}},onClose:R,children:a.jsxs(Xe,{onClick:l=>l.stopPropagation(),children:[k===!0?a.jsx(he,{titleComponent:a.jsx(De,{children:H.discardTitle}),descriptionComponent:a.jsx(Ie,{children:H.discardDescription}),primaryButtonText:H.discard,secondaryButtonText:H.no,action:o,isEditPopup:!0}):null,a.jsx(Fe,{...s})]})})},Xe=J(xe)`
2
- display: flex;
3
- min-height: 100%;
4
- flex-direction: column;
5
- `,De=J(be.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
- `,Ie=J(be.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
- `,qe={overlayWidth:new Ce(100,100,48)},_=ye.getLocalizedStrings().peoplePage.invitePage,ea=({companyId:e,managersListView:t,companyPassportView:c,classListView:n,mode:f,isInvitePeopleDrawerOpen:i,closeDrawerHandler:y})=>{const h=ue(),m=ae(),[V,Z]=d.useState(!1),[k,S]=d.useState(!1),w=g(o=>ne(o)),r=g(o=>Y(o)),p=g(o=>z(o)),{useFeatureGate:E}=ee(),{isFeatureEnabled:D}=E(M.isDebitCardFeatureEnabled),I=X(D,r),P=oe(r),L=q(r),T=ie(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 x=()=>{y(),m(N())},C=()=>{V===!0?S(!0):x()},R={onOkClick:()=>{S(!1),x()},onCancelClick:()=>{S(!1)}},$=c.companyView?.controllers.map(o=>o.user),u=!!r.company?.companyZeniAccountInfo?.isZeniAccountEnabled,{isFeatureEnabled:j}=E(M.isChargeCardFeatureEnabled),v=me(r,j,D),{isCardsHidden:O}=ge(r?.tenantId),b=!v||O,A=r.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",s={classList:n.classes,managersList:t.users,controllersList:$,mode:f,isZeniTenant:L,onPeopleLocalDataUpdated:o=>{m(re({peopleLocalData:o})),Z(!0)},onResetClick:x,onSaveClick:()=>{m(f==="zeni_only"?je(e):ve())},onCloseClick:C,peopleDetails:w,isAccountingClassesEnabled:p,isReimbursementDisabled:U===!1,isLiteRoleDisabled:T===!1,isZeniAccountsDisabled:u===!1,isChargeCardDisabled:b,isTreasuryDisabled:A===!1,isBankingOnlyTenant:I,isCardsOnlyTenant:P,isLoading:B};return d.useEffect(()=>{w.invitePersonState.fetchState==="Completed"&&(y(),m(N()))},[w.invitePersonState.fetchState]),a.jsx(we,{anchor:"right",open:i,PaperProps:{style:{width:qe.overlayWidth.valuePercentage(h),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:fe.overlayDark,cursor:"pointer"}}},onClose:C,children:a.jsxs(aa,{onClick:o=>o.stopPropagation(),children:[k===!0?a.jsx(he,{titleComponent:a.jsx(De,{children:_.discardTitle}),descriptionComponent:a.jsx(Ie,{children:_.discardDescription}),primaryButtonText:_.discard,secondaryButtonText:_.no,action:R}):null,a.jsx(Ve,{...s})]})})},aa=J(xe)`
19
- display: flex;
20
- min-height: 100%;
21
- flex-direction: column;
22
- `,sa=We(function(e,t){const c=de(e),n=W.getSignedInUser();return{data:c,loggedinUserId:n?.userId??"",isZeniTenant:t.isZeniTenant===!0,shouldFetchClasses:t.shouldFetchClasses,isZeniAdminUser:n?.userEmailDomain==="zeni.ai"&&t.isZeni===!0,isAccountingClassesEnabled:z(e),analytics:Se}},function(e,t){const{navigate:c,companyId:n,shouldFetchClasses:f}=t;return{personAction:{onPersonDelete:(i,y)=>{e(le(i,y))},onResendInvite:i=>{e(Oe(i))},onReloadPeople:()=>{e(ce()),e(pe(n,f))},onBackClick:()=>{c("../../")},onModeChange:i=>{e(K({mode:i,searchText:"",sortKey:"name",sortOrder:"ascending"}))},onSearchTextChanged:i=>{e(K({searchText:i}))}}}})(Ke);function Q({isInvitePeopleDrawerOpen:e,isEditPeopleDrawerOpen:t}){const c=_e(),n=ae(),f=ze(),{areTenantIdsInSync:i}=Ze(),y=W.getSignedInUser(),h=g(s=>Y(s)),{useFeatureGate:m}=ee(),{isFeatureEnabled:V}=m(M.isDebitCardFeatureEnabled),Z=g(s=>z(s)),k=!X(V,h)&&Z,S=q(h),w=h?.tenantId,{tenantEmailDomain:r}=h,[p,E]=d.useState(!1),[D,I]=d.useState(!1),[P,L]=d.useState(!1),[T,U]=d.useState("off"),[B,x]=d.useState(!1),C=s=>{x(s)},{isAiCfoAccessEnabled:R,onAskAiCfoClick:$}=Je({mobileExploreReferrer:"People"}),u=g(s=>de(s));Ue({isDataReady:u.fetchState==="Completed"});const j=g(s=>Le(s.classState,s.classListState)),v=g(s=>Te(s.userState,s.userRoleState,s.userListViewState,"manager")),O=g(s=>Re(s)),b=h?.companyId;d.useEffect(()=>{p&&T===u.uiState.mode||!i||(n(K({searchText:"",sortKey:"name",sortOrder:"ascending"})),U(u.uiState.mode),E(!0),n(ce()))},[p,y,w,n,u.uiState.mode,i]),d.useEffect(()=>{b!=null&&i&&n(pe(b,k))},[b,k,i]),d.useEffect(()=>{I(e!=null&&e===!0),L(t!=null&&t===!0&&t)},[e,t]),d.useEffect(()=>{n(K({searchText:"",sortKey:"name",sortOrder:"ascending"}))},[]);const A=()=>{I(!1),L(!1),c("../")};return a.jsxs(a.Fragment,{children:[u.fetchState==="Completed"?a.jsx(Be,{analytics:Se,onLoad:s=>s.trackPageLoaded($e.Event.members)}):null,D===!0?a.jsx(ea,{closeDrawerHandler:A,isInvitePeopleDrawerOpen:D,managersListView:v,companyPassportView:O,classListView:j,companyId:b,mode:u.uiState.mode}):null,P===!0?a.jsx(Ye,{closeDrawerHandler:A,isEditPeopleDrawerOpen:P,managersListView:v,companyPassportView:O,classListView:j,companyId:b,mode:u.uiState.mode}):null,a.jsx(Qe,{isAppContentDrawerOpen:B,handleDrawerToggle:C}),a.jsx(sa,{navigate:c,signedInUser:y,isZeni:h.isZeni,isZeniTenant:S,peopleUIState:u.uiState,companyId:b,shouldFetchClasses:k,classList:j,managersView:v,peopleView:u,onInvitePeopleClick:()=>{c("./new")},onColumnSortConfigChanged:(s,o)=>{n(K({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:R,onAskAiCfoClick:$})]})}function wa(){const e=Me();return Ae(e?.loggedInUserRole??[])?a.jsxs(te,{children:[a.jsx(G,{path:"/",element:a.jsx(Q,{})}),a.jsx(G,{path:"new",element:a.jsx(Q,{isInvitePeopleDrawerOpen:!0})}),a.jsx(G,{path:":userId/edit",element:a.jsx(Q,{isEditPeopleDrawerOpen:!0})}),a.jsx(G,{path:"*",element:a.jsx(se,{})})]}):a.jsx(te,{children:a.jsx(G,{path:"*",element:a.jsx(se,{})})})}export{wa as default};
@@ -1 +0,0 @@
1
- import{j as s}from"./liveblocks-DvqoH3dJ.js";import E from"./NotFoundScreen-Bjeg8OER.js";import{a as r}from"./sentry-oCFmppdA.js";import{h as _,g as v,j as p,i as M,u as U,N as z,n as P,o as B,p as h}from"./core-BUDfBDzW.js";import{eX as F,T1 as b,bq as H,bn as N,ie as O,fz as V}from"./zeni-epic-state-BRNxIopP.js";import{H as q,z as I,a0 as X,c_ as $}from"./index-9PmElJom.js";import"./mui-BX-eccqP.js";import{u as G}from"./useAskAiCfoHostNavButtonProps-I9ttKeZb.js";import{M as J}from"./MobileAppDrawer-BLdyZXBV.js";import"./recharts-C3oDuogX.js";import"./analytics-DL3j77s3.js";import"./plaid-C1X6Gp1j.js";import"./dnd-C2uuKLS_.js";import"./stripe-DMRn4zHo.js";import"./lottie-DU31Qsck.js";import"./lexical-BJhq3Vel.js";import"./pdf-SnLRVeGX.js";import"./utils-BdmIffFy.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]="f5125b8a-0342-456c-a323-a7e182b8da6f",e._sentryDebugIdIdentifier="sentry-dbid-f5125b8a-0342-456c-a323-a7e182b8da6f")}catch{}})();const K=P(function(e){const t=I.getSignedInUser(),c=e.tenantState.currentTenantId,o={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:c??""},{aggregatedReportViewState:n}=b(e);return{authParams:o,isDisabled:!1,loggedInUser:t,aggregatedReport:n}},function(e,t){return{onBackClick:()=>{t.navigate("../../")},onClickMenuIcon:()=>{t.handleDrawerToggle(!0)}}})($),L=()=>{const e=_(),t=v(),c=q(),o=p(a=>F(a)),{aggregatedReportViewState:n}=p(a=>b(a)),{tenantEmailDomain:m}=M(),u=U(),d=I.getSignedInUser();if(d==null)throw new Error("Can't access this page without signing in...");const f=r.useRef(!1),[w,S]=r.useState(!1),C=H(o?.userRole??[]),k=o?.userRole?.includes("bookkeeping_admin")??!1,x=N(d),y=C||k||x,l=r.useCallback((a,i,A)=>{u(O({fromMonth:a,toMonth:i,cacheOverride:A}))},[]);r.useEffect(()=>{n?.fetchState==="Completed"&&f.current&&(u(V({messageSection:"data_refresh_update",messageText:"success",type:"success",showStatusIcon:!0})),f.current=!1)},[n?.fetchState]);const D=r.useCallback((a,i)=>{n!=null&&n?.fetchState==="In-Progress"||l(a,i,!0),f.current=!0},[n?.fetchState,l]),j=r.useCallback((a,i)=>{l(a,i,!1)},[l]),g=a=>{S(a)},{isAiCfoAccessEnabled:R,onAskAiCfoClick:T}=G({mobileExploreReferrer:"Performance"});return X({isDataReady:n?.fetchState==="Completed"}),y?s.jsxs(s.Fragment,{children:[s.jsx(J,{isAppContentDrawerOpen:w,handleDrawerToggle:g}),s.jsx(K,{navigate:e,location:t,themeState:c,currentTenant:o,signedInUser:d,tenantEmailDomain:m,onReload:D,onTimeRangeSelect:j,handleDrawerToggle:g,isAiCfoAccessEnabled:R,onAskAiCfoClick:T})]}):s.jsx(z,{to:`/${m}/dashboard`,replace:!0})};function ge(){return s.jsxs(B,{children:[s.jsx(h,{path:"*",element:s.jsx(L,{})}),s.jsx(h,{path:"*",element:s.jsx(E,{})})]})}export{ge as default};
@@ -1,5 +0,0 @@
1
- import{j as s}from"./liveblocks-DvqoH3dJ.js";import{a as o}from"./sentry-oCFmppdA.js";import{j as f,h as F,u as H,g as V,n as K}from"./core-BUDfBDzW.js";import{y as N,K as W,z as P,bg as _,D as M,Z as U,a0 as $,v as q,e as l,g as z,a9 as X,bh as Z}from"./index-9PmElJom.js";import{fI as G,eX as J,Pp as R,Pq as Q,vK as Y,vA as g,fK as ee,bS as re,vF as ae,Pr as ne}from"./zeni-epic-state-BRNxIopP.js";import{D as te,e as se,n as oe,S as ie}from"./mui-BX-eccqP.js";import{u as le}from"./useAskAiCfoHostNavButtonProps-I9ttKeZb.js";import{M as de}from"./MobileAppDrawer-BLdyZXBV.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]="c9f81d83-0bdf-412f-a3b2-d555251067b3",e._sentryDebugIdIdentifier="sentry-dbid-c9f81d83-0bdf-412f-a3b2-d555251067b3")}catch{}})();const ce={overlayWidth:new M(100,100,30)},fe=({isReferralDrawerOpen:e,closeDrawerHandler:r})=>{const a=N(),n=W();if(P.getSignedInUser()==null)throw Error("Can't access How Referral works without signing in...");const i=()=>{r(!0)},u=f(d=>G(d));return s.jsx(te,{anchor:"right",open:e,PaperProps:{style:{width:ce.overlayWidth.valuePercentage(n),boxShadow:"none"}},slotProps:{backdrop:{style:{opacity:.75,backgroundColor:a.colors.black,cursor:"pointer"}}},onClose:()=>i(),children:s.jsx(se,{in:e,direction:"left",children:s.jsx(ue,{onClick:d=>d.stopPropagation(),children:s.jsx(_,{onDismissClick:i,rewardsPlan:u.rewardsPlan})})})})},ue=oe(ie)`
2
- display: flex;
3
- min-height: 100%;
4
- flex-direction: column;
5
- `,I="refer-and-earn-status-update",pe=K(function(e){const r=R(e),a=e.referralViewState.rewardsPlanFetchState,n=re([r,a]);return{inviteList:r.invitations,uiState:r.uiState,pendingBonus:r.pendingBonus,earnedBonus:r.earnedBonus,pendingReferrals:r.pendingReferrals,fetchState:n.fetchState,rewardsPlan:r.rewardsPlan}},function(e,r){const{navigate:a}=r;return{onColumnSortConfigChanged:(n,i)=>{e(ne({sortOrder:i,sortkey:n}))},onInviteClick:()=>{l.trackRewardsPageClicked("invite via email"),a("../refer")},onHowItWorksClick:()=>{l.trackRewardsPageClicked("know more"),a("../how-it-works")},onResendInviteClick:n=>{l.trackRewardsPageClicked("resend invite"),e(ae(n))},onBackClick:()=>{a("../",{relative:"path"})},onReloadInvitees:()=>{e(g(!0))},onCopyReferralLink:()=>{l.trackRewardsPageClicked("copy referral link")},onClickRefer:()=>{l.trackRewardsPageClicked("refer")},onEventReceived:n=>{n===I&&e(g(!0,!0))}}})(X(Z));function ye({isReferralDrawerOpen:e}){const r=F(),a=H(),n=V(),[i,u]=o.useState(!1),[d,D]=o.useState(!1),[x,E]=o.useState(!1),[k,h]=o.useState(!1),p=P.getSignedInUser(),C=f(t=>J(t)),v=f(t=>R(t)),b=v.fetchState,w=f(t=>t.referralViewState.rewardsPlanFetchState),m=Q([v,w]),{areTenantIdsInSync:c}=U();o.useEffect(()=>{C?.rewardsLastViewedTime==null&&x===!1&&(a(Y()),E(!0))},[]),o.useEffect(()=>{!i&&b==="Not-Started"&&c&&(u(!0),a(g(!0)))},[b,a,c]),o.useEffect(()=>{!d&&w.fetchState==="Not-Started"&&c&&(D(!0),a(ee(!0)))},[w,a,c]),o.useEffect(()=>{h(e!=null&&e===!0)},[e]);const[j,A]=o.useState(!1),y=t=>{A(t)},{isAiCfoAccessEnabled:T,onAskAiCfoClick:B}=le({mobileExploreReferrer:"Rewards"});$({isDataReady:m===!0});const O={events:p?.userId!=null?[`private-encrypted-${p.userId}.${I}`]:[],eventCallback:(t,S,L)=>{L.onEventReceived(t)}};return s.jsxs(s.Fragment,{children:[m===!0?s.jsx(q,{analytics:l,onLoad:t=>(S=>{p!=null&&S.trackPageLoaded(z.Event.rewardsPageViewed)})(t)}):null,s.jsx(de,{isAppContentDrawerOpen:j,handleDrawerToggle:y}),k===!0?s.jsx(fe,{closeDrawerHandler:()=>{h(!1),r("..")},isReferralDrawerOpen:k}):null,s.jsx(pe,{location:n,navigate:r,currentTenant:C,onClickMenuIcon:()=>{y(!0)},isAiCfoAccessEnabled:T,onAskAiCfoClick:B,...O})]})}export{ye as R};
@@ -1 +0,0 @@
1
- import{j as a}from"./liveblocks-DvqoH3dJ.js";import{C as j,z as w,aS as b,v as E,e as p,g as F,d9 as P,G as T}from"./index-9PmElJom.js";import"./mui-BX-eccqP.js";import m from"./NotFoundScreen-Bjeg8OER.js";import{a as d}from"./sentry-oCFmppdA.js";import{u as L,j as y,h as V,g as A,n as R,o as U,p as u}from"./core-BUDfBDzW.js";import{eX as z,TF as C,P_ as G,TG as v,vK as K,fK as Y,TH as H,vI as O}from"./zeni-epic-state-BRNxIopP.js";import{R as x}from"./ReferralListScreen-BRzq9B_u.js";import"./recharts-C3oDuogX.js";import"./analytics-DL3j77s3.js";import"./plaid-C1X6Gp1j.js";import"./dnd-C2uuKLS_.js";import"./stripe-DMRn4zHo.js";import"./lottie-DU31Qsck.js";import"./lexical-BJhq3Vel.js";import"./pdf-SnLRVeGX.js";import"./utils-BdmIffFy.js";import"./useAskAiCfoHostNavButtonProps-I9ttKeZb.js";import"./MobileAppDrawer-BLdyZXBV.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]="2abe95cc-d9b7-430b-a6fc-61d143754128",e._sentryDebugIdIdentifier="sentry-dbid-2abe95cc-d9b7-430b-a6fc-61d143754128")}catch{}})();const X=R(function(e,t){const n=C(e);return{inviteFormView:n.localData,submitStatus:n.saveStatus,userName:t.userName,rewardsPlan:n.rewardsPlan,companyLegalName:t.companyName}},function(e,t){const{navigate:n}=t,i=w.getSignedInUser();return{onDismissClick:()=>{e(v()),n("..")},onSendClick:()=>{if(i!=null){const s=[],r=[];t.inviteFormCompayData.forEach(c=>{s.push(c.companyName),r.push(c.emailIds[0])}),p.trackInviteEmailClicked("send",s,r,s.length)}e(O())},onUpdateInviteFormLocalData:s=>{e(H({localData:s}))},onSubmitSuccess:()=>{n("../../")},onCancelClick:()=>{i!=null&&p.trackInviteEmailClicked("cancel")}}})(P),q=()=>{const e=L(),[t,n]=d.useState(!1),[i,s]=d.useState(!1),r=y(o=>z(o)),c=V(),_=A(),{useDynamicConfig:g}=j(),f=w.getSignedInUser();if(f==null)throw Error("Can't access invite referral screen without signing in...");const l=y(o=>C(o)),D=f?.firstName!=null?f.firstName:"User",{configValue:h}=g(b.zeniCardsConfig),{configValue:S}=g(b.zeniAccountsConfig),k=G(S);d.useEffect(()=>{e(v()),r?.rewardsLastViewedTime==null&&i===!1&&(e(K()),s(!0))},[]),d.useEffect(()=>{t||l.fetchState!=="Not-Started"||(n(!0),e(Y(!0)))},[l.fetchState,e]);const I=r.company?.companyInfo.companyLegalName??r.companyName;return a.jsxs(a.Fragment,{children:[l.fetchState==="Completed"?a.jsx(E,{analytics:p,onLoad:o=>(N=>N.trackPageLoaded(F.Event.inviteEmailViewed))(o)}):null,a.jsx(X,{navigate:c,location:_,currentTenant:r,companyName:I,userName:D,inviteFormCompayData:l.localData,chargeCardCashbackRatePerTransaction:h.charge_card_cashback_rate_per_transaction!=null?h.charge_card_cashback_rate_per_transaction:.0175,maxAnnualPercentageYield:k.maxAnnualPercentageYield})]})};function ue(){const{useFeatureGate:e}=j(),{isFeatureEnabled:t}=e(T.isReferralFeatureEnabled);return a.jsxs(U,{children:[a.jsx(u,{path:"/",element:t?a.jsx(x,{}):a.jsx(m,{})}),a.jsx(u,{path:"how-it-works",element:t?a.jsx(x,{isReferralDrawerOpen:!0}):a.jsx(m,{})}),a.jsx(u,{path:"refer/*",element:t?a.jsx(q,{}):a.jsx(m,{})}),a.jsx(u,{path:"*",element:a.jsx(m,{})})]})}export{ue as default};
@@ -1 +0,0 @@
1
- import{j as f}from"./liveblocks-DvqoH3dJ.js";import{a as u,b as M,q as T}from"./sentry-oCFmppdA.js";import{u as A,h as z,j as l,g as D,N as j,n as O}from"./core-BUDfBDzW.js";import{u as P,z as s,y as F,e as E,a as B,f as _,g as N,h as Y,j as V,R as $,k as v}from"./index-9PmElJom.js";import{eX as q,LY as J,LZ as R,fA as W,g0 as X,M2 as H,go as Z,cY as G,M3 as y,M4 as K,M5 as Q,bY as b}from"./zeni-epic-state-BRNxIopP.js";import"./mui-BX-eccqP.js";import{u as ee}from"./useDeviceId-B2fVfrfI.js";import{f as te}from"./analyticsHelper-BLQhTmmj.js";import{t as ne}from"./getLocaleForTenant-D9pSDinJ.js";import"./recharts-C3oDuogX.js";import"./analytics-DL3j77s3.js";import"./plaid-C1X6Gp1j.js";import"./dnd-C2uuKLS_.js";import"./stripe-DMRn4zHo.js";import"./lottie-DU31Qsck.js";import"./lexical-BJhq3Vel.js";import"./pdf-SnLRVeGX.js";import"./utils-BdmIffFy.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]="e61cf387-8b1d-4b76-9dfb-280b6d029930",t._sentryDebugIdIdentifier="sentry-dbid-e61cf387-8b1d-4b76-9dfb-280b6d029930")}catch{}})();const ie=O(function(t,i){const d=t.tenantState.fetchState,g=t.tenantState.sendEmailMagicLinkFetchState,{magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:c}=i;return{googleClientId:v.googleClientId,microsoftClientId:v.microsoftClientId,signInError:t.tenantState.error?.error,fetchState:d,sendMagicLinkStatus:g,magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:c}},function(t,i){const{location:d,navigate:g}=i;return console.warn(JSON.stringify(window.location)),{onOAuthError:(n,a)=>{T({message:`OAuth error from provider ${a} with error ${n}`,level:"error",tags:{authProvider:a,errorType:"zeni.login.error"},extra:{error:n,windowLocation:window.location.href}})},onOAuthSuccess:(n,a)=>{const c=a==="google"?window.location.origin:window.location.origin+window.location.pathname;t(Q({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(y())}}})($),ae=M.memo(ie);function ve({setTenantEmailDomain:t}){const i=A(),d=z(),{clearAllLoading:g}=P(),n=s.getSignedInUser();u.useLayoutEffect(()=>{g()},[g]);const a=ee(),c=l(e=>e.tenantState.magicLinkCodeVerifier),{sendEmailMagicLinkFetchState:h,accountLocked:C,accountUnlockTime:k}=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=>q(e)),I=l(e=>J(e)),m=D(),w=F().mode,U=m.state?.magicLinkExpired,x=m.state?.magicLinkAlreadyUsed;if(u.useEffect(()=>{h.fetchState==="Completed"&&c!=null&&(E.trackSignInLinkSent(),s.saveMagicLinkCodeVerifier(c))},[h.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(R(I.tenantsInOrder),o.zeniSessionId),W(o.userId,o.zeniSessionId,r.tenantId),i(X(r.tenantId)),s.saveActiveTenantDomainForUser(r.tenantEmailDomain),i(H("Completed")),B.updateAppLocaleID(ne(r)),te(o,r,w,void 0,I.tenantsInOrder),Z().then(()=>{const e=V();e!=null&&_(e)}),setTimeout(()=>{E.trackLogin(N.Event.loginSuccess,o.authProvider??"google",G(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(j,{to:e,state:{...m.state,origin:""}})}return f.jsxs(f.Fragment,{children:[f.jsx(ae,{magicLinkExpired:!!U,magicLinkAlreadyUsed:!!x,magicLinkExpiredEmail:s.getMagicLinkEmail()??void 0,location:m,navigate:d,deviceId:a??void 0,showEmailLogin:!0}),C===!0&&k!=null?f.jsx(Y,{onClose:()=>i(y()),unlockDate:k}):null]})}export{ve as default};
@@ -1,9 +0,0 @@
1
- import{j as s}from"./liveblocks-DvqoH3dJ.js";import{a as i}from"./sentry-oCFmppdA.js";import{u as l,g as c,N as u}from"./core-BUDfBDzW.js";import{z as a,e as n,g as m,B as g}from"./index-9PmElJom.js";import{gt as p,Mk as y}from"./zeni-epic-state-BRNxIopP.js";import{n as b}from"./mui-BX-eccqP.js";import"./recharts-C3oDuogX.js";import"./analytics-DL3j77s3.js";import"./plaid-C1X6Gp1j.js";import"./dnd-C2uuKLS_.js";import"./stripe-DMRn4zHo.js";import"./lottie-DU31Qsck.js";import"./lexical-BJhq3Vel.js";import"./pdf-SnLRVeGX.js";import"./utils-BdmIffFy.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]="9ee5fea3-aa3d-48a1-85f1-d40bb7e27c04",e._sentryDebugIdIdentifier="sentry-dbid-9ee5fea3-aa3d-48a1-85f1-d40bb7e27c04")}catch{}})();function M(){const e=l(),t=c(),r=i.useRef(!1),f=a.isSignedIn(),o=t.state?.message==="logout"||f;return i.useEffect(()=>{if(o&&!r.current){r.current=!0;try{e(p()),y(),n.trackLogout(m.Event.logoutSuccess),n.resetUserIdentity(),a.clearAll()}catch(d){console.error("Error during sign out:",d)}finally{window.location.replace("/signin/auth")}}},[o,e]),o?s.jsx(h,{children:s.jsx(g,{fetchState:"In-Progress"})}):s.jsx(u,{to:"../",replace:!0})}const h=b.div`
2
- display: flex;
3
- height: 100vh;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- `;export{M as default};
@@ -1,12 +0,0 @@
1
- import{j as o}from"./liveblocks-DvqoH3dJ.js";import{a as f}from"./sentry-oCFmppdA.js";import{t as u,u as h,j as y,N as I}from"./core-BUDfBDzW.js";import{Mh as b,fA as w,Bk as j}from"./zeni-epic-state-BRNxIopP.js";import{z as l,B as x,J as S,U as D}from"./index-9PmElJom.js";import{n as c}from"./mui-BX-eccqP.js";import"./recharts-C3oDuogX.js";import"./analytics-DL3j77s3.js";import"./plaid-C1X6Gp1j.js";import"./dnd-C2uuKLS_.js";import"./stripe-DMRn4zHo.js";import"./lottie-DU31Qsck.js";import"./lexical-BJhq3Vel.js";import"./pdf-SnLRVeGX.js";import"./utils-BdmIffFy.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]="99c0c772-caef-41d5-8219-e96089b0d828",e._sentryDebugIdIdentifier="sentry-dbid-99c0c772-caef-41d5-8219-e96089b0d828")}catch{}})();const W=()=>{const[e]=u(),t=e.get("code")??"",s=e.get("state")??"",p=e.get("profileId")??"",[n,g]=f.useState(!1),a=h(),i=y(m=>b(m)),r=l.getSignedInUser(),d=l.getSignedInUserTenantWithId(s);if(r==null||d==null)return o.jsx(I,{to:"/signin/auth",replace:!0});if(r==null)throw Error("Can't access this page without signing in...");return w(r.userId,r.zeniSessionId,d?.tenantId),f.useEffect(()=>{n||(g(!0),a(j(t,p,s)))},[n,a]),i.fetchState==="Error"?o.jsx(E,{children:o.jsx(_,{children:i.error?.message??""})}):(i.fetchState==="Completed"&&window.close(),o.jsx(x,{fetchState:"In-Progress"}))},E=c.div`
2
- display: flex;
3
- width: 100%;
4
- height: 100vh;
5
- flex-direction: row;
6
- justify-content: center;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey5};
9
- `,_=c(D.LargeRegular)`
10
- display: flex;
11
- color: ${S.important};
12
- `;export{W as default};