import{a}from"./chunk-LWVANMRC.js";import{d as n}from"./chunk-A6GAOBDS.js";import{lh as o}from"./chunk-K5TQVRW4.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+" ne validas\n        ");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+" ne validas\n        ");return i.length===0?null:{validHostsOrHandles:{reason:"invalid",value:i.join(". ")+"."}};},H={VALIDATORS:[n.required,u,a],MESSAGES:{required:"Domajno estas postulata.",validHosts:"Enigitaj gastigantoj estas nevalidaj.",unique:"Enigitaj gastigantoj enhavas duobla\u0135ojn."}},v={VALIDATORS:[n.required,d,a],MESSAGES:{required:"Domajno estas postulata.",validHostsOrHandles:"Hosts or handles are invalid.",unique:"Hosts or handles contain duplicates."}};export{t as a,H as b,v as c};/**i18n:3ab8a6a12ff574644ebf46057f36e5643b4288edb94e57af377eaee98d8b77d4*///# sourceMappingURL=chunk-G62UUIDG.js.map