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