import{i as e,n as t}from"./rolldown-runtime-ConPGZeh.js";import{Nn as n,Sr as r,Zn as i,er as a,ii as o,or as s}from"./vendor-primevue-D1-E3-0M.js";import{Xn as c,bn as l,cn as u}from"./vendor-other-CT05lTmi.js";var d,f,p,m=t((()=>{n(),u(),d=[`src`,`alt`],f={key:1,class:`flex size-full items-center justify-center bg-modal-card-placeholder-background`},p=s({__name:`MediaImageTop`,props:{asset:{}},emits:[`image-loaded`,`view`],setup(e,{emit:t}){let n=t,{state:s,error:u,isReady:p}=l({src:e.asset.src??``,alt:e.asset.name});return c(()=>p.value&&s.value?.naturalWidth&&s.value?.naturalHeight,()=>n(`image-loaded`,s.value.naturalWidth,s.value.naturalHeight)),(e,t)=>(r(),a(`div`,{class:`relative size-full overflow-hidden rounded bg-modal-card-placeholder-background`,onDblclick:t[0]||=e=>n(`view`)},[o(u)?(r(),a(`div`,f,t[1]||=[i(`i`,{class:`pi pi-image text-3xl text-muted-foreground`},null,-1)])):(r(),a(`img`,{key:0,src:e.asset.src,alt:e.asset.name,class:`size-full object-contain transition-transform duration-300 group-hover:scale-105 group-data-[selected=true]:scale-105`},null,8,d))],32))}})})),h;t((()=>{m(),m(),h=p}))();export{h as default};
//# sourceMappingURL=MediaImageTop-B16k2uaW.js.map