import{a}from"./chunk-KBACFRSP.js";import{d as n}from"./chunk-MJIAB7QL.js";import{hh as o}from"./chunk-2GYONVCW.js";function t(e){return new RegExp("^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]).)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9])$").test(e);}function r(e){return e?e.includes("@"):!1;}var u=e=>{if(!e.value)return null;let i=[],l=o(e.value);for(let s of l)t(s)===!1&&i.push(""+s+" \u65E0\u6548 ");return i.length===0?null:{validHosts:{reason:"invalid",value:i.join(". ")+"."}};},d=e=>{if(!e.value)return null;let i=[],l=o(e.value);for(let s of l)t(s)===!1&&r(s)===!1&&i.push(""+s+" \u65E0\u6548 ");return i.length===0?null:{validHostsOrHandles:{reason:"invalid",value:i.join(". ")+"."}};},H={VALIDATORS:[n.required,u,a],MESSAGES:{required:"\u9700\u8981\u57DF\u3002",validHosts:"\u8F93\u5165\u7684\u4E3B\u673A\u65E0\u6548\u3002",unique:"\u8F93\u5165\u7684\u4E3B\u673A\u5305\u542B\u91CD\u590D\u9879\u3002"}},v={VALIDATORS:[n.required,d,a],MESSAGES:{required:"\u9700\u8981\u57DF\u3002",validHostsOrHandles:"\u4E3B\u673A\u6216\u7528\u6237/\u9891\u9053\u540D\u65E0\u6548\u3002",unique:"\u4E3B\u673A\u6216\u7528\u6237/\u9891\u9053\u540D\u5305\u542B\u91CD\u590D\u9879\u3002"}};export{t as a,H as b,v as c};/**i18n:7c691147a9ded88b46d9cd2285c6afa220006ce26eb0d02eb4522192723b6cd8*///# sourceMappingURL=chunk-OQHLK2A7.js.map