import{d as i,m as d,g as n,o,c,ar as l,n as p,w as g,e as b,D as u,aY as f,a_ as m}from"./CYpMmShR.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new a.Error().stack;s&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[s]="70b21b55-d276-4088-a095-a68c5b2b38b1",a._sentryDebugIdIdentifier="sentry-dbid-70b21b55-d276-4088-a095-a68c5b2b38b1")}catch{}})();const w=["src","alt","loading"],h=i({__name:"HwImage",props:{objectFit:{default:"cover"},src:{default:""},aspectRatio:{default:void 0},alt:{default:""},sizes:{default:"xs:100vw sm:100vw md:100vw lg:1280px xl:1312px xxl:1952px"},preload:{type:Boolean},width:{}},setup(a){const s=a,t=d(()=>s.src.endsWith(".svg"));return(e,y)=>{const r=m;return n(t)?(o(),c("img",l({key:0,src:e.src,alt:e.alt},e.$attrs,{loading:e.preload?"eager":"lazy",style:[{"max-width":"100%"},{objectFit:s.objectFit}]}),null,16,w)):(o(),p(f,l({key:1,"aspect-ratio":e.aspectRatio,class:"v-img"},e.$attrs,{role:"img"}),{default:g(()=>[b(r,{src:e.src,class:"v-img__picture d-block","img-attrs":{class:"v-img__img",alt:e.alt,style:{"object-fit":e.objectFit}},width:e.width,"aria-label":e.alt,loading:e.preload?"eager":"lazy",preload:e.preload,sizes:e.sizes},null,8,["src","img-attrs","width","aria-label","loading","preload","sizes"]),u(e.$slots,"default")]),_:3},16,["aspect-ratio"]))}}});export{h as _};
//# sourceMappingURL=DN7ZG3XY.js.map
