import{a}from"./chunk-J3QFZHOO.js";import{d as n}from"./chunk-NQFIF6FB.js";import{wh as o}from"./chunk-W6R7I2TH.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+" nie je platn\xE9 ");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+" nie je platn\xE9 ");return i.length===0?null:{validHostsOrHandles:{reason:"invalid",value:i.join(". ")+"."}};},H={VALIDATORS:[n.required,u,a],MESSAGES:{required:"Vy\u017Eaduje sa dom\xE9na.",validHosts:"Zadan\xED hostitelia s\xFA neplatn\xED.",unique:"Zadan\xED hostitelia obsahuj\xFA duplicity."}},v={VALIDATORS:[n.required,d,a],MESSAGES:{required:"Vy\u017Eaduje sa dom\xE9na.",validHostsOrHandles:"Hostitelia alebo identifik\xE1tory s\xFA neplatn\xE9.",unique:"Hostitelia alebo identifik\xE1tory obsahuj\xFA duplicity."}};export{t as a,H as b,v as c};/**i18n:90f1dd82a779b57eddc91ef20913c88eecaa9632bba8ac04ad50f47ae2b82df7*///# sourceMappingURL=chunk-TASUEPHG.js.map