import{d as r,i as p,q as v,s as d,o as _,a as m,P as f}from"./index.29cf2edd.js";/* empty css              */const Y=r({__name:"ReportGroupSelection",props:{value:{type:String}},emits:["change"],setup(t,{emit:u}){const l=t,e=p(),o=[{id:"DAILY",value:"Daily"},{id:"MONTHLY",value:"Monthly"},{id:"YEARLY",value:"Yearly"},{id:"HOSPITAL",value:"Hospital"},{id:"LOCATION",value:"Service Location"},{id:"COUNTRY",value:"Country"}];v(()=>{l.value&&(e.value=o.filter(a=>a.id===l.value)[0])});const i=()=>{u("change",e.value)};return d(()=>l.value,a=>{a===void 0&&(e.value=null)}),(a,n)=>{const s=f;return _(),m(s,{value:e.value,"onUpdate:value":n[0]||(n[0]=c=>e.value=c),"show-search":"",placeholder:"Report Group",options:o,"clear-icon":"","allow-clear":"",onChange:i,"field-names":{label:"value",value:"id"}},null,8,["value"])}}});export{Y as _};
