import{d as p,i as r,q as v,s as d,o as m,a as _,P as f}from"./index.29cf2edd.js";/* empty css              */const y=p({__name:"BuyTypeSelection",props:{value:{type:String}},emits:["change"],setup(t,{emit:s}){const l=t,e=r(),n=[{id:"SINGLE",value:"Single"},{id:"FAMILY",value:"Family"}];v(()=>{l.value&&(e.value=n.filter(a=>a.id===l.value)[0])});const u=()=>{s("change",e.value)};return d(()=>l.value,a=>{a||(e.value=null)}),(a,o)=>{const c=f;return m(),_(c,{value:e.value,"onUpdate:value":o[0]||(o[0]=i=>e.value=i),"show-search":"",placeholder:"Choose a type",options:n,onChange:u,"clear-icon":"","allow-clear":"","field-names":{label:"value",value:"id"}},null,8,["value"])}}});export{y as _};
