import{a}from"./chunk-REZ4JWUS.js";import{d as n}from"./chunk-I267ADJP.js";import{Lf as o}from"./chunk-4JM6MIZ5.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("\n          "+s+" \xE4r inte giltig\n        ");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("\n          "+s+" \xE4r inte giltig\n        ");return i.length===0?null:{validHostsOrHandles:{reason:"invalid",value:i.join(". ")+"."}};},H={VALIDATORS:[n.required,u,a],MESSAGES:{required:"Dom\xE4n m\xE5ste anges.",validHosts:"Angivna v\xE4rdar \xE4r ogiltiga.",unique:"Angivna v\xE4rdar inneh\xE5ller dubbletter."}},v={VALIDATORS:[n.required,d,a],MESSAGES:{required:"Dom\xE4n m\xE5ste anges.",validHostsOrHandles:"V\xE4rdar eller handtag \xE4r ogiltiga.",unique:"V\xE4rdar eller handtag inneh\xE5ller dubbletter."}};export{t as a,H as b,v as c};/**i18n:68865f44f2a527c44cf5136a17c76a0ff8308c2bae5c7c8d50070a5fb9847c44*///# sourceMappingURL=chunk-EOEE7WRM.js.map