iBet uBet web content aggregator. Adding the entire web to your favor.
iBet uBet web content aggregator. Adding the entire web to your favor.



Link to original content: http://www.altinget.dk/_nuxt/B1Y378ml.js
import{i as w,u as A,a as I,m as x,p as m}from"./CsDHvLmg.js";import{d as E,am as k,y as v,h as l,u as D,s as S,o as B,c as C,X as L,b as g}from"./DVyD0Zma.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},u=new r.Error().stack;u&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[u]="62fc63b2-498a-4eb1-af3f-85096177890c",r._sentryDebugIdIdentifier="sentry-dbid-62fc63b2-498a-4eb1-af3f-85096177890c")}catch{}})();const N=["src"],H=E({__name:"NuxtImg",props:w,emits:["load","error"],setup(r,{emit:u}){const s=r,h=k(),i=u,b=!1,d=A(),t=I(s),c=v(!1),o=v(),n=l(()=>d.getSizes(s.src,{...t.options.value,sizes:s.sizes,densities:s.densities,modifiers:{...t.modifiers.value,width:m(s.width),height:m(s.height)}})),y=l(()=>{const e={...t.attrs.value,"data-nuxt-img":""};return(!s.placeholder||c.value)&&(e.sizes=n.value.sizes,e.srcset=n.value.srcset),e}),f=l(()=>{let e=s.placeholder;if(e===""&&(e=!0),!e||c.value)return!1;if(typeof e=="string")return e;const a=Array.isArray(e)?e:typeof e=="number"?[e,e]:[10,10];return d(s.src,{...t.modifiers.value,width:a[0],height:a[1],quality:a[2]||50,blur:a[3]||3},t.options.value)}),p=l(()=>s.sizes?n.value.src:d(s.src,t.modifiers.value,t.options.value)),_=l(()=>f.value?f.value:p.value),z=D().isHydrating;return S(()=>{if(f.value){const e=new Image;p.value&&(e.src=p.value),s.sizes&&(e.sizes=n.value.sizes||"",e.srcset=n.value.srcset),e.onload=a=>{c.value=!0,i("load",a)},x("nuxt-image");return}o.value&&(o.value.complete&&z&&(o.value.getAttribute("data-error")?i("error",new Event("error")):i("load",new Event("load"))),o.value.onload=e=>{i("load",e)},o.value.onerror=e=>{i("error",e)})}),(e,a)=>(B(),C("img",L({ref_key:"imgEl",ref:o,class:s.placeholder&&!c.value?s.placeholderClass:void 0},{...g(b)?{onerror:"this.setAttribute('data-error', 1)"}:{},...y.value,...g(h)},{src:_.value}),null,16,N))}});export{H as _}; //# sourceMappingURL=B1Y378ml.js.map