@zeniai/web-app-ui 5.0.94-qa → 5.0.95-qa
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/AddressRoutes-CjTHTSuI.js +1 -0
- package/dist/assets/{AddressScreen-BNN0XhH8.js → AddressScreen-CqBa6_-n.js} +2 -2
- package/dist/assets/AiCfoScreen-BXUvjbhu.js +22 -0
- package/dist/assets/{BillPayApprovalRoutes-BpV8hV9h.js → BillPayApprovalRoutes-DLpMtIRS.js} +1 -1
- package/dist/assets/{BillPayRoutes-BnNnXg6p.js → BillPayRoutes-B5l3Tw20.js} +34 -34
- package/dist/assets/{BusinessVerificationPageScreen-fGxnzjnu.js → BusinessVerificationPageScreen-CSKO8lFK.js} +2 -2
- package/dist/assets/{ChargeCardRoutes-Cxl-Dfno.js → ChargeCardRoutes-jWkInVo_.js} +8 -8
- package/dist/assets/{CompanyPassportScreen-6oghFs5-.js → CompanyPassportScreen-CKvp1ssr.js} +1 -1
- package/dist/assets/ConnectionAuthScreen-B4RQUYL_.js +11 -0
- package/dist/assets/CustomerOnboardingAuthScreen-BGqU9gPw.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-52j6GlB4.js → CustomerOnboardingRoutes-Dr5zRy1K.js} +4 -4
- package/dist/assets/DashboardRoutes-pJhHX-2b.js +20 -0
- package/dist/assets/{DefaultTenantHome-ChuSwEZz.js → DefaultTenantHome-DPWdITeE.js} +1 -1
- package/dist/assets/{DomesticWireDetailScreen-DT1-4XE1.js → DomesticWireDetailScreen-SKLAPI0e.js} +3 -3
- package/dist/assets/DrawerScreen-D5UV8-Be.js +1 -0
- package/dist/assets/EntityDetailRoutes-gOpFte8h.js +1 -0
- package/dist/assets/{ExpenseAutomationRoutes-BGsp6tOc.js → ExpenseAutomationRoutes-ARewAzCQ.js} +4 -4
- package/dist/assets/FeaturePreviewScreen-CWGIZoD1.js +1 -0
- package/dist/assets/{HubSpotOAuthCallbackScreen-BtWyS7u5.js → HubSpotOAuthCallbackScreen-DZdAM3r7.js} +1 -1
- package/dist/assets/{MagicLinkRoutes-CiL3RYaJ.js → MagicLinkRoutes-GUUoK2nF.js} +4 -4
- package/dist/assets/MagicLinkSignInScreen-Im4VESmI.js +12 -0
- package/dist/assets/MobileAppDrawer-DjZLcHYq.js +1 -0
- package/dist/assets/NotFoundScreen-GGUH6kfI.js +1 -0
- package/dist/assets/{NotificationRoutes-TuKcUgWz.js → NotificationRoutes-BoplnVa2.js} +1 -1
- package/dist/assets/OAuthConsentScreen-DxwRtYz2.js +1 -0
- package/dist/assets/{PandLWithForecastRoutes-CU7PJY2i.js → PandLWithForecastRoutes-D8O3Fecf.js} +1 -1
- package/dist/assets/PeopleRoutes-DreG0KS5.js +22 -0
- package/dist/assets/PerformanceRoutes-BWWDxy3D.js +1 -0
- package/dist/assets/{Preview-CX79dadf.js → Preview-DVbW5PS-.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-CNoF2iT1.js → QBOConnectionScreen-DckktUOs.js} +1 -1
- package/dist/assets/ReferralListScreen-deq5DiBs.js +5 -0
- package/dist/assets/ReimbursementApprovalRoutes-XhXfCwat.js +1 -0
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-DI_WfNSZ.js → ReimbursementApprovalRuleDetailScreen-BK03a97e.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-B57Ww3xn.js → ReimbursementRoutes-BOTzgYhv.js} +4 -4
- package/dist/assets/ReportsRoutes-d5fJ62NK.js +1 -0
- package/dist/assets/RewardsRoutes-C4s9WH-A.js +1 -0
- package/dist/assets/ScreenRoutes-D5644a5x.js +2 -0
- package/dist/assets/{SettingsRoutes-CvryzcuN.js → SettingsRoutes-DOALXrsx.js} +7 -7
- package/dist/assets/{SetupPagesScreen-Bap8l3lK.js → SetupPagesScreen-BYhmd0-N.js} +5 -5
- package/dist/assets/{SignInScreen-C1Bdz5-O.js → SignInScreen-CLFmIoF3.js} +1 -1
- package/dist/assets/SignOutScreen-GZOa1gnF.js +9 -0
- package/dist/assets/{TaskListScreen-BgQVLwxs.js → TaskListScreen-DXLUHaMY.js} +2 -2
- package/dist/assets/TaskRoutes-CBpVhxjZ.js +9 -0
- package/dist/assets/{TransactionDetailRoutes-BtJNx8FU.js → TransactionDetailRoutes-BM0mSWXo.js} +1 -1
- package/dist/assets/{TransactionDetailScreen-ZjUg5MTR.js → TransactionDetailScreen-Mjv-0Vsi.js} +2 -2
- package/dist/assets/{TransactionListRoutes-CpUzH2wx.js → TransactionListRoutes-DX4_qMdv.js} +1 -1
- package/dist/assets/{TreasuryRoutes-DGZRuDr3.js → TreasuryRoutes-33SOS81s.js} +6 -6
- package/dist/assets/{VendorsRoutes-BmMfshWa.js → VendorsRoutes-D8t3eTpL.js} +13 -13
- package/dist/assets/WiseConfirmationScreen-C9nK-3Oh.js +12 -0
- package/dist/assets/{ZeniAccountRoutes-Dt7DM9ni.js → ZeniAccountRoutes-BhbbjK45.js} +11 -11
- package/dist/assets/ZeniAccountStatementScreen-BSfOyBC_.js +9 -0
- package/dist/assets/{accountMappingHelper-ClJz5V9X.js → accountMappingHelper-DdryjbCH.js} +1 -1
- package/dist/assets/{analytics-NZ6ROu06.js → analytics-B35UERag.js} +1 -1
- package/dist/assets/{analyticsHelper-BTp5Ghm5.js → analyticsHelper-Cnf9wNpk.js} +1 -1
- package/dist/assets/{core-D-NK-UK9.js → core-B20PugrR.js} +2 -2
- package/dist/assets/{decodeURIComponentSafe-C48GZJfu.js → decodeURIComponentSafe-HZX6LUOb.js} +1 -1
- package/dist/assets/{dnd-C49i2BE4.js → dnd-CTNaOehy.js} +1 -1
- package/dist/assets/{empty-DH2H1-Nx.js → empty-DbjE3Pml.js} +1 -1
- package/dist/assets/{empty-CtUkBjnR.js → empty-DqPV1QMu.js} +1 -1
- package/dist/assets/{emptyVideoElement-BCGqnPYV.js → emptyVideoElement-D5A8Alvf.js} +1 -1
- package/dist/assets/{epic-D64Ymfe0.js → epic-C05Fn23e.js} +1 -1
- package/dist/assets/getLocaleForTenant-DX4sTRBy.js +1 -0
- package/dist/assets/{index-CppZNJwq.js → index-BJUGjRvu.js} +1 -1
- package/dist/assets/{index-B-v2HYWQ.js → index-CtCI_jgi.js} +11630 -11593
- package/dist/assets/{index-DUe_bU79.js → index-DDN5QRfh.js} +2 -2
- package/dist/assets/{index-Cii2mjSS.js → index-DODLcfP6.js} +1 -1
- package/dist/assets/{index-CTaHBGA6.js → index-Dh7l3Ca4.js} +1 -1
- package/dist/assets/{index-Bx6iIwrK.js → index-DwJt1swd.js} +1 -1
- package/dist/assets/{index-AU1I47Je.js → index-Dx-tgz0s.js} +1 -1
- package/dist/assets/{index-DCy8xCNa.js → index-qbNk-Sh2.js} +1 -1
- package/dist/assets/{lexical-Bp-0qESw.js → lexical-BDpP_OMn.js} +1 -1
- package/dist/assets/{liveblocks-D6iO1SmY.js → liveblocks-BSDLCmF2.js} +1 -1
- package/dist/assets/{lottie-BWZi4J-8.js → lottie-DG71PfmK.js} +1 -1
- package/dist/assets/{mui-DqRlPgPp.js → mui-BBkBdMVO.js} +1 -1
- package/dist/assets/{pathToGoBack-DvdlIQjg.js → pathToGoBack-BJj5tqvK.js} +1 -1
- package/dist/assets/{pdf-BpZ3cLIj.js → pdf-Cp8DoYAG.js} +3 -3
- package/dist/assets/{pdf-lib-CNmHIzRc.js → pdf-lib-BqwRJQ00.js} +1 -1
- package/dist/assets/{plaid-BzyOi-ir.js → plaid-DHvUog4a.js} +1 -1
- package/dist/assets/{pusher-BMtiLftw.js → pusher-DsZLo3j0.js} +1 -1
- package/dist/assets/{react-CmUCRpgB.js → react-BPL_4xi4.js} +1 -1
- package/dist/assets/{react-TFItAO3U.js → react-BUTkVbbW.js} +1 -1
- package/dist/assets/{react-D3MVFA0D.js → react-D4RyndA4.js} +1 -1
- package/dist/assets/{react-BJh7Ho8n.js → react-DpONCvOo.js} +1 -1
- package/dist/assets/{react-Djxq7qii.js → react-Uu6ZW5p-.js} +1 -1
- package/dist/assets/{react-DxEGkukB.js → react-zGcoIiO8.js} +1 -1
- package/dist/assets/{recharts-Dt8dM4EI.js → recharts-BzjcN9SN.js} +1 -1
- package/dist/assets/{routePaths-DPqSbEW8.js → routePaths-Bd-gFJIO.js} +1 -1
- package/dist/assets/{sentry-DJeJwz74.js → sentry-67DqaLi1.js} +1 -1
- package/dist/assets/{url-CawXuWkK.js → url-D5ovKX_j.js} +1 -1
- package/dist/assets/{url-Cab0ioG_.js → url-DgheZiFv.js} +1 -1
- package/dist/assets/useAiCfoDashboardSuggestedQuestionsChips-CjjIkZeq.js +1 -0
- package/dist/assets/useAskAiCfoHostNavButtonProps-CMgniebB.js +1 -0
- package/dist/assets/{useDeviceId-CYAkkrZp.js → useDeviceId-CZrGGxHD.js} +1 -1
- package/dist/assets/useInitialThreadRequest-CHUXHA4e.js +1 -0
- package/dist/assets/{utils-CGva6Exy.js → utils-C7uJ9upL.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-CklFSvII.js → withTransactionSidePanel-KXh--JtC.js} +1 -1
- package/dist/assets/{zeni-epic-state-22WFBgK9.js → zeni-epic-state-B3AwsZqW.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/AddressRoutes-C4ikWgPo.js +0 -1
- package/dist/assets/AiCfoScreen-Bg9ijLCA.js +0 -22
- package/dist/assets/ConnectionAuthScreen-rIEFWD8p.js +0 -11
- package/dist/assets/CustomerOnboardingAuthScreen-BYdpJPsr.js +0 -1
- package/dist/assets/DashboardRoutes-BdO71Zfj.js +0 -20
- package/dist/assets/DrawerScreen-ueiFgeV8.js +0 -1
- package/dist/assets/EntityDetailRoutes-BDYJNo-V.js +0 -1
- package/dist/assets/FeaturePreviewScreen-C2KS_KpA.js +0 -1
- package/dist/assets/MagicLinkSignInScreen-GKE3oNCV.js +0 -12
- package/dist/assets/MobileAppDrawer-DFwRXpE0.js +0 -1
- package/dist/assets/NotFoundScreen-C4a6Q5Lb.js +0 -1
- package/dist/assets/OAuthConsentScreen-ChC9fP6N.js +0 -1
- package/dist/assets/PeopleRoutes-CeW1yv_N.js +0 -22
- package/dist/assets/PerformanceRoutes-COmcQAYA.js +0 -1
- package/dist/assets/ReferralListScreen-BaQmHM5w.js +0 -5
- package/dist/assets/ReimbursementApprovalRoutes-mwgyiXL7.js +0 -1
- package/dist/assets/ReportsRoutes-HX8_E7zU.js +0 -1
- package/dist/assets/RewardsRoutes-CszUbBSt.js +0 -1
- package/dist/assets/ScreenRoutes-BXmEXdCM.js +0 -2
- package/dist/assets/SignOutScreen-DjrE-8HT.js +0 -9
- package/dist/assets/TaskRoutes-DmrwyMwf.js +0 -9
- package/dist/assets/WiseConfirmationScreen-CAo6wnNv.js +0 -12
- package/dist/assets/ZeniAccountStatementScreen-pkvytZBY.js +0 -9
- package/dist/assets/getLocaleForTenant-zP94FwPU.js +0 -1
- package/dist/assets/useAiCfoDashboardSuggestedQuestionsChips-B_ZCAUsA.js +0 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-h3l_262v.js +0 -1
- package/dist/assets/useInitialThreadRequest-DZ6IEgJ5.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as n}from"./liveblocks-
|
|
1
|
+
import{j as n}from"./liveblocks-BSDLCmF2.js";import{h as Y,g as K,u as _,i as G,j as w,n as q,N as ne,o as Ve,p as k}from"./core-B20PugrR.js";import{eP as z,OA as Ce,OB as $e,cl as te,cm as Ne,fg as Ge,wS as ke,B3 as Ze,wM as Tn,OC as On,OD as Bn,wP as Fn,wW as fe,wJ as Rn,wG as Ln,Nm as le,OE as Un,En as _n,Ks as zn,Ep as Mn,kk as Oe,OF as Vn,qc as He,q0 as We,kb as Ye,ke as Be,Kt as Fe,Ku as $n,OG as Nn,kd as Gn,kA as Zn,k2 as Hn,iB as Wn,iA as Yn,OH as Kn,OI as ye,E4 as qn,OJ as Jn,OK as Qn,Nf as we,OL as Re,OM as Xn,EA as et,N_ as nt,BZ as Ke,sM as qe,ON as tt,Ex as at,OO as Je,cM as Ae,EE as Qe,fh as ot,eY as Xe,e_ as De,EC as st,BT as rt,Eu as it,OP as en,OQ as nn,E6 as tn,Eg as Le,OR as ct,Ea as lt,OS as dt,NO as ut,EF as pt,bt as mt,bF as ht,cx as gt,bG as ft,bs as yt,Jn as xt}from"./zeni-epic-state-B3AwsZqW.js";import{k as ae,w as $,z as D,I as O,m as M,x as de,bW as Ct,a2 as Ie,p as V,y as J,r as an,aq as kt,af as Ue,d as R,bX as wt,at as Se,bY as At,N as ue,bZ as Dt,f as be,aN as W,b_ as It,Y as St,_ as on,ac as bt,b$ as _e,c0 as Et,s as ee,c1 as vt,c2 as Pt,c3 as jt,c4 as Tt,a9 as Ot,o as Bt}from"./index-CtCI_jgi.js";import{n as L,D as Q,S as X}from"./mui-BBkBdMVO.js";import ce from"./NotFoundScreen-GGUH6kfI.js";import{S as ze}from"./SetupPagesScreen-BYhmd0-N.js";import{F as sn}from"./FeaturePreviewScreen-CWGIZoD1.js";import{a as u}from"./sentry-67DqaLi1.js";import{M as pe}from"./MobileAppDrawer-DjZLcHYq.js";import{A as Ft,D as Rt,V as Lt}from"./DomesticWireDetailScreen-SKLAPI0e.js";import{A as Ut}from"./AddressScreen-CqBa6_-n.js";import{u as rn}from"./useAskAiCfoHostNavButtonProps-CMgniebB.js";import{Z as _t}from"./ZeniAccountStatementScreen-BSfOyBC_.js";import"./recharts-BzjcN9SN.js";import"./analytics-B35UERag.js";import"./plaid-DHvUog4a.js";import"./dnd-CTNaOehy.js";import"./stripe-DMRn4zHo.js";import"./lottie-DG71PfmK.js";import"./lexical-BDpP_OMn.js";import"./pdf-Cp8DoYAG.js";import"./utils-C7uJ9upL.js";import"./analyticsHelper-Cnf9wNpk.js";import"./routePaths-Bd-gFJIO.js";import"./BusinessVerificationPageScreen-CSKO8lFK.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]="d238527e-564e-45fe-947c-941a378ebad3",e._sentryDebugIdIdentifier="sentry-dbid-d238527e-564e-45fe-947c-941a378ebad3")}catch{}})();const zt=L.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
width: 100%;
|
|
@@ -6,19 +6,19 @@ import{j as n}from"./liveblocks-D6iO1SmY.js";import{l as Y,u as q,h as z,i as G,
|
|
|
6
6
|
flex-direction: column;
|
|
7
7
|
align-items: center;
|
|
8
8
|
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`,
|
|
9
|
+
`,Mt=q(function(e){return{autoTransferRuleView:Ce(e),downloadAccountDetailEndPoint:`${Ie}/account_details`,transferLimit:5e5,depositAccountListView:Ze(e.depositAccountState,e.depositAccountListState)}},function(e,t){const{navigate:s,handleDrawerToggle:o}=t;return{onBackClick:()=>{s("..")},onClickMenuIcon:()=>{o(!0)},onFetchAutoTransferRules:a=>{e(ke(a))},onCreateRule:()=>{e(Ln())},onUpdateRule:a=>{e(fe(a))},onDeleteClick:a=>{e(Rn(a))},onPauseClick:a=>{e(fe(a,!0,!1))},onResumeClick:a=>{e(fe(a,!1,!0))},onActivityClick:(a,r)=>{e(Fn(a,r))},onUpdateRuleLocalData:a=>{e(Bn(a))},clearRuleLocalData:()=>{e(On())},onEditClick:a=>{s(`./${a}/edit`)},onEditDrawerClose:()=>{s("../../",{relative:"path"})},onReviewClick:()=>{e(Tn())}}})(Ct);function Me({isEditDrawerOpen:e}){const t=Y(),s=K(),o=_(),a=ae(),{ruleId:r,tenantEmailDomain:d}=G(),{useFeatureGate:c}=$(),[p,m]=u.useState(!1),[x,i]=u.useState(!1),l=w(y=>z(y)),h=w(y=>Ce(y)),C=h?.fetchState??"Not-Started",b=w(y=>$e(y)),g=l?.companyId??D.getSignedInUserTenant(d)?.companyId,A=te(a?.loggedInUserRoleMap)||Ne(a?.loggedInUserRoleMap),{isFeatureEnabled:I}=c(O.isTreasuryEnabled),f=l?.company!=null&&Ge(l.company),S=I&&f,B=D.getSignedInUser(),U=l.tenantId,j={userId:B?.userId??"",sessionId:B?.zeniSessionId??"",tenantId:U??""},v=l.companyName;u.useEffect(()=>{!x&&C==="Not-Started"&&g&&(i(!0),o(ke(!0)))},[x,C,g,o]);const E=y=>{m(y)},T=M(),P=!!s.state?.scrollToAddRule;return h?.fetchState!=="Completed"?n.jsx(de,{fetchState:"In-Progress",style:{backgroundColor:T.colors.grey5}}):n.jsxs(zt,{children:[n.jsx(pe,{isAppContentDrawerOpen:p,handleDrawerToggle:E}),n.jsx(Mt,{navigate:t,location:s,currentTenant:l,companyName:v,handleDrawerToggle:E,isEditDrawerOpen:e,editingRuleId:r,authParams:j,includeTreasuryOption:S,hasAdminLevelAccess:A,zeniAccountsConfigDetail:b,scrollToAddRule:P})]})}const Vt={overlayWidth:new J(100,100,58)},$t=({vendorId:e,isDrawerOpen:t,closeDrawerHandler:s})=>{const o=_(),a=M(),r=V();if(D.getSignedInUser()==null)throw Error("Can't access ach account page without signing in...");return n.jsx(Q,{onClose:()=>{s(!0),o(le())},anchor:"right",open:t,PaperProps:{style:{width:Vt.overlayWidth.valuePercentage(r),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:a.colors.black,opacity:.75,cursor:"pointer"}}},children:n.jsx(Nt,{onClick:d=>d.stopPropagation(),children:n.jsx(Ft,{vendorIdParam:e,accountContext:"express-pay"})})})},Nt=L(X)`
|
|
10
10
|
display: flex;
|
|
11
11
|
min-height: 100%;
|
|
12
12
|
flex-direction: column;
|
|
13
|
-
`,Gt={overlayWidth:new J(100,100,58)},
|
|
13
|
+
`,Gt={overlayWidth:new J(100,100,58)},Zt=({isDrawerOpen:e,closeDrawerHandler:t})=>{const s=_(),o=M(),a=V();if(D.getSignedInUser()==null)throw Error("Can't access address page without signing in...");return n.jsx(Q,{onClose:()=>{t(!0),s(le())},anchor:"right",open:e,PaperProps:{style:{width:Gt.overlayWidth.valuePercentage(a),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.75,cursor:"pointer"}}},children:n.jsx(Ht,{onClick:r=>r.stopPropagation(),children:n.jsx(Ut,{accountContext:"express-pay",addressTypeParam:"vendor_address"})})})},Ht=L(X)`
|
|
14
14
|
display: flex;
|
|
15
15
|
min-height: 100%;
|
|
16
16
|
flex-direction: column;
|
|
17
|
-
`,Wt={overlayWidth:new J(100,100,58)},Yt=({vendorId:e,isDrawerOpen:t,closeDrawerHandler:s})=>{const o=
|
|
17
|
+
`,Wt={overlayWidth:new J(100,100,58)},Yt=({vendorId:e,isDrawerOpen:t,closeDrawerHandler:s})=>{const o=_(),a=M(),r=V();if(D.getSignedInUser()==null)throw Error("Can't access ach account page without signing in...");return n.jsx(Q,{onClose:()=>{s(!0),o(le())},anchor:"right",open:t,PaperProps:{style:{width:Wt.overlayWidth.valuePercentage(r),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:a.colors.black,opacity:.75,cursor:"pointer"}}},children:n.jsx(Kt,{onClick:d=>d.stopPropagation(),children:n.jsx(Rt,{vendorIdParam:e,accountContext:"express-pay"})})})},Kt=L(X)`
|
|
18
18
|
display: flex;
|
|
19
19
|
min-height: 100%;
|
|
20
20
|
flex-direction: column;
|
|
21
|
-
`,
|
|
21
|
+
`,qt=L.div`
|
|
22
22
|
display: flex;
|
|
23
23
|
height: 100vh;
|
|
24
24
|
width: 100%;
|
|
@@ -26,15 +26,15 @@ import{j as n}from"./liveblocks-D6iO1SmY.js";import{l as Y,u as q,h as z,i as G,
|
|
|
26
26
|
flex-direction: column;
|
|
27
27
|
align-items: center;
|
|
28
28
|
background-color: ${e=>e.theme.colors.grey4};
|
|
29
|
-
`,Jt=
|
|
29
|
+
`,Jt=q(function(e,t){const s=z(e),o=D.getSignedInUser(),a=s.tenantId,r={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:a??""},d=t.expressPayDetails,c=e.entityAutoCompleteState.autoCompleteText.common,p=zn(e,"common");return{expressPayDetails:d,fileProps:{authParams:r,filesEndPoint:`${Se.fileMicroServiceBaseUrl}`},vendorSearchAutoCompleteData:{autoCompleteText:c,entityAutoCompleteView:p},analytics:t.analytics}},function(e,t){const{navigate:s}=t;return{onSaveVendor:o=>{e(Yn(o,void 0,void 0,!0))},saveVendorDetailLocalData:(o,a)=>{e(Be({vendorId:a,localData:o}))},saveExpressPayLocalData:o=>{e(Wn({localData:o}))},onVendorSelected:o=>{o!=null&&e(Hn(o,!1))},updateSelectedVendorForCreate:o=>{e(Zn(o))},initializeVendorAddress:()=>{e(Gn())},resetVendorSaveStatus:o=>{e(Nn({vendorId:o}))},vendorSearchAutoCompleteActions:{onAutoCompleteInputChange:(o,a)=>{o.trim().length>=2?e($n({searchString:o,entityType:a,searchOrigin:"common"})):o.trim().length===0&&e(Fe("common"))},onCancelAutoComplete:()=>{e(Fe("common"))}},chooseNewVendor:o=>{e(Be({localData:{vendorName:o}}))},onClickAddAccount:o=>{o.method.toLowerCase().indexOf("ach")!==-1?s("./add-ach",{relative:"path"}):o.method.toLowerCase().indexOf("wire")!==-1&&o.method.toLowerCase().indexOf("domestic")!==-1&&s("./add-wire",{relative:"path"})},updateFilesEntity:o=>{e(Ye({files:o}))},onDeleteFile:o=>{e(We(o))},onEditFileName:(o,a)=>{e(He(o,a.split(".")[0]))},onBackClick:o=>{o!=null&&e(Oe(o)),e(Oe()),e(Vn()),e(le()),s("../",{relative:"path"})},onSchedulePayment:()=>{e(Mn())}}})(wt);function re({isAddACHDrawerOpen:e,isAddWireDrawerOpen:t,isAddAddressDrawerOpen:s}){const o=Y(),a=K(),r=_(),[d,c]=u.useState(!1),{tenantEmailDomain:p}=G(),m=ae(),x=w(y=>y.expressPayState.fetchState),i=w(y=>z(y)),l=w(y=>Un(y)),h=l.expressPayLocalData?.vendorId,C=i.companyId??D.getSignedInUserTenant(p)?.companyId,[b,g]=u.useState(!1),[A,I]=u.useState(!1),[f,S]=u.useState(!1),B=an(a.state?.pathnameStackToGoBack),{poppedPathname:U}=B,j=U?.split("/"),v=j?.[j.length-1];u.useEffect(()=>{e===!0?g(!0):(g(!1),document.body.style.overflow="auto")},[e]),u.useEffect(()=>{t===!0?I(!0):(I(!1),document.body.style.overflow="auto")},[t]),u.useEffect(()=>{s===!0?S(!0):(S(!1),document.body.style.overflow="auto")},[s]),u.useEffect(()=>{x==="Not-Started"&&r(_n(!0,!0))},[x,r]);const E=kt(l.vendorViewDetails.bankAccountCreationState?.fetchState);if(u.useEffect(()=>{E==="In-Progress"&&l.vendorViewDetails.bankAccountCreationState?.fetchState==="Completed"&&P()},[E,l.vendorViewDetails.bankAccountCreationState?.fetchState]),D.getSignedInUser()==null)throw Error("Can't access express pay page without signing in...");const T=y=>{c(y)},P=()=>{g(!1),I(!1),o("../",{relative:"path"})};return n.jsxs(qt,{children:[Ue(a)?n.jsx(pe,{isAppContentDrawerOpen:d,handleDrawerToggle:T}):null,b===!0?n.jsx($t,{vendorId:h,closeDrawerHandler:P,isDrawerOpen:b}):null,A===!0?n.jsx(Yt,{vendorId:h,closeDrawerHandler:P,isDrawerOpen:A}):null,f===!0?n.jsx(Zt,{closeDrawerHandler:P,isDrawerOpen:f}):null,n.jsx(Lt,{vendorId:h,isExpressPayPage:!0}),n.jsx(Jt,{navigate:o,location:a,companyId:C,accountId:v,analytics:R,currentTenant:i,vendorId:h,roleMap:m?.loggedInUserRoleMap,isSettings:Ue(a),expressPayDetails:l,onClickMenuIcon:()=>{T(!0)}})]})}const Qt={overlayWidth:new J(100,100,58)},Xt=({authParams:e,downloadAccountDetailEndPoint:t,isAccountInfoDrawerOpen:s,zeniBankAccountDetail:o,closeDrawerHandler:a})=>{const r=M(),d=V(),c=w(i=>$e(i)),p=w(i=>z(i));if(D.getSignedInUser()==null)throw Error("Can't access Account detail page without signing in...");const m=()=>{a(!0)},x={depositAccount:o,onDismissClick:m,zeniAccountsConfigDetail:c,authParams:e,downloadAccountDetailEndPoint:t,currentTenant:p};return n.jsx(Q,{anchor:"right",open:s,PaperProps:{style:{width:Qt.overlayWidth.valuePercentage(d),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:r.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>m(),children:n.jsx(ea,{onClick:i=>i.stopPropagation(),children:n.jsx(At,{...x})})})},ea=L(X)`
|
|
30
30
|
display: flex;
|
|
31
31
|
min-height: 100%;
|
|
32
32
|
flex-direction: column;
|
|
33
|
-
`,na={overlayWidth:new J(100,100,58)},cn=({isCheckDepositDrawerOpen:e,closeDrawerHandler:t})=>{const s=
|
|
33
|
+
`,na={overlayWidth:new J(100,100,58)},cn=({isCheckDepositDrawerOpen:e,closeDrawerHandler:t})=>{const s=M(),o=V(),a=_(),r=w(i=>z(i)),d=D.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 m=w(i=>Kn(i)),x={analytics:R,checkDeposit:m,filesEndPoint:`${Se.fileMicroServiceBaseUrl}`,authParams:p,onSaveChangesToLocalStore:i=>{a(Jn(i))},updateFilesEntity:i=>{a(Ye({files:i}))},onAnotherTransferClick:()=>{a(ye())},onDeleteFile:i=>{a(We(i))},onEditFileName:(i,l)=>{a(He(i,l.split(".")[0]))},onCheckDpositClick:()=>{a(qn())},onDismissClick:()=>{t(!0),a(ye())}};return n.jsxs(n.Fragment,{children:[n.jsx(ue,{analytics:R,onLoad:i=>(l=>l.trackPageLoaded(be.Event.accountsDepositCheckFormViewed))(i)}),n.jsx(Q,{anchor:"right",open:e,PaperProps:{style:{width:na.overlayWidth.valuePercentage(o),boxShadow:"none",zIndex:8}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.75,cursor:"pointer"}}},onClose:(i,l)=>(l==="backdropClick"||l==="escapeKeyDown")&&(t(!0),void a(ye())),children:n.jsx(ta,{onClick:i=>i.stopPropagation(),children:n.jsx(Dt,{...x})})})]})},ta=L(X)`
|
|
34
34
|
display: flex;
|
|
35
35
|
min-height: 100%;
|
|
36
36
|
flex-direction: column;
|
|
37
|
-
`,aa={overlayWidth:new J(100,100,58)},oa=
|
|
37
|
+
`,aa={overlayWidth:new J(100,100,58)},oa=q(function(e,t){const s=t.currentTenant?.companyId;return{plaidConnectionDetails:nt(e,s,"zeni_accounts","external_account").plaidConnectionDetails,depositAccountListView:Ze(e.depositAccountState,e.depositAccountListState)}},function(e,t){return{onReviewClick:()=>e(at()),clearReviewTransferDetail:()=>e(tt()),onFetchLinkTokenClick:s=>{e(qe("external_account",s))},onEstablishConnectionClick:s=>{e(Ke(s,t.currentTenant?.companyId,"external_account",void 0,"link_external_account"))}}})(It),ln=({isTransferDrawerOpen:e,authParams:t,downloadAccountDetailEndPoint:s,closeDrawerHandler:o,zeniAccountsConfig:a})=>{const r=w(f=>Qn(f)),d=w(f=>z(f)),c=M(),p=V(),m=_(),{accountId:x}=G(),[i,l]=u.useState("achTransfer"),[h,C]=u.useState(!1);if(D.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const{useDynamicConfig:b}=$(),{configValue:g}=b(W.zeniAccountsConfig),A=we(g),I=()=>{o(!0),m(Re())};return u.useEffect(()=>{r.reviewTransferDetail.fetchState==="Completed"&&C(!0)},[C,r.reviewTransferDetail.fetchState]),n.jsxs(n.Fragment,{children:[n.jsx(ue,{analytics:R,onLoad:f=>(S=>S.trackPageLoaded(be.Event.zeniAccountsTransferFormViewed))(f)}),n.jsx(Q,{onClose:()=>{(i==="achTransfer"&&h===!1||i==="achTransfer"&&h&&r.fetchState==="Completed")&&I()},anchor:"right",open:e,PaperProps:{style:{width:aa.overlayWidth.valuePercentage(p),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:c.colors.black,opacity:.75,cursor:"pointer"}}},children:n.jsx(sa,{onClick:f=>f.stopPropagation(),children:n.jsx(oa,{analytics:R,transferDetails:r,authParams:t,downloadAccountDetailEndPoint:s,onTransferClick:()=>{R.trackTransferBetweenAccountsFormClicked("Transfer",r.reviewTransferDetail.reviewTransferMoney.isShowDailyAchLimitWarning?"Review Split Transfer":"Review Transfer",r.transferDetailLocalData.transferFrom?.label,r.transferDetailLocalData.transferTo?.label,r.transferDetailLocalData.amount.amount,r.reviewTransferDetail.reviewTransferMoney.isShowDailyAchLimitWarning,r.reviewTransferDetail.reviewTransferMoney.transferSchedules.length,r.transferDetailLocalData.transferFrom?.accType==="paymentAccount"&&r.transferDetailLocalData.transferTo?.accType==="depositAccount"&&a.zeniAccountsConfigDetail.depositProductConfig.depositProducts?.[0].range?.[1]!=null&&r.transferDetailLocalData.amount.amount>a.zeniAccountsConfigDetail.depositProductConfig.depositProducts[0].range[1]),m(et(x))},onDismissClick:I,onSaveChangesToLocalStore:f=>{m(Xn(f))},onAnotherTransferClick:()=>{C(!1),m(Re())},currentTenant:d,zeniAccountsConfigDetail:a,currentDrawerContent:i,setCurrentDrawerContent:l,showReviewContent:h,setShowReviewContent:C,onBackClick:()=>{},maxInsuredAmount:A.maxInsuredAmount})})})]})},sa=L(X)`
|
|
38
38
|
display: flex;
|
|
39
39
|
min-height: 100%;
|
|
40
40
|
flex-direction: column;
|
|
@@ -46,7 +46,7 @@ import{j as n}from"./liveblocks-D6iO1SmY.js";import{l as Y,u as q,h as z,i as G,
|
|
|
46
46
|
flex-direction: column;
|
|
47
47
|
align-items: center;
|
|
48
48
|
background-color: ${e=>e.theme.colors.grey4};
|
|
49
|
-
`,ia=
|
|
49
|
+
`,ia=q(function(e,t){return{zeniAccountListView:Je(e),isExpressPayEnabled:t.isExpressPayEnabled,analytics:t.analytics}},function(e,t){const{navigate:s,currentTenant:o,location:a,companyId:r,handleDrawerToggle:d,analytics:c,isBillPayEnabled:p,isDebitCardFeatureEnabled:m}=t,{tenantEmailDomain:x}=o;return{onZeniAccountClick:(i,l)=>{c.trackAccountsListPageClicked("Accounts Row Item Click",l,"active");const h=ca(x,i),C=ee(a.state?.pathnameStackToGoBack,a.pathname);s(h,{state:{pathnameStackToGoBack:C}})},onSettingsClick:()=>{c.trackAccountsListPageClicked("Settings Icon"),s("setup")},onReloadTransactions:()=>{e(Qe(!1))},handleMoveMoneyOptionSelection:(i,l)=>{let h="page-not-found";i==="sendMoney"&&(h=mn(x)),i==="payBill"?h=dn(o,p,m):i==="transfer"?(h=un(x),l!=null&&e(en(l))):i==="checkDeposit"&&(h=pn(x));const C=ee(a.state?.pathnameStackToGoBack,a.pathname);s(h,{state:{pathnameStackToGoBack:C}})},unlinkPaymentAccount:(i,l)=>{c.trackAccountsListPageClicked("Unlink Account",l),e(it(i))},onFetchLinkTokenClick:(i,l)=>{e(qe("external_account",i,l))},onUpdatePaymentAccountStatus:(i,l,h)=>{e(rt(i,l,"zeni_accounts","external_account",h))},onEstablishConnectionClick:i=>{e(Ke(i,r,"external_account",void 0,"link_external_account"))},onCreateCheckingClick:i=>{e(st(i))},onClickMenuIcon:()=>{d(!0)},onTreasuryGetStartedClick:()=>{s("../../treasury/promo")},onAutoTransferClick:i=>{i?s("./auto-transfer",{state:{...a.state,scrollToAddRule:!0}}):s("./auto-transfer")}}})(Et);function xe({isTransferDrawerOpen:e,isCheckDepositDrawerOpen:t}){const s=K(),o=Y(),a=_(),r=V(),{tenantEmailDomain:d}=G(),{useDynamicConfig:c,useFeatureGate:p}=$(),m=M(),{configValue:x}=c(W.zeniAccountsConfig),{isFeatureEnabled:i}=p(O.isTreasuryEnabled),{isFeatureEnabled:l}=p(O.isDebitCardFeatureEnabled),{isFeatureEnabled:h}=p(O.isAutoTransferRuleEnabled),{isFeatureEnabled:C}=p(O.isCheckingCommentingEnabled),b=we(x),g=w(F=>z(F)),A=g.companyId??D.getSignedInUserTenant(d)?.companyId,{configValue:I}=c(W.expressPayConfig),f=I.is_enable_all_tenants===!0||I.tenant_ids!=null&&I.tenant_ids.includes(g.tenantId),[S,B]=u.useState(!1),[U,j]=u.useState(!1),[v,E]=u.useState(!1),[T,P]=u.useState(!1),y=w(F=>Je(F)),N=y.fetchState,oe=w(F=>Ce(F)),se=oe?.fetchState??"Not-Started",me=!!g.companyZeniAccountInfo?.info?.isZeniAccountEnabled,Z=ae(),H=!!g.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted,hn=!!g.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,gn=te(Z?.loggedInUserRoleMap),fn=Ae(Z?.loggedInUserRoleMap),yn=!!g.companyBillPayInfo?.info?.isBillPayEnabled,Ee=D.getSignedInUser(),xn={userId:Ee?.userId??"",sessionId:Ee?.zeniSessionId??"",tenantId:g.tenantId??""},Cn=`${Ie}/account_details`,{areTenantIdsInSync:ve}=St();u.useEffect(()=>{!S&&ve&&(B(!0),a(Qe(!1)))},[S,a,N,ve]),u.useEffect(()=>{!U&&se==="Not-Started"&&A&&(j(!0),a(ke(!0)))},[U,se,A,a]),u.useEffect(()=>{e!=null&&e===!0?E(!0):(E(!1),document.body.style.overflow="auto")},[e]),u.useEffect(()=>{P(t!=null&&t===!0)},[t]);const Pe=()=>{E(!1),o("..")},[kn,wn]=u.useState(!1),je=F=>{wn(F)},{isAiCfoAccessEnabled:An,onAskAiCfoClick:Dn}=rn({mobileExploreReferrer:"Checking Accounts"});on({isDataReady:N==="Completed"});const In=g.company!=null&&Ge(g.company),he=(i&&In)===!0&&!hn,[Sn,bn]=u.useState(!1),ge=w(F=>F.treasurySetupViewState.treasuryFundsDetails),En=ge.fundsDetails,vn=bt(En);u.useEffect(()=>{he!==!0||Sn||ge?.fetchStatus.fetchState!=="Not-Started"||(bn(!0),a(ot()))},[ge.fetchStatus,a]);const Pn=Xe(g),jn=De(l,g);return Pn===!0&&jn!==!0?n.jsx(sn,{}):me?n.jsxs(n.Fragment,{children:[y.fetchState==="Completed"&&v===!1&&T===!1?n.jsx(ue,{analytics:R,onLoad:F=>(Te=>{Te.trackAccountsListPageViewed(y.depositAccountsSelectorView.depositAccounts.length,y.externalAccountsSelectorView.paymentAccounts.length,_e(y.summary?.totalBalance.available.amount??0),_e(y.summary?.totalInterest.available.amount??0),y.zeniAccountsConfig.zeniAccountsConfigDetail.annualPercentageYield),he&&Te.trackTreasuryPromoView("Checking Promo Banner")})(F)}):null,v===!0?n.jsx(ln,{closeDrawerHandler:Pe,isTransferDrawerOpen:v,zeniAccountsConfig:y.zeniAccountsConfig,authParams:xn,downloadAccountDetailEndPoint:Cn}):null,T===!0?n.jsx(cn,{closeDrawerHandler:Pe,isCheckDepositDrawerOpen:T}):null,n.jsxs(ra,{windowSize:r,children:[n.jsx(pe,{isAppContentDrawerOpen:kn,handleDrawerToggle:je}),n.jsx(ia,{zeniBankListView:y,navigate:o,currentTenant:g,location:s,companyId:A,analytics:R,maxInsuredAmount:b.maxInsuredAmount,isExpressPayEnabled:f,isBillPayEnabled:yn,isCheckingCommentingEnabled:C,isDebitCardFeatureEnabled:l,isAutoTransferRuleEnabled:h,handleDrawerToggle:je,showTreasuryPromo:he,treasuryYieldPercentage:vn,treasuryInsuredAmount:5e5,isAiCfoAccessEnabled:An,onAskAiCfoClick:Dn})]})]}):H&&gn?n.jsx(ne,{to:"../setup"}):g.companyZeniAccountInfo?.info&&!H&&fn?n.jsx(ne,{to:"../promo",state:s.state}):n.jsx(de,{fetchState:"In-Progress",style:{backgroundColor:m.colors.grey5}})}const dn=(e,t,s)=>{const o=De(s,e),{tenantEmailDomain:a}=e;return o===!0||t===!1?`/${a}/bills`:`/${a}/bill/new`},ca=(e,t)=>`/${e}/checking/${t}`,un=(e,t)=>t==null?`/${e}/checking/transfer`:`/${e}/checking/${t}/transfer`,pn=(e,t)=>t==null?`/${e}/checking/check-deposit`:`/${e}/checking/${t}/check-deposit`,mn=e=>`/${e}/checking/express-pay`,la=L.div`
|
|
50
50
|
display: flex;
|
|
51
51
|
width: 100%;
|
|
52
52
|
flex: 1 1 auto;
|
|
@@ -54,7 +54,7 @@ import{j as n}from"./liveblocks-D6iO1SmY.js";import{l as Y,u as q,h as z,i as G,
|
|
|
54
54
|
align-items: center;
|
|
55
55
|
min-height: 100vh;
|
|
56
56
|
background-color: ${e=>e.theme.colors.grey4};
|
|
57
|
-
`,da=
|
|
57
|
+
`,da=q(function(e,t){const{currentTenant:s}=t,o=nn(e,t.accountId),a=D.getSignedInUser(),r=e.tenantState.currentTenantId,d={userId:a?.userId??"",sessionId:a?.zeniSessionId??"",tenantId:r??""},c=o.accountDetail?.id??"";return{currentTenantCompanyName:s.companyName??"",authParams:d,downloadEndPoint:`${Se.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${c}`,zeniAccountDetail:o,isExpressPayEnabled:t.isExpressPayEnabled,fetchState:o.fetchState}},function(e,t){const{navigate:s,currentTenant:o,location:a,accountId:r}=t,{tenantEmailDomain:d}=o;return{handleMoveMoneyOptionSelection:(c,p)=>{let m="page-not-found";c==="sendMoney"?m=mn(d):c==="payBill"?m=dn(o,t.isBillPayEnabled,t.isDebitCardFeatureEnabled):c==="transfer"?(m=un(d,r),p!=null&&e(en(p))):c==="checkDeposit"?(m=pn(d,r),p!=null&&e(ct(p))):c==="accountStatement"&&(m=ma(d,r));const x=ee(a.state?.pathnameStackToGoBack,a.pathname);s(m,{state:{pathnameStackToGoBack:x}})},onViewAllTransactionClick:()=>{const c=pa(d,r),p=ee(a.state?.pathnameStackToGoBack,a.pathname);s(c,{state:{pathnameStackToGoBack:p}})},onAccountDetailClick:()=>{const c=ua(d,r),p=ee(a.state?.pathnameStackToGoBack,a.pathname);s(c,{state:{pathnameStackToGoBack:p}})},onEditNameClick:c=>{e(Le(r,"editName",c))},onReloadZeniAccountDetailPage:()=>{e(tn(r,!1))},onCloseAccountClick:()=>{e(Le(r,"closeAccount",""))},onBackClick:()=>{s("../",{relative:"path"})}}})(vt);function ie({isTransferDrawerOpen:e,isCheckDepositDrawerOpen:t,isAccountInfoDrawerOpen:s}){const o=K(),a=Y(),r=_(),d=V(),{tenantEmailDomain:c,accountId:p}=G(),{useDynamicConfig:m}=$(),{useFeatureGate:x}=$(),{isFeatureEnabled:i}=x(O.isDebitCardFeatureEnabled),{isFeatureEnabled:l}=x(O.isCheckingCommentingEnabled),h=w(H=>z(H)),{configValue:C}=m(W.expressPayConfig),b=C.is_enable_all_tenants===!0||C.tenant_ids!=null&&C.tenant_ids.includes(h.tenantId),g=!!h.companyBillPayInfo?.info?.isBillPayEnabled,A=D.getSignedInUser(),I=h.companyId??D.getSignedInUserTenant(c)?.companyId,f={userId:A?.userId??"",sessionId:A?.zeniSessionId??"",tenantId:h.tenantId??""},S=`${Ie}/account_details`,[B,U]=u.useState(!1),[j,v]=u.useState(!1),[E,T]=u.useState(!1),[P,y]=u.useState(!1),N=w(H=>nn(H,p??"")),oe=N.fetchState,{isAiCfoAccessEnabled:se,onAskAiCfoClick:me}=rn({mobileExploreReferrer:"Checking Account Detail"});on({isDataReady:oe==="Completed"}),u.useEffect(()=>{B||(r(tn(p??"",!1)),U(!0))},[B,r,oe]),u.useEffect(()=>{y(s!=null&&s===!0)},[s]),u.useEffect(()=>{e!=null&&e===!0?v(!0):(v(!1),document.body.style.overflow="auto")},[e]),u.useEffect(()=>{T(t!=null&&t===!0)},[t]);const Z=()=>{y(!1),a("..")};return n.jsxs(n.Fragment,{children:[P===!0&&N.accountDetail!=null?n.jsx(Xt,{authParams:f,downloadAccountDetailEndPoint:S,closeDrawerHandler:Z,isAccountInfoDrawerOpen:P,zeniBankAccountDetail:N.accountDetail}):null,j===!0?n.jsx(ln,{closeDrawerHandler:Z,isTransferDrawerOpen:j,zeniAccountsConfig:N.zeniAccountsConfig,authParams:f,downloadAccountDetailEndPoint:S}):null,E===!0?n.jsx(cn,{closeDrawerHandler:Z,isCheckDepositDrawerOpen:E}):null,n.jsx(la,{windowSize:d,children:n.jsx(da,{navigate:a,currentTenant:h,location:o,companyId:I,isDebitCardFeatureEnabled:i,accountId:p??"",isBillPayEnabled:g,isCheckingCommentingEnabled:l,isExpressPayEnabled:b,isAiCfoAccessEnabled:se,onAskAiCfoClick:me})})]})}const ua=(e,t)=>`/${e}/checking/${t}/account-info`,pa=(e,t)=>`/${e}/checking/${t}/transactions`,ma=(e,t)=>`/${e}/checking/${t}/statements`,ha=L.div`
|
|
58
58
|
display: flex;
|
|
59
59
|
height: 100vh;
|
|
60
60
|
width: 100%;
|
|
@@ -63,4 +63,4 @@ import{j as n}from"./liveblocks-D6iO1SmY.js";import{l as Y,u as q,h as z,i as G,
|
|
|
63
63
|
overflow: auto;
|
|
64
64
|
align-items: center;
|
|
65
65
|
background-color: ${e=>e.theme.colors.grey4};
|
|
66
|
-
`;function ga(){const e=Y(),t=
|
|
66
|
+
`;function ga(){const e=Y(),t=_(),s=V(),{accountId:o}=G(),{useFeatureGate:a}=$(),{isFeatureEnabled:r}=a(O.isCheckingCommentingEnabled),[d,c]=u.useState(!1);u.useEffect(()=>{d||(c(!0),t(lt(o??"",!1)))},[d,t]);const p=w(m=>dt(m,o??""));if(D.getSignedInUser()==null)throw Error("Can't access address page without signing in...");return n.jsx(ha,{windowSize:s,children:n.jsx(Pt,{transactionListView:p,depositAccountId:o??"",isCheckingCommentingEnabled:r,onBackClick:()=>{e("../")}})})}const fa=q(function(e,t){const{companyId:s}=t;return{zeniAccountSetupView:ut(e,s),meetingUrl:"https://meetings.hubspot.com/niharn/demo-accounts?embed=true"}},function(e,t){const{navigate:s,companyId:o}=t;return{onSetupButtonClick:()=>{R.trackAccountsPromoPageClicked("Setup Accounts"),e(pt(o))},onBackClick:()=>{s("../..",{relative:"path"})},onSetupZeniAccountSuccess:()=>{s("../setup",{relative:"path"})}}})(Tt),ya=()=>{const e=Y(),t=K(),{tenantEmailDomain:s}=G(),{useDynamicConfig:o}=$(),a=M(),[r,d]=u.useState(!1),[c,p]=u.useState(!1),m=w(f=>z(f)),{configValue:x}=o(W.zeniAccountsConfig),i=we(x);u.useEffect(()=>{c===!1&&t.state?.message==="activation"&&p(!0)},[t.state]);const l=D.getSignedInUserTenant(s)?.companyId??m.companyId,h=D.getSignedInUser(),C=!!m.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted,b=f=>{d(f)};if(h==null)throw Error("Can't access Zeni account promo page without signing in...");const g=ae(),A=te(g?.loggedInUserRoleMap),I=Ae(g?.loggedInUserRoleMap);if(C&&A)return n.jsx(ne,{to:"../../checking/setup"});if(m.company?.companyZeniAccountInfo&&(!C&&A||I)){if(t.state?.message==="activation"){const f=an(t.state?.pathnameStackToGoBack);e(t.pathname,{state:{...t.state,message:void 0,pathnameStackToGoBack:f.newStack}})}return n.jsxs(n.Fragment,{children:[n.jsx(jt,{showConfetti:c}),n.jsx(ue,{analytics:R,onLoad:f=>(S=>S.trackPageLoaded(be.Event.accountsPromoPageViewed))(f)}),n.jsx(pe,{isAppContentDrawerOpen:r,handleDrawerToggle:b}),n.jsx(fa,{analytics:R,navigate:e,companyId:l,onClickMenuIcon:()=>{b(!0)},maxAnnualPercentageYield:i.maxAnnualPercentageYield,maxInsuredAmount:i.maxInsuredAmount,exampleBankBalance:3e6})]})}return n.jsx(de,{fetchState:"In-Progress",style:{backgroundColor:a.colors.grey5}})};function Za(){const e=K(),t=w(P=>z(P)),s=M(),{useFeatureGate:o,useDynamicConfig:a}=$(),r=ae(),d=te(r?.loggedInUserRoleMap),c=Ae(r?.loggedInUserRoleMap),p=!!t.company?.companyZeniAccountInfo.isZeniAccountEnabled,m=!!t.company?.companyZeniAccountInfo.isZeniAccountTOSAccepted,{isFeatureEnabled:x}=o(O.isChargeCardFeatureEnabled),{isFeatureEnabled:i}=o(O.isDebitCardFeatureEnabled),l=Xe(t),h=De(i,t),C=t?.userRole!=null&&mt(t?.userRole),b=(t?.company==null||t.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!C)&&ht(r?.loggedInUserRoleMap),g=gt(r?.loggedInUserRoleMap),A=(t?.company==null||t.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!C)&&ft(r?.loggedInUserRoleMap),{isFeatureEnabled:I}=o(O.isDepositAccountsFeatureEnabled),f=I&&!C,{configValue:S}=a(W.expressPayConfig),B=S.is_enable_all_tenants===!0||S.tenant_ids!=null&&S.tenant_ids.includes(t.tenantId),{isFeatureEnabled:U}=o(O.isAutoTransferRuleEnabled),j=Ot(t,x,i)&&!C&&yt(r?.loggedInUserRoleMap),v=xt(r?.loggedInUserRoleMap),E=f&&te(r?.loggedInUserRoleMap),T=E||Ne(r?.loggedInUserRoleMap);return n.jsxs(Ve,{children:[n.jsx(k,{path:"setup",element:n.jsx(ze,{isBillPayAdminLevelAccess:b,isUserHasOnlyBillPayAccess:g,isReimbursementAdminLevelAccess:A,isZeniAccountAdminLevelAccess:E,isChargeCardAdminLevelAccess:j,isUserHasOnlyCardAccess:v,productType:"zeni_accounts",type:"setup"})}),n.jsx(k,{path:"verification",element:n.jsx(ze,{isBillPayAdminLevelAccess:b,isUserHasOnlyBillPayAccess:g,isReimbursementAdminLevelAccess:A,isZeniAccountAdminLevelAccess:E,isChargeCardAdminLevelAccess:j,isUserHasOnlyCardAccess:v,productType:"zeni_accounts",type:"verification"})}),U?n.jsxs(n.Fragment,{children:[n.jsx(k,{path:"auto-transfer",element:n.jsx(Me,{})}),T?n.jsx(k,{path:"auto-transfer/:ruleId/edit",element:n.jsx(Me,{isEditDrawerOpen:!0})}):null]}):n.jsx(k,{path:"auto-transfer",element:n.jsx(ce,{})}),B&&d?n.jsxs(n.Fragment,{children:[n.jsx(k,{path:"express-pay",element:n.jsx(re,{})}),n.jsx(k,{path:"express-pay/add-ach",element:n.jsx(re,{isAddACHDrawerOpen:!0})}),n.jsx(k,{path:"express-pay/add-wire/add-address",element:n.jsx(re,{isAddAddressDrawerOpen:!0})}),n.jsx(k,{path:"express-pay/add-wire",element:n.jsx(re,{isAddWireDrawerOpen:!0})})]}):n.jsx(k,{path:"express-pay",element:n.jsx(ce,{})}),n.jsx(k,{path:"promo",element:n.jsx(ya,{})}),l&&!h?n.jsx(k,{path:"/*",element:n.jsx(sn,{})}):p?n.jsxs(n.Fragment,{children:[n.jsx(k,{path:"/",element:n.jsx(xe,{})}),n.jsx(k,{path:"transfer",element:n.jsx(xe,{isTransferDrawerOpen:!0})}),n.jsx(k,{path:"check-deposit",element:n.jsx(xe,{isCheckDepositDrawerOpen:!0})}),n.jsx(k,{path:":accountId/*",element:n.jsx(xa,{})}),n.jsx(k,{path:"*",element:n.jsx(ce,{})})]}):m&&d?n.jsx(k,{path:"*",element:n.jsx(ne,{to:"../setup"})}):t.company?.companyZeniAccountInfo&&c?n.jsx(k,{path:"*",element:n.jsx(ne,{to:"../promo",state:e.state})}):n.jsx(k,{path:"*",element:n.jsx(de,{fetchState:"In-Progress",style:{backgroundColor:s.colors.grey5,boxShadow:`0px 2px ${Bt.sp1} ${s.colors.dropShadowNormal}`}})})]})}function xa(){return n.jsxs(Ve,{children:[n.jsx(k,{path:"/",element:n.jsx(ie,{})}),n.jsx(k,{path:"account-info",element:n.jsx(ie,{isAccountInfoDrawerOpen:!0})}),n.jsx(k,{path:"transfer",element:n.jsx(ie,{isTransferDrawerOpen:!0})}),n.jsx(k,{path:"check-deposit",element:n.jsx(ie,{isCheckDepositDrawerOpen:!0})}),n.jsx(k,{path:"transactions",element:n.jsx(ga,{})}),n.jsx(k,{path:"statements",element:n.jsx(_t,{})}),n.jsx(k,{path:"*",element:n.jsx(ce,{})})]})}export{Za as default};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{j as i}from"./liveblocks-BSDLCmF2.js";import{a as u}from"./sentry-67DqaLi1.js";import{h as x,u as j,g as C,i as T,j as p}from"./core-B20PugrR.js";import{ID as s,IC as $,OT as v,eP as B,OU as D}from"./zeni-epic-state-B3AwsZqW.js";import{p as P,at as g,m as z,z as E,x as L,c5 as U,r as N}from"./index-CtCI_jgi.js";import{n as _}from"./mui-BBkBdMVO.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]="256f5445-5792-44af-a153-ccbf91479b0b",e._sentryDebugIdIdentifier="sentry-dbid-256f5445-5792-44af-a153-ccbf91479b0b")}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 F(){const e=x(),n=j(),d=P(),l=C();let{accountId:a}=T(),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,y]=u.useState(!1),b=z();u.useEffect(()=>{m||(y(!0),n($(a??"",!1)))},[m,n]);const o=p(t=>v(t,a??"")),h=()=>{const t=N(l.state?.pathnameStackToGoBack),S=t.poppedPathname??"..";e(S,{state:{pathnameStackToGoBack:t.newStack}})},r=E.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(L,{fetchState:"In-Progress",style:{backgroundColor:b.colors.grey5}}):i.jsx(G,{windowSize:d,children:i.jsx(U,{currentTenantCompanyName:k,statementListView:o,accountLast4:w,onBackClick:h,authParams:I,downloadEndPoint:f})})}export{F as Z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./sentry-
|
|
1
|
+
import"./sentry-67DqaLi1.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};
|