var _a;
import { __decorate, __extends } from "tslib";
import Vue from 'vue';
import Component from 'vue-class-component';
import { Prop } from 'vue-property-decorator';
import { ModulVue } from '../../../utils/vue/vue';
import { ERROR_PAGE_NOT_FOUND_NAME, MESSAGE_PAGE_NAME } from '../../component-names';
import { Link, MMessagePage } from '../../message-page/message-page';
import { MMessageState } from '../../message/message';
import WithRender from './error-page-not-found.html';
var MErrorPageNotFound = /** @class */ (function (_super) {
    __extends(MErrorPageNotFound, _super);
    function MErrorPageNotFound() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.state = MMessageState.Warning;
        _this.svgName = 'message-error-page-not-found';
        return _this;
    }
    MErrorPageNotFound.prototype.beforeCreate = function () {
        this.$svgSprite.addSvg('message-error-page-not-found', require('./message-error-page-not-found.svg'));
    };
    __decorate([
        Prop({
            default: function () { return (Vue.prototype).$i18n.translate('m-error-page-not-found:title'); }
        })
    ], MErrorPageNotFound.prototype, "title", void 0);
    __decorate([
        Prop({
            default: function () { return [
                new Link((Vue.prototype).$i18n.translate('m-error-page-not-found:home-label'), "\\")
            ]; }
        })
    ], MErrorPageNotFound.prototype, "links", void 0);
    __decorate([
        Prop({
            default: function () { return [
                (Vue.prototype).$i18n.translate('m-error-page-not-found:hint.primary')
            ]; }
        })
    ], MErrorPageNotFound.prototype, "hints", void 0);
    MErrorPageNotFound = __decorate([
        WithRender,
        Component({
            components: (_a = {},
                _a[MESSAGE_PAGE_NAME] = MMessagePage,
                _a)
        })
    ], MErrorPageNotFound);
    return MErrorPageNotFound;
}(ModulVue));
export { MErrorPageNotFound };
var ErrorPageNotFoundPlugin = {
    install: function (v, options) {
        v.component(ERROR_PAGE_NOT_FOUND_NAME, MErrorPageNotFound);
    }
};
export default ErrorPageNotFoundPlugin;
//# sourceMappingURL=error-page-not-found.js.map