System.register(["./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1763625242172","./page_layout-legacy.js?v=1763625242172","./public-legacy.js?v=1763625242172","./planned-legacy.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./naive-legacy.js?v=1763625242172","./common-legacy.js?v=1763625242172","./__commonjsHelpers__-legacy.js?v=1763625242172"],(function(e,a){"use strict";var l,n,t,s,u,o,r,i,d,c,_,g,p,v,y,m,b,f,j;return{setters:[e=>{l=e._},e=>{n=e.bm,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.S,p=e.X,v=e.a3,y=e.U,m=e.V,b=e.aj},e=>{f=e.dV,j=e.dP},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:P}=h.data,C=n(),S=c(null),k=c([]),{loading:R,setLoading:U}=u();return(async()=>{try{U(!0);const{message:e}=await o();t(e)&&e.length>0?(k.value=e.map((e=>({label:e.name,value:e.id}))),S.value=e[0].id):(S.value=null,k.value=[])}finally{U(!1)}})(),i({onConfirm:async({hide:e})=>{await r((()=>{if(null===S.value)throw s.error(w("Crontab.Planned.index_28")),new Error(w("Crontab.Planned.index_28"));return{id:S.value,crontab_ids:JSON.stringify(P.map((e=>e.id)))}})()),C.setRefresh(!0),e()}}),(e,n)=>{const t=f,s=j,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(S),"onUpdate:value":n[0]||(n[0]=e=>b(S)?S.value=e:null),loading:m(R),options:m(k)},null,8,["value","loading","options"])])])),_:1},8,["label"])])),_:1})])}}}))}}}));
