@zeniai/web-app-ui 5.3.97-qa → 5.3.98-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{AccountMappingScreen-DxrKnMkl.js → AccountMappingScreen-DkipdeBd.js} +2 -2
- package/dist/assets/{ActualMatchingMatchDetailScreen-CodGAKPu.js → ActualMatchingMatchDetailScreen-Yq3IhSD1.js} +1 -1
- package/dist/assets/AddressRoutes-C6aHDBRx.js +1 -0
- package/dist/assets/{AddressScreen-q3nFxHFP.js → AddressScreen-SveIGGcZ.js} +2 -2
- package/dist/assets/AiCfoScreen-C0a5Kz2R.js +22 -0
- package/dist/assets/{AppDrawer-BXzWbBIt.js → AppDrawer-iCXzB-Zx.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-DtcZLMsr.js → BillPayApprovalRoutes-CO68g4sl.js} +1 -1
- package/dist/assets/{BillPayRoutes-C8-AmeBu.js → BillPayRoutes-9Bp55PZY.js} +1 -1
- package/dist/assets/{BusinessVerificationPageScreen-9R5vbQZ8.js → BusinessVerificationPageScreen-BEKu1sS6.js} +2 -2
- package/dist/assets/{CardsAiCfoScreen-BfR07uU0.js → CardsAiCfoScreen-Do3B6xOK.js} +2 -2
- package/dist/assets/{ChargeCardRoutes-BwwTTYYF.js → ChargeCardRoutes-TfS6URYe.js} +1 -1
- package/dist/assets/{CompanyPassportScreen-BizAOIhq.js → CompanyPassportScreen-CzgRbofg.js} +1 -1
- package/dist/assets/{ConnectionAuthScreen-DjuNIXVs.js → ConnectionAuthScreen-BwEBh9bB.js} +1 -1
- package/dist/assets/CustomerOnboardingAuthScreen-DxbrkI4o.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-Cf8dsn0O.js → CustomerOnboardingRoutes-B6z9gODa.js} +3 -3
- package/dist/assets/{DashboardRoutes-DGNDxYyw.js → DashboardRoutes-DvqewcQi.js} +3 -3
- package/dist/assets/{DefaultTenantHome-DrDpxOmD.js → DefaultTenantHome-DHj0LZf2.js} +1 -1
- package/dist/assets/{DomesticWireDetailScreen-TqZMGyrb.js → DomesticWireDetailScreen-NsnrfBbI.js} +1 -1
- package/dist/assets/{DrawerScreen-Fc8tbnxd.js → DrawerScreen-C-sU_EBz.js} +1 -1
- package/dist/assets/{EntityDetailRoutes-DWEUPulx.js → EntityDetailRoutes-Cd9AUwPz.js} +1 -1
- package/dist/assets/{ExpenseAutomationRoutes-D1T5FvN4.js → ExpenseAutomationRoutes-B-LCmWX6.js} +1 -1
- package/dist/assets/{FeaturePreviewScreen-BcVU7ZtT.js → FeaturePreviewScreen-DHsaAADF.js} +1 -1
- package/dist/assets/{HubSpotOAuthCallbackScreen-Dxoa9DcK.js → HubSpotOAuthCallbackScreen-CqtvTlMw.js} +1 -1
- package/dist/assets/{InboxNotificationsProvider-gQ2KeLtK.js → InboxNotificationsProvider-BbgapV9e.js} +1 -1
- package/dist/assets/{InvoicingRoutes-DXFzYhNc.js → InvoicingRoutes-CteMwomX.js} +1 -1
- package/dist/assets/{MagicLinkRoutes-Bs96ekKt.js → MagicLinkRoutes-CjOGoDmF.js} +1 -1
- package/dist/assets/MagicLinkSignInScreen-Csaci2Yg.js +12 -0
- package/dist/assets/{MobileAppDrawer-MXY4A9X3.js → MobileAppDrawer-Dzg3ZYKF.js} +1 -1
- package/dist/assets/NotFoundScreen-CSyRIHbc.js +1 -0
- package/dist/assets/{NotificationRoutes-CyhP2qOE.js → NotificationRoutes-zC1-rHQB.js} +1 -1
- package/dist/assets/{OAuthConsentScreen-BpMkBie-.js → OAuthConsentScreen-BGX1agKv.js} +1 -1
- package/dist/assets/{PandLWithForecastRoutes-CeXXCqw9.js → PandLWithForecastRoutes-CITu_u8l.js} +1 -1
- package/dist/assets/{PaymentLinkScreen-Rh-qP1VS.js → PaymentLinkScreen-_UAo_fsM.js} +1 -1
- package/dist/assets/PeopleRoutes-B9Skn948.js +22 -0
- package/dist/assets/{PerformanceRoutes-BE02IjeX.js → PerformanceRoutes-Bw19vP5H.js} +1 -1
- package/dist/assets/{Preview-Dj0lMZ5V.js → Preview-CuBMxPUC.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-CuPetnh4.js → QBOConnectionScreen-DHNNL8-f.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRoutes-BozZC_XX.js → ReimbursementApprovalRoutes-BgKx8N_6.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-C0z81Sf9.js → ReimbursementApprovalRuleDetailScreen-C-jZxtX5.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-CBR--_B7.js → ReimbursementRoutes-1GgOF6-S.js} +1 -1
- package/dist/assets/{ReportsRoutes-BHSxyBsl.js → ReportsRoutes-DDrHQIpT.js} +1 -1
- package/dist/assets/{RewardsRoutes-COwrehJ3.js → RewardsRoutes-BDo_jXck.js} +1 -1
- package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-CJtX_AiW.js → ScheduleDetailsPrepaidExpensesScreen-Co9SdTEQ.js} +1 -1
- package/dist/assets/{ScreenRoutes-BgFb5M9H.js → ScreenRoutes-5TQ3QdBJ.js} +2 -2
- package/dist/assets/{SettingsRoutes-D-ZzKh8t.js → SettingsRoutes--Mb2rkVX.js} +6 -6
- package/dist/assets/{SetupPagesScreen-DGgwInnv.js → SetupPagesScreen-E1ySiMh3.js} +1 -1
- package/dist/assets/SignInScreen-cOdJloLh.js +1 -0
- package/dist/assets/SignOutScreen-D3furmi9.js +9 -0
- package/dist/assets/{TaskListScreen-zsEEBzdH.js → TaskListScreen-DgOpvPPF.js} +2 -2
- package/dist/assets/{TaskRoutes-B_-k7wer.js → TaskRoutes-BPBfVKWi.js} +2 -2
- package/dist/assets/TransactionDetailRoutes-BdBwnPUo.js +1 -0
- package/dist/assets/{TransactionDetailScreen-BRHqZrpP.js → TransactionDetailScreen-CEmYD0Tg.js} +1 -1
- package/dist/assets/{TransactionListRoutes-B2eJwmv_.js → TransactionListRoutes-BzcrVUiM.js} +1 -1
- package/dist/assets/{TreasuryRoutes-W_mwfgVK.js → TreasuryRoutes-Dpl0kdhr.js} +1 -1
- package/dist/assets/{VendorsRoutes-DWD4vj32.js → VendorsRoutes-Bc6Bj7xz.js} +1 -1
- package/dist/assets/{WiseConfirmationScreen-aPx2naDm.js → WiseConfirmationScreen-iFg0baoI.js} +1 -1
- package/dist/assets/{ZeniAccountRoutes-JG16yA2R.js → ZeniAccountRoutes-BJVsLkSB.js} +9 -9
- package/dist/assets/{ZeniAccountStatementScreen-C-zlUtgQ.js → ZeniAccountStatementScreen-zPoNSIDN.js} +1 -1
- package/dist/assets/{accountMappingHelper-CRiGShLo.js → accountMappingHelper-DTvekvpS.js} +1 -1
- package/dist/assets/{analytics-CLrR56me.js → analytics-DgsLc9VO.js} +1 -1
- package/dist/assets/{analyticsHelper-Cl7L_yzw.js → analyticsHelper-sTbcNkFd.js} +1 -1
- package/dist/assets/{core-B_8psrVh.js → core-wa4jvXau.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-un7FRYKm.js → decodeURIComponentSafe-CIevgEwa.js} +1 -1
- package/dist/assets/{dnd-COJs-jiU.js → dnd-Cbngon1O.js} +1 -1
- package/dist/assets/{empty-DFN4oIx1.js → empty-BLA-Ut17.js} +1 -1
- package/dist/assets/{empty-DB4dtDDO.js → empty-DGZZ0Isy.js} +1 -1
- package/dist/assets/{emptyVideoElement-CYxs5Nm0.js → emptyVideoElement-IpJePceg.js} +1 -1
- package/dist/assets/epic-DgP8mAwL.js +2 -0
- package/dist/assets/{expenseAutomationHelper-CEczmxxe.js → expenseAutomationHelper-B9h6s4MU.js} +1 -1
- package/dist/assets/{getLocaleForTenant-DOzOj2Tn.js → getLocaleForTenant-B2kDgrkF.js} +1 -1
- package/dist/assets/{index-CdB7dJlP.js → index-4Nv-4tI_.js} +1 -1
- package/dist/assets/{index-CR-jpWOI.js → index-8CGije3n.js} +2 -2
- package/dist/assets/{index-BnNhI4Iy.js → index-BGcr7M3t.js} +4767 -4767
- package/dist/assets/{index-DJ_U17WO.js → index-D4oD0Zwi.js} +1 -1
- package/dist/assets/{index-C71E3NVf.js → index-DSayiUiZ.js} +1 -1
- package/dist/assets/{index-aDiHaFHD.js → index-Dsfoke68.js} +1 -1
- package/dist/assets/{index-xEJcJrhM.js → index-S7x3Q8ir.js} +1 -1
- package/dist/assets/{index-BqngLx4o.js → index-h9Yx7xG4.js} +1 -1
- package/dist/assets/{lexical-BTHnpFWV.js → lexical-BhCVvQ5e.js} +1 -1
- package/dist/assets/{liveblocks-CyOgWRC6.js → liveblocks-S_bQ6bIM.js} +1 -1
- package/dist/assets/{lottie-DVVKKfjK.js → lottie-CMd-N9jH.js} +1 -1
- package/dist/assets/{mui-DTk68KR0.js → mui-Ci0HQ48M.js} +1 -1
- package/dist/assets/{pathToGoBack-DF9ZK-AX.js → pathToGoBack-BQ4U7b_1.js} +1 -1
- package/dist/assets/{pdf-dT80vapl.js → pdf-OHT1WZQx.js} +4 -4
- package/dist/assets/{pdf-lib-BzUxIYlB.js → pdf-lib-B91RK-F0.js} +1 -1
- package/dist/assets/{plaid-BdpSwByD.js → plaid-BWdXQkCk.js} +1 -1
- package/dist/assets/{pusher-B0AAwb-V.js → pusher-8A5uNu4P.js} +1 -1
- package/dist/assets/{react-BJjBF--R.js → react--GqNzBLX.js} +1 -1
- package/dist/assets/{react-D1LndoD7.js → react-B_sF0JCy.js} +1 -1
- package/dist/assets/{react-9kuOM18C.js → react-BxAOQlUv.js} +1 -1
- package/dist/assets/{react-byiCpBbU.js → react-CG53JZQx.js} +1 -1
- package/dist/assets/{react-BvcRfbFg.js → react-CbVqKv24.js} +1 -1
- package/dist/assets/{react-UNuuWbBp.js → react-DkS5-yyq.js} +1 -1
- package/dist/assets/{recharts-ilIJRqtT.js → recharts-Dwi7DT-C.js} +1 -1
- package/dist/assets/{routePaths-fvTdHFBp.js → routePaths-CEJABH0C.js} +1 -1
- package/dist/assets/{sentry-bLe4Ks4x.js → sentry-BU5jEr8h.js} +1 -1
- package/dist/assets/{stripSplatSuffix-D4g_XIPV.js → stripSplatSuffix-1d8c6YLM.js} +1 -1
- package/dist/assets/{url-Bsz9AqLL.js → url-BPQU9fEv.js} +1 -1
- package/dist/assets/{url-DMiTW08p.js → url-zU7Z4CO_.js} +1 -1
- package/dist/assets/{useActualMatchingMatchDetail-CblFc9nv.js → useActualMatchingMatchDetail-BF3bwUO7.js} +1 -1
- package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-8SU-uAdF.js → useAiCfoDashboardSuggestedQuestionsChips-Dut4uoVw.js} +1 -1
- package/dist/assets/{useAskAiCfoHostNavButtonProps-CVEOHjuw.js → useAskAiCfoHostNavButtonProps-CZ-JbWqQ.js} +1 -1
- package/dist/assets/{useChargeCardPusherEvents-DwhbJxHy.js → useChargeCardPusherEvents-BloaCcy0.js} +1 -1
- package/dist/assets/{useDeviceId-CBtYvC76.js → useDeviceId-D7PzfQ-u.js} +1 -1
- package/dist/assets/{useEmailConnectResultRefresh-DO7I_z5Z.js → useEmailConnectResultRefresh-BO75ukY9.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-DrgdLOiQ.js → useInitialThreadRequest-ZafvGlm9.js} +1 -1
- package/dist/assets/{useTaskManagerAccess-lCDDCyvM.js → useTaskManagerAccess-DpldujcE.js} +1 -1
- package/dist/assets/{useTaskManagerPusherEvents-CdQ2G0qW.js → useTaskManagerPusherEvents-CowYG4es.js} +1 -1
- package/dist/assets/{utils-Cq3ppm9U.js → utils-Zs4lusR-.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-Crk8L1Pd.js → withTransactionSidePanel-BPZ1XJCd.js} +1 -1
- package/dist/assets/{zeni-epic-state-CMXw0eqe.js → zeni-epic-state-lWD60tIp.js} +7 -7
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/AddressRoutes--c7K48FM.js +0 -1
- package/dist/assets/AiCfoScreen-B5ghGLrG.js +0 -22
- package/dist/assets/CustomerOnboardingAuthScreen-cKQIdCVv.js +0 -1
- package/dist/assets/MagicLinkSignInScreen-jbfjy68e.js +0 -12
- package/dist/assets/NotFoundScreen-Dah-SqM5.js +0 -1
- package/dist/assets/PeopleRoutes-U7gd2h8r.js +0 -22
- package/dist/assets/SignInScreen-B6PEo_xS.js +0 -1
- package/dist/assets/SignOutScreen-p3CXZ_pu.js +0 -9
- package/dist/assets/TransactionDetailRoutes-DASQR97q.js +0 -1
- package/dist/assets/epic-BzUd0Gf4.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e}from"./liveblocks-
|
|
1
|
+
import{j as e}from"./liveblocks-S_bQ6bIM.js";import{u as z,h as ne,g as G,i as W,j as k,l as ae,N as Q,n as Re,o as x}from"./core-wa4jvXau.js";import{$Y as Ue,LY as Fe,$Z as _e,fI as R,H9 as ze,$_ as wn,cv as ee,cw as $e,H3 as An,$$ as Dn,a00 as kn,H6 as In,Hd as me,H0 as Sn,GZ as Pn,Zv as ce,a01 as bn,Pw as vn,Xr as jn,Py as En,mM as Pe,a02 as Tn,v2 as Me,uS as Ve,mD as Ze,mG as be,Xs as ve,Xt as Bn,a03 as Ln,mF as On,n0 as Rn,mu as Un,kU as Fn,kT as _n,a04 as zn,a05 as ge,Pd as $n,a06 as Mn,a07 as Vn,ZL as fe,a08 as je,a09 as Zn,PJ as Hn,_6 as Nn,N4 as He,CA as Ne,a0a as Gn,PG as Wn,a0b as Ge,db as ye,PN as We,d$ as Ye,e0 as xe,PL as Yn,M_ as Xn,PD as qn,a0c as Xe,a0d as qe,Pf as Ke,Pp as Ee,a0e as Kn,ZZ as Jn,PO as Qn,bq as ea,bK as na,cH as aa,bL as ta,bu as oa,US as sa}from"./zeni-epic-state-lWD60tIp.js";import{V as te,q as Z,$ as V,z as b,at as Ce,a5 as le,cV as ra,_ as $,a9 as Y,a2 as Je,g as ia,n as Te,h as O,cW as ca,ac as we,cX as la,a6 as de,cY as da,M as Ae,bg as N,cZ as ua,ao as pa,aq as Qe,c_ as Be,c$ as ma,p as ie,d0 as ga,ag as ha,d1 as fa,d2 as ya,f as xa,E as Ca}from"./index-BGcr7M3t.js";import{u as U,n as F,D as X,S as q}from"./mui-Ci0HQ48M.js";import J from"./NotFoundScreen-CSyRIHbc.js";import{S as Le}from"./SetupPagesScreen-E1ySiMh3.js";import{F as en}from"./FeaturePreviewScreen-DHsaAADF.js";import{a as g}from"./sentry-BU5jEr8h.js";import{M as ue}from"./MobileAppDrawer-Dzg3ZYKF.js";import{A as wa,D as Aa,V as Da}from"./DomesticWireDetailScreen-NsnrfBbI.js";import{A as ka}from"./AddressScreen-SveIGGcZ.js";import{u as nn}from"./useAskAiCfoHostNavButtonProps-CZ-JbWqQ.js";import{Z as Ia}from"./ZeniAccountStatementScreen-zPoNSIDN.js";import"./recharts-Dwi7DT-C.js";import"./analytics-DgsLc9VO.js";import"./plaid-BWdXQkCk.js";import"./dnd-Cbngon1O.js";import"./stripe-cKAAJElX.js";import"./lottie-CMd-N9jH.js";import"./lexical-BhCVvQ5e.js";import"./pdf-OHT1WZQx.js";import"./utils-Zs4lusR-.js";import"./BusinessVerificationPageScreen-BEKu1sS6.js";import"./routePaths-CEJABH0C.js";import"./analyticsHelper-sTbcNkFd.js";import"./InboxNotificationsProvider-BbgapV9e.js";import"./useTaskManagerAccess-DpldujcE.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new n.Error().stack;a&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[a]="16d2c54e-c0e0-4a82-8bd2-b8e0296e8315",n._sentryDebugIdIdentifier="sentry-dbid-16d2c54e-c0e0-4a82-8bd2-b8e0296e8315")}catch{}})();const Sa=F.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
width: 100%;
|
|
@@ -6,15 +6,15 @@ import{j as e}from"./liveblocks-CyOgWRC6.js";import{u as z,h as ne,g as G,i as W
|
|
|
6
6
|
flex-direction: column;
|
|
7
7
|
align-items: center;
|
|
8
8
|
background-color: ${n=>n.theme.colors.grey4};
|
|
9
|
-
`;function Oe({isEditDrawerOpen:n}){const a=U(),[r,t]=g.useState(!1),{autoTransferRulePageProps:o,isLoading:i}=(function({isEditDrawerOpen:d=!1}={}){const c=z(),p=ne(),
|
|
9
|
+
`;function Oe({isEditDrawerOpen:n}){const a=U(),[r,t]=g.useState(!1),{autoTransferRulePageProps:o,isLoading:i}=(function({isEditDrawerOpen:d=!1}={}){const c=z(),p=ne(),h=G(),{ruleId:y,tenantEmailDomain:s}=W(),l=te(),{useFeatureGate:f}=Z(),m=k((u=>Ue(u))),P=k((u=>Fe(u.depositAccountState,u.depositAccountListState))),D=k((u=>_e(u))),A=k((u=>R(u))),{isFeatureEnabled:I}=f(V.isTreasuryEnabled),C=m?.fetchState??"Not-Started",w=A?.companyId??(s==null?void 0:b.getSignedInUserTenant(s)?.companyId);g.useEffect((()=>{C==="Not-Started"&&w!=null&&c(ze(!0))}),[c,C,w]);const E=m?.fetchState!=="Completed";if(E)return{autoTransferRulePageProps:void 0,isLoading:E};const T=A?.company!=null&&wn(A.company),v=!!(I&&T),j=ee(l?.loggedInUserRoleMap)||$e(l?.loggedInUserRoleMap),L=b.getSignedInUser(),S={userId:L?.userId??"",sessionId:L?.zeniSessionId??"",tenantId:A?.tenantId??""},B=!!h.state?.scrollToAddRule;return{isLoading:E,autoTransferRulePageProps:{autoTransferRuleView:m,companyName:A?.companyName??"",hasAdminLevelAccess:j,includeTreasuryOption:v,transferLimit:5e5,authParams:S,currentTenant:A,depositAccountListView:P,downloadAccountDetailEndPoint:`${Ce}/account_details`,editingRuleId:y,isEditDrawerOpen:d,scrollToAddRule:B,zeniAccountsConfigDetail:D,onBackClick:()=>p(".."),onCreateRule:()=>{c(Pn())},onUpdateRule:u=>{c(me(u))},onDeleteClick:u=>{c(Sn(u))},onPauseClick:u=>{c(me(u,!0,!1))},onResumeClick:u=>{c(me(u,!1,!0))},onActivityClick:(u,M)=>{c(In(u,M))},onUpdateRuleLocalData:u=>{c(kn(u))},clearRuleLocalData:()=>{c(Dn())},onEditClick:u=>{p(`./${u}/edit`)},onEditDrawerClose:()=>{p("../../",{relative:"path"})},onReviewClick:()=>{c(An())}}}})({isEditDrawerOpen:n});return i||o==null?e.jsx(le,{fetchState:"In-Progress",style:{backgroundColor:a.colors.grey5}}):e.jsxs(Sa,{children:[e.jsx(ue,{isAppContentDrawerOpen:r,handleDrawerToggle:d=>{t(d)}}),e.jsx(ra,{...o})]})}const Pa={overlayWidth:new Y(100,100,58)},ba=({vendorId:n,isDrawerOpen:a,closeDrawerHandler:r})=>{const t=z(),o=U(),i=$();if(b.getSignedInUser()==null)throw Error("Can't access ach account page without signing in...");return e.jsx(X,{onClose:()=>{r(!0),t(ce())},anchor:"right",open:a,PaperProps:{style:{width:Pa.overlayWidth.valuePercentage(i),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsx(va,{onClick:d=>d.stopPropagation(),children:e.jsx(wa,{vendorIdParam:n,accountContext:"express-pay"})})})},va=F(q)`
|
|
10
10
|
display: flex;
|
|
11
11
|
min-height: 100%;
|
|
12
12
|
flex-direction: column;
|
|
13
|
-
`,ja={overlayWidth:new Y(100,100,58)},Ea=({isDrawerOpen:n,closeDrawerHandler:a})=>{const r=z(),t=U(),o=$();if(b.getSignedInUser()==null)throw Error("Can't access address page without signing in...");return e.jsx(X,{onClose:()=>{a(!0),r(ce())},anchor:"right",open:n,PaperProps:{style:{width:ja.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:t.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsx(Ta,{onClick:i=>i.stopPropagation(),children:e.jsx(ka,{accountContext:"express-pay",addressTypeParam:"vendor_address"})})})},Ta=F(
|
|
13
|
+
`,ja={overlayWidth:new Y(100,100,58)},Ea=({isDrawerOpen:n,closeDrawerHandler:a})=>{const r=z(),t=U(),o=$();if(b.getSignedInUser()==null)throw Error("Can't access address page without signing in...");return e.jsx(X,{onClose:()=>{a(!0),r(ce())},anchor:"right",open:n,PaperProps:{style:{width:ja.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:t.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsx(Ta,{onClick:i=>i.stopPropagation(),children:e.jsx(ka,{accountContext:"express-pay",addressTypeParam:"vendor_address"})})})},Ta=F(q)`
|
|
14
14
|
display: flex;
|
|
15
15
|
min-height: 100%;
|
|
16
16
|
flex-direction: column;
|
|
17
|
-
`,Ba={overlayWidth:new Y(100,100,58)},La=({vendorId:n,isDrawerOpen:a,closeDrawerHandler:r})=>{const t=z(),o=U(),i=$();if(b.getSignedInUser()==null)throw Error("Can't access ach account page without signing in...");return e.jsx(X,{onClose:()=>{r(!0),t(ce())},anchor:"right",open:a,PaperProps:{style:{width:Ba.overlayWidth.valuePercentage(i),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsx(Oa,{onClick:d=>d.stopPropagation(),children:e.jsx(Aa,{vendorIdParam:n,accountContext:"express-pay"})})})},Oa=F(
|
|
17
|
+
`,Ba={overlayWidth:new Y(100,100,58)},La=({vendorId:n,isDrawerOpen:a,closeDrawerHandler:r})=>{const t=z(),o=U(),i=$();if(b.getSignedInUser()==null)throw Error("Can't access ach account page without signing in...");return e.jsx(X,{onClose:()=>{r(!0),t(ce())},anchor:"right",open:a,PaperProps:{style:{width:Ba.overlayWidth.valuePercentage(i),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsx(Oa,{onClick:d=>d.stopPropagation(),children:e.jsx(Aa,{vendorIdParam:n,accountContext:"express-pay"})})})},Oa=F(q)`
|
|
18
18
|
display: flex;
|
|
19
19
|
min-height: 100%;
|
|
20
20
|
flex-direction: column;
|
|
@@ -26,15 +26,15 @@ import{j as e}from"./liveblocks-CyOgWRC6.js";import{u as z,h as ne,g as G,i as W
|
|
|
26
26
|
flex-direction: column;
|
|
27
27
|
align-items: center;
|
|
28
28
|
background-color: ${n=>n.theme.colors.grey4};
|
|
29
|
-
`,Ua=ae((function(n,a){const r=R(n),t=b.getSignedInUser(),o=r.tenantId,i={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:o??""},d=a.expressPayDetails,c=n.entityAutoCompleteState.autoCompleteText.common,p=jn(n,"common");return{expressPayDetails:d,fileProps:{authParams:i,filesEndPoint:`${we.fileMicroServiceBaseUrl}`},vendorSearchAutoCompleteData:{autoCompleteText:c,entityAutoCompleteView:p},analytics:a.analytics}}),(function(n,a){const{navigate:r}=a;return{onSaveVendor:t=>{n(_n(t,void 0,void 0,!0))},saveVendorDetailLocalData:(t,o)=>{n(be({vendorId:o,localData:t}))},saveExpressPayLocalData:t=>{n(Fn({localData:t}))},onVendorSelected:t=>{t!=null&&n(Un(t,!1))},updateSelectedVendorForCreate:t=>{n(Rn(t))},initializeVendorAddress:()=>{n(On())},resetVendorSaveStatus:t=>{n(Ln({vendorId:t}))},vendorSearchAutoCompleteActions:{onAutoCompleteInputChange:(t,o)=>{t.trim().length>=2?n(Bn({searchString:t,entityType:o,searchOrigin:"common"})):t.trim().length===0&&n(ve("common"))},onCancelAutoComplete:()=>{n(ve("common"))}},chooseNewVendor:t=>{n(be({localData:{vendorName:t}}))},onClickAddAccount:t=>{t.method.toLowerCase().indexOf("ach")!==-1?r("./add-ach",{relative:"path"}):t.method.toLowerCase().indexOf("wire")!==-1&&t.method.toLowerCase().indexOf("domestic")!==-1&&r("./add-wire",{relative:"path"})},updateFilesEntity:t=>{n(Ze({files:t}))},onDeleteFile:t=>{n(Ve(t))},onEditFileName:(t,o)=>{n(Me(t,o.split(".")[0]))},onBackClick:t=>{t!=null&&n(Pe(t)),n(Pe()),n(Tn()),n(ce()),r("../",{relative:"path"})},onSchedulePayment:()=>{n(En())}}}))(ca);function se({isAddACHDrawerOpen:n,isAddWireDrawerOpen:a,isAddAddressDrawerOpen:r}){const t=ne(),o=G(),i=z(),[d,c]=g.useState(!1),{tenantEmailDomain:p}=W(),
|
|
29
|
+
`,Ua=ae((function(n,a){const r=R(n),t=b.getSignedInUser(),o=r.tenantId,i={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:o??""},d=a.expressPayDetails,c=n.entityAutoCompleteState.autoCompleteText.common,p=jn(n,"common");return{expressPayDetails:d,fileProps:{authParams:i,filesEndPoint:`${we.fileMicroServiceBaseUrl}`},vendorSearchAutoCompleteData:{autoCompleteText:c,entityAutoCompleteView:p},analytics:a.analytics}}),(function(n,a){const{navigate:r}=a;return{onSaveVendor:t=>{n(_n(t,void 0,void 0,!0))},saveVendorDetailLocalData:(t,o)=>{n(be({vendorId:o,localData:t}))},saveExpressPayLocalData:t=>{n(Fn({localData:t}))},onVendorSelected:t=>{t!=null&&n(Un(t,!1))},updateSelectedVendorForCreate:t=>{n(Rn(t))},initializeVendorAddress:()=>{n(On())},resetVendorSaveStatus:t=>{n(Ln({vendorId:t}))},vendorSearchAutoCompleteActions:{onAutoCompleteInputChange:(t,o)=>{t.trim().length>=2?n(Bn({searchString:t,entityType:o,searchOrigin:"common"})):t.trim().length===0&&n(ve("common"))},onCancelAutoComplete:()=>{n(ve("common"))}},chooseNewVendor:t=>{n(be({localData:{vendorName:t}}))},onClickAddAccount:t=>{t.method.toLowerCase().indexOf("ach")!==-1?r("./add-ach",{relative:"path"}):t.method.toLowerCase().indexOf("wire")!==-1&&t.method.toLowerCase().indexOf("domestic")!==-1&&r("./add-wire",{relative:"path"})},updateFilesEntity:t=>{n(Ze({files:t}))},onDeleteFile:t=>{n(Ve(t))},onEditFileName:(t,o)=>{n(Me(t,o.split(".")[0]))},onBackClick:t=>{t!=null&&n(Pe(t)),n(Pe()),n(Tn()),n(ce()),r("../",{relative:"path"})},onSchedulePayment:()=>{n(En())}}}))(ca);function se({isAddACHDrawerOpen:n,isAddWireDrawerOpen:a,isAddAddressDrawerOpen:r}){const t=ne(),o=G(),i=z(),[d,c]=g.useState(!1),{tenantEmailDomain:p}=W(),h=te(),y=k((u=>u.expressPayState.fetchState)),s=k((u=>R(u))),l=k((u=>bn(u))),f=l.expressPayLocalData?.vendorId,m=s.companyId??b.getSignedInUserTenant(p)?.companyId,[P,D]=g.useState(!1),[A,I]=g.useState(!1),[C,w]=g.useState(!1),E=Je(o.state?.pathnameStackToGoBack),{poppedPathname:T}=E,v=T?.split("/"),j=v?.[v.length-1];g.useEffect((()=>{n===!0?D(!0):(D(!1),document.body.style.overflow="auto")}),[n]),g.useEffect((()=>{a===!0?I(!0):(I(!1),document.body.style.overflow="auto")}),[a]),g.useEffect((()=>{r===!0?w(!0):(w(!1),document.body.style.overflow="auto")}),[r]),g.useEffect((()=>{y==="Not-Started"&&i(vn(!0,!0))}),[y,i]);const L=ia(l.vendorViewDetails.bankAccountCreationState?.fetchState);if(g.useEffect((()=>{L==="In-Progress"&&l.vendorViewDetails.bankAccountCreationState?.fetchState==="Completed"&&B()}),[L,l.vendorViewDetails.bankAccountCreationState?.fetchState]),b.getSignedInUser()==null)throw Error("Can't access express pay page without signing in...");const S=u=>{c(u)},B=()=>{D(!1),I(!1),t("../",{relative:"path"})};return e.jsxs(Ra,{children:[Te(o)?e.jsx(ue,{isAppContentDrawerOpen:d,handleDrawerToggle:S}):null,P===!0?e.jsx(ba,{vendorId:f,closeDrawerHandler:B,isDrawerOpen:P}):null,A===!0?e.jsx(La,{vendorId:f,closeDrawerHandler:B,isDrawerOpen:A}):null,C===!0?e.jsx(Ea,{closeDrawerHandler:B,isDrawerOpen:C}):null,e.jsx(Da,{vendorId:f,isExpressPayPage:!0}),e.jsx(Ua,{navigate:t,location:o,companyId:m,accountId:j,analytics:O,currentTenant:s,vendorId:f,roleMap:h?.loggedInUserRoleMap,isSettings:Te(o),expressPayDetails:l,onClickMenuIcon:()=>{S(!0)}})]})}const Fa={overlayWidth:new Y(100,100,58)},_a=({authParams:n,downloadAccountDetailEndPoint:a,isAccountInfoDrawerOpen:r,zeniBankAccountDetail:t,closeDrawerHandler:o})=>{const i=U(),d=$(),c=k((s=>_e(s))),p=k((s=>R(s)));if(b.getSignedInUser()==null)throw Error("Can't access Account detail page without signing in...");const h=()=>{o(!0)},y={depositAccount:t,onDismissClick:h,zeniAccountsConfigDetail:c,authParams:n,downloadAccountDetailEndPoint:a,currentTenant:p};return e.jsx(X,{anchor:"right",open:r,PaperProps:{style:{width:Fa.overlayWidth.valuePercentage(d),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>h(),children:e.jsx(za,{onClick:s=>s.stopPropagation(),children:e.jsx(la,{...y})})})},za=F(q)`
|
|
30
30
|
display: flex;
|
|
31
31
|
min-height: 100%;
|
|
32
32
|
flex-direction: column;
|
|
33
|
-
`,$a={overlayWidth:new Y(100,100,58)},an=({isCheckDepositDrawerOpen:n,closeDrawerHandler:a})=>{const r=U(),t=$(),o=z(),i=k((s=>R(s))),d=b.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
|
|
33
|
+
`,$a={overlayWidth:new Y(100,100,58)},an=({isCheckDepositDrawerOpen:n,closeDrawerHandler:a})=>{const r=U(),t=$(),o=z(),i=k((s=>R(s))),d=b.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 h=k((s=>zn(s))),y={analytics:O,checkDeposit:h,filesEndPoint:`${we.fileMicroServiceBaseUrl}`,authParams:p,onSaveChangesToLocalStore:s=>{o(Mn(s))},updateFilesEntity:s=>{o(Ze({files:s}))},onAnotherTransferClick:()=>{o(ge())},onDeleteFile:s=>{o(Ve(s))},onEditFileName:(s,l)=>{o(Me(s,l.split(".")[0]))},onCheckDpositClick:()=>{o($n())},onDismissClick:()=>{a(!0),o(ge())}};return e.jsxs(e.Fragment,{children:[e.jsx(de,{analytics:O,onLoad:s=>(l=>l.trackPageLoaded(Ae.Event.accountsDepositCheckFormViewed))(s)}),e.jsx(X,{anchor:"right",open:n,PaperProps:{style:{width:$a.overlayWidth.valuePercentage(t),boxShadow:"none",zIndex:8}},slotProps:{backdrop:{style:{backgroundColor:r.colors.black,opacity:.75,cursor:"pointer"}}},onClose:(s,l)=>(l==="backdropClick"||l==="escapeKeyDown")&&(a(!0),void o(ge())),children:e.jsx(Ma,{onClick:s=>s.stopPropagation(),children:e.jsx(da,{...y})})})]})},Ma=F(q)`
|
|
34
34
|
display: flex;
|
|
35
35
|
min-height: 100%;
|
|
36
36
|
flex-direction: column;
|
|
37
|
-
`,Va={overlayWidth:new Y(100,100,58)},Za=ae((function(n,a){const r=a.currentTenant?.companyId;return{plaidConnectionDetails:Nn(n,r,"zeni_accounts","external_account").plaidConnectionDetails,depositAccountListView:Fe(n.depositAccountState,n.depositAccountListState)}}),(function(n,a){return{onReviewClick:()=>n(Wn()),clearReviewTransferDetail:()=>n(Gn()),onFetchLinkTokenClick:r=>{n(Ne("external_account",r))},onEstablishConnectionClick:r=>{n(He(r,a.currentTenant?.companyId,"external_account",void 0,"link_external_account"))}}}))(ua),tn=({isTransferDrawerOpen:n,authParams:a,downloadAccountDetailEndPoint:r,closeDrawerHandler:t,zeniAccountsConfig:o})=>{const i=k((C=>Vn(C))),d=k((C=>R(C))),c=U(),p=$(),
|
|
37
|
+
`,Va={overlayWidth:new Y(100,100,58)},Za=ae((function(n,a){const r=a.currentTenant?.companyId;return{plaidConnectionDetails:Nn(n,r,"zeni_accounts","external_account").plaidConnectionDetails,depositAccountListView:Fe(n.depositAccountState,n.depositAccountListState)}}),(function(n,a){return{onReviewClick:()=>n(Wn()),clearReviewTransferDetail:()=>n(Gn()),onFetchLinkTokenClick:r=>{n(Ne("external_account",r))},onEstablishConnectionClick:r=>{n(He(r,a.currentTenant?.companyId,"external_account",void 0,"link_external_account"))}}}))(ua),tn=({isTransferDrawerOpen:n,authParams:a,downloadAccountDetailEndPoint:r,closeDrawerHandler:t,zeniAccountsConfig:o})=>{const i=k((C=>Vn(C))),d=k((C=>R(C))),c=U(),p=$(),h=z(),{accountId:y}=W(),[s,l]=g.useState("achTransfer"),[f,m]=g.useState(!1);if(b.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const{useDynamicConfig:P}=Z(),{configValue:D}=P(N.zeniAccountsConfig),A=fe(D),I=()=>{t(!0),h(je())};return g.useEffect((()=>{i.reviewTransferDetail.fetchState==="Completed"&&m(!0)}),[m,i.reviewTransferDetail.fetchState]),e.jsxs(e.Fragment,{children:[e.jsx(de,{analytics:O,onLoad:C=>(w=>w.trackPageLoaded(Ae.Event.zeniAccountsTransferFormViewed))(C)}),e.jsx(X,{onClose:()=>{(s==="achTransfer"&&f===!1||s==="achTransfer"&&f&&i.fetchState==="Completed")&&I()},anchor:"right",open:n,PaperProps:{style:{width:Va.overlayWidth.valuePercentage(p),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:c.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsx(Ha,{onClick:C=>C.stopPropagation(),children:e.jsx(Za,{analytics:O,transferDetails:i,authParams:a,downloadAccountDetailEndPoint:r,onTransferClick:()=>{O.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"&&o.zeniAccountsConfigDetail.depositProductConfig.depositProducts?.[0].range?.[1]!=null&&i.transferDetailLocalData.amount.amount>o.zeniAccountsConfigDetail.depositProductConfig.depositProducts[0].range[1]),h(Hn(y))},onDismissClick:I,onSaveChangesToLocalStore:C=>{h(Zn(C))},onAnotherTransferClick:()=>{m(!1),h(je())},currentTenant:d,zeniAccountsConfigDetail:o,currentDrawerContent:s,setCurrentDrawerContent:l,showReviewContent:f,setShowReviewContent:m,onBackClick:()=>{},maxInsuredAmount:A.maxInsuredAmount})})})]})},Ha=F(q)`
|
|
38
38
|
display: flex;
|
|
39
39
|
min-height: 100%;
|
|
40
40
|
flex-direction: column;
|
|
@@ -46,7 +46,7 @@ import{j as e}from"./liveblocks-CyOgWRC6.js";import{u as z,h as ne,g as G,i as W
|
|
|
46
46
|
flex-direction: column;
|
|
47
47
|
align-items: center;
|
|
48
48
|
background-color: ${n=>n.theme.colors.grey4};
|
|
49
|
-
`,Ga=ae((function(n,a){return{zeniAccountListView:Ge(n),isExpressPayEnabled:a.isExpressPayEnabled,analytics:a.analytics}}),(function(n,a){const{navigate:r,currentTenant:t,location:o,companyId:i,handleDrawerToggle:d,analytics:c,isBillPayEnabled:p,isDebitCardFeatureEnabled:
|
|
49
|
+
`,Ga=ae((function(n,a){return{zeniAccountListView:Ge(n),isExpressPayEnabled:a.isExpressPayEnabled,analytics:a.analytics}}),(function(n,a){const{navigate:r,currentTenant:t,location:o,companyId:i,handleDrawerToggle:d,analytics:c,isBillPayEnabled:p,isDebitCardFeatureEnabled:h}=a,{tenantEmailDomain:y}=t;return{onZeniAccountClick:(s,l)=>{c.trackAccountsListPageClicked("Accounts Row Item Click",l,"active");const f=Wa(y,s),m=ie(o.state?.pathnameStackToGoBack,o.pathname);r(f,{state:{pathnameStackToGoBack:m}})},onSettingsClick:()=>{c.trackAccountsListPageClicked("Settings Icon"),r("setup")},onReloadTransactions:()=>{n(We(!1))},handleMoveMoneyOptionSelection:(s,l)=>{let f="page-not-found";s==="sendMoney"&&(f=cn(y)),s==="payBill"?f=on(t,p,h):s==="transfer"?(f=sn(y),l!=null&&n(Xe(l))):s==="checkDeposit"&&(f=rn(y));const m=ie(o.state?.pathnameStackToGoBack,o.pathname);r(f,{state:{pathnameStackToGoBack:m}})},unlinkPaymentAccount:(s,l)=>{c.trackAccountsListPageClicked("Unlink Account",l),n(qn(s))},onFetchLinkTokenClick:(s,l)=>{n(Ne("external_account",s,l))},onUpdatePaymentAccountStatus:(s,l,f)=>{n(Xn(s,l,"zeni_accounts","external_account",f))},onEstablishConnectionClick:s=>{n(He(s,i,"external_account",void 0,"link_external_account"))},onCreateCheckingClick:s=>{n(Yn(s))},onClickMenuIcon:()=>{d(!0)},onAutoTransferClick:s=>{const l="./auto-transfer";s?r(l,{state:{...o.state,scrollToAddRule:!0}}):r(l)}}}))(ma);function he({isTransferDrawerOpen:n,isCheckDepositDrawerOpen:a}){const r=G(),t=ne(),o=z(),i=$(),{tenantEmailDomain:d}=W(),{useDynamicConfig:c,useFeatureGate:p}=Z(),h=U(),{configValue:y}=c(N.zeniAccountsConfig),{isFeatureEnabled:s}=p(V.isDebitCardFeatureEnabled),{isFeatureEnabled:l}=p(V.isAutoTransferRuleEnabled),f=fe(y),m=k((_=>R(_))),P=m.companyId??b.getSignedInUserTenant(d)?.companyId,{configValue:D}=c(N.expressPayConfig),A=D.is_enable_all_tenants===!0||D.tenant_ids!=null&&D.tenant_ids.includes(m.tenantId),[I,C]=g.useState(!1),[w,E]=g.useState(!1),[T,v]=g.useState(!1),[j,L]=g.useState(!1),S=k((_=>Ge(_))),B=S.fetchState,u=k((_=>Ue(_))),M=u?.fetchState??"Not-Started",pe=!!m.companyZeniAccountInfo?.info?.isZeniAccountEnabled,oe=te(),H=!!m.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted,K=ee(oe?.loggedInUserRoleMap),ln=ye(oe?.loggedInUserRoleMap),dn=!!m.companyBillPayInfo?.info?.isBillPayEnabled,De=b.getSignedInUser(),un={userId:De?.userId??"",sessionId:De?.zeniSessionId??"",tenantId:m.tenantId??""},pn=`${Ce}/account_details`,{areTenantIdsInSync:ke}=pa();g.useEffect((()=>{!I&&ke&&(C(!0),o(We(!1)))}),[I,o,B,ke]),g.useEffect((()=>{!w&&M==="Not-Started"&&P&&(E(!0),o(ze(!0)))}),[w,M,P,o]),g.useEffect((()=>{n!=null&&n===!0?v(!0):(v(!1),document.body.style.overflow="auto")}),[n]),g.useEffect((()=>{L(a!=null&&a===!0)}),[a]);const Ie=()=>{v(!1),t("..")},[mn,gn]=g.useState(!1),Se=_=>{gn(_)},{isAiCfoAccessEnabled:hn,onAskAiCfoClick:fn}=nn({mobileExploreReferrer:"Checking Accounts"});Qe({isDataReady:B==="Completed"});const yn=Ye(m),xn=xe(s,m);return yn===!0&&xn!==!0?e.jsx(en,{}):pe?e.jsxs(e.Fragment,{children:[S.fetchState==="Completed"&&T===!1&&j===!1?e.jsx(de,{analytics:O,onLoad:_=>(Cn=>{Cn.trackAccountsListPageViewed(S.depositAccountsSelectorView.depositAccounts.length,S.externalAccountsSelectorView.paymentAccounts.length,Be(S.summary?.totalBalance.available.amount??0),Be(S.summary?.totalInterest.available.amount??0),S.zeniAccountsConfig.zeniAccountsConfigDetail.annualPercentageYield)})(_)}):null,T===!0?e.jsx(tn,{closeDrawerHandler:Ie,isTransferDrawerOpen:T,zeniAccountsConfig:S.zeniAccountsConfig,authParams:un,downloadAccountDetailEndPoint:pn}):null,j===!0?e.jsx(an,{closeDrawerHandler:Ie,isCheckDepositDrawerOpen:j}):null,e.jsxs(Na,{windowSize:i,children:[e.jsx(ue,{isAppContentDrawerOpen:mn,handleDrawerToggle:Se}),e.jsx(Ga,{zeniBankListView:S,navigate:t,currentTenant:m,location:r,companyId:P,analytics:O,maxInsuredAmount:f.maxInsuredAmount,isExpressPayEnabled:A,isBillPayEnabled:dn,isDebitCardFeatureEnabled:s,isAutoTransferRuleEnabled:l,handleDrawerToggle:Se,isAiCfoAccessEnabled:hn,onAskAiCfoClick:fn})]})]}):H&&K?e.jsx(Q,{to:"../setup"}):m.companyZeniAccountInfo?.info&&!H&&ln?e.jsx(Q,{to:"../promo",state:r.state}):e.jsx(le,{fetchState:"In-Progress",style:{backgroundColor:h.colors.grey5}})}const on=(n,a,r)=>{const t=xe(r,n),{tenantEmailDomain:o}=n;return t===!0||a===!1?`/${o}/bills`:`/${o}/bill/new`},Wa=(n,a)=>`/${n}/checking/${a}`,sn=(n,a)=>a==null?`/${n}/checking/transfer`:`/${n}/checking/${a}/transfer`,rn=(n,a)=>a==null?`/${n}/checking/check-deposit`:`/${n}/checking/${a}/check-deposit`,cn=n=>`/${n}/checking/express-pay`,Ya=F.div`
|
|
50
50
|
display: flex;
|
|
51
51
|
width: 100%;
|
|
52
52
|
flex: 1 1 auto;
|
|
@@ -54,4 +54,4 @@ import{j as e}from"./liveblocks-CyOgWRC6.js";import{u as z,h as ne,g as G,i as W
|
|
|
54
54
|
align-items: center;
|
|
55
55
|
min-height: 100vh;
|
|
56
56
|
background-color: ${n=>n.theme.colors.grey4};
|
|
57
|
-
`,Xa=ae((function(n,a){const{currentTenant:r}=a,t=
|
|
57
|
+
`,Xa=ae((function(n,a){const{currentTenant:r}=a,t=qe(n,a.accountId),o=b.getSignedInUser(),i=n.tenantState.currentTenantId,d={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:i??""},c=t.accountDetail?.id??"";return{currentTenantCompanyName:r.companyName??"",authParams:d,downloadEndPoint:`${we.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${c}`,zeniAccountDetail:t,isExpressPayEnabled:a.isExpressPayEnabled,fetchState:t.fetchState}}),(function(n,a){const{navigate:r,currentTenant:t,location:o,accountId:i}=a,{tenantEmailDomain:d}=t;return{handleMoveMoneyOptionSelection:(c,p)=>{let h="page-not-found";c==="sendMoney"?h=cn(d):c==="payBill"?h=on(t,a.isBillPayEnabled,a.isDebitCardFeatureEnabled):c==="transfer"?(h=sn(d,i),p!=null&&n(Xe(p))):c==="checkDeposit"?(h=rn(d,i),p!=null&&n(Kn(p))):c==="accountStatement"&&(h=Ka(d,i));const y=ie(o.state?.pathnameStackToGoBack,o.pathname);r(h,{state:{pathnameStackToGoBack:y}})},onAccountDetailClick:()=>{const c=qa(d,i),p=ie(o.state?.pathnameStackToGoBack,o.pathname);r(c,{state:{pathnameStackToGoBack:p}})},onEditNameClick:c=>{n(Ee(i,"editName",c))},onReloadZeniAccountDetailPage:()=>{n(Ke(i,!1))},onCloseAccountClick:()=>{n(Ee(i,"closeAccount",""))},onBackClick:()=>{r("../",{relative:"path"})}}}))(ga);function re({isTransferDrawerOpen:n,isCheckDepositDrawerOpen:a,isAccountInfoDrawerOpen:r}){const t=G(),o=ne(),i=z(),d=$(),{tenantEmailDomain:c,accountId:p}=W(),{useDynamicConfig:h}=Z(),{useFeatureGate:y}=Z(),{isFeatureEnabled:s}=y(V.isDebitCardFeatureEnabled),l=k((K=>R(K))),{configValue:f}=h(N.expressPayConfig),m=f.is_enable_all_tenants===!0||f.tenant_ids!=null&&f.tenant_ids.includes(l.tenantId),P=!!l.companyBillPayInfo?.info?.isBillPayEnabled,D=b.getSignedInUser(),A=l.companyId??b.getSignedInUserTenant(c)?.companyId,I={userId:D?.userId??"",sessionId:D?.zeniSessionId??"",tenantId:l.tenantId??""},C=`${Ce}/account_details`,[w,E]=g.useState(!1),[T,v]=g.useState(!1),[j,L]=g.useState(!1),[S,B]=g.useState(!1),u=k((K=>qe(K,p??""))),M=u.fetchState,{isAiCfoAccessEnabled:pe,onAskAiCfoClick:oe}=nn({mobileExploreReferrer:"Checking Account Detail"});Qe({isDataReady:M==="Completed"}),g.useEffect((()=>{w||(i(Ke(p??"",!1)),E(!0))}),[w,i,M]),g.useEffect((()=>{B(r!=null&&r===!0)}),[r]),g.useEffect((()=>{n!=null&&n===!0?v(!0):(v(!1),document.body.style.overflow="auto")}),[n]),g.useEffect((()=>{L(a!=null&&a===!0)}),[a]);const H=()=>{B(!1),o("..")};return e.jsxs(e.Fragment,{children:[S===!0&&u.accountDetail!=null?e.jsx(_a,{authParams:I,downloadAccountDetailEndPoint:C,closeDrawerHandler:H,isAccountInfoDrawerOpen:S,zeniBankAccountDetail:u.accountDetail}):null,T===!0?e.jsx(tn,{closeDrawerHandler:H,isTransferDrawerOpen:T,zeniAccountsConfig:u.zeniAccountsConfig,authParams:I,downloadAccountDetailEndPoint:C}):null,j===!0?e.jsx(an,{closeDrawerHandler:H,isCheckDepositDrawerOpen:j}):null,e.jsx(Ya,{windowSize:d,children:e.jsx(Xa,{navigate:o,currentTenant:l,location:t,companyId:A,isDebitCardFeatureEnabled:s,accountId:p??"",isBillPayEnabled:P,isExpressPayEnabled:m,isAiCfoAccessEnabled:pe,onAskAiCfoClick:oe})})]})}const qa=(n,a)=>`/${n}/checking/${a}/account-info`,Ka=(n,a)=>`/${n}/checking/${a}/statements`,Ja=ae((function(n,a){const{companyId:r}=a;return{zeniAccountSetupView:Jn(n,r)}}),(function(n,a){const{navigate:r,companyId:t}=a;return{onSetupButtonClick:()=>{O.trackAccountsPromoPageClicked("Setup Accounts"),n(Qn(t))},onBackClick:()=>{r("../..",{relative:"path"})},onSetupZeniAccountSuccess:()=>{r("../setup",{relative:"path"})}}}))(ya),Qa=()=>{const n=ne(),a=G(),{tenantEmailDomain:r}=W(),{useDynamicConfig:t}=Z(),o=ha(),i=U(),[d,c]=g.useState(!1),[p,h]=g.useState(!1),y=k((w=>R(w))),{configValue:s}=t(N.zeniAccountsConfig),l=fe(s);g.useEffect((()=>{p===!1&&a.state?.message==="activation"&&h(!0)}),[a.state]);const f=b.getSignedInUserTenant(r)?.companyId??y.companyId,m=b.getSignedInUser(),P=!!y.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted,D=w=>{c(w)};if(m==null)throw Error("Can't access Zeni account promo page without signing in...");const A=te(),I=ee(A?.loggedInUserRoleMap),C=ye(A?.loggedInUserRoleMap);if(P&&I)return e.jsx(Q,{to:"../../checking/setup"});if(y.company?.companyZeniAccountInfo&&(!P&&I||C)){if(a.state?.message==="activation"){const w=Je(a.state?.pathnameStackToGoBack);n(a.pathname,{state:{...a.state,message:void 0,pathnameStackToGoBack:w.newStack}})}return e.jsxs(e.Fragment,{children:[e.jsx(fa,{showConfetti:p}),e.jsx(de,{analytics:O,onLoad:w=>(E=>E.trackPageLoaded(Ae.Event.accountsPromoPageViewed))(w)}),e.jsx(ue,{isAppContentDrawerOpen:d,handleDrawerToggle:D}),e.jsx(Ja,{analytics:O,navigate:n,companyId:f,meetingUrl:o("zeni_accounts_promo"),onClickMenuIcon:()=>{D(!0)},maxAnnualPercentageYield:l.maxAnnualPercentageYield,maxInsuredAmount:l.maxInsuredAmount,exampleBankBalance:3e6})]})}return e.jsx(le,{fetchState:"In-Progress",style:{backgroundColor:i.colors.grey5}})};function jt(){const n=G(),a=k((S=>R(S))),r=U(),{useFeatureGate:t,useDynamicConfig:o}=Z(),i=te(),d=ee(i?.loggedInUserRoleMap),c=ye(i?.loggedInUserRoleMap),p=!!a.company?.companyZeniAccountInfo?.isZeniAccountEnabled,h=!!a.company?.companyZeniAccountInfo?.isZeniAccountTOSAccepted,{isFeatureEnabled:y}=t(V.isChargeCardFeatureEnabled),{isFeatureEnabled:s}=t(V.isDebitCardFeatureEnabled),l=Ye(a),f=xe(s,a),m=a?.userRole!=null&&ea(a?.userRole),P=(a?.company==null||a.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!m)&&na(i?.loggedInUserRoleMap),D=aa(i?.loggedInUserRoleMap),A=(a?.company==null||a.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!m)&&ta(i?.loggedInUserRoleMap),I=!!a.company?.companyZeniAccountInfo?.isZeniAccountEnabled&&!m,{configValue:C}=o(N.expressPayConfig),w=C.is_enable_all_tenants===!0||C.tenant_ids!=null&&C.tenant_ids.includes(a.tenantId),{isFeatureEnabled:E}=t(V.isAutoTransferRuleEnabled),T=xa(a,y,s)&&!m&&oa(i?.loggedInUserRoleMap),v=sa(i?.loggedInUserRoleMap),j=I&&ee(i?.loggedInUserRoleMap),L=j||$e(i?.loggedInUserRoleMap);return e.jsxs(Re,{children:[e.jsx(x,{path:"setup",element:e.jsx(Le,{isBillPayAdminLevelAccess:P,isUserHasOnlyBillPayAccess:D,isReimbursementAdminLevelAccess:A,isZeniAccountAdminLevelAccess:j,isChargeCardAdminLevelAccess:T,isUserHasOnlyCardAccess:v,productType:"zeni_accounts",type:"setup"})}),e.jsx(x,{path:"verification",element:e.jsx(Le,{isBillPayAdminLevelAccess:P,isUserHasOnlyBillPayAccess:D,isReimbursementAdminLevelAccess:A,isZeniAccountAdminLevelAccess:j,isChargeCardAdminLevelAccess:T,isUserHasOnlyCardAccess:v,productType:"zeni_accounts",type:"verification"})}),E?e.jsxs(e.Fragment,{children:[e.jsx(x,{path:"auto-transfer",element:e.jsx(Oe,{})}),L?e.jsx(x,{path:"auto-transfer/:ruleId/edit",element:e.jsx(Oe,{isEditDrawerOpen:!0})}):null]}):e.jsx(x,{path:"auto-transfer",element:e.jsx(J,{})}),w&&d?e.jsxs(e.Fragment,{children:[e.jsx(x,{path:"express-pay",element:e.jsx(se,{})}),e.jsx(x,{path:"express-pay/add-ach",element:e.jsx(se,{isAddACHDrawerOpen:!0})}),e.jsx(x,{path:"express-pay/add-wire/add-address",element:e.jsx(se,{isAddAddressDrawerOpen:!0})}),e.jsx(x,{path:"express-pay/add-wire",element:e.jsx(se,{isAddWireDrawerOpen:!0})})]}):e.jsx(x,{path:"express-pay",element:e.jsx(J,{})}),e.jsx(x,{path:"promo",element:e.jsx(Qa,{})}),l&&!f?e.jsx(x,{path:"/*",element:e.jsx(en,{})}):p?e.jsxs(e.Fragment,{children:[e.jsx(x,{path:"/",element:e.jsx(he,{})}),e.jsx(x,{path:"transfer",element:e.jsx(he,{isTransferDrawerOpen:!0})}),e.jsx(x,{path:"check-deposit",element:e.jsx(he,{isCheckDepositDrawerOpen:!0})}),e.jsx(x,{path:"cash_management/*",element:e.jsx(J,{})}),e.jsx(x,{path:":accountId/*",element:e.jsx(et,{})}),e.jsx(x,{path:"*",element:e.jsx(J,{})})]}):h&&d?e.jsx(x,{path:"*",element:e.jsx(Q,{to:"../setup"})}):a.company?.companyZeniAccountInfo&&c?e.jsx(x,{path:"*",element:e.jsx(Q,{to:"../promo",state:n.state})}):e.jsx(x,{path:"*",element:e.jsx(le,{fetchState:"In-Progress",style:{backgroundColor:r.colors.grey5,boxShadow:`0px 2px ${Ca.sp1} ${r.colors.dropShadowNormal}`}})})]})}function et(){return e.jsxs(Re,{children:[e.jsx(x,{path:"/",element:e.jsx(re,{})}),e.jsx(x,{path:"account-info",element:e.jsx(re,{isAccountInfoDrawerOpen:!0})}),e.jsx(x,{path:"transfer",element:e.jsx(re,{isTransferDrawerOpen:!0})}),e.jsx(x,{path:"check-deposit",element:e.jsx(re,{isCheckDepositDrawerOpen:!0})}),e.jsx(x,{path:"statements",element:e.jsx(Ia,{})}),e.jsx(x,{path:"*",element:e.jsx(J,{})})]})}export{jt as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-
|
|
1
|
+
import{j as i}from"./liveblocks-S_bQ6bIM.js";import{a as m}from"./sentry-BU5jEr8h.js";import{h as x,u as T,g as j,i as $,j as p}from"./core-wa4jvXau.js";import{TS as s,TR as v,a0f as B,fI as C,a0g as z}from"./zeni-epic-state-lWD60tIp.js";import{_ as D,ac as g,z as E,a5 as L,d3 as P,a2 as _}from"./index-BGcr7M3t.js";import{u as N,n as U}from"./mui-Ci0HQ48M.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]="46201c2d-185f-42ff-848e-52b7ebb6a66e",e._sentryDebugIdIdentifier="sentry-dbid-46201c2d-185f-42ff-848e-52b7ebb6a66e")}catch{}})();const G=U.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100vh;
|
|
4
4
|
width: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./sentry-
|
|
1
|
+
import"./sentry-BU5jEr8h.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]="459d6150-40e4-4fe0-88f2-7336312ca00a",e._sentryDebugIdIdentifier="sentry-dbid-459d6150-40e4-4fe0-88f2-7336312ca00a")}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 s(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{i as a,d as g,s as m};
|