import { __decorate, __extends } from "tslib";
import Vue from 'vue';
import Component from 'vue-class-component';
import { Emit, Prop } from 'vue-property-decorator';
import { ERROR_SESSION_EXPIRED_NAME } from '../../component-names';
import { MLink } from '../../link/link';
import { MMessage } from '../../message/message';
import WithRender from './error-session-expired.html';
var MErrorSessionExpired = /** @class */ (function (_super) {
    __extends(MErrorSessionExpired, _super);
    function MErrorSessionExpired() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    MErrorSessionExpired.prototype.onClick = function (event) { };
    __decorate([
        Prop({
            default: function () { return Vue.prototype.$i18n.translate('m-session-expired:back-to-portal'); }
        })
    ], MErrorSessionExpired.prototype, "backToLabel", void 0);
    __decorate([
        Prop({ default: '/' })
    ], MErrorSessionExpired.prototype, "url", void 0);
    __decorate([
        Prop()
    ], MErrorSessionExpired.prototype, "target", void 0);
    __decorate([
        Emit('click')
    ], MErrorSessionExpired.prototype, "onClick", null);
    MErrorSessionExpired = __decorate([
        WithRender,
        Component({
            components: {
                MMessage: MMessage,
                MLink: MLink
            }
        })
    ], MErrorSessionExpired);
    return MErrorSessionExpired;
}(Vue));
export { MErrorSessionExpired };
var SessionExpiredPlugin = {
    install: function (v, options) {
        v.component(ERROR_SESSION_EXPIRED_NAME, MErrorSessionExpired);
    }
};
export default SessionExpiredPlugin;
//# sourceMappingURL=error-session-expired.js.map