import{d as e}from"./chunk-4CAF5TCV.js";var n="[a-z0-9][a-z0-9._]",l={VALIDATORS:[e.required,e.minLength(1),e.maxLength(50),e.pattern(new RegExp(`^${n}*$`))],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."}},i={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."}},c={VALIDATORS:[e.required,e.email],MESSAGES:{required:"Email is required.",email:"Email must be valid."}},s={VALIDATORS:[e.required,e.pattern(/@.+/)],MESSAGES:{required:"Handle is required.",pattern:"Handle must be valid (eg. chocobozzz@example.com)."}},A={VALIDATORS:[e.required],MESSAGES:{required:"Password is required."}},S={VALIDATORS:[e.required],MESSAGES:{required:"OTP token is required."}},m={VALIDATORS:[e.required,e.minLength(6),e.maxLength(255)],MESSAGES:{required:"Password is required.",minlength:"Password must be at least 6 characters long.",maxlength:"Password cannot be more than 255 characters long."}},E={VALIDATORS:[e.minLength(6),e.maxLength(255)],MESSAGES:{minlength:"Password must be at least 6 characters long.",maxlength:"Password cannot be more than 255 characters long."}},d={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."}},R={VALIDATORS:[e.required,e.min(-1)],MESSAGES:{required:"Daily upload limit is required.",min:"Daily upload limit must be greater than -1."}},u={VALIDATORS:[e.required],MESSAGES:{required:"User role is required."}},L=t(!0),D={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."}},O={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 t(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{n as a,l as b,i as c,c as d,s as e,A as f,S as g,m as h,E as i,d as j,h as k,R as l,u as m,L as n,D as o,O as p};/**i18n:b046b42d3b2db5c4a6153f28081b96130c38e9218feb7118271ff63b274934c4*///# sourceMappingURL=chunk-DZM5WE6O.js.map