import{a as r}from"./chunk-224CCCOW.js";import{d as l}from"./chunk-Z4R7HYSO.js";import{Ch as o}from"./chunk-WSBGJRUM.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+" er ekki gilt");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+" er ekki gilt");return i.length===0?null:{validHostsOrHandles:{reason:"invalid",value:i.join(". ")+"."}};},v={VALIDATORS:[l.required,u,r],MESSAGES:{required:"Heiti l\xE9ns er nau\xF0synlegt.",validHosts:"Domains entered are invalid.",unique:"Domains entered contain duplicates."}},z={VALIDATORS:[l.required,d,r],MESSAGES:{required:"Heiti l\xE9ns er nau\xF0synlegt.",validHostsOrHandles:"Domains or handles are invalid.",unique:"Domains or handles contain duplicates."}};export{s as a,v as b,z as c};/**i18n:3907c1bc44ea3b180445250ac6c616b106e81f719372623351dcd73c005dc65a*///# sourceMappingURL=chunk-R67N4JBZ.js.map