import { username } from '../../fields/validations.js';
export const usernameField = {
    name: 'username',
    type: 'text',
    admin: {
        components: {
            Field: ()=>null
        }
    },
    hooks: {
        beforeChange: [
            ({ value })=>{
                if (value) {
                    return value.toLowerCase().trim();
                }
            }
        ]
    },
    label: ({ t })=>t('authentication:username'),
    required: true,
    unique: true,
    validate: username
};

//# sourceMappingURL=username.js.map