"use strict";

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

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

var _helper = require("./helper");

var _excluded = ["size", "color", "style"];

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 _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 DEFAULT_STYLE = {
  display: 'block'
};

var KqTag = function KqTag(_ref) {
  var size = _ref.size,
      color = _ref.color,
      _style = _ref.style,
      rest = _objectWithoutProperties(_ref, _excluded);

  var style = _style ? _objectSpread(_objectSpread({}, DEFAULT_STYLE), _style) : DEFAULT_STYLE;
  return /*#__PURE__*/_react.default.createElement("svg", _objectSpread({
    viewBox: "0 0 1024 1024",
    width: size + 'px',
    height: size + 'px',
    style: style
  }, rest), /*#__PURE__*/_react.default.createElement("path", {
    d: "M1029.0256403 447.45432178l-35.92343705-379.39033126a41.36049778 41.36049778 0 0 0-36.97201303-37.12735763h-0.15534459l-379.85636504-35.92343704h-0.54370607a12.5052397 12.5052397 0 0 0-8.69929719 3.53408948L-1.45271467 566.87547733a12.03920592 12.03920592 0 0 0 0 17.16557749l441.5281683 441.52816829c2.29133275 2.29133275 5.3205523 3.53408948 8.62162489 3.53408948s6.291456-1.20392059 8.62162489-3.53408948L1025.64689541 457.24103111a12.42756741 12.42756741 0 0 0 3.41758104-8.62162489l-0.03883615-1.1262483v0.03883616zM448.54173392 903.62371792l-328.16545184-328.16545184L605.47860859 90.35593955l299.77622756 28.3892243 28.3892243 299.77622756-485.10232653 485.10232651zM715.88977778 201.31081482c-58.87560059 0-106.79940741 47.92380682-106.79940741 106.7994074s47.92380682 106.79940741 106.79940741 106.79940741S822.68918518 366.98582282 822.68918518 308.11022222 774.76537837 201.31081482 715.88977778 201.31081482z m0 145.63555555a38.83614815 38.83614815 0 0 1 0-77.67229629 38.83614815 38.83614815 0 0 1 0 77.67229629z",
    fill: (0, _helper.getIconColor)(color, 0, '#333333')
  }));
};

KqTag.defaultProps = {
  size: 18
};
var _default = KqTag;
exports.default = _default;