@zeniai/web-app-ui 5.2.5-qa → 5.2.6-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/AddressRoutes-CRqr9Fgx.js +1 -0
- package/dist/assets/AddressScreen-_QOTUIVr.js +9 -0
- package/dist/assets/{AiCfoScreen-VVOEifJe.js → AiCfoScreen-CX7E8Peo.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-CYrGGRnM.js → BillPayApprovalRoutes-ClmCpYFd.js} +1 -1
- package/dist/assets/{BillPayRoutes-BVRqL3zt.js → BillPayRoutes-DoSwk72T.js} +1 -1
- package/dist/assets/{BusinessVerificationPageScreen-C1GhHZfv.js → BusinessVerificationPageScreen-CzDFv09Y.js} +2 -2
- package/dist/assets/{CardsAiCfoScreen-Dn57Z7ID.js → CardsAiCfoScreen-eeV0SveA.js} +1 -1
- package/dist/assets/{ChargeCardRoutes-WGrebZc7.js → ChargeCardRoutes-D-2cGFR8.js} +1 -1
- package/dist/assets/{CompanyPassportScreen-B77ANCzJ.js → CompanyPassportScreen-Dgc1b90N.js} +1 -1
- package/dist/assets/{ConnectionAuthScreen-J80gUPqc.js → ConnectionAuthScreen-BJNKfgFC.js} +1 -1
- package/dist/assets/CustomerOnboardingAuthScreen-B5MRHJlf.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-BI3xAdoM.js → CustomerOnboardingRoutes-CU2s9JFJ.js} +1 -1
- package/dist/assets/{DashboardRoutes-Coz7zybA.js → DashboardRoutes-D_nR7gnV.js} +1 -1
- package/dist/assets/{DefaultTenantHome-D36CLxbC.js → DefaultTenantHome-CAghXBT6.js} +1 -1
- package/dist/assets/{DomesticWireDetailScreen-ClrZi_aH.js → DomesticWireDetailScreen-BrMTJ0LT.js} +1 -1
- package/dist/assets/{DrawerScreen-Bwo6MtA9.js → DrawerScreen-DbaoUmyp.js} +1 -1
- package/dist/assets/{EntityDetailRoutes-CMpOB7m7.js → EntityDetailRoutes-RWRqdoUW.js} +1 -1
- package/dist/assets/{ExpenseAutomationRoutes-B2Rl_5li.js → ExpenseAutomationRoutes-Bg1lugdX.js} +1 -1
- package/dist/assets/{FeaturePreviewScreen-xaLb3Sas.js → FeaturePreviewScreen-BfuOs-n9.js} +1 -1
- package/dist/assets/{HubSpotOAuthCallbackScreen-BEX7z7n8.js → HubSpotOAuthCallbackScreen-Tm6-OaLw.js} +1 -1
- package/dist/assets/{MagicLinkRoutes-BoxvYhlu.js → MagicLinkRoutes-BPFrOlQS.js} +9 -9
- package/dist/assets/MagicLinkSignInScreen-_-oIW3R9.js +12 -0
- package/dist/assets/{MobileAppDrawer-Jx6oA3pH.js → MobileAppDrawer-BVsx0d52.js} +1 -1
- package/dist/assets/NotFoundScreen-6c0jfbLt.js +1 -0
- package/dist/assets/{NotificationRoutes-_hrCm3yV.js → NotificationRoutes-m7aisVZh.js} +1 -1
- package/dist/assets/{OAuthConsentScreen-DxqKDWZb.js → OAuthConsentScreen-Dr5xHicR.js} +1 -1
- package/dist/assets/{PandLWithForecastRoutes-BhAndE7k.js → PandLWithForecastRoutes-DWPW45GW.js} +1 -1
- package/dist/assets/{PeopleRoutes-BcE4tjjF.js → PeopleRoutes-CeN9aIQp.js} +3 -3
- package/dist/assets/{PerformanceRoutes-IQllliPk.js → PerformanceRoutes-Dhkh0POj.js} +1 -1
- package/dist/assets/{Preview-C4rgn9Kh.js → Preview-B54tVRwE.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-CiWwOme5.js → QBOConnectionScreen-DaV3loZh.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRoutes-C9tOmmol.js → ReimbursementApprovalRoutes-D6a0suIn.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-1cB5_Ivv.js → ReimbursementApprovalRuleDetailScreen-LSfhRsMC.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-D8juYJG0.js → ReimbursementRoutes-Bh9_hMkC.js} +4 -4
- package/dist/assets/{ReportsRoutes-BWbT5-2s.js → ReportsRoutes-vW__-mqO.js} +1 -1
- package/dist/assets/{RewardsRoutes-jCXcd_0_.js → RewardsRoutes-DTUZ1AWT.js} +1 -1
- package/dist/assets/{ScreenRoutes-CazuRo-Z.js → ScreenRoutes-foz6ng2P.js} +2 -2
- package/dist/assets/{SettingsRoutes-CIVDxiMs.js → SettingsRoutes-fWbhF4uP.js} +1 -1
- package/dist/assets/{SetupPagesScreen-C4g2yMXn.js → SetupPagesScreen-B8WYHzUu.js} +5 -5
- package/dist/assets/{SignInScreen-CtiCUrkU.js → SignInScreen-CHWWmIOt.js} +1 -1
- package/dist/assets/{SignOutScreen-D2kD70Lk.js → SignOutScreen-xt4AkWg7.js} +1 -1
- package/dist/assets/{TaskListScreen-o-vUUxVM.js → TaskListScreen-BNNdSA1G.js} +1 -1
- package/dist/assets/{TaskRoutes-Bj6oUeug.js → TaskRoutes-Brk_g9vS.js} +1 -1
- package/dist/assets/{TransactionDetailRoutes-B-XnTNx6.js → TransactionDetailRoutes-D6y-8FuE.js} +1 -1
- package/dist/assets/{TransactionDetailScreen-BwiyRlTE.js → TransactionDetailScreen-CHtoQtM9.js} +1 -1
- package/dist/assets/{TransactionListRoutes-BXwDib86.js → TransactionListRoutes-DqRETwf-.js} +1 -1
- package/dist/assets/{TreasuryRoutes-Cg5uIx4M.js → TreasuryRoutes-Bgqikq-u.js} +6 -6
- package/dist/assets/{VendorsRoutes-pL-kmsiW.js → VendorsRoutes-CHFxSJdV.js} +1 -1
- package/dist/assets/{WiseConfirmationScreen-CWwYe_1u.js → WiseConfirmationScreen-XYoM1z3h.js} +1 -1
- package/dist/assets/{ZeniAccountRoutes-CLB3bsLU.js → ZeniAccountRoutes-Chw_TTRS.js} +1 -1
- package/dist/assets/{ZeniAccountStatementScreen-FzJDAKg0.js → ZeniAccountStatementScreen-C6Lownq7.js} +1 -1
- package/dist/assets/{accountMappingHelper-B3GJDP8t.js → accountMappingHelper-Cb6Phjli.js} +1 -1
- package/dist/assets/{analytics-CLPkJVUt.js → analytics-CMhYvjgp.js} +1 -1
- package/dist/assets/{analyticsHelper-CaOEgKjH.js → analyticsHelper-D86wGf3h.js} +1 -1
- package/dist/assets/{core-DDTcxwSa.js → core-BjRnoVdN.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-c4_P4Ggv.js → decodeURIComponentSafe-8RHUrhvv.js} +1 -1
- package/dist/assets/{dnd-DN4SjrGY.js → dnd-DD1NomKe.js} +1 -1
- package/dist/assets/{empty-DwUxdq-l.js → empty-BxET7kap.js} +1 -1
- package/dist/assets/{empty-BrhcqgpB.js → empty-Lyk-jq4r.js} +1 -1
- package/dist/assets/{emptyVideoElement-BJTfT3f4.js → emptyVideoElement-6B6_1DjQ.js} +1 -1
- package/dist/assets/{epic-DlRHeZx5.js → epic-Bndm1KHn.js} +2 -2
- package/dist/assets/{getLocaleForTenant-Bbn_iZRO.js → getLocaleForTenant-B67NSzYh.js} +1 -1
- package/dist/assets/{index-_XoknVtc.js → index-0VsUkhux.js} +1 -1
- package/dist/assets/{index-GI-yFduX.js → index-BT-czevE.js} +1 -1
- package/dist/assets/{index-C7z7mhe6.js → index-BfsWyp4D.js} +1 -1
- package/dist/assets/{index-Cs41x57s.js → index-BgcyTzzQ.js} +2 -2
- package/dist/assets/{index-Bw2ZL8p-.js → index-CQBqRx-l.js} +1 -1
- package/dist/assets/{index-6egXekoG.js → index-DG5dsziC.js} +5452 -5452
- package/dist/assets/{index-Czm3PnNK.js → index-DaCvER1D.js} +1 -1
- package/dist/assets/{index-Db-OVct9.js → index-DlX43o9f.js} +1 -1
- package/dist/assets/{lexical-wPgubRgx.js → lexical-CkYiXWk9.js} +1 -1
- package/dist/assets/{liveblocks-Jco3UIMO.js → liveblocks-BxpjjfmG.js} +1 -1
- package/dist/assets/{lottie-5ulCcvzA.js → lottie-iCzPfqr5.js} +1 -1
- package/dist/assets/{mui-7SHFWBq4.js → mui-CdxnWIp4.js} +1 -1
- package/dist/assets/{pathToGoBack-AwGR279f.js → pathToGoBack-ne1S9CXU.js} +1 -1
- package/dist/assets/{pdf-Bmq2uTu7.js → pdf-C9PyNDT1.js} +3 -3
- package/dist/assets/{pdf-lib-Bs_efgkA.js → pdf-lib-AYWezrZl.js} +1 -1
- package/dist/assets/{plaid-CAPgzyBl.js → plaid-DtXw88Ai.js} +1 -1
- package/dist/assets/{pusher-C1o3AR7N.js → pusher-BKAtqq4a.js} +1 -1
- package/dist/assets/{react-B4gHeZCe.js → react-BU5_UEj2.js} +1 -1
- package/dist/assets/{react-BSxzkMw-.js → react-BoUZ92nm.js} +1 -1
- package/dist/assets/{react-BXji6GJy.js → react-C9kbZlRC.js} +1 -1
- package/dist/assets/{react-DXPMD8r6.js → react-CpTVGU-U.js} +1 -1
- package/dist/assets/{react-CNsHDRFK.js → react-DT4sGgUJ.js} +1 -1
- package/dist/assets/{react-BBaJacvp.js → react-nOMx_HSn.js} +1 -1
- package/dist/assets/{recharts-DTh_yae_.js → recharts-CFinCL-a.js} +1 -1
- package/dist/assets/{routePaths-BAUFI3OU.js → routePaths-C7myDwxn.js} +1 -1
- package/dist/assets/{sentry-CbZftWrQ.js → sentry-B06otMHd.js} +1 -1
- package/dist/assets/{url-BdqTrgKm.js → url-C1h0szFu.js} +1 -1
- package/dist/assets/{url-CoW963-h.js → url-CX7iFnba.js} +1 -1
- package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-Dl9ADJW1.js → useAiCfoDashboardSuggestedQuestionsChips-TpXXYr6r.js} +1 -1
- package/dist/assets/{useAskAiCfoHostNavButtonProps-Bos4K4TS.js → useAskAiCfoHostNavButtonProps-CFgUcHmD.js} +1 -1
- package/dist/assets/{useCashManagementBanner-BUybvUIn.js → useCashManagementBanner-FLL8Hs1-.js} +1 -1
- package/dist/assets/{useChargeCardPusherEvents-BpOf9JKc.js → useChargeCardPusherEvents-DT2ptjCA.js} +1 -1
- package/dist/assets/{useDeviceId-DjcJeLbB.js → useDeviceId-BTkaAWDK.js} +1 -1
- package/dist/assets/{useEmailConnectResultRefresh-DR2vKA_r.js → useEmailConnectResultRefresh-DG9AkHtd.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-CseRHYAe.js → useInitialThreadRequest-Dc7yU2XH.js} +1 -1
- package/dist/assets/{utils-j_awrB6_.js → utils-CaYSR2MR.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-4wOo9jIi.js → withTransactionSidePanel-tBE2uHP9.js} +1 -1
- package/dist/assets/{zeni-epic-state-BDzEBpFS.js → zeni-epic-state-BkEKIYbX.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/AddressRoutes-DO5lErI_.js +0 -1
- package/dist/assets/AddressScreen-FtxuOYyz.js +0 -9
- package/dist/assets/CustomerOnboardingAuthScreen-dd7eiLmZ.js +0 -1
- package/dist/assets/MagicLinkSignInScreen-B_LdawFj.js +0 -12
- package/dist/assets/NotFoundScreen-CpKiXSLQ.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as d}from"./liveblocks-Jco3UIMO.js";import{i as K,j as _,g as H,u as $,h as W,n as ee,k as ra,o as bt,p as O,N as Pn}from"./core-DDTcxwSa.js";import{eW as U,Nl as We,bE as ia,bo as De,Oz as On,i_ as Fn,OA as Kt,OB as Rn,j1 as Ct,OC as Ze,OD as Bn,j6 as jn,OE as qt,OF as Mn,ja as kt,OG as Qe,OH as Ln,cq as yt,OI as Un,OJ as Gn,NF as Vn,k2 as Nn,OK as Yn,bn as Xe,OL as ca,N9 as ce,bc as la,kg as da,og as ua,j$ as ma,Nb as le,Na as J,eV as pa,fr as $n,g2 as _t,OM as zn,ON as Kn,OO as ha,OP as Oe,vS as Me,vT as Le,we,w8 as de,vX as Ue,OQ as qn,OR as Zn,OS as Qn,OT as fa,OU as Fe,OV as Hn,dI as Je,s9 as ga,OW as Wn,OX as Xn,OY as Jn,OZ as vt,Mr as At,kw as xe,wm as It,sh as eo,O_ as to,vU as Zt,sc as Ee,s8 as ba,O$ as ge,P0 as ao,P1 as Et,Mq as Tt,uh as Ca,P2 as no,P3 as oo,P4 as so,P5 as Dt,ux as ro,P6 as io,vW as Qt,ug as ka,P7 as be,P8 as co,bs as _a,wq as Sa,P9 as lo,Pa as uo,Pb as mo,Pc as wt,wl as po,Pd as ho,vV as Ht,wp as ya,Pe as Ce,Pf as fo,Pg as go,Ph as va,kl as Aa,od as Ia,kq as Ea,ob as Ta,oa as Da,o9 as wa,tF as bo,Pi as Co,cU as ko,cV as _o,o6 as So,fR as yo,on as vo,GD as dt,Gv as Ao,Gz as Io,Pj as Eo,Pk as To,Pl as Do,b5 as et,fJ as wo,hI as xo,gi as Po,oh as Oo,jU as Fo,oe as Ro,oc as Bo,fD as jo,fB as Mo}from"./zeni-epic-state-BDzEBpFS.js";import{z as M,a4 as te,s as w,d as T,a as q,a_ as Lo,a0 as Ge,D as Ve,a$ as xa,f as N,b0 as Uo,I as _e,b1 as Pa,C as Se,G as B,y as Go,b2 as Vo,b3 as No,X as Oa,K as Fa,c as Ra,_ as Yo,b4 as $o,T as zo,aS as Ba,a1 as se,b5 as ja,b6 as Ma,a3 as La,b7 as Ko,b8 as qo,A as Zo,ar as Qo,r as Ho,Z as Wo,b9 as Xo,ba as Jo,bb as es,bc as ts,bd as ke}from"./index-6egXekoG.js";import{n as xt}from"./mui-7SHFWBq4.js";import{a as b}from"./sentry-CbZftWrQ.js";import{w as Ua}from"./withTransactionSidePanel-4wOo9jIi.js";import{c as Ga,t as Pe,f as ue,a as Pt,v as as}from"./routePaths-BAUFI3OU.js";import{u as ae}from"./useAskAiCfoHostNavButtonProps-Bos4K4TS.js";import je from"./NotFoundScreen-CpKiXSLQ.js";import{u as Ot}from"./useInitialThreadRequest-CseRHYAe.js";import{t as Va}from"./analyticsHelper-CaOEgKjH.js";import{C as ns}from"./CompanyPassportScreen-B77ANCzJ.js";import{u as os}from"./useAiCfoDashboardSuggestedQuestionsChips-Dl9ADJW1.js";import{F as ss}from"./FeaturePreviewScreen-xaLb3Sas.js";import"./recharts-DTh_yae_.js";import"./analytics-CLPkJVUt.js";import"./plaid-CAPgzyBl.js";import"./dnd-DN4SjrGY.js";import"./stripe-DMRn4zHo.js";import"./lottie-5ulCcvzA.js";import"./lexical-wPgubRgx.js";import"./pdf-Bmq2uTu7.js";import"./utils-j_awrB6_.js";import"./TransactionDetailScreen-BwiyRlTE.js";import"./decodeURIComponentSafe-c4_P4Ggv.js";import"./MobileAppDrawer-Jx6oA3pH.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="ee0603a5-046d-45e8-9d83-f1bb3b00cc0f",e._sentryDebugIdIdentifier="sentry-dbid-ee0603a5-046d-45e8-9d83-f1bb3b00cc0f")}catch{}})();const rs=Ua(function({openTransactionPanel:e,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n}){const{vendorId:o,reportDate:r}=K(),s=M.getSignedInUser(),i=_(I=>I.tenantState.currentTenantId),c=_(I=>U(I)),{tenantEmailDomain:m}=K(),g=H(),C=c?.companyName??"",u={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:i??""},l=b.useMemo(()=>({authParams:u,companyName:C,downloadEndPoint:`${te}/agingDetailedReport`,timezone:We()}),[]),h=b.useMemo(()=>r!=null?ia(r):De(),[r]),p=$(),f=W(),S=_(I=>On(I,h,o)),E=b.useCallback(()=>{o!=null&&S.fetchState!=="In-Progress"&&S.fetchState!=="Completed"&&p(Fn(o,h))},[h]),v=b.useCallback(()=>{f("../../",{relative:"path"})},[]),k=b.useCallback((I,L)=>{p(Kt({sortKey:I,sortOrder:L}))},[]),D=b.useCallback(I=>{p(Kt({downloadState:I}))},[]),x=b.useCallback(I=>{if(e)e(I.transactionId,I.transactionType);else if(m!=null){const L=Ga({id:I.transactionId,type:I.transactionType},m);f(L);const ne=w(g.state?.pathnameStackToGoBack,g.pathname);f(L,{state:{pathnameStackToGoBack:ne}})}},[m,e]),y=b.useCallback(()=>{S.vendor!=null&&T.trackApAgingDetail("AP Aging",h.format(q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),S.vendor.id,S.vendor.name)},[S.vendor,h]);return b.useEffect(()=>{E()},[]),b.useEffect(()=>{S.fetchState==="Completed"&&y()},[y,S.fetchState]),d.jsx(Lo,{apAgingDetail:S,downloadParams:l,reportDate:h,analytics:T,onTransactionClick:x,onReload:E,onBackClick:v,onColumnSortConfigChanged:k,updateDownloadStateHandler:D,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n})}),is=()=>{const e=$(),a=W(),t=_(k=>Rn(k)),{isAiCfoAccessEnabled:n,onAskAiCfoClick:o}=ae({mobileExploreReferrer:"AP Aging"});Ge({isDataReady:t.fetchState==="Completed"});const r=M.getSignedInUser(),s=_(k=>k.tenantState.currentTenantId),i=_(k=>U(k)),c=i?.companyName??"",m={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:s??""},g=b.useMemo(()=>({authParams:m,companyName:c,downloadEndPoint:`${te}/agingReport`,timezone:We()}),[]),C=t.apAgingUIState.selectedDate??De(),u=b.useCallback(()=>{t.fetchState!=="In-Progress"&&t.fetchState!=="Completed"&&e(Ct(C))},[]);b.useEffect(()=>{u()},[]);const l=b.useCallback(()=>{a("../",{relative:"path"})},[]),h=b.useCallback(k=>{e(Ze({searchString:k}))},[]),p=b.useCallback((k,D)=>{e(Ze({sortKey:D,sortOrder:k}))},[]),f=b.useCallback(k=>{a(`./${k}/${C.format(q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`)},[C]),S=b.useCallback(k=>{e(Ze({downloadState:k}))},[]),E=b.useCallback((k,D)=>{},[]),v=b.useCallback((k,D)=>{e(Ze({selectedDate:k,agingDateSelectionType:D})),e(Ct(k))},[]);return d.jsxs(d.Fragment,{children:[t.fetchState==="Completed"?d.jsx(Ve,{analytics:T,onLoad:k=>k.trackPageLoaded(N.Event.agingReport,"AP Aging")}):null,d.jsx(xa,{uiState:t.apAgingUIState,report:t,downloadParams:g,analytics:T,onReloadReport:u,onBackClick:l,onSearchTextChange:h,onSortOrderChange:p,onEntityNameClick:f,updateDownloadStateHandler:S,onSelectedDateChanged:v,onNodeCollapseToggled:E,isAiCfoAccessEnabled:n,onAskAiCfoClick:o})]})},cs=Ua(function({openTransactionPanel:e,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n}){const{customerId:o,reportDate:r}=K(),s=M.getSignedInUser(),i=_(y=>U(y)),{tenantEmailDomain:c}=K(),m=H(),g=i.companyName,C={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:i.tenantId},u=b.useMemo(()=>({authParams:C,companyName:g,downloadEndPoint:`${te}/agingDetailedReport`,timezone:We()}),[]),l=b.useMemo(()=>r!=null?ia(r):De(),[r]),h=$(),p=W(),f=_(y=>Bn(y,l,o)),S=b.useCallback(()=>{o!=null&&f.fetchState!=="In-Progress"&&f.fetchState!=="Completed"&&h(jn(o,l))},[l]),E=b.useCallback(()=>{p("../../",{relative:"path"})},[]),v=b.useCallback((y,I)=>{h(qt({sortKey:y,sortOrder:I}))},[]),k=b.useCallback(y=>{h(qt({downloadState:y}))},[]),D=b.useCallback(y=>{if(e)e(y.transactionId,y.transactionType);else if(c!=null){const I=Ga({id:y.transactionId,type:y.transactionType},c);p(I);const L=w(m.state?.pathnameStackToGoBack,m.pathname);p(I,{state:{pathnameStackToGoBack:L}})}},[c,e]),x=b.useCallback(()=>{f.customer!=null&&T.trackArAgingDetail("AR Aging",l.format(q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),f.customer.id,f.customer.name)},[f.customer,l]);return b.useEffect(()=>{S()},[]),b.useEffect(()=>{f.fetchState==="Completed"&&x()},[f.fetchState,x]),d.jsx(Uo,{arAgingDetail:f,downloadParams:u,reportDate:l,analytics:T,onTransactionClick:D,onReload:S,onBackClick:E,onColumnSortConfigChanged:v,updateDownloadStateHandler:k,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n})}),ls=()=>{const e=$(),a=W(),t=_(v=>Mn(v)),{isAiCfoAccessEnabled:n,onAskAiCfoClick:o}=ae({mobileExploreReferrer:"AR Aging"});Ge({isDataReady:t.fetchState==="Completed"});const r=M.getSignedInUser(),s=_(v=>U(v)),i=s.companyName,c={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:s.tenantId},m=b.useMemo(()=>({authParams:c,companyName:i,downloadEndPoint:`${te}/agingReport`,timezone:We()}),[]),g=t.arAgingUIState.selectedDate??De(),C=b.useCallback(()=>{t.fetchState!=="In-Progress"&&t.fetchState!=="Completed"&&e(kt(g))},[]);b.useEffect(()=>{C()},[]);const u=b.useCallback(()=>{a("../",{relative:"path"})},[]),l=b.useCallback(v=>{e(Qe({searchString:v}))},[]),h=b.useCallback((v,k)=>{e(Qe({sortKey:k,sortOrder:v}))},[]),p=b.useCallback(v=>{a(`./${v}/${g.format(q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`)},[g]),f=b.useCallback(v=>{e(Qe({downloadState:v}))},[]),S=b.useCallback((v,k)=>{e(Qe({selectedDate:v,agingDateSelectionType:k})),e(kt(v))},[]),E=b.useCallback((v,k)=>{e(Ln({nodeId:v,isCollapsed:k}))},[]);return d.jsxs(d.Fragment,{children:[t.fetchState==="Completed"?d.jsx(Ve,{analytics:T,onLoad:v=>v.trackPageLoaded(N.Event.agingReport,"AR Aging")}):null,d.jsx(xa,{uiState:t.arAgingUIState,report:t,downloadParams:m,analytics:T,onReloadReport:C,onBackClick:u,onSearchTextChange:l,onSortOrderChange:h,onEntityNameClick:p,updateDownloadStateHandler:f,onSelectedDateChanged:S,onNodeCollapseToggled:E,isAiCfoAccessEnabled:n,onAskAiCfoClick:o})]})},Na=(e,a)=>({key:a,title:e.accountName,amount:e.balance?.available,logoUri:e.logo?.toString(),source:e});function Ya(e,a){const t=Vn(a.firstMonthOfFY);return{onItemClick:(n,o)=>{const r=o.accountName===""?o.accountDescription:o.accountName,s=Pe(a.tenantEmailDomain,o.accountId,o.accountType,r,"quarter",t,!1),i=w(a.location.state?.pathnameStackToGoBack,a.location.pathname);a.navigate(s,{state:{pathnameStackToGoBack:i,referrer:a.referrerType}})},onSetAccountsStatementDate:(n,o)=>{e(Nn(n,o))},onPromoCardBtnClick:n=>{if(a.isZeniAccountsAdmin){let o=`../../checking/${n}`;n?T.trackZeniAccountsCashBalancePromoClicked("Move Money"):(T.trackZeniAccountsCashBalancePromoClicked("Sign Up for Free"),o="../../checking/promo");const r=w(a.location.state?.pathnameStackToGoBack,a.location.pathname);a.navigate(o,{state:{pathnameStackToGoBack:r}})}else T.trackZeniAccountsCashBalancePromoClicked("Learn More"),window.open("https://www.zeni.ai/product/business-checking-accounts","_blank")}}}const ds=ee(function(e){const a=Un(e).accountsInOrder.map((n,o)=>Na(n,o)),t=Gn(e);return{sectionTitle:q.getLocalizedStrings().balanceCard.cashBalanceSectionTitle,transactionArray:a,zeniAccountsPromoCardReport:t,fetchState:e.cashBalanceState.fetchState,analytics:T}},Ya)(Pa),us=ee(function(e){const a=Yn(e).accountsInOrder.map((o,r)=>Na(o,r)),t=M.getSignedInUser(),n=Xe(t);return{sectionTitle:q.getLocalizedStrings().balanceCard.cardBalanceSectionTitle,transactionArray:a,isZeniUser:n,fetchState:e.cardBalanceState.fetchState,analytics:T}},Ya)(Pa);function ms(){const e=W(),a=H(),{tenantEmailDomain:t}=K(),n=_e(),o=_(s=>U(s).company?.companyInfo.firstMonthOfFY??1),r=yt(n?.loggedInUserRoleMap);return _(s=>s.cashBalanceState.fetchState)==="Error"?d.jsx(je,{}):d.jsx(ds,{tenantEmailDomain:t,location:a,referrerType:"Cash Balance",navigate:e,isZeniAccountsAdmin:r,firstMonthOfFY:o})}function ps(){const e=W(),a=H(),{tenantEmailDomain:t}=K(),n=_e(),o=yt(n?.loggedInUserRoleMap),r=_(s=>U(s).company?.companyInfo.firstMonthOfFY??1);return _(s=>s.cardBalanceState.fetchState)==="Error"?d.jsx(je,{}):d.jsx(us,{tenantEmailDomain:t,location:a,referrerType:"Card Balance",navigate:e,isZeniAccountsAdmin:o,firstMonthOfFY:r})}const hs=xt.div`
|
|
1
|
+
import{j as d}from"./liveblocks-BxpjjfmG.js";import{i as K,j as _,g as H,u as $,h as W,n as ee,k as ra,o as bt,p as O,N as Pn}from"./core-BjRnoVdN.js";import{eW as U,Nl as We,bE as ia,bo as De,Oz as On,i_ as Fn,OA as Kt,OB as Rn,j1 as Ct,OC as Ze,OD as Bn,j6 as jn,OE as qt,OF as Mn,ja as kt,OG as Qe,OH as Ln,cq as yt,OI as Un,OJ as Gn,NF as Vn,k2 as Nn,OK as Yn,bn as Xe,OL as ca,N9 as ce,bc as la,kg as da,og as ua,j$ as ma,Nb as le,Na as J,eV as pa,fr as $n,g2 as _t,OM as zn,ON as Kn,OO as ha,OP as Oe,vS as Me,vT as Le,we,w8 as de,vX as Ue,OQ as qn,OR as Zn,OS as Qn,OT as fa,OU as Fe,OV as Hn,dI as Je,s9 as ga,OW as Wn,OX as Xn,OY as Jn,OZ as vt,Mr as At,kw as xe,wm as It,sh as eo,O_ as to,vU as Zt,sc as Ee,s8 as ba,O$ as ge,P0 as ao,P1 as Et,Mq as Tt,uh as Ca,P2 as no,P3 as oo,P4 as so,P5 as Dt,ux as ro,P6 as io,vW as Qt,ug as ka,P7 as be,P8 as co,bs as _a,wq as Sa,P9 as lo,Pa as uo,Pb as mo,Pc as wt,wl as po,Pd as ho,vV as Ht,wp as ya,Pe as Ce,Pf as fo,Pg as go,Ph as va,kl as Aa,od as Ia,kq as Ea,ob as Ta,oa as Da,o9 as wa,tF as bo,Pi as Co,cU as ko,cV as _o,o6 as So,fR as yo,on as vo,GD as dt,Gv as Ao,Gz as Io,Pj as Eo,Pk as To,Pl as Do,b5 as et,fJ as wo,hI as xo,gi as Po,oh as Oo,jU as Fo,oe as Ro,oc as Bo,fD as jo,fB as Mo}from"./zeni-epic-state-BkEKIYbX.js";import{z as M,a4 as te,s as w,d as T,a as q,a_ as Lo,a0 as Ge,D as Ve,a$ as xa,f as N,b0 as Uo,k as _e,b1 as Pa,C as Se,G as B,y as Go,b2 as Vo,b3 as No,X as Oa,K as Fa,c as Ra,_ as Yo,b4 as $o,T as zo,aS as Ba,a1 as se,b5 as ja,b6 as Ma,a3 as La,b7 as Ko,b8 as qo,A as Zo,ar as Qo,r as Ho,Z as Wo,b9 as Xo,ba as Jo,bb as es,bc as ts,bd as ke}from"./index-DG5dsziC.js";import{n as xt}from"./mui-CdxnWIp4.js";import{a as b}from"./sentry-B06otMHd.js";import{w as Ua}from"./withTransactionSidePanel-tBE2uHP9.js";import{c as Ga,t as Pe,f as ue,a as Pt,v as as}from"./routePaths-C7myDwxn.js";import{u as ae}from"./useAskAiCfoHostNavButtonProps-CFgUcHmD.js";import je from"./NotFoundScreen-6c0jfbLt.js";import{u as Ot}from"./useInitialThreadRequest-Dc7yU2XH.js";import{t as Va}from"./analyticsHelper-D86wGf3h.js";import{C as ns}from"./CompanyPassportScreen-Dgc1b90N.js";import{u as os}from"./useAiCfoDashboardSuggestedQuestionsChips-TpXXYr6r.js";import{F as ss}from"./FeaturePreviewScreen-BfuOs-n9.js";import"./recharts-CFinCL-a.js";import"./analytics-CMhYvjgp.js";import"./plaid-DtXw88Ai.js";import"./dnd-DD1NomKe.js";import"./stripe-DMRn4zHo.js";import"./lottie-iCzPfqr5.js";import"./lexical-CkYiXWk9.js";import"./pdf-C9PyNDT1.js";import"./utils-CaYSR2MR.js";import"./TransactionDetailScreen-CHtoQtM9.js";import"./decodeURIComponentSafe-8RHUrhvv.js";import"./MobileAppDrawer-BVsx0d52.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="f3eddb24-de73-4860-99a7-93d41a10ebbb",e._sentryDebugIdIdentifier="sentry-dbid-f3eddb24-de73-4860-99a7-93d41a10ebbb")}catch{}})();const rs=Ua(function({openTransactionPanel:e,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n}){const{vendorId:o,reportDate:r}=K(),s=M.getSignedInUser(),i=_(I=>I.tenantState.currentTenantId),c=_(I=>U(I)),{tenantEmailDomain:m}=K(),g=H(),C=c?.companyName??"",u={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:i??""},l=b.useMemo(()=>({authParams:u,companyName:C,downloadEndPoint:`${te}/agingDetailedReport`,timezone:We()}),[]),h=b.useMemo(()=>r!=null?ia(r):De(),[r]),p=$(),f=W(),S=_(I=>On(I,h,o)),E=b.useCallback(()=>{o!=null&&S.fetchState!=="In-Progress"&&S.fetchState!=="Completed"&&p(Fn(o,h))},[h]),v=b.useCallback(()=>{f("../../",{relative:"path"})},[]),k=b.useCallback((I,L)=>{p(Kt({sortKey:I,sortOrder:L}))},[]),D=b.useCallback(I=>{p(Kt({downloadState:I}))},[]),x=b.useCallback(I=>{if(e)e(I.transactionId,I.transactionType);else if(m!=null){const L=Ga({id:I.transactionId,type:I.transactionType},m);f(L);const ne=w(g.state?.pathnameStackToGoBack,g.pathname);f(L,{state:{pathnameStackToGoBack:ne}})}},[m,e]),y=b.useCallback(()=>{S.vendor!=null&&T.trackApAgingDetail("AP Aging",h.format(q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),S.vendor.id,S.vendor.name)},[S.vendor,h]);return b.useEffect(()=>{E()},[]),b.useEffect(()=>{S.fetchState==="Completed"&&y()},[y,S.fetchState]),d.jsx(Lo,{apAgingDetail:S,downloadParams:l,reportDate:h,analytics:T,onTransactionClick:x,onReload:E,onBackClick:v,onColumnSortConfigChanged:k,updateDownloadStateHandler:D,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n})}),is=()=>{const e=$(),a=W(),t=_(k=>Rn(k)),{isAiCfoAccessEnabled:n,onAskAiCfoClick:o}=ae({mobileExploreReferrer:"AP Aging"});Ge({isDataReady:t.fetchState==="Completed"});const r=M.getSignedInUser(),s=_(k=>k.tenantState.currentTenantId),i=_(k=>U(k)),c=i?.companyName??"",m={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:s??""},g=b.useMemo(()=>({authParams:m,companyName:c,downloadEndPoint:`${te}/agingReport`,timezone:We()}),[]),C=t.apAgingUIState.selectedDate??De(),u=b.useCallback(()=>{t.fetchState!=="In-Progress"&&t.fetchState!=="Completed"&&e(Ct(C))},[]);b.useEffect(()=>{u()},[]);const l=b.useCallback(()=>{a("../",{relative:"path"})},[]),h=b.useCallback(k=>{e(Ze({searchString:k}))},[]),p=b.useCallback((k,D)=>{e(Ze({sortKey:D,sortOrder:k}))},[]),f=b.useCallback(k=>{a(`./${k}/${C.format(q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`)},[C]),S=b.useCallback(k=>{e(Ze({downloadState:k}))},[]),E=b.useCallback((k,D)=>{},[]),v=b.useCallback((k,D)=>{e(Ze({selectedDate:k,agingDateSelectionType:D})),e(Ct(k))},[]);return d.jsxs(d.Fragment,{children:[t.fetchState==="Completed"?d.jsx(Ve,{analytics:T,onLoad:k=>k.trackPageLoaded(N.Event.agingReport,"AP Aging")}):null,d.jsx(xa,{uiState:t.apAgingUIState,report:t,downloadParams:g,analytics:T,onReloadReport:u,onBackClick:l,onSearchTextChange:h,onSortOrderChange:p,onEntityNameClick:f,updateDownloadStateHandler:S,onSelectedDateChanged:v,onNodeCollapseToggled:E,isAiCfoAccessEnabled:n,onAskAiCfoClick:o})]})},cs=Ua(function({openTransactionPanel:e,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n}){const{customerId:o,reportDate:r}=K(),s=M.getSignedInUser(),i=_(y=>U(y)),{tenantEmailDomain:c}=K(),m=H(),g=i.companyName,C={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:i.tenantId},u=b.useMemo(()=>({authParams:C,companyName:g,downloadEndPoint:`${te}/agingDetailedReport`,timezone:We()}),[]),l=b.useMemo(()=>r!=null?ia(r):De(),[r]),h=$(),p=W(),f=_(y=>Bn(y,l,o)),S=b.useCallback(()=>{o!=null&&f.fetchState!=="In-Progress"&&f.fetchState!=="Completed"&&h(jn(o,l))},[l]),E=b.useCallback(()=>{p("../../",{relative:"path"})},[]),v=b.useCallback((y,I)=>{h(qt({sortKey:y,sortOrder:I}))},[]),k=b.useCallback(y=>{h(qt({downloadState:y}))},[]),D=b.useCallback(y=>{if(e)e(y.transactionId,y.transactionType);else if(c!=null){const I=Ga({id:y.transactionId,type:y.transactionType},c);p(I);const L=w(m.state?.pathnameStackToGoBack,m.pathname);p(I,{state:{pathnameStackToGoBack:L}})}},[c,e]),x=b.useCallback(()=>{f.customer!=null&&T.trackArAgingDetail("AR Aging",l.format(q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),f.customer.id,f.customer.name)},[f.customer,l]);return b.useEffect(()=>{S()},[]),b.useEffect(()=>{f.fetchState==="Completed"&&x()},[f.fetchState,x]),d.jsx(Uo,{arAgingDetail:f,downloadParams:u,reportDate:l,analytics:T,onTransactionClick:D,onReload:S,onBackClick:E,onColumnSortConfigChanged:v,updateDownloadStateHandler:k,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n})}),ls=()=>{const e=$(),a=W(),t=_(v=>Mn(v)),{isAiCfoAccessEnabled:n,onAskAiCfoClick:o}=ae({mobileExploreReferrer:"AR Aging"});Ge({isDataReady:t.fetchState==="Completed"});const r=M.getSignedInUser(),s=_(v=>U(v)),i=s.companyName,c={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:s.tenantId},m=b.useMemo(()=>({authParams:c,companyName:i,downloadEndPoint:`${te}/agingReport`,timezone:We()}),[]),g=t.arAgingUIState.selectedDate??De(),C=b.useCallback(()=>{t.fetchState!=="In-Progress"&&t.fetchState!=="Completed"&&e(kt(g))},[]);b.useEffect(()=>{C()},[]);const u=b.useCallback(()=>{a("../",{relative:"path"})},[]),l=b.useCallback(v=>{e(Qe({searchString:v}))},[]),h=b.useCallback((v,k)=>{e(Qe({sortKey:k,sortOrder:v}))},[]),p=b.useCallback(v=>{a(`./${v}/${g.format(q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`)},[g]),f=b.useCallback(v=>{e(Qe({downloadState:v}))},[]),S=b.useCallback((v,k)=>{e(Qe({selectedDate:v,agingDateSelectionType:k})),e(kt(v))},[]),E=b.useCallback((v,k)=>{e(Ln({nodeId:v,isCollapsed:k}))},[]);return d.jsxs(d.Fragment,{children:[t.fetchState==="Completed"?d.jsx(Ve,{analytics:T,onLoad:v=>v.trackPageLoaded(N.Event.agingReport,"AR Aging")}):null,d.jsx(xa,{uiState:t.arAgingUIState,report:t,downloadParams:m,analytics:T,onReloadReport:C,onBackClick:u,onSearchTextChange:l,onSortOrderChange:h,onEntityNameClick:p,updateDownloadStateHandler:f,onSelectedDateChanged:S,onNodeCollapseToggled:E,isAiCfoAccessEnabled:n,onAskAiCfoClick:o})]})},Na=(e,a)=>({key:a,title:e.accountName,amount:e.balance?.available,logoUri:e.logo?.toString(),source:e});function Ya(e,a){const t=Vn(a.firstMonthOfFY);return{onItemClick:(n,o)=>{const r=o.accountName===""?o.accountDescription:o.accountName,s=Pe(a.tenantEmailDomain,o.accountId,o.accountType,r,"quarter",t,!1),i=w(a.location.state?.pathnameStackToGoBack,a.location.pathname);a.navigate(s,{state:{pathnameStackToGoBack:i,referrer:a.referrerType}})},onSetAccountsStatementDate:(n,o)=>{e(Nn(n,o))},onPromoCardBtnClick:n=>{if(a.isZeniAccountsAdmin){let o=`../../checking/${n}`;n?T.trackZeniAccountsCashBalancePromoClicked("Move Money"):(T.trackZeniAccountsCashBalancePromoClicked("Sign Up for Free"),o="../../checking/promo");const r=w(a.location.state?.pathnameStackToGoBack,a.location.pathname);a.navigate(o,{state:{pathnameStackToGoBack:r}})}else T.trackZeniAccountsCashBalancePromoClicked("Learn More"),window.open("https://www.zeni.ai/product/business-checking-accounts","_blank")}}}const ds=ee(function(e){const a=Un(e).accountsInOrder.map((n,o)=>Na(n,o)),t=Gn(e);return{sectionTitle:q.getLocalizedStrings().balanceCard.cashBalanceSectionTitle,transactionArray:a,zeniAccountsPromoCardReport:t,fetchState:e.cashBalanceState.fetchState,analytics:T}},Ya)(Pa),us=ee(function(e){const a=Yn(e).accountsInOrder.map((o,r)=>Na(o,r)),t=M.getSignedInUser(),n=Xe(t);return{sectionTitle:q.getLocalizedStrings().balanceCard.cardBalanceSectionTitle,transactionArray:a,isZeniUser:n,fetchState:e.cardBalanceState.fetchState,analytics:T}},Ya)(Pa);function ms(){const e=W(),a=H(),{tenantEmailDomain:t}=K(),n=_e(),o=_(s=>U(s).company?.companyInfo.firstMonthOfFY??1),r=yt(n?.loggedInUserRoleMap);return _(s=>s.cashBalanceState.fetchState)==="Error"?d.jsx(je,{}):d.jsx(ds,{tenantEmailDomain:t,location:a,referrerType:"Cash Balance",navigate:e,isZeniAccountsAdmin:r,firstMonthOfFY:o})}function ps(){const e=W(),a=H(),{tenantEmailDomain:t}=K(),n=_e(),o=yt(n?.loggedInUserRoleMap),r=_(s=>U(s).company?.companyInfo.firstMonthOfFY??1);return _(s=>s.cardBalanceState.fetchState)==="Error"?d.jsx(je,{}):d.jsx(us,{tenantEmailDomain:t,location:a,referrerType:"Card Balance",navigate:e,isZeniAccountsAdmin:o,firstMonthOfFY:r})}const hs=xt.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as v}from"./liveblocks-
|
|
1
|
+
import{j as v}from"./liveblocks-BxpjjfmG.js";import{a as u}from"./sentry-B06otMHd.js";import{u as y,j as b,n as w,g as A,N as L}from"./core-BjRnoVdN.js";import{LV as N,eW as _,g0 as U,LW as k,o8 as R,LX as z}from"./zeni-epic-state-BkEKIYbX.js";import{u as j,z as f,L as T,t as I,a as O,b as $}from"./index-DG5dsziC.js";import"./mui-CdxnWIp4.js";import{t as P}from"./getLocaleForTenant-B67NSzYh.js";import"./recharts-CFinCL-a.js";import"./analytics-CMhYvjgp.js";import"./plaid-DtXw88Ai.js";import"./dnd-DD1NomKe.js";import"./stripe-DMRn4zHo.js";import"./lottie-iCzPfqr5.js";import"./lexical-CkYiXWk9.js";import"./pdf-C9PyNDT1.js";import"./utils-CaYSR2MR.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new t.Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="3e9f9769-a710-4463-9ea6-0abb43265ebd",t._sentryDebugIdIdentifier="sentry-dbid-3e9f9769-a710-4463-9ea6-0abb43265ebd")}catch{}})();const Q=w(function(t){return{fetchState:t.tenantState.fetchState,activeTenantFetchState:t.tenantState.activeTenantFetchState.fetchState,currentTenant:_(t),tenantsInOrder:z(t).tenantsInOrder}})(function({fetchState:t,activeTenantFetchState:s,currentTenant:o,tenantsInOrder:h}){const r=A(),p=new URLSearchParams(r.search);if(o==null||t!=="Completed"&&s!=="Completed")return null;{let m="";const n=h.map(l=>l.tenantEmailDomain),i=r.state?.origin,a=r.state?.queryParams;let c=`../${o.tenantEmailDomain}`,d=null,e=!1,g=null,S=null;const C=E(r.pathname);if(C!=null)c=`../${o.tenantEmailDomain}/${C}`,m="comingFromV2UrlPath",C==="ai-cfo/explore"&&(d=p.get("question")?.replace(/^["']|["']$/g,"")??null,e=p.get("should_submit")==="true");else if(i!=null)if(n.reduce((l,F)=>l||i.split("/").find(D=>D===F)!=null,!1))c=i,i.includes("ai-cfo")&&a!=null&&(g=a.aiCfoRef??null,S=a.aiCfoEmailRefId??null);else{const l=E(i);l!=null?(c=`../${o.tenantEmailDomain}/${l}`,m="comingFromV2UrlPath",l==="ai-cfo/explore"&&a!=null&&(a.aiCfoQuestion!=null&&(d=a.aiCfoQuestion),a.aiCfoShouldSubmit==="true"&&(e=!0))):console.warn("Don't have access to previous path tenant!")}const x=$(c,p);return v.jsx(L,{to:x,replace:!0,state:{...r.state,origin:"",message:m,aiCfoInitialQuestion:d,aiCfoShouldSubmit:e,aiCfoRef:g,aiCfoEmailRefId:S}})}});function oe(){const t=y(),{setLoading:s,clearAllLoading:o}=j(),h=u.useRef(!1),r=u.useRef(!1),p=u.useRef(null),m=b(e=>N(e)),n=b(e=>e.tenantState.fetchState),i=b(e=>e.tenantState.error),a=b(e=>e.tenantState.activeTenantFetchState.fetchState),c=b(e=>_(e)),d=f.getSignedInUser();return u.useLayoutEffect(()=>{const e=f.getActiveTenantForUser()?.tenantId??null;p.current!==e&&(p.current=e,h.current=!1,r.current=!1,s(T.TENANT_FETCHING)),!h.current||a!=="Completed"&&a!=="Error"||(h.current=!1),!r.current||n!=="Completed"&&n!=="Error"||(r.current=!1)},[a,n]),u.useEffect(()=>{const e=f.getActiveTenantForUser()?.tenantId;h.current===!1&&d!=null&&e!=null&&I.shouldFetchActiveTenant(e)&&(h.current=!0,I.markActiveTenantFetchStarted(e),n==="Completed"||a!=="Not-Started"&&a!=="Error"||(s(T.TENANT_FETCHING),t(U(d.userId,e))))},[n,a,d,t]),u.useEffect(()=>{const e=f.getSignedInUser(),g=f.getActiveTenantForUser()?.tenantId,S=g==null||a==="Completed"||a==="Error";r.current===!1&&e!=null&&S&&I.shouldFetchAllTenants()&&(r.current=!0,I.markAllTenantsFetchStarted(),(n==="Not-Started"||n==="Error"&&!k(i))&&t(R(e.userId)))},[n,a,i,d,t]),u.useEffect(()=>{f.isSignedIn()&&n==="Completed"&&m.tenantsCoreDetailsInOrder.length>0&&(f.saveSignedInUserTenants(m.tenantsCoreDetailsInOrder),o())},[m.tenantsCoreDetailsInOrder,n]),u.useEffect(()=>{!f.isSignedIn()||n!=="Completed"&&a!=="Completed"||c==null||(O.updateAppLocaleID(P(c)),o())},[n,a,c]),v.jsx(Q,{})}const V=["dashboard/cash-balance","dashboard/card-balance","dashboard/operating-expenses","dashboard/revenue","dashboard/burn-rate","dashboard/cash-position","dashboard/top-expenses","dashboard/cash-in-cash-out","dashboard","reports","forecast","uncategorized-expense","uncategorized-income","missing-receipts","bills","cards/activate","cards","reimbursements","wise","checking","aicfo"],q={"dashboard/cash-balance":"dashboard/cash_balance","dashboard/card-balance":"dashboard/card_balance","dashboard/operating-expenses":"dashboard/operating_expenses","dashboard/revenue":"dashboard/revenue","dashboard/burn-rate":"dashboard/net_burn_or_income","dashboard/cash-position":"dashboard/cash_position","dashboard/top-expenses":"dashboard/top_expenses","dashboard/cash-in-cash-out":"dashboard/cash_in_cash_out",dashboard:"dashboard",reports:"reports",forecast:"forecast","uncategorized-expense":"transactions/uncategorized-expense","uncategorized-income":"transactions/uncategorized-income","missing-receipts":"transactions/missing-receipts",bills:"bills",reimbursements:"reimbursements","cards/activate":"cards/activate",cards:"cards",wise:"bills/wise/callback/link-account",checking:"checking",aicfo:"ai-cfo/explore"};function E(t){for(const s of V)if(t.toLocaleLowerCase().includes(s))return q[s]}export{oe as default};
|
package/dist/assets/{DomesticWireDetailScreen-ClrZi_aH.js → DomesticWireDetailScreen-BrMTJ0LT.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as l}from"./liveblocks-
|
|
1
|
+
import{j as l}from"./liveblocks-BxpjjfmG.js";import{h as w,g as C,j as h,n as A,i as B}from"./core-BjRnoVdN.js";import{Q0 as k,Q7 as _,gg as W,gf as K,ge as M,jt as q,Na as J,rs as L,eW as V,Py as D,jr as T,Q1 as S,Qa as j,jp as F,jM as G}from"./zeni-epic-state-BkEKIYbX.js";import{bz as X,K as N,C as R,z as U,y as z,r as b,G as v,B as O,bA as Y,o as Q,bB as ee,s as te}from"./index-DG5dsziC.js";import{n as Z}from"./mui-CdxnWIp4.js";import"./sentry-B06otMHd.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]="19418176-7490-45da-8d19-c13acee8d7c1",e._sentryDebugIdIdentifier="sentry-dbid-19418176-7490-45da-8d19-c13acee8d7c1")}catch{}})();const ne=A(null,function(e,t){return{onSaveVendor:n=>{e(q(t.vendorId!==void 0?t.vendorId:void 0,t.billId,void 0,t.isExpressPayPage)),e(J("common")),n!=null&&e(L(n))},onGetOtp:n=>{e(M(n,"BillPayVendor"))},onResendOtp:n=>{e(K(n,"BillPayVendor"))},onVerifyOtp:(n,a)=>{e(W(n,a,"BillPayVendor"))},onVerifyOtpSuccess:(n,a,o)=>{e(_(n,a,o))}}})(X);function H({vendorId:e,billId:t,isExpressPayPage:n}){const a=w(),o=C(),s=h(c=>k(c,e));return l.jsx(ne,{location:o,navigate:a,vendorId:e,billId:t,vendorViewDetails:s,isExpressPayPage:n??!1})}const ae=Z.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100vh;
|
|
4
4
|
width: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as d}from"./liveblocks-
|
|
1
|
+
import{j as d}from"./liveblocks-BxpjjfmG.js";import{K as b,F as l,y as f}from"./index-DG5dsziC.js";import{D as c}from"./mui-CdxnWIp4.js";import"./sentry-B06otMHd.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="89fbbb96-b48a-4b8e-a23e-0117ebf93880",e._sentryDebugIdIdentifier="sentry-dbid-89fbbb96-b48a-4b8e-a23e-0117ebf93880")}catch{}})();const p={drawerLeftMargin:new l(0,0,240)};function h(e){const{isOpen:r,drawerLeftMargin:o,children:t,onClose:a}=e,n=b(),s=o?.valuePx(n)??p.drawerLeftMargin.valuePx(n),i=f();return d.jsx(c,{anchor:"right",open:r,PaperProps:{style:{width:`calc(100% - ${s})`}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.8,cursor:"pointer"}}},onClose:a,children:t})}export{h as D};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-
|
|
1
|
+
import{j as s}from"./liveblocks-BxpjjfmG.js";import{a as d}from"./sentry-B06otMHd.js";import{h as A,u as B,g as G,i as q,j as c,N as O,n as F,o as M,p as W}from"./core-BjRnoVdN.js";import{Oi as _,eW as K,NG as R,lw as Y,Kb as k,On as $,N9 as z,kw as L,Kc as S,NL as V,NM as X,Nb as H,Na as J}from"./zeni-epic-state-BkEKIYbX.js";import{aX as Q,d as U,r as Z,s as tt}from"./index-DG5dsziC.js";import"./mui-CdxnWIp4.js";import{d as b}from"./decodeURIComponentSafe-8RHUrhvv.js";import{w as et}from"./withTransactionSidePanel-tBE2uHP9.js";import{f as at,c as nt}from"./routePaths-C7myDwxn.js";import"./recharts-CFinCL-a.js";import"./analytics-CMhYvjgp.js";import"./plaid-DtXw88Ai.js";import"./dnd-DD1NomKe.js";import"./stripe-DMRn4zHo.js";import"./lottie-iCzPfqr5.js";import"./lexical-CkYiXWk9.js";import"./pdf-C9PyNDT1.js";import"./utils-CaYSR2MR.js";import"./useAskAiCfoHostNavButtonProps-CFgUcHmD.js";import"./TransactionDetailScreen-CHtoQtM9.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new a.Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="6baddcce-0752-4336-ba33-2cddec73ff42",a._sentryDebugIdIdentifier="sentry-dbid-6baddcce-0752-4336-ba33-2cddec73ff42")}catch{}})();const it=F(function(a,t){const e=t.entity,i=$(a,t.entity,"EntityDetail");return{selectedEntity:e,autoCompleteData:{autoCompleteText:e.name,entityAutoCompleteView:z(a,"common")},trendWithTransactionsReport:i,analytics:U,isAccountingClassesEnabled:L(a)}},function(a,t){return{onTransactionItemClick:e=>{if(t.openTransactionPanel)return void t.openTransactionPanel(e.id,e.type);const i=`${nt(e,t.tenantEmailDomain)}`,l=tt(t.location.state?.pathnameStackToGoBack,t.location.pathname);t.navigate(i,{state:{pathnameStackToGoBack:l}})},autoCompleteActions:{onAutoCompleteInputChange:e=>{e.trim().length>=2?a(H({searchString:e,searchOrigin:"common"})):e.trim().length===0&&a(J("common"))},onAutoCompleteEntity:e=>{const i=at(e,t.tenantEmailDomain);a(V()),a(X()),t.resetTrendIsFetchedStates(),t.navigate(i,{replace:!0,state:{pathnameStackToGoBack:t.location.state?.pathnameStackToGoBack}})},onCancelAutoComplete:()=>{const e=Z(t.location.state?.pathnameStackToGoBack),i=e.poppedPathname??I();t.navigate(i,{state:{pathnameStackToGoBack:e.newStack}})}},onTrendSelectedPeriodChange:e=>{if(t.closeSidePanel?.(),e==null)t.defaultTransactionTimePeriod!=null&&a(S(t.entity,"EntityDetail",{timeframe:"quarter",timePeriod:t.defaultTransactionTimePeriod}));else{const i=e.currentTimePeriod==null?e.addTimePeriod:{startDate:e.addTimePeriod.startDate,endDate:e.currentTimePeriod.endDate};a(k(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:e.addTimePeriod})),a(S(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:i}))}}}})(Q),ot=et(function({entityType:a,...t}){const e=A(),i=B(),l=G(),[m,T]=d.useState(!1),[h,D]=d.useState(!1),{tenantEmailDomain:C,entityIdEncoded:w,entityNameEncoded:x}=q(),r=b(w??""),p=b(x??""),f=rt(r,p),N=[r,p].filter(n=>n!=null),o={name:p,id:r,type:a,zeniId:r,qboId:r},g=c(n=>_(n.customerIncomeState,n.vendorExpenseState,n.trendState,o,"quarter")),j=c(n=>K(n).company?.companyInfo.firstMonthOfFY??1),u=c(n=>R(n.trendWithTransactionsState,o,"EntityDetail"));d.useEffect(()=>{m===!1&&f===!0&&(T(!0),i(Y(o)))},[m,f,o]);const E=c(n=>n.trendState.fetchState),P=u?.selectedPeriod?.timePeriod??g,v=function(n,y){return n!=null&&y!=null?{startDate:n.startDate,endDate:y?.endDate}:y}(u?.selectedPeriod?.timePeriod,g);return d.useEffect(()=>{m===!0&&h===!1&&E==="Completed"&&(D(!0),P!=null&&i(k(o,"EntityDetail",{timeframe:u?.selectedPeriod?.timeframe??"quarter",timePeriod:P})))},[m,h,E]),f?s.jsx(it,{firstMonthOfFY:j,tenantEmailDomain:C,location:l,navigate:e,entity:o,defaultTransactionTimePeriod:v,resetTrendIsFetchedStates:()=>{T(!1),D(!1)},...t}):s.jsx(O,{to:I(N.length)})}),rt=(a,t)=>t!=null&&t.length>0&&a!=null&&a.length>0,I=(a=2)=>{let t="../";for(let e=0;e<a;e++)t=`${t}../`;return t};function wt({entityType:a}){return s.jsx(M,{children:s.jsx(W,{path:"/:entityIdEncoded/:entityNameEncoded/*",element:s.jsx(ot,{entityType:a})})})}export{wt as EntityDetailRoutes,wt as default};
|
package/dist/assets/{ExpenseAutomationRoutes-B2Rl_5li.js → ExpenseAutomationRoutes-Bg1lugdX.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as h}from"./liveblocks-
|
|
1
|
+
import{j as h}from"./liveblocks-BxpjjfmG.js";import oa from"./NotFoundScreen-6c0jfbLt.js";import{a as o,b as Nt}from"./sentry-B06otMHd.js";import{n as Ue,S as sa}from"./mui-CdxnWIp4.js";import{u as pe,h as Yt,g as Ke,j as x,n as ca,i as xt,o as ia,p as Ge}from"./core-BjRnoVdN.js";import{eW as Re,S_ as la,oi as Ee,fX as ra,s3 as da,oA as Kt,oV as Zt,S$ as Xt,p3 as ua,T0 as Ht,ot as ma,rB as pa,fI as Ie,T1 as De,ua as Qt,Ew as Wt,T2 as en,T3 as ha,r9 as Ze,Oj as Pt,Ol as ga,kz as Ca,Om as Sa,kG as fa,c_ as Ia,vq as Xe,oG as tn,p8 as Fe,oy as de,T4 as Ea,Nb as Rt,Na as we,T5 as Dt,kX as ka,T6 as Ta,T7 as ya,T8 as ba,T9 as va,oN as Aa,pb as xe,Ta as wa,Tb as xa,Tc as Pa,pi as Ra,kK as Da,kB as Fa,Td as Ua,kJ as Ft,Ot as Ba,Te as Oa,Tf as Va,r5 as _a,qJ as za,p9 as me,qI as Je,Tg as Ma,Th as ja,Ti as La,me as $a,bo as qa,m9 as Ut,lX as Ga,Tj as Ja,fy as Bt,gw as Na,m6 as Ya,xj as Ka,Tk as Za,pJ as Xa,pE as Ha,pI as Qa,pt as Wa,Tl as eo,fL as nn,oY as to,oJ as no,fY as Ot,pd as ao,Tm as oo,Tn as so,pa as an,To as co,Tp as io,Tq as lo,Tr as ro,Ts as Vt,rh as uo,qA as mo,N9 as po,Tt as ho,Tu as go,kI as Co,Tv as So,Jc as fo,kH as Io,kw as Eo,fK as ko,q6 as on,qs as To,p7 as _t,pc as yo,bE as bo,m3 as vo,m0 as Ao,Tw as wo,ps as zt,qo as Mt,qm as xo,Tx as Po,qb as Ro,pT as Do,qp as Fo,Ty as Uo,Tz as Bo,pX as Oo,TA as Vo,pO as _o,pW as zo,pU as Mo,qv as jo}from"./zeni-epic-state-BkEKIYbX.js";import{C as sn,G as W,d as q,s as ae,Z as cn,a0 as ln,cZ as Lo,z as Be,c_ as $o,au as Pe,c$ as qo,aZ as jt,B as rn,d0 as Go,ar as Ne,a as Jo,a9 as No,d1 as Yo,a4 as Ko,d2 as Zo,X as Xo,d3 as Ho,d4 as Qo,w as Wo,k as es,aS as ts,d5 as ns,d6 as as,be as os,F as ss,aV as cs}from"./index-DG5dsziC.js";import{u as dn}from"./useAskAiCfoHostNavButtonProps-CFgUcHmD.js";import{f as Lt,a as is,b as ls,g as rs,C as ds}from"./TransactionDetailScreen-CHtoQtM9.js";import{w as us}from"./withTransactionSidePanel-tBE2uHP9.js";import{h as ms,v as ps}from"./routePaths-C7myDwxn.js";import{g as Ye}from"./accountMappingHelper-Cb6Phjli.js";import{D as hs}from"./DrawerScreen-DbaoUmyp.js";import"./recharts-CFinCL-a.js";import"./analytics-CMhYvjgp.js";import"./plaid-DtXw88Ai.js";import"./dnd-DD1NomKe.js";import"./stripe-DMRn4zHo.js";import"./lottie-iCzPfqr5.js";import"./lexical-CkYiXWk9.js";import"./pdf-C9PyNDT1.js";import"./utils-CaYSR2MR.js";import"./decodeURIComponentSafe-8RHUrhvv.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new t.Error().stack;l&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[l]="a51cc784-7284-40f3-a622-01fc8c65e64e",t._sentryDebugIdIdentifier="sentry-dbid-a51cc784-7284-40f3-a622-01fc8c65e64e")}catch{}})();const gs=()=>{const t=pe(),l=Yt(),B=Ke(),f=x(d=>Re(d)),{useFeatureGate:b}=sn(),{isFeatureEnabled:S}=b(W.isRealtimeInsightsFeatureEnabled),{isFeatureEnabled:r}=b(W.aiAuditScorePercentage),I=x(d=>d.expenseAutomationViewState.selectedPeriodByTenantId),s=x(d=>la(d,f.tenantId)),{isAiCfoAccessEnabled:p,onAskAiCfoClick:u}=dn({mobileExploreReferrer:"Month-End Close Overview"}),k=o.useCallback((d,G,ee=!1)=>{t(Ee({tenantId:G,period:{month:d.month,year:d.year},refreshViewInBackground:ee}))},[]),v=o.useCallback(d=>{const G=B.state?.referrer;s.monthEndCloseChecks?.auditSummary!=null&&q.trackMonthCloseAuditPage(d.month,d.year,s.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",s.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,G??null),t(ra(f.tenantId,d))},[f.tenantId,s.monthEndCloseChecks?.auditSummary,s.monthEndCloseChecks?.reportEmailSentDate]),g=I[f.tenantId],m=o.useCallback(()=>{const d=B.state?.referrer;s.monthEndCloseChecks?.auditSummary!=null&&q.trackMonthCloseAuditPage(g.month,g.year,s.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",s.monthEndCloseChecks.auditSummary.auditScorePercentage,!0,d??null),k(g,f.tenantId,!0)},[k,g,f.tenantId,s.monthEndCloseChecks?.auditSummary,s.monthEndCloseChecks?.reportEmailSentDate]),P=ae(B.state?.pathnameStackToGoBack,B.pathname),E=o.useCallback(()=>{if(s.monthEndCloseChecks!=null&&g!=null){const d=s.monthEndCloseChecks.monthEndCloseCheckList.find(G=>G.progress<100);if(d!=null)return void l(`./${d.id}/${g.month}-${g.year}`,{state:{pathnameStackToGoBack:P,message:"comingFromOverview"}});l(`./month_end_insights/${g.month}-${g.year}`,{state:{pathnameStackToGoBack:P,message:"comingFromOverview"}})}},[s.monthEndCloseChecks,g]),{areTenantIdsInSync:T}=cn();return ln({isDataReady:s.fetchState==="Completed"}),o.useEffect(()=>{g!=null&&s.fetchState!=="In-Progress"&&s.fetchState!=="Completed"&&T&&k(g,f.tenantId)},[k,g,s.fetchState,f.tenantId,T]),o.useEffect(()=>{g!=null&&s.monthClosePerformanceTrendFetchStatus.fetchState!=="In-Progress"&&s.monthClosePerformanceTrendFetchStatus.fetchState!=="Completed"&&T&&t(da(g))},[g,s.monthClosePerformanceTrendFetchStatus.fetchState,T]),o.useEffect(()=>{const d=setInterval(()=>{s.fetchState!=="In-Progress"&&s.fetchState==="Completed"&&m()},3e5);return()=>clearInterval(d)},[s.fetchState]),o.useEffect(()=>{if(s.fetchState==="Completed"&&s.monthEndCloseChecks?.auditSummary!=null){const d=B.state?.referrer;q.trackMonthCloseAuditPage(s.selectedPeriod.month,s.selectedPeriod.year,s.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",s.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,d??null)}},[s.fetchState,s.selectedPeriod,s.monthEndCloseChecks?.auditSummary,s.monthEndCloseChecks?.reportEmailSentDate]),h.jsx(Cs,{children:h.jsx(Lo,{monthEndCloseChecksView:s,isRealtimeInsightsFeatureEnabled:S,onMonthEndCheckClick:d=>{l(`./${d}/${g.month}-${g.year}`,{state:{pathnameStackToGoBack:P,message:"comingFromOverview",referrer:"Expense Automation - Overview"}})},onPeriodChange:v,handleReviewButtonClick:E,onBackClick:()=>{l("../../dashboard")},onReload:m,isAiCfoAccessEnabled:p,onAskAiCfoClick:u,aiAuditScorePercentageEnabled:r})})},Cs=Ue.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100vh;
|
|
4
4
|
width: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-
|
|
1
|
+
import{j as s}from"./liveblocks-BxpjjfmG.js";import{a as r}from"./sentry-B06otMHd.js";import{a5 as l,a6 as p,a7 as m,r as c}from"./index-DG5dsziC.js";import"./mui-CdxnWIp4.js";import f from"./NotFoundScreen-6c0jfbLt.js";import{h as u,g as b}from"./core-BjRnoVdN.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="5a21547d-8d37-447e-91de-3190153d226c",e._sentryDebugIdIdentifier="sentry-dbid-5a21547d-8d37-447e-91de-3190153d226c")}catch{}})();const _=()=>{const e=u(),a=b(),t=r.useCallback(()=>{window.open("https://www.zeni.ai/demo/request","_blank")},[]),d=r.useCallback(()=>{(()=>{const n=c(a.state?.pathnameStackToGoBack),i=n.poppedPathname??k();e(i,{state:{pathnameStackToGoBack:n.newStack}})})()},[]),o=l(a.pathname);return o!=null?s.jsx(p,{menuItem:m(o),onDemoClick:t,onGoBack:d}):s.jsx(f,{})},k=(e=2)=>{let a="../";for(let t=0;t<e;t++)a=`${a}../`;return a};export{_ as F};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r}from"./sentry-
|
|
1
|
+
import{a as r}from"./sentry-B06otMHd.js";import{u as f,h as l,g as m}from"./core-BjRnoVdN.js";import{hs as p,Mh as g,Mi as b}from"./zeni-epic-state-BkEKIYbX.js";import{u as _,L as h,z as y}from"./index-DG5dsziC.js";import"./liveblocks-BxpjjfmG.js";import"./recharts-CFinCL-a.js";import"./mui-CdxnWIp4.js";import"./analytics-CMhYvjgp.js";import"./plaid-DtXw88Ai.js";import"./dnd-DD1NomKe.js";import"./stripe-DMRn4zHo.js";import"./lottie-iCzPfqr5.js";import"./lexical-CkYiXWk9.js";import"./pdf-C9PyNDT1.js";import"./utils-CaYSR2MR.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]="723db24f-bab0-4eaf-a2c1-69fc41d32033",e._sentryDebugIdIdentifier="sentry-dbid-723db24f-bab0-4eaf-a2c1-69fc41d32033")}catch{}})();function R(){const e=f(),n=l(),i=m(),{setLoading:o,clearAllLoading:u}=_(),s=r.useRef(!1);return r.useLayoutEffect(()=>{o(h.CONNECTION_AUTH)},[o]),r.useEffect(()=>{if(s.current)return;s.current=!0;const a=new URLSearchParams(i.search).get("code"),c=sessionStorage.getItem("hubspot_oauth_pending");if(sessionStorage.removeItem("hubspot_oauth_pending"),a!=null&&c!=null){const t=JSON.parse(c);e(p(t.tenant_id,t.connection_id,g("revenue"),b("hubspot"),{authorization_code:a,client_id:t.client_id,client_secret:t.client_secret,redirect_uri:t.redirect_uri}))}u();const d=y.getActiveTenantForUser();n(d?.tenantEmailDomain!=null?`/${d.tenantEmailDomain}/settings/integrations`:"/",{replace:!0})},[]),null}export{R as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t}from"./liveblocks-
|
|
1
|
+
import{j as t}from"./liveblocks-BxpjjfmG.js";import{i as S,n as f,h as C,g as y,u as ee,t as te,j as E,N as ae,o as ne,p}from"./core-BjRnoVdN.js";import{Ma as k,Mb as v,Mc as M,Be as B,B0 as T,Md as D,Me as oe,Mf as ie,B4 as se,fz as $,Bb as le,B8 as re}from"./zeni-epic-state-BkEKIYbX.js";import{K as x,o as r,p as de,d as j,m as G,q as ce,r as me,v as pe,s as K,C as ue,G as he,$ as fe,w as xe,y as ge,x as we,B as be,D as Se,H as ye,S as ke,E as ve,F as je,I as $e}from"./index-DG5dsziC.js";import{n as m}from"./mui-CdxnWIp4.js";import g from"./NotFoundScreen-6c0jfbLt.js";import{a as I}from"./sentry-B06otMHd.js";import"./recharts-CFinCL-a.js";import"./analytics-CMhYvjgp.js";import"./plaid-DtXw88Ai.js";import"./dnd-DD1NomKe.js";import"./stripe-DMRn4zHo.js";import"./lottie-iCzPfqr5.js";import"./lexical-CkYiXWk9.js";import"./pdf-C9PyNDT1.js";import"./utils-CaYSR2MR.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="57acfc9f-06f0-4080-8e2f-4605147a3f5d",e._sentryDebugIdIdentifier="sentry-dbid-57acfc9f-06f0-4080-8e2f-4605147a3f5d")}catch{}})();const Ie=m.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
width: 100%;
|
|
@@ -7,7 +7,7 @@ import{j as t}from"./liveblocks-Jco3UIMO.js";import{i as S,n as x,h as C,g as y,
|
|
|
7
7
|
align-items: center;
|
|
8
8
|
background-color: ${e=>e.theme.colors.grey4};
|
|
9
9
|
box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
10
|
-
`,Ce=
|
|
10
|
+
`,Ce=f(function(e){const a=k(e),n=v(e),{companyName:o}=a;return{companyName:o,isDisabled:a.fetchState!=="Completed"?"disabled":void 0,magicLinkBankAccountDetails:n,magicLinkViewState:a}},function(e,a){const{vendorId:n,billId:o}=a;return{onFetchBankName:i=>{e(T(i))},onSaveHandler:i=>{j.trackBillPayMagicLinkSubmitBankAccountDetails(o),e(B(i,"standard",n,o))},onACHDetailsUpdated:i=>{const{bankAccountSection:l}=i;e(M({data:l}))}}})(de);function F(){const e=x(),{vendorId:a,billId:n}=S();return a==null||n==null?t.jsx(g,{}):t.jsx(t.Fragment,{children:t.jsx(Ie,{windowSize:e,children:t.jsx(Ce,{vendorId:a,billId:n})})})}const Be=m.div`
|
|
11
11
|
display: flex;
|
|
12
12
|
height: 100vh;
|
|
13
13
|
width: 100%;
|
|
@@ -16,7 +16,7 @@ import{j as t}from"./liveblocks-Jco3UIMO.js";import{i as S,n as x,h as C,g as y,
|
|
|
16
16
|
align-items: center;
|
|
17
17
|
background-color: ${e=>e.theme.colors.grey4};
|
|
18
18
|
box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
19
|
-
`,De=
|
|
19
|
+
`,De=f(function(e,a){const{isSubPage:n}=a;return{addressToEdit:D(e),googleAPIKey:G.googleMapsAPIKey,isSubPage:n}},function(e,a){const{navigate:n,location:o}=a,i=()=>{const l=me(o.state?.pathnameStackToGoBack),s=l.poppedPathname??Pe();n(s,{state:{pathnameStackToGoBack:l.newStack}})};return{onSubmitHandler:l=>{const s=ze(l);e(oe({addressToCreate:s})),i()},onCancel:()=>{i()}}})(ce);function Ae({isSubPage:e}){const a=C(),n=y(),o=x();return t.jsx(t.Fragment,{children:t.jsx(Be,{windowSize:o,children:t.jsx(De,{location:n,navigate:a,isSubPage:e===!0,googleAPIKey:G.googleMapsAPIKey})})})}const Pe=(e=2)=>{let a="../";for(let n=0;n<e;n++)a=`${a}../`;return a},ze=e=>({street:[e.street.addressString,e.suite,e.secondaryInfo],city:e.city,state:e.state,country:e.country.selectedOption??"",countryCode:e.countryCode,postalCode:e.postalCode,latitude:e.street.addressValue?.locationLat,longitude:e.street.addressValue?.locationLng}),Le=m.div`
|
|
20
20
|
display: flex;
|
|
21
21
|
height: 100%;
|
|
22
22
|
width: 100%;
|
|
@@ -25,7 +25,7 @@ import{j as t}from"./liveblocks-Jco3UIMO.js";import{i as S,n as x,h as C,g as y,
|
|
|
25
25
|
align-items: center;
|
|
26
26
|
background-color: ${e=>e.theme.colors.grey4};
|
|
27
27
|
box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
28
|
-
`,Ne=
|
|
28
|
+
`,Ne=f(function(e){const a=k(e),n=v(e),o=D(e),{companyName:i}=a;return{companyName:i,isDisabled:a.fetchState!=="Completed"?"disabled":void 0,magicLinkBankAccountDetails:n,mailingAddressDetails:o,magicLinkViewState:a}},function(e,a){const{navigate:n,location:o,vendorId:i,billId:l}=a;return{onFetchBankName:s=>{e(T(s))},onSaveHandler:s=>{j.trackBillPayMagicLinkSubmitBankAccountDetails(l),e(B(s,"us-domestic",i,l))},onWireDetailsUpdated:s=>{const{bankAccountSection:d}=s;e(M({data:d}))},onAddressClick:()=>{const s=o.pathname.replace("us-domestic","address"),d=K(o.state?.pathnameStackToGoBack,o.pathname);n(s,{state:{pathnameStackToGoBack:d}})}}})(pe);function Ee(){const e=C(),a=y(),n=x(),{vendorId:o,billId:i}=S();return o==null||i==null?t.jsx(g,{}):t.jsx(t.Fragment,{children:t.jsx(Le,{windowSize:n,children:t.jsx(Ne,{location:a,navigate:e,vendorId:o,billId:i})})})}const Fe=m.div`
|
|
29
29
|
display: flex;
|
|
30
30
|
height: 100%;
|
|
31
31
|
width: 100%;
|
|
@@ -34,7 +34,7 @@ import{j as t}from"./liveblocks-Jco3UIMO.js";import{i as S,n as x,h as C,g as y,
|
|
|
34
34
|
align-items: center;
|
|
35
35
|
background-color: ${e=>e.theme.colors.grey4};
|
|
36
36
|
box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
37
|
-
`,Me=
|
|
37
|
+
`,Me=f(function(e){const a=k(e),n=v(e),o=D(e),{companyName:i}=a;return{companyName:i,isDisabled:a.fetchState!=="Completed"?"disabled":void 0,magicLinkBankAccountDetails:n,mailingAddressDetails:o,magicLinkViewState:a}},function(e,a){const{navigate:n,location:o,vendorId:i,billId:l}=a;return{onFetchBankNameBySwift:s=>{e(se(s))},onSaveHandler:s=>{j.trackBillPayMagicLinkSubmitBankAccountDetails(l),e(B(s,"international",i,l,a.isLocalCurrencyEnabled))},onBankDetailsUpdated:s=>{const{internationalWireSwiftAccountSection:d}=s;e(ie({data:d}))},onAddressClick:()=>{const s=o.pathname.replace("international","address"),d=K(o.state?.pathnameStackToGoBack,o.pathname);n(s,{state:{pathnameStackToGoBack:d}})}}})(fe);function Te(){const e=C(),a=y(),n=x(),{vendorId:o,billId:i}=S(),{useFeatureGate:l}=ue(),{isFeatureEnabled:s}=l(he.isBillPayLocalCurrencyFeatureEnabled);return o==null||i==null?t.jsx(g,{}):t.jsx(Fe,{windowSize:n,children:t.jsx(Me,{location:a,navigate:e,vendorId:o,billId:i,isLocalCurrencyEnabled:s})})}const Ge={containerWidth:new je(100,58)},Ke=m(ke)`
|
|
38
38
|
width: ${r.sp4};
|
|
39
39
|
height: ${r.sp4};
|
|
40
40
|
margin-bottom: ${r.sp3};
|
|
@@ -43,14 +43,14 @@ import{j as t}from"./liveblocks-Jco3UIMO.js";import{i as S,n as x,h as C,g as y,
|
|
|
43
43
|
cursor: pointer;
|
|
44
44
|
position: absolute;
|
|
45
45
|
color: ${e=>e.theme.colors.brandColorJade};
|
|
46
|
-
`,
|
|
46
|
+
`,Ve=m.div`
|
|
47
47
|
display: flex;
|
|
48
48
|
height: 100vh;
|
|
49
49
|
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
50
50
|
width: 100vw;
|
|
51
51
|
overflow-y: scroll;
|
|
52
52
|
background-color: ${e=>e.theme.colors.grey4};
|
|
53
|
-
`,
|
|
53
|
+
`,_e=m.div`
|
|
54
54
|
display: flex;
|
|
55
55
|
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
56
56
|
flex-direction: column;
|
|
@@ -58,7 +58,7 @@ import{j as t}from"./liveblocks-Jco3UIMO.js";import{i as S,n as x,h as C,g as y,
|
|
|
58
58
|
${e=>e.windowSize!=="small"?"overflow: auto;":""}
|
|
59
59
|
box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
60
60
|
padding-top: ${e=>e.windowSize!=="small"?r.sp2:"0px"};
|
|
61
|
-
`,
|
|
61
|
+
`,He=m.div`
|
|
62
62
|
display: flex;
|
|
63
63
|
flex-direction: column;
|
|
64
64
|
align-items: center;
|
|
@@ -69,4 +69,4 @@ import{j as t}from"./liveblocks-Jco3UIMO.js";import{i as S,n as x,h as C,g as y,
|
|
|
69
69
|
width: ${e=>e.windowSize=="small"?"auto":"42%"};
|
|
70
70
|
background-color: ${e=>e.windowSize==="small"?e.theme.colors.grey4:e.theme.colors.background};
|
|
71
71
|
margin-top: ${e=>e.windowSize==="small"?e.isAddressPage?"0px":"186px":"unset"};
|
|
72
|
-
`,We=
|
|
72
|
+
`,We=f(function(e,a){return{file:a.file,type:a.type}})(ve);function h({appContent:e}){const a=ee(),n=y(),{tenantEmailDomain:o,vendorId:i,billId:l}=S(),[s]=te(),d=s.get("token"),V=n.pathname.includes("address"),w=x(),_=xe(),A=ge(),b=we(),H=()=>{_.toggle()},W=E(u=>k(u)),U=E(u=>v(u)),{authParams:q,fetchState:c,billAttachment:J,billFetchState:P,companyName:O,currencySymbol:Q,amount:R}=W,{tenantId:z,userId:L,sessionId:N}=q,{fetchState:X,internationalBankAccountCreateStatus:Y}=U;return I.useEffect(()=>{$()},[]),I.useEffect(()=>{b&&c==="Not-Started"&&i!=null&&o!=null&&d!=null&&a(le(i,o,d))},[b,c,i,o,d,a]),I.useEffect(()=>{b&&c==="Completed"&&($(L,N,z),l!=null&&a(re(l)))},[c,b,L,N,z,l,a]),c==="Error"?t.jsx(g,{}):X==="Completed"||Y.fetchState==="Completed"?($(),t.jsx(ae,{to:"../../../../../../../bank/account/save/success",replace:!0,relative:"path"})):c==="In-Progress"?t.jsx(be,{fetchState:c,style:{height:"100vh",backgroundColor:A.colors.grey5,boxShadow:`0px 2px ${r.sp1} ${A.colors.dropShadowNormal}`}}):t.jsxs(t.Fragment,{children:[c==="Completed"&&P==="Completed"&&t.jsx(Se,{analytics:j,onLoad:u=>(Z=>Z.trackBillPayMagicLinkPageLoad(o??"",i??"",O,l??"",Ue(n.pathname),Q,R))(u)}),t.jsxs(Ve,{windowSize:w,children:[w!=="small"?t.jsx(Ke,{onClick:H}):null,t.jsx(He,{windowSize:w,isAddressPage:V,children:P==="In-Progress"?t.jsx(ye,{size:"ExtraLarge",start:!0}):t.jsx(We,{file:J,type:"bill"})}),t.jsx(_e,{windowSize:w,children:e})]})]})}const Ue=e=>`${e.split("/").at(-2)}_${e.split("/").at(-1)}`;function qe(){return t.jsx($e,{})}function dt(){return t.jsxs(ne,{children:[t.jsx(p,{path:"bank/account/save/success",element:t.jsx(qe,{})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/ach/standard",element:t.jsx(h,{appContent:t.jsx(F,{})})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/ach/same-day",element:t.jsx(h,{appContent:t.jsx(F,{})})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/address",element:t.jsx(h,{appContent:t.jsx(Ae,{isSubPage:!0})})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/us-domestic",element:t.jsx(h,{appContent:t.jsx(Ee,{})})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/international",element:t.jsx(h,{appContent:t.jsx(Te,{})})}),t.jsx(p,{path:"*",element:t.jsx(g,{})})]})}export{dt as default};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import{j as u}from"./liveblocks-BxpjjfmG.js";import{a as f}from"./sentry-B06otMHd.js";import{u as F,g as O,h as _,t as w,j as l,N as z}from"./core-BjRnoVdN.js";import{z as r,y as P,a as V,e as A,d as N,f as W,n as $,H,h as R}from"./index-DG5dsziC.js";import{eW as X,LX as Y,M5 as Z,LY as q,fz as B,f$ as G,M1 as J,gn as K,cZ as Q,M6 as ee,M7 as te}from"./zeni-epic-state-BkEKIYbX.js";import{n as ne}from"./mui-CdxnWIp4.js";import{u as ae}from"./useDeviceId-BTkaAWDK.js";import{f as se}from"./analyticsHelper-D86wGf3h.js";import{t as ie}from"./getLocaleForTenant-B67NSzYh.js";import"./recharts-CFinCL-a.js";import"./analytics-CMhYvjgp.js";import"./plaid-DtXw88Ai.js";import"./dnd-DD1NomKe.js";import"./stripe-DMRn4zHo.js";import"./lottie-iCzPfqr5.js";import"./lexical-CkYiXWk9.js";import"./pdf-C9PyNDT1.js";import"./utils-CaYSR2MR.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new t.Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="c8524792-1d31-449c-a7af-d693d5c2af1a",t._sentryDebugIdIdentifier="sentry-dbid-c8524792-1d31-449c-a7af-d693d5c2af1a")}catch{}})();const T=(t,s)=>t!=null&&t.length>0&&s==="magic_links";function Te(){const t=F(),s=O(),m=_(),[k]=w(),n=k.get("token"),p=k.get("stytch_token_type"),g=r.getMagicLinkCodeVerifier(),i=ae(),{otpChallenge:d,twoFAPhoneNumber:x,magicLinkEmail:c,verifyDeviceFetchState:C,resendVerifyDeviceOTPFetchState:D}=l(e=>e.tenantState),S=l(e=>e.tenantState.fetchState),b=l(e=>e.tenantState.activeTenantFetchState.fetchState),h=l(e=>e.tenantState.signInState),I=l(e=>e.tenantState.magicLinkSignInFetchState.fetchState),a=l(e=>e.tenantState.loggedInUser),o=l(e=>X(e)),y=l(e=>Y(e)),E=r.getSignedInUser(),v=P().mode;f.useEffect(()=>{a?.zeniSessionId==null&&n!=null&&T(n,p)&&i!=null&&g!=null&&(r.saveMagicLinkTriggered(n),t(Z(n,i,g)))},[n,p,t,i,g,a?.zeniSessionId]),f.useEffect(()=>{h!=="In-Progress"||S!=="Completed"&&b!=="Completed"||a?.zeniSessionId==null||o==null||(n!=null&&r.saveLastUsedMagicLinkToken(n),r.saveSignedInUserWithSession(a,a.zeniSessionId),r.saveSignedInUserTenants(q(y.tenantsInOrder),a.zeniSessionId),B(a.userId,a.zeniSessionId,o.tenantId),t(G(o.tenantId)),r.saveActiveTenantDomainForUser(o.tenantEmailDomain),t(J("Completed")),V.updateAppLocaleID(ie(o)),se(a,o,v,void 0,y.tenantsInOrder),K().then(()=>{const e=R();e!=null&&A(e)}),setTimeout(()=>{N.trackLogin(W.Event.loginSuccess,"email",Q(o.productSettings))},2e3))},[h,S,b,a,o,y,v,s.state,t]);const M=f.useCallback(()=>{m("/signin/auth")},[m]),U=f.useCallback(()=>{i!=null&&d!=null&&c!=null&&t(ee(i,c,d))},[i,d,t,c]),j=f.useCallback(e=>{i!=null&&n!=null&&c!=null&&d!=null&&t(te(e,i,c,d))},[i,n,t,c,d]);if(I==="Completed"&&d!=null)return u.jsx($,{phoneNumber:x,verifyOtpFetchState:C.fetchState,resendVerifyDeviceOTPFetchState:D,onResendOtp:U,onVerifyOtp:j,onCancelVerifyDevice:M});if(h==="In-Progress"&&S==="Completed"&&a?.zeniSessionId!=null&&o!=null||E!=null){const e=s.state?.origin??"/";return u.jsx(z,{to:e,state:{...s.state,origin:""}})}if(!T(n,p)||g==null||I==="Error"){const e=s.state?.origin??"/",L=n!=null&&r.getLastUsedMagicLinkToken()===n;return u.jsx(z,{to:e,state:{...s.state,origin:"",magicLinkAlreadyUsed:L,magicLinkExpired:!L&&(r.isMagicLinkTriggered(n??"")||I==="Error"&&a?.zeniSessionId==null)}})}return u.jsx(oe,{"data-testid":"smooth-loader",children:u.jsx(H,{size:"ExtraLarge",start:!0})})}const oe=ne.div`
|
|
2
|
+
position: fixed;
|
|
3
|
+
top: 0;
|
|
4
|
+
left: 0;
|
|
5
|
+
right: 0;
|
|
6
|
+
bottom: 0;
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
z-index: 9999;
|
|
11
|
+
background-color: ${t=>t.theme.colors.background};
|
|
12
|
+
`;export{Te as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as V}from"./liveblocks-
|
|
1
|
+
import{j as V}from"./liveblocks-BxpjjfmG.js";import{a as l}from"./sentry-B06otMHd.js";import{u as fe,j as n,i as We,g as Ye,h as qe,l as M}from"./core-BjRnoVdN.js";import{eW as me,fE as Je,fF as pe,fq as Qe,bn as Ke,eV as Xe,fG as ea,fH as aa,fJ as ta,fM as na,fN as g,fP as sa,fQ as de,fT as oa,fR as ia,fS as ra,fU as da,cP as ca,fW as la,cV as ua,fp as fa,f$ as ma,g0 as pa,f_ as ba}from"./zeni-epic-state-BkEKIYbX.js";import{a9 as ha,aa as Sa,w as ga,C as Ea,z as k,x as ka,u as Ca,G as r,i as ya,A as Ia,ab as Ta,k as _a,c as wa,ac as Aa,a5 as Fa,ad as Da,ae as va,af as ce,ag as le,L as $a,ah as Ga,ai as ue,d as x,a1 as Pa,s as _,aj as R,ak as Ma}from"./index-DG5dsziC.js";import{D as xa}from"./mui-CdxnWIp4.js";(function(){try{var f=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new f.Error().stack;d&&(f._sentryDebugIds=f._sentryDebugIds||{},f._sentryDebugIds[d]="e14d13ae-2530-43b5-842f-01abcf336c47",f._sentryDebugIdIdentifier="sentry-dbid-e14d13ae-2530-43b5-842f-01abcf336c47")}catch{}})();const Ra=ha(({isAppContentDrawerOpen:f,handleDrawerToggle:d})=>{const{tenantEmailDomain:t}=We(),a=Ye(),C=ga(),o=qe(),N=Qe(),m=fe(),{useFeatureGate:i}=Ea(),B=k.getSignedInUser(),U=Ke(B),s=n(e=>me(e)),be=s.masterTOSInfo?.isMasterTOSAccepted??!1,O=n(e=>Xe(e)),j=O.uiState.currentChatSessionId,y=ka(),{setLoading:he}=Ca(),[w,L]=l.useState(void 0),A=M("/:tenantEmailDomain/dashboard")!==null,z=M("/:tenantEmailDomain/reports")!==null,I=M("/:tenantEmailDomain/onboarding/*")!==null,Se=!!s.company?.companyZeniAccountInfo?.isZeniAccountEnabled,{isFeatureEnabled:ge}=i(r.isChargeCardFeatureEnabled),{isFeatureEnabled:Z}=i(r.isDebitCardFeatureEnabled),Ee=ya(s,ge,Z),{isFeatureEnabled:ke}=i(r.isSettingsFeatureEnabled),H=n(e=>ea(e)),{isFeatureEnabled:T}=i(r.isReferralFeatureEnabled),F=n(e=>aa(e));l.useEffect(()=>{y&&T&&!I&&F.fetchState==="Not-Started"&&m(ta(!0))},[y,T,F.fetchState,I]);const h=k.getSignedInUser(),D=n(e=>e.tenantState),Ce=n(e=>D.fetchState==="Completed"?na(e):[]),E=n(e=>e.expenseAutomationViewState.selectedPeriodByTenantId),{isFeatureEnabled:ye}=i(r.isApAgingFeatureEnabled),{isFeatureEnabled:Ie}=i(r.isArAgingFeatureEnabled),{isFeatureEnabled:Te}=i(r.isExpenseAutomationEnabled),{isFeatureEnabled:_e}=i(r.isExpenseAutomationEnabledV2),W=Ia(),{isFeatureEnabled:we}=i(r.isDashboardSidebarHalloweenAnimationEnabled),{isFeatureEnabled:Ae}=i(r.isDashboardSidebarThanksGivingAnimationEnabled),{isFeatureEnabled:Fe}=i(r.isDashboardSidebarChristmasAnimationEnabled),{isFeatureEnabled:De}=i(r.isDashboardSidebarNewYearAnimationEnabled),v=s.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",{isFeatureEnabled:ve}=i(r.isTaskManagerCustomerUserAccessEnabled),$e=U||!U&&ve,Ge=n(e=>g(e).totalUnreadCount),Pe=n(e=>g(e).reducedFetchCountState),Y=n(e=>g(e).notificationDetailsByTab.tasks.uiState.unreadCount),q=n(e=>g(e).notificationDetailsByTab.comments.uiState.unreadCount),Me=n(e=>g(e).notificationDetailsByTab.tasks.fetchCountState),$=n(e=>g(e).notificationDetailsByTab.comments.fetchCountState),{inboxNotifications:J,isLoading:Q,isFetchingMore:K,hasFetchedAll:X,fetchMore:xe}=Ta();l.useEffect(()=>{const e=setTimeout(()=>xe?.(),0);return()=>clearTimeout(e)}),l.useEffect(()=>{if(Q===!1&&K===!1&&X===!0)if(s?.companyId!=null&&J!=null){const e=`dashboard_${s.companyId}`;L(J.filter(u=>u.roomId===e&&u.readAt==null).length)}else L(0)},[Q,K,X]),l.useEffect(()=>{y&&!I&&Me.fetchState==="Not-Started"&&N.tenantId!=null&&m(sa("task_manager","dashboard"))},[y,N.tenantId]),l.useEffect(()=>{I||$.fetchState!=="Not-Started"||m(de({fetchCountState:{fetchState:"In-Progress",error:void 0}},"comments"))},[]),l.useEffect(()=>{w!=null&&$.fetchState==="In-Progress"&&(m(de({fetchCountState:{fetchState:"Completed",error:void 0}},"comments")),m(pe({unreadCount:w},"comments")))},[w,$.fetchState]);const Re={fetchStatus:Pe,count:Ge},ee=t!=null?k.getSignedInUserTenant(t):null,ae=n(e=>ee?.tenantId!=null?oa(e,ee.tenantId):void 0),S=[];ye===!1&&S.push("accounts_payable_aging"),Ie===!1&&S.push("accounts_receivable_aging"),S.push("zeni_accounts_promo_card","treasury_promo_card"),T===!1&&S.push("rewards_card"),W===!1&&S.push("expense_automation_card");const Ve=_a(),te=n(e=>ia(e,S,h,_e,Te).fetchState),ne=n(e=>ra(e).fetchState),Ne=A&&(te==="Completed"||te==="Error")||z&&(ne==="Completed"||ne==="Error")||!A&&!z?void 0:"disabled",Be=l.useMemo(()=>da(s.userRole),[s.userRole]),Ue=ca(Be),Oe=s?.rewardsLastViewedTime==null,je=h?.userEmail!=null&&H.fetchState==="Completed"&&la(H.notificationSettings,h.userEmail,Z,s),se=wa(),Le=se&&Aa(a),oe=ua(Ve?.loggedInUserRoleMap),ie=s.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,G=l.useCallback(()=>v&&oe&&!k.getTreasuryPopupSeen(t??"")&&ie===!1&&Fa(a.pathname)!=="treasury",[v,oe,ie,a.pathname,t]),[ze,re]=l.useState(G);l.useEffect(()=>{re(G())},[G]);const Ze=n(e=>e.treasurySetupViewState.treasuryFundsDetails).fundsDetails,He=Da(Ze);return V.jsx(xa,{container:window.document.body,variant:"temporary",open:f,onClose:()=>d(!1),PaperProps:{sx:{width:240,zIndex:8,borderRight:"none",backgroundImage:"none"}},ModalProps:{keepMounted:!0},children:V.jsx(va,{signedInUser:B,currentTenantId:D.currentTenantId??"",tenants:D.fetchState==="Completed"?Ce:ae!=null?[ae]:[],currentTenant:s,isTenantDropdownDisabled:Ne,isSettings:le(a),isSettingsFeatureEnabled:ke,isVendorsTabVisible:Ue,isZeniAccountEnabled:Se,isChargeCardEnabled:Ee,isTreasuryEnabled:v,treasuryYieldPercentage:He,isTreasuryPopupVisible:ze,isNotificationsTabVisible:je,notificationCountDetails:Re,isExpenseAutomationEnabledForUser:W,selectedMenu:ce(a),rewardsConfiguration:{isRewardsTabVisible:T,isRewardsAnimated:Oe,rewardsPlan:F.rewardsPlan},isAiCfoAccessEnabled:se,onNotificationIconClick:()=>{d(!1);let e=Y===0&&q>0?"notifications/comments":"notifications/tasks";le(a)&&(e=Y===0&&q>0?"../../notifications/comments":"../../notifications/tasks");const u=_(a.state?.pathnameStackToGoBack,a.pathname);o(e,{state:{pathnameStackToGoBack:u}})},handleCockpitClick:()=>{window.open("/cockpit")},handleLogOutClick:()=>{d(!1);const e=_(a.state?.pathnameStackToGoBack,a.pathname);o("/signout",{replace:!0,state:{pathnameStackToGoBack:e,message:"logout"}})},handleMenuChange:e=>{if(d(!1),t==null)return;if(e.type==="ai_cfo"){if(x.trackAICFOChatScreenStateChanged("viewed","left_menu",j??null,null),!be)return void Pa({location:a,navigate:o,mergeState:{referrer:"Sidebar"}});const b=_(a.state?.pathnameStackToGoBack,a.pathname);return void o(`/${t}/ai-cfo/explore`,{state:{pathnameStackToGoBack:b,referrer:"Sidebar"}})}const u=_(a.state?.pathnameStackToGoBack,a.pathname),c=e.type,p=R(c)&&c!=="command_center";if(R(e.type)&&E[s.tenantId]!=null&&x.trackMonthEndCloseClicked(E[s.tenantId].month,E[s.tenantId].year,"Sidebar"),p&&E[s.tenantId]!=null){const b=E[s.tenantId];return void o(`/${t}/month_end_close_checks/review/${e.type}/${b.month}-${b.year}`,{state:{pathnameStackToGoBack:u,referrer:"Sidebar"}})}const P=Ma(e.type);ue(e.type)?(j!=null&&m(ba()),o(`/${t}/ai-cfo/${e.type}`,{state:{pathnameStackToGoBack:u.slice(0,-1),referrer:"Sidebar"}})):o(`/${t}/${P}`,{state:{pathnameStackToGoBack:u,referrer:"Sidebar"}})},handleMyProfileClick:()=>{d(!1),o(`/${t}/settings/my_profile`)},handleReferralsClick:()=>{d(!1),o(`/${t}/rewards`)},handleBackClick:()=>{o(`/${t}/dashboard`)},handleTenantSelect:e=>{he($a.TENANT_SWITCHING),d(!1);const u=e.tenantEmailDomain,c=ce(a);let p=`/${encodeURIComponent(u)}/`;const P=R(c);c==="home"?p+="dashboard":c==="users_and_roles"?p+="people":Ga(c)?p+="settings/my_profile":ue(c)?p+=`ai-cfo/${c}`:p+=c==="task_checklist"?"tasks":P?"month_end_close_checks/review":encodeURIComponent(c),o(p,{replace:!0}),h!=null&&(m(ma(e.tenantId)),m(pa(h.userId,e.tenantId,h.zeniSessionId)));const b=e;x.trackCompanySwitch(b.companyId,b.companyName,b.userRole)},handlePopupClose:()=>{k.saveTreasuryPopupSeen(t??"",!0),re(!1)},onZeniLogoClick:()=>{C.toggle()},isAiCfo:Le,aiCfoView:O,isOnDashboard:A,updateCurrentChatSessionId:e=>{m(fa({sessionId:e,agentId:"controller"})),o(`/${t}/ai-cfo/${e}`,{state:{...a.state}})},halloweenAnimationEnabled:we,isTaskManagerAccessEnabled:$e,thanksGivingAnimationEnabled:Ae,christmasAnimationEnabled:Fe,newYearAnimationEnabled:De})})}),La=f=>{const d=fe(),t=n(C=>me(C)),a={events:t.userRoleId!=null?[`private-encrypted-${t.userRoleId}.dashboard-user-notification`]:[],eventCallback:(C,o)=>{Sa(o)&&Je(o.mode)==="dashboard"&&d(pe({unreadCount:o.data.unread},"tasks"))}};return V.jsx(Ra,{...f,...a})};export{La as M};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as e}from"./liveblocks-BxpjjfmG.js";import{h as r,n}from"./core-BjRnoVdN.js";import{Q as i}from"./index-DG5dsziC.js";import"./mui-CdxnWIp4.js";import"./sentry-B06otMHd.js";import"./zeni-epic-state-BkEKIYbX.js";import"./recharts-CFinCL-a.js";import"./analytics-CMhYvjgp.js";import"./plaid-DtXw88Ai.js";import"./dnd-DD1NomKe.js";import"./stripe-DMRn4zHo.js";import"./lottie-iCzPfqr5.js";import"./lexical-CkYiXWk9.js";import"./pdf-C9PyNDT1.js";import"./utils-CaYSR2MR.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new o.Error().stack;t&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[t]="e552295f-ad8f-4911-819f-e7382b348622",o._sentryDebugIdIdentifier="sentry-dbid-e552295f-ad8f-4911-819f-e7382b348622")}catch{}})();const f=n(null,function(o,t){return{onGoBack:()=>{t.navigate(-1)},onGoHome:()=>{t.navigate("/")}}})(i);function _(){const o=r();return e.jsx(f,{navigate:o})}export{_ as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as ct,a as dt,m as mt,j as A}from"./liveblocks-
|
|
1
|
+
import{l as ct,a as dt,m as mt,j as A}from"./liveblocks-BxpjjfmG.js";import lt from"./NotFoundScreen-6c0jfbLt.js";import{a as k}from"./sentry-B06otMHd.js";import{h as ft,g as ut,i as ht,u as pt,j as S,n as kt,o as gt,p as Z}from"./core-BjRnoVdN.js";import{cw as St,fG as H,eW as Q,fU as bt,fN as b,SV as J,fQ as m,fF as y,sn as M,xW as It,SW as Ct,fE as Tt,fW as yt,ss as Et,SX as F,bo as $,fy as x,sw as q,SY as _t,cI as At,cB as Nt}from"./zeni-epic-state-BkEKIYbX.js";import{Z as Bt,z as wt,C as xt,G as Gt,a0 as Rt,cW as Ut,s as N,a9 as Dt,cX as vt,aa as Pt,r as Ft}from"./index-DG5dsziC.js";import"./mui-CdxnWIp4.js";import{u as $t}from"./useAskAiCfoHostNavButtonProps-CFgUcHmD.js";import"./recharts-CFinCL-a.js";import"./analytics-CMhYvjgp.js";import"./plaid-DtXw88Ai.js";import"./dnd-DD1NomKe.js";import"./stripe-DMRn4zHo.js";import"./lottie-iCzPfqr5.js";import"./lexical-CkYiXWk9.js";import"./pdf-C9PyNDT1.js";import"./utils-CaYSR2MR.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new t.Error().stack;l&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[l]="eddb4b1d-80c5-45b9-9061-76fb0f108d66",t._sentryDebugIdIdentifier="sentry-dbid-eddb4b1d-80c5-45b9-9061-76fb0f108d66")}catch{}})();const Mt=(t,l)=>new Promise((n,u)=>{const g=t.map(i=>new Promise(s=>{l(i),s()}));Promise.all(g).then(()=>{setTimeout(()=>{n()},2e3)}).catch(i=>{u(i)})}),jt=kt(function(t,l){const n=H(t),{signedInUser:u,isDebitCardFeatureEnabled:g}=l,i=b(t),s=Q(t),{currentTab:h}=i;return{notificationView:i,isNotificationSettingsVisible:u.userEmail!=null&&yt(n.notificationSettings,u.userEmail,g,s),isDisabled:i.notificationDetailsByTab[h].fetchState==="In-Progress"?"disabled":void 0}},function(t,l){const{location:n,tenantEmailDomain:u,loggedInUserRoleMap:g,externalNotificationsUnreadCount:i,allUnreadCommentsNotificationIds:s,navigate:h,markInboxNotificationAsRead:B,fetchMoreCommentsNotifications:G}=l;return{onNotificationClick:(a,o,d,c)=>{if(c==="task_deleted"){const r=`/${u}/tasks`,I=N(n.state?.pathnameStackToGoBack,n.pathname);h(r,{state:{pathnameStackToGoBack:I,message:"triggerBackClick"}})}else{const r=`/${u}/tasks/${o}`,I=N(n.state?.pathnameStackToGoBack,n.pathname);h(r,{state:{pathnameStackToGoBack:I,message:"triggerBackClick"}})}d==="unread"&&t(q("task_manager","read",[a],!1))},onCommentNotificationClick:(a,o,d)=>{const c=o.toString().split(`/${u}/`);if(c[1]!=null){d==="unread"&&(B(a),t(F([a],$())));let r=`/${u}/${c[1]}`;const I=N(n.state?.pathnameStackToGoBack,n.pathname);c[1].startsWith("reimbursement")&&!At(g)&&(r="not-found"),c[1].startsWith("bill")&&!Nt(g)&&(r="not-found"),h(r,{state:{pathnameStackToGoBack:I,message:"triggerBackClick"}})}},onUpdateNotificationViewUIState:(a,o)=>{t(y(a,o))},onUpdateNotificationTabState:(a,o)=>{t(m(a,o))},onUpdateNotificationViewCurrentTabAndSubTab:(a,o)=>{t(J(a,o));const d=`../${a}`,c=N(n.state?.pathnameStackToGoBack,n.pathname);h(d,{state:{pathnameStackToGoBack:c}})},onUpdateNotificationViewSubTab:a=>{t(_t(a))},onFetchMoreNotifications:(a,o)=>{if(a==="tasks"){const d=[];o==="all"?d.push("read","unread"):o!=="mentions"&&d.push(o),t(M("task_manager","dashboard",d))}else G?.()},onUpdateNotificationStatus:(a,o,d,c)=>{a==="tasks"?t(q("task_manager",d,c)):(t(m({markAsReadState:{fetchState:"In-Progress",error:void 0}},"comments")),Promise.all(c.map(r=>{d==="read"&&(B(r),t(F([r],$())))})).then(()=>{t(m({markAsReadState:{fetchState:"Completed",error:void 0},selectedNotificationIds:[]},"comments")),t(y({unreadCount:i-c.length>0?i-c.length:0},"comments")),t(x({messageSection:"notification_mark_as_read",messageText:"success",type:"success",showStatusIcon:!0}))},r=>{t(m({markAsReadState:{fetchState:"Error",error:r}},"comments")),t(x({messageSection:"notification_mark_as_read",messageText:"failed",type:"error",showStatusIcon:!0}))}).catch(r=>{t(m({markAsReadState:{fetchState:"Error",error:r}},"comments")),t(x({messageSection:"notification_mark_as_read",messageText:"failed",type:"error",showStatusIcon:!0}))}))},onMarkAllNotificationsAsRead:a=>{a==="tasks"?t(Et("task_manager","read")):(t(m({markAsAllReadState:{fetchState:"In-Progress",error:void 0}},"comments")),Mt(s,B).then(()=>{t(F(s,$())),t(m({markAsAllReadState:{fetchState:"Completed",error:void 0}},"comments")),t(y({unreadCount:0},"comments")),t(x({messageSection:"notification_mark_as_read",messageText:"success",type:"success",showStatusIcon:!0}))}).catch(o=>{t(m({markAsAllReadState:{fetchState:"Error",error:o}},"comments")),t(x({messageSection:"notification_mark_as_read",messageText:"failed",type:"error",showStatusIcon:!0}))}))},onBackClick:()=>{const a=Ft(n.state?.pathnameStackToGoBack),o=a.poppedPathname??"../../dashboard";h(o,{state:{pathnameStackToGoBack:a.newStack}})},onSettingsClick:()=>{const a=N(n.state?.pathnameStackToGoBack,n.pathname);h("../../settings/notifications",{state:{pathnameStackToGoBack:a}})}}})(Dt(vt)),Vt=()=>{const t=ft(),l=ut(),{tenantEmailDomain:n,selectedTab:u}=ht(),{areTenantIdsInSync:g}=Bt(),i=St(u??""),s=pt(),h=wt.getSignedInUser(),[B,G]=k.useState(!1),a=S(e=>H(e)),o=S(e=>Q(e)),{useFeatureGate:d}=xt(),{isFeatureEnabled:c}=d(Gt.isDebitCardFeatureEnabled),{isAiCfoAccessEnabled:r,onAskAiCfoClick:I}=$t({mobileExploreReferrer:"Notifications"});Rt({isDataReady:!0});const K=bt(o.userRole);if(o==null||n==null||o.companyId==null)throw Error("Can't access notifications page without current tenant...");if(h==null)throw Error("Can't access notifications page without signed in...");const j=S(e=>b(e).notificationDetailsByTab.tasks.fetchState),V=S(e=>b(e).currentTab),R=S(e=>b(e).currentSubTab),O=S(e=>b(e).notificationDetailsByTab.comments.fetchCountState),U=S(e=>b(e).notificationDetailsByTab.comments.fetchState),tt=S(e=>b(e).notificationDetailsByTab.comments.uiState.unreadCount),et=S(e=>b(e).allExternalNotifications).filter(e=>e.inboxNotification.readAt==null).map(e=>e.inboxNotification.id),at=Ut().allUsers,{inboxNotifications:w,isLoading:E,hasFetchedAll:C,isFetchingMore:D,fetchMore:ot}=ct(),{threads:W,isLoading:X,fetchMore:z,isFetchingMore:L,hasFetchedAll:Y}=dt({query:{metadata:{companyId:o.companyId,application:"dashboard"}}});k.useEffect(()=>{if(V!==i&&i!=null&&s(J(i)),i==null){const e=`../${V}`,p=N(l.state?.pathnameStackToGoBack,l.pathname);t(e,{state:{pathnameStackToGoBack:p}})}},[i]),k.useEffect(()=>{O.fetchState==="Not-Started"&&s(m({fetchCountState:{fetchState:"In-Progress",error:void 0}},"comments"))},[]),k.useEffect(()=>{if(E===!1&&C===!0&&o?.companyId!=null&&w!=null){const e=`dashboard_${o.companyId}`,p=w.filter(T=>T.roomId===e&&T.readAt==null).length;s(m({fetchCountState:{fetchState:"Completed",error:void 0}},"comments")),s(y({unreadCount:p},"comments"))}},[E,C]),k.useEffect(()=>{j!=="In-Progress"&&g&&s(M("task_manager","dashboard",["read","unread"]))},[g]),k.useEffect(()=>{const e=setTimeout(()=>ot?.(),0);return()=>clearTimeout(e)});const v=E||D===!0||C!==!0||E||D===!0||C!==!0;k.useEffect(()=>{v&&U!=="In-Progress"?s(m({fetchState:"In-Progress",error:void 0},"comments")):v||U!=="In-Progress"||s(m({fetchState:"Completed",error:void 0},"comments"))},[v,U]),k.useEffect(()=>{s(y({hasMore:C!==!0},"comments"))},[C]),k.useEffect(()=>{a.fetchState!=="In-Progress"&&a.fetchState!=="Completed"&&B===!1&&(G(!0),s(It()))},[a.fetchState]),k.useEffect(()=>{if(E===!1&&X===!1&&w!=null&&W!=null){const e=`dashboard_${o.companyId}`,p=w.filter(f=>f.roomId===e).filter(f=>f.kind==="thread"),T=p.filter(f=>f.readAt==null),_=p.map(f=>f.id),it=p.map(f=>{const P=W.find(rt=>rt.id===f.threadId);return P!=null?{inboxNotification:{...f,threadId:P.id},thread:P}:(L||Y===!0||z==null||z(),null)}).filter(f=>f!=null);s(m({allNotificationsIds:_},"comments")),s(y({totalCount:_.length,unreadCount:T.length},"comments")),s(Ct(it))}},[E,D,L,C,Y,X,w?.length]);const st={events:o.userRoleId!=null?[`private-encrypted-${o.userRoleId}.dashboard-user-notification`]:[],eventCallback:(e,p)=>{if(Pt(p)){const T=Tt(p.mode);if(T==="dashboard"&&s(y({unreadCount:p.data.unread},"tasks")),j!=="In-Progress"){const _=[];R==="all"?_.push("read","unread"):R!=="mentions"&&_.push(R),s(M("task_manager",T,_,!0))}}}},nt=mt();return A.jsx(jt,{tenantEmailDomain:n,loggedInUserRoleMap:K,signedInUser:h,externalNotificationsUnreadCount:tt,location:l,navigate:t,isDebitCardFeatureEnabled:c,users:at,markInboxNotificationAsRead:nt,allUnreadCommentsNotificationIds:et,isAiCfoAccessEnabled:r,onAskAiCfoClick:I,...st})};function ne(){return A.jsxs(gt,{children:[A.jsx(Z,{path:"/:selectedTab",element:A.jsx(Vt,{})}),A.jsx(Z,{path:"*",element:A.jsx(lt,{})})]})}export{ne as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as m}from"./liveblocks-
|
|
1
|
+
import{j as m}from"./liveblocks-BxpjjfmG.js";import{a as r}from"./sentry-B06otMHd.js";import{u as T,g as A,j as o,N as j}from"./core-BjRnoVdN.js";import{Mk as C,eW as P,fM as x,Ml as z,Mm as D,Mn as L,Mo as R,o8 as k,Lh as N}from"./zeni-epic-state-BkEKIYbX.js";import{z as h,M as I}from"./index-DG5dsziC.js";import"./mui-CdxnWIp4.js";import"./recharts-CFinCL-a.js";import"./analytics-CMhYvjgp.js";import"./plaid-DtXw88Ai.js";import"./dnd-DD1NomKe.js";import"./stripe-DMRn4zHo.js";import"./lottie-iCzPfqr5.js";import"./lexical-CkYiXWk9.js";import"./pdf-C9PyNDT1.js";import"./utils-CaYSR2MR.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new n.Error().stack;s&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[s]="86a68f55-b8c8-4713-98d3-19fb5b5da082",n._sentryDebugIdIdentifier="sentry-dbid-86a68f55-b8c8-4713-98d3-19fb5b5da082")}catch{}})();function ee(){const n=T(),s=A(),{params:t,error:i}=r.useMemo(()=>C(s.search),[s.search]),w=r.useMemo(()=>new URLSearchParams(s.search).get("client_name")??t?.clientId??"Unknown Application",[s.search,t]),f=h.isSignedIn(),a=h.getSignedInUser(),p=o(e=>P(e)),l=o(e=>x(e)),d=o(e=>e.tenantState.fetchState),b=o(z),y=o(D),u=o(L),[v,S]=r.useState(null),[E,M]=r.useState(null);r.useEffect(()=>{document.querySelector("#app-shell-loader")?.remove()},[]),r.useEffect(()=>()=>{n(R())},[n,s.search]),r.useEffect(()=>{i!=null&&console.warn("[OAuthConsent] invalid params:",i)},[i]);const g=r.useRef(!1);r.useEffect(()=>{f&&a!=null&&!g.current&&(d!=="Not-Started"&&d!=="Error"||(g.current=!0,n(k(a.userId,a.zeniSessionId??void 0))))},[f,a,d,n]),r.useEffect(()=>{u!=null&&u!==""&&(window.location.href=u)},[u]);const _=r.useMemo(()=>{if(p?.tenantId!=null)return p.tenantId;const e=h.getActiveTenantForUser()?.tenantId;return e!=null&&l.some(U=>U.tenantId===e)?e:l.length===1?l[0].tenantId:null},[p?.tenantId,l]),c=v??_;return i!=null?m.jsx(I,{variant:"invalid_params",paramsError:i}):f?m.jsx(I,{variant:"signed_in",clientName:w,userEmail:a?.userEmail,isInitializing:d!=="Completed",tenants:l,selectedTenantId:c,onSelectTenant:S,approveError:E??y,isApproving:b==="In-Progress",showAllowButton:c!=null,onApprove:()=>{t!=null&&a!=null&&c!=null&&n(N(a.userId,a.zeniSessionId??void 0,c,t.clientId,t.redirectUri,t.codeChallenge,t.codeChallengeMethod,t.state,t.responseType))},onDeny:()=>{if(t!=null)try{const e=new URL(t.redirectUri);e.searchParams.set("error","access_denied"),e.searchParams.set("error_description","The user denied the request"),e.searchParams.set("state",t.state),window.location.href=e.toString()}catch{M("Unable to deny: redirect_uri is not a valid URL. Close this window or contact support.")}}}):m.jsx(j,{to:"/signin/auth",state:{origin:s.pathname+s.search},replace:!0})}export{ee as default};
|
package/dist/assets/{PandLWithForecastRoutes-BhAndE7k.js → PandLWithForecastRoutes-DWPW45GW.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as n}from"./liveblocks-
|
|
1
|
+
import{j as n}from"./liveblocks-BxpjjfmG.js";import{h as V,u as z,g as H,i as J,j as d,n as K,o as Q,p as I}from"./core-BjRnoVdN.js";import{eW as O,sb as M,rL as X,MR as U,rG as T,bs as ee,bn as ae,bZ as te,rH as se,MS as oe,ME as C,dI as re,vT as ne,MT as ie,we as ce,fD as le,fB as de}from"./zeni-epic-state-BkEKIYbX.js";import{z as me,Z as fe,a0 as pe,k as ue,C as v,G as $,D as he,d as w,ap as be,s as ge}from"./index-DG5dsziC.js";import"./mui-CdxnWIp4.js";import Fe from"./NotFoundScreen-6c0jfbLt.js";import{F as Ie}from"./FeaturePreviewScreen-BfuOs-n9.js";import{a as b}from"./sentry-B06otMHd.js";import{u as Ce}from"./useAskAiCfoHostNavButtonProps-CFgUcHmD.js";import{u as Te}from"./useInitialThreadRequest-Dc7yU2XH.js";import{t as Se}from"./routePaths-C7myDwxn.js";import{M as ye}from"./MobileAppDrawer-BVsx0d52.js";import"./recharts-CFinCL-a.js";import"./analytics-CMhYvjgp.js";import"./plaid-DtXw88Ai.js";import"./dnd-DD1NomKe.js";import"./stripe-DMRn4zHo.js";import"./lottie-iCzPfqr5.js";import"./lexical-CkYiXWk9.js";import"./pdf-C9PyNDT1.js";import"./utils-CaYSR2MR.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new s.Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="b1ddeb63-c8bd-4816-ac8e-9ed78f38bd5f",s._sentryDebugIdIdentifier="sentry-dbid-b1ddeb63-c8bd-4816-ac8e-9ed78f38bd5f")}catch{}})();const S=(s,e,a,o)=>{if(s!=e){const r=o??"";s!=null&&s.length>0?a(`../${e}${r}`,{replace:!0}):a(`${e}${r}`,{replace:!0})}},ke=K(function(s){const e=oe(s),a={},o=e.pandLReportWithForecast.uiState.nodeCollapseState;return Object.keys(o).forEach(r=>{a[r]=o[r]===!1}),{selectedTimeframe:e.selectedTimeframe,isForecastVsActualOn:e.isForecastVsActualOn,compareMode:e.compareMode,forecastList:e.forecastList,selectedForecast:e.selectedForecast,pandLreport:e.pandLReportWithForecast,scrollPosition:e.pandLReportWithForecast.uiState.scrollPosition,nodeOpenStatus:a,type:"name+balances_forecast",analytics:w}},function(s,e){return{onForecastSelectionChanged:(a,o)=>{s(U(a,o)),e.isPandLReportFetched(a)||s(T(a)),S(e.forecastIdFromUrlPath,a,e.navigate)},onTimeframeChanged:a=>{s(ce(a))},onForecastVsActualsCompareToggle:a=>{s(ie(a)),s(C({forecastId:e.forecastIdFromUrlPath,scrollPosition:{scrollLeft:0,scrollTop:0}}))},onCompareModeChanged:a=>{s(ne(e.firstMonthOfFY,a,0,[]))},onAccountBalanceClick:e.hasTransactionAccess!==!0?void 0:(a,o)=>{let r,i;const p=a.accountName===""?a.accountDescription:a.accountName;if(o.balanceTimeFrame==="month"||o.balanceTimeFrame==="quarter"?(r=o.balanceTimeFrame,i=re(o)):o.balanceTimeFrame==="year"?(r="quarter",i={startDate:o.endDate.startOf("quarter"),endDate:o.endDate}):console.error(`timeframe ${o.balanceTimeFrame} is not supported`),i!=null&&r!=null){const m=Se(e.tenantEmailDomain,a.accountId,a.accountType,p,r,i),u=ge(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(m,{state:{pathnameStackToGoBack:u,referrer:"Forecast"}})}},onNodeCollapseToggled:(a,o)=>{s(C({forecastId:e.forecastIdFromUrlPath,nodeCollapseState:{nodeId:a,isCollapsed:o===!1}}))},onTableScroll:a=>{s(C({forecastId:e.forecastIdFromUrlPath,scrollPosition:a}))},onBackClick:()=>{e.navigate("../../")}}})(be);function P(){const s=V(),e=z(),a=H(),{forecastId:o,tenantEmailDomain:r}=J(),[i,p]=b.useState(!1),[m,u]=b.useState(!1),h=me.getSignedInUser(),y=d(t=>O(t)),B=y.company?.companyInfo.firstMonthOfFY??1,c=d(t=>M(t.forecastState,t.forecastListState)),l=d(t=>t.forecastListState.fetchState==="Completed"),k=d(t=>t.profitAndLossState),D=d(t=>t.reportUIOptionsState.selectedForecast),A=t=>k.pandLByForecastID[t]!=null&&se(t,k).reducedAllFetchState.fetchState==="Completed",{areTenantIdsInSync:g}=fe();pe({isDataReady:l});const{isAiCfoAccessEnabled:G,onAskAiCfoClick:q}=Ce({mobileExploreReferrer:"Forecast"});b.useEffect(()=>{if(!i&&g)p(!0),l||e(X());else if(l&&!m){u(!0);const t=((f,j,R)=>j!=null?f.forecasts.findIndex(F=>F.id===j):R!=null?f.forecasts.findIndex(F=>F.id===R):f.forecasts.length>0?0:-1)(c,o,D?.id);t===-1&&o!=null?s("page-not-found",{replace:!0}):t!==-1&&t!=D?.index?(e(U(c.forecasts[t].id,t)),S(o,c.forecasts[t].id,s,a.search)):o==null&&t!==-1&&S(void 0,c.forecasts[t].id,s,a.search),t!==-1&&!A(c.forecasts[t].id)&&g&&e(T(c.forecasts[t].id))}},[i,p,e,l,c,m,u,M,T,g]);const x=ue(),N=x?.loggedInUserRole!=null&&ee(x.loggedInUserRole),{useFeatureGate:W}=v(),{isFeatureEnabled:E}=W($.isReportsCommentingEnabled),_=Te(E?y?.companyId:void 0,{clearParams:l&&m}),[Y,Z]=b.useState(!1),L=t=>{Z(t)};return n.jsxs(n.Fragment,{children:[l?n.jsx(he,{analytics:w,onLoad:t=>(f=>f.trackForecast())(t)}):null,n.jsx(ye,{isAppContentDrawerOpen:Y,handleDrawerToggle:L}),n.jsx(ke,{firstMonthOfFY:B,tenantEmailDomain:r,forecastIdFromUrlPath:o,navigate:s,location:a,isPandLReportFetched:A,meetingUrl:te(`https://meetings.hubspot.com/svitlana-grankovska?firstname=${h?.firstName}&lastname=${h?.lastName}&email=${h?.userEmail}`),hasTransactionAccess:N,isAiCfoAccessEnabled:G,onAskAiCfoClick:q,isReportsCommentingEnabled:E,isZeniUser:ae(h),initialOpenThreadRequest:_,onClickMenuIcon:()=>{L(!0)}})]})}function Ze(){const s=d(i=>O(i)),{useFeatureGate:e}=v(),{isFeatureEnabled:a}=e($.isDebitCardFeatureEnabled),o=le(a,s),r=de(s);return o===!0||r===!0?n.jsx(Ie,{}):n.jsxs(Q,{children:[n.jsx(I,{path:"/",element:n.jsx(P,{})}),n.jsx(I,{path:"/:forecastId",element:n.jsx(P,{})}),n.jsx(I,{path:"/:forecastId/*",element:n.jsx(Fe,{})})]})}export{Ze as PandLWithForecastRoutes,Ze as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-
|
|
1
|
+
import{j as a}from"./liveblocks-BxpjjfmG.js";import{MN as ne,eW as X,kw as z,fD as Y,fB as oe,Kf as q,Mr as ie,uQ as ke,MO as N,uF as Pe,u_ as Ee,uU as re,uJ as le,uY as je,uV as ve,MP as ce,wF as Le,fn as Te,gd as Fe,MQ as _,uN as de,uM as pe,v1 as Ae,c7 as Oe}from"./zeni-epic-state-BkEKIYbX.js";import{K as ue,C as ee,G as H,z as G,i as me,W as ge,J as fe,al as he,am as Re,F as Ce,o as R,Y as be,a as ye,an as Ve,Z as Ze,a0 as Be,D as Ue,d as Se,f as $e,s as Me,ao as _e,k as He}from"./index-DG5dsziC.js";import{D as we,n as J,S as De}from"./mui-CdxnWIp4.js";import se from"./NotFoundScreen-6c0jfbLt.js";import{a as c}from"./sentry-B06otMHd.js";import{u as ae,i as Ke,j as g,h as We,g as ze,n as Ge,o as te,p as M}from"./core-BjRnoVdN.js";import{u as Je}from"./useAskAiCfoHostNavButtonProps-CFgUcHmD.js";import{M as Qe}from"./MobileAppDrawer-BVsx0d52.js";import"./recharts-CFinCL-a.js";import"./analytics-CMhYvjgp.js";import"./plaid-DtXw88Ai.js";import"./dnd-DD1NomKe.js";import"./stripe-DMRn4zHo.js";import"./lottie-iCzPfqr5.js";import"./lexical-CkYiXWk9.js";import"./pdf-C9PyNDT1.js";import"./utils-CaYSR2MR.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]="e85b492c-c5f0-4ceb-a367-97ab940938a2",e._sentryDebugIdIdentifier="sentry-dbid-e85b492c-c5f0-4ceb-a367-97ab940938a2")}catch{}})();const Ne={overlayWidth:new Ce(100,100,48)},K=ye.getLocalizedStrings().peoplePage.invitePage,Xe=({companyId:e,managersListView:t,companyPassportView:d,classListView:n,mode:f,isEditPeopleDrawerOpen:i,closeDrawerHandler:y})=>{const h=ue(),m=ae(),[V,Z]=c.useState(!1),[k,S]=c.useState(!1),{userId:w}=Ke(),r=g(l=>ne(l)),p=g(l=>X(l)),P=g(l=>z(l)),{useFeatureGate:x}=ee(),{isFeatureEnabled:I}=x(H.isDebitCardFeatureEnabled),E=Y(I,p),L=oe(p),T=q(p),B=ie(p),U=!!p.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,D=!E&&P&&n.fetchState!=="Completed"||t.fetchState!=="Completed"||d.fetchState!=="Completed"||e==null;if(G.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const C=()=>{m(N()),y()},F=()=>{V===!0?S(!0):C()},$=d.companyView?.controllers?.map(l=>l.user),u=!!p.company?.companyZeniAccountInfo?.isZeniAccountEnabled,{isFeatureEnabled:j}=x(H.isChargeCardFeatureEnabled),v=me(p,j,I),{isCardsHidden:A}=ge(p?.tenantId),b=!v||A,O=p.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",s={peopleDetails:r,classList:n.classes,managersList:t.users,controllersList:$,mode:f,isZeniTenant:T,isAccountingClassesEnabled:P,isReimbursementDisabled:U===!1,isZeniAccountsDisabled:u===!1,isChargeCardDisabled:b,isTreasuryDisabled:O===!1,isLiteRoleDisabled:B===!1,isBankingOnlyTenant:E,isCardsOnlyTenant:L,onResetClick:C,onDeleteUser:l=>{m(le(l.userId,l.userRole.userRoleId))},onPeopleLocalDataUpdated:l=>{m(re({peopleLocalData:l})),Z(!0)},onSaveClick:()=>{m(f==="zeni_only"?Pe(e):Ee(T))},onCloseClick:F,isLoading:D||r.person==null},o={onOkClick:()=>{S(!1),C()},onCancelClick:()=>{S(!1)}};return c.useEffect(()=>{D===!1&&w!=null&&m(ke(w))},[D,w]),c.useEffect(()=>{r.updatePersonState.fetchState==="Completed"&&C()},[r.updatePersonState.fetchState]),a.jsx(we,{anchor:"right",open:i,PaperProps:{style:{width:Ne.overlayWidth.valuePercentage(h),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:fe.overlayDark,cursor:"pointer"}}},onClose:F,children:a.jsxs(Ye,{onClick:l=>l.stopPropagation(),children:[k===!0?a.jsx(he,{titleComponent:a.jsx(xe,{children:K.discardTitle}),descriptionComponent:a.jsx(Ie,{children:K.discardDescription}),primaryButtonText:K.discard,secondaryButtonText:K.no,action:o,isEditPopup:!0}):null,a.jsx(Re,{...s})]})})},Ye=J(De)`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -15,8 +15,8 @@ import{j as a}from"./liveblocks-Jco3UIMO.js";import{MN as ne,eW as X,kw as z,fD
|
|
|
15
15
|
margin-bottom: 30px;
|
|
16
16
|
margin-top: ${R.sp4};
|
|
17
17
|
white-space: pre-line;
|
|
18
|
-
`,qe={overlayWidth:new Ce(100,100,48)},W=ye.getLocalizedStrings().peoplePage.invitePage,ea=({companyId:e,managersListView:t,companyPassportView:
|
|
18
|
+
`,qe={overlayWidth:new Ce(100,100,48)},W=ye.getLocalizedStrings().peoplePage.invitePage,ea=({companyId:e,managersListView:t,companyPassportView:d,classListView:n,mode:f,isInvitePeopleDrawerOpen:i,closeDrawerHandler:y})=>{const h=ue(),m=ae(),[V,Z]=c.useState(!1),[k,S]=c.useState(!1),w=g(o=>ne(o)),r=g(o=>X(o)),p=g(o=>z(o)),{useFeatureGate:P}=ee(),{isFeatureEnabled:x}=P(H.isDebitCardFeatureEnabled),I=Y(x,r),E=oe(r),L=q(r),T=ie(r),B=!!r.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,U=!I&&p&&n.fetchState!=="Completed"||t.fetchState!=="Completed"||d.fetchState!=="Completed"||e==null;if(G.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const D=()=>{y(),m(N())},C=()=>{V===!0?S(!0):D()},F={onOkClick:()=>{S(!1),D()},onCancelClick:()=>{S(!1)}},$=d.companyView?.controllers.map(o=>o.user),u=!!r.company?.companyZeniAccountInfo?.isZeniAccountEnabled,{isFeatureEnabled:j}=P(H.isChargeCardFeatureEnabled),v=me(r,j,x),{isCardsHidden:A}=ge(r?.tenantId),b=!v||A,O=r.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",s={classList:n.classes,managersList:t.users,controllersList:$,mode:f,isZeniTenant:L,onPeopleLocalDataUpdated:o=>{m(re({peopleLocalData:o})),Z(!0)},onResetClick:D,onSaveClick:()=>{m(f==="zeni_only"?je(e):ve())},onCloseClick:C,peopleDetails:w,isAccountingClassesEnabled:p,isReimbursementDisabled:B===!1,isLiteRoleDisabled:T===!1,isZeniAccountsDisabled:u===!1,isChargeCardDisabled:b,isTreasuryDisabled:O===!1,isBankingOnlyTenant:I,isCardsOnlyTenant:E,isLoading:U};return c.useEffect(()=>{w.invitePersonState.fetchState==="Completed"&&(y(),m(N()))},[w.invitePersonState.fetchState]),a.jsx(we,{anchor:"right",open:i,PaperProps:{style:{width:qe.overlayWidth.valuePercentage(h),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:fe.overlayDark,cursor:"pointer"}}},onClose:C,children:a.jsxs(aa,{onClick:o=>o.stopPropagation(),children:[k===!0?a.jsx(he,{titleComponent:a.jsx(xe,{children:W.discardTitle}),descriptionComponent:a.jsx(Ie,{children:W.discardDescription}),primaryButtonText:W.discard,secondaryButtonText:W.no,action:F}):null,a.jsx(Ve,{...s})]})})},aa=J(De)`
|
|
19
19
|
display: flex;
|
|
20
20
|
min-height: 100%;
|
|
21
21
|
flex-direction: column;
|
|
22
|
-
`,sa=Ge(function(e,t){const
|
|
22
|
+
`,sa=Ge(function(e,t){const d=ce(e),n=G.getSignedInUser();return{data:d,loggedinUserId:n?.userId??"",isZeniTenant:t.isZeniTenant===!0,shouldFetchClasses:t.shouldFetchClasses,isZeniAdminUser:n?.userEmailDomain==="zeni.ai"&&t.isZeni===!0,isAccountingClassesEnabled:z(e),analytics:Se}},function(e,t){const{navigate:d,companyId:n,shouldFetchClasses:f}=t;return{personAction:{onPersonDelete:(i,y)=>{e(le(i,y))},onResendInvite:i=>{e(Ae(i))},onReloadPeople:()=>{e(de()),e(pe(n,f))},onBackClick:()=>{d("../../")},onModeChange:i=>{e(_({mode:i,searchText:"",sortKey:"name",sortOrder:"ascending"}))},onSearchTextChanged:i=>{e(_({searchText:i}))}}}})(_e);function Q({isInvitePeopleDrawerOpen:e,isEditPeopleDrawerOpen:t}){const d=We(),n=ae(),f=ze(),{areTenantIdsInSync:i}=Ze(),y=G.getSignedInUser(),h=g(s=>X(s)),{useFeatureGate:m}=ee(),{isFeatureEnabled:V}=m(H.isDebitCardFeatureEnabled),Z=g(s=>z(s)),k=!Y(V,h)&&Z,S=q(h),w=h?.tenantId,{tenantEmailDomain:r}=h,[p,P]=c.useState(!1),[x,I]=c.useState(!1),[E,L]=c.useState(!1),[T,B]=c.useState("off"),[U,D]=c.useState(!1),C=s=>{D(s)},{isAiCfoAccessEnabled:F,onAskAiCfoClick:$}=Je({mobileExploreReferrer:"People"}),u=g(s=>ce(s));Be({isDataReady:u.fetchState==="Completed"});const j=g(s=>Le(s.classState,s.classListState)),v=g(s=>Te(s.userState,s.userRoleState,s.userListViewState,"manager")),A=g(s=>Fe(s)),b=h?.companyId;c.useEffect(()=>{p&&T===u.uiState.mode||!i||(n(_({searchText:"",sortKey:"name",sortOrder:"ascending"})),B(u.uiState.mode),P(!0),n(de()))},[p,y,w,n,u.uiState.mode,i]),c.useEffect(()=>{b!=null&&i&&n(pe(b,k))},[b,k,i]),c.useEffect(()=>{I(e!=null&&e===!0),L(t!=null&&t===!0&&t)},[e,t]),c.useEffect(()=>{n(_({searchText:"",sortKey:"name",sortOrder:"ascending"}))},[]);const O=()=>{I(!1),L(!1),d("../")};return a.jsxs(a.Fragment,{children:[u.fetchState==="Completed"?a.jsx(Ue,{analytics:Se,onLoad:s=>s.trackPageLoaded($e.Event.members)}):null,x===!0?a.jsx(ea,{closeDrawerHandler:O,isInvitePeopleDrawerOpen:x,managersListView:v,companyPassportView:A,classListView:j,companyId:b,mode:u.uiState.mode}):null,E===!0?a.jsx(Xe,{closeDrawerHandler:O,isEditPeopleDrawerOpen:E,managersListView:v,companyPassportView:A,classListView:j,companyId:b,mode:u.uiState.mode}):null,a.jsx(Qe,{isAppContentDrawerOpen:U,handleDrawerToggle:C}),a.jsx(sa,{navigate:d,signedInUser:y,isZeni:h.isZeni,isZeniTenant:S,peopleUIState:u.uiState,companyId:b,shouldFetchClasses:k,classList:j,managersView:v,peopleView:u,onInvitePeopleClick:()=>{d("./new")},onColumnSortConfigChanged:(s,o)=>{n(_({sortKey:s,sortOrder:o}))},onRowClick:s=>{const o=`/${r}/people/${encodeURIComponent(s)}/edit`,l=Me(f.state?.pathnameStackToGoBack,f.pathname);d(o,{state:{pathnameStackToGoBack:l}})},onClickMenuIcon:()=>{C(!0)},isAiCfoAccessEnabled:F,onAskAiCfoClick:$})]})}function wa(){const e=He();return Oe(e?.loggedInUserRole??[])?a.jsxs(te,{children:[a.jsx(M,{path:"/",element:a.jsx(Q,{})}),a.jsx(M,{path:"new",element:a.jsx(Q,{isInvitePeopleDrawerOpen:!0})}),a.jsx(M,{path:":userId/edit",element:a.jsx(Q,{isEditPeopleDrawerOpen:!0})}),a.jsx(M,{path:"*",element:a.jsx(se,{})})]}):a.jsx(te,{children:a.jsx(M,{path:"*",element:a.jsx(se,{})})})}export{wa as default};
|