import{b as r}from"./chunk-ARSU464T.js";import{d as l}from"./chunk-XQH6HV66.js";import{ah as o}from"./chunk-EKZJWO2J.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+" nem \xE9rv\xE9nyes\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+" nem \xE9rv\xE9nyes\n        ");return i.length===0?null:{validHostsOrHandles:{reason:"invalid",value:i.join(". ")+"."}};},v={VALIDATORS:[l.required,u,r],MESSAGES:{required:"Tartom\xE1ny sz\xFCks\xE9ges.",validHosts:"Domains entered are invalid.",unique:"Domains entered contain duplicates."}},z={VALIDATORS:[l.required,d,r],MESSAGES:{required:"Tartom\xE1ny sz\xFCks\xE9ges.",validHostsOrHandles:"Domains or handles are invalid.",unique:"Domains or handles contain duplicates."}};export{s as a,v as b,z as c};/**i18n:e079feaac094a2c754af8c2d9f82a9400e546e6b8cdd8ff7d538e47a33fc4649*///# sourceMappingURL=chunk-22KJDZPS.js.map