import{a}from"./chunk-RCYE3MIA.js";import{d as n}from"./chunk-XBJAP6TJ.js";import{ag as o}from"./chunk-3MFSOWAK.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+" es pas valid\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+" es pas valid\n        ");return i.length===0?null:{validHostsOrHandles:{reason:"invalid",value:i.join(". ")+"."}};},H={VALIDATORS:[n.required,u,a],MESSAGES:{required:"Un domeni es requerit.",validHosts:"Hosts entered are invalid.",unique:"Hosts entered contain duplicates."}},v={VALIDATORS:[n.required,d,a],MESSAGES:{required:"Un domeni es requerit.",validHostsOrHandles:"Hosts or handles are invalid.",unique:"Hosts or handles contain duplicates."}};export{t as a,H as b,v as c};/**i18n:a80de7963c3a1ee38e5afb7317b8dafa5dd6a0c8b3d465be96b90b317d6167e1*///# sourceMappingURL=chunk-YQDFC6CY.js.map