(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define(["require", "exports", "tslib", "styled-components", "../../../typography/P1", "../../../typography/P2", "../../../Pallette/style-utils", "../../../Pallette/themes", "../../theme", "../../../utils/theme/getTheme"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.TabContentS = exports.TabContent = exports.TabStyled = void 0;
    var tslib_1 = require("tslib");
    var styled_components_1 = (0, tslib_1.__importStar)(require("styled-components"));
    var P1_1 = (0, tslib_1.__importDefault)(require("../../../typography/P1"));
    var P2_1 = (0, tslib_1.__importDefault)(require("../../../typography/P2"));
    var style_utils_1 = require("../../../Pallette/style-utils");
    var themes_1 = require("../../../Pallette/themes");
    var theme_1 = require("../../theme");
    var getTheme_1 = require("../../../utils/theme/getTheme");
    var COMPONENT_NAME = "tab";
    exports.TabStyled = styled_components_1.default.button.attrs(function (props) { return ({
        theme: (0, getTheme_1.getTheme)({
            theme: props.theme,
            componentName: COMPONENT_NAME,
            defaultTheme: theme_1.defaultThemeTabs
        })
    }); })(templateObject_5 || (templateObject_5 = (0, tslib_1.__makeTemplateObject)(["\n  border: none;\n  background: none;\n  cursor: pointer;\n  display: flex;\n  border-radius: 16px;\n  align-items: center;\n  gap: 4px;\n  position: relative;\n\n  ", "\n\n  ", "\n  \n  .tab__icon {\n    color: unset;\n  }\n"], ["\n  border: none;\n  background: none;\n  cursor: pointer;\n  display: flex;\n  border-radius: 16px;\n  align-items: center;\n  gap: 4px;\n  position: relative;\n\n  ", "\n\n  ", "\n  \n  .tab__icon {\n    color: unset;\n  }\n"])), function (_a) {
        var _b = _a.size, size = _b === void 0 ? "l" : _b;
        switch (size) {
            case "l":
                return (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = (0, tslib_1.__makeTemplateObject)(["\n          padding: 4px 12px 4px 12px;\n        "], ["\n          padding: 4px 12px 4px 12px;\n        "])));
            case "m":
                return (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = (0, tslib_1.__makeTemplateObject)(["\n          padding: 4px 12px 4px 12px;\n          height: 24px;\n          border-radius: 8px;\n        "], ["\n          padding: 4px 12px 4px 12px;\n          height: 24px;\n          border-radius: 8px;\n        "])));
        }
        return "";
    }, function (_a) {
        var theme = _a.theme, isDisabled = _a.isDisabled;
        if (isDisabled) {
            return (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = (0, tslib_1.__makeTemplateObject)(["\n        cursor: not-allowed;\n        margin: 0;\n        color: ", ";\n        background: none;\n      "], ["\n        cursor: not-allowed;\n        margin: 0;\n        color: ", ";\n        background: none;\n      "])), theme.components[COMPONENT_NAME].colorDisabled);
        }
        return (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = (0, tslib_1.__makeTemplateObject)(["\n      color: ", ";\n\n      &:hover:enabled {\n        transition: all 0.1s;\n        color: ", ";\n        background: ", ";\n        box-shadow: none;\n      }\n    "], ["\n      color: ", ";\n\n      &:hover:enabled {\n        transition: all 0.1s;\n        color: ", ";\n        background: ", ";\n        box-shadow: none;\n      }\n    "])), theme.components[COMPONENT_NAME].colorDefault, theme.components[COMPONENT_NAME].colorHover, theme.components[COMPONENT_NAME].backgroundHover);
    });
    exports.TabStyled.defaultProps = {
        theme: themes_1.LIGHT_THEME
    };
    exports.TabContent = (0, styled_components_1.default)(P1_1.default)(templateObject_6 || (templateObject_6 = (0, tslib_1.__makeTemplateObject)(["\n  ", "\n"], ["\n  ", "\n"])), style_utils_1.Padding.allSide(1));
    exports.TabContentS = (0, styled_components_1.default)(P2_1.default)(templateObject_7 || (templateObject_7 = (0, tslib_1.__makeTemplateObject)(["\n  ", "\n"], ["\n  ", "\n"])), style_utils_1.Padding.allSide(1));
    var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7;
});
