1import{m as k}from"./lodash-de8cc594.js";import{a0 as y,f as t,D as d,F as _,G as K,J as o,u as e,bV as W,E as b,P as n,K as f,aI as X,I as $,aB as A,aC as z,S as O,b2 as F}from"./vendor-0404560d.js";import{s as Q,D as U,a as Y}from"./index-afea52c0.js";import"./axios-c3c6769d.js";import"./vee-validate-378e8b8c.js";import"./swiper-0a0ef14b.js";/*! @license Third-party license notices: /dist/velux-marketing/client/THIRD_PARTY_NOTICES.txt */const B={Message:"message",PriceMarking:"price-marking",WithIcon:"with-icon"},L=y({__name:"CampaignSplash",props:{link:{},splash:{},color:{}},setup(s){const i=s,r={color:void 0,link:{value:{href:"",text:"",linktype:"",target:"",anchor:""}},splash:{icon:{fields:{Value:{value:""}}},id:"",name:"",price:{value:""},priceDescription:{value:""},splashType:B.Message,template:"",text:{value:""}}},{link:a,splash:l}=k(r,i),c=t(()=>!!l.icon),u=t(()=>c.value?void 0:l.text.value),h=t(()=>c.value?l.text.value:l.priceDescription.value),p=t(()=>({link:a}));return(g,m)=>(d(),_(Q,{"link-data":p.value,class:"cursor-pointer"},{default:K(()=>[o(e(W),{color:s.color,"top-text":u.value,"bottom-text":h.value,"middle-text":e(l).price.value,icon:e(l).icon?.name},null,8,["color","top-text","bottom-text","middle-text","icon"])]),_:1},8,["link-data"]))}}),Z={class:"w-full relative"},ee=y({__name:"CampaignImage",props:{isSplashReversed:{type:Boolean},media:{},splash:{},splashLink:{},splashColor:{},lazy:{type:Boolean}},setup(s){const i=s,r={isSplashReversed:!1,media:{lightbox:!1,mediaItems:[]},splash:{icon:{fields:{Value:{value:""}}},id:"",name:"",price:{value:""},priceDescription:{value:""},splashType:B.Message,template:"",text:{value:""}},splashLink:{value:{href:"",text:"",linktype:"",target:"",anchor:""}},lazy:!0},{media:a,isSplashReversed:l,splashLink:c,lazy:u}=k(r,i),h={default:"4/3",sm:"4/3",md:"1/1"},p={default:"full",mobile:"full",sm:"full",md:"full"},g=t(()=>({"mobile:bottom-0 tablet:bottom-0 md:right-0 mobile:translate-y-1/2 tablet:translate-y-1/2 md:translate-x-1/2":l,"mobile:top-0 tablet:top-0 mobile:-translate-y-1/2 tablet:-translate-y-1/2 md:-translate-x-1/2":!l})),m=t(()=>a.mediaItems.length>0);return(C,V)=>(d(),b("div",Z,[n("div",{class:f(["absolute z-10 mobile:right-0 tablet:right-4 md:top-10 lg:top-20",[g.value]])},[o(L,{color:s.splashColor,link:e(c),splash:s.splash},null,8,["color","link","splash"])],2),m.value?(d(),_(e(X),{key:0,"aspect-breakpoints":h,"device-column-span":p,media:e(a).mediaItems,"show-lightbox":e(a).lightbox,"show-native-controls":e(U)(e(a).mediaItems),lazy:e(u),"image-link":e(c)?.value},null,8,["media","show-lightbox","show-native-controls","lazy","image-link"])):$("",!0)]))}}),M=y({__name:"CampaignButton",props:{link:{},linkText:{},onDark:{type:Boolean}},setup(s){const i=s,r={link:{value:{href:"",text:"",linktype:"",target:"",anchor:""}},linkText:{value:""},onDark:!1},{link:a,linkText:l}=k(r,i);return(c,u)=>(d(),_(e(A),{href:e(a).value.href,"on-dark":s.onDark,target:e(a).value.target,"query-string":e(a).value.querystring,anchor:e(a).value.anchor,text:e(l).value,size:"m",type:"page",variant:"tertiary"},null,8,["href","on-dark","target","query-string","anchor","text"]))}}),I=y({__name:"CampaignFootnote",props:{footnote:{}},setup(s){const i=s,r={footnote:{value:""}},{footnote:a}=k(r,i),l=()=>`* ${a.value}`;return(c,u)=>e(a)?.value?(d(),_(e(z),{key:0,field:l(),size:"xs","data-test":"campaign-footnote"},null,8,["field"])):$("",!0)}}),ae=["id","data-section-name"],le={class:"flex flex-col items-start gap-6 sm:gap-8 md:self-stretch md:flex-1 md:items-start md:justify-center"},te={class:"flex flex-col gap-6","data-test":"heading-and-body-container"},se={class:"col-span-full md:col-span-10 flex flex-col sm:flex-row gap-10 sm:gap-8"},oe={class:"flex flex-col items-start gap-2"},ne={class:"col-span-full md:col-span-12 md:col-start-13 flex flex-col gap-4"},he=y({__name:"CampaignBlockVDS",props:{rendering:{},fields:{},params:{}},setup(s){const i=s,{renderingIndex:r}=Y(),a={fields:{body:{value:""},footnote:{value:""},headline:{value:""},link:{value:{href:"",text:"",linktype:"",target:"",anchor:""}},linkText:{value:""},media:{lightbox:!1,mediaItems:[]},splash:{icon:{fields:{Value:{value:""}}},id:"",name:"",price:{value:""},priceDescription:{value:""},splashType:B.Message,template:"",text:{value:""}}},params:{},rendering:{uid:"",datasourceHasLanguageVersion:""}},{fields:l,params:c,rendering:u}=k(a,i),{body:h,footnote:p,headline:g,link:m,linkText:C,media:V,splash:D}=l,{blackFriday:N,textFirst:R}=c,{uid:w}=u,{isFirstComponent:E,id:q}=r(w),v=t(()=>N==="1"),P=t(()=>V.mediaItems.length>0),x=t(()=>R!=="1"),j=t(()=>v.value?"bg-velux-grey-100":"bg-velux-white"),G=t(()=>({"bg-velux-blue-100":!v.value,"bg-velux-grey-800":v.value,"gap-y-16 tablet:gap-y-10":!x.value,"gap-y-24 tablet:gap-y-24":x.value})),S=t(()=>v.value?"text-velux-white":"text-velux-black"),T=t(()=>v.value?"black-friday":void 0),H=t(()=>x.value?"order-1 md:col-start-14":""),J=t(()=>x.value?"order-0":"md:col-start-14");return(ie,re)=>(d(),b("section",{id:e(w),"data-section-name":e(q)},[n("div",{class:f([[j.value],"p-6 sm:p-10 lg:p-9"])},[n("div",{class:f(["p-6 sm:p-10 vlx-grid",[G.value]])},[P.value?(d(),b(O,{key:0},[n("div",{class:f(["col-span-full md:col-span-11 md:flex md:flex-col",[S.value,H.value]])},[n("div",le,[n("div",te,[o(e(F),{field:e(g)?.value},null,8,["field"]),o(e(z),{field:e(h)?.value},null,8,["field"])]),o(I,{class:"md:hidden",footnote:e(p)},null,8,["footnote"]),o(M,{"on-dark":v.value,link:e(m),"link-text":e(C)},null,8,["on-dark","link","link-text"])]),o(I,{class:"mobile:hidden tablet:hidden",footnote:e(p)},null,8,["footnote"])],2),n("div",{class:f(["col-span-full md:col-span-11",J.value])},[o(ee,{"is-splash-reversed":x.value,media:e(V),splash:e(D),"splash-link":e(m),"splash-color":T.value,lazy:!e(E)},null,8,["is-splash-reversed","media","splash","splash-link","splash-color","lazy"])],2)],64)):(d(),b("div",{key:1,class:f(["col-span-full vlx-grid gap-6 sm:gap-10",[S.value]])},[n("div",se,[n("div",null,[o(L,{color:T.value,link:e(m),splash:e(D)},null,8,["color","link","splash"])]),n("div",oe,[o(e(F),{field:e(g)?.value},null,8,["field"]),o(M,{"on-dark":v.value,link:e(m),"link-text":e(C)},null,8,["on-dark","link","link-text"])])]),n("div",ne,[o(e(z),{field:e(h)?.value},null,8,["field"]),o(I,{footnote:e(p)}
1,null,8,["footnote"])])],2))],2)],2)],8,ae))}});export{he 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.