import{b as r}from"./chunk-I7WJ22YZ.js";import{d as l}from"./chunk-5Y6FVWZJ.js";import{$g as o}from"./chunk-7XPKW7E5.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("@"):!1;}var u=e=>{if(!e.value)return null;let i=[],a=o(e.value);for(let n of a)s(n)===!1&&i.push(""+n+" no \xE9s v\xE0lid\n        ");return i.length===0?null:{validHosts:{reason:"invalid",value:i.join(". ")+"."}};},d=e=>{if(!e.value)return null;let i=[],a=o(e.value);for(let n of a)s(n)===!1&&t(n)===!1&&i.push(""+n+" no \xE9s v\xE0lid\n        ");return i.length===0?null:{validHostsOrHandles:{reason:"invalid",value:i.join(". ")+"."}};},v={VALIDATORS:[l.required,u,r],MESSAGES:{required:"Es requereix un domini.",validHosts:"Els dominis introdu\xEFts no s\xF3n v\xE0lids.",unique:"Els dominis introdu\xEFts contenen duplicats."}},z={VALIDATORS:[l.required,d,r],MESSAGES:{required:"Es requereix un domini.",validHostsOrHandles:"Els dominis o els identificadors no s\xF3n v\xE0lids.",unique:"Els dominis o identificadors contenen duplicats."}};export{s as a,v as b,z as c};/**i18n:8bbaae6e8f892c770558263409b04864bea4163b0f68bbe3358622c96ded4382*///# sourceMappingURL=chunk-3R6CKDQR.js.map