"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;
    }
});
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
const _emotion = require("@salutejs/plasma-new-hope/emotion");
const _HorizontalTabItemconfig = require("./horizontal/HorizontalTabItem.config");
const _HorizontalIconTabItemconfig = require("./horizontal/HorizontalIconTabItem.config");
const _VerticalTabItemconfig = require("./vertical/VerticalTabItem.config");
const _VerticalIconTabItemconfig = require("./vertical/VerticalIconTabItem.config");
function _interop_require_default(obj) {
    return obj && obj.__esModule ? obj : {
        default: obj
    };
}
const mergedHorizontalTabItemConfig = (0, _emotion.mergeConfig)(_emotion.horizontalTabItemConfig, _HorizontalTabItemconfig.config);
const HorizontalTabItem = (0, _emotion.component)(mergedHorizontalTabItemConfig);
const mergedHorizontalIconTabItemConfig = (0, _emotion.mergeConfig)(_emotion.horizontalIconTabItemConfig, _HorizontalIconTabItemconfig.config);
const HorizontalIconTabItem = (0, _emotion.component)(mergedHorizontalIconTabItemConfig);
const mergedVerticalTabItemConfig = (0, _emotion.mergeConfig)(_emotion.verticalTabItemConfig, _VerticalTabItemconfig.config);
const VerticalTabItem = (0, _emotion.component)(mergedVerticalTabItemConfig);
const mergedVerticalIconTabItemConfig = (0, _emotion.mergeConfig)(_emotion.verticalIconTabItemConfig, _VerticalIconTabItemconfig.config);
const VerticalIconTabItem = (0, _emotion.component)(mergedVerticalIconTabItemConfig);
const TabItem = (0, _emotion.fixedForwardRef)((props, ref)=>{
    if (props.orientation === 'vertical') {
        return /*#__PURE__*/ _react.default.createElement(VerticalTabItem, {
            ref: ref,
            ...props
        });
    }
    return /*#__PURE__*/ _react.default.createElement(HorizontalTabItem, {
        ref: ref,
        ...props
    });
});
const IconTabItem = (0, _emotion.fixedForwardRef)((props, ref)=>{
    if (props.orientation === 'vertical') {
        return /*#__PURE__*/ _react.default.createElement(VerticalIconTabItem, {
            ref: ref,
            ...props
        });
    }
    return /*#__PURE__*/ _react.default.createElement(HorizontalIconTabItem, {
        ref: ref,
        ...props
    });
});
