'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var slicedToArray = require('./slicedToArray-067dd3bc.js');
var React = require('react');
var Container = require('react-bootstrap/Container');
var Nav = require('react-bootstrap/Nav');
var Navbar = require('react-bootstrap/Navbar');
var NavDropdown = require('react-bootstrap/NavDropdown');
var checkSisterSite = require('./checkSisterSite-b29833b2.js');
var index_esm = require('./index.esm-c1e16606.js');
var index_esm$1 = require('./index.esm-d81454e7.js');
var NavFooter = require('./NavFooter-4799de4b.js');
var index_esm$2 = require('./index.esm-1461604c.js');
var main = require('./main-f1c77adb.js');
var Segment = require('./Segment.js');
var SocialSearchComponent = require('./SocialSearchComponent-d2ab3d62.js');
require('./_commonjsHelpers-06173234.js');
require('./web.dom.iterable-d98303e0.js');
require('./core.get-iterator-method-5643aa10.js');
require('./iconBase-be4097c0.js');
require('./react-social-icons-af932527.js');
require('prop-types');
require('./asyncToGenerator-77821af0.js');
require('./_library-dd23b178.js');
require('./_iter-detect-b1df62f0.js');
require('./SocialIcons.js');
require('react-bootstrap/Form');
require('react-bootstrap/FormControl');
require('react-bootstrap/Button');

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
var Container__default = /*#__PURE__*/_interopDefaultLegacy(Container);
var Nav__default = /*#__PURE__*/_interopDefaultLegacy(Nav);
var Navbar__default = /*#__PURE__*/_interopDefaultLegacy(Navbar);
var NavDropdown__default = /*#__PURE__*/_interopDefaultLegacy(NavDropdown);

var NavMagazine = function NavMagazine(props) {
  /*
  Example Nav with acceptable props
  <MagazineNav
     showLogin
     user={props.cache.user}
     logo={props.settings.logo}
     dataObject={props.cache.mainNavCache}
     website={website}
     subNav={props.cache.subNavCache}
      />
  */

  // Setting 'socialIconVariant' as 'light' as default to make the social icons and search icon black
  var logo = props.logo,
      mobileLogo = props.mobileLogo,
      dataObject = props.dataObject,
      subNav = props.subNav,
      _props$website = props.website,
      website = _props$website === undefined ? {} : _props$website,
      _props$showLogin = props.showLogin,
      showLogin = _props$showLogin === undefined ? false : _props$showLogin;
      props.userData;
      var _props$socialFooterNa = props.socialFooterNav,
      socialFooterNav = _props$socialFooterNa === undefined ? false : _props$socialFooterNa,
      _props$socialIconVari = props.socialIconVariant,
      socialIconVariant = _props$socialIconVari === undefined ? 'light' : _props$socialIconVari,
      invertedLogo = props.invertedLogo;
      props.settings;

  var navRef = React.useRef(null);
  var topNavRef = React.useRef(null);

  var _useState = React.useState(false),
      _useState2 = slicedToArray._slicedToArray(_useState, 2),
      isSticky = _useState2[0],
      setIsSticky = _useState2[1];

  var _useState3 = React.useState(0),
      _useState4 = slicedToArray._slicedToArray(_useState3, 2),
      screenWidth = _useState4[0],
      setScreenWidth = _useState4[1];

  var _useState5 = React.useState(null),
      _useState6 = slicedToArray._slicedToArray(_useState5, 2),
      userAgent = _useState6[0],
      setUserAgent = _useState6[1];

  var _useState7 = React.useState(0),
      _useState8 = slicedToArray._slicedToArray(_useState7, 2),
      resolution = _useState8[0],
      setResolution = _useState8[1];

  var _useState9 = React.useState(true),
      _useState10 = slicedToArray._slicedToArray(_useState9, 2),
      isDesktop = _useState10[0],
      setIsDesktop = _useState10[1];

  var _useState11 = React.useState(0),
      _useState12 = slicedToArray._slicedToArray(_useState11, 2),
      topOffset = _useState12[0],
      setTopOffset = _useState12[1];

  React.useEffect(function () {
    // handling the top mast component
    document.querySelector('.top-nav-secondary') && document.querySelector('.top-nav-secondary').offsetHeight;
  }, []);

  React.useEffect(function () {
    // Check for desktop or mobile device
    if (window && window.innerWidth < 568) setIsDesktop(false);

    // Hiding light-nav with logo on mobile devices
    if (window && window.innerWidth < 1200 && topNavRef) topNavRef.current.style.display = 'none';

    // Initial User agent setup on refresh or on load
    setUserAgent(navigator.userAgent.toString());

    // Initial screenwidth setup on refresh or on load
    setScreenWidth(parseInt(window.innerWidth));

    setTimeout(function () {
      var segmentLinks = navRef.current.querySelectorAll('a[needsegmentsupport="true"]');
      for (var i = 0; i < segmentLinks.length; i++) {
        var link = segmentLinks[i];
        var href = link.getAttribute('href');
        var newRef = Segment.getURL(href, { needSegmentSupport: true });
        link.setAttribute('href', newRef);
      }
    }, 1000);
  }, []);

  // Check for browser resize
  React.useEffect(function () {
    if (resolution === 0) {
      setResolution(window.innerWidth);
    }
    var handleResize = function handleResize() {
      if (resolution === 0) {
        setResolution(window.innerWidth);
      } else {
        if (window.innerWidth < 568 && resolution >= 568 && isDesktop) {
          console.log('Detected Mobile Resolution');
          window.location.reload();
          // Updating the condition to reload the page on resize in desktop view
        } else if (window.innerWidth >= 568 && !isDesktop) {
          console.log('Detected Tablet/Desktop Resolution');
          window.location.reload();
        }
      }
    };
    window.addEventListener('resize', handleResize);
  }, [resolution]);

  // Check for change in useragent with change in screen resolution
  React.useEffect(function () {
    var handleResize = function handleResize() {
      if (userAgent && userAgent !== navigator.userAgent.toString()) {
        console.log('Browser change detected, refreshing');
        window.location.reload();
      }
    };
    window.addEventListener('resize', handleResize);
  }, [userAgent]);

  //  Handling navigation and logo position on scroll
  React.useEffect(function () {
    var navOffsetTop = document.getElementById('navbar-ham') && document.getElementById('navbar-ham').offsetTop;
    var adSection = document.querySelector('.AD728x90');
    var navLinks = document.getElementById('nav-links');
    var mastNav = document.querySelector('.nav-brands');
    if (mastNav && mastNav.offsetHeight) setTopOffset(mastNav.offsetHeight - 3);

    if (window.pageYOffset > navOffsetTop) {
      if (navRef.current && navRef.current.style) {
        navRef.current.style.position = 'fixed';
        if (mastNav && mastNav.offsetHeight) navRef.current.style.top = mastNav.offsetHeight;
      }
    }
    var stickyNav = window.addEventListener('scroll', function () {
      if (window.pageYOffset > navOffsetTop) {
        if (navRef.current && navRef.current.style) {
          navRef.current.style.position = 'fixed';
          if (mastNav && mastNav.offsetHeight) navRef.current.style.top = mastNav.offsetHeight;
        }
        setIsSticky(true);
        navLinks.style.margin = 'auto';
      } else {
        if (navRef.current && navRef.current.style) {
          topNavRef.current.style.paddingBottom = '0';
          navRef.current.style.position = 'relative';
          if (adSection) adSection.style.marginTop = '';
          if (mastNav && mastNav.offsetHeight) navRef.current.style.top = mastNav.offsetHeight;
        }
        setIsSticky(false);
        navLinks.style.margin = '0px auto 0px 0px';
      }
    });
    return function () {
      window.removeEventListener('scroll', stickyNav);
    };
  }, []);

  //const userLoggedIn = props.user ? true : false

  var _useState13 = React.useState(false),
      _useState14 = slicedToArray._slicedToArray(_useState13, 2),
      userLoggedIn = _useState14[0],
      setUserLoggedIn = _useState14[1];

  var _useState15 = React.useState(false),
      _useState16 = slicedToArray._slicedToArray(_useState15, 2),
      userChecked = _useState16[0],
      setUserChecked = _useState16[1];
  // Search Term


  var _useState17 = React.useState(''),
      _useState18 = slicedToArray._slicedToArray(_useState17, 2);
      _useState18[0];
      _useState18[1];

  React.useEffect(function () {
    setUserLoggedIn(props.user ? true : false);
    if (!userChecked) {
      setUserChecked(true);
    }
  }, [props.user, userChecked]);

  return React__default['default'].createElement(
    React__default['default'].Fragment,
    null,
    React__default['default'].createElement(
      Navbar__default['default'],
      { expand: 'xl', ref: topNavRef },
      React__default['default'].createElement(
        Container__default['default'],
        { style: { position: 'relative' } },
        React__default['default'].createElement(
          Nav__default['default'],
          { id: 'navbar-top', className: 'justify-content-center navbar-top', style: { margin: '0 auto' } },
          React__default['default'].createElement(
            Nav__default['default'].Item,
            { className: 'nav-mobile-logo' },
            React__default['default'].createElement(
              'a',
              { href: '/' },
              mobileLogo && screenWidth < 776 ? React__default['default'].createElement('img', { src: mobileLogo, alt: website.title ? website.title : website.name ? website.name : 'Website Logo' }) : React__default['default'].createElement('img', { src: logo, className: 'logo', style: { height: '55px' }, alt: website.title ? website.title : website.name ? website.name : 'Website Logo' })
            )
          ),
          false    ,
          false    
        ),
        React__default['default'].createElement(
          Nav__default['default'],
          { style: { position: 'absolute', right: '15px' }, className: 'justify-content-end rightHeader' },
          showLogin && userChecked && !userLoggedIn && React__default['default'].createElement(
            React__default['default'].Fragment,
            null,
            React__default['default'].createElement(
              Nav__default['default'].Item,
              null,
              React__default['default'].createElement(
                'a',
                { href: '/auth/signup' },
                React__default['default'].createElement(
                  'div',
                  { className: 'px-2 py-2 mr-2', id: 'nav-register' },
                  React__default['default'].createElement(index_esm.MdEmail, null),
                  ' Sign Up'
                )
              )
            ),
            React__default['default'].createElement(
              Nav__default['default'].Item,
              null,
              React__default['default'].createElement(
                'a',
                { href: '/auth/login' },
                React__default['default'].createElement(
                  'div',
                  { className: 'px-2 py-2', id: 'nav-login' },
                  React__default['default'].createElement(index_esm$1.IoMdLogIn, null),
                  ' Login'
                )
              )
            )
          ),
          showLogin && userChecked && userLoggedIn && React__default['default'].createElement(
            React__default['default'].Fragment,
            null,
            React__default['default'].createElement(
              Nav__default['default'].Item,
              null,
              React__default['default'].createElement(
                'a',
                { href: '/auth/profile' },
                React__default['default'].createElement(
                  'div',
                  { className: 'px-2 py-2', id: 'nav-profile' },
                  React__default['default'].createElement(index_esm.MdEmail, null),
                  ' Profile'
                )
              )
            ),
            React__default['default'].createElement(
              Nav__default['default'].Item,
              null,
              React__default['default'].createElement(
                'a',
                { href: '/api/auth/logout' },
                React__default['default'].createElement(
                  'div',
                  { className: 'px-2 py-2', id: 'nav-logout' },
                  React__default['default'].createElement(index_esm$1.IoMdLogIn, null),
                  ' Logout'
                )
              )
            )
          )
        )
      )
    ),
    React__default['default'].createElement(
      Navbar__default['default'],
      {
        id: 'navbar-ham',
        style: { width: '100%', display: 'flex', top: topOffset, overflow: 'auto', zIndex: '999999' },
        className: main.main_44 ? 'bottom-nav ios-nav' : 'bottom-nav ',
        variant: 'dark',
        expand: 'xl',
        bg: 'primary',
        sticky: 'top',
        ref: navRef },
      React__default['default'].createElement(
        Container__default['default'],
        { className: 'mobile-nav android-nav', style: { display: 'flex' } },
        React__default['default'].createElement(
          'div',
          { className: 'nav-toggle', style: { display: 'flex' } },
          React__default['default'].createElement(Navbar__default['default'].Toggle, {
            'aria-controls': 'basic-navbar-nav',
            onClick: function onClick() {
              // Set overflow fix for iPhones safari browsers
              if (main.main_44) {
                var mainNav = document.querySelector('#navbar-ham');
                if (mainNav && mainNav.style) mainNav.style.overflow = 'auto';
              }

              var searchBar = document.getElementById('search-bar-mobile');
              var searchBtn = document.getElementsByClassName('search-btn-mobile');

              if (searchBar && searchBar.classList) {
                searchBar.classList.remove('show');
              }
              if (searchBtn && searchBtn[0] && searchBtn[0].classList) {
                searchBtn[0].classList.remove('active-search');
              }
            }
          }),
          !isDesktop && React__default['default'].createElement(
            'div',
            { className: 'site-logo-wrapper', style: { margin: 'auto' } },
            React__default['default'].createElement(
              'a',
              { href: '/' },
              React__default['default'].createElement('img', { src: invertedLogo ? invertedLogo : logo, style: { padding: '0px ', objectFit: 'contain', maxHeight: '45px' } })
            )
          ),
          !isDesktop && React__default['default'].createElement(SocialSearchComponent.SocialSearchComponent, { type: 'mobile', socialIconVariant: socialIconVariant, website: website, navID: 'navbar-ham' })
        ),
        React__default['default'].createElement(
          'div',
          { className: 'navigation-menu-list', style: { width: '100%', maxHeight: '85vh' } },
          subNav && React__default['default'].createElement(
            Navbar__default['default'].Collapse,
            { id: 'basic-navbar-sub' },
            React__default['default'].createElement(
              Nav__default['default'],
              { className: 'mr-auto' },
              showLogin && userChecked && userLoggedIn && React__default['default'].createElement(
                React__default['default'].Fragment,
                null,
                React__default['default'].createElement(
                  'a',
                  { key: 'mobile-profile', href: '/auth/profile', className: 'nav-link' },
                  'Profile'
                ),
                React__default['default'].createElement(
                  'a',
                  { key: 'mobile-logout', href: '/api/auth/logout', className: 'nav-link' },
                  'Log Out'
                )
              ),
              showLogin && userChecked && !userLoggedIn && React__default['default'].createElement(
                React__default['default'].Fragment,
                null,
                React__default['default'].createElement(
                  'a',
                  { key: 'mobile-signup', href: '/auth/signup', className: 'nav-link' },
                  'Sign Up'
                ),
                React__default['default'].createElement(
                  'a',
                  { key: 'mobile-login', href: '/auth/login', className: 'nav-link' },
                  'Log In'
                )
              ),
              subNav && subNav.map(function (row, index) {
                if (row.subQuery && row.subQuery.length > 0) {
                  return row.name ? React__default['default'].createElement(
                    'div',
                    null,
                    React__default['default'].createElement(
                      NavDropdown__default['default'],
                      { key: index, title: row.name, id: 'basic-nav-dropdown', renderMenuOnMount: true },
                      row.url && React__default['default'].createElement(
                        'a',
                        {
                          className: 'dropdownlist-expand-btn',
                          href: row.url,
                          rel: checkSisterSite.checkSisterSite(row.url) ? '' : 'noopener noreferrer',
                          style: {
                            position: 'absolute',
                            top: '0px',
                            right: '0px',
                            cursor: 'pointer',
                            color: socialIconVariant === 'dark' ? '#000' : '#ffffff',
                            padding: '5px 10px'
                          } },
                        'View More'
                      ),
                      row.subQuery && row.subQuery.map(function (ddRow, subIndex) {
                        if (ddRow.type === 'divider') {
                          return React__default['default'].createElement(NavDropdown__default['default'].Divider, { key: subIndex });
                        } else {
                          if (ddRow.url && ddRow.name) {
                            return ddRow.url && ddRow.name ? React__default['default'].createElement(
                              'a',
                              {
                                key: subIndex,
                                needsegmentsupport: ddRow.needSegmentSupport ? 'true' : '',
                                href: ddRow.url,
                                rel: checkSisterSite.checkSisterSite(ddRow.url) ? '' : 'noopener noreferrer',
                                target: ddRow.blank ? '_blank' : '_self',
                                className: 'dropdown-item' },
                              ddRow.name
                            ) : null;
                          } else return null;
                        }
                      })
                    ),
                    React__default['default'].createElement(
                      'noscript',
                      null,
                      React__default['default'].createElement(
                        'div',
                        null,
                        row.subQuery && row.subQuery.map(function (ddRow, subIndex) {
                          if (ddRow.type === 'divider') {
                            return React__default['default'].createElement(NavDropdown__default['default'].Divider, { key: subIndex });
                          } else {
                            if (ddRow.url && ddRow.name) {
                              return ddRow.url && ddRow.name ? React__default['default'].createElement(
                                'a',
                                {
                                  key: subIndex,
                                  needsegmentsupport: ddRow.needSegmentSupport ? 'true' : '',
                                  href: ddRow.url,
                                  rel: checkSisterSite.checkSisterSite(ddRow.url) ? '' : 'noopener noreferrer',
                                  target: ddRow.blank ? '_blank' : '_self',
                                  className: 'dropdown-item' },
                                ddRow.name
                              ) : null;
                            } else return null;
                          }
                        })
                      )
                    )
                  ) : null;
                } else {
                  return row.url && row.name ? React__default['default'].createElement(
                    'a',
                    {
                      key: index,
                      needsegmentsupport: row.needSegmentSupport ? 'true' : '',
                      href: row.url,
                      target: row.blank ? '_blank' : '_self',
                      className: 'nav-link',
                      rel: checkSisterSite.checkSisterSite(row.url) ? '' : 'noopener noreferrer' },
                    row.name
                  ) : null;
                }
              })
            )
          ),
          React__default['default'].createElement(
            Navbar__default['default'].Collapse,
            { id: 'basic-navbar-nav' },
            isSticky && invertedLogo && isDesktop && React__default['default'].createElement(
              Nav__default['default'].Item,
              { className: 'nav-mobile-logo' },
              React__default['default'].createElement(
                'a',
                { href: '/' },
                React__default['default'].createElement('img', { src: invertedLogo, className: 'mobile-logo', style: { height: '38px' }, alt: website.title ? website.title : website.name ? website.name : 'Website Logo' })
              )
            ),
            React__default['default'].createElement(
              Nav__default['default'],
              { id: 'nav-links', style: { marginRight: 'auto' } },
              dataObject && dataObject.map(function (row, index) {
                if (row.subQuery && row.subQuery.length > 0) {
                  return row.name ? React__default['default'].createElement(
                    'div',
                    null,
                    React__default['default'].createElement(
                      NavDropdown__default['default'],
                      { key: index, title: row.name, id: 'basic-nav-dropdown', renderMenuOnMount: true },
                      row.subQuery && row.subQuery.map(function (ddRow, subIndex) {
                        if (ddRow.type === 'divider') {
                          return React__default['default'].createElement(NavDropdown__default['default'].Divider, { key: subIndex });
                        } else {
                          return ddRow.url && ddRow.name ? React__default['default'].createElement(
                            'a',
                            {
                              key: subIndex,
                              needsegmentsupport: ddRow.needSegmentSupport ? 'true' : '',
                              href: ddRow.url,
                              rel: checkSisterSite.checkSisterSite(ddRow.url) ? '' : 'noopener noreferrer',
                              target: ddRow.blank ? '_blank' : '_self',
                              className: 'dropdown-item' },
                            ddRow.name
                          ) : null;
                        }
                      })
                    ),
                    React__default['default'].createElement(
                      'noscript',
                      null,
                      React__default['default'].createElement(
                        'div',
                        null,
                        row.subQuery && row.subQuery.map(function (ddRow, subIndex) {
                          if (ddRow.type === 'divider') {
                            return React__default['default'].createElement(NavDropdown__default['default'].Divider, { key: subIndex });
                          } else {
                            return ddRow.url && ddRow.name ? React__default['default'].createElement(
                              'a',
                              {
                                key: subIndex,
                                needsegmentsupport: ddRow.needSegmentSupport ? 'true' : '',
                                href: ddRow.url,
                                rel: checkSisterSite.checkSisterSite(ddRow.url) ? '' : 'noopener noreferrer',
                                target: ddRow.blank ? '_blank' : '_self',
                                className: 'dropdown-item' },
                              ddRow.name
                            ) : null;
                          }
                        })
                      )
                    )
                  ) : null;
                } else {
                  return row.url && row.name ? React__default['default'].createElement(
                    'a',
                    {
                      key: index,
                      needsegmentsupport: row.needSegmentSupport ? 'true' : '',
                      href: row.url,
                      target: row.blank ? '_blank' : '_self',
                      className: 'nav-link',
                      rel: checkSisterSite.checkSisterSite(row.url) ? '' : 'noopener noreferrer' },
                    row.name
                  ) : null;
                }
              })
            )
          ),
          website && React__default['default'].createElement(
            Navbar__default['default'].Collapse,
            { id: 'basic-navbar-sub' },
            React__default['default'].createElement(
              Nav__default['default'],
              { className: 'mr-auto' },
              socialFooterNav ? React__default['default'].createElement(index_esm$2.SocialNavFooter, { website: website, showLogo: true }) : React__default['default'].createElement(NavFooter.NavFooter, { website: website, showLogo: true })
            )
          )
        ),
        isDesktop && React__default['default'].createElement(SocialSearchComponent.SocialSearchComponent, { type: 'desktop', socialIconVariant: socialIconVariant, website: website, navID: 'navbar-ham' })
      )
    ),
    React__default['default'].createElement(
      'noscript',
      null,
      React__default['default'].createElement(
        'style',
        { jsx: 'true' },
        '\n          .navbar .collapse {\n            display: block;\n          }\n        '
      )
    ),
    React__default['default'].createElement(
      'style',
      { jsx: 'true' },
      '\n        .sticky-home {\n          position: relative;\n          top: -3px;\n          left: -6px;\n          cursor: pointer;\n        }\n        .nav-item svg {\n          margin-bottom: 2px;\n        }\n        #nav-login,\n        #nav-logout,\n        #nav-register {\n          padding: 0.5rem;\n          cursor: pointer;\n        }\n        #nav-mobile-login,\n        #nav-mobile-logout,\n        #nav-mobile-register {\n          display: none;\n        }\n        #nav-mobile-logout,\n        #nav-mobile-login {\n          position: absolute;\n          right: 1rem;\n        }\n        #nav-mobile-register {\n          position: absolute;\n          left: 1rem;\n        }\n        @media screen and (max-width: 767px) {\n          .logo {\n            width: 100%;\n            padding-left: 10px;\n            padding-right: 10px;\n          }\n        }\n        @media screen and (max-width: 1199px) {\n          .mobile-nav .nav-toggle {\n            width: 100%;\n          }\n          .nav-open {\n            position: relative;\n          }\n          .mobile-nav .nav-toggle {\n            width: 100%;\n          }\n          .android-nav {\n            max-height: 80vh;\n          }\n          .ios-nav {\n            max-height: none;\n          }\n          .mobile-nav .nav-toggle .navbar-toggler {\n            float: left;\n            height: 45px;\n          }\n          .mobile-nav .form-inline .mobile-search {\n            width: auto;\n          }\n          .sticky-home {\n            display: none;\n          }\n          // .dropdown-menu {\n          //   max-height: 315px;\n          //   overflow: auto;\n          // }\n          ::-webkit-scrollbar {\n            width: 10px;\n          }\n          ::-webkit-scrollbar-thumb {\n            border-radius: 4px;\n            background-color: rgba(214, 214, 214, 0.8);\n            box-shadow: 0 0 1px rgba(255, 255, 255, 0.5);\n            -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, 0.5);\n          }\n          .navbar-expand-xl .show#basic-navbar-sub {\n            display: block;\n          }\n          .navbar .mobile-nav .navbar-collapse.show {\n            padding-bottom: 10px;\n            border-bottom: 0.5px solid white;\n          }\n          .navbar .mobile-nav .navbar-collapse .form-inline {\n            display: none;\n          }\n          .navbar .mobile-nav .navbar-collapse {\n            margin-top: 15px;\n          }\n          .navbar .mobile-nav .navbar-collapse:last-child {\n            border-bottom: none;\n            margin-bottom: 0px;\n            padding-bottom: 0px;\n            margin-top: 0px;\n            padding-top: 10px;\n          }\n          .navbar .mobile-nav .navbar-collapse .nav-footer ul {\n            list-style-type: none;\n            padding: inherit;\n            margin-bottom: 0rem;\n          }\n          .navbar .mobile-nav .navbar-collapse .nav-footer .nav-link {\n            text-transform: capitalize !important;\n            font-weight: 300;\n          }\n          .navbar .mobile-nav .dropdown-item:focus {\n            background-color: #696969;\n          }\n          .navbar .mobile-nav .dropdown-menu .dropdown-item {\n            color: white;\n            white-space: inherit !important;\n            margin-bottom: 5px;\n          }\n          .navbar .mobile-nav .dropdown-menu {\n            background: inherit;\n            border: none;\n          }\n          // .navbar .mobile-nav .dropdown-menu.show {\n          //   max-height: 100px;\n          // }\n        }\n        @media screen and (min-width: 1200px) {\n          #navbar-ham {\n            overflow: visible !important;\n          }\n          #basic-navbar-sub {\n            display: none !important;\n          }\n          .navbar .mobile-nav .dropdown-menu .dropdown-item {\n            color: #696969;\n          }\n          .navbar .mobile-nav .dropdown-menu {\n            background: white;\n            border: 1 px solid #708090;\n          }\n          .navbar.bg-primary {\n            z-index: 3000000 !important;\n          }\n        }\n        @media screen and (max-width: 1199px) {\n          #nav-mobile-login,\n          #nav-mobile-logout,\n          #nav-mobile-register {\n            display: block;\n          }\n          .navbar-top {\n            flex-direction: row;\n            justify-content: space-around !important;\n            align-items: center;\n            padding-left: 0.25rem;\n            padding-right: 0.25rem;\n            width: 100%;\n          }\n        }\n        @media screen and (max-width: 1199px) {\n          .navbar .mobile-nav .dropdown-menu.show {\n            overflow: hidden;\n            overflow-y: scroll;\n          }\n          .dropdown-menu.show > .nav-item {\n            padding: 0.5rem;\n          }\n        }\n      '
    )
  );
};

var MagazineNav = React__default['default'].memo(NavMagazine);

exports.NavMagazine = NavMagazine;
exports['default'] = MagazineNav;
