@zeniai/web-app-ui 5.3.73-prod → 5.3.73-qa

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/dist/assets/{AccountMappingScreen-Bt7kgwzd.js → AccountMappingScreen-BE1tvCY-.js} +1 -1
  2. package/dist/assets/{ActualMatchingMatchDetailScreen-D3TCiM6R.js → ActualMatchingMatchDetailScreen-JIrVAnYO.js} +1 -1
  3. package/dist/assets/AddressRoutes-D9zk0sYw.js +1 -0
  4. package/dist/assets/{AddressScreen-qo1Zx6dh.js → AddressScreen-DX07-zau.js} +1 -1
  5. package/dist/assets/{AiCfoScreen-DJgrk-wK.js → AiCfoScreen-tIUREuwh.js} +1 -1
  6. package/dist/assets/{AppDrawer-CK63DJCk.js → AppDrawer-BtvyICbv.js} +1 -1
  7. package/dist/assets/{BillPayApprovalRoutes-DryS5hAq.js → BillPayApprovalRoutes-BeNlUYtP.js} +1 -1
  8. package/dist/assets/{BillPayRoutes-CXV5812v.js → BillPayRoutes-NNo26FTU.js} +1 -1
  9. package/dist/assets/{BusinessVerificationPageScreen-BYZrHVbz.js → BusinessVerificationPageScreen-DUnn3sZ3.js} +1 -1
  10. package/dist/assets/{CardsAiCfoScreen-DJQoznAN.js → CardsAiCfoScreen-DgW1pdhN.js} +1 -1
  11. package/dist/assets/{ChargeCardRoutes-B_Jt6BWf.js → ChargeCardRoutes-Czud_dft.js} +1 -1
  12. package/dist/assets/{CompanyPassportScreen-BPvXZ3Nk.js → CompanyPassportScreen-CUrmIaoV.js} +1 -1
  13. package/dist/assets/{ConnectionAuthScreen-DVBDPs0e.js → ConnectionAuthScreen-DBBWNSFG.js} +1 -1
  14. package/dist/assets/CustomerOnboardingAuthScreen-BkD1xkwc.js +1 -0
  15. package/dist/assets/{CustomerOnboardingRoutes-CuGeg3K2.js → CustomerOnboardingRoutes-nYzTX44l.js} +1 -1
  16. package/dist/assets/{DashboardRoutes-to8UmZ5Q.js → DashboardRoutes-DhAARK1y.js} +1 -1
  17. package/dist/assets/{DefaultTenantHome-DcTHXqV1.js → DefaultTenantHome-BnU9SlLP.js} +1 -1
  18. package/dist/assets/{DomesticWireDetailScreen-DPzkRw4O.js → DomesticWireDetailScreen-CXWbzXGO.js} +1 -1
  19. package/dist/assets/{DrawerScreen-DQj2aPp1.js → DrawerScreen-KU4gAeGs.js} +1 -1
  20. package/dist/assets/{EntityDetailRoutes-BTDBTMGg.js → EntityDetailRoutes-D_N1d5ZQ.js} +1 -1
  21. package/dist/assets/{ExpenseAutomationRoutes-DvVWLPfA.js → ExpenseAutomationRoutes-CLNre9XZ.js} +1 -1
  22. package/dist/assets/{FeaturePreviewScreen-mVNHNLYK.js → FeaturePreviewScreen-CSQdoVFf.js} +1 -1
  23. package/dist/assets/{HubSpotOAuthCallbackScreen-DsxGyZKU.js → HubSpotOAuthCallbackScreen-CdA2Kn-0.js} +1 -1
  24. package/dist/assets/{InboxNotificationsProvider-DZEmbklx.js → InboxNotificationsProvider-DNSMQBKV.js} +1 -1
  25. package/dist/assets/{InvoicingRoutes-5gXPlaKJ.js → InvoicingRoutes-BHf-XoEl.js} +1 -1
  26. package/dist/assets/{MagicLinkRoutes-BmIe-roe.js → MagicLinkRoutes-DPv2J5Oz.js} +1 -1
  27. package/dist/assets/{MagicLinkSignInScreen-Diabv8A6.js → MagicLinkSignInScreen-DSrgS8kC.js} +1 -1
  28. package/dist/assets/{MobileAppDrawer-C2lqlDnP.js → MobileAppDrawer-5FBCjy6b.js} +1 -1
  29. package/dist/assets/NotFoundScreen-CT9mXoPL.js +1 -0
  30. package/dist/assets/{NotificationRoutes-BdaxBQoM.js → NotificationRoutes-qO4Y_dYL.js} +1 -1
  31. package/dist/assets/{OAuthConsentScreen-CrjGl9Is.js → OAuthConsentScreen-SaWEQNl9.js} +1 -1
  32. package/dist/assets/{PandLWithForecastRoutes-C3kCZETH.js → PandLWithForecastRoutes-By9t5qFG.js} +1 -1
  33. package/dist/assets/{PaymentLinkScreen-Dtq8zclG.js → PaymentLinkScreen-eihuemvD.js} +1 -1
  34. package/dist/assets/{PeopleRoutes-QXqWaQtZ.js → PeopleRoutes-Dqp41TZY.js} +1 -1
  35. package/dist/assets/{PerformanceRoutes-CW-Wpt2-.js → PerformanceRoutes-C-s_fkZE.js} +1 -1
  36. package/dist/assets/{Preview-CzJsLFbd.js → Preview-Csnu6hhv.js} +1 -1
  37. package/dist/assets/{QBOConnectionScreen-BRHRhSdr.js → QBOConnectionScreen-D1I_iW5h.js} +1 -1
  38. package/dist/assets/{ReimbursementApprovalRoutes-BvlpolQ3.js → ReimbursementApprovalRoutes-D09rn5qB.js} +1 -1
  39. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-DA-jusLE.js → ReimbursementApprovalRuleDetailScreen-BIyPBmgD.js} +1 -1
  40. package/dist/assets/{ReimbursementRoutes-D-R_oS33.js → ReimbursementRoutes-LP6xm98z.js} +1 -1
  41. package/dist/assets/{ReportsRoutes-BWoRCwa2.js → ReportsRoutes-DITYNMuX.js} +1 -1
  42. package/dist/assets/{RewardsRoutes-BX7hxVtw.js → RewardsRoutes-B40r6YTa.js} +1 -1
  43. package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-CccA1FhJ.js → ScheduleDetailsPrepaidExpensesScreen-BcgBt7ic.js} +1 -1
  44. package/dist/assets/{ScreenRoutes-CP1voNZh.js → ScreenRoutes-D1Kn71pi.js} +2 -2
  45. package/dist/assets/{SettingsRoutes-D9_Sak_7.js → SettingsRoutes-Da6bbYYR.js} +1 -1
  46. package/dist/assets/{SetupPagesScreen-Cx9Ixrg5.js → SetupPagesScreen-BEg9WOWC.js} +1 -1
  47. package/dist/assets/{SignInScreen-DytquLVK.js → SignInScreen-CGyR8HV0.js} +1 -1
  48. package/dist/assets/{SignOutScreen-BDPiRBnZ.js → SignOutScreen-rgwnFp37.js} +1 -1
  49. package/dist/assets/{TaskListScreen-DxzExjyM.js → TaskListScreen-BSIpi4t5.js} +1 -1
  50. package/dist/assets/{TaskRoutes-DvXRIaAu.js → TaskRoutes-C4ENdbyX.js} +1 -1
  51. package/dist/assets/TransactionDetailRoutes-CpfJculb.js +1 -0
  52. package/dist/assets/{TransactionDetailScreen-DUui44wg.js → TransactionDetailScreen-bF7tC5BL.js} +1 -1
  53. package/dist/assets/{TransactionListRoutes-DR9HbfHr.js → TransactionListRoutes-C_ZQyWLJ.js} +1 -1
  54. package/dist/assets/{TreasuryRoutes-BzirbbXv.js → TreasuryRoutes-ZY5ec2rr.js} +1 -1
  55. package/dist/assets/{VendorsRoutes-B7evscgY.js → VendorsRoutes-g-bxxUNg.js} +1 -1
  56. package/dist/assets/{WiseConfirmationScreen-B98oPJdz.js → WiseConfirmationScreen-Hu2tm7rB.js} +1 -1
  57. package/dist/assets/{ZeniAccountRoutes-D1v87hAY.js → ZeniAccountRoutes-p4oJntrm.js} +1 -1
  58. package/dist/assets/{ZeniAccountStatementScreen-liuHq7aE.js → ZeniAccountStatementScreen-BLhbe-0Z.js} +1 -1
  59. package/dist/assets/{accountMappingHelper--0LHp2Bk.js → accountMappingHelper-B03ntuMF.js} +1 -1
  60. package/dist/assets/{analytics-OPem84Ei.js → analytics-BFbgqgMT.js} +1 -1
  61. package/dist/assets/{analyticsHelper-L2FAAtUl.js → analyticsHelper-CR4O3yZF.js} +1 -1
  62. package/dist/assets/{core-Dm5PI5NP.js → core-BTxe1IJ4.js} +1 -1
  63. package/dist/assets/{decodeURIComponentSafe-C8e4kPd1.js → decodeURIComponentSafe-CLAUpL82.js} +1 -1
  64. package/dist/assets/{dnd-ClUbwCoS.js → dnd-CH048ZLo.js} +1 -1
  65. package/dist/assets/{empty-BFaCYmu8.js → empty-BlDbR96Q.js} +1 -1
  66. package/dist/assets/{empty-DJ8fqs2e.js → empty-CAFZs_Ce.js} +1 -1
  67. package/dist/assets/{emptyVideoElement-BnC99HVY.js → emptyVideoElement-C3V_Mh-h.js} +1 -1
  68. package/dist/assets/{epic-BX-G5Xdr.js → epic-Cs9GTJNL.js} +1 -1
  69. package/dist/assets/{expenseAutomationHelper-B8Ejwmg7.js → expenseAutomationHelper-DayJ0nIv.js} +1 -1
  70. package/dist/assets/{getLocaleForTenant-Byouur-J.js → getLocaleForTenant-AQFwGK3G.js} +1 -1
  71. package/dist/assets/{index-BGb_4phe.js → index-5MqCU60P.js} +2 -2
  72. package/dist/assets/{index-BaUmVadL.js → index-9ZQLuzDm.js} +1 -1
  73. package/dist/assets/{index-5hj87AbJ.js → index-BBiUi3gN.js} +1 -1
  74. package/dist/assets/{index-Bl3qpN1a.js → index-Bk3SeEYR.js} +1 -1
  75. package/dist/assets/{index-8imf6Eky.js → index-D-UPM8nK.js} +1 -1
  76. package/dist/assets/{index-CLlAw1u9.js → index-JPLpjCnh.js} +1 -1
  77. package/dist/assets/{index-BQHr8aAY.js → index-lUU_agnk.js} +1 -1
  78. package/dist/assets/{index-Th7HlX57.js → index-t_YINWfi.js} +8 -8
  79. package/dist/assets/{lexical-DeRJYv71.js → lexical-tyxOdseK.js} +1 -1
  80. package/dist/assets/{liveblocks-CbQIe9oq.js → liveblocks-BOLtmXrt.js} +1 -1
  81. package/dist/assets/{lottie-B12ROVai.js → lottie-DLo-RGW2.js} +1 -1
  82. package/dist/assets/{mui-DYmyXxeT.js → mui-CoXsq-BK.js} +1 -1
  83. package/dist/assets/{pathToGoBack-C7WjuWxn.js → pathToGoBack-Bch85fkl.js} +1 -1
  84. package/dist/assets/{pdf-C3jpxp55.js → pdf-DVvA7lFh.js} +3 -3
  85. package/dist/assets/{pdf-lib-DG-CuLCP.js → pdf-lib-CTa71n8-.js} +1 -1
  86. package/dist/assets/{plaid-QgBTDn__.js → plaid-aFRwvwGe.js} +1 -1
  87. package/dist/assets/{pusher-CmwqLBLm.js → pusher-kon0XfSK.js} +1 -1
  88. package/dist/assets/{react-COzugqFx.js → react-BlW33xsQ.js} +1 -1
  89. package/dist/assets/{react-Dcl4jBry.js → react-Bugty8Ja.js} +1 -1
  90. package/dist/assets/{react-tmzALIh_.js → react-BukI8JJo.js} +1 -1
  91. package/dist/assets/{react-BRanp_fg.js → react-CgA-IPTs.js} +1 -1
  92. package/dist/assets/{react-VSd6Qhdk.js → react-CnAe8nlJ.js} +1 -1
  93. package/dist/assets/{react-vUTjZAGx.js → react-CuayOuaV.js} +1 -1
  94. package/dist/assets/{recharts-qJ8sNO7p.js → recharts-4iB4lKv8.js} +1 -1
  95. package/dist/assets/{routePaths-BgAk0eAz.js → routePaths-ByVgDZC2.js} +1 -1
  96. package/dist/assets/{sentry-6Vbo2OmL.js → sentry-CXDuPEuw.js} +1 -1
  97. package/dist/assets/{stripSplatSuffix-B-URYkgk.js → stripSplatSuffix-Ph0joKsY.js} +1 -1
  98. package/dist/assets/{url-C8XuqQzG.js → url-b7gVrWYV.js} +1 -1
  99. package/dist/assets/{url-BK8mCwZX.js → url-gwgPp82g.js} +1 -1
  100. package/dist/assets/{useActualMatchingMatchDetail-Cz5GLARB.js → useActualMatchingMatchDetail-wQ6Oyy0y.js} +1 -1
  101. package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-CIokJugz.js → useAiCfoDashboardSuggestedQuestionsChips-BAsCzUuV.js} +1 -1
  102. package/dist/assets/{useAskAiCfoHostNavButtonProps-Dfyf-I-c.js → useAskAiCfoHostNavButtonProps-CGeN7NSS.js} +1 -1
  103. package/dist/assets/{useChargeCardPusherEvents-DRYpCBgb.js → useChargeCardPusherEvents-Babpz4Cl.js} +1 -1
  104. package/dist/assets/{useDeviceId-CCw5spTH.js → useDeviceId-Bb0qVsLr.js} +1 -1
  105. package/dist/assets/{useEmailConnectResultRefresh-tlqq_AXF.js → useEmailConnectResultRefresh-EO4XFjwp.js} +1 -1
  106. package/dist/assets/{useInitialThreadRequest-DqbkbrUI.js → useInitialThreadRequest-AuBsHZ1k.js} +1 -1
  107. package/dist/assets/{useTaskManagerAccess-CxP3cGau.js → useTaskManagerAccess-21llCh7a.js} +1 -1
  108. package/dist/assets/{useTaskManagerPusherEvents-v7e2ILuv.js → useTaskManagerPusherEvents-Ct21DG4i.js} +1 -1
  109. package/dist/assets/{utils-CVkIWVhf.js → utils-Dq3SJj6J.js} +1 -1
  110. package/dist/assets/{withTransactionSidePanel-Dz0en0Wt.js → withTransactionSidePanel-DxjwZ9FM.js} +1 -1
  111. package/dist/assets/{zeni-epic-state-DUNGajKt.js → zeni-epic-state-EEoBiaeS.js} +3 -3
  112. package/dist/index.html +1 -1
  113. package/package.json +1 -1
  114. package/dist/assets/AddressRoutes-Bm0TowAW.js +0 -1
  115. package/dist/assets/CustomerOnboardingAuthScreen-BIJO-83I.js +0 -1
  116. package/dist/assets/NotFoundScreen-D6OqnzX9.js +0 -1
  117. package/dist/assets/TransactionDetailRoutes-kMuvfB5c.js +0 -1
@@ -1 +1 @@
1
- import{j as m}from"./liveblocks-CbQIe9oq.js";import{a as g}from"./sentry-6Vbo2OmL.js";import{h as w,u as k,g as x,i as T,j as O,l as E}from"./core-Dm5PI5NP.js";import{z as N,bs as F,a8 as P,k as V,S as L,o as b,bt as j,ae as A,aG as U,p as B}from"./index-Th7HlX57.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-DUNGajKt.js";import"./mui-DYmyXxeT.js";import{d as W}from"./routePaths-BgAk0eAz.js";import{M as X}from"./MobileAppDrawer-C2lqlDnP.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]="09579973-59e9-4af5-88b2-d9cb00586082",t._sentryDebugIdIdentifier="sentry-dbid-09579973-59e9-4af5-88b2-d9cb00586082")}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=k(),i=x(),{tenantEmailDomain:p}=T(),[c,l]=g.useState(!1),[f,e]=g.useState(!1),n=O((s=>s.companyViewState.passportView.fetchState)),o=O((s=>s.companyConfigState.fetchState)),r=O((s=>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,b(i)?"Settings":"Company Passport")}),b(i)?m.jsx(X,{isAppContentDrawerOpen:f,handleDrawerToggle:u}):null,m.jsx(ee,{companyId:d,navigate:t,location:i,isLoading:y,currentTenant:r,isSettings:b(i),onClickMenuIcon:()=>{u(!0)}})]})}export{de as C};
1
+ import{j as m}from"./liveblocks-BOLtmXrt.js";import{a as g}from"./sentry-CXDuPEuw.js";import{h as w,u as k,g as x,i as T,j as O,l as E}from"./core-BTxe1IJ4.js";import{z as N,bs as F,a8 as P,k as V,S as L,o as b,bt as j,ae as A,aG as U,p as B}from"./index-t_YINWfi.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-EEoBiaeS.js";import"./mui-CoXsq-BK.js";import{d as W}from"./routePaths-ByVgDZC2.js";import{M as X}from"./MobileAppDrawer-5FBCjy6b.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]="09579973-59e9-4af5-88b2-d9cb00586082",t._sentryDebugIdIdentifier="sentry-dbid-09579973-59e9-4af5-88b2-d9cb00586082")}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=k(),i=x(),{tenantEmailDomain:p}=T(),[c,l]=g.useState(!1),[f,e]=g.useState(!1),n=O((s=>s.companyViewState.passportView.fetchState)),o=O((s=>s.companyConfigState.fetchState)),r=O((s=>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,b(i)?"Settings":"Company Passport")}),b(i)?m.jsx(X,{isAppContentDrawerOpen:f,handleDrawerToggle:u}):null,m.jsx(ee,{companyId:d,navigate:t,location:i,isLoading:y,currentTenant:r,isSettings:b(i),onClickMenuIcon:()=>{u(!0)}})]})}export{de as C};
@@ -1,4 +1,4 @@
1
- import{j as I}from"./liveblocks-CbQIe9oq.js";import{a as o}from"./sentry-6Vbo2OmL.js";import{u as F,h as R,g as H,j as C,N as w}from"./core-Dm5PI5NP.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-DUNGajKt.js";import{u as J,z as E,L as T,G as K,M as W}from"./index-Th7HlX57.js";import{n as X}from"./mui-DYmyXxeT.js";import{P as h,a as _}from"./AccountMappingScreen-Bt7kgwzd.js";import{t as Y}from"./getLocaleForTenant-Byouur-J.js";import{g as Z,Q as ee}from"./QBOConnectionScreen-BRHRhSdr.js";import"./recharts-qJ8sNO7p.js";import"./analytics-OPem84Ei.js";import"./plaid-QgBTDn__.js";import"./dnd-ClUbwCoS.js";import"./stripe-cKAAJElX.js";import"./lottie-B12ROVai.js";import"./lexical-DeRJYv71.js";import"./pdf-C3jpxp55.js";import"./utils-CVkIWVhf.js";import"./MobileAppDrawer-C2lqlDnP.js";import"./InboxNotificationsProvider-DZEmbklx.js";import"./useTaskManagerAccess-CxP3cGau.js";import"./accountMappingHelper--0LHp2Bk.js";import"./empty-BFaCYmu8.js";import"./pdf-lib-DG-CuLCP.js";import"./index-BaUmVadL.js";import"./url-C8XuqQzG.js";import"./index-5hj87AbJ.js";import"./decodeURIComponentSafe-C8e4kPd1.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-BOLtmXrt.js";import{a as o}from"./sentry-CXDuPEuw.js";import{u as F,h as R,g as H,j as C,N as w}from"./core-BTxe1IJ4.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-EEoBiaeS.js";import{u as J,z as E,L as T,G as K,M as W}from"./index-t_YINWfi.js";import{n as X}from"./mui-CoXsq-BK.js";import{P as h,a as _}from"./AccountMappingScreen-BE1tvCY-.js";import{t as Y}from"./getLocaleForTenant-AQFwGK3G.js";import{g as Z,Q as ee}from"./QBOConnectionScreen-D1I_iW5h.js";import"./recharts-4iB4lKv8.js";import"./analytics-BFbgqgMT.js";import"./plaid-aFRwvwGe.js";import"./dnd-CH048ZLo.js";import"./stripe-cKAAJElX.js";import"./lottie-DLo-RGW2.js";import"./lexical-tyxOdseK.js";import"./pdf-DVvA7lFh.js";import"./utils-Dq3SJj6J.js";import"./MobileAppDrawer-5FBCjy6b.js";import"./InboxNotificationsProvider-DNSMQBKV.js";import"./useTaskManagerAccess-21llCh7a.js";import"./accountMappingHelper-B03ntuMF.js";import"./empty-BlDbR96Q.js";import"./pdf-lib-CTa71n8-.js";import"./index-9ZQLuzDm.js";import"./url-b7gVrWYV.js";import"./index-BBiUi3gN.js";import"./decodeURIComponentSafe-CLAUpL82.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-BOLtmXrt.js";import{z as m}from"./index-t_YINWfi.js";import{g as n}from"./QBOConnectionScreen-D1I_iW5h.js";import"./sentry-CXDuPEuw.js";import{g as p,N as a}from"./core-BTxe1IJ4.js";import"./zeni-epic-state-EEoBiaeS.js";import"./recharts-4iB4lKv8.js";import"./mui-CoXsq-BK.js";import"./analytics-BFbgqgMT.js";import"./plaid-aFRwvwGe.js";import"./dnd-CH048ZLo.js";import"./stripe-cKAAJElX.js";import"./lottie-DLo-RGW2.js";import"./lexical-tyxOdseK.js";import"./pdf-DVvA7lFh.js";import"./utils-Dq3SJj6J.js";import"./empty-BlDbR96Q.js";import"./pdf-lib-CTa71n8-.js";import"./index-9ZQLuzDm.js";import"./url-b7gVrWYV.js";import"./index-BBiUi3gN.js";import"./decodeURIComponentSafe-CLAUpL82.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-CbQIe9oq.js";import{t as wn,A as $e}from"./AddressScreen-qo1Zx6dh.js";import An from"./NotFoundScreen-D6OqnzX9.js";import{a as d,t as Me}from"./sentry-6Vbo2OmL.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-Dm5PI5NP.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-DUNGajKt.js";import{z,_ as Pe,f as Z,D as vt,p as q,a8 as re,k as g,aE as _t,ai as fn,a1 as xt,c as yn,O as hn,j as W,Y as ge,S as ve,aF as Tt,M as qe,x as He,ae as Et,aG as Je,aH as wt,aI as At}from"./index-Th7HlX57.js";import{n as De}from"./mui-DYmyXxeT.js";import{g as Pt,h as Dt,q as ie}from"./QBOConnectionScreen-BRHRhSdr.js";import{u as jt,a as Bt}from"./useEmailConnectResultRefresh-tlqq_AXF.js";import{u as Ft}from"./useChargeCardPusherEvents-DRYpCBgb.js";import"./recharts-qJ8sNO7p.js";import"./analytics-OPem84Ei.js";import"./plaid-QgBTDn__.js";import"./dnd-ClUbwCoS.js";import"./stripe-cKAAJElX.js";import"./lottie-B12ROVai.js";import"./lexical-DeRJYv71.js";import"./pdf-C3jpxp55.js";import"./utils-CVkIWVhf.js";import"./empty-BFaCYmu8.js";import"./pdf-lib-DG-CuLCP.js";import"./index-BaUmVadL.js";import"./url-C8XuqQzG.js";import"./index-5hj87AbJ.js";import"./decodeURIComponentSafe-C8e4kPd1.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]="7bb65fc7-796f-4b5a-83f9-9c023711b5b8",e._sentryDebugIdIdentifier="sentry-dbid-7bb65fc7-796f-4b5a-83f9-9c023711b5b8")}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(),[o,p]=d.useState(!1),[u,c]=d.useState(!1),{tenantEmailDomain:v}=Te(),n=z.getSignedInUser(),{useFeatureGate:t}=Pe(),{isFeatureEnabled:C}=t(Z.isApAgingFeatureEnabled),{isFeatureEnabled:a}=t(Z.isArAgingFeatureEnabled),{isFeatureEnabled:A}=t(Z.isReferralFeatureEnabled),{isFeatureEnabled:w}=t(Z.isDebitCardFeatureEnabled),k=vt(),O=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"),a===!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"||o||m||b||(p(!0),i(Vn(n.userId,F,O.tenantId,!0,!1,D)))}),[o,P,m,b,n,O.tenantId,i]);const j=d.useRef(!1),N=d.useCallback((()=>{const S={pathnameStackToGoBack: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((o=>[o.key,o])));return l.map((o=>{return p=i.get(o)?.status,p==="starting"||p==="building"?p:"idle";var p}))},We=(e,l)=>{if(e.length===0)return!1;const i=new Map(e.map((o=>[o.key,o])));return l.every((o=>i.get(o)?.status==="ready"))},Xe=De.div`
1
+ import{j as s}from"./liveblocks-BOLtmXrt.js";import{t as wn,A as $e}from"./AddressScreen-DX07-zau.js";import An from"./NotFoundScreen-CT9mXoPL.js";import{a as d,t as Me}from"./sentry-CXDuPEuw.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-BTxe1IJ4.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-EEoBiaeS.js";import{z,_ as Pe,f as Z,D as vt,p as q,a8 as re,k as g,aE as _t,ai as fn,a1 as xt,c as yn,O as hn,j as W,Y as ge,S as ve,aF as Tt,M as qe,x as He,ae as Et,aG as Je,aH as wt,aI as At}from"./index-t_YINWfi.js";import{n as De}from"./mui-CoXsq-BK.js";import{g as Pt,h as Dt,q as ie}from"./QBOConnectionScreen-D1I_iW5h.js";import{u as jt,a as Bt}from"./useEmailConnectResultRefresh-EO4XFjwp.js";import{u as Ft}from"./useChargeCardPusherEvents-Babpz4Cl.js";import"./recharts-4iB4lKv8.js";import"./analytics-BFbgqgMT.js";import"./plaid-aFRwvwGe.js";import"./dnd-CH048ZLo.js";import"./stripe-cKAAJElX.js";import"./lottie-DLo-RGW2.js";import"./lexical-tyxOdseK.js";import"./pdf-DVvA7lFh.js";import"./utils-Dq3SJj6J.js";import"./empty-BlDbR96Q.js";import"./pdf-lib-CTa71n8-.js";import"./index-9ZQLuzDm.js";import"./url-b7gVrWYV.js";import"./index-BBiUi3gN.js";import"./decodeURIComponentSafe-CLAUpL82.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]="7bb65fc7-796f-4b5a-83f9-9c023711b5b8",e._sentryDebugIdIdentifier="sentry-dbid-7bb65fc7-796f-4b5a-83f9-9c023711b5b8")}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(),[o,p]=d.useState(!1),[u,c]=d.useState(!1),{tenantEmailDomain:v}=Te(),n=z.getSignedInUser(),{useFeatureGate:t}=Pe(),{isFeatureEnabled:C}=t(Z.isApAgingFeatureEnabled),{isFeatureEnabled:a}=t(Z.isArAgingFeatureEnabled),{isFeatureEnabled:A}=t(Z.isReferralFeatureEnabled),{isFeatureEnabled:w}=t(Z.isDebitCardFeatureEnabled),k=vt(),O=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"),a===!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"||o||m||b||(p(!0),i(Vn(n.userId,F,O.tenantId,!0,!1,D)))}),[o,P,m,b,n,O.tenantId,i]);const j=d.useRef(!1),N=d.useCallback((()=>{const S={pathnameStackToGoBack: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((o=>[o.key,o])));return l.map((o=>{return p=i.get(o)?.status,p==="starting"||p==="building"?p:"idle";var p}))},We=(e,l)=>{if(e.length===0)return!1;const i=new Map(e.map((o=>[o.key,o])));return l.every((o=>i.get(o)?.status==="ready"))},Xe=De.div`
2
2
  display: flex;
3
3
  height: 100vh;
4
4
  background-color: ${e=>e.theme.colors.grey4};
@@ -1,4 +1,4 @@
1
- import{j as d}from"./liveblocks-CbQIe9oq.js";import{i as K,j as _,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-Dm5PI5NP.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 St,UX as _t,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 Sa,EJ as _a,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 So,EH as ya,Yf as Ce,Yg as qt,Yh as _o,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-DUNGajKt.js";import{z as Y,av as oe,p as O,k as w,G as q,bb as Uo,as as Ve,a8 as Ge,bc as Da,S 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,y as re,bj as Ma,bk as Ba,au as Ya,bl as Ko,ai as Ne,O as $e,bm as qo,X as Qo,bn as Zo,f as G,D as Wo,j as Ho,a4 as Jo,aq as es,bo as ts,bp as as,bq as ns,br as ve}from"./index-Th7HlX57.js";import{n as wt}from"./mui-DYmyXxeT.js";import{a as b}from"./sentry-6Vbo2OmL.js";import{w as Ua}from"./withTransactionSidePanel-Dz0en0Wt.js";import{c as La,t as De,f as me,b as xt,a as Dt,v as os}from"./routePaths-BgAk0eAz.js";import{u as se}from"./useAskAiCfoHostNavButtonProps-Dfyf-I-c.js";import Me from"./NotFoundScreen-D6OqnzX9.js";import{u as Pt}from"./useInitialThreadRequest-DqbkbrUI.js";import{t as Va}from"./analyticsHelper-L2FAAtUl.js";import{C as ss}from"./CompanyPassportScreen-BPvXZ3Nk.js";import{u as rs}from"./useAiCfoDashboardSuggestedQuestionsChips-CIokJugz.js";import{F as is}from"./FeaturePreviewScreen-mVNHNLYK.js";import"./recharts-qJ8sNO7p.js";import"./analytics-OPem84Ei.js";import"./plaid-QgBTDn__.js";import"./dnd-ClUbwCoS.js";import"./stripe-cKAAJElX.js";import"./lottie-B12ROVai.js";import"./lexical-DeRJYv71.js";import"./pdf-C3jpxp55.js";import"./utils-CVkIWVhf.js";import"./TransactionDetailScreen-DUui44wg.js";import"./decodeURIComponentSafe-C8e4kPd1.js";import"./expenseAutomationHelper-B8Ejwmg7.js";import"./stripSplatSuffix-B-URYkgk.js";import"./MobileAppDrawer-C2lqlDnP.js";import"./InboxNotificationsProvider-DZEmbklx.js";import"./useTaskManagerAccess-CxP3cGau.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]="e6323229-061d-4728-a23d-9ca376c5a511",e._sentryDebugIdIdentifier="sentry-dbid-e6323229-061d-4728-a23d-9ca376c5a511")}catch{}})();const cs=Ua((function({openTransactionPanel:e,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n}){const{vendorId:o,reportDate:r}=K(),s=Y.getSignedInUser(),i=_((S=>S.tenantState.currentTenantId)),l=_((S=>B(S))),{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(S,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(((S,A)=>{C(Vt({sortKey:S,sortOrder:A}))}),[]),T=b.useCallback((S=>{C(Vt({downloadState:S}))}),[]),R=b.useCallback((S=>{if(e)e(S.transactionId,S.transactionType);else if(m!=null){const A=La({id:S.transactionId,type:S.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=_((k=>wn(k))),{isAiCfoAccessEnabled:n,onAskAiCfoClick:o}=se({mobileExploreReferrer:"AP Aging"});Ve({isDataReady:t.fetchState==="Completed"});const r=Y.getSignedInUser(),s=_((k=>k.tenantState.currentTenantId)),i=_((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=_((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=_((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,S)=>{u(Gt({sortKey:x,sortOrder:S}))}),[]),k=b.useCallback((x=>{u(Gt({downloadState:x}))}),[]),T=b.useCallback((x=>{if(e)e(x.transactionId,x.transactionType);else if(l!=null){const S=La({id:x.transactionId,type:x.transactionType},l);C(S);const A=O(m.state?.pathnameStackToGoBack,m.pathname);C(S,{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=_((I=>Pn(I))),{isAiCfoAccessEnabled:n,onAskAiCfoClick:o}=se({mobileExploreReferrer:"AR Aging"});Ve({isDataReady:t.fetchState==="Completed"});const r=Y.getSignedInUser(),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=_((o=>B(o).company?.companyInfo.firstMonthOfFY??1));return _((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=_((o=>B(o).company?.companyInfo.firstMonthOfFY??1));return _((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-BOLtmXrt.js";import{i as K,j as _,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-BTxe1IJ4.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 St,UX as _t,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 Sa,EJ as _a,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 So,EH as ya,Yf as Ce,Yg as qt,Yh as _o,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-EEoBiaeS.js";import{z as Y,av as oe,p as O,k as w,G as q,bb as Uo,as as Ve,a8 as Ge,bc as Da,S 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,y as re,bj as Ma,bk as Ba,au as Ya,bl as Ko,ai as Ne,O as $e,bm as qo,X as Qo,bn as Zo,f as G,D as Wo,j as Ho,a4 as Jo,aq as es,bo as ts,bp as as,bq as ns,br as ve}from"./index-t_YINWfi.js";import{n as wt}from"./mui-CoXsq-BK.js";import{a as b}from"./sentry-CXDuPEuw.js";import{w as Ua}from"./withTransactionSidePanel-DxjwZ9FM.js";import{c as La,t as De,f as me,b as xt,a as Dt,v as os}from"./routePaths-ByVgDZC2.js";import{u as se}from"./useAskAiCfoHostNavButtonProps-CGeN7NSS.js";import Me from"./NotFoundScreen-CT9mXoPL.js";import{u as Pt}from"./useInitialThreadRequest-AuBsHZ1k.js";import{t as Va}from"./analyticsHelper-CR4O3yZF.js";import{C as ss}from"./CompanyPassportScreen-CUrmIaoV.js";import{u as rs}from"./useAiCfoDashboardSuggestedQuestionsChips-BAsCzUuV.js";import{F as is}from"./FeaturePreviewScreen-CSQdoVFf.js";import"./recharts-4iB4lKv8.js";import"./analytics-BFbgqgMT.js";import"./plaid-aFRwvwGe.js";import"./dnd-CH048ZLo.js";import"./stripe-cKAAJElX.js";import"./lottie-DLo-RGW2.js";import"./lexical-tyxOdseK.js";import"./pdf-DVvA7lFh.js";import"./utils-Dq3SJj6J.js";import"./TransactionDetailScreen-bF7tC5BL.js";import"./decodeURIComponentSafe-CLAUpL82.js";import"./expenseAutomationHelper-DayJ0nIv.js";import"./stripSplatSuffix-Ph0joKsY.js";import"./MobileAppDrawer-5FBCjy6b.js";import"./InboxNotificationsProvider-DNSMQBKV.js";import"./useTaskManagerAccess-21llCh7a.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]="e6323229-061d-4728-a23d-9ca376c5a511",e._sentryDebugIdIdentifier="sentry-dbid-e6323229-061d-4728-a23d-9ca376c5a511")}catch{}})();const cs=Ua((function({openTransactionPanel:e,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n}){const{vendorId:o,reportDate:r}=K(),s=Y.getSignedInUser(),i=_((S=>S.tenantState.currentTenantId)),l=_((S=>B(S))),{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(S,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(((S,A)=>{C(Vt({sortKey:S,sortOrder:A}))}),[]),T=b.useCallback((S=>{C(Vt({downloadState:S}))}),[]),R=b.useCallback((S=>{if(e)e(S.transactionId,S.transactionType);else if(m!=null){const A=La({id:S.transactionId,type:S.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=_((k=>wn(k))),{isAiCfoAccessEnabled:n,onAskAiCfoClick:o}=se({mobileExploreReferrer:"AP Aging"});Ve({isDataReady:t.fetchState==="Completed"});const r=Y.getSignedInUser(),s=_((k=>k.tenantState.currentTenantId)),i=_((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=_((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=_((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,S)=>{u(Gt({sortKey:x,sortOrder:S}))}),[]),k=b.useCallback((x=>{u(Gt({downloadState:x}))}),[]),T=b.useCallback((x=>{if(e)e(x.transactionId,x.transactionType);else if(l!=null){const S=La({id:x.transactionId,type:x.transactionType},l);C(S);const A=O(m.state?.pathnameStackToGoBack,m.pathname);C(S,{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=_((I=>Pn(I))),{isAiCfoAccessEnabled:n,onAskAiCfoClick:o}=se({mobileExploreReferrer:"AR Aging"});Ve({isDataReady:t.fetchState==="Completed"});const r=Y.getSignedInUser(),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=_((o=>B(o).company?.companyInfo.firstMonthOfFY??1));return _((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=_((o=>B(o).company?.companyInfo.firstMonthOfFY??1));return _((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-CbQIe9oq.js";import{a as u}from"./sentry-6Vbo2OmL.js";import{u as y,j as b,l as U,g as w,N as A}from"./core-Dm5PI5NP.js";import{U1 as N,fI as _,go as k,U2 as L,pV as R,U3 as z}from"./zeni-epic-state-DUNGajKt.js";import{u as j,z as f,L as T,t as I,G as O,b as $}from"./index-Th7HlX57.js";import"./mui-DYmyXxeT.js";import{t as P}from"./getLocaleForTenant-Byouur-J.js";import"./recharts-qJ8sNO7p.js";import"./analytics-OPem84Ei.js";import"./plaid-QgBTDn__.js";import"./dnd-ClUbwCoS.js";import"./stripe-cKAAJElX.js";import"./lottie-B12ROVai.js";import"./lexical-DeRJYv71.js";import"./pdf-C3jpxp55.js";import"./utils-CVkIWVhf.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-BOLtmXrt.js";import{a as u}from"./sentry-CXDuPEuw.js";import{u as y,j as b,l as U,g as w,N as A}from"./core-BTxe1IJ4.js";import{U1 as N,fI as _,go as k,U2 as L,pV as R,U3 as z}from"./zeni-epic-state-EEoBiaeS.js";import{u as j,z as f,L as T,t as I,G as O,b as $}from"./index-t_YINWfi.js";import"./mui-CoXsq-BK.js";import{t as P}from"./getLocaleForTenant-AQFwGK3G.js";import"./recharts-4iB4lKv8.js";import"./analytics-BFbgqgMT.js";import"./plaid-aFRwvwGe.js";import"./dnd-CH048ZLo.js";import"./stripe-cKAAJElX.js";import"./lottie-DLo-RGW2.js";import"./lexical-tyxOdseK.js";import"./pdf-DVvA7lFh.js";import"./utils-Dq3SJj6J.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-CbQIe9oq.js";import{h as w,g as C,j as h,l as A,i as V}from"./core-Dm5PI5NP.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-DUNGajKt.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-Th7HlX57.js";import{n as z}from"./mui-DYmyXxeT.js";import"./sentry-6Vbo2OmL.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-BOLtmXrt.js";import{h as w,g as C,j as h,l as A,i as V}from"./core-BTxe1IJ4.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-EEoBiaeS.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-t_YINWfi.js";import{n as z}from"./mui-CoXsq-BK.js";import"./sentry-CXDuPEuw.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-CbQIe9oq.js";import{a1 as c,ab as l,E as f}from"./index-Th7HlX57.js";import{D as p}from"./mui-DYmyXxeT.js";import"./sentry-6Vbo2OmL.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-BOLtmXrt.js";import{a1 as c,ab as l,E as f}from"./index-t_YINWfi.js";import{D as p}from"./mui-CoXsq-BK.js";import"./sentry-CXDuPEuw.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-CbQIe9oq.js";import{a as d}from"./sentry-6Vbo2OmL.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-Dm5PI5NP.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-DUNGajKt.js";import{b8 as L,k as Q,a4 as U,p as tt}from"./index-Th7HlX57.js";import"./mui-DYmyXxeT.js";import{d as b}from"./decodeURIComponentSafe-C8e4kPd1.js";import{w as et}from"./withTransactionSidePanel-Dz0en0Wt.js";import{f as at,c as nt}from"./routePaths-BgAk0eAz.js";import"./recharts-qJ8sNO7p.js";import"./analytics-OPem84Ei.js";import"./plaid-QgBTDn__.js";import"./dnd-ClUbwCoS.js";import"./stripe-cKAAJElX.js";import"./lottie-B12ROVai.js";import"./lexical-DeRJYv71.js";import"./pdf-C3jpxp55.js";import"./utils-CVkIWVhf.js";import"./useAskAiCfoHostNavButtonProps-Dfyf-I-c.js";import"./TransactionDetailScreen-DUui44wg.js";import"./useInitialThreadRequest-DqbkbrUI.js";import"./expenseAutomationHelper-B8Ejwmg7.js";import"./stripSplatSuffix-B-URYkgk.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]="b20686ee-0477-425e-be5a-9dc916436ba4",a._sentryDebugIdIdentifier="sentry-dbid-b20686ee-0477-425e-be5a-9dc916436ba4")}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-BOLtmXrt.js";import{a as d}from"./sentry-CXDuPEuw.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-BTxe1IJ4.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-EEoBiaeS.js";import{b8 as L,k as Q,a4 as U,p as tt}from"./index-t_YINWfi.js";import"./mui-CoXsq-BK.js";import{d as b}from"./decodeURIComponentSafe-CLAUpL82.js";import{w as et}from"./withTransactionSidePanel-DxjwZ9FM.js";import{f as at,c as nt}from"./routePaths-ByVgDZC2.js";import"./recharts-4iB4lKv8.js";import"./analytics-BFbgqgMT.js";import"./plaid-aFRwvwGe.js";import"./dnd-CH048ZLo.js";import"./stripe-cKAAJElX.js";import"./lottie-DLo-RGW2.js";import"./lexical-tyxOdseK.js";import"./pdf-DVvA7lFh.js";import"./utils-Dq3SJj6J.js";import"./useAskAiCfoHostNavButtonProps-CGeN7NSS.js";import"./TransactionDetailScreen-bF7tC5BL.js";import"./useInitialThreadRequest-AuBsHZ1k.js";import"./expenseAutomationHelper-DayJ0nIv.js";import"./stripSplatSuffix-Ph0joKsY.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]="b20686ee-0477-425e-be5a-9dc916436ba4",a._sentryDebugIdIdentifier="sentry-dbid-b20686ee-0477-425e-be5a-9dc916436ba4")}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-CbQIe9oq.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-Dm5PI5NP.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 bt,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 Pt,X4 as ra,X6 as Ts,m5 as bs,X7 as Ps,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 bo,nH as ga,nt as Po,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 bc,tk as Pc,to as yc,tm as vc,tY as Ec}from"./zeni-epic-state-DUNGajKt.js";import za from"./NotFoundScreen-D6OqnzX9.js";import{a as s,R as $a}from"./sentry-6Vbo2OmL.js";import{n as be,S as Ac}from"./mui-DYmyXxeT.js";import{_ as Ve,f as H,k 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,dV as Mc,a7 as Na,dW as Oc,j as et,a as Uc,dX as Bc,dY as Vc,c as jc,O 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 Pa,e1 as Xc}from"./index-Th7HlX57.js";import{u as qa}from"./useAskAiCfoHostNavButtonProps-Dfyf-I-c.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-DUui44wg.js";import{u as ci,a as ii}from"./useActualMatchingMatchDetail-Cz5GLARB.js";import{d as li}from"./decodeURIComponentSafe-C8e4kPd1.js";import{m as Ja,a as Ya}from"./expenseAutomationHelper-B8Ejwmg7.js";import{u as Ha,a as Wa,w as ri}from"./withTransactionSidePanel-Dz0en0Wt.js";import{b as di,S as ui,a as mi,J as pi}from"./ScheduleDetailsPrepaidExpensesScreen-CccA1FhJ.js";import{s as va,i as Ka,h as hi,v as Si,c as gi}from"./routePaths-BgAk0eAz.js";import{a as It}from"./accountMappingHelper--0LHp2Bk.js";import{D as Ci}from"./DrawerScreen-DQj2aPp1.js";import"./recharts-qJ8sNO7p.js";import"./analytics-OPem84Ei.js";import"./plaid-QgBTDn__.js";import"./dnd-ClUbwCoS.js";import"./stripe-cKAAJElX.js";import"./lottie-B12ROVai.js";import"./lexical-DeRJYv71.js";import"./pdf-C3jpxp55.js";import"./utils-CVkIWVhf.js";import"./useInitialThreadRequest-DqbkbrUI.js";import"./stripSplatSuffix-B-URYkgk.js";import"./pathToGoBack-C7WjuWxn.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]="012e3a68-633e-4d09-84c2-b621efdb6743",t._sentryDebugIdIdentifier="sentry-dbid-012e3a68-633e-4d09-84c2-b621efdb6743")}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"}),b=s.useCallback(((p,P,_=!1)=>{t(Me({tenantId:P,period:{month:p.month,year:p.year},refreshViewInBackground:_}))}),[]),C=s.useCallback((p=>{const P=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,P??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),b(f,g.tenantId,!0)}),[b,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((P=>P.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&&b(f,g.tenantId)}),[b,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=be.div`
1
+ import{j as k}from"./liveblocks-BOLtmXrt.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-BTxe1IJ4.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 bt,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 Pt,X4 as ra,X6 as Ts,m5 as bs,X7 as Ps,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 bo,nH as ga,nt as Po,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 bc,tk as Pc,to as yc,tm as vc,tY as Ec}from"./zeni-epic-state-EEoBiaeS.js";import za from"./NotFoundScreen-CT9mXoPL.js";import{a as s,R as $a}from"./sentry-CXDuPEuw.js";import{n as be,S as Ac}from"./mui-CoXsq-BK.js";import{_ as Ve,f as H,k 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,dV as Mc,a7 as Na,dW as Oc,j as et,a as Uc,dX as Bc,dY as Vc,c as jc,O 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 Pa,e1 as Xc}from"./index-t_YINWfi.js";import{u as qa}from"./useAskAiCfoHostNavButtonProps-CGeN7NSS.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-bF7tC5BL.js";import{u as ci,a as ii}from"./useActualMatchingMatchDetail-wQ6Oyy0y.js";import{d as li}from"./decodeURIComponentSafe-CLAUpL82.js";import{m as Ja,a as Ya}from"./expenseAutomationHelper-DayJ0nIv.js";import{u as Ha,a as Wa,w as ri}from"./withTransactionSidePanel-DxjwZ9FM.js";import{b as di,S as ui,a as mi,J as pi}from"./ScheduleDetailsPrepaidExpensesScreen-BcgBt7ic.js";import{s as va,i as Ka,h as hi,v as Si,c as gi}from"./routePaths-ByVgDZC2.js";import{a as It}from"./accountMappingHelper-B03ntuMF.js";import{D as Ci}from"./DrawerScreen-KU4gAeGs.js";import"./recharts-4iB4lKv8.js";import"./analytics-BFbgqgMT.js";import"./plaid-aFRwvwGe.js";import"./dnd-CH048ZLo.js";import"./stripe-cKAAJElX.js";import"./lottie-DLo-RGW2.js";import"./lexical-tyxOdseK.js";import"./pdf-DVvA7lFh.js";import"./utils-Dq3SJj6J.js";import"./useInitialThreadRequest-AuBsHZ1k.js";import"./stripSplatSuffix-Ph0joKsY.js";import"./pathToGoBack-Bch85fkl.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]="012e3a68-633e-4d09-84c2-b621efdb6743",t._sentryDebugIdIdentifier="sentry-dbid-012e3a68-633e-4d09-84c2-b621efdb6743")}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"}),b=s.useCallback(((p,P,_=!1)=>{t(Me({tenantId:P,period:{month:p.month,year:p.year},refreshViewInBackground:_}))}),[]),C=s.useCallback((p=>{const P=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,P??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),b(f,g.tenantId,!0)}),[b,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((P=>P.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&&b(f,g.tenantId)}),[b,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=be.div`
2
2
  display: flex;
3
3
  height: 100vh;
4
4
  width: 100%;
@@ -1 +1 @@
1
- import{j as s}from"./liveblocks-CbQIe9oq.js";import{a as r}from"./sentry-6Vbo2OmL.js";import{aw as c,ax as l,q as p,a4 as f}from"./index-Th7HlX57.js";import"./mui-DYmyXxeT.js";import m from"./NotFoundScreen-D6OqnzX9.js";import{h as u,g as b}from"./core-Dm5PI5NP.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]="0558ec16-7d14-475c-91d0-925b0ae2f1dd",e._sentryDebugIdIdentifier="sentry-dbid-0558ec16-7d14-475c-91d0-925b0ae2f1dd")}catch{}})();const _=()=>{const e=u(),a=b(),t=r.useCallback((()=>{window.open("https://www.zeni.ai/demo/request","_blank")}),[]),d=r.useCallback((()=>{(()=>{const n=f(a.state?.pathnameStackToGoBack),i=n.poppedPathname??k();e(i,{state:{pathnameStackToGoBack:n.newStack}})})()}),[]),o=c(a.pathname);return o!=null?s.jsx(l,{menuItem:p(o),onDemoClick:t,onGoBack:d}):s.jsx(m,{})},k=(e=2)=>{let a="../";for(let t=0;t<e;t++)a=`${a}../`;return a};export{_ as F};
1
+ import{j as s}from"./liveblocks-BOLtmXrt.js";import{a as r}from"./sentry-CXDuPEuw.js";import{aw as c,ax as l,q as p,a4 as f}from"./index-t_YINWfi.js";import"./mui-CoXsq-BK.js";import m from"./NotFoundScreen-CT9mXoPL.js";import{h as u,g as b}from"./core-BTxe1IJ4.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]="0558ec16-7d14-475c-91d0-925b0ae2f1dd",e._sentryDebugIdIdentifier="sentry-dbid-0558ec16-7d14-475c-91d0-925b0ae2f1dd")}catch{}})();const _=()=>{const e=u(),a=b(),t=r.useCallback((()=>{window.open("https://www.zeni.ai/demo/request","_blank")}),[]),d=r.useCallback((()=>{(()=>{const n=f(a.state?.pathnameStackToGoBack),i=n.poppedPathname??k();e(i,{state:{pathnameStackToGoBack:n.newStack}})})()}),[]),o=c(a.pathname);return o!=null?s.jsx(l,{menuItem:p(o),onDemoClick:t,onGoBack:d}):s.jsx(m,{})},k=(e=2)=>{let a="../";for(let t=0;t<e;t++)a=`${a}../`;return a};export{_ as F};
@@ -1 +1 @@
1
- import{a as r}from"./sentry-6Vbo2OmL.js";import{u as l,h as f,g as m}from"./core-Dm5PI5NP.js";import{h$ as p,UH as g,UI as b}from"./zeni-epic-state-DUNGajKt.js";import{u as _,L as h,z as y}from"./index-Th7HlX57.js";import"./liveblocks-CbQIe9oq.js";import"./recharts-qJ8sNO7p.js";import"./mui-DYmyXxeT.js";import"./analytics-OPem84Ei.js";import"./plaid-QgBTDn__.js";import"./dnd-ClUbwCoS.js";import"./stripe-cKAAJElX.js";import"./lottie-B12ROVai.js";import"./lexical-DeRJYv71.js";import"./pdf-C3jpxp55.js";import"./utils-CVkIWVhf.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-CXDuPEuw.js";import{u as l,h as f,g as m}from"./core-BTxe1IJ4.js";import{h$ as p,UH as g,UI as b}from"./zeni-epic-state-EEoBiaeS.js";import{u as _,L as h,z as y}from"./index-t_YINWfi.js";import"./liveblocks-BOLtmXrt.js";import"./recharts-4iB4lKv8.js";import"./mui-CoXsq-BK.js";import"./analytics-BFbgqgMT.js";import"./plaid-aFRwvwGe.js";import"./dnd-CH048ZLo.js";import"./stripe-cKAAJElX.js";import"./lottie-DLo-RGW2.js";import"./lexical-tyxOdseK.js";import"./pdf-DVvA7lFh.js";import"./utils-Dq3SJj6J.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-CbQIe9oq.js";import{j as c}from"./core-Dm5PI5NP.js";import{fI as f}from"./zeni-epic-state-DUNGajKt.js";import"./sentry-6Vbo2OmL.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-BOLtmXrt.js";import{j as c}from"./core-BTxe1IJ4.js";import{fI as f}from"./zeni-epic-state-EEoBiaeS.js";import"./sentry-CXDuPEuw.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};