PageSourceSearch

https://www.ewn.co.za/_nuxt/Dgad-oSp.js

js ewn.co.za collected 2026-10-02 02:32:52 UTC 46,419 bytes, 52 lines download raw bytes

1import{W as wt,s as ae,i as H,c as m,o as a,a as l,b as h,n as e,y as J,z as $t,T as ce,B as p,F as O,l as B,m as Tt,_ as Q,j as W,u as Dt,X as St,k as q,Y as _e,Z as me,M as ge,t as N,$ as Pt,A as f,p as ne,w as X,a0 as At,a1 as Y,V as Fe,v as Ke,x as et,a2 as pe,a3 as ve,h as se,N as D,P as fe,a4 as tt,H as nt,a5 as G,a6 as it,Q as he,a7 as ie,I as at,d as Nt,D as st,a8 as It,a9 as Ut,aa as te,ab as Qe,ac as Ct,ad as Et,f as Me,ae as Rt,q as Lt,af as lt,G as re,ag as zt,ah as Ft,ai as Mt,aj as Wt,ak as qt,al as Ot,am as Vt,an as jt}from"./CBZx7rdy.js";import{_ as ye}from"./CI-PKlKp.js";import{_ as ot}from"./Ci_ou4H2.js";import{_ as We,u as rt,a as qe,b as ct,c as dt,d as ut,e as mt,f as pt,g as Gt,h as Ht,i as Bt,j as Qt}from"./Go8_NFwl.js";import{_ as _t}from"./C6lDHqda.js";import{U as Oe,t as Re}from"./DNPHahWu.js";import{u as gt}from"./DTmifBnS.js";import{_ as Zt,a as Xt,b as Jt}from"./BZzmG6MK.js";import{_ as Yt}from"./BO2MJVnM.js";import{_ as Kt}from"./DRbktCdo.js";import{_ as en}from"./DB0RT30T.js";import{u as tn,a as nn,_ as an,b as sn}from"./cMELAZzf.js";import{d as ln}from"./DYRToSYT.js";const vt={id:"",open:!1,available:!1},on=()=>wt("timeline",()=>vt),be=()=>{const i=on();ae(()=>i.value=vt);const n=()=>{i.value.open=!1},o=()=>{i.value.open=!0,window.scrollTo({top:0,behavior:"smooth"})},c=s=>{i.value.available=s};return{timelineState:i,closeTimeline:n,openTimeline:o,isTimelineAvailable:c,resetTimeline:()=>{i.value.id="",n(),c(!1)}}},rn={class:"flex flex-col sm:flex-row items-start sm:items-center justify-between py-[22px] px-8 bg-surface-03 rounded-[10px] gap-4 lg:gap-2 lg:hidden"},ft=H({__name:"TimelineBanner",setup(i){const{openTimeline:n}=be();return(o,c)=>{const t=We;return a(),m("div",rn,[c[1]||(c[1]=l("div",null,[l("h6",{class:"text-content-primary font-bold text-lg"},"Get the whole picture 💡"),l("p",{class:"text-content-secondary text-sm font-medium"}," Take a look at the topic timeline for all related articles. ")],-1)),h(t,{"additional-classes":"h-10 font-bold","disable-hover-effect":!0,onOpenTimeline:c[0]||(c[0]=s=>e(n)())})])}}}),cn={key:0},dn={class:"flex snap-x gap-4 overflow-x-scroll overflow-y-hidden scroll-smooth [&::-webkit-scrollbar]:h-1 [&::-webkit-scrollbar]:bg-transparent [&::-webkit-scrollbar-thumb]:bg-gray-400 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-transparent"},un={class:"flex -mx-2 -mb-4"},ht=H({__name:"TeaserTrending",props:{excludeArticleId:{}},async setup(i){let n,o;const c=i,{result:t}=([n,o]=J(()=>$t({first:12,tab:ce.Trending,pinBreakingNews:!0,exclude:c.excludeArticleId})),n=await n,o(),n);return(s,v)=>{var g,b,$;const d=Tt;return(b=(g=e(t))==null?void 0:g.result)!=null&&b.length?(a(),m("div",cn,[v[0]||(v[0]=l("div",{class:"flex items-center lg:justify-center lg:mb-responsive-m lg:mt-[30px]"},[l("h4",{class:"font-bold py-6 lg:py-0 text-lg"},"Trending News"),l("span",{class:"border-b border-solid border-surface-03 flex-1 hidden lg:block"})],-1)),l("div",dn,[l("ul",un,[(a(!0),m(O,null,B(($=e(t))==null?void 0:$.result,T=>(a(),m("li",{key:T.id,class:"w-1/5 md:w-1/4 flex-shrink-0 px-2"},[h(d,{teaser:T,class:"border-b-0","hide-tags":!0,"small-teasers":!0},null,8,["teaser"])]))),128))])])])):p("",!0)}}}),mn={},pn={class:"col-span-6 md:col-span-8 space-y-4"};function _n(i,n){return a(),m(O,null,B(3,o=>l("div",{key:o,class:"grid grid-cols-12 gap-2 pb-8 last:pb-2 animate-pulse relative"},[n[0]||(n[0]=l("span",{class:"bg-surface-05 h-3 rounded-md col-span-3"},null,-1)),n[1]||(n[1]=l("div",{class:"px-2 flex items-center flex-col col-span-1 mt-1"},[l("span",{class:"w-2 h-2 rounded-full bg-surface-04 block aspect-square"}),l("span",{class:"w-[1px] h-full bg-surface-04 block absolute top-1 bottom-0"})],-1)),l("div",pn,[(a(),m(O,null,B(3,c=>l("div",{key:c,class:"bg-surface-05 h-6 rounded-md"})),64))])])),64)}const gn=Q(mn,[["render",_n]]),vn={class:"flex justify-between items-center"},fn={class:"text-lg font-bold"},hn={key:0},yn={key:1,class:"mt-8"},bn={key:0,class:"relative overflow-hidden"},kn={key:0,class:"text-xs col-span-3 text-right"},xn={class:"px-2 flex items-center flex-col mt-1"},wn={class:"text-sm col-span-8 line-clamp-4"},$n={key:3,class:"bg-gradient-to-t from-white to-transparent h-20 w-full absolute bottom-0 hidden lg:block"},Tn=H({__name:"TeaserTimelineGroup",props:{timeline:{},currentArticleId:{}},async setup(i){let n,o;const{closeTimeline:c}=be(),t=W(),s=W(),{arrivedState:v}=Dt(t),d=i,g=W(!0),{result:b,loading:$,error:T,initialLoading:P,initialError:R,initialResult:k,fetchMore:_,load:x}=([n,o]=J(()=>St({timeline:d.timeline._id,first:20,tab:ce.AllNews})),n=await n,o(),n),S=q(()=>{var r;return(r=k.value)==null?void 0:r.result}),L=q(()=>[...S.value?S.value:[],...b.value?b.value.result:[]]),F=q(()=>{var r,u,w;return((u=(r=k.value)==null?void 0:r.pageInfo)==null?void 0:u.hasNextPage)&&!b.value||((w=b.value)==null?void 0:w.pageInfo.hasNextPage)}),U=W(!1);function M(r){r&&(U.value=r.scrollHeight===r.scrollTop+r.clientHeight)}return _e(()=>{s.value&&s.value.scrollHeight>600&&s.value.removeEventListener("scroll",()=>{M(s.value)})}),me(()=>s.value,r=>{r&&(r.scrollHeight<=600?U.value=!0:r.addEventListener("scroll",()=>{M(r)}))}),me(v,()=>{var r,u,w,C;!v.bottom||!F.value||$.value||(g.value?(x(void 0,{after:(u=(r=k.value)==null?void 0:r.pageInfo)==null?void 0:u.endCursor,first:5,tab:ce.AllNews,timeline:d.timeline._id}),g.value=!1):_({variables:{after:(C=(w=b.value)==null?void 0:w.pageInfo)==null?void 0:C.endCursor,first:5,tab:ce.AllNews,timeline:d.timeline._id},updateQuery(I,y){if(!y.fetchMoreResult)return I;const z=I.newsArticle.articleList.items,j=y.fetchMoreResult.newsArticle.articleList.items;return y.fetchMoreResult.newsArticle.articleList.items=[...z,...j],y.fetchMoreResult}}))},{deep:!0}),(r,u)=>{const w=Pt,C=gn,I=ge("router-link");return a(),m("div",{ref_key:"el",ref:t,style:{margin:"0"},class:"fixed lg:relative inset-0 md:left-auto md:max-w-md pt-8 md:pt-1 px-4 lg:px-0 timeline-overlay overflow-y-auto overflow-x-hidden overscroll-contain"},[l("header",vn,[l("h3",fn,N(r.timeline._name),1),h(w,{class:"cursor-pointer lg:hidden",onClick:u[0]||(u[0]=y=>e(c)())})]),e(T)||e(R)?(a(),m("div",hn,"error on fetching timeline ...")):e(P)?(a(),m("div",yn,[h(C)])
1):(a(),m("div",{key:2,ref_key:"timelineList",ref:s,class:"sm:max-w-2xl mx-auto lg:overflow-y-auto overflow-x-hidden lg:max-h-[600px] relative pb-10 lg:pb-0 mt-8"},[e(L)?(a(),m("div",bn,[(a(!0),m(O,null,B(e(L),(y,z)=>(a(),f(I,{key:z,to:y.path,class:ne(["grid grid-cols-12 gap-2 pb-8 last:pb-2",{"font-bold":y.id==r.currentArticleId}])},{default:X(()=>{var j;return[(j=y.publishedAt)!=null&&j.iso8601?(a(),m("span",kn,N(("usePublishedDateTimeline"in r?r.usePublishedDateTimeline:e(At))(y.publishedAt.iso8601)),1)):p("",!0),l("div",xn,[l("span",{class:ne(["w-2 h-2 rounded-full bg-surface-04 block aspect-square",{"w-4 h-4":y.id==r.currentArticleId}])},null,2),u[1]||(u[1]=l("span",{class:"w-[1px] h-full bg-surface-04 block absolute top-1 bottom-0"},null,-1))]),l("div",wn,N(y.headline),1)]}),_:2},1032,["to","class"]))),128))])):p("",!0),e($)?(a(),f(C,{key:1})):p("",!0)],512)),e(L)&&!e(U)?(a(),m("div",$n)):p("",!0)],512)}}}),yt=Q(Tn,[["__scopeId","data-v-47f0d524"]]),bt=(i,n={})=>{const o=Y(),{publisherName:c="EWN",baseUrl:t="https://www.ewn.co.za"}=n,s=()=>{var b,$,T;if(!i.value)return null;const g="headerMedia"in i.value?(b=i.value.headerMedia)==null?void 0:b.headerImage:i.value.headerImage;return{"@context":"https://schema.org","@type":"NewsArticle",headline:i.value.headline,...i.value.subline&&{description:i.value.subline},...(g==null?void 0:g.original)&&{image:{"@type":"ImageObject",url:g.original,...g.imageDescription&&{caption:g.imageDescription}}},...(($=i.value.publishedAt)==null?void 0:$.unixSeconds)&&{datePublished:new Date(i.value.publishedAt.unixSeconds*1e3).toISOString()},...((T=i.value.authorDetails)==null?void 0:T.fullName)&&{author:{"@type":"Person",name:i.value.authorDetails.fullName,url:`${t}/author/${i.value.authorDetails.fullName}`}},publisher:{"@type":"Organization",name:c,logo:{"@type":"ImageObject",url:"https://www.ewn.co.za/images/fallback_1200x630.jpg"}},mainEntityOfPage:{"@type":"WebPage","@id":`${t}${o.path}`},...i.value.location&&{contentLocation:{"@type":"Place",name:i.value.location}},...i.value.tags&&i.value.tags.length>0&&{keywords:i.value.tags.join(", ")},...i.value.topics&&i.value.topics.length>0&&{about:i.value.topics.map(P=>({"@type":"Thing",name:P}))}}};return{generateStructuredData:s,applyStructuredData:()=>{Fe(()=>{const d=s();return d?{script:[{type:"application/ld+json",children:JSON.stringify(d)}]}:{}})}}},Dn=fe(he),Sn={class:"w-full"},Pn={key:2,class:"flex items-start mt-4"},An={class:"hidden lg:block w-[300px] shrink-0 overflow-x-hidden"},Nn={class:"min-w-0 space-y-4 sm:space-y-6 py-4 sm:px-4 sm:pt-0 lg:mx-[10px] text-content-primary max-w-[800px] lg:max-w-[640px] mx-auto overflow-x-hidden"},In={class:"space-y-4 sm:space-y-6"},Un={class:"text-4xl sm:text-6xl tracking-tighter font-extrabold"},Cn={class:"flex items-center gap-4"},En={key:1,class:"px-4 py-1.5 rounded bg-surface-05 text-content-primary text-sm"},Rn={class:"flex flex-col text-xs"},Ln={class:"font-bold text-content-primary"},zn={key:0,class:"font-medium"},Fn={class:"text-semibold ml-auto pl-4"},Mn={key:0,class:"font-bold"},Wn={key:2,class:"w-full"},qn={key:0,class:"text-paragraph-xs font-medium text-content-secondary mt-spacing-xs"},On={class:"mt-6 flex flex-col gap-6 lg:mt-8 lg:gap-8 text-base"},Vn={class:"lg:w-[300px] shrink-0 overflow-x-hidden"},jn=H({__name:"NewsDetail",async setup(i){var x,S,L,F,U,M;let n,o;const c=Y(),{result:t,error:s,loading:v}=([n,o]=J(()=>rt(c.path)),n=await n,o(),n),{openTimeline:d,timelineState:g,isTimelineAvailable:b,resetTimeline:$}=be(),T=Ke(et),{isMobile:P}=gt(),R=T.smallerOrEqual("lg");ae(()=>{!P&&!R.value&&d()}),_e(()=>{$()}),pe(()=>{var r;(r=t.value)!=null&&r.timeline&&b(!!t.value.timeline)}),ve({...((x=t.value)==null?void 0:x.headline)&&{title:()=>t.value.headline,ogTitle:()=>t.value.headline,twitterTitle:()=>t.value.headline},...((S=t.value)==null?void 0:S.subline)&&{description:()=>t.value.subline,ogDescription:()=>t.value.subline,twitterDescription:()=>t.value.subline},...((F=(L=t.value)==null?void 0:L.authorDetails)==null?void 0:F.fullName)&&{author:()=>t.value.authorDetails.fullName},...((M=(U=t.value)==null?void 0:U.headerImage)==null?void 0:M.original)&&{ogImage:()=>{var r;return((r=t.value.headerImage)==null?void 0:r.original)+"?width=1200&height=630"},twitterImage:()=>{var r;return((r=t.value.headerImage)==null?void 0:r.original)+"?width=1200&height=900"}},ogType:"article"});const{applyStructuredData:k}=bt(t);k(),Fe({base:{target:"_blank"}});let _=1;return(r,u)=>{var le,oe,K,ee;const w=ye,C=se,I=Dn,y=ot,z=We,j=_t,we=ge("router-link"),$e=tt,Te=nt,De=qe,Se=ct,Pe=dt,Ae=ut,Ne=mt,Ie=pt,Ue=ft,Ce=ht,Ee=yt;return a(),m("div",Sn,[e(v)?(a(),f(w,{key:0})):e(s)?(a(),f(C,{key:1})):e(t)?(a(),m("div",Pn,[l("div",An,[h(I,{"slot-id":("AdUnits"in r?r.AdUnits:e(D)).articleDetail[1].id,sizes:("AdUnits"in r?r.AdUnits:e(D)).articleDetail[1].size,pos:["2"],"panel-side":"left","article-tags":e(t).tags,topic:e(t).topics&&e(t).topics[0],sentiment:e(t).sentiment,location:e(t).location},null,8,["slot-id","sizes","article-tags","topic","sentiment","location"]),h(y,{header:"Latest","exclude-article-id":e(t).id,items:3,class:"mt-10","xsmall-teasers":!0},null,8,["exclude-article-id"]),h(I,{"slot-id":("AdUnits"in r?r.AdUnits:e(D)).articleDetail[1].id,sizes:("AdUnits"in r?r.AdUnits:e(D)).articleDetail[1].size,pos:["3"],"panel-side":"left","article-tags":e(t).tags,topic:e(t).topics&&e(t).topics[0],sentiment:e(t).sentiment,location:e(t).location},null,8,["slot-id","sizes","article-tags","topic","sentiment","location"])]),l("article",Nn,[l("header",In,[l("h1",Un,N(e(t).headline),1),l("div",Cn,[e(g).available?(a(),f(z,{key:0,onOpenTimeline:u[0]||(u[0]=E=>e(d)())})):p("",!0),e(t).location?(a(),m("div",En,N(e(t).location),1)):p("",!0)]),h(we,{to:`/author/${(le=e(t).authorDetails)==null?void 0:le.fullName}`,class:"flex gap-2.5 items-center text-content-secondary text-sm"},{default:X(()=>{var E,A;return[h(j,{"author-details":e(t).authorDetails},null,8,["author-details"]),l("div",Rn,[l("p",Ln,N((E=e(t).authorDetails)==null?void 0:E.fullName),1),(A=e(t).publishedAt)!=null&&A.unixSeconds?(a(),m("span",zn,N(e(Oe)(e(t).publishedAt.unixSeconds)),1)):p("",!0)]),l("div",Fn,N(e(t).topic),1)]}),_:1},8,["to"]),e(t).subline?(a(),m("h2",Mn,N(e(t).subline),1)):p("",!0),e(t).tags?(a(),f($e,{key:1,tags:e(t).tags,max:
15},null,8,["tags"])):p("",!0),e(t).isHeaderImageVisible?(a(),m("div",Wn,[h(Te,{src:(oe=e(t))==null?void 0:oe.headerImage,alt:e(t).headline,class:"w-full aspect-video"},null,8,["src","alt"]),e(t).headerImage.imageDescription?(a(),m("p",qn,N(e(t).headerImage.imageDescription),1)):p("",!0)])):p("",!0)]),e(t).text?(a(),f(De,{key:0,content:e(t).text},null,8,["content"])):p("",!0),l("div",On,[(a(!0),m(O,null,B(e(t).teaserBlockList,(E,A)=>(a(),m(O,{key:A},[E.__typename==e(G).richText?(a(),f(Se,{key:0,content:E.markup},null,8,["content"])):p("",!0),E.__typename==e(G).quote?(a(),f(Pe,{key:1,quote:E.text},null,8,["quote"])):p("",!0),E.__typename==e(G).image?(a(),f(Ae,{key:2,"image-url":E.imagePicker.url,description:E.imageDescription},null,8,["image-url","description"])):p("",!0),E.__typename==e(G).embed?(a(),f(Ne,{key:3,content:E.embedContentItem},null,8,["content"])):p("",!0),E.__typename===e(G).brightcove?(a(),f(Ie,{key:4,"brightcove-section":E},null,8,["brightcove-section"])):p("",!0),E.__typename===e(G).ad?(a(),f(I,{key:5,"slot-id":("AdUnits"in r?r.AdUnits:e(D)).articleDetail[2].id,sizes:("AdUnits"in r?r.AdUnits:e(D)).articleDetail[2].size,pos:[`int-${(it(_)?_.value++:_++).toString()}`],"article-tags":e(t).tags,topic:e(t).topics&&e(t).topics[0],sentiment:e(t).sentiment,location:e(t).location},null,8,["slot-id","sizes","pos","article-tags","topic","sentiment","location"])):p("",!0)],64))),128))]),h(I,{"slot-id":("AdUnits"in r?r.AdUnits:e(D)).articleDetail[2].id,sizes:("AdUnits"in r?r.AdUnits:e(D)).articleDetail[2].size,pos:["bottom"],"article-tags":e(t).tags,topic:e(t).topics&&e(t).topics[0],sentiment:e(t).sentiment,location:e(t).location},null,8,["slot-id","sizes","article-tags","topic","sentiment","location"]),e(g).available?(a(),f(Ue,{key:1})):p("",!0),h(Ce,{"exclude-article-id":e(t).id},null,8,["exclude-article-id"]),e(t).topics&&e(t).topics[0]?(a(),f(y,{key:2,topic:e(t).topics&&e(t).topics[0]||"","exclude-article-id":e(t).id,items:3,"small-layout":"true"},null,8,["topic","exclude-article-id"])):p("",!0)]),l("div",Vn,[(K=e(t))!=null&&K.timeline&&e(g).open?(a(),f(Ee,{key:0,timeline:e(t).timeline,"current-article-id":e(t).id},null,8,["timeline","current-article-id"])):p("",!0),h(I,{class:ne(["hidden lg:block",{"mt-8":((ee=e(t))==null?void 0:ee.timeline)&&e(g).open}]),"slot-id":("AdUnits"in r?r.AdUnits:e(D)).articleDetail[1].id,sizes:("AdUnits"in r?r.AdUnits:e(D)).articleDetail[1].size,pos:["5"],"panel-side":"right","article-tags":e(t).tags,topic:e(t).topics&&e(t).topics[0],sentiment:e(t).sentiment,location:e(t).location},null,8,["class","slot-id","sizes","article-tags","topic","sentiment","location"])])])):p("",!0)])}}}),Gn=Q(jn,[["__scopeId","data-v-da53ba10"]]),Hn=fe(he),Bn={key:2,class:"flex"},Qn={class:"hidden lg:block w-[300px] shrink-0 overflow-x-hidden"},Zn={class:"min-w-0 space-y-4 sm:space-y-6 py-4 sm:pt-0 sm:px-4 lg:mx-[10px] text-content-primary max-w-[800px] lg:max-w-[640px] mx-auto overflow-x-hidden"},Xn={class:"space-y-4 sm:space-y-6"},Jn={class:"text-4xl sm:text-6xl tracking-tighter font-extrabold"},Yn={class:"flex items-center gap-4"},Kn={key:1,class:"px-4 py-1.5 rounded bg-surface-05 text-content-primary text-sm"},ei={class:"flex flex-col text-xs"},ti={class:"font-bold text-content-primary"},ni={key:0,class:"font-medium"},ii={class:"text-semibold ml-auto pl-4"},ai={key:0,class:"text-paragraph-md font-bold"},si={class:"mt-6 flex flex-col gap-6 lg:mt-8 lg:gap-8"},li={class:"lg:w-[300px] shrink-0 overflow-x-hidden"},oi=H({__name:"MediaNewsDetail",async setup(i){var x,S,L,F,U,M,r;let n,o;const c=Y(),{result:t,error:s,loading:v}=([n,o]=J(()=>rt(c.path)),n=await n,o(),n),{openTimeline:d,closeTimeline:g,timelineState:b,isTimelineAvailable:$}=be(),T=Ke(et),{isMobile:P}=gt(),R=T.smallerOrEqual("lg");pe(()=>{var u;(u=t.value)!=null&&u.timeline&&$(!!t.value.timeline)}),ae(()=>{!P&&!R.value&&d()}),_e(()=>{$(!1),g()}),ve({...((x=t.value)==null?void 0:x.headline)&&{title:()=>t.value.headline,ogTitle:()=>t.value.headline,twitterTitle:()=>t.value.headline},...((S=t.value)==null?void 0:S.subline)&&{description:()=>t.value.subline,ogDescription:()=>t.value.subline,twitterDescription:()=>t.value.subline},...((F=(L=t.value)==null?void 0:L.authorDetails)==null?void 0:F.fullName)&&{author:()=>t.value.authorDetails.fullName},...((r=(M=(U=t.value)==null?void 0:U.headerMedia)==null?void 0:M.headerImage)==null?void 0:r.original)&&{ogImage:()=>{var u,w;return((w=(u=t.value.headerMedia)==null?void 0:u.headerImage)==null?void 0:w.original)+"?width=1200&height=630"},twitterImage:()=>{var u,w;return((w=(u=t.value.headerMedia)==null?void 0:u.headerImage)==null?void 0:w.original)+"?width=1200&height=900"}},ogType:"article"});const{applyStructuredData:k}=bt(t);k();let _=1;return(u,w)=>{var K,ee,E;const C=ye,I=se,y=Hn,z=ot,j=We,we=_t,$e=ge("router-link"),Te=tt,De=Zt,Se=at,Pe=qe,Ae=ct,Ne=dt,Ie=ut,Ue=mt,Ce=pt,Ee=ft,le=ht,oe
1=yt;return e(v)||!e(t)?(a(),f(C,{key:0})):e(s)?(a(),f(I,{key:1})):(a(),m("div",Bn,[l("div",Qn,[h(y,{"slot-id":("AdUnits"in u?u.AdUnits:e(D)).articleDetail[1].id,sizes:("AdUnits"in u?u.AdUnits:e(D)).articleDetail[1].size,pos:["2"],"panel-side":"left","article-tags":e(t).tags,topic:e(t).topics&&e(t).topics[0],sentiment:e(t).sentiment,location:e(t).location},null,8,["slot-id","sizes","article-tags","topic","sentiment","location"]),h(z,{header:"Latest","exclude-article-id":e(t).id,items:3,class:"mt-10","xsmall-teasers":!0},null,8,["exclude-article-id"]),h(y,{"slot-id":("AdUnits"in u?u.AdUnits:e(D)).articleDetail[1].id,sizes:("AdUnits"in u?u.AdUnits:e(D)).articleDetail[1].size,pos:["3"],"panel-side":"left","article-tags":e(t).tags,topic:e(t).topics&&e(t).topics[0],sentiment:e(t).sentiment,location:e(t).location},null,8,["slot-id","sizes","article-tags","topic","sentiment","location"])]),l("article",Zn,[l("header",Xn,[l("h1",Jn,N(e(t).headline),1),l("div",Yn,[e(b).available?(a(),f(j,{key:0,onOpenTimeline:w[0]||(w[0]=A
1=>e(d)())})):p("",!0),e(t).location?(a(),m("div",Kn,N(e(t).location),1)):p("",!0)]),h($e,{to:`/author/${(K=e(t).authorDetails)==null?void 0:K.fullName}`,class:"flex gap-2.5 items-center text-content-secondary text-sm"},{default:X(()=>{var A,Z;return[h(we,{"author-details":e(t).authorDetails},null,8,["author-details"]),l("div",ei,[l("p",ti,N((A=e(t).authorDetails)==null?void 0:A.fullName),1),(Z=e(t).publishedAt)!=null&&Z.unixSeconds?(a(),m("span",ni,N(e(Oe)(e(t).publishedAt.unixSeconds)),1)):p("",!0)]),l("div",ii,N(e(t).topic),1)]}),_:1},8,["to"]),e(t).subline?(a(),m("p",ai,N(e(t).subline),1)):p("",!0),e(t).tags?(a(),f(Te,{key:1,tags:e(t).tags,max:5},null,8,["tags"])):p("",!0),h(Se,null,{default:X(()=>{var A,Z,Ve,je,Ge,He,Be;return[h(De,{data:{image:{videoLg:(Z=(A=e(t).headerMedia)==null?void 0:A.headerImage)==null?void 0:Z.lg,videoMd:(je=(Ve=e(t).headerMedia)==null?void 0:Ve.headerImage)==null?void 0:je.md,videoSm:(He=(Ge=e(t).headerMedia)==null?void 0:Ge.headerImage)==null?void 0:He.sm},mediaId:(Be=e(t).headerMedia)==null?void 0:Be.mediaId,mediaType:e(ie).Video,title:e(t).headline,isLiveStream:!1}},null,8,["data"])]}),_:1})]),e(t).text?(a(),f(Pe,{key:0,content:e(t).text},null,8,["content"])):p("",!0),l("div",si,[(a(!0),m(O,null,B(e(t).teaserBlockList,(A,Z)=>(a(),m("span",{key:Z},[A.__typename==e(G).richText?(a(),f(Ae,{key:0,content:A.markup},null,8,["content"])):p("",!0),A.__typename==e(G).quote?(a(),f(Ne,{key:1,quote:A.text},null,8,["quote"])):p("",!0),A.__typename==e(G).image?(a(),f(Ie,{key:2,"image-url":A.imagePicker.url,description:A.imageDescription},null,8,["image-url","description"])):p("",!0),A.__typename==e(G).embed?(a(),f(Ue,{key:3,content:A.embedContentItem},null,8,["content"])):p("",!0),A.__typename===e(G).brightcove?(a(),f(Ce,{key:4,"brightcove-section":A},null,8,["brightcove-section"])):p("",!0),A.__typename===e(G).ad?(a(),f(y,{key:5,"slot-id":("AdUnits"in u?u.AdUnits:e(D)).articleDetail[2].id,sizes:("AdUnits"in u?u.AdUnits:e(D)).articleDetail[2].size,pos:[`int-${(it(_)?_.value++:_++).toString()}`],"article-tags":e(t).tags,topic:e(t).topics&&e(t).topics[0],sentiment:e(t).sentiment,location:e(t).location},null,8,["slot-id","sizes","pos","article-tags","topic","sentiment","location"])):p("",!0)]))),128))]),h(y,{"slot-id":("AdUnits"in u?u.AdUnits:e(D)).articleDetail[2].id,sizes:("AdUnits"in u?u.AdUnits:e(D)).articleDetail[2].size,pos:["bottom"],"article-tags":e(t).tags,topic:e(t).topics&&e(t).topics[0],sentiment:e(t).sentiment,location:e(t).location},null,8,["slot-id","sizes","article-tags","topic","sentiment","location"]),e(b).available?(a(),f(Ee,{key:1})):p("",!0),h(le,{"exclude-article-id":e(t).id},null,8,["exclude-article-id"]),e(t).topics&&e(t).topics[0]?(a(),f(z,{key:2,topic:e(t).topics&&e(t).topics[0]||"","exclude-article-id":e(t).id,items:3,"small-layout":"true"},null,8,["topic","exclude-article-id"])):p("",!0)]),l("div",li,[(ee=e(t))!=null&&ee.timeline&&e(b).open?(a(),f(oe,{key:0,timeline:e(t).timeline,"current-article-id":e(t).id},null,8,["timeline","current-article-id"])):p("",!0),h(y,{class:ne(["hidden lg:block",{"mt-8":((E=e(t))==null?void 0:E.timeline)&&e(b).open}]),"slot-id":("AdUnits"in u?u.AdUnits:e(D)).articleDetail[1].id,sizes:("AdUnits"in u?u.AdUnits:e(D)).articleDetail[1].size,pos:["5"],"panel-side":"right","article-tags":e(t).tags,topic:e(t).topics&&e(t).topics[0],sentiment:e(t).sentiment,location:e(t).location},null,8,["class","slot-id","sizes","article-tags","topic","sentiment","location"])])]))}}}),ri=Q(oi,[["__scopeId","data-v-8160c466"]]),ci={},di={class:"p-4 lg:m-0"},ui={class:"grid grid-cols-3 gap-3 mt-8 overflow-y-hidden"};function mi(i,n){const o=Yt;return a(),m("div",di,[n[0]||(n[0]=Nt('<div class="animate-pulse"><div class="bg-surface-05 h-80 rounded-lg mt-2"></div><div class="bg-surface-05 h-12 rounded-lg mt-6"></div><div class="bg-surface-05 h-96 mt-16 rounded-lg"></div><div class="bg-surface-05 h-52 rounded-lg mt-4"></div><div class="bg-surface-05 h-4 lg:h-12 rounded-lg mt-12"></div></div>',1)),l("div",ui,[(a(),m(O,null,B(3,c=>l("div",{key:c},[h(o,{type:"vertical"})])),64))])])}const pi=Q(ci,[["render",mi]]),_i={},gi={role:"status"};function vi(i,n){return a(),m("div",gi,n[0]||(n[0]=[l("svg",{"aria-hidden":"true",class:"w-8 h-8 text-gray-200 animate-spin dark:text-gray-600 fill-brand-ewn-blue",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),l("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.
11071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1),l("span",{class:"sr-only"},"Loading...",-1)]))}const fi=Q(_i,[["render",vi]]),hi={},yi={class:"equalizer"};function bi(i,n){return a(),m("div",yi,n[0]||(n[0]=[l("div",{class:"bar bar-1"},null,-1),l("div",{class:"bar bar-2"},null,-1),l("div",{class:"bar bar-3"},null,-1),l("div",{class:"bar bar-4"},null,-1)]))}const ki=Q(hi,[["render",bi],["__scopeId","data-v-118259da"]]),xi=["data-video-id","data-account","data-player"],Ze="brightcove-audio-player",wi=H({__name:"BrightcoveAudioPlayer",props:{mediaId:{}},setup(i,{expose:n}){const{public:{brightcoveAccountId:o,brightcoveAodPlayerId:c}}=st(),t=It("BrightcoveAudioPlayer"),s=W(null),v=W(!1),d=W(!1),g=W(!1),b=W(0);Fe({script:[{src:`https://players.brightcove.net/${o}/${c}_default/index.min.js`,async:!0,defer:!0}]}),ae(()=>{$()}),Ut(()=>{s.value&&s.value.dispose()});const $=()=>{const r=()=>{if(window&&window.videojs){const u=window.videojs.getPlayer(Ze);u?u.ready(()=>{s.value=u,v.value=!0,T()}):setTimeout(r,100)}else setTimeout(r,100)};r()},T=()=>{s.value&&(s.value.on("play",()=>{d.value=!0,g.value=!1}),s.value.on("pause",()=>{d.value=!1}),s.value.on("ended",()=>{d.value=!1,g.value=!0}),s.value.on("timeupdate",r=>{var u;b.value=((u=s.value)==null?void 0:u.currentTime())||0}),s.value.on("error",()=>{}))},P=async()=>{if(s.value&&v.value)try{await s.value.play()}catch{}},R=()=>{s.value&&v.value&&s.value.pause()};return n({play:P,pause:R,togglePlayPause:()=>{d.value?R():P()},setVolume:r=>{s.value&&v.value&&s.value.volume(r)},mute:()=>{s.value&&v.value&&s.value.muted(!0)},unmute:()=>{s.value&&v.value&&s.value.muted(!1)},getCurrentTime:()=>s.value&&v.value?s.value.currentTime():0,getDuration:()=>s.value&&v.value?s.value.duration():0,seek:r=>{if(s.value&&v.value){const u=s.value.duration();s.value.currentTime(r/100*u)}},loadAndPlayMedia:r=>{s.value&&v.value&&s.value.catalog&&s.value.catalog.getVideo(r,(u,w)=>{var C,I,y;!u&&w?((I=(C=s.value)==null?void 0:C.catalog)==null||I.load(w),(y=s.value)==null||y.play()):t.error("Error loading new media ID",u)})},isReady:te(v),isPlaying:te(d),isEnded:te(g),player:te(s),currentTime:te(b)}),(r,u)=>(a(),m("video-js",{id:Ze,"data-video-id":r.mediaId,"data-account":e(o),"data-player":e(c),"data-embed":"default",controls:"false",width:"0",height:"0",class:"video-js"},null,8,xi))}}),$i=Q(wi,[["__scopeId","data-v-29bf7b6c"]]),Ti={class:"text-white bg-playlist rounded-md"},Di={class:"flex flex-row gap-4 bg-playlist rounded-md p-2 text-white items-center"},Si={class:"flex-1"},Pi={class:"text-paragraph-xs font-medium text-grey-0-translucent"},Ai={class:"flex flex-row gap-spacing-s my-2 items-center"},Ni={class:"flex justify-between flex-col"},Ii={class:"text-paragraph-sm font-bold line-clamp-1"},Ui={class:"flex flex-row w-full gap-2 text-grey-0-translucent text-xs font-medium"},Ci={key:0,class:"grid place-items-center p-8"},Ei={key:1,class:"p-2 mt-6"},Ri=["data-media-id","onClick"],Li={class:"flex flex-row gap-3 bg-playlist rounded-md p-2 text-white items-center"},zi={class:"relative h-14 w-14 shrink-0"},Fi={key:0,class:"absolute inset-0 flex items-center justify-center bg-black/50 rounded-md"},Mi={class:"text-paragraph-sm font-bold line-clamp-1"},Wi={key:0,class:"font-medium text-xs text-white/70"},qi={key:0,class:"grid place-items-center p-8"},Oi=H({__name:"PodcastPlayer",props:{podcastDetailId:{},firstEpisode:{},showPlaylist:{type:Boolean}},setup(i){const n=i,{loading:o,result:c,afterCursor:t,loadingMore:s,fetchMore:v}=tn({id:n.podcastDetailId}),d=Qe("audioPlayerRef"),g=W(n.firstEpisode),b=Qe("episodesEl"),$=q(()=>{const _=c.value||[],x=_.findIndex(S=>S.mediaId===g.value.mediaId);return{next:()=>{const S=x+1;return S<_.length?{value:_[S],done:!1}:{value:null,done:!0}}}});Ct(b,()=>{t.value&&v(t.value)},{distance:10,canLoadMore:()=>!!t.value&&!o.value});function T(_){g.value=_,Rt(()=>{var x;if((x=d.value)==null||x.loadAndPlayMedia(_.mediaId),b.value){const S=b.value.querySelector(`[data-media-id="${_.mediaId}"]`);if(S){const L=b.value.getBoundingClientRect(),U=S.getBoundingClientRect().top-L.top+b.value.scrollTop;b.value.scrollTo({top:U,behavior:"smooth"})}}})}me(()=>{var _;return(_=d.value)==null?void 0:_.isEnded},_=>{if(_){const{value:x}=$.value.next();x&&T(x)}});const P=q(()=>Re(g.value.duration/1e3)),R=q(()=>{var _;return Re(((_=d.value)==null?void 0:_.currentTime)||0)}),k=q(()=>{var _;return(((_=d.value)==null?void 0:_.currentTime)||0)/g.value.duration*1e5});return(_,x)=>{var w,C,I;const S=nt,L=Et,F=Xt,U=en,M=Jt,r=fi,u=ki;return a(),m("div",Ti,[l("div",Di,[h(S,{class:"h-20 w-20 max-h-20 overflow-hidden rounded-md shrink-0 text-xxs text-black leading-3",src:e(g).headerImage,alt:e(g).headline,"media-content-type":e(ie).Audio},null,8,["src","alt","media-content-type"]),l("div",Si,[l("p",Pi,N(e(g).headline),1),l("div",Ai,[(w=e(d))!=null&&w.isPlaying?(a(),f(F,{key:1,class:"lg:h-12 lg:w-12 h-8 w-8 flex-shrink-0 cursor-pointer hover:scale-105",onClick:(I=e(d))==null?void 0:I.pause},null,8,["onClick"])):(a(),f(L,{key:0,class:"lg:h-12 lg:w-12 h-8 w-8 flex-shrink-0 cursor-pointer hover:scale-105",onClick:(C=e(d))==null?void 0:C.play},null,8,["onClick"])),l("div",Ni,[l("p",Ii,N(e(g).headline),1),l("div",Ui,[h(U,{time:e(R)},null,8,["time"]),x[1]||(x[1]=l("span",null,"/",-1)),e(P)?(a(),f(U,{key:0,time:e(P)},null,8,["time"])):p("",!0)])])]),h(M,{progress:e(k),"onUpdate:progress":x[0]||(x[0]=y=>{var z;return(z=e(d))==null?void 0:z.seek(y)})},null,8,["progress"])]),h($i,{ref_key:"audioPlayerRef",ref:d,"media-id":e(g).mediaId},null,8,["media-id"])]),_.showPlaylist&&e(o)&&!e(s)?(a(),m("div",Ci,[h(r)])):e(c).length?(a(),m("div",Ei,[x[2]||(x[2]=l("div",{class:"flex items-center mb-6"},[l("h2",{class:"font-bold text-base"},"Playlist"),l("span",{class:"border-b border-solid border-surface-03 ml-spacing-l flex-1"})],-1)),l("div",{ref_key:"episodesEl",ref:b,class:"h-[300px] overflow-y-auto overscroll-contain"},[(a(!0),m(O,null,B(e(c),y=>{var z;return a(),m("div",{key:y.mediaId,"data-media-id":y.mediaId,class:"flex flex-col gap-4 cursor-pointer",onClick:j=>T(y)},[l("div",Li,[l("div",zi,[h(S,{class:"h-14 w-14 max-h-14 overflow-hidden rounded-md text-xxs text-black leading-3",src:y.headerImage,alt:y.headline,"media-content-type":e(ie).Audio},null,8,["src","alt","media-content-type"]),e(g).mediaId===y.mediaId&&((z=e(d))!=null&&z.isPlaying)?(a(),m("div",Fi,[h(u)])):p("",!0)]),l("div",null,[l("p",Mi,N(y.headline),1),y.publishedAt.unixSeconds?(a(),m("p",Wi,[Me(N(("UTCDateToLocalDateWithTime"in _?_.UTCDateToLocalDateWithTime:e(Oe))(y.publishedAt.unixSeconds,!1))+" • ",1),y.duration?(a(),f(U,{key:0,time:("toHoursMinsSecs"in _?_.toHoursMinsSecs:e(Re))(y.duration/1e3)},null,8,["time"])):p("",!0)])):p("",!0)])])],8,Ri)}),128)),e(o)&&e(s)?(a(),m("div",qi,[h(r)])):p("",!0)],512)])):p("",!0)])}}}),Vi={key:0},ji={class:"flex flex-row gap-2 items-center mb-responsive-m"},Gi={key:0,class:"bg-surface-05 w-36 h-7 rounded-md animate-pulse"},Hi={class:"flex items-end gap-4"},Bi={class:"flex items-center font-medium text-sm text-ewn"},Qi={class:"flex flex-row gap-2 overflow-x-auto"},Zi=H({__name:"EWNExclusiveList",setup(i){const{result:n,loading:o,error:c}=nn();return(t,s)=>{var $,T;
1const v=Lt,d=ge("router-link"),g=an,b=sn;return e(c)&&!e(n)?(a(),m("span",Vi,"error loading EWN EXclusive Podcast list")):(a(),m(O,{key:1},[l("div",ji,[e(o)?(a(),m("span",Gi)):(a(),f(d,{key:1,to:"/podcasts"},{default:X(()=>[l("div",Hi,[s[1]||(s[1]=l("h4",{class:"text-content-primary font-bold text-3xl"},"EWN Exclusives",-1)),l("button",Bi,[s[0]||(s[0]=Me(" Show All ")),h(v)])])]),_:1}))]),l("div",Qi,[e(o)?(a(),m(O,{key:0},B(3,P=>h(g,{key:P,class:"min-w-[11rem] max-w-[11rem]"})),64)):(a(!0),m(O,{key:1},B((T=($=e(n))==null?void 0:$.getPromotedPodcasts)==null?void 0:T.promotedEwnPodcasts,(P,R)=>(a(),f(b,{key:R,class:"min-w-[11rem] max-w-[11rem]",podcast:P,"is-prime":!1},null,8,["podcast"]))),128))])],64))}}});var V={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getDetailByUrl"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"url"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"umbraco"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"content"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"byUrl"},arguments:[{kind:"Argument",name:{kind:"Name",value:"url"},value:{kind:"Variable",name:{kind:"Name",value:"url"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"gatedContentDetail"},directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"staticPageDetail"},directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"audioPodcastDetailFragment"},directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"videoPodcastDetailFragment"},directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"videoTeaserDetailFragmet"},directives:[]}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"gatedContentDetail"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GatedContentPublishedElement"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"behindRegWall"},arguments:[],directives:[]}]}}],loc:{start:0,end:612}};V.loc.source={body:`#import "../fragments/staticPageFragment.graphql"
2#import "../fragments/audioPodcastDetailFragment.graphql"
3#import "../fragments/videoPodcastDetailFragment.graphql"
4#import "../fragments/videoTeaserDetailPublishedContent.graphql"
5
6query getDetailByUrl($url: String!) {
7  umbraco {
8    content {
9      byUrl(url: $url) {
10        __typename
11        ...gatedContentDetail
12        ...staticPageDetail
13        ...audioPodcastDetailFragment
14        ...videoPodcastDetailFragment
15        ...videoTeaserDetailFragmet
16      }
17    }
18  }
19}
20
21fragment gatedContentDetail on GatedContentPublishedElement {
22  behindRegWall
23}
24
25`,name:"GraphQL request",locationOffset:{line:1,column:1}};var Xe={};function ke(i){return i.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var o=n.name.value;return Xe[o]?!1:(Xe[o]=!0,!0)})}V.definitions=V.definitions.concat(ke(Gt.definitions));V.definitions=V.definitions.concat(ke(Ht.definitions));V.definitions=V.definitions.concat(ke(Bt.definitions));V.definitions=V.definitions.concat(ke(ln.definitions));function de(i,n){if(i.kind==="FragmentSpread")n.add(i.name.value);else if(i.kind==="VariableDefinition"){var o=i.type;o.kind==="NamedType"&&n.add(o.name.value)}i.selectionSet&&i.selectionSet.selections.forEach(function(c){de(c,n)}),i.variableDefinitions&&i.variableDefinitions.forEach(function(c){de(c,n)}),i.definitions&&i.definitions.forEach(function(c){de(c,n)})}var Le={};(function(){V.definitions.forEach(function(n){if(n.name){var o=new Set;de(n,o),Le[n.name.value]=o}})})();function Je(i,n){for(var o=0;o<i.definitions.length;o++){var c=i.definitions[o];if(c.name&&c.name.value==n)return c}}function kt(i,n){var o={kind:i.kind,definitions:[Je(i,n)]};i.hasOwnProperty("loc")&&(o.loc=i.loc);var c=Le[n]||new Set,t=new Set,s=new Set;for(c.forEach(function(d){s.add(d)});s.size>0;){var v=s;s=new Set,v.forEach(function(d){if(!t.has(d)){t.add(d);var g=Le[d]||new Set;g.forEach(function(b){s.add(b)})}})}return t.forEach(function(d){var g=Je(i,d);g&&o.definitions.push(g)}),o}kt(V,"getDetailByUrl");kt(V,"gatedContentDetail");const Xi=i=>{let n=null;switch(i.__typename){case re.AUDIOPODCASTDETAIL:case re.VIDEOPODCASTDETAIL:n=i;break;case re.STATIC:n=i;break;case re.VIDEODETAIL:n=i;break}return n},xt=async i=>{const n=await lt(V,{url:i}),{error:o,pending:c}=n;return{result:q(()=>{var s,v,d;return((d=(v=(s=n.data.value)==null?void 0:s.umbraco)==null?void 0:v.content)==null?void 0:d.byUrl)&&Xi(n.data.value.umbraco.content.byUrl)}),error:o,loading:c}},Ji=i=>{let n=W(!1);const o=()=>{n.value=!!i.value&&i.value.scrollHeight>i.value.clientHeight};return ae(()=>{o(),window.addEventListener("resize",o)}),_e(()=>{window.removeEventListener("resize",o)}),n},Yi=fe(he),Ki={class:"-mx-4"},ea={key:1,class:"overflow-x-hidden md:grid md:grid-cols-[60px_auto_60px] lg:grid-cols-[300px_auto_300px] justify-center max-w-[1280px] mt-2 lg:mt-0"},ta={class:"hidden md:flex"},na={key:1,class:"mx-auto max-w-[680px] lg:px-5 flex flex-col justify-center"},ia={class:"lg:space-y-spacing-l space-y-spacing-m mt-4 px-4"},aa={key:0,class:"mt-responsive-l space-y-spacing-l"},sa={class:"mt-6 lg:space-y-responsive-l space-y-responsive-m px-4"},la={class:"hidden md:flex"},oa=H({__name:"PodcastDetail",emits:["update:loadingState"],async setup(i){let n,o;const c=Y(),{result:t,loading:s,error:v}=([n,o]=J(()=>xt(c.path)),n=await n,o(),n),d=W(!1),g=W(),b=Ji(g),$=q(()=>{var k;return((k=t.value)==null?void 0:k.headline)||void 0}),T=q(()=>{var k;return((k=t.value)==null?void 0:k.text)||void 0}),P=q(()=>{var _,x;const k=(x=(_=t.value)==null?void 0:_.headerImage)==null?void 0:x.original;return k?`${k}?width=1200&height=630`:void 0}),R=q(()=>{var _,x;const k=(x=(_=t.value)==null?void 0:_.headerImage)==null?void 0:x.original;return k?`${k}?width=1200&height=900`:void 0});return ve({title:$,ogTitle:$,twitterTitle:$,description:T,ogDescription:T,twitterDescription:T,ogImage:P,twitterImage:R,twitterCard:"summary_large_image",ogType:"article"}),(k,_)=>{var w;const x=se,S=Yi,L=pi,F=Qt,U=Kt,M=Oi,r=at,u=Zi;return a(),m("div",Ki,[e(v)?(a(),f(x,{key:0})):(a(),m("div",ea,[l("div",ta,[h(S,{"slot-id":("AdUnits"in k?k.AdUnits:e(D)).podcast[0].id,sizes:("AdUnits"in k?k.AdUnits:e(D)).podcast[0].size,"panel-side":"left",pos:["2"]},null,8,["slot-id","sizes"])]),e(s)&&!e(t)?(a(),f(L,{key:0,class:"mx-auto lg:w-[640px] w-full"})):p("",!0),e(t)?(a(),m("div",na,[h(F,{"image-url":e(t).headerImage,headline:e(t).headline,type:e(t).__typename==="AudioPodcastPublishedContent"?e(ie).Audio:e(ie).Video},null,8,["image-url","headline","type"]),l("section",ia,[h(U,{class:"w-full font-extrabold text-center"},{default:X(()=>[Me(N(e(t).headline),1)]),_:1}),(w=e(t).episodeList)!=null&&w.items&&e(t).episodeList.items.length?(a(),m("div",aa,[_[1]||(_[1]=l("div",{class:"flex flex-row gap-spacing-l items-center"},[l("p",{class:"font-bold text-paragraph-md"},"Latest Episode"),l("span",{class:"border-b border-solid border-surface-03 flex-1 mr-2"})],-1)),h(r,null,{default:X(()=>[h(M,{"show-playlist":!0,"first-episode":e(t).episodeList.items[0],"podcast-detail-id":e(t)._id},null,8,["first-episode","podcast-detail-id"])]),_:1})])):p("",!0),e(t).text?(a(),m(O,{key:1},[l("p",{ref_key:"el",ref:g,class:ne(["break-words text-paragraph-md font-medium transition-all",{"line-clamp-4":!e(d)}])},N(e(t).text),3),e(b)?(a(),m("button",{key:0,class:"text-paragraph-md font-bold",onClick:_[0]||(_[0]=C=>d.value=!e(d))},N(e(d)?"show less":"show more"),1)):p("",!0)],64)):p("",!0)]),h(S,{class:"mt-spacing-l","slot-id":("AdUnits"in k?k.AdUnits:e(D)).podcast[1].id,sizes:("AdUnits"in k?k.AdUnits:e(D)).podcast[1].size,pos:["1"]},null,8,["slot-id","sizes"]),l("section",sa,[h(u)])])):p("",!0),l("div",la,[h(S,{"slot-id":("AdUnits"in k?k.AdUnits:e(D)).podcast[0].id,sizes:("AdUnits"in k?k.AdUnits:e(D)).podcast[0].size,"panel-side":"right",pos:["3"]},null,8,["slot-id","sizes"])])]))])}}}
25),ra={key:2,class:"space-y-4 sm:space-y-6"},ca={class:"space-y-4 sm:space-y-6"},da={class:"text-4xl sm:text-6xl tracking-tighter font-extrabold"},ua=H({__name:"StaticPageDetail",async setup(i){let n,o;const c=Y(),{result:t,error:s,loading:v}=([n,o]=J(()=>xt(c.path)),n=await n,o(),n),d=c.path.replace("/","").split("-").join(" ");return ve({title:()=>`EWN | ${d}`,ogTitle:()=>`EWN | ${d}`,twitterTitle:()=>`EWN | ${d}`}),(g,b)=>{const $=se,T=ye,P=qe;return a(),m(O,null,[e(s)?(a(),f($,{key:0})):p("",!0),e(v)?(a(),f(T,{key:1})):e(t)?(a(),m("article",ra,[l("header",ca,[l("h1",da,N(e(t).headline),1)]),h(P,{content:e(t).content},null,8,["content"])])):p("",!0)],64)}}});var xe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getTypenameByUrl"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"url"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"umbraco"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"content"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"byUrl"},arguments:[{kind:"Argument",name:{kind:"Name",value:"url"},value:{kind:"Variable",name:{kind:"Name",value:"url"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"_id"},arguments:[],directives:[]},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"NewsTeaserDetailPublishedContent"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"headline"},arguments:[],directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MediaNewsTeaserDetailPublishedContent"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"headline"},arguments:[],directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"AudioPodcastPublishedContent"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"headline"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"behindRegWall"},arguments:[],directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"VideoPodcastPublishedContent"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"headline"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"behindRegWall"},arguments:[],directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"StaticPagePublishedContent"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]}]}}]}}]}}]}}]}}],loc:{start:0,end:573}};xe.loc.source={body:`query getTypenameByUrl($url: String!) {
26  umbraco {
27    content {
28      byUrl(url: $url) {
29        __typename
30        _id
31        ... on NewsTeaserDetailPublishedContent {
32          headline
33        }
34        ... on MediaNewsTeaserDetailPublishedContent {
35          headline
36        }
37        ... on AudioPodcastPublishedContent {
38          headline
39          behindRegWall
40        }
41        ... on VideoPodcastPublishedContent {
42          headline
43          behindRegWall
44        }
45        ... on StaticPagePublishedContent {
46          title
47        }
48      }
49    }
50  }
51}
52`,name:"GraphQL request",locationOffset:{line:1,column:1}};function ue(i,n){if(i.kind==="FragmentSpread")n.add(i.name.value);else if(i.kind==="VariableDefinition"){var o=i.type;o.kind==="NamedType"&&n.add(o.name.value)}i.selectionSet&&i.selectionSet.selections.forEach(function(c){ue(c,n)}),i.variableDefinitions&&i.variableDefinitions.forEach(function(c){ue(c,n)}),i.definitions&&i.definitions.forEach(function(c){ue(c,n)})}var ze={};(function(){xe.definitions.forEach(function(n){if(n.name){var o=new Set;ue(n,o),ze[n.name.value]=o}})})();function Ye(i,n){for(var o=0;o<i.definitions.length;o++){var c=i.definitions[o];if(c.name&&c.name.value==n)return c}}function ma(i,n){var o={kind:i.kind,definitions:[Ye(i,n)]};i.hasOwnProperty("loc")&&(o.loc=i.loc);var c=ze[n]||new Set,t=new Set,s=new Set;for(c.forEach(function(d){s.add(d)});s.size>0;){var v=s;s=new Set,v.forEach(function(d){if(!t.has(d)){t.add(d);var g=ze[d]||new Set;g.forEach(function(b){s.add(b)})}})}return t.forEach(function(d){var g=Ye(i,d);g&&o.definitions.push(g)}),o}ma(xe,"getTypenameByUrl");const pa=async i=>{const n=await lt(xe,{url:i}),{error:o,pending:c}=n,t=q(()=>{var v,d,g;return(g=(d=(v=n.data.value)==null?void 0:v.umbraco)==null?void 0:d.content)==null?void 0:g.byUrl}),s=q(()=>{var v;return!!((v=t.value)!=null&&v.behindRegWall)});return{result:t,error:o,loading:c,isBehindRegWall:s}},_a=(i,n)=>{const o=zt(),{public:{loginwallEnabled:c}}=st(),{setIsRegWallSkipPossible:t,setRegWallVisibility:s}=Ft();me(i,()=>{if(!c||o.isAuthenticated)return;const v=!i.value;t(v),(i.value||n.value)&&s(!0)},{immediate:!0})},ga=fe(he),va={class:"w-full"},fa={key:2,class:"mx-auto"},Ia=H({__name:"[...path]",async setup(i){let n,o;const c=Y(),{result:t,loading:s,error:v,isBehindRegWall:d}=([n,o]=J(()=>pa(c.path)),n=await n,o(),n),{setCurrentArticle:g,clearCurrentArticle:b}=Mt(),{isEWNTV:$}=Wt(),T=W(null),P=W(!1),R=q(()=>{if(!t.value)return null;const _=t.value,x=_.headline||_.title||"Unknown Article";return{id:_._id,path:c.path,title:x,typeName:_.__typename}});pe(()=>{R.value?g(R.value):b()}),Vt("articleData",R),pe(()=>{if(!s.value&&t.value===null&&!$.value)throw jt({statusCode:404,message:"Page not found",data:{path:c.path}})});const{isInitialRouteActive:k}=qt();return _a(d,k),Ot(T,([_],x)=>{_.isIntersecting&&!P.value&&(P.value=!0)}),(_,x)=>{var w,C,I,y,z,j;const S=se,L=ye,F=Gn,U=ri,M=oa,r=ua,u=ga;return a(),m("div",va,[e(v)&&!e(t)?(a(),f(S,{key:0})):e(s)?(a(),f(L,{key:1})):(a(),m("div",fa,[((w=e(t))==null?void 0:w.__typename)==="NewsTeaserDetailPublishedContent"?(a(),f(F,{key:0})):p("",!0),((C=e(t))==null?void 0:C.__typename)==="MediaNewsTeaserDetailPublishedContent"?(a(),f(U,{key:1})):p("",!0),((I=e(t))==null?void 0:I.__typename)==="AudioPodcastPublishedContent"||((y=e(t))==null?void 0:y.__typename)==="VideoPodcastPublishedContent"||e($)?(a(),f(M,{key:2})):p("",!0),((z=e(t))==null?void 0:z.__typename)==="StaticPagePublishedContent"?(a(),f(r,{key:3})):p("",!0),((j=e(t))==null?void 0:j.__typename)!=="StaticPagePublishedContent"?(a(),m("div",{key:4,ref_key:"googleAdRef",ref:T,class:"grid place-items-center lg:mt-4 mt-2"},[e(P)?(a(),f(u,{key:0,"slot-id":("AdUnits"in _?_.AdUnits:e(D)).articleDetail[0].id,pos:["bottom"]},null,8,["slot-id"])):p("",!0)],512)):p("",!0)]))])}}});
52export{Ia as default};

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.