import{_ as l,x as o,o as c,z as w,b as r,m as a,I as u}from"./main-D6qyxymd.js";const d={inject:{componentStyle:{default:()=>{}}},props:{content:{type:Object,required:!0},wwElementState:{type:Object,required:!0}},emits:["update:content"],setup(){const{hasLink:t,tag:e,properties:n}=wwLib.wwElement.useLink();return{hasLink:t,linkTag:e,properties:n}},computed:{url(){const t=this.wwElementState.props.url||this.content.url||"";return typeof t=="string"?t:""},isWeWeb(){return this.url.startsWith("designs/")},src(){return this.isWeWeb?`${wwLib.wwUtils.getCdnPrefix()}${this.url}`:this.url},aspectRatio(){const t=this.componentStyle.aspectRatio;return t&&t!=="unset"?`${t}`:"unset"},style(){return{"--wwi-ar":this.aspectRatio,"--wwi-of":this.content.objectFit,"--wwi-f":this.content.filter,"--wwi-o":this.content.overlay}},isEditing(){return!1},alt(){return wwLib.wwLang.getText(this.content.alt)}}},p=["src","alt"];function m(t,e,n,i,g,s){return c(),o(u(i.linkTag),a(i.properties,{class:["ww-image-basic",{"-link":i.hasLink&&!s.isEditing}],"ww-responsive":"ww-image-basic",style:s.style}),{default:w(()=>[e[0]||(e[0]=r("div",{class:"ww-image-basic-overlay"},null,-1)),r("img",a({src:s.src,alt:s.alt},{loading:n.content.loading||"lazy"}),null,16,p)]),_:1},16,["style","class"])}const f=l(d,[["render",m],["__scopeId","data-v-4c2104da"]]);export{f as e};
