/**
 * @fileoverview added by tsickle
 * @suppress {checkTypes} checked by tsc
 */
import { Component, EventEmitter, Input, Output } from '@angular/core';
var DialogBaseComponent = /** @class */ (function () {
    function DialogBaseComponent() {
        this.hide = 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.hide.emit();
        this.display = false;
    };
    /**
     * @return {?}
     */
    DialogBaseComponent.prototype.h = /**
     * @return {?}
     */
    function () {
        if (!this.show) {
            this.display = false;
        }
    };
    DialogBaseComponent.decorators = [
        { type: Component, args: [{
                    selector: 'ui-dialog-base',
                    template: "<ui-mask [show]=\"show\" (hide)=\"animationEnd()\">\n  <div class=\"ui-dialog-base\" *ngIf=\"display\" (animationend)=\"h()\" [ngClass]=\"show ? 'ui-in' : 'ui-out'\">\n    <ng-content></ng-content>\n  </div>\n</ui-mask>"
                },] },
    ];
    /** @nocollapse */
    DialogBaseComponent.propDecorators = {
        "show": [{ type: Input },],
        "hide": [{ type: Output },],
    };
    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.hide;
    /** @type {?} */
    DialogBaseComponent.prototype.display;
    /** @type {?} */
    DialogBase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