PageSourceSearch

https://www.wilsoncreative.se/_nuxt/BQpWc5PX.js

js wilsoncreative.se collected 2026-09-28 10:23:04 UTC 1,765 bytes, 1 lines download raw bytes

1import{m as B,V as I,j as a,p as N,E as S,q as j,a as c,o as l,k as C,F as L,r as M,W as O,u as y}from"./CZMXw09c.js";import{c as V,u as $,b as q,g as H,d as T,m as U}from"./DQPQfv8z.js";const W=["type","sizes","srcset"],D=["src","sizes","srcset"],Q=B({__name:"NuxtPicture",props:V,emits:["load","error"],setup(_,{emit:x}){const s=_,v=I(),o=x,z=!1,n=$(),{attrs:b,options:A,modifiers:h}=q(s),d=a(()=>H(s.src)),k=a(()=>["png","webp","gif","svg"].includes(d.value)),i=a(()=>s.legacyFormat?s.legacyFormat:k.value?"png":"jpeg"),p=a(()=>{var g,t;const e=((g=s.format)==null?void 0:g.split(","))||(d.value==="svg"?["svg"]:(t=n.options.format)!=null&&t.length?[...n.options.format]:["webp"]);return e[0]==="svg"?[{src:s.src}]:(e.includes(i.value)&&e.splice(e.indexOf(i.value),1),e.push(i.value),e.map(f=>{const{srcset:E,sizes:w,src:P}=n.getSizes(s.src,{...A.value,sizes:s.sizes||n.options.screens,densities:s.densities,modifiers:{...h.value,format:f}});return{src:P,type:`image/${f}`,sizes:w,srcset:E}}))}),u=a(()=>p.value[p.value.length-1]),m={...s.imgAttrs,"data-nuxt-pic":""};for(const e in v)e in T&&!(e in m)&&(m[e]=v[e]);const r=N(),F=S().isHydrating;return j(()=>{r.value&&(r.value.complete&&F&&(r.value.getAttribute("data-error")?o("error",new Event("error")):o("load",new Event("load"))),r.value.onload=e=>{o("load",e)},r.value.onerror=e=>{o("error",e)},U("nuxt-picture"))}),(e,g)=>(l(),c("picture",null,[(l(!0),c(L,null,M(p.value.slice(0,-1),t=>(l(),c("source",{key:t.src,type:t.type,sizes:t.sizes,srcset:t.srcset},null,8,W))),128)),u.value?(l(),c("img",O({key:0,ref_key:"imgEl",ref:r},{...y(b),...y(z)?{onerror:"this.setAttribute('data-error', 1)"}:{},...m},{src:u.value.src,sizes:u.value.sizes,srcset:u.value.srcset}),null,16,D)):C("",!0)]))}});export{Q as _};

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.