import{a}from"./chunk-UWRPCI35.js";import{d as n}from"./chunk-3V3ZIFZ3.js";import{xh as o}from"./chunk-AVPM423Z.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+" nije ispravan");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+" nije ispravan");return i.length===0?null:{validHostsOrHandles:{reason:"invalid",value:i.join(". ")+"."}};},H={VALIDATORS:[n.required,u,a],MESSAGES:{required:"Domena se mora navesti.",validHosts:"Upisana host ra\u010Dunala su neispravna.",unique:"Upisana host ra\u010Dunala sard\u017Ee duplikate."}},v={VALIDATORS:[n.required,d,a],MESSAGES:{required:"Domena se mora navesti.",validHostsOrHandles:"Host ra\u010Dunala ili identifikatori su neispravni.",unique:"Host ra\u010Dunala ili identifikatori sadr\u017Ee duplikate."}};export{t as a,H as b,v as c};/**i18n:ceac57349051bcddcb40dd2878e0abcb86556d5ceb9d6109d22ac3f1ae3cc7b1*///# sourceMappingURL=chunk-C3TDBZ7L.js.map