import{_ as g}from"./index-DIKmrNCq.js?v=1773287522785";import{_ as v}from"./index.vue_vue_type_script_setup_true_lang-D8O2mMsP.js?v=1773287522785";import{x as S}from"./planned-URJGV2nd.js?v=1773287522785";import{k,R as $,r as w,e as h,$ as R,Z as B,a0 as o,a9 as r,S as a,_ as i,aa as _,N as I}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{a1 as N,b as q}from"./naive-ui--dJnpVcV.js?v=1773287522785";import"./index-BTglIPU2.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";const U={class:"p-20px"},A=k({__name:"index",props:{data:{}},setup(c,{expose:f}){const{t:p}=$(),b=c,{callback:l}=b.data,m=w(null),n=h({my_id:"",bot_token:""}),x={my_id:{required:!0,message:p("Security.Conf.Index_28"),trigger:["blur","input"]},bot_token:{required:!0,message:p("Security.Conf.Index_28"),trigger:["blur","input"]}};return f({onConfirm:async({hide:e})=>{var t;await((t=m.value)==null?void 0:t.validate()),await S(I(n)),l==null||l(),e()}}),(e,t)=>{const u=q,d=N,y=v,C=g;return R(),B("div",U,[o(y,{ref_key:"formRef",ref:m,model:a(n),rules:x},{default:r(()=>[o(d,{label:e.$t("Crontab.Script.index_45"),path:"my_id"},{default:r(()=>[o(u,{class:"w-250px!",type:"text",value:a(n).my_id,"onUpdate:value":t[0]||(t[0]=s=>a(n).my_id=s),placeholder:" "},null,8,["value"])]),_:1},8,["label"]),o(d,{label:e.$t("Crontab.Script.index_46"),path:"bot_token"},{default:r(()=>[o(u,{class:"w-250px!",type:"text",value:a(n).bot_token,"onUpdate:value":t[1]||(t[1]=s=>a(n).bot_token=s),placeholder:" "},null,8,["value"])]),_:1},8,["label"])]),_:1},8,["model"]),o(C,null,{default:r(()=>[i("li",null,_(e.$t("Crontab.Script.index_47")),1),i("li",null,_(e.$t("Crontab.Script.index_48")),1),i("li",null,_(e.$t("Crontab.Script.index_49")),1)]),_:1})])}}});export{A as default};
