import{ln as KAe}from"./chunk-b0nJCs5_.js";import{F as ye}from"./chunk-Cmet2Nw-.js";import{t as H$1}from"./chunk-DzDmtByK2.js";function n(i){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(i)}function s(i){return i?i.includes(`@`):!1}var d=i=>{if(!i.value)return null;let a=[],r=KAe(i.value);for(let o of r)n(o)===!1&&a.push(`${o} baliogabea da\n        `);return a.length===0?null:{validHosts:{reason:`invalid`,value:a.join(`. `)+`.`}}};var u=i=>{if(!i.value)return null;let a=[],r=KAe(i.value);for(let o of r)n(o)===!1&&s(o)===!1&&a.push(`${o} baliogabea da\n        `);return a.length===0?null:{validHostsOrHandles:{reason:`invalid`,value:a.join(`. `)+`.`}}};var z={VALIDATORS:[ye.required,d,H$1],MESSAGES:{required:"Domeinua beharrezkoa da.",validHosts:"Domains entered are invalid.",unique:"Domains entered contain duplicates."}};var H={VALIDATORS:[ye.required,u,H$1],MESSAGES:{required:"Domeinua beharrezkoa da.",validHostsOrHandles:"Domains or handles are invalid.",unique:"Domains or handles contain duplicates."}};export{n,z as r,H as t};
//# debugId=3ca68677-81ac-5e74-8916-45c1314805af
//# sourceMappingURL=chunk-Bka8Q1oK2.js.map