1import{_ as y}from"./Base.1d6e6b98.js";import{u as _}from"./useApiValidationStore.411d0c28.js";import{c as h,k as o,h as S,w as b,e as c,d as u,F as v,p as x,t as V,U as B,V as k}from"./entry.ca6fca3d.js";const K=["name"],j=c("option",null,null,-1),A=["value","selected"],I={__name:"Select",props:{modelValue:{required:!0,default:"",type:[String,Number,null]},name:{type:String,required:!0},optional:{type:Boolean,default:!1},label:{type:String,default:"Select an option"},options:{type:Array,default:()=>[]},error:{type:String,default:""},isObject:{type:Boolean,default:!1},valueKey:{type:String,default:"id"},textKey:{type:String,default:"name"}},emits:["update:modelValue","change"],setup(r,{emit:l}){const e=r,a=_(),s=t=>e.isObject?t[e.valueKey]:t,i=t=>e.isObject?t[e.textKey]:t,m=t=>s(t)==e.modelValue,d=h(()=>e.error.length?e.error:a.errorsList[e.name]?a.errorsList[e.name][0]:null),p=t=>{l("update:modelValue",t.target.value),l("change",t.target.value),d&&!e.error.length&&a.clear(e.name)};return(t,L)=>{const f=y;return o(),S(f,B(k({name:r.name,label:r.label,optional:r.optional,error:r.error})),{default:b(()=>[c("select",{onInput:p,name:r.name},[j,(o(!0),u(v,null,x(r.options,(n,g)=>(o(),u("option",{key:g,value:s(n),selected:m(n)},V(i(n)),9,A))),128))],40,K)]),_:1},16)}}},E=I;export{E as _};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.