@zeniai/web-app-ui 5.4.6-dev → 5.4.6-next
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{AccountMappingScreen-SCZflztG.js → AccountMappingScreen-nvoJ8G4P.js} +1 -1
- package/dist/assets/{ActualMatchingMatchDetailScreen-7ejDN7L9.js → ActualMatchingMatchDetailScreen-B03bJnUI.js} +1 -1
- package/dist/assets/AddressRoutes-C3sAKiaJ.js +1 -0
- package/dist/assets/{AddressScreen-B0Rw7Meo.js → AddressScreen-Ksfj0ruP.js} +1 -1
- package/dist/assets/{AiCfoScreen-DKJ-p6eF.js → AiCfoScreen-BjJJQ6tw.js} +1 -1
- package/dist/assets/{AppDrawer-BKB3zk04.js → AppDrawer-Dv64ERQx.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-BtDxRLl1.js → BillPayApprovalRoutes-BCEZTdPJ.js} +1 -1
- package/dist/assets/{BillPayRoutes-6REomPK2.js → BillPayRoutes-BnTlJ83r.js} +1 -1
- package/dist/assets/{BusinessVerificationPageScreen-BMf-N2Vi.js → BusinessVerificationPageScreen-Cbdm5ymw.js} +1 -1
- package/dist/assets/{CardsAiCfoScreen-CqJShJeB.js → CardsAiCfoScreen-CGaPbUz5.js} +1 -1
- package/dist/assets/{ChargeCardRoutes-D7tv1fBd.js → ChargeCardRoutes--MeDgjDp.js} +1 -1
- package/dist/assets/{CompanyPassportScreen-4AwGBpLN.js → CompanyPassportScreen-B4p-K3EX.js} +1 -1
- package/dist/assets/{ConnectionAuthScreen-z5NU1m6z.js → ConnectionAuthScreen-DLLOg14b.js} +1 -1
- package/dist/assets/CustomerOnboardingAuthScreen-BLnG1Umw.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-xhreU1r_.js → CustomerOnboardingRoutes-C4mukay8.js} +1 -1
- package/dist/assets/{DashboardRoutes-BuO07ghp.js → DashboardRoutes-BqH2D3dX.js} +1 -1
- package/dist/assets/{DefaultTenantHome-BC5rOeXI.js → DefaultTenantHome-DPHl2BZY.js} +1 -1
- package/dist/assets/{DomesticWireDetailScreen-CaGljNLv.js → DomesticWireDetailScreen-CzlGB3ky.js} +1 -1
- package/dist/assets/{DrawerScreen-rHSg_gue.js → DrawerScreen-CTzvR2kx.js} +1 -1
- package/dist/assets/{EntityDetailRoutes--MdngBIG.js → EntityDetailRoutes-DpB8Nk87.js} +1 -1
- package/dist/assets/{ExpenseAutomationRoutes-DYmcRf2Y.js → ExpenseAutomationRoutes-jIbSr9T-.js} +1 -1
- package/dist/assets/{FeaturePreviewScreen-DC7afd7c.js → FeaturePreviewScreen-D1tr9i9g.js} +1 -1
- package/dist/assets/{HubSpotOAuthCallbackScreen-C0xL_x_3.js → HubSpotOAuthCallbackScreen-BG5Vx-1D.js} +1 -1
- package/dist/assets/{InboxNotificationsProvider-CzmfZzrH.js → InboxNotificationsProvider-t3V3ZWTJ.js} +1 -1
- package/dist/assets/{InvoicingRoutes-DXTxFFRs.js → InvoicingRoutes-Clviicym.js} +1 -1
- package/dist/assets/{MagicLinkRoutes-BFmbM5yx.js → MagicLinkRoutes-r9Mr6y2W.js} +1 -1
- package/dist/assets/{MagicLinkSignInScreen-CHrNWiKa.js → MagicLinkSignInScreen-OH5izq9T.js} +1 -1
- package/dist/assets/{MobileAppDrawer-bVKqFYWU.js → MobileAppDrawer--MW8DiZa.js} +1 -1
- package/dist/assets/NotFoundScreen-BHbERff5.js +1 -0
- package/dist/assets/{NotificationRoutes-CYDbuufR.js → NotificationRoutes-NEN4WGrh.js} +1 -1
- package/dist/assets/{OAuthConsentScreen-DZDpd-Z-.js → OAuthConsentScreen-CoZRTrZ3.js} +1 -1
- package/dist/assets/{PandLWithForecastRoutes-CFLi_CxP.js → PandLWithForecastRoutes-BkRuicMM.js} +1 -1
- package/dist/assets/{PaymentLinkScreen-CpdHRn1U.js → PaymentLinkScreen-BvBl6cZA.js} +1 -1
- package/dist/assets/{PeopleRoutes-AJ554iC2.js → PeopleRoutes-CjUVW9P0.js} +1 -1
- package/dist/assets/{PerformanceRoutes-D8I4kb3U.js → PerformanceRoutes-DnqPlN92.js} +1 -1
- package/dist/assets/{Preview-BCw1uWDH.js → Preview-CcAr438g.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-BGhOi3fX.js → QBOConnectionScreen-B1hClgaL.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRoutes-BtmeGKGb.js → ReimbursementApprovalRoutes-D0D2tSY-.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-BsbNzk3P.js → ReimbursementApprovalRuleDetailScreen-tV8uvkEE.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-BRTQNUHH.js → ReimbursementRoutes-BAi4cJDW.js} +1 -1
- package/dist/assets/{ReportsRoutes-BYZqoije.js → ReportsRoutes-SdeSFE_N.js} +1 -1
- package/dist/assets/{RewardsRoutes-BsHY1Ep_.js → RewardsRoutes-ZTRcLVpy.js} +1 -1
- package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-fz7l0JQi.js → ScheduleDetailsPrepaidExpensesScreen-Dke8z9BO.js} +1 -1
- package/dist/assets/{ScreenRoutes-qNFwM728.js → ScreenRoutes-BmJmzUVy.js} +2 -2
- package/dist/assets/{SettingsRoutes-Djet13lj.js → SettingsRoutes-BvF6ETeP.js} +1 -1
- package/dist/assets/{SetupPagesScreen-BmSvJAdQ.js → SetupPagesScreen-CkJJqkFI.js} +1 -1
- package/dist/assets/{SignInScreen-BGkNc7IE.js → SignInScreen-BIrt0qf1.js} +1 -1
- package/dist/assets/{SignOutScreen-B93wbxy6.js → SignOutScreen-f2NDKIjz.js} +1 -1
- package/dist/assets/{TaskListScreen-cdgkarHh.js → TaskListScreen-C0Fcmwbp.js} +1 -1
- package/dist/assets/{TaskRoutes-HLl20yd9.js → TaskRoutes-CZbp0Opw.js} +1 -1
- package/dist/assets/{TransactionDetailRoutes-kgWQaR9h.js → TransactionDetailRoutes-DtBbOokQ.js} +1 -1
- package/dist/assets/{TransactionDetailScreen-DtJ6rMlR.js → TransactionDetailScreen-DOyHBOWu.js} +1 -1
- package/dist/assets/{TransactionListRoutes-DhZldMUL.js → TransactionListRoutes-D1KzxCJ2.js} +1 -1
- package/dist/assets/{TreasuryRoutes-D0BRJ3ZW.js → TreasuryRoutes-BmnEpUxj.js} +1 -1
- package/dist/assets/{VendorsRoutes-BwTH4o1S.js → VendorsRoutes-C_91VIWU.js} +1 -1
- package/dist/assets/{WiseConfirmationScreen-Dhlh7Lh_.js → WiseConfirmationScreen-D8kuT3RB.js} +1 -1
- package/dist/assets/{ZeniAccountRoutes-BL-bcu2k.js → ZeniAccountRoutes-A6oVHZwx.js} +1 -1
- package/dist/assets/{ZeniAccountStatementScreen-BEz6NmsH.js → ZeniAccountStatementScreen-k2GZVIgQ.js} +1 -1
- package/dist/assets/{accountMappingHelper-D4hWQbUP.js → accountMappingHelper-BPjpi2eG.js} +1 -1
- package/dist/assets/{analytics-womxmO1W.js → analytics-Cvc_z8O9.js} +1 -1
- package/dist/assets/{analyticsHelper-CxSqx_Vn.js → analyticsHelper-CxsxDhJG.js} +1 -1
- package/dist/assets/{core-Du7UPqMS.js → core-BZ632Tu-.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-DbtFOMtW.js → decodeURIComponentSafe-bfkC_j1N.js} +1 -1
- package/dist/assets/{dnd-S6NFwVgt.js → dnd-C-wSFxNw.js} +1 -1
- package/dist/assets/{empty-ZFv_rQaI.js → empty-81kIjXLG.js} +1 -1
- package/dist/assets/{empty-C-V7VSx7.js → empty-DRYd_ErO.js} +1 -1
- package/dist/assets/{emptyVideoElement-ivFUaI5J.js → emptyVideoElement-DXLZwyt7.js} +1 -1
- package/dist/assets/{epic-DY0-L_k8.js → epic-DULXc4xp.js} +1 -1
- package/dist/assets/{expenseAutomationHelper-hfq5qiQV.js → expenseAutomationHelper-9jvrnChU.js} +1 -1
- package/dist/assets/{getLocaleForTenant-BUJ8EMP9.js → getLocaleForTenant-Cq0erYvs.js} +1 -1
- package/dist/assets/{index-Bkw6b9BJ.js → index-2z_UhewI.js} +8 -8
- package/dist/assets/{index-DNXWHydt.js → index-ClMSlAsZ.js} +1 -1
- package/dist/assets/{index-C--EEhaU.js → index-CwbZF2UD.js} +1 -1
- package/dist/assets/{index-Dr8FwNck.js → index-D6i1IpUi.js} +1 -1
- package/dist/assets/{index-CDjcugHk.js → index-DNgZGpyW.js} +1 -1
- package/dist/assets/{index-CBC3SEYW.js → index-DkehLgE8.js} +2 -2
- package/dist/assets/{index-ChFrwqPf.js → index-DmG0s9fy.js} +1 -1
- package/dist/assets/{index-CTgW5pl7.js → index-DxqcFAGG.js} +1 -1
- package/dist/assets/{lexical-Brc0Kroj.js → lexical-giOgdSOI.js} +1 -1
- package/dist/assets/{liveblocks-CtP3KKBx.js → liveblocks-DdKiKKK0.js} +1 -1
- package/dist/assets/{lottie-C1ice4dY.js → lottie-CEtjeN1D.js} +1 -1
- package/dist/assets/{mui-DWdv7IPr.js → mui-Cs_QYv-a.js} +1 -1
- package/dist/assets/{pathToGoBack-CIs954KZ.js → pathToGoBack-BobgHYkC.js} +1 -1
- package/dist/assets/{pdf-CyjPx40H.js → pdf-DUTZmsd9.js} +3 -3
- package/dist/assets/{pdf-lib-hzctzu5c.js → pdf-lib-ClX4YCl0.js} +1 -1
- package/dist/assets/{plaid-D1Y_x9zk.js → plaid-DbjTYhB2.js} +1 -1
- package/dist/assets/{pusher-Bf-Kyp-u.js → pusher-C4K2yfNy.js} +1 -1
- package/dist/assets/{react-B3PIOfhA.js → react-BtpS1E1e.js} +1 -1
- package/dist/assets/{react-C4_N_gR3.js → react-CQjzpj7G.js} +1 -1
- package/dist/assets/{react-ClXtsDGs.js → react-Cuz_Tyxw.js} +1 -1
- package/dist/assets/{react-DaIPoN40.js → react-Cx_aUXEv.js} +1 -1
- package/dist/assets/{react-4lBsc_Sj.js → react-DvwDxQdx.js} +1 -1
- package/dist/assets/{react-Cuc0l7Y2.js → react-KZADvbI4.js} +1 -1
- package/dist/assets/{recharts-BZz4-Irz.js → recharts-zSkIVXTF.js} +1 -1
- package/dist/assets/{reportTimeframe-CV2nBGFr.js → reportTimeframe-C3x4DuNY.js} +1 -1
- package/dist/assets/{routePaths-BNm3GfSn.js → routePaths-B612B1Tr.js} +1 -1
- package/dist/assets/{sentry-D1S3f4Dm.js → sentry-DB6LQHGv.js} +1 -1
- package/dist/assets/{stripSplatSuffix-RB0FcK3v.js → stripSplatSuffix-BEbNpKe3.js} +1 -1
- package/dist/assets/{url-BNZk3DcK.js → url-Bo5dL9Xn.js} +1 -1
- package/dist/assets/{url-CgMPlwHc.js → url-C0DBFVty.js} +1 -1
- package/dist/assets/{useActualMatchingMatchDetail-BJV9Abbq.js → useActualMatchingMatchDetail-CCOzRjWX.js} +1 -1
- package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-CIT2ORI9.js → useAiCfoDashboardSuggestedQuestionsChips-BcR2jE5t.js} +1 -1
- package/dist/assets/{useAskAiCfoHostNavButtonProps-CzbzINoa.js → useAskAiCfoHostNavButtonProps-MWUhH5nn.js} +1 -1
- package/dist/assets/{useChargeCardPusherEvents-BkB2IQnj.js → useChargeCardPusherEvents-DL6bg2Z5.js} +1 -1
- package/dist/assets/{useDeviceId-C-8rsdcg.js → useDeviceId-CPy4cy94.js} +1 -1
- package/dist/assets/{useEmailConnectResultRefresh-Dyrsm0Ed.js → useEmailConnectResultRefresh-CQqV9-mb.js} +1 -1
- package/dist/assets/{useEnsureVendorListLoaded-CFVw0qeE.js → useEnsureVendorListLoaded-dnubV1te.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-CjVnEZkt.js → useInitialThreadRequest-V3A7xn6Q.js} +1 -1
- package/dist/assets/{useTaskManagerAccess-CLdmxrLC.js → useTaskManagerAccess-DhWCd5Vz.js} +1 -1
- package/dist/assets/{useTaskManagerPusherEvents-DyJvPV12.js → useTaskManagerPusherEvents-DAO4ap5Y.js} +1 -1
- package/dist/assets/{utils-DWeOhfkQ.js → utils-Dtpsid9H.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-ChnX-EmP.js → withTransactionSidePanel-CnbnJs31.js} +1 -1
- package/dist/assets/{zeni-epic-state-SU_Ch21f.js → zeni-epic-state-NMk7iCbI.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/AddressRoutes-CLELuUsR.js +0 -1
- package/dist/assets/CustomerOnboardingAuthScreen-DnVfkWnJ.js +0 -1
- package/dist/assets/NotFoundScreen-hkzdCFF0.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as m}from"./liveblocks-
|
|
1
|
+
import{j as m}from"./liveblocks-DdKiKKK0.js";import{a as g}from"./sentry-DB6LQHGv.js";import{h as w,u as x,g as k,i as T,j as O,l as E}from"./core-BZ632Tu-.js";import{z as D,bt as F,a6 as P,j as V,R as j,q as C,bu as L,ac as A,aE as U,k as B}from"./index-2z_UhewI.js";import{fI as h,gL as G,B$ as M,gG as R,ca as _,Z6 as z,bn as Z,v2 as Y,uS as $,mD as q,oc as S,Z7 as H,bG as J,cG as N,on as K,ox as Q}from"./zeni-epic-state-NMk7iCbI.js";import"./mui-Cs_QYv-a.js";import{d as W}from"./routePaths-B612B1Tr.js";import{M as X}from"./MobileAppDrawer--MW8DiZa.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new n.Error().stack;t&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[t]="767f940c-f084-4557-a776-a8683afe0238",n._sentryDebugIdIdentifier="sentry-dbid-767f940c-f084-4557-a776-a8683afe0238")}catch{}})();const ee=E((function(n){const t=R(n),i=D.getSignedInUser(),l=h(n),c=l.tenantId,p={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:c??""},f=_(l?.userRole??[])&&t.localData.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",e=z(n.companyConfigState),a=n.countryListState?.byCountryListCode?.nationalityCountryList?.countries??[];return{isCompanyVerified:t.companyView?.company?.company?.companyBillPayInfo?.companyVerificationStatus?.code==="verified",companyPassportView:t,allIndustries:e.companyIndustries??[],allNationalityCountries:a,isDisabled:f,authParams:p,filesEndPoint:`${A.fileMicroServiceBaseUrl}`,isZeniUser:Z(i)}}),(function(n,t){const{companyId:i,currentTenant:l,navigate:c,location:p}=t,{tenantEmailDomain:f}=l;return{onScheduleClick:e=>{let a=e.href;a.includes("http")||(a="https://".concat(a)),window.open(a,"_blank")},onSaveAll:()=>{n(Q())},onAddressClick:e=>{const a=W(f,e),o=B(p.state?.pathnameStackToGoBack,p.pathname);c(a,{state:{pathnameStackToGoBack:o}})},onResetClick:()=>{n(K({companyId:i}))},onBackClick:()=>{c("../")},onCompanyDetailsChanged:e=>{const{companyInfo:a,incInfo:o,taxDetails:r,zeniFinanceTeam:d}=e,{website:u}=a,{meetingLink:y}=d,{incDate:s}=o,{taxesFiledYears:b}=r,v={companyInfo:{...a,website:u!=""&&u!=null?N(u):void 0,meetingLink:y!=""&&y!=null?N(y):void 0,industry:a.industry.selectedOption,companyIndustryType:a.companyIndustryType?.selectedOption??void 0,companySubIndustry:a.companySubIndustry?.selectedOption??void 0,businessModel:a.businessModel.selectedOption??"",companySourceOfFunds:a.companySourceOfFunds?.selectedOption,companySourceOfFundsDescription:a.companySourceOfFundsDescription??void 0,countriesOfOperations:a.countriesOfOperations?.selectedOptions?.map((I=>I.length===2?I:U(I)))??[],transactionVolume:a.transactionVolume?.selectedOption??void 0,transactionVolumeDescription:a.transactionVolumeDescription??void 0,regulatedStatus:a.regulatedStatus??void 0,regulatedStatusDescription:a.regulatedStatusDescription??void 0,usNexus:a.usNexus??void 0,usNexusTypes:a.usNexusTypes?.selectedOptions??[],purposeOfAccount:a.purposeOfAccount?.selectedOption??void 0,purposeOfAccountDescription:a.purposeOfAccountDescription??void 0},incInfo:{typeOfInc:o.typeOfInc.selectedOption??"",stateOfInc:o.stateOfInc.selectedOption??"",incDate:s!=null?J(s?.toString()):s,fileId:o.fileIds[0]},taxDetails:{taxIdOrEIN:r.taxIdOrEIN,sicCode:r.sicCode,naicsCode:r.naicsCode,dunsNumber:r.dunsNumber,taxesFiledYears:b.selectedOptions.map((I=>parseInt(I))),fileId:r.fileIds[0]}};n(S({companyDetails:v}))},onPrimaryContactDetailsUpdated:e=>{n(S({primaryContact:{userId:e.userId,email:e.email.trim(),firstName:e.name.firstName,lastName:e.name.lastName}}))},onNewCompanyOfficerAdded:e=>{n(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:void 0}]}))},onNewCompanyOfficerRemoved:e=>{n(H(e))},onCompanyOfficerUpdated:e=>{n(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:e.userId}]}))},updateFilesEntity:e=>{n(q({files:e}))},onDeleteFile:e=>{n($(e))},onEditFileName:(e,a)=>{n(Y(e,a.split(".")[0]))}}}))(L);function de(){const n=w(),t=x(),i=k(),{tenantEmailDomain:l}=T(),[c,p]=g.useState(!1),[f,e]=g.useState(!1),a=O((s=>s.companyViewState.passportView.fetchState)),o=O((s=>s.companyConfigState.fetchState)),r=O((s=>h(s))),d=r.companyId??D.getSignedInUserTenant(l)?.companyId;if(D.getSignedInUser()==null)throw Error("Can't access company details page without signing in...");g.useEffect((()=>{c||a!=="Not-Started"||d==null||(p(!0),t(G(d)))}),[c,a,d,t]),g.useEffect((()=>{o==="Not-Started"&&t(M())}),[o,t]);const u=s=>{e(s)},y=a==="Not-Started"||a==="In-Progress"||o==="Not-Started"||o==="In-Progress";return d!=null&&a==="Error"?m.jsx(F,{onGoHome:()=>n("../",{replace:!0}),onReload:()=>window.location.reload()}):m.jsxs(m.Fragment,{children:[m.jsx(P,{analytics:V,onLoad:s=>s.trackPageLoaded(j.Event.companyPassport,C(i)?"Settings":"Company Passport")}),C(i)?m.jsx(X,{isAppContentDrawerOpen:f,handleDrawerToggle:u}):null,m.jsx(ee,{companyId:d,navigate:n,location:i,isLoading:y,currentTenant:r,isSettings:C(i),onClickMenuIcon:()=>{u(!0)}})]})}export{de as C};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as I}from"./liveblocks-
|
|
1
|
+
import{j as I}from"./liveblocks-DdKiKKK0.js";import{a as o}from"./sentry-DB6LQHGv.js";import{u as F,h as R,g as H,j as C,N as w}from"./core-BZ632Tu-.js";import{UE as q,fI as z,go as G,pW as V,gP as A,gn as Q,gl as W,V2 as B,gk as O}from"./zeni-epic-state-NMk7iCbI.js";import{u as J,z as E,L as T,G as K,E as M}from"./index-2z_UhewI.js";import{n as X}from"./mui-Cs_QYv-a.js";import{P as h,a as _}from"./AccountMappingScreen-nvoJ8G4P.js";import{t as Y}from"./getLocaleForTenant-Cq0erYvs.js";import{g as Z,Q as ee}from"./QBOConnectionScreen-B1hClgaL.js";import"./recharts-zSkIVXTF.js";import"./analytics-Cvc_z8O9.js";import"./plaid-DbjTYhB2.js";import"./dnd-C-wSFxNw.js";import"./stripe-cKAAJElX.js";import"./lottie-CEtjeN1D.js";import"./lexical-giOgdSOI.js";import"./pdf-DUTZmsd9.js";import"./utils-Dtpsid9H.js";import"./MobileAppDrawer--MW8DiZa.js";import"./InboxNotificationsProvider-t3V3ZWTJ.js";import"./useTaskManagerAccess-DhWCd5Vz.js";import"./accountMappingHelper-BPjpi2eG.js";import"./empty-81kIjXLG.js";import"./pdf-lib-ClX4YCl0.js";import"./index-ClMSlAsZ.js";import"./url-Bo5dL9Xn.js";import"./index-DNgZGpyW.js";import"./decodeURIComponentSafe-bfkC_j1N.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new t.Error().stack;i&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[i]="3d6a6ae0-afc1-43eb-ae29-e52891e5a9ba",t._sentryDebugIdIdentifier="sentry-dbid-3d6a6ae0-afc1-43eb-ae29-e52891e5a9ba")}catch{}})();const te=X.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
flex-direction: row;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as i}from"./liveblocks-DdKiKKK0.js";import{z as m}from"./index-2z_UhewI.js";import{g as n}from"./QBOConnectionScreen-B1hClgaL.js";import"./sentry-DB6LQHGv.js";import{g as p,N as a}from"./core-BZ632Tu-.js";import"./zeni-epic-state-NMk7iCbI.js";import"./recharts-zSkIVXTF.js";import"./mui-Cs_QYv-a.js";import"./analytics-Cvc_z8O9.js";import"./plaid-DbjTYhB2.js";import"./dnd-C-wSFxNw.js";import"./stripe-cKAAJElX.js";import"./lottie-CEtjeN1D.js";import"./lexical-giOgdSOI.js";import"./pdf-DUTZmsd9.js";import"./utils-Dtpsid9H.js";import"./empty-81kIjXLG.js";import"./pdf-lib-ClX4YCl0.js";import"./index-ClMSlAsZ.js";import"./url-Bo5dL9Xn.js";import"./index-DNgZGpyW.js";import"./decodeURIComponentSafe-bfkC_j1N.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]="a1205b81-d106-415b-bd92-85aeae53ace3",t._sentryDebugIdIdentifier="sentry-dbid-a1205b81-d106-415b-bd92-85aeae53ace3")}catch{}})();const U=()=>{const t=p(),{code:o,realmId:r,state:e}=n(t.search),s=m.getSignedInUser()?.userId??"";if(f(o,r,e,s)===!0){const d=`../../${e}/onboarding?code=${o}&realmId=${r}&state=auth_flow`;return i.jsx(a,{to:d})}return i.jsx(a,{to:"../../"})},f=(t,o,r,e)=>t!=""&&o!=""&&r!=""&&e!=null&&e!="";export{U as default,f as hasValidParams};
|
package/dist/assets/{CustomerOnboardingRoutes-xhreU1r_.js → CustomerOnboardingRoutes-C4mukay8.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-
|
|
1
|
+
import{j as s}from"./liveblocks-DdKiKKK0.js";import{t as wn,A as $e}from"./AddressScreen-Ksfj0ruP.js";import An from"./NotFoundScreen-BHbERff5.js";import{a as d,u as Me}from"./sentry-DB6LQHGv.js";import{h as _e,g as Te,u as se,i as xe,j as E,N as Q,q as Pn,l as cn,n as Dn,o as q}from"./core-BZ632Tu-.js";import{fI as Y,e1 as Ee,e0 as we,bq as jn,UV as Bn,bT as Fn,pU as Un,BL as Vn,BO as Rn,Wh as Ln,Wi as Nn,ly as Oe,lB as dn,Vw as Gn,c1 as $n,ca as fe,Cd as Ae,B_ as Mn,Wj as me,Ce as un,T3 as Qn,mL as ln,dk as pn,Wk as Kn,Wl as Wn,uL as zn,Vj as Ce,hZ as qn,Vi as be,hW as Hn,GK as Jn,uP as Zn,hO as Xn,hR as Qe,Wm as mn,Wn as Yn,MA as et,Wo as nt,ME as tt,BR as at,Wp as ot,Wq as st,lw as rt,lz as it,Cq as ct,C0 as gn,Cc as dt,bG as Ke,cG as ut,Cp as We,v2 as lt,uS as pt,mD as mt,gJ as gt,gI as ft,gH as yt,Wr as ht,BU as Ct,Cr as bt,Cu as St,Cx as It,CD as kt,dl as Ot}from"./zeni-epic-state-NMk7iCbI.js";import{z as W,p as Pe,c as Z,K as vt,k as z,a6 as re,j as g,aC as _t,ag as fn,$ as Tt,l as yn,J as hn,h as X,W as ge,R as ve,aD as xt,E as ze,s as qe,ac as Et,aE as He,aF as wt,aG as At}from"./index-2z_UhewI.js";import{n as De}from"./mui-Cs_QYv-a.js";import{g as Pt,h as Dt,q as ie}from"./QBOConnectionScreen-B1hClgaL.js";import{u as jt,a as Bt}from"./useEmailConnectResultRefresh-CQqV9-mb.js";import{u as Ft}from"./useChargeCardPusherEvents-DL6bg2Z5.js";import"./recharts-zSkIVXTF.js";import"./analytics-Cvc_z8O9.js";import"./plaid-DbjTYhB2.js";import"./dnd-C-wSFxNw.js";import"./stripe-cKAAJElX.js";import"./lottie-CEtjeN1D.js";import"./lexical-giOgdSOI.js";import"./pdf-DUTZmsd9.js";import"./utils-Dtpsid9H.js";import"./empty-81kIjXLG.js";import"./pdf-lib-ClX4YCl0.js";import"./index-ClMSlAsZ.js";import"./url-Bo5dL9Xn.js";import"./index-DNgZGpyW.js";import"./decodeURIComponentSafe-bfkC_j1N.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="1db6d1ee-7fd1-4767-8797-91f37de30fe7",e._sentryDebugIdIdentifier="sentry-dbid-1db6d1ee-7fd1-4767-8797-91f37de30fe7")}catch{}})();const Je=e=>{switch(e){case"Complete":return"yes";case"Pending Review":case"Incomplete":return"partially";default:return"no"}},Ut=()=>{const e=_e(),l=Te(),i=se(),[o,p]=d.useState(!1),[u,c]=d.useState(!1),{tenantEmailDomain:v}=xe(),n=W.getSignedInUser(),{useFeatureGate:t}=Pe(),{isFeatureEnabled:C}=t(Z.isApAgingFeatureEnabled),{isFeatureEnabled:a}=t(Z.isArAgingFeatureEnabled),{isFeatureEnabled:A}=t(Z.isReferralFeatureEnabled),{isFeatureEnabled:w}=t(Z.isDebitCardFeatureEnabled),k=vt(),O=E((S=>Y(S))),P=E((S=>S.onboardingCustomerViewState.fetchState)),_=O.excludedResources,F=O.companyId??W.getSignedInUserTenant(v)?.companyId;if(n==null)throw Error("Can't access onboarding flow without signing in...");const m=Ee(w,O),b=we(O),D=[],V=_?.resources?.find((S=>S.resource==="/reports/top_expenses"))==null,h=_?.resources?.find((S=>S.resource==="/reports/task_card"))==null,r=O?.userRole!=null&&jn(O?.userRole),T=_?.resources?.find((S=>S.resource==="/bills"))==null&&!r,x=_?.resources?.find((S=>S.resource==="/reimbursements"))==null;V===!1&&D.push("top_expenses"),h===!1&&D.push("task_card"),T===!1&&D.push("bill_pay_card","bill_pay_promo_card"),x===!1&&D.push("reimbursement_card","reimbursement_promo_card"),D.push("zeni_accounts_promo_card","treasury_promo_card"),A===!1&&D.push("rewards_card");const f=E((S=>{const U=[];C===!1&&U.push("accounts_payable_aging"),a===!1&&U.push("accounts_receivable_aging"),U.push("zeni_accounts_promo_card","treasury_promo_card"),A===!1&&U.push("rewards_card"),k===!1&&U.push("expense_automation_card");const H=Bn(S,U);return Fn(H.reportsInOrder.map(($=>({fetchState:$.fetchState,error:$.error})))).fetchState}));d.useEffect((()=>{P!=="Completed"||o||m||b||(p(!0),i(Un(n.userId,F,O.tenantId,!0,!1,D)))}),[o,P,m,b,n,O.tenantId,i]);const j=d.useRef(!1),N=d.useCallback((()=>{const S={pathnameStackToGoBack:z(l.state?.pathnameStackToGoBack,l.pathname),message:"activation"};e(m?"../../checking":b?"../../cards":"../../dashboard",{state:S})}),[e,l,m,b]),G=d.useCallback((()=>{j.current||(j.current=!0,N())}),[N]);if(d.useEffect((()=>{const S=setTimeout((()=>c(!0)),3e3);return()=>clearTimeout(S)}),[]),d.useEffect((()=>{const S=setTimeout(G,6e3);return()=>clearTimeout(S)}),[G]),d.useEffect((()=>{m||b||!u||f!=="Completed"&&f!=="Error"||G()}),[u,f,m,b,G]),P!=="Completed")return s.jsx(Q,{to:"../"});const L=O.company?.companyOnboardingInfo?.onboardingInfo,ee={timeSinceQuoteSign:L?.onboardingTimeSinceQuoteSigned??"",timeSinceQuoteSignInMinutes:L?.onboardingToQuoteSignMinutes??0,isKybDone:Je(L?.businessVerified?.status),isKycDone:Je(L?.identityVerified?.status),paymentType:"",paymentSource:"",qboConnectionSource:L?.accountingConnectionCreationMode??""};return s.jsxs(s.Fragment,{children:[s.jsx(re,{analytics:g,onLoad:S=>S.trackOnboardingDashboardActivation(ee)}),s.jsx(_t,{show:!0,onComplete:G})]})},Se=["reading_books","finance_graph","reconciliation","cfo_foundation"],Ie=["llm_fine_tuning","rag_knowledge_graph","personalized_context"],Ze=(e,l)=>{const i=new Map(e.map((o=>[o.key,o])));return l.map((o=>{return p=i.get(o)?.status,p==="starting"||p==="building"?p:"idle";var p}))},Xe=(e,l)=>{if(e.length===0)return!1;const i=new Map(e.map((o=>[o.key,o])));return l.every((o=>i.get(o)?.status==="ready"))},Ye=De.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100vh;
|
|
4
4
|
background-color: ${e=>e.theme.colors.grey4};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as d}from"./liveblocks-CtP3KKBx.js";import{i as Z,j as S,g as J,u as q,h as ee,l as se,k as pa,n as St,o as F,N as On}from"./core-Du7UPqMS.js";import{fI as L,WD as at,bG as $,br as we,Y6 as Tn,ke as xn,Y7 as Ht,Y8 as wn,kh as _t,Y9 as Je,Ya as Pn,km as Fn,Yb as Xt,Yc as Rn,kq as kt,Yd as et,Ye as Bn,Yf as jn,WX as Yn,ls as Mn,Yg as Ln,bn as nt,Yh as fa,XB as he,bc as ha,lG as ga,lp as Ca,XD as ge,XC as oe,fH as ba,gd as Un,gt as yt,Yi as Vn,Yj as Gn,Yk as Sa,lU as Et,VY as Le,di as Ue,Ey as Nn,Yl as De,Er as Ve,Es as Ge,ER as Pe,EL as Ce,Ew as Ne,Ym as zn,c1 as ze,Yn as Kn,Yo as $n,Yp as _a,lZ as It,Ez as qn,Yq as Oe,Yr as Qn,ek as ot,Ax as ka,Ys as Zn,Yt as ya,Yu as Hn,Yv as Xn,Yw as Wn,Yx as vt,Vy as Dt,uh as Fe,m3 as Re,pZ as Ot,EC as Jn,Yy as le,E$ as Tt,AE as eo,AL as to,Yz as ao,YA as no,Et as Wt,YB as oo,AA as Te,Av as Aa,YC as Jt,YD as so,YE as xt,Vx as wt,CI as Ea,YF as ro,YG as Ia,YH as io,YI as co,YJ as lo,YK as Pt,pX as Ft,EB as uo,YL as de,CX as mo,D2 as po,YM as fo,YN as ho,Ev as ea,YO as go,CG as va,YP as ta,YQ as Co,bq as Da,F4 as Oa,YR as bo,YS as Ta,YT as So,YU as _o,YV as ko,YW as Rt,pY as Bt,EA as yo,YX as ue,EY as Ao,E_ as Eo,YY as Io,YZ as vo,Eu as aa,Y_ as Do,F2 as xa,Y$ as na,Z0 as Oo,Z1 as To,Z2 as wa,p$ as Pa,C3 as xo,de as wo,pU as Po,UV as Fo,q9 as Ro,Z3 as Bo,Z4 as jo,Z5 as Yo,b5 as jt,q3 as Mo,ih as Lo,gL as Uo,q2 as Vo,li as Go,q0 as No,p_ as zo,e1 as Ko,e0 as $o}from"./zeni-epic-state-SU_Ch21f.js";import{z as U,at as re,k as R,j as O,G as H,bc as qo,aq as Ke,a6 as $e,bd as Fa,R as z,be as Qo,bf as Ra,bg as Zo,bh as Ho,a as Ba,$ as ja,e as Ya,ap as Xo,bi as Wo,am as Jo,p as be,bj as Ma,v as me,bk as La,bl as Ua,as as Va,bm as es,ag as qe,c as Y,J as Qe,bn as ts,I as as,bo as ns,K as os,h as ss,a2 as rs,ao as is,bp as cs,bq as ls,br as ds,bs as xe}from"./index-Bkw6b9BJ.js";import{u as us,n as Yt}from"./mui-DWdv7IPr.js";import{a as C}from"./sentry-D1S3f4Dm.js";import{w as Ga}from"./withTransactionSidePanel-ChnX-EmP.js";import{c as Na,t as Be,f as Se,b as Mt,a as Lt,v as ms}from"./routePaths-BNm3GfSn.js";import{u as ie}from"./useAskAiCfoHostNavButtonProps-CzbzINoa.js";import Me from"./NotFoundScreen-hkzdCFF0.js";import{t as st}from"./reportTimeframe-CV2nBGFr.js";import{u as Ut}from"./useInitialThreadRequest-CjVnEZkt.js";import{t as za}from"./analyticsHelper-CxSqx_Vn.js";import{C as ps}from"./CompanyPassportScreen-4AwGBpLN.js";import{u as fs}from"./useAiCfoDashboardSuggestedQuestionsChips-CIT2ORI9.js";import{F as hs}from"./FeaturePreviewScreen-DC7afd7c.js";import"./recharts-BZz4-Irz.js";import"./analytics-womxmO1W.js";import"./plaid-D1Y_x9zk.js";import"./dnd-S6NFwVgt.js";import"./stripe-cKAAJElX.js";import"./lottie-C1ice4dY.js";import"./lexical-Brc0Kroj.js";import"./pdf-CyjPx40H.js";import"./utils-DWeOhfkQ.js";import"./TransactionDetailScreen-DtJ6rMlR.js";import"./decodeURIComponentSafe-DbtFOMtW.js";import"./expenseAutomationHelper-hfq5qiQV.js";import"./stripSplatSuffix-RB0FcK3v.js";import"./MobileAppDrawer-bVKqFYWU.js";import"./InboxNotificationsProvider-CzmfZzrH.js";import"./useTaskManagerAccess-CLdmxrLC.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]="29f7c19e-fad0-4acc-a4c0-692eec03c80e",e._sentryDebugIdIdentifier="sentry-dbid-29f7c19e-fad0-4acc-a4c0-692eec03c80e")}catch{}})();const gs=Ga((function({openTransactionPanel:e,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n}){const{vendorId:o,reportDate:r}=Z(),s=U.getSignedInUser(),i=S((D=>D.tenantState.currentTenantId)),c=S((D=>L(D))),{tenantEmailDomain:m}=Z(),u=J(),p=c?.companyName??"",h={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:i??""},l=C.useMemo((()=>({authParams:h,companyName:p,downloadEndPoint:`${re}/agingDetailedReport`,timezone:at()})),[]),f=C.useMemo((()=>r!=null?$(r):we()),[r]),b=q(),g=ee(),k=S((D=>Tn(D,f,o))),I=C.useCallback((()=>{o!=null&&k.fetchState!=="In-Progress"&&k.fetchState!=="Completed"&&b(xn(o,f))}),[f]),A=C.useCallback((()=>{g("../../",{relative:"path"})}),[]),_=C.useCallback(((D,x)=>{b(Ht({sortKey:D,sortOrder:x}))}),[]),w=C.useCallback((D=>{b(Ht({downloadState:D}))}),[]),V=C.useCallback((D=>{if(e)e(D.transactionId,D.transactionType);else if(m!=null){const x=Na({id:D.transactionId,type:D.transactionType},m);g(x);const y=R(u.state?.pathnameStackToGoBack,u.pathname);g(x,{state:{pathnameStackToGoBack:y}})}}),[m,e]),v=C.useCallback((()=>{k.vendor!=null&&O.trackApAgingDetail("AP Aging",f.format(H.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),k.vendor.id,k.vendor.name)}),[k.vendor,f]);return C.useEffect((()=>{I()}),[]),C.useEffect((()=>{k.fetchState==="Completed"&&v()}),[v,k.fetchState]),d.jsx(qo,{apAgingDetail:k,downloadParams:l,reportDate:f,analytics:O,onTransactionClick:V,onReload:I,onBackClick:A,onColumnSortConfigChanged:_,updateDownloadStateHandler:w,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n})})),Cs=()=>{const e=q(),a=ee(),t=S((_=>wn(_))),{isAiCfoAccessEnabled:n,onAskAiCfoClick:o}=ie({mobileExploreReferrer:"AP Aging"});Ke({isDataReady:t.fetchState==="Completed"});const r=U.getSignedInUser(),s=S((_=>_.tenantState.currentTenantId)),i=S((_=>L(_))),c=i?.companyName??"",m={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:s??""},u=C.useMemo((()=>({authParams:m,companyName:c,downloadEndPoint:`${re}/agingReport`,timezone:at()})),[]),p=t.apAgingUIState.selectedDate??we(),h=C.useCallback((()=>{t.fetchState!=="In-Progress"&&t.fetchState!=="Completed"&&e(_t(p))}),[]);C.useEffect((()=>{h()}),[]);const l=C.useCallback((()=>{a("../",{relative:"path"})}),[]),f=C.useCallback((_=>{e(Je({searchString:_}))}),[]),b=C.useCallback(((_,w)=>{e(Je({sortKey:w,sortOrder:_}))}),[]),g=C.useCallback((_=>{a(`./${_}/${p.format(H.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`)}),[p]),k=C.useCallback((_=>{e(Je({downloadState:_}))}),[]),I=C.useCallback(((_,w)=>{}),[]),A=C.useCallback(((_,w)=>{e(Je({selectedDate:_,agingDateSelectionType:w})),e(_t(_))}),[]);return d.jsxs(d.Fragment,{children:[t.fetchState==="Completed"?d.jsx($e,{analytics:O,onLoad:_=>_.trackPageLoaded(z.Event.agingReport,"AP Aging")}):null,d.jsx(Fa,{uiState:t.apAgingUIState,report:t,downloadParams:u,analytics:O,onReloadReport:h,onBackClick:l,onSearchTextChange:f,onSortOrderChange:b,onEntityNameClick:g,updateDownloadStateHandler:k,onSelectedDateChanged:A,onNodeCollapseToggled:I,isAiCfoAccessEnabled:n,onAskAiCfoClick:o})]})},bs=Ga((function({openTransactionPanel:e,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n}){const{customerId:o,reportDate:r}=Z(),s=U.getSignedInUser(),i=S((v=>L(v))),{tenantEmailDomain:c}=Z(),m=J(),u=i.companyName,p={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:i.tenantId},h=C.useMemo((()=>({authParams:p,companyName:u,downloadEndPoint:`${re}/agingDetailedReport`,timezone:at()})),[]),l=C.useMemo((()=>r!=null?$(r):we()),[r]),f=q(),b=ee(),g=S((v=>Pn(v,l,o))),k=C.useCallback((()=>{o!=null&&g.fetchState!=="In-Progress"&&g.fetchState!=="Completed"&&f(Fn(o,l))}),[l]),I=C.useCallback((()=>{b("../../",{relative:"path"})}),[]),A=C.useCallback(((v,D)=>{f(Xt({sortKey:v,sortOrder:D}))}),[]),_=C.useCallback((v=>{f(Xt({downloadState:v}))}),[]),w=C.useCallback((v=>{if(e)e(v.transactionId,v.transactionType);else if(c!=null){const D=Na({id:v.transactionId,type:v.transactionType},c);b(D);const x=R(m.state?.pathnameStackToGoBack,m.pathname);b(D,{state:{pathnameStackToGoBack:x}})}}),[c,e]),V=C.useCallback((()=>{g.customer!=null&&O.trackArAgingDetail("AR Aging",l.format(H.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),g.customer.id,g.customer.name)}),[g.customer,l]);return C.useEffect((()=>{k()}),[]),C.useEffect((()=>{g.fetchState==="Completed"&&V()}),[g.fetchState,V]),d.jsx(Qo,{arAgingDetail:g,downloadParams:h,reportDate:l,analytics:O,onTransactionClick:w,onReload:k,onBackClick:I,onColumnSortConfigChanged:A,updateDownloadStateHandler:_,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n})})),Ss=()=>{const e=q(),a=ee(),t=S((A=>Rn(A))),{isAiCfoAccessEnabled:n,onAskAiCfoClick:o}=ie({mobileExploreReferrer:"AR Aging"});Ke({isDataReady:t.fetchState==="Completed"});const r=U.getSignedInUser(),s=S((A=>L(A))),i=s.companyName,c={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:s.tenantId},m=C.useMemo((()=>({authParams:c,companyName:i,downloadEndPoint:`${re}/agingReport`,timezone:at()})),[]),u=t.arAgingUIState.selectedDate??we(),p=C.useCallback((()=>{t.fetchState!=="In-Progress"&&t.fetchState!=="Completed"&&e(kt(u))}),[]);C.useEffect((()=>{p()}),[]);const h=C.useCallback((()=>{a("../",{relative:"path"})}),[]),l=C.useCallback((A=>{e(et({searchString:A}))}),[]),f=C.useCallback(((A,_)=>{e(et({sortKey:_,sortOrder:A}))}),[]),b=C.useCallback((A=>{a(`./${A}/${u.format(H.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`)}),[u]),g=C.useCallback((A=>{e(et({downloadState:A}))}),[]),k=C.useCallback(((A,_)=>{e(et({selectedDate:A,agingDateSelectionType:_})),e(kt(A))}),[]),I=C.useCallback(((A,_)=>{e(Bn({nodeId:A,isCollapsed:_}))}),[]);return d.jsxs(d.Fragment,{children:[t.fetchState==="Completed"?d.jsx($e,{analytics:O,onLoad:A=>A.trackPageLoaded(z.Event.agingReport,"AR Aging")}):null,d.jsx(Fa,{uiState:t.arAgingUIState,report:t,downloadParams:m,analytics:O,onReloadReport:p,onBackClick:h,onSearchTextChange:l,onSortOrderChange:f,onEntityNameClick:b,updateDownloadStateHandler:g,onSelectedDateChanged:k,onNodeCollapseToggled:I,isAiCfoAccessEnabled:n,onAskAiCfoClick:o})]})},Ka=(e,a)=>({key:a,title:e.accountName,amount:e.balance?.available,logoUri:e.logo?.toString(),source:e});function $a(e,a){const t=Yn(a.firstMonthOfFY);return{onItemClick:(n,o)=>{const r=o.accountName===""?o.accountDescription:o.accountName,s=Be(a.tenantEmailDomain,o.accountId,o.accountType,r,"quarter",t,!1),i=R(a.location.state?.pathnameStackToGoBack,a.location.pathname);a.navigate(s,{state:{pathnameStackToGoBack:i,referrer:a.referrerType}})},onSetAccountsStatementDate:(n,o)=>{e(Mn(n,o))}}}const _s=se((function(e){const a=jn(e).accountsInOrder.map(((t,n)=>Ka(t,n)));return{sectionTitle:H.getLocalizedStrings().balanceCard.cashBalanceSectionTitle,transactionArray:a,fetchState:e.cashBalanceState.fetchState,analytics:O}}),$a)(Ra),ks=se((function(e){const a=Ln(e).accountsInOrder.map(((o,r)=>Ka(o,r))),t=U.getSignedInUser(),n=nt(t);return{sectionTitle:H.getLocalizedStrings().balanceCard.cardBalanceSectionTitle,transactionArray:a,isZeniUser:n,fetchState:e.cardBalanceState.fetchState,analytics:O}}),$a)(Ra);function ys(){const e=ee(),a=J(),{tenantEmailDomain:t}=Z(),n=S((o=>L(o).company?.companyInfo.firstMonthOfFY??1));return S((o=>o.cashBalanceState.fetchState))==="Error"?d.jsx(Me,{}):d.jsx(_s,{tenantEmailDomain:t,location:a,referrerType:"Cash Balance",navigate:e,firstMonthOfFY:n})}function As(){const e=ee(),a=J(),{tenantEmailDomain:t}=Z(),n=S((o=>L(o).company?.companyInfo.firstMonthOfFY??1));return S((o=>o.cardBalanceState.fetchState))==="Error"?d.jsx(Me,{}):d.jsx(ks,{tenantEmailDomain:t,location:a,referrerType:"Card Balance",navigate:e,firstMonthOfFY:n})}const Es=Yt.div`
|
|
1
|
+
import{j as d}from"./liveblocks-DdKiKKK0.js";import{i as Z,j as S,g as J,u as q,h as ee,l as se,k as pa,n as St,o as F,N as On}from"./core-BZ632Tu-.js";import{fI as L,WD as at,bG as $,br as we,Y6 as Tn,ke as xn,Y7 as Ht,Y8 as wn,kh as _t,Y9 as Je,Ya as Pn,km as Fn,Yb as Xt,Yc as Rn,kq as kt,Yd as et,Ye as Bn,Yf as jn,WX as Yn,ls as Mn,Yg as Ln,bn as nt,Yh as fa,XB as he,bc as ha,lG as ga,lp as Ca,XD as ge,XC as oe,fH as ba,gd as Un,gt as yt,Yi as Vn,Yj as Gn,Yk as Sa,lU as Et,VY as Le,di as Ue,Ey as Nn,Yl as De,Er as Ve,Es as Ge,ER as Pe,EL as Ce,Ew as Ne,Ym as zn,c1 as ze,Yn as Kn,Yo as $n,Yp as _a,lZ as It,Ez as qn,Yq as Oe,Yr as Qn,ek as ot,Ax as ka,Ys as Zn,Yt as ya,Yu as Hn,Yv as Xn,Yw as Wn,Yx as vt,Vy as Dt,uh as Fe,m3 as Re,pZ as Ot,EC as Jn,Yy as le,E$ as Tt,AE as eo,AL as to,Yz as ao,YA as no,Et as Wt,YB as oo,AA as Te,Av as Aa,YC as Jt,YD as so,YE as xt,Vx as wt,CI as Ea,YF as ro,YG as Ia,YH as io,YI as co,YJ as lo,YK as Pt,pX as Ft,EB as uo,YL as de,CX as mo,D2 as po,YM as fo,YN as ho,Ev as ea,YO as go,CG as va,YP as ta,YQ as Co,bq as Da,F4 as Oa,YR as bo,YS as Ta,YT as So,YU as _o,YV as ko,YW as Rt,pY as Bt,EA as yo,YX as ue,EY as Ao,E_ as Eo,YY as Io,YZ as vo,Eu as aa,Y_ as Do,F2 as xa,Y$ as na,Z0 as Oo,Z1 as To,Z2 as wa,p$ as Pa,C3 as xo,de as wo,pU as Po,UV as Fo,q9 as Ro,Z3 as Bo,Z4 as jo,Z5 as Yo,b5 as jt,q3 as Mo,ih as Lo,gL as Uo,q2 as Vo,li as Go,q0 as No,p_ as zo,e1 as Ko,e0 as $o}from"./zeni-epic-state-NMk7iCbI.js";import{z as U,at as re,k as R,j as O,G as H,bc as qo,aq as Ke,a6 as $e,bd as Fa,R as z,be as Qo,bf as Ra,bg as Zo,bh as Ho,a as Ba,$ as ja,e as Ya,ap as Xo,bi as Wo,am as Jo,p as be,bj as Ma,v as me,bk as La,bl as Ua,as as Va,bm as es,ag as qe,c as Y,J as Qe,bn as ts,I as as,bo as ns,K as os,h as ss,a2 as rs,ao as is,bp as cs,bq as ls,br as ds,bs as xe}from"./index-2z_UhewI.js";import{u as us,n as Yt}from"./mui-Cs_QYv-a.js";import{a as C}from"./sentry-DB6LQHGv.js";import{w as Ga}from"./withTransactionSidePanel-CnbnJs31.js";import{c as Na,t as Be,f as Se,b as Mt,a as Lt,v as ms}from"./routePaths-B612B1Tr.js";import{u as ie}from"./useAskAiCfoHostNavButtonProps-MWUhH5nn.js";import Me from"./NotFoundScreen-BHbERff5.js";import{t as st}from"./reportTimeframe-C3x4DuNY.js";import{u as Ut}from"./useInitialThreadRequest-V3A7xn6Q.js";import{t as za}from"./analyticsHelper-CxsxDhJG.js";import{C as ps}from"./CompanyPassportScreen-B4p-K3EX.js";import{u as fs}from"./useAiCfoDashboardSuggestedQuestionsChips-BcR2jE5t.js";import{F as hs}from"./FeaturePreviewScreen-D1tr9i9g.js";import"./recharts-zSkIVXTF.js";import"./analytics-Cvc_z8O9.js";import"./plaid-DbjTYhB2.js";import"./dnd-C-wSFxNw.js";import"./stripe-cKAAJElX.js";import"./lottie-CEtjeN1D.js";import"./lexical-giOgdSOI.js";import"./pdf-DUTZmsd9.js";import"./utils-Dtpsid9H.js";import"./TransactionDetailScreen-DOyHBOWu.js";import"./decodeURIComponentSafe-bfkC_j1N.js";import"./expenseAutomationHelper-9jvrnChU.js";import"./stripSplatSuffix-BEbNpKe3.js";import"./MobileAppDrawer--MW8DiZa.js";import"./InboxNotificationsProvider-t3V3ZWTJ.js";import"./useTaskManagerAccess-DhWCd5Vz.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]="29f7c19e-fad0-4acc-a4c0-692eec03c80e",e._sentryDebugIdIdentifier="sentry-dbid-29f7c19e-fad0-4acc-a4c0-692eec03c80e")}catch{}})();const gs=Ga((function({openTransactionPanel:e,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n}){const{vendorId:o,reportDate:r}=Z(),s=U.getSignedInUser(),i=S((D=>D.tenantState.currentTenantId)),c=S((D=>L(D))),{tenantEmailDomain:m}=Z(),u=J(),p=c?.companyName??"",h={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:i??""},l=C.useMemo((()=>({authParams:h,companyName:p,downloadEndPoint:`${re}/agingDetailedReport`,timezone:at()})),[]),f=C.useMemo((()=>r!=null?$(r):we()),[r]),b=q(),g=ee(),k=S((D=>Tn(D,f,o))),I=C.useCallback((()=>{o!=null&&k.fetchState!=="In-Progress"&&k.fetchState!=="Completed"&&b(xn(o,f))}),[f]),A=C.useCallback((()=>{g("../../",{relative:"path"})}),[]),_=C.useCallback(((D,x)=>{b(Ht({sortKey:D,sortOrder:x}))}),[]),w=C.useCallback((D=>{b(Ht({downloadState:D}))}),[]),V=C.useCallback((D=>{if(e)e(D.transactionId,D.transactionType);else if(m!=null){const x=Na({id:D.transactionId,type:D.transactionType},m);g(x);const y=R(u.state?.pathnameStackToGoBack,u.pathname);g(x,{state:{pathnameStackToGoBack:y}})}}),[m,e]),v=C.useCallback((()=>{k.vendor!=null&&O.trackApAgingDetail("AP Aging",f.format(H.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),k.vendor.id,k.vendor.name)}),[k.vendor,f]);return C.useEffect((()=>{I()}),[]),C.useEffect((()=>{k.fetchState==="Completed"&&v()}),[v,k.fetchState]),d.jsx(qo,{apAgingDetail:k,downloadParams:l,reportDate:f,analytics:O,onTransactionClick:V,onReload:I,onBackClick:A,onColumnSortConfigChanged:_,updateDownloadStateHandler:w,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n})})),Cs=()=>{const e=q(),a=ee(),t=S((_=>wn(_))),{isAiCfoAccessEnabled:n,onAskAiCfoClick:o}=ie({mobileExploreReferrer:"AP Aging"});Ke({isDataReady:t.fetchState==="Completed"});const r=U.getSignedInUser(),s=S((_=>_.tenantState.currentTenantId)),i=S((_=>L(_))),c=i?.companyName??"",m={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:s??""},u=C.useMemo((()=>({authParams:m,companyName:c,downloadEndPoint:`${re}/agingReport`,timezone:at()})),[]),p=t.apAgingUIState.selectedDate??we(),h=C.useCallback((()=>{t.fetchState!=="In-Progress"&&t.fetchState!=="Completed"&&e(_t(p))}),[]);C.useEffect((()=>{h()}),[]);const l=C.useCallback((()=>{a("../",{relative:"path"})}),[]),f=C.useCallback((_=>{e(Je({searchString:_}))}),[]),b=C.useCallback(((_,w)=>{e(Je({sortKey:w,sortOrder:_}))}),[]),g=C.useCallback((_=>{a(`./${_}/${p.format(H.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`)}),[p]),k=C.useCallback((_=>{e(Je({downloadState:_}))}),[]),I=C.useCallback(((_,w)=>{}),[]),A=C.useCallback(((_,w)=>{e(Je({selectedDate:_,agingDateSelectionType:w})),e(_t(_))}),[]);return d.jsxs(d.Fragment,{children:[t.fetchState==="Completed"?d.jsx($e,{analytics:O,onLoad:_=>_.trackPageLoaded(z.Event.agingReport,"AP Aging")}):null,d.jsx(Fa,{uiState:t.apAgingUIState,report:t,downloadParams:u,analytics:O,onReloadReport:h,onBackClick:l,onSearchTextChange:f,onSortOrderChange:b,onEntityNameClick:g,updateDownloadStateHandler:k,onSelectedDateChanged:A,onNodeCollapseToggled:I,isAiCfoAccessEnabled:n,onAskAiCfoClick:o})]})},bs=Ga((function({openTransactionPanel:e,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n}){const{customerId:o,reportDate:r}=Z(),s=U.getSignedInUser(),i=S((v=>L(v))),{tenantEmailDomain:c}=Z(),m=J(),u=i.companyName,p={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:i.tenantId},h=C.useMemo((()=>({authParams:p,companyName:u,downloadEndPoint:`${re}/agingDetailedReport`,timezone:at()})),[]),l=C.useMemo((()=>r!=null?$(r):we()),[r]),f=q(),b=ee(),g=S((v=>Pn(v,l,o))),k=C.useCallback((()=>{o!=null&&g.fetchState!=="In-Progress"&&g.fetchState!=="Completed"&&f(Fn(o,l))}),[l]),I=C.useCallback((()=>{b("../../",{relative:"path"})}),[]),A=C.useCallback(((v,D)=>{f(Xt({sortKey:v,sortOrder:D}))}),[]),_=C.useCallback((v=>{f(Xt({downloadState:v}))}),[]),w=C.useCallback((v=>{if(e)e(v.transactionId,v.transactionType);else if(c!=null){const D=Na({id:v.transactionId,type:v.transactionType},c);b(D);const x=R(m.state?.pathnameStackToGoBack,m.pathname);b(D,{state:{pathnameStackToGoBack:x}})}}),[c,e]),V=C.useCallback((()=>{g.customer!=null&&O.trackArAgingDetail("AR Aging",l.format(H.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),g.customer.id,g.customer.name)}),[g.customer,l]);return C.useEffect((()=>{k()}),[]),C.useEffect((()=>{g.fetchState==="Completed"&&V()}),[g.fetchState,V]),d.jsx(Qo,{arAgingDetail:g,downloadParams:h,reportDate:l,analytics:O,onTransactionClick:w,onReload:k,onBackClick:I,onColumnSortConfigChanged:A,updateDownloadStateHandler:_,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n})})),Ss=()=>{const e=q(),a=ee(),t=S((A=>Rn(A))),{isAiCfoAccessEnabled:n,onAskAiCfoClick:o}=ie({mobileExploreReferrer:"AR Aging"});Ke({isDataReady:t.fetchState==="Completed"});const r=U.getSignedInUser(),s=S((A=>L(A))),i=s.companyName,c={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:s.tenantId},m=C.useMemo((()=>({authParams:c,companyName:i,downloadEndPoint:`${re}/agingReport`,timezone:at()})),[]),u=t.arAgingUIState.selectedDate??we(),p=C.useCallback((()=>{t.fetchState!=="In-Progress"&&t.fetchState!=="Completed"&&e(kt(u))}),[]);C.useEffect((()=>{p()}),[]);const h=C.useCallback((()=>{a("../",{relative:"path"})}),[]),l=C.useCallback((A=>{e(et({searchString:A}))}),[]),f=C.useCallback(((A,_)=>{e(et({sortKey:_,sortOrder:A}))}),[]),b=C.useCallback((A=>{a(`./${A}/${u.format(H.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`)}),[u]),g=C.useCallback((A=>{e(et({downloadState:A}))}),[]),k=C.useCallback(((A,_)=>{e(et({selectedDate:A,agingDateSelectionType:_})),e(kt(A))}),[]),I=C.useCallback(((A,_)=>{e(Bn({nodeId:A,isCollapsed:_}))}),[]);return d.jsxs(d.Fragment,{children:[t.fetchState==="Completed"?d.jsx($e,{analytics:O,onLoad:A=>A.trackPageLoaded(z.Event.agingReport,"AR Aging")}):null,d.jsx(Fa,{uiState:t.arAgingUIState,report:t,downloadParams:m,analytics:O,onReloadReport:p,onBackClick:h,onSearchTextChange:l,onSortOrderChange:f,onEntityNameClick:b,updateDownloadStateHandler:g,onSelectedDateChanged:k,onNodeCollapseToggled:I,isAiCfoAccessEnabled:n,onAskAiCfoClick:o})]})},Ka=(e,a)=>({key:a,title:e.accountName,amount:e.balance?.available,logoUri:e.logo?.toString(),source:e});function $a(e,a){const t=Yn(a.firstMonthOfFY);return{onItemClick:(n,o)=>{const r=o.accountName===""?o.accountDescription:o.accountName,s=Be(a.tenantEmailDomain,o.accountId,o.accountType,r,"quarter",t,!1),i=R(a.location.state?.pathnameStackToGoBack,a.location.pathname);a.navigate(s,{state:{pathnameStackToGoBack:i,referrer:a.referrerType}})},onSetAccountsStatementDate:(n,o)=>{e(Mn(n,o))}}}const _s=se((function(e){const a=jn(e).accountsInOrder.map(((t,n)=>Ka(t,n)));return{sectionTitle:H.getLocalizedStrings().balanceCard.cashBalanceSectionTitle,transactionArray:a,fetchState:e.cashBalanceState.fetchState,analytics:O}}),$a)(Ra),ks=se((function(e){const a=Ln(e).accountsInOrder.map(((o,r)=>Ka(o,r))),t=U.getSignedInUser(),n=nt(t);return{sectionTitle:H.getLocalizedStrings().balanceCard.cardBalanceSectionTitle,transactionArray:a,isZeniUser:n,fetchState:e.cardBalanceState.fetchState,analytics:O}}),$a)(Ra);function ys(){const e=ee(),a=J(),{tenantEmailDomain:t}=Z(),n=S((o=>L(o).company?.companyInfo.firstMonthOfFY??1));return S((o=>o.cashBalanceState.fetchState))==="Error"?d.jsx(Me,{}):d.jsx(_s,{tenantEmailDomain:t,location:a,referrerType:"Cash Balance",navigate:e,firstMonthOfFY:n})}function As(){const e=ee(),a=J(),{tenantEmailDomain:t}=Z(),n=S((o=>L(o).company?.companyInfo.firstMonthOfFY??1));return S((o=>o.cardBalanceState.fetchState))==="Error"?d.jsx(Me,{}):d.jsx(ks,{tenantEmailDomain:t,location:a,referrerType:"Card Balance",navigate:e,firstMonthOfFY:n})}const Es=Yt.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-DdKiKKK0.js";import{a as u}from"./sentry-DB6LQHGv.js";import{u as y,j as b,l as U,g as w,N as A}from"./core-BZ632Tu-.js";import{UE as N,fI as _,go as k,UF as L,pW as R,UG as z}from"./zeni-epic-state-NMk7iCbI.js";import{u as j,z as f,L as E,t as I,G as O,b as $}from"./index-2z_UhewI.js";import"./mui-Cs_QYv-a.js";import{t as G}from"./getLocaleForTenant-Cq0erYvs.js";import"./recharts-zSkIVXTF.js";import"./analytics-Cvc_z8O9.js";import"./plaid-DbjTYhB2.js";import"./dnd-C-wSFxNw.js";import"./stripe-cKAAJElX.js";import"./lottie-CEtjeN1D.js";import"./lexical-giOgdSOI.js";import"./pdf-DUTZmsd9.js";import"./utils-Dtpsid9H.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]="75f9cded-89a6-4505-a312-31ecfd9fccec",t._sentryDebugIdIdentifier="sentry-dbid-75f9cded-89a6-4505-a312-31ecfd9fccec")}catch{}})();const P=U((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=w(),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=T(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,x)=>l||i.split("/").find((D=>D===x))!=null),!1))c=i,i.includes("ai-cfo")&&a!=null&&(g=a.aiCfoRef??null,S=a.aiCfoEmailRefId??null);else{const l=T(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 F=$(c,p);return v.jsx(A,{to:F,replace:!0,state:{...r.state,origin:"",message:m,aiCfoInitialQuestion:d,aiCfoShouldSubmit:e,aiCfoRef:g,aiCfoEmailRefId:S}})}}));function oe(){const t=y(),{setLoading:s,clearAllLoading:o}=j(),h=u.useRef(!1),r=u.useRef(!1),p=u.useRef(null),m=b((e=>N(e))),n=b((e=>e.tenantState.fetchState)),i=b((e=>e.tenantState.error)),a=b((e=>e.tenantState.activeTenantFetchState.fetchState)),c=b((e=>_(e))),d=f.getSignedInUser();return u.useLayoutEffect((()=>{const e=f.getActiveTenantForUser()?.tenantId??null;p.current!==e&&(p.current=e,h.current=!1,r.current=!1,s(E.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(E.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||(O.updateAppLocaleID(G(c)),o())}),[n,a,c]),v.jsx(P,{})}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 T(t){for(const s of Q)if(t.toLocaleLowerCase().includes(s))return q[s]}export{oe as default};
|
package/dist/assets/{DomesticWireDetailScreen-CaGljNLv.js → DomesticWireDetailScreen-CzlGB3ky.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as l}from"./liveblocks-
|
|
1
|
+
import{j as l}from"./liveblocks-DdKiKKK0.js";import{h as w,g as C,j as h,l as P,i as V}from"./core-BZ632Tu-.js";import{ZL as k,ZS as J,gJ as L,gI as M,gH as Q,kT as W,XC as X,uV as q,fI as B,Zi as D,kR as T,ZM as S,ZV as F,kP as G,la as j}from"./zeni-epic-state-NMk7iCbI.js";import{bO as K,$ as R,p as Z,z as N,a2 as p,c as v,a5 as U,bP as Y,E as O,bQ as ee,k as te}from"./index-2z_UhewI.js";import{u as H,n as z}from"./mui-Cs_QYv-a.js";import"./sentry-DB6LQHGv.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]="41eeb8ee-5ae2-4416-9f24-c9d50b1193f1",e._sentryDebugIdIdentifier="sentry-dbid-41eeb8ee-5ae2-4416-9f24-c9d50b1193f1")}catch{}})();const ae=P(null,(function(e,t){return{onSaveVendor:a=>{e(W(t.vendorId!==void 0?t.vendorId:void 0,t.billId,void 0,t.isExpressPayPage)),e(X("common")),a!=null&&e(q(a))},onGetOtp:a=>{e(Q(a,"BillPayVendor"))},onResendOtp:a=>{e(M(a,"BillPayVendor"))},onVerifyOtp:(a,n)=>{e(L(a,n,"BillPayVendor"))},onVerifyOtpSuccess:(a,n,o)=>{e(J(a,n,o))}}}))(K);function _({vendorId:e,billId:t,isExpressPayPage:a}){const n=w(),o=C(),s=h((c=>k(c,e)));return l.jsx(ae,{location:o,navigate:n,vendorId:e,billId:t,vendorViewDetails:s,isExpressPayPage:a??!1})}const ne=z.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100vh;
|
|
4
4
|
width: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-
|
|
1
|
+
import{j as i}from"./liveblocks-DdKiKKK0.js";import{$ as f,a9 as l}from"./index-2z_UhewI.js";import{u as c,D as p}from"./mui-Cs_QYv-a.js";import"./sentry-DB6LQHGv.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]="0a5deef5-89fb-4f1a-a578-78487c6fdc33",e._sentryDebugIdIdentifier="sentry-dbid-0a5deef5-89fb-4f1a-a578-78487c6fdc33")}catch{}})();const u={drawerLeftMargin:new l(0,0,240)};function h(e){const{isOpen:r,drawerLeftMargin:o,children:a,onClose:t}=e,n=f(),s=o?.valuePx(n)??u.drawerLeftMargin.valuePx(n),d=c();return i.jsx(p,{anchor:"right",open:r,PaperProps:{style:{width:`calc(100% - ${s})`}},slotProps:{backdrop:{style:{backgroundColor:d.colors.black,opacity:.8,cursor:"pointer"}}},onClose:t,children:a})}export{h as D};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-
|
|
1
|
+
import{j as s}from"./liveblocks-DdKiKKK0.js";import{a as c}from"./sentry-DB6LQHGv.js";import{h as v,u as A,g as G,i as F,j as d,N as q,l as O,n as Y,o as N}from"./core-BZ632Tu-.js";import{XO as _,fI as W,WY as M,n3 as R,SX as k,XT as $,XB as z,m3 as V,SY as S,X1 as H,X2 as J,XD as K,XC as L}from"./zeni-epic-state-NMk7iCbI.js";import{b9 as Q,j as U,a2 as Z,k as tt}from"./index-2z_UhewI.js";import"./mui-Cs_QYv-a.js";import{d as b}from"./decodeURIComponentSafe-bfkC_j1N.js";import{w as et}from"./withTransactionSidePanel-CnbnJs31.js";import{f as nt,c as at}from"./routePaths-B612B1Tr.js";import"./recharts-zSkIVXTF.js";import"./analytics-Cvc_z8O9.js";import"./plaid-DbjTYhB2.js";import"./dnd-C-wSFxNw.js";import"./stripe-cKAAJElX.js";import"./lottie-CEtjeN1D.js";import"./lexical-giOgdSOI.js";import"./pdf-DUTZmsd9.js";import"./utils-Dtpsid9H.js";import"./useAskAiCfoHostNavButtonProps-MWUhH5nn.js";import"./TransactionDetailScreen-DOyHBOWu.js";import"./useInitialThreadRequest-V3A7xn6Q.js";import"./expenseAutomationHelper-9jvrnChU.js";import"./stripSplatSuffix-BEbNpKe3.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new n.Error().stack;t&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[t]="3eb5c4c9-8bec-4931-9793-5cd1c5783f05",n._sentryDebugIdIdentifier="sentry-dbid-3eb5c4c9-8bec-4931-9793-5cd1c5783f05")}catch{}})();const ot=O((function(n,t){const e=t.entity,o=$(n,t.entity,"EntityDetail");return{selectedEntity:e,autoCompleteData:{autoCompleteText:e.name,entityAutoCompleteView:z(n,"common")},trendWithTransactionsReport:o,analytics:U,isAccountingClassesEnabled:V(n)}}),(function(n,t){return{onTransactionItemClick:e=>{if(t.openTransactionPanel)return void t.openTransactionPanel(e.id,e.type);const o=`${at(e,t.tenantEmailDomain)}`,l=tt(t.location.state?.pathnameStackToGoBack,t.location.pathname);t.navigate(o,{state:{pathnameStackToGoBack:l}})},autoCompleteActions:{onAutoCompleteInputChange:e=>{e.trim().length>=2?n(K({searchString:e,searchOrigin:"common"})):e.trim().length===0&&n(L("common"))},onAutoCompleteEntity:e=>{const o=nt(e,t.tenantEmailDomain);n(H()),n(J()),t.resetTrendIsFetchedStates(),t.navigate(o,{replace:!0,state:{pathnameStackToGoBack:t.location.state?.pathnameStackToGoBack}})},onCancelAutoComplete:()=>{const e=Z(t.location.state?.pathnameStackToGoBack),o=e.poppedPathname??I();t.navigate(o,{state:{pathnameStackToGoBack:e.newStack}})}},onTrendSelectedPeriodChange:e=>{if(t.closeSidePanel?.(),e==null)t.defaultTransactionTimePeriod!=null&&n(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};n(k(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:e.addTimePeriod})),n(S(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:o}))}}}}))(Q),it=et((function({entityType:n,...t}){const e=v(),o=A(),l=G(),[m,T]=c.useState(!1),[h,D]=c.useState(!1),{tenantEmailDomain:C,entityIdEncoded:j,entityNameEncoded:x}=F(),r=b(j??""),p=b(x??""),u=rt(r,p),X=[r,p].filter((a=>a!=null)),i={name:p,id:r,type:n,zeniId:r,qboId:r},g=d((a=>_(a.customerIncomeState,a.vendorExpenseState,a.trendState,i,"quarter"))),w=d((a=>W(a).company?.companyInfo.firstMonthOfFY??1)),f=d((a=>M(a.trendWithTransactionsState,i,"EntityDetail")));c.useEffect((()=>{m===!1&&u===!0&&(T(!0),o(R(i)))}),[m,u,i]);const E=d((a=>a.trendState.fetchState)),P=f?.selectedPeriod?.timePeriod??g,B=(function(a,y){return a!=null&&y!=null?{startDate:a.startDate,endDate:y?.endDate}:y})(f?.selectedPeriod?.timePeriod,g);return c.useEffect((()=>{m===!0&&h===!1&&E==="Completed"&&(D(!0),P!=null&&o(k(i,"EntityDetail",{timeframe:f?.selectedPeriod?.timeframe??"quarter",timePeriod:P})))}),[m,h,E]),u?s.jsx(ot,{firstMonthOfFY:w,tenantEmailDomain:C,location:l,navigate:e,entity:i,defaultTransactionTimePeriod:B,resetTrendIsFetchedStates:()=>{T(!1),D(!1)},...t}):s.jsx(q,{to:I(X.length)})})),rt=(n,t)=>t!=null&&t.length>0&&n!=null&&n.length>0,I=(n=2)=>{let t="../";for(let e=0;e<n;e++)t=`${t}../`;return t};function wt({entityType:n}){return s.jsx(Y,{children:s.jsx(N,{path:"/:entityIdEncoded/:entityNameEncoded/*",element:s.jsx(it,{entityType:n})})})}export{wt as EntityDetailRoutes,wt as default};
|
package/dist/assets/{ExpenseAutomationRoutes-DYmcRf2Y.js → ExpenseAutomationRoutes-jIbSr9T-.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as y}from"./liveblocks-
|
|
1
|
+
import{j as y}from"./liveblocks-DdKiKKK0.js";import{u as ge,h as Ue,g as Ie,j as _,i as Ee,t as Yn,l as mo,n as po,o as Ye,N as ho}from"./core-BZ632Tu-.js";import{fI as Ae,a1X as Hn,q4 as Oe,UX as xt,Aq as So,a1Y as fo,a1Z as go,a1_ as Io,a1$ as yt,a20 as lt,gk as wt,a21 as kn,eH as Co,g3 as ko,a22 as bn,a23 as rt,qX as bo,uY as To,gW as yo,gU as Po,a24 as vo,r8 as Eo,rh as Ao,qf as Ro,qt as Wn,gT as ue,gV as xo,a25 as wo,qP as Xn,ri as Do,qq as Fo,ql as _o,v2 as Mo,gS as ve,a26 as mt,CA as Kn,N4 as Qn,a27 as Zn,F$ as ea,a28 as Bo,e$ as Oo,f1 as Uo,sZ as Dt,XP as Tn,XR as Vo,m6 as jo,XS as $o,md as zo,dn as Lo,DT as Ft,a29 as Go,a2a as No,a2b as qo,a2c as Jo,fp as _t,sN as yn,a2d as Yo,XB as Ho,a2e as Wo,a2f as Xo,mf as Ko,a2g as Qo,RM as Zo,me as es,m3 as ts,qI as ta,rn as pt,tA as na,tW as ns,UN as aa,rm as Pn,rp as oa,rr as as,bG as os,nC as ss,nz as cs,rq as dt,ro as Pe,a2h as is,rI as vn,a2i as ls,a2j as rs,sR as ds,sS as us,Xx as ms,WD as sa,a1p as ps,a2k as hs,XD as En,XC as it,a2l as An,mu as Ss,a2m as fs,a2n as gs,a2o as Is,a2p as Cs,qD as ks,a2q as bs,a2r as Ts,a2s as ys,ry as Ps,mh as vs,m8 as Es,a2t as As,mg as Rn,Y0 as Rs,a2u as xs,a2v as ws,uz as Ds,ua as Fs,u9 as Pt,a2w as _s,a2x as Ms,a2y as Bs,a2z as Os,nN as Us,br as ca,nI as xn,nu as Vs,a2A as js,h3 as $s,nF as zs,s$ as Ls,t1 as Gs,sK as Ns,WG as qs,WH as Js,Ft as Ys,Fs as Hs,FJ as Ws,a2B as wn,sQ as Xs,sl as Ks,a2C as Qs,s1 as Zs,s6 as ec,sh as tc,s4 as nc,a2D as ac,rZ as oc,sg as sc,sW as cc,a2E as ic,t7 as lc,sE as rc,td as dc,sJ as uc,rJ as mc,a2F as pc,q$ as hc,qz as Sc,qG as Dn,rt as fc,a2G as gc,a2H as Ic,a2I as Cc,a2J as kc,a2K as bc,a2L as Tc,a2M as yc,th as Pc,a2N as vc,a2O as Ec,a2P as Fn,uK as Ac,u1 as Rc,tS as _n,tQ as xc,a2Q as wc,tF as Dc,tk as Fc,tT as _c,a2R as Mc,a2S as Bc,tq as Oc,a2T as Uc,tl as Vc,tp as jc,tn as $c,tZ as zc,a2U as Mn,q8 as vt,a2V as Lc,E3 as Bn,cA as Gc,qu as Nc,a2W as qc}from"./zeni-epic-state-NMk7iCbI.js";import Ut from"./NotFoundScreen-BHbERff5.js";import{a as o,R as ia}from"./sentry-DB6LQHGv.js";import{n as Ve,S as Jc}from"./mui-Cs_QYv-a.js";import{p as ht,c as Q,j as ee,k as Z,ao as la,aq as ra,dP as Yc,dQ as Hc,z as We,dR as Mt,dS as Wc,dT as Xc,ac as He,dU as Kc,dV as On,bb as Un,dW as Qc,a5 as da,dX as Zc,h as ut,a as ei,dY as ti,dZ as ni,l as ai,J as oi,d_ as si,d$ as ci,e0 as ii,b5 as li,bt as ri,a9 as di,b6 as ui,b1 as mi,b7 as pi,G as ua,w as hi,e1 as Si,at as Bt,e2 as fi,a2 as gi,e3 as Ii,e4 as Ci}from"./index-2z_UhewI.js";import{u as Vt}from"./useAskAiCfoHostNavButtonProps-MWUhH5nn.js";import{g as Vn,u as ki,c as bi,h as Ti,b as yi,i as Pi,r as vi,C as Ei}from"./TransactionDetailScreen-DOyHBOWu.js";import{u as Ai,a as Ri}from"./useActualMatchingMatchDetail-CCOzRjWX.js";import{d as xi}from"./decodeURIComponentSafe-bfkC_j1N.js";import{m as jt,a as ma,b as pa,i as Ot}from"./expenseAutomationHelper-9jvrnChU.js";import{u as ha,a as Sa,w as wi}from"./withTransactionSidePanel-CnbnJs31.js";import{b as Di,S as Fi,a as _i,J as Mi}from"./ScheduleDetailsPrepaidExpensesScreen-Dke8z9BO.js";import{s as jn,i as fa,h as Bi,j as Oi,v as Ui,c as Vi}from"./routePaths-B612B1Tr.js";import{a as Et}from"./accountMappingHelper-BPjpi2eG.js";import{D as ji}from"./DrawerScreen-CTzvR2kx.js";import"./recharts-zSkIVXTF.js";import"./analytics-Cvc_z8O9.js";import"./plaid-DbjTYhB2.js";import"./dnd-C-wSFxNw.js";import"./stripe-cKAAJElX.js";import"./lottie-CEtjeN1D.js";import"./lexical-giOgdSOI.js";import"./pdf-DUTZmsd9.js";import"./utils-Dtpsid9H.js";import"./useInitialThreadRequest-V3A7xn6Q.js";import"./stripSplatSuffix-BEbNpKe3.js";import"./pathToGoBack-BobgHYkC.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new t.Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="c19d2777-8245-4eed-b545-a78d58d170e0",t._sentryDebugIdIdentifier="sentry-dbid-c19d2777-8245-4eed-b545-a78d58d170e0")}catch{}})();const $i=()=>{const t=ge(),n=Ue(),h=Ie(),m=_((p=>Ae(p))),{useFeatureGate:f}=ht(),{isFeatureEnabled:c}=f(Q.isRealtimeInsightsFeatureEnabled),{isFeatureEnabled:r}=f(Q.aiAuditScorePercentage),x=_((p=>p.expenseAutomationViewState.selectedPeriodByTenantId)),i=_((p=>Hn(p,m.tenantId))),{isAiCfoAccessEnabled:k,onAskAiCfoClick:I}=Vt({mobileExploreReferrer:"Month-End Close Overview"}),E=o.useCallback(((p,d,g=!1)=>{t(Oe({tenantId:d,period:{month:p.month,year:p.year},refreshViewInBackground:g}))}),[]),b=o.useCallback((p=>{const d=h.state?.referrer;i.monthEndCloseChecks?.auditSummary!=null&&ee.trackMonthCloseAuditPage(p.month,p.year,i.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",i.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,d??null),t(xt(m.tenantId,p))}),[m.tenantId,i.monthEndCloseChecks?.auditSummary,i.monthEndCloseChecks?.reportEmailSentDate]),P=x[m.tenantId],F=o.useCallback((()=>{const p=h.state?.referrer;i.monthEndCloseChecks?.auditSummary!=null&&ee.trackMonthCloseAuditPage(P.month,P.year,i.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",i.monthEndCloseChecks.auditSummary.auditScorePercentage,!0,p??null),E(P,m.tenantId,!0)}),[E,P,m.tenantId,i.monthEndCloseChecks?.auditSummary,i.monthEndCloseChecks?.reportEmailSentDate]),B=Z(h.state?.pathnameStackToGoBack,h.pathname),z=o.useCallback((()=>{if(i.monthEndCloseChecks!=null&&P!=null){const p=i.monthEndCloseChecks.monthEndCloseCheckList.find((d=>d.progress<100));if(p!=null)return void n(`./${p.id}/${P.month}-${P.year}`,{state:{pathnameStackToGoBack:B,message:"comingFromOverview"}});n(`./month_end_insights/${P.month}-${P.year}`,{state:{pathnameStackToGoBack:B,message:"comingFromOverview"}})}}),[i.monthEndCloseChecks,P]),{areTenantIdsInSync:T}=la();return ra({isDataReady:i.fetchState==="Completed"}),o.useEffect((()=>{P!=null&&i.fetchState!=="In-Progress"&&i.fetchState!=="Completed"&&T&&E(P,m.tenantId)}),[E,P,i.fetchState,m.tenantId,T]),o.useEffect((()=>{P!=null&&i.monthClosePerformanceTrendFetchStatus.fetchState!=="In-Progress"&&i.monthClosePerformanceTrendFetchStatus.fetchState!=="Completed"&&T&&t(So(P))}),[P,i.monthClosePerformanceTrendFetchStatus.fetchState,T]),o.useEffect((()=>{const p=setInterval((()=>{i.fetchState!=="In-Progress"&&i.fetchState==="Completed"&&F()}),3e5);return()=>clearInterval(p)}),[i.fetchState]),o.useEffect((()=>{if(i.fetchState==="Completed"&&i.monthEndCloseChecks?.auditSummary!=null){const p=h.state?.referrer;ee.trackMonthCloseAuditPage(i.selectedPeriod.month,i.selectedPeriod.year,i.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",i.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,p??null)}}),[i.fetchState,i.selectedPeriod,i.monthEndCloseChecks?.auditSummary,i.monthEndCloseChecks?.reportEmailSentDate]),y.jsx(zi,{children:y.jsx(Yc,{monthEndCloseChecksView:i,isRealtimeInsightsFeatureEnabled:c,onMonthEndCheckClick:p=>{n(`./${p}/${P.month}-${P.year}`,{state:{pathnameStackToGoBack:B,message:"comingFromOverview",referrer:"Expense Automation - Overview"}})},onPeriodChange:b,handleReviewButtonClick:z,onBackClick:()=>{n("../../dashboard")},onReload:F,isAiCfoAccessEnabled:k,onAskAiCfoClick:I,aiAuditScorePercentageEnabled:r})})},zi=Ve.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100vh;
|
|
4
4
|
width: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-
|
|
1
|
+
import{j as s}from"./liveblocks-DdKiKKK0.js";import{a as r}from"./sentry-DB6LQHGv.js";import{au as l,av as p,_ as m,a2 as c}from"./index-2z_UhewI.js";import"./mui-Cs_QYv-a.js";import f from"./NotFoundScreen-BHbERff5.js";import{h as u,g as b}from"./core-BZ632Tu-.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]="7c6445be-ab04-49d9-a804-e930ae7e3d93",e._sentryDebugIdIdentifier="sentry-dbid-7c6445be-ab04-49d9-a804-e930ae7e3d93")}catch{}})();const D=()=>{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{D as F};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as n}from"./sentry-
|
|
1
|
+
import{a as n}from"./sentry-DB6LQHGv.js";import{u as l,h as f,g as m}from"./core-BZ632Tu-.js";import{i0 as p,Vi as g,Vj as _}from"./zeni-epic-state-NMk7iCbI.js";import{u as b,L as h,z as y}from"./index-2z_UhewI.js";import"./liveblocks-DdKiKKK0.js";import"./recharts-zSkIVXTF.js";import"./mui-Cs_QYv-a.js";import"./analytics-Cvc_z8O9.js";import"./plaid-DbjTYhB2.js";import"./dnd-C-wSFxNw.js";import"./stripe-cKAAJElX.js";import"./lottie-CEtjeN1D.js";import"./lexical-giOgdSOI.js";import"./pdf-DUTZmsd9.js";import"./utils-Dtpsid9H.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="0b8f01ad-26d5-4152-9207-2551113f4c2e",e._sentryDebugIdIdentifier="sentry-dbid-0b8f01ad-26d5-4152-9207-2551113f4c2e")}catch{}})();function R(){const e=l(),i=f(),r=m(),{setLoading:o,clearAllLoading:c}=b(),s=n.useRef(!1);return n.useLayoutEffect((()=>{o(h.CONNECTION_AUTH)}),[o]),n.useEffect((()=>{if(s.current)return;s.current=!0;const a=new URLSearchParams(r.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"),_("hubspot"),{authorization_code:a,client_id:t.client_id,client_secret:t.client_secret,redirect_uri:t.redirect_uri}))}c();const u=y.getActiveTenantForUser();i(u?.tenantEmailDomain!=null?`/${u.tenantEmailDomain}/settings/integrations`:"/",{replace:!0})}),[]),null}export{R as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as s}from"./liveblocks-
|
|
1
|
+
import{n as s}from"./liveblocks-DdKiKKK0.js";import{j as c}from"./core-BZ632Tu-.js";import{fI as f}from"./zeni-epic-state-NMk7iCbI.js";import"./sentry-DB6LQHGv.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="25fc1afa-344c-4436-b7c0-ce0cb6697f63",e._sentryDebugIdIdentifier="sentry-dbid-25fc1afa-344c-4436-b7c0-ce0cb6697f63")}catch{}})();const b=()=>c((e=>f(e))).tenantId==null?{inboxNotifications:[],isLoading:!1,isFetchingMore:!1,hasFetchedAll:!0,fetchMore:()=>null}:(()=>{const{inboxNotifications:e,isLoading:o,isFetchingMore:i,hasFetchedAll:t,fetchMore:n}=s();return{inboxNotifications:e,isLoading:o,isFetchingMore:i,hasFetchedAll:t,fetchMore:n}})();export{b as u};
|