import{j}from'./chunk-Bs5uhWDK.js';import{bR as ye,bT as xxe}from'./main-ajlqprgK.js';function s(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 t(e){return e?e.includes("@"):false;}var u=e=>{if(!e.value)return null;let i=[],a=xxe(e.value);for(let n of a)s(n)===false&&i.push(""+n+" \u65E0\u6548 ");return i.length===0?null:{validHosts:{reason:"invalid",value:i.join(". ")+"."}};},d=e=>{if(!e.value)return null;let i=[],a=xxe(e.value);for(let n of a)s(n)===false&&t(n)===false&&i.push(""+n+" \u65E0\u6548 ");return i.length===0?null:{validHostsOrHandles:{reason:"invalid",value:i.join(". ")+"."}};},v={VALIDATORS:[ye.required,u,j],MESSAGES:{required:"\u9700\u8981\u57DF\u3002",validHosts:"\u8F93\u5165\u7684\u57DF\u540D\u65E0\u6548\u3002",unique:"\u8F93\u5165\u7684\u57DF\u540D\u5305\u542B\u91CD\u590D\u9879\u3002"}},z={VALIDATORS:[ye.required,d,j],MESSAGES:{required:"\u9700\u8981\u57DF\u3002",validHostsOrHandles:"\u57DF\u540D\u6216\u7528\u6237\u540D\u65E0\u6548\u3002",unique:"\u57DF\u540D\u6216\u7528\u6237\u540D\u5305\u542B\u91CD\u590D\u9879\u3002"}};/**i18n:fad79908930cbb4c308e7550a5fe49bb3841dbb330066a6429aebaa006173605*/export{s,v,z};//# sourceMappingURL=chunk-Beqt5oi7.js.map