@zeniai/web-app-ui 5.0.10-dev → 5.0.11-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-D4nqvs49.js +1 -0
- package/dist/assets/AddressScreen-BMB6Kbyt.js +9 -0
- package/dist/assets/AiCfoScreen-Vk7WMEZ-.js +11 -0
- package/dist/assets/{BillPayApprovalRoutes-BLBcPx1B.js → BillPayApprovalRoutes-DfIF_lRe.js} +1 -1
- package/dist/assets/{BillPayRoutes-7EIRA000.js → BillPayRoutes-ABgydC8p.js} +6 -6
- package/dist/assets/{BusinessVerificationPageScreen-BCq9-s11.js → BusinessVerificationPageScreen-Byg1Uhrv.js} +2 -2
- package/dist/assets/{ChargeCardRoutes-CqL5qnQo.js → ChargeCardRoutes-DOv8Kupg.js} +9 -9
- package/dist/assets/CompanyPassportScreen-DNNUDJSS.js +1 -0
- package/dist/assets/{ConnectionAuthScreen-BMnYn9YI.js → ConnectionAuthScreen-C46eBigr.js} +1 -1
- package/dist/assets/CustomerOnboardingAuthScreen-EaU7h7Wf.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-QRW1FZfI.js → CustomerOnboardingRoutes-HmFZMxcH.js} +4 -4
- package/dist/assets/{DashboardRoutes-TZIxTJeb.js → DashboardRoutes-DCrMQvqt.js} +3 -3
- package/dist/assets/{DefaultTenantHome-Dhx02wWv.js → DefaultTenantHome-C6axtGsS.js} +1 -1
- package/dist/assets/DomesticWireDetailScreen-CDLset95.js +18 -0
- package/dist/assets/DrawerScreen-CjKjzVJ3.js +1 -0
- package/dist/assets/{EntityDetailRoutes-Dql5Od85.js → EntityDetailRoutes-NLN5T6x2.js} +1 -1
- package/dist/assets/{ExpenseAutomationRoutes-CYo6nFC7.js → ExpenseAutomationRoutes-f8iGFMw1.js} +3 -3
- package/dist/assets/FeaturePreviewScreen-DCLqtwXF.js +1 -0
- package/dist/assets/{MagicLinkRoutes-BGM-sZzT.js → MagicLinkRoutes-BWOlQli3.js} +8 -8
- package/dist/assets/MagicLinkSignInScreen-8L2FgZqU.js +12 -0
- package/dist/assets/{MobileAppDrawer-jslKljAh.js → MobileAppDrawer-OybL2Okz.js} +1 -1
- package/dist/assets/NotFoundScreen-D8bJeRt0.js +1 -0
- package/dist/assets/{NotificationRoutes-DOHToAa0.js → NotificationRoutes-BpYt3phX.js} +1 -1
- package/dist/assets/{PandLWithForecastRoutes-DT93-O0O.js → PandLWithForecastRoutes-CHRiJgFR.js} +1 -1
- package/dist/assets/{PeopleRoutes-BdMtXhM0.js → PeopleRoutes-D9CVh0Ja.js} +9 -9
- package/dist/assets/PerformanceRoutes-lNCEdrfz.js +1 -0
- package/dist/assets/{Preview-Ce-yKggj.js → Preview-CKmcpteJ.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-DaAy9F4R.js → QBOConnectionScreen-DZ1k9UnT.js} +1 -1
- package/dist/assets/ReferralListScreen-ChvCApY5.js +5 -0
- package/dist/assets/ReimbursementApprovalRoutes-DFueCzb6.js +1 -0
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-CwI2DR20.js → ReimbursementApprovalRuleDetailScreen-CGR7iPyc.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-By4bhdmE.js → ReimbursementRoutes-fdHxZhUC.js} +6 -6
- package/dist/assets/{ReportsRoutes-CUGvAqPf.js → ReportsRoutes-BfRe6iWC.js} +1 -1
- package/dist/assets/RewardsRoutes-CrU22RDz.js +1 -0
- package/dist/assets/{ScreenRoutes-B6e-0n2O.js → ScreenRoutes-33kyTNa0.js} +2 -2
- package/dist/assets/{SettingsRoutes-AaKbs5Fo.js → SettingsRoutes-BubqdVb7.js} +6 -6
- package/dist/assets/{SetupPagesScreen-BCxvmwj2.js → SetupPagesScreen-CIFtnWYk.js} +5 -5
- package/dist/assets/SignInScreen-DunAziCS.js +1 -0
- package/dist/assets/SignOutScreen-DFscZ-6B.js +9 -0
- package/dist/assets/{TaskListScreen-BCHbQwTl.js → TaskListScreen-BgivrIiS.js} +2 -2
- package/dist/assets/{TaskRoutes-Bf2oLDNl.js → TaskRoutes-Zd-WILg6.js} +2 -2
- package/dist/assets/TransactionDetailRoutes-BQ9j2vpm.js +1 -0
- package/dist/assets/{TransactionDetailScreen-CfRj9Znj.js → TransactionDetailScreen-DxmS5vev.js} +2 -2
- package/dist/assets/{TransactionListRoutes-D0AbWIhY.js → TransactionListRoutes-DmcpRXDM.js} +1 -1
- package/dist/assets/TreasuryRoutes-Dwg7JuRo.js +37 -0
- package/dist/assets/{VendorsRoutes-FdyKnvtG.js → VendorsRoutes-6uhzJWI3.js} +12 -12
- package/dist/assets/WiseConfirmationScreen-CNbKlsBn.js +12 -0
- package/dist/assets/{ZeniAccountRoutes-C6tX7kSt.js → ZeniAccountRoutes-y235hpKz.js} +10 -10
- package/dist/assets/{ZeniAccountStatementScreen--z-dKl5C.js → ZeniAccountStatementScreen-Dk4AqWUx.js} +2 -2
- package/dist/assets/{accountMappingHelper-DC8hLo25.js → accountMappingHelper-BIF_cEGy.js} +1 -1
- package/dist/assets/{analytics-D76TbnBG.js → analytics-YTm4e0V2.js} +1 -1
- package/dist/assets/{analyticsHelper-BvhlneFh.js → analyticsHelper-BG68_Ecq.js} +1 -1
- package/dist/assets/{core--8kDo-LJ.js → core-cQ_UGuA8.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-C7w4UFFF.js → decodeURIComponentSafe-CzQtaU9d.js} +1 -1
- package/dist/assets/{dnd-C7FILogn.js → dnd-BKb14efZ.js} +1 -1
- package/dist/assets/{empty-3u2VxJVl.js → empty-DNHXYLLo.js} +1 -1
- package/dist/assets/{empty-Be_BVx3n.js → empty-DZNLkcgK.js} +1 -1
- package/dist/assets/{emptyVideoElement-2PLigQOf.js → emptyVideoElement-CBnuw-R_.js} +1 -1
- package/dist/assets/{epic-RtUezbdm.js → epic-B020-YAE.js} +1 -1
- package/dist/assets/{getLocaleForTenant-BNCERJ--.js → getLocaleForTenant-CX5wQdJ4.js} +1 -1
- package/dist/assets/{index-BWzDqQ_Z.js → index-6MiIPIRp.js} +1 -1
- package/dist/assets/{index-B9x4skgF.js → index-BU0MpF_k.js} +1 -1
- package/dist/assets/{index-BZ4v8_jI.js → index-COB8HvQe.js} +2 -2
- package/dist/assets/{index-GDJvj_1Q.js → index-DAAltHsi.js} +1 -1
- package/dist/assets/{index-DO3Ev_EW.js → index-DaFoFUBf.js} +11002 -11024
- package/dist/assets/{index-D2BuA-Eq.js → index-Dv9AJolW.js} +1 -1
- package/dist/assets/{index-DwK3E-F6.js → index-jWD7VWky.js} +1 -1
- package/dist/assets/{lexical-roIufkFt.js → lexical-Dhe13gAE.js} +1 -1
- package/dist/assets/{liveblocks-CGYIz1sf.js → liveblocks-BGrTvYCQ.js} +1 -1
- package/dist/assets/{lottie-BwZdyUox.js → lottie-DunuFFva.js} +1 -1
- package/dist/assets/{mui-COKu087d.js → mui-bgnk9Y8D.js} +1 -1
- package/dist/assets/{pathToGoBack-BAEmu1ZG.js → pathToGoBack-CrwnkzZo.js} +1 -1
- package/dist/assets/{pdf-lib-C9qLw4cO.js → pdf-lib-CWFeXKHq.js} +1 -1
- package/dist/assets/{pdf-CBQkrKS2.js → pdf-pb-ViLbf.js} +4 -4
- package/dist/assets/{plaid-DzMABTsR.js → plaid-D86kekqV.js} +1 -1
- package/dist/assets/{pusher-TSE9lTnh.js → pusher-Dl_gaLc0.js} +1 -1
- package/dist/assets/{react-D77OVu9R.js → react-B-GK82Mh.js} +1 -1
- package/dist/assets/{react-Q-oC4eFq.js → react-BGx71-xQ.js} +1 -1
- package/dist/assets/{react-wPUmTj8i.js → react-BSv395g0.js} +1 -1
- package/dist/assets/{react-BwlBpQg6.js → react-CsXicgmu.js} +1 -1
- package/dist/assets/{react-NGMn_z4n.js → react-DjMti-au.js} +1 -1
- package/dist/assets/{react-CG2bsPU9.js → react-amVh9j5p.js} +1 -1
- package/dist/assets/{recharts-jENt1xXk.js → recharts-d-EnR1VF.js} +1 -1
- package/dist/assets/{routePaths-BOWJQWRe.js → routePaths-Dbo9mbXz.js} +1 -1
- package/dist/assets/{sentry-ClGNqxTu.js → sentry-B-sG2CiU.js} +1 -1
- package/dist/assets/{url-BQx25DrG.js → url-BOXP7fzy.js} +1 -1
- package/dist/assets/{url-BVVYwai7.js → url-DXZa-f5b.js} +1 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-AwLPsx7n.js +1 -0
- package/dist/assets/{useDeviceId-CESE7gTF.js → useDeviceId-D2nSr5j2.js} +1 -1
- package/dist/assets/useFetchSuggestedQuestionsWhenReady-wonFIDms.js +1 -0
- package/dist/assets/{useInitialThreadRequest-B5pNRjBx.js → useInitialThreadRequest-DuxWYdX9.js} +1 -1
- package/dist/assets/{utils-C9gYeSwW.js → utils-CU50wlH3.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-IHJ8nGIi.js → withTransactionSidePanel-08bnc7py.js} +2 -2
- package/dist/assets/{zeni-epic-state-Cb3mJiT_.js → zeni-epic-state-BObvmHAZ.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/AddressRoutes-ClrG4czN.js +0 -1
- package/dist/assets/AddressScreen-UQTTt07o.js +0 -9
- package/dist/assets/AiCfoScreen-D0ZuamWZ.js +0 -11
- package/dist/assets/CompanyPassportScreen-9atxEdFF.js +0 -1
- package/dist/assets/CustomerOnboardingAuthScreen-Cg582Z8u.js +0 -1
- package/dist/assets/DomesticWireDetailScreen-DjDGDTBz.js +0 -18
- package/dist/assets/DrawerScreen-DG33YoSv.js +0 -1
- package/dist/assets/FeaturePreviewScreen-DgltNyCi.js +0 -1
- package/dist/assets/MagicLinkSignInScreen-CRNknrGE.js +0 -12
- package/dist/assets/NotFoundScreen-BOOShTFL.js +0 -1
- package/dist/assets/PerformanceRoutes-DA01xJZL.js +0 -1
- package/dist/assets/ReferralListScreen-CT6Goua6.js +0 -5
- package/dist/assets/ReimbursementApprovalRoutes-C76OIpQC.js +0 -1
- package/dist/assets/RewardsRoutes-BYzVPFGi.js +0 -1
- package/dist/assets/SignInScreen-CxIts5DK.js +0 -1
- package/dist/assets/SignOutScreen-27MvP0w6.js +0 -9
- package/dist/assets/TransactionDetailRoutes-BZGy1w7P.js +0 -1
- package/dist/assets/TreasuryRoutes-CHF8__07.js +0 -37
- package/dist/assets/WiseConfirmationScreen-CoxEFEpW.js +0 -12
- package/dist/assets/useAskAiCfoHostNavButtonProps-BECmuzX_.js +0 -1
- package/dist/assets/useFetchSuggestedQuestionsWhenReady-CapxOzLt.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-DaFoFUBf.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-B-sG2CiU.js"><link rel="modulepreload" crossorigin href="/assets/core-cQ_UGuA8.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-BObvmHAZ.js"><link rel="modulepreload" crossorigin href="/assets/mui-bgnk9Y8D.js"><link rel="modulepreload" crossorigin href="/assets/analytics-YTm4e0V2.js"><link rel="modulepreload" crossorigin href="/assets/utils-CU50wlH3.js"><link rel="stylesheet" crossorigin href="/assets/index-D-vub4_t.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.0.
|
|
3
|
+
"version": "5.0.11-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.2",
|
|
31
31
|
"@zeniai/client-epic-state": "5.0.7",
|
|
32
|
-
"@zeniai/web-components": "4.0.
|
|
32
|
+
"@zeniai/web-components": "4.0.15",
|
|
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-CGYIz1sf.js";import{A as d}from"./AddressScreen-UQTTt07o.js";import i from"./NotFoundScreen-BOOShTFL.js";import"./sentry-ClGNqxTu.js";import{n as s,o as r}from"./core--8kDo-LJ.js";import"./zeni-epic-state-Cb3mJiT_.js";import"./recharts-jENt1xXk.js";import"./index-DO3Ev_EW.js";import"./mui-COKu087d.js";import"./analytics-D76TbnBG.js";import"./plaid-DzMABTsR.js";import"./dnd-C7FILogn.js";import"./stripe-DMRn4zHo.js";import"./lottie-BwZdyUox.js";import"./lexical-roIufkFt.js";import"./pdf-CBQkrKS2.js";import"./utils-C9gYeSwW.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]="4bd15e18-5b5f-4be1-8d33-8bd696c76da2",t._sentryDebugIdIdentifier="sentry-dbid-4bd15e18-5b5f-4be1-8d33-8bd696c76da2")}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-CGYIz1sf.js";import{a as h}from"./sentry-ClGNqxTu.js";import{j as P,h as _,u as j,l as E,g as $,k as M}from"./core--8kDo-LJ.js";import{J as B,h as D,z as L,S as K,v as O,O as z,d as I,f as m,H as F,k as b,q as N}from"./index-DO3Ev_EW.js";import{IZ as C,gI as R,eM as U,I_ as q,b$ as G,I$ as H,k2 as V}from"./zeni-epic-state-Cb3mJiT_.js";import{n as J}from"./mui-COKu087d.js";import Z from"./NotFoundScreen-BOOShTFL.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]="56ad2cd2-bdee-4e9a-ba2e-076e0072cf09",e._sentryDebugIdIdentifier="sentry-dbid-56ad2cd2-bdee-4e9a-ba2e-076e0072cf09")}catch{}})();const Q=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
|
-
`,W=M(function(e,t){const{addressId:o,isSubPage:i,addressType:c}=t,l=U(e),a=t.roleMap!=null&&q(t.roleMap),d=i||c==="user_address"||G(l?.userRole??[])||a?void 0:"readonly";if(o==null){const s=H(c,e);return{addressToEdit:s?.addressToCreate,loadingState:s?.status?.fetchState,googleAPIKey:b.googleMapsAPIKey,isDisabled:d,isSubPage:i,dontShowSaveConfirmationPopup:t.dontShowSaveConfirmation}}const n=C(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??k();const u=d?.queryParams;if(u){const g=new URLSearchParams(u).toString();g&&(s=`${s}?${g}`)}o(s,{state:{pathnameStackToGoBack:n.newStack}})}};return{onSubmitHandler:a=>{const d=X(a);e(V({addressType:c,addressToCreate:d})),I?.trackSaveAddressClicked(m.Event.saveAddressClicked,{street:a.street.addressString,city:a.city,state:a.state,country:a.country.selectedOption??"",postalCode:a.postalCode,suite:a.suite,secondaryInfo:a.secondaryInfo}),l(t.bankAccountContext)},onCancel:()=>{l(t.bankAccountContext)}}})(F);function re({isSubPage:e,hideAddressSubTitle:t=!1,hideAddressBackButton:o=!1,dontShowSaveConfirmation:i,accountContext:c,addressTypeParam:l}){const a=P(),d=_(),n=j(),{addressId:s,addressType:u}=E(),g=B(),w=D(),v=L.getSignedInUser(),[f,x]=h.useState(s==null),p=$(S=>s!=null?C(S,s).fetchState:"Not-Started"),A=K();if(v==null)throw Error("Can't access address page without signing in...");const T=S=>S.trackPageLoaded(s!=null?m.Event.editAddress:m.Event.addAddress),y=l??u;return h.useEffect(()=>{f||s==null||(x(!0),d(R(s,!1)))},[f,s,d]),y==null||y.match(/(user_address|company_address|company_registered_address|vendor_address|officer_([1-9]|10)_address)$/g)?!f&&p==="Not-Started"||f&&p==="In-Progress"?r.jsx(O,{fetchState:p,style:{backgroundColor:w.colors.grey5}}):s!=null&&p==="Error"?(a(`${k(1)}/new`,{replace:!0}),r.jsx(r.Fragment,{})):r.jsxs(r.Fragment,{children:[r.jsx(z,{analytics:I,onLoad:T}),r.jsx(Q,{windowSize:g,children:r.jsx(W,{location:n,navigate:a,isSubPage:e===!0,hideAddressBackButton:o,hideAddressSubTitle:t,addressId:s,addressType:y,dontShowSaveConfirmation:i,bankAccountContext:c,roleMap:A?.loggedInUserRoleMap})})]}):r.jsx(Z,{})}const k=(e=2)=>{let t="../";for(let o=0;o<e;o++)t=`${t}../`;return t},X=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,X as t};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{j as g}from"./liveblocks-CGYIz1sf.js";import{a as i}from"./sentry-ClGNqxTu.js";import{h as te,j as se,u as ae,g as R,l as ne,k as oe}from"./core--8kDo-LJ.js";import{M as ie,cB as re,z as le,J as ce,cC as ue,cD as de,cE as $,O as me,d as _,R as U,cF as fe,cG as pe,f as he,a1 as Se,cH as ge,T as Ce,r as ke,q as j,cI as we,cJ as Ie}from"./index-DO3Ev_EW.js";import{fE as be,f3 as q,eM as Ee,hm as Te,Pv as Pe,eL as ye,hw as _e,hs as ve,fu as xe,fo as Ae,fh as Oe,fl as G,fp as Qe,fq as Fe,fr as Me,fs as Be,ft as De}from"./zeni-epic-state-Cb3mJiT_.js";import{D as Le,n as v,P as Re,S as Ue}from"./mui-COKu087d.js";import{p as je}from"./pathToGoBack-BAEmu1ZG.js";import"./recharts-jENt1xXk.js";import"./analytics-D76TbnBG.js";import"./plaid-DzMABTsR.js";import"./dnd-C7FILogn.js";import"./stripe-DMRn4zHo.js";import"./lottie-BwZdyUox.js";import"./lexical-roIufkFt.js";import"./pdf-CBQkrKS2.js";import"./utils-C9gYeSwW.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new a.Error().stack;r&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[r]="4f588558-90f8-489d-a096-10d8c2740f30",a._sentryDebugIdIdentifier="sentry-dbid-4f588558-90f8-489d-a096-10d8c2740f30")}catch{}})();const N="chat-response-generated",Ge=oe(function(a,r){const s=q(a),m=r.isSubmitting;return{showSampleQuestions:r.sessionFromUrl==="explore"&&s.uiState.currentChatSessionId==null,aiCfoView:s,isSubmitting:m,isNewChatSession:r.sessionFromUrl==="new_chat"||r.sessionFromUrl==="explore",isFullView:!0,tableDownloadEndPoint:`${Ce}/tableDownload`,emailLinkQuestion:r.emailLinkQuestion,autoSubmitEmailLinkQuestion:r.autoSubmitEmailLinkQuestion,onEmailLinkQuestionProcessed:r.onEmailLinkQuestionProcessed,isFileUploadEnabled:r.isFileUploadEnabled}},function(a,r){const{location:s,currentTenant:m,userId:d,navigate:f,currentChatSessionId:p,allSessionsWithOrderedQuestionAnswers:C,setIsAiCfoOpen:l}=r;return{onEventReceived:(e,n)=>{if(e===N&&typeof n.text=="string"&&typeof n.metadata=="object"){const o=n,c=Fe(o.type),t=o.metadata.chat_session_id??null,{currentChatSession:k,currentQuestionAnswer:h,currentQuestionAnswerSummary:S}=$(C,t);c!=="answer"?_.trackAICFOChatResponseGenerated(c,h?.question.questionText??"",o.text,t,Ie(S,k),o.metadata.message_id??null):_.trackAICFOChatAnswerGenerated(o.text,h?.question.questionText??"",(o.follow_up_questions?.length??0)>0,!!o.assumptions,!!o.insights,o.visualization!=null,Me(o.visualization?.type??"")??null,t,o.summarized_title,o.metadata.message_id??null),a(Be({chatSessionId:o.metadata.chat_session_id,responseType:c,fetchState:{fetchState:"Completed",error:void 0}})),a(De({chatSessionId:o.metadata.chat_session_id,answerPayload:o,userId:d}))}},onSubmit:(e,n,o,c)=>{e&&we(a,e,n,p,C,d,c,o)},updateCurrentInput:e=>{a(G(e))},onStopSubmit:()=>{},onUpdateScrollYOffset:e=>{a(Qe(e))},onSelectSampleQuestion:()=>{},onBackClick:()=>{f(-1)},onCloseClick:()=>{const e=j(s.state?.pathnameStackToGoBack),n=e.poppedPathname??je(1);f(n,{state:{...s.state,pathnameStackToGoBack:e.newStack}}),a(G(""))},togglePageView:()=>{const e=j(s.state?.pathnameStackToGoBack),n=e.poppedPathname??`/${m.tenantEmailDomain}/dashboard`;f(n,{state:{...s.state,pathnameStackToGoBack:e.newStack,message:"open_ai_cfo_drawer"}}),l(!0)},onCopy:()=>{},onThumbsUp:()=>{},onThumbsDown:()=>{},onTogglePageView:()=>{f(-1)},onNewChatClick:()=>{p!=null&&a(Oe());const e=ke(s.state?.pathnameStackToGoBack,s.pathname);f(`/${m.tenantEmailDomain}/ai-cfo/new_chat`,{state:{pathnameStackToGoBack:e.slice(0,-1),referrer:"Sidebar"}})},onToggleCotCollapsed:(e,n)=>{a(Ae({questionAnswerId:e,isCollapsed:n}))},onMenuClick:r.onMenuClick}})(Se(ge)),rt=({isFileUploadEnabled:a})=>{const{setIsAiCfoOpen:r}=ie(),s=te(),m=se(),d=ae(),[f,p]=i.useState(!1);i.useEffect(()=>{s(be())},[s]);const{customPageTitle:C}=re(),l=R(u=>q(u)),e=le.getSignedInUser(),{session_id:n}=ne(),o=ce(),c=R(u=>Ee(u)),t=l.uiState.currentChatSessionId,k=ue({currentTenant:c,currentChatSessionId:t,aiCfoView:l}),h=d.state,S=h?.aiCfoInitialQuestion,x=!!h?.aiCfoShouldSubmit,[V,b]=i.useState(null),[H,E]=i.useState(!1),A=i.useRef(!1);i.useEffect(()=>{A.current||S==null||S===""||(b(S),E(x),A.current=!0)},[S,x]);const W=i.useCallback(()=>{b(null),E(!1)},[]),O=i.useMemo(()=>new URLSearchParams(d.search),[d.search]),Q=O.get("ref")??h?.aiCfoRef,T=O.get("emailRefId")??h?.aiCfoEmailRefId,F=i.useRef(!1);i.useEffect(()=>{F.current||Q!=="month-end-email"||T==null||t!=null||e==null||(s(Te("controller",e.userId,T,"MONTH_END_EMAIL")),F.current=!0)},[Q,T,t,s,e]);const w=l.uiState.lastContextMessage;i.useEffect(()=>{w!=null&&w!==""&&t!=null&&(b(w),E(!0),s(Pe()))},[w,t,s]);const z=c.masterTOSInfo,I=z?.isMasterTOSAccepted??!1,{visitedSessions:M}=de(t),P=l.fetchState,y=l.uiState.chatSessionsNextPageToken.hasMore||!l.uiState.chatSessionsFirstPageFetched,B=t!=null?l.fetchChatSessionHistoryByChatSessionId?.[t]?.fetchState??"Not-Started":"Not-Started",D=t==null||(l.uiState.chatHistoryNextPageToken[t]?.hasMore??!0),L=l.allSessionsWithOrderedQuestionAnswers,{currentSessionQuestionAnswers:J}=$(L,t),X=J.length===0;i.useEffect(()=>{I||m("../dashboard",{state:{...d.state,message:"open_ai_cfo_drawer"}})},[I]),i.useEffect(()=>{t!=null&&n!==t&&m(`../ai-cfo/${t}`,{state:{...d.state}})},[t,n]),i.useEffect(()=>{n!=null&&t==null&&n!=="new_chat"&&n!=="explore"&&s(ye({sessionId:n,agentId:"controller"}))},[]);const Y=i.useMemo(()=>({events:M.map(u=>`private-chat-${u}.${N}`),eventCallback:(u,Z,ee)=>ee.onEventReceived(u,Z)}),[M]);if(i.useEffect(()=>{P!=="In-Progress"&&y&&s(_e())},[P,y,s]),i.useEffect(()=>{t!=null&&B!=="In-Progress"&&D&&e!=null&&P==="Completed"&&!y&&s(ve(t,e.userId))},[B,D,t,e,s]),e==null||n==null)throw Error("Can't access AI Controller page without signing in...");const K=t!=null&&l.responseStateByChatSessionId?.[t]?.answer?.fetchState==="In-Progress";return g.jsxs(qe,{children:[g.jsx(me,{analytics:_,onLoad:u=>u.trackPageLoaded(he.Event.aiCFOPage)}),U(o)&&k.drawerElement,g.jsx(Ge,{...Y,currentChatSessionId:t,allSessionsWithOrderedQuestionAnswers:L,openOnboardingPage:()=>p(!0),userId:e.userId,setIsAiCfoOpen:r,navigate:m,sessionFromUrl:n,location:d,isSubmitting:K,isEmptyChatWithSession:X,customPageTitle:C,currentTenant:c,emailLinkQuestion:V??void 0,autoSubmitEmailLinkQuestion:H,onEmailLinkQuestionProcessed:W,onMenuClick:U(o)?k.open:void 0,isFileUploadEnabled:a}),g.jsx(Le,{anchor:"right",open:f,transitionDuration:250,PaperProps:{component:Ne,style:{width:`${fe}vw`}},slotProps:{backdrop:{style:{backgroundColor:"transparent",cursor:"pointer"}}},onClose:()=>p(!1),children:g.jsx($e,{onClick:u=>u.stopPropagation(),children:g.jsx(pe,{isTOSAccepted:I,acceptMasterTOSState:l.masterTOSAcceptanceState,customPageTitle:C,onCloseClick:()=>p(!1),onCompleteClick:()=>{I||c.userRoleId==null||s(xe(c.userRoleId)),p(!1)}})})})]})},$e=v(Ue)`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
`,qe=v.div`
|
|
6
|
-
height: 100vh;
|
|
7
|
-
width: 100%;
|
|
8
|
-
`,Ne=v(Re)`
|
|
9
|
-
box-shadow: ${({theme:a})=>a.colors.elevation2};
|
|
10
|
-
color: ${({theme:a})=>a.colors.grey4};
|
|
11
|
-
`;export{rt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as m}from"./liveblocks-CGYIz1sf.js";import{a as g}from"./sentry-ClGNqxTu.js";import{j as w,h as x,u as k,l as T,g as O,k as E}from"./core--8kDo-LJ.js";import{z as b,aZ as F,O as P,d as L,f as V,aa as N,a_ as j,ao as A,ap as B,r as U}from"./index-DO3Ev_EW.js";import{eM as D,fC as M,rt as _,fx as R,b$ as z,Lt as G,bm as Y,pB as Z,pp as $,jW as q,lq as S,Lu as H,bB as W,cr as C,ly as J,lB as K}from"./zeni-epic-state-Cb3mJiT_.js";import"./mui-COKu087d.js";import{c as Q}from"./routePaths-BOWJQWRe.js";import{M as X}from"./MobileAppDrawer-jslKljAh.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new t.Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="47be3ff7-7cad-4d72-8418-a800b038a0d5",t._sentryDebugIdIdentifier="sentry-dbid-47be3ff7-7cad-4d72-8418-a800b038a0d5")}catch{}})();const ee=E(function(t){const n=R(t),i=b.getSignedInUser(),l=D(t),c=l.tenantId,p={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:c??""},f=z(l?.userRole??[])&&n.localData.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",e=G(t.companyConfigState),a=t.countryListState?.byCountryListCode?.nationalityCountryList?.countries??[];return{isCompanyVerified:n.companyView?.company?.company?.companyBillPayInfo?.companyVerificationStatus?.code==="verified",companyPassportView:n,allIndustries:e.companyIndustries??[],allNationalityCountries:a,isDisabled:f,authParams:p,filesEndPoint:`${A.fileMicroServiceBaseUrl}`,isZeniUser:Y(i)}},function(t,n){const{companyId:i,currentTenant:l,navigate:c,location:p}=n,{tenantEmailDomain:f}=l;return{onScheduleClick:e=>{let a=e.href;a.includes("http")||(a="https://".concat(a)),window.open(a,"_blank")},onSaveAll:()=>{t(K())},onAddressClick:e=>{const a=Q(f,e),o=U(p.state?.pathnameStackToGoBack,p.pathname);c(a,{state:{pathnameStackToGoBack:o}})},onResetClick:()=>{t(J({companyId:i}))},onBackClick:()=>{c("../")},onCompanyDetailsChanged:e=>{const{companyInfo:a,incInfo:o,taxDetails:r,zeniFinanceTeam:d}=e,{website:u}=a,{meetingLink:y}=d,{incDate:s}=o,{taxesFiledYears:h}=r,v={companyInfo:{...a,website:u!=""&&u!=null?C(u):void 0,meetingLink:y!=""&&y!=null?C(y):void 0,industry:a.industry.selectedOption,companyIndustryType:a.companyIndustryType?.selectedOption??void 0,companySubIndustry:a.subIndustry?.selectedOption??void 0,businessModel:a.businessModel.selectedOption??"",companySourceOfFunds:a.companySourceOfFunds?.selectedOption,companySourceOfFundsDescription:a.companySourceOfFundsDescription??void 0,countriesOfOperations:a.countriesOfOperations?.selectedOptions?.map(I=>I.length===2?I:B(I))??[],transactionVolume:a.transactionVolume?.selectedOption??void 0,transactionVolumeDescription:a.transactionVolumeDescription??void 0,regulatedStatus:a.regulatedStatus??void 0,regulatedStatusDescription:a.regulatedStatusDescription??void 0,usNexus:a.usNexus??void 0,usNexusTypes:a.usNexusTypes?.selectedOptions??[],purposeOfAccount:a.purposeOfAccount?.selectedOption??void 0,purposeOfAccountDescription:a.purposeOfAccountDescription??void 0},incInfo:{typeOfInc:o.typeOfInc.selectedOption??"",stateOfInc:o.stateOfInc.selectedOption??"",incDate:s!=null?W(s?.toString()):s,fileId:o.fileIds[0]},taxDetails:{taxIdOrEIN:r.taxIdOrEIN,sicCode:r.sicCode,naicsCode:r.naicsCode,dunsNumber:r.dunsNumber,taxesFiledYears:h.selectedOptions.map(I=>parseInt(I)),fileId:r.fileIds[0]}};t(S({companyDetails:v}))},onPrimaryContactDetailsUpdated:e=>{t(S({primaryContact:{userId:e.userId,email:e.email.trim(),firstName:e.name.firstName,lastName:e.name.lastName}}))},onNewCompanyOfficerAdded:e=>{t(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:void 0}]}))},onNewCompanyOfficerRemoved:e=>{t(H(e))},onCompanyOfficerUpdated:e=>{t(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:e.userId}]}))},updateFilesEntity:e=>{t(q({files:e}))},onDeleteFile:e=>{t($(e))},onEditFileName:(e,a)=>{t(Z(e,a.split(".")[0]))}}})(j);function de(){const t=w(),n=x(),i=k(),{tenantEmailDomain:l}=T(),[c,p]=g.useState(!1),[f,e]=g.useState(!1),a=O(s=>s.companyViewState.passportView.fetchState),o=O(s=>s.companyConfigState.fetchState),r=O(s=>D(s)),d=r.companyId??b.getSignedInUserTenant(l)?.companyId;if(b.getSignedInUser()==null)throw Error("Can't access company details page without signing in...");g.useEffect(()=>{c||a!=="Not-Started"||d==null||(p(!0),n(M(d)))},[c,a,d,n]),g.useEffect(()=>{o==="Not-Started"&&n(_())},[o,n]);const u=s=>{e(s)},y=a==="Not-Started"||a==="In-Progress"||o==="Not-Started"||o==="In-Progress";return d!=null&&a==="Error"?m.jsx(F,{onGoHome:()=>t("../",{replace:!0}),onReload:()=>window.location.reload()}):m.jsxs(m.Fragment,{children:[m.jsx(P,{analytics:L,onLoad:s=>s.trackPageLoaded(V.Event.companyPassport,N(i)?"Settings":"Company Passport")}),N(i)?m.jsx(X,{isAppContentDrawerOpen:f,handleDrawerToggle:u}):null,m.jsx(ee,{companyId:d,navigate:t,location:i,isLoading:y,currentTenant:r,isSettings:N(i),onClickMenuIcon:()=>{u(!0)}})]})}export{de as C};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as d}from"./liveblocks-CGYIz1sf.js";import{z as n}from"./index-DO3Ev_EW.js";import{g as p}from"./QBOConnectionScreen-DaAy9F4R.js";import"./sentry-ClGNqxTu.js";import{u as a,N as i}from"./core--8kDo-LJ.js";import"./zeni-epic-state-Cb3mJiT_.js";import"./recharts-jENt1xXk.js";import"./mui-COKu087d.js";import"./analytics-D76TbnBG.js";import"./plaid-DzMABTsR.js";import"./dnd-C7FILogn.js";import"./stripe-DMRn4zHo.js";import"./lottie-BwZdyUox.js";import"./lexical-roIufkFt.js";import"./pdf-CBQkrKS2.js";import"./utils-C9gYeSwW.js";import"./empty-Be_BVx3n.js";import"./pdf-lib-C9qLw4cO.js";import"./index-BWzDqQ_Z.js";import"./url-BQx25DrG.js";import"./index-GDJvj_1Q.js";import"./decodeURIComponentSafe-C7w4UFFF.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]="b68d0d57-e81d-4cfb-97e6-d4dd5e5b7ebd",t._sentryDebugIdIdentifier="sentry-dbid-b68d0d57-e81d-4cfb-97e6-d4dd5e5b7ebd")}catch{}})();const U=()=>{const t=a(),{code:o,realmId:r,state:e}=p(t.search),s=n.getSignedInUser()?.userId??"";if(f(o,r,e,s)===!0){const m=`../../${e}/onboarding?code=${o}&realmId=${r}&state=auth_flow`;return d.jsx(i,{to:m})}return d.jsx(i,{to:"../../"})},f=(t,o,r,e)=>t!=""&&o!=""&&r!=""&&e!=null&&e!="";export{U as default,f as hasValidParams};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import{j as l}from"./liveblocks-CGYIz1sf.js";import{j as w,u as C,g as h,k as A,l as V}from"./core--8kDo-LJ.js";import{Ma as k,Mh as _,fA as J,fz as q,fy as L,ii as W,Ji as K,ps as Q,eM as B,LI as D,ig as T,Mb as v,Mk as F,id as G,iC as j}from"./zeni-epic-state-Cb3mJiT_.js";import{bj as X,J as R,i as N,z as U,h as M,q as p,s as S,v as z,bk as Y,o as O,bl as ee,r as te}from"./index-DO3Ev_EW.js";import{n as Z}from"./mui-COKu087d.js";import"./sentry-ClGNqxTu.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]="18cd381e-c70b-4676-8e06-dba0041b42ab",e._sentryDebugIdIdentifier="sentry-dbid-18cd381e-c70b-4676-8e06-dba0041b42ab")}catch{}})();const ae=A(null,function(e,t){return{onSaveVendor:a=>{e(W(t.vendorId!==void 0?t.vendorId:void 0,t.billId,void 0,t.isExpressPayPage)),e(K("common")),a!=null&&e(Q(a))},onGetOtp:a=>{e(L(a,"BillPayVendor"))},onResendOtp:a=>{e(q(a,"BillPayVendor"))},onVerifyOtp:(a,n)=>{e(J(a,n,"BillPayVendor"))},onVerifyOtpSuccess:(a,n,o)=>{e(_(a,n,o))}}})(X);function H({vendorId:e,billId:t,isExpressPayPage:a}){const n=w(),o=C(),s=h(r=>k(r,e));return l.jsx(ae,{location:o,navigate:n,vendorId:e,billId:t,vendorViewDetails:s,isExpressPayPage:a??!1})}const ne=Z.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`,oe=A(function(e,t){const{vendorId:a,billId:n}=t,o=k(e,a),s=D(e,t.isVendorRecommendationEnabled,t.isZeniAccountsFeatureEnabled,n);return{billId:n,isDisabled:o.bankAccountCreationState.fetchState==="In-Progress"?"readonly":void 0,vendorViewDetails:o,file:s.file,bankAccountContext:t.bankAccountContext}},function(e,t){const{navigate:a,location:n,vendorId:o}=t;return{onFetchBankName:s=>{e(j(s))},onSaveHandler:s=>{e(G(t.bankAccountContext,s,"standard",o))},onCancel:()=>{(()=>{const s=p(n.state?.pathnameStackToGoBack),r=s.poppedPathname??P();a(r,{state:{pathnameStackToGoBack:s.newStack}})})(),e(v())},onACHDetailsUpdated:s=>{const{bankAccountSection:r}=s;e(F({data:r}))},onBackClick:()=>{if(e(T({fetchState:"Not-Started"})),t.bankAccountContext==="express-pay")a("../",{relative:"path"});else{const s=p(t.location.state?.pathnameStackToGoBack),r=s.poppedPathname??P(0);t.navigate(r,{state:{pathnameStackToGoBack:s.newStack}})}e(v())}}})(Y);function fe({vendorIdParam:e,accountContext:t}){const a=w(),n=C(),o=R(),{vendorId:s,billId:r}=V(),d=e??s,{useFeatureGate:i}=N(),c=U.getSignedInUser(),b=h(u=>B(u)),g=M(),I=p(n.state?.pathnameStackToGoBack),f=t??(I.poppedPathname?.includes("vendor")===!0?"vendor":"billDetail"),m=h(u=>k(u,d)),{isFeatureEnabled:x}=i(S.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:y}=i(S.isDepositAccountsFeatureEnabled);if(c==null)throw Error("Can't access address page without signing in...");return f==="billDetail"&&m.editVendorState?.saveStatus.fetchState==="In-Progress"?l.jsx(z,{fetchState:m.editVendorState?.saveStatus.fetchState??"Not-Started",style:{backgroundColor:g.colors.grey5}}):l.jsxs(ne,{windowSize:o,children:[l.jsx(H,{vendorId:d,billId:r}),l.jsx(oe,{location:n,navigate:a,billId:r,vendorId:d,currentTenant:b,bankAccountContext:f,isVendorRecommendationEnabled:x,isZeniAccountsFeatureEnabled:y})]})}const P=(e=2)=>{let t="../";for(let a=0;a<e;a++)t=`${t}../`;return t},me=(e,t,a)=>{let n=`/${e}/bill/${encodeURIComponent(t)}`;return a=="draft"&&(n+="/edit"),n},he=e=>`/${e}/bills`,ke=(e,t)=>{let a=`/${e}/bill`;return a=t!=null?a.concat(`/${t}/edit`):a.concat("/new"),a},E=(e,t,a,n)=>{let o=`/${e}/bill`;return o+=a!=null?`/${a}/edit/vendor`:"/new/vendor",o+=n!=null?`/${n}/edit/${t}`:`/create/${t}`,o};function ve(e,t,a){return E(e,"ach",t,a)}function Se(e,t,a){return E(e,"domestic",t,a)}function ge(e,t,a){return E(e,"international",t,a)}const se=(e,t,a)=>{let n=`/${e}/bill/`;return n=a!=null?n.concat(`${encodeURIComponent(a)}/${t}/`):n.concat(`new/${t}/`),n},ie=Z.div`
|
|
10
|
-
display: flex;
|
|
11
|
-
height: 100vh;
|
|
12
|
-
width: 100%;
|
|
13
|
-
flex: 1 1 auto;
|
|
14
|
-
flex-direction: column;
|
|
15
|
-
align-items: center;
|
|
16
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
17
|
-
box-shadow: ${e=>`0px 2px ${O.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
18
|
-
`,re=A(function(e,t){const{vendorId:a,billId:n}=t,o=k(e,a),s=D(e,t.isVendorRecommendationEnabled,t.isZeniAccountsFeatureEnabled,n);return{billId:n,isDisabled:o.bankAccountCreationState.fetchState==="In-Progress"?"readonly":void 0,vendorViewDetails:o,file:s.file,bankAccountContext:t.bankAccountContext}},function(e,t){const{billId:a,navigate:n,location:o,vendorId:s,currentTenant:r}=t,{tenantEmailDomain:d}=r;return{onFetchBankName:i=>{e(j(i))},onSaveHandler:i=>{e(G(t.bankAccountContext,i,"us-domestic",s))},onWireDetailsUpdated:i=>{const{bankAccountSection:c}=i;e(F({data:c}))},onCancel:()=>{(()=>{const i=p(o.state?.pathnameStackToGoBack),c=i.poppedPathname??$();n(c,{state:{pathnameStackToGoBack:i.newStack}})})(),e(v())},onAddressClick:i=>{if(t.bankAccountContext==="express-pay")n("./add-address");else{const c=se(d,i,a),b=te(o.state?.pathnameStackToGoBack,o.pathname);n(c,{state:{pathnameStackToGoBack:b}})}},onBackClick:()=>{if(e(T({fetchState:"Not-Started"})),t.bankAccountContext==="express-pay")n("../",{relative:"path"});else{const i=p(t.location.state?.pathnameStackToGoBack),c=i.poppedPathname??$(0);t.navigate(c,{state:{pathnameStackToGoBack:i.newStack}})}e(v())}}})(ee);function Ie({vendorIdParam:e,accountContext:t}){const a=w(),n=C(),o=R(),{vendorId:s,billId:r}=V(),d=e??s,i=U.getSignedInUser(),{useFeatureGate:c}=N(),b=M(),g=h(u=>B(u)),I=p(n.state?.pathnameStackToGoBack),f=t??(I.poppedPathname?.includes("vendor")===!0?"vendor":"billDetail"),m=h(u=>k(u,d)),{isFeatureEnabled:x}=c(S.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:y}=c(S.isDepositAccountsFeatureEnabled);if(i==null)throw Error("Can't access address page without signing in...");return f==="billDetail"&&m.editVendorState?.saveStatus.fetchState==="In-Progress"?l.jsx(z,{fetchState:m.editVendorState?.saveStatus.fetchState??"Not-Started",style:{backgroundColor:b.colors.grey5,boxShadow:`0px 2px ${O.sp1} ${b.colors.dropShadowNormal}`}}):l.jsxs(ie,{windowSize:o,children:[l.jsx(H,{vendorId:d,billId:r}),l.jsx(re,{location:n,navigate:a,billId:r,vendorId:d,currentTenant:g,bankAccountContext:f,isVendorRecommendationEnabled:x,isZeniAccountsFeatureEnabled:y})]})}const $=(e=2)=>{let t="../";for(let a=0;a<e;a++)t=`${t}../`;return t};export{fe as A,Ie as D,H as V,me as a,se as b,ke as c,Se as d,he as g,ge as i,ve as v};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-CGYIz1sf.js";import{J as f,A as l,h as c}from"./index-DO3Ev_EW.js";import{D as p}from"./mui-COKu087d.js";import"./sentry-ClGNqxTu.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]="029b96e7-5aad-4b4d-a728-6ee39fef0fde",e._sentryDebugIdIdentifier="sentry-dbid-029b96e7-5aad-4b4d-a728-6ee39fef0fde")}catch{}})();const b={drawerLeftMargin:new l(0,0,240)};function h(e){const{isOpen:r,drawerLeftMargin:o,children:a,onClose:t}=e,n=f(),s=o?.valuePx(n)??b.drawerLeftMargin.valuePx(n),d=c();return i.jsx(p,{anchor:"right",open:r,PaperProps:{style:{width:`calc(100% - ${s})`}},slotProps:{backdrop:{style:{backgroundColor:d.colors.black,opacity:.8,cursor:"pointer"}}},onClose:t,children:a})}export{h as D};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-CGYIz1sf.js";import{a as r}from"./sentry-ClGNqxTu.js";import{W as c,X as i,Y as l,q as p}from"./index-DO3Ev_EW.js";import"./mui-COKu087d.js";import m from"./NotFoundScreen-BOOShTFL.js";import{j as u,u as b}from"./core--8kDo-LJ.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]="adffae9f-52bc-4220-8365-cd49cb24872a",e._sentryDebugIdIdentifier="sentry-dbid-adffae9f-52bc-4220-8365-cd49cb24872a")}catch{}})();const D=()=>{const e=u(),a=b(),t=r.useCallback(()=>{window.open("https://www.zeni.ai/demo/request","_blank")},[]),d=r.useCallback(()=>{(()=>{const n=p(a.state?.pathnameStackToGoBack),f=n.poppedPathname??k();e(f,{state:{pathnameStackToGoBack:n.newStack}})})()},[]),o=c(a.pathname);return o!=null?s.jsx(i,{menuItem:l(o),onDemoClick:t,onGoBack:d}):s.jsx(m,{})},k=(e=2)=>{let a="../";for(let t=0;t<e;t++)a=`${a}../`;return a};export{D as F};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{j as u}from"./liveblocks-CGYIz1sf.js";import{a as g}from"./sentry-ClGNqxTu.js";import{h as U,u as _,j as w,q as M,g as l,N as T}from"./core--8kDo-LJ.js";import{z as r,h as P,D as V,e as A,d as N,f as q,C as R,m as W,g as $}from"./index-DO3Ev_EW.js";import{eM as B,Ie as G,Ip as H,If as J,eN as K,fi as Q,Il as X,fF as Y,cR as Z,Iq as ee,Ir as te}from"./zeni-epic-state-Cb3mJiT_.js";import{n as ne}from"./mui-COKu087d.js";import{u as se}from"./useDeviceId-CESE7gTF.js";import{f as ae}from"./analyticsHelper-BvhlneFh.js";import{t as ie}from"./getLocaleForTenant-BNCERJ--.js";import"./recharts-jENt1xXk.js";import"./analytics-D76TbnBG.js";import"./plaid-DzMABTsR.js";import"./dnd-C7FILogn.js";import"./stripe-DMRn4zHo.js";import"./lottie-BwZdyUox.js";import"./lexical-roIufkFt.js";import"./pdf-CBQkrKS2.js";import"./utils-C9gYeSwW.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]="e5da1267-ae1d-4d64-9199-6bf0b406939d",t._sentryDebugIdIdentifier="sentry-dbid-e5da1267-ae1d-4d64-9199-6bf0b406939d")}catch{}})();const C=(t,a)=>t!=null&&t.length>0&&a==="magic_links";function Ce(){const t=U(),a=_(),m=w(),[k]=M(),n=k.get("token"),p=k.get("stytch_token_type"),f=r.getMagicLinkCodeVerifier(),i=se(),{otpChallenge:d,twoFAPhoneNumber:D,magicLinkEmail:c,verifyDeviceFetchState:x,resendVerifyDeviceOTPFetchState:z}=l(e=>e.tenantState),I=l(e=>e.tenantState.fetchState),y=l(e=>e.tenantState.activeTenantFetchState.fetchState),S=l(e=>e.tenantState.signInState),h=l(e=>e.tenantState.magicLinkSignInFetchState.fetchState),s=l(e=>e.tenantState.loggedInUser),o=l(e=>B(e)),b=l(e=>G(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(H(n,i,f)))},[n,p,t,i,f,s?.zeniSessionId]),g.useEffect(()=>{S!=="In-Progress"||I!=="Completed"&&y!=="Completed"||s?.zeniSessionId==null||o==null||(n!=null&&r.saveLastUsedMagicLinkToken(n),r.saveSignedInUserWithSession(s,s.zeniSessionId),r.saveSignedInUserTenants(J(b.tenantsInOrder),s.zeniSessionId),K(s.userId,s.zeniSessionId,o.tenantId),t(Q(o.tenantId)),r.saveActiveTenantDomainForUser(o.tenantEmailDomain),t(X("Completed")),V.updateAppLocaleID(ie(o)),ae(s,o,v,void 0,b.tenantsInOrder),Y().then(()=>{const e=$();e!=null&&A(e)}),setTimeout(()=>{N.trackLogin(q.Event.loginSuccess,"email",Z(o.productSettings))},2e3))},[S,I,y,s,o,b,v,a.state,t]);const F=g.useCallback(()=>{m("/signin/auth")},[m]),j=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(R,{phoneNumber:D,verifyOtpFetchState:x.fetchState,resendVerifyDeviceOTPFetchState:z,onResendOtp:j,onVerifyOtp:O,onCancelVerifyDevice:F});if(S==="In-Progress"&&I==="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(W,{size:"ExtraLarge",start:!0})})}const oe=ne.div`
|
|
2
|
-
position: fixed;
|
|
3
|
-
top: 0;
|
|
4
|
-
left: 0;
|
|
5
|
-
right: 0;
|
|
6
|
-
bottom: 0;
|
|
7
|
-
display: flex;
|
|
8
|
-
align-items: center;
|
|
9
|
-
justify-content: center;
|
|
10
|
-
z-index: 9999;
|
|
11
|
-
background-color: ${t=>t.theme.colors.background};
|
|
12
|
-
`;export{Ce as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./liveblocks-CGYIz1sf.js";import{j as e,k as i}from"./core--8kDo-LJ.js";import{$ as n}from"./index-DO3Ev_EW.js";import"./mui-COKu087d.js";import"./sentry-ClGNqxTu.js";import"./zeni-epic-state-Cb3mJiT_.js";import"./recharts-jENt1xXk.js";import"./analytics-D76TbnBG.js";import"./plaid-DzMABTsR.js";import"./dnd-C7FILogn.js";import"./stripe-DMRn4zHo.js";import"./lottie-BwZdyUox.js";import"./lexical-roIufkFt.js";import"./pdf-CBQkrKS2.js";import"./utils-C9gYeSwW.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]="b8f8fac2-1296-411e-a82c-6092195b86a4",o._sentryDebugIdIdentifier="sentry-dbid-b8f8fac2-1296-411e-a82c-6092195b86a4")}catch{}})();const a=i(null,function(o,t){return{onGoBack:()=>{t.navigate(-1)},onGoHome:()=>{t.navigate("/")}}})(n);function h(){const o=e();return r.jsx(a,{navigate:o})}export{h as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-CGYIz1sf.js";import _ from"./NotFoundScreen-BOOShTFL.js";import{a as r}from"./sentry-ClGNqxTu.js";import{j as M,u as v,g,l as U,h as P,N as z,k as V,n as B,o as h}from"./core--8kDo-LJ.js";import{eM as F,OH as b,bn as H,bm as N,h2 as Q,gy as Z}from"./zeni-epic-state-Cb3mJiT_.js";import{Z as $,z as I,M as q,cp as G}from"./index-DO3Ev_EW.js";import"./mui-COKu087d.js";import{u as J}from"./useAskAiCfoHostNavButtonProps-BECmuzX_.js";import{c as K}from"./useFetchSuggestedQuestionsWhenReady-CapxOzLt.js";import{M as L}from"./MobileAppDrawer-jslKljAh.js";import"./recharts-jENt1xXk.js";import"./analytics-D76TbnBG.js";import"./plaid-DzMABTsR.js";import"./dnd-C7FILogn.js";import"./stripe-DMRn4zHo.js";import"./lottie-BwZdyUox.js";import"./lexical-roIufkFt.js";import"./pdf-CBQkrKS2.js";import"./utils-C9gYeSwW.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]="14329000-76f5-43aa-b559-3a86a93c8c68",e._sentryDebugIdIdentifier="sentry-dbid-14329000-76f5-43aa-b559-3a86a93c8c68")}catch{}})();const W=V(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),X=()=>{const e=M(),t=v(),c=$(),o=g(a=>F(a)),{aggregatedReportViewState:n}=g(a=>b(a)),{tenantEmailDomain:m}=U(),p=P(),d=I.getSignedInUser();if(d==null)throw new Error("Can't access this page without signing in...");const f=r.useRef(!1),[C,S]=r.useState(!1),k=H(o?.userRole??[]),w=o?.userRole?.includes("bookkeeping_admin")??!1,y=N(d),A=k||w||y,l=r.useCallback((a,i,O)=>{p(Q({fromMonth:a,toMonth:i,cacheOverride:O}))},[]);r.useEffect(()=>{n?.fetchState==="Completed"&&f.current&&(p(Z({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]),x=r.useCallback((a,i)=>{l(a,i,!1)},[l]),u=a=>{S(a)},{isAiCfoOpen:j,setIsAiCfoOpen:R}=q(),{isAiCfoAccessEnabled:T,onAskAiCfoClick:E}=J({isAiCfoOpen:j,setIsAiCfoOpen:R,mobileExploreReferrer:"Performance"});return K({isDataReady:n?.fetchState==="Completed"}),A?s.jsxs(s.Fragment,{children:[s.jsx(L,{isAppContentDrawerOpen:C,handleDrawerToggle:u}),s.jsx(W,{navigate:e,location:t,themeState:c,currentTenant:o,signedInUser:d,tenantEmailDomain:m,onReload:D,onTimeRangeSelect:x,handleDrawerToggle:u,isAiCfoAccessEnabled:T,onAskAiCfoClick:E})]}):s.jsx(z,{to:`/${m}/dashboard`,replace:!0})};function Ie(){return s.jsxs(B,{children:[s.jsx(h,{path:"*",element:s.jsx(X,{})}),s.jsx(h,{path:"*",element:s.jsx(_,{})})]})}export{Ie as default};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-CGYIz1sf.js";import{a as o}from"./sentry-ClGNqxTu.js";import{g as f,j as N,h as V,u as W,k as F}from"./core--8kDo-LJ.js";import{h as _,J as $,z as R,a$ as U,A as z,N as J,M as X,O as Z,d,f as q,a1 as G,b0 as Q}from"./index-DO3Ev_EW.js";import{eX as K,eM as Y,Lv as I,Lw as ee,to as ae,te as g,eZ as re,bL as ne,tj as te,Lx as se}from"./zeni-epic-state-Cb3mJiT_.js";import{D as oe,e as ie,n as de,S as le}from"./mui-COKu087d.js";import{u as ce}from"./useAskAiCfoHostNavButtonProps-BECmuzX_.js";import{c as fe}from"./useFetchSuggestedQuestionsWhenReady-CapxOzLt.js";import{M as ue}from"./MobileAppDrawer-jslKljAh.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]="0fddf2f0-d2e2-4fab-b4cd-7cb835745dc0",e._sentryDebugIdIdentifier="sentry-dbid-0fddf2f0-d2e2-4fab-b4cd-7cb835745dc0")}catch{}})();const pe={overlayWidth:new z(100,100,30)},we=({isReferralDrawerOpen:e,closeDrawerHandler:a})=>{const r=_(),n=$();if(R.getSignedInUser()==null)throw Error("Can't access How Referral works without signing in...");const i=()=>{a(!0)},u=f(l=>K(l));return s.jsx(oe,{anchor:"right",open:e,PaperProps:{style:{width:pe.overlayWidth.valuePercentage(n),boxShadow:"none"}},slotProps:{backdrop:{style:{opacity:.75,backgroundColor:r.colors.black,cursor:"pointer"}}},onClose:()=>i(),children:s.jsx(ie,{in:e,direction:"left",children:s.jsx(ge,{onClick:l=>l.stopPropagation(),children:s.jsx(U,{onDismissClick:i,rewardsPlan:u.rewardsPlan})})})})},ge=de(le)`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
`,P="refer-and-earn-status-update",ke=F(function(e){const a=I(e),r=e.referralViewState.rewardsPlanFetchState,n=ne([a,r]);return{inviteList:a.invitations,uiState:a.uiState,pendingBonus:a.pendingBonus,earnedBonus:a.earnedBonus,pendingReferrals:a.pendingReferrals,fetchState:n.fetchState,rewardsPlan:a.rewardsPlan}},function(e,a){const{navigate:r}=a;return{onColumnSortConfigChanged:(n,i)=>{e(se({sortOrder:i,sortkey:n}))},onInviteClick:()=>{d.trackRewardsPageClicked("invite via email"),r("../refer")},onHowItWorksClick:()=>{d.trackRewardsPageClicked("know more"),r("../how-it-works")},onResendInviteClick:n=>{d.trackRewardsPageClicked("resend invite"),e(te(n))},onBackClick:()=>{r("../",{relative:"path"})},onReloadInvitees:()=>{e(g(!0))},onCopyReferralLink:()=>{d.trackRewardsPageClicked("copy referral link")},onClickRefer:()=>{d.trackRewardsPageClicked("refer")},onEventReceived:n=>{n===P&&e(g(!0,!0))}}})(G(Q));function Pe({isReferralDrawerOpen:e}){const a=N(),r=V(),n=W(),[i,u]=o.useState(!1),[l,x]=o.useState(!1),[D,A]=o.useState(!1),[k,C]=o.useState(!1),p=R.getSignedInUser(),h=f(t=>Y(t)),m=f(t=>I(t)),b=m.fetchState,w=f(t=>t.referralViewState.rewardsPlanFetchState),v=ee([m,w]),{areTenantIdsInSync:c}=J();o.useEffect(()=>{h?.rewardsLastViewedTime==null&&D===!1&&(r(ae()),A(!0))},[]),o.useEffect(()=>{!i&&b==="Not-Started"&&c&&(u(!0),r(g(!0)))},[b,r,c]),o.useEffect(()=>{!l&&w.fetchState==="Not-Started"&&c&&(x(!0),r(re(!0)))},[w,r,c]),o.useEffect(()=>{C(e!=null&&e===!0)},[e]);const[E,j]=o.useState(!1),y=t=>{j(t)},{isAiCfoOpen:O,setIsAiCfoOpen:L}=X(),{isAiCfoAccessEnabled:T,onAskAiCfoClick:B}=ce({isAiCfoOpen:O,setIsAiCfoOpen:L,mobileExploreReferrer:"Rewards"});fe({isDataReady:v===!0});const M={events:p?.userId!=null?[`private-${p.userId}.${P}`]:[],eventCallback:(t,S,H)=>{H.onEventReceived(t)}};return s.jsxs(s.Fragment,{children:[v===!0?s.jsx(Z,{analytics:d,onLoad:t=>(S=>{p!=null&&S.trackPageLoaded(q.Event.rewardsPageViewed)})(t)}):null,s.jsx(ue,{isAppContentDrawerOpen:E,handleDrawerToggle:y}),k===!0?s.jsx(we,{closeDrawerHandler:()=>{C(!1),a("..")},isReferralDrawerOpen:k}):null,s.jsx(ke,{location:n,navigate:a,currentTenant:h,onClickMenuIcon:()=>{y(!0)},isAiCfoAccessEnabled:T,onAskAiCfoClick:B,...M})]})}export{Pe as R};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./liveblocks-CGYIz1sf.js";import x from"./NotFoundScreen-BOOShTFL.js";import{a as p}from"./sentry-ClGNqxTu.js";import{j as C,u as I,h as A,g as u,N as k,k as E,n as D,o as c}from"./core--8kDo-LJ.js";import{eM as T,Mp as g,MF as S,Cl as U,Bu as V,Ck as m,Cb as M,MU as _}from"./zeni-epic-state-Cb3mJiT_.js";import{h as $,z as B,v as F,a1 as N,bF as O,aa as W}from"./index-DO3Ev_EW.js";import"./mui-COKu087d.js";import{R as b}from"./ReimbursementApprovalRuleDetailScreen-CwI2DR20.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]="9269acea-f498-4c68-a9cf-548628297525",e._sentryDebugIdIdentifier="sentry-dbid-9269acea-f498-4c68-a9cf-548628297525")}catch{}})();const f="reimbursement-approval-rule-update",z=E(function(e){return{approvalView:g(e),remiSetupApproverViewUpdateData:S(e).remiSetupApproverViewUpdateData}},function(e,r){const{navigate:a,location:l}=r;return{onApprovalRulesEventReceived:n=>{n.endsWith(f)&&e(_(!1))},onBackClick:()=>{W(l)?a("../../"):a("../../../reimbursements/setup")},onDeleteRuleClick:n=>{e(M(n))},onEditRuleClick:n=>{n!=null?(e(m(n)),a(`./${n}/edit`)):(e(m()),a("./new"))}}})(N(O)),P=()=>{const e=C(),r=I(),a=A(),[l,n]=p.useState(!1),[d,y]=p.useState(!1),h=u(s=>s.remiSetupApproverViewState.fetchState),o=u(s=>T(s)),w=$(),i=u(s=>g(s)),v=u(s=>S(s).remiSetupApproverViewUpdateData);if(p.useEffect(()=>{v?.updateStatus.fetchState==="Completed"&&a(U())},[v]),p.useEffect(()=>{l||h!=="Not-Started"||(n(!0),a(V(!0)))},[l,h,a]),B.getSignedInUser()==null)throw Error("Can't access reimbursement approval without signing in...");p.useEffect(()=>{i.allApprovalRules.length===0&&i.fetchState==="Completed"&&(d||(y(!0),a(m())),e("./new"))},[d,i,a]);const j={events:o.companyId!=null?[`private-${o.companyId}.${f}`]:[],eventCallback:(s,q,R)=>{s.endsWith(f)&&R.onApprovalRulesEventReceived(s)}};return o.companyReimbursementInfo?.info?.isReimbursementTOSAccepted===!1?t.jsx(k,{to:"../../promo"}):o.companyReimbursementInfo?.info?.isReimbursementTOSAccepted!==!0||i.fetchState!=="Completed"&&i.fetchState!=="Error"?t.jsx(F,{fetchState:"In-Progress",style:{backgroundColor:w.colors.grey5}}):t.jsx(z,{currentTenant:o,location:r,navigate:e,...j})};function Z(){return t.jsxs(D,{children:[t.jsx(c,{path:"/",element:t.jsx(P,{})}),t.jsx(c,{path:"/new",element:t.jsx(b,{})}),t.jsx(c,{path:"/:approvalRuleId/edit",element:t.jsx(b,{})}),t.jsx(c,{path:"*",element:t.jsx(x,{})})]})}export{Z as R};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-CGYIz1sf.js";import{i as x,z as w,aI as b,O as E,d as p,f as F,cy as P,s as L}from"./index-DO3Ev_EW.js";import"./mui-COKu087d.js";import l from"./NotFoundScreen-BOOShTFL.js";import{a as d}from"./sentry-ClGNqxTu.js";import{h as T,g as y,j as V,u as A,k as R,n as U,o as u}from"./core--8kDo-LJ.js";import{eM as z,Pe as C,M4 as M,Pf as k,to as O,eZ as Y,Pg as G,tm as Z}from"./zeni-epic-state-Cb3mJiT_.js";import{R as j}from"./ReferralListScreen-CT6Goua6.js";import"./recharts-jENt1xXk.js";import"./analytics-D76TbnBG.js";import"./plaid-DzMABTsR.js";import"./dnd-C7FILogn.js";import"./stripe-DMRn4zHo.js";import"./lottie-BwZdyUox.js";import"./lexical-roIufkFt.js";import"./pdf-CBQkrKS2.js";import"./utils-C9gYeSwW.js";import"./useAskAiCfoHostNavButtonProps-BECmuzX_.js";import"./useFetchSuggestedQuestionsWhenReady-CapxOzLt.js";import"./MobileAppDrawer-jslKljAh.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]="3a421300-b92d-4b3d-8b70-4370dce4ecf0",e._sentryDebugIdIdentifier="sentry-dbid-3a421300-b92d-4b3d-8b70-4370dce4ecf0")}catch{}})();const q=R(function(e,t){const n=C(e);return{inviteFormView:n.localData,submitStatus:n.saveStatus,userName:t.userName,rewardsPlan:n.rewardsPlan,companyLegalName:t.companyName}},function(e,t){const{navigate:n}=t,i=w.getSignedInUser();return{onDismissClick:()=>{e(k()),n("..")},onSendClick:()=>{if(i!=null){const s=[],r=[];t.inviteFormCompayData.forEach(c=>{s.push(c.companyName),r.push(c.emailIds[0])}),p.trackInviteEmailClicked("send",s,r,s.length)}e(Z())},onUpdateInviteFormLocalData:s=>{e(G({localData:s}))},onSubmitSuccess:()=>{n("../../")},onCancelClick:()=>{i!=null&&p.trackInviteEmailClicked("cancel")}}})(P),B=()=>{const e=T(),[t,n]=d.useState(!1),[i,s]=d.useState(!1),r=y(o=>z(o)),c=V(),_=A(),{useDynamicConfig:g}=x(),f=w.getSignedInUser();if(f==null)throw Error("Can't access invite referral screen without signing in...");const m=y(o=>C(o)),v=f?.firstName!=null?f.firstName:"User",{configValue:h}=g(b.zeniCardsConfig),{configValue:D}=g(b.zeniAccountsConfig),I=M(D);d.useEffect(()=>{e(k()),r?.rewardsLastViewedTime==null&&i===!1&&(e(O()),s(!0))},[]),d.useEffect(()=>{t||m.fetchState!=="Not-Started"||(n(!0),e(Y(!0)))},[m.fetchState,e]);const N=r.company?.companyInfo.companyLegalName??r.companyName;return a.jsxs(a.Fragment,{children:[m.fetchState==="Completed"?a.jsx(E,{analytics:p,onLoad:o=>(S=>S.trackPageLoaded(F.Event.inviteEmailViewed))(o)}):null,a.jsx(q,{navigate:c,location:_,currentTenant:r,companyName:N,userName:v,inviteFormCompayData:m.localData,chargeCardCashbackRatePerTransaction:h.charge_card_cashback_rate_per_transaction!=null?h.charge_card_cashback_rate_per_transaction:.0175,maxAnnualPercentageYield:I.maxAnnualPercentageYield})]})};function fe(){const{useFeatureGate:e}=x(),{isFeatureEnabled:t}=e(L.isReferralFeatureEnabled);return a.jsxs(U,{children:[a.jsx(u,{path:"/",element:t?a.jsx(j,{}):a.jsx(l,{})}),a.jsx(u,{path:"how-it-works",element:t?a.jsx(j,{isReferralDrawerOpen:!0}):a.jsx(l,{})}),a.jsx(u,{path:"refer/*",element:t?a.jsx(B,{}):a.jsx(l,{})}),a.jsx(u,{path:"*",element:a.jsx(l,{})})]})}export{fe as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as f}from"./liveblocks-CGYIz1sf.js";import{a as u,b as T,q as A}from"./sentry-ClGNqxTu.js";import{h as D,j as z,g as c,u as M,N as j,k as O}from"./core--8kDo-LJ.js";import{u as F,z as s,h as P,d as E,D as N,e as _,f as B,y as V,g as $,j as q,k as v}from"./index-DO3Ev_EW.js";import{eM as J,Ie as Q,If as R,eN as W,fi as H,Il as G,fF as K,cR as X,Im as b,In as Y,Io as Z,bQ as y}from"./zeni-epic-state-Cb3mJiT_.js";import"./mui-COKu087d.js";import{u as ee}from"./useDeviceId-CESE7gTF.js";import{f as te}from"./analyticsHelper-BvhlneFh.js";import{t as ne}from"./getLocaleForTenant-BNCERJ--.js";import"./recharts-jENt1xXk.js";import"./analytics-D76TbnBG.js";import"./plaid-DzMABTsR.js";import"./dnd-C7FILogn.js";import"./stripe-DMRn4zHo.js";import"./lottie-BwZdyUox.js";import"./lexical-roIufkFt.js";import"./pdf-CBQkrKS2.js";import"./utils-C9gYeSwW.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]="3986738b-a8cc-4d13-bbde-1111ee6ee4cf",t._sentryDebugIdIdentifier="sentry-dbid-3986738b-a8cc-4d13-bbde-1111ee6ee4cf")}catch{}})();const ie=O(function(t,i){const d=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:d,sendMagicLinkStatus:g,magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:l}},function(t,i){const{location:d,navigate:g}=i;return console.warn(JSON.stringify(window.location)),{onOAuthError:(n,a)=>{A({message:`OAuth error from provider ${a} with error ${n}`,level:"error",tags:{authProvider:a,errorType:"zeni.login.error"},extra:{error:n,windowLocation:window.location.href}})},onOAuthSuccess:(n,a)=>{const 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(d.state!=null?d.state.origin:"")}))},getSignedInUser:()=>s.getSignedInUser(),onSignedInCallback:()=>{const n=d.state?.origin;n&&n!=="/"?g(n,{replace:!0}):window.open(window.location.origin,"_self")},sendMagicLink:n=>{const{deviceId:a}=i;a!=null&&(s.saveMagicLinkEmail(n),t(Y(n,a)))},clearSignInError:()=>{t(b())}}})(q),ae=T.memo(ie);function ve({setTenantEmailDomain:t}){const i=D(),d=z(),{clearAllLoading:g}=F(),n=s.getSignedInUser();u.useLayoutEffect(()=>{g()},[g]);const a=ee(),l=c(e=>e.tenantState.magicLinkCodeVerifier),{sendEmailMagicLinkFetchState:h,accountLocked:C,accountUnlockTime:k}=c(e=>e.tenantState),p=c(e=>e.tenantState.fetchState),L=c(e=>e.tenantState.activeTenantFetchState.fetchState),I=c(e=>e.tenantState.signInState),o=c(e=>e.tenantState.loggedInUser),r=c(e=>J(e)),S=c(e=>Q(e)),m=M(),w=P().mode,U=m.state?.magicLinkExpired,x=m.state?.magicLinkAlreadyUsed;if(u.useEffect(()=>{h.fetchState==="Completed"&&l!=null&&(E.trackSignInLinkSent(),s.saveMagicLinkCodeVerifier(l))},[h.fetchState,l]),u.useEffect(()=>{t(void 0)},[]),u.useEffect(()=>{I!=="In-Progress"||p!=="Completed"&&L!=="Completed"||o?.zeniSessionId==null||r==null||(s.savePayNowInfoTooltip(!0,o.zeniSessionId),s.saveSignedInUserWithSession(o,o.zeniSessionId),s.saveSignedInUserTenants(R(S.tenantsInOrder),o.zeniSessionId),W(o.userId,o.zeniSessionId,r.tenantId),i(H(r.tenantId)),s.saveActiveTenantDomainForUser(r.tenantEmailDomain),i(G("Completed")),N.updateAppLocaleID(ne(r)),te(o,r,w,void 0,S.tenantsInOrder),K().then(()=>{const e=$();e!=null&&_(e)}),setTimeout(()=>{E.trackLogin(B.Event.loginSuccess,o.authProvider??"google",X(r.productSettings))},2e3))},[I,p,L,o,r,S,w,m.state,i]),I==="In-Progress"&&p==="Completed"&&o?.zeniSessionId!=null&&r!=null||n!=null){const e=m.state?.origin??"/";return f.jsx(j,{to:e,state:{...m.state,origin:""}})}return f.jsxs(f.Fragment,{children:[f.jsx(ae,{magicLinkExpired:!!U,magicLinkAlreadyUsed:!!x,magicLinkExpiredEmail:s.getMagicLinkEmail()??void 0,location:m,navigate:d,deviceId:a??void 0,showEmailLogin:!0}),C===!0&&k!=null?f.jsx(V,{onClose:()=>i(b()),unlockDate:k}):null]})}export{ve as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-CGYIz1sf.js";import{a as n}from"./sentry-ClGNqxTu.js";import{h as c,u as m,j as p,N as g}from"./core--8kDo-LJ.js";import{z as d,v as y,t as h,d as f,f as b}from"./index-DO3Ev_EW.js";import{IB as I,Ij as x,IC as j}from"./zeni-epic-state-Cb3mJiT_.js";import{n as v}from"./mui-COKu087d.js";import"./recharts-jENt1xXk.js";import"./analytics-D76TbnBG.js";import"./plaid-DzMABTsR.js";import"./dnd-C7FILogn.js";import"./stripe-DMRn4zHo.js";import"./lottie-BwZdyUox.js";import"./lexical-roIufkFt.js";import"./pdf-CBQkrKS2.js";import"./utils-C9gYeSwW.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]="31fdf977-a47a-4655-b7e9-40586787dd85",e._sentryDebugIdIdentifier="sentry-dbid-31fdf977-a47a-4655-b7e9-40586787dd85")}catch{}})();function $(){const e=c(),t=m(),i=p(),a=n.useRef(!1),l=d.isSignedIn(),r=t.state?.message==="logout",o=r||l;return n.useEffect(()=>{o&&!a.current&&(a.current=!0,setTimeout(()=>{try{d.clearAll(),e(I()),e(x(!1)),j(),h.reset(),f.trackLogout(b.Event.logoutSuccess),f.resetUserIdentity()}catch(u){console.error("Error during sign out:",u)}finally{r||i("/signin/auth",{replace:!0})}},0))},[o,r]),o?s.jsx(w,{children:s.jsx(y,{fetchState:"In-Progress"})}):s.jsx(g,{to:"../",replace:!0})}const w=v.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 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./liveblocks-CGYIz1sf.js";import i from"./NotFoundScreen-BOOShTFL.js";import{T as r}from"./TransactionDetailScreen-CfRj9Znj.js";import"./sentry-ClGNqxTu.js";import{n as d,o as e}from"./core--8kDo-LJ.js";import"./zeni-epic-state-Cb3mJiT_.js";import"./recharts-jENt1xXk.js";import"./index-DO3Ev_EW.js";import"./mui-COKu087d.js";import"./analytics-D76TbnBG.js";import"./plaid-DzMABTsR.js";import"./dnd-C7FILogn.js";import"./stripe-DMRn4zHo.js";import"./lottie-BwZdyUox.js";import"./lexical-roIufkFt.js";import"./pdf-CBQkrKS2.js";import"./utils-C9gYeSwW.js";import"./useAskAiCfoHostNavButtonProps-BECmuzX_.js";import"./useFetchSuggestedQuestionsWhenReady-CapxOzLt.js";import"./decodeURIComponentSafe-C7w4UFFF.js";import"./routePaths-BOWJQWRe.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new o.Error().stack;n&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[n]="256f287b-7a3d-4d6d-890e-a8cb9db8b86d",o._sentryDebugIdIdentifier="sentry-dbid-256f287b-7a3d-4d6d-890e-a8cb9db8b86d")}catch{}})();function q(){return t.jsxs(d,{children:[t.jsx(e,{path:"/:transactionTypeEncoded/:transactionId",element:t.jsx(r,{})}),t.jsx(e,{path:"/:transactionTypeEncoded/:transactionId/page-not-found",element:t.jsx(i,{})}),t.jsx(e,{path:"/:transactionTypeEncoded/:transactionId/vendor/create",element:t.jsx(r,{})}),t.jsx(e,{path:"/*",element:t.jsx(r,{})})]})}export{q as default};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./liveblocks-CGYIz1sf.js";import{j as U,u as B,h as M,l as R,g as f,N as F,k as N,n as Ie,o as k}from"./core--8kDo-LJ.js";import{ci as V,eM as D,My as P,D3 as ae,fc as H,CN as ne,MA as we,D6 as Te,Mw as ke,Mx as se,MO as be,Bd as Ae,s2 as je,MC as Ee,Dh as ve,Mz as re,cL as J,w8 as oe,eR as De,eT as Le,NJ as Fe,NK as Ue,CO as Be,NL as Me,CP as Pe,CY as Oe,bu as Re,bC as Ne,ct as Ve,bD as _e,cN as ze,fb as $e,br as Ge,Ig as Ze,ch as He}from"./zeni-epic-state-Cb3mJiT_.js";import{S as _,al as Je,z as j,O as z,d as b,bX as We,bY as qe,bZ as Z,J as W,h as Ke,N as Ye,M as Qe,i as ie,s as v,A as Xe,v as et,b_ as tt,ao as q,r as at,b$ as nt,q as K,c0 as st,m as Q,c1 as rt,a4 as ot}from"./index-DO3Ev_EW.js";import{D as it,n as O,S as ct}from"./mui-COKu087d.js";import lt from"./NotFoundScreen-BOOShTFL.js";import{S as X}from"./SetupPagesScreen-BCxvmwj2.js";import{a as d}from"./sentry-ClGNqxTu.js";import{u as ut}from"./useAskAiCfoHostNavButtonProps-BECmuzX_.js";import{c as dt}from"./useFetchSuggestedQuestionsWhenReady-CapxOzLt.js";import{M as ce}from"./MobileAppDrawer-jslKljAh.js";import{F as pt}from"./FeaturePreviewScreen-DgltNyCi.js";import{a as ee}from"./analyticsHelper-BvhlneFh.js";import"./recharts-jENt1xXk.js";import"./analytics-D76TbnBG.js";import"./plaid-DzMABTsR.js";import"./dnd-C7FILogn.js";import"./stripe-DMRn4zHo.js";import"./lottie-BwZdyUox.js";import"./lexical-roIufkFt.js";import"./pdf-CBQkrKS2.js";import"./utils-C9gYeSwW.js";import"./routePaths-BOWJQWRe.js";import"./BusinessVerificationPageScreen-BCq9-s11.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]="e791011f-d7ba-4221-8ee2-d4082f0df72d",t._sentryDebugIdIdentifier="sentry-dbid-e791011f-d7ba-4221-8ee2-d4082f0df72d")}catch{}})();const mt=N(function(t,a){const{companyId:n}=a;return{treasurySetupView:P(t,n),analytics:b}},function(t,a){const{navigate:n,analytics:o,treasurySetupView:p}=a;return{onBackClick:()=>{n("../")},onNextClick:()=>{const r=p.fundAllocationLocalData;o.trackTreasuryPortfolioConfirm(r.riskScore,ee(r)),t(Te(!0))},onUpdateFundAllocation:r=>{o.trackTreasuryAllocationAction("update",ee(r)),t(we(r))}}})(We);function ft(){const t=U(),a=B(),n=M(),{tenantEmailDomain:o}=R(),p=_(),r=f(T=>T.treasurySetupViewState.portfolioAllocationUpdateStatus?.fetchState),m=Je(r),s=V(p?.loggedInUserRoleMap),[c,i]=d.useState(!1),[y,w]=d.useState(!1),[u,l]=d.useState(!1),g=f(T=>D(T)),h=j.getSignedInUserTenant(o)?.companyId??g.companyId,C=j.getSignedInUser(),S=f(T=>P(T,h)),I=f(T=>T.treasurySetupViewState.fetchState),x=f(T=>T.treasurySetupViewState.currentAllocation.fetchStatus?.fetchState),L=f(T=>T.treasurySetupViewState.treasuryFundsDetails?.fetchStatus?.fetchState);if(C==null)throw Error("Can't access treasury portfolio allocation page without signing in...");if(d.useEffect(()=>{c||I!=="Not-Started"||h==null||(i(!0),n(ae(h,!0,!1)))},[c,I,h,n]),d.useEffect(()=>{u||L!=="Not-Started"||h==null||(l(!0),n(H()))},[u,L,h,n]),d.useEffect(()=>{y||x!=="Not-Started"||h==null||(w(!0),n(ne()))},[y,x,h,n]),d.useEffect(()=>{m==="In-Progress"&&r==="Completed"&&t("../")},[m,r,t]),g.companyTreasuryInfo?.info?.isTreasuryTOSAccepted===!1)return e.jsx(F,{to:"../promo"});const E=g.companyTreasuryInfo?.info?.isTreasuryTOSAccepted!==!0||I!=="Completed";return e.jsxs(e.Fragment,{children:[!E&&e.jsx(z,{analytics:b,onLoad:()=>{}}),e.jsx(mt,{navigate:t,location:a,companyId:h,isEditMode:!0,isLoading:E,isReadOnly:!s,treasurySetupView:S,analytics:b})]})}const yt=N(function(t,a){const n=a.currentTenant?.companyId;return{plaidConnectionDetails:be(t,n,"zeni_treasury","treasury_setup").plaidConnectionDetails,treasurySetupView:P(t,n)}},function(t,a){const{navigate:n,transferDetails:o,treasurySetupView:p}=a,r=o.treasuryTransferMoneyLocalData,m=p.fundAllocationLocalData;return{onCancelClick:()=>{Z(a.analytics,"cancel",r,m,"Transfer"),t(se()),n("../")},onTransferClick:()=>{Z(a.analytics,"confirm",r,m,"Transfer"),t(ve())},onSaveChangesToLocalStore:s=>{t(Ee(s))},onFetchLinkTokenClick:s=>{t(je("treasury_setup",s))},onEstablishConnectionClick:s=>{t(Ae(s,a.currentTenant?.companyId,"treasury_setup","zeni_treasury"))}}})(qe),gt=({isFirstTransfer:t})=>{const a=U(),{tenantEmailDomain:n}=R(),o=M(),[p,r]=d.useState(!1),[m,s]=d.useState(!1),[c,i]=d.useState(!1),[y,w]=d.useState(!1),u=f(x=>x.treasurySetupViewState.fetchState),l=f(x=>x.treasurySetupViewState.treasuryFundsDetails?.fetchStatus?.fetchState),g=f(x=>x.treasurySetupViewState.currentAllocation.fetchStatus?.fetchState),h=f(x=>D(x)),C=j.getSignedInUserTenant(n)?.companyId??h.companyId,S=f(x=>ke(x)),I=f(x=>P(x,C));if(j.getSignedInUser()==null)throw Error("Can't access treasury transfer page without signing in...");return d.useEffect(()=>{m||u!=="Not-Started"||C==null||(s(!0),o(ae(C,!0,!1)))},[m,u,C,o]),d.useEffect(()=>{c||l!=="Not-Started"||C==null||(i(!0),o(H()))},[c,l,C,o]),d.useEffect(()=>{y||g!=="Not-Started"||C==null||(w(!0),o(ne()))},[y,g,C,o]),e.jsxs(e.Fragment,{children:[e.jsx(z,{analytics:b,onLoad:()=>{}}),e.jsx(yt,{analytics:b,navigate:a,transferDetails:S,onAnotherTransferClick:()=>{r(!1),o(se())},currentTenant:h,treasurySetupView:I,showReviewContent:p,maxInsuredAmount:5e5,onReviewClick:()=>{Z(b,"review",S.treasuryTransferMoneyLocalData,I.fundAllocationLocalData,"Transfer"),r(!0)},isFirstTransfer:t,setShowReviewContent:r,onBackClick:()=>{}})]})},ht=O.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: ${t=>t.theme.colors.grey4};
|
|
9
|
-
`,St={overlayWidth:new Xe(100,100,48)},xt=N(function(t,a){const n=re(t),{companyId:o}=a;return{treasuryDetail:n,treasurySetupView:P(t,o),downloadEndPoint:`${q.bankingMicroServiceBaseUrl}/1.0/treasury-account/statements?query={"statement_type":"tax_statement"}`}},function(t,a){const{navigate:n,currentTenant:o,location:p,handleDrawerToggle:r,analytics:m}=a,{tenantEmailDomain:s}=o;return{onSettingsClick:()=>{m.trackAccountsListPageClicked("Settings Icon"),n("setup")},onReloadTransactions:()=>{t(oe(!0))},handleTreasuryOptionSelection:c=>{let i="page-not-found";c==="editPortfolio"?i=Ct(s):c==="statements"?i=It(s):c==="taxLetter"?i=wt(s):c==="settings"&&(i=Tt(s));const y=at(p.state?.pathnameStackToGoBack,p.pathname);n(i,{state:{pathnameStackToGoBack:y}})},onColumnSortConfigChanged:(c,i)=>{t(Fe({uiState:{sortKey:c,sortOrder:i}}))},onTransferClick:()=>{n("./transfer")},onBackClick:()=>{n("../../")},onClickMenuIcon:()=>{r(!0)},onAutoTransferClick:()=>{n("../../checking/auto-transfer")}}})(tt);function G({isTransferDrawerOpen:t,isEditPortfolioDrawerOpen:a}){const n=B(),o=U(),p=M(),r=W(),m=Ke(),s=f(A=>D(A)),{tenantEmailDomain:c}=R(),i=s.companyId??j.getSignedInUserTenant(c)?.companyId,[y,w]=d.useState(!1),u=f(A=>re(A)),l=u.fetchState,g=u.accountSummary?.totalBalance?.amount,h=f(A=>A.treasurySetupViewState.treasuryFundsDetails?.fetchStatus),C=s.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",S=_(),I=!!s.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,x=V(S?.loggedInUserRoleMap),L=J(S?.loggedInUserRoleMap),{areTenantIdsInSync:E}=Ye();d.useEffect(()=>{l==="Not-Started"&&!y&&E&&(w(!0),p(oe(!0)))},[y,p,l,E]),d.useEffect(()=>{u.transactionsFetchState.fetchState==="Completed"&&u.transactions.length===0&&!n.pathname.includes("transfer")&&x&&o("./transfer")},[u.transactionsFetchState.fetchState,u.transactions.length]);const T=()=>{o("..")},[le,ue]=d.useState(!1),Y=A=>{ue(A)},{isAiCfoOpen:de,setIsAiCfoOpen:pe}=Qe(),{isAiCfoAccessEnabled:me,onAskAiCfoClick:fe}=ut({isAiCfoOpen:de,setIsAiCfoOpen:pe,mobileExploreReferrer:"Treasury"});dt({isDataReady:l==="Completed"});const{useFeatureGate:$}=ie(),{isFeatureEnabled:ye}=$(v.isDebitCardFeatureEnabled),{isFeatureEnabled:ge}=$(v.isAutoTransferRuleEnabled),{isFeatureEnabled:he}=$(v.isTreasuryCommentingEnabled),Se=De(s),xe=Le(ye,s);if(Se===!0&&xe!==!0)return e.jsx(pt,{});if(C){const A=h?.fetchState!=="Completed"||u.accountSummaryFetchState.fetchState!=="Completed";return e.jsxs(e.Fragment,{children:[u.accountSummaryFetchState.fetchState==="Completed"&&h?.fetchState==="Completed"&&t===!1&&a===!1?e.jsx(z,{analytics:b,onLoad:()=>{}}):null,e.jsx(it,{onClose:T,anchor:"right",open:a||t,transitionDuration:250,PaperProps:{style:{width:St.overlayWidth.valuePercentage(r),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:m.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsxs(kt,{onClick:Ce=>Ce.stopPropagation(),children:[t===!0?e.jsx(gt,{isFirstTransfer:u.transactions.length===0||g===0}):null,a===!0?e.jsx(ft,{}):null]})}),e.jsxs(ht,{windowSize:r,children:[e.jsx(ce,{isAppContentDrawerOpen:le,handleDrawerToggle:Y}),e.jsx(xt,{treasuryDetailsView:u,isAutoTransferRuleEnabled:ge,navigate:o,currentTenant:s,location:n,companyId:i,analytics:b,isTreasuryCommentingEnabled:he,handleDrawerToggle:Y,isLoading:A,isAiCfoAccessEnabled:me,onAskAiCfoClick:fe})]})]})}return I&&x?e.jsx(F,{to:"../setup"}):s.companyTreasuryInfo?.info&&!I&&L?e.jsx(F,{to:"../promo",state:n.state}):e.jsx(et,{fetchState:"In-Progress",style:{backgroundColor:m.colors.grey5}})}const Ct=t=>`/${t}/treasury/edit-portfolio`,It=t=>`/${t}/treasury/statements`,wt=t=>`/${t}/treasury/tax-letter`,Tt=t=>`/${t}/treasury/setup`,kt=O(ct)`
|
|
10
|
-
display: flex;
|
|
11
|
-
min-height: 100%;
|
|
12
|
-
flex-direction: column;
|
|
13
|
-
`,bt=O.div`
|
|
14
|
-
display: flex;
|
|
15
|
-
height: 100vh;
|
|
16
|
-
width: 100%;
|
|
17
|
-
flex: 1 1 auto;
|
|
18
|
-
flex-direction: column;
|
|
19
|
-
align-items: center;
|
|
20
|
-
background-color: ${t=>t.theme.colors.grey4};
|
|
21
|
-
`;function At(){const t=U(),a=M(),n=W(),o=B(),p=`${q.bankingMicroServiceBaseUrl}/1.0/treasury-account`,[r,m]=d.useState(!1),s=f(l=>Ue(l));d.useEffect(()=>{r||s.fetchState!=="Not-Started"||(m(!0),a(Be(!1)))},[r,s.fetchState,a]);const c=j.getSignedInUser(),i=f(l=>D(l)),y={userId:c?.userId??"",sessionId:c?.zeniSessionId??"",tenantId:i.tenantId??""},w=i.company?.companyInfo.companyLegalName??i.companyName;if(c==null)throw Error("Can't access statements page without signing in...");const u=s.fetchState!=="Completed";return e.jsx(bt,{windowSize:n,children:e.jsx(nt,{currentTenantCompanyName:w,statementListView:s,isLoading:u,onBackClick:()=>{const l=K(o.state?.pathnameStackToGoBack),g=l.poppedPathname??"..";t(g,{state:{pathnameStackToGoBack:l.newStack}})},authParams:y,downloadEndPoint:p})})}const jt=O.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: ${t=>t.theme.colors.grey4};
|
|
29
|
-
`;function Et(){const t=U(),a=W(),n=B(),o=M(),p=`${q.bankingMicroServiceBaseUrl}/1.0/treasury-account`,[r,m]=d.useState(!1),s=f(l=>Me(l));d.useEffect(()=>{r||s.fetchState!=="Not-Started"||(m(!0),o(Pe(!1)))},[r,s.fetchState,o]);const c=j.getSignedInUser(),i=f(l=>D(l)),y={userId:c?.userId??"",sessionId:c?.zeniSessionId??"",tenantId:i.tenantId??""},w=i.company?.companyInfo.companyLegalName??i.companyName;if(c==null)throw Error("Can't access tax letter page without signing in...");const u=s.fetchState!=="Completed";return e.jsx(jt,{windowSize:a,children:e.jsx(st,{currentTenantCompanyName:w,taxLetterListView:s,isLoading:u,onBackClick:()=>{const l=K(n.state?.pathnameStackToGoBack),g=l.poppedPathname??"..";t(g,{state:{pathnameStackToGoBack:l.newStack}})},authParams:y,downloadEndPoint:p})})}const vt=N(function(t,a){const{companyId:n}=a,o=P(t,n);return{treasurySetupView:o,isSetupComplete:o.companyTreasuryInfo?.businessVerificationStatus?.code==="verified",videoUrl:"https://www.youtube.com/watch?v=sqvJWKCMZgk",meetingUrl:"https://meetings.hubspot.com/yoshi-araki/treasury-product-schedule-demo-link?embed=true"}},function(t,a){const{navigate:n,companyId:o}=a;return{onSetupButtonClick:()=>{t(Oe(o))},onBackClick:()=>{n("../..",{relative:"path"})},onTreasurySetupSuccess:p=>{n(p?"..":"../setup",{relative:"path"})}}})(rt),Dt=()=>{const t=U(),a=B(),n=M(),{tenantEmailDomain:o}=R(),[p,r]=d.useState(!1),m=f(S=>D(S)),[s,c]=d.useState(!1),i=f(S=>S.treasurySetupViewState.treasuryFundsDetails?.fetchStatus);d.useEffect(()=>{s||i?.fetchState!=="Not-Started"||y==null||(c(!0),n(H()))},[i,n]);const y=j.getSignedInUserTenant(o)?.companyId??m.companyId,w=j.getSignedInUser(),u=!!m.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,l=S=>{r(S)};if(w==null)throw Error("Can't access treasury promo page without signing in...");const g=_(),h=V(g?.loggedInUserRoleMap),C=J(g?.loggedInUserRoleMap);if(u&&h)return e.jsx(F,{to:"../../treasury/setup"});if(m.company?.companyTreasuryInfo&&(!u&&h||C)){if(a.state?.message==="activation"){const S=K(a.state?.pathnameStackToGoBack);t(a.pathname,{state:{...a.state,message:void 0,pathnameStackToGoBack:S.newStack}})}return i?.fetchState!=="Completed"?e.jsx(te,{children:e.jsx(Q,{size:"ExtraLarge",start:!0})}):e.jsxs(e.Fragment,{children:[e.jsx(z,{analytics:b,onLoad:S=>(I=>I.trackTreasuryPromoView("Treasury Promo Page"))(S)}),e.jsx(ce,{isAppContentDrawerOpen:p,handleDrawerToggle:l}),e.jsx(vt,{analytics:b,navigate:t,companyId:y,onClickMenuIcon:()=>{l(!0)}})]})}return e.jsx(te,{children:e.jsx(Q,{size:"ExtraLarge",start:!0})})},te=O.div`
|
|
30
|
-
display: flex;
|
|
31
|
-
width: 100%;
|
|
32
|
-
height: 100%;
|
|
33
|
-
flex-direction: row;
|
|
34
|
-
justify-content: center;
|
|
35
|
-
align-items: center;
|
|
36
|
-
background-color: ${t=>t.theme.colors.grey5};
|
|
37
|
-
`;function ta(){const t=B(),a=f(E=>D(E)),{useFeatureGate:n}=ie(),{isFeatureEnabled:o}=n(v.isTreasuryEnabled),p=!!a.company?.companyTreasuryInfo?.isTreasuryTOSAccepted,r=_(),m=J(r?.loggedInUserRoleMap),s=a?.userRole!=null&&Re(a?.userRole),c=(a?.company==null||a.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!s)&&Ne(r?.loggedInUserRoleMap),i=Ve(r?.loggedInUserRoleMap),y=(a?.company==null||a.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!s)&&_e(r?.loggedInUserRoleMap),{isFeatureEnabled:w}=n(v.isDepositAccountsFeatureEnabled),u=w&&!s&&ze(r?.loggedInUserRoleMap),l=a.company!=null&&$e(a.company),g=o&&l===!0&&!s&&V(r?.loggedInUserRoleMap),{isFeatureEnabled:h}=n(v.isChargeCardFeatureEnabled),{isFeatureEnabled:C}=n(v.isDebitCardFeatureEnabled),S=ot(a,h,C)&&!s&&Ge(r?.loggedInUserRoleMap),I=Ze(r?.loggedInUserRoleMap),x=He(r?.loggedInUserRoleMap),L=a.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified";return e.jsxs(Ie,{children:[x?null:e.jsx(k,{path:"setup",element:e.jsx(X,{isBillPayAdminLevelAccess:c,isReimbursementAdminLevelAccess:y,isZeniAccountAdminLevelAccess:u,isChargeCardAdminLevelAccess:S,isTreasuryAdminLevelAccess:g,isUserHasOnlyCardAccess:I,isUserHasOnlyBillPayAccess:i,productType:"zeni_treasury",type:"setup"})}),x?null:e.jsx(k,{path:"verification",element:e.jsx(X,{isBillPayAdminLevelAccess:c,isUserHasOnlyBillPayAccess:i,isReimbursementAdminLevelAccess:y,isZeniAccountAdminLevelAccess:u,isChargeCardAdminLevelAccess:S,isTreasuryAdminLevelAccess:g,isUserHasOnlyCardAccess:I,productType:"zeni_treasury",type:"verification"})}),e.jsx(k,{path:"promo",element:e.jsx(Dt,{})}),e.jsx(k,{path:"statements",element:e.jsx(At,{})}),e.jsx(k,{path:"tax-letter",element:e.jsx(Et,{})}),L?e.jsxs(e.Fragment,{children:[e.jsx(k,{path:"/",element:e.jsx(G,{isTransferDrawerOpen:!1,isEditPortfolioDrawerOpen:!1})}),g?e.jsxs(e.Fragment,{children:[e.jsx(k,{path:"edit-portfolio",element:e.jsx(G,{isEditPortfolioDrawerOpen:!0,isTransferDrawerOpen:!1})}),e.jsx(k,{path:"transfer",element:e.jsx(G,{isTransferDrawerOpen:!0,isEditPortfolioDrawerOpen:!1})})]}):null,e.jsx(k,{path:"*",element:e.jsx(lt,{})})]}):p&&g?e.jsx(k,{path:"*",element:e.jsx(F,{to:"../setup"})}):a.company?.companyZeniAccountInfo&&m?e.jsx(k,{path:"*",element:e.jsx(F,{to:"../promo",state:t.state})}):e.jsx(k,{path:"*",element:null})]})}export{ta as default};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./liveblocks-CGYIz1sf.js";import{a as f}from"./sentry-ClGNqxTu.js";import{q as u,h,g as y,N as I}from"./core--8kDo-LJ.js";import{IA as w,eN as b,yV as x}from"./zeni-epic-state-Cb3mJiT_.js";import{z as l,v as j,G as S,I as v}from"./index-DO3Ev_EW.js";import{n as g}from"./mui-COKu087d.js";import"./recharts-jENt1xXk.js";import"./analytics-D76TbnBG.js";import"./plaid-DzMABTsR.js";import"./dnd-C7FILogn.js";import"./stripe-DMRn4zHo.js";import"./lottie-BwZdyUox.js";import"./lexical-roIufkFt.js";import"./pdf-CBQkrKS2.js";import"./utils-C9gYeSwW.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]="820063d6-44d6-4ea9-9831-7183569568cf",e._sentryDebugIdIdentifier="sentry-dbid-820063d6-44d6-4ea9-9831-7183569568cf")}catch{}})();const W=()=>{const[e]=u(),t=e.get("code")??"",s=e.get("state")??"",p=e.get("profileId")??"",[n,c]=f.useState(!1),a=h(),i=y(m=>w(m)),r=l.getSignedInUser(),d=l.getSignedInUserTenantWithId(s);if(r==null||d==null)return o.jsx(I,{to:"/signin/auth",replace:!0});if(r==null)throw Error("Can't access this page without signing in...");return b(r.userId,r.zeniSessionId,d?.tenantId),f.useEffect(()=>{n||(c(!0),a(x(t,p,s)))},[n,a]),i.fetchState==="Error"?o.jsx(D,{children:o.jsx(E,{children:i.error?.message??""})}):(i.fetchState==="Completed"&&window.close(),o.jsx(j,{fetchState:"In-Progress"}))},D=g.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
|
-
`,E=g(v.LargeRegular)`
|
|
10
|
-
display: flex;
|
|
11
|
-
color: ${S.important};
|
|
12
|
-
`;export{W as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as p}from"./sentry-ClGNqxTu.js";import{J as c,a as m,r as u,R as b}from"./index-DO3Ev_EW.js";import"./mui-COKu087d.js";import{b as y}from"./useFetchSuggestedQuestionsWhenReady-CapxOzLt.js";import{j as k,u as g,l as h}from"./core--8kDo-LJ.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]="0d02af89-4d3a-4160-86ff-dad646b0a195",e._sentryDebugIdIdentifier="sentry-dbid-0d02af89-4d3a-4160-86ff-dad646b0a195")}catch{}})();function E(e){const{isAiCfoOpen:a,setIsAiCfoOpen:t,mobileExploreReferrer:n}=e,r=k(),o=g(),{tenantEmailDomain:s}=h(),i=c(),f=b(i),d=m();return{isAiCfoAccessEnabled:y()&&d&&!a,onAskAiCfoClick:p.useCallback(()=>{if(s!=null)if(f){const l=u(o.state?.pathnameStackToGoBack,o.pathname);r(`/${s}/ai-cfo/explore`,{state:{pathnameStackToGoBack:l,referrer:n}})}else t(!0)},[f,o.pathname,o.state,n,r,t,s])}}export{E as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as f}from"./sentry-ClGNqxTu.js";import{h as i,s as d}from"./core--8kDo-LJ.js";import{i as b,s as h,a as g,_ as m,N as C}from"./index-DO3Ev_EW.js";import"./mui-COKu087d.js";import{eJ as l,hA as p}from"./zeni-epic-state-Cb3mJiT_.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]="7774e182-f462-4902-a9fa-d71e846d3e39",e._sentryDebugIdIdentifier="sentry-dbid-7774e182-f462-4902-a9fa-d71e846d3e39")}catch{}})();function x(){const{useFeatureGate:e}=b(),{isFeatureEnabled:t}=e(h.isAiCfoNavButtonEnabled),n=g();return t&&n}function y(e,t){return e!=="Completed"&&e!=="In-Progress"&&!(e==="Error"&&!t)}function I(e){const{areTenantIdsInSync:t}=C(),n=g(),a=x();return t&&e&&a&&n}function _(e){const{pageContexts:t,canFetchSuggestedQuestions:n}=e,a=i(),s=d(),o=f.useRef(null);f.useEffect(()=>{const r=o.current===!1&&n===!0;if(o.current=n,n&&t!=null&&t.length!==0)for(const u of t){const c=l(s.getState(),u)?.fetchState;y(c,r)&&a(p({pageContext:u}))}},[n,a,t,s])}function S(e){(function(t){const{pageContext:n,canFetchSuggestedQuestions:a}=t,s=i(),o=d(),r=f.useRef(null);f.useEffect(()=>{const u=r.current===!1&&a===!0;if(r.current=a,n==null||!a)return;const c=l(o.getState(),n)?.fetchState;y(c,u)&&s(p({pageContext:n}))},[a,s,n,o])})({canFetchSuggestedQuestions:I(e.isDataReady),pageContext:e.pageContext})}function Q(e){S({pageContext:m(),isDataReady:e.isDataReady})}export{_ as a,x as b,Q as c,I as u};
|