import{d as e}from"./chunk-NQFIF6FB.js";import{a as t}from"./chunk-PTJGHD3V.js";var o="[a-z0-9][a-z0-9._]",c={VALIDATORS:[e.required,e.minLength(1),e.maxLength(50),e.pattern(new RegExp(`^${o}*$`))],MESSAGES:{required:"Korisni\u010Dko ime se mora navesti.",minlength:"Korisni\u010Dko ime mora sadr\u017Eati barem jedan znak.",maxlength:"Korisni\u010Dko ime ne smije sadr\u017Eati vi\u0161e od 50 znakova.",pattern:"Korisni\u010Dko ime mora sadr\u017Eati mala slova i brojeve; dopu\u0161tene su to\u010Dke i podvlake."}},A={VALIDATORS:[e.required,e.minLength(1),e.maxLength(50),e.pattern(/^[a-z0-9][a-z0-9._]*$/)],MESSAGES:{required:"Ime kanala se mora navesti.",minlength:"Ime kanala mora sadr\u017Eati barem jedan znak.",maxlength:"Ime kanala ne smije sadr\u017Eati vi\u0161e od 50 znakova.",pattern:"Ime kanala mora sadr\u017Eati samo mala slova i brojeve, to\u010Dke i podvlake."}},S={VALIDATORS:[e.required,e.email],MESSAGES:{required:"E-mail adresa se mora navesti.",email:"E-mail adresa mora biti valjana."}},E={VALIDATORS:[e.required,e.pattern(/@.+/)],MESSAGES:{required:"Identifikator se mora navesti.",pattern:"Identifikator mora biti ispravan (npr. chocobozzz@example.com)."}},d={VALIDATORS:[e.required],MESSAGES:{required:"Lozinka se mora navesti."}},m={VALIDATORS:[e.required],MESSAGES:{required:"OTP token se mora navesti."}};function u(r,a){let n=l(r,a);return{VALIDATORS:[e.required,...n.VALIDATORS],MESSAGES:t({required:"Lozinka se mora navesti."},n.MESSAGES)};}function l(r,a){return{VALIDATORS:[e.minLength(r),e.maxLength(a)],MESSAGES:{minlength:"Password must be at least "+r+" characters long.",maxlength:"Password cannot be more than "+a+" characters long."}};}var R={VALIDATORS:[],MESSAGES:{matchPassword:"Nova lozinka i potvr\u0111ena lozinka ne se poklapaju."}},h={VALIDATORS:[e.required,e.min(-1)],MESSAGES:{required:"Kvota za videa se mora navesti.",min:"Kvota mora biti ve\u0107a od -1."}},D={VALIDATORS:[e.required,e.min(-1)],MESSAGES:{required:"Granica za dnevni prijenos se mora navesti.",min:"Granica za dnevni prijenos mora biti ve\u0107a od -1."}},L={VALIDATORS:[e.required],MESSAGES:{required:"Uloga korisnika se mora navesti."}},O=i(!0),I={VALIDATORS:[e.minLength(3),e.maxLength(1e3)],MESSAGES:{minlength:"Opis mora sadr\u017Eati barem 3 znaka.",maxlength:"Opis ne smije sadr\u017Eati vi\u0161e od 1000 znakova."}},_={VALIDATORS:[e.minLength(3),e.maxLength(250)],MESSAGES:{minlength:"Razlog isklju\u010Divanja mora sadr\u017Eati barem 3 znaka.",maxlength:"Razlog isklju\u010Divanja ne smije sadr\u017Eati vi\u0161e od 250 znakova."}};function i(r){let a={VALIDATORS:[e.minLength(1),e.maxLength(120)],MESSAGES:{required:"Prikazno ime se mora navesti.",minlength:"Prikazno ime mora sadr\u017Eati barem jedan znak.",maxlength:"Prikazno ime ne smije sadr\u017Eati vi\u0161e od 50 znakova."}};return r&&a.VALIDATORS.push(e.required),a;}export{o as a,c as b,A as c,S as d,E as e,d as f,m as g,u as h,l as i,R as j,h as k,D as l,L as m,O as n,I as o,_ as p};/**i18n:90f1dd82a779b57eddc91ef20913c88eecaa9632bba8ac04ad50f47ae2b82df7*///# sourceMappingURL=chunk-L6FCA65R.js.map