"use strict";

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

var _react = _interopRequireDefault(require("react"));

var _jsxRuntime = require("@emotion/react/jsx-runtime");

var _excluded = ["isOpen"];

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }

function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }

function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }

var _ref2 = process.env.NODE_ENV === "production" ? {
  name: "b94zdx",
  styles: "width:1rem;height:1rem"
} : {
  name: "n3mku8-MenuIcon",
  styles: "width:1rem;height:1rem;label:MenuIcon;",
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
};

var _ref3 = process.env.NODE_ENV === "production" ? {
  name: "sunrz3",
  styles: "transition-property:transform;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:200ms"
} : {
  name: "1ojeb2i-MenuIcon",
  styles: "transition-property:transform;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:200ms;label:MenuIcon;",
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
};

var _ref4 = process.env.NODE_ENV === "production" ? {
  name: "tl4cr3",
  styles: "transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:200ms"
} : {
  name: "1xv6pxq-MenuIcon",
  styles: "transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:200ms;label:MenuIcon;",
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
};

var _ref5 = process.env.NODE_ENV === "production" ? {
  name: "sunrz3",
  styles: "transition-property:transform;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:200ms"
} : {
  name: "1ojeb2i-MenuIcon",
  styles: "transition-property:transform;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:200ms;label:MenuIcon;",
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
};

var MenuIcon = function MenuIcon(_ref) {
  var isOpen = _ref.isOpen,
      restProps = _objectWithoutProperties(_ref, _excluded);

  return (0, _jsxRuntime.jsxs)("svg", _objectSpread(_objectSpread({
    viewBox: "-12 -12 24 24",
    fill: "none",
    css: _ref2,
    strokeWidth: 2,
    strokeLinecap: "square"
  }, restProps), {}, {
    children: [(0, _jsxRuntime.jsx)("path", {
      d: "M-11 0h22",
      stroke: "currentColor",
      css: _ref3,
      transform: isOpen ? 'rotate(45) rotate(180)' : 'translate(0 -6)'
    }), (0, _jsxRuntime.jsx)("path", {
      d: "M-11 0h22",
      stroke: "currentColor",
      opacity: isOpen ? 0 : void 0,
      css: _ref4
    }), (0, _jsxRuntime.jsx)("path", {
      d: "M-11 0h22",
      stroke: "currentColor",
      css: _ref5,
      transform: isOpen ? 'rotate(-45) rotate(-180)' : 'translate(0 6)'
    })]
  }));
};

var _default = MenuIcon;
exports["default"] = _default;