text: export default function keyframesPlugin(_ref // eslint-disable-line no-shadow
  ) {
    var addCSS = _ref.addCSS,
        config = _ref.config,
        style = _ref.style;
  
    var processKeyframeStyle = function processKeyframeStyle(value) {
      var keyframesValue = value;
  
      var _keyframesValue$__pro = keyframesValue.__process(config.userAgent),
          animationName = _keyframesValue$__pro.animationName,
          css = _keyframesValue$__pro.css;
  
      addCSS(css);
      return animationName;
    };
  
    var newStyle = Object.keys(style).reduce(function (newStyleInProgress, key) {
      var value = style[key];
      var isKeyframeArray = Array.isArray(value);
  
      if (key === 'animationName' && value && (value.__radiumKeyframes || isKeyframeArray)) {
        if (isKeyframeArray) {
          value = value.map(processKeyframeStyle).join(', ');
        } else {
          value = processKeyframeStyle(value);
        }
      }
  
      newStyleInProgress[key] = value;
      return newStyleInProgress;
    }, {});
    return { style: newStyle };
  }