"use strict";

var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));

var _propTypes = _interopRequireDefault(require("prop-types"));

var React = _interopRequireWildcard(require("react"));

var _styledComponents = _interopRequireDefault(require("styled-components"));

var _interpolation = require("../../Tools/interpolation");

//  strict
var Wrapper =
/*#__PURE__*/
_styledComponents.default.div.withConfig({
  componentId: "sc-94531c-0"
})(["\n  width: 100%;\n\n  @media (min-width: ", ") {\n    position: absolute;\n    width: auto;\n    margin: 0.25rem 0;\n    background-color: transparent;\n  }\n"], (0, _interpolation.screenSize)('sm'));

var Container =
/*#__PURE__*/
_styledComponents.default.div.withConfig({
  componentId: "sc-94531c-1"
})(["\n  position: relative;\n  display: flex;\n  flex-direction: column;\n\n  & > :last-child {\n    margin-bottom: 0 !important;\n  }\n\n  @media (max-width: ", ") {\n    padding: 1.1rem 0;\n  }\n\n  @media (min-width: ", ") {\n    margin-top: 15px;\n    padding: 1.5rem;\n    border-radius: 0.25rem;\n    box-sizing: border-box;\n    background-color: ", ";\n    box-shadow: 0 10px 60px -10px ", ",\n      0 8px 16px ", ";\n\n    &::after,\n    &::before {\n      bottom: 100%;\n      left: 10%;\n      border: solid transparent;\n      content: ' ';\n      height: 0;\n      width: 0;\n      position: absolute;\n      pointer-events: none;\n    }\n\n    &::after {\n      border-color: transparent;\n      border-bottom-color: ", ";\n      border-width: 10px;\n      margin-left: -10px;\n    }\n\n    &::before {\n      border-color: transparent;\n      border-bottom-color: ", ";\n      border-width: 12px;\n      margin-left: -12px;\n    }\n  }\n"], (0, _interpolation.screenSize)('sm'), (0, _interpolation.screenSize)('sm'), (0, _interpolation.theme)('navbarDropdownContentBackgroundColor'), (0, _interpolation.theme)('navbarDropdownContentShadowColor'), (0, _interpolation.theme)('navbarDropdownContentShadowColor2'), (0, _interpolation.theme)('navbarDropdownContentBackgroundColor'), (0, _interpolation.theme)('navbarDropdownContentBackgroundColor'));

var NavbarDropdownContent = function NavbarDropdownContent(_ref) {
  var children = _ref.children,
      rest = (0, _objectWithoutProperties2.default)(_ref, ["children"]);
  return React.createElement(Wrapper, rest, React.createElement(Container, null, children));
};

NavbarDropdownContent.propTypes = process.env.NODE_ENV !== "production" ? {
  children: _propTypes.default.node
} : {};
var _default = NavbarDropdownContent;
exports.default = _default;