import{a}from"./chunk-MAG4MXMF.js";import{d as n}from"./chunk-77K4SKWD.js";import{dh as o}from"./chunk-IDYB4NXF.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 ikke gyldig ");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 ikke gyldig ");return i.length===0?null:{validHostsOrHandles:{reason:"invalid",value:i.join(". ")+"."}};},H={VALIDATORS:[n.required,u,a],MESSAGES:{required:"Domene kreves.",validHosts:"Oppgitte verter er ugyldige.",unique:"Oppgitte verter inneholder duplikater."}},v={VALIDATORS:[n.required,d,a],MESSAGES:{required:"Domene kreves.",validHostsOrHandles:"Verter eller navn er ugyldige.",unique:"Verter eller navn inneholde duplikater."}};export{t as a,H as b,v as c};/**i18n:1cf7c077143c4c267fdafbe5508f191afcef21bad6aba22a3a8dc180e1003753*///# sourceMappingURL=chunk-ELHSO7EK.js.map