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_CONFIG_NOT_SUPPORTED_NAME, MESSAGE_PAGE_NAME } from '../../component-names';
import { MMessagePage } from '../../message-page/message-page';
import { MMessageState } from '../../message/message';
import WithRender from './error-config-not-supported.html';
var MErrorConfigNotSupported = /** @class */ (function (_super) {
    __extends(MErrorConfigNotSupported, _super);
    function MErrorConfigNotSupported() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.state = MMessageState.Warning;
        _this.svgName = 'message-error-config-not-supported';
        return _this;
    }
    MErrorConfigNotSupported.prototype.beforeCreate = function () {
        this.$svgSprite.addSvg('message-error-config-not-supported', require('./message-error-config-not-supported.svg'));
    };
    __decorate([
        Prop({
            default: function () { return (Vue.prototype).$i18n.translate('m-error-config-not-supported:title'); }
        })
    ], MErrorConfigNotSupported.prototype, "title", void 0);
    __decorate([
        Prop({ default: function () { return []; } })
    ], MErrorConfigNotSupported.prototype, "links", void 0);
    __decorate([
        Prop({
            default: function () { return [
                (Vue.prototype).$i18n.translate('m-error-config-not-supported:hint.primary'),
                (Vue.prototype).$i18n.translate('m-error-config-not-supported:hint.secondary')
            ]; }
        })
    ], MErrorConfigNotSupported.prototype, "hints", void 0);
    MErrorConfigNotSupported = __decorate([
        WithRender,
        Component({
            components: (_a = {},
                _a[MESSAGE_PAGE_NAME] = MMessagePage,
                _a)
        })
    ], MErrorConfigNotSupported);
    return MErrorConfigNotSupported;
}(ModulVue));
export { MErrorConfigNotSupported };
var ErrorConfigNotSupportedPlugin = {
    install: function (v, options) {
        v.component(ERROR_CONFIG_NOT_SUPPORTED_NAME, MErrorConfigNotSupported);
    }
};
export default ErrorConfigNotSupportedPlugin;
//# sourceMappingURL=error-config-not-supported.js.map