@zeniai/web-app-ui 5.0.50-dev → 5.0.51-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-DWrbjJNs.js +1 -0
- package/dist/assets/{AddressScreen-CG7Y9LCR.js → AddressScreen-DXCkYYs1.js} +2 -2
- package/dist/assets/{AiCfoScreen-BHv_YEiT.js → AiCfoScreen-DNTEybEl.js} +2 -2
- package/dist/assets/{BillPayApprovalRoutes-DzK9Peui.js → BillPayApprovalRoutes-C-WSTZM_.js} +1 -1
- package/dist/assets/{BillPayRoutes-BGQsF9KI.js → BillPayRoutes-CtT-MjuJ.js} +10 -10
- package/dist/assets/{BusinessVerificationPageScreen-G0d4DWcD.js → BusinessVerificationPageScreen-BEXBD0Dn.js} +2 -2
- package/dist/assets/{ChargeCardRoutes-A-_iMfY6.js → ChargeCardRoutes-Dgwxt_BK.js} +1 -1
- package/dist/assets/{CompanyPassportScreen-y5Psi01l.js → CompanyPassportScreen-BPgC4BOl.js} +1 -1
- package/dist/assets/{ConnectionAuthScreen-CGum7qb2.js → ConnectionAuthScreen-B8K8h1td.js} +1 -1
- package/dist/assets/CustomerOnboardingAuthScreen-CbTRQNMs.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-B5biRU6G.js → CustomerOnboardingRoutes-FREE25PX.js} +6 -6
- package/dist/assets/{DashboardRoutes-CoX84rfb.js → DashboardRoutes-CLK646F3.js} +3 -3
- package/dist/assets/{DefaultTenantHome-X6Ppp_bY.js → DefaultTenantHome-BIRGhb-C.js} +1 -1
- package/dist/assets/DomesticWireDetailScreen-BwjBhq4V.js +18 -0
- package/dist/assets/DrawerScreen-DrPoYUbV.js +1 -0
- package/dist/assets/{EntityDetailRoutes-DndFUM9d.js → EntityDetailRoutes-q1uQfKGt.js} +1 -1
- package/dist/assets/{ExpenseAutomationRoutes-BYb981OG.js → ExpenseAutomationRoutes-CA4vhSeR.js} +4 -4
- package/dist/assets/FeaturePreviewScreen-DBlYCJp3.js +1 -0
- package/dist/assets/{MagicLinkRoutes-BwvyU6TM.js → MagicLinkRoutes-BNkgXNMn.js} +18 -18
- package/dist/assets/MagicLinkSignInScreen-DKmKbq5s.js +12 -0
- package/dist/assets/{MobileAppDrawer-B8_wUNc8.js → MobileAppDrawer-B-MEl6Pr.js} +1 -1
- package/dist/assets/NotFoundScreen-BRP8HS8l.js +1 -0
- package/dist/assets/{NotificationRoutes-DZjS2vnO.js → NotificationRoutes-CodnfiGT.js} +1 -1
- package/dist/assets/PandLWithForecastRoutes-Cqt4Mbxb.js +1 -0
- package/dist/assets/PeopleRoutes-CbEmcTnR.js +22 -0
- package/dist/assets/PerformanceRoutes-Chmu0GKG.js +1 -0
- package/dist/assets/{Preview-BR5Y7Fx_.js → Preview-BMZj7Qx6.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-C7f8WlkS.js → QBOConnectionScreen-DV4gwH59.js} +1 -1
- package/dist/assets/ReferralListScreen-UiBkpTv8.js +5 -0
- package/dist/assets/{ReimbursementApprovalRoutes-BKCQ0y18.js → ReimbursementApprovalRoutes-CwcfpYay.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-COCqqFcQ.js → ReimbursementApprovalRuleDetailScreen-DuRJ-6c0.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-DDtcreOX.js → ReimbursementRoutes-BoTAYuI6.js} +1 -1
- package/dist/assets/{ReportsRoutes-CpW6z4vr.js → ReportsRoutes-DZgqwBDC.js} +1 -1
- package/dist/assets/RewardsRoutes-DFwaU9pI.js +1 -0
- package/dist/assets/{ScreenRoutes-DIkxeoI4.js → ScreenRoutes-nHFNTxou.js} +2 -2
- package/dist/assets/{SettingsRoutes-B9KcdZ8v.js → SettingsRoutes-DTe_sh71.js} +7 -7
- package/dist/assets/{SetupPagesScreen-wuLTAdjO.js → SetupPagesScreen-CYGAYFJJ.js} +5 -5
- package/dist/assets/SignInScreen-Bx2mz6E4.js +1 -0
- package/dist/assets/SignOutScreen-DHXrWvU0.js +9 -0
- package/dist/assets/{TaskListScreen-Zr0cBoPM.js → TaskListScreen-B8GrOUXD.js} +2 -2
- package/dist/assets/{TaskRoutes-BQMKJnNL.js → TaskRoutes-CyrY5o3m.js} +1 -1
- package/dist/assets/TransactionDetailRoutes-Bt216yC9.js +1 -0
- package/dist/assets/{TransactionDetailScreen-D9qdDaFM.js → TransactionDetailScreen-CWMKD0XK.js} +2 -2
- package/dist/assets/TransactionListRoutes-Cj0QAnVq.js +1 -0
- package/dist/assets/{TreasuryRoutes-Cpm8tRyt.js → TreasuryRoutes-CpAxt3aC.js} +5 -5
- package/dist/assets/{VendorsRoutes-DbohRFhE.js → VendorsRoutes-BjwUy5WX.js} +1 -1
- package/dist/assets/WiseConfirmationScreen-DZdbte2Z.js +12 -0
- package/dist/assets/{ZeniAccountRoutes-DS95IIsz.js → ZeniAccountRoutes-Cwtu_fdF.js} +10 -10
- package/dist/assets/ZeniAccountStatementScreen-B8HJmxiQ.js +9 -0
- package/dist/assets/{accountMappingHelper-BW9iNPHv.js → accountMappingHelper-BsVOojLm.js} +1 -1
- package/dist/assets/{analytics-qscrbzee.js → analytics-B_WIXZZ-.js} +1 -1
- package/dist/assets/{analyticsHelper-BZ5B0dmw.js → analyticsHelper-gIHYS0l5.js} +1 -1
- package/dist/assets/{core-CfaeRlD7.js → core-C8Ce7RKq.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-CYDIk4_q.js → decodeURIComponentSafe-C09T5tHu.js} +1 -1
- package/dist/assets/{dnd-DyHAOpqo.js → dnd-Dz_UnxHi.js} +1 -1
- package/dist/assets/{empty-M5g46l3E.js → empty-DXVcIW-t.js} +1 -1
- package/dist/assets/{empty-D9bKuMR6.js → empty-DarLRnpM.js} +1 -1
- package/dist/assets/{emptyVideoElement-BkAImz2K.js → emptyVideoElement-HVTANIc0.js} +1 -1
- package/dist/assets/{epic-B7RR-Xo_.js → epic-BNtY4z-G.js} +1 -1
- package/dist/assets/getLocaleForTenant-C8abr5CI.js +1 -0
- package/dist/assets/{index-Cz8D_er0.js → index-0ejiEAoP.js} +1 -1
- package/dist/assets/{index-CcRRVT4l.js → index-BXY1Lon_.js} +1 -1
- package/dist/assets/{index-BCRqUhZ8.js → index-CIjLZB-t.js} +1 -1
- package/dist/assets/{index-DjOt89WM.js → index-CpFKPrIm.js} +1 -1
- package/dist/assets/{index-C9OkuORc.js → index-D23zO-Dy.js} +1 -1
- package/dist/assets/{index-CDVullHu.js → index-DW-68HGV.js} +7838 -7859
- package/dist/assets/{index-CEUrEUb2.js → index-DaGUcxN-.js} +2 -2
- package/dist/assets/{lexical-CM9YqJ8L.js → lexical-w_Jr4D84.js} +1 -1
- package/dist/assets/{liveblocks-DweiQ_v8.js → liveblocks-Cm2WXmqn.js} +1 -1
- package/dist/assets/{lottie-Di5PQgnD.js → lottie-D7QFz1Y6.js} +1 -1
- package/dist/assets/{mui-DvrFhyk8.js → mui-CVuRT0sN.js} +1 -1
- package/dist/assets/{pathToGoBack-CiW2GFem.js → pathToGoBack-TyqbfjFF.js} +1 -1
- package/dist/assets/{pdf-xbnDrDpb.js → pdf-Bi5aHmJG.js} +3 -3
- package/dist/assets/{pdf-lib-D4EgiiZX.js → pdf-lib-Dcx04oMz.js} +1 -1
- package/dist/assets/{plaid-fBmva3LS.js → plaid-CgzTOg36.js} +1 -1
- package/dist/assets/{pusher-COcxuLR0.js → pusher-B7691cDP.js} +1 -1
- package/dist/assets/{react-DA52VC6H.js → react-BDf0pLg3.js} +1 -1
- package/dist/assets/{react-D5PfcHgV.js → react-DWbZNE1N.js} +1 -1
- package/dist/assets/{react-BUsoUNaZ.js → react-Da0rTvwA.js} +1 -1
- package/dist/assets/{react-3sHByL2g.js → react-DoZzf_-r.js} +1 -1
- package/dist/assets/{react-DJ-3hWPL.js → react-DqbNowjF.js} +1 -1
- package/dist/assets/{react-5PvS3Oky.js → react-rhVCa0Uo.js} +1 -1
- package/dist/assets/{recharts-BoknSdMu.js → recharts-BH6TG4wC.js} +1 -1
- package/dist/assets/{routePaths-B5ceLAU7.js → routePaths-BfAw__9L.js} +1 -1
- package/dist/assets/{sentry-CRn2Q_8Q.js → sentry-BNeVv9Xp.js} +1 -1
- package/dist/assets/{url-BehnTLmf.js → url-BH5_k4xt.js} +1 -1
- package/dist/assets/{url-CIB2YWjT.js → url-CMRCK-SK.js} +1 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-Dea4SBxl.js +1 -0
- package/dist/assets/{useDeviceId-U3XbS24r.js → useDeviceId-lPzaI6GX.js} +1 -1
- package/dist/assets/{useFetchSuggestedQuestionsWhenReady-BNsbVhjo.js → useFetchSuggestedQuestionsWhenReady-PpxuqW4i.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-CwcABjO1.js → useInitialThreadRequest-ClVlSuhH.js} +1 -1
- package/dist/assets/{utils-CtZe6ZfB.js → utils-CiaaSACw.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-BmeyOpsZ.js → withTransactionSidePanel-CvNdacxU.js} +2 -2
- package/dist/assets/{zeni-epic-state-Cpr4Ydxu.js → zeni-epic-state-D90rdIDd.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/AddressRoutes-BNhMXdn-.js +0 -1
- package/dist/assets/CustomerOnboardingAuthScreen-yhF0y7zQ.js +0 -1
- package/dist/assets/DomesticWireDetailScreen-H5xiqbaY.js +0 -18
- package/dist/assets/DrawerScreen-CogRmSo-.js +0 -1
- package/dist/assets/FeaturePreviewScreen-B3I17i8g.js +0 -1
- package/dist/assets/MagicLinkSignInScreen-BNNuCMcr.js +0 -12
- package/dist/assets/NotFoundScreen-DchuBl3D.js +0 -1
- package/dist/assets/PandLWithForecastRoutes-BQ7IRmsY.js +0 -1
- package/dist/assets/PeopleRoutes-D4QM1tCe.js +0 -22
- package/dist/assets/PerformanceRoutes-FToEQAvh.js +0 -1
- package/dist/assets/ReferralListScreen-M7lAy31e.js +0 -5
- package/dist/assets/RewardsRoutes-CSeJVqFJ.js +0 -1
- package/dist/assets/SignInScreen-BYRmPW_a.js +0 -1
- package/dist/assets/SignOutScreen-Dujyw7Zt.js +0 -9
- package/dist/assets/TransactionDetailRoutes-CPvXK2JX.js +0 -1
- package/dist/assets/TransactionListRoutes-heX_Vwsj.js +0 -1
- package/dist/assets/WiseConfirmationScreen-D2cHAOkB.js +0 -12
- package/dist/assets/ZeniAccountStatementScreen-CEuyWpvi.js +0 -9
- package/dist/assets/getLocaleForTenant-EtfEPIyZ.js +0 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-LDM9a1Ii.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-DW-68HGV.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-BNeVv9Xp.js"><link rel="modulepreload" crossorigin href="/assets/core-C8Ce7RKq.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-D90rdIDd.js"><link rel="modulepreload" crossorigin href="/assets/mui-CVuRT0sN.js"><link rel="modulepreload" crossorigin href="/assets/analytics-B_WIXZZ-.js"><link rel="modulepreload" crossorigin href="/assets/utils-CiaaSACw.js"><link rel="stylesheet" crossorigin href="/assets/index-Bc34frN_.css"></head><body style="margin:0"><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><div class="app-shell-loader" id="app-shell-loader"><div class="app-shell-sidebar"><div class="app-shell-sidebar-group"><div class="app-shell-bar zeni-logo" style="width:96px;height:20px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:78px;height:16px"></div><div class="app-shell-bar" style="width:46px;height:16px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:110px;height:16px"></div><div class="app-shell-bar" style="width:84px;height:16px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:84px;height:16px"></div><div class="app-shell-bar" style="width:64px;height:16px"></div></div></div><div class="app-shell-main"><div class="app-shell-navbar"><div class="app-shell-bar" style="width:106px;height:27px"></div><div class="app-shell-bar" style="width:111px;height:32px"></div></div><div class="app-shell-logo"><svg width="96" height="96" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16.768 0.0270284C16.571 -0.055168 16.348 0.0572476 16.2913 0.267574C16.2713 0.342517 16.2489 0.417461 16.2253 0.491196C16.0094 1.15723 15.6459 1.76645 15.148 2.27776C14.3056 3.14203 13.1847 3.61949 11.9918 3.6207H11.9883C10.7978 3.6207 9.67689 3.14565 8.83445 2.2838C8.33653 1.7737 7.97077 1.16448 7.75367 0.499657C7.73007 0.425922 7.70765 0.350979 7.68641 0.276035C7.62978 0.065709 7.40678 -0.0454978 7.20974 0.0366985C6.05463 0.522624 4.98565 1.17899 4.0323 1.97436C3.91195 2.07468 3.87301 2.24512 3.93083 2.39259C3.9792 2.51589 4.03112 2.63797 4.08539 2.75764C4.51133 3.70894 5.10364 4.5853 5.84815 5.34682C7.48937 7.0246 9.66863 7.9493 11.9871 7.9493H11.9954C14.3162 7.94689 16.4978 7.01855 18.1379 5.33595C18.8812 4.57321 19.4711 3.69564 19.8959 2.74434C19.9502 2.62347 20.0009 2.50138 20.0493 2.37809C20.1071 2.23062 20.0682 2.06018 19.9478 1.95985C18.9933 1.16569 17.9231 0.511745 16.768 0.0270284Z"/><path d="M19.9102 21.2422C19.4843 20.2933 18.8931 19.4194 18.151 18.6603C16.5086 16.9801 14.3223 16.053 12.0038 16.0578C8.50304 16.0614 5.48371 18.1961 4.11031 21.2603C4.05722 21.38 4.0053 21.5009 3.95575 21.623C3.89675 21.7704 3.93569 21.9421 4.05722 22.0436C5.01175 22.8366 6.08073 23.4893 7.23466 23.9728C7.4317 24.055 7.65352 23.9438 7.71134 23.7335C7.73139 23.6573 7.75381 23.5836 7.77859 23.5086C8.37207 21.6979 10.0416 20.3888 12.0073 20.3864H12.012C13.2025 20.3864 14.3234 20.8614 15.1659 21.7233C15.6626 22.231 16.026 22.8378 16.2431 23.5002C16.2679 23.5739 16.2903 23.6489 16.3104 23.7238C16.3682 23.9341 16.59 24.0453 16.787 23.9619C17.9422 23.476 19.01 22.8209 19.9633 22.0255C20.0837 21.9252 20.1226 21.7535 20.0648 21.606C20.0164 21.4828 19.9645 21.3631 19.9102 21.2422Z"/><path d="M0.132148 10.1666C0.158105 9.98769 0.305591 9.85352 0.482575 9.85352L23.5093 9.81726C23.6863 9.81726 23.8338 9.95022 23.8609 10.1291C23.9518 10.7347 23.999 11.3548 23.999 11.9858C24.0001 12.6131 23.9541 13.2284 23.8668 13.8292C23.8408 14.0081 23.6934 14.1422 23.5164 14.1422L0.489654 14.1773C0.312671 14.1773 0.165185 14.0443 0.138047 13.8654C0.0471956 13.2598 0 12.6397 0 12.0088C0 11.3826 0.0448358 10.7673 0.132148 10.1666Z"/></svg></div></div></div></body></html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/web-app-ui",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.51-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.6",
|
|
31
31
|
"@zeniai/client-epic-state": "5.0.24",
|
|
32
|
-
"@zeniai/web-components": "4.0.
|
|
32
|
+
"@zeniai/web-components": "4.0.60",
|
|
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-DweiQ_v8.js";import{A as d}from"./AddressScreen-CG7Y9LCR.js";import i from"./NotFoundScreen-DchuBl3D.js";import"./sentry-CRn2Q_8Q.js";import{n as s,o as r}from"./core-CfaeRlD7.js";import"./zeni-epic-state-Cpr4Ydxu.js";import"./recharts-BoknSdMu.js";import"./index-CDVullHu.js";import"./mui-DvrFhyk8.js";import"./analytics-qscrbzee.js";import"./plaid-fBmva3LS.js";import"./dnd-DyHAOpqo.js";import"./stripe-DMRn4zHo.js";import"./lottie-Di5PQgnD.js";import"./lexical-CM9YqJ8L.js";import"./pdf-xbnDrDpb.js";import"./utils-CtZe6ZfB.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 +0,0 @@
|
|
|
1
|
-
import{j as d}from"./liveblocks-DweiQ_v8.js";import{z as n}from"./index-CDVullHu.js";import{g as p}from"./QBOConnectionScreen-C7f8WlkS.js";import"./sentry-CRn2Q_8Q.js";import{u as a,N as i}from"./core-CfaeRlD7.js";import"./zeni-epic-state-Cpr4Ydxu.js";import"./recharts-BoknSdMu.js";import"./mui-DvrFhyk8.js";import"./analytics-qscrbzee.js";import"./plaid-fBmva3LS.js";import"./dnd-DyHAOpqo.js";import"./stripe-DMRn4zHo.js";import"./lottie-Di5PQgnD.js";import"./lexical-CM9YqJ8L.js";import"./pdf-xbnDrDpb.js";import"./utils-CtZe6ZfB.js";import"./empty-M5g46l3E.js";import"./pdf-lib-D4EgiiZX.js";import"./index-DjOt89WM.js";import"./url-BehnTLmf.js";import"./index-BCRqUhZ8.js";import"./decodeURIComponentSafe-CYDIk4_q.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-DweiQ_v8.js";import{j as w,u as C,g as h,k as A,l as B}from"./core-CfaeRlD7.js";import{Md as k,Mk as _,fA as L,fz as q,fy as J,io as W,Jl as K,pw as Q,eN as V,LL as D,il as T,Me as S,Mn as F,ij as G,iH as j}from"./zeni-epic-state-Cpr4Ydxu.js";import{bm as X,q as N,a as R,z as U,h as z,p,d as v,B as H,bn as Y,o as M,bo as ee,s as te}from"./index-CDVullHu.js";import{n as O}from"./mui-DvrFhyk8.js";import"./sentry-CRn2Q_8Q.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]="d2d0982f-59c4-44a2-9afd-21abfaa16a1f",e._sentryDebugIdIdentifier="sentry-dbid-d2d0982f-59c4-44a2-9afd-21abfaa16a1f")}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(J(a,"BillPayVendor"))},onResendOtp:a=>{e(q(a,"BillPayVendor"))},onVerifyOtp:(a,n)=>{e(L(a,n,"BillPayVendor"))},onVerifyOtpSuccess:(a,n,o)=>{e(_(a,n,o))}}})(X);function Z({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=O.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(S())},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(S())}}})(Y);function fe({vendorIdParam:e,accountContext:t}){const a=w(),n=C(),o=N(),{vendorId:s,billId:r}=B(),c=e??s,{useFeatureGate:d}=R(),i=U.getSignedInUser(),b=h(u=>V(u)),g=z(),x=p(n.state?.pathnameStackToGoBack),f=t??(x.poppedPathname?.includes("vendor")===!0?"vendor":"billDetail"),m=h(u=>k(u,c)),{isFeatureEnabled:I}=d(v.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:y}=d(v.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(H,{fetchState:m.editVendorState?.saveStatus.fetchState??"Not-Started",style:{backgroundColor:g.colors.grey5}}):l.jsxs(ne,{windowSize:o,children:[l.jsx(Z,{vendorId:c,billId:r}),l.jsx(oe,{location:n,navigate:a,billId:r,vendorId:c,currentTenant:b,bankAccountContext:f,isVendorRecommendationEnabled:I,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 Se(e,t,a){return E(e,"ach",t,a)}function ve(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},de=O.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 ${M.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:c}=r;return{onFetchBankName:d=>{e(j(d))},onSaveHandler:d=>{e(G(t.bankAccountContext,d,"us-domestic",s))},onWireDetailsUpdated:d=>{const{bankAccountSection:i}=d;e(F({data:i}))},onCancel:()=>{(()=>{const d=p(o.state?.pathnameStackToGoBack),i=d.poppedPathname??$();n(i,{state:{pathnameStackToGoBack:d.newStack}})})(),e(S())},onAddressClick:d=>{if(t.bankAccountContext==="express-pay")n("./add-address");else{const i=se(c,d,a),b=te(o.state?.pathnameStackToGoBack,o.pathname);n(i,{state:{pathnameStackToGoBack:b}})}},onBackClick:()=>{if(e(T({fetchState:"Not-Started"})),t.bankAccountContext==="express-pay")n("../",{relative:"path"});else{const d=p(t.location.state?.pathnameStackToGoBack),i=d.poppedPathname??$(0);t.navigate(i,{state:{pathnameStackToGoBack:d.newStack}})}e(S())}}})(ee);function xe({vendorIdParam:e,accountContext:t}){const a=w(),n=C(),o=N(),{vendorId:s,billId:r}=B(),c=e??s,d=U.getSignedInUser(),{useFeatureGate:i}=R(),b=z(),g=h(u=>V(u)),x=p(n.state?.pathnameStackToGoBack),f=t??(x.poppedPathname?.includes("vendor")===!0?"vendor":"billDetail"),m=h(u=>k(u,c)),{isFeatureEnabled:I}=i(v.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:y}=i(v.isDepositAccountsFeatureEnabled);if(d==null)throw Error("Can't access address page without signing in...");return f==="billDetail"&&m.editVendorState?.saveStatus.fetchState==="In-Progress"?l.jsx(H,{fetchState:m.editVendorState?.saveStatus.fetchState??"Not-Started",style:{backgroundColor:b.colors.grey5,boxShadow:`0px 2px ${M.sp1} ${b.colors.dropShadowNormal}`}}):l.jsxs(de,{windowSize:o,children:[l.jsx(Z,{vendorId:c,billId:r}),l.jsx(re,{location:n,navigate:a,billId:r,vendorId:c,currentTenant:g,bankAccountContext:f,isVendorRecommendationEnabled:I,isZeniAccountsFeatureEnabled:y})]})}const $=(e=2)=>{let t="../";for(let a=0;a<e;a++)t=`${t}../`;return t};export{fe as A,xe as D,Z as V,me as a,se as b,ke as c,ve as d,he as g,ge as i,Se as v};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-DweiQ_v8.js";import{q as l,y as f,h as c}from"./index-CDVullHu.js";import{D as b}from"./mui-DvrFhyk8.js";import"./sentry-CRn2Q_8Q.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]="2f6b3a1f-ad67-4708-8318-0b908c62b600",e._sentryDebugIdIdentifier="sentry-dbid-2f6b3a1f-ad67-4708-8318-0b908c62b600")}catch{}})();const p={drawerLeftMargin:new f(0,0,240)};function h(e){const{isOpen:r,drawerLeftMargin:o,children:t,onClose:a}=e,n=l(),s=o?.valuePx(n)??p.drawerLeftMargin.valuePx(n),d=c();return i.jsx(b,{anchor:"right",open:r,PaperProps:{style:{width:`calc(100% - ${s})`}},slotProps:{backdrop:{style:{backgroundColor:d.colors.black,opacity:.8,cursor:"pointer"}}},onClose:a,children:t})}export{h as D};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-DweiQ_v8.js";import{a as r}from"./sentry-CRn2Q_8Q.js";import{W as l,X as p,Z as c,p as m}from"./index-CDVullHu.js";import"./mui-DvrFhyk8.js";import f from"./NotFoundScreen-DchuBl3D.js";import{j as u,u as b}from"./core-CfaeRlD7.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]="9a5e9046-15e5-4ca8-8bd3-743a3eee2239",e._sentryDebugIdIdentifier="sentry-dbid-9a5e9046-15e5-4ca8-8bd3-743a3eee2239")}catch{}})();const D=()=>{const e=u(),a=b(),t=r.useCallback(()=>{window.open("https://www.zeni.ai/demo/request","_blank")},[]),i=r.useCallback(()=>{(()=>{const n=m(a.state?.pathnameStackToGoBack),d=n.poppedPathname??k();e(d,{state:{pathnameStackToGoBack:n.newStack}})})()},[]),o=l(a.pathname);return o!=null?s.jsx(p,{menuItem:c(o),onDemoClick:t,onGoBack:i}):s.jsx(f,{})},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-DweiQ_v8.js";import{a as f}from"./sentry-CRn2Q_8Q.js";import{h as O,u as _,j as w,q as M,g as l,N as T}from"./core-CfaeRlD7.js";import{z as r,h as P,D as V,g as A,f as N,i as q,J as H,T as J,j as R}from"./index-CDVullHu.js";import{eN as W,Ij as $,It as B,Ik as G,eO as K,fi as Q,Ip as X,fH as Y,cS as Z,Iu as ee,Iv as te}from"./zeni-epic-state-Cpr4Ydxu.js";import{n as ne}from"./mui-DvrFhyk8.js";import{u as se}from"./useDeviceId-U3XbS24r.js";import{f as ae}from"./analyticsHelper-BZ5B0dmw.js";import{t as ie}from"./getLocaleForTenant-EtfEPIyZ.js";import"./recharts-BoknSdMu.js";import"./analytics-qscrbzee.js";import"./plaid-fBmva3LS.js";import"./dnd-DyHAOpqo.js";import"./stripe-DMRn4zHo.js";import"./lottie-Di5PQgnD.js";import"./lexical-CM9YqJ8L.js";import"./pdf-xbnDrDpb.js";import"./utils-CtZe6ZfB.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]="6997f95a-47f3-48c7-9d45-b8e7bda4ea03",t._sentryDebugIdIdentifier="sentry-dbid-6997f95a-47f3-48c7-9d45-b8e7bda4ea03")}catch{}})();const C=(t,a)=>t!=null&&t.length>0&&a==="magic_links";function Ce(){const t=O(),a=_(),m=w(),[b]=M(),n=b.get("token"),p=b.get("stytch_token_type"),g=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=>W(e)),k=l(e=>$(e)),j=r.getSignedInUser(),v=P().mode;f.useEffect(()=>{s?.zeniSessionId==null&&n!=null&&C(n,p)&&i!=null&&g!=null&&(r.saveMagicLinkTriggered(n),t(B(n,i,g)))},[n,p,t,i,g,s?.zeniSessionId]),f.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(G(k.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,k.tenantsInOrder),Y().then(()=>{const e=R();e!=null&&A(e)}),setTimeout(()=>{N.trackLogin(q.Event.loginSuccess,"email",Z(o.productSettings))},2e3))},[S,I,y,s,o,k,v,a.state,t]);const E=f.useCallback(()=>{m("/signin/auth")},[m]),U=f.useCallback(()=>{i!=null&&d!=null&&c!=null&&t(ee(i,c,d))},[i,d,t,c]),F=f.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(H,{phoneNumber:D,verifyOtpFetchState:x.fetchState,resendVerifyDeviceOTPFetchState:z,onResendOtp:U,onVerifyOtp:F,onCancelVerifyDevice:E});if(S==="In-Progress"&&I==="Completed"&&s?.zeniSessionId!=null&&o!=null||j!=null){const e=a.state?.origin??"/";return u.jsx(T,{to:e,state:{...a.state,origin:""}})}if(!C(n,p)||g==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(J,{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-DweiQ_v8.js";import{j as e,k as i}from"./core-CfaeRlD7.js";import{Q as n}from"./index-CDVullHu.js";import"./mui-DvrFhyk8.js";import"./sentry-CRn2Q_8Q.js";import"./zeni-epic-state-Cpr4Ydxu.js";import"./recharts-BoknSdMu.js";import"./analytics-qscrbzee.js";import"./plaid-fBmva3LS.js";import"./dnd-DyHAOpqo.js";import"./stripe-DMRn4zHo.js";import"./lottie-Di5PQgnD.js";import"./lexical-CM9YqJ8L.js";import"./pdf-xbnDrDpb.js";import"./utils-CtZe6ZfB.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]="57cedc98-6c90-4881-afd2-50107c92bc55",o._sentryDebugIdIdentifier="sentry-dbid-57cedc98-6c90-4881-afd2-50107c92bc55")}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 n}from"./liveblocks-DweiQ_v8.js";import{j as Z,h as H,u as K,l as Q,g as d,k as X,n as ee,o as C}from"./core-CfaeRlD7.js";import{eN as M,qf as v,pP as ae,J8 as w,pK as A,bv as te,bn as se,bR as oe,pL as re,J9 as ne,IV as T,dB as ie,tC as ce,Ja as le,tZ as de,eT as fe,eR as me}from"./zeni-epic-state-Cpr4Ydxu.js";import{G as pe,z as ue,H as he,A as be,a as $,d as N,w as ge,f as B,aj as Fe,s as Ie}from"./index-CDVullHu.js";import"./mui-DvrFhyk8.js";import Ce from"./NotFoundScreen-DchuBl3D.js";import{F as Te}from"./FeaturePreviewScreen-B3I17i8g.js";import{a as h}from"./sentry-CRn2Q_8Q.js";import{u as Ae}from"./useAskAiCfoHostNavButtonProps-LDM9a1Ii.js";import{c as Se}from"./useFetchSuggestedQuestionsWhenReady-BNsbVhjo.js";import{u as ye}from"./useInitialThreadRequest-CwcABjO1.js";import{t as ke}from"./routePaths-B5ceLAU7.js";import{M as xe}from"./MobileAppDrawer-B8_wUNc8.js";import"./recharts-BoknSdMu.js";import"./analytics-qscrbzee.js";import"./plaid-fBmva3LS.js";import"./dnd-DyHAOpqo.js";import"./stripe-DMRn4zHo.js";import"./lottie-Di5PQgnD.js";import"./lexical-CM9YqJ8L.js";import"./pdf-xbnDrDpb.js";import"./utils-CtZe6ZfB.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new s.Error().stack;a&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[a]="f8db5710-f37a-4b5b-8348-f9db70b891cb",s._sentryDebugIdIdentifier="sentry-dbid-f8db5710-f37a-4b5b-8348-f9db70b891cb")}catch{}})();const S=(s,a,e,o)=>{if(s!=a){const r=o??"";s!=null&&s.length>0?e(`../${a}${r}`,{replace:!0}):e(`${a}${r}`,{replace:!0})}},De=X(function(s){const a=ne(s),e={},o=a.pandLReportWithForecast.uiState.nodeCollapseState;return Object.keys(o).forEach(r=>{e[r]=o[r]===!1}),{selectedTimeframe:a.selectedTimeframe,isForecastVsActualOn:a.isForecastVsActualOn,compareMode:a.compareMode,forecastList:a.forecastList,selectedForecast:a.selectedForecast,pandLreport:a.pandLReportWithForecast,scrollPosition:a.pandLReportWithForecast.uiState.scrollPosition,nodeOpenStatus:e,type:"name+balances_forecast",analytics:B}},function(s,a){return{onForecastSelectionChanged:(e,o)=>{s(w(e,o)),a.isPandLReportFetched(e)||s(A(e)),S(a.forecastIdFromUrlPath,e,a.navigate)},onTimeframeChanged:e=>{s(de(e))},onForecastVsActualsCompareToggle:e=>{s(le(e)),s(T({forecastId:a.forecastIdFromUrlPath,scrollPosition:{scrollLeft:0,scrollTop:0}}))},onCompareModeChanged:e=>{s(ce(a.firstMonthOfFY,e,0,[]))},onAccountBalanceClick:a.hasTransactionAccess!==!0?void 0:(e,o)=>{let r,i;const b=e.accountName===""?e.accountDescription:e.accountName;if(o.balanceTimeFrame==="month"||o.balanceTimeFrame==="quarter"?(r=o.balanceTimeFrame,i=ie(o)):o.balanceTimeFrame==="year"?(r="quarter",i={startDate:o.endDate.startOf("quarter"),endDate:o.endDate}):console.error(`timeframe ${o.balanceTimeFrame} is not supported`),i!=null&&r!=null){const m=ke(a.tenantEmailDomain,e.accountId,e.accountType,b,r,i),p=Ie(a.location.state?.pathnameStackToGoBack,a.location.pathname);a.navigate(m,{state:{pathnameStackToGoBack:p,referrer:"Forecast"}})}},onNodeCollapseToggled:(e,o)=>{s(T({forecastId:a.forecastIdFromUrlPath,nodeCollapseState:{nodeId:e,isCollapsed:o===!1}}))},onTableScroll:e=>{s(T({forecastId:a.forecastIdFromUrlPath,scrollPosition:e}))},onBackClick:()=>{a.navigate("../../")}}})(Fe);function U(){const{isAiCfoOpen:s,setIsAiCfoOpen:a}=pe(),e=Z(),o=H(),r=K(),{forecastId:i,tenantEmailDomain:b}=Q(),[m,p]=h.useState(!1),[g,y]=h.useState(!1),u=ue.getSignedInUser(),k=d(t=>M(t)),G=k.company?.companyInfo.firstMonthOfFY??1,c=d(t=>v(t.forecastState,t.forecastListState)),l=d(t=>t.forecastListState.fetchState==="Completed"),x=d(t=>t.profitAndLossState),D=d(t=>t.reportUIOptionsState.selectedForecast),j=t=>x.pandLByForecastID[t]!=null&&re(t,x).reducedAllFetchState.fetchState==="Completed",{areTenantIdsInSync:F}=he();Se({isDataReady:l});const{isAiCfoAccessEnabled:q,onAskAiCfoClick:_}=Ae({isAiCfoOpen:s,setIsAiCfoOpen:a,mobileExploreReferrer:"Forecast"});h.useEffect(()=>{if(!m&&F)p(!0),l||o(ae());else if(l&&!g){y(!0);const t=((f,R,P)=>R!=null?f.forecasts.findIndex(I=>I.id===R):P!=null?f.forecasts.findIndex(I=>I.id===P):f.forecasts.length>0?0:-1)(c,i,D?.id);t===-1&&i!=null?e("page-not-found",{replace:!0}):t!==-1&&t!=D?.index?(o(w(c.forecasts[t].id,t)),S(i,c.forecasts[t].id,e,r.search)):i==null&&t!==-1&&S(void 0,c.forecasts[t].id,e,r.search),t!==-1&&!j(c.forecasts[t].id)&&F&&o(A(c.forecasts[t].id))}},[m,p,o,l,c,g,y,v,A,F]);const L=be(),V=L?.loggedInUserRole!=null&&te(L.loggedInUserRole),{useFeatureGate:W}=$(),{isFeatureEnabled:E}=W(N.isReportsCommentingEnabled),Y=ye(E?k?.companyId:void 0,{clearParams:l&&g}),[J,z]=h.useState(!1),O=t=>{z(t)};return n.jsxs(n.Fragment,{children:[l?n.jsx(ge,{analytics:B,onLoad:t=>(f=>f.trackForecast())(t)}):null,n.jsx(xe,{isAppContentDrawerOpen:J,handleDrawerToggle:O}),n.jsx(De,{firstMonthOfFY:G,tenantEmailDomain:b,forecastIdFromUrlPath:i,navigate:e,location:r,isPandLReportFetched:j,meetingUrl:oe(`https://meetings.hubspot.com/svitlana-grankovska?firstname=${u?.firstName}&lastname=${u?.lastName}&email=${u?.userEmail}`),hasTransactionAccess:V,isAiCfoAccessEnabled:q,onAskAiCfoClick:_,isReportsCommentingEnabled:E,isZeniUser:se(u),initialOpenThreadRequest:Y,onClickMenuIcon:()=>{O(!0)}})]})}function He(){const s=d(i=>M(i)),{useFeatureGate:a}=$(),{isFeatureEnabled:e}=a(N.isDebitCardFeatureEnabled),o=fe(e,s),r=me(s);return o===!0||r===!0?n.jsx(Te,{}):n.jsxs(ee,{children:[n.jsx(C,{path:"/",element:n.jsx(U,{})}),n.jsx(C,{path:"/:forecastId",element:n.jsx(U,{})}),n.jsx(C,{path:"/:forecastId/*",element:n.jsx(Ce,{})})]})}export{He as PandLWithForecastRoutes,He as default};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-DweiQ_v8.js";import{J3 as oe,eN as Y,jr as J,eT as Q,eR as ie,GE as X,IH as re,sK as ke,J4 as q,sy as Pe,sT as je,sN as le,sC as de,sR as Te,sO as Le,J5 as ce,uo as ve,J6 as Fe,fx as Ae,J7 as G,sH as pe,sF as ue,sW as Oe,c0 as Re}from"./zeni-epic-state-Cpr4Ydxu.js";import{q as me,a as ee,d as E,z as W,a4 as ge,E as fe,af as he,ag as Ve,y as Ce,o as A,Y as be,D as ye,ah as Ue,H as Be,G as Ze,w as $e,f as we,i as He,s as Ge,ai as _e,A as ze}from"./index-CDVullHu.js";import{D as Se,n as K,S as De}from"./mui-DvrFhyk8.js";import te from"./NotFoundScreen-DchuBl3D.js";import{a as l}from"./sentry-CRn2Q_8Q.js";import{h as se,l as Je,g,j as We,u as Ke,k as Me,n as ne,o as H}from"./core-CfaeRlD7.js";import{u as Ne}from"./useAskAiCfoHostNavButtonProps-LDM9a1Ii.js";import{c as qe}from"./useFetchSuggestedQuestionsWhenReady-BNsbVhjo.js";import{M as Ye}from"./MobileAppDrawer-B8_wUNc8.js";import"./recharts-BoknSdMu.js";import"./analytics-qscrbzee.js";import"./plaid-fBmva3LS.js";import"./dnd-DyHAOpqo.js";import"./stripe-DMRn4zHo.js";import"./lottie-Di5PQgnD.js";import"./lexical-CM9YqJ8L.js";import"./pdf-xbnDrDpb.js";import"./utils-CtZe6ZfB.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="dbb1d178-bf3d-4cad-8a5f-76edce406374",e._sentryDebugIdIdentifier="sentry-dbid-dbb1d178-bf3d-4cad-8a5f-76edce406374")}catch{}})();const Qe={overlayWidth:new Ce(100,100,48)},_=ye.getLocalizedStrings().peoplePage.invitePage,Xe=({companyId:e,managersListView:n,companyPassportView:d,classListView:o,mode:f,isEditPeopleDrawerOpen:i,closeDrawerHandler:y})=>{const h=me(),u=se(),[O,R]=l.useState(!1),[k,w]=l.useState(!1),{userId:S}=Je(),c=g(t=>oe(t)),m=g(t=>Y(t)),D=g(t=>J(t)),{useFeatureGate:C}=ee(),{isFeatureEnabled:I}=C(E.isDebitCardFeatureEnabled),P=Q(I,m),L=ie(m),v=X(m),V=re(m),U=!!m.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,x=!P&&D&&o.fetchState!=="Completed"||n.fetchState!=="Completed"||d.fetchState!=="Completed"||e==null;if(W.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const b=()=>{u(q()),y()},F=()=>{O===!0?w(!0):b()},B=d.companyView?.controllers?.map(t=>t.user),{isFeatureEnabled:Z}=C(E.isDepositAccountsFeatureEnabled),{isFeatureEnabled:$}=C(E.isChargeCardFeatureEnabled),p=ge(m,$,I),{isFeatureEnabled:j}=C(E.isTreasuryEnabled),T={peopleDetails:c,classList:o.classes,managersList:n.users,controllersList:B,mode:f,isZeniTenant:v,isAccountingClassesEnabled:D,isReimbursementDisabled:U===!1,isZeniAccountsDisabled:Z===!1,isChargeCardDisabled:p===!1,isTreasuryDisabled:j===!1,isLiteRoleDisabled:V===!1,isBankingOnlyTenant:P,isCardsOnlyTenant:L,onResetClick:b,onDeleteUser:t=>{u(de(t.userId,t.userRole.userRoleId))},onPeopleLocalDataUpdated:t=>{u(le({peopleLocalData:t})),R(!0)},onSaveClick:()=>{u(f==="zeni_only"?Pe(e):je(v))},onCloseClick:F,isLoading:x||c.person==null},r={onOkClick:()=>{w(!1),b()},onCancelClick:()=>{w(!1)}};return l.useEffect(()=>{x===!1&&S!=null&&u(ke(S))},[x,S]),l.useEffect(()=>{c.updatePersonState.fetchState==="Completed"&&b()},[c.updatePersonState.fetchState]),s.jsx(Se,{anchor:"right",open:i,PaperProps:{style:{width:Qe.overlayWidth.valuePercentage(h),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:fe.overlayDark,cursor:"pointer"}}},onClose:F,children:s.jsxs(es,{onClick:t=>t.stopPropagation(),children:[k===!0?s.jsx(he,{titleComponent:s.jsx(xe,{children:_.discardTitle}),descriptionComponent:s.jsx(Ee,{children:_.discardDescription}),primaryButtonText:_.discard,secondaryButtonText:_.no,action:r,isEditPopup:!0}):null,s.jsx(Ve,{...T})]})})},es=K(De)`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
`,xe=K(be.H6Regular)`
|
|
6
|
-
margin-top: ${A.sp7};
|
|
7
|
-
padding-left: ${A.sp8};
|
|
8
|
-
padding-right: ${A.sp8};
|
|
9
|
-
color: ${e=>e.theme.colors.primary};
|
|
10
|
-
word-break: break-word;
|
|
11
|
-
`,Ee=K(be.LargeRegularSp)`
|
|
12
|
-
color: ${e=>e.theme.colors.hero};
|
|
13
|
-
padding-left: ${A.sp8};
|
|
14
|
-
padding-right: ${A.sp8};
|
|
15
|
-
margin-bottom: 30px;
|
|
16
|
-
margin-top: ${A.sp4};
|
|
17
|
-
white-space: pre-line;
|
|
18
|
-
`,ss={overlayWidth:new Ce(100,100,48)},z=ye.getLocalizedStrings().peoplePage.invitePage,as=({companyId:e,managersListView:n,companyPassportView:d,classListView:o,mode:f,isInvitePeopleDrawerOpen:i,closeDrawerHandler:y})=>{const h=me(),u=se(),[O,R]=l.useState(!1),[k,w]=l.useState(!1),S=g(r=>oe(r)),c=g(r=>Y(r)),m=g(r=>J(r)),{useFeatureGate:D}=ee(),{isFeatureEnabled:C}=D(E.isDebitCardFeatureEnabled),I=Q(C,c),P=ie(c),L=X(c),v=re(c),V=!!c.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,U=!I&&m&&o.fetchState!=="Completed"||n.fetchState!=="Completed"||d.fetchState!=="Completed"||e==null;if(W.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const x=()=>{y(),u(q())},b=()=>{O===!0?w(!0):x()},F={onOkClick:()=>{w(!1),x()},onCancelClick:()=>{w(!1)}},B=d.companyView?.controllers.map(r=>r.user),{isFeatureEnabled:Z}=D(E.isDepositAccountsFeatureEnabled),{isFeatureEnabled:$}=D(E.isChargeCardFeatureEnabled),p=ge(c,$,C),{isFeatureEnabled:j}=D(E.isTreasuryEnabled),T={classList:o.classes,managersList:n.users,controllersList:B,mode:f,isZeniTenant:L,onPeopleLocalDataUpdated:r=>{u(le({peopleLocalData:r})),R(!0)},onResetClick:x,onSaveClick:()=>{u(f==="zeni_only"?Te(e):Le())},onCloseClick:b,peopleDetails:S,isAccountingClassesEnabled:m,isReimbursementDisabled:V===!1,isLiteRoleDisabled:v===!1,isZeniAccountsDisabled:Z===!1,isChargeCardDisabled:p===!1,isTreasuryDisabled:j===!1,isBankingOnlyTenant:I,isCardsOnlyTenant:P,isLoading:U};return l.useEffect(()=>{S.invitePersonState.fetchState==="Completed"&&(y(),u(q()))},[S.invitePersonState.fetchState]),s.jsx(Se,{anchor:"right",open:i,PaperProps:{style:{width:ss.overlayWidth.valuePercentage(h),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:fe.overlayDark,cursor:"pointer"}}},onClose:b,children:s.jsxs(ts,{onClick:r=>r.stopPropagation(),children:[k===!0?s.jsx(he,{titleComponent:s.jsx(xe,{children:z.discardTitle}),descriptionComponent:s.jsx(Ee,{children:z.discardDescription}),primaryButtonText:z.discard,secondaryButtonText:z.no,action:F}):null,s.jsx(Ue,{...T})]})})},ts=K(De)`
|
|
19
|
-
display: flex;
|
|
20
|
-
min-height: 100%;
|
|
21
|
-
flex-direction: column;
|
|
22
|
-
`,ns=Me(function(e,n){const d=ce(e),o=W.getSignedInUser();return{data:d,loggedinUserId:o?.userId??"",isZeniTenant:n.isZeniTenant===!0,shouldFetchClasses:n.shouldFetchClasses,isZeniAdminUser:o?.userEmailDomain==="zeni.ai"&&n.isZeni===!0,isAccountingClassesEnabled:J(e),analytics:we}},function(e,n){const{navigate:d,companyId:o,shouldFetchClasses:f}=n;return{personAction:{onPersonDelete:(i,y)=>{e(de(i,y))},onResendInvite:i=>{e(Oe(i))},onReloadPeople:()=>{e(pe()),e(ue(o,f))},onBackClick:()=>{d("../../")},onModeChange:i=>{e(G({mode:i,searchText:"",sortKey:"name",sortOrder:"ascending"}))},onSearchTextChanged:i=>{e(G({searchText:i}))}}}})(_e);function N({isInvitePeopleDrawerOpen:e,isEditPeopleDrawerOpen:n}){const d=We(),o=se(),f=Ke(),{areTenantIdsInSync:i}=Be(),y=W.getSignedInUser(),h=g(a=>Y(a)),{useFeatureGate:u}=ee(),{isFeatureEnabled:O}=u(E.isDebitCardFeatureEnabled),R=g(a=>J(a)),k=!Q(O,h)&&R,w=X(h),S=h?.tenantId,{tenantEmailDomain:c}=h,[m,D]=l.useState(!1),[C,I]=l.useState(!1),[P,L]=l.useState(!1),[v,V]=l.useState("off"),[U,x]=l.useState(!1),b=a=>{x(a)},{isAiCfoOpen:F,setIsAiCfoOpen:B}=Ze(),{isAiCfoAccessEnabled:Z,onAskAiCfoClick:$}=Ne({isAiCfoOpen:F,setIsAiCfoOpen:B,mobileExploreReferrer:"People"}),p=g(a=>ce(a));qe({isDataReady:p.fetchState==="Completed"});const j=g(a=>ve(a.classState,a.classListState)),T=g(a=>Fe(a.userState,a.userRoleState,a.userListViewState,"manager")),r=g(a=>Ae(a)),t=h?.companyId;l.useEffect(()=>{m&&v===p.uiState.mode||!i||(o(G({searchText:"",sortKey:"name",sortOrder:"ascending"})),V(p.uiState.mode),D(!0),o(pe()))},[m,y,S,o,p.uiState.mode,i]),l.useEffect(()=>{t!=null&&i&&o(ue(t,k))},[t,k,i]),l.useEffect(()=>{I(e!=null&&e===!0),L(n!=null&&n===!0&&n)},[e,n]),l.useEffect(()=>{o(G({searchText:"",sortKey:"name",sortOrder:"ascending"}))},[]);const ae=()=>{I(!1),L(!1),d("../")};return s.jsxs(s.Fragment,{children:[p.fetchState==="Completed"?s.jsx($e,{analytics:we,onLoad:a=>a.trackPageLoaded(He.Event.members)}):null,C===!0?s.jsx(as,{closeDrawerHandler:ae,isInvitePeopleDrawerOpen:C,managersListView:T,companyPassportView:r,classListView:j,companyId:t,mode:p.uiState.mode}):null,P===!0?s.jsx(Xe,{closeDrawerHandler:ae,isEditPeopleDrawerOpen:P,managersListView:T,companyPassportView:r,classListView:j,companyId:t,mode:p.uiState.mode}):null,s.jsx(Ye,{isAppContentDrawerOpen:U,handleDrawerToggle:b}),s.jsx(ns,{navigate:d,signedInUser:y,isZeni:h.isZeni,isZeniTenant:w,peopleUIState:p.uiState,companyId:t,shouldFetchClasses:k,classList:j,managersView:T,peopleView:p,onInvitePeopleClick:()=>{d("./new")},onColumnSortConfigChanged:(a,M)=>{o(G({sortKey:a,sortOrder:M}))},onRowClick:a=>{const M=`/${c}/people/${encodeURIComponent(a)}/edit`,Ie=Ge(f.state?.pathnameStackToGoBack,f.pathname);d(M,{state:{pathnameStackToGoBack:Ie}})},onClickMenuIcon:()=>{b(!0)},isAiCfoAccessEnabled:Z,onAskAiCfoClick:$})]})}function Es(){const e=ze();return Re(e?.loggedInUserRole??[])?s.jsxs(ne,{children:[s.jsx(H,{path:"/",element:s.jsx(N,{})}),s.jsx(H,{path:"new",element:s.jsx(N,{isInvitePeopleDrawerOpen:!0})}),s.jsx(H,{path:":userId/edit",element:s.jsx(N,{isEditPeopleDrawerOpen:!0})}),s.jsx(H,{path:"*",element:s.jsx(te,{})})]}):s.jsx(ne,{children:s.jsx(H,{path:"*",element:s.jsx(te,{})})})}export{Es as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-DweiQ_v8.js";import _ from"./NotFoundScreen-DchuBl3D.js";import{a as o}from"./sentry-CRn2Q_8Q.js";import{j as v,u as M,g,l as U,h as P,N as z,k as N,n as V,o as h}from"./core-CfaeRlD7.js";import{eN as $,OK as b,bo as B,bn as F,h7 as G,gD as K}from"./zeni-epic-state-Cpr4Ydxu.js";import{$ as q,z as I,G as H,cs as J}from"./index-CDVullHu.js";import"./mui-DvrFhyk8.js";import{u as L}from"./useAskAiCfoHostNavButtonProps-LDM9a1Ii.js";import{c as Q}from"./useFetchSuggestedQuestionsWhenReady-BNsbVhjo.js";import{M as W}from"./MobileAppDrawer-B8_wUNc8.js";import"./recharts-BoknSdMu.js";import"./analytics-qscrbzee.js";import"./plaid-fBmva3LS.js";import"./dnd-DyHAOpqo.js";import"./stripe-DMRn4zHo.js";import"./lottie-Di5PQgnD.js";import"./lexical-CM9YqJ8L.js";import"./pdf-xbnDrDpb.js";import"./utils-CtZe6ZfB.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]="ec2a0e9c-64e0-48ec-9b1a-e68505edbd2c",e._sentryDebugIdIdentifier="sentry-dbid-ec2a0e9c-64e0-48ec-9b1a-e68505edbd2c")}catch{}})();const X=N(function(e){const t=I.getSignedInUser(),c=e.tenantState.currentTenantId,r={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:c??""},{aggregatedReportViewState:n}=b(e);return{authParams:r,isDisabled:!1,loggedInUser:t,aggregatedReport:n}},function(e,t){return{onBackClick:()=>{t.navigate("../../")},onClickMenuIcon:()=>{t.handleDrawerToggle(!0)}}})(J),Y=()=>{const e=v(),t=M(),c=q(),r=g(s=>$(s)),{aggregatedReportViewState:n}=g(s=>b(s)),{tenantEmailDomain:f}=U(),p=P(),l=I.getSignedInUser();if(l==null)throw new Error("Can't access this page without signing in...");const m=o.useRef(!1),[C,S]=o.useState(!1),k=B(r?.userRole??[]),w=r?.userRole?.includes("bookkeeping_admin")??!1,D=F(l),A=k||w||D,d=o.useCallback((s,i,O)=>{p(G({fromMonth:s,toMonth:i,cacheOverride:O}))},[]);o.useEffect(()=>{n?.fetchState==="Completed"&&m.current&&(p(K({messageSection:"data_refresh_update",messageText:"success",type:"success",showStatusIcon:!0})),m.current=!1)},[n?.fetchState]);const x=o.useCallback((s,i)=>{n!=null&&n?.fetchState==="In-Progress"||d(s,i,!0),m.current=!0},[n?.fetchState,d]),y=o.useCallback((s,i)=>{d(s,i,!1)},[d]),u=s=>{S(s)},{isAiCfoOpen:j,setIsAiCfoOpen:R}=H(),{isAiCfoAccessEnabled:T,onAskAiCfoClick:E}=L({isAiCfoOpen:j,setIsAiCfoOpen:R,mobileExploreReferrer:"Performance"});return Q({isDataReady:n?.fetchState==="Completed"}),A?a.jsxs(a.Fragment,{children:[a.jsx(W,{isAppContentDrawerOpen:C,handleDrawerToggle:u}),a.jsx(X,{navigate:e,location:t,themeState:c,currentTenant:r,signedInUser:l,tenantEmailDomain:f,onReload:x,onTimeRangeSelect:y,handleDrawerToggle:u,isAiCfoAccessEnabled:T,onAskAiCfoClick:E})]}):a.jsx(z,{to:`/${f}/dashboard`,replace:!0})};function Ie(){return a.jsxs(V,{children:[a.jsx(h,{path:"*",element:a.jsx(Y,{})}),a.jsx(h,{path:"*",element:a.jsx(_,{})})]})}export{Ie as default};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./liveblocks-DweiQ_v8.js";import{a as o}from"./sentry-CRn2Q_8Q.js";import{g as f,j as N,h as V,u as W,k as M}from"./core-CfaeRlD7.js";import{h as _,q as z,z as R,b2 as U,y as $,H as q,G,w as X,f as l,i as Z,a1 as J,b3 as Q}from"./index-CDVullHu.js";import{eX as K,eN as Y,Ly as I,Lz as ee,ts as ae,ti as g,eZ as re,bM as ne,tn as se,LA as te}from"./zeni-epic-state-Cpr4Ydxu.js";import{D as oe,e as ie,n as le,S as ce}from"./mui-DvrFhyk8.js";import{u as de}from"./useAskAiCfoHostNavButtonProps-LDM9a1Ii.js";import{c as fe}from"./useFetchSuggestedQuestionsWhenReady-BNsbVhjo.js";import{M as ue}from"./MobileAppDrawer-B8_wUNc8.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]="9f183ed9-e161-4a3c-a4ba-cff4e2ccd446",e._sentryDebugIdIdentifier="sentry-dbid-9f183ed9-e161-4a3c-a4ba-cff4e2ccd446")}catch{}})();const pe={overlayWidth:new $(100,100,30)},we=({isReferralDrawerOpen:e,closeDrawerHandler:a})=>{const r=_(),n=z();if(R.getSignedInUser()==null)throw Error("Can't access How Referral works without signing in...");const i=()=>{a(!0)},u=f(c=>K(c));return t.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:t.jsx(ie,{in:e,direction:"left",children:t.jsx(ge,{onClick:c=>c.stopPropagation(),children:t.jsx(U,{onDismissClick:i,rewardsPlan:u.rewardsPlan})})})})},ge=le(ce)`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
`,P="refer-and-earn-status-update",ke=M(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(te({sortOrder:i,sortkey:n}))},onInviteClick:()=>{l.trackRewardsPageClicked("invite via email"),r("../refer")},onHowItWorksClick:()=>{l.trackRewardsPageClicked("know more"),r("../how-it-works")},onResendInviteClick:n=>{l.trackRewardsPageClicked("resend invite"),e(se(n))},onBackClick:()=>{r("../",{relative:"path"})},onReloadInvitees:()=>{e(g(!0))},onCopyReferralLink:()=>{l.trackRewardsPageClicked("copy referral link")},onClickRefer:()=>{l.trackRewardsPageClicked("refer")},onEventReceived:n=>{n===P&&e(g(!0,!0))}}})(J(Q));function Pe({isReferralDrawerOpen:e}){const a=N(),r=V(),n=W(),[i,u]=o.useState(!1),[c,x]=o.useState(!1),[D,A]=o.useState(!1),[k,C]=o.useState(!1),p=R.getSignedInUser(),h=f(s=>Y(s)),m=f(s=>I(s)),y=m.fetchState,w=f(s=>s.referralViewState.rewardsPlanFetchState),b=ee([m,w]),{areTenantIdsInSync:d}=q();o.useEffect(()=>{h?.rewardsLastViewedTime==null&&D===!1&&(r(ae()),A(!0))},[]),o.useEffect(()=>{!i&&y==="Not-Started"&&d&&(u(!0),r(g(!0)))},[y,r,d]),o.useEffect(()=>{!c&&w.fetchState==="Not-Started"&&d&&(x(!0),r(re(!0)))},[w,r,d]),o.useEffect(()=>{C(e!=null&&e===!0)},[e]);const[E,j]=o.useState(!1),v=s=>{j(s)},{isAiCfoOpen:O,setIsAiCfoOpen:L}=G(),{isAiCfoAccessEnabled:T,onAskAiCfoClick:B}=de({isAiCfoOpen:O,setIsAiCfoOpen:L,mobileExploreReferrer:"Rewards"});fe({isDataReady:b===!0});const H={events:p?.userId!=null?[`private-${p.userId}.${P}`]:[],eventCallback:(s,S,F)=>{F.onEventReceived(s)}};return t.jsxs(t.Fragment,{children:[b===!0?t.jsx(X,{analytics:l,onLoad:s=>(S=>{p!=null&&S.trackPageLoaded(Z.Event.rewardsPageViewed)})(s)}):null,t.jsx(ue,{isAppContentDrawerOpen:E,handleDrawerToggle:v}),k===!0?t.jsx(we,{closeDrawerHandler:()=>{C(!1),a("..")},isReferralDrawerOpen:k}):null,t.jsx(ke,{location:n,navigate:a,currentTenant:h,onClickMenuIcon:()=>{v(!0)},isAiCfoAccessEnabled:T,onAskAiCfoClick:B,...H})]})}export{Pe as R};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-DweiQ_v8.js";import{a as w,z as x,aI as y,w as E,f as p,i as F,cC as P,d as L}from"./index-CDVullHu.js";import"./mui-DvrFhyk8.js";import l from"./NotFoundScreen-DchuBl3D.js";import{a as d}from"./sentry-CRn2Q_8Q.js";import{h as T,g as b,j as V,u as A,k as R,n as U,o as u}from"./core-CfaeRlD7.js";import{eN as z,Ph as C,M7 as Y,Pi as k,ts as q,eZ as G,Pj as M,tq as O}from"./zeni-epic-state-Cpr4Ydxu.js";import{R as j}from"./ReferralListScreen-M7lAy31e.js";import"./recharts-BoknSdMu.js";import"./analytics-qscrbzee.js";import"./plaid-fBmva3LS.js";import"./dnd-DyHAOpqo.js";import"./stripe-DMRn4zHo.js";import"./lottie-Di5PQgnD.js";import"./lexical-CM9YqJ8L.js";import"./pdf-xbnDrDpb.js";import"./utils-CtZe6ZfB.js";import"./useAskAiCfoHostNavButtonProps-LDM9a1Ii.js";import"./useFetchSuggestedQuestionsWhenReady-BNsbVhjo.js";import"./MobileAppDrawer-B8_wUNc8.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]="d95c35cc-02c9-4e1b-adbe-904c6092615c",e._sentryDebugIdIdentifier="sentry-dbid-d95c35cc-02c9-4e1b-adbe-904c6092615c")}catch{}})();const Z=R(function(e,t){const n=C(e);return{inviteFormView:n.localData,submitStatus:n.saveStatus,userName:t.userName,rewardsPlan:n.rewardsPlan,companyLegalName:t.companyName}},function(e,t){const{navigate:n}=t,o=x.getSignedInUser();return{onDismissClick:()=>{e(k()),n("..")},onSendClick:()=>{if(o!=null){const s=[],r=[];t.inviteFormCompayData.forEach(c=>{s.push(c.companyName),r.push(c.emailIds[0])}),p.trackInviteEmailClicked("send",s,r,s.length)}e(O())},onUpdateInviteFormLocalData:s=>{e(M({localData:s}))},onSubmitSuccess:()=>{n("../../")},onCancelClick:()=>{o!=null&&p.trackInviteEmailClicked("cancel")}}})(P),B=()=>{const e=T(),[t,n]=d.useState(!1),[o,s]=d.useState(!1),r=b(i=>z(i)),c=V(),v=A(),{useDynamicConfig:g}=w(),f=x.getSignedInUser();if(f==null)throw Error("Can't access invite referral screen without signing in...");const m=b(i=>C(i)),_=f?.firstName!=null?f.firstName:"User",{configValue:h}=g(y.zeniCardsConfig),{configValue:D}=g(y.zeniAccountsConfig),I=Y(D);d.useEffect(()=>{e(k()),r?.rewardsLastViewedTime==null&&o===!1&&(e(q()),s(!0))},[]),d.useEffect(()=>{t||m.fetchState!=="Not-Started"||(n(!0),e(G(!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:i=>(S=>S.trackPageLoaded(F.Event.inviteEmailViewed))(i)}):null,a.jsx(Z,{navigate:c,location:v,currentTenant:r,companyName:N,userName:_,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}=w(),{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-DweiQ_v8.js";import{a as u,b as T,q as A}from"./sentry-CRn2Q_8Q.js";import{h as D,j,g as c,u as z,N as M,k as O}from"./core-CfaeRlD7.js";import{u as F,z as s,h as P,f as E,D as N,g as _,i as B,K as q,j as R,R as V,k as b}from"./index-CDVullHu.js";import{eN as $,Ij as H,Ik as J,eO as K,fi as W,Ip as G,fH as Q,cS as X,Iq as y,Ir as Y,Is as Z,bR as v}from"./zeni-epic-state-Cpr4Ydxu.js";import"./mui-DvrFhyk8.js";import{u as ee}from"./useDeviceId-U3XbS24r.js";import{f as te}from"./analyticsHelper-BZ5B0dmw.js";import{t as ne}from"./getLocaleForTenant-EtfEPIyZ.js";import"./recharts-BoknSdMu.js";import"./analytics-qscrbzee.js";import"./plaid-fBmva3LS.js";import"./dnd-DyHAOpqo.js";import"./stripe-DMRn4zHo.js";import"./lottie-Di5PQgnD.js";import"./lexical-CM9YqJ8L.js";import"./pdf-xbnDrDpb.js";import"./utils-CtZe6ZfB.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]="f39bbeac-bcb5-48ca-82fd-874bf192f712",t._sentryDebugIdIdentifier="sentry-dbid-f39bbeac-bcb5-48ca-82fd-874bf192f712")}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:b.googleClientId,microsoftClientId:b.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:v(l),sourceUri:v(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(y())}}})(V),ae=T.memo(ie);function be({setTenantEmailDomain:t}){const i=D(),d=j(),{clearAllLoading:g}=F(),n=s.getSignedInUser();u.useLayoutEffect(()=>{g()},[g]);const a=ee(),l=c(e=>e.tenantState.magicLinkCodeVerifier),{sendEmailMagicLinkFetchState:k,accountLocked:C,accountUnlockTime:h}=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=>$(e)),S=c(e=>H(e)),m=z(),w=P().mode,U=m.state?.magicLinkExpired,x=m.state?.magicLinkAlreadyUsed;if(u.useEffect(()=>{k.fetchState==="Completed"&&l!=null&&(E.trackSignInLinkSent(),s.saveMagicLinkCodeVerifier(l))},[k.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(J(S.tenantsInOrder),o.zeniSessionId),K(o.userId,o.zeniSessionId,r.tenantId),i(W(r.tenantId)),s.saveActiveTenantDomainForUser(r.tenantEmailDomain),i(G("Completed")),N.updateAppLocaleID(ne(r)),te(o,r,w,void 0,S.tenantsInOrder),Q().then(()=>{const e=R();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(M,{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&&h!=null?f.jsx(q,{onClose:()=>i(y()),unlockDate:h}):null]})}export{be as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-DweiQ_v8.js";import{a}from"./sentry-CRn2Q_8Q.js";import{h as u,u as m,j as p,N as g}from"./core-CfaeRlD7.js";import{z as f,B as y,t as b,f as c,i as h}from"./index-CDVullHu.js";import{fM as I,fN as x,IF as j}from"./zeni-epic-state-Cpr4Ydxu.js";import{n as w}from"./mui-DvrFhyk8.js";import"./recharts-BoknSdMu.js";import"./analytics-qscrbzee.js";import"./plaid-fBmva3LS.js";import"./dnd-DyHAOpqo.js";import"./stripe-DMRn4zHo.js";import"./lottie-Di5PQgnD.js";import"./lexical-CM9YqJ8L.js";import"./pdf-xbnDrDpb.js";import"./utils-CtZe6ZfB.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]="cc4f7f65-c859-4063-b9f3-1691c96e67ba",e._sentryDebugIdIdentifier="sentry-dbid-cc4f7f65-c859-4063-b9f3-1691c96e67ba")}catch{}})();function U(){const e=u(),t=m(),i=p(),n=a.useRef(!1),l=f.isSignedIn(),r=t.state?.message==="logout",o=r||l;return a.useEffect(()=>{o&&!n.current&&(n.current=!0,setTimeout(()=>{try{f.clearAll(),e(I()),e(x(!1)),j(),b.reset(),c.trackLogout(h.Event.logoutSuccess),c.resetUserIdentity()}catch(d){console.error("Error during sign out:",d)}finally{r||i("/signin/auth",{replace:!0})}},0))},[o,r]),o?s.jsx(v,{children:s.jsx(y,{fetchState:"In-Progress"})}):s.jsx(g,{to:"../",replace:!0})}const v=w.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`;export{U as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./liveblocks-DweiQ_v8.js";import i from"./NotFoundScreen-DchuBl3D.js";import{T as r}from"./TransactionDetailScreen-D9qdDaFM.js";import"./sentry-CRn2Q_8Q.js";import{n as d,o as e}from"./core-CfaeRlD7.js";import"./zeni-epic-state-Cpr4Ydxu.js";import"./recharts-BoknSdMu.js";import"./index-CDVullHu.js";import"./mui-DvrFhyk8.js";import"./analytics-qscrbzee.js";import"./plaid-fBmva3LS.js";import"./dnd-DyHAOpqo.js";import"./stripe-DMRn4zHo.js";import"./lottie-Di5PQgnD.js";import"./lexical-CM9YqJ8L.js";import"./pdf-xbnDrDpb.js";import"./utils-CtZe6ZfB.js";import"./useAskAiCfoHostNavButtonProps-LDM9a1Ii.js";import"./useFetchSuggestedQuestionsWhenReady-BNsbVhjo.js";import"./decodeURIComponentSafe-CYDIk4_q.js";import"./routePaths-B5ceLAU7.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 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-DweiQ_v8.js";import{j as q,u as w,h as U,l as H,g as L,N as C,k as Q,n as Ae,o as v}from"./core-CfaeRlD7.js";import{eN as R,iQ as T,NP as Z,Gr as ue,bq as ie,NQ as he,jr as W,JT as X,NR as se,NS as Se,bC as x,Go as me,NT as ke,NU as re,NV as Ie,NW as pe,NX as be,NY as ve,NZ as de,HE as Ye,bn as xe}from"./zeni-epic-state-Cpr4Ydxu.js";import{D as K,f as B,c5 as ee,s as _,p as te,a as fe,d as J,H as Ee,z as Pe}from"./index-CDVullHu.js";import"./mui-DvrFhyk8.js";import{a as A}from"./sentry-CRn2Q_8Q.js";import{w as ae}from"./withTransactionSidePanel-BmeyOpsZ.js";import{p as ne,b as ce}from"./routePaths-B5ceLAU7.js";import{u as Le}from"./utils-CtZe6ZfB.js";import{d as P}from"./decodeURIComponentSafe-CYDIk4_q.js";import{Z as je}from"./ZeniAccountStatementScreen-CEuyWpvi.js";import"./recharts-BoknSdMu.js";import"./analytics-qscrbzee.js";import"./plaid-fBmva3LS.js";import"./dnd-DyHAOpqo.js";import"./stripe-DMRn4zHo.js";import"./lottie-Di5PQgnD.js";import"./lexical-CM9YqJ8L.js";import"./pdf-xbnDrDpb.js";import"./useAskAiCfoHostNavButtonProps-LDM9a1Ii.js";import"./useFetchSuggestedQuestionsWhenReady-BNsbVhjo.js";import"./TransactionDetailScreen-D9qdDaFM.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new a.Error().stack;e&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[e]="a036f379-a545-4df8-8887-c04746fb2650",a._sentryDebugIdIdentifier="sentry-dbid-a036f379-a545-4df8-8887-c04746fb2650")}catch{}})();const G=a=>Le(a),ze=Q(function(a,e){const t=he(a.transactionState,a.transactionListState,e.selectedAccount.period,e.selectedAccount.timeframe,G(e.selectedAccount.tranListType));return{title:e.selectedAccount.title,subTitle:e.selectedAccount.subTitle,timeframe:e.selectedAccount.timeframe,timePeriod:X(e.selectedAccount.period),dataAvailableForPeriod:e.dataAvailableForPeriod,report:t,currentScrollYOffset:t.uiState?.scrollYOffset??0,isAccountingClassesEnabled:W(a)}},function(a,e){return{onBackClick:()=>{const t=te(e.location.state?.pathnameStackToGoBack),n=t.poppedPathname??"../../";e.navigate(n,{state:{pathnameStackToGoBack:t.newStack}})},onTimePeriodChange:(t,n,c)=>{e.closeSidePanel?.();const o=K.getLocalizedStrings(),r=G(e.selectedAccount.tranListType),s=Be(t,n,c,r,e.bookCloseDate);B.trackTransactionList(void 0,void 0,void 0,e.selectedAccount.title,void 0,!0),a(se({uiState:{dateRange:s},type:G(e.selectedAccount.tranListType)})),a(ue(r,T(s),!1,r==="missingReceipts"?o.uncategorizedTransactionList.missingReceipt.missingReceiptMinAmount:void 0)),e.onSelectedTimePeriodChange(T(s))},onTransactionItemClick:t=>{if(e.openTransactionPanel)return void e.openTransactionPanel(t.id,t.type);const n=ce(t,e.tenantEmailDomain),c=_(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(n,{state:{pathnameStackToGoBack:c}})},onTransactionListScroll:t=>{a(se({uiState:{scrollYOffset:t},type:G(e.selectedAccount.tranListType)}))}}})(ee),F=ae(function({...a}){const e=q(),t=w(),n=U(),c=t.pathname.substring(t.pathname.lastIndexOf("/")+1),{tenantEmailDomain:o}=H(),r=K.getLocalizedStrings(),{accountType:s,title:u,subTitle:h}=Me(c),D="month",g=L(p=>R(p)),Y=g.company?.companyInfo.firstMonthOfFY??1,{dataAvailable:y,initialTimeframeTick:S}=Ce(c,Y,g.bookCloseDate),[k,j]=A.useState(!1),[z,E]=A.useState(void 0),m=A.useMemo(()=>{const p=T(S);return{tranListType:c,accountType:Z(s),title:u,subTitle:h,timeframe:D,period:p}},[c,D,s,y]);A.useEffect(()=>{if(!k&&m!=null){j(!0),B.trackTransactionList(void 0,void 0,void 0,m.title);const p=G(m.tranListType);n(ue(p,m.period,!0,p==="missingReceipts"?r.uncategorizedTransactionList.missingReceipt.missingReceiptMinAmount:void 0))}},[k,m,n]);let I=m;return m!=null&&z!=null&&(I={...m,period:z}),I==null?i.jsx(C,{to:"../"}):i.jsx(ze,{firstMonthOfFY:Y,tenantEmailDomain:o,location:t,useFixedPeriod:{timeframe:"month",numberOfPeriods:12},dataAvailableForPeriod:y,navigate:e,selectedAccount:I,referrerType:c,bookCloseDate:g.bookCloseDate,onSelectedTimePeriodChange:p=>E(p),...a})}),Me=a=>{let e="",t="",n="";const c=K.getLocalizedStrings();switch(a){case"uncategorized-income":e="income",t=c.uncategorizedTransactionList.income.title,n=c.uncategorizedTransactionList.income.subTitle;break;case"uncategorized-expense":e="expenses",t=c.uncategorizedTransactionList.expense.title,n=c.uncategorizedTransactionList.expense.subTitle;break;case"miscategorized-expense":e="expenses",t=c.miscategorizedTransactionList.expense.title,n=c.miscategorizedTransactionList.expense.subTitle;break;case"miscategorized-income":e="income",t=c.miscategorizedTransactionList.income.title,n=c.miscategorizedTransactionList.income.subTitle;break;case"missing-receipts":t=c.uncategorizedTransactionList.missingReceipt.title,n=c.uncategorizedTransactionList.missingReceipt.subTitle}return{accountType:e,title:t,subTitle:n}},Ce=(a,e,t)=>{const n=ie();let c=ie().startOf("month").subtract(11,"month");return t!=null&&a!=="missing-receipts"?t.add(1,"day").isBefore(c)?{dataAvailable:{startDate:t.add(1,"day"),endDate:n},initialTimeframeTick:{startDate:c,endDate:n}}:(c=t.add(1,"day"),{dataAvailable:{startDate:c,endDate:n},initialTimeframeTick:{startDate:c,endDate:n}}):{dataAvailable:ne(5,e),initialTimeframeTick:{startDate:c,endDate:n}}},Be=(a,e,t,n,c)=>{let o=e;return n==="missingReceipts"||c==null?a.startDate.isBefore(e.startDate,t)?o={startDate:a.startDate,endDate:e.endDate}:a.startDate.isAfter(e.endDate,t)?o={startDate:e.startDate,endDate:a.endDate}:console.error(`Invalid addTimePeriod ${JSON.stringify(a)}`):o=a.startDate.isBefore(c,t)?{startDate:c.add(1,"day"),endDate:e.endDate}:{startDate:a.startDate,endDate:e.endDate},o},Oe=Q(function(a,e){const t=ke(a.transactionState,a.transactionListState,e.selectedAccount.accountId,e.selectedAccount.accountType,e.selectedAccount.classId,e.selectedAccount.timeframe,e.selectedAccount.period);return{accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,title:e.selectedAccount.title,timeframe:e.selectedAccount.timeframe,timePeriod:X(e.selectedAccount.period),dataAvailableForPeriod:ne(5,e.firstMonthOfFY),report:t,currentScrollYOffset:t.uiState?.scrollYOffset??0,isAccountingClassesEnabled:W(a)}},function(a,e){return{onBackClick:()=>{const t=te(e.location.state?.pathnameStackToGoBack),n=t.poppedPathname??Te();e.navigate(n,{state:{pathnameStackToGoBack:t.newStack}})},onTimePeriodChange:(t,n,c)=>{e.closeSidePanel?.();let o=n;t.startDate.isBefore(n.startDate,c)?o={startDate:t.startDate,endDate:n.endDate}:t.startDate.isAfter(n.endDate,c)?o={startDate:n.startDate,endDate:t.endDate}:console.error(`Invalid addTimePeriod ${JSON.stringify(t)}`),B.trackTransactionList(e.selectedAccount.accountId,void 0,e.referrerType,e.selectedAccount.title,void 0,!0),a(re({accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,classId:e.selectedAccount.classId,uiState:{dateRange:o}})),a(me(e.selectedAccount.accountId,e.selectedAccount.accountType,e.selectedAccount.classId,T(o))),e.onSelectedTimePeriodChange(T(o))},onTransactionItemClick:t=>{if(e.openTransactionPanel)return void e.openTransactionPanel(t.id,t.type);const n=ce(t,e.tenantEmailDomain),c=_(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(n,{state:{pathnameStackToGoBack:c}})},onTransactionListScroll:t=>{a(re({accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,classId:e.selectedAccount.classId,uiState:{scrollYOffset:t}}))}}})(ee),Fe=ae(function({referrerType:a,...e}){const t=q(),n=w(),c=U(),{tenantEmailDomain:o,accountTypeEncoded:r,accountIdEncoded:s,classIdEncoded:u,timeframe:h,startDate:D,endDate:g,titleEncoded:Y}=H(),y=P(r??""),S=P(s??""),k=P(u??""),j=P(Y??""),z=L(f=>Se(f.transactionListState,S,y,k)),[E,m]=A.useState(!1),[I,p]=A.useState(void 0),N=L(f=>R(f)),$=N.company?.companyInfo.firstMonthOfFY??1;let d;const l=Ge(y,S,k,h,D,g,j);if(l){const f={startDate:x(D,"YYYY-MM-DD"),endDate:x(g,"YYYY-MM-DD")},V=Ne(z?.dateRange,f);d={accountId:S,accountType:Z(y),classId:k,title:j,timeframe:h,period:V}}A.useEffect(()=>{E||d==null||(m(!0),B.trackTransactionList(d.accountId,void 0,a,d.title),c(me(d.accountId,d.accountType,d.classId,d.period)))},[E,d,c]);let M=d;d!=null&&I!=null&&(M={...d,period:I});const O=[r,s,u,h,D,g,Y].filter(f=>f!=null);return l&&M!=null?i.jsx(Oe,{firstMonthOfFY:$,tenantEmailDomain:o,location:n,navigate:t,selectedAccount:M,referrerType:a,onSelectedTimePeriodChange:f=>p(f),...e}):i.jsx(C,{to:Te(O.length)})}),Te=(a=7)=>{let e="../";for(let t=0;t<a;t++)e=`${e}../`;return e},Ge=(a,e,t,n,c,o,r)=>a!=null&&e!=null&&t!=null&&n!=null&&c!=null&&o!=null&&(n==="month"||n==="quarter")&&x(c,"YYYY-MM-DD").isValid()&&x(o,"YYYY-MM-DD").isValid()&&r!=null,Ne=(a,e)=>a!=null&&a.endDate.isSame(e.endDate,"day")&&a.startDate.isBefore(e.startDate,"day")?T(a):T(e),_e=Q(function(a,e){const t=be(a.transactionState,a.transactionListState,e.selectedAccount.accountId,e.selectedAccount.accountType,e.selectedAccount.timeframe,e.selectedAccount.period),n=t.account?.coaId,c=e.isConnectedAccountProviderUnit&&ve(n??"");return{accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,title:e.selectedAccount.title,timeframe:e.selectedAccount.timeframe,timePeriod:X(e.selectedAccount.period),dataAvailableForPeriod:ne(5,e.firstMonthOfFY),report:t,currentScrollYOffset:t.uiState?.scrollYOffset??0,showStatementPageIcon:c,isAccountingClassesEnabled:W(a)}},function(a,e){return{onBackClick:()=>{const t=te(e.location.state?.pathnameStackToGoBack),n=t.poppedPathname??De();e.navigate(n,{state:{pathnameStackToGoBack:t.newStack}})},onTimePeriodChange:(t,n,c)=>{e.closeSidePanel?.();let o=n;t.startDate.isBefore(n.startDate,c)?o={startDate:t.startDate,endDate:n.endDate}:t.startDate.isAfter(n.endDate,c)?o={startDate:n.startDate,endDate:t.endDate}:console.error(`Invalid addTimePeriod ${JSON.stringify(t)}`),B.trackTransactionList(e.selectedAccount.accountId,void 0,e.referrerType,e.selectedAccount.title,void 0,!0),a(de({accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,uiState:{dateRange:o}})),a(pe(e.selectedAccount.accountId,e.selectedAccount.accountType,T(o))),e.onSelectedTimePeriodChange(T(o))},onTransactionItemClick:t=>{if(e.openTransactionPanel)return void e.openTransactionPanel(t.id,t.type);const n=ce(t,e.tenantEmailDomain),c=_(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(n,{state:{pathnameStackToGoBack:c}})},onTransactionListScroll:t=>{a(de({accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,uiState:{scrollYOffset:t}}))},onStatementPageIconClick:()=>{const t=$e(e.tenantEmailDomain),n=_(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(t,{state:{pathnameStackToGoBack:n}})}}})(ee),le=ae(function({referrerType:a,...e}){const t=q(),n=w(),c=U(),{tenantEmailDomain:o,accountTypeEncoded:r,accountIdEncoded:s,timeframe:u,startDate:h,endDate:D,titleEncoded:g,excludeSubAccounts:Y}=H(),y=P(r??""),S=P(s??""),k=P(g??""),j=!(Y!=null&&Y==="exclude_subaccounts"),z=L(b=>Ie(b.transactionListState,S,y)),[E,m]=A.useState(!1),[I,p]=A.useState(void 0),N=L(b=>R(b)),$=N.company?.featuresActivationInfo.connectedAccountProvider==="unit",d=N.company?.companyInfo.firstMonthOfFY??1;let l;const M=we(y,S,u,h,D,k);if(M){const b={startDate:x(h,"YYYY-MM-DD"),endDate:x(D,"YYYY-MM-DD")},ye=Re(z?.dateRange,b);l={accountId:S,accountType:Z(y),title:k,timeframe:u,period:ye}}let O=l;l!=null&&I!=null&&(O={...l,period:I});const{useFeatureGate:f}=fe(),{isFeatureEnabled:V}=f(J.isTransactionCommentingEnabled),{areTenantIdsInSync:oe}=Ee();A.useEffect(()=>{!E&&l!=null&&oe&&(m(!0),B.trackTransactionList(l.accountId,void 0,a,l.title),c(pe(l.accountId,l.accountType,l.period,void 0,!1,j)))},[E,l,c,oe]);const ge=[r,s,u,h,D,g].filter(b=>b!=null);return M&&O!=null?i.jsx(_e,{firstMonthOfFY:d,tenantEmailDomain:o,location:n,navigate:t,isConnectedAccountProviderUnit:$,isTransactionCommentingEnabled:V,selectedAccount:O,referrerType:a,onSelectedTimePeriodChange:b=>p(b),...e}):i.jsx(C,{to:De(ge.length)})}),De=(a=7)=>{let e="../";for(let t=0;t<a;t++)e=`${e}../`;return e},we=(a,e,t,n,c,o)=>a!=null&&e!=null&&t!=null&&n!=null&&c!=null&&(t==="month"||t==="quarter")&&x(n,"YYYY-MM-DD").isValid()&&x(c,"YYYY-MM-DD").isValid()&&o!=null,Re=(a,e)=>a!=null&&a.endDate.isSame(e.endDate,"day")&&a.startDate.isBefore(e.startDate,"day")?T(a):T(e),$e=a=>`/${a}/transactions/${Ye}/statements`;function mt(){const a=w().state?.referrer,e=Pe.getSignedInUser(),t=xe(e),{useFeatureGate:n}=fe(),{isFeatureEnabled:c}=n(J.isExpenseAutomationEnabled),o=L(u=>u.expenseAutomationViewState.selectedPeriodByTenantId)[L(u=>R(u)).tenantId],{isFeatureEnabled:r}=n(J.isExpenseAutomationEnabledV2),s=r||c&&t;return i.jsxs(Ae,{children:[i.jsx(v,{path:"/:accountTypeEncoded/:accountIdEncoded/:timeframe/:startDate/:endDate/:titleEncoded/:excludeSubAccounts/*",element:i.jsx(le,{referrerType:a})}),i.jsx(v,{path:"/zeni-clearing-account/statements",element:i.jsx(je,{})}),i.jsx(v,{path:"/*",element:i.jsx(le,{referrerType:a})}),i.jsx(v,{path:"/uncategorized-income/*",element:i.jsx(F,{})}),i.jsx(v,{path:"/uncategorized-expense/*",element:s?i.jsx(C,{to:`../../month_end_close_checks/review/transaction_categorization/${o.month}-${o.year}`}):i.jsx(F,{})}),i.jsx(v,{path:"/miscategorized-income/*",element:i.jsx(F,{})}),i.jsx(v,{path:"/miscategorized-expense/*",element:s?i.jsx(C,{to:`../../month_end_close_checks/review/transaction_categorization/${o.month}-${o.year}`}):i.jsx(F,{})}),i.jsx(v,{path:"/missing-receipts/*",element:s?i.jsx(C,{to:`../../month_end_close_checks/review/missing_receipts/${o.month}-${o.year}`}):i.jsx(F,{})}),i.jsx(v,{path:"/by-class/:accountTypeEncoded/:accountIdEncoded/:classIdEncoded/:timeframe/:startDate/:endDate/:titleEncoded/*",element:i.jsx(Fe,{referrerType:a})})]})}export{mt as default};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./liveblocks-DweiQ_v8.js";import{a as f}from"./sentry-CRn2Q_8Q.js";import{q as u,h,g as y,N as I}from"./core-CfaeRlD7.js";import{IE as b,eO as w,yZ as x}from"./zeni-epic-state-Cpr4Ydxu.js";import{z as l,B as j,E as S,Y as E}from"./index-CDVullHu.js";import{n as c}from"./mui-DvrFhyk8.js";import"./recharts-BoknSdMu.js";import"./analytics-qscrbzee.js";import"./plaid-fBmva3LS.js";import"./dnd-DyHAOpqo.js";import"./stripe-DMRn4zHo.js";import"./lottie-Di5PQgnD.js";import"./lexical-CM9YqJ8L.js";import"./pdf-xbnDrDpb.js";import"./utils-CtZe6ZfB.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]="d6eaaf34-29ce-4bd3-a392-0533ca6050e9",e._sentryDebugIdIdentifier="sentry-dbid-d6eaaf34-29ce-4bd3-a392-0533ca6050e9")}catch{}})();const Y=()=>{const[e]=u(),t=e.get("code")??"",s=e.get("state")??"",g=e.get("profileId")??"",[n,p]=f.useState(!1),a=h(),i=y(m=>b(m)),r=l.getSignedInUser(),d=l.getSignedInUserTenantWithId(s);if(r==null||d==null)return o.jsx(I,{to:"/signin/auth",replace:!0});if(r==null)throw Error("Can't access this page without signing in...");return w(r.userId,r.zeniSessionId,d?.tenantId),f.useEffect(()=>{n||(p(!0),a(x(t,g,s)))},[n,a]),i.fetchState==="Error"?o.jsx(D,{children:o.jsx(_,{children:i.error?.message??""})}):(i.fetchState==="Completed"&&window.close(),o.jsx(j,{fetchState:"In-Progress"}))},D=c.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
width: 100%;
|
|
4
|
-
height: 100vh;
|
|
5
|
-
flex-direction: row;
|
|
6
|
-
justify-content: center;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
9
|
-
`,_=c(E.LargeRegular)`
|
|
10
|
-
display: flex;
|
|
11
|
-
color: ${S.important};
|
|
12
|
-
`;export{Y as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-DweiQ_v8.js";import{a as f}from"./sentry-CRn2Q_8Q.js";import{j as x,h as B,u as N,l as $,g as p}from"./core-CfaeRlD7.js";import{HE as s,HD as j,NK as v,eN as C,NL as D}from"./zeni-epic-state-Cpr4Ydxu.js";import{q as E,ao as g,h as L,z as T,B as z,bZ as P,p as U}from"./index-CDVullHu.js";import{n as _}from"./mui-DvrFhyk8.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="635e868a-7703-4b28-8403-3469c0db08be",e._sentryDebugIdIdentifier="sentry-dbid-635e868a-7703-4b28-8403-3469c0db08be")}catch{}})();const G=_.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`;function V(){const e=x(),n=B(),d=E(),l=N();let{accountId:a}=$(),m=`${g.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${a}`;a==null&&l.pathname.includes(`${s}/statements`)&&(a=s,m=`${g.bankingMicroServiceBaseUrl}/1.0/${s}`);const[u,b]=f.useState(!1),h=L();f.useEffect(()=>{u||(b(!0),n(j(a??"",!1)))},[u,n]);const o=p(t=>v(t,a??"")),y=()=>{const t=U(l.state?.pathnameStackToGoBack),S=t.poppedPathname??"..";e(S,{state:{pathnameStackToGoBack:t.newStack}})},r=T.getSignedInUser(),c=p(t=>C(t)),I={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:c.tenantId??""},w=D(a??"")===!0?s:o.zeniAccountDetail?.accountLast4??"",k=c.company?.companyInfo.companyLegalName??c.companyName;if(r==null)throw Error("Can't access address page without signing in...");return o.fetchState!=="Completed"?i.jsx(z,{fetchState:"In-Progress",style:{backgroundColor:h.colors.grey5}}):i.jsx(G,{windowSize:d,children:i.jsx(P,{currentTenantCompanyName:k,statementListView:o,accountLast4:w,onBackClick:y,authParams:I,downloadEndPoint:m})})}export{V as Z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{U as n}from"./index-CDVullHu.js";import"./mui-DvrFhyk8.js";import"./sentry-CRn2Q_8Q.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="be53b4c8-c061-4fd8-a458-d5822d38069d",e._sentryDebugIdIdentifier="sentry-dbid-be53b4c8-c061-4fd8-a458-d5822d38069d")}catch{}})();function r(e){if(e.companyLocaleInfo!=null&&e.companyLocaleInfo.languageCode.length>0&&e.companyLocaleInfo.companyIncCountryCode.length>0){const o=`${e.companyLocaleInfo.languageCode.toLowerCase()}-${e.companyLocaleInfo.companyIncCountryCode.toUpperCase()}`;return console.warn(`localeID ${o}`),n(o)??"en"}return"en"}export{r as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as c}from"./sentry-CRn2Q_8Q.js";import{q as b,c as p,s as m,M as u}from"./index-CDVullHu.js";import"./mui-DvrFhyk8.js";import{b as y}from"./useFetchSuggestedQuestionsWhenReady-BNsbVhjo.js";import{j as k,u as g,l as h}from"./core-CfaeRlD7.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]="7043bef0-d0a8-4536-89c9-6e07b896d1b5",e._sentryDebugIdIdentifier="sentry-dbid-7043bef0-d0a8-4536-89c9-6e07b896d1b5")}catch{}})();function E(e){const{isAiCfoOpen:a,setIsAiCfoOpen:t,mobileExploreReferrer:n}=e,r=k(),o=g(),{tenantEmailDomain:s}=h(),f=b(),i=u(f),l=p();return{isAiCfoAccessEnabled:y()&&l&&!a,onAskAiCfoClick:c.useCallback(()=>{if(s!=null)if(i){const d=m(o.state?.pathnameStackToGoBack,o.pathname);r(`/${s}/ai-cfo/explore`,{state:{pathnameStackToGoBack:d,referrer:n}})}else t(!0)},[i,o.pathname,o.state,n,r,t,s])}}export{E as u};
|