@zeniai/web-app-ui 5.3.98-dev → 5.3.98-next

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/dist/assets/{AccountMappingScreen-DkipdeBd.js → AccountMappingScreen-CjwMTizR.js} +1 -1
  2. package/dist/assets/{ActualMatchingMatchDetailScreen-Yq3IhSD1.js → ActualMatchingMatchDetailScreen-DQwBRd4R.js} +1 -1
  3. package/dist/assets/AddressRoutes-C5RIL4h-.js +1 -0
  4. package/dist/assets/{AddressScreen-SveIGGcZ.js → AddressScreen-BGCKqkHK.js} +1 -1
  5. package/dist/assets/{AiCfoScreen-C0a5Kz2R.js → AiCfoScreen-8zjpasMS.js} +1 -1
  6. package/dist/assets/{AppDrawer-iCXzB-Zx.js → AppDrawer-VZ3D45W1.js} +1 -1
  7. package/dist/assets/{BillPayApprovalRoutes-CO68g4sl.js → BillPayApprovalRoutes-B2wVYJFS.js} +1 -1
  8. package/dist/assets/{BillPayRoutes-9Bp55PZY.js → BillPayRoutes-BbzLR_G1.js} +1 -1
  9. package/dist/assets/{BusinessVerificationPageScreen-BEKu1sS6.js → BusinessVerificationPageScreen-yvyDfEy7.js} +1 -1
  10. package/dist/assets/{CardsAiCfoScreen-Do3B6xOK.js → CardsAiCfoScreen-DuQxROsh.js} +1 -1
  11. package/dist/assets/{ChargeCardRoutes-TfS6URYe.js → ChargeCardRoutes-Bh6ZPYkM.js} +1 -1
  12. package/dist/assets/{CompanyPassportScreen-CzgRbofg.js → CompanyPassportScreen-IMafBc80.js} +1 -1
  13. package/dist/assets/{ConnectionAuthScreen-BwEBh9bB.js → ConnectionAuthScreen-Cqx5WJbd.js} +1 -1
  14. package/dist/assets/CustomerOnboardingAuthScreen-B93ORImz.js +1 -0
  15. package/dist/assets/{CustomerOnboardingRoutes-B6z9gODa.js → CustomerOnboardingRoutes-Ha3YLIRB.js} +1 -1
  16. package/dist/assets/{DashboardRoutes-DvqewcQi.js → DashboardRoutes-CHCw15Nk.js} +1 -1
  17. package/dist/assets/{DefaultTenantHome-DHj0LZf2.js → DefaultTenantHome-6_JM08X2.js} +1 -1
  18. package/dist/assets/{DomesticWireDetailScreen-NsnrfBbI.js → DomesticWireDetailScreen-BpElUKh7.js} +1 -1
  19. package/dist/assets/{DrawerScreen-C-sU_EBz.js → DrawerScreen-xtPJeB-a.js} +1 -1
  20. package/dist/assets/{EntityDetailRoutes-Cd9AUwPz.js → EntityDetailRoutes-Cda5obPr.js} +1 -1
  21. package/dist/assets/{ExpenseAutomationRoutes-B-LCmWX6.js → ExpenseAutomationRoutes-CiEDziET.js} +1 -1
  22. package/dist/assets/{FeaturePreviewScreen-DHsaAADF.js → FeaturePreviewScreen-BtpIa581.js} +1 -1
  23. package/dist/assets/{HubSpotOAuthCallbackScreen-CqtvTlMw.js → HubSpotOAuthCallbackScreen-BN-zrei1.js} +1 -1
  24. package/dist/assets/{InboxNotificationsProvider-BbgapV9e.js → InboxNotificationsProvider-BjKLTror.js} +1 -1
  25. package/dist/assets/{InvoicingRoutes-CteMwomX.js → InvoicingRoutes-DL496VZR.js} +1 -1
  26. package/dist/assets/{MagicLinkRoutes-CjOGoDmF.js → MagicLinkRoutes-BO1YLqoI.js} +1 -1
  27. package/dist/assets/{MagicLinkSignInScreen-Csaci2Yg.js → MagicLinkSignInScreen-6jm8FnRO.js} +1 -1
  28. package/dist/assets/{MobileAppDrawer-Dzg3ZYKF.js → MobileAppDrawer-DPhWrhFy.js} +1 -1
  29. package/dist/assets/NotFoundScreen-C99sWTxq.js +1 -0
  30. package/dist/assets/{NotificationRoutes-zC1-rHQB.js → NotificationRoutes-i9T0OtqO.js} +1 -1
  31. package/dist/assets/{OAuthConsentScreen-BGX1agKv.js → OAuthConsentScreen-rgnd6xUe.js} +1 -1
  32. package/dist/assets/{PandLWithForecastRoutes-CITu_u8l.js → PandLWithForecastRoutes-CE6aRGjI.js} +1 -1
  33. package/dist/assets/{PaymentLinkScreen-_UAo_fsM.js → PaymentLinkScreen-BWkVgC59.js} +1 -1
  34. package/dist/assets/{PeopleRoutes-B9Skn948.js → PeopleRoutes-D43m1imR.js} +1 -1
  35. package/dist/assets/{PerformanceRoutes-Bw19vP5H.js → PerformanceRoutes-DktcyP_O.js} +1 -1
  36. package/dist/assets/{Preview-CuBMxPUC.js → Preview-W1POFtcL.js} +1 -1
  37. package/dist/assets/{QBOConnectionScreen-DHNNL8-f.js → QBOConnectionScreen-CTkcXZmV.js} +1 -1
  38. package/dist/assets/{ReimbursementApprovalRoutes-BgKx8N_6.js → ReimbursementApprovalRoutes-R1aAcUG5.js} +1 -1
  39. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-C-jZxtX5.js → ReimbursementApprovalRuleDetailScreen-CbDyFzBu.js} +1 -1
  40. package/dist/assets/{ReimbursementRoutes-1GgOF6-S.js → ReimbursementRoutes-C9UajJGw.js} +1 -1
  41. package/dist/assets/{ReportsRoutes-DDrHQIpT.js → ReportsRoutes-CcFna5cM.js} +1 -1
  42. package/dist/assets/{RewardsRoutes-BDo_jXck.js → RewardsRoutes-s91dfE8b.js} +1 -1
  43. package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-Co9SdTEQ.js → ScheduleDetailsPrepaidExpensesScreen-CkHXOnk-.js} +1 -1
  44. package/dist/assets/{ScreenRoutes-5TQ3QdBJ.js → ScreenRoutes-Dx2VrR2s.js} +2 -2
  45. package/dist/assets/{SettingsRoutes--Mb2rkVX.js → SettingsRoutes-Ddv19tBp.js} +1 -1
  46. package/dist/assets/{SetupPagesScreen-E1ySiMh3.js → SetupPagesScreen-e5Oxnz06.js} +1 -1
  47. package/dist/assets/{SignInScreen-cOdJloLh.js → SignInScreen-DxQVE77B.js} +1 -1
  48. package/dist/assets/{SignOutScreen-D3furmi9.js → SignOutScreen-CDtiezRL.js} +1 -1
  49. package/dist/assets/{TaskListScreen-DgOpvPPF.js → TaskListScreen-2j49YQKH.js} +1 -1
  50. package/dist/assets/{TaskRoutes-BPBfVKWi.js → TaskRoutes-BZiCyLqC.js} +1 -1
  51. package/dist/assets/TransactionDetailRoutes-B3odGtgq.js +1 -0
  52. package/dist/assets/{TransactionDetailScreen-CEmYD0Tg.js → TransactionDetailScreen-CaY7ynvv.js} +1 -1
  53. package/dist/assets/{TransactionListRoutes-BzcrVUiM.js → TransactionListRoutes-CjLvWBss.js} +1 -1
  54. package/dist/assets/{TreasuryRoutes-Dpl0kdhr.js → TreasuryRoutes-v3lepZBi.js} +1 -1
  55. package/dist/assets/{VendorsRoutes-Bc6Bj7xz.js → VendorsRoutes-CYpNWK6-.js} +1 -1
  56. package/dist/assets/{WiseConfirmationScreen-iFg0baoI.js → WiseConfirmationScreen-DHv2TWQw.js} +1 -1
  57. package/dist/assets/{ZeniAccountRoutes-BJVsLkSB.js → ZeniAccountRoutes-GneJ98tX.js} +1 -1
  58. package/dist/assets/{ZeniAccountStatementScreen-zPoNSIDN.js → ZeniAccountStatementScreen-Cep7EkG0.js} +1 -1
  59. package/dist/assets/{accountMappingHelper-DTvekvpS.js → accountMappingHelper-BkCKv6WZ.js} +1 -1
  60. package/dist/assets/{analytics-DgsLc9VO.js → analytics-D0tcyppW.js} +1 -1
  61. package/dist/assets/{analyticsHelper-sTbcNkFd.js → analyticsHelper-DNE91i4c.js} +1 -1
  62. package/dist/assets/{core-wa4jvXau.js → core-DQ3TOyhg.js} +1 -1
  63. package/dist/assets/{decodeURIComponentSafe-CIevgEwa.js → decodeURIComponentSafe-Cu66oljm.js} +1 -1
  64. package/dist/assets/{dnd-Cbngon1O.js → dnd-Bntwxh9x.js} +1 -1
  65. package/dist/assets/{empty-BLA-Ut17.js → empty-CMqNUJNn.js} +1 -1
  66. package/dist/assets/{empty-DGZZ0Isy.js → empty-DWkp4Tph.js} +1 -1
  67. package/dist/assets/{emptyVideoElement-IpJePceg.js → emptyVideoElement-iEFahTpu.js} +1 -1
  68. package/dist/assets/{epic-DgP8mAwL.js → epic-B81bGUkM.js} +1 -1
  69. package/dist/assets/{expenseAutomationHelper-B9h6s4MU.js → expenseAutomationHelper-D9c7IZ5P.js} +1 -1
  70. package/dist/assets/{getLocaleForTenant-B2kDgrkF.js → getLocaleForTenant-DJnj6rvH.js} +1 -1
  71. package/dist/assets/{index-h9Yx7xG4.js → index-BCQTxPJ0.js} +1 -1
  72. package/dist/assets/{index-S7x3Q8ir.js → index-BR4s9TBr.js} +1 -1
  73. package/dist/assets/{index-DSayiUiZ.js → index-BYAAN7az.js} +1 -1
  74. package/dist/assets/{index-D4oD0Zwi.js → index-CCOlCbSl.js} +1 -1
  75. package/dist/assets/{index-8CGije3n.js → index-DnYYsKv0.js} +2 -2
  76. package/dist/assets/{index-BGcr7M3t.js → index-Y1eQryGF.js} +8 -8
  77. package/dist/assets/{index-4Nv-4tI_.js → index-kGT21t4w.js} +1 -1
  78. package/dist/assets/{index-Dsfoke68.js → index-rRqJl0Kp.js} +1 -1
  79. package/dist/assets/{lexical-BhCVvQ5e.js → lexical-TNs-sItT.js} +1 -1
  80. package/dist/assets/{liveblocks-S_bQ6bIM.js → liveblocks-fFw9RMRO.js} +1 -1
  81. package/dist/assets/{lottie-CMd-N9jH.js → lottie-okFpqC3A.js} +1 -1
  82. package/dist/assets/{mui-Ci0HQ48M.js → mui-CCvm0tMy.js} +1 -1
  83. package/dist/assets/{pathToGoBack-BQ4U7b_1.js → pathToGoBack-Ctw9JQNd.js} +1 -1
  84. package/dist/assets/{pdf-OHT1WZQx.js → pdf-YnkObZXp.js} +3 -3
  85. package/dist/assets/{pdf-lib-B91RK-F0.js → pdf-lib-BopJ0Kwv.js} +1 -1
  86. package/dist/assets/{plaid-BWdXQkCk.js → plaid-BGO-6B5S.js} +1 -1
  87. package/dist/assets/{pusher-8A5uNu4P.js → pusher-BWfCts6O.js} +1 -1
  88. package/dist/assets/{react-BxAOQlUv.js → react-B-MipMEm.js} +1 -1
  89. package/dist/assets/{react-B_sF0JCy.js → react-BTaQYKwd.js} +1 -1
  90. package/dist/assets/{react-DkS5-yyq.js → react-CN0zfg13.js} +1 -1
  91. package/dist/assets/{react--GqNzBLX.js → react-CQVCPj6M.js} +1 -1
  92. package/dist/assets/{react-CbVqKv24.js → react-D9epe2fM.js} +1 -1
  93. package/dist/assets/{react-CG53JZQx.js → react-DI4AMeUc.js} +1 -1
  94. package/dist/assets/{recharts-Dwi7DT-C.js → recharts-DstD6eEp.js} +1 -1
  95. package/dist/assets/{routePaths-CEJABH0C.js → routePaths-C86LdXFF.js} +1 -1
  96. package/dist/assets/{sentry-BU5jEr8h.js → sentry-BQ15LH5j.js} +1 -1
  97. package/dist/assets/{stripSplatSuffix-1d8c6YLM.js → stripSplatSuffix-D7usD4S3.js} +1 -1
  98. package/dist/assets/{url-BPQU9fEv.js → url--hRW8nM8.js} +1 -1
  99. package/dist/assets/{url-zU7Z4CO_.js → url-pSGTbNp_.js} +1 -1
  100. package/dist/assets/{useActualMatchingMatchDetail-BF3bwUO7.js → useActualMatchingMatchDetail-Baa_SLNz.js} +1 -1
  101. package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-Dut4uoVw.js → useAiCfoDashboardSuggestedQuestionsChips-CmVeeSzL.js} +1 -1
  102. package/dist/assets/{useAskAiCfoHostNavButtonProps-CZ-JbWqQ.js → useAskAiCfoHostNavButtonProps-C52KPzAg.js} +1 -1
  103. package/dist/assets/{useChargeCardPusherEvents-BloaCcy0.js → useChargeCardPusherEvents-CXlfut_C.js} +1 -1
  104. package/dist/assets/{useDeviceId-D7PzfQ-u.js → useDeviceId-BX78O0X_.js} +1 -1
  105. package/dist/assets/{useEmailConnectResultRefresh-BO75ukY9.js → useEmailConnectResultRefresh-Bz6_4WO5.js} +1 -1
  106. package/dist/assets/{useInitialThreadRequest-ZafvGlm9.js → useInitialThreadRequest-9pdCy-Hh.js} +1 -1
  107. package/dist/assets/{useTaskManagerAccess-DpldujcE.js → useTaskManagerAccess-DPuOgP3u.js} +1 -1
  108. package/dist/assets/{useTaskManagerPusherEvents-CowYG4es.js → useTaskManagerPusherEvents-BHOjRrh2.js} +1 -1
  109. package/dist/assets/{utils-Zs4lusR-.js → utils-DK4acSbY.js} +1 -1
  110. package/dist/assets/{withTransactionSidePanel-BPZ1XJCd.js → withTransactionSidePanel-CAx04bq7.js} +1 -1
  111. package/dist/assets/{zeni-epic-state-lWD60tIp.js → zeni-epic-state-Dbldxf_m.js} +3 -3
  112. package/dist/index.html +1 -1
  113. package/package.json +1 -1
  114. package/dist/assets/AddressRoutes-C6aHDBRx.js +0 -1
  115. package/dist/assets/CustomerOnboardingAuthScreen-DxbrkI4o.js +0 -1
  116. package/dist/assets/NotFoundScreen-CSyRIHbc.js +0 -1
  117. package/dist/assets/TransactionDetailRoutes-BdBwnPUo.js +0 -1
@@ -1 +1 @@
1
- import{j as m}from"./liveblocks-S_bQ6bIM.js";import{a as g}from"./sentry-BU5jEr8h.js";import{h as w,u as x,g as T,i as k,j as O,l as E}from"./core-wa4jvXau.js";import{z as D,bq as F,a6 as P,h as V,M as L,n as C,br as j,ac as A,aE as M,p as U}from"./index-BGcr7M3t.js";import{fI as h,gL as B,B$ as R,gG as _,c9 as G,YR as Y,bn as z,v2 as $,uS as q,mD as H,oc as S,YS as Z,bF as J,cF as N,on as K,ox as Q}from"./zeni-epic-state-lWD60tIp.js";import"./mui-Ci0HQ48M.js";import{d as W}from"./routePaths-CEJABH0C.js";import{M as X}from"./MobileAppDrawer-Dzg3ZYKF.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]="58e0cfe8-01e6-43e1-a6d7-a695c716c411",t._sentryDebugIdIdentifier="sentry-dbid-58e0cfe8-01e6-43e1-a6d7-a695c716c411")}catch{}})();const ee=E((function(t){const a=_(t),i=D.getSignedInUser(),p=h(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(Q())},onAddressClick:e=>{const n=W(f,e),o=U(l.state?.pathnameStackToGoBack,l.pathname);c(n,{state:{pathnameStackToGoBack:o}})},onResetClick:()=>{t(K({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:b}=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:M(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?J(s?.toString()):s,fileId:o.fileIds[0]},taxDetails:{taxIdOrEIN:r.taxIdOrEIN,sicCode:r.sicCode,naicsCode:r.naicsCode,dunsNumber:r.dunsNumber,taxesFiledYears:b.selectedOptions.map((I=>parseInt(I))),fileId:r.fileIds[0]}};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(Z(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=>h(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(B(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-fFw9RMRO.js";import{a as g}from"./sentry-BQ15LH5j.js";import{h as w,u as x,g as T,i as k,j as O,l as E}from"./core-DQ3TOyhg.js";import{z as D,bq as F,a6 as P,h as V,M as L,n as C,br as j,ac as A,aE as M,p as U}from"./index-Y1eQryGF.js";import{fI as h,gL as B,B$ as R,gG as _,c9 as G,YR as Y,bn as z,v2 as $,uS as q,mD as H,oc as S,YS as Z,bF as J,cF as N,on as K,ox as Q}from"./zeni-epic-state-Dbldxf_m.js";import"./mui-CCvm0tMy.js";import{d as W}from"./routePaths-C86LdXFF.js";import{M as X}from"./MobileAppDrawer-DPhWrhFy.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]="58e0cfe8-01e6-43e1-a6d7-a695c716c411",t._sentryDebugIdIdentifier="sentry-dbid-58e0cfe8-01e6-43e1-a6d7-a695c716c411")}catch{}})();const ee=E((function(t){const a=_(t),i=D.getSignedInUser(),p=h(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(Q())},onAddressClick:e=>{const n=W(f,e),o=U(l.state?.pathnameStackToGoBack,l.pathname);c(n,{state:{pathnameStackToGoBack:o}})},onResetClick:()=>{t(K({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:b}=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:M(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?J(s?.toString()):s,fileId:o.fileIds[0]},taxDetails:{taxIdOrEIN:r.taxIdOrEIN,sicCode:r.sicCode,naicsCode:r.naicsCode,dunsNumber:r.dunsNumber,taxesFiledYears:b.selectedOptions.map((I=>parseInt(I))),fileId:r.fileIds[0]}};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(Z(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=>h(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(B(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-S_bQ6bIM.js";import{a as o}from"./sentry-BU5jEr8h.js";import{u as F,h as R,g as H,j as C,N as w}from"./core-wa4jvXau.js";import{Uv as q,fI as z,go as G,pW as V,gP as U,gn as Q,gl as W,UV as B,gk as A}from"./zeni-epic-state-lWD60tIp.js";import{u as J,z as E,L as D,G as K,E as M}from"./index-BGcr7M3t.js";import{n as X}from"./mui-Ci0HQ48M.js";import{P as h,a as T}from"./AccountMappingScreen-DkipdeBd.js";import{t as Y}from"./getLocaleForTenant-B2kDgrkF.js";import{g as Z,Q as ee}from"./QBOConnectionScreen-DHNNL8-f.js";import"./recharts-Dwi7DT-C.js";import"./analytics-DgsLc9VO.js";import"./plaid-BWdXQkCk.js";import"./dnd-Cbngon1O.js";import"./stripe-cKAAJElX.js";import"./lottie-CMd-N9jH.js";import"./lexical-BhCVvQ5e.js";import"./pdf-OHT1WZQx.js";import"./utils-Zs4lusR-.js";import"./MobileAppDrawer-Dzg3ZYKF.js";import"./InboxNotificationsProvider-BbgapV9e.js";import"./useTaskManagerAccess-DpldujcE.js";import"./accountMappingHelper-DTvekvpS.js";import"./empty-DGZZ0Isy.js";import"./pdf-lib-B91RK-F0.js";import"./index-4Nv-4tI_.js";import"./url-zU7Z4CO_.js";import"./index-DSayiUiZ.js";import"./decodeURIComponentSafe-CIevgEwa.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]="c75f42cd-fe85-4a3b-8f39-d9319a91e339",t._sentryDebugIdIdentifier="sentry-dbid-c75f42cd-fe85-4a3b-8f39-d9319a91e339")}catch{}})();const te=X.div`
1
+ import{j as I}from"./liveblocks-fFw9RMRO.js";import{a as o}from"./sentry-BQ15LH5j.js";import{u as F,h as R,g as H,j as C,N as w}from"./core-DQ3TOyhg.js";import{Uv as q,fI as z,go as G,pW as V,gP as U,gn as Q,gl as W,UV as B,gk as A}from"./zeni-epic-state-Dbldxf_m.js";import{u as J,z as E,L as D,G as K,E as M}from"./index-Y1eQryGF.js";import{n as X}from"./mui-CCvm0tMy.js";import{P as h,a as T}from"./AccountMappingScreen-CjwMTizR.js";import{t as Y}from"./getLocaleForTenant-DJnj6rvH.js";import{g as Z,Q as ee}from"./QBOConnectionScreen-CTkcXZmV.js";import"./recharts-DstD6eEp.js";import"./analytics-D0tcyppW.js";import"./plaid-BGO-6B5S.js";import"./dnd-Bntwxh9x.js";import"./stripe-cKAAJElX.js";import"./lottie-okFpqC3A.js";import"./lexical-TNs-sItT.js";import"./pdf-YnkObZXp.js";import"./utils-DK4acSbY.js";import"./MobileAppDrawer-DPhWrhFy.js";import"./InboxNotificationsProvider-BjKLTror.js";import"./useTaskManagerAccess-DPuOgP3u.js";import"./accountMappingHelper-BkCKv6WZ.js";import"./empty-DWkp4Tph.js";import"./pdf-lib-BopJ0Kwv.js";import"./index-kGT21t4w.js";import"./url-pSGTbNp_.js";import"./index-BYAAN7az.js";import"./decodeURIComponentSafe-Cu66oljm.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]="c75f42cd-fe85-4a3b-8f39-d9319a91e339",t._sentryDebugIdIdentifier="sentry-dbid-c75f42cd-fe85-4a3b-8f39-d9319a91e339")}catch{}})();const te=X.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  flex-direction: row;
@@ -0,0 +1 @@
1
+ import{j as i}from"./liveblocks-fFw9RMRO.js";import{z as m}from"./index-Y1eQryGF.js";import{g as n}from"./QBOConnectionScreen-CTkcXZmV.js";import"./sentry-BQ15LH5j.js";import{g as p,N as a}from"./core-DQ3TOyhg.js";import"./zeni-epic-state-Dbldxf_m.js";import"./recharts-DstD6eEp.js";import"./mui-CCvm0tMy.js";import"./analytics-D0tcyppW.js";import"./plaid-BGO-6B5S.js";import"./dnd-Bntwxh9x.js";import"./stripe-cKAAJElX.js";import"./lottie-okFpqC3A.js";import"./lexical-TNs-sItT.js";import"./pdf-YnkObZXp.js";import"./utils-DK4acSbY.js";import"./empty-DWkp4Tph.js";import"./pdf-lib-BopJ0Kwv.js";import"./index-kGT21t4w.js";import"./url-pSGTbNp_.js";import"./index-BYAAN7az.js";import"./decodeURIComponentSafe-Cu66oljm.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-S_bQ6bIM.js";import{t as wn,A as Ge}from"./AddressScreen-SveIGGcZ.js";import An from"./NotFoundScreen-CSyRIHbc.js";import{a as d,u as Me}from"./sentry-BU5jEr8h.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-wa4jvXau.js";import{fI as Y,e0 as Te,d$ as we,bq as jn,UM as Bn,bS as Fn,pU as Un,BL as Vn,BO as Rn,W7 as Ln,W8 as Nn,ly as Oe,lB as dn,Vn as $n,c0 as Gn,c9 as fe,Cd as Ae,B_ as Mn,W9 as me,Ce as un,SW as Qn,mL as ln,dj as pn,Wa as Wn,Wb as Kn,uL as zn,Va as Ce,hZ as qn,V9 as be,hW as Hn,GK as Zn,uP as Jn,hO as Xn,hR as Qe,Wc as mn,Wd as Yn,MA as et,We as nt,ME as tt,BR as at,Wf as ot,Wg as st,lw as rt,lz as it,Cq as ct,C0 as gn,Cc as dt,bF as We,cF as ut,Cp as Ke,v2 as lt,uS as pt,mD as mt,gJ as gt,gI as ft,gH as yt,Wh as ht,BU as Ct,Cr as bt,Cu as St,Cx as It,CD as kt,dk as Ot}from"./zeni-epic-state-lWD60tIp.js";import{z as K,q as Pe,$ as J,o as vt,p as z,a6 as re,h as g,aC as _t,ag as fn,_ as xt,k as yn,V as hn,g as X,T as ge,M 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-BGcr7M3t.js";import{n as De}from"./mui-Ci0HQ48M.js";import{g as Pt,h as Dt,q as ie}from"./QBOConnectionScreen-DHNNL8-f.js";import{u as jt,a as Bt}from"./useEmailConnectResultRefresh-BO75ukY9.js";import{u as Ft}from"./useChargeCardPusherEvents-BloaCcy0.js";import"./recharts-Dwi7DT-C.js";import"./analytics-DgsLc9VO.js";import"./plaid-BWdXQkCk.js";import"./dnd-Cbngon1O.js";import"./stripe-cKAAJElX.js";import"./lottie-CMd-N9jH.js";import"./lexical-BhCVvQ5e.js";import"./pdf-OHT1WZQx.js";import"./utils-Zs4lusR-.js";import"./empty-DGZZ0Isy.js";import"./pdf-lib-B91RK-F0.js";import"./index-4Nv-4tI_.js";import"./url-zU7Z4CO_.js";import"./index-DSayiUiZ.js";import"./decodeURIComponentSafe-CIevgEwa.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]="5ce26655-71c1-4df7-be60-68cc363efdc0",e._sentryDebugIdIdentifier="sentry-dbid-5ce26655-71c1-4df7-be60-68cc363efdc0")}catch{}})();const Ze=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=K.getSignedInUser(),{useFeatureGate:t}=Pe(),{isFeatureEnabled:C}=t(J.isApAgingFeatureEnabled),{isFeatureEnabled:a}=t(J.isArAgingFeatureEnabled),{isFeatureEnabled:A}=t(J.isReferralFeatureEnabled),{isFeatureEnabled:w}=t(J.isDebitCardFeatureEnabled),k=vt(),O=T((S=>Y(S))),P=T((S=>S.onboardingCustomerViewState.fetchState)),_=O.excludedResources,F=O.companyId??K.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 L=O.company?.companyOnboardingInfo?.onboardingInfo,ee={timeSinceQuoteSign:L?.onboardingTimeSinceQuoteSigned??"",timeSinceQuoteSignInMinutes:L?.onboardingToQuoteSignMinutes??0,isKybDone:Ze(L?.businessVerified?.status),isKycDone:Ze(L?.identityVerified?.status),paymentType:"",paymentSource:"",qboConnectionSource:L?.accountingConnectionCreationMode??""};return s.jsxs(s.Fragment,{children:[s.jsx(re,{analytics:g,onLoad:S=>S.trackOnboardingDashboardActivation(ee)}),s.jsx(_t,{show:!0,onComplete:$})]})},Se=["reading_books","finance_graph","reconciliation","cfo_foundation"],Ie=["llm_fine_tuning","rag_knowledge_graph","personalized_context"],Je=(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-fFw9RMRO.js";import{t as wn,A as Ge}from"./AddressScreen-BGCKqkHK.js";import An from"./NotFoundScreen-C99sWTxq.js";import{a as d,u as Me}from"./sentry-BQ15LH5j.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-DQ3TOyhg.js";import{fI as Y,e0 as Te,d$ as we,bq as jn,UM as Bn,bS as Fn,pU as Un,BL as Vn,BO as Rn,W7 as Ln,W8 as Nn,ly as Oe,lB as dn,Vn as $n,c0 as Gn,c9 as fe,Cd as Ae,B_ as Mn,W9 as me,Ce as un,SW as Qn,mL as ln,dj as pn,Wa as Wn,Wb as Kn,uL as zn,Va as Ce,hZ as qn,V9 as be,hW as Hn,GK as Zn,uP as Jn,hO as Xn,hR as Qe,Wc as mn,Wd as Yn,MA as et,We as nt,ME as tt,BR as at,Wf as ot,Wg as st,lw as rt,lz as it,Cq as ct,C0 as gn,Cc as dt,bF as We,cF as ut,Cp as Ke,v2 as lt,uS as pt,mD as mt,gJ as gt,gI as ft,gH as yt,Wh as ht,BU as Ct,Cr as bt,Cu as St,Cx as It,CD as kt,dk as Ot}from"./zeni-epic-state-Dbldxf_m.js";import{z as K,q as Pe,$ as J,o as vt,p as z,a6 as re,h as g,aC as _t,ag as fn,_ as xt,k as yn,V as hn,g as X,T as ge,M 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-Y1eQryGF.js";import{n as De}from"./mui-CCvm0tMy.js";import{g as Pt,h as Dt,q as ie}from"./QBOConnectionScreen-CTkcXZmV.js";import{u as jt,a as Bt}from"./useEmailConnectResultRefresh-Bz6_4WO5.js";import{u as Ft}from"./useChargeCardPusherEvents-CXlfut_C.js";import"./recharts-DstD6eEp.js";import"./analytics-D0tcyppW.js";import"./plaid-BGO-6B5S.js";import"./dnd-Bntwxh9x.js";import"./stripe-cKAAJElX.js";import"./lottie-okFpqC3A.js";import"./lexical-TNs-sItT.js";import"./pdf-YnkObZXp.js";import"./utils-DK4acSbY.js";import"./empty-DWkp4Tph.js";import"./pdf-lib-BopJ0Kwv.js";import"./index-kGT21t4w.js";import"./url-pSGTbNp_.js";import"./index-BYAAN7az.js";import"./decodeURIComponentSafe-Cu66oljm.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]="5ce26655-71c1-4df7-be60-68cc363efdc0",e._sentryDebugIdIdentifier="sentry-dbid-5ce26655-71c1-4df7-be60-68cc363efdc0")}catch{}})();const Ze=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=K.getSignedInUser(),{useFeatureGate:t}=Pe(),{isFeatureEnabled:C}=t(J.isApAgingFeatureEnabled),{isFeatureEnabled:a}=t(J.isArAgingFeatureEnabled),{isFeatureEnabled:A}=t(J.isReferralFeatureEnabled),{isFeatureEnabled:w}=t(J.isDebitCardFeatureEnabled),k=vt(),O=T((S=>Y(S))),P=T((S=>S.onboardingCustomerViewState.fetchState)),_=O.excludedResources,F=O.companyId??K.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 L=O.company?.companyOnboardingInfo?.onboardingInfo,ee={timeSinceQuoteSign:L?.onboardingTimeSinceQuoteSigned??"",timeSinceQuoteSignInMinutes:L?.onboardingToQuoteSignMinutes??0,isKybDone:Ze(L?.businessVerified?.status),isKycDone:Ze(L?.identityVerified?.status),paymentType:"",paymentSource:"",qboConnectionSource:L?.accountingConnectionCreationMode??""};return s.jsxs(s.Fragment,{children:[s.jsx(re,{analytics:g,onLoad:S=>S.trackOnboardingDashboardActivation(ee)}),s.jsx(_t,{show:!0,onComplete:$})]})},Se=["reading_books","finance_graph","reconciliation","cfo_foundation"],Ie=["llm_fine_tuning","rag_knowledge_graph","personalized_context"],Je=(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-S_bQ6bIM.js";import{i as q,j as S,g as H,u as z,h as W,l as ne,k as ot,n as ha,o as P,N as vn}from"./core-wa4jvXau.js";import{fI as Y,Wt as We,bF as st,br as Ee,XR as En,ke as xn,XS as Va,XT as wn,kh as fa,XU as Qe,XV as Tn,km as Dn,XW as Ga,XX as Pn,kq as ga,XY as Ze,XZ as On,X_ as Fn,WN as jn,ls as Rn,X$ as Mn,bn as Je,Y0 as rt,Xr as le,bc as it,lG as ct,lp as lt,Xt as de,Xs as te,fH as dt,gd as Yn,gt as ba,Y1 as Bn,Y2 as Un,Y3 as ut,Y4 as Oe,Er as Ye,Es as Be,ER as xe,EL as ue,Ew as Ue,Y5 as Ln,c0 as Le,Y6 as Vn,Y7 as Gn,Y8 as mt,Y9 as Fe,Ya as Nn,ek as ea,Ax as pt,Yb as $n,Yc as ht,Yd as zn,Ye as Kn,Yf as qn,Yg as _a,Vp as Sa,uh as we,m3 as Te,E$ as ka,AE as Xn,AL as Qn,Yh as Zn,Yi as Hn,Et as Na,Yj as Wn,AA as Ie,Av as ft,Yk as ge,Yl as $a,Ym as Jn,Yn as ya,Vo as Aa,CI as gt,Yo as eo,Yp as bt,Yq as ao,Yr as to,Ys as no,Yt as Ia,CX as oo,D2 as so,Yu as ro,Yv as io,Ev as za,Yw as co,CG as Ct,Yx as be,Yy as Ka,Yz as lo,bq as _t,F4 as St,YA as uo,YB as kt,YC as mo,YD as po,YE as ho,YF as va,EY as fo,E_ as go,YG as bo,YH as Co,Eu as qa,YI as _o,F2 as yt,YJ as Ce,YK as Xa,YL as So,YM as ko,YN as At,lU as It,p$ as vt,lZ as Et,pZ as xt,pY as wt,pX as Tt,C3 as yo,dd as Ao,pU as Io,UM as vo,q9 as Eo,YO as xo,YP as wo,YQ as To,b5 as Ea,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-lWD60tIp.js";import{z as B,at as oe,p as O,h as w,G as X,b9 as Uo,aq as Ve,a6 as Ge,ba as Dt,M as N,bb as Lo,bc as Pt,bd as Vo,be as Go,a as Ot,_ as Ft,d as jt,ap as No,bf as $o,am as zo,q as xa,bg as Rt,x as re,bh as Mt,bi as Yt,as as Bt,bj as Ko,ag as Ne,V as $e,bk as qo,H as Xo,bl as Qo,$ as G,o as Zo,g as Ho,a2 as Wo,ao as Jo,bm as es,bn as as,bo as ts,bp as ve}from"./index-BGcr7M3t.js";import{u as ns,n as wa}from"./mui-Ci0HQ48M.js";import{a as b}from"./sentry-BU5jEr8h.js";import{w as Ut}from"./withTransactionSidePanel-BPZ1XJCd.js";import{c as Lt,t as De,f as me,b as Ta,a as Da,v as os}from"./routePaths-CEJABH0C.js";import{u as se}from"./useAskAiCfoHostNavButtonProps-CZ-JbWqQ.js";import Me from"./NotFoundScreen-CSyRIHbc.js";import{u as Pa}from"./useInitialThreadRequest-ZafvGlm9.js";import{t as Vt}from"./analyticsHelper-sTbcNkFd.js";import{C as ss}from"./CompanyPassportScreen-CzgRbofg.js";import{u as rs}from"./useAiCfoDashboardSuggestedQuestionsChips-Dut4uoVw.js";import{F as is}from"./FeaturePreviewScreen-DHsaAADF.js";import"./recharts-Dwi7DT-C.js";import"./analytics-DgsLc9VO.js";import"./plaid-BWdXQkCk.js";import"./dnd-Cbngon1O.js";import"./stripe-cKAAJElX.js";import"./lottie-CMd-N9jH.js";import"./lexical-BhCVvQ5e.js";import"./pdf-OHT1WZQx.js";import"./utils-Zs4lusR-.js";import"./TransactionDetailScreen-CEmYD0Tg.js";import"./decodeURIComponentSafe-CIevgEwa.js";import"./expenseAutomationHelper-B9h6s4MU.js";import"./stripSplatSuffix-1d8c6YLM.js";import"./MobileAppDrawer-Dzg3ZYKF.js";import"./InboxNotificationsProvider-BbgapV9e.js";import"./useTaskManagerAccess-DpldujcE.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]="6893dafa-c3bc-42b3-b6a3-32ee9b8a85f9",e._sentryDebugIdIdentifier="sentry-dbid-6893dafa-c3bc-42b3-b6a3-32ee9b8a85f9")}catch{}})();const cs=Ut((function({openTransactionPanel:e,panelContent:t,sidePanelIsOpen:a,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?st(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(Va({sortKey:_,sortOrder:A}))}),[]),x=b.useCallback((_=>{C(Va({downloadState:_}))}),[]),R=b.useCallback((_=>{if(e)e(_.transactionId,_.transactionType);else if(m!=null){const A=Lt({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:t,sidePanelIsOpen:a,sidePanelIsFullView:n})})),ls=()=>{const e=z(),t=W(),a=S((k=>wn(k))),{isAiCfoAccessEnabled:n,onAskAiCfoClick:o}=se({mobileExploreReferrer:"AP Aging"});Ve({isDataReady:a.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=a.apAgingUIState.selectedDate??Ee(),f=b.useCallback((()=>{a.fetchState!=="In-Progress"&&a.fetchState!=="Completed"&&e(fa(h))}),[]);b.useEffect((()=>{f()}),[]);const c=b.useCallback((()=>{t("../",{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=>{t(`./${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(fa(k))}),[]);return d.jsxs(d.Fragment,{children:[a.fetchState==="Completed"?d.jsx(Ge,{analytics:w,onLoad:k=>k.trackPageLoaded(N.Event.agingReport,"AP Aging")}):null,d.jsx(Dt,{uiState:a.apAgingUIState,report:a,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=Ut((function({openTransactionPanel:e,panelContent:t,sidePanelIsOpen:a,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?st(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(Ga({sortKey:T,sortOrder:_}))}),[]),k=b.useCallback((T=>{u(Ga({downloadState:T}))}),[]),x=b.useCallback((T=>{if(e)e(T.transactionId,T.transactionType);else if(l!=null){const _=Lt({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:t,sidePanelIsOpen:a,sidePanelIsFullView:n})})),us=()=>{const e=z(),t=W(),a=S((I=>Pn(I))),{isAiCfoAccessEnabled:n,onAskAiCfoClick:o}=se({mobileExploreReferrer:"AR Aging"});Ve({isDataReady:a.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=a.arAgingUIState.selectedDate??Ee(),h=b.useCallback((()=>{a.fetchState!=="In-Progress"&&a.fetchState!=="Completed"&&e(ga(p))}),[]);b.useEffect((()=>{h()}),[]);const f=b.useCallback((()=>{t("../",{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=>{t(`./${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(ga(I))}),[]),E=b.useCallback(((I,k)=>{e(On({nodeId:I,isCollapsed:k}))}),[]);return d.jsxs(d.Fragment,{children:[a.fetchState==="Completed"?d.jsx(Ge,{analytics:w,onLoad:I=>I.trackPageLoaded(N.Event.agingReport,"AR Aging")}):null,d.jsx(Dt,{uiState:a.arAgingUIState,report:a,downloadParams:m,analytics:w,onReloadReport:h,onBackClick:f,onSearchTextChange:c,onSortOrderChange:u,onEntityNameClick:C,updateDownloadStateHandler:g,onSelectedDateChanged:y,onNodeCollapseToggled:E,isAiCfoAccessEnabled:n,onAskAiCfoClick:o})]})},Gt=(e,t)=>({key:t,title:e.accountName,amount:e.balance?.available,logoUri:e.logo?.toString(),source:e});function Nt(e,t){const a=jn(t.firstMonthOfFY);return{onItemClick:(n,o)=>{const r=o.accountName===""?o.accountDescription:o.accountName,s=De(t.tenantEmailDomain,o.accountId,o.accountType,r,"quarter",a,!1),i=O(t.location.state?.pathnameStackToGoBack,t.location.pathname);t.navigate(s,{state:{pathnameStackToGoBack:i,referrer:t.referrerType}})},onSetAccountsStatementDate:(n,o)=>{e(Rn(n,o))}}}const ms=ne((function(e){const t=Fn(e).accountsInOrder.map(((a,n)=>Gt(a,n)));return{sectionTitle:X.getLocalizedStrings().balanceCard.cashBalanceSectionTitle,transactionArray:t,fetchState:e.cashBalanceState.fetchState,analytics:w}}),Nt)(Pt),ps=ne((function(e){const t=Mn(e).accountsInOrder.map(((o,r)=>Gt(o,r))),a=B.getSignedInUser(),n=Je(a);return{sectionTitle:X.getLocalizedStrings().balanceCard.cardBalanceSectionTitle,transactionArray:t,isZeniUser:n,fetchState:e.cardBalanceState.fetchState,analytics:w}}),Nt)(Pt);function hs(){const e=W(),t=H(),{tenantEmailDomain:a}=q(),n=S((o=>Y(o).company?.companyInfo.firstMonthOfFY??1));return S((o=>o.cashBalanceState.fetchState))==="Error"?d.jsx(Me,{}):d.jsx(ms,{tenantEmailDomain:a,location:t,referrerType:"Cash Balance",navigate:e,firstMonthOfFY:n})}function fs(){const e=W(),t=H(),{tenantEmailDomain:a}=q(),n=S((o=>Y(o).company?.companyInfo.firstMonthOfFY??1));return S((o=>o.cardBalanceState.fetchState))==="Error"?d.jsx(Me,{}):d.jsx(ps,{tenantEmailDomain:a,location:t,referrerType:"Card Balance",navigate:e,firstMonthOfFY:n})}const gs=wa.div`
1
+ import{j as d}from"./liveblocks-fFw9RMRO.js";import{i as q,j as S,g as H,u as z,h as W,l as ne,k as ot,n as ha,o as P,N as vn}from"./core-DQ3TOyhg.js";import{fI as Y,Wt as We,bF as st,br as Ee,XR as En,ke as xn,XS as Va,XT as wn,kh as fa,XU as Qe,XV as Tn,km as Dn,XW as Ga,XX as Pn,kq as ga,XY as Ze,XZ as On,X_ as Fn,WN as jn,ls as Rn,X$ as Mn,bn as Je,Y0 as rt,Xr as le,bc as it,lG as ct,lp as lt,Xt as de,Xs as te,fH as dt,gd as Yn,gt as ba,Y1 as Bn,Y2 as Un,Y3 as ut,Y4 as Oe,Er as Ye,Es as Be,ER as xe,EL as ue,Ew as Ue,Y5 as Ln,c0 as Le,Y6 as Vn,Y7 as Gn,Y8 as mt,Y9 as Fe,Ya as Nn,ek as ea,Ax as pt,Yb as $n,Yc as ht,Yd as zn,Ye as Kn,Yf as qn,Yg as _a,Vp as Sa,uh as we,m3 as Te,E$ as ka,AE as Xn,AL as Qn,Yh as Zn,Yi as Hn,Et as Na,Yj as Wn,AA as Ie,Av as ft,Yk as ge,Yl as $a,Ym as Jn,Yn as ya,Vo as Aa,CI as gt,Yo as eo,Yp as bt,Yq as ao,Yr as to,Ys as no,Yt as Ia,CX as oo,D2 as so,Yu as ro,Yv as io,Ev as za,Yw as co,CG as Ct,Yx as be,Yy as Ka,Yz as lo,bq as _t,F4 as St,YA as uo,YB as kt,YC as mo,YD as po,YE as ho,YF as va,EY as fo,E_ as go,YG as bo,YH as Co,Eu as qa,YI as _o,F2 as yt,YJ as Ce,YK as Xa,YL as So,YM as ko,YN as At,lU as It,p$ as vt,lZ as Et,pZ as xt,pY as wt,pX as Tt,C3 as yo,dd as Ao,pU as Io,UM as vo,q9 as Eo,YO as xo,YP as wo,YQ as To,b5 as Ea,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-Dbldxf_m.js";import{z as B,at as oe,p as O,h as w,G as X,b9 as Uo,aq as Ve,a6 as Ge,ba as Dt,M as N,bb as Lo,bc as Pt,bd as Vo,be as Go,a as Ot,_ as Ft,d as jt,ap as No,bf as $o,am as zo,q as xa,bg as Rt,x as re,bh as Mt,bi as Yt,as as Bt,bj as Ko,ag as Ne,V as $e,bk as qo,H as Xo,bl as Qo,$ as G,o as Zo,g as Ho,a2 as Wo,ao as Jo,bm as es,bn as as,bo as ts,bp as ve}from"./index-Y1eQryGF.js";import{u as ns,n as wa}from"./mui-CCvm0tMy.js";import{a as b}from"./sentry-BQ15LH5j.js";import{w as Ut}from"./withTransactionSidePanel-CAx04bq7.js";import{c as Lt,t as De,f as me,b as Ta,a as Da,v as os}from"./routePaths-C86LdXFF.js";import{u as se}from"./useAskAiCfoHostNavButtonProps-C52KPzAg.js";import Me from"./NotFoundScreen-C99sWTxq.js";import{u as Pa}from"./useInitialThreadRequest-9pdCy-Hh.js";import{t as Vt}from"./analyticsHelper-DNE91i4c.js";import{C as ss}from"./CompanyPassportScreen-IMafBc80.js";import{u as rs}from"./useAiCfoDashboardSuggestedQuestionsChips-CmVeeSzL.js";import{F as is}from"./FeaturePreviewScreen-BtpIa581.js";import"./recharts-DstD6eEp.js";import"./analytics-D0tcyppW.js";import"./plaid-BGO-6B5S.js";import"./dnd-Bntwxh9x.js";import"./stripe-cKAAJElX.js";import"./lottie-okFpqC3A.js";import"./lexical-TNs-sItT.js";import"./pdf-YnkObZXp.js";import"./utils-DK4acSbY.js";import"./TransactionDetailScreen-CaY7ynvv.js";import"./decodeURIComponentSafe-Cu66oljm.js";import"./expenseAutomationHelper-D9c7IZ5P.js";import"./stripSplatSuffix-D7usD4S3.js";import"./MobileAppDrawer-DPhWrhFy.js";import"./InboxNotificationsProvider-BjKLTror.js";import"./useTaskManagerAccess-DPuOgP3u.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]="6893dafa-c3bc-42b3-b6a3-32ee9b8a85f9",e._sentryDebugIdIdentifier="sentry-dbid-6893dafa-c3bc-42b3-b6a3-32ee9b8a85f9")}catch{}})();const cs=Ut((function({openTransactionPanel:e,panelContent:t,sidePanelIsOpen:a,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?st(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(Va({sortKey:_,sortOrder:A}))}),[]),x=b.useCallback((_=>{C(Va({downloadState:_}))}),[]),R=b.useCallback((_=>{if(e)e(_.transactionId,_.transactionType);else if(m!=null){const A=Lt({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:t,sidePanelIsOpen:a,sidePanelIsFullView:n})})),ls=()=>{const e=z(),t=W(),a=S((k=>wn(k))),{isAiCfoAccessEnabled:n,onAskAiCfoClick:o}=se({mobileExploreReferrer:"AP Aging"});Ve({isDataReady:a.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=a.apAgingUIState.selectedDate??Ee(),f=b.useCallback((()=>{a.fetchState!=="In-Progress"&&a.fetchState!=="Completed"&&e(fa(h))}),[]);b.useEffect((()=>{f()}),[]);const c=b.useCallback((()=>{t("../",{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=>{t(`./${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(fa(k))}),[]);return d.jsxs(d.Fragment,{children:[a.fetchState==="Completed"?d.jsx(Ge,{analytics:w,onLoad:k=>k.trackPageLoaded(N.Event.agingReport,"AP Aging")}):null,d.jsx(Dt,{uiState:a.apAgingUIState,report:a,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=Ut((function({openTransactionPanel:e,panelContent:t,sidePanelIsOpen:a,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?st(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(Ga({sortKey:T,sortOrder:_}))}),[]),k=b.useCallback((T=>{u(Ga({downloadState:T}))}),[]),x=b.useCallback((T=>{if(e)e(T.transactionId,T.transactionType);else if(l!=null){const _=Lt({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:t,sidePanelIsOpen:a,sidePanelIsFullView:n})})),us=()=>{const e=z(),t=W(),a=S((I=>Pn(I))),{isAiCfoAccessEnabled:n,onAskAiCfoClick:o}=se({mobileExploreReferrer:"AR Aging"});Ve({isDataReady:a.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=a.arAgingUIState.selectedDate??Ee(),h=b.useCallback((()=>{a.fetchState!=="In-Progress"&&a.fetchState!=="Completed"&&e(ga(p))}),[]);b.useEffect((()=>{h()}),[]);const f=b.useCallback((()=>{t("../",{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=>{t(`./${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(ga(I))}),[]),E=b.useCallback(((I,k)=>{e(On({nodeId:I,isCollapsed:k}))}),[]);return d.jsxs(d.Fragment,{children:[a.fetchState==="Completed"?d.jsx(Ge,{analytics:w,onLoad:I=>I.trackPageLoaded(N.Event.agingReport,"AR Aging")}):null,d.jsx(Dt,{uiState:a.arAgingUIState,report:a,downloadParams:m,analytics:w,onReloadReport:h,onBackClick:f,onSearchTextChange:c,onSortOrderChange:u,onEntityNameClick:C,updateDownloadStateHandler:g,onSelectedDateChanged:y,onNodeCollapseToggled:E,isAiCfoAccessEnabled:n,onAskAiCfoClick:o})]})},Gt=(e,t)=>({key:t,title:e.accountName,amount:e.balance?.available,logoUri:e.logo?.toString(),source:e});function Nt(e,t){const a=jn(t.firstMonthOfFY);return{onItemClick:(n,o)=>{const r=o.accountName===""?o.accountDescription:o.accountName,s=De(t.tenantEmailDomain,o.accountId,o.accountType,r,"quarter",a,!1),i=O(t.location.state?.pathnameStackToGoBack,t.location.pathname);t.navigate(s,{state:{pathnameStackToGoBack:i,referrer:t.referrerType}})},onSetAccountsStatementDate:(n,o)=>{e(Rn(n,o))}}}const ms=ne((function(e){const t=Fn(e).accountsInOrder.map(((a,n)=>Gt(a,n)));return{sectionTitle:X.getLocalizedStrings().balanceCard.cashBalanceSectionTitle,transactionArray:t,fetchState:e.cashBalanceState.fetchState,analytics:w}}),Nt)(Pt),ps=ne((function(e){const t=Mn(e).accountsInOrder.map(((o,r)=>Gt(o,r))),a=B.getSignedInUser(),n=Je(a);return{sectionTitle:X.getLocalizedStrings().balanceCard.cardBalanceSectionTitle,transactionArray:t,isZeniUser:n,fetchState:e.cardBalanceState.fetchState,analytics:w}}),Nt)(Pt);function hs(){const e=W(),t=H(),{tenantEmailDomain:a}=q(),n=S((o=>Y(o).company?.companyInfo.firstMonthOfFY??1));return S((o=>o.cashBalanceState.fetchState))==="Error"?d.jsx(Me,{}):d.jsx(ms,{tenantEmailDomain:a,location:t,referrerType:"Cash Balance",navigate:e,firstMonthOfFY:n})}function fs(){const e=W(),t=H(),{tenantEmailDomain:a}=q(),n=S((o=>Y(o).company?.companyInfo.firstMonthOfFY??1));return S((o=>o.cardBalanceState.fetchState))==="Error"?d.jsx(Me,{}):d.jsx(ps,{tenantEmailDomain:a,location:t,referrerType:"Card Balance",navigate:e,firstMonthOfFY:n})}const gs=wa.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-S_bQ6bIM.js";import{a as u}from"./sentry-BU5jEr8h.js";import{u as w,j as b,l as y,g as U,N as A}from"./core-wa4jvXau.js";import{Uv as N,fI as _,go as k,Uw as L,pW as R,Ux as z}from"./zeni-epic-state-lWD60tIp.js";import{u as j,z as f,L as T,t as I,G as O,b as $}from"./index-BGcr7M3t.js";import"./mui-Ci0HQ48M.js";import{t as P}from"./getLocaleForTenant-B2kDgrkF.js";import"./recharts-Dwi7DT-C.js";import"./analytics-DgsLc9VO.js";import"./plaid-BWdXQkCk.js";import"./dnd-Cbngon1O.js";import"./stripe-cKAAJElX.js";import"./lottie-CMd-N9jH.js";import"./lexical-BhCVvQ5e.js";import"./pdf-OHT1WZQx.js";import"./utils-Zs4lusR-.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]="85f8d8a9-d1f1-4858-b510-9872f359c780",t._sentryDebugIdIdentifier="sentry-dbid-85f8d8a9-d1f1-4858-b510-9872f359c780")}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-fFw9RMRO.js";import{a as u}from"./sentry-BQ15LH5j.js";import{u as w,j as b,l as y,g as U,N as A}from"./core-DQ3TOyhg.js";import{Uv as N,fI as _,go as k,Uw as L,pW as R,Ux as z}from"./zeni-epic-state-Dbldxf_m.js";import{u as j,z as f,L as T,t as I,G as O,b as $}from"./index-Y1eQryGF.js";import"./mui-CCvm0tMy.js";import{t as P}from"./getLocaleForTenant-DJnj6rvH.js";import"./recharts-DstD6eEp.js";import"./analytics-D0tcyppW.js";import"./plaid-BGO-6B5S.js";import"./dnd-Bntwxh9x.js";import"./stripe-cKAAJElX.js";import"./lottie-okFpqC3A.js";import"./lexical-TNs-sItT.js";import"./pdf-YnkObZXp.js";import"./utils-DK4acSbY.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]="85f8d8a9-d1f1-4858-b510-9872f359c780",t._sentryDebugIdIdentifier="sentry-dbid-85f8d8a9-d1f1-4858-b510-9872f359c780")}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-S_bQ6bIM.js";import{h as w,g as C,j as h,l as E,i as V}from"./core-wa4jvXau.js";import{Zu as k,ZB as q,gJ as J,gI as L,gH as M,kT as W,Xs as X,uV as K,fI as B,Z1 as D,kR as T,Zv as v,ZE as F,kP as G,la as j}from"./zeni-epic-state-lWD60tIp.js";import{bL as Q,_ as R,q as N,z as Z,a2 as p,$ as S,a5 as U,bM as Y,E as _,bN as ee,p as te}from"./index-BGcr7M3t.js";import{u as H,n as O}from"./mui-Ci0HQ48M.js";import"./sentry-BU5jEr8h.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]="b0c26210-882d-41d7-935f-3f28e88260c5",e._sentryDebugIdIdentifier="sentry-dbid-b0c26210-882d-41d7-935f-3f28e88260c5")}catch{}})();const ne=E(null,(function(e,t){return{onSaveVendor:n=>{e(W(t.vendorId!==void 0?t.vendorId:void 0,t.billId,void 0,t.isExpressPayPage)),e(X("common")),n!=null&&e(K(n))},onGetOtp:n=>{e(M(n,"BillPayVendor"))},onResendOtp:n=>{e(L(n,"BillPayVendor"))},onVerifyOtp:(n,a)=>{e(J(n,a,"BillPayVendor"))},onVerifyOtpSuccess:(n,a,o)=>{e(q(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-fFw9RMRO.js";import{h as w,g as C,j as h,l as E,i as V}from"./core-DQ3TOyhg.js";import{Zu as k,ZB as q,gJ as J,gI as L,gH as M,kT as W,Xs as X,uV as K,fI as B,Z1 as D,kR as T,Zv as v,ZE as F,kP as G,la as j}from"./zeni-epic-state-Dbldxf_m.js";import{bL as Q,_ as R,q as N,z as Z,a2 as p,$ as S,a5 as U,bM as Y,E as _,bN as ee,p as te}from"./index-Y1eQryGF.js";import{u as H,n as O}from"./mui-CCvm0tMy.js";import"./sentry-BQ15LH5j.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]="b0c26210-882d-41d7-935f-3f28e88260c5",e._sentryDebugIdIdentifier="sentry-dbid-b0c26210-882d-41d7-935f-3f28e88260c5")}catch{}})();const ne=E(null,(function(e,t){return{onSaveVendor:n=>{e(W(t.vendorId!==void 0?t.vendorId:void 0,t.billId,void 0,t.isExpressPayPage)),e(X("common")),n!=null&&e(K(n))},onGetOtp:n=>{e(M(n,"BillPayVendor"))},onResendOtp:n=>{e(L(n,"BillPayVendor"))},onVerifyOtp:(n,a)=>{e(J(n,a,"BillPayVendor"))},onVerifyOtpSuccess:(n,a,o)=>{e(q(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-S_bQ6bIM.js";import{_ as l,a9 as c}from"./index-BGcr7M3t.js";import{u as f,D as p}from"./mui-Ci0HQ48M.js";import"./sentry-BU5jEr8h.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-fFw9RMRO.js";import{_ as l,a9 as c}from"./index-Y1eQryGF.js";import{u as f,D as p}from"./mui-CCvm0tMy.js";import"./sentry-BQ15LH5j.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-S_bQ6bIM.js";import{a as d}from"./sentry-BU5jEr8h.js";import{h as G,u as A,g as X,i as q,j as c,N as O,l as W,n as F,o as N}from"./core-wa4jvXau.js";import{Xx as _,fI as M,WO as R,n3 as Y,SO as b,XC as $,Xr as z,m3 as U,SP as S,WT as V,WU as H,Xt as J,Xs as K}from"./zeni-epic-state-lWD60tIp.js";import{b6 as L,h as Q,a2 as Z,p as tt}from"./index-BGcr7M3t.js";import"./mui-Ci0HQ48M.js";import{d as I}from"./decodeURIComponentSafe-CIevgEwa.js";import{w as et}from"./withTransactionSidePanel-BPZ1XJCd.js";import{f as nt,c as at}from"./routePaths-CEJABH0C.js";import"./recharts-Dwi7DT-C.js";import"./analytics-DgsLc9VO.js";import"./plaid-BWdXQkCk.js";import"./dnd-Cbngon1O.js";import"./stripe-cKAAJElX.js";import"./lottie-CMd-N9jH.js";import"./lexical-BhCVvQ5e.js";import"./pdf-OHT1WZQx.js";import"./utils-Zs4lusR-.js";import"./useAskAiCfoHostNavButtonProps-CZ-JbWqQ.js";import"./TransactionDetailScreen-CEmYD0Tg.js";import"./useInitialThreadRequest-ZafvGlm9.js";import"./expenseAutomationHelper-B9h6s4MU.js";import"./stripSplatSuffix-1d8c6YLM.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new n.Error().stack;t&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[t]="09f95c78-8ecf-4842-b5eb-e469ddc08cfd",n._sentryDebugIdIdentifier="sentry-dbid-09f95c78-8ecf-4842-b5eb-e469ddc08cfd")}catch{}})();const ot=W((function(n,t){const e=t.entity,o=$(n,t.entity,"EntityDetail");return{selectedEntity:e,autoCompleteData:{autoCompleteText:e.name,entityAutoCompleteView:z(n,"common")},trendWithTransactionsReport:o,analytics:Q,isAccountingClassesEnabled:U(n)}}),(function(n,t){return{onTransactionItemClick:e=>{if(t.openTransactionPanel)return void t.openTransactionPanel(e.id,e.type);const o=`${at(e,t.tenantEmailDomain)}`,l=tt(t.location.state?.pathnameStackToGoBack,t.location.pathname);t.navigate(o,{state:{pathnameStackToGoBack:l}})},autoCompleteActions:{onAutoCompleteInputChange:e=>{e.trim().length>=2?n(J({searchString:e,searchOrigin:"common"})):e.trim().length===0&&n(K("common"))},onAutoCompleteEntity:e=>{const o=nt(e,t.tenantEmailDomain);n(V()),n(H()),t.resetTrendIsFetchedStates(),t.navigate(o,{replace:!0,state:{pathnameStackToGoBack:t.location.state?.pathnameStackToGoBack}})},onCancelAutoComplete:()=>{const e=Z(t.location.state?.pathnameStackToGoBack),o=e.poppedPathname??k();t.navigate(o,{state:{pathnameStackToGoBack:e.newStack}})}},onTrendSelectedPeriodChange:e=>{if(t.closeSidePanel?.(),e==null)t.defaultTransactionTimePeriod!=null&&n(S(t.entity,"EntityDetail",{timeframe:"quarter",timePeriod:t.defaultTransactionTimePeriod}));else{const o=e.currentTimePeriod==null?e.addTimePeriod:{startDate:e.addTimePeriod.startDate,endDate:e.currentTimePeriod.endDate};n(b(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:e.addTimePeriod})),n(S(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:o}))}}}}))(L),it=et((function({entityType:n,...t}){const e=G(),o=A(),l=X(),[m,h]=d.useState(!1),[T,D]=d.useState(!1),{tenantEmailDomain:C,entityIdEncoded:x,entityNameEncoded:j}=q(),r=I(x??""),p=I(j??""),f=rt(r,p),v=[r,p].filter((a=>a!=null)),i={name:p,id:r,type:n,zeniId:r,qboId:r},g=c((a=>_(a.customerIncomeState,a.vendorExpenseState,a.trendState,i,"quarter"))),w=c((a=>M(a).company?.companyInfo.firstMonthOfFY??1)),u=c((a=>R(a.trendWithTransactionsState,i,"EntityDetail")));d.useEffect((()=>{m===!1&&f===!0&&(h(!0),o(Y(i)))}),[m,f,i]);const P=c((a=>a.trendState.fetchState)),E=u?.selectedPeriod?.timePeriod??g,B=(function(a,y){return a!=null&&y!=null?{startDate:a.startDate,endDate:y?.endDate}:y})(u?.selectedPeriod?.timePeriod,g);return d.useEffect((()=>{m===!0&&T===!1&&P==="Completed"&&(D(!0),E!=null&&o(b(i,"EntityDetail",{timeframe:u?.selectedPeriod?.timeframe??"quarter",timePeriod:E})))}),[m,T,P]),f?s.jsx(ot,{firstMonthOfFY:w,tenantEmailDomain:C,location:l,navigate:e,entity:i,defaultTransactionTimePeriod:B,resetTrendIsFetchedStates:()=>{h(!1),D(!1)},...t}):s.jsx(O,{to:k(v.length)})})),rt=(n,t)=>t!=null&&t.length>0&&n!=null&&n.length>0,k=(n=2)=>{let t="../";for(let e=0;e<n;e++)t=`${t}../`;return t};function wt({entityType:n}){return s.jsx(F,{children:s.jsx(N,{path:"/:entityIdEncoded/:entityNameEncoded/*",element:s.jsx(it,{entityType:n})})})}export{wt as EntityDetailRoutes,wt as default};
1
+ import{j as s}from"./liveblocks-fFw9RMRO.js";import{a as d}from"./sentry-BQ15LH5j.js";import{h as G,u as A,g as X,i as q,j as c,N as O,l as W,n as F,o as N}from"./core-DQ3TOyhg.js";import{Xx as _,fI as M,WO as R,n3 as Y,SO as b,XC as $,Xr as z,m3 as U,SP as S,WT as V,WU as H,Xt as J,Xs as K}from"./zeni-epic-state-Dbldxf_m.js";import{b6 as L,h as Q,a2 as Z,p as tt}from"./index-Y1eQryGF.js";import"./mui-CCvm0tMy.js";import{d as I}from"./decodeURIComponentSafe-Cu66oljm.js";import{w as et}from"./withTransactionSidePanel-CAx04bq7.js";import{f as nt,c as at}from"./routePaths-C86LdXFF.js";import"./recharts-DstD6eEp.js";import"./analytics-D0tcyppW.js";import"./plaid-BGO-6B5S.js";import"./dnd-Bntwxh9x.js";import"./stripe-cKAAJElX.js";import"./lottie-okFpqC3A.js";import"./lexical-TNs-sItT.js";import"./pdf-YnkObZXp.js";import"./utils-DK4acSbY.js";import"./useAskAiCfoHostNavButtonProps-C52KPzAg.js";import"./TransactionDetailScreen-CaY7ynvv.js";import"./useInitialThreadRequest-9pdCy-Hh.js";import"./expenseAutomationHelper-D9c7IZ5P.js";import"./stripSplatSuffix-D7usD4S3.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new n.Error().stack;t&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[t]="09f95c78-8ecf-4842-b5eb-e469ddc08cfd",n._sentryDebugIdIdentifier="sentry-dbid-09f95c78-8ecf-4842-b5eb-e469ddc08cfd")}catch{}})();const ot=W((function(n,t){const e=t.entity,o=$(n,t.entity,"EntityDetail");return{selectedEntity:e,autoCompleteData:{autoCompleteText:e.name,entityAutoCompleteView:z(n,"common")},trendWithTransactionsReport:o,analytics:Q,isAccountingClassesEnabled:U(n)}}),(function(n,t){return{onTransactionItemClick:e=>{if(t.openTransactionPanel)return void t.openTransactionPanel(e.id,e.type);const o=`${at(e,t.tenantEmailDomain)}`,l=tt(t.location.state?.pathnameStackToGoBack,t.location.pathname);t.navigate(o,{state:{pathnameStackToGoBack:l}})},autoCompleteActions:{onAutoCompleteInputChange:e=>{e.trim().length>=2?n(J({searchString:e,searchOrigin:"common"})):e.trim().length===0&&n(K("common"))},onAutoCompleteEntity:e=>{const o=nt(e,t.tenantEmailDomain);n(V()),n(H()),t.resetTrendIsFetchedStates(),t.navigate(o,{replace:!0,state:{pathnameStackToGoBack:t.location.state?.pathnameStackToGoBack}})},onCancelAutoComplete:()=>{const e=Z(t.location.state?.pathnameStackToGoBack),o=e.poppedPathname??k();t.navigate(o,{state:{pathnameStackToGoBack:e.newStack}})}},onTrendSelectedPeriodChange:e=>{if(t.closeSidePanel?.(),e==null)t.defaultTransactionTimePeriod!=null&&n(S(t.entity,"EntityDetail",{timeframe:"quarter",timePeriod:t.defaultTransactionTimePeriod}));else{const o=e.currentTimePeriod==null?e.addTimePeriod:{startDate:e.addTimePeriod.startDate,endDate:e.currentTimePeriod.endDate};n(b(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:e.addTimePeriod})),n(S(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:o}))}}}}))(L),it=et((function({entityType:n,...t}){const e=G(),o=A(),l=X(),[m,h]=d.useState(!1),[T,D]=d.useState(!1),{tenantEmailDomain:C,entityIdEncoded:x,entityNameEncoded:j}=q(),r=I(x??""),p=I(j??""),f=rt(r,p),v=[r,p].filter((a=>a!=null)),i={name:p,id:r,type:n,zeniId:r,qboId:r},g=c((a=>_(a.customerIncomeState,a.vendorExpenseState,a.trendState,i,"quarter"))),w=c((a=>M(a).company?.companyInfo.firstMonthOfFY??1)),u=c((a=>R(a.trendWithTransactionsState,i,"EntityDetail")));d.useEffect((()=>{m===!1&&f===!0&&(h(!0),o(Y(i)))}),[m,f,i]);const P=c((a=>a.trendState.fetchState)),E=u?.selectedPeriod?.timePeriod??g,B=(function(a,y){return a!=null&&y!=null?{startDate:a.startDate,endDate:y?.endDate}:y})(u?.selectedPeriod?.timePeriod,g);return d.useEffect((()=>{m===!0&&T===!1&&P==="Completed"&&(D(!0),E!=null&&o(b(i,"EntityDetail",{timeframe:u?.selectedPeriod?.timeframe??"quarter",timePeriod:E})))}),[m,T,P]),f?s.jsx(ot,{firstMonthOfFY:w,tenantEmailDomain:C,location:l,navigate:e,entity:i,defaultTransactionTimePeriod:B,resetTrendIsFetchedStates:()=>{h(!1),D(!1)},...t}):s.jsx(O,{to:k(v.length)})})),rt=(n,t)=>t!=null&&t.length>0&&n!=null&&n.length>0,k=(n=2)=>{let t="../";for(let e=0;e<n;e++)t=`${t}../`;return t};function wt({entityType:n}){return s.jsx(F,{children:s.jsx(N,{path:"/:entityIdEncoded/:entityNameEncoded/*",element:s.jsx(it,{entityType:n})})})}export{wt as EntityDetailRoutes,wt as default};
@@ -1,4 +1,4 @@
1
- import{j as T}from"./liveblocks-S_bQ6bIM.js";import{u as Se,h as _e,g as fe,j as B,i as Te,t as qn,l as io,n as lo,o as Ge,N as ro}from"./core-wa4jvXau.js";import{fI as ye,a1G as Jn,q4 as De,UO as xt,Aq as uo,a1H as mo,a1I as po,a1J as ho,a1K as yt,a1L as it,gk as Rt,a1M as In,eH as So,g3 as fo,a1N as Cn,a1O as lt,qX as go,uY as Io,gW as Co,gU as ko,a1P as bo,r8 as To,rh as yo,qf as Po,qt as Yn,gT as re,gV as vo,a1Q as Eo,qP as Wn,ri as Ao,qq as xo,ql as Ro,v2 as wo,gS as Fe,a1R as ut,CA as Hn,N4 as Xn,a1S as Kn,F$ as Qn,a1T as Do,e$ as Fo,f1 as _o,sZ as wt,Xy as kn,XA as Mo,m6 as Bo,XB as Oo,md as Uo,dm as Vo,DT as Dt,a1U as jo,a1V as $o,a1W as zo,a1X as Lo,fp as Ft,sN as bn,Xr as Go,a1Y as No,a1Z as qo,mf as Jo,a1_ as Yo,RP as Wo,me as Ho,m3 as Xo,qI as Zn,rn as mt,tA as ea,tW as Ko,UE 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,a20 as as,a21 as os,sR as ss,sS as cs,Xn as is,Wt as ls,a18 as rs,a22 as ds,Xt as Pn,Xs as ct,a23 as vn,mu as us,a24 as ms,a25 as ps,a26 as hs,a27 as Ss,qD as fs,a28 as gs,a29 as Is,a2a as Cs,ry as ks,mh as bs,m8 as Ts,a2b as ys,mg as En,XL as Ps,a2c as vs,a2d as Es,uz as As,ua as xs,u9 as Pt,a2e as Rs,a2f as ws,a2g as Ds,a2h as Fs,nN as _s,br as aa,nI as An,nu as Ms,a2i as Bs,h3 as Os,nF as Us,s$ as Vs,t1 as js,sK as $s,Ww as zs,Wx as Ls,Ft as Gs,Fs as Ns,FJ as qs,a2j as xn,sQ as Js,sl as Ys,a2k as Ws,s1 as Hs,s6 as Xs,sh as Ks,s4 as Qs,a2l as Zs,rZ as ec,sg as tc,sW as nc,a2m as ac,t7 as oc,sE as sc,td as cc,sJ as ic,rJ as lc,a2n as rc,q$ as dc,qz as uc,qG as Rn,rt as mc,a2o as pc,a2p as hc,a2q as Sc,a2r as fc,a2s as gc,a2t as Ic,a2u as Cc,th as kc,a2v as bc,a2w as Tc,a2x as wn,uK as yc,u1 as Pc,tS as Dn,tQ as vc,a2y as Ec,tF as Ac,tk as xc,tT as Rc,a2z as wc,a2A as Dc,tq as Fc,a2B as _c,tl as Mc,tp as Bc,tn as Oc,tZ as Uc,a2C as Vc,q8 as Fn,a2D as jc,E3 as _n,cz as $c}from"./zeni-epic-state-lWD60tIp.js";import Ot from"./NotFoundScreen-CSyRIHbc.js";import{a as o,R as oa}from"./sentry-BU5jEr8h.js";import{n as Me,S as zc}from"./mui-Ci0HQ48M.js";import{q as qe,$ as K,h 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 Bn,dT as Yc,a5 as ia,dU as Wc,g as dt,a as Hc,dV as Xc,dW as Kc,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-BGcr7M3t.js";import{u as Ut}from"./useAskAiCfoHostNavButtonProps-CZ-JbWqQ.js";import{g as On,b as pi,c as hi,h as Si,a as fi,i as gi,r as Ii,C as Ci}from"./TransactionDetailScreen-CEmYD0Tg.js";import{u as ki,a as bi}from"./useActualMatchingMatchDetail-BF3bwUO7.js";import{d as Ti}from"./decodeURIComponentSafe-CIevgEwa.js";import{m as Vt,a as ra,b as da,i as Bt}from"./expenseAutomationHelper-B9h6s4MU.js";import{u as ua,a as ma,w as yi}from"./withTransactionSidePanel-BPZ1XJCd.js";import{b as Pi,S as vi,a as Ei,J as Ai}from"./ScheduleDetailsPrepaidExpensesScreen-Co9SdTEQ.js";import{s as Un,i as pa,h as xi,v as Ri,c as wi}from"./routePaths-CEJABH0C.js";import{a as vt}from"./accountMappingHelper-DTvekvpS.js";import{D as Di}from"./DrawerScreen-C-sU_EBz.js";import"./recharts-Dwi7DT-C.js";import"./analytics-DgsLc9VO.js";import"./plaid-BWdXQkCk.js";import"./dnd-Cbngon1O.js";import"./stripe-cKAAJElX.js";import"./lottie-CMd-N9jH.js";import"./lexical-BhCVvQ5e.js";import"./pdf-OHT1WZQx.js";import"./utils-Zs4lusR-.js";import"./useInitialThreadRequest-ZafvGlm9.js";import"./stripSplatSuffix-1d8c6YLM.js";import"./pathToGoBack-BQ4U7b_1.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]="2c06e6a3-7867-4b8e-867f-b43012d8dc06",t._sentryDebugIdIdentifier="sentry-dbid-2c06e6a3-7867-4b8e-867f-b43012d8dc06")}catch{}})();const Fi=()=>{const t=Se(),a=_e(),S=fe(),I=B((u=>ye(u))),{useFeatureGate:d}=qe(),{isFeatureEnabled:i}=d(K.isRealtimeInsightsFeatureEnabled),{isFeatureEnabled:l}=d(K.aiAuditScorePercentage),x=B((u=>u.expenseAutomationViewState.selectedPeriodByTenantId)),r=B((u=>Jn(u,I.tenantId))),{isAiCfoAccessEnabled:v,onAskAiCfoClick:R}=Ut({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]),U=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:U,message:"comingFromOverview"}});a(`./month_end_insights/${g.month}-${g.year}`,{state:{pathnameStackToGoBack:U,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:U,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-fFw9RMRO.js";import{u as Se,h as _e,g as fe,j as B,i as Te,t as qn,l as io,n as lo,o as Ge,N as ro}from"./core-DQ3TOyhg.js";import{fI as ye,a1G as Jn,q4 as De,UO as xt,Aq as uo,a1H as mo,a1I as po,a1J as ho,a1K as yt,a1L as it,gk as Rt,a1M as In,eH as So,g3 as fo,a1N as Cn,a1O as lt,qX as go,uY as Io,gW as Co,gU as ko,a1P as bo,r8 as To,rh as yo,qf as Po,qt as Yn,gT as re,gV as vo,a1Q as Eo,qP as Wn,ri as Ao,qq as xo,ql as Ro,v2 as wo,gS as Fe,a1R as ut,CA as Hn,N4 as Xn,a1S as Kn,F$ as Qn,a1T as Do,e$ as Fo,f1 as _o,sZ as wt,Xy as kn,XA as Mo,m6 as Bo,XB as Oo,md as Uo,dm as Vo,DT as Dt,a1U as jo,a1V as $o,a1W as zo,a1X as Lo,fp as Ft,sN as bn,Xr as Go,a1Y as No,a1Z as qo,mf as Jo,a1_ as Yo,RP as Wo,me as Ho,m3 as Xo,qI as Zn,rn as mt,tA as ea,tW as Ko,UE 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,a20 as as,a21 as os,sR as ss,sS as cs,Xn as is,Wt as ls,a18 as rs,a22 as ds,Xt as Pn,Xs as ct,a23 as vn,mu as us,a24 as ms,a25 as ps,a26 as hs,a27 as Ss,qD as fs,a28 as gs,a29 as Is,a2a as Cs,ry as ks,mh as bs,m8 as Ts,a2b as ys,mg as En,XL as Ps,a2c as vs,a2d as Es,uz as As,ua as xs,u9 as Pt,a2e as Rs,a2f as ws,a2g as Ds,a2h as Fs,nN as _s,br as aa,nI as An,nu as Ms,a2i as Bs,h3 as Os,nF as Us,s$ as Vs,t1 as js,sK as $s,Ww as zs,Wx as Ls,Ft as Gs,Fs as Ns,FJ as qs,a2j as xn,sQ as Js,sl as Ys,a2k as Ws,s1 as Hs,s6 as Xs,sh as Ks,s4 as Qs,a2l as Zs,rZ as ec,sg as tc,sW as nc,a2m as ac,t7 as oc,sE as sc,td as cc,sJ as ic,rJ as lc,a2n as rc,q$ as dc,qz as uc,qG as Rn,rt as mc,a2o as pc,a2p as hc,a2q as Sc,a2r as fc,a2s as gc,a2t as Ic,a2u as Cc,th as kc,a2v as bc,a2w as Tc,a2x as wn,uK as yc,u1 as Pc,tS as Dn,tQ as vc,a2y as Ec,tF as Ac,tk as xc,tT as Rc,a2z as wc,a2A as Dc,tq as Fc,a2B as _c,tl as Mc,tp as Bc,tn as Oc,tZ as Uc,a2C as Vc,q8 as Fn,a2D as jc,E3 as _n,cz as $c}from"./zeni-epic-state-Dbldxf_m.js";import Ot from"./NotFoundScreen-C99sWTxq.js";import{a as o,R as oa}from"./sentry-BQ15LH5j.js";import{n as Me,S as zc}from"./mui-CCvm0tMy.js";import{q as qe,$ as K,h 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 Bn,dT as Yc,a5 as ia,dU as Wc,g as dt,a as Hc,dV as Xc,dW as Kc,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-Y1eQryGF.js";import{u as Ut}from"./useAskAiCfoHostNavButtonProps-C52KPzAg.js";import{g as On,b as pi,c as hi,h as Si,a as fi,i as gi,r as Ii,C as Ci}from"./TransactionDetailScreen-CaY7ynvv.js";import{u as ki,a as bi}from"./useActualMatchingMatchDetail-Baa_SLNz.js";import{d as Ti}from"./decodeURIComponentSafe-Cu66oljm.js";import{m as Vt,a as ra,b as da,i as Bt}from"./expenseAutomationHelper-D9c7IZ5P.js";import{u as ua,a as ma,w as yi}from"./withTransactionSidePanel-CAx04bq7.js";import{b as Pi,S as vi,a as Ei,J as Ai}from"./ScheduleDetailsPrepaidExpensesScreen-CkHXOnk-.js";import{s as Un,i as pa,h as xi,v as Ri,c as wi}from"./routePaths-C86LdXFF.js";import{a as vt}from"./accountMappingHelper-BkCKv6WZ.js";import{D as Di}from"./DrawerScreen-xtPJeB-a.js";import"./recharts-DstD6eEp.js";import"./analytics-D0tcyppW.js";import"./plaid-BGO-6B5S.js";import"./dnd-Bntwxh9x.js";import"./stripe-cKAAJElX.js";import"./lottie-okFpqC3A.js";import"./lexical-TNs-sItT.js";import"./pdf-YnkObZXp.js";import"./utils-DK4acSbY.js";import"./useInitialThreadRequest-9pdCy-Hh.js";import"./stripSplatSuffix-D7usD4S3.js";import"./pathToGoBack-Ctw9JQNd.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]="2c06e6a3-7867-4b8e-867f-b43012d8dc06",t._sentryDebugIdIdentifier="sentry-dbid-2c06e6a3-7867-4b8e-867f-b43012d8dc06")}catch{}})();const Fi=()=>{const t=Se(),a=_e(),S=fe(),I=B((u=>ye(u))),{useFeatureGate:d}=qe(),{isFeatureEnabled:i}=d(K.isRealtimeInsightsFeatureEnabled),{isFeatureEnabled:l}=d(K.aiAuditScorePercentage),x=B((u=>u.expenseAutomationViewState.selectedPeriodByTenantId)),r=B((u=>Jn(u,I.tenantId))),{isAiCfoAccessEnabled:v,onAskAiCfoClick:R}=Ut({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]),U=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:U,message:"comingFromOverview"}});a(`./month_end_insights/${g.month}-${g.year}`,{state:{pathnameStackToGoBack:U,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:U,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-S_bQ6bIM.js";import{a as r}from"./sentry-BU5jEr8h.js";import{au as i,av as b,r as f,a2 as l}from"./index-BGcr7M3t.js";import"./mui-Ci0HQ48M.js";import p from"./NotFoundScreen-CSyRIHbc.js";import{h as m,g as u}from"./core-wa4jvXau.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]="3e0b62bd-24c2-4dc7-beeb-ffec556cb516",e._sentryDebugIdIdentifier="sentry-dbid-3e0b62bd-24c2-4dc7-beeb-ffec556cb516")}catch{}})();const _=()=>{const e=m(),t=u(),a=r.useCallback((()=>{window.open("https://www.zeni.ai/demo/request","_blank")}),[]),c=r.useCallback((()=>{(()=>{const n=l(t.state?.pathnameStackToGoBack),d=n.poppedPathname??k();e(d,{state:{pathnameStackToGoBack:n.newStack}})})()}),[]),o=i(t.pathname);return o!=null?s.jsx(b,{menuItem:f(o),onDemoClick:a,onGoBack:c}):s.jsx(p,{})},k=(e=2)=>{let t="../";for(let a=0;a<e;a++)t=`${t}../`;return t};export{_ as F};
1
+ import{j as s}from"./liveblocks-fFw9RMRO.js";import{a as r}from"./sentry-BQ15LH5j.js";import{au as i,av as b,r as f,a2 as l}from"./index-Y1eQryGF.js";import"./mui-CCvm0tMy.js";import p from"./NotFoundScreen-C99sWTxq.js";import{h as m,g as u}from"./core-DQ3TOyhg.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]="3e0b62bd-24c2-4dc7-beeb-ffec556cb516",e._sentryDebugIdIdentifier="sentry-dbid-3e0b62bd-24c2-4dc7-beeb-ffec556cb516")}catch{}})();const _=()=>{const e=m(),t=u(),a=r.useCallback((()=>{window.open("https://www.zeni.ai/demo/request","_blank")}),[]),c=r.useCallback((()=>{(()=>{const n=l(t.state?.pathnameStackToGoBack),d=n.poppedPathname??k();e(d,{state:{pathnameStackToGoBack:n.newStack}})})()}),[]),o=i(t.pathname);return o!=null?s.jsx(b,{menuItem:f(o),onDemoClick:a,onGoBack:c}):s.jsx(p,{})},k=(e=2)=>{let t="../";for(let a=0;a<e;a++)t=`${t}../`;return t};export{_ as F};
@@ -1 +1 @@
1
- import{a as i}from"./sentry-BU5jEr8h.js";import{u as l,h as f,g as m}from"./core-wa4jvXau.js";import{i0 as p,V9 as g,Va as _}from"./zeni-epic-state-lWD60tIp.js";import{u as b,L as h,z as y}from"./index-BGcr7M3t.js";import"./liveblocks-S_bQ6bIM.js";import"./recharts-Dwi7DT-C.js";import"./mui-Ci0HQ48M.js";import"./analytics-DgsLc9VO.js";import"./plaid-BWdXQkCk.js";import"./dnd-Cbngon1O.js";import"./stripe-cKAAJElX.js";import"./lottie-CMd-N9jH.js";import"./lexical-BhCVvQ5e.js";import"./pdf-OHT1WZQx.js";import"./utils-Zs4lusR-.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]="08d1d706-c31a-4dea-b2e7-fe1e6b7cc6ef",e._sentryDebugIdIdentifier="sentry-dbid-08d1d706-c31a-4dea-b2e7-fe1e6b7cc6ef")}catch{}})();function V(){const e=l(),n=f(),r=m(),{setLoading:o,clearAllLoading:u}=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}))}u();const d=y.getActiveTenantForUser();n(d?.tenantEmailDomain!=null?`/${d.tenantEmailDomain}/settings/integrations`:"/",{replace:!0})}),[]),null}export{V as default};
1
+ import{a as i}from"./sentry-BQ15LH5j.js";import{u as l,h as f,g as m}from"./core-DQ3TOyhg.js";import{i0 as p,V9 as g,Va as _}from"./zeni-epic-state-Dbldxf_m.js";import{u as b,L as h,z as y}from"./index-Y1eQryGF.js";import"./liveblocks-fFw9RMRO.js";import"./recharts-DstD6eEp.js";import"./mui-CCvm0tMy.js";import"./analytics-D0tcyppW.js";import"./plaid-BGO-6B5S.js";import"./dnd-Bntwxh9x.js";import"./stripe-cKAAJElX.js";import"./lottie-okFpqC3A.js";import"./lexical-TNs-sItT.js";import"./pdf-YnkObZXp.js";import"./utils-DK4acSbY.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]="08d1d706-c31a-4dea-b2e7-fe1e6b7cc6ef",e._sentryDebugIdIdentifier="sentry-dbid-08d1d706-c31a-4dea-b2e7-fe1e6b7cc6ef")}catch{}})();function V(){const e=l(),n=f(),r=m(),{setLoading:o,clearAllLoading:u}=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}))}u();const d=y.getActiveTenantForUser();n(d?.tenantEmailDomain!=null?`/${d.tenantEmailDomain}/settings/integrations`:"/",{replace:!0})}),[]),null}export{V as default};
@@ -1 +1 @@
1
- import{n as s}from"./liveblocks-S_bQ6bIM.js";import{j as c}from"./core-wa4jvXau.js";import{fI as f}from"./zeni-epic-state-lWD60tIp.js";import"./sentry-BU5jEr8h.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="25fc1afa-344c-4436-b7c0-ce0cb6697f63",e._sentryDebugIdIdentifier="sentry-dbid-25fc1afa-344c-4436-b7c0-ce0cb6697f63")}catch{}})();const b=()=>c((e=>f(e))).tenantId==null?{inboxNotifications:[],isLoading:!1,isFetchingMore:!1,hasFetchedAll:!0,fetchMore:()=>null}:(()=>{const{inboxNotifications:e,isLoading:o,isFetchingMore:i,hasFetchedAll:t,fetchMore:n}=s();return{inboxNotifications:e,isLoading:o,isFetchingMore:i,hasFetchedAll:t,fetchMore:n}})();export{b as u};
1
+ import{n as s}from"./liveblocks-fFw9RMRO.js";import{j as c}from"./core-DQ3TOyhg.js";import{fI as f}from"./zeni-epic-state-Dbldxf_m.js";import"./sentry-BQ15LH5j.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="25fc1afa-344c-4436-b7c0-ce0cb6697f63",e._sentryDebugIdIdentifier="sentry-dbid-25fc1afa-344c-4436-b7c0-ce0cb6697f63")}catch{}})();const b=()=>c((e=>f(e))).tenantId==null?{inboxNotifications:[],isLoading:!1,isFetchingMore:!1,hasFetchedAll:!0,fetchMore:()=>null}:(()=>{const{inboxNotifications:e,isLoading:o,isFetchingMore:i,hasFetchedAll:t,fetchMore:n}=s();return{inboxNotifications:e,isLoading:o,isFetchingMore:i,hasFetchedAll:t,fetchMore:n}})();export{b as u};