import { REGEX_ITEM } from '../constants/regex';
var GHDValidationHelper = (function () {
    function GHDValidationHelper() {
    }
    /**
     * Returns true/false if the passed entity is a valid email
     * @param {any} c - entity
     * @return {object} validation result
     */
    GHDValidationHelper.validateEmailFactory = function (c) {
        var regex = REGEX_ITEM.email;
        return regex.test(c.value) ? null : {
            validateEmailFactory: {
                valid: false
            }
        };
    };
    /**
     * Returns true/false if the passed entity is a valid mobile number
     * @param {any} c - entity
     * @return {object} validation result
     */
    GHDValidationHelper.validateMobileFactory = function (c) {
        var regex = REGEX_ITEM.mobile;
        return regex.test(c.value) ? null : {
            validateMobileFactory: {
                valid: false
            }
        };
    };
    return GHDValidationHelper;
}());
export { GHDValidationHelper };
//# sourceMappingURL=validation.helper.js.map