@zeniai/web-app-ui 5.3.60-next → 5.3.60-prod

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/dist/assets/{AccountMappingScreen-CG8HjcPf.js → AccountMappingScreen-B0Up80xG.js} +1 -1
  2. package/dist/assets/{ActualMatchingMatchDetailScreen-BgJKvXph.js → ActualMatchingMatchDetailScreen-CzYXXSw6.js} +1 -1
  3. package/dist/assets/AddressRoutes-wiOHxKnp.js +1 -0
  4. package/dist/assets/{AddressScreen-DiUUtXor.js → AddressScreen-CPFzXmPm.js} +1 -1
  5. package/dist/assets/{AiCfoScreen-CORGt5Wb.js → AiCfoScreen-Cv7c9o4z.js} +1 -1
  6. package/dist/assets/{AppDrawer-DoxNhBkI.js → AppDrawer-LLG7NS4i.js} +1 -1
  7. package/dist/assets/{BillPayApprovalRoutes-CdhPl8P5.js → BillPayApprovalRoutes-CAxeo7o_.js} +1 -1
  8. package/dist/assets/{BillPayRoutes-CkEqFj94.js → BillPayRoutes-BULBPpY1.js} +1 -1
  9. package/dist/assets/{BusinessVerificationPageScreen-Dz0_9Ijg.js → BusinessVerificationPageScreen-By8favwl.js} +1 -1
  10. package/dist/assets/{CardsAiCfoScreen-CLxIFPTi.js → CardsAiCfoScreen-BrkEHuKq.js} +1 -1
  11. package/dist/assets/{ChargeCardRoutes-DUC0_Rnq.js → ChargeCardRoutes-1jpypzK8.js} +1 -1
  12. package/dist/assets/{CompanyPassportScreen-CKHgIqAh.js → CompanyPassportScreen-CQnk6tjR.js} +1 -1
  13. package/dist/assets/{ConnectionAuthScreen-CVN0vtIU.js → ConnectionAuthScreen-CQuOukce.js} +1 -1
  14. package/dist/assets/CustomerOnboardingAuthScreen-CO2rse9H.js +1 -0
  15. package/dist/assets/{CustomerOnboardingRoutes-BW7qQgDH.js → CustomerOnboardingRoutes-JfYCGYxK.js} +1 -1
  16. package/dist/assets/{DashboardRoutes-BBI2B6M8.js → DashboardRoutes-B3BRkxur.js} +1 -1
  17. package/dist/assets/{DefaultTenantHome-guvQ_iYL.js → DefaultTenantHome-YRLGu4dU.js} +1 -1
  18. package/dist/assets/{DomesticWireDetailScreen-p5z5JwFe.js → DomesticWireDetailScreen-ClWh6m7n.js} +1 -1
  19. package/dist/assets/{DrawerScreen-DmHBy9eu.js → DrawerScreen-CTiS9I26.js} +1 -1
  20. package/dist/assets/{EntityDetailRoutes-HWcj1x9A.js → EntityDetailRoutes-B6ULNpPb.js} +1 -1
  21. package/dist/assets/{ExpenseAutomationRoutes-ChuGRcf0.js → ExpenseAutomationRoutes-DopkS3Tt.js} +1 -1
  22. package/dist/assets/{FeaturePreviewScreen-cTqlV8kw.js → FeaturePreviewScreen-DWE_gGH1.js} +1 -1
  23. package/dist/assets/{HubSpotOAuthCallbackScreen-DmpuRTYI.js → HubSpotOAuthCallbackScreen-CcyYFpte.js} +1 -1
  24. package/dist/assets/{InboxNotificationsProvider-C4Xl3N_I.js → InboxNotificationsProvider-DGY6o5Vb.js} +1 -1
  25. package/dist/assets/{InvoicingRoutes-Bz-v6tW_.js → InvoicingRoutes-DQDlW9Lb.js} +1 -1
  26. package/dist/assets/{MagicLinkRoutes-CXwLzoJI.js → MagicLinkRoutes-CeFzdzdQ.js} +1 -1
  27. package/dist/assets/{MagicLinkSignInScreen-ReI397gl.js → MagicLinkSignInScreen-Duur8xD5.js} +1 -1
  28. package/dist/assets/{MobileAppDrawer-ohji3E0D.js → MobileAppDrawer-DKGu0lT3.js} +1 -1
  29. package/dist/assets/NotFoundScreen-CjtnHhJo.js +1 -0
  30. package/dist/assets/{NotificationRoutes-BHt_WwzN.js → NotificationRoutes-2gq4kBeF.js} +1 -1
  31. package/dist/assets/{OAuthConsentScreen-EHK42t0Q.js → OAuthConsentScreen-DcWSKE9a.js} +1 -1
  32. package/dist/assets/{PandLWithForecastRoutes-D7BxHFnv.js → PandLWithForecastRoutes-C39KvHnh.js} +1 -1
  33. package/dist/assets/{PaymentLinkScreen-BmsWyReK.js → PaymentLinkScreen-BU4WB3iV.js} +1 -1
  34. package/dist/assets/{PeopleRoutes-DrtUVgkC.js → PeopleRoutes-BBh1-5QD.js} +1 -1
  35. package/dist/assets/{PerformanceRoutes-BO9mQmw6.js → PerformanceRoutes-iQchHbAg.js} +1 -1
  36. package/dist/assets/{Preview-C35Q0tY2.js → Preview-BhqYfLP1.js} +1 -1
  37. package/dist/assets/{QBOConnectionScreen-WC7OnIde.js → QBOConnectionScreen-Bwrvt4Wr.js} +1 -1
  38. package/dist/assets/{ReimbursementApprovalRoutes-BrdP7bZB.js → ReimbursementApprovalRoutes-DMYbzKql.js} +1 -1
  39. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-D98dGsOX.js → ReimbursementApprovalRuleDetailScreen-D73F6Uir.js} +1 -1
  40. package/dist/assets/{ReimbursementRoutes-CmCZ2i0G.js → ReimbursementRoutes-DGEn1YkJ.js} +1 -1
  41. package/dist/assets/{ReportsRoutes-DRNAFE3P.js → ReportsRoutes-bN4Yml9k.js} +1 -1
  42. package/dist/assets/{RewardsRoutes-VbgQUOuS.js → RewardsRoutes-DKCIvRS5.js} +1 -1
  43. package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-BVSBGxCW.js → ScheduleDetailsPrepaidExpensesScreen-X0qdbxgL.js} +1 -1
  44. package/dist/assets/{ScreenRoutes-CgwmPGok.js → ScreenRoutes-QEJ2cM0D.js} +2 -2
  45. package/dist/assets/{SettingsRoutes-HwrxDBoJ.js → SettingsRoutes-BCzvWJdP.js} +1 -1
  46. package/dist/assets/{SetupPagesScreen-Bp4MxoSU.js → SetupPagesScreen-DQajoHqZ.js} +1 -1
  47. package/dist/assets/{SignInScreen-DDAW-je3.js → SignInScreen-B0S_eTlz.js} +1 -1
  48. package/dist/assets/{SignOutScreen-xg2nffYd.js → SignOutScreen-7tzMUG9r.js} +1 -1
  49. package/dist/assets/{TaskListScreen-DRgpIAUu.js → TaskListScreen-BDVdSCyo.js} +1 -1
  50. package/dist/assets/{TaskRoutes-Dl3oCL6-.js → TaskRoutes-ypsBC7BH.js} +1 -1
  51. package/dist/assets/TransactionDetailRoutes-DvnHpdlK.js +1 -0
  52. package/dist/assets/{TransactionDetailScreen-D81kXW_9.js → TransactionDetailScreen-B7aagNFt.js} +1 -1
  53. package/dist/assets/{TransactionListRoutes-C39G2svX.js → TransactionListRoutes-Bd-_O83J.js} +1 -1
  54. package/dist/assets/{TreasuryRoutes-BDYnLaYC.js → TreasuryRoutes-DZ64pgse.js} +1 -1
  55. package/dist/assets/{VendorsRoutes-Bm8XylPn.js → VendorsRoutes-BxURmsXb.js} +1 -1
  56. package/dist/assets/{WiseConfirmationScreen-DeC-tUFE.js → WiseConfirmationScreen-CXOTG5K8.js} +1 -1
  57. package/dist/assets/{ZeniAccountRoutes-o27eIDR1.js → ZeniAccountRoutes-BeAfPFmk.js} +1 -1
  58. package/dist/assets/{ZeniAccountStatementScreen-BbkR8t34.js → ZeniAccountStatementScreen-Bkc530dM.js} +1 -1
  59. package/dist/assets/{accountMappingHelper-DsWulQNd.js → accountMappingHelper-Mpz5AA-4.js} +1 -1
  60. package/dist/assets/{analytics-DHz0W6ee.js → analytics-aFpUj4gs.js} +1 -1
  61. package/dist/assets/{analyticsHelper-CNF4X1L3.js → analyticsHelper-I16kGxOb.js} +1 -1
  62. package/dist/assets/{core-CBgcohKl.js → core-DWK-yy-f.js} +1 -1
  63. package/dist/assets/{decodeURIComponentSafe-B8wth54g.js → decodeURIComponentSafe-vftzpe4R.js} +1 -1
  64. package/dist/assets/{dnd-f7VjRKNv.js → dnd-BQcaJ1VA.js} +1 -1
  65. package/dist/assets/{empty-KDIggwFg.js → empty-L_7q6YD9.js} +1 -1
  66. package/dist/assets/{empty-CuWyrybz.js → empty-eSeT5naV.js} +1 -1
  67. package/dist/assets/{emptyVideoElement-xhkWkwAm.js → emptyVideoElement-B_2Bil8G.js} +1 -1
  68. package/dist/assets/{epic--AadAq3B.js → epic-BUfkaLvQ.js} +1 -1
  69. package/dist/assets/{expenseAutomationHelper-DyHogR1f.js → expenseAutomationHelper-DzkVKD6z.js} +1 -1
  70. package/dist/assets/{getLocaleForTenant-DJlcQPmW.js → getLocaleForTenant-gphiv_jN.js} +1 -1
  71. package/dist/assets/{index-Dxpayzr2.js → index-B6CDEkoa.js} +8 -8
  72. package/dist/assets/{index-BnFrZwPR.js → index-BAGTnDG5.js} +1 -1
  73. package/dist/assets/{index-Csj-fAR5.js → index-BbsabDnc.js} +2 -2
  74. package/dist/assets/{index-BryzBMy8.js → index-Bh2HxktJ.js} +1 -1
  75. package/dist/assets/{index-r4tjL442.js → index-C2042L2L.js} +1 -1
  76. package/dist/assets/{index-Df2ds6q_.js → index-CvWJGZtQ.js} +1 -1
  77. package/dist/assets/{index-COFn4Lui.js → index-DS_EsQOR.js} +1 -1
  78. package/dist/assets/{index-DAOzM7eN.js → index-DZ8wWaVs.js} +1 -1
  79. package/dist/assets/{lexical-C3EylrlT.js → lexical-D0wtImar.js} +1 -1
  80. package/dist/assets/{liveblocks-BuehHs6O.js → liveblocks-Oqbhz69O.js} +1 -1
  81. package/dist/assets/{lottie-Hll5C5f2.js → lottie-BLloBrVp.js} +1 -1
  82. package/dist/assets/{mui-Cb9eDKBr.js → mui-CXd5PBjh.js} +1 -1
  83. package/dist/assets/{pathToGoBack-Cd7lBADO.js → pathToGoBack-CMbLg1sX.js} +1 -1
  84. package/dist/assets/{pdf-CIjq4lBs.js → pdf-B7YVgnpS.js} +3 -3
  85. package/dist/assets/{pdf-lib-B6v5xA2O.js → pdf-lib-DzE-mOjV.js} +1 -1
  86. package/dist/assets/{plaid-7nNyVbzF.js → plaid--nk7zPNe.js} +1 -1
  87. package/dist/assets/{pusher-tkMH32uI.js → pusher--PypbzYW.js} +1 -1
  88. package/dist/assets/{react-DJZvEoZP.js → react-6UxkQDrW.js} +1 -1
  89. package/dist/assets/{react-DXo2_yFS.js → react-BChMyOid.js} +1 -1
  90. package/dist/assets/{react-Da-oM-bE.js → react-BT1dOlTR.js} +1 -1
  91. package/dist/assets/{react-CDY2cCdn.js → react-BuOjVnjn.js} +1 -1
  92. package/dist/assets/{react-MseeXV8X.js → react-DFLY8vee.js} +1 -1
  93. package/dist/assets/{react-CWGmSSnm.js → react-Sh3vsnSc.js} +1 -1
  94. package/dist/assets/{recharts-Byvkx40G.js → recharts-BTQwLLFS.js} +1 -1
  95. package/dist/assets/{routePaths-B-L_6QzQ.js → routePaths-C8QqLxFB.js} +1 -1
  96. package/dist/assets/{sentry-D8HyV7mS.js → sentry-DaOZuZWH.js} +1 -1
  97. package/dist/assets/{stripSplatSuffix-CFEl-9z0.js → stripSplatSuffix-AHDw7hZv.js} +1 -1
  98. package/dist/assets/{url-CIxROwIS.js → url-C25LBXwb.js} +1 -1
  99. package/dist/assets/{url-CRbSh4Tu.js → url-DlysUiEV.js} +1 -1
  100. package/dist/assets/{useActualMatchingMatchDetail-Cum7P8RW.js → useActualMatchingMatchDetail-zhZcmvn_.js} +1 -1
  101. package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-DZa_r4n_.js → useAiCfoDashboardSuggestedQuestionsChips-Bqb_1s-5.js} +1 -1
  102. package/dist/assets/{useAskAiCfoHostNavButtonProps-D10pewSQ.js → useAskAiCfoHostNavButtonProps-BSGTY8mB.js} +1 -1
  103. package/dist/assets/{useChargeCardPusherEvents-IS3z6PSf.js → useChargeCardPusherEvents-DoaTdQfx.js} +1 -1
  104. package/dist/assets/{useDeviceId-BI6f3BPa.js → useDeviceId-DqbeMLtN.js} +1 -1
  105. package/dist/assets/{useEmailConnectResultRefresh-Ct07z7Cx.js → useEmailConnectResultRefresh-CxfuikLi.js} +1 -1
  106. package/dist/assets/{useInitialThreadRequest-eERa3iZO.js → useInitialThreadRequest-zQQSgVed.js} +1 -1
  107. package/dist/assets/{useTaskManagerAccess-BNjTqV_h.js → useTaskManagerAccess-BrYDFvXq.js} +1 -1
  108. package/dist/assets/{useTaskManagerPusherEvents-dnN4yDqv.js → useTaskManagerPusherEvents-BYlEPB1C.js} +1 -1
  109. package/dist/assets/{utils-Co2o080j.js → utils-wj3imWq2.js} +1 -1
  110. package/dist/assets/{withTransactionSidePanel-BcR5QH3v.js → withTransactionSidePanel-CwmhFH4y.js} +1 -1
  111. package/dist/assets/{zeni-epic-state-CiYCRFt8.js → zeni-epic-state-BHC2ac1c.js} +3 -3
  112. package/dist/index.html +1 -1
  113. package/package.json +1 -1
  114. package/dist/assets/AddressRoutes-D-ATzT1Q.js +0 -1
  115. package/dist/assets/CustomerOnboardingAuthScreen-3PIXm9Gc.js +0 -1
  116. package/dist/assets/NotFoundScreen-BtojPFV3.js +0 -1
  117. package/dist/assets/TransactionDetailRoutes-BmDSwmsg.js +0 -1
@@ -1 +1 @@
1
- import{j as m}from"./liveblocks-BuehHs6O.js";import{a as g}from"./sentry-D8HyV7mS.js";import{h as w,u as k,g as x,i as T,j as O,l as E}from"./core-CBgcohKl.js";import{z as D,bt as F,a9 as P,k as V,V as j,q as C,bu as L,af as A,aH as U,p as B}from"./index-Dxpayzr2.js";import{fF as h,gI as M,BE as _,gD as z,c8 as R,Yh as Y,bn as G,uX as H,uL as q,mz as X,o8 as S,Yi as Z,bE as $,cE as N,oj as J,ot as K}from"./zeni-epic-state-CiYCRFt8.js";import"./mui-Cb9eDKBr.js";import{d as Q}from"./routePaths-B-L_6QzQ.js";import{M as W}from"./MobileAppDrawer-ohji3E0D.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new a.Error().stack;n&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[n]="c040309f-0673-4771-af4e-a61af5c5187f",a._sentryDebugIdIdentifier="sentry-dbid-c040309f-0673-4771-af4e-a61af5c5187f")}catch{}})();const ee=E((function(a){const n=z(a),i=D.getSignedInUser(),p=h(a),c=p.tenantId,l={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:c??""},f=R(p?.userRole??[])&&n.localData.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",e=Y(a.companyConfigState),t=a.countryListState?.byCountryListCode?.nationalityCountryList?.countries??[];return{isCompanyVerified:n.companyView?.company?.company?.companyBillPayInfo?.companyVerificationStatus?.code==="verified",companyPassportView:n,allIndustries:e.companyIndustries??[],allNationalityCountries:t,isDisabled:f,authParams:l,filesEndPoint:`${A.fileMicroServiceBaseUrl}`,isZeniUser:G(i)}}),(function(a,n){const{companyId:i,currentTenant:p,navigate:c,location:l}=n,{tenantEmailDomain:f}=p;return{onScheduleClick:e=>{let t=e.href;t.includes("http")||(t="https://".concat(t)),window.open(t,"_blank")},onSaveAll:()=>{a(K())},onAddressClick:e=>{const t=Q(f,e),o=B(l.state?.pathnameStackToGoBack,l.pathname);c(t,{state:{pathnameStackToGoBack:o}})},onResetClick:()=>{a(J({companyId:i}))},onBackClick:()=>{c("../")},onCompanyDetailsChanged:e=>{const{companyInfo:t,incInfo:o,taxDetails:r,zeniFinanceTeam:d}=e,{website:u}=t,{meetingLink:y}=d,{incDate:s}=o,{taxesFiledYears:b}=r,v={companyInfo:{...t,website:u!=""&&u!=null?N(u):void 0,meetingLink:y!=""&&y!=null?N(y):void 0,industry:t.industry.selectedOption,companyIndustryType:t.companyIndustryType?.selectedOption??void 0,companySubIndustry:t.companySubIndustry?.selectedOption??void 0,businessModel:t.businessModel.selectedOption??"",companySourceOfFunds:t.companySourceOfFunds?.selectedOption,companySourceOfFundsDescription:t.companySourceOfFundsDescription??void 0,countriesOfOperations:t.countriesOfOperations?.selectedOptions?.map((I=>I.length===2?I:U(I)))??[],transactionVolume:t.transactionVolume?.selectedOption??void 0,transactionVolumeDescription:t.transactionVolumeDescription??void 0,regulatedStatus:t.regulatedStatus??void 0,regulatedStatusDescription:t.regulatedStatusDescription??void 0,usNexus:t.usNexus??void 0,usNexusTypes:t.usNexusTypes?.selectedOptions??[],purposeOfAccount:t.purposeOfAccount?.selectedOption??void 0,purposeOfAccountDescription:t.purposeOfAccountDescription??void 0},incInfo:{typeOfInc:o.typeOfInc.selectedOption??"",stateOfInc:o.stateOfInc.selectedOption??"",incDate:s!=null?$(s?.toString()):s,fileId:o.fileIds[0]},taxDetails:{taxIdOrEIN:r.taxIdOrEIN,sicCode:r.sicCode,naicsCode:r.naicsCode,dunsNumber:r.dunsNumber,taxesFiledYears:b.selectedOptions.map((I=>parseInt(I))),fileId:r.fileIds[0]}};a(S({companyDetails:v}))},onPrimaryContactDetailsUpdated:e=>{a(S({primaryContact:{userId:e.userId,email:e.email.trim(),firstName:e.name.firstName,lastName:e.name.lastName}}))},onNewCompanyOfficerAdded:e=>{a(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=>{a(Z(e))},onCompanyOfficerUpdated:e=>{a(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=>{a(X({files:e}))},onDeleteFile:e=>{a(q(e))},onEditFileName:(e,t)=>{a(H(e,t.split(".")[0]))}}}))(L);function de(){const a=w(),n=k(),i=x(),{tenantEmailDomain:p}=T(),[c,l]=g.useState(!1),[f,e]=g.useState(!1),t=O((s=>s.companyViewState.passportView.fetchState)),o=O((s=>s.companyConfigState.fetchState)),r=O((s=>h(s))),d=r.companyId??D.getSignedInUserTenant(p)?.companyId;if(D.getSignedInUser()==null)throw Error("Can't access company details page without signing in...");g.useEffect((()=>{c||t!=="Not-Started"||d==null||(l(!0),n(M(d)))}),[c,t,d,n]),g.useEffect((()=>{o==="Not-Started"&&n(_())}),[o,n]);const u=s=>{e(s)},y=t==="Not-Started"||t==="In-Progress"||o==="Not-Started"||o==="In-Progress";return d!=null&&t==="Error"?m.jsx(F,{onGoHome:()=>a("../",{replace:!0}),onReload:()=>window.location.reload()}):m.jsxs(m.Fragment,{children:[m.jsx(P,{analytics:V,onLoad:s=>s.trackPageLoaded(j.Event.companyPassport,C(i)?"Settings":"Company Passport")}),C(i)?m.jsx(W,{isAppContentDrawerOpen:f,handleDrawerToggle:u}):null,m.jsx(ee,{companyId:d,navigate:a,location:i,isLoading:y,currentTenant:r,isSettings:C(i),onClickMenuIcon:()=>{u(!0)}})]})}export{de as C};
1
+ import{j as m}from"./liveblocks-Oqbhz69O.js";import{a as g}from"./sentry-DaOZuZWH.js";import{h as w,u as k,g as x,i as T,j as O,l as E}from"./core-DWK-yy-f.js";import{z as D,bt as F,a9 as P,k as V,V as j,q as C,bu as L,af as A,aH as U,p as B}from"./index-B6CDEkoa.js";import{fF as h,gI as M,BE as _,gD as z,c8 as R,Yh as Y,bn as G,uX as H,uL as q,mz as X,o8 as S,Yi as Z,bE as $,cE as N,oj as J,ot as K}from"./zeni-epic-state-BHC2ac1c.js";import"./mui-CXd5PBjh.js";import{d as Q}from"./routePaths-C8QqLxFB.js";import{M as W}from"./MobileAppDrawer-DKGu0lT3.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new a.Error().stack;n&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[n]="c040309f-0673-4771-af4e-a61af5c5187f",a._sentryDebugIdIdentifier="sentry-dbid-c040309f-0673-4771-af4e-a61af5c5187f")}catch{}})();const ee=E((function(a){const n=z(a),i=D.getSignedInUser(),p=h(a),c=p.tenantId,l={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:c??""},f=R(p?.userRole??[])&&n.localData.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",e=Y(a.companyConfigState),t=a.countryListState?.byCountryListCode?.nationalityCountryList?.countries??[];return{isCompanyVerified:n.companyView?.company?.company?.companyBillPayInfo?.companyVerificationStatus?.code==="verified",companyPassportView:n,allIndustries:e.companyIndustries??[],allNationalityCountries:t,isDisabled:f,authParams:l,filesEndPoint:`${A.fileMicroServiceBaseUrl}`,isZeniUser:G(i)}}),(function(a,n){const{companyId:i,currentTenant:p,navigate:c,location:l}=n,{tenantEmailDomain:f}=p;return{onScheduleClick:e=>{let t=e.href;t.includes("http")||(t="https://".concat(t)),window.open(t,"_blank")},onSaveAll:()=>{a(K())},onAddressClick:e=>{const t=Q(f,e),o=B(l.state?.pathnameStackToGoBack,l.pathname);c(t,{state:{pathnameStackToGoBack:o}})},onResetClick:()=>{a(J({companyId:i}))},onBackClick:()=>{c("../")},onCompanyDetailsChanged:e=>{const{companyInfo:t,incInfo:o,taxDetails:r,zeniFinanceTeam:d}=e,{website:u}=t,{meetingLink:y}=d,{incDate:s}=o,{taxesFiledYears:b}=r,v={companyInfo:{...t,website:u!=""&&u!=null?N(u):void 0,meetingLink:y!=""&&y!=null?N(y):void 0,industry:t.industry.selectedOption,companyIndustryType:t.companyIndustryType?.selectedOption??void 0,companySubIndustry:t.companySubIndustry?.selectedOption??void 0,businessModel:t.businessModel.selectedOption??"",companySourceOfFunds:t.companySourceOfFunds?.selectedOption,companySourceOfFundsDescription:t.companySourceOfFundsDescription??void 0,countriesOfOperations:t.countriesOfOperations?.selectedOptions?.map((I=>I.length===2?I:U(I)))??[],transactionVolume:t.transactionVolume?.selectedOption??void 0,transactionVolumeDescription:t.transactionVolumeDescription??void 0,regulatedStatus:t.regulatedStatus??void 0,regulatedStatusDescription:t.regulatedStatusDescription??void 0,usNexus:t.usNexus??void 0,usNexusTypes:t.usNexusTypes?.selectedOptions??[],purposeOfAccount:t.purposeOfAccount?.selectedOption??void 0,purposeOfAccountDescription:t.purposeOfAccountDescription??void 0},incInfo:{typeOfInc:o.typeOfInc.selectedOption??"",stateOfInc:o.stateOfInc.selectedOption??"",incDate:s!=null?$(s?.toString()):s,fileId:o.fileIds[0]},taxDetails:{taxIdOrEIN:r.taxIdOrEIN,sicCode:r.sicCode,naicsCode:r.naicsCode,dunsNumber:r.dunsNumber,taxesFiledYears:b.selectedOptions.map((I=>parseInt(I))),fileId:r.fileIds[0]}};a(S({companyDetails:v}))},onPrimaryContactDetailsUpdated:e=>{a(S({primaryContact:{userId:e.userId,email:e.email.trim(),firstName:e.name.firstName,lastName:e.name.lastName}}))},onNewCompanyOfficerAdded:e=>{a(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=>{a(Z(e))},onCompanyOfficerUpdated:e=>{a(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=>{a(X({files:e}))},onDeleteFile:e=>{a(q(e))},onEditFileName:(e,t)=>{a(H(e,t.split(".")[0]))}}}))(L);function de(){const a=w(),n=k(),i=x(),{tenantEmailDomain:p}=T(),[c,l]=g.useState(!1),[f,e]=g.useState(!1),t=O((s=>s.companyViewState.passportView.fetchState)),o=O((s=>s.companyConfigState.fetchState)),r=O((s=>h(s))),d=r.companyId??D.getSignedInUserTenant(p)?.companyId;if(D.getSignedInUser()==null)throw Error("Can't access company details page without signing in...");g.useEffect((()=>{c||t!=="Not-Started"||d==null||(l(!0),n(M(d)))}),[c,t,d,n]),g.useEffect((()=>{o==="Not-Started"&&n(_())}),[o,n]);const u=s=>{e(s)},y=t==="Not-Started"||t==="In-Progress"||o==="Not-Started"||o==="In-Progress";return d!=null&&t==="Error"?m.jsx(F,{onGoHome:()=>a("../",{replace:!0}),onReload:()=>window.location.reload()}):m.jsxs(m.Fragment,{children:[m.jsx(P,{analytics:V,onLoad:s=>s.trackPageLoaded(j.Event.companyPassport,C(i)?"Settings":"Company Passport")}),C(i)?m.jsx(W,{isAppContentDrawerOpen:f,handleDrawerToggle:u}):null,m.jsx(ee,{companyId:d,navigate:a,location:i,isLoading:y,currentTenant:r,isSettings:C(i),onClickMenuIcon:()=>{u(!0)}})]})}export{de as C};
@@ -1,4 +1,4 @@
1
- import{j as I}from"./liveblocks-BuehHs6O.js";import{a as o}from"./sentry-D8HyV7mS.js";import{u as H,h as P,g as R,j as C,N as w}from"./core-CBgcohKl.js";import{TX as q,fF as z,gl as G,pS as M,gM as A,gk as Q,gi as V,Ul as X,gh as O}from"./zeni-epic-state-CiYCRFt8.js";import{u as B,z as E,L as D,G as J,H as K}from"./index-Dxpayzr2.js";import{n as W}from"./mui-Cb9eDKBr.js";import{P as b,a as _}from"./AccountMappingScreen-CG8HjcPf.js";import{t as Y}from"./getLocaleForTenant-DJlcQPmW.js";import{g as Z,Q as ee}from"./QBOConnectionScreen-WC7OnIde.js";import"./recharts-Byvkx40G.js";import"./analytics-DHz0W6ee.js";import"./plaid-7nNyVbzF.js";import"./dnd-f7VjRKNv.js";import"./stripe-cKAAJElX.js";import"./lottie-Hll5C5f2.js";import"./lexical-C3EylrlT.js";import"./pdf-CIjq4lBs.js";import"./utils-Co2o080j.js";import"./MobileAppDrawer-ohji3E0D.js";import"./InboxNotificationsProvider-C4Xl3N_I.js";import"./useTaskManagerAccess-BNjTqV_h.js";import"./accountMappingHelper-DsWulQNd.js";import"./empty-CuWyrybz.js";import"./pdf-lib-B6v5xA2O.js";import"./index-COFn4Lui.js";import"./url-CRbSh4Tu.js";import"./index-Df2ds6q_.js";import"./decodeURIComponentSafe-B8wth54g.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]="b647cbd5-d06d-49e2-92c1-b25bfe928448",t._sentryDebugIdIdentifier="sentry-dbid-b647cbd5-d06d-49e2-92c1-b25bfe928448")}catch{}})();const te=W.div`
1
+ import{j as I}from"./liveblocks-Oqbhz69O.js";import{a as o}from"./sentry-DaOZuZWH.js";import{u as H,h as P,g as R,j as C,N as w}from"./core-DWK-yy-f.js";import{TX as q,fF as z,gl as G,pS as M,gM as A,gk as Q,gi as V,Ul as X,gh as O}from"./zeni-epic-state-BHC2ac1c.js";import{u as B,z as E,L as D,G as J,H as K}from"./index-B6CDEkoa.js";import{n as W}from"./mui-CXd5PBjh.js";import{P as b,a as _}from"./AccountMappingScreen-B0Up80xG.js";import{t as Y}from"./getLocaleForTenant-gphiv_jN.js";import{g as Z,Q as ee}from"./QBOConnectionScreen-Bwrvt4Wr.js";import"./recharts-BTQwLLFS.js";import"./analytics-aFpUj4gs.js";import"./plaid--nk7zPNe.js";import"./dnd-BQcaJ1VA.js";import"./stripe-cKAAJElX.js";import"./lottie-BLloBrVp.js";import"./lexical-D0wtImar.js";import"./pdf-B7YVgnpS.js";import"./utils-wj3imWq2.js";import"./MobileAppDrawer-DKGu0lT3.js";import"./InboxNotificationsProvider-DGY6o5Vb.js";import"./useTaskManagerAccess-BrYDFvXq.js";import"./accountMappingHelper-Mpz5AA-4.js";import"./empty-eSeT5naV.js";import"./pdf-lib-DzE-mOjV.js";import"./index-DS_EsQOR.js";import"./url-DlysUiEV.js";import"./index-CvWJGZtQ.js";import"./decodeURIComponentSafe-vftzpe4R.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]="b647cbd5-d06d-49e2-92c1-b25bfe928448",t._sentryDebugIdIdentifier="sentry-dbid-b647cbd5-d06d-49e2-92c1-b25bfe928448")}catch{}})();const te=W.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-Oqbhz69O.js";import{z as m}from"./index-B6CDEkoa.js";import{g as n}from"./QBOConnectionScreen-Bwrvt4Wr.js";import"./sentry-DaOZuZWH.js";import{g as p,N as a}from"./core-DWK-yy-f.js";import"./zeni-epic-state-BHC2ac1c.js";import"./recharts-BTQwLLFS.js";import"./mui-CXd5PBjh.js";import"./analytics-aFpUj4gs.js";import"./plaid--nk7zPNe.js";import"./dnd-BQcaJ1VA.js";import"./stripe-cKAAJElX.js";import"./lottie-BLloBrVp.js";import"./lexical-D0wtImar.js";import"./pdf-B7YVgnpS.js";import"./utils-wj3imWq2.js";import"./empty-eSeT5naV.js";import"./pdf-lib-DzE-mOjV.js";import"./index-DS_EsQOR.js";import"./url-DlysUiEV.js";import"./index-CvWJGZtQ.js";import"./decodeURIComponentSafe-vftzpe4R.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-BuehHs6O.js";import{t as Tt,A as $e}from"./AddressScreen-DiUUtXor.js";import wt from"./NotFoundScreen-BtojPFV3.js";import{a as d,t as Me}from"./sentry-D8HyV7mS.js";import{h as _e,g as Ee,u as se,i as xe,j as T,N as Q,q as At,l as it,n as Pt,o as H}from"./core-CBgcohKl.js";import{fF as Y,d_ as Te,dZ as we,bq as Dt,Uc as jt,bR as Bt,pQ as Ft,Bo as Vt,Br as Ut,Vz as Rt,VA as Lt,lu as Oe,lx as ct,UP as Nt,b$ as Gt,c8 as fe,BS as Ae,BD as $t,VB as me,BT as dt,Sm as Mt,mH as ut,di as lt,VC as Qt,VD as Kt,uE as zt,UC as Ce,hV as qt,UB as be,hS as Ht,Gh as Jt,uI as Zt,hK as Wt,hN as Qe,VE as pt,VF as Xt,M7 as Yt,VG as en,Mb as tn,Bu as nn,VH as an,VI as on,ls as sn,lv as rn,C3 as cn,BF as mt,BR as dn,bE as Ke,cE as un,C2 as ze,uX as ln,uL as pn,mz as mn,gG as gn,gF as fn,gE as yn,VJ as hn,Bx as Cn,C4 as bn,C7 as Sn,Ca as In,Cg as kn,dj as On}from"./zeni-epic-state-CiYCRFt8.js";import{z,o as Pe,S as W,Q as vn,p as q,a9 as re,k as g,aF as _n,aj as gt,a2 as En,O as ft,K as yt,j as X,_ as ge,V as ve,aG as xn,H as qe,v as He,af as Tn,aH as Je,aI as wn,aJ as An}from"./index-Dxpayzr2.js";import{n as De}from"./mui-Cb9eDKBr.js";import{g as Pn,h as Dn,q as ie}from"./QBOConnectionScreen-WC7OnIde.js";import{u as jn,a as Bn}from"./useEmailConnectResultRefresh-Ct07z7Cx.js";import{u as Fn}from"./useChargeCardPusherEvents-IS3z6PSf.js";import"./recharts-Byvkx40G.js";import"./analytics-DHz0W6ee.js";import"./plaid-7nNyVbzF.js";import"./dnd-f7VjRKNv.js";import"./stripe-cKAAJElX.js";import"./lottie-Hll5C5f2.js";import"./lexical-C3EylrlT.js";import"./pdf-CIjq4lBs.js";import"./utils-Co2o080j.js";import"./empty-CuWyrybz.js";import"./pdf-lib-B6v5xA2O.js";import"./index-COFn4Lui.js";import"./url-CRbSh4Tu.js";import"./index-Df2ds6q_.js";import"./decodeURIComponentSafe-B8wth54g.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]="09b704f6-a5a7-48b8-a0a7-e1cf9cff639c",e._sentryDebugIdIdentifier="sentry-dbid-09b704f6-a5a7-48b8-a0a7-e1cf9cff639c")}catch{}})();const Ze=e=>{switch(e){case"Complete":return"yes";case"Pending Review":case"Incomplete":return"partially";default:return"no"}},Vn=()=>{const e=_e(),l=Ee(),i=se(),[a,p]=d.useState(!1),[u,c]=d.useState(!1),{tenantEmailDomain:v}=xe(),t=z.getSignedInUser(),{useFeatureGate:n}=Pe(),{isFeatureEnabled:C}=n(W.isApAgingFeatureEnabled),{isFeatureEnabled:o}=n(W.isArAgingFeatureEnabled),{isFeatureEnabled:A}=n(W.isReferralFeatureEnabled),{isFeatureEnabled:w}=n(W.isDebitCardFeatureEnabled),k=vn(),O=T((S=>Y(S))),P=T((S=>S.onboardingCustomerViewState.fetchState)),_=O.excludedResources,F=O.companyId??z.getSignedInUserTenant(v)?.companyId;if(t==null)throw Error("Can't access onboarding flow without signing in...");const m=Te(w,O),b=we(O),D=[],U=_?.resources?.find((S=>S.resource==="/reports/top_expenses"))==null,h=_?.resources?.find((S=>S.resource==="/reports/task_card"))==null,r=O?.userRole!=null&&Dt(O?.userRole),E=_?.resources?.find((S=>S.resource==="/bills"))==null&&!r,x=_?.resources?.find((S=>S.resource==="/reimbursements"))==null;U===!1&&D.push("top_expenses"),h===!1&&D.push("task_card"),E===!1&&D.push("bill_pay_card","bill_pay_promo_card"),x===!1&&D.push("reimbursement_card","reimbursement_promo_card"),D.push("zeni_accounts_promo_card","treasury_promo_card"),A===!1&&D.push("rewards_card");const f=T((S=>{const V=[];C===!1&&V.push("accounts_payable_aging"),o===!1&&V.push("accounts_receivable_aging"),V.push("zeni_accounts_promo_card","treasury_promo_card"),A===!1&&V.push("rewards_card"),k===!1&&V.push("expense_automation_card");const J=jt(S,V);return Bt(J.reportsInOrder.map(($=>({fetchState:$.fetchState,error:$.error})))).fetchState}));d.useEffect((()=>{P!=="Completed"||a||m||b||(p(!0),i(Ft(t.userId,F,O.tenantId,!0,!1,D)))}),[a,P,m,b,t,O.tenantId,i]);const j=d.useRef(!1),N=d.useCallback((()=>{const S={pathnameStackToGoBack:q(l.state?.pathnameStackToGoBack,l.pathname),message:"activation"};e(m?"../../checking":b?"../../cards":"../../dashboard",{state:S})}),[e,l,m,b]),G=d.useCallback((()=>{j.current||(j.current=!0,N())}),[N]);if(d.useEffect((()=>{const S=setTimeout((()=>c(!0)),3e3);return()=>clearTimeout(S)}),[]),d.useEffect((()=>{const S=setTimeout(G,6e3);return()=>clearTimeout(S)}),[G]),d.useEffect((()=>{m||b||!u||f!=="Completed"&&f!=="Error"||G()}),[u,f,m,b,G]),P!=="Completed")return s.jsx(Q,{to:"../"});const L=O.company?.companyOnboardingInfo?.onboardingInfo,ee={timeSinceQuoteSign:L?.onboardingTimeSinceQuoteSigned??"",timeSinceQuoteSignInMinutes:L?.onboardingToQuoteSignMinutes??0,isKybDone:Ze(L?.businessVerified?.status),isKycDone:Ze(L?.identityVerified?.status),paymentType:"",paymentSource:"",qboConnectionSource:L?.accountingConnectionCreationMode??""};return s.jsxs(s.Fragment,{children:[s.jsx(re,{analytics:g,onLoad:S=>S.trackOnboardingDashboardActivation(ee)}),s.jsx(_n,{show:!0,onComplete:G})]})},Se=["reading_books","finance_graph","reconciliation","cfo_foundation"],Ie=["llm_fine_tuning","rag_knowledge_graph","personalized_context"],We=(e,l)=>{const i=new Map(e.map((a=>[a.key,a])));return l.map((a=>{return p=i.get(a)?.status,p==="starting"||p==="building"?p:"idle";var p}))},Xe=(e,l)=>{if(e.length===0)return!1;const i=new Map(e.map((a=>[a.key,a])));return l.every((a=>i.get(a)?.status==="ready"))},Ye=De.div`
1
+ import{j as s}from"./liveblocks-Oqbhz69O.js";import{t as Tt,A as $e}from"./AddressScreen-CPFzXmPm.js";import wt from"./NotFoundScreen-CjtnHhJo.js";import{a as d,t as Me}from"./sentry-DaOZuZWH.js";import{h as _e,g as Ee,u as se,i as xe,j as T,N as Q,q as At,l as it,n as Pt,o as H}from"./core-DWK-yy-f.js";import{fF as Y,d_ as Te,dZ as we,bq as Dt,Uc as jt,bR as Bt,pQ as Ft,Bo as Vt,Br as Ut,Vz as Rt,VA as Lt,lu as Oe,lx as ct,UP as Nt,b$ as Gt,c8 as fe,BS as Ae,BD as $t,VB as me,BT as dt,Sm as Mt,mH as ut,di as lt,VC as Qt,VD as Kt,uE as zt,UC as Ce,hV as qt,UB as be,hS as Ht,Gh as Jt,uI as Zt,hK as Wt,hN as Qe,VE as pt,VF as Xt,M7 as Yt,VG as en,Mb as tn,Bu as nn,VH as an,VI as on,ls as sn,lv as rn,C3 as cn,BF as mt,BR as dn,bE as Ke,cE as un,C2 as ze,uX as ln,uL as pn,mz as mn,gG as gn,gF as fn,gE as yn,VJ as hn,Bx as Cn,C4 as bn,C7 as Sn,Ca as In,Cg as kn,dj as On}from"./zeni-epic-state-BHC2ac1c.js";import{z,o as Pe,S as W,Q as vn,p as q,a9 as re,k as g,aF as _n,aj as gt,a2 as En,O as ft,K as yt,j as X,_ as ge,V as ve,aG as xn,H as qe,v as He,af as Tn,aH as Je,aI as wn,aJ as An}from"./index-B6CDEkoa.js";import{n as De}from"./mui-CXd5PBjh.js";import{g as Pn,h as Dn,q as ie}from"./QBOConnectionScreen-Bwrvt4Wr.js";import{u as jn,a as Bn}from"./useEmailConnectResultRefresh-CxfuikLi.js";import{u as Fn}from"./useChargeCardPusherEvents-DoaTdQfx.js";import"./recharts-BTQwLLFS.js";import"./analytics-aFpUj4gs.js";import"./plaid--nk7zPNe.js";import"./dnd-BQcaJ1VA.js";import"./stripe-cKAAJElX.js";import"./lottie-BLloBrVp.js";import"./lexical-D0wtImar.js";import"./pdf-B7YVgnpS.js";import"./utils-wj3imWq2.js";import"./empty-eSeT5naV.js";import"./pdf-lib-DzE-mOjV.js";import"./index-DS_EsQOR.js";import"./url-DlysUiEV.js";import"./index-CvWJGZtQ.js";import"./decodeURIComponentSafe-vftzpe4R.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]="09b704f6-a5a7-48b8-a0a7-e1cf9cff639c",e._sentryDebugIdIdentifier="sentry-dbid-09b704f6-a5a7-48b8-a0a7-e1cf9cff639c")}catch{}})();const Ze=e=>{switch(e){case"Complete":return"yes";case"Pending Review":case"Incomplete":return"partially";default:return"no"}},Vn=()=>{const e=_e(),l=Ee(),i=se(),[a,p]=d.useState(!1),[u,c]=d.useState(!1),{tenantEmailDomain:v}=xe(),t=z.getSignedInUser(),{useFeatureGate:n}=Pe(),{isFeatureEnabled:C}=n(W.isApAgingFeatureEnabled),{isFeatureEnabled:o}=n(W.isArAgingFeatureEnabled),{isFeatureEnabled:A}=n(W.isReferralFeatureEnabled),{isFeatureEnabled:w}=n(W.isDebitCardFeatureEnabled),k=vn(),O=T((S=>Y(S))),P=T((S=>S.onboardingCustomerViewState.fetchState)),_=O.excludedResources,F=O.companyId??z.getSignedInUserTenant(v)?.companyId;if(t==null)throw Error("Can't access onboarding flow without signing in...");const m=Te(w,O),b=we(O),D=[],U=_?.resources?.find((S=>S.resource==="/reports/top_expenses"))==null,h=_?.resources?.find((S=>S.resource==="/reports/task_card"))==null,r=O?.userRole!=null&&Dt(O?.userRole),E=_?.resources?.find((S=>S.resource==="/bills"))==null&&!r,x=_?.resources?.find((S=>S.resource==="/reimbursements"))==null;U===!1&&D.push("top_expenses"),h===!1&&D.push("task_card"),E===!1&&D.push("bill_pay_card","bill_pay_promo_card"),x===!1&&D.push("reimbursement_card","reimbursement_promo_card"),D.push("zeni_accounts_promo_card","treasury_promo_card"),A===!1&&D.push("rewards_card");const f=T((S=>{const V=[];C===!1&&V.push("accounts_payable_aging"),o===!1&&V.push("accounts_receivable_aging"),V.push("zeni_accounts_promo_card","treasury_promo_card"),A===!1&&V.push("rewards_card"),k===!1&&V.push("expense_automation_card");const J=jt(S,V);return Bt(J.reportsInOrder.map(($=>({fetchState:$.fetchState,error:$.error})))).fetchState}));d.useEffect((()=>{P!=="Completed"||a||m||b||(p(!0),i(Ft(t.userId,F,O.tenantId,!0,!1,D)))}),[a,P,m,b,t,O.tenantId,i]);const j=d.useRef(!1),N=d.useCallback((()=>{const S={pathnameStackToGoBack:q(l.state?.pathnameStackToGoBack,l.pathname),message:"activation"};e(m?"../../checking":b?"../../cards":"../../dashboard",{state:S})}),[e,l,m,b]),G=d.useCallback((()=>{j.current||(j.current=!0,N())}),[N]);if(d.useEffect((()=>{const S=setTimeout((()=>c(!0)),3e3);return()=>clearTimeout(S)}),[]),d.useEffect((()=>{const S=setTimeout(G,6e3);return()=>clearTimeout(S)}),[G]),d.useEffect((()=>{m||b||!u||f!=="Completed"&&f!=="Error"||G()}),[u,f,m,b,G]),P!=="Completed")return s.jsx(Q,{to:"../"});const L=O.company?.companyOnboardingInfo?.onboardingInfo,ee={timeSinceQuoteSign:L?.onboardingTimeSinceQuoteSigned??"",timeSinceQuoteSignInMinutes:L?.onboardingToQuoteSignMinutes??0,isKybDone:Ze(L?.businessVerified?.status),isKycDone:Ze(L?.identityVerified?.status),paymentType:"",paymentSource:"",qboConnectionSource:L?.accountingConnectionCreationMode??""};return s.jsxs(s.Fragment,{children:[s.jsx(re,{analytics:g,onLoad:S=>S.trackOnboardingDashboardActivation(ee)}),s.jsx(_n,{show:!0,onComplete:G})]})},Se=["reading_books","finance_graph","reconciliation","cfo_foundation"],Ie=["llm_fine_tuning","rag_knowledge_graph","personalized_context"],We=(e,l)=>{const i=new Map(e.map((a=>[a.key,a])));return l.map((a=>{return p=i.get(a)?.status,p==="starting"||p==="building"?p:"idle";var p}))},Xe=(e,l)=>{if(e.length===0)return!1;const i=new Map(e.map((a=>[a.key,a])));return l.every((a=>i.get(a)?.status==="ready"))},Ye=De.div`
2
2
  display: flex;
3
3
  height: 100vh;
4
4
  background-color: ${e=>e.theme.colors.grey4};
@@ -1,4 +1,4 @@
1
- import{j as d}from"./liveblocks-BuehHs6O.js";import{i as q,j as S,g as H,u as z,h as J,l as oe,k as oa,n as ft,o as O,N as In}from"./core-CBgcohKl.js";import{fF as L,VV as Je,bE as sa,br as Te,Xh as En,ka as Tn,Xi as Vt,Xj as xn,kd as gt,Xk as Ze,Xl as wn,ki as Dn,Xm as Gt,Xn as Pn,km as bt,Xo as We,Xp as Fn,Xq as On,Wd as jn,lo as Rn,Xr as Mn,bn as et,Xs as ra,WT as ue,bc as ia,lC as ca,ll as la,WV as me,WU as ne,fE as da,ga as Bn,gq as Ct,Xt as Un,Xu as Ln,Xv as ua,Xw as Oe,D$ as Ue,E0 as Le,Eo as xe,Ei as pe,E4 as Ye,Xx as Yn,b$ as Ve,Xy as Vn,Xz as Gn,XA as ma,XB as je,XC as Nn,ei as tt,Aa as pa,XD as Xn,XE as ha,XF as $n,XG as zn,XH as Kn,XI as _t,UR as kt,ua as we,l$ as De,Ey as yt,Ah as qn,Ao as Qn,XJ as Zn,XK as Wn,E1 as Nt,XL as Hn,Ad as Ie,A8 as fa,XM as be,XN as Xt,XO as Jn,XP as vt,UQ as At,Cl as ga,XQ as eo,XR as ba,XS as to,XT as ao,XU as no,XV as It,CA as oo,CH as so,XW as ro,XX as io,E3 as $t,XY as co,Cj as Ca,XZ as Ce,X_ as zt,X$ as lo,bq as Sa,ED as _a,Y0 as uo,Y1 as ka,Y2 as mo,Y3 as po,Y4 as ho,Y5 as Et,Ev as fo,Ex as go,Y6 as bo,Y7 as Co,E2 as Kt,Y8 as So,EB as ya,Y9 as Se,Ya as qt,Yb as _o,Yc as ko,Yd as va,lQ as Aa,pX as Ia,lV as Ea,pV as Ta,pU as xa,pT as wa,BI as yo,dc as vo,pQ as Ao,Uc as Io,q5 as Eo,Ye as To,Yf as xo,Yg as wo,b5 as Tt,p$ as Do,ic as Po,gI as Fo,p_ as Oo,le as jo,pY as Ro,pW as Mo,d_ as Bo,dZ as Uo}from"./zeni-epic-state-CiYCRFt8.js";import{z as Y,aw as se,p as j,k as x,G as Q,bc as Lo,at as Ge,a9 as Ne,bd as Da,V as X,be as Yo,bf as Pa,E as Vo,bg as Go,bh as No,a as Fa,a2 as Oa,d as ja,as as Xo,bi as $o,ap as zo,o as Pe,bj as Ra,x as ce,bk as Ma,bl as Ba,av as Ua,bm as Ko,aj as Xe,K as $e,S as V,bn as qo,X as Qo,bo as Zo,Q as Wo,j as Ho,a5 as Jo,ar as es,bp as ts,bq as as,br as ns,bs as Ee}from"./index-Dxpayzr2.js";import{n as xt}from"./mui-Cb9eDKBr.js";import{a as b}from"./sentry-D8HyV7mS.js";import{w as La}from"./withTransactionSidePanel-BcR5QH3v.js";import{c as Ya,t as Fe,f as he,b as wt,a as Dt,v as os}from"./routePaths-B-L_6QzQ.js";import{u as re}from"./useAskAiCfoHostNavButtonProps-D10pewSQ.js";import Be from"./NotFoundScreen-BtojPFV3.js";import{u as Pt}from"./useInitialThreadRequest-eERa3iZO.js";import{t as Va}from"./analyticsHelper-CNF4X1L3.js";import{C as ss}from"./CompanyPassportScreen-CKHgIqAh.js";import{u as rs}from"./useAiCfoDashboardSuggestedQuestionsChips-DZa_r4n_.js";import{F as is}from"./FeaturePreviewScreen-cTqlV8kw.js";import"./recharts-Byvkx40G.js";import"./analytics-DHz0W6ee.js";import"./plaid-7nNyVbzF.js";import"./dnd-f7VjRKNv.js";import"./stripe-cKAAJElX.js";import"./lottie-Hll5C5f2.js";import"./lexical-C3EylrlT.js";import"./pdf-CIjq4lBs.js";import"./utils-Co2o080j.js";import"./TransactionDetailScreen-D81kXW_9.js";import"./decodeURIComponentSafe-B8wth54g.js";import"./expenseAutomationHelper-DyHogR1f.js";import"./stripSplatSuffix-CFEl-9z0.js";import"./MobileAppDrawer-ohji3E0D.js";import"./InboxNotificationsProvider-C4Xl3N_I.js";import"./useTaskManagerAccess-BNjTqV_h.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]="503449d8-8de9-45ac-b135-3c7d46b6400e",e._sentryDebugIdIdentifier="sentry-dbid-503449d8-8de9-45ac-b135-3c7d46b6400e")}catch{}})();const cs=La((function({openTransactionPanel:e,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n}){const{vendorId:o,reportDate:r}=q(),s=Y.getSignedInUser(),i=S((E=>E.tenantState.currentTenantId)),l=S((E=>L(E))),{tenantEmailDomain:m}=q(),p=H(),h=l?.companyName??"",f={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:i??""},c=b.useMemo((()=>({authParams:f,companyName:h,downloadEndPoint:`${se}/agingDetailedReport`,timezone:Je()})),[]),u=b.useMemo((()=>r!=null?sa(r):Te()),[r]),C=z(),g=J(),k=S((E=>En(E,u,o))),I=b.useCallback((()=>{o!=null&&k.fetchState!=="In-Progress"&&k.fetchState!=="Completed"&&C(Tn(o,u))}),[u]),v=b.useCallback((()=>{g("../../",{relative:"path"})}),[]),_=b.useCallback(((E,P)=>{C(Vt({sortKey:E,sortOrder:P}))}),[]),T=b.useCallback((E=>{C(Vt({downloadState:E}))}),[]),B=b.useCallback((E=>{if(e)e(E.transactionId,E.transactionType);else if(m!=null){const P=Ya({id:E.transactionId,type:E.transactionType},m);g(P);const y=j(p.state?.pathnameStackToGoBack,p.pathname);g(P,{state:{pathnameStackToGoBack:y}})}}),[m,e]),D=b.useCallback((()=>{k.vendor!=null&&x.trackApAgingDetail("AP Aging",u.format(Q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),k.vendor.id,k.vendor.name)}),[k.vendor,u]);return b.useEffect((()=>{I()}),[]),b.useEffect((()=>{k.fetchState==="Completed"&&D()}),[D,k.fetchState]),d.jsx(Lo,{apAgingDetail:k,downloadParams:c,reportDate:u,analytics:x,onTransactionClick:B,onReload:I,onBackClick:v,onColumnSortConfigChanged:_,updateDownloadStateHandler:T,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n})})),ls=()=>{const e=z(),a=J(),t=S((_=>xn(_))),{isAiCfoAccessEnabled:n,onAskAiCfoClick:o}=re({mobileExploreReferrer:"AP Aging"});Ge({isDataReady:t.fetchState==="Completed"});const r=Y.getSignedInUser(),s=S((_=>_.tenantState.currentTenantId)),i=S((_=>L(_))),l=i?.companyName??"",m={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:s??""},p=b.useMemo((()=>({authParams:m,companyName:l,downloadEndPoint:`${se}/agingReport`,timezone:Je()})),[]),h=t.apAgingUIState.selectedDate??Te(),f=b.useCallback((()=>{t.fetchState!=="In-Progress"&&t.fetchState!=="Completed"&&e(gt(h))}),[]);b.useEffect((()=>{f()}),[]);const c=b.useCallback((()=>{a("../",{relative:"path"})}),[]),u=b.useCallback((_=>{e(Ze({searchString:_}))}),[]),C=b.useCallback(((_,T)=>{e(Ze({sortKey:T,sortOrder:_}))}),[]),g=b.useCallback((_=>{a(`./${_}/${h.format(Q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`)}),[h]),k=b.useCallback((_=>{e(Ze({downloadState:_}))}),[]),I=b.useCallback(((_,T)=>{}),[]),v=b.useCallback(((_,T)=>{e(Ze({selectedDate:_,agingDateSelectionType:T})),e(gt(_))}),[]);return d.jsxs(d.Fragment,{children:[t.fetchState==="Completed"?d.jsx(Ne,{analytics:x,onLoad:_=>_.trackPageLoaded(X.Event.agingReport,"AP Aging")}):null,d.jsx(Da,{uiState:t.apAgingUIState,report:t,downloadParams:p,analytics:x,onReloadReport:f,onBackClick:c,onSearchTextChange:u,onSortOrderChange:C,onEntityNameClick:g,updateDownloadStateHandler:k,onSelectedDateChanged:v,onNodeCollapseToggled:I,isAiCfoAccessEnabled:n,onAskAiCfoClick:o})]})},ds=La((function({openTransactionPanel:e,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n}){const{customerId:o,reportDate:r}=q(),s=Y.getSignedInUser(),i=S((D=>L(D))),{tenantEmailDomain:l}=q(),m=H(),p=i.companyName,h={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:i.tenantId},f=b.useMemo((()=>({authParams:h,companyName:p,downloadEndPoint:`${se}/agingDetailedReport`,timezone:Je()})),[]),c=b.useMemo((()=>r!=null?sa(r):Te()),[r]),u=z(),C=J(),g=S((D=>wn(D,c,o))),k=b.useCallback((()=>{o!=null&&g.fetchState!=="In-Progress"&&g.fetchState!=="Completed"&&u(Dn(o,c))}),[c]),I=b.useCallback((()=>{C("../../",{relative:"path"})}),[]),v=b.useCallback(((D,E)=>{u(Gt({sortKey:D,sortOrder:E}))}),[]),_=b.useCallback((D=>{u(Gt({downloadState:D}))}),[]),T=b.useCallback((D=>{if(e)e(D.transactionId,D.transactionType);else if(l!=null){const E=Ya({id:D.transactionId,type:D.transactionType},l);C(E);const P=j(m.state?.pathnameStackToGoBack,m.pathname);C(E,{state:{pathnameStackToGoBack:P}})}}),[l,e]),B=b.useCallback((()=>{g.customer!=null&&x.trackArAgingDetail("AR Aging",c.format(Q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),g.customer.id,g.customer.name)}),[g.customer,c]);return b.useEffect((()=>{k()}),[]),b.useEffect((()=>{g.fetchState==="Completed"&&B()}),[g.fetchState,B]),d.jsx(Yo,{arAgingDetail:g,downloadParams:f,reportDate:c,analytics:x,onTransactionClick:T,onReload:k,onBackClick:I,onColumnSortConfigChanged:v,updateDownloadStateHandler:_,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n})})),us=()=>{const e=z(),a=J(),t=S((v=>Pn(v))),{isAiCfoAccessEnabled:n,onAskAiCfoClick:o}=re({mobileExploreReferrer:"AR Aging"});Ge({isDataReady:t.fetchState==="Completed"});const r=Y.getSignedInUser(),s=S((v=>L(v))),i=s.companyName,l={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:s.tenantId},m=b.useMemo((()=>({authParams:l,companyName:i,downloadEndPoint:`${se}/agingReport`,timezone:Je()})),[]),p=t.arAgingUIState.selectedDate??Te(),h=b.useCallback((()=>{t.fetchState!=="In-Progress"&&t.fetchState!=="Completed"&&e(bt(p))}),[]);b.useEffect((()=>{h()}),[]);const f=b.useCallback((()=>{a("../",{relative:"path"})}),[]),c=b.useCallback((v=>{e(We({searchString:v}))}),[]),u=b.useCallback(((v,_)=>{e(We({sortKey:_,sortOrder:v}))}),[]),C=b.useCallback((v=>{a(`./${v}/${p.format(Q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`)}),[p]),g=b.useCallback((v=>{e(We({downloadState:v}))}),[]),k=b.useCallback(((v,_)=>{e(We({selectedDate:v,agingDateSelectionType:_})),e(bt(v))}),[]),I=b.useCallback(((v,_)=>{e(Fn({nodeId:v,isCollapsed:_}))}),[]);return d.jsxs(d.Fragment,{children:[t.fetchState==="Completed"?d.jsx(Ne,{analytics:x,onLoad:v=>v.trackPageLoaded(X.Event.agingReport,"AR Aging")}):null,d.jsx(Da,{uiState:t.arAgingUIState,report:t,downloadParams:m,analytics:x,onReloadReport:h,onBackClick:f,onSearchTextChange:c,onSortOrderChange:u,onEntityNameClick:C,updateDownloadStateHandler:g,onSelectedDateChanged:k,onNodeCollapseToggled:I,isAiCfoAccessEnabled:n,onAskAiCfoClick:o})]})},Ga=(e,a)=>({key:a,title:e.accountName,amount:e.balance?.available,logoUri:e.logo?.toString(),source:e});function Na(e,a){const t=jn(a.firstMonthOfFY);return{onItemClick:(n,o)=>{const r=o.accountName===""?o.accountDescription:o.accountName,s=Fe(a.tenantEmailDomain,o.accountId,o.accountType,r,"quarter",t,!1),i=j(a.location.state?.pathnameStackToGoBack,a.location.pathname);a.navigate(s,{state:{pathnameStackToGoBack:i,referrer:a.referrerType}})},onSetAccountsStatementDate:(n,o)=>{e(Rn(n,o))}}}const ms=oe((function(e){const a=On(e).accountsInOrder.map(((t,n)=>Ga(t,n)));return{sectionTitle:Q.getLocalizedStrings().balanceCard.cashBalanceSectionTitle,transactionArray:a,fetchState:e.cashBalanceState.fetchState,analytics:x}}),Na)(Pa),ps=oe((function(e){const a=Mn(e).accountsInOrder.map(((o,r)=>Ga(o,r))),t=Y.getSignedInUser(),n=et(t);return{sectionTitle:Q.getLocalizedStrings().balanceCard.cardBalanceSectionTitle,transactionArray:a,isZeniUser:n,fetchState:e.cardBalanceState.fetchState,analytics:x}}),Na)(Pa);function hs(){const e=J(),a=H(),{tenantEmailDomain:t}=q(),n=S((o=>L(o).company?.companyInfo.firstMonthOfFY??1));return S((o=>o.cashBalanceState.fetchState))==="Error"?d.jsx(Be,{}):d.jsx(ms,{tenantEmailDomain:t,location:a,referrerType:"Cash Balance",navigate:e,firstMonthOfFY:n})}function fs(){const e=J(),a=H(),{tenantEmailDomain:t}=q(),n=S((o=>L(o).company?.companyInfo.firstMonthOfFY??1));return S((o=>o.cardBalanceState.fetchState))==="Error"?d.jsx(Be,{}):d.jsx(ps,{tenantEmailDomain:t,location:a,referrerType:"Card Balance",navigate:e,firstMonthOfFY:n})}const gs=xt.div`
1
+ import{j as d}from"./liveblocks-Oqbhz69O.js";import{i as q,j as S,g as H,u as z,h as J,l as oe,k as oa,n as ft,o as O,N as In}from"./core-DWK-yy-f.js";import{fF as L,VV as Je,bE as sa,br as Te,Xh as En,ka as Tn,Xi as Vt,Xj as xn,kd as gt,Xk as Ze,Xl as wn,ki as Dn,Xm as Gt,Xn as Pn,km as bt,Xo as We,Xp as Fn,Xq as On,Wd as jn,lo as Rn,Xr as Mn,bn as et,Xs as ra,WT as ue,bc as ia,lC as ca,ll as la,WV as me,WU as ne,fE as da,ga as Bn,gq as Ct,Xt as Un,Xu as Ln,Xv as ua,Xw as Oe,D$ as Ue,E0 as Le,Eo as xe,Ei as pe,E4 as Ye,Xx as Yn,b$ as Ve,Xy as Vn,Xz as Gn,XA as ma,XB as je,XC as Nn,ei as tt,Aa as pa,XD as Xn,XE as ha,XF as $n,XG as zn,XH as Kn,XI as _t,UR as kt,ua as we,l$ as De,Ey as yt,Ah as qn,Ao as Qn,XJ as Zn,XK as Wn,E1 as Nt,XL as Hn,Ad as Ie,A8 as fa,XM as be,XN as Xt,XO as Jn,XP as vt,UQ as At,Cl as ga,XQ as eo,XR as ba,XS as to,XT as ao,XU as no,XV as It,CA as oo,CH as so,XW as ro,XX as io,E3 as $t,XY as co,Cj as Ca,XZ as Ce,X_ as zt,X$ as lo,bq as Sa,ED as _a,Y0 as uo,Y1 as ka,Y2 as mo,Y3 as po,Y4 as ho,Y5 as Et,Ev as fo,Ex as go,Y6 as bo,Y7 as Co,E2 as Kt,Y8 as So,EB as ya,Y9 as Se,Ya as qt,Yb as _o,Yc as ko,Yd as va,lQ as Aa,pX as Ia,lV as Ea,pV as Ta,pU as xa,pT as wa,BI as yo,dc as vo,pQ as Ao,Uc as Io,q5 as Eo,Ye as To,Yf as xo,Yg as wo,b5 as Tt,p$ as Do,ic as Po,gI as Fo,p_ as Oo,le as jo,pY as Ro,pW as Mo,d_ as Bo,dZ as Uo}from"./zeni-epic-state-BHC2ac1c.js";import{z as Y,aw as se,p as j,k as x,G as Q,bc as Lo,at as Ge,a9 as Ne,bd as Da,V as X,be as Yo,bf as Pa,E as Vo,bg as Go,bh as No,a as Fa,a2 as Oa,d as ja,as as Xo,bi as $o,ap as zo,o as Pe,bj as Ra,x as ce,bk as Ma,bl as Ba,av as Ua,bm as Ko,aj as Xe,K as $e,S as V,bn as qo,X as Qo,bo as Zo,Q as Wo,j as Ho,a5 as Jo,ar as es,bp as ts,bq as as,br as ns,bs as Ee}from"./index-B6CDEkoa.js";import{n as xt}from"./mui-CXd5PBjh.js";import{a as b}from"./sentry-DaOZuZWH.js";import{w as La}from"./withTransactionSidePanel-CwmhFH4y.js";import{c as Ya,t as Fe,f as he,b as wt,a as Dt,v as os}from"./routePaths-C8QqLxFB.js";import{u as re}from"./useAskAiCfoHostNavButtonProps-BSGTY8mB.js";import Be from"./NotFoundScreen-CjtnHhJo.js";import{u as Pt}from"./useInitialThreadRequest-zQQSgVed.js";import{t as Va}from"./analyticsHelper-I16kGxOb.js";import{C as ss}from"./CompanyPassportScreen-CQnk6tjR.js";import{u as rs}from"./useAiCfoDashboardSuggestedQuestionsChips-Bqb_1s-5.js";import{F as is}from"./FeaturePreviewScreen-DWE_gGH1.js";import"./recharts-BTQwLLFS.js";import"./analytics-aFpUj4gs.js";import"./plaid--nk7zPNe.js";import"./dnd-BQcaJ1VA.js";import"./stripe-cKAAJElX.js";import"./lottie-BLloBrVp.js";import"./lexical-D0wtImar.js";import"./pdf-B7YVgnpS.js";import"./utils-wj3imWq2.js";import"./TransactionDetailScreen-B7aagNFt.js";import"./decodeURIComponentSafe-vftzpe4R.js";import"./expenseAutomationHelper-DzkVKD6z.js";import"./stripSplatSuffix-AHDw7hZv.js";import"./MobileAppDrawer-DKGu0lT3.js";import"./InboxNotificationsProvider-DGY6o5Vb.js";import"./useTaskManagerAccess-BrYDFvXq.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]="503449d8-8de9-45ac-b135-3c7d46b6400e",e._sentryDebugIdIdentifier="sentry-dbid-503449d8-8de9-45ac-b135-3c7d46b6400e")}catch{}})();const cs=La((function({openTransactionPanel:e,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n}){const{vendorId:o,reportDate:r}=q(),s=Y.getSignedInUser(),i=S((E=>E.tenantState.currentTenantId)),l=S((E=>L(E))),{tenantEmailDomain:m}=q(),p=H(),h=l?.companyName??"",f={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:i??""},c=b.useMemo((()=>({authParams:f,companyName:h,downloadEndPoint:`${se}/agingDetailedReport`,timezone:Je()})),[]),u=b.useMemo((()=>r!=null?sa(r):Te()),[r]),C=z(),g=J(),k=S((E=>En(E,u,o))),I=b.useCallback((()=>{o!=null&&k.fetchState!=="In-Progress"&&k.fetchState!=="Completed"&&C(Tn(o,u))}),[u]),v=b.useCallback((()=>{g("../../",{relative:"path"})}),[]),_=b.useCallback(((E,P)=>{C(Vt({sortKey:E,sortOrder:P}))}),[]),T=b.useCallback((E=>{C(Vt({downloadState:E}))}),[]),B=b.useCallback((E=>{if(e)e(E.transactionId,E.transactionType);else if(m!=null){const P=Ya({id:E.transactionId,type:E.transactionType},m);g(P);const y=j(p.state?.pathnameStackToGoBack,p.pathname);g(P,{state:{pathnameStackToGoBack:y}})}}),[m,e]),D=b.useCallback((()=>{k.vendor!=null&&x.trackApAgingDetail("AP Aging",u.format(Q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),k.vendor.id,k.vendor.name)}),[k.vendor,u]);return b.useEffect((()=>{I()}),[]),b.useEffect((()=>{k.fetchState==="Completed"&&D()}),[D,k.fetchState]),d.jsx(Lo,{apAgingDetail:k,downloadParams:c,reportDate:u,analytics:x,onTransactionClick:B,onReload:I,onBackClick:v,onColumnSortConfigChanged:_,updateDownloadStateHandler:T,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n})})),ls=()=>{const e=z(),a=J(),t=S((_=>xn(_))),{isAiCfoAccessEnabled:n,onAskAiCfoClick:o}=re({mobileExploreReferrer:"AP Aging"});Ge({isDataReady:t.fetchState==="Completed"});const r=Y.getSignedInUser(),s=S((_=>_.tenantState.currentTenantId)),i=S((_=>L(_))),l=i?.companyName??"",m={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:s??""},p=b.useMemo((()=>({authParams:m,companyName:l,downloadEndPoint:`${se}/agingReport`,timezone:Je()})),[]),h=t.apAgingUIState.selectedDate??Te(),f=b.useCallback((()=>{t.fetchState!=="In-Progress"&&t.fetchState!=="Completed"&&e(gt(h))}),[]);b.useEffect((()=>{f()}),[]);const c=b.useCallback((()=>{a("../",{relative:"path"})}),[]),u=b.useCallback((_=>{e(Ze({searchString:_}))}),[]),C=b.useCallback(((_,T)=>{e(Ze({sortKey:T,sortOrder:_}))}),[]),g=b.useCallback((_=>{a(`./${_}/${h.format(Q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`)}),[h]),k=b.useCallback((_=>{e(Ze({downloadState:_}))}),[]),I=b.useCallback(((_,T)=>{}),[]),v=b.useCallback(((_,T)=>{e(Ze({selectedDate:_,agingDateSelectionType:T})),e(gt(_))}),[]);return d.jsxs(d.Fragment,{children:[t.fetchState==="Completed"?d.jsx(Ne,{analytics:x,onLoad:_=>_.trackPageLoaded(X.Event.agingReport,"AP Aging")}):null,d.jsx(Da,{uiState:t.apAgingUIState,report:t,downloadParams:p,analytics:x,onReloadReport:f,onBackClick:c,onSearchTextChange:u,onSortOrderChange:C,onEntityNameClick:g,updateDownloadStateHandler:k,onSelectedDateChanged:v,onNodeCollapseToggled:I,isAiCfoAccessEnabled:n,onAskAiCfoClick:o})]})},ds=La((function({openTransactionPanel:e,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n}){const{customerId:o,reportDate:r}=q(),s=Y.getSignedInUser(),i=S((D=>L(D))),{tenantEmailDomain:l}=q(),m=H(),p=i.companyName,h={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:i.tenantId},f=b.useMemo((()=>({authParams:h,companyName:p,downloadEndPoint:`${se}/agingDetailedReport`,timezone:Je()})),[]),c=b.useMemo((()=>r!=null?sa(r):Te()),[r]),u=z(),C=J(),g=S((D=>wn(D,c,o))),k=b.useCallback((()=>{o!=null&&g.fetchState!=="In-Progress"&&g.fetchState!=="Completed"&&u(Dn(o,c))}),[c]),I=b.useCallback((()=>{C("../../",{relative:"path"})}),[]),v=b.useCallback(((D,E)=>{u(Gt({sortKey:D,sortOrder:E}))}),[]),_=b.useCallback((D=>{u(Gt({downloadState:D}))}),[]),T=b.useCallback((D=>{if(e)e(D.transactionId,D.transactionType);else if(l!=null){const E=Ya({id:D.transactionId,type:D.transactionType},l);C(E);const P=j(m.state?.pathnameStackToGoBack,m.pathname);C(E,{state:{pathnameStackToGoBack:P}})}}),[l,e]),B=b.useCallback((()=>{g.customer!=null&&x.trackArAgingDetail("AR Aging",c.format(Q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),g.customer.id,g.customer.name)}),[g.customer,c]);return b.useEffect((()=>{k()}),[]),b.useEffect((()=>{g.fetchState==="Completed"&&B()}),[g.fetchState,B]),d.jsx(Yo,{arAgingDetail:g,downloadParams:f,reportDate:c,analytics:x,onTransactionClick:T,onReload:k,onBackClick:I,onColumnSortConfigChanged:v,updateDownloadStateHandler:_,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n})})),us=()=>{const e=z(),a=J(),t=S((v=>Pn(v))),{isAiCfoAccessEnabled:n,onAskAiCfoClick:o}=re({mobileExploreReferrer:"AR Aging"});Ge({isDataReady:t.fetchState==="Completed"});const r=Y.getSignedInUser(),s=S((v=>L(v))),i=s.companyName,l={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:s.tenantId},m=b.useMemo((()=>({authParams:l,companyName:i,downloadEndPoint:`${se}/agingReport`,timezone:Je()})),[]),p=t.arAgingUIState.selectedDate??Te(),h=b.useCallback((()=>{t.fetchState!=="In-Progress"&&t.fetchState!=="Completed"&&e(bt(p))}),[]);b.useEffect((()=>{h()}),[]);const f=b.useCallback((()=>{a("../",{relative:"path"})}),[]),c=b.useCallback((v=>{e(We({searchString:v}))}),[]),u=b.useCallback(((v,_)=>{e(We({sortKey:_,sortOrder:v}))}),[]),C=b.useCallback((v=>{a(`./${v}/${p.format(Q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`)}),[p]),g=b.useCallback((v=>{e(We({downloadState:v}))}),[]),k=b.useCallback(((v,_)=>{e(We({selectedDate:v,agingDateSelectionType:_})),e(bt(v))}),[]),I=b.useCallback(((v,_)=>{e(Fn({nodeId:v,isCollapsed:_}))}),[]);return d.jsxs(d.Fragment,{children:[t.fetchState==="Completed"?d.jsx(Ne,{analytics:x,onLoad:v=>v.trackPageLoaded(X.Event.agingReport,"AR Aging")}):null,d.jsx(Da,{uiState:t.arAgingUIState,report:t,downloadParams:m,analytics:x,onReloadReport:h,onBackClick:f,onSearchTextChange:c,onSortOrderChange:u,onEntityNameClick:C,updateDownloadStateHandler:g,onSelectedDateChanged:k,onNodeCollapseToggled:I,isAiCfoAccessEnabled:n,onAskAiCfoClick:o})]})},Ga=(e,a)=>({key:a,title:e.accountName,amount:e.balance?.available,logoUri:e.logo?.toString(),source:e});function Na(e,a){const t=jn(a.firstMonthOfFY);return{onItemClick:(n,o)=>{const r=o.accountName===""?o.accountDescription:o.accountName,s=Fe(a.tenantEmailDomain,o.accountId,o.accountType,r,"quarter",t,!1),i=j(a.location.state?.pathnameStackToGoBack,a.location.pathname);a.navigate(s,{state:{pathnameStackToGoBack:i,referrer:a.referrerType}})},onSetAccountsStatementDate:(n,o)=>{e(Rn(n,o))}}}const ms=oe((function(e){const a=On(e).accountsInOrder.map(((t,n)=>Ga(t,n)));return{sectionTitle:Q.getLocalizedStrings().balanceCard.cashBalanceSectionTitle,transactionArray:a,fetchState:e.cashBalanceState.fetchState,analytics:x}}),Na)(Pa),ps=oe((function(e){const a=Mn(e).accountsInOrder.map(((o,r)=>Ga(o,r))),t=Y.getSignedInUser(),n=et(t);return{sectionTitle:Q.getLocalizedStrings().balanceCard.cardBalanceSectionTitle,transactionArray:a,isZeniUser:n,fetchState:e.cardBalanceState.fetchState,analytics:x}}),Na)(Pa);function hs(){const e=J(),a=H(),{tenantEmailDomain:t}=q(),n=S((o=>L(o).company?.companyInfo.firstMonthOfFY??1));return S((o=>o.cashBalanceState.fetchState))==="Error"?d.jsx(Be,{}):d.jsx(ms,{tenantEmailDomain:t,location:a,referrerType:"Cash Balance",navigate:e,firstMonthOfFY:n})}function fs(){const e=J(),a=H(),{tenantEmailDomain:t}=q(),n=S((o=>L(o).company?.companyInfo.firstMonthOfFY??1));return S((o=>o.cardBalanceState.fetchState))==="Error"?d.jsx(Be,{}):d.jsx(ps,{tenantEmailDomain:t,location:a,referrerType:"Card Balance",navigate:e,firstMonthOfFY:n})}const gs=xt.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-BuehHs6O.js";import{a as u}from"./sentry-D8HyV7mS.js";import{u as y,j as b,l as w,g as A,N}from"./core-CBgcohKl.js";import{TX as U,fF as _,gl as k,TY as L,pS as R,TZ as z}from"./zeni-epic-state-CiYCRFt8.js";import{u as j,z as f,L as C,t as I,G as O,b as $}from"./index-Dxpayzr2.js";import"./mui-Cb9eDKBr.js";import{t as P}from"./getLocaleForTenant-DJlcQPmW.js";import"./recharts-Byvkx40G.js";import"./analytics-DHz0W6ee.js";import"./plaid-7nNyVbzF.js";import"./dnd-f7VjRKNv.js";import"./stripe-cKAAJElX.js";import"./lottie-Hll5C5f2.js";import"./lexical-C3EylrlT.js";import"./pdf-CIjq4lBs.js";import"./utils-Co2o080j.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]="c7c68b6d-a0fe-4cb6-8fa0-27eb89e9b7fb",t._sentryDebugIdIdentifier="sentry-dbid-c7c68b6d-a0fe-4cb6-8fa0-27eb89e9b7fb")}catch{}})();const G=w((function(t){return{fetchState:t.tenantState.fetchState,activeTenantFetchState:t.tenantState.activeTenantFetchState.fetchState,currentTenant:_(t),tenantsInOrder:z(t).tenantsInOrder}}))((function({fetchState:t,activeTenantFetchState:s,currentTenant:o,tenantsInOrder:h}){const r=A(),p=new URLSearchParams(r.search);if(o==null||t!=="Completed"&&s!=="Completed")return null;{let m="";const n=h.map((l=>l.tenantEmailDomain)),i=r.state?.origin,a=r.state?.queryParams;let c=`../${o.tenantEmailDomain}`,d=null,e=!1,g=null,S=null;const T=E(r.pathname);if(T!=null)c=`../${o.tenantEmailDomain}/${T}`,m="comingFromV2UrlPath",T==="ai-cfo/explore"&&(d=p.get("question")?.replace(/^["']|["']$/g,"")??null,e=p.get("should_submit")==="true");else if(i!=null)if(n.reduce(((l,x)=>l||i.split("/").find((D=>D===x))!=null),!1))c=i,i.includes("ai-cfo")&&a!=null&&(g=a.aiCfoRef??null,S=a.aiCfoEmailRefId??null);else{const l=E(i);l!=null?(c=`../${o.tenantEmailDomain}/${l}`,m="comingFromV2UrlPath",l==="ai-cfo/explore"&&a!=null&&(a.aiCfoQuestion!=null&&(d=a.aiCfoQuestion),a.aiCfoShouldSubmit==="true"&&(e=!0))):console.warn("Don't have access to previous path tenant!")}const F=$(c,p);return v.jsx(N,{to:F,replace:!0,state:{...r.state,origin:"",message:m,aiCfoInitialQuestion:d,aiCfoShouldSubmit:e,aiCfoRef:g,aiCfoEmailRefId:S}})}}));function oe(){const t=y(),{setLoading:s,clearAllLoading:o}=j(),h=u.useRef(!1),r=u.useRef(!1),p=u.useRef(null),m=b((e=>U(e))),n=b((e=>e.tenantState.fetchState)),i=b((e=>e.tenantState.error)),a=b((e=>e.tenantState.activeTenantFetchState.fetchState)),c=b((e=>_(e))),d=f.getSignedInUser();return u.useLayoutEffect((()=>{const e=f.getActiveTenantForUser()?.tenantId??null;p.current!==e&&(p.current=e,h.current=!1,r.current=!1,s(C.TENANT_FETCHING)),!h.current||a!=="Completed"&&a!=="Error"||(h.current=!1),!r.current||n!=="Completed"&&n!=="Error"||(r.current=!1)}),[a,n]),u.useEffect((()=>{const e=f.getActiveTenantForUser()?.tenantId;h.current===!1&&d!=null&&e!=null&&I.shouldFetchActiveTenant(e)&&(h.current=!0,I.markActiveTenantFetchStarted(e),n==="Completed"||a!=="Not-Started"&&a!=="Error"||(s(C.TENANT_FETCHING),t(k(d.userId,e))))}),[n,a,d,t]),u.useEffect((()=>{const e=f.getSignedInUser(),g=f.getActiveTenantForUser()?.tenantId,S=g==null||a==="Completed"||a==="Error";r.current===!1&&e!=null&&S&&I.shouldFetchAllTenants()&&(r.current=!0,I.markAllTenantsFetchStarted(),(n==="Not-Started"||n==="Error"&&!L(i))&&t(R(e.userId)))}),[n,a,i,d,t]),u.useEffect((()=>{f.isSignedIn()&&n==="Completed"&&m.tenantsCoreDetailsInOrder.length>0&&(f.saveSignedInUserTenants(m.tenantsCoreDetailsInOrder),o())}),[m.tenantsCoreDetailsInOrder,n]),u.useEffect((()=>{!f.isSignedIn()||n!=="Completed"&&a!=="Completed"||c==null||(O.updateAppLocaleID(P(c)),o())}),[n,a,c]),v.jsx(G,{})}const Q=["dashboard/cash-balance","dashboard/card-balance","dashboard/operating-expenses","dashboard/revenue","dashboard/burn-rate","dashboard/cash-position","dashboard/top-expenses","dashboard/cash-in-cash-out","dashboard","reports","forecast","uncategorized-expense","uncategorized-income","missing-receipts","bills","cards/activate","cards","reimbursements","wise","checking","aicfo"],q={"dashboard/cash-balance":"dashboard/cash_balance","dashboard/card-balance":"dashboard/card_balance","dashboard/operating-expenses":"dashboard/operating_expenses","dashboard/revenue":"dashboard/revenue","dashboard/burn-rate":"dashboard/net_burn_or_income","dashboard/cash-position":"dashboard/cash_position","dashboard/top-expenses":"dashboard/top_expenses","dashboard/cash-in-cash-out":"dashboard/cash_in_cash_out",dashboard:"dashboard",reports:"reports",forecast:"forecast","uncategorized-expense":"transactions/uncategorized-expense","uncategorized-income":"transactions/uncategorized-income","missing-receipts":"transactions/missing-receipts",bills:"bills",reimbursements:"reimbursements","cards/activate":"cards/activate",cards:"cards",wise:"bills/wise/callback/link-account",checking:"checking",aicfo:"ai-cfo/explore"};function E(t){for(const s of Q)if(t.toLocaleLowerCase().includes(s))return q[s]}export{oe as default};
1
+ import{j as v}from"./liveblocks-Oqbhz69O.js";import{a as u}from"./sentry-DaOZuZWH.js";import{u as y,j as b,l as w,g as A,N}from"./core-DWK-yy-f.js";import{TX as U,fF as _,gl as k,TY as L,pS as R,TZ as z}from"./zeni-epic-state-BHC2ac1c.js";import{u as j,z as f,L as C,t as I,G as O,b as $}from"./index-B6CDEkoa.js";import"./mui-CXd5PBjh.js";import{t as P}from"./getLocaleForTenant-gphiv_jN.js";import"./recharts-BTQwLLFS.js";import"./analytics-aFpUj4gs.js";import"./plaid--nk7zPNe.js";import"./dnd-BQcaJ1VA.js";import"./stripe-cKAAJElX.js";import"./lottie-BLloBrVp.js";import"./lexical-D0wtImar.js";import"./pdf-B7YVgnpS.js";import"./utils-wj3imWq2.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]="c7c68b6d-a0fe-4cb6-8fa0-27eb89e9b7fb",t._sentryDebugIdIdentifier="sentry-dbid-c7c68b6d-a0fe-4cb6-8fa0-27eb89e9b7fb")}catch{}})();const G=w((function(t){return{fetchState:t.tenantState.fetchState,activeTenantFetchState:t.tenantState.activeTenantFetchState.fetchState,currentTenant:_(t),tenantsInOrder:z(t).tenantsInOrder}}))((function({fetchState:t,activeTenantFetchState:s,currentTenant:o,tenantsInOrder:h}){const r=A(),p=new URLSearchParams(r.search);if(o==null||t!=="Completed"&&s!=="Completed")return null;{let m="";const n=h.map((l=>l.tenantEmailDomain)),i=r.state?.origin,a=r.state?.queryParams;let c=`../${o.tenantEmailDomain}`,d=null,e=!1,g=null,S=null;const T=E(r.pathname);if(T!=null)c=`../${o.tenantEmailDomain}/${T}`,m="comingFromV2UrlPath",T==="ai-cfo/explore"&&(d=p.get("question")?.replace(/^["']|["']$/g,"")??null,e=p.get("should_submit")==="true");else if(i!=null)if(n.reduce(((l,x)=>l||i.split("/").find((D=>D===x))!=null),!1))c=i,i.includes("ai-cfo")&&a!=null&&(g=a.aiCfoRef??null,S=a.aiCfoEmailRefId??null);else{const l=E(i);l!=null?(c=`../${o.tenantEmailDomain}/${l}`,m="comingFromV2UrlPath",l==="ai-cfo/explore"&&a!=null&&(a.aiCfoQuestion!=null&&(d=a.aiCfoQuestion),a.aiCfoShouldSubmit==="true"&&(e=!0))):console.warn("Don't have access to previous path tenant!")}const F=$(c,p);return v.jsx(N,{to:F,replace:!0,state:{...r.state,origin:"",message:m,aiCfoInitialQuestion:d,aiCfoShouldSubmit:e,aiCfoRef:g,aiCfoEmailRefId:S}})}}));function oe(){const t=y(),{setLoading:s,clearAllLoading:o}=j(),h=u.useRef(!1),r=u.useRef(!1),p=u.useRef(null),m=b((e=>U(e))),n=b((e=>e.tenantState.fetchState)),i=b((e=>e.tenantState.error)),a=b((e=>e.tenantState.activeTenantFetchState.fetchState)),c=b((e=>_(e))),d=f.getSignedInUser();return u.useLayoutEffect((()=>{const e=f.getActiveTenantForUser()?.tenantId??null;p.current!==e&&(p.current=e,h.current=!1,r.current=!1,s(C.TENANT_FETCHING)),!h.current||a!=="Completed"&&a!=="Error"||(h.current=!1),!r.current||n!=="Completed"&&n!=="Error"||(r.current=!1)}),[a,n]),u.useEffect((()=>{const e=f.getActiveTenantForUser()?.tenantId;h.current===!1&&d!=null&&e!=null&&I.shouldFetchActiveTenant(e)&&(h.current=!0,I.markActiveTenantFetchStarted(e),n==="Completed"||a!=="Not-Started"&&a!=="Error"||(s(C.TENANT_FETCHING),t(k(d.userId,e))))}),[n,a,d,t]),u.useEffect((()=>{const e=f.getSignedInUser(),g=f.getActiveTenantForUser()?.tenantId,S=g==null||a==="Completed"||a==="Error";r.current===!1&&e!=null&&S&&I.shouldFetchAllTenants()&&(r.current=!0,I.markAllTenantsFetchStarted(),(n==="Not-Started"||n==="Error"&&!L(i))&&t(R(e.userId)))}),[n,a,i,d,t]),u.useEffect((()=>{f.isSignedIn()&&n==="Completed"&&m.tenantsCoreDetailsInOrder.length>0&&(f.saveSignedInUserTenants(m.tenantsCoreDetailsInOrder),o())}),[m.tenantsCoreDetailsInOrder,n]),u.useEffect((()=>{!f.isSignedIn()||n!=="Completed"&&a!=="Completed"||c==null||(O.updateAppLocaleID(P(c)),o())}),[n,a,c]),v.jsx(G,{})}const Q=["dashboard/cash-balance","dashboard/card-balance","dashboard/operating-expenses","dashboard/revenue","dashboard/burn-rate","dashboard/cash-position","dashboard/top-expenses","dashboard/cash-in-cash-out","dashboard","reports","forecast","uncategorized-expense","uncategorized-income","missing-receipts","bills","cards/activate","cards","reimbursements","wise","checking","aicfo"],q={"dashboard/cash-balance":"dashboard/cash_balance","dashboard/card-balance":"dashboard/card_balance","dashboard/operating-expenses":"dashboard/operating_expenses","dashboard/revenue":"dashboard/revenue","dashboard/burn-rate":"dashboard/net_burn_or_income","dashboard/cash-position":"dashboard/cash_position","dashboard/top-expenses":"dashboard/top_expenses","dashboard/cash-in-cash-out":"dashboard/cash_in_cash_out",dashboard:"dashboard",reports:"reports",forecast:"forecast","uncategorized-expense":"transactions/uncategorized-expense","uncategorized-income":"transactions/uncategorized-income","missing-receipts":"transactions/missing-receipts",bills:"bills",reimbursements:"reimbursements","cards/activate":"cards/activate",cards:"cards",wise:"bills/wise/callback/link-account",checking:"checking",aicfo:"ai-cfo/explore"};function E(t){for(const s of Q)if(t.toLocaleLowerCase().includes(s))return q[s]}export{oe as default};
@@ -1,4 +1,4 @@
1
- import{j as l}from"./liveblocks-BuehHs6O.js";import{h as w,g as C,j as h,l as E,i as V}from"./core-CBgcohKl.js";import{YW as k,Z1 as Y,gG as _,gF as L,gE as Q,kP as X,WU as q,uO as J,fF as B,Yt as D,kN as F,YX as S,Z4 as T,kL as G,l6 as j}from"./zeni-epic-state-CiYCRFt8.js";import{bO as K,a2 as N,o as R,z as U,E as O,a5 as p,S as v,a8 as Z,bP as M,H,bQ as ee,p as te}from"./index-Dxpayzr2.js";import{n as z}from"./mui-Cb9eDKBr.js";import"./sentry-D8HyV7mS.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]="23e8f956-33b5-4531-ad31-2ad7f63a97ec",e._sentryDebugIdIdentifier="sentry-dbid-23e8f956-33b5-4531-ad31-2ad7f63a97ec")}catch{}})();const ae=E(null,(function(e,t){return{onSaveVendor:a=>{e(X(t.vendorId!==void 0?t.vendorId:void 0,t.billId,void 0,t.isExpressPayPage)),e(q("common")),a!=null&&e(J(a))},onGetOtp:a=>{e(Q(a,"BillPayVendor"))},onResendOtp:a=>{e(L(a,"BillPayVendor"))},onVerifyOtp:(a,n)=>{e(_(a,n,"BillPayVendor"))},onVerifyOtpSuccess:(a,n,o)=>{e(Y(a,n,o))}}}))(K);function W({vendorId:e,billId:t,isExpressPayPage:a}){const n=w(),o=C(),s=h((d=>k(d,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-Oqbhz69O.js";import{h as w,g as C,j as h,l as E,i as V}from"./core-DWK-yy-f.js";import{YW as k,Z1 as Y,gG as _,gF as L,gE as Q,kP as X,WU as q,uO as J,fF as B,Yt as D,kN as F,YX as S,Z4 as T,kL as G,l6 as j}from"./zeni-epic-state-BHC2ac1c.js";import{bO as K,a2 as N,o as R,z as U,E as O,a5 as p,S as v,a8 as Z,bP as M,H,bQ as ee,p as te}from"./index-B6CDEkoa.js";import{n as z}from"./mui-CXd5PBjh.js";import"./sentry-DaOZuZWH.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]="23e8f956-33b5-4531-ad31-2ad7f63a97ec",e._sentryDebugIdIdentifier="sentry-dbid-23e8f956-33b5-4531-ad31-2ad7f63a97ec")}catch{}})();const ae=E(null,(function(e,t){return{onSaveVendor:a=>{e(X(t.vendorId!==void 0?t.vendorId:void 0,t.billId,void 0,t.isExpressPayPage)),e(q("common")),a!=null&&e(J(a))},onGetOtp:a=>{e(Q(a,"BillPayVendor"))},onResendOtp:a=>{e(L(a,"BillPayVendor"))},onVerifyOtp:(a,n)=>{e(_(a,n,"BillPayVendor"))},onVerifyOtpSuccess:(a,n,o)=>{e(Y(a,n,o))}}}))(K);function W({vendorId:e,billId:t,isExpressPayPage:a}){const n=w(),o=C(),s=h((d=>k(d,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 c}from"./liveblocks-BuehHs6O.js";import{a2 as d,ac as f,E as l}from"./index-Dxpayzr2.js";import{D as b}from"./mui-Cb9eDKBr.js";import"./sentry-D8HyV7mS.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="c4a1a051-122a-4bbe-9cb2-6f5c19e6b4ff",e._sentryDebugIdIdentifier="sentry-dbid-c4a1a051-122a-4bbe-9cb2-6f5c19e6b4ff")}catch{}})();const p={drawerLeftMargin:new f(0,0,240)};function h(e){const{isOpen:r,drawerLeftMargin:o,children:n,onClose:t}=e,a=d(),s=o?.valuePx(a)??p.drawerLeftMargin.valuePx(a),i=l();return c.jsx(b,{anchor:"right",open:r,PaperProps:{style:{width:`calc(100% - ${s})`}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.8,cursor:"pointer"}}},onClose:t,children:n})}export{h as D};
1
+ import{j as c}from"./liveblocks-Oqbhz69O.js";import{a2 as d,ac as f,E as l}from"./index-B6CDEkoa.js";import{D as b}from"./mui-CXd5PBjh.js";import"./sentry-DaOZuZWH.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="c4a1a051-122a-4bbe-9cb2-6f5c19e6b4ff",e._sentryDebugIdIdentifier="sentry-dbid-c4a1a051-122a-4bbe-9cb2-6f5c19e6b4ff")}catch{}})();const p={drawerLeftMargin:new f(0,0,240)};function h(e){const{isOpen:r,drawerLeftMargin:o,children:n,onClose:t}=e,a=d(),s=o?.valuePx(a)??p.drawerLeftMargin.valuePx(a),i=l();return c.jsx(b,{anchor:"right",open:r,PaperProps:{style:{width:`calc(100% - ${s})`}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.8,cursor:"pointer"}}},onClose:t,children:n})}export{h as D};
@@ -1 +1 @@
1
- import{j as s}from"./liveblocks-BuehHs6O.js";import{a as d}from"./sentry-D8HyV7mS.js";import{h as B,u as A,g as G,i as F,j as l,N as q,l as $,n as N,o as O}from"./core-CBgcohKl.js";import{WZ as _,fF as M,We as R,m$ as V,Sf as b,X2 as Y,WT as z,l$ as U,Sg as S,Wj as X,Wk as Z,WV as H,WU as J}from"./zeni-epic-state-CiYCRFt8.js";import{b9 as K,k as L,a5 as Q,p as tt}from"./index-Dxpayzr2.js";import"./mui-Cb9eDKBr.js";import{d as k}from"./decodeURIComponentSafe-B8wth54g.js";import{w as et}from"./withTransactionSidePanel-BcR5QH3v.js";import{f as at,c as nt}from"./routePaths-B-L_6QzQ.js";import"./recharts-Byvkx40G.js";import"./analytics-DHz0W6ee.js";import"./plaid-7nNyVbzF.js";import"./dnd-f7VjRKNv.js";import"./stripe-cKAAJElX.js";import"./lottie-Hll5C5f2.js";import"./lexical-C3EylrlT.js";import"./pdf-CIjq4lBs.js";import"./utils-Co2o080j.js";import"./useAskAiCfoHostNavButtonProps-D10pewSQ.js";import"./TransactionDetailScreen-D81kXW_9.js";import"./useInitialThreadRequest-eERa3iZO.js";import"./expenseAutomationHelper-DyHogR1f.js";import"./stripSplatSuffix-CFEl-9z0.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]="2f66b6e9-a790-460e-89c6-eaab7fd60429",a._sentryDebugIdIdentifier="sentry-dbid-2f66b6e9-a790-460e-89c6-eaab7fd60429")}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:L,isAccountingClassesEnabled:U(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(H({searchString:e,searchOrigin:"common"})):e.trim().length===0&&a(J("common"))},onAutoCompleteEntity:e=>{const o=at(e,t.tenantEmailDomain);a(X()),a(Z()),t.resetTrendIsFetchedStates(),t.navigate(o,{replace:!0,state:{pathnameStackToGoBack:t.location.state?.pathnameStackToGoBack}})},onCancelAutoComplete:()=>{const e=Q(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(b(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:e.addTimePeriod})),a(S(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:o}))}}}}))(K),it=et((function({entityType:a,...t}){const e=B(),o=A(),c=G(),[m,T]=d.useState(!1),[h,g]=d.useState(!1),{tenantEmailDomain:C,entityIdEncoded:W,entityNameEncoded:j}=F(),r=k(W??""),p=k(j??""),f=rt(r,p),w=[r,p].filter((n=>n!=null)),i={name:p,id:r,type:a,zeniId:r,qboId:r},D=l((n=>_(n.customerIncomeState,n.vendorExpenseState,n.trendState,i,"quarter"))),x=l((n=>M(n).company?.companyInfo.firstMonthOfFY??1)),u=l((n=>R(n.trendWithTransactionsState,i,"EntityDetail")));d.useEffect((()=>{m===!1&&f===!0&&(T(!0),o(V(i)))}),[m,f,i]);const E=l((n=>n.trendState.fetchState)),P=u?.selectedPeriod?.timePeriod??D,v=(function(n,y){return n!=null&&y!=null?{startDate:n.startDate,endDate:y?.endDate}:y})(u?.selectedPeriod?.timePeriod,D);return d.useEffect((()=>{m===!0&&h===!1&&E==="Completed"&&(g(!0),P!=null&&o(b(i,"EntityDetail",{timeframe:u?.selectedPeriod?.timeframe??"quarter",timePeriod:P})))}),[m,h,E]),f?s.jsx(ot,{firstMonthOfFY:x,tenantEmailDomain:C,location:c,navigate:e,entity:i,defaultTransactionTimePeriod:v,resetTrendIsFetchedStates:()=>{T(!1),g(!1)},...t}):s.jsx(q,{to:I(w.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 xt({entityType:a}){return s.jsx(N,{children:s.jsx(O,{path:"/:entityIdEncoded/:entityNameEncoded/*",element:s.jsx(it,{entityType:a})})})}export{xt as EntityDetailRoutes,xt as default};
1
+ import{j as s}from"./liveblocks-Oqbhz69O.js";import{a as d}from"./sentry-DaOZuZWH.js";import{h as B,u as A,g as G,i as F,j as l,N as q,l as $,n as N,o as O}from"./core-DWK-yy-f.js";import{WZ as _,fF as M,We as R,m$ as V,Sf as b,X2 as Y,WT as z,l$ as U,Sg as S,Wj as X,Wk as Z,WV as H,WU as J}from"./zeni-epic-state-BHC2ac1c.js";import{b9 as K,k as L,a5 as Q,p as tt}from"./index-B6CDEkoa.js";import"./mui-CXd5PBjh.js";import{d as k}from"./decodeURIComponentSafe-vftzpe4R.js";import{w as et}from"./withTransactionSidePanel-CwmhFH4y.js";import{f as at,c as nt}from"./routePaths-C8QqLxFB.js";import"./recharts-BTQwLLFS.js";import"./analytics-aFpUj4gs.js";import"./plaid--nk7zPNe.js";import"./dnd-BQcaJ1VA.js";import"./stripe-cKAAJElX.js";import"./lottie-BLloBrVp.js";import"./lexical-D0wtImar.js";import"./pdf-B7YVgnpS.js";import"./utils-wj3imWq2.js";import"./useAskAiCfoHostNavButtonProps-BSGTY8mB.js";import"./TransactionDetailScreen-B7aagNFt.js";import"./useInitialThreadRequest-zQQSgVed.js";import"./expenseAutomationHelper-DzkVKD6z.js";import"./stripSplatSuffix-AHDw7hZv.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]="2f66b6e9-a790-460e-89c6-eaab7fd60429",a._sentryDebugIdIdentifier="sentry-dbid-2f66b6e9-a790-460e-89c6-eaab7fd60429")}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:L,isAccountingClassesEnabled:U(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(H({searchString:e,searchOrigin:"common"})):e.trim().length===0&&a(J("common"))},onAutoCompleteEntity:e=>{const o=at(e,t.tenantEmailDomain);a(X()),a(Z()),t.resetTrendIsFetchedStates(),t.navigate(o,{replace:!0,state:{pathnameStackToGoBack:t.location.state?.pathnameStackToGoBack}})},onCancelAutoComplete:()=>{const e=Q(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(b(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:e.addTimePeriod})),a(S(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:o}))}}}}))(K),it=et((function({entityType:a,...t}){const e=B(),o=A(),c=G(),[m,T]=d.useState(!1),[h,g]=d.useState(!1),{tenantEmailDomain:C,entityIdEncoded:W,entityNameEncoded:j}=F(),r=k(W??""),p=k(j??""),f=rt(r,p),w=[r,p].filter((n=>n!=null)),i={name:p,id:r,type:a,zeniId:r,qboId:r},D=l((n=>_(n.customerIncomeState,n.vendorExpenseState,n.trendState,i,"quarter"))),x=l((n=>M(n).company?.companyInfo.firstMonthOfFY??1)),u=l((n=>R(n.trendWithTransactionsState,i,"EntityDetail")));d.useEffect((()=>{m===!1&&f===!0&&(T(!0),o(V(i)))}),[m,f,i]);const E=l((n=>n.trendState.fetchState)),P=u?.selectedPeriod?.timePeriod??D,v=(function(n,y){return n!=null&&y!=null?{startDate:n.startDate,endDate:y?.endDate}:y})(u?.selectedPeriod?.timePeriod,D);return d.useEffect((()=>{m===!0&&h===!1&&E==="Completed"&&(g(!0),P!=null&&o(b(i,"EntityDetail",{timeframe:u?.selectedPeriod?.timeframe??"quarter",timePeriod:P})))}),[m,h,E]),f?s.jsx(ot,{firstMonthOfFY:x,tenantEmailDomain:C,location:c,navigate:e,entity:i,defaultTransactionTimePeriod:v,resetTrendIsFetchedStates:()=>{T(!1),g(!1)},...t}):s.jsx(q,{to:I(w.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 xt({entityType:a}){return s.jsx(N,{children:s.jsx(O,{path:"/:entityIdEncoded/:entityNameEncoded/*",element:s.jsx(it,{entityType:a})})})}export{xt as EntityDetailRoutes,xt as default};
@@ -1,4 +1,4 @@
1
- import{j as b}from"./liveblocks-BuehHs6O.js";import{u as he,h as nt,g as be,j as _,i as Oe,t as Yn,l as Hn,n as Kn,o as He,N as Xn}from"./core-CBgcohKl.js";import{fF as ke,a14 as Qn,q0 as _e,Ue as Zn,A3 as es,a15 as ts,a16 as as,a17 as ns,a18 as gt,a19 as Xe,gh as bt,a1a as ca,eW as ss,g0 as os,a1b as ia,a1c as Qe,qT as cs,uR as is,gS as ls,gQ as rs,a1d as ds,r4 as us,rd as ms,qb as ps,qp as wa,gP as re,gR as hs,a1e as Ss,qL as Ra,re as gs,qm as Cs,qh as fs,uX as Is,gO as Me,a1f as tt,Cd as Da,MA as Fa,a1g as _a,Fy as Ma,a1h as ks,eZ as bs,e$ as Ts,sS as Tt,W_ as la,X0 as Ps,m2 as ys,X1 as vs,m9 as Es,dl as As,Dw as Pt,a1i as xs,a1j as ws,fm as yt,sG as ra,WT as Rs,a1k as Ds,a1l as Fs,mb as _s,a1m as Ms,Rg as Us,ma as Os,l$ as Bs,qE as Ua,rj as at,tt as Oa,tP as Vs,U4 as Ba,ri as da,rl as Va,rn as js,bE as Ls,ny as zs,nv as $s,rm as Ze,rk as pe,a1n as Gs,rE as ua,a1o as Ns,a1p as qs,sK as Js,sL as Ws,WP as Ys,VV as Hs,a0y as Ks,a1q as Xs,WV as ma,WU as Ke,a1r as pa,mq as Qs,a1s as Zs,a1t as eo,a1u as to,a1v as ao,qz as no,a1w as so,a1x as oo,a1y as co,ru as io,md as lo,m4 as ro,a1z as uo,mc as ha,Xb as mo,a1A as po,a1B as ho,us as So,u3 as go,u2 as Ct,a1C as Co,a1D as fo,a1E as Io,a1F as ko,nJ as bo,br as To,nE as Sa,nq as Po,a1G as yo,g$ as vo,nB as Eo,sU as Ao,sW as xo,sD as wo,VY as Ro,VZ as Do,F0 as Fo,E$ as _o,Fg as Mo,a1H as ga,sJ as Uo,a1I as Oo,rU as Bo,r_ as Vo,s9 as jo,rX as Lo,a1J as zo,s8 as $o,sP as Go,a1K as No,t0 as qo,sx as Jo,t6 as Wo,sC as Yo,rF as Ho,a1L as Ko,qX as Xo,qv as Qo,qC as Ca,rp as Zo,a1M as ec,a1N as tc,a1O as ac,a1P as nc,a1Q as sc,a1R as oc,a1S as cc,ta as ic,a1T as lc,a1U as rc,a1V as fa,uD as dc,tW as uc,tL as Ia,tJ as mc,a1W as pc,ty as hc,td as Sc,tM as gc,a1X as Cc,a1Y as fc,tj as Ic,a1Z as kc,te as bc,ti as Tc,tg as Pc,tS as yc}from"./zeni-epic-state-CiYCRFt8.js";import ja from"./NotFoundScreen-BtojPFV3.js";import{a as s,R as La}from"./sentry-D8HyV7mS.js";import{n as Te,S as vc}from"./mui-Cb9eDKBr.js";import{o as Be,S as H,k as Q,p as te,ar as za,at as $a,dP as Ec,dQ as Ac,M as Ga,z as st,dR as xc,dS as wc,dT as Rc,af as Ue,dU as Dc,dV as ka,bb as ba,dW as Fc,a8 as Na,dX as _c,j as et,a as Mc,dY as Uc,dZ as Oc,O as Bc,K as Vc,d_ as jc,d$ as Lc,e0 as zc,b5 as $c,bt as Gc,ac as Nc,b6 as qc,b7 as Jc,G as Wc,w as Yc,e1 as Hc,aw as Ta,e2 as Kc}from"./index-Dxpayzr2.js";import{u as qa}from"./useAskAiCfoHostNavButtonProps-D10pewSQ.js";import{g as Pa,b as Xc,c as Qc,h as Zc,a as ei,i as ti,r as ai,C as ni}from"./TransactionDetailScreen-D81kXW_9.js";import{u as si}from"./useActualMatchingMatchDetail-Cum7P8RW.js";import{d as oi}from"./decodeURIComponentSafe-B8wth54g.js";import{m as Ja,a as Wa}from"./expenseAutomationHelper-DyHogR1f.js";import{u as Ya,a as Ha,w as ci}from"./withTransactionSidePanel-BcR5QH3v.js";import{b as ii,S as li,a as ri,J as di}from"./ScheduleDetailsPrepaidExpensesScreen-BVSBGxCW.js";import{s as ya,i as Ka,h as ui,v as mi,c as pi}from"./routePaths-B-L_6QzQ.js";import{a as ft}from"./accountMappingHelper-DsWulQNd.js";import{D as hi}from"./DrawerScreen-DmHBy9eu.js";import"./recharts-Byvkx40G.js";import"./analytics-DHz0W6ee.js";import"./plaid-7nNyVbzF.js";import"./dnd-f7VjRKNv.js";import"./stripe-cKAAJElX.js";import"./lottie-Hll5C5f2.js";import"./lexical-C3EylrlT.js";import"./pdf-CIjq4lBs.js";import"./utils-Co2o080j.js";import"./useInitialThreadRequest-eERa3iZO.js";import"./stripSplatSuffix-CFEl-9z0.js";import"./pathToGoBack-Cd7lBADO.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]="2d219bb3-5491-47a2-a5be-6037b8ad0589",t._sentryDebugIdIdentifier="sentry-dbid-2d219bb3-5491-47a2-a5be-6037b8ad0589")}catch{}})();const Si=()=>{const t=he(),n=nt(),f=be(),I=_((C=>ke(C))),{useFeatureGate:k}=Be(),{isFeatureEnabled:o}=k(H.isRealtimeInsightsFeatureEnabled),{isFeatureEnabled:r}=k(H.aiAuditScorePercentage),E=_((C=>C.expenseAutomationViewState.selectedPeriodByTenantId)),l=_((C=>Qn(C,I.tenantId))),{isAiCfoAccessEnabled:S,onAskAiCfoClick:R}=qa({mobileExploreReferrer:"Month-End Close Overview"}),x=s.useCallback(((C,h,L=!1)=>{t(_e({tenantId:h,period:{month:C.month,year:C.year},refreshViewInBackground:L}))}),[]),m=s.useCallback((C=>{const h=f.state?.referrer;l.monthEndCloseChecks?.auditSummary!=null&&Q.trackMonthCloseAuditPage(C.month,C.year,l.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",l.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,h??null),t(Zn(I.tenantId,C))}),[I.tenantId,l.monthEndCloseChecks?.auditSummary,l.monthEndCloseChecks?.reportEmailSentDate]),g=E[I.tenantId],u=s.useCallback((()=>{const C=f.state?.referrer;l.monthEndCloseChecks?.auditSummary!=null&&Q.trackMonthCloseAuditPage(g.month,g.year,l.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",l.monthEndCloseChecks.auditSummary.auditScorePercentage,!0,C??null),x(g,I.tenantId,!0)}),[x,g,I.tenantId,l.monthEndCloseChecks?.auditSummary,l.monthEndCloseChecks?.reportEmailSentDate]),F=te(f.state?.pathnameStackToGoBack,f.pathname),A=s.useCallback((()=>{if(l.monthEndCloseChecks!=null&&g!=null){const C=l.monthEndCloseChecks.monthEndCloseCheckList.find((h=>h.progress<100));if(C!=null)return void n(`./${C.id}/${g.month}-${g.year}`,{state:{pathnameStackToGoBack:F,message:"comingFromOverview"}});n(`./month_end_insights/${g.month}-${g.year}`,{state:{pathnameStackToGoBack:F,message:"comingFromOverview"}})}}),[l.monthEndCloseChecks,g]),{areTenantIdsInSync:p}=za();return $a({isDataReady:l.fetchState==="Completed"}),s.useEffect((()=>{g!=null&&l.fetchState!=="In-Progress"&&l.fetchState!=="Completed"&&p&&x(g,I.tenantId)}),[x,g,l.fetchState,I.tenantId,p]),s.useEffect((()=>{g!=null&&l.monthClosePerformanceTrendFetchStatus.fetchState!=="In-Progress"&&l.monthClosePerformanceTrendFetchStatus.fetchState!=="Completed"&&p&&t(es(g))}),[g,l.monthClosePerformanceTrendFetchStatus.fetchState,p]),s.useEffect((()=>{const C=setInterval((()=>{l.fetchState!=="In-Progress"&&l.fetchState==="Completed"&&u()}),3e5);return()=>clearInterval(C)}),[l.fetchState]),s.useEffect((()=>{if(l.fetchState==="Completed"&&l.monthEndCloseChecks?.auditSummary!=null){const C=f.state?.referrer;Q.trackMonthCloseAuditPage(l.selectedPeriod.month,l.selectedPeriod.year,l.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",l.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,C??null)}}),[l.fetchState,l.selectedPeriod,l.monthEndCloseChecks?.auditSummary,l.monthEndCloseChecks?.reportEmailSentDate]),b.jsx(gi,{children:b.jsx(Ec,{monthEndCloseChecksView:l,isRealtimeInsightsFeatureEnabled:o,onMonthEndCheckClick:C=>{n(`./${C}/${g.month}-${g.year}`,{state:{pathnameStackToGoBack:F,message:"comingFromOverview",referrer:"Expense Automation - Overview"}})},onPeriodChange:m,handleReviewButtonClick:A,onBackClick:()=>{n("../../dashboard")},onReload:u,isAiCfoAccessEnabled:S,onAskAiCfoClick:R,aiAuditScorePercentageEnabled:r})})},gi=Te.div`
1
+ import{j as b}from"./liveblocks-Oqbhz69O.js";import{u as he,h as nt,g as be,j as _,i as Oe,t as Yn,l as Hn,n as Kn,o as He,N as Xn}from"./core-DWK-yy-f.js";import{fF as ke,a14 as Qn,q0 as _e,Ue as Zn,A3 as es,a15 as ts,a16 as as,a17 as ns,a18 as gt,a19 as Xe,gh as bt,a1a as ca,eW as ss,g0 as os,a1b as ia,a1c as Qe,qT as cs,uR as is,gS as ls,gQ as rs,a1d as ds,r4 as us,rd as ms,qb as ps,qp as wa,gP as re,gR as hs,a1e as Ss,qL as Ra,re as gs,qm as Cs,qh as fs,uX as Is,gO as Me,a1f as tt,Cd as Da,MA as Fa,a1g as _a,Fy as Ma,a1h as ks,eZ as bs,e$ as Ts,sS as Tt,W_ as la,X0 as Ps,m2 as ys,X1 as vs,m9 as Es,dl as As,Dw as Pt,a1i as xs,a1j as ws,fm as yt,sG as ra,WT as Rs,a1k as Ds,a1l as Fs,mb as _s,a1m as Ms,Rg as Us,ma as Os,l$ as Bs,qE as Ua,rj as at,tt as Oa,tP as Vs,U4 as Ba,ri as da,rl as Va,rn as js,bE as Ls,ny as zs,nv as $s,rm as Ze,rk as pe,a1n as Gs,rE as ua,a1o as Ns,a1p as qs,sK as Js,sL as Ws,WP as Ys,VV as Hs,a0y as Ks,a1q as Xs,WV as ma,WU as Ke,a1r as pa,mq as Qs,a1s as Zs,a1t as eo,a1u as to,a1v as ao,qz as no,a1w as so,a1x as oo,a1y as co,ru as io,md as lo,m4 as ro,a1z as uo,mc as ha,Xb as mo,a1A as po,a1B as ho,us as So,u3 as go,u2 as Ct,a1C as Co,a1D as fo,a1E as Io,a1F as ko,nJ as bo,br as To,nE as Sa,nq as Po,a1G as yo,g$ as vo,nB as Eo,sU as Ao,sW as xo,sD as wo,VY as Ro,VZ as Do,F0 as Fo,E$ as _o,Fg as Mo,a1H as ga,sJ as Uo,a1I as Oo,rU as Bo,r_ as Vo,s9 as jo,rX as Lo,a1J as zo,s8 as $o,sP as Go,a1K as No,t0 as qo,sx as Jo,t6 as Wo,sC as Yo,rF as Ho,a1L as Ko,qX as Xo,qv as Qo,qC as Ca,rp as Zo,a1M as ec,a1N as tc,a1O as ac,a1P as nc,a1Q as sc,a1R as oc,a1S as cc,ta as ic,a1T as lc,a1U as rc,a1V as fa,uD as dc,tW as uc,tL as Ia,tJ as mc,a1W as pc,ty as hc,td as Sc,tM as gc,a1X as Cc,a1Y as fc,tj as Ic,a1Z as kc,te as bc,ti as Tc,tg as Pc,tS as yc}from"./zeni-epic-state-BHC2ac1c.js";import ja from"./NotFoundScreen-CjtnHhJo.js";import{a as s,R as La}from"./sentry-DaOZuZWH.js";import{n as Te,S as vc}from"./mui-CXd5PBjh.js";import{o as Be,S as H,k as Q,p as te,ar as za,at as $a,dP as Ec,dQ as Ac,M as Ga,z as st,dR as xc,dS as wc,dT as Rc,af as Ue,dU as Dc,dV as ka,bb as ba,dW as Fc,a8 as Na,dX as _c,j as et,a as Mc,dY as Uc,dZ as Oc,O as Bc,K as Vc,d_ as jc,d$ as Lc,e0 as zc,b5 as $c,bt as Gc,ac as Nc,b6 as qc,b7 as Jc,G as Wc,w as Yc,e1 as Hc,aw as Ta,e2 as Kc}from"./index-B6CDEkoa.js";import{u as qa}from"./useAskAiCfoHostNavButtonProps-BSGTY8mB.js";import{g as Pa,b as Xc,c as Qc,h as Zc,a as ei,i as ti,r as ai,C as ni}from"./TransactionDetailScreen-B7aagNFt.js";import{u as si}from"./useActualMatchingMatchDetail-zhZcmvn_.js";import{d as oi}from"./decodeURIComponentSafe-vftzpe4R.js";import{m as Ja,a as Wa}from"./expenseAutomationHelper-DzkVKD6z.js";import{u as Ya,a as Ha,w as ci}from"./withTransactionSidePanel-CwmhFH4y.js";import{b as ii,S as li,a as ri,J as di}from"./ScheduleDetailsPrepaidExpensesScreen-X0qdbxgL.js";import{s as ya,i as Ka,h as ui,v as mi,c as pi}from"./routePaths-C8QqLxFB.js";import{a as ft}from"./accountMappingHelper-Mpz5AA-4.js";import{D as hi}from"./DrawerScreen-CTiS9I26.js";import"./recharts-BTQwLLFS.js";import"./analytics-aFpUj4gs.js";import"./plaid--nk7zPNe.js";import"./dnd-BQcaJ1VA.js";import"./stripe-cKAAJElX.js";import"./lottie-BLloBrVp.js";import"./lexical-D0wtImar.js";import"./pdf-B7YVgnpS.js";import"./utils-wj3imWq2.js";import"./useInitialThreadRequest-zQQSgVed.js";import"./stripSplatSuffix-AHDw7hZv.js";import"./pathToGoBack-CMbLg1sX.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]="2d219bb3-5491-47a2-a5be-6037b8ad0589",t._sentryDebugIdIdentifier="sentry-dbid-2d219bb3-5491-47a2-a5be-6037b8ad0589")}catch{}})();const Si=()=>{const t=he(),n=nt(),f=be(),I=_((C=>ke(C))),{useFeatureGate:k}=Be(),{isFeatureEnabled:o}=k(H.isRealtimeInsightsFeatureEnabled),{isFeatureEnabled:r}=k(H.aiAuditScorePercentage),E=_((C=>C.expenseAutomationViewState.selectedPeriodByTenantId)),l=_((C=>Qn(C,I.tenantId))),{isAiCfoAccessEnabled:S,onAskAiCfoClick:R}=qa({mobileExploreReferrer:"Month-End Close Overview"}),x=s.useCallback(((C,h,L=!1)=>{t(_e({tenantId:h,period:{month:C.month,year:C.year},refreshViewInBackground:L}))}),[]),m=s.useCallback((C=>{const h=f.state?.referrer;l.monthEndCloseChecks?.auditSummary!=null&&Q.trackMonthCloseAuditPage(C.month,C.year,l.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",l.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,h??null),t(Zn(I.tenantId,C))}),[I.tenantId,l.monthEndCloseChecks?.auditSummary,l.monthEndCloseChecks?.reportEmailSentDate]),g=E[I.tenantId],u=s.useCallback((()=>{const C=f.state?.referrer;l.monthEndCloseChecks?.auditSummary!=null&&Q.trackMonthCloseAuditPage(g.month,g.year,l.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",l.monthEndCloseChecks.auditSummary.auditScorePercentage,!0,C??null),x(g,I.tenantId,!0)}),[x,g,I.tenantId,l.monthEndCloseChecks?.auditSummary,l.monthEndCloseChecks?.reportEmailSentDate]),F=te(f.state?.pathnameStackToGoBack,f.pathname),A=s.useCallback((()=>{if(l.monthEndCloseChecks!=null&&g!=null){const C=l.monthEndCloseChecks.monthEndCloseCheckList.find((h=>h.progress<100));if(C!=null)return void n(`./${C.id}/${g.month}-${g.year}`,{state:{pathnameStackToGoBack:F,message:"comingFromOverview"}});n(`./month_end_insights/${g.month}-${g.year}`,{state:{pathnameStackToGoBack:F,message:"comingFromOverview"}})}}),[l.monthEndCloseChecks,g]),{areTenantIdsInSync:p}=za();return $a({isDataReady:l.fetchState==="Completed"}),s.useEffect((()=>{g!=null&&l.fetchState!=="In-Progress"&&l.fetchState!=="Completed"&&p&&x(g,I.tenantId)}),[x,g,l.fetchState,I.tenantId,p]),s.useEffect((()=>{g!=null&&l.monthClosePerformanceTrendFetchStatus.fetchState!=="In-Progress"&&l.monthClosePerformanceTrendFetchStatus.fetchState!=="Completed"&&p&&t(es(g))}),[g,l.monthClosePerformanceTrendFetchStatus.fetchState,p]),s.useEffect((()=>{const C=setInterval((()=>{l.fetchState!=="In-Progress"&&l.fetchState==="Completed"&&u()}),3e5);return()=>clearInterval(C)}),[l.fetchState]),s.useEffect((()=>{if(l.fetchState==="Completed"&&l.monthEndCloseChecks?.auditSummary!=null){const C=f.state?.referrer;Q.trackMonthCloseAuditPage(l.selectedPeriod.month,l.selectedPeriod.year,l.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",l.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,C??null)}}),[l.fetchState,l.selectedPeriod,l.monthEndCloseChecks?.auditSummary,l.monthEndCloseChecks?.reportEmailSentDate]),b.jsx(gi,{children:b.jsx(Ec,{monthEndCloseChecksView:l,isRealtimeInsightsFeatureEnabled:o,onMonthEndCheckClick:C=>{n(`./${C}/${g.month}-${g.year}`,{state:{pathnameStackToGoBack:F,message:"comingFromOverview",referrer:"Expense Automation - Overview"}})},onPeriodChange:m,handleReviewButtonClick:A,onBackClick:()=>{n("../../dashboard")},onReload:u,isAiCfoAccessEnabled:S,onAskAiCfoClick:R,aiAuditScorePercentageEnabled:r})})},gi=Te.div`
2
2
  display: flex;
3
3
  height: 100vh;
4
4
  width: 100%;
@@ -1 +1 @@
1
- import{j as s}from"./liveblocks-BuehHs6O.js";import{a as r}from"./sentry-D8HyV7mS.js";import{ax as l,ay as p,R as m,a5 as b}from"./index-Dxpayzr2.js";import"./mui-Cb9eDKBr.js";import f from"./NotFoundScreen-BtojPFV3.js";import{h as c,g as u}from"./core-CBgcohKl.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]="84290e3a-b5eb-4a67-b663-116401857d00",e._sentryDebugIdIdentifier="sentry-dbid-84290e3a-b5eb-4a67-b663-116401857d00")}catch{}})();const _=()=>{const e=c(),a=u(),t=r.useCallback((()=>{window.open("https://www.zeni.ai/demo/request","_blank")}),[]),i=r.useCallback((()=>{(()=>{const n=b(a.state?.pathnameStackToGoBack),d=n.poppedPathname??k();e(d,{state:{pathnameStackToGoBack:n.newStack}})})()}),[]),o=l(a.pathname);return o!=null?s.jsx(p,{menuItem:m(o),onDemoClick:t,onGoBack:i}):s.jsx(f,{})},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-Oqbhz69O.js";import{a as r}from"./sentry-DaOZuZWH.js";import{ax as l,ay as p,R as m,a5 as b}from"./index-B6CDEkoa.js";import"./mui-CXd5PBjh.js";import f from"./NotFoundScreen-CjtnHhJo.js";import{h as c,g as u}from"./core-DWK-yy-f.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]="84290e3a-b5eb-4a67-b663-116401857d00",e._sentryDebugIdIdentifier="sentry-dbid-84290e3a-b5eb-4a67-b663-116401857d00")}catch{}})();const _=()=>{const e=c(),a=u(),t=r.useCallback((()=>{window.open("https://www.zeni.ai/demo/request","_blank")}),[]),i=r.useCallback((()=>{(()=>{const n=b(a.state?.pathnameStackToGoBack),d=n.poppedPathname??k();e(d,{state:{pathnameStackToGoBack:n.newStack}})})()}),[]),o=l(a.pathname);return o!=null?s.jsx(p,{menuItem:m(o),onDemoClick:t,onGoBack:i}):s.jsx(f,{})},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-D8HyV7mS.js";import{u as l,h as f,g as m}from"./core-CBgcohKl.js";import{hY as p,UB as g,UC as _}from"./zeni-epic-state-CiYCRFt8.js";import{u as b,L as h,z as y}from"./index-Dxpayzr2.js";import"./liveblocks-BuehHs6O.js";import"./recharts-Byvkx40G.js";import"./mui-Cb9eDKBr.js";import"./analytics-DHz0W6ee.js";import"./plaid-7nNyVbzF.js";import"./dnd-f7VjRKNv.js";import"./stripe-cKAAJElX.js";import"./lottie-Hll5C5f2.js";import"./lexical-C3EylrlT.js";import"./pdf-CIjq4lBs.js";import"./utils-Co2o080j.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]="2a93d830-e3af-449b-98b3-7756e027ec7c",e._sentryDebugIdIdentifier="sentry-dbid-2a93d830-e3af-449b-98b3-7756e027ec7c")}catch{}})();function j(){const e=l(),n=f(),o=m(),{setLoading:i,clearAllLoading:d}=b(),s=r.useRef(!1);return r.useLayoutEffect((()=>{i(h.CONNECTION_AUTH)}),[i]),r.useEffect((()=>{if(s.current)return;s.current=!0;const a=new URLSearchParams(o.search).get("code"),c=sessionStorage.getItem("hubspot_oauth_pending");if(sessionStorage.removeItem("hubspot_oauth_pending"),a!=null&&c!=null){const t=JSON.parse(c);e(p(t.tenant_id,t.connection_id,g("revenue"),_("hubspot"),{authorization_code:a,client_id:t.client_id,client_secret:t.client_secret,redirect_uri:t.redirect_uri}))}d();const u=y.getActiveTenantForUser();n(u?.tenantEmailDomain!=null?`/${u.tenantEmailDomain}/settings/integrations`:"/",{replace:!0})}),[]),null}export{j as default};
1
+ import{a as r}from"./sentry-DaOZuZWH.js";import{u as l,h as f,g as m}from"./core-DWK-yy-f.js";import{hY as p,UB as g,UC as _}from"./zeni-epic-state-BHC2ac1c.js";import{u as b,L as h,z as y}from"./index-B6CDEkoa.js";import"./liveblocks-Oqbhz69O.js";import"./recharts-BTQwLLFS.js";import"./mui-CXd5PBjh.js";import"./analytics-aFpUj4gs.js";import"./plaid--nk7zPNe.js";import"./dnd-BQcaJ1VA.js";import"./stripe-cKAAJElX.js";import"./lottie-BLloBrVp.js";import"./lexical-D0wtImar.js";import"./pdf-B7YVgnpS.js";import"./utils-wj3imWq2.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]="2a93d830-e3af-449b-98b3-7756e027ec7c",e._sentryDebugIdIdentifier="sentry-dbid-2a93d830-e3af-449b-98b3-7756e027ec7c")}catch{}})();function j(){const e=l(),n=f(),o=m(),{setLoading:i,clearAllLoading:d}=b(),s=r.useRef(!1);return r.useLayoutEffect((()=>{i(h.CONNECTION_AUTH)}),[i]),r.useEffect((()=>{if(s.current)return;s.current=!0;const a=new URLSearchParams(o.search).get("code"),c=sessionStorage.getItem("hubspot_oauth_pending");if(sessionStorage.removeItem("hubspot_oauth_pending"),a!=null&&c!=null){const t=JSON.parse(c);e(p(t.tenant_id,t.connection_id,g("revenue"),_("hubspot"),{authorization_code:a,client_id:t.client_id,client_secret:t.client_secret,redirect_uri:t.redirect_uri}))}d();const u=y.getActiveTenantForUser();n(u?.tenantEmailDomain!=null?`/${u.tenantEmailDomain}/settings/integrations`:"/",{replace:!0})}),[]),null}export{j as default};
@@ -1 +1 @@
1
- import{n as s}from"./liveblocks-BuehHs6O.js";import{j as d}from"./core-CBgcohKl.js";import{fF as a}from"./zeni-epic-state-CiYCRFt8.js";import"./sentry-D8HyV7mS.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="7ecf9165-dd2c-4040-9e65-c840c8a3aad6",e._sentryDebugIdIdentifier="sentry-dbid-7ecf9165-dd2c-4040-9e65-c840c8a3aad6")}catch{}})();const h=()=>d((e=>a(e))).tenantId==null?{inboxNotifications:[],isLoading:!1,isFetchingMore:!1,hasFetchedAll:!0,fetchMore:()=>null}:(()=>{const{inboxNotifications:e,isLoading:o,isFetchingMore:i,hasFetchedAll:t,fetchMore:n}=s();return{inboxNotifications:e,isLoading:o,isFetchingMore:i,hasFetchedAll:t,fetchMore:n}})();export{h as u};
1
+ import{n as s}from"./liveblocks-Oqbhz69O.js";import{j as d}from"./core-DWK-yy-f.js";import{fF as a}from"./zeni-epic-state-BHC2ac1c.js";import"./sentry-DaOZuZWH.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="7ecf9165-dd2c-4040-9e65-c840c8a3aad6",e._sentryDebugIdIdentifier="sentry-dbid-7ecf9165-dd2c-4040-9e65-c840c8a3aad6")}catch{}})();const h=()=>d((e=>a(e))).tenantId==null?{inboxNotifications:[],isLoading:!1,isFetchingMore:!1,hasFetchedAll:!0,fetchMore:()=>null}:(()=>{const{inboxNotifications:e,isLoading:o,isFetchingMore:i,hasFetchedAll:t,fetchMore:n}=s();return{inboxNotifications:e,isLoading:o,isFetchingMore:i,hasFetchedAll:t,fetchMore:n}})();export{h as u};