'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
var plasmaNewHope = require('@salutejs/plasma-new-hope');
var React = require('react');
var Carousel$1 = require('./Legacy/Carousel.js');
var Carousel_config = require('./Carousel.config.js');

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

var React__default = /*#__PURE__*/_interopDefault(React);

var mergedConfig = /*#__PURE__*/plasmaNewHope.mergeConfig(plasmaNewHope.carouselNewConfig, Carousel_config.config);
var CarouselNew = /*#__PURE__*/plasmaNewHope.component(mergedConfig);
var CarouselComponent = function CarouselComponent(props, ref) {
  if (typeof props.index === 'number') {
    return /*#__PURE__*/React__default.default.createElement(Carousel$1.CarouselOld, _rollupPluginBabelHelpers.extends({
      ref: ref
    }, props));
  }
  return /*#__PURE__*/React__default.default.createElement(CarouselNew, _rollupPluginBabelHelpers.extends({
    ref: ref
  }, props));
};
var Carousel = /*#__PURE__*/plasmaNewHope.fixedForwardRef(CarouselComponent);

exports.Carousel = Carousel;
//# sourceMappingURL=Carousel.js.map
