@zeniai/web-app-ui 5.3.57-qa → 5.3.58-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/dist/assets/{AccountMappingScreen-CySsJfDd.js → AccountMappingScreen-i9VnJUfN.js} +1 -1
  2. package/dist/assets/{ActualMatchingMatchDetailScreen-DbdN2Mi2.js → ActualMatchingMatchDetailScreen-BezdP5hK.js} +1 -1
  3. package/dist/assets/AddressRoutes-Bdit2HAJ.js +1 -0
  4. package/dist/assets/{AddressScreen-CI7cz88u.js → AddressScreen-VFwclDOo.js} +1 -1
  5. package/dist/assets/{AiCfoScreen-DNWo2AjH.js → AiCfoScreen-DxQtaOj7.js} +1 -1
  6. package/dist/assets/{AppDrawer-BYYP1sG0.js → AppDrawer-C6RwU25A.js} +1 -1
  7. package/dist/assets/{BillPayApprovalRoutes-B7plJz-E.js → BillPayApprovalRoutes-DYWuhb41.js} +1 -1
  8. package/dist/assets/{BillPayRoutes-Cx5HM0qt.js → BillPayRoutes-C1JyoH4j.js} +1 -1
  9. package/dist/assets/{BusinessVerificationPageScreen-iX3DDrGd.js → BusinessVerificationPageScreen-CGL4LCDJ.js} +1 -1
  10. package/dist/assets/{CardsAiCfoScreen-DLaKNHg9.js → CardsAiCfoScreen-DbF_UrIW.js} +1 -1
  11. package/dist/assets/{ChargeCardRoutes-n4yXVs4y.js → ChargeCardRoutes-BZfJocDx.js} +1 -1
  12. package/dist/assets/{CompanyPassportScreen-BjEKAZ2B.js → CompanyPassportScreen-C4Q98a-_.js} +1 -1
  13. package/dist/assets/{ConnectionAuthScreen-DwabU4XK.js → ConnectionAuthScreen-413EOD9J.js} +1 -1
  14. package/dist/assets/CustomerOnboardingAuthScreen-DGoLyCcj.js +1 -0
  15. package/dist/assets/{CustomerOnboardingRoutes-DuYH8q3E.js → CustomerOnboardingRoutes-CUI-gFVx.js} +1 -1
  16. package/dist/assets/{DashboardRoutes-Cn8hKklX.js → DashboardRoutes-CZU-ohC4.js} +1 -1
  17. package/dist/assets/{DefaultTenantHome-DTB5cfqB.js → DefaultTenantHome-BIH8L2zP.js} +1 -1
  18. package/dist/assets/{DomesticWireDetailScreen-w5PAIlYp.js → DomesticWireDetailScreen-MDUoS_v9.js} +1 -1
  19. package/dist/assets/{DrawerScreen-BNUh6KQB.js → DrawerScreen-BzNdt1AI.js} +1 -1
  20. package/dist/assets/{EntityDetailRoutes-DC_XAm6m.js → EntityDetailRoutes-Cn6snoxK.js} +1 -1
  21. package/dist/assets/{ExpenseAutomationRoutes-CehO862M.js → ExpenseAutomationRoutes-G_4mZDU-.js} +1 -1
  22. package/dist/assets/{FeaturePreviewScreen-BCDt8NVH.js → FeaturePreviewScreen-C-uktVbl.js} +1 -1
  23. package/dist/assets/{HubSpotOAuthCallbackScreen-DvwqcjI1.js → HubSpotOAuthCallbackScreen-DPJHmsFd.js} +1 -1
  24. package/dist/assets/{InboxNotificationsProvider-XqYApNHe.js → InboxNotificationsProvider-zG7x1gLM.js} +1 -1
  25. package/dist/assets/{InvoicingRoutes-DAtfWYNa.js → InvoicingRoutes-De3ZOg_V.js} +1 -1
  26. package/dist/assets/{MagicLinkRoutes-DmY0K9N9.js → MagicLinkRoutes-D8WmClD4.js} +1 -1
  27. package/dist/assets/{MagicLinkSignInScreen-BbYqhn7q.js → MagicLinkSignInScreen-DUzZyQDK.js} +1 -1
  28. package/dist/assets/{MobileAppDrawer-C3tOTTJr.js → MobileAppDrawer-nX8kGgUI.js} +1 -1
  29. package/dist/assets/NotFoundScreen-znPj3CVA.js +1 -0
  30. package/dist/assets/{NotificationRoutes-Bpk5dXQd.js → NotificationRoutes-DQ95Eu44.js} +1 -1
  31. package/dist/assets/{OAuthConsentScreen-zj2HrNHb.js → OAuthConsentScreen-dDQYvFle.js} +1 -1
  32. package/dist/assets/{PandLWithForecastRoutes-DwcyRcIz.js → PandLWithForecastRoutes-CxDiuohR.js} +1 -1
  33. package/dist/assets/{PaymentLinkScreen-jFlMHEdW.js → PaymentLinkScreen-D586vchF.js} +1 -1
  34. package/dist/assets/{PeopleRoutes-BWq0TM_E.js → PeopleRoutes-Kyg4bRaa.js} +1 -1
  35. package/dist/assets/{PerformanceRoutes-BfMBfAbe.js → PerformanceRoutes-P-3150On.js} +1 -1
  36. package/dist/assets/{Preview-u3wRUzMg.js → Preview-Crvq2j5W.js} +1 -1
  37. package/dist/assets/{QBOConnectionScreen-C8KGlTSL.js → QBOConnectionScreen-Bf8b_4PY.js} +1 -1
  38. package/dist/assets/{ReimbursementApprovalRoutes-BgCPbT29.js → ReimbursementApprovalRoutes-3BFLJn19.js} +1 -1
  39. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-Bx28fmOZ.js → ReimbursementApprovalRuleDetailScreen-BXMGleKX.js} +1 -1
  40. package/dist/assets/{ReimbursementRoutes-BqiWsPNs.js → ReimbursementRoutes-CycF_Spp.js} +1 -1
  41. package/dist/assets/{ReportsRoutes-DVf56dEc.js → ReportsRoutes-Bu-WEiek.js} +1 -1
  42. package/dist/assets/{RewardsRoutes-DEC_CZIr.js → RewardsRoutes-P_7Rwvsn.js} +1 -1
  43. package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-CXYRpnMH.js → ScheduleDetailsPrepaidExpensesScreen-D7v-1M8j.js} +1 -1
  44. package/dist/assets/{ScreenRoutes-p1Cxx89p.js → ScreenRoutes-D5MH9SH5.js} +2 -2
  45. package/dist/assets/{SettingsRoutes-rPH_9eBQ.js → SettingsRoutes-dfB8V5LJ.js} +1 -1
  46. package/dist/assets/{SetupPagesScreen-BBerEVvX.js → SetupPagesScreen-CiEvawPy.js} +1 -1
  47. package/dist/assets/{SignInScreen-Numh9AoY.js → SignInScreen-CvFNfCth.js} +1 -1
  48. package/dist/assets/{SignOutScreen-4qbb2zXM.js → SignOutScreen-m-IPtY4_.js} +1 -1
  49. package/dist/assets/{TaskListScreen-C-C6IYnc.js → TaskListScreen-8Fb8ti00.js} +1 -1
  50. package/dist/assets/{TaskRoutes-C2WZ-L5x.js → TaskRoutes-CiBAjLDk.js} +1 -1
  51. package/dist/assets/TransactionDetailRoutes-DgMv2RRC.js +1 -0
  52. package/dist/assets/{TransactionDetailScreen-1pyTFZv_.js → TransactionDetailScreen-DiUMYJym.js} +1 -1
  53. package/dist/assets/{TransactionListRoutes-C2qLgSWF.js → TransactionListRoutes-DIxo91Cd.js} +1 -1
  54. package/dist/assets/{TreasuryRoutes-CGup_WAJ.js → TreasuryRoutes-iyMNrkVz.js} +1 -1
  55. package/dist/assets/{VendorsRoutes-BI5iNAnF.js → VendorsRoutes-Co_zhdIN.js} +1 -1
  56. package/dist/assets/{WiseConfirmationScreen-Di8afb_o.js → WiseConfirmationScreen-DbcfT5oS.js} +1 -1
  57. package/dist/assets/{ZeniAccountRoutes-BnS5jMR8.js → ZeniAccountRoutes-CtKmgkAm.js} +1 -1
  58. package/dist/assets/{ZeniAccountStatementScreen-o2Dkcdl6.js → ZeniAccountStatementScreen-hSEFk11y.js} +1 -1
  59. package/dist/assets/{accountMappingHelper-C05BGWXi.js → accountMappingHelper-Dr9MEF3a.js} +1 -1
  60. package/dist/assets/{analytics-CdlFAR7_.js → analytics-Ckbn2qr2.js} +1 -1
  61. package/dist/assets/{analyticsHelper-DVgmqXUy.js → analyticsHelper-DsmnThaa.js} +1 -1
  62. package/dist/assets/{core-BxGWoVcT.js → core-C1MQ75FC.js} +1 -1
  63. package/dist/assets/{decodeURIComponentSafe-COWOoCD-.js → decodeURIComponentSafe-BkSrHWOz.js} +1 -1
  64. package/dist/assets/{dnd-4QLQvWVu.js → dnd-64pfrglk.js} +1 -1
  65. package/dist/assets/{empty-DTpu2BE3.js → empty-CPYiU0XG.js} +1 -1
  66. package/dist/assets/{empty-CKa69gT2.js → empty-DTjUxrNn.js} +1 -1
  67. package/dist/assets/{emptyVideoElement-CE_3f_HJ.js → emptyVideoElement-lIBGY-aq.js} +1 -1
  68. package/dist/assets/{epic-DoarAhcY.js → epic-Sk9LU7p7.js} +1 -1
  69. package/dist/assets/{expenseAutomationHelper-CY9qPhLr.js → expenseAutomationHelper-VfFbXlTC.js} +1 -1
  70. package/dist/assets/{getLocaleForTenant-B91DyzTP.js → getLocaleForTenant-B7a_04KB.js} +1 -1
  71. package/dist/assets/{index-ByUkyI1p.js → index-BgIX2Tk5.js} +2 -2
  72. package/dist/assets/{index-BGEGJOhz.js → index-DBaQwW7d.js} +1 -1
  73. package/dist/assets/{index-JUFp38yH.js → index-DMDsYekO.js} +9 -9
  74. package/dist/assets/{index-Dp8eQc1C.js → index-Dcy8EwAy.js} +1 -1
  75. package/dist/assets/{index-I0RC_WxM.js → index-Dl0S4JM9.js} +1 -1
  76. package/dist/assets/{index-ClrEdm3Z.js → index-DuTsLjcS.js} +1 -1
  77. package/dist/assets/{index-iq3MsRX8.js → index-RA90NjT0.js} +1 -1
  78. package/dist/assets/{index-CQNQucIy.js → index-fx_VKS0e.js} +1 -1
  79. package/dist/assets/{lexical-DXD9Kn-N.js → lexical-TkcJlpM_.js} +1 -1
  80. package/dist/assets/{liveblocks-SKYC1C2A.js → liveblocks-BF-IiX2V.js} +1 -1
  81. package/dist/assets/{lottie-B7wq19x9.js → lottie-CWNAcXJv.js} +1 -1
  82. package/dist/assets/{mui-KBl5-FbY.js → mui-D4JyxRuO.js} +1 -1
  83. package/dist/assets/{pathToGoBack-YHA3dWdG.js → pathToGoBack-wJzek_Cz.js} +1 -1
  84. package/dist/assets/{pdf-B0ceY1o5.js → pdf-Cj_veg-U.js} +3 -3
  85. package/dist/assets/{pdf-lib-CWPynulQ.js → pdf-lib-LgS50teK.js} +1 -1
  86. package/dist/assets/{plaid-YTuVWNGR.js → plaid-CD2DDkpy.js} +1 -1
  87. package/dist/assets/{pusher-CKqdMamV.js → pusher-CgyD-8gi.js} +1 -1
  88. package/dist/assets/{react-DAKIElX4.js → react-BPkYL230.js} +1 -1
  89. package/dist/assets/{react-CXCp6-Q4.js → react-BhEAmIaW.js} +1 -1
  90. package/dist/assets/{react-Chh3O9yq.js → react-CBd5YUO5.js} +1 -1
  91. package/dist/assets/{react-DuVFeEpk.js → react-DW9umh8L.js} +1 -1
  92. package/dist/assets/{react-C6vdSbOp.js → react-DylygKQb.js} +1 -1
  93. package/dist/assets/{react-CsK9fFr3.js → react-LQ8ewR7F.js} +1 -1
  94. package/dist/assets/{recharts-CflkB2e4.js → recharts-BEOxWuh3.js} +1 -1
  95. package/dist/assets/{routePaths-Lj2I6Wyf.js → routePaths-DtiHE0tS.js} +1 -1
  96. package/dist/assets/{sentry-DZfHa7Ie.js → sentry-DQv7eTqs.js} +1 -1
  97. package/dist/assets/{stripSplatSuffix-pcOF7B7F.js → stripSplatSuffix-CF6NUsXZ.js} +1 -1
  98. package/dist/assets/{url-98Mp7WPJ.js → url-BQJem0W5.js} +1 -1
  99. package/dist/assets/{url-HFE8hMjk.js → url-Eifk29FQ.js} +1 -1
  100. package/dist/assets/{useActualMatchingMatchDetail-B26eyb8_.js → useActualMatchingMatchDetail-BAqmIJo_.js} +1 -1
  101. package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-DYwdlOoi.js → useAiCfoDashboardSuggestedQuestionsChips-yFi8Syac.js} +1 -1
  102. package/dist/assets/{useAskAiCfoHostNavButtonProps-D7B3mwZq.js → useAskAiCfoHostNavButtonProps-BPjVLeQ1.js} +1 -1
  103. package/dist/assets/{useChargeCardPusherEvents-DHRgXTbb.js → useChargeCardPusherEvents-DFAQ6Tan.js} +1 -1
  104. package/dist/assets/{useDeviceId-6zQhAsQ2.js → useDeviceId-BrccfFDF.js} +1 -1
  105. package/dist/assets/{useEmailConnectResultRefresh-CJlrix4k.js → useEmailConnectResultRefresh-GEPB7d7i.js} +1 -1
  106. package/dist/assets/{useInitialThreadRequest-Da_Q00AD.js → useInitialThreadRequest-B7Oi83EI.js} +1 -1
  107. package/dist/assets/{useTaskManagerAccess-BeS_l8Xg.js → useTaskManagerAccess-CZ3Xfg1w.js} +1 -1
  108. package/dist/assets/{useTaskManagerPusherEvents-PHahxNMP.js → useTaskManagerPusherEvents-BPMYVmLa.js} +1 -1
  109. package/dist/assets/{utils-BqbdeqC-.js → utils-G6VVxCSd.js} +1 -1
  110. package/dist/assets/{withTransactionSidePanel-4ZSXJ3d_.js → withTransactionSidePanel-BNIz03mj.js} +1 -1
  111. package/dist/assets/{zeni-epic-state-C7XRcjyb.js → zeni-epic-state-Dmop9tB7.js} +3 -3
  112. package/dist/index.html +1 -1
  113. package/package.json +2 -2
  114. package/dist/assets/AddressRoutes-BwUpLkgu.js +0 -1
  115. package/dist/assets/CustomerOnboardingAuthScreen-B8_iep73.js +0 -1
  116. package/dist/assets/NotFoundScreen-DWfgauzD.js +0 -1
  117. package/dist/assets/TransactionDetailRoutes-BunmRBJM.js +0 -1
@@ -1 +1 @@
1
- import{j as m}from"./liveblocks-SKYC1C2A.js";import{a as g}from"./sentry-DZfHa7Ie.js";import{h as w,u as x,g as T,i as k,j as O,l as E}from"./core-BxGWoVcT.js";import{z as C,bt as F,a9 as P,l as V,V as j,r as b,bu as L,af as A,aH as U,p as B}from"./index-JUFp38yH.js";import{fF as N,gI as M,BE as _,gD as z,c8 as R,Ye as Y,bn as G,uX as H,uL as X,mz as Z,o8 as S,Yf as $,bE as q,cE as D,oj as J,ot as K}from"./zeni-epic-state-C7XRcjyb.js";import"./mui-KBl5-FbY.js";import{d as Q}from"./routePaths-Lj2I6Wyf.js";import{M as W}from"./MobileAppDrawer-C3tOTTJr.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new t.Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="db2a3d09-bddb-4c02-aefa-9312993ff6ad",t._sentryDebugIdIdentifier="sentry-dbid-db2a3d09-bddb-4c02-aefa-9312993ff6ad")}catch{}})();const ee=E((function(t){const n=z(t),i=C.getSignedInUser(),p=N(t),c=p.tenantId,l={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:c??""},f=R(p?.userRole??[])&&n.localData.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",e=Y(t.companyConfigState),a=t.countryListState?.byCountryListCode?.nationalityCountryList?.countries??[];return{isCompanyVerified:n.companyView?.company?.company?.companyBillPayInfo?.companyVerificationStatus?.code==="verified",companyPassportView:n,allIndustries:e.companyIndustries??[],allNationalityCountries:a,isDisabled:f,authParams:l,filesEndPoint:`${A.fileMicroServiceBaseUrl}`,isZeniUser:G(i)}}),(function(t,n){const{companyId:i,currentTenant:p,navigate:c,location:l}=n,{tenantEmailDomain:f}=p;return{onScheduleClick:e=>{let a=e.href;a.includes("http")||(a="https://".concat(a)),window.open(a,"_blank")},onSaveAll:()=>{t(K())},onAddressClick:e=>{const a=Q(f,e),o=B(l.state?.pathnameStackToGoBack,l.pathname);c(a,{state:{pathnameStackToGoBack:o}})},onResetClick:()=>{t(J({companyId:i}))},onBackClick:()=>{c("../")},onCompanyDetailsChanged:e=>{const{companyInfo:a,incInfo:o,taxDetails:r,zeniFinanceTeam:d}=e,{website:u}=a,{meetingLink:y}=d,{incDate:s}=o,{taxesFiledYears:h}=r,v={companyInfo:{...a,website:u!=""&&u!=null?D(u):void 0,meetingLink:y!=""&&y!=null?D(y):void 0,industry:a.industry.selectedOption,companyIndustryType:a.companyIndustryType?.selectedOption??void 0,companySubIndustry:a.companySubIndustry?.selectedOption??void 0,businessModel:a.businessModel.selectedOption??"",companySourceOfFunds:a.companySourceOfFunds?.selectedOption,companySourceOfFundsDescription:a.companySourceOfFundsDescription??void 0,countriesOfOperations:a.countriesOfOperations?.selectedOptions?.map((I=>I.length===2?I:U(I)))??[],transactionVolume:a.transactionVolume?.selectedOption??void 0,transactionVolumeDescription:a.transactionVolumeDescription??void 0,regulatedStatus:a.regulatedStatus??void 0,regulatedStatusDescription:a.regulatedStatusDescription??void 0,usNexus:a.usNexus??void 0,usNexusTypes:a.usNexusTypes?.selectedOptions??[],purposeOfAccount:a.purposeOfAccount?.selectedOption??void 0,purposeOfAccountDescription:a.purposeOfAccountDescription??void 0},incInfo:{typeOfInc:o.typeOfInc.selectedOption??"",stateOfInc:o.stateOfInc.selectedOption??"",incDate:s!=null?q(s?.toString()):s,fileId:o.fileIds[0]},taxDetails:{taxIdOrEIN:r.taxIdOrEIN,sicCode:r.sicCode,naicsCode:r.naicsCode,dunsNumber:r.dunsNumber,taxesFiledYears:h.selectedOptions.map((I=>parseInt(I))),fileId:r.fileIds[0]}};t(S({companyDetails:v}))},onPrimaryContactDetailsUpdated:e=>{t(S({primaryContact:{userId:e.userId,email:e.email.trim(),firstName:e.name.firstName,lastName:e.name.lastName}}))},onNewCompanyOfficerAdded:e=>{t(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:void 0}]}))},onNewCompanyOfficerRemoved:e=>{t($(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(Z({files:e}))},onDeleteFile:e=>{t(X(e))},onEditFileName:(e,a)=>{t(H(e,a.split(".")[0]))}}}))(L);function de(){const t=w(),n=x(),i=T(),{tenantEmailDomain:p}=k(),[c,l]=g.useState(!1),[f,e]=g.useState(!1),a=O((s=>s.companyViewState.passportView.fetchState)),o=O((s=>s.companyConfigState.fetchState)),r=O((s=>N(s))),d=r.companyId??C.getSignedInUserTenant(p)?.companyId;if(C.getSignedInUser()==null)throw Error("Can't access company details page without signing in...");g.useEffect((()=>{c||a!=="Not-Started"||d==null||(l(!0),n(M(d)))}),[c,a,d,n]),g.useEffect((()=>{o==="Not-Started"&&n(_())}),[o,n]);const u=s=>{e(s)},y=a==="Not-Started"||a==="In-Progress"||o==="Not-Started"||o==="In-Progress";return d!=null&&a==="Error"?m.jsx(F,{onGoHome:()=>t("../",{replace:!0}),onReload:()=>window.location.reload()}):m.jsxs(m.Fragment,{children:[m.jsx(P,{analytics:V,onLoad:s=>s.trackPageLoaded(j.Event.companyPassport,b(i)?"Settings":"Company Passport")}),b(i)?m.jsx(W,{isAppContentDrawerOpen:f,handleDrawerToggle:u}):null,m.jsx(ee,{companyId:d,navigate:t,location:i,isLoading:y,currentTenant:r,isSettings:b(i),onClickMenuIcon:()=>{u(!0)}})]})}export{de as C};
1
+ import{j as m}from"./liveblocks-BF-IiX2V.js";import{a as g}from"./sentry-DQv7eTqs.js";import{h as w,u as x,g as T,i as k,j as O,l as E}from"./core-C1MQ75FC.js";import{z as C,bt as F,a9 as P,l as V,V as j,r as b,bu as L,af as A,aH as U,p as B}from"./index-DMDsYekO.js";import{fF as N,gI as M,BE as _,gD as z,c8 as R,Ye as Y,bn as G,uX as H,uL as X,mz as Z,o8 as S,Yf as $,bE as q,cE as D,oj as J,ot as K}from"./zeni-epic-state-Dmop9tB7.js";import"./mui-D4JyxRuO.js";import{d as Q}from"./routePaths-DtiHE0tS.js";import{M as W}from"./MobileAppDrawer-nX8kGgUI.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new t.Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="db2a3d09-bddb-4c02-aefa-9312993ff6ad",t._sentryDebugIdIdentifier="sentry-dbid-db2a3d09-bddb-4c02-aefa-9312993ff6ad")}catch{}})();const ee=E((function(t){const n=z(t),i=C.getSignedInUser(),p=N(t),c=p.tenantId,l={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:c??""},f=R(p?.userRole??[])&&n.localData.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",e=Y(t.companyConfigState),a=t.countryListState?.byCountryListCode?.nationalityCountryList?.countries??[];return{isCompanyVerified:n.companyView?.company?.company?.companyBillPayInfo?.companyVerificationStatus?.code==="verified",companyPassportView:n,allIndustries:e.companyIndustries??[],allNationalityCountries:a,isDisabled:f,authParams:l,filesEndPoint:`${A.fileMicroServiceBaseUrl}`,isZeniUser:G(i)}}),(function(t,n){const{companyId:i,currentTenant:p,navigate:c,location:l}=n,{tenantEmailDomain:f}=p;return{onScheduleClick:e=>{let a=e.href;a.includes("http")||(a="https://".concat(a)),window.open(a,"_blank")},onSaveAll:()=>{t(K())},onAddressClick:e=>{const a=Q(f,e),o=B(l.state?.pathnameStackToGoBack,l.pathname);c(a,{state:{pathnameStackToGoBack:o}})},onResetClick:()=>{t(J({companyId:i}))},onBackClick:()=>{c("../")},onCompanyDetailsChanged:e=>{const{companyInfo:a,incInfo:o,taxDetails:r,zeniFinanceTeam:d}=e,{website:u}=a,{meetingLink:y}=d,{incDate:s}=o,{taxesFiledYears:h}=r,v={companyInfo:{...a,website:u!=""&&u!=null?D(u):void 0,meetingLink:y!=""&&y!=null?D(y):void 0,industry:a.industry.selectedOption,companyIndustryType:a.companyIndustryType?.selectedOption??void 0,companySubIndustry:a.companySubIndustry?.selectedOption??void 0,businessModel:a.businessModel.selectedOption??"",companySourceOfFunds:a.companySourceOfFunds?.selectedOption,companySourceOfFundsDescription:a.companySourceOfFundsDescription??void 0,countriesOfOperations:a.countriesOfOperations?.selectedOptions?.map((I=>I.length===2?I:U(I)))??[],transactionVolume:a.transactionVolume?.selectedOption??void 0,transactionVolumeDescription:a.transactionVolumeDescription??void 0,regulatedStatus:a.regulatedStatus??void 0,regulatedStatusDescription:a.regulatedStatusDescription??void 0,usNexus:a.usNexus??void 0,usNexusTypes:a.usNexusTypes?.selectedOptions??[],purposeOfAccount:a.purposeOfAccount?.selectedOption??void 0,purposeOfAccountDescription:a.purposeOfAccountDescription??void 0},incInfo:{typeOfInc:o.typeOfInc.selectedOption??"",stateOfInc:o.stateOfInc.selectedOption??"",incDate:s!=null?q(s?.toString()):s,fileId:o.fileIds[0]},taxDetails:{taxIdOrEIN:r.taxIdOrEIN,sicCode:r.sicCode,naicsCode:r.naicsCode,dunsNumber:r.dunsNumber,taxesFiledYears:h.selectedOptions.map((I=>parseInt(I))),fileId:r.fileIds[0]}};t(S({companyDetails:v}))},onPrimaryContactDetailsUpdated:e=>{t(S({primaryContact:{userId:e.userId,email:e.email.trim(),firstName:e.name.firstName,lastName:e.name.lastName}}))},onNewCompanyOfficerAdded:e=>{t(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:void 0}]}))},onNewCompanyOfficerRemoved:e=>{t($(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(Z({files:e}))},onDeleteFile:e=>{t(X(e))},onEditFileName:(e,a)=>{t(H(e,a.split(".")[0]))}}}))(L);function de(){const t=w(),n=x(),i=T(),{tenantEmailDomain:p}=k(),[c,l]=g.useState(!1),[f,e]=g.useState(!1),a=O((s=>s.companyViewState.passportView.fetchState)),o=O((s=>s.companyConfigState.fetchState)),r=O((s=>N(s))),d=r.companyId??C.getSignedInUserTenant(p)?.companyId;if(C.getSignedInUser()==null)throw Error("Can't access company details page without signing in...");g.useEffect((()=>{c||a!=="Not-Started"||d==null||(l(!0),n(M(d)))}),[c,a,d,n]),g.useEffect((()=>{o==="Not-Started"&&n(_())}),[o,n]);const u=s=>{e(s)},y=a==="Not-Started"||a==="In-Progress"||o==="Not-Started"||o==="In-Progress";return d!=null&&a==="Error"?m.jsx(F,{onGoHome:()=>t("../",{replace:!0}),onReload:()=>window.location.reload()}):m.jsxs(m.Fragment,{children:[m.jsx(P,{analytics:V,onLoad:s=>s.trackPageLoaded(j.Event.companyPassport,b(i)?"Settings":"Company Passport")}),b(i)?m.jsx(W,{isAppContentDrawerOpen:f,handleDrawerToggle:u}):null,m.jsx(ee,{companyId:d,navigate:t,location:i,isLoading:y,currentTenant:r,isSettings:b(i),onClickMenuIcon:()=>{u(!0)}})]})}export{de as C};
@@ -1,4 +1,4 @@
1
- import{j as I}from"./liveblocks-SKYC1C2A.js";import{a as o}from"./sentry-DZfHa7Ie.js";import{u as P,h as R,g as H,j as C,N as w}from"./core-BxGWoVcT.js";import{TV as q,fF as z,gl as G,pS as V,gM as A,gk as J,gi as M,Uj as Q,gh as O}from"./zeni-epic-state-C7XRcjyb.js";import{u as B,z as E,L as D,G as K,J as W}from"./index-JUFp38yH.js";import{n as X}from"./mui-KBl5-FbY.js";import{P as b,a as _}from"./AccountMappingScreen-CySsJfDd.js";import{t as Y}from"./getLocaleForTenant-B91DyzTP.js";import{g as Z,Q as ee}from"./QBOConnectionScreen-C8KGlTSL.js";import"./recharts-CflkB2e4.js";import"./analytics-CdlFAR7_.js";import"./plaid-YTuVWNGR.js";import"./dnd-4QLQvWVu.js";import"./stripe-cKAAJElX.js";import"./lottie-B7wq19x9.js";import"./lexical-DXD9Kn-N.js";import"./pdf-B0ceY1o5.js";import"./utils-BqbdeqC-.js";import"./MobileAppDrawer-C3tOTTJr.js";import"./InboxNotificationsProvider-XqYApNHe.js";import"./useTaskManagerAccess-BeS_l8Xg.js";import"./accountMappingHelper-C05BGWXi.js";import"./empty-CKa69gT2.js";import"./pdf-lib-CWPynulQ.js";import"./index-BGEGJOhz.js";import"./url-HFE8hMjk.js";import"./index-iq3MsRX8.js";import"./decodeURIComponentSafe-COWOoCD-.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]="82c08a96-00e1-4cbb-b2ec-680ba39193a5",t._sentryDebugIdIdentifier="sentry-dbid-82c08a96-00e1-4cbb-b2ec-680ba39193a5")}catch{}})();const te=X.div`
1
+ import{j as I}from"./liveblocks-BF-IiX2V.js";import{a as o}from"./sentry-DQv7eTqs.js";import{u as P,h as R,g as H,j as C,N as w}from"./core-C1MQ75FC.js";import{TV as q,fF as z,gl as G,pS as V,gM as A,gk as J,gi as M,Uj as Q,gh as O}from"./zeni-epic-state-Dmop9tB7.js";import{u as B,z as E,L as D,G as K,J as W}from"./index-DMDsYekO.js";import{n as X}from"./mui-D4JyxRuO.js";import{P as b,a as _}from"./AccountMappingScreen-i9VnJUfN.js";import{t as Y}from"./getLocaleForTenant-B7a_04KB.js";import{g as Z,Q as ee}from"./QBOConnectionScreen-Bf8b_4PY.js";import"./recharts-BEOxWuh3.js";import"./analytics-Ckbn2qr2.js";import"./plaid-CD2DDkpy.js";import"./dnd-64pfrglk.js";import"./stripe-cKAAJElX.js";import"./lottie-CWNAcXJv.js";import"./lexical-TkcJlpM_.js";import"./pdf-Cj_veg-U.js";import"./utils-G6VVxCSd.js";import"./MobileAppDrawer-nX8kGgUI.js";import"./InboxNotificationsProvider-zG7x1gLM.js";import"./useTaskManagerAccess-CZ3Xfg1w.js";import"./accountMappingHelper-Dr9MEF3a.js";import"./empty-DTjUxrNn.js";import"./pdf-lib-LgS50teK.js";import"./index-DBaQwW7d.js";import"./url-Eifk29FQ.js";import"./index-RA90NjT0.js";import"./decodeURIComponentSafe-BkSrHWOz.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]="82c08a96-00e1-4cbb-b2ec-680ba39193a5",t._sentryDebugIdIdentifier="sentry-dbid-82c08a96-00e1-4cbb-b2ec-680ba39193a5")}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-BF-IiX2V.js";import{z as m}from"./index-DMDsYekO.js";import{g as n}from"./QBOConnectionScreen-Bf8b_4PY.js";import"./sentry-DQv7eTqs.js";import{g as p,N as a}from"./core-C1MQ75FC.js";import"./zeni-epic-state-Dmop9tB7.js";import"./recharts-BEOxWuh3.js";import"./mui-D4JyxRuO.js";import"./analytics-Ckbn2qr2.js";import"./plaid-CD2DDkpy.js";import"./dnd-64pfrglk.js";import"./stripe-cKAAJElX.js";import"./lottie-CWNAcXJv.js";import"./lexical-TkcJlpM_.js";import"./pdf-Cj_veg-U.js";import"./utils-G6VVxCSd.js";import"./empty-DTjUxrNn.js";import"./pdf-lib-LgS50teK.js";import"./index-DBaQwW7d.js";import"./url-Eifk29FQ.js";import"./index-RA90NjT0.js";import"./decodeURIComponentSafe-BkSrHWOz.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-SKYC1C2A.js";import{t as Tt,A as $e}from"./AddressScreen-CI7cz88u.js";import wt from"./NotFoundScreen-DWfgauzD.js";import{a as d,t as Me}from"./sentry-DZfHa7Ie.js";import{h as _e,g as xe,u as se,i as Ee,j as T,N as Q,q as At,l as it,n as Pt,o as H}from"./core-BxGWoVcT.js";import{fF as Y,d_ as Te,dZ as we,bq as Dt,Ua as jt,bR as Bt,pQ as Ft,Bo as Vt,Br as Ut,Vx as Rt,Vy as Lt,lu as Oe,lx as ct,UN as Nt,b$ as Gt,c8 as fe,BS as Ae,BD as $t,Vz as me,BT as dt,Sk as Mt,mH as ut,di as lt,VA as Qt,VB as zt,uE as Kt,UA as Ce,hV as qt,Uz as be,hS as Ht,Gf as Jt,uI as Zt,hK as Wt,hN as Qe,VC as pt,VD as Xt,M5 as Yt,VE as en,M9 as tn,Bu as nn,VF as an,VG as on,ls as sn,lv as rn,C3 as cn,BF as mt,BR as dn,bE as ze,cE as un,C2 as Ke,uX as ln,uL as pn,mz as mn,gG as gn,gF as fn,gE as yn,VH as hn,Bx as Cn,C4 as bn,C7 as Sn,Ca as In,Cg as kn,dj as On}from"./zeni-epic-state-C7XRcjyb.js";import{z as K,o as Pe,S as W,e as vn,p as q,a9 as re,l as g,aF as _n,aj as gt,a2 as xn,O as ft,Q as yt,h as X,_ as ge,V as ve,aG as En,J as qe,v as He,af as Tn,aH as Je,aI as wn,aJ as An}from"./index-JUFp38yH.js";import{n as De}from"./mui-KBl5-FbY.js";import{g as Pn,h as Dn,q as ie}from"./QBOConnectionScreen-C8KGlTSL.js";import{u as jn,a as Bn}from"./useEmailConnectResultRefresh-CJlrix4k.js";import{u as Fn}from"./useChargeCardPusherEvents-DHRgXTbb.js";import"./recharts-CflkB2e4.js";import"./analytics-CdlFAR7_.js";import"./plaid-YTuVWNGR.js";import"./dnd-4QLQvWVu.js";import"./stripe-cKAAJElX.js";import"./lottie-B7wq19x9.js";import"./lexical-DXD9Kn-N.js";import"./pdf-B0ceY1o5.js";import"./utils-BqbdeqC-.js";import"./empty-CKa69gT2.js";import"./pdf-lib-CWPynulQ.js";import"./index-BGEGJOhz.js";import"./url-HFE8hMjk.js";import"./index-iq3MsRX8.js";import"./decodeURIComponentSafe-COWOoCD-.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]="b3599b77-bd64-4803-85fc-1fa8afd8e3a5",e._sentryDebugIdIdentifier="sentry-dbid-b3599b77-bd64-4803-85fc-1fa8afd8e3a5")}catch{}})();const Ze=e=>{switch(e){case"Complete":return"yes";case"Pending Review":case"Incomplete":return"partially";default:return"no"}},Vn=()=>{const e=_e(),l=xe(),i=se(),[a,p]=d.useState(!1),[u,c]=d.useState(!1),{tenantEmailDomain:v}=Ee(),t=K.getSignedInUser(),{useFeatureGate:n}=Pe(),{isFeatureEnabled:C}=n(W.isApAgingFeatureEnabled),{isFeatureEnabled:o}=n(W.isArAgingFeatureEnabled),{isFeatureEnabled:A}=n(W.isReferralFeatureEnabled),{isFeatureEnabled:w}=n(W.isDebitCardFeatureEnabled),k=vn(),O=T((S=>Y(S))),P=T((S=>S.onboardingCustomerViewState.fetchState)),_=O.excludedResources,F=O.companyId??K.getSignedInUserTenant(v)?.companyId;if(t==null)throw Error("Can't access onboarding flow without signing in...");const m=Te(w,O),b=we(O),D=[],U=_?.resources?.find((S=>S.resource==="/reports/top_expenses"))==null,h=_?.resources?.find((S=>S.resource==="/reports/task_card"))==null,r=O?.userRole!=null&&Dt(O?.userRole),x=_?.resources?.find((S=>S.resource==="/bills"))==null&&!r,E=_?.resources?.find((S=>S.resource==="/reimbursements"))==null;U===!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 V=[];C===!1&&V.push("accounts_payable_aging"),o===!1&&V.push("accounts_receivable_aging"),V.push("zeni_accounts_promo_card","treasury_promo_card"),A===!1&&V.push("rewards_card"),k===!1&&V.push("expense_automation_card");const J=jt(S,V);return Bt(J.reportsInOrder.map(($=>({fetchState:$.fetchState,error:$.error})))).fetchState}));d.useEffect((()=>{P!=="Completed"||a||m||b||(p(!0),i(Ft(t.userId,F,O.tenantId,!0,!1,D)))}),[a,P,m,b,t,O.tenantId,i]);const j=d.useRef(!1),N=d.useCallback((()=>{const S={pathnameStackToGoBack:q(l.state?.pathnameStackToGoBack,l.pathname),message:"activation"};e(m?"../../checking":b?"../../cards":"../../dashboard",{state:S})}),[e,l,m,b]),G=d.useCallback((()=>{j.current||(j.current=!0,N())}),[N]);if(d.useEffect((()=>{const S=setTimeout((()=>c(!0)),3e3);return()=>clearTimeout(S)}),[]),d.useEffect((()=>{const S=setTimeout(G,6e3);return()=>clearTimeout(S)}),[G]),d.useEffect((()=>{m||b||!u||f!=="Completed"&&f!=="Error"||G()}),[u,f,m,b,G]),P!=="Completed")return s.jsx(Q,{to:"../"});const L=O.company?.companyOnboardingInfo?.onboardingInfo,ee={timeSinceQuoteSign:L?.onboardingTimeSinceQuoteSigned??"",timeSinceQuoteSignInMinutes:L?.onboardingToQuoteSignMinutes??0,isKybDone: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(_n,{show:!0,onComplete:G})]})},Se=["reading_books","finance_graph","reconciliation","cfo_foundation"],Ie=["llm_fine_tuning","rag_knowledge_graph","personalized_context"],We=(e,l)=>{const i=new Map(e.map((a=>[a.key,a])));return l.map((a=>{return p=i.get(a)?.status,p==="starting"||p==="building"?p:"idle";var p}))},Xe=(e,l)=>{if(e.length===0)return!1;const i=new Map(e.map((a=>[a.key,a])));return l.every((a=>i.get(a)?.status==="ready"))},Ye=De.div`
1
+ import{j as s}from"./liveblocks-BF-IiX2V.js";import{t as Tt,A as $e}from"./AddressScreen-VFwclDOo.js";import wt from"./NotFoundScreen-znPj3CVA.js";import{a as d,t as Me}from"./sentry-DQv7eTqs.js";import{h as _e,g as xe,u as se,i as Ee,j as T,N as Q,q as At,l as it,n as Pt,o as H}from"./core-C1MQ75FC.js";import{fF as Y,d_ as Te,dZ as we,bq as Dt,Ua as jt,bR as Bt,pQ as Ft,Bo as Vt,Br as Ut,Vx as Rt,Vy as Lt,lu as Oe,lx as ct,UN as Nt,b$ as Gt,c8 as fe,BS as Ae,BD as $t,Vz as me,BT as dt,Sk as Mt,mH as ut,di as lt,VA as Qt,VB as zt,uE as Kt,UA as Ce,hV as qt,Uz as be,hS as Ht,Gf as Jt,uI as Zt,hK as Wt,hN as Qe,VC as pt,VD as Xt,M5 as Yt,VE as en,M9 as tn,Bu as nn,VF as an,VG as on,ls as sn,lv as rn,C3 as cn,BF as mt,BR as dn,bE as ze,cE as un,C2 as Ke,uX as ln,uL as pn,mz as mn,gG as gn,gF as fn,gE as yn,VH as hn,Bx as Cn,C4 as bn,C7 as Sn,Ca as In,Cg as kn,dj as On}from"./zeni-epic-state-Dmop9tB7.js";import{z as K,o as Pe,S as W,e as vn,p as q,a9 as re,l as g,aF as _n,aj as gt,a2 as xn,O as ft,Q as yt,h as X,_ as ge,V as ve,aG as En,J as qe,v as He,af as Tn,aH as Je,aI as wn,aJ as An}from"./index-DMDsYekO.js";import{n as De}from"./mui-D4JyxRuO.js";import{g as Pn,h as Dn,q as ie}from"./QBOConnectionScreen-Bf8b_4PY.js";import{u as jn,a as Bn}from"./useEmailConnectResultRefresh-GEPB7d7i.js";import{u as Fn}from"./useChargeCardPusherEvents-DFAQ6Tan.js";import"./recharts-BEOxWuh3.js";import"./analytics-Ckbn2qr2.js";import"./plaid-CD2DDkpy.js";import"./dnd-64pfrglk.js";import"./stripe-cKAAJElX.js";import"./lottie-CWNAcXJv.js";import"./lexical-TkcJlpM_.js";import"./pdf-Cj_veg-U.js";import"./utils-G6VVxCSd.js";import"./empty-DTjUxrNn.js";import"./pdf-lib-LgS50teK.js";import"./index-DBaQwW7d.js";import"./url-Eifk29FQ.js";import"./index-RA90NjT0.js";import"./decodeURIComponentSafe-BkSrHWOz.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]="b3599b77-bd64-4803-85fc-1fa8afd8e3a5",e._sentryDebugIdIdentifier="sentry-dbid-b3599b77-bd64-4803-85fc-1fa8afd8e3a5")}catch{}})();const Ze=e=>{switch(e){case"Complete":return"yes";case"Pending Review":case"Incomplete":return"partially";default:return"no"}},Vn=()=>{const e=_e(),l=xe(),i=se(),[a,p]=d.useState(!1),[u,c]=d.useState(!1),{tenantEmailDomain:v}=Ee(),t=K.getSignedInUser(),{useFeatureGate:n}=Pe(),{isFeatureEnabled:C}=n(W.isApAgingFeatureEnabled),{isFeatureEnabled:o}=n(W.isArAgingFeatureEnabled),{isFeatureEnabled:A}=n(W.isReferralFeatureEnabled),{isFeatureEnabled:w}=n(W.isDebitCardFeatureEnabled),k=vn(),O=T((S=>Y(S))),P=T((S=>S.onboardingCustomerViewState.fetchState)),_=O.excludedResources,F=O.companyId??K.getSignedInUserTenant(v)?.companyId;if(t==null)throw Error("Can't access onboarding flow without signing in...");const m=Te(w,O),b=we(O),D=[],U=_?.resources?.find((S=>S.resource==="/reports/top_expenses"))==null,h=_?.resources?.find((S=>S.resource==="/reports/task_card"))==null,r=O?.userRole!=null&&Dt(O?.userRole),x=_?.resources?.find((S=>S.resource==="/bills"))==null&&!r,E=_?.resources?.find((S=>S.resource==="/reimbursements"))==null;U===!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 V=[];C===!1&&V.push("accounts_payable_aging"),o===!1&&V.push("accounts_receivable_aging"),V.push("zeni_accounts_promo_card","treasury_promo_card"),A===!1&&V.push("rewards_card"),k===!1&&V.push("expense_automation_card");const J=jt(S,V);return Bt(J.reportsInOrder.map(($=>({fetchState:$.fetchState,error:$.error})))).fetchState}));d.useEffect((()=>{P!=="Completed"||a||m||b||(p(!0),i(Ft(t.userId,F,O.tenantId,!0,!1,D)))}),[a,P,m,b,t,O.tenantId,i]);const j=d.useRef(!1),N=d.useCallback((()=>{const S={pathnameStackToGoBack:q(l.state?.pathnameStackToGoBack,l.pathname),message:"activation"};e(m?"../../checking":b?"../../cards":"../../dashboard",{state:S})}),[e,l,m,b]),G=d.useCallback((()=>{j.current||(j.current=!0,N())}),[N]);if(d.useEffect((()=>{const S=setTimeout((()=>c(!0)),3e3);return()=>clearTimeout(S)}),[]),d.useEffect((()=>{const S=setTimeout(G,6e3);return()=>clearTimeout(S)}),[G]),d.useEffect((()=>{m||b||!u||f!=="Completed"&&f!=="Error"||G()}),[u,f,m,b,G]),P!=="Completed")return s.jsx(Q,{to:"../"});const L=O.company?.companyOnboardingInfo?.onboardingInfo,ee={timeSinceQuoteSign:L?.onboardingTimeSinceQuoteSigned??"",timeSinceQuoteSignInMinutes:L?.onboardingToQuoteSignMinutes??0,isKybDone: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(_n,{show:!0,onComplete:G})]})},Se=["reading_books","finance_graph","reconciliation","cfo_foundation"],Ie=["llm_fine_tuning","rag_knowledge_graph","personalized_context"],We=(e,l)=>{const i=new Map(e.map((a=>[a.key,a])));return l.map((a=>{return p=i.get(a)?.status,p==="starting"||p==="building"?p:"idle";var p}))},Xe=(e,l)=>{if(e.length===0)return!1;const i=new Map(e.map((a=>[a.key,a])));return l.every((a=>i.get(a)?.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-SKYC1C2A.js";import{i as q,j as S,g as H,u as z,h as J,l as oe,k as oa,n as ft,o as O,N as In}from"./core-BxGWoVcT.js";import{fF as L,VT as Je,bE as sa,br as Te,Xe as En,ka as Tn,Xf as Yt,Xg as wn,kd as gt,Xh as We,Xi as xn,ki as Dn,Xj as Gt,Xk as Pn,km as bt,Xl as Ze,Xm as Fn,Xn as On,Wb as jn,lo as Rn,Xo as Mn,bn as et,Xp as ra,WR as ue,bc as ia,lC as ca,ll as la,WT as me,WS as ne,fE as da,ga as Bn,gq as Ct,Xq as Un,Xr as Ln,Xs as ua,Xt as Oe,DZ as Ue,D_ as Le,Em as we,Eg as pe,E2 as Ve,Xu as Vn,b$ as Ye,Xv as Yn,Xw as Gn,Xx as ma,Xy as je,Xz as Nn,ei as tt,Aa as pa,XA as Xn,XB as ha,XC as $n,XD as zn,XE as Kn,XF as _t,UP as kt,ua as xe,l$ as De,Ew as yt,Ah as qn,Ao as Qn,XG as Wn,XH as Zn,D$ as Nt,XI as Hn,Ad as Ie,A8 as fa,XJ as be,XK as Xt,XL as Jn,XM as vt,UO as At,Cl as ga,XN as eo,XO as ba,XP as to,XQ as ao,XR as no,XS as It,CA as oo,CH as so,XT as ro,XU as io,E1 as $t,XV as co,Cj as Ca,XW as Ce,XX as zt,XY as lo,bq as Sa,EB as _a,XZ as uo,X_ as ka,X$ as mo,Y0 as po,Y1 as ho,Y2 as Et,Et as fo,Ev as go,Y3 as bo,Y4 as Co,E0 as Kt,Y5 as So,Ez as ya,Y6 as Se,Y7 as qt,Y8 as _o,Y9 as ko,Ya as va,lQ as Aa,pX as Ia,lV as Ea,pV as Ta,pU as wa,pT as xa,BI as yo,dc as vo,pQ as Ao,Ua as Io,q5 as Eo,Yb as To,Yc as wo,Yd as xo,b5 as Tt,p$ as Do,ic as Po,gI as Fo,p_ as Oo,le as jo,pY as Ro,pW as Mo,d_ as Bo,dZ as Uo}from"./zeni-epic-state-C7XRcjyb.js";import{z as V,aw as se,p as j,l as w,G as Q,bc as Lo,at as Ge,a9 as Ne,bd as Da,V as X,be as Vo,bf as Pa,E as Yo,bg as Go,bh as No,a as Fa,a2 as Oa,d as ja,as as Xo,bi as $o,ap as zo,o as Pe,bj as Ra,x as ce,bk as Ma,bl as Ba,av as Ua,bm as Ko,aj as Xe,Q as $e,S as Y,bn as qo,M as Qo,bo as Wo,e as Zo,h as Ho,a5 as Jo,ar as es,bp as ts,bq as as,br as ns,bs as Ee}from"./index-JUFp38yH.js";import{n as wt}from"./mui-KBl5-FbY.js";import{a as b}from"./sentry-DZfHa7Ie.js";import{w as La}from"./withTransactionSidePanel-4ZSXJ3d_.js";import{c as Va,t as Fe,f as he,b as xt,a as Dt,v as os}from"./routePaths-Lj2I6Wyf.js";import{u as re}from"./useAskAiCfoHostNavButtonProps-D7B3mwZq.js";import Be from"./NotFoundScreen-DWfgauzD.js";import{u as Pt}from"./useInitialThreadRequest-Da_Q00AD.js";import{t as Ya}from"./analyticsHelper-DVgmqXUy.js";import{C as ss}from"./CompanyPassportScreen-BjEKAZ2B.js";import{u as rs}from"./useAiCfoDashboardSuggestedQuestionsChips-DYwdlOoi.js";import{F as is}from"./FeaturePreviewScreen-BCDt8NVH.js";import"./recharts-CflkB2e4.js";import"./analytics-CdlFAR7_.js";import"./plaid-YTuVWNGR.js";import"./dnd-4QLQvWVu.js";import"./stripe-cKAAJElX.js";import"./lottie-B7wq19x9.js";import"./lexical-DXD9Kn-N.js";import"./pdf-B0ceY1o5.js";import"./utils-BqbdeqC-.js";import"./TransactionDetailScreen-1pyTFZv_.js";import"./decodeURIComponentSafe-COWOoCD-.js";import"./expenseAutomationHelper-CY9qPhLr.js";import"./stripSplatSuffix-pcOF7B7F.js";import"./MobileAppDrawer-C3tOTTJr.js";import"./InboxNotificationsProvider-XqYApNHe.js";import"./useTaskManagerAccess-BeS_l8Xg.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="83bbb822-6af0-4267-b451-f3151ecd9e01",e._sentryDebugIdIdentifier="sentry-dbid-83bbb822-6af0-4267-b451-f3151ecd9e01")}catch{}})();const cs=La((function({openTransactionPanel:e,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n}){const{vendorId:o,reportDate:r}=q(),s=V.getSignedInUser(),i=S((E=>E.tenantState.currentTenantId)),l=S((E=>L(E))),{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:`${se}/agingDetailedReport`,timezone:Je()})),[]),u=b.useMemo((()=>r!=null?sa(r):Te()),[r]),C=z(),g=J(),k=S((E=>En(E,u,o))),I=b.useCallback((()=>{o!=null&&k.fetchState!=="In-Progress"&&k.fetchState!=="Completed"&&C(Tn(o,u))}),[u]),v=b.useCallback((()=>{g("../../",{relative:"path"})}),[]),_=b.useCallback(((E,P)=>{C(Yt({sortKey:E,sortOrder:P}))}),[]),T=b.useCallback((E=>{C(Yt({downloadState:E}))}),[]),B=b.useCallback((E=>{if(e)e(E.transactionId,E.transactionType);else if(m!=null){const P=Va({id:E.transactionId,type:E.transactionType},m);g(P);const y=j(p.state?.pathnameStackToGoBack,p.pathname);g(P,{state:{pathnameStackToGoBack:y}})}}),[m,e]),D=b.useCallback((()=>{k.vendor!=null&&w.trackApAgingDetail("AP Aging",u.format(Q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),k.vendor.id,k.vendor.name)}),[k.vendor,u]);return b.useEffect((()=>{I()}),[]),b.useEffect((()=>{k.fetchState==="Completed"&&D()}),[D,k.fetchState]),d.jsx(Lo,{apAgingDetail:k,downloadParams:c,reportDate:u,analytics:w,onTransactionClick:B,onReload:I,onBackClick:v,onColumnSortConfigChanged:_,updateDownloadStateHandler:T,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n})})),ls=()=>{const e=z(),a=J(),t=S((_=>wn(_))),{isAiCfoAccessEnabled:n,onAskAiCfoClick:o}=re({mobileExploreReferrer:"AP Aging"});Ge({isDataReady:t.fetchState==="Completed"});const r=V.getSignedInUser(),s=S((_=>_.tenantState.currentTenantId)),i=S((_=>L(_))),l=i?.companyName??"",m={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:s??""},p=b.useMemo((()=>({authParams:m,companyName:l,downloadEndPoint:`${se}/agingReport`,timezone:Je()})),[]),h=t.apAgingUIState.selectedDate??Te(),f=b.useCallback((()=>{t.fetchState!=="In-Progress"&&t.fetchState!=="Completed"&&e(gt(h))}),[]);b.useEffect((()=>{f()}),[]);const c=b.useCallback((()=>{a("../",{relative:"path"})}),[]),u=b.useCallback((_=>{e(We({searchString:_}))}),[]),C=b.useCallback(((_,T)=>{e(We({sortKey:T,sortOrder:_}))}),[]),g=b.useCallback((_=>{a(`./${_}/${h.format(Q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`)}),[h]),k=b.useCallback((_=>{e(We({downloadState:_}))}),[]),I=b.useCallback(((_,T)=>{}),[]),v=b.useCallback(((_,T)=>{e(We({selectedDate:_,agingDateSelectionType:T})),e(gt(_))}),[]);return d.jsxs(d.Fragment,{children:[t.fetchState==="Completed"?d.jsx(Ne,{analytics:w,onLoad:_=>_.trackPageLoaded(X.Event.agingReport,"AP Aging")}):null,d.jsx(Da,{uiState:t.apAgingUIState,report:t,downloadParams:p,analytics:w,onReloadReport:f,onBackClick:c,onSearchTextChange:u,onSortOrderChange:C,onEntityNameClick:g,updateDownloadStateHandler:k,onSelectedDateChanged:v,onNodeCollapseToggled:I,isAiCfoAccessEnabled:n,onAskAiCfoClick:o})]})},ds=La((function({openTransactionPanel:e,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n}){const{customerId:o,reportDate:r}=q(),s=V.getSignedInUser(),i=S((D=>L(D))),{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:`${se}/agingDetailedReport`,timezone:Je()})),[]),c=b.useMemo((()=>r!=null?sa(r):Te()),[r]),u=z(),C=J(),g=S((D=>xn(D,c,o))),k=b.useCallback((()=>{o!=null&&g.fetchState!=="In-Progress"&&g.fetchState!=="Completed"&&u(Dn(o,c))}),[c]),I=b.useCallback((()=>{C("../../",{relative:"path"})}),[]),v=b.useCallback(((D,E)=>{u(Gt({sortKey:D,sortOrder:E}))}),[]),_=b.useCallback((D=>{u(Gt({downloadState:D}))}),[]),T=b.useCallback((D=>{if(e)e(D.transactionId,D.transactionType);else if(l!=null){const E=Va({id:D.transactionId,type:D.transactionType},l);C(E);const P=j(m.state?.pathnameStackToGoBack,m.pathname);C(E,{state:{pathnameStackToGoBack:P}})}}),[l,e]),B=b.useCallback((()=>{g.customer!=null&&w.trackArAgingDetail("AR Aging",c.format(Q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),g.customer.id,g.customer.name)}),[g.customer,c]);return b.useEffect((()=>{k()}),[]),b.useEffect((()=>{g.fetchState==="Completed"&&B()}),[g.fetchState,B]),d.jsx(Vo,{arAgingDetail:g,downloadParams:f,reportDate:c,analytics:w,onTransactionClick:T,onReload:k,onBackClick:I,onColumnSortConfigChanged:v,updateDownloadStateHandler:_,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n})})),us=()=>{const e=z(),a=J(),t=S((v=>Pn(v))),{isAiCfoAccessEnabled:n,onAskAiCfoClick:o}=re({mobileExploreReferrer:"AR Aging"});Ge({isDataReady:t.fetchState==="Completed"});const r=V.getSignedInUser(),s=S((v=>L(v))),i=s.companyName,l={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:s.tenantId},m=b.useMemo((()=>({authParams:l,companyName:i,downloadEndPoint:`${se}/agingReport`,timezone:Je()})),[]),p=t.arAgingUIState.selectedDate??Te(),h=b.useCallback((()=>{t.fetchState!=="In-Progress"&&t.fetchState!=="Completed"&&e(bt(p))}),[]);b.useEffect((()=>{h()}),[]);const f=b.useCallback((()=>{a("../",{relative:"path"})}),[]),c=b.useCallback((v=>{e(Ze({searchString:v}))}),[]),u=b.useCallback(((v,_)=>{e(Ze({sortKey:_,sortOrder:v}))}),[]),C=b.useCallback((v=>{a(`./${v}/${p.format(Q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`)}),[p]),g=b.useCallback((v=>{e(Ze({downloadState:v}))}),[]),k=b.useCallback(((v,_)=>{e(Ze({selectedDate:v,agingDateSelectionType:_})),e(bt(v))}),[]),I=b.useCallback(((v,_)=>{e(Fn({nodeId:v,isCollapsed:_}))}),[]);return d.jsxs(d.Fragment,{children:[t.fetchState==="Completed"?d.jsx(Ne,{analytics:w,onLoad:v=>v.trackPageLoaded(X.Event.agingReport,"AR Aging")}):null,d.jsx(Da,{uiState:t.arAgingUIState,report:t,downloadParams:m,analytics:w,onReloadReport:h,onBackClick:f,onSearchTextChange:c,onSortOrderChange:u,onEntityNameClick:C,updateDownloadStateHandler:g,onSelectedDateChanged:k,onNodeCollapseToggled:I,isAiCfoAccessEnabled:n,onAskAiCfoClick:o})]})},Ga=(e,a)=>({key:a,title:e.accountName,amount:e.balance?.available,logoUri:e.logo?.toString(),source:e});function Na(e,a){const t=jn(a.firstMonthOfFY);return{onItemClick:(n,o)=>{const r=o.accountName===""?o.accountDescription:o.accountName,s=Fe(a.tenantEmailDomain,o.accountId,o.accountType,r,"quarter",t,!1),i=j(a.location.state?.pathnameStackToGoBack,a.location.pathname);a.navigate(s,{state:{pathnameStackToGoBack:i,referrer:a.referrerType}})},onSetAccountsStatementDate:(n,o)=>{e(Rn(n,o))}}}const ms=oe((function(e){const a=On(e).accountsInOrder.map(((t,n)=>Ga(t,n)));return{sectionTitle:Q.getLocalizedStrings().balanceCard.cashBalanceSectionTitle,transactionArray:a,fetchState:e.cashBalanceState.fetchState,analytics:w}}),Na)(Pa),ps=oe((function(e){const a=Mn(e).accountsInOrder.map(((o,r)=>Ga(o,r))),t=V.getSignedInUser(),n=et(t);return{sectionTitle:Q.getLocalizedStrings().balanceCard.cardBalanceSectionTitle,transactionArray:a,isZeniUser:n,fetchState:e.cardBalanceState.fetchState,analytics:w}}),Na)(Pa);function hs(){const e=J(),a=H(),{tenantEmailDomain:t}=q(),n=S((o=>L(o).company?.companyInfo.firstMonthOfFY??1));return S((o=>o.cashBalanceState.fetchState))==="Error"?d.jsx(Be,{}):d.jsx(ms,{tenantEmailDomain:t,location:a,referrerType:"Cash Balance",navigate:e,firstMonthOfFY:n})}function fs(){const e=J(),a=H(),{tenantEmailDomain:t}=q(),n=S((o=>L(o).company?.companyInfo.firstMonthOfFY??1));return S((o=>o.cardBalanceState.fetchState))==="Error"?d.jsx(Be,{}):d.jsx(ps,{tenantEmailDomain:t,location:a,referrerType:"Card Balance",navigate:e,firstMonthOfFY:n})}const gs=wt.div`
1
+ import{j as d}from"./liveblocks-BF-IiX2V.js";import{i as q,j as S,g as H,u as z,h as J,l as oe,k as oa,n as ft,o as O,N as In}from"./core-C1MQ75FC.js";import{fF as L,VT as Je,bE as sa,br as Te,Xe as En,ka as Tn,Xf as Yt,Xg as wn,kd as gt,Xh as We,Xi as xn,ki as Dn,Xj as Gt,Xk as Pn,km as bt,Xl as Ze,Xm as Fn,Xn as On,Wb as jn,lo as Rn,Xo as Mn,bn as et,Xp as ra,WR as ue,bc as ia,lC as ca,ll as la,WT as me,WS as ne,fE as da,ga as Bn,gq as Ct,Xq as Un,Xr as Ln,Xs as ua,Xt as Oe,DZ as Ue,D_ as Le,Em as we,Eg as pe,E2 as Ve,Xu as Vn,b$ as Ye,Xv as Yn,Xw as Gn,Xx as ma,Xy as je,Xz as Nn,ei as tt,Aa as pa,XA as Xn,XB as ha,XC as $n,XD as zn,XE as Kn,XF as _t,UP as kt,ua as xe,l$ as De,Ew as yt,Ah as qn,Ao as Qn,XG as Wn,XH as Zn,D$ as Nt,XI as Hn,Ad as Ie,A8 as fa,XJ as be,XK as Xt,XL as Jn,XM as vt,UO as At,Cl as ga,XN as eo,XO as ba,XP as to,XQ as ao,XR as no,XS as It,CA as oo,CH as so,XT as ro,XU as io,E1 as $t,XV as co,Cj as Ca,XW as Ce,XX as zt,XY as lo,bq as Sa,EB as _a,XZ as uo,X_ as ka,X$ as mo,Y0 as po,Y1 as ho,Y2 as Et,Et as fo,Ev as go,Y3 as bo,Y4 as Co,E0 as Kt,Y5 as So,Ez as ya,Y6 as Se,Y7 as qt,Y8 as _o,Y9 as ko,Ya as va,lQ as Aa,pX as Ia,lV as Ea,pV as Ta,pU as wa,pT as xa,BI as yo,dc as vo,pQ as Ao,Ua as Io,q5 as Eo,Yb as To,Yc as wo,Yd as xo,b5 as Tt,p$ as Do,ic as Po,gI as Fo,p_ as Oo,le as jo,pY as Ro,pW as Mo,d_ as Bo,dZ as Uo}from"./zeni-epic-state-Dmop9tB7.js";import{z as V,aw as se,p as j,l as w,G as Q,bc as Lo,at as Ge,a9 as Ne,bd as Da,V as X,be as Vo,bf as Pa,E as Yo,bg as Go,bh as No,a as Fa,a2 as Oa,d as ja,as as Xo,bi as $o,ap as zo,o as Pe,bj as Ra,x as ce,bk as Ma,bl as Ba,av as Ua,bm as Ko,aj as Xe,Q as $e,S as Y,bn as qo,M as Qo,bo as Wo,e as Zo,h as Ho,a5 as Jo,ar as es,bp as ts,bq as as,br as ns,bs as Ee}from"./index-DMDsYekO.js";import{n as wt}from"./mui-D4JyxRuO.js";import{a as b}from"./sentry-DQv7eTqs.js";import{w as La}from"./withTransactionSidePanel-BNIz03mj.js";import{c as Va,t as Fe,f as he,b as xt,a as Dt,v as os}from"./routePaths-DtiHE0tS.js";import{u as re}from"./useAskAiCfoHostNavButtonProps-BPjVLeQ1.js";import Be from"./NotFoundScreen-znPj3CVA.js";import{u as Pt}from"./useInitialThreadRequest-B7Oi83EI.js";import{t as Ya}from"./analyticsHelper-DsmnThaa.js";import{C as ss}from"./CompanyPassportScreen-C4Q98a-_.js";import{u as rs}from"./useAiCfoDashboardSuggestedQuestionsChips-yFi8Syac.js";import{F as is}from"./FeaturePreviewScreen-C-uktVbl.js";import"./recharts-BEOxWuh3.js";import"./analytics-Ckbn2qr2.js";import"./plaid-CD2DDkpy.js";import"./dnd-64pfrglk.js";import"./stripe-cKAAJElX.js";import"./lottie-CWNAcXJv.js";import"./lexical-TkcJlpM_.js";import"./pdf-Cj_veg-U.js";import"./utils-G6VVxCSd.js";import"./TransactionDetailScreen-DiUMYJym.js";import"./decodeURIComponentSafe-BkSrHWOz.js";import"./expenseAutomationHelper-VfFbXlTC.js";import"./stripSplatSuffix-CF6NUsXZ.js";import"./MobileAppDrawer-nX8kGgUI.js";import"./InboxNotificationsProvider-zG7x1gLM.js";import"./useTaskManagerAccess-CZ3Xfg1w.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="83bbb822-6af0-4267-b451-f3151ecd9e01",e._sentryDebugIdIdentifier="sentry-dbid-83bbb822-6af0-4267-b451-f3151ecd9e01")}catch{}})();const cs=La((function({openTransactionPanel:e,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n}){const{vendorId:o,reportDate:r}=q(),s=V.getSignedInUser(),i=S((E=>E.tenantState.currentTenantId)),l=S((E=>L(E))),{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:`${se}/agingDetailedReport`,timezone:Je()})),[]),u=b.useMemo((()=>r!=null?sa(r):Te()),[r]),C=z(),g=J(),k=S((E=>En(E,u,o))),I=b.useCallback((()=>{o!=null&&k.fetchState!=="In-Progress"&&k.fetchState!=="Completed"&&C(Tn(o,u))}),[u]),v=b.useCallback((()=>{g("../../",{relative:"path"})}),[]),_=b.useCallback(((E,P)=>{C(Yt({sortKey:E,sortOrder:P}))}),[]),T=b.useCallback((E=>{C(Yt({downloadState:E}))}),[]),B=b.useCallback((E=>{if(e)e(E.transactionId,E.transactionType);else if(m!=null){const P=Va({id:E.transactionId,type:E.transactionType},m);g(P);const y=j(p.state?.pathnameStackToGoBack,p.pathname);g(P,{state:{pathnameStackToGoBack:y}})}}),[m,e]),D=b.useCallback((()=>{k.vendor!=null&&w.trackApAgingDetail("AP Aging",u.format(Q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),k.vendor.id,k.vendor.name)}),[k.vendor,u]);return b.useEffect((()=>{I()}),[]),b.useEffect((()=>{k.fetchState==="Completed"&&D()}),[D,k.fetchState]),d.jsx(Lo,{apAgingDetail:k,downloadParams:c,reportDate:u,analytics:w,onTransactionClick:B,onReload:I,onBackClick:v,onColumnSortConfigChanged:_,updateDownloadStateHandler:T,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n})})),ls=()=>{const e=z(),a=J(),t=S((_=>wn(_))),{isAiCfoAccessEnabled:n,onAskAiCfoClick:o}=re({mobileExploreReferrer:"AP Aging"});Ge({isDataReady:t.fetchState==="Completed"});const r=V.getSignedInUser(),s=S((_=>_.tenantState.currentTenantId)),i=S((_=>L(_))),l=i?.companyName??"",m={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:s??""},p=b.useMemo((()=>({authParams:m,companyName:l,downloadEndPoint:`${se}/agingReport`,timezone:Je()})),[]),h=t.apAgingUIState.selectedDate??Te(),f=b.useCallback((()=>{t.fetchState!=="In-Progress"&&t.fetchState!=="Completed"&&e(gt(h))}),[]);b.useEffect((()=>{f()}),[]);const c=b.useCallback((()=>{a("../",{relative:"path"})}),[]),u=b.useCallback((_=>{e(We({searchString:_}))}),[]),C=b.useCallback(((_,T)=>{e(We({sortKey:T,sortOrder:_}))}),[]),g=b.useCallback((_=>{a(`./${_}/${h.format(Q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`)}),[h]),k=b.useCallback((_=>{e(We({downloadState:_}))}),[]),I=b.useCallback(((_,T)=>{}),[]),v=b.useCallback(((_,T)=>{e(We({selectedDate:_,agingDateSelectionType:T})),e(gt(_))}),[]);return d.jsxs(d.Fragment,{children:[t.fetchState==="Completed"?d.jsx(Ne,{analytics:w,onLoad:_=>_.trackPageLoaded(X.Event.agingReport,"AP Aging")}):null,d.jsx(Da,{uiState:t.apAgingUIState,report:t,downloadParams:p,analytics:w,onReloadReport:f,onBackClick:c,onSearchTextChange:u,onSortOrderChange:C,onEntityNameClick:g,updateDownloadStateHandler:k,onSelectedDateChanged:v,onNodeCollapseToggled:I,isAiCfoAccessEnabled:n,onAskAiCfoClick:o})]})},ds=La((function({openTransactionPanel:e,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n}){const{customerId:o,reportDate:r}=q(),s=V.getSignedInUser(),i=S((D=>L(D))),{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:`${se}/agingDetailedReport`,timezone:Je()})),[]),c=b.useMemo((()=>r!=null?sa(r):Te()),[r]),u=z(),C=J(),g=S((D=>xn(D,c,o))),k=b.useCallback((()=>{o!=null&&g.fetchState!=="In-Progress"&&g.fetchState!=="Completed"&&u(Dn(o,c))}),[c]),I=b.useCallback((()=>{C("../../",{relative:"path"})}),[]),v=b.useCallback(((D,E)=>{u(Gt({sortKey:D,sortOrder:E}))}),[]),_=b.useCallback((D=>{u(Gt({downloadState:D}))}),[]),T=b.useCallback((D=>{if(e)e(D.transactionId,D.transactionType);else if(l!=null){const E=Va({id:D.transactionId,type:D.transactionType},l);C(E);const P=j(m.state?.pathnameStackToGoBack,m.pathname);C(E,{state:{pathnameStackToGoBack:P}})}}),[l,e]),B=b.useCallback((()=>{g.customer!=null&&w.trackArAgingDetail("AR Aging",c.format(Q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),g.customer.id,g.customer.name)}),[g.customer,c]);return b.useEffect((()=>{k()}),[]),b.useEffect((()=>{g.fetchState==="Completed"&&B()}),[g.fetchState,B]),d.jsx(Vo,{arAgingDetail:g,downloadParams:f,reportDate:c,analytics:w,onTransactionClick:T,onReload:k,onBackClick:I,onColumnSortConfigChanged:v,updateDownloadStateHandler:_,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n})})),us=()=>{const e=z(),a=J(),t=S((v=>Pn(v))),{isAiCfoAccessEnabled:n,onAskAiCfoClick:o}=re({mobileExploreReferrer:"AR Aging"});Ge({isDataReady:t.fetchState==="Completed"});const r=V.getSignedInUser(),s=S((v=>L(v))),i=s.companyName,l={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:s.tenantId},m=b.useMemo((()=>({authParams:l,companyName:i,downloadEndPoint:`${se}/agingReport`,timezone:Je()})),[]),p=t.arAgingUIState.selectedDate??Te(),h=b.useCallback((()=>{t.fetchState!=="In-Progress"&&t.fetchState!=="Completed"&&e(bt(p))}),[]);b.useEffect((()=>{h()}),[]);const f=b.useCallback((()=>{a("../",{relative:"path"})}),[]),c=b.useCallback((v=>{e(Ze({searchString:v}))}),[]),u=b.useCallback(((v,_)=>{e(Ze({sortKey:_,sortOrder:v}))}),[]),C=b.useCallback((v=>{a(`./${v}/${p.format(Q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`)}),[p]),g=b.useCallback((v=>{e(Ze({downloadState:v}))}),[]),k=b.useCallback(((v,_)=>{e(Ze({selectedDate:v,agingDateSelectionType:_})),e(bt(v))}),[]),I=b.useCallback(((v,_)=>{e(Fn({nodeId:v,isCollapsed:_}))}),[]);return d.jsxs(d.Fragment,{children:[t.fetchState==="Completed"?d.jsx(Ne,{analytics:w,onLoad:v=>v.trackPageLoaded(X.Event.agingReport,"AR Aging")}):null,d.jsx(Da,{uiState:t.arAgingUIState,report:t,downloadParams:m,analytics:w,onReloadReport:h,onBackClick:f,onSearchTextChange:c,onSortOrderChange:u,onEntityNameClick:C,updateDownloadStateHandler:g,onSelectedDateChanged:k,onNodeCollapseToggled:I,isAiCfoAccessEnabled:n,onAskAiCfoClick:o})]})},Ga=(e,a)=>({key:a,title:e.accountName,amount:e.balance?.available,logoUri:e.logo?.toString(),source:e});function Na(e,a){const t=jn(a.firstMonthOfFY);return{onItemClick:(n,o)=>{const r=o.accountName===""?o.accountDescription:o.accountName,s=Fe(a.tenantEmailDomain,o.accountId,o.accountType,r,"quarter",t,!1),i=j(a.location.state?.pathnameStackToGoBack,a.location.pathname);a.navigate(s,{state:{pathnameStackToGoBack:i,referrer:a.referrerType}})},onSetAccountsStatementDate:(n,o)=>{e(Rn(n,o))}}}const ms=oe((function(e){const a=On(e).accountsInOrder.map(((t,n)=>Ga(t,n)));return{sectionTitle:Q.getLocalizedStrings().balanceCard.cashBalanceSectionTitle,transactionArray:a,fetchState:e.cashBalanceState.fetchState,analytics:w}}),Na)(Pa),ps=oe((function(e){const a=Mn(e).accountsInOrder.map(((o,r)=>Ga(o,r))),t=V.getSignedInUser(),n=et(t);return{sectionTitle:Q.getLocalizedStrings().balanceCard.cardBalanceSectionTitle,transactionArray:a,isZeniUser:n,fetchState:e.cardBalanceState.fetchState,analytics:w}}),Na)(Pa);function hs(){const e=J(),a=H(),{tenantEmailDomain:t}=q(),n=S((o=>L(o).company?.companyInfo.firstMonthOfFY??1));return S((o=>o.cashBalanceState.fetchState))==="Error"?d.jsx(Be,{}):d.jsx(ms,{tenantEmailDomain:t,location:a,referrerType:"Cash Balance",navigate:e,firstMonthOfFY:n})}function fs(){const e=J(),a=H(),{tenantEmailDomain:t}=q(),n=S((o=>L(o).company?.companyInfo.firstMonthOfFY??1));return S((o=>o.cardBalanceState.fetchState))==="Error"?d.jsx(Be,{}):d.jsx(ps,{tenantEmailDomain:t,location:a,referrerType:"Card Balance",navigate:e,firstMonthOfFY:n})}const gs=wt.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -1 +1 @@
1
- import{j as v}from"./liveblocks-SKYC1C2A.js";import{a as u}from"./sentry-DZfHa7Ie.js";import{u as y,j as b,l as w,g as A,N}from"./core-BxGWoVcT.js";import{TV as U,fF as _,gl as k,TW as L,pS as R,TX as z}from"./zeni-epic-state-C7XRcjyb.js";import{u as j,z as f,L as C,t as I,G as O,b as $}from"./index-JUFp38yH.js";import"./mui-KBl5-FbY.js";import{t as P}from"./getLocaleForTenant-B91DyzTP.js";import"./recharts-CflkB2e4.js";import"./analytics-CdlFAR7_.js";import"./plaid-YTuVWNGR.js";import"./dnd-4QLQvWVu.js";import"./stripe-cKAAJElX.js";import"./lottie-B7wq19x9.js";import"./lexical-DXD9Kn-N.js";import"./pdf-B0ceY1o5.js";import"./utils-BqbdeqC-.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]="0375f4de-e96c-4a0c-97b2-e5716fad0b6c",t._sentryDebugIdIdentifier="sentry-dbid-0375f4de-e96c-4a0c-97b2-e5716fad0b6c")}catch{}})();const G=w((function(t){return{fetchState:t.tenantState.fetchState,activeTenantFetchState:t.tenantState.activeTenantFetchState.fetchState,currentTenant:_(t),tenantsInOrder:z(t).tenantsInOrder}}))((function({fetchState:t,activeTenantFetchState:s,currentTenant:o,tenantsInOrder:h}){const r=A(),p=new URLSearchParams(r.search);if(o==null||t!=="Completed"&&s!=="Completed")return null;{let m="";const n=h.map((l=>l.tenantEmailDomain)),i=r.state?.origin,a=r.state?.queryParams;let c=`../${o.tenantEmailDomain}`,d=null,e=!1,g=null,S=null;const T=E(r.pathname);if(T!=null)c=`../${o.tenantEmailDomain}/${T}`,m="comingFromV2UrlPath",T==="ai-cfo/explore"&&(d=p.get("question")?.replace(/^["']|["']$/g,"")??null,e=p.get("should_submit")==="true");else if(i!=null)if(n.reduce(((l,x)=>l||i.split("/").find((D=>D===x))!=null),!1))c=i,i.includes("ai-cfo")&&a!=null&&(g=a.aiCfoRef??null,S=a.aiCfoEmailRefId??null);else{const l=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 F=$(c,p);return v.jsx(N,{to:F,replace:!0,state:{...r.state,origin:"",message:m,aiCfoInitialQuestion:d,aiCfoShouldSubmit:e,aiCfoRef:g,aiCfoEmailRefId:S}})}}));function oe(){const t=y(),{setLoading:s,clearAllLoading:o}=j(),h=u.useRef(!1),r=u.useRef(!1),p=u.useRef(null),m=b((e=>U(e))),n=b((e=>e.tenantState.fetchState)),i=b((e=>e.tenantState.error)),a=b((e=>e.tenantState.activeTenantFetchState.fetchState)),c=b((e=>_(e))),d=f.getSignedInUser();return u.useLayoutEffect((()=>{const e=f.getActiveTenantForUser()?.tenantId??null;p.current!==e&&(p.current=e,h.current=!1,r.current=!1,s(C.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(C.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"],V={"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 V[s]}export{oe as default};
1
+ import{j as v}from"./liveblocks-BF-IiX2V.js";import{a as u}from"./sentry-DQv7eTqs.js";import{u as y,j as b,l as w,g as A,N}from"./core-C1MQ75FC.js";import{TV as U,fF as _,gl as k,TW as L,pS as R,TX as z}from"./zeni-epic-state-Dmop9tB7.js";import{u as j,z as f,L as C,t as I,G as O,b as $}from"./index-DMDsYekO.js";import"./mui-D4JyxRuO.js";import{t as P}from"./getLocaleForTenant-B7a_04KB.js";import"./recharts-BEOxWuh3.js";import"./analytics-Ckbn2qr2.js";import"./plaid-CD2DDkpy.js";import"./dnd-64pfrglk.js";import"./stripe-cKAAJElX.js";import"./lottie-CWNAcXJv.js";import"./lexical-TkcJlpM_.js";import"./pdf-Cj_veg-U.js";import"./utils-G6VVxCSd.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]="0375f4de-e96c-4a0c-97b2-e5716fad0b6c",t._sentryDebugIdIdentifier="sentry-dbid-0375f4de-e96c-4a0c-97b2-e5716fad0b6c")}catch{}})();const G=w((function(t){return{fetchState:t.tenantState.fetchState,activeTenantFetchState:t.tenantState.activeTenantFetchState.fetchState,currentTenant:_(t),tenantsInOrder:z(t).tenantsInOrder}}))((function({fetchState:t,activeTenantFetchState:s,currentTenant:o,tenantsInOrder:h}){const r=A(),p=new URLSearchParams(r.search);if(o==null||t!=="Completed"&&s!=="Completed")return null;{let m="";const n=h.map((l=>l.tenantEmailDomain)),i=r.state?.origin,a=r.state?.queryParams;let c=`../${o.tenantEmailDomain}`,d=null,e=!1,g=null,S=null;const T=E(r.pathname);if(T!=null)c=`../${o.tenantEmailDomain}/${T}`,m="comingFromV2UrlPath",T==="ai-cfo/explore"&&(d=p.get("question")?.replace(/^["']|["']$/g,"")??null,e=p.get("should_submit")==="true");else if(i!=null)if(n.reduce(((l,x)=>l||i.split("/").find((D=>D===x))!=null),!1))c=i,i.includes("ai-cfo")&&a!=null&&(g=a.aiCfoRef??null,S=a.aiCfoEmailRefId??null);else{const l=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 F=$(c,p);return v.jsx(N,{to:F,replace:!0,state:{...r.state,origin:"",message:m,aiCfoInitialQuestion:d,aiCfoShouldSubmit:e,aiCfoRef:g,aiCfoEmailRefId:S}})}}));function oe(){const t=y(),{setLoading:s,clearAllLoading:o}=j(),h=u.useRef(!1),r=u.useRef(!1),p=u.useRef(null),m=b((e=>U(e))),n=b((e=>e.tenantState.fetchState)),i=b((e=>e.tenantState.error)),a=b((e=>e.tenantState.activeTenantFetchState.fetchState)),c=b((e=>_(e))),d=f.getSignedInUser();return u.useLayoutEffect((()=>{const e=f.getActiveTenantForUser()?.tenantId??null;p.current!==e&&(p.current=e,h.current=!1,r.current=!1,s(C.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(C.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"],V={"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 V[s]}export{oe as default};
@@ -1,4 +1,4 @@
1
- import{j as l}from"./liveblocks-SKYC1C2A.js";import{h as w,g as C,j as h,l as E,i as V}from"./core-BxGWoVcT.js";import{YT as k,Y_ as H,gG as W,gF as q,gE as J,kP as L,WS as Q,uO as K,fF as B,Yq as D,kN as F,YU as S,Z1 as T,kL as G,l6 as j}from"./zeni-epic-state-C7XRcjyb.js";import{bO as M,a2 as N,o as R,z as U,E as O,a5 as p,S as v,a8 as Z,bP as X,J as _,bQ as ee,p as te}from"./index-JUFp38yH.js";import{n as Y}from"./mui-KBl5-FbY.js";import"./sentry-DZfHa7Ie.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]="b3bf2812-110c-4cf7-9541-9dbbd9e7eb69",e._sentryDebugIdIdentifier="sentry-dbid-b3bf2812-110c-4cf7-9541-9dbbd9e7eb69")}catch{}})();const ne=E(null,(function(e,t){return{onSaveVendor:n=>{e(L(t.vendorId!==void 0?t.vendorId:void 0,t.billId,void 0,t.isExpressPayPage)),e(Q("common")),n!=null&&e(K(n))},onGetOtp:n=>{e(J(n,"BillPayVendor"))},onResendOtp:n=>{e(q(n,"BillPayVendor"))},onVerifyOtp:(n,a)=>{e(W(n,a,"BillPayVendor"))},onVerifyOtpSuccess:(n,a,o)=>{e(H(n,a,o))}}}))(M);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=Y.div`
1
+ import{j as l}from"./liveblocks-BF-IiX2V.js";import{h as w,g as C,j as h,l as E,i as V}from"./core-C1MQ75FC.js";import{YT as k,Y_ as H,gG as W,gF as q,gE as J,kP as L,WS as Q,uO as K,fF as B,Yq as D,kN as F,YU as S,Z1 as T,kL as G,l6 as j}from"./zeni-epic-state-Dmop9tB7.js";import{bO as M,a2 as N,o as R,z as U,E as O,a5 as p,S as v,a8 as Z,bP as X,J as _,bQ as ee,p as te}from"./index-DMDsYekO.js";import{n as Y}from"./mui-D4JyxRuO.js";import"./sentry-DQv7eTqs.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]="b3bf2812-110c-4cf7-9541-9dbbd9e7eb69",e._sentryDebugIdIdentifier="sentry-dbid-b3bf2812-110c-4cf7-9541-9dbbd9e7eb69")}catch{}})();const ne=E(null,(function(e,t){return{onSaveVendor:n=>{e(L(t.vendorId!==void 0?t.vendorId:void 0,t.billId,void 0,t.isExpressPayPage)),e(Q("common")),n!=null&&e(K(n))},onGetOtp:n=>{e(J(n,"BillPayVendor"))},onResendOtp:n=>{e(q(n,"BillPayVendor"))},onVerifyOtp:(n,a)=>{e(W(n,a,"BillPayVendor"))},onVerifyOtpSuccess:(n,a,o)=>{e(H(n,a,o))}}}))(M);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=Y.div`
2
2
  display: flex;
3
3
  height: 100vh;
4
4
  width: 100%;
@@ -1 +1 @@
1
- import{j as c}from"./liveblocks-SKYC1C2A.js";import{a2 as d,ac as f,E as l}from"./index-JUFp38yH.js";import{D as b}from"./mui-KBl5-FbY.js";import"./sentry-DZfHa7Ie.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]="c4a1a051-122a-4bbe-9cb2-6f5c19e6b4ff",e._sentryDebugIdIdentifier="sentry-dbid-c4a1a051-122a-4bbe-9cb2-6f5c19e6b4ff")}catch{}})();const p={drawerLeftMargin:new f(0,0,240)};function h(e){const{isOpen:r,drawerLeftMargin:o,children:n,onClose:t}=e,a=d(),s=o?.valuePx(a)??p.drawerLeftMargin.valuePx(a),i=l();return c.jsx(b,{anchor:"right",open:r,PaperProps:{style:{width:`calc(100% - ${s})`}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.8,cursor:"pointer"}}},onClose:t,children:n})}export{h as D};
1
+ import{j as c}from"./liveblocks-BF-IiX2V.js";import{a2 as d,ac as f,E as l}from"./index-DMDsYekO.js";import{D as b}from"./mui-D4JyxRuO.js";import"./sentry-DQv7eTqs.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]="c4a1a051-122a-4bbe-9cb2-6f5c19e6b4ff",e._sentryDebugIdIdentifier="sentry-dbid-c4a1a051-122a-4bbe-9cb2-6f5c19e6b4ff")}catch{}})();const p={drawerLeftMargin:new f(0,0,240)};function h(e){const{isOpen:r,drawerLeftMargin:o,children:n,onClose:t}=e,a=d(),s=o?.valuePx(a)??p.drawerLeftMargin.valuePx(a),i=l();return c.jsx(b,{anchor:"right",open:r,PaperProps:{style:{width:`calc(100% - ${s})`}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.8,cursor:"pointer"}}},onClose:t,children:n})}export{h as D};
@@ -1 +1 @@
1
- import{j as s}from"./liveblocks-SKYC1C2A.js";import{a as d}from"./sentry-DZfHa7Ie.js";import{h as A,u as B,g as G,i as $,j as l,N as F,l as q,n as N,o as R}from"./core-BxGWoVcT.js";import{WW as _,fF as O,Wc as M,m$ as Y,Sd as k,W$ as z,WR as V,l$ as H,Se as P,Wh as J,Wi as K,WT as L,WS as Q}from"./zeni-epic-state-C7XRcjyb.js";import{b9 as U,l as X,a5 as Z,p as tt}from"./index-JUFp38yH.js";import"./mui-KBl5-FbY.js";import{d as b}from"./decodeURIComponentSafe-COWOoCD-.js";import{w as et}from"./withTransactionSidePanel-4ZSXJ3d_.js";import{f as at,c as nt}from"./routePaths-Lj2I6Wyf.js";import"./recharts-CflkB2e4.js";import"./analytics-CdlFAR7_.js";import"./plaid-YTuVWNGR.js";import"./dnd-4QLQvWVu.js";import"./stripe-cKAAJElX.js";import"./lottie-B7wq19x9.js";import"./lexical-DXD9Kn-N.js";import"./pdf-B0ceY1o5.js";import"./utils-BqbdeqC-.js";import"./useAskAiCfoHostNavButtonProps-D7B3mwZq.js";import"./TransactionDetailScreen-1pyTFZv_.js";import"./useInitialThreadRequest-Da_Q00AD.js";import"./expenseAutomationHelper-CY9qPhLr.js";import"./stripSplatSuffix-pcOF7B7F.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new a.Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="a1e604f4-96be-48ef-8a4a-17731988650b",a._sentryDebugIdIdentifier="sentry-dbid-a1e604f4-96be-48ef-8a4a-17731988650b")}catch{}})();const it=q((function(a,t){const e=t.entity,i=z(a,t.entity,"EntityDetail");return{selectedEntity:e,autoCompleteData:{autoCompleteText:e.name,entityAutoCompleteView:V(a,"common")},trendWithTransactionsReport:i,analytics:X,isAccountingClassesEnabled:H(a)}}),(function(a,t){return{onTransactionItemClick:e=>{if(t.openTransactionPanel)return void t.openTransactionPanel(e.id,e.type);const i=`${nt(e,t.tenantEmailDomain)}`,c=tt(t.location.state?.pathnameStackToGoBack,t.location.pathname);t.navigate(i,{state:{pathnameStackToGoBack:c}})},autoCompleteActions:{onAutoCompleteInputChange:e=>{e.trim().length>=2?a(L({searchString:e,searchOrigin:"common"})):e.trim().length===0&&a(Q("common"))},onAutoCompleteEntity:e=>{const i=at(e,t.tenantEmailDomain);a(J()),a(K()),t.resetTrendIsFetchedStates(),t.navigate(i,{replace:!0,state:{pathnameStackToGoBack:t.location.state?.pathnameStackToGoBack}})},onCancelAutoComplete:()=>{const e=Z(t.location.state?.pathnameStackToGoBack),i=e.poppedPathname??I();t.navigate(i,{state:{pathnameStackToGoBack:e.newStack}})}},onTrendSelectedPeriodChange:e=>{if(t.closeSidePanel?.(),e==null)t.defaultTransactionTimePeriod!=null&&a(P(t.entity,"EntityDetail",{timeframe:"quarter",timePeriod:t.defaultTransactionTimePeriod}));else{const i=e.currentTimePeriod==null?e.addTimePeriod:{startDate:e.addTimePeriod.startDate,endDate:e.currentTimePeriod.endDate};a(k(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:e.addTimePeriod})),a(P(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:i}))}}}}))(U),ot=et((function({entityType:a,...t}){const e=A(),i=B(),c=G(),[m,h]=d.useState(!1),[T,D]=d.useState(!1),{tenantEmailDomain:C,entityIdEncoded:W,entityNameEncoded:x}=$(),r=b(W??""),p=b(x??""),f=rt(r,p),j=[r,p].filter((n=>n!=null)),o={name:p,id:r,type:a,zeniId:r,qboId:r},g=l((n=>_(n.customerIncomeState,n.vendorExpenseState,n.trendState,o,"quarter"))),v=l((n=>O(n).company?.companyInfo.firstMonthOfFY??1)),u=l((n=>M(n.trendWithTransactionsState,o,"EntityDetail")));d.useEffect((()=>{m===!1&&f===!0&&(h(!0),i(Y(o)))}),[m,f,o]);const S=l((n=>n.trendState.fetchState)),E=u?.selectedPeriod?.timePeriod??g,w=(function(n,y){return n!=null&&y!=null?{startDate:n.startDate,endDate:y?.endDate}:y})(u?.selectedPeriod?.timePeriod,g);return d.useEffect((()=>{m===!0&&T===!1&&S==="Completed"&&(D(!0),E!=null&&i(k(o,"EntityDetail",{timeframe:u?.selectedPeriod?.timeframe??"quarter",timePeriod:E})))}),[m,T,S]),f?s.jsx(it,{firstMonthOfFY:v,tenantEmailDomain:C,location:c,navigate:e,entity:o,defaultTransactionTimePeriod:w,resetTrendIsFetchedStates:()=>{h(!1),D(!1)},...t}):s.jsx(F,{to:I(j.length)})})),rt=(a,t)=>t!=null&&t.length>0&&a!=null&&a.length>0,I=(a=2)=>{let t="../";for(let e=0;e<a;e++)t=`${t}../`;return t};function vt({entityType:a}){return s.jsx(N,{children:s.jsx(R,{path:"/:entityIdEncoded/:entityNameEncoded/*",element:s.jsx(ot,{entityType:a})})})}export{vt as EntityDetailRoutes,vt as default};
1
+ import{j as s}from"./liveblocks-BF-IiX2V.js";import{a as d}from"./sentry-DQv7eTqs.js";import{h as A,u as B,g as G,i as $,j as l,N as F,l as q,n as N,o as R}from"./core-C1MQ75FC.js";import{WW as _,fF as O,Wc as M,m$ as Y,Sd as k,W$ as z,WR as V,l$ as H,Se as P,Wh as J,Wi as K,WT as L,WS as Q}from"./zeni-epic-state-Dmop9tB7.js";import{b9 as U,l as X,a5 as Z,p as tt}from"./index-DMDsYekO.js";import"./mui-D4JyxRuO.js";import{d as b}from"./decodeURIComponentSafe-BkSrHWOz.js";import{w as et}from"./withTransactionSidePanel-BNIz03mj.js";import{f as at,c as nt}from"./routePaths-DtiHE0tS.js";import"./recharts-BEOxWuh3.js";import"./analytics-Ckbn2qr2.js";import"./plaid-CD2DDkpy.js";import"./dnd-64pfrglk.js";import"./stripe-cKAAJElX.js";import"./lottie-CWNAcXJv.js";import"./lexical-TkcJlpM_.js";import"./pdf-Cj_veg-U.js";import"./utils-G6VVxCSd.js";import"./useAskAiCfoHostNavButtonProps-BPjVLeQ1.js";import"./TransactionDetailScreen-DiUMYJym.js";import"./useInitialThreadRequest-B7Oi83EI.js";import"./expenseAutomationHelper-VfFbXlTC.js";import"./stripSplatSuffix-CF6NUsXZ.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new a.Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="a1e604f4-96be-48ef-8a4a-17731988650b",a._sentryDebugIdIdentifier="sentry-dbid-a1e604f4-96be-48ef-8a4a-17731988650b")}catch{}})();const it=q((function(a,t){const e=t.entity,i=z(a,t.entity,"EntityDetail");return{selectedEntity:e,autoCompleteData:{autoCompleteText:e.name,entityAutoCompleteView:V(a,"common")},trendWithTransactionsReport:i,analytics:X,isAccountingClassesEnabled:H(a)}}),(function(a,t){return{onTransactionItemClick:e=>{if(t.openTransactionPanel)return void t.openTransactionPanel(e.id,e.type);const i=`${nt(e,t.tenantEmailDomain)}`,c=tt(t.location.state?.pathnameStackToGoBack,t.location.pathname);t.navigate(i,{state:{pathnameStackToGoBack:c}})},autoCompleteActions:{onAutoCompleteInputChange:e=>{e.trim().length>=2?a(L({searchString:e,searchOrigin:"common"})):e.trim().length===0&&a(Q("common"))},onAutoCompleteEntity:e=>{const i=at(e,t.tenantEmailDomain);a(J()),a(K()),t.resetTrendIsFetchedStates(),t.navigate(i,{replace:!0,state:{pathnameStackToGoBack:t.location.state?.pathnameStackToGoBack}})},onCancelAutoComplete:()=>{const e=Z(t.location.state?.pathnameStackToGoBack),i=e.poppedPathname??I();t.navigate(i,{state:{pathnameStackToGoBack:e.newStack}})}},onTrendSelectedPeriodChange:e=>{if(t.closeSidePanel?.(),e==null)t.defaultTransactionTimePeriod!=null&&a(P(t.entity,"EntityDetail",{timeframe:"quarter",timePeriod:t.defaultTransactionTimePeriod}));else{const i=e.currentTimePeriod==null?e.addTimePeriod:{startDate:e.addTimePeriod.startDate,endDate:e.currentTimePeriod.endDate};a(k(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:e.addTimePeriod})),a(P(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:i}))}}}}))(U),ot=et((function({entityType:a,...t}){const e=A(),i=B(),c=G(),[m,h]=d.useState(!1),[T,D]=d.useState(!1),{tenantEmailDomain:C,entityIdEncoded:W,entityNameEncoded:x}=$(),r=b(W??""),p=b(x??""),f=rt(r,p),j=[r,p].filter((n=>n!=null)),o={name:p,id:r,type:a,zeniId:r,qboId:r},g=l((n=>_(n.customerIncomeState,n.vendorExpenseState,n.trendState,o,"quarter"))),v=l((n=>O(n).company?.companyInfo.firstMonthOfFY??1)),u=l((n=>M(n.trendWithTransactionsState,o,"EntityDetail")));d.useEffect((()=>{m===!1&&f===!0&&(h(!0),i(Y(o)))}),[m,f,o]);const S=l((n=>n.trendState.fetchState)),E=u?.selectedPeriod?.timePeriod??g,w=(function(n,y){return n!=null&&y!=null?{startDate:n.startDate,endDate:y?.endDate}:y})(u?.selectedPeriod?.timePeriod,g);return d.useEffect((()=>{m===!0&&T===!1&&S==="Completed"&&(D(!0),E!=null&&i(k(o,"EntityDetail",{timeframe:u?.selectedPeriod?.timeframe??"quarter",timePeriod:E})))}),[m,T,S]),f?s.jsx(it,{firstMonthOfFY:v,tenantEmailDomain:C,location:c,navigate:e,entity:o,defaultTransactionTimePeriod:w,resetTrendIsFetchedStates:()=>{h(!1),D(!1)},...t}):s.jsx(F,{to:I(j.length)})})),rt=(a,t)=>t!=null&&t.length>0&&a!=null&&a.length>0,I=(a=2)=>{let t="../";for(let e=0;e<a;e++)t=`${t}../`;return t};function vt({entityType:a}){return s.jsx(N,{children:s.jsx(R,{path:"/:entityIdEncoded/:entityNameEncoded/*",element:s.jsx(ot,{entityType:a})})})}export{vt as EntityDetailRoutes,vt as default};
@@ -1,4 +1,4 @@
1
- import{j as b}from"./liveblocks-SKYC1C2A.js";import{u as he,h as nt,g as be,j as _,i as Oe,t as Yn,l as Hn,n as Kn,o as He,N as Qn}from"./core-BxGWoVcT.js";import{fF as ke,a11 as Xn,q0 as _e,Uc as Zn,A3 as es,a12 as ts,a13 as as,a14 as ns,a15 as gt,a16 as Qe,gh as bt,a17 as ca,eW as ss,g0 as os,a18 as ia,a19 as Xe,qT as cs,uR as is,gS as ls,gQ as rs,a1a as ds,r4 as us,rd as ms,qb as ps,qp as wa,gP as re,gR as hs,a1b as Ss,qL as Ra,re as gs,qm as Cs,qh as fs,uX as Is,gO as Me,a1c as tt,Cd as Da,My as Fa,a1d as _a,Fw as Ma,a1e as ks,eZ as bs,e$ as Ts,sS as Tt,WX as la,WZ as Ps,m2 as ys,W_ as vs,m9 as Es,dl as As,Dw as Pt,a1f as xs,a1g as ws,fm as yt,sG as ra,WR as Rs,a1h as Ds,a1i as Fs,mb as _s,a1j as Ms,Re as Us,ma as Os,l$ as Bs,qE as Ua,rj as at,tt as Oa,tP as Vs,U2 as Ba,ri as da,rl as Va,rn as js,bE as Ls,ny as zs,nv as $s,rm as Ze,rk as pe,a1k as Gs,rE as ua,a1l as Ns,a1m as qs,sK as Js,sL as Ws,WN as Ys,VT as Hs,a0v as Ks,a1n as Qs,WT as ma,WS as Ke,a1o as pa,mq as Xs,a1p as Zs,a1q as eo,a1r as to,a1s as ao,qz as no,a1t as so,a1u as oo,a1v as co,ru as io,md as lo,m4 as ro,a1w as uo,mc as ha,X8 as mo,a1x as po,a1y as ho,us as So,u3 as go,u2 as Ct,a1z as Co,a1A as fo,a1B as Io,a1C as ko,nJ as bo,br as To,nE as Sa,nq as Po,a1D as yo,g$ as vo,nB as Eo,sU as Ao,sW as xo,sD as wo,VW as Ro,VX as Do,E_ as Fo,EZ as _o,Fe as Mo,a1E as ga,sJ as Uo,a1F as Oo,rU as Bo,r_ as Vo,s9 as jo,rX as Lo,a1G as zo,s8 as $o,sP as Go,a1H as No,t0 as qo,sx as Jo,t6 as Wo,sC as Yo,rF as Ho,a1I as Ko,qX as Qo,qv as Xo,qC as Ca,rp as Zo,a1J as ec,a1K as tc,a1L as ac,a1M as nc,a1N as sc,a1O as oc,a1P as cc,ta as ic,a1Q as lc,a1R as rc,a1S as fa,uD as dc,tW as uc,tL as Ia,tJ as mc,a1T as pc,ty as hc,td as Sc,tM as gc,a1U as Cc,a1V as fc,tj as Ic,a1W as kc,te as bc,ti as Tc,tg as Pc,tS as yc}from"./zeni-epic-state-C7XRcjyb.js";import ja from"./NotFoundScreen-DWfgauzD.js";import{a as s,R as La}from"./sentry-DZfHa7Ie.js";import{n as Te,S as vc}from"./mui-KBl5-FbY.js";import{o as Be,S as H,l as X,p as te,ar as za,at as $a,dP as Ec,dQ as Ac,N as Ga,z as st,dR as xc,dS as wc,dT as Rc,af as Ue,dU as Dc,dV as ka,bb as ba,dW as Fc,a8 as Na,dX as _c,h as et,a as Mc,dY as Uc,dZ as Oc,O as Bc,Q as Vc,d_ as jc,d$ as Lc,e0 as zc,b5 as $c,bt as Gc,ac as Nc,b6 as qc,b7 as Jc,G as Wc,w as Yc,e1 as Hc,aw as Ta,e2 as Kc}from"./index-JUFp38yH.js";import{u as qa}from"./useAskAiCfoHostNavButtonProps-D7B3mwZq.js";import{g as Pa,b as Qc,c as Xc,h as Zc,a as ei,i as ti,r as ai,C as ni}from"./TransactionDetailScreen-1pyTFZv_.js";import{u as si}from"./useActualMatchingMatchDetail-B26eyb8_.js";import{d as oi}from"./decodeURIComponentSafe-COWOoCD-.js";import{m as Ja,a as Wa}from"./expenseAutomationHelper-CY9qPhLr.js";import{u as Ya,a as Ha,w as ci}from"./withTransactionSidePanel-4ZSXJ3d_.js";import{b as ii,S as li,a as ri,J as di}from"./ScheduleDetailsPrepaidExpensesScreen-CXYRpnMH.js";import{s as ya,i as Ka,h as ui,v as mi,c as pi}from"./routePaths-Lj2I6Wyf.js";import{a as ft}from"./accountMappingHelper-C05BGWXi.js";import{D as hi}from"./DrawerScreen-BNUh6KQB.js";import"./recharts-CflkB2e4.js";import"./analytics-CdlFAR7_.js";import"./plaid-YTuVWNGR.js";import"./dnd-4QLQvWVu.js";import"./stripe-cKAAJElX.js";import"./lottie-B7wq19x9.js";import"./lexical-DXD9Kn-N.js";import"./pdf-B0ceY1o5.js";import"./utils-BqbdeqC-.js";import"./useInitialThreadRequest-Da_Q00AD.js";import"./stripSplatSuffix-pcOF7B7F.js";import"./pathToGoBack-YHA3dWdG.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new t.Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="9dd18425-de84-4e56-82ea-08edcb14d471",t._sentryDebugIdIdentifier="sentry-dbid-9dd18425-de84-4e56-82ea-08edcb14d471")}catch{}})();const Si=()=>{const t=he(),n=nt(),f=be(),I=_((C=>ke(C))),{useFeatureGate:k}=Be(),{isFeatureEnabled:o}=k(H.isRealtimeInsightsFeatureEnabled),{isFeatureEnabled:r}=k(H.aiAuditScorePercentage),E=_((C=>C.expenseAutomationViewState.selectedPeriodByTenantId)),l=_((C=>Xn(C,I.tenantId))),{isAiCfoAccessEnabled:S,onAskAiCfoClick:R}=qa({mobileExploreReferrer:"Month-End Close Overview"}),x=s.useCallback(((C,h,L=!1)=>{t(_e({tenantId:h,period:{month:C.month,year:C.year},refreshViewInBackground:L}))}),[]),m=s.useCallback((C=>{const h=f.state?.referrer;l.monthEndCloseChecks?.auditSummary!=null&&X.trackMonthCloseAuditPage(C.month,C.year,l.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",l.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,h??null),t(Zn(I.tenantId,C))}),[I.tenantId,l.monthEndCloseChecks?.auditSummary,l.monthEndCloseChecks?.reportEmailSentDate]),g=E[I.tenantId],u=s.useCallback((()=>{const C=f.state?.referrer;l.monthEndCloseChecks?.auditSummary!=null&&X.trackMonthCloseAuditPage(g.month,g.year,l.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",l.monthEndCloseChecks.auditSummary.auditScorePercentage,!0,C??null),x(g,I.tenantId,!0)}),[x,g,I.tenantId,l.monthEndCloseChecks?.auditSummary,l.monthEndCloseChecks?.reportEmailSentDate]),F=te(f.state?.pathnameStackToGoBack,f.pathname),A=s.useCallback((()=>{if(l.monthEndCloseChecks!=null&&g!=null){const C=l.monthEndCloseChecks.monthEndCloseCheckList.find((h=>h.progress<100));if(C!=null)return void n(`./${C.id}/${g.month}-${g.year}`,{state:{pathnameStackToGoBack:F,message:"comingFromOverview"}});n(`./month_end_insights/${g.month}-${g.year}`,{state:{pathnameStackToGoBack:F,message:"comingFromOverview"}})}}),[l.monthEndCloseChecks,g]),{areTenantIdsInSync:p}=za();return $a({isDataReady:l.fetchState==="Completed"}),s.useEffect((()=>{g!=null&&l.fetchState!=="In-Progress"&&l.fetchState!=="Completed"&&p&&x(g,I.tenantId)}),[x,g,l.fetchState,I.tenantId,p]),s.useEffect((()=>{g!=null&&l.monthClosePerformanceTrendFetchStatus.fetchState!=="In-Progress"&&l.monthClosePerformanceTrendFetchStatus.fetchState!=="Completed"&&p&&t(es(g))}),[g,l.monthClosePerformanceTrendFetchStatus.fetchState,p]),s.useEffect((()=>{const C=setInterval((()=>{l.fetchState!=="In-Progress"&&l.fetchState==="Completed"&&u()}),3e5);return()=>clearInterval(C)}),[l.fetchState]),s.useEffect((()=>{if(l.fetchState==="Completed"&&l.monthEndCloseChecks?.auditSummary!=null){const C=f.state?.referrer;X.trackMonthCloseAuditPage(l.selectedPeriod.month,l.selectedPeriod.year,l.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",l.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,C??null)}}),[l.fetchState,l.selectedPeriod,l.monthEndCloseChecks?.auditSummary,l.monthEndCloseChecks?.reportEmailSentDate]),b.jsx(gi,{children:b.jsx(Ec,{monthEndCloseChecksView:l,isRealtimeInsightsFeatureEnabled:o,onMonthEndCheckClick:C=>{n(`./${C}/${g.month}-${g.year}`,{state:{pathnameStackToGoBack:F,message:"comingFromOverview",referrer:"Expense Automation - Overview"}})},onPeriodChange:m,handleReviewButtonClick:A,onBackClick:()=>{n("../../dashboard")},onReload:u,isAiCfoAccessEnabled:S,onAskAiCfoClick:R,aiAuditScorePercentageEnabled:r})})},gi=Te.div`
1
+ import{j as b}from"./liveblocks-BF-IiX2V.js";import{u as he,h as nt,g as be,j as _,i as Oe,t as Yn,l as Hn,n as Kn,o as He,N as Qn}from"./core-C1MQ75FC.js";import{fF as ke,a11 as Xn,q0 as _e,Uc as Zn,A3 as es,a12 as ts,a13 as as,a14 as ns,a15 as gt,a16 as Qe,gh as bt,a17 as ca,eW as ss,g0 as os,a18 as ia,a19 as Xe,qT as cs,uR as is,gS as ls,gQ as rs,a1a as ds,r4 as us,rd as ms,qb as ps,qp as wa,gP as re,gR as hs,a1b as Ss,qL as Ra,re as gs,qm as Cs,qh as fs,uX as Is,gO as Me,a1c as tt,Cd as Da,My as Fa,a1d as _a,Fw as Ma,a1e as ks,eZ as bs,e$ as Ts,sS as Tt,WX as la,WZ as Ps,m2 as ys,W_ as vs,m9 as Es,dl as As,Dw as Pt,a1f as xs,a1g as ws,fm as yt,sG as ra,WR as Rs,a1h as Ds,a1i as Fs,mb as _s,a1j as Ms,Re as Us,ma as Os,l$ as Bs,qE as Ua,rj as at,tt as Oa,tP as Vs,U2 as Ba,ri as da,rl as Va,rn as js,bE as Ls,ny as zs,nv as $s,rm as Ze,rk as pe,a1k as Gs,rE as ua,a1l as Ns,a1m as qs,sK as Js,sL as Ws,WN as Ys,VT as Hs,a0v as Ks,a1n as Qs,WT as ma,WS as Ke,a1o as pa,mq as Xs,a1p as Zs,a1q as eo,a1r as to,a1s as ao,qz as no,a1t as so,a1u as oo,a1v as co,ru as io,md as lo,m4 as ro,a1w as uo,mc as ha,X8 as mo,a1x as po,a1y as ho,us as So,u3 as go,u2 as Ct,a1z as Co,a1A as fo,a1B as Io,a1C as ko,nJ as bo,br as To,nE as Sa,nq as Po,a1D as yo,g$ as vo,nB as Eo,sU as Ao,sW as xo,sD as wo,VW as Ro,VX as Do,E_ as Fo,EZ as _o,Fe as Mo,a1E as ga,sJ as Uo,a1F as Oo,rU as Bo,r_ as Vo,s9 as jo,rX as Lo,a1G as zo,s8 as $o,sP as Go,a1H as No,t0 as qo,sx as Jo,t6 as Wo,sC as Yo,rF as Ho,a1I as Ko,qX as Qo,qv as Xo,qC as Ca,rp as Zo,a1J as ec,a1K as tc,a1L as ac,a1M as nc,a1N as sc,a1O as oc,a1P as cc,ta as ic,a1Q as lc,a1R as rc,a1S as fa,uD as dc,tW as uc,tL as Ia,tJ as mc,a1T as pc,ty as hc,td as Sc,tM as gc,a1U as Cc,a1V as fc,tj as Ic,a1W as kc,te as bc,ti as Tc,tg as Pc,tS as yc}from"./zeni-epic-state-Dmop9tB7.js";import ja from"./NotFoundScreen-znPj3CVA.js";import{a as s,R as La}from"./sentry-DQv7eTqs.js";import{n as Te,S as vc}from"./mui-D4JyxRuO.js";import{o as Be,S as H,l as X,p as te,ar as za,at as $a,dP as Ec,dQ as Ac,N as Ga,z as st,dR as xc,dS as wc,dT as Rc,af as Ue,dU as Dc,dV as ka,bb as ba,dW as Fc,a8 as Na,dX as _c,h as et,a as Mc,dY as Uc,dZ as Oc,O as Bc,Q as Vc,d_ as jc,d$ as Lc,e0 as zc,b5 as $c,bt as Gc,ac as Nc,b6 as qc,b7 as Jc,G as Wc,w as Yc,e1 as Hc,aw as Ta,e2 as Kc}from"./index-DMDsYekO.js";import{u as qa}from"./useAskAiCfoHostNavButtonProps-BPjVLeQ1.js";import{g as Pa,b as Qc,c as Xc,h as Zc,a as ei,i as ti,r as ai,C as ni}from"./TransactionDetailScreen-DiUMYJym.js";import{u as si}from"./useActualMatchingMatchDetail-BAqmIJo_.js";import{d as oi}from"./decodeURIComponentSafe-BkSrHWOz.js";import{m as Ja,a as Wa}from"./expenseAutomationHelper-VfFbXlTC.js";import{u as Ya,a as Ha,w as ci}from"./withTransactionSidePanel-BNIz03mj.js";import{b as ii,S as li,a as ri,J as di}from"./ScheduleDetailsPrepaidExpensesScreen-D7v-1M8j.js";import{s as ya,i as Ka,h as ui,v as mi,c as pi}from"./routePaths-DtiHE0tS.js";import{a as ft}from"./accountMappingHelper-Dr9MEF3a.js";import{D as hi}from"./DrawerScreen-BzNdt1AI.js";import"./recharts-BEOxWuh3.js";import"./analytics-Ckbn2qr2.js";import"./plaid-CD2DDkpy.js";import"./dnd-64pfrglk.js";import"./stripe-cKAAJElX.js";import"./lottie-CWNAcXJv.js";import"./lexical-TkcJlpM_.js";import"./pdf-Cj_veg-U.js";import"./utils-G6VVxCSd.js";import"./useInitialThreadRequest-B7Oi83EI.js";import"./stripSplatSuffix-CF6NUsXZ.js";import"./pathToGoBack-wJzek_Cz.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new t.Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="9dd18425-de84-4e56-82ea-08edcb14d471",t._sentryDebugIdIdentifier="sentry-dbid-9dd18425-de84-4e56-82ea-08edcb14d471")}catch{}})();const Si=()=>{const t=he(),n=nt(),f=be(),I=_((C=>ke(C))),{useFeatureGate:k}=Be(),{isFeatureEnabled:o}=k(H.isRealtimeInsightsFeatureEnabled),{isFeatureEnabled:r}=k(H.aiAuditScorePercentage),E=_((C=>C.expenseAutomationViewState.selectedPeriodByTenantId)),l=_((C=>Xn(C,I.tenantId))),{isAiCfoAccessEnabled:S,onAskAiCfoClick:R}=qa({mobileExploreReferrer:"Month-End Close Overview"}),x=s.useCallback(((C,h,L=!1)=>{t(_e({tenantId:h,period:{month:C.month,year:C.year},refreshViewInBackground:L}))}),[]),m=s.useCallback((C=>{const h=f.state?.referrer;l.monthEndCloseChecks?.auditSummary!=null&&X.trackMonthCloseAuditPage(C.month,C.year,l.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",l.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,h??null),t(Zn(I.tenantId,C))}),[I.tenantId,l.monthEndCloseChecks?.auditSummary,l.monthEndCloseChecks?.reportEmailSentDate]),g=E[I.tenantId],u=s.useCallback((()=>{const C=f.state?.referrer;l.monthEndCloseChecks?.auditSummary!=null&&X.trackMonthCloseAuditPage(g.month,g.year,l.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",l.monthEndCloseChecks.auditSummary.auditScorePercentage,!0,C??null),x(g,I.tenantId,!0)}),[x,g,I.tenantId,l.monthEndCloseChecks?.auditSummary,l.monthEndCloseChecks?.reportEmailSentDate]),F=te(f.state?.pathnameStackToGoBack,f.pathname),A=s.useCallback((()=>{if(l.monthEndCloseChecks!=null&&g!=null){const C=l.monthEndCloseChecks.monthEndCloseCheckList.find((h=>h.progress<100));if(C!=null)return void n(`./${C.id}/${g.month}-${g.year}`,{state:{pathnameStackToGoBack:F,message:"comingFromOverview"}});n(`./month_end_insights/${g.month}-${g.year}`,{state:{pathnameStackToGoBack:F,message:"comingFromOverview"}})}}),[l.monthEndCloseChecks,g]),{areTenantIdsInSync:p}=za();return $a({isDataReady:l.fetchState==="Completed"}),s.useEffect((()=>{g!=null&&l.fetchState!=="In-Progress"&&l.fetchState!=="Completed"&&p&&x(g,I.tenantId)}),[x,g,l.fetchState,I.tenantId,p]),s.useEffect((()=>{g!=null&&l.monthClosePerformanceTrendFetchStatus.fetchState!=="In-Progress"&&l.monthClosePerformanceTrendFetchStatus.fetchState!=="Completed"&&p&&t(es(g))}),[g,l.monthClosePerformanceTrendFetchStatus.fetchState,p]),s.useEffect((()=>{const C=setInterval((()=>{l.fetchState!=="In-Progress"&&l.fetchState==="Completed"&&u()}),3e5);return()=>clearInterval(C)}),[l.fetchState]),s.useEffect((()=>{if(l.fetchState==="Completed"&&l.monthEndCloseChecks?.auditSummary!=null){const C=f.state?.referrer;X.trackMonthCloseAuditPage(l.selectedPeriod.month,l.selectedPeriod.year,l.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",l.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,C??null)}}),[l.fetchState,l.selectedPeriod,l.monthEndCloseChecks?.auditSummary,l.monthEndCloseChecks?.reportEmailSentDate]),b.jsx(gi,{children:b.jsx(Ec,{monthEndCloseChecksView:l,isRealtimeInsightsFeatureEnabled:o,onMonthEndCheckClick:C=>{n(`./${C}/${g.month}-${g.year}`,{state:{pathnameStackToGoBack:F,message:"comingFromOverview",referrer:"Expense Automation - Overview"}})},onPeriodChange:m,handleReviewButtonClick:A,onBackClick:()=>{n("../../dashboard")},onReload:u,isAiCfoAccessEnabled:S,onAskAiCfoClick:R,aiAuditScorePercentageEnabled:r})})},gi=Te.div`
2
2
  display: flex;
3
3
  height: 100vh;
4
4
  width: 100%;
@@ -1 +1 @@
1
- import{j as s}from"./liveblocks-SKYC1C2A.js";import{a as r}from"./sentry-DZfHa7Ie.js";import{ax as i,ay as c,B as l,a5 as p}from"./index-JUFp38yH.js";import"./mui-KBl5-FbY.js";import m from"./NotFoundScreen-DWfgauzD.js";import{h as u,g as b}from"./core-BxGWoVcT.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="f21aec28-6d82-4b2e-9b2c-7366ffa240d2",e._sentryDebugIdIdentifier="sentry-dbid-f21aec28-6d82-4b2e-9b2c-7366ffa240d2")}catch{}})();const _=()=>{const e=u(),a=b(),t=r.useCallback((()=>{window.open("https://www.zeni.ai/demo/request","_blank")}),[]),d=r.useCallback((()=>{(()=>{const n=p(a.state?.pathnameStackToGoBack),f=n.poppedPathname??k();e(f,{state:{pathnameStackToGoBack:n.newStack}})})()}),[]),o=i(a.pathname);return o!=null?s.jsx(c,{menuItem:l(o),onDemoClick:t,onGoBack:d}):s.jsx(m,{})},k=(e=2)=>{let a="../";for(let t=0;t<e;t++)a=`${a}../`;return a};export{_ as F};
1
+ import{j as s}from"./liveblocks-BF-IiX2V.js";import{a as r}from"./sentry-DQv7eTqs.js";import{ax as i,ay as c,B as l,a5 as p}from"./index-DMDsYekO.js";import"./mui-D4JyxRuO.js";import m from"./NotFoundScreen-znPj3CVA.js";import{h as u,g as b}from"./core-C1MQ75FC.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="f21aec28-6d82-4b2e-9b2c-7366ffa240d2",e._sentryDebugIdIdentifier="sentry-dbid-f21aec28-6d82-4b2e-9b2c-7366ffa240d2")}catch{}})();const _=()=>{const e=u(),a=b(),t=r.useCallback((()=>{window.open("https://www.zeni.ai/demo/request","_blank")}),[]),d=r.useCallback((()=>{(()=>{const n=p(a.state?.pathnameStackToGoBack),f=n.poppedPathname??k();e(f,{state:{pathnameStackToGoBack:n.newStack}})})()}),[]),o=i(a.pathname);return o!=null?s.jsx(c,{menuItem:l(o),onDemoClick:t,onGoBack:d}):s.jsx(m,{})},k=(e=2)=>{let a="../";for(let t=0;t<e;t++)a=`${a}../`;return a};export{_ as F};
@@ -1 +1 @@
1
- import{a as r}from"./sentry-DZfHa7Ie.js";import{u as l,h as f,g as m}from"./core-BxGWoVcT.js";import{hY as p,Uz as g,UA as _}from"./zeni-epic-state-C7XRcjyb.js";import{u as b,L as h,z as y}from"./index-JUFp38yH.js";import"./liveblocks-SKYC1C2A.js";import"./recharts-CflkB2e4.js";import"./mui-KBl5-FbY.js";import"./analytics-CdlFAR7_.js";import"./plaid-YTuVWNGR.js";import"./dnd-4QLQvWVu.js";import"./stripe-cKAAJElX.js";import"./lottie-B7wq19x9.js";import"./lexical-DXD9Kn-N.js";import"./pdf-B0ceY1o5.js";import"./utils-BqbdeqC-.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]="86213854-1b07-48d0-b066-6176c43cf5ae",e._sentryDebugIdIdentifier="sentry-dbid-86213854-1b07-48d0-b066-6176c43cf5ae")}catch{}})();function j(){const e=l(),n=f(),o=m(),{setLoading:i,clearAllLoading:d}=b(),s=r.useRef(!1);return r.useLayoutEffect((()=>{i(h.CONNECTION_AUTH)}),[i]),r.useEffect((()=>{if(s.current)return;s.current=!0;const a=new URLSearchParams(o.search).get("code"),c=sessionStorage.getItem("hubspot_oauth_pending");if(sessionStorage.removeItem("hubspot_oauth_pending"),a!=null&&c!=null){const t=JSON.parse(c);e(p(t.tenant_id,t.connection_id,g("revenue"),_("hubspot"),{authorization_code:a,client_id:t.client_id,client_secret:t.client_secret,redirect_uri:t.redirect_uri}))}d();const u=y.getActiveTenantForUser();n(u?.tenantEmailDomain!=null?`/${u.tenantEmailDomain}/settings/integrations`:"/",{replace:!0})}),[]),null}export{j as default};
1
+ import{a as r}from"./sentry-DQv7eTqs.js";import{u as l,h as f,g as m}from"./core-C1MQ75FC.js";import{hY as p,Uz as g,UA as _}from"./zeni-epic-state-Dmop9tB7.js";import{u as b,L as h,z as y}from"./index-DMDsYekO.js";import"./liveblocks-BF-IiX2V.js";import"./recharts-BEOxWuh3.js";import"./mui-D4JyxRuO.js";import"./analytics-Ckbn2qr2.js";import"./plaid-CD2DDkpy.js";import"./dnd-64pfrglk.js";import"./stripe-cKAAJElX.js";import"./lottie-CWNAcXJv.js";import"./lexical-TkcJlpM_.js";import"./pdf-Cj_veg-U.js";import"./utils-G6VVxCSd.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]="86213854-1b07-48d0-b066-6176c43cf5ae",e._sentryDebugIdIdentifier="sentry-dbid-86213854-1b07-48d0-b066-6176c43cf5ae")}catch{}})();function j(){const e=l(),n=f(),o=m(),{setLoading:i,clearAllLoading:d}=b(),s=r.useRef(!1);return r.useLayoutEffect((()=>{i(h.CONNECTION_AUTH)}),[i]),r.useEffect((()=>{if(s.current)return;s.current=!0;const a=new URLSearchParams(o.search).get("code"),c=sessionStorage.getItem("hubspot_oauth_pending");if(sessionStorage.removeItem("hubspot_oauth_pending"),a!=null&&c!=null){const t=JSON.parse(c);e(p(t.tenant_id,t.connection_id,g("revenue"),_("hubspot"),{authorization_code:a,client_id:t.client_id,client_secret:t.client_secret,redirect_uri:t.redirect_uri}))}d();const u=y.getActiveTenantForUser();n(u?.tenantEmailDomain!=null?`/${u.tenantEmailDomain}/settings/integrations`:"/",{replace:!0})}),[]),null}export{j as default};
@@ -1 +1 @@
1
- import{n as s}from"./liveblocks-SKYC1C2A.js";import{j as d}from"./core-BxGWoVcT.js";import{fF as a}from"./zeni-epic-state-C7XRcjyb.js";import"./sentry-DZfHa7Ie.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]="7ecf9165-dd2c-4040-9e65-c840c8a3aad6",e._sentryDebugIdIdentifier="sentry-dbid-7ecf9165-dd2c-4040-9e65-c840c8a3aad6")}catch{}})();const h=()=>d((e=>a(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{h as u};
1
+ import{n as s}from"./liveblocks-BF-IiX2V.js";import{j as d}from"./core-C1MQ75FC.js";import{fF as a}from"./zeni-epic-state-Dmop9tB7.js";import"./sentry-DQv7eTqs.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]="7ecf9165-dd2c-4040-9e65-c840c8a3aad6",e._sentryDebugIdIdentifier="sentry-dbid-7ecf9165-dd2c-4040-9e65-c840c8a3aad6")}catch{}})();const h=()=>d((e=>a(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{h as u};