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