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