@zeniai/web-app-ui 5.0.61-qa → 5.0.62-next
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-B4Dpqy4r.js +1 -0
- package/dist/assets/AddressScreen-CWDdv_BQ.js +9 -0
- package/dist/assets/{AiCfoScreen-BP9Ft687.js → AiCfoScreen-BFV5_86Q.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-tYr_9OWR.js → BillPayApprovalRoutes-SeFOxXYh.js} +1 -1
- package/dist/assets/{BillPayRoutes-DmhKosIo.js → BillPayRoutes-BLwBLBp0.js} +1 -1
- package/dist/assets/{BusinessVerificationPageScreen-DHwpyl1f.js → BusinessVerificationPageScreen-d-70pMRn.js} +2 -2
- package/dist/assets/{ChargeCardRoutes-DdDzkKLF.js → ChargeCardRoutes-B1k78Fe6.js} +8 -8
- package/dist/assets/{CompanyPassportScreen-BK2OTKJu.js → CompanyPassportScreen-HqLnmaxr.js} +1 -1
- package/dist/assets/{ConnectionAuthScreen-k86NOnxb.js → ConnectionAuthScreen-B1CtG73r.js} +1 -1
- package/dist/assets/CustomerOnboardingAuthScreen-BuDcM1sR.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-ibn4fZkx.js → CustomerOnboardingRoutes-CKkbOhcz.js} +1 -1
- package/dist/assets/{DashboardRoutes-DsyeD2-B.js → DashboardRoutes-Dd31LEFt.js} +3 -3
- package/dist/assets/{DefaultTenantHome-Dn3Q39m4.js → DefaultTenantHome-Dm3LpNEP.js} +1 -1
- package/dist/assets/{DomesticWireDetailScreen-D6Fv4KmF.js → DomesticWireDetailScreen-gt-Ai-WD.js} +3 -3
- package/dist/assets/DrawerScreen-Bgl100Ik.js +1 -0
- package/dist/assets/{EntityDetailRoutes-B6fpxmHW.js → EntityDetailRoutes-B_217KfY.js} +1 -1
- package/dist/assets/{ExpenseAutomationRoutes-hPdcTllf.js → ExpenseAutomationRoutes-CJOAACG8.js} +1 -1
- package/dist/assets/FeaturePreviewScreen-yO9VvlJP.js +1 -0
- package/dist/assets/MagicLinkRoutes-D03iNlp4.js +72 -0
- package/dist/assets/MagicLinkSignInScreen-D3NmIjhy.js +12 -0
- package/dist/assets/{MobileAppDrawer-BsEeVHGJ.js → MobileAppDrawer-Cbtsb69z.js} +1 -1
- package/dist/assets/NotFoundScreen-DYSe2Mdv.js +1 -0
- package/dist/assets/{NotificationRoutes-CCNPEsKp.js → NotificationRoutes-rsg9SBLC.js} +1 -1
- package/dist/assets/{PandLWithForecastRoutes-wJ4pN9t1.js → PandLWithForecastRoutes-D3EnIWIV.js} +1 -1
- package/dist/assets/{PeopleRoutes-uXI358fF.js → PeopleRoutes-CvlOSML6.js} +9 -9
- package/dist/assets/{PerformanceRoutes-DOyVY_Ow.js → PerformanceRoutes-QK2BkwMN.js} +1 -1
- package/dist/assets/{Preview-CIDoApcd.js → Preview-De6lAC_h.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-BH7qNWPW.js → QBOConnectionScreen-CzRSEfnn.js} +1 -1
- package/dist/assets/ReferralListScreen-CrZHp_7-.js +5 -0
- package/dist/assets/ReimbursementApprovalRoutes-Bo-7jsNx.js +1 -0
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-CEnbrTbv.js → ReimbursementApprovalRuleDetailScreen-CVmD-yQI.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-BT2-7Gsa.js → ReimbursementRoutes-BWXSBU7P.js} +1 -1
- package/dist/assets/ReportsRoutes-CE5LSgvr.js +1 -0
- package/dist/assets/RewardsRoutes-B2X_FM68.js +1 -0
- package/dist/assets/ScreenRoutes-ByR6eqn0.js +2 -0
- package/dist/assets/{SettingsRoutes-CLa1lnt-.js → SettingsRoutes-D3zg4e1O.js} +1 -1
- package/dist/assets/{SetupPagesScreen-CwdMwDRP.js → SetupPagesScreen-D764pnzM.js} +5 -5
- package/dist/assets/{SignInScreen-DnvXxvnM.js → SignInScreen-BBcsTGFB.js} +1 -1
- package/dist/assets/SignOutScreen-mjRtJ2Sa.js +9 -0
- package/dist/assets/TaskListScreen-EE-mG0FL.js +9 -0
- package/dist/assets/TaskRoutes-OoZrol6E.js +9 -0
- package/dist/assets/TransactionDetailRoutes-kCwOvSNK.js +1 -0
- package/dist/assets/{TransactionDetailScreen-DKG_MhFF.js → TransactionDetailScreen-k-8yhupk.js} +2 -2
- package/dist/assets/{TransactionListRoutes-BSDQcv3U.js → TransactionListRoutes-B-msRy9Y.js} +1 -1
- package/dist/assets/{TreasuryRoutes-AWertsO5.js → TreasuryRoutes-BAh2GTgw.js} +6 -6
- package/dist/assets/{VendorsRoutes-DW9oOFbY.js → VendorsRoutes-SFISxxod.js} +1 -1
- package/dist/assets/WiseConfirmationScreen-FsSsJS2Q.js +12 -0
- package/dist/assets/{ZeniAccountRoutes-Bu65VebN.js → ZeniAccountRoutes-De_r3X7O.js} +1 -1
- package/dist/assets/ZeniAccountStatementScreen-nOgDprhF.js +9 -0
- package/dist/assets/{accountMappingHelper-C_yfNaYk.js → accountMappingHelper-DA7klO76.js} +1 -1
- package/dist/assets/{analytics-BMapadfi.js → analytics-DMHo1eqB.js} +1 -1
- package/dist/assets/{analyticsHelper-hJglLz67.js → analyticsHelper-BojuPNuT.js} +1 -1
- package/dist/assets/{core-Bycbr_zS.js → core-BRYqCMzm.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-D8oY1hc9.js → decodeURIComponentSafe-VG11krJk.js} +1 -1
- package/dist/assets/{dnd-Jwp37Hwc.js → dnd-BUhKHo0J.js} +1 -1
- package/dist/assets/{empty-BVzRSYkS.js → empty-CdcoSwLG.js} +1 -1
- package/dist/assets/{empty-DvEtWNNn.js → empty-CxwxcwS5.js} +1 -1
- package/dist/assets/{emptyVideoElement-wwbaO4KU.js → emptyVideoElement-TKzdCeZg.js} +1 -1
- package/dist/assets/{epic-C4FCGNFQ.js → epic-B922Znlh.js} +1 -1
- package/dist/assets/{getLocaleForTenant-hR2ZjLdG.js → getLocaleForTenant-kMn_Tpi1.js} +1 -1
- package/dist/assets/{index-D75hXUaQ.js → index--_tWBs2I.js} +2 -2
- package/dist/assets/{index-DB8zvt4r.js → index-1E_YGXm0.js} +1 -1
- package/dist/assets/{index-Bo8i__Uw.js → index-CzgC_2M7.js} +1 -1
- package/dist/assets/{index-DmSlLFfZ.js → index-DBzpg9Hn.js} +1 -1
- package/dist/assets/{index-C5fsf-f7.js → index-DJPHh6NG.js} +1 -1
- package/dist/assets/{index-Co9dF_xb.js → index-DVwKDUH5.js} +1 -1
- package/dist/assets/{index-CkPLyKrL.js → index-akX3Nhym.js} +12793 -12793
- package/dist/assets/{lexical-BFKF8Nqm.js → lexical-8E0BhRCX.js} +1 -1
- package/dist/assets/{liveblocks-yYJhhlwl.js → liveblocks-DytGFyho.js} +1 -1
- package/dist/assets/{lottie-CQftbn5o.js → lottie-DUnNV-G9.js} +1 -1
- package/dist/assets/{mui-uwIb-0_u.js → mui-dDGLzwM4.js} +1 -1
- package/dist/assets/{pathToGoBack-6NBe70Qs.js → pathToGoBack-mVeUADM1.js} +1 -1
- package/dist/assets/{pdf-Clano961.js → pdf-DJGD_VAN.js} +3 -3
- package/dist/assets/{pdf-lib-qkfMQ_yu.js → pdf-lib-GOd1bq4e.js} +1 -1
- package/dist/assets/{plaid-BtVuBiv6.js → plaid-QQ6p_f2h.js} +1 -1
- package/dist/assets/{pusher-CR1v05zD.js → pusher-C73GgrNh.js} +1 -1
- package/dist/assets/{react-BjTfXtJu.js → react-BNtClE3e.js} +1 -1
- package/dist/assets/{react-BSMOFxva.js → react-BTGNUuDB.js} +1 -1
- package/dist/assets/{react-DrnPjRY_.js → react-CSoSU7g9.js} +1 -1
- package/dist/assets/{react-BwcG0A5u.js → react-KlPNqCgv.js} +1 -1
- package/dist/assets/{react-B-NPms-H.js → react-f4y-bbBx.js} +1 -1
- package/dist/assets/{react-D5gy2Tue.js → react-udL8tA2v.js} +1 -1
- package/dist/assets/{recharts-DgZ04ot6.js → recharts-C7zYvbyW.js} +1 -1
- package/dist/assets/{routePaths-CMggNZ1T.js → routePaths-CXvFM1Km.js} +1 -1
- package/dist/assets/{sentry-CbgVFeom.js → sentry-YlBgF13X.js} +1 -1
- package/dist/assets/{url-Bvrri-wo.js → url-CoI8Zsek.js} +1 -1
- package/dist/assets/{url-CACUy1v-.js → url-NkQdWNq2.js} +1 -1
- package/dist/assets/{useAskAiCfoHostNavButtonProps-C7xPewG5.js → useAskAiCfoHostNavButtonProps-Drf4spg5.js} +1 -1
- package/dist/assets/{useDeviceId-DGCuWe9z.js → useDeviceId-DEQYTB26.js} +1 -1
- package/dist/assets/{useFetchSuggestedQuestionsWhenReady-DmtdISaY.js → useFetchSuggestedQuestionsWhenReady-vaYDsXnK.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-DBrdowkN.js → useInitialThreadRequest-_8uTkuSx.js} +1 -1
- package/dist/assets/{utils-CUNvYJ5h.js → utils-B6J0lORC.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-VWqgYGxS.js → withTransactionSidePanel-DlSxH_1I.js} +1 -1
- package/dist/assets/{zeni-epic-state-CIfm8mou.js → zeni-epic-state-B6DxGTeH.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/AddressRoutes-CVfu5Dox.js +0 -1
- package/dist/assets/AddressScreen-7k7vjaFG.js +0 -9
- package/dist/assets/CustomerOnboardingAuthScreen-DbwBw2uW.js +0 -1
- package/dist/assets/DrawerScreen-Dzpv8ixO.js +0 -1
- package/dist/assets/FeaturePreviewScreen-CZ4kSWCz.js +0 -1
- package/dist/assets/MagicLinkRoutes-Bg0SJwWd.js +0 -72
- package/dist/assets/MagicLinkSignInScreen-3waOEQgZ.js +0 -12
- package/dist/assets/NotFoundScreen-BnQ9IpWO.js +0 -1
- package/dist/assets/ReferralListScreen-CTukyk1g.js +0 -5
- package/dist/assets/ReimbursementApprovalRoutes-DcSHObaL.js +0 -1
- package/dist/assets/ReportsRoutes-JuhC6wWc.js +0 -1
- package/dist/assets/RewardsRoutes-DSOl9Z0M.js +0 -1
- package/dist/assets/ScreenRoutes-Ck32XMYo.js +0 -2
- package/dist/assets/SignOutScreen-CL2ZVx-I.js +0 -9
- package/dist/assets/TaskListScreen-DCK_sYz_.js +0 -9
- package/dist/assets/TaskRoutes-BPawNp5H.js +0 -9
- package/dist/assets/TransactionDetailRoutes-DNNxQ-Pu.js +0 -1
- package/dist/assets/WiseConfirmationScreen-CfuT7R3M.js +0 -12
- package/dist/assets/ZeniAccountStatementScreen-D1W40t46.js +0 -9
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e}from"./liveblocks-
|
|
1
|
+
import{j as e}from"./liveblocks-DytGFyho.js";import{j as B,u as M,h as U,l as N,g as f,N as L,k as V,n as xe,o as k}from"./core-BRYqCMzm.js";import{ck as O,eN as D,MA as R,D6 as ae,fb as W,CQ as ne,MC as Te,D9 as we,My as Ie,Mz as se,MQ as Ce,Bg as ke,s5 as be,ME as je,Dk as Ae,MB as re,cN as Z,wb as oe,eR as Ee,eT as ve,NL as De,NM as Fe,CR as Le,NN as Be,CS as Me,C$ as Ue,bv as Re,bD as Pe,cv as Ne,bE as Ve,cj as Oe,fa as ze,bs as _e,Ik as $e,ci as Ge}from"./zeni-epic-state-B6DxGTeH.js";import{j as z,am as He,z as A,A as _,d as b,b$ as We,c0 as Ze,c1 as H,q,h as qe,M as Ke,a as ie,p as v,F as Je,B as Qe,c2 as Xe,ap as K,s as Ye,c3 as et,n as J,c4 as tt,I as X,c5 as at,a5 as nt}from"./index-akX3Nhym.js";import{D as st,n as P,S as rt}from"./mui-dDGLzwM4.js";import ot from"./NotFoundScreen-DYSe2Mdv.js";import{S as Y}from"./SetupPagesScreen-D764pnzM.js";import{a as d}from"./sentry-YlBgF13X.js";import{u as it}from"./useAskAiCfoHostNavButtonProps-Drf4spg5.js";import{c as ct}from"./useFetchSuggestedQuestionsWhenReady-vaYDsXnK.js";import{M as ce}from"./MobileAppDrawer-Cbtsb69z.js";import{F as lt}from"./FeaturePreviewScreen-yO9VvlJP.js";import{a as ee}from"./analyticsHelper-BojuPNuT.js";import"./recharts-C7zYvbyW.js";import"./analytics-DMHo1eqB.js";import"./plaid-QQ6p_f2h.js";import"./dnd-BUhKHo0J.js";import"./stripe-DMRn4zHo.js";import"./lottie-DUnNV-G9.js";import"./lexical-8E0BhRCX.js";import"./pdf-DJGD_VAN.js";import"./utils-B6J0lORC.js";import"./routePaths-CXvFM1Km.js";import"./BusinessVerificationPageScreen-d-70pMRn.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]="b77498de-be1c-4cb0-94bd-5230fd3dae8a",t._sentryDebugIdIdentifier="sentry-dbid-b77498de-be1c-4cb0-94bd-5230fd3dae8a")}catch{}})();const ut=V(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(Te(r))}}})(We);function dt(){const t=B(),a=M(),n=U(),{tenantEmailDomain:o}=N(),p=z(),r=f(C=>C.treasurySetupViewState.portfolioAllocationUpdateStatus?.fetchState),m=He(r),s=O(p?.loggedInUserRoleMap),[c,i]=d.useState(!1),[y,I]=d.useState(!1),[u,l]=d.useState(!1),g=f(C=>D(C)),h=A.getSignedInUserTenant(o)?.companyId??g.companyId,T=A.getSignedInUser(),S=f(C=>R(C,h)),w=f(C=>C.treasurySetupViewState.fetchState),x=f(C=>C.treasurySetupViewState.currentAllocation.fetchStatus?.fetchState),F=f(C=>C.treasurySetupViewState.treasuryFundsDetails?.fetchStatus?.fetchState);if(T==null)throw Error("Can't access treasury portfolio allocation page without signing in...");if(d.useEffect(()=>{c||w!=="Not-Started"||h==null||(i(!0),n(ae(h,!0,!1)))},[c,w,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||w!=="Completed";return e.jsxs(e.Fragment,{children:[!E&&e.jsx(_,{analytics:b,onLoad:()=>{}}),e.jsx(ut,{navigate:t,location:a,companyId:h,isEditMode:!0,isLoading:E,isReadOnly:!s,treasurySetupView:S,analytics:b})]})}const pt=V(function(t,a){const n=a.currentTenant?.companyId;return{plaidConnectionDetails:Ce(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(Ae())},onSaveChangesToLocalStore:s=>{t(je(s))},onFetchLinkTokenClick:s=>{t(be("treasury_setup",s))},onEstablishConnectionClick:s=>{t(ke(s,a.currentTenant?.companyId,"treasury_setup","zeni_treasury"))}}})(Ze),mt=({isFirstTransfer:t})=>{const a=B(),{tenantEmailDomain:n}=N(),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)),T=A.getSignedInUserTenant(n)?.companyId??h.companyId,S=f(x=>Ie(x)),w=f(x=>R(x,T));if(A.getSignedInUser()==null)throw Error("Can't access treasury transfer page without signing in...");return d.useEffect(()=>{m||u!=="Not-Started"||T==null||(s(!0),o(ae(T,!0,!1)))},[m,u,T,o]),d.useEffect(()=>{c||l!=="Not-Started"||T==null||(i(!0),o(W()))},[c,l,T,o]),d.useEffect(()=>{y||g!=="Not-Started"||T==null||(I(!0),o(ne()))},[y,g,T,o]),e.jsxs(e.Fragment,{children:[e.jsx(_,{analytics:b,onLoad:()=>{}}),e.jsx(pt,{analytics:b,navigate:a,transferDetails:S,onAnotherTransferClick:()=>{r(!1),o(se())},currentTenant:h,treasurySetupView:w,showReviewContent:p,maxInsuredAmount:5e5,onReviewClick:()=>{H(b,"review",S.treasuryTransferMoneyLocalData,w.fundAllocationLocalData,"Transfer"),r(!0)},isFirstTransfer:t,setShowReviewContent:r,onBackClick:()=>{}})]})},ft=P.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
width: 100%;
|
|
@@ -6,11 +6,11 @@ import{j as e}from"./liveblocks-yYJhhlwl.js";import{j as B,u as M,h as U,l as N,
|
|
|
6
6
|
flex-direction: column;
|
|
7
7
|
align-items: center;
|
|
8
8
|
background-color: ${t=>t.theme.colors.grey4};
|
|
9
|
-
`,yt={overlayWidth:new Je(100,100,48)},gt=V(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=ht(s):c==="statements"?i=St(s):c==="taxLetter"?i=xt(s):c==="settings"&&(i=
|
|
9
|
+
`,yt={overlayWidth:new Je(100,100,48)},gt=V(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=ht(s):c==="statements"?i=St(s):c==="taxLetter"?i=xt(s):c==="settings"&&(i=Tt(s));const y=Ye(p.state?.pathnameStackToGoBack,p.pathname);n(i,{state:{pathnameStackToGoBack:y}})},onColumnSortConfigChanged:(c,i)=>{t(De({uiState:{sortKey:c,sortOrder:i}}))},onTransferClick:()=>{n("./transfer")},onBackClick:()=>{n("../../")},onClickMenuIcon:()=>{r(!0)},onAutoTransferClick:()=>{n("../../checking/auto-transfer")}}})(Xe);function G({isTransferDrawerOpen:t,isEditPortfolioDrawerOpen:a}){const n=M(),o=B(),p=U(),r=q(),m=qe(),s=f(j=>D(j)),{tenantEmailDomain:c}=N(),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),T=s.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",S=z(),w=!!s.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,x=O(S?.loggedInUserRoleMap),F=Z(S?.loggedInUserRoleMap),{areTenantIdsInSync:E}=Ke();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 C=()=>{o("..")},[le,ue]=d.useState(!1),Q=j=>{ue(j)},{isAiCfoAccessEnabled:de,onAskAiCfoClick:pe}=it({mobileExploreReferrer:"Treasury"});ct({isDataReady:l==="Completed"});const{useFeatureGate:$}=ie(),{isFeatureEnabled:me}=$(v.isDebitCardFeatureEnabled),{isFeatureEnabled:fe}=$(v.isAutoTransferRuleEnabled),{isFeatureEnabled:ye}=$(v.isTreasuryCommentingEnabled),ge=Ee(s),he=ve(me,s);if(ge===!0&&he!==!0)return e.jsx(lt,{});if(T){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(st,{onClose:C,anchor:"right",open:a||t,transitionDuration:250,PaperProps:{style:{width:yt.overlayWidth.valuePercentage(r),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:m.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsxs(wt,{onClick:Se=>Se.stopPropagation(),children:[t===!0?e.jsx(mt,{isFirstTransfer:u.transactions.length===0||g===0}):null,a===!0?e.jsx(dt,{}):null]})}),e.jsxs(ft,{windowSize:r,children:[e.jsx(ce,{isAppContentDrawerOpen:le,handleDrawerToggle:Q}),e.jsx(gt,{treasuryDetailsView:u,isAutoTransferRuleEnabled:fe,navigate:o,currentTenant:s,location:n,companyId:i,analytics:b,isTreasuryCommentingEnabled:ye,handleDrawerToggle:Q,isLoading:j,isAiCfoAccessEnabled:de,onAskAiCfoClick:pe})]})]})}return w&&x?e.jsx(L,{to:"../setup"}):s.companyTreasuryInfo?.info&&!w&&F?e.jsx(L,{to:"../promo",state:n.state}):e.jsx(Qe,{fetchState:"In-Progress",style:{backgroundColor:m.colors.grey5}})}const ht=t=>`/${t}/treasury/edit-portfolio`,St=t=>`/${t}/treasury/statements`,xt=t=>`/${t}/treasury/tax-letter`,Tt=t=>`/${t}/treasury/setup`,wt=P(rt)`
|
|
10
10
|
display: flex;
|
|
11
11
|
min-height: 100%;
|
|
12
12
|
flex-direction: column;
|
|
13
|
-
`,
|
|
13
|
+
`,It=P.div`
|
|
14
14
|
display: flex;
|
|
15
15
|
height: 100vh;
|
|
16
16
|
width: 100%;
|
|
@@ -18,7 +18,7 @@ import{j as e}from"./liveblocks-yYJhhlwl.js";import{j as B,u as M,h as U,l as N,
|
|
|
18
18
|
flex-direction: column;
|
|
19
19
|
align-items: center;
|
|
20
20
|
background-color: ${t=>t.theme.colors.grey4};
|
|
21
|
-
`;function
|
|
21
|
+
`;function Ct(){const t=B(),a=U(),n=q(),o=M(),p=`${K.bankingMicroServiceBaseUrl}/1.0/treasury-account`,[r,m]=d.useState(!1),s=f(l=>Fe(l));d.useEffect(()=>{r||s.fetchState!=="Not-Started"||(m(!0),a(Le(!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(It,{windowSize:n,children:e.jsx(et,{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 kt=P.div`
|
|
22
22
|
display: flex;
|
|
23
23
|
height: 100vh;
|
|
24
24
|
width: 100%;
|
|
@@ -26,7 +26,7 @@ import{j as e}from"./liveblocks-yYJhhlwl.js";import{j as B,u as M,h as U,l as N,
|
|
|
26
26
|
flex-direction: column;
|
|
27
27
|
align-items: center;
|
|
28
28
|
background-color: ${t=>t.theme.colors.grey4};
|
|
29
|
-
`;function
|
|
29
|
+
`;function bt(){const t=B(),a=q(),n=M(),o=U(),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),o(Me(!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(kt,{windowSize:a,children:e.jsx(tt,{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 jt=V(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(Ue(o))},onBackClick:()=>{n("../..",{relative:"path"})},onTreasurySetupSuccess:p=>{n(p?"..":"../setup",{relative:"path"})}}})(at),At=()=>{const t=B(),a=M(),n=U(),{tenantEmailDomain:o}=N(),[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=O(g?.loggedInUserRoleMap),T=Z(g?.loggedInUserRoleMap);if(u&&h)return e.jsx(L,{to:"../../treasury/setup"});if(m.company?.companyTreasuryInfo&&(!u&&h||T)){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=>(w=>w.trackTreasuryPromoView("Treasury Promo Page"))(S)}),e.jsx(ce,{isAppContentDrawerOpen:p,handleDrawerToggle:l}),e.jsx(jt,{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-yYJhhlwl.js";import{j as B,u as M,h as U,l as N,
|
|
|
34
34
|
justify-content: center;
|
|
35
35
|
align-items: center;
|
|
36
36
|
background-color: ${t=>t.theme.colors.grey5};
|
|
37
|
-
`;function Xt(){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&&Re(a?.userRole),c=(a?.company==null||a.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!s)&&Pe(r?.loggedInUserRoleMap),i=Ne(r?.loggedInUserRoleMap),y=(a?.company==null||a.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!s)&&Ve(r?.loggedInUserRoleMap),{isFeatureEnabled:
|
|
37
|
+
`;function Xt(){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&&Re(a?.userRole),c=(a?.company==null||a.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!s)&&Pe(r?.loggedInUserRoleMap),i=Ne(r?.loggedInUserRoleMap),y=(a?.company==null||a.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!s)&&Ve(r?.loggedInUserRoleMap),{isFeatureEnabled:I}=n(v.isDepositAccountsFeatureEnabled),u=I&&!s&&Oe(r?.loggedInUserRoleMap),l=a.company!=null&&ze(a.company),g=o&&l===!0&&!s&&O(r?.loggedInUserRoleMap),{isFeatureEnabled:h}=n(v.isChargeCardFeatureEnabled),{isFeatureEnabled:T}=n(v.isDebitCardFeatureEnabled),S=nt(a,h,T)&&!s&&_e(r?.loggedInUserRoleMap),w=$e(r?.loggedInUserRoleMap),x=Ge(r?.loggedInUserRoleMap),F=a.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified";return e.jsxs(xe,{children:[x?null:e.jsx(k,{path:"setup",element:e.jsx(Y,{isBillPayAdminLevelAccess:c,isReimbursementAdminLevelAccess:y,isZeniAccountAdminLevelAccess:u,isChargeCardAdminLevelAccess:S,isTreasuryAdminLevelAccess:g,isUserHasOnlyCardAccess:w,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:w,productType:"zeni_treasury",type:"verification"})}),e.jsx(k,{path:"promo",element:e.jsx(At,{})}),e.jsx(k,{path:"statements",element:e.jsx(Ct,{})}),e.jsx(k,{path:"tax-letter",element:e.jsx(bt,{})}),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(ot,{})})]}):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{Xt as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as l}from"./liveblocks-
|
|
1
|
+
import{j as l}from"./liveblocks-DytGFyho.js";import{a as g}from"./sentry-YlBgF13X.js";import{j as M,u as Y,l as O,g as S,k as G,h as z,n as at,o as B,N as $}from"./core-BRYqCMzm.js";import{eN as L,Jg as Ee,Jh as Re,fO as X,cq as be,cr as Ie,uM as St,Ji as nt,uQ as zt,Hu as ee,jq as te,uK as Yt,uE as qt,Jj as Ue,uw as Ht,uv as Wt,up as Qt,uB as Zt,uR as Xt,Jk as he,Jl as Ne,ux as ea,Jm as pe,eY as ft,v4 as gt,uZ as vt,Jn as xt,nT as Tt,uU as yt,uS as Dt,Jo as Ct,vb as Et,v8 as bt,uV as It,va as Me,FW as kt,Jp as ta,Jq as aa,ct as na,Jr as sa,Js as oa,Jt as me,Ju as ie,Jv as ke,Hv as Ge,vq as ye,Ht as De,vd as wt,uN as $e,Jw as la,Hw as H,Jx as Ke,uH as ia,Jy as ca,Jz as da,JA as ze,JB as Ye,JC as qe,JD as He,vk as we,JE as At,v1 as jt,JF as ra,JG as ua,JH as ha,JI as pa,JJ as ma,JK as Sa,JL as fa,JM as ga,sh as va,si as xa,GA as je,JN as Ta,JO as ya,iP as Fe,bq as Da,JP as Ca,JQ as Ea,ko as ba,kx as Ia,Gz as Pe,bC as st,JR as Ft,Gf as Pt,JS as ka,JT as wa,JU as Aa,kz as ja,JV as ot,JW as lt,JX as it,JY as ct,JZ as Fa,kv as Pa,J_ as _a,ky as Va,J$ as La,K0 as _t,GW as Vt,jO as Ba,K1 as Ja,K2 as _e,K3 as Lt,GU as Bt,xD as Oa,K4 as Ra,K5 as Ua,k6 as Jt,K6 as Na,K7 as Ma,H6 as Ga,pZ as $a,K8 as Ot,K9 as dt,H3 as Ve,Ka as rt,Kb as Ka,H8 as za,Kc as Ya,Kd as qa,Ke as Ha,Kf as Wa,Kg as Qa,q0 as Za,Kh as Xa,Hx as en,Ki as tn,GN as Le,gx as an,Kj as nn,Kk as sn,gv as on,Kl as ln,Km as cn,xH as dn,Kn as rn,Ko as un,Kp as hn,Kq as pn,jS as mn,bn as Sn,eT as fn,eR as gn}from"./zeni-epic-state-B6DxGTeH.js";import{z as R,am as Be,B as Rt,A as Q,d as j,Q as Z,as as vn,s as N,D as Ce,v as ce,at as We,au as xn,av as Tn,n as Qe,aw as yn,h as Dn,q as de,F as Ze,a as ae,p as K,ax as Cn,k as Xe,ay as En,az as Ut,M as bn,aA as In,j as kn,aB as wn,ap as Nt,aC as An,o as W,S as jn,G as Mt,H as Fn,aD as Pn,aE as _n,f as et,aF as Vn,aG as Ln,w as Bn,aH as Jn,aI as On}from"./index-akX3Nhym.js";import{n as U,D as Rn,S as Gt}from"./mui-dDGLzwM4.js";import{t as Un,A as Nn}from"./AddressScreen-CWDdv_BQ.js";import le from"./NotFoundScreen-DYSe2Mdv.js";import{F as Mn}from"./FeaturePreviewScreen-yO9VvlJP.js";import{b as q,v as tt,c as Gn}from"./routePaths-CXvFM1Km.js";import{p as $t}from"./pathToGoBack-mVeUADM1.js";import{u as Se}from"./useAskAiCfoHostNavButtonProps-Drf4spg5.js";import{c as fe}from"./useFetchSuggestedQuestionsWhenReady-vaYDsXnK.js";import{M as ge}from"./MobileAppDrawer-Cbtsb69z.js";import{D as $n}from"./DrawerScreen-Bgl100Ik.js";import{g as Kn,m as zn}from"./accountMappingHelper-DA7klO76.js";import"./recharts-C7zYvbyW.js";import"./analytics-DMHo1eqB.js";import"./plaid-QQ6p_f2h.js";import"./dnd-BUhKHo0J.js";import"./stripe-DMRn4zHo.js";import"./lottie-DUnNV-G9.js";import"./lexical-8E0BhRCX.js";import"./pdf-DJGD_VAN.js";import"./utils-B6J0lORC.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]="682a4a70-496e-4263-84a9-91b76aa1f989",e._sentryDebugIdIdentifier="sentry-dbid-682a4a70-496e-4263-84a9-91b76aa1f989")}catch{}})();const Yn=Ce.getLocalizedStrings(),qn=G(function(e,a){const s=Re(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(nt({selectedTransaction:n}))},onBackClick:()=>{s("..",{relative:"path"})},onCancel(){e(nt({selectedTransaction:void 0})),e(zt()),s("..",{relative:"path"})},onTransactionClick:n=>{const o=`${q(n,a.tenantEmailDomain)}`,c=N(t.state?.pathnameStackToGoBack,t.pathname);s(o,{state:{pathnameStackToGoBack:c}})},onLinkSave(){a.setShouldNavigateBack(!1),e(St(a.scheduleTab,a.scheduleAccruedDetailsView.selectedJEAccruedSchedule?.jeScheduleId))}}})(vn),Hn=({setShouldNavigateBack:e})=>{const a=M(),s=Y(),{scheduleDetailId:t,tenantEmailDomain:n}=O(),{scheduleType:o}=O();if(n==null)throw Error("Can't access Link Bill Expense page without tenant Email Domain");const c=S(f=>L(f)),r=Ee(o)??"accrued_expenses",h=R.getSignedInUser();if(h==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=>Re(f,r)),m=i.selectedJELinkRowIndex,d=S(f=>X(f,c.companyId)),u=Be(i.updateStatus.fetchState);g.useEffect(()=>{u==="In-Progress"&&i.updateStatus.fetchState==="Completed"&&a("..",{relative:"path"})},[u,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 p=i.linkBillExpenseView.fetchState==="Completed";return l.jsx(l.Fragment,{children:i.linkBillExpenseView.fetchState==="In-Progress"?l.jsx(Rt,{fetchState:i.linkBillExpenseView.fetchState}):i.selectedJEAccruedSchedule!=null&&m!=null?l.jsxs(l.Fragment,{children:[p===!0?l.jsx(Q,{analytics:j,onLoad:()=>{Wn(i,r,d)}}):null,l.jsx(qn,{signedInUser:h,attachmentEndPoint:`${Z}/vendor_attachments`,setShouldNavigateBack:e,scheduleVendorId:i.selectedJEAccruedSchedule.vendor.id??"",location:s,tenantEmailDomain:n,scheduleAccruedDetailsView:i,saveFetchState:i.updateStatus.fetchState,scheduleTab:r,navigate:a,analytics:j,controllerUserDetails:d,saveStatus:i.updateStatus.fetchState,jeAccruedSchedule:i.selectedJEAccruedSchedule,localData:i.scheduleAccruedDetailsLocalData.jeScheduleDetails[m]})]}):null})},Kt=e=>{const a=Yn.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}},Wn=(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,r=c.some(m=>m.isRecommendedTransaction===!0),h=be(s.controllers),i=Ie(s.controllerUserIds);t!=null&&j.trackScheduleAccruedDetailsJournalEntryLinkedLoaded({scheduleType:a,schedule:{...Kt(t)},scheduleExpenseCategoryAndClass:{expenseCategory:t.jeDebit.account?.accountName??null,expenseClass:t.jeDebit.accountingClass?.className??null},journalEntryDetails:{wasRecommendationAvailable:r,journalEntryPostingStatus:o?.status.label??""},vendorName:t.vendor.name??null,controllerEmails:h,controllerUserIds:i})},Qn=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-DytGFyho.js";import{a as l}from"./sentry-YlBgF13X.js";import{q as u,h,g as y,N as I}from"./core-BRYqCMzm.js";import{ID as b,eO as w,yY as x}from"./zeni-epic-state-B6DxGTeH.js";import{z as f,B as j,G as S,H as D}from"./index-akX3Nhym.js";import{n as g}from"./mui-dDGLzwM4.js";import"./recharts-C7zYvbyW.js";import"./analytics-DMHo1eqB.js";import"./plaid-QQ6p_f2h.js";import"./dnd-BUhKHo0J.js";import"./stripe-DMRn4zHo.js";import"./lottie-DUnNV-G9.js";import"./lexical-8E0BhRCX.js";import"./pdf-DJGD_VAN.js";import"./utils-B6J0lORC.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]="4e56993a-0d07-4538-bda7-72152b525e1e",e._sentryDebugIdIdentifier="sentry-dbid-4e56993a-0d07-4538-bda7-72152b525e1e")}catch{}})();const R=()=>{const[e]=u(),t=e.get("code")??"",s=e.get("state")??"",p=e.get("profileId")??"",[n,m]=l.useState(!1),a=h(),i=y(c=>b(c)),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 w(r.userId,r.zeniSessionId,d?.tenantId),l.useEffect(()=>{n||(m(!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-DytGFyho.js";import{j as Y,u as J,h as z,l as Z,g as w,k as Q,N as ne,n as _e,o as k}from"./core-BRYqCMzm.js";import{eN as M,Nq as Ce,Nr as Ve,cj as te,ck as $e,fa as Ze,w9 as ke,Am as Ge,w3 as Tn,Ns as Bn,Nt as Fn,w6 as On,wd as fe,w0 as Rn,vZ as Ln,Md as le,Nu as Un,DG as zn,Jj as Mn,DI as Nn,k7 as Be,Nv as _n,pE as He,ps as We,j_ as Ye,k1 as Fe,Jk as Oe,Jl as Vn,Nw as $n,k0 as Zn,kn as Gn,jR as Hn,io as Wn,im as Yn,Nx as Jn,Ny as ye,Dn as Qn,Nz as qn,NA as Xn,M6 as we,NB as Re,NC as Kn,DT as et,MQ as nt,Bg as Je,s5 as Qe,ND as tt,DQ as at,NE as qe,cL as De,DX as Xe,fb as ot,eR as Ke,eT as Ae,DV as st,Ba as rt,DN as it,NF as en,NG as nn,Dp as tn,Dz as Le,NH as ct,Dt as lt,NI as dt,MF as ut,DY as pt,bv as mt,bD as ht,cv as gt,bE as ft,bs as yt,Ik as xt}from"./zeni-epic-state-B6DxGTeH.js";import{j as ae,a as V,z as A,p as B,h as N,B as de,bP as Ct,Q as Ie,q as _,F as q,n as an,am as kt,ab as Ue,d as R,bQ as wt,ap as Se,bR as Dt,A as ue,bS as At,f as be,aJ as W,bT as It,M as St,a8 as bt,bU as ze,bV as vt,s as ee,bW as Et,bX as jt,bY as Pt,bZ as Tt,a5 as Bt,o as Ft}from"./index-akX3Nhym.js";import{n as L,D as X,S as K}from"./mui-dDGLzwM4.js";import ce from"./NotFoundScreen-DYSe2Mdv.js";import{S as Me}from"./SetupPagesScreen-D764pnzM.js";import{F as on}from"./FeaturePreviewScreen-yO9VvlJP.js";import{a as u}from"./sentry-YlBgF13X.js";import{M as pe}from"./MobileAppDrawer-Cbtsb69z.js";import{A as Ot,D as Rt,V as Lt}from"./DomesticWireDetailScreen-gt-Ai-WD.js";import{A as Ut}from"./AddressScreen-CWDdv_BQ.js";import{u as sn}from"./useAskAiCfoHostNavButtonProps-Drf4spg5.js";import{c as rn}from"./useFetchSuggestedQuestionsWhenReady-vaYDsXnK.js";import{Z as zt}from"./ZeniAccountStatementScreen-nOgDprhF.js";import"./recharts-C7zYvbyW.js";import"./analytics-DMHo1eqB.js";import"./plaid-QQ6p_f2h.js";import"./dnd-BUhKHo0J.js";import"./stripe-DMRn4zHo.js";import"./lottie-DUnNV-G9.js";import"./lexical-8E0BhRCX.js";import"./pdf-DJGD_VAN.js";import"./utils-B6J0lORC.js";import"./analyticsHelper-BojuPNuT.js";import"./routePaths-CXvFM1Km.js";import"./BusinessVerificationPageScreen-d-70pMRn.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]="dea46f38-7999-45b7-9aa8-b7df1a1b75c6",e._sentryDebugIdIdentifier="sentry-dbid-dea46f38-7999-45b7-9aa8-b7df1a1b75c6")}catch{}})();const Mt=L.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
width: 100%;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{j as i}from"./liveblocks-DytGFyho.js";import{a as u}from"./sentry-YlBgF13X.js";import{j as x,h as B,u as C,l as N,g as p}from"./core-BRYqCMzm.js";import{HD as s,HC as $,NJ as j,eN as v,NK as D}from"./zeni-epic-state-B6DxGTeH.js";import{q as T,ap as g,h as z,z as E,B as L,b_ as P,n as _}from"./index-akX3Nhym.js";import{n as U}from"./mui-dDGLzwM4.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]="cefabf18-95a5-4635-9e0c-509a534051f7",e._sentryDebugIdIdentifier="sentry-dbid-cefabf18-95a5-4635-9e0c-509a534051f7")}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(),l=C();let{accountId:a}=N(),f=`${g.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${a}`;a==null&&l.pathname.includes(`${s}/statements`)&&(a=s,f=`${g.bankingMicroServiceBaseUrl}/1.0/${s}`);const[m,h]=u.useState(!1),y=z();u.useEffect(()=>{m||(h(!0),n($(a??"",!1)))},[m,n]);const o=p(t=>j(t,a??"")),b=()=>{const t=_(l.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:y.colors.grey5}}):i.jsx(G,{windowSize:d,children:i.jsx(P,{currentTenantCompanyName:k,statementListView:o,accountLast4:w,onBackClick:b,authParams:I,downloadEndPoint:f})})}export{V as Z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./sentry-
|
|
1
|
+
import"./sentry-YlBgF13X.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};
|