1import{d as X,H as Y,R as J,I as P,z as ee,r,J as te,bV as C,aP as ae,u as e,o as n,c as f,a as s,n as F,h as g,t as K,j as y,w as M,F as oe,i as se,al as ie,b as le,Q as N,k as re,l as ne,m as Q,ak as ce,K as ue}from"./BNATrUYe.js";import{_ as de}from"./DTgCnwW3.js";import{u as me}from"./C-GIoC1R.js";import"./DOUD8uoO.js";import"./CPn-q-9c.js";import"./dGqsdu2Q.js";import"./D5xDCBhS.js";import"./kSJU2C03.js";import"./D-XpYKRX.js";import"./C6GrRWKe.js";import"./BkRPNaEf.js";import"./DO3zYpck.js";import"./DwvMoyMf.js";const pe={class:"absolute w-full h-full overlay-bottom"},ve=["src"],ge={class:"relative z-10 flex flex-col items-center w-full h-full px-4 mx-auto grow"},we={class:"container flex flex-col items-start justify-center h-full"},he={class:"max-w-[700px] text-heading-6xl font-heading font-black text-white uppercase"},fe={class:"max-w-[568px] my-6 text-white font-heading text-heading-xl"},ye={class:"flex max-w-[568px] gap-2 actions h-[48px]"},Ee=X({name:"HeroCarousel",__name:"index",props:{widgetData:{},style:{},widget:{}},async setup(t){let d,x;const U=re(),a=t;Y();const b=([d,x]=J(()=>me()),d=await d,x(),d),Z=ne(()=>a.widget.contents[0].widgetData.customStyles),q=P(),{$auth:i}=ee(),k=r((i==null?void 0:i.isAuthed())||!1);q.$subscribe(async(o,l)=>{k.value=i==null?void 0:i.isAuthed()});const c=r(!1);function _(){const o=document.getElementById("hero-video");o&&o.play().catch(l=>{console.log("Video play error: ",l)})}const z=r(),w=r(!0),h=r();function D(){window.innerWidth<1080||/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(z.value=!0,c.value=!1,w.value=!1):(z.value=!1,c.value=!0,w.value=!1)}te(()=>{var o,l,m,p,v,u;window.addEventListener("resize",D),D(),window.innerWidth<1080?h.value=Q(!0,1600,1600,(m=(l=(o=a==null?void 0:a.style)==null?void 0:o.background)==null?void 0:l.image_mobile)==null?void 0:m.image):h.value=Q(!0,1600,1600,(u=(v=(p=a==null?void 0:a.style)==null?void 0:p.background)==null?void 0:v.image)==null?void 0:u.image),C(()=>{c.value&&_()})}),ae(()=>{c.value&&C(()=>{_()})});const G=r({gap:16,pagination:!1,perMove:1,type:"slide",arrows:!1,trimSpace:!0,autoWidth:!0});return(o,l)=>{var u,$,A,j,I,S,W,B,E,H,L,R,V;const m=ue,p=de,v=ce;return e(w)?g("",!0):(n(),f("div",{key:0,class:F(["relative flex overflow-hidden bg-tertiary-950",e(c)?"":"overlay-bottom"])},[s("section",{class:"flex w-full hero h-[656px] mb-[250px] overflow-visible relative",style:N({backgroundImage:($=(u=t.style)==null?void 0:u.background)!=null&&$.video?"":`url(${e(h)})`,backgroundSize:(j=(A=t.style)==null?void 0:A.background)!=null&&j.video?"":"cover"})},[s("div",pe,[(S=(I=t.style)==null?void 0:I.background)!=null&&S.video?(n(),f("video",{key:0,id:"hero-video",class:F(["relative w-full h-[656px] object-cover",(B=(W=t.style)==null?void 0:W.background)!=null&&B.video?"":"overlay-bottom"]),loop:"true",autoplay:"true",muted:"true",src:`https://images.gc.${(H=(E=e(U))==null?void 0:E.public)==null?void 0:H.servicesURL}/${(V=(R=(L=t.style)==null?void 0:L.background)==null?void 0:R.video)==null?void 0:V.image}`},null,10,ve)):g("",!0)]),s("div",ge,[s("div",we,[s("h1",he,K(t.widgetData.title),1),s("p",fe,K(t.widgetData.description||""),1),s("div",ye,[e(k)?g("",!0):(n(),y(m,{key:0,content:"DAZN",theme:"club",link:"https://www.dazn.com/nltv"}))])]),e(b)?(n(),y(v,{key:0,class:"-mb-[225px] container overflow-visible",options:e(G),"override-options":"","show-peek":!0,"show-arrows":!0},{default:M(()=>[(n(!0),f(oe,null,se(e(b),(O,T)=>(n(),y(e(ie),{key:T},{default:M(()=>[le(p,{event:O,style:N(e(Z))},null,8,["event","style"])]),_:2},1024))),128))]),_:1},8,["options"])):g("",!0)])],4)],2))}}});export{Ee 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.