import{a}from"./chunk-ZCXIWLKD.js";import{d as n}from"./chunk-2BCM34HS.js";import{mh as o}from"./chunk-PXFCSR5K.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+" v\xF4 gi\xE1 tr\u1ECB ");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+" v\xF4 gi\xE1 tr\u1ECB ");return i.length===0?null:{validHostsOrHandles:{reason:"invalid",value:i.join(". ")+"."}};},H={VALIDATORS:[n.required,u,a],MESSAGES:{required:"Y\xEAu c\u1EA7u t\xEAn mi\u1EC1n.",validHosts:"Nh\u1EEFng m\xE1y ch\u1EE7 \u0111\xE3 nh\u1EADp kh\xF4ng h\u1EE3p l\u1EC7.",unique:"Nh\u1EEFng m\xE1y ch\u1EE7 \u0111\xE3 nh\u1EADp b\u1ECB tr\xF9ng l\u1EB7p."}},v={VALIDATORS:[n.required,d,a],MESSAGES:{required:"Y\xEAu c\u1EA7u t\xEAn mi\u1EC1n.",validHostsOrHandles:"M\xE1y ch\u1EE7 ho\u1EB7c \u0111\u1ECBa ch\u1EC9 b\u1ECB sai.",unique:"M\xE1y ch\u1EE7 ho\u1EB7c \u0111\u1ECBa ch\u1EC9 b\u1ECB tr\xF9ng l\u1EB7p."}};export{t as a,H as b,v as c};/**i18n:c65a26d1e9dd8b923403d49a4dccad76e3fa3313ede414d8a3b16d3f73c99bce*///# sourceMappingURL=chunk-FAHLSIDF.js.map