1import{g as t,j as D}from"./lodash-de8cc594.js";import{ag as $,f as e,D as i,E as B,P as o,J as p,G as V,F as x,I as T,O as C,a as M,r as E,S as O,U as P,u as S}from"./vendor-0404560d.js";import{i as q,e as A,d as F,f as I,V as L,a as N,F as G}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 R={class:"max-w-[494px] old_mobile:max-w-full flex old_mobile:flex-col old_mobile:w-full"},z={class:"h-60 old_mobile:h-[199px] min-w-[157px] old_sm:w-[157px] w-full old_mobile:max-w-none old_mobile:w-full bg-old_velux-grey-100 old_mobile:mb-4 old_md:mr-8 old_tablet:mr-5 old_mobile:mx-0"},H={class:"flex flex-col justify-between old_tablet:min-w-[157px]"},J={__name:"BrochuresResultItem",props:{fields:{type:Object,default:()=>{}}},setup(h){const a=h,{t:m}=$(),{isMobile:b}=q(),s=e(()=>b?"420":"157"),f=e(()=>m("Feature/Automatic Promo Modules/Brochure List/Download brochure")),_=e(()=>m("Feature/Automatic Promo Modules/Brochures/Get Started")),r=e(()=>t(a,"fields.image",{})),v=e(()=>t(a,"fields.title",{})),d=e(()=>t(a,"fields.text",{})),g=e(()=>t(a,"fields.file",{})),y=e(()=>n.value?f.value:_.value),n=e(()=>t(g.value,"value.linktype","")==="media"),k=e(()=>({link:g.value}));return(l,u)=>(i(),B("div",R,[o("div",z,[p(A,{class:"h-full w-full object-cover old_mobile:object-bottom",media:r.value,width:s.value},null,8,["media","width"])]),o("div",H,[o("div",null,[p(F,{class:"block mb-2 text-20 old_mobile:text-24 leading-[27px] old_mobile:leading-[28px] font-normal text-old_velux-black",field:v.value},null,8,["field"]),p(F,{class:"text-12 leading-[16px] leading-130 font-bold text-old_velux-grey-700 old_mobile:mb-5.5 line-clamp-6",field:d.value},null,8,["field"])]),o("div",null,[p(L,{class:"tracking-tight leading-old_100 text-12 font-bold uppercase old_mobile:text-14 flex items-center","link-data":k.value,"empty-styles":""},{default:V(()=>[n.value?(i(),x(I,{key:0,name:"arrow-down",class:"mr-2",stroke:"#28231F",width:"16",height:"16"})):T("",!0),o("span",null,C(y.value),1),n.value?T("",!0):(i(),x(I,{key:1,name:"arrow-right",class:"ml-2",width:"16",height:"16"}))]),_:1},8,["link-data"])])])]))}},U=["data-section-name"],W={class:"flex justify-center flex-col items-center mb-[134px]"},K={class:"grid grid-cols-2 old_mobile:grid-cols-1 gap-x-5 gap-y-12 old_mobile:gap-y-[57px] old_mobile:gap-x-0 old_mobile:justify-items-center"},ae={__name:"Brochures",props:{rendering:{type:Object,required:!0},fields:{type:Object,required:!0}},setup(h){const a=h,{renderingIndex:m}=N(),b=e(()=>t(a,"rendering.uid")||"");M(()=>{s.value=r.value});const s=E({}),f=e(()=>t(a,"fields.allBrochuresImage",{})),_=e(()=>t(a,"fields.allBrochuresText",{})),r=e(()=>{const l=t(f.value,"value.src",!1);return!t(_.value,"value",!1)||!l?{}:{image:f.value,title:_.value,isDefault:!0}}),v=e(()=>{const l=t(a,"fields.circleFilterTags",[]),u=D(r.value,{}),c=l.filter(w=>{const j=t(w,"title.value","");return n(j).length});return u?c:[r.value,...c]}),d=e(()=>t(a,"fields.brochures",[])),g=e(()=>v.value.length>0),y=e(()=>{const l=t(s.value,"title.value","");return s.value.isDefault?d.value:l.length>0?n(l):d.value}),n=l=>d.value.filter(u=>(u?.Tags||[]).find(w=>w?.title?.value===l)),k=l=>{if(l.isDefault){s.value=l;return}D(l,s.value)?s.value=r.value:s.value=l};return(l,u)=>(i(),B("div",{"data-section-name":S(m)(b.value).id,class:"container py-25 old_mobile:py-15 px-10 old_mobile:px-6 mx-auto"},[o("div",W,[g.value?(i(),x(G,{key:0,items:v.value,"is-link":!1,"active-field":s.value,"data-test-id":"panel-circle-component",onPanelItemClick:k},null,8,["items","active-field"])):T("",!0)]),o("div",K,[(i(!0),B(O,null,P(y.value,c=>(i(),x(J,{key:c.id,fields:c,"data-test-id":"brochure-list-component"},null,8,["fields"]))),128))])],8,U))}};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.