@zeniai/web-app-ui 5.2.14-dev → 5.2.15-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-DKny58NT.js +1 -0
- package/dist/assets/AddressScreen-BVRFr_N1.js +9 -0
- package/dist/assets/{AiCfoScreen-Bq9qNM-U.js → AiCfoScreen-BN4QIEgB.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-Cgsqt2XF.js → BillPayApprovalRoutes-B_4hJ2pr.js} +1 -1
- package/dist/assets/{BillPayRoutes-D8ICOArG.js → BillPayRoutes-BJZymqmE.js} +1 -1
- package/dist/assets/{BusinessVerificationPageScreen-DlMhX3L_.js → BusinessVerificationPageScreen-DrCLmIxZ.js} +2 -2
- package/dist/assets/{CardsAiCfoScreen-evFd6UUn.js → CardsAiCfoScreen-Inv396bE.js} +3 -3
- package/dist/assets/{ChargeCardRoutes-czvHDNab.js → ChargeCardRoutes-DGEKzyzO.js} +10 -10
- package/dist/assets/CompanyPassportScreen-BsHZnsQV.js +1 -0
- package/dist/assets/{ConnectionAuthScreen-VR4MFOhW.js → ConnectionAuthScreen-CA8kXAT-.js} +1 -1
- package/dist/assets/CustomerOnboardingAuthScreen-DhhSBraP.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-CeoeigLq.js → CustomerOnboardingRoutes-Xm_O4AxR.js} +5 -5
- package/dist/assets/{DashboardRoutes-522JIWbO.js → DashboardRoutes-BsVesrb3.js} +1 -1
- package/dist/assets/{DefaultTenantHome-CBA28Llo.js → DefaultTenantHome-CrZNGTHj.js} +1 -1
- package/dist/assets/{DomesticWireDetailScreen-C-1bKP7r.js → DomesticWireDetailScreen-C7-Ze-bQ.js} +3 -3
- package/dist/assets/{DrawerScreen-DAMt3OKh.js → DrawerScreen-D8laOuUr.js} +1 -1
- package/dist/assets/EntityDetailRoutes-BH66r_ba.js +1 -0
- package/dist/assets/{ExpenseAutomationRoutes-DcYqfqSi.js → ExpenseAutomationRoutes-NkkbpV7S.js} +1 -1
- package/dist/assets/FeaturePreviewScreen-BKSMrhrm.js +1 -0
- package/dist/assets/{HubSpotOAuthCallbackScreen-LTrYsA2J.js → HubSpotOAuthCallbackScreen-BpsDDDwu.js} +1 -1
- package/dist/assets/MagicLinkRoutes-pFkPSCAf.js +72 -0
- package/dist/assets/{MagicLinkSignInScreen-CC54CnuQ.js → MagicLinkSignInScreen-DJG_XhkF.js} +1 -1
- package/dist/assets/MobileAppDrawer-D_5ajcgl.js +1 -0
- package/dist/assets/NotFoundScreen-vodaR6J5.js +1 -0
- package/dist/assets/{NotificationRoutes-CLLE6idd.js → NotificationRoutes-b1ATX3hL.js} +1 -1
- package/dist/assets/{OAuthConsentScreen-D4soKi0X.js → OAuthConsentScreen-DTjj0EZW.js} +1 -1
- package/dist/assets/{PandLWithForecastRoutes-CLOwX80d.js → PandLWithForecastRoutes-BVouxwOp.js} +1 -1
- package/dist/assets/{PeopleRoutes-RKPAQcdN.js → PeopleRoutes-BB0mptER.js} +3 -3
- package/dist/assets/PerformanceRoutes-BSGtqYip.js +1 -0
- package/dist/assets/{Preview-Crb4CpIB.js → Preview-Q7E6grqg.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-Doubr8Lv.js → QBOConnectionScreen-CYvG88ne.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRoutes-CuXrRY6O.js → ReimbursementApprovalRoutes-CIZnVB8w.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-CxT_ZU1Q.js → ReimbursementApprovalRuleDetailScreen-Bj2gRsYN.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-B9v1csuM.js → ReimbursementRoutes-D8GfsHFS.js} +1 -1
- package/dist/assets/{ReportsRoutes-CYYBopNx.js → ReportsRoutes-DYUuIrA9.js} +1 -1
- package/dist/assets/RewardsRoutes-CESh4LSy.js +1 -0
- package/dist/assets/{ScreenRoutes-3ZRh9969.js → ScreenRoutes-DeIZgGFA.js} +2 -2
- package/dist/assets/{SettingsRoutes-CLHJHv6D.js → SettingsRoutes-BS_91kvY.js} +1 -1
- package/dist/assets/{SetupPagesScreen-D-KjoZ4s.js → SetupPagesScreen-Du6z7K4L.js} +5 -5
- package/dist/assets/{SignInScreen-DzUQQLWX.js → SignInScreen-DGJIVFjs.js} +1 -1
- package/dist/assets/SignOutScreen-B4fw6lrq.js +9 -0
- package/dist/assets/{TaskListScreen-D1GJ72DV.js → TaskListScreen-C1GpDMh9.js} +2 -2
- package/dist/assets/TaskRoutes-Bn-Ea5LE.js +9 -0
- package/dist/assets/{TransactionDetailRoutes-NBFzTv3J.js → TransactionDetailRoutes-DM262XtJ.js} +1 -1
- package/dist/assets/{TransactionDetailScreen-BXByY28g.js → TransactionDetailScreen-tCFIjsQZ.js} +2 -2
- package/dist/assets/{TransactionListRoutes-ClVpGZj3.js → TransactionListRoutes-q01ai3C8.js} +1 -1
- package/dist/assets/{TreasuryRoutes-CmxZydJL.js → TreasuryRoutes-C4C9GZ84.js} +4 -4
- package/dist/assets/{VendorsRoutes-caL_MoH5.js → VendorsRoutes-5HmjTAo1.js} +13 -13
- package/dist/assets/WiseConfirmationScreen-Cf2wKH5p.js +12 -0
- package/dist/assets/{ZeniAccountRoutes-3mgFL_9o.js → ZeniAccountRoutes-DjosaDA2.js} +1 -1
- package/dist/assets/ZeniAccountStatementScreen-BBJfP9Ky.js +9 -0
- package/dist/assets/{accountMappingHelper-B0l8lAeR.js → accountMappingHelper-C5WHpsgJ.js} +1 -1
- package/dist/assets/{analytics-CO5gayAE.js → analytics-D_NuuF2U.js} +1 -1
- package/dist/assets/analyticsHelper-C7Ffbo_X.js +1 -0
- package/dist/assets/{core-DrRun-Wp.js → core-Da6TLrNx.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-BqXEXApE.js → decodeURIComponentSafe-B-r3T5bV.js} +1 -1
- package/dist/assets/{dnd-C7lg2kUY.js → dnd-DC_qF3Wr.js} +1 -1
- package/dist/assets/{empty-CcJKsg0A.js → empty-C73kmkO9.js} +1 -1
- package/dist/assets/{empty-BxU8KR-q.js → empty-s0Z9SHTS.js} +1 -1
- package/dist/assets/{emptyVideoElement-Jmh-gus6.js → emptyVideoElement-CUd0nWeJ.js} +1 -1
- package/dist/assets/{epic-CkW-Ur48.js → epic-DAjg0wXj.js} +1 -1
- package/dist/assets/getLocaleForTenant-CnNopwIO.js +1 -0
- package/dist/assets/{index-CdzL9szH.js → index-Bwczg7nO.js} +10593 -10593
- package/dist/assets/{index-T7IByhHr.js → index-COd9LNlP.js} +1 -1
- package/dist/assets/{index-2hIX2kLH.js → index-CWFrIv4j.js} +1 -1
- package/dist/assets/{index-DdvKvtaE.js → index-CsQZjvif.js} +1 -1
- package/dist/assets/{index-cnTKKS-Z.js → index-DAI9X2Zp.js} +2 -2
- package/dist/assets/{index-BJ6_cpY3.js → index-DykhB8j2.js} +1 -1
- package/dist/assets/{index-4Tf9Bt0i.js → index-XC9zB3-f.js} +1 -1
- package/dist/assets/{index-CfbU7SR1.js → index-b_fXiiPC.js} +1 -1
- package/dist/assets/{lexical-Cceo9d8G.js → lexical-CQoPutFC.js} +1 -1
- package/dist/assets/{liveblocks-0jcT8Dx_.js → liveblocks-C8AAaKDR.js} +1 -1
- package/dist/assets/{lottie-C4eBAM7n.js → lottie-B7_cpoe1.js} +1 -1
- package/dist/assets/{mui-BCzMCgwZ.js → mui-CosLSKUu.js} +1 -1
- package/dist/assets/{pathToGoBack-aFGIF63I.js → pathToGoBack-C_jELk-6.js} +1 -1
- package/dist/assets/{pdf-C1ioMmzA.js → pdf-CQB-J2hc.js} +3 -3
- package/dist/assets/{pdf-lib-gor9sGMc.js → pdf-lib-CscVz5ta.js} +1 -1
- package/dist/assets/{plaid-B0k6aBM1.js → plaid-2mv_ck83.js} +1 -1
- package/dist/assets/{pusher-CnlBFFea.js → pusher-DrRS7JyV.js} +1 -1
- package/dist/assets/{react-COTuHHMD.js → react-B42V2lQZ.js} +1 -1
- package/dist/assets/{react-CPmZ-IlI.js → react-B7r6-bpj.js} +1 -1
- package/dist/assets/{react-CeH9yclr.js → react-BmvpxDDj.js} +1 -1
- package/dist/assets/{react-C6dV2Ihe.js → react-C6MFx27g.js} +1 -1
- package/dist/assets/{react-CbFHkYXj.js → react-DJflHsBg.js} +1 -1
- package/dist/assets/{react-5qcvQnQi.js → react-DTDSsBUn.js} +1 -1
- package/dist/assets/{recharts-BJColP3b.js → recharts-9jMEgSjc.js} +1 -1
- package/dist/assets/{routePaths-CHhQNN3M.js → routePaths-Kh8F22Sq.js} +1 -1
- package/dist/assets/{sentry-Cix5j_Oe.js → sentry-DfheywaX.js} +1 -1
- package/dist/assets/{url-C58jRUwt.js → url-C-T2kMoW.js} +1 -1
- package/dist/assets/{url-C5XmMoE_.js → url-HWxh2lX9.js} +1 -1
- package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-rxliwAgH.js → useAiCfoDashboardSuggestedQuestionsChips-Dn_pRt3Y.js} +1 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-vhjzTbBd.js +1 -0
- package/dist/assets/{useCashManagementBanner-BT0je4k3.js → useCashManagementBanner-DwoCHz3u.js} +1 -1
- package/dist/assets/{useChargeCardPusherEvents-BbwX5V1a.js → useChargeCardPusherEvents-B9JTMflJ.js} +1 -1
- package/dist/assets/{useDeviceId-34Upzybn.js → useDeviceId-COe_GzcU.js} +1 -1
- package/dist/assets/{useEmailConnectResultRefresh-BeuZj6XY.js → useEmailConnectResultRefresh-D4OTnNkO.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-E7aaQNIx.js → useInitialThreadRequest-CRJnx1_Z.js} +1 -1
- package/dist/assets/{utils-CvfvTDv6.js → utils-BykfwIo5.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-B_GhVWS9.js → withTransactionSidePanel-ZJmA3F8P.js} +2 -2
- package/dist/assets/{zeni-epic-state-D1OApLJ3.js → zeni-epic-state-BqRlfhza.js} +5 -5
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/AddressRoutes-C5ICjwhT.js +0 -1
- package/dist/assets/AddressScreen-DqXE5RDJ.js +0 -9
- package/dist/assets/CompanyPassportScreen-CzLA5zCy.js +0 -1
- package/dist/assets/CustomerOnboardingAuthScreen-B7Anpyxh.js +0 -1
- package/dist/assets/EntityDetailRoutes-CGG59Jmf.js +0 -1
- package/dist/assets/FeaturePreviewScreen-IYXzvJjG.js +0 -1
- package/dist/assets/MagicLinkRoutes-DzdDjge4.js +0 -72
- package/dist/assets/MobileAppDrawer-7KFASJmR.js +0 -1
- package/dist/assets/NotFoundScreen-1FWTFg5q.js +0 -1
- package/dist/assets/PerformanceRoutes-BL-ag8V3.js +0 -1
- package/dist/assets/RewardsRoutes-DQ-aEUje.js +0 -1
- package/dist/assets/SignOutScreen-CrFXavCN.js +0 -9
- package/dist/assets/TaskRoutes-BShsttwI.js +0 -9
- package/dist/assets/WiseConfirmationScreen-C_2P8pKj.js +0 -12
- package/dist/assets/ZeniAccountStatementScreen-B27kJkJn.js +0 -9
- package/dist/assets/analyticsHelper-BaOtwD25.js +0 -1
- package/dist/assets/getLocaleForTenant-C5iVY_JU.js +0 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-fe0P1a5j.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as i}from"./liveblocks-C8AAaKDR.js";import{z as n}from"./index-Bwczg7nO.js";import{g as d}from"./QBOConnectionScreen-CYvG88ne.js";import"./sentry-DfheywaX.js";import{g as p,N as s}from"./core-Da6TLrNx.js";import"./zeni-epic-state-BqRlfhza.js";import"./recharts-9jMEgSjc.js";import"./mui-CosLSKUu.js";import"./analytics-D_NuuF2U.js";import"./plaid-2mv_ck83.js";import"./dnd-DC_qF3Wr.js";import"./stripe-cKAAJElX.js";import"./lottie-B7_cpoe1.js";import"./lexical-CQoPutFC.js";import"./pdf-CQB-J2hc.js";import"./utils-BykfwIo5.js";import"./empty-s0Z9SHTS.js";import"./pdf-lib-CscVz5ta.js";import"./index-DykhB8j2.js";import"./url-C-T2kMoW.js";import"./index-CWFrIv4j.js";import"./decodeURIComponentSafe-B-r3T5bV.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new t.Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="817363c8-7f1d-4590-b58b-cef70b99ca15",t._sentryDebugIdIdentifier="sentry-dbid-817363c8-7f1d-4590-b58b-cef70b99ca15")}catch{}})();const U=()=>{const t=p(),{code:o,realmId:r,state:e}=d(t.search),m=n.getSignedInUser()?.userId??"";if(f(o,r,e,m)===!0){const a=`../../${e}/onboarding?code=${o}&realmId=${r}&state=auth_flow`;return i.jsx(s,{to:a})}return i.jsx(s,{to:"../../"})},f=(t,o,r,e)=>t!=""&&o!=""&&r!=""&&e!=null&&e!="";export{U as default,f as hasValidParams};
|
package/dist/assets/{CustomerOnboardingRoutes-CeoeigLq.js → CustomerOnboardingRoutes-Xm_O4AxR.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-
|
|
1
|
+
import{j as a}from"./liveblocks-C8AAaKDR.js";import{t as ht,A as Ue}from"./AddressScreen-BVRFr_N1.js";import St from"./NotFoundScreen-vodaR6J5.js";import{a as d}from"./sentry-DfheywaX.js";import{h as Ce,g as ke,u as ae,i as Ie,j as I,N,l as bt,n as tt,o as Ct,p as H}from"./core-Da6TLrNx.js";import{eZ as Y,fG as _e,fE as ve,bs as kt,fU as It,bS as _t,og as vt,tH as Ot,tK as Tt,Ne as Et,Nf as xt,ki as he,kl as nt,ML as wt,bZ as At,c7 as ue,u9 as Oe,tW as Pt,Ng as de,ua as at,KE as Dt,lm as ot,Nh as jt,Ni as Ft,rF as Nt,hu as Bt,MD as me,hr as Ut,ME as Vt,ym as Rt,rJ as Lt,hj as $t,hm as Ve,Nj as st,Nk as Gt,Ep as Mt,Nl as Qt,Et as zt,tN as Kt,Nm as qt,Nn as Ht,kg as Zt,kj as Jt,um as Wt,tY as it,u8 as Yt,bE as Re,cA as Xt,ul as Le,rY as en,rM as tn,le as nn,gl as an,gk as on,gj as sn,No as rn,tQ as cn,un as dn,uq as un,ut as ln,uz as pn,cZ as mn}from"./zeni-epic-state-BqRlfhza.js";import{z as L,A as Te,c as Z,n as gn,v as z,E as oe,e as B,aq as fn,J as yn,$ as rt,d as ct,ar as $e,k as Se,g as be,as as hn,o as Ge,at as Me,au as Sn,av as Qe,aw as bn,ax as Cn}from"./index-Bwczg7nO.js";import{n as Ee}from"./mui-CosLSKUu.js";import{g as kn,h as In,q as se}from"./QBOConnectionScreen-CYvG88ne.js";import{u as _n,a as vn}from"./useEmailConnectResultRefresh-D4OTnNkO.js";import{u as On}from"./useChargeCardPusherEvents-B9JTMflJ.js";import"./recharts-9jMEgSjc.js";import"./analytics-D_NuuF2U.js";import"./plaid-2mv_ck83.js";import"./dnd-DC_qF3Wr.js";import"./stripe-cKAAJElX.js";import"./lottie-B7_cpoe1.js";import"./lexical-CQoPutFC.js";import"./pdf-CQB-J2hc.js";import"./utils-BykfwIo5.js";import"./empty-s0Z9SHTS.js";import"./pdf-lib-CscVz5ta.js";import"./index-DykhB8j2.js";import"./url-C-T2kMoW.js";import"./index-CWFrIv4j.js";import"./decodeURIComponentSafe-B-r3T5bV.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},u=new e.Error().stack;u&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[u]="99eeecb2-13d8-41a6-aa7e-a00301cf89ef",e._sentryDebugIdIdentifier="sentry-dbid-99eeecb2-13d8-41a6-aa7e-a00301cf89ef")}catch{}})();const ze=e=>{switch(e){case"Complete":return"yes";case"Pending Review":case"Incomplete":return"partially";default:return"no"}},Tn=()=>{const e=Ce(),u=ke(),i=ae(),[o,l]=d.useState(!1),[c,y]=d.useState(!1),{tenantEmailDomain:S}=Ie(),t=L.getSignedInUser(),{useFeatureGate:n}=Te(),{isFeatureEnabled:s}=n(Z.isApAgingFeatureEnabled),{isFeatureEnabled:b}=n(Z.isArAgingFeatureEnabled),{isFeatureEnabled:_}=n(Z.isReferralFeatureEnabled),{isFeatureEnabled:k}=n(Z.isExpenseAutomationEnabledV2),{isFeatureEnabled:E}=n(Z.isDebitCardFeatureEnabled),r=gn(),g=I((h=>Y(h))),p=I((h=>h.onboardingCustomerViewState.fetchState)),v=g.excludedResources,T=g.companyId??L.getSignedInUserTenant(S)?.companyId;if(t==null)throw Error("Can't access onboarding flow without signing in...");const x=_e(E,g),D=ve(g),m=[],$=v?.resources?.find((h=>h.resource==="/reports/top_expenses"))==null,j=v?.resources?.find((h=>h.resource==="/reports/task_card"))==null,G=g?.userRole!=null&&kt(g?.userRole),M=v?.resources?.find((h=>h.resource==="/bills"))==null&&!G,A=v?.resources?.find((h=>h.resource==="/reimbursements"))==null;$===!1&&m.push("top_expenses"),j===!1&&m.push("task_card"),M===!1&&m.push("bill_pay_card","bill_pay_promo_card"),A===!1&&m.push("reimbursement_card","reimbursement_promo_card"),m.push("zeni_accounts_promo_card","treasury_promo_card"),_===!1&&m.push("rewards_card");const F=I((h=>{const O=[];s===!1&&O.push("accounts_payable_aging"),b===!1&&O.push("accounts_receivable_aging"),O.push("zeni_accounts_promo_card","treasury_promo_card"),_===!1&&O.push("rewards_card"),r===!1&&O.push("expense_automation_card");const J=It(h,O,t,k,r);return _t(J.reportsInOrder.map((P=>({fetchState:P.fetchState,error:P.error})))).fetchState}));d.useEffect((()=>{p!=="Completed"||o||x||D||(l(!0),i(vt(t.userId,T,g.tenantId,!0,!1,m)))}),[o,p,x,D,t,g.tenantId,i]);const K=d.useRef(!1),Q=d.useCallback((()=>{const h={pathnameStackToGoBack:z(u.state?.pathnameStackToGoBack,u.pathname),message:"activation"};e(x?"../../checking":D?"../../cards":"../../dashboard",{state:h})}),[e,u,x,D]),U=d.useCallback((()=>{K.current||(K.current=!0,Q())}),[Q]);if(d.useEffect((()=>{const h=setTimeout((()=>y(!0)),3e3);return()=>clearTimeout(h)}),[]),d.useEffect((()=>{const h=setTimeout(U,6e3);return()=>clearTimeout(h)}),[U]),d.useEffect((()=>{x||D||!c||F!=="Completed"&&F!=="Error"||U()}),[c,F,x,D,U]),p!=="Completed")return a.jsx(N,{to:"../"});const V=g.company?.companyOnboardingInfo?.onboardingInfo,q={timeSinceQuoteSign:V?.onboardingTimeSinceQuoteSigned??"",timeSinceQuoteSignInMinutes:V?.onboardingToQuoteSignMinutes??0,isKybDone:ze(V?.businessVerified?.status),isKycDone:ze(V?.identityVerified?.status),paymentType:"",paymentSource:"",qboConnectionSource:V?.accountingConnectionCreationMode??""};return a.jsxs(a.Fragment,{children:[a.jsx(oe,{analytics:B,onLoad:h=>h.trackOnboardingDashboardActivation(q)}),a.jsx(fn,{show:!0,onComplete:U})]})},ge=["reading_books","finance_graph","reconciliation","cfo_foundation"],fe=["llm_fine_tuning","rag_knowledge_graph","personalized_context"],Ke=(e,u)=>{const i=new Map(e.map((o=>[o.key,o])));return u.map((o=>{return l=i.get(o)?.status,l==="starting"||l==="building"?l:"idle";var l}))},qe=(e,u)=>{if(e.length===0)return!1;const i=new Map(e.map((o=>[o.key,o])));return u.every((o=>i.get(o)?.status==="ready"))},He=Ee.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100vh;
|
|
4
4
|
background-color: ${e=>e.theme.colors.grey4};
|
|
@@ -11,7 +11,7 @@ import{j as a}from"./liveblocks-0jcT8Dx_.js";import{t as ht,A as Ue}from"./Addre
|
|
|
11
11
|
|
|
12
12
|
${e=>e.skipLegacyDrawerOffset?`
|
|
13
13
|
width: 100%;
|
|
14
|
-
padding-left: ${
|
|
14
|
+
padding-left: ${Ge.sp0};
|
|
15
15
|
`:`
|
|
16
16
|
min-width: calc(100% - ${Me}px);
|
|
17
17
|
padding-left: ${Me}px;
|
|
@@ -19,12 +19,12 @@ import{j as a}from"./liveblocks-0jcT8Dx_.js";import{t as ht,A as Ue}from"./Addre
|
|
|
19
19
|
|
|
20
20
|
${e=>e.theme.breakpoints.down("md")} {
|
|
21
21
|
width: 100%;
|
|
22
|
-
padding-left: ${
|
|
22
|
+
padding-left: ${Ge.sp0};
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
${e=>e.windowSize!=="small"?"overflow: auto;":""}
|
|
26
|
-
`,Je=tt((function(e,u){const{companyId:i,isAdmin:o,currentTenant:l,isOnAddressPage:c}=u,y=L.getSignedInUser(),S=l.tenantId,t={userId:y?.userId??"",sessionId:y?.zeniSessionId??"",tenantId:S??""},n=Y(e),s=ve(e,i),b=st(e),_=ue(l?.userRole??[])&&s.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",I=$t(e.userRoleConfigState);return{onboardingCustomerView:s,analytics:B,isRefreshingViewInBackground:!1,isDisabled:_,companyTitles:I.companyTitles,connectedAccountProvider:n.company?.featuresActivationInfo.connectedAccountProvider??"",fileProps:{filesEndPoint:Sn.fileMicroServiceBaseUrl,authParams:t},signedInUser:L.getSignedInUser(),currentTenant:n,isAdmin:o,isOnAddressPage:c,meetingUrl:"https://meetings.hubspot.com/niharn/zeni-onboarding-overview?embed=true",cardPaymentView:b,isCardPaymentPopupOpen:!1,stripeKey:Se.stripeKey}}),(function(e,u){const{companyId:i,currentTenant:o,themeState:l,navigate:c,location:y}=u,{tenantEmailDomain:S}=o;return{onFetchLinkTokenClick:(t,n)=>{e(pn(t,n))},onEstablishConnectionClick:(t,n)=>{e(ln(t,n))},onUpdatePaymentAccountStatus:(t,n,s)=>{e(un(t,n,s))},onUpdatePaymentAccountLoginStatus:(t,n)=>{e(dn(!1,t,n))},onEstablishConnectionSuccess:()=>{e(cn(i,!0,!1))},handleOnConnectClick:()=>{B.trackOnboardingConnectQBO(),se.handleClick()},updateQBOPopupState:t=>{e(de({isQBOPopupOpen:t}))},onCompanyOfficerUpdated:t=>{const n=t.map((s=>{const{officerType:b,userId:_,name:I,email:E,ssn:r,nationalityCountryCode:g,dob:p,phone:O,syncToken:T,selectDocument:w,role:D,ownership:m,isSelectedForVerification:G,userVerificationStatus:j,fileIds:$,isPhoneVerified:M}=s;let A;return w.selectDocumentType==="driverLicense"?A="driving_license":w.selectDocumentType==="passport"?A="passport":w.selectDocumentType==="stateId"?A="id_document":w.selectDocumentType==="ssnCard"&&(A="social_security_card"),{officerType:b,userId:_,firstName:I.firstName,lastName:I.lastName,email:E,ssn:r,nationalityCountryCode:g?.selectedOption!=null?Qe(g.selectedOption):void 0,phone:O,birthday:p!=null?Re(p?.toString()):p,syncToken:T,titleAtCompany:D.selectedOption,ownershipInCompany:m,documentTypeSelectedForVerification:A,isSelectedForVerification:G,userVerificationStatus:j,fileIds:$,additionalDocumentTypesRequestedForVerification:[],additionalSubmittedDocumentsForVerificationFileIds:[],areAdditionalDocumentsRequestedForVerification:!1,areAdditionalDocumentsSubmittedForVerification:!1,isPhoneVerified:M}}));e(Le({officers:n}))},onGetOtp:(t,n)=>{e(sn(t,"CustomerOnboarding")),n!=null&&e(rn({officerType:n,phone:t}))},onResendOtp:t=>{e(on(t,"CustomerOnboarding"))},onVerifyOtp:(t,n)=>{e(an(t,n,"CustomerOnboarding"))},updateFilesEntity:t=>{e(nn({files:t}))},onDeleteFile:t=>{e(tn(t))},onEditFileName:(t,n)=>{e(en(t,n.split(".")[0]))},onCompanyDetailsChanged:t=>{const{companyDescription:n,companyIndustry:s,companyIndustryType:b,companyLegalName:_,companyTaxId:I,companyWebsite:E,companyPhone:r,primaryContactEmail:g,primaryContactName:p,primaryContactUserId:O,primaryContactSyncToken:T,syncToken:w,fileIds:D,typeOfIncorporation:m,stateOfIncorporation:G,incDate:j,companySourceOfFunds:$,companySourceOfFundsDescription:M,companySubIndustry:A,countriesOfOperations:F,purposeOfAccount:K,purposeOfAccountDescription:Q,regulatedStatus:U,regulatedStatusDescription:V,transactionVolume:q,transactionVolumeDescription:h,usNexus:v,usNexusTypes:J}=t,P={companyId:i,companyDescription:n,companyIndustry:s.selectedOption,companyIndustryType:b?.selectedOption??"",companyLegalName:_,taxIdOrEIN:I,website:E!=""&&E!=null?Xt(E):void 0,phone:r,syncToken:w,fileIds:D,incDate:j!=null?Re(j?.toString()):j,typeOfIncorporation:m?.selectedOption??"",stateOfIncorporation:G?.selectedOption??"",companySourceOfFunds:$?.selectedOption??"",companySourceOfFundsDescription:M,companySubIndustry:A?.selectedOption??"",countriesOfOperations:F?.selectedOptions.map((X=>X.length===2?X:Qe(X)))??[],purposeOfAccount:K?.selectedOption??"",purposeOfAccountDescription:Q,regulatedStatus:U??"",regulatedStatusDescription:V,transactionVolume:q?.selectedOption??"",transactionVolumeDescription:h,usNexus:v,usNexusTypes:J?.selectedOptions??[]},le={userId:O,firstName:p.firstName,lastName:p.lastName,email:g,syncToken:T};e(Le({companyDetails:P,primaryContactDetails:le}))},onAddressClick:(t,n)=>{const s=Ye(S,t,n),b=z(y.state?.pathnameStackToGoBack,y.pathname);c(s,{state:{pathnameStackToGoBack:b}})},onRegisteredAddressClick:(t,n)=>{const s=Ye(S,t,n),b=z(y.state?.pathnameStackToGoBack,y.pathname);c(s,{state:{pathnameStackToGoBack:b}})},onUpdateCustomerView:(t,n,s)=>{e(Yt(i,!1,n,s,t))},onAddressEditHandler:t=>{if(t!=null){const n=ht(t);e(ot({addressType:"subscription_billing_address",addressToCreate:n}))}},onSkipSetupClick:()=>{const t=z(y.state?.pathnameStackToGoBack,y.pathname);e(it(i,!1,!1)),c("./activation",{state:{pathnameStackToGoBack:t}})},onUpdateStep:t=>{e(at({step:t}))},onUpdateSubStep:t=>{e(Wt({subStep:t}))},onZeniLogoClick:()=>{l.toggle()},handleLogOutClick:()=>{const t=z(y.state?.pathnameStackToGoBack,y.pathname);c("/signout",{replace:!0,state:{pathnameStackToGoBack:t,message:"logout"}})},handleCockpitClick:()=>{window.open("/cockpit")},handleReferralsClick:()=>{c(`/${S}/rewards`)},handleCreateCardSetupIntent:t=>{e(nt(t))},handleConfirmCardSetupIntent:t=>{e(Jt(t))},updateCardPaymentModalState:t=>{e(de({isCardPaymentPopupOpen:t}))},handleAddCardPaymentSource:(t,n,s)=>{e(Zt(t,n,s))},handleFetchPaymentSources:()=>{e(he())},resetCardPaymentViewState:()=>{e(Ht())},handleResetCardPaymentErrorStatuses:()=>{e(qt())},redirectToProductSuitePage:()=>{const t=z(y.state?.pathnameStackToGoBack,y.pathname);c(`/${S}/onboarding/thankyou`,{state:{pathnameStackToGoBack:t,message:"OnboardingThankyou"},replace:!0})},onAcknowledgeAiFinanceTeam:()=>{i!=null&&(B.trackOnboardingAiFinanceTeamAcknowledged(),e(Kt(i)))},onIdentityDocumentUploadedForAutofill:t=>{if(i==null)return;const n=Qt(t.documentType);n!=null&&e(zt({target:"onboarding",companyId:i,officerType:t.officerType,fileId:t.fileId,documentType:n}))},onCompanyDocumentUploadedForAutofill:t=>{i!=null&&e(Mt({target:"onboarding",companyId:i,fileId:t.fileId,documentType:t.documentType}))}}}))(hn),ce=({taxCFOCustomer:e=!1,isOnAddressPage:u=!1,appContent:i})=>{const o=Ce(),l=Ie(),c=ae(),y=yn(),S=rt(),[t,n]=d.useState(!1),[s,b]=d.useState(!1),[_,I]=d.useState(!1),{tenantEmailDomain:E}=ke(),r=ct(),{useFeatureGate:g}=Te(),{isFeatureEnabled:p}=g(Z.isDebitCardFeatureEnabled),O=bt("/:tenantEmailDomain/onboarding")!==null&&l.search?.includes("code"),T=k((f=>f.onboardingCustomerViewState.fetchState)),w=k((f=>f.onboardingCustomerViewState.currentStep)),D=k((f=>f.onboardingCustomerViewState.uiState)),m=k((f=>Y(f))),G=k((f=>f.userRoleConfigState.fetchState)),j=k((f=>f.cardPaymentViewState)),$=Ge(j.addCardPaymentSourceStatus.fetchState),M=j.addCardPaymentSourceStatus.fetchState,{code:A,realmId:F,state:K}=In(l.search),Q=m.externalConnections?.accounting[0],U=Q?.connectionType,V=Q?.connectionName,q=Q?.connectionId??"",h=L.getSignedInUser()?.userId??"";d.useEffect((()=>{s||(b(!0),c(he()))}),[s,c]),d.useEffect((()=>{_||(nt(["card"]),I(!0))}),[_]),d.useEffect((()=>{$==="In-Progress"&&M==="Completed"&&c(he())}),[$,M]),d.useEffect((()=>{kn(A,F,K,q,h)===!0&&m.externalConnections?.saveConnectionState!=="In-Progress"&&T==="Completed"&&(c(xt(m.tenantId,{connection_type:U??"accounting",connection_name:V??"quickbooks_online",authorization_code:A,realm_id:F,connection_id:q,user_id:h},At(window.location.origin+"/onboarding/auth"))),B.trackOnboardingSaveQBOConnection(F,q),o(l.pathname))}),[A,F,K,l.pathname,T]),d.useEffect((()=>{se.isInitiated===!1&&T==="Completed"&&se.init("/onboarding/auth",m.tenantEmailDomain)}),[T]);const v=m.companyId??L.getSignedInUserTenant(E)?.companyId,J=ue(m?.userRole??[]),P=k((f=>ve(f,v)));d.useEffect((()=>{t||T!=="Not-Started"||v==null||(n(!0),c(Pt(v,!0,!O)))}),[t,T,v]),d.useEffect((()=>{m.externalConnections?.saveConnectionState!=="Completed"&&m.externalConnections?.saveConnectionState!=="Error"||!D.isQBOPopupOpen||w!=="connect_ledger"||c(de({isQBOPopupOpen:!1}))}),[m.externalConnections?.saveConnectionState]),d.useEffect((()=>{T==="Completed"&&O&&(c(at({step:"connect_ledger"})),c(de({isQBOPopupOpen:!0})))}),[O,T]),d.useEffect((()=>{G==="Not-Started"&&c(Dt(!0))}),[G,c]);const le=Ge(P.companyDetailsLocalData?.addressStatus);d.useEffect((()=>{P.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&P.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&le==null&&c(ot({addressType:"company_registered_address",addressToCreate:P.companyDetailsLocalData?.addressStatus?.addressToCreate}))}),[P.companyDetailsLocalData?.addressStatus?.addressToCreate,P.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate]);const X=P.isInterimEmailSent,we=L.getSignedInUser();if(we==null)throw Error("Can't access onboarding flow without signing in...");const dt=_e(p,m),ut=Oe(m),xe=m.company?.companyOnboardingInfo.isOnboardingCompleted,Ae=f=>f.trackPageLoaded(be.Event.onboardingPage),Pe=m.productSettings.isOtherProductsEnabled,lt=m.productSettings.isTreasuryEnabled,De=En({tenantEmailDomain:E??"",signedInUserEmail:we.userEmail??"",companyId:v}),je=(({companyId:f})=>{const R=ae(),ie=k((x=>x.onboardingCustomerViewState?.aiAgentsActivation)),ee=k((x=>Y(x).company?.companyOnboardingInfo?.onboardingInfo?.onboardingAiActivationInfo?.isOnboardingAiActivationViewed??!1)),pe=d.useCallback((()=>{R(vt())}),[R]);d.useEffect((()=>{pe()}),[pe]);const Fe=d.useCallback((()=>{f==null||f===""||ee||R(Tt(f))}),[f,ee,R]),pt=d.useMemo((()=>{if(f==null||f==="")return[];const x=`private-encrypted-${f}`;return[`${x}.ledger-ingestion.counts-updated`,`${x}.ai-agents-activation.phase-changed`]}),[f]),mt=d.useCallback(((x,te)=>{if(te==null||typeof te!="object")return;const C=te;if(x!=="ledger-ingestion.counts-updated"){if(x==="ai-agents-activation.phase-changed"){const re=typeof C.phase_key=="string"?C.phase_key:typeof C.key=="string"?C.key:"",W=typeof C.status=="string"?C.status:"idle";if(re==="")return;R(wt({key:re,status:W==="starting"||W==="building"||W==="ready"?W:"idle",startedAt:typeof C.started_at=="string"?C.started_at:void 0,completedAt:typeof C.completed_at=="string"?C.completed_at:void 0}))}}else R(Et({customerCount:typeof C.customer_count=="number"?C.customer_count:void 0,glAccountCount:typeof C.gl_account_count=="number"?C.gl_account_count:void 0,targetTransactionCount:typeof C.target_transaction_count=="number"?C.target_transaction_count:void 0,transactionCount:typeof C.transaction_count=="number"?C.transaction_count:void 0,vendorCount:typeof C.vendor_count=="number"?C.vendor_count:void 0}))}),[R]);return vn({events:pt,onEvent:mt,onSubscribed:pe}),d.useMemo((()=>{const x=ie?.phases??[],te=Ke(x,ge),C=Ke(x,fe),re=qe(x,ge),W=qe(x,fe),Ne=x.some((yt=>yt.status!=="idle")),ne=!ee&&!Ne,Be=ee&&!Ne,gt=Be?ge.map((()=>"building")):te,ft=Be?fe.map((()=>"building")):C;return{ledgerRowStatuses:ne?void 0:gt,backgroundRowStatuses:ne?void 0:ft,showLedgerReadyInLabel:ne?void 0:re,showBackgroundReadyInLabel:ne?void 0:W,forceContinueEnabled:!ne||void 0,counts:ie?.counts,onContinueClicked:Fe}}),[ie?.phases,ie?.counts,ee,Fe])})({companyId:v});if(xe===!0){if(!Pe)return lt?a.jsx(N,{to:"../../treasury"}):dt?a.jsx(N,{to:"../../checking"}):ut?a.jsx(N,{to:"../../cards"}):a.jsx(N,{to:"../../dashboard"});const f=P.updateStatus.fetchState==="In-Progress";if(Pe&&!f)return e?a.jsxs(He,{children:[a.jsx(oe,{analytics:B,onLoad:R=>Ae(R)}),a.jsx(Je,{navigate:o,location:l,companyId:v,currentTenant:m,isAdmin:J,isOnAddressPage:u,themeState:S,googleAPIKey:Se.googleMapsAPIKey,integrationsSectionProps:De,aiAgentsActivationProps:je}),i!=null?a.jsx(Ze,{windowSize:y,skipLegacyDrawerOffset:u&&m.productSettings.isOtherProductsEnabled!==!0,children:i}):null]}):a.jsx(N,{to:"../../onboarding/thankyou"})}else if(xe===!1&&r?.loggedInUserRoleMap!=null)return X===!0?a.jsx(N,{to:"../../onboarding/thankyou"}):a.jsxs(He,{children:[a.jsx(oe,{analytics:B,onLoad:f=>Ae(f)}),a.jsx(Je,{navigate:o,location:l,companyId:v,currentTenant:m,isAdmin:J,isOnAddressPage:u,themeState:S,googleAPIKey:Se.googleMapsAPIKey,integrationsSectionProps:De,aiAgentsActivationProps:je}),i!=null?a.jsx(Ze,{windowSize:y,skipLegacyDrawerOffset:u&&m.productSettings.isOtherProductsEnabled!==!0,children:i}):null]});return null},ye="external_integrations",En=({tenantEmailDomain:e,signedInUserEmail:u,companyId:i})=>{const o=ae(),{pendingAutoFocusTabId:l}=_n(),{plaidAccounts:c,onAddPlaidAccount:y}=On({companyId:i}),S=k((r=>r.plaidAccountViewState.external_account.plaidConnectionDetails)),t=k((r=>Y(r))),n=k((r=>r.tenantState.fetchState)),s=k((r=>jt(r,i))),b=k((r=>Ft(r,ye))),_=d.useMemo((()=>new Set(b.map((r=>r.additionalInfo)).filter((r=>r!=null)))),[b]),I=t.tenantId,E=ue(t.userRole??[]);return d.useEffect((()=>{o(Nt(ye))}),[o]),d.useMemo((()=>({isAdmin:E,integrationsView:s,isLoading:n==="In-Progress",notifyMeRegisteredSlugs:_,autoFocusTabId:l??void 0,saveChargeBeeState:s.externalConnections?.saveAPIKeyConnectionState??"Not-Started",saveChargeBeeError:s.externalConnections?.saveAPIKeyConnectionError?.message,saveHubSpotState:s.externalConnections?.saveOAuthConnectionState??"Not-Started",saveHubSpotError:s.externalConnections?.saveOAuthConnectionError?.message,saveConnectorCredentialsStateBySlug:s.externalConnections?.saveConnectorCredentialsStateBySlug??{},saveConnectorCredentialsErrorBySlug:Object.fromEntries(Object.entries(s.externalConnections?.saveConnectorCredentialsErrorBySlug??{}).map((([r,g])=>[r,g?.message]))),deleteConnectionState:s.externalConnections?.deleteConnectionState??"Not-Started",deleteConnectionError:s.externalConnections?.deleteConnectionError?.message,onConnectGmail:()=>{o(Ve(I,"gmail",We()))},onConnectOutlook:()=>{o(Ve(I,"outlook",We()))},onConnectHubSpot:(r,g)=>{const p=s.externalConnections?.revenue?.find((T=>T.connectionName==="hubspot"))?.connectionId;if(p==null)return;const O=`${window.location.origin}/oauth/hubspot/callback`;sessionStorage.setItem("hubspot_oauth_pending",JSON.stringify({client_id:r,client_secret:g,connection_id:p,redirect_uri:O,tenant_id:I})),window.location.href=`https://app.hubspot.com/oauth/authorize?client_id=${encodeURIComponent(r)}&scope=${encodeURIComponent("oauth crm.objects.deals.read crm.objects.owners.read")}&redirect_uri=${encodeURIComponent(O)}`},onDisconnect:(r,g)=>{o(Gt(I,r,me(g)))},onNotifyMe:r=>{B.trackIntegrationsNotifyMeClicked("Onboarding",r),o(Lt(ye,r,u))},onReconnectQBO:()=>{se.init("/onboarding/auth",e),se.handleClick()},onRefreshClick:()=>{s.integrations.refreshQBO.fetchState!=="In-Progress"&&o(Rt())},onSaveChargeBeeCredentials:(r,g)=>{const p=s.externalConnections?.revenue?.find((O=>O.connectionName==="chargebee"))?.connectionId;p!=null&&o(Ut(I,p,me("revenue"),Vt("chargebee"),{api_key:r,site:g}))},onSaveConnectorCredentials:r=>{o(Bt(I,me("payments"),r))},plaidAccounts:c,onAddPlaidAccount:y,plaidConnectionDetails:S})),[E,s,n,_,l,I,u,e,o,c,y,S])};function We(){const e=new URL(window.location.href);return e.searchParams.set("onboarding_step","connect_data_source"),e.toString()}function Ye(e,u,i){let o=`/${e}/onboarding/address`;return o=i!=null?o.concat(`/edit/${u}/${encodeURIComponent(i)}`):o.concat(`/new/${u}`),o}const Xe=Ee.div`
|
|
26
|
+
`,Je=tt((function(e,u){const{companyId:i,isAdmin:o,currentTenant:l,isOnAddressPage:c}=u,y=L.getSignedInUser(),S=l.tenantId,t={userId:y?.userId??"",sessionId:y?.zeniSessionId??"",tenantId:S??""},n=Y(e),s=Oe(e,i),b=st(e),_=ue(l?.userRole??[])&&s.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",k=Gt(e.userRoleConfigState);return{onboardingCustomerView:s,analytics:B,isRefreshingViewInBackground:!1,isDisabled:_,companyTitles:k.companyTitles,connectedAccountProvider:n.company?.featuresActivationInfo.connectedAccountProvider??"",fileProps:{filesEndPoint:Sn.fileMicroServiceBaseUrl,authParams:t},signedInUser:L.getSignedInUser(),currentTenant:n,isAdmin:o,isOnAddressPage:c,meetingUrl:"https://meetings.hubspot.com/niharn/zeni-onboarding-overview?embed=true",cardPaymentView:b,isCardPaymentPopupOpen:!1,stripeKey:Se.stripeKey}}),(function(e,u){const{companyId:i,currentTenant:o,themeState:l,navigate:c,location:y}=u,{tenantEmailDomain:S}=o;return{onFetchLinkTokenClick:(t,n)=>{e(pn(t,n))},onEstablishConnectionClick:(t,n)=>{e(ln(t,n))},onUpdatePaymentAccountStatus:(t,n,s)=>{e(un(t,n,s))},onUpdatePaymentAccountLoginStatus:(t,n)=>{e(dn(!1,t,n))},onEstablishConnectionSuccess:()=>{e(cn(i,!0,!1))},handleOnConnectClick:()=>{B.trackOnboardingConnectQBO(),se.handleClick()},updateQBOPopupState:t=>{e(de({isQBOPopupOpen:t}))},onCompanyOfficerUpdated:t=>{const n=t.map((s=>{const{officerType:b,userId:_,name:k,email:E,ssn:r,nationalityCountryCode:g,dob:p,phone:v,syncToken:T,selectDocument:x,role:D,ownership:m,isSelectedForVerification:$,userVerificationStatus:j,fileIds:G,isPhoneVerified:M}=s;let A;return x.selectDocumentType==="driverLicense"?A="driving_license":x.selectDocumentType==="passport"?A="passport":x.selectDocumentType==="stateId"?A="id_document":x.selectDocumentType==="ssnCard"&&(A="social_security_card"),{officerType:b,userId:_,firstName:k.firstName,lastName:k.lastName,email:E,ssn:r,nationalityCountryCode:g?.selectedOption!=null?Qe(g.selectedOption):void 0,phone:v,birthday:p!=null?Re(p?.toString()):p,syncToken:T,titleAtCompany:D.selectedOption,ownershipInCompany:m,documentTypeSelectedForVerification:A,isSelectedForVerification:$,userVerificationStatus:j,fileIds:G,additionalDocumentTypesRequestedForVerification:[],additionalSubmittedDocumentsForVerificationFileIds:[],areAdditionalDocumentsRequestedForVerification:!1,areAdditionalDocumentsSubmittedForVerification:!1,isPhoneVerified:M}}));e(Le({officers:n}))},onGetOtp:(t,n)=>{e(sn(t,"CustomerOnboarding")),n!=null&&e(rn({officerType:n,phone:t}))},onResendOtp:t=>{e(on(t,"CustomerOnboarding"))},onVerifyOtp:(t,n)=>{e(an(t,n,"CustomerOnboarding"))},updateFilesEntity:t=>{e(nn({files:t}))},onDeleteFile:t=>{e(tn(t))},onEditFileName:(t,n)=>{e(en(t,n.split(".")[0]))},onCompanyDetailsChanged:t=>{const{companyDescription:n,companyIndustry:s,companyIndustryType:b,companyLegalName:_,companyTaxId:k,companyWebsite:E,companyPhone:r,primaryContactEmail:g,primaryContactName:p,primaryContactUserId:v,primaryContactSyncToken:T,syncToken:x,fileIds:D,typeOfIncorporation:m,stateOfIncorporation:$,incDate:j,companySourceOfFunds:G,companySourceOfFundsDescription:M,companySubIndustry:A,countriesOfOperations:F,purposeOfAccount:K,purposeOfAccountDescription:Q,regulatedStatus:U,regulatedStatusDescription:V,transactionVolume:q,transactionVolumeDescription:h,usNexus:O,usNexusTypes:J}=t,P={companyId:i,companyDescription:n,companyIndustry:s.selectedOption,companyIndustryType:b?.selectedOption??"",companyLegalName:_,taxIdOrEIN:k,website:E!=""&&E!=null?Xt(E):void 0,phone:r,syncToken:x,fileIds:D,incDate:j!=null?Re(j?.toString()):j,typeOfIncorporation:m?.selectedOption??"",stateOfIncorporation:$?.selectedOption??"",companySourceOfFunds:G?.selectedOption??"",companySourceOfFundsDescription:M,companySubIndustry:A?.selectedOption??"",countriesOfOperations:F?.selectedOptions.map((X=>X.length===2?X:Qe(X)))??[],purposeOfAccount:K?.selectedOption??"",purposeOfAccountDescription:Q,regulatedStatus:U??"",regulatedStatusDescription:V,transactionVolume:q?.selectedOption??"",transactionVolumeDescription:h,usNexus:O,usNexusTypes:J?.selectedOptions??[]},le={userId:v,firstName:p.firstName,lastName:p.lastName,email:g,syncToken:T};e(Le({companyDetails:P,primaryContactDetails:le}))},onAddressClick:(t,n)=>{const s=Ye(S,t,n),b=z(y.state?.pathnameStackToGoBack,y.pathname);c(s,{state:{pathnameStackToGoBack:b}})},onRegisteredAddressClick:(t,n)=>{const s=Ye(S,t,n),b=z(y.state?.pathnameStackToGoBack,y.pathname);c(s,{state:{pathnameStackToGoBack:b}})},onUpdateCustomerView:(t,n,s)=>{e(Yt(i,!1,n,s,t))},onAddressEditHandler:t=>{if(t!=null){const n=ht(t);e(ot({addressType:"subscription_billing_address",addressToCreate:n}))}},onSkipSetupClick:()=>{const t=z(y.state?.pathnameStackToGoBack,y.pathname);e(it(i,!1,!1)),c("./activation",{state:{pathnameStackToGoBack:t}})},onUpdateStep:t=>{e(at({step:t}))},onUpdateSubStep:t=>{e(Wt({subStep:t}))},onZeniLogoClick:()=>{l.toggle()},handleLogOutClick:()=>{const t=z(y.state?.pathnameStackToGoBack,y.pathname);c("/signout",{replace:!0,state:{pathnameStackToGoBack:t,message:"logout"}})},handleCockpitClick:()=>{window.open("/cockpit")},handleReferralsClick:()=>{c(`/${S}/rewards`)},handleCreateCardSetupIntent:t=>{e(nt(t))},handleConfirmCardSetupIntent:t=>{e(Jt(t))},updateCardPaymentModalState:t=>{e(de({isCardPaymentPopupOpen:t}))},handleAddCardPaymentSource:(t,n,s)=>{e(Zt(t,n,s))},handleFetchPaymentSources:()=>{e(he())},resetCardPaymentViewState:()=>{e(Ht())},handleResetCardPaymentErrorStatuses:()=>{e(qt())},redirectToProductSuitePage:()=>{const t=z(y.state?.pathnameStackToGoBack,y.pathname);c(`/${S}/onboarding/thankyou`,{state:{pathnameStackToGoBack:t,message:"OnboardingThankyou"},replace:!0})},onAcknowledgeAiFinanceTeam:()=>{i!=null&&(B.trackOnboardingAiFinanceTeamAcknowledged(),e(Kt(i)))},onIdentityDocumentUploadedForAutofill:t=>{if(i==null)return;const n=Qt(t.documentType);n!=null&&e(zt({target:"onboarding",companyId:i,officerType:t.officerType,fileId:t.fileId,documentType:n}))},onCompanyDocumentUploadedForAutofill:t=>{i!=null&&e(Mt({target:"onboarding",companyId:i,fileId:t.fileId,documentType:t.documentType}))}}}))(hn),ce=({taxCFOCustomer:e=!1,isOnAddressPage:u=!1,appContent:i})=>{const o=Ce(),l=ke(),c=ae(),y=yn(),S=rt(),[t,n]=d.useState(!1),[s,b]=d.useState(!1),[_,k]=d.useState(!1),{tenantEmailDomain:E}=Ie(),r=ct(),{useFeatureGate:g}=Te(),{isFeatureEnabled:p}=g(Z.isDebitCardFeatureEnabled),v=bt("/:tenantEmailDomain/onboarding")!==null&&l.search?.includes("code"),T=I((f=>f.onboardingCustomerViewState.fetchState)),x=I((f=>f.onboardingCustomerViewState.currentStep)),D=I((f=>f.onboardingCustomerViewState.uiState)),m=I((f=>Y(f))),$=I((f=>f.userRoleConfigState.fetchState)),j=I((f=>f.cardPaymentViewState)),G=$e(j.addCardPaymentSourceStatus.fetchState),M=j.addCardPaymentSourceStatus.fetchState,{code:A,realmId:F,state:K}=kn(l.search),Q=m.externalConnections?.accounting[0],U=Q?.connectionType,V=Q?.connectionName,q=Q?.connectionId??"",h=L.getSignedInUser()?.userId??"";d.useEffect((()=>{s||(b(!0),c(he()))}),[s,c]),d.useEffect((()=>{_||(nt(["card"]),k(!0))}),[_]),d.useEffect((()=>{G==="In-Progress"&&M==="Completed"&&c(he())}),[G,M]),d.useEffect((()=>{In(A,F,K,q,h)===!0&&m.externalConnections?.saveConnectionState!=="In-Progress"&&T==="Completed"&&(c(wt(m.tenantId,{connection_type:U??"accounting",connection_name:V??"quickbooks_online",authorization_code:A,realm_id:F,connection_id:q,user_id:h},At(window.location.origin+"/onboarding/auth"))),B.trackOnboardingSaveQBOConnection(F,q),o(l.pathname))}),[A,F,K,l.pathname,T]),d.useEffect((()=>{se.isInitiated===!1&&T==="Completed"&&se.init("/onboarding/auth",m.tenantEmailDomain)}),[T]);const O=m.companyId??L.getSignedInUserTenant(E)?.companyId,J=ue(m?.userRole??[]),P=I((f=>Oe(f,O)));d.useEffect((()=>{t||T!=="Not-Started"||O==null||(n(!0),c(Pt(O,!0,!v)))}),[t,T,O]),d.useEffect((()=>{m.externalConnections?.saveConnectionState!=="Completed"&&m.externalConnections?.saveConnectionState!=="Error"||!D.isQBOPopupOpen||x!=="connect_ledger"||c(de({isQBOPopupOpen:!1}))}),[m.externalConnections?.saveConnectionState]),d.useEffect((()=>{T==="Completed"&&v&&(c(at({step:"connect_ledger"})),c(de({isQBOPopupOpen:!0})))}),[v,T]),d.useEffect((()=>{$==="Not-Started"&&c(Dt(!0))}),[$,c]);const le=$e(P.companyDetailsLocalData?.addressStatus);d.useEffect((()=>{P.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&P.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&le==null&&c(ot({addressType:"company_registered_address",addressToCreate:P.companyDetailsLocalData?.addressStatus?.addressToCreate}))}),[P.companyDetailsLocalData?.addressStatus?.addressToCreate,P.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate]);const X=P.isInterimEmailSent,xe=L.getSignedInUser();if(xe==null)throw Error("Can't access onboarding flow without signing in...");const dt=_e(p,m),ut=ve(m),we=m.company?.companyOnboardingInfo.isOnboardingCompleted,Ae=f=>f.trackPageLoaded(be.Event.onboardingPage),Pe=m.productSettings.isOtherProductsEnabled,lt=m.productSettings.isTreasuryEnabled,De=En({tenantEmailDomain:E??"",signedInUserEmail:xe.userEmail??"",companyId:O}),je=(({companyId:f})=>{const R=ae(),ie=I((w=>w.onboardingCustomerViewState?.aiAgentsActivation)),ee=I((w=>Y(w).company?.companyOnboardingInfo?.onboardingInfo?.onboardingAiActivationInfo?.isOnboardingAiActivationViewed??!1)),pe=d.useCallback((()=>{R(Ot())}),[R]);d.useEffect((()=>{pe()}),[pe]);const Fe=d.useCallback((()=>{f==null||f===""||ee||R(Tt(f))}),[f,ee,R]),pt=d.useMemo((()=>{if(f==null||f==="")return[];const w=`private-encrypted-${f}`;return[`${w}.ledger-ingestion.counts-updated`,`${w}.ai-agents-activation.phase-changed`]}),[f]),mt=d.useCallback(((w,te)=>{if(te==null||typeof te!="object")return;const C=te;if(w!=="ledger-ingestion.counts-updated"){if(w==="ai-agents-activation.phase-changed"){const re=typeof C.phase_key=="string"?C.phase_key:typeof C.key=="string"?C.key:"",W=typeof C.status=="string"?C.status:"idle";if(re==="")return;R(xt({key:re,status:W==="starting"||W==="building"||W==="ready"?W:"idle",startedAt:typeof C.started_at=="string"?C.started_at:void 0,completedAt:typeof C.completed_at=="string"?C.completed_at:void 0}))}}else R(Et({customerCount:typeof C.customer_count=="number"?C.customer_count:void 0,glAccountCount:typeof C.gl_account_count=="number"?C.gl_account_count:void 0,targetTransactionCount:typeof C.target_transaction_count=="number"?C.target_transaction_count:void 0,transactionCount:typeof C.transaction_count=="number"?C.transaction_count:void 0,vendorCount:typeof C.vendor_count=="number"?C.vendor_count:void 0}))}),[R]);return On({events:pt,onEvent:mt,onSubscribed:pe}),d.useMemo((()=>{const w=ie?.phases??[],te=Ke(w,ge),C=Ke(w,fe),re=qe(w,ge),W=qe(w,fe),Ne=w.some((yt=>yt.status!=="idle")),ne=!ee&&!Ne,Be=ee&&!Ne,gt=Be?ge.map((()=>"building")):te,ft=Be?fe.map((()=>"building")):C;return{ledgerRowStatuses:ne?void 0:gt,backgroundRowStatuses:ne?void 0:ft,showLedgerReadyInLabel:ne?void 0:re,showBackgroundReadyInLabel:ne?void 0:W,forceContinueEnabled:!ne||void 0,counts:ie?.counts,onContinueClicked:Fe}}),[ie?.phases,ie?.counts,ee,Fe])})({companyId:O});if(we===!0){if(!Pe)return lt?a.jsx(N,{to:"../../treasury"}):dt?a.jsx(N,{to:"../../checking"}):ut?a.jsx(N,{to:"../../cards"}):a.jsx(N,{to:"../../dashboard"});const f=P.updateStatus.fetchState==="In-Progress";if(Pe&&!f)return e?a.jsxs(He,{children:[a.jsx(oe,{analytics:B,onLoad:R=>Ae(R)}),a.jsx(Je,{navigate:o,location:l,companyId:O,currentTenant:m,isAdmin:J,isOnAddressPage:u,themeState:S,googleAPIKey:Se.googleMapsAPIKey,integrationsSectionProps:De,aiAgentsActivationProps:je}),i!=null?a.jsx(Ze,{windowSize:y,skipLegacyDrawerOffset:u&&m.productSettings.isOtherProductsEnabled!==!0,children:i}):null]}):a.jsx(N,{to:"../../onboarding/thankyou"})}else if(we===!1&&r?.loggedInUserRoleMap!=null)return X===!0?a.jsx(N,{to:"../../onboarding/thankyou"}):a.jsxs(He,{children:[a.jsx(oe,{analytics:B,onLoad:f=>Ae(f)}),a.jsx(Je,{navigate:o,location:l,companyId:O,currentTenant:m,isAdmin:J,isOnAddressPage:u,themeState:S,googleAPIKey:Se.googleMapsAPIKey,integrationsSectionProps:De,aiAgentsActivationProps:je}),i!=null?a.jsx(Ze,{windowSize:y,skipLegacyDrawerOffset:u&&m.productSettings.isOtherProductsEnabled!==!0,children:i}):null]});return null},ye="external_integrations",En=({tenantEmailDomain:e,signedInUserEmail:u,companyId:i})=>{const o=ae(),{pendingAutoFocusTabId:l}=_n(),{plaidAccounts:c,onAddPlaidAccount:y}=vn({companyId:i}),S=I((r=>r.plaidAccountViewState.external_account.plaidConnectionDetails)),t=I((r=>Y(r))),n=I((r=>r.tenantState.fetchState)),s=I((r=>jt(r,i))),b=I((r=>Ft(r,ye))),_=d.useMemo((()=>new Set(b.map((r=>r.additionalInfo)).filter((r=>r!=null)))),[b]),k=t.tenantId,E=ue(t.userRole??[]);return d.useEffect((()=>{o(Nt(ye))}),[o]),d.useMemo((()=>({isAdmin:E,integrationsView:s,isLoading:n==="In-Progress",notifyMeRegisteredSlugs:_,autoFocusTabId:l??void 0,saveChargeBeeState:s.externalConnections?.saveAPIKeyConnectionState??"Not-Started",saveChargeBeeError:s.externalConnections?.saveAPIKeyConnectionError?.message,saveHubSpotState:s.externalConnections?.saveOAuthConnectionState??"Not-Started",saveHubSpotError:s.externalConnections?.saveOAuthConnectionError?.message,saveConnectorCredentialsStateBySlug:s.externalConnections?.saveConnectorCredentialsStateBySlug??{},saveConnectorCredentialsErrorBySlug:Object.fromEntries(Object.entries(s.externalConnections?.saveConnectorCredentialsErrorBySlug??{}).map((([r,g])=>[r,g?.message]))),deleteConnectionState:s.externalConnections?.deleteConnectionState??"Not-Started",deleteConnectionError:s.externalConnections?.deleteConnectionError?.message,onConnectGmail:()=>{o(Ve(k,"gmail",We()))},onConnectOutlook:()=>{o(Ve(k,"outlook",We()))},onConnectHubSpot:(r,g)=>{const p=s.externalConnections?.revenue?.find((T=>T.connectionName==="hubspot"))?.connectionId;if(p==null)return;const v=`${window.location.origin}/oauth/hubspot/callback`;sessionStorage.setItem("hubspot_oauth_pending",JSON.stringify({client_id:r,client_secret:g,connection_id:p,redirect_uri:v,tenant_id:k})),window.location.href=`https://app.hubspot.com/oauth/authorize?client_id=${encodeURIComponent(r)}&scope=${encodeURIComponent("oauth crm.objects.deals.read crm.objects.owners.read")}&redirect_uri=${encodeURIComponent(v)}`},onDisconnect:(r,g)=>{o($t(k,r,me(g)))},onNotifyMe:r=>{B.trackIntegrationsNotifyMeClicked("Onboarding",r),o(Lt(ye,r,u))},onReconnectQBO:()=>{se.init("/onboarding/auth",e),se.handleClick()},onRefreshClick:()=>{s.integrations.refreshQBO.fetchState!=="In-Progress"&&o(Rt())},onSaveChargeBeeCredentials:(r,g)=>{const p=s.externalConnections?.revenue?.find((v=>v.connectionName==="chargebee"))?.connectionId;p!=null&&o(Ut(k,p,me("revenue"),Vt("chargebee"),{api_key:r,site:g}))},onSaveConnectorCredentials:r=>{o(Bt(k,me("payments"),r))},plaidAccounts:c,onAddPlaidAccount:y,plaidConnectionDetails:S})),[E,s,n,_,l,k,u,e,o,c,y,S])};function We(){const e=new URL(window.location.href);return e.searchParams.set("onboarding_step","connect_data_source"),e.toString()}function Ye(e,u,i){let o=`/${e}/onboarding/address`;return o=i!=null?o.concat(`/edit/${u}/${encodeURIComponent(i)}`):o.concat(`/new/${u}`),o}const Xe=Ee.div`
|
|
27
27
|
display: flex;
|
|
28
28
|
height: 100vh;
|
|
29
29
|
background-color: ${e=>e.theme.colors.grey4};
|
|
30
|
-
`,et=tt((function(e,u){const{companyId:i,currentTenant:o}=u,l=
|
|
30
|
+
`,et=tt((function(e,u){const{companyId:i,currentTenant:o}=u,l=Oe(e,i),c=st(e);return{hasVerifiedBankAccount:(l.paymentAccount?.providerVerificationStatus?.code?.includes("verified")??!1)||(c.bankAccountsList[0]?.providerVerificationStatus?.code?.includes("verified")??!1),isDisabled:ue(o?.userRole??[])&&l.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",signedInUser:L.getSignedInUser(),currentTenant:o,meetingUrl:"https://meetings.hubspot.com/niharn/zeni-onboarding-overview?embed=true"}}),(function(e,u){const{currentTenant:i,themeState:o,navigate:l,location:c}=u,{tenantEmailDomain:y}=i;return{onZeniLogoClick:()=>{o.toggle()},handleLogOutClick:()=>{const S=z(c.state?.pathnameStackToGoBack,c.pathname);l("/signout",{replace:!0,state:{pathnameStackToGoBack:S,message:"logout"}})},handleCockpitClick:()=>{window.open("/cockpit")},handleReferralsClick:()=>{l(`/${y}/rewards`)},handleUpdatePaymentAddressDetailClick:()=>{const S=z(c.state?.pathnameStackToGoBack,c.pathname);l(`/${y}/onboarding/billing/edit`,{state:{pathnameStackToGoBack:S,message:"UpdatePaymentAddressDetail"}})}}}))(Cn),xn=()=>{const e=Ce(),u=ae(),i=ke(),o=rt(),{useFeatureGate:l}=Te(),{isFeatureEnabled:c}=l(Z.isDebitCardFeatureEnabled),{tenantEmailDomain:y}=Ie(),S=ct(),[t,n]=d.useState(!1);d.useEffect((()=>{t===!1&&i.state?.message==="OnboardingThankyou"&&n(!0)}),[i.state]);const s=I((p=>Y(p))),b=s.productSettings.isOtherProductsEnabled;d.useEffect((()=>{u(it(_,!1,!b))}),[]);const _=s.companyId??L.getSignedInUserTenant(y)?.companyId;if(S.loggedInUser==null)throw Error("Can't access onboarding flow without signing in...");const k=_e(c,s),E=ve(s),r=I((p=>p.onboardingCustomerViewState.updateStatus.fetchState)),g=s.company?.companyOnboardingInfo.isOnboardingCompleted;if(g!==!0||b)return r==="Completed"&&g===!0&&b&&S?.loggedInUserRoleMap!=null?a.jsxs(Xe,{children:[a.jsx(oe,{analytics:B,onLoad:p=>{p.trackPageLoaded(be.Event.onboardingLandingPage,"Onboarding",mn(s.productSettings))}}),a.jsx(et,{navigate:e,showUpdatePaymentDetailButton:b,location:i,companyId:_,currentTenant:s,themeState:o,isVisitingFirstTime:t})]}):r==="Completed"&&g===!1&&S?.loggedInUserRoleMap!=null?a.jsxs(Xe,{children:[a.jsx(oe,{analytics:B,onLoad:p=>{p.trackPageLoaded(be.Event.onboardingInterimPage)}}),a.jsx(et,{navigate:e,showUpdatePaymentDetailButton:b,location:i,companyId:_,currentTenant:s,themeState:o,isVisitingFirstTime:t})]}):a.jsx(bn,{});{const p={pathnameStackToGoBack:i.state?.pathnameStackToGoBack,message:"activation"};return k?a.jsx(N,{to:"../../checking",state:p,replace:!0}):E?a.jsx(N,{to:"../../cards",state:p,replace:!0}):a.jsx(N,{to:"../../dashboard",state:p,replace:!0})}};function ta(){return a.jsxs(Ct,{children:[a.jsx(H,{path:"/",element:a.jsx(ce,{})}),a.jsx(H,{path:"/billing/edit",element:a.jsx(ce,{taxCFOCustomer:!0})}),a.jsx(H,{path:"/thankyou",element:a.jsx(xn,{})}),a.jsx(H,{path:"/activation",element:a.jsx(Tn,{})}),a.jsx(H,{path:"/address/edit/:addressType/:addressId",element:a.jsx(ce,{isOnAddressPage:!0,appContent:a.jsx(Ue,{})})}),a.jsx(H,{path:"/address/new/:addressType",element:a.jsx(ce,{isOnAddressPage:!0,appContent:a.jsx(Ue,{})})}),a.jsx(H,{path:"*",element:a.jsx(St,{})})]})}export{ta as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as d}from"./liveblocks-0jcT8Dx_.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 F,N as Dn}from"./core-DrRun-Wp.js";import{eZ as U,NH as We,bE as ia,bo as Pe,OV as Fn,j8 as On,OW as Kt,OX as Rn,jb as Ct,OY as Ze,OZ as Bn,jg as jn,O_ as qt,O$ as Mn,jk as kt,P0 as Qe,P1 as Ln,cq as yt,P2 as Un,P3 as Gn,N$ as Vn,kc as Nn,P4 as Yn,bn as Xe,P5 as ca,Nv as ce,bc as la,kq as da,oq as ua,k9 as ma,Nx as le,Nw as J,eY as pa,fu as $n,g5 as _t,P6 as zn,P7 as Kn,P8 as ha,P9 as Fe,wc as Me,wd as Le,wA as we,wu as de,wh as Ue,Pa as qn,Pb as Zn,Pc as Qn,Pd as fa,Pe as Oe,Pf as Hn,dI as Je,sw as ga,Pg as Wn,Ph as Xn,Pi as Jn,Pj as vt,MN as At,kG as xe,wI as It,sE as eo,Pk as to,we as Zt,sz as Ee,sv as ba,Pl as ge,Pm as ao,Pn as Et,MM as Tt,uD as Ca,Po as no,Pp as oo,Pq as so,Pr as Pt,uT as ro,Ps as io,wg as Qt,uC as ka,Pt as be,Pu as co,bs as _a,wM as Sa,Pv as lo,Pw as uo,Px as mo,Py as wt,wH as po,Pz as ho,wf as Ht,wL as ya,PA as Ce,PB as fo,PC as go,PD as va,kv as Aa,on as Ia,kA as Ea,ol as Ta,ok as Pa,oj as wa,t$ as bo,PE as Co,cU as ko,cV as _o,og as So,fU as yo,ox as vo,GZ as dt,GR as Ao,GV as Io,PF as Eo,PG as To,PH as Po,b5 as et,fM as wo,hN as xo,gn as Do,or as Fo,k2 as Oo,oo as Ro,om as Bo,fG as jo,fE as Mo}from"./zeni-epic-state-D1OApLJ3.js";import{z as M,a4 as te,w,g as T,O as q,a_ as Lo,a0 as Ge,E as Ve,a$ as xa,j as N,b0 as Uo,f as _e,b1 as Da,A as Se,c as B,y as Go,b2 as Vo,b3 as No,Z as Fa,J as Oa,a as Ra,$ as Yo,b4 as $o,U as zo,aS as Ba,a1 as se,b5 as ja,b6 as Ma,a3 as La,b7 as Ko,b8 as qo,i as Zo,ar as Qo,s as Ho,_ as Wo,b9 as Xo,ba as Jo,bb as es,bc as ts,bd as ke}from"./index-CdzL9szH.js";import{n as xt}from"./mui-BCzMCgwZ.js";import{a as b}from"./sentry-Cix5j_Oe.js";import{w as Ua}from"./withTransactionSidePanel-B_GhVWS9.js";import{c as Ga,t as De,f as ue,a as Dt,v as as}from"./routePaths-CHhQNN3M.js";import{u as ae}from"./useAskAiCfoHostNavButtonProps-fe0P1a5j.js";import je from"./NotFoundScreen-1FWTFg5q.js";import{u as Ft}from"./useInitialThreadRequest-E7aaQNIx.js";import{t as Va}from"./analyticsHelper-BaOtwD25.js";import{C as ns}from"./CompanyPassportScreen-CzLA5zCy.js";import{u as os}from"./useAiCfoDashboardSuggestedQuestionsChips-rxliwAgH.js";import{F as ss}from"./FeaturePreviewScreen-IYXzvJjG.js";import"./recharts-BJColP3b.js";import"./analytics-CO5gayAE.js";import"./plaid-B0k6aBM1.js";import"./dnd-C7lg2kUY.js";import"./stripe-cKAAJElX.js";import"./lottie-C4eBAM7n.js";import"./lexical-Cceo9d8G.js";import"./pdf-C1ioMmzA.js";import"./utils-CvfvTDv6.js";import"./TransactionDetailScreen-BXByY28g.js";import"./decodeURIComponentSafe-BqXEXApE.js";import"./MobileAppDrawer-7KFASJmR.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]="0f8adf37-91b8-4864-ac7a-680024847ab8",e._sentryDebugIdIdentifier="sentry-dbid-0f8adf37-91b8-4864-ac7a-680024847ab8")}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):Pe()),[r]),p=$(),f=W(),S=_((I=>Fn(I,h,o))),E=b.useCallback((()=>{o!=null&&S.fetchState!=="In-Progress"&&S.fetchState!=="Completed"&&p(On(o,h))}),[h]),v=b.useCallback((()=>{f("../../",{relative:"path"})}),[]),k=b.useCallback(((I,L)=>{p(Kt({sortKey:I,sortOrder:L}))}),[]),P=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:P,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??Pe(),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,P)=>{e(Ze({sortKey:P,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,P)=>{}),[]),v=b.useCallback(((k,P)=>{e(Ze({selectedDate:k,agingDateSelectionType:P})),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):Pe()),[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}))}),[]),P=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:P,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??Pe(),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=De(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)(Da),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)(Da);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-C8AAaKDR.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 F,N as Dn}from"./core-Da6TLrNx.js";import{eZ as U,NH as We,bE as ia,bo as Pe,OV as Fn,j8 as On,OW as Kt,OX as Rn,jb as Ct,OY as Ze,OZ as Bn,jg as jn,O_ as qt,O$ as Mn,jk as kt,P0 as Qe,P1 as Ln,cq as yt,P2 as Un,P3 as Gn,N$ as Vn,kc as Nn,P4 as Yn,bn as Xe,P5 as ca,Nv as ce,bc as la,kq as da,oq as ua,k9 as ma,Nx as le,Nw as J,eY as pa,fu as $n,g5 as _t,P6 as zn,P7 as Kn,P8 as ha,P9 as Fe,wc as Me,wd as Le,wA as we,wu as de,wh as Ue,Pa as qn,Pb as Zn,Pc as Qn,Pd as fa,Pe as Oe,Pf as Hn,dI as Je,sw as ga,Pg as Wn,Ph as Xn,Pi as Jn,Pj as vt,MN as At,kG as xe,wI as It,sE as eo,Pk as to,we as Zt,sz as Ee,sv as ba,Pl as ge,Pm as ao,Pn as Et,MM as Tt,uD as Ca,Po as no,Pp as oo,Pq as so,Pr as Pt,uT as ro,Ps as io,wg as Qt,uC as ka,Pt as be,Pu as co,bs as _a,wM as Sa,Pv as lo,Pw as uo,Px as mo,Py as wt,wH as po,Pz as ho,wf as Ht,wL as ya,PA as Ce,PB as fo,PC as go,PD as va,kv as Aa,on as Ia,kA as Ea,ol as Ta,ok as Pa,oj as wa,t$ as bo,PE as Co,cU as ko,cV as _o,og as So,fU as yo,ox as vo,GZ as dt,GR as Ao,GV as Io,PF as Eo,PG as To,PH as Po,b5 as et,fM as wo,hN as xo,gn as Do,or as Fo,k2 as Oo,oo as Ro,om as Bo,fG as jo,fE as Mo}from"./zeni-epic-state-BqRlfhza.js";import{z as M,a4 as te,v as w,e as T,O as q,a_ as Lo,a0 as Ge,E as Ve,a$ as xa,g as N,b0 as Uo,d as _e,b1 as Da,A as Se,c as B,y as Go,b2 as Vo,b3 as No,Y as Fa,J as Oa,a as Ra,_ as Yo,b4 as $o,W as zo,aS as Ba,a1 as se,b5 as ja,b6 as Ma,a3 as La,b7 as Ko,b8 as qo,n 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-Bwczg7nO.js";import{n as xt}from"./mui-CosLSKUu.js";import{a as b}from"./sentry-DfheywaX.js";import{w as Ua}from"./withTransactionSidePanel-ZJmA3F8P.js";import{c as Ga,t as De,f as ue,a as Dt,v as as}from"./routePaths-Kh8F22Sq.js";import{u as ae}from"./useAskAiCfoHostNavButtonProps-vhjzTbBd.js";import je from"./NotFoundScreen-vodaR6J5.js";import{u as Ft}from"./useInitialThreadRequest-CRJnx1_Z.js";import{t as Va}from"./analyticsHelper-C7Ffbo_X.js";import{C as ns}from"./CompanyPassportScreen-BsHZnsQV.js";import{u as os}from"./useAiCfoDashboardSuggestedQuestionsChips-Dn_pRt3Y.js";import{F as ss}from"./FeaturePreviewScreen-BKSMrhrm.js";import"./recharts-9jMEgSjc.js";import"./analytics-D_NuuF2U.js";import"./plaid-2mv_ck83.js";import"./dnd-DC_qF3Wr.js";import"./stripe-cKAAJElX.js";import"./lottie-B7_cpoe1.js";import"./lexical-CQoPutFC.js";import"./pdf-CQB-J2hc.js";import"./utils-BykfwIo5.js";import"./TransactionDetailScreen-tCFIjsQZ.js";import"./decodeURIComponentSafe-B-r3T5bV.js";import"./MobileAppDrawer-D_5ajcgl.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]="e6736252-3bdb-4a35-b070-b04f4d075214",e._sentryDebugIdIdentifier="sentry-dbid-e6736252-3bdb-4a35-b070-b04f4d075214")}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):Pe()),[r]),p=$(),f=W(),S=_((I=>Fn(I,h,o))),E=b.useCallback((()=>{o!=null&&S.fetchState!=="In-Progress"&&S.fetchState!=="Completed"&&p(On(o,h))}),[h]),v=b.useCallback((()=>{f("../../",{relative:"path"})}),[]),k=b.useCallback(((I,L)=>{p(Kt({sortKey:I,sortOrder:L}))}),[]),P=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:P,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??Pe(),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,P)=>{e(Ze({sortKey:P,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,P)=>{}),[]),v=b.useCallback(((k,P)=>{e(Ze({selectedDate:k,agingDateSelectionType:P})),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):Pe()),[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}))}),[]),P=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:P,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??Pe(),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=De(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)(Da),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)(Da);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-C8AAaKDR.js";import{a as u}from"./sentry-DfheywaX.js";import{u as y,j as b,n as w,g as A,N}from"./core-Da6TLrNx.js";import{Mf as U,eZ as _,g3 as k,Mg as L,oi as R,Mh as z}from"./zeni-epic-state-BqRlfhza.js";import{u as O,z as f,L as T,t as I,O as j,b as $}from"./index-Bwczg7nO.js";import"./mui-CosLSKUu.js";import{t as P}from"./getLocaleForTenant-CnNopwIO.js";import"./recharts-9jMEgSjc.js";import"./analytics-D_NuuF2U.js";import"./plaid-2mv_ck83.js";import"./dnd-DC_qF3Wr.js";import"./stripe-cKAAJElX.js";import"./lottie-B7_cpoe1.js";import"./lexical-CQoPutFC.js";import"./pdf-CQB-J2hc.js";import"./utils-BykfwIo5.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]="629357ad-2f1f-43ad-9e60-676a80845bdc",t._sentryDebugIdIdentifier="sentry-dbid-629357ad-2f1f-43ad-9e60-676a80845bdc")}catch{}})();const M=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(N,{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}=O(),h=u.useRef(!1),r=u.useRef(!1),p=u.useRef(null),m=b((e=>U(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(k(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"&&!L(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||(j.updateAppLocaleID(P(c)),o())}),[n,a,c]),v.jsx(M,{})}const Q=["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 Q)if(t.toLocaleLowerCase().includes(s))return q[s]}export{oe as default};
|
package/dist/assets/{DomesticWireDetailScreen-C-1bKP7r.js → DomesticWireDetailScreen-C7-Ze-bQ.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as l}from"./liveblocks-
|
|
1
|
+
import{j as l}from"./liveblocks-C8AAaKDR.js";import{h as w,g as C,j as h,n as A,i as B}from"./core-Da6TLrNx.js";import{Qm as k,Qt as _,gl as W,gk as J,gj as q,jD as K,Nw as L,rP as M,eZ as D,PU as V,jB as j,Qn as v,Qw as T,jz as F,jW as G}from"./zeni-epic-state-BqRlfhza.js";import{bz as X,J as N,A as R,z as U,y as z,r as p,c as S,D as Z,bA as Y,o as O,bB as ee,v as te}from"./index-Bwczg7nO.js";import{n as Q}from"./mui-CosLSKUu.js";import"./sentry-DfheywaX.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]="4f11b4ac-0e14-45fb-9ba1-fb7c0b9ec9f9",e._sentryDebugIdIdentifier="sentry-dbid-4f11b4ac-0e14-45fb-9ba1-fb7c0b9ec9f9")}catch{}})();const ne=A(null,(function(e,t){return{onSaveVendor:n=>{e(K(t.vendorId!==void 0?t.vendorId:void 0,t.billId,void 0,t.isExpressPayPage)),e(L("common")),n!=null&&e(M(n))},onGetOtp:n=>{e(q(n,"BillPayVendor"))},onResendOtp:n=>{e(J(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((r=>k(r,e)));return l.jsx(ne,{location:o,navigate:a,vendorId:e,billId:t,vendorViewDetails:s,isExpressPayPage:n??!1})}const ae=Q.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100vh;
|
|
4
4
|
width: 100%;
|
|
@@ -6,7 +6,7 @@ import{j as l}from"./liveblocks-0jcT8Dx_.js";import{h as y,g as C,j as h,n as A,
|
|
|
6
6
|
flex-direction: column;
|
|
7
7
|
align-items: center;
|
|
8
8
|
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`,oe=A((function(e,t){const{vendorId:n,billId:a}=t,o=k(e,n),s=V(e,t.isVendorRecommendationEnabled,t.isZeniAccountsFeatureEnabled,a);return{billId:a,isDisabled:o.bankAccountCreationState.fetchState==="In-Progress"?"readonly":void 0,vendorViewDetails:o,file:s.file,bankAccountContext:t.bankAccountContext}}),(function(e,t){const{navigate:n,location:a,vendorId:o}=t;return{onFetchBankName:s=>{e(G(s))},onSaveHandler:s=>{e(F(t.bankAccountContext,s,"standard",o))},onCancel:()=>{(()=>{const s=p(a.state?.pathnameStackToGoBack),
|
|
9
|
+
`,oe=A((function(e,t){const{vendorId:n,billId:a}=t,o=k(e,n),s=V(e,t.isVendorRecommendationEnabled,t.isZeniAccountsFeatureEnabled,a);return{billId:a,isDisabled:o.bankAccountCreationState.fetchState==="In-Progress"?"readonly":void 0,vendorViewDetails:o,file:s.file,bankAccountContext:t.bankAccountContext}}),(function(e,t){const{navigate:n,location:a,vendorId:o}=t;return{onFetchBankName:s=>{e(G(s))},onSaveHandler:s=>{e(F(t.bankAccountContext,s,"standard",o))},onCancel:()=>{(()=>{const s=p(a.state?.pathnameStackToGoBack),r=s.poppedPathname??P();n(r,{state:{pathnameStackToGoBack:s.newStack}})})(),e(v())},onACHDetailsUpdated:s=>{const{bankAccountSection:r}=s;e(T({data:r}))},onBackClick:()=>{if(e(j({fetchState:"Not-Started"})),t.bankAccountContext==="express-pay")n("../",{relative:"path"});else{const s=p(t.location.state?.pathnameStackToGoBack),r=s.poppedPathname??P(0);t.navigate(r,{state:{pathnameStackToGoBack:s.newStack}})}e(v())}}}))(Y);function fe({vendorIdParam:e,accountContext:t}){const n=w(),a=C(),o=N(),{vendorId:s,billId:r}=B(),d=e??s,{useFeatureGate:c}=R(),i=U.getSignedInUser(),b=h((u=>D(u))),g=z(),x=p(a.state?.pathnameStackToGoBack),f=t??(x.poppedPathname?.includes("vendor")===!0?"vendor":"billDetail"),m=h((u=>k(u,d))),{isFeatureEnabled:I}=c(S.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:y}=c(S.isDepositAccountsFeatureEnabled);if(i==null)throw Error("Can't access address page without signing in...");return f==="billDetail"&&m.editVendorState?.saveStatus.fetchState==="In-Progress"?l.jsx(Z,{fetchState:m.editVendorState?.saveStatus.fetchState??"Not-Started",style:{backgroundColor:g.colors.grey5}}):l.jsxs(ae,{windowSize:o,children:[l.jsx(H,{vendorId:d,billId:r}),l.jsx(oe,{location:a,navigate:n,billId:r,vendorId:d,currentTenant:b,bankAccountContext:f,isVendorRecommendationEnabled:I,isZeniAccountsFeatureEnabled:y})]})}const P=(e=2)=>{let t="../";for(let n=0;n<e;n++)t=`${t}../`;return t},me=(e,t,n)=>{let a=`/${e}/bill/${encodeURIComponent(t)}`;return n=="draft"&&(a+="/edit"),a},he=e=>`/${e}/bills`,ke=(e,t)=>{let n=`/${e}/bill`;return n=t!=null?n.concat(`/${t}/edit`):n.concat("/new"),n},E=(e,t,n,a)=>{let o=`/${e}/bill`;return o+=n!=null?`/${n}/edit/vendor`:"/new/vendor",o+=a!=null?`/${a}/edit/${t}`:`/create/${t}`,o};function ve(e,t,n){return E(e,"ach",t,n)}function Se(e,t,n){return E(e,"domestic",t,n)}function ge(e,t,n){return E(e,"international",t,n)}const se=(e,t,n)=>{let a=`/${e}/bill/`;return a=n!=null?a.concat(`${encodeURIComponent(n)}/${t}/`):a.concat(`new/${t}/`),a},ce=Q.div`
|
|
10
10
|
display: flex;
|
|
11
11
|
height: 100vh;
|
|
12
12
|
width: 100%;
|
|
@@ -15,4 +15,4 @@ import{j as l}from"./liveblocks-0jcT8Dx_.js";import{h as y,g as C,j as h,n as A,
|
|
|
15
15
|
align-items: center;
|
|
16
16
|
background-color: ${e=>e.theme.colors.grey4};
|
|
17
17
|
box-shadow: ${e=>`0px 2px ${O.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
18
|
-
`,
|
|
18
|
+
`,re=A((function(e,t){const{vendorId:n,billId:a}=t,o=k(e,n),s=V(e,t.isVendorRecommendationEnabled,t.isZeniAccountsFeatureEnabled,a);return{billId:a,isDisabled:o.bankAccountCreationState.fetchState==="In-Progress"?"readonly":void 0,vendorViewDetails:o,file:s.file,bankAccountContext:t.bankAccountContext}}),(function(e,t){const{billId:n,navigate:a,location:o,vendorId:s,currentTenant:r}=t,{tenantEmailDomain:d}=r;return{onFetchBankName:c=>{e(G(c))},onSaveHandler:c=>{e(F(t.bankAccountContext,c,"us-domestic",s))},onWireDetailsUpdated:c=>{const{bankAccountSection:i}=c;e(T({data:i}))},onCancel:()=>{(()=>{const c=p(o.state?.pathnameStackToGoBack),i=c.poppedPathname??$();a(i,{state:{pathnameStackToGoBack:c.newStack}})})(),e(v())},onAddressClick:c=>{if(t.bankAccountContext==="express-pay")a("./add-address");else{const i=se(d,c,n),b=te(o.state?.pathnameStackToGoBack,o.pathname);a(i,{state:{pathnameStackToGoBack:b}})}},onBackClick:()=>{if(e(j({fetchState:"Not-Started"})),t.bankAccountContext==="express-pay")a("../",{relative:"path"});else{const c=p(t.location.state?.pathnameStackToGoBack),i=c.poppedPathname??$(0);t.navigate(i,{state:{pathnameStackToGoBack:c.newStack}})}e(v())}}}))(ee);function xe({vendorIdParam:e,accountContext:t}){const n=w(),a=C(),o=N(),{vendorId:s,billId:r}=B(),d=e??s,c=U.getSignedInUser(),{useFeatureGate:i}=R(),b=z(),g=h((u=>D(u))),x=p(a.state?.pathnameStackToGoBack),f=t??(x.poppedPathname?.includes("vendor")===!0?"vendor":"billDetail"),m=h((u=>k(u,d))),{isFeatureEnabled:I}=i(S.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:y}=i(S.isDepositAccountsFeatureEnabled);if(c==null)throw Error("Can't access address page without signing in...");return f==="billDetail"&&m.editVendorState?.saveStatus.fetchState==="In-Progress"?l.jsx(Z,{fetchState:m.editVendorState?.saveStatus.fetchState??"Not-Started",style:{backgroundColor:b.colors.grey5,boxShadow:`0px 2px ${O.sp1} ${b.colors.dropShadowNormal}`}}):l.jsxs(ce,{windowSize:o,children:[l.jsx(H,{vendorId:d,billId:r}),l.jsx(re,{location:a,navigate:n,billId:r,vendorId:d,currentTenant:g,bankAccountContext:f,isVendorRecommendationEnabled:I,isZeniAccountsFeatureEnabled:y})]})}const $=(e=2)=>{let t="../";for(let n=0;n<e;n++)t=`${t}../`;return t};export{fe as A,xe as D,H as V,me as a,se as b,ke as c,Se as d,he as g,ge as i,ve as v};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-
|
|
1
|
+
import{j as i}from"./liveblocks-C8AAaKDR.js";import{J as c,H as f,y as l}from"./index-Bwczg7nO.js";import{D as b}from"./mui-CosLSKUu.js";import"./sentry-DfheywaX.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]="319c5930-e5fb-4b9b-9fc6-117cfd4193ad",e._sentryDebugIdIdentifier="sentry-dbid-319c5930-e5fb-4b9b-9fc6-117cfd4193ad")}catch{}})();const p={drawerLeftMargin:new f(0,0,240)};function h(e){const{isOpen:r,drawerLeftMargin:o,children:t,onClose:s}=e,n=c(),a=o?.valuePx(n)??p.drawerLeftMargin.valuePx(n),d=l();return i.jsx(b,{anchor:"right",open:r,PaperProps:{style:{width:`calc(100% - ${a})`}},slotProps:{backdrop:{style:{backgroundColor:d.colors.black,opacity:.8,cursor:"pointer"}}},onClose:s,children:t})}export{h as D};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as s}from"./liveblocks-C8AAaKDR.js";import{a as d}from"./sentry-DfheywaX.js";import{h as j,u as A,g as N,i as B,j as l,N as q,n as F,o as _,p as K}from"./core-Da6TLrNx.js";import{OE as z,eZ as M,O0 as R,lG as W,Kx as I,OJ as Y,Nv as $,kG as J,Ky as S,O5 as V,O6 as X,Nx as Z,Nw as H}from"./zeni-epic-state-BqRlfhza.js";import{aX as L,e as Q,r as U,v as tt}from"./index-Bwczg7nO.js";import"./mui-CosLSKUu.js";import{d as k}from"./decodeURIComponentSafe-B-r3T5bV.js";import{w as et}from"./withTransactionSidePanel-ZJmA3F8P.js";import{f as at,c as nt}from"./routePaths-Kh8F22Sq.js";import"./recharts-9jMEgSjc.js";import"./analytics-D_NuuF2U.js";import"./plaid-2mv_ck83.js";import"./dnd-DC_qF3Wr.js";import"./stripe-cKAAJElX.js";import"./lottie-B7_cpoe1.js";import"./lexical-CQoPutFC.js";import"./pdf-CQB-J2hc.js";import"./utils-BykfwIo5.js";import"./useAskAiCfoHostNavButtonProps-vhjzTbBd.js";import"./TransactionDetailScreen-tCFIjsQZ.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]="6115199c-4e85-4559-b606-48d64a7926e5",a._sentryDebugIdIdentifier="sentry-dbid-6115199c-4e85-4559-b606-48d64a7926e5")}catch{}})();const ot=F((function(a,t){const e=t.entity,o=Y(a,t.entity,"EntityDetail");return{selectedEntity:e,autoCompleteData:{autoCompleteText:e.name,entityAutoCompleteView:$(a,"common")},trendWithTransactionsReport:o,analytics:Q,isAccountingClassesEnabled:J(a)}}),(function(a,t){return{onTransactionItemClick:e=>{if(t.openTransactionPanel)return void t.openTransactionPanel(e.id,e.type);const o=`${nt(e,t.tenantEmailDomain)}`,c=tt(t.location.state?.pathnameStackToGoBack,t.location.pathname);t.navigate(o,{state:{pathnameStackToGoBack:c}})},autoCompleteActions:{onAutoCompleteInputChange:e=>{e.trim().length>=2?a(Z({searchString:e,searchOrigin:"common"})):e.trim().length===0&&a(H("common"))},onAutoCompleteEntity:e=>{const o=at(e,t.tenantEmailDomain);a(V()),a(X()),t.resetTrendIsFetchedStates(),t.navigate(o,{replace:!0,state:{pathnameStackToGoBack:t.location.state?.pathnameStackToGoBack}})},onCancelAutoComplete:()=>{const e=U(t.location.state?.pathnameStackToGoBack),o=e.poppedPathname??C();t.navigate(o,{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 o=e.currentTimePeriod==null?e.addTimePeriod:{startDate:e.addTimePeriod.startDate,endDate:e.currentTimePeriod.endDate};a(I(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:e.addTimePeriod})),a(S(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:o}))}}}}))(L),it=et((function({entityType:a,...t}){const e=j(),o=A(),c=N(),[m,T]=d.useState(!1),[h,D]=d.useState(!1),{tenantEmailDomain:b,entityIdEncoded:x,entityNameEncoded:v}=B(),r=k(x??""),p=k(v??""),u=rt(r,p),w=[r,p].filter((n=>n!=null)),i={name:p,id:r,type:a,zeniId:r,qboId:r},g=l((n=>z(n.customerIncomeState,n.vendorExpenseState,n.trendState,i,"quarter"))),G=l((n=>M(n).company?.companyInfo.firstMonthOfFY??1)),f=l((n=>R(n.trendWithTransactionsState,i,"EntityDetail")));d.useEffect((()=>{m===!1&&u===!0&&(T(!0),o(W(i)))}),[m,u,i]);const E=l((n=>n.trendState.fetchState)),P=f?.selectedPeriod?.timePeriod??g,O=(function(n,y){return n!=null&&y!=null?{startDate:n.startDate,endDate:y?.endDate}:y})(f?.selectedPeriod?.timePeriod,g);return d.useEffect((()=>{m===!0&&h===!1&&E==="Completed"&&(D(!0),P!=null&&o(I(i,"EntityDetail",{timeframe:f?.selectedPeriod?.timeframe??"quarter",timePeriod:P})))}),[m,h,E]),u?s.jsx(ot,{firstMonthOfFY:G,tenantEmailDomain:b,location:c,navigate:e,entity:i,defaultTransactionTimePeriod:O,resetTrendIsFetchedStates:()=>{T(!1),D(!1)},...t}):s.jsx(q,{to:C(w.length)})})),rt=(a,t)=>t!=null&&t.length>0&&a!=null&&a.length>0,C=(a=2)=>{let t="../";for(let e=0;e<a;e++)t=`${t}../`;return t};function xt({entityType:a}){return s.jsx(_,{children:s.jsx(K,{path:"/:entityIdEncoded/:entityNameEncoded/*",element:s.jsx(it,{entityType:a})})})}export{xt as EntityDetailRoutes,xt as default};
|
package/dist/assets/{ExpenseAutomationRoutes-DcYqfqSi.js → ExpenseAutomationRoutes-NkkbpV7S.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as S}from"./liveblocks-
|
|
1
|
+
import{j as S}from"./liveblocks-C8AAaKDR.js";import da from"./NotFoundScreen-vodaR6J5.js";import{a,b as tn}from"./sentry-DfheywaX.js";import{n as Ge,S as ua}from"./mui-CosLSKUu.js";import{u as ke,h as nn,g as st,j as x,n as ma,i as Bt,o as pa,p as et}from"./core-Da6TLrNx.js";import{eZ as Me,Tk as ha,os as we,f_ as ga,sq as Ca,Tl as tt,fB as Le,Tm as Vt,ei as Sa,fk as fa,Tn as Ot,To as Oe,pa as Ia,Tp as ka,pr as Ea,oK as an,oI as re,Tq as on,Tr as Ta,p3 as sn,pl as ba,Ts as cn,oD as ya,rY as va,fL as Ae,Tt as je,uw as ln,ES as rn,Tu as dn,Tv as Pa,rw as ct,OF as zt,OH as Aa,kJ as wa,OI as Ra,kQ as xa,c_ as Da,vM as it,oQ as un,pv as $e,p6 as Fa,Tw as _a,Nx as Mt,Nw as Ve,Tx as Lt,l5 as Ua,Ty as Ba,Tz as Va,TA as Oa,TB as za,oX as Ma,py as ze,TC as La,TD as ja,TE as $a,pF as qa,kU as Ga,kL as Na,TF as Ja,kT as jt,OP as Ya,TG as Ka,TH as Qa,rs as Za,r4 as Ha,pw as Ie,r3 as nt,TI as Wa,TJ as Xa,TK as eo,mo as to,bo as no,mj as $t,m5 as ao,TL as oo,gB as so,mg as co,xF as io,TM as lo,q4 as ro,p$ as uo,q3 as mo,pQ as po,TN as ho,fO as mn,pe as go,oT as Co,f$ as qt,pA as So,TO as fo,TP as Io,px as pn,TQ as ko,TR as Eo,TS as To,TT as bo,TU as Gt,rE as yo,qX as vo,Nv as Po,TV as Ao,TW as wo,kS as Ro,TX as xo,Jy as Do,kR as Fo,kG as _o,fN as Uo,qt as hn,qP as Bo,pu as Nt,pz as Vo,bE as Oo,md as zo,ma as Mo,TY as Lo,pP as Jt,qL as Yt,qJ as jo,TZ as $o,qy as qo,qe as Go,qM as No,T_ as Jo,T$ as Yo,qi as Ko,U0 as Qo,q9 as Zo,qh as Ho,qf as Wo,qS as Xo}from"./zeni-epic-state-BqRlfhza.js";import{A as qe,c as Y,e as G,v as le,Z as gn,a0 as Cn,cZ as es,z as Ne,c_ as Kt,c$ as ts,d0 as ns,d1 as as,au as Re,d2 as os,aZ as Qt,D as Sn,d3 as ss,ar as at,O as cs,a9 as is,d4 as ls,a4 as rs,d5 as ds,Y as us,d6 as ms,d7 as ps,$ as hs,d as gs,aS as Cs,d8 as Ss,d9 as fs,be as Is,H as ks,aV as Es}from"./index-Bwczg7nO.js";import{u as fn}from"./useAskAiCfoHostNavButtonProps-vhjzTbBd.js";import{f as Zt,a as Ts,b as bs,g as ys,C as vs}from"./TransactionDetailScreen-tCFIjsQZ.js";import{w as Ps}from"./withTransactionSidePanel-ZJmA3F8P.js";import{h as As,v as ws}from"./routePaths-Kh8F22Sq.js";import{g as ot}from"./accountMappingHelper-C5WHpsgJ.js";import{D as Rs}from"./DrawerScreen-D8laOuUr.js";import"./recharts-9jMEgSjc.js";import"./analytics-D_NuuF2U.js";import"./plaid-2mv_ck83.js";import"./dnd-DC_qF3Wr.js";import"./stripe-cKAAJElX.js";import"./lottie-B7_cpoe1.js";import"./lexical-CQoPutFC.js";import"./pdf-CQB-J2hc.js";import"./utils-BykfwIo5.js";import"./decodeURIComponentSafe-B-r3T5bV.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]="541571fa-ce52-414d-bee7-a91bb1015fa4",t._sentryDebugIdIdentifier="sentry-dbid-541571fa-ce52-414d-bee7-a91bb1015fa4")}catch{}})();const xs=()=>{const t=ke(),s=nn(),w=st(),b=x((m=>Me(m))),{useFeatureGate:A}=qe(),{isFeatureEnabled:i}=A(Y.isRealtimeInsightsFeatureEnabled),{isFeatureEnabled:p}=A(Y.aiAuditScorePercentage),I=x((m=>m.expenseAutomationViewState.selectedPeriodByTenantId)),l=x((m=>ha(m,b.tenantId))),{isAiCfoAccessEnabled:C,onAskAiCfoClick:g}=fn({mobileExploreReferrer:"Month-End Close Overview"}),R=a.useCallback(((m,V,te=!1)=>{t(we({tenantId:V,period:{month:m.month,year:m.year},refreshViewInBackground:te}))}),[]),y=a.useCallback((m=>{const V=w.state?.referrer;l.monthEndCloseChecks?.auditSummary!=null&&G.trackMonthCloseAuditPage(m.month,m.year,l.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",l.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,V??null),t(ga(b.tenantId,m))}),[b.tenantId,l.monthEndCloseChecks?.auditSummary,l.monthEndCloseChecks?.reportEmailSentDate]),r=I[b.tenantId],h=a.useCallback((()=>{const m=w.state?.referrer;l.monthEndCloseChecks?.auditSummary!=null&&G.trackMonthCloseAuditPage(r.month,r.year,l.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",l.monthEndCloseChecks.auditSummary.auditScorePercentage,!0,m??null),R(r,b.tenantId,!0)}),[R,r,b.tenantId,l.monthEndCloseChecks?.auditSummary,l.monthEndCloseChecks?.reportEmailSentDate]),F=le(w.state?.pathnameStackToGoBack,w.pathname),J=a.useCallback((()=>{if(l.monthEndCloseChecks!=null&&r!=null){const m=l.monthEndCloseChecks.monthEndCloseCheckList.find((V=>V.progress<100));if(m!=null)return void s(`./${m.id}/${r.month}-${r.year}`,{state:{pathnameStackToGoBack:F,message:"comingFromOverview"}});s(`./month_end_insights/${r.month}-${r.year}`,{state:{pathnameStackToGoBack:F,message:"comingFromOverview"}})}}),[l.monthEndCloseChecks,r]),{areTenantIdsInSync:u}=gn();return Cn({isDataReady:l.fetchState==="Completed"}),a.useEffect((()=>{r!=null&&l.fetchState!=="In-Progress"&&l.fetchState!=="Completed"&&u&&R(r,b.tenantId)}),[R,r,l.fetchState,b.tenantId,u]),a.useEffect((()=>{r!=null&&l.monthClosePerformanceTrendFetchStatus.fetchState!=="In-Progress"&&l.monthClosePerformanceTrendFetchStatus.fetchState!=="Completed"&&u&&t(Ca(r))}),[r,l.monthClosePerformanceTrendFetchStatus.fetchState,u]),a.useEffect((()=>{const m=setInterval((()=>{l.fetchState!=="In-Progress"&&l.fetchState==="Completed"&&h()}),3e5);return()=>clearInterval(m)}),[l.fetchState]),a.useEffect((()=>{if(l.fetchState==="Completed"&&l.monthEndCloseChecks?.auditSummary!=null){const m=w.state?.referrer;G.trackMonthCloseAuditPage(l.selectedPeriod.month,l.selectedPeriod.year,l.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",l.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,m??null)}}),[l.fetchState,l.selectedPeriod,l.monthEndCloseChecks?.auditSummary,l.monthEndCloseChecks?.reportEmailSentDate]),S.jsx(Ds,{children:S.jsx(es,{monthEndCloseChecksView:l,isRealtimeInsightsFeatureEnabled:i,onMonthEndCheckClick:m=>{s(`./${m}/${r.month}-${r.year}`,{state:{pathnameStackToGoBack:F,message:"comingFromOverview",referrer:"Expense Automation - Overview"}})},onPeriodChange:y,handleReviewButtonClick:J,onBackClick:()=>{s("../../dashboard")},onReload:h,isAiCfoAccessEnabled:C,onAskAiCfoClick:g,aiAuditScorePercentageEnabled:p})})},Ds=Ge.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100vh;
|
|
4
4
|
width: 100%;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as s}from"./liveblocks-C8AAaKDR.js";import{a as r}from"./sentry-DfheywaX.js";import{a5 as l,a6 as p,a7 as m,r as c}from"./index-Bwczg7nO.js";import"./mui-CosLSKUu.js";import f from"./NotFoundScreen-vodaR6J5.js";import{h as u,g as b}from"./core-Da6TLrNx.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-DfheywaX.js";import{u as l,h as f,g as m}from"./core-Da6TLrNx.js";import{hx as p,MD as g,ME as b}from"./zeni-epic-state-BqRlfhza.js";import{u as _,L as h,z as y}from"./index-Bwczg7nO.js";import"./liveblocks-C8AAaKDR.js";import"./recharts-9jMEgSjc.js";import"./mui-CosLSKUu.js";import"./analytics-D_NuuF2U.js";import"./plaid-2mv_ck83.js";import"./dnd-DC_qF3Wr.js";import"./stripe-cKAAJElX.js";import"./lottie-B7_cpoe1.js";import"./lexical-CQoPutFC.js";import"./pdf-CQB-J2hc.js";import"./utils-BykfwIo5.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]="3dd5c1ed-f33b-4032-9e7e-e8a6b1b794cf",e._sentryDebugIdIdentifier="sentry-dbid-3dd5c1ed-f33b-4032-9e7e-e8a6b1b794cf")}catch{}})();function M(){const e=l(),n=f(),o=m(),{setLoading:i,clearAllLoading:u}=_(),s=r.useRef(!1);return r.useLayoutEffect((()=>{i(h.CONNECTION_AUTH)}),[i]),r.useEffect((()=>{if(s.current)return;s.current=!0;const a=new URLSearchParams(o.search).get("code"),d=sessionStorage.getItem("hubspot_oauth_pending");if(sessionStorage.removeItem("hubspot_oauth_pending"),a!=null&&d!=null){const t=JSON.parse(d);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 c=y.getActiveTenantForUser();n(c?.tenantEmailDomain!=null?`/${c.tenantEmailDomain}/settings/integrations`:"/",{replace:!0})}),[]),null}export{M as default};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import{j as a}from"./liveblocks-C8AAaKDR.js";import{i as S,n as x,h as C,g as y,u as ee,t as ae,j as E,N as te,o as ne,p}from"./core-Da6TLrNx.js";import{Mw as k,Mx as v,My as M,BA as B,Bm as T,Mz as A,MA as oe,MB as se,Bq as ie,fC as $,Bx as le,Bu as de}from"./zeni-epic-state-BqRlfhza.js";import{J as g,o as d,p as re,e as j,k as G,q as ce,r as me,s as pe,v as V,A as ue,c as he,B as xe,$ as ge,y as fe,C as be,D as we,E as Se,V as ye,F as ke,G as ve,H as je,I as $e}from"./index-Bwczg7nO.js";import{n as m}from"./mui-CosLSKUu.js";import f from"./NotFoundScreen-vodaR6J5.js";import{a as I}from"./sentry-DfheywaX.js";import"./recharts-9jMEgSjc.js";import"./analytics-D_NuuF2U.js";import"./plaid-2mv_ck83.js";import"./dnd-DC_qF3Wr.js";import"./stripe-cKAAJElX.js";import"./lottie-B7_cpoe1.js";import"./lexical-CQoPutFC.js";import"./pdf-CQB-J2hc.js";import"./utils-BykfwIo5.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]="b3da7bbb-cd3f-4422-a5b9-a9df6ffd513d",e._sentryDebugIdIdentifier="sentry-dbid-b3da7bbb-cd3f-4422-a5b9-a9df6ffd513d")}catch{}})();const Ie=m.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
height: 100%;
|
|
4
|
+
width: 100%;
|
|
5
|
+
flex: 1 1 auto;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
align-items: center;
|
|
8
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
+
box-shadow: ${e=>`0px 2px ${d.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
10
|
+
`,Ce=x((function(e){const t=k(e),n=v(e),{companyName:o}=t;return{companyName:o,isDisabled:t.fetchState!=="Completed"?"disabled":void 0,magicLinkBankAccountDetails:n,magicLinkViewState:t}}),(function(e,t){const{vendorId:n,billId:o}=t;return{onFetchBankName:s=>{e(T(s))},onSaveHandler:s=>{j.trackBillPayMagicLinkSubmitBankAccountDetails(o),e(B(s,"standard",n,o))},onACHDetailsUpdated:s=>{const{bankAccountSection:l}=s;e(M({data:l}))}}}))(re);function F(){const e=g(),{vendorId:t,billId:n}=S();return t==null||n==null?a.jsx(f,{}):a.jsx(a.Fragment,{children:a.jsx(Ie,{windowSize:e,children:a.jsx(Ce,{vendorId:t,billId:n})})})}const Be=m.div`
|
|
11
|
+
display: flex;
|
|
12
|
+
height: 100vh;
|
|
13
|
+
width: 100%;
|
|
14
|
+
flex: 1 1 auto;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
align-items: center;
|
|
17
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
18
|
+
box-shadow: ${e=>`0px 2px ${d.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
19
|
+
`,Ae=x((function(e,t){const{isSubPage:n}=t;return{addressToEdit:A(e),googleAPIKey:G.googleMapsAPIKey,isSubPage:n}}),(function(e,t){const{navigate:n,location:o}=t,s=()=>{const l=me(o.state?.pathnameStackToGoBack),i=l.poppedPathname??Pe();n(i,{state:{pathnameStackToGoBack:l.newStack}})};return{onSubmitHandler:l=>{const i=ze(l);e(oe({addressToCreate:i})),s()},onCancel:()=>{s()}}}))(ce);function De({isSubPage:e}){const t=C(),n=y(),o=g();return a.jsx(a.Fragment,{children:a.jsx(Be,{windowSize:o,children:a.jsx(Ae,{location:n,navigate:t,isSubPage:e===!0,googleAPIKey:G.googleMapsAPIKey})})})}const Pe=(e=2)=>{let t="../";for(let n=0;n<e;n++)t=`${t}../`;return t},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
|
+
display: flex;
|
|
21
|
+
height: 100%;
|
|
22
|
+
width: 100%;
|
|
23
|
+
flex: 1 1 auto;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
align-items: center;
|
|
26
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
27
|
+
box-shadow: ${e=>`0px 2px ${d.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
28
|
+
`,Ne=x((function(e){const t=k(e),n=v(e),o=A(e),{companyName:s}=t;return{companyName:s,isDisabled:t.fetchState!=="Completed"?"disabled":void 0,magicLinkBankAccountDetails:n,mailingAddressDetails:o,magicLinkViewState:t}}),(function(e,t){const{navigate:n,location:o,vendorId:s,billId:l}=t;return{onFetchBankName:i=>{e(T(i))},onSaveHandler:i=>{j.trackBillPayMagicLinkSubmitBankAccountDetails(l),e(B(i,"us-domestic",s,l))},onWireDetailsUpdated:i=>{const{bankAccountSection:r}=i;e(M({data:r}))},onAddressClick:()=>{const i=o.pathname.replace("us-domestic","address"),r=V(o.state?.pathnameStackToGoBack,o.pathname);n(i,{state:{pathnameStackToGoBack:r}})}}}))(pe);function Ee(){const e=C(),t=y(),n=g(),{vendorId:o,billId:s}=S();return o==null||s==null?a.jsx(f,{}):a.jsx(a.Fragment,{children:a.jsx(Le,{windowSize:n,children:a.jsx(Ne,{location:t,navigate:e,vendorId:o,billId:s})})})}const Fe=m.div`
|
|
29
|
+
display: flex;
|
|
30
|
+
height: 100%;
|
|
31
|
+
width: 100%;
|
|
32
|
+
flex: 1 1 auto;
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
align-items: center;
|
|
35
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
36
|
+
box-shadow: ${e=>`0px 2px ${d.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
37
|
+
`,Me=x((function(e){const t=k(e),n=v(e),o=A(e),{companyName:s}=t;return{companyName:s,isDisabled:t.fetchState!=="Completed"?"disabled":void 0,magicLinkBankAccountDetails:n,mailingAddressDetails:o,magicLinkViewState:t}}),(function(e,t){const{navigate:n,location:o,vendorId:s,billId:l}=t;return{onFetchBankNameBySwift:i=>{e(ie(i))},onSaveHandler:i=>{j.trackBillPayMagicLinkSubmitBankAccountDetails(l),e(B(i,"international",s,l,t.isLocalCurrencyEnabled))},onBankDetailsUpdated:i=>{const{internationalWireSwiftAccountSection:r}=i;e(se({data:r}))},onAddressClick:()=>{const i=o.pathname.replace("international","address"),r=V(o.state?.pathnameStackToGoBack,o.pathname);n(i,{state:{pathnameStackToGoBack:r}})}}}))(xe);function Te(){const e=C(),t=y(),n=g(),{vendorId:o,billId:s}=S(),{useFeatureGate:l}=ue(),{isFeatureEnabled:i}=l(he.isBillPayLocalCurrencyFeatureEnabled);return o==null||s==null?a.jsx(f,{}):a.jsx(Fe,{windowSize:n,children:a.jsx(Me,{location:t,navigate:e,vendorId:o,billId:s,isLocalCurrencyEnabled:i})})}const Ge={containerWidth:new je(100,58)},Ve=m(ke)`
|
|
38
|
+
width: ${d.sp4};
|
|
39
|
+
height: ${d.sp4};
|
|
40
|
+
margin-bottom: ${d.sp3};
|
|
41
|
+
margin-top: ${d.sp3};
|
|
42
|
+
margin-left: ${d.sp8};
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
position: absolute;
|
|
45
|
+
color: ${e=>e.theme.colors.brandColorJade};
|
|
46
|
+
`,He=m.div`
|
|
47
|
+
display: flex;
|
|
48
|
+
height: 100vh;
|
|
49
|
+
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
50
|
+
width: 100vw;
|
|
51
|
+
overflow-y: scroll;
|
|
52
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
53
|
+
`,_e=m.div`
|
|
54
|
+
display: flex;
|
|
55
|
+
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
56
|
+
flex-direction: column;
|
|
57
|
+
width: ${e=>`${Ge.containerWidth.value(e.windowSize)}%`};
|
|
58
|
+
${e=>e.windowSize!=="small"?"overflow: auto;":""}
|
|
59
|
+
box-shadow: ${e=>`0px 2px ${d.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
60
|
+
padding-top: ${e=>e.windowSize!=="small"?d.sp2:"0px"};
|
|
61
|
+
`,Ke=m.div`
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-direction: column;
|
|
64
|
+
align-items: center;
|
|
65
|
+
justify-content: center;
|
|
66
|
+
padding: ${e=>e.windowSize==="small"?d.sp3:`62px ${d.sp6} ${d.sp9} ${d.sp8}`};
|
|
67
|
+
height: ${e=>e.windowSize==="small"?"490px":"auto"};
|
|
68
|
+
overflow: ${e=>e.windowSize==="small"?"unset":"hidden"};
|
|
69
|
+
width: ${e=>e.windowSize=="small"?"auto":"42%"};
|
|
70
|
+
background-color: ${e=>e.windowSize==="small"?e.theme.colors.grey4:e.theme.colors.background};
|
|
71
|
+
margin-top: ${e=>e.windowSize==="small"?e.isAddressPage?"0px":"186px":"unset"};
|
|
72
|
+
`,We=x((function(e,t){return{file:t.file,type:t.type}}))(ve);function h({appContent:e}){const t=ee(),n=y(),{tenantEmailDomain:o,vendorId:s,billId:l}=S(),[i]=ae(),r=i.get("token"),H=n.pathname.includes("address"),b=g(),_=ge(),D=fe(),w=be(),K=()=>{_.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((()=>{w&&c==="Not-Started"&&s!=null&&o!=null&&r!=null&&t(le(s,o,r))}),[w,c,s,o,r,t]),I.useEffect((()=>{w&&c==="Completed"&&($(L,N,z),l!=null&&t(de(l)))}),[c,w,L,N,z,l,t]),c==="Error"?a.jsx(f,{}):X==="Completed"||Y.fetchState==="Completed"?($(),a.jsx(te,{to:"../../../../../../../bank/account/save/success",replace:!0,relative:"path"})):c==="In-Progress"?a.jsx(we,{fetchState:c,style:{height:"100vh",backgroundColor:D.colors.grey5,boxShadow:`0px 2px ${d.sp1} ${D.colors.dropShadowNormal}`}}):a.jsxs(a.Fragment,{children:[c==="Completed"&&P==="Completed"&&a.jsx(Se,{analytics:j,onLoad:u=>(Z=>Z.trackBillPayMagicLinkPageLoad(o??"",s??"",O,l??"",Ue(n.pathname),Q,R))(u)}),a.jsxs(He,{windowSize:b,children:[b!=="small"?a.jsx(Ve,{onClick:K}):null,a.jsx(Ke,{windowSize:b,isAddressPage:H,children:P==="In-Progress"?a.jsx(ye,{size:"ExtraLarge",start:!0}):a.jsx(We,{file:J,type:"bill"})}),a.jsx(_e,{windowSize:b,children:e})]})]})}const Ue=e=>`${e.split("/").at(-2)}_${e.split("/").at(-1)}`;function qe(){return a.jsx($e,{})}function ra(){return a.jsxs(ne,{children:[a.jsx(p,{path:"bank/account/save/success",element:a.jsx(qe,{})}),a.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/ach/standard",element:a.jsx(h,{appContent:a.jsx(F,{})})}),a.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/ach/same-day",element:a.jsx(h,{appContent:a.jsx(F,{})})}),a.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/address",element:a.jsx(h,{appContent:a.jsx(De,{isSubPage:!0})})}),a.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/us-domestic",element:a.jsx(h,{appContent:a.jsx(Ee,{})})}),a.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/international",element:a.jsx(h,{appContent:a.jsx(Te,{})})}),a.jsx(p,{path:"*",element:a.jsx(f,{})})]})}export{ra as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as u}from"./liveblocks-
|
|
1
|
+
import{j as u}from"./liveblocks-C8AAaKDR.js";import{a as g}from"./sentry-DfheywaX.js";import{u as F,g as O,h as _,t as w,j as l,N as T}from"./core-Da6TLrNx.js";import{z as r,y as V,O as P,f as A,e as N,g as Z,m as R,V as W,j as $}from"./index-Bwczg7nO.js";import{eZ as q,Mh as B,Mr as G,Mi as H,fC as J,g2 as K,Mn as Q,gs as X,cZ as Y,Ms as ee,Mt as te}from"./zeni-epic-state-BqRlfhza.js";import{n as ne}from"./mui-CosLSKUu.js";import{u as se}from"./useDeviceId-COe_GzcU.js";import{f as ae}from"./analyticsHelper-C7Ffbo_X.js";import{t as ie}from"./getLocaleForTenant-CnNopwIO.js";import"./recharts-9jMEgSjc.js";import"./analytics-D_NuuF2U.js";import"./plaid-2mv_ck83.js";import"./dnd-DC_qF3Wr.js";import"./stripe-cKAAJElX.js";import"./lottie-B7_cpoe1.js";import"./lexical-CQoPutFC.js";import"./pdf-CQB-J2hc.js";import"./utils-BykfwIo5.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="65e6df55-d5d3-4fad-879b-dcb450570a21",t._sentryDebugIdIdentifier="sentry-dbid-65e6df55-d5d3-4fad-879b-dcb450570a21")}catch{}})();const C=(t,a)=>t!=null&&t.length>0&&a==="magic_links";function Ce(){const t=F(),a=O(),m=_(),[b]=w(),n=b.get("token"),p=b.get("stytch_token_type"),f=r.getMagicLinkCodeVerifier(),i=se(),{otpChallenge:d,twoFAPhoneNumber:x,magicLinkEmail:c,verifyDeviceFetchState:z,resendVerifyDeviceOTPFetchState:D}=l((e=>e.tenantState)),S=l((e=>e.tenantState.fetchState)),k=l((e=>e.tenantState.activeTenantFetchState.fetchState)),h=l((e=>e.tenantState.signInState)),I=l((e=>e.tenantState.magicLinkSignInFetchState.fetchState)),s=l((e=>e.tenantState.loggedInUser)),o=l((e=>q(e))),y=l((e=>B(e))),M=r.getSignedInUser(),v=V().mode;g.useEffect((()=>{s?.zeniSessionId==null&&n!=null&&C(n,p)&&i!=null&&f!=null&&(r.saveMagicLinkTriggered(n),t(G(n,i,f)))}),[n,p,t,i,f,s?.zeniSessionId]),g.useEffect((()=>{h!=="In-Progress"||S!=="Completed"&&k!=="Completed"||s?.zeniSessionId==null||o==null||(n!=null&&r.saveLastUsedMagicLinkToken(n),r.saveSignedInUserWithSession(s,s.zeniSessionId),r.saveSignedInUserTenants(H(y.tenantsInOrder),s.zeniSessionId),J(s.userId,s.zeniSessionId,o.tenantId),t(K(o.tenantId)),r.saveActiveTenantDomainForUser(o.tenantEmailDomain),t(Q("Completed")),P.updateAppLocaleID(ie(o)),ae(s,o,v,void 0,y.tenantsInOrder),X().then((()=>{const e=$();e!=null&&A(e)})),setTimeout((()=>{N.trackLogin(Z.Event.loginSuccess,"email",Y(o.productSettings))}),2e3))}),[h,S,k,s,o,y,v,a.state,t]);const E=g.useCallback((()=>{m("/signin/auth")}),[m]),j=g.useCallback((()=>{i!=null&&d!=null&&c!=null&&t(ee(i,c,d))}),[i,d,t,c]),U=g.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(R,{phoneNumber:x,verifyOtpFetchState:z.fetchState,resendVerifyDeviceOTPFetchState:D,onResendOtp:j,onVerifyOtp:U,onCancelVerifyDevice:E});if(h==="In-Progress"&&S==="Completed"&&s?.zeniSessionId!=null&&o!=null||M!=null){const e=a.state?.origin??"/";return u.jsx(T,{to:e,state:{...a.state,origin:""}})}if(!C(n,p)||f==null||I==="Error"){const e=a.state?.origin??"/",L=n!=null&&r.getLastUsedMagicLinkToken()===n;return u.jsx(T,{to:e,state:{...a.state,origin:"",magicLinkAlreadyUsed:L,magicLinkExpired:!L&&(r.isMagicLinkTriggered(n??"")||I==="Error"&&s?.zeniSessionId==null)}})}return u.jsx(oe,{"data-testid":"smooth-loader",children:u.jsx(W,{size:"ExtraLarge",start:!0})})}const oe=ne.div`
|
|
2
2
|
position: fixed;
|
|
3
3
|
top: 0;
|
|
4
4
|
left: 0;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as V}from"./liveblocks-C8AAaKDR.js";import{a as l}from"./sentry-DfheywaX.js";import{u as fe,j as n,i as He,g as We,h as Je,l as G}from"./core-Da6TLrNx.js";import{eZ as me,fH as Ke,fI as be,ft as Qe,bn as Xe,eY as qe,fJ as ea,fK as aa,fM as ta,fP as na,fQ as g,fS as sa,fT as de,fW as oa,fU as ia,fV as ra,fX as da,cP as ca,fZ as la,cV as ua,fs as fa,g2 as ma,g3 as ba,g1 as pa}from"./zeni-epic-state-BqRlfhza.js";import{a9 as ha,aa as Sa,$ as ga,A as Ea,z as k,C as ka,u as Ca,c as r,i as ya,n as Ia,ab as Ta,d as Aa,a as _a,ac as wa,a5 as Da,ad as Fa,ae as va,af as ce,ag as le,L as $a,ah as Pa,ai as ue,e as x,a1 as Ma,v as A,aj as R,ak as Ga}from"./index-Bwczg7nO.js";import{D as xa}from"./mui-CosLSKUu.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]="b1b64fb2-34c8-44ed-85fd-8391310c69cc",f._sentryDebugIdIdentifier="sentry-dbid-b1b64fb2-34c8-44ed-85fd-8391310c69cc")}catch{}})();const Ra=ha((({isAppContentDrawerOpen:f,handleDrawerToggle:d})=>{const{tenantEmailDomain:t}=He(),a=We(),C=ga(),o=Je(),B=Qe(),m=fe(),{useFeatureGate:i}=Ea(),N=k.getSignedInUser(),U=Xe(N),s=n((e=>me(e))),pe=s.masterTOSInfo?.isMasterTOSAccepted??!1,O=n((e=>qe(e))),j=O.uiState.currentChatSessionId,y=ka(),{setLoading:he}=Ca(),[_,L]=l.useState(void 0),w=G("/:tenantEmailDomain/dashboard")!==null,Z=G("/:tenantEmailDomain/reports")!==null,I=G("/: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),Y=n((e=>ea(e))),{isFeatureEnabled:T}=i(r.isReferralFeatureEnabled),D=n((e=>aa(e)));l.useEffect((()=>{y&&T&&!I&&D.fetchState==="Not-Started"&&m(ta(!0))}),[y,T,D.fetchState,I]);const h=k.getSignedInUser(),F=n((e=>e.tenantState)),Ce=n((e=>F.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:Ae}=i(r.isExpenseAutomationEnabledV2),H=Ia(),{isFeatureEnabled:_e}=i(r.isDashboardSidebarHalloweenAnimationEnabled),{isFeatureEnabled:we}=i(r.isDashboardSidebarThanksGivingAnimationEnabled),{isFeatureEnabled:De}=i(r.isDashboardSidebarChristmasAnimationEnabled),{isFeatureEnabled:Fe}=i(r.isDashboardSidebarNewYearAnimationEnabled),v=s.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",{isFeatureEnabled:ve}=i(r.isTaskManagerCustomerUserAccessEnabled),$e=U||!U&&ve,Pe=n((e=>g(e).totalUnreadCount)),Me=n((e=>g(e).reducedFetchCountState)),W=n((e=>g(e).notificationDetailsByTab.tasks.uiState.unreadCount)),J=n((e=>g(e).notificationDetailsByTab.comments.uiState.unreadCount)),Ge=n((e=>g(e).notificationDetailsByTab.tasks.fetchCountState)),$=n((e=>g(e).notificationDetailsByTab.comments.fetchCountState)),{inboxNotifications:K,isLoading:Q,isFetchingMore:X,hasFetchedAll:q,fetchMore:xe}=Ta();l.useEffect((()=>{const e=setTimeout((()=>xe?.()),0);return()=>clearTimeout(e)})),l.useEffect((()=>{if(Q===!1&&X===!1&&q===!0)if(s?.companyId!=null&&K!=null){const e=`dashboard_${s.companyId}`;L(K.filter((u=>u.roomId===e&&u.readAt==null)).length)}else L(0)}),[Q,X,q]),l.useEffect((()=>{y&&!I&&Ge.fetchState==="Not-Started"&&B.tenantId!=null&&m(sa("task_manager","dashboard"))}),[y,B.tenantId]),l.useEffect((()=>{I||$.fetchState!=="Not-Started"||m(de({fetchCountState:{fetchState:"In-Progress",error:void 0}},"comments"))}),[]),l.useEffect((()=>{_!=null&&$.fetchState==="In-Progress"&&(m(de({fetchCountState:{fetchState:"Completed",error:void 0}},"comments")),m(be({unreadCount:_},"comments")))}),[_,$.fetchState]);const Re={fetchStatus:Me,count:Pe},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"),H===!1&&S.push("expense_automation_card");const Ve=Aa(),te=n((e=>ia(e,S,h,Ae,Te).fetchState)),ne=n((e=>ra(e).fetchState)),Be=w&&(te==="Completed"||te==="Error")||Z&&(ne==="Completed"||ne==="Error")||!w&&!Z?void 0:"disabled",Ne=l.useMemo((()=>da(s.userRole)),[s.userRole]),Ue=ca(Ne),Oe=s?.rewardsLastViewedTime==null,je=h?.userEmail!=null&&Y.fetchState==="Completed"&&la(Y.notificationSettings,h.userEmail,z,s),se=_a(),Le=se&&wa(a),oe=ua(Ve?.loggedInUserRoleMap),ie=s.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,P=l.useCallback((()=>v&&oe&&!k.getTreasuryPopupSeen(t??"")&&ie===!1&&Da(a.pathname)!=="treasury"),[v,oe,ie,a.pathname,t]),[Ze,re]=l.useState(P);l.useEffect((()=>{re(P())}),[P]);const ze=n((e=>e.treasurySetupViewState.treasuryFundsDetails)).fundsDetails,Ye=Fa(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:N,currentTenantId:F.currentTenantId??"",tenants:F.fetchState==="Completed"?Ce:ae!=null?[ae]:[],currentTenant:s,isTenantDropdownDisabled:Be,isSettings:le(a),isSettingsFeatureEnabled:ke,isVendorsTabVisible:Ue,isZeniAccountEnabled:Se,isChargeCardEnabled:Ee,isTreasuryEnabled:v,treasuryYieldPercentage:Ye,isTreasuryPopupVisible:Ze,isNotificationsTabVisible:je,notificationCountDetails:Re,isExpenseAutomationEnabledForUser:H,selectedMenu:ce(a),rewardsConfiguration:{isRewardsTabVisible:T,isRewardsAnimated:Oe,rewardsPlan:D.rewardsPlan},isAiCfoAccessEnabled:se,onNotificationIconClick:()=>{d(!1);let e=W===0&&J>0?"notifications/comments":"notifications/tasks";le(a)&&(e=W===0&&J>0?"../../notifications/comments":"../../notifications/tasks");const u=A(a.state?.pathnameStackToGoBack,a.pathname);o(e,{state:{pathnameStackToGoBack:u}})},handleCockpitClick:()=>{window.open("/cockpit")},handleLogOutClick:()=>{d(!1);const e=A(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),!pe)return void Ma({location:a,navigate:o,mergeState:{referrer:"Sidebar"}});const p=A(a.state?.pathnameStackToGoBack,a.pathname);return void o(`/${t}/ai-cfo/explore`,{state:{pathnameStackToGoBack:p,referrer:"Sidebar"}})}const u=A(a.state?.pathnameStackToGoBack,a.pathname),c=e.type,b=R(c)&&c!=="command_center";if(R(e.type)&&E[s.tenantId]!=null&&x.trackMonthEndCloseClicked(E[s.tenantId].month,E[s.tenantId].year,"Sidebar"),b&&E[s.tenantId]!=null){const p=E[s.tenantId];return void o(`/${t}/month_end_close_checks/review/${e.type}/${p.month}-${p.year}`,{state:{pathnameStackToGoBack:u,referrer:"Sidebar"}})}const M=Ga(e.type);ue(e.type)?(j!=null&&m(pa()),o(`/${t}/ai-cfo/${e.type}`,{state:{pathnameStackToGoBack:u.slice(0,-1),referrer:"Sidebar"}})):o(`/${t}/${M}`,{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 b=`/${encodeURIComponent(u)}/`;const M=R(c);c==="home"?b+="dashboard":c==="users_and_roles"?b+="people":Pa(c)?b+="settings/my_profile":ue(c)?b+=`ai-cfo/${c}`:b+=c==="task_checklist"?"tasks":M?"month_end_close_checks/review":encodeURIComponent(c),o(b,{replace:!0}),h!=null&&(m(ma(e.tenantId)),m(ba(h.userId,e.tenantId,h.zeniSessionId)));const p=e;x.trackCompanySwitch(p.companyId,p.companyName,p.userRole)},handlePopupClose:()=>{k.saveTreasuryPopupSeen(t??"",!0),re(!1)},onZeniLogoClick:()=>{C.toggle()},isAiCfo:Le,aiCfoView:O,isOnDashboard:w,updateCurrentChatSessionId:e=>{m(fa({sessionId:e,agentId:"controller"})),o(`/${t}/ai-cfo/${e}`,{state:{...a.state}})},halloweenAnimationEnabled:_e,isTaskManagerAccessEnabled:$e,thanksGivingAnimationEnabled:we,christmasAnimationEnabled:De,newYearAnimationEnabled:Fe})})})),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)&&Ke(o.mode)==="dashboard"&&d(be({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-C8AAaKDR.js";import{h as r,n}from"./core-Da6TLrNx.js";import{T as i}from"./index-Bwczg7nO.js";import"./mui-CosLSKUu.js";import"./sentry-DfheywaX.js";import"./zeni-epic-state-BqRlfhza.js";import"./recharts-9jMEgSjc.js";import"./analytics-D_NuuF2U.js";import"./plaid-2mv_ck83.js";import"./dnd-DC_qF3Wr.js";import"./stripe-cKAAJElX.js";import"./lottie-B7_cpoe1.js";import"./lexical-CQoPutFC.js";import"./pdf-CQB-J2hc.js";import"./utils-BykfwIo5.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]="df9e7e33-2ed0-48bd-9985-e24b323e3cf3",o._sentryDebugIdIdentifier="sentry-dbid-df9e7e33-2ed0-48bd-9985-e24b323e3cf3")}catch{}})();const d=n(null,(function(o,t){return{onGoBack:()=>{t.navigate(-1)},onGoHome:()=>{t.navigate("/")}}}))(i);function _(){const o=r();return e.jsx(d,{navigate:o})}export{_ as default};
|