@zeniai/web-app-ui 5.0.54-qa → 5.0.55-qa
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-DmNqU45X.js +1 -0
- package/dist/assets/{AddressScreen-ChjeKEBH.js → AddressScreen-CD02bE7U.js} +2 -2
- package/dist/assets/{AiCfoScreen-Bn1ZDZwq.js → AiCfoScreen-twy_oEHo.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-DrVfWwhS.js → BillPayApprovalRoutes-2MMsFms-.js} +1 -1
- package/dist/assets/{BillPayRoutes-BjdJSzTb.js → BillPayRoutes-DabCBXCD.js} +7 -7
- package/dist/assets/{BusinessVerificationPageScreen-AcNcSrfm.js → BusinessVerificationPageScreen-DY36UKxh.js} +2 -2
- package/dist/assets/{ChargeCardRoutes-BZ-GpRol.js → ChargeCardRoutes-BKvKKz6Y.js} +8 -8
- package/dist/assets/CompanyPassportScreen-Deb1Mskj.js +1 -0
- package/dist/assets/ConnectionAuthScreen-AkiKcrRN.js +11 -0
- package/dist/assets/CustomerOnboardingAuthScreen-B7puRRld.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-BsfNG_4M.js → CustomerOnboardingRoutes-reDt__4U.js} +3 -3
- package/dist/assets/{DashboardRoutes-C4CcYbYI.js → DashboardRoutes-B6YOY8LT.js} +3 -3
- package/dist/assets/{DefaultTenantHome-G20Laxjh.js → DefaultTenantHome-CG3A8Zld.js} +1 -1
- package/dist/assets/DomesticWireDetailScreen-CHZr0Rwr.js +18 -0
- package/dist/assets/DrawerScreen-C9oSGPfX.js +1 -0
- package/dist/assets/EntityDetailRoutes-BJ_l6xDX.js +1 -0
- package/dist/assets/ExpenseAutomationRoutes-jv6wUEHc.js +25 -0
- package/dist/assets/FeaturePreviewScreen-Dvylx-Wk.js +1 -0
- package/dist/assets/MagicLinkRoutes-DHuoixGe.js +72 -0
- package/dist/assets/MagicLinkSignInScreen-Cy0ox9On.js +12 -0
- package/dist/assets/MobileAppDrawer-BCaWgXZQ.js +1 -0
- package/dist/assets/NotFoundScreen-B8ppov_c.js +1 -0
- package/dist/assets/{NotificationRoutes-BL6Ye5sk.js → NotificationRoutes-CzsQHWBP.js} +1 -1
- package/dist/assets/PandLWithForecastRoutes-rl7st3Iq.js +1 -0
- package/dist/assets/PeopleRoutes-BGm45BRK.js +22 -0
- package/dist/assets/PerformanceRoutes-5okn2Dl7.js +1 -0
- package/dist/assets/{Preview-Dd1RgxSx.js → Preview-CPDm5N-k.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-CwcXMmNE.js → QBOConnectionScreen-DYw5d1DS.js} +1 -1
- package/dist/assets/ReferralListScreen-B2bhjkxb.js +5 -0
- package/dist/assets/ReimbursementApprovalRoutes-C_ldCyqW.js +1 -0
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-BoCrHkhT.js → ReimbursementApprovalRuleDetailScreen-BM0wb7RO.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-BhSlMM0p.js → ReimbursementRoutes-C1eoHxke.js} +9 -9
- package/dist/assets/{ReportsRoutes-R-2ogc4m.js → ReportsRoutes-aH8NyeQL.js} +1 -1
- package/dist/assets/RewardsRoutes-BG1TYOwi.js +1 -0
- package/dist/assets/{ScreenRoutes-BeF5_NIp.js → ScreenRoutes-Be433Rce.js} +2 -2
- package/dist/assets/{SettingsRoutes-BWvITHR2.js → SettingsRoutes-Dkedlq8H.js} +6 -6
- package/dist/assets/{SetupPagesScreen-JUPsQ0S4.js → SetupPagesScreen-DrXS3IRK.js} +5 -5
- package/dist/assets/SignInScreen-B584l1AV.js +1 -0
- package/dist/assets/SignOutScreen--i7fPI83.js +9 -0
- package/dist/assets/{TaskListScreen-CMvx-0XC.js → TaskListScreen-CbCuzBgx.js} +2 -2
- package/dist/assets/TaskRoutes-C6JGvbta.js +9 -0
- package/dist/assets/TransactionDetailRoutes-DWhYtS5p.js +1 -0
- package/dist/assets/{TransactionDetailScreen-B-hqlTRL.js → TransactionDetailScreen-B0sPog3q.js} +2 -2
- package/dist/assets/{TransactionListRoutes-CtcO3OOT.js → TransactionListRoutes-DbOVYmb-.js} +1 -1
- package/dist/assets/{TreasuryRoutes-KBaLMYzC.js → TreasuryRoutes-Bw9U7ZrB.js} +5 -5
- package/dist/assets/{VendorsRoutes-DQ6Ab1QZ.js → VendorsRoutes-CYu2rHMN.js} +1 -1
- package/dist/assets/WiseConfirmationScreen-CT1Vk2du.js +12 -0
- package/dist/assets/{ZeniAccountRoutes-DXq3JSQF.js → ZeniAccountRoutes-C-OLyEIo.js} +11 -11
- package/dist/assets/ZeniAccountStatementScreen-Dufb_RXJ.js +9 -0
- package/dist/assets/{accountMappingHelper-Bcmi4v71.js → accountMappingHelper-CQSFsM6N.js} +1 -1
- package/dist/assets/{analytics-zC4vJBLG.js → analytics-ByrfXPqG.js} +1 -1
- package/dist/assets/{analyticsHelper-CYuyeE-z.js → analyticsHelper-xeJXIGDO.js} +1 -1
- package/dist/assets/{core-sRr8O2Ja.js → core-DcM32IW_.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-DfA0P9Xn.js → decodeURIComponentSafe-mAxyJdJ8.js} +1 -1
- package/dist/assets/{dnd-CZEKCPsp.js → dnd-36WXho_9.js} +1 -1
- package/dist/assets/{empty-CwKXvn2c.js → empty-GSTAUqhH.js} +1 -1
- package/dist/assets/{empty-CA_4wgdA.js → empty-lHXrwReA.js} +1 -1
- package/dist/assets/{emptyVideoElement-SkqYxom1.js → emptyVideoElement-Bsa6If51.js} +1 -1
- package/dist/assets/epic-DhZTt5cl.js +2 -0
- package/dist/assets/{getLocaleForTenant-CUETA9qT.js → getLocaleForTenant-Fu8c_Haa.js} +1 -1
- package/dist/assets/{index-B8scoeQA.js → index-BZDuIo7x.js} +10539 -10509
- package/dist/assets/{index-BWlUPwOb.js → index-Bw9qJkeB.js} +1 -1
- package/dist/assets/{index-Cu-Qhunl.js → index-CR2DVZE0.js} +2 -2
- package/dist/assets/{index-DatNfK53.js → index-CjaQ8-D2.js} +1 -1
- package/dist/assets/{index-BnBIcb2M.js → index-DTGcnfLC.js} +1 -1
- package/dist/assets/{index-B53H88q7.js → index-Dq0r4E9j.js} +1 -1
- package/dist/assets/{index-CkGuUxlY.js → index-p7Us2Fcf.js} +1 -1
- package/dist/assets/{lexical-CtDGfH8b.js → lexical-CYAYrhLa.js} +1 -1
- package/dist/assets/{liveblocks-XXI3_E1y.js → liveblocks-BeS4QmMp.js} +1 -1
- package/dist/assets/{lottie-CbW-xVFB.js → lottie-Bdncx-qB.js} +1 -1
- package/dist/assets/{mui-CL-iXERd.js → mui--qrGbwFJ.js} +1 -1
- package/dist/assets/{pathToGoBack-DHgKJexU.js → pathToGoBack-Cn4t6MOa.js} +1 -1
- package/dist/assets/{pdf-BVi8zWaH.js → pdf-6nmWWkz8.js} +4 -4
- package/dist/assets/{pdf-lib-Dkp2Hlcw.js → pdf-lib-rQgtUIvp.js} +1 -1
- package/dist/assets/{plaid-BUQgPXGQ.js → plaid-BZ0BFqP0.js} +1 -1
- package/dist/assets/{pusher-DAE3v-KB.js → pusher-4QLniNXV.js} +1 -1
- package/dist/assets/{react-Bsc5-Np9.js → react-BFaux__7.js} +1 -1
- package/dist/assets/{react-CdSc8RjC.js → react-BOWjwOm8.js} +1 -1
- package/dist/assets/{react-D4LK66mF.js → react-BszWSDWQ.js} +1 -1
- package/dist/assets/{react-CMgbSfhl.js → react-C3zOniDH.js} +1 -1
- package/dist/assets/{react-DQEvqRaf.js → react-DCTwOcr5.js} +1 -1
- package/dist/assets/{react-C8RqDmaV.js → react-DKUlDjBa.js} +1 -1
- package/dist/assets/{recharts-z_5Sq5F0.js → recharts-DoWl4vaN.js} +1 -1
- package/dist/assets/{routePaths-0yQK7ZVo.js → routePaths-DLti7tZb.js} +1 -1
- package/dist/assets/{sentry-DrlL61Aq.js → sentry-BlmJH5WH.js} +1 -1
- package/dist/assets/{url-D3wKu-Ai.js → url-AJ2wpRsW.js} +1 -1
- package/dist/assets/{url-CnXg07em.js → url-BG92tf7R.js} +1 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-CHoGbMpp.js +1 -0
- package/dist/assets/{useDeviceId-D2RgNqNP.js → useDeviceId-DaD3aMiS.js} +1 -1
- package/dist/assets/useFetchSuggestedQuestionsWhenReady-DVUj1bst.js +1 -0
- package/dist/assets/useInitialThreadRequest-CV6--y9X.js +1 -0
- package/dist/assets/{utils-DCRx3jP7.js → utils-RmRP6xA4.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-CiVcMng7.js → withTransactionSidePanel-BOlkvwMK.js} +3 -3
- package/dist/assets/{zeni-epic-state-BlOBva0w.js → zeni-epic-state-ChnjRetZ.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/AddressRoutes-Ct3N3W-B.js +0 -1
- package/dist/assets/CompanyPassportScreen--lpPP9CU.js +0 -1
- package/dist/assets/ConnectionAuthScreen-HswO-C2z.js +0 -11
- package/dist/assets/CustomerOnboardingAuthScreen-GS886dgA.js +0 -1
- package/dist/assets/DomesticWireDetailScreen-ChnkS-X_.js +0 -18
- package/dist/assets/DrawerScreen-CeA1faKQ.js +0 -1
- package/dist/assets/EntityDetailRoutes-CR2Mdgzj.js +0 -1
- package/dist/assets/ExpenseAutomationRoutes-B566g1Vp.js +0 -25
- package/dist/assets/FeaturePreviewScreen-CCmVMubZ.js +0 -1
- package/dist/assets/MagicLinkRoutes-BTJQzdvS.js +0 -72
- package/dist/assets/MagicLinkSignInScreen-Bt05nG5m.js +0 -12
- package/dist/assets/MobileAppDrawer-C7qAXiy5.js +0 -1
- package/dist/assets/NotFoundScreen-C3kD1egL.js +0 -1
- package/dist/assets/PandLWithForecastRoutes-Do8X3aTE.js +0 -1
- package/dist/assets/PeopleRoutes-hAxuAtgj.js +0 -22
- package/dist/assets/PerformanceRoutes-CoYX1bLH.js +0 -1
- package/dist/assets/ReferralListScreen-ChBnSKTx.js +0 -5
- package/dist/assets/ReimbursementApprovalRoutes-CifzxX44.js +0 -1
- package/dist/assets/RewardsRoutes-DfIrbqL5.js +0 -1
- package/dist/assets/SignInScreen-u7i70eJz.js +0 -1
- package/dist/assets/SignOutScreen-CHQKEgxw.js +0 -9
- package/dist/assets/TaskRoutes-DHBPZIrq.js +0 -9
- package/dist/assets/TransactionDetailRoutes-BPCCZduy.js +0 -1
- package/dist/assets/WiseConfirmationScreen-D789SzxE.js +0 -12
- package/dist/assets/ZeniAccountStatementScreen-K6t_uhF6.js +0 -9
- package/dist/assets/epic-C5JPN_0a.js +0 -2
- package/dist/assets/useAskAiCfoHostNavButtonProps-Bt4hMVmk.js +0 -1
- package/dist/assets/useFetchSuggestedQuestionsWhenReady-B6OFe2QI.js +0 -1
- package/dist/assets/useInitialThreadRequest-oa3yZUCF.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e}from"./liveblocks-
|
|
1
|
+
import{j as e}from"./liveblocks-BeS4QmMp.js";import{j as B,u as M,h as U,l as O,g as f,N as L,k as N,n as Te,o as k}from"./core-DcM32IW_.js";import{ck as V,eN as D,MA as R,D6 as ae,fb as W,CQ as ne,MC as Ie,D9 as we,My as ke,Mz as se,MQ as be,Bg as je,s5 as Ae,ME as Ee,Dk as ve,MB as re,cN as Z,wb as oe,eR as De,eT as Fe,NL as Le,NM as Be,CR as Me,NN as Ue,CS as Re,C$ as Pe,bv as Oe,bD as Ne,cv as Ve,bE as ze,cj as _e,fa as $e,bs as Ge,Ik as He,ci as We}from"./zeni-epic-state-ChnjRetZ.js";import{k as z,am as Ze,z as A,C as _,d as b,b$ as qe,c0 as Ke,c1 as H,q,h as Je,N as Qe,M as Xe,a as ie,p as v,F as Ye,B as et,c2 as tt,ap as K,v as at,c3 as nt,r as J,c4 as st,T as X,c5 as rt,a5 as ot}from"./index-BZDuIo7x.js";import{D as it,n as P,S as ct}from"./mui--qrGbwFJ.js";import lt from"./NotFoundScreen-B8ppov_c.js";import{S as Y}from"./SetupPagesScreen-DrXS3IRK.js";import{a as d}from"./sentry-BlmJH5WH.js";import{u as ut}from"./useAskAiCfoHostNavButtonProps-CHoGbMpp.js";import{c as dt}from"./useFetchSuggestedQuestionsWhenReady-DVUj1bst.js";import{M as ce}from"./MobileAppDrawer-BCaWgXZQ.js";import{F as pt}from"./FeaturePreviewScreen-Dvylx-Wk.js";import{a as ee}from"./analyticsHelper-xeJXIGDO.js";import"./recharts-DoWl4vaN.js";import"./analytics-ByrfXPqG.js";import"./plaid-BZ0BFqP0.js";import"./dnd-36WXho_9.js";import"./stripe-DMRn4zHo.js";import"./lottie-Bdncx-qB.js";import"./lexical-CYAYrhLa.js";import"./pdf-6nmWWkz8.js";import"./utils-RmRP6xA4.js";import"./routePaths-DLti7tZb.js";import"./BusinessVerificationPageScreen-DY36UKxh.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]="9d2839e8-b8b4-47b4-bb0f-16fdf948c447",t._sentryDebugIdIdentifier="sentry-dbid-9d2839e8-b8b4-47b4-bb0f-16fdf948c447")}catch{}})();const mt=N(function(t,a){const{companyId:n}=a;return{treasurySetupView:R(t,n),analytics:b}},function(t,a){const{navigate:n,analytics:o,treasurySetupView:p}=a;return{onBackClick:()=>{n("../")},onNextClick:()=>{const r=p.fundAllocationLocalData;o.trackTreasuryPortfolioConfirm(r.riskScore,ee(r)),t(we(!0))},onUpdateFundAllocation:r=>{o.trackTreasuryAllocationAction("update",ee(r)),t(Ie(r))}}})(qe);function ft(){const t=B(),a=M(),n=U(),{tenantEmailDomain:o}=O(),p=z(),r=f(w=>w.treasurySetupViewState.portfolioAllocationUpdateStatus?.fetchState),m=Ze(r),s=V(p?.loggedInUserRoleMap),[c,i]=d.useState(!1),[y,I]=d.useState(!1),[u,l]=d.useState(!1),g=f(w=>D(w)),h=A.getSignedInUserTenant(o)?.companyId??g.companyId,C=A.getSignedInUser(),S=f(w=>R(w,h)),T=f(w=>w.treasurySetupViewState.fetchState),x=f(w=>w.treasurySetupViewState.currentAllocation.fetchStatus?.fetchState),F=f(w=>w.treasurySetupViewState.treasuryFundsDetails?.fetchStatus?.fetchState);if(C==null)throw Error("Can't access treasury portfolio allocation page without signing in...");if(d.useEffect(()=>{c||T!=="Not-Started"||h==null||(i(!0),n(ae(h,!0,!1)))},[c,T,h,n]),d.useEffect(()=>{u||F!=="Not-Started"||h==null||(l(!0),n(W()))},[u,F,h,n]),d.useEffect(()=>{y||x!=="Not-Started"||h==null||(I(!0),n(ne()))},[y,x,h,n]),d.useEffect(()=>{m==="In-Progress"&&r==="Completed"&&t("../")},[m,r,t]),g.companyTreasuryInfo?.info?.isTreasuryTOSAccepted===!1)return e.jsx(L,{to:"../promo"});const E=g.companyTreasuryInfo?.info?.isTreasuryTOSAccepted!==!0||T!=="Completed";return e.jsxs(e.Fragment,{children:[!E&&e.jsx(_,{analytics:b,onLoad:()=>{}}),e.jsx(mt,{navigate:t,location:a,companyId:h,isEditMode:!0,isLoading:E,isReadOnly:!s,treasurySetupView:S,analytics:b})]})}const yt=N(function(t,a){const n=a.currentTenant?.companyId;return{plaidConnectionDetails:be(t,n,"zeni_treasury","treasury_setup").plaidConnectionDetails,treasurySetupView:R(t,n)}},function(t,a){const{navigate:n,transferDetails:o,treasurySetupView:p}=a,r=o.treasuryTransferMoneyLocalData,m=p.fundAllocationLocalData;return{onCancelClick:()=>{H(a.analytics,"cancel",r,m,"Transfer"),t(se()),n("../")},onTransferClick:()=>{H(a.analytics,"confirm",r,m,"Transfer"),t(ve())},onSaveChangesToLocalStore:s=>{t(Ee(s))},onFetchLinkTokenClick:s=>{t(Ae("treasury_setup",s))},onEstablishConnectionClick:s=>{t(je(s,a.currentTenant?.companyId,"treasury_setup","zeni_treasury"))}}})(Ke),gt=({isFirstTransfer:t})=>{const a=B(),{tenantEmailDomain:n}=O(),o=U(),[p,r]=d.useState(!1),[m,s]=d.useState(!1),[c,i]=d.useState(!1),[y,I]=d.useState(!1),u=f(x=>x.treasurySetupViewState.fetchState),l=f(x=>x.treasurySetupViewState.treasuryFundsDetails?.fetchStatus?.fetchState),g=f(x=>x.treasurySetupViewState.currentAllocation.fetchStatus?.fetchState),h=f(x=>D(x)),C=A.getSignedInUserTenant(n)?.companyId??h.companyId,S=f(x=>ke(x)),T=f(x=>R(x,C));if(A.getSignedInUser()==null)throw Error("Can't access treasury transfer page without signing in...");return d.useEffect(()=>{m||u!=="Not-Started"||C==null||(s(!0),o(ae(C,!0,!1)))},[m,u,C,o]),d.useEffect(()=>{c||l!=="Not-Started"||C==null||(i(!0),o(W()))},[c,l,C,o]),d.useEffect(()=>{y||g!=="Not-Started"||C==null||(I(!0),o(ne()))},[y,g,C,o]),e.jsxs(e.Fragment,{children:[e.jsx(_,{analytics:b,onLoad:()=>{}}),e.jsx(yt,{analytics:b,navigate:a,transferDetails:S,onAnotherTransferClick:()=>{r(!1),o(se())},currentTenant:h,treasurySetupView:T,showReviewContent:p,maxInsuredAmount:5e5,onReviewClick:()=>{H(b,"review",S.treasuryTransferMoneyLocalData,T.fundAllocationLocalData,"Transfer"),r(!0)},isFirstTransfer:t,setShowReviewContent:r,onBackClick:()=>{}})]})},ht=P.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
width: 100%;
|
|
@@ -6,7 +6,7 @@ import{j as e}from"./liveblocks-XXI3_E1y.js";import{j as L,u as M,h as U,l as O,
|
|
|
6
6
|
flex-direction: column;
|
|
7
7
|
align-items: center;
|
|
8
8
|
background-color: ${t=>t.theme.colors.grey4};
|
|
9
|
-
`,St={overlayWidth:new Ye(100,100,48)},xt=N(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:c=>{let i="page-not-found";c==="editPortfolio"?i=
|
|
9
|
+
`,St={overlayWidth:new Ye(100,100,48)},xt=N(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:c=>{let i="page-not-found";c==="editPortfolio"?i=Ct(s):c==="statements"?i=Tt(s):c==="taxLetter"?i=It(s):c==="settings"&&(i=wt(s));const y=at(p.state?.pathnameStackToGoBack,p.pathname);n(i,{state:{pathnameStackToGoBack:y}})},onColumnSortConfigChanged:(c,i)=>{t(Le({uiState:{sortKey:c,sortOrder:i}}))},onTransferClick:()=>{n("./transfer")},onBackClick:()=>{n("../../")},onClickMenuIcon:()=>{r(!0)},onAutoTransferClick:()=>{n("../../checking/auto-transfer")}}})(tt);function G({isTransferDrawerOpen:t,isEditPortfolioDrawerOpen:a}){const n=M(),o=B(),p=U(),r=q(),m=Je(),s=f(j=>D(j)),{tenantEmailDomain:c}=O(),i=s.companyId??A.getSignedInUserTenant(c)?.companyId,[y,I]=d.useState(!1),u=f(j=>re(j)),l=u.fetchState,g=u.accountSummary?.totalBalance?.amount,h=f(j=>j.treasurySetupViewState.treasuryFundsDetails?.fetchStatus),C=s.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",S=z(),T=!!s.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,x=V(S?.loggedInUserRoleMap),F=Z(S?.loggedInUserRoleMap),{areTenantIdsInSync:E}=Qe();d.useEffect(()=>{l==="Not-Started"&&!y&&E&&(I(!0),p(oe(!0)))},[y,p,l,E]),d.useEffect(()=>{u.transactionsFetchState.fetchState==="Completed"&&u.transactions.length===0&&!n.pathname.includes("transfer")&&x&&o("./transfer")},[u.transactionsFetchState.fetchState,u.transactions.length]);const w=()=>{o("..")},[le,ue]=d.useState(!1),Q=j=>{ue(j)},{isAiCfoOpen:de,setIsAiCfoOpen:pe}=Xe(),{isAiCfoAccessEnabled:me,onAskAiCfoClick:fe}=ut({isAiCfoOpen:de,setIsAiCfoOpen:pe,mobileExploreReferrer:"Treasury"});dt({isDataReady:l==="Completed"});const{useFeatureGate:$}=ie(),{isFeatureEnabled:ye}=$(v.isDebitCardFeatureEnabled),{isFeatureEnabled:ge}=$(v.isAutoTransferRuleEnabled),{isFeatureEnabled:he}=$(v.isTreasuryCommentingEnabled),Se=De(s),xe=Fe(ye,s);if(Se===!0&&xe!==!0)return e.jsx(pt,{});if(C){const j=h?.fetchState!=="Completed"||u.accountSummaryFetchState.fetchState!=="Completed";return e.jsxs(e.Fragment,{children:[u.accountSummaryFetchState.fetchState==="Completed"&&h?.fetchState==="Completed"&&t===!1&&a===!1?e.jsx(_,{analytics:b,onLoad:()=>{}}):null,e.jsx(it,{onClose:w,anchor:"right",open:a||t,transitionDuration:250,PaperProps:{style:{width:St.overlayWidth.valuePercentage(r),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:m.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsxs(kt,{onClick:Ce=>Ce.stopPropagation(),children:[t===!0?e.jsx(gt,{isFirstTransfer:u.transactions.length===0||g===0}):null,a===!0?e.jsx(ft,{}):null]})}),e.jsxs(ht,{windowSize:r,children:[e.jsx(ce,{isAppContentDrawerOpen:le,handleDrawerToggle:Q}),e.jsx(xt,{treasuryDetailsView:u,isAutoTransferRuleEnabled:ge,navigate:o,currentTenant:s,location:n,companyId:i,analytics:b,isTreasuryCommentingEnabled:he,handleDrawerToggle:Q,isLoading:j,isAiCfoAccessEnabled:me,onAskAiCfoClick:fe})]})]})}return T&&x?e.jsx(L,{to:"../setup"}):s.companyTreasuryInfo?.info&&!T&&F?e.jsx(L,{to:"../promo",state:n.state}):e.jsx(et,{fetchState:"In-Progress",style:{backgroundColor:m.colors.grey5}})}const Ct=t=>`/${t}/treasury/edit-portfolio`,Tt=t=>`/${t}/treasury/statements`,It=t=>`/${t}/treasury/tax-letter`,wt=t=>`/${t}/treasury/setup`,kt=P(ct)`
|
|
10
10
|
display: flex;
|
|
11
11
|
min-height: 100%;
|
|
12
12
|
flex-direction: column;
|
|
@@ -18,7 +18,7 @@ import{j as e}from"./liveblocks-XXI3_E1y.js";import{j as L,u as M,h as U,l as O,
|
|
|
18
18
|
flex-direction: column;
|
|
19
19
|
align-items: center;
|
|
20
20
|
background-color: ${t=>t.theme.colors.grey4};
|
|
21
|
-
`;function
|
|
21
|
+
`;function jt(){const t=B(),a=U(),n=q(),o=M(),p=`${K.bankingMicroServiceBaseUrl}/1.0/treasury-account`,[r,m]=d.useState(!1),s=f(l=>Be(l));d.useEffect(()=>{r||s.fetchState!=="Not-Started"||(m(!0),a(Me(!1)))},[r,s.fetchState,a]);const c=A.getSignedInUser(),i=f(l=>D(l)),y={userId:c?.userId??"",sessionId:c?.zeniSessionId??"",tenantId:i.tenantId??""},I=i.company?.companyInfo.companyLegalName??i.companyName;if(c==null)throw Error("Can't access statements page without signing in...");const u=s.fetchState!=="Completed";return e.jsx(bt,{windowSize:n,children:e.jsx(nt,{currentTenantCompanyName:I,statementListView:s,isLoading:u,onBackClick:()=>{const l=J(o.state?.pathnameStackToGoBack),g=l.poppedPathname??"..";t(g,{state:{pathnameStackToGoBack:l.newStack}})},authParams:y,downloadEndPoint:p})})}const At=P.div`
|
|
22
22
|
display: flex;
|
|
23
23
|
height: 100vh;
|
|
24
24
|
width: 100%;
|
|
@@ -26,7 +26,7 @@ import{j as e}from"./liveblocks-XXI3_E1y.js";import{j as L,u as M,h as U,l as O,
|
|
|
26
26
|
flex-direction: column;
|
|
27
27
|
align-items: center;
|
|
28
28
|
background-color: ${t=>t.theme.colors.grey4};
|
|
29
|
-
`;function Et(){const t=
|
|
29
|
+
`;function Et(){const t=B(),a=q(),n=M(),o=U(),p=`${K.bankingMicroServiceBaseUrl}/1.0/treasury-account`,[r,m]=d.useState(!1),s=f(l=>Ue(l));d.useEffect(()=>{r||s.fetchState!=="Not-Started"||(m(!0),o(Re(!1)))},[r,s.fetchState,o]);const c=A.getSignedInUser(),i=f(l=>D(l)),y={userId:c?.userId??"",sessionId:c?.zeniSessionId??"",tenantId:i.tenantId??""},I=i.company?.companyInfo.companyLegalName??i.companyName;if(c==null)throw Error("Can't access tax letter page without signing in...");const u=s.fetchState!=="Completed";return e.jsx(At,{windowSize:a,children:e.jsx(st,{currentTenantCompanyName:I,taxLetterListView:s,isLoading:u,onBackClick:()=>{const l=J(n.state?.pathnameStackToGoBack),g=l.poppedPathname??"..";t(g,{state:{pathnameStackToGoBack:l.newStack}})},authParams:y,downloadEndPoint:p})})}const vt=N(function(t,a){const{companyId:n}=a,o=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(Pe(o))},onBackClick:()=>{n("../..",{relative:"path"})},onTreasurySetupSuccess:p=>{n(p?"..":"../setup",{relative:"path"})}}})(rt),Dt=()=>{const t=B(),a=M(),n=U(),{tenantEmailDomain:o}=O(),[p,r]=d.useState(!1),m=f(S=>D(S)),[s,c]=d.useState(!1),i=f(S=>S.treasurySetupViewState.treasuryFundsDetails?.fetchStatus);d.useEffect(()=>{s||i?.fetchState!=="Not-Started"||y==null||(c(!0),n(W()))},[i,n]);const y=A.getSignedInUserTenant(o)?.companyId??m.companyId,I=A.getSignedInUser(),u=!!m.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,l=S=>{r(S)};if(I==null)throw Error("Can't access treasury promo page without signing in...");const g=z(),h=V(g?.loggedInUserRoleMap),C=Z(g?.loggedInUserRoleMap);if(u&&h)return e.jsx(L,{to:"../../treasury/setup"});if(m.company?.companyTreasuryInfo&&(!u&&h||C)){if(a.state?.message==="activation"){const S=J(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(_,{analytics:b,onLoad:S=>(T=>T.trackTreasuryPromoView("Treasury Promo Page"))(S)}),e.jsx(ce,{isAppContentDrawerOpen:p,handleDrawerToggle:l}),e.jsx(vt,{analytics:b,navigate:t,companyId:y,onClickMenuIcon:()=>{l(!0)}})]})}return e.jsx(te,{children:e.jsx(X,{size:"ExtraLarge",start:!0})})},te=P.div`
|
|
30
30
|
display: flex;
|
|
31
31
|
width: 100%;
|
|
32
32
|
height: 100%;
|
|
@@ -34,4 +34,4 @@ import{j as e}from"./liveblocks-XXI3_E1y.js";import{j as L,u as M,h as U,l as O,
|
|
|
34
34
|
justify-content: center;
|
|
35
35
|
align-items: center;
|
|
36
36
|
background-color: ${t=>t.theme.colors.grey5};
|
|
37
|
-
`;function ta(){const t=M(),a=f(E=>D(E)),{useFeatureGate:n}=ie(),{isFeatureEnabled:o}=n(v.isTreasuryEnabled),p=!!a.company?.companyTreasuryInfo?.isTreasuryTOSAccepted,r=
|
|
37
|
+
`;function ta(){const t=M(),a=f(E=>D(E)),{useFeatureGate:n}=ie(),{isFeatureEnabled:o}=n(v.isTreasuryEnabled),p=!!a.company?.companyTreasuryInfo?.isTreasuryTOSAccepted,r=z(),m=Z(r?.loggedInUserRoleMap),s=a?.userRole!=null&&Oe(a?.userRole),c=(a?.company==null||a.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!s)&&Ne(r?.loggedInUserRoleMap),i=Ve(r?.loggedInUserRoleMap),y=(a?.company==null||a.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!s)&&ze(r?.loggedInUserRoleMap),{isFeatureEnabled:I}=n(v.isDepositAccountsFeatureEnabled),u=I&&!s&&_e(r?.loggedInUserRoleMap),l=a.company!=null&&$e(a.company),g=o&&l===!0&&!s&&V(r?.loggedInUserRoleMap),{isFeatureEnabled:h}=n(v.isChargeCardFeatureEnabled),{isFeatureEnabled:C}=n(v.isDebitCardFeatureEnabled),S=ot(a,h,C)&&!s&&Ge(r?.loggedInUserRoleMap),T=He(r?.loggedInUserRoleMap),x=We(r?.loggedInUserRoleMap),F=a.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified";return e.jsxs(Te,{children:[x?null:e.jsx(k,{path:"setup",element:e.jsx(Y,{isBillPayAdminLevelAccess:c,isReimbursementAdminLevelAccess:y,isZeniAccountAdminLevelAccess:u,isChargeCardAdminLevelAccess:S,isTreasuryAdminLevelAccess:g,isUserHasOnlyCardAccess:T,isUserHasOnlyBillPayAccess:i,productType:"zeni_treasury",type:"setup"})}),x?null:e.jsx(k,{path:"verification",element:e.jsx(Y,{isBillPayAdminLevelAccess:c,isUserHasOnlyBillPayAccess:i,isReimbursementAdminLevelAccess:y,isZeniAccountAdminLevelAccess:u,isChargeCardAdminLevelAccess:S,isTreasuryAdminLevelAccess:g,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(Et,{})}),F?e.jsxs(e.Fragment,{children:[e.jsx(k,{path:"/",element:e.jsx(G,{isTransferDrawerOpen:!1,isEditPortfolioDrawerOpen:!1})}),g?e.jsxs(e.Fragment,{children:[e.jsx(k,{path:"edit-portfolio",element:e.jsx(G,{isEditPortfolioDrawerOpen:!0,isTransferDrawerOpen:!1})}),e.jsx(k,{path:"transfer",element:e.jsx(G,{isTransferDrawerOpen:!0,isEditPortfolioDrawerOpen:!1})})]}):null,e.jsx(k,{path:"*",element:e.jsx(lt,{})})]}):p&&g?e.jsx(k,{path:"*",element:e.jsx(L,{to:"../setup"})}):a.company?.companyZeniAccountInfo&&m?e.jsx(k,{path:"*",element:e.jsx(L,{to:"../promo",state:t.state})}):e.jsx(k,{path:"*",element:null})]})}export{ta as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as l}from"./liveblocks-
|
|
1
|
+
import{j as l}from"./liveblocks-BeS4QmMp.js";import{a as g}from"./sentry-BlmJH5WH.js";import{j as M,u as q,l as J,g as S,k as G,h as Y,n as nt,o as B,N as K}from"./core-DcM32IW_.js";import{eN as O,Jg as Ee,Jh as Ue,fO as ee,cq as be,cr as ke,uM as ft,Ji as st,uQ as Yt,Hu as te,jq as ae,uK as qt,uE as Ht,Jj as Ne,uw as Wt,uv as Qt,up as Zt,uB as Xt,uR as ea,Jk as pe,Jl as Me,ux as ta,Jm as he,eY as gt,v4 as vt,uZ as xt,Jn as Tt,nT as Ct,uU as yt,uS as Dt,Jo as It,vb as Et,v8 as bt,uV as kt,va as Ge,FW as wt,Jp as aa,Jq as na,ct as sa,Jr as oa,Js as la,Jt as me,Ju as ce,Jv as we,Hv as $e,vq as ye,Ht as De,vd as At,uN as Ke,Jw as ia,Hw as W,Jx as ze,uH as ca,Jy as da,Jz as ra,JA as Ye,JB as qe,JC as He,JD as We,vk as Ae,JE as jt,v1 as Ft,JF as ua,JG as pa,JH as ha,JI as ma,JJ as Sa,JK as fa,JL as ga,JM as va,sh as xa,si as Ta,GA as Fe,JN as Ca,JO as ya,iP as Pe,bq as Da,JP as Ia,JQ as Ea,ko as ba,kx as ka,Gz as _e,bC as ot,JR as Pt,Gf as _t,JS as wa,JT as Aa,JU as ja,kz as Fa,JV as lt,JW as it,JX as ct,JY as dt,JZ as Pa,kv as _a,J_ as Va,ky as La,J$ as Oa,K0 as Vt,GW as Lt,jO as Ba,K1 as Ja,K2 as Ve,K3 as Ot,GU as Bt,xD as Ra,K4 as Ua,K5 as Na,k6 as Jt,K6 as Ma,K7 as Ga,H6 as $a,pZ as Ka,K8 as Rt,K9 as rt,H3 as Le,Ka as ut,Kb as za,H8 as Ya,Kc as qa,Kd as Ha,Ke as Wa,Kf as Qa,Kg as Za,q0 as Xa,Kh as en,Hx as tn,Ki as an,GN as Oe,gx as nn,Kj as sn,Kk as on,gv as ln,Kl as cn,Km as dn,xH as rn,Kn as un,Ko as pn,Kp as hn,Kq as mn,jS as Sn,bn as fn,eT as gn,eR as vn}from"./zeni-epic-state-ChnjRetZ.js";import{z as R,am as Be,B as Ut,C as Z,d as P,R as X,as as xn,v as N,D as Ie,y as de,at as Qe,au as Tn,av as Cn,r as Ze,aw as yn,h as Dn,q as re,F as Xe,a as ne,p as z,ax as In,j as et,M as Se,ay as En,az as Nt,N as bn,aA as kn,k as wn,aB as An,ap as Mt,aC as jn,o as Q,S as Fn,H as Gt,J as Pn,aD as _n,aE as Vn,f as tt,aF as Ln,aG as On,w as Bn,aH as Jn,aI as Rn}from"./index-BZDuIo7x.js";import{n as U,D as Un,S as $t}from"./mui--qrGbwFJ.js";import{t as Nn,A as Mn}from"./AddressScreen-CD02bE7U.js";import ie from"./NotFoundScreen-B8ppov_c.js";import{F as Gn}from"./FeaturePreviewScreen-Dvylx-Wk.js";import{b as H,v as at,c as $n}from"./routePaths-DLti7tZb.js";import{p as Kt}from"./pathToGoBack-Cn4t6MOa.js";import{u as fe}from"./useAskAiCfoHostNavButtonProps-CHoGbMpp.js";import{c as ge}from"./useFetchSuggestedQuestionsWhenReady-DVUj1bst.js";import{M as ve}from"./MobileAppDrawer-BCaWgXZQ.js";import{D as Kn}from"./DrawerScreen-C9oSGPfX.js";import{g as zn,m as Yn}from"./accountMappingHelper-CQSFsM6N.js";import"./recharts-DoWl4vaN.js";import"./analytics-ByrfXPqG.js";import"./plaid-BZ0BFqP0.js";import"./dnd-36WXho_9.js";import"./stripe-DMRn4zHo.js";import"./lottie-Bdncx-qB.js";import"./lexical-CYAYrhLa.js";import"./pdf-6nmWWkz8.js";import"./utils-RmRP6xA4.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]="b48242a0-ae94-433f-a1b7-1b14862422f0",e._sentryDebugIdIdentifier="sentry-dbid-b48242a0-ae94-433f-a1b7-1b14862422f0")}catch{}})();const qn=Ie.getLocalizedStrings(),Hn=G(function(e,a){const s=Ue(e,a.scheduleTab),t=e.tenantState.currentTenantId;return{authParams:{userId:a.signedInUser.userId??"",sessionId:a.signedInUser.zeniSessionId??"",tenantId:t??""},linkBillExpenseView:s.linkBillExpenseView,transactions:s.linkBillExpenseView.transactions}},function(e,a){const{navigate:s,location:t}=a;return{onTransactionSelect(n){e(st({selectedTransaction:n}))},onBackClick:()=>{s("..",{relative:"path"})},onCancel(){e(st({selectedTransaction:void 0})),e(Yt()),s("..",{relative:"path"})},onTransactionClick:n=>{const o=`${H(n,a.tenantEmailDomain)}`,c=N(t.state?.pathnameStackToGoBack,t.pathname);s(o,{state:{pathnameStackToGoBack:c}})},onLinkSave(){a.setShouldNavigateBack(!1),e(ft(a.scheduleTab,a.scheduleAccruedDetailsView.selectedJEAccruedSchedule?.jeScheduleId))}}})(xn),Wn=({setShouldNavigateBack:e})=>{const a=M(),s=q(),{scheduleDetailId:t,tenantEmailDomain:n}=J(),{scheduleType:o}=J();if(n==null)throw Error("Can't access Link Bill Expense page without tenant Email Domain");const c=S(f=>O(f)),d=Ee(o)??"accrued_expenses",u=R.getSignedInUser();if(u==null)throw Error("Can't access Link Bill Expensedetail page without signing in...");if(t==null)throw Error("Invalid Schedule Detail Id");const i=S(f=>Ue(f,d)),m=i.selectedJELinkRowIndex,r=S(f=>ee(f,c.companyId)),p=Be(i.updateStatus.fetchState);g.useEffect(()=>{p==="In-Progress"&&i.updateStatus.fetchState==="Completed"&&a("..",{relative:"path"})},[p,i.updateStatus.fetchState]),g.useEffect(()=>{i.fetchState==="Not-Started"&&a("..",{relative:"path"})},[]),g.useEffect(()=>{i.selectedJEAccruedSchedule!=null&&i.selectedJELinkRowIndex!=null||a("..",{relative:"path"})},[i.selectedJEAccruedSchedule,i.selectedJELinkRowIndex]);const h=i.linkBillExpenseView.fetchState==="Completed";return l.jsx(l.Fragment,{children:i.linkBillExpenseView.fetchState==="In-Progress"?l.jsx(Ut,{fetchState:i.linkBillExpenseView.fetchState}):i.selectedJEAccruedSchedule!=null&&m!=null?l.jsxs(l.Fragment,{children:[h===!0?l.jsx(Z,{analytics:P,onLoad:()=>{Qn(i,d,r)}}):null,l.jsx(Hn,{signedInUser:u,attachmentEndPoint:`${X}/vendor_attachments`,setShouldNavigateBack:e,scheduleVendorId:i.selectedJEAccruedSchedule.vendor.id??"",location:s,tenantEmailDomain:n,scheduleAccruedDetailsView:i,saveFetchState:i.updateStatus.fetchState,scheduleTab:d,navigate:a,analytics:P,controllerUserDetails:r,saveStatus:i.updateStatus.fetchState,jeAccruedSchedule:i.selectedJEAccruedSchedule,localData:i.scheduleAccruedDetailsLocalData.jeScheduleDetails[m]})]}):null})},zt=e=>{const a=qn.dateFormat.analytics.YYYYDashMMDashDDFormat;return{scheduleCreateDate:e.createTime.format(a)??null,scheduleMonthlyAmount:e.recurringAmount??null,startingBalance:e.otherAttributes.startingBalance??null,scheduleAccountCategory:e.jeCredit.account?.accountName??null,description:e.memo,runningBalance:e.balanceAsOfToday??null,currentBalance:e.balanceAsOfToday??null,currentStatus:e.status.label,period:e.period??null,startMonth:e.startDate?.format(a)??null,endMonth:e.endDate?.format(a)??null}},Qn=(e,a,s)=>{const t=e.selectedJEAccruedSchedule,n=e.selectedJELinkRowIndex;let o;n!=null&&t!=null&&(o=t.scheduledJournalEntry[n]);const{transactions:c}=e.linkBillExpenseView,d=c.some(m=>m.isRecommendedTransaction===!0),u=be(s.controllers),i=ke(s.controllerUserIds);t!=null&&P.trackScheduleAccruedDetailsJournalEntryLinkedLoaded({scheduleType:a,schedule:{...zt(t)},scheduleExpenseCategoryAndClass:{expenseCategory:t.jeDebit.account?.accountName??null,expenseClass:t.jeDebit.accountingClass?.className??null},journalEntryDetails:{wasRecommendationAvailable:d,journalEntryPostingStatus:o?.status.label??""},vendorName:t.vendor.name??null,controllerEmails:u,controllerUserIds:i})},Zn=U.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
width: 100%;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import{j as o}from"./liveblocks-BeS4QmMp.js";import{a as l}from"./sentry-BlmJH5WH.js";import{q as u,h,g as y,N as I}from"./core-DcM32IW_.js";import{ID as w,eO as b,yY as x}from"./zeni-epic-state-ChnjRetZ.js";import{z as f,B as j,H as S,J as D}from"./index-BZDuIo7x.js";import{n as g}from"./mui--qrGbwFJ.js";import"./recharts-DoWl4vaN.js";import"./analytics-ByrfXPqG.js";import"./plaid-BZ0BFqP0.js";import"./dnd-36WXho_9.js";import"./stripe-DMRn4zHo.js";import"./lottie-Bdncx-qB.js";import"./lexical-CYAYrhLa.js";import"./pdf-6nmWWkz8.js";import"./utils-RmRP6xA4.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]="216a2de9-eda4-4721-8652-c4a3e58414d8",e._sentryDebugIdIdentifier="sentry-dbid-216a2de9-eda4-4721-8652-c4a3e58414d8")}catch{}})();const R=()=>{const[e]=u(),t=e.get("code")??"",s=e.get("state")??"",p=e.get("profileId")??"",[n,c]=l.useState(!1),a=h(),i=y(m=>w(m)),r=f.getSignedInUser(),d=f.getSignedInUserTenantWithId(s);if(r==null||d==null)return o.jsx(I,{to:"/signin/auth",replace:!0});if(r==null)throw Error("Can't access this page without signing in...");return b(r.userId,r.zeniSessionId,d?.tenantId),l.useEffect(()=>{n||(c(!0),a(x(t,p,s)))},[n,a]),i.fetchState==="Error"?o.jsx(E,{children:o.jsx(_,{children:i.error?.message??""})}):(i.fetchState==="Completed"&&window.close(),o.jsx(j,{fetchState:"In-Progress"}))},E=g.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 100vh;
|
|
5
|
+
flex-direction: row;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
align-items: center;
|
|
8
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
9
|
+
`,_=g(D.LargeRegular)`
|
|
10
|
+
display: flex;
|
|
11
|
+
color: ${S.important};
|
|
12
|
+
`;export{R as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as n}from"./liveblocks-
|
|
1
|
+
import{j as n}from"./liveblocks-BeS4QmMp.js";import{j as H,u as W,h as z,l as Z,g as w,k as Y,N as ne,n as $e,o as k}from"./core-DcM32IW_.js";import{eN as N,Nq as we,Nr as Ze,cj as te,ck as Ge,fa as He,w9 as Ae,Am as We,w3 as Fn,Ns as Rn,Nt as Ln,w6 as Un,wd as Ce,w0 as zn,vZ as Nn,Md as ue,Nu as Mn,DG as _n,Jj as Vn,DI as $n,k7 as Fe,Nv as Zn,pE as Ye,ps as Je,j_ as Qe,k1 as Re,Jk as Le,Jl as Gn,Nw as Hn,k0 as Wn,kn as Yn,jR as Jn,io as Qn,im as qn,Nx as Xn,Ny as xe,Dn as Kn,Nz as et,NA as nt,M6 as De,NB as Ue,NC as tt,DT as at,MQ as ot,Bg as qe,s5 as Xe,ND as st,DQ as it,NE as Ke,cL as Ie,DX as en,fb as rt,eR as nn,eT as Se,DV as ct,Ba as lt,DN as dt,NF as tn,NG as an,Dp as on,Dz as ze,NH as ut,Dt as pt,NI as mt,MF as ht,DY as ft,bv as gt,bD as yt,cv as Ct,bE as xt,bs as kt,Ik as wt}from"./zeni-epic-state-ChnjRetZ.js";import{k as ae,a as V,z as D,p as B,h as M,B as pe,bP as At,R as be,q as _,F as J,r as sn,am as Dt,ab as Ne,d as R,bQ as It,ap as ve,bR as St,C as me,bS as bt,f as Ee,aJ as G,bT as vt,N as Et,M as rn,a8 as jt,bU as Me,bV as Pt,v as ee,bW as Tt,bX as Bt,bY as Ot,bZ as Ft,a5 as Rt,o as Lt}from"./index-BZDuIo7x.js";import{n as L,D as Q,S as q}from"./mui--qrGbwFJ.js";import de from"./NotFoundScreen-B8ppov_c.js";import{S as _e}from"./SetupPagesScreen-DrXS3IRK.js";import{F as cn}from"./FeaturePreviewScreen-Dvylx-Wk.js";import{a as u}from"./sentry-BlmJH5WH.js";import{M as he}from"./MobileAppDrawer-BCaWgXZQ.js";import{A as Ut,D as zt,V as Nt}from"./DomesticWireDetailScreen-CHZr0Rwr.js";import{A as Mt}from"./AddressScreen-CD02bE7U.js";import{u as ln}from"./useAskAiCfoHostNavButtonProps-CHoGbMpp.js";import{c as dn}from"./useFetchSuggestedQuestionsWhenReady-DVUj1bst.js";import{Z as _t}from"./ZeniAccountStatementScreen-Dufb_RXJ.js";import"./recharts-DoWl4vaN.js";import"./analytics-ByrfXPqG.js";import"./plaid-BZ0BFqP0.js";import"./dnd-36WXho_9.js";import"./stripe-DMRn4zHo.js";import"./lottie-Bdncx-qB.js";import"./lexical-CYAYrhLa.js";import"./pdf-6nmWWkz8.js";import"./utils-RmRP6xA4.js";import"./analyticsHelper-xeJXIGDO.js";import"./routePaths-DLti7tZb.js";import"./BusinessVerificationPageScreen-DY36UKxh.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]="b0046744-f224-40dc-94f6-958575c55692",e._sentryDebugIdIdentifier="sentry-dbid-b0046744-f224-40dc-94f6-958575c55692")}catch{}})();const Vt=L.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
width: 100%;
|
|
@@ -6,19 +6,19 @@ import{j as n}from"./liveblocks-XXI3_E1y.js";import{j as Z,u as W,h as z,l as H,
|
|
|
6
6
|
flex-direction: column;
|
|
7
7
|
align-items: center;
|
|
8
8
|
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`,$t=Y(function(e){return{autoTransferRuleView:we(e),downloadAccountDetailEndPoint:`${be}/account_details`,transferLimit:5e5,depositAccountListView:We(e.depositAccountState,e.depositAccountListState)}},function(e,t){const{navigate:s,handleDrawerToggle:o}=t;return{onBackClick:()=>{s("..")},onClickMenuIcon:()=>{o(!0)},onFetchAutoTransferRules:a=>{e(Ae(a))},onCreateRule:()=>{e(
|
|
9
|
+
`,$t=Y(function(e){return{autoTransferRuleView:we(e),downloadAccountDetailEndPoint:`${be}/account_details`,transferLimit:5e5,depositAccountListView:We(e.depositAccountState,e.depositAccountListState)}},function(e,t){const{navigate:s,handleDrawerToggle:o}=t;return{onBackClick:()=>{s("..")},onClickMenuIcon:()=>{o(!0)},onFetchAutoTransferRules:a=>{e(Ae(a))},onCreateRule:()=>{e(Nn())},onUpdateRule:a=>{e(Ce(a))},onDeleteClick:a=>{e(zn(a))},onPauseClick:a=>{e(Ce(a,!0,!1))},onResumeClick:a=>{e(Ce(a,!1,!0))},onActivityClick:(a,i)=>{e(Un(a,i))},onUpdateRuleLocalData:a=>{e(Ln(a))},clearRuleLocalData:()=>{e(Rn())},onEditClick:a=>{s(`./${a}/edit`)},onEditDrawerClose:()=>{s("../../",{relative:"path"})},onReviewClick:()=>{e(Fn())}}})(At);function Ve({isEditDrawerOpen:e}){const t=H(),s=W(),o=z(),a=ae(),{ruleId:i,tenantEmailDomain:d}=Z(),{useFeatureGate:c}=V(),[p,m]=u.useState(!1),[C,r]=u.useState(!1),l=w(y=>N(y)),h=w(y=>we(y)),x=h?.fetchState??"Not-Started",b=w(y=>Ze(y)),f=l?.companyId??D.getSignedInUserTenant(d)?.companyId,A=te(a?.loggedInUserRoleMap)||Ge(a?.loggedInUserRoleMap),{isFeatureEnabled:I}=c(B.isTreasuryEnabled),g=l?.company!=null&&He(l.company),S=I&&g,O=D.getSignedInUser(),U=l.tenantId,P={userId:O?.userId??"",sessionId:O?.zeniSessionId??"",tenantId:U??""},E=l.companyName;u.useEffect(()=>{!C&&x==="Not-Started"&&f&&(r(!0),o(Ae(!0)))},[C,x,f,o]);const v=y=>{m(y)},T=M(),j=!!s.state?.scrollToAddRule;return h?.fetchState!=="Completed"?n.jsx(pe,{fetchState:"In-Progress",style:{backgroundColor:T.colors.grey5}}):n.jsxs(Vt,{children:[n.jsx(he,{isAppContentDrawerOpen:p,handleDrawerToggle:v}),n.jsx($t,{navigate:t,location:s,currentTenant:l,companyName:E,handleDrawerToggle:v,isEditDrawerOpen:e,editingRuleId:i,authParams:P,includeTreasuryOption:S,hasAdminLevelAccess:A,zeniAccountsConfigDetail:b,scrollToAddRule:j})]})}const Zt={overlayWidth:new J(100,100,58)},Gt=({vendorId:e,isDrawerOpen:t,closeDrawerHandler:s})=>{const o=z(),a=M(),i=_();if(D.getSignedInUser()==null)throw Error("Can't access ach account page without signing in...");return n.jsx(Q,{onClose:()=>{s(!0),o(ue())},anchor:"right",open:t,PaperProps:{style:{width:Zt.overlayWidth.valuePercentage(i),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:a.colors.black,opacity:.75,cursor:"pointer"}}},children:n.jsx(Ht,{onClick:d=>d.stopPropagation(),children:n.jsx(Ut,{vendorIdParam:e,accountContext:"express-pay"})})})},Ht=L(q)`
|
|
10
10
|
display: flex;
|
|
11
11
|
min-height: 100%;
|
|
12
12
|
flex-direction: column;
|
|
13
|
-
`,Wt={overlayWidth:new J(100,100,58)},Yt=({isDrawerOpen:e,closeDrawerHandler:t})=>{const s=z(),o=
|
|
13
|
+
`,Wt={overlayWidth:new J(100,100,58)},Yt=({isDrawerOpen:e,closeDrawerHandler:t})=>{const s=z(),o=M(),a=_();if(D.getSignedInUser()==null)throw Error("Can't access address page without signing in...");return n.jsx(Q,{onClose:()=>{t(!0),s(ue())},anchor:"right",open:e,PaperProps:{style:{width:Wt.overlayWidth.valuePercentage(a),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.75,cursor:"pointer"}}},children:n.jsx(Jt,{onClick:i=>i.stopPropagation(),children:n.jsx(Mt,{accountContext:"express-pay",addressTypeParam:"vendor_address"})})})},Jt=L(q)`
|
|
14
14
|
display: flex;
|
|
15
15
|
min-height: 100%;
|
|
16
16
|
flex-direction: column;
|
|
17
|
-
`,
|
|
17
|
+
`,Qt={overlayWidth:new J(100,100,58)},qt=({vendorId:e,isDrawerOpen:t,closeDrawerHandler:s})=>{const o=z(),a=M(),i=_();if(D.getSignedInUser()==null)throw Error("Can't access ach account page without signing in...");return n.jsx(Q,{onClose:()=>{s(!0),o(ue())},anchor:"right",open:t,PaperProps:{style:{width:Qt.overlayWidth.valuePercentage(i),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:a.colors.black,opacity:.75,cursor:"pointer"}}},children:n.jsx(Xt,{onClick:d=>d.stopPropagation(),children:n.jsx(zt,{vendorIdParam:e,accountContext:"express-pay"})})})},Xt=L(q)`
|
|
18
18
|
display: flex;
|
|
19
19
|
min-height: 100%;
|
|
20
20
|
flex-direction: column;
|
|
21
|
-
`,
|
|
21
|
+
`,Kt=L.div`
|
|
22
22
|
display: flex;
|
|
23
23
|
height: 100vh;
|
|
24
24
|
width: 100%;
|
|
@@ -26,15 +26,15 @@ import{j as n}from"./liveblocks-XXI3_E1y.js";import{j as Z,u as W,h as z,l as H,
|
|
|
26
26
|
flex-direction: column;
|
|
27
27
|
align-items: center;
|
|
28
28
|
background-color: ${e=>e.theme.colors.grey4};
|
|
29
|
-
`,ea=Y(function(e,t){const s=
|
|
29
|
+
`,ea=Y(function(e,t){const s=N(e),o=D.getSignedInUser(),a=s.tenantId,i={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:a??""},d=t.expressPayDetails,c=e.entityAutoCompleteState.autoCompleteText.common,p=Vn(e,"common");return{expressPayDetails:d,fileProps:{authParams:i,filesEndPoint:`${ve.fileMicroServiceBaseUrl}`},vendorSearchAutoCompleteData:{autoCompleteText:c,entityAutoCompleteView:p},analytics:t.analytics}},function(e,t){const{navigate:s}=t;return{onSaveVendor:o=>{e(qn(o,void 0,void 0,!0))},saveVendorDetailLocalData:(o,a)=>{e(Re({vendorId:a,localData:o}))},saveExpressPayLocalData:o=>{e(Qn({localData:o}))},onVendorSelected:o=>{o!=null&&e(Jn(o,!1))},updateSelectedVendorForCreate:o=>{e(Yn(o))},initializeVendorAddress:()=>{e(Wn())},resetVendorSaveStatus:o=>{e(Hn({vendorId:o}))},vendorSearchAutoCompleteActions:{onAutoCompleteInputChange:(o,a)=>{o.trim().length>=2?e(Gn({searchString:o,entityType:a,searchOrigin:"common"})):o.trim().length===0&&e(Le("common"))},onCancelAutoComplete:()=>{e(Le("common"))}},chooseNewVendor:o=>{e(Re({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(Qe({files:o}))},onDeleteFile:o=>{e(Je(o))},onEditFileName:(o,a)=>{e(Ye(o,a.split(".")[0]))},onBackClick:o=>{o!=null&&e(Fe(o)),e(Fe()),e(Zn()),e(ue()),s("../",{relative:"path"})},onSchedulePayment:()=>{e($n())}}})(It);function ce({isAddACHDrawerOpen:e,isAddWireDrawerOpen:t,isAddAddressDrawerOpen:s}){const o=H(),a=W(),i=z(),[d,c]=u.useState(!1),{tenantEmailDomain:p}=Z(),m=ae(),C=w(y=>y.expressPayState.fetchState),r=w(y=>N(y)),l=w(y=>Mn(y)),h=l.expressPayLocalData?.vendorId,x=r.companyId??D.getSignedInUserTenant(p)?.companyId,[b,f]=u.useState(!1),[A,I]=u.useState(!1),[g,S]=u.useState(!1),O=sn(a.state?.pathnameStackToGoBack),{poppedPathname:U}=O,P=U?.split("/"),E=P?.[P.length-1];u.useEffect(()=>{e===!0?f(!0):(f(!1),document.body.style.overflow="auto")},[e]),u.useEffect(()=>{t===!0?I(!0):(I(!1),document.body.style.overflow="auto")},[t]),u.useEffect(()=>{s===!0?S(!0):(S(!1),document.body.style.overflow="auto")},[s]),u.useEffect(()=>{C==="Not-Started"&&i(_n(!0,!0))},[C,i]);const v=Dt(l.vendorViewDetails.bankAccountCreationState?.fetchState);if(u.useEffect(()=>{v==="In-Progress"&&l.vendorViewDetails.bankAccountCreationState?.fetchState==="Completed"&&j()},[v,l.vendorViewDetails.bankAccountCreationState?.fetchState]),D.getSignedInUser()==null)throw Error("Can't access express pay page without signing in...");const T=y=>{c(y)},j=()=>{f(!1),I(!1),o("../",{relative:"path"})};return n.jsxs(Kt,{children:[Ne(a)?n.jsx(he,{isAppContentDrawerOpen:d,handleDrawerToggle:T}):null,b===!0?n.jsx(Gt,{vendorId:h,closeDrawerHandler:j,isDrawerOpen:b}):null,A===!0?n.jsx(qt,{vendorId:h,closeDrawerHandler:j,isDrawerOpen:A}):null,g===!0?n.jsx(Yt,{closeDrawerHandler:j,isDrawerOpen:g}):null,n.jsx(Nt,{vendorId:h,isExpressPayPage:!0}),n.jsx(ea,{navigate:o,location:a,companyId:x,accountId:E,analytics:R,currentTenant:r,vendorId:h,roleMap:m?.loggedInUserRoleMap,isSettings:Ne(a),expressPayDetails:l,onClickMenuIcon:()=>{T(!0)}})]})}const na={overlayWidth:new J(100,100,58)},ta=({authParams:e,downloadAccountDetailEndPoint:t,isAccountInfoDrawerOpen:s,zeniBankAccountDetail:o,closeDrawerHandler:a})=>{const i=M(),d=_(),c=w(r=>Ze(r)),p=w(r=>N(r));if(D.getSignedInUser()==null)throw Error("Can't access Account detail page without signing in...");const m=()=>{a(!0)},C={depositAccount:o,onDismissClick:m,zeniAccountsConfigDetail:c,authParams:e,downloadAccountDetailEndPoint:t,currentTenant:p};return n.jsx(Q,{anchor:"right",open:s,PaperProps:{style:{width:na.overlayWidth.valuePercentage(d),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>m(),children:n.jsx(aa,{onClick:r=>r.stopPropagation(),children:n.jsx(St,{...C})})})},aa=L(q)`
|
|
30
30
|
display: flex;
|
|
31
31
|
min-height: 100%;
|
|
32
32
|
flex-direction: column;
|
|
33
|
-
`,oa={overlayWidth:new J(100,100,58)},un=({isCheckDepositDrawerOpen:e,closeDrawerHandler:t})=>{const s=
|
|
33
|
+
`,oa={overlayWidth:new J(100,100,58)},un=({isCheckDepositDrawerOpen:e,closeDrawerHandler:t})=>{const s=M(),o=_(),a=z(),i=w(r=>N(r)),d=D.getSignedInUser(),c=i.tenantId,p={userId:d?.userId??"",sessionId:d?.zeniSessionId??"",tenantId:c??""};if(d==null)throw Error("Can't access check deposit page without signing in...");const m=w(r=>Xn(r)),C={analytics:R,checkDeposit:m,filesEndPoint:`${ve.fileMicroServiceBaseUrl}`,authParams:p,onSaveChangesToLocalStore:r=>{a(et(r))},updateFilesEntity:r=>{a(Qe({files:r}))},onAnotherTransferClick:()=>{a(xe())},onDeleteFile:r=>{a(Je(r))},onEditFileName:(r,l)=>{a(Ye(r,l.split(".")[0]))},onCheckDpositClick:()=>{a(Kn())},onDismissClick:()=>{t(!0),a(xe())}};return n.jsxs(n.Fragment,{children:[n.jsx(me,{analytics:R,onLoad:r=>(l=>l.trackPageLoaded(Ee.Event.accountsDepositCheckFormViewed))(r)}),n.jsx(Q,{anchor:"right",open:e,PaperProps:{style:{width:oa.overlayWidth.valuePercentage(o),boxShadow:"none",zIndex:8}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.75,cursor:"pointer"}}},onClose:(r,l)=>(l==="backdropClick"||l==="escapeKeyDown")&&(t(!0),void a(xe())),children:n.jsx(sa,{onClick:r=>r.stopPropagation(),children:n.jsx(bt,{...C})})})]})},sa=L(q)`
|
|
34
34
|
display: flex;
|
|
35
35
|
min-height: 100%;
|
|
36
36
|
flex-direction: column;
|
|
37
|
-
`,ia={overlayWidth:new J(100,100,58)},ra=Y(function(e,t){const s=t.currentTenant?.companyId;return{plaidConnectionDetails:ot(e,s,"zeni_accounts","external_account").plaidConnectionDetails,depositAccountListView:We(e.depositAccountState,e.depositAccountListState)}},function(e,t){return{onReviewClick:()=>e(it()),clearReviewTransferDetail:()=>e(st()),onFetchLinkTokenClick:s=>{e(
|
|
37
|
+
`,ia={overlayWidth:new J(100,100,58)},ra=Y(function(e,t){const s=t.currentTenant?.companyId;return{plaidConnectionDetails:ot(e,s,"zeni_accounts","external_account").plaidConnectionDetails,depositAccountListView:We(e.depositAccountState,e.depositAccountListState)}},function(e,t){return{onReviewClick:()=>e(it()),clearReviewTransferDetail:()=>e(st()),onFetchLinkTokenClick:s=>{e(Xe("external_account",s))},onEstablishConnectionClick:s=>{e(qe(s,t.currentTenant?.companyId,"external_account",void 0,"link_external_account"))}}})(vt),pn=({isTransferDrawerOpen:e,authParams:t,downloadAccountDetailEndPoint:s,closeDrawerHandler:o,zeniAccountsConfig:a})=>{const i=w(g=>nt(g)),d=w(g=>N(g)),c=M(),p=_(),m=z(),{accountId:C}=Z(),[r,l]=u.useState("achTransfer"),[h,x]=u.useState(!1);if(D.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const{useDynamicConfig:b}=V(),{configValue:f}=b(G.zeniAccountsConfig),A=De(f),I=()=>{o(!0),m(Ue())};return u.useEffect(()=>{i.reviewTransferDetail.fetchState==="Completed"&&x(!0)},[x,i.reviewTransferDetail.fetchState]),n.jsxs(n.Fragment,{children:[n.jsx(me,{analytics:R,onLoad:g=>(S=>S.trackPageLoaded(Ee.Event.zeniAccountsTransferFormViewed))(g)}),n.jsx(Q,{onClose:()=>{(r==="achTransfer"&&h===!1||r==="achTransfer"&&h&&i.fetchState==="Completed")&&I()},anchor:"right",open:e,PaperProps:{style:{width:ia.overlayWidth.valuePercentage(p),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:c.colors.black,opacity:.75,cursor:"pointer"}}},children:n.jsx(ca,{onClick:g=>g.stopPropagation(),children:n.jsx(ra,{analytics:R,transferDetails:i,authParams:t,downloadAccountDetailEndPoint:s,onTransferClick:()=>{R.trackTransferBetweenAccountsFormClicked("Transfer",i.reviewTransferDetail.reviewTransferMoney.isShowDailyAchLimitWarning?"Review Split Transfer":"Review Transfer",i.transferDetailLocalData.transferFrom?.label,i.transferDetailLocalData.transferTo?.label,i.transferDetailLocalData.amount.amount,i.reviewTransferDetail.reviewTransferMoney.isShowDailyAchLimitWarning,i.reviewTransferDetail.reviewTransferMoney.transferSchedules.length,i.transferDetailLocalData.transferFrom?.accType==="paymentAccount"&&i.transferDetailLocalData.transferTo?.accType==="depositAccount"&&a.zeniAccountsConfigDetail.depositProductConfig.depositProducts?.[0].range?.[1]!=null&&i.transferDetailLocalData.amount.amount>a.zeniAccountsConfigDetail.depositProductConfig.depositProducts[0].range[1]),m(at(C))},onDismissClick:I,onSaveChangesToLocalStore:g=>{m(tt(g))},onAnotherTransferClick:()=>{x(!1),m(Ue())},currentTenant:d,zeniAccountsConfigDetail:a,currentDrawerContent:r,setCurrentDrawerContent:l,showReviewContent:h,setShowReviewContent:x,onBackClick:()=>{},maxInsuredAmount:A.maxInsuredAmount})})})]})},ca=L(q)`
|
|
38
38
|
display: flex;
|
|
39
39
|
min-height: 100%;
|
|
40
40
|
flex-direction: column;
|
|
@@ -46,7 +46,7 @@ import{j as n}from"./liveblocks-XXI3_E1y.js";import{j as Z,u as W,h as z,l as H,
|
|
|
46
46
|
flex-direction: column;
|
|
47
47
|
align-items: center;
|
|
48
48
|
background-color: ${e=>e.theme.colors.grey4};
|
|
49
|
-
`,da=Y(function(e,t){return{zeniAccountListView:
|
|
49
|
+
`,da=Y(function(e,t){return{zeniAccountListView:Ke(e),isExpressPayEnabled:t.isExpressPayEnabled,analytics:t.analytics}},function(e,t){const{navigate:s,currentTenant:o,location:a,companyId:i,handleDrawerToggle:d,analytics:c,isBillPayEnabled:p,isDebitCardFeatureEnabled:m}=t,{tenantEmailDomain:C}=o;return{onZeniAccountClick:(r,l)=>{c.trackAccountsListPageClicked("Accounts Row Item Click",l,"active");const h=ua(C,r),x=ee(a.state?.pathnameStackToGoBack,a.pathname);s(h,{state:{pathnameStackToGoBack:x}})},onSettingsClick:()=>{c.trackAccountsListPageClicked("Settings Icon"),s("setup")},onReloadTransactions:()=>{e(en(!1))},handleMoveMoneyOptionSelection:(r,l)=>{let h="page-not-found";r==="sendMoney"&&(h=gn(C)),r==="payBill"?h=mn(o,p,m):r==="transfer"?(h=hn(C),l!=null&&e(tn(l))):r==="checkDeposit"&&(h=fn(C));const x=ee(a.state?.pathnameStackToGoBack,a.pathname);s(h,{state:{pathnameStackToGoBack:x}})},unlinkPaymentAccount:(r,l)=>{c.trackAccountsListPageClicked("Unlink Account",l),e(dt(r))},onFetchLinkTokenClick:(r,l)=>{e(Xe("external_account",r,l))},onUpdatePaymentAccountStatus:(r,l,h)=>{e(lt(r,l,"zeni_accounts","external_account",h))},onEstablishConnectionClick:r=>{e(qe(r,i,"external_account",void 0,"link_external_account"))},onCreateCheckingClick:r=>{e(ct(r))},onClickMenuIcon:()=>{d(!0)},onTreasuryGetStartedClick:()=>{s("../../treasury/promo")},onAutoTransferClick:r=>{r?s("./auto-transfer",{state:{...a.state,scrollToAddRule:!0}}):s("./auto-transfer")}}})(Pt);function ke({isTransferDrawerOpen:e,isCheckDepositDrawerOpen:t}){const s=W(),o=H(),a=z(),i=_(),{tenantEmailDomain:d}=Z(),{useDynamicConfig:c,useFeatureGate:p}=V(),m=M(),{configValue:C}=c(G.zeniAccountsConfig),{isFeatureEnabled:r}=p(B.isTreasuryEnabled),{isFeatureEnabled:l}=p(B.isDebitCardFeatureEnabled),{isFeatureEnabled:h}=p(B.isAutoTransferRuleEnabled),{isFeatureEnabled:x}=p(B.isCheckingCommentingEnabled),b=De(C),f=w(F=>N(F)),A=f.companyId??D.getSignedInUserTenant(d)?.companyId,{configValue:I}=c(G.expressPayConfig),g=I.is_enable_all_tenants===!0||I.tenant_ids!=null&&I.tenant_ids.includes(f.tenantId),[S,O]=u.useState(!1),[U,P]=u.useState(!1),[E,v]=u.useState(!1),[T,j]=u.useState(!1),y=w(F=>Ke(F)),$=y.fetchState,oe=w(F=>we(F)),se=oe?.fetchState??"Not-Started",fe=!!f.companyZeniAccountInfo?.info?.isZeniAccountEnabled,ie=ae(),re=!!f.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted,X=!!f.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,K=te(ie?.loggedInUserRoleMap),yn=Ie(ie?.loggedInUserRoleMap),Cn=!!f.companyBillPayInfo?.info?.isBillPayEnabled,je=D.getSignedInUser(),xn={userId:je?.userId??"",sessionId:je?.zeniSessionId??"",tenantId:f.tenantId??""},kn=`${be}/account_details`,{areTenantIdsInSync:Pe}=Et();u.useEffect(()=>{!S&&Pe&&(O(!0),a(en(!1)))},[S,a,$,Pe]),u.useEffect(()=>{!U&&se==="Not-Started"&&A&&(P(!0),a(Ae(!0)))},[U,se,A,a]),u.useEffect(()=>{e!=null&&e===!0?v(!0):(v(!1),document.body.style.overflow="auto")},[e]),u.useEffect(()=>{j(t!=null&&t===!0)},[t]);const Te=()=>{v(!1),o("..")},[wn,An]=u.useState(!1),Be=F=>{An(F)},{isAiCfoOpen:Dn,setIsAiCfoOpen:In}=rn(),{isAiCfoAccessEnabled:Sn,onAskAiCfoClick:bn}=ln({isAiCfoOpen:Dn,setIsAiCfoOpen:In,mobileExploreReferrer:"Checking Accounts"});dn({isDataReady:$==="Completed"});const vn=f.company!=null&&He(f.company),ge=(r&&vn)===!0&&!X,[En,jn]=u.useState(!1),ye=w(F=>F.treasurySetupViewState.treasuryFundsDetails),Pn=ye.fundsDetails,Tn=jt(Pn);u.useEffect(()=>{ge!==!0||En||ye?.fetchStatus.fetchState!=="Not-Started"||(jn(!0),a(rt()))},[ye.fetchStatus,a]);const Bn=nn(f),On=Se(l,f);return Bn===!0&&On!==!0?n.jsx(cn,{}):fe?n.jsxs(n.Fragment,{children:[y.fetchState==="Completed"&&E===!1&&T===!1?n.jsx(me,{analytics:R,onLoad:F=>(Oe=>{Oe.trackAccountsListPageViewed(y.depositAccountsSelectorView.depositAccounts.length,y.externalAccountsSelectorView.paymentAccounts.length,Me(y.summary?.totalBalance.available.amount??0),Me(y.summary?.totalInterest.available.amount??0),y.zeniAccountsConfig.zeniAccountsConfigDetail.annualPercentageYield),ge&&Oe.trackTreasuryPromoView("Checking Promo Banner")})(F)}):null,E===!0?n.jsx(pn,{closeDrawerHandler:Te,isTransferDrawerOpen:E,zeniAccountsConfig:y.zeniAccountsConfig,authParams:xn,downloadAccountDetailEndPoint:kn}):null,T===!0?n.jsx(un,{closeDrawerHandler:Te,isCheckDepositDrawerOpen:T}):null,n.jsxs(la,{windowSize:i,children:[n.jsx(he,{isAppContentDrawerOpen:wn,handleDrawerToggle:Be}),n.jsx(da,{zeniBankListView:y,navigate:o,currentTenant:f,location:s,companyId:A,analytics:R,maxInsuredAmount:b.maxInsuredAmount,isExpressPayEnabled:g,isBillPayEnabled:Cn,isCheckingCommentingEnabled:x,isDebitCardFeatureEnabled:l,isAutoTransferRuleEnabled:h,handleDrawerToggle:Be,showTreasuryPromo:ge,treasuryYieldPercentage:Tn,treasuryInsuredAmount:5e5,isAiCfoAccessEnabled:Sn,onAskAiCfoClick:bn})]})]}):re&&K?n.jsx(ne,{to:"../setup"}):f.companyZeniAccountInfo?.info&&!re&&yn?n.jsx(ne,{to:"../promo",state:s.state}):n.jsx(pe,{fetchState:"In-Progress",style:{backgroundColor:m.colors.grey5}})}const mn=(e,t,s)=>{const o=Se(s,e),{tenantEmailDomain:a}=e;return o===!0||t===!1?`/${a}/bills`:`/${a}/bill/new`},ua=(e,t)=>`/${e}/checking/${t}`,hn=(e,t)=>t==null?`/${e}/checking/transfer`:`/${e}/checking/${t}/transfer`,fn=(e,t)=>t==null?`/${e}/checking/check-deposit`:`/${e}/checking/${t}/check-deposit`,gn=e=>`/${e}/checking/express-pay`,pa=L.div`
|
|
50
50
|
display: flex;
|
|
51
51
|
width: 100%;
|
|
52
52
|
flex: 1 1 auto;
|
|
@@ -54,7 +54,7 @@ import{j as n}from"./liveblocks-XXI3_E1y.js";import{j as Z,u as W,h as z,l as H,
|
|
|
54
54
|
align-items: center;
|
|
55
55
|
min-height: 100vh;
|
|
56
56
|
background-color: ${e=>e.theme.colors.grey4};
|
|
57
|
-
`,ma=Y(function(e,t){const{currentTenant:s}=t,o=an(e,t.accountId),a=D.getSignedInUser(),i=e.tenantState.currentTenantId,d={userId:a?.userId??"",sessionId:a?.zeniSessionId??"",tenantId:i??""},c=o.accountDetail?.id??"";return{currentTenantCompanyName:s.companyName??"",authParams:d,downloadEndPoint:`${ve.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${c}`,zeniAccountDetail:o,isExpressPayEnabled:t.isExpressPayEnabled,fetchState:o.fetchState}},function(e,t){const{navigate:s,currentTenant:o,location:a,accountId:i}=t,{tenantEmailDomain:d}=o;return{handleMoveMoneyOptionSelection:(c,p)=>{let m="page-not-found";c==="sendMoney"?m=
|
|
57
|
+
`,ma=Y(function(e,t){const{currentTenant:s}=t,o=an(e,t.accountId),a=D.getSignedInUser(),i=e.tenantState.currentTenantId,d={userId:a?.userId??"",sessionId:a?.zeniSessionId??"",tenantId:i??""},c=o.accountDetail?.id??"";return{currentTenantCompanyName:s.companyName??"",authParams:d,downloadEndPoint:`${ve.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${c}`,zeniAccountDetail:o,isExpressPayEnabled:t.isExpressPayEnabled,fetchState:o.fetchState}},function(e,t){const{navigate:s,currentTenant:o,location:a,accountId:i}=t,{tenantEmailDomain:d}=o;return{handleMoveMoneyOptionSelection:(c,p)=>{let m="page-not-found";c==="sendMoney"?m=gn(d):c==="payBill"?m=mn(o,t.isBillPayEnabled,t.isDebitCardFeatureEnabled):c==="transfer"?(m=hn(d,i),p!=null&&e(tn(p))):c==="checkDeposit"?(m=fn(d,i),p!=null&&e(ut(p))):c==="accountStatement"&&(m=ga(d,i));const C=ee(a.state?.pathnameStackToGoBack,a.pathname);s(m,{state:{pathnameStackToGoBack:C}})},onViewAllTransactionClick:()=>{const c=fa(d,i),p=ee(a.state?.pathnameStackToGoBack,a.pathname);s(c,{state:{pathnameStackToGoBack:p}})},onAccountDetailClick:()=>{const c=ha(d,i),p=ee(a.state?.pathnameStackToGoBack,a.pathname);s(c,{state:{pathnameStackToGoBack:p}})},onEditNameClick:c=>{e(ze(i,"editName",c))},onReloadZeniAccountDetailPage:()=>{e(on(i,!1))},onCloseAccountClick:()=>{e(ze(i,"closeAccount",""))},onBackClick:()=>{s("../",{relative:"path"})}}})(Tt);function le({isTransferDrawerOpen:e,isCheckDepositDrawerOpen:t,isAccountInfoDrawerOpen:s}){const o=W(),a=H(),i=z(),d=_(),{tenantEmailDomain:c,accountId:p}=Z(),{useDynamicConfig:m}=V(),{useFeatureGate:C}=V(),{isFeatureEnabled:r}=C(B.isDebitCardFeatureEnabled),{isFeatureEnabled:l}=C(B.isCheckingCommentingEnabled),h=w(K=>N(K)),{configValue:x}=m(G.expressPayConfig),b=x.is_enable_all_tenants===!0||x.tenant_ids!=null&&x.tenant_ids.includes(h.tenantId),f=!!h.companyBillPayInfo?.info?.isBillPayEnabled,A=D.getSignedInUser(),I=h.companyId??D.getSignedInUserTenant(c)?.companyId,g={userId:A?.userId??"",sessionId:A?.zeniSessionId??"",tenantId:h.tenantId??""},S=`${be}/account_details`,[O,U]=u.useState(!1),[P,E]=u.useState(!1),[v,T]=u.useState(!1),[j,y]=u.useState(!1),$=w(K=>an(K,p??"")),oe=$.fetchState,{isAiCfoOpen:se,setIsAiCfoOpen:fe}=rn(),{isAiCfoAccessEnabled:ie,onAskAiCfoClick:re}=ln({isAiCfoOpen:se,setIsAiCfoOpen:fe,mobileExploreReferrer:"Checking Account Detail"});dn({isDataReady:oe==="Completed"}),u.useEffect(()=>{O||(i(on(p??"",!1)),U(!0))},[O,i,oe]),u.useEffect(()=>{y(s!=null&&s===!0)},[s]),u.useEffect(()=>{e!=null&&e===!0?E(!0):(E(!1),document.body.style.overflow="auto")},[e]),u.useEffect(()=>{T(t!=null&&t===!0)},[t]);const X=()=>{y(!1),a("..")};return n.jsxs(n.Fragment,{children:[j===!0&&$.accountDetail!=null?n.jsx(ta,{authParams:g,downloadAccountDetailEndPoint:S,closeDrawerHandler:X,isAccountInfoDrawerOpen:j,zeniBankAccountDetail:$.accountDetail}):null,P===!0?n.jsx(pn,{closeDrawerHandler:X,isTransferDrawerOpen:P,zeniAccountsConfig:$.zeniAccountsConfig,authParams:g,downloadAccountDetailEndPoint:S}):null,v===!0?n.jsx(un,{closeDrawerHandler:X,isCheckDepositDrawerOpen:v}):null,n.jsx(pa,{windowSize:d,children:n.jsx(ma,{navigate:a,currentTenant:h,location:o,companyId:I,isDebitCardFeatureEnabled:r,accountId:p??"",isBillPayEnabled:f,isCheckingCommentingEnabled:l,isExpressPayEnabled:b,isAiCfoAccessEnabled:ie,onAskAiCfoClick:re})})]})}const ha=(e,t)=>`/${e}/checking/${t}/account-info`,fa=(e,t)=>`/${e}/checking/${t}/transactions`,ga=(e,t)=>`/${e}/checking/${t}/statements`,ya=L.div`
|
|
58
58
|
display: flex;
|
|
59
59
|
height: 100vh;
|
|
60
60
|
width: 100%;
|
|
@@ -63,4 +63,4 @@ import{j as n}from"./liveblocks-XXI3_E1y.js";import{j as Z,u as W,h as z,l as H,
|
|
|
63
63
|
overflow: auto;
|
|
64
64
|
align-items: center;
|
|
65
65
|
background-color: ${e=>e.theme.colors.grey4};
|
|
66
|
-
`;function Ca(){const e=
|
|
66
|
+
`;function Ca(){const e=H(),t=z(),s=_(),{accountId:o}=Z(),{useFeatureGate:a}=V(),{isFeatureEnabled:i}=a(B.isCheckingCommentingEnabled),[d,c]=u.useState(!1);u.useEffect(()=>{d||(c(!0),t(pt(o??"",!1)))},[d,t]);const p=w(m=>mt(m,o??""));if(D.getSignedInUser()==null)throw Error("Can't access address page without signing in...");return n.jsx(ya,{windowSize:s,children:n.jsx(Bt,{transactionListView:p,depositAccountId:o??"",isCheckingCommentingEnabled:i,onBackClick:()=>{e("../")}})})}const xa=Y(function(e,t){const{companyId:s}=t;return{zeniAccountSetupView:ht(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(ft(o))},onBackClick:()=>{s("../..",{relative:"path"})},onSetupZeniAccountSuccess:()=>{s("../setup",{relative:"path"})}}})(Ft),ka=()=>{const e=H(),t=W(),{tenantEmailDomain:s}=Z(),{useDynamicConfig:o}=V(),a=M(),[i,d]=u.useState(!1),[c,p]=u.useState(!1),m=w(g=>N(g)),{configValue:C}=o(G.zeniAccountsConfig),r=De(C);u.useEffect(()=>{c===!1&&t.state?.message==="activation"&&p(!0)},[t.state]);const l=D.getSignedInUserTenant(s)?.companyId??m.companyId,h=D.getSignedInUser(),x=!!m.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted,b=g=>{d(g)};if(h==null)throw Error("Can't access Zeni account promo page without signing in...");const f=ae(),A=te(f?.loggedInUserRoleMap),I=Ie(f?.loggedInUserRoleMap);if(x&&A)return n.jsx(ne,{to:"../../checking/setup"});if(m.company?.companyZeniAccountInfo&&(!x&&A||I)){if(t.state?.message==="activation"){const g=sn(t.state?.pathnameStackToGoBack);e(t.pathname,{state:{...t.state,message:void 0,pathnameStackToGoBack:g.newStack}})}return n.jsxs(n.Fragment,{children:[n.jsx(Ot,{showConfetti:c}),n.jsx(me,{analytics:R,onLoad:g=>(S=>S.trackPageLoaded(Ee.Event.accountsPromoPageViewed))(g)}),n.jsx(he,{isAppContentDrawerOpen:i,handleDrawerToggle:b}),n.jsx(xa,{analytics:R,navigate:e,companyId:l,onClickMenuIcon:()=>{b(!0)},maxAnnualPercentageYield:r.maxAnnualPercentageYield,maxInsuredAmount:r.maxInsuredAmount,exampleBankBalance:3e6})]})}return n.jsx(pe,{fetchState:"In-Progress",style:{backgroundColor:a.colors.grey5}})};function Ja(){const e=W(),t=w(j=>N(j)),s=M(),{useFeatureGate:o,useDynamicConfig:a}=V(),i=ae(),d=te(i?.loggedInUserRoleMap),c=Ie(i?.loggedInUserRoleMap),p=!!t.company?.companyZeniAccountInfo.isZeniAccountEnabled,m=!!t.company?.companyZeniAccountInfo.isZeniAccountTOSAccepted,{isFeatureEnabled:C}=o(B.isChargeCardFeatureEnabled),{isFeatureEnabled:r}=o(B.isDebitCardFeatureEnabled),l=nn(t),h=Se(r,t),x=t?.userRole!=null&>(t?.userRole),b=(t?.company==null||t.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!x)&&yt(i?.loggedInUserRoleMap),f=Ct(i?.loggedInUserRoleMap),A=(t?.company==null||t.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!x)&&xt(i?.loggedInUserRoleMap),{isFeatureEnabled:I}=o(B.isDepositAccountsFeatureEnabled),g=I&&!x,{configValue:S}=a(G.expressPayConfig),O=S.is_enable_all_tenants===!0||S.tenant_ids!=null&&S.tenant_ids.includes(t.tenantId),{isFeatureEnabled:U}=o(B.isAutoTransferRuleEnabled),P=Rt(t,C,r)&&!x&&kt(i?.loggedInUserRoleMap),E=wt(i?.loggedInUserRoleMap),v=g&&te(i?.loggedInUserRoleMap),T=v||Ge(i?.loggedInUserRoleMap);return n.jsxs($e,{children:[n.jsx(k,{path:"setup",element:n.jsx(_e,{isBillPayAdminLevelAccess:b,isUserHasOnlyBillPayAccess:f,isReimbursementAdminLevelAccess:A,isZeniAccountAdminLevelAccess:v,isChargeCardAdminLevelAccess:P,isUserHasOnlyCardAccess:E,productType:"zeni_accounts",type:"setup"})}),n.jsx(k,{path:"verification",element:n.jsx(_e,{isBillPayAdminLevelAccess:b,isUserHasOnlyBillPayAccess:f,isReimbursementAdminLevelAccess:A,isZeniAccountAdminLevelAccess:v,isChargeCardAdminLevelAccess:P,isUserHasOnlyCardAccess:E,productType:"zeni_accounts",type:"verification"})}),U?n.jsxs(n.Fragment,{children:[n.jsx(k,{path:"auto-transfer",element:n.jsx(Ve,{})}),T?n.jsx(k,{path:"auto-transfer/:ruleId/edit",element:n.jsx(Ve,{isEditDrawerOpen:!0})}):null]}):n.jsx(k,{path:"auto-transfer",element:n.jsx(de,{})}),O&&d?n.jsxs(n.Fragment,{children:[n.jsx(k,{path:"express-pay",element:n.jsx(ce,{})}),n.jsx(k,{path:"express-pay/add-ach",element:n.jsx(ce,{isAddACHDrawerOpen:!0})}),n.jsx(k,{path:"express-pay/add-wire/add-address",element:n.jsx(ce,{isAddAddressDrawerOpen:!0})}),n.jsx(k,{path:"express-pay/add-wire",element:n.jsx(ce,{isAddWireDrawerOpen:!0})})]}):n.jsx(k,{path:"express-pay",element:n.jsx(de,{})}),n.jsx(k,{path:"promo",element:n.jsx(ka,{})}),l&&!h?n.jsx(k,{path:"/*",element:n.jsx(cn,{})}):p?n.jsxs(n.Fragment,{children:[n.jsx(k,{path:"/",element:n.jsx(ke,{})}),n.jsx(k,{path:"transfer",element:n.jsx(ke,{isTransferDrawerOpen:!0})}),n.jsx(k,{path:"check-deposit",element:n.jsx(ke,{isCheckDepositDrawerOpen:!0})}),n.jsx(k,{path:":accountId/*",element:n.jsx(wa,{})}),n.jsx(k,{path:"*",element:n.jsx(de,{})})]}):m&&d?n.jsx(k,{path:"*",element:n.jsx(ne,{to:"../setup"})}):t.company?.companyZeniAccountInfo&&c?n.jsx(k,{path:"*",element:n.jsx(ne,{to:"../promo",state:e.state})}):n.jsx(k,{path:"*",element:n.jsx(pe,{fetchState:"In-Progress",style:{backgroundColor:s.colors.grey5,boxShadow:`0px 2px ${Lt.sp1} ${s.colors.dropShadowNormal}`}})})]})}function wa(){return n.jsxs($e,{children:[n.jsx(k,{path:"/",element:n.jsx(le,{})}),n.jsx(k,{path:"account-info",element:n.jsx(le,{isAccountInfoDrawerOpen:!0})}),n.jsx(k,{path:"transfer",element:n.jsx(le,{isTransferDrawerOpen:!0})}),n.jsx(k,{path:"check-deposit",element:n.jsx(le,{isCheckDepositDrawerOpen:!0})}),n.jsx(k,{path:"transactions",element:n.jsx(Ca,{})}),n.jsx(k,{path:"statements",element:n.jsx(_t,{})}),n.jsx(k,{path:"*",element:n.jsx(de,{})})]})}export{Ja as default};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{j as i}from"./liveblocks-BeS4QmMp.js";import{a as u}from"./sentry-BlmJH5WH.js";import{j as x,h as B,u as C,l as N,g as p}from"./core-DcM32IW_.js";import{HD as s,HC as $,NJ as j,eN as v,NK as D}from"./zeni-epic-state-ChnjRetZ.js";import{q as T,ap as g,h as z,z as E,B as L,b_ as P,r as _}from"./index-BZDuIo7x.js";import{n as U}from"./mui--qrGbwFJ.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]="632fbebf-21a0-4ef0-8322-5bfe53ccf7f3",e._sentryDebugIdIdentifier="sentry-dbid-632fbebf-21a0-4ef0-8322-5bfe53ccf7f3")}catch{}})();const G=U.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
height: 100vh;
|
|
4
|
+
width: 100%;
|
|
5
|
+
flex: 1 1 auto;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
align-items: center;
|
|
8
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
+
`;function V(){const e=x(),n=B(),d=T(),f=C();let{accountId:a}=N(),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,b]=u.useState(!1),h=z();u.useEffect(()=>{m||(b(!0),n($(a??"",!1)))},[m,n]);const o=p(t=>j(t,a??"")),y=()=>{const t=_(f.state?.pathnameStackToGoBack),S=t.poppedPathname??"..";e(S,{state:{pathnameStackToGoBack:t.newStack}})},r=E.getSignedInUser(),c=p(t=>v(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(L,{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:l})})}export{V as Z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./sentry-
|
|
1
|
+
import"./sentry-BlmJH5WH.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]="aeade864-8999-4b65-a5fe-284d93c9cae4",e._sentryDebugIdIdentifier="sentry-dbid-aeade864-8999-4b65-a5fe-284d93c9cae4")}catch{}})();function d(e,t){if(t!=null)return e.find(n=>n.qboId===t)}function i(e,t){return e.filter(n=>n.qboId!=null&&t.includes(n.qboId))}function a(e,t){return t.map(n=>({accountId:d(e,n.accountId.selectedOption)?.accountId??"",expenseType:n.expenseType.selectedOption??"",type1099:n.type1099.selectedOption??"",boxType:n.boxType.selectedOption??""}))}export{d as a,i as g,a as m};
|