import{a}from"./chunk-5KF6G4PU.js";import{d as n}from"./chunk-EKD65OAZ.js";import{ag as o}from"./chunk-XBTZE2EC.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+" 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=[],l=o(e.value);for(let s of l)t(s)===!1&&r(s)===!1&&i.push("\n          "+s+" no \xE9s v\xE0lid\n        ");return i.length===0?null:{validHostsOrHandles:{reason:"invalid",value:i.join(". ")+"."}};},H={VALIDATORS:[n.required,u,a],MESSAGES:{required:"Es requereix un domini.",validHosts:"Els hosts introdu\xEFts no s\xF3n v\xE0lids.",unique:"Els hosts introdu\xEFts contenen duplicats."}},v={VALIDATORS:[n.required,d,a],MESSAGES:{required:"Es requereix un domini.",validHostsOrHandles:"Els hosts o identificadors no s\xF3n v\xE0lids.",unique:"Els hosts o identificadors contenen duplicats."}};export{t as a,H as b,v as c};/**i18n:56bde403ffba090cdb11aaac0f86ffb9ae7c2bab95df4b44d5dba510264fcf4f*///# sourceMappingURL=chunk-UNEJOHDN.js.map