@zeniai/web-app-ui 5.4.9-qa → 5.4.10-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 (157) hide show
  1. package/dist/assets/AccountMappingScreen-BT4O8HTD.js +9 -0
  2. package/dist/assets/ActualMatchingMatchDetailScreen-Ce_XDU4u.js +1 -0
  3. package/dist/assets/AddressRoutes-BQEPn0Yr.js +1 -0
  4. package/dist/assets/{AddressScreen-DZ_c_5Zf.js → AddressScreen-D2FVWJY-.js} +2 -2
  5. package/dist/assets/AiCfoScreen-RbcUBAdM.js +22 -0
  6. package/dist/assets/{AppDrawer-ChtStfcd.js → AppDrawer-Sa4LLULj.js} +1 -1
  7. package/dist/assets/{BillPayApprovalRoutes-Ci65jTNa.js → BillPayApprovalRoutes-BbNV-MR5.js} +1 -1
  8. package/dist/assets/{BillPayRoutes-DWk9JwLZ.js → BillPayRoutes-uNYLvj5o.js} +18 -18
  9. package/dist/assets/BusinessVerificationPageScreen-ibSIK2nI.js +9 -0
  10. package/dist/assets/{CardsAiCfoScreen-BY7HwVCQ.js → CardsAiCfoScreen-CkEc2DEo.js} +1 -1
  11. package/dist/assets/{ChargeCardRoutes-Bgou4C5o.js → ChargeCardRoutes-CO87Ou5-.js} +8 -8
  12. package/dist/assets/CompanyPassportScreen-DJeoMdCg.js +1 -0
  13. package/dist/assets/ConnectionAuthScreen-Bf2Ucb1Q.js +11 -0
  14. package/dist/assets/CustomerOnboardingAuthScreen-D3RbfqTk.js +1 -0
  15. package/dist/assets/{CustomerOnboardingRoutes-y-XZ3h_L.js → CustomerOnboardingRoutes-BynW3iC3.js} +3 -3
  16. package/dist/assets/{DashboardRoutes-ATh0KGw_.js → DashboardRoutes-ndbO6Qws.js} +4 -4
  17. package/dist/assets/{DefaultTenantHome-B3PSqzEU.js → DefaultTenantHome-2hNb0a3U.js} +1 -1
  18. package/dist/assets/DomesticWireDetailScreen-BqDioG6P.js +18 -0
  19. package/dist/assets/DrawerScreen-b7QdOhuW.js +1 -0
  20. package/dist/assets/EntityDetailRoutes-aGFvyTv5.js +1 -0
  21. package/dist/assets/{ExpenseAutomationRoutes-D20NQ6Ld.js → ExpenseAutomationRoutes-C6_zyg5Q.js} +5 -5
  22. package/dist/assets/FeaturePreviewScreen-B5U7lEG-.js +1 -0
  23. package/dist/assets/HubSpotOAuthCallbackScreen-Dr1Xep8u.js +1 -0
  24. package/dist/assets/{InboxNotificationsProvider-BNnEDiYb.js → InboxNotificationsProvider-Cph6MP0g.js} +1 -1
  25. package/dist/assets/InvoicingRoutes-C4zfN1Wc.js +3 -0
  26. package/dist/assets/{MagicLinkRoutes-BrH570zs.js → MagicLinkRoutes-BDl3Flj2.js} +10 -10
  27. package/dist/assets/MagicLinkSignInScreen-Bie6nkkJ.js +12 -0
  28. package/dist/assets/{MobileAppDrawer-CMzKILM6.js → MobileAppDrawer-DVldqyUl.js} +1 -1
  29. package/dist/assets/NotFoundScreen-BXfz4Cwt.js +1 -0
  30. package/dist/assets/{NotificationRoutes-BnaKM5ci.js → NotificationRoutes-UAhv091T.js} +1 -1
  31. package/dist/assets/OAuthConsentScreen-yv2un5zc.js +1 -0
  32. package/dist/assets/PandLWithForecastRoutes-DZO_Ak_R.js +1 -0
  33. package/dist/assets/{PaymentLinkScreen-BoGqW_lB.js → PaymentLinkScreen-DgjQbdJS.js} +6 -6
  34. package/dist/assets/PeopleRoutes-CBBW0nYr.js +22 -0
  35. package/dist/assets/PerformanceRoutes-CIoRY1pR.js +1 -0
  36. package/dist/assets/{Preview-DYRIGspn.js → Preview-CU7aguP4.js} +1 -1
  37. package/dist/assets/{QBOConnectionScreen-D4OqW6nd.js → QBOConnectionScreen-CI47ZrlS.js} +22 -22
  38. package/dist/assets/ReimbursementApprovalRoutes-DrsMWkl8.js +1 -0
  39. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-CBCuls2I.js → ReimbursementApprovalRuleDetailScreen-Dw7QQEoQ.js} +1 -1
  40. package/dist/assets/ReimbursementRoutes-BiacT-VJ.js +68 -0
  41. package/dist/assets/ReportsRoutes-B5lACyrL.js +1 -0
  42. package/dist/assets/RewardsRoutes-26PBDRkk.js +1 -0
  43. package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-DQewo07g.js → ScheduleDetailsPrepaidExpensesScreen-LwZh192V.js} +5 -5
  44. package/dist/assets/ScreenRoutes-CdEeBqiV.js +2 -0
  45. package/dist/assets/{SettingsRoutes-Oo3D3ieu.js → SettingsRoutes-DEHUtOgG.js} +6 -6
  46. package/dist/assets/{SetupPagesScreen-DREgcFPr.js → SetupPagesScreen-Dv6lGRG5.js} +5 -5
  47. package/dist/assets/SignInScreen-CzvdRg4U.js +1 -0
  48. package/dist/assets/SignOutScreen-DfTRMdjb.js +9 -0
  49. package/dist/assets/{TaskListScreen-D4luV6T1.js → TaskListScreen-8hq6cEbk.js} +2 -2
  50. package/dist/assets/TaskRoutes-C1KzEFV7.js +9 -0
  51. package/dist/assets/TransactionDetailRoutes-BB45JvGj.js +1 -0
  52. package/dist/assets/TransactionDetailScreen-It6ORIbN.js +5 -0
  53. package/dist/assets/{TransactionListRoutes-Dnnc7PPg.js → TransactionListRoutes-BTjkHFVX.js} +1 -1
  54. package/dist/assets/{TreasuryRoutes-BdlM3dTj.js → TreasuryRoutes-Bys8F57E.js} +6 -6
  55. package/dist/assets/{VendorsRoutes-tHp2Iw_J.js → VendorsRoutes-abjQ1HGQ.js} +10 -10
  56. package/dist/assets/WiseConfirmationScreen-DewxnFTy.js +12 -0
  57. package/dist/assets/ZeniAccountRoutes-DlvpS2Bq.js +57 -0
  58. package/dist/assets/ZeniAccountStatementScreen-DVR6RIK2.js +9 -0
  59. package/dist/assets/{accountMappingHelper-DC08PpIK.js → accountMappingHelper-C9fFA6EC.js} +1 -1
  60. package/dist/assets/{analytics-DHe7CR-k.js → analytics-C3OBHjEG.js} +1 -1
  61. package/dist/assets/{analyticsHelper-C_JoV9rX.js → analyticsHelper-exrV7AE9.js} +1 -1
  62. package/dist/assets/{core-CWdVdeoj.js → core-o-ca34AJ.js} +1 -1
  63. package/dist/assets/{decodeURIComponentSafe-B92hORfx.js → decodeURIComponentSafe-CdLVPaCS.js} +1 -1
  64. package/dist/assets/{dnd-27tNAcHF.js → dnd-sqKp8sUm.js} +1 -1
  65. package/dist/assets/{empty-ulld4y6j.js → empty-BnmFWJHQ.js} +1 -1
  66. package/dist/assets/{empty-tb2EjPHb.js → empty-CynSKeaU.js} +1 -1
  67. package/dist/assets/{emptyVideoElement-CR8yMX_6.js → emptyVideoElement-BUTaximG.js} +1 -1
  68. package/dist/assets/epic-bBvrG0DE.js +2 -0
  69. package/dist/assets/expenseAutomationHelper-8n6GRk1T.js +1 -0
  70. package/dist/assets/getLocaleForTenant-CBmE-ohA.js +1 -0
  71. package/dist/assets/{index-BMVAdMdD.js → index-BLrePuqf.js} +1 -1
  72. package/dist/assets/{index-CwuQnbjb.js → index-Bqod5kmp.js} +1 -1
  73. package/dist/assets/{index-KMZ-jS_5.js → index-Btt0Zihe.js} +1 -1
  74. package/dist/assets/{index-DWfuxgo1.js → index-Bx2gJO4r.js} +15017 -15017
  75. package/dist/assets/{index-BEWFj_EB.js → index-BzW-Y7Lk.js} +1 -1
  76. package/dist/assets/{index-d9IRID_L.js → index-Cmb8jqqj.js} +1 -1
  77. package/dist/assets/{index-BeEpI6W_.js → index-D4vHXZ_y.js} +2 -2
  78. package/dist/assets/{index-B2_iddAo.js → index-j2p4Lnj3.js} +1 -1
  79. package/dist/assets/{lexical-BpsogPnC.js → lexical-CEO4_NFb.js} +1 -1
  80. package/dist/assets/{liveblocks-uYjymIZp.js → liveblocks-BdMPZzDQ.js} +1 -1
  81. package/dist/assets/{lottie-diNsKuuh.js → lottie-Dl8uwTmw.js} +1 -1
  82. package/dist/assets/{mui-C50ypouB.js → mui-cK5UWUvi.js} +1 -1
  83. package/dist/assets/{pathToGoBack-BBvR0vTh.js → pathToGoBack-Bk8jMuE9.js} +1 -1
  84. package/dist/assets/{pdf-Ck1fv3t0.js → pdf-BNJo5ucI.js} +4 -4
  85. package/dist/assets/{pdf-lib-BfGu-009.js → pdf-lib-C69QvBGc.js} +1 -1
  86. package/dist/assets/{plaid-ByLFGZs_.js → plaid-C8bTkbCG.js} +1 -1
  87. package/dist/assets/{pusher-s7-0OhRM.js → pusher-C6PXikRK.js} +1 -1
  88. package/dist/assets/{react-y78eSftG.js → react-BCP4YdKf.js} +1 -1
  89. package/dist/assets/{react-BHe9Gwj5.js → react-BfzBm-jN.js} +1 -1
  90. package/dist/assets/{react-CmpqE2zl.js → react-BgHw6ZMD.js} +1 -1
  91. package/dist/assets/{react-CBIJ-b4r.js → react-CTNewL67.js} +1 -1
  92. package/dist/assets/{react-DdlqItln.js → react-UiIuY6Fo.js} +1 -1
  93. package/dist/assets/{react-D6gZVFjz.js → react-ixvlVzZ9.js} +1 -1
  94. package/dist/assets/{recharts-Bg4ChN3A.js → recharts-DK1tbN_A.js} +1 -1
  95. package/dist/assets/{reportTimeframe-UINv8cFg.js → reportTimeframe-6FnDbaGY.js} +1 -1
  96. package/dist/assets/{routePaths-BAWZQTun.js → routePaths-DBf4ybcn.js} +1 -1
  97. package/dist/assets/{sentry-2dGMDW9b.js → sentry-Buwow292.js} +1 -1
  98. package/dist/assets/{stripSplatSuffix-CafmusDE.js → stripSplatSuffix-BKbpznmZ.js} +1 -1
  99. package/dist/assets/{url-DMT_XMh8.js → url-B_oojQRK.js} +1 -1
  100. package/dist/assets/{url-CXMIbehw.js → url-C7oPARVv.js} +1 -1
  101. package/dist/assets/useActualMatchingMatchDetail-DBoUtV2d.js +1 -0
  102. package/dist/assets/useAiCfoDashboardSuggestedQuestionsChips-D_VhexUa.js +1 -0
  103. package/dist/assets/useAskAiCfoHostNavButtonProps-B6lOnQ69.js +1 -0
  104. package/dist/assets/useChargeCardPusherEvents-B6OwhCNo.js +1 -0
  105. package/dist/assets/{useDeviceId-DTc-o5JP.js → useDeviceId-CeB6LWI8.js} +1 -1
  106. package/dist/assets/{useEmailConnectResultRefresh-DkcY_ZHK.js → useEmailConnectResultRefresh-t37-D3lN.js} +1 -1
  107. package/dist/assets/{useEnsureVendorListLoaded-CVciy2pO.js → useEnsureVendorListLoaded-BmranjK0.js} +1 -1
  108. package/dist/assets/useInitialThreadRequest-C3w5IRp7.js +1 -0
  109. package/dist/assets/{useTaskManagerAccess-Cht8h7vG.js → useTaskManagerAccess-By_NjZen.js} +1 -1
  110. package/dist/assets/useTaskManagerPusherEvents-LOx5aVW8.js +1 -0
  111. package/dist/assets/{utils-tucfLrt-.js → utils-D4KfE2cr.js} +1 -1
  112. package/dist/assets/{withTransactionSidePanel-ioEX9Mpy.js → withTransactionSidePanel-CVCleugc.js} +5 -5
  113. package/dist/assets/{zeni-epic-state-BD9eq4uF.js → zeni-epic-state-MQ0qdl-Q.js} +4 -4
  114. package/dist/index.html +1 -1
  115. package/package.json +4 -4
  116. package/dist/assets/AccountMappingScreen-DwsWtlL3.js +0 -9
  117. package/dist/assets/ActualMatchingMatchDetailScreen-BWmuK_1y.js +0 -1
  118. package/dist/assets/AddressRoutes-Bw3Oe13l.js +0 -1
  119. package/dist/assets/AiCfoScreen-BG2AgRdt.js +0 -22
  120. package/dist/assets/BusinessVerificationPageScreen-BC5aFSvs.js +0 -9
  121. package/dist/assets/CompanyPassportScreen-CgfAyHzj.js +0 -1
  122. package/dist/assets/ConnectionAuthScreen-B6Iq8Io7.js +0 -11
  123. package/dist/assets/CustomerOnboardingAuthScreen-BEN6jbx7.js +0 -1
  124. package/dist/assets/DomesticWireDetailScreen-DCi8W08h.js +0 -18
  125. package/dist/assets/DrawerScreen-051Ir8Gc.js +0 -1
  126. package/dist/assets/EntityDetailRoutes-Zkuv9QI9.js +0 -1
  127. package/dist/assets/FeaturePreviewScreen-D0YCRsQV.js +0 -1
  128. package/dist/assets/HubSpotOAuthCallbackScreen-B8cLywkN.js +0 -1
  129. package/dist/assets/InvoicingRoutes-CmC5s6eX.js +0 -3
  130. package/dist/assets/MagicLinkSignInScreen-BvgZDDSS.js +0 -12
  131. package/dist/assets/NotFoundScreen-BkWLiAe_.js +0 -1
  132. package/dist/assets/OAuthConsentScreen-ZIqIXW8N.js +0 -1
  133. package/dist/assets/PandLWithForecastRoutes-DTuPBw_A.js +0 -1
  134. package/dist/assets/PeopleRoutes-Bfxe9uc1.js +0 -22
  135. package/dist/assets/PerformanceRoutes-CT8np-58.js +0 -1
  136. package/dist/assets/ReimbursementApprovalRoutes-DIPF3Jao.js +0 -1
  137. package/dist/assets/ReimbursementRoutes-T9x_Liz1.js +0 -68
  138. package/dist/assets/ReportsRoutes-CLTwR10n.js +0 -1
  139. package/dist/assets/RewardsRoutes-C5D4dqxr.js +0 -1
  140. package/dist/assets/ScreenRoutes-DpIHvmC2.js +0 -2
  141. package/dist/assets/SignInScreen-BO9fn6dB.js +0 -1
  142. package/dist/assets/SignOutScreen-g089YQs4.js +0 -9
  143. package/dist/assets/TaskRoutes-BLnrMZJs.js +0 -9
  144. package/dist/assets/TransactionDetailRoutes-B1gY-gFj.js +0 -1
  145. package/dist/assets/TransactionDetailScreen-CeZrAaYH.js +0 -5
  146. package/dist/assets/WiseConfirmationScreen-DkZ1Jerd.js +0 -12
  147. package/dist/assets/ZeniAccountRoutes-C0esdz20.js +0 -57
  148. package/dist/assets/ZeniAccountStatementScreen-CBB7Mpyi.js +0 -9
  149. package/dist/assets/epic-CvT02aJz.js +0 -2
  150. package/dist/assets/expenseAutomationHelper-YR9YM6r6.js +0 -1
  151. package/dist/assets/getLocaleForTenant-CpRHGW6n.js +0 -1
  152. package/dist/assets/useActualMatchingMatchDetail-BtYRi4BF.js +0 -1
  153. package/dist/assets/useAiCfoDashboardSuggestedQuestionsChips-J-yxmgna.js +0 -1
  154. package/dist/assets/useAskAiCfoHostNavButtonProps-C0DT0xU1.js +0 -1
  155. package/dist/assets/useChargeCardPusherEvents-CH-2PvmA.js +0 -1
  156. package/dist/assets/useInitialThreadRequest-CKJ7jgv2.js +0 -1
  157. package/dist/assets/useTaskManagerPusherEvents-CKW_jM-O.js +0 -1
@@ -1 +0,0 @@
1
- import{Vq as u}from"./zeni-epic-state-BD9eq4uF.js";import"./sentry-2dGMDW9b.js";import{q as f,g as m}from"./core-CWdVdeoj.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]="1c161fa3-36a2-4c97-93d1-e8d06a8bd827",e._sentryDebugIdIdentifier="sentry-dbid-1c161fa3-36a2-4c97-93d1-e8d06a8bd827")}catch{}})();const b=/^(0?[1-9]|1[0-2])-\d{4}$/;function i(e){if(e!=null&&e!=="")return u(e)}function d(e){return e!=null&&b.test(e)}function y(e){const{selectedPeriod:n,selectedTab:o,tenantEmailDomain:t}=e,s=i(o);if(t!=null&&t!==""&&s!=null&&d(n))return`/${t}/month_end_close_checks/review/${s}/${n}`}function w(e){const{selectedTab:n,tenantEmailDomain:o,accountId:t,period:s}=e,a=i(n);if(o==null||o===""||a==null)return;const r=new URLSearchParams;t!=null&&t!==""&&r.set("accountId",t),s!=null&&d(s)&&r.set("period",s);const c=r.toString(),l=`/${o}/month_end_close_checks/review/${a}/report`;return c===""?l:`${l}?${c}`}const $=()=>{const e=_();return f("/:tenantEmailDomain/month_end_close_checks/review/:selectedTab/:selectedPeriod/*")!=null||e},_=()=>m().state?.message==="expenseAutomation";export{w as a,i as b,d as i,y as m,$ as u};
@@ -1 +0,0 @@
1
- import{_ as n}from"./index-DWfuxgo1.js";import"./mui-C50ypouB.js";import"./sentry-2dGMDW9b.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]="2aa3be53-b5f7-4cbc-8d0f-7a8e931034cb",e._sentryDebugIdIdentifier="sentry-dbid-2aa3be53-b5f7-4cbc-8d0f-7a8e931034cb")}catch{}})();function f(e){if(e.companyLocaleInfo!=null&&e.companyLocaleInfo.languageCode.length>0&&e.companyLocaleInfo.companyIncCountryCode.length>0){const o=`${e.companyLocaleInfo.languageCode.toLowerCase()}-${e.companyLocaleInfo.companyIncCountryCode.toUpperCase()}`;return console.warn(`localeID ${o}`),n(o)??"en"}return"en"}export{f as t};
@@ -1 +0,0 @@
1
- import{a as o}from"./sentry-2dGMDW9b.js";import{u as C,h as p,g as k,i as b,j as r}from"./core-CWdVdeoj.js";import{XG as D,XH as S,XI as $,XJ as x,rT as f,XK as A,XL as M,sl as U,rZ as P,s1 as j,sZ as F}from"./zeni-epic-state-BD9eq4uF.js";import{a as h}from"./stripSplatSuffix-CafmusDE.js";import{a2 as m,k as Z}from"./index-DWfuxgo1.js";import{c as H}from"./routePaths-BAWZQTun.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]="1d33adf5-f1af-4ef7-8c75-2b3cab21b8e5",a._sentryDebugIdIdentifier="sentry-dbid-1d33adf5-f1af-4ef7-8c75-2b3cab21b8e5")}catch{}})();function J(a,t,n){return{pathname:H({id:a.id,type:F(a.type)},t),state:{pathnameStackToGoBack:Z(n.state?.pathnameStackToGoBack,`${n.pathname}${n.search}`)}}}function K(){const a=p(),t=k(),{tenantEmailDomain:n}=b();return o.useCallback((s=>{if(n==null)return;const c=J(s,n,t);a(c.pathname,{state:c.state})}),[t,a,n])}function V(a){const t=C(),n=p(),s=k(),{tenantEmailDomain:c}=b(),{match:l,detailFetchState:u,refreshStatus:g,undoReversalStatus:y,ignoreStatus:I,lastMatchResults:T,lastUndoResults:v}=r((e=>D(e,a))),R=r((e=>S(e,a))),i=r($),d=r(x);o.useEffect((()=>{a!==""&&l==null&&u.fetchState==="Not-Started"&&t(f(a))}),[a,l,u.fetchState,t]),o.useEffect((()=>{if(i==null||i!==a||!s.pathname.includes("/expense-automation/actual-matching/"))return;const e=m(s.state?.pathnameStackToGoBack);n(h(e.poppedPathname,`/${c??""}/month_end_close_checks/review`),{state:{pathnameStackToGoBack:e.newStack}}),t(A())}),[i,t,s.pathname,s.state,a,n,c]),o.useEffect((()=>{if(d==null||d!==a||!s.pathname.includes("/expense-automation/actual-matching/"))return;const e=m(s.state?.pathnameStackToGoBack);n(h(e.poppedPathname,`/${c??""}/month_end_close_checks/review`),{state:{pathnameStackToGoBack:e.newStack}}),t(M())}),[d,t,s.pathname,s.state,a,n,c]);const _=o.useCallback((()=>{a!==""&&t(f(a,!0))}),[t,a]),w=o.useCallback((e=>{a!==""&&t(U(a,e))}),[t,a]),B=o.useCallback(((e,X)=>{a!==""&&t(P(a,e,X))}),[t,a]),G=o.useCallback((e=>{t(j(e.transactionId,e.transactionIntegrationId,e.transactionType,e.lineIds,e.transactionSyncToken,e.accrualIds))}),[t]),E=K();return{match:l,detailFetchState:u,handleOpenBill:E,handleApproveAndReverse:G,handleIgnoreMatchSuggestion:B,handleRefresh:_,handleUndoReversal:w,lastMatchResults:T,lastUndoResults:v,refreshStatus:g,ignoreStatus:I,matchAndReverseStatus:R,undoReversalStatus:y}}export{V as a,J as b,K as u};
@@ -1 +0,0 @@
1
- import{bv as f}from"./index-DWfuxgo1.js";import"./sentry-2dGMDW9b.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="2fdbb2cd-f57f-4f2b-8b86-c8b794e7ca34",e._sentryDebugIdIdentifier="sentry-dbid-2fdbb2cd-f57f-4f2b-8b86-c8b794e7ca34")}catch{}})();function r(){return f("dashboard")}export{r as u};
@@ -1 +0,0 @@
1
- import{a as b}from"./sentry-2dGMDW9b.js";import{h as u,g,i as h,j as S}from"./core-CWdVdeoj.js";import{fI as k}from"./zeni-epic-state-BD9eq4uF.js";import{a as y,$ as A,e as C,ap as I,A as T,k as w,as as D}from"./index-DWfuxgo1.js";import"./mui-C50ypouB.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]="8c75262a-f33a-4128-8f7b-d0276673b1a1",e._sentryDebugIdIdentifier="sentry-dbid-8c75262a-f33a-4128-8f7b-d0276673b1a1")}catch{}})();function j(e){const{mobileExploreReferrer:a}=e,{isAiCfoOpen:r,setIsAiCfoOpen:i}=y(),s=u(),o=g(),{tenantEmailDomain:n}=h(),l=A(),f=D(l),d=C(),p=I(),m=S((t=>t.tenantState.fetchState==="Completed"||t.tenantState.activeTenantFetchState.fetchState==="Completed"?k(t):void 0)),c=m?.masterTOSInfo?.isMasterTOSAccepted??!1;return{isAiCfoAccessEnabled:p&&d&&!r,onAskAiCfoClick:b.useCallback((()=>{if(n!=null)if(c)if(f){const t=w(o.state?.pathnameStackToGoBack,o.pathname);s(`/${n}/ai-cfo/explore`,{state:{pathnameStackToGoBack:t,referrer:a}})}else i(!0);else T({location:o,navigate:s,mergeState:{referrer:a}})}),[c,f,o,a,s,i,n])}}export{j as u};
@@ -1 +0,0 @@
1
- import{a as r}from"./sentry-2dGMDW9b.js";import{aI as I,aJ as _}from"./index-DWfuxgo1.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]="177b2c33-7bfc-4dc4-9310-c265e27b05d9",e._sentryDebugIdIdentifier="sentry-dbid-177b2c33-7bfc-4dc4-9310-c265e27b05d9")}catch{}})();const v=e=>{const{events:n,onEvent:d,onSubscribed:h}=e,o=I(),y=r.useRef(d),p=r.useRef(h),g=r.useRef(0);r.useEffect((()=>{y.current=d}),[d]),r.useEffect((()=>{p.current=h}),[h]);const E=r.useMemo((()=>[...n].sort().join("|")),[n]);r.useEffect((()=>{if(o==null||n.length===0)return;const f=[],i=new Set,w=()=>{if(p.current==null)return;const t=Date.now();t-g.current<5e3||(g.current=t,p.current())};return n.forEach((t=>{const[u,c]=_(t);if(c==="")return;const b=o.channel(u),a=l=>{y.current(c,l)};let s;if(b?.subscribed===!0)s=b,s.bind(c,a),i.has(u)||(i.add(u),w()),f.push((()=>{b.unbind(c,a)}));else{if(s=b??o.subscribe(u),s.bind(c,a),!i.has(u)){i.add(u);const l=()=>{w()};s.bind("pusher:subscription_succeeded",l),f.push((()=>{s.unbind("pusher:subscription_succeeded",l)}))}f.push((()=>{s.unbind(c,a)}))}})),()=>{f.forEach((t=>t()))}}),[o,E])};export{v as u};
@@ -1 +0,0 @@
1
- import{a as n}from"./sentry-2dGMDW9b.js";import{aw as c}from"./index-DWfuxgo1.js";import"./mui-C50ypouB.js";import{t as l}from"./core-CWdVdeoj.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]="e5cade93-388e-4234-b87d-3a42bb714ade",e._sentryDebugIdIdentifier="sentry-dbid-e5cade93-388e-4234-b87d-3a42bb714ade")}catch{}})();function m(e,a){const{clearParams:d=!0}=a??{},[t,u]=l(),[f,o]=n.useState(),s=n.useRef(!1),i=n.useRef(!1);return n.useEffect((()=>{if(s.current||e==null||!(t.has("thread_id")||t.has("entity_type")))return;const r=c(t,e);r!=null&&(o(r),s.current=!0)}),[t,e]),n.useEffect((()=>{if(!s.current||i.current||!d||!(t.has("thread_id")||t.has("entity_type")))return;const r=new URLSearchParams(t);r.delete("thread_id"),r.delete("entity_type"),u(r,{replace:!0}),i.current=!0}),[t,u,d]),f}export{m as u};
@@ -1 +0,0 @@
1
- import{a as r}from"./sentry-2dGMDW9b.js";import{aI as E,aJ as I}from"./index-DWfuxgo1.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new n.Error().stack;s&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[s]="7844b63b-ad94-4b80-91e5-c900603473c3",n._sentryDebugIdIdentifier="sentry-dbid-7844b63b-ad94-4b80-91e5-c900603473c3")}catch{}})();const v=n=>{const{events:s,onEvent:o,onSubscribed:l}=n,b=E(),g=r.useRef(o),h=r.useRef(l),_=r.useRef(0);r.useEffect((()=>{g.current=o}),[o]),r.useEffect((()=>{h.current=l}),[l]);const w=r.useMemo((()=>[...s].sort().join("|")),[s]);r.useEffect((()=>{if(b==null||s.length===0)return;const i=[],f=new Set,y=()=>{if(h.current==null)return;const t=Date.now();t-_.current<5e3||(_.current=t,h.current())};return s.forEach((t=>{const[c,d]=I(t);if(d==="")return;const a=b.channel(c),p=u=>{g.current(d,u)};let e;if(a?.subscribed===!0){if(e=a,e.bind(d,p),!f.has(c)){f.add(c),y();const u=()=>{y()};e.bind("pusher:subscription_succeeded",u),i.push((()=>{e.unbind("pusher:subscription_succeeded",u)}))}i.push((()=>{a.unbind(d,p)}))}else{if(e=a??b.subscribe(c),e.bind(d,p),!f.has(c)){f.add(c);const u=()=>{y()};e.bind("pusher:subscription_succeeded",u),i.push((()=>{e.unbind("pusher:subscription_succeeded",u)}))}i.push((()=>{e.unbind(d,p)}))}})),()=>{i.forEach((t=>t()))}}),[b,w])};export{v as u};