1import{x as u,o as i,c as o,y as t,t as d,j as l,z as c,i as v,D as h}from"./entry.41e83958.js";const y={key:0,class:"grid-container"},g={class:"grid-x grid-margin-x"},_={class:"small-12 cell"},b={class:"utl-heading-beta"},S={class:"grid-container"},f={class:"grid-x grid-margin-x"},k={class:"small-12 cell"},j={class:"c-hero-video__wrapper"},q={key:0,class:"c-hero-video__poster"},$=["srcset","sizes","src"],x={class:"c-hero-video__title-wrapper"},C={key:0,class:"c-hero-video__pretitle"},p={class:"c-hero-video__title"},z={class:"c-hero-video__play-wrapper"},V=["aria-label"],w=["innerHTML"],T={__name:"HeroVideo",props:{pretitle:{type:String,required:!1},title:{type:String,required:!0},videoSource:{type:String,required:!0},video:{type:String,required:!1},streamyardEmbedCode:{type:String,required:!1},image:{type:Object,required:!0},settings:{theme:{type:String,required:!0},showComponentTitle:{type:Boolean,required:!0},spacing:{type:String,required:!0}}},setup(e){const m=a=>{const s=a.target,r=s.closest(".js-hero-video__meta");r.style.display="none",r.classList.contains("is-streamyard")||s.closest(".js-hero-video").querySelectorAll(".js-hero-video__embed")[0].click()};return(a,s)=>{const r=u("lite-youtube");return i(),o("section",{class:c(["o-flexible-module",{"o-flexible-module--flush":e.settings.spacing=="flush"}])},[e.settings.showComponentTitle?(i(),o("div",y,[t("div",g,[t("div",_,[t("div",b,d(e.settings.componentTitle||"Hero Video"),1)])])])):l("",!0),t("div",{class:c(`c-hero-video c-hero-video--${e.settings.theme} js-hero-video`),"data-aos":"fade-up"},[t("div",S,[t("div",f,[t("div",k,[t("div",j,[t("div",{class:c(["c-hero-video__meta js-hero-video__meta",{"is-streamyard":e.videoSource=="streamyard"}])},[e.videoSource=="streamyard"&&e.image?(i(),o("div",q,[t("img",{srcset:e.image.srcSet,sizes:e.image.sizes,src:e.image.sourceUrl},null,8,$)])):l("",!0),t("div",x,[e.pretitle?(i(),o("div",C,d(e.pretitle),1)):l("",!0),t("h2",p,d(e.title),1)]),t("div",z,[t("button",{class:"c-hero-video__play",type:"button","aria-label":`Play ${e.title}`,onClick:s[0]||(s[0]=n=>m(n))},null,8,V)])],2),e.videoSource=="youtube"?(i(),v(r,{key:0,class:"c-hero-video__embed js-hero-video__embed",videoid:a.$convertVideoId(e.video),playlabel:`Play ${e.title}`,params:"modestbranding=1&rel=0&enablejsapi=1",style:h(e.image?`background-image: url('${e.image.sourceUrl}');`:"")},null,8,["videoid","playlabel","style"])):(i(),o("div",{key:1,class:"js-hero-video__streamyard",innerHTML:e.streamyardEmbedCode},null,8,w))])])])])],2)],2)}}};export{T as default}; 2//# sourceMappingURL=HeroVideo.02af7fbe.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.