import{s as w}from"./chunk-C6uGsfWa.js";import{F as ye}from"./chunk-BPHMC4rz.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=1f6a79de-2228-5c28-bb10-3da803469845
//# sourceMappingURL=chunk-Ly3dbMT12.js.map