import{a}from"./chunk-HJNF7F2N.js";import{d as n}from"./chunk-Y4WF5HJS.js";import{xh as o}from"./chunk-R4Z6ZI3L.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(""+s+" non \xE8 valida\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(""+s+" non \xE8 valida\n        ");return i.length===0?null:{validHostsOrHandles:{reason:"invalid",value:i.join(". ")+"."}};},H={VALIDATORS:[n.required,u,a],MESSAGES:{required:"Il Dominio \xE8 richiesto.",validHosts:"Gli host inseriti non sono validi.",unique:"Gli host inseriti contengono duplicati."}},v={VALIDATORS:[n.required,d,a],MESSAGES:{required:"Il Dominio \xE8 richiesto.",validHostsOrHandles:"Gli host o gli handle non sono validi.",unique:"Gli host o gli handle contengono duplicati."}};export{t as a,H as b,v as c};/**i18n:138e9aba5923606215625ab5641fbdc103d8a34cfe13ae910386f40f27aea675*///# sourceMappingURL=chunk-O6ZMA4Q7.js.map