1import{x as b,M as x,au as h,P as s,s as n,H as d,a0 as o,r as l,v as f,_ as p,p as y,V as c}from"./DQIkdDWl.js";const _=["src","alt"],j={key:1,class:"absolute inset-0 flex flex-col items-center justify-center bg-gray-200 animate-pulse h-full w-full"},w={key:2,class:"absolute inset-0 flex flex-col items-center justify-center bg-slate-100 p-4 text-center"},k=b({__name:"BaseImage",props:{src:{},alt:{default:"Image"},aspectRatio:{default:""},rounded:{default:"rounded-lg"},isLoading:{type:Boolean},objectFit:{default:"cover"},objectPosition:{default:"center"}},setup(e){const m=e,t=c(!0),a=c(!1),g=()=>{t.value=!1},v=()=>{t.value=!1,a.value=!0},i=c(null);return x(()=>{i.value?.complete&&(t.value=!1)}),h(()=>m.src,()=>{t.value=!0,a.value=!1}),(B,r)=>{const u=p;return s(),n("div",{class:d(["relative overflow-hidden",[e.aspectRatio,e.rounded]])},[e.src&&!o(a)?(s(),n("img",{key:0,ref_key:"imgRef",ref:i,src:e.src,alt:e.alt,class:d(["w-full h-full transition-opacity duration-300",[o(t)?"opacity-0":"opacity-100",`object-${e.objectFit}`,`object-${e.objectPosition}`]]),onLoad:g,onError:v},null,42,_)):l("",!0),o(t)&&!o(a)?(s(),n("div",j,[f(u,{name:"line-md:loading-twotone-loop",class:"w-10 h-10 mb-2"})])):l("",!0),o(a)?(s(),n("div",w,[f(u,{name:"heroicons:photo",class:"w-10 h-10 mb-2"}),r[0]||(r[0]=y("span",{class:"text-xs"},"Failed to load image",-1))])):l("",!0)],2)}}}),R=Object.assign(k,{__name:"BaseImage"});export{R 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.