/* empty css             *//* empty css                 *//* empty css               *//* empty css                  *//* empty css                     *//* empty css                  */import{d as a,m as e,O as l,o as t,l as s,w as u,c as o,F as p,y as r,f as n,H as i,aN as b,a9 as y,A as d,aQ as f,B as c}from"./index-2b50ecca.js";const m=a({__name:"index",props:{options:{type:Array,default:[]},api:{type:String,default:""},group:{type:Boolean,default:!1},query:{type:Object,default:null}},setup(a){const m=a,v=()=>{y.get("options/"+m.api,m.query).then((a=>{j.value=a.data.data}))},j=(m.group,e());return m.api?m.query?l(m,(function(){v()})):v():j.value=m.options,(e,l)=>{const y=d,m=f,v=c;return t(),s(v,b(e.$attrs,{class:"w-full",clearable:"",filterable:""}),{default:u((()=>[a.group?(t(!0),o(p,{key:0},r(n(j),(a=>(t(),s(m,{key:a.label,label:a.label},{default:u((()=>[(t(!0),o(p,null,r(a.options,(a=>(t(),s(y,{key:a.value,label:a.label,value:a.value},null,8,["label","value"])))),128))])),_:2},1032,["label"])))),128)):(t(!0),o(p,{key:1},r(n(j),(a=>(t(),s(y,{key:a.value,label:a.label,value:a.value},{default:u((()=>[i(e.$slots,"default")])),_:2},1032,["label","value"])))),128))])),_:3},16)}}});export{m as _};
