"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var core_1 = require("@angular/core");
var dialog_1 = require("./dialog");
var PromptDialogComponent = (function () {
    function PromptDialogComponent() {
        this.okButton = 'Ok';
        this.cancelButton = 'Cancel';
        this.onAccept = new core_1.EventEmitter();
        this.onCancel = new core_1.EventEmitter();
    }
    PromptDialogComponent.prototype.open = function () {
        this.dialog.open();
    };
    PromptDialogComponent.prototype.accept = function () {
        this.onAccept.emit(null);
        this.dialog.close();
    };
    PromptDialogComponent.prototype.cancel = function () {
        this.onCancel.emit(null);
        this.dialog.close();
    };
    PromptDialogComponent.prototype.dismiss = function () {
        this.dialog.dismiss();
    };
    return PromptDialogComponent;
}());
__decorate([
    core_1.Input(),
    __metadata("design:type", String)
], PromptDialogComponent.prototype, "message", void 0);
__decorate([
    core_1.Input(),
    __metadata("design:type", String)
], PromptDialogComponent.prototype, "okButton", void 0);
__decorate([
    core_1.Input(),
    __metadata("design:type", String)
], PromptDialogComponent.prototype, "cancelButton", void 0);
__decorate([
    core_1.Output(),
    __metadata("design:type", core_1.EventEmitter)
], PromptDialogComponent.prototype, "onAccept", void 0);
__decorate([
    core_1.Output(),
    __metadata("design:type", core_1.EventEmitter)
], PromptDialogComponent.prototype, "onCancel", void 0);
__decorate([
    core_1.ViewChild(dialog_1.DialogComponent),
    __metadata("design:type", dialog_1.DialogComponent)
], PromptDialogComponent.prototype, "dialog", void 0);
PromptDialogComponent = __decorate([
    core_1.Component({
        selector: 'rlPromptDialog',
        template: require('./promptDialog.html'),
    })
], PromptDialogComponent);
exports.PromptDialogComponent = PromptDialogComponent;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvbXB0RGlhbG9nLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsicHJvbXB0RGlhbG9nLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQSxzQ0FBa0Y7QUFFbEYsbUNBQTJDO0FBTTNDLElBQWEscUJBQXFCO0lBSmxDO1FBTVUsYUFBUSxHQUFXLElBQUksQ0FBQztRQUN4QixpQkFBWSxHQUFXLFFBQVEsQ0FBQztRQUMvQixhQUFRLEdBQXVCLElBQUksbUJBQVksRUFBUSxDQUFDO1FBQ3hELGFBQVEsR0FBdUIsSUFBSSxtQkFBWSxFQUFRLENBQUM7SUFxQm5FLENBQUM7SUFqQkEsb0NBQUksR0FBSjtRQUNDLElBQUksQ0FBQyxNQUFNLENBQUMsSUFBSSxFQUFFLENBQUM7SUFDcEIsQ0FBQztJQUVELHNDQUFNLEdBQU47UUFDQyxJQUFJLENBQUMsUUFBUSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQztRQUN6QixJQUFJLENBQUMsTUFBTSxDQUFDLEtBQUssRUFBRSxDQUFDO0lBQ3JCLENBQUM7SUFFRCxzQ0FBTSxHQUFOO1FBQ0MsSUFBSSxDQUFDLFFBQVEsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUM7UUFDekIsSUFBSSxDQUFDLE1BQU0sQ0FBQyxLQUFLLEVBQUUsQ0FBQztJQUNyQixDQUFDO0lBRUQsdUNBQU8sR0FBUDtRQUNDLElBQUksQ0FBQyxNQUFNLENBQUMsT0FBTyxFQUFFLENBQUM7SUFDdkIsQ0FBQztJQUNGLDRCQUFDO0FBQUQsQ0FBQyxBQ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