import{j}from'./chunk-BlVv8LBg.js';import{bR as ye,bT as xxe}from'./main-DEZ5cZzu.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("@"):false;}var u=e=>{if(!e.value)return null;let i=[],a=xxe(e.value);for(let n of a)s(n)===false&&i.push(""+n+" \xE4r inte giltig\n        ");return i.length===0?null:{validHosts:{reason:"invalid",value:i.join(". ")+"."}};},d=e=>{if(!e.value)return null;let i=[],a=xxe(e.value);for(let n of a)s(n)===false&&t(n)===false&&i.push(""+n+" \xE4r inte giltig\n        ");return i.length===0?null:{validHostsOrHandles:{reason:"invalid",value:i.join(". ")+"."}};},v={VALIDATORS:[ye.required,u,j],MESSAGES:{required:"Dom\xE4n m\xE5ste anges.",validHosts:"Angivna dom\xE4ner \xE4r ogiltiga.",unique:"Dom\xE4nerna inneh\xE5ller dubbletter."}},z={VALIDATORS:[ye.required,d,j],MESSAGES:{required:"Dom\xE4n m\xE5ste anges.",validHostsOrHandles:"Minst ett dom\xE4n-, konto- eller kanalnamn \xE4r ogiltigt.",unique:"De angivna dom\xE4n-, konto- eller kanalnamnen inneh\xE5ller dubbletter."}};/**i18n:c8855ca17fb20171aa9dd43d012e42547cb1f0cfd9c21d4dc05679bbbdf5ccb8*/export{s,v,z};//# sourceMappingURL=chunk-DxOctuNS.js.map