import{u as m,r as f}from"./y_BXiV4o.js";import{f as I,_ as d,C as a,o as x,c as _,$ as v}from"./YTYhyFR4.js";import{_ as S}from"./DlAUqK2U.js";const y=I({__name:"IconCSS",props:{name:{type:String,required:!0},size:{type:String,default:""}},setup(u){d(e=>({efdb04fa:p.value}));const t=m(),o=u,l=a(()=>{var e,n;return(n=(e=t.nuxtIcon)==null?void 0:e.aliases)!=null&&n[o.name]?t.nuxtIcon.aliases[o.name]:o.name}),c=a(()=>f(l.value)),p=a(()=>{var s,r;const e=(r=(s=t.nuxtIcon)==null?void 0:s.iconifyApiOptions)==null?void 0:r.url;if(e)try{new URL(e)}catch{console.warn("Nuxt IconCSS: Invalid custom Iconify API URL");return}return`url('${e||"https://api.iconify.design"}/${c.value.prefix}/${c.value.name}.svg')`}),i=a(()=>{var n,s,r;if(!o.size&&typeof((n=t.nuxtIcon)==null?void 0:n.size)=="boolean"&&!((s=t.nuxtIcon)!=null&&s.size))return;const e=o.size||((r=t.nuxtIcon)==null?void 0:r.size)||"1em";return String(Number(e))===e?`${e}px`:e});return(e,n)=>(x(),_("span",{style:v({width:i.value,height:i.value})},null,4))}}),U=S(y,[["__scopeId","data-v-41e8d397"]]);export{U as default};
