"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
function _export(target, all) {
    for(var name in all)Object.defineProperty(target, name, {
        enumerable: true,
        get: Object.getOwnPropertyDescriptor(all, name).get
    });
}
_export(exports, {
    get IconTabItem () {
        return IconTabItem;
    },
    get TabItem () {
        return TabItem;
    }
});
var _react = /*#__PURE__*/ _interop_require_default(require("react"));
var _styledcomponents = require("@salutejs/plasma-new-hope/styled-components");
var _HorizontalTabItemconfig = require("./horizontal/HorizontalTabItem.config");
var _HorizontalIconTabItemconfig = require("./horizontal/HorizontalIconTabItem.config");
var _VerticalTabItemconfig = require("./vertical/VerticalTabItem.config");
var _VerticalIconTabItemconfig = require("./vertical/VerticalIconTabItem.config");
function _define_property(obj, key, value) {
    if (key in obj) {
        Object.defineProperty(obj, key, {
            value: value,
            enumerable: true,
            configurable: true,
            writable: true
        });
    } else {
        obj[key] = value;
    }
    return obj;
}
function _interop_require_default(obj) {
    return obj && obj.__esModule ? obj : {
        default: obj
    };
}
function _object_spread(target) {
    for(var i = 1; i < arguments.length; i++){
        var source = arguments[i] != null ? arguments[i] : {};
        var ownKeys = Object.keys(source);
        if (typeof Object.getOwnPropertySymbols === "function") {
            ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
                return Object.getOwnPropertyDescriptor(source, sym).enumerable;
            }));
        }
        ownKeys.forEach(function(key) {
            _define_property(target, key, source[key]);
        });
    }
    return target;
}
var mergedHorizontalTabItemConfig = (0, _styledcomponents.mergeConfig)(_styledcomponents.horizontalTabItemConfig, _HorizontalTabItemconfig.config);
var HorizontalTabItem = (0, _styledcomponents.component)(mergedHorizontalTabItemConfig);
var mergedHorizontalIconTabItemConfig = (0, _styledcomponents.mergeConfig)(_styledcomponents.horizontalIconTabItemConfig, _HorizontalIconTabItemconfig.config);
var HorizontalIconTabItem = (0, _styledcomponents.component)(mergedHorizontalIconTabItemConfig);
var mergedVerticalTabItemConfig = (0, _styledcomponents.mergeConfig)(_styledcomponents.verticalTabItemConfig, _VerticalTabItemconfig.config);
var VerticalTabItem = (0, _styledcomponents.component)(mergedVerticalTabItemConfig);
var mergedVerticalIconTabItemConfig = (0, _styledcomponents.mergeConfig)(_styledcomponents.verticalIconTabItemConfig, _VerticalIconTabItemconfig.config);
var VerticalIconTabItem = (0, _styledcomponents.component)(mergedVerticalIconTabItemConfig);
var TabItem = (0, _styledcomponents.fixedForwardRef)(function(props, ref) {
    if (props.orientation === 'vertical') {
        return /*#__PURE__*/ _react.default.createElement(VerticalTabItem, _object_spread({
            ref: ref
        }, props));
    }
    return /*#__PURE__*/ _react.default.createElement(HorizontalTabItem, _object_spread({
        ref: ref
    }, props));
});
var IconTabItem = (0, _styledcomponents.fixedForwardRef)(function(props, ref) {
    if (props.orientation === 'vertical') {
        return /*#__PURE__*/ _react.default.createElement(VerticalIconTabItem, _object_spread({
            ref: ref
        }, props));
    }
    return /*#__PURE__*/ _react.default.createElement(HorizontalIconTabItem, _object_spread({
        ref: ref
    }, props));
});
