1import{Bt as e,Cn as t,Gn as n,Gt as r,Ht as i,Jt as a,Kn as o,Mt as s,St as c,Un as l,Wn as u,_t as d,an as f,gt as p,hn as m,ht as h,i as g,mt as _,on as v,ot as y,p as b,pt as x,sn as S,wt as C,xt as w,zt as T}from"./DoyPHv42.js";import{A as E}from"./Cxo179hw.js";import{r as D}from"./DWUVKMnd.js";import{t as O}from"./uBIymjUX.js";import{l as k}from"./V_o3STzL.js";import{c as A,h as j,n as M,p as N,r as P,s as F,t as I,x as L}from"#entry";import{n as R}from"./bOWkIto0.js";import{t as z}from"./CVqIQfuz.js";import{a as ee,n as te,t as ne}from"./CRSxbnT9.js";var B={class:`mogbille-cursor pointer-events-none fixed top-0 left-0 z-100 h-[15vw] w-[15vw] -translate-x-1/2 -translate-y-1/2 drop-shadow-md will-change-transform lg:h-[5vw] lg:w-[5vw]`},V=[`src`],H=Object.assign(C({__name:`MogbilleCursor`,setup(n){let a=[`/mogbille_default.png`,`/mogbille_fly1.png`,`/mogbille_fly2.png`],o=m(a[0]),{width:s,height:c}=k(),u=!1,f=s.value/2,p=c.value/2,h=performance.now(),g=0,v=0;return T(async()=>{let{gsap:t}=await O(async()=>{let{gsap:e}=await import(`./806FECi5.js`);return{gsap:e}},[],import.meta.url),n=document.querySelector(`.mogbille-cursor`);if(!n)return;t.set(n,{xPercent:-50,yPercent:-50});let r={x:s.value/2,y:c.value/2},i={x:r.x,y:r.y},l=t.quickSetter(n,`x`,`px`),d=t.quickSetter(n,`y`,`px`),m=null,_=!1,y=()=>{m&&clearTimeout(m),m=setTimeout(()=>{_=!0,b(),o.value=a[0]},3e3)},b=()=>{if(!_)return;let e=()=>{if(!_)return;let n=Math.random()*Math.PI*2,r=Math.random()*30+10,a=Math.max(0,Math.min(s.value,i.x+Math.cos(n)*r)),o=Math.max(0,Math.min(c.value,i.y+Math.sin(n)*r));t.to(i,{duration:Math.random()*.5+.1,x:a,y:o,ease:`none`,onUpdate:()=>{x(a,o)},onComplete:()=>{_&&setTimeout(e,Math.random()*400+100)}})};e()},x=(e,i)=>{let a=e-r.x,o=i-r.y,s=180/Math.PI*Math.atan2(o,a);t.to(n,{rotation:s,duration:.3,ease:`power2.out`})},S=e=>{let n=performance.now(),r=n-h,s=e.x-f,c=e.y-p,l=Math.sqrt(s*s+c*c);if(v=Math.min(5,l/r),f=e.x,p=e.y,h=n,i.x=e.x,i.y=e.y,_&&(_=!1,t.killTweensOf(i)),l>10){let e=Math.floor(Math.random()*2)+1;o.value=a[e]}y()};window.addEventListener(`mousemove`,S),y();let C=()=>{let e=1-.95**t.ticker.deltaRatio();if(r.x+=(i.x-r.x)*e,r.y+=(i.y-r.y)*e,l(r.x),d(r.y),!_){let e=i.x-r.x,a=i.y-r.y,o=Math.atan2(a,e);t.set(n,{rotation:o+`_rad`})}let u=Math.sqrt((i.x-r.x)**2+(i.y-r.y)**2),f=Math.max(s.value,c.value);v=Math.min(20,2+u/f*20),v>0?(g=(g+v*.2)%3,_||(o.value=a[Math.floor(g)])):o.value=a[0]};u||=(t.ticker.add(C),!0),e(()=>{window.removeEventListener(`mousemove`,S),m&&clearTimeout(m),t.ticker.remove(C),t.killTweensOf(i)})}),(e,n)=>(i(),d(`div`,B,[(i(),d(y,null,r(a,(e,n)=>_(`img`,{key:n,src:e,alt:`møgbille`,class:l([`absolute top-0 left-0 h-auto h-full w-full`,{hidden:t(o)!==e}])},null,10,V)),64))]))}}),{__name:`CommonMogbilleCursor`}),U={class:`text-bold text-sm uppercase`},W={class:`font-display flex text-xl lg:mt-6`},G={class:`ml-1.5 text-base`},K=Object.assign(C({__name:`InformationItems`,props:{items:{}},setup(e){let n=e,a=x(()=>n?.items.length>4?4:n?.items.length);return(n,s)=>(i(),d(`div`,{class:l([`grid w-full gap-5`,`lg:grid-cols-${t(a)}`])},[(i(!0),d(y,null,r(e.items,e=>(i(),d(`div`,{key:e._key,class:`flex items-center justify-between rounded-sm border border-(--theme-fg)/15 bg-(--theme-fg)/1 p-5 backdrop-blur-[10px] lg:flex-col lg:items-start`},[_(`h6`,U,o(e.title),1),_(`span`,W,[w(o(e.info)+` `,1),_(`span`,G,o(e.suffix),1)])]))),128))],2))}}),{__name:`ElementsInformationItems`}),q={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},J={0:8203,1:8204,2:8205,3:65279},Y={0:String.fromCodePoint(J[0]),1:String.fromCodePoint(J[1]),2:String.fromCodePoint(J[2]),3:String.fromCodePoint(J[3])};[,,,,].fill(String.fromCodePoint(J[0])).join(``),Object.fromEntries(Object.entries(Y).map(e=>[e[1],+e[0]])),Object.fromEntries(Object.entries(q).map(e=>e.reverse()));var X=`${Object.values(q).map(e=>`\\u{${e.toString(16)}}`).join(``)}`,Z=RegExp(`[${X}]{4,}`,`gu`);function re(e){return{cleaned:e.replace(Z,``),encoded:e.match(Z)?.[0]||``}}function ie(e){return e&&JSON.parse(re(JSON.stringify(e)).cleaned)}function Q(e){return typeof e==`string`?ie(e):e}var ae=async e=>{let t=Q(e);if(!t)return{data:m(null)};let n=b();if(n.query[`sanity-preview-perspective`]||n.query[`sanity-preview-secret`])return{data:m(null)};try{let{data:e}=await L(`/api/species/${encodeURIComponent(t)}`,{default:()=>null,server:!1,lazy:!0},`$ihUCUvI7HJ`);return{data:e}}catch(e){return console.log(`error`,e),{data:m(null)}}},oe={class:`background absolute top-0 left-0 z-1 block h-full w-full`},se={class:`px-bleed relative z-10 flex h-full w-full flex-col pt-16 pb-10 text-(--theme-fg)`},ce={class:`py-auto flex h-full flex-col items-center justify-center`},le={class:`font-display mb-8 text-lg`},ue={key:0,class:`svg-wrapper relative max-w-2/3`},de={key:1,class:`font-display title relative z-2 text-center text-2xl leading-[0.65] text-(--green-4) lg:text-5xl`},fe={class:`sr-only`},pe=Object.assign(C({__name:`HeroArea`,props:{data:{}},async setup(e){let n,r,s=e,{isMobileOrTablet:u}=I(),{width:m}=k(),g=x(()=>m.value<900),{data:v}=([n,r]=f(()=>ae(s.data?.polygon)),n=await n,r(),n),{t:y}=E(),b=!!(s.data?.geopoint?.lat&&s.data?.geopoint?.lng),C=x(()=>
1{if(!b)return null;let e=Q(String(s.data.geopoint.lat)),t=Q(String(s.data.geopoint.lng));return`/api/weather?lat=${encodeURIComponent(e)}&lon=${encodeURIComponent(t)}`}),{data:w}=([n,r]=f(()=>L(()=>C.value,{default:()=>null,server:!1,lazy:!0},`$-YJclHnM1u`)),n=await n,r(),n),T=x(()=>w.value?.minTemp&&w.value?.maxTemp?`${w.value.minTemp} - ${w.value.maxTemp}°C`:``),D=x(()=>w.value?.sunrise&&w.value?.sunset?`${w.value.sunrise.split(`T`)[1]} - ${w.value.sunset.split(`T`)[1]}`:``),O=x(()=>{if(!v.value)return``;let e=Number(v.value?.allSpecies?.total??v.value?.allSpecies?.hydratedFacets?.taxonId?.totalCount??0);return e?e.toLocaleString(`da-DK`):``}),j=x(()=>s.data.showDynamicNumbers?[{info:O.value,suffix:``,title:y(`label.area.discoveredSpecies`),_key:1},{info:T.value,suffix:``,title:y(`label.area.weather`),_key:3},{info:D.value,suffix:``,title:y(`label.area.sunriseSunset`),_key:4}].filter(e=>e.info):s.data.items);return(n,r)=>{let s=P,u=R,f=A,m=F,v=K,y=a(`dompurify-html`);return i(),d(`div`,{class:l([`hero relative flex h-[100svh] items-end justify-center overflow-clip text-(--theme-fg)`,`theme-${e.data?.theme?e.data?.theme:`green-light-green`}`])},[c(s,{theme:e.data?.theme,"is-hero":!0},null,8,[`theme`]),_(`div`,oe,[r[0]||=_(`div`,{class:`overlay absolute top-0 left-0 z-[1] h-full w-full bg-black opacity-20`},null,-1),e.data?.media?(i(),h(u,{key:0,media:e.data?.media,loading:`eager`,fetchpriority:`high`,quality:70,class:`h-full w-full object-contain`,sizes:`xs:100vw sm:100vw md:100vw lg:1600px xl:1600px`},null,8,[`media`])):p(``,!0)]),_(`div`,se,[_(`div`,ce,[_(`h3`,le,o(e.data?.subtitle),1),e.data?.svgIcon?S((i(),d(`span`,ue,null,512)),[[y,e.data?.svgIcon]]):(i(),d(`span`,de,[t(g)?(i(),h(f,{key:0,text:e.data?.title,exposure:[-40,-80],animated:!0},null,8,[`text`])):(i(),h(m,{key:1,text:e.data?.title,radius:700,falloff:`gaussian`,exposure:{from:-20,to:-80}},null,8,[`text`]))]))]),_(`h1`,fe,o(e.data?.title),1),t(j)?.length?(i(),h(v,{key:0,items:t(j)},null,8,[`items`])):p(``,!0)])],2)}}}),{__name:`SectionsHeroArea`}),$={key:0,class:`background absolute inset-0 h-full w-full`},me={class:`mt-auto lg:mt-0`},he=Object.assign(C({__name:`HeroPage`,props:{title:{},subtitle:{},media:{},theme:{}},setup(e){let{isMobileOrTablet:n}=I(),{width:r}=k(),a=x(()=>r.value<900);return(n,r)=>{let s=P,u=R,f=A,m=F;return i(),d(`header`,{class:l([`relative bg-(--theme-bg) text-(--theme-fg)`,`theme-${e.theme?e.theme:`green-light-green`}`])},[c(s,{theme:e.theme,"is-hero":!0},null,8,[`theme`]),e.media?(i(),d(`div`,$,[e.media?(i(),h(u,{key:0,media:e.media,loading:`eager`,fetchpriority:`high`,quality:70,class:`h-full w-full object-cover`,sizes:`xs:100vw sm:100vw md:100vw lg:1600px xl:1600px`},null,8,[`media`])):p(``,!0),r[0]||=_(`div`,{class:`overlay absolute inset-0 z-[1] h-full w-full bg-black opacity-10`},null,-1)])):p(``,!0),_(`div`,{class:l([`px-bleed relative z-[1] flex flex-col`,e.media?`aspect-square pb-0 lg:aspect-auto lg:pt-74`:`pt-50 pb-35`])},[_(`h1`,me,[e.subtitle?(i(),d(`span`,{key:0,class:l([`font-display`,e.media?`text-xl lg:text-2xl`:`lg:text-xl`])},o(e.subtitle)+`\xA0`,3)):p(``,!0),_(`span`,{class:l([`font-display`,e.media?`text-3xl leading-[0.65] lg:text-[12.4vw]`:`text-2xl lg:text-5xl`])},[t(a)&&e.title?(i(),h(f,{key:0,text:e.title,exposure:[-20,-80],animated:!0,class:`-mb-[0.15lh] leading-none`},null,8,[`text`])):e.title?(i(),h(m,{key:1,text:e.title,radius:400,falloff:`gaussian`,exposure:{from:-20,to:-80},class:`-mb-[0.15lh] leading-none`},null,8,[`text`])):p(``,!0)],2)])],2)],2)}}}),{__name:`SectionsHeroPage`}),ge={key:0,class:`background absolute inset-0 h-full w-full`},_e={class:`mt-auto`},ve={key:0,class:`font-display mb-5 flex text-xl`},ye={key:0,class:`font-display mb-5 flex text-xl`},be={class:`inset-0 grid aspect-[4/5] w-full lg:aspect-4/3 lg:w-1/2`},xe=Object.assign(C({__name:`HeroSubPage`,props:{title:{},subtitle:{},media:{},parent:{},theme:{},isEducation:{type:Boolean},layout:{}},setup(e){let r=e,{isMobileOrTablet:a}=I(),{width:s}=k(),u=x(()=>s.value<900),f=x(()=>r.layout===`full`),m=x(()=>(r.title??``).split(/\s+/).reduce((e,t)=>
1Math.max(e,t.length),0)),g=x(()=>`calc(1.8 * (100vw - 2 * var(--grid-bleed)) / ${Math.max(m.value,1)})`);return(r,a)=>{let s=P,m=R,y=ee,b=A,x=F;return t(f)?(i(),d(`header`,{key:0,class:l([`relative bg-(--theme-bg) text-(--theme-fg)`,`theme-`+e.theme])},[c(s,{theme:e.theme,"is-hero":!0},null,8,[`theme`]),e.media?(i(),d(`div`,ge,[c(m,{media:e.media,loading:`eager`,fetchpriority:`high`,quality:70,class:`h-full w-full object-cover`,sizes:`xs:100vw sm:100vw md:100vw lg:1600px xl:1600px`},null,8,[`media`]),a[0]||=_(`div`,{class:`overlay absolute inset-0 z-[1] h-full w-full bg-black opacity-10`},null,-1)])):p(``,!0),_(`div`,{class:l([`px-bleed relative z-[2] flex flex-col pt-20`,e.media?`aspect-[4/5] pb-10 lg:aspect-16/9 lg:pb-20 max-h-screen`:`pb-20 lg:pb-30`])},[c(y,{link:e.parent,variant:`back`,class:`mb-7.5 lg:mb-10`},{default:v(()=>[w(o(e.parent.label),1)]),_:1},8,[`link`]),_(`div`,_e,[e.subtitle?(i(),d(`span`,ve,o(e.subtitle),1)):p(``,!0),_(`h1`,{class:`font-display text-[min(var(--text-3xl),var(--fit-size))] leading-[0.65] tracking-[-0.03em] lg:text-[min(var(--text-5xl),var(--fit-size))] lg:leading-[0.85] lg:tracking-[-0.05em]`,style:n({"--fit-size":t(g)})},[t(u)&&e.title?(i(),h(b,{key:0,text:e.title,exposure:[-40,-80],animated:!0,nowrap:!0},null,8,[`text`])):e.title?(i(),h(x,{key:1,text:e.title,radius:400,falloff:`gaussian`,exposure:{from:-20,to:-80},nowrap:!0},null,8,[`text`])):p(``,!0)],4)])],2)],2)):(i(),d(`div`,{key:1,class:l([`relative flex bg-(--theme-bg) text-(--theme-fg)`,[`theme-`+e.theme,{"lg:flex-row-reverse":e.isEducation}]])},[c(s,{theme:e.theme,"is-hero":!0},null,8,[`theme`]),_(`div`,{class:l([`px-bleed absolute z-10 flex h-full w-full flex-col justify-between pt-20 lg:relative lg:h-auto lg:w-1/2 lg:pb-10`,{"lg:px-(--grid-gap)":e.isEducation}])},[c(y,{link:e.parent,variant:`back`,class:`mb-7.5 lg:mb-10`},{default:v(()=>[w(o(e.parent.label),1)]),_:1},8,[`link`]),_(`div`,null,[e.subtitle?(i(),d(`span`,ye,o(e.subtitle),1)):p(``,!0),_(`h1`,{class:l([`font-display text-3xl leading-[0.65] lg:text-5xl lg:leading-[0.85]`,{"lg:w-cols-5 lg:!leading-[1]":e.isEducation}])},[t(u)&&e.title?(i(),h(b,{key:0,text:e.title,exposure:[-40,-80],animated:!0},null,8,[`text`])):e.title?(i(),h(x,{key:1,text:e.title,radius:200,falloff:`gaussian`,exposure:{from:-20,to:-80}},null,8,[`text`])):p(``,!0)],2)])],2),_(`div`,be,[e.media?(i(),h(m,{key:0,media:e.media,loading:`eager`,fetchpriority:`high`,quality:70,class:`h-full w-full object-cover`,sizes:`xs:100vw sm:100vw md:100vw lg:50vw xl:800px`},null,8,[`media`])):p(``,!0)]),a[1]||=_(`div`,{class:`overlay absolute top-0 left-0 z-[1] h-full w-full bg-black opacity-10`},null,-1)],2))}}}),{__name:`SectionsHeroSubPage`}),Se=[`data-mobile`],Ce={__name:`[...slug]`,async setup(e){let n,r,a=b(),{locale:o}=E(),l=a.params.slug.at(-1),{setCurrentTheme:m}=D(),{isMobileOrTablet:_}=I(),{width:v}=k(),y=x(()=>v.value<900),{data:S,pending:C,error:w}=([n,r]=f(()=>j(N,{slug:l,language:o.value,server:!0,lazy:!1,maxAge:600})),n=await n,r(),n);if(C.value,w.value)throw g({statusCode:500,statusMessage:`Failed to load page data`,fatal:!0});if(!S.value)throw g({statusCode:404,statusMessage:`Page Not Found`,fatal:!0});return S.value?(ne(S.value?.seo),T(()=>{S.value?.theme&&m(S.value.theme)})):console.warn(`No page data found for slug:`,l,`language:`,o.value),(e,n)=>{let r=H,a=pe,o=z,l=he,f=xe,m=te,g=M;return i(),d(`article`,{"data-mobile":t(y)},[t(S)?.type==`education`&&t(S)?.showMogbille?(i(),h(r,{key:0})):p(``,!0),t(S)?.type==`area`&&!t(S)?.parent?(i(),h(a,{key:1,data:t(S).hero},null,8,[`data`])):p(``,!0),t(S)?.type==`education`&&!t(S)?.parent?(i(),h(o,{key:2,data:t(S).hero,"is-education":!0},null,8,[`data`])):p(``,!0),t(S)?.type==`page`&&!t(S)?.parent?(i(),h(l,u(s({key:3},{...t(S).hero})),null,16)):p(``,!0),(t(S)?.type==`page`||t(S).type==`area`||t(S).type==`education`)&&t(S)?.parent?(i(),h(f,s({key:4,"is-education":t(S).type==`education`},{...t(S).hero,parent:t(S).parent}),null,16,[`is-education`])):p(``,!0),t(S)?.pageSections?(i(),h(m,{key:5,sections:t(S).pageSections},null,8,[`sections`])):p(``,!0),c(g)],8,Se)}}};export{Ce 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.