(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", "../utils/theme/getTheme", "../Pallette/themes", "./theme"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.ClusterStyled = void 0;
    var tslib_1 = require("tslib");
    var styled_components_1 = (0, tslib_1.__importStar)(require("styled-components"));
    var getTheme_1 = require("../utils/theme/getTheme");
    var themes_1 = require("../Pallette/themes");
    var theme_1 = require("./theme");
    var COMPONENT_NAME = "cluster";
    exports.ClusterStyled = styled_components_1.default.div.attrs(function (props) { return ({
        theme: (0, getTheme_1.getTheme)({
            theme: props.theme,
            defaultTheme: theme_1.defaultThemeCluster,
            componentName: COMPONENT_NAME
        })
    }); })(templateObject_5 || (templateObject_5 = (0, tslib_1.__makeTemplateObject)(["\n  position: relative;\n  border-radius: 8px 8px 8px 0;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  height: 40px;\n  width: 45px;\n  flex-direction: column;\n  padding: 4px;\n  user-select: none;\n\n  ", "\n\n  &:hover {\n    ", "\n  }\n"], ["\n  position: relative;\n  border-radius: 8px 8px 8px 0;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  height: 40px;\n  width: 45px;\n  flex-direction: column;\n  padding: 4px;\n  user-select: none;\n\n  ", "\n\n  &:hover {\n    ", "\n  }\n"])), function (_a) {
        var isDisabled = _a.isDisabled, theme = _a.theme, isPressed = _a.isPressed;
        if (isDisabled) {
            return (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = (0, tslib_1.__makeTemplateObject)(["\n        pointer-events: none;\n        background: ", ";\n        color: ", ";\n      "], ["\n        pointer-events: none;\n        background: ", ";\n        color: ", ";\n      "])), theme.components.cluster.backgroundDisabled, theme.components.cluster.colorDisabled);
        }
        else if (isPressed) {
            return (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = (0, tslib_1.__makeTemplateObject)(["\n        background: ", ";\n        color: ", ";\n      "], ["\n        background: ", ";\n        color: ", ";\n      "])), theme.components.cluster.backgroundPressed, theme.components.cluster.colorPressed);
        }
        return (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = (0, tslib_1.__makeTemplateObject)(["\n      background: ", ";\n      color: ", ";\n    "], ["\n      background: ", ";\n      color: ", ";\n    "])), theme.components.cluster.backgroundDefault, theme.components.cluster.colorDefault);
    }, function (_a) {
        var theme = _a.theme, isDisabled = _a.isDisabled;
        return !isDisabled && (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = (0, tslib_1.__makeTemplateObject)(["\n        background: ", ";\n        color: ", ";\n        cursor: pointer;\n      "], ["\n        background: ", ";\n        color: ", ";\n        cursor: pointer;\n      "])), theme.components.cluster.backgroundHover, theme.components.cluster.colorHover);
    });
    exports.ClusterStyled.defaultProps = {
        theme: themes_1.LIGHT_THEME
    };
    var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
});
