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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/dist/assets/{AccountMappingScreen-x01KGJFi.js → AccountMappingScreen-C1RnOF0n.js} +1 -1
  2. package/dist/assets/{ActualMatchingMatchDetailScreen-hiz6Gy_D.js → ActualMatchingMatchDetailScreen-B0LF-DvP.js} +1 -1
  3. package/dist/assets/AddressRoutes-nzlEbpLZ.js +1 -0
  4. package/dist/assets/{AddressScreen-pU8bKkax.js → AddressScreen-BMW5PBGV.js} +1 -1
  5. package/dist/assets/{AiCfoScreen-ByNsle03.js → AiCfoScreen-X6l8TO3I.js} +1 -1
  6. package/dist/assets/{AppDrawer-Cgu4EyhF.js → AppDrawer-zwdzlFaD.js} +1 -1
  7. package/dist/assets/{BillPayApprovalRoutes-CpsWET1r.js → BillPayApprovalRoutes-d_qnRv_k.js} +1 -1
  8. package/dist/assets/{BillPayRoutes-vaXmArmg.js → BillPayRoutes-Knm7u9m6.js} +1 -1
  9. package/dist/assets/{BusinessVerificationPageScreen-DluURpbt.js → BusinessVerificationPageScreen-mjhVHH4O.js} +1 -1
  10. package/dist/assets/{CardsAiCfoScreen-Cp0Ev3Lm.js → CardsAiCfoScreen-B6cIfYHl.js} +1 -1
  11. package/dist/assets/{ChargeCardRoutes-30nWQ0Qe.js → ChargeCardRoutes-TX6d5LBT.js} +1 -1
  12. package/dist/assets/{CompanyPassportScreen-DR8iydrm.js → CompanyPassportScreen-BWtavadn.js} +1 -1
  13. package/dist/assets/{ConnectionAuthScreen-DvsisEGU.js → ConnectionAuthScreen-k0c3LH8h.js} +1 -1
  14. package/dist/assets/CustomerOnboardingAuthScreen-BKNrdOGe.js +1 -0
  15. package/dist/assets/{CustomerOnboardingRoutes-ITaKbmrn.js → CustomerOnboardingRoutes-BAceZmH-.js} +1 -1
  16. package/dist/assets/{DashboardRoutes-42S6qNRj.js → DashboardRoutes-C1cQM1iq.js} +1 -1
  17. package/dist/assets/{DefaultTenantHome-cpgp-xAf.js → DefaultTenantHome-CoJMpOnn.js} +1 -1
  18. package/dist/assets/{DomesticWireDetailScreen-HUCWzBqq.js → DomesticWireDetailScreen-CN_AwtpO.js} +1 -1
  19. package/dist/assets/{DrawerScreen-OrP7suFB.js → DrawerScreen-D7I-GzS4.js} +1 -1
  20. package/dist/assets/{EntityDetailRoutes-BOXJZLgf.js → EntityDetailRoutes-DRcTK4xX.js} +1 -1
  21. package/dist/assets/{ExpenseAutomationRoutes-DnTUd9A_.js → ExpenseAutomationRoutes-8LBIl5LC.js} +1 -1
  22. package/dist/assets/{FeaturePreviewScreen--2ttfTQV.js → FeaturePreviewScreen-DZWG45PX.js} +1 -1
  23. package/dist/assets/{HubSpotOAuthCallbackScreen-BK_ghI88.js → HubSpotOAuthCallbackScreen-BaMHkeHO.js} +1 -1
  24. package/dist/assets/{InboxNotificationsProvider-BImT8x5L.js → InboxNotificationsProvider-gHb6rSEv.js} +1 -1
  25. package/dist/assets/{InvoicingRoutes-Gp9r9HLv.js → InvoicingRoutes-CfS4mAJT.js} +1 -1
  26. package/dist/assets/{MagicLinkRoutes-DD8mALyv.js → MagicLinkRoutes-BWTSKuZR.js} +1 -1
  27. package/dist/assets/{MagicLinkSignInScreen-C065TaLf.js → MagicLinkSignInScreen-BBiLqeC6.js} +1 -1
  28. package/dist/assets/{MobileAppDrawer-Pu7ISVJn.js → MobileAppDrawer-nKSb2sKG.js} +1 -1
  29. package/dist/assets/NotFoundScreen-lrXID2D2.js +1 -0
  30. package/dist/assets/{NotificationRoutes-D4X_y1qx.js → NotificationRoutes-CLz6VAM_.js} +1 -1
  31. package/dist/assets/{OAuthConsentScreen-Zn37qi08.js → OAuthConsentScreen-DLGkSjxy.js} +1 -1
  32. package/dist/assets/{PandLWithForecastRoutes-ynIalqA2.js → PandLWithForecastRoutes-BRH3UvCo.js} +1 -1
  33. package/dist/assets/{PaymentLinkScreen-CfRKMG_t.js → PaymentLinkScreen-urZ7U9SC.js} +1 -1
  34. package/dist/assets/{PeopleRoutes-D3GsA1sP.js → PeopleRoutes-DC0KccAq.js} +1 -1
  35. package/dist/assets/{PerformanceRoutes-DS977oYp.js → PerformanceRoutes-CGtga_hp.js} +1 -1
  36. package/dist/assets/{Preview-DBWBDmm4.js → Preview-Dhga7S3h.js} +1 -1
  37. package/dist/assets/{QBOConnectionScreen-okc2V_PU.js → QBOConnectionScreen-Cllizgjx.js} +1 -1
  38. package/dist/assets/{ReimbursementApprovalRoutes--tZt87qg.js → ReimbursementApprovalRoutes-DwWMn7cn.js} +1 -1
  39. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-BDvy-Igl.js → ReimbursementApprovalRuleDetailScreen-O-yHh4uj.js} +1 -1
  40. package/dist/assets/{ReimbursementRoutes-CC_TOouH.js → ReimbursementRoutes-BXVuYLRT.js} +1 -1
  41. package/dist/assets/{ReportsRoutes-Bxwpm0er.js → ReportsRoutes-Barssrna.js} +1 -1
  42. package/dist/assets/{RewardsRoutes-DX0j5gtp.js → RewardsRoutes-BgUVgwGN.js} +1 -1
  43. package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-HU5MkNq1.js → ScheduleDetailsPrepaidExpensesScreen-C1AIWmci.js} +1 -1
  44. package/dist/assets/{ScreenRoutes-CFHCpWol.js → ScreenRoutes-mJWUDJcG.js} +2 -2
  45. package/dist/assets/{SettingsRoutes-No7ZX5Ie.js → SettingsRoutes-Bk6BvUvm.js} +1 -1
  46. package/dist/assets/{SetupPagesScreen-CQlSZmBG.js → SetupPagesScreen-B0Rr7fey.js} +1 -1
  47. package/dist/assets/{SignInScreen-BptEOEi2.js → SignInScreen-BM3Vo8Sm.js} +1 -1
  48. package/dist/assets/{SignOutScreen-DMM6bb_e.js → SignOutScreen-WK9PJrGQ.js} +1 -1
  49. package/dist/assets/{TaskListScreen-CpfMtq-2.js → TaskListScreen-DJRKceku.js} +1 -1
  50. package/dist/assets/{TaskRoutes-X3QXdM-s.js → TaskRoutes-D4jH7PJl.js} +1 -1
  51. package/dist/assets/{TransactionDetailRoutes-Bi_Moauy.js → TransactionDetailRoutes-Sp9ULYUl.js} +1 -1
  52. package/dist/assets/{TransactionDetailScreen-C7syThvR.js → TransactionDetailScreen-BeMygB7E.js} +1 -1
  53. package/dist/assets/{TransactionListRoutes-DNAzzprZ.js → TransactionListRoutes-B_dIALM9.js} +1 -1
  54. package/dist/assets/{TreasuryRoutes-BjXFJuIp.js → TreasuryRoutes-7AIyWRUd.js} +1 -1
  55. package/dist/assets/{VendorsRoutes-GxQyzh4m.js → VendorsRoutes-jnQiOZos.js} +1 -1
  56. package/dist/assets/{WiseConfirmationScreen-YuA8Kclm.js → WiseConfirmationScreen-CPdMEGDQ.js} +1 -1
  57. package/dist/assets/{ZeniAccountRoutes-DzwND2l5.js → ZeniAccountRoutes-BipwR7h6.js} +1 -1
  58. package/dist/assets/{ZeniAccountStatementScreen-5hg2YRQL.js → ZeniAccountStatementScreen-CFGV8Doe.js} +1 -1
  59. package/dist/assets/{accountMappingHelper-EiDfaUYc.js → accountMappingHelper-D5RLPl0Q.js} +1 -1
  60. package/dist/assets/{analytics-CLhIIMIj.js → analytics-B_BCmETJ.js} +1 -1
  61. package/dist/assets/{analyticsHelper-Dz9cGK89.js → analyticsHelper-CY3FldM6.js} +1 -1
  62. package/dist/assets/{core-DJg5tSgJ.js → core-GrVUbJGD.js} +1 -1
  63. package/dist/assets/{decodeURIComponentSafe-DF-yguK5.js → decodeURIComponentSafe-C1t-__r9.js} +1 -1
  64. package/dist/assets/{dnd-DJqaNdZQ.js → dnd-Cc3q8XS9.js} +1 -1
  65. package/dist/assets/{empty-Cdl3ViXt.js → empty-BWUoD4Zv.js} +1 -1
  66. package/dist/assets/{empty-B4SAbwMR.js → empty-D0ciM-5y.js} +1 -1
  67. package/dist/assets/{emptyVideoElement-DZLmpRVx.js → emptyVideoElement-DkmV6O6O.js} +1 -1
  68. package/dist/assets/{epic-BlIWim58.js → epic-CPqi4BTJ.js} +1 -1
  69. package/dist/assets/{expenseAutomationHelper-BV5ky-OC.js → expenseAutomationHelper-BqqNQc4E.js} +1 -1
  70. package/dist/assets/{getLocaleForTenant-C6KXnv3W.js → getLocaleForTenant-E8yaJhog.js} +1 -1
  71. package/dist/assets/{index-CJ_oy67i.js → index-Bh0ZMqWQ.js} +1 -1
  72. package/dist/assets/{index-BPNk3IZl.js → index-CL0RkSdG.js} +1 -1
  73. package/dist/assets/{index-DSzaDgIE.js → index-DG7Ul_N4.js} +1 -1
  74. package/dist/assets/{index-D32N_tVs.js → index-DcN2E4lO.js} +1 -1
  75. package/dist/assets/{index-C9enEu3s.js → index-Dw849GIn.js} +1 -1
  76. package/dist/assets/{index-C_zXD4tY.js → index-eXyO65Ih.js} +8 -8
  77. package/dist/assets/{index-BsNROFUn.js → index-fEZlh4Dc.js} +2 -2
  78. package/dist/assets/{index-DsG7KwoC.js → index-quhlDe1C.js} +1 -1
  79. package/dist/assets/{lexical-0nYC3WJn.js → lexical-C0CQ8hW2.js} +1 -1
  80. package/dist/assets/{liveblocks-DlLPx8qc.js → liveblocks-Vz4gvIdI.js} +1 -1
  81. package/dist/assets/{lottie-CgZ3326o.js → lottie-7o7Nu0hF.js} +1 -1
  82. package/dist/assets/{mui-D4cnbDJb.js → mui-CuMgG_27.js} +1 -1
  83. package/dist/assets/{pathToGoBack-DP3kJbJJ.js → pathToGoBack-6-e3rsC8.js} +1 -1
  84. package/dist/assets/{pdf-BIYaUqkd.js → pdf-Dl24vdfn.js} +3 -3
  85. package/dist/assets/{pdf-lib-WsHlrbj5.js → pdf-lib-fawjhojL.js} +1 -1
  86. package/dist/assets/{plaid-CX-W0kKb.js → plaid-DEbV2MCp.js} +1 -1
  87. package/dist/assets/{pusher-01AYmBnw.js → pusher-BruElsMX.js} +1 -1
  88. package/dist/assets/{react-DkWNaMES.js → react-B2vUC3AA.js} +1 -1
  89. package/dist/assets/{react-jLaACtQ1.js → react-BUjsymiG.js} +1 -1
  90. package/dist/assets/{react-tKomfsFq.js → react-Ch583KjZ.js} +1 -1
  91. package/dist/assets/{react-D0zpTELM.js → react-CnHsUdIx.js} +1 -1
  92. package/dist/assets/{react-sQl3csRu.js → react-Ds2rCLjL.js} +1 -1
  93. package/dist/assets/{react-7xGjrSTh.js → react-suoBZax1.js} +1 -1
  94. package/dist/assets/{recharts-DDu3LMPw.js → recharts-Cz5M2Ami.js} +1 -1
  95. package/dist/assets/{reportTimeframe-BgsggeSc.js → reportTimeframe-B4ojXbeQ.js} +1 -1
  96. package/dist/assets/{routePaths-y2YMVrr7.js → routePaths-C4nWRb1J.js} +1 -1
  97. package/dist/assets/{sentry-DG6_iPE-.js → sentry-Y8vuE8aQ.js} +1 -1
  98. package/dist/assets/{stripSplatSuffix-Bp9kZoKb.js → stripSplatSuffix-DBJKfIbL.js} +1 -1
  99. package/dist/assets/{url-qDdPuZok.js → url-DLR2uoac.js} +1 -1
  100. package/dist/assets/{url-BQCsEBGu.js → url-DhQWTUYg.js} +1 -1
  101. package/dist/assets/{useActualMatchingMatchDetail-1qnapZhi.js → useActualMatchingMatchDetail-rg_uxZt8.js} +1 -1
  102. package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-m1qsPBxY.js → useAiCfoDashboardSuggestedQuestionsChips-KYBucxDc.js} +1 -1
  103. package/dist/assets/{useAskAiCfoHostNavButtonProps-CLMUyZJH.js → useAskAiCfoHostNavButtonProps-Gb5FxzST.js} +1 -1
  104. package/dist/assets/{useChargeCardPusherEvents-DDN5eLuU.js → useChargeCardPusherEvents-aMKf6KAu.js} +1 -1
  105. package/dist/assets/{useDeviceId-DtLZc8_x.js → useDeviceId-KzHLS1Iv.js} +1 -1
  106. package/dist/assets/{useEmailConnectResultRefresh-CtIFhsBf.js → useEmailConnectResultRefresh-BbKupJnC.js} +1 -1
  107. package/dist/assets/{useEnsureVendorListLoaded-Bb2ZM929.js → useEnsureVendorListLoaded-c7kW69ou.js} +1 -1
  108. package/dist/assets/{useInitialThreadRequest-CP4azMys.js → useInitialThreadRequest-zNumU9hI.js} +1 -1
  109. package/dist/assets/{useTaskManagerAccess-QUQG2mEV.js → useTaskManagerAccess-gL3vn6YT.js} +1 -1
  110. package/dist/assets/{useTaskManagerPusherEvents-Cjd-zTvf.js → useTaskManagerPusherEvents-CN3jrzrj.js} +1 -1
  111. package/dist/assets/{utils-rAp4kjII.js → utils-PKPkEQd5.js} +1 -1
  112. package/dist/assets/{withTransactionSidePanel-CWVMVdKL.js → withTransactionSidePanel-D9vq13QQ.js} +1 -1
  113. package/dist/assets/{zeni-epic-state-DWniLfut.js → zeni-epic-state-COBHVss0.js} +3 -3
  114. package/dist/index.html +1 -1
  115. package/package.json +1 -1
  116. package/dist/assets/AddressRoutes-B83Mdnua.js +0 -1
  117. package/dist/assets/CustomerOnboardingAuthScreen-Dfd6TL1x.js +0 -1
  118. package/dist/assets/NotFoundScreen-qpaowFoa.js +0 -1
@@ -1 +1 @@
1
- import{j as m}from"./liveblocks-DlLPx8qc.js";import{a as g}from"./sentry-DG6_iPE-.js";import{h as w,u as x,g as k,i as T,j as O,l as E}from"./core-DJg5tSgJ.js";import{z as C,bt as F,a6 as P,k as V,S as L,q as N,bu as j,ac as A,aE as U,l as G}from"./index-C_zXD4tY.js";import{fI as h,gL as B,C3 as M,gG as _,ca as R,Zh as z,bn as Z,v6 as Y,uW as q,mD as H,oc as S,Zi as W,bG as $,cG as D,on as J,ox as K}from"./zeni-epic-state-DWniLfut.js";import"./mui-D4cnbDJb.js";import{d as Q}from"./routePaths-y2YMVrr7.js";import{M as X}from"./MobileAppDrawer-Pu7ISVJn.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new n.Error().stack;t&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[t]="3a023de1-ceaa-4060-9ff3-a1377a6fa498",n._sentryDebugIdIdentifier="sentry-dbid-3a023de1-ceaa-4060-9ff3-a1377a6fa498")}catch{}})();const ee=E((function(n){const t=_(n),i=C.getSignedInUser(),l=h(n),c=l.tenantId,p={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:c??""},f=R(l?.userRole??[])&&t.localData.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",e=z(n.companyConfigState),a=n.countryListState?.byCountryListCode?.nationalityCountryList?.countries??[];return{isCompanyVerified:t.companyView?.company?.company?.companyBillPayInfo?.companyVerificationStatus?.code==="verified",companyPassportView:t,allIndustries:e.companyIndustries??[],allNationalityCountries:a,isDisabled:f,authParams:p,filesEndPoint:`${A.fileMicroServiceBaseUrl}`,isZeniUser:Z(i)}}),(function(n,t){const{companyId:i,currentTenant:l,navigate:c,location:p}=t,{tenantEmailDomain:f}=l;return{onScheduleClick:e=>{let a=e.href;a.includes("http")||(a="https://".concat(a)),window.open(a,"_blank")},onSaveAll:()=>{n(K())},onAddressClick:e=>{const a=Q(f,e),o=G(p.state?.pathnameStackToGoBack,p.pathname);c(a,{state:{pathnameStackToGoBack:o}})},onResetClick:()=>{n(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:b}=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?$(s?.toString()):s,fileId:o.fileIds[0]},taxDetails:{taxIdOrEIN:r.taxIdOrEIN,sicCode:r.sicCode,naicsCode:r.naicsCode,dunsNumber:r.dunsNumber,taxesFiledYears:b.selectedOptions.map((I=>parseInt(I))),fileId:r.fileIds[0]}};n(S({companyDetails:v}))},onPrimaryContactDetailsUpdated:e=>{n(S({primaryContact:{userId:e.userId,email:e.email.trim(),firstName:e.name.firstName,lastName:e.name.lastName}}))},onNewCompanyOfficerAdded:e=>{n(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:void 0}]}))},onNewCompanyOfficerRemoved:e=>{n(W(e))},onCompanyOfficerUpdated:e=>{n(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:e.userId}]}))},updateFilesEntity:e=>{n(H({files:e}))},onDeleteFile:e=>{n(q(e))},onEditFileName:(e,a)=>{n(Y(e,a.split(".")[0]))}}}))(j);function de(){const n=w(),t=x(),i=k(),{tenantEmailDomain:l}=T(),[c,p]=g.useState(!1),[f,e]=g.useState(!1),a=O((s=>s.companyViewState.passportView.fetchState)),o=O((s=>s.companyConfigState.fetchState)),r=O((s=>h(s))),d=r.companyId??C.getSignedInUserTenant(l)?.companyId;if(C.getSignedInUser()==null)throw Error("Can't access company details page without signing in...");g.useEffect((()=>{c||a!=="Not-Started"||d==null||(p(!0),t(B(d)))}),[c,a,d,t]),g.useEffect((()=>{o==="Not-Started"&&t(M())}),[o,t]);const u=s=>{e(s)},y=a==="Not-Started"||a==="In-Progress"||o==="Not-Started"||o==="In-Progress";return d!=null&&a==="Error"?m.jsx(F,{onGoHome:()=>n("../",{replace:!0}),onReload:()=>window.location.reload()}):m.jsxs(m.Fragment,{children:[m.jsx(P,{analytics:V,onLoad:s=>s.trackPageLoaded(L.Event.companyPassport,N(i)?"Settings":"Company Passport")}),N(i)?m.jsx(X,{isAppContentDrawerOpen:f,handleDrawerToggle:u}):null,m.jsx(ee,{companyId:d,navigate:n,location:i,isLoading:y,currentTenant:r,isSettings:N(i),onClickMenuIcon:()=>{u(!0)}})]})}export{de as C};
1
+ import{j as m}from"./liveblocks-Vz4gvIdI.js";import{a as g}from"./sentry-Y8vuE8aQ.js";import{h as w,u as x,g as k,i as T,j as O,l as E}from"./core-GrVUbJGD.js";import{z as C,bt as F,a6 as P,k as V,S as L,q as N,bu as j,ac as A,aE as U,l as G}from"./index-eXyO65Ih.js";import{fI as h,gL as B,C3 as M,gG as _,ca as R,Zh as z,bn as Z,v6 as Y,uW as q,mD as H,oc as S,Zi as W,bG as $,cG as D,on as J,ox as K}from"./zeni-epic-state-COBHVss0.js";import"./mui-CuMgG_27.js";import{d as Q}from"./routePaths-C4nWRb1J.js";import{M as X}from"./MobileAppDrawer-nKSb2sKG.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new n.Error().stack;t&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[t]="3a023de1-ceaa-4060-9ff3-a1377a6fa498",n._sentryDebugIdIdentifier="sentry-dbid-3a023de1-ceaa-4060-9ff3-a1377a6fa498")}catch{}})();const ee=E((function(n){const t=_(n),i=C.getSignedInUser(),l=h(n),c=l.tenantId,p={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:c??""},f=R(l?.userRole??[])&&t.localData.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",e=z(n.companyConfigState),a=n.countryListState?.byCountryListCode?.nationalityCountryList?.countries??[];return{isCompanyVerified:t.companyView?.company?.company?.companyBillPayInfo?.companyVerificationStatus?.code==="verified",companyPassportView:t,allIndustries:e.companyIndustries??[],allNationalityCountries:a,isDisabled:f,authParams:p,filesEndPoint:`${A.fileMicroServiceBaseUrl}`,isZeniUser:Z(i)}}),(function(n,t){const{companyId:i,currentTenant:l,navigate:c,location:p}=t,{tenantEmailDomain:f}=l;return{onScheduleClick:e=>{let a=e.href;a.includes("http")||(a="https://".concat(a)),window.open(a,"_blank")},onSaveAll:()=>{n(K())},onAddressClick:e=>{const a=Q(f,e),o=G(p.state?.pathnameStackToGoBack,p.pathname);c(a,{state:{pathnameStackToGoBack:o}})},onResetClick:()=>{n(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:b}=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?$(s?.toString()):s,fileId:o.fileIds[0]},taxDetails:{taxIdOrEIN:r.taxIdOrEIN,sicCode:r.sicCode,naicsCode:r.naicsCode,dunsNumber:r.dunsNumber,taxesFiledYears:b.selectedOptions.map((I=>parseInt(I))),fileId:r.fileIds[0]}};n(S({companyDetails:v}))},onPrimaryContactDetailsUpdated:e=>{n(S({primaryContact:{userId:e.userId,email:e.email.trim(),firstName:e.name.firstName,lastName:e.name.lastName}}))},onNewCompanyOfficerAdded:e=>{n(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:void 0}]}))},onNewCompanyOfficerRemoved:e=>{n(W(e))},onCompanyOfficerUpdated:e=>{n(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:e.userId}]}))},updateFilesEntity:e=>{n(H({files:e}))},onDeleteFile:e=>{n(q(e))},onEditFileName:(e,a)=>{n(Y(e,a.split(".")[0]))}}}))(j);function de(){const n=w(),t=x(),i=k(),{tenantEmailDomain:l}=T(),[c,p]=g.useState(!1),[f,e]=g.useState(!1),a=O((s=>s.companyViewState.passportView.fetchState)),o=O((s=>s.companyConfigState.fetchState)),r=O((s=>h(s))),d=r.companyId??C.getSignedInUserTenant(l)?.companyId;if(C.getSignedInUser()==null)throw Error("Can't access company details page without signing in...");g.useEffect((()=>{c||a!=="Not-Started"||d==null||(p(!0),t(B(d)))}),[c,a,d,t]),g.useEffect((()=>{o==="Not-Started"&&t(M())}),[o,t]);const u=s=>{e(s)},y=a==="Not-Started"||a==="In-Progress"||o==="Not-Started"||o==="In-Progress";return d!=null&&a==="Error"?m.jsx(F,{onGoHome:()=>n("../",{replace:!0}),onReload:()=>window.location.reload()}):m.jsxs(m.Fragment,{children:[m.jsx(P,{analytics:V,onLoad:s=>s.trackPageLoaded(L.Event.companyPassport,N(i)?"Settings":"Company Passport")}),N(i)?m.jsx(X,{isAppContentDrawerOpen:f,handleDrawerToggle:u}):null,m.jsx(ee,{companyId:d,navigate:n,location:i,isLoading:y,currentTenant:r,isSettings:N(i),onClickMenuIcon:()=>{u(!0)}})]})}export{de as C};
@@ -1,4 +1,4 @@
1
- import{j as I}from"./liveblocks-DlLPx8qc.js";import{a as o}from"./sentry-DG6_iPE-.js";import{u as k,h as R,g as H,j as C,N as w}from"./core-DJg5tSgJ.js";import{UI as q,fI as z,go as G,p_ as V,gP as A,gn as Q,gl as B,V6 as J,gk as O}from"./zeni-epic-state-DWniLfut.js";import{u as K,z as E,L as D,G as M,F as W}from"./index-C_zXD4tY.js";import{n as X}from"./mui-D4cnbDJb.js";import{P as b,a as T}from"./AccountMappingScreen-x01KGJFi.js";import{t as Y}from"./getLocaleForTenant-C6KXnv3W.js";import{g as Z,Q as ee}from"./QBOConnectionScreen-okc2V_PU.js";import"./recharts-DDu3LMPw.js";import"./analytics-CLhIIMIj.js";import"./plaid-CX-W0kKb.js";import"./dnd-DJqaNdZQ.js";import"./stripe-cKAAJElX.js";import"./lottie-CgZ3326o.js";import"./lexical-0nYC3WJn.js";import"./pdf-BIYaUqkd.js";import"./utils-rAp4kjII.js";import"./MobileAppDrawer-Pu7ISVJn.js";import"./InboxNotificationsProvider-BImT8x5L.js";import"./useTaskManagerAccess-QUQG2mEV.js";import"./accountMappingHelper-EiDfaUYc.js";import"./empty-B4SAbwMR.js";import"./pdf-lib-WsHlrbj5.js";import"./index-BPNk3IZl.js";import"./url-BQCsEBGu.js";import"./index-DsG7KwoC.js";import"./decodeURIComponentSafe-DF-yguK5.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]="1bb11d62-3c5a-4b16-b9e4-d0c13df99c08",t._sentryDebugIdIdentifier="sentry-dbid-1bb11d62-3c5a-4b16-b9e4-d0c13df99c08")}catch{}})();const te=X.div`
1
+ import{j as I}from"./liveblocks-Vz4gvIdI.js";import{a as o}from"./sentry-Y8vuE8aQ.js";import{u as k,h as R,g as H,j as C,N as w}from"./core-GrVUbJGD.js";import{UI as q,fI as z,go as G,p_ as V,gP as A,gn as Q,gl as B,V6 as J,gk as O}from"./zeni-epic-state-COBHVss0.js";import{u as K,z as E,L as D,G as M,F as W}from"./index-eXyO65Ih.js";import{n as X}from"./mui-CuMgG_27.js";import{P as b,a as T}from"./AccountMappingScreen-C1RnOF0n.js";import{t as Y}from"./getLocaleForTenant-E8yaJhog.js";import{g as Z,Q as ee}from"./QBOConnectionScreen-Cllizgjx.js";import"./recharts-Cz5M2Ami.js";import"./analytics-B_BCmETJ.js";import"./plaid-DEbV2MCp.js";import"./dnd-Cc3q8XS9.js";import"./stripe-cKAAJElX.js";import"./lottie-7o7Nu0hF.js";import"./lexical-C0CQ8hW2.js";import"./pdf-Dl24vdfn.js";import"./utils-PKPkEQd5.js";import"./MobileAppDrawer-nKSb2sKG.js";import"./InboxNotificationsProvider-gHb6rSEv.js";import"./useTaskManagerAccess-gL3vn6YT.js";import"./accountMappingHelper-D5RLPl0Q.js";import"./empty-D0ciM-5y.js";import"./pdf-lib-fawjhojL.js";import"./index-CL0RkSdG.js";import"./url-DhQWTUYg.js";import"./index-quhlDe1C.js";import"./decodeURIComponentSafe-C1t-__r9.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]="1bb11d62-3c5a-4b16-b9e4-d0c13df99c08",t._sentryDebugIdIdentifier="sentry-dbid-1bb11d62-3c5a-4b16-b9e4-d0c13df99c08")}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-Vz4gvIdI.js";import{z as m}from"./index-eXyO65Ih.js";import{g as n}from"./QBOConnectionScreen-Cllizgjx.js";import"./sentry-Y8vuE8aQ.js";import{g as p,N as a}from"./core-GrVUbJGD.js";import"./zeni-epic-state-COBHVss0.js";import"./recharts-Cz5M2Ami.js";import"./mui-CuMgG_27.js";import"./analytics-B_BCmETJ.js";import"./plaid-DEbV2MCp.js";import"./dnd-Cc3q8XS9.js";import"./stripe-cKAAJElX.js";import"./lottie-7o7Nu0hF.js";import"./lexical-C0CQ8hW2.js";import"./pdf-Dl24vdfn.js";import"./utils-PKPkEQd5.js";import"./empty-D0ciM-5y.js";import"./pdf-lib-fawjhojL.js";import"./index-CL0RkSdG.js";import"./url-DhQWTUYg.js";import"./index-quhlDe1C.js";import"./decodeURIComponentSafe-C1t-__r9.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-DlLPx8qc.js";import{t as wn,A as $e}from"./AddressScreen-pU8bKkax.js";import Pn from"./NotFoundScreen-qpaowFoa.js";import{a as d,u as Me}from"./sentry-DG6_iPE-.js";import{h as _e,g as Te,u as se,i as xe,j as E,N as Q,q as An,l as cn,n as Dn,o as q}from"./core-DJg5tSgJ.js";import{fI as X,e1 as Ee,e0 as we,bq as jn,UZ as Bn,bT as Fn,pY as Un,BP as Vn,BS as Rn,Wm as Ln,Wn as Nn,ly as Oe,lB as dn,VB as Gn,c1 as $n,ca as fe,Ch as Pe,C2 as Mn,Wo as me,Ci as un,T7 as Qn,mL as ln,dk as pn,Wp as Wn,Wq as Kn,uP as zn,Vn as Ce,hZ as qn,Vm as be,hW as Hn,GO as Zn,uT as Jn,hO as Yn,hR as Qe,Wr as mn,Ws as Xn,ME as et,Wt as nt,MI as tt,BV as at,Wu as ot,Wv as st,lw as rt,lz as it,Cu as ct,C4 as gn,Cg as dt,bG as We,cG as ut,Ct as Ke,v6 as lt,uW as pt,mD as mt,gJ as gt,gI as ft,gH as yt,Ww as ht,BY as Ct,Cv as bt,Cy as St,CB as It,CH as kt,dl as Ot}from"./zeni-epic-state-DWniLfut.js";import{z as K,p as Ae,N as J,f as vt,l as z,a6 as re,k as g,aC as _t,ag as fn,_ as Tt,c as yn,M as hn,j as Y,U as ge,S as ve,aD as xt,F as ze,x as qe,ac as Et,aE as He,aF as wt,aG as Pt}from"./index-C_zXD4tY.js";import{n as De}from"./mui-D4cnbDJb.js";import{g as At,h as Dt,q as ie}from"./QBOConnectionScreen-okc2V_PU.js";import{u as jt,a as Bt}from"./useEmailConnectResultRefresh-CtIFhsBf.js";import{u as Ft}from"./useChargeCardPusherEvents-DDN5eLuU.js";import"./recharts-DDu3LMPw.js";import"./analytics-CLhIIMIj.js";import"./plaid-CX-W0kKb.js";import"./dnd-DJqaNdZQ.js";import"./stripe-cKAAJElX.js";import"./lottie-CgZ3326o.js";import"./lexical-0nYC3WJn.js";import"./pdf-BIYaUqkd.js";import"./utils-rAp4kjII.js";import"./empty-B4SAbwMR.js";import"./pdf-lib-WsHlrbj5.js";import"./index-BPNk3IZl.js";import"./url-BQCsEBGu.js";import"./index-DsG7KwoC.js";import"./decodeURIComponentSafe-DF-yguK5.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]="e77aa2bb-6af8-4854-8e9b-c28539778d7c",e._sentryDebugIdIdentifier="sentry-dbid-e77aa2bb-6af8-4854-8e9b-c28539778d7c")}catch{}})();const Ze=e=>{switch(e){case"Complete":return"yes";case"Pending Review":case"Incomplete":return"partially";default:return"no"}},Ut=()=>{const e=_e(),l=Te(),i=se(),[o,p]=d.useState(!1),[u,c]=d.useState(!1),{tenantEmailDomain:v}=xe(),n=K.getSignedInUser(),{useFeatureGate:t}=Ae(),{isFeatureEnabled:C}=t(J.isApAgingFeatureEnabled),{isFeatureEnabled:a}=t(J.isArAgingFeatureEnabled),{isFeatureEnabled:P}=t(J.isReferralFeatureEnabled),{isFeatureEnabled:w}=t(J.isDebitCardFeatureEnabled),k=vt(),O=E((S=>X(S))),A=E((S=>S.onboardingCustomerViewState.fetchState)),_=O.excludedResources,F=O.companyId??K.getSignedInUserTenant(v)?.companyId;if(n==null)throw Error("Can't access onboarding flow without signing in...");const m=Ee(w,O),b=we(O),D=[],V=_?.resources?.find((S=>S.resource==="/reports/top_expenses"))==null,h=_?.resources?.find((S=>S.resource==="/reports/task_card"))==null,r=O?.userRole!=null&&jn(O?.userRole),T=_?.resources?.find((S=>S.resource==="/bills"))==null&&!r,x=_?.resources?.find((S=>S.resource==="/reimbursements"))==null;V===!1&&D.push("top_expenses"),h===!1&&D.push("task_card"),T===!1&&D.push("bill_pay_card","bill_pay_promo_card"),x===!1&&D.push("reimbursement_card","reimbursement_promo_card"),D.push("zeni_accounts_promo_card","treasury_promo_card"),P===!1&&D.push("rewards_card");const f=E((S=>{const U=[];C===!1&&U.push("accounts_payable_aging"),a===!1&&U.push("accounts_receivable_aging"),U.push("zeni_accounts_promo_card","treasury_promo_card"),P===!1&&U.push("rewards_card"),k===!1&&U.push("expense_automation_card");const H=Bn(S,U);return Fn(H.reportsInOrder.map(($=>({fetchState:$.fetchState,error:$.error})))).fetchState}));d.useEffect((()=>{A!=="Completed"||o||m||b||(p(!0),i(Un(n.userId,F,O.tenantId,!0,!1,D)))}),[o,A,m,b,n,O.tenantId,i]);const j=d.useRef(!1),N=d.useCallback((()=>{const S={pathnameStackToGoBack:z(l.state?.pathnameStackToGoBack,l.pathname),message:"activation"};e(m?"../../checking":b?"../../cards":"../../dashboard",{state:S})}),[e,l,m,b]),G=d.useCallback((()=>{j.current||(j.current=!0,N())}),[N]);if(d.useEffect((()=>{const S=setTimeout((()=>c(!0)),3e3);return()=>clearTimeout(S)}),[]),d.useEffect((()=>{const S=setTimeout(G,6e3);return()=>clearTimeout(S)}),[G]),d.useEffect((()=>{m||b||!u||f!=="Completed"&&f!=="Error"||G()}),[u,f,m,b,G]),A!=="Completed")return s.jsx(Q,{to:"../"});const L=O.company?.companyOnboardingInfo?.onboardingInfo,ee={timeSinceQuoteSign:L?.onboardingTimeSinceQuoteSigned??"",timeSinceQuoteSignInMinutes:L?.onboardingToQuoteSignMinutes??0,isKybDone:Ze(L?.businessVerified?.status),isKycDone:Ze(L?.identityVerified?.status),paymentType:"",paymentSource:"",qboConnectionSource:L?.accountingConnectionCreationMode??""};return s.jsxs(s.Fragment,{children:[s.jsx(re,{analytics:g,onLoad:S=>S.trackOnboardingDashboardActivation(ee)}),s.jsx(_t,{show:!0,onComplete:G})]})},Se=["reading_books","finance_graph","reconciliation","cfo_foundation"],Ie=["llm_fine_tuning","rag_knowledge_graph","personalized_context"],Je=(e,l)=>{const i=new Map(e.map((o=>[o.key,o])));return l.map((o=>{return p=i.get(o)?.status,p==="starting"||p==="building"?p:"idle";var p}))},Ye=(e,l)=>{if(e.length===0)return!1;const i=new Map(e.map((o=>[o.key,o])));return l.every((o=>i.get(o)?.status==="ready"))},Xe=De.div`
1
+ import{j as s}from"./liveblocks-Vz4gvIdI.js";import{t as wn,A as $e}from"./AddressScreen-BMW5PBGV.js";import Pn from"./NotFoundScreen-lrXID2D2.js";import{a as d,u as Me}from"./sentry-Y8vuE8aQ.js";import{h as _e,g as Te,u as se,i as xe,j as E,N as Q,q as An,l as cn,n as Dn,o as q}from"./core-GrVUbJGD.js";import{fI as X,e1 as Ee,e0 as we,bq as jn,UZ as Bn,bT as Fn,pY as Un,BP as Vn,BS as Rn,Wm as Ln,Wn as Nn,ly as Oe,lB as dn,VB as Gn,c1 as $n,ca as fe,Ch as Pe,C2 as Mn,Wo as me,Ci as un,T7 as Qn,mL as ln,dk as pn,Wp as Wn,Wq as Kn,uP as zn,Vn as Ce,hZ as qn,Vm as be,hW as Hn,GO as Zn,uT as Jn,hO as Yn,hR as Qe,Wr as mn,Ws as Xn,ME as et,Wt as nt,MI as tt,BV as at,Wu as ot,Wv as st,lw as rt,lz as it,Cu as ct,C4 as gn,Cg as dt,bG as We,cG as ut,Ct as Ke,v6 as lt,uW as pt,mD as mt,gJ as gt,gI as ft,gH as yt,Ww as ht,BY as Ct,Cv as bt,Cy as St,CB as It,CH as kt,dl as Ot}from"./zeni-epic-state-COBHVss0.js";import{z as K,p as Ae,N as J,f as vt,l as z,a6 as re,k as g,aC as _t,ag as fn,_ as Tt,c as yn,M as hn,j as Y,U as ge,S as ve,aD as xt,F as ze,x as qe,ac as Et,aE as He,aF as wt,aG as Pt}from"./index-eXyO65Ih.js";import{n as De}from"./mui-CuMgG_27.js";import{g as At,h as Dt,q as ie}from"./QBOConnectionScreen-Cllizgjx.js";import{u as jt,a as Bt}from"./useEmailConnectResultRefresh-BbKupJnC.js";import{u as Ft}from"./useChargeCardPusherEvents-aMKf6KAu.js";import"./recharts-Cz5M2Ami.js";import"./analytics-B_BCmETJ.js";import"./plaid-DEbV2MCp.js";import"./dnd-Cc3q8XS9.js";import"./stripe-cKAAJElX.js";import"./lottie-7o7Nu0hF.js";import"./lexical-C0CQ8hW2.js";import"./pdf-Dl24vdfn.js";import"./utils-PKPkEQd5.js";import"./empty-D0ciM-5y.js";import"./pdf-lib-fawjhojL.js";import"./index-CL0RkSdG.js";import"./url-DhQWTUYg.js";import"./index-quhlDe1C.js";import"./decodeURIComponentSafe-C1t-__r9.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]="e77aa2bb-6af8-4854-8e9b-c28539778d7c",e._sentryDebugIdIdentifier="sentry-dbid-e77aa2bb-6af8-4854-8e9b-c28539778d7c")}catch{}})();const Ze=e=>{switch(e){case"Complete":return"yes";case"Pending Review":case"Incomplete":return"partially";default:return"no"}},Ut=()=>{const e=_e(),l=Te(),i=se(),[o,p]=d.useState(!1),[u,c]=d.useState(!1),{tenantEmailDomain:v}=xe(),n=K.getSignedInUser(),{useFeatureGate:t}=Ae(),{isFeatureEnabled:C}=t(J.isApAgingFeatureEnabled),{isFeatureEnabled:a}=t(J.isArAgingFeatureEnabled),{isFeatureEnabled:P}=t(J.isReferralFeatureEnabled),{isFeatureEnabled:w}=t(J.isDebitCardFeatureEnabled),k=vt(),O=E((S=>X(S))),A=E((S=>S.onboardingCustomerViewState.fetchState)),_=O.excludedResources,F=O.companyId??K.getSignedInUserTenant(v)?.companyId;if(n==null)throw Error("Can't access onboarding flow without signing in...");const m=Ee(w,O),b=we(O),D=[],V=_?.resources?.find((S=>S.resource==="/reports/top_expenses"))==null,h=_?.resources?.find((S=>S.resource==="/reports/task_card"))==null,r=O?.userRole!=null&&jn(O?.userRole),T=_?.resources?.find((S=>S.resource==="/bills"))==null&&!r,x=_?.resources?.find((S=>S.resource==="/reimbursements"))==null;V===!1&&D.push("top_expenses"),h===!1&&D.push("task_card"),T===!1&&D.push("bill_pay_card","bill_pay_promo_card"),x===!1&&D.push("reimbursement_card","reimbursement_promo_card"),D.push("zeni_accounts_promo_card","treasury_promo_card"),P===!1&&D.push("rewards_card");const f=E((S=>{const U=[];C===!1&&U.push("accounts_payable_aging"),a===!1&&U.push("accounts_receivable_aging"),U.push("zeni_accounts_promo_card","treasury_promo_card"),P===!1&&U.push("rewards_card"),k===!1&&U.push("expense_automation_card");const H=Bn(S,U);return Fn(H.reportsInOrder.map(($=>({fetchState:$.fetchState,error:$.error})))).fetchState}));d.useEffect((()=>{A!=="Completed"||o||m||b||(p(!0),i(Un(n.userId,F,O.tenantId,!0,!1,D)))}),[o,A,m,b,n,O.tenantId,i]);const j=d.useRef(!1),N=d.useCallback((()=>{const S={pathnameStackToGoBack:z(l.state?.pathnameStackToGoBack,l.pathname),message:"activation"};e(m?"../../checking":b?"../../cards":"../../dashboard",{state:S})}),[e,l,m,b]),G=d.useCallback((()=>{j.current||(j.current=!0,N())}),[N]);if(d.useEffect((()=>{const S=setTimeout((()=>c(!0)),3e3);return()=>clearTimeout(S)}),[]),d.useEffect((()=>{const S=setTimeout(G,6e3);return()=>clearTimeout(S)}),[G]),d.useEffect((()=>{m||b||!u||f!=="Completed"&&f!=="Error"||G()}),[u,f,m,b,G]),A!=="Completed")return s.jsx(Q,{to:"../"});const L=O.company?.companyOnboardingInfo?.onboardingInfo,ee={timeSinceQuoteSign:L?.onboardingTimeSinceQuoteSigned??"",timeSinceQuoteSignInMinutes:L?.onboardingToQuoteSignMinutes??0,isKybDone:Ze(L?.businessVerified?.status),isKycDone:Ze(L?.identityVerified?.status),paymentType:"",paymentSource:"",qboConnectionSource:L?.accountingConnectionCreationMode??""};return s.jsxs(s.Fragment,{children:[s.jsx(re,{analytics:g,onLoad:S=>S.trackOnboardingDashboardActivation(ee)}),s.jsx(_t,{show:!0,onComplete:G})]})},Se=["reading_books","finance_graph","reconciliation","cfo_foundation"],Ie=["llm_fine_tuning","rag_knowledge_graph","personalized_context"],Je=(e,l)=>{const i=new Map(e.map((o=>[o.key,o])));return l.map((o=>{return p=i.get(o)?.status,p==="starting"||p==="building"?p:"idle";var p}))},Ye=(e,l)=>{if(e.length===0)return!1;const i=new Map(e.map((o=>[o.key,o])));return l.every((o=>i.get(o)?.status==="ready"))},Xe=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-DlLPx8qc.js";import{i as Q,j as S,g as J,u as Z,h as ee,l as se,k as pa,n as St,o as F,N as On}from"./core-DJg5tSgJ.js";import{fI as L,WI as at,bG as K,br as xe,Yh as Tn,ke as wn,Yi as Ht,Yj as xn,kh as _t,Yk as Je,Yl as Pn,km as Fn,Ym as Wt,Yn as Rn,kq as kt,Yo as et,Yp as Bn,Yq as jn,X0 as Mn,ls as Yn,Yr as Ln,bn as nt,Ys as fa,XG as he,bc as ha,lG as ga,lp as ba,XI as ge,XH as oe,fH as Ca,gd as Un,gt as yt,Yt as Vn,Yu as Gn,Yv as Sa,lU as It,W1 as Le,di as Ue,EC as Nn,Yw as De,Ev as Ve,Ew as Ge,EV as Pe,EP as be,EA as Ne,Yx as qn,c1 as qe,Yy as zn,Yz as Kn,YA as _a,lZ as Et,ED as Zn,YB as Oe,YC as $n,ek as ot,AB as ka,YD as Qn,YE as ya,YF as Hn,YG as Wn,YH as Xn,YI as vt,VD as Dt,ul as Fe,m3 as Re,q1 as Ot,EG as Jn,YJ as le,F3 as Tt,AI as eo,AP as to,YK as ao,YL as no,Ex as Xt,YM as oo,AE as Te,Az as Aa,YN as Jt,YO as so,YP as wt,VC as xt,CM as Ia,YQ as ro,YR as Ea,YS as io,YT as co,YU as lo,YV as Pt,p$ as Ft,EF as uo,YW as de,C$ as mo,D6 as po,YX as fo,YY as ho,Ez as ea,YZ as go,CK as va,Y_ as ta,Y$ as bo,bq as Da,F8 as Oa,Z0 as Co,Z1 as Ta,Z2 as So,Z3 as _o,Z4 as ko,Z5 as Rt,q0 as Bt,EE as yo,Z6 as ue,F0 as Ao,F2 as Io,Z7 as Eo,Z8 as vo,Ey as aa,Z9 as Do,F6 as wa,Za as na,Zb as Oo,Zc as To,Zd as xa,q3 as Pa,C7 as wo,de as xo,pY as Po,UZ as Fo,qd as Ro,Ze as Bo,Zf as jo,Zg as Mo,b5 as jt,q7 as Yo,ih as Lo,gL as Uo,q6 as Vo,li as Go,q4 as No,q2 as qo,e1 as zo,e0 as Ko}from"./zeni-epic-state-DWniLfut.js";import{z as U,at as re,l as R,k as O,G as H,bc as Zo,aq as ze,a6 as Ke,bd as Fa,S as q,be as $o,bf as Ra,bg as Qo,bh as Ho,a as Ba,_ as ja,e as Ma,ap as Wo,bi as Xo,am as Jo,p as Ce,bj as Ya,y as me,bk as La,bl as Ua,as as Va,bm as es,ag as Ze,N as M,M as $e,bn as ts,I as as,bo as ns,f as os,j as ss,a2 as rs,ao as is,bp as cs,bq as ls,br as ds,bs as we}from"./index-C_zXD4tY.js";import{u as us,n as Mt}from"./mui-D4cnbDJb.js";import{a as b}from"./sentry-DG6_iPE-.js";import{w as Ga}from"./withTransactionSidePanel-CWVMVdKL.js";import{c as Na,t as Be,f as Se,b as Yt,a as Lt,v as ms}from"./routePaths-y2YMVrr7.js";import{u as ie}from"./useAskAiCfoHostNavButtonProps-CLMUyZJH.js";import Ye from"./NotFoundScreen-qpaowFoa.js";import{t as st}from"./reportTimeframe-BgsggeSc.js";import{u as Ut}from"./useInitialThreadRequest-CP4azMys.js";import{t as qa}from"./analyticsHelper-Dz9cGK89.js";import{C as ps}from"./CompanyPassportScreen-DR8iydrm.js";import{u as fs}from"./useAiCfoDashboardSuggestedQuestionsChips-m1qsPBxY.js";import{F as hs}from"./FeaturePreviewScreen--2ttfTQV.js";import"./recharts-DDu3LMPw.js";import"./analytics-CLhIIMIj.js";import"./plaid-CX-W0kKb.js";import"./dnd-DJqaNdZQ.js";import"./stripe-cKAAJElX.js";import"./lottie-CgZ3326o.js";import"./lexical-0nYC3WJn.js";import"./pdf-BIYaUqkd.js";import"./utils-rAp4kjII.js";import"./TransactionDetailScreen-C7syThvR.js";import"./decodeURIComponentSafe-DF-yguK5.js";import"./expenseAutomationHelper-BV5ky-OC.js";import"./stripSplatSuffix-Bp9kZoKb.js";import"./MobileAppDrawer-Pu7ISVJn.js";import"./InboxNotificationsProvider-BImT8x5L.js";import"./useTaskManagerAccess-QUQG2mEV.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]="1fd9062a-6506-4d5e-8b63-53c11be2fb3d",e._sentryDebugIdIdentifier="sentry-dbid-1fd9062a-6506-4d5e-8b63-53c11be2fb3d")}catch{}})();const gs=Ga((function({openTransactionPanel:e,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n}){const{vendorId:o,reportDate:r}=Q(),s=U.getSignedInUser(),i=S((D=>D.tenantState.currentTenantId)),c=S((D=>L(D))),{tenantEmailDomain:m}=Q(),u=J(),p=c?.companyName??"",h={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:i??""},l=b.useMemo((()=>({authParams:h,companyName:p,downloadEndPoint:`${re}/agingDetailedReport`,timezone:at()})),[]),f=b.useMemo((()=>r!=null?K(r):xe()),[r]),C=Z(),g=ee(),k=S((D=>Tn(D,f,o))),E=b.useCallback((()=>{o!=null&&k.fetchState!=="In-Progress"&&k.fetchState!=="Completed"&&C(wn(o,f))}),[f]),A=b.useCallback((()=>{g("../../",{relative:"path"})}),[]),_=b.useCallback(((D,w)=>{C(Ht({sortKey:D,sortOrder:w}))}),[]),x=b.useCallback((D=>{C(Ht({downloadState:D}))}),[]),V=b.useCallback((D=>{if(e)e(D.transactionId,D.transactionType);else if(m!=null){const w=Na({id:D.transactionId,type:D.transactionType},m);g(w);const y=R(u.state?.pathnameStackToGoBack,u.pathname);g(w,{state:{pathnameStackToGoBack:y}})}}),[m,e]),v=b.useCallback((()=>{k.vendor!=null&&O.trackApAgingDetail("AP Aging",f.format(H.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),k.vendor.id,k.vendor.name)}),[k.vendor,f]);return b.useEffect((()=>{E()}),[]),b.useEffect((()=>{k.fetchState==="Completed"&&v()}),[v,k.fetchState]),d.jsx(Zo,{apAgingDetail:k,downloadParams:l,reportDate:f,analytics:O,onTransactionClick:V,onReload:E,onBackClick:A,onColumnSortConfigChanged:_,updateDownloadStateHandler:x,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n})})),bs=()=>{const e=Z(),a=ee(),t=S((_=>xn(_))),{isAiCfoAccessEnabled:n,onAskAiCfoClick:o}=ie({mobileExploreReferrer:"AP Aging"});ze({isDataReady:t.fetchState==="Completed"});const r=U.getSignedInUser(),s=S((_=>_.tenantState.currentTenantId)),i=S((_=>L(_))),c=i?.companyName??"",m={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:s??""},u=b.useMemo((()=>({authParams:m,companyName:c,downloadEndPoint:`${re}/agingReport`,timezone:at()})),[]),p=t.apAgingUIState.selectedDate??xe(),h=b.useCallback((()=>{t.fetchState!=="In-Progress"&&t.fetchState!=="Completed"&&e(_t(p))}),[]);b.useEffect((()=>{h()}),[]);const l=b.useCallback((()=>{a("../",{relative:"path"})}),[]),f=b.useCallback((_=>{e(Je({searchString:_}))}),[]),C=b.useCallback(((_,x)=>{e(Je({sortKey:x,sortOrder:_}))}),[]),g=b.useCallback((_=>{a(`./${_}/${p.format(H.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`)}),[p]),k=b.useCallback((_=>{e(Je({downloadState:_}))}),[]),E=b.useCallback(((_,x)=>{}),[]),A=b.useCallback(((_,x)=>{e(Je({selectedDate:_,agingDateSelectionType:x})),e(_t(_))}),[]);return d.jsxs(d.Fragment,{children:[t.fetchState==="Completed"?d.jsx(Ke,{analytics:O,onLoad:_=>_.trackPageLoaded(q.Event.agingReport,"AP Aging")}):null,d.jsx(Fa,{uiState:t.apAgingUIState,report:t,downloadParams:u,analytics:O,onReloadReport:h,onBackClick:l,onSearchTextChange:f,onSortOrderChange:C,onEntityNameClick:g,updateDownloadStateHandler:k,onSelectedDateChanged:A,onNodeCollapseToggled:E,isAiCfoAccessEnabled:n,onAskAiCfoClick:o})]})},Cs=Ga((function({openTransactionPanel:e,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n}){const{customerId:o,reportDate:r}=Q(),s=U.getSignedInUser(),i=S((v=>L(v))),{tenantEmailDomain:c}=Q(),m=J(),u=i.companyName,p={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:i.tenantId},h=b.useMemo((()=>({authParams:p,companyName:u,downloadEndPoint:`${re}/agingDetailedReport`,timezone:at()})),[]),l=b.useMemo((()=>r!=null?K(r):xe()),[r]),f=Z(),C=ee(),g=S((v=>Pn(v,l,o))),k=b.useCallback((()=>{o!=null&&g.fetchState!=="In-Progress"&&g.fetchState!=="Completed"&&f(Fn(o,l))}),[l]),E=b.useCallback((()=>{C("../../",{relative:"path"})}),[]),A=b.useCallback(((v,D)=>{f(Wt({sortKey:v,sortOrder:D}))}),[]),_=b.useCallback((v=>{f(Wt({downloadState:v}))}),[]),x=b.useCallback((v=>{if(e)e(v.transactionId,v.transactionType);else if(c!=null){const D=Na({id:v.transactionId,type:v.transactionType},c);C(D);const w=R(m.state?.pathnameStackToGoBack,m.pathname);C(D,{state:{pathnameStackToGoBack:w}})}}),[c,e]),V=b.useCallback((()=>{g.customer!=null&&O.trackArAgingDetail("AR Aging",l.format(H.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),g.customer.id,g.customer.name)}),[g.customer,l]);return b.useEffect((()=>{k()}),[]),b.useEffect((()=>{g.fetchState==="Completed"&&V()}),[g.fetchState,V]),d.jsx($o,{arAgingDetail:g,downloadParams:h,reportDate:l,analytics:O,onTransactionClick:x,onReload:k,onBackClick:E,onColumnSortConfigChanged:A,updateDownloadStateHandler:_,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n})})),Ss=()=>{const e=Z(),a=ee(),t=S((A=>Rn(A))),{isAiCfoAccessEnabled:n,onAskAiCfoClick:o}=ie({mobileExploreReferrer:"AR Aging"});ze({isDataReady:t.fetchState==="Completed"});const r=U.getSignedInUser(),s=S((A=>L(A))),i=s.companyName,c={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:s.tenantId},m=b.useMemo((()=>({authParams:c,companyName:i,downloadEndPoint:`${re}/agingReport`,timezone:at()})),[]),u=t.arAgingUIState.selectedDate??xe(),p=b.useCallback((()=>{t.fetchState!=="In-Progress"&&t.fetchState!=="Completed"&&e(kt(u))}),[]);b.useEffect((()=>{p()}),[]);const h=b.useCallback((()=>{a("../",{relative:"path"})}),[]),l=b.useCallback((A=>{e(et({searchString:A}))}),[]),f=b.useCallback(((A,_)=>{e(et({sortKey:_,sortOrder:A}))}),[]),C=b.useCallback((A=>{a(`./${A}/${u.format(H.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`)}),[u]),g=b.useCallback((A=>{e(et({downloadState:A}))}),[]),k=b.useCallback(((A,_)=>{e(et({selectedDate:A,agingDateSelectionType:_})),e(kt(A))}),[]),E=b.useCallback(((A,_)=>{e(Bn({nodeId:A,isCollapsed:_}))}),[]);return d.jsxs(d.Fragment,{children:[t.fetchState==="Completed"?d.jsx(Ke,{analytics:O,onLoad:A=>A.trackPageLoaded(q.Event.agingReport,"AR Aging")}):null,d.jsx(Fa,{uiState:t.arAgingUIState,report:t,downloadParams:m,analytics:O,onReloadReport:p,onBackClick:h,onSearchTextChange:l,onSortOrderChange:f,onEntityNameClick:C,updateDownloadStateHandler:g,onSelectedDateChanged:k,onNodeCollapseToggled:E,isAiCfoAccessEnabled:n,onAskAiCfoClick:o})]})},za=(e,a)=>({key:a,title:e.accountName,amount:e.balance?.available,logoUri:e.logo?.toString(),source:e});function Ka(e,a){const t=Mn(a.firstMonthOfFY);return{onItemClick:(n,o)=>{const r=o.accountName===""?o.accountDescription:o.accountName,s=Be(a.tenantEmailDomain,o.accountId,o.accountType,r,"quarter",t,!1),i=R(a.location.state?.pathnameStackToGoBack,a.location.pathname);a.navigate(s,{state:{pathnameStackToGoBack:i,referrer:a.referrerType}})},onSetAccountsStatementDate:(n,o)=>{e(Yn(n,o))}}}const _s=se((function(e){const a=jn(e).accountsInOrder.map(((t,n)=>za(t,n)));return{sectionTitle:H.getLocalizedStrings().balanceCard.cashBalanceSectionTitle,transactionArray:a,fetchState:e.cashBalanceState.fetchState,analytics:O}}),Ka)(Ra),ks=se((function(e){const a=Ln(e).accountsInOrder.map(((o,r)=>za(o,r))),t=U.getSignedInUser(),n=nt(t);return{sectionTitle:H.getLocalizedStrings().balanceCard.cardBalanceSectionTitle,transactionArray:a,isZeniUser:n,fetchState:e.cardBalanceState.fetchState,analytics:O}}),Ka)(Ra);function ys(){const e=ee(),a=J(),{tenantEmailDomain:t}=Q(),n=S((o=>L(o).company?.companyInfo.firstMonthOfFY??1));return S((o=>o.cashBalanceState.fetchState))==="Error"?d.jsx(Ye,{}):d.jsx(_s,{tenantEmailDomain:t,location:a,referrerType:"Cash Balance",navigate:e,firstMonthOfFY:n})}function As(){const e=ee(),a=J(),{tenantEmailDomain:t}=Q(),n=S((o=>L(o).company?.companyInfo.firstMonthOfFY??1));return S((o=>o.cardBalanceState.fetchState))==="Error"?d.jsx(Ye,{}):d.jsx(ks,{tenantEmailDomain:t,location:a,referrerType:"Card Balance",navigate:e,firstMonthOfFY:n})}const Is=Mt.div`
1
+ import{j as d}from"./liveblocks-Vz4gvIdI.js";import{i as Q,j as S,g as J,u as Z,h as ee,l as se,k as pa,n as St,o as F,N as On}from"./core-GrVUbJGD.js";import{fI as L,WI as at,bG as K,br as xe,Yh as Tn,ke as wn,Yi as Ht,Yj as xn,kh as _t,Yk as Je,Yl as Pn,km as Fn,Ym as Wt,Yn as Rn,kq as kt,Yo as et,Yp as Bn,Yq as jn,X0 as Mn,ls as Yn,Yr as Ln,bn as nt,Ys as fa,XG as he,bc as ha,lG as ga,lp as ba,XI as ge,XH as oe,fH as Ca,gd as Un,gt as yt,Yt as Vn,Yu as Gn,Yv as Sa,lU as It,W1 as Le,di as Ue,EC as Nn,Yw as De,Ev as Ve,Ew as Ge,EV as Pe,EP as be,EA as Ne,Yx as qn,c1 as qe,Yy as zn,Yz as Kn,YA as _a,lZ as Et,ED as Zn,YB as Oe,YC as $n,ek as ot,AB as ka,YD as Qn,YE as ya,YF as Hn,YG as Wn,YH as Xn,YI as vt,VD as Dt,ul as Fe,m3 as Re,q1 as Ot,EG as Jn,YJ as le,F3 as Tt,AI as eo,AP as to,YK as ao,YL as no,Ex as Xt,YM as oo,AE as Te,Az as Aa,YN as Jt,YO as so,YP as wt,VC as xt,CM as Ia,YQ as ro,YR as Ea,YS as io,YT as co,YU as lo,YV as Pt,p$ as Ft,EF as uo,YW as de,C$ as mo,D6 as po,YX as fo,YY as ho,Ez as ea,YZ as go,CK as va,Y_ as ta,Y$ as bo,bq as Da,F8 as Oa,Z0 as Co,Z1 as Ta,Z2 as So,Z3 as _o,Z4 as ko,Z5 as Rt,q0 as Bt,EE as yo,Z6 as ue,F0 as Ao,F2 as Io,Z7 as Eo,Z8 as vo,Ey as aa,Z9 as Do,F6 as wa,Za as na,Zb as Oo,Zc as To,Zd as xa,q3 as Pa,C7 as wo,de as xo,pY as Po,UZ as Fo,qd as Ro,Ze as Bo,Zf as jo,Zg as Mo,b5 as jt,q7 as Yo,ih as Lo,gL as Uo,q6 as Vo,li as Go,q4 as No,q2 as qo,e1 as zo,e0 as Ko}from"./zeni-epic-state-COBHVss0.js";import{z as U,at as re,l as R,k as O,G as H,bc as Zo,aq as ze,a6 as Ke,bd as Fa,S as q,be as $o,bf as Ra,bg as Qo,bh as Ho,a as Ba,_ as ja,e as Ma,ap as Wo,bi as Xo,am as Jo,p as Ce,bj as Ya,y as me,bk as La,bl as Ua,as as Va,bm as es,ag as Ze,N as M,M as $e,bn as ts,I as as,bo as ns,f as os,j as ss,a2 as rs,ao as is,bp as cs,bq as ls,br as ds,bs as we}from"./index-eXyO65Ih.js";import{u as us,n as Mt}from"./mui-CuMgG_27.js";import{a as b}from"./sentry-Y8vuE8aQ.js";import{w as Ga}from"./withTransactionSidePanel-D9vq13QQ.js";import{c as Na,t as Be,f as Se,b as Yt,a as Lt,v as ms}from"./routePaths-C4nWRb1J.js";import{u as ie}from"./useAskAiCfoHostNavButtonProps-Gb5FxzST.js";import Ye from"./NotFoundScreen-lrXID2D2.js";import{t as st}from"./reportTimeframe-B4ojXbeQ.js";import{u as Ut}from"./useInitialThreadRequest-zNumU9hI.js";import{t as qa}from"./analyticsHelper-CY3FldM6.js";import{C as ps}from"./CompanyPassportScreen-BWtavadn.js";import{u as fs}from"./useAiCfoDashboardSuggestedQuestionsChips-KYBucxDc.js";import{F as hs}from"./FeaturePreviewScreen-DZWG45PX.js";import"./recharts-Cz5M2Ami.js";import"./analytics-B_BCmETJ.js";import"./plaid-DEbV2MCp.js";import"./dnd-Cc3q8XS9.js";import"./stripe-cKAAJElX.js";import"./lottie-7o7Nu0hF.js";import"./lexical-C0CQ8hW2.js";import"./pdf-Dl24vdfn.js";import"./utils-PKPkEQd5.js";import"./TransactionDetailScreen-BeMygB7E.js";import"./decodeURIComponentSafe-C1t-__r9.js";import"./expenseAutomationHelper-BqqNQc4E.js";import"./stripSplatSuffix-DBJKfIbL.js";import"./MobileAppDrawer-nKSb2sKG.js";import"./InboxNotificationsProvider-gHb6rSEv.js";import"./useTaskManagerAccess-gL3vn6YT.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]="1fd9062a-6506-4d5e-8b63-53c11be2fb3d",e._sentryDebugIdIdentifier="sentry-dbid-1fd9062a-6506-4d5e-8b63-53c11be2fb3d")}catch{}})();const gs=Ga((function({openTransactionPanel:e,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n}){const{vendorId:o,reportDate:r}=Q(),s=U.getSignedInUser(),i=S((D=>D.tenantState.currentTenantId)),c=S((D=>L(D))),{tenantEmailDomain:m}=Q(),u=J(),p=c?.companyName??"",h={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:i??""},l=b.useMemo((()=>({authParams:h,companyName:p,downloadEndPoint:`${re}/agingDetailedReport`,timezone:at()})),[]),f=b.useMemo((()=>r!=null?K(r):xe()),[r]),C=Z(),g=ee(),k=S((D=>Tn(D,f,o))),E=b.useCallback((()=>{o!=null&&k.fetchState!=="In-Progress"&&k.fetchState!=="Completed"&&C(wn(o,f))}),[f]),A=b.useCallback((()=>{g("../../",{relative:"path"})}),[]),_=b.useCallback(((D,w)=>{C(Ht({sortKey:D,sortOrder:w}))}),[]),x=b.useCallback((D=>{C(Ht({downloadState:D}))}),[]),V=b.useCallback((D=>{if(e)e(D.transactionId,D.transactionType);else if(m!=null){const w=Na({id:D.transactionId,type:D.transactionType},m);g(w);const y=R(u.state?.pathnameStackToGoBack,u.pathname);g(w,{state:{pathnameStackToGoBack:y}})}}),[m,e]),v=b.useCallback((()=>{k.vendor!=null&&O.trackApAgingDetail("AP Aging",f.format(H.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),k.vendor.id,k.vendor.name)}),[k.vendor,f]);return b.useEffect((()=>{E()}),[]),b.useEffect((()=>{k.fetchState==="Completed"&&v()}),[v,k.fetchState]),d.jsx(Zo,{apAgingDetail:k,downloadParams:l,reportDate:f,analytics:O,onTransactionClick:V,onReload:E,onBackClick:A,onColumnSortConfigChanged:_,updateDownloadStateHandler:x,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n})})),bs=()=>{const e=Z(),a=ee(),t=S((_=>xn(_))),{isAiCfoAccessEnabled:n,onAskAiCfoClick:o}=ie({mobileExploreReferrer:"AP Aging"});ze({isDataReady:t.fetchState==="Completed"});const r=U.getSignedInUser(),s=S((_=>_.tenantState.currentTenantId)),i=S((_=>L(_))),c=i?.companyName??"",m={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:s??""},u=b.useMemo((()=>({authParams:m,companyName:c,downloadEndPoint:`${re}/agingReport`,timezone:at()})),[]),p=t.apAgingUIState.selectedDate??xe(),h=b.useCallback((()=>{t.fetchState!=="In-Progress"&&t.fetchState!=="Completed"&&e(_t(p))}),[]);b.useEffect((()=>{h()}),[]);const l=b.useCallback((()=>{a("../",{relative:"path"})}),[]),f=b.useCallback((_=>{e(Je({searchString:_}))}),[]),C=b.useCallback(((_,x)=>{e(Je({sortKey:x,sortOrder:_}))}),[]),g=b.useCallback((_=>{a(`./${_}/${p.format(H.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`)}),[p]),k=b.useCallback((_=>{e(Je({downloadState:_}))}),[]),E=b.useCallback(((_,x)=>{}),[]),A=b.useCallback(((_,x)=>{e(Je({selectedDate:_,agingDateSelectionType:x})),e(_t(_))}),[]);return d.jsxs(d.Fragment,{children:[t.fetchState==="Completed"?d.jsx(Ke,{analytics:O,onLoad:_=>_.trackPageLoaded(q.Event.agingReport,"AP Aging")}):null,d.jsx(Fa,{uiState:t.apAgingUIState,report:t,downloadParams:u,analytics:O,onReloadReport:h,onBackClick:l,onSearchTextChange:f,onSortOrderChange:C,onEntityNameClick:g,updateDownloadStateHandler:k,onSelectedDateChanged:A,onNodeCollapseToggled:E,isAiCfoAccessEnabled:n,onAskAiCfoClick:o})]})},Cs=Ga((function({openTransactionPanel:e,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n}){const{customerId:o,reportDate:r}=Q(),s=U.getSignedInUser(),i=S((v=>L(v))),{tenantEmailDomain:c}=Q(),m=J(),u=i.companyName,p={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:i.tenantId},h=b.useMemo((()=>({authParams:p,companyName:u,downloadEndPoint:`${re}/agingDetailedReport`,timezone:at()})),[]),l=b.useMemo((()=>r!=null?K(r):xe()),[r]),f=Z(),C=ee(),g=S((v=>Pn(v,l,o))),k=b.useCallback((()=>{o!=null&&g.fetchState!=="In-Progress"&&g.fetchState!=="Completed"&&f(Fn(o,l))}),[l]),E=b.useCallback((()=>{C("../../",{relative:"path"})}),[]),A=b.useCallback(((v,D)=>{f(Wt({sortKey:v,sortOrder:D}))}),[]),_=b.useCallback((v=>{f(Wt({downloadState:v}))}),[]),x=b.useCallback((v=>{if(e)e(v.transactionId,v.transactionType);else if(c!=null){const D=Na({id:v.transactionId,type:v.transactionType},c);C(D);const w=R(m.state?.pathnameStackToGoBack,m.pathname);C(D,{state:{pathnameStackToGoBack:w}})}}),[c,e]),V=b.useCallback((()=>{g.customer!=null&&O.trackArAgingDetail("AR Aging",l.format(H.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),g.customer.id,g.customer.name)}),[g.customer,l]);return b.useEffect((()=>{k()}),[]),b.useEffect((()=>{g.fetchState==="Completed"&&V()}),[g.fetchState,V]),d.jsx($o,{arAgingDetail:g,downloadParams:h,reportDate:l,analytics:O,onTransactionClick:x,onReload:k,onBackClick:E,onColumnSortConfigChanged:A,updateDownloadStateHandler:_,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n})})),Ss=()=>{const e=Z(),a=ee(),t=S((A=>Rn(A))),{isAiCfoAccessEnabled:n,onAskAiCfoClick:o}=ie({mobileExploreReferrer:"AR Aging"});ze({isDataReady:t.fetchState==="Completed"});const r=U.getSignedInUser(),s=S((A=>L(A))),i=s.companyName,c={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:s.tenantId},m=b.useMemo((()=>({authParams:c,companyName:i,downloadEndPoint:`${re}/agingReport`,timezone:at()})),[]),u=t.arAgingUIState.selectedDate??xe(),p=b.useCallback((()=>{t.fetchState!=="In-Progress"&&t.fetchState!=="Completed"&&e(kt(u))}),[]);b.useEffect((()=>{p()}),[]);const h=b.useCallback((()=>{a("../",{relative:"path"})}),[]),l=b.useCallback((A=>{e(et({searchString:A}))}),[]),f=b.useCallback(((A,_)=>{e(et({sortKey:_,sortOrder:A}))}),[]),C=b.useCallback((A=>{a(`./${A}/${u.format(H.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`)}),[u]),g=b.useCallback((A=>{e(et({downloadState:A}))}),[]),k=b.useCallback(((A,_)=>{e(et({selectedDate:A,agingDateSelectionType:_})),e(kt(A))}),[]),E=b.useCallback(((A,_)=>{e(Bn({nodeId:A,isCollapsed:_}))}),[]);return d.jsxs(d.Fragment,{children:[t.fetchState==="Completed"?d.jsx(Ke,{analytics:O,onLoad:A=>A.trackPageLoaded(q.Event.agingReport,"AR Aging")}):null,d.jsx(Fa,{uiState:t.arAgingUIState,report:t,downloadParams:m,analytics:O,onReloadReport:p,onBackClick:h,onSearchTextChange:l,onSortOrderChange:f,onEntityNameClick:C,updateDownloadStateHandler:g,onSelectedDateChanged:k,onNodeCollapseToggled:E,isAiCfoAccessEnabled:n,onAskAiCfoClick:o})]})},za=(e,a)=>({key:a,title:e.accountName,amount:e.balance?.available,logoUri:e.logo?.toString(),source:e});function Ka(e,a){const t=Mn(a.firstMonthOfFY);return{onItemClick:(n,o)=>{const r=o.accountName===""?o.accountDescription:o.accountName,s=Be(a.tenantEmailDomain,o.accountId,o.accountType,r,"quarter",t,!1),i=R(a.location.state?.pathnameStackToGoBack,a.location.pathname);a.navigate(s,{state:{pathnameStackToGoBack:i,referrer:a.referrerType}})},onSetAccountsStatementDate:(n,o)=>{e(Yn(n,o))}}}const _s=se((function(e){const a=jn(e).accountsInOrder.map(((t,n)=>za(t,n)));return{sectionTitle:H.getLocalizedStrings().balanceCard.cashBalanceSectionTitle,transactionArray:a,fetchState:e.cashBalanceState.fetchState,analytics:O}}),Ka)(Ra),ks=se((function(e){const a=Ln(e).accountsInOrder.map(((o,r)=>za(o,r))),t=U.getSignedInUser(),n=nt(t);return{sectionTitle:H.getLocalizedStrings().balanceCard.cardBalanceSectionTitle,transactionArray:a,isZeniUser:n,fetchState:e.cardBalanceState.fetchState,analytics:O}}),Ka)(Ra);function ys(){const e=ee(),a=J(),{tenantEmailDomain:t}=Q(),n=S((o=>L(o).company?.companyInfo.firstMonthOfFY??1));return S((o=>o.cashBalanceState.fetchState))==="Error"?d.jsx(Ye,{}):d.jsx(_s,{tenantEmailDomain:t,location:a,referrerType:"Cash Balance",navigate:e,firstMonthOfFY:n})}function As(){const e=ee(),a=J(),{tenantEmailDomain:t}=Q(),n=S((o=>L(o).company?.companyInfo.firstMonthOfFY??1));return S((o=>o.cardBalanceState.fetchState))==="Error"?d.jsx(Ye,{}):d.jsx(ks,{tenantEmailDomain:t,location:a,referrerType:"Card Balance",navigate:e,firstMonthOfFY:n})}const Is=Mt.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-DlLPx8qc.js";import{a as u}from"./sentry-DG6_iPE-.js";import{u as y,j as b,l as U,g as w,N as A}from"./core-DJg5tSgJ.js";import{UI as N,fI as _,go as k,UJ as L,p_ as R,UK as z}from"./zeni-epic-state-DWniLfut.js";import{u as j,z as f,L as T,t as I,G as O,b as $}from"./index-C_zXD4tY.js";import"./mui-D4cnbDJb.js";import{t as P}from"./getLocaleForTenant-C6KXnv3W.js";import"./recharts-DDu3LMPw.js";import"./analytics-CLhIIMIj.js";import"./plaid-CX-W0kKb.js";import"./dnd-DJqaNdZQ.js";import"./stripe-cKAAJElX.js";import"./lottie-CgZ3326o.js";import"./lexical-0nYC3WJn.js";import"./pdf-BIYaUqkd.js";import"./utils-rAp4kjII.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]="5876a3e0-630d-47ad-8f21-53fcfe1f3524",t._sentryDebugIdIdentifier="sentry-dbid-5876a3e0-630d-47ad-8f21-53fcfe1f3524")}catch{}})();const G=U((function(t){return{fetchState:t.tenantState.fetchState,activeTenantFetchState:t.tenantState.activeTenantFetchState.fetchState,currentTenant:_(t),tenantsInOrder:z(t).tenantsInOrder}}))((function({fetchState:t,activeTenantFetchState:s,currentTenant:o,tenantsInOrder:h}){const r=w(),p=new URLSearchParams(r.search);if(o==null||t!=="Completed"&&s!=="Completed")return null;{let m="";const n=h.map((l=>l.tenantEmailDomain)),i=r.state?.origin,a=r.state?.queryParams;let c=`../${o.tenantEmailDomain}`,d=null,e=!1,g=null,S=null;const C=E(r.pathname);if(C!=null)c=`../${o.tenantEmailDomain}/${C}`,m="comingFromV2UrlPath",C==="ai-cfo/explore"&&(d=p.get("question")?.replace(/^["']|["']$/g,"")??null,e=p.get("should_submit")==="true");else if(i!=null)if(n.reduce(((l,F)=>l||i.split("/").find((D=>D===F))!=null),!1))c=i,i.includes("ai-cfo")&&a!=null&&(g=a.aiCfoRef??null,S=a.aiCfoEmailRefId??null);else{const l=E(i);l!=null?(c=`../${o.tenantEmailDomain}/${l}`,m="comingFromV2UrlPath",l==="ai-cfo/explore"&&a!=null&&(a.aiCfoQuestion!=null&&(d=a.aiCfoQuestion),a.aiCfoShouldSubmit==="true"&&(e=!0))):console.warn("Don't have access to previous path tenant!")}const x=$(c,p);return v.jsx(A,{to:x,replace:!0,state:{...r.state,origin:"",message:m,aiCfoInitialQuestion:d,aiCfoShouldSubmit:e,aiCfoRef:g,aiCfoEmailRefId:S}})}}));function oe(){const t=y(),{setLoading:s,clearAllLoading:o}=j(),h=u.useRef(!1),r=u.useRef(!1),p=u.useRef(null),m=b((e=>N(e))),n=b((e=>e.tenantState.fetchState)),i=b((e=>e.tenantState.error)),a=b((e=>e.tenantState.activeTenantFetchState.fetchState)),c=b((e=>_(e))),d=f.getSignedInUser();return u.useLayoutEffect((()=>{const e=f.getActiveTenantForUser()?.tenantId??null;p.current!==e&&(p.current=e,h.current=!1,r.current=!1,s(T.TENANT_FETCHING)),!h.current||a!=="Completed"&&a!=="Error"||(h.current=!1),!r.current||n!=="Completed"&&n!=="Error"||(r.current=!1)}),[a,n]),u.useEffect((()=>{const e=f.getActiveTenantForUser()?.tenantId;h.current===!1&&d!=null&&e!=null&&I.shouldFetchActiveTenant(e)&&(h.current=!0,I.markActiveTenantFetchStarted(e),n==="Completed"||a!=="Not-Started"&&a!=="Error"||(s(T.TENANT_FETCHING),t(k(d.userId,e))))}),[n,a,d,t]),u.useEffect((()=>{const e=f.getSignedInUser(),g=f.getActiveTenantForUser()?.tenantId,S=g==null||a==="Completed"||a==="Error";r.current===!1&&e!=null&&S&&I.shouldFetchAllTenants()&&(r.current=!0,I.markAllTenantsFetchStarted(),(n==="Not-Started"||n==="Error"&&!L(i))&&t(R(e.userId)))}),[n,a,i,d,t]),u.useEffect((()=>{f.isSignedIn()&&n==="Completed"&&m.tenantsCoreDetailsInOrder.length>0&&(f.saveSignedInUserTenants(m.tenantsCoreDetailsInOrder),o())}),[m.tenantsCoreDetailsInOrder,n]),u.useEffect((()=>{!f.isSignedIn()||n!=="Completed"&&a!=="Completed"||c==null||(O.updateAppLocaleID(P(c)),o())}),[n,a,c]),v.jsx(G,{})}const Q=["dashboard/cash-balance","dashboard/card-balance","dashboard/operating-expenses","dashboard/revenue","dashboard/burn-rate","dashboard/cash-position","dashboard/top-expenses","dashboard/cash-in-cash-out","dashboard","reports","forecast","uncategorized-expense","uncategorized-income","missing-receipts","bills","cards/activate","cards","reimbursements","wise","checking","aicfo"],q={"dashboard/cash-balance":"dashboard/cash_balance","dashboard/card-balance":"dashboard/card_balance","dashboard/operating-expenses":"dashboard/operating_expenses","dashboard/revenue":"dashboard/revenue","dashboard/burn-rate":"dashboard/net_burn_or_income","dashboard/cash-position":"dashboard/cash_position","dashboard/top-expenses":"dashboard/top_expenses","dashboard/cash-in-cash-out":"dashboard/cash_in_cash_out",dashboard:"dashboard",reports:"reports",forecast:"forecast","uncategorized-expense":"transactions/uncategorized-expense","uncategorized-income":"transactions/uncategorized-income","missing-receipts":"transactions/missing-receipts",bills:"bills",reimbursements:"reimbursements","cards/activate":"cards/activate",cards:"cards",wise:"bills/wise/callback/link-account",checking:"checking",aicfo:"ai-cfo/explore"};function E(t){for(const s of Q)if(t.toLocaleLowerCase().includes(s))return q[s]}export{oe as default};
1
+ import{j as v}from"./liveblocks-Vz4gvIdI.js";import{a as u}from"./sentry-Y8vuE8aQ.js";import{u as y,j as b,l as U,g as w,N as A}from"./core-GrVUbJGD.js";import{UI as N,fI as _,go as k,UJ as L,p_ as R,UK as z}from"./zeni-epic-state-COBHVss0.js";import{u as j,z as f,L as T,t as I,G as O,b as $}from"./index-eXyO65Ih.js";import"./mui-CuMgG_27.js";import{t as P}from"./getLocaleForTenant-E8yaJhog.js";import"./recharts-Cz5M2Ami.js";import"./analytics-B_BCmETJ.js";import"./plaid-DEbV2MCp.js";import"./dnd-Cc3q8XS9.js";import"./stripe-cKAAJElX.js";import"./lottie-7o7Nu0hF.js";import"./lexical-C0CQ8hW2.js";import"./pdf-Dl24vdfn.js";import"./utils-PKPkEQd5.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]="5876a3e0-630d-47ad-8f21-53fcfe1f3524",t._sentryDebugIdIdentifier="sentry-dbid-5876a3e0-630d-47ad-8f21-53fcfe1f3524")}catch{}})();const G=U((function(t){return{fetchState:t.tenantState.fetchState,activeTenantFetchState:t.tenantState.activeTenantFetchState.fetchState,currentTenant:_(t),tenantsInOrder:z(t).tenantsInOrder}}))((function({fetchState:t,activeTenantFetchState:s,currentTenant:o,tenantsInOrder:h}){const r=w(),p=new URLSearchParams(r.search);if(o==null||t!=="Completed"&&s!=="Completed")return null;{let m="";const n=h.map((l=>l.tenantEmailDomain)),i=r.state?.origin,a=r.state?.queryParams;let c=`../${o.tenantEmailDomain}`,d=null,e=!1,g=null,S=null;const C=E(r.pathname);if(C!=null)c=`../${o.tenantEmailDomain}/${C}`,m="comingFromV2UrlPath",C==="ai-cfo/explore"&&(d=p.get("question")?.replace(/^["']|["']$/g,"")??null,e=p.get("should_submit")==="true");else if(i!=null)if(n.reduce(((l,F)=>l||i.split("/").find((D=>D===F))!=null),!1))c=i,i.includes("ai-cfo")&&a!=null&&(g=a.aiCfoRef??null,S=a.aiCfoEmailRefId??null);else{const l=E(i);l!=null?(c=`../${o.tenantEmailDomain}/${l}`,m="comingFromV2UrlPath",l==="ai-cfo/explore"&&a!=null&&(a.aiCfoQuestion!=null&&(d=a.aiCfoQuestion),a.aiCfoShouldSubmit==="true"&&(e=!0))):console.warn("Don't have access to previous path tenant!")}const x=$(c,p);return v.jsx(A,{to:x,replace:!0,state:{...r.state,origin:"",message:m,aiCfoInitialQuestion:d,aiCfoShouldSubmit:e,aiCfoRef:g,aiCfoEmailRefId:S}})}}));function oe(){const t=y(),{setLoading:s,clearAllLoading:o}=j(),h=u.useRef(!1),r=u.useRef(!1),p=u.useRef(null),m=b((e=>N(e))),n=b((e=>e.tenantState.fetchState)),i=b((e=>e.tenantState.error)),a=b((e=>e.tenantState.activeTenantFetchState.fetchState)),c=b((e=>_(e))),d=f.getSignedInUser();return u.useLayoutEffect((()=>{const e=f.getActiveTenantForUser()?.tenantId??null;p.current!==e&&(p.current=e,h.current=!1,r.current=!1,s(T.TENANT_FETCHING)),!h.current||a!=="Completed"&&a!=="Error"||(h.current=!1),!r.current||n!=="Completed"&&n!=="Error"||(r.current=!1)}),[a,n]),u.useEffect((()=>{const e=f.getActiveTenantForUser()?.tenantId;h.current===!1&&d!=null&&e!=null&&I.shouldFetchActiveTenant(e)&&(h.current=!0,I.markActiveTenantFetchStarted(e),n==="Completed"||a!=="Not-Started"&&a!=="Error"||(s(T.TENANT_FETCHING),t(k(d.userId,e))))}),[n,a,d,t]),u.useEffect((()=>{const e=f.getSignedInUser(),g=f.getActiveTenantForUser()?.tenantId,S=g==null||a==="Completed"||a==="Error";r.current===!1&&e!=null&&S&&I.shouldFetchAllTenants()&&(r.current=!0,I.markAllTenantsFetchStarted(),(n==="Not-Started"||n==="Error"&&!L(i))&&t(R(e.userId)))}),[n,a,i,d,t]),u.useEffect((()=>{f.isSignedIn()&&n==="Completed"&&m.tenantsCoreDetailsInOrder.length>0&&(f.saveSignedInUserTenants(m.tenantsCoreDetailsInOrder),o())}),[m.tenantsCoreDetailsInOrder,n]),u.useEffect((()=>{!f.isSignedIn()||n!=="Completed"&&a!=="Completed"||c==null||(O.updateAppLocaleID(P(c)),o())}),[n,a,c]),v.jsx(G,{})}const Q=["dashboard/cash-balance","dashboard/card-balance","dashboard/operating-expenses","dashboard/revenue","dashboard/burn-rate","dashboard/cash-position","dashboard/top-expenses","dashboard/cash-in-cash-out","dashboard","reports","forecast","uncategorized-expense","uncategorized-income","missing-receipts","bills","cards/activate","cards","reimbursements","wise","checking","aicfo"],q={"dashboard/cash-balance":"dashboard/cash_balance","dashboard/card-balance":"dashboard/card_balance","dashboard/operating-expenses":"dashboard/operating_expenses","dashboard/revenue":"dashboard/revenue","dashboard/burn-rate":"dashboard/net_burn_or_income","dashboard/cash-position":"dashboard/cash_position","dashboard/top-expenses":"dashboard/top_expenses","dashboard/cash-in-cash-out":"dashboard/cash_in_cash_out",dashboard:"dashboard",reports:"reports",forecast:"forecast","uncategorized-expense":"transactions/uncategorized-expense","uncategorized-income":"transactions/uncategorized-income","missing-receipts":"transactions/missing-receipts",bills:"bills",reimbursements:"reimbursements","cards/activate":"cards/activate",cards:"cards",wise:"bills/wise/callback/link-account",checking:"checking",aicfo:"ai-cfo/explore"};function E(t){for(const s of Q)if(t.toLocaleLowerCase().includes(s))return q[s]}export{oe as default};
@@ -1,4 +1,4 @@
1
- import{j as l}from"./liveblocks-DlLPx8qc.js";import{h as w,g as C,j as h,l as A,i as V}from"./core-DJg5tSgJ.js";import{ZW as k,_1 as W,gJ as X,gI as J,gH as Q,kT as q,XH as K,uZ as L,fI as B,Zt as D,kR as T,ZX as S,_4 as F,kP as G,la as j}from"./zeni-epic-state-DWniLfut.js";import{bO as M,_ as R,p as N,z as Z,a2 as p,N as v,a5 as _,bP as Y,F as U,bQ as ee,l as te}from"./index-C_zXD4tY.js";import{u as H,n as O}from"./mui-D4cnbDJb.js";import"./sentry-DG6_iPE-.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]="f426f1ed-a293-405b-a0d5-ef3622153fed",e._sentryDebugIdIdentifier="sentry-dbid-f426f1ed-a293-405b-a0d5-ef3622153fed")}catch{}})();const ae=A(null,(function(e,t){return{onSaveVendor:a=>{e(q(t.vendorId!==void 0?t.vendorId:void 0,t.billId,void 0,t.isExpressPayPage)),e(K("common")),a!=null&&e(L(a))},onGetOtp:a=>{e(Q(a,"BillPayVendor"))},onResendOtp:a=>{e(J(a,"BillPayVendor"))},onVerifyOtp:(a,n)=>{e(X(a,n,"BillPayVendor"))},onVerifyOtpSuccess:(a,n,o)=>{e(W(a,n,o))}}}))(M);function z({vendorId:e,billId:t,isExpressPayPage:a}){const n=w(),o=C(),s=h((r=>k(r,e)));return l.jsx(ae,{location:o,navigate:n,vendorId:e,billId:t,vendorViewDetails:s,isExpressPayPage:a??!1})}const ne=O.div`
1
+ import{j as l}from"./liveblocks-Vz4gvIdI.js";import{h as w,g as C,j as h,l as A,i as V}from"./core-GrVUbJGD.js";import{ZW as k,_1 as W,gJ as X,gI as J,gH as Q,kT as q,XH as K,uZ as L,fI as B,Zt as D,kR as T,ZX as S,_4 as F,kP as G,la as j}from"./zeni-epic-state-COBHVss0.js";import{bO as M,_ as R,p as N,z as Z,a2 as p,N as v,a5 as _,bP as Y,F as U,bQ as ee,l as te}from"./index-eXyO65Ih.js";import{u as H,n as O}from"./mui-CuMgG_27.js";import"./sentry-Y8vuE8aQ.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]="f426f1ed-a293-405b-a0d5-ef3622153fed",e._sentryDebugIdIdentifier="sentry-dbid-f426f1ed-a293-405b-a0d5-ef3622153fed")}catch{}})();const ae=A(null,(function(e,t){return{onSaveVendor:a=>{e(q(t.vendorId!==void 0?t.vendorId:void 0,t.billId,void 0,t.isExpressPayPage)),e(K("common")),a!=null&&e(L(a))},onGetOtp:a=>{e(Q(a,"BillPayVendor"))},onResendOtp:a=>{e(J(a,"BillPayVendor"))},onVerifyOtp:(a,n)=>{e(X(a,n,"BillPayVendor"))},onVerifyOtpSuccess:(a,n,o)=>{e(W(a,n,o))}}}))(M);function z({vendorId:e,billId:t,isExpressPayPage:a}){const n=w(),o=C(),s=h((r=>k(r,e)));return l.jsx(ae,{location:o,navigate:n,vendorId:e,billId:t,vendorViewDetails:s,isExpressPayPage:a??!1})}const ne=O.div`
2
2
  display: flex;
3
3
  height: 100vh;
4
4
  width: 100%;
@@ -1 +1 @@
1
- import{j as i}from"./liveblocks-DlLPx8qc.js";import{_ as l,a9 as c}from"./index-C_zXD4tY.js";import{u as f,D as p}from"./mui-D4cnbDJb.js";import"./sentry-DG6_iPE-.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="7343a8d4-dee6-4ca7-9ab3-2b3236099e14",e._sentryDebugIdIdentifier="sentry-dbid-7343a8d4-dee6-4ca7-9ab3-2b3236099e14")}catch{}})();const b={drawerLeftMargin:new c(0,0,240)};function h(e){const{isOpen:r,drawerLeftMargin:o,children:a,onClose:t}=e,n=l(),s=o?.valuePx(n)??b.drawerLeftMargin.valuePx(n),d=f();return i.jsx(p,{anchor:"right",open:r,PaperProps:{style:{width:`calc(100% - ${s})`}},slotProps:{backdrop:{style:{backgroundColor:d.colors.black,opacity:.8,cursor:"pointer"}}},onClose:t,children:a})}export{h as D};
1
+ import{j as i}from"./liveblocks-Vz4gvIdI.js";import{_ as l,a9 as c}from"./index-eXyO65Ih.js";import{u as f,D as p}from"./mui-CuMgG_27.js";import"./sentry-Y8vuE8aQ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="7343a8d4-dee6-4ca7-9ab3-2b3236099e14",e._sentryDebugIdIdentifier="sentry-dbid-7343a8d4-dee6-4ca7-9ab3-2b3236099e14")}catch{}})();const b={drawerLeftMargin:new c(0,0,240)};function h(e){const{isOpen:r,drawerLeftMargin:o,children:a,onClose:t}=e,n=l(),s=o?.valuePx(n)??b.drawerLeftMargin.valuePx(n),d=f();return i.jsx(p,{anchor:"right",open:r,PaperProps:{style:{width:`calc(100% - ${s})`}},slotProps:{backdrop:{style:{backgroundColor:d.colors.black,opacity:.8,cursor:"pointer"}}},onClose:t,children:a})}export{h as D};
@@ -1 +1 @@
1
- import{j as s}from"./liveblocks-DlLPx8qc.js";import{a as d}from"./sentry-DG6_iPE-.js";import{h as A,u as B,g as X,i as q,j as l,N as F,l as N,n as O,o as _}from"./core-DJg5tSgJ.js";import{XZ as Y,fI as $,X1 as H,n3 as M,S$ as I,Y2 as R,XG as W,m3 as z,T0 as S,X6 as V,X7 as Z,XI as J,XH as K}from"./zeni-epic-state-DWniLfut.js";import{b9 as L,k as Q,a2 as U,l as tt}from"./index-C_zXD4tY.js";import"./mui-D4cnbDJb.js";import{d as b}from"./decodeURIComponentSafe-DF-yguK5.js";import{w as et}from"./withTransactionSidePanel-CWVMVdKL.js";import{f as at,c as nt}from"./routePaths-y2YMVrr7.js";import"./recharts-DDu3LMPw.js";import"./analytics-CLhIIMIj.js";import"./plaid-CX-W0kKb.js";import"./dnd-DJqaNdZQ.js";import"./stripe-cKAAJElX.js";import"./lottie-CgZ3326o.js";import"./lexical-0nYC3WJn.js";import"./pdf-BIYaUqkd.js";import"./utils-rAp4kjII.js";import"./useAskAiCfoHostNavButtonProps-CLMUyZJH.js";import"./TransactionDetailScreen-C7syThvR.js";import"./useInitialThreadRequest-CP4azMys.js";import"./expenseAutomationHelper-BV5ky-OC.js";import"./stripSplatSuffix-Bp9kZoKb.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]="0c068df5-b76e-4639-a33b-73d2d67b8a6c",a._sentryDebugIdIdentifier="sentry-dbid-0c068df5-b76e-4639-a33b-73d2d67b8a6c")}catch{}})();const ot=N((function(a,t){const e=t.entity,o=R(a,t.entity,"EntityDetail");return{selectedEntity:e,autoCompleteData:{autoCompleteText:e.name,entityAutoCompleteView:W(a,"common")},trendWithTransactionsReport:o,analytics:Q,isAccountingClassesEnabled:z(a)}}),(function(a,t){return{onTransactionItemClick:e=>{if(t.openTransactionPanel)return void t.openTransactionPanel(e.id,e.type);const o=`${nt(e,t.tenantEmailDomain)}`,c=tt(t.location.state?.pathnameStackToGoBack,t.location.pathname);t.navigate(o,{state:{pathnameStackToGoBack:c}})},autoCompleteActions:{onAutoCompleteInputChange:e=>{e.trim().length>=2?a(J({searchString:e,searchOrigin:"common"})):e.trim().length===0&&a(K("common"))},onAutoCompleteEntity:e=>{const o=at(e,t.tenantEmailDomain);a(V()),a(Z()),t.resetTrendIsFetchedStates(),t.navigate(o,{replace:!0,state:{pathnameStackToGoBack:t.location.state?.pathnameStackToGoBack}})},onCancelAutoComplete:()=>{const e=U(t.location.state?.pathnameStackToGoBack),o=e.poppedPathname??k();t.navigate(o,{state:{pathnameStackToGoBack:e.newStack}})}},onTrendSelectedPeriodChange:e=>{if(t.closeSidePanel?.(),e==null)t.defaultTransactionTimePeriod!=null&&a(S(t.entity,"EntityDetail",{timeframe:"quarter",timePeriod:t.defaultTransactionTimePeriod}));else{const o=e.currentTimePeriod==null?e.addTimePeriod:{startDate:e.addTimePeriod.startDate,endDate:e.currentTimePeriod.endDate};a(I(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:e.addTimePeriod})),a(S(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:o}))}}}}))(L),it=et((function({entityType:a,...t}){const e=A(),o=B(),c=X(),[m,T]=d.useState(!1),[h,D]=d.useState(!1),{tenantEmailDomain:C,entityIdEncoded:w,entityNameEncoded:x}=q(),r=b(w??""),p=b(x??""),u=rt(r,p),j=[r,p].filter((n=>n!=null)),i={name:p,id:r,type:a,zeniId:r,qboId:r},g=l((n=>Y(n.customerIncomeState,n.vendorExpenseState,n.trendState,i,"quarter"))),G=l((n=>$(n).company?.companyInfo.firstMonthOfFY??1)),f=l((n=>H(n.trendWithTransactionsState,i,"EntityDetail")));d.useEffect((()=>{m===!1&&u===!0&&(T(!0),o(M(i)))}),[m,u,i]);const E=l((n=>n.trendState.fetchState)),P=f?.selectedPeriod?.timePeriod??g,v=(function(n,y){return n!=null&&y!=null?{startDate:n.startDate,endDate:y?.endDate}:y})(f?.selectedPeriod?.timePeriod,g);return d.useEffect((()=>{m===!0&&h===!1&&E==="Completed"&&(D(!0),P!=null&&o(I(i,"EntityDetail",{timeframe:f?.selectedPeriod?.timeframe??"quarter",timePeriod:P})))}),[m,h,E]),u?s.jsx(ot,{firstMonthOfFY:G,tenantEmailDomain:C,location:c,navigate:e,entity:i,defaultTransactionTimePeriod:v,resetTrendIsFetchedStates:()=>{T(!1),D(!1)},...t}):s.jsx(F,{to:k(j.length)})})),rt=(a,t)=>t!=null&&t.length>0&&a!=null&&a.length>0,k=(a=2)=>{let t="../";for(let e=0;e<a;e++)t=`${t}../`;return t};function Gt({entityType:a}){return s.jsx(O,{children:s.jsx(_,{path:"/:entityIdEncoded/:entityNameEncoded/*",element:s.jsx(it,{entityType:a})})})}export{Gt as EntityDetailRoutes,Gt as default};
1
+ import{j as s}from"./liveblocks-Vz4gvIdI.js";import{a as d}from"./sentry-Y8vuE8aQ.js";import{h as A,u as B,g as X,i as q,j as l,N as F,l as N,n as O,o as _}from"./core-GrVUbJGD.js";import{XZ as Y,fI as $,X1 as H,n3 as M,S$ as I,Y2 as R,XG as W,m3 as z,T0 as S,X6 as V,X7 as Z,XI as J,XH as K}from"./zeni-epic-state-COBHVss0.js";import{b9 as L,k as Q,a2 as U,l as tt}from"./index-eXyO65Ih.js";import"./mui-CuMgG_27.js";import{d as b}from"./decodeURIComponentSafe-C1t-__r9.js";import{w as et}from"./withTransactionSidePanel-D9vq13QQ.js";import{f as at,c as nt}from"./routePaths-C4nWRb1J.js";import"./recharts-Cz5M2Ami.js";import"./analytics-B_BCmETJ.js";import"./plaid-DEbV2MCp.js";import"./dnd-Cc3q8XS9.js";import"./stripe-cKAAJElX.js";import"./lottie-7o7Nu0hF.js";import"./lexical-C0CQ8hW2.js";import"./pdf-Dl24vdfn.js";import"./utils-PKPkEQd5.js";import"./useAskAiCfoHostNavButtonProps-Gb5FxzST.js";import"./TransactionDetailScreen-BeMygB7E.js";import"./useInitialThreadRequest-zNumU9hI.js";import"./expenseAutomationHelper-BqqNQc4E.js";import"./stripSplatSuffix-DBJKfIbL.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]="0c068df5-b76e-4639-a33b-73d2d67b8a6c",a._sentryDebugIdIdentifier="sentry-dbid-0c068df5-b76e-4639-a33b-73d2d67b8a6c")}catch{}})();const ot=N((function(a,t){const e=t.entity,o=R(a,t.entity,"EntityDetail");return{selectedEntity:e,autoCompleteData:{autoCompleteText:e.name,entityAutoCompleteView:W(a,"common")},trendWithTransactionsReport:o,analytics:Q,isAccountingClassesEnabled:z(a)}}),(function(a,t){return{onTransactionItemClick:e=>{if(t.openTransactionPanel)return void t.openTransactionPanel(e.id,e.type);const o=`${nt(e,t.tenantEmailDomain)}`,c=tt(t.location.state?.pathnameStackToGoBack,t.location.pathname);t.navigate(o,{state:{pathnameStackToGoBack:c}})},autoCompleteActions:{onAutoCompleteInputChange:e=>{e.trim().length>=2?a(J({searchString:e,searchOrigin:"common"})):e.trim().length===0&&a(K("common"))},onAutoCompleteEntity:e=>{const o=at(e,t.tenantEmailDomain);a(V()),a(Z()),t.resetTrendIsFetchedStates(),t.navigate(o,{replace:!0,state:{pathnameStackToGoBack:t.location.state?.pathnameStackToGoBack}})},onCancelAutoComplete:()=>{const e=U(t.location.state?.pathnameStackToGoBack),o=e.poppedPathname??k();t.navigate(o,{state:{pathnameStackToGoBack:e.newStack}})}},onTrendSelectedPeriodChange:e=>{if(t.closeSidePanel?.(),e==null)t.defaultTransactionTimePeriod!=null&&a(S(t.entity,"EntityDetail",{timeframe:"quarter",timePeriod:t.defaultTransactionTimePeriod}));else{const o=e.currentTimePeriod==null?e.addTimePeriod:{startDate:e.addTimePeriod.startDate,endDate:e.currentTimePeriod.endDate};a(I(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:e.addTimePeriod})),a(S(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:o}))}}}}))(L),it=et((function({entityType:a,...t}){const e=A(),o=B(),c=X(),[m,T]=d.useState(!1),[h,D]=d.useState(!1),{tenantEmailDomain:C,entityIdEncoded:w,entityNameEncoded:x}=q(),r=b(w??""),p=b(x??""),u=rt(r,p),j=[r,p].filter((n=>n!=null)),i={name:p,id:r,type:a,zeniId:r,qboId:r},g=l((n=>Y(n.customerIncomeState,n.vendorExpenseState,n.trendState,i,"quarter"))),G=l((n=>$(n).company?.companyInfo.firstMonthOfFY??1)),f=l((n=>H(n.trendWithTransactionsState,i,"EntityDetail")));d.useEffect((()=>{m===!1&&u===!0&&(T(!0),o(M(i)))}),[m,u,i]);const E=l((n=>n.trendState.fetchState)),P=f?.selectedPeriod?.timePeriod??g,v=(function(n,y){return n!=null&&y!=null?{startDate:n.startDate,endDate:y?.endDate}:y})(f?.selectedPeriod?.timePeriod,g);return d.useEffect((()=>{m===!0&&h===!1&&E==="Completed"&&(D(!0),P!=null&&o(I(i,"EntityDetail",{timeframe:f?.selectedPeriod?.timeframe??"quarter",timePeriod:P})))}),[m,h,E]),u?s.jsx(ot,{firstMonthOfFY:G,tenantEmailDomain:C,location:c,navigate:e,entity:i,defaultTransactionTimePeriod:v,resetTrendIsFetchedStates:()=>{T(!1),D(!1)},...t}):s.jsx(F,{to:k(j.length)})})),rt=(a,t)=>t!=null&&t.length>0&&a!=null&&a.length>0,k=(a=2)=>{let t="../";for(let e=0;e<a;e++)t=`${t}../`;return t};function Gt({entityType:a}){return s.jsx(O,{children:s.jsx(_,{path:"/:entityIdEncoded/:entityNameEncoded/*",element:s.jsx(it,{entityType:a})})})}export{Gt as EntityDetailRoutes,Gt as default};
@@ -1,4 +1,4 @@
1
- import{j as k}from"./liveblocks-DlLPx8qc.js";import{u as Ie,h as Be,g as ge,j as B,i as Ae,s as po,t as Xn,l as ho,n as So,o as Je,N as fo}from"./core-DJg5tSgJ.js";import{fI as xe,a26 as Hn,q8 as Me,U$ as Rt,Au as Io,a27 as go,a28 as Co,a29 as ko,a2a as yt,a2b as ct,gk as wt,a2c as bn,eH as bo,g3 as To,a2d as Tn,a2e as it,q$ as yo,v0 as Po,gW as vo,gU as Eo,a2f as Ao,rc as xo,rl as Ro,qj as wo,qx as Wn,gT as me,gV as Do,a2g as Fo,qT as Kn,rm as _o,qu as Mo,qp as Bo,v6 as Oo,gS as Ee,a2h as dt,CE as Qn,N8 as Zn,a2i as ea,XB as Uo,G3 as ta,a2j as Vo,e$ as jo,f1 as $o,t1 as Dt,X_ as yn,Y0 as Lo,m6 as zo,Y1 as Go,md as No,dn as qo,DX as Ft,XN as Jo,XP as Yo,XO as Xo,XQ as Ho,fp as _t,sR as Pn,a2k as Wo,XG as Ko,a2l as Qo,a2m as Zo,mf as es,a2n as ts,RQ as ns,me as as,m3 as os,qM as na,rr as ut,tE as aa,t_ as ss,UR as oa,rq as vn,rt as sa,rv as cs,bG as is,nC as ls,nz as rs,ru as lt,rs as ve,a2o as ds,rM as En,a2p as us,a2q as ms,sV as ps,sW as hs,XC as Ss,WI as ca,a1A as fs,a2r as Is,XI as An,XH as st,a2s as xn,mu as gs,a2t as Cs,a2u as ks,a2v as bs,a2w as Ts,qH as ys,a2x as Ps,a2y as vs,a2z as Es,rC as As,mh as xs,m8 as Rs,a2A as ws,mg as Rn,Yb as Ds,a2B as Fs,a2C as _s,uD as Ms,ue as Bs,ud as Pt,a2D as Os,a2E as Us,a2F as Vs,a2G as js,nN as $s,br as ia,nI as wn,nu as Ls,a2H as zs,h3 as Gs,nF as Ns,t3 as qs,t5 as Js,sO as Ys,WL as Xs,WM as Hs,Fx as Ws,Fw as Ks,FN as Qs,a2I as Dn,sU as Zs,sp as ec,a2J as tc,s5 as nc,sa as ac,sl as oc,s8 as sc,a2K as cc,s1 as ic,sk as lc,s_ as rc,a2L as dc,tb as uc,sI as mc,th as pc,sN as hc,rN as Sc,a2M as fc,r3 as Ic,qD as gc,qK as Fn,rx as Cc,a2N as kc,a2O as bc,a2P as Tc,a2Q as yc,a2R as Pc,a2S as vc,a2T as Ec,tl as Ac,a2U as xc,a2V as Rc,a2W as _n,uO as wc,u5 as Dc,tW as Mn,tU as Fc,a2X as _c,tJ as Mc,to as Bc,tX as Oc,a2Y as Uc,a2Z as Vc,tu as jc,a2_ as $c,tp as Lc,tt as zc,tr as Gc,u1 as Nc,a2$ as Bn,qc as vt,a30 as qc,E7 as On,cA as Jc,qy as Yc,a31 as Xc}from"./zeni-epic-state-DWniLfut.js";import Ut from"./NotFoundScreen-qpaowFoa.js";import{a as o,R as la}from"./sentry-DG6_iPE-.js";import{n as Oe,S as Hc}from"./mui-D4cnbDJb.js";import{p as mt,N as Z,k as te,l as ee,ao as ra,aq as da,dP as Wc,dQ as Kc,z as Xe,dR as Mt,dS as Qc,dT as Zc,ac as Ye,dU as ei,dV as Un,bb as Vn,dW as ti,dX as ni,a5 as ua,dY as ai,j as rt,a as oi,dZ as si,d_ as ci,c as ii,M as li,d$ as ri,e0 as di,e1 as ui,b5 as mi,bt as pi,a9 as hi,b6 as Si,b1 as fi,b7 as Ii,G as ma,w as gi,e2 as Ci,at as Bt,e3 as ki,a2 as bi,e4 as Ti,e5 as yi}from"./index-C_zXD4tY.js";import{u as Vt}from"./useAskAiCfoHostNavButtonProps-CLMUyZJH.js";import{g as jn,u as Pi,c as vi,h as Ei,b as Ai,i as xi,r as Ri,C as wi}from"./TransactionDetailScreen-C7syThvR.js";import{a as Di,u as Fi,b as _i}from"./useActualMatchingMatchDetail-1qnapZhi.js";import{d as Mi}from"./decodeURIComponentSafe-DF-yguK5.js";import{m as jt,a as pa,b as ha,i as Ot}from"./expenseAutomationHelper-BV5ky-OC.js";import{u as Sa,a as fa,w as Bi}from"./withTransactionSidePanel-CWVMVdKL.js";import{b as Oi,S as Ui,a as Vi,J as ji}from"./ScheduleDetailsPrepaidExpensesScreen-HU5MkNq1.js";import{s as $n,i as Ia,h as $i,j as Li,v as zi,c as Gi}from"./routePaths-y2YMVrr7.js";import{a as Et}from"./accountMappingHelper-EiDfaUYc.js";import{D as Ni}from"./DrawerScreen-OrP7suFB.js";import"./recharts-DDu3LMPw.js";import"./analytics-CLhIIMIj.js";import"./plaid-CX-W0kKb.js";import"./dnd-DJqaNdZQ.js";import"./stripe-cKAAJElX.js";import"./lottie-CgZ3326o.js";import"./lexical-0nYC3WJn.js";import"./pdf-BIYaUqkd.js";import"./utils-rAp4kjII.js";import"./useInitialThreadRequest-CP4azMys.js";import"./stripSplatSuffix-Bp9kZoKb.js";import"./pathToGoBack-DP3kJbJJ.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]="40798c84-f5dd-4185-8271-73ae1d7313a5",t._sentryDebugIdIdentifier="sentry-dbid-40798c84-f5dd-4185-8271-73ae1d7313a5")}catch{}})();const qi=()=>{const t=Ie(),n=Be(),h=ge(),p=B((m=>xe(m))),{useFeatureGate:S}=mt(),{isFeatureEnabled:i}=S(Z.isRealtimeInsightsFeatureEnabled),{isFeatureEnabled:r}=S(Z.aiAuditScorePercentage),R=B((m=>m.expenseAutomationViewState.selectedPeriodByTenantId)),l=B((m=>Hn(m,p.tenantId))),{isAiCfoAccessEnabled:b,onAskAiCfoClick:f}=Vt({mobileExploreReferrer:"Month-End Close Overview"}),v=o.useCallback(((m,d,g=!1)=>{t(Me({tenantId:d,period:{month:m.month,year:m.year},refreshViewInBackground:g}))}),[]),E=o.useCallback((m=>{const d=h.state?.referrer;l.monthEndCloseChecks?.auditSummary!=null&&te.trackMonthCloseAuditPage(m.month,m.year,l.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",l.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,d??null),t(Rt(p.tenantId,m))}),[p.tenantId,l.monthEndCloseChecks?.auditSummary,l.monthEndCloseChecks?.reportEmailSentDate]),C=R[p.tenantId],O=o.useCallback((()=>{const m=h.state?.referrer;l.monthEndCloseChecks?.auditSummary!=null&&te.trackMonthCloseAuditPage(C.month,C.year,l.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",l.monthEndCloseChecks.auditSummary.auditScorePercentage,!0,m??null),v(C,p.tenantId,!0)}),[v,C,p.tenantId,l.monthEndCloseChecks?.auditSummary,l.monthEndCloseChecks?.reportEmailSentDate]),F=ee(h.state?.pathnameStackToGoBack,h.pathname),Y=o.useCallback((()=>{if(l.monthEndCloseChecks!=null&&C!=null){const m=l.monthEndCloseChecks.monthEndCloseCheckList.find((d=>d.progress<100));if(m!=null)return void n(`./${m.id}/${C.month}-${C.year}`,{state:{pathnameStackToGoBack:F,message:"comingFromOverview"}});n(`./month_end_insights/${C.month}-${C.year}`,{state:{pathnameStackToGoBack:F,message:"comingFromOverview"}})}}),[l.monthEndCloseChecks,C]),{areTenantIdsInSync:w}=ra();return da({isDataReady:l.fetchState==="Completed"}),o.useEffect((()=>{C!=null&&l.fetchState!=="In-Progress"&&l.fetchState!=="Completed"&&w&&v(C,p.tenantId)}),[v,C,l.fetchState,p.tenantId,w]),o.useEffect((()=>{C!=null&&l.monthClosePerformanceTrendFetchStatus.fetchState!=="In-Progress"&&l.monthClosePerformanceTrendFetchStatus.fetchState!=="Completed"&&w&&t(Io(C))}),[C,l.monthClosePerformanceTrendFetchStatus.fetchState,w]),o.useEffect((()=>{const m=setInterval((()=>{l.fetchState!=="In-Progress"&&l.fetchState==="Completed"&&O()}),3e5);return()=>clearInterval(m)}),[l.fetchState]),o.useEffect((()=>{if(l.fetchState==="Completed"&&l.monthEndCloseChecks?.auditSummary!=null){const m=h.state?.referrer;te.trackMonthCloseAuditPage(l.selectedPeriod.month,l.selectedPeriod.year,l.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",l.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,m??null)}}),[l.fetchState,l.selectedPeriod,l.monthEndCloseChecks?.auditSummary,l.monthEndCloseChecks?.reportEmailSentDate]),k.jsx(Ji,{children:k.jsx(Wc,{monthEndCloseChecksView:l,isRealtimeInsightsFeatureEnabled:i,onMonthEndCheckClick:m=>{n(`./${m}/${C.month}-${C.year}`,{state:{pathnameStackToGoBack:F,message:"comingFromOverview",referrer:"Expense Automation - Overview"}})},onPeriodChange:E,handleReviewButtonClick:Y,onBackClick:()=>{n("../../dashboard")},onReload:O,isAiCfoAccessEnabled:b,onAskAiCfoClick:f,aiAuditScorePercentageEnabled:r})})},Ji=Oe.div`
1
+ import{j as k}from"./liveblocks-Vz4gvIdI.js";import{u as Ie,h as Be,g as ge,j as B,i as Ae,s as po,t as Xn,l as ho,n as So,o as Je,N as fo}from"./core-GrVUbJGD.js";import{fI as xe,a26 as Hn,q8 as Me,U$ as Rt,Au as Io,a27 as go,a28 as Co,a29 as ko,a2a as yt,a2b as ct,gk as wt,a2c as bn,eH as bo,g3 as To,a2d as Tn,a2e as it,q$ as yo,v0 as Po,gW as vo,gU as Eo,a2f as Ao,rc as xo,rl as Ro,qj as wo,qx as Wn,gT as me,gV as Do,a2g as Fo,qT as Kn,rm as _o,qu as Mo,qp as Bo,v6 as Oo,gS as Ee,a2h as dt,CE as Qn,N8 as Zn,a2i as ea,XB as Uo,G3 as ta,a2j as Vo,e$ as jo,f1 as $o,t1 as Dt,X_ as yn,Y0 as Lo,m6 as zo,Y1 as Go,md as No,dn as qo,DX as Ft,XN as Jo,XP as Yo,XO as Xo,XQ as Ho,fp as _t,sR as Pn,a2k as Wo,XG as Ko,a2l as Qo,a2m as Zo,mf as es,a2n as ts,RQ as ns,me as as,m3 as os,qM as na,rr as ut,tE as aa,t_ as ss,UR as oa,rq as vn,rt as sa,rv as cs,bG as is,nC as ls,nz as rs,ru as lt,rs as ve,a2o as ds,rM as En,a2p as us,a2q as ms,sV as ps,sW as hs,XC as Ss,WI as ca,a1A as fs,a2r as Is,XI as An,XH as st,a2s as xn,mu as gs,a2t as Cs,a2u as ks,a2v as bs,a2w as Ts,qH as ys,a2x as Ps,a2y as vs,a2z as Es,rC as As,mh as xs,m8 as Rs,a2A as ws,mg as Rn,Yb as Ds,a2B as Fs,a2C as _s,uD as Ms,ue as Bs,ud as Pt,a2D as Os,a2E as Us,a2F as Vs,a2G as js,nN as $s,br as ia,nI as wn,nu as Ls,a2H as zs,h3 as Gs,nF as Ns,t3 as qs,t5 as Js,sO as Ys,WL as Xs,WM as Hs,Fx as Ws,Fw as Ks,FN as Qs,a2I as Dn,sU as Zs,sp as ec,a2J as tc,s5 as nc,sa as ac,sl as oc,s8 as sc,a2K as cc,s1 as ic,sk as lc,s_ as rc,a2L as dc,tb as uc,sI as mc,th as pc,sN as hc,rN as Sc,a2M as fc,r3 as Ic,qD as gc,qK as Fn,rx as Cc,a2N as kc,a2O as bc,a2P as Tc,a2Q as yc,a2R as Pc,a2S as vc,a2T as Ec,tl as Ac,a2U as xc,a2V as Rc,a2W as _n,uO as wc,u5 as Dc,tW as Mn,tU as Fc,a2X as _c,tJ as Mc,to as Bc,tX as Oc,a2Y as Uc,a2Z as Vc,tu as jc,a2_ as $c,tp as Lc,tt as zc,tr as Gc,u1 as Nc,a2$ as Bn,qc as vt,a30 as qc,E7 as On,cA as Jc,qy as Yc,a31 as Xc}from"./zeni-epic-state-COBHVss0.js";import Ut from"./NotFoundScreen-lrXID2D2.js";import{a as o,R as la}from"./sentry-Y8vuE8aQ.js";import{n as Oe,S as Hc}from"./mui-CuMgG_27.js";import{p as mt,N as Z,k as te,l as ee,ao as ra,aq as da,dP as Wc,dQ as Kc,z as Xe,dR as Mt,dS as Qc,dT as Zc,ac as Ye,dU as ei,dV as Un,bb as Vn,dW as ti,dX as ni,a5 as ua,dY as ai,j as rt,a as oi,dZ as si,d_ as ci,c as ii,M as li,d$ as ri,e0 as di,e1 as ui,b5 as mi,bt as pi,a9 as hi,b6 as Si,b1 as fi,b7 as Ii,G as ma,w as gi,e2 as Ci,at as Bt,e3 as ki,a2 as bi,e4 as Ti,e5 as yi}from"./index-eXyO65Ih.js";import{u as Vt}from"./useAskAiCfoHostNavButtonProps-Gb5FxzST.js";import{g as jn,u as Pi,c as vi,h as Ei,b as Ai,i as xi,r as Ri,C as wi}from"./TransactionDetailScreen-BeMygB7E.js";import{a as Di,u as Fi,b as _i}from"./useActualMatchingMatchDetail-rg_uxZt8.js";import{d as Mi}from"./decodeURIComponentSafe-C1t-__r9.js";import{m as jt,a as pa,b as ha,i as Ot}from"./expenseAutomationHelper-BqqNQc4E.js";import{u as Sa,a as fa,w as Bi}from"./withTransactionSidePanel-D9vq13QQ.js";import{b as Oi,S as Ui,a as Vi,J as ji}from"./ScheduleDetailsPrepaidExpensesScreen-C1AIWmci.js";import{s as $n,i as Ia,h as $i,j as Li,v as zi,c as Gi}from"./routePaths-C4nWRb1J.js";import{a as Et}from"./accountMappingHelper-D5RLPl0Q.js";import{D as Ni}from"./DrawerScreen-D7I-GzS4.js";import"./recharts-Cz5M2Ami.js";import"./analytics-B_BCmETJ.js";import"./plaid-DEbV2MCp.js";import"./dnd-Cc3q8XS9.js";import"./stripe-cKAAJElX.js";import"./lottie-7o7Nu0hF.js";import"./lexical-C0CQ8hW2.js";import"./pdf-Dl24vdfn.js";import"./utils-PKPkEQd5.js";import"./useInitialThreadRequest-zNumU9hI.js";import"./stripSplatSuffix-DBJKfIbL.js";import"./pathToGoBack-6-e3rsC8.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]="40798c84-f5dd-4185-8271-73ae1d7313a5",t._sentryDebugIdIdentifier="sentry-dbid-40798c84-f5dd-4185-8271-73ae1d7313a5")}catch{}})();const qi=()=>{const t=Ie(),n=Be(),h=ge(),p=B((m=>xe(m))),{useFeatureGate:S}=mt(),{isFeatureEnabled:i}=S(Z.isRealtimeInsightsFeatureEnabled),{isFeatureEnabled:r}=S(Z.aiAuditScorePercentage),R=B((m=>m.expenseAutomationViewState.selectedPeriodByTenantId)),l=B((m=>Hn(m,p.tenantId))),{isAiCfoAccessEnabled:b,onAskAiCfoClick:f}=Vt({mobileExploreReferrer:"Month-End Close Overview"}),v=o.useCallback(((m,d,g=!1)=>{t(Me({tenantId:d,period:{month:m.month,year:m.year},refreshViewInBackground:g}))}),[]),E=o.useCallback((m=>{const d=h.state?.referrer;l.monthEndCloseChecks?.auditSummary!=null&&te.trackMonthCloseAuditPage(m.month,m.year,l.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",l.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,d??null),t(Rt(p.tenantId,m))}),[p.tenantId,l.monthEndCloseChecks?.auditSummary,l.monthEndCloseChecks?.reportEmailSentDate]),C=R[p.tenantId],O=o.useCallback((()=>{const m=h.state?.referrer;l.monthEndCloseChecks?.auditSummary!=null&&te.trackMonthCloseAuditPage(C.month,C.year,l.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",l.monthEndCloseChecks.auditSummary.auditScorePercentage,!0,m??null),v(C,p.tenantId,!0)}),[v,C,p.tenantId,l.monthEndCloseChecks?.auditSummary,l.monthEndCloseChecks?.reportEmailSentDate]),F=ee(h.state?.pathnameStackToGoBack,h.pathname),Y=o.useCallback((()=>{if(l.monthEndCloseChecks!=null&&C!=null){const m=l.monthEndCloseChecks.monthEndCloseCheckList.find((d=>d.progress<100));if(m!=null)return void n(`./${m.id}/${C.month}-${C.year}`,{state:{pathnameStackToGoBack:F,message:"comingFromOverview"}});n(`./month_end_insights/${C.month}-${C.year}`,{state:{pathnameStackToGoBack:F,message:"comingFromOverview"}})}}),[l.monthEndCloseChecks,C]),{areTenantIdsInSync:w}=ra();return da({isDataReady:l.fetchState==="Completed"}),o.useEffect((()=>{C!=null&&l.fetchState!=="In-Progress"&&l.fetchState!=="Completed"&&w&&v(C,p.tenantId)}),[v,C,l.fetchState,p.tenantId,w]),o.useEffect((()=>{C!=null&&l.monthClosePerformanceTrendFetchStatus.fetchState!=="In-Progress"&&l.monthClosePerformanceTrendFetchStatus.fetchState!=="Completed"&&w&&t(Io(C))}),[C,l.monthClosePerformanceTrendFetchStatus.fetchState,w]),o.useEffect((()=>{const m=setInterval((()=>{l.fetchState!=="In-Progress"&&l.fetchState==="Completed"&&O()}),3e5);return()=>clearInterval(m)}),[l.fetchState]),o.useEffect((()=>{if(l.fetchState==="Completed"&&l.monthEndCloseChecks?.auditSummary!=null){const m=h.state?.referrer;te.trackMonthCloseAuditPage(l.selectedPeriod.month,l.selectedPeriod.year,l.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",l.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,m??null)}}),[l.fetchState,l.selectedPeriod,l.monthEndCloseChecks?.auditSummary,l.monthEndCloseChecks?.reportEmailSentDate]),k.jsx(Ji,{children:k.jsx(Wc,{monthEndCloseChecksView:l,isRealtimeInsightsFeatureEnabled:i,onMonthEndCheckClick:m=>{n(`./${m}/${C.month}-${C.year}`,{state:{pathnameStackToGoBack:F,message:"comingFromOverview",referrer:"Expense Automation - Overview"}})},onPeriodChange:E,handleReviewButtonClick:Y,onBackClick:()=>{n("../../dashboard")},onReload:O,isAiCfoAccessEnabled:b,onAskAiCfoClick:f,aiAuditScorePercentageEnabled:r})})},Ji=Oe.div`
2
2
  display: flex;
3
3
  height: 100vh;
4
4
  width: 100%;
@@ -1 +1 @@
1
- import{j as s}from"./liveblocks-DlLPx8qc.js";import{a as r}from"./sentry-DG6_iPE-.js";import{au as i,av as b,r as f,a2 as l}from"./index-C_zXD4tY.js";import"./mui-D4cnbDJb.js";import p from"./NotFoundScreen-qpaowFoa.js";import{h as m,g as u}from"./core-DJg5tSgJ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="3e0b62bd-24c2-4dc7-beeb-ffec556cb516",e._sentryDebugIdIdentifier="sentry-dbid-3e0b62bd-24c2-4dc7-beeb-ffec556cb516")}catch{}})();const _=()=>{const e=m(),t=u(),a=r.useCallback((()=>{window.open("https://www.zeni.ai/demo/request","_blank")}),[]),c=r.useCallback((()=>{(()=>{const n=l(t.state?.pathnameStackToGoBack),d=n.poppedPathname??k();e(d,{state:{pathnameStackToGoBack:n.newStack}})})()}),[]),o=i(t.pathname);return o!=null?s.jsx(b,{menuItem:f(o),onDemoClick:a,onGoBack:c}):s.jsx(p,{})},k=(e=2)=>{let t="../";for(let a=0;a<e;a++)t=`${t}../`;return t};export{_ as F};
1
+ import{j as s}from"./liveblocks-Vz4gvIdI.js";import{a as r}from"./sentry-Y8vuE8aQ.js";import{au as i,av as b,r as f,a2 as l}from"./index-eXyO65Ih.js";import"./mui-CuMgG_27.js";import p from"./NotFoundScreen-lrXID2D2.js";import{h as m,g as u}from"./core-GrVUbJGD.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="3e0b62bd-24c2-4dc7-beeb-ffec556cb516",e._sentryDebugIdIdentifier="sentry-dbid-3e0b62bd-24c2-4dc7-beeb-ffec556cb516")}catch{}})();const _=()=>{const e=m(),t=u(),a=r.useCallback((()=>{window.open("https://www.zeni.ai/demo/request","_blank")}),[]),c=r.useCallback((()=>{(()=>{const n=l(t.state?.pathnameStackToGoBack),d=n.poppedPathname??k();e(d,{state:{pathnameStackToGoBack:n.newStack}})})()}),[]),o=i(t.pathname);return o!=null?s.jsx(b,{menuItem:f(o),onDemoClick:a,onGoBack:c}):s.jsx(p,{})},k=(e=2)=>{let t="../";for(let a=0;a<e;a++)t=`${t}../`;return t};export{_ as F};
@@ -1 +1 @@
1
- import{a as i}from"./sentry-DG6_iPE-.js";import{u as l,h as f,g as m}from"./core-DJg5tSgJ.js";import{i0 as p,Vm as g,Vn as _}from"./zeni-epic-state-DWniLfut.js";import{u as b,L as h,z as y}from"./index-C_zXD4tY.js";import"./liveblocks-DlLPx8qc.js";import"./recharts-DDu3LMPw.js";import"./mui-D4cnbDJb.js";import"./analytics-CLhIIMIj.js";import"./plaid-CX-W0kKb.js";import"./dnd-DJqaNdZQ.js";import"./stripe-cKAAJElX.js";import"./lottie-CgZ3326o.js";import"./lexical-0nYC3WJn.js";import"./pdf-BIYaUqkd.js";import"./utils-rAp4kjII.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]="41668f96-8f56-4b64-9d99-b7348ccd25ec",e._sentryDebugIdIdentifier="sentry-dbid-41668f96-8f56-4b64-9d99-b7348ccd25ec")}catch{}})();function V(){const e=l(),n=f(),r=m(),{setLoading:o,clearAllLoading:u}=b(),s=i.useRef(!1);return i.useLayoutEffect((()=>{o(h.CONNECTION_AUTH)}),[o]),i.useEffect((()=>{if(s.current)return;s.current=!0;const a=new URLSearchParams(r.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}))}u();const d=y.getActiveTenantForUser();n(d?.tenantEmailDomain!=null?`/${d.tenantEmailDomain}/settings/integrations`:"/",{replace:!0})}),[]),null}export{V as default};
1
+ import{a as i}from"./sentry-Y8vuE8aQ.js";import{u as l,h as f,g as m}from"./core-GrVUbJGD.js";import{i0 as p,Vm as g,Vn as _}from"./zeni-epic-state-COBHVss0.js";import{u as b,L as h,z as y}from"./index-eXyO65Ih.js";import"./liveblocks-Vz4gvIdI.js";import"./recharts-Cz5M2Ami.js";import"./mui-CuMgG_27.js";import"./analytics-B_BCmETJ.js";import"./plaid-DEbV2MCp.js";import"./dnd-Cc3q8XS9.js";import"./stripe-cKAAJElX.js";import"./lottie-7o7Nu0hF.js";import"./lexical-C0CQ8hW2.js";import"./pdf-Dl24vdfn.js";import"./utils-PKPkEQd5.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]="41668f96-8f56-4b64-9d99-b7348ccd25ec",e._sentryDebugIdIdentifier="sentry-dbid-41668f96-8f56-4b64-9d99-b7348ccd25ec")}catch{}})();function V(){const e=l(),n=f(),r=m(),{setLoading:o,clearAllLoading:u}=b(),s=i.useRef(!1);return i.useLayoutEffect((()=>{o(h.CONNECTION_AUTH)}),[o]),i.useEffect((()=>{if(s.current)return;s.current=!0;const a=new URLSearchParams(r.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}))}u();const d=y.getActiveTenantForUser();n(d?.tenantEmailDomain!=null?`/${d.tenantEmailDomain}/settings/integrations`:"/",{replace:!0})}),[]),null}export{V as default};
@@ -1 +1 @@
1
- import{n as s}from"./liveblocks-DlLPx8qc.js";import{j as c}from"./core-DJg5tSgJ.js";import{fI as f}from"./zeni-epic-state-DWniLfut.js";import"./sentry-DG6_iPE-.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="25fc1afa-344c-4436-b7c0-ce0cb6697f63",e._sentryDebugIdIdentifier="sentry-dbid-25fc1afa-344c-4436-b7c0-ce0cb6697f63")}catch{}})();const b=()=>c((e=>f(e))).tenantId==null?{inboxNotifications:[],isLoading:!1,isFetchingMore:!1,hasFetchedAll:!0,fetchMore:()=>null}:(()=>{const{inboxNotifications:e,isLoading:o,isFetchingMore:i,hasFetchedAll:t,fetchMore:n}=s();return{inboxNotifications:e,isLoading:o,isFetchingMore:i,hasFetchedAll:t,fetchMore:n}})();export{b as u};
1
+ import{n as s}from"./liveblocks-Vz4gvIdI.js";import{j as c}from"./core-GrVUbJGD.js";import{fI as f}from"./zeni-epic-state-COBHVss0.js";import"./sentry-Y8vuE8aQ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="25fc1afa-344c-4436-b7c0-ce0cb6697f63",e._sentryDebugIdIdentifier="sentry-dbid-25fc1afa-344c-4436-b7c0-ce0cb6697f63")}catch{}})();const b=()=>c((e=>f(e))).tenantId==null?{inboxNotifications:[],isLoading:!1,isFetchingMore:!1,hasFetchedAll:!0,fetchMore:()=>null}:(()=>{const{inboxNotifications:e,isLoading:o,isFetchingMore:i,hasFetchedAll:t,fetchMore:n}=s();return{inboxNotifications:e,isLoading:o,isFetchingMore:i,hasFetchedAll:t,fetchMore:n}})();export{b as u};