PageSourceSearch

https://www.egtved.dk/_nuxt/cjiaewfd2.js

js egtved.dk collected 2026-10-03 00:40:36 UTC 10,215 bytes, 1 lines download raw bytes

1import{Aa as e,Ba as t,Ct as a,Ea as l,Hi as i,I as r,Ki as s,Va as n,Ya as o,Yi as u,Zi as d,aa as c,ao as g,at as h,ia as p,it as m,kt as v,na as y,no as f,oa as w,oo as x,ra as b,sa as _,so as C,ua as k,wa as z,wt as M,ya as S}from"./cEYMgSOO.js";import{C as E,y as H}from"#entry";import{t as j}from"./DACZ2b2H2.js";var A={class:"flex flex-col items-start justify-end px-32 py-14 min-h-[calc((var(--visual-viewport-height,100vh)-var(--dynamic-site-header-height,0px))/3)] order-last >=960:order-first"},L={role:"doc-credit",class:"flex items-center gap-4xs"},O={class:"text-caption-md-strong"},F={class:"text-caption-md-regular"},I=Object.assign({inheritAttrs:!1},{__name:"StudyInContentPageHeaderSplitScreen",props:{title:String,backgroundColor:String,image:Object,borderColor:String},setup(e){s(t=>({v761715f8:e.borderColor}));const a=e,d=y(()=>{if(a.title?.length){const e=a.title.split(" ").reduce((e,t)=>t.length>e.length?t:e,"");return Math.min(r(a.title.length,12,40,3.21,1,!0),r(e.length,10,20,2.21,1,!0))}return a.title?.length??1?3.21:1}),g=o(!a.image);z(()=>{setTimeout(()=>{g.value=!0},500)});const h=o({progress:0,update:null}),_={mounted(e){let t=null;h.value.update=()=>{window.cancelAnimationFrame(t),t=window.requestAnimationFrame(()=>{const t=e.getBoundingClientRect(),a=getComputedStyle(e),l=parseFloat(a.scrollMarginTop)||0,i=-(t.top-l),r=t.height,s=Math.round(1e3*Math.abs(i/r))/1e3*1.2;h.value.progress=Math.min(Math.max(s*s,0),1)})},window.addEventListener("scroll",h.value.update,{passive:!0})},unmounted(){window.removeEventListener("scroll",h.value.update)}};return(a,r)=>{const s=j,o=m;return n((l(),w("header",{class:"c-study-in-content-page-header-split-screen",style:x({backgroundColor:e.backgroundColor,"--progress":f(h).progress})},[b("div",A,[k(i,{name:"t-study-in-content-page-header-split-screen__title"},{default:t(()=>[e.title?n((l(),p(s,{key:0,tag:"h1",class:"c-study-in-content-page-header-split-screen__title text-display-lg !leading-90% text-strong whitespace-pre-line hyphens-auto max-w-full",style:x({zoom:f(d)}),text:e.title},null,8,["style","text"])),[[u,f(g)]]):c("",!0)]),_:1})]),e.image?(l(),w("figure",{key:0,class:"c-study-in-content-page-header-split-screen__media relative w-full h-full min-h-[calc((var(--visual-viewport-height,100vh)-var(--dynamic-site-header-height,0px))/3)] overflow-hidden order-first >=960:order-last",style:x({backgroundColor:e.borderColor})},[k(i,{name:"t-study-in-content-page-header-split-screen__image"},{default:t(()=>[n(k(o,{class:"absolute inset-0 !w-full !h-full !aspect-ratio-auto",fit:"cover",sizes:"100vw >=960:50vw",loading:"eager","load-color":"transparent",src:e.image.cropUrl||e.image.url,width:e.image.width,height:e.image.height,alt:e.image.altText,ratio:1,onLoad:r[0]||(r[0]=e=>g.value=!0),onError:r[1]||(r[1]=e=>g.value=!0)},{attribution:t(()=>[e.image?.attribution?(l(),w("figcaption",{key:0,class:"z-10 absolute bottom-sm left-0 mx-sm px-2xs py-4xs rounded-full bg-surface text-medium",style:x({backgroundColor:e.borderColor})},[b("div",L,[b("span",O,C(("localize"in a?a.localize:f(v))("PHOTO",{capitalize:!0})),1),b("span",F," © "+C(e.image.attribution),1)])],4)):c("",!0)]),_:1},8,["src","width","height","alt"]),[[u,f(g)]])]),_:1})],4)):c("",!0)],4)),[[_]])}}}),P={role:"doc-credit",class:"flex items-center gap-4xs"},T={class:"text-caption-md-strong"},B={class:"text-caption-md-regular"},R={key:1,class:"c-study-in-content-page-header-large-media__video absolute inset-0 w-full h-full"},$=["aria-label"],q={class:"row-start-1 col-start-1 flex flex-col items-start justify-end px-32 py-14 min-h-[calc((var(--visual-viewport-height,100vh)-var(--dynamic-site-header-height,0px))/3)]"},U=Object.assign({inheritAttrs:!1},{__name:"StudyInContentPageHeaderLargeMedia",props:{title:String,textColor:String,media:Object},setup(e){s(t=>({v0bd18c7d:e.textColor}));const g=e,_=o(!0),M=y(()=>"image"===g.media?.type?g.media:null),S=y(()=>"video"===g.media?.type?g.media:null),E=y(()=>
1{if(g.title?.length){const e=g.title.split(" ").reduce((e,t)=>t.length>e.length?t:e,"");return Math.min(r(g.title.length,12,40,3.21,1,!0),r(e.length,10,20,3.21,1,!0))}return g.title?.length??1?3.21:1}),H=o(!g.media);z(()=>{setTimeout(()=>{H.value=!0},500)});const A=o({progress:0,update:null}),L={mounted(e){let t=null;A.value.update=()=>{window.cancelAnimationFrame(t),t=window.requestAnimationFrame(()=>{const t=e.getBoundingClientRect(),a=getComputedStyle(e),l=parseFloat(a.scrollMarginTop)||0,i=-(t.top-l),r=t.height,s=Math.round(1e3*Math.abs(i/r))/1e3*1.2;A.value.progress=Math.min(Math.max(s*s,0),1)})},window.addEventListener("scroll",A.value.update,{passive:!0})},unmounted(){window.removeEventListener("scroll",A.value.update)}};function O(){_.value=!_.value}return(r,s)=>{const o=m,g=h,y=a,z=j;return n((l(),w("header",{class:"c-study-in-content-page-header-large-media",style:x({backgroundColor:e.textColor,"--progress":f(A).progress})},[e.media?(l(),w("figure",{key:0,class:"c-study-in-content-page-header-large-media__media row-start-1 col-start-1 relative isolate w-full h-full min-h-[calc((var(--visual-viewport-height,100vh)-var(--dynamic-site-header-height,0px))/3)] overflow-hidden",style:x({backgroundColor:e.textColor})},[k(i,{name:"t-study-in-content-page-header-large-media__media"},{default:t(()=>[f(M)?n((l(),p(o,{key:0,class:"absolute inset-0 !w-full !h-full !aspect-ratio-auto",fit:"cover",sizes:"100vw >=960:50vw",loading:"eager","load-color":"transparent",src:f(M).cropUrl||f(M).url,width:f(M).width,height:f(M).height,alt:f(M).altText,ratio:1,onLoad:s[0]||(s[0]=e=>H.value=!0),onError:s[1]||(s[1]=e=>H.value=!0)},{attribution:t(()=>[f(M)?.attribution?(l(),w("figcaption",{key:0,class:"z-10 absolute top-sm right-0 mx-sm px-2xs py-4xs rounded-full bg-surface text-medium",style:x({backgroundColor:e.textColor})},[b("div",P,[b("span",T,C(("localize"in r?r.localize:f(v))("PHOTO",{capitalize:!0})),1),b("span",B," © "+C(f(M).attribution),1)])],4)):c("",!0)]),_:1},8,["src","width","height","alt"])),[[u,f(H)]]):f(S)?n((l(),w("div",R,[k(g,{class:"w-full h-full","play-state":f(_),video:f(S),preload:"meta",loading:"eager",onPlaying:s[2]||(s[2]=e=>H.value=!0),onCanplay:s[3]||(s[3]=e=>H.value=!0),onError:s[4]||(s[4]=e=>H.value=!0)},null,8,["play-state","video"]),b("button",{role:"button",class:"absolute right-32 top-32 w-48 h-48 z-1","aria-label":f(_)?("localize"in r?r.localize:f(v))("PAUSE_VIDEO",{capitalize:!0}):("localize"in r?r.localize:f(v))("PLAY_VIDEO",{capitalize:!0}),onClick:d(O,["prevent"])},[f(_)?(l(),p(y,{key:0,name:"pause-circle",class:"w-full h-full"})):(l(),p(y,{key:1,name:"play-circle",class:"w-full h-full"}))],8,$)],512)),[[u,f(H)]]):c("",!0)]),_:1})],4)):c("",!0),b("div",q,[k(i,{name:"t-study-in-content-page-header-large-media__title"},{default:t(()=>[e.title?n((l(),p(z,{key:0,tag:"h1",class:"c-study-in-content-page-header-large-media__title text-display-lg !leading-90% text-strong whitespace-pre-line hyphens-auto max-w-full",style:x({zoom:f(E),color:e.media?`color-mix(in lch, rgb(var(--theme-colors-text-strong-on-X) / var(--un-text-opacity)) ${100*f(A).progress}%, ${e.textColor} ${100-100*f(A).progress}%)`:null}),text:e.title},null,8,["style","text"])),[[u,f(H)]]):c("",!0)]),_:1})])],4)),[[L]])}}}),V={key:0,class:"c-study-in-content-page-header-illustration__media absolute inset-0 w-full h-full flex justify-center items-center overflow-hidden"},Y={class:"row-start-1 col-start-1 flex flex-col items-start justify-end px-32 py-14 min-h-[calc((var(--visual-viewport-height,100vh)-var(--dynamic-site-header-height,0px))/3)]"},D=Object.assign({inheritAttrs:!1},{__name:"StudyInContentPageHeaderIllustration",props:{title:String,backgroundColor:String,illustration:Object},setup(e){const a=e,s=y(()=>{if(a.title?.length){const e=a.title.split(" ").reduce((e,t)=>t.length>e.length?t:e,"");return Math.min(r(a.title.length,12,40,4.64,1,!0),r(e.length,10,20,4.64,1,!0))}return a.title?.length??1?4.64:1}),d=o(!1);z(()=>{d.value=!0});const g=o({progress:0,update:null}),h={mounted(e){let t=null;g.value.update=()=>{window.cancelAnimationFrame(t),t=window.requestAnimationFrame(()=>{const t=e.getBoundingClientRect(),a=getComputedStyle(e),l=parseFloat(a.scrollMarginTop)||0,i=-(t.top-l),r=t.height,s=Math.round(1e3*Math.abs(i/r))/1e3*1.2;g.value.progress=Math.min(Math.max(s*s,0),1)})},window.addEventListener("scroll",g.value.update,{passive:!0})},unmounted(){window.removeEventListener("scroll",g.value.update)}};return(a,r)=>{const o=M,m=j;return n((l(),w("header",{class:"c-study-in-content-page-header-illustration",style:x({backgroundColor:e.backgroundColor,"--progress":f(g).progress})},[e.illustration?(l(),w("figure",V,[k(i,{name:"t-study-in-content-page-header-illustration__illustration"},{default:t(()=>[e.illustration?n((l(),p(o,{key:0,svg:e.illustration,"keep-colors":!0,class:"w-90vmin",focusable:"false","aria-hidden":"true"},null,8,["svg"])),[[u,f(d)]]):c("",!0)]),_:1})])):c("",!0),b("div",Y,[k(i,{name:"t-study-in-content-page-header-illustration__title"},{default:t(()=>[e.title?n((l(),p(m,{key:0,tag:"h1",class:"c-study-in-content-page-header-illustration__title text-display-lg !leading-90% text-strong whitespace-pre-line hyphens-auto max-w-full",style:x({zoom:f(s)}),text:e.title},null,8,["style","text"])),[[u,f(d)]]):c("",!0)]),_:1})])],4)),[[h]])}}}),K={class:"d-study-in-content-page"},N=Object.assign({inheritAttrs:!1},{__name:"StudyInContentPage",props:{id:Number,veHero:Object,showLongRead:Boolean,contentElements:Array},setup:a=>(H(),(i,r)=>{const s=I,n=U,o=D,u=E;return l(),w("article",K,[k(u,{name:"content-page-layout","show-long-read":a.showLongRead,"block-list":a.contentElements},_({default:t(()=>
1[e(i.$slots,"error")]),_:2},[a.veHero?{name:"header",fn:t(()=>["SplitScreen"===a.veHero?.alias?(l(),p(s,g(S({key:0},a.veHero)),null,16)):c("",!0),"LargeMedia"===a.veHero?.alias?(l(),p(n,g(S({key:1},a.veHero)),null,16)):c("",!0),"Illustration"===a.veHero?.alias?(l(),p(o,g(S({key:2},a.veHero)),null,16)):c("",!0),r[0]||(r[0]=b("div",{class:"-z-1 absolute h-9999vh snap-start scroll-mt-[var(--dynamic-site-header-height,0px)]"},null,-1))]),key:"0"}:void 0]),1032,["show-long-read","block-list"]),e(i.$slots,"afterLayout")])})});export{N 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.