@zeniai/web-app-ui 5.1.24-qa → 5.1.25-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-BB0ro6wv.js +1 -0
- package/dist/assets/{AddressScreen-C3We4eyN.js → AddressScreen-t45pXVvS.js} +2 -2
- package/dist/assets/{AiCfoScreen-C6dwBblm.js → AiCfoScreen-7mHfCmdb.js} +1 -1
- package/dist/assets/BillPayApprovalRoutes-DbZZgApj.js +1 -0
- package/dist/assets/{BillPayRoutes-ChzEJIHg.js → BillPayRoutes-DGHURUBB.js} +27 -27
- package/dist/assets/{BusinessVerificationPageScreen-nQv85Uad.js → BusinessVerificationPageScreen-DRR9km69.js} +2 -2
- package/dist/assets/{ChargeCardRoutes-CWvEm_FW.js → ChargeCardRoutes-DSSh6FmN.js} +11 -11
- package/dist/assets/{CompanyPassportScreen-8MMgr-em.js → CompanyPassportScreen-03cd6rew.js} +1 -1
- package/dist/assets/ConnectionAuthScreen-CUXkV4cL.js +11 -0
- package/dist/assets/CustomerOnboardingAuthScreen-DxioIAXi.js +1 -0
- package/dist/assets/CustomerOnboardingRoutes-CJBZR08A.js +23 -0
- package/dist/assets/{DashboardRoutes-BFOprzRu.js → DashboardRoutes-BWWut7Lp.js} +1 -1
- package/dist/assets/{DefaultTenantHome-bwYGUFtt.js → DefaultTenantHome-D0x0VK8i.js} +1 -1
- package/dist/assets/DomesticWireDetailScreen-By9DmOyv.js +18 -0
- package/dist/assets/DrawerScreen-DHM1klM-.js +1 -0
- package/dist/assets/EntityDetailRoutes-CETjyGK7.js +1 -0
- package/dist/assets/ExpenseAutomationRoutes-BMCXnpCB.js +25 -0
- package/dist/assets/{FeaturePreviewScreen-Zo2IVjPv.js → FeaturePreviewScreen-4ttP8nOi.js} +1 -1
- package/dist/assets/HubSpotOAuthCallbackScreen-CNkM-iq3.js +1 -0
- package/dist/assets/MagicLinkRoutes-BKlgQ_Ie.js +72 -0
- package/dist/assets/MagicLinkSignInScreen-CQoHv1Ew.js +12 -0
- package/dist/assets/{MobileAppDrawer-BxSXohph.js → MobileAppDrawer-Biso_61t.js} +1 -1
- package/dist/assets/NotFoundScreen-C0-Skng9.js +1 -0
- package/dist/assets/{NotificationRoutes-B_CBUW39.js → NotificationRoutes-D9fJ9SYM.js} +1 -1
- package/dist/assets/OAuthConsentScreen-C9NM67kC.js +1 -0
- package/dist/assets/PandLWithForecastRoutes-DTh6WUET.js +1 -0
- package/dist/assets/PeopleRoutes-CfzOn3nZ.js +22 -0
- package/dist/assets/PerformanceRoutes-BRNqvpgs.js +1 -0
- package/dist/assets/{Preview-DvwNtgYT.js → Preview-CmzR2zNp.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-M1NooqUL.js → QBOConnectionScreen-CmHLrNN0.js} +1 -1
- package/dist/assets/ReferralListScreen-DGyOm6sF.js +5 -0
- package/dist/assets/ReimbursementApprovalRoutes-CCftKChl.js +1 -0
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-9VzS6BHL.js → ReimbursementApprovalRuleDetailScreen-DYLPHNtr.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-Dq085h3F.js → ReimbursementRoutes-B0uSlLog.js} +5 -5
- package/dist/assets/{ReportsRoutes-C-PynvD8.js → ReportsRoutes-RqLKE5WA.js} +1 -1
- package/dist/assets/RewardsRoutes-COd7r8nd.js +1 -0
- package/dist/assets/ScreenRoutes-nOndy_UK.js +2 -0
- package/dist/assets/{SettingsRoutes-BlIVqT42.js → SettingsRoutes-CzU-HcCn.js} +8 -8
- package/dist/assets/{SetupPagesScreen-D_mOzgH8.js → SetupPagesScreen-Bi9C_-FR.js} +5 -5
- package/dist/assets/{SignInScreen-Bw6-BJcu.js → SignInScreen-BfWJdDbb.js} +1 -1
- package/dist/assets/SignOutScreen-DqrJH-ux.js +9 -0
- package/dist/assets/{TaskListScreen-BI7bNeeY.js → TaskListScreen-Bwwbd5X8.js} +2 -2
- package/dist/assets/TaskRoutes-CBdj5pZX.js +9 -0
- package/dist/assets/{TransactionDetailRoutes-paith4IQ.js → TransactionDetailRoutes-BtVYAo59.js} +1 -1
- package/dist/assets/{TransactionDetailScreen-B4sA-qV9.js → TransactionDetailScreen-BxH3gBsf.js} +2 -2
- package/dist/assets/{TransactionListRoutes-CmERKiR1.js → TransactionListRoutes-DaBzUpfC.js} +1 -1
- package/dist/assets/TreasuryRoutes-opcOBJb-.js +37 -0
- package/dist/assets/{VendorsRoutes-BDaxw0g0.js → VendorsRoutes-Fq7EQRDW.js} +27 -27
- package/dist/assets/WiseConfirmationScreen-C3f57wCu.js +12 -0
- package/dist/assets/ZeniAccountRoutes-2E4c7VWB.js +57 -0
- package/dist/assets/ZeniAccountStatementScreen-CgW4jBMr.js +9 -0
- package/dist/assets/{accountMappingHelper-BeLxsEhj.js → accountMappingHelper-EVwRyhXo.js} +1 -1
- package/dist/assets/{analytics-Dcb_7Yrn.js → analytics-DyffXLrl.js} +1 -1
- package/dist/assets/{analyticsHelper-jFpAmJF-.js → analyticsHelper-tq4PT7c_.js} +1 -1
- package/dist/assets/{core-B01_r_a6.js → core-DYij5xsh.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-BOkChgPc.js → decodeURIComponentSafe-CSUd4Wt5.js} +1 -1
- package/dist/assets/{dnd-aIvu8cuo.js → dnd-BU-7caEQ.js} +1 -1
- package/dist/assets/{empty-DLWGhBLz.js → empty-Bz6RdLl6.js} +1 -1
- package/dist/assets/{empty-DP7Qtv_6.js → empty-zLrsqSwy.js} +1 -1
- package/dist/assets/{emptyVideoElement-mC3LqJrg.js → emptyVideoElement-Cxq76LDO.js} +1 -1
- package/dist/assets/{epic-U_1X8d7m.js → epic-knsZntkZ.js} +1 -1
- package/dist/assets/getLocaleForTenant-DwUbw-k6.js +1 -0
- package/dist/assets/{index-CKvoU8sU.js → index-3OE7eXoF.js} +1 -1
- package/dist/assets/{index-BAIA3LT3.js → index-44V9br91.js} +1 -1
- package/dist/assets/{index-BpLeRKyQ.js → index-BCP41PwF.js} +13079 -12886
- package/dist/assets/{index-B9Boa_Td.js → index-BdURJOvl.js} +2 -2
- package/dist/assets/{index-HFOJdDTm.js → index-C2zxt7CG.js} +1 -1
- package/dist/assets/{index-C7ZZYs3m.js → index-C90tJyPI.js} +1 -1
- package/dist/assets/{index-DEwFeJzq.js → index-CeyemrXI.js} +1 -1
- package/dist/assets/{index-fiqC8vZO.js → index-hKAQTJHr.js} +1 -1
- package/dist/assets/{lexical-CSRsdQQS.js → lexical-eKqIIoQI.js} +1 -1
- package/dist/assets/{liveblocks-CnWjJuBt.js → liveblocks-BiGkkGoP.js} +1 -1
- package/dist/assets/{lottie-DUONjUug.js → lottie-CCiYx5dW.js} +1 -1
- package/dist/assets/{mui-DRaG-BlK.js → mui-CdvNR06J.js} +1 -1
- package/dist/assets/{pathToGoBack-3jAhRKQN.js → pathToGoBack-DzYXGaMH.js} +1 -1
- package/dist/assets/{pdf-UaypZdKm.js → pdf-05F57jtv.js} +3 -3
- package/dist/assets/{pdf-lib-t9AAxY-T.js → pdf-lib-CUEF9aFq.js} +1 -1
- package/dist/assets/{plaid-VN7yDnB4.js → plaid-CsGNESZa.js} +1 -1
- package/dist/assets/{pusher-UqFP2KpO.js → pusher-C7xS39FJ.js} +1 -1
- package/dist/assets/{react-r8LsJVdm.js → react-BcY5rxQv.js} +1 -1
- package/dist/assets/{react-DNgryaI2.js → react-Ce6YQI4l.js} +1 -1
- package/dist/assets/{react-B_Uab5TB.js → react-CltIT5UZ.js} +1 -1
- package/dist/assets/{react-YISROtP4.js → react-D3qjGIuX.js} +1 -1
- package/dist/assets/{react-CFhlJXGh.js → react-hPevf4CC.js} +1 -1
- package/dist/assets/{react-CqO-0SNq.js → react-i6kyX3or.js} +1 -1
- package/dist/assets/{recharts-q0doAU-l.js → recharts-D0oa1BQl.js} +1 -1
- package/dist/assets/{routePaths-DKueXFNV.js → routePaths-jIme_4o7.js} +1 -1
- package/dist/assets/{sentry-1cGDtjwd.js → sentry-DQGl2YSn.js} +1 -1
- package/dist/assets/{url-C9c3hZCp.js → url-DJZEEGtj.js} +1 -1
- package/dist/assets/{url-C_w1-pX_.js → url-DRf0E0e8.js} +1 -1
- package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-CJVqvntW.js → useAiCfoDashboardSuggestedQuestionsChips-Duk5q7Ch.js} +1 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-CVdued0l.js +1 -0
- package/dist/assets/{useDeviceId-DJ_jocMS.js → useDeviceId-Dsh8klAH.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-CQfQwdcJ.js → useInitialThreadRequest-Du_koxHd.js} +1 -1
- package/dist/assets/{utils-Y2cylN27.js → utils-BCjesvPZ.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-DmWmvchE.js → withTransactionSidePanel-DYnpLjtY.js} +3 -3
- package/dist/assets/{zeni-epic-state-BFnJgXOA.js → zeni-epic-state-YenBAkdY.js} +4 -4
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/AddressRoutes-BXepFj9h.js +0 -1
- package/dist/assets/BillPayApprovalRoutes-CzR07ga7.js +0 -1
- package/dist/assets/ConnectionAuthScreen-Cp9PziKM.js +0 -11
- package/dist/assets/CustomerOnboardingAuthScreen-6YR1UCPF.js +0 -1
- package/dist/assets/CustomerOnboardingRoutes-DDZKUKQ0.js +0 -23
- package/dist/assets/DomesticWireDetailScreen-Ccpt27Jh.js +0 -18
- package/dist/assets/DrawerScreen-Ws0z-NUv.js +0 -1
- package/dist/assets/EntityDetailRoutes-D1mTwT3C.js +0 -1
- package/dist/assets/ExpenseAutomationRoutes-09lBk8XF.js +0 -25
- package/dist/assets/HubSpotOAuthCallbackScreen-Bbw-9Yo-.js +0 -1
- package/dist/assets/MagicLinkRoutes-C3rqh8Fw.js +0 -72
- package/dist/assets/MagicLinkSignInScreen-Bj94YiBV.js +0 -12
- package/dist/assets/NotFoundScreen-9vX5PPUK.js +0 -1
- package/dist/assets/OAuthConsentScreen-BSoh7BaY.js +0 -1
- package/dist/assets/PandLWithForecastRoutes-qhgXCR2A.js +0 -1
- package/dist/assets/PeopleRoutes-rPv0lqG2.js +0 -22
- package/dist/assets/PerformanceRoutes-CIHIO47z.js +0 -1
- package/dist/assets/ReferralListScreen-D9q0zSoM.js +0 -5
- package/dist/assets/ReimbursementApprovalRoutes-Cj_JI2Ho.js +0 -1
- package/dist/assets/RewardsRoutes-3AigZKYG.js +0 -1
- package/dist/assets/ScreenRoutes-Wul9B3xA.js +0 -2
- package/dist/assets/SignOutScreen-BxHMhJ_p.js +0 -9
- package/dist/assets/TaskRoutes-Bz0R6ftk.js +0 -9
- package/dist/assets/TreasuryRoutes-BfNa5UV0.js +0 -37
- package/dist/assets/WiseConfirmationScreen-Cpz-oGtC.js +0 -12
- package/dist/assets/ZeniAccountRoutes-xcG5O_eT.js +0 -57
- package/dist/assets/ZeniAccountStatementScreen-BtTE0JKm.js +0 -9
- package/dist/assets/getLocaleForTenant-DIoHb36m.js +0 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-CxSINRsZ.js +0 -1
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardRoutes-BFOprzRu.js","assets/sentry-1cGDtjwd.js","assets/core-B01_r_a6.js","assets/zeni-epic-state-BFnJgXOA.js","assets/index-BpLeRKyQ.js","assets/mui-DRaG-BlK.js","assets/analytics-Dcb_7Yrn.js","assets/utils-Y2cylN27.js","assets/withTransactionSidePanel-DmWmvchE.js","assets/useAskAiCfoHostNavButtonProps-CxSINRsZ.js","assets/TransactionDetailScreen-B4sA-qV9.js","assets/decodeURIComponentSafe-BOkChgPc.js","assets/routePaths-DKueXFNV.js","assets/NotFoundScreen-9vX5PPUK.js","assets/useInitialThreadRequest-CQfQwdcJ.js","assets/analyticsHelper-jFpAmJF-.js","assets/CompanyPassportScreen-8MMgr-em.js","assets/MobileAppDrawer-BxSXohph.js","assets/useAiCfoDashboardSuggestedQuestionsChips-CJVqvntW.js","assets/FeaturePreviewScreen-Zo2IVjPv.js","assets/ReferralListScreen-D9q0zSoM.js","assets/index-Bc34frN_.css","assets/BillPayRoutes-ChzEJIHg.js","assets/AddressScreen-C3We4eyN.js","assets/DomesticWireDetailScreen-Ccpt27Jh.js","assets/DrawerScreen-Ws0z-NUv.js","assets/SetupPagesScreen-D_mOzgH8.js","assets/BusinessVerificationPageScreen-nQv85Uad.js","assets/BillPayApprovalRoutes-CzR07ga7.js","assets/ReimbursementApprovalRuleDetailScreen-9VzS6BHL.js","assets/getLocaleForTenant-DIoHb36m.js","assets/ReimbursementRoutes-Dq085h3F.js","assets/ReimbursementApprovalRoutes-Cj_JI2Ho.js","assets/TransactionListRoutes-CmERKiR1.js","assets/ZeniAccountStatementScreen-BtTE0JKm.js","assets/SettingsRoutes-BlIVqT42.js","assets/accountMappingHelper-BeLxsEhj.js","assets/QBOConnectionScreen-M1NooqUL.js","assets/empty-DP7Qtv_6.js","assets/index-HFOJdDTm.js","assets/url-C_w1-pX_.js","assets/index-CKvoU8sU.js","assets/ReportsRoutes-C-PynvD8.js","assets/ChargeCardRoutes-CWvEm_FW.js","assets/PeopleRoutes-rPv0lqG2.js","assets/ExpenseAutomationRoutes-09lBk8XF.js","assets/TreasuryRoutes-BfNa5UV0.js","assets/VendorsRoutes-BDaxw0g0.js","assets/pathToGoBack-3jAhRKQN.js","assets/ZeniAccountRoutes-xcG5O_eT.js","assets/AddressRoutes-BXepFj9h.js","assets/PandLWithForecastRoutes-qhgXCR2A.js","assets/CustomerOnboardingRoutes-DDZKUKQ0.js","assets/TransactionDetailRoutes-paith4IQ.js","assets/EntityDetailRoutes-D1mTwT3C.js","assets/NotificationRoutes-B_CBUW39.js","assets/PerformanceRoutes-CIHIO47z.js","assets/RewardsRoutes-3AigZKYG.js","assets/TaskRoutes-Bz0R6ftk.js","assets/TaskListScreen-BI7bNeeY.js","assets/AiCfoScreen-C6dwBblm.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{_ as n,bn as os,eP as ls,e_ as cs,eY as ds,eZ as ms,fH as us,eT as _s,cP as Ee,cx as Es,fe as As,cp as ps,bE as gs,bq as xs,fj as Is,v as Ts,Jr as hs,bt as js,Js as Us,bG as Hs,fg as Rs,bF as Ds,bs,cl as ys,Jt as fs,Ju as Cs,cM as vs,cO as Os,cN as Ps,cw as Fs,cC as Ls,mW as Ae,eW as pe,fR as Bs,fn as ge,fO as xe,fP as Ie,fo as ks}from"./zeni-epic-state-BFnJgXOA.js";import{j as e}from"./liveblocks-CnWjJuBt.js";import{a as v}from"./sentry-1cGDtjwd.js";import{u as Vs,h as Ss,i as Ns,g as Ms,j as G,l as Te,N as c,o as Zs,p as t}from"./core-B01_r_a6.js";import{h as ws,u as Gs,z as R,S as zs,a as $s,C as Ws,c as L,k as Ys,L as B,D as he,t as _,P as Js,d as X,l}from"./index-BpLeRKyQ.js";import"./mui-DRaG-BlK.js";import{f as je}from"./analyticsHelper-jFpAmJF-.js";import{t as qs}from"./getLocaleForTenant-DIoHb36m.js";import"./recharts-q0doAU-l.js";import"./analytics-Dcb_7Yrn.js";import"./plaid-VN7yDnB4.js";import"./dnd-aIvu8cuo.js";import"./stripe-DMRn4zHo.js";import"./lottie-DUONjUug.js";import"./lexical-CSRsdQQS.js";import"./pdf-UaypZdKm.js";import"./utils-Y2cylN27.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},U=new i.Error().stack;U&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[U]="6722c6fd-88f2-421d-a74d-31a11576dc3e",i._sentryDebugIdIdentifier="sentry-dbid-6722c6fd-88f2-421d-a74d-31a11576dc3e")}catch{}})();const Ks={dashboard:()=>n(()=>import("./DashboardRoutes-BFOprzRu.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21])),bills:()=>n(()=>import("./BillPayRoutes-ChzEJIHg.js"),__vite__mapDeps([22,1,2,3,4,5,6,7,23,13,24,9,14,25,17,19,26,15,12,27,28,29,30,21])),reimbursement:()=>n(()=>import("./ReimbursementRoutes-Dq085h3F.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,13,26,17,15,12,27,19,9,14,25,32,29,30,21])),transactions:()=>n(()=>import("./TransactionListRoutes-CmERKiR1.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,34,21])),settings:()=>n(()=>import("./SettingsRoutes-BlIVqT42.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,17,36,23,13,15,27,12,16,37,38,39,40,41,11,28,29,32,21])),reports:()=>n(()=>import("./ReportsRoutes-C-PynvD8.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,13,19,14,12,17,21])),chargeCards:()=>n(()=>import("./ChargeCardRoutes-CWvEm_FW.js"),__vite__mapDeps([43,1,2,3,4,5,6,7,26,17,13,15,12,27,14,9,23,21])),people:()=>n(()=>import("./PeopleRoutes-rPv0lqG2.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,13,9,17,21])),expenseAutomation:()=>n(()=>import("./ExpenseAutomationRoutes-09lBk8XF.js"),__vite__mapDeps([45,1,2,3,13,4,5,6,7,9,10,11,12,8,36,25,21])),treasury:()=>n(()=>import("./TreasuryRoutes-BfNa5UV0.js"),__vite__mapDeps([46,1,2,3,4,5,6,7,13,26,17,15,12,27,9,14,19,21])),vendors:()=>n(()=>import("./VendorsRoutes-BDaxw0g0.js"),__vite__mapDeps([47,1,2,3,4,5,6,7,23,13,19,12,48,9,17,25,36,21])),zeniAccounts:()=>n(()=>import("./ZeniAccountRoutes-xcG5O_eT.js"),__vite__mapDeps([49,1,2,3,4,5,6,7,13,26,17,15,12,27,19,24,23,9,34,21]))},Qs=["bills","transactions","settings","reimbursement","reports","chargeCards","people"],ee=i=>{"requestIdleCallback"in window?requestIdleCallback(i):setTimeout(i,100)},Xs=l(()=>n(()=>import("./ReportsRoutes-C-PynvD8.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,13,19,14,12,17,21]))),en=l(()=>n(()=>import("./AddressRoutes-BXepFj9h.js"),__vite__mapDeps([50,1,2,3,23,4,5,6,7,13,21]))),sn=l(()=>n(()=>import("./PeopleRoutes-rPv0lqG2.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,13,9,17,21]))),nn=l(()=>n(()=>import("./PandLWithForecastRoutes-qhgXCR2A.js"),__vite__mapDeps([51,1,2,3,4,5,6,7,13,19,9,14,12,17,21]))),an=l(()=>n(()=>import("./CustomerOnboardingRoutes-DDZKUKQ0.js"),__vite__mapDeps([52,1,2,3,23,4,5,6,7,13,37,38,39,40,41,11,21]))),tn=l(()=>n(()=>import("./VendorsRoutes-BDaxw0g0.js"),__vite__mapDeps([47,1,2,3,4,5,6,7,23,13,19,12,48,9,17,25,36,21]))),rn=l(()=>n(()=>import("./TransactionDetailRoutes-paith4IQ.js"),__vite__mapDeps([53,1,2,3,13,4,5,6,7,10,9,11,12,21]))),Ue=l(()=>n(()=>import("./EntityDetailRoutes-D1mTwT3C.js"),__vite__mapDeps([54,1,2,3,4,5,6,7,11,8,9,10,12,21]))),on=l(()=>n(()=>import("./DashboardRoutes-BFOprzRu.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]))),He=l(()=>n(()=>import("./BillPayRoutes-ChzEJIHg.js"),__vite__mapDeps([22,1,2,3,4,5,6,7,23,13,24,9,14,25,17,19,26,15,12,27,28,29,30,21]))),ln=l(()=>n(()=>import("./SettingsRoutes-BlIVqT42.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,17,36,23,13,15,27,12,16,37,38,39,40,41,11,28,29,32,21]))),Re=l(()=>n(()=>import("./ReimbursementRoutes-Dq085h3F.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,13,26,17,15,12,27,19,9,14,25,32,29,30,21]))),cn=l(()=>n(()=>import("./ZeniAccountRoutes-xcG5O_eT.js"),__vite__mapDeps([49,1,2,3,4,5,6,7,13,26,17,15,12,27,19,24,23,9,34,21]))),dn=l(()=>n(()=>import("./TreasuryRoutes-BfNa5UV0.js"),__vite__mapDeps([46,1,2,3,4,5,6,7,13,26,17,15,12,27,9,14,19,21]))),mn=l(()=>n(()=>import("./TransactionListRoutes-CmERKiR1.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,34,21]))),un=l(()=>n(()=>import("./ChargeCardRoutes-CWvEm_FW.js"),__vite__mapDeps([43,1,2,3,4,5,6,7,26,17,13,15,12,27,14,9,23,21]))),_n=l(()=>n(()=>import("./NotificationRoutes-B_CBUW39.js"),__vite__mapDeps([55,1,2,3,13,4,5,6,7,9,21]))),En=l(()=>n(()=>import("./PerformanceRoutes-CIHIO47z.js"),__vite__mapDeps([56,1,2,3,13,4,5,6,7,9,17,21]))),An=l(()=>n(()=>import("./ExpenseAutomationRoutes-09lBk8XF.js"),__vite__mapDeps([45,1,2,3,13,4,5,6,7,9,10,11,12,8,36,25,21]))),pn=l(()=>n(()=>import("./RewardsRoutes-3AigZKYG.js"),__vite__mapDeps([57,1,2,3,4,5,6,7,13,20,9,17,21]))),gn=l(()=>n(()=>import("./TaskRoutes-Bz0R6ftk.js"),__vite__mapDeps([58,1,2,3,13,4,5,6,7,14,17,59,9,21]))),xn=l(()=>n(()=>import("./AiCfoScreen-C6dwBblm.js"),__vite__mapDeps([60,1,2,3,4,5,6,7,18,48,21]))),y=l(()=>n(()=>import("./NotFoundScreen-9vX5PPUK.js"),__vite__mapDeps([13,1,2,3,4,5,6,7,21]))),In=l(()=>n(()=>import("./TaskListScreen-BI7bNeeY.js"),__vite__mapDeps([59,1,2,3,4,5,6,7,9,17,21])));function wn({setTenantEmailDomain:i}){const U=Vs(),V=Ss(),{tenantEmailDomain:o}=Ns(),S=ws().mode,{setLoading:f,clearAllLoading:O,clearLoading:Z}=Gs(),b=R.getSignedInUserTenant(o)?.tenantId,h=R.getSignedInUser(),q=os(h),z=Ms(),[N,be]=v.useState(!1),r=G(a=>ls(a)),{useFeatureGate:P}=zs(),K=$s(),ye=Ws(),{isFeatureEnabled:fe}=P(L.isExpenseAutomationEnabled),{isFeatureEnabled:Ce}=P(L.isExpenseAutomationEnabledV2),ve=Ce||fe&&q,{isFeatureEnabled:Oe}=P(L.isDepositAccountsFeatureEnabled),{isFeatureEnabled:Pe}=P(L.isTreasuryEnabled),{isFeatureEnabled:Fe}=P(L.isChargeCardFeatureEnabled),{isFeatureEnabled:se}=P(L.isDebitCardFeatureEnabled),j=G(a=>a.tenantState.fetchState),A=G(a=>a.tenantState.activeTenantFetchState.fetchState),u=A==="Completed"||j==="Completed"?cs(se,r):void 0,$=A==="Completed"||j==="Completed"?ds(r):void 0,Le=A==="Completed"||j==="Completed"?ms(r):void 0,Be=Fe||se||!!Le||!!$||!!u,{isFeatureEnabled:ke}=P(L.isSettingsFeatureEnabled),{isFeatureEnabled:Ve}=P(L.isAiCfoFileUploadEnabled),W=G(a=>us(a));if(o!=null){const a=R.getSignedInUserTenant(o);h!=null&&a!=null&&je(h,r,S)}const w={tenantId:b,userId:h?.userId,sessionId:h?.zeniSessionId},ne=_s(),E=Ys(),Se=r.company==null||E?.loggedInUserRoleMap!=null&&Ee(E.loggedInUserRole),Ne=Es(E?.loggedInUserRoleMap),ae=v.useRef(!0),te=Te("/:tenantEmailDomain/onboarding/*")!==null,Q=Te("/:tenantEmailDomain/month_end_close_checks/review/:selectedTab/:selectedPeriod/*"),Me=G(a=>w.tenantId!=null?As(a,w.tenantId):void 0);v.useEffect(()=>{f(B.TENANT_FETCHING),i(o)},[o]),v.useEffect(()=>{if(Q!=null&&b!=null){const a=Q.params.selectedPeriod;if(a!=null){const H=a.split("-");if(H.length===2){const d=ps(Number(H[0])),s=Number(H[1]),m=gs(`01-${d<10?`0${d}`:d}-${s}`,he.getLocalizedStrings().dateFormat.analytics.DDDashMMDashYYYY),M=xs();m.isAfter(M,"month")===!1?U(Is(b,{month:d,year:s})):V("./month_end_close_checks/review")}}}},[Q,b]),v.useEffect(()=>{N||(be(!0),f(B.TENANT_FETCHING)),ae.current?ae.current=!1:!Ts(ne,w)&&R.isSignedIn()&&(f(B.TENANT_FETCHING),function(a,H,d,s){if(pe(H?.userId,H?.zeniSessionId,a.tenantId),d(Bs(!0)),d(ge(a.tenantId)),a.tenantId!=null&&_.clearTenant(a.tenantId),a.tenantId!=null){const m=R.getSignedInUserTenantWithId(a.tenantId);s&&he.updateAppLocaleID(qs(s)),m?.tenantEmailDomain!=null&&R.saveActiveTenantDomainForUser(m?.tenantEmailDomain)}a.userId!=null?X.identify(a.userId,{tenant_id:a.tenantId}):X.resetUserIdentity()}(w,h,U,Me))},[w,ne,h,U,R]),v.useEffect(()=>{R.isSignedIn()&&(f(B.TENANT_FETCHING),function(a,H,d,s,m,M,k){if(d==null&&s==null)return void console.warn("There is no current tenant selected!!");const Y=s!=null&&m?.zeniSessionId!=null,ts=d==null||d.tenantId!==s,is=d!=null&&d.excludedResources==null,rs=d!=null&&d.externalConnections==null;if(Y&&ts){k(ge(s));const J=R.getSignedInUserTenantWithId(s);J?.tenantEmailDomain!=null&&R.saveActiveTenantDomainForUser(J?.tenantEmailDomain),pe(m?.userId,m?.zeniSessionId,s),_.shouldFetchExcludedResources(s)&&(_.markExcludedResourcesFetchStarted(s),k(xe(m.userId,s))),_.shouldFetchConnections(s)&&(_.markConnectionsFetchStarted(s),k(Ie(m.userId,s)))}else Y&&is&&_.shouldFetchExcludedResources(s)&&(_.markExcludedResourcesFetchStarted(s),k(xe(m.userId,s))),Y&&rs&&_.shouldFetchConnections(s)&&(_.markConnectionsFetchStarted(s),k(Ie(m.userId,s)));if(Y){X.identify(m.userId,{tenant_id:s});const J=s==null||s!=null&&(H==="Completed"||H==="Error");a==="Completed"||H!=="Not-Started"&&H!=="Error"||s==null||!_.shouldFetchActiveTenant(s)||(_.markActiveTenantFetchStarted(s),M(B.TENANT_FETCHING),k(ks(m.userId,s,m.zeniSessionId))),J&&(a==="Not-Started"||a==="Error")&&_.shouldFetchAllTenants()&&(_.markAllTenantsFetchStarted(),k(Ae(m.userId,m.zeniSessionId)))}}(j,A,r,b,h,f,U))},[b,A]),v.useEffect(()=>{R.isSignedIn()&&j==="Completed"&&W.tenantsBaseInOrder.length>0&&(Z(B.TENANT_FETCHING),R.saveSignedInUserTenants(hs(W.tenantsBaseInOrder)),h!=null&&je(h,r,S,void 0,W.tenantsBaseInOrder))},[W,j,r,h]),v.useEffect(()=>{A==="In-Progress"&&f(B.TENANT_FETCHING),A!=="Completed"&&A!=="Error"||(A==="Completed"&&b!=null?(O(),_.markActiveTenantFetchCompleted(b)):A==="Error"&&b!=null&&(_.markActiveTenantFetchFailed(b),Z(B.TENANT_FETCHING),Z(B.TENANT_SWITCHING))),j!=="Completed"&&j!=="Error"||(j==="Completed"?_.markAllTenantsFetchCompleted():j==="Error"&&_.markAllTenantsFetchFailed())},[A,j,b,N]);const ie=v.useRef(!1);v.useEffect(()=>{!ie.current&&A==="Completed"&&N&&(ie.current=!0,function(a=Qs,H=3e3){setTimeout(()=>{const d=s=>{if(s>=a.length)return;const m=a[s],M=Ks[m];M!=null?M().then(()=>ee(()=>d(s+1))).catch(()=>ee(()=>d(s+1))):d(s+1)};ee(()=>d(0))},H)}())},[A,N]);const C=r?.userRole!=null&&js(r?.userRole),{isFeatureEnabled:Ze}=P(L.isReferralFeatureEnabled),we=r?.userRole!=null&&r.userRole.includes("charge_card_user"),Ge=r?.userRole!=null&&r.userRole.includes("charge_card_admin"),F=r?.userRole!=null&&Ee(r.userRole),re=r?.company==null||r.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!C,oe=Be&&!C,ze=Us(E?.loggedInUserRoleMap),$e=r.externalConnections?.accounting[0]?.isValid,le=r.company?.companyOnboardingInfo.isOnboardingCompleted,ce=r?.company==null||r.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!C,de=ce&&Hs(E?.loggedInUserRoleMap),me=Oe&&!C,We=r.company!=null&&Rs(r.company),Ye=Pe&&We===!0&&!C,Je=re&&Ds(E?.loggedInUserRoleMap),qe=oe&&bs(E?.loggedInUserRoleMap),Ke=me&&ys(E?.loggedInUserRoleMap),Qe=fs(E?.loggedInUserRoleMap),Xe=Cs(E?.loggedInUserRoleMap),p=vs(E?.loggedInUserRoleMap),g=Os(E?.loggedInUserRoleMap),x=Ps(E?.loggedInUserRoleMap),I=Fs(E?.loggedInUserRoleMap),T=Ls(E?.loggedInUserRoleMap),ue=re&&I,_e=ce&&T,es=me&&p,ss=Ye&&g,ns=oe&&x,as=r.excludedResources?.resources?.find(a=>a.resource==="/invites")!=null||Ne===!0||ze===!0||Qe===!0||Xe===!0;return R.isSignedIn()?b==null?j==="Completed"?e.jsx(c,{to:"/",replace:!0,state:{...z.state,message:"...",origin:z.pathname}}):(h!=null&&j!=="In-Progress"&&U(Ae(h.userId,h.zeniSessionId)),null):A!=="In-Progress"&&A!=="Not-Started"||j==="Completed"?(le===!0||q&&!te)&&$e===!1&&u===!1&&$===!1?(i(void 0),e.jsx(c,{to:"/connection/auth",replace:!0})):!N||le!==!1||te||q?N&&r?.userRole&&u!=null&&$!=null&&o!=null&&Object.keys(E.loggedInUserRoleMap).length>0?e.jsx(Zs,{children:e.jsxs(t,{element:e.jsx(Js,{}),children:[e.jsx(t,{path:"/",element:e.jsx(Tn,{isDashboardAccess:F,isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:I,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:g,isTenantBankingOnly:u,isTenantCardsOnly:$})}),e.jsx(t,{path:"dashboard/*",element:F?e.jsx(on,{}):e.jsx(D,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:I,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:g,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reports/*",element:F?e.jsx(Xs,{}):e.jsx(D,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:I,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:g,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"people/*",element:as||F?e.jsx(sn,{}):e.jsx(D,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:I,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:g,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"forecast/*",element:F?e.jsx(nn,{}):e.jsx(D,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:I,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:g,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"onboarding/*",element:e.jsx(an,{})}),e.jsx(t,{path:"transaction/*",element:F&&C===!1||we||Ge?e.jsx(rn,{}):e.jsx(D,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:I,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:g,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"transactions/*",element:F&&C===!1?e.jsx(mn,{}):e.jsx(D,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:I,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:g,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"customer/*",element:F&&C===!1?e.jsx(Ue,{entityType:"customer"}):e.jsx(D,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:I,isUserHasReimbursementAccess:T,isTenantBankingOnly:u,isUserHasTreasuryAccess:g,tenantEmailDomain:o})}),e.jsx(t,{path:"vendor/*",element:F&&C===!1?e.jsx(Ue,{entityType:"vendor"}):e.jsx(D,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:I,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:g,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"tasks",element:e.jsx(In,{})}),e.jsx(t,{path:"tasks/*",element:e.jsx(gn,{})}),e.jsx(t,{path:"address/*",element:Je||de||Ke||qe?e.jsx(en,{}):e.jsx(D,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:I,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:g,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"checking/*",element:es?e.jsx(cn,{}):e.jsx(y,{})}),e.jsx(t,{path:"treasury/*",element:ss?e.jsx(dn,{}):e.jsx(y,{})}),e.jsx(t,{path:"performance",element:ye?e.jsx(En,{}):e.jsx(De,{tenantEmailDomain:o})}),e.jsx(t,{path:"month_end_close_checks/review/*",element:ve&&C===!1?e.jsx(An,{}):e.jsx(De,{tenantEmailDomain:o})}),e.jsx(t,{path:"notifications/*",element:e.jsx(_n,{})}),e.jsx(t,{path:"vendors/*",element:Se?e.jsx(tn,{}):e.jsx(y,{})}),e.jsx(t,{path:"bill/*",element:ue?e.jsx(He,{}):e.jsx(D,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:I,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:g,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"bills/*",element:ue?e.jsx(He,{}):e.jsx(D,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:I,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:g,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reimbursement/*",element:_e?e.jsx(Re,{}):e.jsx(D,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:I,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:g,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reimbursements/*",element:_e?e.jsx(Re,{}):e.jsx(D,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:I,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:g,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"settings/*",element:ke?e.jsx(ln,{hasAdminLevelAccess:de}):e.jsx(y,{})}),e.jsx(t,{path:"cards/*",element:ns?e.jsx(un,{}):e.jsx(y,{})}),e.jsx(t,{path:"rewards/*",element:Ze?e.jsx(pn,{}):e.jsx(y,{})}),e.jsx(t,{path:"/ai-cfo",element:K?e.jsx(c,{to:"explore"}):e.jsx(y,{})}),e.jsx(t,{path:"/ai-cfo/",element:K?e.jsx(c,{to:"explore"}):e.jsx(y,{})}),e.jsx(t,{path:"/ai-cfo/:session_id",element:K?e.jsx(xn,{isFileUploadEnabled:Ve}):e.jsx(y,{})}),e.jsx(t,{path:"*",element:e.jsx(y,{})})]})}):null:(i(void 0),e.jsx(c,{to:"onboarding",replace:!0})):null:(console.warn("User logged out!!"),i(void 0),e.jsx(c,{to:"/signin/auth",replace:!0,state:{...z.state,message:"...",origin:z.pathname}}))}const Tn=({isDashboardAccess:i,isUserHasZeniAccountsAccess:U,isUserHasChargeCardAccess:V,isUserHasBillPayAccess:o,isUserHasReimbursementAccess:S,isUserHasTreasuryAccess:f,isTenantBankingOnly:O,isTenantCardsOnly:Z})=>O===!0&&U?e.jsx(c,{to:"checking"}):Z===!0?e.jsx(c,{to:"cards"}):i?e.jsx(c,{to:"dashboard"}):U?e.jsx(c,{to:"checking"}):f?e.jsx(c,{to:"treasury"}):V?e.jsx(c,{to:"cards"}):o?e.jsx(c,{to:"bills"}):S?e.jsx(c,{to:"reimbursements"}):e.jsx(c,{to:"dashboard"}),D=({isUserHasZeniAccountsAccess:i,isUserHasChargeCardAccess:U,isUserHasBillPayAccess:V,isUserHasReimbursementAccess:o,isUserHasTreasuryAccess:S,isTenantBankingOnly:f,tenantEmailDomain:O})=>f===!0||i?e.jsx(Hn,{tenantEmailDomain:O}):S?e.jsx(Un,{tenantEmailDomain:O}):U?e.jsx(Rn,{tenantEmailDomain:O}):V?e.jsx(jn,{tenantEmailDomain:O}):o?e.jsx(hn,{tenantEmailDomain:O}):e.jsx(y,{}),hn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/reimbursements`}),jn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/bills`}),Un=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/treasury`}),Hn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/checking`}),Rn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/cards`}),De=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/dashboard`});export{D as FallBackRoute,wn as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-CnWjJuBt.js";import{a as n}from"./sentry-1cGDtjwd.js";import{u as c,g as m,h as p,N as g}from"./core-B01_r_a6.js";import{z as d,B as b,t as y,d as f,f as h}from"./index-BpLeRKyQ.js";import{fQ as x,fR as I,JO as j}from"./zeni-epic-state-BFnJgXOA.js";import{n as w}from"./mui-DRaG-BlK.js";import"./recharts-q0doAU-l.js";import"./analytics-Dcb_7Yrn.js";import"./plaid-VN7yDnB4.js";import"./dnd-aIvu8cuo.js";import"./stripe-DMRn4zHo.js";import"./lottie-DUONjUug.js";import"./lexical-CSRsdQQS.js";import"./pdf-UaypZdKm.js";import"./utils-Y2cylN27.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]="0685b28d-d642-4f4a-a8e6-0bd38b6766dd",e._sentryDebugIdIdentifier="sentry-dbid-0685b28d-d642-4f4a-a8e6-0bd38b6766dd")}catch{}})();function Q(){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(x()),e(I(!1)),j(),y.reset(),f.trackLogout(h.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(v,{children:s.jsx(b,{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{Q as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as n}from"./liveblocks-CnWjJuBt.js";import se from"./NotFoundScreen-9vX5PPUK.js";import{a as c}from"./sentry-1cGDtjwd.js";import{h as O,u as Q,j as f,g as ne,i as oe,N as ie,n as re,o as ce,p as g}from"./core-B01_r_a6.js";import{Fv as _,Fy as le,Fs as de,eP as Z,QJ as K,FM as H,Fp as pe,Gg as ue,G9 as ke,QK as J,QL as q,Fl as me,Fi as ge,qo as fe,qc as he,ke as Se,FG as Ie,QM as Te,FX as be,FU as Ge,FB as Ee,FR as Ce,FQ as Fe}from"./zeni-epic-state-BFnJgXOA.js";import{z as C,cO as De,K as xe,S as ye,c as b,p as W,r as w,w as je,d as z,f as we,cP as ve,i as V,at as Re}from"./index-BpLeRKyQ.js";import{n as Be}from"./mui-DRaG-BlK.js";import{u as Pe}from"./useInitialThreadRequest-CQfQwdcJ.js";import{M as Ue}from"./MobileAppDrawer-BxSXohph.js";import Le from"./TaskListScreen-BI7bNeeY.js";import"./recharts-q0doAU-l.js";import"./analytics-Dcb_7Yrn.js";import"./plaid-VN7yDnB4.js";import"./dnd-aIvu8cuo.js";import"./stripe-DMRn4zHo.js";import"./lottie-DUONjUug.js";import"./lexical-CSRsdQQS.js";import"./pdf-UaypZdKm.js";import"./utils-Y2cylN27.js";import"./useAskAiCfoHostNavButtonProps-CxSINRsZ.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]="e32a8bad-8aaa-4f4c-8784-a8b06ee2cb5c",e._sentryDebugIdIdentifier="sentry-dbid-e32a8bad-8aaa-4f4c-8784-a8b06ee2cb5c")}catch{}})();function $e(){const e=O(),t=Q(),s=C.getSignedInUser(),{cannedResponses:u,fetchState:r,saveFetchState:d}=f(o=>o.cannedResponsesState),l=c.useCallback(()=>{t(_())},[t]),k=c.useCallback((o,h,S)=>{t(le({name:o,content:h,cannedResponseId:S}))},[t]),a=c.useCallback(o=>{t(de({cannedResponseId:o}))},[t]);if(s==null)throw Error("Can't access quick responses page without signing in...");return n.jsx(De,{cannedResponses:u,isLoading:r==="In-Progress"||r==="Not-Started",isSaving:d==="In-Progress",onBackClick:()=>e(-1),onDelete:a,onFetch:l,onSave:k})}let A,M=[];const Ne=re(function(e,t){const{location:s,taskGroupId:u}=t,r=J(e,t.taskId),d=Z(e),l=r.taskGroupId??u,k=l!=null?q(e.taskGroupState,l):void 0,a=C.getSignedInUser(),o=d.tenantId,h={userId:a?.userId??"",sessionId:a?.zeniSessionId??"",tenantId:o??""},S=K(e),{tenantEmailDomain:F}=d,G=r.recurringSourceTaskId,D=G!=null?`${V.appUrl}/${F}/tasks/${encodeURIComponent(G)}`:void 0;var I;return{taskDetailSelectorView:r,authParams:h,isZeniUser:C.isZeniUser(),userGroupList:((I=e.userGroupsState.userGroupByUserGroupId)!==A&&(A=I,M=Object.values(I)),M),isNewClicked:s.state?.message==="comingFromTaskListPage",filesEndPoint:Re.fileMicroServiceBaseUrl,companyName:t.currentTenant.companyName,companyId:t.currentTenant.companyId,currentUrl:`${V.appUrl}${t.location.pathname}`,cannedResponses:e.cannedResponsesState.cannedResponses,isCannedResponsesLoading:e.cannedResponsesState.fetchState==="In-Progress",recurringSourceTaskUrl:D,tagListView:S,taskGroupName:l!=null&&k!=null&&k.isDefault===!1?k.name:void 0,taskGroupList:e.taskGroupViewState.taskGroupsIds.map(p=>q(e.taskGroupState,p)).filter(p=>p!=null&&!p.isDeleted).map(p=>({id:p.id,name:p.name,isDefault:p.isDefault}))}},function(e,t){const{taskId:s,navigate:u,currentTenant:r,location:d,taskGroupId:l}=t,{tenantEmailDomain:k}=r;return{onSaveChangesToLocalStore:a=>{e(Fe({taskDetailLocalData:a,taskId:s}))},onSaveDetailClick:a=>{e(Ce(s,a??l))},onArchiveTaskClick:()=>{t.taskId!=null&&e(Ee(t.taskId))},onSnoozeTask:(a,o)=>{e(Ge(a,o))},onUnsnoozeTask:a=>{e(be(a))},onDismissClick:()=>{if(d.state?.message==="triggerBackClick"){const a=W(d.state?.pathnameStackToGoBack),o=a.poppedPathname??"../../dashboard";u(o,{state:{pathnameStackToGoBack:a.newStack}})}else{const a=v(k),o=w(d.state?.pathnameStackToGoBack,d.pathname);u(a,{state:{pathnameStackToGoBack:o}})}e(Te({taskId:s}))},onDeleteTaskClick:()=>{e(Ie(s))},updateFilesEntity:a=>{e(Se({files:a}))},onDeleteFile:a=>{e(he(a))},onEditFileName:(a,o)=>{e(fe(a,o.split(".")[0]))},onReloadTaskDetailPage:()=>{e(H(!1,s))},onCreateTagClick:a=>{e(ge(a,s))},onDeleteTagClick:a=>{e(me(a,s))},onFetchCannedResponses:()=>{e(_())},onManageTemplatesClick:()=>{u(`/${r.tenantEmailDomain}/tasks/quick-responses`)}}})(ve);function j(){const e=O(),t=Q(),s=ne(),u=xe(),{taskId:r,taskGroupId:d}=oe(),l=f(i=>Z(i)),k=Pe(l?.companyId),{useFeatureGate:a}=ye(),{isFeatureEnabled:o}=a(b.isTaskSnoozeEnabled),{isFeatureEnabled:h}=a(b.isTaskVisibilityEnabled),{isFeatureEnabled:S}=a(b.isTaskCannedResponsesEnabled),{isFeatureEnabled:F}=a(b.isTaskRecurringParentEnabled),{isFeatureEnabled:G}=a(b.isTaskGroupAssigneesEnabled),[D,I]=c.useState(!1),[p,X]=c.useState(!1),[R,Y]=c.useState(!1),[B,ee]=c.useState(!1),[P,x]=c.useState(!1),T=c.useRef(!1),E=f(i=>i.taskListState.updateTasksFetchState.fetchState),U=f(i=>K(i)),L=f(i=>i.taskGroupViewState.fetchState);c.useEffect(()=>{p||(X(!0),t(H(!1,r)))},[p,t]),c.useEffect(()=>{R||U.fetchState==="Completed"||(Y(!0),t(pe()))},[R,t,U.fetchState]),c.useEffect(()=>{B||L==="Completed"||(ee(!0),t(ue()))},[B,t,L]);const ae=c.useCallback(()=>{r!=null&&(T.current=!1,t(ke([r],null,{isArchived:!1})),x(!0))},[t,r]);c.useEffect(()=>{if(P)if(E!=="In-Progress"){if(T.current){if(E==="Error")return x(!1),void(T.current=!1);if(E==="Completed"){x(!1),T.current=!1;const{tenantEmailDomain:i}=l;if(s.state?.message==="triggerBackClick"){const m=W(s.state?.pathnameStackToGoBack);e(m.poppedPathname??"../../dashboard",{state:{pathnameStackToGoBack:m.newStack}})}else{const m=v(i);e(m,{state:{pathnameStackToGoBack:w(s.state?.pathnameStackToGoBack,s.pathname)}})}}}}else T.current=!0},[P,E,l,s,e]);const $=f(i=>J(i,r)),y=$.fetchState,N=C.getSignedInUser();if(N==null)throw Error("Can't access task detail page without signing in...");if(y==="Error"&&$.error?.code===400){const{tenantEmailDomain:i}=l,m=v(i),te=w(s.state?.pathnameStackToGoBack,s.pathname);return n.jsx(ie,{to:m,state:{pathnameStackToGoBack:te}})}return n.jsxs(n.Fragment,{children:[y==="Completed"?n.jsx(je,{analytics:z,onLoad:i=>(m=>m.trackPageLoaded(we.Event.taskDetailPage))(i)}):null,n.jsxs(qe,{children:[n.jsx(Ue,{isAppContentDrawerOpen:D,handleDrawerToggle:i=>{I(i)}}),n.jsx(Ne,{analytics:z,currentTenant:l,handleZeniLogoClick:()=>{u.toggle()},initialOpenThreadRequest:k,location:s,loggedInUser:N,navigate:e,taskGroupId:d,taskId:r,taskDetailFetchState:y,onUnarchiveTaskClick:ae,isTaskSnoozeEnabled:o,isTaskVisibilityEnabled:h,isTaskCannedResponsesEnabled:S,isTaskRecurringParentEnabled:F,isTaskGroupAssigneesEnabled:G})]})]})}const qe=Be.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`,v=e=>`/${e}/tasks`;function ia(){return n.jsxs(ce,{children:[n.jsx(g,{path:"/new",element:n.jsx(j,{})}),n.jsx(g,{path:"/new/:taskGroupId",element:n.jsx(j,{})}),n.jsx(g,{path:"/group/:taskGroupId",element:n.jsx(Le,{})}),n.jsx(g,{path:"/quick-responses",element:n.jsx($e,{})}),n.jsx(g,{path:"/:taskId",element:n.jsx(j,{})}),n.jsx(g,{path:"*",element:n.jsx(se,{})})]})}export{ia as default};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./liveblocks-CnWjJuBt.js";import{h as L,g as B,u as P,i as N,j as f,N as U,n as M,o as we,p as k}from"./core-B01_r_a6.js";import{cm as V,eP as v,NO as R,DU as ae,fh as H,DC as ne,NQ as Te,DX as Ce,NM as Ie,NN as se,O3 as ke,C2 as je,sR as be,NS as Ae,E6 as Ee,NP as re,cO as q,wZ as oe,eY as De,e_ as ve,OZ as Fe,O_ as Ue,DD as Le,O$ as Be,DE as Pe,DN as Re,bt as Oe,bF as Ne,cx as Me,bG as Ve,cl as _e,fg as ze,bs as $e,Js as Ge,ck as Ze}from"./zeni-epic-state-BFnJgXOA.js";import{k as _,aq as He,z as A,w as z,d as j,c5 as qe,c6 as Je,c7 as Z,J,h as Ke,V as We,Z as Qe,S as ie,c as D,A as Xe,B as Ye,c8 as et,at as K,r as tt,c9 as at,p as W,ca as nt,R as X,cb as st,a9 as rt}from"./index-BpLeRKyQ.js";import{D as ot,n as O,S as it}from"./mui-DRaG-BlK.js";import ct from"./NotFoundScreen-9vX5PPUK.js";import{S as Y}from"./SetupPagesScreen-D_mOzgH8.js";import{a as d}from"./sentry-1cGDtjwd.js";import{u as lt}from"./useAskAiCfoHostNavButtonProps-CxSINRsZ.js";import{u as ut}from"./useInitialThreadRequest-CQfQwdcJ.js";import{M as ce}from"./MobileAppDrawer-BxSXohph.js";import{F as dt}from"./FeaturePreviewScreen-Zo2IVjPv.js";import{a as ee}from"./analyticsHelper-jFpAmJF-.js";import"./recharts-q0doAU-l.js";import"./analytics-Dcb_7Yrn.js";import"./plaid-VN7yDnB4.js";import"./dnd-aIvu8cuo.js";import"./stripe-DMRn4zHo.js";import"./lottie-DUONjUug.js";import"./lexical-CSRsdQQS.js";import"./pdf-UaypZdKm.js";import"./utils-Y2cylN27.js";import"./routePaths-DKueXFNV.js";import"./BusinessVerificationPageScreen-nQv85Uad.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]="363728fa-8f88-4791-a384-f823bc0accf7",t._sentryDebugIdIdentifier="sentry-dbid-363728fa-8f88-4791-a384-f823bc0accf7")}catch{}})();const pt=M(function(t,a){const{companyId:n}=a;return{treasurySetupView:R(t,n),analytics:j}},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(Ce(!0))},onUpdateFundAllocation:r=>{o.trackTreasuryAllocationAction("update",ee(r)),t(Te(r))}}})(qe);function mt(){const t=L(),a=B(),n=P(),{tenantEmailDomain:o}=N(),p=_(),r=f(I=>I.treasurySetupViewState.portfolioAllocationUpdateStatus?.fetchState),m=He(r),s=V(p?.loggedInUserRoleMap),[l,i]=d.useState(!1),[g,C]=d.useState(!1),[u,c]=d.useState(!1),h=f(I=>v(I)),y=A.getSignedInUserTenant(o)?.companyId??h.companyId,w=A.getSignedInUser(),S=f(I=>R(I,y)),T=f(I=>I.treasurySetupViewState.fetchState),x=f(I=>I.treasurySetupViewState.currentAllocation.fetchStatus?.fetchState),F=f(I=>I.treasurySetupViewState.treasuryFundsDetails?.fetchStatus?.fetchState);if(w==null)throw Error("Can't access treasury portfolio allocation page without signing in...");if(d.useEffect(()=>{l||T!=="Not-Started"||y==null||(i(!0),n(ae(y,!0,!1)))},[l,T,y,n]),d.useEffect(()=>{u||F!=="Not-Started"||y==null||(c(!0),n(H()))},[u,F,y,n]),d.useEffect(()=>{g||x!=="Not-Started"||y==null||(C(!0),n(ne()))},[g,x,y,n]),d.useEffect(()=>{m==="In-Progress"&&r==="Completed"&&t("../")},[m,r,t]),h.companyTreasuryInfo?.info?.isTreasuryTOSAccepted===!1)return e.jsx(U,{to:"../promo"});const E=h.companyTreasuryInfo?.info?.isTreasuryTOSAccepted!==!0||T!=="Completed";return e.jsxs(e.Fragment,{children:[!E&&e.jsx(z,{analytics:j,onLoad:()=>{}}),e.jsx(pt,{navigate:t,location:a,companyId:y,isEditMode:!0,isLoading:E,isReadOnly:!s,treasurySetupView:S,analytics:j})]})}const ft=M(function(t,a){const n=a.currentTenant?.companyId;return{plaidConnectionDetails:ke(t,n,"zeni_treasury","treasury_setup").plaidConnectionDetails,treasurySetupView:R(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(Ee())},onSaveChangesToLocalStore:s=>{t(Ae(s))},onFetchLinkTokenClick:s=>{t(be("treasury_setup",s))},onEstablishConnectionClick:s=>{t(je(s,a.currentTenant?.companyId,"treasury_setup","zeni_treasury"))}}})(Je),yt=({isFirstTransfer:t})=>{const a=L(),{tenantEmailDomain:n}=N(),o=P(),[p,r]=d.useState(!1),[m,s]=d.useState(!1),[l,i]=d.useState(!1),[g,C]=d.useState(!1),u=f(x=>x.treasurySetupViewState.fetchState),c=f(x=>x.treasurySetupViewState.treasuryFundsDetails?.fetchStatus?.fetchState),h=f(x=>x.treasurySetupViewState.currentAllocation.fetchStatus?.fetchState),y=f(x=>v(x)),w=A.getSignedInUserTenant(n)?.companyId??y.companyId,S=f(x=>Ie(x)),T=f(x=>R(x,w));if(A.getSignedInUser()==null)throw Error("Can't access treasury transfer page without signing in...");return d.useEffect(()=>{m||u!=="Not-Started"||w==null||(s(!0),o(ae(w,!0,!1)))},[m,u,w,o]),d.useEffect(()=>{l||c!=="Not-Started"||w==null||(i(!0),o(H()))},[l,c,w,o]),d.useEffect(()=>{g||h!=="Not-Started"||w==null||(C(!0),o(ne()))},[g,h,w,o]),e.jsxs(e.Fragment,{children:[e.jsx(z,{analytics:j,onLoad:()=>{}}),e.jsx(ft,{analytics:j,navigate:a,transferDetails:S,onAnotherTransferClick:()=>{r(!1),o(se())},currentTenant:y,treasurySetupView:T,showReviewContent:p,maxInsuredAmount:5e5,onReviewClick:()=>{Z(j,"review",S.treasuryTransferMoneyLocalData,T.fundAllocationLocalData,"Transfer"),r(!0)},isFirstTransfer:t,setShowReviewContent:r,onBackClick:()=>{}})]})},gt=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
|
-
`,ht={overlayWidth:new Xe(100,100,48)},St=M(function(t,a){const n=re(t),{companyId:o}=a;return{treasuryDetail:n,treasurySetupView:R(t,o),downloadEndPoint:`${K.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:l=>{let i="page-not-found";l==="editPortfolio"?i=xt(s):l==="statements"?i=wt(s):l==="taxLetter"?i=Tt(s):l==="settings"&&(i=Ct(s));const g=tt(p.state?.pathnameStackToGoBack,p.pathname);n(i,{state:{pathnameStackToGoBack:g}})},onColumnSortConfigChanged:(l,i)=>{t(Fe({uiState:{sortKey:l,sortOrder:i}}))},onTransferClick:()=>{n("./transfer")},onBackClick:()=>{n("../../")},onClickMenuIcon:()=>{r(!0)},onAutoTransferClick:()=>{n("../../checking/auto-transfer")}}})(et);function G({isTransferDrawerOpen:t,isEditPortfolioDrawerOpen:a}){const n=B(),o=L(),p=P(),r=J(),m=Ke(),s=f(b=>v(b)),{tenantEmailDomain:l}=N(),i=s.companyId??A.getSignedInUserTenant(l)?.companyId,[g,C]=d.useState(!1),u=f(b=>re(b)),c=u.fetchState,h=u.accountSummary?.totalBalance?.amount,y=f(b=>b.treasurySetupViewState.treasuryFundsDetails?.fetchStatus),w=s.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",S=_(),T=!!s.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,x=V(S?.loggedInUserRoleMap),F=q(S?.loggedInUserRoleMap),{areTenantIdsInSync:E}=We();d.useEffect(()=>{c==="Not-Started"&&!g&&E&&(C(!0),p(oe(!0)))},[g,p,c,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 I=()=>{o("..")},[le,ue]=d.useState(!1),Q=b=>{ue(b)},{isAiCfoAccessEnabled:de,onAskAiCfoClick:pe}=lt({mobileExploreReferrer:"Treasury"});Qe({isDataReady:c==="Completed"});const{useFeatureGate:$}=ie(),{isFeatureEnabled:me}=$(D.isDebitCardFeatureEnabled),{isFeatureEnabled:fe}=$(D.isAutoTransferRuleEnabled),{isFeatureEnabled:ye}=$(D.isTreasuryCommentingEnabled),ge=ut(i,{clearParams:c==="Completed"&&y?.fetchState==="Completed"}),he=De(s),Se=ve(me,s);if(he===!0&&Se!==!0)return e.jsx(dt,{});if(w){const b=y?.fetchState!=="Completed"||u.accountSummaryFetchState.fetchState!=="Completed";return e.jsxs(e.Fragment,{children:[u.accountSummaryFetchState.fetchState==="Completed"&&y?.fetchState==="Completed"&&t===!1&&a===!1?e.jsx(z,{analytics:j,onLoad:()=>{}}):null,e.jsx(ot,{onClose:I,anchor:"right",open:a||t,transitionDuration:250,PaperProps:{style:{width:ht.overlayWidth.valuePercentage(r),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:m.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsxs(It,{onClick:xe=>xe.stopPropagation(),children:[t===!0?e.jsx(yt,{isFirstTransfer:u.transactions.length===0||h===0}):null,a===!0?e.jsx(mt,{}):null]})}),e.jsxs(gt,{windowSize:r,children:[e.jsx(ce,{isAppContentDrawerOpen:le,handleDrawerToggle:Q}),e.jsx(St,{treasuryDetailsView:u,isAutoTransferRuleEnabled:fe,navigate:o,currentTenant:s,location:n,companyId:i,analytics:j,isTreasuryCommentingEnabled:ye,handleDrawerToggle:Q,initialOpenThreadRequest:ge,isLoading:b,isAiCfoAccessEnabled:de,onAskAiCfoClick:pe})]})]})}return T&&x?e.jsx(U,{to:"../setup"}):s.companyTreasuryInfo?.info&&!T&&F?e.jsx(U,{to:"../promo",state:n.state}):e.jsx(Ye,{fetchState:"In-Progress",style:{backgroundColor:m.colors.grey5}})}const xt=t=>`/${t}/treasury/edit-portfolio`,wt=t=>`/${t}/treasury/statements`,Tt=t=>`/${t}/treasury/tax-letter`,Ct=t=>`/${t}/treasury/setup`,It=O(it)`
|
|
10
|
-
display: flex;
|
|
11
|
-
min-height: 100%;
|
|
12
|
-
flex-direction: column;
|
|
13
|
-
`,kt=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 jt(){const t=L(),a=P(),n=J(),o=B(),p=`${K.bankingMicroServiceBaseUrl}/1.0/treasury-account`,[r,m]=d.useState(!1),s=f(c=>Ue(c));d.useEffect(()=>{r||s.fetchState!=="Not-Started"||(m(!0),a(Le(!1)))},[r,s.fetchState,a]);const l=A.getSignedInUser(),i=f(c=>v(c)),g={userId:l?.userId??"",sessionId:l?.zeniSessionId??"",tenantId:i.tenantId??""},C=i.company?.companyInfo.companyLegalName??i.companyName;if(l==null)throw Error("Can't access statements page without signing in...");const u=s.fetchState!=="Completed";return e.jsx(kt,{windowSize:n,children:e.jsx(at,{currentTenantCompanyName:C,statementListView:s,isLoading:u,onBackClick:()=>{const c=W(o.state?.pathnameStackToGoBack),h=c.poppedPathname??"..";t(h,{state:{pathnameStackToGoBack:c.newStack}})},authParams:g,downloadEndPoint:p})})}const bt=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 At(){const t=L(),a=J(),n=B(),o=P(),p=`${K.bankingMicroServiceBaseUrl}/1.0/treasury-account`,[r,m]=d.useState(!1),s=f(c=>Be(c));d.useEffect(()=>{r||s.fetchState!=="Not-Started"||(m(!0),o(Pe(!1)))},[r,s.fetchState,o]);const l=A.getSignedInUser(),i=f(c=>v(c)),g={userId:l?.userId??"",sessionId:l?.zeniSessionId??"",tenantId:i.tenantId??""},C=i.company?.companyInfo.companyLegalName??i.companyName;if(l==null)throw Error("Can't access tax letter page without signing in...");const u=s.fetchState!=="Completed";return e.jsx(bt,{windowSize:a,children:e.jsx(nt,{currentTenantCompanyName:C,taxLetterListView:s,isLoading:u,onBackClick:()=>{const c=W(n.state?.pathnameStackToGoBack),h=c.poppedPathname??"..";t(h,{state:{pathnameStackToGoBack:c.newStack}})},authParams:g,downloadEndPoint:p})})}const Et=M(function(t,a){const{companyId:n}=a,o=R(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(Re(o))},onBackClick:()=>{n("../..",{relative:"path"})},onTreasurySetupSuccess:p=>{n(p?"..":"../setup",{relative:"path"})}}})(st),Dt=()=>{const t=L(),a=B(),n=P(),{tenantEmailDomain:o}=N(),[p,r]=d.useState(!1),m=f(S=>v(S)),[s,l]=d.useState(!1),i=f(S=>S.treasurySetupViewState.treasuryFundsDetails?.fetchStatus);d.useEffect(()=>{s||i?.fetchState!=="Not-Started"||g==null||(l(!0),n(H()))},[i,n]);const g=A.getSignedInUserTenant(o)?.companyId??m.companyId,C=A.getSignedInUser(),u=!!m.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,c=S=>{r(S)};if(C==null)throw Error("Can't access treasury promo page without signing in...");const h=_(),y=V(h?.loggedInUserRoleMap),w=q(h?.loggedInUserRoleMap);if(u&&y)return e.jsx(U,{to:"../../treasury/setup"});if(m.company?.companyTreasuryInfo&&(!u&&y||w)){if(a.state?.message==="activation"){const S=W(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(X,{size:"ExtraLarge",start:!0})}):e.jsxs(e.Fragment,{children:[e.jsx(z,{analytics:j,onLoad:S=>(T=>T.trackTreasuryPromoView("Treasury Promo Page"))(S)}),e.jsx(ce,{isAppContentDrawerOpen:p,handleDrawerToggle:c}),e.jsx(Et,{analytics:j,navigate:t,companyId:g,onClickMenuIcon:()=>{c(!0)}})]})}return e.jsx(te,{children:e.jsx(X,{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 ea(){const t=B(),a=f(E=>v(E)),{useFeatureGate:n}=ie(),{isFeatureEnabled:o}=n(D.isTreasuryEnabled),p=!!a.company?.companyTreasuryInfo?.isTreasuryTOSAccepted,r=_(),m=q(r?.loggedInUserRoleMap),s=a?.userRole!=null&&Oe(a?.userRole),l=(a?.company==null||a.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!s)&&Ne(r?.loggedInUserRoleMap),i=Me(r?.loggedInUserRoleMap),g=(a?.company==null||a.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!s)&&Ve(r?.loggedInUserRoleMap),{isFeatureEnabled:C}=n(D.isDepositAccountsFeatureEnabled),u=C&&!s&&_e(r?.loggedInUserRoleMap),c=a.company!=null&&ze(a.company),h=o&&c===!0&&!s&&V(r?.loggedInUserRoleMap),{isFeatureEnabled:y}=n(D.isChargeCardFeatureEnabled),{isFeatureEnabled:w}=n(D.isDebitCardFeatureEnabled),S=rt(a,y,w)&&!s&&$e(r?.loggedInUserRoleMap),T=Ge(r?.loggedInUserRoleMap),x=Ze(r?.loggedInUserRoleMap),F=a.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified";return e.jsxs(we,{children:[x?null:e.jsx(k,{path:"setup",element:e.jsx(Y,{isBillPayAdminLevelAccess:l,isReimbursementAdminLevelAccess:g,isZeniAccountAdminLevelAccess:u,isChargeCardAdminLevelAccess:S,isTreasuryAdminLevelAccess:h,isUserHasOnlyCardAccess:T,isUserHasOnlyBillPayAccess:i,productType:"zeni_treasury",type:"setup"})}),x?null:e.jsx(k,{path:"verification",element:e.jsx(Y,{isBillPayAdminLevelAccess:l,isUserHasOnlyBillPayAccess:i,isReimbursementAdminLevelAccess:g,isZeniAccountAdminLevelAccess:u,isChargeCardAdminLevelAccess:S,isTreasuryAdminLevelAccess:h,isUserHasOnlyCardAccess:T,productType:"zeni_treasury",type:"verification"})}),e.jsx(k,{path:"promo",element:e.jsx(Dt,{})}),e.jsx(k,{path:"statements",element:e.jsx(jt,{})}),e.jsx(k,{path:"tax-letter",element:e.jsx(At,{})}),F?e.jsxs(e.Fragment,{children:[e.jsx(k,{path:"/",element:e.jsx(G,{isTransferDrawerOpen:!1,isEditPortfolioDrawerOpen:!1})}),h?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(ct,{})})]}):p&&h?e.jsx(k,{path:"*",element:e.jsx(U,{to:"../setup"})}):a.company?.companyZeniAccountInfo&&m?e.jsx(k,{path:"*",element:e.jsx(U,{to:"../promo",state:t.state})}):e.jsx(k,{path:"*",element:null})]})}export{ea as default};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./liveblocks-CnWjJuBt.js";import{a as l}from"./sentry-1cGDtjwd.js";import{s as u,u as h,j as y,N as I}from"./core-B01_r_a6.js";import{JL as b,eW as w,zK as j}from"./zeni-epic-state-BFnJgXOA.js";import{z as f,B as x,F as S,Y as D}from"./index-BpLeRKyQ.js";import{n as c}from"./mui-DRaG-BlK.js";import"./recharts-q0doAU-l.js";import"./analytics-Dcb_7Yrn.js";import"./plaid-VN7yDnB4.js";import"./dnd-aIvu8cuo.js";import"./stripe-DMRn4zHo.js";import"./lottie-DUONjUug.js";import"./lexical-CSRsdQQS.js";import"./pdf-UaypZdKm.js";import"./utils-Y2cylN27.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]="5cced831-8232-422d-9934-aeb7dc924175",e._sentryDebugIdIdentifier="sentry-dbid-5cced831-8232-422d-9934-aeb7dc924175")}catch{}})();const R=()=>{const[e]=u(),t=e.get("code")??"",i=e.get("state")??"",p=e.get("profileId")??"",[n,g]=l.useState(!1),a=h(),s=y(m=>b(m)),r=f.getSignedInUser(),d=f.getSignedInUserTenantWithId(i);if(r==null||d==null)return o.jsx(I,{to:"/signin/auth",replace:!0});if(r==null)throw Error("Can't access this page without signing in...");return w(r.userId,r.zeniSessionId,d?.tenantId),l.useEffect(()=>{n||(g(!0),a(j(t,p,i)))},[n,a]),s.fetchState==="Error"?o.jsx(E,{children:o.jsx(_,{children:s.error?.message??""})}):(s.fetchState==="Completed"&&window.close(),o.jsx(x,{fetchState:"In-Progress"}))},E=c.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
width: 100%;
|
|
4
|
-
height: 100vh;
|
|
5
|
-
flex-direction: row;
|
|
6
|
-
justify-content: center;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
9
|
-
`,_=c(D.LargeRegular)`
|
|
10
|
-
display: flex;
|
|
11
|
-
color: ${S.important};
|
|
12
|
-
`;export{R as default};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import{j as n}from"./liveblocks-CnWjJuBt.js";import{h as ne,g as W,u as M,i as Y,j as k,n as K,N as Q,o as Ve,p as w}from"./core-B01_r_a6.js";import{eP as U,OF as Ce,OG as $e,cl as ee,cm as Ne,fg as He,wX as we,B8 as Ze,wR as Tn,OH as On,OI as Bn,wU as Fn,w$ as fe,wO as Rn,wL as Ln,Nr as le,OJ as Un,Es as zn,Kx as _n,Eu as Mn,kn as Oe,OK as Vn,qo as Ge,qc as We,ke as Ye,kh as Be,Ky as Fe,Kz as $n,OL as Nn,kg as Hn,kD as Zn,k5 as Gn,iE as Wn,iD as Yn,OM as Kn,ON as ye,E9 as Jn,OO as qn,OP as Xn,Nk as ke,OQ as Re,OR as Qn,EF as et,O3 as nt,C2 as Ke,sR as Je,OS as tt,EC as at,OT as qe,cM as Ae,EJ as Xe,fh as ot,eY as Qe,e_ as De,EH as st,BY as rt,Ez as it,OU as en,OV as nn,Eb as tn,El as Le,OW as ct,NT as lt,EK as dt,bt as ut,bF as pt,cx as mt,bG as ht,bs as gt,Js as ft}from"./zeni-epic-state-BFnJgXOA.js";import{k as te,S as N,z as S,c as F,h as z,B as de,bW as yt,a2 as Ie,J as V,A as J,p as an,aq as xt,af as Ue,d as R,bX as Ct,at as Se,bY as wt,w as ue,bZ as kt,f as be,aN as G,b_ as At,V as Dt,Z as on,ac as It,b$ as ze,c0 as St,r as ce,c1 as bt,c2 as Et,c3 as vt,a9 as Pt,o as jt}from"./index-BpLeRKyQ.js";import{n as _,D as q,S as X}from"./mui-DRaG-BlK.js";import ie from"./NotFoundScreen-9vX5PPUK.js";import{S as _e}from"./SetupPagesScreen-D_mOzgH8.js";import{F as sn}from"./FeaturePreviewScreen-Zo2IVjPv.js";import{a as d}from"./sentry-1cGDtjwd.js";import{M as pe}from"./MobileAppDrawer-BxSXohph.js";import{A as Tt,D as Ot,V as Bt}from"./DomesticWireDetailScreen-Ccpt27Jh.js";import{A as Ft}from"./AddressScreen-C3We4eyN.js";import{u as rn}from"./useAskAiCfoHostNavButtonProps-CxSINRsZ.js";import{Z as Rt}from"./ZeniAccountStatementScreen-BtTE0JKm.js";import"./recharts-q0doAU-l.js";import"./analytics-Dcb_7Yrn.js";import"./plaid-VN7yDnB4.js";import"./dnd-aIvu8cuo.js";import"./stripe-DMRn4zHo.js";import"./lottie-DUONjUug.js";import"./lexical-CSRsdQQS.js";import"./pdf-UaypZdKm.js";import"./utils-Y2cylN27.js";import"./analyticsHelper-jFpAmJF-.js";import"./routePaths-DKueXFNV.js";import"./BusinessVerificationPageScreen-nQv85Uad.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]="c4de5789-f1cb-4c6d-a694-08142e3b3fe4",e._sentryDebugIdIdentifier="sentry-dbid-c4de5789-f1cb-4c6d-a694-08142e3b3fe4")}catch{}})();const Lt=_.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`,Ut=K(function(e){return{autoTransferRuleView:Ce(e),downloadAccountDetailEndPoint:`${Ie}/account_details`,transferLimit:5e5,depositAccountListView:Ze(e.depositAccountState,e.depositAccountListState)}},function(e,t){const{navigate:s,handleDrawerToggle:o}=t;return{onBackClick:()=>{s("..")},onClickMenuIcon:()=>{o(!0)},onFetchAutoTransferRules:a=>{e(we(a))},onCreateRule:()=>{e(Ln())},onUpdateRule:a=>{e(fe(a))},onDeleteClick:a=>{e(Rn(a))},onPauseClick:a=>{e(fe(a,!0,!1))},onResumeClick:a=>{e(fe(a,!1,!0))},onActivityClick:(a,r)=>{e(Fn(a,r))},onUpdateRuleLocalData:a=>{e(Bn(a))},clearRuleLocalData:()=>{e(On())},onEditClick:a=>{s(`./${a}/edit`)},onEditDrawerClose:()=>{s("../../",{relative:"path"})},onReviewClick:()=>{e(Tn())}}})(yt);function Me({isEditDrawerOpen:e}){const t=ne(),s=W(),o=M(),a=te(),{ruleId:r,tenantEmailDomain:u}=Y(),{useFeatureGate:l}=N(),[p,h]=d.useState(!1),[x,i]=d.useState(!1),c=k(y=>U(y)),m=k(y=>Ce(y)),C=m?.fetchState??"Not-Started",b=k(y=>$e(y)),g=c?.companyId??S.getSignedInUserTenant(u)?.companyId,A=ee(a?.loggedInUserRoleMap)||Ne(a?.loggedInUserRoleMap),{isFeatureEnabled:D}=l(F.isTreasuryEnabled),f=c?.company!=null&&He(c.company),I=D&&f,O=S.getSignedInUser(),L=c.tenantId,j={userId:O?.userId??"",sessionId:O?.zeniSessionId??"",tenantId:L??""},v=c.companyName;d.useEffect(()=>{!x&&C==="Not-Started"&&g&&(i(!0),o(we(!0)))},[x,C,g,o]);const E=y=>{h(y)},T=z(),P=!!s.state?.scrollToAddRule;return m?.fetchState!=="Completed"?n.jsx(de,{fetchState:"In-Progress",style:{backgroundColor:T.colors.grey5}}):n.jsxs(Lt,{children:[n.jsx(pe,{isAppContentDrawerOpen:p,handleDrawerToggle:E}),n.jsx(Ut,{navigate:t,location:s,currentTenant:c,companyName:v,handleDrawerToggle:E,isEditDrawerOpen:e,editingRuleId:r,authParams:j,includeTreasuryOption:I,hasAdminLevelAccess:A,zeniAccountsConfigDetail:b,scrollToAddRule:P})]})}const zt={overlayWidth:new J(100,100,58)},_t=({vendorId:e,isDrawerOpen:t,closeDrawerHandler:s})=>{const o=M(),a=z(),r=V();if(S.getSignedInUser()==null)throw Error("Can't access ach account page without signing in...");return n.jsx(q,{onClose:()=>{s(!0),o(le())},anchor:"right",open:t,PaperProps:{style:{width:zt.overlayWidth.valuePercentage(r),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:a.colors.black,opacity:.75,cursor:"pointer"}}},children:n.jsx(Mt,{onClick:u=>u.stopPropagation(),children:n.jsx(Tt,{vendorIdParam:e,accountContext:"express-pay"})})})},Mt=_(X)`
|
|
10
|
-
display: flex;
|
|
11
|
-
min-height: 100%;
|
|
12
|
-
flex-direction: column;
|
|
13
|
-
`,Vt={overlayWidth:new J(100,100,58)},$t=({isDrawerOpen:e,closeDrawerHandler:t})=>{const s=M(),o=z(),a=V();if(S.getSignedInUser()==null)throw Error("Can't access address page without signing in...");return n.jsx(q,{onClose:()=>{t(!0),s(le())},anchor:"right",open:e,PaperProps:{style:{width:Vt.overlayWidth.valuePercentage(a),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.75,cursor:"pointer"}}},children:n.jsx(Nt,{onClick:r=>r.stopPropagation(),children:n.jsx(Ft,{accountContext:"express-pay",addressTypeParam:"vendor_address"})})})},Nt=_(X)`
|
|
14
|
-
display: flex;
|
|
15
|
-
min-height: 100%;
|
|
16
|
-
flex-direction: column;
|
|
17
|
-
`,Ht={overlayWidth:new J(100,100,58)},Zt=({vendorId:e,isDrawerOpen:t,closeDrawerHandler:s})=>{const o=M(),a=z(),r=V();if(S.getSignedInUser()==null)throw Error("Can't access ach account page without signing in...");return n.jsx(q,{onClose:()=>{s(!0),o(le())},anchor:"right",open:t,PaperProps:{style:{width:Ht.overlayWidth.valuePercentage(r),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:a.colors.black,opacity:.75,cursor:"pointer"}}},children:n.jsx(Gt,{onClick:u=>u.stopPropagation(),children:n.jsx(Ot,{vendorIdParam:e,accountContext:"express-pay"})})})},Gt=_(X)`
|
|
18
|
-
display: flex;
|
|
19
|
-
min-height: 100%;
|
|
20
|
-
flex-direction: column;
|
|
21
|
-
`,Wt=_.div`
|
|
22
|
-
display: flex;
|
|
23
|
-
height: 100vh;
|
|
24
|
-
width: 100%;
|
|
25
|
-
flex: 1 1 auto;
|
|
26
|
-
flex-direction: column;
|
|
27
|
-
align-items: center;
|
|
28
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
29
|
-
`,Yt=K(function(e,t){const s=U(e),o=S.getSignedInUser(),a=s.tenantId,r={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:a??""},u=t.expressPayDetails,l=e.entityAutoCompleteState.autoCompleteText.common,p=_n(e,"common");return{expressPayDetails:u,fileProps:{authParams:r,filesEndPoint:`${Se.fileMicroServiceBaseUrl}`},vendorSearchAutoCompleteData:{autoCompleteText:l,entityAutoCompleteView:p},analytics:t.analytics}},function(e,t){const{navigate:s}=t;return{onSaveVendor:o=>{e(Yn(o,void 0,void 0,!0))},saveVendorDetailLocalData:(o,a)=>{e(Be({vendorId:a,localData:o}))},saveExpressPayLocalData:o=>{e(Wn({localData:o}))},onVendorSelected:o=>{o!=null&&e(Gn(o,!1))},updateSelectedVendorForCreate:o=>{e(Zn(o))},initializeVendorAddress:()=>{e(Hn())},resetVendorSaveStatus:o=>{e(Nn({vendorId:o}))},vendorSearchAutoCompleteActions:{onAutoCompleteInputChange:(o,a)=>{o.trim().length>=2?e($n({searchString:o,entityType:a,searchOrigin:"common"})):o.trim().length===0&&e(Fe("common"))},onCancelAutoComplete:()=>{e(Fe("common"))}},chooseNewVendor:o=>{e(Be({localData:{vendorName:o}}))},onClickAddAccount:o=>{o.method.toLowerCase().indexOf("ach")!==-1?s("./add-ach",{relative:"path"}):o.method.toLowerCase().indexOf("wire")!==-1&&o.method.toLowerCase().indexOf("domestic")!==-1&&s("./add-wire",{relative:"path"})},updateFilesEntity:o=>{e(Ye({files:o}))},onDeleteFile:o=>{e(We(o))},onEditFileName:(o,a)=>{e(Ge(o,a.split(".")[0]))},onBackClick:o=>{o!=null&&e(Oe(o)),e(Oe()),e(Vn()),e(le()),s("../",{relative:"path"})},onSchedulePayment:()=>{e(Mn())}}})(Ct);function se({isAddACHDrawerOpen:e,isAddWireDrawerOpen:t,isAddAddressDrawerOpen:s}){const o=ne(),a=W(),r=M(),[u,l]=d.useState(!1),{tenantEmailDomain:p}=Y(),h=te(),x=k(y=>y.expressPayState.fetchState),i=k(y=>U(y)),c=k(y=>Un(y)),m=c.expressPayLocalData?.vendorId,C=i.companyId??S.getSignedInUserTenant(p)?.companyId,[b,g]=d.useState(!1),[A,D]=d.useState(!1),[f,I]=d.useState(!1),O=an(a.state?.pathnameStackToGoBack),{poppedPathname:L}=O,j=L?.split("/"),v=j?.[j.length-1];d.useEffect(()=>{e===!0?g(!0):(g(!1),document.body.style.overflow="auto")},[e]),d.useEffect(()=>{t===!0?D(!0):(D(!1),document.body.style.overflow="auto")},[t]),d.useEffect(()=>{s===!0?I(!0):(I(!1),document.body.style.overflow="auto")},[s]),d.useEffect(()=>{x==="Not-Started"&&r(zn(!0,!0))},[x,r]);const E=xt(c.vendorViewDetails.bankAccountCreationState?.fetchState);if(d.useEffect(()=>{E==="In-Progress"&&c.vendorViewDetails.bankAccountCreationState?.fetchState==="Completed"&&P()},[E,c.vendorViewDetails.bankAccountCreationState?.fetchState]),S.getSignedInUser()==null)throw Error("Can't access express pay page without signing in...");const T=y=>{l(y)},P=()=>{g(!1),D(!1),o("../",{relative:"path"})};return n.jsxs(Wt,{children:[Ue(a)?n.jsx(pe,{isAppContentDrawerOpen:u,handleDrawerToggle:T}):null,b===!0?n.jsx(_t,{vendorId:m,closeDrawerHandler:P,isDrawerOpen:b}):null,A===!0?n.jsx(Zt,{vendorId:m,closeDrawerHandler:P,isDrawerOpen:A}):null,f===!0?n.jsx($t,{closeDrawerHandler:P,isDrawerOpen:f}):null,n.jsx(Bt,{vendorId:m,isExpressPayPage:!0}),n.jsx(Yt,{navigate:o,location:a,companyId:C,accountId:v,analytics:R,currentTenant:i,vendorId:m,roleMap:h?.loggedInUserRoleMap,isSettings:Ue(a),expressPayDetails:c,onClickMenuIcon:()=>{T(!0)}})]})}const Kt={overlayWidth:new J(100,100,58)},Jt=({authParams:e,downloadAccountDetailEndPoint:t,isAccountInfoDrawerOpen:s,zeniBankAccountDetail:o,closeDrawerHandler:a})=>{const r=z(),u=V(),l=k(i=>$e(i)),p=k(i=>U(i));if(S.getSignedInUser()==null)throw Error("Can't access Account detail page without signing in...");const h=()=>{a(!0)},x={depositAccount:o,onDismissClick:h,zeniAccountsConfigDetail:l,authParams:e,downloadAccountDetailEndPoint:t,currentTenant:p};return n.jsx(q,{anchor:"right",open:s,PaperProps:{style:{width:Kt.overlayWidth.valuePercentage(u),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:r.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>h(),children:n.jsx(qt,{onClick:i=>i.stopPropagation(),children:n.jsx(wt,{...x})})})},qt=_(X)`
|
|
30
|
-
display: flex;
|
|
31
|
-
min-height: 100%;
|
|
32
|
-
flex-direction: column;
|
|
33
|
-
`,Xt={overlayWidth:new J(100,100,58)},cn=({isCheckDepositDrawerOpen:e,closeDrawerHandler:t})=>{const s=z(),o=V(),a=M(),r=k(i=>U(i)),u=S.getSignedInUser(),l=r.tenantId,p={userId:u?.userId??"",sessionId:u?.zeniSessionId??"",tenantId:l??""};if(u==null)throw Error("Can't access check deposit page without signing in...");const h=k(i=>Kn(i)),x={analytics:R,checkDeposit:h,filesEndPoint:`${Se.fileMicroServiceBaseUrl}`,authParams:p,onSaveChangesToLocalStore:i=>{a(qn(i))},updateFilesEntity:i=>{a(Ye({files:i}))},onAnotherTransferClick:()=>{a(ye())},onDeleteFile:i=>{a(We(i))},onEditFileName:(i,c)=>{a(Ge(i,c.split(".")[0]))},onCheckDpositClick:()=>{a(Jn())},onDismissClick:()=>{t(!0),a(ye())}};return n.jsxs(n.Fragment,{children:[n.jsx(ue,{analytics:R,onLoad:i=>(c=>c.trackPageLoaded(be.Event.accountsDepositCheckFormViewed))(i)}),n.jsx(q,{anchor:"right",open:e,PaperProps:{style:{width:Xt.overlayWidth.valuePercentage(o),boxShadow:"none",zIndex:8}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.75,cursor:"pointer"}}},onClose:(i,c)=>(c==="backdropClick"||c==="escapeKeyDown")&&(t(!0),void a(ye())),children:n.jsx(Qt,{onClick:i=>i.stopPropagation(),children:n.jsx(kt,{...x})})})]})},Qt=_(X)`
|
|
34
|
-
display: flex;
|
|
35
|
-
min-height: 100%;
|
|
36
|
-
flex-direction: column;
|
|
37
|
-
`,ea={overlayWidth:new J(100,100,58)},na=K(function(e,t){const s=t.currentTenant?.companyId;return{plaidConnectionDetails:nt(e,s,"zeni_accounts","external_account").plaidConnectionDetails,depositAccountListView:Ze(e.depositAccountState,e.depositAccountListState)}},function(e,t){return{onReviewClick:()=>e(at()),clearReviewTransferDetail:()=>e(tt()),onFetchLinkTokenClick:s=>{e(Je("external_account",s))},onEstablishConnectionClick:s=>{e(Ke(s,t.currentTenant?.companyId,"external_account",void 0,"link_external_account"))}}})(At),ln=({isTransferDrawerOpen:e,authParams:t,downloadAccountDetailEndPoint:s,closeDrawerHandler:o,zeniAccountsConfig:a})=>{const r=k(f=>Xn(f)),u=k(f=>U(f)),l=z(),p=V(),h=M(),{accountId:x}=Y(),[i,c]=d.useState("achTransfer"),[m,C]=d.useState(!1);if(S.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const{useDynamicConfig:b}=N(),{configValue:g}=b(G.zeniAccountsConfig),A=ke(g),D=()=>{o(!0),h(Re())};return d.useEffect(()=>{r.reviewTransferDetail.fetchState==="Completed"&&C(!0)},[C,r.reviewTransferDetail.fetchState]),n.jsxs(n.Fragment,{children:[n.jsx(ue,{analytics:R,onLoad:f=>(I=>I.trackPageLoaded(be.Event.zeniAccountsTransferFormViewed))(f)}),n.jsx(q,{onClose:()=>{(i==="achTransfer"&&m===!1||i==="achTransfer"&&m&&r.fetchState==="Completed")&&D()},anchor:"right",open:e,PaperProps:{style:{width:ea.overlayWidth.valuePercentage(p),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:l.colors.black,opacity:.75,cursor:"pointer"}}},children:n.jsx(ta,{onClick:f=>f.stopPropagation(),children:n.jsx(na,{analytics:R,transferDetails:r,authParams:t,downloadAccountDetailEndPoint:s,onTransferClick:()=>{R.trackTransferBetweenAccountsFormClicked("Transfer",r.reviewTransferDetail.reviewTransferMoney.isShowDailyAchLimitWarning?"Review Split Transfer":"Review Transfer",r.transferDetailLocalData.transferFrom?.label,r.transferDetailLocalData.transferTo?.label,r.transferDetailLocalData.amount.amount,r.reviewTransferDetail.reviewTransferMoney.isShowDailyAchLimitWarning,r.reviewTransferDetail.reviewTransferMoney.transferSchedules.length,r.transferDetailLocalData.transferFrom?.accType==="paymentAccount"&&r.transferDetailLocalData.transferTo?.accType==="depositAccount"&&a.zeniAccountsConfigDetail.depositProductConfig.depositProducts?.[0].range?.[1]!=null&&r.transferDetailLocalData.amount.amount>a.zeniAccountsConfigDetail.depositProductConfig.depositProducts[0].range[1]),h(et(x))},onDismissClick:D,onSaveChangesToLocalStore:f=>{h(Qn(f))},onAnotherTransferClick:()=>{C(!1),h(Re())},currentTenant:u,zeniAccountsConfigDetail:a,currentDrawerContent:i,setCurrentDrawerContent:c,showReviewContent:m,setShowReviewContent:C,onBackClick:()=>{},maxInsuredAmount:A.maxInsuredAmount})})})]})},ta=_(X)`
|
|
38
|
-
display: flex;
|
|
39
|
-
min-height: 100%;
|
|
40
|
-
flex-direction: column;
|
|
41
|
-
`,aa=_.div`
|
|
42
|
-
display: flex;
|
|
43
|
-
min-height: 100%;
|
|
44
|
-
width: 100%;
|
|
45
|
-
flex: 1 1 auto;
|
|
46
|
-
flex-direction: column;
|
|
47
|
-
align-items: center;
|
|
48
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
49
|
-
`,oa=K(function(e,t){return{zeniAccountListView:qe(e),isExpressPayEnabled:t.isExpressPayEnabled,analytics:t.analytics}},function(e,t){const{navigate:s,currentTenant:o,location:a,companyId:r,handleDrawerToggle:u,analytics:l,isBillPayEnabled:p,isDebitCardFeatureEnabled:h}=t,{tenantEmailDomain:x}=o;return{onZeniAccountClick:(i,c)=>{l.trackAccountsListPageClicked("Accounts Row Item Click",c,"active");const m=sa(x,i),C=ce(a.state?.pathnameStackToGoBack,a.pathname);s(m,{state:{pathnameStackToGoBack:C}})},onSettingsClick:()=>{l.trackAccountsListPageClicked("Settings Icon"),s("setup")},onReloadTransactions:()=>{e(Xe(!1))},handleMoveMoneyOptionSelection:(i,c)=>{let m="page-not-found";i==="sendMoney"&&(m=mn(x)),i==="payBill"?m=dn(o,p,h):i==="transfer"?(m=un(x),c!=null&&e(en(c))):i==="checkDeposit"&&(m=pn(x));const C=ce(a.state?.pathnameStackToGoBack,a.pathname);s(m,{state:{pathnameStackToGoBack:C}})},unlinkPaymentAccount:(i,c)=>{l.trackAccountsListPageClicked("Unlink Account",c),e(it(i))},onFetchLinkTokenClick:(i,c)=>{e(Je("external_account",i,c))},onUpdatePaymentAccountStatus:(i,c,m)=>{e(rt(i,c,"zeni_accounts","external_account",m))},onEstablishConnectionClick:i=>{e(Ke(i,r,"external_account",void 0,"link_external_account"))},onCreateCheckingClick:i=>{e(st(i))},onClickMenuIcon:()=>{u(!0)},onTreasuryGetStartedClick:()=>{s("../../treasury/promo")},onAutoTransferClick:i=>{i?s("./auto-transfer",{state:{...a.state,scrollToAddRule:!0}}):s("./auto-transfer")}}})(St);function xe({isTransferDrawerOpen:e,isCheckDepositDrawerOpen:t}){const s=W(),o=ne(),a=M(),r=V(),{tenantEmailDomain:u}=Y(),{useDynamicConfig:l,useFeatureGate:p}=N(),h=z(),{configValue:x}=l(G.zeniAccountsConfig),{isFeatureEnabled:i}=p(F.isTreasuryEnabled),{isFeatureEnabled:c}=p(F.isDebitCardFeatureEnabled),{isFeatureEnabled:m}=p(F.isAutoTransferRuleEnabled),{isFeatureEnabled:C}=p(F.isCheckingCommentingEnabled),b=ke(x),g=k(B=>U(B)),A=g.companyId??S.getSignedInUserTenant(u)?.companyId,{configValue:D}=l(G.expressPayConfig),f=D.is_enable_all_tenants===!0||D.tenant_ids!=null&&D.tenant_ids.includes(g.tenantId),[I,O]=d.useState(!1),[L,j]=d.useState(!1),[v,E]=d.useState(!1),[T,P]=d.useState(!1),y=k(B=>qe(B)),$=y.fetchState,ae=k(B=>Ce(B)),oe=ae?.fetchState??"Not-Started",me=!!g.companyZeniAccountInfo?.info?.isZeniAccountEnabled,H=te(),Z=!!g.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted,hn=!!g.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,gn=ee(H?.loggedInUserRoleMap),fn=Ae(H?.loggedInUserRoleMap),yn=!!g.companyBillPayInfo?.info?.isBillPayEnabled,Ee=S.getSignedInUser(),xn={userId:Ee?.userId??"",sessionId:Ee?.zeniSessionId??"",tenantId:g.tenantId??""},Cn=`${Ie}/account_details`,{areTenantIdsInSync:ve}=Dt();d.useEffect(()=>{!I&&ve&&(O(!0),a(Xe(!1)))},[I,a,$,ve]),d.useEffect(()=>{!L&&oe==="Not-Started"&&A&&(j(!0),a(we(!0)))},[L,oe,A,a]),d.useEffect(()=>{e!=null&&e===!0?E(!0):(E(!1),document.body.style.overflow="auto")},[e]),d.useEffect(()=>{P(t!=null&&t===!0)},[t]);const Pe=()=>{E(!1),o("..")},[wn,kn]=d.useState(!1),je=B=>{kn(B)},{isAiCfoAccessEnabled:An,onAskAiCfoClick:Dn}=rn({mobileExploreReferrer:"Checking Accounts"});on({isDataReady:$==="Completed"});const In=g.company!=null&&He(g.company),he=(i&&In)===!0&&!hn,[Sn,bn]=d.useState(!1),ge=k(B=>B.treasurySetupViewState.treasuryFundsDetails),En=ge.fundsDetails,vn=It(En);d.useEffect(()=>{he!==!0||Sn||ge?.fetchStatus.fetchState!=="Not-Started"||(bn(!0),a(ot()))},[ge.fetchStatus,a]);const Pn=Qe(g),jn=De(c,g);return Pn===!0&&jn!==!0?n.jsx(sn,{}):me?n.jsxs(n.Fragment,{children:[y.fetchState==="Completed"&&v===!1&&T===!1?n.jsx(ue,{analytics:R,onLoad:B=>(Te=>{Te.trackAccountsListPageViewed(y.depositAccountsSelectorView.depositAccounts.length,y.externalAccountsSelectorView.paymentAccounts.length,ze(y.summary?.totalBalance.available.amount??0),ze(y.summary?.totalInterest.available.amount??0),y.zeniAccountsConfig.zeniAccountsConfigDetail.annualPercentageYield),he&&Te.trackTreasuryPromoView("Checking Promo Banner")})(B)}):null,v===!0?n.jsx(ln,{closeDrawerHandler:Pe,isTransferDrawerOpen:v,zeniAccountsConfig:y.zeniAccountsConfig,authParams:xn,downloadAccountDetailEndPoint:Cn}):null,T===!0?n.jsx(cn,{closeDrawerHandler:Pe,isCheckDepositDrawerOpen:T}):null,n.jsxs(aa,{windowSize:r,children:[n.jsx(pe,{isAppContentDrawerOpen:wn,handleDrawerToggle:je}),n.jsx(oa,{zeniBankListView:y,navigate:o,currentTenant:g,location:s,companyId:A,analytics:R,maxInsuredAmount:b.maxInsuredAmount,isExpressPayEnabled:f,isBillPayEnabled:yn,isCheckingCommentingEnabled:C,isDebitCardFeatureEnabled:c,isAutoTransferRuleEnabled:m,handleDrawerToggle:je,showTreasuryPromo:he,treasuryYieldPercentage:vn,treasuryInsuredAmount:5e5,isAiCfoAccessEnabled:An,onAskAiCfoClick:Dn})]})]}):Z&&gn?n.jsx(Q,{to:"../setup"}):g.companyZeniAccountInfo?.info&&!Z&&fn?n.jsx(Q,{to:"../promo",state:s.state}):n.jsx(de,{fetchState:"In-Progress",style:{backgroundColor:h.colors.grey5}})}const dn=(e,t,s)=>{const o=De(s,e),{tenantEmailDomain:a}=e;return o===!0||t===!1?`/${a}/bills`:`/${a}/bill/new`},sa=(e,t)=>`/${e}/checking/${t}`,un=(e,t)=>t==null?`/${e}/checking/transfer`:`/${e}/checking/${t}/transfer`,pn=(e,t)=>t==null?`/${e}/checking/check-deposit`:`/${e}/checking/${t}/check-deposit`,mn=e=>`/${e}/checking/express-pay`,ra=_.div`
|
|
50
|
-
display: flex;
|
|
51
|
-
width: 100%;
|
|
52
|
-
flex: 1 1 auto;
|
|
53
|
-
flex-direction: column;
|
|
54
|
-
align-items: center;
|
|
55
|
-
min-height: 100vh;
|
|
56
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
57
|
-
`,ia=K(function(e,t){const{currentTenant:s}=t,o=nn(e,t.accountId),a=S.getSignedInUser(),r=e.tenantState.currentTenantId,u={userId:a?.userId??"",sessionId:a?.zeniSessionId??"",tenantId:r??""},l=o.accountDetail?.id??"";return{currentTenantCompanyName:s.companyName??"",authParams:u,downloadEndPoint:`${Se.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${l}`,zeniAccountDetail:o,isExpressPayEnabled:t.isExpressPayEnabled,fetchState:o.fetchState}},function(e,t){const{navigate:s,currentTenant:o,location:a,accountId:r}=t,{tenantEmailDomain:u}=o;return{handleMoveMoneyOptionSelection:(l,p)=>{let h="page-not-found";l==="sendMoney"?h=mn(u):l==="payBill"?h=dn(o,t.isBillPayEnabled,t.isDebitCardFeatureEnabled):l==="transfer"?(h=un(u,r),p!=null&&e(en(p))):l==="checkDeposit"?(h=pn(u,r),p!=null&&e(ct(p))):l==="accountStatement"&&(h=la(u,r));const x=ce(a.state?.pathnameStackToGoBack,a.pathname);s(h,{state:{pathnameStackToGoBack:x}})},onAccountDetailClick:()=>{const l=ca(u,r),p=ce(a.state?.pathnameStackToGoBack,a.pathname);s(l,{state:{pathnameStackToGoBack:p}})},onEditNameClick:l=>{e(Le(r,"editName",l))},onReloadZeniAccountDetailPage:()=>{e(tn(r,!1))},onCloseAccountClick:()=>{e(Le(r,"closeAccount",""))},onBackClick:()=>{s("../",{relative:"path"})}}})(bt);function re({isTransferDrawerOpen:e,isCheckDepositDrawerOpen:t,isAccountInfoDrawerOpen:s}){const o=W(),a=ne(),r=M(),u=V(),{tenantEmailDomain:l,accountId:p}=Y(),{useDynamicConfig:h}=N(),{useFeatureGate:x}=N(),{isFeatureEnabled:i}=x(F.isDebitCardFeatureEnabled),{isFeatureEnabled:c}=x(F.isCheckingCommentingEnabled),m=k(Z=>U(Z)),{configValue:C}=h(G.expressPayConfig),b=C.is_enable_all_tenants===!0||C.tenant_ids!=null&&C.tenant_ids.includes(m.tenantId),g=!!m.companyBillPayInfo?.info?.isBillPayEnabled,A=S.getSignedInUser(),D=m.companyId??S.getSignedInUserTenant(l)?.companyId,f={userId:A?.userId??"",sessionId:A?.zeniSessionId??"",tenantId:m.tenantId??""},I=`${Ie}/account_details`,[O,L]=d.useState(!1),[j,v]=d.useState(!1),[E,T]=d.useState(!1),[P,y]=d.useState(!1),$=k(Z=>nn(Z,p??"")),ae=$.fetchState,{isAiCfoAccessEnabled:oe,onAskAiCfoClick:me}=rn({mobileExploreReferrer:"Checking Account Detail"});on({isDataReady:ae==="Completed"}),d.useEffect(()=>{O||(r(tn(p??"",!1)),L(!0))},[O,r,ae]),d.useEffect(()=>{y(s!=null&&s===!0)},[s]),d.useEffect(()=>{e!=null&&e===!0?v(!0):(v(!1),document.body.style.overflow="auto")},[e]),d.useEffect(()=>{T(t!=null&&t===!0)},[t]);const H=()=>{y(!1),a("..")};return n.jsxs(n.Fragment,{children:[P===!0&&$.accountDetail!=null?n.jsx(Jt,{authParams:f,downloadAccountDetailEndPoint:I,closeDrawerHandler:H,isAccountInfoDrawerOpen:P,zeniBankAccountDetail:$.accountDetail}):null,j===!0?n.jsx(ln,{closeDrawerHandler:H,isTransferDrawerOpen:j,zeniAccountsConfig:$.zeniAccountsConfig,authParams:f,downloadAccountDetailEndPoint:I}):null,E===!0?n.jsx(cn,{closeDrawerHandler:H,isCheckDepositDrawerOpen:E}):null,n.jsx(ra,{windowSize:u,children:n.jsx(ia,{navigate:a,currentTenant:m,location:o,companyId:D,isDebitCardFeatureEnabled:i,accountId:p??"",isBillPayEnabled:g,isCheckingCommentingEnabled:c,isExpressPayEnabled:b,isAiCfoAccessEnabled:oe,onAskAiCfoClick:me})})]})}const ca=(e,t)=>`/${e}/checking/${t}/account-info`,la=(e,t)=>`/${e}/checking/${t}/statements`,da=K(function(e,t){const{companyId:s}=t;return{zeniAccountSetupView:lt(e,s),meetingUrl:"https://meetings.hubspot.com/niharn/demo-accounts?embed=true"}},function(e,t){const{navigate:s,companyId:o}=t;return{onSetupButtonClick:()=>{R.trackAccountsPromoPageClicked("Setup Accounts"),e(dt(o))},onBackClick:()=>{s("../..",{relative:"path"})},onSetupZeniAccountSuccess:()=>{s("../setup",{relative:"path"})}}})(vt),ua=()=>{const e=ne(),t=W(),{tenantEmailDomain:s}=Y(),{useDynamicConfig:o}=N(),a=z(),[r,u]=d.useState(!1),[l,p]=d.useState(!1),h=k(f=>U(f)),{configValue:x}=o(G.zeniAccountsConfig),i=ke(x);d.useEffect(()=>{l===!1&&t.state?.message==="activation"&&p(!0)},[t.state]);const c=S.getSignedInUserTenant(s)?.companyId??h.companyId,m=S.getSignedInUser(),C=!!h.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted,b=f=>{u(f)};if(m==null)throw Error("Can't access Zeni account promo page without signing in...");const g=te(),A=ee(g?.loggedInUserRoleMap),D=Ae(g?.loggedInUserRoleMap);if(C&&A)return n.jsx(Q,{to:"../../checking/setup"});if(h.company?.companyZeniAccountInfo&&(!C&&A||D)){if(t.state?.message==="activation"){const f=an(t.state?.pathnameStackToGoBack);e(t.pathname,{state:{...t.state,message:void 0,pathnameStackToGoBack:f.newStack}})}return n.jsxs(n.Fragment,{children:[n.jsx(Et,{showConfetti:l}),n.jsx(ue,{analytics:R,onLoad:f=>(I=>I.trackPageLoaded(be.Event.accountsPromoPageViewed))(f)}),n.jsx(pe,{isAppContentDrawerOpen:r,handleDrawerToggle:b}),n.jsx(da,{analytics:R,navigate:e,companyId:c,onClickMenuIcon:()=>{b(!0)},maxAnnualPercentageYield:i.maxAnnualPercentageYield,maxInsuredAmount:i.maxInsuredAmount,exampleBankBalance:3e6})]})}return n.jsx(de,{fetchState:"In-Progress",style:{backgroundColor:a.colors.grey5}})};function _a(){const e=W(),t=k(P=>U(P)),s=z(),{useFeatureGate:o,useDynamicConfig:a}=N(),r=te(),u=ee(r?.loggedInUserRoleMap),l=Ae(r?.loggedInUserRoleMap),p=!!t.company?.companyZeniAccountInfo.isZeniAccountEnabled,h=!!t.company?.companyZeniAccountInfo.isZeniAccountTOSAccepted,{isFeatureEnabled:x}=o(F.isChargeCardFeatureEnabled),{isFeatureEnabled:i}=o(F.isDebitCardFeatureEnabled),c=Qe(t),m=De(i,t),C=t?.userRole!=null&&ut(t?.userRole),b=(t?.company==null||t.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!C)&&pt(r?.loggedInUserRoleMap),g=mt(r?.loggedInUserRoleMap),A=(t?.company==null||t.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!C)&&ht(r?.loggedInUserRoleMap),{isFeatureEnabled:D}=o(F.isDepositAccountsFeatureEnabled),f=D&&!C,{configValue:I}=a(G.expressPayConfig),O=I.is_enable_all_tenants===!0||I.tenant_ids!=null&&I.tenant_ids.includes(t.tenantId),{isFeatureEnabled:L}=o(F.isAutoTransferRuleEnabled),j=Pt(t,x,i)&&!C&>(r?.loggedInUserRoleMap),v=ft(r?.loggedInUserRoleMap),E=f&&ee(r?.loggedInUserRoleMap),T=E||Ne(r?.loggedInUserRoleMap);return n.jsxs(Ve,{children:[n.jsx(w,{path:"setup",element:n.jsx(_e,{isBillPayAdminLevelAccess:b,isUserHasOnlyBillPayAccess:g,isReimbursementAdminLevelAccess:A,isZeniAccountAdminLevelAccess:E,isChargeCardAdminLevelAccess:j,isUserHasOnlyCardAccess:v,productType:"zeni_accounts",type:"setup"})}),n.jsx(w,{path:"verification",element:n.jsx(_e,{isBillPayAdminLevelAccess:b,isUserHasOnlyBillPayAccess:g,isReimbursementAdminLevelAccess:A,isZeniAccountAdminLevelAccess:E,isChargeCardAdminLevelAccess:j,isUserHasOnlyCardAccess:v,productType:"zeni_accounts",type:"verification"})}),L?n.jsxs(n.Fragment,{children:[n.jsx(w,{path:"auto-transfer",element:n.jsx(Me,{})}),T?n.jsx(w,{path:"auto-transfer/:ruleId/edit",element:n.jsx(Me,{isEditDrawerOpen:!0})}):null]}):n.jsx(w,{path:"auto-transfer",element:n.jsx(ie,{})}),O&&u?n.jsxs(n.Fragment,{children:[n.jsx(w,{path:"express-pay",element:n.jsx(se,{})}),n.jsx(w,{path:"express-pay/add-ach",element:n.jsx(se,{isAddACHDrawerOpen:!0})}),n.jsx(w,{path:"express-pay/add-wire/add-address",element:n.jsx(se,{isAddAddressDrawerOpen:!0})}),n.jsx(w,{path:"express-pay/add-wire",element:n.jsx(se,{isAddWireDrawerOpen:!0})})]}):n.jsx(w,{path:"express-pay",element:n.jsx(ie,{})}),n.jsx(w,{path:"promo",element:n.jsx(ua,{})}),c&&!m?n.jsx(w,{path:"/*",element:n.jsx(sn,{})}):p?n.jsxs(n.Fragment,{children:[n.jsx(w,{path:"/",element:n.jsx(xe,{})}),n.jsx(w,{path:"transfer",element:n.jsx(xe,{isTransferDrawerOpen:!0})}),n.jsx(w,{path:"check-deposit",element:n.jsx(xe,{isCheckDepositDrawerOpen:!0})}),n.jsx(w,{path:":accountId/*",element:n.jsx(pa,{})}),n.jsx(w,{path:"*",element:n.jsx(ie,{})})]}):h&&u?n.jsx(w,{path:"*",element:n.jsx(Q,{to:"../setup"})}):t.company?.companyZeniAccountInfo&&l?n.jsx(w,{path:"*",element:n.jsx(Q,{to:"../promo",state:e.state})}):n.jsx(w,{path:"*",element:n.jsx(de,{fetchState:"In-Progress",style:{backgroundColor:s.colors.grey5,boxShadow:`0px 2px ${jt.sp1} ${s.colors.dropShadowNormal}`}})})]})}function pa(){return n.jsxs(Ve,{children:[n.jsx(w,{path:"/",element:n.jsx(re,{})}),n.jsx(w,{path:"account-info",element:n.jsx(re,{isAccountInfoDrawerOpen:!0})}),n.jsx(w,{path:"transfer",element:n.jsx(re,{isTransferDrawerOpen:!0})}),n.jsx(w,{path:"check-deposit",element:n.jsx(re,{isCheckDepositDrawerOpen:!0})}),n.jsx(w,{path:"statements",element:n.jsx(Rt,{})}),n.jsx(w,{path:"*",element:n.jsx(ie,{})})]})}export{_a as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-CnWjJuBt.js";import{a as u}from"./sentry-1cGDtjwd.js";import{h as x,u as j,g as B,i as $,j as p}from"./core-B01_r_a6.js";import{II as s,IH as v,OX as C,eP as P,OY as T}from"./zeni-epic-state-BFnJgXOA.js";import{J as z,at as g,h as D,z as E,B as L,c4 as N,p as U}from"./index-BpLeRKyQ.js";import{n as _}from"./mui-DRaG-BlK.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]="decdd614-f67e-45df-9f5f-82f6a5a8403c",e._sentryDebugIdIdentifier="sentry-dbid-decdd614-f67e-45df-9f5f-82f6a5a8403c")}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 X(){const e=x(),n=j(),d=z(),f=B();let{accountId:a}=$(),l=`${g.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${a}`;a==null&&f.pathname.includes(`${s}/statements`)&&(a=s,l=`${g.bankingMicroServiceBaseUrl}/1.0/${s}`);const[m,y]=u.useState(!1),h=D();u.useEffect(()=>{m||(y(!0),n(v(a??"",!1)))},[m,n]);const o=p(t=>C(t,a??"")),I=()=>{const t=U(f.state?.pathnameStackToGoBack),S=t.poppedPathname??"..";e(S,{state:{pathnameStackToGoBack:t.newStack}})},c=E.getSignedInUser(),r=p(t=>P(t)),b={userId:c?.userId??"",sessionId:c?.zeniSessionId??"",tenantId:r.tenantId??""},w=T(a??"")===!0?s:o.zeniAccountDetail?.accountLast4??"",k=r.company?.companyInfo.companyLegalName??r.companyName;if(c==null)throw Error("Can't access address page without signing in...");return o.fetchState!=="Completed"?i.jsx(L,{fetchState:"In-Progress",style:{backgroundColor:h.colors.grey5}}):i.jsx(G,{windowSize:d,children:i.jsx(N,{currentTenantCompanyName:k,statementListView:o,accountLast4:w,onBackClick:I,authParams:b,downloadEndPoint:l})})}export{X as Z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{U as a}from"./index-BpLeRKyQ.js";import"./mui-DRaG-BlK.js";import"./sentry-1cGDtjwd.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]="ba62256a-a25e-4a91-8577-afe9acf121aa",e._sentryDebugIdIdentifier="sentry-dbid-ba62256a-a25e-4a91-8577-afe9acf121aa")}catch{}})();function f(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}`),a(o)??"en"}return"en"}export{f as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as u}from"./sentry-1cGDtjwd.js";import{h as b,g,i as h,j as S}from"./core-B01_r_a6.js";import{eP as y}from"./zeni-epic-state-BFnJgXOA.js";import{T as k,J as C,a as T,W as A,$ as I,r as w,a1 as D}from"./index-BpLeRKyQ.js";import"./mui-DRaG-BlK.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]="99f24613-d0a8-4632-889e-f5dc4ddd14a8",e._sentryDebugIdIdentifier="sentry-dbid-99f24613-d0a8-4632-889e-f5dc4ddd14a8")}catch{}})();function j(e){const{mobileExploreReferrer:t}=e,{isAiCfoOpen:r,setIsAiCfoOpen:i}=k(),s=b(),o=g(),{tenantEmailDomain:n}=h(),c=C(),f=D(c),l=T(),p=A(),m=S(a=>a.tenantState.fetchState==="Completed"||a.tenantState.activeTenantFetchState.fetchState==="Completed"?y(a):void 0),d=m?.masterTOSInfo?.isMasterTOSAccepted??!1;return{isAiCfoAccessEnabled:p&&l&&!r,onAskAiCfoClick:u.useCallback(()=>{if(n!=null)if(d)if(f){const a=w(o.state?.pathnameStackToGoBack,o.pathname);s(`/${n}/ai-cfo/explore`,{state:{pathnameStackToGoBack:a,referrer:t}})}else i(!0);else I({location:o,navigate:s,mergeState:{referrer:t}})},[d,f,o,t,s,i,n])}}export{j as u};
|