import{d as e}from"./chunk-JDOQXT4C.js";import{a as t}from"./chunk-YM6OINSR.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:"Kanalnavn er p\xE5krevd.",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:"E-post m\xE5 v\xE6re gyldig."}},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:"Videokvote er p\xE5krevd.",min:"Kvoten m\xE5 v\xE6re st\xF8rre enn -1."}},D={VALIDATORS:[e.required,e.min(-1)],MESSAGES:{required:"Daglig opplastingsgrense er p\xE5krevd.",min:"Daily upload limit must be greater than -1."}},L={VALIDATORS:[e.required],MESSAGES:{required:"Brukerrolle er p\xE5krevd."}},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:"Utestengingsgrunnlaget m\xE5 inneholde minst 3 tegn.",maxlength:"Utestengingsgrunnlaget kan ikke v\xE6re p\xE5 mer en 250 tegn."}};function i(r){let a={VALIDATORS:[e.minLength(1),e.maxLength(120)],MESSAGES:{required:"Visningsnavn er p\xE5krevd.",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:5a85df092a135682c90bae008e37ec28160e04e5f445e29af2927333ba91ffa1*///# sourceMappingURL=chunk-ICTL3K3T.js.map