var _a;
import { __decorate, __extends } from "tslib";
import Vue from 'vue';
import Component from 'vue-class-component';
import { Prop } from 'vue-property-decorator';
import { MediaQueries } from '../../../mixins/media-queries/media-queries';
import { ModulVue } from '../../../utils/vue/vue';
import { ERROR_BROWSER_NOT_SUPPORTED_NAME, MESSAGE_PAGE_NAME } from '../../component-names';
import { Link, MMessagePage } from '../../message-page/message-page';
import { MMessageState } from '../../message/message';
import WithRender from './error-browser-not-supported.html';
var MErrorBrowserNotSupported = /** @class */ (function (_super) {
    __extends(MErrorBrowserNotSupported, _super);
    function MErrorBrowserNotSupported() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.state = MMessageState.Warning;
        _this.svgName = 'message-error-browser-not-supported';
        return _this;
    }
    MErrorBrowserNotSupported.prototype.beforeCreate = function () {
        this.$svgSprite.addSvg('message-error-browser-not-supported', require('./message-error-browser-not-supported.svg'));
    };
    __decorate([
        Prop({
            default: function () { return (Vue.prototype).$i18n.translate('m-error-browser-not-supported:title'); }
        })
    ], MErrorBrowserNotSupported.prototype, "title", void 0);
    __decorate([
        Prop({
            default: function () { return [new Link((Vue.prototype).$i18n.translate('m-error-browser-not-supported:update-browser.desktop'), 'http://outdatedbrowser.com/fr', true)]; }
        })
    ], MErrorBrowserNotSupported.prototype, "linksDesktop", void 0);
    __decorate([
        Prop({ default: function () { return []; } })
    ], MErrorBrowserNotSupported.prototype, "linksMobile", void 0);
    __decorate([
        Prop({
            default: function () { return [(Vue.prototype).$i18n.translate('m-error-browser-not-supported:hint.primary.desktop')]; }
        })
    ], MErrorBrowserNotSupported.prototype, "hintsDesktop", void 0);
    __decorate([
        Prop({
            default: function () { return [(Vue.prototype).$i18n.translate('m-error-browser-not-supported:hint.primary.mobile')]; }
        })
    ], MErrorBrowserNotSupported.prototype, "hintsMobile", void 0);
    MErrorBrowserNotSupported = __decorate([
        WithRender,
        Component({
            components: (_a = {},
                _a[MESSAGE_PAGE_NAME] = MMessagePage,
                _a),
            mixins: [MediaQueries]
        })
    ], MErrorBrowserNotSupported);
    return MErrorBrowserNotSupported;
}(ModulVue));
export { MErrorBrowserNotSupported };
var ErrorBrowserNotSupported = {
    install: function (v, options) {
        v.component(ERROR_BROWSER_NOT_SUPPORTED_NAME, MErrorBrowserNotSupported);
    }
};
export default ErrorBrowserNotSupported;
//# sourceMappingURL=error-browser-not-supported.js.map