System.register(["./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1764830988434","./page_layout-legacy.js?v=1764830988434","./public-legacy.js?v=1764830988434","./planned-legacy.js?v=1764830988434","./vue-legacy.js?v=1764830988434","./naive-legacy.js?v=1764830988434","./common-legacy.js?v=1764830988434","./__commonjsHelpers__-legacy.js?v=1764830988434"],function(e,a){"use strict";var l,n,t,s,u,o,r,i,d,c,_,g,p,v,y,m,f,b,j;return{setters:[e=>{l=e._},e=>{n=e.aK,t=e.x,s=e.m},e=>{u=e.d},e=>{o=e.g,r=e.o},e=>{i=e.k,d=e.P,c=e.r,_=e.R,g=e.V,p=e.W,v=e.a3,y=e.S,m=e.U,f=e.ak},e=>{b=e.dR,j=e.dV},null,null],execute:function(){const a={class:"p-20px"},x={class:"w-150px"};e("default",i({__name:"batch",props:{data:{}},setup(e,{expose:i}){const{t:w}=d(),h=e,{rows:C}=h.data,P=n(),k=c(null),R=c([]),{loading:S,setLoading:U}=u();return(async()=>{try{U(!0);const{message:e}=await o();t(e)&&e.length>0?(R.value=e.map(e=>({label:e.name,value:e.id})),k.value=e[0].id):(k.value=null,R.value=[])}finally{U(!1)}})(),i({onConfirm:async({hide:e})=>{await r((()=>{if(null===k.value)throw s.error(w("Crontab.Planned.index_28")),new Error(w("Crontab.Planned.index_28"));return{id:k.value,crontab_ids:JSON.stringify(C.map(e=>e.id))}})()),P.setRefresh(!0),e()}}),(e,n)=>{const t=j,s=b,u=l;return g(),_("div",a,[p(u,null,{default:v(()=>[p(s,{label:e.$t("Crontab.Planned.index_27"),"show-feedback":!1},{default:v(()=>[y("div",x,[p(t,{value:m(k),"onUpdate:value":n[0]||(n[0]=e=>f(k)?k.value=e:null),loading:m(S),options:m(R)},null,8,["value","loading","options"])])]),_:1},8,["label"])]),_:1})])}}}))}}});
