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:"请输入用户名。",minlength:"用户名应至少 1 个字符。",maxlength:"用户名不能超过 50 个字符。",pattern:"用户名只能使用小写字母、数字、句点和下划线。"}};var A={VALIDATORS:[ye.required,ye.minLength(1),ye.maxLength(50),ye.pattern(/^[a-z0-9][a-z0-9._]*$/)],MESSAGES:{required:"请输入频道名称。",minlength:"频道名称应至少 1 个字符长。",maxlength:"频道名称不能超过 50 字符长。",pattern:"频道名称应为小写，并且只能包含字母数字字符、半角句点和下划线。"}};var S={VALIDATORS:[ye.required,ye.pattern(/@.+/)],MESSAGES:{required:"需要用户名/频道名。",pattern:"用户名格式必须正确 （示例 chocobozzz@example.com）。"}};var m={VALIDATORS:[ye.required],MESSAGES:{required:"请输入密码。"}};var u={VALIDATORS:[ye.required],MESSAGES:{required:"需要 OTP 令牌。"}};function E(r,a){let o=l(r,a);return{VALIDATORS:[ye.required,...o.VALIDATORS],MESSAGES:w({required:"请输入密码。"},o.MESSAGES)}}function l(r,a){return{VALIDATORS:[ye.minLength(r),ye.maxLength(a)],MESSAGES:{minlength:`密码长度必须至少为 ${r} 个字符。`,maxlength:`密码长度不能超过 ${a} 个字符。`}}}var h={VALIDATORS:[],MESSAGES:{matchPassword:"两次密码输入不一致。"}};var R={VALIDATORS:[ye.required,ye.min(-1)],MESSAGES:{required:"请选择视频存储空间大小。",min:"视频存储空间大小的值必须大于 -1。"}};var V={VALIDATORS:[ye.required,ye.min(-1)],MESSAGES:{required:"请选择单日上传限额。",min:"单日上传限额的值必须大于 -1。"}};var D={VALIDATORS:[ye.required],MESSAGES:{required:"请指定用户角色。"}};var L=i(!0);var O={VALIDATORS:[ye.minLength(3),ye.maxLength(1e3)],MESSAGES:{minlength:"说明应至少 3 个字符。",maxlength:"说明不能超过 1000 个字符。"}};var g={VALIDATORS:[ye.minLength(3),ye.maxLength(250)],MESSAGES:{minlength:"封禁理由应至少 3 个字符。",maxlength:"封禁理由不能超过 250 个字符。"}};function i(r){let a={VALIDATORS:[ye.minLength(1),ye.maxLength(120)],MESSAGES:{required:"请输入显示名称。",minlength:"显示名称应至少 1 个字符。",maxlength:"显示名称不能超过 50 个字符。"}};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=d59cb574-4a6f-51ac-8a0c-7ca76d20cf34
//# sourceMappingURL=chunk-BeduZISV2.js.map