import{a}from"./chunk-DORYFNJO.js";import{d as n}from"./chunk-HYHNBP3O.js";import{bg as o}from"./chunk-7W5IJG57.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("Chan eil "+s+" dligheach ");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("Chan eil "+s+" dligheach ");return i.length===0?null:{validHostsOrHandles:{reason:"invalid",value:i.join(". ")+"."}};},H={VALIDATORS:[n.required,u,a],MESSAGES:{required:"Tha \xE0rainn-l\xECn riatanach.",validHosts:"Chaidh \xF2stairean m\xEC-dhligheach a chur a-steach.",unique:"Tha d\xF9blachadh am measg nan \xF2stairean a chaidh a chur a-steach."}},v={VALIDATORS:[n.required,d,a],MESSAGES:{required:"Tha \xE0rainn-l\xECn riatanach.",validHostsOrHandles:"Tha \xF2stairean no l\xE0imhsichear m\xEC-dhligheach.",unique:"Tha d\xF9blachadh am measg nan \xF2stairean no l\xE0imhsichear."}};export{t as a,H as b,v as c};/**i18n:3558f4fa3a6acf6a8a484a0589828971efacd00f9f89386e64ec00a5fc269cc5*///# sourceMappingURL=chunk-QYINQX3P.js.map