PageSourceSearch

https://hageland.no/_nuxt/DMUMWvpo.js

js hageland.no collected 2026-09-26 08:26:11 UTC 3,077 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./D461OdYd.js","./entry.ab3G-x4j.css"])))=>i.map(i=>d[i]);
2import{r as p,g as u,o as c,h as s,c as h,j as g,l as r,i as y,d as f,T as v,_ as b}from"./D461OdYd.js";import{_ as w}from"./C0kYkvR0.js";import"./D6v3oVml.js";import"./Eefc0JVZ.js";import"./D4PwvzAm.js";import"./HoyfAWlF.js";class o extends HTMLElement{connectedCallback(){this.videoId=this.getAttribute("videoid");let t=this.querySelector(".lty-playbtn");if(this.playLabel=t&&t.textContent.trim()||this.getAttribute("playlabel")||"Play",this.style.backgroundImage||(this.posterUrl=`https://i.ytimg.com/vi/${this.videoId}/hqdefault.jpg`,o.addPrefetch("preload",this.posterUrl,"image"),this.style.backgroundImage=`url("${this.posterUrl}")`),t||(t=document.createElement("button"),t.type="button",t.classList.add("lty-playbtn"),this.append(t)),!t.textContent){const e=document.createElement("span");e.className="lyt-visually-hidden",e.textContent=this.playLabel,t.append(e)}this.addEventListener("pointerover",o.warmConnections,{once:!0}),this.addEventListener("click",e=>this.addIframe())}static addPrefetch(t,e,n){const l=document.createElement("link");l.rel=t,l.href=e,n&&(l.as=n),document.head.append(l)}static warmConnections(){o.preconnected||(o.addPrefetch("preconnect","https://www.youtube-nocookie.com"),o.addPrefetch("preconnect","https://www.google.com"),o.addPrefetch("preconnect","https://googleads.g.doubleclick.net"),o.addPrefetch("preconnect","https://static.doubleclick.net"),o.preconnected=!0)}addIframe(){const t=new URLSearchParams(this.getAttribute("params")||[]);t.append("autoplay","1");const e=document.createElement("iframe");e.width=560,e.height=315,e.title=this.playLabel,e.allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",e.allowFullscreen=!0,e.src=`https://www.youtube-nocookie.com/embed/${encodeURIComponent(this.videoId)}?${t.toString()}`,this.append(e),this.classList.add("lyt-activated"),this.querySelector("iframe").focus()}}customElements.define("lite-youtube",o);const I=f(()=>b(()=>import("./D461OdYd.js").then(a=>a.b0),__vite__mapDeps([0,1]),import.meta.url).then(a=>a.default||a)),k={class:"relative"},C=["videoid"],U={__name:"VideoYoutube",props:{videoid:{type:String,required:!0},loadingImage:Object},setup(a){let e=`https://i.ytimg.com/vi/${a.videoid}/maxresdefault.jpg`;const n=p(!1);return(l,i)=>{const d=w,m=I;return c(),u("div",k,[s("lite-youtube",{class:"relative",videoid:a.videoid,params:"modestbranding=1&rel=0",style:v({backgroundImage:`url(${r(e)})`})},[a.loadingImage&&a.loadingImage.content?.images.length&&!r(n)?(c(),h(d,{key:0,imageClasses:"absolut inset-0 w-full h-full object-cover overflow-hidden",image:a.loadingImage.content.images[0],alt:a.loadingImage.content.images[0].alt},null,8,["image","alt"])):g("",!0),s("button",{type:"button",class:"lty-playbtn",onClick:i[0]||(i[0]=P=>n.value=!r(n))},[i[1]||(i[1]=s("span",{class:"sr-only"},"Spill av youtube video",-1)),y(m,{name:"playbutton",class:"size-8 lg:size-16 ml-1 text-white"})])],12,C)])}}};export{U 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.