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:"Kanalnavn er påkrevd.",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:"Videokvote er påkrevd.",min:"Kvoten må være større enn -1."}};var V={VALIDATORS:[ye.required,ye.min(-1)],MESSAGES:{required:"Daglig opplastingsgrense er påkrevd.",min:"Daily upload limit must be greater than -1."}};var D={VALIDATORS:[ye.required],MESSAGES:{required:"Brukerrolle er påkrevd."}};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:"Utestengingsgrunnlaget må inneholde minst 3 tegn.",maxlength:"Utestengingsgrunnlaget kan ikke være på mer en 250 tegn."}};function i(r){let a={VALIDATORS:[ye.minLength(1),ye.maxLength(120)],MESSAGES:{required:"Visningsnavn er påkrevd.",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=8fb42a4e-e8dc-5006-8578-5f9160a2be52
//# sourceMappingURL=chunk-BeduZISV2.js.map