import{a}from"./chunk-GWZWM7BI.js";import{d as n}from"./chunk-ZIVZTBTN.js";import{_f as o}from"./chunk-OX24XL2F.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+" baliogabea da\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+" baliogabea da\n        ");return i.length===0?null:{validHostsOrHandles:{reason:"invalid",value:i.join(". ")+"."}};},H={VALIDATORS:[n.required,u,a],MESSAGES:{required:"Domeinua beharrezkoa da.",validHosts:"Sartutako ostalariak baliogabeak dira.",unique:"Sartutako ostalariek bikoiztuak dituzte."}},v={VALIDATORS:[n.required,d,a],MESSAGES:{required:"Domeinua beharrezkoa da.",validHostsOrHandles:"Ostalariak edo helbideak baliogabeak dira.",unique:"Ostalariek edo helbideek bikoiztuak dituzte."}};export{t as a,H as b,v as c};/**i18n:93ef1b86561141301263c1f349fa8abb749523958c3a6dfaf46ed36d22b0a506*///# sourceMappingURL=chunk-HWK7YP2N.js.map