PageSourceSearch

https://solarmagazine.nl/_nuxt/H2p4UT75.js

js solarmagazine.nl collected 2026-10-02 06:24:49 UTC 5,596 bytes, 1 lines download raw bytes

1import{d as B,r as R,I as E,X as G,i as g,o as d,c as w,a as m,j as k,k as D,a3 as H,C as $,h as e,g as M,t as z,G as y,H as P,a7 as X,b as q,w as J,a8 as K,f,e as c,D as v,F as Q}from"./CQbd9buU.js";import{_ as U}from"./DXBJL5Dv.js";const Y=Symbol.for("nuxt:client-only"),Z=B({name:"ClientOnly",inheritAttrs:!1,props:["fallback","placeholder","placeholderTag","fallbackTag"],setup(t,{slots:l,attrs:a}){const h=R(!1);return E(()=>{h.value=!0}),G(Y,!0),n=>{var i;if(h.value)return(i=l.default)==null?void 0:i.call(l);const s=l.fallback||l.placeholder;if(s)return s();const p=n.fallback||n.placeholder||"",u=n.fallbackTag||n.placeholderTag||"span";return g(u,a,p)}}}),ee=["id"],le={key:0,class:"w-full flex justify-between items-center"},fe=B({__name:"Blok",props:{id:{},class:{},title:{},variant:{},link:{}},setup(t){const l=P("flex flex-col gap-4",{variants:{variant:{default:"bg-background text-foreground",dark:"text-background bg-foreground"}},defaultVariants:{variant:"default"}});return(a,h)=>(d(),g("div",{id:a.$props.id,class:$(("cn"in a?a.cn:e(y))(e(l)({variant:a.$props.variant,class:a.$props.class})))},[a.$props.title||a.$props.link?(d(),g("div",le,[a.$props.title?(d(),w(U,{key:0,level:3},{default:m(()=>[M(z(a.$props.title),1)]),_:1})):k("",!0),a.link&&a.link.position!=="bottom"?(d(),w(D,{key:1,ariaLabel:`Bekijk ${a.link.label}`,class:"underline text-sm md:text",href:a.link.href},{default:m(()=>[M(z(a.link.label),1)]),_:1},8,["ariaLabel","href"])):k("",!0)])):k("",!0),H(a.$slots,"default"),a.link&&a.link.position==="bottom"?(d(),w(D,{key:1,ariaLabel:`Bekijk ${a.link.label}`,class:"underline text-sm md:text",href:a.link.href},{default:m(()=>[M(z(a.link.label),1)]),_:1},8,["ariaLabel","href"])):k("",!0)],10,ee))}}),ae=X("ad",{state:()=>({ads:[]}),actions:{async getFull(t){if(!this.ads||this.ads.length==0){const{data:l}=await q("/api/v1/ad/page/1");return this.ads=l.value.items,this.shuffle(this.ads[t]||this.ads.A)}else return this.shuffle(this.ads[t]||this.ads.A)},shuffle(t){let l=t.length,a;for(;l>0;)a=Math.floor(Math.random()*l),l--,[t[l],t[a]]=[t[a],t[l]];return t}}}),se={key:0,class:"flex w-full"},ne=["aria-label","href"],ie={key:1,class:"flex gap-4 md:gap-6 w-full"},te=["aria-label","href"],oe=["aria-label","href"],re={class:"flex w-full"},de=["aria-label"],A=B({__name:"Ad",props:{class:{},position:{},hideWhenMobile:{type:Boolean}},async setup(t){let l,a;const h=t,n=([l,a]=J(()=>ae().getFull(h==null?void 0:h.position)),l=await l,a(),l),s=R(0),{pause:p,resume:u}=K(()=>{s.value+1<n.length?s.value=s.value+1:s.value=0},4e3);return(i,o)=>{const W=Z;return d(),w(W,null,{fallback:m(()=>{var b;return[f("div",re,[f("a",{class:"w-full","aria-label":`Bezoek de website van: ${(b=e(n)[e(s)])==null?void 0:b.cluster}`},[c(v,{class:"w-full invisible",src:"/ad_placeholder.svg",height:"126",width:"628",alt:"ad-placeholder",loading:i.position==="A"||i.position==="B"?"eager":"lazy",sizes:"597px sm:360px md:468px lg:710px xl:940px"},null,8,["loading"])],8,de)])]}),default:m(()=>{var b,_,S,x,C,j,L,T,V,F,I,N,O;return[f("div",{class:$(("cn"in i?i.cn:e(y))(`sm:flex gap-4 sm:w-1/2 w-full ${i.$props.hideWhenMobile&&"hidden"}`,i.$props.class))},[((b=e(n)[e(s)])==null?void 0:b.afbeelding2)===""?(d(),g("div",se,[f("a",{"aria-label":`Bezoek de website van: ${(_=e(n)[e(s)])==null?void 0:_.cluster}
1`,class:"shadow w-full",onMouseenter:o[0]||(o[0]=(...r)=>e(p)&&e(p)(...r)),onMouseleave:o[1]||(o[1]=(...r)=>e(u)&&e(u)(...r)),href:(S=e(n)[e(s)])==null?void 0:S.link1,target:"_blank"},[c(v,{class:"w-full rounded",src:(x=e(n)[e(s)])==null?void 0:x.afbeelding1,alt:(C=e(n)[e(s)])==null?void 0:C.id,height:"126",width:"628",loading:i.position==="A"||i.position==="B"?"eager":"lazy",sizes:"597px sm:360px md:468px lg:596px xl:628px"},null,8,["src","alt","loading"])],40,ne)])):(d(),g("div",ie,[f("a",{"aria-label":`Bezoek de website van: ${(j=e(n)[e(s)])==null?void 0:j.cluster}`,class:"shadow w-full",onMouseenter:o[2]||(o[2]=(...r)=>e(p)&&e(p)(...r)),onMouseleave:o[3]||(o[3]=(...r)=>e(u)&&e(u)(...r)),href:(L=e(n)[e(s)])==null?void 0:L.link1,target:"_blank"},[c(v,{class:"w-full rounded",src:(T=e(n)[e(s)])==null?void 0:T.afbeelding1,alt:(V=e(n)[e(s)])==null?void 0:V.id,height:"126",width:"302",loading:i.position==="A"||i.position==="B"?"eager":"lazy",sizes:"296px sm:172px md:222px lg:286px xl:302px"},null,8,["src","alt","loading"])],40,te),f("a",{"aria-label":`Bezoek de website van: ${(F=e(n)[e(s)])==null?void 0:F.cluster}`,class:"shadow w-full",onMouseenter:o[4]||(o[4]=(...r)=>e(p)&&e(p)(...r)),onMouseleave:o[5]||(o[5]=(...r)=>e(u)&&e(u)(...r)),href:(I=e(n)[e(s)])==null?void 0:I.link2,target:"_blank"},[c(v,{class:"w-full rounded",src:(N=e(n)[e(s)])==null?void 0:N.afbeelding2,alt:(O=e(n)[e(s)])==null?void 0:O.id,height:"126",width:"302",loading:i.position==="A"||i.position==="B"?"eager":"lazy",sizes:"296px sm:172px md:222px lg:286px xl:302px"},null,8,["src","alt","loading"])],40,oe)]))],2)]}),_:1})}}}),he=B({__name:"BlokAds",props:{class:{},positionLeft:{},positionRight:{},positionMobile:{}},setup(t){return(l,a)=>(d(),g(Q,null,[f("div",{class:$(("cn"in l?l.cn:e(y))(`${l.positionMobile?"sm:hidden":"hidden"} items-center md:gap-6 gap-4 justify-center`,l.$props.class))},[c(A,{position:l.positionMobile||"A"},null,8,["position"])],2),f("div",{class:$(("cn"in l?l.cn:e(y))(`${l.positionMobile?"hidden sm:flex":"flex"} items-center gap-4 md:gap-6 justify-center`,l.$props.class))},[c(A,{position:l.positionLeft},null,8,["position"]),c(A,{position:l.positionRight,"hide-when-mobile":""},null,8,["position"])],2)],64))}});export{he as _,fe as a,Z as b,A as c};

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.