var _a;
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, I18N_NAME, LINK_NAME, MESSAGE_PAGE_NAME } from '../../component-names';
import { MI18n } from '../../i18n/i18n';
import { MLink } from '../../link/link';
import { MMessagePage } from '../../message-page/message-page';
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: (_a = {},
                _a[MESSAGE_PAGE_NAME] = MMessagePage,
                _a[I18N_NAME] = MI18n,
                _a[LINK_NAME] = MLink,
                _a)
        })
    ], 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