import{b as r}from"./chunk-SUF4EISU.js";import{d as l}from"./chunk-OSAEZL4I.js";import{$g as o}from"./chunk-RKSLYOIW.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+" 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=[],a=o(e.value);for(let n of a)s(n)===!1&&t(n)===!1&&i.push(""+n+" v\xF4 gi\xE1 tr\u1ECB ");return i.length===0?null:{validHostsOrHandles:{reason:"invalid",value:i.join(". ")+"."}};},v={VALIDATORS:[l.required,u,r],MESSAGES:{required:"Y\xEAu c\u1EA7u t\xEAn mi\u1EC1n.",validHosts:"C\xE1c t\xEAn mi\u1EC1n \u0111\xE3 nh\u1EADp kh\xF4ng h\u1EE3p l\u1EC7.",unique:"C\xE1c t\xEAn mi\u1EC1n \u0111\xE3 nh\u1EADp b\u1ECB tr\u1EEBng l\u1EB7p."}},z={VALIDATORS:[l.required,d,r],MESSAGES:{required:"Y\xEAu c\u1EA7u t\xEAn mi\u1EC1n.",validHostsOrHandles:"C\xE1c t\xEAn mi\u1EC1n ho\u1EB7c \u0111\u1ECBa ch\u1EC9 \u0111\xE3 nh\u1EADp kh\xF4ng h\u1EE3p l\u1EC7.",unique:"C\xE1c t\xEAn mi\u1EC1n ho\u1EB7c \u0111\u1ECBa ch\u1EC9 \u0111\xE3 nh\u1EADp b\u1ECB tr\xF9ng l\u1EB7p."}};export{s as a,v as b,z as c};/**i18n:5a85df092a135682c90bae008e37ec28160e04e5f445e29af2927333ba91ffa1*///# sourceMappingURL=chunk-N4D262CE.js.map