import{_ as N}from"./index.vue_vue_type_script_setup_true_lang-D8O2mMsP.js?v=1773287522785";import{m as b}from"./index-BTglIPU2.js?v=1773287522785";import{s as h}from"./index-B1UAKxq5.js?v=1773287522785";import{u as w}from"./index-CpV61Xte.js?v=1773287522785";import{k as x,R as C,c as k,r as S,$ as B,Z as O,a0 as e,a9 as n,_ as R,S as i,X as $}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{a1 as J,a6 as P}from"./naive-ui--dJnpVcV.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-DgjjuUjT.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-B7YvCBmY.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-C5hb-Th7.js?v=1773287522785";import"./data-BVsViUMm.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-HxsqzSKU.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-BeO8Hyma.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-D2Bk83Ev.js?v=1773287522785";import"./useTableData-BmkIKQ_R.js?v=1773287522785";import"./useLoading-CZ2gSAW7.js?v=1773287522785";import"./useTableColumns-DDeyYvje.js?v=1773287522785";import"./index-S15tYq5l.js?v=1773287522785";import"./copy-D-wIKr0q.js?v=1773287522785";import"./index-DIKmrNCq.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-DeTfbeeM.js?v=1773287522785";import"./index-Cg6fMjw6.js?v=1773287522785";import"./index-BGYvyLDv.js?v=1773287522785";import"./index-DhzSj-2g.js?v=1773287522785";import"./xterm-dpUsuiNl.js?v=1773287522785";import"./useSocket-DTHwGZgK.js?v=1773287522785";import"./xterm-addon-canvas-DELv9KNm.js?v=1773287522785";const V={class:"p-20px"},E={class:"w-150px"},po=x({__name:"batch",props:{data:{}},setup(m,{expose:p}){const c=m,{categoryList:l}=w(),{t:_}=C(),{rows:r,onRefresh:u}=c.data,s=k(()=>l.filter(o=>o.value!=="")),t=S(s.value[0].value),f=()=>({category_id:t.value,ids:JSON.stringify(r.map(o=>o.id)),node_list:JSON.stringify(r.map(o=>({id:o.id})))});return p({onConfirm:async()=>{if(!t.value){b.error(_("Please select category"));return}await h(f()),u()}}),(o,a)=>{const d=P,g=J,v=N;return B(),O("div",V,[e(v,null,{default:n(()=>[e(g,{label:o.$t("Node category"),"show-feedback":!1},{default:n(()=>[R("div",E,[e(d,{value:i(t),"onUpdate:value":a[0]||(a[0]=y=>$(t)?t.value=y:null),options:i(s)},null,8,["value","options"])])]),_:1},8,["label"])]),_:1})])}}});export{po as default};
