import{r as a,o as i,ab as r,e as u,x as n,h as s,z as p,l as f,i as x,I as d,k as m,U as h,T as k}from"./CnM4dBY0.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(b,C)=>(n(),s("span",y,[c.value?(n(),s("span",{key:0,class:p(["mr-2",l.value])},[f(x(d),{icon:o.value,class:"h-4"},null,8,["icon"])],2)):m("",!0),h(" "+k(e.text),1)]))}};export{_ as default};