import{a}from"./chunk-WWP2TQBT.js";import{d as n}from"./chunk-RB6U2MY6.js";import{_f as o}from"./chunk-ZXQQIUTT.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+" nie jest prawidowy\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+" nie jest prawidowy\n        ");return i.length===0?null:{validHostsOrHandles:{reason:"invalid",value:i.join(". ")+"."}};},H={VALIDATORS:[n.required,u,a],MESSAGES:{required:"Domena jest wymagana.",validHosts:"Wprowadzone hosty s\u0105 nieprawid\u0142owe.",unique:"Wprowadzone hosty zawieraj\u0105 duplikaty."}},v={VALIDATORS:[n.required,d,a],MESSAGES:{required:"Domena jest wymagana.",validHostsOrHandles:"Hosty lub tagi s\u0105 nieprawid\u0142owe.",unique:"Hosty lub tagi zawieraj\u0105 duplikaty."}};export{t as a,H as b,v as c};/**i18n:4ea3d52b0fe89d1d8e6fff59c182aeadbd7786f17ffe9a1efa1c7ed627997eaf*///# sourceMappingURL=chunk-PGDNLBJD.js.map