import{Dt as e,I as t,Q as n,T as r,bt as i,j as a,lt as o,tt as s,x as c}from"./_plugin-vue_export-helper-BVhEvvHC.js";import{t as l}from"./backendApi-BRM6WgjB.js";t(),i();var u=[`src`,`alt`],d=a({__name:`EntityLogo`,props:{src:{},alt:{}},setup(t,{expose:i}){let a=t,d=e(!1),f=c(()=>a.src?a.src.startsWith(`data:`)?a.src:l.getCacheUrl(a.src):null);o(f,()=>{d.value=!1});let p=c(()=>!!f.value&&!d.value);return i({showImage:p}),(e,i)=>(n(),r(`div`,null,[p.value?(n(),r(`img`,{key:0,src:f.value,alt:t.alt??``,class:`h-full w-full object-contain`,onError:i[0]||=e=>d.value=!0},null,40,u)):s(e.$slots,`default`,{},void 0,void 0,1)]))}});export{d as t};