/*!
 * KoliBri - The accessible HTML-Standard
 */
'use strict';

var common = require('./common-DAAt5YQ7.js');

const validateHasCounter = (component, value, options) => {
    common.watchBoolean(component, '_hasCounter', value, options);
};

const validateMaxLength = (component, value, options = {}) => {
    common.watchNumber(component, '_maxLength', value, Object.assign({ min: 0 }, options));
};

const maxLengthBehaviorPropTypeOptions = ['hard', 'soft'];
const validateMaxLengthBehavior = (component, value) => {
    common.watchValidator(component, '_maxLengthBehavior', (value) => typeof value === 'string' && maxLengthBehaviorPropTypeOptions.includes(value), new Set(['String {hard, soft}']), value);
};

exports.validateHasCounter = validateHasCounter;
exports.validateMaxLength = validateMaxLength;
exports.validateMaxLengthBehavior = validateMaxLengthBehavior;
//# sourceMappingURL=max-length-behavior-BjqOHcK6.js.map

//# sourceMappingURL=max-length-behavior-BjqOHcK6.js.map