/* empty css             *//* empty css                 *//* empty css               *//* empty css                  *//* empty css                     */import{d as a,q as e,P as l,o as t,l as s,w as u,c as o,F as r,p,f as n,I as i,bv as b,ac as y,B as d,cy as f,D as c}from"./index-545c1a76.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=>{g.value=a.data.data}))},g=(v.group,e());return v.api?v.query?l(v,(function(){m()})):m():g.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(g),(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(g),(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 _};
