@zeniai/web-app-ui 5.1.41-dev → 5.1.42-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-BCz__EI4.js +1 -0
- package/dist/assets/AddressScreen-BQEJZep-.js +9 -0
- package/dist/assets/{AiCfoScreen-C_myBV4D.js → AiCfoScreen-l2UIiZXg.js} +5 -5
- package/dist/assets/{BillPayApprovalRoutes-BdLnrXpe.js → BillPayApprovalRoutes-BYTF7RlF.js} +1 -1
- package/dist/assets/{BillPayRoutes-DqMIVcAo.js → BillPayRoutes-Y2GshGLb.js} +6 -6
- package/dist/assets/{BusinessVerificationPageScreen-DzB_yK82.js → BusinessVerificationPageScreen-B1XOWdLY.js} +2 -2
- package/dist/assets/{ChargeCardRoutes-Dna64gxR.js → ChargeCardRoutes-BeWhpCH-.js} +8 -8
- package/dist/assets/{CompanyPassportScreen-ChejZLeJ.js → CompanyPassportScreen-CeBt-XOl.js} +1 -1
- package/dist/assets/{ConnectionAuthScreen-BgmsfvvE.js → ConnectionAuthScreen-BdBfWUXj.js} +1 -1
- package/dist/assets/CustomerOnboardingAuthScreen-BZd9V4du.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-CqfIRMj0.js → CustomerOnboardingRoutes-DUt57kAf.js} +4 -4
- package/dist/assets/{DashboardRoutes-DnF5Jd0Y.js → DashboardRoutes-nmK2b2mf.js} +3 -3
- package/dist/assets/{DefaultTenantHome-Du4641P_.js → DefaultTenantHome-BDHVBB0K.js} +1 -1
- package/dist/assets/{DomesticWireDetailScreen-aKSRWnmO.js → DomesticWireDetailScreen-B6-eYo2A.js} +3 -3
- package/dist/assets/DrawerScreen-DvTwZZ3Z.js +1 -0
- package/dist/assets/{EntityDetailRoutes-BlpXJ5Dy.js → EntityDetailRoutes-8qA7My_U.js} +1 -1
- package/dist/assets/{ExpenseAutomationRoutes-Buz1K3y7.js → ExpenseAutomationRoutes-C8-Mn5PQ.js} +3 -3
- package/dist/assets/{FeaturePreviewScreen-YRaraIxS.js → FeaturePreviewScreen-DJUGXzrU.js} +1 -1
- package/dist/assets/{HubSpotOAuthCallbackScreen-BAH2Q1f2.js → HubSpotOAuthCallbackScreen-RqDRfYlE.js} +1 -1
- package/dist/assets/MagicLinkRoutes-rc8DvsFj.js +72 -0
- package/dist/assets/MagicLinkSignInScreen-B-qmFK1v.js +12 -0
- package/dist/assets/{MobileAppDrawer-W2GDVtlY.js → MobileAppDrawer-CXn6ACK8.js} +1 -1
- package/dist/assets/NotFoundScreen-oSYzRiU5.js +1 -0
- package/dist/assets/{NotificationRoutes-DeBZv-eB.js → NotificationRoutes-DRQ36TQ6.js} +1 -1
- package/dist/assets/OAuthConsentScreen-CLJzqNfz.js +1 -0
- package/dist/assets/{PandLWithForecastRoutes-BjwcElC4.js → PandLWithForecastRoutes-0ZRJWRCx.js} +1 -1
- package/dist/assets/{PeopleRoutes-yanC87-w.js → PeopleRoutes-DF17Ty5Y.js} +1 -1
- package/dist/assets/PerformanceRoutes-CUHaPhmJ.js +1 -0
- package/dist/assets/{Preview-Dmp1onQ9.js → Preview-BIv89hzt.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-CtM9ExGf.js → QBOConnectionScreen-C_W_hhro.js} +1 -1
- package/dist/assets/{ReferralListScreen-CazFeKZl.js → ReferralListScreen-DoFqPmaW.js} +2 -2
- package/dist/assets/ReimbursementApprovalRoutes-CzIj9u27.js +1 -0
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-mQpyh31P.js → ReimbursementApprovalRuleDetailScreen-C__W6cBm.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-nr_Alg0Y.js → ReimbursementRoutes-Dwgc3wYP.js} +1 -1
- package/dist/assets/{ReportsRoutes-DbZ3LEqX.js → ReportsRoutes-DHWDaWJZ.js} +1 -1
- package/dist/assets/RewardsRoutes-BJnL3X7j.js +1 -0
- package/dist/assets/{ScreenRoutes-CfBla_2E.js → ScreenRoutes-M6_eA1Po.js} +2 -2
- package/dist/assets/{SettingsRoutes-BmetcfR3.js → SettingsRoutes-6x54coJo.js} +1 -1
- package/dist/assets/{SetupPagesScreen-D1v0miuC.js → SetupPagesScreen-DTnZEosg.js} +5 -5
- package/dist/assets/{SignInScreen-DEROO8iF.js → SignInScreen-CkGqzs9y.js} +1 -1
- package/dist/assets/SignOutScreen-B8simSuy.js +9 -0
- package/dist/assets/{TaskListScreen-DvZkrnyz.js → TaskListScreen-B-WTYK8l.js} +2 -2
- package/dist/assets/{TaskRoutes-CODwfW-n.js → TaskRoutes-6OM23b7h.js} +2 -2
- package/dist/assets/{TransactionDetailRoutes-BmPy8QgB.js → TransactionDetailRoutes-Cz46q2kQ.js} +1 -1
- package/dist/assets/{TransactionDetailScreen-bas4iCDD.js → TransactionDetailScreen-DMRpf8Jn.js} +1 -1
- package/dist/assets/{TransactionListRoutes-D9rvhxh7.js → TransactionListRoutes-BCKP3i9J.js} +1 -1
- package/dist/assets/{TreasuryRoutes-DFngrQKV.js → TreasuryRoutes-OIUUL00i.js} +5 -5
- package/dist/assets/{VendorsRoutes-CSNr8WG8.js → VendorsRoutes-CGl_cyRX.js} +1 -1
- package/dist/assets/WiseConfirmationScreen-BpCSMEpq.js +12 -0
- package/dist/assets/ZeniAccountRoutes-C0D63xGM.js +57 -0
- package/dist/assets/ZeniAccountStatementScreen-BLf6Wp_l.js +9 -0
- package/dist/assets/{accountMappingHelper-D5Fid2f6.js → accountMappingHelper-BOnx9PBZ.js} +1 -1
- package/dist/assets/{analytics-CW8roqmC.js → analytics-b-eZZ75g.js} +1 -1
- package/dist/assets/{analyticsHelper-o23vdCIF.js → analyticsHelper-DgnQ4tzM.js} +1 -1
- package/dist/assets/{core-Mtl4BpqO.js → core-Drzr9vPw.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-Dx2pSmzR.js → decodeURIComponentSafe-L-HIgA_b.js} +1 -1
- package/dist/assets/{dnd-BKlGc2nt.js → dnd-CW0_ASOc.js} +1 -1
- package/dist/assets/{empty-D5mEwY_Q.js → empty-D77cHGUS.js} +1 -1
- package/dist/assets/{empty-fiuwfS8i.js → empty-fn_fT9qw.js} +1 -1
- package/dist/assets/{emptyVideoElement-DwA82jsg.js → emptyVideoElement-WI5ltDET.js} +1 -1
- package/dist/assets/{epic-DObyqgn1.js → epic-DB7Icq4V.js} +1 -1
- package/dist/assets/{getLocaleForTenant-CgUZxd9E.js → getLocaleForTenant-CVYGMI95.js} +1 -1
- package/dist/assets/{index-BGfR6vwm.js → index-B5cvtnck.js} +1 -1
- package/dist/assets/{index-B88gfARL.js → index-B7HqZ-Bj.js} +1 -1
- package/dist/assets/{index-HBbBR-jr.js → index-Bh7vNey5.js} +11959 -11920
- package/dist/assets/{index-B_IGcY8s.js → index-C0So86-o.js} +1 -1
- package/dist/assets/{index-DEPGr9Lj.js → index-CCdtSJg2.js} +1 -1
- package/dist/assets/{index-D24LWggz.js → index-CPxmwL1P.js} +2 -2
- package/dist/assets/{index-ClE9KqBB.js → index-N6Pm2fvT.js} +1 -1
- package/dist/assets/{index-Bxe77eR1.js → index-dzRzSOhI.js} +1 -1
- package/dist/assets/{lexical-jAz9MoVn.js → lexical-Bbm9AdaU.js} +1 -1
- package/dist/assets/{liveblocks-DAoXO0Rd.js → liveblocks-lTiGWso8.js} +1 -1
- package/dist/assets/{lottie-BtMRfUgU.js → lottie-C0hVb3hU.js} +1 -1
- package/dist/assets/{mui-DU909_Vd.js → mui-DtRNNsKX.js} +1 -1
- package/dist/assets/{pathToGoBack-BlhH5Lhy.js → pathToGoBack-DniyXv8Z.js} +1 -1
- package/dist/assets/{pdf-CU0VtjKp.js → pdf-CH8W2XJ3.js} +3 -3
- package/dist/assets/{pdf-lib-f4Dn91fx.js → pdf-lib-CdqnWBXd.js} +1 -1
- package/dist/assets/{plaid-JDj9Mfy5.js → plaid-BKg_wnD-.js} +1 -1
- package/dist/assets/{pusher-BJBoXQx_.js → pusher-mzXZtBmx.js} +1 -1
- package/dist/assets/{react-sIpl446b.js → react-7y8jo0XJ.js} +1 -1
- package/dist/assets/{react-CRGLKFeW.js → react-BE7s-pIx.js} +1 -1
- package/dist/assets/{react-6w1EeyIg.js → react-ByXTR7cW.js} +1 -1
- package/dist/assets/{react-D_U1HWMu.js → react-CJXzf-oz.js} +1 -1
- package/dist/assets/{react-Cx517M46.js → react-DyL2Gn57.js} +1 -1
- package/dist/assets/{react-FYiorfY3.js → react-cnQBQTdt.js} +1 -1
- package/dist/assets/{recharts-CAqdAfyx.js → recharts-BHGgvbFF.js} +1 -1
- package/dist/assets/{routePaths-Dmy8m7uc.js → routePaths-h6B2D1D2.js} +1 -1
- package/dist/assets/{sentry-DVepN5wZ.js → sentry-BX6lYJb0.js} +1 -1
- package/dist/assets/{url-BPsMfLVo.js → url-AttyRO4A.js} +1 -1
- package/dist/assets/{url-BmElMszD.js → url-BHD-54f7.js} +1 -1
- package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-Co2z2Ab7.js → useAiCfoDashboardSuggestedQuestionsChips-BiG5hpyV.js} +1 -1
- package/dist/assets/{useAskAiCfoHostNavButtonProps-RvJbY515.js → useAskAiCfoHostNavButtonProps-BGZklYjQ.js} +1 -1
- package/dist/assets/{useDeviceId-B7l9Zl3D.js → useDeviceId-DU9fQ0re.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-BuuTz8Yd.js → useInitialThreadRequest-p3MIx8hX.js} +1 -1
- package/dist/assets/{utils-DFeDbaeQ.js → utils-D3TXfGbF.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-D_FzKoBQ.js → withTransactionSidePanel-_1JxJO5V.js} +1 -1
- package/dist/assets/{zeni-epic-state-BvDumFfk.js → zeni-epic-state-CvsjkZCM.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/AddressRoutes-DLVJnk1T.js +0 -1
- package/dist/assets/AddressScreen-CwSrhkNh.js +0 -9
- package/dist/assets/CustomerOnboardingAuthScreen-Bpv2GaOn.js +0 -1
- package/dist/assets/DrawerScreen-DnEPctGb.js +0 -1
- package/dist/assets/MagicLinkRoutes-DJAs6hpr.js +0 -72
- package/dist/assets/MagicLinkSignInScreen-CwPGDxRn.js +0 -12
- package/dist/assets/NotFoundScreen-PR4sRkln.js +0 -1
- package/dist/assets/OAuthConsentScreen-DDXwbuMf.js +0 -1
- package/dist/assets/PerformanceRoutes-IvkmZynb.js +0 -1
- package/dist/assets/ReimbursementApprovalRoutes-Dl_v3WPL.js +0 -1
- package/dist/assets/RewardsRoutes-nMtiQb4W.js +0 -1
- package/dist/assets/SignOutScreen-B7oMc7oa.js +0 -9
- package/dist/assets/WiseConfirmationScreen-DZ3sm0-f.js +0 -12
- package/dist/assets/ZeniAccountRoutes-DgmjOwCZ.js +0 -57
- package/dist/assets/ZeniAccountStatementScreen-BynwsM5c.js +0 -9
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-Bh7vNey5.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-BX6lYJb0.js"><link rel="modulepreload" crossorigin href="/assets/core-Drzr9vPw.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-CvsjkZCM.js"><link rel="modulepreload" crossorigin href="/assets/mui-DtRNNsKX.js"><link rel="modulepreload" crossorigin href="/assets/analytics-b-eZZ75g.js"><link rel="modulepreload" crossorigin href="/assets/utils-D3TXfGbF.js"><link rel="stylesheet" crossorigin href="/assets/index-R6GjjTB3.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.42-dev",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/**/*"
|
|
6
6
|
],
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@stripe/stripe-js": "^4.4.0",
|
|
30
30
|
"@zeniai/client-analytics": "2.0.22",
|
|
31
31
|
"@zeniai/client-epic-state": "5.0.91",
|
|
32
|
-
"@zeniai/web-components": "4.1.
|
|
32
|
+
"@zeniai/web-components": "4.1.58",
|
|
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-DAoXO0Rd.js";import{A as d}from"./AddressScreen-CwSrhkNh.js";import i from"./NotFoundScreen-PR4sRkln.js";import"./sentry-DVepN5wZ.js";import{o as s,p as r}from"./core-Mtl4BpqO.js";import"./zeni-epic-state-BvDumFfk.js";import"./recharts-CAqdAfyx.js";import"./index-HBbBR-jr.js";import"./mui-DU909_Vd.js";import"./analytics-CW8roqmC.js";import"./plaid-JDj9Mfy5.js";import"./dnd-BKlGc2nt.js";import"./stripe-DMRn4zHo.js";import"./lottie-BtMRfUgU.js";import"./lexical-jAz9MoVn.js";import"./pdf-CU0VtjKp.js";import"./utils-DFeDbaeQ.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-DAoXO0Rd.js";import{a as h}from"./sentry-DVepN5wZ.js";import{h as T,u as _,g as j,i as E,j as B,n as K}from"./core-Mtl4BpqO.js";import{J as M,m as L,z as $,k as D,B as R,x as N,c as C,f as S,q as z,j as b,r as F}from"./index-HBbBR-jr.js";import{KL as k,h3 as U,eR as q,KM as G,c2 as O,KN as V,ko as H}from"./zeni-epic-state-BvDumFfk.js";import{n as J}from"./mui-DU909_Vd.js";import Q from"./NotFoundScreen-PR4sRkln.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]="610ed144-0f8b-46f0-a7fa-33dd0ecd63e4",e._sentryDebugIdIdentifier="sentry-dbid-610ed144-0f8b-46f0-a7fa-33dd0ecd63e4")}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=K(function(e,t){const{addressId:o,isSubPage:i,addressType:c}=t,l=q(e),a=t.roleMap!=null&&G(t.roleMap),d=i||c==="user_address"||O(l?.userRole??[])||a?void 0:"readonly";if(o==null){const s=V(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=F(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(),x=L(),I=$.getSignedInUser(),[g,v]=h.useState(s==null),p=B(m=>s!=null?k(m,s).fetchState:"Not-Started"),A=D();if(I==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||(v(!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(R,{fetchState:p,style:{backgroundColor:x.colors.grey5}}):s!=null&&p==="Error"?(a(`${w(1)}/new`,{replace:!0}),r.jsx(r.Fragment,{})):r.jsxs(r.Fragment,{children:[r.jsx(N,{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 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-DAoXO0Rd.js";import{z as n}from"./index-HBbBR-jr.js";import{g as d}from"./QBOConnectionScreen-CtM9ExGf.js";import"./sentry-DVepN5wZ.js";import{g as p,N as a}from"./core-Mtl4BpqO.js";import"./zeni-epic-state-BvDumFfk.js";import"./recharts-CAqdAfyx.js";import"./mui-DU909_Vd.js";import"./analytics-CW8roqmC.js";import"./plaid-JDj9Mfy5.js";import"./dnd-BKlGc2nt.js";import"./stripe-DMRn4zHo.js";import"./lottie-BtMRfUgU.js";import"./lexical-jAz9MoVn.js";import"./pdf-CU0VtjKp.js";import"./utils-DFeDbaeQ.js";import"./empty-fiuwfS8i.js";import"./pdf-lib-f4Dn91fx.js";import"./index-BGfR6vwm.js";import"./url-BmElMszD.js";import"./index-B88gfARL.js";import"./decodeURIComponentSafe-Dx2pSmzR.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-DAoXO0Rd.js";import{J as f,E as l,m as c}from"./index-HBbBR-jr.js";import{D as p}from"./mui-DU909_Vd.js";import"./sentry-DVepN5wZ.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]="085d2278-ebaf-460b-8661-4493fef27612",e._sentryDebugIdIdentifier="sentry-dbid-085d2278-ebaf-460b-8661-4493fef27612")}catch{}})();const b={drawerLeftMargin:new l(0,0,240)};function m(e){const{isOpen:r,drawerLeftMargin:o,children:t,onClose:s}=e,n=f(),a=o?.valuePx(n)??b.drawerLeftMargin.valuePx(n),d=c();return i.jsx(p,{anchor:"right",open:r,PaperProps:{style:{width:`calc(100% - ${a})`}},slotProps:{backdrop:{style:{backgroundColor:d.colors.black,opacity:.8,cursor:"pointer"}}},onClose:s,children:t})}export{m as D};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-DAoXO0Rd.js";import{i as S,n as g,h as C,g as y,u as ee,s as ae,j as E,N as te,o as ne,p}from"./core-Mtl4BpqO.js";import{Kb as k,Kc as v,Kd as K,A8 as A,zW as T,Ke as B,Kf as oe,Kg as se,z_ as ie,eY as $,A5 as le,A2 as re}from"./zeni-epic-state-BvDumFfk.js";import{J as x,o as r,R as de,c as j,j as G,q as ce,r as me,_ as pe,v as _,s as ue,d as he,M as ge,F as xe,m as fe,w as we,B as be,x as Se,n as ye,S as ke,A as ve,E as je,G as $e}from"./index-HBbBR-jr.js";import{n as m}from"./mui-DU909_Vd.js";import f from"./NotFoundScreen-PR4sRkln.js";import{a as I}from"./sentry-DVepN5wZ.js";import"./recharts-CAqdAfyx.js";import"./analytics-CW8roqmC.js";import"./plaid-JDj9Mfy5.js";import"./dnd-BKlGc2nt.js";import"./stripe-DMRn4zHo.js";import"./lottie-BtMRfUgU.js";import"./lexical-jAz9MoVn.js";import"./pdf-CU0VtjKp.js";import"./utils-DFeDbaeQ.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]="5ca315a3-7f00-4d91-9352-d17502ac7ce0",e._sentryDebugIdIdentifier="sentry-dbid-5ca315a3-7f00-4d91-9352-d17502ac7ce0")}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=g(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(T(s))},onSaveHandler:s=>{j.trackBillPayMagicLinkSubmitBankAccountDetails(o),e(A(s,"standard",n,o))},onACHDetailsUpdated:s=>{const{bankAccountSection:l}=s;e(K({data:l}))}}})(de);function F(){const e=x(),{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 Ae=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
|
-
`,Be=g(function(e,t){const{isSubPage:n}=t;return{addressToEdit:B(e),googleAPIKey:G.googleMapsAPIKey,isSubPage:n}},function(e,t){const{navigate:n,location:o}=t,s=()=>{const l=me(o.state?.pathnameStackToGoBack),i=l.poppedPathname??ze();n(i,{state:{pathnameStackToGoBack:l.newStack}})};return{onSubmitHandler:l=>{const i=Pe(l);e(oe({addressToCreate:i})),s()},onCancel:()=>{s()}}})(ce);function De({isSubPage:e}){const t=C(),n=y(),o=x();return a.jsx(a.Fragment,{children:a.jsx(Ae,{windowSize:o,children:a.jsx(Be,{location:n,navigate:t,isSubPage:e===!0,googleAPIKey:G.googleMapsAPIKey})})})}const ze=(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}),Le=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=g(function(e){const t=k(e),n=v(e),o=B(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(T(i))},onSaveHandler:i=>{j.trackBillPayMagicLinkSubmitBankAccountDetails(l),e(A(i,"us-domestic",s,l))},onWireDetailsUpdated:i=>{const{bankAccountSection:d}=i;e(K({data:d}))},onAddressClick:()=>{const i=o.pathname.replace("us-domestic","address"),d=_(o.state?.pathnameStackToGoBack,o.pathname);n(i,{state:{pathnameStackToGoBack:d}})}}})(pe);function Ee(){const e=C(),t=y(),n=x(),{vendorId:o,billId:s}=S();return o==null||s==null?a.jsx(f,{}):a.jsx(a.Fragment,{children:a.jsx(Le,{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
|
-
`,Ke=g(function(e){const t=k(e),n=v(e),o=B(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(A(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=_(o.state?.pathnameStackToGoBack,o.pathname);n(i,{state:{pathnameStackToGoBack:d}})}}})(ge);function Te(){const e=C(),t=y(),n=x(),{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(Ke,{location:t,navigate:e,vendorId:o,billId:s,isLocalCurrencyEnabled:i})})}const Ge={containerWidth:new je(100,58)},_e=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
|
-
`,Me=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
|
-
`,He=m.div`
|
|
54
|
-
display: flex;
|
|
55
|
-
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
56
|
-
flex-direction: column;
|
|
57
|
-
width: ${e=>`${Ge.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
|
-
`,Ve=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
|
-
`,We=g(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"),M=n.pathname.includes("address"),w=x(),H=xe(),D=fe(),b=we(),V=()=>{H.toggle()},W=E(u=>k(u)),U=E(u=>v(u)),{authParams:J,fetchState:c,billAttachment:O,billFetchState:z,companyName:R,currencySymbol:Y,amount:q}=W,{tenantId:P,userId:L,sessionId:N}=J,{fetchState:Q,internationalBankAccountCreateStatus:X}=U;return I.useEffect(()=>{$()},[]),I.useEffect(()=>{b&&c==="Not-Started"&&s!=null&&o!=null&&d!=null&&t(le(s,o,d))},[b,c,s,o,d,t]),I.useEffect(()=>{b&&c==="Completed"&&($(L,N,P),l!=null&&t(re(l)))},[c,b,L,N,P,l,t]),c==="Error"?a.jsx(f,{}):Q==="Completed"||X.fetchState==="Completed"?($(),a.jsx(te,{to:"../../../../../../../bank/account/save/success",replace:!0,relative:"path"})):c==="In-Progress"?a.jsx(be,{fetchState:c,style:{height:"100vh",backgroundColor:D.colors.grey5,boxShadow:`0px 2px ${r.sp1} ${D.colors.dropShadowNormal}`}}):a.jsxs(a.Fragment,{children:[c==="Completed"&&z==="Completed"&&a.jsx(Se,{analytics:j,onLoad:u=>(Z=>Z.trackBillPayMagicLinkPageLoad(o??"",s??"",R,l??"",Ue(n.pathname),Y,q))(u)}),a.jsxs(Me,{windowSize:w,children:[w!=="small"?a.jsx(_e,{onClick:V}):null,a.jsx(Ve,{windowSize:w,isAddressPage:M,children:z==="In-Progress"?a.jsx(ye,{size:"ExtraLarge",start:!0}):a.jsx(We,{file:O,type:"bill"})}),a.jsx(He,{windowSize:w,children:e})]})]})}const Ue=e=>`${e.split("/").at(-2)}_${e.split("/").at(-1)}`;function Je(){return a.jsx($e,{})}function da(){return a.jsxs(ne,{children:[a.jsx(p,{path:"bank/account/save/success",element:a.jsx(Je,{})}),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(De,{isSubPage:!0})})}),a.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/us-domestic",element:a.jsx(h,{appContent:a.jsx(Ee,{})})}),a.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/international",element:a.jsx(h,{appContent:a.jsx(Te,{})})}),a.jsx(p,{path:"*",element:a.jsx(f,{})})]})}export{da as default};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{j as u}from"./liveblocks-DAoXO0Rd.js";import{a as g}from"./sentry-DVepN5wZ.js";import{u as U,g as _,h as w,s as M,j as l,N as T}from"./core-Mtl4BpqO.js";import{z as r,m as P,D as V,e as A,c as K,f as N,C as J,n as R,g as Y}from"./index-HBbBR-jr.js";import{eR as W,JY as Z,K6 as $,JZ as q,eY as B,fp as G,K2 as H,fN as Q,cT as X,K7 as ee,K8 as te}from"./zeni-epic-state-BvDumFfk.js";import{n as ne}from"./mui-DU909_Vd.js";import{u as se}from"./useDeviceId-B7l9Zl3D.js";import{f as ae}from"./analyticsHelper-o23vdCIF.js";import{t as ie}from"./getLocaleForTenant-CgUZxd9E.js";import"./recharts-CAqdAfyx.js";import"./analytics-CW8roqmC.js";import"./plaid-JDj9Mfy5.js";import"./dnd-BKlGc2nt.js";import"./stripe-DMRn4zHo.js";import"./lottie-BtMRfUgU.js";import"./lexical-jAz9MoVn.js";import"./pdf-CU0VtjKp.js";import"./utils-DFeDbaeQ.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]="81f0476d-cd3a-4679-9e4a-18783e63710e",t._sentryDebugIdIdentifier="sentry-dbid-81f0476d-cd3a-4679-9e4a-18783e63710e")}catch{}})();const C=(t,a)=>t!=null&&t.length>0&&a==="magic_links";function Ce(){const t=U(),a=_(),m=w(),[y]=M(),n=y.get("token"),p=y.get("stytch_token_type"),f=r.getMagicLinkCodeVerifier(),i=se(),{otpChallenge:d,twoFAPhoneNumber:D,magicLinkEmail:c,verifyDeviceFetchState:x,resendVerifyDeviceOTPFetchState:z}=l(e=>e.tenantState),S=l(e=>e.tenantState.fetchState),b=l(e=>e.tenantState.activeTenantFetchState.fetchState),I=l(e=>e.tenantState.signInState),h=l(e=>e.tenantState.magicLinkSignInFetchState.fetchState),s=l(e=>e.tenantState.loggedInUser),o=l(e=>W(e)),k=l(e=>Z(e)),E=r.getSignedInUser(),v=P().mode;g.useEffect(()=>{s?.zeniSessionId==null&&n!=null&&C(n,p)&&i!=null&&f!=null&&(r.saveMagicLinkTriggered(n),t($(n,i,f)))},[n,p,t,i,f,s?.zeniSessionId]),g.useEffect(()=>{I!=="In-Progress"||S!=="Completed"&&b!=="Completed"||s?.zeniSessionId==null||o==null||(n!=null&&r.saveLastUsedMagicLinkToken(n),r.saveSignedInUserWithSession(s,s.zeniSessionId),r.saveSignedInUserTenants(q(k.tenantsInOrder),s.zeniSessionId),B(s.userId,s.zeniSessionId,o.tenantId),t(G(o.tenantId)),r.saveActiveTenantDomainForUser(o.tenantEmailDomain),t(H("Completed")),V.updateAppLocaleID(ie(o)),ae(s,o,v,void 0,k.tenantsInOrder),Q().then(()=>{const e=Y();e!=null&&A(e)}),setTimeout(()=>{K.trackLogin(N.Event.loginSuccess,"email",X(o.productSettings))},2e3))},[I,S,b,s,o,k,v,a.state,t]);const j=g.useCallback(()=>{m("/signin/auth")},[m]),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(h==="Completed"&&d!=null)return u.jsx(J,{phoneNumber:D,verifyOtpFetchState:x.fetchState,resendVerifyDeviceOTPFetchState:z,onResendOtp:F,onVerifyOtp:O,onCancelVerifyDevice:j});if(I==="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(!C(n,p)||f==null||h==="Error"){const e=a.state?.origin??"/",L=n!=null&&r.getLastUsedMagicLinkToken()===n;return u.jsx(T,{to:e,state:{...a.state,origin:"",magicLinkAlreadyUsed:L,magicLinkExpired:!L&&(r.isMagicLinkTriggered(n??"")||h==="Error"&&s?.zeniSessionId==null)}})}return u.jsx(oe,{"data-testid":"smooth-loader",children:u.jsx(R,{size:"ExtraLarge",start:!0})})}const oe=ne.div`
|
|
2
|
-
position: fixed;
|
|
3
|
-
top: 0;
|
|
4
|
-
left: 0;
|
|
5
|
-
right: 0;
|
|
6
|
-
bottom: 0;
|
|
7
|
-
display: flex;
|
|
8
|
-
align-items: center;
|
|
9
|
-
justify-content: center;
|
|
10
|
-
z-index: 9999;
|
|
11
|
-
background-color: ${t=>t.theme.colors.background};
|
|
12
|
-
`;export{Ce as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./liveblocks-DAoXO0Rd.js";import{h as n,n as i}from"./core-Mtl4BpqO.js";import{$ as e}from"./index-HBbBR-jr.js";import"./mui-DU909_Vd.js";import"./sentry-DVepN5wZ.js";import"./zeni-epic-state-BvDumFfk.js";import"./recharts-CAqdAfyx.js";import"./analytics-CW8roqmC.js";import"./plaid-JDj9Mfy5.js";import"./dnd-BKlGc2nt.js";import"./stripe-DMRn4zHo.js";import"./lottie-BtMRfUgU.js";import"./lexical-jAz9MoVn.js";import"./pdf-CU0VtjKp.js";import"./utils-DFeDbaeQ.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]="f0a6f69d-2c9c-4f29-8b70-8d3b4a29316a",o._sentryDebugIdIdentifier="sentry-dbid-f0a6f69d-2c9c-4f29-8b70-8d3b4a29316a")}catch{}})();const a=i(null,function(o,t){return{onGoBack:()=>{t.navigate(-1)},onGoHome:()=>{t.navigate("/")}}})(e);function _(){const o=n();return r.jsx(a,{navigate:o})}export{_ as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as f}from"./liveblocks-DAoXO0Rd.js";import{a as r}from"./sentry-DVepN5wZ.js";import{u as A,g as K,j as o,N as j}from"./core-Mtl4BpqO.js";import{Kl as C,eR as P,f9 as R,Km as x,Kn as z,Ko as D,Kp as M,ng as k,Jh as L}from"./zeni-epic-state-BvDumFfk.js";import{z as h,K as I}from"./index-HBbBR-jr.js";import"./mui-DU909_Vd.js";import"./recharts-CAqdAfyx.js";import"./analytics-CW8roqmC.js";import"./plaid-JDj9Mfy5.js";import"./dnd-BKlGc2nt.js";import"./stripe-DMRn4zHo.js";import"./lottie-BtMRfUgU.js";import"./lexical-jAz9MoVn.js";import"./pdf-CU0VtjKp.js";import"./utils-DFeDbaeQ.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]="30e8cb9d-bac4-41ed-8dd5-4a6c9555324c",n._sentryDebugIdIdentifier="sentry-dbid-30e8cb9d-bac4-41ed-8dd5-4a6c9555324c")}catch{}})();function ee(){const n=A(),s=K(),{params:t,error:i}=r.useMemo(()=>C(s.search),[s.search]),w=r.useMemo(()=>new URLSearchParams(s.search).get("client_name")??t?.clientId??"Unknown Application",[s.search,t]),p=h.isSignedIn(),a=h.getSignedInUser(),m=o(e=>P(e)),l=o(e=>R(e)),d=o(e=>e.tenantState.fetchState),y=o(x),b=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(k(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(T=>T.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:w,userEmail:a?.userEmail,isInitializing:d!=="Completed",tenants:l,selectedTenantId:u,onSelectTenant:S,approveError:E??b,isApproving:y==="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 s}from"./liveblocks-DAoXO0Rd.js";import T from"./NotFoundScreen-PR4sRkln.js";import{a as r}from"./sentry-DVepN5wZ.js";import{h as _,g as v,j as p,i as M,u as U,N as F,n as P,o as V,p as h}from"./core-Mtl4BpqO.js";import{eR as z,QE as b,bo as B,bn as N,hp as O,gV as Q}from"./zeni-epic-state-BvDumFfk.js";import{F as Y,z as I,Y as $,cF as q}from"./index-HBbBR-jr.js";import"./mui-DU909_Vd.js";import{u as G}from"./useAskAiCfoHostNavButtonProps-RvJbY515.js";import{M as H}from"./MobileAppDrawer-W2GDVtlY.js";import"./recharts-CAqdAfyx.js";import"./analytics-CW8roqmC.js";import"./plaid-JDj9Mfy5.js";import"./dnd-BKlGc2nt.js";import"./stripe-DMRn4zHo.js";import"./lottie-BtMRfUgU.js";import"./lexical-jAz9MoVn.js";import"./pdf-CU0VtjKp.js";import"./utils-DFeDbaeQ.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]="2cf45b86-43f6-49e5-8e9e-25008af5652e",e._sentryDebugIdIdentifier="sentry-dbid-2cf45b86-43f6-49e5-8e9e-25008af5652e")}catch{}})();const J=P(function(e){const t=I.getSignedInUser(),c=e.tenantState.currentTenantId,o={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:c??""},{aggregatedReportViewState:n}=b(e);return{authParams:o,isDisabled:!1,loggedInUser:t,aggregatedReport:n}},function(e,t){return{onBackClick:()=>{t.navigate("../../")},onClickMenuIcon:()=>{t.handleDrawerToggle(!0)}}})(q),K=()=>{const e=_(),t=v(),c=Y(),o=p(a=>z(a)),{aggregatedReportViewState:n}=p(a=>b(a)),{tenantEmailDomain:m}=M(),u=U(),d=I.getSignedInUser();if(d==null)throw new Error("Can't access this page without signing in...");const f=r.useRef(!1),[w,S]=r.useState(!1),C=B(o?.userRole??[]),k=o?.userRole?.includes("bookkeeping_admin")??!1,x=N(d),y=C||k||x,l=r.useCallback((a,i,E)=>{u(O({fromMonth:a,toMonth:i,cacheOverride:E}))},[]);r.useEffect(()=>{n?.fetchState==="Completed"&&f.current&&(u(Q({messageSection:"data_refresh_update",messageText:"success",type:"success",showStatusIcon:!0})),f.current=!1)},[n?.fetchState]);const D=r.useCallback((a,i)=>{n!=null&&n?.fetchState==="In-Progress"||l(a,i,!0),f.current=!0},[n?.fetchState,l]),R=r.useCallback((a,i)=>{l(a,i,!1)},[l]),g=a=>{S(a)},{isAiCfoAccessEnabled:j,onAskAiCfoClick:A}=G({mobileExploreReferrer:"Performance"});return $({isDataReady:n?.fetchState==="Completed"}),y?s.jsxs(s.Fragment,{children:[s.jsx(H,{isAppContentDrawerOpen:w,handleDrawerToggle:g}),s.jsx(J,{navigate:e,location:t,themeState:c,currentTenant:o,signedInUser:d,tenantEmailDomain:m,onReload:D,onTimeRangeSelect:R,handleDrawerToggle:g,isAiCfoAccessEnabled:j,onAskAiCfoClick:A})]}):s.jsx(F,{to:`/${m}/dashboard`,replace:!0})};function ge(){return s.jsxs(V,{children:[s.jsx(h,{path:"*",element:s.jsx(K,{})}),s.jsx(h,{path:"*",element:s.jsx(T,{})})]})}export{ge as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./liveblocks-DAoXO0Rd.js";import x from"./NotFoundScreen-PR4sRkln.js";import{a as p}from"./sentry-DVepN5wZ.js";import{h as D,g as I,u as C,j as d,N as A,n as E,o as k,p as u}from"./core-Mtl4BpqO.js";import{eR as O,Oa as g,Oq as S,DF as T,CO as V,DE as c,Dv as U,OH as _}from"./zeni-epic-state-BvDumFfk.js";import{m as $,z as B,B as N,a7 as W,bS as q,af as z}from"./index-HBbBR-jr.js";import"./mui-DU909_Vd.js";import{R as h}from"./ReimbursementApprovalRuleDetailScreen-mQpyh31P.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]="a522c417-8ff2-4ed2-877b-db9d857bd629",e._sentryDebugIdIdentifier="sentry-dbid-a522c417-8ff2-4ed2-877b-db9d857bd629")}catch{}})();const m="reimbursement-approval-rule-update",F=E(function(e){return{approvalView:g(e),remiSetupApproverViewUpdateData:S(e).remiSetupApproverViewUpdateData}},function(e,r){const{navigate:a,location:l}=r;return{onApprovalRulesEventReceived:s=>{s.endsWith(m)&&e(_(!1))},onBackClick:()=>{z(l)?a("../../"):a("../../../reimbursements/setup")},onDeleteRuleClick:s=>{e(U(s))},onEditRuleClick:s=>{s!=null?(e(c(s)),a(`./${s}/edit`)):(e(c()),a("./new"))}}})(W(q)),H=()=>{const e=D(),r=I(),a=C(),[l,s]=p.useState(!1),[f,y]=p.useState(!1),b=d(n=>n.remiSetupApproverViewState.fetchState),o=d(n=>O(n)),w=$(),i=d(n=>g(n)),v=d(n=>S(n).remiSetupApproverViewUpdateData);if(p.useEffect(()=>{v?.updateStatus.fetchState==="Completed"&&a(T())},[v]),p.useEffect(()=>{l||b!=="Not-Started"||(s(!0),a(V(!0)))},[l,b,a]),B.getSignedInUser()==null)throw Error("Can't access reimbursement approval without signing in...");p.useEffect(()=>{i.allApprovalRules.length===0&&i.fetchState==="Completed"&&(f||(y(!0),a(c())),e("./new"))},[f,i,a]);const R={events:o.companyId!=null?[`private-encrypted-${o.companyId}.${m}`]:[],eventCallback:(n,P,j)=>{n.endsWith(m)&&j.onApprovalRulesEventReceived(n)}};return o.companyReimbursementInfo?.info?.isReimbursementTOSAccepted===!1?t.jsx(A,{to:"../../promo"}):o.companyReimbursementInfo?.info?.isReimbursementTOSAccepted!==!0||i.fetchState!=="Completed"&&i.fetchState!=="Error"?t.jsx(N,{fetchState:"In-Progress",style:{backgroundColor:w.colors.grey5}}):t.jsx(F,{currentTenant:o,location:r,navigate:e,...R})};function Z(){return t.jsxs(k,{children:[t.jsx(u,{path:"/",element:t.jsx(H,{})}),t.jsx(u,{path:"/new",element:t.jsx(h,{})}),t.jsx(u,{path:"/:approvalRuleId/edit",element:t.jsx(h,{})}),t.jsx(u,{path:"*",element:t.jsx(x,{})})]})}export{Z as R};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-DAoXO0Rd.js";import{s as j,z as w,aN as y,x as E,c as p,f as R,cQ as F,d as L}from"./index-HBbBR-jr.js";import"./mui-DU909_Vd.js";import l from"./NotFoundScreen-PR4sRkln.js";import{a as d}from"./sentry-DVepN5wZ.js";import{u as P,j as b,h as T,g as V,n as U,o as z,p as f}from"./core-Mtl4BpqO.js";import{eR as A,Rg as C,NR as G,Rh as N,uI as Y,f6 as O,Ri as Q,uG as q}from"./zeni-epic-state-BvDumFfk.js";import{R as x}from"./ReferralListScreen-CazFeKZl.js";import"./recharts-CAqdAfyx.js";import"./analytics-CW8roqmC.js";import"./plaid-JDj9Mfy5.js";import"./dnd-BKlGc2nt.js";import"./stripe-DMRn4zHo.js";import"./lottie-BtMRfUgU.js";import"./lexical-jAz9MoVn.js";import"./pdf-CU0VtjKp.js";import"./utils-DFeDbaeQ.js";import"./useAskAiCfoHostNavButtonProps-RvJbY515.js";import"./MobileAppDrawer-W2GDVtlY.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]="0b461f78-8348-4d80-99c7-5b48c9fd4d2f",e._sentryDebugIdIdentifier="sentry-dbid-0b461f78-8348-4d80-99c7-5b48c9fd4d2f")}catch{}})();const B=U(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=w.getSignedInUser();return{onDismissClick:()=>{e(N()),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(Q({localData:s}))},onSubmitSuccess:()=>{n("../../")},onCancelClick:()=>{o!=null&&p.trackInviteEmailClicked("cancel")}}})(F),H=()=>{const e=P(),[t,n]=d.useState(!1),[o,s]=d.useState(!1),r=b(i=>A(i)),c=T(),_=V(),{useDynamicConfig:g}=j(),u=w.getSignedInUser();if(u==null)throw Error("Can't access invite referral screen without signing in...");const m=b(i=>C(i)),k=u?.firstName!=null?u.firstName:"User",{configValue:h}=g(y.zeniCardsConfig),{configValue:v}=g(y.zeniAccountsConfig),D=G(v);d.useEffect(()=>{e(N()),r?.rewardsLastViewedTime==null&&o===!1&&(e(Y()),s(!0))},[]),d.useEffect(()=>{t||m.fetchState!=="Not-Started"||(n(!0),e(O(!0)))},[m.fetchState,e]);const I=r.company?.companyInfo.companyLegalName??r.companyName;return a.jsxs(a.Fragment,{children:[m.fetchState==="Completed"?a.jsx(E,{analytics:p,onLoad:i=>(S=>S.trackPageLoaded(R.Event.inviteEmailViewed))(i)}):null,a.jsx(B,{navigate:c,location:_,currentTenant:r,companyName:I,userName:k,inviteFormCompayData:m.localData,chargeCardCashbackRatePerTransaction:h.charge_card_cashback_rate_per_transaction!=null?h.charge_card_cashback_rate_per_transaction:.0175,maxAnnualPercentageYield:D.maxAnnualPercentageYield})]})};function fe(){const{useFeatureGate:e}=j(),{isFeatureEnabled:t}=e(L.isReferralFeatureEnabled);return a.jsxs(z,{children:[a.jsx(f,{path:"/",element:t?a.jsx(x,{}):a.jsx(l,{})}),a.jsx(f,{path:"how-it-works",element:t?a.jsx(x,{isReferralDrawerOpen:!0}):a.jsx(l,{})}),a.jsx(f,{path:"refer/*",element:t?a.jsx(H,{}):a.jsx(l,{})}),a.jsx(f,{path:"*",element:a.jsx(l,{})})]})}export{fe as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-DAoXO0Rd.js";import{a as n}from"./sentry-DVepN5wZ.js";import{u,g as m,h as p,N as g}from"./core-Mtl4BpqO.js";import{z as f,B as y,t as b,c,f as h}from"./index-HBbBR-jr.js";import{fS as x,fT as I,Kk as j}from"./zeni-epic-state-BvDumFfk.js";import{n as w}from"./mui-DU909_Vd.js";import"./recharts-CAqdAfyx.js";import"./analytics-CW8roqmC.js";import"./plaid-JDj9Mfy5.js";import"./dnd-BKlGc2nt.js";import"./stripe-DMRn4zHo.js";import"./lottie-BtMRfUgU.js";import"./lexical-jAz9MoVn.js";import"./pdf-CU0VtjKp.js";import"./utils-DFeDbaeQ.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]="a0ed1c15-5407-4bf1-aa39-21ee88f19b7e",e._sentryDebugIdIdentifier="sentry-dbid-a0ed1c15-5407-4bf1-aa39-21ee88f19b7e")}catch{}})();function $(){const e=u(),t=m(),i=p(),a=n.useRef(!1),d=f.isSignedIn(),r=t.state?.message==="logout",o=r||d;return n.useEffect(()=>{o&&!a.current&&(a.current=!0,setTimeout(()=>{try{f.clearAll(),e(x()),e(I(!1)),j(),b.reset(),c.trackLogout(h.Event.logoutSuccess),c.resetUserIdentity()}catch(l){console.error("Error during sign out:",l)}finally{r||i("/signin/auth",{replace:!0})}},0))},[o,r]),o?s.jsx(k,{children:s.jsx(y,{fetchState:"In-Progress"})}):s.jsx(g,{to:"../",replace:!0})}const k=w.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{$ as default};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./liveblocks-DAoXO0Rd.js";import{a as l}from"./sentry-DVepN5wZ.js";import{s as u,u as h,j as y,N as I}from"./core-Mtl4BpqO.js";import{Kh as b,eY as w,Ad as j}from"./zeni-epic-state-BvDumFfk.js";import{z as f,B as x,H as S,I as D}from"./index-HBbBR-jr.js";import{n as p}from"./mui-DU909_Vd.js";import"./recharts-CAqdAfyx.js";import"./analytics-CW8roqmC.js";import"./plaid-JDj9Mfy5.js";import"./dnd-BKlGc2nt.js";import"./stripe-DMRn4zHo.js";import"./lottie-BtMRfUgU.js";import"./lexical-jAz9MoVn.js";import"./pdf-CU0VtjKp.js";import"./utils-DFeDbaeQ.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]="853b3dab-8ee7-4346-9918-d39ae04516c8",e._sentryDebugIdIdentifier="sentry-dbid-853b3dab-8ee7-4346-9918-d39ae04516c8")}catch{}})();const W=()=>{const[e]=u(),t=e.get("code")??"",i=e.get("state")??"",c=e.get("profileId")??"",[n,g]=l.useState(!1),a=h(),s=y(m=>b(m)),r=f.getSignedInUser(),d=f.getSignedInUserTenantWithId(i);if(r==null||d==null)return o.jsx(I,{to:"/signin/auth",replace:!0});if(r==null)throw Error("Can't access this page without signing in...");return w(r.userId,r.zeniSessionId,d?.tenantId),l.useEffect(()=>{n||(g(!0),a(j(t,c,i)))},[n,a]),s.fetchState==="Error"?o.jsx(E,{children:o.jsx(_,{children:s.error?.message??""})}):(s.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{W as default};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import{j as n}from"./liveblocks-DAoXO0Rd.js";import{h as ne,g as W,u as M,i as Y,j as w,n as q,N as X,o as Ve,p as k}from"./core-Mtl4BpqO.js";import{eR as U,Pb as Ce,Pc as $e,cl as ee,cm as Ne,fi as Ze,xq as ke,BD as He,xk as Tn,Pd as Fn,Pe as Bn,xn as On,xu as ge,xh as Ln,xe as Rn,NY as le,Pf as Un,F3 as _n,L3 as zn,F5 as Mn,kp as Fe,Pg as Vn,qL as Ge,qz as We,kg as Ye,kj as Be,L4 as Oe,L5 as $n,Ph as Nn,ki as Zn,kF as Hn,k7 as Gn,iG as Wn,iF as Yn,Pi as qn,Pj as ye,EM as Jn,Pk as Kn,Pl as Qn,NR as we,Pm as Le,Pn as Xn,Fg as ea,OB as na,Cx as qe,tc as Je,Po as aa,Fd as ta,Pp as Ke,cM as Ae,Fk as Qe,fj as oa,e_ as Xe,f0 as De,Fi as sa,Cr as ra,Fa as ia,Pq as en,Pr as nn,EO as an,EY as Re,Ps as ca,Oo as la,Fl as da,bt as ua,bF as pa,cx as ma,bG as fa,bs as ha,J_ as ga}from"./zeni-epic-state-BvDumFfk.js";import{k as ae,s as N,z as S,d as O,m as _,B as de,bY as ya,a2 as Ie,J as V,E as J,r as tn,aq as xa,af as Ue,c as L,bZ as Ca,at as Se,b_ as ka,x as ue,b$ as wa,f as Pe,aN as G,c0 as Aa,W as Da,Y as on,ac as Ia,c1 as _e,c2 as Sa,v as ce,c3 as Pa,c4 as ba,c5 as Ea,a9 as va,o as ja}from"./index-HBbBR-jr.js";import{n as z,D as K,S as Q}from"./mui-DU909_Vd.js";import ie from"./NotFoundScreen-PR4sRkln.js";import{S as ze}from"./SetupPagesScreen-D1v0miuC.js";import{F as sn}from"./FeaturePreviewScreen-YRaraIxS.js";import{a as d}from"./sentry-DVepN5wZ.js";import{M as pe}from"./MobileAppDrawer-W2GDVtlY.js";import{A as Ta,D as Fa,V as Ba}from"./DomesticWireDetailScreen-aKSRWnmO.js";import{A as Oa}from"./AddressScreen-CwSrhkNh.js";import{u as rn}from"./useAskAiCfoHostNavButtonProps-RvJbY515.js";import{Z as La}from"./ZeniAccountStatementScreen-BynwsM5c.js";import"./recharts-CAqdAfyx.js";import"./analytics-CW8roqmC.js";import"./plaid-JDj9Mfy5.js";import"./dnd-BKlGc2nt.js";import"./stripe-DMRn4zHo.js";import"./lottie-BtMRfUgU.js";import"./lexical-jAz9MoVn.js";import"./pdf-CU0VtjKp.js";import"./utils-DFeDbaeQ.js";import"./analyticsHelper-o23vdCIF.js";import"./routePaths-Dmy8m7uc.js";import"./BusinessVerificationPageScreen-DzB_yK82.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="e0934890-fdfa-4957-a061-aa4f767737e9",e._sentryDebugIdIdentifier="sentry-dbid-e0934890-fdfa-4957-a061-aa4f767737e9")}catch{}})();const Ra=z.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`,Ua=q(function(e){return{autoTransferRuleView:Ce(e),downloadAccountDetailEndPoint:`${Ie}/account_details`,transferLimit:5e5,depositAccountListView:He(e.depositAccountState,e.depositAccountListState)}},function(e,a){const{navigate:s,handleDrawerToggle:o}=a;return{onBackClick:()=>{s("..")},onClickMenuIcon:()=>{o(!0)},onFetchAutoTransferRules:t=>{e(ke(t))},onCreateRule:()=>{e(Rn())},onUpdateRule:t=>{e(ge(t))},onDeleteClick:t=>{e(Ln(t))},onPauseClick:t=>{e(ge(t,!0,!1))},onResumeClick:t=>{e(ge(t,!1,!0))},onActivityClick:(t,r)=>{e(On(t,r))},onUpdateRuleLocalData:t=>{e(Bn(t))},clearRuleLocalData:()=>{e(Fn())},onEditClick:t=>{s(`./${t}/edit`)},onEditDrawerClose:()=>{s("../../",{relative:"path"})},onReviewClick:()=>{e(Tn())}}})(ya);function Me({isEditDrawerOpen:e}){const a=ne(),s=W(),o=M(),t=ae(),{ruleId:r,tenantEmailDomain:u}=Y(),{useFeatureGate:l}=N(),[p,f]=d.useState(!1),[x,i]=d.useState(!1),c=w(y=>U(y)),m=w(y=>Ce(y)),C=m?.fetchState??"Not-Started",P=w(y=>$e(y)),h=c?.companyId??S.getSignedInUserTenant(u)?.companyId,A=ee(t?.loggedInUserRoleMap)||Ne(t?.loggedInUserRoleMap),{isFeatureEnabled:D}=l(O.isTreasuryEnabled),g=c?.company!=null&&Ze(c.company),I=D&&g,F=S.getSignedInUser(),R=c.tenantId,j={userId:F?.userId??"",sessionId:F?.zeniSessionId??"",tenantId:R??""},E=c.companyName;d.useEffect(()=>{!x&&C==="Not-Started"&&h&&(i(!0),o(ke(!0)))},[x,C,h,o]);const b=y=>{f(y)},T=_(),v=!!s.state?.scrollToAddRule;return m?.fetchState!=="Completed"?n.jsx(de,{fetchState:"In-Progress",style:{backgroundColor:T.colors.grey5}}):n.jsxs(Ra,{children:[n.jsx(pe,{isAppContentDrawerOpen:p,handleDrawerToggle:b}),n.jsx(Ua,{navigate:a,location:s,currentTenant:c,companyName:E,handleDrawerToggle:b,isEditDrawerOpen:e,editingRuleId:r,authParams:j,includeTreasuryOption:I,hasAdminLevelAccess:A,zeniAccountsConfigDetail:P,scrollToAddRule:v})]})}const _a={overlayWidth:new J(100,100,58)},za=({vendorId:e,isDrawerOpen:a,closeDrawerHandler:s})=>{const o=M(),t=_(),r=V();if(S.getSignedInUser()==null)throw Error("Can't access ach account page without signing in...");return n.jsx(K,{onClose:()=>{s(!0),o(le())},anchor:"right",open:a,PaperProps:{style:{width:_a.overlayWidth.valuePercentage(r),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:t.colors.black,opacity:.75,cursor:"pointer"}}},children:n.jsx(Ma,{onClick:u=>u.stopPropagation(),children:n.jsx(Ta,{vendorIdParam:e,accountContext:"express-pay"})})})},Ma=z(Q)`
|
|
10
|
-
display: flex;
|
|
11
|
-
min-height: 100%;
|
|
12
|
-
flex-direction: column;
|
|
13
|
-
`,Va={overlayWidth:new J(100,100,58)},$a=({isDrawerOpen:e,closeDrawerHandler:a})=>{const s=M(),o=_(),t=V();if(S.getSignedInUser()==null)throw Error("Can't access address page without signing in...");return n.jsx(K,{onClose:()=>{a(!0),s(le())},anchor:"right",open:e,PaperProps:{style:{width:Va.overlayWidth.valuePercentage(t),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.75,cursor:"pointer"}}},children:n.jsx(Na,{onClick:r=>r.stopPropagation(),children:n.jsx(Oa,{accountContext:"express-pay",addressTypeParam:"vendor_address"})})})},Na=z(Q)`
|
|
14
|
-
display: flex;
|
|
15
|
-
min-height: 100%;
|
|
16
|
-
flex-direction: column;
|
|
17
|
-
`,Za={overlayWidth:new J(100,100,58)},Ha=({vendorId:e,isDrawerOpen:a,closeDrawerHandler:s})=>{const o=M(),t=_(),r=V();if(S.getSignedInUser()==null)throw Error("Can't access ach account page without signing in...");return n.jsx(K,{onClose:()=>{s(!0),o(le())},anchor:"right",open:a,PaperProps:{style:{width:Za.overlayWidth.valuePercentage(r),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:t.colors.black,opacity:.75,cursor:"pointer"}}},children:n.jsx(Ga,{onClick:u=>u.stopPropagation(),children:n.jsx(Fa,{vendorIdParam:e,accountContext:"express-pay"})})})},Ga=z(Q)`
|
|
18
|
-
display: flex;
|
|
19
|
-
min-height: 100%;
|
|
20
|
-
flex-direction: column;
|
|
21
|
-
`,Wa=z.div`
|
|
22
|
-
display: flex;
|
|
23
|
-
height: 100vh;
|
|
24
|
-
width: 100%;
|
|
25
|
-
flex: 1 1 auto;
|
|
26
|
-
flex-direction: column;
|
|
27
|
-
align-items: center;
|
|
28
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
29
|
-
`,Ya=q(function(e,a){const s=U(e),o=S.getSignedInUser(),t=s.tenantId,r={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:t??""},u=a.expressPayDetails,l=e.entityAutoCompleteState.autoCompleteText.common,p=zn(e,"common");return{expressPayDetails:u,fileProps:{authParams:r,filesEndPoint:`${Se.fileMicroServiceBaseUrl}`},vendorSearchAutoCompleteData:{autoCompleteText:l,entityAutoCompleteView:p},analytics:a.analytics}},function(e,a){const{navigate:s}=a;return{onSaveVendor:o=>{e(Yn(o,void 0,void 0,!0))},saveVendorDetailLocalData:(o,t)=>{e(Be({vendorId:t,localData:o}))},saveExpressPayLocalData:o=>{e(Wn({localData:o}))},onVendorSelected:o=>{o!=null&&e(Gn(o,!1))},updateSelectedVendorForCreate:o=>{e(Hn(o))},initializeVendorAddress:()=>{e(Zn())},resetVendorSaveStatus:o=>{e(Nn({vendorId:o}))},vendorSearchAutoCompleteActions:{onAutoCompleteInputChange:(o,t)=>{o.trim().length>=2?e($n({searchString:o,entityType:t,searchOrigin:"common"})):o.trim().length===0&&e(Oe("common"))},onCancelAutoComplete:()=>{e(Oe("common"))}},chooseNewVendor:o=>{e(Be({localData:{vendorName:o}}))},onClickAddAccount:o=>{o.method.toLowerCase().indexOf("ach")!==-1?s("./add-ach",{relative:"path"}):o.method.toLowerCase().indexOf("wire")!==-1&&o.method.toLowerCase().indexOf("domestic")!==-1&&s("./add-wire",{relative:"path"})},updateFilesEntity:o=>{e(Ye({files:o}))},onDeleteFile:o=>{e(We(o))},onEditFileName:(o,t)=>{e(Ge(o,t.split(".")[0]))},onBackClick:o=>{o!=null&&e(Fe(o)),e(Fe()),e(Vn()),e(le()),s("../",{relative:"path"})},onSchedulePayment:()=>{e(Mn())}}})(Ca);function se({isAddACHDrawerOpen:e,isAddWireDrawerOpen:a,isAddAddressDrawerOpen:s}){const o=ne(),t=W(),r=M(),[u,l]=d.useState(!1),{tenantEmailDomain:p}=Y(),f=ae(),x=w(y=>y.expressPayState.fetchState),i=w(y=>U(y)),c=w(y=>Un(y)),m=c.expressPayLocalData?.vendorId,C=i.companyId??S.getSignedInUserTenant(p)?.companyId,[P,h]=d.useState(!1),[A,D]=d.useState(!1),[g,I]=d.useState(!1),F=tn(t.state?.pathnameStackToGoBack),{poppedPathname:R}=F,j=R?.split("/"),E=j?.[j.length-1];d.useEffect(()=>{e===!0?h(!0):(h(!1),document.body.style.overflow="auto")},[e]),d.useEffect(()=>{a===!0?D(!0):(D(!1),document.body.style.overflow="auto")},[a]),d.useEffect(()=>{s===!0?I(!0):(I(!1),document.body.style.overflow="auto")},[s]),d.useEffect(()=>{x==="Not-Started"&&r(_n(!0,!0))},[x,r]);const b=xa(c.vendorViewDetails.bankAccountCreationState?.fetchState);if(d.useEffect(()=>{b==="In-Progress"&&c.vendorViewDetails.bankAccountCreationState?.fetchState==="Completed"&&v()},[b,c.vendorViewDetails.bankAccountCreationState?.fetchState]),S.getSignedInUser()==null)throw Error("Can't access express pay page without signing in...");const T=y=>{l(y)},v=()=>{h(!1),D(!1),o("../",{relative:"path"})};return n.jsxs(Wa,{children:[Ue(t)?n.jsx(pe,{isAppContentDrawerOpen:u,handleDrawerToggle:T}):null,P===!0?n.jsx(za,{vendorId:m,closeDrawerHandler:v,isDrawerOpen:P}):null,A===!0?n.jsx(Ha,{vendorId:m,closeDrawerHandler:v,isDrawerOpen:A}):null,g===!0?n.jsx($a,{closeDrawerHandler:v,isDrawerOpen:g}):null,n.jsx(Ba,{vendorId:m,isExpressPayPage:!0}),n.jsx(Ya,{navigate:o,location:t,companyId:C,accountId:E,analytics:L,currentTenant:i,vendorId:m,roleMap:f?.loggedInUserRoleMap,isSettings:Ue(t),expressPayDetails:c,onClickMenuIcon:()=>{T(!0)}})]})}const qa={overlayWidth:new J(100,100,58)},Ja=({authParams:e,downloadAccountDetailEndPoint:a,isAccountInfoDrawerOpen:s,zeniBankAccountDetail:o,closeDrawerHandler:t})=>{const r=_(),u=V(),l=w(i=>$e(i)),p=w(i=>U(i));if(S.getSignedInUser()==null)throw Error("Can't access Account detail page without signing in...");const f=()=>{t(!0)},x={depositAccount:o,onDismissClick:f,zeniAccountsConfigDetail:l,authParams:e,downloadAccountDetailEndPoint:a,currentTenant:p};return n.jsx(K,{anchor:"right",open:s,PaperProps:{style:{width:qa.overlayWidth.valuePercentage(u),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:r.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>f(),children:n.jsx(Ka,{onClick:i=>i.stopPropagation(),children:n.jsx(ka,{...x})})})},Ka=z(Q)`
|
|
30
|
-
display: flex;
|
|
31
|
-
min-height: 100%;
|
|
32
|
-
flex-direction: column;
|
|
33
|
-
`,Qa={overlayWidth:new J(100,100,58)},cn=({isCheckDepositDrawerOpen:e,closeDrawerHandler:a})=>{const s=_(),o=V(),t=M(),r=w(i=>U(i)),u=S.getSignedInUser(),l=r.tenantId,p={userId:u?.userId??"",sessionId:u?.zeniSessionId??"",tenantId:l??""};if(u==null)throw Error("Can't access check deposit page without signing in...");const f=w(i=>qn(i)),x={analytics:L,checkDeposit:f,filesEndPoint:`${Se.fileMicroServiceBaseUrl}`,authParams:p,onSaveChangesToLocalStore:i=>{t(Kn(i))},updateFilesEntity:i=>{t(Ye({files:i}))},onAnotherTransferClick:()=>{t(ye())},onDeleteFile:i=>{t(We(i))},onEditFileName:(i,c)=>{t(Ge(i,c.split(".")[0]))},onCheckDpositClick:()=>{t(Jn())},onDismissClick:()=>{a(!0),t(ye())}};return n.jsxs(n.Fragment,{children:[n.jsx(ue,{analytics:L,onLoad:i=>(c=>c.trackPageLoaded(Pe.Event.accountsDepositCheckFormViewed))(i)}),n.jsx(K,{anchor:"right",open:e,PaperProps:{style:{width:Qa.overlayWidth.valuePercentage(o),boxShadow:"none",zIndex:8}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.75,cursor:"pointer"}}},onClose:(i,c)=>(c==="backdropClick"||c==="escapeKeyDown")&&(a(!0),void t(ye())),children:n.jsx(Xa,{onClick:i=>i.stopPropagation(),children:n.jsx(wa,{...x})})})]})},Xa=z(Q)`
|
|
34
|
-
display: flex;
|
|
35
|
-
min-height: 100%;
|
|
36
|
-
flex-direction: column;
|
|
37
|
-
`,et={overlayWidth:new J(100,100,58)},nt=q(function(e,a){const s=a.currentTenant?.companyId;return{plaidConnectionDetails:na(e,s,"zeni_accounts","external_account").plaidConnectionDetails,depositAccountListView:He(e.depositAccountState,e.depositAccountListState)}},function(e,a){return{onReviewClick:()=>e(ta()),clearReviewTransferDetail:()=>e(aa()),onFetchLinkTokenClick:s=>{e(Je("external_account",s))},onEstablishConnectionClick:s=>{e(qe(s,a.currentTenant?.companyId,"external_account",void 0,"link_external_account"))}}})(Aa),ln=({isTransferDrawerOpen:e,authParams:a,downloadAccountDetailEndPoint:s,closeDrawerHandler:o,zeniAccountsConfig:t})=>{const r=w(g=>Qn(g)),u=w(g=>U(g)),l=_(),p=V(),f=M(),{accountId:x}=Y(),[i,c]=d.useState("achTransfer"),[m,C]=d.useState(!1);if(S.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const{useDynamicConfig:P}=N(),{configValue:h}=P(G.zeniAccountsConfig),A=we(h),D=()=>{o(!0),f(Le())};return d.useEffect(()=>{r.reviewTransferDetail.fetchState==="Completed"&&C(!0)},[C,r.reviewTransferDetail.fetchState]),n.jsxs(n.Fragment,{children:[n.jsx(ue,{analytics:L,onLoad:g=>(I=>I.trackPageLoaded(Pe.Event.zeniAccountsTransferFormViewed))(g)}),n.jsx(K,{onClose:()=>{(i==="achTransfer"&&m===!1||i==="achTransfer"&&m&&r.fetchState==="Completed")&&D()},anchor:"right",open:e,PaperProps:{style:{width:et.overlayWidth.valuePercentage(p),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:l.colors.black,opacity:.75,cursor:"pointer"}}},children:n.jsx(at,{onClick:g=>g.stopPropagation(),children:n.jsx(nt,{analytics:L,transferDetails:r,authParams:a,downloadAccountDetailEndPoint:s,onTransferClick:()=>{L.trackTransferBetweenAccountsFormClicked("Transfer",r.reviewTransferDetail.reviewTransferMoney.isShowDailyAchLimitWarning?"Review Split Transfer":"Review Transfer",r.transferDetailLocalData.transferFrom?.label,r.transferDetailLocalData.transferTo?.label,r.transferDetailLocalData.amount.amount,r.reviewTransferDetail.reviewTransferMoney.isShowDailyAchLimitWarning,r.reviewTransferDetail.reviewTransferMoney.transferSchedules.length,r.transferDetailLocalData.transferFrom?.accType==="paymentAccount"&&r.transferDetailLocalData.transferTo?.accType==="depositAccount"&&t.zeniAccountsConfigDetail.depositProductConfig.depositProducts?.[0].range?.[1]!=null&&r.transferDetailLocalData.amount.amount>t.zeniAccountsConfigDetail.depositProductConfig.depositProducts[0].range[1]),f(ea(x))},onDismissClick:D,onSaveChangesToLocalStore:g=>{f(Xn(g))},onAnotherTransferClick:()=>{C(!1),f(Le())},currentTenant:u,zeniAccountsConfigDetail:t,currentDrawerContent:i,setCurrentDrawerContent:c,showReviewContent:m,setShowReviewContent:C,onBackClick:()=>{},maxInsuredAmount:A.maxInsuredAmount})})})]})},at=z(Q)`
|
|
38
|
-
display: flex;
|
|
39
|
-
min-height: 100%;
|
|
40
|
-
flex-direction: column;
|
|
41
|
-
`,tt=z.div`
|
|
42
|
-
display: flex;
|
|
43
|
-
min-height: 100%;
|
|
44
|
-
width: 100%;
|
|
45
|
-
flex: 1 1 auto;
|
|
46
|
-
flex-direction: column;
|
|
47
|
-
align-items: center;
|
|
48
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
49
|
-
`,ot=q(function(e,a){return{zeniAccountListView:Ke(e),isExpressPayEnabled:a.isExpressPayEnabled,analytics:a.analytics}},function(e,a){const{navigate:s,currentTenant:o,location:t,companyId:r,handleDrawerToggle:u,analytics:l,isBillPayEnabled:p,isDebitCardFeatureEnabled:f}=a,{tenantEmailDomain:x}=o;return{onZeniAccountClick:(i,c)=>{l.trackAccountsListPageClicked("Accounts Row Item Click",c,"active");const m=st(x,i),C=ce(t.state?.pathnameStackToGoBack,t.pathname);s(m,{state:{pathnameStackToGoBack:C}})},onSettingsClick:()=>{l.trackAccountsListPageClicked("Settings Icon"),s("setup")},onReloadTransactions:()=>{e(Qe(!1))},handleMoveMoneyOptionSelection:(i,c)=>{let m="page-not-found";i==="sendMoney"&&(m=mn(x)),i==="payBill"?m=dn(o,p,f):i==="transfer"?(m=un(x),c!=null&&e(en(c))):i==="checkDeposit"&&(m=pn(x));const C=ce(t.state?.pathnameStackToGoBack,t.pathname);s(m,{state:{pathnameStackToGoBack:C}})},unlinkPaymentAccount:(i,c)=>{l.trackAccountsListPageClicked("Unlink Account",c),e(ia(i))},onFetchLinkTokenClick:(i,c)=>{e(Je("external_account",i,c))},onUpdatePaymentAccountStatus:(i,c,m)=>{e(ra(i,c,"zeni_accounts","external_account",m))},onEstablishConnectionClick:i=>{e(qe(i,r,"external_account",void 0,"link_external_account"))},onCreateCheckingClick:i=>{e(sa(i))},onClickMenuIcon:()=>{u(!0)},onTreasuryGetStartedClick:()=>{s("../../treasury/promo")},onAutoTransferClick:i=>{i?s("./auto-transfer",{state:{...t.state,scrollToAddRule:!0}}):s("./auto-transfer")}}})(Sa);function xe({isTransferDrawerOpen:e,isCheckDepositDrawerOpen:a}){const s=W(),o=ne(),t=M(),r=V(),{tenantEmailDomain:u}=Y(),{useDynamicConfig:l,useFeatureGate:p}=N(),f=_(),{configValue:x}=l(G.zeniAccountsConfig),{isFeatureEnabled:i}=p(O.isTreasuryEnabled),{isFeatureEnabled:c}=p(O.isDebitCardFeatureEnabled),{isFeatureEnabled:m}=p(O.isAutoTransferRuleEnabled),{isFeatureEnabled:C}=p(O.isCheckingCommentingEnabled),P=we(x),h=w(B=>U(B)),A=h.companyId??S.getSignedInUserTenant(u)?.companyId,{configValue:D}=l(G.expressPayConfig),g=D.is_enable_all_tenants===!0||D.tenant_ids!=null&&D.tenant_ids.includes(h.tenantId),[I,F]=d.useState(!1),[R,j]=d.useState(!1),[E,b]=d.useState(!1),[T,v]=d.useState(!1),y=w(B=>Ke(B)),$=y.fetchState,te=w(B=>Ce(B)),oe=te?.fetchState??"Not-Started",me=!!h.companyZeniAccountInfo?.info?.isZeniAccountEnabled,Z=ae(),H=!!h.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted,fn=!!h.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,hn=ee(Z?.loggedInUserRoleMap),gn=Ae(Z?.loggedInUserRoleMap),yn=!!h.companyBillPayInfo?.info?.isBillPayEnabled,be=S.getSignedInUser(),xn={userId:be?.userId??"",sessionId:be?.zeniSessionId??"",tenantId:h.tenantId??""},Cn=`${Ie}/account_details`,{areTenantIdsInSync:Ee}=Da();d.useEffect(()=>{!I&&Ee&&(F(!0),t(Qe(!1)))},[I,t,$,Ee]),d.useEffect(()=>{!R&&oe==="Not-Started"&&A&&(j(!0),t(ke(!0)))},[R,oe,A,t]),d.useEffect(()=>{e!=null&&e===!0?b(!0):(b(!1),document.body.style.overflow="auto")},[e]),d.useEffect(()=>{v(a!=null&&a===!0)},[a]);const ve=()=>{b(!1),o("..")},[kn,wn]=d.useState(!1),je=B=>{wn(B)},{isAiCfoAccessEnabled:An,onAskAiCfoClick:Dn}=rn({mobileExploreReferrer:"Checking Accounts"});on({isDataReady:$==="Completed"});const In=h.company!=null&&Ze(h.company),fe=(i&&In)===!0&&!fn,[Sn,Pn]=d.useState(!1),he=w(B=>B.treasurySetupViewState.treasuryFundsDetails),bn=he.fundsDetails,En=Ia(bn);d.useEffect(()=>{fe!==!0||Sn||he?.fetchStatus.fetchState!=="Not-Started"||(Pn(!0),t(oa()))},[he.fetchStatus,t]);const vn=Xe(h),jn=De(c,h);return vn===!0&&jn!==!0?n.jsx(sn,{}):me?n.jsxs(n.Fragment,{children:[y.fetchState==="Completed"&&E===!1&&T===!1?n.jsx(ue,{analytics:L,onLoad:B=>(Te=>{Te.trackAccountsListPageViewed(y.depositAccountsSelectorView.depositAccounts.length,y.externalAccountsSelectorView.paymentAccounts.length,_e(y.summary?.totalBalance.available.amount??0),_e(y.summary?.totalInterest.available.amount??0),y.zeniAccountsConfig.zeniAccountsConfigDetail.annualPercentageYield),fe&&Te.trackTreasuryPromoView("Checking Promo Banner")})(B)}):null,E===!0?n.jsx(ln,{closeDrawerHandler:ve,isTransferDrawerOpen:E,zeniAccountsConfig:y.zeniAccountsConfig,authParams:xn,downloadAccountDetailEndPoint:Cn}):null,T===!0?n.jsx(cn,{closeDrawerHandler:ve,isCheckDepositDrawerOpen:T}):null,n.jsxs(tt,{windowSize:r,children:[n.jsx(pe,{isAppContentDrawerOpen:kn,handleDrawerToggle:je}),n.jsx(ot,{zeniBankListView:y,navigate:o,currentTenant:h,location:s,companyId:A,analytics:L,maxInsuredAmount:P.maxInsuredAmount,isExpressPayEnabled:g,isBillPayEnabled:yn,isCheckingCommentingEnabled:C,isDebitCardFeatureEnabled:c,isAutoTransferRuleEnabled:m,handleDrawerToggle:je,showTreasuryPromo:fe,treasuryYieldPercentage:En,treasuryInsuredAmount:5e5,isAiCfoAccessEnabled:An,onAskAiCfoClick:Dn})]})]}):H&&hn?n.jsx(X,{to:"../setup"}):h.companyZeniAccountInfo?.info&&!H&&gn?n.jsx(X,{to:"../promo",state:s.state}):n.jsx(de,{fetchState:"In-Progress",style:{backgroundColor:f.colors.grey5}})}const dn=(e,a,s)=>{const o=De(s,e),{tenantEmailDomain:t}=e;return o===!0||a===!1?`/${t}/bills`:`/${t}/bill/new`},st=(e,a)=>`/${e}/checking/${a}`,un=(e,a)=>a==null?`/${e}/checking/transfer`:`/${e}/checking/${a}/transfer`,pn=(e,a)=>a==null?`/${e}/checking/check-deposit`:`/${e}/checking/${a}/check-deposit`,mn=e=>`/${e}/checking/express-pay`,rt=z.div`
|
|
50
|
-
display: flex;
|
|
51
|
-
width: 100%;
|
|
52
|
-
flex: 1 1 auto;
|
|
53
|
-
flex-direction: column;
|
|
54
|
-
align-items: center;
|
|
55
|
-
min-height: 100vh;
|
|
56
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
57
|
-
`,it=q(function(e,a){const{currentTenant:s}=a,o=nn(e,a.accountId),t=S.getSignedInUser(),r=e.tenantState.currentTenantId,u={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:r??""},l=o.accountDetail?.id??"";return{currentTenantCompanyName:s.companyName??"",authParams:u,downloadEndPoint:`${Se.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${l}`,zeniAccountDetail:o,isExpressPayEnabled:a.isExpressPayEnabled,fetchState:o.fetchState}},function(e,a){const{navigate:s,currentTenant:o,location:t,accountId:r}=a,{tenantEmailDomain:u}=o;return{handleMoveMoneyOptionSelection:(l,p)=>{let f="page-not-found";l==="sendMoney"?f=mn(u):l==="payBill"?f=dn(o,a.isBillPayEnabled,a.isDebitCardFeatureEnabled):l==="transfer"?(f=un(u,r),p!=null&&e(en(p))):l==="checkDeposit"?(f=pn(u,r),p!=null&&e(ca(p))):l==="accountStatement"&&(f=lt(u,r));const x=ce(t.state?.pathnameStackToGoBack,t.pathname);s(f,{state:{pathnameStackToGoBack:x}})},onAccountDetailClick:()=>{const l=ct(u,r),p=ce(t.state?.pathnameStackToGoBack,t.pathname);s(l,{state:{pathnameStackToGoBack:p}})},onEditNameClick:l=>{e(Re(r,"editName",l))},onReloadZeniAccountDetailPage:()=>{e(an(r,!1))},onCloseAccountClick:()=>{e(Re(r,"closeAccount",""))},onBackClick:()=>{s("../",{relative:"path"})}}})(Pa);function re({isTransferDrawerOpen:e,isCheckDepositDrawerOpen:a,isAccountInfoDrawerOpen:s}){const o=W(),t=ne(),r=M(),u=V(),{tenantEmailDomain:l,accountId:p}=Y(),{useDynamicConfig:f}=N(),{useFeatureGate:x}=N(),{isFeatureEnabled:i}=x(O.isDebitCardFeatureEnabled),{isFeatureEnabled:c}=x(O.isCheckingCommentingEnabled),m=w(H=>U(H)),{configValue:C}=f(G.expressPayConfig),P=C.is_enable_all_tenants===!0||C.tenant_ids!=null&&C.tenant_ids.includes(m.tenantId),h=!!m.companyBillPayInfo?.info?.isBillPayEnabled,A=S.getSignedInUser(),D=m.companyId??S.getSignedInUserTenant(l)?.companyId,g={userId:A?.userId??"",sessionId:A?.zeniSessionId??"",tenantId:m.tenantId??""},I=`${Ie}/account_details`,[F,R]=d.useState(!1),[j,E]=d.useState(!1),[b,T]=d.useState(!1),[v,y]=d.useState(!1),$=w(H=>nn(H,p??"")),te=$.fetchState,{isAiCfoAccessEnabled:oe,onAskAiCfoClick:me}=rn({mobileExploreReferrer:"Checking Account Detail"});on({isDataReady:te==="Completed"}),d.useEffect(()=>{F||(r(an(p??"",!1)),R(!0))},[F,r,te]),d.useEffect(()=>{y(s!=null&&s===!0)},[s]),d.useEffect(()=>{e!=null&&e===!0?E(!0):(E(!1),document.body.style.overflow="auto")},[e]),d.useEffect(()=>{T(a!=null&&a===!0)},[a]);const Z=()=>{y(!1),t("..")};return n.jsxs(n.Fragment,{children:[v===!0&&$.accountDetail!=null?n.jsx(Ja,{authParams:g,downloadAccountDetailEndPoint:I,closeDrawerHandler:Z,isAccountInfoDrawerOpen:v,zeniBankAccountDetail:$.accountDetail}):null,j===!0?n.jsx(ln,{closeDrawerHandler:Z,isTransferDrawerOpen:j,zeniAccountsConfig:$.zeniAccountsConfig,authParams:g,downloadAccountDetailEndPoint:I}):null,b===!0?n.jsx(cn,{closeDrawerHandler:Z,isCheckDepositDrawerOpen:b}):null,n.jsx(rt,{windowSize:u,children:n.jsx(it,{navigate:t,currentTenant:m,location:o,companyId:D,isDebitCardFeatureEnabled:i,accountId:p??"",isBillPayEnabled:h,isCheckingCommentingEnabled:c,isExpressPayEnabled:P,isAiCfoAccessEnabled:oe,onAskAiCfoClick:me})})]})}const ct=(e,a)=>`/${e}/checking/${a}/account-info`,lt=(e,a)=>`/${e}/checking/${a}/statements`,dt=q(function(e,a){const{companyId:s}=a;return{zeniAccountSetupView:la(e,s),meetingUrl:"https://meetings.hubspot.com/niharn/demo-accounts?embed=true"}},function(e,a){const{navigate:s,companyId:o}=a;return{onSetupButtonClick:()=>{L.trackAccountsPromoPageClicked("Setup Accounts"),e(da(o))},onBackClick:()=>{s("../..",{relative:"path"})},onSetupZeniAccountSuccess:()=>{s("../setup",{relative:"path"})}}})(Ea),ut=()=>{const e=ne(),a=W(),{tenantEmailDomain:s}=Y(),{useDynamicConfig:o}=N(),t=_(),[r,u]=d.useState(!1),[l,p]=d.useState(!1),f=w(g=>U(g)),{configValue:x}=o(G.zeniAccountsConfig),i=we(x);d.useEffect(()=>{l===!1&&a.state?.message==="activation"&&p(!0)},[a.state]);const c=S.getSignedInUserTenant(s)?.companyId??f.companyId,m=S.getSignedInUser(),C=!!f.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted,P=g=>{u(g)};if(m==null)throw Error("Can't access Zeni account promo page without signing in...");const h=ae(),A=ee(h?.loggedInUserRoleMap),D=Ae(h?.loggedInUserRoleMap);if(C&&A)return n.jsx(X,{to:"../../checking/setup"});if(f.company?.companyZeniAccountInfo&&(!C&&A||D)){if(a.state?.message==="activation"){const g=tn(a.state?.pathnameStackToGoBack);e(a.pathname,{state:{...a.state,message:void 0,pathnameStackToGoBack:g.newStack}})}return n.jsxs(n.Fragment,{children:[n.jsx(ba,{showConfetti:l}),n.jsx(ue,{analytics:L,onLoad:g=>(I=>I.trackPageLoaded(Pe.Event.accountsPromoPageViewed))(g)}),n.jsx(pe,{isAppContentDrawerOpen:r,handleDrawerToggle:P}),n.jsx(dt,{analytics:L,navigate:e,companyId:c,onClickMenuIcon:()=>{P(!0)},maxAnnualPercentageYield:i.maxAnnualPercentageYield,maxInsuredAmount:i.maxInsuredAmount,exampleBankBalance:3e6})]})}return n.jsx(de,{fetchState:"In-Progress",style:{backgroundColor:t.colors.grey5}})};function zt(){const e=W(),a=w(v=>U(v)),s=_(),{useFeatureGate:o,useDynamicConfig:t}=N(),r=ae(),u=ee(r?.loggedInUserRoleMap),l=Ae(r?.loggedInUserRoleMap),p=!!a.company?.companyZeniAccountInfo.isZeniAccountEnabled,f=!!a.company?.companyZeniAccountInfo.isZeniAccountTOSAccepted,{isFeatureEnabled:x}=o(O.isChargeCardFeatureEnabled),{isFeatureEnabled:i}=o(O.isDebitCardFeatureEnabled),c=Xe(a),m=De(i,a),C=a?.userRole!=null&&ua(a?.userRole),P=(a?.company==null||a.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!C)&&pa(r?.loggedInUserRoleMap),h=ma(r?.loggedInUserRoleMap),A=(a?.company==null||a.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!C)&&fa(r?.loggedInUserRoleMap),{isFeatureEnabled:D}=o(O.isDepositAccountsFeatureEnabled),g=D&&!C,{configValue:I}=t(G.expressPayConfig),F=I.is_enable_all_tenants===!0||I.tenant_ids!=null&&I.tenant_ids.includes(a.tenantId),{isFeatureEnabled:R}=o(O.isAutoTransferRuleEnabled),j=va(a,x,i)&&!C&&ha(r?.loggedInUserRoleMap),E=ga(r?.loggedInUserRoleMap),b=g&&ee(r?.loggedInUserRoleMap),T=b||Ne(r?.loggedInUserRoleMap);return n.jsxs(Ve,{children:[n.jsx(k,{path:"setup",element:n.jsx(ze,{isBillPayAdminLevelAccess:P,isUserHasOnlyBillPayAccess:h,isReimbursementAdminLevelAccess:A,isZeniAccountAdminLevelAccess:b,isChargeCardAdminLevelAccess:j,isUserHasOnlyCardAccess:E,productType:"zeni_accounts",type:"setup"})}),n.jsx(k,{path:"verification",element:n.jsx(ze,{isBillPayAdminLevelAccess:P,isUserHasOnlyBillPayAccess:h,isReimbursementAdminLevelAccess:A,isZeniAccountAdminLevelAccess:b,isChargeCardAdminLevelAccess:j,isUserHasOnlyCardAccess:E,productType:"zeni_accounts",type:"verification"})}),R?n.jsxs(n.Fragment,{children:[n.jsx(k,{path:"auto-transfer",element:n.jsx(Me,{})}),T?n.jsx(k,{path:"auto-transfer/:ruleId/edit",element:n.jsx(Me,{isEditDrawerOpen:!0})}):null]}):n.jsx(k,{path:"auto-transfer",element:n.jsx(ie,{})}),F&&u?n.jsxs(n.Fragment,{children:[n.jsx(k,{path:"express-pay",element:n.jsx(se,{})}),n.jsx(k,{path:"express-pay/add-ach",element:n.jsx(se,{isAddACHDrawerOpen:!0})}),n.jsx(k,{path:"express-pay/add-wire/add-address",element:n.jsx(se,{isAddAddressDrawerOpen:!0})}),n.jsx(k,{path:"express-pay/add-wire",element:n.jsx(se,{isAddWireDrawerOpen:!0})})]}):n.jsx(k,{path:"express-pay",element:n.jsx(ie,{})}),n.jsx(k,{path:"promo",element:n.jsx(ut,{})}),c&&!m?n.jsx(k,{path:"/*",element:n.jsx(sn,{})}):p?n.jsxs(n.Fragment,{children:[n.jsx(k,{path:"/",element:n.jsx(xe,{})}),n.jsx(k,{path:"transfer",element:n.jsx(xe,{isTransferDrawerOpen:!0})}),n.jsx(k,{path:"check-deposit",element:n.jsx(xe,{isCheckDepositDrawerOpen:!0})}),n.jsx(k,{path:":accountId/*",element:n.jsx(pt,{})}),n.jsx(k,{path:"*",element:n.jsx(ie,{})})]}):f&&u?n.jsx(k,{path:"*",element:n.jsx(X,{to:"../setup"})}):a.company?.companyZeniAccountInfo&&l?n.jsx(k,{path:"*",element:n.jsx(X,{to:"../promo",state:e.state})}):n.jsx(k,{path:"*",element:n.jsx(de,{fetchState:"In-Progress",style:{backgroundColor:s.colors.grey5,boxShadow:`0px 2px ${ja.sp1} ${s.colors.dropShadowNormal}`}})})]})}function pt(){return n.jsxs(Ve,{children:[n.jsx(k,{path:"/",element:n.jsx(re,{})}),n.jsx(k,{path:"account-info",element:n.jsx(re,{isAccountInfoDrawerOpen:!0})}),n.jsx(k,{path:"transfer",element:n.jsx(re,{isTransferDrawerOpen:!0})}),n.jsx(k,{path:"check-deposit",element:n.jsx(re,{isCheckDepositDrawerOpen:!0})}),n.jsx(k,{path:"statements",element:n.jsx(La,{})}),n.jsx(k,{path:"*",element:n.jsx(ie,{})})]})}export{zt as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-DAoXO0Rd.js";import{a as u}from"./sentry-DVepN5wZ.js";import{h as x,u as B,g as P,i as $,j as p}from"./core-Mtl4BpqO.js";import{Je as s,Jd as j,Pt as v,eR as C,Pu as T}from"./zeni-epic-state-BvDumFfk.js";import{J as z,at as g,m as D,z as E,B as L,c6 as N,r as U}from"./index-HBbBR-jr.js";import{n as _}from"./mui-DU909_Vd.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]="1f627d18-2f82-44a2-b661-b31949ce5bb7",e._sentryDebugIdIdentifier="sentry-dbid-1f627d18-2f82-44a2-b661-b31949ce5bb7")}catch{}})();const 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
|
-
`;function q(){const e=x(),n=B(),d=z(),l=P();let{accountId:a}=$(),f=`${g.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${a}`;a==null&&l.pathname.includes(`${s}/statements`)&&(a=s,f=`${g.bankingMicroServiceBaseUrl}/1.0/${s}`);const[m,b]=u.useState(!1),h=D();u.useEffect(()=>{m||(b(!0),n(j(a??"",!1)))},[m,n]);const o=p(t=>v(t,a??"")),y=()=>{const t=U(l.state?.pathnameStackToGoBack),S=t.poppedPathname??"..";e(S,{state:{pathnameStackToGoBack:t.newStack}})},r=E.getSignedInUser(),c=p(t=>C(t)),I={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:c.tenantId??""},w=T(a??"")===!0?s:o.zeniAccountDetail?.accountLast4??"",k=c.company?.companyInfo.companyLegalName??c.companyName;if(r==null)throw Error("Can't access address page without signing in...");return o.fetchState!=="Completed"?i.jsx(L,{fetchState:"In-Progress",style:{backgroundColor:h.colors.grey5}}):i.jsx(J,{windowSize:d,children:i.jsx(N,{currentTenantCompanyName:k,statementListView:o,accountLast4:w,onBackClick:y,authParams:I,downloadEndPoint:f})})}export{q as Z};
|