"use strict";

require("core-js/modules/es.array.iterator.js");
require("core-js/modules/es.object.define-property.js");
require("core-js/modules/es.object.get-own-property-descriptor.js");
require("core-js/modules/es.object.to-string.js");
require("core-js/modules/es.string.iterator.js");
require("core-js/modules/es.weak-map.js");
require("core-js/modules/esnext.weak-map.delete-all.js");
require("core-js/modules/esnext.weak-map.emplace.js");
require("core-js/modules/web.dom-collections.iterator.js");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _typeof = require("@babel/runtime/helpers/typeof");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.FcrIconAnimation = void 0;
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
require("./index.css");
var _classnames = _interopRequireDefault(require("classnames"));
var animationExports = _interopRequireWildcard(require("./animation-exports"));
var _jsxRuntime = require("react/jsx-runtime");
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
var getAnimation = function getAnimation(name) {
  var animation = animationExports[name];
  return {
    segment: animation.segment(),
    animationClassName: animation.animationClassName
  };
};
var FcrIconAnimation = exports.FcrIconAnimation = function FcrIconAnimation(props) {
  var type = props.type,
    style = props.style,
    className = props.className,
    paused = props.paused,
    stop = props.stop;
  var animation = getAnimation(type);
  var segment = animation.segment,
    animationClassName = animation.animationClassName;
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
    className: (0, _classnames["default"])('fcr-icon-animation', animationClassName, className, (0, _defineProperty2["default"])((0, _defineProperty2["default"])({}, "".concat(animationClassName, "-paused"), paused), "".concat(animationClassName, "-stop"), stop)),
    style: style,
    children: segment
  });
};