import{o as c,g as i,l as o}from"./index-25eb6331.js";import{E as s}from"./image-viewer-4f89162c.js";const u={__name:"AutoIcon",props:{icon:{type:Object,required:!0},clickPreview:{type:Boolean,default:!0}},setup(t){function n(e){return e.indexOf("<svg")!==-1?"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(e))):e.startsWith("http")||e.startsWith("https")||e.startsWith("data:image")?e:"data:image/jpeg;base64,"+e}return(e,r)=>{const a=s;return t.icon?(c(),i(a,{key:0,src:n(t.icon),"preview-src-list":t.clickPreview?[n(t.icon)]:[],inline:"",class:"h-8 w-8 inline-block"},null,8,["src","preview-src-list"])):o("",!0)}}};export{u as _};
