import{a}from"./chunk-HVWCIIYM.js";import{d as n}from"./chunk-K34LZIA3.js";import{Qf as o}from"./chunk-X3RCWQ3R.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+" is not valid");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+" is not valid");return i.length===0?null:{validHostsOrHandles:{reason:"invalid",value:i.join(". ")+"."}};},H={VALIDATORS:[n.required,u,a],MESSAGES:{required:"Domain is required.",validHosts:"Hosts entered are invalid.",unique:"Hosts entered contain duplicates."}},v={VALIDATORS:[n.required,d,a],MESSAGES:{required:"Domain is required.",validHostsOrHandles:"Hosts or handles are invalid.",unique:"Hosts or handles contain duplicates."}};export{t as a,H as b,v as c};/**i18n:3d16453f213eb5db982e7e7dd90631843ac5d3f860726a614777c3e9e3f9b57e*///# sourceMappingURL=chunk-IZR7DIU7.js.map