1import{g as t}from"./lodash-de8cc594.js";import O from"./ArticleImagesCard-ec61b3e6.js";import{a as w,z as B,d as E}from"./index-afea52c0.js";import{a0 as S,f as e,D as i,E as g,P as q,S as D,U as N,F as v,G as V,K as n,I as j,u as P}from"./vendor-0404560d.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 T={landscape_portrait:["4:3","3:4"],portrait_landscape:["3:4","4:3"],landscape_landscape:["4:3","4:3"],portrait_portrait:["3:4","3:4"],landscape:["4:3"],portrait:["3:4"]},z=["data-section-name"],J=S({__name:"ArticleImages",props:{rendering:{type:Object,required:!0},fields:{type:Object,required:!0},params:{type:Object,required:!0},placeholderName:{type:String,required:!0}},setup(f){const a=f,{renderingIndex:_}=w(),x=e(()=>t(a,"rendering.uid")||""),b=e(()=>t(a,"params[Background ColorValue]","")),h=e(()=>t(a,"params.LayoutValue")),c=e(()=>T[h.value]||["",""]),y=e(()=>c.value.length===1),p=e(()=>{const l=[],u=t(a,"fields.image1"),d=t(a,"fields.caption1"),o={image:u,description:d,aspectRatio:c.value[0]||""},r=t(a,"fields.image2"),L=t(a,"fields.caption2"),R={image:r,description:L,aspectRatio:c.value[1]||""};return l.push(o),y.value||l.push(R),l.filter(A=>t(A,"image.value.src","").length)}),m=e(()=>p.value.length),s=e(()=>p.value.length>1),C=e(()=>s.value?"col-span-1 tablet:col-span-6 md:col-span-7 lg:col-span-6":"col-span-2 tablet:col-span-12 md:col-span-11 lg:col-span-10"),I=e(()=>({"pb-16 sm:pb-20 md:pb-30 md:px-0 px-10 mobile:px-5 lg:max-w-screen-lg lg:mx-auto":m.value,"md:px-0":m.value&&k.value})),k=e(()=>a.placeholderName===B.ARTICLE);return(l,u)=>(i(),g("div",{"data-section-name":P(_)(x.value).id,class:n(I.value)},[q("div",{class:n(["gap-4 sm:gap-6 grid grid-cols-2 tablet:grid-cols-12 md:grid-cols-24 items-start",b.value])},[(i(!0),g(D,null,N(p.value,(d,o)=>(i(),v(O,{key:o,class:n(["grid gap-x-4 sm:gap-x-6",{"md:col-span-9 md:grid-cols-9 tablet:grid-cols-6 tablet:col-span-6 col-span-1 grid-cols-1":s.value,"md:col-span-18 md:grid-cols-18 tablet:grid-cols-12 tablet:col-span-12 col-span-2 grid-cols-2":!s.value,"md:col-start-4":o===0}]),"is-multiple-image":s.value,card:d},{description:V(r=>[r?.value.length?(i(),v(E,{key:0,tag:"p",class:n(["lg:text-14 font-360 sm:font-400 lg:pt-3 text-12 leading-130 pt-2 text-velux-grey-800",C.value]),field:r},null,8,["class","field"])):j("",!0)]),_:1},8,["class","is-multiple-image","card"]))),128))],2)],10,z))}});export{J 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.