import { __makeTemplateObject } from "tslib";
import styled, { css } from "styled-components";
import { getTheme } from "../utils/theme/getTheme";
import Button from "../Button";
import { defaultThemeMobileSteps } from "./theme";
export var MobileStepsWrapper = styled.div(templateObject_3 || (templateObject_3 = __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 css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n        width: max-content;\n        gap: 32px;\n      "], ["\n        width: max-content;\n        gap: 32px;\n      "])));
    }
    return css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n      width: ", ";\n      min-width: 320px;\n      gap: 20px;\n    "], ["\n      width: ", ";\n      min-width: 320px;\n      gap: 20px;\n    "])), width ? width : "100%");
});
export var StepProgressStyle = styled.div(templateObject_4 || (templateObject_4 = __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) + "%)";
});
export var StepGalleryStyle = styled.div(templateObject_5 || (templateObject_5 = __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"])));
export var StepButton = styled(Button)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n  width: 32px;\n  height: 24px;\n"], ["\n  width: 32px;\n  height: 24px;\n"])));
export var StepPoint = styled.span.attrs(function (props) { return ({
    theme: getTheme({
        theme: props.theme,
        componentName: "mobileSteps",
        defaultTheme: defaultThemeMobileSteps
    })
}); })(templateObject_7 || (templateObject_7 = __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;
