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