@zeniai/web-app-ui 5.1.43-qa → 5.1.44-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 (144) hide show
  1. package/dist/assets/AddressRoutes-8gRhHPlq.js +1 -0
  2. package/dist/assets/AddressScreen-DPs7jKyd.js +9 -0
  3. package/dist/assets/AiCfoScreen-Bp7iBQCF.js +22 -0
  4. package/dist/assets/BillPayApprovalRoutes-DwElFGIC.js +1 -0
  5. package/dist/assets/{BillPayRoutes-DpuTjsMR.js → BillPayRoutes-CcQHQh3Z.js} +33 -33
  6. package/dist/assets/BusinessVerificationPageScreen-CRI_zbAG.js +9 -0
  7. package/dist/assets/CardsAiCfoScreen-Cn4K24os.js +14 -0
  8. package/dist/assets/ChargeCardRoutes-D8Tom0l5.js +71 -0
  9. package/dist/assets/{CompanyPassportScreen-CkTypD0l.js → CompanyPassportScreen-DPJK2btv.js} +1 -1
  10. package/dist/assets/ConnectionAuthScreen-DDGywryh.js +11 -0
  11. package/dist/assets/CustomerOnboardingAuthScreen-DnJWeWwh.js +1 -0
  12. package/dist/assets/{CustomerOnboardingRoutes-p0cpGS6_.js → CustomerOnboardingRoutes-CAThwW9P.js} +4 -4
  13. package/dist/assets/{DashboardRoutes-tATNPR5U.js → DashboardRoutes-CafL1C3x.js} +4 -4
  14. package/dist/assets/DefaultTenantHome-BDsIXAxj.js +1 -0
  15. package/dist/assets/DomesticWireDetailScreen-DdvB-Hbh.js +18 -0
  16. package/dist/assets/DrawerScreen-BMmlRoqi.js +1 -0
  17. package/dist/assets/EntityDetailRoutes-CnMM1wvf.js +1 -0
  18. package/dist/assets/ExpenseAutomationRoutes-V-R3AFJQ.js +25 -0
  19. package/dist/assets/FeaturePreviewScreen-CBC6jNb-.js +1 -0
  20. package/dist/assets/HubSpotOAuthCallbackScreen-CPP6O7Kt.js +1 -0
  21. package/dist/assets/MagicLinkRoutes-BVmPAQoY.js +72 -0
  22. package/dist/assets/MagicLinkSignInScreen-COv9DoLZ.js +12 -0
  23. package/dist/assets/MobileAppDrawer-BpbByRGV.js +1 -0
  24. package/dist/assets/NotFoundScreen-CiwLb5Sm.js +1 -0
  25. package/dist/assets/{NotificationRoutes-C6yJ-31r.js → NotificationRoutes-DeCoRUH5.js} +1 -1
  26. package/dist/assets/OAuthConsentScreen-C5rnSpaM.js +1 -0
  27. package/dist/assets/PandLWithForecastRoutes-CgREv28H.js +1 -0
  28. package/dist/assets/PeopleRoutes-Cvh7SESL.js +22 -0
  29. package/dist/assets/PerformanceRoutes-DZB5u4lB.js +1 -0
  30. package/dist/assets/{Preview-BOFsct5q.js → Preview-CFdBsxvl.js} +1 -1
  31. package/dist/assets/{QBOConnectionScreen-C5K7algH.js → QBOConnectionScreen-L9petFDu.js} +1 -1
  32. package/dist/assets/ReferralListScreen-Cz3Ll36o.js +5 -0
  33. package/dist/assets/ReimbursementApprovalRoutes-DcR9SJt8.js +1 -0
  34. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-BWvmXZpb.js → ReimbursementApprovalRuleDetailScreen-BdjIgOOJ.js} +1 -1
  35. package/dist/assets/{ReimbursementRoutes-CUt7FfG0.js → ReimbursementRoutes-BOGqzYA3.js} +9 -9
  36. package/dist/assets/ReportsRoutes-tKvN7scu.js +1 -0
  37. package/dist/assets/RewardsRoutes-DUkSJAe0.js +1 -0
  38. package/dist/assets/ScreenRoutes-DvorYiQN.js +2 -0
  39. package/dist/assets/{SettingsRoutes-CZ-QcCUZ.js → SettingsRoutes-BdrupBKM.js} +8 -8
  40. package/dist/assets/{SetupPagesScreen-B0vtALs4.js → SetupPagesScreen-C1DrVmba.js} +5 -5
  41. package/dist/assets/SignInScreen-BcivZgMD.js +1 -0
  42. package/dist/assets/SignOutScreen-x33X8VDG.js +9 -0
  43. package/dist/assets/TaskListScreen-CKfjqqhC.js +9 -0
  44. package/dist/assets/TaskRoutes-BNGauwWr.js +9 -0
  45. package/dist/assets/TransactionDetailRoutes-DoEO9RhU.js +1 -0
  46. package/dist/assets/{TransactionDetailScreen-CZdGyLYX.js → TransactionDetailScreen-BabZW4yC.js} +2 -2
  47. package/dist/assets/TransactionListRoutes-73dX3i3x.js +1 -0
  48. package/dist/assets/TreasuryRoutes-BXTQGc91.js +37 -0
  49. package/dist/assets/{VendorsRoutes-CSRkpZD2.js → VendorsRoutes-CgVxrKP3.js} +27 -27
  50. package/dist/assets/WiseConfirmationScreen-egcHJS2j.js +12 -0
  51. package/dist/assets/ZeniAccountRoutes-CtmM7uy-.js +57 -0
  52. package/dist/assets/ZeniAccountStatementScreen-BiD6-8br.js +9 -0
  53. package/dist/assets/{accountMappingHelper-7qi69rN8.js → accountMappingHelper-CUOH4oaZ.js} +1 -1
  54. package/dist/assets/{analytics-D_2lhI0W.js → analytics-CVef-z80.js} +1 -1
  55. package/dist/assets/{analyticsHelper-CeM0YDjK.js → analyticsHelper-BLGte-6z.js} +1 -1
  56. package/dist/assets/{core-C82y6_-U.js → core-BZimyUuM.js} +2 -2
  57. package/dist/assets/{decodeURIComponentSafe-BbPXryX6.js → decodeURIComponentSafe-CfH0YvB4.js} +1 -1
  58. package/dist/assets/{dnd-CyXN5LMk.js → dnd-Ck7mLEKI.js} +1 -1
  59. package/dist/assets/{empty-DX3tmlt3.js → empty-B1O8rDIf.js} +1 -1
  60. package/dist/assets/{index-znrx-DTr.js → empty-CDMj19T8.js} +1 -1
  61. package/dist/assets/{emptyVideoElement-B_d_d3Fz.js → emptyVideoElement-DHeCITuJ.js} +1 -1
  62. package/dist/assets/epic-C8TvJLbh.js +2 -0
  63. package/dist/assets/{getLocaleForTenant-D0DGp3hd.js → getLocaleForTenant-D-xlVXss.js} +1 -1
  64. package/dist/assets/{index-Ou6bUwYI.js → index-B4buEPtI.js} +1 -1
  65. package/dist/assets/{index-6fAmgTTi.js → index-BHYDqIxo.js} +1 -1
  66. package/dist/assets/{index-R6GjjTB3.css → index-BUmr5maU.css} +1 -1
  67. package/dist/assets/{index-CBp2W3GN.js → index-BX9FlrZ4.js} +2 -2
  68. package/dist/assets/{index-p3KhEgRt.js → index-CGgy5RAo.js} +1 -1
  69. package/dist/assets/{index-DlaEaq7J.js → index-CWDdvACz.js} +19408 -17074
  70. package/dist/assets/{index-CTBZrfHG.js → index-DUwckqJX.js} +1 -1
  71. package/dist/assets/index-W-rD4OTh.js +1 -0
  72. package/dist/assets/index-ky9cAsxd.js +1 -0
  73. package/dist/assets/{lexical-Cp2QekuT.js → lexical-D_s6IbSB.js} +1 -1
  74. package/dist/assets/{liveblocks-BseLVJU2.js → liveblocks-PtDFv95_.js} +1 -1
  75. package/dist/assets/{lottie-j5BULCEN.js → lottie-D7iBAvwy.js} +1 -1
  76. package/dist/assets/{mui-nQfThAws.js → mui-BcLZDyi8.js} +1 -1
  77. package/dist/assets/{pathToGoBack-VglVbow6.js → pathToGoBack-Bmk3vSys.js} +1 -1
  78. package/dist/assets/{pdf-D7OKXbf1.js → pdf-CPbk6pQ4.js} +3 -3
  79. package/dist/assets/{pdf-lib-DAdwzRbE.js → pdf-lib-DYmF-pgM.js} +1 -1
  80. package/dist/assets/{plaid-DL8Esf27.js → plaid-CooQT--5.js} +1 -1
  81. package/dist/assets/{pusher-Bz1-8Fl2.js → pusher-KpZt7gt8.js} +1 -1
  82. package/dist/assets/{react-C_5ymT49.js → react-1GR8h5rv.js} +1 -1
  83. package/dist/assets/{react-BRDqB9W_.js → react-BByj9tRX.js} +1 -1
  84. package/dist/assets/{react-X1aK4j56.js → react-C5ff31Q5.js} +1 -1
  85. package/dist/assets/{react-Bs5go5u9.js → react-CgKzDvVo.js} +1 -1
  86. package/dist/assets/{react-DiOgHrWi.js → react-jDouMY6r.js} +1 -1
  87. package/dist/assets/{react-BK1UGC0y.js → react-xjRx_xkd.js} +1 -1
  88. package/dist/assets/{recharts-CjabXRup.js → recharts-Nefi66IQ.js} +1 -1
  89. package/dist/assets/{routePaths-CG9FBSKj.js → routePaths-BrOGk8hR.js} +1 -1
  90. package/dist/assets/{sentry-nbOh2gVl.js → sentry-mCXLUbmc.js} +1 -1
  91. package/dist/assets/{url-Ddh1VLFV.js → url-DwL5mRAv.js} +1 -1
  92. package/dist/assets/{url-BpeWvbs7.js → url-V8qFg-31.js} +1 -1
  93. package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-CaMc_gFS.js → useAiCfoDashboardSuggestedQuestionsChips-CRuBS_0m.js} +1 -1
  94. package/dist/assets/useAskAiCfoHostNavButtonProps-0ZlblxUj.js +1 -0
  95. package/dist/assets/{useDeviceId-D59OJwzF.js → useDeviceId-r7OfXqIX.js} +1 -1
  96. package/dist/assets/useInitialThreadRequest-DE3A7e2N.js +1 -0
  97. package/dist/assets/{utils-CvRuvFNB.js → utils-C9yOAUzR.js} +2 -2
  98. package/dist/assets/{withTransactionSidePanel-CENZXrC_.js → withTransactionSidePanel-3L4TkBmm.js} +4 -4
  99. package/dist/assets/{zeni-epic-state-DK35Ac89.js → zeni-epic-state-D1RAQ_Ab.js} +6 -6
  100. package/dist/index.html +1 -1
  101. package/package.json +4 -4
  102. package/dist/assets/AddressRoutes-CcTSTA5V.js +0 -1
  103. package/dist/assets/AddressScreen-CxFRx6y8.js +0 -9
  104. package/dist/assets/AiCfoScreen-v_UHYX5H.js +0 -22
  105. package/dist/assets/BillPayApprovalRoutes-Dx4kp6aP.js +0 -1
  106. package/dist/assets/BusinessVerificationPageScreen-CD_d1aA7.js +0 -9
  107. package/dist/assets/ChargeCardRoutes-D_jMUMn5.js +0 -71
  108. package/dist/assets/ConnectionAuthScreen-BO6tNW_i.js +0 -11
  109. package/dist/assets/CustomerOnboardingAuthScreen-BQTEevJE.js +0 -1
  110. package/dist/assets/DefaultTenantHome-DW91iI8A.js +0 -1
  111. package/dist/assets/DomesticWireDetailScreen-DLvzA5aP.js +0 -18
  112. package/dist/assets/DrawerScreen-wBYMk6z5.js +0 -1
  113. package/dist/assets/EntityDetailRoutes-dn6ytKJk.js +0 -1
  114. package/dist/assets/ExpenseAutomationRoutes-BJJhBgdM.js +0 -25
  115. package/dist/assets/FeaturePreviewScreen-DpEWuYMb.js +0 -1
  116. package/dist/assets/HubSpotOAuthCallbackScreen-B48i3kyD.js +0 -1
  117. package/dist/assets/MagicLinkRoutes-CtaUZW_a.js +0 -72
  118. package/dist/assets/MagicLinkSignInScreen-BstuuZw2.js +0 -12
  119. package/dist/assets/MobileAppDrawer-my2gXRON.js +0 -1
  120. package/dist/assets/NotFoundScreen-Cavr5OZ5.js +0 -1
  121. package/dist/assets/OAuthConsentScreen-lwbeCh7K.js +0 -1
  122. package/dist/assets/PandLWithForecastRoutes-D637fw1Q.js +0 -1
  123. package/dist/assets/PeopleRoutes-BGX7NZx4.js +0 -22
  124. package/dist/assets/PerformanceRoutes-Dzmu8rxA.js +0 -1
  125. package/dist/assets/ReferralListScreen-By68lS7j.js +0 -5
  126. package/dist/assets/ReimbursementApprovalRoutes-dG4HhI52.js +0 -1
  127. package/dist/assets/ReportsRoutes-CGQq3vWF.js +0 -1
  128. package/dist/assets/RewardsRoutes-DzQTDQIy.js +0 -1
  129. package/dist/assets/ScreenRoutes-oHxJeUhX.js +0 -2
  130. package/dist/assets/SignInScreen-CdQadifF.js +0 -1
  131. package/dist/assets/SignOutScreen-B-oefRFI.js +0 -9
  132. package/dist/assets/TaskListScreen-BOeQ2Ysx.js +0 -9
  133. package/dist/assets/TaskRoutes-DVKoHi_C.js +0 -9
  134. package/dist/assets/TransactionDetailRoutes-BXQFeLeP.js +0 -1
  135. package/dist/assets/TransactionListRoutes-C9U3e5RD.js +0 -1
  136. package/dist/assets/TreasuryRoutes-Cp3y5FjP.js +0 -37
  137. package/dist/assets/WiseConfirmationScreen-BTq0X5O3.js +0 -12
  138. package/dist/assets/ZeniAccountRoutes-BihpI_1F.js +0 -57
  139. package/dist/assets/ZeniAccountStatementScreen-pf4zuTKs.js +0 -9
  140. package/dist/assets/empty-DC6WyGX-.js +0 -1
  141. package/dist/assets/epic-BXf2MTxk.js +0 -2
  142. package/dist/assets/index-YBA2AvO7.js +0 -1
  143. package/dist/assets/useAskAiCfoHostNavButtonProps-DoDP7B3S.js +0 -1
  144. package/dist/assets/useInitialThreadRequest-CU3qAAey.js +0 -1
@@ -1,25 +0,0 @@
1
- import{j as h}from"./liveblocks-BseLVJU2.js";import aa from"./NotFoundScreen-Cavr5OZ5.js";import{a as o,b as Nt}from"./sentry-nbOh2gVl.js";import{n as Ue,S as oa}from"./mui-nQfThAws.js";import{u as pe,h as Jt,g as Ye,j as w,n as sa,i as wt,o as ca,p as qe}from"./core-C82y6_-U.js";import{eR as Pe,QF as ia,nq as Ee,fl as la,rd as ra,nI as Yt,o1 as Kt,QG as Ht,ob as da,QH as Wt,nB as ua,qL as ma,f5 as Ie,QI as De,tc as Zt,Cx as Xt,QJ as en,QK as pa,qj as Ke,Mc as xt,Me as ha,jL as ga,Mf as Ca,jS as Sa,cV as fa,up as He,nO as tn,og as Fe,nG as le,QL as Ia,L5 as Pt,L4 as Re,QM as Dt,k7 as Ea,QN as ya,QO as ka,QP as ba,QQ as Ta,nV as va,oj as we,QR as Aa,QS as Ra,QT as wa,oq as xa,jW as Pa,jN as Da,QU as Fa,jV as Ft,Mm as Ua,QV as Ba,QW as Va,qf as Oa,pT as _a,oh as me,pS as Ge,QX as Ma,QY as za,QZ as ja,lq as La,bq as $a,ll as Ut,l7 as Qa,Q_ as qa,gV as Bt,fW as Ga,li as Na,wi as Ja,Q$ as Ya,oR as Ka,oM as Ha,oQ as Wa,oB as Za,R0 as Xa,f8 as nn,o4 as eo,nR as to,fm as Vt,ol as no,R1 as ao,R2 as oo,oi as an,R3 as so,R4 as co,R5 as io,R6 as lo,R7 as Ot,qr as ro,pK as uo,L3 as mo,R8 as po,R9 as ho,jU as go,Ra as Co,Hb as So,jT as fo,jI as Io,f7 as Eo,ph as on,pC as yo,of as _t,ok as ko,bE as bo,lf as To,lc as vo,Rb as Ao,oA as Mt,py as zt,pw as Ro,Rc as wo,p2 as xo,p0 as Po,pz as Do,Rd as Fo,Re as Uo,p6 as Bo,Rf as Vo,oW as Oo,p5 as _o,p3 as Mo,pF as zo}from"./zeni-epic-state-DK35Ac89.js";import{s as sn,d as ne,c as Q,w as te,X as cn,Z as ln,cG as jo,z as Be,cH as Lo,at as xe,cI as $o,aU as jt,B as rn,cJ as Qo,aq as Ne,D as qo,a7 as Go,cK as No,a2 as Jo,cL as Yo,T as Ko,cM as Ho,cN as Wo,x as Zo,k as Xo,aN as es,cO as ts,cP as ns,b9 as as,E as os,aQ as ss}from"./index-DlaEaq7J.js";import{u as dn}from"./useAskAiCfoHostNavButtonProps-DoDP7B3S.js";import{f as Lt,a as cs,b as is,g as ls,C as rs}from"./TransactionDetailScreen-CZdGyLYX.js";import{w as ds}from"./withTransactionSidePanel-CENZXrC_.js";import{h as us,v as ms}from"./routePaths-CG9FBSKj.js";import{g as Je}from"./accountMappingHelper-7qi69rN8.js";import{D as ps}from"./DrawerScreen-wBYMk6z5.js";import"./recharts-CjabXRup.js";import"./analytics-D_2lhI0W.js";import"./plaid-DL8Esf27.js";import"./dnd-CyXN5LMk.js";import"./stripe-DMRn4zHo.js";import"./lottie-j5BULCEN.js";import"./lexical-Cp2QekuT.js";import"./pdf-D7OKXbf1.js";import"./utils-CvRuvFNB.js";import"./decodeURIComponentSafe-BbPXryX6.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new t.Error().stack;l&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[l]="9ab33143-ba2c-43d9-99da-658b0e051241",t._sentryDebugIdIdentifier="sentry-dbid-9ab33143-ba2c-43d9-99da-658b0e051241")}catch{}})();const hs=()=>{const t=pe(),l=Jt(),B=Ye(),f=w(d=>Pe(d)),{useFeatureGate:T}=sn(),{isFeatureEnabled:S}=T(ne.isRealtimeInsightsFeatureEnabled),{isFeatureEnabled:r}=T(ne.aiAuditScorePercentage),I=w(d=>d.expenseAutomationViewState.selectedPeriodByTenantId),s=w(d=>ia(d,f.tenantId)),{isAiCfoAccessEnabled:p,onAskAiCfoClick:u}=dn({mobileExploreReferrer:"Month-End Close Overview"}),y=o.useCallback((d,q,X=!1)=>{t(Ee({tenantId:q,period:{month:d.month,year:d.year},refreshViewInBackground:X}))},[]),v=o.useCallback(d=>{const q=B.state?.referrer;s.monthEndCloseChecks?.auditSummary!=null&&Q.trackMonthCloseAuditPage(d.month,d.year,s.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",s.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,q??null),t(la(f.tenantId,d))},[f.tenantId,s.monthEndCloseChecks?.auditSummary,s.monthEndCloseChecks?.reportEmailSentDate]),g=I[f.tenantId],m=o.useCallback(()=>{const d=B.state?.referrer;s.monthEndCloseChecks?.auditSummary!=null&&Q.trackMonthCloseAuditPage(g.month,g.year,s.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",s.monthEndCloseChecks.auditSummary.auditScorePercentage,!0,d??null),y(g,f.tenantId,!0)},[y,g,f.tenantId,s.monthEndCloseChecks?.auditSummary,s.monthEndCloseChecks?.reportEmailSentDate]),x=te(B.state?.pathnameStackToGoBack,B.pathname),E=o.useCallback(()=>{if(s.monthEndCloseChecks!=null&&g!=null){const d=s.monthEndCloseChecks.monthEndCloseCheckList.find(q=>q.progress<100);if(d!=null)return void l(`./${d.id}/${g.month}-${g.year}`,{state:{pathnameStackToGoBack:x,message:"comingFromOverview"}});l(`./month_end_insights/${g.month}-${g.year}`,{state:{pathnameStackToGoBack:x,message:"comingFromOverview"}})}},[s.monthEndCloseChecks,g]),{areTenantIdsInSync:k}=cn();return ln({isDataReady:s.fetchState==="Completed"}),o.useEffect(()=>{g!=null&&s.fetchState!=="In-Progress"&&s.fetchState!=="Completed"&&k&&y(g,f.tenantId)},[y,g,s.fetchState,f.tenantId,k]),o.useEffect(()=>{g!=null&&s.monthClosePerformanceTrendFetchStatus.fetchState!=="In-Progress"&&s.monthClosePerformanceTrendFetchStatus.fetchState!=="Completed"&&k&&t(ra(g))},[g,s.monthClosePerformanceTrendFetchStatus.fetchState,k]),o.useEffect(()=>{const d=setInterval(()=>{s.fetchState!=="In-Progress"&&s.fetchState==="Completed"&&m()},3e5);return()=>clearInterval(d)},[s.fetchState]),o.useEffect(()=>{if(s.fetchState==="Completed"&&s.monthEndCloseChecks?.auditSummary!=null){const d=B.state?.referrer;Q.trackMonthCloseAuditPage(s.selectedPeriod.month,s.selectedPeriod.year,s.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",s.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,d??null)}},[s.fetchState,s.selectedPeriod,s.monthEndCloseChecks?.auditSummary,s.monthEndCloseChecks?.reportEmailSentDate]),h.jsx(gs,{children:h.jsx(jo,{monthEndCloseChecksView:s,isRealtimeInsightsFeatureEnabled:S,onMonthEndCheckClick:d=>{l(`./${d}/${g.month}-${g.year}`,{state:{pathnameStackToGoBack:x,message:"comingFromOverview",referrer:"Expense Automation - Overview"}})},onPeriodChange:v,handleReviewButtonClick:E,onBackClick:()=>{l("../../dashboard")},onReload:m,isAiCfoAccessEnabled:p,onAskAiCfoClick:u,aiAuditScorePercentageEnabled:r})})},gs=Ue.div`
2
- display: flex;
3
- height: 100vh;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- background-color: ${t=>t.theme.colors.grey4};
8
- `,Cs=Nt.memo(({reconciliation:t,selectedDrawerAccountId:l,onClose:B,onFetchLinkTokenClick:f,onEstablishConnectionClick:T})=>{const S=pe(),r=Be.getSignedInUser(),I=w(e=>Pe(e)),s=t.excludedAccountIDs,p=o.useMemo(()=>({userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:I?.tenantId??""}),[r?.userId,r?.zeniSessionId,I?.tenantId]),{accountReconciliationsByAccountID:u,monthYearPeriod:y,statementUploadChosen:v}=t,g=u[l],m=g?.accountReconEntity.statementMetaData?.statementUploadId,x=(e,n)=>{S(ma(e,n.split(".")[0]))},E=e=>{m!=null&&S(ua({accountId:l,selectedPeriod:y,fileId:e,statementUploadId:m}))},k=()=>{S(Ht({statementUploadChosen:!1}))},d=e=>{S(da({accountId:l,selectedPeriod:y,payload:e}))},q=e=>{S(Wt({accountId:l,selectedPeriod:y,localData:{accountSource:e}}))},X=o.useCallback(()=>{S(Yt({accountId:l}))},[S,l]),M=o.useCallback(()=>{S(Kt({accountId:l}))},[S,l]),O=s.includes(l)?t.excludedAccountReconciliationByAccountID[l]:void 0;return g!=null?h.jsx($t,{children:h.jsx(Qt,{children:h.jsx(Lo,{excludeAccountFetch:t.excludeAccountFetchState,accountReconciliation:g,monthYearPeriod:y,onDismissClick:B,plaidConnectionDetails:t.plaidConnectionDetails,onFetchLinkTokenClick:f,onEstablishConnectionClick:T,onEditFileName:x,onDeleteFile:E,onSelectSourceType:q,filesEndPoint:xe.fileMicroServiceBaseUrl,authParams:p,openFilePicker:v,onStatementUploadSuccess:d,onUploadWindowOpenedOnce:k,onExcludeFromReconciliation:X})})}):O!=null?h.jsx($t,{children:h.jsx(Qt,{children:h.jsx($o,{excludedAccountReconciliation:O,includeAccountFetch:t.includeAccountFetchState,onIncludeIntoReconciliation:M})})}):null}),$t=Ue.div`
9
- display: flex;
10
- flex-direction: column;
11
- height: 100%;
12
- `,Qt=Ue.div`
13
- flex: 1;
14
- min-height: 0;
15
- display: flex;
16
- flex-direction: column;
17
- box-sizing: border-box;
18
- min-width: 0;
19
- overflow-x: hidden;
20
- overflow-y: auto;
21
- `;function Ss({companyId:t,closeCustomerRequestDrawer:l,addCustomerRequest:B,resetCustomerRequest:f}){const T=Be.getSignedInUser();if(T==null)throw Error("Can't access Customer Request page without signing in...");const S=w(r=>pa(r,t,T));return o.useEffect(()=>{f()},[]),h.jsx(h.Fragment,{children:S.fetchState==="In-Progress"||S.companyMonthEndReportTemplatesData.fetchState==="In-Progress"?h.jsx(rn,{fetchState:"In-Progress"}):h.jsx(Qo,{onCloseClick:l,addCustomerRequest:B,snippets:S.companyMonthEndReportTemplatesData,bulletPoints:S.zeniRequestsData??[]})})}const fs=t=>t.sections.generalExpense.vendors.length+t.sections.reimbursement.vendors.length,un="reconciliation-status-updated",mn="statement-status-updated",{common:{strings:{hyphen:Is,comma:qt,space:Es}},dateFormat:pn}=qo.getLocalizedStrings(),Gt=zo,ys=sa(function(t,l){const{uncategorizedAccounts:B,vendorSearchAutoCompleteData:f,monthEndInsightsCustomerRequestData:T,monthEndInsightsPreviewMode:S,companyId:r,isMissingReceiptsBulkUploadEnabled:I,isTransactionActivityEnabled:s}=l,p=Be.getSignedInUser(),u=t.tenantState.currentTenantId,y={userId:p?.userId??"",sessionId:p?.zeniSessionId??"",tenantId:u??""},v=Ie(t),{selectedTransactionCategorizationTab:g}=v;return{expenseAutomationViewSelector:v,bulkUploadSelector:I===!0?v.missingReceipts.bulkUpload:void 0,vendorSearchAutoCompleteData:f,authParams:y,receiptUploadEndpoint:`${xe.accountMicroServiceBaseUrl}`,transactionAttachmentsEndpoint:`${Jo}/transaction_attachments`,bulkUploadEndpoint:I===!0?`${xe.communicationAgentMicroServiceBaseUrl}/1.0/receipts/bulk-upload`:void 0,isDisabled:!1,currentTab:g,monthEndInsightsCustomerRequestData:T,monthEndInsightsPreviewMode:S,allThreadsSectionOpen:!1,enableMonthEndInsightsZeniGPTFeature:!1,loggedInUser:p,uncategorizedAccounts:B,companyId:r,isTransactionActivityEnabled:s}},function(t,l){const{themeState:B,isAccountingClassesEnabled:f,isCOTEnabled:T,isUncategorizedExpenseCategoryEnabled:S,isMissingReceiptsBulkUploadEnabled:r,location:I,vendorSearchAutoCompleteData:s,expenseAutomationViewSelector:p,currentTenant:u,uncategorizedAccounts:y,navigate:v,onClickCustomerRequest:g,handleEditClick:m,setActivityLogTransactionId:x}=l,{selectedPeriod:E,currentSelectedView:k,reconciliation:{selectedAccountId:d}}=p,{accountSettingsView:q}=p.jeSchedules,X=tn(E),M=Fe(X.start),O=Fe(X.end);return{onZeniLogoClick:()=>{B.toggle()},onUploadReceiptAttachment:e=>{Q.trackMissingReceiptAttached(E.month,E.year),t(uo(e))},onUploadTransactionReceipt:(e,n,c,i,b,C)=>{t(Ot(e,n,{fetchState:"In-Progress"}));const A=()=>t(Ot(e,n,{fetchState:"Error"}));Yo(`${xe.accountMicroServiceBaseUrl}/1.0/transactions/${n}/attachments`,C,n,c,i,b).then(V=>{V!=null?t(ro(e,V)):A()}).catch(A)},onMissingReceiptsRowClick:(e,n)=>{if(l.openTransactionPanel)return void l.openTransactionPanel(e,n);const c=te(I.state?.pathnameStackToGoBack,I.pathname);v(`../../transaction/${n}/${e}`,{state:{pathnameStackToGoBack:c,message:"expenseAutomation",origin:"missing_receipts"}})},onUploadReceiptComplete:(e,n)=>{t(lo(e,n)),u!=null&&t(Ee({tenantId:u.tenantId,period:n,refreshViewInBackground:!0}))},onUploadReceiptFetchStatus:(e,n,c,i)=>{t(io(e,{fetchState:n,error:c})),c!=null&&t(Bt({messageSection:"missing_receipts_attachment",messageText:"failed",type:"error",showStatusIcon:!0,variables:[{variableName:"__message__",variableValue:i!=null?Es+Is+i+qt:qt}]}))},onUpdateJESchedulesUIState:e=>{t(co(e))},onUpdateMissingReceiptsUIState:e=>{t(so(e))},onFetchMissingReceiptsList:()=>{O!=null&&M!=null&&t(an({start:M,end:O},{amount:75,currencyCode:"USD",currencySymbol:"$"},!0,!1))},...r===!0?{onBulkUploadFiles:e=>{t(Mo(e))},onBulkUploadProgress:e=>{t(_o(e))},onBulkUploadSuccess:e=>{t(Oo({batchId:e}))},onBulkUploadUploadedFileCount:e=>{t(Vo(e))},onConfirmBulkUploadMatch:(e,n,c,i,b)=>{t(Bo(e,n,c,i,b))},onBulkUploadConfirmMatchAcknowledged:()=>{t(Uo())},onSetBulkUploadResultsTab:e=>{t(Fo(e))},onSetBulkUploadCompletedSubTab:e=>{t(Do(e))},onSetBulkUploadSortConfig:(e,n)=>{t(zt({sortKey:e,sortOrder:n}))},onClearBulkUpload:()=>{t(Po())},onSearchTransactionsForManualMatch:(e,n)=>{t(Gt(e,n??void 0))},onLoadMoreManualSearch:()=>{const{manualSearch:e}=p.missingReceipts.bulkUpload;e.nextPageToken!=null&&e.searchQuery!==""&&t(Gt(e.searchQuery,e.nextPageToken))},onFetchCompletedTransactions:(e,n)=>{t(xo(e,n))},onClearBulkUploadBatchDetailsForScopeChange:()=>{t(wo())},onFetchBulkUploadBatches:e=>{t(on(e))},onFetchMoreBatchDetails:()=>{t(Ro())},onResetBulkUploadSort:()=>{t(zt({sortKey:void 0,sortOrder:void 0}))}}:{},onClearMissingReceiptsTabNavigation:()=>{t(oo())},onSearchTextChanged:e=>{const n=p.currentSelectedView,c=p.selectedTransactionCategorizationTab;n==="transaction_categorization"&&(t(Ge({selectedTab:c,uiState:{searchString:e}})),O!=null&&M!=null&&t(me(c,{start:M,end:O},!0,!1,e,void 0,!1,!0)))},onFiltersChange:e=>{const n=p.selectedTransactionCategorizationTab;t(ao({filters:e,selectedTab:n}))},onRefresh:()=>{l.trackExpenseAutomationTabAnalytics(!0),t(no(S))},onClose:()=>{k==="reconciliation"&&d!=null&&t(Vt({selectedAccountId:void 0})),v("../")},onBack:()=>{k==="reconciliation"&&d!=null&&t(Vt({selectedAccountId:void 0}))},onSaveReconciliation:e=>{t(to(e))},onSaveReconciliationReview:e=>{t(eo(e))},onUpdateStep:e=>{const{selectedPeriod:n}=p,c=te(I.state?.pathnameStackToGoBack,I.pathname);v(`../${e}/${n.month}-${n.year}`,{state:{pathnameStackToGoBack:c,referrer:p.currentSelectedView}}),t(nn(e))},handleLogOutClick:()=>{const e=te(I.state?.pathnameStackToGoBack,I.pathname);v("/signout",{replace:!0,state:{pathnameStackToGoBack:e,message:"logout"}})},onJeAccountSettingsChange:e=>{const{vendorsAccountSection:n}=e,{prepaidExpensesAccount:c,fixedAssetsAccount:i,accruedExpensesAccount:b}=n,C=Je(q.prepaidExpensesAccountList,c.selectedOptions),A=Je(q.fixedAssetsAccountList,i.selectedOptions),V=Je(q.accruedExpensesAccountList,b.selectedOptions),P={selectedPrepaidExpensesAccountIds:C.map(D=>D.accountId),selectedFixedAssetsAccountIds:A.map(D=>D.accountId),selectedAccruedExpensesAccountIds:V.map(D=>D.accountId)};t(Xa({data:P}))},onSaveJeAccountSettingsClick:()=>{t(Za())},onJESchedulesFormDataChange(e,n){const{jeScheduleID:c,accumulatedDepreciationCategory:i,scheduleClass:b,scheduleExpenseCategory:C,vendor:A}=n,{allAccountList:V,allClassList:P,allDepreciationAccountList:D}=p.jeSchedules,j=s.entityAutoCompleteView.vendor.length>0?s.entityAutoCompleteView.vendor.find(N=>N.id===A?.selectedOption):void 0,ae={id:j?.zeniId??A?.selectedOption??"",name:j?.name??A?.defaultOptions.find(N=>N.value===A?.selectedOption)?.label??"",logo:j?.logo},oe=C?.selectedOption!=null?V.find(N=>N.qboId===C.selectedOption):void 0,Ve=b?.selectedOption!=null?P.find(N=>N.classId===b.selectedOption):void 0,Oe=i?.selectedOption!=null?D.find(N=>N.qboId===i.selectedOption):void 0;t(Wa({scheduledJournalEntryID:e,localData:{jeScheduleID:c,scheduledJournalEntryID:e,updatedCategoryId:oe?.accountId,updatedClassId:Ve?.classId,updatedAccumulatedDepreciationCategoryID:Oe?.accountId,updatedVendor:{id:ae.id,name:ae.name}}}))},ignoreRecommendedJeSchedule(e,n){t(Ha(e,n))},vendorSearchAutoCompleteActions:{onAutoCompleteInputChange:(e,n)=>{e.trim().length>=2?t(Pt({searchString:e,entityType:n,searchOrigin:"common"})):e.trim().length===0&&t(Re("common"))},onCancelAutoComplete:()=>{t(Re("common"))}},onPostJESchedule(e,n){t(Ka({scheduledJournalEntryID:e,jeScheduleTransactionKey:n}))},clearJeScheduleLocalData(){t(Ya())},handleJeScheduleClick:(e,n,c)=>{t(Ja({selectedJEScheduleKey:n}));const i=te(I.state?.pathnameStackToGoBack,I.pathname);v(`../../vendors/schedules/${c}/details/${e}`,{state:{pathnameStackToGoBack:i,message:"expenseAutomation",origin:"je_schedules"}})},improveMonthEndInsightsUsingZeniGPTClick:e=>{u!=null&&t(Na(e,u.companyId,u.tenantId))},onClickCustomerRequest:g,setActivityLogTransactionId:x,onCloseAllThreadsSection:()=>{},onCloseFileAttachmentSnackBar:()=>{t(Ga())},onOpenFileAttachmentSnackBar:()=>{t(Bt({messageSection:"cockpit_month_end_email_attachment_upload",messageText:"failed",type:"error",showStatusIcon:!0}))},onRemoveFileAttachment:e=>{t(qa(e))},onUpdateFileAttachment:e=>{t(Qa({files:e}))},previewMonthEndReport:(e,n,c,i)=>{u!=null&&t(Ut(e,u.companyId,n,!0,c,i,u.tenantId))},saveMonthEndReport:(e,n,c,i)=>{u!=null&&t(Ut(e,u.companyId,n,!1,c,i,u.tenantId))},onEditMonthEndInsightsClick:m,sendMonthEndReport:e=>{const n=I.state?.referrer,{selectedPeriod:c,auditSummary:i}=p;u!=null&&i?.auditScorePercentage!=null&&(t(La(u.companyId,e,u.tenantId)),Q.trackInsightsEmailPage(c.month,c.year,!1,"draft",i.auditScorePercentage,$a().format(pn.analytics.MMMDDCommaYYYYformat),n??null))},onTransactionCategorizationRowClick:(e,n)=>{if(l.openTransactionPanel)return void l.openTransactionPanel(e,n);const c=te(I.state?.pathnameStackToGoBack,I.pathname);v(`../../transaction/${n}/${e}`,{state:{pathnameStackToGoBack:c,message:"expenseAutomation",origin:"transaction_categorization"}})},setLocalDataForCategoryAndClass:(e,n,c,i,b,C,A,V,P,D,j,ae,oe)=>{t(ja(e,n,c,i,y,b,C,A,V,P,D,j,ae,oe))},onCancelAutoComplete:()=>{t(Re("common"))},updateExpenseAutomationReconListScrollPosition:e=>{t(Dt({scrollPosition:e}))},onUpdateTab:e=>{l.closeSidePanel?.(),O!=null&&M!=null&&(t(me(e,{start:M,end:O},!1,!1)),t(za(e)))},onUpdateTransactionCategorizationCompletedSubTab:e=>{l.closeSidePanel?.(),O!=null&&M!=null&&(t(Ma(e)),t(me("autoCategorized",{start:M,end:O},!1,!1)))},onUpdateTransactionCategorizationUIState:(e,n)=>{t(Ge({selectedTab:e,uiState:n})),O!=null&&M!=null&&t(me(e,{start:M,end:O},!1,!1,n.searchString,null,!0))},onUpdateScrollYOffSetTransactionCategorizationUIState:(e,n)=>{t(Ge({selectedTab:e,uiState:n}))},onFetchTransactionCategorizationList:(e,n,c,i,b,C,A)=>{O!=null&&M!=null&&t(me(e,{start:M,end:O},!0,c,n,i,b,C,A))},resetTransactionCategorizationLocalData:(e,n,c,i,b,C,A,V)=>{t(_a(e,n,c,i,V??null,b,C,!1,A))},updateSelectedVendorForTransaction:(e,n,c,i,b)=>{t(Ft({selectedTab:e,transactionId:n,lineId:c,selectedTransaction:i,uncategorizedAccounts:y,updatedVendor:b,isAccountingClassesEnabled:f}))},onSaveUpdateTransactionCategorization:(e,n,c)=>{const i=I.state?.referrer;e==="autoCategorized"?Q.trackTransactionsAutoCategorisedPage(E.month,E.year,p.transactionView.totalCountByTab.autoCategorized,n.length,!1,i??null):Q.trackTransactionsReviewPage(E.month,E.year,p.transactionView.totalCountByTab.review,n.length,!1,i??null),t(Oa(e,n,c,S))},onUpdateSelectedCheckboxTransactionIds:(e,n)=>{t(Va({selectedTab:e,transactionIds:n}))},onFetchRecommendationsForEntityCategorizationWithCustomer:(e,n,c,i,b,C,A)=>{const{transactionId:V,transaction:P,lineIds:D}=n;C!=null&&t(Ua({transactionId:V,customerUpdates:C})),t(Ba({selectedTab:i,transactionId:V.id,lineId:D[0],selectedTransaction:P,uncategorizedAccounts:y,updatedCustomer:C,selectedEntity:b,isAccountingClassesEnabled:f,isUncategorizedExpenseCategoryEnabled:A})),b!=null&&t(He({entity:b,amount:e,transactionDetails:n,flowType:"categorization",selectedTab:i,isFetchCOT:T,isUncategorizedExpenseCategoryEnabled:A}))},onFetchRecommendationsForEntityCategorization:(e,n,c,i,b,C,A)=>{const{transactionId:V,transaction:P,lineIds:D}=n;C!=null&&(t(Pa({transactionId:V,vendorUpdates:{name:C.name,id:C.id?C.id:void 0}})),t(Da({vendorId:C.id?C.id:void 0,localData:{vendorName:C.name,vendorId:C.id?C.id:void 0}}))),C?.id?(t(Ft({selectedTab:i,transactionId:V.id,lineId:D[0],selectedTransaction:P,uncategorizedAccounts:y,updatedVendor:C,selectedEntity:b,isAccountingClassesEnabled:f,isUncategorizedExpenseCategoryEnabled:A})),b!=null&&t(He({entity:b,amount:e,transactionDetails:n,flowType:"categorization",selectedTab:i,isFetchCOT:T,isUncategorizedExpenseCategoryEnabled:A}))):t(Fa({selectedTab:i,transactionId:V.id,lineId:D[0]}))},fetchFluxViewOnScroll:(e,n)=>{t(we(e,!0,!1,n,!1,!0))},onFetchFluxViewList:()=>{t(we(E,!0,!1,null,!1,!1))},markAsReview:(e,n,c,i)=>{Q.trackFluxAnalysisReviewed(c.month,c.year,i??!1,e),t(xa(n,e,c,i??!1))},onUpdateFluxAnalysisUIState:e=>{t(wa(e))},updateOperatingExpensesIdsForReview:e=>{t(Ra({operatingExpenseIds:e,selectedPeriod:E}))},redirectToVendorDetailPage:e=>{if(l.tenantEmailDomain!=null){const n=ms(e.id,e.qboId,l.tenantEmailDomain),c=te(l.location.state?.pathnameStackToGoBack,l.location.pathname);l.navigate(n,{state:{pathnameStackToGoBack:c,message:"expenseAutomation",referrer:"Vendor List",origin:"flux_analysis"}})}},updateSectionIdsForReview:e=>{t(Aa({sectionId:e,selectedPeriod:E}))},onFetchReimbursementView:(e,n,c)=>{t(we(e,!0,!1,n,!0,c))},onReviewClicked:e=>{t(le(E,e))},setOpenDrawerClicked:e=>{t(De({selectedDrawerAccountId:e}))},onFetchLinkTokenClick:(e,n)=>{t(Zt("expense_automation_reconcile",e,n))},onEstablishConnectionClick:(e,n)=>{const c=u?.companyId;c!=null&&(t(Xt(e,c,"expense_automation_reconcile",void 0,"link_account_no_microdeposit",n)),t(en({accountId:n,connectionInProgress:!0})))},onAddStatementClick:e=>{t(De({selectedDrawerAccountId:e})),t(Wt({accountId:e,selectedPeriod:E,localData:{accountSource:"bank_statement"}})),t(Ht({statementUploadChosen:!0}))},onReloadReconciliationListPage:()=>{t(le(E,void 0,!0,!1))},onUpdateReconcileTabLocalData:e=>{t(va({selectedTransactionIds:e}))},onReconTabColumnSortConfigChanged:(e,n)=>{t(Ta({sortKey:e,sortOrder:n}))},onReconReviewTabColumnSortConfigChanged:(e,n)=>{t(ba({sortKey:e,sortOrder:n}))},onReconTabUpdate:e=>{l.closeSidePanel?.(),t(ka({selectedTab:e}))},updateReconReviewTabLocalData:(e,n,c)=>{const i=e.vendor?.id;c&&i!=null&&t(Ea(i)),t(ya({data:e,transactionId:n}))},onReconMatchedTransactionClick:e=>{if(l.openTransactionPanel)return void l.openTransactionPanel(e,Ke("bill"));const n=te(I.state?.pathnameStackToGoBack,I.pathname);v(`../../transaction/bill/${e}`,{state:{pathnameStackToGoBack:n,message:"expenseAutomation",origin:"reconciliation"}})},onReloadPage:()=>{window.location.reload()},onBackClick:()=>{v(-1)},onReconListPageScroll:e=>{t(Dt({scrollPosition:e}))},onVendorAutoCompleteInputChange:e=>{e.trim().length>=2?t(Pt({searchString:e,searchOrigin:"common"})):e.trim().length===0&&t(Re("common"))},onReconNodeCollapseToggled:(e,n)=>{t(Ia({nodeId:e,collapsed:n}))},updateSectionCollapseStatus:()=>{},onExcludeAccountFromReconciliation:e=>{t(Yt({accountId:e}))},onIncludeAccountIntoReconciliation:e=>{t(Kt({accountId:e}))},onReconciliationPusherEventReceived:e=>{e!==un&&e!==mn||k!=="reconciliation"||t(le(E,d,!0,!0))}}},(t,l,B)=>{const{isMissingReceiptsBulkUploadEnabled:f,...T}=B;return function(S,r,I){return{...S,...r,...I,onUploadTransactionReceipt:(s,p,u,y,v)=>{r.onUploadTransactionReceipt(s,p,u,y,v,S.authParams)}}}(t,l,T)})(Go(No)),ks=ds(function(t){const l=t.displayName??t.name??"Component",B=Nt.memo(t),f=T=>{const S=pe(),r=function(){const x=pe(),E=w(k=>Ie(k).reconciliation.selectedDrawerAccountId);return{isOpen:E!=null,selectedAccountId:E,openPanel:o.useCallback(k=>{x(De({selectedDrawerAccountId:k}))},[x]),closePanel:o.useCallback(()=>{x(De({selectedDrawerAccountId:void 0}))},[x])}}(),I=w(x=>Ie(x).reconciliation),s=w(x=>Pe(x)),p=o.useCallback((x,E)=>{S(Zt("expense_automation_reconcile",x,E))},[S]),u=o.useCallback((x,E)=>{const k=s?.companyId;k!=null&&(S(Xt(x,k,"expense_automation_reconcile",void 0,"link_account_no_microdeposit",E)),S(en({accountId:E,connectionInProgress:!0})))},[S,s?.companyId]),y=o.useMemo(()=>{if(r.isOpen&&r.selectedAccountId!=null)return h.jsx(Cs,{reconciliation:I,selectedDrawerAccountId:r.selectedAccountId,onClose:r.closePanel,onFetchLinkTokenClick:p,onEstablishConnectionClick:u})},[r.isOpen,r.selectedAccountId,r.closePanel,I,p,u]),v=o.useMemo(()=>({reconPanelContent:y,reconSidePanelIsOpen:r.isOpen,closeReconSidePanel:r.closePanel}),[y,r.isOpen,r.closePanel]),g=o.useContext(jt),m=o.useMemo(()=>r.isOpen?{closePanel:r.closePanel,selectedItemId:r.selectedAccountId}:g,[r.isOpen,r.closePanel,r.selectedAccountId,g]);return h.jsx(jt.Provider,{value:m,children:h.jsx(B,{...T,...v})})};return f.displayName=`withReconSidePanel(${l})`,f}(({closeSidePanel:t,openTransactionPanel:l,panelContent:B,sidePanelIsFullView:f,sidePanelIsOpen:T,reconPanelContent:S,reconSidePanelIsOpen:r,closeReconSidePanel:I})=>{const{isAiCfoOpen:s,setIsAiCfoOpen:p}=Ko(),u=Ho(),{isOpen:y}=Wo(),v=Jt(),g=Ye(),m=pe(),{isAiCfoAccessEnabled:x,onAskAiCfoClick:E}=dn({mobileExploreReferrer:"Transaction categorization"}),k=o.useCallback(()=>{T===!0&&f!==!0&&t?.()},[t,T,f]),{areTenantIdsInSync:d}=cn(),q=(()=>{const a=w(G=>Ie(G)),U=Ye(),{currentSelectedViewFetchState:L,currentSelectedView:$,selectedPeriod:R}=a,W=Ne($),J=Ne(L.fetchState),H=o.useCallback(G=>{const Z=U.state?.referrer;$==="transaction_categorization"&&(a.selectedTransactionCategorizationTab==="review"?Q.trackTransactionsReviewPage(R.month,R.year,a.transactionView.totalCountByTab.review,0,G,Z??null):Q.trackTransactionsAutoCategorisedPage(R.month,R.year,a.transactionView.totalCountByTab.autoCategorized,0,G,Z??null)),$==="missing_receipts"&&Q.trackMissingReceiptsPage(R.month,R.year,G,a.missingReceipts.transactions.length,Z??null),$==="je_schedules"&&Q.trackMonthCloseScheduleListPage(R.month,R.year,G,a.jeSchedules.draftSchedules.length,a.jeSchedules.resolveSchedules.length,Z??null),$==="flux_analysis"&&Q.trackFluxAnalysisPage(R.month,R.year,G,fs(a.fluxAnalysis),Z??null),$==="month_end_insights"&&a.auditSummary?.auditScorePercentage!=null&&Q.trackInsightsEmailPage(R.month,R.year,G,"draft",a.auditSummary.auditScorePercentage,null,Z??null)},[R,a]);return o.useEffect(()=>{J===L.fetchState&&$===W||L.fetchState!=="Completed"||H(!1)},[$,L.fetchState,W]),H})(),X=Zo(),[M,O]=o.useState(!1),e=w(a=>xt(a)),n=w(a=>Pe(a)),[c,i]=o.useState(!1),[b,C]=o.useState(!1),[A,V]=o.useState([]),[P,D]=o.useState(null),j=o.useCallback(()=>{D(null)},[]),ae=P?.contentType==="activity"?P.detail.transactionId:void 0,oe=o.useCallback(a=>{a!=null?(s&&p(!1),u(),k(),D({contentType:"activity",detail:{transactionId:a}})):D(U=>U?.contentType==="activity"?null:U)},[k,s,u,p]),Ve=o.useCallback(a=>{s&&p(!1),u(),k(),D({contentType:"transfer",detail:a})},[k,s,u,p]),Oe=o.useCallback(()=>{u(),j(),k(),E()},[k,j,E,u]),N=o.useRef(s);o.useEffect(()=>{s===!0&&N.current===!1&&(u(),j(),k()),N.current=s},[k,j,s,u]);const We=o.useRef(y);o.useEffect(()=>{y===!0&&We.current===!1&&(s&&p(!1),j(),T===!0&&f!==!0&&t?.()),We.current=y},[j,t,y,s,p,f,T]);const ye=T===!0&&f!==!0,Ze=o.useRef(ye);o.useEffect(()=>{ye&&!Ze.current&&(s&&p(!1),u(),j()),Ze.current=ye},[j,s,ye,u,p]);const[Xe,hn]=o.useState(!1),et=o.useRef(!1),{selectedTab:tt}=wt(),{tenantEmailDomain:gn}=wt(),[_e,nt]=o.useState(g.state?.message==="comingFromTransactionDetail"),at=g.state?.message==="comingFromOverview",Cn=Xo(),Me=Be.getSignedInUser(),{useDynamicConfig:Sn,useFeatureGate:re}=sn(),{configValue:fn}=Sn(es.enableUncategorizedExpenseCategory),ee=fn?.uncategorized_expense_category_enabled===!0,{isFeatureEnabled:ot}=re(ne.isRealtimeInsightsFeatureEnabled),{isFeatureEnabled:he}=re(ne.isMissingReceiptsBulkUploadEnabled),{isFeatureEnabled:ze}=re(ne.isTransactionActivityEnabled),{isFeatureEnabled:st}=re(ne.isCreateTransferEntryFromExpenseEnabled),{isFeatureEnabled:In}=re(ne.isExpenseAutomationCommentingEnabled),{isFeatureEnabled:En}=re(ne.isProjectsTransactionsEnabled),yn=o.useCallback(a=>{const U=Ke(a.view==="reconciliation"?"bill":"expense");l?.(a.entityId,U)},[l]),kn=w(a=>mo(a,"common")),z=w(a=>Ie(a)),{categoryOptions:bn,paymentAccountNames:Tn}=w(a=>po(a.accountState)),vn=w(a=>ho(a.classState)),{monthEndCloseChecksView:K,currentSelectedView:F,selectedPeriod:_,selectedTransactionCategorizationTab:je,currentSelectedViewBackgroundRefreshFetchState:An,currentSelectedViewFetchState:se,jeSchedules:Le,reconciliation:Rn}=z;cs(F==="transaction_categorization");const wn=z.transactionView.saveStatus.fetchState,ct=z.transactionView.transactions,it=o.useRef(ct);it.current=ct;const lt=w(a=>a.expenseAutomationTransactionsViewState?.transactionCategorizationView),rt=w(a=>a.expenseAutomationTransactionsViewState?.selectedTransactionCategorizationTab),dt=o.useRef(lt);dt.current=lt;const ut=o.useRef(rt);ut.current=rt;const de=is(wn,()=>{const a=[],U=ut.current,L=dt.current,$=L!=null&&U!=null?L[U]:void 0;if($?.transactionReviewLocalDataById!=null)for(const W of Object.values($.transactionReviewLocalDataById)){const J=W?.transactionReviewLocalData?.lineItemById;if(J!=null)for(const H of Object.values(J)){const G=H?.account;G?.accountId!=null&&a.push(G.accountId)}}const R=it.current;for(const W of R)for(const J of W.lines??[])"account"in J&&J.account?.accountId!=null&&a.push(J.account.accountId);return a});o.useEffect(()=>{F==="transaction_categorization"&&T!==!0||oe(void 0)},[F,oe,T]);const xn=z.transactionView.selectedTransactionCategorizationCompletedSubTab,ke=`${je}|${xn}`,be=o.useRef(null);o.useEffect(()=>{be.current!==null?be.current!==ke&&(be.current=ke,F==="transaction_categorization"&&j()):be.current=ke},[j,F,ke]);const Pn=w(a=>ae==null?void 0:go(a.transactionState,ae)),ce=Pn?.qboId,mt=w(a=>ce==null?void 0:Co(a,ce));o.useEffect(()=>{ce!=null&&m(So(ce))},[m,ce]);const{createTransferEntryStatus:pt,creditCardTransferAccountsList:ht,transferAccounts:gt}=z.transactionView,Ct=o.useCallback(a=>ls(m,a),[m]),St=o.useMemo(()=>F!=="transaction_categorization"||P==null?null:P.contentType==="activity"?ze===!0?h.jsx(ts,{activityLogView:mt,qboId:ce,onClose:()=>D(null),selectedTransactionId:P.detail.transactionId,isQuickViewCardStyle:!0},String(P.detail.transactionId)):null:P.contentType==="transfer"?h.jsx(ns,{createTransferEntryStatus:pt,transaction:P.detail,transferAccounts:P.detail.transactionType==="credit_card_payment"?ht:gt,onClose:()=>D(null),onCreateTransfer:Ct,isQuickViewCardStyle:!0},String(P.detail.transactionId)):null,[F,P,ze,mt,ce,pt,ht,gt,Ct]),Dn=St!=null,{selectedAccountId:ge}=Rn,ft=Ne(Le.accountSettingsView.saveState.fetchState),Fn=w(a=>fo(a.accountState,a.accountListState,"accountList")),Un=w(a=>Io(a)),Ce=tt!=null?Eo(tt):F,Bn=w(a=>a.entityAutoCompleteState.autoCompleteText.common);if(ln({isDataReady:se.fetchState==="Completed"}),Me==null)throw Error("Can't access expense automation screen without signing in...");const It=tn(_),Se=Fe(It.start),fe=Fe(It.end);if(Se==null||fe==null)throw Error(`Invalid start - ${Se} and end - ${fe} period from given ${_}`);const Vn=o.useCallback(()=>{i(!1)},[]),On=o.useCallback(()=>{C(!0)},[]),_n=o.useCallback(a=>{V(a),C(!1)},[]),Mn=o.useCallback(()=>{V([])},[]),Te=z.missingReceipts.bulkUpload.phase,Et=z.missingReceipts.bulkUpload.currentBatchId;o.useEffect(()=>{he===!0&&F==="missing_receipts"&&Te==="matching"&&Et!=null&&m(on({cacheOverride:!0}))},[he,F,Te,Et,m]);const yt=Me?.userId,zn=_.month,jn=_.year,kt=n?.tenantId;o.useEffect(()=>{F==="missing_receipts"&&he!==!1&&Te==="idle"&&yt!=null&&kt!=null&&m(yo())},[F,he,Te,yt,kt,zn,jn,m]),o.useEffect(()=>{e.newVendorState?.vendorDetailLocalData?.vendorName!=null?O(!0):O(!1)},[e.newVendorState?.vendorDetailLocalData?.vendorName]),o.useEffect(()=>{Ce!=null&&F!==Ce&&m(nn(Ce))},[Ce]),o.useEffect(()=>{Xe!==!1||se.fetchState!=="Completed"&&se.fetchState!=="Error"||!d||(hn(!0),m(_t(!1,!1,ee)))},[Xe,se,d,ee]),o.useEffect(()=>{!at&&d&&(m(_t(!1,!1,ee)),m(le(_,ge,!1,!1)))},[_.month,_.year,d,ee]);const bt=o.useCallback((a=!1,U=!1)=>{const L={start:Se,end:fe};switch(F){case"transaction_categorization":m(me(je,L,a,!_e,void 0,void 0,U,void 0,ee)),nt(!1);break;case"flux_analysis":m(we(_,a,U,null));break;case"month_end_insights":if(U===!1){const $=new Date(_.year,_.month,0),R=bo($.toDateString()).format(pn.analytics.YYYYDashMMDashDDFormat);m(To(!0,n.companyId,n.tenantId,R)),m(vo(n.companyId,n.tenantId))}break;case"je_schedules":m(ko(L,U));break;case"missing_receipts":m(an(L,{amount:75,currencyCode:"USD",currencySymbol:"$"},a,U));break;default:m(le(_,ge,a,U))}},[F,Se,fe,n.companyId,n.tenantId,je,_,ge,_e,nt,ee]);o.useEffect(()=>{F===Ce&&se.fetchState==="Not-Started"&&d&&bt(!0)},[se,Se,fe,n.companyId,n.tenantId,d]),o.useEffect(()=>{at||_e||et.current||An.fetchState==="In-Progress"||se.fetchState!=="Completed"||(et.current=!0,bt(!0,!0))},[]),o.useEffect(()=>{K.fetchState!=="In-Progress"&&K.fetchState!=="Completed"&&m(Ee({tenantId:n.tenantId,period:_,refreshViewInBackground:!1}))},[K.fetchState,n.tenantId]),o.useEffect(()=>{z.monthEndInsights?.previewMonthEndReportStatus?.fetchState==="Completed"?i(!0):i(!1)},[z.monthEndInsights?.previewMonthEndReportStatus?.fetchState]),o.useEffect(()=>{z.monthEndInsights?.sendMonthEndReportStatus?.fetchState==="Completed"&&d&&(m(Ee({tenantId:n.tenantId,period:_,refreshViewInBackground:!0})),m(Ao({companyId:n.companyId})),v("../"))},[z.monthEndInsights?.sendMonthEndReportStatus?.fetchState,n.tenantId,_,n.companyId,d]),o.useEffect(()=>{const a=setInterval(()=>{K.fetchState!=="In-Progress"&&K.fetchState==="Completed"&&m(Ee({tenantId:n.tenantId,period:_,refreshViewInBackground:!0}))},3e5);return()=>clearInterval(a)},[K.fetchState,n.tenantId,_,m]),o.useEffect(()=>{const a=setInterval(()=>{F==="reconciliation"&&ge==null&&z.reconciliation.fetchStatus.fetchState==="Completed"&&z.reconciliation.refreshStatus.fetchState!=="In-Progress"&&m(le(_,void 0,!0,!0))},3e5);return()=>clearInterval(a)},[F,m,z.reconciliation.fetchStatus.fetchState,z.reconciliation.refreshStatus.fetchState,le,ge,_]);const Ln=Lt();o.useEffect(()=>{const a=(K.monthEndCloseChecks?.monthEndCloseCheckList.find(U=>U.id==="month_end_insights")?.isDisabled??!1)&&!ot;F!=="month_end_insights"||!a&&K.monthEndCloseChecks?.reportEmailSentDate==null||v("../")},[F,K.monthEndCloseChecks]);const $n=r===!0?S:B,Qn=r===!0||T===!0,qn=r===!0?I:t;o.useEffect(()=>{ft==="In-Progress"&&Le.accountSettingsView.saveState.fetchState==="Completed"&&m(Mt())},[ft,Le.accountSettingsView.saveState.fetchState,Mt]);const{transactionId:Tt,onSaveVendor:Gn,onSaveSuccess:Nn,onCancel:Jn,vendorViewDetails:Yn}=(({expenseAutomationViewSelector:a,closeDrawerHandler:U,currentSelectedView:L,isUncategorizedExpenseCategoryEnabled:$})=>{const R=pe();let W,J,H;const G=Lt(),Z=a.transactionView;let vt=()=>{};const{transactions:Hn,selectedTransactionId:ue,selectedTransactionLineId:ve,transactionLocalData:Wn}=Z;if(L==="transaction_categorization"){const $e=Wn.find(ie=>ie.transactionId===ue),Y=Hn.find(ie=>ie.id===ue),At=ve!=null?$e?.transactionReviewLocalData?.lineItemById[ve]:void 0,Rt=At?.account;J=At?.class?.classId,W=["Uncategorized Income","Uncategorized Expense"].includes(Rt?.accountName??"")?void 0:Rt?.accountId;const Xn=us(ue,Y?.typeOfTransaction);Y!=null&&Xn&&(H={id:ue,type:Ke(Y.typeOfTransaction)}),vt=()=>{if(ue!=null&&ve!=null&&Y!=null){const ie=Z.transactionLocalData.find(Ae=>Ae.transactionId===ue)?.transactionReviewLocalData;if(ie!=null&&Y.lines!=null&&Y.lines.length>0){const Ae=ie.lineItemById[ve];let Qe=ie.selectedEntity;if(fa(Y)||(Qe=Ae.selectedEntityLine),Qe!=null){const ea=Qe,ta={transactionId:{id:Y.id,type:Y.type},transaction:Y,lineIds:Y.lines.map(na=>na.id)??[]};R(He({entity:ea,amount:Ae.amount.amount,transactionDetails:ta,flowType:"categorization",selectedTab:a.selectedTransactionCategorizationTab,isFetchCOT:G,isUncategorizedExpenseCategoryEnabled:$}))}}}}}const Zn=w($e=>xt($e,void 0,W,J));return{transactionId:H,onSaveVendor:()=>{R(Sa(H,void 0,!1,!0))},onSaveSuccess:vt,onCancel:()=>{H!=null&&R(ha({transactionId:H})),R(ga()),R(Ca()),U()},vendorViewDetails:Zn}})({expenseAutomationViewSelector:z,closeDrawerHandler:()=>{O(!1)},currentSelectedView:F,isUncategorizedExpenseCategoryEnabled:ee}),Kn={events:n.companyId!=null?[`private-encrypted-${n.companyId}.${un}`,`private-encrypted-${n.companyId}.${mn}`]:[],eventCallback:(a,U,L)=>{L.onReconciliationPusherEventReceived(a)}};return Cn?.loggedInUserRoleMap==null?K.fetchState==="Error"?h.jsx(as,{onGoHome:()=>v("../",{replace:!0}),onReload:()=>window.location.reload()}):h.jsx(rn,{fetchState:"In-Progress"}):h.jsxs(h.Fragment,{children:[h.jsx(ps,{isOpen:b,drawerLeftMargin:new os(0,0,300,650),onClose:()=>{C(!1)},children:h.jsx(bs,{onClick:a=>a.stopPropagation(),children:h.jsx(Ss,{companyId:n.companyId,closeCustomerRequestDrawer:()=>C(!1),addCustomerRequest:_n,resetCustomerRequest:Mn})})}),Tt!=null&&M&&h.jsx(rs,{isOpen:M,transactionId:Tt,onSaveVendor:Gn,onSaveSuccess:Nn,onCancel:Jn,vendorViewDetails:Yn}),h.jsx(ys,{...Kn,navigate:v,location:g,themeState:X,categoryOptions:bn,classesForFilters:vn,accountsForFilters:Tn,vendorSearchAutoCompleteData:{autoCompleteText:Bn,entityAutoCompleteView:kn},expenseAutomationViewSelector:z,isMissingReceiptsBulkUploadEnabled:he,monthEndInsightsPreviewMode:c,monthEndInsightsCustomerRequestData:A,isRealtimeInsightsFeatureEnabled:ot,isCreateTransferEntryFromExpenseEnabled:st,isUncategorizedExpenseCategoryEnabled:ee,isAccountingClassesEnabled:Un,isProjectsTransactionsEnabled:En,isCOTEnabled:Ln,currentTenant:n,companyId:n.companyId,signedInUser:Me,isTransactionActivityEnabled:ze,isRightPanelOpen:Dn,rightSidePanel:St,onOpenTransferRightPanel:st===!0?Ve:void 0,uncategorizedAccounts:Fn,onClickCustomerRequest:On,handleEditClick:Vn,tenantEmailDomain:gn,trackExpenseAutomationTabAnalytics:q,setActivityLogTransactionId:oe,closeSidePanel:qn,openTransactionPanel:l,sidePanelIsOpen:Qn,sidePanelIsFullView:r!==!0&&f,panelContent:$n,isAiCfoAccessEnabled:x,onAskAiCfoClick:Oe,isExpenseAutomationCommentingEnabled:In,onExpenseAutomationCommentingThreadClick:yn,sidePanelListPercent:r===!0?66:void 0}),de.showPopup&&de.popupType!=null&&h.jsx(ss,{popupType:de.popupType,currencySymbol:de.currencySymbol,onSubmit:de.handleSubmit,onDismiss:de.handleDismiss})]})})),bs=Ue(oa)`
22
- display: flex;
23
- min-height: 100%;
24
- flex-direction: column;
25
- `;function Js(){return h.jsxs(ca,{children:[h.jsx(qe,{path:"*",element:h.jsx(hs,{})}),h.jsx(qe,{path:"/:selectedTab/:selectedPeriod/*",element:h.jsx(ks,{})}),h.jsx(qe,{path:"*",element:h.jsx(aa,{})})]})}export{Js as default};
@@ -1 +0,0 @@
1
- import{j as s}from"./liveblocks-BseLVJU2.js";import{a as r}from"./sentry-nbOh2gVl.js";import{a3 as i,a4 as f,a5 as l,v as p}from"./index-DlaEaq7J.js";import"./mui-nQfThAws.js";import m from"./NotFoundScreen-Cavr5OZ5.js";import{h as u,g as b}from"./core-C82y6_-U.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]="66762daf-7af1-4bac-abdc-58c0e8da5689",a._sentryDebugIdIdentifier="sentry-dbid-66762daf-7af1-4bac-abdc-58c0e8da5689")}catch{}})();const _=()=>{const a=u(),e=b(),t=r.useCallback(()=>{window.open("https://www.zeni.ai/demo/request","_blank")},[]),d=r.useCallback(()=>{(()=>{const n=p(e.state?.pathnameStackToGoBack),c=n.poppedPathname??k();a(c,{state:{pathnameStackToGoBack:n.newStack}})})()},[]),o=i(e.pathname);return o!=null?s.jsx(f,{menuItem:l(o),onDemoClick:t,onGoBack:d}):s.jsx(m,{})},k=(a=2)=>{let e="../";for(let t=0;t<a;t++)e=`${e}../`;return e};export{_ as F};
@@ -1 +0,0 @@
1
- import{a as i}from"./sentry-nbOh2gVl.js";import{u as d,h as l,g as m}from"./core-C82y6_-U.js";import{gC as p,Ki as g,Kj as b}from"./zeni-epic-state-DK35Ac89.js";import{u as _,L as h,z as y}from"./index-DlaEaq7J.js";import"./liveblocks-BseLVJU2.js";import"./recharts-CjabXRup.js";import"./mui-nQfThAws.js";import"./analytics-D_2lhI0W.js";import"./plaid-DL8Esf27.js";import"./dnd-CyXN5LMk.js";import"./stripe-DMRn4zHo.js";import"./lottie-j5BULCEN.js";import"./lexical-Cp2QekuT.js";import"./pdf-D7OKXbf1.js";import"./utils-CvRuvFNB.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]="0974b3ee-928b-4ffb-8e8e-f6fe1b69009e",e._sentryDebugIdIdentifier="sentry-dbid-0974b3ee-928b-4ffb-8e8e-f6fe1b69009e")}catch{}})();function K(){const e=d(),n=l(),r=m(),{setLoading:o,clearAllLoading:c}=_(),s=i.useRef(!1);return i.useLayoutEffect(()=>{o(h.CONNECTION_AUTH)},[o]),i.useEffect(()=>{if(s.current)return;s.current=!0;const a=new URLSearchParams(r.search).get("code"),u=sessionStorage.getItem("hubspot_oauth_pending");if(sessionStorage.removeItem("hubspot_oauth_pending"),a!=null&&u!=null){const t=JSON.parse(u);e(p(t.tenant_id,t.connection_id,g("revenue"),b("hubspot"),{authorization_code:a,client_id:t.client_id,client_secret:t.client_secret,redirect_uri:t.redirect_uri}))}c();const f=y.getActiveTenantForUser();n(f?.tenantEmailDomain!=null?`/${f.tenantEmailDomain}/settings/integrations`:"/",{replace:!0})},[]),null}export{K as default};
@@ -1,72 +0,0 @@
1
- import{j as t}from"./liveblocks-BseLVJU2.js";import{i as S,n as g,h as C,g as y,u as ee,s as te,j as E,N as ae,o as ne,p}from"./core-C82y6_-U.js";import{Kb as k,Kc as v,Kd as K,A8 as A,zW as T,Ke as B,Kf as oe,Kg as se,z_ as ie,eY as $,A5 as le,A2 as de}from"./zeni-epic-state-DK35Ac89.js";import{J as x,o as d,W as re,c as j,j as G,q as ce,v as me,V as pe,w as V,s as ue,d as he,Q as ge,x as xe,m as fe,y as be,B as we,A as Se,n as ye,S as ke,C as ve,E as je,U as $e}from"./index-DlaEaq7J.js";import{n as m}from"./mui-nQfThAws.js";import f from"./NotFoundScreen-Cavr5OZ5.js";import{a as I}from"./sentry-nbOh2gVl.js";import"./recharts-CjabXRup.js";import"./analytics-D_2lhI0W.js";import"./plaid-DL8Esf27.js";import"./dnd-CyXN5LMk.js";import"./stripe-DMRn4zHo.js";import"./lottie-j5BULCEN.js";import"./lexical-Cp2QekuT.js";import"./pdf-D7OKXbf1.js";import"./utils-CvRuvFNB.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]="8e3ab7d3-8eb0-491f-b910-7b74520d4031",e._sentryDebugIdIdentifier="sentry-dbid-8e3ab7d3-8eb0-491f-b910-7b74520d4031")}catch{}})();const Ie=m.div`
2
- display: flex;
3
- height: 100%;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- box-shadow: ${e=>`0px 2px ${d.sp1} ${e.theme.colors.dropShadowNormal}`};
10
- `,Ce=g(function(e){const a=k(e),n=v(e),{companyName:o}=a;return{companyName:o,isDisabled:a.fetchState!=="Completed"?"disabled":void 0,magicLinkBankAccountDetails:n,magicLinkViewState:a}},function(e,a){const{vendorId:n,billId:o}=a;return{onFetchBankName:s=>{e(T(s))},onSaveHandler:s=>{j.trackBillPayMagicLinkSubmitBankAccountDetails(o),e(A(s,"standard",n,o))},onACHDetailsUpdated:s=>{const{bankAccountSection:l}=s;e(K({data:l}))}}})(re);function F(){const e=x(),{vendorId:a,billId:n}=S();return a==null||n==null?t.jsx(f,{}):t.jsx(t.Fragment,{children:t.jsx(Ie,{windowSize:e,children:t.jsx(Ce,{vendorId:a,billId:n})})})}const Ae=m.div`
11
- display: flex;
12
- height: 100vh;
13
- width: 100%;
14
- flex: 1 1 auto;
15
- flex-direction: column;
16
- align-items: center;
17
- background-color: ${e=>e.theme.colors.grey4};
18
- box-shadow: ${e=>`0px 2px ${d.sp1} ${e.theme.colors.dropShadowNormal}`};
19
- `,Be=g(function(e,a){const{isSubPage:n}=a;return{addressToEdit:B(e),googleAPIKey:G.googleMapsAPIKey,isSubPage:n}},function(e,a){const{navigate:n,location:o}=a,s=()=>{const l=me(o.state?.pathnameStackToGoBack),i=l.poppedPathname??ze();n(i,{state:{pathnameStackToGoBack:l.newStack}})};return{onSubmitHandler:l=>{const i=Pe(l);e(oe({addressToCreate:i})),s()},onCancel:()=>{s()}}})(ce);function De({isSubPage:e}){const a=C(),n=y(),o=x();return t.jsx(t.Fragment,{children:t.jsx(Ae,{windowSize:o,children:t.jsx(Be,{location:n,navigate:a,isSubPage:e===!0,googleAPIKey:G.googleMapsAPIKey})})})}const ze=(e=2)=>{let a="../";for(let n=0;n<e;n++)a=`${a}../`;return a},Pe=e=>({street:[e.street.addressString,e.suite,e.secondaryInfo],city:e.city,state:e.state,country:e.country.selectedOption??"",countryCode:e.countryCode,postalCode:e.postalCode,latitude:e.street.addressValue?.locationLat,longitude:e.street.addressValue?.locationLng}),Le=m.div`
20
- display: flex;
21
- height: 100%;
22
- width: 100%;
23
- flex: 1 1 auto;
24
- flex-direction: column;
25
- align-items: center;
26
- background-color: ${e=>e.theme.colors.grey4};
27
- box-shadow: ${e=>`0px 2px ${d.sp1} ${e.theme.colors.dropShadowNormal}`};
28
- `,Ne=g(function(e){const a=k(e),n=v(e),o=B(e),{companyName:s}=a;return{companyName:s,isDisabled:a.fetchState!=="Completed"?"disabled":void 0,magicLinkBankAccountDetails:n,mailingAddressDetails:o,magicLinkViewState:a}},function(e,a){const{navigate:n,location:o,vendorId:s,billId:l}=a;return{onFetchBankName:i=>{e(T(i))},onSaveHandler:i=>{j.trackBillPayMagicLinkSubmitBankAccountDetails(l),e(A(i,"us-domestic",s,l))},onWireDetailsUpdated:i=>{const{bankAccountSection:r}=i;e(K({data:r}))},onAddressClick:()=>{const i=o.pathname.replace("us-domestic","address"),r=V(o.state?.pathnameStackToGoBack,o.pathname);n(i,{state:{pathnameStackToGoBack:r}})}}})(pe);function Ee(){const e=C(),a=y(),n=x(),{vendorId:o,billId:s}=S();return o==null||s==null?t.jsx(f,{}):t.jsx(t.Fragment,{children:t.jsx(Le,{windowSize:n,children:t.jsx(Ne,{location:a,navigate:e,vendorId:o,billId:s})})})}const Fe=m.div`
29
- display: flex;
30
- height: 100%;
31
- width: 100%;
32
- flex: 1 1 auto;
33
- flex-direction: column;
34
- align-items: center;
35
- background-color: ${e=>e.theme.colors.grey4};
36
- box-shadow: ${e=>`0px 2px ${d.sp1} ${e.theme.colors.dropShadowNormal}`};
37
- `,Ke=g(function(e){const a=k(e),n=v(e),o=B(e),{companyName:s}=a;return{companyName:s,isDisabled:a.fetchState!=="Completed"?"disabled":void 0,magicLinkBankAccountDetails:n,mailingAddressDetails:o,magicLinkViewState:a}},function(e,a){const{navigate:n,location:o,vendorId:s,billId:l}=a;return{onFetchBankNameBySwift:i=>{e(ie(i))},onSaveHandler:i=>{j.trackBillPayMagicLinkSubmitBankAccountDetails(l),e(A(i,"international",s,l,a.isLocalCurrencyEnabled))},onBankDetailsUpdated:i=>{const{internationalWireSwiftAccountSection:r}=i;e(se({data:r}))},onAddressClick:()=>{const i=o.pathname.replace("international","address"),r=V(o.state?.pathnameStackToGoBack,o.pathname);n(i,{state:{pathnameStackToGoBack:r}})}}})(ge);function Te(){const e=C(),a=y(),n=x(),{vendorId:o,billId:s}=S(),{useFeatureGate:l}=ue(),{isFeatureEnabled:i}=l(he.isBillPayLocalCurrencyFeatureEnabled);return o==null||s==null?t.jsx(f,{}):t.jsx(Fe,{windowSize:n,children:t.jsx(Ke,{location:a,navigate:e,vendorId:o,billId:s,isLocalCurrencyEnabled:i})})}const Ge={containerWidth:new je(100,58)},Ve=m(ke)`
38
- width: ${d.sp4};
39
- height: ${d.sp4};
40
- margin-bottom: ${d.sp3};
41
- margin-top: ${d.sp3};
42
- margin-left: ${d.sp8};
43
- cursor: pointer;
44
- position: absolute;
45
- color: ${e=>e.theme.colors.brandColorJade};
46
- `,We=m.div`
47
- display: flex;
48
- height: 100vh;
49
- flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
50
- width: 100vw;
51
- overflow-y: scroll;
52
- background-color: ${e=>e.theme.colors.grey4};
53
- `,_e=m.div`
54
- display: flex;
55
- flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
56
- flex-direction: column;
57
- width: ${e=>`${Ge.containerWidth.value(e.windowSize)}%`};
58
- ${e=>e.windowSize!=="small"?"overflow: auto;":""}
59
- box-shadow: ${e=>`0px 2px ${d.sp1} ${e.theme.colors.dropShadowNormal}`};
60
- padding-top: ${e=>e.windowSize!=="small"?d.sp2:"0px"};
61
- `,He=m.div`
62
- display: flex;
63
- flex-direction: column;
64
- align-items: center;
65
- justify-content: center;
66
- padding: ${e=>e.windowSize==="small"?d.sp3:`62px ${d.sp6} ${d.sp9} ${d.sp8}`};
67
- height: ${e=>e.windowSize==="small"?"490px":"auto"};
68
- overflow: ${e=>e.windowSize==="small"?"unset":"hidden"};
69
- width: ${e=>e.windowSize=="small"?"auto":"42%"};
70
- background-color: ${e=>e.windowSize==="small"?e.theme.colors.grey4:e.theme.colors.background};
71
- margin-top: ${e=>e.windowSize==="small"?e.isAddressPage?"0px":"186px":"unset"};
72
- `,Me=g(function(e,a){return{file:a.file,type:a.type}})(ve);function h({appContent:e}){const a=ee(),n=y(),{tenantEmailDomain:o,vendorId:s,billId:l}=S(),[i]=te(),r=i.get("token"),W=n.pathname.includes("address"),b=x(),_=xe(),D=fe(),w=be(),H=()=>{_.toggle()},M=E(u=>k(u)),U=E(u=>v(u)),{authParams:J,fetchState:c,billAttachment:O,billFetchState:z,companyName:Q,currencySymbol:Y,amount:q}=M,{tenantId:P,userId:L,sessionId:N}=J,{fetchState:R,internationalBankAccountCreateStatus:X}=U;return I.useEffect(()=>{$()},[]),I.useEffect(()=>{w&&c==="Not-Started"&&s!=null&&o!=null&&r!=null&&a(le(s,o,r))},[w,c,s,o,r,a]),I.useEffect(()=>{w&&c==="Completed"&&($(L,N,P),l!=null&&a(de(l)))},[c,w,L,N,P,l,a]),c==="Error"?t.jsx(f,{}):R==="Completed"||X.fetchState==="Completed"?($(),t.jsx(ae,{to:"../../../../../../../bank/account/save/success",replace:!0,relative:"path"})):c==="In-Progress"?t.jsx(we,{fetchState:c,style:{height:"100vh",backgroundColor:D.colors.grey5,boxShadow:`0px 2px ${d.sp1} ${D.colors.dropShadowNormal}`}}):t.jsxs(t.Fragment,{children:[c==="Completed"&&z==="Completed"&&t.jsx(Se,{analytics:j,onLoad:u=>(Z=>Z.trackBillPayMagicLinkPageLoad(o??"",s??"",Q,l??"",Ue(n.pathname),Y,q))(u)}),t.jsxs(We,{windowSize:b,children:[b!=="small"?t.jsx(Ve,{onClick:H}):null,t.jsx(He,{windowSize:b,isAddressPage:W,children:z==="In-Progress"?t.jsx(ye,{size:"ExtraLarge",start:!0}):t.jsx(Me,{file:O,type:"bill"})}),t.jsx(_e,{windowSize:b,children:e})]})]})}const Ue=e=>`${e.split("/").at(-2)}_${e.split("/").at(-1)}`;function Je(){return t.jsx($e,{})}function rt(){return t.jsxs(ne,{children:[t.jsx(p,{path:"bank/account/save/success",element:t.jsx(Je,{})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/ach/standard",element:t.jsx(h,{appContent:t.jsx(F,{})})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/ach/same-day",element:t.jsx(h,{appContent:t.jsx(F,{})})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/address",element:t.jsx(h,{appContent:t.jsx(De,{isSubPage:!0})})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/us-domestic",element:t.jsx(h,{appContent:t.jsx(Ee,{})})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/international",element:t.jsx(h,{appContent:t.jsx(Te,{})})}),t.jsx(p,{path:"*",element:t.jsx(f,{})})]})}export{rt as default};
@@ -1,12 +0,0 @@
1
- import{j as f}from"./liveblocks-BseLVJU2.js";import{a as u}from"./sentry-nbOh2gVl.js";import{u as U,g as _,h as w,s as M,j as l,N as T}from"./core-C82y6_-U.js";import{z as r,m as P,D as V,e as A,c as K,f as N,I as J,n as R,h as Y}from"./index-DlaEaq7J.js";import{eR as W,JY as Z,K6 as $,JZ as q,eY as B,fp as G,K2 as H,fN as Q,cT as X,K7 as ee,K8 as te}from"./zeni-epic-state-DK35Ac89.js";import{n as ne}from"./mui-nQfThAws.js";import{u as se}from"./useDeviceId-D59OJwzF.js";import{f as ae}from"./analyticsHelper-CeM0YDjK.js";import{t as ie}from"./getLocaleForTenant-D0DGp3hd.js";import"./recharts-CjabXRup.js";import"./analytics-D_2lhI0W.js";import"./plaid-DL8Esf27.js";import"./dnd-CyXN5LMk.js";import"./stripe-DMRn4zHo.js";import"./lottie-j5BULCEN.js";import"./lexical-Cp2QekuT.js";import"./pdf-D7OKXbf1.js";import"./utils-CvRuvFNB.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]="09014ff2-51ef-4b23-840f-c37ff8a80b66",t._sentryDebugIdIdentifier="sentry-dbid-09014ff2-51ef-4b23-840f-c37ff8a80b66")}catch{}})();const D=(t,a)=>t!=null&&t.length>0&&a==="magic_links";function De(){const t=U(),a=_(),m=w(),[k]=M(),n=k.get("token"),p=k.get("stytch_token_type"),g=r.getMagicLinkCodeVerifier(),i=se(),{otpChallenge:d,twoFAPhoneNumber:x,magicLinkEmail:c,verifyDeviceFetchState:z,resendVerifyDeviceOTPFetchState:C}=l(e=>e.tenantState),S=l(e=>e.tenantState.fetchState),y=l(e=>e.tenantState.activeTenantFetchState.fetchState),I=l(e=>e.tenantState.signInState),h=l(e=>e.tenantState.magicLinkSignInFetchState.fetchState),s=l(e=>e.tenantState.loggedInUser),o=l(e=>W(e)),b=l(e=>Z(e)),E=r.getSignedInUser(),v=P().mode;u.useEffect(()=>{s?.zeniSessionId==null&&n!=null&&D(n,p)&&i!=null&&g!=null&&(r.saveMagicLinkTriggered(n),t($(n,i,g)))},[n,p,t,i,g,s?.zeniSessionId]),u.useEffect(()=>{I!=="In-Progress"||S!=="Completed"&&y!=="Completed"||s?.zeniSessionId==null||o==null||(n!=null&&r.saveLastUsedMagicLinkToken(n),r.saveSignedInUserWithSession(s,s.zeniSessionId),r.saveSignedInUserTenants(q(b.tenantsInOrder),s.zeniSessionId),B(s.userId,s.zeniSessionId,o.tenantId),t(G(o.tenantId)),r.saveActiveTenantDomainForUser(o.tenantEmailDomain),t(H("Completed")),V.updateAppLocaleID(ie(o)),ae(s,o,v,void 0,b.tenantsInOrder),Q().then(()=>{const e=Y();e!=null&&A(e)}),setTimeout(()=>{K.trackLogin(N.Event.loginSuccess,"email",X(o.productSettings))},2e3))},[I,S,y,s,o,b,v,a.state,t]);const j=u.useCallback(()=>{m("/signin/auth")},[m]),F=u.useCallback(()=>{i!=null&&d!=null&&c!=null&&t(ee(i,c,d))},[i,d,t,c]),O=u.useCallback(e=>{i!=null&&n!=null&&c!=null&&d!=null&&t(te(e,i,c,d))},[i,n,t,c,d]);if(h==="Completed"&&d!=null)return f.jsx(J,{phoneNumber:x,verifyOtpFetchState:z.fetchState,resendVerifyDeviceOTPFetchState:C,onResendOtp:F,onVerifyOtp:O,onCancelVerifyDevice:j});if(I==="In-Progress"&&S==="Completed"&&s?.zeniSessionId!=null&&o!=null||E!=null){const e=a.state?.origin??"/";return f.jsx(T,{to:e,state:{...a.state,origin:""}})}if(!D(n,p)||g==null||h==="Error"){const e=a.state?.origin??"/",L=n!=null&&r.getLastUsedMagicLinkToken()===n;return f.jsx(T,{to:e,state:{...a.state,origin:"",magicLinkAlreadyUsed:L,magicLinkExpired:!L&&(r.isMagicLinkTriggered(n??"")||h==="Error"&&s?.zeniSessionId==null)}})}return f.jsx(oe,{"data-testid":"smooth-loader",children:f.jsx(R,{size:"ExtraLarge",start:!0})})}const oe=ne.div`
2
- position: fixed;
3
- top: 0;
4
- left: 0;
5
- right: 0;
6
- bottom: 0;
7
- display: flex;
8
- align-items: center;
9
- justify-content: center;
10
- z-index: 9999;
11
- background-color: ${t=>t.theme.colors.background};
12
- `;export{De as default};
@@ -1 +0,0 @@
1
- import{j as U}from"./liveblocks-BseLVJU2.js";import{a as c}from"./sentry-nbOh2gVl.js";import{u as be,j as s,i as Je,g as Qe,h as We,l as M}from"./core-C82y6_-U.js";import{eR as he,f1 as Ke,f2 as Se,eV as Xe,bn as ea,eQ as aa,f3 as ta,f4 as na,f6 as sa,f9 as oa,fi as ia,fa as g,fc as ra,fd as ue,fg as da,fe as la,ff as ca,fh as ua,cJ as fa,fk as ma,cO as pa,bt as ba,eU as ha,fp as Sa,fq as ga,fo as Ea}from"./zeni-epic-state-DK35Ac89.js";import{a7 as ka,a8 as Ca,x as ya,s as Ia,z as k,y as Ta,u as wa,d as r,a9 as _a,aa as Aa,k as Fa,a as Da,ab as va,a3 as $a,ac as Ba,ad as Ga,ae as fe,af as me,L as xa,ag as Ma,ah as pe,c as P,_ as Pa,w as _,ai as N,aj as Na}from"./index-DlaEaq7J.js";import{D as Ua}from"./mui-nQfThAws.js";(function(){try{var f=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new f.Error().stack;d&&(f._sentryDebugIds=f._sentryDebugIds||{},f._sentryDebugIds[d]="1c9a7fc9-f2c8-4876-9ec9-bece2808faa2",f._sentryDebugIdIdentifier="sentry-dbid-1c9a7fc9-f2c8-4876-9ec9-bece2808faa2")}catch{}})();const Va=ka(({isAppContentDrawerOpen:f,handleDrawerToggle:d})=>{const{tenantEmailDomain:t}=Je(),a=Qe(),C=ya(),o=We(),V=Xe(),m=be(),{useFeatureGate:i}=Ia(),R=k.getSignedInUser(),A=ea(R),n=s(e=>he(e)),ge=n.masterTOSInfo?.isMasterTOSAccepted??!1,O=s(e=>aa(e)),j=O.uiState.currentChatSessionId,y=Ta(),{setLoading:Ee}=wa(),[F,L]=c.useState(void 0),D=M("/:tenantEmailDomain/dashboard")!==null,z=M("/:tenantEmailDomain/reports")!==null,I=M("/:tenantEmailDomain/onboarding/*")!==null,{isFeatureEnabled:Y}=i(r.isDepositAccountsFeatureEnabled),{isFeatureEnabled:ke}=i(r.isChargeCardFeatureEnabled),{isFeatureEnabled:H}=i(r.isDebitCardFeatureEnabled),Ce=_a(n,ke,H),{isFeatureEnabled:ye}=i(r.isSettingsFeatureEnabled),Z=s(e=>ta(e)),{isFeatureEnabled:T}=i(r.isReferralFeatureEnabled),v=s(e=>na(e));c.useEffect(()=>{y&&T&&!I&&v.fetchState==="Not-Started"&&m(sa(!0))},[y,T,v.fetchState,I]);const h=k.getSignedInUser(),$=s(e=>e.tenantState),Ie=s(e=>$.fetchState==="Completed"?oa(e):[]),E=s(e=>e.expenseAutomationViewState.selectedPeriodByTenantId),{isFeatureEnabled:Te}=i(r.isApAgingFeatureEnabled),{isFeatureEnabled:we}=i(r.isArAgingFeatureEnabled),{isFeatureEnabled:q}=i(r.isExpenseAutomationEnabled),{isFeatureEnabled:J}=i(r.isExpenseAutomationEnabledV2),Q=J||q&&A,{isFeatureEnabled:_e}=i(r.isDashboardSidebarHalloweenAnimationEnabled),{isFeatureEnabled:Ae}=i(r.isDashboardSidebarThanksGivingAnimationEnabled),{isFeatureEnabled:Fe}=i(r.isDashboardSidebarChristmasAnimationEnabled),{isFeatureEnabled:De}=i(r.isDashboardSidebarNewYearAnimationEnabled),{isFeatureEnabled:ve}=i(r.isTreasuryEnabled),{isFeatureEnabled:$e}=i(r.isTaskManagerCustomerUserAccessEnabled),Be=A||!A&&$e,Ge=n.company!=null&&ia(n.company),w=ve&&Ge,xe=s(e=>g(e).totalUnreadCount),Me=s(e=>g(e).reducedFetchCountState),W=s(e=>g(e).notificationDetailsByTab.tasks.uiState.unreadCount),K=s(e=>g(e).notificationDetailsByTab.comments.uiState.unreadCount),Pe=s(e=>g(e).notificationDetailsByTab.tasks.fetchCountState),B=s(e=>g(e).notificationDetailsByTab.comments.fetchCountState),{inboxNotifications:X,isLoading:ee,isFetchingMore:ae,hasFetchedAll:te,fetchMore:Ne}=Aa();c.useEffect(()=>{const e=setTimeout(()=>Ne?.(),0);return()=>clearTimeout(e)}),c.useEffect(()=>{if(ee===!1&&ae===!1&&te===!0)if(n?.companyId!=null&&X!=null){const e=`dashboard_${n.companyId}`;L(X.filter(u=>u.roomId===e&&u.readAt==null).length)}else L(0)},[ee,ae,te]),c.useEffect(()=>{y&&!I&&Pe.fetchState==="Not-Started"&&V.tenantId!=null&&m(ra("task_manager","dashboard"))},[y,V.tenantId]),c.useEffect(()=>{I||B.fetchState!=="Not-Started"||m(ue({fetchCountState:{fetchState:"In-Progress",error:void 0}},"comments"))},[]),c.useEffect(()=>{F!=null&&B.fetchState==="In-Progress"&&(m(ue({fetchCountState:{fetchState:"Completed",error:void 0}},"comments")),m(Se({unreadCount:F},"comments")))},[F,B.fetchState]);const Ue={fetchStatus:Me,count:xe},ne=t!=null?k.getSignedInUserTenant(t):null,se=s(e=>ne?.tenantId!=null?da(e,ne.tenantId):void 0),S=[];Te===!1&&S.push("accounts_payable_aging"),we===!1&&S.push("accounts_receivable_aging"),Y===!1&&S.push("zeni_accounts_promo_card"),T===!1&&S.push("rewards_card"),Q===!1&&S.push("expense_automation_card");const Ve=Fa(),oe=s(e=>la(e,S,h,J,q,w).fetchState),ie=s(e=>ca(e).fetchState),Re=D&&(oe==="Completed"||oe==="Error")||z&&(ie==="Completed"||ie==="Error")||!D&&!z?void 0:"disabled",Oe=c.useMemo(()=>ua(n.userRole),[n.userRole]),je=fa(Oe),Le=n?.rewardsLastViewedTime==null,ze=h?.userEmail!=null&&Z.fetchState==="Completed"&&ma(Z.notificationSettings,h.userEmail,H,n),re=Da(),Ye=re&&va(a),de=pa(Ve?.loggedInUserRoleMap),le=n.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,G=c.useCallback(()=>w&&de&&!k.getTreasuryPopupSeen(t??"")&&le===!1&&$a(a.pathname)!=="treasury",[w,de,le,a.pathname,t]),[He,ce]=c.useState(G);c.useEffect(()=>{ce(G())},[G]);const Ze=s(e=>e.treasurySetupViewState.treasuryFundsDetails).fundsDetails,qe=Ba(Ze);return U.jsx(Ua,{container:window.document.body,variant:"temporary",open:f,onClose:()=>d(!1),PaperProps:{sx:{width:240,zIndex:8,borderRight:"none",backgroundImage:"none"}},ModalProps:{keepMounted:!0},children:U.jsx(Ga,{signedInUser:R,currentTenantId:$.currentTenantId??"",tenants:$.fetchState==="Completed"?Ie:se!=null?[se]:[],currentTenant:n,isTenantDropdownDisabled:Re,isSettings:me(a),isSettingsFeatureEnabled:ye,isVendorsTabVisible:je,isZeniAccountEnabled:Y,isChargeCardEnabled:Ce,isTreasuryEnabled:w,treasuryYieldPercentage:qe,isTreasuryPopupVisible:He,isNotificationsTabVisible:ze,notificationCountDetails:Ue,isExpenseAutomationEnabledForUser:Q&&ba(n.userRole)===!1,selectedMenu:fe(a),rewardsConfiguration:{isRewardsTabVisible:T,isRewardsAnimated:Le,rewardsPlan:v.rewardsPlan},isAiCfoAccessEnabled:re,onNotificationIconClick:()=>{d(!1);let e=W===0&&K>0?"notifications/comments":"notifications/tasks";me(a)&&(e=W===0&&K>0?"../../notifications/comments":"../../notifications/tasks");const u=_(a.state?.pathnameStackToGoBack,a.pathname);o(e,{state:{pathnameStackToGoBack:u}})},handleCockpitClick:()=>{window.open("/cockpit")},handleLogOutClick:()=>{d(!1);const e=_(a.state?.pathnameStackToGoBack,a.pathname);o("/signout",{replace:!0,state:{pathnameStackToGoBack:e,message:"logout"}})},handleMenuChange:e=>{if(d(!1),t==null)return;if(e.type==="ai_cfo"){if(P.trackAICFOChatScreenStateChanged("viewed","left_menu",j??null,null),!ge)return void Pa({location:a,navigate:o,mergeState:{referrer:"Sidebar"}});const b=_(a.state?.pathnameStackToGoBack,a.pathname);return void o(`/${t}/ai-cfo/explore`,{state:{pathnameStackToGoBack:b,referrer:"Sidebar"}})}const u=_(a.state?.pathnameStackToGoBack,a.pathname),l=e.type,p=N(l)&&l!=="command_center";if(N(e.type)&&E[n.tenantId]!=null&&P.trackMonthEndCloseClicked(E[n.tenantId].month,E[n.tenantId].year,"Sidebar"),p&&E[n.tenantId]!=null){const b=E[n.tenantId];return void o(`/${t}/month_end_close_checks/review/${e.type}/${b.month}-${b.year}`,{state:{pathnameStackToGoBack:u,referrer:"Sidebar"}})}const x=Na(e.type);pe(e.type)?(j!=null&&m(Ea()),o(`/${t}/ai-cfo/${e.type}`,{state:{pathnameStackToGoBack:u.slice(0,-1),referrer:"Sidebar"}})):o(`/${t}/${x}`,{state:{pathnameStackToGoBack:u,referrer:"Sidebar"}})},handleMyProfileClick:()=>{d(!1),o(`/${t}/settings/my_profile`)},handleReferralsClick:()=>{d(!1),o(`/${t}/rewards`)},handleBackClick:()=>{o(`/${t}/dashboard`)},handleTenantSelect:e=>{Ee(xa.TENANT_SWITCHING),d(!1);const u=e.tenantEmailDomain,l=fe(a);let p=`/${encodeURIComponent(u)}/`;const x=N(l);l==="home"?p+="dashboard":l==="users_and_roles"?p+="people":Ma(l)?p+="settings/my_profile":pe(l)?p+=`ai-cfo/${l}`:p+=l==="task_checklist"?"tasks":x?"month_end_close_checks/review":encodeURIComponent(l),o(p,{replace:!0}),h!=null&&(m(Sa(e.tenantId)),m(ga(h.userId,e.tenantId,h.zeniSessionId)));const b=e;P.trackCompanySwitch(b.companyId,b.companyName,b.userRole)},handlePopupClose:()=>{k.saveTreasuryPopupSeen(t??"",!0),ce(!1)},onZeniLogoClick:()=>{C.toggle()},isAiCfo:Ye,aiCfoView:O,isOnDashboard:D,updateCurrentChatSessionId:e=>{m(ha({sessionId:e,agentId:"controller"})),o(`/${t}/ai-cfo/${e}`,{state:{...a.state}})},halloweenAnimationEnabled:_e,isTaskManagerAccessEnabled:Be,thanksGivingAnimationEnabled:Ae,christmasAnimationEnabled:Fe,newYearAnimationEnabled:De})})}),Ha=f=>{const d=be(),t=s(C=>he(C)),a={events:t.userRoleId!=null?[`private-encrypted-${t.userRoleId}.dashboard-user-notification`]:[],eventCallback:(C,o)=>{Ca(o)&&Ke(o.mode)==="dashboard"&&d(Se({unreadCount:o.data.unread},"tasks"))}};return U.jsx(Va,{...f,...a})};export{Ha as M};
@@ -1 +0,0 @@
1
- import{j as e}from"./liveblocks-BseLVJU2.js";import{h as r,n}from"./core-C82y6_-U.js";import{K as i}from"./index-DlaEaq7J.js";import"./mui-nQfThAws.js";import"./sentry-nbOh2gVl.js";import"./zeni-epic-state-DK35Ac89.js";import"./recharts-CjabXRup.js";import"./analytics-D_2lhI0W.js";import"./plaid-DL8Esf27.js";import"./dnd-CyXN5LMk.js";import"./stripe-DMRn4zHo.js";import"./lottie-j5BULCEN.js";import"./lexical-Cp2QekuT.js";import"./pdf-D7OKXbf1.js";import"./utils-CvRuvFNB.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new o.Error().stack;t&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[t]="b67e7853-d07a-4b85-ad9e-567e4d724f00",o._sentryDebugIdIdentifier="sentry-dbid-b67e7853-d07a-4b85-ad9e-567e4d724f00")}catch{}})();const a=n(null,function(o,t){return{onGoBack:()=>{t.navigate(-1)},onGoHome:()=>{t.navigate("/")}}})(i);function _(){const o=r();return e.jsx(a,{navigate:o})}export{_ as default};
@@ -1 +0,0 @@
1
- import{j as m}from"./liveblocks-BseLVJU2.js";import{a as r}from"./sentry-nbOh2gVl.js";import{u as A,g as j,j as o,N as C}from"./core-C82y6_-U.js";import{Kl as K,eR as P,f9 as R,Km as x,Kn as z,Ko as D,Kp as M,ng as N,Jh as L}from"./zeni-epic-state-DK35Ac89.js";import{z as h,N as I}from"./index-DlaEaq7J.js";import"./mui-nQfThAws.js";import"./recharts-CjabXRup.js";import"./analytics-D_2lhI0W.js";import"./plaid-DL8Esf27.js";import"./dnd-CyXN5LMk.js";import"./stripe-DMRn4zHo.js";import"./lottie-j5BULCEN.js";import"./lexical-Cp2QekuT.js";import"./pdf-D7OKXbf1.js";import"./utils-CvRuvFNB.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new n.Error().stack;a&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[a]="06abc12e-40a6-43f2-8a66-7ba4cdf6b9e0",n._sentryDebugIdIdentifier="sentry-dbid-06abc12e-40a6-43f2-8a66-7ba4cdf6b9e0")}catch{}})();function ee(){const n=A(),a=j(),{params:t,error:i}=r.useMemo(()=>K(a.search),[a.search]),w=r.useMemo(()=>new URLSearchParams(a.search).get("client_name")??t?.clientId??"Unknown Application",[a.search,t]),p=h.isSignedIn(),s=h.getSignedInUser(),f=o(e=>P(e)),l=o(e=>R(e)),d=o(e=>e.tenantState.fetchState),b=o(x),y=o(z),c=o(D),[v,S]=r.useState(null),[E,_]=r.useState(null);r.useEffect(()=>{document.querySelector("#app-shell-loader")?.remove()},[]),r.useEffect(()=>()=>{n(M())},[n,a.search]),r.useEffect(()=>{i!=null&&console.warn("[OAuthConsent] invalid params:",i)},[i]);const g=r.useRef(!1);r.useEffect(()=>{p&&s!=null&&!g.current&&(d!=="Not-Started"&&d!=="Error"||(g.current=!0,n(N(s.userId,s.zeniSessionId??void 0))))},[p,s,d,n]),r.useEffect(()=>{c!=null&&c!==""&&(window.location.href=c)},[c]);const U=r.useMemo(()=>{if(f?.tenantId!=null)return f.tenantId;const e=h.getActiveTenantForUser()?.tenantId;return e!=null&&l.some(T=>T.tenantId===e)?e:l.length===1?l[0].tenantId:null},[f?.tenantId,l]),u=v??U;return i!=null?m.jsx(I,{variant:"invalid_params",paramsError:i}):p?m.jsx(I,{variant:"signed_in",clientName:w,userEmail:s?.userEmail,isInitializing:d!=="Completed",tenants:l,selectedTenantId:u,onSelectTenant:S,approveError:E??y,isApproving:b==="In-Progress",showAllowButton:u!=null,onApprove:()=>{t!=null&&s!=null&&u!=null&&n(L(s.userId,s.zeniSessionId??void 0,u,t.clientId,t.redirectUri,t.codeChallenge,t.codeChallengeMethod,t.state,t.responseType))},onDeny:()=>{if(t!=null)try{const e=new URL(t.redirectUri);e.searchParams.set("error","access_denied"),e.searchParams.set("error_description","The user denied the request"),e.searchParams.set("state",t.state),window.location.href=e.toString()}catch{_("Unable to deny: redirect_uri is not a valid URL. Close this window or contact support.")}}}):m.jsx(C,{to:"/signin/auth",state:{origin:a.pathname+a.search},replace:!0})}export{ee as default};
@@ -1 +0,0 @@
1
- import{j as n}from"./liveblocks-BseLVJU2.js";import{h as Y,u as Z,g as z,i as Q,j as d,n as X,o as H,p as I}from"./core-C82y6_-U.js";import{eR as O,rl as P,qV as J,KT as v,qQ as T,bt as ee,bn as ae,bT as te,qR as se,KU as oe,KF as C,dE as re,uS as ne,KV as ie,vd as ce,f0 as le,e_ as de}from"./zeni-epic-state-DK35Ac89.js";import{z as me,X as fe,Z as pe,k as ue,s as w,d as M,A as he,c as q,ao as be,w as Fe}from"./index-DlaEaq7J.js";import"./mui-nQfThAws.js";import ge from"./NotFoundScreen-Cavr5OZ5.js";import{F as Ie}from"./FeaturePreviewScreen-DpEWuYMb.js";import{a as b}from"./sentry-nbOh2gVl.js";import{u as Ce}from"./useAskAiCfoHostNavButtonProps-DoDP7B3S.js";import{u as Te}from"./useInitialThreadRequest-CU3qAAey.js";import{t as Se}from"./routePaths-CG9FBSKj.js";import{M as ye}from"./MobileAppDrawer-my2gXRON.js";import"./recharts-CjabXRup.js";import"./analytics-D_2lhI0W.js";import"./plaid-DL8Esf27.js";import"./dnd-CyXN5LMk.js";import"./stripe-DMRn4zHo.js";import"./lottie-j5BULCEN.js";import"./lexical-Cp2QekuT.js";import"./pdf-D7OKXbf1.js";import"./utils-CvRuvFNB.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new s.Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="45bb0b44-046b-491d-8afd-971ff5243e68",s._sentryDebugIdIdentifier="sentry-dbid-45bb0b44-046b-491d-8afd-971ff5243e68")}catch{}})();const S=(s,e,a,o)=>{if(s!=e){const r=o??"";s!=null&&s.length>0?a(`../${e}${r}`,{replace:!0}):a(`${e}${r}`,{replace:!0})}},ke=X(function(s){const e=oe(s),a={},o=e.pandLReportWithForecast.uiState.nodeCollapseState;return Object.keys(o).forEach(r=>{a[r]=o[r]===!1}),{selectedTimeframe:e.selectedTimeframe,isForecastVsActualOn:e.isForecastVsActualOn,compareMode:e.compareMode,forecastList:e.forecastList,selectedForecast:e.selectedForecast,pandLreport:e.pandLReportWithForecast,scrollPosition:e.pandLReportWithForecast.uiState.scrollPosition,nodeOpenStatus:a,type:"name+balances_forecast",analytics:q}},function(s,e){return{onForecastSelectionChanged:(a,o)=>{s(v(a,o)),e.isPandLReportFetched(a)||s(T(a)),S(e.forecastIdFromUrlPath,a,e.navigate)},onTimeframeChanged:a=>{s(ce(a))},onForecastVsActualsCompareToggle:a=>{s(ie(a)),s(C({forecastId:e.forecastIdFromUrlPath,scrollPosition:{scrollLeft:0,scrollTop:0}}))},onCompareModeChanged:a=>{s(ne(e.firstMonthOfFY,a,0,[]))},onAccountBalanceClick:e.hasTransactionAccess!==!0?void 0:(a,o)=>{let r,i;const p=a.accountName===""?a.accountDescription:a.accountName;if(o.balanceTimeFrame==="month"||o.balanceTimeFrame==="quarter"?(r=o.balanceTimeFrame,i=re(o)):o.balanceTimeFrame==="year"?(r="quarter",i={startDate:o.endDate.startOf("quarter"),endDate:o.endDate}):console.error(`timeframe ${o.balanceTimeFrame} is not supported`),i!=null&&r!=null){const m=Se(e.tenantEmailDomain,a.accountId,a.accountType,p,r,i),u=Fe(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(m,{state:{pathnameStackToGoBack:u,referrer:"Forecast"}})}},onNodeCollapseToggled:(a,o)=>{s(C({forecastId:e.forecastIdFromUrlPath,nodeCollapseState:{nodeId:a,isCollapsed:o===!1}}))},onTableScroll:a=>{s(C({forecastId:e.forecastIdFromUrlPath,scrollPosition:a}))},onBackClick:()=>{e.navigate("../../")}}})(be);function U(){const s=Y(),e=Z(),a=z(),{forecastId:o,tenantEmailDomain:r}=Q(),[i,p]=b.useState(!1),[m,u]=b.useState(!1),h=me.getSignedInUser(),y=d(t=>O(t)),$=y.company?.companyInfo.firstMonthOfFY??1,c=d(t=>P(t.forecastState,t.forecastListState)),l=d(t=>t.forecastListState.fetchState==="Completed"),k=d(t=>t.profitAndLossState),A=d(t=>t.reportUIOptionsState.selectedForecast),x=t=>k.pandLByForecastID[t]!=null&&se(t,k).reducedAllFetchState.fetchState==="Completed",{areTenantIdsInSync:F}=fe();pe({isDataReady:l});const{isAiCfoAccessEnabled:_,onAskAiCfoClick:B}=Ce({mobileExploreReferrer:"Forecast"});b.useEffect(()=>{if(!i&&F)p(!0),l||e(J());else if(l&&!m){u(!0);const t=((f,L,R)=>L!=null?f.forecasts.findIndex(g=>g.id===L):R!=null?f.forecasts.findIndex(g=>g.id===R):f.forecasts.length>0?0:-1)(c,o,A?.id);t===-1&&o!=null?s("page-not-found",{replace:!0}):t!==-1&&t!=A?.index?(e(v(c.forecasts[t].id,t)),S(o,c.forecasts[t].id,s,a.search)):o==null&&t!==-1&&S(void 0,c.forecasts[t].id,s,a.search),t!==-1&&!x(c.forecasts[t].id)&&F&&e(T(c.forecasts[t].id))}},[i,p,e,l,c,m,u,P,T,F]);const D=ue(),N=D?.loggedInUserRole!=null&&ee(D.loggedInUserRole),{useFeatureGate:V}=w(),{isFeatureEnabled:E}=V(M.isReportsCommentingEnabled),W=Te(E?y?.companyId:void 0,{clearParams:l&&m}),[G,K]=b.useState(!1),j=t=>{K(t)};return n.jsxs(n.Fragment,{children:[l?n.jsx(he,{analytics:q,onLoad:t=>(f=>f.trackForecast())(t)}):null,n.jsx(ye,{isAppContentDrawerOpen:G,handleDrawerToggle:j}),n.jsx(ke,{firstMonthOfFY:$,tenantEmailDomain:r,forecastIdFromUrlPath:o,navigate:s,location:a,isPandLReportFetched:x,meetingUrl:te(`https://meetings.hubspot.com/svitlana-grankovska?firstname=${h?.firstName}&lastname=${h?.lastName}&email=${h?.userEmail}`),hasTransactionAccess:N,isAiCfoAccessEnabled:_,onAskAiCfoClick:B,isReportsCommentingEnabled:E,isZeniUser:ae(h),initialOpenThreadRequest:W,onClickMenuIcon:()=>{j(!0)}})]})}function Ke(){const s=d(i=>O(i)),{useFeatureGate:e}=w(),{isFeatureEnabled:a}=e(M.isDebitCardFeatureEnabled),o=le(a,s),r=de(s);return o===!0||r===!0?n.jsx(Ie,{}):n.jsxs(H,{children:[n.jsx(I,{path:"/",element:n.jsx(U,{})}),n.jsx(I,{path:"/:forecastId",element:n.jsx(U,{})}),n.jsx(I,{path:"/:forecastId/*",element:n.jsx(ge,{})})]})}export{Ke as PandLWithForecastRoutes,Ke as default};
@@ -1,22 +0,0 @@
1
- import{j as s}from"./liveblocks-BseLVJU2.js";import{KO as te,eR as J,jI as G,f0 as X,e_ as ne,Ie as q,Ks as oe,tQ as Ee,KP as N,tE as ke,tZ as Ie,tT as ie,tI as re,tX as Pe,tU as je,KQ as le,vE as Le,KR as Te,fD as ve,KS as K,tN as de,tL as ce,u0 as Fe,c2 as Re}from"./zeni-epic-state-DK35Ac89.js";import{J as pe,s as Y,d as E,z as H,a9 as ue,F as me,ak as ge,al as Ae,E as he,o as A,$ as fe,D as Ce,am as Oe,X as Ve,Z as Ue,A as Ze,c as be,f as Be,w as $e,an as Ke,k as _e}from"./index-DlaEaq7J.js";import{D as ye,n as M,S as Se}from"./mui-nQfThAws.js";import ae from"./NotFoundScreen-Cavr5OZ5.js";import{a as r}from"./sentry-nbOh2gVl.js";import{u as ee,i as ze,j as m,h as Ge,g as He,n as Me,o as se,p as $}from"./core-C82y6_-U.js";import{u as Qe}from"./useAskAiCfoHostNavButtonProps-DoDP7B3S.js";import{M as We}from"./MobileAppDrawer-my2gXRON.js";import"./recharts-CjabXRup.js";import"./analytics-D_2lhI0W.js";import"./plaid-DL8Esf27.js";import"./dnd-CyXN5LMk.js";import"./stripe-DMRn4zHo.js";import"./lottie-j5BULCEN.js";import"./lexical-Cp2QekuT.js";import"./pdf-D7OKXbf1.js";import"./utils-CvRuvFNB.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]="ab3b87a5-66db-4714-9934-a39a98129caf",a._sentryDebugIdIdentifier="sentry-dbid-ab3b87a5-66db-4714-9934-a39a98129caf")}catch{}})();const Ne={overlayWidth:new he(100,100,48)},_=Ce.getLocalizedStrings().peoplePage.invitePage,Je=({companyId:a,managersListView:t,companyPassportView:l,classListView:n,mode:g,isEditPeopleDrawerOpen:o,closeDrawerHandler:y})=>{const h=pe(),p=ee(),[O,V]=r.useState(!1),[I,S]=r.useState(!1),{userId:w}=ze(),d=m(e=>te(e)),u=m(e=>J(e)),D=m(e=>G(e)),{useFeatureGate:f}=Y(),{isFeatureEnabled:k}=f(E.isDebitCardFeatureEnabled),P=X(k,u),T=ne(u),v=q(u),U=oe(u),Z=!!u.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,x=!P&&D&&n.fetchState!=="Completed"||t.fetchState!=="Completed"||l.fetchState!=="Completed"||a==null;if(H.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const C=()=>{p(N()),y()},F=()=>{O===!0?S(!0):C()},B=l.companyView?.controllers?.map(e=>e.user),{isFeatureEnabled:c}=f(E.isDepositAccountsFeatureEnabled),{isFeatureEnabled:j}=f(E.isChargeCardFeatureEnabled),L=ue(u,j,k),{isFeatureEnabled:R}=f(E.isTreasuryEnabled),b={peopleDetails:d,classList:n.classes,managersList:t.users,controllersList:B,mode:g,isZeniTenant:v,isAccountingClassesEnabled:D,isReimbursementDisabled:Z===!1,isZeniAccountsDisabled:c===!1,isChargeCardDisabled:L===!1,isTreasuryDisabled:R===!1,isLiteRoleDisabled:U===!1,isBankingOnlyTenant:P,isCardsOnlyTenant:T,onResetClick:C,onDeleteUser:e=>{p(re(e.userId,e.userRole.userRoleId))},onPeopleLocalDataUpdated:e=>{p(ie({peopleLocalData:e})),V(!0)},onSaveClick:()=>{p(g==="zeni_only"?ke(a):Ie(v))},onCloseClick:F,isLoading:x||d.person==null},i={onOkClick:()=>{S(!1),C()},onCancelClick:()=>{S(!1)}};return r.useEffect(()=>{x===!1&&w!=null&&p(Ee(w))},[x,w]),r.useEffect(()=>{d.updatePersonState.fetchState==="Completed"&&C()},[d.updatePersonState.fetchState]),s.jsx(ye,{anchor:"right",open:o,PaperProps:{style:{width:Ne.overlayWidth.valuePercentage(h),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:me.overlayDark,cursor:"pointer"}}},onClose:F,children:s.jsxs(Xe,{onClick:e=>e.stopPropagation(),children:[I===!0?s.jsx(ge,{titleComponent:s.jsx(we,{children:_.discardTitle}),descriptionComponent:s.jsx(De,{children:_.discardDescription}),primaryButtonText:_.discard,secondaryButtonText:_.no,action:i,isEditPopup:!0}):null,s.jsx(Ae,{...b})]})})},Xe=M(Se)`
2
- display: flex;
3
- min-height: 100%;
4
- flex-direction: column;
5
- `,we=M(fe.H6Regular)`
6
- margin-top: ${A.sp7};
7
- padding-left: ${A.sp8};
8
- padding-right: ${A.sp8};
9
- color: ${a=>a.theme.colors.primary};
10
- word-break: break-word;
11
- `,De=M(fe.LargeRegularSp)`
12
- color: ${a=>a.theme.colors.hero};
13
- padding-left: ${A.sp8};
14
- padding-right: ${A.sp8};
15
- margin-bottom: 30px;
16
- margin-top: ${A.sp4};
17
- white-space: pre-line;
18
- `,qe={overlayWidth:new he(100,100,48)},z=Ce.getLocalizedStrings().peoplePage.invitePage,Ye=({companyId:a,managersListView:t,companyPassportView:l,classListView:n,mode:g,isInvitePeopleDrawerOpen:o,closeDrawerHandler:y})=>{const h=pe(),p=ee(),[O,V]=r.useState(!1),[I,S]=r.useState(!1),w=m(i=>te(i)),d=m(i=>J(i)),u=m(i=>G(i)),{useFeatureGate:D}=Y(),{isFeatureEnabled:f}=D(E.isDebitCardFeatureEnabled),k=X(f,d),P=ne(d),T=q(d),v=oe(d),U=!!d.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,Z=!k&&u&&n.fetchState!=="Completed"||t.fetchState!=="Completed"||l.fetchState!=="Completed"||a==null;if(H.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const x=()=>{y(),p(N())},C=()=>{O===!0?S(!0):x()},F={onOkClick:()=>{S(!1),x()},onCancelClick:()=>{S(!1)}},B=l.companyView?.controllers.map(i=>i.user),{isFeatureEnabled:c}=D(E.isDepositAccountsFeatureEnabled),{isFeatureEnabled:j}=D(E.isChargeCardFeatureEnabled),L=ue(d,j,f),{isFeatureEnabled:R}=D(E.isTreasuryEnabled),b={classList:n.classes,managersList:t.users,controllersList:B,mode:g,isZeniTenant:T,onPeopleLocalDataUpdated:i=>{p(ie({peopleLocalData:i})),V(!0)},onResetClick:x,onSaveClick:()=>{p(g==="zeni_only"?Pe(a):je())},onCloseClick:C,peopleDetails:w,isAccountingClassesEnabled:u,isReimbursementDisabled:U===!1,isLiteRoleDisabled:v===!1,isZeniAccountsDisabled:c===!1,isChargeCardDisabled:L===!1,isTreasuryDisabled:R===!1,isBankingOnlyTenant:k,isCardsOnlyTenant:P,isLoading:Z};return r.useEffect(()=>{w.invitePersonState.fetchState==="Completed"&&(y(),p(N()))},[w.invitePersonState.fetchState]),s.jsx(ye,{anchor:"right",open:o,PaperProps:{style:{width:qe.overlayWidth.valuePercentage(h),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:me.overlayDark,cursor:"pointer"}}},onClose:C,children:s.jsxs(ea,{onClick:i=>i.stopPropagation(),children:[I===!0?s.jsx(ge,{titleComponent:s.jsx(we,{children:z.discardTitle}),descriptionComponent:s.jsx(De,{children:z.discardDescription}),primaryButtonText:z.discard,secondaryButtonText:z.no,action:F}):null,s.jsx(Oe,{...b})]})})},ea=M(Se)`
19
- display: flex;
20
- min-height: 100%;
21
- flex-direction: column;
22
- `,aa=Me(function(a,t){const l=le(a),n=H.getSignedInUser();return{data:l,loggedinUserId:n?.userId??"",isZeniTenant:t.isZeniTenant===!0,shouldFetchClasses:t.shouldFetchClasses,isZeniAdminUser:n?.userEmailDomain==="zeni.ai"&&t.isZeni===!0,isAccountingClassesEnabled:G(a),analytics:be}},function(a,t){const{navigate:l,companyId:n,shouldFetchClasses:g}=t;return{personAction:{onPersonDelete:(o,y)=>{a(re(o,y))},onResendInvite:o=>{a(Fe(o))},onReloadPeople:()=>{a(de()),a(ce(n,g))},onBackClick:()=>{l("../../")},onModeChange:o=>{a(K({mode:o,searchText:"",sortKey:"name",sortOrder:"ascending"}))},onSearchTextChanged:o=>{a(K({searchText:o}))}}}})(Ke);function W({isInvitePeopleDrawerOpen:a,isEditPeopleDrawerOpen:t}){const l=Ge(),n=ee(),g=He(),{areTenantIdsInSync:o}=Ve(),y=H.getSignedInUser(),h=m(e=>J(e)),{useFeatureGate:p}=Y(),{isFeatureEnabled:O}=p(E.isDebitCardFeatureEnabled),V=m(e=>G(e)),I=!X(O,h)&&V,S=q(h),w=h?.tenantId,{tenantEmailDomain:d}=h,[u,D]=r.useState(!1),[f,k]=r.useState(!1),[P,T]=r.useState(!1),[v,U]=r.useState("off"),[Z,x]=r.useState(!1),C=e=>{x(e)},{isAiCfoAccessEnabled:F,onAskAiCfoClick:B}=Qe({mobileExploreReferrer:"People"}),c=m(e=>le(e));Ue({isDataReady:c.fetchState==="Completed"});const j=m(e=>Le(e.classState,e.classListState)),L=m(e=>Te(e.userState,e.userRoleState,e.userListViewState,"manager")),R=m(e=>ve(e)),b=h?.companyId;r.useEffect(()=>{u&&v===c.uiState.mode||!o||(n(K({searchText:"",sortKey:"name",sortOrder:"ascending"})),U(c.uiState.mode),D(!0),n(de()))},[u,y,w,n,c.uiState.mode,o]),r.useEffect(()=>{b!=null&&o&&n(ce(b,I))},[b,I,o]),r.useEffect(()=>{k(a!=null&&a===!0),T(t!=null&&t===!0&&t)},[a,t]),r.useEffect(()=>{n(K({searchText:"",sortKey:"name",sortOrder:"ascending"}))},[]);const i=()=>{k(!1),T(!1),l("../")};return s.jsxs(s.Fragment,{children:[c.fetchState==="Completed"?s.jsx(Ze,{analytics:be,onLoad:e=>e.trackPageLoaded(Be.Event.members)}):null,f===!0?s.jsx(Ye,{closeDrawerHandler:i,isInvitePeopleDrawerOpen:f,managersListView:L,companyPassportView:R,classListView:j,companyId:b,mode:c.uiState.mode}):null,P===!0?s.jsx(Je,{closeDrawerHandler:i,isEditPeopleDrawerOpen:P,managersListView:L,companyPassportView:R,classListView:j,companyId:b,mode:c.uiState.mode}):null,s.jsx(We,{isAppContentDrawerOpen:Z,handleDrawerToggle:C}),s.jsx(aa,{navigate:l,signedInUser:y,isZeni:h.isZeni,isZeniTenant:S,peopleUIState:c.uiState,companyId:b,shouldFetchClasses:I,classList:j,managersView:L,peopleView:c,onInvitePeopleClick:()=>{l("./new")},onColumnSortConfigChanged:(e,Q)=>{n(K({sortKey:e,sortOrder:Q}))},onRowClick:e=>{const Q=`/${d}/people/${encodeURIComponent(e)}/edit`,xe=$e(g.state?.pathnameStackToGoBack,g.pathname);l(Q,{state:{pathnameStackToGoBack:xe}})},onClickMenuIcon:()=>{C(!0)},isAiCfoAccessEnabled:F,onAskAiCfoClick:B})]})}function Sa(){const a=_e();return Re(a?.loggedInUserRole??[])?s.jsxs(se,{children:[s.jsx($,{path:"/",element:s.jsx(W,{})}),s.jsx($,{path:"new",element:s.jsx(W,{isInvitePeopleDrawerOpen:!0})}),s.jsx($,{path:":userId/edit",element:s.jsx(W,{isEditPeopleDrawerOpen:!0})}),s.jsx($,{path:"*",element:s.jsx(ae,{})})]}):s.jsx(se,{children:s.jsx($,{path:"*",element:s.jsx(ae,{})})})}export{Sa as default};
@@ -1 +0,0 @@
1
- import{j as s}from"./liveblocks-BseLVJU2.js";import T from"./NotFoundScreen-Cavr5OZ5.js";import{a as r}from"./sentry-nbOh2gVl.js";import{h as _,g as v,j as p,i as M,u as U,N as P,n as V,o as z,p as h}from"./core-C82y6_-U.js";import{eR as F,QE as b,bo as B,bn as N,hp as O,gV as Q}from"./zeni-epic-state-DK35Ac89.js";import{x as Z,z as I,Z as $,cF as q}from"./index-DlaEaq7J.js";import"./mui-nQfThAws.js";import{u as G}from"./useAskAiCfoHostNavButtonProps-DoDP7B3S.js";import{M as H}from"./MobileAppDrawer-my2gXRON.js";import"./recharts-CjabXRup.js";import"./analytics-D_2lhI0W.js";import"./plaid-DL8Esf27.js";import"./dnd-CyXN5LMk.js";import"./stripe-DMRn4zHo.js";import"./lottie-j5BULCEN.js";import"./lexical-Cp2QekuT.js";import"./pdf-D7OKXbf1.js";import"./utils-CvRuvFNB.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]="ec76c2fc-06c8-4712-b50f-1f42d8f10663",e._sentryDebugIdIdentifier="sentry-dbid-ec76c2fc-06c8-4712-b50f-1f42d8f10663")}catch{}})();const J=V(function(e){const t=I.getSignedInUser(),c=e.tenantState.currentTenantId,o={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:c??""},{aggregatedReportViewState:n}=b(e);return{authParams:o,isDisabled:!1,loggedInUser:t,aggregatedReport:n}},function(e,t){return{onBackClick:()=>{t.navigate("../../")},onClickMenuIcon:()=>{t.handleDrawerToggle(!0)}}})(q),K=()=>{const e=_(),t=v(),c=Z(),o=p(a=>F(a)),{aggregatedReportViewState:n}=p(a=>b(a)),{tenantEmailDomain:m}=M(),u=U(),d=I.getSignedInUser();if(d==null)throw new Error("Can't access this page without signing in...");const f=r.useRef(!1),[w,S]=r.useState(!1),C=B(o?.userRole??[]),x=o?.userRole?.includes("bookkeeping_admin")??!1,k=N(d),y=C||x||k,l=r.useCallback((a,i,E)=>{u(O({fromMonth:a,toMonth:i,cacheOverride:E}))},[]);r.useEffect(()=>{n?.fetchState==="Completed"&&f.current&&(u(Q({messageSection:"data_refresh_update",messageText:"success",type:"success",showStatusIcon:!0})),f.current=!1)},[n?.fetchState]);const D=r.useCallback((a,i)=>{n!=null&&n?.fetchState==="In-Progress"||l(a,i,!0),f.current=!0},[n?.fetchState,l]),R=r.useCallback((a,i)=>{l(a,i,!1)},[l]),g=a=>{S(a)},{isAiCfoAccessEnabled:j,onAskAiCfoClick:A}=G({mobileExploreReferrer:"Performance"});return $({isDataReady:n?.fetchState==="Completed"}),y?s.jsxs(s.Fragment,{children:[s.jsx(H,{isAppContentDrawerOpen:w,handleDrawerToggle:g}),s.jsx(J,{navigate:e,location:t,themeState:c,currentTenant:o,signedInUser:d,tenantEmailDomain:m,onReload:D,onTimeRangeSelect:R,handleDrawerToggle:g,isAiCfoAccessEnabled:j,onAskAiCfoClick:A})]}):s.jsx(P,{to:`/${m}/dashboard`,replace:!0})};function ge(){return s.jsxs(z,{children:[s.jsx(h,{path:"*",element:s.jsx(K,{})}),s.jsx(h,{path:"*",element:s.jsx(T,{})})]})}export{ge as default};
@@ -1,5 +0,0 @@
1
- import{j as s}from"./liveblocks-BseLVJU2.js";import{a as o}from"./sentry-nbOh2gVl.js";import{j as f,h as L,u as N,g as V,n as F}from"./core-C82y6_-U.js";import{m as M,J as W,z as R,bb as _,E as U,X as $,Z as z,A as X,c as l,f as Z,a7 as q,bc as J}from"./index-DlaEaq7J.js";import{f4 as G,eR as K,Ng as I,Nh as Q,uI as Y,uy as g,f6 as ee,bO as ae,uD as re,Ni as ne}from"./zeni-epic-state-DK35Ac89.js";import{D as te,e as se,n as oe,S as ie}from"./mui-nQfThAws.js";import{u as le}from"./useAskAiCfoHostNavButtonProps-DoDP7B3S.js";import{M as ce}from"./MobileAppDrawer-my2gXRON.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]="6525f815-2abf-45aa-9acd-f6c6bb33cb1f",e._sentryDebugIdIdentifier="sentry-dbid-6525f815-2abf-45aa-9acd-f6c6bb33cb1f")}catch{}})();const de={overlayWidth:new U(100,100,30)},fe=({isReferralDrawerOpen:e,closeDrawerHandler:a})=>{const r=M(),n=W();if(R.getSignedInUser()==null)throw Error("Can't access How Referral works without signing in...");const i=()=>{a(!0)},u=f(c=>G(c));return s.jsx(te,{anchor:"right",open:e,PaperProps:{style:{width:de.overlayWidth.valuePercentage(n),boxShadow:"none"}},slotProps:{backdrop:{style:{opacity:.75,backgroundColor:r.colors.black,cursor:"pointer"}}},onClose:()=>i(),children:s.jsx(se,{in:e,direction:"left",children:s.jsx(ue,{onClick:c=>c.stopPropagation(),children:s.jsx(_,{onDismissClick:i,rewardsPlan:u.rewardsPlan})})})})},ue=oe(ie)`
2
- display: flex;
3
- min-height: 100%;
4
- flex-direction: column;
5
- `,P="refer-and-earn-status-update",we=F(function(e){const a=I(e),r=e.referralViewState.rewardsPlanFetchState,n=ae([a,r]);return{inviteList:a.invitations,uiState:a.uiState,pendingBonus:a.pendingBonus,earnedBonus:a.earnedBonus,pendingReferrals:a.pendingReferrals,fetchState:n.fetchState,rewardsPlan:a.rewardsPlan}},function(e,a){const{navigate:r}=a;return{onColumnSortConfigChanged:(n,i)=>{e(ne({sortOrder:i,sortkey:n}))},onInviteClick:()=>{l.trackRewardsPageClicked("invite via email"),r("../refer")},onHowItWorksClick:()=>{l.trackRewardsPageClicked("know more"),r("../how-it-works")},onResendInviteClick:n=>{l.trackRewardsPageClicked("resend invite"),e(re(n))},onBackClick:()=>{r("../",{relative:"path"})},onReloadInvitees:()=>{e(g(!0))},onCopyReferralLink:()=>{l.trackRewardsPageClicked("copy referral link")},onClickRefer:()=>{l.trackRewardsPageClicked("refer")},onEventReceived:n=>{n===P&&e(g(!0,!0))}}})(q(J));function ve({isReferralDrawerOpen:e}){const a=L(),r=N(),n=V(),[i,u]=o.useState(!1),[c,D]=o.useState(!1),[x,E]=o.useState(!1),[k,b]=o.useState(!1),w=R.getSignedInUser(),h=f(t=>K(t)),C=f(t=>I(t)),m=C.fetchState,p=f(t=>t.referralViewState.rewardsPlanFetchState),y=Q([C,p]),{areTenantIdsInSync:d}=$();o.useEffect(()=>{h?.rewardsLastViewedTime==null&&x===!1&&(r(Y()),E(!0))},[]),o.useEffect(()=>{!i&&m==="Not-Started"&&d&&(u(!0),r(g(!0)))},[m,r,d]),o.useEffect(()=>{!c&&p.fetchState==="Not-Started"&&d&&(D(!0),r(ee(!0)))},[p,r,d]),o.useEffect(()=>{b(e!=null&&e===!0)},[e]);const[j,A]=o.useState(!1),v=t=>{A(t)},{isAiCfoAccessEnabled:T,onAskAiCfoClick:B}=le({mobileExploreReferrer:"Rewards"});z({isDataReady:y===!0});const O={events:w?.userId!=null?[`private-encrypted-${w.userId}.${P}`]:[],eventCallback:(t,S,H)=>{H.onEventReceived(t)}};return s.jsxs(s.Fragment,{children:[y===!0?s.jsx(X,{analytics:l,onLoad:t=>(S=>{w!=null&&S.trackPageLoaded(Z.Event.rewardsPageViewed)})(t)}):null,s.jsx(ce,{isAppContentDrawerOpen:j,handleDrawerToggle:v}),k===!0?s.jsx(fe,{closeDrawerHandler:()=>{b(!1),a("..")},isReferralDrawerOpen:k}):null,s.jsx(we,{location:n,navigate:a,currentTenant:h,onClickMenuIcon:()=>{v(!0)},isAiCfoAccessEnabled:T,onAskAiCfoClick:B,...O})]})}export{ve as R};
@@ -1 +0,0 @@
1
- import{j as t}from"./liveblocks-BseLVJU2.js";import x from"./NotFoundScreen-Cavr5OZ5.js";import{a as p}from"./sentry-nbOh2gVl.js";import{h as D,g as I,u as C,j as d,N as A,n as E,o as k,p as u}from"./core-C82y6_-U.js";import{eR as O,Oa as g,Oq as S,DF as T,CO as V,DE as c,Dv as U,OH as _}from"./zeni-epic-state-DK35Ac89.js";import{m as $,z as B,B as N,a7 as W,bS as q,af as z}from"./index-DlaEaq7J.js";import"./mui-nQfThAws.js";import{R as h}from"./ReimbursementApprovalRuleDetailScreen-BWvmXZpb.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]="a522c417-8ff2-4ed2-877b-db9d857bd629",e._sentryDebugIdIdentifier="sentry-dbid-a522c417-8ff2-4ed2-877b-db9d857bd629")}catch{}})();const m="reimbursement-approval-rule-update",F=E(function(e){return{approvalView:g(e),remiSetupApproverViewUpdateData:S(e).remiSetupApproverViewUpdateData}},function(e,r){const{navigate:a,location:l}=r;return{onApprovalRulesEventReceived:s=>{s.endsWith(m)&&e(_(!1))},onBackClick:()=>{z(l)?a("../../"):a("../../../reimbursements/setup")},onDeleteRuleClick:s=>{e(U(s))},onEditRuleClick:s=>{s!=null?(e(c(s)),a(`./${s}/edit`)):(e(c()),a("./new"))}}})(W(q)),H=()=>{const e=D(),r=I(),a=C(),[l,s]=p.useState(!1),[f,y]=p.useState(!1),b=d(n=>n.remiSetupApproverViewState.fetchState),o=d(n=>O(n)),w=$(),i=d(n=>g(n)),v=d(n=>S(n).remiSetupApproverViewUpdateData);if(p.useEffect(()=>{v?.updateStatus.fetchState==="Completed"&&a(T())},[v]),p.useEffect(()=>{l||b!=="Not-Started"||(s(!0),a(V(!0)))},[l,b,a]),B.getSignedInUser()==null)throw Error("Can't access reimbursement approval without signing in...");p.useEffect(()=>{i.allApprovalRules.length===0&&i.fetchState==="Completed"&&(f||(y(!0),a(c())),e("./new"))},[f,i,a]);const R={events:o.companyId!=null?[`private-encrypted-${o.companyId}.${m}`]:[],eventCallback:(n,P,j)=>{n.endsWith(m)&&j.onApprovalRulesEventReceived(n)}};return o.companyReimbursementInfo?.info?.isReimbursementTOSAccepted===!1?t.jsx(A,{to:"../../promo"}):o.companyReimbursementInfo?.info?.isReimbursementTOSAccepted!==!0||i.fetchState!=="Completed"&&i.fetchState!=="Error"?t.jsx(N,{fetchState:"In-Progress",style:{backgroundColor:w.colors.grey5}}):t.jsx(F,{currentTenant:o,location:r,navigate:e,...R})};function Z(){return t.jsxs(k,{children:[t.jsx(u,{path:"/",element:t.jsx(H,{})}),t.jsx(u,{path:"/new",element:t.jsx(h,{})}),t.jsx(u,{path:"/:approvalRuleId/edit",element:t.jsx(h,{})}),t.jsx(u,{path:"*",element:t.jsx(x,{})})]})}export{Z as R};
@@ -1 +0,0 @@
1
- import{j as p}from"./liveblocks-BseLVJU2.js";import{g as z,h as ge,u as Ce,i as Ie,j as d,n as we,o as Se,p as G}from"./core-C82y6_-U.js";import{eR as L,ff as I,Kr as Te,jI as Q,p_ as W,qP as F,jw as Re,iA as Ae,uc as X,qU as Oe,bt as Fe,Ks as ke,bn as De,vl as je,Kt as Ee,Ku as Pe,u4 as Me,Kv as H,Kw as Le,Kx as ve,Ky as Be,Kz as Ke,KA as w,KB as k,KC as D,KD as Y,KE as j,KF as E,dE as Ue,v1 as Ve,uR as N,uS as q,v7 as xe,uW as $,vd as ze,KG as Ge,KH as He,KI as Ye,KJ as Ne,KK as qe,f0 as $e,e_ as Ze}from"./zeni-epic-state-DK35Ac89.js";import{M as Je,O as Qe,R as We,T as Xe,J as ea,s as ee,d as P,z as ae,X as aa,k as sa,a as ta,Y as oa,Z as na,A as ra,c as M,f as ia,_ as la,w as se,a0 as ca,a1 as da,a2 as pa}from"./index-DlaEaq7J.js";import"./mui-nQfThAws.js";import fa from"./NotFoundScreen-Cavr5OZ5.js";import{F as ma}from"./FeaturePreviewScreen-DpEWuYMb.js";import{a as _}from"./sentry-nbOh2gVl.js";import{u as ua}from"./useInitialThreadRequest-CU3qAAey.js";import{t as Z,a as J,b as _a}from"./routePaths-CG9FBSKj.js";import{M as ha}from"./MobileAppDrawer-my2gXRON.js";import"./recharts-CjabXRup.js";import"./analytics-D_2lhI0W.js";import"./plaid-DL8Esf27.js";import"./dnd-CyXN5LMk.js";import"./stripe-DMRn4zHo.js";import"./lottie-j5BULCEN.js";import"./lexical-Cp2QekuT.js";import"./pdf-D7OKXbf1.js";import"./utils-CvRuvFNB.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]="c898617c-1fa4-4b28-b204-167e79f3bdde",e._sentryDebugIdIdentifier="sentry-dbid-c898617c-1fa4-4b28-b204-167e79f3bdde")}catch{}})();const ba=["profit_loss","balance_sheet","cash_flow"],y=e=>{e(E({resetLeftScroll:!0})),e(j({resetLeftScroll:!0})),e(D({resetLeftScroll:!0})),e(k({resetLeftScroll:!0}))},ya=e=>{e(He()),e(Ye()),e(Ne()),e(qe())},ga=we(function(e){const o=ae.getSignedInUser(),f=e.tenantState.currentTenantId,u=L(e),a=u?.companyName??"",s={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:f??""},t=I(e),r=ke(u);return{fetchState:t.fetchState,selectedTimeframe:t.filter.timeframe,selectedReport:t.selectedReportId,displayOrder:t.displayOrder,reportFormat:t.reportFormat,dataAvailable:t.dataAvailable,balancesInTimeframe:t.balancesInTimeframe,allTimeframeTicks:t.allTimeframeTicks,selectedCOABalancesRange:t.filter.balancesRange,isCompareMode:t.isCompareModeOn,profitAndLossReport:t.profitAndLossReport,profitAndLossClassesViewReport:t.profitAndLossByClassReport,profitAndLossProjectViewReport:t.profitAndLossByProjectReport,profitAndLossByClassHorizontalReport:t.profitAndLossByClassHorizontalReport,balanceSheetReport:t.balanceSheetReport,cashFlowReport:t.cashFlowReport,downloadState:t.downloadState,analytics:M,isZeniUser:De(o),showAccountGroups:r===!0,isAccountingClassesEnabled:Q(e),isAccountingProjectsEnabled:W(e),currentTenantCompanyName:a,statementEndPoint:`${pa}/statement`,authParams:s,isZeniCOAUsed:r}},function(e,o){const{navigate:f,handleDrawerToggle:u}=o;return{onReloadReport:()=>{o.signedInUser!=null&&e(F(o.signedInUser.userId,!0,!1))},updateDownloadStateHandler:a=>{e(Ge(a))},onTimeframeSelectionChanged:(a,s,t)=>{if(e(ze(a)),s){const{isCompareModeOn:r,filter:l}=o,{additionalBalances:m,balancesRange:c}=l;let i=[...m];a==="year"&&(i=i.filter(g=>g!=="this_period_vs_same_period_last_year"&&g!=="this_period_vs_same_period_last_year_percent"&&g!=="same_period_last_year")),e(N(o.firstMonthOfFY,r,c.numberOfPeriods<1?1:c.numberOfPeriods,i)),m.length>0&&e(q(o.firstMonthOfFY,i.includes("this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent",c.numberOfPeriods<1?1:c.numberOfPeriods,i))}t!==!0&&setTimeout(()=>y(e),50)},onReportSelectionChanged:a=>{const s=o.selectedReportID;if(a===s)return;const t=o.classViewLayout;e(w(a)),(a==="balance_sheet"||a==="cash_flow")&&s==="profit_and_loss_by_classes"&&t==="horizontal"&&e($({numberOfPeriods:1,orderBy:"ascending_date"})),a!=="profit_and_loss"&&a!=="profit_and_loss_by_classes"&&s==="profit_and_loss_by_classes"&&t==="horizontal"&&e(H({classViewLayout:"vertical"})),y(e)},onCOABalancesRangeChanged:(a,s)=>{e($(a,s)),y(e)},onThisPeriodChanged:(a,s,t)=>{e(xe(o.firstMonthOfFY,a,s<1?1:s)),t!==!0&&y(e)},onAdditionalBalanceSelectionChanged:(a,s,t,r)=>{e(N(o.firstMonthOfFY,a,t<1?1:t,s)),s.length>0&&e(q(o.firstMonthOfFY,s.includes("this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent",t<1?1:t,s)),r!==!0&&o.isCompareModeOn===a||setTimeout(()=>y(e),50)},onUpdateHighlightedNumberOfPeriods:(a,s,t,r)=>{e(Ve({firstMonthOfFY:o.firstMonthOfFY,isCompareModeOn:s,additionalBalances:a,maxNumOfPeriodsToHighlight:t<1?1:t,coaBalances:r}))},onAccountBalanceClick:o.hasTransactionAccess!==!0?void 0:(a,s,t)=>{let r,l;if(s.balanceTimeFrame==="month"||s.balanceTimeFrame==="quarter"?(r=s.balanceTimeFrame,l=Ue(s)):s.balanceTimeFrame==="year"?(r="quarter",l={startDate:s.endDate.startOf("quarter"),endDate:s.endDate}):console.error(`timeframe ${s.balanceTimeFrame} is not supported`),l!=null&&r!=null){const m=a.accountName===""?a.accountDescription:a.accountName,c=(()=>{if(o.selectedReportID==="profit_and_loss_by_classes"&&o.classViewLayout==="horizontal"&&a.accountType!=null){if(t?.isHorizontalClassTotalColumn===!0)return Z(o.tenantEmailDomain,a.accountId,a.accountType,m,r,l);if(t?.isHorizontalClassColumn===!0&&s.id!=null)return J(o.tenantEmailDomain,a.accountId,a.accountType,s.id,m,r,l)}return a.projectsViewParentId?.projectId!=null&&a.accountType!=null?_a(o.tenantEmailDomain,a.accountId,a.accountType,a.projectsViewParentId.projectId,m,r,l):a.classesViewParentId!=null&&a.classesViewParentId.parentClassId!=null&&a.accountType!=null?J(o.tenantEmailDomain,a.accountId,a.accountType,a.classesViewParentId.parentClassId[0],m,r,l):a.accountType!=null?Z(o.tenantEmailDomain,a.accountId,a.accountType,m,r,l):void 0})();if(c!=null){const i=se(o.location.state?.pathnameStackToGoBack,o.location.pathname);f(c,{state:{pathnameStackToGoBack:i,referrer:S(o.selectedReportID)}})}}},onTableScroll:(a,s)=>{switch(a){case"profit_and_loss":e(E({scrollPosition:s}));break;case"profit_and_loss_by_classes":e(j({scrollPosition:s}));break;case"profit_and_loss_by_projects":e(Y({scrollPosition:s}));break;case"balance_sheet":e(D({scrollPosition:s}));break;case"cash_flow":e(k({scrollPosition:s}));break;default:console.log(`Table Scroll state for ${a} is not handled`)}},onElementCollapseStateChanged:(a,s,t)=>{switch(a){case"profit_and_loss":e(E({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;case"profit_and_loss_by_classes":e(j({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;case"profit_and_loss_by_projects":e(Y({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;case"balance_sheet":e(D({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;case"cash_flow":e(k({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;default:console.log(`Collapse state toggle for ${a} is not handled`)}},onBackClick:()=>{f("../../")},onUpdateAccountViewMode:a=>{e(Be({viewMode:a})),e(Ke({viewMode:a})),a==="classes"?(o.analytics?.trackGroupBySwitch("Classes",S(o.selectedReportID)),e(w("profit_and_loss_by_classes"))):a==="project"?(o.analytics?.trackGroupBySwitch("Projects",S(o.selectedReportID)),e(w("profit_and_loss_by_projects"))):(o.analytics?.trackGroupBySwitch("Accounts",S(o.selectedReportID)),e(w("profit_and_loss"))),y(e)},onUpdateClassesToFilterOut:a=>{e(ve({classesToFilterOut:a}))},onUpdateProjectsToFilterOut:a=>{e(Le({projectsToFilterOut:a}))},onUpdateClassViewLayout:a=>{e(H({classViewLayout:a}))},onOpenAccountViewMode:()=>{o.isAccountingClassesEnabled&&e(Me()),o.isAccountingProjectsEnabled&&e(X())},onUpdateDisplayOrder:a=>{e(Pe(a))},onUpdateReportFormat:a=>{ya(e),e(Ee(a))},onClickMenuIcon:()=>{u(!0)},onResyncReports:()=>{e(je("profit_and_loss_by_classes"))}}})(ca);function Ca(){const{isAiCfoOpen:e,setIsAiCfoOpen:o}=Xe(),f=ea(),u=da(f),a=ge(),s=Ce(),t=z(),{tenantEmailDomain:r}=Ie(),{useFeatureGate:l}=ee(),{isFeatureEnabled:m}=l(P.isReportsHorizontalClassLayoutSwitchEnabled),c=ae.getSignedInUser(),[i,g]=_.useState(!1),[v,te]=_.useState(!1),{isFeatureEnabled:B}=l(P.isReportsCommentingEnabled);if(c==null)throw Error("Can't access reports page without signing in...");const T=d(n=>L(n)),oe=T.masterTOSInfo?.isMasterTOSAccepted??!1,ne=T.company?.companyInfo.firstMonthOfFY??1,re=ua(B?T?.companyId:void 0),C=d(n=>I(n).fetchState),ie=d(n=>Te(n)),{areTenantIdsInSync:h}=aa(),R=d(n=>n.financeStatementState.selectedReportId),K=d(n=>Q(n)),A=d(n=>W(n)),le=d(n=>I(n).isCompareModeOn),b=d(n=>I(n).filter),O=d(n=>I(n).selectedReportAndTimeframeFetchState),ce=d(n=>n.profitAndLossClassesViewState.uiState.classViewLayout);_.useEffect(()=>{!i&&h&&(g(!0),s(F(c.userId,!0,!0,!1)))},[i,c,s,h]),_.useEffect(()=>{i&&!v&&C==="Completed"&&h&&(s(F(c.userId,!1,!0,!1)),te(!0))},[i,v,C,h]),_.useEffect(()=>{if(i&&O.fetchState==="Not-Started"&&b.timeframe!=="free_range"&&b.timeframe!=="week"&&h)switch(R){case"profit_and_loss":case"profit_and_loss_by_classes":s(Oe(b.timeframe));break;case"profit_and_loss_by_projects":A&&s(X());break;case"balance_sheet":s(Ae(b.timeframe));break;case"cash_flow":s(Re(b.timeframe))}},[i,R,O,h,K,A]);const U=sa(),de=U?.loggedInUserRole!=null&&Fe(U?.loggedInUserRole)!==!0,[pe,fe]=_.useState(!1),V=n=>{fe(n)},me=ta(),ue=oa();return function(n){const{isDataReady:_e}=n,{pathname:he}=z(),x=Je(he??"")==="reports",be=Qe(_e),ye=_.useMemo(()=>x?ba:void 0,[x]);We({canFetchSuggestedQuestions:be,pageContexts:ye})}({isDataReady:C==="Completed"}),na({isDataReady:C==="Completed"}),p.jsxs(p.Fragment,{children:[C==="Completed"?p.jsx(ra,{analytics:M,onLoad:n=>n.trackPageLoaded(ia.Event.reports)}):null,p.jsx(ha,{isAppContentDrawerOpen:pe,handleDrawerToggle:V}),p.jsx(ga,{firstMonthOfFY:ne,tenantEmailDomain:r,location:t,navigate:a,windowSize:f,classViewLayout:ce,selectedReportID:R,analytics:M,filter:b,isAccountingClassesEnabled:K,isAccountingProjectsEnabled:A,isCompareModeOn:le,hasTransactionAccess:de,signedInUser:c,selectedReportAndTimeframeFetchState:O,handleDrawerToggle:V,reportsResyncFetchState:ie.reportsResyncFetchState,isAiCfoAccessEnabled:ue&&me&&!e,onAskAiCfoClick:()=>{if(oe)if(u){const n=se(t.state?.pathnameStackToGoBack,t.pathname);a(`/${r}/ai-cfo/explore`,{state:{pathnameStackToGoBack:n,referrer:"Reports"}})}else o(!0);else la({location:t,navigate:a,mergeState:{referrer:"Reports"}})},isHorizontalClassReportSwitchEnabled:m,isReportsCommentingEnabled:B,initialOpenThreadRequest:re})]})}const S=e=>{switch(e){case"profit_and_loss":return"Profit & Loss";case"balance_sheet":return"Balance Sheet";case"cash_flow":return"Cash Flow";default:return"Reports"}};function xa(){const e=d(s=>L(s)),{useFeatureGate:o}=ee(),{isFeatureEnabled:f}=o(P.isDebitCardFeatureEnabled),u=$e(f,e),a=Ze(e);return u===!0||a===!0?p.jsx(ma,{}):p.jsxs(Se,{children:[p.jsx(G,{path:"/",element:p.jsx(Ca,{})}),p.jsx(G,{path:"*",element:p.jsx(fa,{})})]})}export{xa as default};
@@ -1 +0,0 @@
1
- import{j as e}from"./liveblocks-BseLVJU2.js";import{s as x,z as w,aN as b,A as E,c as p,f as R,cQ as F,d as L}from"./index-DlaEaq7J.js";import"./mui-nQfThAws.js";import l from"./NotFoundScreen-Cavr5OZ5.js";import{a as u}from"./sentry-nbOh2gVl.js";import{u as P,j as y,h as A,g as T,n as V,o as U,p as f}from"./core-C82y6_-U.js";import{eR as z,Rg as C,NR as G,Rh as N,uI as Y,f6 as O,Ri as Q,uG as q}from"./zeni-epic-state-DK35Ac89.js";import{R as j}from"./ReferralListScreen-By68lS7j.js";import"./recharts-CjabXRup.js";import"./analytics-D_2lhI0W.js";import"./plaid-DL8Esf27.js";import"./dnd-CyXN5LMk.js";import"./stripe-DMRn4zHo.js";import"./lottie-j5BULCEN.js";import"./lexical-Cp2QekuT.js";import"./pdf-D7OKXbf1.js";import"./utils-CvRuvFNB.js";import"./useAskAiCfoHostNavButtonProps-DoDP7B3S.js";import"./MobileAppDrawer-my2gXRON.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]="50caa3b8-3f5b-471a-ab30-5b9c1eb19494",a._sentryDebugIdIdentifier="sentry-dbid-50caa3b8-3f5b-471a-ab30-5b9c1eb19494")}catch{}})();const B=V(function(a,t){const n=C(a);return{inviteFormView:n.localData,submitStatus:n.saveStatus,userName:t.userName,rewardsPlan:n.rewardsPlan,companyLegalName:t.companyName}},function(a,t){const{navigate:n}=t,o=w.getSignedInUser();return{onDismissClick:()=>{a(N()),n("..")},onSendClick:()=>{if(o!=null){const s=[],r=[];t.inviteFormCompayData.forEach(c=>{s.push(c.companyName),r.push(c.emailIds[0])}),p.trackInviteEmailClicked("send",s,r,s.length)}a(q())},onUpdateInviteFormLocalData:s=>{a(Q({localData:s}))},onSubmitSuccess:()=>{n("../../")},onCancelClick:()=>{o!=null&&p.trackInviteEmailClicked("cancel")}}})(F),H=()=>{const a=P(),[t,n]=u.useState(!1),[o,s]=u.useState(!1),r=y(i=>z(i)),c=A(),_=T(),{useDynamicConfig:g}=x(),d=w.getSignedInUser();if(d==null)throw Error("Can't access invite referral screen without signing in...");const m=y(i=>C(i)),k=d?.firstName!=null?d.firstName:"User",{configValue:h}=g(b.zeniCardsConfig),{configValue:v}=g(b.zeniAccountsConfig),D=G(v);u.useEffect(()=>{a(N()),r?.rewardsLastViewedTime==null&&o===!1&&(a(Y()),s(!0))},[]),u.useEffect(()=>{t||m.fetchState!=="Not-Started"||(n(!0),a(O(!0)))},[m.fetchState,a]);const I=r.company?.companyInfo.companyLegalName??r.companyName;return e.jsxs(e.Fragment,{children:[m.fetchState==="Completed"?e.jsx(E,{analytics:p,onLoad:i=>(S=>S.trackPageLoaded(R.Event.inviteEmailViewed))(i)}):null,e.jsx(B,{navigate:c,location:_,currentTenant:r,companyName:I,userName:k,inviteFormCompayData:m.localData,chargeCardCashbackRatePerTransaction:h.charge_card_cashback_rate_per_transaction!=null?h.charge_card_cashback_rate_per_transaction:.0175,maxAnnualPercentageYield:D.maxAnnualPercentageYield})]})};function fa(){const{useFeatureGate:a}=x(),{isFeatureEnabled:t}=a(L.isReferralFeatureEnabled);return e.jsxs(U,{children:[e.jsx(f,{path:"/",element:t?e.jsx(j,{}):e.jsx(l,{})}),e.jsx(f,{path:"how-it-works",element:t?e.jsx(j,{isReferralDrawerOpen:!0}):e.jsx(l,{})}),e.jsx(f,{path:"refer/*",element:t?e.jsx(H,{}):e.jsx(l,{})}),e.jsx(f,{path:"*",element:e.jsx(l,{})})]})}export{fa as default};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardRoutes-tATNPR5U.js","assets/sentry-nbOh2gVl.js","assets/core-C82y6_-U.js","assets/zeni-epic-state-DK35Ac89.js","assets/index-DlaEaq7J.js","assets/mui-nQfThAws.js","assets/analytics-D_2lhI0W.js","assets/utils-CvRuvFNB.js","assets/withTransactionSidePanel-CENZXrC_.js","assets/useAskAiCfoHostNavButtonProps-DoDP7B3S.js","assets/TransactionDetailScreen-CZdGyLYX.js","assets/decodeURIComponentSafe-BbPXryX6.js","assets/routePaths-CG9FBSKj.js","assets/NotFoundScreen-Cavr5OZ5.js","assets/useInitialThreadRequest-CU3qAAey.js","assets/analyticsHelper-CeM0YDjK.js","assets/CompanyPassportScreen-CkTypD0l.js","assets/MobileAppDrawer-my2gXRON.js","assets/useAiCfoDashboardSuggestedQuestionsChips-CaMc_gFS.js","assets/FeaturePreviewScreen-DpEWuYMb.js","assets/ReferralListScreen-By68lS7j.js","assets/index-R6GjjTB3.css","assets/BillPayRoutes-DpuTjsMR.js","assets/AddressScreen-CxFRx6y8.js","assets/DomesticWireDetailScreen-DLvzA5aP.js","assets/DrawerScreen-wBYMk6z5.js","assets/SetupPagesScreen-B0vtALs4.js","assets/BusinessVerificationPageScreen-CD_d1aA7.js","assets/BillPayApprovalRoutes-Dx4kp6aP.js","assets/ReimbursementApprovalRuleDetailScreen-BWvmXZpb.js","assets/getLocaleForTenant-D0DGp3hd.js","assets/ReimbursementRoutes-CUt7FfG0.js","assets/ReimbursementApprovalRoutes-dG4HhI52.js","assets/TransactionListRoutes-C9U3e5RD.js","assets/ZeniAccountStatementScreen-pf4zuTKs.js","assets/SettingsRoutes-CZ-QcCUZ.js","assets/accountMappingHelper-7qi69rN8.js","assets/QBOConnectionScreen-C5K7algH.js","assets/empty-DX3tmlt3.js","assets/index-Ou6bUwYI.js","assets/url-Ddh1VLFV.js","assets/index-YBA2AvO7.js","assets/ReportsRoutes-CGQq3vWF.js","assets/ChargeCardRoutes-D_jMUMn5.js","assets/PeopleRoutes-BGX7NZx4.js","assets/ExpenseAutomationRoutes-BJJhBgdM.js","assets/TreasuryRoutes-Cp3y5FjP.js","assets/VendorsRoutes-CSRkpZD2.js","assets/pathToGoBack-VglVbow6.js","assets/ZeniAccountRoutes-BihpI_1F.js","assets/AddressRoutes-CcTSTA5V.js","assets/PandLWithForecastRoutes-D637fw1Q.js","assets/CustomerOnboardingRoutes-p0cpGS6_.js","assets/TransactionDetailRoutes-BXQFeLeP.js","assets/EntityDetailRoutes-dn6ytKJk.js","assets/NotificationRoutes-C6yJ-31r.js","assets/PerformanceRoutes-Dzmu8rxA.js","assets/RewardsRoutes-DzQTDQIy.js","assets/TaskRoutes-DVKoHi_C.js","assets/TaskListScreen-BOeQ2Ysx.js","assets/AiCfoScreen-v_UHYX5H.js"])))=>i.map(i=>d[i]);
2
- import{_ as n,bn as os,eR as ls,f0 as cs,e_ as ds,e$ as ms,fJ as us,eV as _s,cP as Ee,cx as Es,fg as As,cp as ps,bE as gs,bq as xs,fl as Is,v as Ts,JZ as hs,bt as js,J_ as Us,bG as Rs,fi as bs,bF as Hs,bs as Ds,cl as fs,J$ as ys,K0 as Cs,cM as vs,cO as Os,cN as Ps,cw as Fs,cC as Ls,ng as Ae,eY as pe,fT as Bs,fp as ge,fQ as xe,fR as Ie,fq as ks}from"./zeni-epic-state-DK35Ac89.js";import{j as e}from"./liveblocks-BseLVJU2.js";import{a as v}from"./sentry-nbOh2gVl.js";import{u as Vs,h as Ss,i as Ns,g as Ms,j as G,l as Te,N as c,o as Zs,p as t}from"./core-C82y6_-U.js";import{m as ws,u as Gs,z as b,s as $s,a as zs,r as Ys,d as L,k as qs,L as B,D as he,t as _,P as Js,c as X,l}from"./index-DlaEaq7J.js";import"./mui-nQfThAws.js";import{f as je}from"./analyticsHelper-CeM0YDjK.js";import{t as Ws}from"./getLocaleForTenant-D0DGp3hd.js";import"./recharts-CjabXRup.js";import"./analytics-D_2lhI0W.js";import"./plaid-DL8Esf27.js";import"./dnd-CyXN5LMk.js";import"./stripe-DMRn4zHo.js";import"./lottie-j5BULCEN.js";import"./lexical-Cp2QekuT.js";import"./pdf-D7OKXbf1.js";import"./utils-CvRuvFNB.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},U=new i.Error().stack;U&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[U]="c2892893-14ff-48b0-8085-daca28bf6c32",i._sentryDebugIdIdentifier="sentry-dbid-c2892893-14ff-48b0-8085-daca28bf6c32")}catch{}})();const Ks={dashboard:()=>n(()=>import("./DashboardRoutes-tATNPR5U.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21])),bills:()=>n(()=>import("./BillPayRoutes-DpuTjsMR.js"),__vite__mapDeps([22,1,2,3,4,5,6,7,23,13,24,9,14,25,17,19,26,15,12,27,28,29,30,21])),reimbursement:()=>n(()=>import("./ReimbursementRoutes-CUt7FfG0.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,13,26,17,15,12,27,19,9,14,25,32,29,30,21])),transactions:()=>n(()=>import("./TransactionListRoutes-C9U3e5RD.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,34,21])),settings:()=>n(()=>import("./SettingsRoutes-CZ-QcCUZ.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,17,36,23,13,15,27,12,16,37,38,39,40,41,11,28,29,32,21])),reports:()=>n(()=>import("./ReportsRoutes-CGQq3vWF.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,13,19,14,12,17,21])),chargeCards:()=>n(()=>import("./ChargeCardRoutes-D_jMUMn5.js"),__vite__mapDeps([43,1,2,3,4,5,6,7,26,17,13,15,12,27,14,9,23,21])),people:()=>n(()=>import("./PeopleRoutes-BGX7NZx4.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,13,9,17,21])),expenseAutomation:()=>n(()=>import("./ExpenseAutomationRoutes-BJJhBgdM.js"),__vite__mapDeps([45,1,2,3,13,4,5,6,7,9,10,11,12,8,36,25,21])),treasury:()=>n(()=>import("./TreasuryRoutes-Cp3y5FjP.js"),__vite__mapDeps([46,1,2,3,4,5,6,7,13,26,17,15,12,27,9,14,19,21])),vendors:()=>n(()=>import("./VendorsRoutes-CSRkpZD2.js"),__vite__mapDeps([47,1,2,3,4,5,6,7,23,13,19,12,48,9,17,25,36,21])),zeniAccounts:()=>n(()=>import("./ZeniAccountRoutes-BihpI_1F.js"),__vite__mapDeps([49,1,2,3,4,5,6,7,13,26,17,15,12,27,19,24,23,9,34,21]))},Qs=["bills","transactions","settings","reimbursement","reports","chargeCards","people"],ee=i=>{"requestIdleCallback"in window?requestIdleCallback(i):setTimeout(i,100)},Xs=l(()=>n(()=>import("./ReportsRoutes-CGQq3vWF.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,13,19,14,12,17,21]))),en=l(()=>n(()=>import("./AddressRoutes-CcTSTA5V.js"),__vite__mapDeps([50,1,2,3,23,4,5,6,7,13,21]))),sn=l(()=>n(()=>import("./PeopleRoutes-BGX7NZx4.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,13,9,17,21]))),nn=l(()=>n(()=>import("./PandLWithForecastRoutes-D637fw1Q.js"),__vite__mapDeps([51,1,2,3,4,5,6,7,13,19,9,14,12,17,21]))),an=l(()=>n(()=>import("./CustomerOnboardingRoutes-p0cpGS6_.js"),__vite__mapDeps([52,1,2,3,23,4,5,6,7,13,37,38,39,40,41,11,21]))),tn=l(()=>n(()=>import("./VendorsRoutes-CSRkpZD2.js"),__vite__mapDeps([47,1,2,3,4,5,6,7,23,13,19,12,48,9,17,25,36,21]))),rn=l(()=>n(()=>import("./TransactionDetailRoutes-BXQFeLeP.js"),__vite__mapDeps([53,1,2,3,13,4,5,6,7,10,9,11,12,21]))),Ue=l(()=>n(()=>import("./EntityDetailRoutes-dn6ytKJk.js"),__vite__mapDeps([54,1,2,3,4,5,6,7,11,8,9,10,12,21]))),on=l(()=>n(()=>import("./DashboardRoutes-tATNPR5U.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]))),Re=l(()=>n(()=>import("./BillPayRoutes-DpuTjsMR.js"),__vite__mapDeps([22,1,2,3,4,5,6,7,23,13,24,9,14,25,17,19,26,15,12,27,28,29,30,21]))),ln=l(()=>n(()=>import("./SettingsRoutes-CZ-QcCUZ.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,17,36,23,13,15,27,12,16,37,38,39,40,41,11,28,29,32,21]))),be=l(()=>n(()=>import("./ReimbursementRoutes-CUt7FfG0.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,13,26,17,15,12,27,19,9,14,25,32,29,30,21]))),cn=l(()=>n(()=>import("./ZeniAccountRoutes-BihpI_1F.js"),__vite__mapDeps([49,1,2,3,4,5,6,7,13,26,17,15,12,27,19,24,23,9,34,21]))),dn=l(()=>n(()=>import("./TreasuryRoutes-Cp3y5FjP.js"),__vite__mapDeps([46,1,2,3,4,5,6,7,13,26,17,15,12,27,9,14,19,21]))),mn=l(()=>n(()=>import("./TransactionListRoutes-C9U3e5RD.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,34,21]))),un=l(()=>n(()=>import("./ChargeCardRoutes-D_jMUMn5.js"),__vite__mapDeps([43,1,2,3,4,5,6,7,26,17,13,15,12,27,14,9,23,21]))),_n=l(()=>n(()=>import("./NotificationRoutes-C6yJ-31r.js"),__vite__mapDeps([55,1,2,3,13,4,5,6,7,9,21]))),En=l(()=>n(()=>import("./PerformanceRoutes-Dzmu8rxA.js"),__vite__mapDeps([56,1,2,3,13,4,5,6,7,9,17,21]))),An=l(()=>n(()=>import("./ExpenseAutomationRoutes-BJJhBgdM.js"),__vite__mapDeps([45,1,2,3,13,4,5,6,7,9,10,11,12,8,36,25,21]))),pn=l(()=>n(()=>import("./RewardsRoutes-DzQTDQIy.js"),__vite__mapDeps([57,1,2,3,4,5,6,7,13,20,9,17,21]))),gn=l(()=>n(()=>import("./TaskRoutes-DVKoHi_C.js"),__vite__mapDeps([58,1,2,3,13,4,5,6,7,14,17,59,9,21]))),xn=l(()=>n(()=>import("./AiCfoScreen-v_UHYX5H.js"),__vite__mapDeps([60,1,2,3,4,5,6,7,18,48,21]))),f=l(()=>n(()=>import("./NotFoundScreen-Cavr5OZ5.js"),__vite__mapDeps([13,1,2,3,4,5,6,7,21]))),In=l(()=>n(()=>import("./TaskListScreen-BOeQ2Ysx.js"),__vite__mapDeps([59,1,2,3,4,5,6,7,9,17,21])));function wn({setTenantEmailDomain:i}){const U=Vs(),V=Ss(),{tenantEmailDomain:o}=Ns(),S=ws().mode,{setLoading:y,clearAllLoading:O,clearLoading:Z}=Gs(),D=b.getSignedInUserTenant(o)?.tenantId,h=b.getSignedInUser(),W=os(h),$=Ms(),[N,De]=v.useState(!1),r=G(a=>ls(a)),{useFeatureGate:P}=$s(),K=zs(),fe=Ys(),{isFeatureEnabled:ye}=P(L.isExpenseAutomationEnabled),{isFeatureEnabled:Ce}=P(L.isExpenseAutomationEnabledV2),ve=Ce||ye&&W,{isFeatureEnabled:Oe}=P(L.isDepositAccountsFeatureEnabled),{isFeatureEnabled:Pe}=P(L.isTreasuryEnabled),{isFeatureEnabled:Fe}=P(L.isChargeCardFeatureEnabled),{isFeatureEnabled:se}=P(L.isDebitCardFeatureEnabled),j=G(a=>a.tenantState.fetchState),A=G(a=>a.tenantState.activeTenantFetchState.fetchState),u=A==="Completed"||j==="Completed"?cs(se,r):void 0,z=A==="Completed"||j==="Completed"?ds(r):void 0,Le=A==="Completed"||j==="Completed"?ms(r):void 0,Be=Fe||se||!!Le||!!z||!!u,{isFeatureEnabled:ke}=P(L.isSettingsFeatureEnabled),{isFeatureEnabled:Ve}=P(L.isAiCfoFileUploadEnabled),Y=G(a=>us(a));if(o!=null){const a=b.getSignedInUserTenant(o);h!=null&&a!=null&&je(h,r,S)}const w={tenantId:D,userId:h?.userId,sessionId:h?.zeniSessionId},ne=_s(),E=qs(),Se=r.company==null||E?.loggedInUserRoleMap!=null&&Ee(E.loggedInUserRole),Ne=Es(E?.loggedInUserRoleMap),ae=v.useRef(!0),te=Te("/:tenantEmailDomain/onboarding/*")!==null,Q=Te("/:tenantEmailDomain/month_end_close_checks/review/:selectedTab/:selectedPeriod/*"),Me=G(a=>w.tenantId!=null?As(a,w.tenantId):void 0);v.useEffect(()=>{y(B.TENANT_FETCHING),i(o)},[o]),v.useEffect(()=>{if(Q!=null&&D!=null){const a=Q.params.selectedPeriod;if(a!=null){const R=a.split("-");if(R.length===2){const d=ps(Number(R[0])),s=Number(R[1]),m=gs(`01-${d<10?`0${d}`:d}-${s}`,he.getLocalizedStrings().dateFormat.analytics.DDDashMMDashYYYY),M=xs();m.isAfter(M,"month")===!1?U(Is(D,{month:d,year:s})):V("./month_end_close_checks/review")}}}},[Q,D]),v.useEffect(()=>{N||(De(!0),y(B.TENANT_FETCHING)),ae.current?ae.current=!1:!Ts(ne,w)&&b.isSignedIn()&&(y(B.TENANT_FETCHING),function(a,R,d,s){if(pe(R?.userId,R?.zeniSessionId,a.tenantId),d(Bs(!0)),d(ge(a.tenantId)),a.tenantId!=null&&_.clearTenant(a.tenantId),a.tenantId!=null){const m=b.getSignedInUserTenantWithId(a.tenantId);s&&he.updateAppLocaleID(Ws(s)),m?.tenantEmailDomain!=null&&b.saveActiveTenantDomainForUser(m?.tenantEmailDomain)}a.userId!=null?X.identify(a.userId,{tenant_id:a.tenantId}):X.resetUserIdentity()}(w,h,U,Me))},[w,ne,h,U,b]),v.useEffect(()=>{b.isSignedIn()&&(y(B.TENANT_FETCHING),function(a,R,d,s,m,M,k){if(d==null&&s==null)return void console.warn("There is no current tenant selected!!");const q=s!=null&&m?.zeniSessionId!=null,ts=d==null||d.tenantId!==s,is=d!=null&&d.excludedResources==null,rs=d!=null&&d.externalConnections==null;if(q&&ts){k(ge(s));const J=b.getSignedInUserTenantWithId(s);J?.tenantEmailDomain!=null&&b.saveActiveTenantDomainForUser(J?.tenantEmailDomain),pe(m?.userId,m?.zeniSessionId,s),_.shouldFetchExcludedResources(s)&&(_.markExcludedResourcesFetchStarted(s),k(xe(m.userId,s))),_.shouldFetchConnections(s)&&(_.markConnectionsFetchStarted(s),k(Ie(m.userId,s)))}else q&&is&&_.shouldFetchExcludedResources(s)&&(_.markExcludedResourcesFetchStarted(s),k(xe(m.userId,s))),q&&rs&&_.shouldFetchConnections(s)&&(_.markConnectionsFetchStarted(s),k(Ie(m.userId,s)));if(q){X.identify(m.userId,{tenant_id:s});const J=s==null||s!=null&&(R==="Completed"||R==="Error");a==="Completed"||R!=="Not-Started"&&R!=="Error"||s==null||!_.shouldFetchActiveTenant(s)||(_.markActiveTenantFetchStarted(s),M(B.TENANT_FETCHING),k(ks(m.userId,s,m.zeniSessionId))),J&&(a==="Not-Started"||a==="Error")&&_.shouldFetchAllTenants()&&(_.markAllTenantsFetchStarted(),k(Ae(m.userId,m.zeniSessionId)))}}(j,A,r,D,h,y,U))},[D,A]),v.useEffect(()=>{b.isSignedIn()&&j==="Completed"&&Y.tenantsBaseInOrder.length>0&&(Z(B.TENANT_FETCHING),b.saveSignedInUserTenants(hs(Y.tenantsBaseInOrder)),h!=null&&je(h,r,S,void 0,Y.tenantsBaseInOrder))},[Y,j,r,h]),v.useEffect(()=>{A==="In-Progress"&&y(B.TENANT_FETCHING),A!=="Completed"&&A!=="Error"||(A==="Completed"&&D!=null?(O(),_.markActiveTenantFetchCompleted(D)):A==="Error"&&D!=null&&(_.markActiveTenantFetchFailed(D),Z(B.TENANT_FETCHING),Z(B.TENANT_SWITCHING))),j!=="Completed"&&j!=="Error"||(j==="Completed"?_.markAllTenantsFetchCompleted():j==="Error"&&_.markAllTenantsFetchFailed())},[A,j,D,N]);const ie=v.useRef(!1);v.useEffect(()=>{!ie.current&&A==="Completed"&&N&&(ie.current=!0,function(a=Qs,R=3e3){setTimeout(()=>{const d=s=>{if(s>=a.length)return;const m=a[s],M=Ks[m];M!=null?M().then(()=>ee(()=>d(s+1))).catch(()=>ee(()=>d(s+1))):d(s+1)};ee(()=>d(0))},R)}())},[A,N]);const C=r?.userRole!=null&&js(r?.userRole),{isFeatureEnabled:Ze}=P(L.isReferralFeatureEnabled),we=r?.userRole!=null&&r.userRole.includes("charge_card_user"),Ge=r?.userRole!=null&&r.userRole.includes("charge_card_admin"),F=r?.userRole!=null&&Ee(r.userRole),re=r?.company==null||r.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!C,oe=Be&&!C,$e=Us(E?.loggedInUserRoleMap),ze=r.externalConnections?.accounting[0]?.isValid,le=r.company?.companyOnboardingInfo.isOnboardingCompleted,ce=r?.company==null||r.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!C,de=ce&&Rs(E?.loggedInUserRoleMap),me=Oe&&!C,Ye=r.company!=null&&bs(r.company),qe=Pe&&Ye===!0&&!C,Je=re&&Hs(E?.loggedInUserRoleMap),We=oe&&Ds(E?.loggedInUserRoleMap),Ke=me&&fs(E?.loggedInUserRoleMap),Qe=ys(E?.loggedInUserRoleMap),Xe=Cs(E?.loggedInUserRoleMap),p=vs(E?.loggedInUserRoleMap),g=Os(E?.loggedInUserRoleMap),x=Ps(E?.loggedInUserRoleMap),I=Fs(E?.loggedInUserRoleMap),T=Ls(E?.loggedInUserRoleMap),ue=re&&I,_e=ce&&T,es=me&&p,ss=qe&&g,ns=oe&&x,as=r.excludedResources?.resources?.find(a=>a.resource==="/invites")!=null||Ne===!0||$e===!0||Qe===!0||Xe===!0;return b.isSignedIn()?D==null?j==="Completed"?e.jsx(c,{to:"/",replace:!0,state:{...$.state,message:"...",origin:$.pathname}}):(h!=null&&j!=="In-Progress"&&U(Ae(h.userId,h.zeniSessionId)),null):A!=="In-Progress"&&A!=="Not-Started"||j==="Completed"?(le===!0||W&&!te)&&ze===!1&&u===!1&&z===!1?(i(void 0),e.jsx(c,{to:"/connection/auth",replace:!0})):!N||le!==!1||te||W?N&&r?.userRole&&u!=null&&z!=null&&o!=null&&Object.keys(E.loggedInUserRoleMap).length>0?e.jsx(Zs,{children:e.jsxs(t,{element:e.jsx(Js,{}),children:[e.jsx(t,{path:"/",element:e.jsx(Tn,{isDashboardAccess:F,isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:I,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:g,isTenantBankingOnly:u,isTenantCardsOnly:z})}),e.jsx(t,{path:"dashboard/*",element:F?e.jsx(on,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:I,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:g,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reports/*",element:F?e.jsx(Xs,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:I,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:g,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"people/*",element:as||F?e.jsx(sn,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:I,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:g,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"forecast/*",element:F?e.jsx(nn,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:I,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:g,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"onboarding/*",element:e.jsx(an,{})}),e.jsx(t,{path:"transaction/*",element:F&&C===!1||we||Ge?e.jsx(rn,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:I,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:g,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"transactions/*",element:F&&C===!1?e.jsx(mn,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:I,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:g,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"customer/*",element:F&&C===!1?e.jsx(Ue,{entityType:"customer"}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:I,isUserHasReimbursementAccess:T,isTenantBankingOnly:u,isUserHasTreasuryAccess:g,tenantEmailDomain:o})}),e.jsx(t,{path:"vendor/*",element:F&&C===!1?e.jsx(Ue,{entityType:"vendor"}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:I,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:g,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"tasks",element:e.jsx(In,{})}),e.jsx(t,{path:"tasks/*",element:e.jsx(gn,{})}),e.jsx(t,{path:"address/*",element:Je||de||Ke||We?e.jsx(en,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:I,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:g,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"checking/*",element:es?e.jsx(cn,{}):e.jsx(f,{})}),e.jsx(t,{path:"treasury/*",element:ss?e.jsx(dn,{}):e.jsx(f,{})}),e.jsx(t,{path:"performance",element:fe?e.jsx(En,{}):e.jsx(He,{tenantEmailDomain:o})}),e.jsx(t,{path:"month_end_close_checks/review/*",element:ve&&C===!1?e.jsx(An,{}):e.jsx(He,{tenantEmailDomain:o})}),e.jsx(t,{path:"notifications/*",element:e.jsx(_n,{})}),e.jsx(t,{path:"vendors/*",element:Se?e.jsx(tn,{}):e.jsx(f,{})}),e.jsx(t,{path:"bill/*",element:ue?e.jsx(Re,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:I,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:g,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"bills/*",element:ue?e.jsx(Re,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:I,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:g,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reimbursement/*",element:_e?e.jsx(be,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:I,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:g,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reimbursements/*",element:_e?e.jsx(be,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:I,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:g,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"settings/*",element:ke?e.jsx(ln,{hasAdminLevelAccess:de}):e.jsx(f,{})}),e.jsx(t,{path:"cards/*",element:ns?e.jsx(un,{}):e.jsx(f,{})}),e.jsx(t,{path:"rewards/*",element:Ze?e.jsx(pn,{}):e.jsx(f,{})}),e.jsx(t,{path:"/ai-cfo",element:K?e.jsx(c,{to:"explore"}):e.jsx(f,{})}),e.jsx(t,{path:"/ai-cfo/",element:K?e.jsx(c,{to:"explore"}):e.jsx(f,{})}),e.jsx(t,{path:"/ai-cfo/:session_id",element:K?e.jsx(xn,{isFileUploadEnabled:Ve}):e.jsx(f,{})}),e.jsx(t,{path:"*",element:e.jsx(f,{})})]})}):null:(i(void 0),e.jsx(c,{to:"onboarding",replace:!0})):null:(console.warn("User logged out!!"),i(void 0),e.jsx(c,{to:"/signin/auth",replace:!0,state:{...$.state,message:"...",origin:$.pathname}}))}const Tn=({isDashboardAccess:i,isUserHasZeniAccountsAccess:U,isUserHasChargeCardAccess:V,isUserHasBillPayAccess:o,isUserHasReimbursementAccess:S,isUserHasTreasuryAccess:y,isTenantBankingOnly:O,isTenantCardsOnly:Z})=>O===!0&&U?e.jsx(c,{to:"checking"}):Z===!0?e.jsx(c,{to:"cards"}):i?e.jsx(c,{to:"dashboard"}):U?e.jsx(c,{to:"checking"}):y?e.jsx(c,{to:"treasury"}):V?e.jsx(c,{to:"cards"}):o?e.jsx(c,{to:"bills"}):S?e.jsx(c,{to:"reimbursements"}):e.jsx(c,{to:"dashboard"}),H=({isUserHasZeniAccountsAccess:i,isUserHasChargeCardAccess:U,isUserHasBillPayAccess:V,isUserHasReimbursementAccess:o,isUserHasTreasuryAccess:S,isTenantBankingOnly:y,tenantEmailDomain:O})=>y===!0||i?e.jsx(Rn,{tenantEmailDomain:O}):S?e.jsx(Un,{tenantEmailDomain:O}):U?e.jsx(bn,{tenantEmailDomain:O}):V?e.jsx(jn,{tenantEmailDomain:O}):o?e.jsx(hn,{tenantEmailDomain:O}):e.jsx(f,{}),hn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/reimbursements`}),jn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/bills`}),Un=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/treasury`}),Rn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/checking`}),bn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/cards`}),He=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/dashboard`});export{H as FallBackRoute,wn as default};
@@ -1 +0,0 @@
1
- import{j as f}from"./liveblocks-BseLVJU2.js";import{a as u,b as T,q as A}from"./sentry-nbOh2gVl.js";import{u as D,h as z,j as c,g as M,N as j,n as O}from"./core-C82y6_-U.js";import{u as P,z as s,m as F,c as E,D as K,e as N,f as _,g as B,h as J,i as V,j as b}from"./index-DlaEaq7J.js";import{eR as Y,JY as $,JZ as q,eY as R,fp as W,K2 as H,fN as Z,cT as G,K3 as y,K4 as Q,K5 as X,bT as v}from"./zeni-epic-state-DK35Ac89.js";import"./mui-nQfThAws.js";import{u as ee}from"./useDeviceId-D59OJwzF.js";import{f as te}from"./analyticsHelper-CeM0YDjK.js";import{t as ne}from"./getLocaleForTenant-D0DGp3hd.js";import"./recharts-CjabXRup.js";import"./analytics-D_2lhI0W.js";import"./plaid-DL8Esf27.js";import"./dnd-CyXN5LMk.js";import"./stripe-DMRn4zHo.js";import"./lottie-j5BULCEN.js";import"./lexical-Cp2QekuT.js";import"./pdf-D7OKXbf1.js";import"./utils-CvRuvFNB.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]="a72cf8ec-b68b-417d-b5b2-4addec0b1b84",t._sentryDebugIdIdentifier="sentry-dbid-a72cf8ec-b68b-417d-b5b2-4addec0b1b84")}catch{}})();const ie=O(function(t,i){const d=t.tenantState.fetchState,g=t.tenantState.sendEmailMagicLinkFetchState,{magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:l}=i;return{googleClientId:b.googleClientId,microsoftClientId:b.microsoftClientId,signInError:t.tenantState.error?.error,fetchState:d,sendMagicLinkStatus:g,magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:l}},function(t,i){const{location:d,navigate:g}=i;return console.warn(JSON.stringify(window.location)),{onOAuthError:(n,a)=>{A({message:`OAuth error from provider ${a} with error ${n}`,level:"error",tags:{authProvider:a,errorType:"zeni.login.error"},extra:{error:n,windowLocation:window.location.href}})},onOAuthSuccess:(n,a)=>{const l=a==="google"?window.location.origin:window.location.origin+window.location.pathname;t(X({authCode:n,oauthProvider:a,appType:"web",redirectUri:v(l),sourceUri:v(d.state!=null?d.state.origin:"")}))},getSignedInUser:()=>s.getSignedInUser(),onSignedInCallback:()=>{const n=d.state?.origin;n&&n!=="/"?g(n,{replace:!0}):window.open(window.location.origin,"_self")},sendMagicLink:n=>{const{deviceId:a}=i;a!=null&&(s.saveMagicLinkEmail(n),t(Q(n,a)))},clearSignInError:()=>{t(y())}}})(V),ae=T.memo(ie);function be({setTenantEmailDomain:t}){const i=D(),d=z(),{clearAllLoading:g}=P(),n=s.getSignedInUser();u.useLayoutEffect(()=>{g()},[g]);const a=ee(),l=c(e=>e.tenantState.magicLinkCodeVerifier),{sendEmailMagicLinkFetchState:h,accountLocked:C,accountUnlockTime:k}=c(e=>e.tenantState),p=c(e=>e.tenantState.fetchState),L=c(e=>e.tenantState.activeTenantFetchState.fetchState),S=c(e=>e.tenantState.signInState),o=c(e=>e.tenantState.loggedInUser),r=c(e=>Y(e)),I=c(e=>$(e)),m=M(),w=F().mode,U=m.state?.magicLinkExpired,x=m.state?.magicLinkAlreadyUsed;if(u.useEffect(()=>{h.fetchState==="Completed"&&l!=null&&(E.trackSignInLinkSent(),s.saveMagicLinkCodeVerifier(l))},[h.fetchState,l]),u.useEffect(()=>{t(void 0)},[]),u.useEffect(()=>{S!=="In-Progress"||p!=="Completed"&&L!=="Completed"||o?.zeniSessionId==null||r==null||(s.savePayNowInfoTooltip(!0,o.zeniSessionId),s.saveSignedInUserWithSession(o,o.zeniSessionId),s.saveSignedInUserTenants(q(I.tenantsInOrder),o.zeniSessionId),R(o.userId,o.zeniSessionId,r.tenantId),i(W(r.tenantId)),s.saveActiveTenantDomainForUser(r.tenantEmailDomain),i(H("Completed")),K.updateAppLocaleID(ne(r)),te(o,r,w,void 0,I.tenantsInOrder),Z().then(()=>{const e=J();e!=null&&N(e)}),setTimeout(()=>{E.trackLogin(_.Event.loginSuccess,o.authProvider??"google",G(r.productSettings))},2e3))},[S,p,L,o,r,I,w,m.state,i]),S==="In-Progress"&&p==="Completed"&&o?.zeniSessionId!=null&&r!=null||n!=null){const e=m.state?.origin??"/";return f.jsx(j,{to:e,state:{...m.state,origin:""}})}return f.jsxs(f.Fragment,{children:[f.jsx(ae,{magicLinkExpired:!!U,magicLinkAlreadyUsed:!!x,magicLinkExpiredEmail:s.getMagicLinkEmail()??void 0,location:m,navigate:d,deviceId:a??void 0,showEmailLogin:!0}),C===!0&&k!=null?f.jsx(B,{onClose:()=>i(y()),unlockDate:k}):null]})}export{be as default};
@@ -1,9 +0,0 @@
1
- import{j as s}from"./liveblocks-BseLVJU2.js";import{a as n}from"./sentry-nbOh2gVl.js";import{u,g as m,h as p,N as g}from"./core-C82y6_-U.js";import{z as f,B as y,t as b,c,f as h}from"./index-DlaEaq7J.js";import{fS as x,fT as I,Kk as j}from"./zeni-epic-state-DK35Ac89.js";import{n as w}from"./mui-nQfThAws.js";import"./recharts-CjabXRup.js";import"./analytics-D_2lhI0W.js";import"./plaid-DL8Esf27.js";import"./dnd-CyXN5LMk.js";import"./stripe-DMRn4zHo.js";import"./lottie-j5BULCEN.js";import"./lexical-Cp2QekuT.js";import"./pdf-D7OKXbf1.js";import"./utils-CvRuvFNB.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]="a0ed1c15-5407-4bf1-aa39-21ee88f19b7e",e._sentryDebugIdIdentifier="sentry-dbid-a0ed1c15-5407-4bf1-aa39-21ee88f19b7e")}catch{}})();function $(){const e=u(),t=m(),i=p(),a=n.useRef(!1),d=f.isSignedIn(),r=t.state?.message==="logout",o=r||d;return n.useEffect(()=>{o&&!a.current&&(a.current=!0,setTimeout(()=>{try{f.clearAll(),e(x()),e(I(!1)),j(),b.reset(),c.trackLogout(h.Event.logoutSuccess),c.resetUserIdentity()}catch(l){console.error("Error during sign out:",l)}finally{r||i("/signin/auth",{replace:!0})}},0))},[o,r]),o?s.jsx(k,{children:s.jsx(y,{fetchState:"In-Progress"})}):s.jsx(g,{to:"../",replace:!0})}const k=w.div`
2
- display: flex;
3
- height: 100vh;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- `;export{$ as default};
@@ -1,9 +0,0 @@
1
- import{j as d}from"./liveblocks-BseLVJU2.js";import{a as D}from"./sentry-nbOh2gVl.js";import{h as U,u as z,g as K,j as b,i as _,n as V}from"./core-C82y6_-U.js";import{z as L,s as H,d as p,Z as M,A as O,c as W,f as Z,cT as q,w as g,v as J}from"./index-DlaEaq7J.js";import{eR as Q,Rn as F,H3 as y,Ro as x,Rj as X,Gr as E,Rp as Y,Gz as S,FV as aa,H4 as I,Rq as R,gV as ea,GW as ta,G$ as sa,GO as oa,GM as w,H0 as na,GJ as ia,Rr as la,Rs as ra,Rt as ca,Ru as ka,Rv as m,ed as ua,Rw as da,Rx as pa}from"./zeni-epic-state-DK35Ac89.js";import{n as ma}from"./mui-nQfThAws.js";import{u as Ta}from"./useAskAiCfoHostNavButtonProps-DoDP7B3S.js";import{M as ga}from"./MobileAppDrawer-my2gXRON.js";import"./recharts-CjabXRup.js";import"./analytics-D_2lhI0W.js";import"./plaid-DL8Esf27.js";import"./dnd-CyXN5LMk.js";import"./stripe-DMRn4zHo.js";import"./lottie-j5BULCEN.js";import"./lexical-Cp2QekuT.js";import"./pdf-D7OKXbf1.js";import"./utils-CvRuvFNB.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]="b1cd5f80-f1c2-4c17-a547-065e815419c8",e._sentryDebugIdIdentifier="sentry-dbid-b1cd5f80-f1c2-4c17-a547-065e815419c8")}catch{}})();const fa=ma.div`
2
- display: flex;
3
- min-height: 100%;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- `,Ga=V(function(e,t){const o=F(e,t.isTaskTemplatesEnabled),{taskGroupId:c}=t,n=c!=null&&c!==""?{...o,taskGroupsWithTasksList:o.taskGroupsWithTasksList.map(l=>({...l,tasks:l.tasks.filter(a=>a.taskGroupIds.includes(c))})).filter(l=>l.tasks.length>0)}:o,u=X(e),i=L.isZeniUser();return{taskListView:n,tagListView:u,localData:n.localData,isTaskTemplatesEnabled:t.isTaskTemplatesEnabled,isZeniUser:i}},function(e,t){const{navigate:o,currentTenant:c,location:n,isTaskTemplatesEnabled:u}=t,{tenantEmailDomain:i}=c,{groupByKey:l}=t.uiState;return{onTaskManagementRowClick:a=>{const s=B(i,a),k=g(n.state?.pathnameStackToGoBack,n.pathname);o(s,{state:{pathnameStackToGoBack:k}})},onReloadTasks:()=>{e(y(!0,u))},onTabChange:a=>{e(ka(a))},onParentTaskClick:a=>{const s=B(i,a);window.open(s,"_blank","noopener")},bulkUpdateTasks:(a,s)=>{e(w(a,null,s))},onNewTaskClick:()=>{if(t.localData.defaultTaskGroupId!=null){const a=C(i,t.localData.defaultTaskGroupId),s=g(n.state?.pathnameStackToGoBack,n.pathname);o(a,{state:{pathnameStackToGoBack:s,message:"comingFromTaskListPage"}})}},onColumnSortConfigChanged:(a,s)=>{e(R({uiState:{sortKey:a,sortOrder:s}}))},onFiltersChange:a=>{e(ca({filters:a}))},onSearchTextChanged:a=>{e(ra({searchText:a}))},onReloadCards:()=>{e(y(!0,u))},onBackClick:()=>{if(n.state?.message==="triggerBackClick"){const a=J(n.state?.pathnameStackToGoBack),s=a.poppedPathname??"../";o(s,{state:{pathnameStackToGoBack:a.newStack}})}else o("../")},updateLocalData:a=>{e(la({localData:a}))},resetLocalData:()=>{e(x({taskGroupById:t.taskGroupState.taskGroupById}))},handleCreateGroup:a=>{e(ia(t.localData.newTaskGroupName,a))},assignGroupToTasks:a=>{e(w(t.localData.selectedTaskIds,a,na(t.uiState.groupByKey,a)))},onDeleteTaskGroup:a=>{e(oa(a))},onAddNewTaskToTaskGroup:a=>{if(t.localData.defaultTaskGroupId!=null){const s=ha(l,a);e(E({taskDetailLocalData:s}));const k=C(i,t.uiState.groupByKey==="groupName"?a:t.localData.defaultTaskGroupId),f=g(n.state?.pathnameStackToGoBack,n.pathname);o(k,{state:{pathnameStackToGoBack:f,message:"comingFromTaskListPage"}})}},onDragNDrop:(a,s)=>{e(sa(t.localData.selectedTaskIds.length>0?t.localData.selectedTaskIds:[a],s))},onTaskGroupRename:(a,s)=>{e(ta(a,s))},onTimeSpentUpdate:(a,s)=>{e(I({task:a,updates:s}))},onShowToast:a=>{e(ea(a))},onGroupByFilterChange:a=>{e(R({uiState:{groupByKey:a}}))},updateTask:(a,s)=>{e(I({task:a,updates:s}))},onCreateTagClick:(a,s)=>{e(aa(a,s))},handleGroupTemplateClick:a=>{e(S(a,[]))},handleGroupTemplateTaskClick:(a,s)=>{e(S(a,[s]))},handleNewTaskInitialization:a=>{if(e(E({taskDetailLocalData:{...Y,name:a}})),t.localData.defaultTaskGroupId!=null){const s=C(i,t.localData.defaultTaskGroupId),k=g(n.state?.pathnameStackToGoBack,n.pathname);o(s,{state:{pathnameStackToGoBack:k,message:"comingFromTaskListPage"}})}},onTaskGroupNameClick:a=>{o(`/${i}/tasks/group/${a}`)},onQuickResponsesClick:()=>{o(`/${i}/tasks/quick-responses`)}}})(q);function va(){const e=U(),t=z(),o=K(),c=L.getSignedInUser(),n=b(r=>Q(r)),{taskGroupId:u}=_(),{useFeatureGate:i}=H(),{isFeatureEnabled:l}=i(p.isTaskTemplatesEnabled),{isFeatureEnabled:a}=i(p.isTaskCannedResponsesEnabled),{isFeatureEnabled:s}=i(p.isTaskCategorizationEnabled),{isFeatureEnabled:k}=i(p.isTaskBulkResolutionEnabled),{isFeatureEnabled:f}=i(p.isTaskGroupAssigneesEnabled),{isFeatureEnabled:A}=i(p.isTaskRecurringParentEnabled),[P,$]=D.useState(!1),G=b(r=>F(r,l)),h=b(r=>r.taskGroupState),T=G.fetchState,{isAiCfoAccessEnabled:j,onAskAiCfoClick:v}=Ta({mobileExploreReferrer:"Task Checklist"});if(M({isDataReady:T==="Completed"}),D.useEffect(()=>{t(y(!1,l))},[n?.tenantId,t,l]),D.useEffect(()=>{T==="Completed"&&t(x({taskGroupById:h.taskGroupById}))},[T,h.taskGroupById]),c==null)throw Error("Can't access task list page without signing in...");return d.jsxs(d.Fragment,{children:[T==="Completed"?d.jsx(O,{analytics:W,onLoad:r=>(N=>N.trackPageLoaded(Z.Event.taskListPage))(r)}):null,d.jsxs(fa,{children:[d.jsx(ga,{isAppContentDrawerOpen:P,handleDrawerToggle:r=>{$(r)}}),d.jsx(Ga,{location:o,navigate:e,currentTenant:n,taskGroupId:u,taskGroupState:h,localData:G.localData,uiState:G.uiState,isTaskTemplatesEnabled:l,taskListFetchState:T,isTaskCategorizationEnabled:s,isTaskCannedResponsesEnabled:a,isTaskBulkResolutionEnabled:k,isTaskGroupAssigneesEnabled:f,isTaskRecurringParentEnabled:A,isAiCfoAccessEnabled:j,onAskAiCfoClick:v})]})]})}const B=(e,t)=>`/${e}/tasks/${encodeURIComponent(t)}`,C=(e,t)=>`/${e}/tasks/new/${t}`,ha=(e,t)=>{if(e==="assignee"){const o=t.split(",");return{...m.taskDetailLocalData,assignee:o}}if(e==="priority"){const o=ua(t);return{...m.taskDetailLocalData,priority:o}}if(e==="status"){const o=da(t);return{...m.taskDetailLocalData,status:o}}if(e==="tag"){const o=t.split(",");return{...m.taskDetailLocalData,tagIds:o}}if(e==="dueDate"){const o=pa(t);return{...m.taskDetailLocalData,dueDate:o}}return{...m.taskDetailLocalData}};export{va as default};
@@ -1,9 +0,0 @@
1
- import{j as n}from"./liveblocks-BseLVJU2.js";import se from"./NotFoundScreen-Cavr5OZ5.js";import{a as c}from"./sentry-nbOh2gVl.js";import{h as M,u as Z,j as g,g as ne,i as oe,N as ie,n as re,o as ce,p as f}from"./core-C82y6_-U.js";import{G6 as O,G9 as le,G3 as de,eR as Y,Rj as H,Gn as J,G0 as pe,GT as ue,GM as ke,Rk as W,Rl as N,FY as me,FV as fe,qL as ge,qz as he,kg as Se,Gh as Ie,Rm as Ge,Gy as Te,Gv as be,Gc as Ee,Gs as Ce,Gr as De}from"./zeni-epic-state-DK35Ac89.js";import{z as C,cR as xe,x as Re,s as je,d as T,v as X,w as v,A as ye,c as V,f as ve,cS as we,j as q,at as Fe}from"./index-DlaEaq7J.js";import{n as Be}from"./mui-nQfThAws.js";import{u as Pe}from"./useInitialThreadRequest-CU3qAAey.js";import{M as Ue}from"./MobileAppDrawer-my2gXRON.js";import Le from"./TaskListScreen-BOeQ2Ysx.js";import"./recharts-CjabXRup.js";import"./analytics-D_2lhI0W.js";import"./plaid-DL8Esf27.js";import"./dnd-CyXN5LMk.js";import"./stripe-DMRn4zHo.js";import"./lottie-j5BULCEN.js";import"./lexical-Cp2QekuT.js";import"./pdf-D7OKXbf1.js";import"./utils-CvRuvFNB.js";import"./useAskAiCfoHostNavButtonProps-DoDP7B3S.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]="f8ccddfe-0b57-4235-a120-91d3ffe13bff",e._sentryDebugIdIdentifier="sentry-dbid-f8ccddfe-0b57-4235-a120-91d3ffe13bff")}catch{}})();function $e(){const e=M(),t=Z(),s=C.getSignedInUser(),{cannedResponses:u,fetchState:r,saveFetchState:d}=g(o=>o.cannedResponsesState),l=c.useCallback(()=>{t(O())},[t]),k=c.useCallback((o,h,S)=>{t(le({name:o,content:h,cannedResponseId:S}))},[t]),a=c.useCallback(o=>{t(de({cannedResponseId:o}))},[t]);if(s==null)throw Error("Can't access quick responses page without signing in...");return n.jsx(xe,{cannedResponses:u,isLoading:r==="In-Progress"||r==="Not-Started",isSaving:d==="In-Progress",onBackClick:()=>e(-1),onDelete:a,onFetch:l,onSave:k})}let A,_=[];const ze=re(function(e,t){const{location:s,taskGroupId:u}=t,r=W(e,t.taskId),d=Y(e),l=r.taskGroupId??u,k=l!=null?N(e.taskGroupState,l):void 0,a=C.getSignedInUser(),o=d.tenantId,h={userId:a?.userId??"",sessionId:a?.zeniSessionId??"",tenantId:o??""},S=H(e),{tenantEmailDomain:D}=d,b=r.recurringSourceTaskId,x=b!=null?`${q.appUrl}/${D}/tasks/${encodeURIComponent(b)}`:void 0;var I;return{taskDetailSelectorView:r,authParams:h,isZeniUser:C.isZeniUser(),userGroupList:((I=e.userGroupsState.userGroupByUserGroupId)!==A&&(A=I,_=Object.values(I)),_),isNewClicked:s.state?.message==="comingFromTaskListPage",filesEndPoint:Fe.fileMicroServiceBaseUrl,companyName:t.currentTenant.companyName,companyId:t.currentTenant.companyId,currentUrl:`${q.appUrl}${t.location.pathname}`,cannedResponses:e.cannedResponsesState.cannedResponses,isCannedResponsesLoading:e.cannedResponsesState.fetchState==="In-Progress",recurringSourceTaskUrl:x,tagListView:S,taskGroupName:l!=null&&k!=null&&k.isDefault===!1?k.name:void 0,taskGroupList:e.taskGroupViewState.taskGroupsIds.map(p=>N(e.taskGroupState,p)).filter(p=>p!=null&&!p.isDeleted).map(p=>({id:p.id,name:p.name,isDefault:p.isDefault}))}},function(e,t){const{taskId:s,navigate:u,currentTenant:r,location:d,taskGroupId:l}=t,{tenantEmailDomain:k}=r;return{onSaveChangesToLocalStore:a=>{e(De({taskDetailLocalData:a,taskId:s}))},onSaveDetailClick:a=>{e(Ce(s,a??l))},onArchiveTaskClick:()=>{t.taskId!=null&&e(Ee(t.taskId))},onSnoozeTask:(a,o)=>{e(be(a,o))},onUnsnoozeTask:a=>{e(Te(a))},onDismissClick:()=>{if(d.state?.message==="triggerBackClick"){const a=X(d.state?.pathnameStackToGoBack),o=a.poppedPathname??"../../dashboard";u(o,{state:{pathnameStackToGoBack:a.newStack}})}else{const a=w(k),o=v(d.state?.pathnameStackToGoBack,d.pathname);u(a,{state:{pathnameStackToGoBack:o}})}e(Ge({taskId:s}))},onDeleteTaskClick:()=>{e(Ie(s))},updateFilesEntity:a=>{e(Se({files:a}))},onDeleteFile:a=>{e(he(a))},onEditFileName:(a,o)=>{e(ge(a,o.split(".")[0]))},onReloadTaskDetailPage:()=>{e(J(!1,s))},onCreateTagClick:a=>{e(fe(a,s))},onDeleteTagClick:a=>{e(me(a,s))},onFetchCannedResponses:()=>{e(O())},onManageTemplatesClick:()=>{u(`/${r.tenantEmailDomain}/tasks/quick-responses`)}}})(we);function y(){const e=M(),t=Z(),s=ne(),u=Re(),{taskId:r,taskGroupId:d}=oe(),l=g(i=>Y(i)),k=Pe(l?.companyId),{useFeatureGate:a}=je(),{isFeatureEnabled:o}=a(T.isTaskSnoozeEnabled),{isFeatureEnabled:h}=a(T.isTaskVisibilityEnabled),{isFeatureEnabled:S}=a(T.isTaskCannedResponsesEnabled),{isFeatureEnabled:D}=a(T.isTaskRecurringParentEnabled),{isFeatureEnabled:b}=a(T.isTaskGroupAssigneesEnabled),[x,I]=c.useState(!1),[p,K]=c.useState(!1),[F,Q]=c.useState(!1),[B,ee]=c.useState(!1),[P,R]=c.useState(!1),G=c.useRef(!1),E=g(i=>i.taskListState.updateTasksFetchState.fetchState),U=g(i=>H(i)),L=g(i=>i.taskGroupViewState.fetchState);c.useEffect(()=>{p||(K(!0),t(J(!1,r)))},[p,t]),c.useEffect(()=>{F||U.fetchState==="Completed"||(Q(!0),t(pe()))},[F,t,U.fetchState]),c.useEffect(()=>{B||L==="Completed"||(ee(!0),t(ue()))},[B,t,L]);const ae=c.useCallback(()=>{r!=null&&(G.current=!1,t(ke([r],null,{isArchived:!1})),R(!0))},[t,r]);c.useEffect(()=>{if(P)if(E!=="In-Progress"){if(G.current){if(E==="Error")return R(!1),void(G.current=!1);if(E==="Completed"){R(!1),G.current=!1;const{tenantEmailDomain:i}=l;if(s.state?.message==="triggerBackClick"){const m=X(s.state?.pathnameStackToGoBack);e(m.poppedPathname??"../../dashboard",{state:{pathnameStackToGoBack:m.newStack}})}else{const m=w(i);e(m,{state:{pathnameStackToGoBack:v(s.state?.pathnameStackToGoBack,s.pathname)}})}}}}else G.current=!0},[P,E,l,s,e]);const $=g(i=>W(i,r)),j=$.fetchState,z=C.getSignedInUser();if(z==null)throw Error("Can't access task detail page without signing in...");if(j==="Error"&&$.error?.code===400){const{tenantEmailDomain:i}=l,m=w(i),te=v(s.state?.pathnameStackToGoBack,s.pathname);return n.jsx(ie,{to:m,state:{pathnameStackToGoBack:te}})}return n.jsxs(n.Fragment,{children:[j==="Completed"?n.jsx(ye,{analytics:V,onLoad:i=>(m=>m.trackPageLoaded(ve.Event.taskDetailPage))(i)}):null,n.jsxs(Ne,{children:[n.jsx(Ue,{isAppContentDrawerOpen:x,handleDrawerToggle:i=>{I(i)}}),n.jsx(ze,{analytics:V,currentTenant:l,handleZeniLogoClick:()=>{u.toggle()},initialOpenThreadRequest:k,location:s,loggedInUser:z,navigate:e,taskGroupId:d,taskId:r,taskDetailFetchState:j,onUnarchiveTaskClick:ae,isTaskSnoozeEnabled:o,isTaskVisibilityEnabled:h,isTaskCannedResponsesEnabled:S,isTaskRecurringParentEnabled:D,isTaskGroupAssigneesEnabled:b})]})]})}const Ne=Be.div`
2
- display: flex;
3
- min-height: 100%;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- `,w=e=>`/${e}/tasks`;function ia(){return n.jsxs(ce,{children:[n.jsx(f,{path:"/new",element:n.jsx(y,{})}),n.jsx(f,{path:"/new/:taskGroupId",element:n.jsx(y,{})}),n.jsx(f,{path:"/group/:taskGroupId",element:n.jsx(Le,{})}),n.jsx(f,{path:"/quick-responses",element:n.jsx($e,{})}),n.jsx(f,{path:"/:taskId",element:n.jsx(y,{})}),n.jsx(f,{path:"*",element:n.jsx(se,{})})]})}export{ia as default};
@@ -1 +0,0 @@
1
- import{j as t}from"./liveblocks-BseLVJU2.js";import i from"./NotFoundScreen-Cavr5OZ5.js";import{T as r}from"./TransactionDetailScreen-CZdGyLYX.js";import"./sentry-nbOh2gVl.js";import{o as a,p as o}from"./core-C82y6_-U.js";import"./zeni-epic-state-DK35Ac89.js";import"./recharts-CjabXRup.js";import"./index-DlaEaq7J.js";import"./mui-nQfThAws.js";import"./analytics-D_2lhI0W.js";import"./plaid-DL8Esf27.js";import"./dnd-CyXN5LMk.js";import"./stripe-DMRn4zHo.js";import"./lottie-j5BULCEN.js";import"./lexical-Cp2QekuT.js";import"./pdf-D7OKXbf1.js";import"./utils-CvRuvFNB.js";import"./useAskAiCfoHostNavButtonProps-DoDP7B3S.js";import"./decodeURIComponentSafe-BbPXryX6.js";import"./routePaths-CG9FBSKj.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]="8f33aac6-3389-4f99-92e2-514bb2135525",e._sentryDebugIdIdentifier="sentry-dbid-8f33aac6-3389-4f99-92e2-514bb2135525")}catch{}})();function k(){return t.jsxs(a,{children:[t.jsx(o,{path:"/:transactionTypeEncoded/:transactionId",element:t.jsx(r,{})}),t.jsx(o,{path:"/:transactionTypeEncoded/:transactionId/page-not-found",element:t.jsx(i,{})}),t.jsx(o,{path:"/:transactionTypeEncoded/:transactionId/vendor/create",element:t.jsx(r,{})}),t.jsx(o,{path:"/*",element:t.jsx(r,{})})]})}export{k as default};