(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", "../Pallette/themes", "../utils/theme/getTheme", "./themes"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.Filler = exports.ProgressBarStyle = exports.ProgressBarBase = void 0;
    var tslib_1 = require("tslib");
    var styled_components_1 = (0, tslib_1.__importStar)(require("styled-components"));
    var themes_1 = require("../Pallette/themes");
    var getTheme_1 = require("../utils/theme/getTheme");
    var themes_2 = require("./themes");
    exports.ProgressBarBase = styled_components_1.default.div.attrs(function (props) { return ({
        theme: (0, getTheme_1.getTheme)({
            theme: props.theme,
            defaultTheme: themes_2.defaultThemeProgressBar,
            componentName: "progressBar"
        })
    }); })(templateObject_2 || (templateObject_2 = (0, tslib_1.__makeTemplateObject)(["\n  width: 100%;\n  ", "\n"], ["\n  width: 100%;\n  ", "\n"])), function (_a) {
        var theme = _a.theme, variant = _a.variant;
        return (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = (0, tslib_1.__makeTemplateObject)(["\n    .background {\n      background: ", ";\n    }\n    .filler {\n      background: ", ";\n    }\n    .progress-text {\n      color: ", ";\n      padding-right: 4px;\n      display: flex;\n      align-items: center;\n      justify-content: end;\n      flex: 0 0 44px;\n    }\n  "], ["\n    .background {\n      background: ", ";\n    }\n    .filler {\n      background: ", ";\n    }\n    .progress-text {\n      color: ", ";\n      padding-right: 4px;\n      display: flex;\n      align-items: center;\n      justify-content: end;\n      flex: 0 0 44px;\n    }\n  "])), theme.components.progressBar["background" + (variant.charAt(0).toUpperCase() + variant.slice(1))], theme.components.progressBar["backgroundFilter" + (variant.charAt(0).toUpperCase() + variant.slice(1))], theme.components.progressBar.colorProgress);
    });
    exports.ProgressBarBase.defaultProps = {
        theme: themes_1.LIGHT_THEME
    };
    exports.ProgressBarStyle = styled_components_1.default.div(templateObject_3 || (templateObject_3 = (0, tslib_1.__makeTemplateObject)(["\n  width: 100%;\n  display: flex;\n  flex-direction: row;\n  justify-content: space-between;\n  gap: 8px;\n  padding: 0;\n  height: ", "px;\n\n  .background {\n    border-radius: 8px;\n    overflow: hidden;\n    display: flex;\n    flex-direction: row;\n    flex: 1;\n  }\n"], ["\n  width: 100%;\n  display: flex;\n  flex-direction: row;\n  justify-content: space-between;\n  gap: 8px;\n  padding: 0;\n  height: ", "px;\n\n  .background {\n    border-radius: 8px;\n    overflow: hidden;\n    display: flex;\n    flex-direction: row;\n    flex: 1;\n  }\n"])), function (_a) {
        var size = _a.size;
        return (size === "m" ? 16 : 8);
    });
    exports.Filler = styled_components_1.default.div(templateObject_4 || (templateObject_4 = (0, tslib_1.__makeTemplateObject)(["\n  width: ", "%;\n  transition: all 0.2s linear;\n  height: 100%;\n"], ["\n  width: ", "%;\n  transition: all 0.2s linear;\n  height: 100%;\n"])), function (_a) {
        var progress = _a.progress;
        return progress;
    });
    var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
});
