1import{d as e}from"./chunk-EBOVR5NW.js";import{a as t}from"./chunk-KJ7W2O2B.js";var l="[a-z0-9][a-z0-9._]",d={VALIDATORS:[e.required,e.minLength(1),e.maxLength(50),e.pattern(new RegExp(`^${l}*$`))],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."}},m={VALIDATORS:[e.required,e.pattern(/@.+/)],MESSAGES:{required:"Handle is required.",pattern:"Handle must be valid (eg. [email protected])."}},u={VALIDATORS:[e.required],MESSAGES:{required:"Password is required."}},E={VALIDATORS:[e.required],MESSAGES:{required:"OTP token is required."}};function R(r,a){let o=i(r,a);return{VALIDATORS:[e.required,...o.VALIDATORS],MESSAGES:t({required:"Password is required."},o.MESSAGES)};}function i(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 h={VALIDATORS:[],MESSAGES:{matchPassword:"The new password and the confirmed password do not correspond."}},V={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=n(!0),p={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."}},I={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 n(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{l as a,d as b,A as c,S as d,m as e,u as f,E as g,R as h,i,h as j,V as k,D as l,L as m,O as n,p as o,I as p};/**i18n:347eeb695970c32bc275618edc2e751c67145d9fc3012e70543c114a99b9e016*/
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.