import{b as r}from"./chunk-NYJN5JWU.js";import{d as l}from"./chunk-OPKDC23H.js";import{ah as o}from"./chunk-ZSQR4KTU.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+" \u043D\u0435\u0434\u0456\u0439\u0441\u043D\u0438\u0439 ");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+" \u043D\u0435\u0434\u0456\u0439\u0441\u043D\u0438\u0439 ");return i.length===0?null:{validHostsOrHandles:{reason:"invalid",value:i.join(". ")+"."}};},v={VALIDATORS:[l.required,u,r],MESSAGES:{required:"\u0414\u043E\u043C\u0435\u043D \u043E\u0431\u043E\u0432'\u044F\u0437\u043A\u043E\u0432\u0438\u0439.",validHosts:"Domains entered are invalid.",unique:"Domains entered contain duplicates."}},z={VALIDATORS:[l.required,d,r],MESSAGES:{required:"\u0414\u043E\u043C\u0435\u043D \u043E\u0431\u043E\u0432'\u044F\u0437\u043A\u043E\u0432\u0438\u0439.",validHostsOrHandles:"Domains or handles are invalid.",unique:"Domains or handles contain duplicates."}};export{s as a,v as b,z as c};/**i18n:347eeb695970c32bc275618edc2e751c67145d9fc3012e70543c114a99b9e016*///# sourceMappingURL=chunk-35B5ZHSD.js.map