/**
 * @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 = {
        "show": [{ type: Input },],
        "uiHide": [{ 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.uiHide;
    /** @type {?} */
    DialogBaseComponent.prototype.display;
    /** @type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