@zeniai/web-app-ui 5.3.55-dev → 5.3.56-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-DdQz2lM1.js → AccountMappingScreen-BJKuQUQK.js} +2 -2
- package/dist/assets/{ActualMatchingMatchDetailScreen-CGBN-Q-7.js → ActualMatchingMatchDetailScreen-CkH9aaHO.js} +1 -1
- package/dist/assets/AddressRoutes-CHBmN4QX.js +1 -0
- package/dist/assets/AddressScreen-DVcm6rtP.js +9 -0
- package/dist/assets/AiCfoScreen-DLhxVK3m.js +22 -0
- package/dist/assets/{AppDrawer-CKP6jrbF.js → AppDrawer-DFw9ygHT.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-BpoA_nrV.js → BillPayApprovalRoutes-CrSvpjTF.js} +1 -1
- package/dist/assets/{BillPayRoutes-B9NE4VxB.js → BillPayRoutes-D25IkCRG.js} +7 -7
- package/dist/assets/BusinessVerificationPageScreen-C3i585S_.js +9 -0
- package/dist/assets/{CardsAiCfoScreen-oYxLbDwZ.js → CardsAiCfoScreen-CGVXrGo3.js} +1 -1
- package/dist/assets/{ChargeCardRoutes-ljOxkkUf.js → ChargeCardRoutes-Be1yd7vs.js} +10 -10
- package/dist/assets/{CompanyPassportScreen-CamQRzbi.js → CompanyPassportScreen-BbxvKQ4h.js} +1 -1
- package/dist/assets/ConnectionAuthScreen-DW_RpnUG.js +11 -0
- package/dist/assets/CustomerOnboardingAuthScreen-B9oqAEpw.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-UN9_koR-.js → CustomerOnboardingRoutes-DZPhXsuR.js} +2 -2
- package/dist/assets/{DashboardRoutes-B00G02__.js → DashboardRoutes-BNQ_G2Ja.js} +3 -3
- package/dist/assets/{DefaultTenantHome-BvquDIuf.js → DefaultTenantHome-CQb3BNY_.js} +1 -1
- package/dist/assets/DomesticWireDetailScreen-B1WqjoYC.js +18 -0
- package/dist/assets/{DrawerScreen-2p7xfq2O.js → DrawerScreen-BjVCvYOx.js} +1 -1
- package/dist/assets/EntityDetailRoutes-DPPxLcP3.js +1 -0
- package/dist/assets/ExpenseAutomationRoutes-Beqj_B98.js +38 -0
- package/dist/assets/FeaturePreviewScreen-DrZBk8z9.js +1 -0
- package/dist/assets/HubSpotOAuthCallbackScreen-uMS-Wn41.js +1 -0
- package/dist/assets/{InboxNotificationsProvider-CvLL3Xda.js → InboxNotificationsProvider-0KkUrcUF.js} +1 -1
- package/dist/assets/{InvoicingRoutes-BXUW-5w1.js → InvoicingRoutes-B7hVOPnd.js} +2 -2
- package/dist/assets/{MagicLinkRoutes-BxAzMNve.js → MagicLinkRoutes-0XNlBf8h.js} +6 -6
- package/dist/assets/MagicLinkSignInScreen-CmEuq8yZ.js +12 -0
- package/dist/assets/{MobileAppDrawer-fNaMEqpG.js → MobileAppDrawer-C4BbqfYY.js} +1 -1
- package/dist/assets/NotFoundScreen-BudPMncf.js +1 -0
- package/dist/assets/NotificationRoutes-ui3la9Pl.js +1 -0
- package/dist/assets/OAuthConsentScreen-BxSGmmYb.js +1 -0
- package/dist/assets/PandLWithForecastRoutes-CQxitPGl.js +1 -0
- package/dist/assets/{PaymentLinkScreen-0thjtbfK.js → PaymentLinkScreen-DZFH9-Dr.js} +3 -3
- package/dist/assets/PeopleRoutes-CTbqr9KR.js +22 -0
- package/dist/assets/PerformanceRoutes-DqqsTiLL.js +1 -0
- package/dist/assets/{Preview-CudBKEb3.js → Preview-CUqbKJrc.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-a_jxuJVg.js → QBOConnectionScreen-83wGiY1-.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRoutes-DHL_6iez.js → ReimbursementApprovalRoutes-CefdRKJA.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-j72H8n28.js → ReimbursementApprovalRuleDetailScreen-DVIQ0iGz.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-Cyrl2qi_.js → ReimbursementRoutes-CYSobdK2.js} +4 -4
- package/dist/assets/{ReportsRoutes-DSY4nYh6.js → ReportsRoutes-C0_U8cPe.js} +1 -1
- package/dist/assets/RewardsRoutes-Cuv6zmgH.js +1 -0
- package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-C4z4GiyE.js → ScheduleDetailsPrepaidExpensesScreen-BQ_Jeykv.js} +5 -5
- package/dist/assets/ScreenRoutes-CWs8sPE7.js +2 -0
- package/dist/assets/{SettingsRoutes-DfnQIw3N.js → SettingsRoutes-tupY8NX6.js} +6 -6
- package/dist/assets/{SetupPagesScreen-Zigm3cB1.js → SetupPagesScreen-IP9GnMvD.js} +5 -5
- package/dist/assets/SignInScreen-C_QB0DLT.js +1 -0
- package/dist/assets/SignOutScreen-Dlg2jHAz.js +9 -0
- package/dist/assets/{TaskListScreen-WGfeq9_a.js → TaskListScreen-BLrDzaze.js} +2 -2
- package/dist/assets/TaskRoutes-D1AnOebo.js +9 -0
- package/dist/assets/TransactionDetailRoutes-aJqQLpSX.js +1 -0
- package/dist/assets/{TransactionDetailScreen-BDWEHK1J.js → TransactionDetailScreen-DVTW16A1.js} +2 -2
- package/dist/assets/{TransactionListRoutes-COxnLE0l.js → TransactionListRoutes-7PO54jHW.js} +1 -1
- package/dist/assets/{TreasuryRoutes-DmSouKJP.js → TreasuryRoutes-BLoMlu93.js} +5 -5
- package/dist/assets/{VendorsRoutes-OsvLnOdY.js → VendorsRoutes-u3UbdNbB.js} +12 -12
- package/dist/assets/WiseConfirmationScreen-BwqpmX8S.js +12 -0
- package/dist/assets/{ZeniAccountRoutes-O9BxDbbv.js → ZeniAccountRoutes-CDbRnTrg.js} +11 -11
- package/dist/assets/ZeniAccountStatementScreen-lhzrOeGm.js +9 -0
- package/dist/assets/{accountMappingHelper-DTr2dybD.js → accountMappingHelper-DAAt9xyM.js} +1 -1
- package/dist/assets/{analytics-BLHCH9ZW.js → analytics-B3pE_Rhv.js} +1 -1
- package/dist/assets/{analyticsHelper-DhzoozKy.js → analyticsHelper-DvdruwkE.js} +1 -1
- package/dist/assets/{core-_lmxLuL7.js → core-BtMsWhj9.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-CNj7wDd5.js → decodeURIComponentSafe-roe2OgG2.js} +1 -1
- package/dist/assets/{dnd-4_dRT_p_.js → dnd-NbF88ub7.js} +1 -1
- package/dist/assets/{empty-Bz6Du369.js → empty-CaVGMRjr.js} +1 -1
- package/dist/assets/{empty-B3p_skJy.js → empty-Cx0IX9BK.js} +1 -1
- package/dist/assets/{emptyVideoElement-DVls5c-N.js → emptyVideoElement-BixupcUv.js} +1 -1
- package/dist/assets/epic-CvUAcLT0.js +2 -0
- package/dist/assets/expenseAutomationHelper-oTNGiYVa.js +1 -0
- package/dist/assets/{getLocaleForTenant-DiPOVD9Y.js → getLocaleForTenant-omtGYMrM.js} +1 -1
- package/dist/assets/{index-BqEaHxIT.js → index-BdE3bEFg.js} +11876 -11875
- package/dist/assets/{index-Cg11XXLq.js → index-CgkBXLPm.js} +1 -1
- package/dist/assets/{index-DMJTTbIe.js → index-CscHaeoB.js} +1 -1
- package/dist/assets/{index-sGFH656b.js → index-D4z6ymU4.js} +1 -1
- package/dist/assets/{index-DYybIBq-.js → index-DH8aYJll.js} +1 -1
- package/dist/assets/{index-DLV1sgpa.js → index-De8Bm1rc.js} +1 -1
- package/dist/assets/{index-BXkbHEmr.js → index-Dh_E8szn.js} +2 -2
- package/dist/assets/{index-hIpaHuHG.js → index-Dpw9AdmE.js} +1 -1
- package/dist/assets/{lexical-BibO8P7-.js → lexical-OFbGuPVJ.js} +1 -1
- package/dist/assets/{liveblocks-C_txwMxP.js → liveblocks-CVtnm86a.js} +1 -1
- package/dist/assets/{lottie-CyJj6i4R.js → lottie-DX_KUXtr.js} +1 -1
- package/dist/assets/{mui-DbFwPEO7.js → mui-DdZ2UeI1.js} +1 -1
- package/dist/assets/{pathToGoBack-W4B39XGQ.js → pathToGoBack-DUa0cp7d.js} +1 -1
- package/dist/assets/{pdf-BfgO0ZZE.js → pdf-Ck6JVYdq.js} +3 -3
- package/dist/assets/{pdf-lib-B5AjOY9Z.js → pdf-lib-BXXBaukU.js} +1 -1
- package/dist/assets/{plaid-DHbQ1Fnc.js → plaid-nsaMWH8B.js} +1 -1
- package/dist/assets/{pusher--5P9Uwc_.js → pusher-D5GzcojU.js} +1 -1
- package/dist/assets/{react-DrxoeICl.js → react-0n9ZpUxt.js} +1 -1
- package/dist/assets/{react-BmknZowZ.js → react-BgVq8Vpa.js} +1 -1
- package/dist/assets/{react-CUz7FHyX.js → react-C-0cdt-e.js} +1 -1
- package/dist/assets/{react-h8fTHwLe.js → react-CWdFYh5J.js} +1 -1
- package/dist/assets/{react-IBoMtt1b.js → react-DXmkD3ns.js} +1 -1
- package/dist/assets/{react-BKa7fZpZ.js → react-DhgbPzuh.js} +1 -1
- package/dist/assets/{recharts-B43pV0TY.js → recharts-DhwkC6iY.js} +1 -1
- package/dist/assets/{routePaths-C1I3AVBw.js → routePaths-znAFGC3M.js} +1 -1
- package/dist/assets/{sentry-D_60LtUS.js → sentry-BzkfMVrG.js} +1 -1
- package/dist/assets/{stripSplatSuffix-BWXYYZxG.js → stripSplatSuffix-BORWr7jN.js} +1 -1
- package/dist/assets/{url-BryZycM8.js → url-B1VibTls.js} +1 -1
- package/dist/assets/{url-CvufulZn.js → url-DLwy6QED.js} +1 -1
- package/dist/assets/{useActualMatchingMatchDetail-BOc11rCC.js → useActualMatchingMatchDetail-BATx-hw7.js} +1 -1
- package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-DfcdcxeV.js → useAiCfoDashboardSuggestedQuestionsChips-RBwji9iv.js} +1 -1
- package/dist/assets/{useAskAiCfoHostNavButtonProps-Biynu986.js → useAskAiCfoHostNavButtonProps-yiVAQfVL.js} +1 -1
- package/dist/assets/{useChargeCardPusherEvents-N9Kbq9gN.js → useChargeCardPusherEvents-D6w93u1p.js} +1 -1
- package/dist/assets/{useDeviceId-Dks2onQn.js → useDeviceId-Cvm1S2SE.js} +1 -1
- package/dist/assets/{useEmailConnectResultRefresh-BtvKv8-C.js → useEmailConnectResultRefresh-BuXXdg7d.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-CyHRajCC.js → useInitialThreadRequest-CRJTlzEQ.js} +1 -1
- package/dist/assets/{useTaskManagerAccess-Cs4MVKyS.js → useTaskManagerAccess-CtzHb9vx.js} +1 -1
- package/dist/assets/{useTaskManagerPusherEvents-BPWIyNie.js → useTaskManagerPusherEvents-BsdLgh09.js} +1 -1
- package/dist/assets/{utils-CPbtTTqo.js → utils-BrzWPNCR.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-Dxu14DPo.js → withTransactionSidePanel-BrwXnQ2x.js} +4 -4
- package/dist/assets/{zeni-epic-state-CtlpRqoe.js → zeni-epic-state-xhG_euwn.js} +5 -5
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/AddressRoutes-CynmpoQu.js +0 -1
- package/dist/assets/AddressScreen-DqZYCoSs.js +0 -9
- package/dist/assets/AiCfoScreen-CtsJ7cDT.js +0 -22
- package/dist/assets/BusinessVerificationPageScreen-BldrMJdh.js +0 -9
- package/dist/assets/ConnectionAuthScreen-BoP4m4L6.js +0 -11
- package/dist/assets/CustomerOnboardingAuthScreen-CDb5FCfJ.js +0 -1
- package/dist/assets/DomesticWireDetailScreen-BBhvylGY.js +0 -18
- package/dist/assets/EntityDetailRoutes-CLBqzGEu.js +0 -1
- package/dist/assets/ExpenseAutomationRoutes-CsO9a4nX.js +0 -38
- package/dist/assets/FeaturePreviewScreen-8gjXA436.js +0 -1
- package/dist/assets/HubSpotOAuthCallbackScreen-CdBNaEnB.js +0 -1
- package/dist/assets/MagicLinkSignInScreen-CBQx4xWX.js +0 -12
- package/dist/assets/NotFoundScreen-BeP62Nz9.js +0 -1
- package/dist/assets/NotificationRoutes-GCk-IahK.js +0 -1
- package/dist/assets/OAuthConsentScreen-DECI8j0I.js +0 -1
- package/dist/assets/PandLWithForecastRoutes-Ca12AKcd.js +0 -1
- package/dist/assets/PeopleRoutes-DYtmtMXx.js +0 -22
- package/dist/assets/PerformanceRoutes-DP4OW2qD.js +0 -1
- package/dist/assets/RewardsRoutes-DvJjiZGU.js +0 -1
- package/dist/assets/ScreenRoutes-C7oLHktw.js +0 -2
- package/dist/assets/SignInScreen-BRoXT-HL.js +0 -1
- package/dist/assets/SignOutScreen-DkRfW28z.js +0 -9
- package/dist/assets/TaskRoutes-C5PxGl6p.js +0 -9
- package/dist/assets/TransactionDetailRoutes-BBdrsyNq.js +0 -1
- package/dist/assets/WiseConfirmationScreen-taiB3VxF.js +0 -12
- package/dist/assets/ZeniAccountStatementScreen-DzQsPHni.js +0 -9
- package/dist/assets/epic-Dg8E5zC1.js +0 -2
- package/dist/assets/expenseAutomationHelper-C8o4PBoS.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e}from"./liveblocks-
|
|
1
|
+
import{j as e}from"./liveblocks-CVtnm86a.js";import{u as z,h as ae,g as W,i as N,j as D,l as te,N as ee,n as $e,o as C}from"./core-BtMsWhj9.js";import{$j as Fe,Lt as Ue,$k as _e,fF as R,GG as ze,$l as wn,cu as ne,cv as Me,GA as kn,$m as Dn,$n as In,GD as Sn,GK as ge,Gx as bn,Gu as Pn,YU as le,$o as jn,O_ as vn,WR as En,P0 as Tn,mI as Pe,$p as Bn,uX as Ve,uL as Ze,mz as Ge,mC as je,WS as ve,WT as On,$q as Ln,mB as Rn,mY as $n,mq as Fn,kQ as Un,kP as _n,$r as zn,$s as he,OH as Mn,$t as Vn,$u as Zn,Z8 as ye,$v as Ee,$w as Gn,Pb as Hn,Zu as Wn,My as He,Cd as We,$x as Nn,P8 as Yn,$y as Ne,da as xe,Pf as Ye,dZ as Ke,d_ as Ce,Pd as Kn,Ms as qn,P5 as Jn,$z as qe,$A as Je,OJ as Qe,OT as Te,$B as Qn,Zl as Xn,Pg as ea,bq as na,bJ as aa,cG as ta,bK as oa,bt as sa,Ug as ia}from"./zeni-epic-state-xhG_euwn.js";import{Q as oe,c as Z,v as _,z as b,aw as Ae,E as $,a8 as de,cY as ra,a2 as V,ac as Y,a5 as Xe,h as ca,n as Be,j as B,cZ as la,af as we,c_ as da,a9 as ue,c$ as ua,T as ke,bj as H,d0 as pa,ar as ma,at as en,d1 as Oe,d2 as ga,p as ce,d3 as ha,aj as fa,d4 as ya,d5 as xa,g as Ca,H as Aa}from"./index-BdE3bEFg.js";import{n as F,D as K,S as q}from"./mui-DdZ2UeI1.js";import X from"./NotFoundScreen-BudPMncf.js";import{S as Le}from"./SetupPagesScreen-IP9GnMvD.js";import{F as nn}from"./FeaturePreviewScreen-DrZBk8z9.js";import{a as m}from"./sentry-BzkfMVrG.js";import{M as pe}from"./MobileAppDrawer-C4BbqfYY.js";import{A as wa,D as ka,V as Da}from"./DomesticWireDetailScreen-B1WqjoYC.js";import{A as Ia}from"./AddressScreen-DVcm6rtP.js";import{u as an}from"./useAskAiCfoHostNavButtonProps-yiVAQfVL.js";import{Z as Sa}from"./ZeniAccountStatementScreen-lhzrOeGm.js";import"./recharts-DhwkC6iY.js";import"./analytics-B3pE_Rhv.js";import"./plaid-nsaMWH8B.js";import"./dnd-NbF88ub7.js";import"./stripe-cKAAJElX.js";import"./lottie-DX_KUXtr.js";import"./lexical-OFbGuPVJ.js";import"./pdf-Ck6JVYdq.js";import"./utils-BrzWPNCR.js";import"./BusinessVerificationPageScreen-C3i585S_.js";import"./routePaths-znAFGC3M.js";import"./analyticsHelper-DvdruwkE.js";import"./InboxNotificationsProvider-0KkUrcUF.js";import"./useTaskManagerAccess-CtzHb9vx.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]="da2168ab-7156-473e-9322-5aac3a718348",n._sentryDebugIdIdentifier="sentry-dbid-da2168ab-7156-473e-9322-5aac3a718348")}catch{}})();const ba=F.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
width: 100%;
|
|
@@ -6,19 +6,19 @@ import{j as e}from"./liveblocks-C_txwMxP.js";import{u as z,h as ae,g as W,i as N
|
|
|
6
6
|
flex-direction: column;
|
|
7
7
|
align-items: center;
|
|
8
8
|
background-color: ${n=>n.theme.colors.grey4};
|
|
9
|
-
`;function Re({isEditDrawerOpen:n}){const a
|
|
9
|
+
`;function Re({isEditDrawerOpen:n}){const a=$(),[i,t]=m.useState(!1),{autoTransferRulePageProps:o,isLoading:r}=(function({isEditDrawerOpen:d=!1}={}){const c=z(),p=ae(),h=W(),{ruleId:f,tenantEmailDomain:s}=N(),l=oe(),{useFeatureGate:g}=Z(),y=D((u=>Fe(u))),A=D((u=>Ue(u.depositAccountState,u.depositAccountListState))),I=D((u=>_e(u))),w=D((u=>R(u))),{isFeatureEnabled:P}=g(_.isTreasuryEnabled),x=y?.fetchState??"Not-Started",k=w?.companyId??(s==null?void 0:b.getSignedInUserTenant(s)?.companyId);m.useEffect((()=>{x==="Not-Started"&&k!=null&&c(ze(!0))}),[c,x,k]);const j=y?.fetchState!=="Completed";if(j)return{autoTransferRulePageProps:void 0,isLoading:j};const O=w?.company!=null&&wn(w.company),v=!!(P&&O),E=ne(l?.loggedInUserRoleMap)||Me(l?.loggedInUserRoleMap),T=b.getSignedInUser(),L={userId:T?.userId??"",sessionId:T?.zeniSessionId??"",tenantId:w?.tenantId??""},S=!!h.state?.scrollToAddRule;return{isLoading:j,autoTransferRulePageProps:{autoTransferRuleView:y,companyName:w?.companyName??"",hasAdminLevelAccess:E,includeTreasuryOption:v,transferLimit:5e5,authParams:L,currentTenant:w,depositAccountListView:A,downloadAccountDetailEndPoint:`${Ae}/account_details`,editingRuleId:f,isEditDrawerOpen:d,scrollToAddRule:S,zeniAccountsConfigDetail:I,onBackClick:()=>p(".."),onCreateRule:()=>{c(Pn())},onUpdateRule:u=>{c(ge(u))},onDeleteClick:u=>{c(bn(u))},onPauseClick:u=>{c(ge(u,!0,!1))},onResumeClick:u=>{c(ge(u,!1,!0))},onActivityClick:(u,M)=>{c(Sn(u,M))},onUpdateRuleLocalData:u=>{c(In(u))},clearRuleLocalData:()=>{c(Dn())},onEditClick:u=>{p(`./${u}/edit`)},onEditDrawerClose:()=>{p("../../",{relative:"path"})},onReviewClick:()=>{c(kn())}}}})({isEditDrawerOpen:n});return r||o==null?e.jsx(de,{fetchState:"In-Progress",style:{backgroundColor:a.colors.grey5}}):e.jsxs(ba,{children:[e.jsx(pe,{isAppContentDrawerOpen:i,handleDrawerToggle:d=>{t(d)}}),e.jsx(ra,{...o})]})}const Pa={overlayWidth:new Y(100,100,58)},ja=({vendorId:n,isDrawerOpen:a,closeDrawerHandler:i})=>{const t=z(),o=$(),r=V();if(b.getSignedInUser()==null)throw Error("Can't access ach account page without signing in...");return e.jsx(K,{onClose:()=>{i(!0),t(le())},anchor:"right",open:a,PaperProps:{style:{width:Pa.overlayWidth.valuePercentage(r),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
|
-
`,Ea={overlayWidth:new Y(100,100,58)},Ta=({isDrawerOpen:n,closeDrawerHandler:a})=>{const i=z(),t
|
|
13
|
+
`,Ea={overlayWidth:new Y(100,100,58)},Ta=({isDrawerOpen:n,closeDrawerHandler:a})=>{const i=z(),t=$(),o=V();if(b.getSignedInUser()==null)throw Error("Can't access address page without signing in...");return e.jsx(K,{onClose:()=>{a(!0),i(le())},anchor:"right",open:n,PaperProps:{style:{width:Ea.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:t.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsx(Ba,{onClick:r=>r.stopPropagation(),children:e.jsx(Ia,{accountContext:"express-pay",addressTypeParam:"vendor_address"})})})},Ba=F(q)`
|
|
14
14
|
display: flex;
|
|
15
15
|
min-height: 100%;
|
|
16
16
|
flex-direction: column;
|
|
17
|
-
`,
|
|
17
|
+
`,Oa={overlayWidth:new Y(100,100,58)},La=({vendorId:n,isDrawerOpen:a,closeDrawerHandler:i})=>{const t=z(),o=$(),r=V();if(b.getSignedInUser()==null)throw Error("Can't access ach account page without signing in...");return e.jsx(K,{onClose:()=>{i(!0),t(le())},anchor:"right",open:a,PaperProps:{style:{width:Oa.overlayWidth.valuePercentage(r),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsx(Ra,{onClick:d=>d.stopPropagation(),children:e.jsx(ka,{vendorIdParam:n,accountContext:"express-pay"})})})},Ra=F(q)`
|
|
18
18
|
display: flex;
|
|
19
19
|
min-height: 100%;
|
|
20
20
|
flex-direction: column;
|
|
21
|
-
|
|
21
|
+
`,$a=F.div`
|
|
22
22
|
display: flex;
|
|
23
23
|
height: 100vh;
|
|
24
24
|
width: 100%;
|
|
@@ -26,19 +26,19 @@ import{j as e}from"./liveblocks-C_txwMxP.js";import{u as z,h as ae,g as W,i as N
|
|
|
26
26
|
flex-direction: column;
|
|
27
27
|
align-items: center;
|
|
28
28
|
background-color: ${n=>n.theme.colors.grey4};
|
|
29
|
-
|
|
29
|
+
`,Fa=te((function(n,a){const i=R(n),t=b.getSignedInUser(),o=i.tenantId,r={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:o??""},d=a.expressPayDetails,c=n.entityAutoCompleteState.autoCompleteText.common,p=En(n,"common");return{expressPayDetails:d,fileProps:{authParams:r,filesEndPoint:`${we.fileMicroServiceBaseUrl}`},vendorSearchAutoCompleteData:{autoCompleteText:c,entityAutoCompleteView:p},analytics:a.analytics}}),(function(n,a){const{navigate:i}=a;return{onSaveVendor:t=>{n(_n(t,void 0,void 0,!0))},saveVendorDetailLocalData:(t,o)=>{n(je({vendorId:o,localData:t}))},saveExpressPayLocalData:t=>{n(Un({localData:t}))},onVendorSelected:t=>{t!=null&&n(Fn(t,!1))},updateSelectedVendorForCreate:t=>{n($n(t))},initializeVendorAddress:()=>{n(Rn())},resetVendorSaveStatus:t=>{n(Ln({vendorId:t}))},vendorSearchAutoCompleteActions:{onAutoCompleteInputChange:(t,o)=>{t.trim().length>=2?n(On({searchString:t,entityType:o,searchOrigin:"common"})):t.trim().length===0&&n(ve("common"))},onCancelAutoComplete:()=>{n(ve("common"))}},chooseNewVendor:t=>{n(je({localData:{vendorName:t}}))},onClickAddAccount:t=>{t.method.toLowerCase().indexOf("ach")!==-1?i("./add-ach",{relative:"path"}):t.method.toLowerCase().indexOf("wire")!==-1&&t.method.toLowerCase().indexOf("domestic")!==-1&&i("./add-wire",{relative:"path"})},updateFilesEntity:t=>{n(Ge({files:t}))},onDeleteFile:t=>{n(Ze(t))},onEditFileName:(t,o)=>{n(Ve(t,o.split(".")[0]))},onBackClick:t=>{t!=null&&n(Pe(t)),n(Pe()),n(Bn()),n(le()),i("../",{relative:"path"})},onSchedulePayment:()=>{n(Tn())}}}))(la);function ie({isAddACHDrawerOpen:n,isAddWireDrawerOpen:a,isAddAddressDrawerOpen:i}){const t=ae(),o=W(),r=z(),[d,c]=m.useState(!1),{tenantEmailDomain:p}=N(),h=oe(),f=D((u=>u.expressPayState.fetchState)),s=D((u=>R(u))),l=D((u=>jn(u))),g=l.expressPayLocalData?.vendorId,y=s.companyId??b.getSignedInUserTenant(p)?.companyId,[A,I]=m.useState(!1),[w,P]=m.useState(!1),[x,k]=m.useState(!1),j=Xe(o.state?.pathnameStackToGoBack),{poppedPathname:O}=j,v=O?.split("/"),E=v?.[v.length-1];m.useEffect((()=>{n===!0?I(!0):(I(!1),document.body.style.overflow="auto")}),[n]),m.useEffect((()=>{a===!0?P(!0):(P(!1),document.body.style.overflow="auto")}),[a]),m.useEffect((()=>{i===!0?k(!0):(k(!1),document.body.style.overflow="auto")}),[i]),m.useEffect((()=>{f==="Not-Started"&&r(vn(!0,!0))}),[f,r]);const T=ca(l.vendorViewDetails.bankAccountCreationState?.fetchState);if(m.useEffect((()=>{T==="In-Progress"&&l.vendorViewDetails.bankAccountCreationState?.fetchState==="Completed"&&S()}),[T,l.vendorViewDetails.bankAccountCreationState?.fetchState]),b.getSignedInUser()==null)throw Error("Can't access express pay page without signing in...");const L=u=>{c(u)},S=()=>{I(!1),P(!1),t("../",{relative:"path"})};return e.jsxs($a,{children:[Be(o)?e.jsx(pe,{isAppContentDrawerOpen:d,handleDrawerToggle:L}):null,A===!0?e.jsx(ja,{vendorId:g,closeDrawerHandler:S,isDrawerOpen:A}):null,w===!0?e.jsx(La,{vendorId:g,closeDrawerHandler:S,isDrawerOpen:w}):null,x===!0?e.jsx(Ta,{closeDrawerHandler:S,isDrawerOpen:x}):null,e.jsx(Da,{vendorId:g,isExpressPayPage:!0}),e.jsx(Fa,{navigate:t,location:o,companyId:y,accountId:E,analytics:B,currentTenant:s,vendorId:g,roleMap:h?.loggedInUserRoleMap,isSettings:Be(o),expressPayDetails:l,onClickMenuIcon:()=>{L(!0)}})]})}const Ua={overlayWidth:new Y(100,100,58)},_a=({authParams:n,downloadAccountDetailEndPoint:a,isAccountInfoDrawerOpen:i,zeniBankAccountDetail:t,closeDrawerHandler:o})=>{const r=$(),d=V(),c=D((s=>_e(s))),p=D((s=>R(s)));if(b.getSignedInUser()==null)throw Error("Can't access Account detail page without signing in...");const h=()=>{o(!0)},f={depositAccount:t,onDismissClick:h,zeniAccountsConfigDetail:c,authParams:n,downloadAccountDetailEndPoint:a,currentTenant:p};return e.jsx(K,{anchor:"right",open:i,PaperProps:{style:{width:Ua.overlayWidth.valuePercentage(d),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:r.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>h(),children:e.jsx(za,{onClick:s=>s.stopPropagation(),children:e.jsx(da,{...f})})})},za=F(q)`
|
|
30
30
|
display: flex;
|
|
31
31
|
min-height: 100%;
|
|
32
32
|
flex-direction: column;
|
|
33
|
-
`,Ma={overlayWidth:new Y(100,100,58)},tn=({isCheckDepositDrawerOpen:n,closeDrawerHandler:a})=>{const i
|
|
33
|
+
`,Ma={overlayWidth:new Y(100,100,58)},tn=({isCheckDepositDrawerOpen:n,closeDrawerHandler:a})=>{const i=$(),t=V(),o=z(),r=D((s=>R(s))),d=b.getSignedInUser(),c=r.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=D((s=>zn(s))),f={analytics:B,checkDeposit:h,filesEndPoint:`${we.fileMicroServiceBaseUrl}`,authParams:p,onSaveChangesToLocalStore:s=>{o(Vn(s))},updateFilesEntity:s=>{o(Ge({files:s}))},onAnotherTransferClick:()=>{o(he())},onDeleteFile:s=>{o(Ze(s))},onEditFileName:(s,l)=>{o(Ve(s,l.split(".")[0]))},onCheckDpositClick:()=>{o(Mn())},onDismissClick:()=>{a(!0),o(he())}};return e.jsxs(e.Fragment,{children:[e.jsx(ue,{analytics:B,onLoad:s=>(l=>l.trackPageLoaded(ke.Event.accountsDepositCheckFormViewed))(s)}),e.jsx(K,{anchor:"right",open:n,PaperProps:{style:{width:Ma.overlayWidth.valuePercentage(t),boxShadow:"none",zIndex:8}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:(s,l)=>(l==="backdropClick"||l==="escapeKeyDown")&&(a(!0),void o(he())),children:e.jsx(Va,{onClick:s=>s.stopPropagation(),children:e.jsx(ua,{...f})})})]})},Va=F(q)`
|
|
34
34
|
display: flex;
|
|
35
35
|
min-height: 100%;
|
|
36
36
|
flex-direction: column;
|
|
37
|
-
`,Za={overlayWidth:new Y(100,100,58)},Ga=te((function(n,a){const i=a.currentTenant?.companyId;return{plaidConnectionDetails:Wn(n,i,"zeni_accounts","external_account").plaidConnectionDetails,depositAccountListView:Ue(n.depositAccountState,n.depositAccountListState)}}),(function(n,a){return{onReviewClick:()=>n(Yn()),clearReviewTransferDetail:()=>n(Nn()),onFetchLinkTokenClick:i=>{n(We("external_account",i))},onEstablishConnectionClick:i=>{n(He(i,a.currentTenant?.companyId,"external_account",void 0,"link_external_account"))}}}))(pa),on=({isTransferDrawerOpen:n,authParams:a,downloadAccountDetailEndPoint:i,closeDrawerHandler:t,zeniAccountsConfig:o})=>{const r=D((x=>Zn(x))),d=D((x=>R(x))),c
|
|
37
|
+
`,Za={overlayWidth:new Y(100,100,58)},Ga=te((function(n,a){const i=a.currentTenant?.companyId;return{plaidConnectionDetails:Wn(n,i,"zeni_accounts","external_account").plaidConnectionDetails,depositAccountListView:Ue(n.depositAccountState,n.depositAccountListState)}}),(function(n,a){return{onReviewClick:()=>n(Yn()),clearReviewTransferDetail:()=>n(Nn()),onFetchLinkTokenClick:i=>{n(We("external_account",i))},onEstablishConnectionClick:i=>{n(He(i,a.currentTenant?.companyId,"external_account",void 0,"link_external_account"))}}}))(pa),on=({isTransferDrawerOpen:n,authParams:a,downloadAccountDetailEndPoint:i,closeDrawerHandler:t,zeniAccountsConfig:o})=>{const r=D((x=>Zn(x))),d=D((x=>R(x))),c=$(),p=V(),h=z(),{accountId:f}=N(),[s,l]=m.useState("achTransfer"),[g,y]=m.useState(!1);if(b.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const{useDynamicConfig:A}=Z(),{configValue:I}=A(H.zeniAccountsConfig),w=ye(I),P=()=>{t(!0),h(Ee())};return m.useEffect((()=>{r.reviewTransferDetail.fetchState==="Completed"&&y(!0)}),[y,r.reviewTransferDetail.fetchState]),e.jsxs(e.Fragment,{children:[e.jsx(ue,{analytics:B,onLoad:x=>(k=>k.trackPageLoaded(ke.Event.zeniAccountsTransferFormViewed))(x)}),e.jsx(K,{onClose:()=>{(s==="achTransfer"&&g===!1||s==="achTransfer"&&g&&r.fetchState==="Completed")&&P()},anchor:"right",open:n,PaperProps:{style:{width:Za.overlayWidth.valuePercentage(p),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:c.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsx(Ha,{onClick:x=>x.stopPropagation(),children:e.jsx(Ga,{analytics:B,transferDetails:r,authParams:a,downloadAccountDetailEndPoint:i,onTransferClick:()=>{B.trackTransferBetweenAccountsFormClicked("Transfer",r.reviewTransferDetail.reviewTransferMoney.isShowDailyAchLimitWarning?"Review Split Transfer":"Review Transfer",r.transferDetailLocalData.transferFrom?.label,r.transferDetailLocalData.transferTo?.label,r.transferDetailLocalData.amount.amount,r.reviewTransferDetail.reviewTransferMoney.isShowDailyAchLimitWarning,r.reviewTransferDetail.reviewTransferMoney.transferSchedules.length,r.transferDetailLocalData.transferFrom?.accType==="paymentAccount"&&r.transferDetailLocalData.transferTo?.accType==="depositAccount"&&o.zeniAccountsConfigDetail.depositProductConfig.depositProducts?.[0].range?.[1]!=null&&r.transferDetailLocalData.amount.amount>o.zeniAccountsConfigDetail.depositProductConfig.depositProducts[0].range[1]),h(Hn(f))},onDismissClick:P,onSaveChangesToLocalStore:x=>{h(Gn(x))},onAnotherTransferClick:()=>{y(!1),h(Ee())},currentTenant:d,zeniAccountsConfigDetail:o,currentDrawerContent:s,setCurrentDrawerContent:l,showReviewContent:g,setShowReviewContent:y,onBackClick:()=>{},maxInsuredAmount:w.maxInsuredAmount})})})]})},Ha=F(q)`
|
|
38
38
|
display: flex;
|
|
39
39
|
min-height: 100%;
|
|
40
40
|
flex-direction: column;
|
|
41
|
-
`,Wa
|
|
41
|
+
`,Wa=F.div`
|
|
42
42
|
display: flex;
|
|
43
43
|
min-height: 100%;
|
|
44
44
|
width: 100%;
|
|
@@ -46,7 +46,7 @@ import{j as e}from"./liveblocks-C_txwMxP.js";import{u as z,h as ae,g as W,i as N
|
|
|
46
46
|
flex-direction: column;
|
|
47
47
|
align-items: center;
|
|
48
48
|
background-color: ${n=>n.theme.colors.grey4};
|
|
49
|
-
`,Na=te((function(n,a){return{zeniAccountListView:Ne(n),isExpressPayEnabled:a.isExpressPayEnabled,analytics:a.analytics}}),(function(n,a){const{navigate:i,currentTenant:t,location:o,companyId:r,handleDrawerToggle:d,analytics:c,isBillPayEnabled:p,isDebitCardFeatureEnabled:h}=a,{tenantEmailDomain:f}=t;return{onZeniAccountClick:(s,l)=>{c.trackAccountsListPageClicked("Accounts Row Item Click",l,"active");const g=Ya(f,s),y=ce(o.state?.pathnameStackToGoBack,o.pathname);i(g,{state:{pathnameStackToGoBack:y}})},onSettingsClick:()=>{c.trackAccountsListPageClicked("Settings Icon"),i("setup")},onReloadTransactions:()=>{n(Ye(!1))},handleMoveMoneyOptionSelection:(s,l)=>{let g="page-not-found";s==="sendMoney"&&(g=ln(f)),s==="payBill"?g=sn(t,p,h):s==="transfer"?(g=rn(f),l!=null&&n(
|
|
49
|
+
`,Na=te((function(n,a){return{zeniAccountListView:Ne(n),isExpressPayEnabled:a.isExpressPayEnabled,analytics:a.analytics}}),(function(n,a){const{navigate:i,currentTenant:t,location:o,companyId:r,handleDrawerToggle:d,analytics:c,isBillPayEnabled:p,isDebitCardFeatureEnabled:h}=a,{tenantEmailDomain:f}=t;return{onZeniAccountClick:(s,l)=>{c.trackAccountsListPageClicked("Accounts Row Item Click",l,"active");const g=Ya(f,s),y=ce(o.state?.pathnameStackToGoBack,o.pathname);i(g,{state:{pathnameStackToGoBack:y}})},onSettingsClick:()=>{c.trackAccountsListPageClicked("Settings Icon"),i("setup")},onReloadTransactions:()=>{n(Ye(!1))},handleMoveMoneyOptionSelection:(s,l)=>{let g="page-not-found";s==="sendMoney"&&(g=ln(f)),s==="payBill"?g=sn(t,p,h):s==="transfer"?(g=rn(f),l!=null&&n(qe(l))):s==="checkDeposit"&&(g=cn(f));const y=ce(o.state?.pathnameStackToGoBack,o.pathname);i(g,{state:{pathnameStackToGoBack:y}})},unlinkPaymentAccount:(s,l)=>{c.trackAccountsListPageClicked("Unlink Account",l),n(Jn(s))},onFetchLinkTokenClick:(s,l)=>{n(We("external_account",s,l))},onUpdatePaymentAccountStatus:(s,l,g)=>{n(qn(s,l,"zeni_accounts","external_account",g))},onEstablishConnectionClick:s=>{n(He(s,r,"external_account",void 0,"link_external_account"))},onCreateCheckingClick:s=>{n(Kn(s))},onClickMenuIcon:()=>{d(!0)},onAutoTransferClick:s=>{const l="./auto-transfer";s?i(l,{state:{...o.state,scrollToAddRule:!0}}):i(l)}}}))(ga);function fe({isTransferDrawerOpen:n,isCheckDepositDrawerOpen:a}){const i=W(),t=ae(),o=z(),r=V(),{tenantEmailDomain:d}=N(),{useDynamicConfig:c,useFeatureGate:p}=Z(),h=$(),{configValue:f}=c(H.zeniAccountsConfig),{isFeatureEnabled:s}=p(_.isDebitCardFeatureEnabled),{isFeatureEnabled:l}=p(_.isAutoTransferRuleEnabled),{isFeatureEnabled:g}=p(_.isCheckingCommentingEnabled),y=ye(f),A=D((U=>R(U))),I=A.companyId??b.getSignedInUserTenant(d)?.companyId,{configValue:w}=c(H.expressPayConfig),P=w.is_enable_all_tenants===!0||w.tenant_ids!=null&&w.tenant_ids.includes(A.tenantId),[x,k]=m.useState(!1),[j,O]=m.useState(!1),[v,E]=m.useState(!1),[T,L]=m.useState(!1),S=D((U=>Ne(U))),u=S.fetchState,M=D((U=>Fe(U))),J=M?.fetchState??"Not-Started",me=!!A.companyZeniAccountInfo?.info?.isZeniAccountEnabled,se=oe(),G=!!A.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted,Q=ne(se?.loggedInUserRoleMap),dn=xe(se?.loggedInUserRoleMap),un=!!A.companyBillPayInfo?.info?.isBillPayEnabled,De=b.getSignedInUser(),pn={userId:De?.userId??"",sessionId:De?.zeniSessionId??"",tenantId:A.tenantId??""},mn=`${Ae}/account_details`,{areTenantIdsInSync:Ie}=ma();m.useEffect((()=>{!x&&Ie&&(k(!0),o(Ye(!1)))}),[x,o,u,Ie]),m.useEffect((()=>{!j&&J==="Not-Started"&&I&&(O(!0),o(ze(!0)))}),[j,J,I,o]),m.useEffect((()=>{n!=null&&n===!0?E(!0):(E(!1),document.body.style.overflow="auto")}),[n]),m.useEffect((()=>{L(a!=null&&a===!0)}),[a]);const Se=()=>{E(!1),t("..")},[gn,hn]=m.useState(!1),be=U=>{hn(U)},{isAiCfoAccessEnabled:fn,onAskAiCfoClick:yn}=an({mobileExploreReferrer:"Checking Accounts"});en({isDataReady:u==="Completed"});const xn=Ke(A),Cn=Ce(s,A);return xn===!0&&Cn!==!0?e.jsx(nn,{}):me?e.jsxs(e.Fragment,{children:[S.fetchState==="Completed"&&v===!1&&T===!1?e.jsx(ue,{analytics:B,onLoad:U=>(An=>{An.trackAccountsListPageViewed(S.depositAccountsSelectorView.depositAccounts.length,S.externalAccountsSelectorView.paymentAccounts.length,Oe(S.summary?.totalBalance.available.amount??0),Oe(S.summary?.totalInterest.available.amount??0),S.zeniAccountsConfig.zeniAccountsConfigDetail.annualPercentageYield)})(U)}):null,v===!0?e.jsx(on,{closeDrawerHandler:Se,isTransferDrawerOpen:v,zeniAccountsConfig:S.zeniAccountsConfig,authParams:pn,downloadAccountDetailEndPoint:mn}):null,T===!0?e.jsx(tn,{closeDrawerHandler:Se,isCheckDepositDrawerOpen:T}):null,e.jsxs(Wa,{windowSize:r,children:[e.jsx(pe,{isAppContentDrawerOpen:gn,handleDrawerToggle:be}),e.jsx(Na,{zeniBankListView:S,navigate:t,currentTenant:A,location:i,companyId:I,analytics:B,maxInsuredAmount:y.maxInsuredAmount,isExpressPayEnabled:P,isBillPayEnabled:un,isCheckingCommentingEnabled:g,isDebitCardFeatureEnabled:s,isAutoTransferRuleEnabled:l,handleDrawerToggle:be,isAiCfoAccessEnabled:fn,onAskAiCfoClick:yn})]})]}):G&&Q?e.jsx(ee,{to:"../setup"}):A.companyZeniAccountInfo?.info&&!G&&dn?e.jsx(ee,{to:"../promo",state:i.state}):e.jsx(de,{fetchState:"In-Progress",style:{backgroundColor:h.colors.grey5}})}const sn=(n,a,i)=>{const t=Ce(i,n),{tenantEmailDomain:o}=n;return t===!0||a===!1?`/${o}/bills`:`/${o}/bill/new`},Ya=(n,a)=>`/${n}/checking/${a}`,rn=(n,a)=>a==null?`/${n}/checking/transfer`:`/${n}/checking/${a}/transfer`,cn=(n,a)=>a==null?`/${n}/checking/check-deposit`:`/${n}/checking/${a}/check-deposit`,ln=n=>`/${n}/checking/express-pay`,Ka=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-C_txwMxP.js";import{u as z,h as ae,g as W,i as N
|
|
|
54
54
|
align-items: center;
|
|
55
55
|
min-height: 100vh;
|
|
56
56
|
background-color: ${n=>n.theme.colors.grey4};
|
|
57
|
-
`,
|
|
57
|
+
`,qa=te((function(n,a){const{currentTenant:i}=a,t=Je(n,a.accountId),o=b.getSignedInUser(),r=n.tenantState.currentTenantId,d={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:r??""},c=t.accountDetail?.id??"";return{currentTenantCompanyName:i.companyName??"",authParams:d,downloadEndPoint:`${we.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${c}`,zeniAccountDetail:t,isExpressPayEnabled:a.isExpressPayEnabled,fetchState:t.fetchState}}),(function(n,a){const{navigate:i,currentTenant:t,location:o,accountId:r}=a,{tenantEmailDomain:d}=t;return{handleMoveMoneyOptionSelection:(c,p)=>{let h="page-not-found";c==="sendMoney"?h=ln(d):c==="payBill"?h=sn(t,a.isBillPayEnabled,a.isDebitCardFeatureEnabled):c==="transfer"?(h=rn(d,r),p!=null&&n(qe(p))):c==="checkDeposit"?(h=cn(d,r),p!=null&&n(Qn(p))):c==="accountStatement"&&(h=Qa(d,r));const f=ce(o.state?.pathnameStackToGoBack,o.pathname);i(h,{state:{pathnameStackToGoBack:f}})},onAccountDetailClick:()=>{const c=Ja(d,r),p=ce(o.state?.pathnameStackToGoBack,o.pathname);i(c,{state:{pathnameStackToGoBack:p}})},onEditNameClick:c=>{n(Te(r,"editName",c))},onReloadZeniAccountDetailPage:()=>{n(Qe(r,!1))},onCloseAccountClick:()=>{n(Te(r,"closeAccount",""))},onBackClick:()=>{i("../",{relative:"path"})}}}))(ha);function re({isTransferDrawerOpen:n,isCheckDepositDrawerOpen:a,isAccountInfoDrawerOpen:i}){const t=W(),o=ae(),r=z(),d=V(),{tenantEmailDomain:c,accountId:p}=N(),{useDynamicConfig:h}=Z(),{useFeatureGate:f}=Z(),{isFeatureEnabled:s}=f(_.isDebitCardFeatureEnabled),{isFeatureEnabled:l}=f(_.isCheckingCommentingEnabled),g=D((Q=>R(Q))),{configValue:y}=h(H.expressPayConfig),A=y.is_enable_all_tenants===!0||y.tenant_ids!=null&&y.tenant_ids.includes(g.tenantId),I=!!g.companyBillPayInfo?.info?.isBillPayEnabled,w=b.getSignedInUser(),P=g.companyId??b.getSignedInUserTenant(c)?.companyId,x={userId:w?.userId??"",sessionId:w?.zeniSessionId??"",tenantId:g.tenantId??""},k=`${Ae}/account_details`,[j,O]=m.useState(!1),[v,E]=m.useState(!1),[T,L]=m.useState(!1),[S,u]=m.useState(!1),M=D((Q=>Je(Q,p??""))),J=M.fetchState,{isAiCfoAccessEnabled:me,onAskAiCfoClick:se}=an({mobileExploreReferrer:"Checking Account Detail"});en({isDataReady:J==="Completed"}),m.useEffect((()=>{j||(r(Qe(p??"",!1)),O(!0))}),[j,r,J]),m.useEffect((()=>{u(i!=null&&i===!0)}),[i]),m.useEffect((()=>{n!=null&&n===!0?E(!0):(E(!1),document.body.style.overflow="auto")}),[n]),m.useEffect((()=>{L(a!=null&&a===!0)}),[a]);const G=()=>{u(!1),o("..")};return e.jsxs(e.Fragment,{children:[S===!0&&M.accountDetail!=null?e.jsx(_a,{authParams:x,downloadAccountDetailEndPoint:k,closeDrawerHandler:G,isAccountInfoDrawerOpen:S,zeniBankAccountDetail:M.accountDetail}):null,v===!0?e.jsx(on,{closeDrawerHandler:G,isTransferDrawerOpen:v,zeniAccountsConfig:M.zeniAccountsConfig,authParams:x,downloadAccountDetailEndPoint:k}):null,T===!0?e.jsx(tn,{closeDrawerHandler:G,isCheckDepositDrawerOpen:T}):null,e.jsx(Ka,{windowSize:d,children:e.jsx(qa,{navigate:o,currentTenant:g,location:t,companyId:P,isDebitCardFeatureEnabled:s,accountId:p??"",isBillPayEnabled:I,isCheckingCommentingEnabled:l,isExpressPayEnabled:A,isAiCfoAccessEnabled:me,onAskAiCfoClick:se})})]})}const Ja=(n,a)=>`/${n}/checking/${a}/account-info`,Qa=(n,a)=>`/${n}/checking/${a}/statements`,Xa=te((function(n,a){const{companyId:i}=a;return{zeniAccountSetupView:Xn(n,i)}}),(function(n,a){const{navigate:i,companyId:t}=a;return{onSetupButtonClick:()=>{B.trackAccountsPromoPageClicked("Setup Accounts"),n(ea(t))},onBackClick:()=>{i("../..",{relative:"path"})},onSetupZeniAccountSuccess:()=>{i("../setup",{relative:"path"})}}}))(xa),et=()=>{const n=ae(),a=W(),{tenantEmailDomain:i}=N(),{useDynamicConfig:t}=Z(),o=fa(),r=$(),[d,c]=m.useState(!1),[p,h]=m.useState(!1),f=D((k=>R(k))),{configValue:s}=t(H.zeniAccountsConfig),l=ye(s);m.useEffect((()=>{p===!1&&a.state?.message==="activation"&&h(!0)}),[a.state]);const g=b.getSignedInUserTenant(i)?.companyId??f.companyId,y=b.getSignedInUser(),A=!!f.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted,I=k=>{c(k)};if(y==null)throw Error("Can't access Zeni account promo page without signing in...");const w=oe(),P=ne(w?.loggedInUserRoleMap),x=xe(w?.loggedInUserRoleMap);if(A&&P)return e.jsx(ee,{to:"../../checking/setup"});if(f.company?.companyZeniAccountInfo&&(!A&&P||x)){if(a.state?.message==="activation"){const k=Xe(a.state?.pathnameStackToGoBack);n(a.pathname,{state:{...a.state,message:void 0,pathnameStackToGoBack:k.newStack}})}return e.jsxs(e.Fragment,{children:[e.jsx(ya,{showConfetti:p}),e.jsx(ue,{analytics:B,onLoad:k=>(j=>j.trackPageLoaded(ke.Event.accountsPromoPageViewed))(k)}),e.jsx(pe,{isAppContentDrawerOpen:d,handleDrawerToggle:I}),e.jsx(Xa,{analytics:B,navigate:n,companyId:g,meetingUrl:o("zeni_accounts_promo"),onClickMenuIcon:()=>{I(!0)},maxAnnualPercentageYield:l.maxAnnualPercentageYield,maxInsuredAmount:l.maxInsuredAmount,exampleBankBalance:3e6})]})}return e.jsx(de,{fetchState:"In-Progress",style:{backgroundColor:r.colors.grey5}})};function Et(){const n=W(),a=D((L=>R(L))),i=$(),{useFeatureGate:t,useDynamicConfig:o}=Z(),r=oe(),d=ne(r?.loggedInUserRoleMap),c=xe(r?.loggedInUserRoleMap),p=!!a.company?.companyZeniAccountInfo?.isZeniAccountEnabled,h=!!a.company?.companyZeniAccountInfo?.isZeniAccountTOSAccepted,{isFeatureEnabled:f}=t(_.isChargeCardFeatureEnabled),{isFeatureEnabled:s}=t(_.isDebitCardFeatureEnabled),l=Ke(a),g=Ce(s,a),y=a?.userRole!=null&&na(a?.userRole),A=(a?.company==null||a.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!y)&&aa(r?.loggedInUserRoleMap),I=ta(r?.loggedInUserRoleMap),w=(a?.company==null||a.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!y)&&oa(r?.loggedInUserRoleMap),P=!!a.company?.companyZeniAccountInfo?.isZeniAccountEnabled&&!y,{configValue:x}=o(H.expressPayConfig),k=x.is_enable_all_tenants===!0||x.tenant_ids!=null&&x.tenant_ids.includes(a.tenantId),{isFeatureEnabled:j}=t(_.isAutoTransferRuleEnabled),O=Ca(a,f,s)&&!y&&sa(r?.loggedInUserRoleMap),v=ia(r?.loggedInUserRoleMap),E=P&&ne(r?.loggedInUserRoleMap),T=E||Me(r?.loggedInUserRoleMap);return e.jsxs($e,{children:[e.jsx(C,{path:"setup",element:e.jsx(Le,{isBillPayAdminLevelAccess:A,isUserHasOnlyBillPayAccess:I,isReimbursementAdminLevelAccess:w,isZeniAccountAdminLevelAccess:E,isChargeCardAdminLevelAccess:O,isUserHasOnlyCardAccess:v,productType:"zeni_accounts",type:"setup"})}),e.jsx(C,{path:"verification",element:e.jsx(Le,{isBillPayAdminLevelAccess:A,isUserHasOnlyBillPayAccess:I,isReimbursementAdminLevelAccess:w,isZeniAccountAdminLevelAccess:E,isChargeCardAdminLevelAccess:O,isUserHasOnlyCardAccess:v,productType:"zeni_accounts",type:"verification"})}),j?e.jsxs(e.Fragment,{children:[e.jsx(C,{path:"auto-transfer",element:e.jsx(Re,{})}),T?e.jsx(C,{path:"auto-transfer/:ruleId/edit",element:e.jsx(Re,{isEditDrawerOpen:!0})}):null]}):e.jsx(C,{path:"auto-transfer",element:e.jsx(X,{})}),k&&d?e.jsxs(e.Fragment,{children:[e.jsx(C,{path:"express-pay",element:e.jsx(ie,{})}),e.jsx(C,{path:"express-pay/add-ach",element:e.jsx(ie,{isAddACHDrawerOpen:!0})}),e.jsx(C,{path:"express-pay/add-wire/add-address",element:e.jsx(ie,{isAddAddressDrawerOpen:!0})}),e.jsx(C,{path:"express-pay/add-wire",element:e.jsx(ie,{isAddWireDrawerOpen:!0})})]}):e.jsx(C,{path:"express-pay",element:e.jsx(X,{})}),e.jsx(C,{path:"promo",element:e.jsx(et,{})}),l&&!g?e.jsx(C,{path:"/*",element:e.jsx(nn,{})}):p?e.jsxs(e.Fragment,{children:[e.jsx(C,{path:"/",element:e.jsx(fe,{})}),e.jsx(C,{path:"transfer",element:e.jsx(fe,{isTransferDrawerOpen:!0})}),e.jsx(C,{path:"check-deposit",element:e.jsx(fe,{isCheckDepositDrawerOpen:!0})}),e.jsx(C,{path:"cash_management/*",element:e.jsx(X,{})}),e.jsx(C,{path:":accountId/*",element:e.jsx(nt,{})}),e.jsx(C,{path:"*",element:e.jsx(X,{})})]}):h&&d?e.jsx(C,{path:"*",element:e.jsx(ee,{to:"../setup"})}):a.company?.companyZeniAccountInfo&&c?e.jsx(C,{path:"*",element:e.jsx(ee,{to:"../promo",state:n.state})}):e.jsx(C,{path:"*",element:e.jsx(de,{fetchState:"In-Progress",style:{backgroundColor:i.colors.grey5,boxShadow:`0px 2px ${Aa.sp1} ${i.colors.dropShadowNormal}`}})})]})}function nt(){return e.jsxs($e,{children:[e.jsx(C,{path:"/",element:e.jsx(re,{})}),e.jsx(C,{path:"account-info",element:e.jsx(re,{isAccountInfoDrawerOpen:!0})}),e.jsx(C,{path:"transfer",element:e.jsx(re,{isTransferDrawerOpen:!0})}),e.jsx(C,{path:"check-deposit",element:e.jsx(re,{isCheckDepositDrawerOpen:!0})}),e.jsx(C,{path:"statements",element:e.jsx(Sa,{})}),e.jsx(C,{path:"*",element:e.jsx(X,{})})]})}export{Et as default};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{j as i}from"./liveblocks-CVtnm86a.js";import{a as u}from"./sentry-BzkfMVrG.js";import{h as $,u as x,g as T,i as C,j as p}from"./core-BtMsWhj9.js";import{Tg as s,Tf as j,$C as v,fF as B,$D as D}from"./zeni-epic-state-xhG_euwn.js";import{a2 as E,af as g,E as z,z as L,a8 as P,d6 as N,a5 as U}from"./index-BdE3bEFg.js";import{n as _}from"./mui-DdZ2UeI1.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]="8683c23c-5710-474b-bf22-9dff2071a26f",e._sentryDebugIdIdentifier="sentry-dbid-8683c23c-5710-474b-bf22-9dff2071a26f")}catch{}})();const G=_.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
height: 100vh;
|
|
4
|
+
width: 100%;
|
|
5
|
+
flex: 1 1 auto;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
align-items: center;
|
|
8
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
+
`;function H(){const e=$(),n=x(),d=E(),f=T();let{accountId:a}=C(),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,h]=u.useState(!1),y=z();u.useEffect((()=>{m||(h(!0),n(j(a??"",!1)))}),[m,n]);const o=p((t=>v(t,a??""))),b=()=>{const t=U(f.state?.pathnameStackToGoBack),S=t.poppedPathname??"..";e(S,{state:{pathnameStackToGoBack:t.newStack}})},r=L.getSignedInUser(),c=p((t=>B(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(P,{fetchState:"In-Progress",style:{backgroundColor:y.colors.grey5}}):i.jsx(G,{windowSize:d,children:i.jsx(N,{currentTenantCompanyName:k,statementListView:o,accountLast4:w,onBackClick:b,authParams:I,downloadEndPoint:l})})}export{H as Z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./sentry-
|
|
1
|
+
import"./sentry-BzkfMVrG.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};
|