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+" n'est pas valide\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+" n'est pas valide\n        ");return i.length===0?null:{validHostsOrHandles:{reason:"invalid",value:i.join(". ")+"."}};},H={VALIDATORS:[n.required,u,a],MESSAGES:{required:"Un domaine est requis.",validHosts:"Les h\xF4tes saisis ne sont pas valides.",unique:"Les h\xF4tes saisis contiennent des doublons."}},v={VALIDATORS:[n.required,d,a],MESSAGES:{required:"Un domaine est requis.",validHostsOrHandles:"Les h\xF4tes ou les \xAB handles \xBB ne sont pas valides.",unique:"Les h\xF4tes ou les \xAB handles \xBB contiennent des doublons."}};export{t as a,H as b,v as c};/**i18n:56bde403ffba090cdb11aaac0f86ffb9ae7c2bab95df4b44d5dba510264fcf4f*///# sourceMappingURL=chunk-UNEJOHDN.js.map