import{e6 as r,es as s,e7 as n}from"./strapi-ye6TfKul.js";const i={firstname:r().trim().required({id:s.required.id,defaultMessage:"This field is required"}),lastname:r().nullable(),email:r().email(s.email).lowercase().required({id:s.required.id,defaultMessage:"This field is required"}),username:r().transform(e=>e===""?void 0:e).nullable(),password:r().transform(e=>e===""||e===null?void 0:e).nullable().min(8,{...s.minLength,values:{min:8}}).test("max-bytes",{id:"components.Input.error.contain.maxBytes",defaultMessage:"Password must be less than 73 bytes"},function(e){return e?new TextEncoder().encode(e).length<=72:!0}).test("lowercase",{id:"components.Input.error.contain.lowercase",defaultMessage:"Password must contain at least one lowercase character"},e=>e?/[a-z]/.test(e):!0).test("uppercase",{id:"components.Input.error.contain.uppercase",defaultMessage:"Password must contain at least one uppercase character"},e=>e?/[A-Z]/.test(e):!0).test("number",{id:"components.Input.error.contain.number",defaultMessage:"Password must contain at least one number"},e=>e?/\d/.test(e):!0),confirmPassword:r().transform(e=>e===""?null:e).nullable().min(8,{...s.minLength,values:{min:8}}).oneOf([n("password"),null],{id:"components.Input.error.password.noMatch",defaultMessage:"Passwords must match"}).when("password",(e,t)=>e?t.required({id:s.required.id,defaultMessage:"This field is required"}).nullable():t)};export{i as C};
