import{_ as e}from"./public.js?v=1763625242172";import{_ as a}from"./index.vue_vue_type_script_setup_true_lang.js?v=1763625242172";import{v as l}from"./planned.js?v=1763625242172";import{k as t,P as s,r,e as n,R as p,S as o,X as u,a3 as d,V as i,U as _,a4 as m,N as c}from"./vue.js?v=1763625242172";import{au as q,dP as v}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"},b=t({__name:"index",props:{data:{}},setup(t,{expose:b}){const{t:f}=s(),h=t,{callback:g}=h.data,w=r(null),y=n({qq_mail:"",qq_stmp_pwd:"",hosts:"",port:"465"}),C={qq_mail:{trigger:["blur","input"],validator:(e,a)=>!!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(a)||new Error(f("Crontab.Planned.index_54"))},qq_stmp_pwd:{required:!0,message:f("Security.Conf.Index_28"),trigger:["blur","input"]},hosts:{required:!0,message:f("Security.Conf.Index_28"),trigger:["blur","input"]},port:{required:!0,message:f("Security.Conf.Index_28"),trigger:["blur","input"]}};return b({onConfirm:async({hide:e})=>{var a;await(null==(a=w.value)?void 0:a.validate()),await l(c(y)),null==g||g(),e()}}),(l,t)=>{const s=q,r=v,n=a,c=e;return p(),o("div",x,[u(n,{ref_key:"formRef",ref:w,model:i(y),rules:C},{default:d((()=>[u(r,{label:l.$t("Crontab.Planned.index_55"),path:"qq_mail"},{default:d((()=>[u(s,{class:"w-250px!",type:"text",value:i(y).qq_mail,"onUpdate:value":t[0]||(t[0]=e=>i(y).qq_mail=e),placeholder:" "},null,8,["value"])])),_:1},8,["label"]),u(r,{label:l.$t("Crontab.Planned.index_56"),path:"qq_stmp_pwd"},{default:d((()=>[u(s,{class:"w-250px!",type:"password",value:i(y).qq_stmp_pwd,"onUpdate:value":t[1]||(t[1]=e=>i(y).qq_stmp_pwd=e),placeholder:" "},null,8,["value"])])),_:1},8,["label"]),u(r,{label:l.$t("Crontab.Planned.index_57"),path:"hosts"},{default:d((()=>[u(s,{class:"w-250px!",type:"text",value:i(y).hosts,"onUpdate:value":t[2]||(t[2]=e=>i(y).hosts=e),placeholder:" "},null,8,["value"])])),_:1},8,["label"]),u(r,{label:l.$t("Docker.Container.create.index_7"),path:"port"},{default:d((()=>[u(s,{class:"w-250px!",type:"text",value:i(y).port,"onUpdate:value":t[3]||(t[3]=e=>i(y).port=e),placeholder:" "},null,8,["value"])])),_:1},8,["label"])])),_:1},8,["model"]),u(c,{class:"mt-4px"},{default:d((()=>[_("li",null,m(l.$t("Crontab.Planned.index_58")),1),_("li",null,m(l.$t("Crontab.Planned.index_59")),1)])),_:1})])}}});export{b as default};
