// #region Imports
// #endregion
const BLANK_REGEX = '\\s';
/**
 * Validator that requires the control have a non-empty value.
 *
 * State:
 * * badInput
 *
 * @public
 * @param control
 * @returns null if the validation check passes, otherwise an object containing information.
 */
export function blankValidator(control) {
    return isBlankValue(control.value)
        ? null
        : {
            badInput: [
                true, { actualValue: control.value }
            ]
        };
}
/**
 * Checks if the value is blank.
 *
 * @param value - The value to check.
 * @returns True if the value is blank, false otherwise.
 */
export function isBlankValue(value) {
    return typeof value === 'string' && new RegExp(BLANK_REGEX).test(value);
}
//# sourceMappingURL=BlankElementValidatorFn.js.map