import{d as e}from"./chunk-5ZTU7T2J.js";import{a as t}from"./chunk-XYZYVFXE.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:"El nom del compte \xE9s obligatori.",minlength:"El nom del compte ha de tindre com a m\xEDnim 1 car\xE0cter.",maxlength:"El nom del compte no pot tindre m\xE9s de 50 car\xE0cters.",pattern:"El nom del compte ha de ser alfanum\xE8ric en min\xFAscules; es permeten els punts i els guions baixos."}},A={VALIDATORS:[e.required,e.minLength(1),e.maxLength(50),e.pattern(/^[a-z0-9][a-z0-9._]*$/)],MESSAGES:{required:"El nom del canal \xE9s obligatori.",minlength:"El nom del canal ha de tindre com a m\xEDnim 1 car\xE0cter.",maxlength:"El nom del canal no pot tindre m\xE9s de 50 car\xE0cters.",pattern:"El nom del canal ha d'estar en min\xFAscules i nom\xE9s pot contindre car\xE0cters alfanum\xE8rics, punts i guions baixos."}},S={VALIDATORS:[e.required,e.email],MESSAGES:{required:"L'adre\xE7a electr\xF2nica \xE9s obligat\xF2ria.",email:"L'adre\xE7a electr\xF2nica ha d'\xE9sser v\xE0lida."}},E={VALIDATORS:[e.required,e.pattern(/@.+/)],MESSAGES:{required:"L'identificador \xE9s obligatori.",pattern:"L'identificador ha d'\xE9sser v\xE0lid (per exemple joan@exemple.cat)."}},d={VALIDATORS:[e.required],MESSAGES:{required:"La contrasenya \xE9s obligat\xF2ria."}},m={VALIDATORS:[e.required],MESSAGES:{required:"El token OTP \xE9s obligatori."}};function u(r,a){let n=l(r,a);return{VALIDATORS:[e.required,...n.VALIDATORS],MESSAGES:t({required:"La contrasenya \xE9s obligat\xF2ria."},n.MESSAGES)};}function l(r,a){return{VALIDATORS:[e.minLength(r),e.maxLength(a)],MESSAGES:{minlength:"La contrasenya ha de tenir com a m\xEDnim "+r+" car\xE0cters.",maxlength:"La contrasenya no pot tenir m\xE9s de "+a+" car\xE0cters."}};}var R={VALIDATORS:[],MESSAGES:{matchPassword:"La nova contrasenya i la contrasenya confirmada no es corresponen."}},h={VALIDATORS:[e.required,e.min(-1)],MESSAGES:{required:"La quota de v\xEDdeo \xE9s obligat\xF2ria.",min:"La quota ha d'\xE9sser superior a -1."}},D={VALIDATORS:[e.required,e.min(-1)],MESSAGES:{required:"El l\xEDmit diari de pujada \xE9s obligatori.",min:"El l\xEDmit diari de pujada ha d'\xE9sser major que -1."}},L={VALIDATORS:[e.required],MESSAGES:{required:"El rol del compte \xE9s obligatori."}},O=i(!0),I={VALIDATORS:[e.minLength(3),e.maxLength(1e3)],MESSAGES:{minlength:"La descripci\xF3 ha de tindre almenys 3 car\xE0cters.",maxlength:"La descripci\xF3 no pot tindre m\xE9s de 1000 car\xE0cters."}},_={VALIDATORS:[e.minLength(3),e.maxLength(250)],MESSAGES:{minlength:"El motiu del bandeig ha de tindre almenys 3 car\xE0cters.",maxlength:"El motiu del bandeig no pot tindre m\xE9s de 250 car\xE0cters."}};function i(r){let a={VALIDATORS:[e.minLength(1),e.maxLength(120)],MESSAGES:{required:"El nom mostrat \xE9s obligatori.",minlength:"El nom mostrat ha de tindre almenys 1 car\xE0cter.",maxlength:"El nom mostrat no pot tindre m\xE9s de 50 car\xE0cters."}};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:4caeb8e7a09648a9cf35d6229af8a685b503a6e2123779e5b0c4fb7602981338*///# sourceMappingURL=chunk-NVJNOFPT.js.map