import"./rolldown-runtime-BM3Ffeng.js";import{T as e}from"./element-plus-vendor-BF9PNysW.js";import{O as t,et as n,k as r}from"./vue-vendor-DMUmTARL.js";var i={__name:`AutoIcon`,props:{icon:{type:String,required:!0},clickPreview:{type:Boolean,default:!0}},setup(i){function a(e){return e.indexOf(`<svg`)===-1?e.startsWith(`http`)||e.startsWith(`https`)||e.startsWith(`data:image`)?e:`data:image/jpeg;base64,`+e:`data:image/svg+xml;base64,`+btoa(unescape(encodeURIComponent(e)))}return(o,s)=>{let c=e;return i.icon?(n(),t(c,{key:0,src:a(i.icon),"preview-src-list":i.clickPreview?[a(i.icon)]:[],inline:``,class:`inline-block h-8 w-8`},null,8,[`src`,`preview-src-list`])):r(``,!0)}}};export{i as t};