/**
 * @fileoverview added by tsickle
 * @suppress {checkTypes} checked by tsc
 */
import { Component, EventEmitter, Input, Output } from '@angular/core';
var DialogBaseComponent = /** @class */ (function () {
    function DialogBaseComponent() {
        this.uiHide = new EventEmitter();
        this.display = false;
        this._show = false;
    }
    Object.defineProperty(DialogBaseComponent.prototype, "show", {
        get: /**
         * @return {?}
         */
        function () {
            return this._show;
        },
        set: /**
         * @param {?} value
         * @return {?}
         */
        function (value) {
            this._show = value;
            if (value) {
                this.display = true;
            }
        },
        enumerable: true,
        configurable: true
    });
    /**
     * @return {?}
     */
    DialogBaseComponent.prototype.animationEnd = /**
     * @return {?}
     */
    function () {
        this.uiHide.emit();
        this.display = false;
    };
    /**
     * @return {?}
     */
    DialogBaseComponent.prototype.hide = /**
     * @return {?}
     */
    function () {
        if (!this.show) {
            this.display = false;
        }
    };
    DialogBaseComponent.decorators = [
        { type: Component, args: [{
                    selector: 'ui-dialog-base',
                    template: "<ui-mask [show]=\"show\" (uiHide)=\"animationEnd()\">\n  <div class=\"ui-dialog-base\" *ngIf=\"display\" (animationend)=\"hide()\" [ngClass]=\"show ? 'ui-in' : 'ui-out'\">\n    <ng-content></ng-content>\n  </div>\n</ui-mask>"
                },] },
    ];
    /** @nocollapse */
    DialogBaseComponent.propDecorators = {
        "uiHide": [{ type: Output },],
        "show": [{ type: Input },],
    };
    return DialogBaseComponent;
}());
export { DialogBaseComponent };
function DialogBaseComponent_tsickle_Closure_declarations() {
    /** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
    DialogBaseComponent.decorators;
    /**
     * @nocollapse
     * @type {function(): !Array<(null|{type: ?, decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>)})>}
     */
    DialogBaseComponent.ctorParameters;
    /** @type {!Object<string,!Array<{type: !Function, args: (undefined|!Array<?>)}>>} */
    DialogBaseComponent.propDecorators;
    /** @type {?} */
    DialogBaseComponent.prototype.uiHide;
    /** @type {?} */
    DialogBaseComponent.prototype.display;
    /** @type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