System.register(["./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1753954525509","./page_layout-legacy.js?v=1753954525509","./public-legacy.js?v=1753954525509","./planned-legacy.js?v=1753954525509","./vue-legacy.js?v=1753954525509","./naive-legacy.js?v=1753954525509","./common-legacy.js?v=1753954525509","./__commonjsHelpers__-legacy.js?v=1753954525509"],(function(e,a){"use strict";var l,n,t,s,u,o,r,i,c,d,_,g,p,v,y,m,b,f,j;return{setters:[e=>{l=e._},e=>{n=e.b0,t=e.w,s=e.m},e=>{u=e.c},e=>{o=e.g,r=e.o},e=>{i=e.k,c=e.P,d=e.r,_=e.U,g=e.V,p=e.Q,v=e.a2,y=e.W,m=e.X,b=e.ah},e=>{f=e.cG,j=e.cA},null,null],execute:function(){const a={class:"p-20px"},w={class:"w-150px"};e("default",i({__name:"batch",props:{data:{}},setup(e,{expose:i}){const{t:x}=c(),h=e,{rows:C}=h.data,P=n(),k=d(null),S=d([]),{loading:U,setLoading:A}=u();return(async()=>{try{A(!0);const{message:e}=await o();t(e)&&e.length>0?(S.value=e.map((e=>({label:e.name,value:e.id}))),k.value=e[0].id):(k.value=null,S.value=[])}finally{A(!1)}})(),i({onConfirm:async({hide:e})=>{await r((()=>{if(null===k.value)throw s.error(x("Crontab.Planned.index_28")),new Error(x("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=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",w,[p(t,{value:m(k),"onUpdate:value":n[0]||(n[0]=e=>b(k)?k.value=e:null),loading:m(U),options:m(S)},null,8,["value","loading","options"])])])),_:1},8,["label"])])),_:1})])}}}))}}}));
