const maxLengthBytes = (bytes) => {
    return (control) => {
        const length = new TextEncoder().encode(control.value).length;
        if (length > bytes) {
            return {
                maxLengthBytes: {
                    required: bytes,
                    actual: length,
                },
            };
        }
        return null;
    };
};

/**
 * Generated bundle index. Do not edit.
 */

export { maxLengthBytes };
//# sourceMappingURL=eui-components-validators.mjs.map
