import{b as r}from"./chunk-7UZ67ZJA.js";import{d as l}from"./chunk-MQKTIDDS.js";import{ah as o}from"./chunk-L6W7X4TF.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+" is not valid");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+" is not valid");return i.length===0?null:{validHostsOrHandles:{reason:"invalid",value:i.join(". ")+"."}};},v={VALIDATORS:[l.required,u,r],MESSAGES:{required:"Domain is required.",validHosts:"Domains entered are invalid.",unique:"Domains entered contain duplicates."}},z={VALIDATORS:[l.required,d,r],MESSAGES:{required:"Domain is required.",validHostsOrHandles:"Domains or handles are invalid.",unique:"Domains or handles contain duplicates."}};export{s as a,v as b,z as c};/**i18n:ae7e6707fc51a9e1f6f015929aece8afe43a92a094f09f07f0463afe6c89573f*///# sourceMappingURL=chunk-YOOUETGG.js.map