1(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]=`7f469d95-a17a-470b-8bc7-b03f58b01d1e`,e._sentryDebugIdIdentifier=`sentry-dbid-7f469d95-a17a-470b-8bc7-b03f58b01d1e`)}catch{}})();import{P as withSentry}from"./DtHyrVsd.js";import{t as useQuery}from"./CBc86eEL.js";import{pt as UserBannerType,zn as queryOptions}from"./DLXHsuQR.js";import{s as fetchUserBannersFn}from"./QsWP-mnB.js";import{n as useHydrated}from"./CLbsVqkW.js";var captureError=(e,t,n)=>{withSentry(r=>{r.captureException(e,{tags:{component:t},extra:n})})},userBannersQueryOpts=queryOptions({queryKey:[`user-banners`],queryFn:()=>fetchUserBannersFn()}),NO_BANNERS=[],useUserBanners=()=>{let e=useHydrated(),{data:t}=useQuery(userBannersQueryOpts);return e?t===void 0?NO_BANNERS:t:NO_BANNERS},isFeaturedBanner=e=>e.type===UserBannerType.FeaturedItem,isOnboardingBanner=e=>e.type===UserBannerType.OnboardingPlayer,isBannerOnPage=(e,t)=>
1!e.page_id||e.page_id===t,upsertBanner=(e,t)=>e.some(e=>e.id===t.id)?e.map(e=>e.id===t.id?{...e,...t}:e):[...e,t];export{useUserBanners as a,upsertBanner as i,isFeaturedBanner as n,userBannersQueryOpts as o,isOnboardingBanner as r,captureError as s,isBannerOnPage as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.