PageSourceSearch

https://www.udeoghjemme.dk/_nuxt/B1okii1U.js

js udeoghjemme.dk collected 2026-10-02 11:32:53 UTC 7,153 bytes, 1 lines download raw bytes

1import{_ as O}from"./BZ3Z8etp.js";import{d as G,am as H,W as D,G as T,Y as V,o as g,b as U,w as K,u as s,c as f,a as e,t as h,F as Y,r as J,g as Q,f as v,as as X,ag as Z,h as $,D as ee}from"./DKrs1c_V.js";import{u as te,a as le}from"./BvDkglNq.js";import{u as se}from"./BNOczygK.js";const ae={key:0,class:"bg-blue-600 fixed inset-0 z-100 pt-20 lg:pt-80 lg:px-60"},ne={class:"text-28 leading-32 font-bold text-white pl-10 pr-50 mb-10 lg:hidden lscape:hidden"},oe={class:"max-w-[1480px] mx-auto"},re={class:"lscape:flex lg:flex"},ie={class:"relative max-w-[1050px] md:min-h-[500px] flex-1"},de=["disabled"],ce=["disabled"],ue={class:"flex min-w-full"},me={key:0,class:"w-full lg:w-auto"},ge=["srcset"],pe=["srcset"],fe=["srcset"],he=["srcset"],be=["srcset"],ve=["srcset"],we={class:"flex items-start justify-between bg-grey-400 text-white p-10 lg:p-20 lscape:p-20 flex-grow lscape:flex-col lscape:justify-start lg:flex-col lg:justify-start lg:min-w-[330px] xl:min-w-[430px] lscape:min-w-[330px] lg:w-[330px] xl:w-[430px] lscape:w-[330px] lg:max-w-[330px] lscape:max-w-[330px] xl:max-w-[430px]"},xe={class:"font-bold text-34 leading-36 hidden lg:block lscape:block"},ye={class:"pr-20 text-13 leading-17 lg:text-20 lg:leading-30 flex-grow lg:mb-15 max-h-[60px] lscape:max-h-[140px] lg:max-h-[315px] overflow-y-auto"},_e=["innerHTML"],Le={key:1},ke={class:"text-13 font-medium lg:text-18 flex lg:order-first lscape:order-first lg:mb-15"},Ee=G({__name:"FullscreenGallery",props:{gallery:{type:Object,required:!0},opened:{type:Boolean,default:!1},renderWidths:{type:Array,required:!0}},emits:["close"],setup(n,{emit:E}){const c=n,u=(a,t)=>{const{mediaSrc:o,defaultModifiers:l}=te(a),p=le();return c.renderWidths.map(r=>{const M={...l,...t,w:r};return p(o,M)+" "+r+"w"})},j=E,S=Z(c,"opened");window.dataLayer=window.dataLayer||[];const A=a=>{const t=ee();window.dataLayer=window.dataLayer||[],window.dataLayer.push({page_url:t.fullPath||void 0,event:"gallery_view",gallery_title:c.gallery.title||void 0,gallery_index:a+1||void 0,gallery_total:c.gallery.media.length||void 0,fullscreen:!0})},_=a=>{if(A(a),a+1>=c.gallery.media.length)return;const t=c.gallery.media[a+1],o=window.outerWidth,l=o>1279?"1050:750":o>1109?"800:650":o>1023?"474:550":o>767?"500:357":o>399?"320:464":"320:364",p=u(t,{fit:"contain",ar:l,fill:"blur"}).join(" ,"),r=document.createElement("link");r.id="gallery-preload-"+(a+1).toString(),r.as="image",r.rel="preload",r.imageSrcset=p,r.imageSizes="100vw",document.getElementById("gallery-preload-"+(a+1).toString())||document.head.append(r)},{sliderHeader:B}=H(),q=!!B,{sliderRef:m,currentIndex:i,gotoPrev:w,gotoNext:x,prevActive:z,nextActive:C,resize:I,scrollListener:y,observer:b}=se({sliderConf:{responsive:[{breakpoint:768,items:1,stagePadding:0,slidePadding:0,navigation:!1}]},lengthOverride:c.gallery.media.length},q),L=a=>{switch(a.key){case"ArrowLeft":w();break;case"ArrowRight":x();break;case"Escape":k();break}},F=D(i,()=>{_(i.value)}),d=$(null),N=()=>{document.getElementById("site-header")?.classList.remove("header-no-modal"),document.getElementById("site-header")?.classList.add("header-when-modal")},P=()=>{document.getElementById("site-header")?.classList.replace("header-when-modal","header-no-modal")},R=()=>{document.querySelector("body")?.classList.add("body-when-modal")},W=()=>{document.querySelector("body")?.classList.remove("body-when-modal"),b.value?.disconnect(),m.value?.removeEventListener("scroll",()=>y())};T(()=>{_(0),m&&m.value&&(m.value.addEventListener("scroll",()=>y(),{passive:!0}),b.value=new ResizeObserver(()=>{I()}),b.value.observe(m.value),d.value=document.querySelectorAll('div [id^="jwPlayer"]')[0],d.value&&d.value.parentElement&&d.value.parentElement.classList.add("hidden"),document.body.classList.add("overflow-hidden")),window.addEventListener("keyup",L)}),V(()=>{F(),b.value?.disconnect(),m.value?.removeEventListener("scroll",()=>y()),d.value&&d.value.parentElement&&(d.value.parentElement.classList.remove("hidden"),d.value=null),document.body.classList.remove("overflow-hidden"),window.removeEventListener("keyup",L)});const k=()=>{j("close")};return(a,t)=>{const o=O;return g(),U(X,{name:"modal",onEnter:N,onAfterEnter:R,onBeforeLeave:W,onAfterLeave:P},{default:K(()=>[s(S)?(g(),f("div",ae,[e("h1",ne,h(n.gallery.title),1),e("button",{class:"absolute top-0 right-0 square-20 bg-svg-x-white bg-no-repeat bg-contain mr-10 mt-20 lg:mr-20","aria-label":"Luk galleri",onClick:k}),e("div",oe,[e("div",re,[e("div",ie,[e("button",{"aria-label":"Forrige",disabled:!s(z),
1class:"touch-manipulation disabled:opacity-25 disabled:hover:bg-blue-300 bg-blue-300 hover:bg-gold-200 absolute top-50p left-0 z-10 -mt-20 -ml-5 square-44 flex items-center justify-center focus:outline-none",onClick:t[0]||(t[0]=(...l)=>s(w)&&s(w)(...l))},[...t[2]||(t[2]=[e("span",{class:"bg-svg-arrow-white square-15 bg-contain bg-center bg-no-repeat rotate-90 transform"},null,-1)])],8,de),e("button",{"aria-label":"Næste",disabled:!s(C),class:"touch-manipulation disabled:opacity-25 disabled:hover:bg-blue-300 bg-blue-300 hover:bg-gold-200 absolute top-50p right-0 z-10 -mt-20 -mr-5 square-44 flex items-center justify-center focus:outline-none",onClick:t[1]||(t[1]=(...l)=>s(x)&&s(x)(...l))},[...t[3]||(t[3]=[e("span",{class:"bg-svg-arrow-white square-15 bg-contain bg-center bg-no-repeat -rotate-90 transform"},null,-1)])],8,ce),e("div",{ref_key:"sliderRef",ref:m,class:"overflow-x-scroll scroll-smooth snap-x snap-mandatory snap-slider__scroller"},[e("div",ue,[(g(!0),f(Y,null,J(n.gallery.media,(l,p)=>(g(),f("div",{class:"flex-none flex items-start w-full snap-start snap-always",key:p},[p<s(i)+2?(g(),f("picture",me,[e("source",{srcset:u(l,{fit:"contain",ar:"1050:750",fill:"blur"}).join(" ,"),media:"(min-width:1280px)"},null,8,ge),e("source",{srcset:u(l,{fit:"contain",ar:"800:650",fill:"blur"}).join(" , "),media:"(min-width:1110px)"},null,8,pe),e("source",{srcset:u(l,{fit:"contain",ar:"474:550",fill:"blur"}).join(" ,"),media:"(min-width:1024px)"},null,8,fe),e("source",{srcset:u(l,{fit:"contain",ar:"500:357",fill:"blur"}).join(" ,"),media:"(min-width:768px)"},null,8,he),e("source",{srcset:u(l,{fit:"contain",ar:"500:397",fill:"blur"}).join(" ,"),media:"(orientation: landscape) and (max-width:1023px)"},null,8,be),e("source",{srcset:u(l,{fit:"contain",ar:"320:464",fill:"blur"}).join(" ,"),media:"(min-width:400px)"},null,8,ve),Q(o,{media:l,width:"320",height:"364",loading:"lazy",class:"object-contain w-full h-auto max-w-full max-h-auto",sizes:"100vw",modifiers:{fit:"contain",ar:"320:364",fill:"blur"}},null,8,["media"])])):v("",!0)]))),128))])],512)]),e("div",we,[e("h1",xe,h(n.gallery.title),1),e("div",ye,[n.gallery.media[s(i)].description?(g(),f("span",{key:0,class:"inline",innerHTML:n.gallery.media[s(i)].description},null,8,_e)):v("",!0),n.gallery.media[s(i)].credits?(g(),f("p",Le,h(n.gallery.media[s(i)].credits),1)):v("",!0)]),e("div",ke,[e("span",null,h(s(i)+1),1),e("span",null,"/"+h(n.gallery.media.length),1)]),t[4]||(t[4]=e("div",{class:"hidden lg:block w-full max-h-[250px]"},null,-1))])])])])):v("",!0)]),_:1})}}}),qe=Object.assign(Ee,{__name:"FullscreenGallery"});export{qe 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.