import{j}from'./chunk-DgsNRGqZ.js';import{bR as ye,bT as _xe}from'./main-BiUBeaMj.js';function s(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 t(e){return e?e.includes("@"):false;}var u=e=>{if(!e.value)return null;let i=[],a=_xe(e.value);for(let n of a)s(n)===false&&i.push(""+n+" nie jest prawidowy\n        ");return i.length===0?null:{validHosts:{reason:"invalid",value:i.join(". ")+"."}};},d=e=>{if(!e.value)return null;let i=[],a=_xe(e.value);for(let n of a)s(n)===false&&t(n)===false&&i.push(""+n+" nie jest prawidowy\n        ");return i.length===0?null:{validHostsOrHandles:{reason:"invalid",value:i.join(". ")+"."}};},v={VALIDATORS:[ye.required,u,j],MESSAGES:{required:"Domena jest wymagana.",validHosts:"Domains entered are invalid.",unique:"Domains entered contain duplicates."}},z={VALIDATORS:[ye.required,d,j],MESSAGES:{required:"Domena jest wymagana.",validHostsOrHandles:"Domains or handles are invalid.",unique:"Domains or handles contain duplicates."}};/**i18n:fad79908930cbb4c308e7550a5fe49bb3841dbb330066a6429aebaa006173605*/export{s,v,z};//# sourceMappingURL=chunk-CS1Y69iq.js.map