import{s as w}from"./chunk-C6uGsfWa.js";import{F as ye}from"./chunk-Cmet2Nw-.js";var n=`[a-z0-9][a-z0-9._]`;var d={VALIDATORS:[ye.required,ye.minLength(1),ye.maxLength(50),ye.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."}};var A={VALIDATORS:[ye.required,ye.minLength(1),ye.maxLength(50),ye.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."}};var S={VALIDATORS:[ye.required,ye.pattern(/@.+/)],MESSAGES:{required:"Handle is required.",pattern:"Handle must be valid (eg. chocobozzz@example.com)."}};var m={VALIDATORS:[ye.required],MESSAGES:{required:"Password is required."}};var u={VALIDATORS:[ye.required],MESSAGES:{required:"OTP token is required."}};function E(r,a){let o=l(r,a);return{VALIDATORS:[ye.required,...o.VALIDATORS],MESSAGES:w({required:"Password is required."},o.MESSAGES)}}function l(r,a){return{VALIDATORS:[ye.minLength(r),ye.maxLength(a)],MESSAGES:{minlength:`Password must be at least ${r} characters long.`,maxlength:`Password cannot be more than ${a} characters long.`}}}var h={VALIDATORS:[],MESSAGES:{matchPassword:"The new password and the confirmed password do not correspond."}};var R={VALIDATORS:[ye.required,ye.min(-1)],MESSAGES:{required:"Video quota is required.",min:"Quota must be greater than -1."}};var V={VALIDATORS:[ye.required,ye.min(-1)],MESSAGES:{required:"Daily upload limit is required.",min:"Daily upload limit must be greater than -1."}};var D={VALIDATORS:[ye.required],MESSAGES:{required:"User role is required."}};var L=i(!0);var O={VALIDATORS:[ye.minLength(3),ye.maxLength(1e3)],MESSAGES:{minlength:"Description must be at least 3 characters long.",maxlength:"Description cannot be more than 1000 characters long."}};var g={VALIDATORS:[ye.minLength(3),ye.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:[ye.minLength(1),ye.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(ye.required),a}export{O as a,V as c,h as d,l as f,u as h,L as i,d as l,n as m,D as n,R as o,m as p,E as r,S as s,A as t,g as u};
//# debugId=4d51b144-22db-574b-a75a-a5492d4a7321
//# sourceMappingURL=chunk-BeduZISV2.js.map