import _Object$keys from '@babel/runtime-corejs3/core-js-stable/object/keys';
import _Object$getOwnPropertySymbols from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
import _filterInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/filter';
import _Object$getOwnPropertyDescriptor from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor';
import _forEachInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/for-each';
import _Object$getOwnPropertyDescriptors from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors';
import _Object$defineProperties from '@babel/runtime-corejs3/core-js-stable/object/define-properties';
import _Object$defineProperty from '@babel/runtime-corejs3/core-js-stable/object/define-property';
import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/esm/objectWithoutProperties';
import _pt from 'prop-types';
import 'react';
import lottie from 'lottie-web';
import { i as iconLoader, g as getStaticSvgComponent } from './index-9b293272.esm.js';
import { defineElement } from 'lord-icon-element';
import { Element } from 'lord-icon-element/element';
import { jsx } from '@emotion/react/jsx-runtime';
import '@babel/runtime-corejs3/helpers/slicedToArray';
import '@babel/runtime-corejs3/core-js-stable/parse-int';
import '@babel/runtime-corejs3/core-js-stable/instance/concat';
import '@babel/runtime-corejs3/core-js-stable/object/from-entries';
import '@babel/runtime-corejs3/core-js-stable/instance/map';
import '@babel/runtime-corejs3/core-js-stable/object/entries';
import 'lodash.kebabcase';
import '@commercetools-uikit/design-system';
import '@emotion/styled/base';
import '@babel/runtime-corejs3/core-js-stable/instance/find';
import '@babel/runtime-corejs3/core-js-stable/array/is-array';
import '@babel/runtime-corejs3/core-js-stable/instance/reduce';
import 'react-is';
import '@emotion/react';
import '@commercetools-uikit/tooltip';
import '@commercetools-uikit/icons';
import '@commercetools-uikit/spacings-inline';
import '@babel/runtime-corejs3/core-js-stable/instance/trim';
import '@babel/runtime-corejs3/core-js-stable/array/from';
import '@babel/runtime-corejs3/core-js/instance/match-all';
import '@babel/runtime-corejs3/core-js-stable/instance/includes';
import '@babel/runtime-corejs3/core-js-stable/set-timeout';
import '@babel/runtime-corejs3/core-js-stable/instance/some';
import 'react-dom';
import 'prism-react-renderer';
import '@babel/runtime-corejs3/core-js-stable/url-search-params';
import 'swr';
import '@commercetools-uikit/loading-spinner';
import '@babel/runtime-corejs3/core-js-stable/instance/find-index';
import '@commercetools-uikit/utils';
import '@commercetools-uikit/accessible-button';
import 'tiny-invariant';
import 'unified';
import 'unist-util-filter';
import 'rehype-react';
import 'remark-parse';
import 'remark-frontmatter';
import 'remark-rehype';
import 'react-intl';
import 'react-modal';
import '@commercetools-uikit/card';
import '@babel/runtime-corejs3/core-js-stable/instance/starts-with';
import '@commercetools-uikit/primary-button';
import '@commercetools-uikit/flat-button';
import '@commercetools-uikit/secondary-button';
import '@commercetools-uikit/spacings';
import 'lodash.omitby';
import '@commercetools-uikit/secondary-icon-button';
import '@commercetools-uikit/text';
import '@react-hook/resize-observer';
import '@babel/runtime-corejs3/core-js-stable/map';
import '@babel/runtime-corejs3/core-js-stable/instance/index-of';
import '@babel/runtime-corejs3/core-js-stable/instance/splice';
import '@react-hook/latest';
import 'raf-schd';
import '@babel/runtime-corejs3/helpers/classCallCheck';
import '@babel/runtime-corejs3/helpers/createClass';

const _excluded = ["iconName", "trigger", "delay", "target", "stroke", "height", "width"];
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(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(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
Element.setIconLoader(iconLoader);
defineElement(lottie.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 = getStaticSvgComponent(iconName);
  return jsx("lord-icon", _objectSpread(_objectSpread({
    icon: iconName,
    trigger: trigger,
    delay: delay,
    target: target,
    stroke: stroke
  }, rest), {}, {
    children: StaticSvgComponent && jsx(StaticSvgComponent, {})
  }));
};
LordIcon.propTypes = process.env.NODE_ENV !== "production" ? {
  iconName: _pt.string.isRequired,
  delay: _pt.number,
  height: _pt.string,
  width: _pt.string,
  stroke: _pt.number,
  target: _pt.string
} : {};

export { LordIcon as default };
