'use strict';

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

var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
var React = require('react');
var plasmaNewHope = require('@salutejs/plasma-new-hope');
var HorizontalTabItem_config = require('./horizontal/HorizontalTabItem.config.js');
var HorizontalIconTabItem_config = require('./horizontal/HorizontalIconTabItem.config.js');
var VerticalTabItem_config = require('./vertical/VerticalTabItem.config.js');
var VerticalIconTabItem_config = require('./vertical/VerticalIconTabItem.config.js');

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

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

var mergedHorizontalTabItemConfig = /*#__PURE__*/plasmaNewHope.mergeConfig(plasmaNewHope.horizontalTabItemConfig, HorizontalTabItem_config.config);
var HorizontalTabItem = /*#__PURE__*/plasmaNewHope.component(mergedHorizontalTabItemConfig);
var mergedHorizontalIconTabItemConfig = /*#__PURE__*/plasmaNewHope.mergeConfig(plasmaNewHope.horizontalIconTabItemConfig, HorizontalIconTabItem_config.config);
var HorizontalIconTabItem = /*#__PURE__*/plasmaNewHope.component(mergedHorizontalIconTabItemConfig);
var mergedVerticalTabItemConfig = /*#__PURE__*/plasmaNewHope.mergeConfig(plasmaNewHope.verticalTabItemConfig, VerticalTabItem_config.config);
var VerticalTabItem = /*#__PURE__*/plasmaNewHope.component(mergedVerticalTabItemConfig);
var mergedVerticalIconTabItemConfig = /*#__PURE__*/plasmaNewHope.mergeConfig(plasmaNewHope.verticalIconTabItemConfig, VerticalIconTabItem_config.config);
var VerticalIconTabItem = /*#__PURE__*/plasmaNewHope.component(mergedVerticalIconTabItemConfig);
/**
 * Элемент списка, недопустимо использовать вне компонента Tabs.
 */
var TabItem = /*#__PURE__*/plasmaNewHope.fixedForwardRef(function (props, ref) {
  if (props.orientation === 'vertical') {
    return /*#__PURE__*/React__default.default.createElement(VerticalTabItem, _rollupPluginBabelHelpers.extends({
      ref: ref
    }, props));
  }
  return /*#__PURE__*/React__default.default.createElement(HorizontalTabItem, _rollupPluginBabelHelpers.extends({
    ref: ref
  }, props));
});
var IconTabItem = /*#__PURE__*/plasmaNewHope.fixedForwardRef(function (props, ref) {
  if (props.orientation === 'vertical') {
    return /*#__PURE__*/React__default.default.createElement(VerticalIconTabItem, _rollupPluginBabelHelpers.extends({
      ref: ref
    }, props));
  }
  return /*#__PURE__*/React__default.default.createElement(HorizontalIconTabItem, _rollupPluginBabelHelpers.extends({
    ref: ref
  }, props));
});

exports.IconTabItem = IconTabItem;
exports.TabItem = TabItem;
//# sourceMappingURL=TabItem.js.map
