import{_ as e}from"./public.js?v=1763625242172";import{_ as a}from"./index.vue_vue_type_script_setup_true_lang.js?v=1763625242172";import{w as t}from"./planned.js?v=1763625242172";import{k as l,P as r,r as o,e as n,R as s,S as i,X as u,a3 as p,V as _,U as d,a4 as m,N as c}from"./vue.js?v=1763625242172";import{au as b,dP as f}from"./naive.js?v=1763625242172";import"./page_layout.js?v=1763625242172";import"./common.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";const x={class:"p-20px"},v=l({__name:"index",props:{data:{}},setup(l,{expose:v}){const{t:y}=r(),j=l,{callback:g}=j.data,k=o(null),C=n({my_id:"",bot_token:""}),S={my_id:{required:!0,message:y("Security.Conf.Index_28"),trigger:["blur","input"]},bot_token:{required:!0,message:y("Security.Conf.Index_28"),trigger:["blur","input"]}};return v({onConfirm:async({hide:e})=>{var a;await(null==(a=k.value)?void 0:a.validate()),await t(c(C)),null==g||g(),e()}}),(t,l)=>{const r=b,o=f,n=a,c=e;return s(),i("div",x,[u(n,{ref_key:"formRef",ref:k,model:_(C),rules:S},{default:p((()=>[u(o,{label:t.$t("Crontab.Script.index_45"),path:"my_id"},{default:p((()=>[u(r,{class:"w-250px!",type:"text",value:_(C).my_id,"onUpdate:value":l[0]||(l[0]=e=>_(C).my_id=e),placeholder:" "},null,8,["value"])])),_:1},8,["label"]),u(o,{label:t.$t("Crontab.Script.index_46"),path:"bot_token"},{default:p((()=>[u(r,{class:"w-250px!",type:"text",value:_(C).bot_token,"onUpdate:value":l[1]||(l[1]=e=>_(C).bot_token=e),placeholder:" "},null,8,["value"])])),_:1},8,["label"])])),_:1},8,["model"]),u(c,null,{default:p((()=>[d("li",null,m(t.$t("Crontab.Script.index_47")),1),d("li",null,m(t.$t("Crontab.Script.index_48")),1),d("li",null,m(t.$t("Crontab.Script.index_49")),1)])),_:1})])}}});export{v as default};
