import{d,i as v,q as p,s as r,o as C,a as E,P as m}from"./index.29cf2edd.js";/* empty css              */const I=d({__name:"StatusSelection",props:{value:{type:String}},emits:["change"],setup(t,{emit:i}){const l=t,e=v(),n=[{id:"PENDING",value:"Pending"},{id:"WAITING",value:"Waiting"},{id:"PROCESSING",value:"Processing"},{id:"ACTIVE",value:"Active"},{id:"INACTIVE",value:"Inactive"},{id:"APPROVED",value:"Approved"},{id:"COMPLETED",value:"Completed"},{id:"REJECTED",value:"Rejected"},{id:"CANCELLED",value:"Cancelled"},{id:"PAID",value:"Paid"},{id:"CLOSED",value:"Closed"}];p(()=>{l.value&&(e.value=n.filter(a=>a.id===l.value)[0])});const s=()=>{i("change",e.value)};return r(()=>l.value,a=>{a||(e.value=null)}),(a,o)=>{const u=m;return C(),E(u,{value:e.value,"onUpdate:value":o[0]||(o[0]=c=>e.value=c),"show-search":"",placeholder:"Choose a status",options:n,"clear-icon":"","allow-clear":"",onChange:s,"field-names":{label:"value",value:"id"}},null,8,["value"])}}});export{I as _};
