"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);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ImportStep5 = void 0;
var aurelia_router_1 = require("aurelia-router");
var aurelia_framework_1 = require("aurelia-framework");
var custom_logger_1 = require("../../../modules/custom-logger");
var aurelia_i18n_1 = require("aurelia-i18n");
var ImportStep5 = exports.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([
        aurelia_framework_1.bindable,
        __metadata("design:type", Object)
    ], ImportStep5.prototype, "importResults", void 0);
    __decorate([
        aurelia_framework_1.bindable,
        __metadata("design:type", Object)
    ], ImportStep5.prototype, "lastStepFooterView", void 0);
    __decorate([
        aurelia_framework_1.bindable,
        __metadata("design:type", Number)
    ], ImportStep5.prototype, "customParameters", void 0);
    __decorate([
        aurelia_framework_1.bindable,
        __metadata("design:type", Object)
    ], ImportStep5.prototype, "newStep", void 0);
    ImportStep5 = __decorate([
        aurelia_framework_1.autoinject,
        (0, aurelia_framework_1.customElement)("import-step-5"),
        __metadata("design:paramtypes", [aurelia_router_1.Router, custom_logger_1.CustomLogger, aurelia_i18n_1.I18N])
    ], ImportStep5);
    return ImportStep5;
}());

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