"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); 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 = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : 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 Notice = function Notice(_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: "M641.770667 222.101333V768.213333c0 43.626667-53.866667 64.789333-84.053334 33.024l-140.309333-149.418666-12.074667-0.021334V746.666667a64 64 0 0 1-64 64h-64a64 64 0 0 1-64-64v-94.890667H182.058667a64 64 0 0 1-64-64v-192.362667a64 64 0 0 1 60.224-63.893333l4.608-0.106667 236.672 3.114667 138.176-145.450667c30.165333-31.786667 84.053333-10.602667 84.053333 33.024z m127.68 12.309334c92.544 47.082667 158.229333 139.392 167.957333 247.829333v56.021333c-9.450667 105.472-71.850667 195.690667-160.426667 243.882667L747.456 725.333333A245.269333 245.269333 0 0 0 874.666667 510.250667a245.333333 245.333333 0 0 0-134.698667-219.029334l29.482667-56.810666z m-191.68 26.496l-131.072 137.984-264.64-3.477334v192.384l95.253333-0.042666L277.333333 746.666667h64v-158.976l103.786667 0.128 132.650667 141.248V260.906667z m137.770666 77.418666a191.466667 191.466667 0 0 1 94.442667 165.418667 191.466667 191.466667 0 0 1-92.416 164.202667l-29.653333-56.96a127.488 127.488 0 0 0 58.069333-107.242667 127.488 127.488 0 0 0-60.010667-108.501333l29.568-56.917334z",
    fill: (0, _helper.getIconColor)(color, 0, '#333333')
  }));
};

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