1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DT45u0Hx.js","./Dz7HTMd6.js","./zYj6vDai.js","./entry.DzGDL_kh.css","./B9aoPnQZ.js","./BW8hNH1G.js","./fullscreenGallery.BbaDlpZm.css"])))=>i.map(i=>d[i]); 2import{d as S,i as z,o as s,b as u,t as B,r as m,m as i,k as g,n as y,w as E,q as f,c as L,T as k,z as I,aE as q,aF as A,a4 as j,a5 as W}from"./zYj6vDai.js";import{_ as O}from"./Dz7HTMd6.js";const V=j(()=>W(()=>import("./DT45u0Hx.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url).then(e=>e.default||e)),G={key:0,class:"font-heebo font-bold text-26 leading-32 mb-5"},M=S({__name:"gallery",props:{componentContent:{type:Object,required:!0},type:{type:String,required:!1},title:{type:Boolean,default:!0},border:{type:Boolean,default:!0},main:{type:Boolean,default:!1},imgSizing:{type:String},lazyImg:{type:String,default:"lazy"},renderWidths:{type:Array,default:()=>[320,360,380,390,410,1020,1080,1280,1440,1900]}},setup(e){const c=e,d=I(!1),p=(o,t)=>{const{mediaSrc:n,defaultModifiers:l}=q(o),r=A();return c.renderWidths.map(a=>{const C={...l,...t,w:a};return r(n,C)+" "+a+"w"})},b=o=>{const t=c.componentContent.gallery.media[o],n=window.outerWidth,l=n>1279?"1050:750":n>1109?"800:650":n>1023?"474:550":n>767?"500:357":n>399?"320:464":"320:364",r=p(t,{fit:"contain",ar:l,fill:"blur"}).join(" ,"),a=document.createElement("link");a.id="gallery-init-preload-"+o.toString(),a.as="image",a.rel="preload",a.imageSrcset=r,a.imageSizes="100vw",document.getElementById("gallery-init-preload-"+o.toString())||document.head.append(a)},h=()=>{document.getElementById("site-header")?.classList.remove("header-no-modal"),document.getElementById("site-header")?.classList.add("header-when-modal")},w=()=>{document.getElementById("site-header")?.classList.replace("header-when-modal","header-no-modal")},v=()=>{document.querySelector("body")?.classList.add("body-when-modal")},x=()=>{document.querySelector("body")?.classList.remove("body-when-modal")};return z(()=>{b(0)}),(o,t)=>{const n=O,l=V;return e.componentContent.gallery.media[0]?(s(),u("div",{key:0,class:y({"mb-25 p-20 pt-10 bg-gray-100 -mx-20 lg:mx-0 rounded-10":e.border&&!e.main,"pb-10 bg-gray-100":e.main})},[e.componentContent.gallery.title&&e.title&&!e.main?(s(),u("h2",G,B(e.componentContent.gallery.title),1)):m("",!0),i("button",{onClick:t[0]||(t[0]=r=>d.value=!0),class:"relative w-full flex group"},[g(n,{media:e.componentContent.gallery.media[0],sizes:e.imgSizing?e.imgSizing:e.main?"(max-width: 768px) calc(100vw - 40px), 900px":"(max-width: 768px) 99vw, 630px",modifiers:{ar:"16:9"},width:"300",height:"169",alt:e.componentContent.gallery.media[0].alt,"render-widths":[300,360,410,650,1280,1440],class:y(e.main?"rounded-t-10":"rounded-10")},null,8,["media","sizes","alt","class"]),t[2]||(t[2]=i("div",{class:"absolute inset-0 flex items-center justify-center"},[i("div",{class:"square-150 flex flex-col items-center justify-center p-5 bg-red-400/75 rounded-full group-hover:bg-red-400 transition-colors duration-200"},[i("div",{class:"font-heebo font-bold text-20 leading-24 mb-5 text-white uppercase"},"Se Galleri"),i("i",{class:"square-40 bg-svg-gallery-white bg-center bg-no-repeat"})])],-1))]),g(k,{name:"modal",onEnter:h,onAfterEnter:v,onBeforeLeave:x,onAfterLeave:w},{default:E(()=>[f(d)?(s(),L(l,{key:0,"render-widths":e.renderWidths,gallery:e.componentContent.gallery,opened:f(d),onClose:t[1]||(t[1]=r=>d.value=!1)},null,8,["render-widths","gallery","opened"])):m("",!0)]),_:1})],2)):m("",!0)}}}),D=Object.assign(M,{__name:"ContentGallery"});export{D 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.