(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", "../Button", "./theme"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.StepPoint = exports.StepButton = exports.StepGalleryStyle = exports.StepProgressStyle = exports.MobileStepsWrapper = 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 Button_1 = (0, tslib_1.__importDefault)(require("../Button"));
    var theme_1 = require("./theme");
    exports.MobileStepsWrapper = styled_components_1.default.div(templateObject_3 || (templateObject_3 = (0, tslib_1.__makeTemplateObject)(["\n  ", "\n\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n"], ["\n  ", "\n\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n"])), function (_a) {
        var width = _a.width, type = _a.type;
        if (type === "gallery") {
            return (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = (0, tslib_1.__makeTemplateObject)(["\n        width: max-content;\n        gap: 32px;\n      "], ["\n        width: max-content;\n        gap: 32px;\n      "])));
        }
        return (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = (0, tslib_1.__makeTemplateObject)(["\n      width: ", ";\n      min-width: 320px;\n      gap: 20px;\n    "], ["\n      width: ", ";\n      min-width: 320px;\n      gap: 20px;\n    "])), width ? width : "100%");
    });
    exports.StepProgressStyle = styled_components_1.default.div(templateObject_4 || (templateObject_4 = (0, tslib_1.__makeTemplateObject)(["\n  width: 100%;\n  height: 4px;\n  border-radius: 8px;\n  position: relative;\n  background: #b8c9fc;\n  overflow: hidden;\n\n  .step-progress-bar {\n    width: 100%;\n    left: 0;\n    top: 0;\n    transform: ", ";\n    transform-origin: left;\n    background: #3365f6;\n    display: inherit;\n    height: 100%;\n    transition: transform 0.4s linear;\n  }\n"], ["\n  width: 100%;\n  height: 4px;\n  border-radius: 8px;\n  position: relative;\n  background: #b8c9fc;\n  overflow: hidden;\n\n  .step-progress-bar {\n    width: 100%;\n    left: 0;\n    top: 0;\n    transform: ", ";\n    transform-origin: left;\n    background: #3365f6;\n    display: inherit;\n    height: 100%;\n    transition: transform 0.4s linear;\n  }\n"])), function (_a) {
        var percent = _a.percent;
        return "translateX(" + -(100 - percent) + "%)";
    });
    exports.StepGalleryStyle = styled_components_1.default.div(templateObject_5 || (templateObject_5 = (0, tslib_1.__makeTemplateObject)(["\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  gap: 17px;\n"], ["\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  gap: 17px;\n"])));
    exports.StepButton = (0, styled_components_1.default)(Button_1.default)(templateObject_6 || (templateObject_6 = (0, tslib_1.__makeTemplateObject)(["\n  width: 32px;\n  height: 24px;\n"], ["\n  width: 32px;\n  height: 24px;\n"])));
    exports.StepPoint = styled_components_1.default.span.attrs(function (props) { return ({
        theme: (0, getTheme_1.getTheme)({
            theme: props.theme,
            componentName: "mobileSteps",
            defaultTheme: theme_1.defaultThemeMobileSteps
        })
    }); })(templateObject_7 || (templateObject_7 = (0, tslib_1.__makeTemplateObject)(["\n  background: ", ";\n  height: 8px;\n  transition: background-color 0.2s linear;\n  width: 8px;\n  border-radius: 50%;\n"], ["\n  background: ", ";\n  height: 8px;\n  transition: background-color 0.2s linear;\n  width: 8px;\n  border-radius: 50%;\n"])), function (_a) {
        var theme = _a.theme, isCurrent = _a.isCurrent;
        return isCurrent
            ? theme.components.mobileSteps.backgroundPointActive
            : theme.components.mobileSteps.backgroundPoint;
    });
    var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7;
});
