import{r as a,o as i,aa as r,e as u,v as n,g as s,y as p,k as f,h as d,H as m,j as x,T as h,S as k}from"./C_q2EfHM.js";const y={class:"inline-block"},_={__name:"TextWithIcon",props:{icon:Object,iconPosition:{type:String,default:"left"},iconColor:{type:String,default:"blue"},text:{type:String,default:"text"}},setup(e){const t=e,c=a(!0),o=a(null);i(async()=>{await r(),o.value=t.icon||""});const l=u(()=>({"float-left":t.iconPosition==="left","float-right":t.iconPosition==="right","text-white":t.iconColor==="white","text-black":t.iconColor==="black","text-lappset-sky-900":t.iconColor==="blue"}));return(g,C)=>(n(),s("span",y,[c.value?(n(),s("span",{key:0,class:p(["mr-2",l.value])},[f(d(m),{icon:o.value,class:"h-4"},null,8,["icon"])],2)):x("",!0),h(" "+k(e.text),1)]))}};export{_ as default};