import{_ as g}from"./index-DIKmrNCq.js?v=1773287522785";import{_ as w}from"./index.vue_vue_type_script_setup_true_lang-D8O2mMsP.js?v=1773287522785";import{w as C}from"./planned-URJGV2nd.js?v=1773287522785";import{k as y,R as h,r as $,e as P,$ as S,Z as k,a0 as a,a9 as r,S as o,_ as d,aa as m,N as I}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{a1 as R,b as U}from"./naive-ui--dJnpVcV.js?v=1773287522785";import"./index-BTglIPU2.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";const B={class:"p-20px"},A=y({__name:"index",props:{data:{}},setup(f,{expose:c}){const{t:p}=h(),q=f,{callback:u}=q.data,_=$(null),t=P({qq_mail:"",qq_stmp_pwd:"",hosts:"",port:"465"}),b={qq_mail:{trigger:["blur","input"],validator:(n,e)=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)?!0:new Error(p("Crontab.Planned.index_54"))},qq_stmp_pwd:{required:!0,message:p("Security.Conf.Index_28"),trigger:["blur","input"]},hosts:{required:!0,message:p("Security.Conf.Index_28"),trigger:["blur","input"]},port:{required:!0,message:p("Security.Conf.Index_28"),trigger:["blur","input"]}};return c({onConfirm:async({hide:n})=>{var e;await((e=_.value)==null?void 0:e.validate()),await C(I(t)),u==null||u(),n()}}),(n,e)=>{const s=U,i=R,x=w,v=g;return S(),k("div",B,[a(x,{ref_key:"formRef",ref:_,model:o(t),rules:b},{default:r(()=>[a(i,{label:n.$t("Crontab.Planned.index_55"),path:"qq_mail"},{default:r(()=>[a(s,{class:"w-250px!",type:"text",value:o(t).qq_mail,"onUpdate:value":e[0]||(e[0]=l=>o(t).qq_mail=l),placeholder:" "},null,8,["value"])]),_:1},8,["label"]),a(i,{label:n.$t("Crontab.Planned.index_56"),path:"qq_stmp_pwd"},{default:r(()=>[a(s,{class:"w-250px!",type:"password",value:o(t).qq_stmp_pwd,"onUpdate:value":e[1]||(e[1]=l=>o(t).qq_stmp_pwd=l),placeholder:" "},null,8,["value"])]),_:1},8,["label"]),a(i,{label:n.$t("Crontab.Planned.index_57"),path:"hosts"},{default:r(()=>[a(s,{class:"w-250px!",type:"text",value:o(t).hosts,"onUpdate:value":e[2]||(e[2]=l=>o(t).hosts=l),placeholder:" "},null,8,["value"])]),_:1},8,["label"]),a(i,{label:n.$t("Docker.Container.create.index_7"),path:"port"},{default:r(()=>[a(s,{class:"w-250px!",type:"text",value:o(t).port,"onUpdate:value":e[3]||(e[3]=l=>o(t).port=l),placeholder:" "},null,8,["value"])]),_:1},8,["label"])]),_:1},8,["model"]),a(v,{class:"mt-4px"},{default:r(()=>[d("li",null,m(n.$t("Crontab.Planned.index_58")),1),d("li",null,m(n.$t("Crontab.Planned.index_59")),1)]),_:1})])}}});export{A as default};
