1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3791],{9526:(e,t,r)=>{r.d(t,{StoryPublishPending:()=>o});var s=r(95155),i=r(52619),n=r.n(i),l=r(20063),a=r(12115);let c=[2e3,5e3,1e4];function o(e){let{path:t}=e,r=(0,l.useRouter)(),[i,o]=(0,a.useState)(0),u=t.startsWith("/")?t:`/${t}`;return((0,a.useEffect)(()=>{let e=Date.now(),t=window.setInterval(()=>{o(Date.now()-e)},500);return()=>window.clearInterval(t)},[]),(0,a.useEffect)(()=>{let e,t=!1,s=0,i=Date.now(),n=()=>{if(t||Date.now()-i>=6e4)return;let l=c[Math.min(s,c.length-1)]??1e4;e=window.setTimeout(()=>{if(!t){if(s+=1,r.refresh(),s>=c.length)return void window.location.replace(u);n()}},l)};return n(),()=>{t=!0,null!=e&&window.clearTimeout(e)}},[u,r]),i>=6e4)?(0,s.jsxs)("main",{className:"container-main py-16 text-center",children:[(0,s.jsx)("h1",{className:"text-2xl font-bold",children:"Article not available"}),(0,s.jsx)("p",{className:"mt-3 text-tribune-gray",children:"We could not find this story. It may have been unpublished or the link may be incorrect."}),(0,s.jsx)("p",{className:"mt-6",children:(0,s.jsx)(n(),{href:"/",className:"font-semibold text-tribune-red underline",children:"Back to Daily Tribune"})})]}):(0,s.jsxs)("main",{className:"container-main py-16 text-center",children:[(0,s.jsx)("p",{className:"text-sm font-semibold uppercase tracking-wide text-tribune-red",children:"Publishing"}),(0,s.jsx)("h1",{className:"mt-3 text-2xl font-bold",children:"Getting this story readyâ¦"}),(0,s.jsx)("p",{className:"mt-3 text-tribune-gray",children:"This article was just published. Hang tight â it will appear automatically in a moment."}),(0,s.jsx)("p",{className:"mt-8 text-sm text-tribune-gray","aria-live":"polite",children:"Checking againâ¦"})]})}},15319:(e,t,r)=>{r.d(t,{SuggestedArticles:()=>d});var s=r(95155),i=r(12115),n=r(69412),l=r(40657),a=r(70884),c=r(28910),o=r(55578);function u(e){let{story:t}=e,r=(0,n.dA)(t,120);return(0,s.jsxs)("article",{className:"group",children:[(0,s.jsxs)(o.RecircStoryLink,{story:t,recircModule:"suggested",children:[(0,s.jsx)("div",{className:"relative aspect-video w-full overflow-hidden rounded-sm bg-tribune-surface",children:(0,s.jsx)(c.Dm,{story:t,width:400,aspectRatio:l.H.card16x9,fill:!0,className:"object-cover transition-transform duration-300 group-hover:scale-[1.03]",sizes:"(max-width: 768px) 50vw, 320px"})}),(0,s.jsx)(c.gb,{story:t,linked:!1}),(0,s.jsx)("h3",{className:"story-headline mt-1.5 text-sm font-bold leading-snug line-clamp-3 sm:text-[15px]",children:t.headline}),r?(0,s.jsx)("p",{className:"mt-1.5 text-sm leading-relaxed text-tribune-gray line-clamp-2",children:r}):null]}),(0,s.jsx)("div",{className:"mt-1",children:(0,s.jsx)(c.ni,{story:t})})]})}function d(e){let{storySlug:t,initialStories:r,initialHasMore:n,initialSectionOffset:l,initialLatestOffset:c,pinnedExcludeIds:o=[],id:d}=e,[h,m]=(0,i.useState)(r),[f,g]=(0,i.useState)(n),[x,y]=(0,i.useState)(l),[p,b]=(0,i.useState)(c),[w,j]=(0,i.useState)(!1),[_,v]=(0,i.useState)(null);if(0===h.length&&!f)return null;async function N(){j(!0),v(null);try{let e=[...new Set([...o,...h.map(e=>e.id)])].join(","),r=new URLSearchParams({slug:t,sectionOffset:String(x),latestOffset:String(p),exclude:e}),s=await fetch(`/api/suggested-stories?${r.toString()}`);if(!s.ok)throw Error("Failed to load more articles");let i=await s.json();m(e=>[...e,...i.stories]),g(!!i.hasMore),y(i.sectionOffset),b(i.latestOffset)}catch{v("Could not load more articles. Please try again.")}finally{j(!1)}}return 0===h.length?f?(0,s.jsxs)("aside",{id:d,className:"mx-auto mt-12 max-w-5xl border-t border-tribune-border pt-8",children:[(0,s.jsx)(a.w,{children:"Suggested Articles"}),(0,s.jsx)("div",{className:"mt-8 text-center",children:(0,s.jsx)("button",{type:"button",onClick:N,disabled:w,className:"btn-outline disabled:cursor-not-allowed disabled:opacity-60",children:w?"Loadingâ¦":"Load more"})})]}):null:(0,s.jsxs)("aside",{id:d,className:"mx-auto mt-12 max-w-5xl border-t border-tribune-border pt-8",children:[(0,s.jsx)(a.w,{children:"Suggested Articles"}),(0,s.jsx)("div",{className:"mt-5 grid gap-6 sm:grid-cols-2 lg:grid-cols-3",children:h.map(e=>(0,s.jsx)(u,{story:e},e.id))}),f?(0,s.jsxs)("div",{className:"mt-8 text-center",children:[(0,s.jsx)("button",{type:"button",onClick:N,disabled:w,className:"btn-outline disabled:cursor-not-allowed disabled:opacity-60",children:w?"Loadingâ¦":"Load more"}),_?(0,s.jsx)("p",{className:"mt-3 text-sm text-tribune-gray",children:_}):null]}):null]})}},97070:(e,t,r)=>{r.d(t,{ArticleInfiniteScroll:()=>h});var s=r(95155),i=r(67909),n=r(12115),l=r(71048),a=r(55578),c=r(78961),o=r(9937);let u=(0,i.default)(()=>r.e(525).then(r.bind(r,10525)).then(e=>
1e.StreamStoryArticle),{loadableGenerated:{webpack:()=>[10525]},ssr:!1});async function d(e,t){let r=new URLSearchParams;e.id&&r.set("id",e.id),e.slug&&r.set("slug",e.slug),t.length>0&&r.set("exclude",t.slice(0,24).join(","));let s=await fetch(`/api/article-stream?${r.toString()}`,{credentials:"same-origin"});return s.ok?await s.json():null}function h(e){let{seedStoryId:t,seedPath:r,seedHeadline:i,initialQueue:h,discovery:m}=e,[f,g]=(0,n.useState)([]),[x,y]=(0,n.useState)(!1),[p,b]=(0,n.useState)(!1),[w,j]=(0,n.useState)(!1),[_,v]=(0,n.useState)(0),N=(0,n.useRef)([]),S=(0,n.useRef)(new Set([t])),k=(0,n.useRef)(new Set),R=(0,n.useRef)(new Set),L=(0,n.useRef)(!1),A=(0,n.useRef)(t),$=(0,n.useRef)(0),M=(0,n.useRef)(null),H=(0,n.useRef)(!1),E=(0,n.useRef)(!1),T=(0,n.useRef)(null),C=(0,n.useRef)(new Set),P=(0,n.useRef)(!1);(0,n.useEffect)(()=>{let e=(0,o.hB)();E.current=e,j(e)},[]),(0,n.useEffect)(()=>{let e=(0,c.Kp)(t),s=new Set([t]);e&&s.add(e),R.current=new Set((0,c.j2)(t)),S.current=new Set(s);let i=r.replace(/^\/+|\/+$/g,"");k.current=new Set(i?[i]:[]);let n=h.filter(e=>
1{if(!e?.id||!e.slug||s.has(e.id))return!1;let t=e.slug.replace(/^\/+|\/+$/g,"");return!(t&&k.current.has(t))&&!R.current.has(e.id)}),l=h.filter(e=>{if(!e?.id||!e.slug||s.has(e.id))return!1;let t=e.slug.replace(/^\/+|\/+$/g,"");return!(t&&k.current.has(t))});N.current=(n.length>0?n:l).slice(0,12),P.current=!0,H.current=!1,b(!1),v(e=>e+1)},[h,r,t]);let I=(0,n.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[...N.current];for(let r of e){if(t.length>=12)break;if(!r?.id||!r.slug||S.current.has(r.id)||R.current.has(r.id)||t.some(e=>e.id===r.id))continue;let e=r.slug.replace(/^\/+|\/+$/g,"");e&&(k.current.has(e)||t.some(t=>t.slug.replace(/^\/+|\/+$/g,"")===e))||t.push(r)}N.current=t},[]),D=(0,n.useCallback)(async()=>{if(!P.current||E.current||L.current||H.current)return;if($.current>=8){H.current=!0,b(!0);return}let e=N.current.find(e=>!S.current.has(e.id));if(!e){H.current=!0,b(!0);return}L.current=!0,y(!0);let t=e.slug?.replace(/^\/+|\/+$/g,"")??"";N.current=N.current.filter(t=>t.id!==e.id);let r=!1;try{let s=[...new Set([e.id,...S.current,...R.current])].slice(0,24),i=await d(e,s);if(!i?.story?.id)return;if(S.current.has(i.story.id)&&i.story.id!==e.id)return void I(i.related);let n=i.story.slug?.replace(/^\/+|\/+$/g,"")??"";if(n&&k.current.has(n)&&i.story.id!==e.id)return void I(i.related);S.current.add(e.id),S.current.add(i.story.id),t&&k.current.add(t),n&&k.current.add(n),$.current+=1,r=!0,g(e=>[...e,{story:i.story,path:i.path||`/${i.story.slug}`}]),I(i.related),$.current>=8&&(H.current=!0,b(!0))}catch{}finally{L.current=!1,y(!1),r||H.current||E.current||D()}},[I]);if((0,n.useEffect)(()=>{if(w||p)return;let e=M.current;if(!e)return;let t=new IntersectionObserver(e=>{let[t]=e;t?.isIntersecting&&D()},{rootMargin:"200px 0px"});return t.observe(e),()=>t.disconnect()},[w,p,D,f.length,_]),(0,n.useEffect)(()=>{if(w)return;let e=document.querySelectorAll("article[data-story-id]");if(0===e.length)return;let s=new Map,n=()=>{null!=T.current&&(window.clearTimeout(T.current),T.current=null)},a=new IntersectionObserver(a=>{for(let e of a){let t=e.target.getAttribute("data-story-id");t&&s.set(t,e.isIntersecting?e.intersectionRatio:0)}let c=t,o=0;for(let[e,t]of s)t>o&&(o=t,c=e);if(o<.35||c===A.current)return;A.current=c,n();let u=Array.from(e).find(e=>e.getAttribute("data-story-id")===c),d=u?.getAttribute("data-story-path")||(c===t?r:""),h=u?.getAttribute("data-story-headline")||(c===t?i:document.title);if(h&&(document.title=h),c===t){(0,l.XF)({page_type:"story",story_id:t,story_headline:i}),(0,l.MF)({pagePath:r,pageLocation:window.location.href,pageTitle:i});return}let m=f.find(e=>e.story.id===c);if(m&&d){if(C.current.has(d)){let e=m.story.sections?.[0];(0,l.XF)({page_type:"story",story_id:m.story.id,story_headline:m.story.headline,author_names:m.story["author-name"]?[m.story["author-name"]]:void 0,section_slug:e?.slug,section_name:e?.["display-name"]?.trim()||e?.name}),(0,l.MF)({pagePath:d,pageLocation:`${window.location.origin}${d}`,pageTitle:m.story.headline});return}T.current=window.setTimeout(()=>{A.current===c&&(C.current.add(d),function(e,t){if(!window.gtag)return;let r=t.sections?.[0],s={page_type:"story",story_id:t.id,story_headline:t.headline,author_names:t["author-name"]?[t["author-name"]]:void 0,section_slug:r?.slug,section_name:r?.["display-name"]?.trim()||r?.name};(0,l.XF)(s),(0,l.UA)({pagePath:e,pageLocation:`${window.location.origin}${e}`,pageTitle:t.headline,meta:s})}(d,m.story))},1500)}},{threshold:[.25,.4,.55,.7]});return e.forEach(e=>a.observe(e)),()=>{n(),a.disconnect()}},[f,w,i,r,t]),w)return null;let F=m&&(m.sectionHref||m.authorHref||m.topics&&m.topics.length>0);return(0,s.jsxs)("div",{className:"article-infinite-scroll",children:[f.map((e,t)=>{let{story:r}=e;return(0,s.jsx)("div",{className:"article-infinite-scroll__item",children:(0,s.jsx)(u,{story:r,nextStory:f[t+1]?.story??null,showAds:t<=0})},r.id)}),p?null:(0,s.jsx)("div",{ref:M,className:"article-infinite-scroll__sentinel","aria-hidden":!0}),x?(0,s.jsx)("p",{className:"article-infinite-scroll__status mx-auto max-w-[680px] py-8 text-center text-sm text-tribune-muted",role:"status",children:"Loading next storyâ¦"}):null,p?(0,s.jsxs)("nav",{className:"article-stream-discovery mx-auto mt-10 max-w-[680px] border-t border-tribune-border pt-8","aria-label":"Keep exploring",children:[(0,s.jsx)("p",{className:"article-stream-discovery__kicker",children:"Keep exploring"}),(0,s.jsxs)("ul",{className:"article-stream-discovery__list",children:[(0,s.jsx)("li",{children:(0,s.jsx)("a",{href:"#suggested-articles",className:"article-stream-discovery__link",onClick:()=>(0,l.c5)("recirc_click",{module:"stream_discovery_suggested",destination_path:"#suggested-articles"}),children:"More stories"})}),F&&m.sectionHref&&m.sectionLabel?(0,s.jsx)("li",{children:(0,s.jsxs)(a.RecircHrefLink,{href:m.sectionHref,recircModule:"stream_discovery_section",className:"article-stream-discovery__link",children:["More in ",m.sectionLabel]})}):null,F&&m.authorHref&&m.authorLabel?(0,s.jsx)("li",{children:(0,s.jsxs)(a.RecircHrefLink,{href:m.authorHref,recircModule:"stream_discovery_author",className:"article-stream-discovery__link",children:["More by ",m.authorLabel]})}):null,F?(m.topics??[]).slice(0,3).map(e=>(0,s.jsx)("li",{children:(0,s.jsxs)(a.RecircHrefLink,{href:e.href,recircModule:"stream_discovery_topic",className:"article-stream-discovery__link",children:["Topic: ",e.label]})},e.href)):null,(0,s.jsx)("li",{children:(0,s.jsx)(a.RecircHrefLink,{href:"/latest",recircModule:"stream_discovery_latest",className:"article-stream-discovery__link",children:"Latest headlines"})})]})]}):null]})}}}]); 2//# sourceMappingURL=3791-f9d68a4ac0ef4dca.js.map
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.