PageSourceSearch

https://egeskov.dk/_nuxt/DmXbsbUs.js

js egeskov.dk collected 2026-10-02 10:03:03 UTC 12,149 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DqcWtjcw.js","./D4OH6sfS.js","./entry.Dc9zuw05.css"])))=>i.map(i=>d[i]);
2import{q as v,aL as oe,r as b,aC as ae,j as A,a9 as ie,aM as se,aN as ce,aq as Y,W as J,a7 as le,Y as j,aH as U,ao as ue,av as de,aO as fe,ag as X,aG as ge,_ as me,aP as pe,a2 as he,o as H,k as D,a5 as F,a8 as W,l as V,m as $,n as q,aB as ye,x as K,B as ve,v as M,y as _e,V as be,aQ as O,N as we,O as Pe}from"./D4OH6sfS.js";import{_ as Se,a as ke}from"./CLUKtWuy.js";import xe from"./BMueNg8c.js";import{i as Ce}from"./BoSE5b-w.js";import{u as Te}from"./BfnxU83h.js";function Re(n){if(!n)return"";const r=["https://player.vimeo.com/video/","https://vimeo.com/manage/videos/","https://vimeo.com/"].find(t=>n.includes(t));if(!r)return n;try{return n.split(r)[1]}catch{return n}}function Ve(n){let e=9;for(let r=0;r<n.length;)e=Math.imul(e^n.charCodeAt(r++),9**9);return((e^e>>>9)+65536).toString(16).substring(1,8).toLowerCase()}const Ae=new Set(["onload","onerror"]);let Ie;function Z(){return Ie}const ee=Symbol("ScriptProxyTarget");function te(){}te[ee]=!0;function ne(n){return n.key||Ve(n.src||(typeof n.innerHTML=="string"?n.innerHTML:""))}function Le(n,e){var T,R,L;const r=typeof n=="string"?{src:n}:n,t=e||{},c=t.head||Z();if(!c)throw new Error("Missing Unhead context.");const d=ne(r),s=(T=c._scripts)==null?void 0:T[d];if(s)return s.setupTriggerHandler(t.trigger),s;(R=t.beforeInit)==null||R.call(t);const m=a=>{o.status=a,c.hooks.callHook("script:updated",S)};Ae.forEach(a=>{const u=typeof r[a]=="function"?r[a].bind(t.eventContext):null;r[a]=f=>{m(a==="onload"?"loaded":a==="onerror"?"error":"loading"),u==null||u(f)}});const g={loaded:[],error:[]},p=(a,u)=>{if(g[a]){const f=g[a].push(u);return()=>{var i;return(i=g[a])==null?void 0:i.splice(f-1,1)}}return u(o.instance),()=>{}},_=new Promise(a=>{if(c.ssr)return;const u=i=>requestAnimationFrame(()=>a(i)),f=c.hooks.hook("script:updated",({script:i})=>{const l=i.status;if(i.id===d&&(l==="loaded"||l==="error")){if(l==="loaded")if(typeof t.use=="function"){const y=t.use();y&&u(y)}else u({});else l==="error"&&a(!1);f()}})}),o=Object.assign(_,{instance:!c.ssr&&((L=t==null?void 0:t.use)==null?void 0:L.call(t))||null,proxy:null,id:d,status:"awaitingLoad",remove(){var a,u;return(a=o._triggerAbortController)==null||a.abort(),o._triggerPromises=[],o.entry?(o.entry.dispose(),m("removed"),(u=c._scripts)==null||delete u[d],!0):!1},load(a){var u;if((u=o._triggerAbortController)==null||u.abort(),o._triggerPromises=[],!o.entry){m("loading");const f={defer:!0,fetchpriority:"low"};r.src&&(r.src.startsWith("http")||r.src.startsWith("//"))&&(f.crossorigin="anonymous",f.referrerpolicy="no-referrer"),o.entry=c.push({script:[{...f,...r,key:`script.${d}`}]},t)}return a&&p("loaded",a),_},onLoaded(a){return p("loaded",a)},onError(a){return p("error",a)},setupTriggerHandler(a){if(o.status==="awaitingLoad")if((typeof a>"u"||a==="client")&&!c.ssr||a==="server")o.load();else if(a instanceof Promise){if(c.ssr)return;
2o._triggerAbortController||(o._triggerAbortController=new AbortController,o._triggerAbortPromise=new Promise(f=>{o._triggerAbortController.signal.addEventListener("abort",()=>{o._triggerAbortController=null,f()})})),o._triggerPromises=o._triggerPromises||[];const u=o._triggerPromises.push(Promise.race([a.then(f=>typeof f>"u"||f?o.load:void 0),o._triggerAbortPromise]).catch(()=>{}).then(f=>{f==null||f()}).finally(()=>{var f;(f=o._triggerPromises)==null||f.splice(u,1)}))}else typeof a=="function"&&a(o.load)},_cbs:g});_.then(a=>{var u,f;a!==!1?(o.instance=a,(u=g.loaded)==null||u.forEach(i=>i(a)),g.loaded=null):((f=g.error)==null||f.forEach(i=>i()),g.error=null)});const S={script:o};o.setupTriggerHandler(t.trigger),o.$script=o;const I=(a,u,f)=>new Proxy((u?a==null?void 0:a[u]:a)||te,{get(i,l,y){var h;if(c.hooks.callHook("script:instance-fn",{script:o,fn:l,exists:l in i}),!u){const w=(h=t.stub)==null?void 0:h.call(t,{script:o,fn:l});if(w)return w}return i&&l in i&&typeof i[l]<"u"?Reflect.get(i,l,y):l===Symbol.iterator?[][Symbol.iterator]:I(u?a==null?void 0:a[u]:a,l,f||[l])},async apply(i,l,y){if(c.ssr&&i[ee])return;let h;const w=P=>{h=P||h;for(let x=0;x<(f||[]).length;x++){const E=(f||[])[x];P=P==null?void 0:P[E]}return P};let C=w(o.instance);return C||(C=await new Promise(P=>{o.onLoaded(x=>{P(w(x))})})),typeof C=="function"?Reflect.apply(C,h,y):C}});o.proxy=I(o.instance);const k=new Proxy(o,{get(a,u){const f=u in o||String(u)[0]==="_"?o:o.proxy;return u==="then"||u==="catch"?o[u].bind(o):Reflect.get(f,u,f)}});return c._scripts=Object.assign(c._scripts||{},{[d]:k}),k}function Ee(n){return typeof n=="function"?n():v(n)}function N(n){if(n instanceof Promise||n instanceof Date||n instanceof RegExp)return n;const e=Ee(n);if(!n||!e)return e;if(Array.isArray(e))return e.map(r=>N(r));if(typeof e=="object"){const r={};for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){if(t==="titleTemplate"||t[0]==="o"&&t[1]==="n"){r[t]=v(e[t]);continue}r[t]=N(e[t])}return r}return e}const He="usehead",G=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Q="__unhead_injection_handler__";function B(){if(Q in G)return G[Q]();const n=oe(He);return n||Z()}function re(n,e={}){const r=e.head||B();if(r)return r.ssr?r.push(n,e):Oe(r,n,e)}function Oe(n,e,r={}){const t=b(!1),c=b({});ae(()=>{c.value=t.value?{}:N(e)});const d=n.push(c.value,r);return A(c,m=>{d.patch(m)}),Y()&&(ie(()=>{d.dispose()}),se(()=>{t.value=!0}),ce(()=>{t.value=!1})),d}function $e(n,e){if(!e)return;const r=(t,c)=>{if(!n._cbs[t])return c(n.instance),()=>{};let d=n._cbs[t].push(c);const s=()=>{var m;d&&((m=n._cbs[t])==null||m.splice(d-1,1),d=null)};return j(s),s};n.onLoaded=t=>r("loaded",t),n.onError=t=>r("error",t),j(()=>{var t;(t=n._triggerAbortController)==null||t.abort()})}function Me(n,e){const r=typeof n=="string"?{src:n}:n,t=e||{},c=(t==null?void 0:t.head)||B();t.head=c;const d=Y();if(t.eventContext=d,d&&typeof t.trigger>"u")t.trigger=J;else if(le(t.trigger)){const m=t.trigger;let g;t.trigger=new Promise(p=>{g=A(m,_=>{_&&p(!0)},{immediate:!0}),j(()=>p(!1),!0)}).then(p=>(g==null||g(),p))}c._scriptStatusWatcher=c._scriptStatusWatcher||c.hooks.hook("script:updated",({script:m})=>{m._statusRef.value=m.status});const s=Le(r,t);return s._statusRef=s._statusRef||b(s.status),$e(s,d),new Proxy(s,{get(m,g,p){return Reflect.get(m,g==="status"?"_statusRef":g,p)}})}function je(){return X().public["nuxt-scripts"]}const Ne=["onNuxtReady","client"],Ue=["preconnect","dns-prefetch"];function Be(n,e,r){const{src:t}=n,c=ge(t),d=e&&Ue.includes(e),s=d?`${c.protocol}${c.host}`:t,m=!!c.host;if(!e||d&&!m)return;const g={href:s,rel:e,...We(n,["crossorigin","referrerpolicy","fetchpriority","integrity"])},p={fetchpriority:"low"};return e==="preload"&&(p.as="script"),m&&(p.crossorigin="anonymous",p.referrerpolicy="no-referrer"),re({link:[U(g,p)]},{head:r,tagPriority:"high"})}function ze(n,e){var g,p,_;n=typeof n=="string"?{src:n}:n,e=U(e,(g=je())==null?void 0:g.defaultScriptOptions);const r=String(ne(n)),t=ue(),c=e.head||B();t.$scripts=t.$scripts||de({});const d=!!((p=t.$scripts)!=null&&p[r]);!e.warmupStrategy&&Ne.includes(String(e.trigger))&&(e.warmupStrategy="preload"),e.trigger==="onNuxtReady"&&(e.trigger=fe),d||(_=performance==null?void 0:performance.mark)==null||_.call(performance,"mark_feature_usage",{detail:{feature:e.performanceMarkFeature??`nuxt-scripts:${r}`}});const s=Me(n,e);s.warmup=o=>{s._warmupEl||(s._warmupEl=Be(n,o,c))},e.warmupStrategy&&s.warmup(e.warmupStrategy);const m=s.remove;return s.remove=()=>{var o;return(o=s._warmupEl)==null||o.dispose(),t.$scripts[r]=void 0,m()},t.$scripts[r]=s,s}function De(n){return(X().public.scripts||{})[n]}function Fe(n,e,r){const t=De(n),c=Object.assign({},typeof t=="object"?t:{}),d=e(c),s=U(c.scriptInput,d.scriptInput,{key:n}),m=Object.assign((c==null?void 0:c.scriptOptions)||{},d.scriptOptions||{}),g=m.beforeInit;return m.beforeInit=()=>{var p;g==null||g(),(p=d.clientInit)==null||p.call(d)},ze(s,m)}function We(n,e){const r={};for(const t of e)t in n&&(r[t]=n[t]);return r}function qe(n){const e=Fe("vimeoPlayer",()=>({scriptInput:{src:"https://player.vimeo.com/api/player.js"},scriptOptions:{use(){return{Vimeo:window.Vimeo}}}}));{const r=A(e.status,t=>
2{t==="loading"&&(re({link:[{rel:"preconnect",href:"https://i.vimeocdn.com"},{rel:"preconnect",href:"https://f.vimeocdn.com"},{rel:"preconnect",href:"https://fresnel.vimeocdn.com"}]}),r())})}return e}const Ke=we(()=>Pe(()=>import("./DqcWtjcw.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(n=>n.default||n)),Ge={class:"video__wrapper"},Qe=["innerHTML"],Ye=["aria-label"],Je=["innerHTML"],Xe={__name:"Video",props:{background:{type:Boolean},data:{type:Object},autoSize:{type:Boolean,default:!1}},setup(n){var f;const e=n,r=b(null),{width:t,height:c}=pe(r),d=b(!1);let s;const m=b(!1),g=b(!1),p=b(null),_=b(null),o=b(null),S=b(null),I=b(!1);_.value=Re((f=e==null?void 0:e.data)==null?void 0:f.id);function k(){const{$script:i}=qe();i.then(async({Vimeo:l})=>{var y,h;s=await new l.Player(p.value,{id:_.value,...(e==null?void 0:e.background)&&{background:!0},...!(e!=null&&e.background)&&{loop:!!((y=e==null?void 0:e.data)!=null&&y.shouldAutoplay),muted:!!((h=e==null?void 0:e.data)!=null&&h.shouldAutoplay),autoplay:!0},dnt:!0}),s.on("loaded",a),s.on("play",()=>g.value=!0),s.on("pause",()=>g.value=!1),s.on("ended",()=>g.value=!1)}),I.value=!0}function T(){s.play()}async function R(){s&&await Promise.all([s.getVideoWidth(),s.getVideoHeight()]).then(([i,l])=>{S.value={width:i,height:l,aspectRatio:i/l},L()}).catch(i=>{console.log(i)})}function L(){var i,l;(i=S.value)!=null&&i.aspectRatio&&s.element&&(e!=null&&e.autoSize&&!(e!=null&&e.background)?r.value.style.aspectRatio=(l=S==null?void 0:S.value)==null?void 0:l.aspectRatio:t.value/c.value>S.value.aspectRatio?(s.element.style.width=t.value+"px",s.element.style.height=t.value/S.value.aspectRatio+"px"):(s.element.style.height=c.value+"px",s.element.style.width=c.value*S.value.aspectRatio+"px"))}function a(){d.value=!0,(e!=null&&e.background||e!=null&&e.autoSize)&&R()}function u(){const i=O(document,"mousemove",w=>{k(),i(),l(),y(),h()}),l=O(document,"click",w=>{k(),i(),l(),y(),h()}),y=O(document,"scroll",w=>{k(),i(),l(),y(),h()}),h=O(document,"keydown",w=>{k(),i(),l(),y(),h()})}return A(()=>c.value,i=>{e!=null&&e.background&&i>0&&s&&R()}),A(()=>t.value,i=>{e!=null&&e.background&&i>0&&s&&R()}),J(()=>{const i=Ce(r.value,!0);if(m.value=i,i)he(()=>{var l;((l=e==null?void 0:e.data)!=null&&l.shouldAutoplay||e!=null&&e.background)&&u()});else{const{stop:l}=Te(r.value,([{isIntersecting:y}])=>{var h;y&&(((h=e==null?void 0:e.data)!=null&&h.shouldAutoplay||e!=null&&e.background)&&u(),l())})}}),(i,l)=>{const y=Se,h=ke,w=xe,C=Ke;return H(),D("div",{class:be(["video",{"video--background":n.background}]),ref_key:"videoContainer",ref:r},[F(V("div",{onClick:l[0]||(l[0]=()=>v(d)?T():k()),class:"video__overlay"},null,512),[[W,!v(g)]]),$(C,null,{default:q(()=>{var P,x,E;return[V("div",Ge,[$(ye,{name:"fade"},{default:q(()=>{var z;return[(z=n.data)!=null&&z.thumbnail?(H(),K(y,{key:0,data:n.data.thumbnail,class:"video__thumbnail"},null,8,["data"])):F((H(),K(h,ve({key:1,provider:"vumbnail",class:"video__thumbnail"},{...!v(m)&&{loading:"lazy"}},{src:`/${v(_)}.jpg`,fit:"cover",preload:v(m),alt:"Vimeo Thumbnail",onClick:l[1]||(l[1]=()=>v(d)?T():k())}),null,16,["src","preload"])),[[W,!v(g)]])]}),_:1}),V("header",{ref_key:"videoTitle",ref:o,innerHTML:((P=n.data)==null?void 0:P.title)||("useTranslation"in i?i.useTranslation:v(M))("UI.Video.Title")},null,8,Qe),!v(g)&&!((x=e.data)!=null&&x.shouldAutoplay)?(H(),D("button",{key:0,class:"video__trigger","aria-label":((E=n.data)==null?void 0:E.title)||("useTranslation"in i?i.useTranslation:v(M))("UI.Video.Title"),onClick:l[2]||(l[2]=()=>v(d)?T():k())},[$(w,{class:"video__icon",icon:"icon-default-play"}),V("span",{innerHTML:("useTranslation"in i?i.useTranslation:v(M))("Media.Play")},null,8,Je)],8,Ye)):_e("",!0),V("div",{ref_key:"video",ref:p,class:"video__player"},null,512)])]}),_:1})],2)}}},ot=me(Xe,[["__scopeId","data-v-70474cd3"]]);export{ot 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.