import{d as f,Z as n,a0 as b,r as _,o as g,c as v,h as r,$ as N,a8 as V,ab as h}from"./index-BlU6DPnP.js";import{g as y}from"./group-XM1tp95e.js";const k=f({name:"SelectGroup",__name:"select-group",props:n({disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:n(["update:modelValue"],["update:modelValue"]),setup(l,{emit:u}){const o=l,t=b(l,"modelValue"),d=u,s=_([]);async function p(){const{data:e,error:a}=await y();a||(s.value=e)}const c=e=>{d("update:modelValue",e)};return p(),(e,a)=>{const m=h;return g(),v(m,{value:t.value,"onUpdate:value":[a[0]||(a[0]=i=>t.value=i),c],placeholder:r(N)("page.retryTask.form.groupName"),options:r(V)(s.value),disabled:o.disabled,clearable:o.clearable,filterable:""},null,8,["value","placeholder","options","disabled","clearable"])}}});export{k as _};
