import{a}from"./chunk-ZF5MYPMN.js";import{d as n}from"./chunk-5V4OEYNC.js";import{ag as o}from"./chunk-7XZKA4JV.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+" ei ole sallittu\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(""+s+" ei ole sallittu\n        ");return i.length===0?null:{validHostsOrHandles:{reason:"invalid",value:i.join(". ")+"."}};},H={VALIDATORS:[n.required,u,a],MESSAGES:{required:"Verkkotunnus vaaditaan.",validHosts:"Hostit ovat virheellisi\xE4.",unique:"Hostit sis\xE4lt\xE4v\xE4t kaksoiskappaleita."}},v={VALIDATORS:[n.required,d,a],MESSAGES:{required:"Verkkotunnus vaaditaan.",validHostsOrHandles:"Hostit tai tunnukset ovat virheellisi\xE4.",unique:"Hostit tai tunnukset sis\xE4lt\xE4\xE4 kaksoiskappaleita."}};export{t as a,H as b,v as c};/**i18n:37786acc6a78281d9fbe29f0e76f79a0df01fc58cd74a91d2d29106b1f1580b1*///# sourceMappingURL=chunk-527BCHOA.js.map