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