@zeniai/web-app-ui 5.3.54-qa → 5.3.55-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/dist/assets/{AccountMappingScreen-BlrRRyYK.js → AccountMappingScreen-DdQz2lM1.js} +1 -1
  2. package/dist/assets/{ActualMatchingMatchDetailScreen-KBRWoEoc.js → ActualMatchingMatchDetailScreen-CGBN-Q-7.js} +1 -1
  3. package/dist/assets/AddressRoutes-CynmpoQu.js +1 -0
  4. package/dist/assets/{AddressScreen-DWOW-12j.js → AddressScreen-DqZYCoSs.js} +1 -1
  5. package/dist/assets/{AiCfoScreen-DcDfH2LH.js → AiCfoScreen-CtsJ7cDT.js} +1 -1
  6. package/dist/assets/{AppDrawer-ODeNF0Av.js → AppDrawer-CKP6jrbF.js} +1 -1
  7. package/dist/assets/{BillPayApprovalRoutes-CwQ70Jsb.js → BillPayApprovalRoutes-BpoA_nrV.js} +1 -1
  8. package/dist/assets/{BillPayRoutes-DkWEe87D.js → BillPayRoutes-B9NE4VxB.js} +1 -1
  9. package/dist/assets/{BusinessVerificationPageScreen-fkSKuDKx.js → BusinessVerificationPageScreen-BldrMJdh.js} +1 -1
  10. package/dist/assets/{CardsAiCfoScreen-D2h73Hql.js → CardsAiCfoScreen-oYxLbDwZ.js} +1 -1
  11. package/dist/assets/{ChargeCardRoutes-BPu1nuyG.js → ChargeCardRoutes-ljOxkkUf.js} +1 -1
  12. package/dist/assets/{CompanyPassportScreen-DFwJSL9V.js → CompanyPassportScreen-CamQRzbi.js} +1 -1
  13. package/dist/assets/{ConnectionAuthScreen-rwpCK8vj.js → ConnectionAuthScreen-BoP4m4L6.js} +1 -1
  14. package/dist/assets/CustomerOnboardingAuthScreen-CDb5FCfJ.js +1 -0
  15. package/dist/assets/{CustomerOnboardingRoutes-2FuFx1YW.js → CustomerOnboardingRoutes-UN9_koR-.js} +1 -1
  16. package/dist/assets/{DashboardRoutes-CsVUKDom.js → DashboardRoutes-B00G02__.js} +1 -1
  17. package/dist/assets/{DefaultTenantHome-EK1ZTLpJ.js → DefaultTenantHome-BvquDIuf.js} +1 -1
  18. package/dist/assets/{DomesticWireDetailScreen-B2sK3gnq.js → DomesticWireDetailScreen-BBhvylGY.js} +1 -1
  19. package/dist/assets/{DrawerScreen-Cxs0fLXJ.js → DrawerScreen-2p7xfq2O.js} +1 -1
  20. package/dist/assets/{EntityDetailRoutes-J1t-f_rN.js → EntityDetailRoutes-CLBqzGEu.js} +1 -1
  21. package/dist/assets/{ExpenseAutomationRoutes-CdYiuFY6.js → ExpenseAutomationRoutes-CsO9a4nX.js} +1 -1
  22. package/dist/assets/{FeaturePreviewScreen-DWnnuRXB.js → FeaturePreviewScreen-8gjXA436.js} +1 -1
  23. package/dist/assets/{HubSpotOAuthCallbackScreen-BKy1DBij.js → HubSpotOAuthCallbackScreen-CdBNaEnB.js} +1 -1
  24. package/dist/assets/{InboxNotificationsProvider-B8qyHdbE.js → InboxNotificationsProvider-CvLL3Xda.js} +1 -1
  25. package/dist/assets/{InvoicingRoutes-_2bztMtp.js → InvoicingRoutes-BXUW-5w1.js} +1 -1
  26. package/dist/assets/{MagicLinkRoutes-BMUhHQh1.js → MagicLinkRoutes-BxAzMNve.js} +1 -1
  27. package/dist/assets/{MagicLinkSignInScreen-BWBaBqgd.js → MagicLinkSignInScreen-CBQx4xWX.js} +1 -1
  28. package/dist/assets/{MobileAppDrawer-DEHTsboI.js → MobileAppDrawer-fNaMEqpG.js} +1 -1
  29. package/dist/assets/NotFoundScreen-BeP62Nz9.js +1 -0
  30. package/dist/assets/{NotificationRoutes-CbQ2m8ON.js → NotificationRoutes-GCk-IahK.js} +1 -1
  31. package/dist/assets/{OAuthConsentScreen-CDpRBEpx.js → OAuthConsentScreen-DECI8j0I.js} +1 -1
  32. package/dist/assets/{PandLWithForecastRoutes-DA-gkwnG.js → PandLWithForecastRoutes-Ca12AKcd.js} +1 -1
  33. package/dist/assets/{PaymentLinkScreen-BRzaAbpf.js → PaymentLinkScreen-0thjtbfK.js} +1 -1
  34. package/dist/assets/{PeopleRoutes-DFwhgdPC.js → PeopleRoutes-DYtmtMXx.js} +1 -1
  35. package/dist/assets/{PerformanceRoutes-D0mskpFQ.js → PerformanceRoutes-DP4OW2qD.js} +1 -1
  36. package/dist/assets/{Preview-BBxDhQ0O.js → Preview-CudBKEb3.js} +1 -1
  37. package/dist/assets/{QBOConnectionScreen-BajGDFuL.js → QBOConnectionScreen-a_jxuJVg.js} +1 -1
  38. package/dist/assets/{ReimbursementApprovalRoutes-BTAP_qed.js → ReimbursementApprovalRoutes-DHL_6iez.js} +1 -1
  39. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-DJEm2XXH.js → ReimbursementApprovalRuleDetailScreen-j72H8n28.js} +1 -1
  40. package/dist/assets/{ReimbursementRoutes-BgavHl4p.js → ReimbursementRoutes-Cyrl2qi_.js} +1 -1
  41. package/dist/assets/{ReportsRoutes-C93h6574.js → ReportsRoutes-DSY4nYh6.js} +1 -1
  42. package/dist/assets/{RewardsRoutes-CjIMfvYV.js → RewardsRoutes-DvJjiZGU.js} +1 -1
  43. package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-bMBkbiJF.js → ScheduleDetailsPrepaidExpensesScreen-C4z4GiyE.js} +1 -1
  44. package/dist/assets/{ScreenRoutes-HNN5txks.js → ScreenRoutes-C7oLHktw.js} +2 -2
  45. package/dist/assets/{SettingsRoutes-CslaKFsZ.js → SettingsRoutes-DfnQIw3N.js} +1 -1
  46. package/dist/assets/{SetupPagesScreen-BknhxMJr.js → SetupPagesScreen-Zigm3cB1.js} +1 -1
  47. package/dist/assets/{SignInScreen-DDXFdnmo.js → SignInScreen-BRoXT-HL.js} +1 -1
  48. package/dist/assets/{SignOutScreen-CdohYlzt.js → SignOutScreen-DkRfW28z.js} +1 -1
  49. package/dist/assets/{TaskListScreen-BamiN5-8.js → TaskListScreen-WGfeq9_a.js} +1 -1
  50. package/dist/assets/{TaskRoutes-B2KOXvdP.js → TaskRoutes-C5PxGl6p.js} +1 -1
  51. package/dist/assets/TransactionDetailRoutes-BBdrsyNq.js +1 -0
  52. package/dist/assets/{TransactionDetailScreen-DUQhWS53.js → TransactionDetailScreen-BDWEHK1J.js} +1 -1
  53. package/dist/assets/{TransactionListRoutes-BiDSTFZP.js → TransactionListRoutes-COxnLE0l.js} +1 -1
  54. package/dist/assets/{TreasuryRoutes-B0bQBu4a.js → TreasuryRoutes-DmSouKJP.js} +1 -1
  55. package/dist/assets/{VendorsRoutes-CyexNe36.js → VendorsRoutes-OsvLnOdY.js} +1 -1
  56. package/dist/assets/{WiseConfirmationScreen-BsFUJuRp.js → WiseConfirmationScreen-taiB3VxF.js} +1 -1
  57. package/dist/assets/{ZeniAccountRoutes-Bn27iI8z.js → ZeniAccountRoutes-O9BxDbbv.js} +1 -1
  58. package/dist/assets/{ZeniAccountStatementScreen-DnKhFx6b.js → ZeniAccountStatementScreen-DzQsPHni.js} +1 -1
  59. package/dist/assets/{accountMappingHelper-y0E9h6aC.js → accountMappingHelper-DTr2dybD.js} +1 -1
  60. package/dist/assets/{analytics-BDCkEq_I.js → analytics-BLHCH9ZW.js} +1 -1
  61. package/dist/assets/{analyticsHelper-HN-E8Xpa.js → analyticsHelper-DhzoozKy.js} +1 -1
  62. package/dist/assets/{core-B2JcUSRu.js → core-_lmxLuL7.js} +1 -1
  63. package/dist/assets/{decodeURIComponentSafe-CIM8Yd6k.js → decodeURIComponentSafe-CNj7wDd5.js} +1 -1
  64. package/dist/assets/{dnd-BAPMa4RJ.js → dnd-4_dRT_p_.js} +1 -1
  65. package/dist/assets/{empty-M8CZcWYb.js → empty-B3p_skJy.js} +1 -1
  66. package/dist/assets/{empty-D7vR8z68.js → empty-Bz6Du369.js} +1 -1
  67. package/dist/assets/{emptyVideoElement-nUJqd2nB.js → emptyVideoElement-DVls5c-N.js} +1 -1
  68. package/dist/assets/{epic-IH41xxG2.js → epic-Dg8E5zC1.js} +1 -1
  69. package/dist/assets/{expenseAutomationHelper-Dd7fQN5z.js → expenseAutomationHelper-C8o4PBoS.js} +1 -1
  70. package/dist/assets/{getLocaleForTenant-CHied7Hb.js → getLocaleForTenant-DiPOVD9Y.js} +1 -1
  71. package/dist/assets/{index-DKVU_IvY.js → index-BXkbHEmr.js} +2 -2
  72. package/dist/assets/{index-DoNDPHnj.js → index-BqEaHxIT.js} +11 -11
  73. package/dist/assets/{index-PCu_2P3b.js → index-Cg11XXLq.js} +1 -1
  74. package/dist/assets/{index-P1XHqiT-.js → index-DLV1sgpa.js} +1 -1
  75. package/dist/assets/{index-DKZ4YAZy.js → index-DMJTTbIe.js} +1 -1
  76. package/dist/assets/{index-dmkrZYpO.js → index-DYybIBq-.js} +1 -1
  77. package/dist/assets/{index-BTTj-4b5.js → index-hIpaHuHG.js} +1 -1
  78. package/dist/assets/{index-gjFAkOOB.js → index-sGFH656b.js} +1 -1
  79. package/dist/assets/{lexical-DGZ06Yv6.js → lexical-BibO8P7-.js} +1 -1
  80. package/dist/assets/{liveblocks-DXYs6rwe.js → liveblocks-C_txwMxP.js} +1 -1
  81. package/dist/assets/{lottie-C9Rxpkwh.js → lottie-CyJj6i4R.js} +1 -1
  82. package/dist/assets/{mui-BLmtkCLd.js → mui-DbFwPEO7.js} +1 -1
  83. package/dist/assets/{pathToGoBack-DqGGHSwL.js → pathToGoBack-W4B39XGQ.js} +1 -1
  84. package/dist/assets/{pdf-DMCYUxGc.js → pdf-BfgO0ZZE.js} +3 -3
  85. package/dist/assets/{pdf-lib-D7-8SdHl.js → pdf-lib-B5AjOY9Z.js} +1 -1
  86. package/dist/assets/{plaid-DHQC2tsw.js → plaid-DHbQ1Fnc.js} +1 -1
  87. package/dist/assets/{pusher-C76wt9sK.js → pusher--5P9Uwc_.js} +1 -1
  88. package/dist/assets/{react-BX0k_7jA.js → react-BKa7fZpZ.js} +1 -1
  89. package/dist/assets/{react-DzK6xFD8.js → react-BmknZowZ.js} +1 -1
  90. package/dist/assets/{react-D7gGxl9M.js → react-CUz7FHyX.js} +1 -1
  91. package/dist/assets/{react-Y6cTJufT.js → react-DrxoeICl.js} +1 -1
  92. package/dist/assets/{react-Dvat3Ckm.js → react-IBoMtt1b.js} +1 -1
  93. package/dist/assets/{react-B2hEGyNu.js → react-h8fTHwLe.js} +1 -1
  94. package/dist/assets/{recharts-UN7cJOXN.js → recharts-B43pV0TY.js} +1 -1
  95. package/dist/assets/{routePaths-V2hUGG4a.js → routePaths-C1I3AVBw.js} +1 -1
  96. package/dist/assets/{sentry-BmkYxd02.js → sentry-D_60LtUS.js} +1 -1
  97. package/dist/assets/{stripSplatSuffix-DXBpTroJ.js → stripSplatSuffix-BWXYYZxG.js} +1 -1
  98. package/dist/assets/{url-Cjk2PJJX.js → url-BryZycM8.js} +1 -1
  99. package/dist/assets/{url-DgDGkycQ.js → url-CvufulZn.js} +1 -1
  100. package/dist/assets/{useActualMatchingMatchDetail-RtuBBjbC.js → useActualMatchingMatchDetail-BOc11rCC.js} +1 -1
  101. package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-Bn69qFOr.js → useAiCfoDashboardSuggestedQuestionsChips-DfcdcxeV.js} +1 -1
  102. package/dist/assets/{useAskAiCfoHostNavButtonProps-qSqQpxG4.js → useAskAiCfoHostNavButtonProps-Biynu986.js} +1 -1
  103. package/dist/assets/{useChargeCardPusherEvents-BPnD4KLb.js → useChargeCardPusherEvents-N9Kbq9gN.js} +1 -1
  104. package/dist/assets/{useDeviceId-IlYBwHEv.js → useDeviceId-Dks2onQn.js} +1 -1
  105. package/dist/assets/{useEmailConnectResultRefresh-dPGnutjz.js → useEmailConnectResultRefresh-BtvKv8-C.js} +1 -1
  106. package/dist/assets/{useInitialThreadRequest-DK2o3yi9.js → useInitialThreadRequest-CyHRajCC.js} +1 -1
  107. package/dist/assets/{useTaskManagerAccess-BNcDbxmw.js → useTaskManagerAccess-Cs4MVKyS.js} +1 -1
  108. package/dist/assets/{useTaskManagerPusherEvents-DoGLBnPU.js → useTaskManagerPusherEvents-BPWIyNie.js} +1 -1
  109. package/dist/assets/{utils-BGWE7tXK.js → utils-CPbtTTqo.js} +1 -1
  110. package/dist/assets/{withTransactionSidePanel-BJHiJX6z.js → withTransactionSidePanel-Dxu14DPo.js} +1 -1
  111. package/dist/assets/{zeni-epic-state-DpjvBN7b.js → zeni-epic-state-CtlpRqoe.js} +3 -3
  112. package/dist/index.html +1 -1
  113. package/package.json +3 -3
  114. package/dist/assets/AddressRoutes-Coz5Rzvv.js +0 -1
  115. package/dist/assets/CustomerOnboardingAuthScreen-CsmvVXX5.js +0 -1
  116. package/dist/assets/NotFoundScreen-tLaFUNLQ.js +0 -1
  117. package/dist/assets/TransactionDetailRoutes-VLp4TIB7.js +0 -1
@@ -1 +1 @@
1
- import{j as m}from"./liveblocks-DXYs6rwe.js";import{a as g}from"./sentry-BmkYxd02.js";import{h as w,u as T,g as x,i as k,j as O,l as E}from"./core-B2JcUSRu.js";import{z as C,bt as F,a9 as P,j,W as V,n as b,bu as A,af as L,aH as U,p as B}from"./index-DoNDPHnj.js";import{fF as N,gI as M,BA as _,gD as z,c8 as R,Ya as Y,bn as G,uT as H,uH as W,mz as Z,o8 as S,Yb as $,bE as q,cE as D,oj as J,ot as K}from"./zeni-epic-state-DpjvBN7b.js";import"./mui-BLmtkCLd.js";import{d as Q}from"./routePaths-V2hUGG4a.js";import{M as X}from"./MobileAppDrawer-DEHTsboI.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="7e1cf45d-45fe-441e-bc06-5b981b08f8ed",t._sentryDebugIdIdentifier="sentry-dbid-7e1cf45d-45fe-441e-bc06-5b981b08f8ed")}catch{}})();const ee=E((function(t){const a=z(t),i=C.getSignedInUser(),p=N(t),c=p.tenantId,l={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:c??""},f=R(p?.userRole??[])&&a.localData.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",e=Y(t.companyConfigState),n=t.countryListState?.byCountryListCode?.nationalityCountryList?.countries??[];return{isCompanyVerified:a.companyView?.company?.company?.companyBillPayInfo?.companyVerificationStatus?.code==="verified",companyPassportView:a,allIndustries:e.companyIndustries??[],allNationalityCountries:n,isDisabled:f,authParams:l,filesEndPoint:`${L.fileMicroServiceBaseUrl}`,isZeniUser:G(i)}}),(function(t,a){const{companyId:i,currentTenant:p,navigate:c,location:l}=a,{tenantEmailDomain:f}=p;return{onScheduleClick:e=>{let n=e.href;n.includes("http")||(n="https://".concat(n)),window.open(n,"_blank")},onSaveAll:()=>{t(K())},onAddressClick:e=>{const n=Q(f,e),o=B(l.state?.pathnameStackToGoBack,l.pathname);c(n,{state:{pathnameStackToGoBack:o}})},onResetClick:()=>{t(J({companyId:i}))},onBackClick:()=>{c("../")},onCompanyDetailsChanged:e=>{const{companyInfo:n,incInfo:o,taxDetails:r,zeniFinanceTeam:d}=e,{website:u}=n,{meetingLink:y}=d,{incDate:s}=o,{taxesFiledYears:h}=r,v={companyInfo:{...n,website:u!=""&&u!=null?D(u):void 0,meetingLink:y!=""&&y!=null?D(y):void 0,industry:n.industry.selectedOption,companyIndustryType:n.companyIndustryType?.selectedOption??void 0,companySubIndustry:n.companySubIndustry?.selectedOption??void 0,businessModel:n.businessModel.selectedOption??"",companySourceOfFunds:n.companySourceOfFunds?.selectedOption,companySourceOfFundsDescription:n.companySourceOfFundsDescription??void 0,countriesOfOperations:n.countriesOfOperations?.selectedOptions?.map((I=>I.length===2?I:U(I)))??[],transactionVolume:n.transactionVolume?.selectedOption??void 0,transactionVolumeDescription:n.transactionVolumeDescription??void 0,regulatedStatus:n.regulatedStatus??void 0,regulatedStatusDescription:n.regulatedStatusDescription??void 0,usNexus:n.usNexus??void 0,usNexusTypes:n.usNexusTypes?.selectedOptions??[],purposeOfAccount:n.purposeOfAccount?.selectedOption??void 0,purposeOfAccountDescription:n.purposeOfAccountDescription??void 0},incInfo:{typeOfInc:o.typeOfInc.selectedOption??"",stateOfInc:o.stateOfInc.selectedOption??"",incDate:s!=null?q(s?.toString()):s,fileId:o.fileIds[0]},taxDetails:{taxIdOrEIN:r.taxIdOrEIN,sicCode:r.sicCode,naicsCode:r.naicsCode,dunsNumber:r.dunsNumber,taxesFiledYears:h.selectedOptions.map((I=>parseInt(I))),fileId:r.fileIds[0]}};t(S({companyDetails:v}))},onPrimaryContactDetailsUpdated:e=>{t(S({primaryContact:{userId:e.userId,email:e.email.trim(),firstName:e.name.firstName,lastName:e.name.lastName}}))},onNewCompanyOfficerAdded:e=>{t(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:void 0}]}))},onNewCompanyOfficerRemoved:e=>{t($(e))},onCompanyOfficerUpdated:e=>{t(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:e.userId}]}))},updateFilesEntity:e=>{t(Z({files:e}))},onDeleteFile:e=>{t(W(e))},onEditFileName:(e,n)=>{t(H(e,n.split(".")[0]))}}}))(A);function de(){const t=w(),a=T(),i=x(),{tenantEmailDomain:p}=k(),[c,l]=g.useState(!1),[f,e]=g.useState(!1),n=O((s=>s.companyViewState.passportView.fetchState)),o=O((s=>s.companyConfigState.fetchState)),r=O((s=>N(s))),d=r.companyId??C.getSignedInUserTenant(p)?.companyId;if(C.getSignedInUser()==null)throw Error("Can't access company details page without signing in...");g.useEffect((()=>{c||n!=="Not-Started"||d==null||(l(!0),a(M(d)))}),[c,n,d,a]),g.useEffect((()=>{o==="Not-Started"&&a(_())}),[o,a]);const u=s=>{e(s)},y=n==="Not-Started"||n==="In-Progress"||o==="Not-Started"||o==="In-Progress";return d!=null&&n==="Error"?m.jsx(F,{onGoHome:()=>t("../",{replace:!0}),onReload:()=>window.location.reload()}):m.jsxs(m.Fragment,{children:[m.jsx(P,{analytics:j,onLoad:s=>s.trackPageLoaded(V.Event.companyPassport,b(i)?"Settings":"Company Passport")}),b(i)?m.jsx(X,{isAppContentDrawerOpen:f,handleDrawerToggle:u}):null,m.jsx(ee,{companyId:d,navigate:t,location:i,isLoading:y,currentTenant:r,isSettings:b(i),onClickMenuIcon:()=>{u(!0)}})]})}export{de as C};
1
+ import{j as m}from"./liveblocks-C_txwMxP.js";import{a as g}from"./sentry-D_60LtUS.js";import{h as w,u as T,g as x,i as k,j as O,l as E}from"./core-_lmxLuL7.js";import{z as C,bt as F,a9 as P,j,W as V,n as b,bu as A,af as L,aH as U,p as B}from"./index-BqEaHxIT.js";import{fF as N,gI as M,BA as _,gD as z,c8 as R,Ya as Y,bn as G,uT as H,uH as W,mz as Z,o8 as S,Yb as $,bE as q,cE as D,oj as J,ot as K}from"./zeni-epic-state-CtlpRqoe.js";import"./mui-DbFwPEO7.js";import{d as Q}from"./routePaths-C1I3AVBw.js";import{M as X}from"./MobileAppDrawer-fNaMEqpG.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="7e1cf45d-45fe-441e-bc06-5b981b08f8ed",t._sentryDebugIdIdentifier="sentry-dbid-7e1cf45d-45fe-441e-bc06-5b981b08f8ed")}catch{}})();const ee=E((function(t){const a=z(t),i=C.getSignedInUser(),p=N(t),c=p.tenantId,l={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:c??""},f=R(p?.userRole??[])&&a.localData.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",e=Y(t.companyConfigState),n=t.countryListState?.byCountryListCode?.nationalityCountryList?.countries??[];return{isCompanyVerified:a.companyView?.company?.company?.companyBillPayInfo?.companyVerificationStatus?.code==="verified",companyPassportView:a,allIndustries:e.companyIndustries??[],allNationalityCountries:n,isDisabled:f,authParams:l,filesEndPoint:`${L.fileMicroServiceBaseUrl}`,isZeniUser:G(i)}}),(function(t,a){const{companyId:i,currentTenant:p,navigate:c,location:l}=a,{tenantEmailDomain:f}=p;return{onScheduleClick:e=>{let n=e.href;n.includes("http")||(n="https://".concat(n)),window.open(n,"_blank")},onSaveAll:()=>{t(K())},onAddressClick:e=>{const n=Q(f,e),o=B(l.state?.pathnameStackToGoBack,l.pathname);c(n,{state:{pathnameStackToGoBack:o}})},onResetClick:()=>{t(J({companyId:i}))},onBackClick:()=>{c("../")},onCompanyDetailsChanged:e=>{const{companyInfo:n,incInfo:o,taxDetails:r,zeniFinanceTeam:d}=e,{website:u}=n,{meetingLink:y}=d,{incDate:s}=o,{taxesFiledYears:h}=r,v={companyInfo:{...n,website:u!=""&&u!=null?D(u):void 0,meetingLink:y!=""&&y!=null?D(y):void 0,industry:n.industry.selectedOption,companyIndustryType:n.companyIndustryType?.selectedOption??void 0,companySubIndustry:n.companySubIndustry?.selectedOption??void 0,businessModel:n.businessModel.selectedOption??"",companySourceOfFunds:n.companySourceOfFunds?.selectedOption,companySourceOfFundsDescription:n.companySourceOfFundsDescription??void 0,countriesOfOperations:n.countriesOfOperations?.selectedOptions?.map((I=>I.length===2?I:U(I)))??[],transactionVolume:n.transactionVolume?.selectedOption??void 0,transactionVolumeDescription:n.transactionVolumeDescription??void 0,regulatedStatus:n.regulatedStatus??void 0,regulatedStatusDescription:n.regulatedStatusDescription??void 0,usNexus:n.usNexus??void 0,usNexusTypes:n.usNexusTypes?.selectedOptions??[],purposeOfAccount:n.purposeOfAccount?.selectedOption??void 0,purposeOfAccountDescription:n.purposeOfAccountDescription??void 0},incInfo:{typeOfInc:o.typeOfInc.selectedOption??"",stateOfInc:o.stateOfInc.selectedOption??"",incDate:s!=null?q(s?.toString()):s,fileId:o.fileIds[0]},taxDetails:{taxIdOrEIN:r.taxIdOrEIN,sicCode:r.sicCode,naicsCode:r.naicsCode,dunsNumber:r.dunsNumber,taxesFiledYears:h.selectedOptions.map((I=>parseInt(I))),fileId:r.fileIds[0]}};t(S({companyDetails:v}))},onPrimaryContactDetailsUpdated:e=>{t(S({primaryContact:{userId:e.userId,email:e.email.trim(),firstName:e.name.firstName,lastName:e.name.lastName}}))},onNewCompanyOfficerAdded:e=>{t(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:void 0}]}))},onNewCompanyOfficerRemoved:e=>{t($(e))},onCompanyOfficerUpdated:e=>{t(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:e.userId}]}))},updateFilesEntity:e=>{t(Z({files:e}))},onDeleteFile:e=>{t(W(e))},onEditFileName:(e,n)=>{t(H(e,n.split(".")[0]))}}}))(A);function de(){const t=w(),a=T(),i=x(),{tenantEmailDomain:p}=k(),[c,l]=g.useState(!1),[f,e]=g.useState(!1),n=O((s=>s.companyViewState.passportView.fetchState)),o=O((s=>s.companyConfigState.fetchState)),r=O((s=>N(s))),d=r.companyId??C.getSignedInUserTenant(p)?.companyId;if(C.getSignedInUser()==null)throw Error("Can't access company details page without signing in...");g.useEffect((()=>{c||n!=="Not-Started"||d==null||(l(!0),a(M(d)))}),[c,n,d,a]),g.useEffect((()=>{o==="Not-Started"&&a(_())}),[o,a]);const u=s=>{e(s)},y=n==="Not-Started"||n==="In-Progress"||o==="Not-Started"||o==="In-Progress";return d!=null&&n==="Error"?m.jsx(F,{onGoHome:()=>t("../",{replace:!0}),onReload:()=>window.location.reload()}):m.jsxs(m.Fragment,{children:[m.jsx(P,{analytics:j,onLoad:s=>s.trackPageLoaded(V.Event.companyPassport,b(i)?"Settings":"Company Passport")}),b(i)?m.jsx(X,{isAppContentDrawerOpen:f,handleDrawerToggle:u}):null,m.jsx(ee,{companyId:d,navigate:t,location:i,isLoading:y,currentTenant:r,isSettings:b(i),onClickMenuIcon:()=>{u(!0)}})]})}export{de as C};
@@ -1,4 +1,4 @@
1
- import{j as I}from"./liveblocks-DXYs6rwe.js";import{a as o}from"./sentry-BmkYxd02.js";import{u as k,h as P,g as H,j as C,N as w}from"./core-B2JcUSRu.js";import{TR as q,fF as z,gl as G,pS as M,gM as A,gk as Q,gi as V,Uf as B,gh as O}from"./zeni-epic-state-DpjvBN7b.js";import{u as J,z as E,L as D,G as K,F as W}from"./index-DoNDPHnj.js";import{n as X}from"./mui-BLmtkCLd.js";import{P as h,a as _}from"./AccountMappingScreen-BlrRRyYK.js";import{t as Y}from"./getLocaleForTenant-CHied7Hb.js";import{g as Z,Q as ee}from"./QBOConnectionScreen-BajGDFuL.js";import"./recharts-UN7cJOXN.js";import"./analytics-BDCkEq_I.js";import"./plaid-DHQC2tsw.js";import"./dnd-BAPMa4RJ.js";import"./stripe-cKAAJElX.js";import"./lottie-C9Rxpkwh.js";import"./lexical-DGZ06Yv6.js";import"./pdf-DMCYUxGc.js";import"./utils-BGWE7tXK.js";import"./MobileAppDrawer-DEHTsboI.js";import"./InboxNotificationsProvider-B8qyHdbE.js";import"./useTaskManagerAccess-BNcDbxmw.js";import"./accountMappingHelper-y0E9h6aC.js";import"./empty-M8CZcWYb.js";import"./pdf-lib-D7-8SdHl.js";import"./index-gjFAkOOB.js";import"./url-Cjk2PJJX.js";import"./index-PCu_2P3b.js";import"./decodeURIComponentSafe-CIM8Yd6k.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]="5418916c-0ecc-48fb-a232-61ba383c7826",t._sentryDebugIdIdentifier="sentry-dbid-5418916c-0ecc-48fb-a232-61ba383c7826")}catch{}})();const te=X.div`
1
+ import{j as I}from"./liveblocks-C_txwMxP.js";import{a as o}from"./sentry-D_60LtUS.js";import{u as k,h as P,g as H,j as C,N as w}from"./core-_lmxLuL7.js";import{TR as q,fF as z,gl as G,pS as M,gM as A,gk as Q,gi as V,Uf as B,gh as O}from"./zeni-epic-state-CtlpRqoe.js";import{u as J,z as E,L as D,G as K,F as W}from"./index-BqEaHxIT.js";import{n as X}from"./mui-DbFwPEO7.js";import{P as h,a as _}from"./AccountMappingScreen-DdQz2lM1.js";import{t as Y}from"./getLocaleForTenant-DiPOVD9Y.js";import{g as Z,Q as ee}from"./QBOConnectionScreen-a_jxuJVg.js";import"./recharts-B43pV0TY.js";import"./analytics-BLHCH9ZW.js";import"./plaid-DHbQ1Fnc.js";import"./dnd-4_dRT_p_.js";import"./stripe-cKAAJElX.js";import"./lottie-CyJj6i4R.js";import"./lexical-BibO8P7-.js";import"./pdf-BfgO0ZZE.js";import"./utils-CPbtTTqo.js";import"./MobileAppDrawer-fNaMEqpG.js";import"./InboxNotificationsProvider-CvLL3Xda.js";import"./useTaskManagerAccess-Cs4MVKyS.js";import"./accountMappingHelper-DTr2dybD.js";import"./empty-B3p_skJy.js";import"./pdf-lib-B5AjOY9Z.js";import"./index-sGFH656b.js";import"./url-BryZycM8.js";import"./index-Cg11XXLq.js";import"./decodeURIComponentSafe-CNj7wDd5.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]="5418916c-0ecc-48fb-a232-61ba383c7826",t._sentryDebugIdIdentifier="sentry-dbid-5418916c-0ecc-48fb-a232-61ba383c7826")}catch{}})();const te=X.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  flex-direction: row;
@@ -0,0 +1 @@
1
+ import{j as i}from"./liveblocks-C_txwMxP.js";import{z as m}from"./index-BqEaHxIT.js";import{g as n}from"./QBOConnectionScreen-a_jxuJVg.js";import"./sentry-D_60LtUS.js";import{g as p,N as a}from"./core-_lmxLuL7.js";import"./zeni-epic-state-CtlpRqoe.js";import"./recharts-B43pV0TY.js";import"./mui-DbFwPEO7.js";import"./analytics-BLHCH9ZW.js";import"./plaid-DHbQ1Fnc.js";import"./dnd-4_dRT_p_.js";import"./stripe-cKAAJElX.js";import"./lottie-CyJj6i4R.js";import"./lexical-BibO8P7-.js";import"./pdf-BfgO0ZZE.js";import"./utils-CPbtTTqo.js";import"./empty-B3p_skJy.js";import"./pdf-lib-B5AjOY9Z.js";import"./index-sGFH656b.js";import"./url-BryZycM8.js";import"./index-Cg11XXLq.js";import"./decodeURIComponentSafe-CNj7wDd5.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-DXYs6rwe.js";import{t as Tt,A as $e}from"./AddressScreen-DWOW-12j.js";import wt from"./NotFoundScreen-tLaFUNLQ.js";import{a as d,t as Me}from"./sentry-BmkYxd02.js";import{h as _e,g as xe,u as se,i as Ee,j as T,N as Q,q as At,l as it,n as Pt,o as H}from"./core-B2JcUSRu.js";import{fF as Y,d_ as Te,dZ as we,bq as Dt,U6 as Bt,bR as jt,pQ as Ft,Bk as Vt,Bn as Ut,Vt as Rt,Vu as Lt,lu as Oe,lx as ct,UJ as Nt,b$ as Gt,c8 as fe,BO as Ae,Bz as $t,Vv as me,BP as dt,Sg as Mt,mH as ut,di as lt,Vw as Qt,Vx as zt,uA as Kt,Uw as Ce,hV as qt,Uv as be,hS as Ht,Gb as Jt,uE as Zt,hK as Wt,hN as Qe,Vy as pt,Vz as Xt,M1 as Yt,VA as en,M5 as tn,Bq as nn,VB as an,VC as on,ls as sn,lv as rn,B$ as cn,BB as mt,BN as dn,bE as ze,cE as un,B_ as Ke,uT as ln,uH as pn,mz as mn,gG as gn,gF as fn,gE as yn,VD as hn,Bt as Cn,C0 as bn,C3 as Sn,C6 as In,Cc as kn,dj as On}from"./zeni-epic-state-DpjvBN7b.js";import{z as K,c as Pe,v as W,H as vn,p as q,a9 as re,j as g,aF as _n,aj as gt,a2 as xn,V as ft,Q as yt,h as X,_ as ge,W as ve,aG as En,F as qe,r as He,af as Tn,aH as Je,aI as wn,aJ as An}from"./index-DoNDPHnj.js";import{n as De}from"./mui-BLmtkCLd.js";import{g as Pn,h as Dn,q as ie}from"./QBOConnectionScreen-BajGDFuL.js";import{u as Bn,a as jn}from"./useEmailConnectResultRefresh-dPGnutjz.js";import{u as Fn}from"./useChargeCardPusherEvents-BPnD4KLb.js";import"./recharts-UN7cJOXN.js";import"./analytics-BDCkEq_I.js";import"./plaid-DHQC2tsw.js";import"./dnd-BAPMa4RJ.js";import"./stripe-cKAAJElX.js";import"./lottie-C9Rxpkwh.js";import"./lexical-DGZ06Yv6.js";import"./pdf-DMCYUxGc.js";import"./utils-BGWE7tXK.js";import"./empty-M8CZcWYb.js";import"./pdf-lib-D7-8SdHl.js";import"./index-gjFAkOOB.js";import"./url-Cjk2PJJX.js";import"./index-PCu_2P3b.js";import"./decodeURIComponentSafe-CIM8Yd6k.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]="802a76b5-98f5-47ac-8a9e-ca28cfde31be",e._sentryDebugIdIdentifier="sentry-dbid-802a76b5-98f5-47ac-8a9e-ca28cfde31be")}catch{}})();const Ze=e=>{switch(e){case"Complete":return"yes";case"Pending Review":case"Incomplete":return"partially";default:return"no"}},Vn=()=>{const e=_e(),l=xe(),i=se(),[a,p]=d.useState(!1),[u,c]=d.useState(!1),{tenantEmailDomain:v}=Ee(),t=K.getSignedInUser(),{useFeatureGate:n}=Pe(),{isFeatureEnabled:C}=n(W.isApAgingFeatureEnabled),{isFeatureEnabled:o}=n(W.isArAgingFeatureEnabled),{isFeatureEnabled:A}=n(W.isReferralFeatureEnabled),{isFeatureEnabled:w}=n(W.isDebitCardFeatureEnabled),k=vn(),O=T((S=>Y(S))),P=T((S=>S.onboardingCustomerViewState.fetchState)),_=O.excludedResources,F=O.companyId??K.getSignedInUserTenant(v)?.companyId;if(t==null)throw Error("Can't access onboarding flow without signing in...");const m=Te(w,O),b=we(O),D=[],U=_?.resources?.find((S=>S.resource==="/reports/top_expenses"))==null,h=_?.resources?.find((S=>S.resource==="/reports/task_card"))==null,r=O?.userRole!=null&&Dt(O?.userRole),x=_?.resources?.find((S=>S.resource==="/bills"))==null&&!r,E=_?.resources?.find((S=>S.resource==="/reimbursements"))==null;U===!1&&D.push("top_expenses"),h===!1&&D.push("task_card"),x===!1&&D.push("bill_pay_card","bill_pay_promo_card"),E===!1&&D.push("reimbursement_card","reimbursement_promo_card"),D.push("zeni_accounts_promo_card","treasury_promo_card"),A===!1&&D.push("rewards_card");const f=T((S=>{const V=[];C===!1&&V.push("accounts_payable_aging"),o===!1&&V.push("accounts_receivable_aging"),V.push("zeni_accounts_promo_card","treasury_promo_card"),A===!1&&V.push("rewards_card"),k===!1&&V.push("expense_automation_card");const J=Bt(S,V);return jt(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 B=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((()=>{B.current||(B.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-C_txwMxP.js";import{t as Tt,A as $e}from"./AddressScreen-DqZYCoSs.js";import wt from"./NotFoundScreen-BeP62Nz9.js";import{a as d,t as Me}from"./sentry-D_60LtUS.js";import{h as _e,g as xe,u as se,i as Ee,j as T,N as Q,q as At,l as it,n as Pt,o as H}from"./core-_lmxLuL7.js";import{fF as Y,d_ as Te,dZ as we,bq as Dt,U6 as Bt,bR as jt,pQ as Ft,Bk as Vt,Bn as Ut,Vt as Rt,Vu as Lt,lu as Oe,lx as ct,UJ as Nt,b$ as Gt,c8 as fe,BO as Ae,Bz as $t,Vv as me,BP as dt,Sg as Mt,mH as ut,di as lt,Vw as Qt,Vx as zt,uA as Kt,Uw as Ce,hV as qt,Uv as be,hS as Ht,Gb as Jt,uE as Zt,hK as Wt,hN as Qe,Vy as pt,Vz as Xt,M1 as Yt,VA as en,M5 as tn,Bq as nn,VB as an,VC as on,ls as sn,lv as rn,B$ as cn,BB as mt,BN as dn,bE as ze,cE as un,B_ as Ke,uT as ln,uH as pn,mz as mn,gG as gn,gF as fn,gE as yn,VD as hn,Bt as Cn,C0 as bn,C3 as Sn,C6 as In,Cc as kn,dj as On}from"./zeni-epic-state-CtlpRqoe.js";import{z as K,c as Pe,v as W,H as vn,p as q,a9 as re,j as g,aF as _n,aj as gt,a2 as xn,V as ft,Q as yt,h as X,_ as ge,W as ve,aG as En,F as qe,r as He,af as Tn,aH as Je,aI as wn,aJ as An}from"./index-BqEaHxIT.js";import{n as De}from"./mui-DbFwPEO7.js";import{g as Pn,h as Dn,q as ie}from"./QBOConnectionScreen-a_jxuJVg.js";import{u as Bn,a as jn}from"./useEmailConnectResultRefresh-BtvKv8-C.js";import{u as Fn}from"./useChargeCardPusherEvents-N9Kbq9gN.js";import"./recharts-B43pV0TY.js";import"./analytics-BLHCH9ZW.js";import"./plaid-DHbQ1Fnc.js";import"./dnd-4_dRT_p_.js";import"./stripe-cKAAJElX.js";import"./lottie-CyJj6i4R.js";import"./lexical-BibO8P7-.js";import"./pdf-BfgO0ZZE.js";import"./utils-CPbtTTqo.js";import"./empty-B3p_skJy.js";import"./pdf-lib-B5AjOY9Z.js";import"./index-sGFH656b.js";import"./url-BryZycM8.js";import"./index-Cg11XXLq.js";import"./decodeURIComponentSafe-CNj7wDd5.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]="802a76b5-98f5-47ac-8a9e-ca28cfde31be",e._sentryDebugIdIdentifier="sentry-dbid-802a76b5-98f5-47ac-8a9e-ca28cfde31be")}catch{}})();const Ze=e=>{switch(e){case"Complete":return"yes";case"Pending Review":case"Incomplete":return"partially";default:return"no"}},Vn=()=>{const e=_e(),l=xe(),i=se(),[a,p]=d.useState(!1),[u,c]=d.useState(!1),{tenantEmailDomain:v}=Ee(),t=K.getSignedInUser(),{useFeatureGate:n}=Pe(),{isFeatureEnabled:C}=n(W.isApAgingFeatureEnabled),{isFeatureEnabled:o}=n(W.isArAgingFeatureEnabled),{isFeatureEnabled:A}=n(W.isReferralFeatureEnabled),{isFeatureEnabled:w}=n(W.isDebitCardFeatureEnabled),k=vn(),O=T((S=>Y(S))),P=T((S=>S.onboardingCustomerViewState.fetchState)),_=O.excludedResources,F=O.companyId??K.getSignedInUserTenant(v)?.companyId;if(t==null)throw Error("Can't access onboarding flow without signing in...");const m=Te(w,O),b=we(O),D=[],U=_?.resources?.find((S=>S.resource==="/reports/top_expenses"))==null,h=_?.resources?.find((S=>S.resource==="/reports/task_card"))==null,r=O?.userRole!=null&&Dt(O?.userRole),x=_?.resources?.find((S=>S.resource==="/bills"))==null&&!r,E=_?.resources?.find((S=>S.resource==="/reimbursements"))==null;U===!1&&D.push("top_expenses"),h===!1&&D.push("task_card"),x===!1&&D.push("bill_pay_card","bill_pay_promo_card"),E===!1&&D.push("reimbursement_card","reimbursement_promo_card"),D.push("zeni_accounts_promo_card","treasury_promo_card"),A===!1&&D.push("rewards_card");const f=T((S=>{const V=[];C===!1&&V.push("accounts_payable_aging"),o===!1&&V.push("accounts_receivable_aging"),V.push("zeni_accounts_promo_card","treasury_promo_card"),A===!1&&V.push("rewards_card"),k===!1&&V.push("expense_automation_card");const J=Bt(S,V);return jt(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 B=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((()=>{B.current||(B.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-DXYs6rwe.js";import{i as q,j as _,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-B2JcUSRu.js";import{fF as L,VP as Je,bE as sa,br as Te,Xa as En,ka as Tn,Xb as Yt,Xc as wn,kd as gt,Xd as We,Xe as xn,ki as Dn,Xf as Xt,Xg as Pn,km as bt,Xh as Ze,Xi as Fn,Xj as On,W7 as jn,lo as Rn,Xk as Mn,bn as et,Xl as ra,WN as ue,bc as ia,lC as ca,ll as la,WP as me,WO as ne,fE as da,ga as Bn,gq as Ct,Xm as Un,Xn as Ln,Xo as ua,Xp as Oe,DV as Ue,DW as Le,Ei as we,Ec as pe,D_ as Ve,Xq as Vn,b$ as Ye,Xr as Yn,Xs as Xn,Xt as ma,Xu as je,Xv as Gn,ei as tt,A6 as pa,Xw as Nn,Xx as ha,Xy as $n,Xz as zn,XA as Kn,XB as St,UL as kt,u6 as xe,l$ as De,Es as yt,Ad as qn,Ak as Qn,XC as Wn,XD as Zn,DX as Gt,XE as Hn,A9 as Ie,A4 as fa,XF as be,XG as Nt,XH as Jn,XI as vt,UK as At,Ch as ga,XJ as eo,XK as ba,XL as to,XM as ao,XN as no,XO as It,Cw as oo,CD as so,XP as ro,XQ as io,DZ as $t,XR as co,Cf as Ca,XS as Ce,XT as zt,XU as lo,bq as _a,Ex as Sa,XV as uo,XW as ka,XX as mo,XY as po,XZ as ho,X_ as Et,Ep as fo,Er as go,X$ as bo,Y0 as Co,DY as Kt,Y1 as _o,Ev as ya,Y2 as _e,Y3 as qt,Y4 as So,Y5 as ko,Y6 as va,lQ as Aa,pX as Ia,lV as Ea,pV as Ta,pU as wa,pT as xa,BE as yo,dc as vo,pQ as Ao,U6 as Io,q5 as Eo,Y7 as To,Y8 as wo,Y9 as xo,b5 as Tt,p$ as Do,ic as Po,gI as Fo,p_ as Oo,le as jo,pY as Ro,pW as Mo,d_ as Bo,dZ as Uo}from"./zeni-epic-state-DpjvBN7b.js";import{z as V,aw as se,p as j,j as w,G as Q,bc as Lo,at as Xe,a9 as Ge,bd as Da,W as N,be as Vo,bf as Pa,E as Yo,bg as Xo,bh as Go,a as Fa,a2 as Oa,e as ja,as as No,bi as $o,ap as zo,c as Pe,bj as Ra,s as ce,bk as Ma,bl as Ba,av as Ua,bm as Ko,aj as Ne,Q as $e,v as Y,bn as qo,N as Qo,bo as Wo,H as Zo,h as Ho,a5 as Jo,ar as es,bp as ts,bq as as,br as ns,bs as Ee}from"./index-DoNDPHnj.js";import{n as wt}from"./mui-BLmtkCLd.js";import{a as b}from"./sentry-BmkYxd02.js";import{w as La}from"./withTransactionSidePanel-BJHiJX6z.js";import{c as Va,t as Fe,f as he,b as xt,a as Dt,v as os}from"./routePaths-V2hUGG4a.js";import{u as re}from"./useAskAiCfoHostNavButtonProps-qSqQpxG4.js";import Be from"./NotFoundScreen-tLaFUNLQ.js";import{u as Pt}from"./useInitialThreadRequest-DK2o3yi9.js";import{t as Ya}from"./analyticsHelper-HN-E8Xpa.js";import{C as ss}from"./CompanyPassportScreen-DFwJSL9V.js";import{u as rs}from"./useAiCfoDashboardSuggestedQuestionsChips-Bn69qFOr.js";import{F as is}from"./FeaturePreviewScreen-DWnnuRXB.js";import"./recharts-UN7cJOXN.js";import"./analytics-BDCkEq_I.js";import"./plaid-DHQC2tsw.js";import"./dnd-BAPMa4RJ.js";import"./stripe-cKAAJElX.js";import"./lottie-C9Rxpkwh.js";import"./lexical-DGZ06Yv6.js";import"./pdf-DMCYUxGc.js";import"./utils-BGWE7tXK.js";import"./TransactionDetailScreen-DUQhWS53.js";import"./decodeURIComponentSafe-CIM8Yd6k.js";import"./expenseAutomationHelper-Dd7fQN5z.js";import"./stripSplatSuffix-DXBpTroJ.js";import"./MobileAppDrawer-DEHTsboI.js";import"./InboxNotificationsProvider-B8qyHdbE.js";import"./useTaskManagerAccess-BNcDbxmw.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]="47f1d310-59bb-46ce-be0d-07abb1134caa",e._sentryDebugIdIdentifier="sentry-dbid-47f1d310-59bb-46ce-be0d-07abb1134caa")}catch{}})();const cs=La((function({openTransactionPanel:e,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n}){const{vendorId:o,reportDate:r}=q(),s=V.getSignedInUser(),i=_((E=>E.tenantState.currentTenantId)),l=_((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=_((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"})}),[]),S=b.useCallback(((E,P)=>{C(Yt({sortKey:E,sortOrder:P}))}),[]),T=b.useCallback((E=>{C(Yt({downloadState:E}))}),[]),B=b.useCallback((E=>{if(e)e(E.transactionId,E.transactionType);else if(m!=null){const P=Va({id:E.transactionId,type:E.transactionType},m);g(P);const y=j(p.state?.pathnameStackToGoBack,p.pathname);g(P,{state:{pathnameStackToGoBack:y}})}}),[m,e]),D=b.useCallback((()=>{k.vendor!=null&&w.trackApAgingDetail("AP Aging",u.format(Q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),k.vendor.id,k.vendor.name)}),[k.vendor,u]);return b.useEffect((()=>{I()}),[]),b.useEffect((()=>{k.fetchState==="Completed"&&D()}),[D,k.fetchState]),d.jsx(Lo,{apAgingDetail:k,downloadParams:c,reportDate:u,analytics:w,onTransactionClick:B,onReload:I,onBackClick:v,onColumnSortConfigChanged:S,updateDownloadStateHandler:T,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n})})),ls=()=>{const e=z(),a=J(),t=_((S=>wn(S))),{isAiCfoAccessEnabled:n,onAskAiCfoClick:o}=re({mobileExploreReferrer:"AP Aging"});Xe({isDataReady:t.fetchState==="Completed"});const r=V.getSignedInUser(),s=_((S=>S.tenantState.currentTenantId)),i=_((S=>L(S))),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((S=>{e(We({searchString:S}))}),[]),C=b.useCallback(((S,T)=>{e(We({sortKey:T,sortOrder:S}))}),[]),g=b.useCallback((S=>{a(`./${S}/${h.format(Q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`)}),[h]),k=b.useCallback((S=>{e(We({downloadState:S}))}),[]),I=b.useCallback(((S,T)=>{}),[]),v=b.useCallback(((S,T)=>{e(We({selectedDate:S,agingDateSelectionType:T})),e(gt(S))}),[]);return d.jsxs(d.Fragment,{children:[t.fetchState==="Completed"?d.jsx(Ge,{analytics:w,onLoad:S=>S.trackPageLoaded(N.Event.agingReport,"AP Aging")}):null,d.jsx(Da,{uiState:t.apAgingUIState,report:t,downloadParams:p,analytics:w,onReloadReport:f,onBackClick:c,onSearchTextChange:u,onSortOrderChange:C,onEntityNameClick:g,updateDownloadStateHandler:k,onSelectedDateChanged:v,onNodeCollapseToggled:I,isAiCfoAccessEnabled:n,onAskAiCfoClick:o})]})},ds=La((function({openTransactionPanel:e,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n}){const{customerId:o,reportDate:r}=q(),s=V.getSignedInUser(),i=_((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=_((D=>xn(D,c,o))),k=b.useCallback((()=>{o!=null&&g.fetchState!=="In-Progress"&&g.fetchState!=="Completed"&&u(Dn(o,c))}),[c]),I=b.useCallback((()=>{C("../../",{relative:"path"})}),[]),v=b.useCallback(((D,E)=>{u(Xt({sortKey:D,sortOrder:E}))}),[]),S=b.useCallback((D=>{u(Xt({downloadState:D}))}),[]),T=b.useCallback((D=>{if(e)e(D.transactionId,D.transactionType);else if(l!=null){const E=Va({id:D.transactionId,type:D.transactionType},l);C(E);const P=j(m.state?.pathnameStackToGoBack,m.pathname);C(E,{state:{pathnameStackToGoBack:P}})}}),[l,e]),B=b.useCallback((()=>{g.customer!=null&&w.trackArAgingDetail("AR Aging",c.format(Q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),g.customer.id,g.customer.name)}),[g.customer,c]);return b.useEffect((()=>{k()}),[]),b.useEffect((()=>{g.fetchState==="Completed"&&B()}),[g.fetchState,B]),d.jsx(Vo,{arAgingDetail:g,downloadParams:f,reportDate:c,analytics:w,onTransactionClick:T,onReload:k,onBackClick:I,onColumnSortConfigChanged:v,updateDownloadStateHandler:S,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n})})),us=()=>{const e=z(),a=J(),t=_((v=>Pn(v))),{isAiCfoAccessEnabled:n,onAskAiCfoClick:o}=re({mobileExploreReferrer:"AR Aging"});Xe({isDataReady:t.fetchState==="Completed"});const r=V.getSignedInUser(),s=_((v=>L(v))),i=s.companyName,l={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:s.tenantId},m=b.useMemo((()=>({authParams:l,companyName:i,downloadEndPoint:`${se}/agingReport`,timezone:Je()})),[]),p=t.arAgingUIState.selectedDate??Te(),h=b.useCallback((()=>{t.fetchState!=="In-Progress"&&t.fetchState!=="Completed"&&e(bt(p))}),[]);b.useEffect((()=>{h()}),[]);const f=b.useCallback((()=>{a("../",{relative:"path"})}),[]),c=b.useCallback((v=>{e(Ze({searchString:v}))}),[]),u=b.useCallback(((v,S)=>{e(Ze({sortKey:S,sortOrder:v}))}),[]),C=b.useCallback((v=>{a(`./${v}/${p.format(Q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`)}),[p]),g=b.useCallback((v=>{e(Ze({downloadState:v}))}),[]),k=b.useCallback(((v,S)=>{e(Ze({selectedDate:v,agingDateSelectionType:S})),e(bt(v))}),[]),I=b.useCallback(((v,S)=>{e(Fn({nodeId:v,isCollapsed:S}))}),[]);return d.jsxs(d.Fragment,{children:[t.fetchState==="Completed"?d.jsx(Ge,{analytics:w,onLoad:v=>v.trackPageLoaded(N.Event.agingReport,"AR Aging")}):null,d.jsx(Da,{uiState:t.arAgingUIState,report:t,downloadParams:m,analytics:w,onReloadReport:h,onBackClick:f,onSearchTextChange:c,onSortOrderChange:u,onEntityNameClick:C,updateDownloadStateHandler:g,onSelectedDateChanged:k,onNodeCollapseToggled:I,isAiCfoAccessEnabled:n,onAskAiCfoClick:o})]})},Xa=(e,a)=>({key:a,title:e.accountName,amount:e.balance?.available,logoUri:e.logo?.toString(),source:e});function Ga(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)=>Xa(t,n)));return{sectionTitle:Q.getLocalizedStrings().balanceCard.cashBalanceSectionTitle,transactionArray:a,fetchState:e.cashBalanceState.fetchState,analytics:w}}),Ga)(Pa),ps=oe((function(e){const a=Mn(e).accountsInOrder.map(((o,r)=>Xa(o,r))),t=V.getSignedInUser(),n=et(t);return{sectionTitle:Q.getLocalizedStrings().balanceCard.cardBalanceSectionTitle,transactionArray:a,isZeniUser:n,fetchState:e.cardBalanceState.fetchState,analytics:w}}),Ga)(Pa);function hs(){const e=J(),a=H(),{tenantEmailDomain:t}=q(),n=_((o=>L(o).company?.companyInfo.firstMonthOfFY??1));return _((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=_((o=>L(o).company?.companyInfo.firstMonthOfFY??1));return _((o=>o.cardBalanceState.fetchState))==="Error"?d.jsx(Be,{}):d.jsx(ps,{tenantEmailDomain:t,location:a,referrerType:"Card Balance",navigate:e,firstMonthOfFY:n})}const gs=wt.div`
1
+ import{j as d}from"./liveblocks-C_txwMxP.js";import{i as q,j as _,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-_lmxLuL7.js";import{fF as L,VP as Je,bE as sa,br as Te,Xa as En,ka as Tn,Xb as Yt,Xc as wn,kd as gt,Xd as We,Xe as xn,ki as Dn,Xf as Xt,Xg as Pn,km as bt,Xh as Ze,Xi as Fn,Xj as On,W7 as jn,lo as Rn,Xk as Mn,bn as et,Xl as ra,WN as ue,bc as ia,lC as ca,ll as la,WP as me,WO as ne,fE as da,ga as Bn,gq as Ct,Xm as Un,Xn as Ln,Xo as ua,Xp as Oe,DV as Ue,DW as Le,Ei as we,Ec as pe,D_ as Ve,Xq as Vn,b$ as Ye,Xr as Yn,Xs as Xn,Xt as ma,Xu as je,Xv as Gn,ei as tt,A6 as pa,Xw as Nn,Xx as ha,Xy as $n,Xz as zn,XA as Kn,XB as St,UL as kt,u6 as xe,l$ as De,Es as yt,Ad as qn,Ak as Qn,XC as Wn,XD as Zn,DX as Gt,XE as Hn,A9 as Ie,A4 as fa,XF as be,XG as Nt,XH as Jn,XI as vt,UK as At,Ch as ga,XJ as eo,XK as ba,XL as to,XM as ao,XN as no,XO as It,Cw as oo,CD as so,XP as ro,XQ as io,DZ as $t,XR as co,Cf as Ca,XS as Ce,XT as zt,XU as lo,bq as _a,Ex as Sa,XV as uo,XW as ka,XX as mo,XY as po,XZ as ho,X_ as Et,Ep as fo,Er as go,X$ as bo,Y0 as Co,DY as Kt,Y1 as _o,Ev as ya,Y2 as _e,Y3 as qt,Y4 as So,Y5 as ko,Y6 as va,lQ as Aa,pX as Ia,lV as Ea,pV as Ta,pU as wa,pT as xa,BE as yo,dc as vo,pQ as Ao,U6 as Io,q5 as Eo,Y7 as To,Y8 as wo,Y9 as xo,b5 as Tt,p$ as Do,ic as Po,gI as Fo,p_ as Oo,le as jo,pY as Ro,pW as Mo,d_ as Bo,dZ as Uo}from"./zeni-epic-state-CtlpRqoe.js";import{z as V,aw as se,p as j,j as w,G as Q,bc as Lo,at as Xe,a9 as Ge,bd as Da,W as N,be as Vo,bf as Pa,E as Yo,bg as Xo,bh as Go,a as Fa,a2 as Oa,e as ja,as as No,bi as $o,ap as zo,c as Pe,bj as Ra,s as ce,bk as Ma,bl as Ba,av as Ua,bm as Ko,aj as Ne,Q as $e,v as Y,bn as qo,N as Qo,bo as Wo,H as Zo,h as Ho,a5 as Jo,ar as es,bp as ts,bq as as,br as ns,bs as Ee}from"./index-BqEaHxIT.js";import{n as wt}from"./mui-DbFwPEO7.js";import{a as b}from"./sentry-D_60LtUS.js";import{w as La}from"./withTransactionSidePanel-Dxu14DPo.js";import{c as Va,t as Fe,f as he,b as xt,a as Dt,v as os}from"./routePaths-C1I3AVBw.js";import{u as re}from"./useAskAiCfoHostNavButtonProps-Biynu986.js";import Be from"./NotFoundScreen-BeP62Nz9.js";import{u as Pt}from"./useInitialThreadRequest-CyHRajCC.js";import{t as Ya}from"./analyticsHelper-DhzoozKy.js";import{C as ss}from"./CompanyPassportScreen-CamQRzbi.js";import{u as rs}from"./useAiCfoDashboardSuggestedQuestionsChips-DfcdcxeV.js";import{F as is}from"./FeaturePreviewScreen-8gjXA436.js";import"./recharts-B43pV0TY.js";import"./analytics-BLHCH9ZW.js";import"./plaid-DHbQ1Fnc.js";import"./dnd-4_dRT_p_.js";import"./stripe-cKAAJElX.js";import"./lottie-CyJj6i4R.js";import"./lexical-BibO8P7-.js";import"./pdf-BfgO0ZZE.js";import"./utils-CPbtTTqo.js";import"./TransactionDetailScreen-BDWEHK1J.js";import"./decodeURIComponentSafe-CNj7wDd5.js";import"./expenseAutomationHelper-C8o4PBoS.js";import"./stripSplatSuffix-BWXYYZxG.js";import"./MobileAppDrawer-fNaMEqpG.js";import"./InboxNotificationsProvider-CvLL3Xda.js";import"./useTaskManagerAccess-Cs4MVKyS.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]="47f1d310-59bb-46ce-be0d-07abb1134caa",e._sentryDebugIdIdentifier="sentry-dbid-47f1d310-59bb-46ce-be0d-07abb1134caa")}catch{}})();const cs=La((function({openTransactionPanel:e,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n}){const{vendorId:o,reportDate:r}=q(),s=V.getSignedInUser(),i=_((E=>E.tenantState.currentTenantId)),l=_((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=_((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"})}),[]),S=b.useCallback(((E,P)=>{C(Yt({sortKey:E,sortOrder:P}))}),[]),T=b.useCallback((E=>{C(Yt({downloadState:E}))}),[]),B=b.useCallback((E=>{if(e)e(E.transactionId,E.transactionType);else if(m!=null){const P=Va({id:E.transactionId,type:E.transactionType},m);g(P);const y=j(p.state?.pathnameStackToGoBack,p.pathname);g(P,{state:{pathnameStackToGoBack:y}})}}),[m,e]),D=b.useCallback((()=>{k.vendor!=null&&w.trackApAgingDetail("AP Aging",u.format(Q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),k.vendor.id,k.vendor.name)}),[k.vendor,u]);return b.useEffect((()=>{I()}),[]),b.useEffect((()=>{k.fetchState==="Completed"&&D()}),[D,k.fetchState]),d.jsx(Lo,{apAgingDetail:k,downloadParams:c,reportDate:u,analytics:w,onTransactionClick:B,onReload:I,onBackClick:v,onColumnSortConfigChanged:S,updateDownloadStateHandler:T,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n})})),ls=()=>{const e=z(),a=J(),t=_((S=>wn(S))),{isAiCfoAccessEnabled:n,onAskAiCfoClick:o}=re({mobileExploreReferrer:"AP Aging"});Xe({isDataReady:t.fetchState==="Completed"});const r=V.getSignedInUser(),s=_((S=>S.tenantState.currentTenantId)),i=_((S=>L(S))),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((S=>{e(We({searchString:S}))}),[]),C=b.useCallback(((S,T)=>{e(We({sortKey:T,sortOrder:S}))}),[]),g=b.useCallback((S=>{a(`./${S}/${h.format(Q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`)}),[h]),k=b.useCallback((S=>{e(We({downloadState:S}))}),[]),I=b.useCallback(((S,T)=>{}),[]),v=b.useCallback(((S,T)=>{e(We({selectedDate:S,agingDateSelectionType:T})),e(gt(S))}),[]);return d.jsxs(d.Fragment,{children:[t.fetchState==="Completed"?d.jsx(Ge,{analytics:w,onLoad:S=>S.trackPageLoaded(N.Event.agingReport,"AP Aging")}):null,d.jsx(Da,{uiState:t.apAgingUIState,report:t,downloadParams:p,analytics:w,onReloadReport:f,onBackClick:c,onSearchTextChange:u,onSortOrderChange:C,onEntityNameClick:g,updateDownloadStateHandler:k,onSelectedDateChanged:v,onNodeCollapseToggled:I,isAiCfoAccessEnabled:n,onAskAiCfoClick:o})]})},ds=La((function({openTransactionPanel:e,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n}){const{customerId:o,reportDate:r}=q(),s=V.getSignedInUser(),i=_((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=_((D=>xn(D,c,o))),k=b.useCallback((()=>{o!=null&&g.fetchState!=="In-Progress"&&g.fetchState!=="Completed"&&u(Dn(o,c))}),[c]),I=b.useCallback((()=>{C("../../",{relative:"path"})}),[]),v=b.useCallback(((D,E)=>{u(Xt({sortKey:D,sortOrder:E}))}),[]),S=b.useCallback((D=>{u(Xt({downloadState:D}))}),[]),T=b.useCallback((D=>{if(e)e(D.transactionId,D.transactionType);else if(l!=null){const E=Va({id:D.transactionId,type:D.transactionType},l);C(E);const P=j(m.state?.pathnameStackToGoBack,m.pathname);C(E,{state:{pathnameStackToGoBack:P}})}}),[l,e]),B=b.useCallback((()=>{g.customer!=null&&w.trackArAgingDetail("AR Aging",c.format(Q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),g.customer.id,g.customer.name)}),[g.customer,c]);return b.useEffect((()=>{k()}),[]),b.useEffect((()=>{g.fetchState==="Completed"&&B()}),[g.fetchState,B]),d.jsx(Vo,{arAgingDetail:g,downloadParams:f,reportDate:c,analytics:w,onTransactionClick:T,onReload:k,onBackClick:I,onColumnSortConfigChanged:v,updateDownloadStateHandler:S,panelContent:a,sidePanelIsOpen:t,sidePanelIsFullView:n})})),us=()=>{const e=z(),a=J(),t=_((v=>Pn(v))),{isAiCfoAccessEnabled:n,onAskAiCfoClick:o}=re({mobileExploreReferrer:"AR Aging"});Xe({isDataReady:t.fetchState==="Completed"});const r=V.getSignedInUser(),s=_((v=>L(v))),i=s.companyName,l={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:s.tenantId},m=b.useMemo((()=>({authParams:l,companyName:i,downloadEndPoint:`${se}/agingReport`,timezone:Je()})),[]),p=t.arAgingUIState.selectedDate??Te(),h=b.useCallback((()=>{t.fetchState!=="In-Progress"&&t.fetchState!=="Completed"&&e(bt(p))}),[]);b.useEffect((()=>{h()}),[]);const f=b.useCallback((()=>{a("../",{relative:"path"})}),[]),c=b.useCallback((v=>{e(Ze({searchString:v}))}),[]),u=b.useCallback(((v,S)=>{e(Ze({sortKey:S,sortOrder:v}))}),[]),C=b.useCallback((v=>{a(`./${v}/${p.format(Q.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`)}),[p]),g=b.useCallback((v=>{e(Ze({downloadState:v}))}),[]),k=b.useCallback(((v,S)=>{e(Ze({selectedDate:v,agingDateSelectionType:S})),e(bt(v))}),[]),I=b.useCallback(((v,S)=>{e(Fn({nodeId:v,isCollapsed:S}))}),[]);return d.jsxs(d.Fragment,{children:[t.fetchState==="Completed"?d.jsx(Ge,{analytics:w,onLoad:v=>v.trackPageLoaded(N.Event.agingReport,"AR Aging")}):null,d.jsx(Da,{uiState:t.arAgingUIState,report:t,downloadParams:m,analytics:w,onReloadReport:h,onBackClick:f,onSearchTextChange:c,onSortOrderChange:u,onEntityNameClick:C,updateDownloadStateHandler:g,onSelectedDateChanged:k,onNodeCollapseToggled:I,isAiCfoAccessEnabled:n,onAskAiCfoClick:o})]})},Xa=(e,a)=>({key:a,title:e.accountName,amount:e.balance?.available,logoUri:e.logo?.toString(),source:e});function Ga(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)=>Xa(t,n)));return{sectionTitle:Q.getLocalizedStrings().balanceCard.cashBalanceSectionTitle,transactionArray:a,fetchState:e.cashBalanceState.fetchState,analytics:w}}),Ga)(Pa),ps=oe((function(e){const a=Mn(e).accountsInOrder.map(((o,r)=>Xa(o,r))),t=V.getSignedInUser(),n=et(t);return{sectionTitle:Q.getLocalizedStrings().balanceCard.cardBalanceSectionTitle,transactionArray:a,isZeniUser:n,fetchState:e.cardBalanceState.fetchState,analytics:w}}),Ga)(Pa);function hs(){const e=J(),a=H(),{tenantEmailDomain:t}=q(),n=_((o=>L(o).company?.companyInfo.firstMonthOfFY??1));return _((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=_((o=>L(o).company?.companyInfo.firstMonthOfFY??1));return _((o=>o.cardBalanceState.fetchState))==="Error"?d.jsx(Be,{}):d.jsx(ps,{tenantEmailDomain:t,location:a,referrerType:"Card Balance",navigate:e,firstMonthOfFY:n})}const gs=wt.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -1 +1 @@
1
- import{j as v}from"./liveblocks-DXYs6rwe.js";import{a as u}from"./sentry-BmkYxd02.js";import{u as y,j as b,l as w,g as A,N}from"./core-B2JcUSRu.js";import{TR as R,fF as _,gl as U,TS as k,pS as L,TT as z}from"./zeni-epic-state-DpjvBN7b.js";import{u as j,z as f,L as C,t as I,G as O,b as $}from"./index-DoNDPHnj.js";import"./mui-BLmtkCLd.js";import{t as P}from"./getLocaleForTenant-CHied7Hb.js";import"./recharts-UN7cJOXN.js";import"./analytics-BDCkEq_I.js";import"./plaid-DHQC2tsw.js";import"./dnd-BAPMa4RJ.js";import"./stripe-cKAAJElX.js";import"./lottie-C9Rxpkwh.js";import"./lexical-DGZ06Yv6.js";import"./pdf-DMCYUxGc.js";import"./utils-BGWE7tXK.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]="55485928-c75d-4b55-8405-5ef93bbeb75f",t._sentryDebugIdIdentifier="sentry-dbid-55485928-c75d-4b55-8405-5ef93bbeb75f")}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=>R(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(U(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"&&!k(i))&&t(L(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-C_txwMxP.js";import{a as u}from"./sentry-D_60LtUS.js";import{u as y,j as b,l as w,g as A,N}from"./core-_lmxLuL7.js";import{TR as R,fF as _,gl as U,TS as k,pS as L,TT as z}from"./zeni-epic-state-CtlpRqoe.js";import{u as j,z as f,L as C,t as I,G as O,b as $}from"./index-BqEaHxIT.js";import"./mui-DbFwPEO7.js";import{t as P}from"./getLocaleForTenant-DiPOVD9Y.js";import"./recharts-B43pV0TY.js";import"./analytics-BLHCH9ZW.js";import"./plaid-DHbQ1Fnc.js";import"./dnd-4_dRT_p_.js";import"./stripe-cKAAJElX.js";import"./lottie-CyJj6i4R.js";import"./lexical-BibO8P7-.js";import"./pdf-BfgO0ZZE.js";import"./utils-CPbtTTqo.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]="55485928-c75d-4b55-8405-5ef93bbeb75f",t._sentryDebugIdIdentifier="sentry-dbid-55485928-c75d-4b55-8405-5ef93bbeb75f")}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=>R(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(U(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"&&!k(i))&&t(L(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-DXYs6rwe.js";import{h as w,g as C,j as h,l as E,i as V}from"./core-B2JcUSRu.js";import{YP as k,YW as W,gG as _,gF as Q,gE as K,kP as L,WO as q,uK as J,fF as B,Ym as D,kN as F,YQ as v,YZ as T,kL as G,l6 as j}from"./zeni-epic-state-DpjvBN7b.js";import{bO as M,a2 as N,c as R,z as O,E as U,a5 as p,v as S,a8 as Y,bP as X,F as Z,bQ as ee,p as te}from"./index-DoNDPHnj.js";import{n as z}from"./mui-BLmtkCLd.js";import"./sentry-BmkYxd02.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]="29820d5b-0fed-4a0a-8e01-564bdd25d5ab",e._sentryDebugIdIdentifier="sentry-dbid-29820d5b-0fed-4a0a-8e01-564bdd25d5ab")}catch{}})();const ae=E(null,(function(e,t){return{onSaveVendor:a=>{e(L(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(K(a,"BillPayVendor"))},onResendOtp:a=>{e(Q(a,"BillPayVendor"))},onVerifyOtp:(a,n)=>{e(_(a,n,"BillPayVendor"))},onVerifyOtpSuccess:(a,n,o)=>{e(W(a,n,o))}}}))(M);function H({vendorId:e,billId:t,isExpressPayPage:a}){const n=w(),o=C(),s=h((r=>k(r,e)));return l.jsx(ae,{location:o,navigate:n,vendorId:e,billId:t,vendorViewDetails:s,isExpressPayPage:a??!1})}const ne=z.div`
1
+ import{j as l}from"./liveblocks-C_txwMxP.js";import{h as w,g as C,j as h,l as E,i as V}from"./core-_lmxLuL7.js";import{YP as k,YW as W,gG as _,gF as Q,gE as K,kP as L,WO as q,uK as J,fF as B,Ym as D,kN as F,YQ as v,YZ as T,kL as G,l6 as j}from"./zeni-epic-state-CtlpRqoe.js";import{bO as M,a2 as N,c as R,z as O,E as U,a5 as p,v as S,a8 as Y,bP as X,F as Z,bQ as ee,p as te}from"./index-BqEaHxIT.js";import{n as z}from"./mui-DbFwPEO7.js";import"./sentry-D_60LtUS.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]="29820d5b-0fed-4a0a-8e01-564bdd25d5ab",e._sentryDebugIdIdentifier="sentry-dbid-29820d5b-0fed-4a0a-8e01-564bdd25d5ab")}catch{}})();const ae=E(null,(function(e,t){return{onSaveVendor:a=>{e(L(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(K(a,"BillPayVendor"))},onResendOtp:a=>{e(Q(a,"BillPayVendor"))},onVerifyOtp:(a,n)=>{e(_(a,n,"BillPayVendor"))},onVerifyOtpSuccess:(a,n,o)=>{e(W(a,n,o))}}}))(M);function H({vendorId:e,billId:t,isExpressPayPage:a}){const n=w(),o=C(),s=h((r=>k(r,e)));return l.jsx(ae,{location:o,navigate:n,vendorId:e,billId:t,vendorViewDetails:s,isExpressPayPage:a??!1})}const ne=z.div`
2
2
  display: flex;
3
3
  height: 100vh;
4
4
  width: 100%;
@@ -1 +1 @@
1
- import{j as c}from"./liveblocks-DXYs6rwe.js";import{a2 as d,ac as f,E as l}from"./index-DoNDPHnj.js";import{D as b}from"./mui-BLmtkCLd.js";import"./sentry-BmkYxd02.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-C_txwMxP.js";import{a2 as d,ac as f,E as l}from"./index-BqEaHxIT.js";import{D as b}from"./mui-DbFwPEO7.js";import"./sentry-D_60LtUS.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-DXYs6rwe.js";import{a as d}from"./sentry-BmkYxd02.js";import{h as B,u as A,g as G,i as F,j as l,N,l as q,n as O,o as $}from"./core-B2JcUSRu.js";import{WS as _,fF as M,W8 as R,m$ as Y,S9 as I,WX as z,WN as V,l$ as X,Sa as E,Wd as H,We as J,WP as K,WO as L}from"./zeni-epic-state-DpjvBN7b.js";import{b9 as Q,j as U,a5 as Z,p as tt}from"./index-DoNDPHnj.js";import"./mui-BLmtkCLd.js";import{d as k}from"./decodeURIComponentSafe-CIM8Yd6k.js";import{w as et}from"./withTransactionSidePanel-BJHiJX6z.js";import{f as at,c as nt}from"./routePaths-V2hUGG4a.js";import"./recharts-UN7cJOXN.js";import"./analytics-BDCkEq_I.js";import"./plaid-DHQC2tsw.js";import"./dnd-BAPMa4RJ.js";import"./stripe-cKAAJElX.js";import"./lottie-C9Rxpkwh.js";import"./lexical-DGZ06Yv6.js";import"./pdf-DMCYUxGc.js";import"./utils-BGWE7tXK.js";import"./useAskAiCfoHostNavButtonProps-qSqQpxG4.js";import"./TransactionDetailScreen-DUQhWS53.js";import"./useInitialThreadRequest-DK2o3yi9.js";import"./expenseAutomationHelper-Dd7fQN5z.js";import"./stripSplatSuffix-DXBpTroJ.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]="09fa5dde-0272-4607-86c6-f90ebfcd0ffa",a._sentryDebugIdIdentifier="sentry-dbid-09fa5dde-0272-4607-86c6-f90ebfcd0ffa")}catch{}})();const ot=q((function(a,t){const e=t.entity,o=z(a,t.entity,"EntityDetail");return{selectedEntity:e,autoCompleteData:{autoCompleteText:e.name,entityAutoCompleteView:V(a,"common")},trendWithTransactionsReport:o,analytics:U,isAccountingClassesEnabled:X(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(K({searchString:e,searchOrigin:"common"})):e.trim().length===0&&a(L("common"))},onAutoCompleteEntity:e=>{const o=at(e,t.tenantEmailDomain);a(H()),a(J()),t.resetTrendIsFetchedStates(),t.navigate(o,{replace:!0,state:{pathnameStackToGoBack:t.location.state?.pathnameStackToGoBack}})},onCancelAutoComplete:()=>{const e=Z(t.location.state?.pathnameStackToGoBack),o=e.poppedPathname??b();t.navigate(o,{state:{pathnameStackToGoBack:e.newStack}})}},onTrendSelectedPeriodChange:e=>{if(t.closeSidePanel?.(),e==null)t.defaultTransactionTimePeriod!=null&&a(E(t.entity,"EntityDetail",{timeframe:"quarter",timePeriod:t.defaultTransactionTimePeriod}));else{const o=e.currentTimePeriod==null?e.addTimePeriod:{startDate:e.addTimePeriod.startDate,endDate:e.currentTimePeriod.endDate};a(I(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:e.addTimePeriod})),a(E(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:o}))}}}}))(Q),it=et((function({entityType:a,...t}){const e=B(),o=A(),c=G(),[m,T]=d.useState(!1),[h,D]=d.useState(!1),{tenantEmailDomain:C,entityIdEncoded:W,entityNameEncoded:x}=F(),r=k(W??""),f=k(x??""),p=rt(r,f),j=[r,f].filter((n=>n!=null)),i={name:f,id:r,type:a,zeniId:r,qboId:r},g=l((n=>_(n.customerIncomeState,n.vendorExpenseState,n.trendState,i,"quarter"))),v=l((n=>M(n).company?.companyInfo.firstMonthOfFY??1)),u=l((n=>R(n.trendWithTransactionsState,i,"EntityDetail")));d.useEffect((()=>{m===!1&&p===!0&&(T(!0),o(Y(i)))}),[m,p,i]);const P=l((n=>n.trendState.fetchState)),S=u?.selectedPeriod?.timePeriod??g,w=(function(n,y){return n!=null&&y!=null?{startDate:n.startDate,endDate:y?.endDate}:y})(u?.selectedPeriod?.timePeriod,g);return d.useEffect((()=>{m===!0&&h===!1&&P==="Completed"&&(D(!0),S!=null&&o(I(i,"EntityDetail",{timeframe:u?.selectedPeriod?.timeframe??"quarter",timePeriod:S})))}),[m,h,P]),p?s.jsx(ot,{firstMonthOfFY:v,tenantEmailDomain:C,location:c,navigate:e,entity:i,defaultTransactionTimePeriod:w,resetTrendIsFetchedStates:()=>{T(!1),D(!1)},...t}):s.jsx(N,{to:b(j.length)})})),rt=(a,t)=>t!=null&&t.length>0&&a!=null&&a.length>0,b=(a=2)=>{let t="../";for(let e=0;e<a;e++)t=`${t}../`;return t};function vt({entityType:a}){return s.jsx(O,{children:s.jsx($,{path:"/:entityIdEncoded/:entityNameEncoded/*",element:s.jsx(it,{entityType:a})})})}export{vt as EntityDetailRoutes,vt as default};
1
+ import{j as s}from"./liveblocks-C_txwMxP.js";import{a as d}from"./sentry-D_60LtUS.js";import{h as B,u as A,g as G,i as F,j as l,N,l as q,n as O,o as $}from"./core-_lmxLuL7.js";import{WS as _,fF as M,W8 as R,m$ as Y,S9 as I,WX as z,WN as V,l$ as X,Sa as E,Wd as H,We as J,WP as K,WO as L}from"./zeni-epic-state-CtlpRqoe.js";import{b9 as Q,j as U,a5 as Z,p as tt}from"./index-BqEaHxIT.js";import"./mui-DbFwPEO7.js";import{d as k}from"./decodeURIComponentSafe-CNj7wDd5.js";import{w as et}from"./withTransactionSidePanel-Dxu14DPo.js";import{f as at,c as nt}from"./routePaths-C1I3AVBw.js";import"./recharts-B43pV0TY.js";import"./analytics-BLHCH9ZW.js";import"./plaid-DHbQ1Fnc.js";import"./dnd-4_dRT_p_.js";import"./stripe-cKAAJElX.js";import"./lottie-CyJj6i4R.js";import"./lexical-BibO8P7-.js";import"./pdf-BfgO0ZZE.js";import"./utils-CPbtTTqo.js";import"./useAskAiCfoHostNavButtonProps-Biynu986.js";import"./TransactionDetailScreen-BDWEHK1J.js";import"./useInitialThreadRequest-CyHRajCC.js";import"./expenseAutomationHelper-C8o4PBoS.js";import"./stripSplatSuffix-BWXYYZxG.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]="09fa5dde-0272-4607-86c6-f90ebfcd0ffa",a._sentryDebugIdIdentifier="sentry-dbid-09fa5dde-0272-4607-86c6-f90ebfcd0ffa")}catch{}})();const ot=q((function(a,t){const e=t.entity,o=z(a,t.entity,"EntityDetail");return{selectedEntity:e,autoCompleteData:{autoCompleteText:e.name,entityAutoCompleteView:V(a,"common")},trendWithTransactionsReport:o,analytics:U,isAccountingClassesEnabled:X(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(K({searchString:e,searchOrigin:"common"})):e.trim().length===0&&a(L("common"))},onAutoCompleteEntity:e=>{const o=at(e,t.tenantEmailDomain);a(H()),a(J()),t.resetTrendIsFetchedStates(),t.navigate(o,{replace:!0,state:{pathnameStackToGoBack:t.location.state?.pathnameStackToGoBack}})},onCancelAutoComplete:()=>{const e=Z(t.location.state?.pathnameStackToGoBack),o=e.poppedPathname??b();t.navigate(o,{state:{pathnameStackToGoBack:e.newStack}})}},onTrendSelectedPeriodChange:e=>{if(t.closeSidePanel?.(),e==null)t.defaultTransactionTimePeriod!=null&&a(E(t.entity,"EntityDetail",{timeframe:"quarter",timePeriod:t.defaultTransactionTimePeriod}));else{const o=e.currentTimePeriod==null?e.addTimePeriod:{startDate:e.addTimePeriod.startDate,endDate:e.currentTimePeriod.endDate};a(I(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:e.addTimePeriod})),a(E(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:o}))}}}}))(Q),it=et((function({entityType:a,...t}){const e=B(),o=A(),c=G(),[m,T]=d.useState(!1),[h,D]=d.useState(!1),{tenantEmailDomain:C,entityIdEncoded:W,entityNameEncoded:x}=F(),r=k(W??""),f=k(x??""),p=rt(r,f),j=[r,f].filter((n=>n!=null)),i={name:f,id:r,type:a,zeniId:r,qboId:r},g=l((n=>_(n.customerIncomeState,n.vendorExpenseState,n.trendState,i,"quarter"))),v=l((n=>M(n).company?.companyInfo.firstMonthOfFY??1)),u=l((n=>R(n.trendWithTransactionsState,i,"EntityDetail")));d.useEffect((()=>{m===!1&&p===!0&&(T(!0),o(Y(i)))}),[m,p,i]);const P=l((n=>n.trendState.fetchState)),S=u?.selectedPeriod?.timePeriod??g,w=(function(n,y){return n!=null&&y!=null?{startDate:n.startDate,endDate:y?.endDate}:y})(u?.selectedPeriod?.timePeriod,g);return d.useEffect((()=>{m===!0&&h===!1&&P==="Completed"&&(D(!0),S!=null&&o(I(i,"EntityDetail",{timeframe:u?.selectedPeriod?.timeframe??"quarter",timePeriod:S})))}),[m,h,P]),p?s.jsx(ot,{firstMonthOfFY:v,tenantEmailDomain:C,location:c,navigate:e,entity:i,defaultTransactionTimePeriod:w,resetTrendIsFetchedStates:()=>{T(!1),D(!1)},...t}):s.jsx(N,{to:b(j.length)})})),rt=(a,t)=>t!=null&&t.length>0&&a!=null&&a.length>0,b=(a=2)=>{let t="../";for(let e=0;e<a;e++)t=`${t}../`;return t};function vt({entityType:a}){return s.jsx(O,{children:s.jsx($,{path:"/:entityIdEncoded/:entityNameEncoded/*",element:s.jsx(it,{entityType:a})})})}export{vt as EntityDetailRoutes,vt as default};
@@ -1,4 +1,4 @@
1
- import{j as T}from"./liveblocks-DXYs6rwe.js";import{u as he,h as nt,g as Te,j as _,i as Ue,t as Hn,l as Yn,n as Kn,o as Ye,N as Qn}from"./core-B2JcUSRu.js";import{fF as ke,a0Z as Zn,q0 as _e,U8 as Xn,z$ as es,a0_ as ts,a0$ as as,a10 as ns,a11 as gt,a12 as Qe,gh as Tt,a13 as ca,eW as ss,g0 as os,a14 as ia,a15 as Ze,qT as cs,uN as is,gS as ls,gQ as rs,a16 as ds,r4 as us,rd as ms,qb as ps,qp as wa,gP as re,gR as hs,a17 as Ss,qL as Ra,re as gs,qm as Cs,qh as fs,uT as Is,gO as Me,a18 as tt,C9 as Da,Mu as Fa,a19 as _a,Fs as Ma,a1a as ks,eZ as Ts,e$ as bs,sP as bt,WT as la,WV as Ps,m2 as ys,WW as vs,m9 as Es,dl as As,Ds as Pt,a1b as xs,a1c as ws,fm as yt,sD as ra,WN as Rs,a1d as Ds,a1e as Fs,mb as _s,a1f as Ms,Ra as Os,ma as Us,l$ as Bs,qE as Oa,rj as at,tp as Ua,tL as Vs,T_ as Ba,ri as da,rl as Va,rn as js,bE as zs,ny as Ls,nv as $s,rm as Xe,rk as pe,a1g as Gs,rE as ua,a1h as Ns,a1i as qs,sH as Js,sI as Ws,WJ as Hs,VP as Ys,a0r as Ks,a1j as Qs,WP as ma,WO as Ke,a1k as pa,mq as Zs,a1l as Xs,a1m as eo,a1n as to,a1o as ao,qz as no,a1p as so,a1q as oo,a1r as co,ru as io,md as lo,m4 as ro,a1s as uo,mc as ha,X4 as mo,a1t as po,a1u as ho,uo as So,t$ as go,t_ as Ct,a1v as Co,a1w as fo,a1x as Io,a1y as ko,nJ as To,br as bo,nE as Sa,nq as Po,a1z as yo,g$ as vo,nB as Eo,sR as Ao,sT as xo,sA as wo,VS as Ro,VT as Do,EW as Fo,EV as _o,Fa as Mo,a1A as ga,sG as Oo,a1B as Uo,rU as Bo,r_ as Vo,s9 as jo,rX as zo,a1C as Lo,s8 as $o,sM as Go,a1D as No,sZ as qo,su as Jo,t2 as Wo,sz as Ho,rF as Yo,a1E as Ko,qX as Qo,qv as Zo,qC as Ca,rp as Xo,a1F as ec,a1G as tc,a1H as ac,a1I as nc,a1J as sc,a1K as oc,t6 as cc,a1L as ic,a1M as lc,a1N as fa,uz as rc,tS as dc,tH as Ia,tF as uc,a1O as mc,tu as pc,t9 as hc,tI as Sc,a1P as gc,a1Q as Cc,tf as fc,a1R as Ic,ta as kc,te as Tc,tc as bc,tO as Pc}from"./zeni-epic-state-DpjvBN7b.js";import ja from"./NotFoundScreen-tLaFUNLQ.js";import{a as s,R as za}from"./sentry-BmkYxd02.js";import{n as be,S as yc}from"./mui-BLmtkCLd.js";import{c as Be,v as Y,j as Z,p as te,ar as La,at as $a,dP as vc,dQ as Ec,O as Ga,z as st,dR as Ac,dS as xc,dT as wc,af as Oe,dU as Rc,dV as ka,bb as Ta,dW as Dc,a8 as Na,dX as Fc,h as et,a as _c,dY as Mc,dZ as Oc,V as Uc,Q as Bc,d_ as Vc,d$ as jc,e0 as zc,b5 as Lc,bt as $c,ac as Gc,b6 as Nc,b7 as qc,G as Jc,w as Wc,e1 as Hc,aw as ba,e2 as Yc}from"./index-DoNDPHnj.js";import{u as qa}from"./useAskAiCfoHostNavButtonProps-qSqQpxG4.js";import{g as Pa,b as Kc,c as Qc,h as Zc,a as Xc,i as ei,r as ti,C as ai}from"./TransactionDetailScreen-DUQhWS53.js";import{u as ni}from"./useActualMatchingMatchDetail-RtuBBjbC.js";import{d as si}from"./decodeURIComponentSafe-CIM8Yd6k.js";import{m as Ja,a as Wa}from"./expenseAutomationHelper-Dd7fQN5z.js";import{u as Ha,a as Ya,w as oi}from"./withTransactionSidePanel-BJHiJX6z.js";import{b as ci,S as ii,a as li,J as ri}from"./ScheduleDetailsPrepaidExpensesScreen-bMBkbiJF.js";import{s as ya,i as Ka,h as di,v as ui,c as mi}from"./routePaths-V2hUGG4a.js";import{a as ft}from"./accountMappingHelper-y0E9h6aC.js";import{D as pi}from"./DrawerScreen-Cxs0fLXJ.js";import"./recharts-UN7cJOXN.js";import"./analytics-BDCkEq_I.js";import"./plaid-DHQC2tsw.js";import"./dnd-BAPMa4RJ.js";import"./stripe-cKAAJElX.js";import"./lottie-C9Rxpkwh.js";import"./lexical-DGZ06Yv6.js";import"./pdf-DMCYUxGc.js";import"./utils-BGWE7tXK.js";import"./useInitialThreadRequest-DK2o3yi9.js";import"./stripSplatSuffix-DXBpTroJ.js";import"./pathToGoBack-DqGGHSwL.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]="21c92e34-0f85-4702-9058-a078f4990fc6",t._sentryDebugIdIdentifier="sentry-dbid-21c92e34-0f85-4702-9058-a078f4990fc6")}catch{}})();const hi=()=>{const t=he(),n=nt(),f=Te(),I=_((C=>ke(C))),{useFeatureGate:k}=Be(),{isFeatureEnabled:o}=k(Y.isRealtimeInsightsFeatureEnabled),{isFeatureEnabled:r}=k(Y.aiAuditScorePercentage),E=_((C=>C.expenseAutomationViewState.selectedPeriodByTenantId)),l=_((C=>Zn(C,I.tenantId))),{isAiCfoAccessEnabled:S,onAskAiCfoClick:R}=qa({mobileExploreReferrer:"Month-End Close Overview"}),x=s.useCallback(((C,h,z=!1)=>{t(_e({tenantId:h,period:{month:C.month,year:C.year},refreshViewInBackground:z}))}),[]),m=s.useCallback((C=>{const h=f.state?.referrer;l.monthEndCloseChecks?.auditSummary!=null&&Z.trackMonthCloseAuditPage(C.month,C.year,l.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",l.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,h??null),t(Xn(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&&Z.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}=La();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;Z.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]),T.jsx(Si,{children:T.jsx(vc,{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})})},Si=be.div`
1
+ import{j as T}from"./liveblocks-C_txwMxP.js";import{u as he,h as nt,g as Te,j as _,i as Ue,t as Hn,l as Yn,n as Kn,o as Ye,N as Qn}from"./core-_lmxLuL7.js";import{fF as ke,a0Z as Zn,q0 as _e,U8 as Xn,z$ as es,a0_ as ts,a0$ as as,a10 as ns,a11 as gt,a12 as Qe,gh as Tt,a13 as ca,eW as ss,g0 as os,a14 as ia,a15 as Ze,qT as cs,uN as is,gS as ls,gQ as rs,a16 as ds,r4 as us,rd as ms,qb as ps,qp as wa,gP as re,gR as hs,a17 as Ss,qL as Ra,re as gs,qm as Cs,qh as fs,uT as Is,gO as Me,a18 as tt,C9 as Da,Mu as Fa,a19 as _a,Fs as Ma,a1a as ks,eZ as Ts,e$ as bs,sP as bt,WT as la,WV as Ps,m2 as ys,WW as vs,m9 as Es,dl as As,Ds as Pt,a1b as xs,a1c as ws,fm as yt,sD as ra,WN as Rs,a1d as Ds,a1e as Fs,mb as _s,a1f as Ms,Ra as Os,ma as Us,l$ as Bs,qE as Oa,rj as at,tp as Ua,tL as Vs,T_ as Ba,ri as da,rl as Va,rn as js,bE as zs,ny as Ls,nv as $s,rm as Xe,rk as pe,a1g as Gs,rE as ua,a1h as Ns,a1i as qs,sH as Js,sI as Ws,WJ as Hs,VP as Ys,a0r as Ks,a1j as Qs,WP as ma,WO as Ke,a1k as pa,mq as Zs,a1l as Xs,a1m as eo,a1n as to,a1o as ao,qz as no,a1p as so,a1q as oo,a1r as co,ru as io,md as lo,m4 as ro,a1s as uo,mc as ha,X4 as mo,a1t as po,a1u as ho,uo as So,t$ as go,t_ as Ct,a1v as Co,a1w as fo,a1x as Io,a1y as ko,nJ as To,br as bo,nE as Sa,nq as Po,a1z as yo,g$ as vo,nB as Eo,sR as Ao,sT as xo,sA as wo,VS as Ro,VT as Do,EW as Fo,EV as _o,Fa as Mo,a1A as ga,sG as Oo,a1B as Uo,rU as Bo,r_ as Vo,s9 as jo,rX as zo,a1C as Lo,s8 as $o,sM as Go,a1D as No,sZ as qo,su as Jo,t2 as Wo,sz as Ho,rF as Yo,a1E as Ko,qX as Qo,qv as Zo,qC as Ca,rp as Xo,a1F as ec,a1G as tc,a1H as ac,a1I as nc,a1J as sc,a1K as oc,t6 as cc,a1L as ic,a1M as lc,a1N as fa,uz as rc,tS as dc,tH as Ia,tF as uc,a1O as mc,tu as pc,t9 as hc,tI as Sc,a1P as gc,a1Q as Cc,tf as fc,a1R as Ic,ta as kc,te as Tc,tc as bc,tO as Pc}from"./zeni-epic-state-CtlpRqoe.js";import ja from"./NotFoundScreen-BeP62Nz9.js";import{a as s,R as za}from"./sentry-D_60LtUS.js";import{n as be,S as yc}from"./mui-DbFwPEO7.js";import{c as Be,v as Y,j as Z,p as te,ar as La,at as $a,dP as vc,dQ as Ec,O as Ga,z as st,dR as Ac,dS as xc,dT as wc,af as Oe,dU as Rc,dV as ka,bb as Ta,dW as Dc,a8 as Na,dX as Fc,h as et,a as _c,dY as Mc,dZ as Oc,V as Uc,Q as Bc,d_ as Vc,d$ as jc,e0 as zc,b5 as Lc,bt as $c,ac as Gc,b6 as Nc,b7 as qc,G as Jc,w as Wc,e1 as Hc,aw as ba,e2 as Yc}from"./index-BqEaHxIT.js";import{u as qa}from"./useAskAiCfoHostNavButtonProps-Biynu986.js";import{g as Pa,b as Kc,c as Qc,h as Zc,a as Xc,i as ei,r as ti,C as ai}from"./TransactionDetailScreen-BDWEHK1J.js";import{u as ni}from"./useActualMatchingMatchDetail-BOc11rCC.js";import{d as si}from"./decodeURIComponentSafe-CNj7wDd5.js";import{m as Ja,a as Wa}from"./expenseAutomationHelper-C8o4PBoS.js";import{u as Ha,a as Ya,w as oi}from"./withTransactionSidePanel-Dxu14DPo.js";import{b as ci,S as ii,a as li,J as ri}from"./ScheduleDetailsPrepaidExpensesScreen-C4z4GiyE.js";import{s as ya,i as Ka,h as di,v as ui,c as mi}from"./routePaths-C1I3AVBw.js";import{a as ft}from"./accountMappingHelper-DTr2dybD.js";import{D as pi}from"./DrawerScreen-2p7xfq2O.js";import"./recharts-B43pV0TY.js";import"./analytics-BLHCH9ZW.js";import"./plaid-DHbQ1Fnc.js";import"./dnd-4_dRT_p_.js";import"./stripe-cKAAJElX.js";import"./lottie-CyJj6i4R.js";import"./lexical-BibO8P7-.js";import"./pdf-BfgO0ZZE.js";import"./utils-CPbtTTqo.js";import"./useInitialThreadRequest-CyHRajCC.js";import"./stripSplatSuffix-BWXYYZxG.js";import"./pathToGoBack-W4B39XGQ.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]="21c92e34-0f85-4702-9058-a078f4990fc6",t._sentryDebugIdIdentifier="sentry-dbid-21c92e34-0f85-4702-9058-a078f4990fc6")}catch{}})();const hi=()=>{const t=he(),n=nt(),f=Te(),I=_((C=>ke(C))),{useFeatureGate:k}=Be(),{isFeatureEnabled:o}=k(Y.isRealtimeInsightsFeatureEnabled),{isFeatureEnabled:r}=k(Y.aiAuditScorePercentage),E=_((C=>C.expenseAutomationViewState.selectedPeriodByTenantId)),l=_((C=>Zn(C,I.tenantId))),{isAiCfoAccessEnabled:S,onAskAiCfoClick:R}=qa({mobileExploreReferrer:"Month-End Close Overview"}),x=s.useCallback(((C,h,z=!1)=>{t(_e({tenantId:h,period:{month:C.month,year:C.year},refreshViewInBackground:z}))}),[]),m=s.useCallback((C=>{const h=f.state?.referrer;l.monthEndCloseChecks?.auditSummary!=null&&Z.trackMonthCloseAuditPage(C.month,C.year,l.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",l.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,h??null),t(Xn(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&&Z.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}=La();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;Z.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]),T.jsx(Si,{children:T.jsx(vc,{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})})},Si=be.div`
2
2
  display: flex;
3
3
  height: 100vh;
4
4
  width: 100%;
@@ -1 +1 @@
1
- import{j as s}from"./liveblocks-DXYs6rwe.js";import{a as r}from"./sentry-BmkYxd02.js";import{ax as l,ay as p,o as d,a5 as f}from"./index-DoNDPHnj.js";import"./mui-BLmtkCLd.js";import m from"./NotFoundScreen-tLaFUNLQ.js";import{h as u,g as b}from"./core-B2JcUSRu.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new a.Error().stack;e&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[e]="60a0e4fc-cea0-4b94-9a7a-0ae511272ea9",a._sentryDebugIdIdentifier="sentry-dbid-60a0e4fc-cea0-4b94-9a7a-0ae511272ea9")}catch{}})();const _=()=>{const a=u(),e=b(),t=r.useCallback((()=>{window.open("https://www.zeni.ai/demo/request","_blank")}),[]),i=r.useCallback((()=>{(()=>{const n=f(e.state?.pathnameStackToGoBack),c=n.poppedPathname??k();a(c,{state:{pathnameStackToGoBack:n.newStack}})})()}),[]),o=l(e.pathname);return o!=null?s.jsx(p,{menuItem:d(o),onDemoClick:t,onGoBack:i}):s.jsx(m,{})},k=(a=2)=>{let e="../";for(let t=0;t<a;t++)e=`${e}../`;return e};export{_ as F};
1
+ import{j as s}from"./liveblocks-C_txwMxP.js";import{a as r}from"./sentry-D_60LtUS.js";import{ax as l,ay as p,o as d,a5 as f}from"./index-BqEaHxIT.js";import"./mui-DbFwPEO7.js";import m from"./NotFoundScreen-BeP62Nz9.js";import{h as u,g as b}from"./core-_lmxLuL7.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new a.Error().stack;e&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[e]="60a0e4fc-cea0-4b94-9a7a-0ae511272ea9",a._sentryDebugIdIdentifier="sentry-dbid-60a0e4fc-cea0-4b94-9a7a-0ae511272ea9")}catch{}})();const _=()=>{const a=u(),e=b(),t=r.useCallback((()=>{window.open("https://www.zeni.ai/demo/request","_blank")}),[]),i=r.useCallback((()=>{(()=>{const n=f(e.state?.pathnameStackToGoBack),c=n.poppedPathname??k();a(c,{state:{pathnameStackToGoBack:n.newStack}})})()}),[]),o=l(e.pathname);return o!=null?s.jsx(p,{menuItem:d(o),onDemoClick:t,onGoBack:i}):s.jsx(m,{})},k=(a=2)=>{let e="../";for(let t=0;t<a;t++)e=`${e}../`;return e};export{_ as F};
@@ -1 +1 @@
1
- import{a as r}from"./sentry-BmkYxd02.js";import{u as l,h as m,g as p}from"./core-B2JcUSRu.js";import{hY as f,Uv as g,Uw as _}from"./zeni-epic-state-DpjvBN7b.js";import{u as h,L as b,z as y}from"./index-DoNDPHnj.js";import"./liveblocks-DXYs6rwe.js";import"./recharts-UN7cJOXN.js";import"./mui-BLmtkCLd.js";import"./analytics-BDCkEq_I.js";import"./plaid-DHQC2tsw.js";import"./dnd-BAPMa4RJ.js";import"./stripe-cKAAJElX.js";import"./lottie-C9Rxpkwh.js";import"./lexical-DGZ06Yv6.js";import"./pdf-DMCYUxGc.js";import"./utils-BGWE7tXK.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]="12671680-e636-4380-9aa0-0e93405c9332",e._sentryDebugIdIdentifier="sentry-dbid-12671680-e636-4380-9aa0-0e93405c9332")}catch{}})();function j(){const e=l(),n=m(),o=p(),{setLoading:i,clearAllLoading:d}=h(),s=r.useRef(!1);return r.useLayoutEffect((()=>{i(b.CONNECTION_AUTH)}),[i]),r.useEffect((()=>{if(s.current)return;s.current=!0;const a=new URLSearchParams(o.search).get("code"),u=sessionStorage.getItem("hubspot_oauth_pending");if(sessionStorage.removeItem("hubspot_oauth_pending"),a!=null&&u!=null){const t=JSON.parse(u);e(f(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 c=y.getActiveTenantForUser();n(c?.tenantEmailDomain!=null?`/${c.tenantEmailDomain}/settings/integrations`:"/",{replace:!0})}),[]),null}export{j as default};
1
+ import{a as r}from"./sentry-D_60LtUS.js";import{u as l,h as m,g as p}from"./core-_lmxLuL7.js";import{hY as f,Uv as g,Uw as _}from"./zeni-epic-state-CtlpRqoe.js";import{u as h,L as b,z as y}from"./index-BqEaHxIT.js";import"./liveblocks-C_txwMxP.js";import"./recharts-B43pV0TY.js";import"./mui-DbFwPEO7.js";import"./analytics-BLHCH9ZW.js";import"./plaid-DHbQ1Fnc.js";import"./dnd-4_dRT_p_.js";import"./stripe-cKAAJElX.js";import"./lottie-CyJj6i4R.js";import"./lexical-BibO8P7-.js";import"./pdf-BfgO0ZZE.js";import"./utils-CPbtTTqo.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]="12671680-e636-4380-9aa0-0e93405c9332",e._sentryDebugIdIdentifier="sentry-dbid-12671680-e636-4380-9aa0-0e93405c9332")}catch{}})();function j(){const e=l(),n=m(),o=p(),{setLoading:i,clearAllLoading:d}=h(),s=r.useRef(!1);return r.useLayoutEffect((()=>{i(b.CONNECTION_AUTH)}),[i]),r.useEffect((()=>{if(s.current)return;s.current=!0;const a=new URLSearchParams(o.search).get("code"),u=sessionStorage.getItem("hubspot_oauth_pending");if(sessionStorage.removeItem("hubspot_oauth_pending"),a!=null&&u!=null){const t=JSON.parse(u);e(f(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 c=y.getActiveTenantForUser();n(c?.tenantEmailDomain!=null?`/${c.tenantEmailDomain}/settings/integrations`:"/",{replace:!0})}),[]),null}export{j as default};
@@ -1 +1 @@
1
- import{n as s}from"./liveblocks-DXYs6rwe.js";import{j as d}from"./core-B2JcUSRu.js";import{fF as a}from"./zeni-epic-state-DpjvBN7b.js";import"./sentry-BmkYxd02.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-C_txwMxP.js";import{j as d}from"./core-_lmxLuL7.js";import{fF as a}from"./zeni-epic-state-CtlpRqoe.js";import"./sentry-D_60LtUS.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};