import{r as d,ac as r,n as i,aa as m}from"./index.02c939b6.js";import{d as u,h as f,o as a,i as n,e as o,b as l}from"./index.9838a17e.js";const h={class:"flex items-center space-x-3"},x={key:0,class:"border-theme-300 text-theme-400 inline-flex w-6 items-center justify-end border-r pr-3 text-right text-xs font-bold"},b={class:"text-theme-700"},g=u({__name:"InputElTab",props:{label:{type:[String,Number],default:""},icon:{type:String,default:""},prefix:{type:[String,Number],default:""},selected:{type:Boolean,default:!1}},setup(e){const c=e,t=d();return f(()=>c.selected,s=>{s&&(t.value=s,setTimeout(()=>{t.value=""},1e3))}),(s,p)=>(a(),n("div",{class:i(["text-input-size hover:bg-theme-200 hover:border-theme-400 text-theme-700 max-w-input flex cursor-move items-center justify-between rounded-md border px-2 py-1",[m(t)?"notify-selected":"",e.selected?"border-theme-400 bg-theme-200":"border-theme-300 bg-theme-100 "]])},[o("div",h,[e.prefix?(a(),n("div",x,r(e.prefix),1)):l("v-if",!0),o("div",b,r(e.label||"No Label"),1)]),e.icon?(a(),n("div",{key:0,class:i(["text-theme-400",e.icon])},null,2)):l("v-if",!0)],2))}});export{g as _};
