import{s as n}from"./multiselect-Bn1369QT.js";import{c as a,o as t,f as o,a as u,t as s,n as c,u as m}from"./app-B4kV47qU.js";const g={class:"w-full"},y={key:0,class:"label mb-1"},b={key:1,class:"my-1 text-[11px] font-light text-danger-600"},S={__name:"MultiSelect",props:{inputLabel:{type:String,default:"label"},label:{type:String,default:""},mode:{type:String,default:"tags"},modelValue:{type:[Array,Object,String,Number],default:()=>[]},options:{type:[Array,Object],default:()=>[]},validationMessage:{type:[String,Array],default:""},placeholder:{type:String,default:"Select"},customClass:{type:String,default:""},valueProp:{type:String,default:"value"}},emits:["update:modelValue"],setup(e,{emit:i}){const d=i;return(f,l)=>(t(),a("div",g,[e.label?(t(),a("label",y,s(e.label),1)):o("",!0),u(m(n),{class:c(["multiselect-dark",e.validationMessage?"border border-danger-600":""]),modelValue:e.modelValue,"onUpdate:modelValue":l[0]||(l[0]=r=>d("update:modelValue",r)),mode:e.mode,"close-on-select":!1,searchable:!0,"create-option":!0,options:e.options,placeholder:e.placeholder,label:e.inputLabel,"value-prop":e.valueProp},null,8,["modelValue","class","mode","options","placeholder","label","value-prop"]),e.validationMessage?(t(),a("div",b,s(Array.isArray(e.validationMessage)?e.validationMessage[0]:e.validationMessage),1)):o("",!0)]))}};export{S as _};
