import{d as b,V as y,f as z,i as B,q as j,p as q,n as I,h as e,a3 as D,j as S,I as U}from"./C_KN-ext.js";import{_ as A}from"./gnMd3EvD.js";const H=b({__name:"SbImage",props:{options:{},source:{},width:{},height:{},provider:{},densities:{},alt:{}},setup(N){var i,r,l,p,d,u;const s=N,t=y((r=(i=s.options)==null?void 0:i.to)==null?void 0:r.url),n=y((p=(l=s.options)==null?void 0:l.to)==null?void 0:p.cached_url),a=t.value||n.value?t.value||`/${n.value}`:null,V=((u=(d=s.options)==null?void 0:d.to)==null?void 0:u.target)||null,_=a?U:"div";return(o,E)=>{var c,h;const $=A;return o.source||(h=(c=o.options)==null?void 0:c.src)!=null&&h.url?(z(),B(D(e(_)),{key:0,to:e(a),target:e(V),class:I(o.$attrs.class)},{default:j(()=>{var m,g,v,f,w,C,k;return[q($,{class:I(["block h-auto",o.$attrs.class]),src:o.source||((m=o.options)==null?void 0:m.src.url),width:o.width||((g=o.options)==null?void 0:g.width),height:o.height||((v=o.options)==null?void 0:v.height),alt:o.alt||((f=o.options)==null?void 0:f.alt),loading:(w=o.options)!=null&&w.preload?void 0:"lazy",provider:o.provider||((C=o.options)==null?void 0:C.provider),densities:o.densities||((k=o.options)==null?void 0:k.densities)||"1x"},null,8,["class","src","width","height","alt","loading","provider","densities"])]}),_:1},8,["to","target","class"])):S("",!0)}}});export{H as _};