import{aA as a,d as g,z as l,S as p,o as h,c as v,h as i,$ as S,a0 as _,a6 as N}from"./index-D3rICic-.js";function b(e){return a({url:"/scene-config/page/list",method:"get",params:e})}function y(e){return a({url:"/scene-config/list",method:"get",params:e})}function L(e){return a({url:"/scene-config",method:"post",data:e})}function $(e){return a({url:"/scene-config",method:"put",data:e})}function k(e,c){return a({url:`/scene-config/${e}/status/${c}`,method:"put"})}const B=g({name:"SelectScene",__name:"select-scene",props:{groupName:{},clearable:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:c}){const f=c,n=e,o=l([]),t=l("");async function m(u){if(n.groupName){const s=await y({groupName:u});o.value=s.data.map(r=>r.sceneName)}else t.value="",o.value=[]}return p(()=>n.groupName,()=>{m(n.groupName)}),p(()=>t.value,()=>{f("update:value",t.value)}),(u,s)=>{const r=N;return h(),v(r,{value:t.value,"onUpdate:value":s[0]||(s[0]=d=>t.value=d),placeholder:i(S)("page.retryTask.form.sceneName"),options:i(_)(o.value),clearable:n.clearable},null,8,["value","placeholder","options","clearable"])}}});export{B as _,L as a,$ as b,b as c,k as d,y as f};
