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);
};
import { Router } from 'aurelia-router';
import { autoinject, bindable, customElement } from 'aurelia-framework';
import { CustomLogger } from '../../../modules/custom-logger';
import { I18N } from 'aurelia-i18n';
export var ImportStep5 = (function () {
    function ImportStep5(router, logger, i18n) {
        this.router = router;
        this.logger = logger;
        this.i18n = i18n;
    }
    ImportStep5.prototype.openExcelResultFile = function () {
        if (this.importResults.resultFileUri == null) {
            this.logger.LogError(this.i18n.tr('importdata.errorWhenGenerateResultFile'), null, null, true);
        }
        else {
            window.open("https://view.officeapps.live.com/op/view.aspx?src=" + this.importResults.resultFileUri, "_blank");
        }
    };
    __decorate([
        bindable,
        __metadata("design:type", Object)
    ], ImportStep5.prototype, "importResults", void 0);
    __decorate([
        bindable,
        __metadata("design:type", Object)
    ], ImportStep5.prototype, "lastStepFooterView", void 0);
    __decorate([
        bindable,
        __metadata("design:type", Number)
    ], ImportStep5.prototype, "customParameters", void 0);
    __decorate([
        bindable,
        __metadata("design:type", Object)
    ], ImportStep5.prototype, "newStep", void 0);
    ImportStep5 = __decorate([
        autoinject,
        customElement("import-step-5"),
        __metadata("design:paramtypes", [Router, CustomLogger, I18N])
    ], ImportStep5);
    return ImportStep5;
}());

//# sourceMappingURL=import-step-5.js.map
