@zeniai/web-app-ui 5.3.71-dev → 5.3.71-prod

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/dist/assets/{AccountMappingScreen-wr5e90XY.js → AccountMappingScreen-ClsoxMBo.js} +1 -1
  2. package/dist/assets/{ActualMatchingMatchDetailScreen-6uqEn8-N.js → ActualMatchingMatchDetailScreen-4M9sjztl.js} +1 -1
  3. package/dist/assets/AddressRoutes-C3CVbUBq.js +1 -0
  4. package/dist/assets/{AddressScreen-gHefQKa8.js → AddressScreen-B2L8aMyB.js} +1 -1
  5. package/dist/assets/{AiCfoScreen-CEAl0yNI.js → AiCfoScreen-nas4nK2P.js} +1 -1
  6. package/dist/assets/{AppDrawer-Bn-0lFBO.js → AppDrawer-DA5WvhXq.js} +1 -1
  7. package/dist/assets/{BillPayApprovalRoutes-BiJdZR8U.js → BillPayApprovalRoutes-C6szML9c.js} +1 -1
  8. package/dist/assets/{BillPayRoutes-DXyhm5fw.js → BillPayRoutes-BZjVGPcb.js} +1 -1
  9. package/dist/assets/{BusinessVerificationPageScreen-BmKmh97q.js → BusinessVerificationPageScreen-BlO6LUIH.js} +1 -1
  10. package/dist/assets/{CardsAiCfoScreen-DQsq0GP-.js → CardsAiCfoScreen-WrTxmX0V.js} +1 -1
  11. package/dist/assets/{ChargeCardRoutes-DfdupNV2.js → ChargeCardRoutes-DIEgIfWv.js} +1 -1
  12. package/dist/assets/{CompanyPassportScreen-BuvLd6cw.js → CompanyPassportScreen-BnmlUZGh.js} +1 -1
  13. package/dist/assets/{ConnectionAuthScreen-DjTBqhri.js → ConnectionAuthScreen-D0LrfdpJ.js} +1 -1
  14. package/dist/assets/CustomerOnboardingAuthScreen-eRMy9y29.js +1 -0
  15. package/dist/assets/{CustomerOnboardingRoutes-Cy0Po35K.js → CustomerOnboardingRoutes-BrFCVsrm.js} +1 -1
  16. package/dist/assets/{DashboardRoutes-8__sl5wq.js → DashboardRoutes-D2mjE3_j.js} +1 -1
  17. package/dist/assets/{DefaultTenantHome-DxwX9QSa.js → DefaultTenantHome-DvH3xFtc.js} +1 -1
  18. package/dist/assets/{DomesticWireDetailScreen-CttDo_kp.js → DomesticWireDetailScreen-CRP_TpB8.js} +1 -1
  19. package/dist/assets/{DrawerScreen-BxqxG0PQ.js → DrawerScreen-JSvzxyBE.js} +1 -1
  20. package/dist/assets/{EntityDetailRoutes-IK763X3v.js → EntityDetailRoutes-B7-STPaP.js} +1 -1
  21. package/dist/assets/{ExpenseAutomationRoutes-D4rJS8i6.js → ExpenseAutomationRoutes-BsKQZnaY.js} +1 -1
  22. package/dist/assets/{FeaturePreviewScreen-D9YZEx_i.js → FeaturePreviewScreen-DIq-jgCH.js} +1 -1
  23. package/dist/assets/{HubSpotOAuthCallbackScreen-D6zpdqh4.js → HubSpotOAuthCallbackScreen-3fmiMcUp.js} +1 -1
  24. package/dist/assets/{InboxNotificationsProvider-DKQDEkwT.js → InboxNotificationsProvider-CgRbrWRn.js} +1 -1
  25. package/dist/assets/{InvoicingRoutes-Dyk-gzDu.js → InvoicingRoutes-BWSsgjFr.js} +1 -1
  26. package/dist/assets/{MagicLinkRoutes-H-30UeRv.js → MagicLinkRoutes-CNGVYTGk.js} +1 -1
  27. package/dist/assets/{MagicLinkSignInScreen-D1RkVzRJ.js → MagicLinkSignInScreen-DsmFlXml.js} +1 -1
  28. package/dist/assets/{MobileAppDrawer-C8_grDao.js → MobileAppDrawer-Cs0NMQat.js} +1 -1
  29. package/dist/assets/NotFoundScreen-CvynoGxh.js +1 -0
  30. package/dist/assets/{NotificationRoutes-BjEHHirs.js → NotificationRoutes-DVNuUknU.js} +1 -1
  31. package/dist/assets/{OAuthConsentScreen-CNr6T2co.js → OAuthConsentScreen-DxRq8h-U.js} +1 -1
  32. package/dist/assets/{PandLWithForecastRoutes-CYw1RIs5.js → PandLWithForecastRoutes-BDjWlO9e.js} +1 -1
  33. package/dist/assets/{PaymentLinkScreen-Swm1nWjC.js → PaymentLinkScreen-BIdVptOt.js} +1 -1
  34. package/dist/assets/{PeopleRoutes-Boqwg3eb.js → PeopleRoutes-BLTPrq70.js} +1 -1
  35. package/dist/assets/{PerformanceRoutes-DeX11Kwz.js → PerformanceRoutes-BpDGUeJk.js} +1 -1
  36. package/dist/assets/{Preview-_9w2gB0C.js → Preview-Dgwq-wOh.js} +1 -1
  37. package/dist/assets/{QBOConnectionScreen-DKjMXVLM.js → QBOConnectionScreen-C_K3kk6W.js} +1 -1
  38. package/dist/assets/{ReimbursementApprovalRoutes-CY-s3rH_.js → ReimbursementApprovalRoutes-CAFHj0t6.js} +1 -1
  39. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-F2d751hQ.js → ReimbursementApprovalRuleDetailScreen-CEEasTop.js} +1 -1
  40. package/dist/assets/{ReimbursementRoutes-D0ji16gD.js → ReimbursementRoutes-CYfuLTwW.js} +1 -1
  41. package/dist/assets/{ReportsRoutes-D6NIUgpA.js → ReportsRoutes-DDb2jRsV.js} +1 -1
  42. package/dist/assets/{RewardsRoutes-C1N9iMC3.js → RewardsRoutes-QUETp0gR.js} +1 -1
  43. package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-BX94snOz.js → ScheduleDetailsPrepaidExpensesScreen-YwA22xYF.js} +1 -1
  44. package/dist/assets/{ScreenRoutes-CztUUstz.js → ScreenRoutes-BkW2twz7.js} +2 -2
  45. package/dist/assets/{SettingsRoutes-CMRE8iHr.js → SettingsRoutes-ChY5aVX0.js} +1 -1
  46. package/dist/assets/{SetupPagesScreen-DYxGkmPi.js → SetupPagesScreen-CoCQKyUL.js} +1 -1
  47. package/dist/assets/{SignInScreen-eurhSWfY.js → SignInScreen-ZofQQ2y6.js} +1 -1
  48. package/dist/assets/{SignOutScreen-95rXjnV1.js → SignOutScreen-Tnn59GJL.js} +1 -1
  49. package/dist/assets/{TaskListScreen-DGaBfbA4.js → TaskListScreen-BpOmIXBB.js} +1 -1
  50. package/dist/assets/{TaskRoutes-CsEnl9bH.js → TaskRoutes-CtY5elo1.js} +1 -1
  51. package/dist/assets/TransactionDetailRoutes-BuIGt5Lp.js +1 -0
  52. package/dist/assets/{TransactionDetailScreen-C-tYoelm.js → TransactionDetailScreen-B2PSbhdh.js} +1 -1
  53. package/dist/assets/{TransactionListRoutes-DnLBWn4g.js → TransactionListRoutes-BXdRQRh1.js} +1 -1
  54. package/dist/assets/{TreasuryRoutes-Dq4Gmpbt.js → TreasuryRoutes-D5pG0ypH.js} +1 -1
  55. package/dist/assets/{VendorsRoutes-hz5k8whH.js → VendorsRoutes-BpJBz3AA.js} +1 -1
  56. package/dist/assets/{WiseConfirmationScreen-_zEKzS0I.js → WiseConfirmationScreen-B6UwT_K5.js} +1 -1
  57. package/dist/assets/{ZeniAccountRoutes-BA5NYp3W.js → ZeniAccountRoutes-DpXJYHpV.js} +1 -1
  58. package/dist/assets/{ZeniAccountStatementScreen-BpCX0tSO.js → ZeniAccountStatementScreen-DFoBVzg-.js} +1 -1
  59. package/dist/assets/{accountMappingHelper-1el1nsHh.js → accountMappingHelper-CLW0d-L0.js} +1 -1
  60. package/dist/assets/{analytics-B7hAl0cB.js → analytics-BYQV505J.js} +1 -1
  61. package/dist/assets/{analyticsHelper-BfncnDpw.js → analyticsHelper-_t38_lMZ.js} +1 -1
  62. package/dist/assets/{core-CmooL1VE.js → core-Ds5S2wH7.js} +1 -1
  63. package/dist/assets/{decodeURIComponentSafe-XuT8eSZ_.js → decodeURIComponentSafe-DZ09f2hv.js} +1 -1
  64. package/dist/assets/{dnd-DOVValOX.js → dnd-CcbzF-kK.js} +1 -1
  65. package/dist/assets/{empty-B6rABti8.js → empty-DY4904-e.js} +1 -1
  66. package/dist/assets/{empty-DGUQebD_.js → empty-UWgN_KIf.js} +1 -1
  67. package/dist/assets/{emptyVideoElement-ChZj1Ygj.js → emptyVideoElement-BjtiQAZ1.js} +1 -1
  68. package/dist/assets/{epic-CTQc1g-i.js → epic-mVQ5ys-C.js} +1 -1
  69. package/dist/assets/{expenseAutomationHelper-C7H1WvS_.js → expenseAutomationHelper-BrkwjQbC.js} +1 -1
  70. package/dist/assets/{getLocaleForTenant-BECA4-x0.js → getLocaleForTenant-89WxAOR-.js} +1 -1
  71. package/dist/assets/{index-LS_Pdivs.js → index-AMSSipCu.js} +897 -897
  72. package/dist/assets/{index-DEI9m138.js → index-BItbUuHp.js} +1 -1
  73. package/dist/assets/{index-9VkJMIRG.js → index-BpsNNw_P.js} +1 -1
  74. package/dist/assets/{index-Bfs9-uOP.js → index-CyzOg4gx.js} +2 -2
  75. package/dist/assets/{index-qN-QWXiP.js → index-D4atDRZn.js} +1 -1
  76. package/dist/assets/{index-CcKNzvE0.js → index-DD3dhbBc.js} +1 -1
  77. package/dist/assets/{index-DfUoN49n.js → index-DxboPthU.js} +1 -1
  78. package/dist/assets/{index-DP7dTvCr.js → index-MbMh3BEp.js} +1 -1
  79. package/dist/assets/{lexical-BvHYLizv.js → lexical-C6tryDmA.js} +1 -1
  80. package/dist/assets/{liveblocks-C6uJkYDp.js → liveblocks-B17MGskC.js} +1 -1
  81. package/dist/assets/{lottie-fAK2s9Hi.js → lottie-DAUGvab1.js} +1 -1
  82. package/dist/assets/{mui-rM9SB4se.js → mui-DHDk_FGm.js} +1 -1
  83. package/dist/assets/{pathToGoBack-hFb7er_y.js → pathToGoBack-D31IL7Hr.js} +1 -1
  84. package/dist/assets/{pdf-lib-CuUeF_UU.js → pdf-lib-CcLsu8kY.js} +1 -1
  85. package/dist/assets/{pdf-BB_582W7.js → pdf-nuQ-ikyI.js} +3 -3
  86. package/dist/assets/{plaid-FTXMeicc.js → plaid-DjyrTicB.js} +1 -1
  87. package/dist/assets/{pusher-BUX3wmLc.js → pusher-ZhTs8igs.js} +1 -1
  88. package/dist/assets/{react-BdMxK4It.js → react-Bw2ER6ZJ.js} +1 -1
  89. package/dist/assets/{react-CuH64ZSw.js → react-CUmlc_c1.js} +1 -1
  90. package/dist/assets/{react-C_Xx03pb.js → react-CYVswm1B.js} +1 -1
  91. package/dist/assets/{react-DSY5pTXE.js → react-DJVhVrf6.js} +1 -1
  92. package/dist/assets/{react-DKS-lUPm.js → react-DvZGUbPF.js} +1 -1
  93. package/dist/assets/{react-BDtCLFch.js → react-vvUPMRKW.js} +1 -1
  94. package/dist/assets/{recharts-DKAwX7BS.js → recharts-LEM_fIEl.js} +1 -1
  95. package/dist/assets/{routePaths-CMAA0FK7.js → routePaths-BYyz-v8f.js} +1 -1
  96. package/dist/assets/{sentry-CcNJwOXe.js → sentry-Dbvw8B0Q.js} +1 -1
  97. package/dist/assets/{stripSplatSuffix-bj8J_4FB.js → stripSplatSuffix-DiZJIhFI.js} +1 -1
  98. package/dist/assets/{url-CvKbggsF.js → url-WM0KzDkZ.js} +1 -1
  99. package/dist/assets/{url-DmEjP37W.js → url-Xo-ZJr1m.js} +1 -1
  100. package/dist/assets/{useActualMatchingMatchDetail-CKR9mGuu.js → useActualMatchingMatchDetail-CEXBiY4f.js} +1 -1
  101. package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-DK2RBwgq.js → useAiCfoDashboardSuggestedQuestionsChips-FLxb7_NH.js} +1 -1
  102. package/dist/assets/{useAskAiCfoHostNavButtonProps-B-1FcFXF.js → useAskAiCfoHostNavButtonProps-DTOHTzgK.js} +1 -1
  103. package/dist/assets/{useChargeCardPusherEvents-DdxKTDyN.js → useChargeCardPusherEvents-C7OICBvY.js} +1 -1
  104. package/dist/assets/{useDeviceId-OT3_gug1.js → useDeviceId-B_eWqZ1F.js} +1 -1
  105. package/dist/assets/{useEmailConnectResultRefresh-B_ss3xIm.js → useEmailConnectResultRefresh-BUB0DTzR.js} +1 -1
  106. package/dist/assets/{useInitialThreadRequest-D0Rb6DJ1.js → useInitialThreadRequest-B00mODsB.js} +1 -1
  107. package/dist/assets/{useTaskManagerAccess-Dav7QmvM.js → useTaskManagerAccess-DTKTSj__.js} +1 -1
  108. package/dist/assets/{useTaskManagerPusherEvents-Rcj3c0Hv.js → useTaskManagerPusherEvents-Ije6AKve.js} +1 -1
  109. package/dist/assets/{utils-CKeki_tc.js → utils-BqnrWkbN.js} +1 -1
  110. package/dist/assets/{withTransactionSidePanel-D42v1kum.js → withTransactionSidePanel-CWC-jBK9.js} +1 -1
  111. package/dist/assets/{zeni-epic-state-GBqWdYww.js → zeni-epic-state-BFc7X-60.js} +3 -3
  112. package/dist/index.html +1 -1
  113. package/package.json +1 -1
  114. package/dist/assets/AddressRoutes-CPs4flxe.js +0 -1
  115. package/dist/assets/CustomerOnboardingAuthScreen-C8tuILJQ.js +0 -1
  116. package/dist/assets/NotFoundScreen-ElitTzP9.js +0 -1
  117. package/dist/assets/TransactionDetailRoutes-DUZoQUbB.js +0 -1
@@ -1 +1 @@
1
- import{j as m}from"./liveblocks-C6uJkYDp.js";import{a as g}from"./sentry-CcNJwOXe.js";import{h as w,u as T,g as x,i as k,j as b,l as E}from"./core-CmooL1VE.js";import{z as N,bs as F,a8 as P,n as V,T as L,v as O,bt as j,ae as A,aG as U,p as B}from"./index-LS_Pdivs.js";import{fI as D,gL as G,BK as M,gG as R,c9 as _,Yn as Y,bn as z,v1 as H,uR as K,mC as Z,ob as S,Yo as $,bF as q,cF as C,om as J,ow as Q}from"./zeni-epic-state-GBqWdYww.js";import"./mui-rM9SB4se.js";import{d as W}from"./routePaths-CMAA0FK7.js";import{M as X}from"./MobileAppDrawer-C8_grDao.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="803d8595-b3cd-46fc-b55e-5f35e48abdb0",t._sentryDebugIdIdentifier="sentry-dbid-803d8595-b3cd-46fc-b55e-5f35e48abdb0")}catch{}})();const ee=E((function(t){const a=R(t),i=N.getSignedInUser(),p=D(t),c=p.tenantId,l={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:c??""},f=_(p?.userRole??[])&&a.localData.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",e=Y(t.companyConfigState),n=t.countryListState?.byCountryListCode?.nationalityCountryList?.countries??[];return{isCompanyVerified:a.companyView?.company?.company?.companyBillPayInfo?.companyVerificationStatus?.code==="verified",companyPassportView:a,allIndustries:e.companyIndustries??[],allNationalityCountries:n,isDisabled:f,authParams:l,filesEndPoint:`${A.fileMicroServiceBaseUrl}`,isZeniUser:z(i)}}),(function(t,a){const{companyId:i,currentTenant:p,navigate:c,location:l}=a,{tenantEmailDomain:f}=p;return{onScheduleClick:e=>{let n=e.href;n.includes("http")||(n="https://".concat(n)),window.open(n,"_blank")},onSaveAll:()=>{t(Q())},onAddressClick:e=>{const n=W(f,e),o=B(l.state?.pathnameStackToGoBack,l.pathname);c(n,{state:{pathnameStackToGoBack:o}})},onResetClick:()=>{t(J({companyId:i}))},onBackClick:()=>{c("../")},onCompanyDetailsChanged:e=>{const{companyInfo:n,incInfo:o,taxDetails:r,zeniFinanceTeam:d}=e,{website:u}=n,{meetingLink:y}=d,{incDate:s}=o,{taxesFiledYears:h}=r,v={companyInfo:{...n,website:u!=""&&u!=null?C(u):void 0,meetingLink:y!=""&&y!=null?C(y):void 0,industry:n.industry.selectedOption,companyIndustryType:n.companyIndustryType?.selectedOption??void 0,companySubIndustry:n.companySubIndustry?.selectedOption??void 0,businessModel:n.businessModel.selectedOption??"",companySourceOfFunds:n.companySourceOfFunds?.selectedOption,companySourceOfFundsDescription:n.companySourceOfFundsDescription??void 0,countriesOfOperations:n.countriesOfOperations?.selectedOptions?.map((I=>I.length===2?I:U(I)))??[],transactionVolume:n.transactionVolume?.selectedOption??void 0,transactionVolumeDescription:n.transactionVolumeDescription??void 0,regulatedStatus:n.regulatedStatus??void 0,regulatedStatusDescription:n.regulatedStatusDescription??void 0,usNexus:n.usNexus??void 0,usNexusTypes:n.usNexusTypes?.selectedOptions??[],purposeOfAccount:n.purposeOfAccount?.selectedOption??void 0,purposeOfAccountDescription:n.purposeOfAccountDescription??void 0},incInfo:{typeOfInc:o.typeOfInc.selectedOption??"",stateOfInc:o.stateOfInc.selectedOption??"",incDate:s!=null?q(s?.toString()):s,fileId:o.fileIds[0]},taxDetails:{taxIdOrEIN:r.taxIdOrEIN,sicCode:r.sicCode,naicsCode:r.naicsCode,dunsNumber:r.dunsNumber,taxesFiledYears:h.selectedOptions.map((I=>parseInt(I))),fileId:r.fileIds[0]}};t(S({companyDetails:v}))},onPrimaryContactDetailsUpdated:e=>{t(S({primaryContact:{userId:e.userId,email:e.email.trim(),firstName:e.name.firstName,lastName:e.name.lastName}}))},onNewCompanyOfficerAdded:e=>{t(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:void 0}]}))},onNewCompanyOfficerRemoved:e=>{t($(e))},onCompanyOfficerUpdated:e=>{t(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:e.userId}]}))},updateFilesEntity:e=>{t(Z({files:e}))},onDeleteFile:e=>{t(K(e))},onEditFileName:(e,n)=>{t(H(e,n.split(".")[0]))}}}))(j);function de(){const t=w(),a=T(),i=x(),{tenantEmailDomain:p}=k(),[c,l]=g.useState(!1),[f,e]=g.useState(!1),n=b((s=>s.companyViewState.passportView.fetchState)),o=b((s=>s.companyConfigState.fetchState)),r=b((s=>D(s))),d=r.companyId??N.getSignedInUserTenant(p)?.companyId;if(N.getSignedInUser()==null)throw Error("Can't access company details page without signing in...");g.useEffect((()=>{c||n!=="Not-Started"||d==null||(l(!0),a(G(d)))}),[c,n,d,a]),g.useEffect((()=>{o==="Not-Started"&&a(M())}),[o,a]);const u=s=>{e(s)},y=n==="Not-Started"||n==="In-Progress"||o==="Not-Started"||o==="In-Progress";return d!=null&&n==="Error"?m.jsx(F,{onGoHome:()=>t("../",{replace:!0}),onReload:()=>window.location.reload()}):m.jsxs(m.Fragment,{children:[m.jsx(P,{analytics:V,onLoad:s=>s.trackPageLoaded(L.Event.companyPassport,O(i)?"Settings":"Company Passport")}),O(i)?m.jsx(X,{isAppContentDrawerOpen:f,handleDrawerToggle:u}):null,m.jsx(ee,{companyId:d,navigate:t,location:i,isLoading:y,currentTenant:r,isSettings:O(i),onClickMenuIcon:()=>{u(!0)}})]})}export{de as C};
1
+ import{j as m}from"./liveblocks-B17MGskC.js";import{a as g}from"./sentry-Dbvw8B0Q.js";import{h as w,u as T,g as x,i as k,j as b,l as E}from"./core-Ds5S2wH7.js";import{z as N,bs as F,a8 as P,n as V,T as L,v as O,bt as j,ae as A,aG as U,p as B}from"./index-AMSSipCu.js";import{fI as D,gL as G,BK as M,gG as R,c9 as _,Yn as Y,bn as z,v1 as H,uR as K,mC as Z,ob as S,Yo as $,bF as q,cF as C,om as J,ow as Q}from"./zeni-epic-state-BFc7X-60.js";import"./mui-DHDk_FGm.js";import{d as W}from"./routePaths-BYyz-v8f.js";import{M as X}from"./MobileAppDrawer-Cs0NMQat.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="803d8595-b3cd-46fc-b55e-5f35e48abdb0",t._sentryDebugIdIdentifier="sentry-dbid-803d8595-b3cd-46fc-b55e-5f35e48abdb0")}catch{}})();const ee=E((function(t){const a=R(t),i=N.getSignedInUser(),p=D(t),c=p.tenantId,l={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:c??""},f=_(p?.userRole??[])&&a.localData.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",e=Y(t.companyConfigState),n=t.countryListState?.byCountryListCode?.nationalityCountryList?.countries??[];return{isCompanyVerified:a.companyView?.company?.company?.companyBillPayInfo?.companyVerificationStatus?.code==="verified",companyPassportView:a,allIndustries:e.companyIndustries??[],allNationalityCountries:n,isDisabled:f,authParams:l,filesEndPoint:`${A.fileMicroServiceBaseUrl}`,isZeniUser:z(i)}}),(function(t,a){const{companyId:i,currentTenant:p,navigate:c,location:l}=a,{tenantEmailDomain:f}=p;return{onScheduleClick:e=>{let n=e.href;n.includes("http")||(n="https://".concat(n)),window.open(n,"_blank")},onSaveAll:()=>{t(Q())},onAddressClick:e=>{const n=W(f,e),o=B(l.state?.pathnameStackToGoBack,l.pathname);c(n,{state:{pathnameStackToGoBack:o}})},onResetClick:()=>{t(J({companyId:i}))},onBackClick:()=>{c("../")},onCompanyDetailsChanged:e=>{const{companyInfo:n,incInfo:o,taxDetails:r,zeniFinanceTeam:d}=e,{website:u}=n,{meetingLink:y}=d,{incDate:s}=o,{taxesFiledYears:h}=r,v={companyInfo:{...n,website:u!=""&&u!=null?C(u):void 0,meetingLink:y!=""&&y!=null?C(y):void 0,industry:n.industry.selectedOption,companyIndustryType:n.companyIndustryType?.selectedOption??void 0,companySubIndustry:n.companySubIndustry?.selectedOption??void 0,businessModel:n.businessModel.selectedOption??"",companySourceOfFunds:n.companySourceOfFunds?.selectedOption,companySourceOfFundsDescription:n.companySourceOfFundsDescription??void 0,countriesOfOperations:n.countriesOfOperations?.selectedOptions?.map((I=>I.length===2?I:U(I)))??[],transactionVolume:n.transactionVolume?.selectedOption??void 0,transactionVolumeDescription:n.transactionVolumeDescription??void 0,regulatedStatus:n.regulatedStatus??void 0,regulatedStatusDescription:n.regulatedStatusDescription??void 0,usNexus:n.usNexus??void 0,usNexusTypes:n.usNexusTypes?.selectedOptions??[],purposeOfAccount:n.purposeOfAccount?.selectedOption??void 0,purposeOfAccountDescription:n.purposeOfAccountDescription??void 0},incInfo:{typeOfInc:o.typeOfInc.selectedOption??"",stateOfInc:o.stateOfInc.selectedOption??"",incDate:s!=null?q(s?.toString()):s,fileId:o.fileIds[0]},taxDetails:{taxIdOrEIN:r.taxIdOrEIN,sicCode:r.sicCode,naicsCode:r.naicsCode,dunsNumber:r.dunsNumber,taxesFiledYears:h.selectedOptions.map((I=>parseInt(I))),fileId:r.fileIds[0]}};t(S({companyDetails:v}))},onPrimaryContactDetailsUpdated:e=>{t(S({primaryContact:{userId:e.userId,email:e.email.trim(),firstName:e.name.firstName,lastName:e.name.lastName}}))},onNewCompanyOfficerAdded:e=>{t(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:void 0}]}))},onNewCompanyOfficerRemoved:e=>{t($(e))},onCompanyOfficerUpdated:e=>{t(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:e.userId}]}))},updateFilesEntity:e=>{t(Z({files:e}))},onDeleteFile:e=>{t(K(e))},onEditFileName:(e,n)=>{t(H(e,n.split(".")[0]))}}}))(j);function de(){const t=w(),a=T(),i=x(),{tenantEmailDomain:p}=k(),[c,l]=g.useState(!1),[f,e]=g.useState(!1),n=b((s=>s.companyViewState.passportView.fetchState)),o=b((s=>s.companyConfigState.fetchState)),r=b((s=>D(s))),d=r.companyId??N.getSignedInUserTenant(p)?.companyId;if(N.getSignedInUser()==null)throw Error("Can't access company details page without signing in...");g.useEffect((()=>{c||n!=="Not-Started"||d==null||(l(!0),a(G(d)))}),[c,n,d,a]),g.useEffect((()=>{o==="Not-Started"&&a(M())}),[o,a]);const u=s=>{e(s)},y=n==="Not-Started"||n==="In-Progress"||o==="Not-Started"||o==="In-Progress";return d!=null&&n==="Error"?m.jsx(F,{onGoHome:()=>t("../",{replace:!0}),onReload:()=>window.location.reload()}):m.jsxs(m.Fragment,{children:[m.jsx(P,{analytics:V,onLoad:s=>s.trackPageLoaded(L.Event.companyPassport,O(i)?"Settings":"Company Passport")}),O(i)?m.jsx(X,{isAppContentDrawerOpen:f,handleDrawerToggle:u}):null,m.jsx(ee,{companyId:d,navigate:t,location:i,isLoading:y,currentTenant:r,isSettings:O(i),onClickMenuIcon:()=>{u(!0)}})]})}export{de as C};
@@ -1,4 +1,4 @@
1
- import{j as I}from"./liveblocks-C6uJkYDp.js";import{a as o}from"./sentry-CcNJwOXe.js";import{u as F,h as R,g as H,j as C,N as w}from"./core-CmooL1VE.js";import{U1 as q,fI as z,go as G,pV as V,gP as U,gn as M,gl as Q,Ur as B,gk as A}from"./zeni-epic-state-GBqWdYww.js";import{u as J,z as E,L as T,G as K,M as W}from"./index-LS_Pdivs.js";import{n as X}from"./mui-rM9SB4se.js";import{P as h,a as _}from"./AccountMappingScreen-wr5e90XY.js";import{t as Y}from"./getLocaleForTenant-BECA4-x0.js";import{g as Z,Q as ee}from"./QBOConnectionScreen-DKjMXVLM.js";import"./recharts-DKAwX7BS.js";import"./analytics-B7hAl0cB.js";import"./plaid-FTXMeicc.js";import"./dnd-DOVValOX.js";import"./stripe-cKAAJElX.js";import"./lottie-fAK2s9Hi.js";import"./lexical-BvHYLizv.js";import"./pdf-BB_582W7.js";import"./utils-CKeki_tc.js";import"./MobileAppDrawer-C8_grDao.js";import"./InboxNotificationsProvider-DKQDEkwT.js";import"./useTaskManagerAccess-Dav7QmvM.js";import"./accountMappingHelper-1el1nsHh.js";import"./empty-B6rABti8.js";import"./pdf-lib-CuUeF_UU.js";import"./index-9VkJMIRG.js";import"./url-CvKbggsF.js";import"./index-DP7dTvCr.js";import"./decodeURIComponentSafe-XuT8eSZ_.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]="763a13dc-2c3c-4656-a8ee-82fc55014cce",t._sentryDebugIdIdentifier="sentry-dbid-763a13dc-2c3c-4656-a8ee-82fc55014cce")}catch{}})();const te=X.div`
1
+ import{j as I}from"./liveblocks-B17MGskC.js";import{a as o}from"./sentry-Dbvw8B0Q.js";import{u as F,h as R,g as H,j as C,N as w}from"./core-Ds5S2wH7.js";import{U1 as q,fI as z,go as G,pV as V,gP as U,gn as M,gl as Q,Ur as B,gk as A}from"./zeni-epic-state-BFc7X-60.js";import{u as J,z as E,L as T,G as K,M as W}from"./index-AMSSipCu.js";import{n as X}from"./mui-DHDk_FGm.js";import{P as h,a as _}from"./AccountMappingScreen-ClsoxMBo.js";import{t as Y}from"./getLocaleForTenant-89WxAOR-.js";import{g as Z,Q as ee}from"./QBOConnectionScreen-C_K3kk6W.js";import"./recharts-LEM_fIEl.js";import"./analytics-BYQV505J.js";import"./plaid-DjyrTicB.js";import"./dnd-CcbzF-kK.js";import"./stripe-cKAAJElX.js";import"./lottie-DAUGvab1.js";import"./lexical-C6tryDmA.js";import"./pdf-nuQ-ikyI.js";import"./utils-BqnrWkbN.js";import"./MobileAppDrawer-Cs0NMQat.js";import"./InboxNotificationsProvider-CgRbrWRn.js";import"./useTaskManagerAccess-DTKTSj__.js";import"./accountMappingHelper-CLW0d-L0.js";import"./empty-DY4904-e.js";import"./pdf-lib-CcLsu8kY.js";import"./index-BpsNNw_P.js";import"./url-WM0KzDkZ.js";import"./index-MbMh3BEp.js";import"./decodeURIComponentSafe-DZ09f2hv.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]="763a13dc-2c3c-4656-a8ee-82fc55014cce",t._sentryDebugIdIdentifier="sentry-dbid-763a13dc-2c3c-4656-a8ee-82fc55014cce")}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-B17MGskC.js";import{z as m}from"./index-AMSSipCu.js";import{g as n}from"./QBOConnectionScreen-C_K3kk6W.js";import"./sentry-Dbvw8B0Q.js";import{g as p,N as a}from"./core-Ds5S2wH7.js";import"./zeni-epic-state-BFc7X-60.js";import"./recharts-LEM_fIEl.js";import"./mui-DHDk_FGm.js";import"./analytics-BYQV505J.js";import"./plaid-DjyrTicB.js";import"./dnd-CcbzF-kK.js";import"./stripe-cKAAJElX.js";import"./lottie-DAUGvab1.js";import"./lexical-C6tryDmA.js";import"./pdf-nuQ-ikyI.js";import"./utils-BqnrWkbN.js";import"./empty-DY4904-e.js";import"./pdf-lib-CcLsu8kY.js";import"./index-BpsNNw_P.js";import"./url-WM0KzDkZ.js";import"./index-MbMh3BEp.js";import"./decodeURIComponentSafe-DZ09f2hv.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-C6uJkYDp.js";import{t as wn,A as $e}from"./AddressScreen-gHefQKa8.js";import An from"./NotFoundScreen-ElitTzP9.js";import{a as d,t as Me}from"./sentry-CcNJwOXe.js";import{h as _e,g as xe,u as se,i as Te,j as E,N as Q,q as Pn,l as cn,n as Dn,o as H}from"./core-CmooL1VE.js";import{fI as X,e0 as Ee,d$ as we,bq as jn,Ui as Bn,bS as Fn,pT as Vn,Bu as Un,Bx as Rn,VF as Ln,VG as Nn,lx as Oe,lA as dn,UV as Gn,c0 as $n,c9 as fe,BY as Ae,BJ as Mn,VH as me,BZ as un,Ss as Qn,mK as ln,dj as pn,VI as Kn,VJ as zn,uK as qn,UI as Ce,hY as Hn,UH as be,hV as Jn,Gn as Yn,uO as Zn,hN as Wn,hQ as Qe,VK as mn,VL as Xn,Md as et,VM as nt,Mh as tt,BA as at,VN as ot,VO as st,lv as rt,ly as it,C9 as ct,BL as gn,BX as dt,bF as Ke,cF as ut,C8 as ze,v1 as lt,uR as pt,mC as mt,gJ as gt,gI as ft,gH as yt,VP as ht,BD as Ct,Ca as bt,Cd as St,Cg as It,Cm as kt,dk as Ot}from"./zeni-epic-state-GBqWdYww.js";import{z,_ as Pe,f as Z,g as vt,p as q,a8 as re,n as g,aE as _t,ai as fn,a1 as xt,c as yn,P as hn,m as W,Y as ge,T as ve,aF as Tt,M as qe,A as He,ae as Et,aG as Je,aH as wt,aI as At}from"./index-LS_Pdivs.js";import{n as De}from"./mui-rM9SB4se.js";import{g as Pt,h as Dt,q as ie}from"./QBOConnectionScreen-DKjMXVLM.js";import{u as jt,a as Bt}from"./useEmailConnectResultRefresh-B_ss3xIm.js";import{u as Ft}from"./useChargeCardPusherEvents-DdxKTDyN.js";import"./recharts-DKAwX7BS.js";import"./analytics-B7hAl0cB.js";import"./plaid-FTXMeicc.js";import"./dnd-DOVValOX.js";import"./stripe-cKAAJElX.js";import"./lottie-fAK2s9Hi.js";import"./lexical-BvHYLizv.js";import"./pdf-BB_582W7.js";import"./utils-CKeki_tc.js";import"./empty-B6rABti8.js";import"./pdf-lib-CuUeF_UU.js";import"./index-9VkJMIRG.js";import"./url-CvKbggsF.js";import"./index-DP7dTvCr.js";import"./decodeURIComponentSafe-XuT8eSZ_.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]="3ce92b54-2a3d-487e-8025-996164cb01bf",e._sentryDebugIdIdentifier="sentry-dbid-3ce92b54-2a3d-487e-8025-996164cb01bf")}catch{}})();const Ye=e=>{switch(e){case"Complete":return"yes";case"Pending Review":case"Incomplete":return"partially";default:return"no"}},Vt=()=>{const e=_e(),l=xe(),i=se(),[a,p]=d.useState(!1),[u,c]=d.useState(!1),{tenantEmailDomain:v}=Te(),n=z.getSignedInUser(),{useFeatureGate:t}=Pe(),{isFeatureEnabled:C}=t(Z.isApAgingFeatureEnabled),{isFeatureEnabled:o}=t(Z.isArAgingFeatureEnabled),{isFeatureEnabled:A}=t(Z.isReferralFeatureEnabled),{isFeatureEnabled:w}=t(Z.isDebitCardFeatureEnabled),k=vt(),O=E((S=>X(S))),P=E((S=>S.onboardingCustomerViewState.fetchState)),_=O.excludedResources,F=O.companyId??z.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=[],U=_?.resources?.find((S=>S.resource==="/reports/top_expenses"))==null,h=_?.resources?.find((S=>S.resource==="/reports/task_card"))==null,r=O?.userRole!=null&&jn(O?.userRole),x=_?.resources?.find((S=>S.resource==="/bills"))==null&&!r,T=_?.resources?.find((S=>S.resource==="/reimbursements"))==null;U===!1&&D.push("top_expenses"),h===!1&&D.push("task_card"),x===!1&&D.push("bill_pay_card","bill_pay_promo_card"),T===!1&&D.push("reimbursement_card","reimbursement_promo_card"),D.push("zeni_accounts_promo_card","treasury_promo_card"),A===!1&&D.push("rewards_card");const f=E((S=>{const V=[];C===!1&&V.push("accounts_payable_aging"),o===!1&&V.push("accounts_receivable_aging"),V.push("zeni_accounts_promo_card","treasury_promo_card"),A===!1&&V.push("rewards_card"),k===!1&&V.push("expense_automation_card");const J=Bn(S,V);return Fn(J.reportsInOrder.map(($=>({fetchState:$.fetchState,error:$.error})))).fetchState}));d.useEffect((()=>{P!=="Completed"||a||m||b||(p(!0),i(Vn(n.userId,F,O.tenantId,!0,!1,D)))}),[a,P,m,b,n,O.tenantId,i]);const j=d.useRef(!1),N=d.useCallback((()=>{const S={pathnameStackToGoBack:q(l.state?.pathnameStackToGoBack,l.pathname),message:"activation"};e(m?"../../checking":b?"../../cards":"../../dashboard",{state:S})}),[e,l,m,b]),G=d.useCallback((()=>{j.current||(j.current=!0,N())}),[N]);if(d.useEffect((()=>{const S=setTimeout((()=>c(!0)),3e3);return()=>clearTimeout(S)}),[]),d.useEffect((()=>{const S=setTimeout(G,6e3);return()=>clearTimeout(S)}),[G]),d.useEffect((()=>{m||b||!u||f!=="Completed"&&f!=="Error"||G()}),[u,f,m,b,G]),P!=="Completed")return s.jsx(Q,{to:"../"});const L=O.company?.companyOnboardingInfo?.onboardingInfo,ee={timeSinceQuoteSign:L?.onboardingTimeSinceQuoteSigned??"",timeSinceQuoteSignInMinutes:L?.onboardingToQuoteSignMinutes??0,isKybDone:Ye(L?.businessVerified?.status),isKycDone:Ye(L?.identityVerified?.status),paymentType:"",paymentSource:"",qboConnectionSource:L?.accountingConnectionCreationMode??""};return s.jsxs(s.Fragment,{children:[s.jsx(re,{analytics:g,onLoad:S=>S.trackOnboardingDashboardActivation(ee)}),s.jsx(_t,{show:!0,onComplete:G})]})},Se=["reading_books","finance_graph","reconciliation","cfo_foundation"],Ie=["llm_fine_tuning","rag_knowledge_graph","personalized_context"],Ze=(e,l)=>{const i=new Map(e.map((a=>[a.key,a])));return l.map((a=>{return p=i.get(a)?.status,p==="starting"||p==="building"?p:"idle";var p}))},We=(e,l)=>{if(e.length===0)return!1;const i=new Map(e.map((a=>[a.key,a])));return l.every((a=>i.get(a)?.status==="ready"))},Xe=De.div`
1
+ import{j as s}from"./liveblocks-B17MGskC.js";import{t as wn,A as $e}from"./AddressScreen-B2L8aMyB.js";import An from"./NotFoundScreen-CvynoGxh.js";import{a as d,t as Me}from"./sentry-Dbvw8B0Q.js";import{h as _e,g as xe,u as se,i as Te,j as E,N as Q,q as Pn,l as cn,n as Dn,o as H}from"./core-Ds5S2wH7.js";import{fI as X,e0 as Ee,d$ as we,bq as jn,Ui as Bn,bS as Fn,pT as Vn,Bu as Un,Bx as Rn,VF as Ln,VG as Nn,lx as Oe,lA as dn,UV as Gn,c0 as $n,c9 as fe,BY as Ae,BJ as Mn,VH as me,BZ as un,Ss as Qn,mK as ln,dj as pn,VI as Kn,VJ as zn,uK as qn,UI as Ce,hY as Hn,UH as be,hV as Jn,Gn as Yn,uO as Zn,hN as Wn,hQ as Qe,VK as mn,VL as Xn,Md as et,VM as nt,Mh as tt,BA as at,VN as ot,VO as st,lv as rt,ly as it,C9 as ct,BL as gn,BX as dt,bF as Ke,cF as ut,C8 as ze,v1 as lt,uR as pt,mC as mt,gJ as gt,gI as ft,gH as yt,VP as ht,BD as Ct,Ca as bt,Cd as St,Cg as It,Cm as kt,dk as Ot}from"./zeni-epic-state-BFc7X-60.js";import{z,_ as Pe,f as Z,g as vt,p as q,a8 as re,n as g,aE as _t,ai as fn,a1 as xt,c as yn,P as hn,m as W,Y as ge,T as ve,aF as Tt,M as qe,A as He,ae as Et,aG as Je,aH as wt,aI as At}from"./index-AMSSipCu.js";import{n as De}from"./mui-DHDk_FGm.js";import{g as Pt,h as Dt,q as ie}from"./QBOConnectionScreen-C_K3kk6W.js";import{u as jt,a as Bt}from"./useEmailConnectResultRefresh-BUB0DTzR.js";import{u as Ft}from"./useChargeCardPusherEvents-C7OICBvY.js";import"./recharts-LEM_fIEl.js";import"./analytics-BYQV505J.js";import"./plaid-DjyrTicB.js";import"./dnd-CcbzF-kK.js";import"./stripe-cKAAJElX.js";import"./lottie-DAUGvab1.js";import"./lexical-C6tryDmA.js";import"./pdf-nuQ-ikyI.js";import"./utils-BqnrWkbN.js";import"./empty-DY4904-e.js";import"./pdf-lib-CcLsu8kY.js";import"./index-BpsNNw_P.js";import"./url-WM0KzDkZ.js";import"./index-MbMh3BEp.js";import"./decodeURIComponentSafe-DZ09f2hv.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]="3ce92b54-2a3d-487e-8025-996164cb01bf",e._sentryDebugIdIdentifier="sentry-dbid-3ce92b54-2a3d-487e-8025-996164cb01bf")}catch{}})();const Ye=e=>{switch(e){case"Complete":return"yes";case"Pending Review":case"Incomplete":return"partially";default:return"no"}},Vt=()=>{const e=_e(),l=xe(),i=se(),[a,p]=d.useState(!1),[u,c]=d.useState(!1),{tenantEmailDomain:v}=Te(),n=z.getSignedInUser(),{useFeatureGate:t}=Pe(),{isFeatureEnabled:C}=t(Z.isApAgingFeatureEnabled),{isFeatureEnabled:o}=t(Z.isArAgingFeatureEnabled),{isFeatureEnabled:A}=t(Z.isReferralFeatureEnabled),{isFeatureEnabled:w}=t(Z.isDebitCardFeatureEnabled),k=vt(),O=E((S=>X(S))),P=E((S=>S.onboardingCustomerViewState.fetchState)),_=O.excludedResources,F=O.companyId??z.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=[],U=_?.resources?.find((S=>S.resource==="/reports/top_expenses"))==null,h=_?.resources?.find((S=>S.resource==="/reports/task_card"))==null,r=O?.userRole!=null&&jn(O?.userRole),x=_?.resources?.find((S=>S.resource==="/bills"))==null&&!r,T=_?.resources?.find((S=>S.resource==="/reimbursements"))==null;U===!1&&D.push("top_expenses"),h===!1&&D.push("task_card"),x===!1&&D.push("bill_pay_card","bill_pay_promo_card"),T===!1&&D.push("reimbursement_card","reimbursement_promo_card"),D.push("zeni_accounts_promo_card","treasury_promo_card"),A===!1&&D.push("rewards_card");const f=E((S=>{const V=[];C===!1&&V.push("accounts_payable_aging"),o===!1&&V.push("accounts_receivable_aging"),V.push("zeni_accounts_promo_card","treasury_promo_card"),A===!1&&V.push("rewards_card"),k===!1&&V.push("expense_automation_card");const J=Bn(S,V);return Fn(J.reportsInOrder.map(($=>({fetchState:$.fetchState,error:$.error})))).fetchState}));d.useEffect((()=>{P!=="Completed"||a||m||b||(p(!0),i(Vn(n.userId,F,O.tenantId,!0,!1,D)))}),[a,P,m,b,n,O.tenantId,i]);const j=d.useRef(!1),N=d.useCallback((()=>{const S={pathnameStackToGoBack:q(l.state?.pathnameStackToGoBack,l.pathname),message:"activation"};e(m?"../../checking":b?"../../cards":"../../dashboard",{state:S})}),[e,l,m,b]),G=d.useCallback((()=>{j.current||(j.current=!0,N())}),[N]);if(d.useEffect((()=>{const S=setTimeout((()=>c(!0)),3e3);return()=>clearTimeout(S)}),[]),d.useEffect((()=>{const S=setTimeout(G,6e3);return()=>clearTimeout(S)}),[G]),d.useEffect((()=>{m||b||!u||f!=="Completed"&&f!=="Error"||G()}),[u,f,m,b,G]),P!=="Completed")return s.jsx(Q,{to:"../"});const L=O.company?.companyOnboardingInfo?.onboardingInfo,ee={timeSinceQuoteSign:L?.onboardingTimeSinceQuoteSigned??"",timeSinceQuoteSignInMinutes:L?.onboardingToQuoteSignMinutes??0,isKybDone:Ye(L?.businessVerified?.status),isKycDone:Ye(L?.identityVerified?.status),paymentType:"",paymentSource:"",qboConnectionSource:L?.accountingConnectionCreationMode??""};return s.jsxs(s.Fragment,{children:[s.jsx(re,{analytics:g,onLoad:S=>S.trackOnboardingDashboardActivation(ee)}),s.jsx(_t,{show:!0,onComplete:G})]})},Se=["reading_books","finance_graph","reconciliation","cfo_foundation"],Ie=["llm_fine_tuning","rag_knowledge_graph","personalized_context"],Ze=(e,l)=>{const i=new Map(e.map((a=>[a.key,a])));return l.map((a=>{return p=i.get(a)?.status,p==="starting"||p==="building"?p:"idle";var p}))},We=(e,l)=>{if(e.length===0)return!1;const i=new Map(e.map((a=>[a.key,a])));return l.every((a=>i.get(a)?.status==="ready"))},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-C6uJkYDp.js";import{i as K,j as S,g as W,u as X,h as H,l as ne,k as oa,n as ht,o as P,N as vn}from"./core-CmooL1VE.js";import{fI as B,V$ as He,bF as sa,br as Ee,Xn as En,kd as Tn,Xo as Vt,Xp as wn,kg as ft,Xq as Qe,Xr as xn,kl as Dn,Xs as Gt,Xt as Pn,kp as gt,Xu as Ze,Xv as On,Xw as Fn,Wj as jn,lr as Rn,Xx as Mn,bn as Je,Xy as ra,WZ as le,bc as ia,lF as ca,lo as la,W$ as de,W_ as ae,fH as da,gd as Bn,gt as bt,Xz as Yn,XA as Un,XB as ua,XC as Oe,E5 as Be,E6 as Ye,Eu as Te,Eo as ue,Ea as Ue,XD as Ln,c0 as Le,XE as Vn,XF as Gn,XG as ma,XH as Fe,XI as Nn,ek as et,Ag as pa,XJ as $n,XK as ha,XL as Xn,XM as zn,XN as Kn,XO as _t,UX as St,ug as we,m2 as xe,EE as kt,An as qn,Au as Qn,XP as Zn,XQ as Wn,E7 as Nt,XR as Hn,Aj as Ie,Ae as fa,XS as ge,XT as $t,XU as Jn,XV as yt,UW as At,Cr as ga,XW as eo,XX as ba,XY as to,XZ as ao,X_ as no,X$ as It,CG as oo,CN as so,Y0 as ro,Y1 as io,E9 as Xt,Y2 as co,Cp as Ca,Y3 as be,Y4 as zt,Y5 as lo,bq as _a,EJ as Sa,Y6 as uo,Y7 as ka,Y8 as mo,Y9 as po,Ya as ho,Yb as vt,EB as fo,ED as go,Yc as bo,Yd as Co,E8 as Kt,Ye as _o,EH as ya,Yf as Ce,Yg as qt,Yh as So,Yi as ko,Yj as Aa,lT as Ia,p_ as va,lY as Ea,pY as Ta,pX as wa,pW as xa,BO as yo,dd as Ao,pT as Io,Ui as vo,q8 as Eo,Yk as To,Yl as wo,Ym as xo,b5 as Et,q2 as Do,ig as Po,gL as Oo,q1 as Fo,lh as jo,p$ as Ro,pZ as Mo,e0 as Bo,d$ as Yo}from"./zeni-epic-state-GBqWdYww.js";import{z as Y,av as oe,p as O,n as w,G as q,bb as Uo,as as Ve,a8 as Ge,bc as Da,T as N,bd as Lo,be as Pa,E as Vo,bf as Go,bg as No,a as Oa,a1 as Fa,e as ja,ar as $o,bh as Xo,ao as zo,_ as Tt,bi as Ra,B as re,bj as Ma,bk as Ba,au as Ya,bl as Ko,ai as Ne,P as $e,bm as qo,U as Qo,bn as Zo,f as G,g as Wo,m as Ho,a4 as Jo,aq as es,bo as ts,bp as as,bq as ns,br as ve}from"./index-LS_Pdivs.js";import{n as wt}from"./mui-rM9SB4se.js";import{a as b}from"./sentry-CcNJwOXe.js";import{w as Ua}from"./withTransactionSidePanel-D42v1kum.js";import{c as La,t as De,f as me,b as xt,a as Dt,v as os}from"./routePaths-CMAA0FK7.js";import{u as se}from"./useAskAiCfoHostNavButtonProps-B-1FcFXF.js";import Me from"./NotFoundScreen-ElitTzP9.js";import{u as Pt}from"./useInitialThreadRequest-D0Rb6DJ1.js";import{t as Va}from"./analyticsHelper-BfncnDpw.js";import{C as ss}from"./CompanyPassportScreen-BuvLd6cw.js";import{u as rs}from"./useAiCfoDashboardSuggestedQuestionsChips-DK2RBwgq.js";import{F as is}from"./FeaturePreviewScreen-D9YZEx_i.js";import"./recharts-DKAwX7BS.js";import"./analytics-B7hAl0cB.js";import"./plaid-FTXMeicc.js";import"./dnd-DOVValOX.js";import"./stripe-cKAAJElX.js";import"./lottie-fAK2s9Hi.js";import"./lexical-BvHYLizv.js";import"./pdf-BB_582W7.js";import"./utils-CKeki_tc.js";import"./TransactionDetailScreen-C-tYoelm.js";import"./decodeURIComponentSafe-XuT8eSZ_.js";import"./expenseAutomationHelper-C7H1WvS_.js";import"./stripSplatSuffix-bj8J_4FB.js";import"./MobileAppDrawer-C8_grDao.js";import"./InboxNotificationsProvider-DKQDEkwT.js";import"./useTaskManagerAccess-Dav7QmvM.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]="52735f86-3c14-4d59-9572-2fdc627ab71a",e._sentryDebugIdIdentifier="sentry-dbid-52735f86-3c14-4d59-9572-2fdc627ab71a")}catch{}})();const cs=Ua((function({openTransactionPanel:e,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n}){const{vendorId:o,reportDate:r}=K(),s=Y.getSignedInUser(),i=S((_=>_.tenantState.currentTenantId)),l=S((_=>B(_))),{tenantEmailDomain:m}=K(),p=W(),h=l?.companyName??"",f={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:i??""},c=b.useMemo((()=>({authParams:f,companyName:h,downloadEndPoint:`${oe}/agingDetailedReport`,timezone:He()})),[]),u=b.useMemo((()=>r!=null?sa(r):Ee()),[r]),C=X(),g=H(),y=S((_=>En(_,u,o))),E=b.useCallback((()=>{o!=null&&y.fetchState!=="In-Progress"&&y.fetchState!=="Completed"&&C(Tn(o,u))}),[u]),I=b.useCallback((()=>{g("../../",{relative:"path"})}),[]),k=b.useCallback(((_,A)=>{C(Vt({sortKey:_,sortOrder:A}))}),[]),T=b.useCallback((_=>{C(Vt({downloadState:_}))}),[]),R=b.useCallback((_=>{if(e)e(_.transactionId,_.transactionType);else if(m!=null){const A=La({id:_.transactionId,type:_.transactionType},m);g(A);const U=O(p.state?.pathnameStackToGoBack,p.pathname);g(A,{state:{pathnameStackToGoBack:U}})}}),[m,e]),x=b.useCallback((()=>{y.vendor!=null&&w.trackApAgingDetail("AP Aging",u.format(q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),y.vendor.id,y.vendor.name)}),[y.vendor,u]);return b.useEffect((()=>{E()}),[]),b.useEffect((()=>{y.fetchState==="Completed"&&x()}),[x,y.fetchState]),d.jsx(Uo,{apAgingDetail:y,downloadParams:c,reportDate:u,analytics:w,onTransactionClick:R,onReload:E,onBackClick:I,onColumnSortConfigChanged:k,updateDownloadStateHandler:T,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n})})),ls=()=>{const e=X(),a=H(),t=S((k=>wn(k))),{isAiCfoAccessEnabled:n,onAskAiCfoClick:o}=se({mobileExploreReferrer:"AP Aging"});Ve({isDataReady:t.fetchState==="Completed"});const r=Y.getSignedInUser(),s=S((k=>k.tenantState.currentTenantId)),i=S((k=>B(k))),l=i?.companyName??"",m={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:s??""},p=b.useMemo((()=>({authParams:m,companyName:l,downloadEndPoint:`${oe}/agingReport`,timezone:He()})),[]),h=t.apAgingUIState.selectedDate??Ee(),f=b.useCallback((()=>{t.fetchState!=="In-Progress"&&t.fetchState!=="Completed"&&e(ft(h))}),[]);b.useEffect((()=>{f()}),[]);const c=b.useCallback((()=>{a("../",{relative:"path"})}),[]),u=b.useCallback((k=>{e(Qe({searchString:k}))}),[]),C=b.useCallback(((k,T)=>{e(Qe({sortKey:T,sortOrder:k}))}),[]),g=b.useCallback((k=>{a(`./${k}/${h.format(q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`)}),[h]),y=b.useCallback((k=>{e(Qe({downloadState:k}))}),[]),E=b.useCallback(((k,T)=>{}),[]),I=b.useCallback(((k,T)=>{e(Qe({selectedDate:k,agingDateSelectionType:T})),e(ft(k))}),[]);return d.jsxs(d.Fragment,{children:[t.fetchState==="Completed"?d.jsx(Ge,{analytics:w,onLoad:k=>k.trackPageLoaded(N.Event.agingReport,"AP Aging")}):null,d.jsx(Da,{uiState:t.apAgingUIState,report:t,downloadParams:p,analytics:w,onReloadReport:f,onBackClick:c,onSearchTextChange:u,onSortOrderChange:C,onEntityNameClick:g,updateDownloadStateHandler:y,onSelectedDateChanged:I,onNodeCollapseToggled:E,isAiCfoAccessEnabled:n,onAskAiCfoClick:o})]})},ds=Ua((function({openTransactionPanel:e,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n}){const{customerId:o,reportDate:r}=K(),s=Y.getSignedInUser(),i=S((x=>B(x))),{tenantEmailDomain:l}=K(),m=W(),p=i.companyName,h={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:i.tenantId},f=b.useMemo((()=>({authParams:h,companyName:p,downloadEndPoint:`${oe}/agingDetailedReport`,timezone:He()})),[]),c=b.useMemo((()=>r!=null?sa(r):Ee()),[r]),u=X(),C=H(),g=S((x=>xn(x,c,o))),y=b.useCallback((()=>{o!=null&&g.fetchState!=="In-Progress"&&g.fetchState!=="Completed"&&u(Dn(o,c))}),[c]),E=b.useCallback((()=>{C("../../",{relative:"path"})}),[]),I=b.useCallback(((x,_)=>{u(Gt({sortKey:x,sortOrder:_}))}),[]),k=b.useCallback((x=>{u(Gt({downloadState:x}))}),[]),T=b.useCallback((x=>{if(e)e(x.transactionId,x.transactionType);else if(l!=null){const _=La({id:x.transactionId,type:x.transactionType},l);C(_);const A=O(m.state?.pathnameStackToGoBack,m.pathname);C(_,{state:{pathnameStackToGoBack:A}})}}),[l,e]),R=b.useCallback((()=>{g.customer!=null&&w.trackArAgingDetail("AR Aging",c.format(q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),g.customer.id,g.customer.name)}),[g.customer,c]);return b.useEffect((()=>{y()}),[]),b.useEffect((()=>{g.fetchState==="Completed"&&R()}),[g.fetchState,R]),d.jsx(Lo,{arAgingDetail:g,downloadParams:f,reportDate:c,analytics:w,onTransactionClick:T,onReload:y,onBackClick:E,onColumnSortConfigChanged:I,updateDownloadStateHandler:k,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n})})),us=()=>{const e=X(),a=H(),t=S((I=>Pn(I))),{isAiCfoAccessEnabled:n,onAskAiCfoClick:o}=se({mobileExploreReferrer:"AR Aging"});Ve({isDataReady:t.fetchState==="Completed"});const r=Y.getSignedInUser(),s=S((I=>B(I))),i=s.companyName,l={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:s.tenantId},m=b.useMemo((()=>({authParams:l,companyName:i,downloadEndPoint:`${oe}/agingReport`,timezone:He()})),[]),p=t.arAgingUIState.selectedDate??Ee(),h=b.useCallback((()=>{t.fetchState!=="In-Progress"&&t.fetchState!=="Completed"&&e(gt(p))}),[]);b.useEffect((()=>{h()}),[]);const f=b.useCallback((()=>{a("../",{relative:"path"})}),[]),c=b.useCallback((I=>{e(Ze({searchString:I}))}),[]),u=b.useCallback(((I,k)=>{e(Ze({sortKey:k,sortOrder:I}))}),[]),C=b.useCallback((I=>{a(`./${I}/${p.format(q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`)}),[p]),g=b.useCallback((I=>{e(Ze({downloadState:I}))}),[]),y=b.useCallback(((I,k)=>{e(Ze({selectedDate:I,agingDateSelectionType:k})),e(gt(I))}),[]),E=b.useCallback(((I,k)=>{e(On({nodeId:I,isCollapsed:k}))}),[]);return d.jsxs(d.Fragment,{children:[t.fetchState==="Completed"?d.jsx(Ge,{analytics:w,onLoad:I=>I.trackPageLoaded(N.Event.agingReport,"AR Aging")}):null,d.jsx(Da,{uiState:t.arAgingUIState,report:t,downloadParams:m,analytics:w,onReloadReport:h,onBackClick:f,onSearchTextChange:c,onSortOrderChange:u,onEntityNameClick:C,updateDownloadStateHandler:g,onSelectedDateChanged:y,onNodeCollapseToggled:E,isAiCfoAccessEnabled:n,onAskAiCfoClick:o})]})},Ga=(e,a)=>({key:a,title:e.accountName,amount:e.balance?.available,logoUri:e.logo?.toString(),source:e});function Na(e,a){const t=jn(a.firstMonthOfFY);return{onItemClick:(n,o)=>{const r=o.accountName===""?o.accountDescription:o.accountName,s=De(a.tenantEmailDomain,o.accountId,o.accountType,r,"quarter",t,!1),i=O(a.location.state?.pathnameStackToGoBack,a.location.pathname);a.navigate(s,{state:{pathnameStackToGoBack:i,referrer:a.referrerType}})},onSetAccountsStatementDate:(n,o)=>{e(Rn(n,o))}}}const ms=ne((function(e){const a=Fn(e).accountsInOrder.map(((t,n)=>Ga(t,n)));return{sectionTitle:q.getLocalizedStrings().balanceCard.cashBalanceSectionTitle,transactionArray:a,fetchState:e.cashBalanceState.fetchState,analytics:w}}),Na)(Pa),ps=ne((function(e){const a=Mn(e).accountsInOrder.map(((o,r)=>Ga(o,r))),t=Y.getSignedInUser(),n=Je(t);return{sectionTitle:q.getLocalizedStrings().balanceCard.cardBalanceSectionTitle,transactionArray:a,isZeniUser:n,fetchState:e.cardBalanceState.fetchState,analytics:w}}),Na)(Pa);function hs(){const e=H(),a=W(),{tenantEmailDomain:t}=K(),n=S((o=>B(o).company?.companyInfo.firstMonthOfFY??1));return S((o=>o.cashBalanceState.fetchState))==="Error"?d.jsx(Me,{}):d.jsx(ms,{tenantEmailDomain:t,location:a,referrerType:"Cash Balance",navigate:e,firstMonthOfFY:n})}function fs(){const e=H(),a=W(),{tenantEmailDomain:t}=K(),n=S((o=>B(o).company?.companyInfo.firstMonthOfFY??1));return S((o=>o.cardBalanceState.fetchState))==="Error"?d.jsx(Me,{}):d.jsx(ps,{tenantEmailDomain:t,location:a,referrerType:"Card Balance",navigate:e,firstMonthOfFY:n})}const gs=wt.div`
1
+ import{j as d}from"./liveblocks-B17MGskC.js";import{i as K,j as S,g as W,u as X,h as H,l as ne,k as oa,n as ht,o as P,N as vn}from"./core-Ds5S2wH7.js";import{fI as B,V$ as He,bF as sa,br as Ee,Xn as En,kd as Tn,Xo as Vt,Xp as wn,kg as ft,Xq as Qe,Xr as xn,kl as Dn,Xs as Gt,Xt as Pn,kp as gt,Xu as Ze,Xv as On,Xw as Fn,Wj as jn,lr as Rn,Xx as Mn,bn as Je,Xy as ra,WZ as le,bc as ia,lF as ca,lo as la,W$ as de,W_ as ae,fH as da,gd as Bn,gt as bt,Xz as Yn,XA as Un,XB as ua,XC as Oe,E5 as Be,E6 as Ye,Eu as Te,Eo as ue,Ea as Ue,XD as Ln,c0 as Le,XE as Vn,XF as Gn,XG as ma,XH as Fe,XI as Nn,ek as et,Ag as pa,XJ as $n,XK as ha,XL as Xn,XM as zn,XN as Kn,XO as _t,UX as St,ug as we,m2 as xe,EE as kt,An as qn,Au as Qn,XP as Zn,XQ as Wn,E7 as Nt,XR as Hn,Aj as Ie,Ae as fa,XS as ge,XT as $t,XU as Jn,XV as yt,UW as At,Cr as ga,XW as eo,XX as ba,XY as to,XZ as ao,X_ as no,X$ as It,CG as oo,CN as so,Y0 as ro,Y1 as io,E9 as Xt,Y2 as co,Cp as Ca,Y3 as be,Y4 as zt,Y5 as lo,bq as _a,EJ as Sa,Y6 as uo,Y7 as ka,Y8 as mo,Y9 as po,Ya as ho,Yb as vt,EB as fo,ED as go,Yc as bo,Yd as Co,E8 as Kt,Ye as _o,EH as ya,Yf as Ce,Yg as qt,Yh as So,Yi as ko,Yj as Aa,lT as Ia,p_ as va,lY as Ea,pY as Ta,pX as wa,pW as xa,BO as yo,dd as Ao,pT as Io,Ui as vo,q8 as Eo,Yk as To,Yl as wo,Ym as xo,b5 as Et,q2 as Do,ig as Po,gL as Oo,q1 as Fo,lh as jo,p$ as Ro,pZ as Mo,e0 as Bo,d$ as Yo}from"./zeni-epic-state-BFc7X-60.js";import{z as Y,av as oe,p as O,n as w,G as q,bb as Uo,as as Ve,a8 as Ge,bc as Da,T as N,bd as Lo,be as Pa,E as Vo,bf as Go,bg as No,a as Oa,a1 as Fa,e as ja,ar as $o,bh as Xo,ao as zo,_ as Tt,bi as Ra,B as re,bj as Ma,bk as Ba,au as Ya,bl as Ko,ai as Ne,P as $e,bm as qo,U as Qo,bn as Zo,f as G,g as Wo,m as Ho,a4 as Jo,aq as es,bo as ts,bp as as,bq as ns,br as ve}from"./index-AMSSipCu.js";import{n as wt}from"./mui-DHDk_FGm.js";import{a as b}from"./sentry-Dbvw8B0Q.js";import{w as Ua}from"./withTransactionSidePanel-CWC-jBK9.js";import{c as La,t as De,f as me,b as xt,a as Dt,v as os}from"./routePaths-BYyz-v8f.js";import{u as se}from"./useAskAiCfoHostNavButtonProps-DTOHTzgK.js";import Me from"./NotFoundScreen-CvynoGxh.js";import{u as Pt}from"./useInitialThreadRequest-B00mODsB.js";import{t as Va}from"./analyticsHelper-_t38_lMZ.js";import{C as ss}from"./CompanyPassportScreen-BnmlUZGh.js";import{u as rs}from"./useAiCfoDashboardSuggestedQuestionsChips-FLxb7_NH.js";import{F as is}from"./FeaturePreviewScreen-DIq-jgCH.js";import"./recharts-LEM_fIEl.js";import"./analytics-BYQV505J.js";import"./plaid-DjyrTicB.js";import"./dnd-CcbzF-kK.js";import"./stripe-cKAAJElX.js";import"./lottie-DAUGvab1.js";import"./lexical-C6tryDmA.js";import"./pdf-nuQ-ikyI.js";import"./utils-BqnrWkbN.js";import"./TransactionDetailScreen-B2PSbhdh.js";import"./decodeURIComponentSafe-DZ09f2hv.js";import"./expenseAutomationHelper-BrkwjQbC.js";import"./stripSplatSuffix-DiZJIhFI.js";import"./MobileAppDrawer-Cs0NMQat.js";import"./InboxNotificationsProvider-CgRbrWRn.js";import"./useTaskManagerAccess-DTKTSj__.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]="52735f86-3c14-4d59-9572-2fdc627ab71a",e._sentryDebugIdIdentifier="sentry-dbid-52735f86-3c14-4d59-9572-2fdc627ab71a")}catch{}})();const cs=Ua((function({openTransactionPanel:e,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n}){const{vendorId:o,reportDate:r}=K(),s=Y.getSignedInUser(),i=S((_=>_.tenantState.currentTenantId)),l=S((_=>B(_))),{tenantEmailDomain:m}=K(),p=W(),h=l?.companyName??"",f={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:i??""},c=b.useMemo((()=>({authParams:f,companyName:h,downloadEndPoint:`${oe}/agingDetailedReport`,timezone:He()})),[]),u=b.useMemo((()=>r!=null?sa(r):Ee()),[r]),C=X(),g=H(),y=S((_=>En(_,u,o))),E=b.useCallback((()=>{o!=null&&y.fetchState!=="In-Progress"&&y.fetchState!=="Completed"&&C(Tn(o,u))}),[u]),I=b.useCallback((()=>{g("../../",{relative:"path"})}),[]),k=b.useCallback(((_,A)=>{C(Vt({sortKey:_,sortOrder:A}))}),[]),T=b.useCallback((_=>{C(Vt({downloadState:_}))}),[]),R=b.useCallback((_=>{if(e)e(_.transactionId,_.transactionType);else if(m!=null){const A=La({id:_.transactionId,type:_.transactionType},m);g(A);const U=O(p.state?.pathnameStackToGoBack,p.pathname);g(A,{state:{pathnameStackToGoBack:U}})}}),[m,e]),x=b.useCallback((()=>{y.vendor!=null&&w.trackApAgingDetail("AP Aging",u.format(q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),y.vendor.id,y.vendor.name)}),[y.vendor,u]);return b.useEffect((()=>{E()}),[]),b.useEffect((()=>{y.fetchState==="Completed"&&x()}),[x,y.fetchState]),d.jsx(Uo,{apAgingDetail:y,downloadParams:c,reportDate:u,analytics:w,onTransactionClick:R,onReload:E,onBackClick:I,onColumnSortConfigChanged:k,updateDownloadStateHandler:T,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n})})),ls=()=>{const e=X(),a=H(),t=S((k=>wn(k))),{isAiCfoAccessEnabled:n,onAskAiCfoClick:o}=se({mobileExploreReferrer:"AP Aging"});Ve({isDataReady:t.fetchState==="Completed"});const r=Y.getSignedInUser(),s=S((k=>k.tenantState.currentTenantId)),i=S((k=>B(k))),l=i?.companyName??"",m={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:s??""},p=b.useMemo((()=>({authParams:m,companyName:l,downloadEndPoint:`${oe}/agingReport`,timezone:He()})),[]),h=t.apAgingUIState.selectedDate??Ee(),f=b.useCallback((()=>{t.fetchState!=="In-Progress"&&t.fetchState!=="Completed"&&e(ft(h))}),[]);b.useEffect((()=>{f()}),[]);const c=b.useCallback((()=>{a("../",{relative:"path"})}),[]),u=b.useCallback((k=>{e(Qe({searchString:k}))}),[]),C=b.useCallback(((k,T)=>{e(Qe({sortKey:T,sortOrder:k}))}),[]),g=b.useCallback((k=>{a(`./${k}/${h.format(q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`)}),[h]),y=b.useCallback((k=>{e(Qe({downloadState:k}))}),[]),E=b.useCallback(((k,T)=>{}),[]),I=b.useCallback(((k,T)=>{e(Qe({selectedDate:k,agingDateSelectionType:T})),e(ft(k))}),[]);return d.jsxs(d.Fragment,{children:[t.fetchState==="Completed"?d.jsx(Ge,{analytics:w,onLoad:k=>k.trackPageLoaded(N.Event.agingReport,"AP Aging")}):null,d.jsx(Da,{uiState:t.apAgingUIState,report:t,downloadParams:p,analytics:w,onReloadReport:f,onBackClick:c,onSearchTextChange:u,onSortOrderChange:C,onEntityNameClick:g,updateDownloadStateHandler:y,onSelectedDateChanged:I,onNodeCollapseToggled:E,isAiCfoAccessEnabled:n,onAskAiCfoClick:o})]})},ds=Ua((function({openTransactionPanel:e,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n}){const{customerId:o,reportDate:r}=K(),s=Y.getSignedInUser(),i=S((x=>B(x))),{tenantEmailDomain:l}=K(),m=W(),p=i.companyName,h={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:i.tenantId},f=b.useMemo((()=>({authParams:h,companyName:p,downloadEndPoint:`${oe}/agingDetailedReport`,timezone:He()})),[]),c=b.useMemo((()=>r!=null?sa(r):Ee()),[r]),u=X(),C=H(),g=S((x=>xn(x,c,o))),y=b.useCallback((()=>{o!=null&&g.fetchState!=="In-Progress"&&g.fetchState!=="Completed"&&u(Dn(o,c))}),[c]),E=b.useCallback((()=>{C("../../",{relative:"path"})}),[]),I=b.useCallback(((x,_)=>{u(Gt({sortKey:x,sortOrder:_}))}),[]),k=b.useCallback((x=>{u(Gt({downloadState:x}))}),[]),T=b.useCallback((x=>{if(e)e(x.transactionId,x.transactionType);else if(l!=null){const _=La({id:x.transactionId,type:x.transactionType},l);C(_);const A=O(m.state?.pathnameStackToGoBack,m.pathname);C(_,{state:{pathnameStackToGoBack:A}})}}),[l,e]),R=b.useCallback((()=>{g.customer!=null&&w.trackArAgingDetail("AR Aging",c.format(q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),g.customer.id,g.customer.name)}),[g.customer,c]);return b.useEffect((()=>{y()}),[]),b.useEffect((()=>{g.fetchState==="Completed"&&R()}),[g.fetchState,R]),d.jsx(Lo,{arAgingDetail:g,downloadParams:f,reportDate:c,analytics:w,onTransactionClick:T,onReload:y,onBackClick:E,onColumnSortConfigChanged:I,updateDownloadStateHandler:k,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n})})),us=()=>{const e=X(),a=H(),t=S((I=>Pn(I))),{isAiCfoAccessEnabled:n,onAskAiCfoClick:o}=se({mobileExploreReferrer:"AR Aging"});Ve({isDataReady:t.fetchState==="Completed"});const r=Y.getSignedInUser(),s=S((I=>B(I))),i=s.companyName,l={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:s.tenantId},m=b.useMemo((()=>({authParams:l,companyName:i,downloadEndPoint:`${oe}/agingReport`,timezone:He()})),[]),p=t.arAgingUIState.selectedDate??Ee(),h=b.useCallback((()=>{t.fetchState!=="In-Progress"&&t.fetchState!=="Completed"&&e(gt(p))}),[]);b.useEffect((()=>{h()}),[]);const f=b.useCallback((()=>{a("../",{relative:"path"})}),[]),c=b.useCallback((I=>{e(Ze({searchString:I}))}),[]),u=b.useCallback(((I,k)=>{e(Ze({sortKey:k,sortOrder:I}))}),[]),C=b.useCallback((I=>{a(`./${I}/${p.format(q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`)}),[p]),g=b.useCallback((I=>{e(Ze({downloadState:I}))}),[]),y=b.useCallback(((I,k)=>{e(Ze({selectedDate:I,agingDateSelectionType:k})),e(gt(I))}),[]),E=b.useCallback(((I,k)=>{e(On({nodeId:I,isCollapsed:k}))}),[]);return d.jsxs(d.Fragment,{children:[t.fetchState==="Completed"?d.jsx(Ge,{analytics:w,onLoad:I=>I.trackPageLoaded(N.Event.agingReport,"AR Aging")}):null,d.jsx(Da,{uiState:t.arAgingUIState,report:t,downloadParams:m,analytics:w,onReloadReport:h,onBackClick:f,onSearchTextChange:c,onSortOrderChange:u,onEntityNameClick:C,updateDownloadStateHandler:g,onSelectedDateChanged:y,onNodeCollapseToggled:E,isAiCfoAccessEnabled:n,onAskAiCfoClick:o})]})},Ga=(e,a)=>({key:a,title:e.accountName,amount:e.balance?.available,logoUri:e.logo?.toString(),source:e});function Na(e,a){const t=jn(a.firstMonthOfFY);return{onItemClick:(n,o)=>{const r=o.accountName===""?o.accountDescription:o.accountName,s=De(a.tenantEmailDomain,o.accountId,o.accountType,r,"quarter",t,!1),i=O(a.location.state?.pathnameStackToGoBack,a.location.pathname);a.navigate(s,{state:{pathnameStackToGoBack:i,referrer:a.referrerType}})},onSetAccountsStatementDate:(n,o)=>{e(Rn(n,o))}}}const ms=ne((function(e){const a=Fn(e).accountsInOrder.map(((t,n)=>Ga(t,n)));return{sectionTitle:q.getLocalizedStrings().balanceCard.cashBalanceSectionTitle,transactionArray:a,fetchState:e.cashBalanceState.fetchState,analytics:w}}),Na)(Pa),ps=ne((function(e){const a=Mn(e).accountsInOrder.map(((o,r)=>Ga(o,r))),t=Y.getSignedInUser(),n=Je(t);return{sectionTitle:q.getLocalizedStrings().balanceCard.cardBalanceSectionTitle,transactionArray:a,isZeniUser:n,fetchState:e.cardBalanceState.fetchState,analytics:w}}),Na)(Pa);function hs(){const e=H(),a=W(),{tenantEmailDomain:t}=K(),n=S((o=>B(o).company?.companyInfo.firstMonthOfFY??1));return S((o=>o.cashBalanceState.fetchState))==="Error"?d.jsx(Me,{}):d.jsx(ms,{tenantEmailDomain:t,location:a,referrerType:"Cash Balance",navigate:e,firstMonthOfFY:n})}function fs(){const e=H(),a=W(),{tenantEmailDomain:t}=K(),n=S((o=>B(o).company?.companyInfo.firstMonthOfFY??1));return S((o=>o.cardBalanceState.fetchState))==="Error"?d.jsx(Me,{}):d.jsx(ps,{tenantEmailDomain:t,location:a,referrerType:"Card Balance",navigate:e,firstMonthOfFY:n})}const gs=wt.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -1 +1 @@
1
- import{j as v}from"./liveblocks-C6uJkYDp.js";import{a as u}from"./sentry-CcNJwOXe.js";import{u as y,j as b,l as U,g as w,N as A}from"./core-CmooL1VE.js";import{U1 as N,fI as _,go as k,U2 as L,pV as R,U3 as z}from"./zeni-epic-state-GBqWdYww.js";import{u as j,z as f,L as T,t as I,G as O,b as $}from"./index-LS_Pdivs.js";import"./mui-rM9SB4se.js";import{t as P}from"./getLocaleForTenant-BECA4-x0.js";import"./recharts-DKAwX7BS.js";import"./analytics-B7hAl0cB.js";import"./plaid-FTXMeicc.js";import"./dnd-DOVValOX.js";import"./stripe-cKAAJElX.js";import"./lottie-fAK2s9Hi.js";import"./lexical-BvHYLizv.js";import"./pdf-BB_582W7.js";import"./utils-CKeki_tc.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]="447ace2f-b847-415e-8589-13f2424a61c7",t._sentryDebugIdIdentifier="sentry-dbid-447ace2f-b847-415e-8589-13f2424a61c7")}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"],V={"dashboard/cash-balance":"dashboard/cash_balance","dashboard/card-balance":"dashboard/card_balance","dashboard/operating-expenses":"dashboard/operating_expenses","dashboard/revenue":"dashboard/revenue","dashboard/burn-rate":"dashboard/net_burn_or_income","dashboard/cash-position":"dashboard/cash_position","dashboard/top-expenses":"dashboard/top_expenses","dashboard/cash-in-cash-out":"dashboard/cash_in_cash_out",dashboard:"dashboard",reports:"reports",forecast:"forecast","uncategorized-expense":"transactions/uncategorized-expense","uncategorized-income":"transactions/uncategorized-income","missing-receipts":"transactions/missing-receipts",bills:"bills",reimbursements:"reimbursements","cards/activate":"cards/activate",cards:"cards",wise:"bills/wise/callback/link-account",checking:"checking",aicfo:"ai-cfo/explore"};function E(t){for(const s of Q)if(t.toLocaleLowerCase().includes(s))return V[s]}export{oe as default};
1
+ import{j as v}from"./liveblocks-B17MGskC.js";import{a as u}from"./sentry-Dbvw8B0Q.js";import{u as y,j as b,l as U,g as w,N as A}from"./core-Ds5S2wH7.js";import{U1 as N,fI as _,go as k,U2 as L,pV as R,U3 as z}from"./zeni-epic-state-BFc7X-60.js";import{u as j,z as f,L as T,t as I,G as O,b as $}from"./index-AMSSipCu.js";import"./mui-DHDk_FGm.js";import{t as P}from"./getLocaleForTenant-89WxAOR-.js";import"./recharts-LEM_fIEl.js";import"./analytics-BYQV505J.js";import"./plaid-DjyrTicB.js";import"./dnd-CcbzF-kK.js";import"./stripe-cKAAJElX.js";import"./lottie-DAUGvab1.js";import"./lexical-C6tryDmA.js";import"./pdf-nuQ-ikyI.js";import"./utils-BqnrWkbN.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]="447ace2f-b847-415e-8589-13f2424a61c7",t._sentryDebugIdIdentifier="sentry-dbid-447ace2f-b847-415e-8589-13f2424a61c7")}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"],V={"dashboard/cash-balance":"dashboard/cash_balance","dashboard/card-balance":"dashboard/card_balance","dashboard/operating-expenses":"dashboard/operating_expenses","dashboard/revenue":"dashboard/revenue","dashboard/burn-rate":"dashboard/net_burn_or_income","dashboard/cash-position":"dashboard/cash_position","dashboard/top-expenses":"dashboard/top_expenses","dashboard/cash-in-cash-out":"dashboard/cash_in_cash_out",dashboard:"dashboard",reports:"reports",forecast:"forecast","uncategorized-expense":"transactions/uncategorized-expense","uncategorized-income":"transactions/uncategorized-income","missing-receipts":"transactions/missing-receipts",bills:"bills",reimbursements:"reimbursements","cards/activate":"cards/activate",cards:"cards",wise:"bills/wise/callback/link-account",checking:"checking",aicfo:"ai-cfo/explore"};function E(t){for(const s of Q)if(t.toLocaleLowerCase().includes(s))return V[s]}export{oe as default};
@@ -1,4 +1,4 @@
1
- import{j as l}from"./liveblocks-C6uJkYDp.js";import{h as w,g as C,j as h,l as A,i as V}from"./core-CmooL1VE.js";import{Z0 as k,Z7 as W,gJ as J,gI as M,gH as Q,kS as Y,W_ as q,uU as K,fI as B,Yz as D,kQ as T,Z1 as S,Za as F,kO as G,l9 as j}from"./zeni-epic-state-GBqWdYww.js";import{bN as L,a1 as N,_ as R,z as Z,E as U,a4 as p,f as v,a7 as O,bO as X,M as _,bP as ee,p as te}from"./index-LS_Pdivs.js";import{n as z}from"./mui-rM9SB4se.js";import"./sentry-CcNJwOXe.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]="fc671ec4-4780-4e72-aaab-3c4fdf291ad3",e._sentryDebugIdIdentifier="sentry-dbid-fc671ec4-4780-4e72-aaab-3c4fdf291ad3")}catch{}})();const ae=A(null,(function(e,t){return{onSaveVendor:a=>{e(Y(t.vendorId!==void 0?t.vendorId:void 0,t.billId,void 0,t.isExpressPayPage)),e(q("common")),a!=null&&e(K(a))},onGetOtp:a=>{e(Q(a,"BillPayVendor"))},onResendOtp:a=>{e(M(a,"BillPayVendor"))},onVerifyOtp:(a,n)=>{e(J(a,n,"BillPayVendor"))},onVerifyOtpSuccess:(a,n,o)=>{e(W(a,n,o))}}}))(L);function H({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=z.div`
1
+ import{j as l}from"./liveblocks-B17MGskC.js";import{h as w,g as C,j as h,l as A,i as V}from"./core-Ds5S2wH7.js";import{Z0 as k,Z7 as W,gJ as J,gI as M,gH as Q,kS as Y,W_ as q,uU as K,fI as B,Yz as D,kQ as T,Z1 as S,Za as F,kO as G,l9 as j}from"./zeni-epic-state-BFc7X-60.js";import{bN as L,a1 as N,_ as R,z as Z,E as U,a4 as p,f as v,a7 as O,bO as X,M as _,bP as ee,p as te}from"./index-AMSSipCu.js";import{n as z}from"./mui-DHDk_FGm.js";import"./sentry-Dbvw8B0Q.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]="fc671ec4-4780-4e72-aaab-3c4fdf291ad3",e._sentryDebugIdIdentifier="sentry-dbid-fc671ec4-4780-4e72-aaab-3c4fdf291ad3")}catch{}})();const ae=A(null,(function(e,t){return{onSaveVendor:a=>{e(Y(t.vendorId!==void 0?t.vendorId:void 0,t.billId,void 0,t.isExpressPayPage)),e(q("common")),a!=null&&e(K(a))},onGetOtp:a=>{e(Q(a,"BillPayVendor"))},onResendOtp:a=>{e(M(a,"BillPayVendor"))},onVerifyOtp:(a,n)=>{e(J(a,n,"BillPayVendor"))},onVerifyOtpSuccess:(a,n,o)=>{e(W(a,n,o))}}}))(L);function H({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=z.div`
2
2
  display: flex;
3
3
  height: 100vh;
4
4
  width: 100%;
@@ -1 +1 @@
1
- import{j as i}from"./liveblocks-C6uJkYDp.js";import{a1 as c,ab as l,E as f}from"./index-LS_Pdivs.js";import{D as p}from"./mui-rM9SB4se.js";import"./sentry-CcNJwOXe.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]="c06e3c71-2cdd-4b4c-9d6d-3f270023e5b2",e._sentryDebugIdIdentifier="sentry-dbid-c06e3c71-2cdd-4b4c-9d6d-3f270023e5b2")}catch{}})();const b={drawerLeftMargin:new l(0,0,240)};function h(e){const{isOpen:r,drawerLeftMargin:o,children:t,onClose:d}=e,n=c(),s=o?.valuePx(n)??b.drawerLeftMargin.valuePx(n),a=f();return i.jsx(p,{anchor:"right",open:r,PaperProps:{style:{width:`calc(100% - ${s})`}},slotProps:{backdrop:{style:{backgroundColor:a.colors.black,opacity:.8,cursor:"pointer"}}},onClose:d,children:t})}export{h as D};
1
+ import{j as i}from"./liveblocks-B17MGskC.js";import{a1 as c,ab as l,E as f}from"./index-AMSSipCu.js";import{D as p}from"./mui-DHDk_FGm.js";import"./sentry-Dbvw8B0Q.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]="c06e3c71-2cdd-4b4c-9d6d-3f270023e5b2",e._sentryDebugIdIdentifier="sentry-dbid-c06e3c71-2cdd-4b4c-9d6d-3f270023e5b2")}catch{}})();const b={drawerLeftMargin:new l(0,0,240)};function h(e){const{isOpen:r,drawerLeftMargin:o,children:t,onClose:d}=e,n=c(),s=o?.valuePx(n)??b.drawerLeftMargin.valuePx(n),a=f();return i.jsx(p,{anchor:"right",open:r,PaperProps:{style:{width:`calc(100% - ${s})`}},slotProps:{backdrop:{style:{backgroundColor:a.colors.black,opacity:.8,cursor:"pointer"}}},onClose:d,children:t})}export{h as D};
@@ -1 +1 @@
1
- import{j as s}from"./liveblocks-C6uJkYDp.js";import{a as d}from"./sentry-CcNJwOXe.js";import{h as B,u as G,g as A,i as q,j as l,N as F,l as _,n as N,o as O}from"./core-CmooL1VE.js";import{X3 as R,fI as $,Wk as M,n2 as X,Sl as k,X8 as Y,WZ as z,m2 as V,Sm as S,Wp as Z,Wq as H,W$ as J,W_ as K}from"./zeni-epic-state-GBqWdYww.js";import{b8 as L,n as Q,a4 as U,p as tt}from"./index-LS_Pdivs.js";import"./mui-rM9SB4se.js";import{d as b}from"./decodeURIComponentSafe-XuT8eSZ_.js";import{w as et}from"./withTransactionSidePanel-D42v1kum.js";import{f as at,c as nt}from"./routePaths-CMAA0FK7.js";import"./recharts-DKAwX7BS.js";import"./analytics-B7hAl0cB.js";import"./plaid-FTXMeicc.js";import"./dnd-DOVValOX.js";import"./stripe-cKAAJElX.js";import"./lottie-fAK2s9Hi.js";import"./lexical-BvHYLizv.js";import"./pdf-BB_582W7.js";import"./utils-CKeki_tc.js";import"./useAskAiCfoHostNavButtonProps-B-1FcFXF.js";import"./TransactionDetailScreen-C-tYoelm.js";import"./useInitialThreadRequest-D0Rb6DJ1.js";import"./expenseAutomationHelper-C7H1WvS_.js";import"./stripSplatSuffix-bj8J_4FB.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]="6c46fb97-d0b1-4c58-a0a4-2d2e15b381b4",a._sentryDebugIdIdentifier="sentry-dbid-6c46fb97-d0b1-4c58-a0a4-2d2e15b381b4")}catch{}})();const ot=_((function(a,t){const e=t.entity,o=Y(a,t.entity,"EntityDetail");return{selectedEntity:e,autoCompleteData:{autoCompleteText:e.name,entityAutoCompleteView:z(a,"common")},trendWithTransactionsReport:o,analytics:Q,isAccountingClassesEnabled:V(a)}}),(function(a,t){return{onTransactionItemClick:e=>{if(t.openTransactionPanel)return void t.openTransactionPanel(e.id,e.type);const o=`${nt(e,t.tenantEmailDomain)}`,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(Z()),a(H()),t.resetTrendIsFetchedStates(),t.navigate(o,{replace:!0,state:{pathnameStackToGoBack:t.location.state?.pathnameStackToGoBack}})},onCancelAutoComplete:()=>{const e=U(t.location.state?.pathnameStackToGoBack),o=e.poppedPathname??I();t.navigate(o,{state:{pathnameStackToGoBack:e.newStack}})}},onTrendSelectedPeriodChange:e=>{if(t.closeSidePanel?.(),e==null)t.defaultTransactionTimePeriod!=null&&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(k(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=B(),o=G(),c=A(),[m,T]=d.useState(!1),[h,D]=d.useState(!1),{tenantEmailDomain:C,entityIdEncoded:x,entityNameEncoded:W}=q(),r=b(x??""),p=b(W??""),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=>R(n.customerIncomeState,n.vendorExpenseState,n.trendState,i,"quarter"))),v=l((n=>$(n).company?.companyInfo.firstMonthOfFY??1)),f=l((n=>M(n.trendWithTransactionsState,i,"EntityDetail")));d.useEffect((()=>{m===!1&&u===!0&&(T(!0),o(X(i)))}),[m,u,i]);const E=l((n=>n.trendState.fetchState)),P=f?.selectedPeriod?.timePeriod??g,w=(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(k(i,"EntityDetail",{timeframe:f?.selectedPeriod?.timeframe??"quarter",timePeriod:P})))}),[m,h,E]),u?s.jsx(ot,{firstMonthOfFY:v,tenantEmailDomain:C,location:c,navigate:e,entity:i,defaultTransactionTimePeriod:w,resetTrendIsFetchedStates:()=>{T(!1),D(!1)},...t}):s.jsx(F,{to:I(j.length)})})),rt=(a,t)=>t!=null&&t.length>0&&a!=null&&a.length>0,I=(a=2)=>{let t="../";for(let e=0;e<a;e++)t=`${t}../`;return t};function vt({entityType:a}){return s.jsx(N,{children:s.jsx(O,{path:"/:entityIdEncoded/:entityNameEncoded/*",element:s.jsx(it,{entityType:a})})})}export{vt as EntityDetailRoutes,vt as default};
1
+ import{j as s}from"./liveblocks-B17MGskC.js";import{a as d}from"./sentry-Dbvw8B0Q.js";import{h as B,u as G,g as A,i as q,j as l,N as F,l as _,n as N,o as O}from"./core-Ds5S2wH7.js";import{X3 as R,fI as $,Wk as M,n2 as X,Sl as k,X8 as Y,WZ as z,m2 as V,Sm as S,Wp as Z,Wq as H,W$ as J,W_ as K}from"./zeni-epic-state-BFc7X-60.js";import{b8 as L,n as Q,a4 as U,p as tt}from"./index-AMSSipCu.js";import"./mui-DHDk_FGm.js";import{d as b}from"./decodeURIComponentSafe-DZ09f2hv.js";import{w as et}from"./withTransactionSidePanel-CWC-jBK9.js";import{f as at,c as nt}from"./routePaths-BYyz-v8f.js";import"./recharts-LEM_fIEl.js";import"./analytics-BYQV505J.js";import"./plaid-DjyrTicB.js";import"./dnd-CcbzF-kK.js";import"./stripe-cKAAJElX.js";import"./lottie-DAUGvab1.js";import"./lexical-C6tryDmA.js";import"./pdf-nuQ-ikyI.js";import"./utils-BqnrWkbN.js";import"./useAskAiCfoHostNavButtonProps-DTOHTzgK.js";import"./TransactionDetailScreen-B2PSbhdh.js";import"./useInitialThreadRequest-B00mODsB.js";import"./expenseAutomationHelper-BrkwjQbC.js";import"./stripSplatSuffix-DiZJIhFI.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]="6c46fb97-d0b1-4c58-a0a4-2d2e15b381b4",a._sentryDebugIdIdentifier="sentry-dbid-6c46fb97-d0b1-4c58-a0a4-2d2e15b381b4")}catch{}})();const ot=_((function(a,t){const e=t.entity,o=Y(a,t.entity,"EntityDetail");return{selectedEntity:e,autoCompleteData:{autoCompleteText:e.name,entityAutoCompleteView:z(a,"common")},trendWithTransactionsReport:o,analytics:Q,isAccountingClassesEnabled:V(a)}}),(function(a,t){return{onTransactionItemClick:e=>{if(t.openTransactionPanel)return void t.openTransactionPanel(e.id,e.type);const o=`${nt(e,t.tenantEmailDomain)}`,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(Z()),a(H()),t.resetTrendIsFetchedStates(),t.navigate(o,{replace:!0,state:{pathnameStackToGoBack:t.location.state?.pathnameStackToGoBack}})},onCancelAutoComplete:()=>{const e=U(t.location.state?.pathnameStackToGoBack),o=e.poppedPathname??I();t.navigate(o,{state:{pathnameStackToGoBack:e.newStack}})}},onTrendSelectedPeriodChange:e=>{if(t.closeSidePanel?.(),e==null)t.defaultTransactionTimePeriod!=null&&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(k(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=B(),o=G(),c=A(),[m,T]=d.useState(!1),[h,D]=d.useState(!1),{tenantEmailDomain:C,entityIdEncoded:x,entityNameEncoded:W}=q(),r=b(x??""),p=b(W??""),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=>R(n.customerIncomeState,n.vendorExpenseState,n.trendState,i,"quarter"))),v=l((n=>$(n).company?.companyInfo.firstMonthOfFY??1)),f=l((n=>M(n.trendWithTransactionsState,i,"EntityDetail")));d.useEffect((()=>{m===!1&&u===!0&&(T(!0),o(X(i)))}),[m,u,i]);const E=l((n=>n.trendState.fetchState)),P=f?.selectedPeriod?.timePeriod??g,w=(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(k(i,"EntityDetail",{timeframe:f?.selectedPeriod?.timeframe??"quarter",timePeriod:P})))}),[m,h,E]),u?s.jsx(ot,{firstMonthOfFY:v,tenantEmailDomain:C,location:c,navigate:e,entity:i,defaultTransactionTimePeriod:w,resetTrendIsFetchedStates:()=>{T(!1),D(!1)},...t}):s.jsx(F,{to:I(j.length)})})),rt=(a,t)=>t!=null&&t.length>0&&a!=null&&a.length>0,I=(a=2)=>{let t="../";for(let e=0;e<a;e++)t=`${t}../`;return t};function vt({entityType:a}){return s.jsx(N,{children:s.jsx(O,{path:"/:entityIdEncoded/:entityNameEncoded/*",element:s.jsx(it,{entityType:a})})})}export{vt as EntityDetailRoutes,vt as default};
@@ -1,4 +1,4 @@
1
- import{j as k}from"./liveblocks-C6uJkYDp.js";import{u as ge,h as nt,g as Te,j as F,i as Be,t as Jn,l as Yn,n as Hn,o as We,N as Wn}from"./core-CmooL1VE.js";import{fI as ke,a1a as Kn,q3 as Me,Uk as Qn,A9 as Xn,a1b as Zn,a1c as es,a1d as ts,a1e as Ct,a1f as Qe,gk as Pt,a1g as ia,eY as as,g3 as ns,a1h as la,a1i as Xe,qW as ss,uX as os,gV as cs,gT as is,a1j as ls,r7 as rs,rg as ds,qe as us,qs as Ra,gS as ue,gU as ms,a1k as ps,qO as Da,rh as hs,qp as Ss,qk as gs,v1 as Cs,gR as Oe,a1l as tt,Cj as Fa,MG as _a,a1m as Ma,FE as Oa,a1n as fs,e$ as Is,f1 as ks,sY as bt,X4 as ra,X6 as Ts,m5 as Ps,X7 as bs,mc as ys,dm as vs,DC as yt,a1o as Es,a1p as As,a1q as xs,a1r as ws,fp as vt,sM as da,WZ as Rs,a1s as Ds,a1t as Fs,me as _s,a1u as Ms,Rm as Os,md as Us,m2 as Bs,qH as Ua,rm as at,tz as Ba,tV as Vs,Ua as Va,rl as ua,ro as ja,rq as js,bF as zs,nB as $s,ny as Ls,rp as Ze,rn as Se,a1v as Gs,rH as ma,a1w as Ns,a1x as qs,sQ as Js,sR as Ys,WV as Hs,V$ as Ws,a0E as Ks,a1y as Qs,W$ as pa,W_ as Ke,a1z as ha,mt as Xs,a1A as Zs,a1B as eo,a1C as to,a1D as ao,qC as no,a1E as so,a1F as oo,a1G as co,rx as io,mg as lo,m7 as ro,a1H as uo,mf as Sa,Xh as mo,a1I as po,a1J as ho,uy as So,u9 as go,u8 as ft,a1K as Co,a1L as fo,a1M as Io,a1N as ko,nM as To,br as Po,nH as ga,nt as bo,a1O as yo,h2 as vo,nE as Eo,s_ as Ao,t0 as xo,sJ as wo,W2 as Ro,W3 as Do,F6 as Fo,F5 as _o,Fm as Mo,a1P as Ca,sP as Oo,sk as Uo,a1Q as Bo,s0 as Vo,s5 as jo,sg as zo,s3 as $o,a1R as Lo,rY as Go,sf as No,sV as qo,a1S as Jo,t6 as Yo,sD as Ho,tc as Wo,sI as Ko,rI as Qo,a1T as Xo,q_ as Zo,qy as ec,qF as fa,rs as tc,a1U as ac,a1V as nc,a1W as sc,a1X as oc,a1Y as cc,a1Z as ic,a1_ as lc,tg as rc,a1$ as dc,a20 as uc,a21 as Ia,uJ as mc,u0 as pc,tR as ka,tP as hc,a22 as Sc,tE as gc,tj as Cc,tS as fc,a23 as Ic,a24 as kc,tp as Tc,a25 as Pc,tk as bc,to as yc,tm as vc,tY as Ec}from"./zeni-epic-state-GBqWdYww.js";import za from"./NotFoundScreen-ElitTzP9.js";import{a as s,R as $a}from"./sentry-CcNJwOXe.js";import{n as Pe,S as Ac}from"./mui-rM9SB4se.js";import{_ as Ve,f as H,n as W,p as ee,aq as La,as as Ga,dO as xc,dP as wc,z as st,dQ as Rc,dR as Dc,dS as Fc,ae as Ue,dT as _c,dU as Ta,ba as Pa,dV as Mc,a7 as Na,dW as Oc,m as et,a as Uc,dX as Bc,dY as Vc,c as jc,P as zc,dZ as $c,d_ as Lc,d$ as Gc,b4 as Nc,bs as qc,ab as Jc,b5 as Yc,b6 as Hc,G as Wc,w as Kc,e0 as Qc,av as ba,e1 as Xc}from"./index-LS_Pdivs.js";import{u as qa}from"./useAskAiCfoHostNavButtonProps-B-1FcFXF.js";import{g as ya,b as Zc,c as ei,h as ti,a as ai,i as ni,r as si,C as oi}from"./TransactionDetailScreen-C-tYoelm.js";import{u as ci,a as ii}from"./useActualMatchingMatchDetail-CKR9mGuu.js";import{d as li}from"./decodeURIComponentSafe-XuT8eSZ_.js";import{m as Ja,a as Ya}from"./expenseAutomationHelper-C7H1WvS_.js";import{u as Ha,a as Wa,w as ri}from"./withTransactionSidePanel-D42v1kum.js";import{b as di,S as ui,a as mi,J as pi}from"./ScheduleDetailsPrepaidExpensesScreen-BX94snOz.js";import{s as va,i as Ka,h as hi,v as Si,c as gi}from"./routePaths-CMAA0FK7.js";import{a as It}from"./accountMappingHelper-1el1nsHh.js";import{D as Ci}from"./DrawerScreen-BxqxG0PQ.js";import"./recharts-DKAwX7BS.js";import"./analytics-B7hAl0cB.js";import"./plaid-FTXMeicc.js";import"./dnd-DOVValOX.js";import"./stripe-cKAAJElX.js";import"./lottie-fAK2s9Hi.js";import"./lexical-BvHYLizv.js";import"./pdf-BB_582W7.js";import"./utils-CKeki_tc.js";import"./useInitialThreadRequest-D0Rb6DJ1.js";import"./stripSplatSuffix-bj8J_4FB.js";import"./pathToGoBack-hFb7er_y.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]="26242889-a134-46aa-90a7-ac6653843244",t._sentryDebugIdIdentifier="sentry-dbid-26242889-a134-46aa-90a7-ac6653843244")}catch{}})();const fi=()=>{const t=ge(),n=nt(),S=Te(),g=F((p=>ke(p))),{useFeatureGate:d}=Ve(),{isFeatureEnabled:i}=d(H.isRealtimeInsightsFeatureEnabled),{isFeatureEnabled:r}=d(H.aiAuditScorePercentage),A=F((p=>p.expenseAutomationViewState.selectedPeriodByTenantId)),l=F((p=>Kn(p,g.tenantId))),{isAiCfoAccessEnabled:v,onAskAiCfoClick:x}=qa({mobileExploreReferrer:"Month-End Close Overview"}),P=s.useCallback(((p,b,_=!1)=>{t(Me({tenantId:b,period:{month:p.month,year:p.year},refreshViewInBackground:_}))}),[]),C=s.useCallback((p=>{const b=S.state?.referrer;l.monthEndCloseChecks?.auditSummary!=null&&W.trackMonthCloseAuditPage(p.month,p.year,l.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",l.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,b??null),t(Qn(g.tenantId,p))}),[g.tenantId,l.monthEndCloseChecks?.auditSummary,l.monthEndCloseChecks?.reportEmailSentDate]),f=A[g.tenantId],m=s.useCallback((()=>{const p=S.state?.referrer;l.monthEndCloseChecks?.auditSummary!=null&&W.trackMonthCloseAuditPage(f.month,f.year,l.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",l.monthEndCloseChecks.auditSummary.auditScorePercentage,!0,p??null),P(f,g.tenantId,!0)}),[P,f,g.tenantId,l.monthEndCloseChecks?.auditSummary,l.monthEndCloseChecks?.reportEmailSentDate]),z=ee(S.state?.pathnameStackToGoBack,S.pathname),w=s.useCallback((()=>{if(l.monthEndCloseChecks!=null&&f!=null){const p=l.monthEndCloseChecks.monthEndCloseCheckList.find((b=>b.progress<100));if(p!=null)return void n(`./${p.id}/${f.month}-${f.year}`,{state:{pathnameStackToGoBack:z,message:"comingFromOverview"}});n(`./month_end_insights/${f.month}-${f.year}`,{state:{pathnameStackToGoBack:z,message:"comingFromOverview"}})}}),[l.monthEndCloseChecks,f]),{areTenantIdsInSync:I}=La();return Ga({isDataReady:l.fetchState==="Completed"}),s.useEffect((()=>{f!=null&&l.fetchState!=="In-Progress"&&l.fetchState!=="Completed"&&I&&P(f,g.tenantId)}),[P,f,l.fetchState,g.tenantId,I]),s.useEffect((()=>{f!=null&&l.monthClosePerformanceTrendFetchStatus.fetchState!=="In-Progress"&&l.monthClosePerformanceTrendFetchStatus.fetchState!=="Completed"&&I&&t(Xn(f))}),[f,l.monthClosePerformanceTrendFetchStatus.fetchState,I]),s.useEffect((()=>{const p=setInterval((()=>{l.fetchState!=="In-Progress"&&l.fetchState==="Completed"&&m()}),3e5);return()=>clearInterval(p)}),[l.fetchState]),s.useEffect((()=>{if(l.fetchState==="Completed"&&l.monthEndCloseChecks?.auditSummary!=null){const p=S.state?.referrer;W.trackMonthCloseAuditPage(l.selectedPeriod.month,l.selectedPeriod.year,l.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",l.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,p??null)}}),[l.fetchState,l.selectedPeriod,l.monthEndCloseChecks?.auditSummary,l.monthEndCloseChecks?.reportEmailSentDate]),k.jsx(Ii,{children:k.jsx(xc,{monthEndCloseChecksView:l,isRealtimeInsightsFeatureEnabled:i,onMonthEndCheckClick:p=>{n(`./${p}/${f.month}-${f.year}`,{state:{pathnameStackToGoBack:z,message:"comingFromOverview",referrer:"Expense Automation - Overview"}})},onPeriodChange:C,handleReviewButtonClick:w,onBackClick:()=>{n("../../dashboard")},onReload:m,isAiCfoAccessEnabled:v,onAskAiCfoClick:x,aiAuditScorePercentageEnabled:r})})},Ii=Pe.div`
1
+ import{j as k}from"./liveblocks-B17MGskC.js";import{u as ge,h as nt,g as Te,j as F,i as Be,t as Jn,l as Yn,n as Hn,o as We,N as Wn}from"./core-Ds5S2wH7.js";import{fI as ke,a1a as Kn,q3 as Me,Uk as Qn,A9 as Xn,a1b as Zn,a1c as es,a1d as ts,a1e as Ct,a1f as Qe,gk as Pt,a1g as ia,eY as as,g3 as ns,a1h as la,a1i as Xe,qW as ss,uX as os,gV as cs,gT as is,a1j as ls,r7 as rs,rg as ds,qe as us,qs as Ra,gS as ue,gU as ms,a1k as ps,qO as Da,rh as hs,qp as Ss,qk as gs,v1 as Cs,gR as Oe,a1l as tt,Cj as Fa,MG as _a,a1m as Ma,FE as Oa,a1n as fs,e$ as Is,f1 as ks,sY as bt,X4 as ra,X6 as Ts,m5 as Ps,X7 as bs,mc as ys,dm as vs,DC as yt,a1o as Es,a1p as As,a1q as xs,a1r as ws,fp as vt,sM as da,WZ as Rs,a1s as Ds,a1t as Fs,me as _s,a1u as Ms,Rm as Os,md as Us,m2 as Bs,qH as Ua,rm as at,tz as Ba,tV as Vs,Ua as Va,rl as ua,ro as ja,rq as js,bF as zs,nB as $s,ny as Ls,rp as Ze,rn as Se,a1v as Gs,rH as ma,a1w as Ns,a1x as qs,sQ as Js,sR as Ys,WV as Hs,V$ as Ws,a0E as Ks,a1y as Qs,W$ as pa,W_ as Ke,a1z as ha,mt as Xs,a1A as Zs,a1B as eo,a1C as to,a1D as ao,qC as no,a1E as so,a1F as oo,a1G as co,rx as io,mg as lo,m7 as ro,a1H as uo,mf as Sa,Xh as mo,a1I as po,a1J as ho,uy as So,u9 as go,u8 as ft,a1K as Co,a1L as fo,a1M as Io,a1N as ko,nM as To,br as Po,nH as ga,nt as bo,a1O as yo,h2 as vo,nE as Eo,s_ as Ao,t0 as xo,sJ as wo,W2 as Ro,W3 as Do,F6 as Fo,F5 as _o,Fm as Mo,a1P as Ca,sP as Oo,sk as Uo,a1Q as Bo,s0 as Vo,s5 as jo,sg as zo,s3 as $o,a1R as Lo,rY as Go,sf as No,sV as qo,a1S as Jo,t6 as Yo,sD as Ho,tc as Wo,sI as Ko,rI as Qo,a1T as Xo,q_ as Zo,qy as ec,qF as fa,rs as tc,a1U as ac,a1V as nc,a1W as sc,a1X as oc,a1Y as cc,a1Z as ic,a1_ as lc,tg as rc,a1$ as dc,a20 as uc,a21 as Ia,uJ as mc,u0 as pc,tR as ka,tP as hc,a22 as Sc,tE as gc,tj as Cc,tS as fc,a23 as Ic,a24 as kc,tp as Tc,a25 as Pc,tk as bc,to as yc,tm as vc,tY as Ec}from"./zeni-epic-state-BFc7X-60.js";import za from"./NotFoundScreen-CvynoGxh.js";import{a as s,R as $a}from"./sentry-Dbvw8B0Q.js";import{n as Pe,S as Ac}from"./mui-DHDk_FGm.js";import{_ as Ve,f as H,n as W,p as ee,aq as La,as as Ga,dO as xc,dP as wc,z as st,dQ as Rc,dR as Dc,dS as Fc,ae as Ue,dT as _c,dU as Ta,ba as Pa,dV as Mc,a7 as Na,dW as Oc,m as et,a as Uc,dX as Bc,dY as Vc,c as jc,P as zc,dZ as $c,d_ as Lc,d$ as Gc,b4 as Nc,bs as qc,ab as Jc,b5 as Yc,b6 as Hc,G as Wc,w as Kc,e0 as Qc,av as ba,e1 as Xc}from"./index-AMSSipCu.js";import{u as qa}from"./useAskAiCfoHostNavButtonProps-DTOHTzgK.js";import{g as ya,b as Zc,c as ei,h as ti,a as ai,i as ni,r as si,C as oi}from"./TransactionDetailScreen-B2PSbhdh.js";import{u as ci,a as ii}from"./useActualMatchingMatchDetail-CEXBiY4f.js";import{d as li}from"./decodeURIComponentSafe-DZ09f2hv.js";import{m as Ja,a as Ya}from"./expenseAutomationHelper-BrkwjQbC.js";import{u as Ha,a as Wa,w as ri}from"./withTransactionSidePanel-CWC-jBK9.js";import{b as di,S as ui,a as mi,J as pi}from"./ScheduleDetailsPrepaidExpensesScreen-YwA22xYF.js";import{s as va,i as Ka,h as hi,v as Si,c as gi}from"./routePaths-BYyz-v8f.js";import{a as It}from"./accountMappingHelper-CLW0d-L0.js";import{D as Ci}from"./DrawerScreen-JSvzxyBE.js";import"./recharts-LEM_fIEl.js";import"./analytics-BYQV505J.js";import"./plaid-DjyrTicB.js";import"./dnd-CcbzF-kK.js";import"./stripe-cKAAJElX.js";import"./lottie-DAUGvab1.js";import"./lexical-C6tryDmA.js";import"./pdf-nuQ-ikyI.js";import"./utils-BqnrWkbN.js";import"./useInitialThreadRequest-B00mODsB.js";import"./stripSplatSuffix-DiZJIhFI.js";import"./pathToGoBack-D31IL7Hr.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]="26242889-a134-46aa-90a7-ac6653843244",t._sentryDebugIdIdentifier="sentry-dbid-26242889-a134-46aa-90a7-ac6653843244")}catch{}})();const fi=()=>{const t=ge(),n=nt(),S=Te(),g=F((p=>ke(p))),{useFeatureGate:d}=Ve(),{isFeatureEnabled:i}=d(H.isRealtimeInsightsFeatureEnabled),{isFeatureEnabled:r}=d(H.aiAuditScorePercentage),A=F((p=>p.expenseAutomationViewState.selectedPeriodByTenantId)),l=F((p=>Kn(p,g.tenantId))),{isAiCfoAccessEnabled:v,onAskAiCfoClick:x}=qa({mobileExploreReferrer:"Month-End Close Overview"}),P=s.useCallback(((p,b,_=!1)=>{t(Me({tenantId:b,period:{month:p.month,year:p.year},refreshViewInBackground:_}))}),[]),C=s.useCallback((p=>{const b=S.state?.referrer;l.monthEndCloseChecks?.auditSummary!=null&&W.trackMonthCloseAuditPage(p.month,p.year,l.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",l.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,b??null),t(Qn(g.tenantId,p))}),[g.tenantId,l.monthEndCloseChecks?.auditSummary,l.monthEndCloseChecks?.reportEmailSentDate]),f=A[g.tenantId],m=s.useCallback((()=>{const p=S.state?.referrer;l.monthEndCloseChecks?.auditSummary!=null&&W.trackMonthCloseAuditPage(f.month,f.year,l.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",l.monthEndCloseChecks.auditSummary.auditScorePercentage,!0,p??null),P(f,g.tenantId,!0)}),[P,f,g.tenantId,l.monthEndCloseChecks?.auditSummary,l.monthEndCloseChecks?.reportEmailSentDate]),z=ee(S.state?.pathnameStackToGoBack,S.pathname),w=s.useCallback((()=>{if(l.monthEndCloseChecks!=null&&f!=null){const p=l.monthEndCloseChecks.monthEndCloseCheckList.find((b=>b.progress<100));if(p!=null)return void n(`./${p.id}/${f.month}-${f.year}`,{state:{pathnameStackToGoBack:z,message:"comingFromOverview"}});n(`./month_end_insights/${f.month}-${f.year}`,{state:{pathnameStackToGoBack:z,message:"comingFromOverview"}})}}),[l.monthEndCloseChecks,f]),{areTenantIdsInSync:I}=La();return Ga({isDataReady:l.fetchState==="Completed"}),s.useEffect((()=>{f!=null&&l.fetchState!=="In-Progress"&&l.fetchState!=="Completed"&&I&&P(f,g.tenantId)}),[P,f,l.fetchState,g.tenantId,I]),s.useEffect((()=>{f!=null&&l.monthClosePerformanceTrendFetchStatus.fetchState!=="In-Progress"&&l.monthClosePerformanceTrendFetchStatus.fetchState!=="Completed"&&I&&t(Xn(f))}),[f,l.monthClosePerformanceTrendFetchStatus.fetchState,I]),s.useEffect((()=>{const p=setInterval((()=>{l.fetchState!=="In-Progress"&&l.fetchState==="Completed"&&m()}),3e5);return()=>clearInterval(p)}),[l.fetchState]),s.useEffect((()=>{if(l.fetchState==="Completed"&&l.monthEndCloseChecks?.auditSummary!=null){const p=S.state?.referrer;W.trackMonthCloseAuditPage(l.selectedPeriod.month,l.selectedPeriod.year,l.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",l.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,p??null)}}),[l.fetchState,l.selectedPeriod,l.monthEndCloseChecks?.auditSummary,l.monthEndCloseChecks?.reportEmailSentDate]),k.jsx(Ii,{children:k.jsx(xc,{monthEndCloseChecksView:l,isRealtimeInsightsFeatureEnabled:i,onMonthEndCheckClick:p=>{n(`./${p}/${f.month}-${f.year}`,{state:{pathnameStackToGoBack:z,message:"comingFromOverview",referrer:"Expense Automation - Overview"}})},onPeriodChange:C,handleReviewButtonClick:w,onBackClick:()=>{n("../../dashboard")},onReload:m,isAiCfoAccessEnabled:v,onAskAiCfoClick:x,aiAuditScorePercentageEnabled:r})})},Ii=Pe.div`
2
2
  display: flex;
3
3
  height: 100vh;
4
4
  width: 100%;
@@ -1 +1 @@
1
- import{j as s}from"./liveblocks-C6uJkYDp.js";import{a as r}from"./sentry-CcNJwOXe.js";import{aw as d,ax as l,x as p,a4 as m}from"./index-LS_Pdivs.js";import"./mui-rM9SB4se.js";import c from"./NotFoundScreen-ElitTzP9.js";import{h as u,g as b}from"./core-CmooL1VE.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]="4a8658da-ffee-4be6-93e5-65a0126f2430",e._sentryDebugIdIdentifier="sentry-dbid-4a8658da-ffee-4be6-93e5-65a0126f2430")}catch{}})();const D=()=>{const e=u(),a=b(),t=r.useCallback((()=>{window.open("https://www.zeni.ai/demo/request","_blank")}),[]),f=r.useCallback((()=>{(()=>{const n=m(a.state?.pathnameStackToGoBack),i=n.poppedPathname??k();e(i,{state:{pathnameStackToGoBack:n.newStack}})})()}),[]),o=d(a.pathname);return o!=null?s.jsx(l,{menuItem:p(o),onDemoClick:t,onGoBack:f}):s.jsx(c,{})},k=(e=2)=>{let a="../";for(let t=0;t<e;t++)a=`${a}../`;return a};export{D as F};
1
+ import{j as s}from"./liveblocks-B17MGskC.js";import{a as r}from"./sentry-Dbvw8B0Q.js";import{aw as d,ax as l,x as p,a4 as m}from"./index-AMSSipCu.js";import"./mui-DHDk_FGm.js";import c from"./NotFoundScreen-CvynoGxh.js";import{h as u,g as b}from"./core-Ds5S2wH7.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]="4a8658da-ffee-4be6-93e5-65a0126f2430",e._sentryDebugIdIdentifier="sentry-dbid-4a8658da-ffee-4be6-93e5-65a0126f2430")}catch{}})();const D=()=>{const e=u(),a=b(),t=r.useCallback((()=>{window.open("https://www.zeni.ai/demo/request","_blank")}),[]),f=r.useCallback((()=>{(()=>{const n=m(a.state?.pathnameStackToGoBack),i=n.poppedPathname??k();e(i,{state:{pathnameStackToGoBack:n.newStack}})})()}),[]),o=d(a.pathname);return o!=null?s.jsx(l,{menuItem:p(o),onDemoClick:t,onGoBack:f}):s.jsx(c,{})},k=(e=2)=>{let a="../";for(let t=0;t<e;t++)a=`${a}../`;return a};export{D as F};
@@ -1 +1 @@
1
- import{a as r}from"./sentry-CcNJwOXe.js";import{u as l,h as f,g as m}from"./core-CmooL1VE.js";import{h$ as p,UH as g,UI as b}from"./zeni-epic-state-GBqWdYww.js";import{u as _,L as h,z as y}from"./index-LS_Pdivs.js";import"./liveblocks-C6uJkYDp.js";import"./recharts-DKAwX7BS.js";import"./mui-rM9SB4se.js";import"./analytics-B7hAl0cB.js";import"./plaid-FTXMeicc.js";import"./dnd-DOVValOX.js";import"./stripe-cKAAJElX.js";import"./lottie-fAK2s9Hi.js";import"./lexical-BvHYLizv.js";import"./pdf-BB_582W7.js";import"./utils-CKeki_tc.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]="cbaf99b7-e770-4476-819d-df693b100290",e._sentryDebugIdIdentifier="sentry-dbid-cbaf99b7-e770-4476-819d-df693b100290")}catch{}})();function R(){const e=l(),n=f(),o=m(),{setLoading:i,clearAllLoading:c}=_(),s=r.useRef(!1);return r.useLayoutEffect((()=>{i(h.CONNECTION_AUTH)}),[i]),r.useEffect((()=>{if(s.current)return;s.current=!0;const a=new URLSearchParams(o.search).get("code"),d=sessionStorage.getItem("hubspot_oauth_pending");if(sessionStorage.removeItem("hubspot_oauth_pending"),a!=null&&d!=null){const t=JSON.parse(d);e(p(t.tenant_id,t.connection_id,g("revenue"),b("hubspot"),{authorization_code:a,client_id:t.client_id,client_secret:t.client_secret,redirect_uri:t.redirect_uri}))}c();const u=y.getActiveTenantForUser();n(u?.tenantEmailDomain!=null?`/${u.tenantEmailDomain}/settings/integrations`:"/",{replace:!0})}),[]),null}export{R as default};
1
+ import{a as r}from"./sentry-Dbvw8B0Q.js";import{u as l,h as f,g as m}from"./core-Ds5S2wH7.js";import{h$ as p,UH as g,UI as b}from"./zeni-epic-state-BFc7X-60.js";import{u as _,L as h,z as y}from"./index-AMSSipCu.js";import"./liveblocks-B17MGskC.js";import"./recharts-LEM_fIEl.js";import"./mui-DHDk_FGm.js";import"./analytics-BYQV505J.js";import"./plaid-DjyrTicB.js";import"./dnd-CcbzF-kK.js";import"./stripe-cKAAJElX.js";import"./lottie-DAUGvab1.js";import"./lexical-C6tryDmA.js";import"./pdf-nuQ-ikyI.js";import"./utils-BqnrWkbN.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]="cbaf99b7-e770-4476-819d-df693b100290",e._sentryDebugIdIdentifier="sentry-dbid-cbaf99b7-e770-4476-819d-df693b100290")}catch{}})();function R(){const e=l(),n=f(),o=m(),{setLoading:i,clearAllLoading:c}=_(),s=r.useRef(!1);return r.useLayoutEffect((()=>{i(h.CONNECTION_AUTH)}),[i]),r.useEffect((()=>{if(s.current)return;s.current=!0;const a=new URLSearchParams(o.search).get("code"),d=sessionStorage.getItem("hubspot_oauth_pending");if(sessionStorage.removeItem("hubspot_oauth_pending"),a!=null&&d!=null){const t=JSON.parse(d);e(p(t.tenant_id,t.connection_id,g("revenue"),b("hubspot"),{authorization_code:a,client_id:t.client_id,client_secret:t.client_secret,redirect_uri:t.redirect_uri}))}c();const u=y.getActiveTenantForUser();n(u?.tenantEmailDomain!=null?`/${u.tenantEmailDomain}/settings/integrations`:"/",{replace:!0})}),[]),null}export{R as default};
@@ -1 +1 @@
1
- import{n as s}from"./liveblocks-C6uJkYDp.js";import{j as c}from"./core-CmooL1VE.js";import{fI as f}from"./zeni-epic-state-GBqWdYww.js";import"./sentry-CcNJwOXe.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-B17MGskC.js";import{j as c}from"./core-Ds5S2wH7.js";import{fI as f}from"./zeni-epic-state-BFc7X-60.js";import"./sentry-Dbvw8B0Q.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};