"use strict";
var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        if (typeof b !== "function" && b !== null)
            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
var React = require("react");
var react_router_dom_1 = require("react-router-dom");
var Humberger = /** @class */ (function (_super) {
    __extends(Humberger, _super);
    function Humberger() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.handleMenuOverlayClick = function () {
            _this.props.closeHumbergerMenu();
        };
        return _this;
    }
    Humberger.prototype.render = function () {
        var _this = this;
        var showHumbergerMenu = this.props.showHumbergerMenu;
        return (React.createElement(React.Fragment, null,
            React.createElement("div", { id: "preloder" },
                React.createElement("div", { className: "loader" })),
            React.createElement("div", { className: "humberger__menu__overlay ".concat(showHumbergerMenu ? "active" : ""), onClick: this.props.closeHumbergerMenu }),
            React.createElement("div", { className: "humberger__menu__wrapper ".concat(showHumbergerMenu ? "show__humberger__menu__wrapper" : "") },
                React.createElement("div", { className: "humberger__menu__logo" },
                    React.createElement("img", { src: "img/logo.jpg", alt: "" })),
                React.createElement("div", { className: "humberger__menu__cart" },
                    React.createElement("ul", null,
                        React.createElement("li", null,
                            React.createElement(react_router_dom_1.Link, { to: "/cart", onClick: this.props.closeHumbergerMenu },
                                React.createElement("i", { className: "fa fa-shopping-bag" }),
                                this.props.cartItemsAmount > 0 ? React.createElement("span", null, this.props.cartItemsAmount) : ''))),
                    React.createElement("div", { className: "header__cart__price" },
                        React.createElement(react_router_dom_1.Link, { className: "default__link", to: "/cart", onClick: this.props.closeHumbergerMenu }, "N\u00E1kupn\u00ED ko\u0161\u00EDk"))),
                React.createElement("div", { className: "humberger__menu__widget" },
                    React.createElement("div", { className: "header__top__right__auth" }, this.props.userName !== ''
                        ? React.createElement("div", { className: "user__menu" },
                            React.createElement("ul", null,
                                React.createElement("li", { onMouseLeave: this.props.closeDropDownMenu },
                                    React.createElement("a", { onClick: this.props.onDropDownMenuClick },
                                        React.createElement("i", { className: "fa fa-user", style: { marginRight: '29px' } }),
                                        this.props.userName),
                                    React.createElement("ul", { style: this.props.dropdownStyle },
                                        React.createElement("li", { className: "dropdown__item__li" },
                                            React.createElement(react_router_dom_1.Link, { className: "user__dropdown__item__a", to: "/account/info", onClick: this.props.closeHumbergerMenu }, "Nastaven\u00ED")),
                                        React.createElement("li", { className: "dropdown__item__li" },
                                            React.createElement("a", { onClick: function (e) { _this.props.onLougoutClick(e); _this.props.closeDropDownMenu(); _this.props.closeHumbergerMenu(); }, className: "user__dropdown__item__a" }, "Odhl\u00E1sit se"))))))
                        : React.createElement(react_router_dom_1.Link, { to: "/login", onClick: this.props.closeHumbergerMenu },
                            React.createElement("i", { className: "fa fa-user" }),
                            " P\u0159ihl\u00E1sit"))),
                React.createElement("div", { id: "mobile-menu-wrap" },
                    React.createElement("div", { className: "slicknav_menu" },
                        React.createElement("nav", { className: "slicknav_nav slicknav_hidden", style: { display: "none" } },
                            React.createElement("ul", null,
                                React.createElement("li", null,
                                    React.createElement(react_router_dom_1.NavLink, { exact: true, to: "/", onClick: this.props.closeHumbergerMenu }, "Produkty")),
                                React.createElement("li", null,
                                    React.createElement(react_router_dom_1.NavLink, { to: "/delivery", onClick: this.props.closeHumbergerMenu }, "Doprava")),
                                React.createElement("li", null,
                                    React.createElement(react_router_dom_1.NavLink, { to: "/contacts", onClick: this.props.closeHumbergerMenu }, "Kontakty")),
                                React.createElement("li", null,
                                    React.createElement(react_router_dom_1.Link, { to: "/aboutus", onClick: this.props.closeHumbergerMenu }, "O n\u00E1s")),
                                React.createElement("li", null,
                                    React.createElement(react_router_dom_1.Link, { to: "/tradeTerms", onClick: this.props.closeHumbergerMenu }, "Obchodn\u00ED podm\u00EDnky")))))),
                React.createElement("div", { className: "humberger__menu__contact" },
                    React.createElement("ul", null,
                        React.createElement("li", null,
                            React.createElement("i", { className: "fa fa-envelope" }),
                            " Lhotsky15@seznam.cz"),
                        React.createElement("li", null,
                            "Doru\u010Den\u00ED zdarma pro objedn\u00E1vky nad ",
                            React.createElement("strong", null, "1000 K\u010D"),
                            "!"))))));
    };
    return Humberger;
}(React.Component));
exports.default = Humberger;
//# sourceMappingURL=humberger.js.map