@zeniai/web-app-ui 5.3.69-dev → 5.3.70-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-CAQA7lne.js → AccountMappingScreen-D3djYfgp.js} +2 -2
- package/dist/assets/{ActualMatchingMatchDetailScreen-BifxUBTA.js → ActualMatchingMatchDetailScreen-Cq0gOwnW.js} +1 -1
- package/dist/assets/AddressRoutes-DgNiwEJi.js +1 -0
- package/dist/assets/{AddressScreen-icxXA3w4.js → AddressScreen-BwYO5U79.js} +2 -2
- package/dist/assets/AiCfoScreen-DA63Fu9p.js +22 -0
- package/dist/assets/{AppDrawer-hE6okzG9.js → AppDrawer-BOrQkKOR.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-eAwSxg7-.js → BillPayApprovalRoutes-B55H8WmV.js} +1 -1
- package/dist/assets/{BillPayRoutes-CPSa9tRu.js → BillPayRoutes-YFeZZcxr.js} +18 -18
- package/dist/assets/{BusinessVerificationPageScreen-XOO4dt2W.js → BusinessVerificationPageScreen-DNvCS3RC.js} +2 -2
- package/dist/assets/{CardsAiCfoScreen-oZaMLLYZ.js → CardsAiCfoScreen-WX6-qDlM.js} +1 -1
- package/dist/assets/{ChargeCardRoutes-CR22MdW5.js → ChargeCardRoutes-DgHeyyF1.js} +1 -1
- package/dist/assets/CompanyPassportScreen-2YW4iiFQ.js +1 -0
- package/dist/assets/ConnectionAuthScreen-C3krXtMn.js +11 -0
- package/dist/assets/CustomerOnboardingAuthScreen-DuDZDqm3.js +1 -0
- package/dist/assets/CustomerOnboardingRoutes-EqYjJciA.js +30 -0
- package/dist/assets/{DashboardRoutes-ksNQmz1b.js → DashboardRoutes-C3kckIqd.js} +4 -4
- package/dist/assets/{DefaultTenantHome-6h7pYNWH.js → DefaultTenantHome-d_TjwNxm.js} +1 -1
- package/dist/assets/DomesticWireDetailScreen-HvKTTv-k.js +18 -0
- package/dist/assets/{DrawerScreen-D2sNIMxZ.js → DrawerScreen-lfwUNd7g.js} +1 -1
- package/dist/assets/EntityDetailRoutes-C7CCgNbG.js +1 -0
- package/dist/assets/{ExpenseAutomationRoutes-WQsWVsrz.js → ExpenseAutomationRoutes-DhSen9oE.js} +7 -7
- package/dist/assets/{FeaturePreviewScreen-DrW5sKTA.js → FeaturePreviewScreen-DJDJb7ut.js} +1 -1
- package/dist/assets/HubSpotOAuthCallbackScreen-2bg-7CdA.js +1 -0
- package/dist/assets/{InboxNotificationsProvider-D6GwXgCp.js → InboxNotificationsProvider-RMyde6sE.js} +1 -1
- package/dist/assets/{InvoicingRoutes-EwIfHCd8.js → InvoicingRoutes-DbeQ0GGQ.js} +2 -2
- package/dist/assets/MagicLinkRoutes-BJYHiuf3.js +72 -0
- package/dist/assets/MagicLinkSignInScreen-C_8LOIdG.js +12 -0
- package/dist/assets/{MobileAppDrawer-r4WOmIWX.js → MobileAppDrawer-FDyQcQG6.js} +1 -1
- package/dist/assets/NotFoundScreen-Pkv6JCVI.js +1 -0
- package/dist/assets/NotificationRoutes-DRxPH61k.js +1 -0
- package/dist/assets/OAuthConsentScreen-o8HVpzqy.js +1 -0
- package/dist/assets/{PandLWithForecastRoutes-DNnwlAH1.js → PandLWithForecastRoutes-BoCd9gMg.js} +1 -1
- package/dist/assets/{PaymentLinkScreen-C_1-1L8E.js → PaymentLinkScreen-BD2vlE8X.js} +1 -1
- package/dist/assets/PeopleRoutes-BrDezhiU.js +22 -0
- package/dist/assets/PerformanceRoutes-CkvcEEfk.js +1 -0
- package/dist/assets/{Preview-CCdAPHVf.js → Preview-CHfSVeda.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-Cbteo3If.js → QBOConnectionScreen-rYcXSEuv.js} +1 -1
- package/dist/assets/ReimbursementApprovalRoutes-DeuDXp10.js +1 -0
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-Bs4p5t9E.js → ReimbursementApprovalRuleDetailScreen-Dc1dHQbP.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-BbvmwzbP.js → ReimbursementRoutes-BiK6w-bL.js} +4 -4
- package/dist/assets/{ReportsRoutes-DHQlYB_r.js → ReportsRoutes-B0eprtYT.js} +1 -1
- package/dist/assets/RewardsRoutes-BYgzQdTF.js +1 -0
- package/dist/assets/ScheduleDetailsPrepaidExpensesScreen-DWKBiKA_.js +33 -0
- package/dist/assets/ScreenRoutes-CSYASqmo.js +2 -0
- package/dist/assets/{SettingsRoutes-CN7GV-oe.js → SettingsRoutes-C5_WEhpe.js} +1 -1
- package/dist/assets/{SetupPagesScreen-BJMKj009.js → SetupPagesScreen-D70oyW5d.js} +5 -5
- package/dist/assets/{SignInScreen-atM-bsdO.js → SignInScreen-CGIJ3MaT.js} +1 -1
- package/dist/assets/SignOutScreen-ChO6ZqKr.js +9 -0
- package/dist/assets/{TaskListScreen-B70VtP2u.js → TaskListScreen-D7zAKLvf.js} +2 -2
- package/dist/assets/TaskRoutes-BFQ2Wv7G.js +9 -0
- package/dist/assets/TransactionDetailRoutes-8wfYIjz_.js +1 -0
- package/dist/assets/{TransactionDetailScreen-1gITEJfr.js → TransactionDetailScreen-Dakxd2K4.js} +2 -2
- package/dist/assets/TransactionListRoutes-wVc7qhB0.js +1 -0
- package/dist/assets/{TreasuryRoutes-DWmpGaGA.js → TreasuryRoutes-C8xJsRN4.js} +5 -5
- package/dist/assets/{VendorsRoutes-B0HnUIhj.js → VendorsRoutes-BEDJSvt_.js} +10 -10
- package/dist/assets/WiseConfirmationScreen-Dv4iPWVl.js +12 -0
- package/dist/assets/{ZeniAccountRoutes-BI-IsmW_.js → ZeniAccountRoutes-BZbo3Uuo.js} +10 -10
- package/dist/assets/ZeniAccountStatementScreen-CyKPDLyf.js +9 -0
- package/dist/assets/{accountMappingHelper-D-qmKFUw.js → accountMappingHelper-CDXfdGYB.js} +1 -1
- package/dist/assets/{analytics-C6U4wpfB.js → analytics-Bwul-sh2.js} +1 -1
- package/dist/assets/{analyticsHelper-qAafKEWE.js → analyticsHelper-D_76GpgW.js} +1 -1
- package/dist/assets/{core-Dk5JD2l2.js → core-BTRpO5kD.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-NBY1IhYb.js → decodeURIComponentSafe-gQrUmSgy.js} +1 -1
- package/dist/assets/{dnd-CSZKLHxv.js → dnd-2ZjyQ0g9.js} +1 -1
- package/dist/assets/{empty-CDCQLT9Y.js → empty-Cb7Nu9Hh.js} +1 -1
- package/dist/assets/{empty-D0msLZIr.js → empty-W69oI4tU.js} +1 -1
- package/dist/assets/{emptyVideoElement-EOYyzQLg.js → emptyVideoElement-BykFTq6U.js} +1 -1
- package/dist/assets/epic-dVflju6K.js +2 -0
- package/dist/assets/expenseAutomationHelper-D83VUSa4.js +1 -0
- package/dist/assets/{getLocaleForTenant-Tff_ZVu3.js → getLocaleForTenant-DKQ9xDck.js} +1 -1
- package/dist/assets/{index-Cr97VFCj.js → index-BNStHB6B.js} +1 -1
- package/dist/assets/{index-CaO8T0Mn.js → index-BUq8vLqs.js} +15939 -15922
- package/dist/assets/{index-B_zuMfAK.js → index-BpHR89qw.js} +1 -1
- package/dist/assets/{index-CTXzqHUs.js → index-CyWlZL1X.js} +2 -2
- package/dist/assets/{index-BFxiz-4U.js → index-Ds59pPsN.js} +1 -1
- package/dist/assets/{index-B_rhGKNa.js → index-Dt8qJC5s.js} +1 -1
- package/dist/assets/{index-BzY7ptmA.js → index-EIrua76A.js} +1 -1
- package/dist/assets/{index-Cos3hzZM.js → index-O5NQ6O4f.js} +1 -1
- package/dist/assets/{lexical-BtWXzxnq.js → lexical-B4Vx7iXM.js} +1 -1
- package/dist/assets/{liveblocks-DtuUpF5h.js → liveblocks-CSh_vLcI.js} +1 -1
- package/dist/assets/{lottie-BlG_vWSt.js → lottie-CkDkDB9t.js} +1 -1
- package/dist/assets/{mui-DAOUhz91.js → mui-DxxQrDXb.js} +1 -1
- package/dist/assets/{pathToGoBack-CcxULKW_.js → pathToGoBack-CVTu70jh.js} +1 -1
- package/dist/assets/{pdf-iocWnEuY.js → pdf-B5u-xbSo.js} +3 -3
- package/dist/assets/{pdf-lib-BLLTrAOR.js → pdf-lib-reHt5MEc.js} +1 -1
- package/dist/assets/{plaid-DBHSfOGH.js → plaid-BETTZw7O.js} +1 -1
- package/dist/assets/{pusher-3cjBHlw_.js → pusher-Ckps79Gu.js} +1 -1
- package/dist/assets/{react-DLzgi1In.js → react-2QuTt-Yq.js} +1 -1
- package/dist/assets/{react-vdYrKzLj.js → react-BEHSpArB.js} +1 -1
- package/dist/assets/{react-BTlfsyLA.js → react-BwbSXuKk.js} +1 -1
- package/dist/assets/{react-DzzhDNXC.js → react-CnCpDB3_.js} +1 -1
- package/dist/assets/{react-CNVeotaZ.js → react-D5AIOkBV.js} +1 -1
- package/dist/assets/{react-D62BIM3q.js → react-DAYatQOH.js} +1 -1
- package/dist/assets/{recharts-BMD3jyO6.js → recharts-TU-ixTpA.js} +1 -1
- package/dist/assets/{routePaths-CIClX-hy.js → routePaths-BOMJaLfj.js} +1 -1
- package/dist/assets/{sentry-BWDuLt7o.js → sentry-BbRn6Rps.js} +1 -1
- package/dist/assets/{stripSplatSuffix-KkY0P5Vm.js → stripSplatSuffix-CHEOIiL-.js} +1 -1
- package/dist/assets/{url-CCl9sM9J.js → url-COMcQU2v.js} +1 -1
- package/dist/assets/{url-YYqHrm-X.js → url-DFeqMB02.js} +1 -1
- package/dist/assets/{useActualMatchingMatchDetail-03OPYHW8.js → useActualMatchingMatchDetail-Boxo0AoI.js} +1 -1
- package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-BdGVlzMy.js → useAiCfoDashboardSuggestedQuestionsChips-B1P2UXZw.js} +1 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-ClE0s8SA.js +1 -0
- package/dist/assets/{useChargeCardPusherEvents-Z8m3rGDA.js → useChargeCardPusherEvents-XNiZ825w.js} +1 -1
- package/dist/assets/{useDeviceId-BRjUTxWs.js → useDeviceId-BNqfuCC6.js} +1 -1
- package/dist/assets/{useEmailConnectResultRefresh-xLk05vNk.js → useEmailConnectResultRefresh-C4LXGHtc.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-Decdti18.js → useInitialThreadRequest-8iuM_OK9.js} +1 -1
- package/dist/assets/{useTaskManagerAccess-CSCgZk-0.js → useTaskManagerAccess-Cv2RmrOC.js} +1 -1
- package/dist/assets/{useTaskManagerPusherEvents-9oqzMu2Z.js → useTaskManagerPusherEvents-D5RRqeH4.js} +1 -1
- package/dist/assets/{utils-CWVNtCN5.js → utils-CG6WKZWt.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-BKpEvUWX.js → withTransactionSidePanel-jttxQkuf.js} +5 -5
- package/dist/assets/{zeni-epic-state-BtP47QJT.js → zeni-epic-state-GGdMfKwk.js} +6 -6
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/AddressRoutes-D2DM52hy.js +0 -1
- package/dist/assets/AiCfoScreen-BWbqBoIu.js +0 -22
- package/dist/assets/CompanyPassportScreen-Cy2hV9k7.js +0 -1
- package/dist/assets/ConnectionAuthScreen-BBARCtpg.js +0 -11
- package/dist/assets/CustomerOnboardingAuthScreen-B9cNdta1.js +0 -1
- package/dist/assets/CustomerOnboardingRoutes-DaBtZTum.js +0 -30
- package/dist/assets/DomesticWireDetailScreen-BYIVpvay.js +0 -18
- package/dist/assets/EntityDetailRoutes-DaTOqhWC.js +0 -1
- package/dist/assets/HubSpotOAuthCallbackScreen-CDRkL0Tq.js +0 -1
- package/dist/assets/MagicLinkRoutes-Df_wnLE7.js +0 -72
- package/dist/assets/MagicLinkSignInScreen-CByT-Ct-.js +0 -12
- package/dist/assets/NotFoundScreen-BbJtMThz.js +0 -1
- package/dist/assets/NotificationRoutes-CxCX3W_0.js +0 -1
- package/dist/assets/OAuthConsentScreen-luQCTUbA.js +0 -1
- package/dist/assets/PeopleRoutes-BInCnWy4.js +0 -22
- package/dist/assets/PerformanceRoutes-cn6KpA4Q.js +0 -1
- package/dist/assets/ReimbursementApprovalRoutes-pw9U836q.js +0 -1
- package/dist/assets/RewardsRoutes--4mAjEXA.js +0 -1
- package/dist/assets/ScheduleDetailsPrepaidExpensesScreen-DjYg30gm.js +0 -33
- package/dist/assets/ScreenRoutes-0M7Mtqep.js +0 -2
- package/dist/assets/SignOutScreen-iiZR9Vvf.js +0 -9
- package/dist/assets/TaskRoutes-Bq52Yuvt.js +0 -9
- package/dist/assets/TransactionDetailRoutes-DliVWUyB.js +0 -1
- package/dist/assets/TransactionListRoutes-DoKdE5EQ.js +0 -1
- package/dist/assets/WiseConfirmationScreen-CmQFx7C9.js +0 -12
- package/dist/assets/ZeniAccountStatementScreen-CoNFUylV.js +0 -9
- package/dist/assets/epic-BwpjzDGA.js +0 -2
- package/dist/assets/expenseAutomationHelper-BwdyIQYD.js +0 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-BeCZgIua.js +0 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import{j as o}from"./liveblocks-CSh_vLcI.js";import{a as f}from"./sentry-BbRn6Rps.js";import{t as u,u as h,j as y,N as b}from"./core-BTRpO5kD.js";import{UK as I,gl as w,JK as j}from"./zeni-epic-state-GGdMfKwk.js";import{z as l,a7 as x,af as S,ag as D}from"./index-BUq8vLqs.js";import{n as c}from"./mui-DxxQrDXb.js";import"./recharts-TU-ixTpA.js";import"./analytics-Bwul-sh2.js";import"./plaid-BETTZw7O.js";import"./dnd-2ZjyQ0g9.js";import"./stripe-cKAAJElX.js";import"./lottie-CkDkDB9t.js";import"./lexical-B4Vx7iXM.js";import"./pdf-B5u-xbSo.js";import"./utils-CG6WKZWt.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]="9171c109-f313-4e1e-a0de-9c2cbb13ff70",e._sentryDebugIdIdentifier="sentry-dbid-9171c109-f313-4e1e-a0de-9c2cbb13ff70")}catch{}})();const A=()=>{const[e]=u(),t=e.get("code")??"",s=e.get("state")??"",g=e.get("profileId")??"",[n,p]=f.useState(!1),a=h(),i=y((m=>I(m))),r=l.getSignedInUser(),d=l.getSignedInUserTenantWithId(s);if(r==null||d==null)return o.jsx(b,{to:"/signin/auth",replace:!0});if(r==null)throw Error("Can't access this page without signing in...");return w(r.userId,r.zeniSessionId,d?.tenantId),f.useEffect((()=>{n||(p(!0),a(j(t,g,s)))}),[n,a]),i.fetchState==="Error"?o.jsx(E,{children:o.jsx(_,{children:i.error?.message??""})}):(i.fetchState==="Completed"&&window.close(),o.jsx(x,{fetchState:"In-Progress"}))},E=c.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 100vh;
|
|
5
|
+
flex-direction: row;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
align-items: center;
|
|
8
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
9
|
+
`,_=c(D.LargeRegular)`
|
|
10
|
+
display: flex;
|
|
11
|
+
color: ${S.important};
|
|
12
|
+
`;export{A as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e}from"./liveblocks-
|
|
1
|
+
import{j as e}from"./liveblocks-CSh_vLcI.js";import{u as z,h as ne,g as N,i as W,j as k,l as ae,N as Q,n as Re,o as x}from"./core-BTRpO5kD.js";import{$x as $e,LC as Ue,$y as Fe,fI as R,GP as ze,$z as An,cv as ee,cw as _e,GJ as wn,$A as Dn,$B as kn,GM as In,GT as me,GG as Sn,GD as Pn,Z5 as ce,$C as bn,Pa as vn,X1 as jn,Pc as En,mL as Pe,$D as Tn,v1 as Me,uR as Ve,mC as Ze,mF as be,X2 as ve,X3 as Bn,$E as On,mE as Ln,m$ as Rn,mt as $n,kT as Un,kS as Fn,$F as zn,$G as ge,OT as _n,$H as Mn,$I as Vn,Zl as fe,$J as je,$K as Zn,Pn as Gn,ZI as Hn,MK as Ge,Ck as He,$L as Nn,Pk as Wn,$M as Ne,db as ye,Pr as We,d$ as Ke,e0 as xe,Pp as Kn,ME as Yn,Ph as Xn,$N as Ye,$O as Xe,OV as qe,P3 as Ee,$P as qn,Zz as Jn,Ps as Qn,bq as ea,bK as na,cH as aa,bL as ta,bu as oa,Us as sa}from"./zeni-epic-state-GGdMfKwk.js";import{W as te,c as Z,g as V,z as b,av as Ce,E as $,a7 as le,cX as ra,a1 as _,ab as K,a4 as Je,l as ia,s as Te,m as L,cY as ca,ae as Ae,cZ as la,a8 as de,c_ as da,T as we,bi as H,c$ as ua,aq as pa,as as Qe,d0 as Be,d1 as ma,p as ie,d2 as ga,ai as ha,d3 as fa,d4 as ya,h as xa,N as Ca}from"./index-BUq8vLqs.js";import{n as U,D as Y,S as X}from"./mui-DxxQrDXb.js";import J from"./NotFoundScreen-Pkv6JCVI.js";import{S as Oe}from"./SetupPagesScreen-D70oyW5d.js";import{F as en}from"./FeaturePreviewScreen-DJDJb7ut.js";import{a as g}from"./sentry-BbRn6Rps.js";import{M as ue}from"./MobileAppDrawer-FDyQcQG6.js";import{A as Aa,D as wa,V as Da}from"./DomesticWireDetailScreen-HvKTTv-k.js";import{A as ka}from"./AddressScreen-BwYO5U79.js";import{u as nn}from"./useAskAiCfoHostNavButtonProps-ClE0s8SA.js";import{Z as Ia}from"./ZeniAccountStatementScreen-CyKPDLyf.js";import"./recharts-TU-ixTpA.js";import"./analytics-Bwul-sh2.js";import"./plaid-BETTZw7O.js";import"./dnd-2ZjyQ0g9.js";import"./stripe-cKAAJElX.js";import"./lottie-CkDkDB9t.js";import"./lexical-B4Vx7iXM.js";import"./pdf-B5u-xbSo.js";import"./utils-CG6WKZWt.js";import"./BusinessVerificationPageScreen-DNvCS3RC.js";import"./routePaths-BOMJaLfj.js";import"./analyticsHelper-D_76GpgW.js";import"./InboxNotificationsProvider-RMyde6sE.js";import"./useTaskManagerAccess-Cv2RmrOC.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]="feb9e6c3-32cb-439d-ae05-6186570460dc",n._sentryDebugIdIdentifier="sentry-dbid-feb9e6c3-32cb-439d-ae05-6186570460dc")}catch{}})();const Sa=U.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
width: 100%;
|
|
@@ -6,15 +6,15 @@ import{j as e}from"./liveblocks-DtuUpF5h.js";import{u as _,h as ne,g as N,i as W
|
|
|
6
6
|
flex-direction: column;
|
|
7
7
|
align-items: center;
|
|
8
8
|
background-color: ${n=>n.theme.colors.grey4};
|
|
9
|
-
`;function Le({isEditDrawerOpen:n}){const a=$(),[r,t]=g.useState(!1),{autoTransferRulePageProps:o,isLoading:i}=(function({isEditDrawerOpen:d=!1}={}){const c=
|
|
9
|
+
`;function Le({isEditDrawerOpen:n}){const a=$(),[r,t]=g.useState(!1),{autoTransferRulePageProps:o,isLoading:i}=(function({isEditDrawerOpen:d=!1}={}){const c=z(),p=ne(),h=N(),{ruleId:y,tenantEmailDomain:s}=W(),l=te(),{useFeatureGate:f}=Z(),m=k((u=>$e(u))),P=k((u=>Ue(u.depositAccountState,u.depositAccountListState))),D=k((u=>Fe(u))),w=k((u=>R(u))),{isFeatureEnabled:I}=f(V.isTreasuryEnabled),C=m?.fetchState??"Not-Started",A=w?.companyId??(s==null?void 0:b.getSignedInUserTenant(s)?.companyId);g.useEffect((()=>{C==="Not-Started"&&A!=null&&c(ze(!0))}),[c,C,A]);const E=m?.fetchState!=="Completed";if(E)return{autoTransferRulePageProps:void 0,isLoading:E};const T=w?.company!=null&&An(w.company),v=!!(I&&T),j=ee(l?.loggedInUserRoleMap)||_e(l?.loggedInUserRoleMap),O=b.getSignedInUser(),S={userId:O?.userId??"",sessionId:O?.zeniSessionId??"",tenantId:w?.tenantId??""},B=!!h.state?.scrollToAddRule;return{isLoading:E,autoTransferRulePageProps:{autoTransferRuleView:m,companyName:w?.companyName??"",hasAdminLevelAccess:j,includeTreasuryOption:v,transferLimit:5e5,authParams:S,currentTenant:w,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(wn())}}}})({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 K(100,100,58)},ba=({vendorId:n,isDrawerOpen:a,closeDrawerHandler:r})=>{const t=z(),o=$(),i=_();if(b.getSignedInUser()==null)throw Error("Can't access ach account page without signing in...");return e.jsx(Y,{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(Aa,{vendorIdParam:n,accountContext:"express-pay"})})})},va=U(X)`
|
|
10
10
|
display: flex;
|
|
11
11
|
min-height: 100%;
|
|
12
12
|
flex-direction: column;
|
|
13
|
-
`,ja={overlayWidth:new
|
|
13
|
+
`,ja={overlayWidth:new K(100,100,58)},Ea=({isDrawerOpen:n,closeDrawerHandler:a})=>{const r=z(),t=$(),o=_();if(b.getSignedInUser()==null)throw Error("Can't access address page without signing in...");return e.jsx(Y,{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=U(X)`
|
|
14
14
|
display: flex;
|
|
15
15
|
min-height: 100%;
|
|
16
16
|
flex-direction: column;
|
|
17
|
-
`,Ba={overlayWidth:new
|
|
17
|
+
`,Ba={overlayWidth:new K(100,100,58)},Oa=({vendorId:n,isDrawerOpen:a,closeDrawerHandler:r})=>{const t=z(),o=$(),i=_();if(b.getSignedInUser()==null)throw Error("Can't access ach account page without signing in...");return e.jsx(Y,{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(La,{onClick:d=>d.stopPropagation(),children:e.jsx(wa,{vendorIdParam:n,accountContext:"express-pay"})})})},La=U(X)`
|
|
18
18
|
display: flex;
|
|
19
19
|
min-height: 100%;
|
|
20
20
|
flex-direction: column;
|
|
@@ -26,19 +26,19 @@ import{j as e}from"./liveblocks-DtuUpF5h.js";import{u as _,h as ne,g as N,i as W
|
|
|
26
26
|
flex-direction: column;
|
|
27
27
|
align-items: center;
|
|
28
28
|
background-color: ${n=>n.theme.colors.grey4};
|
|
29
|
-
`,$a=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:`${Ae.fileMicroServiceBaseUrl}`},vendorSearchAutoCompleteData:{autoCompleteText:c,entityAutoCompleteView:p},analytics:a.analytics}}),(function(n,a){const{navigate:r}=a;return{onSaveVendor:t=>{n(Fn(t,void 0,void 0,!0))},saveVendorDetailLocalData:(t,o)=>{n(be({vendorId:o,localData:t}))},saveExpressPayLocalData:t=>{n(Un({localData:t}))},onVendorSelected:t=>{t!=null&&n($n(t,!1))},updateSelectedVendorForCreate:t=>{n(Rn(t))},initializeVendorAddress:()=>{n(Ln())},resetVendorSaveStatus:t=>{n(On({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=N(),i=
|
|
29
|
+
`,$a=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:`${Ae.fileMicroServiceBaseUrl}`},vendorSearchAutoCompleteData:{autoCompleteText:c,entityAutoCompleteView:p},analytics:a.analytics}}),(function(n,a){const{navigate:r}=a;return{onSaveVendor:t=>{n(Fn(t,void 0,void 0,!0))},saveVendorDetailLocalData:(t,o)=>{n(be({vendorId:o,localData:t}))},saveExpressPayLocalData:t=>{n(Un({localData:t}))},onVendorSelected:t=>{t!=null&&n($n(t,!1))},updateSelectedVendorForCreate:t=>{n(Rn(t))},initializeVendorAddress:()=>{n(Ln())},resetVendorSaveStatus:t=>{n(On({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=N(),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),[w,I]=g.useState(!1),[C,A]=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?A(!0):(A(!1),document.body.style.overflow="auto")}),[r]),g.useEffect((()=>{y==="Not-Started"&&i(vn(!0,!0))}),[y,i]);const O=ia(l.vendorViewDetails.bankAccountCreationState?.fetchState);if(g.useEffect((()=>{O==="In-Progress"&&l.vendorViewDetails.bankAccountCreationState?.fetchState==="Completed"&&B()}),[O,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,w===!0?e.jsx(Oa,{vendorId:f,closeDrawerHandler:B,isDrawerOpen:w}):null,C===!0?e.jsx(Ea,{closeDrawerHandler:B,isDrawerOpen:C}):null,e.jsx(Da,{vendorId:f,isExpressPayPage:!0}),e.jsx($a,{navigate:t,location:o,companyId:m,accountId:j,analytics:L,currentTenant:s,vendorId:f,roleMap:h?.loggedInUserRoleMap,isSettings:Te(o),expressPayDetails:l,onClickMenuIcon:()=>{S(!0)}})]})}const Ua={overlayWidth:new K(100,100,58)},Fa=({authParams:n,downloadAccountDetailEndPoint:a,isAccountInfoDrawerOpen:r,zeniBankAccountDetail:t,closeDrawerHandler:o})=>{const i=$(),d=_(),c=k((s=>Fe(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(Y,{anchor:"right",open:r,PaperProps:{style:{width:Ua.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=U(X)`
|
|
30
30
|
display: flex;
|
|
31
31
|
min-height: 100%;
|
|
32
32
|
flex-direction: column;
|
|
33
|
-
`,
|
|
33
|
+
`,_a={overlayWidth:new K(100,100,58)},an=({isCheckDepositDrawerOpen:n,closeDrawerHandler:a})=>{const r=$(),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:L,checkDeposit:h,filesEndPoint:`${Ae.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:L,onLoad:s=>(l=>l.trackPageLoaded(we.Event.accountsDepositCheckFormViewed))(s)}),e.jsx(Y,{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=U(X)`
|
|
34
34
|
display: flex;
|
|
35
35
|
min-height: 100%;
|
|
36
36
|
flex-direction: column;
|
|
37
|
-
`,Va={overlayWidth:new
|
|
37
|
+
`,Va={overlayWidth:new K(100,100,58)},Za=ae((function(n,a){const r=a.currentTenant?.companyId;return{plaidConnectionDetails:Hn(n,r,"zeni_accounts","external_account").plaidConnectionDetails,depositAccountListView:Ue(n.depositAccountState,n.depositAccountListState)}}),(function(n,a){return{onReviewClick:()=>n(Wn()),clearReviewTransferDetail:()=>n(Nn()),onFetchLinkTokenClick:r=>{n(He("external_account",r))},onEstablishConnectionClick:r=>{n(Ge(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=$(),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(H.zeniAccountsConfig),w=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:L,onLoad:C=>(A=>A.trackPageLoaded(we.Event.zeniAccountsTransferFormViewed))(C)}),e.jsx(Y,{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(Ga,{onClick:C=>C.stopPropagation(),children:e.jsx(Za,{analytics:L,transferDetails:i,authParams:a,downloadAccountDetailEndPoint:r,onTransferClick:()=>{L.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(Gn(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:w.maxInsuredAmount})})})]})},Ga=U(X)`
|
|
38
38
|
display: flex;
|
|
39
39
|
min-height: 100%;
|
|
40
40
|
flex-direction: column;
|
|
41
|
-
`,
|
|
41
|
+
`,Ha=U.div`
|
|
42
42
|
display: flex;
|
|
43
43
|
min-height: 100%;
|
|
44
44
|
width: 100%;
|
|
@@ -46,7 +46,7 @@ import{j as e}from"./liveblocks-DtuUpF5h.js";import{u as _,h as ne,g as N,i as W
|
|
|
46
46
|
flex-direction: column;
|
|
47
47
|
align-items: center;
|
|
48
48
|
background-color: ${n=>n.theme.colors.grey4};
|
|
49
|
-
`,Na=ae((function(n,a){return{zeniAccountListView:Ne(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
|
+
`,Na=ae((function(n,a){return{zeniAccountListView:Ne(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(Ye(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(Xn(s))},onFetchLinkTokenClick:(s,l)=>{n(He("external_account",s,l))},onUpdatePaymentAccountStatus:(s,l,f)=>{n(Yn(s,l,"zeni_accounts","external_account",f))},onEstablishConnectionClick:s=>{n(Ge(s,i,"external_account",void 0,"link_external_account"))},onCreateCheckingClick:s=>{n(Kn(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=N(),t=ne(),o=z(),i=_(),{tenantEmailDomain:d}=W(),{useDynamicConfig:c,useFeatureGate:p}=Z(),h=$(),{configValue:y}=c(H.zeniAccountsConfig),{isFeatureEnabled:s}=p(V.isDebitCardFeatureEnabled),{isFeatureEnabled:l}=p(V.isAutoTransferRuleEnabled),f=fe(y),m=k((F=>R(F))),P=m.companyId??b.getSignedInUserTenant(d)?.companyId,{configValue:D}=c(H.expressPayConfig),w=D.is_enable_all_tenants===!0||D.tenant_ids!=null&&D.tenant_ids.includes(m.tenantId),[I,C]=g.useState(!1),[A,E]=g.useState(!1),[T,v]=g.useState(!1),[j,O]=g.useState(!1),S=k((F=>Ne(F))),B=S.fetchState,u=k((F=>$e(F))),M=u?.fetchState??"Not-Started",pe=!!m.companyZeniAccountInfo?.info?.isZeniAccountEnabled,oe=te(),G=!!m.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted,q=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((()=>{!A&&M==="Not-Started"&&P&&(E(!0),o(ze(!0)))}),[A,M,P,o]),g.useEffect((()=>{n!=null&&n===!0?v(!0):(v(!1),document.body.style.overflow="auto")}),[n]),g.useEffect((()=>{O(a!=null&&a===!0)}),[a]);const Ie=()=>{v(!1),t("..")},[mn,gn]=g.useState(!1),Se=F=>{gn(F)},{isAiCfoAccessEnabled:hn,onAskAiCfoClick:fn}=nn({mobileExploreReferrer:"Checking Accounts"});Qe({isDataReady:B==="Completed"});const yn=Ke(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:L,onLoad:F=>(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)})(F)}):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(Ha,{windowSize:i,children:[e.jsx(ue,{isAppContentDrawerOpen:mn,handleDrawerToggle:Se}),e.jsx(Na,{zeniBankListView:S,navigate:t,currentTenant:m,location:r,companyId:P,analytics:L,maxInsuredAmount:f.maxInsuredAmount,isExpressPayEnabled:w,isBillPayEnabled:dn,isDebitCardFeatureEnabled:s,isAutoTransferRuleEnabled:l,handleDrawerToggle:Se,isAiCfoAccessEnabled:hn,onAskAiCfoClick:fn})]})]}):G&&q?e.jsx(Q,{to:"../setup"}):m.companyZeniAccountInfo?.info&&!G&&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`,Ka=U.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-DtuUpF5h.js";import{u as _,h as ne,g as N,i as W
|
|
|
54
54
|
align-items: center;
|
|
55
55
|
min-height: 100vh;
|
|
56
56
|
background-color: ${n=>n.theme.colors.grey4};
|
|
57
|
-
`,Ya=ae((function(n,a){const{currentTenant:r}=a,t=
|
|
57
|
+
`,Ya=ae((function(n,a){const{currentTenant:r}=a,t=Xe(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:`${Ae.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(Ye(p))):c==="checkDeposit"?(h=rn(d,i),p!=null&&n(qn(p))):c==="accountStatement"&&(h=qa(d,i));const y=ie(o.state?.pathnameStackToGoBack,o.pathname);r(h,{state:{pathnameStackToGoBack:y}})},onAccountDetailClick:()=>{const c=Xa(d,i),p=ie(o.state?.pathnameStackToGoBack,o.pathname);r(c,{state:{pathnameStackToGoBack:p}})},onEditNameClick:c=>{n(Ee(i,"editName",c))},onReloadZeniAccountDetailPage:()=>{n(qe(i,!1))},onCloseAccountClick:()=>{n(Ee(i,"closeAccount",""))},onBackClick:()=>{r("../",{relative:"path"})}}}))(ga);function re({isTransferDrawerOpen:n,isCheckDepositDrawerOpen:a,isAccountInfoDrawerOpen:r}){const t=N(),o=ne(),i=z(),d=_(),{tenantEmailDomain:c,accountId:p}=W(),{useDynamicConfig:h}=Z(),{useFeatureGate:y}=Z(),{isFeatureEnabled:s}=y(V.isDebitCardFeatureEnabled),l=k((q=>R(q))),{configValue:f}=h(H.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(),w=l.companyId??b.getSignedInUserTenant(c)?.companyId,I={userId:D?.userId??"",sessionId:D?.zeniSessionId??"",tenantId:l.tenantId??""},C=`${Ce}/account_details`,[A,E]=g.useState(!1),[T,v]=g.useState(!1),[j,O]=g.useState(!1),[S,B]=g.useState(!1),u=k((q=>Xe(q,p??""))),M=u.fetchState,{isAiCfoAccessEnabled:pe,onAskAiCfoClick:oe}=nn({mobileExploreReferrer:"Checking Account Detail"});Qe({isDataReady:M==="Completed"}),g.useEffect((()=>{A||(i(qe(p??"",!1)),E(!0))}),[A,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((()=>{O(a!=null&&a===!0)}),[a]);const G=()=>{B(!1),o("..")};return e.jsxs(e.Fragment,{children:[S===!0&&u.accountDetail!=null?e.jsx(Fa,{authParams:I,downloadAccountDetailEndPoint:C,closeDrawerHandler:G,isAccountInfoDrawerOpen:S,zeniBankAccountDetail:u.accountDetail}):null,T===!0?e.jsx(tn,{closeDrawerHandler:G,isTransferDrawerOpen:T,zeniAccountsConfig:u.zeniAccountsConfig,authParams:I,downloadAccountDetailEndPoint:C}):null,j===!0?e.jsx(an,{closeDrawerHandler:G,isCheckDepositDrawerOpen:j}):null,e.jsx(Ka,{windowSize:d,children:e.jsx(Ya,{navigate:o,currentTenant:l,location:t,companyId:w,isDebitCardFeatureEnabled:s,accountId:p??"",isBillPayEnabled:P,isExpressPayEnabled:m,isAiCfoAccessEnabled:pe,onAskAiCfoClick:oe})})]})}const Xa=(n,a)=>`/${n}/checking/${a}/account-info`,qa=(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:()=>{L.trackAccountsPromoPageClicked("Setup Accounts"),n(Qn(t))},onBackClick:()=>{r("../..",{relative:"path"})},onSetupZeniAccountSuccess:()=>{r("../setup",{relative:"path"})}}}))(ya),Qa=()=>{const n=ne(),a=N(),{tenantEmailDomain:r}=W(),{useDynamicConfig:t}=Z(),o=ha(),i=$(),[d,c]=g.useState(!1),[p,h]=g.useState(!1),y=k((A=>R(A))),{configValue:s}=t(H.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=A=>{c(A)};if(m==null)throw Error("Can't access Zeni account promo page without signing in...");const w=te(),I=ee(w?.loggedInUserRoleMap),C=ye(w?.loggedInUserRoleMap);if(P&&I)return e.jsx(Q,{to:"../../checking/setup"});if(y.company?.companyZeniAccountInfo&&(!P&&I||C)){if(a.state?.message==="activation"){const A=Je(a.state?.pathnameStackToGoBack);n(a.pathname,{state:{...a.state,message:void 0,pathnameStackToGoBack:A.newStack}})}return e.jsxs(e.Fragment,{children:[e.jsx(fa,{showConfetti:p}),e.jsx(de,{analytics:L,onLoad:A=>(E=>E.trackPageLoaded(we.Event.accountsPromoPageViewed))(A)}),e.jsx(ue,{isAppContentDrawerOpen:d,handleDrawerToggle:D}),e.jsx(Ja,{analytics:L,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=N(),a=k((S=>R(S))),r=$(),{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=Ke(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),w=(a?.company==null||a.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!m)&&ta(i?.loggedInUserRoleMap),I=!!a.company?.companyZeniAccountInfo?.isZeniAccountEnabled&&!m,{configValue:C}=o(H.expressPayConfig),A=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),O=j||_e(i?.loggedInUserRoleMap);return e.jsxs(Re,{children:[e.jsx(x,{path:"setup",element:e.jsx(Oe,{isBillPayAdminLevelAccess:P,isUserHasOnlyBillPayAccess:D,isReimbursementAdminLevelAccess:w,isZeniAccountAdminLevelAccess:j,isChargeCardAdminLevelAccess:T,isUserHasOnlyCardAccess:v,productType:"zeni_accounts",type:"setup"})}),e.jsx(x,{path:"verification",element:e.jsx(Oe,{isBillPayAdminLevelAccess:P,isUserHasOnlyBillPayAccess:D,isReimbursementAdminLevelAccess:w,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(Le,{})}),O?e.jsx(x,{path:"auto-transfer/:ruleId/edit",element:e.jsx(Le,{isEditDrawerOpen:!0})}):null]}):e.jsx(x,{path:"auto-transfer",element:e.jsx(J,{})}),A&&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};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{j as i}from"./liveblocks-CSh_vLcI.js";import{a as u}from"./sentry-BbRn6Rps.js";import{h as $,u as x,g as T,i as j,j as p}from"./core-BTRpO5kD.js";import{Ts as s,Tr as v,$Q as B,fI as C,$R as E}from"./zeni-epic-state-GGdMfKwk.js";import{a1 as z,ae as g,E as D,z as L,a7 as P,d5 as N,a4 as U}from"./index-BUq8vLqs.js";import{n as _}from"./mui-DxxQrDXb.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]="6968f01b-4773-450d-8533-87a203a2cc7b",e._sentryDebugIdIdentifier="sentry-dbid-6968f01b-4773-450d-8533-87a203a2cc7b")}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 q(){const e=$(),n=x(),d=z(),l=T();let{accountId:a}=j(),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),h=D();u.useEffect((()=>{m||(y(!0),n(v(a??"",!1)))}),[m,n]);const o=p((t=>B(t,a??""))),b=()=>{const t=U(l.state?.pathnameStackToGoBack),S=t.poppedPathname??"..";e(S,{state:{pathnameStackToGoBack:t.newStack}})},r=L.getSignedInUser(),c=p((t=>C(t))),I={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:c.tenantId??""},w=E(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:h.colors.grey5}}):i.jsx(G,{windowSize:d,children:i.jsx(N,{currentTenantCompanyName:k,statementListView:o,accountLast4:w,onBackClick:b,authParams:I,downloadEndPoint:f})})}export{q as Z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./sentry-
|
|
1
|
+
import"./sentry-BbRn6Rps.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};
|