import{d as _,a8 as f,i as n,q as h,s as g,o as b,a as w,b as s,P as C}from"./index.29cf2edd.js";/* empty css              */const S=_({__name:"HospitalSelection",props:{value:{type:Number}},emits:["change"],setup(r,{emit:u}){const l=r,c=f(),e=n();let t=n(),i=n();h(()=>{t.value=c.hospitals,l.value&&(e.value=l.value)});const p=(o,a)=>a.name.toLowerCase().indexOf(o.toLowerCase())>=0,d=()=>{u("change",e.value)};return g(()=>l.value,o=>{o||(e.value=null)}),(o,a)=>{const m=C;return b(),w(m,{value:e.value,"onUpdate:value":a[0]||(a[0]=v=>e.value=v),"show-search":"",placeholder:"Choose a hospital",options:s(t),"field-names":{label:"name",value:"id"},"filter-option":p,loading:s(i),disabled:s(i),onChange:d,"clear-icon":"","allow-clear":""},null,8,["value","options","loading","disabled"])}}});export{S as _};
