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 w=p({__name:"BuyModeSelection",props:{value:{type:String}},emits:["change"],setup(t,{emit:s}){const l=t,e=r(),o=[{id:"app",value:"App"},{id:"web",value:"Web"}];v(()=>{l.value&&(e.value=o.filter(a=>a.id===l.value)[0])});const u=()=>{s("change",e.value)};return d(()=>l.value,a=>{a||(e.value=null)}),(a,n)=>{const c=f;return m(),_(c,{value:e.value,"onUpdate:value":n[0]||(n[0]=i=>e.value=i),"show-search":"",placeholder:"Choose a mode",options:o,"clear-icon":"","allow-clear":"",onChange:u,"field-names":{label:"value",value:"id"}},null,8,["value"])}}});export{w as _};
