'use strict';

var _Object$keys = require('@babel/runtime-corejs3/core-js-stable/object/keys');
var _Object$getOwnPropertySymbols = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/filter');
var _Object$getOwnPropertyDescriptor = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor');
var _forEachInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/for-each');
var _Object$getOwnPropertyDescriptors = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors');
var _Object$defineProperties = require('@babel/runtime-corejs3/core-js-stable/object/define-properties');
var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/object/define-property');
var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
var _objectWithoutProperties = require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
var _pt = require('prop-types');
require('react');
var lottie = require('lottie-web');
var dist_commercetoolsDocsUiKit = require('./index-943e3b32.cjs.dev.js');
var lordIconElement = require('lord-icon-element');
var element = require('lord-icon-element/element');
var jsxRuntime = require('@emotion/react/jsx-runtime');
require('@babel/runtime-corejs3/helpers/slicedToArray');
require('@babel/runtime-corejs3/core-js-stable/parse-int');
require('@babel/runtime-corejs3/core-js-stable/instance/concat');
require('@babel/runtime-corejs3/core-js-stable/object/from-entries');
require('@babel/runtime-corejs3/core-js-stable/instance/map');
require('@babel/runtime-corejs3/core-js-stable/object/entries');
require('lodash.kebabcase');
require('@commercetools-uikit/design-system');
require('@emotion/styled/base');
require('@babel/runtime-corejs3/core-js-stable/instance/find');
require('@babel/runtime-corejs3/core-js-stable/array/is-array');
require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
require('react-is');
require('@emotion/react');
require('@commercetools-uikit/tooltip');
require('@commercetools-uikit/icons');
require('@commercetools-uikit/spacings-inline');
require('@babel/runtime-corejs3/core-js-stable/instance/trim');
require('@babel/runtime-corejs3/core-js-stable/array/from');
require('@babel/runtime-corejs3/core-js/instance/match-all');
require('@babel/runtime-corejs3/core-js-stable/instance/includes');
require('@babel/runtime-corejs3/core-js-stable/set-timeout');
require('@babel/runtime-corejs3/core-js-stable/instance/some');
require('react-dom');
require('prism-react-renderer');
require('@babel/runtime-corejs3/core-js-stable/promise');
require('@babel/runtime-corejs3/core-js-stable/instance/sort');
require('@babel/runtime-corejs3/core-js-stable/instance/flat');
require('swr');
require('@commercetools-uikit/loading-spinner');
require('@commercetools-uikit/utils');
require('@commercetools-uikit/accessible-button');
require('tiny-invariant');
require('unified');
require('unist-util-filter');
require('rehype-react');
require('remark-parse');
require('remark-frontmatter');
require('remark-rehype');
require('react-intl');
require('react-modal');
require('@commercetools-uikit/card');
require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
require('@commercetools-uikit/primary-button');
require('@commercetools-uikit/flat-button');
require('@commercetools-uikit/secondary-button');
require('@commercetools-uikit/spacings');
require('lodash.omitby');
require('@commercetools-uikit/secondary-icon-button');
require('@commercetools-uikit/text');
require('@react-hook/resize-observer');
require('@babel/runtime-corejs3/core-js-stable/map');
require('@babel/runtime-corejs3/core-js-stable/instance/index-of');
require('@babel/runtime-corejs3/core-js-stable/instance/splice');
require('@react-hook/latest');
require('raf-schd');
require('@babel/runtime-corejs3/helpers/classCallCheck');
require('@babel/runtime-corejs3/helpers/createClass');

function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }

var _Object$keys__default = /*#__PURE__*/_interopDefault(_Object$keys);
var _Object$getOwnPropertySymbols__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertySymbols);
var _filterInstanceProperty__default = /*#__PURE__*/_interopDefault(_filterInstanceProperty);
var _Object$getOwnPropertyDescriptor__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertyDescriptor);
var _forEachInstanceProperty__default = /*#__PURE__*/_interopDefault(_forEachInstanceProperty);
var _Object$getOwnPropertyDescriptors__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertyDescriptors);
var _Object$defineProperties__default = /*#__PURE__*/_interopDefault(_Object$defineProperties);
var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defineProperty);
var _pt__default = /*#__PURE__*/_interopDefault(_pt);
var lottie__default = /*#__PURE__*/_interopDefault(lottie);

const _excluded = ["iconName", "trigger", "delay", "target", "stroke", "height", "width"];
function ownKeys(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
element.Element.setIconLoader(dist_commercetoolsDocsUiKit.iconLoader);
lordIconElement.defineElement(lottie__default["default"].loadAnimation);
const LordIcon = props => {
  const iconName = props.iconName,
    trigger = props.trigger,
    delay = props.delay,
    target = props.target,
    stroke = props.stroke;
    props.height;
    props.width;
    const rest = _objectWithoutProperties(props, _excluded);
  const StaticSvgComponent = dist_commercetoolsDocsUiKit.getStaticSvgComponent(iconName);
  return jsxRuntime.jsx("lord-icon", _objectSpread(_objectSpread({
    icon: iconName,
    trigger: trigger,
    delay: delay,
    target: target,
    stroke: stroke
  }, rest), {}, {
    children: StaticSvgComponent && jsxRuntime.jsx(StaticSvgComponent, {})
  }));
};
LordIcon.propTypes = process.env.NODE_ENV !== "production" ? {
  iconName: _pt__default["default"].string.isRequired,
  delay: _pt__default["default"].number,
  height: _pt__default["default"].string,
  width: _pt__default["default"].string,
  stroke: _pt__default["default"].number,
  target: _pt__default["default"].string
} : {};

exports["default"] = LordIcon;
