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