import{_ as o,o as t,c as l,aq as u,d as f,t as c,z as _,a as y,F as g,aO as m}from"./entry.816e6e91.js";const b={props:{label:{type:String,required:!1},labelClasses:{type:String},option_label:{type:String,required:!1},id:{type:String,required:!1},size:{type:String,default:"default"},valid:{type:Boolean,default:!0},classes:{type:String},success:{type:String,default:""},error:{type:String,default:""},disabled:{type:Boolean,default:!1},isRequired:{type:Boolean,default:!1},options:{type:Array,required:!1},modelValue:{type:[String,Number,Object,Array],description:"Input value"},modelOption:{type:String}},methods:{handleChange(){this.$emit("update:modelValue",event.target.value)},getClasses:(d,s,e)=>{let i,r;return i=d?`form-select-${d}`:"",r=s?"":"invalid",`${i||""} ${r||""} ${e||""}`}}},v={class:"form-group"},h=["for"],S={key:0},q=["id","value","isRequired","disabled"],C=["value"];function V(d,s,e,i,r,n){return t(),l("div",v,[e.label?(t(),l("label",{key:0,for:e.id,class:u(["mb-1",e.labelClasses])},[f(c(e.label)+" ",1),e.isRequired?(t(),l("span",S,"*")):_("",!0)],10,h)):_("",!0),y("select",{id:e.id,class:u(["form-select",n.getClasses(e.size,e.valid,e.classes)]),value:e.modelValue,isRequired:e.isRequired,disabled:e.disabled,onChange:s[0]||(s[0]=(...a)=>n.handleChange&&n.handleChange(...a))},[(t(!0),l(g,null,m(e.options,a=>(t(),l("option",{value:a[e.modelOption]||a,key:a==null?void 0:a.id},c(a.label||a),9,C))),128))],42,q)])}const B=o(b,[["render",V],["__scopeId","data-v-afa31385"]]);export{B as _};
