"use strict";

function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.RightStyledSearchIcon = exports.LeftStyledSearchIcon = exports.StyledSearchIcon = exports.SearchIcon = void 0;

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

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

var _branding = require("../../../../mixins/branding");

function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }

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

var _SearchIcon = function _SearchIcon(_ref) {
  var className = _ref.className,
      theme = _ref.theme,
      _ref$colorName = _ref.colorName,
      colorName = _ref$colorName === void 0 ? 'greyscale-black' : _ref$colorName;
  return _react["default"].createElement("svg", {
    xmlns: "http://www.w3.org/2000/svg",
    width: "16",
    height: "16",
    viewBox: "0 0 16 16",
    className: className
  }, _react["default"].createElement("g", {
    fill: "none",
    fillRule: "evenodd",
    stroke: (0, _branding.getPaletteColor)(colorName)({
      theme: theme
    }),
    transform: "translate(1 1)"
  }, _react["default"].createElement("circle", {
    cx: "6",
    cy: "6",
    r: "5",
    strokeWidth: "2"
  }), _react["default"].createElement("path", {
    strokeLinecap: "round",
    strokeWidth: "2.5",
    d: "M10 10l4 4"
  })));
};

var SearchIcon = (0, _styledComponents.withTheme)(_SearchIcon);
exports.SearchIcon = SearchIcon;
SearchIcon.displayName = 'SearchIcon';
var StyledSearchIcon = (0, _styledComponents["default"])(SearchIcon).withConfig({
  displayName: "StyledSearchIcon",
  componentId: "sc-5lspkm-0"
})(["pointer-events:none;position:absolute;top:", ";"], function (_ref2) {
  var large = _ref2.large;
  return large ? '21px' : '12px';
});
exports.StyledSearchIcon = StyledSearchIcon;
var LeftStyledSearchIcon = (0, _styledComponents["default"])(StyledSearchIcon).attrs(function () {
  return {
    colorName: 'greyscale-medium'
  };
}).withConfig({
  displayName: "LeftStyledSearchIcon",
  componentId: "sc-5lspkm-1"
})(["left:", ";"], function (_ref3) {
  var large = _ref3.large;
  return large ? '21px' : '12px';
});
exports.LeftStyledSearchIcon = LeftStyledSearchIcon;
LeftStyledSearchIcon.displayName = 'LeftStyledSearchIcon';
var RightStyledSearchIcon = (0, _styledComponents["default"])(StyledSearchIcon).attrs(function () {
  return {
    colorName: 'greyscale-black'
  };
}).withConfig({
  displayName: "RightStyledSearchIcon",
  componentId: "sc-5lspkm-2"
})(["right:26px;"]);
exports.RightStyledSearchIcon = RightStyledSearchIcon;
RightStyledSearchIcon.displayName = 'RightStyledSearchIcon';