PageSourceSearch

https://www.ewn.co.za/_nuxt/uvXmeHiC.js

js ewn.co.za collected 2026-10-02 02:33:03 UTC 6,136 bytes, 1 lines download raw bytes

1import{i as E,aC as N,v as W,x as j,k as y,aL as I,M as D,aD as C,aE as B,c,o as r,B as x,a as n,n as a,t as V,b as f,H as M,G as S,w as H,f as q,ad as R,_ as F,aj as z,aK as G,F as P,l as K,a7 as g,A as L}from"./CBZx7rdy.js";import{u as O}from"./DTmifBnS.js";import{b as Q,u as J,a as U,_ as X,c as Y}from"./DeRQV9iI.js";import"./DB0RT30T.js";import"./DNPHahWu.js";import"./DYRToSYT.js";const Z={class:"relative md:rounded-[5px] lg:rounded-[9px] overflow-hidden"},ee={key:0,class:"text-paragraph-xs text-content-secondary mb-2 px-4 md:px-0"},te={class:"aspect-square lg:aspect-[21/9] relative md:rounded-[5px] lg:rounded-[9px] overflow-hidden"},se={class:"absolute inset-0 flex flex-col justify-end md:p-8 lg:p-6 p-spacing-m"},ae={key:0,class:"lg:px-4 lg:py-1 px-[10px] bg-error/90 rounded text-white font-bold mb-1 inline-block text-xs lg:text-base backdrop-blur-xl w-fit"},ne={class:"lg:text-6xl text-white font-semibold lg:font-extrabold text-2xl line-clamp-2"},oe={class:"absolute inset-x-spacing-l top-spacing-l lg:top-8 lg:inset-x-6 flex justify-end text-white items-center space-x-spacing-xs lg:space-x-2"},le=E({__name:"EWNTVHeroTeaser",props:{teaser:{}},setup(w){var d,i,l;const s=w,_=((d=s.teaser.node)==null?void 0:d.detail.publishedAt)&&N(s.teaser.node.detail.publishedAt.iso8601),b=W(j),{isMobile:h}=O(),v=b.smallerOrEqual("lg"),u=y(()=>{var e,t;return h||v.value?(e=s.teaser.node)==null?void 0:e.detail.headerImage.lg:(t=s.teaser.node)==null?void 0:t.detail.headerImage.md}),p=y(()=>{var e,t,o;return(e=s.teaser.node)!=null&&e.detail._url?s.teaser.node.detail.__typename==="LivestreamVideoPublishedContent"?`/ewn-tv/livestream${(t=s.teaser.node)==null?void 0:t.detail._url}`:`/ewn-tv${(o=s.teaser.node)==null?void 0:o.detail._url}`:"/"}),m=I(((l=(i=s.teaser.node)==null?void 0:i.detail.publishedAt)==null?void 0:l.iso8601)||"");return(e,t)=>{var $;const o=M,T=D("router-link"),k=R;return C((r(),c("article",Z,[a(_)?(r(),c("span",ee,V(a(_)),1)):x("",!0),n("figure",te,[f(o,{src:a(u),class:"object-contain w-full"},null,8,["src"])]),t[2]||(t[2]=n("div",{class:"absolute inset-0 flex justify-end bg-gradient flex-col"},null,-1)),n("div",se,[a(m)&&(($=e.teaser.node)==null?void 0:$.detail.__typename)===a(S).LIVESTREAM?(r(),c("span",ae," Live ")):x("",!0),f(T,{to:a(p)},{default:H(()=>{var A;return[n("p",ne,[t[0]||(t[0]=n("span",{class:"absolute inset-0"},null,-1)),q(" "+V((A=e.teaser.node)==null?void 0:A.detail.headline),1)])]}),_:1},8,["to"])]),n("div",oe,[t[1]||(t[1]=n("p",{class:"lg:font-semibold font-medium text-paragraph-sm lg:text-2xl"},"Watch",-1)),f(k,{class:"lg:w-6 lg:h-6 w-5 h-5"})])],512)),[[B,!!e.teaser]])}}}),re=F(le,[["__scopeId","data-v-4ab7403b"]]),ie={class:"relative md:rounded-[5px] lg:rounded-[9px] overflow-hidden"},de={key:0,class:"text-paragraph-xs text-content-secondary mb-2 px-4 md:px-0"},ce={class:"aspect-square lg:aspect-[21/9] relative md:rounded-[5px] lg:rounded-[9px] overflow-hidden"},ue={class:"absolute inset-0 flex flex-col justify-end md:p-8 lg:p-6 p-spacing-m"},pe={key:0,class:"lg:px-4 lg:py-1 px-[10px] bg-error/90 rounded text-white font-bold mb-1 inline-block text-xs lg:text-base backdrop-blur-xl w-fit"},me={class:"lg:text-6xl text-white font-semibold lg:font-extrabold text-2xl line-clamp-2"},_e={class:"absolute inset-x-spacing-l top-spacing-l lg:top-8 lg:inset-x-6 flex justify-end text-white items-center space-x-spacing-xs lg:space-x-2"},xe=E({__name:"EWNTVLivestreamHeroTeaser",props:{teaser:{}},setup(w){var d;const s=w,_=s.teaser.publishedAt&&N(s.teaser.publishedAt.iso8601),b=W(j),{isMobile:h}=O(),v=b.smallerOrEqual("lg"),u=y(()=>h||v.value?s.teaser.headerImage.lg:s.teaser.headerImage.md),p=y(()=>s.teaser._url?s.teaser.__typename==="LivestreamVideoPublishedContent"?`/ewn-tv/livestream${s.teaser._url}`:`/ewn-tv${s.teaser._url}`:"/"),m=I(((d=s.teaser.publishedAt)==null?void 0:d.iso8601)||"");return(i,l)=>{const e=M,t=D("router-link"),o=R;return C((r(),c("article",ie,[a(_)?(r(),c("span",de,V(a(_)),1)):x("",!0),n("figure",ce,[f(e,{src:a(u),class:"object-contain w-full"},null,8,["src"])]),l[2]||(l[2]=n("div",{class:"absolute inset-0 flex justify-end bg-gradient flex-col"},null,-1)),n("div",ue,[a(m)&&i.teaser.__typename===a(S).LIVESTREAM?(r(),c("span",pe," Live ")):x("",!0),f(t,{to:a(p)},{default:H(()=>[n("p",me,[l[0]||(l[0]=n("span",{class:"absolute inset-0"},null,-1)),q(" "+V(i.teaser.headline),1)])]),_:1},8,["to"])]),n("div",_e,[l[1]||(l[1]=n("p",{class:"lg:font-semibold font-medium text-paragraph-sm lg:text-2xl"},"Watch",-1)),f(o,{class:"lg:w-6 lg:h-6 w-5 h-5"})])],512)),[[B,!!i.teaser]])}}}),ge=F(xe,[["__scopeId","data-v-8a2f0cf9"]]),fe={class:"w-full"},ke=E({__name:"all-videos",setup(w){const{ewnTVLanguage:s}=z(),{result:_}=Q(),b=J("cursor",void 0),{result:h}=U({first:10,language:G[s.value],cursor:b.value}),v=y(()=>{var m,d,i,l,e,t;const u=((e=(l=(i=(d=(m=_.value)==null?void 0:m.livestreamAsset)==null?void 0:d.livestreamAssetList)==null?void 0:i.items)==null?void 0:l.filter(o=>{var k;const T=(k=o.livestreamAsset)==null?void 0:k.publishedAt.unixSeconds;return T&&T<Math.floor(Date.now()/1e3)}))==null?void 0:e.map(o=>({type:g.Livestream,data:o.livestreamAsset})))??[],p=((t=h.value)==null?void 0:t.map(o=>({type:g.Video,data:o})))??[];return[...u,...p]});return(u,p)=>{const m=re,d=ge,i=X,l=Y;return r(),c("div",fe,[n("main",null,[p[0]||(p[0]=n("h1",{class:"text-2xl lg:text-4xl font-bold capitalize lg:py-8"}
1,"Latest EWN Videos",-1)),(r(!0),c(P,null,K(a(v),(e,t)=>{var o;return r(),c(P,{key:t},[t==0&&e.type===a(g).Video?(r(),L(m,{key:0,teaser:e.data,class:"col-span-2 -mx-4 md:mx-0 lg:mx-0"},null,8,["teaser"])):x("",!0),t==0&&e.type===a(g).Livestream?(r(),L(d,{key:1,teaser:e.data,class:"col-span-2 -mx-4 md:mx-0 lg:mx-0"},null,8,["teaser"])):x("",!0),e.type===a(g).Livestream&&t>=1&&("usePublishedInPast"in u?u.usePublishedInPast:a(I))((o=e.data.publishedAt)==null?void 0:o.iso8601)?(r(),L(i,{key:2,item:e.data,layout:"large"},null,8,["item"])):e.type===a(g).Video&&t>=1?(r(),L(l,{key:3,cursor:e.data.cursor,"ewn-tv-item":e.data,layout:"large"},null,8,["cursor","ewn-tv-item"])):x("",!0)],64)}),128))])])}}});export{ke 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.