import{a}from"./chunk-3FRAL4JI.js";import{d as n}from"./chunk-Q77MC6OX.js";import{jh as o}from"./chunk-GM43ZGTR.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+" er ekki gilt");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+" er ekki gilt");return i.length===0?null:{validHostsOrHandles:{reason:"invalid",value:i.join(". ")+"."}};},H={VALIDATORS:[n.required,u,a],MESSAGES:{required:"Heiti l\xE9ns er nau\xF0synlegt.",validHosts:"Uppgefnar h\xFDsingar eru \xF3gildar.",unique:"Uppgefnar h\xFDsingar innihalda tv\xEDtekningar."}},v={VALIDATORS:[n.required,d,a],MESSAGES:{required:"Heiti l\xE9ns er nau\xF0synlegt.",validHostsOrHandles:"H\xFDsingar e\xF0a au\xF0kenni eru \xF3gild.",unique:"H\xFDsingar e\xF0a au\xF0kenni innihalda tv\xEDtekningar."}};export{t as a,H as b,v as c};/**i18n:aa38438cfc6bb6877c9985433629bf5f310ba8cfd6183982ad2c0c8f601d3935*///# sourceMappingURL=chunk-MXWHDAG5.js.map