PageSourceSearch

https://www.velux.dk/dist/velux-marketing/client/assets/ArticleBottom-04af96e4.js

js velux.dk collected 2026-09-24 10:11:45 UTC 7,036 bytes, 1 lines download raw bytes

1import{g as e}from"./lodash-de8cc594.js";import{D as a,F as L,G as M,J as h,u as V,f as n,E as d,S as U,U as E,K as g,I as k,P as J,ag as K}from"./vendor-0404560d.js";import{f as W,s as R,g as H,_ as z,e as Q,d as X,S,u as Y,a as Z}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 ee={__name:"ArticleBottomSocialItem",props:{item:{type:Object,required:!0}},setup(c){const{trackEvent:l}=H(),m=u=>u.find(v=>v.event?.event==="share_social")?.id;return(u,v)=>(a(),L(R,{"link-data":{link:c.item.link}},{default:M(()=>[h(W,{name:c.item?.icon?.name,width:c.item?.icon?.width||24,height:c.item?.icon?.height||24,"is-circle":c.item?.icon?.isCircle||!1,"stroke-width":"1",onClick:v[0]||(v[0]=x=>V(l)(c.item.analyticParameters,m(c.item.analyticParameters),"ArticleBottomSocialItem"))},null,8,["name","width","height","is-circle"])]),_:1},8,["link-data"]))}};const te={key:0,class:"max-w-22.5 max-h-22.5"},le={key:1,class:"pt-3"},se={key:1},ie={key:3,class:"flex gap-6 items-end"},ae={__name:"ArticleBottomItem",props:{items:{type:Array,required:!0},socialLinks:{type:Object,required:!1,default:()=>{}}},setup(c){const l=c,m=n(()=>e(l,"items",[]).filter(({hasContent:f})=>f)),u=n(()=>e(l,"socialLinks",[])),v=n(()=>m.value?.length),x=n(()=>m.value.length>1),b=i=>e(i,"link.value.href",!1),N=({description:i})=>e(i,"value",!1),P=i=>!!e(i,"title.value","").length,y=i=>{const f=e(i,"description.value","").length,t=e(i,"link.value.href","").length,p=P(i),_=p&&(b(i)?t:f),A=p&&!!i.hasContent;return _||A},j=i=>[{"old_sm:max-w-[50%] flex-1 old_mobile:border-t old_mobile:border-old_velux-grey-550 pt-10":x.value,"flex flex-row gap-6 pb-6":i?.hasAuthorInfo}];return(i,f)=>v.value?(a(),d("div",{key:0,class:g(["flex old_mobile:flex-col gap-6 border-t border-old_velux-grey-550",x.value?"pb-10":"py-10"])},[(a(!0),d(U,null,E(m.value,(t,p)=>(a(),d("div",{key:p,class:g(j(t))},[t?.hasAuthorInfo?(a(),d("div",te,[h(Q,{class:"rounded-full overflow-hidden w-22.5 h-22.5 bg-velux-grey-400",media:t?.authorImage},null,8,["media"])])):k("",!0),J("div",null,[y(t)?(a(),L(X,{key:0,tag:"p",class:"uppercase text-14 leading-100 tracking-6 text-old_velux-grey-500 font-normal",field:t?.title},null,8,["field"])):k("",!0),y(t)?(a(),d("div",le,[b(t)?(a(),L(R,{key:0,"link-data":{link:t?.link||{}}},{default:M(()=>[h(S,{tag:"div",class:"old_2xl:text-20 text-16 leading-135 text-old_velux-black font-light",field:t?.description},null,8,["field"])]),_:2},1032,["link-data"])):t?.hasAuthorInfo?(a(),d("div",se,[h(S,{tag:"div",class:g(["old_2xl:text-20 text-16 leading-135 text-old_velux-black font-light",{"rich-text-source":t?.isSource}]),field:t?.description},null,8,["class","field"]),h(S,{tag:"div",class:g(["old_2xl:text-20 text-16 leading-135 text-old_velux-black font-light",{"rich-text-source":t?.isSource}]),field:t?.authorLastName},null,8,["class","field"]),h(S,{tag:"div",class:g(["old_2xl:text-20 text-16 leading-135 text-old_velux-black font-light",{"rich-text-source":t?.isSource}]),field:t?.authorInfo},null,8,["class","field"])])):N(t)?(a(),L(S,{key:2,tag:"div",class:g(["old_2xl:text-20 text-16 leading-135 text-old_velux-black font-light",{"rich-text-source":t?.isSource}]),field:t?.description},null,8,["class","field"])):k("",!0),t?.isSocialLinks?(a(),d("div",ie,[(a(!0),d(U,null,E(u.value,(_,A)=>(a(),L(ee,{key:A,item:_},null,8,["item"]))),128))])):k("",!0)])):k("",!0)])],2))),128))],2)):k("",!0)}},$=z(ae,[["__scopeId","data-v-17596543"]]);const ne=["data-section-name"],oe={class:"border-b border-old_velux-grey-550 md:col-span-12 md:col-start-4 lg:col-span-10 lg:col-start-5 sm:col-span-10 sm:col-start-2 col-start-1 col-span-2"},re={key:0},ce={key:1},ue={__name:"ArticleBottom",props:{rendering:{type:Object,required:!0},fields:{type:Object,required:!0}},setup(c){const l=c,m=Y(),{t:u}=K(),{renderingIndex:v}=Z(),x=n(()=>e(l,"rendering.uid")||""),b={instagram:{name:"instagram",width:24,height:24},pinterest:{name:"pinterest",width:24,height:24,isCircle:!0},facebook:{name:"facebook",width:24,height:24,isCircle:!0},twitter:{name:"twitter",width:24,height:24},linkedin:{name:"linkedin",width:24,height:24},default:{name:"link",width:16,height:16}},N=n(()=>e(l,"fields.author.fields",!1)),P=n(()=>!!N.value),y=n(()=>e(m,"routeData.fields.Title.value","")),j=n(()=>e(m,"routeData.fields['Main Image'].value.src","")),i=n(()=>typeof window>"u"?e(m,"sitecoreContext.canonical",""):e(window,"location.href","")),f=n(()=>{const o={value:u("Feature/Articles/Article Bottom/Author")||""},s=e(l,"fields.authorName",{value:""}),r=e(l,"fields.authorLink",{value:{}}),w=e(s,"value","").length;return{title:o,description:s,link:r,hasContent:w}}),t=n(()=>{const o={value:u("Feature/Articles/Article Bottom/Author")||""},s=e(l,"fields.author.fields.Name",{value:""}),r=e(l,"fields.author.fields.lastName",""),w=e(s,"value","").length,F=e(l,"fields.author.fields.Image",{}),C=e(l,"fields.author.fields['Company Name']",""),B=e(l,"fields.author.fields.Title",""),T=C.value?{value:`${B.value}, ${C.value}`}:{value:B.value};return{title:o,description:s,authorLastName:r,hasContent:w,authorImage:F,authorInfo:T,hasAuthorInfo:!0}}),p=n(()=>{const o={value:u("Feature/Articles/Article Bottom/About")||""},s=e(l,"fields.author.fields.About",{value:""}),r=e(s,"value","").length;return{title:o,description:s,hasContent:r}}),_=n(()=>{const o={value:u("Feature/Articles/Article Bottom/Published")||""},s={value:e(l,"fields.publicationDate","")}
1,r=e(s,"value","").length;return{title:o,description:s,hasContent:r}}),A=n(()=>{const o={value:u("Feature/Articles/Article Bottom/Sources")||""},s=e(l,"fields.sources",{value:""}),r=e(s,"value","").length;return{title:o,description:s,hasContent:r,isSource:!0}}),I=n(()=>{const o={value:u("Feature/Articles/Article Bottom/Share")||""},s=e(l,"fields.socialLinks",{}),r=Object.keys(s).reduce((F,C)=>{const B=s[C]||"",T=e(B,"url",""),O=T.replace("${message}",y.value).replace("${description}",y.value).replace("${link}",i.value).replace("${media}",j.value),G=B.analyticParameters.map(D=>{const q=D.event.link_url||"";return q&&(D.event.link_url=q.replace("@url@",O)),D});return T.length&&F.push({link:{value:{href:O,linktype:"external",target:"_blank"}},icon:b[C]||b.default,analyticParameters:G||[]}),F},[]),w=r?.length;return{title:o,items:r,hasContent:w,isSocialLinks:!0}});return(o,s)=>(a(),d("div",{"data-section-name":V(v)(x.value).id,class:"vlx-grid-18 mobile:px-6 tablet:px-10 md:pb-30 sm:pb-20 pb-16"},[J("div",oe,[P.value?(a(),d("div",re,[h($,{items:[t.value,p.value]},null,8,["items"]),h($,{items:[_.value,I.value],"social-links":I.value.items},null,8,["items","social-links"])])):(a(),d("div",ce,[h($,{items:[f.value,_.value]},null,8,["items"]),h($,{items:[I.value],"social-links":I.value.items},null,8,["items","social-links"])])),h($,{items:[A.value]},null,8,["items"])])],8,ne))}},_e=z(ue,[["__scopeId","data-v-2e36837e"]]);export{_e 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.