1import{u as C,aV as I,aW as M,ay as b,aX as $,al as H,r as E,aY as O,j as e,m as F,aA as z,aB as q,aC as D,aD as W,S as B,aE as U,B as P,an as J,ao as S,aF as K,aG as k,aH as Q,aI as Y,ar as X,as as Z,at as G,aJ as ee,aZ as te,W as y,aL as ae,aM as se,aN as re,aO as ie,aP as ne,D as le,M as R,aQ as de,aK as oe,c as ce,aR as me,e as xe,aS as he,z as ue,aT as T,aU as ge,a_ as pe}from"./index-BgbqYyaj.js";function A(d){const m=d?.blocks;return Array.isArray(m)?m.find(s=>s?.type==="yh_video"&&typeof s?.videoId=="string")?.videoId??null:null}const ye=d=>T({queryKey:["internal-links",d],queryFn:()=>ge({data:{articleId:d}}),staleTime:1800*1e3}),fe=d=>T({queryKey:["latest-scene",d],queryFn:()=>pe({data:{excludeId:d,limit:6}}),staleTime:300*1e3});function je({slug:d,lorem:m=!1}){const{data:f}=C(I(d)),s=m?M(f):f,{data:L}=b($),t=s.article,{data:j}=b(ye(t.id)),{data:_}=b(fe(t.id)),o=t.categories,c=t.authors,g=o?.accent_color||"#0033CC",V=H(t.body);E.useEffect(()=>{if(m)return;O("article",t.id);const a=window.gtag;typeof a=="function"&&a("event","article_view",{article_id:t.id,article_title:t.title,article_category:o?.name??void 0,article_author:c?.name??void 0,page_location:window.location.href})},[m,t.id,t.title,o?.name,c?.name]);const w=t.published_at?new Date(t.published_at).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric",timeZone:"UTC"}):null,v=[{name:"Home",href:"/"},{name:"The Scene",href:"/scene.html"},...o?[{name:o.name,href:`/${o.slug}.html`}]:[],{name:t.title}],N=v.filter((a,r)=>r===0||a.name.toLowerCase()!==v[r-1].name.toLowerCase()),p=`/scene/${d}.html`;return e.jsxs(e.Fragment,{children:[!m&&e.jsxs(e.Fragment,{children:[e.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(F(N))}}),e.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(z({url:p,headline:t.title,description:t.excerpt,image:t.hero_image_url,imageAlt:t.hero_image_alt,datePublished:t.published_at,dateModified:q(t.published_at,t.content_updated_at),authorName:c?.name,authorUrl:c?.slug?`/authors/${c.slug}`:null,section:o?.name,about:(s.talent??[]).map(a=>({name:a.name,url:`/talent/${a.slug}`})),mentions:(Array.isArray(t.tags_raw)?t.tags_raw:[]).filter(a=>typeof a=="string"&&a.trim().length>0).map(a=>({name:a}))}))}}),(()=>{const a=D(W(t.body),p);return a?e.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(a)}}):null})()]}),e.jsx(B,{}),e.jsx(U,{targetSelector:"article[data-yh-article]"}),e.jsxs("main",{children:[e.jsx("section",{className:"border-b border-foreground
1/10 bg-background",children:e.jsx("div",{className:"mx-auto max-w-[1400px] px-4 md:px-6 py-3",children:e.jsx(P,{items:N})})}),e.jsx("section",{className:"relative bg-secondary border-b-8",style:{borderColor:g},children:e.jsx("div",{className:"mx-auto max-w-[1400px] px-4 md:px-6 lg:pl-24 xl:pl-28 py-10 md:py-12",children:e.jsxs("div",{className:"grid gap-8 lg:grid-cols-[1.1fr_1fr] items-center",children:[e.jsxs("div",{children:[o&&e.jsx("div",{className:"mb-4",children:e.jsx(J,{name:o.name,color:o.accent_color,bold:!0})}),e.jsx("h1",{className:"yh-headline text-3xl md:text-5xl lg:text-6xl leading-[1.05]",children:t.title}),t.subtitle&&e.jsx("p",{className:"mt-5 text-xl md:text-2xl leading-snug text-foreground/80 font-serif border-l-4 pl-4",style:{borderColor:g},children:t.subtitle}),e.jsxs("div",{className:"mt-6 flex items-center gap-3 flex-wrap yh-eyebrow text-muted-foreground",children:[null,t.import_flags?.ai_generated?e.jsx("span",{className:"text-foreground",children:"By The YH Wire"}):c?.name&&e.jsxs("span",{className:"text-foreground",children:["By"," ",c?.slug?e.jsx("a",{href:`/authors/${c.slug}`,className:"hover:text-hotpink underline-offset-2 hover:underline",children:c.name}):c.name]}),w&&e.jsxs(e.Fragment,{children:[e.jsx("span",{"aria-hidden":!0,children:" · "}),e.jsx("time",{dateTime:t.published_at??void 0,children:w})]}),e.jsx("span",{"aria-hidden":!0,children:" · "}),e.jsxs("span",{children:[V," min read"]})]}),s.talent&&s.talent.length>0&&e.jsxs("div",{className:"mt-5 flex items-center gap-2 flex-wrap",children:[e.jsx("span",{className:"yh-eyebrow text-[10px] text-muted-foreground mr-1",children:"Featuring"}),s.talent.slice(0,6).map(a=>e.jsx("a",{href:`/talent/${a.slug}`,className:"yh-eyebrow text-xs border border-foreground px-2.5 py-1 hover:bg-foreground hover:text-background transition",children:a.name},a.id))]}),e.jsx("div",{className:"mt-5 lg:hidden",children:e.jsx(S,{title:t.title,path:p,compact:!0})})]}),t.hero_image_url&&e.jsxs("figure",{className:"relative yh-photo-pop",children:[e.jsx(K,{src:t.hero_image_url,alt:t.hero_image_alt||t.title}),t.hero_image_credit&&e.jsx("figcaption",{className:"mt-3 space-y-1 text-xs text-muted-foreground",children:e.jsx("span",{className:"block yh-eyebrow text-[10px] tracking-wider",children:t.import_flags?.ai_generated?"The YH Wire":`Photo: ${t.hero_image_credit.replace(/^\s*photo\s*:\s*/i,"")}`})})]})]})})}),e.jsx("div",{className:"mx-auto max-w-[1400px] px-4 md:px-6",children:e.jsx(k,{id:"article_top_leaderboard",adId:"1335433e-3f83-4df3-84e9-6fa65a941ecf",repeating:!0,size:"leaderboard",className:"my-4 md:my-6",priority:!0})}),e.jsxs("div",{className:"mx-auto grid max-w-[1400px] gap-10 xl:gap-14 px-4 md:px-6 lg:pl-24 xl:pl-28 py-6 md:py-8 lg:grid-cols-[minmax(0,1fr)_320px] min-w-0",children:[e.jsxs("article",{"data-yh-article":!0,"data-yh-lightbox":!0,className:"max-w-[720px] mx-auto lg:mx-0 w-full relative min-w-0 [overflow-x:clip]",children:[e.jsx(Q,{title:t.title}),e.jsx(Y,{bullets:t.tldr_bullets}),X(t.body,t.excerpt)&&e.jsx("p",{className:"text-2xl md:text-3xl font-serif leading-snug border-l-4 pl-5 py-1 mb-8",style:{borderColor:g},children:Z(t.excerpt)}),(()=>{const r=t.import_flags?.ai_kind==="video_recap"?null:s.inlineVideo;return e.jsx(e.Fragment,{children:e.jsx("div",{className:"font-serif text-lg leading-relaxed text-foreground",children:e.jsx(G,{body:t.body,accent:g,excerpt:t.excerpt,talentLinks:L?.talent,extraLinks:j?.links,inlineVideo:r,inlineVideoEyebrow:s.inlineVideoReason==="talent"&&s.talent[0]?`More with ${s.talent[0].name}`:r?.category_name?`More ${r.category_name}`:"More to watch"})})})})(),s.talent&&s.talent.length>6&&e.jsxs("div",{className:"mt-10 border-t border-border pt-6",children:[e.jsx("p",{className:"yh-eyebrow text-muted-foreground mb-3",children:"Also Featuring"}),e.jsx("div",{className:"flex flex-wrap gap-2",children:s.talent.slice(6).map(a=>e.jsx("a",{href:`/talent/${a.slug}`,className:"yh-eyebrow border border-foreground px-3 py-1 hover:bg-foreground hover:text-background transition",children:a.name},a.id))})]}),e.jsx("div",{className:"mt-10 pt-6 border-t border-border",children:e.jsx(S,{title:t.title,path:p,imageUrl:t.hero_image_url,
1imageAlt:t.hero_image_alt||t.title,description:t.excerpt})}),e.jsx(ee,{items:(j?.related??[]).filter(a=>!s.related.slice(0,3).some(r=>`/scene/${r.slug}.html`===a.href)&&!s.relatedVideos.slice(0,3).some(r=>a.href.endsWith(`/${r.slug}.html`)))}),(()=>{const a=s.talent[0],r=s.related.filter(x=>x.id!==t.id&&!!x.hero_image_url).slice(0,3),n=new Set;s.inlineVideo&&n.add(s.inlineVideo.id);const i=A(t.body);i&&n.add(i);const l=s.relatedVideos.find(x=>!n.has(x.id))||null;if(r.length===0&&!l)return null;const h=a?.name??null,u=l?`/videos/${l.category_slug??"interviews"}/${l.subcategory_slug??"interviews"}/${l.slug}.html`:void 0;return e.jsx(te,{articles:r,video:l,topicLabel:h,videoHref:u})})(),e.jsx(y,{minHeight:500,children:(()=>{const a=Array.isArray(t.tags_raw)?t.tags_raw:[],n=ae({categoryName:o?.name,tags:a,title:t.title})??"lifestyle",i=s.talent?.[0]?.name||t.title,l=se({tags:a,title:t.title,exclude:[i,"young","hollywood"]}),h=re({theme:n,subject:i,refiner:l}),{eyebrow:u,heading:x}=ie(n,i);return e.jsx(ne,{picks:h,eyebrow:u,heading:x,linkContext:{kind:"ctx",subject:i,theme:n,refiner:l}})})()})]}),e.jsx("aside",{className:"hidden lg:block",children:e.jsxs("div",{className:"sticky top-24 space-y-8",children:[e.jsx(le,{reserve:600,children:e.jsx(k,{id:"article_sidebar",adId:"b8075526-98a9-458d-a2d6-cfdc739c57fb",size:"halfpage",activeViewRefresh:!0})}),(()=>{const a=_?.items??[];if(a.length===0)return null;const r=a.filter(n=>n.id!==t.id).slice(0,6);return r.length===0?null:e.jsx(R,{quiet:!0,title:"Latest in The Scene",items:r.map(n=>({href:`/scene/${n.slug}.html`,title:n.title,eyebrow:n.category_name,image:n.hero_image_url}))})})(),(()=>{const a=new Set(s.related.map(i=>i.id)),r=new Set((_?.items??[]).map(i=>i.id)),n=s.mostRead.filter(i=>i.id!==t.id&&!a.has(i.id)&&!r.has(i.id)).slice(0,5);return n.length===0?null:e.jsx(R,{quiet:!0,title:"Most Read in The Scene",items:n.map(i=>({href:`/scene/${i.slug}.html`,title:i.title,eyebrow:i.category_name,image:i.hero_image_url}))})})()]})})]}),e.jsx("div",{className:"yh-divider-grad mx-auto max-w-[1400px] my-2"}),e.jsx(y,{minHeight:500,children:(()=>{const a=s.related.filter(r=>r.id!==t.id);return a.length===0?null:e.jsx("section",{className:"bg-neon text-neon-foreground border-t-4 md:border-t-8 border-foreground mt-12",children:e.jsxs("div",{className:"mx-auto max-w-[1400px] px-4 md:px-6 py-10 md:py-14",children:[e.jsxs("div",{className:"flex items-end justify-between mb-8 border-b-2 border-foreground
1/30 pb-4",children:[e.jsxs("div",{children:[e.jsx("p",{className:"yh-eyebrow text-xs text-foreground/60 mb-1",children:"Keep Reading"}),e.jsx("h2",{className:"yh-headline text-3xl md:text-5xl text-foreground",children:e.jsx("span",{className:"yh-underline-pink",children:"READ NEXT"})})]}),e.jsx("a",{href:"/scene.html",className:"yh-eyebrow text-foreground/70 hover:text-foreground",children:"More from The Scene â"})]}),e.jsx("div",{className:"grid gap-6 sm:grid-cols-2 lg:grid-cols-4",children:a.map(r=>e.jsx(de,{article:r},r.id))})]})})})()}),e.jsx(y,{minHeight:500,children:(()=>{const a=A(t.body),r=s.relatedVideos.filter(u=>u.id!==a).slice(3,11);if(r.length===0)return null;const n=s.talent[0],i=s.inlineVideoReason==="talent",l=r[0]?.category_name,h=i&&n?`MORE WITH ${n.name.toUpperCase()}`:l?`MORE ${l.toUpperCase()} VIDEOS`:"MORE TO WATCH";return e.jsx(oe,{videos:r,variant:"main",eyebrow:"Watch",heading:h,ctaHref:i&&n?`/talent/${n.slug}`:"/videos.html",ctaLabel:i&&n?`All ${n.name}`:"All Videos"})})()}),e.jsx(y,{minHeight:500,children:(()=>{const a=new Set(s.related.map(l=>l.id)),r=new Set(s.mostRead.filter(l=>l.id!==t.id&&!a.has(l.id)).slice(0,5).map(l=>l.id)),n=new Set([t.id,...a,...r]),i=s.archive.filter(l=>!n.has(l.id));return i.length===0?null:e.jsx("section",{className:"bg-background border-t-4 md:border-t-8 border-foreground",children:e.jsxs("div",{className:"mx-auto max-w-[1400px] px-4 md:px-6 py-10 md:py-14",children:[e.jsx("div",{className:"flex items-end justify-between mb-8 border-b-2 border-foreground
1/20 pb-4",children:e.jsxs("div",{children:[e.jsx("p",{className:"yh-eyebrow text-xs text-muted-foreground mb-1",children:"Evergreen reads"}),e.jsx("h2",{className:"yh-headline text-3xl md:text-5xl",children:e.jsx("span",{className:"yh-underline-pink",children:"FROM THE ARCHIVE"})})]})}),e.jsx("div",{className:"-mx-4 md:mx-0 overflow-x-auto",children:e.jsx("div",{className:"flex gap-4 px-4 md:px-0 md:grid md:grid-cols-5 md:gap-6",children:i.map(l=>e.jsx("div",{className:"w-[260px] shrink-0 md:w-auto md:shrink md:min-w-0",children:e.jsx(ce,{article:l,size:"sm"})},l.id))})})]})})})()}),e.jsx(me,{})]}),e.jsx(xe,{}),e.jsx(he,{adId:"86b344ee-ca22-4b22-859a-2c773a4ea9e1"})]})}const _e=({error:d,reset:m})=>e.jsx(ue,{error:d,reset:m});export{je as ArticleView,_e as errorComponent};
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.