@zeniai/web-app-ui 5.1.4-qa → 5.1.5-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.
- package/dist/assets/AddressRoutes-C73a9-au.js +1 -0
- package/dist/assets/AddressScreen-Dz_uBAfV.js +9 -0
- package/dist/assets/AiCfoScreen-CPVGZuTL.js +22 -0
- package/dist/assets/{BillPayApprovalRoutes-CxZsvHLK.js → BillPayApprovalRoutes-C3GPq_xU.js} +1 -1
- package/dist/assets/{BillPayRoutes-DuwButtq.js → BillPayRoutes-2pDTQDsV.js} +11 -11
- package/dist/assets/{BusinessVerificationPageScreen-DyqFU2k2.js → BusinessVerificationPageScreen-ubtv1uMF.js} +2 -2
- package/dist/assets/{ChargeCardRoutes-Jvc4lWmf.js → ChargeCardRoutes-cuQm0Byk.js} +1 -1
- package/dist/assets/{CompanyPassportScreen-BrAfXoBH.js → CompanyPassportScreen-DFfJjiZz.js} +1 -1
- package/dist/assets/{ConnectionAuthScreen-QylUWzT1.js → ConnectionAuthScreen-EE_7muB4.js} +1 -1
- package/dist/assets/CustomerOnboardingAuthScreen-BINurBkI.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-2kleL1fu.js → CustomerOnboardingRoutes-CzVTob9W.js} +5 -5
- package/dist/assets/{DashboardRoutes-QwDi-nAw.js → DashboardRoutes-DUbaB0il.js} +1 -1
- package/dist/assets/{DefaultTenantHome-BWYjsIXL.js → DefaultTenantHome-4FP_XqIO.js} +1 -1
- package/dist/assets/{DomesticWireDetailScreen-CWZgf_vU.js → DomesticWireDetailScreen-DjS3LvSE.js} +3 -3
- package/dist/assets/DrawerScreen-BIlssS0X.js +1 -0
- package/dist/assets/EntityDetailRoutes-D7ksS7bR.js +1 -0
- package/dist/assets/{ExpenseAutomationRoutes-DEtAFE9L.js → ExpenseAutomationRoutes-CWthq4VY.js} +3 -3
- package/dist/assets/{FeaturePreviewScreen-VAJoJC-a.js → FeaturePreviewScreen-DPXl9LaZ.js} +1 -1
- package/dist/assets/{HubSpotOAuthCallbackScreen-C6LJx-9Q.js → HubSpotOAuthCallbackScreen-Cpr7-4b-.js} +1 -1
- package/dist/assets/MagicLinkRoutes-Hs0w-wrm.js +72 -0
- package/dist/assets/MagicLinkSignInScreen-CGn7f_Ez.js +12 -0
- package/dist/assets/{MobileAppDrawer-CTtaUYIM.js → MobileAppDrawer-DGi92_Yj.js} +1 -1
- package/dist/assets/NotFoundScreen-BR6D7NUc.js +1 -0
- package/dist/assets/{NotificationRoutes-B6r_Orjg.js → NotificationRoutes-7wUpora0.js} +1 -1
- package/dist/assets/OAuthConsentScreen-DpzjsMK4.js +1 -0
- package/dist/assets/PandLWithForecastRoutes-CEd2l27b.js +1 -0
- package/dist/assets/PeopleRoutes-BJvXxIh-.js +22 -0
- package/dist/assets/PerformanceRoutes-Da653b5V.js +1 -0
- package/dist/assets/{Preview-10Bvp253.js → Preview-7fPqkCsQ.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-DLsyoGX5.js → QBOConnectionScreen-DVtm7sVu.js} +1 -1
- package/dist/assets/{ReferralListScreen-DYYleAn3.js → ReferralListScreen-DjhXNbCt.js} +2 -2
- package/dist/assets/ReimbursementApprovalRoutes-PaQREiSX.js +1 -0
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-Cr-Jb0kG.js → ReimbursementApprovalRuleDetailScreen-TO73PK3j.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-CE3fgUyF.js → ReimbursementRoutes-D5ZyEiIA.js} +4 -4
- package/dist/assets/{ReportsRoutes-DbjNomRp.js → ReportsRoutes-CD7OPFgE.js} +1 -1
- package/dist/assets/RewardsRoutes-BF33QUt6.js +1 -0
- package/dist/assets/{ScreenRoutes-fP-T4wNP.js → ScreenRoutes-C1UAIpGS.js} +2 -2
- package/dist/assets/{SettingsRoutes-aCSZd54g.js → SettingsRoutes-CYjelqsQ.js} +6 -6
- package/dist/assets/{SetupPagesScreen-Du1NtB4L.js → SetupPagesScreen-BiaZUdg8.js} +5 -5
- package/dist/assets/SignInScreen-BrIPtt48.js +1 -0
- package/dist/assets/SignOutScreen-C0HukjGY.js +9 -0
- package/dist/assets/{TaskListScreen-XNAHsAdr.js → TaskListScreen-CqnO0yz1.js} +2 -2
- package/dist/assets/{TaskRoutes-C3XFOsvz.js → TaskRoutes-CHLgHRBf.js} +2 -2
- package/dist/assets/{TransactionDetailRoutes-COitRybQ.js → TransactionDetailRoutes-C9Mza3N8.js} +1 -1
- package/dist/assets/{TransactionDetailScreen-BYOMX79n.js → TransactionDetailScreen-C3o4Ikv3.js} +2 -2
- package/dist/assets/{TransactionListRoutes-tM-kdK5n.js → TransactionListRoutes-FOFqdgkH.js} +1 -1
- package/dist/assets/{TreasuryRoutes-Dc09h3fw.js → TreasuryRoutes-CHFnEzHb.js} +5 -5
- package/dist/assets/{VendorsRoutes-CFWqReij.js → VendorsRoutes-cU5XpIz6.js} +16 -16
- package/dist/assets/WiseConfirmationScreen-DFuYcHuG.js +12 -0
- package/dist/assets/{ZeniAccountRoutes-ciVxiDr2.js → ZeniAccountRoutes-Ds3YfREC.js} +10 -10
- package/dist/assets/ZeniAccountStatementScreen-DKGKdz49.js +9 -0
- package/dist/assets/{accountMappingHelper-BNWiysfw.js → accountMappingHelper-C_BSm3Cm.js} +1 -1
- package/dist/assets/{analytics-BV_jA2M9.js → analytics-BowczKZh.js} +1 -1
- package/dist/assets/{analyticsHelper-D4YjBQo7.js → analyticsHelper-BePdwf7N.js} +1 -1
- package/dist/assets/{core-hYoN-OEl.js → core-DCvGDv9F.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-Co5jzIrr.js → decodeURIComponentSafe-BZQC0cZ-.js} +1 -1
- package/dist/assets/{dnd-DZGrjaWI.js → dnd-B8Yg23GJ.js} +1 -1
- package/dist/assets/{empty-CFGUQ0au.js → empty-njnMg6q8.js} +1 -1
- package/dist/assets/{empty-_qnC4q2L.js → empty-rKwqLI2l.js} +1 -1
- package/dist/assets/{emptyVideoElement-p6qg-gVT.js → emptyVideoElement-CTSOgERF.js} +1 -1
- package/dist/assets/epic-D9vwqk4v.js +2 -0
- package/dist/assets/getLocaleForTenant-CRBGytYG.js +1 -0
- package/dist/assets/{index-COIKAXae.js → index-BakZy6k9.js} +1 -1
- package/dist/assets/{index-B9kI-Xe5.js → index-BcRSDa8v.js} +1 -1
- package/dist/assets/{index-D1z4yKQG.js → index-Bv1YDUN0.js} +1 -1
- package/dist/assets/{index-Ckgb9yM0.js → index-CI3eT9Fh.js} +2 -2
- package/dist/assets/{index-DwvMXARy.js → index-DRkkgIpm.js} +8195 -8188
- package/dist/assets/{index-ClNxKLMp.js → index-DWN31pQk.js} +1 -1
- package/dist/assets/{index-BuyUE0zW.js → index-DjiTMFVR.js} +1 -1
- package/dist/assets/{index-DLLm46xO.js → index-RHVbxoDj.js} +1 -1
- package/dist/assets/{lexical-J5072i_M.js → lexical-CZZHodrN.js} +1 -1
- package/dist/assets/{liveblocks-CpIb8pl8.js → liveblocks-BdGaGV5-.js} +1 -1
- package/dist/assets/{lottie-DZTJB_Wj.js → lottie-D4ypq25C.js} +1 -1
- package/dist/assets/{mui-DwJ6v_28.js → mui-D744KujA.js} +1 -1
- package/dist/assets/{pathToGoBack-C4a0k4R-.js → pathToGoBack-CnVdKSc9.js} +1 -1
- package/dist/assets/{pdf-Bg2ihBfr.js → pdf-DbHfGa7d.js} +4 -4
- package/dist/assets/{pdf-lib-zvGCrqtU.js → pdf-lib-DOp9tgSN.js} +1 -1
- package/dist/assets/{plaid-DSxtSzUG.js → plaid-ChS4x5O0.js} +1 -1
- package/dist/assets/{pusher-Duad22Of.js → pusher-CpjyC8yc.js} +1 -1
- package/dist/assets/{react-wyOXfrVf.js → react-B-X8zGXg.js} +1 -1
- package/dist/assets/{react-DW6fGblG.js → react-B9j5cDki.js} +1 -1
- package/dist/assets/{react-DbSwJPII.js → react-BFAWIYbg.js} +1 -1
- package/dist/assets/{react-DG3x_zPp.js → react-DCuy8Jp-.js} +1 -1
- package/dist/assets/{react-CYhVQjbs.js → react-DIuk8Ba5.js} +1 -1
- package/dist/assets/{react-B7TS1gHZ.js → react-Dnn4WBjJ.js} +1 -1
- package/dist/assets/{recharts-wvq1dzqK.js → recharts-Dpnhw92B.js} +1 -1
- package/dist/assets/{routePaths-CCIOd2HY.js → routePaths-eAodvJbr.js} +1 -1
- package/dist/assets/{sentry-shKWv1nY.js → sentry-CE74EKPL.js} +1 -1
- package/dist/assets/{url-NzmJzlCs.js → url-DF6dNOPl.js} +1 -1
- package/dist/assets/{url-CnGOjJSF.js → url-_V7DU63l.js} +1 -1
- package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-BcfkKtOq.js → useAiCfoDashboardSuggestedQuestionsChips-DfcIGoEg.js} +1 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-eROMtEvQ.js +1 -0
- package/dist/assets/{useDeviceId-DTrq_Ush.js → useDeviceId-DOuhDReb.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-Bbl0Ad-R.js → useInitialThreadRequest-C2rQt3oN.js} +1 -1
- package/dist/assets/{utils-BP2rVjdv.js → utils-PezQ5iwB.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-VXlrBBql.js → withTransactionSidePanel-D191c6Ct.js} +3 -3
- package/dist/assets/{zeni-epic-state-CR6pjv7i.js → zeni-epic-state-BoxiazKn.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/AddressRoutes-CidJqkbO.js +0 -1
- package/dist/assets/AddressScreen-CSKb-UET.js +0 -9
- package/dist/assets/AiCfoScreen-CkuxUjaD.js +0 -22
- package/dist/assets/CustomerOnboardingAuthScreen-DU1BKJlx.js +0 -1
- package/dist/assets/DrawerScreen-CzNkvngU.js +0 -1
- package/dist/assets/EntityDetailRoutes-CoqX0sbp.js +0 -1
- package/dist/assets/MagicLinkRoutes-CQkXKD3V.js +0 -72
- package/dist/assets/MagicLinkSignInScreen-BToRux8j.js +0 -12
- package/dist/assets/NotFoundScreen-z93Aerbd.js +0 -1
- package/dist/assets/OAuthConsentScreen-InHx6wbl.js +0 -1
- package/dist/assets/PandLWithForecastRoutes-tm5ZwpVg.js +0 -1
- package/dist/assets/PeopleRoutes-C2kxQmXM.js +0 -22
- package/dist/assets/PerformanceRoutes-BF9AQOns.js +0 -1
- package/dist/assets/ReimbursementApprovalRoutes-BcnQbHYJ.js +0 -1
- package/dist/assets/RewardsRoutes-DxOaGozZ.js +0 -1
- package/dist/assets/SignInScreen-DP3RaEDc.js +0 -1
- package/dist/assets/SignOutScreen-HIaylxej.js +0 -9
- package/dist/assets/WiseConfirmationScreen-Fv6ulZWn.js +0 -12
- package/dist/assets/ZeniAccountStatementScreen-BYqJBR_P.js +0 -9
- package/dist/assets/epic-CAMNyS5l.js +0 -2
- package/dist/assets/getLocaleForTenant-DM_cuMpU.js +0 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-oZeMEnd0.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-
|
|
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-DRkkgIpm.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-CE74EKPL.js"><link rel="modulepreload" crossorigin href="/assets/core-DCvGDv9F.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-BoxiazKn.js"><link rel="modulepreload" crossorigin href="/assets/mui-D744KujA.js"><link rel="modulepreload" crossorigin href="/assets/analytics-BowczKZh.js"><link rel="modulepreload" crossorigin href="/assets/utils-PezQ5iwB.js"><link rel="stylesheet" crossorigin href="/assets/index-Bc34frN_.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.
|
|
3
|
+
"version": "5.1.5-dev",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/**/*"
|
|
6
6
|
],
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"@sentry/core": "^9.42.1",
|
|
28
28
|
"@sentry/react": "^9.42.1",
|
|
29
29
|
"@stripe/stripe-js": "^4.4.0",
|
|
30
|
-
"@zeniai/client-analytics": "2.0.
|
|
31
|
-
"@zeniai/client-epic-state": "5.0.
|
|
32
|
-
"@zeniai/web-components": "4.1.
|
|
30
|
+
"@zeniai/client-analytics": "2.0.14",
|
|
31
|
+
"@zeniai/client-epic-state": "5.0.61",
|
|
32
|
+
"@zeniai/web-components": "4.1.16",
|
|
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-CpIb8pl8.js";import{A as d}from"./AddressScreen-CSKb-UET.js";import i from"./NotFoundScreen-z93Aerbd.js";import"./sentry-shKWv1nY.js";import{o as s,p as r}from"./core-hYoN-OEl.js";import"./zeni-epic-state-CR6pjv7i.js";import"./recharts-wvq1dzqK.js";import"./index-DwvMXARy.js";import"./mui-DwJ6v_28.js";import"./analytics-BV_jA2M9.js";import"./plaid-DSxtSzUG.js";import"./dnd-DZGrjaWI.js";import"./stripe-DMRn4zHo.js";import"./lottie-DZTJB_Wj.js";import"./lexical-J5072i_M.js";import"./pdf-Bg2ihBfr.js";import"./utils-BP2rVjdv.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]="4677917c-1bd8-4b00-9bd0-d308073173a3",t._sentryDebugIdIdentifier="sentry-dbid-4677917c-1bd8-4b00-9bd0-d308073173a3")}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,9 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./liveblocks-CpIb8pl8.js";import{a as h}from"./sentry-shKWv1nY.js";import{h as T,u as _,g as j,i as E,j as K,n as B}from"./core-hYoN-OEl.js";import{J as M,h as $,z as D,k as L,s as F,w as R,c as C,e as S,F as z,i as b,p as N}from"./index-DwvMXARy.js";import{Kb as k,h1 as U,eP as G,Kc as O,c2 as V,Kd as q,km as H}from"./zeni-epic-state-CR6pjv7i.js";import{n as J}from"./mui-DwJ6v_28.js";import Q from"./NotFoundScreen-z93Aerbd.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]="bd483f60-b22f-4689-9a3e-5a54da6e5a7f",e._sentryDebugIdIdentifier="sentry-dbid-bd483f60-b22f-4689-9a3e-5a54da6e5a7f")}catch{}})();const W=J.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`,X=B(function(e,t){const{addressId:o,isSubPage:i,addressType:c}=t,l=G(e),a=t.roleMap!=null&&O(t.roleMap),d=i||c==="user_address"||V(l?.userRole??[])||a?void 0:"readonly";if(o==null){const s=q(c,e);return{addressToEdit:s?.addressToCreate,loadingState:s?.status?.fetchState,googleAPIKey:b.googleMapsAPIKey,isDisabled:d,isSubPage:i,dontShowSaveConfirmationPopup:t.dontShowSaveConfirmation}}const n=k(e,o);return{addressToEdit:n.address,loadingState:n.fetchState,googleAPIKey:b.googleMapsAPIKey,isDisabled:d}},function(e,t){const{navigate:o,location:i,addressType:c}=t,l=a=>{if(a==="express-pay")o("../express-pay/add-wire");else{const d=i.state,n=N(d?.pathnameStackToGoBack);let s=n.poppedPathname??w();const u=d?.queryParams;if(u){const f=new URLSearchParams(u).toString();f&&(s=`${s}?${f}`)}o(s,{state:{pathnameStackToGoBack:n.newStack}})}};return{onSubmitHandler:a=>{const d=Y(a);e(H({addressType:c,addressToCreate:d})),C?.trackSaveAddressClicked(S.Event.saveAddressClicked,{street:a.street.addressString,city:a.city,state:a.state,country:a.country.selectedOption??"",postalCode:a.postalCode,suite:a.suite,secondaryInfo:a.secondaryInfo}),l(t.bankAccountContext)},onCancel:()=>{l(t.bankAccountContext)}}})(z);function re({isSubPage:e,hideAddressSubTitle:t=!1,hideAddressBackButton:o=!1,dontShowSaveConfirmation:i,accountContext:c,addressTypeParam:l}){const a=T(),d=_(),n=j(),{addressId:s,addressType:u}=E(),f=M(),I=$(),v=D.getSignedInUser(),[g,x]=h.useState(s==null),p=K(m=>s!=null?k(m,s).fetchState:"Not-Started"),A=L();if(v==null)throw Error("Can't access address page without signing in...");const P=m=>m.trackPageLoaded(s!=null?S.Event.editAddress:S.Event.addAddress),y=l??u;return h.useEffect(()=>{g||s==null||(x(!0),d(U(s,!1)))},[g,s,d]),y==null||y.match(/(user_address|company_address|company_registered_address|vendor_address|officer_([1-9]|10)_address)$/g)?!g&&p==="Not-Started"||g&&p==="In-Progress"?r.jsx(F,{fetchState:p,style:{backgroundColor:I.colors.grey5}}):s!=null&&p==="Error"?(a(`${w(1)}/new`,{replace:!0}),r.jsx(r.Fragment,{})):r.jsxs(r.Fragment,{children:[r.jsx(R,{analytics:C,onLoad:P}),r.jsx(W,{windowSize:f,children:r.jsx(X,{location:n,navigate:a,isSubPage:e===!0,hideAddressBackButton:o,hideAddressSubTitle:t,addressId:s,addressType:y,dontShowSaveConfirmation:i,bankAccountContext:c,roleMap:A?.loggedInUserRoleMap})})]}):r.jsx(Q,{})}const w=(e=2)=>{let t="../";for(let o=0;o<e;o++)t=`${t}../`;return t},Y=e=>({street:[e.street.addressString,e.suite,e.secondaryInfo],city:e.city,state:e.state,country:e.country.selectedOption??"",countryCode:e.countryCode,postalCode:e.postalCode,latitude:e.street.addressValue?.locationLat,longitude:e.street.addressValue?.locationLng});export{re as A,Y as t};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import{j as c}from"./liveblocks-CpIb8pl8.js";import{a as r}from"./sentry-shKWv1nY.js";import{u as ge,h as Ce,g as Ie,j as J,i as be,n as ke}from"./core-hYoN-OEl.js";import{V as we,z as xe,J as Pe,cP as Ee,cQ as Qe,b4 as Y,cR as Te,b3 as Z,p as D,w as L,c as I,cS as F,cT as ve,cU as ye,a1 as _e,e as Oe,a7 as Ae,cV as Ue,a2 as je,n as Le,b0 as Fe,cW as Re}from"./index-DwvMXARy.js";import{fI as De,eO as ee,eP as Be,hH as Me,QN as Ve,eS as Ge,hR as Ne,hN as $e,eQ as R,ft as qe,fm as We,fq as X,fu as ze,fv as He,fw as Je,fx as Ye,fy as Xe}from"./zeni-epic-state-CR6pjv7i.js";import{D as Ke,n as b,S as Ze,P as et}from"./mui-DwJ6v_28.js";import{u as tt}from"./useAiCfoDashboardSuggestedQuestionsChips-BcfkKtOq.js";import{p as st}from"./pathToGoBack-C4a0k4R-.js";import"./recharts-wvq1dzqK.js";import"./analytics-BV_jA2M9.js";import"./plaid-DSxtSzUG.js";import"./dnd-DZGrjaWI.js";import"./stripe-DMRn4zHo.js";import"./lottie-DZTJB_Wj.js";import"./lexical-J5072i_M.js";import"./pdf-Bg2ihBfr.js";import"./utils-BP2rVjdv.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new a.Error().stack;i&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[i]="3ba4edcf-26fd-4d0f-9da8-72c50f1abdeb",a._sentryDebugIdIdentifier="sentry-dbid-3ba4edcf-26fd-4d0f-9da8-72c50f1abdeb")}catch{}})();const te="chat-response-generated",ot=ke(function(a,i){const s=ee(a),m=i.isSubmitting;return{showSampleQuestions:i.sessionFromUrl==="explore"&&s.uiState.currentChatSessionId==null,aiCfoView:s,isSubmitting:m,isNewChatSession:i.sessionFromUrl==="new_chat"||i.sessionFromUrl==="explore",isFullView:!0,tableDownloadEndPoint:`${je}/tableDownload`,emailLinkQuestion:i.emailLinkQuestion,autoSubmitEmailLinkQuestion:i.autoSubmitEmailLinkQuestion,onEmailLinkQuestionProcessed:i.onEmailLinkQuestionProcessed,routedInitialQuestionSource:i.routedInitialQuestionSource,routedInitialQuestionSuggestionIndex:i.routedInitialQuestionSuggestionIndex,exploreSuggestedPromptQuestions:i.exploreSuggestedPromptQuestions,exploreSuggestedPromptQuestionsLoading:i.exploreSuggestedPromptQuestionsLoading,isFileUploadEnabled:i.isFileUploadEnabled,isUploadPromoVisible:i.isUploadPromoVisible,onUploadPromoClose:i.onUploadPromoClose}},function(a,i){const{location:s,currentTenant:m,userId:l,navigate:f,currentChatSessionId:h,allSessionsWithOrderedQuestionAnswers:d,setIsAiCfoOpen:S}=i;return{onEventReceived:(e,p)=>{if(e===te&&typeof p.text=="string"&&typeof p.metadata=="object"){const o=p,u=He(o.type),t=o.metadata.chat_session_id??null,{currentChatSession:E,currentQuestionAnswer:k,currentQuestionAnswerSummary:Q}=Z(d,t);u!=="answer"?I.trackAICFOChatResponseGenerated(u,k?.question.questionText??"",o.text,t,Re(Q,E),o.metadata.message_id??null):I.trackAICFOChatAnswerGenerated(o.text,k?.question.questionText??"",(o.follow_up_questions?.length??0)>0,!!o.assumptions,!!o.insights,o.visualization!=null,Je(o.visualization?.type??"")??null,t,o.summarized_title,o.metadata.message_id??null),a(Ye({chatSessionId:o.metadata.chat_session_id,responseType:u,fetchState:{fetchState:"Completed",error:void 0}})),a(Xe({chatSessionId:o.metadata.chat_session_id,answerPayload:o,userId:l}))}},onSubmit:(e,p,o,u)=>{e&&Fe(a,e,p,h,d,l,u,o)},updateCurrentInput:e=>{a(X(e))},onStopSubmit:()=>{},onUpdateScrollYOffset:e=>{a(ze(e))},onSelectSampleQuestion:()=>{},onBackClick:()=>{f(-1)},onCloseClick:()=>{const e=D(s.state?.pathnameStackToGoBack),p=e.poppedPathname??st(1);f(p,{state:{...s.state,pathnameStackToGoBack:e.newStack}}),a(X(""))},togglePageView:()=>{const e=D(s.state?.pathnameStackToGoBack),p=e.poppedPathname??`/${m.tenantEmailDomain}/dashboard`;f(p,{state:{...s.state,pathnameStackToGoBack:e.newStack,message:"open_ai_cfo_drawer"}}),S(!0)},onCopy:()=>{},onThumbsUp:()=>{},onThumbsDown:()=>{},onTogglePageView:()=>{f(-1)},onNewChatClick:()=>{h!=null&&a(We());const e=Le(s.state?.pathnameStackToGoBack,s.pathname);f(`/${m.tenantEmailDomain}/ai-cfo/new_chat`,{state:{pathnameStackToGoBack:e.slice(0,-1),referrer:"Sidebar"}})},onToggleCotCollapsed:(e,p)=>{a(qe({questionAnswerId:e,isCollapsed:p}))},onMenuClick:i.onMenuClick}})(Ae(Ue)),Et=({isFileUploadEnabled:a})=>{const{setIsAiCfoOpen:i}=we(),s=ge(),m=Ce(),l=Ie(),[f,h]=r.useState(!1);r.useEffect(()=>{s(De())},[s]);const d=J(n=>ee(n)),S=xe.getSignedInUser(),{session_id:e}=be(),p=Pe(),o=_e(p),u=J(n=>Be(n)),t=d.uiState.currentChatSessionId,E=u.tenantEmailDomain,{handleUploadPromoClose:k,isUploadPromoVisible:Q}=Ee({isFileUploadEnabled:a,tenantEmailDomain:E}),T=Qe({currentTenant:u,currentChatSessionId:t,aiCfoView:d}),{isSuggestedQuestionsLoading:se,suggestedPromptQuestions:oe}=tt(),w=l.state,x=w?.aiCfoInitialQuestion,B=!!w?.aiCfoShouldSubmit;r.useEffect(()=>{const n=l.state;if(n?.[Y]!==!0)return;h(!0);const g={...n};delete g[Y],m(l,{replace:!0,state:g})},[l.pathname,l.search,l.state,m]);const[ae,v]=r.useState(null),[ne,y]=r.useState(!1),[ie,_]=r.useState(void 0),[re,O]=r.useState(void 0),M=r.useRef(!1);r.useEffect(()=>{if(!M.current&&x!=null&&x!==""){const n=l.state;v(x),y(B),_(n?.aiCfoInitialSubmissionSource!=null?n.aiCfoInitialSubmissionSource:void 0);const g=n?.aiCfoSuggestionIndex;O(typeof g=="number"?g:void 0),M.current=!0}},[x,B,l.state]);const le=r.useCallback(()=>{v(null),y(!1),_(void 0),O(void 0)},[]),V=r.useMemo(()=>new URLSearchParams(l.search),[l.search]),G=V.get("ref")??w?.aiCfoRef,A=V.get("emailRefId")??w?.aiCfoEmailRefId,N=r.useRef(!1);r.useEffect(()=>{N.current||G!=="month-end-email"||A==null||t!=null||S==null||(s(Me("controller",S.userId,A,"MONTH_END_EMAIL")),N.current=!0)},[G,A,t,s,S]);const P=d.uiState.lastContextMessage;r.useEffect(()=>{P!=null&&P!==""&&t!=null&&(v(P),y(!0),_(void 0),O(void 0),s(Ve()))},[P,t,s]);const ce=u.masterTOSInfo,C=ce?.isMasterTOSAccepted??!1,{visitedSessions:$}=Te(t),U=d.fetchState,j=d.uiState.chatSessionsNextPageToken.hasMore||!d.uiState.chatSessionsFirstPageFetched,q=t!=null?d.fetchChatSessionHistoryByChatSessionId?.[t]?.fetchState??"Not-Started":"Not-Started",W=t==null||(d.uiState.chatHistoryNextPageToken[t]?.hasMore??!0),z=d.allSessionsWithOrderedQuestionAnswers,{currentSessionQuestionAnswers:ue}=Z(z,t),de=ue.length===0;r.useEffect(()=>{C||o||m("../dashboard",{state:{...l.state,message:"open_ai_cfo_drawer"}})},[C,o,m,l.state]);const me=r.useCallback(()=>{const n=D(l.state?.pathnameStackToGoBack),g=u.tenantEmailDomain;m(n.poppedPathname??(g!=null?`/${g}/dashboard`:".."),{state:{...l.state,pathnameStackToGoBack:n.newStack}})},[u.tenantEmailDomain,l.state,m]);r.useEffect(()=>{t!=null&&e!==t&&m(`../ai-cfo/${t}`,{state:{...l.state}})},[t,e]),r.useEffect(()=>{e!=null&&t==null&&e!=="new_chat"&&e!=="explore"&&s(Ge({sessionId:e,agentId:"controller"}))},[]);const pe=r.useMemo(()=>({events:$.map(n=>`private-encrypted-chat-${n}.${te}`),eventCallback:(n,g,Se)=>Se.onEventReceived(n,g)}),[$]);r.useEffect(()=>{U!=="In-Progress"&&j&&s(Ne())},[U,j,s]),r.useEffect(()=>{t!=null&&q!=="In-Progress"&&W&&S!=null&&U==="Completed"&&!j&&s($e(t,S.userId))},[q,W,t,S,s]);const H=n=>n.trackAICFOOnboardingScreenStateChanged("open","first_visit");if(S==null||e==null)throw Error("Can't access AI Controller page without signing in...");const he=t!=null&&d.responseStateByChatSessionId?.[t]?.answer?.fetchState==="In-Progress";if(!C&&o)return c.jsxs(nt,{children:[c.jsx(L,{analytics:I,onLoad:H}),T.drawerElement,c.jsx(it,{children:c.jsx(K,{children:c.jsx(F,{isTOSAccepted:!1,acceptMasterTOSState:d.masterTOSAcceptanceState,onCloseClick:me,onCompleteClick:()=>{u.userRoleId!=null&&s(R(u.userRoleId))}})})})]});const fe=c.jsxs(c.Fragment,{children:[f&&!C?c.jsx(L,{analytics:I,onLoad:H}):null,c.jsx(F,{isTOSAccepted:C,acceptMasterTOSState:d.masterTOSAcceptanceState,showHeader:!1,togglePageView:C?()=>h(!1):void 0,onCloseClick:()=>h(!1),onCompleteClick:()=>{C||u.userRoleId==null||s(R(u.userRoleId)),h(!1)}})]});return c.jsxs(c.Fragment,{children:[c.jsxs(at,{children:[c.jsx(L,{analytics:I,onLoad:n=>n.trackPageLoaded(Oe.Event.aiCFOPage)}),o&&T.drawerElement,c.jsx(ot,{...pe,currentChatSessionId:t,allSessionsWithOrderedQuestionAnswers:z,openOnboardingPage:()=>h(!0),userId:S.userId,setIsAiCfoOpen:i,navigate:m,sessionFromUrl:e,location:l,isSubmitting:he,isEmptyChatWithSession:de,currentTenant:u,emailLinkQuestion:ae??void 0,autoSubmitEmailLinkQuestion:ne,onEmailLinkQuestionProcessed:le,routedInitialQuestionSource:ie,routedInitialQuestionSuggestionIndex:re,onMenuClick:o?T.open:void 0,isFileUploadEnabled:a,isUploadPromoVisible:Q,onUploadPromoClose:k,exploreSuggestedPromptQuestions:oe,exploreSuggestedPromptQuestionsLoading:se}),f&&o?c.jsx(Ke,{anchor:"right",open:f,transitionDuration:250,PaperProps:{component:rt,style:{width:"100%"}},slotProps:{backdrop:{style:{backgroundColor:"transparent",cursor:"pointer"}}},onClose:()=>h(!1),children:c.jsx(K,{onClick:n=>n.stopPropagation(),children:c.jsx(F,{isTOSAccepted:C,acceptMasterTOSState:d.masterTOSAcceptanceState,onCloseClick:()=>h(!1),onCompleteClick:()=>{C||u.userRoleId==null||s(R(u.userRoleId)),h(!1)}})})}):null]}),f&&!o?c.jsx(ve,{open:f,onClose:()=>h(!1),children:c.jsx(ye,{children:fe})}):null]})},K=b(Ze)`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
`,at=b.div`
|
|
6
|
-
height: 100vh;
|
|
7
|
-
width: 100%;
|
|
8
|
-
`,nt=b.div`
|
|
9
|
-
height: 100vh;
|
|
10
|
-
width: 100%;
|
|
11
|
-
display: flex;
|
|
12
|
-
flex-direction: column;
|
|
13
|
-
min-height: 0;
|
|
14
|
-
`,it=b.div`
|
|
15
|
-
flex: 1;
|
|
16
|
-
min-height: 0;
|
|
17
|
-
display: flex;
|
|
18
|
-
flex-direction: column;
|
|
19
|
-
`,rt=b(et)`
|
|
20
|
-
box-shadow: ${({theme:a})=>a.colors.elevation2};
|
|
21
|
-
color: ${({theme:a})=>a.colors.grey4};
|
|
22
|
-
`;export{Et as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-CpIb8pl8.js";import{z as n}from"./index-DwvMXARy.js";import{g as d}from"./QBOConnectionScreen-DLsyoGX5.js";import"./sentry-shKWv1nY.js";import{g as p,N as a}from"./core-hYoN-OEl.js";import"./zeni-epic-state-CR6pjv7i.js";import"./recharts-wvq1dzqK.js";import"./mui-DwJ6v_28.js";import"./analytics-BV_jA2M9.js";import"./plaid-DSxtSzUG.js";import"./dnd-DZGrjaWI.js";import"./stripe-DMRn4zHo.js";import"./lottie-DZTJB_Wj.js";import"./lexical-J5072i_M.js";import"./pdf-Bg2ihBfr.js";import"./utils-BP2rVjdv.js";import"./empty-CFGUQ0au.js";import"./pdf-lib-zvGCrqtU.js";import"./index-DLLm46xO.js";import"./url-NzmJzlCs.js";import"./index-D1z4yKQG.js";import"./decodeURIComponentSafe-Co5jzIrr.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]="e53e9b9f-4e1e-4d41-afae-a46e42efc4b3",e._sentryDebugIdIdentifier="sentry-dbid-e53e9b9f-4e1e-4d41-afae-a46e42efc4b3")}catch{}})();const U=()=>{const e=p(),{code:t,realmId:o,state:r}=d(e.search),s=n.getSignedInUser()?.userId??"";if(f(t,o,r,s)===!0){const m=`../../${r}/onboarding?code=${t}&realmId=${o}&state=auth_flow`;return i.jsx(a,{to:m})}return i.jsx(a,{to:"../../"})},f=(e,t,o,r)=>e!=""&&t!=""&&o!=""&&r!=null&&r!="";export{U as default,f as hasValidParams};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-CpIb8pl8.js";import{J as l,C as c,h as f}from"./index-DwvMXARy.js";import{D as b}from"./mui-DwJ6v_28.js";import"./sentry-shKWv1nY.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]="72dbe7d1-d516-4cb3-a349-9bde03ef3c37",e._sentryDebugIdIdentifier="sentry-dbid-72dbe7d1-d516-4cb3-a349-9bde03ef3c37")}catch{}})();const p={drawerLeftMargin:new c(0,0,240)};function h(e){const{isOpen:r,drawerLeftMargin:o,children:t,onClose:d}=e,n=l(),s=o?.valuePx(n)??p.drawerLeftMargin.valuePx(n),a=f();return i.jsx(b,{anchor:"right",open:r,PaperProps:{style:{width:`calc(100% - ${s})`}},slotProps:{backdrop:{style:{backgroundColor:a.colors.black,opacity:.8,cursor:"pointer"}}},onClose:d,children:t})}export{h as D};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-CpIb8pl8.js";import{a as d}from"./sentry-shKWv1nY.js";import{h as A,u as B,g as L,i as F,j as l,N as q,n as K,o as N,p as _}from"./core-hYoN-OEl.js";import{LD as H,eP as O,L0 as R,kG as M,HC as I,LI as W,Kv as Y,jG as $,HD as S,L5 as z,L6 as V,Kx as J,Kw as Q}from"./zeni-epic-state-CR6pjv7i.js";import{aR as U,c as X,p as Z,n as tt}from"./index-DwvMXARy.js";import"./mui-DwJ6v_28.js";import{d as k}from"./decodeURIComponentSafe-Co5jzIrr.js";import{w as et}from"./withTransactionSidePanel-VXlrBBql.js";import{f as at,c as nt}from"./routePaths-CCIOd2HY.js";import"./recharts-wvq1dzqK.js";import"./analytics-BV_jA2M9.js";import"./plaid-DSxtSzUG.js";import"./dnd-DZGrjaWI.js";import"./stripe-DMRn4zHo.js";import"./lottie-DZTJB_Wj.js";import"./lexical-J5072i_M.js";import"./pdf-Bg2ihBfr.js";import"./utils-BP2rVjdv.js";import"./useAskAiCfoHostNavButtonProps-oZeMEnd0.js";import"./TransactionDetailScreen-BYOMX79n.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new a.Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="490a2fc2-49b2-49e9-80e9-3521b696fda7",a._sentryDebugIdIdentifier="sentry-dbid-490a2fc2-49b2-49e9-80e9-3521b696fda7")}catch{}})();const ot=K(function(a,t){const e=t.entity,o=W(a,t.entity,"EntityDetail");return{selectedEntity:e,autoCompleteData:{autoCompleteText:e.name,entityAutoCompleteView:Y(a,"common")},trendWithTransactionsReport:o,analytics:X,isAccountingClassesEnabled:$(a)}},function(a,t){return{onTransactionItemClick:e=>{if(t.openTransactionPanel)return void t.openTransactionPanel(e.id,e.type);const o=`${nt(e,t.tenantEmailDomain)}`,c=tt(t.location.state?.pathnameStackToGoBack,t.location.pathname);t.navigate(o,{state:{pathnameStackToGoBack:c}})},autoCompleteActions:{onAutoCompleteInputChange:e=>{e.trim().length>=2?a(J({searchString:e,searchOrigin:"common"})):e.trim().length===0&&a(Q("common"))},onAutoCompleteEntity:e=>{const o=at(e,t.tenantEmailDomain);a(z()),a(V()),t.resetTrendIsFetchedStates(),t.navigate(o,{replace:!0,state:{pathnameStackToGoBack:t.location.state?.pathnameStackToGoBack}})},onCancelAutoComplete:()=>{const e=Z(t.location.state?.pathnameStackToGoBack),o=e.poppedPathname??b();t.navigate(o,{state:{pathnameStackToGoBack:e.newStack}})}},onTrendSelectedPeriodChange:e=>{if(t.closeSidePanel?.(),e==null)t.defaultTransactionTimePeriod!=null&&a(S(t.entity,"EntityDetail",{timeframe:"quarter",timePeriod:t.defaultTransactionTimePeriod}));else{const o=e.currentTimePeriod==null?e.addTimePeriod:{startDate:e.addTimePeriod.startDate,endDate:e.currentTimePeriod.endDate};a(I(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:e.addTimePeriod})),a(S(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:o}))}}}})(U),it=et(function({entityType:a,...t}){const e=A(),o=B(),c=L(),[m,T]=d.useState(!1),[h,D]=d.useState(!1),{tenantEmailDomain:C,entityIdEncoded:x,entityNameEncoded:j}=F(),r=k(x??""),p=k(j??""),f=rt(r,p),w=[r,p].filter(n=>n!=null),i={name:p,id:r,type:a,zeniId:r,qboId:r},g=l(n=>H(n.customerIncomeState,n.vendorExpenseState,n.trendState,i,"quarter")),G=l(n=>O(n).company?.companyInfo.firstMonthOfFY??1),u=l(n=>R(n.trendWithTransactionsState,i,"EntityDetail"));d.useEffect(()=>{m===!1&&f===!0&&(T(!0),o(M(i)))},[m,f,i]);const P=l(n=>n.trendState.fetchState),E=u?.selectedPeriod?.timePeriod??g,v=function(n,y){return n!=null&&y!=null?{startDate:n.startDate,endDate:y?.endDate}:y}(u?.selectedPeriod?.timePeriod,g);return d.useEffect(()=>{m===!0&&h===!1&&P==="Completed"&&(D(!0),E!=null&&o(I(i,"EntityDetail",{timeframe:u?.selectedPeriod?.timeframe??"quarter",timePeriod:E})))},[m,h,P]),f?s.jsx(ot,{firstMonthOfFY:G,tenantEmailDomain:C,location:c,navigate:e,entity:i,defaultTransactionTimePeriod:v,resetTrendIsFetchedStates:()=>{T(!1),D(!1)},...t}):s.jsx(q,{to:b(w.length)})}),rt=(a,t)=>t!=null&&t.length>0&&a!=null&&a.length>0,b=(a=2)=>{let t="../";for(let e=0;e<a;e++)t=`${t}../`;return t};function xt({entityType:a}){return s.jsx(N,{children:s.jsx(_,{path:"/:entityIdEncoded/:entityNameEncoded/*",element:s.jsx(it,{entityType:a})})})}export{xt as EntityDetailRoutes,xt as default};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-CpIb8pl8.js";import{i as S,n as x,h as C,g as y,u as ee,s as ae,j as L,N as te,o as ne,p}from"./core-hYoN-OEl.js";import{JD as k,JE as v,JF as T,zD as D,zp as G,JG as z,JH as oe,JI as se,zt as ie,eW as $,zA as le,zx as re}from"./zeni-epic-state-CR6pjv7i.js";import{J as g,o as r,S as de,c as j,i as J,F as ce,p as me,A as pe,n as M,v as ue,T as he,q as xe,_ as ge,h as fe,r as be,s as we,w as Se,B as ye,x as ke,y as ve,C as je,E as $e}from"./index-DwvMXARy.js";import{n as m}from"./mui-DwJ6v_28.js";import f from"./NotFoundScreen-z93Aerbd.js";import{a as I}from"./sentry-shKWv1nY.js";import"./recharts-wvq1dzqK.js";import"./analytics-BV_jA2M9.js";import"./plaid-DSxtSzUG.js";import"./dnd-DZGrjaWI.js";import"./stripe-DMRn4zHo.js";import"./lottie-DZTJB_Wj.js";import"./lexical-J5072i_M.js";import"./pdf-Bg2ihBfr.js";import"./utils-BP2rVjdv.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]="553572f8-a09e-4b6d-b884-e7ead1ea40ba",e._sentryDebugIdIdentifier="sentry-dbid-553572f8-a09e-4b6d-b884-e7ead1ea40ba")}catch{}})();const Ie=m.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100%;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
10
|
-
`,Ce=x(function(e){const t=k(e),n=v(e),{companyName:o}=t;return{companyName:o,isDisabled:t.fetchState!=="Completed"?"disabled":void 0,magicLinkBankAccountDetails:n,magicLinkViewState:t}},function(e,t){const{vendorId:n,billId:o}=t;return{onFetchBankName:s=>{e(G(s))},onSaveHandler:s=>{j.trackBillPayMagicLinkSubmitBankAccountDetails(o),e(D(s,"standard",n,o))},onACHDetailsUpdated:s=>{const{bankAccountSection:l}=s;e(T({data:l}))}}})(de);function F(){const e=g(),{vendorId:t,billId:n}=S();return t==null||n==null?a.jsx(f,{}):a.jsx(a.Fragment,{children:a.jsx(Ie,{windowSize:e,children:a.jsx(Ce,{vendorId:t,billId:n})})})}const De=m.div`
|
|
11
|
-
display: flex;
|
|
12
|
-
height: 100vh;
|
|
13
|
-
width: 100%;
|
|
14
|
-
flex: 1 1 auto;
|
|
15
|
-
flex-direction: column;
|
|
16
|
-
align-items: center;
|
|
17
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
18
|
-
box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
19
|
-
`,ze=x(function(e,t){const{isSubPage:n}=t;return{addressToEdit:z(e),googleAPIKey:J.googleMapsAPIKey,isSubPage:n}},function(e,t){const{navigate:n,location:o}=t,s=()=>{const l=me(o.state?.pathnameStackToGoBack),i=l.poppedPathname??Be();n(i,{state:{pathnameStackToGoBack:l.newStack}})};return{onSubmitHandler:l=>{const i=Pe(l);e(oe({addressToCreate:i})),s()},onCancel:()=>{s()}}})(ce);function Ae({isSubPage:e}){const t=C(),n=y(),o=g();return a.jsx(a.Fragment,{children:a.jsx(De,{windowSize:o,children:a.jsx(ze,{location:n,navigate:t,isSubPage:e===!0,googleAPIKey:J.googleMapsAPIKey})})})}const Be=(e=2)=>{let t="../";for(let n=0;n<e;n++)t=`${t}../`;return t},Pe=e=>({street:[e.street.addressString,e.suite,e.secondaryInfo],city:e.city,state:e.state,country:e.country.selectedOption??"",countryCode:e.countryCode,postalCode:e.postalCode,latitude:e.street.addressValue?.locationLat,longitude:e.street.addressValue?.locationLng}),Ee=m.div`
|
|
20
|
-
display: flex;
|
|
21
|
-
height: 100%;
|
|
22
|
-
width: 100%;
|
|
23
|
-
flex: 1 1 auto;
|
|
24
|
-
flex-direction: column;
|
|
25
|
-
align-items: center;
|
|
26
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
27
|
-
box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
28
|
-
`,Ne=x(function(e){const t=k(e),n=v(e),o=z(e),{companyName:s}=t;return{companyName:s,isDisabled:t.fetchState!=="Completed"?"disabled":void 0,magicLinkBankAccountDetails:n,mailingAddressDetails:o,magicLinkViewState:t}},function(e,t){const{navigate:n,location:o,vendorId:s,billId:l}=t;return{onFetchBankName:i=>{e(G(i))},onSaveHandler:i=>{j.trackBillPayMagicLinkSubmitBankAccountDetails(l),e(D(i,"us-domestic",s,l))},onWireDetailsUpdated:i=>{const{bankAccountSection:d}=i;e(T({data:d}))},onAddressClick:()=>{const i=o.pathname.replace("us-domestic","address"),d=M(o.state?.pathnameStackToGoBack,o.pathname);n(i,{state:{pathnameStackToGoBack:d}})}}})(pe);function Le(){const e=C(),t=y(),n=g(),{vendorId:o,billId:s}=S();return o==null||s==null?a.jsx(f,{}):a.jsx(a.Fragment,{children:a.jsx(Ee,{windowSize:n,children:a.jsx(Ne,{location:t,navigate:e,vendorId:o,billId:s})})})}const Fe=m.div`
|
|
29
|
-
display: flex;
|
|
30
|
-
height: 100%;
|
|
31
|
-
width: 100%;
|
|
32
|
-
flex: 1 1 auto;
|
|
33
|
-
flex-direction: column;
|
|
34
|
-
align-items: center;
|
|
35
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
36
|
-
box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
37
|
-
`,Te=x(function(e){const t=k(e),n=v(e),o=z(e),{companyName:s}=t;return{companyName:s,isDisabled:t.fetchState!=="Completed"?"disabled":void 0,magicLinkBankAccountDetails:n,mailingAddressDetails:o,magicLinkViewState:t}},function(e,t){const{navigate:n,location:o,vendorId:s,billId:l}=t;return{onFetchBankNameBySwift:i=>{e(ie(i))},onSaveHandler:i=>{j.trackBillPayMagicLinkSubmitBankAccountDetails(l),e(D(i,"international",s,l,t.isLocalCurrencyEnabled))},onBankDetailsUpdated:i=>{const{internationalWireSwiftAccountSection:d}=i;e(se({data:d}))},onAddressClick:()=>{const i=o.pathname.replace("international","address"),d=M(o.state?.pathnameStackToGoBack,o.pathname);n(i,{state:{pathnameStackToGoBack:d}})}}})(xe);function Ge(){const e=C(),t=y(),n=g(),{vendorId:o,billId:s}=S(),{useFeatureGate:l}=ue(),{isFeatureEnabled:i}=l(he.isBillPayLocalCurrencyFeatureEnabled);return o==null||s==null?a.jsx(f,{}):a.jsx(Fe,{windowSize:n,children:a.jsx(Te,{location:t,navigate:e,vendorId:o,billId:s,isLocalCurrencyEnabled:i})})}const Je={containerWidth:new je(100,58)},Me=m(ke)`
|
|
38
|
-
width: ${r.sp4};
|
|
39
|
-
height: ${r.sp4};
|
|
40
|
-
margin-bottom: ${r.sp3};
|
|
41
|
-
margin-top: ${r.sp3};
|
|
42
|
-
margin-left: ${r.sp8};
|
|
43
|
-
cursor: pointer;
|
|
44
|
-
position: absolute;
|
|
45
|
-
color: ${e=>e.theme.colors.brandColorJade};
|
|
46
|
-
`,He=m.div`
|
|
47
|
-
display: flex;
|
|
48
|
-
height: 100vh;
|
|
49
|
-
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
50
|
-
width: 100vw;
|
|
51
|
-
overflow-y: scroll;
|
|
52
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
53
|
-
`,Ve=m.div`
|
|
54
|
-
display: flex;
|
|
55
|
-
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
56
|
-
flex-direction: column;
|
|
57
|
-
width: ${e=>`${Je.containerWidth.value(e.windowSize)}%`};
|
|
58
|
-
${e=>e.windowSize!=="small"?"overflow: auto;":""}
|
|
59
|
-
box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
60
|
-
padding-top: ${e=>e.windowSize!=="small"?r.sp2:"0px"};
|
|
61
|
-
`,We=m.div`
|
|
62
|
-
display: flex;
|
|
63
|
-
flex-direction: column;
|
|
64
|
-
align-items: center;
|
|
65
|
-
justify-content: center;
|
|
66
|
-
padding: ${e=>e.windowSize==="small"?r.sp3:`62px ${r.sp6} ${r.sp9} ${r.sp8}`};
|
|
67
|
-
height: ${e=>e.windowSize==="small"?"490px":"auto"};
|
|
68
|
-
overflow: ${e=>e.windowSize==="small"?"unset":"hidden"};
|
|
69
|
-
width: ${e=>e.windowSize=="small"?"auto":"42%"};
|
|
70
|
-
background-color: ${e=>e.windowSize==="small"?e.theme.colors.grey4:e.theme.colors.background};
|
|
71
|
-
margin-top: ${e=>e.windowSize==="small"?e.isAddressPage?"0px":"186px":"unset"};
|
|
72
|
-
`,_e=x(function(e,t){return{file:t.file,type:t.type}})(ve);function h({appContent:e}){const t=ee(),n=y(),{tenantEmailDomain:o,vendorId:s,billId:l}=S(),[i]=ae(),d=i.get("token"),H=n.pathname.includes("address"),b=g(),V=ge(),A=fe(),w=be(),W=()=>{V.toggle()},_=L(u=>k(u)),K=L(u=>v(u)),{authParams:U,fetchState:c,billAttachment:O,billFetchState:B,companyName:q,currencySymbol:Q,amount:R}=_,{tenantId:P,userId:E,sessionId:N}=U,{fetchState:X,internationalBankAccountCreateStatus:Y}=K;return I.useEffect(()=>{$()},[]),I.useEffect(()=>{w&&c==="Not-Started"&&s!=null&&o!=null&&d!=null&&t(le(s,o,d))},[w,c,s,o,d,t]),I.useEffect(()=>{w&&c==="Completed"&&($(E,N,P),l!=null&&t(re(l)))},[c,w,E,N,P,l,t]),c==="Error"?a.jsx(f,{}):X==="Completed"||Y.fetchState==="Completed"?($(),a.jsx(te,{to:"../../../../../../../bank/account/save/success",replace:!0,relative:"path"})):c==="In-Progress"?a.jsx(we,{fetchState:c,style:{height:"100vh",backgroundColor:A.colors.grey5,boxShadow:`0px 2px ${r.sp1} ${A.colors.dropShadowNormal}`}}):a.jsxs(a.Fragment,{children:[c==="Completed"&&B==="Completed"&&a.jsx(Se,{analytics:j,onLoad:u=>(Z=>Z.trackBillPayMagicLinkPageLoad(o??"",s??"",q,l??"",Ke(n.pathname),Q,R))(u)}),a.jsxs(He,{windowSize:b,children:[b!=="small"?a.jsx(Me,{onClick:W}):null,a.jsx(We,{windowSize:b,isAddressPage:H,children:B==="In-Progress"?a.jsx(ye,{size:"ExtraLarge",start:!0}):a.jsx(_e,{file:O,type:"bill"})}),a.jsx(Ve,{windowSize:b,children:e})]})]})}const Ke=e=>`${e.split("/").at(-2)}_${e.split("/").at(-1)}`;function Ue(){return a.jsx($e,{})}function da(){return a.jsxs(ne,{children:[a.jsx(p,{path:"bank/account/save/success",element:a.jsx(Ue,{})}),a.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/ach/standard",element:a.jsx(h,{appContent:a.jsx(F,{})})}),a.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/ach/same-day",element:a.jsx(h,{appContent:a.jsx(F,{})})}),a.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/address",element:a.jsx(h,{appContent:a.jsx(Ae,{isSubPage:!0})})}),a.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/us-domestic",element:a.jsx(h,{appContent:a.jsx(Le,{})})}),a.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/international",element:a.jsx(h,{appContent:a.jsx(Ge,{})})}),a.jsx(p,{path:"*",element:a.jsx(f,{})})]})}export{da as default};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{j as u}from"./liveblocks-CpIb8pl8.js";import{a as g}from"./sentry-shKWv1nY.js";import{u as U,g as _,h as w,s as J,j as l,N as T}from"./core-hYoN-OEl.js";import{z as r,h as P,D as A,d as M,c as V,e as N,j as W,B,g as R}from"./index-DwvMXARy.js";import{eP as $,Jo as q,Jy as G,Jp as H,eW as K,fn as Q,Ju as X,fL as Y,cT as Z,Jz as ee,JA as te}from"./zeni-epic-state-CR6pjv7i.js";import{n as ne}from"./mui-DwJ6v_28.js";import{u as se}from"./useDeviceId-DTrq_Ush.js";import{f as ae}from"./analyticsHelper-D4YjBQo7.js";import{t as ie}from"./getLocaleForTenant-DM_cuMpU.js";import"./recharts-wvq1dzqK.js";import"./analytics-BV_jA2M9.js";import"./plaid-DSxtSzUG.js";import"./dnd-DZGrjaWI.js";import"./stripe-DMRn4zHo.js";import"./lottie-DZTJB_Wj.js";import"./lexical-J5072i_M.js";import"./pdf-Bg2ihBfr.js";import"./utils-BP2rVjdv.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]="70e05a4c-5b2b-480b-9122-cb86647e67e4",t._sentryDebugIdIdentifier="sentry-dbid-70e05a4c-5b2b-480b-9122-cb86647e67e4")}catch{}})();const z=(t,a)=>t!=null&&t.length>0&&a==="magic_links";function ze(){const t=U(),a=_(),f=w(),[y]=J(),n=y.get("token"),p=y.get("stytch_token_type"),m=r.getMagicLinkCodeVerifier(),i=se(),{otpChallenge:d,twoFAPhoneNumber:D,magicLinkEmail:c,verifyDeviceFetchState:x,resendVerifyDeviceOTPFetchState:C}=l(e=>e.tenantState),S=l(e=>e.tenantState.fetchState),k=l(e=>e.tenantState.activeTenantFetchState.fetchState),h=l(e=>e.tenantState.signInState),I=l(e=>e.tenantState.magicLinkSignInFetchState.fetchState),s=l(e=>e.tenantState.loggedInUser),o=l(e=>$(e)),b=l(e=>q(e)),E=r.getSignedInUser(),v=P().mode;g.useEffect(()=>{s?.zeniSessionId==null&&n!=null&&z(n,p)&&i!=null&&m!=null&&(r.saveMagicLinkTriggered(n),t(G(n,i,m)))},[n,p,t,i,m,s?.zeniSessionId]),g.useEffect(()=>{h!=="In-Progress"||S!=="Completed"&&k!=="Completed"||s?.zeniSessionId==null||o==null||(n!=null&&r.saveLastUsedMagicLinkToken(n),r.saveSignedInUserWithSession(s,s.zeniSessionId),r.saveSignedInUserTenants(H(b.tenantsInOrder),s.zeniSessionId),K(s.userId,s.zeniSessionId,o.tenantId),t(Q(o.tenantId)),r.saveActiveTenantDomainForUser(o.tenantEmailDomain),t(X("Completed")),A.updateAppLocaleID(ie(o)),ae(s,o,v,void 0,b.tenantsInOrder),Y().then(()=>{const e=R();e!=null&&M(e)}),setTimeout(()=>{V.trackLogin(N.Event.loginSuccess,"email",Z(o.productSettings))},2e3))},[h,S,k,s,o,b,v,a.state,t]);const j=g.useCallback(()=>{f("/signin/auth")},[f]),F=g.useCallback(()=>{i!=null&&d!=null&&c!=null&&t(ee(i,c,d))},[i,d,t,c]),O=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(W,{phoneNumber:D,verifyOtpFetchState:x.fetchState,resendVerifyDeviceOTPFetchState:C,onResendOtp:F,onVerifyOtp:O,onCancelVerifyDevice:j});if(h==="In-Progress"&&S==="Completed"&&s?.zeniSessionId!=null&&o!=null||E!=null){const e=a.state?.origin??"/";return u.jsx(T,{to:e,state:{...a.state,origin:""}})}if(!z(n,p)||m==null||I==="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??"")||I==="Error"&&s?.zeniSessionId==null)}})}return u.jsx(oe,{"data-testid":"smooth-loader",children:u.jsx(B,{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{ze as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./liveblocks-CpIb8pl8.js";import{h as r,n}from"./core-hYoN-OEl.js";import{M as i}from"./index-DwvMXARy.js";import"./mui-DwJ6v_28.js";import"./sentry-shKWv1nY.js";import"./zeni-epic-state-CR6pjv7i.js";import"./recharts-wvq1dzqK.js";import"./analytics-BV_jA2M9.js";import"./plaid-DSxtSzUG.js";import"./dnd-DZGrjaWI.js";import"./stripe-DMRn4zHo.js";import"./lottie-DZTJB_Wj.js";import"./lexical-J5072i_M.js";import"./pdf-Bg2ihBfr.js";import"./utils-BP2rVjdv.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]="59e35ec1-38d4-48f4-8af2-c43da8d96945",o._sentryDebugIdIdentifier="sentry-dbid-59e35ec1-38d4-48f4-8af2-c43da8d96945")}catch{}})();const a=n(null,function(o,t){return{onGoBack:()=>{t.navigate(-1)},onGoHome:()=>{t.navigate("/")}}})(i);function _(){const o=r();return e.jsx(a,{navigate:o})}export{_ as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as f}from"./liveblocks-CpIb8pl8.js";import{a as r}from"./sentry-shKWv1nY.js";import{u as T,g as A,j as o,N as J}from"./core-hYoN-OEl.js";import{JN as j,eP as C,f7 as R,JO as x,JP as z,JQ as D,JR as M,mW as N,IJ as L}from"./zeni-epic-state-CR6pjv7i.js";import{z as h,$ as I}from"./index-DwvMXARy.js";import"./mui-DwJ6v_28.js";import"./recharts-wvq1dzqK.js";import"./analytics-BV_jA2M9.js";import"./plaid-DSxtSzUG.js";import"./dnd-DZGrjaWI.js";import"./stripe-DMRn4zHo.js";import"./lottie-DZTJB_Wj.js";import"./lexical-J5072i_M.js";import"./pdf-Bg2ihBfr.js";import"./utils-BP2rVjdv.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]="dd4055db-2530-4cfe-b687-ab6b4c78e04d",n._sentryDebugIdIdentifier="sentry-dbid-dd4055db-2530-4cfe-b687-ab6b4c78e04d")}catch{}})();function ee(){const n=T(),s=A(),{params:t,error:i}=r.useMemo(()=>j(s.search),[s.search]),b=r.useMemo(()=>new URLSearchParams(s.search).get("client_name")??t?.clientId??"Unknown Application",[s.search,t]),p=h.isSignedIn(),a=h.getSignedInUser(),m=o(e=>C(e)),l=o(e=>R(e)),d=o(e=>e.tenantState.fetchState),w=o(x),y=o(z),c=o(D),[v,S]=r.useState(null),[E,_]=r.useState(null);r.useEffect(()=>{document.querySelector("#app-shell-loader")?.remove()},[]),r.useEffect(()=>()=>{n(M())},[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(N(a.userId,a.zeniSessionId??void 0))))},[p,a,d,n]),r.useEffect(()=>{c!=null&&c!==""&&(window.location.href=c)},[c]);const U=r.useMemo(()=>{if(m?.tenantId!=null)return m.tenantId;const e=h.getActiveTenantForUser()?.tenantId;return e!=null&&l.some(P=>P.tenantId===e)?e:l.length===1?l[0].tenantId:null},[m?.tenantId,l]),u=v??U;return i!=null?f.jsx(I,{variant:"invalid_params",paramsError:i}):p?f.jsx(I,{variant:"signed_in",clientName:b,userEmail:a?.userEmail,isInitializing:d!=="Completed",tenants:l,selectedTenantId:u,onSelectTenant:S,approveError:E??y,isApproving:w==="In-Progress",showAllowButton:u!=null,onApprove:()=>{t!=null&&a!=null&&u!=null&&n(L(a.userId,a.zeniSessionId??void 0,u,t.clientId,t.redirectUri,t.codeChallenge,t.codeChallengeMethod,t.state,t.responseType))},onDeny:()=>{if(t!=null)try{const e=new URL(t.redirectUri);e.searchParams.set("error","access_denied"),e.searchParams.set("error_description","The user denied the request"),e.searchParams.set("state",t.state),window.location.href=e.toString()}catch{_("Unable to deny: redirect_uri is not a valid URL. Close this window or contact support.")}}}):f.jsx(J,{to:"/signin/auth",state:{origin:s.pathname+s.search},replace:!0})}export{ee as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as n}from"./liveblocks-CpIb8pl8.js";import{h as V,u as z,g as Z,i as H,j as d,n as J,o as Q,p as b}from"./core-hYoN-OEl.js";import{eP as U,qR as R,qp as X,Kj as v,qk as T,bt as ee,bn as ae,bT as te,ql as se,Kk as oe,K5 as C,dE as re,ul as ne,Kl as ce,uI as ie,e_ as le,eY as de}from"./zeni-epic-state-CR6pjv7i.js";import{z as me,W as fe,Y as pe,k as ue,v as q,T as w,w as he,c as M,ao as ge,n as Fe}from"./index-DwvMXARy.js";import"./mui-DwJ6v_28.js";import Ie from"./NotFoundScreen-z93Aerbd.js";import{F as be}from"./FeaturePreviewScreen-VAJoJC-a.js";import{a as g}from"./sentry-shKWv1nY.js";import{u as Ce}from"./useAskAiCfoHostNavButtonProps-oZeMEnd0.js";import{u as Te}from"./useInitialThreadRequest-Bbl0Ad-R.js";import{t as Se}from"./routePaths-CCIOd2HY.js";import{M as ye}from"./MobileAppDrawer-CTtaUYIM.js";import"./recharts-wvq1dzqK.js";import"./analytics-BV_jA2M9.js";import"./plaid-DSxtSzUG.js";import"./dnd-DZGrjaWI.js";import"./stripe-DMRn4zHo.js";import"./lottie-DZTJB_Wj.js";import"./lexical-J5072i_M.js";import"./pdf-Bg2ihBfr.js";import"./utils-BP2rVjdv.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new s.Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="7f44ade0-d9c4-4aaf-930d-52c45682579e",s._sentryDebugIdIdentifier="sentry-dbid-7f44ade0-d9c4-4aaf-930d-52c45682579e")}catch{}})();const S=(s,e,a,o)=>{if(s!=e){const r=o??"";s!=null&&s.length>0?a(`../${e}${r}`,{replace:!0}):a(`${e}${r}`,{replace:!0})}},ke=J(function(s){const e=oe(s),a={},o=e.pandLReportWithForecast.uiState.nodeCollapseState;return Object.keys(o).forEach(r=>{a[r]=o[r]===!1}),{selectedTimeframe:e.selectedTimeframe,isForecastVsActualOn:e.isForecastVsActualOn,compareMode:e.compareMode,forecastList:e.forecastList,selectedForecast:e.selectedForecast,pandLreport:e.pandLReportWithForecast,scrollPosition:e.pandLReportWithForecast.uiState.scrollPosition,nodeOpenStatus:a,type:"name+balances_forecast",analytics:M}},function(s,e){return{onForecastSelectionChanged:(a,o)=>{s(v(a,o)),e.isPandLReportFetched(a)||s(T(a)),S(e.forecastIdFromUrlPath,a,e.navigate)},onTimeframeChanged:a=>{s(ie(a))},onForecastVsActualsCompareToggle:a=>{s(ce(a)),s(C({forecastId:e.forecastIdFromUrlPath,scrollPosition:{scrollLeft:0,scrollTop:0}}))},onCompareModeChanged:a=>{s(ne(e.firstMonthOfFY,a,0,[]))},onAccountBalanceClick:e.hasTransactionAccess!==!0?void 0:(a,o)=>{let r,c;const p=a.accountName===""?a.accountDescription:a.accountName;if(o.balanceTimeFrame==="month"||o.balanceTimeFrame==="quarter"?(r=o.balanceTimeFrame,c=re(o)):o.balanceTimeFrame==="year"?(r="quarter",c={startDate:o.endDate.startOf("quarter"),endDate:o.endDate}):console.error(`timeframe ${o.balanceTimeFrame} is not supported`),c!=null&&r!=null){const m=Se(e.tenantEmailDomain,a.accountId,a.accountType,p,r,c),u=Fe(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(m,{state:{pathnameStackToGoBack:u,referrer:"Forecast"}})}},onNodeCollapseToggled:(a,o)=>{s(C({forecastId:e.forecastIdFromUrlPath,nodeCollapseState:{nodeId:a,isCollapsed:o===!1}}))},onTableScroll:a=>{s(C({forecastId:e.forecastIdFromUrlPath,scrollPosition:a}))},onBackClick:()=>{e.navigate("../../")}}})(ge);function O(){const s=V(),e=z(),a=Z(),{forecastId:o,tenantEmailDomain:r}=H(),[c,p]=g.useState(!1),[m,u]=g.useState(!1),h=me.getSignedInUser(),y=d(t=>U(t)),$=y.company?.companyInfo.firstMonthOfFY??1,i=d(t=>R(t.forecastState,t.forecastListState)),l=d(t=>t.forecastListState.fetchState==="Completed"),k=d(t=>t.profitAndLossState),A=d(t=>t.reportUIOptionsState.selectedForecast),x=t=>k.pandLByForecastID[t]!=null&&se(t,k).reducedAllFetchState.fetchState==="Completed",{areTenantIdsInSync:F}=fe();pe({isDataReady:l});const{isAiCfoAccessEnabled:W,onAskAiCfoClick:_}=Ce({mobileExploreReferrer:"Forecast"});g.useEffect(()=>{if(!c&&F)p(!0),l||e(X());else if(l&&!m){u(!0);const t=((f,L,P)=>L!=null?f.forecasts.findIndex(I=>I.id===L):P!=null?f.forecasts.findIndex(I=>I.id===P):f.forecasts.length>0?0:-1)(i,o,A?.id);t===-1&&o!=null?s("page-not-found",{replace:!0}):t!==-1&&t!=A?.index?(e(v(i.forecasts[t].id,t)),S(o,i.forecasts[t].id,s,a.search)):o==null&&t!==-1&&S(void 0,i.forecasts[t].id,s,a.search),t!==-1&&!x(i.forecasts[t].id)&&F&&e(T(i.forecasts[t].id))}},[c,p,e,l,i,m,u,R,T,F]);const D=ue(),B=D?.loggedInUserRole!=null&&ee(D.loggedInUserRole),{useFeatureGate:N}=q(),{isFeatureEnabled:j}=N(w.isReportsCommentingEnabled),Y=Te(j?y?.companyId:void 0,{clearParams:l&&m}),[G,K]=g.useState(!1),E=t=>{K(t)};return n.jsxs(n.Fragment,{children:[l?n.jsx(he,{analytics:M,onLoad:t=>(f=>f.trackForecast())(t)}):null,n.jsx(ye,{isAppContentDrawerOpen:G,handleDrawerToggle:E}),n.jsx(ke,{firstMonthOfFY:$,tenantEmailDomain:r,forecastIdFromUrlPath:o,navigate:s,location:a,isPandLReportFetched:x,meetingUrl:te(`https://meetings.hubspot.com/svitlana-grankovska?firstname=${h?.firstName}&lastname=${h?.lastName}&email=${h?.userEmail}`),hasTransactionAccess:B,isAiCfoAccessEnabled:W,onAskAiCfoClick:_,isReportsCommentingEnabled:j,isZeniUser:ae(h),initialOpenThreadRequest:Y,onClickMenuIcon:()=>{E(!0)}})]})}function Ke(){const s=d(c=>U(c)),{useFeatureGate:e}=q(),{isFeatureEnabled:a}=e(w.isDebitCardFeatureEnabled),o=le(a,s),r=de(s);return o===!0||r===!0?n.jsx(be,{}):n.jsxs(Q,{children:[n.jsx(b,{path:"/",element:n.jsx(O,{})}),n.jsx(b,{path:"/:forecastId",element:n.jsx(O,{})}),n.jsx(b,{path:"/:forecastId/*",element:n.jsx(Ie,{})})]})}export{Ke as PandLWithForecastRoutes,Ke as default};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-CpIb8pl8.js";import{Ke as te,eP as J,jG as z,e_ as Q,eY as ne,HG as q,JU as oe,tr as Ee,Kf as N,tf as ke,tA as Pe,tu as ie,tj as re,ty as Ie,tv as je,Kg as le,v7 as ve,Kh as Te,fB as Le,Ki as K,to as de,tm as ce,tD as Fe,c2 as Ae}from"./zeni-epic-state-CR6pjv7i.js";import{J as pe,v as X,T as E,z as H,a9 as ue,G as me,ak as ge,al as Re,C as he,o as R,H as fe,D as Ce,am as Oe,W as Ve,Y as Ue,w as Be,c as be,e as Ze,n as $e,an as Ke,k as Ge}from"./index-DwvMXARy.js";import{D as ye,n as W,S as we}from"./mui-DwJ6v_28.js";import ae from"./NotFoundScreen-z93Aerbd.js";import{a as r}from"./sentry-shKWv1nY.js";import{u as ee,i as _e,j as m,h as ze,g as He,n as We,o as se,p as $}from"./core-hYoN-OEl.js";import{u as Ye}from"./useAskAiCfoHostNavButtonProps-oZeMEnd0.js";import{M as Me}from"./MobileAppDrawer-CTtaUYIM.js";import"./recharts-wvq1dzqK.js";import"./analytics-BV_jA2M9.js";import"./plaid-DSxtSzUG.js";import"./dnd-DZGrjaWI.js";import"./stripe-DMRn4zHo.js";import"./lottie-DZTJB_Wj.js";import"./lexical-J5072i_M.js";import"./pdf-Bg2ihBfr.js";import"./utils-BP2rVjdv.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new a.Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="d290b043-2aed-4ee6-820a-adec78308973",a._sentryDebugIdIdentifier="sentry-dbid-d290b043-2aed-4ee6-820a-adec78308973")}catch{}})();const Ne={overlayWidth:new he(100,100,48)},G=Ce.getLocalizedStrings().peoplePage.invitePage,Je=({companyId:a,managersListView:t,companyPassportView:l,classListView:n,mode:g,isEditPeopleDrawerOpen:o,closeDrawerHandler:y})=>{const h=pe(),p=ee(),[O,V]=r.useState(!1),[P,w]=r.useState(!1),{userId:S}=_e(),d=m(e=>te(e)),u=m(e=>J(e)),D=m(e=>z(e)),{useFeatureGate:f}=X(),{isFeatureEnabled:k}=f(E.isDebitCardFeatureEnabled),I=Q(k,u),T=ne(u),L=q(u),U=oe(u),B=!!u.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,x=!I&&D&&n.fetchState!=="Completed"||t.fetchState!=="Completed"||l.fetchState!=="Completed"||a==null;if(H.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const C=()=>{p(N()),y()},F=()=>{O===!0?w(!0):C()},Z=l.companyView?.controllers?.map(e=>e.user),{isFeatureEnabled:c}=f(E.isDepositAccountsFeatureEnabled),{isFeatureEnabled:j}=f(E.isChargeCardFeatureEnabled),v=ue(u,j,k),{isFeatureEnabled:A}=f(E.isTreasuryEnabled),b={peopleDetails:d,classList:n.classes,managersList:t.users,controllersList:Z,mode:g,isZeniTenant:L,isAccountingClassesEnabled:D,isReimbursementDisabled:B===!1,isZeniAccountsDisabled:c===!1,isChargeCardDisabled:v===!1,isTreasuryDisabled:A===!1,isLiteRoleDisabled:U===!1,isBankingOnlyTenant:I,isCardsOnlyTenant:T,onResetClick:C,onDeleteUser:e=>{p(re(e.userId,e.userRole.userRoleId))},onPeopleLocalDataUpdated:e=>{p(ie({peopleLocalData:e})),V(!0)},onSaveClick:()=>{p(g==="zeni_only"?ke(a):Pe(L))},onCloseClick:F,isLoading:x||d.person==null},i={onOkClick:()=>{w(!1),C()},onCancelClick:()=>{w(!1)}};return r.useEffect(()=>{x===!1&&S!=null&&p(Ee(S))},[x,S]),r.useEffect(()=>{d.updatePersonState.fetchState==="Completed"&&C()},[d.updatePersonState.fetchState]),s.jsx(ye,{anchor:"right",open:o,PaperProps:{style:{width:Ne.overlayWidth.valuePercentage(h),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:me.overlayDark,cursor:"pointer"}}},onClose:F,children:s.jsxs(Qe,{onClick:e=>e.stopPropagation(),children:[P===!0?s.jsx(ge,{titleComponent:s.jsx(Se,{children:G.discardTitle}),descriptionComponent:s.jsx(De,{children:G.discardDescription}),primaryButtonText:G.discard,secondaryButtonText:G.no,action:i,isEditPopup:!0}):null,s.jsx(Re,{...b})]})})},Qe=W(we)`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
`,Se=W(fe.H6Regular)`
|
|
6
|
-
margin-top: ${R.sp7};
|
|
7
|
-
padding-left: ${R.sp8};
|
|
8
|
-
padding-right: ${R.sp8};
|
|
9
|
-
color: ${a=>a.theme.colors.primary};
|
|
10
|
-
word-break: break-word;
|
|
11
|
-
`,De=W(fe.LargeRegularSp)`
|
|
12
|
-
color: ${a=>a.theme.colors.hero};
|
|
13
|
-
padding-left: ${R.sp8};
|
|
14
|
-
padding-right: ${R.sp8};
|
|
15
|
-
margin-bottom: 30px;
|
|
16
|
-
margin-top: ${R.sp4};
|
|
17
|
-
white-space: pre-line;
|
|
18
|
-
`,qe={overlayWidth:new he(100,100,48)},_=Ce.getLocalizedStrings().peoplePage.invitePage,Xe=({companyId:a,managersListView:t,companyPassportView:l,classListView:n,mode:g,isInvitePeopleDrawerOpen:o,closeDrawerHandler:y})=>{const h=pe(),p=ee(),[O,V]=r.useState(!1),[P,w]=r.useState(!1),S=m(i=>te(i)),d=m(i=>J(i)),u=m(i=>z(i)),{useFeatureGate:D}=X(),{isFeatureEnabled:f}=D(E.isDebitCardFeatureEnabled),k=Q(f,d),I=ne(d),T=q(d),L=oe(d),U=!!d.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,B=!k&&u&&n.fetchState!=="Completed"||t.fetchState!=="Completed"||l.fetchState!=="Completed"||a==null;if(H.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const x=()=>{y(),p(N())},C=()=>{O===!0?w(!0):x()},F={onOkClick:()=>{w(!1),x()},onCancelClick:()=>{w(!1)}},Z=l.companyView?.controllers.map(i=>i.user),{isFeatureEnabled:c}=D(E.isDepositAccountsFeatureEnabled),{isFeatureEnabled:j}=D(E.isChargeCardFeatureEnabled),v=ue(d,j,f),{isFeatureEnabled:A}=D(E.isTreasuryEnabled),b={classList:n.classes,managersList:t.users,controllersList:Z,mode:g,isZeniTenant:T,onPeopleLocalDataUpdated:i=>{p(ie({peopleLocalData:i})),V(!0)},onResetClick:x,onSaveClick:()=>{p(g==="zeni_only"?Ie(a):je())},onCloseClick:C,peopleDetails:S,isAccountingClassesEnabled:u,isReimbursementDisabled:U===!1,isLiteRoleDisabled:L===!1,isZeniAccountsDisabled:c===!1,isChargeCardDisabled:v===!1,isTreasuryDisabled:A===!1,isBankingOnlyTenant:k,isCardsOnlyTenant:I,isLoading:B};return r.useEffect(()=>{S.invitePersonState.fetchState==="Completed"&&(y(),p(N()))},[S.invitePersonState.fetchState]),s.jsx(ye,{anchor:"right",open:o,PaperProps:{style:{width:qe.overlayWidth.valuePercentage(h),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:me.overlayDark,cursor:"pointer"}}},onClose:C,children:s.jsxs(ea,{onClick:i=>i.stopPropagation(),children:[P===!0?s.jsx(ge,{titleComponent:s.jsx(Se,{children:_.discardTitle}),descriptionComponent:s.jsx(De,{children:_.discardDescription}),primaryButtonText:_.discard,secondaryButtonText:_.no,action:F}):null,s.jsx(Oe,{...b})]})})},ea=W(we)`
|
|
19
|
-
display: flex;
|
|
20
|
-
min-height: 100%;
|
|
21
|
-
flex-direction: column;
|
|
22
|
-
`,aa=We(function(a,t){const l=le(a),n=H.getSignedInUser();return{data:l,loggedinUserId:n?.userId??"",isZeniTenant:t.isZeniTenant===!0,shouldFetchClasses:t.shouldFetchClasses,isZeniAdminUser:n?.userEmailDomain==="zeni.ai"&&t.isZeni===!0,isAccountingClassesEnabled:z(a),analytics:be}},function(a,t){const{navigate:l,companyId:n,shouldFetchClasses:g}=t;return{personAction:{onPersonDelete:(o,y)=>{a(re(o,y))},onResendInvite:o=>{a(Fe(o))},onReloadPeople:()=>{a(de()),a(ce(n,g))},onBackClick:()=>{l("../../")},onModeChange:o=>{a(K({mode:o,searchText:"",sortKey:"name",sortOrder:"ascending"}))},onSearchTextChanged:o=>{a(K({searchText:o}))}}}})(Ke);function M({isInvitePeopleDrawerOpen:a,isEditPeopleDrawerOpen:t}){const l=ze(),n=ee(),g=He(),{areTenantIdsInSync:o}=Ve(),y=H.getSignedInUser(),h=m(e=>J(e)),{useFeatureGate:p}=X(),{isFeatureEnabled:O}=p(E.isDebitCardFeatureEnabled),V=m(e=>z(e)),P=!Q(O,h)&&V,w=q(h),S=h?.tenantId,{tenantEmailDomain:d}=h,[u,D]=r.useState(!1),[f,k]=r.useState(!1),[I,T]=r.useState(!1),[L,U]=r.useState("off"),[B,x]=r.useState(!1),C=e=>{x(e)},{isAiCfoAccessEnabled:F,onAskAiCfoClick:Z}=Ye({mobileExploreReferrer:"People"}),c=m(e=>le(e));Ue({isDataReady:c.fetchState==="Completed"});const j=m(e=>ve(e.classState,e.classListState)),v=m(e=>Te(e.userState,e.userRoleState,e.userListViewState,"manager")),A=m(e=>Le(e)),b=h?.companyId;r.useEffect(()=>{u&&L===c.uiState.mode||!o||(n(K({searchText:"",sortKey:"name",sortOrder:"ascending"})),U(c.uiState.mode),D(!0),n(de()))},[u,y,S,n,c.uiState.mode,o]),r.useEffect(()=>{b!=null&&o&&n(ce(b,P))},[b,P,o]),r.useEffect(()=>{k(a!=null&&a===!0),T(t!=null&&t===!0&&t)},[a,t]),r.useEffect(()=>{n(K({searchText:"",sortKey:"name",sortOrder:"ascending"}))},[]);const i=()=>{k(!1),T(!1),l("../")};return s.jsxs(s.Fragment,{children:[c.fetchState==="Completed"?s.jsx(Be,{analytics:be,onLoad:e=>e.trackPageLoaded(Ze.Event.members)}):null,f===!0?s.jsx(Xe,{closeDrawerHandler:i,isInvitePeopleDrawerOpen:f,managersListView:v,companyPassportView:A,classListView:j,companyId:b,mode:c.uiState.mode}):null,I===!0?s.jsx(Je,{closeDrawerHandler:i,isEditPeopleDrawerOpen:I,managersListView:v,companyPassportView:A,classListView:j,companyId:b,mode:c.uiState.mode}):null,s.jsx(Me,{isAppContentDrawerOpen:B,handleDrawerToggle:C}),s.jsx(aa,{navigate:l,signedInUser:y,isZeni:h.isZeni,isZeniTenant:w,peopleUIState:c.uiState,companyId:b,shouldFetchClasses:P,classList:j,managersView:v,peopleView:c,onInvitePeopleClick:()=>{l("./new")},onColumnSortConfigChanged:(e,Y)=>{n(K({sortKey:e,sortOrder:Y}))},onRowClick:e=>{const Y=`/${d}/people/${encodeURIComponent(e)}/edit`,xe=$e(g.state?.pathnameStackToGoBack,g.pathname);l(Y,{state:{pathnameStackToGoBack:xe}})},onClickMenuIcon:()=>{C(!0)},isAiCfoAccessEnabled:F,onAskAiCfoClick:Z})]})}function wa(){const a=Ge();return Ae(a?.loggedInUserRole??[])?s.jsxs(se,{children:[s.jsx($,{path:"/",element:s.jsx(M,{})}),s.jsx($,{path:"new",element:s.jsx(M,{isInvitePeopleDrawerOpen:!0})}),s.jsx($,{path:":userId/edit",element:s.jsx(M,{isEditPeopleDrawerOpen:!0})}),s.jsx($,{path:"*",element:s.jsx(ae,{})})]}):s.jsx(se,{children:s.jsx($,{path:"*",element:s.jsx(ae,{})})})}export{wa as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-CpIb8pl8.js";import E from"./NotFoundScreen-z93Aerbd.js";import{a as r}from"./sentry-shKWv1nY.js";import{h as _,g as P,j as p,i as v,u as M,N as U,n as z,o as B,p as h}from"./core-hYoN-OEl.js";import{eP as O,PY as b,bo as F,bn as N,hn as V,gT as Y}from"./zeni-epic-state-CR6pjv7i.js";import{_ as $,z as I,Y as q,cB as G}from"./index-DwvMXARy.js";import"./mui-DwJ6v_28.js";import{u as H}from"./useAskAiCfoHostNavButtonProps-oZeMEnd0.js";import{M as J}from"./MobileAppDrawer-CTtaUYIM.js";import"./recharts-wvq1dzqK.js";import"./analytics-BV_jA2M9.js";import"./plaid-DSxtSzUG.js";import"./dnd-DZGrjaWI.js";import"./stripe-DMRn4zHo.js";import"./lottie-DZTJB_Wj.js";import"./lexical-J5072i_M.js";import"./pdf-Bg2ihBfr.js";import"./utils-BP2rVjdv.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]="c71411b7-e087-4a61-9ea8-de12f9c493ae",e._sentryDebugIdIdentifier="sentry-dbid-c71411b7-e087-4a61-9ea8-de12f9c493ae")}catch{}})();const K=z(function(e){const t=I.getSignedInUser(),c=e.tenantState.currentTenantId,o={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:c??""},{aggregatedReportViewState:n}=b(e);return{authParams:o,isDisabled:!1,loggedInUser:t,aggregatedReport:n}},function(e,t){return{onBackClick:()=>{t.navigate("../../")},onClickMenuIcon:()=>{t.handleDrawerToggle(!0)}}})(G),L=()=>{const e=_(),t=P(),c=$(),o=p(a=>O(a)),{aggregatedReportViewState:n}=p(a=>b(a)),{tenantEmailDomain:u}=v(),f=M(),d=I.getSignedInUser();if(d==null)throw new Error("Can't access this page without signing in...");const m=r.useRef(!1),[w,S]=r.useState(!1),C=F(o?.userRole??[]),k=o?.userRole?.includes("bookkeeping_admin")??!1,x=N(d),y=C||k||x,l=r.useCallback((a,i,A)=>{f(V({fromMonth:a,toMonth:i,cacheOverride:A}))},[]);r.useEffect(()=>{n?.fetchState==="Completed"&&m.current&&(f(Y({messageSection:"data_refresh_update",messageText:"success",type:"success",showStatusIcon:!0})),m.current=!1)},[n?.fetchState]);const D=r.useCallback((a,i)=>{n!=null&&n?.fetchState==="In-Progress"||l(a,i,!0),m.current=!0},[n?.fetchState,l]),j=r.useCallback((a,i)=>{l(a,i,!1)},[l]),g=a=>{S(a)},{isAiCfoAccessEnabled:R,onAskAiCfoClick:T}=H({mobileExploreReferrer:"Performance"});return q({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:u,onReload:D,onTimeRangeSelect:j,handleDrawerToggle:g,isAiCfoAccessEnabled:R,onAskAiCfoClick:T})]}):s.jsx(U,{to:`/${u}/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 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./liveblocks-CpIb8pl8.js";import x from"./NotFoundScreen-z93Aerbd.js";import{a as p}from"./sentry-shKWv1nY.js";import{h as C,g as I,u as D,j as u,N as A,n as E,o as k,p as c}from"./core-hYoN-OEl.js";import{eP as T,ND as b,NT as S,D8 as V,Ch as _,D7 as f,C_ as N,O7 as U}from"./zeni-epic-state-CR6pjv7i.js";import{h as O,z as $,s as P,a7 as W,bQ as z,af as B}from"./index-DwvMXARy.js";import"./mui-DwJ6v_28.js";import{R as g}from"./ReimbursementApprovalRuleDetailScreen-Cr-Jb0kG.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]="a7894c4f-c891-4172-93f5-9f78d3df9e88",e._sentryDebugIdIdentifier="sentry-dbid-a7894c4f-c891-4172-93f5-9f78d3df9e88")}catch{}})();const d="reimbursement-approval-rule-update",Q=E(function(e){return{approvalView:b(e),remiSetupApproverViewUpdateData:S(e).remiSetupApproverViewUpdateData}},function(e,r){const{navigate:a,location:l}=r;return{onApprovalRulesEventReceived:n=>{n.endsWith(d)&&e(U(!1))},onBackClick:()=>{B(l)?a("../../"):a("../../../reimbursements/setup")},onDeleteRuleClick:n=>{e(N(n))},onEditRuleClick:n=>{n!=null?(e(f(n)),a(`./${n}/edit`)):(e(f()),a("./new"))}}})(W(z)),q=()=>{const e=C(),r=I(),a=D(),[l,n]=p.useState(!1),[m,y]=p.useState(!1),h=u(s=>s.remiSetupApproverViewState.fetchState),o=u(s=>T(s)),w=O(),i=u(s=>b(s)),v=u(s=>S(s).remiSetupApproverViewUpdateData);if(p.useEffect(()=>{v?.updateStatus.fetchState==="Completed"&&a(V())},[v]),p.useEffect(()=>{l||h!=="Not-Started"||(n(!0),a(_(!0)))},[l,h,a]),$.getSignedInUser()==null)throw Error("Can't access reimbursement approval without signing in...");p.useEffect(()=>{i.allApprovalRules.length===0&&i.fetchState==="Completed"&&(m||(y(!0),a(f())),e("./new"))},[m,i,a]);const j={events:o.companyId!=null?[`private-encrypted-${o.companyId}.${d}`]:[],eventCallback:(s,F,R)=>{s.endsWith(d)&&R.onApprovalRulesEventReceived(s)}};return o.companyReimbursementInfo?.info?.isReimbursementTOSAccepted===!1?t.jsx(A,{to:"../../promo"}):o.companyReimbursementInfo?.info?.isReimbursementTOSAccepted!==!0||i.fetchState!=="Completed"&&i.fetchState!=="Error"?t.jsx(P,{fetchState:"In-Progress",style:{backgroundColor:w.colors.grey5}}):t.jsx(Q,{currentTenant:o,location:r,navigate:e,...j})};function Z(){return t.jsxs(k,{children:[t.jsx(c,{path:"/",element:t.jsx(q,{})}),t.jsx(c,{path:"/new",element:t.jsx(g,{})}),t.jsx(c,{path:"/:approvalRuleId/edit",element:t.jsx(g,{})}),t.jsx(c,{path:"*",element:t.jsx(x,{})})]})}export{Z as R};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-CpIb8pl8.js";import{v as x,z as j,aN as y,w as I,c as p,e as F,cL as L,T as P}from"./index-DwvMXARy.js";import"./mui-DwJ6v_28.js";import l from"./NotFoundScreen-z93Aerbd.js";import{a as f}from"./sentry-shKWv1nY.js";import{u as T,j as b,h as V,g as A,n as R,o as U,p as u}from"./core-hYoN-OEl.js";import{eP as z,Qv as C,Ni as Q,Qw as v,ub as Y,f4 as G,Qx as O,u9 as q}from"./zeni-epic-state-CR6pjv7i.js";import{R as w}from"./ReferralListScreen-DYYleAn3.js";import"./recharts-wvq1dzqK.js";import"./analytics-BV_jA2M9.js";import"./plaid-DSxtSzUG.js";import"./dnd-DZGrjaWI.js";import"./stripe-DMRn4zHo.js";import"./lottie-DZTJB_Wj.js";import"./lexical-J5072i_M.js";import"./pdf-Bg2ihBfr.js";import"./utils-BP2rVjdv.js";import"./useAskAiCfoHostNavButtonProps-oZeMEnd0.js";import"./MobileAppDrawer-CTtaUYIM.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]="ba423186-45e5-4e0d-af3f-f3b841f9df98",e._sentryDebugIdIdentifier="sentry-dbid-ba423186-45e5-4e0d-af3f-f3b841f9df98")}catch{}})();const B=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,o=j.getSignedInUser();return{onDismissClick:()=>{e(v()),n("..")},onSendClick:()=>{if(o!=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(q())},onUpdateInviteFormLocalData:s=>{e(O({localData:s}))},onSubmitSuccess:()=>{n("../../")},onCancelClick:()=>{o!=null&&p.trackInviteEmailClicked("cancel")}}})(L),H=()=>{const e=T(),[t,n]=f.useState(!1),[o,s]=f.useState(!1),r=b(i=>z(i)),c=V(),_=A(),{useDynamicConfig:g}=x(),d=j.getSignedInUser();if(d==null)throw Error("Can't access invite referral screen without signing in...");const m=b(i=>C(i)),N=d?.firstName!=null?d.firstName:"User",{configValue:h}=g(y.zeniCardsConfig),{configValue:k}=g(y.zeniAccountsConfig),D=Q(k);f.useEffect(()=>{e(v()),r?.rewardsLastViewedTime==null&&o===!1&&(e(Y()),s(!0))},[]),f.useEffect(()=>{t||m.fetchState!=="Not-Started"||(n(!0),e(G(!0)))},[m.fetchState,e]);const S=r.company?.companyInfo.companyLegalName??r.companyName;return a.jsxs(a.Fragment,{children:[m.fetchState==="Completed"?a.jsx(I,{analytics:p,onLoad:i=>(E=>E.trackPageLoaded(F.Event.inviteEmailViewed))(i)}):null,a.jsx(B,{navigate:c,location:_,currentTenant:r,companyName:S,userName:N,inviteFormCompayData:m.localData,chargeCardCashbackRatePerTransaction:h.charge_card_cashback_rate_per_transaction!=null?h.charge_card_cashback_rate_per_transaction:.0175,maxAnnualPercentageYield:D.maxAnnualPercentageYield})]})};function ue(){const{useFeatureGate:e}=x(),{isFeatureEnabled:t}=e(P.isReferralFeatureEnabled);return a.jsxs(U,{children:[a.jsx(u,{path:"/",element:t?a.jsx(w,{}):a.jsx(l,{})}),a.jsx(u,{path:"how-it-works",element:t?a.jsx(w,{isReferralDrawerOpen:!0}):a.jsx(l,{})}),a.jsx(u,{path:"refer/*",element:t?a.jsx(H,{}):a.jsx(l,{})}),a.jsx(u,{path:"*",element:a.jsx(l,{})})]})}export{ue as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as u}from"./liveblocks-CpIb8pl8.js";import{a as f,b as T,q as A}from"./sentry-shKWv1nY.js";import{u as D,h as z,j as d,g as J,N as M,n as O}from"./core-hYoN-OEl.js";import{u as P,z as s,h as j,c as E,D as F,d as _,e as B,f as N,g as V,U as W,i as v}from"./index-DwvMXARy.js";import{eP as $,Jo as q,Jp as G,eW as H,fn as K,Ju as Q,fL as R,cT as X,Jv as b,Jw as Y,Jx as Z,bT as y}from"./zeni-epic-state-CR6pjv7i.js";import"./mui-DwJ6v_28.js";import{u as ee}from"./useDeviceId-DTrq_Ush.js";import{f as te}from"./analyticsHelper-D4YjBQo7.js";import{t as ne}from"./getLocaleForTenant-DM_cuMpU.js";import"./recharts-wvq1dzqK.js";import"./analytics-BV_jA2M9.js";import"./plaid-DSxtSzUG.js";import"./dnd-DZGrjaWI.js";import"./stripe-DMRn4zHo.js";import"./lottie-DZTJB_Wj.js";import"./lexical-J5072i_M.js";import"./pdf-Bg2ihBfr.js";import"./utils-BP2rVjdv.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]="43c8b126-624c-4468-b8ce-1e206052c5dc",t._sentryDebugIdIdentifier="sentry-dbid-43c8b126-624c-4468-b8ce-1e206052c5dc")}catch{}})();const ie=O(function(t,i){const c=t.tenantState.fetchState,g=t.tenantState.sendEmailMagicLinkFetchState,{magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:l}=i;return{googleClientId:v.googleClientId,microsoftClientId:v.microsoftClientId,signInError:t.tenantState.error?.error,fetchState:c,sendMagicLinkStatus:g,magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:l}},function(t,i){const{location:c,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 l=a==="google"?window.location.origin:window.location.origin+window.location.pathname;t(Z({authCode:n,oauthProvider:a,appType:"web",redirectUri:y(l),sourceUri:y(c.state!=null?c.state.origin:"")}))},getSignedInUser:()=>s.getSignedInUser(),onSignedInCallback:()=>{const n=c.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(Y(n,a)))},clearSignInError:()=>{t(b())}}})(W),ae=T.memo(ie);function ve({setTenantEmailDomain:t}){const i=D(),c=z(),{clearAllLoading:g}=P(),n=s.getSignedInUser();f.useLayoutEffect(()=>{g()},[g]);const a=ee(),l=d(e=>e.tenantState.magicLinkCodeVerifier),{sendEmailMagicLinkFetchState:h,accountLocked:U,accountUnlockTime:k}=d(e=>e.tenantState),p=d(e=>e.tenantState.fetchState),L=d(e=>e.tenantState.activeTenantFetchState.fetchState),S=d(e=>e.tenantState.signInState),o=d(e=>e.tenantState.loggedInUser),r=d(e=>$(e)),I=d(e=>q(e)),m=J(),w=j().mode,x=m.state?.magicLinkExpired,C=m.state?.magicLinkAlreadyUsed;if(f.useEffect(()=>{h.fetchState==="Completed"&&l!=null&&(E.trackSignInLinkSent(),s.saveMagicLinkCodeVerifier(l))},[h.fetchState,l]),f.useEffect(()=>{t(void 0)},[]),f.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(G(I.tenantsInOrder),o.zeniSessionId),H(o.userId,o.zeniSessionId,r.tenantId),i(K(r.tenantId)),s.saveActiveTenantDomainForUser(r.tenantEmailDomain),i(Q("Completed")),F.updateAppLocaleID(ne(r)),te(o,r,w,void 0,I.tenantsInOrder),R().then(()=>{const e=V();e!=null&&_(e)}),setTimeout(()=>{E.trackLogin(B.Event.loginSuccess,o.authProvider??"google",X(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 u.jsx(M,{to:e,state:{...m.state,origin:""}})}return u.jsxs(u.Fragment,{children:[u.jsx(ae,{magicLinkExpired:!!x,magicLinkAlreadyUsed:!!C,magicLinkExpiredEmail:s.getMagicLinkEmail()??void 0,location:m,navigate:c,deviceId:a??void 0,showEmailLogin:!0}),U===!0&&k!=null?u.jsx(N,{onClose:()=>i(b()),unlockDate:k}):null]})}export{ve as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-CpIb8pl8.js";import{a}from"./sentry-shKWv1nY.js";import{u,g as m,h as p,N as g}from"./core-hYoN-OEl.js";import{z as f,s as b,t as y,c as d,e as h}from"./index-DwvMXARy.js";import{fQ as x,fR as I,JM as w}from"./zeni-epic-state-CR6pjv7i.js";import{n as j}from"./mui-DwJ6v_28.js";import"./recharts-wvq1dzqK.js";import"./analytics-BV_jA2M9.js";import"./plaid-DSxtSzUG.js";import"./dnd-DZGrjaWI.js";import"./stripe-DMRn4zHo.js";import"./lottie-DZTJB_Wj.js";import"./lexical-J5072i_M.js";import"./pdf-Bg2ihBfr.js";import"./utils-BP2rVjdv.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]="fef34edb-f5bd-4d97-97df-86ebdda0117f",e._sentryDebugIdIdentifier="sentry-dbid-fef34edb-f5bd-4d97-97df-86ebdda0117f")}catch{}})();function U(){const e=u(),t=m(),i=p(),n=a.useRef(!1),l=f.isSignedIn(),r=t.state?.message==="logout",o=r||l;return a.useEffect(()=>{o&&!n.current&&(n.current=!0,setTimeout(()=>{try{f.clearAll(),e(x()),e(I(!1)),w(),y.reset(),d.trackLogout(h.Event.logoutSuccess),d.resetUserIdentity()}catch(c){console.error("Error during sign out:",c)}finally{r||i("/signin/auth",{replace:!0})}},0))},[o,r]),o?s.jsx(v,{children:s.jsx(b,{fetchState:"In-Progress"})}):s.jsx(g,{to:"../",replace:!0})}const v=j.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{U as default};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./liveblocks-CpIb8pl8.js";import{a as f}from"./sentry-shKWv1nY.js";import{s as u,u as h,j as y,N as I}from"./core-hYoN-OEl.js";import{JJ as w,eW as b,zI as j}from"./zeni-epic-state-CR6pjv7i.js";import{z as l,s as x,G as S,H as D}from"./index-DwvMXARy.js";import{n as p}from"./mui-DwJ6v_28.js";import"./recharts-wvq1dzqK.js";import"./analytics-BV_jA2M9.js";import"./plaid-DSxtSzUG.js";import"./dnd-DZGrjaWI.js";import"./stripe-DMRn4zHo.js";import"./lottie-DZTJB_Wj.js";import"./lexical-J5072i_M.js";import"./pdf-Bg2ihBfr.js";import"./utils-BP2rVjdv.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]="e99d47a6-dfa4-4e13-a84e-605ee0411d8f",e._sentryDebugIdIdentifier="sentry-dbid-e99d47a6-dfa4-4e13-a84e-605ee0411d8f")}catch{}})();const q=()=>{const[e]=u(),t=e.get("code")??"",s=e.get("state")??"",g=e.get("profileId")??"",[n,m]=f.useState(!1),a=h(),i=y(c=>w(c)),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 b(r.userId,r.zeniSessionId,d?.tenantId),f.useEffect(()=>{n||(m(!0),a(j(t,g,s)))},[n,a]),i.fetchState==="Error"?o.jsx(E,{children:o.jsx(_,{children:i.error?.message??""})}):(i.fetchState==="Completed"&&window.close(),o.jsx(x,{fetchState:"In-Progress"}))},E=p.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
|
-
`,_=p(D.LargeRegular)`
|
|
10
|
-
display: flex;
|
|
11
|
-
color: ${S.important};
|
|
12
|
-
`;export{q as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-CpIb8pl8.js";import{a as u}from"./sentry-shKWv1nY.js";import{h as x,u as j,g as $,i as v,j as p}from"./core-hYoN-OEl.js";import{IG as s,IF as B,OV as C,eP as P,OW as T}from"./zeni-epic-state-CR6pjv7i.js";import{J as z,at as g,h as D,z as E,s as L,c4 as G,p as N}from"./index-DwvMXARy.js";import{n as _}from"./mui-DwJ6v_28.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="dcc73707-b343-44ad-aaf2-ffabe9445edf",e._sentryDebugIdIdentifier="sentry-dbid-dcc73707-b343-44ad-aaf2-ffabe9445edf")}catch{}})();const U=_.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`;function W(){const e=x(),n=j(),d=z(),f=$();let{accountId:a}=v(),l=`${g.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${a}`;a==null&&f.pathname.includes(`${s}/statements`)&&(a=s,l=`${g.bankingMicroServiceBaseUrl}/1.0/${s}`);const[m,y]=u.useState(!1),h=D();u.useEffect(()=>{m||(y(!0),n(B(a??"",!1)))},[m,n]);const o=p(t=>C(t,a??"")),b=()=>{const t=N(f.state?.pathnameStackToGoBack),S=t.poppedPathname??"..";e(S,{state:{pathnameStackToGoBack:t.newStack}})},c=E.getSignedInUser(),r=p(t=>P(t)),I={userId:c?.userId??"",sessionId:c?.zeniSessionId??"",tenantId:r.tenantId??""},w=T(a??"")===!0?s:o.zeniAccountDetail?.accountLast4??"",k=r.company?.companyInfo.companyLegalName??r.companyName;if(c==null)throw Error("Can't access address page without signing in...");return o.fetchState!=="Completed"?i.jsx(L,{fetchState:"In-Progress",style:{backgroundColor:h.colors.grey5}}):i.jsx(U,{windowSize:d,children:i.jsx(G,{currentTenantCompanyName:k,statementListView:o,accountLast4:w,onBackClick:b,authParams:I,downloadEndPoint:l})})}export{W as Z};
|