/* 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 r,y as p,f as n,H as i,aO as b,aa as y,A as d,aR as f,B as m}from"./index-0ffeeea6.js";const c=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 c=a,v=()=>{y.get("options/"+c.api,c.query).then((a=>{j.value=a.data.data}))},j=(c.group,e());return c.api?c.query?l(c,(function(){v()})):v():j.value=c.options,(e,l)=>{const y=d,c=f,v=m;return t(),s(v,b(e.$attrs,{class:"w-full",clearable:"",filterable:""}),{default:u((()=>[a.group?(t(!0),o(r,{key:0},p(n(j),(a=>(t(),s(c,{key:a.label,label:a.label},{default:u((()=>[(t(!0),o(r,null,p(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(r,{key:1},p(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{c as _};
