import{d as e}from"./chunk-KXBVYXHU.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:"Username is required.",minlength:"Username must be at least 1 character long.",maxlength:"Username cannot be more than 50 characters long.",pattern:"Username should be lowercase alphanumeric; dots and underscores are allowed."}},A={VALIDATORS:[e.required,e.minLength(1),e.maxLength(50),e.pattern(/^[a-z0-9][a-z0-9._]*$/)],MESSAGES:{required:"Channel name is required.",minlength:"Channel name must be at least 1 character long.",maxlength:"Channel name cannot be more than 50 characters long.",pattern:"Channel name should be lowercase, and can contain only alphanumeric characters, dots and underscores."}},S={VALIDATORS:[e.required,e.email],MESSAGES:{required:"Email is required.",email:"Email must be valid."}},E={VALIDATORS:[e.required,e.pattern(/@.+/)],MESSAGES:{required:"Handle is required.",pattern:"Handle must be valid (eg. chocobozzz@example.com)."}},d={VALIDATORS:[e.required],MESSAGES:{required:"Password is required."}},m={VALIDATORS:[e.required],MESSAGES:{required:"OTP token is required."}};function u(r,a){let n=l(r,a);return{VALIDATORS:[e.required,...n.VALIDATORS],MESSAGES:t({required:"Password is required."},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:"The new password and the confirmed password do not correspond."}},h={VALIDATORS:[e.required,e.min(-1)],MESSAGES:{required:"Video quota is required.",min:"Quota must be greater than -1."}},D={VALIDATORS:[e.required,e.min(-1)],MESSAGES:{required:"Daily upload limit is required.",min:"Daily upload limit must be greater than -1."}},L={VALIDATORS:[e.required],MESSAGES:{required:"User role is required."}},O=i(!0),I={VALIDATORS:[e.minLength(3),e.maxLength(1e3)],MESSAGES:{minlength:"Description must be at least 3 characters long.",maxlength:"Description cannot be more than 1000 characters long."}},_={VALIDATORS:[e.minLength(3),e.maxLength(250)],MESSAGES:{minlength:"Ban reason must be at least 3 characters long.",maxlength:"Ban reason cannot be more than 250 characters long."}};function i(r){let a={VALIDATORS:[e.minLength(1),e.maxLength(120)],MESSAGES:{required:"Display name is required.",minlength:"Display name must be at least 1 character long.",maxlength:"Display name cannot be more than 50 characters long."}};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-7NIL4NVI.js.map