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