import{b as r}from"./chunk-AQEMCWZ4.js";import{d as l}from"./chunk-7JTNILXC.js";import{ah as o}from"./chunk-NY4TI4KT.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("@"):!1;}var u=e=>{if(!e.value)return null;let i=[],a=o(e.value);for(let n of a)s(n)===!1&&i.push(""+n+" \u7121\u6548\n        ");return i.length===0?null:{validHosts:{reason:"invalid",value:i.join(". ")+"."}};},d=e=>{if(!e.value)return null;let i=[],a=o(e.value);for(let n of a)s(n)===!1&&t(n)===!1&&i.push(""+n+" \u7121\u6548\n        ");return i.length===0?null:{validHostsOrHandles:{reason:"invalid",value:i.join(". ")+"."}};},v={VALIDATORS:[l.required,u,r],MESSAGES:{required:"\u7DB2\u57DF\u5FC5\u586B\u3002",validHosts:"\u8F38\u5165\u7684\u7DB2\u57DF\u7121\u6548\u3002",unique:"\u8F38\u5165\u7684\u7DB2\u57DF\u4E2D\u5305\u542B\u91CD\u8907\u9805\u76EE\u3002"}},z={VALIDATORS:[l.required,d,r],MESSAGES:{required:"\u7DB2\u57DF\u5FC5\u586B\u3002",validHostsOrHandles:"\u7DB2\u57DF\u6216\u540D\u7A31\u7121\u6548\u3002",unique:"\u7DB2\u57DF\u6216\u540D\u7A31\u6709\u91CD\u8907\u9805\u76EE\u3002"}};export{s as a,v as b,z as c};/**i18n:347eeb695970c32bc275618edc2e751c67145d9fc3012e70543c114a99b9e016*///# sourceMappingURL=chunk-YMJUFDU5.js.map