@zeniai/web-app-ui 5.3.95-dev → 5.3.95-qa

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.
Files changed (71) hide show
  1. package/dist/assets/{AccountMappingScreen-CJpxPjym.js → AccountMappingScreen-CxywIq_5.js} +1 -1
  2. package/dist/assets/{ActualMatchingMatchDetailScreen-BI1Xbj3L.js → ActualMatchingMatchDetailScreen-CflHudgj.js} +1 -1
  3. package/dist/assets/{AddressRoutes-27wvZSFH.js → AddressRoutes-DcEodit_.js} +1 -1
  4. package/dist/assets/{AddressScreen-Ce6wpOqL.js → AddressScreen-CmxlHuMF.js} +1 -1
  5. package/dist/assets/{AiCfoScreen-baKqq38G.js → AiCfoScreen-QS3HKk1M.js} +1 -1
  6. package/dist/assets/{AppDrawer-BAy3i2Dk.js → AppDrawer-CVWb3Q7E.js} +1 -1
  7. package/dist/assets/{BillPayApprovalRoutes-BLLQGNfF.js → BillPayApprovalRoutes-CKt9p3vM.js} +1 -1
  8. package/dist/assets/{BillPayRoutes-BF0qZi8Q.js → BillPayRoutes-ByMlnyJ1.js} +1 -1
  9. package/dist/assets/{BusinessVerificationPageScreen-B6gKgGKZ.js → BusinessVerificationPageScreen-Dn8i9qEY.js} +1 -1
  10. package/dist/assets/{CardsAiCfoScreen-495-iwbX.js → CardsAiCfoScreen-Drd3k-8m.js} +1 -1
  11. package/dist/assets/{ChargeCardRoutes-CsLMN32g.js → ChargeCardRoutes-DM12hM0o.js} +1 -1
  12. package/dist/assets/{CompanyPassportScreen-DFOWHlG6.js → CompanyPassportScreen-4WUo_HTu.js} +1 -1
  13. package/dist/assets/{ConnectionAuthScreen-DcGlWxyf.js → ConnectionAuthScreen-tlIsODee.js} +1 -1
  14. package/dist/assets/{CustomerOnboardingAuthScreen-Da1wSVu0.js → CustomerOnboardingAuthScreen-CxJhpy5p.js} +1 -1
  15. package/dist/assets/{CustomerOnboardingRoutes-7Bwv09dV.js → CustomerOnboardingRoutes-ztD2iNU-.js} +1 -1
  16. package/dist/assets/{DashboardRoutes-s3deN1Di.js → DashboardRoutes-BhiJFLI_.js} +1 -1
  17. package/dist/assets/{DefaultTenantHome-Bi2eWO-I.js → DefaultTenantHome-CsDwWhnZ.js} +1 -1
  18. package/dist/assets/{DomesticWireDetailScreen-CVJejZP9.js → DomesticWireDetailScreen-qRSOLyKY.js} +1 -1
  19. package/dist/assets/{DrawerScreen-Bev9sxN6.js → DrawerScreen-B2FIpd3y.js} +1 -1
  20. package/dist/assets/{EntityDetailRoutes-DTd2OX4g.js → EntityDetailRoutes-CP1SjZC0.js} +1 -1
  21. package/dist/assets/{ExpenseAutomationRoutes-BNvZ1Bwi.js → ExpenseAutomationRoutes-BGfs-W5H.js} +1 -1
  22. package/dist/assets/{FeaturePreviewScreen-DETqyCpy.js → FeaturePreviewScreen-Rc8Q-SSN.js} +1 -1
  23. package/dist/assets/{HubSpotOAuthCallbackScreen-LgF5qdxr.js → HubSpotOAuthCallbackScreen-CQljiAxj.js} +1 -1
  24. package/dist/assets/{InvoicingRoutes-Mbynj2-j.js → InvoicingRoutes-BPWj_iEE.js} +1 -1
  25. package/dist/assets/{MagicLinkRoutes-BAL4OpO8.js → MagicLinkRoutes-BWBnJtnC.js} +1 -1
  26. package/dist/assets/{MagicLinkSignInScreen-BIY2mGLo.js → MagicLinkSignInScreen-DdM_RNNU.js} +1 -1
  27. package/dist/assets/{MobileAppDrawer-CsfNveW9.js → MobileAppDrawer-DU_XM5Fb.js} +1 -1
  28. package/dist/assets/{NotFoundScreen-DDA41Ig7.js → NotFoundScreen-NsaSbBFa.js} +1 -1
  29. package/dist/assets/{NotificationRoutes-_8GAMr1Q.js → NotificationRoutes-DTess25T.js} +1 -1
  30. package/dist/assets/{OAuthConsentScreen-DrAajreS.js → OAuthConsentScreen-CY4MM4YX.js} +1 -1
  31. package/dist/assets/{PandLWithForecastRoutes-BoihVLwz.js → PandLWithForecastRoutes-DB6C_pxp.js} +1 -1
  32. package/dist/assets/{PaymentLinkScreen-QPSeahMe.js → PaymentLinkScreen-BPZTHdTb.js} +1 -1
  33. package/dist/assets/{PeopleRoutes-BJ_Rsbpd.js → PeopleRoutes-BWwv0t4D.js} +1 -1
  34. package/dist/assets/{PerformanceRoutes-BU_ssv__.js → PerformanceRoutes-CHP8XvlQ.js} +1 -1
  35. package/dist/assets/{QBOConnectionScreen-DMcsRcZG.js → QBOConnectionScreen-pFSAqCsM.js} +1 -1
  36. package/dist/assets/{ReimbursementApprovalRoutes-c_eicF80.js → ReimbursementApprovalRoutes-BHy8amDu.js} +1 -1
  37. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-NQbCpzYz.js → ReimbursementApprovalRuleDetailScreen-DV5UVmJ4.js} +1 -1
  38. package/dist/assets/{ReimbursementRoutes-BVOB8GHt.js → ReimbursementRoutes-C1bB9m-D.js} +1 -1
  39. package/dist/assets/{ReportsRoutes-BaXWnnZZ.js → ReportsRoutes-BkK5zT9z.js} +1 -1
  40. package/dist/assets/{RewardsRoutes-Dr_V6CBY.js → RewardsRoutes-DOeNjsqd.js} +1 -1
  41. package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-OdknWRFf.js → ScheduleDetailsPrepaidExpensesScreen-DQFyw5bj.js} +1 -1
  42. package/dist/assets/{ScreenRoutes-MAHnboyU.js → ScreenRoutes-_X4JeUid.js} +2 -2
  43. package/dist/assets/{SettingsRoutes-CwikuwVk.js → SettingsRoutes-B0enG4Yl.js} +1 -1
  44. package/dist/assets/{SetupPagesScreen-B0b-Fgla.js → SetupPagesScreen-Biv-I7I-.js} +1 -1
  45. package/dist/assets/{SignInScreen-DYTURHhx.js → SignInScreen-Byl7VfG6.js} +1 -1
  46. package/dist/assets/{SignOutScreen-Be_uJc5B.js → SignOutScreen-qa_DEC5P.js} +1 -1
  47. package/dist/assets/{TaskListScreen-adKZru26.js → TaskListScreen-BhzrNsEv.js} +1 -1
  48. package/dist/assets/{TaskRoutes-B74sfUtJ.js → TaskRoutes-CP6oUQsN.js} +1 -1
  49. package/dist/assets/{TransactionDetailRoutes-DRKjV_CD.js → TransactionDetailRoutes-D92M6VPi.js} +1 -1
  50. package/dist/assets/{TransactionDetailScreen-CS9DS32g.js → TransactionDetailScreen-0OB8Pqf6.js} +1 -1
  51. package/dist/assets/{TransactionListRoutes-BIufDhIc.js → TransactionListRoutes-DcSXD2S9.js} +1 -1
  52. package/dist/assets/{TreasuryRoutes-Bt27xnQK.js → TreasuryRoutes-BaGLXm-c.js} +1 -1
  53. package/dist/assets/{VendorsRoutes-ZMV0CecT.js → VendorsRoutes-C9s2BiPx.js} +1 -1
  54. package/dist/assets/{WiseConfirmationScreen-ZJ4gewaT.js → WiseConfirmationScreen-BSs-1FPg.js} +1 -1
  55. package/dist/assets/{ZeniAccountRoutes-DV3rsGFn.js → ZeniAccountRoutes-WTE-a0i_.js} +1 -1
  56. package/dist/assets/{ZeniAccountStatementScreen-B-L8iMJL.js → ZeniAccountStatementScreen-CD7gALNT.js} +1 -1
  57. package/dist/assets/{analyticsHelper-BkudU6tc.js → analyticsHelper-DMxE_5WG.js} +1 -1
  58. package/dist/assets/{getLocaleForTenant-Nj4zPyxj.js → getLocaleForTenant-CLKJVxYo.js} +1 -1
  59. package/dist/assets/{index-Dp_Uc3gy.js → index-C49C-P8m.js} +5 -5
  60. package/dist/assets/{routePaths-BALvGXpp.js → routePaths-3jcOIrRa.js} +1 -1
  61. package/dist/assets/{useActualMatchingMatchDetail-CuDY29_K.js → useActualMatchingMatchDetail-BDFpjIdi.js} +1 -1
  62. package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-B5pmnrb8.js → useAiCfoDashboardSuggestedQuestionsChips-j2GTAdQA.js} +1 -1
  63. package/dist/assets/{useAskAiCfoHostNavButtonProps-DWkTPomv.js → useAskAiCfoHostNavButtonProps-BXTsy7YX.js} +1 -1
  64. package/dist/assets/{useChargeCardPusherEvents-Ce-wULUB.js → useChargeCardPusherEvents-CEehuLGK.js} +1 -1
  65. package/dist/assets/{useEmailConnectResultRefresh-CQX3dx0q.js → useEmailConnectResultRefresh-DoM1bafj.js} +1 -1
  66. package/dist/assets/{useInitialThreadRequest-BaIZPAUw.js → useInitialThreadRequest-BwFSf59X.js} +1 -1
  67. package/dist/assets/{useTaskManagerAccess-CFJAytRv.js → useTaskManagerAccess-HM4US9Ho.js} +1 -1
  68. package/dist/assets/{useTaskManagerPusherEvents-B_vM_sss.js → useTaskManagerPusherEvents-BfE7R6Dz.js} +1 -1
  69. package/dist/assets/{withTransactionSidePanel-BuJ7rAhb.js → withTransactionSidePanel-ClaUsoxR.js} +1 -1
  70. package/dist/index.html +1 -1
  71. package/package.json +1 -1
@@ -1 +1 @@
1
- import{j as m}from"./liveblocks-BYqz0SWy.js";import{a as g}from"./sentry-DjmIorbX.js";import{h as w,u as x,g as T,i as k,j as O,l as E}from"./core-B1R51LGS.js";import{z as D,bq as F,a6 as P,l as V,K as L,r as C,br as j,ac as A,aE as U,p as B}from"./index-Dp_Uc3gy.js";import{fI as b,gL as M,B$ as R,gG as _,c9 as G,YQ as Y,bn as z,v2 as $,uS as q,mD as H,oc as S,YR as K,bF as Q,cF as N,on as Z,ox as J}from"./zeni-epic-state-M9sMLOaG.js";import"./mui-D-_RYGgU.js";import{d as W}from"./routePaths-BALvGXpp.js";import{M as X}from"./MobileAppDrawer-CsfNveW9.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]="5ca6988d-d927-41ea-9f39-b07446890712",t._sentryDebugIdIdentifier="sentry-dbid-5ca6988d-d927-41ea-9f39-b07446890712")}catch{}})();const ee=E((function(t){const a=_(t),i=D.getSignedInUser(),p=b(t),c=p.tenantId,l={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:c??""},f=G(p?.userRole??[])&&a.localData.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",e=Y(t.companyConfigState),n=t.countryListState?.byCountryListCode?.nationalityCountryList?.countries??[];return{isCompanyVerified:a.companyView?.company?.company?.companyBillPayInfo?.companyVerificationStatus?.code==="verified",companyPassportView:a,allIndustries:e.companyIndustries??[],allNationalityCountries:n,isDisabled:f,authParams:l,filesEndPoint:`${A.fileMicroServiceBaseUrl}`,isZeniUser:z(i)}}),(function(t,a){const{companyId:i,currentTenant:p,navigate:c,location:l}=a,{tenantEmailDomain:f}=p;return{onScheduleClick:e=>{let n=e.href;n.includes("http")||(n="https://".concat(n)),window.open(n,"_blank")},onSaveAll:()=>{t(J())},onAddressClick:e=>{const n=W(f,e),o=B(l.state?.pathnameStackToGoBack,l.pathname);c(n,{state:{pathnameStackToGoBack:o}})},onResetClick:()=>{t(Z({companyId:i}))},onBackClick:()=>{c("../")},onCompanyDetailsChanged:e=>{const{companyInfo:n,incInfo:o,taxDetails:r,zeniFinanceTeam:d}=e,{website:u}=n,{meetingLink:y}=d,{incDate:s}=o,{taxesFiledYears:h}=r,v={companyInfo:{...n,website:u!=""&&u!=null?N(u):void 0,meetingLink:y!=""&&y!=null?N(y):void 0,industry:n.industry.selectedOption,companyIndustryType:n.companyIndustryType?.selectedOption??void 0,companySubIndustry:n.companySubIndustry?.selectedOption??void 0,businessModel:n.businessModel.selectedOption??"",companySourceOfFunds:n.companySourceOfFunds?.selectedOption,companySourceOfFundsDescription:n.companySourceOfFundsDescription??void 0,countriesOfOperations:n.countriesOfOperations?.selectedOptions?.map((I=>I.length===2?I:U(I)))??[],transactionVolume:n.transactionVolume?.selectedOption??void 0,transactionVolumeDescription:n.transactionVolumeDescription??void 0,regulatedStatus:n.regulatedStatus??void 0,regulatedStatusDescription:n.regulatedStatusDescription??void 0,usNexus:n.usNexus??void 0,usNexusTypes:n.usNexusTypes?.selectedOptions??[],purposeOfAccount:n.purposeOfAccount?.selectedOption??void 0,purposeOfAccountDescription:n.purposeOfAccountDescription??void 0},incInfo:{typeOfInc:o.typeOfInc.selectedOption??"",stateOfInc:o.stateOfInc.selectedOption??"",incDate:s!=null?Q(s?.toString()):s,fileId:o.fileIds[0]},taxDetails:{taxIdOrEIN:r.taxIdOrEIN,sicCode:r.sicCode,naicsCode:r.naicsCode,dunsNumber:r.dunsNumber,taxesFiledYears:h.selectedOptions.map((I=>parseInt(I))),fileId:r.fileIds[0]}};t(S({companyDetails:v}))},onPrimaryContactDetailsUpdated:e=>{t(S({primaryContact:{userId:e.userId,email:e.email.trim(),firstName:e.name.firstName,lastName:e.name.lastName}}))},onNewCompanyOfficerAdded:e=>{t(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=>{t(K(e))},onCompanyOfficerUpdated:e=>{t(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=>{t(H({files:e}))},onDeleteFile:e=>{t(q(e))},onEditFileName:(e,n)=>{t($(e,n.split(".")[0]))}}}))(j);function de(){const t=w(),a=x(),i=T(),{tenantEmailDomain:p}=k(),[c,l]=g.useState(!1),[f,e]=g.useState(!1),n=O((s=>s.companyViewState.passportView.fetchState)),o=O((s=>s.companyConfigState.fetchState)),r=O((s=>b(s))),d=r.companyId??D.getSignedInUserTenant(p)?.companyId;if(D.getSignedInUser()==null)throw Error("Can't access company details page without signing in...");g.useEffect((()=>{c||n!=="Not-Started"||d==null||(l(!0),a(M(d)))}),[c,n,d,a]),g.useEffect((()=>{o==="Not-Started"&&a(R())}),[o,a]);const u=s=>{e(s)},y=n==="Not-Started"||n==="In-Progress"||o==="Not-Started"||o==="In-Progress";return d!=null&&n==="Error"?m.jsx(F,{onGoHome:()=>t("../",{replace:!0}),onReload:()=>window.location.reload()}):m.jsxs(m.Fragment,{children:[m.jsx(P,{analytics:V,onLoad:s=>s.trackPageLoaded(L.Event.companyPassport,C(i)?"Settings":"Company Passport")}),C(i)?m.jsx(X,{isAppContentDrawerOpen:f,handleDrawerToggle:u}):null,m.jsx(ee,{companyId:d,navigate:t,location:i,isLoading:y,currentTenant:r,isSettings:C(i),onClickMenuIcon:()=>{u(!0)}})]})}export{de as C};
1
+ import{j as m}from"./liveblocks-BYqz0SWy.js";import{a as g}from"./sentry-DjmIorbX.js";import{h as w,u as x,g as T,i as k,j as O,l as E}from"./core-B1R51LGS.js";import{z as D,bq as F,a6 as P,l as V,K as L,r as C,br as j,ac as A,aE as U,p as B}from"./index-C49C-P8m.js";import{fI as b,gL as M,B$ as R,gG as _,c9 as G,YQ as Y,bn as z,v2 as $,uS as q,mD as H,oc as S,YR as K,bF as Q,cF as N,on as Z,ox as J}from"./zeni-epic-state-M9sMLOaG.js";import"./mui-D-_RYGgU.js";import{d as W}from"./routePaths-3jcOIrRa.js";import{M as X}from"./MobileAppDrawer-DU_XM5Fb.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]="5ca6988d-d927-41ea-9f39-b07446890712",t._sentryDebugIdIdentifier="sentry-dbid-5ca6988d-d927-41ea-9f39-b07446890712")}catch{}})();const ee=E((function(t){const a=_(t),i=D.getSignedInUser(),p=b(t),c=p.tenantId,l={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:c??""},f=G(p?.userRole??[])&&a.localData.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",e=Y(t.companyConfigState),n=t.countryListState?.byCountryListCode?.nationalityCountryList?.countries??[];return{isCompanyVerified:a.companyView?.company?.company?.companyBillPayInfo?.companyVerificationStatus?.code==="verified",companyPassportView:a,allIndustries:e.companyIndustries??[],allNationalityCountries:n,isDisabled:f,authParams:l,filesEndPoint:`${A.fileMicroServiceBaseUrl}`,isZeniUser:z(i)}}),(function(t,a){const{companyId:i,currentTenant:p,navigate:c,location:l}=a,{tenantEmailDomain:f}=p;return{onScheduleClick:e=>{let n=e.href;n.includes("http")||(n="https://".concat(n)),window.open(n,"_blank")},onSaveAll:()=>{t(J())},onAddressClick:e=>{const n=W(f,e),o=B(l.state?.pathnameStackToGoBack,l.pathname);c(n,{state:{pathnameStackToGoBack:o}})},onResetClick:()=>{t(Z({companyId:i}))},onBackClick:()=>{c("../")},onCompanyDetailsChanged:e=>{const{companyInfo:n,incInfo:o,taxDetails:r,zeniFinanceTeam:d}=e,{website:u}=n,{meetingLink:y}=d,{incDate:s}=o,{taxesFiledYears:h}=r,v={companyInfo:{...n,website:u!=""&&u!=null?N(u):void 0,meetingLink:y!=""&&y!=null?N(y):void 0,industry:n.industry.selectedOption,companyIndustryType:n.companyIndustryType?.selectedOption??void 0,companySubIndustry:n.companySubIndustry?.selectedOption??void 0,businessModel:n.businessModel.selectedOption??"",companySourceOfFunds:n.companySourceOfFunds?.selectedOption,companySourceOfFundsDescription:n.companySourceOfFundsDescription??void 0,countriesOfOperations:n.countriesOfOperations?.selectedOptions?.map((I=>I.length===2?I:U(I)))??[],transactionVolume:n.transactionVolume?.selectedOption??void 0,transactionVolumeDescription:n.transactionVolumeDescription??void 0,regulatedStatus:n.regulatedStatus??void 0,regulatedStatusDescription:n.regulatedStatusDescription??void 0,usNexus:n.usNexus??void 0,usNexusTypes:n.usNexusTypes?.selectedOptions??[],purposeOfAccount:n.purposeOfAccount?.selectedOption??void 0,purposeOfAccountDescription:n.purposeOfAccountDescription??void 0},incInfo:{typeOfInc:o.typeOfInc.selectedOption??"",stateOfInc:o.stateOfInc.selectedOption??"",incDate:s!=null?Q(s?.toString()):s,fileId:o.fileIds[0]},taxDetails:{taxIdOrEIN:r.taxIdOrEIN,sicCode:r.sicCode,naicsCode:r.naicsCode,dunsNumber:r.dunsNumber,taxesFiledYears:h.selectedOptions.map((I=>parseInt(I))),fileId:r.fileIds[0]}};t(S({companyDetails:v}))},onPrimaryContactDetailsUpdated:e=>{t(S({primaryContact:{userId:e.userId,email:e.email.trim(),firstName:e.name.firstName,lastName:e.name.lastName}}))},onNewCompanyOfficerAdded:e=>{t(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=>{t(K(e))},onCompanyOfficerUpdated:e=>{t(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=>{t(H({files:e}))},onDeleteFile:e=>{t(q(e))},onEditFileName:(e,n)=>{t($(e,n.split(".")[0]))}}}))(j);function de(){const t=w(),a=x(),i=T(),{tenantEmailDomain:p}=k(),[c,l]=g.useState(!1),[f,e]=g.useState(!1),n=O((s=>s.companyViewState.passportView.fetchState)),o=O((s=>s.companyConfigState.fetchState)),r=O((s=>b(s))),d=r.companyId??D.getSignedInUserTenant(p)?.companyId;if(D.getSignedInUser()==null)throw Error("Can't access company details page without signing in...");g.useEffect((()=>{c||n!=="Not-Started"||d==null||(l(!0),a(M(d)))}),[c,n,d,a]),g.useEffect((()=>{o==="Not-Started"&&a(R())}),[o,a]);const u=s=>{e(s)},y=n==="Not-Started"||n==="In-Progress"||o==="Not-Started"||o==="In-Progress";return d!=null&&n==="Error"?m.jsx(F,{onGoHome:()=>t("../",{replace:!0}),onReload:()=>window.location.reload()}):m.jsxs(m.Fragment,{children:[m.jsx(P,{analytics:V,onLoad:s=>s.trackPageLoaded(L.Event.companyPassport,C(i)?"Settings":"Company Passport")}),C(i)?m.jsx(X,{isAppContentDrawerOpen:f,handleDrawerToggle:u}):null,m.jsx(ee,{companyId:d,navigate:t,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-BYqz0SWy.js";import{a as o}from"./sentry-DjmIorbX.js";import{u as F,h as R,g as H,j as C,N as w}from"./core-B1R51LGS.js";import{Uu as q,fI as z,go as G,pW as Q,gP as U,gn as V,gl as W,UU as B,gk as A}from"./zeni-epic-state-M9sMLOaG.js";import{u as J,z as E,L as T,G as K,E as M}from"./index-Dp_Uc3gy.js";import{n as X}from"./mui-D-_RYGgU.js";import{P as h,a as _}from"./AccountMappingScreen-CJpxPjym.js";import{t as Y}from"./getLocaleForTenant-Nj4zPyxj.js";import{g as Z,Q as ee}from"./QBOConnectionScreen-DMcsRcZG.js";import"./recharts-By7FVN8f.js";import"./analytics-DhotUQIQ.js";import"./plaid-B0PWXAfV.js";import"./dnd-CBDtHD8g.js";import"./stripe-cKAAJElX.js";import"./lottie-C4orech3.js";import"./lexical-Cft6chCX.js";import"./pdf-DFgrdLB6.js";import"./utils-iOnDyQuG.js";import"./MobileAppDrawer-CsfNveW9.js";import"./InboxNotificationsProvider-LdTK3V9o.js";import"./useTaskManagerAccess-CFJAytRv.js";import"./accountMappingHelper-1wM-u5pk.js";import"./empty-DDVSRnUK.js";import"./pdf-lib-2bJZTByw.js";import"./index-DUjhchTx.js";import"./url-SyxPcinx.js";import"./index-BgCxp-PW.js";import"./decodeURIComponentSafe-sNmSv15A.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]="4663c42c-4fc7-484f-ad1c-5f12836de403",t._sentryDebugIdIdentifier="sentry-dbid-4663c42c-4fc7-484f-ad1c-5f12836de403")}catch{}})();const te=X.div`
1
+ import{j as I}from"./liveblocks-BYqz0SWy.js";import{a as o}from"./sentry-DjmIorbX.js";import{u as F,h as R,g as H,j as C,N as w}from"./core-B1R51LGS.js";import{Uu as q,fI as z,go as G,pW as Q,gP as U,gn as V,gl as W,UU as B,gk as A}from"./zeni-epic-state-M9sMLOaG.js";import{u as J,z as E,L as T,G as K,E as M}from"./index-C49C-P8m.js";import{n as X}from"./mui-D-_RYGgU.js";import{P as h,a as _}from"./AccountMappingScreen-CxywIq_5.js";import{t as Y}from"./getLocaleForTenant-CLKJVxYo.js";import{g as Z,Q as ee}from"./QBOConnectionScreen-pFSAqCsM.js";import"./recharts-By7FVN8f.js";import"./analytics-DhotUQIQ.js";import"./plaid-B0PWXAfV.js";import"./dnd-CBDtHD8g.js";import"./stripe-cKAAJElX.js";import"./lottie-C4orech3.js";import"./lexical-Cft6chCX.js";import"./pdf-DFgrdLB6.js";import"./utils-iOnDyQuG.js";import"./MobileAppDrawer-DU_XM5Fb.js";import"./InboxNotificationsProvider-LdTK3V9o.js";import"./useTaskManagerAccess-HM4US9Ho.js";import"./accountMappingHelper-1wM-u5pk.js";import"./empty-DDVSRnUK.js";import"./pdf-lib-2bJZTByw.js";import"./index-DUjhchTx.js";import"./url-SyxPcinx.js";import"./index-BgCxp-PW.js";import"./decodeURIComponentSafe-sNmSv15A.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]="4663c42c-4fc7-484f-ad1c-5f12836de403",t._sentryDebugIdIdentifier="sentry-dbid-4663c42c-4fc7-484f-ad1c-5f12836de403")}catch{}})();const te=X.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  flex-direction: row;
@@ -1 +1 @@
1
- import{j as i}from"./liveblocks-BYqz0SWy.js";import{z as m}from"./index-Dp_Uc3gy.js";import{g as n}from"./QBOConnectionScreen-DMcsRcZG.js";import"./sentry-DjmIorbX.js";import{g as p,N as a}from"./core-B1R51LGS.js";import"./zeni-epic-state-M9sMLOaG.js";import"./recharts-By7FVN8f.js";import"./mui-D-_RYGgU.js";import"./analytics-DhotUQIQ.js";import"./plaid-B0PWXAfV.js";import"./dnd-CBDtHD8g.js";import"./stripe-cKAAJElX.js";import"./lottie-C4orech3.js";import"./lexical-Cft6chCX.js";import"./pdf-DFgrdLB6.js";import"./utils-iOnDyQuG.js";import"./empty-DDVSRnUK.js";import"./pdf-lib-2bJZTByw.js";import"./index-DUjhchTx.js";import"./url-SyxPcinx.js";import"./index-BgCxp-PW.js";import"./decodeURIComponentSafe-sNmSv15A.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};
1
+ import{j as i}from"./liveblocks-BYqz0SWy.js";import{z as m}from"./index-C49C-P8m.js";import{g as n}from"./QBOConnectionScreen-pFSAqCsM.js";import"./sentry-DjmIorbX.js";import{g as p,N as a}from"./core-B1R51LGS.js";import"./zeni-epic-state-M9sMLOaG.js";import"./recharts-By7FVN8f.js";import"./mui-D-_RYGgU.js";import"./analytics-DhotUQIQ.js";import"./plaid-B0PWXAfV.js";import"./dnd-CBDtHD8g.js";import"./stripe-cKAAJElX.js";import"./lottie-C4orech3.js";import"./lexical-Cft6chCX.js";import"./pdf-DFgrdLB6.js";import"./utils-iOnDyQuG.js";import"./empty-DDVSRnUK.js";import"./pdf-lib-2bJZTByw.js";import"./index-DUjhchTx.js";import"./url-SyxPcinx.js";import"./index-BgCxp-PW.js";import"./decodeURIComponentSafe-sNmSv15A.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};
@@ -1,4 +1,4 @@
1
- import{j as s}from"./liveblocks-BYqz0SWy.js";import{t as wn,A as Ge}from"./AddressScreen-Ce6wpOqL.js";import An from"./NotFoundScreen-DDA41Ig7.js";import{a as d,u as Me}from"./sentry-DjmIorbX.js";import{h as _e,g as xe,u as se,i as Ee,j as T,N as Q,q as Pn,l as cn,n as Dn,o as q}from"./core-B1R51LGS.js";import{fI as Y,e0 as Te,d$ as we,bq as jn,UL as Bn,bS as Fn,pU as Un,BL as Vn,BO as Ln,W6 as Rn,W7 as Nn,ly as Oe,lB as dn,Vm as $n,c0 as Gn,c9 as fe,Cd as Ae,B_ as Mn,W8 as me,Ce as un,SV as Qn,mL as ln,dj as pn,W9 as Kn,Wa as Wn,uL as zn,V9 as Ce,hZ as qn,V8 as be,hW as Hn,GJ as Jn,uP as Zn,hO as Xn,hR as Qe,Wb as mn,Wc as Yn,Mz as et,Wd as nt,MD as tt,BR as at,We as ot,Wf as st,lw as rt,lz as it,Cq as ct,C0 as gn,Cc as dt,bF as Ke,cF as ut,Cp as We,v2 as lt,uS as pt,mD as mt,gJ as gt,gI as ft,gH as yt,Wg as ht,BU as Ct,Cr as bt,Cu as St,Cx as It,CD as kt,dk as Ot}from"./zeni-epic-state-M9sMLOaG.js";import{z as W,c as Pe,$ as Z,f as vt,p as z,a6 as re,l as g,aC as _t,ag as fn,_ as xt,k as yn,V as hn,j as X,Q as ge,K as ve,aD as Et,E as ze,v as qe,ac as Tt,aE as He,aF as wt,aG as At}from"./index-Dp_Uc3gy.js";import{n as De}from"./mui-D-_RYGgU.js";import{g as Pt,h as Dt,q as ie}from"./QBOConnectionScreen-DMcsRcZG.js";import{u as jt,a as Bt}from"./useEmailConnectResultRefresh-CQX3dx0q.js";import{u as Ft}from"./useChargeCardPusherEvents-Ce-wULUB.js";import"./recharts-By7FVN8f.js";import"./analytics-DhotUQIQ.js";import"./plaid-B0PWXAfV.js";import"./dnd-CBDtHD8g.js";import"./stripe-cKAAJElX.js";import"./lottie-C4orech3.js";import"./lexical-Cft6chCX.js";import"./pdf-DFgrdLB6.js";import"./utils-iOnDyQuG.js";import"./empty-DDVSRnUK.js";import"./pdf-lib-2bJZTByw.js";import"./index-DUjhchTx.js";import"./url-SyxPcinx.js";import"./index-BgCxp-PW.js";import"./decodeURIComponentSafe-sNmSv15A.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]="93f06eba-272a-4956-b823-4caab7ed152a",e._sentryDebugIdIdentifier="sentry-dbid-93f06eba-272a-4956-b823-4caab7ed152a")}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=xe(),i=se(),[o,p]=d.useState(!1),[u,c]=d.useState(!1),{tenantEmailDomain:v}=Ee(),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=T((S=>Y(S))),P=T((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=Te(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),x=_?.resources?.find((S=>S.resource==="/bills"))==null&&!r,E=_?.resources?.find((S=>S.resource==="/reimbursements"))==null;V===!1&&D.push("top_expenses"),h===!1&&D.push("task_card"),x===!1&&D.push("bill_pay_card","bill_pay_promo_card"),E===!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=T((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((G=>({fetchState:G.fetchState,error:G.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]),$=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($,6e3);return()=>clearTimeout(S)}),[$]),d.useEffect((()=>{m||b||!u||f!=="Completed"&&f!=="Error"||$()}),[u,f,m,b,$]),P!=="Completed")return s.jsx(Q,{to:"../"});const R=O.company?.companyOnboardingInfo?.onboardingInfo,ee={timeSinceQuoteSign:R?.onboardingTimeSinceQuoteSigned??"",timeSinceQuoteSignInMinutes:R?.onboardingToQuoteSignMinutes??0,isKybDone:Je(R?.businessVerified?.status),isKycDone:Je(R?.identityVerified?.status),paymentType:"",paymentSource:"",qboConnectionSource:R?.accountingConnectionCreationMode??""};return s.jsxs(s.Fragment,{children:[s.jsx(re,{analytics:g,onLoad:S=>S.trackOnboardingDashboardActivation(ee)}),s.jsx(_t,{show:!0,onComplete:$})]})},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`
1
+ import{j as s}from"./liveblocks-BYqz0SWy.js";import{t as wn,A as Ge}from"./AddressScreen-CmxlHuMF.js";import An from"./NotFoundScreen-NsaSbBFa.js";import{a as d,u as Me}from"./sentry-DjmIorbX.js";import{h as _e,g as xe,u as se,i as Ee,j as T,N as Q,q as Pn,l as cn,n as Dn,o as q}from"./core-B1R51LGS.js";import{fI as Y,e0 as Te,d$ as we,bq as jn,UL as Bn,bS as Fn,pU as Un,BL as Vn,BO as Ln,W6 as Rn,W7 as Nn,ly as Oe,lB as dn,Vm as $n,c0 as Gn,c9 as fe,Cd as Ae,B_ as Mn,W8 as me,Ce as un,SV as Qn,mL as ln,dj as pn,W9 as Kn,Wa as Wn,uL as zn,V9 as Ce,hZ as qn,V8 as be,hW as Hn,GJ as Jn,uP as Zn,hO as Xn,hR as Qe,Wb as mn,Wc as Yn,Mz as et,Wd as nt,MD as tt,BR as at,We as ot,Wf as st,lw as rt,lz as it,Cq as ct,C0 as gn,Cc as dt,bF as Ke,cF as ut,Cp as We,v2 as lt,uS as pt,mD as mt,gJ as gt,gI as ft,gH as yt,Wg as ht,BU as Ct,Cr as bt,Cu as St,Cx as It,CD as kt,dk as Ot}from"./zeni-epic-state-M9sMLOaG.js";import{z as W,c as Pe,$ as Z,f as vt,p as z,a6 as re,l as g,aC as _t,ag as fn,_ as xt,k as yn,V as hn,j as X,Q as ge,K as ve,aD as Et,E as ze,v as qe,ac as Tt,aE as He,aF as wt,aG as At}from"./index-C49C-P8m.js";import{n as De}from"./mui-D-_RYGgU.js";import{g as Pt,h as Dt,q as ie}from"./QBOConnectionScreen-pFSAqCsM.js";import{u as jt,a as Bt}from"./useEmailConnectResultRefresh-DoM1bafj.js";import{u as Ft}from"./useChargeCardPusherEvents-CEehuLGK.js";import"./recharts-By7FVN8f.js";import"./analytics-DhotUQIQ.js";import"./plaid-B0PWXAfV.js";import"./dnd-CBDtHD8g.js";import"./stripe-cKAAJElX.js";import"./lottie-C4orech3.js";import"./lexical-Cft6chCX.js";import"./pdf-DFgrdLB6.js";import"./utils-iOnDyQuG.js";import"./empty-DDVSRnUK.js";import"./pdf-lib-2bJZTByw.js";import"./index-DUjhchTx.js";import"./url-SyxPcinx.js";import"./index-BgCxp-PW.js";import"./decodeURIComponentSafe-sNmSv15A.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]="93f06eba-272a-4956-b823-4caab7ed152a",e._sentryDebugIdIdentifier="sentry-dbid-93f06eba-272a-4956-b823-4caab7ed152a")}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=xe(),i=se(),[o,p]=d.useState(!1),[u,c]=d.useState(!1),{tenantEmailDomain:v}=Ee(),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=T((S=>Y(S))),P=T((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=Te(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),x=_?.resources?.find((S=>S.resource==="/bills"))==null&&!r,E=_?.resources?.find((S=>S.resource==="/reimbursements"))==null;V===!1&&D.push("top_expenses"),h===!1&&D.push("task_card"),x===!1&&D.push("bill_pay_card","bill_pay_promo_card"),E===!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=T((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((G=>({fetchState:G.fetchState,error:G.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]),$=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($,6e3);return()=>clearTimeout(S)}),[$]),d.useEffect((()=>{m||b||!u||f!=="Completed"&&f!=="Error"||$()}),[u,f,m,b,$]),P!=="Completed")return s.jsx(Q,{to:"../"});const R=O.company?.companyOnboardingInfo?.onboardingInfo,ee={timeSinceQuoteSign:R?.onboardingTimeSinceQuoteSigned??"",timeSinceQuoteSignInMinutes:R?.onboardingToQuoteSignMinutes??0,isKybDone:Je(R?.businessVerified?.status),isKycDone:Je(R?.identityVerified?.status),paymentType:"",paymentSource:"",qboConnectionSource:R?.accountingConnectionCreationMode??""};return s.jsxs(s.Fragment,{children:[s.jsx(re,{analytics:g,onLoad:S=>S.trackOnboardingDashboardActivation(ee)}),s.jsx(_t,{show:!0,onComplete:$})]})},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-BYqz0SWy.js";import{i as q,j as S,g as H,u as z,h as W,l as ne,k as oa,n as ht,o as P,N as vn}from"./core-B1R51LGS.js";import{fI as Y,Ws as We,bF as sa,br as Ee,XQ as En,ke as xn,XR as Vt,XS as wn,kh as ft,XT as Qe,XU as Tn,km as Dn,XV as Gt,XW as Pn,kq as gt,XX as Ze,XY as On,XZ as Fn,WM as jn,ls as Rn,X_ as Mn,bn as Je,X$ as ra,Xq as le,bc as ia,lG as ca,lp as la,Xs as de,Xr as ae,fH as da,gd as Yn,gt as bt,Y0 as Bn,Y1 as Un,Y2 as ua,Y3 as Oe,Er as Ye,Es as Be,EQ as xe,EK as ue,Ew as Ue,Y4 as Ln,c0 as Le,Y5 as Vn,Y6 as Gn,Y7 as ma,Y8 as Fe,Y9 as Nn,ek as et,Ax as pa,Ya as $n,Yb as ha,Yc as zn,Yd as Kn,Ye as qn,Yf as _t,Vo as St,uh as we,m3 as Te,E_ as kt,AE as Xn,AL as Qn,Yg as Zn,Yh as Hn,Et as Nt,Yi as Wn,AA as Ie,Av as fa,Yj as ge,Yk as $t,Yl as Jn,Ym as yt,Vn as At,CI as ga,Yn as eo,Yo as ba,Yp as to,Yq as ao,Yr as no,Ys as It,CX as oo,D2 as so,Yt as ro,Yu as io,Ev as zt,Yv as co,CG as Ca,Yw as be,Yx as Kt,Yy as lo,bq as _a,F3 as Sa,Yz as uo,YA as ka,YB as mo,YC as po,YD as ho,YE as vt,EX as fo,EZ as go,YF as bo,YG as Co,Eu as qt,YH as _o,F1 as ya,YI as Ce,YJ as Xt,YK as So,YL as ko,YM as Aa,lU as Ia,p$ as va,lZ as Ea,pZ as xa,pY as wa,pX as Ta,C3 as yo,dd as Ao,pU as Io,UL as vo,q9 as Eo,YN as xo,YO as wo,YP as To,b5 as Et,q3 as Do,ih as Po,gL as Oo,q2 as Fo,li as jo,q0 as Ro,p_ as Mo,e0 as Yo,d$ as Bo}from"./zeni-epic-state-M9sMLOaG.js";import{z as B,at as oe,p as O,l as w,G as X,b9 as Uo,aq as Ve,a6 as Ge,ba as Da,K as N,bb as Lo,bc as Pa,bd as Vo,be as Go,a as Oa,_ as Fa,e as ja,ap as No,bf as $o,am as zo,c as xt,bg as Ra,x as re,bh as Ma,bi as Ya,as as Ba,bj as Ko,ag as Ne,V as $e,bk as qo,H as Xo,bl as Qo,$ as G,f as Zo,j as Ho,a2 as Wo,ao as Jo,bm as es,bn as ts,bo as as,bp as ve}from"./index-Dp_Uc3gy.js";import{u as ns,n as wt}from"./mui-D-_RYGgU.js";import{a as b}from"./sentry-DjmIorbX.js";import{w as Ua}from"./withTransactionSidePanel-BuJ7rAhb.js";import{c as La,t as De,f as me,b as Tt,a as Dt,v as os}from"./routePaths-BALvGXpp.js";import{u as se}from"./useAskAiCfoHostNavButtonProps-DWkTPomv.js";import Me from"./NotFoundScreen-DDA41Ig7.js";import{u as Pt}from"./useInitialThreadRequest-BaIZPAUw.js";import{t as Va}from"./analyticsHelper-BkudU6tc.js";import{C as ss}from"./CompanyPassportScreen-DFOWHlG6.js";import{u as rs}from"./useAiCfoDashboardSuggestedQuestionsChips-B5pmnrb8.js";import{F as is}from"./FeaturePreviewScreen-DETqyCpy.js";import"./recharts-By7FVN8f.js";import"./analytics-DhotUQIQ.js";import"./plaid-B0PWXAfV.js";import"./dnd-CBDtHD8g.js";import"./stripe-cKAAJElX.js";import"./lottie-C4orech3.js";import"./lexical-Cft6chCX.js";import"./pdf-DFgrdLB6.js";import"./utils-iOnDyQuG.js";import"./TransactionDetailScreen-CS9DS32g.js";import"./decodeURIComponentSafe-sNmSv15A.js";import"./expenseAutomationHelper-Bb1c_nBx.js";import"./stripSplatSuffix-B5IwbFj2.js";import"./MobileAppDrawer-CsfNveW9.js";import"./InboxNotificationsProvider-LdTK3V9o.js";import"./useTaskManagerAccess-CFJAytRv.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]="824b4886-2aac-4e73-b8fc-2c9d62fcd0fd",e._sentryDebugIdIdentifier="sentry-dbid-824b4886-2aac-4e73-b8fc-2c9d62fcd0fd")}catch{}})();const cs=Ua((function({openTransactionPanel:e,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n}){const{vendorId:o,reportDate:r}=q(),s=B.getSignedInUser(),i=S((_=>_.tenantState.currentTenantId)),l=S((_=>Y(_))),{tenantEmailDomain:m}=q(),p=H(),h=l?.companyName??"",f={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:i??""},c=b.useMemo((()=>({authParams:f,companyName:h,downloadEndPoint:`${oe}/agingDetailedReport`,timezone:We()})),[]),u=b.useMemo((()=>r!=null?sa(r):Ee()),[r]),C=z(),g=W(),y=S((_=>En(_,u,o))),E=b.useCallback((()=>{o!=null&&y.fetchState!=="In-Progress"&&y.fetchState!=="Completed"&&C(xn(o,u))}),[u]),I=b.useCallback((()=>{g("../../",{relative:"path"})}),[]),k=b.useCallback(((_,A)=>{C(Vt({sortKey:_,sortOrder:A}))}),[]),x=b.useCallback((_=>{C(Vt({downloadState:_}))}),[]),R=b.useCallback((_=>{if(e)e(_.transactionId,_.transactionType);else if(m!=null){const A=La({id:_.transactionId,type:_.transactionType},m);g(A);const U=O(p.state?.pathnameStackToGoBack,p.pathname);g(A,{state:{pathnameStackToGoBack:U}})}}),[m,e]),T=b.useCallback((()=>{y.vendor!=null&&w.trackApAgingDetail("AP Aging",u.format(X.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),y.vendor.id,y.vendor.name)}),[y.vendor,u]);return b.useEffect((()=>{E()}),[]),b.useEffect((()=>{y.fetchState==="Completed"&&T()}),[T,y.fetchState]),d.jsx(Uo,{apAgingDetail:y,downloadParams:c,reportDate:u,analytics:w,onTransactionClick:R,onReload:E,onBackClick:I,onColumnSortConfigChanged:k,updateDownloadStateHandler:x,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n})})),ls=()=>{const e=z(),a=W(),t=S((k=>wn(k))),{isAiCfoAccessEnabled:n,onAskAiCfoClick:o}=se({mobileExploreReferrer:"AP Aging"});Ve({isDataReady:t.fetchState==="Completed"});const r=B.getSignedInUser(),s=S((k=>k.tenantState.currentTenantId)),i=S((k=>Y(k))),l=i?.companyName??"",m={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:s??""},p=b.useMemo((()=>({authParams:m,companyName:l,downloadEndPoint:`${oe}/agingReport`,timezone:We()})),[]),h=t.apAgingUIState.selectedDate??Ee(),f=b.useCallback((()=>{t.fetchState!=="In-Progress"&&t.fetchState!=="Completed"&&e(ft(h))}),[]);b.useEffect((()=>{f()}),[]);const c=b.useCallback((()=>{a("../",{relative:"path"})}),[]),u=b.useCallback((k=>{e(Qe({searchString:k}))}),[]),C=b.useCallback(((k,x)=>{e(Qe({sortKey:x,sortOrder:k}))}),[]),g=b.useCallback((k=>{a(`./${k}/${h.format(X.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`)}),[h]),y=b.useCallback((k=>{e(Qe({downloadState:k}))}),[]),E=b.useCallback(((k,x)=>{}),[]),I=b.useCallback(((k,x)=>{e(Qe({selectedDate:k,agingDateSelectionType:x})),e(ft(k))}),[]);return d.jsxs(d.Fragment,{children:[t.fetchState==="Completed"?d.jsx(Ge,{analytics:w,onLoad:k=>k.trackPageLoaded(N.Event.agingReport,"AP Aging")}):null,d.jsx(Da,{uiState:t.apAgingUIState,report:t,downloadParams:p,analytics:w,onReloadReport:f,onBackClick:c,onSearchTextChange:u,onSortOrderChange:C,onEntityNameClick:g,updateDownloadStateHandler:y,onSelectedDateChanged:I,onNodeCollapseToggled:E,isAiCfoAccessEnabled:n,onAskAiCfoClick:o})]})},ds=Ua((function({openTransactionPanel:e,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n}){const{customerId:o,reportDate:r}=q(),s=B.getSignedInUser(),i=S((T=>Y(T))),{tenantEmailDomain:l}=q(),m=H(),p=i.companyName,h={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:i.tenantId},f=b.useMemo((()=>({authParams:h,companyName:p,downloadEndPoint:`${oe}/agingDetailedReport`,timezone:We()})),[]),c=b.useMemo((()=>r!=null?sa(r):Ee()),[r]),u=z(),C=W(),g=S((T=>Tn(T,c,o))),y=b.useCallback((()=>{o!=null&&g.fetchState!=="In-Progress"&&g.fetchState!=="Completed"&&u(Dn(o,c))}),[c]),E=b.useCallback((()=>{C("../../",{relative:"path"})}),[]),I=b.useCallback(((T,_)=>{u(Gt({sortKey:T,sortOrder:_}))}),[]),k=b.useCallback((T=>{u(Gt({downloadState:T}))}),[]),x=b.useCallback((T=>{if(e)e(T.transactionId,T.transactionType);else if(l!=null){const _=La({id:T.transactionId,type:T.transactionType},l);C(_);const A=O(m.state?.pathnameStackToGoBack,m.pathname);C(_,{state:{pathnameStackToGoBack:A}})}}),[l,e]),R=b.useCallback((()=>{g.customer!=null&&w.trackArAgingDetail("AR Aging",c.format(X.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),g.customer.id,g.customer.name)}),[g.customer,c]);return b.useEffect((()=>{y()}),[]),b.useEffect((()=>{g.fetchState==="Completed"&&R()}),[g.fetchState,R]),d.jsx(Lo,{arAgingDetail:g,downloadParams:f,reportDate:c,analytics:w,onTransactionClick:x,onReload:y,onBackClick:E,onColumnSortConfigChanged:I,updateDownloadStateHandler:k,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n})})),us=()=>{const e=z(),a=W(),t=S((I=>Pn(I))),{isAiCfoAccessEnabled:n,onAskAiCfoClick:o}=se({mobileExploreReferrer:"AR Aging"});Ve({isDataReady:t.fetchState==="Completed"});const r=B.getSignedInUser(),s=S((I=>Y(I))),i=s.companyName,l={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:s.tenantId},m=b.useMemo((()=>({authParams:l,companyName:i,downloadEndPoint:`${oe}/agingReport`,timezone:We()})),[]),p=t.arAgingUIState.selectedDate??Ee(),h=b.useCallback((()=>{t.fetchState!=="In-Progress"&&t.fetchState!=="Completed"&&e(gt(p))}),[]);b.useEffect((()=>{h()}),[]);const f=b.useCallback((()=>{a("../",{relative:"path"})}),[]),c=b.useCallback((I=>{e(Ze({searchString:I}))}),[]),u=b.useCallback(((I,k)=>{e(Ze({sortKey:k,sortOrder:I}))}),[]),C=b.useCallback((I=>{a(`./${I}/${p.format(X.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`)}),[p]),g=b.useCallback((I=>{e(Ze({downloadState:I}))}),[]),y=b.useCallback(((I,k)=>{e(Ze({selectedDate:I,agingDateSelectionType:k})),e(gt(I))}),[]),E=b.useCallback(((I,k)=>{e(On({nodeId:I,isCollapsed:k}))}),[]);return d.jsxs(d.Fragment,{children:[t.fetchState==="Completed"?d.jsx(Ge,{analytics:w,onLoad:I=>I.trackPageLoaded(N.Event.agingReport,"AR Aging")}):null,d.jsx(Da,{uiState:t.arAgingUIState,report:t,downloadParams:m,analytics:w,onReloadReport:h,onBackClick:f,onSearchTextChange:c,onSortOrderChange:u,onEntityNameClick:C,updateDownloadStateHandler:g,onSelectedDateChanged:y,onNodeCollapseToggled:E,isAiCfoAccessEnabled:n,onAskAiCfoClick:o})]})},Ga=(e,a)=>({key:a,title:e.accountName,amount:e.balance?.available,logoUri:e.logo?.toString(),source:e});function Na(e,a){const t=jn(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=O(a.location.state?.pathnameStackToGoBack,a.location.pathname);a.navigate(s,{state:{pathnameStackToGoBack:i,referrer:a.referrerType}})},onSetAccountsStatementDate:(n,o)=>{e(Rn(n,o))}}}const ms=ne((function(e){const a=Fn(e).accountsInOrder.map(((t,n)=>Ga(t,n)));return{sectionTitle:X.getLocalizedStrings().balanceCard.cashBalanceSectionTitle,transactionArray:a,fetchState:e.cashBalanceState.fetchState,analytics:w}}),Na)(Pa),ps=ne((function(e){const a=Mn(e).accountsInOrder.map(((o,r)=>Ga(o,r))),t=B.getSignedInUser(),n=Je(t);return{sectionTitle:X.getLocalizedStrings().balanceCard.cardBalanceSectionTitle,transactionArray:a,isZeniUser:n,fetchState:e.cardBalanceState.fetchState,analytics:w}}),Na)(Pa);function hs(){const e=W(),a=H(),{tenantEmailDomain:t}=q(),n=S((o=>Y(o).company?.companyInfo.firstMonthOfFY??1));return S((o=>o.cashBalanceState.fetchState))==="Error"?d.jsx(Me,{}):d.jsx(ms,{tenantEmailDomain:t,location:a,referrerType:"Cash Balance",navigate:e,firstMonthOfFY:n})}function fs(){const e=W(),a=H(),{tenantEmailDomain:t}=q(),n=S((o=>Y(o).company?.companyInfo.firstMonthOfFY??1));return S((o=>o.cardBalanceState.fetchState))==="Error"?d.jsx(Me,{}):d.jsx(ps,{tenantEmailDomain:t,location:a,referrerType:"Card Balance",navigate:e,firstMonthOfFY:n})}const gs=wt.div`
1
+ import{j as d}from"./liveblocks-BYqz0SWy.js";import{i as q,j as S,g as H,u as z,h as W,l as ne,k as oa,n as ht,o as P,N as vn}from"./core-B1R51LGS.js";import{fI as Y,Ws as We,bF as sa,br as Ee,XQ as En,ke as xn,XR as Vt,XS as wn,kh as ft,XT as Qe,XU as Tn,km as Dn,XV as Gt,XW as Pn,kq as gt,XX as Ze,XY as On,XZ as Fn,WM as jn,ls as Rn,X_ as Mn,bn as Je,X$ as ra,Xq as le,bc as ia,lG as ca,lp as la,Xs as de,Xr as ae,fH as da,gd as Yn,gt as bt,Y0 as Bn,Y1 as Un,Y2 as ua,Y3 as Oe,Er as Ye,Es as Be,EQ as xe,EK as ue,Ew as Ue,Y4 as Ln,c0 as Le,Y5 as Vn,Y6 as Gn,Y7 as ma,Y8 as Fe,Y9 as Nn,ek as et,Ax as pa,Ya as $n,Yb as ha,Yc as zn,Yd as Kn,Ye as qn,Yf as _t,Vo as St,uh as we,m3 as Te,E_ as kt,AE as Xn,AL as Qn,Yg as Zn,Yh as Hn,Et as Nt,Yi as Wn,AA as Ie,Av as fa,Yj as ge,Yk as $t,Yl as Jn,Ym as yt,Vn as At,CI as ga,Yn as eo,Yo as ba,Yp as to,Yq as ao,Yr as no,Ys as It,CX as oo,D2 as so,Yt as ro,Yu as io,Ev as zt,Yv as co,CG as Ca,Yw as be,Yx as Kt,Yy as lo,bq as _a,F3 as Sa,Yz as uo,YA as ka,YB as mo,YC as po,YD as ho,YE as vt,EX as fo,EZ as go,YF as bo,YG as Co,Eu as qt,YH as _o,F1 as ya,YI as Ce,YJ as Xt,YK as So,YL as ko,YM as Aa,lU as Ia,p$ as va,lZ as Ea,pZ as xa,pY as wa,pX as Ta,C3 as yo,dd as Ao,pU as Io,UL as vo,q9 as Eo,YN as xo,YO as wo,YP as To,b5 as Et,q3 as Do,ih as Po,gL as Oo,q2 as Fo,li as jo,q0 as Ro,p_ as Mo,e0 as Yo,d$ as Bo}from"./zeni-epic-state-M9sMLOaG.js";import{z as B,at as oe,p as O,l as w,G as X,b9 as Uo,aq as Ve,a6 as Ge,ba as Da,K as N,bb as Lo,bc as Pa,bd as Vo,be as Go,a as Oa,_ as Fa,e as ja,ap as No,bf as $o,am as zo,c as xt,bg as Ra,x as re,bh as Ma,bi as Ya,as as Ba,bj as Ko,ag as Ne,V as $e,bk as qo,H as Xo,bl as Qo,$ as G,f as Zo,j as Ho,a2 as Wo,ao as Jo,bm as es,bn as ts,bo as as,bp as ve}from"./index-C49C-P8m.js";import{u as ns,n as wt}from"./mui-D-_RYGgU.js";import{a as b}from"./sentry-DjmIorbX.js";import{w as Ua}from"./withTransactionSidePanel-ClaUsoxR.js";import{c as La,t as De,f as me,b as Tt,a as Dt,v as os}from"./routePaths-3jcOIrRa.js";import{u as se}from"./useAskAiCfoHostNavButtonProps-BXTsy7YX.js";import Me from"./NotFoundScreen-NsaSbBFa.js";import{u as Pt}from"./useInitialThreadRequest-BwFSf59X.js";import{t as Va}from"./analyticsHelper-DMxE_5WG.js";import{C as ss}from"./CompanyPassportScreen-4WUo_HTu.js";import{u as rs}from"./useAiCfoDashboardSuggestedQuestionsChips-j2GTAdQA.js";import{F as is}from"./FeaturePreviewScreen-Rc8Q-SSN.js";import"./recharts-By7FVN8f.js";import"./analytics-DhotUQIQ.js";import"./plaid-B0PWXAfV.js";import"./dnd-CBDtHD8g.js";import"./stripe-cKAAJElX.js";import"./lottie-C4orech3.js";import"./lexical-Cft6chCX.js";import"./pdf-DFgrdLB6.js";import"./utils-iOnDyQuG.js";import"./TransactionDetailScreen-0OB8Pqf6.js";import"./decodeURIComponentSafe-sNmSv15A.js";import"./expenseAutomationHelper-Bb1c_nBx.js";import"./stripSplatSuffix-B5IwbFj2.js";import"./MobileAppDrawer-DU_XM5Fb.js";import"./InboxNotificationsProvider-LdTK3V9o.js";import"./useTaskManagerAccess-HM4US9Ho.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]="824b4886-2aac-4e73-b8fc-2c9d62fcd0fd",e._sentryDebugIdIdentifier="sentry-dbid-824b4886-2aac-4e73-b8fc-2c9d62fcd0fd")}catch{}})();const cs=Ua((function({openTransactionPanel:e,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n}){const{vendorId:o,reportDate:r}=q(),s=B.getSignedInUser(),i=S((_=>_.tenantState.currentTenantId)),l=S((_=>Y(_))),{tenantEmailDomain:m}=q(),p=H(),h=l?.companyName??"",f={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:i??""},c=b.useMemo((()=>({authParams:f,companyName:h,downloadEndPoint:`${oe}/agingDetailedReport`,timezone:We()})),[]),u=b.useMemo((()=>r!=null?sa(r):Ee()),[r]),C=z(),g=W(),y=S((_=>En(_,u,o))),E=b.useCallback((()=>{o!=null&&y.fetchState!=="In-Progress"&&y.fetchState!=="Completed"&&C(xn(o,u))}),[u]),I=b.useCallback((()=>{g("../../",{relative:"path"})}),[]),k=b.useCallback(((_,A)=>{C(Vt({sortKey:_,sortOrder:A}))}),[]),x=b.useCallback((_=>{C(Vt({downloadState:_}))}),[]),R=b.useCallback((_=>{if(e)e(_.transactionId,_.transactionType);else if(m!=null){const A=La({id:_.transactionId,type:_.transactionType},m);g(A);const U=O(p.state?.pathnameStackToGoBack,p.pathname);g(A,{state:{pathnameStackToGoBack:U}})}}),[m,e]),T=b.useCallback((()=>{y.vendor!=null&&w.trackApAgingDetail("AP Aging",u.format(X.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),y.vendor.id,y.vendor.name)}),[y.vendor,u]);return b.useEffect((()=>{E()}),[]),b.useEffect((()=>{y.fetchState==="Completed"&&T()}),[T,y.fetchState]),d.jsx(Uo,{apAgingDetail:y,downloadParams:c,reportDate:u,analytics:w,onTransactionClick:R,onReload:E,onBackClick:I,onColumnSortConfigChanged:k,updateDownloadStateHandler:x,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n})})),ls=()=>{const e=z(),a=W(),t=S((k=>wn(k))),{isAiCfoAccessEnabled:n,onAskAiCfoClick:o}=se({mobileExploreReferrer:"AP Aging"});Ve({isDataReady:t.fetchState==="Completed"});const r=B.getSignedInUser(),s=S((k=>k.tenantState.currentTenantId)),i=S((k=>Y(k))),l=i?.companyName??"",m={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:s??""},p=b.useMemo((()=>({authParams:m,companyName:l,downloadEndPoint:`${oe}/agingReport`,timezone:We()})),[]),h=t.apAgingUIState.selectedDate??Ee(),f=b.useCallback((()=>{t.fetchState!=="In-Progress"&&t.fetchState!=="Completed"&&e(ft(h))}),[]);b.useEffect((()=>{f()}),[]);const c=b.useCallback((()=>{a("../",{relative:"path"})}),[]),u=b.useCallback((k=>{e(Qe({searchString:k}))}),[]),C=b.useCallback(((k,x)=>{e(Qe({sortKey:x,sortOrder:k}))}),[]),g=b.useCallback((k=>{a(`./${k}/${h.format(X.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`)}),[h]),y=b.useCallback((k=>{e(Qe({downloadState:k}))}),[]),E=b.useCallback(((k,x)=>{}),[]),I=b.useCallback(((k,x)=>{e(Qe({selectedDate:k,agingDateSelectionType:x})),e(ft(k))}),[]);return d.jsxs(d.Fragment,{children:[t.fetchState==="Completed"?d.jsx(Ge,{analytics:w,onLoad:k=>k.trackPageLoaded(N.Event.agingReport,"AP Aging")}):null,d.jsx(Da,{uiState:t.apAgingUIState,report:t,downloadParams:p,analytics:w,onReloadReport:f,onBackClick:c,onSearchTextChange:u,onSortOrderChange:C,onEntityNameClick:g,updateDownloadStateHandler:y,onSelectedDateChanged:I,onNodeCollapseToggled:E,isAiCfoAccessEnabled:n,onAskAiCfoClick:o})]})},ds=Ua((function({openTransactionPanel:e,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n}){const{customerId:o,reportDate:r}=q(),s=B.getSignedInUser(),i=S((T=>Y(T))),{tenantEmailDomain:l}=q(),m=H(),p=i.companyName,h={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:i.tenantId},f=b.useMemo((()=>({authParams:h,companyName:p,downloadEndPoint:`${oe}/agingDetailedReport`,timezone:We()})),[]),c=b.useMemo((()=>r!=null?sa(r):Ee()),[r]),u=z(),C=W(),g=S((T=>Tn(T,c,o))),y=b.useCallback((()=>{o!=null&&g.fetchState!=="In-Progress"&&g.fetchState!=="Completed"&&u(Dn(o,c))}),[c]),E=b.useCallback((()=>{C("../../",{relative:"path"})}),[]),I=b.useCallback(((T,_)=>{u(Gt({sortKey:T,sortOrder:_}))}),[]),k=b.useCallback((T=>{u(Gt({downloadState:T}))}),[]),x=b.useCallback((T=>{if(e)e(T.transactionId,T.transactionType);else if(l!=null){const _=La({id:T.transactionId,type:T.transactionType},l);C(_);const A=O(m.state?.pathnameStackToGoBack,m.pathname);C(_,{state:{pathnameStackToGoBack:A}})}}),[l,e]),R=b.useCallback((()=>{g.customer!=null&&w.trackArAgingDetail("AR Aging",c.format(X.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),g.customer.id,g.customer.name)}),[g.customer,c]);return b.useEffect((()=>{y()}),[]),b.useEffect((()=>{g.fetchState==="Completed"&&R()}),[g.fetchState,R]),d.jsx(Lo,{arAgingDetail:g,downloadParams:f,reportDate:c,analytics:w,onTransactionClick:x,onReload:y,onBackClick:E,onColumnSortConfigChanged:I,updateDownloadStateHandler:k,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n})})),us=()=>{const e=z(),a=W(),t=S((I=>Pn(I))),{isAiCfoAccessEnabled:n,onAskAiCfoClick:o}=se({mobileExploreReferrer:"AR Aging"});Ve({isDataReady:t.fetchState==="Completed"});const r=B.getSignedInUser(),s=S((I=>Y(I))),i=s.companyName,l={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:s.tenantId},m=b.useMemo((()=>({authParams:l,companyName:i,downloadEndPoint:`${oe}/agingReport`,timezone:We()})),[]),p=t.arAgingUIState.selectedDate??Ee(),h=b.useCallback((()=>{t.fetchState!=="In-Progress"&&t.fetchState!=="Completed"&&e(gt(p))}),[]);b.useEffect((()=>{h()}),[]);const f=b.useCallback((()=>{a("../",{relative:"path"})}),[]),c=b.useCallback((I=>{e(Ze({searchString:I}))}),[]),u=b.useCallback(((I,k)=>{e(Ze({sortKey:k,sortOrder:I}))}),[]),C=b.useCallback((I=>{a(`./${I}/${p.format(X.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`)}),[p]),g=b.useCallback((I=>{e(Ze({downloadState:I}))}),[]),y=b.useCallback(((I,k)=>{e(Ze({selectedDate:I,agingDateSelectionType:k})),e(gt(I))}),[]),E=b.useCallback(((I,k)=>{e(On({nodeId:I,isCollapsed:k}))}),[]);return d.jsxs(d.Fragment,{children:[t.fetchState==="Completed"?d.jsx(Ge,{analytics:w,onLoad:I=>I.trackPageLoaded(N.Event.agingReport,"AR Aging")}):null,d.jsx(Da,{uiState:t.arAgingUIState,report:t,downloadParams:m,analytics:w,onReloadReport:h,onBackClick:f,onSearchTextChange:c,onSortOrderChange:u,onEntityNameClick:C,updateDownloadStateHandler:g,onSelectedDateChanged:y,onNodeCollapseToggled:E,isAiCfoAccessEnabled:n,onAskAiCfoClick:o})]})},Ga=(e,a)=>({key:a,title:e.accountName,amount:e.balance?.available,logoUri:e.logo?.toString(),source:e});function Na(e,a){const t=jn(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=O(a.location.state?.pathnameStackToGoBack,a.location.pathname);a.navigate(s,{state:{pathnameStackToGoBack:i,referrer:a.referrerType}})},onSetAccountsStatementDate:(n,o)=>{e(Rn(n,o))}}}const ms=ne((function(e){const a=Fn(e).accountsInOrder.map(((t,n)=>Ga(t,n)));return{sectionTitle:X.getLocalizedStrings().balanceCard.cashBalanceSectionTitle,transactionArray:a,fetchState:e.cashBalanceState.fetchState,analytics:w}}),Na)(Pa),ps=ne((function(e){const a=Mn(e).accountsInOrder.map(((o,r)=>Ga(o,r))),t=B.getSignedInUser(),n=Je(t);return{sectionTitle:X.getLocalizedStrings().balanceCard.cardBalanceSectionTitle,transactionArray:a,isZeniUser:n,fetchState:e.cardBalanceState.fetchState,analytics:w}}),Na)(Pa);function hs(){const e=W(),a=H(),{tenantEmailDomain:t}=q(),n=S((o=>Y(o).company?.companyInfo.firstMonthOfFY??1));return S((o=>o.cashBalanceState.fetchState))==="Error"?d.jsx(Me,{}):d.jsx(ms,{tenantEmailDomain:t,location:a,referrerType:"Cash Balance",navigate:e,firstMonthOfFY:n})}function fs(){const e=W(),a=H(),{tenantEmailDomain:t}=q(),n=S((o=>Y(o).company?.companyInfo.firstMonthOfFY??1));return S((o=>o.cardBalanceState.fetchState))==="Error"?d.jsx(Me,{}):d.jsx(ps,{tenantEmailDomain:t,location:a,referrerType:"Card Balance",navigate:e,firstMonthOfFY:n})}const gs=wt.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-BYqz0SWy.js";import{a as u}from"./sentry-DjmIorbX.js";import{u as w,j as b,l as y,g as U,N as A}from"./core-B1R51LGS.js";import{Uu as N,fI as _,go as k,Uv as L,pW as R,Uw as z}from"./zeni-epic-state-M9sMLOaG.js";import{u as j,z as f,L as T,t as I,G as O,b as $}from"./index-Dp_Uc3gy.js";import"./mui-D-_RYGgU.js";import{t as P}from"./getLocaleForTenant-Nj4zPyxj.js";import"./recharts-By7FVN8f.js";import"./analytics-DhotUQIQ.js";import"./plaid-B0PWXAfV.js";import"./dnd-CBDtHD8g.js";import"./stripe-cKAAJElX.js";import"./lottie-C4orech3.js";import"./lexical-Cft6chCX.js";import"./pdf-DFgrdLB6.js";import"./utils-iOnDyQuG.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]="d73b09da-2f5b-499c-95a6-e5ebd93abece",t._sentryDebugIdIdentifier="sentry-dbid-d73b09da-2f5b-499c-95a6-e5ebd93abece")}catch{}})();const G=y((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=U(),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(A,{to:x,replace:!0,state:{...r.state,origin:"",message:m,aiCfoInitialQuestion:d,aiCfoShouldSubmit:e,aiCfoRef:g,aiCfoEmailRefId:S}})}}));function oe(){const t=w(),{setLoading:s,clearAllLoading:o}=j(),h=u.useRef(!1),r=u.useRef(!1),p=u.useRef(null),m=b((e=>N(e))),n=b((e=>e.tenantState.fetchState)),i=b((e=>e.tenantState.error)),a=b((e=>e.tenantState.activeTenantFetchState.fetchState)),c=b((e=>_(e))),d=f.getSignedInUser();return u.useLayoutEffect((()=>{const e=f.getActiveTenantForUser()?.tenantId??null;p.current!==e&&(p.current=e,h.current=!1,r.current=!1,s(T.TENANT_FETCHING)),!h.current||a!=="Completed"&&a!=="Error"||(h.current=!1),!r.current||n!=="Completed"&&n!=="Error"||(r.current=!1)}),[a,n]),u.useEffect((()=>{const e=f.getActiveTenantForUser()?.tenantId;h.current===!1&&d!=null&&e!=null&&I.shouldFetchActiveTenant(e)&&(h.current=!0,I.markActiveTenantFetchStarted(e),n==="Completed"||a!=="Not-Started"&&a!=="Error"||(s(T.TENANT_FETCHING),t(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(P(c)),o())}),[n,a,c]),v.jsx(G,{})}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};
1
+ import{j as v}from"./liveblocks-BYqz0SWy.js";import{a as u}from"./sentry-DjmIorbX.js";import{u as w,j as b,l as y,g as U,N as A}from"./core-B1R51LGS.js";import{Uu as N,fI as _,go as k,Uv as L,pW as R,Uw as z}from"./zeni-epic-state-M9sMLOaG.js";import{u as j,z as f,L as T,t as I,G as O,b as $}from"./index-C49C-P8m.js";import"./mui-D-_RYGgU.js";import{t as P}from"./getLocaleForTenant-CLKJVxYo.js";import"./recharts-By7FVN8f.js";import"./analytics-DhotUQIQ.js";import"./plaid-B0PWXAfV.js";import"./dnd-CBDtHD8g.js";import"./stripe-cKAAJElX.js";import"./lottie-C4orech3.js";import"./lexical-Cft6chCX.js";import"./pdf-DFgrdLB6.js";import"./utils-iOnDyQuG.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]="d73b09da-2f5b-499c-95a6-e5ebd93abece",t._sentryDebugIdIdentifier="sentry-dbid-d73b09da-2f5b-499c-95a6-e5ebd93abece")}catch{}})();const G=y((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=U(),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(A,{to:x,replace:!0,state:{...r.state,origin:"",message:m,aiCfoInitialQuestion:d,aiCfoShouldSubmit:e,aiCfoRef:g,aiCfoEmailRefId:S}})}}));function oe(){const t=w(),{setLoading:s,clearAllLoading:o}=j(),h=u.useRef(!1),r=u.useRef(!1),p=u.useRef(null),m=b((e=>N(e))),n=b((e=>e.tenantState.fetchState)),i=b((e=>e.tenantState.error)),a=b((e=>e.tenantState.activeTenantFetchState.fetchState)),c=b((e=>_(e))),d=f.getSignedInUser();return u.useLayoutEffect((()=>{const e=f.getActiveTenantForUser()?.tenantId??null;p.current!==e&&(p.current=e,h.current=!1,r.current=!1,s(T.TENANT_FETCHING)),!h.current||a!=="Completed"&&a!=="Error"||(h.current=!1),!r.current||n!=="Completed"&&n!=="Error"||(r.current=!1)}),[a,n]),u.useEffect((()=>{const e=f.getActiveTenantForUser()?.tenantId;h.current===!1&&d!=null&&e!=null&&I.shouldFetchActiveTenant(e)&&(h.current=!0,I.markActiveTenantFetchStarted(e),n==="Completed"||a!=="Not-Started"&&a!=="Error"||(s(T.TENANT_FETCHING),t(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(P(c)),o())}),[n,a,c]),v.jsx(G,{})}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};
@@ -1,4 +1,4 @@
1
- import{j as l}from"./liveblocks-BYqz0SWy.js";import{h as w,g as C,j as h,l as A,i as V}from"./core-B1R51LGS.js";import{Zt as k,ZA as J,gJ as L,gI as M,gH as W,kT as X,Xr as q,uV as K,fI as D,Z0 as B,kR as T,Zu as S,ZD as F,kP as G,la as j}from"./zeni-epic-state-M9sMLOaG.js";import{bL as Q,_ as R,c as N,z as Z,a2 as p,$ as v,a5 as U,bM as Y,E as _,bN as ee,p as te}from"./index-Dp_Uc3gy.js";import{u as H,n as O}from"./mui-D-_RYGgU.js";import"./sentry-DjmIorbX.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]="9355634f-6522-424c-8cb5-9418a1ff9b64",e._sentryDebugIdIdentifier="sentry-dbid-9355634f-6522-424c-8cb5-9418a1ff9b64")}catch{}})();const ne=A(null,(function(e,t){return{onSaveVendor:n=>{e(X(t.vendorId!==void 0?t.vendorId:void 0,t.billId,void 0,t.isExpressPayPage)),e(q("common")),n!=null&&e(K(n))},onGetOtp:n=>{e(W(n,"BillPayVendor"))},onResendOtp:n=>{e(M(n,"BillPayVendor"))},onVerifyOtp:(n,a)=>{e(L(n,a,"BillPayVendor"))},onVerifyOtpSuccess:(n,a,o)=>{e(J(n,a,o))}}}))(Q);function z({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=O.div`
1
+ import{j as l}from"./liveblocks-BYqz0SWy.js";import{h as w,g as C,j as h,l as A,i as V}from"./core-B1R51LGS.js";import{Zt as k,ZA as J,gJ as L,gI as M,gH as W,kT as X,Xr as q,uV as K,fI as D,Z0 as B,kR as T,Zu as S,ZD as F,kP as G,la as j}from"./zeni-epic-state-M9sMLOaG.js";import{bL as Q,_ as R,c as N,z as Z,a2 as p,$ as v,a5 as U,bM as Y,E as _,bN as ee,p as te}from"./index-C49C-P8m.js";import{u as H,n as O}from"./mui-D-_RYGgU.js";import"./sentry-DjmIorbX.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]="9355634f-6522-424c-8cb5-9418a1ff9b64",e._sentryDebugIdIdentifier="sentry-dbid-9355634f-6522-424c-8cb5-9418a1ff9b64")}catch{}})();const ne=A(null,(function(e,t){return{onSaveVendor:n=>{e(X(t.vendorId!==void 0?t.vendorId:void 0,t.billId,void 0,t.isExpressPayPage)),e(q("common")),n!=null&&e(K(n))},onGetOtp:n=>{e(W(n,"BillPayVendor"))},onResendOtp:n=>{e(M(n,"BillPayVendor"))},onVerifyOtp:(n,a)=>{e(L(n,a,"BillPayVendor"))},onVerifyOtpSuccess:(n,a,o)=>{e(J(n,a,o))}}}))(Q);function z({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=O.div`
2
2
  display: flex;
3
3
  height: 100vh;
4
4
  width: 100%;
@@ -1 +1 @@
1
- import{j as i}from"./liveblocks-BYqz0SWy.js";import{_ as l,a9 as c}from"./index-Dp_Uc3gy.js";import{u as f,D as p}from"./mui-D-_RYGgU.js";import"./sentry-DjmIorbX.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]="7343a8d4-dee6-4ca7-9ab3-2b3236099e14",e._sentryDebugIdIdentifier="sentry-dbid-7343a8d4-dee6-4ca7-9ab3-2b3236099e14")}catch{}})();const b={drawerLeftMargin:new c(0,0,240)};function h(e){const{isOpen:r,drawerLeftMargin:o,children:a,onClose:t}=e,n=l(),s=o?.valuePx(n)??b.drawerLeftMargin.valuePx(n),d=f();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
+ import{j as i}from"./liveblocks-BYqz0SWy.js";import{_ as l,a9 as c}from"./index-C49C-P8m.js";import{u as f,D as p}from"./mui-D-_RYGgU.js";import"./sentry-DjmIorbX.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]="7343a8d4-dee6-4ca7-9ab3-2b3236099e14",e._sentryDebugIdIdentifier="sentry-dbid-7343a8d4-dee6-4ca7-9ab3-2b3236099e14")}catch{}})();const b={drawerLeftMargin:new c(0,0,240)};function h(e){const{isOpen:r,drawerLeftMargin:o,children:a,onClose:t}=e,n=l(),s=o?.valuePx(n)??b.drawerLeftMargin.valuePx(n),d=f();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-BYqz0SWy.js";import{a as c}from"./sentry-DjmIorbX.js";import{h as q,u as A,g as G,i as N,j as d,N as W,l as X,n as F,o as O}from"./core-B1R51LGS.js";import{Xw as _,fI as M,WN as R,n3 as Y,SN as k,XB as $,Xq as z,m3 as V,SO as P,WS as H,WT as J,Xs as K,Xr as L}from"./zeni-epic-state-M9sMLOaG.js";import{b6 as Q,l as U,a2 as Z,p as tt}from"./index-Dp_Uc3gy.js";import"./mui-D-_RYGgU.js";import{d as I}from"./decodeURIComponentSafe-sNmSv15A.js";import{w as et}from"./withTransactionSidePanel-BuJ7rAhb.js";import{f as at,c as nt}from"./routePaths-BALvGXpp.js";import"./recharts-By7FVN8f.js";import"./analytics-DhotUQIQ.js";import"./plaid-B0PWXAfV.js";import"./dnd-CBDtHD8g.js";import"./stripe-cKAAJElX.js";import"./lottie-C4orech3.js";import"./lexical-Cft6chCX.js";import"./pdf-DFgrdLB6.js";import"./utils-iOnDyQuG.js";import"./useAskAiCfoHostNavButtonProps-DWkTPomv.js";import"./TransactionDetailScreen-CS9DS32g.js";import"./useInitialThreadRequest-BaIZPAUw.js";import"./expenseAutomationHelper-Bb1c_nBx.js";import"./stripSplatSuffix-B5IwbFj2.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]="a6866467-5cf7-4cd2-8cf2-4241e73c8538",a._sentryDebugIdIdentifier="sentry-dbid-a6866467-5cf7-4cd2-8cf2-4241e73c8538")}catch{}})();const ot=X((function(a,t){const e=t.entity,o=$(a,t.entity,"EntityDetail");return{selectedEntity:e,autoCompleteData:{autoCompleteText:e.name,entityAutoCompleteView:z(a,"common")},trendWithTransactionsReport:o,analytics:U,isAccountingClassesEnabled:V(a)}}),(function(a,t){return{onTransactionItemClick:e=>{if(t.openTransactionPanel)return void t.openTransactionPanel(e.id,e.type);const o=`${nt(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?a(K({searchString:e,searchOrigin:"common"})):e.trim().length===0&&a(L("common"))},onAutoCompleteEntity:e=>{const o=at(e,t.tenantEmailDomain);a(H()),a(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??C();t.navigate(o,{state:{pathnameStackToGoBack:e.newStack}})}},onTrendSelectedPeriodChange:e=>{if(t.closeSidePanel?.(),e==null)t.defaultTransactionTimePeriod!=null&&a(P(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(k(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:e.addTimePeriod})),a(P(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:o}))}}}}))(Q),it=et((function({entityType:a,...t}){const e=q(),o=A(),l=G(),[m,T]=c.useState(!1),[h,D]=c.useState(!1),{tenantEmailDomain:b,entityIdEncoded:w,entityNameEncoded:x}=N(),r=I(w??""),p=I(x??""),f=rt(r,p),j=[r,p].filter((n=>n!=null)),i={name:p,id:r,type:a,zeniId:r,qboId:r},g=d((n=>_(n.customerIncomeState,n.vendorExpenseState,n.trendState,i,"quarter"))),v=d((n=>M(n).company?.companyInfo.firstMonthOfFY??1)),u=d((n=>R(n.trendWithTransactionsState,i,"EntityDetail")));c.useEffect((()=>{m===!1&&f===!0&&(T(!0),o(Y(i)))}),[m,f,i]);const S=d((n=>n.trendState.fetchState)),E=u?.selectedPeriod?.timePeriod??g,B=(function(n,y){return n!=null&&y!=null?{startDate:n.startDate,endDate:y?.endDate}:y})(u?.selectedPeriod?.timePeriod,g);return c.useEffect((()=>{m===!0&&h===!1&&S==="Completed"&&(D(!0),E!=null&&o(k(i,"EntityDetail",{timeframe:u?.selectedPeriod?.timeframe??"quarter",timePeriod:E})))}),[m,h,S]),f?s.jsx(ot,{firstMonthOfFY:v,tenantEmailDomain:b,location:l,navigate:e,entity:i,defaultTransactionTimePeriod:B,resetTrendIsFetchedStates:()=>{T(!1),D(!1)},...t}):s.jsx(W,{to:C(j.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 vt({entityType:a}){return s.jsx(F,{children:s.jsx(O,{path:"/:entityIdEncoded/:entityNameEncoded/*",element:s.jsx(it,{entityType:a})})})}export{vt as EntityDetailRoutes,vt as default};
1
+ import{j as s}from"./liveblocks-BYqz0SWy.js";import{a as c}from"./sentry-DjmIorbX.js";import{h as q,u as A,g as G,i as N,j as d,N as W,l as X,n as F,o as O}from"./core-B1R51LGS.js";import{Xw as _,fI as M,WN as R,n3 as Y,SN as k,XB as $,Xq as z,m3 as V,SO as P,WS as H,WT as J,Xs as K,Xr as L}from"./zeni-epic-state-M9sMLOaG.js";import{b6 as Q,l as U,a2 as Z,p as tt}from"./index-C49C-P8m.js";import"./mui-D-_RYGgU.js";import{d as I}from"./decodeURIComponentSafe-sNmSv15A.js";import{w as et}from"./withTransactionSidePanel-ClaUsoxR.js";import{f as at,c as nt}from"./routePaths-3jcOIrRa.js";import"./recharts-By7FVN8f.js";import"./analytics-DhotUQIQ.js";import"./plaid-B0PWXAfV.js";import"./dnd-CBDtHD8g.js";import"./stripe-cKAAJElX.js";import"./lottie-C4orech3.js";import"./lexical-Cft6chCX.js";import"./pdf-DFgrdLB6.js";import"./utils-iOnDyQuG.js";import"./useAskAiCfoHostNavButtonProps-BXTsy7YX.js";import"./TransactionDetailScreen-0OB8Pqf6.js";import"./useInitialThreadRequest-BwFSf59X.js";import"./expenseAutomationHelper-Bb1c_nBx.js";import"./stripSplatSuffix-B5IwbFj2.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]="a6866467-5cf7-4cd2-8cf2-4241e73c8538",a._sentryDebugIdIdentifier="sentry-dbid-a6866467-5cf7-4cd2-8cf2-4241e73c8538")}catch{}})();const ot=X((function(a,t){const e=t.entity,o=$(a,t.entity,"EntityDetail");return{selectedEntity:e,autoCompleteData:{autoCompleteText:e.name,entityAutoCompleteView:z(a,"common")},trendWithTransactionsReport:o,analytics:U,isAccountingClassesEnabled:V(a)}}),(function(a,t){return{onTransactionItemClick:e=>{if(t.openTransactionPanel)return void t.openTransactionPanel(e.id,e.type);const o=`${nt(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?a(K({searchString:e,searchOrigin:"common"})):e.trim().length===0&&a(L("common"))},onAutoCompleteEntity:e=>{const o=at(e,t.tenantEmailDomain);a(H()),a(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??C();t.navigate(o,{state:{pathnameStackToGoBack:e.newStack}})}},onTrendSelectedPeriodChange:e=>{if(t.closeSidePanel?.(),e==null)t.defaultTransactionTimePeriod!=null&&a(P(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(k(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:e.addTimePeriod})),a(P(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:o}))}}}}))(Q),it=et((function({entityType:a,...t}){const e=q(),o=A(),l=G(),[m,T]=c.useState(!1),[h,D]=c.useState(!1),{tenantEmailDomain:b,entityIdEncoded:w,entityNameEncoded:x}=N(),r=I(w??""),p=I(x??""),f=rt(r,p),j=[r,p].filter((n=>n!=null)),i={name:p,id:r,type:a,zeniId:r,qboId:r},g=d((n=>_(n.customerIncomeState,n.vendorExpenseState,n.trendState,i,"quarter"))),v=d((n=>M(n).company?.companyInfo.firstMonthOfFY??1)),u=d((n=>R(n.trendWithTransactionsState,i,"EntityDetail")));c.useEffect((()=>{m===!1&&f===!0&&(T(!0),o(Y(i)))}),[m,f,i]);const S=d((n=>n.trendState.fetchState)),E=u?.selectedPeriod?.timePeriod??g,B=(function(n,y){return n!=null&&y!=null?{startDate:n.startDate,endDate:y?.endDate}:y})(u?.selectedPeriod?.timePeriod,g);return c.useEffect((()=>{m===!0&&h===!1&&S==="Completed"&&(D(!0),E!=null&&o(k(i,"EntityDetail",{timeframe:u?.selectedPeriod?.timeframe??"quarter",timePeriod:E})))}),[m,h,S]),f?s.jsx(ot,{firstMonthOfFY:v,tenantEmailDomain:b,location:l,navigate:e,entity:i,defaultTransactionTimePeriod:B,resetTrendIsFetchedStates:()=>{T(!1),D(!1)},...t}):s.jsx(W,{to:C(j.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 vt({entityType:a}){return s.jsx(F,{children:s.jsx(O,{path:"/:entityIdEncoded/:entityNameEncoded/*",element:s.jsx(it,{entityType:a})})})}export{vt as EntityDetailRoutes,vt as default};
@@ -1,4 +1,4 @@
1
- import{j as T}from"./liveblocks-BYqz0SWy.js";import{u as Se,h as _e,g as fe,j as O,i as Te,t as qn,l as io,n as lo,o as Ge,N as ro}from"./core-B1R51LGS.js";import{fI as ye,a1F as Jn,q4 as De,UN as xt,Aq as uo,a1G as mo,a1H as po,a1I as ho,a1J as yt,a1K as it,gk as Rt,a1L as In,eH as So,g3 as fo,a1M as Cn,a1N as lt,qX as go,uY as Io,gW as Co,gU as ko,a1O as bo,r8 as To,rh as yo,qf as Po,qt as Yn,gT as re,gV as vo,a1P as Eo,qP as Wn,ri as Ao,qq as xo,ql as Ro,v2 as wo,gS as Fe,a1Q as ut,CA as Hn,N3 as Kn,a1R as Xn,F_ as Qn,a1S as Do,e$ as Fo,f1 as _o,sZ as wt,Xx as kn,Xz as Mo,m6 as Oo,XA as Uo,md as Bo,dm as Vo,DT as Dt,a1T as jo,a1U as $o,a1V as zo,a1W as Lo,fp as Ft,sN as bn,Xq as Go,a1X as No,a1Y as qo,mf as Jo,a1Z as Yo,RO as Wo,me as Ho,m3 as Ko,qI as Zn,rn as mt,tA as ea,tW as Xo,UD as ta,rm as Tn,rp as na,rr as Qo,bF as Zo,nC as es,nz as ts,rq as rt,ro as be,a1_ as ns,rI as yn,a1$ as as,a20 as os,sR as ss,sS as cs,Xm as is,Ws as ls,a17 as rs,a21 as ds,Xs as Pn,Xr as ct,a22 as vn,mu as us,a23 as ms,a24 as ps,a25 as hs,a26 as Ss,qD as fs,a27 as gs,a28 as Is,a29 as Cs,ry as ks,mh as bs,m8 as Ts,a2a as ys,mg as En,XK as Ps,a2b as vs,a2c as Es,uz as As,ua as xs,u9 as Pt,a2d as Rs,a2e as ws,a2f as Ds,a2g as Fs,nN as _s,br as aa,nI as An,nu as Ms,a2h as Os,h3 as Us,nF as Bs,s$ as Vs,t1 as js,sK as $s,Wv as zs,Ww as Ls,Fs as Gs,Fr as Ns,FI as qs,a2i as xn,sQ as Js,sl as Ys,a2j as Ws,s1 as Hs,s6 as Ks,sh as Xs,s4 as Qs,a2k as Zs,rZ as ec,sg as tc,sW as nc,a2l as ac,t7 as oc,sE as sc,td as cc,sJ as ic,rJ as lc,a2m as rc,q$ as dc,qz as uc,qG as Rn,rt as mc,a2n as pc,a2o as hc,a2p as Sc,a2q as fc,a2r as gc,a2s as Ic,a2t as Cc,th as kc,a2u as bc,a2v as Tc,a2w as wn,uK as yc,u1 as Pc,tS as Dn,tQ as vc,a2x as Ec,tF as Ac,tk as xc,tT as Rc,a2y as wc,a2z as Dc,tq as Fc,a2A as _c,tl as Mc,tp as Oc,tn as Uc,tZ as Bc,a2B as Vc,q8 as Fn,a2C as jc,E3 as _n,cz as $c}from"./zeni-epic-state-M9sMLOaG.js";import Ut from"./NotFoundScreen-DDA41Ig7.js";import{a as o,R as oa}from"./sentry-DjmIorbX.js";import{n as Me,S as zc}from"./mui-D-_RYGgU.js";import{c as qe,$ as X,l as ee,p as Z,ao as sa,aq as ca,dM as Lc,dN as Gc,z as Je,dO as _t,dP as Nc,dQ as qc,ac as Ne,dR as Jc,dS as Mn,b8 as On,dT as Yc,a5 as ia,dU as Wc,j as dt,a as Hc,dV as Kc,dW as Xc,k as Qc,V as Zc,dX as ei,dY as ti,dZ as ni,b2 as ai,bq as oi,a9 as si,b3 as ci,b4 as ii,G as la,w as li,d_ as ri,at as Mt,d$ as di,a2 as ui,e0 as mi}from"./index-Dp_Uc3gy.js";import{u as Bt}from"./useAskAiCfoHostNavButtonProps-DWkTPomv.js";import{g as Un,b as pi,c as hi,h as Si,a as fi,i as gi,r as Ii,C as Ci}from"./TransactionDetailScreen-CS9DS32g.js";import{u as ki,a as bi}from"./useActualMatchingMatchDetail-CuDY29_K.js";import{d as Ti}from"./decodeURIComponentSafe-sNmSv15A.js";import{m as Vt,a as ra,b as da,i as Ot}from"./expenseAutomationHelper-Bb1c_nBx.js";import{u as ua,a as ma,w as yi}from"./withTransactionSidePanel-BuJ7rAhb.js";import{b as Pi,S as vi,a as Ei,J as Ai}from"./ScheduleDetailsPrepaidExpensesScreen-OdknWRFf.js";import{s as Bn,i as pa,h as xi,v as Ri,c as wi}from"./routePaths-BALvGXpp.js";import{a as vt}from"./accountMappingHelper-1wM-u5pk.js";import{D as Di}from"./DrawerScreen-Bev9sxN6.js";import"./recharts-By7FVN8f.js";import"./analytics-DhotUQIQ.js";import"./plaid-B0PWXAfV.js";import"./dnd-CBDtHD8g.js";import"./stripe-cKAAJElX.js";import"./lottie-C4orech3.js";import"./lexical-Cft6chCX.js";import"./pdf-DFgrdLB6.js";import"./utils-iOnDyQuG.js";import"./useInitialThreadRequest-BaIZPAUw.js";import"./stripSplatSuffix-B5IwbFj2.js";import"./pathToGoBack-DZ8Lgq0-.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]="aa8b360a-3222-4a76-98cd-37c7675f9168",t._sentryDebugIdIdentifier="sentry-dbid-aa8b360a-3222-4a76-98cd-37c7675f9168")}catch{}})();const Fi=()=>{const t=Se(),a=_e(),S=fe(),I=O((u=>ye(u))),{useFeatureGate:d}=qe(),{isFeatureEnabled:i}=d(X.isRealtimeInsightsFeatureEnabled),{isFeatureEnabled:l}=d(X.aiAuditScorePercentage),x=O((u=>u.expenseAutomationViewState.selectedPeriodByTenantId)),r=O((u=>Jn(u,I.tenantId))),{isAiCfoAccessEnabled:v,onAskAiCfoClick:R}=Bt({mobileExploreReferrer:"Month-End Close Overview"}),C=o.useCallback(((u,y,p=!1)=>{t(De({tenantId:y,period:{month:u.month,year:u.year},refreshViewInBackground:p}))}),[]),h=o.useCallback((u=>{const y=S.state?.referrer;r.monthEndCloseChecks?.auditSummary!=null&&ee.trackMonthCloseAuditPage(u.month,u.year,r.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",r.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,y??null),t(xt(I.tenantId,u))}),[I.tenantId,r.monthEndCloseChecks?.auditSummary,r.monthEndCloseChecks?.reportEmailSentDate]),g=x[I.tenantId],D=o.useCallback((()=>{const u=S.state?.referrer;r.monthEndCloseChecks?.auditSummary!=null&&ee.trackMonthCloseAuditPage(g.month,g.year,r.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",r.monthEndCloseChecks.auditSummary.auditScorePercentage,!0,u??null),C(g,I.tenantId,!0)}),[C,g,I.tenantId,r.monthEndCloseChecks?.auditSummary,r.monthEndCloseChecks?.reportEmailSentDate]),B=Z(S.state?.pathnameStackToGoBack,S.pathname),V=o.useCallback((()=>{if(r.monthEndCloseChecks!=null&&g!=null){const u=r.monthEndCloseChecks.monthEndCloseCheckList.find((y=>y.progress<100));if(u!=null)return void a(`./${u.id}/${g.month}-${g.year}`,{state:{pathnameStackToGoBack:B,message:"comingFromOverview"}});a(`./month_end_insights/${g.month}-${g.year}`,{state:{pathnameStackToGoBack:B,message:"comingFromOverview"}})}}),[r.monthEndCloseChecks,g]),{areTenantIdsInSync:b}=sa();return ca({isDataReady:r.fetchState==="Completed"}),o.useEffect((()=>{g!=null&&r.fetchState!=="In-Progress"&&r.fetchState!=="Completed"&&b&&C(g,I.tenantId)}),[C,g,r.fetchState,I.tenantId,b]),o.useEffect((()=>{g!=null&&r.monthClosePerformanceTrendFetchStatus.fetchState!=="In-Progress"&&r.monthClosePerformanceTrendFetchStatus.fetchState!=="Completed"&&b&&t(uo(g))}),[g,r.monthClosePerformanceTrendFetchStatus.fetchState,b]),o.useEffect((()=>{const u=setInterval((()=>{r.fetchState!=="In-Progress"&&r.fetchState==="Completed"&&D()}),3e5);return()=>clearInterval(u)}),[r.fetchState]),o.useEffect((()=>{if(r.fetchState==="Completed"&&r.monthEndCloseChecks?.auditSummary!=null){const u=S.state?.referrer;ee.trackMonthCloseAuditPage(r.selectedPeriod.month,r.selectedPeriod.year,r.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",r.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,u??null)}}),[r.fetchState,r.selectedPeriod,r.monthEndCloseChecks?.auditSummary,r.monthEndCloseChecks?.reportEmailSentDate]),T.jsx(_i,{children:T.jsx(Lc,{monthEndCloseChecksView:r,isRealtimeInsightsFeatureEnabled:i,onMonthEndCheckClick:u=>{a(`./${u}/${g.month}-${g.year}`,{state:{pathnameStackToGoBack:B,message:"comingFromOverview",referrer:"Expense Automation - Overview"}})},onPeriodChange:h,handleReviewButtonClick:V,onBackClick:()=>{a("../../dashboard")},onReload:D,isAiCfoAccessEnabled:v,onAskAiCfoClick:R,aiAuditScorePercentageEnabled:l})})},_i=Me.div`
1
+ import{j as T}from"./liveblocks-BYqz0SWy.js";import{u as Se,h as _e,g as fe,j as O,i as Te,t as qn,l as io,n as lo,o as Ge,N as ro}from"./core-B1R51LGS.js";import{fI as ye,a1F as Jn,q4 as De,UN as xt,Aq as uo,a1G as mo,a1H as po,a1I as ho,a1J as yt,a1K as it,gk as Rt,a1L as In,eH as So,g3 as fo,a1M as Cn,a1N as lt,qX as go,uY as Io,gW as Co,gU as ko,a1O as bo,r8 as To,rh as yo,qf as Po,qt as Yn,gT as re,gV as vo,a1P as Eo,qP as Wn,ri as Ao,qq as xo,ql as Ro,v2 as wo,gS as Fe,a1Q as ut,CA as Hn,N3 as Kn,a1R as Xn,F_ as Qn,a1S as Do,e$ as Fo,f1 as _o,sZ as wt,Xx as kn,Xz as Mo,m6 as Oo,XA as Uo,md as Bo,dm as Vo,DT as Dt,a1T as jo,a1U as $o,a1V as zo,a1W as Lo,fp as Ft,sN as bn,Xq as Go,a1X as No,a1Y as qo,mf as Jo,a1Z as Yo,RO as Wo,me as Ho,m3 as Ko,qI as Zn,rn as mt,tA as ea,tW as Xo,UD as ta,rm as Tn,rp as na,rr as Qo,bF as Zo,nC as es,nz as ts,rq as rt,ro as be,a1_ as ns,rI as yn,a1$ as as,a20 as os,sR as ss,sS as cs,Xm as is,Ws as ls,a17 as rs,a21 as ds,Xs as Pn,Xr as ct,a22 as vn,mu as us,a23 as ms,a24 as ps,a25 as hs,a26 as Ss,qD as fs,a27 as gs,a28 as Is,a29 as Cs,ry as ks,mh as bs,m8 as Ts,a2a as ys,mg as En,XK as Ps,a2b as vs,a2c as Es,uz as As,ua as xs,u9 as Pt,a2d as Rs,a2e as ws,a2f as Ds,a2g as Fs,nN as _s,br as aa,nI as An,nu as Ms,a2h as Os,h3 as Us,nF as Bs,s$ as Vs,t1 as js,sK as $s,Wv as zs,Ww as Ls,Fs as Gs,Fr as Ns,FI as qs,a2i as xn,sQ as Js,sl as Ys,a2j as Ws,s1 as Hs,s6 as Ks,sh as Xs,s4 as Qs,a2k as Zs,rZ as ec,sg as tc,sW as nc,a2l as ac,t7 as oc,sE as sc,td as cc,sJ as ic,rJ as lc,a2m as rc,q$ as dc,qz as uc,qG as Rn,rt as mc,a2n as pc,a2o as hc,a2p as Sc,a2q as fc,a2r as gc,a2s as Ic,a2t as Cc,th as kc,a2u as bc,a2v as Tc,a2w as wn,uK as yc,u1 as Pc,tS as Dn,tQ as vc,a2x as Ec,tF as Ac,tk as xc,tT as Rc,a2y as wc,a2z as Dc,tq as Fc,a2A as _c,tl as Mc,tp as Oc,tn as Uc,tZ as Bc,a2B as Vc,q8 as Fn,a2C as jc,E3 as _n,cz as $c}from"./zeni-epic-state-M9sMLOaG.js";import Ut from"./NotFoundScreen-NsaSbBFa.js";import{a as o,R as oa}from"./sentry-DjmIorbX.js";import{n as Me,S as zc}from"./mui-D-_RYGgU.js";import{c as qe,$ as X,l as ee,p as Z,ao as sa,aq as ca,dM as Lc,dN as Gc,z as Je,dO as _t,dP as Nc,dQ as qc,ac as Ne,dR as Jc,dS as Mn,b8 as On,dT as Yc,a5 as ia,dU as Wc,j as dt,a as Hc,dV as Kc,dW as Xc,k as Qc,V as Zc,dX as ei,dY as ti,dZ as ni,b2 as ai,bq as oi,a9 as si,b3 as ci,b4 as ii,G as la,w as li,d_ as ri,at as Mt,d$ as di,a2 as ui,e0 as mi}from"./index-C49C-P8m.js";import{u as Bt}from"./useAskAiCfoHostNavButtonProps-BXTsy7YX.js";import{g as Un,b as pi,c as hi,h as Si,a as fi,i as gi,r as Ii,C as Ci}from"./TransactionDetailScreen-0OB8Pqf6.js";import{u as ki,a as bi}from"./useActualMatchingMatchDetail-BDFpjIdi.js";import{d as Ti}from"./decodeURIComponentSafe-sNmSv15A.js";import{m as Vt,a as ra,b as da,i as Ot}from"./expenseAutomationHelper-Bb1c_nBx.js";import{u as ua,a as ma,w as yi}from"./withTransactionSidePanel-ClaUsoxR.js";import{b as Pi,S as vi,a as Ei,J as Ai}from"./ScheduleDetailsPrepaidExpensesScreen-DQFyw5bj.js";import{s as Bn,i as pa,h as xi,v as Ri,c as wi}from"./routePaths-3jcOIrRa.js";import{a as vt}from"./accountMappingHelper-1wM-u5pk.js";import{D as Di}from"./DrawerScreen-B2FIpd3y.js";import"./recharts-By7FVN8f.js";import"./analytics-DhotUQIQ.js";import"./plaid-B0PWXAfV.js";import"./dnd-CBDtHD8g.js";import"./stripe-cKAAJElX.js";import"./lottie-C4orech3.js";import"./lexical-Cft6chCX.js";import"./pdf-DFgrdLB6.js";import"./utils-iOnDyQuG.js";import"./useInitialThreadRequest-BwFSf59X.js";import"./stripSplatSuffix-B5IwbFj2.js";import"./pathToGoBack-DZ8Lgq0-.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]="aa8b360a-3222-4a76-98cd-37c7675f9168",t._sentryDebugIdIdentifier="sentry-dbid-aa8b360a-3222-4a76-98cd-37c7675f9168")}catch{}})();const Fi=()=>{const t=Se(),a=_e(),S=fe(),I=O((u=>ye(u))),{useFeatureGate:d}=qe(),{isFeatureEnabled:i}=d(X.isRealtimeInsightsFeatureEnabled),{isFeatureEnabled:l}=d(X.aiAuditScorePercentage),x=O((u=>u.expenseAutomationViewState.selectedPeriodByTenantId)),r=O((u=>Jn(u,I.tenantId))),{isAiCfoAccessEnabled:v,onAskAiCfoClick:R}=Bt({mobileExploreReferrer:"Month-End Close Overview"}),C=o.useCallback(((u,y,p=!1)=>{t(De({tenantId:y,period:{month:u.month,year:u.year},refreshViewInBackground:p}))}),[]),h=o.useCallback((u=>{const y=S.state?.referrer;r.monthEndCloseChecks?.auditSummary!=null&&ee.trackMonthCloseAuditPage(u.month,u.year,r.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",r.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,y??null),t(xt(I.tenantId,u))}),[I.tenantId,r.monthEndCloseChecks?.auditSummary,r.monthEndCloseChecks?.reportEmailSentDate]),g=x[I.tenantId],D=o.useCallback((()=>{const u=S.state?.referrer;r.monthEndCloseChecks?.auditSummary!=null&&ee.trackMonthCloseAuditPage(g.month,g.year,r.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",r.monthEndCloseChecks.auditSummary.auditScorePercentage,!0,u??null),C(g,I.tenantId,!0)}),[C,g,I.tenantId,r.monthEndCloseChecks?.auditSummary,r.monthEndCloseChecks?.reportEmailSentDate]),B=Z(S.state?.pathnameStackToGoBack,S.pathname),V=o.useCallback((()=>{if(r.monthEndCloseChecks!=null&&g!=null){const u=r.monthEndCloseChecks.monthEndCloseCheckList.find((y=>y.progress<100));if(u!=null)return void a(`./${u.id}/${g.month}-${g.year}`,{state:{pathnameStackToGoBack:B,message:"comingFromOverview"}});a(`./month_end_insights/${g.month}-${g.year}`,{state:{pathnameStackToGoBack:B,message:"comingFromOverview"}})}}),[r.monthEndCloseChecks,g]),{areTenantIdsInSync:b}=sa();return ca({isDataReady:r.fetchState==="Completed"}),o.useEffect((()=>{g!=null&&r.fetchState!=="In-Progress"&&r.fetchState!=="Completed"&&b&&C(g,I.tenantId)}),[C,g,r.fetchState,I.tenantId,b]),o.useEffect((()=>{g!=null&&r.monthClosePerformanceTrendFetchStatus.fetchState!=="In-Progress"&&r.monthClosePerformanceTrendFetchStatus.fetchState!=="Completed"&&b&&t(uo(g))}),[g,r.monthClosePerformanceTrendFetchStatus.fetchState,b]),o.useEffect((()=>{const u=setInterval((()=>{r.fetchState!=="In-Progress"&&r.fetchState==="Completed"&&D()}),3e5);return()=>clearInterval(u)}),[r.fetchState]),o.useEffect((()=>{if(r.fetchState==="Completed"&&r.monthEndCloseChecks?.auditSummary!=null){const u=S.state?.referrer;ee.trackMonthCloseAuditPage(r.selectedPeriod.month,r.selectedPeriod.year,r.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",r.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,u??null)}}),[r.fetchState,r.selectedPeriod,r.monthEndCloseChecks?.auditSummary,r.monthEndCloseChecks?.reportEmailSentDate]),T.jsx(_i,{children:T.jsx(Lc,{monthEndCloseChecksView:r,isRealtimeInsightsFeatureEnabled:i,onMonthEndCheckClick:u=>{a(`./${u}/${g.month}-${g.year}`,{state:{pathnameStackToGoBack:B,message:"comingFromOverview",referrer:"Expense Automation - Overview"}})},onPeriodChange:h,handleReviewButtonClick:V,onBackClick:()=>{a("../../dashboard")},onReload:D,isAiCfoAccessEnabled:v,onAskAiCfoClick:R,aiAuditScorePercentageEnabled:l})})},_i=Me.div`
2
2
  display: flex;
3
3
  height: 100vh;
4
4
  width: 100%;
@@ -1 +1 @@
1
- import{j as s}from"./liveblocks-BYqz0SWy.js";import{a as r}from"./sentry-DjmIorbX.js";import{au as f,av as i,Z as l,a2 as p}from"./index-Dp_Uc3gy.js";import"./mui-D-_RYGgU.js";import m from"./NotFoundScreen-DDA41Ig7.js";import{h as b,g as u}from"./core-B1R51LGS.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]="c5cccb90-93ef-49b9-9d2f-d25df6a7e6b3",e._sentryDebugIdIdentifier="sentry-dbid-c5cccb90-93ef-49b9-9d2f-d25df6a7e6b3")}catch{}})();const _=()=>{const e=b(),a=u(),t=r.useCallback((()=>{window.open("https://www.zeni.ai/demo/request","_blank")}),[]),d=r.useCallback((()=>{(()=>{const n=p(a.state?.pathnameStackToGoBack),c=n.poppedPathname??k();e(c,{state:{pathnameStackToGoBack:n.newStack}})})()}),[]),o=f(a.pathname);return o!=null?s.jsx(i,{menuItem:l(o),onDemoClick:t,onGoBack:d}):s.jsx(m,{})},k=(e=2)=>{let a="../";for(let t=0;t<e;t++)a=`${a}../`;return a};export{_ as F};
1
+ import{j as s}from"./liveblocks-BYqz0SWy.js";import{a as r}from"./sentry-DjmIorbX.js";import{au as f,av as i,Z as l,a2 as p}from"./index-C49C-P8m.js";import"./mui-D-_RYGgU.js";import m from"./NotFoundScreen-NsaSbBFa.js";import{h as b,g as u}from"./core-B1R51LGS.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]="c5cccb90-93ef-49b9-9d2f-d25df6a7e6b3",e._sentryDebugIdIdentifier="sentry-dbid-c5cccb90-93ef-49b9-9d2f-d25df6a7e6b3")}catch{}})();const _=()=>{const e=b(),a=u(),t=r.useCallback((()=>{window.open("https://www.zeni.ai/demo/request","_blank")}),[]),d=r.useCallback((()=>{(()=>{const n=p(a.state?.pathnameStackToGoBack),c=n.poppedPathname??k();e(c,{state:{pathnameStackToGoBack:n.newStack}})})()}),[]),o=f(a.pathname);return o!=null?s.jsx(i,{menuItem:l(o),onDemoClick:t,onGoBack:d}):s.jsx(m,{})},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 i}from"./sentry-DjmIorbX.js";import{u as l,h as f,g as m}from"./core-B1R51LGS.js";import{i0 as p,V8 as g,V9 as _}from"./zeni-epic-state-M9sMLOaG.js";import{u as b,L as h,z as y}from"./index-Dp_Uc3gy.js";import"./liveblocks-BYqz0SWy.js";import"./recharts-By7FVN8f.js";import"./mui-D-_RYGgU.js";import"./analytics-DhotUQIQ.js";import"./plaid-B0PWXAfV.js";import"./dnd-CBDtHD8g.js";import"./stripe-cKAAJElX.js";import"./lottie-C4orech3.js";import"./lexical-Cft6chCX.js";import"./pdf-DFgrdLB6.js";import"./utils-iOnDyQuG.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]="a48ab914-268c-45f4-8c38-e3b31f5837ea",e._sentryDebugIdIdentifier="sentry-dbid-a48ab914-268c-45f4-8c38-e3b31f5837ea")}catch{}})();function V(){const e=l(),n=f(),r=m(),{setLoading:o,clearAllLoading:d}=b(),a=i.useRef(!1);return i.useLayoutEffect((()=>{o(h.CONNECTION_AUTH)}),[o]),i.useEffect((()=>{if(a.current)return;a.current=!0;const s=new URLSearchParams(r.search).get("code"),c=sessionStorage.getItem("hubspot_oauth_pending");if(sessionStorage.removeItem("hubspot_oauth_pending"),s!=null&&c!=null){const t=JSON.parse(c);e(p(t.tenant_id,t.connection_id,g("revenue"),_("hubspot"),{authorization_code:s,client_id:t.client_id,client_secret:t.client_secret,redirect_uri:t.redirect_uri}))}d();const u=y.getActiveTenantForUser();n(u?.tenantEmailDomain!=null?`/${u.tenantEmailDomain}/settings/integrations`:"/",{replace:!0})}),[]),null}export{V as default};
1
+ import{a as i}from"./sentry-DjmIorbX.js";import{u as l,h as f,g as m}from"./core-B1R51LGS.js";import{i0 as p,V8 as g,V9 as _}from"./zeni-epic-state-M9sMLOaG.js";import{u as b,L as h,z as y}from"./index-C49C-P8m.js";import"./liveblocks-BYqz0SWy.js";import"./recharts-By7FVN8f.js";import"./mui-D-_RYGgU.js";import"./analytics-DhotUQIQ.js";import"./plaid-B0PWXAfV.js";import"./dnd-CBDtHD8g.js";import"./stripe-cKAAJElX.js";import"./lottie-C4orech3.js";import"./lexical-Cft6chCX.js";import"./pdf-DFgrdLB6.js";import"./utils-iOnDyQuG.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]="a48ab914-268c-45f4-8c38-e3b31f5837ea",e._sentryDebugIdIdentifier="sentry-dbid-a48ab914-268c-45f4-8c38-e3b31f5837ea")}catch{}})();function V(){const e=l(),n=f(),r=m(),{setLoading:o,clearAllLoading:d}=b(),a=i.useRef(!1);return i.useLayoutEffect((()=>{o(h.CONNECTION_AUTH)}),[o]),i.useEffect((()=>{if(a.current)return;a.current=!0;const s=new URLSearchParams(r.search).get("code"),c=sessionStorage.getItem("hubspot_oauth_pending");if(sessionStorage.removeItem("hubspot_oauth_pending"),s!=null&&c!=null){const t=JSON.parse(c);e(p(t.tenant_id,t.connection_id,g("revenue"),_("hubspot"),{authorization_code:s,client_id:t.client_id,client_secret:t.client_secret,redirect_uri:t.redirect_uri}))}d();const u=y.getActiveTenantForUser();n(u?.tenantEmailDomain!=null?`/${u.tenantEmailDomain}/settings/integrations`:"/",{replace:!0})}),[]),null}export{V as default};