/**
 * @fileoverview added by tsickle
 * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
 */
import { Component, Input, NgModule, HostBinding } from '@angular/core';
import { CommonModule } from '@angular/common';
var HelpTextComponent = /** @class */ (function () {
    function HelpTextComponent() {
        /**
         * The help icon, defaults to false.
         */
        this.helpIcon = false;
        this.hostClasses = true;
    }
    /**
     * Shows or hides the help text by reversing it's current showHide status.
     *
     * \@memberof HelpTextComponent
     * @return {?}
     */
    HelpTextComponent.prototype.toggleHelpText = /**
     * Shows or hides the help text by reversing it's current showHide status.
     *
     * \@memberof HelpTextComponent
     * @return {?}
     */
    function () {
        this.showHide = !this.showHide;
    };
    HelpTextComponent.decorators = [
        { type: Component, args: [{
                    selector: 'es-help-text',
                    template: "<p *ngIf=\"!helpIcon\"><a (click)=\"toggleHelpText()\">\n  <i class=\"icon is-small fas fa-caret-down\" aria-hidden=\"true\" *ngIf=\"!showHide\"></i>\n  <i class=\"icon is-small fas fa-caret-up\" aria-hidden=\"true\" *ngIf=\"showHide\"></i> What does this mean?</a>\n</p>\n\n<article class=\"message is-help\" *ngIf=\"showHide\" [class.help-icon]=\"helpIcon\">\n  <div class=\"message-body\">\n    <ng-content></ng-content>\n  </div>\n</article>\n\n\n"
                }] }
    ];
    HelpTextComponent.propDecorators = {
        helpIcon: [{ type: Input }],
        hostClasses: [{ type: HostBinding, args: ['class.column',] }, { type: HostBinding, args: ['class.is-12',] }]
    };
    return HelpTextComponent;
}());
export { HelpTextComponent };
if (false) {
    /** @type {?} */
    HelpTextComponent.prototype.showHide;
    /**
     * The help icon, defaults to false.
     * @type {?}
     */
    HelpTextComponent.prototype.helpIcon;
    /** @type {?} */
    HelpTextComponent.prototype.hostClasses;
}
/**
 * Help text module providing anything to do with help text.
 *
 * @export
 */
var HelpTextModule = /** @class */ (function () {
    function HelpTextModule() {
    }
    HelpTextModule.decorators = [
        { type: NgModule, args: [{
                    imports: [CommonModule],
                    exports: [HelpTextComponent],
                    declarations: [HelpTextComponent],
                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