/**
 * Created by Samuel Gratzl on 28.02.2017.
 */
import * as tslib_1 from "tslib";
import { mixin } from 'phovea_core/src/index';
import BaseLoginMenu from 'phovea_security_flask/src/LoginMenu';
var LoginMenu = (function (_super) {
    tslib_1.__extends(LoginMenu, _super);
    function LoginMenu(header, options) {
        if (options === void 0) { options = {}; }
        var _this = _super.call(this, header, mixin({
            document: header.rightMenu.ownerDocument
        }, options)) || this;
        _this.header = header;
        if (options.insertIntoHeader) {
            _this.header.insertCustomRightMenu(_this.node);
        }
        return _this;
    }
    return LoginMenu;
}(BaseLoginMenu));
export default LoginMenu;
//# sourceMappingURL=LoginMenu.js.map