@zeniai/web-app-ui 5.4.20-qa → 5.4.21-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-C1RnOF0n.js → AccountMappingScreen-CykY8jdu.js} +2 -2
- package/dist/assets/{ActualMatchingMatchDetailScreen-B0LF-DvP.js → ActualMatchingMatchDetailScreen-UFhJKVUq.js} +1 -1
- package/dist/assets/AddressRoutes-D_IpH71K.js +1 -0
- package/dist/assets/AddressScreen-DXVWlMXp.js +9 -0
- package/dist/assets/AiCfoScreen-UfYXu56F.js +22 -0
- package/dist/assets/AppDrawer-ky_X7SdS.js +10 -0
- package/dist/assets/{BillPayApprovalRoutes-d_qnRv_k.js → BillPayApprovalRoutes-BHV3_xPL.js} +1 -1
- package/dist/assets/{BillPayRoutes-Knm7u9m6.js → BillPayRoutes-DwoZ4Wej.js} +18 -18
- package/dist/assets/BusinessVerificationPageScreen-DcJAu1U8.js +9 -0
- package/dist/assets/CardsAiCfoScreen-o65vXGHV.js +14 -0
- package/dist/assets/{ChargeCardRoutes-TX6d5LBT.js → ChargeCardRoutes-CX_ID8PO.js} +11 -11
- package/dist/assets/CompanyPassportScreen-wpe4W-A1.js +1 -0
- package/dist/assets/ConnectionAuthScreen-D5XNzpDd.js +11 -0
- package/dist/assets/CustomerOnboardingAuthScreen-H9oLbmaI.js +1 -0
- package/dist/assets/CustomerOnboardingRoutes-Crv7_qXD.js +30 -0
- package/dist/assets/CustomersRoutes-CsT3I1KS.js +8 -0
- package/dist/assets/DashboardRoutes-CkNHYlwe.js +20 -0
- package/dist/assets/{DefaultTenantHome-CoJMpOnn.js → DefaultTenantHome-BMhKHh4Y.js} +1 -1
- package/dist/assets/DomesticWireDetailScreen-BsNFmHCW.js +18 -0
- package/dist/assets/DrawerScreen-DPBr2rYW.js +1 -0
- package/dist/assets/EntityDetailRoutes-BEbJufIv.js +1 -0
- package/dist/assets/{ExpenseAutomationRoutes-8LBIl5LC.js → ExpenseAutomationRoutes-BWV2tipJ.js} +6 -6
- package/dist/assets/FeaturePreviewScreen-Co6UN19B.js +1 -0
- package/dist/assets/HubSpotOAuthCallbackScreen-BM3fROhV.js +1 -0
- package/dist/assets/InboxNotificationsProvider-iLGG8Hne.js +1 -0
- package/dist/assets/InvoicingRoutes-BDKU1kok.js +3 -0
- package/dist/assets/MagicLinkRoutes-LlQPtwmF.js +72 -0
- package/dist/assets/MagicLinkSignInScreen-DiuwGQZA.js +12 -0
- package/dist/assets/MobileAppDrawer-Ct61dQgI.js +1 -0
- package/dist/assets/NotFoundScreen-BThXAXPU.js +1 -0
- package/dist/assets/NotificationRoutes-Bq6Q_RnE.js +1 -0
- package/dist/assets/OAuthConsentScreen-QNvpnHLR.js +1 -0
- package/dist/assets/PandLWithForecastRoutes-spqAx7Nj.js +1 -0
- package/dist/assets/{PaymentLinkScreen-urZ7U9SC.js → PaymentLinkScreen-Xa9F1vkq.js} +5 -5
- package/dist/assets/PeopleRoutes-BOxWPOrb.js +22 -0
- package/dist/assets/PerformanceRoutes-DIk329y5.js +1 -0
- package/dist/assets/{Preview-Dhga7S3h.js → Preview-CfQKOy5n.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-Cllizgjx.js → QBOConnectionScreen-OL7fpWNi.js} +22 -22
- package/dist/assets/ReimbursementApprovalRoutes-Cz6prEK3.js +1 -0
- package/dist/assets/ReimbursementApprovalRuleDetailScreen-CsHKBNa1.js +1 -0
- package/dist/assets/ReimbursementRoutes-BJsGbiLA.js +68 -0
- package/dist/assets/ReportsRoutes-Q_1D8cZK.js +1 -0
- package/dist/assets/RewardsRoutes-Dl2249xj.js +1 -0
- package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-C1AIWmci.js → ScheduleDetailsPrepaidExpensesScreen-BdjCOE8f.js} +5 -5
- package/dist/assets/ScreenRoutes-n390CBhV.js +2 -0
- package/dist/assets/{SettingsRoutes-Bk6BvUvm.js → SettingsRoutes-BpaF5UCO.js} +6 -6
- package/dist/assets/{SetupPagesScreen-B0Rr7fey.js → SetupPagesScreen-B4mnKcCt.js} +5 -5
- package/dist/assets/SignInScreen-U-UH-98t.js +1 -0
- package/dist/assets/SignOutScreen-Bb8QCtlv.js +9 -0
- package/dist/assets/{TaskListScreen-DJRKceku.js → TaskListScreen-cAzkNljY.js} +2 -2
- package/dist/assets/TaskRoutes-DWGwCtaS.js +9 -0
- package/dist/assets/TransactionDetailRoutes-DN0MAIjC.js +1 -0
- package/dist/assets/{TransactionDetailScreen-BeMygB7E.js → TransactionDetailScreen-BXxFjzdw.js} +2 -2
- package/dist/assets/{TransactionListRoutes-B_dIALM9.js → TransactionListRoutes-DydlnHAH.js} +1 -1
- package/dist/assets/TreasuryRoutes-B4mGKq9W.js +37 -0
- package/dist/assets/{VendorsRoutes-jnQiOZos.js → VendorsRoutes-D1ROPhMq.js} +18 -18
- package/dist/assets/WiseConfirmationScreen-B63B7RbG.js +12 -0
- package/dist/assets/ZeniAccountRoutes-CZ-mVo79.js +57 -0
- package/dist/assets/ZeniAccountStatementScreen-BkBxUanJ.js +9 -0
- package/dist/assets/{accountMappingHelper-D5RLPl0Q.js → accountMappingHelper-D9GxJ4jJ.js} +1 -1
- package/dist/assets/{analytics-B_BCmETJ.js → analytics-BSiwA26E.js} +1 -1
- package/dist/assets/{analyticsHelper-CY3FldM6.js → analyticsHelper-Vk8jtaRR.js} +1 -1
- package/dist/assets/{core-GrVUbJGD.js → core-Drb9PBdf.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-C1t-__r9.js → decodeURIComponentSafe-BeDShQ8t.js} +1 -1
- package/dist/assets/{dnd-Cc3q8XS9.js → dnd-BrXK45tY.js} +1 -1
- package/dist/assets/{empty-BWUoD4Zv.js → empty-CWmPtLB4.js} +1 -1
- package/dist/assets/{empty-D0ciM-5y.js → empty-De4DQHyL.js} +1 -1
- package/dist/assets/{emptyVideoElement-DkmV6O6O.js → emptyVideoElement-BiGfqLLw.js} +1 -1
- package/dist/assets/epic-Bbr0Pn8Q.js +2 -0
- package/dist/assets/expenseAutomationHelper-X3OcZ-IX.js +1 -0
- package/dist/assets/{getLocaleForTenant-E8yaJhog.js → getLocaleForTenant-DdWfA4jD.js} +1 -1
- package/dist/assets/{index-Dw849GIn.js → index-Bt49Udfl.js} +1 -1
- package/dist/assets/{index-DcN2E4lO.js → index-CYlJ1a_s.js} +1 -1
- package/dist/assets/{index-fEZlh4Dc.js → index-CfHkHPtG.js} +2 -2
- package/dist/assets/index-D05GaSwv.js +1 -0
- package/dist/assets/{index-Bh0ZMqWQ.js → index-DIUoYuXz.js} +1 -1
- package/dist/assets/{index-CL0RkSdG.js → index-Rm-5en55.js} +1 -1
- package/dist/assets/index-t6kaSbkJ.js +1 -0
- package/dist/assets/{index-eXyO65Ih.js → index-z_GphMeq.js} +15750 -15711
- package/dist/assets/{lexical-C0CQ8hW2.js → lexical-5AsGuqwY.js} +1 -1
- package/dist/assets/{liveblocks-Vz4gvIdI.js → liveblocks-njwIYHC1.js} +1 -1
- package/dist/assets/{lottie-7o7Nu0hF.js → lottie-C-ls43Md.js} +1 -1
- package/dist/assets/{mui-CuMgG_27.js → mui-B5W8_mOr.js} +1 -1
- package/dist/assets/{pathToGoBack-6-e3rsC8.js → pathToGoBack-BVrXlWbG.js} +1 -1
- package/dist/assets/{pdf-Dl24vdfn.js → pdf-BZk_6t2l.js} +3 -3
- package/dist/assets/{pdf-lib-fawjhojL.js → pdf-lib-DPpp3HiM.js} +1 -1
- package/dist/assets/{plaid-DEbV2MCp.js → plaid-Cr5PEIle.js} +1 -1
- package/dist/assets/{pusher-BruElsMX.js → pusher-CSQbRJHx.js} +1 -1
- package/dist/assets/{react-B2vUC3AA.js → react-CXOn4Sf8.js} +1 -1
- package/dist/assets/{react-suoBZax1.js → react-DYFog7aV.js} +1 -1
- package/dist/assets/{react-Ds2rCLjL.js → react-DctGkwQV.js} +1 -1
- package/dist/assets/{react-CnHsUdIx.js → react-Dh24EN9G.js} +1 -1
- package/dist/assets/{react-BUjsymiG.js → react-N1WgNt-u.js} +1 -1
- package/dist/assets/{react-Ch583KjZ.js → react-mPSX53PV.js} +1 -1
- package/dist/assets/{recharts-Cz5M2Ami.js → recharts-CA6HYyTi.js} +1 -1
- package/dist/assets/{reportTimeframe-B4ojXbeQ.js → reportTimeframe-BbZLWisn.js} +1 -1
- package/dist/assets/routePaths-DR8gB3XS.js +1 -0
- package/dist/assets/{sentry-Y8vuE8aQ.js → sentry-VFPS4V5K.js} +1 -1
- package/dist/assets/{stripSplatSuffix-DBJKfIbL.js → stripSplatSuffix-DKTWsyEu.js} +1 -1
- package/dist/assets/{url-DhQWTUYg.js → url-CvFWVqy3.js} +1 -1
- package/dist/assets/{url-DLR2uoac.js → url-DK4U3B1Z.js} +1 -1
- package/dist/assets/useActualMatchingMatchDetail-C8BSOHSu.js +1 -0
- package/dist/assets/useAiCfoDashboardSuggestedQuestionsChips-CyHYQDPy.js +1 -0
- package/dist/assets/useAskAiCfoHostNavButtonProps-BV1kovUD.js +1 -0
- package/dist/assets/{useChargeCardPusherEvents-aMKf6KAu.js → useChargeCardPusherEvents-BW-fScDD.js} +1 -1
- package/dist/assets/{useDeviceId-KzHLS1Iv.js → useDeviceId-B5JBZYk7.js} +1 -1
- package/dist/assets/useEmailConnectResultRefresh-DQJDDPj6.js +1 -0
- package/dist/assets/useEnsureVendorListLoaded-T6HLY1O3.js +1 -0
- package/dist/assets/{useInitialThreadRequest-zNumU9hI.js → useInitialThreadRequest-CE7-w0Ve.js} +1 -1
- package/dist/assets/useIsCustomersTabEnabled-CxdytBTD.js +1 -0
- package/dist/assets/useTaskManagerAccess-D-MaKZ1u.js +1 -0
- package/dist/assets/{useTaskManagerPusherEvents-CN3jrzrj.js → useTaskManagerPusherEvents-UBdwYUHJ.js} +1 -1
- package/dist/assets/{utils-PKPkEQd5.js → utils-CibnWgOj.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-D9vq13QQ.js → withTransactionSidePanel-BLWvlaZt.js} +2 -2
- package/dist/assets/{zeni-epic-state-COBHVss0.js → zeni-epic-state-9qkFzYai.js} +7 -7
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/AddressRoutes-nzlEbpLZ.js +0 -1
- package/dist/assets/AddressScreen-BMW5PBGV.js +0 -9
- package/dist/assets/AiCfoScreen-X6l8TO3I.js +0 -22
- package/dist/assets/AppDrawer-zwdzlFaD.js +0 -10
- package/dist/assets/BusinessVerificationPageScreen-mjhVHH4O.js +0 -9
- package/dist/assets/CardsAiCfoScreen-B6cIfYHl.js +0 -14
- package/dist/assets/CompanyPassportScreen-BWtavadn.js +0 -1
- package/dist/assets/ConnectionAuthScreen-k0c3LH8h.js +0 -11
- package/dist/assets/CustomerOnboardingAuthScreen-BKNrdOGe.js +0 -1
- package/dist/assets/CustomerOnboardingRoutes-BAceZmH-.js +0 -30
- package/dist/assets/DashboardRoutes-C1cQM1iq.js +0 -20
- package/dist/assets/DomesticWireDetailScreen-CN_AwtpO.js +0 -18
- package/dist/assets/DrawerScreen-D7I-GzS4.js +0 -1
- package/dist/assets/EntityDetailRoutes-DRcTK4xX.js +0 -1
- package/dist/assets/FeaturePreviewScreen-DZWG45PX.js +0 -1
- package/dist/assets/HubSpotOAuthCallbackScreen-BaMHkeHO.js +0 -1
- package/dist/assets/InboxNotificationsProvider-gHb6rSEv.js +0 -1
- package/dist/assets/InvoicingRoutes-CfS4mAJT.js +0 -3
- package/dist/assets/MagicLinkRoutes-BWTSKuZR.js +0 -72
- package/dist/assets/MagicLinkSignInScreen-BBiLqeC6.js +0 -12
- package/dist/assets/MobileAppDrawer-nKSb2sKG.js +0 -1
- package/dist/assets/NotFoundScreen-lrXID2D2.js +0 -1
- package/dist/assets/NotificationRoutes-CLz6VAM_.js +0 -1
- package/dist/assets/OAuthConsentScreen-DLGkSjxy.js +0 -1
- package/dist/assets/PandLWithForecastRoutes-BRH3UvCo.js +0 -1
- package/dist/assets/PeopleRoutes-DC0KccAq.js +0 -22
- package/dist/assets/PerformanceRoutes-CGtga_hp.js +0 -1
- package/dist/assets/ReimbursementApprovalRoutes-DwWMn7cn.js +0 -1
- package/dist/assets/ReimbursementApprovalRuleDetailScreen-O-yHh4uj.js +0 -1
- package/dist/assets/ReimbursementRoutes-BXVuYLRT.js +0 -68
- package/dist/assets/ReportsRoutes-Barssrna.js +0 -1
- package/dist/assets/RewardsRoutes-BgUVgwGN.js +0 -1
- package/dist/assets/ScreenRoutes-mJWUDJcG.js +0 -2
- package/dist/assets/SignInScreen-BM3Vo8Sm.js +0 -1
- package/dist/assets/SignOutScreen-WK9PJrGQ.js +0 -9
- package/dist/assets/TaskRoutes-D4jH7PJl.js +0 -9
- package/dist/assets/TransactionDetailRoutes-Sp9ULYUl.js +0 -1
- package/dist/assets/TreasuryRoutes-7AIyWRUd.js +0 -37
- package/dist/assets/WiseConfirmationScreen-CPdMEGDQ.js +0 -12
- package/dist/assets/ZeniAccountRoutes-BipwR7h6.js +0 -57
- package/dist/assets/ZeniAccountStatementScreen-CFGV8Doe.js +0 -9
- package/dist/assets/epic-CPqi4BTJ.js +0 -2
- package/dist/assets/expenseAutomationHelper-BqqNQc4E.js +0 -1
- package/dist/assets/index-DG7Ul_N4.js +0 -1
- package/dist/assets/index-quhlDe1C.js +0 -1
- package/dist/assets/routePaths-C4nWRb1J.js +0 -1
- package/dist/assets/useActualMatchingMatchDetail-rg_uxZt8.js +0 -1
- package/dist/assets/useAiCfoDashboardSuggestedQuestionsChips-KYBucxDc.js +0 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-Gb5FxzST.js +0 -1
- package/dist/assets/useEmailConnectResultRefresh-BbKupJnC.js +0 -1
- package/dist/assets/useEnsureVendorListLoaded-c7kW69ou.js +0 -1
- package/dist/assets/useTaskManagerAccess-gL3vn6YT.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as c}from"./liveblocks-Vz4gvIdI.js";import G from"./NotFoundScreen-lrXID2D2.js";import{a as n}from"./sentry-Y8vuE8aQ.js";import{u as ft,h as yt,g as bt,i as St,j as o,n as ht,o as f}from"./core-GrVUbJGD.js";import{fI as It,gZ as Lt,m3 as Tt,ul as jt,XR as Ct,XG as Et,XS as gt,S2 as At,S3 as kt,i3 as L,m1 as vt,um as xt,RU as Dt,St as Nt,XT as Rt,XU as _t,R$ as Mt,RY as Xt,XV as wt,XW as Ft,XX as Ut}from"./zeni-epic-state-COBHVss0.js";import{p as zt,M as Ht,N as H,b0 as Pt,z as qt,g as Bt,b1 as Gt,k as P,b2 as Vt,ac as $t,G as Ot}from"./index-eXyO65Ih.js";import"./mui-CuMgG_27.js";import{d as Yt}from"./decodeURIComponentSafe-C1t-__r9.js";import{u as Zt}from"./useEnsureVendorListLoaded-c7kW69ou.js";import{u as Wt,T}from"./TransactionDetailScreen-BeMygB7E.js";import{c as Jt}from"./routePaths-C4nWRb1J.js";import"./recharts-Cz5M2Ami.js";import"./analytics-B_BCmETJ.js";import"./plaid-DEbV2MCp.js";import"./dnd-Cc3q8XS9.js";import"./stripe-cKAAJElX.js";import"./lottie-7o7Nu0hF.js";import"./lexical-C0CQ8hW2.js";import"./pdf-Dl24vdfn.js";import"./utils-PKPkEQd5.js";import"./useAskAiCfoHostNavButtonProps-Gb5FxzST.js";import"./useInitialThreadRequest-zNumU9hI.js";import"./expenseAutomationHelper-BqqNQc4E.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="aab1ba19-121a-4717-a158-d5edfffbe013",e._sentryDebugIdIdentifier="sentry-dbid-aab1ba19-121a-4717-a158-d5edfffbe013")}catch{}})();const Kt=["bank","credit_card","other_current_assets"],q=e=>`/${e}/month_end_close_checks/review/transaction_categorization`,{common:{currency:B}}=Ot.getLocalizedStrings();function Qt(){const e=ft(),d=yt(),m=bt(),{tenantEmailDomain:u,transactionTypeEncoded:V}=St(),{useFeatureGate:j}=zt(),$=Ht(),{isFeatureEnabled:O}=j(H.isCreateTransactionEnabled),{isFeatureEnabled:C}=j(H.isProjectsTransactionsEnabled),Y=Yt(V??""),a=Ut.find((t=>t===Y)),S=o((t=>It(t))),E=Pt(S.companyId,a),g=o((t=>Lt(t.companyState,S.companyId)?.company.companyLocaleInfo)),Z=g?.currencyCode??B.currencyCode,W=g?.currencySymbol??B.currencySymbol,A=o((t=>t.tenantState.currentTenantId)),k=qt.getSignedInUser(),v=k?.userId??"",x=k?.zeniSessionId??"",J=n.useMemo((()=>({userId:v,sessionId:x,tenantId:A??""})),[v,x,A]),K=o((t=>Tt(t))),D=o((t=>jt(t))),N=D&&C===!0,h=o((t=>t.projectListState)),R=o((t=>t.projectState)),Q=n.useMemo((()=>Ct(R,h).projects),[R,h]),I=o((t=>Et(t,"common"))),_=o((t=>t.accountListState.byReportId.accountList.fetchState)),M=o((t=>t.accountListState.byReportId.createTransactionLineAccountList.fetchState)),X=o((t=>t.accountListState.byReportId.createTransactionPaymentAccountList.fetchState)),w=o((t=>t.classListState.fetchState)),s=o((t=>a!=null?gt(t,a):void 0));n.useEffect((()=>{if(a!=null)return e(At(a)),()=>{e(kt(a))}}),[e,a]);const tt=Bt(),et=o((t=>{const{activeTenantFetchState:i,currentTenantId:b,fetchState:mt,tenantsById:pt}=t.tenantState;return b!=null&&pt[b]!=null&&(i.fetchState==="Completed"||mt==="Completed")})),r=tt&&et;n.useEffect((()=>{r&&a==="transfer"&&_==="Not-Started"&&e(L("accountList"))}),[e,r,a,_]),n.useEffect((()=>{r&&M==="Not-Started"&&e(L("createTransactionLineAccountList"))}),[e,r,M]),n.useEffect((()=>{r&&X==="Not-Started"&&e(L("createTransactionPaymentAccountList",!1,!1,!1,!1,Kt))}),[e,r,X]),n.useEffect((()=>{r&&w==="Not-Started"&&e(vt())}),[e,r,w]);const F=h.fetchState;n.useEffect((()=>{r&&N&&F==="Not-Started"&&e(xt())}),[e,r,N,F]),Zt(r),Wt(r&&a==="transfer",!1);const at=n.useCallback(((t,i=[])=>{if(i.length>0&&e(Dt(i)),u==null)return;const b=Gt(m.state)??[q(u)];d(Jt(t,u),{replace:!0,state:{pathnameStackToGoBack:b}})}),[e,u,d,m.state]),nt=n.useCallback((()=>{m.key==="default"?u!=null&&d(q(u)):d(-1)}),[m.key,d,u]),ot=n.useCallback((t=>{e(Nt(t))}),[e]),U=n.useRef(void 0),p=s?.createStatus.error;n.useEffect((()=>{if(a==null||p==null)return;const t=`${p.code??""}-${p.message??""}`;U.current!==t&&(U.current=t,P.trackCreateTransactionFailed({transactionType:a,errorCode:p.code}))}),[p,a]);const y=n.useCallback((t=>t),[]),l=n.useMemo((()=>(s?.vendorList??[]).filter((t=>!t.isDeleted)).sort(((t,i)=>t.name.localeCompare(i.name)))),[s?.vendorList]),z=s?.localData.vendorId,st=n.useMemo((()=>{const t=l.find((i=>i.id===z));if(t!=null)return t.qboId!==""&&t.qboId!==t.name?t.qboId:t.name}),[l,z]),ct=o((t=>Rt(t,st))),rt=n.useMemo((()=>y(l.map((t=>({id:t.id,label:t.name}))))),[l,y]),it=n.useMemo((()=>({...I,vendor:[...l.map((t=>({id:t.id,name:t.name,qboId:t.qboId,type:"vendor",zeniId:t.id}))),...I.vendor]})),[I,l]),dt=n.useMemo((()=>y((s?.transferAccountsList??[]).map((t=>({id:t.accountId,label:t.accountName}))))),[s?.transferAccountsList,y]),ut=n.useCallback((t=>{a!=null&&e(_t(a,t))}),[e,a]),lt=n.useCallback(((t,i)=>{a!=null&&e(Mt(a,i,t))}),[e,a]);return E==null?null:a!=null&&s!=null&&O===!0&&E&&$?.connectionName!=="netsuite"?c.jsx(Vt,{analytics:P,attachmentUploadEndpoint:$t.accountMicroServiceBaseUrl,authParams:J,createdTransactionId:s.createdTransactionId,transactionType:a,localData:s.localData,createStatus:s.createStatus,accountsHierarchyList:s.accountListNestedAccountHierarchy,paymentAccountsHierarchyList:s.paymentAccountListNestedAccountHierarchy,classHierarchyList:s.classListNestedAccountHierarchy,vendorOptions:rt,transferAccountOptions:dt,isAccountingClassesEnabled:K,isAccountingProjectsEnabled:D,isProjectsTransactionsEnabled:C===!0,projects:Q,currencyCode:Z,currencySymbol:W,bookCloseDate:S.bookCloseDate?.toDate(),entityAutoCompleteView:it,vendorRecommendationFetchState:ct.fetchState,onUpdateLocalData:ut,onAddLine:()=>e(Ft(a)),onRemoveLine:t=>e(wt(a,t)),onSubmit:()=>e(Xt(a)),onCancel:nt,onCreateTransactionComplete:at,onUploadAttachmentAttachment:ot,onFetchRecommendationsForVendor:lt}):c.jsx(G,{})}function Ce(){return c.jsxs(ht,{children:[c.jsx(f,{path:"/new/:transactionTypeEncoded",element:c.jsx(Qt,{})}),c.jsx(f,{path:"/:transactionTypeEncoded/:transactionId",element:c.jsx(T,{})}),c.jsx(f,{path:"/:transactionTypeEncoded/:transactionId/page-not-found",element:c.jsx(G,{})}),c.jsx(f,{path:"/:transactionTypeEncoded/:transactionId/vendor/create",element:c.jsx(T,{})}),c.jsx(f,{path:"/*",element:c.jsx(T,{})})]})}export{Ce as default};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./liveblocks-Vz4gvIdI.js";import{h as L,g as P,u as F,i as M,j as y,N as D,l as V,n as xe,o as k}from"./core-GrVUbJGD.js";import{cx as N,fI as E,_k as U,P4 as ae,ON as Z,OO as ne,_m as Ie,P7 as Te,_i as we,_j as se,_y as Ce,N8 as ke,CE as je,_o as Ae,Pe as be,_l as oe,df as q,Hf as re,e0 as ve,e1 as Ee,a0J as De,a0K as Le,OP as Pe,a0L as Fe,OQ as Ue,OZ as Be,bq as Oe,bL as Re,cI as Me,bM as Ve,cw as Ne,bu as _e,V3 as ze,cv as $e}from"./zeni-epic-state-COBHVss0.js";import{M as _,j as Ge,z as v,a6 as z,k as A,d7 as Ze,d8 as qe,d9 as G,_ as H,ao as He,aq as We,p as ie,N as R,a9 as Je,a5 as Ke,da as Qe,ac as W,l as Xe,db as Ye,a2 as J,dc as et,ag as tt,X,dd as at,h as nt}from"./index-eXyO65Ih.js";import{u as st,D as ot,n as O,S as rt}from"./mui-CuMgG_27.js";import it from"./NotFoundScreen-lrXID2D2.js";import{S as Y}from"./SetupPagesScreen-B0Rr7fey.js";import{a as p}from"./sentry-Y8vuE8aQ.js";import{u as ct}from"./useAskAiCfoHostNavButtonProps-Gb5FxzST.js";import{u as lt}from"./useInitialThreadRequest-zNumU9hI.js";import{M as ce}from"./MobileAppDrawer-nKSb2sKG.js";import{F as ut}from"./FeaturePreviewScreen-DZWG45PX.js";import{a as ee}from"./analyticsHelper-CY3FldM6.js";import"./recharts-Cz5M2Ami.js";import"./analytics-B_BCmETJ.js";import"./plaid-DEbV2MCp.js";import"./dnd-Cc3q8XS9.js";import"./stripe-cKAAJElX.js";import"./lottie-7o7Nu0hF.js";import"./lexical-C0CQ8hW2.js";import"./pdf-Dl24vdfn.js";import"./utils-PKPkEQd5.js";import"./BusinessVerificationPageScreen-mjhVHH4O.js";import"./routePaths-C4nWRb1J.js";import"./InboxNotificationsProvider-gHb6rSEv.js";import"./useTaskManagerAccess-gL3vn6YT.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="03571d5e-6302-4b51-a22a-458373f49c49",t._sentryDebugIdIdentifier="sentry-dbid-03571d5e-6302-4b51-a22a-458373f49c49")}catch{}})();const dt=V((function(t,a){const{companyId:n}=a;return{treasurySetupView:U(t,n),analytics:A}}),(function(t,a){const{navigate:n,analytics:r,treasurySetupView:i}=a;return{onBackClick:()=>{n("../")},onNextClick:()=>{const o=i.fundAllocationLocalData;r.trackTreasuryPortfolioConfirm(o.riskScore,ee(o)),t(Te(!0))},onUpdateFundAllocation:o=>{r.trackTreasuryAllocationAction("update",ee(o)),t(Ie(o))}}}))(Ze);function pt(){const t=L(),a=P(),n=F(),{tenantEmailDomain:r}=M(),i=_(),o=y((w=>w.treasurySetupViewState.portfolioAllocationUpdateStatus?.fetchState)),m=Ge(o),s=N(i?.loggedInUserRoleMap),[d,c]=p.useState(!1),[S,I]=p.useState(!1),[l,u]=p.useState(!1),x=y((w=>E(w))),f=v.getSignedInUserTenant(r)?.companyId??x.companyId,C=v.getSignedInUser(),h=y((w=>U(w,f))),g=y((w=>w.treasurySetupViewState.fetchState)),j=y((w=>w.treasurySetupViewState.currentAllocation.fetchStatus?.fetchState)),T=y((w=>w.treasurySetupViewState.treasuryFundsDetails?.fetchStatus?.fetchState));if(C==null)throw Error("Can't access treasury portfolio allocation page without signing in...");if(p.useEffect((()=>{d||g!=="Not-Started"||f==null||(c(!0),n(ae(f,!0,!1)))}),[d,g,f,n]),p.useEffect((()=>{l||T!=="Not-Started"||f==null||(u(!0),n(Z()))}),[l,T,f,n]),p.useEffect((()=>{S||j!=="Not-Started"||f==null||(I(!0),n(ne()))}),[S,j,f,n]),p.useEffect((()=>{m==="In-Progress"&&o==="Completed"&&t("../")}),[m,o,t]),x.companyTreasuryInfo?.info?.isTreasuryTOSAccepted===!1)return e.jsx(D,{to:"../promo"});const B=x.companyTreasuryInfo?.info?.isTreasuryTOSAccepted!==!0||g!=="Completed";return e.jsxs(e.Fragment,{children:[!B&&e.jsx(z,{analytics:A,onLoad:()=>{}}),e.jsx(dt,{navigate:t,location:a,companyId:f,isEditMode:!0,isLoading:B,isReadOnly:!s,treasurySetupView:h,analytics:A})]})}const mt=V((function(t,a){const n=a.currentTenant?.companyId;return{plaidConnectionDetails:Ce(t,n,"zeni_treasury","treasury_setup").plaidConnectionDetails,treasurySetupView:U(t,n)}}),(function(t,a){const{navigate:n,transferDetails:r,treasurySetupView:i}=a,o=r.treasuryTransferMoneyLocalData,m=i.fundAllocationLocalData;return{onCancelClick:()=>{G(a.analytics,"cancel",o,m,"Transfer"),t(se()),n("../")},onTransferClick:()=>{G(a.analytics,"confirm",o,m,"Transfer"),t(be())},onSaveChangesToLocalStore:s=>{t(Ae(s))},onFetchLinkTokenClick:s=>{t(je("treasury_setup",s))},onEstablishConnectionClick:s=>{t(ke(s,a.currentTenant?.companyId,"treasury_setup","zeni_treasury"))}}}))(qe),ft=({isFirstTransfer:t,isTransactionsLoaded:a})=>{const n=L(),{tenantEmailDomain:r}=M(),i=F(),[o,m]=p.useState(!1),[s,d]=p.useState(!1),[c,S]=p.useState(!1),[I,l]=p.useState(!1),u=y((T=>T.treasurySetupViewState.fetchState)),x=y((T=>T.treasurySetupViewState.treasuryFundsDetails?.fetchStatus?.fetchState)),f=y((T=>T.treasurySetupViewState.currentAllocation.fetchStatus?.fetchState)),C=y((T=>E(T))),h=v.getSignedInUserTenant(r)?.companyId??C.companyId,g=y((T=>we(T))),j=y((T=>U(T,h)));if(v.getSignedInUser()==null)throw Error("Can't access treasury transfer page without signing in...");return p.useEffect((()=>{s||u!=="Not-Started"||h==null||(d(!0),i(ae(h,!0,!1)))}),[s,u,h,i]),p.useEffect((()=>{c||x!=="Not-Started"||h==null||(S(!0),i(Z()))}),[c,x,h,i]),p.useEffect((()=>{I||f!=="Not-Started"||h==null||(l(!0),i(ne()))}),[I,f,h,i]),e.jsxs(e.Fragment,{children:[e.jsx(z,{analytics:A,onLoad:()=>{}}),e.jsx(mt,{analytics:A,navigate:n,transferDetails:g,onAnotherTransferClick:()=>{m(!1),i(se())},currentTenant:C,treasurySetupView:j,showReviewContent:o,maxInsuredAmount:5e5,onReviewClick:()=>{G(A,"review",g.treasuryTransferMoneyLocalData,j.fundAllocationLocalData,"Transfer"),m(!0)},isFirstTransfer:t,isTransactionsLoaded:a,setShowReviewContent:m,onBackClick:()=>{}})]})},yt=O.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${t=>t.theme.colors.grey4};
|
|
9
|
-
`,gt={overlayWidth:new Je(100,100,48)},St=V((function(t,a){const n=oe(t),{companyId:r}=a;return{treasuryDetail:n,treasurySetupView:U(t,r),downloadEndPoint:`${W.bankingMicroServiceBaseUrl}/1.0/treasury-account/statements?query={"statement_type":"tax_statement"}`}}),(function(t,a){const{navigate:n,currentTenant:r,location:i,handleDrawerToggle:o,analytics:m}=a,{tenantEmailDomain:s}=r;return{onSettingsClick:()=>{m.trackAccountsListPageClicked("Settings Icon"),n("setup")},onReloadTransactions:()=>{t(re(!0))},handleTreasuryOptionSelection:d=>{let c="page-not-found";d==="editPortfolio"?c=ht(s):d==="statements"?c=xt(s):d==="taxLetter"?c=It(s):d==="settings"&&(c=Tt(s));const S=Xe(i.state?.pathnameStackToGoBack,i.pathname);n(c,{state:{pathnameStackToGoBack:S}})},onColumnSortConfigChanged:(d,c)=>{t(De({uiState:{sortKey:d,sortOrder:c}}))},onTransferClick:()=>{n("./transfer")},onBackClick:()=>{n("../../")},onClickMenuIcon:()=>{o(!0)},onAutoTransferClick:()=>{n("../../checking/auto-transfer")}}}))(Qe);function $({isTransferDrawerOpen:t,isEditPortfolioDrawerOpen:a}){const n=P(),r=L(),i=F(),o=H(),m=st(),s=y((b=>E(b))),{tenantEmailDomain:d}=M(),c=s.companyId??v.getSignedInUserTenant(d)?.companyId,[S,I]=p.useState(!1),l=y((b=>oe(b))),u=l.fetchState,x=l.accountSummary?.totalBalance?.amount,f=y((b=>b.treasurySetupViewState.treasuryFundsDetails?.fetchStatus)),C=s.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",h=_(),g=!!s.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,j=N(h?.loggedInUserRoleMap),T=q(h?.loggedInUserRoleMap),{areTenantIdsInSync:B}=He();p.useEffect((()=>{u==="Not-Started"&&!S&&B&&(I(!0),i(re(!0)))}),[S,i,u,B]),p.useEffect((()=>{l.transactionsFetchState.fetchState==="Completed"&&l.transactions.length===0&&!n.pathname.includes("transfer")&&j&&r("./transfer")}),[l.transactionsFetchState.fetchState,l.transactions.length,n.pathname,j,r]);const w=()=>{r("..")},[le,ue]=p.useState(!1),K=b=>{ue(b)},{isAiCfoAccessEnabled:de,onAskAiCfoClick:pe}=ct({mobileExploreReferrer:"Treasury"});We({isDataReady:u==="Completed"});const{useFeatureGate:Q}=ie(),{isFeatureEnabled:me}=Q(R.isDebitCardFeatureEnabled),{isFeatureEnabled:fe}=Q(R.isAutoTransferRuleEnabled),ye=lt(c,{clearParams:u==="Completed"&&f?.fetchState==="Completed"}),ge=ve(s),Se=Ee(me,s);if(ge===!0&&Se!==!0)return e.jsx(ut,{});if(C){const b=f?.fetchState!=="Completed"||l.accountSummaryFetchState.fetchState!=="Completed";return e.jsxs(e.Fragment,{children:[l.accountSummaryFetchState.fetchState==="Completed"&&f?.fetchState==="Completed"&&t===!1&&a===!1?e.jsx(z,{analytics:A,onLoad:()=>{}}):null,e.jsx(ot,{onClose:w,anchor:"right",open:a||t,transitionDuration:250,PaperProps:{style:{width:gt.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:m.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsxs(wt,{onClick:he=>he.stopPropagation(),children:[t===!0?e.jsx(ft,{isFirstTransfer:l.transactions.length===0||x===0,isTransactionsLoaded:l.transactionsFetchState.fetchState!=="In-Progress"&&l.transactionsFetchState.fetchState!=="Not-Started"}):null,a===!0?e.jsx(pt,{}):null]})}),e.jsxs(yt,{windowSize:o,children:[e.jsx(ce,{isAppContentDrawerOpen:le,handleDrawerToggle:K}),e.jsx(St,{treasuryDetailsView:l,isAutoTransferRuleEnabled:fe,navigate:r,currentTenant:s,location:n,companyId:c,analytics:A,handleDrawerToggle:K,initialOpenThreadRequest:ye,isLoading:b,isAiCfoAccessEnabled:de,onAskAiCfoClick:pe})]})]})}return g&&j?e.jsx(D,{to:"../setup"}):s.companyTreasuryInfo?.info&&!g&&T?e.jsx(D,{to:"../promo",state:n.state}):e.jsx(Ke,{fetchState:"In-Progress",style:{backgroundColor:m.colors.grey5}})}const ht=t=>`/${t}/treasury/edit-portfolio`,xt=t=>`/${t}/treasury/statements`,It=t=>`/${t}/treasury/tax-letter`,Tt=t=>`/${t}/treasury/setup`,wt=O(rt)`
|
|
10
|
-
display: flex;
|
|
11
|
-
min-height: 100%;
|
|
12
|
-
flex-direction: column;
|
|
13
|
-
`,Ct=O.div`
|
|
14
|
-
display: flex;
|
|
15
|
-
height: 100vh;
|
|
16
|
-
width: 100%;
|
|
17
|
-
flex: 1 1 auto;
|
|
18
|
-
flex-direction: column;
|
|
19
|
-
align-items: center;
|
|
20
|
-
background-color: ${t=>t.theme.colors.grey4};
|
|
21
|
-
`;function kt(){const t=L(),a=F(),n=H(),r=P(),i=`${W.bankingMicroServiceBaseUrl}/1.0/treasury-account`,[o,m]=p.useState(!1),s=y((u=>Le(u)));p.useEffect((()=>{o||s.fetchState!=="Not-Started"||(m(!0),a(Pe(!1)))}),[o,s.fetchState,a]);const d=v.getSignedInUser(),c=y((u=>E(u))),S={userId:d?.userId??"",sessionId:d?.zeniSessionId??"",tenantId:c.tenantId??""},I=c.company?.companyInfo.companyLegalName??c.companyName;if(d==null)throw Error("Can't access statements page without signing in...");const l=s.fetchState!=="Completed";return e.jsx(Ct,{windowSize:n,children:e.jsx(Ye,{currentTenantCompanyName:I,statementListView:s,isLoading:l,onBackClick:()=>{const u=J(r.state?.pathnameStackToGoBack),x=u.poppedPathname??"..";t(x,{state:{pathnameStackToGoBack:u.newStack}})},authParams:S,downloadEndPoint:i})})}const jt=O.div`
|
|
22
|
-
display: flex;
|
|
23
|
-
height: 100vh;
|
|
24
|
-
width: 100%;
|
|
25
|
-
flex: 1 1 auto;
|
|
26
|
-
flex-direction: column;
|
|
27
|
-
align-items: center;
|
|
28
|
-
background-color: ${t=>t.theme.colors.grey4};
|
|
29
|
-
`;function At(){const t=L(),a=H(),n=P(),r=F(),i=`${W.bankingMicroServiceBaseUrl}/1.0/treasury-account`,[o,m]=p.useState(!1),s=y((u=>Fe(u)));p.useEffect((()=>{o||s.fetchState!=="Not-Started"||(m(!0),r(Ue(!1)))}),[o,s.fetchState,r]);const d=v.getSignedInUser(),c=y((u=>E(u))),S={userId:d?.userId??"",sessionId:d?.zeniSessionId??"",tenantId:c.tenantId??""},I=c.company?.companyInfo.companyLegalName??c.companyName;if(d==null)throw Error("Can't access tax letter page without signing in...");const l=s.fetchState!=="Completed";return e.jsx(jt,{windowSize:a,children:e.jsx(et,{currentTenantCompanyName:I,taxLetterListView:s,isLoading:l,onBackClick:()=>{const u=J(n.state?.pathnameStackToGoBack),x=u.poppedPathname??"..";t(x,{state:{pathnameStackToGoBack:u.newStack}})},authParams:S,downloadEndPoint:i})})}const bt=V((function(t,a){const{companyId:n}=a,r=U(t,n);return{treasurySetupView:r,isSetupComplete:r.companyTreasuryInfo?.businessVerificationStatus?.code==="verified",videoUrl:"https://www.youtube.com/watch?v=sqvJWKCMZgk"}}),(function(t,a){const{navigate:n,companyId:r}=a;return{onSetupButtonClick:()=>{t(Be(r))},onBackClick:()=>{n("../..",{relative:"path"})},onTreasurySetupSuccess:i=>{n(i?"..":"../setup",{relative:"path"})}}}))(at),vt=()=>{const t=tt(),a=L(),n=P(),r=F(),{tenantEmailDomain:i}=M(),[o,m]=p.useState(!1),s=y((g=>E(g))),[d,c]=p.useState(!1),S=y((g=>g.treasurySetupViewState.treasuryFundsDetails?.fetchStatus));p.useEffect((()=>{d||S?.fetchState!=="Not-Started"||I==null||(c(!0),r(Z()))}),[S,r]);const I=v.getSignedInUserTenant(i)?.companyId??s.companyId,l=v.getSignedInUser(),u=!!s.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,x=g=>{m(g)};if(l==null)throw Error("Can't access treasury promo page without signing in...");const f=_(),C=N(f?.loggedInUserRoleMap),h=q(f?.loggedInUserRoleMap);if(u&&C)return e.jsx(D,{to:"../../treasury/setup"});if(s.company?.companyTreasuryInfo&&(!u&&C||h)){if(n.state?.message==="activation"){const g=J(n.state?.pathnameStackToGoBack);a(n.pathname,{state:{...n.state,message:void 0,pathnameStackToGoBack:g.newStack}})}return S?.fetchState!=="Completed"?e.jsx(te,{children:e.jsx(X,{size:"ExtraLarge",start:!0})}):e.jsxs(e.Fragment,{children:[e.jsx(z,{analytics:A,onLoad:g=>(j=>j.trackTreasuryPromoView("Treasury Promo Page"))(g)}),e.jsx(ce,{isAppContentDrawerOpen:o,handleDrawerToggle:x}),e.jsx(bt,{analytics:A,navigate:a,companyId:I,meetingUrl:t("treasury_promo"),onClickMenuIcon:()=>{x(!0)}})]})}return e.jsx(te,{children:e.jsx(X,{size:"ExtraLarge",start:!0})})},te=O.div`
|
|
30
|
-
display: flex;
|
|
31
|
-
width: 100%;
|
|
32
|
-
height: 100%;
|
|
33
|
-
flex-direction: row;
|
|
34
|
-
justify-content: center;
|
|
35
|
-
align-items: center;
|
|
36
|
-
background-color: ${t=>t.theme.colors.grey5};
|
|
37
|
-
`;function ta(){const t=P(),a=y((g=>E(g))),{useFeatureGate:n}=ie(),r=a.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",i=!!a.company?.companyTreasuryInfo?.isTreasuryTOSAccepted,o=_(),m=q(o?.loggedInUserRoleMap),s=a?.userRole!=null&&Oe(a?.userRole),d=(a?.company==null||a.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!s)&&Re(o?.loggedInUserRoleMap),c=Me(o?.loggedInUserRoleMap),S=(a?.company==null||a.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!s)&&Ve(o?.loggedInUserRoleMap),I=!!a.company?.companyZeniAccountInfo?.isZeniAccountEnabled&&!s&&Ne(o?.loggedInUserRoleMap),l=r&&!s&&N(o?.loggedInUserRoleMap),{isFeatureEnabled:u}=n(R.isChargeCardFeatureEnabled),{isFeatureEnabled:x}=n(R.isDebitCardFeatureEnabled),f=nt(a,u,x)&&!s&&_e(o?.loggedInUserRoleMap),C=ze(o?.loggedInUserRoleMap),h=$e(o?.loggedInUserRoleMap);return e.jsxs(xe,{children:[h?null:e.jsx(k,{path:"setup",element:e.jsx(Y,{isBillPayAdminLevelAccess:d,isReimbursementAdminLevelAccess:S,isZeniAccountAdminLevelAccess:I,isChargeCardAdminLevelAccess:f,isTreasuryAdminLevelAccess:l,isUserHasOnlyCardAccess:C,isUserHasOnlyBillPayAccess:c,productType:"zeni_treasury",type:"setup"})}),h?null:e.jsx(k,{path:"verification",element:e.jsx(Y,{isBillPayAdminLevelAccess:d,isUserHasOnlyBillPayAccess:c,isReimbursementAdminLevelAccess:S,isZeniAccountAdminLevelAccess:I,isChargeCardAdminLevelAccess:f,isTreasuryAdminLevelAccess:l,isUserHasOnlyCardAccess:C,productType:"zeni_treasury",type:"verification"})}),e.jsx(k,{path:"promo",element:e.jsx(vt,{})}),e.jsx(k,{path:"statements",element:e.jsx(kt,{})}),e.jsx(k,{path:"tax-letter",element:e.jsx(At,{})}),r?e.jsxs(e.Fragment,{children:[e.jsx(k,{path:"/",element:e.jsx($,{isTransferDrawerOpen:!1,isEditPortfolioDrawerOpen:!1})}),l?e.jsxs(e.Fragment,{children:[e.jsx(k,{path:"edit-portfolio",element:e.jsx($,{isEditPortfolioDrawerOpen:!0,isTransferDrawerOpen:!1})}),e.jsx(k,{path:"transfer",element:e.jsx($,{isTransferDrawerOpen:!0,isEditPortfolioDrawerOpen:!1})})]}):null,e.jsx(k,{path:"*",element:e.jsx(it,{})})]}):i&&l?e.jsx(k,{path:"*",element:e.jsx(D,{to:"../setup"})}):a.company?.companyZeniAccountInfo&&m?e.jsx(k,{path:"*",element:e.jsx(D,{to:"../promo",state:t.state})}):e.jsx(k,{path:"*",element:null})]})}export{ta as default};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./liveblocks-Vz4gvIdI.js";import{a as d}from"./sentry-Y8vuE8aQ.js";import{t as u,u as h,j as b,N as y}from"./core-GrVUbJGD.js";import{Vl as I,gl as w,K8 as j}from"./zeni-epic-state-COBHVss0.js";import{z as l,a5 as x,ad as S,ae as D}from"./index-eXyO65Ih.js";import{n as g}from"./mui-CuMgG_27.js";import"./recharts-Cz5M2Ami.js";import"./analytics-B_BCmETJ.js";import"./plaid-DEbV2MCp.js";import"./dnd-Cc3q8XS9.js";import"./stripe-cKAAJElX.js";import"./lottie-7o7Nu0hF.js";import"./lexical-C0CQ8hW2.js";import"./pdf-Dl24vdfn.js";import"./utils-PKPkEQd5.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]="77ff423a-500e-40f0-a4eb-bbbc3df4f455",e._sentryDebugIdIdentifier="sentry-dbid-77ff423a-500e-40f0-a4eb-bbbc3df4f455")}catch{}})();const A=()=>{const[e]=u(),t=e.get("code")??"",s=e.get("state")??"",p=e.get("profileId")??"",[n,c]=d.useState(!1),a=h(),i=b((m=>I(m))),r=l.getSignedInUser(),f=l.getSignedInUserTenantWithId(s);if(r==null||f==null)return o.jsx(y,{to:"/signin/auth",replace:!0});if(r==null)throw Error("Can't access this page without signing in...");return w(r.userId,r.zeniSessionId,f?.tenantId),d.useEffect((()=>{n||(c(!0),a(j(t,p,s)))}),[n,a]),i.fetchState==="Error"?o.jsx(E,{children:o.jsx(_,{children:i.error?.message??""})}):(i.fetchState==="Completed"&&window.close(),o.jsx(x,{fetchState:"In-Progress"}))},E=g.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
width: 100%;
|
|
4
|
-
height: 100vh;
|
|
5
|
-
flex-direction: row;
|
|
6
|
-
justify-content: center;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
9
|
-
`,_=g(D.LargeRegular)`
|
|
10
|
-
display: flex;
|
|
11
|
-
color: ${S.important};
|
|
12
|
-
`;export{A as default};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./liveblocks-Vz4gvIdI.js";import{u as z,h as ne,g as G,i as W,j as k,l as ae,N as Q,n as Le,o as x}from"./core-GrVUbJGD.js";import{a0o as Fe,M0 as Ue,a0p as _e,fI as L,Hd as ze,a0q as An,cw as ee,cx as Me,H7 as wn,a0r as Dn,a0s as kn,Ha as In,Hh as me,H4 as Sn,H1 as Pn,ZX as ce,a0t as jn,PA as vn,XG as bn,PC as En,mM as Pe,a0u as Tn,v6 as Ve,uW as $e,mD as He,mG as je,XH as ve,XI as Bn,a0v as On,mF as Rn,n0 as Ln,mu as Fn,kU as Un,kT as _n,a0w as zn,a0x as ge,Ph as Mn,a0y as Vn,a0z as $n,_b as fe,a0A as be,a0B as Hn,PN as Zn,_y as Nn,N8 as Ze,CE as Ne,a0C as Gn,PK as Wn,a0D as Ge,dc as ye,PR as We,e0 as qe,e1 as xe,PP as qn,N2 as Yn,PH as Xn,a0E as Ye,a0F as Xe,Pj as Ke,Pt as Ee,a0G as Kn,_p as Jn,PS as Qn,bq as ea,bL as na,cI as aa,bM as ta,bu as oa,V3 as sa}from"./zeni-epic-state-COBHVss0.js";import{M as te,p as H,N as $,z as j,at as Ce,a5 as le,cY as ra,_ as M,a9 as q,a2 as Je,j as ia,q as Te,k as R,cZ as ca,ac as Ae,c_ as la,a6 as de,c$ as da,S as we,bj as N,d0 as ua,ao as pa,aq as Qe,d1 as Be,d2 as ma,l as ie,d3 as ga,ag as ha,d4 as fa,d5 as ya,h as xa,F as Ca}from"./index-eXyO65Ih.js";import{u as F,n as U,D as Y,S as X}from"./mui-CuMgG_27.js";import J from"./NotFoundScreen-lrXID2D2.js";import{S as Oe}from"./SetupPagesScreen-B0Rr7fey.js";import{F as en}from"./FeaturePreviewScreen-DZWG45PX.js";import{a as g}from"./sentry-Y8vuE8aQ.js";import{M as ue}from"./MobileAppDrawer-nKSb2sKG.js";import{A as Aa,D as wa,V as Da}from"./DomesticWireDetailScreen-CN_AwtpO.js";import{A as ka}from"./AddressScreen-BMW5PBGV.js";import{u as nn}from"./useAskAiCfoHostNavButtonProps-Gb5FxzST.js";import{Z as Ia}from"./ZeniAccountStatementScreen-CFGV8Doe.js";import"./recharts-Cz5M2Ami.js";import"./analytics-B_BCmETJ.js";import"./plaid-DEbV2MCp.js";import"./dnd-Cc3q8XS9.js";import"./stripe-cKAAJElX.js";import"./lottie-7o7Nu0hF.js";import"./lexical-C0CQ8hW2.js";import"./pdf-Dl24vdfn.js";import"./utils-PKPkEQd5.js";import"./BusinessVerificationPageScreen-mjhVHH4O.js";import"./routePaths-C4nWRb1J.js";import"./analyticsHelper-CY3FldM6.js";import"./InboxNotificationsProvider-gHb6rSEv.js";import"./useTaskManagerAccess-gL3vn6YT.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]="66e340f4-7e23-4de4-a368-138752df29e1",n._sentryDebugIdIdentifier="sentry-dbid-66e340f4-7e23-4de4-a368-138752df29e1")}catch{}})();const Sa=U.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${n=>n.theme.colors.grey4};
|
|
9
|
-
`;function Re({isEditDrawerOpen:n}){const a=F(),[r,t]=g.useState(!1),{autoTransferRulePageProps:o,isLoading:i}=(function({isEditDrawerOpen:d=!1}={}){const c=z(),p=ne(),h=G(),{ruleId:y,tenantEmailDomain:s}=W(),l=te(),{useFeatureGate:f}=H(),m=k((u=>Fe(u))),P=k((u=>Ue(u.depositAccountState,u.depositAccountListState))),D=k((u=>_e(u))),w=k((u=>L(u))),{isFeatureEnabled:I}=f($.isTreasuryEnabled),C=m?.fetchState??"Not-Started",A=w?.companyId??(s==null?void 0:j.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),b=ee(l?.loggedInUserRoleMap)||Me(l?.loggedInUserRoleMap),O=j.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:b,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,V)=>{c(In(u,V))},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 q(100,100,58)},ja=({vendorId:n,isDrawerOpen:a,closeDrawerHandler:r})=>{const t=z(),o=F(),i=M();if(j.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
|
-
display: flex;
|
|
11
|
-
min-height: 100%;
|
|
12
|
-
flex-direction: column;
|
|
13
|
-
`,ba={overlayWidth:new q(100,100,58)},Ea=({isDrawerOpen:n,closeDrawerHandler:a})=>{const r=z(),t=F(),o=M();if(j.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:ba.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
|
-
display: flex;
|
|
15
|
-
min-height: 100%;
|
|
16
|
-
flex-direction: column;
|
|
17
|
-
`,Ba={overlayWidth:new q(100,100,58)},Oa=({vendorId:n,isDrawerOpen:a,closeDrawerHandler:r})=>{const t=z(),o=F(),i=M();if(j.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(Ra,{onClick:d=>d.stopPropagation(),children:e.jsx(wa,{vendorIdParam:n,accountContext:"express-pay"})})})},Ra=U(X)`
|
|
18
|
-
display: flex;
|
|
19
|
-
min-height: 100%;
|
|
20
|
-
flex-direction: column;
|
|
21
|
-
`,La=U.div`
|
|
22
|
-
display: flex;
|
|
23
|
-
height: 100vh;
|
|
24
|
-
width: 100%;
|
|
25
|
-
flex: 1 1 auto;
|
|
26
|
-
flex-direction: column;
|
|
27
|
-
align-items: center;
|
|
28
|
-
background-color: ${n=>n.theme.colors.grey4};
|
|
29
|
-
`,Fa=ae((function(n,a){const r=L(n),t=j.getSignedInUser(),o=r.tenantId,i={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:o??""},d=a.expressPayDetails,c=n.entityAutoCompleteState.autoCompleteText.common,p=bn(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(_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(Ln(t))},initializeVendorAddress:()=>{n(Rn())},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(je({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(He({files:t}))},onDeleteFile:t=>{n($e(t))},onEditFileName:(t,o)=>{n(Ve(t,o.split(".")[0]))},onBackClick:t=>{t!=null&&n(Pe(t)),n(Pe()),n(Tn()),n(ce()),r("../",{relative:"path"})},onSchedulePayment:()=>{n(En())}}}))(ca);function se({isAddACHDrawerOpen:n,isAddWireDrawerOpen:a,isAddAddressDrawerOpen:r}){const t=ne(),o=G(),i=z(),[d,c]=g.useState(!1),{tenantEmailDomain:p}=W(),h=te(),y=k((u=>u.expressPayState.fetchState)),s=k((u=>L(u))),l=k((u=>jn(u))),f=l.expressPayLocalData?.vendorId,m=s.companyId??j.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("/"),b=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]),j.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(La,{children:[Te(o)?e.jsx(ue,{isAppContentDrawerOpen:d,handleDrawerToggle:S}):null,P===!0?e.jsx(ja,{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(Fa,{navigate:t,location:o,companyId:m,accountId:b,analytics:R,currentTenant:s,vendorId:f,roleMap:h?.loggedInUserRoleMap,isSettings:Te(o),expressPayDetails:l,onClickMenuIcon:()=>{S(!0)}})]})}const Ua={overlayWidth:new q(100,100,58)},_a=({authParams:n,downloadAccountDetailEndPoint:a,isAccountInfoDrawerOpen:r,zeniBankAccountDetail:t,closeDrawerHandler:o})=>{const i=F(),d=M(),c=k((s=>_e(s))),p=k((s=>L(s)));if(j.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
|
-
display: flex;
|
|
31
|
-
min-height: 100%;
|
|
32
|
-
flex-direction: column;
|
|
33
|
-
`,Ma={overlayWidth:new q(100,100,58)},an=({isCheckDepositDrawerOpen:n,closeDrawerHandler:a})=>{const r=F(),t=M(),o=z(),i=k((s=>L(s))),d=j.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:R,checkDeposit:h,filesEndPoint:`${Ae.fileMicroServiceBaseUrl}`,authParams:p,onSaveChangesToLocalStore:s=>{o(Vn(s))},updateFilesEntity:s=>{o(He({files:s}))},onAnotherTransferClick:()=>{o(ge())},onDeleteFile:s=>{o($e(s))},onEditFileName:(s,l)=>{o(Ve(s,l.split(".")[0]))},onCheckDpositClick:()=>{o(Mn())},onDismissClick:()=>{a(!0),o(ge())}};return e.jsxs(e.Fragment,{children:[e.jsx(de,{analytics:R,onLoad:s=>(l=>l.trackPageLoaded(we.Event.accountsDepositCheckFormViewed))(s)}),e.jsx(Y,{anchor:"right",open:n,PaperProps:{style:{width:Ma.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(Va,{onClick:s=>s.stopPropagation(),children:e.jsx(da,{...y})})})]})},Va=U(X)`
|
|
34
|
-
display: flex;
|
|
35
|
-
min-height: 100%;
|
|
36
|
-
flex-direction: column;
|
|
37
|
-
`,$a={overlayWidth:new q(100,100,58)},Ha=ae((function(n,a){const r=a.currentTenant?.companyId;return{plaidConnectionDetails:Nn(n,r,"zeni_accounts","external_account").plaidConnectionDetails,depositAccountListView:Ue(n.depositAccountState,n.depositAccountListState)}}),(function(n,a){return{onReviewClick:()=>n(Wn()),clearReviewTransferDetail:()=>n(Gn()),onFetchLinkTokenClick:r=>{n(Ne("external_account",r))},onEstablishConnectionClick:r=>{n(Ze(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=>$n(C))),d=k((C=>L(C))),c=F(),p=M(),h=z(),{accountId:y}=W(),[s,l]=g.useState("achTransfer"),[f,m]=g.useState(!1);if(j.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const{useDynamicConfig:P}=H(),{configValue:D}=P(N.zeniAccountsConfig),w=fe(D),I=()=>{t(!0),h(be())};return g.useEffect((()=>{i.reviewTransferDetail.fetchState==="Completed"&&m(!0)}),[m,i.reviewTransferDetail.fetchState]),e.jsxs(e.Fragment,{children:[e.jsx(de,{analytics:R,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:$a.overlayWidth.valuePercentage(p),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:c.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsx(Za,{onClick:C=>C.stopPropagation(),children:e.jsx(Ha,{analytics:R,transferDetails:i,authParams:a,downloadAccountDetailEndPoint:r,onTransferClick:()=>{R.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(Zn(y))},onDismissClick:I,onSaveChangesToLocalStore:C=>{h(Hn(C))},onAnotherTransferClick:()=>{m(!1),h(be())},currentTenant:d,zeniAccountsConfigDetail:o,currentDrawerContent:s,setCurrentDrawerContent:l,showReviewContent:f,setShowReviewContent:m,onBackClick:()=>{},maxInsuredAmount:w.maxInsuredAmount})})})]})},Za=U(X)`
|
|
38
|
-
display: flex;
|
|
39
|
-
min-height: 100%;
|
|
40
|
-
flex-direction: column;
|
|
41
|
-
`,Na=U.div`
|
|
42
|
-
display: flex;
|
|
43
|
-
min-height: 100%;
|
|
44
|
-
width: 100%;
|
|
45
|
-
flex: 1 1 auto;
|
|
46
|
-
flex-direction: column;
|
|
47
|
-
align-items: center;
|
|
48
|
-
background-color: ${n=>n.theme.colors.grey4};
|
|
49
|
-
`,Ga=ae((function(n,a){return{zeniAccountListView:Ge(n),isExpressPayEnabled:a.isExpressPayEnabled,analytics:a.analytics}}),(function(n,a){const{navigate:r,currentTenant:t,location:o,companyId:i,handleDrawerToggle:d,analytics:c,isBillPayEnabled:p,isDebitCardFeatureEnabled: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(Ne("external_account",s,l))},onUpdatePaymentAccountStatus:(s,l,f)=>{n(Yn(s,l,"zeni_accounts","external_account",f))},onEstablishConnectionClick:s=>{n(Ze(s,i,"external_account",void 0,"link_external_account"))},onCreateCheckingClick:s=>{n(qn(s))},onClickMenuIcon:()=>{d(!0)},onAutoTransferClick:s=>{const l="./auto-transfer";s?r(l,{state:{...o.state,scrollToAddRule:!0}}):r(l)}}}))(ma);function he({isTransferDrawerOpen:n,isCheckDepositDrawerOpen:a}){const r=G(),t=ne(),o=z(),i=M(),{tenantEmailDomain:d}=W(),{useDynamicConfig:c,useFeatureGate:p}=H(),h=F(),{configValue:y}=c(N.zeniAccountsConfig),{isFeatureEnabled:s}=p($.isDebitCardFeatureEnabled),{isFeatureEnabled:l}=p($.isAutoTransferRuleEnabled),f=fe(y),m=k((_=>L(_))),P=m.companyId??j.getSignedInUserTenant(d)?.companyId,{configValue:D}=c(N.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),[b,O]=g.useState(!1),S=k((_=>Ge(_))),B=S.fetchState,u=k((_=>Fe(_))),V=u?.fetchState??"Not-Started",pe=!!m.companyZeniAccountInfo?.info?.isZeniAccountEnabled,oe=te(),Z=!!m.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted,K=ee(oe?.loggedInUserRoleMap),ln=ye(oe?.loggedInUserRoleMap),dn=!!m.companyBillPayInfo?.info?.isBillPayEnabled,De=j.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&&V==="Not-Started"&&P&&(E(!0),o(ze(!0)))}),[A,V,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=_=>{gn(_)},{isAiCfoAccessEnabled:hn,onAskAiCfoClick:fn}=nn({mobileExploreReferrer:"Checking Accounts"});Qe({isDataReady:B==="Completed"});const yn=qe(m),xn=xe(s,m);return yn===!0&&xn!==!0?e.jsx(en,{}):pe?e.jsxs(e.Fragment,{children:[S.fetchState==="Completed"&&T===!1&&b===!1?e.jsx(de,{analytics:R,onLoad:_=>(Cn=>{Cn.trackAccountsListPageViewed(S.depositAccountsSelectorView.depositAccounts.length,S.externalAccountsSelectorView.paymentAccounts.length,Be(S.summary?.totalBalance.available.amount??0),Be(S.summary?.totalInterest.available.amount??0),S.zeniAccountsConfig.zeniAccountsConfigDetail.annualPercentageYield)})(_)}):null,T===!0?e.jsx(tn,{closeDrawerHandler:Ie,isTransferDrawerOpen:T,zeniAccountsConfig:S.zeniAccountsConfig,authParams:un,downloadAccountDetailEndPoint:pn}):null,b===!0?e.jsx(an,{closeDrawerHandler:Ie,isCheckDepositDrawerOpen:b}):null,e.jsxs(Na,{windowSize:i,children:[e.jsx(ue,{isAppContentDrawerOpen:mn,handleDrawerToggle:Se}),e.jsx(Ga,{zeniBankListView:S,navigate:t,currentTenant:m,location:r,companyId:P,analytics:R,maxInsuredAmount:f.maxInsuredAmount,isExpressPayEnabled:w,isBillPayEnabled:dn,isDebitCardFeatureEnabled:s,isAutoTransferRuleEnabled:l,handleDrawerToggle:Se,isAiCfoAccessEnabled:hn,onAskAiCfoClick:fn})]})]}):Z&&K?e.jsx(Q,{to:"../setup"}):m.companyZeniAccountInfo?.info&&!Z&&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`,qa=U.div`
|
|
50
|
-
display: flex;
|
|
51
|
-
width: 100%;
|
|
52
|
-
flex: 1 1 auto;
|
|
53
|
-
flex-direction: column;
|
|
54
|
-
align-items: center;
|
|
55
|
-
min-height: 100vh;
|
|
56
|
-
background-color: ${n=>n.theme.colors.grey4};
|
|
57
|
-
`,Ya=ae((function(n,a){const{currentTenant:r}=a,t=Xe(n,a.accountId),o=j.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(Kn(p))):c==="accountStatement"&&(h=Ka(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(Ke(i,!1))},onCloseAccountClick:()=>{n(Ee(i,"closeAccount",""))},onBackClick:()=>{r("../",{relative:"path"})}}}))(ga);function re({isTransferDrawerOpen:n,isCheckDepositDrawerOpen:a,isAccountInfoDrawerOpen:r}){const t=G(),o=ne(),i=z(),d=M(),{tenantEmailDomain:c,accountId:p}=W(),{useDynamicConfig:h}=H(),{useFeatureGate:y}=H(),{isFeatureEnabled:s}=y($.isDebitCardFeatureEnabled),l=k((K=>L(K))),{configValue:f}=h(N.expressPayConfig),m=f.is_enable_all_tenants===!0||f.tenant_ids!=null&&f.tenant_ids.includes(l.tenantId),P=!!l.companyBillPayInfo?.info?.isBillPayEnabled,D=j.getSignedInUser(),w=l.companyId??j.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),[b,O]=g.useState(!1),[S,B]=g.useState(!1),u=k((K=>Xe(K,p??""))),V=u.fetchState,{isAiCfoAccessEnabled:pe,onAskAiCfoClick:oe}=nn({mobileExploreReferrer:"Checking Account Detail"});Qe({isDataReady:V==="Completed"}),g.useEffect((()=>{A||(i(Ke(p??"",!1)),E(!0))}),[A,i,V]),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 Z=()=>{B(!1),o("..")};return e.jsxs(e.Fragment,{children:[S===!0&&u.accountDetail!=null?e.jsx(_a,{authParams:I,downloadAccountDetailEndPoint:C,closeDrawerHandler:Z,isAccountInfoDrawerOpen:S,zeniBankAccountDetail:u.accountDetail}):null,T===!0?e.jsx(tn,{closeDrawerHandler:Z,isTransferDrawerOpen:T,zeniAccountsConfig:u.zeniAccountsConfig,authParams:I,downloadAccountDetailEndPoint:C}):null,b===!0?e.jsx(an,{closeDrawerHandler:Z,isCheckDepositDrawerOpen:b}):null,e.jsx(qa,{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`,Ka=(n,a)=>`/${n}/checking/${a}/statements`,Ja=ae((function(n,a){const{companyId:r}=a;return{zeniAccountSetupView:Jn(n,r)}}),(function(n,a){const{navigate:r,companyId:t}=a;return{onSetupButtonClick:()=>{R.trackAccountsPromoPageClicked("Setup Accounts"),n(Qn(t))},onBackClick:()=>{r("../..",{relative:"path"})},onSetupZeniAccountSuccess:()=>{r("../setup",{relative:"path"})}}}))(ya),Qa=()=>{const n=ne(),a=G(),{tenantEmailDomain:r}=W(),{useDynamicConfig:t}=H(),o=ha(),i=F(),[d,c]=g.useState(!1),[p,h]=g.useState(!1),y=k((A=>L(A))),{configValue:s}=t(N.zeniAccountsConfig),l=fe(s);g.useEffect((()=>{p===!1&&a.state?.message==="activation"&&h(!0)}),[a.state]);const f=j.getSignedInUserTenant(r)?.companyId??y.companyId,m=j.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:R,onLoad:A=>(E=>E.trackPageLoaded(we.Event.accountsPromoPageViewed))(A)}),e.jsx(ue,{isAppContentDrawerOpen:d,handleDrawerToggle:D}),e.jsx(Ja,{analytics:R,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 bt(){const n=G(),a=k((S=>L(S))),r=F(),{useFeatureGate:t,useDynamicConfig:o}=H(),i=te(),d=ee(i?.loggedInUserRoleMap),c=ye(i?.loggedInUserRoleMap),p=!!a.company?.companyZeniAccountInfo?.isZeniAccountEnabled,h=!!a.company?.companyZeniAccountInfo?.isZeniAccountTOSAccepted,{isFeatureEnabled:y}=t($.isChargeCardFeatureEnabled),{isFeatureEnabled:s}=t($.isDebitCardFeatureEnabled),l=qe(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(N.expressPayConfig),A=C.is_enable_all_tenants===!0||C.tenant_ids!=null&&C.tenant_ids.includes(a.tenantId),{isFeatureEnabled:E}=t($.isAutoTransferRuleEnabled),T=xa(a,y,s)&&!m&&oa(i?.loggedInUserRoleMap),v=sa(i?.loggedInUserRoleMap),b=I&&ee(i?.loggedInUserRoleMap),O=b||Me(i?.loggedInUserRoleMap);return e.jsxs(Le,{children:[e.jsx(x,{path:"setup",element:e.jsx(Oe,{isBillPayAdminLevelAccess:P,isUserHasOnlyBillPayAccess:D,isReimbursementAdminLevelAccess:w,isZeniAccountAdminLevelAccess:b,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:b,isChargeCardAdminLevelAccess:T,isUserHasOnlyCardAccess:v,productType:"zeni_accounts",type:"verification"})}),E?e.jsxs(e.Fragment,{children:[e.jsx(x,{path:"auto-transfer",element:e.jsx(Re,{})}),O?e.jsx(x,{path:"auto-transfer/:ruleId/edit",element:e.jsx(Re,{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(Le,{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{bt as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-Vz4gvIdI.js";import{a as m}from"./sentry-Y8vuE8aQ.js";import{h as x,u as j,g as $,i as v,j as p}from"./core-GrVUbJGD.js";import{U3 as s,U2 as B,a0H as C,fI as T,a0I as U}from"./zeni-epic-state-COBHVss0.js";import{_ as z,ac as g,z as D,a5 as E,d6 as L,a2 as P}from"./index-eXyO65Ih.js";import{u as _,n as N}from"./mui-CuMgG_27.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]="3eb33a84-3eea-45d2-abf4-fa0cfb198db0",e._sentryDebugIdIdentifier="sentry-dbid-3eb33a84-3eea-45d2-abf4-fa0cfb198db0")}catch{}})();const G=N.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=z(),f=$();let{accountId:a}=v(),l=`${g.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${a}`;a==null&&f.pathname.includes(`${s}/statements`)&&(a=s,l=`${g.bankingMicroServiceBaseUrl}/1.0/${s}`);const[u,b]=m.useState(!1),y=_();m.useEffect((()=>{u||(b(!0),n(B(a??"",!1)))}),[u,n]);const o=p((t=>C(t,a??""))),h=()=>{const t=P(f.state?.pathnameStackToGoBack),S=t.poppedPathname??"..";e(S,{state:{pathnameStackToGoBack:t.newStack}})},r=D.getSignedInUser(),c=p((t=>T(t))),I={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:c.tenantId??""},w=U(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(E,{fetchState:"In-Progress",style:{backgroundColor:y.colors.grey5}}):i.jsx(G,{windowSize:d,children:i.jsx(L,{currentTenantCompanyName:k,statementListView:o,accountLast4:w,onBackClick:h,authParams:I,downloadEndPoint:l})})}export{F as Z};
|