1import{g as a}from"./lodash-86ed0c75.js";import{a0 as j,a4 as O,f as e,D as i,E as P,F as r,G as B,P as l,J as u,u as s,aB as z,I as H}from"./vendor-a0789617.js";import{a as V,f as q,a7 as W,e as m,i as $,h as L,F as N,_ as A}from"./index-a0a0e1a1.js";import"./axios-bb6ee5b8.js";import"./vee-validate-daa3561c.js";import"./swiper-ade697ba.js";/*! @license Third-party license notices: /dist/velux-marketing/client/THIRD_PARTY_NOTICES.txt */const F=["data-section-name"],R=["src"],D={class:"mx-auto flex flex-col max-w-730px old_tablet:max-w-561px old_mobile:max-w-287px items-center text-center justify-center absolute z-10"},G={class:"flex flex-col items-center"},M={class:"max-w-670px old_tablet:max-w-501px old_mobile:max-w-227px mt-3"},S={class:"justify-center flex"},U=j({__name:"HeroPromo",props:{rendering:{type:Object,required:!0},fields:{type:Object,required:!0},params:{type:Object,default:()=>{}}},setup(f){const t=f,_=$.linkClickEventIds.HERO_PROMO,{getSizeOfWindow:v}=O(),{trackEvent:x}=L(),{formatLink:p}=N(),{renderingIndex:g}=V(),h=e(()=>a(t,"rendering.uid")||""),w=e(()=>a(t,"fields.Title")||{}),k=e(()=>a(t,"fields['Intro Text']")||{}),y=e(()=>a(t,"fields.Image")||{}),b=e(()=>a(t,"fields.linkText.value")||""),n=e(()=>a(t,"fields.link")||null),o=e(()=>a(t,"fields.Video.value")||""),T=e(()=>o.value?`${o.value}${o.value.includes("?")?"&":"?"}autoMute=1`:""),C=e(()=>!!a(t,"fields.linkText.value")&&!!a(t,"fields.link.value.href")),E=e(()=>o.value.length),c=e(()=>({...v()})),I=e(()=>a(t,"fields.AnalyticParameters",[]));return(J,d)=>(i(),P("div",{"data-section-name":s(g)(h.value).id,class:"bg-cover h-screen w-full flex overflow-hidden items-center justify-center relative"},[E.value?(i(),r(W,{key:1},{default:B(()=>[l("iframe",{class:"h-screen w-screen pointer-events-none",allowfullscreen:"",allow:"autoplay",frameborder:"0",loading:"lazy",scrolling:"no",src:T.value},null,8,R)]),_:1})):(i(),r(q,{key:0,class:"w-full h-full object-center object-cover",media:y.value,width:c.value.windowWidth,height:c.value.windowHeight},null,8,["media","width","height"])),l("div",D,[l("div",G,[u(m,{class:"text-48 old_mobile:text-36 font-light leading-57 old_mobile:leading-43 text-old_velux-white tracking-wide",tag:"h3",field:w.value},null,8,["field"]),l("div",M,[u(m,{class:"text-20 font-light leading-26 old_mobile:text-16 old_mobile:leading-19 text-old_velux-white tracking-wide",tag:"p",field:k.value},null,8,["field"])])]),l("div",S,[C.value?(i(),r(s(z),{key:0,class:"mt-10 old_mobile:mt-8",href:s(p)(n.value.value).href,target:n.value.value.target,"query-string":n.value.value?.querystring,anchor:n.value.value?.anchor,text:b.value,variant:"primary","on-dark":"",size:"s",onHandleClick:d[0]||(d[0]=K=>s(x)(I.value,s(_),"Text module"))},null,8,["href","target","query-string","anchor","text"])):H("",!0)])])],8,F))}});const ae=A(U,[["__scopeId","data-v-0254c95b"]]);export{ae 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.