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:"Anv\xE4ndarnamn m\xE5ste fyllas i.",minlength:"Anv\xE4ndarnamnet m\xE5ste inneh\xE5lla minst ett tecken.",maxlength:"Anv\xE4ndarnamnet f\xE5r inte vara mer \xE4n 50 tecken l\xE5ngt.",pattern:"Anv\xE4ndarnamnet f\xE5r inneh\xE5lla gemener, siffror, punkter samt understreck."}},A={VALIDATORS:[e.required,e.minLength(1),e.maxLength(50),e.pattern(/^[a-z0-9][a-z0-9._]*$/)],MESSAGES:{required:"Kanalens namn m\xE5ste anges.",minlength:"Kanalens namn m\xE5ste inneh\xE5lla minste ett tecken.",maxlength:"Kanalens namn f\xE5r inte vara mer \xE4n 50 tecken l\xE5ngt.",pattern:"Kanalnamnet f\xE5r inneh\xE5lla gemener, siffror, punkter och understreck."}},S={VALIDATORS:[e.required,e.email],MESSAGES:{required:"E-postadress m\xE5ste uppges.",email:"E-postadressen m\xE5ste vara giltig."}},E={VALIDATORS:[e.required,e.pattern(/@.+/)],MESSAGES:{required:"S\xF6knamn m\xE5ste uppges.",pattern:"Anv\xE4ndarnamnet m\xE5ste vara giltigt (t.ex. chocobozzz@example.com)."}},d={VALIDATORS:[e.required],MESSAGES:{required:"L\xF6senord m\xE5ste fyllas i."}},m={VALIDATORS:[e.required],MESSAGES:{required:"OTP-token kr\xE4vs."}};function u(r,a){let n=l(r,a);return{VALIDATORS:[e.required,...n.VALIDATORS],MESSAGES:t({required:"L\xF6senord m\xE5ste fyllas i."},n.MESSAGES)};}function l(r,a){return{VALIDATORS:[e.minLength(r),e.maxLength(a)],MESSAGES:{minlength:"L\xF6senordet m\xE5ste vara minst "+r+" tecken l\xE5ngt.",maxlength:"L\xF6senordet f\xE5r inte vara l\xE4ngre \xE4n "+a+" tecken."}};}var R={VALIDATORS:[],MESSAGES:{matchPassword:"Det nya l\xF6senordet och det bekr\xE4ftade l\xF6senordet st\xE4mmer inte \xF6verens."}},h={VALIDATORS:[e.required,e.min(-1)],MESSAGES:{required:"Videokvot m\xE5ste anges.",min:"Kvot m\xE5ste vara st\xF6rre \xE4n \u22121."}},D={VALIDATORS:[e.required,e.min(-1)],MESSAGES:{required:"Daglig uppladdningsgr\xE4ns m\xE5ste anges.",min:"Daglig uppladdningsgr\xE4ns m\xE5ste vara h\xF6gre \xE4n \u22121."}},L={VALIDATORS:[e.required],MESSAGES:{required:"Anv\xE4ndarroll kr\xE4vs."}},O=i(!0),I={VALIDATORS:[e.minLength(3),e.maxLength(1e3)],MESSAGES:{minlength:"Beskrivningen m\xE5ste inneh\xE5lla minst tre tecken.",maxlength:"Beskrivningen f\xE5r inte vara mer \xE4n 1000 tecken l\xE5ng."}},_={VALIDATORS:[e.minLength(3),e.maxLength(250)],MESSAGES:{minlength:"Blockeringsanledningen m\xE5ste inneh\xE5lla minst tre tecken.",maxlength:"Blockeringsanledningen f\xE5r inte vara mer \xE4n 250 tecken l\xE5ng."}};function i(r){let a={VALIDATORS:[e.minLength(1),e.maxLength(120)],MESSAGES:{required:"Visningsnamn kr\xE4vs.",minlength:"Visningsnamnet m\xE5ste inneh\xE5lla minst ett tecken.",maxlength:"Visningsnamnet f\xE5r inte vara mer \xE4n 50 tecken l\xE5ngt."}};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