"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "config", {
    enumerable: true,
    get: function() {
        return config;
    }
});
const _styledcomponents = require("@salutejs/plasma-new-hope/styled-components");
const _sdds_serv = require("@salutejs/sdds-themes/tokens/sdds_serv");
const baseItemView = `
    ${_styledcomponents.stepsTokens.activeTitleColor}: ${_sdds_serv.textPrimary};
    ${_styledcomponents.stepsTokens.activeTitleColorHover}: ${_sdds_serv.textPrimaryHover};
    ${_styledcomponents.stepsTokens.activeIndicatorBorder}: solid ${_sdds_serv.surfaceSolidDefault};
    ${_styledcomponents.stepsTokens.activeIndicatorColor}: ${_sdds_serv.textPrimary};
    ${_styledcomponents.stepsTokens.activeIndicatorBackground}: ${_sdds_serv.surfaceClear};
    
    ${_styledcomponents.stepsTokens.completedIndicatorColor}: ${_sdds_serv.inverseTextPrimary};
    ${_styledcomponents.stepsTokens.completedIndicatorColorHover}: ${_sdds_serv.inverseTextPrimary};
    ${_styledcomponents.stepsTokens.completedIndicatorBackground}: ${_sdds_serv.surfaceSolidDefault};
    ${_styledcomponents.stepsTokens.completedIndicatorBackgroundHover}: ${_sdds_serv.surfaceSolidDefaultHover};
    ${_styledcomponents.stepsTokens.completedTitleColor}: ${_sdds_serv.textPrimary};
    ${_styledcomponents.stepsTokens.completedTitleColorHover}: ${_sdds_serv.textPrimaryHover};

    ${_styledcomponents.stepsTokens.inactiveTitleColor}: ${_sdds_serv.textSecondary};
    ${_styledcomponents.stepsTokens.inactiveTitleColorHover}: ${_sdds_serv.textSecondaryHover};
    ${_styledcomponents.stepsTokens.inactiveIndicatorColor}: ${_sdds_serv.textSecondary};
    ${_styledcomponents.stepsTokens.inactiveIndicatorColorHover}: ${_sdds_serv.textSecondary};
    ${_styledcomponents.stepsTokens.inactiveIndicatorBackground}: ${_sdds_serv.surfaceTransparentSecondary};
    ${_styledcomponents.stepsTokens.inactiveIndicatorBackgroundHover}: ${_sdds_serv.surfaceTransparentSecondaryHover};

    ${_styledcomponents.stepsTokens.contentColor}: ${_sdds_serv.textSecondary};
    ${_styledcomponents.stepsTokens.focusColor}: ${_sdds_serv.surfaceAccent};

    ${_styledcomponents.stepsTokens.disabledOpacity}: 0.4;
`;
const accentConfig = `
    ${_styledcomponents.stepsTokens.completedTitleColor}: ${_sdds_serv.textPrimary};
    ${_styledcomponents.stepsTokens.completedTitleColorHover}: ${_sdds_serv.textPrimaryHover};
    
    ${_styledcomponents.stepsTokens.completedIndicatorBackground}: ${_sdds_serv.surfaceAccent};
    ${_styledcomponents.stepsTokens.completedIndicatorBackgroundHover}: ${_sdds_serv.surfaceAccentHover};
    
    // Цвет контента внутри элемента Step
    ${_styledcomponents.stepsTokens.completedIndicatorColor}: ${_sdds_serv.onDarkTextPrimary};
    ${_styledcomponents.stepsTokens.completedIndicatorColorHover}: ${_sdds_serv.onDarkTextPrimaryHover};
`;
const config = {
    defaults: {
        size: 'm',
        view: 'default'
    },
    variations: {
        view: {
            default: (0, _styledcomponents.css)`
                ${_styledcomponents.stepsTokens.dividerColor}: ${_sdds_serv.surfaceSolidDefault};
            `,
            accent: (0, _styledcomponents.css)`
                ${_styledcomponents.stepsTokens.dividerColor}: ${_sdds_serv.surfaceAccent};
            `
        },
        itemView: {
            default: (0, _styledcomponents.css)`
                ${baseItemView};
            `,
            negative: (0, _styledcomponents.css)`
                ${baseItemView};

                ${_styledcomponents.stepsTokens.activeTitleColor}: ${_sdds_serv.surfaceNegative};
                ${_styledcomponents.stepsTokens.activeTitleColorHover}: ${_sdds_serv.surfaceNegativeHover};
                ${_styledcomponents.stepsTokens.activeIndicatorBorder}: solid ${_sdds_serv.surfaceNegative};
                ${_styledcomponents.stepsTokens.activeIndicatorColor}: ${_sdds_serv.textNegative};
            `,
            warning: (0, _styledcomponents.css)`
                ${baseItemView};

                ${_styledcomponents.stepsTokens.activeTitleColor}: ${_sdds_serv.surfaceWarning};
                ${_styledcomponents.stepsTokens.activeTitleColorHover}: ${_sdds_serv.surfaceWarningHover};
                ${_styledcomponents.stepsTokens.activeIndicatorBorder}: solid ${_sdds_serv.surfaceWarning};
                ${_styledcomponents.stepsTokens.activeIndicatorColor}: ${_sdds_serv.textWarning};
            `,
            positive: (0, _styledcomponents.css)`
                ${baseItemView};

                ${_styledcomponents.stepsTokens.activeTitleColor}: ${_sdds_serv.surfacePositive};
                ${_styledcomponents.stepsTokens.activeTitleColorHover}: ${_sdds_serv.surfacePositiveHover};
                ${_styledcomponents.stepsTokens.activeIndicatorBorder}: solid ${_sdds_serv.surfacePositive};
                ${_styledcomponents.stepsTokens.activeIndicatorColor}: ${_sdds_serv.textPositive};
            `
        },
        size: {
            l: (0, _styledcomponents.css)`
                ${_styledcomponents.stepsTokens.indicatorSize}: 1.5rem;
                ${_styledcomponents.stepsTokens.activeIndicatorSize}: 2.25rem;
                ${_styledcomponents.stepsTokens.bulletSize}: 0.5rem;
                ${_styledcomponents.stepsTokens.activeBulletSize}: 1rem;

                ${_styledcomponents.stepsTokens.titlePaddingTop}: 0.75rem;
                ${_styledcomponents.stepsTokens.contentPaddingTop}: 0.375rem;
                ${_styledcomponents.stepsTokens.contentSidePadding}: 2rem;
                ${_styledcomponents.stepsTokens.contentVerticalPadding}: 1.0625rem;
                ${_styledcomponents.stepsTokens.verticalContentPaddingLeft}: 0.75rem;

                ${_styledcomponents.stepsTokens.indicatorFontFamily}: ${_sdds_serv.bodyXS.fontFamily};
                ${_styledcomponents.stepsTokens.indicatorFontSize}: ${_sdds_serv.bodyXS.fontSize};
                ${_styledcomponents.stepsTokens.indicatorFontStyle}: ${_sdds_serv.bodyXS.fontStyle};
                ${_styledcomponents.stepsTokens.indicatorFontWeight}: ${_sdds_serv.bodyXS.fontWeight};
                ${_styledcomponents.stepsTokens.indicatorLetterSpacing}: ${_sdds_serv.bodyXS.letterSpacing};
                ${_styledcomponents.stepsTokens.indicatorLineHeight}: ${_sdds_serv.bodyXS.lineHeight};

                ${_styledcomponents.stepsTokens.activeIndicatorFontFamily}: ${_sdds_serv.bodyS.fontFamily};
                ${_styledcomponents.stepsTokens.activeIndicatorFontSize}: ${_sdds_serv.bodyS.fontSize};
                ${_styledcomponents.stepsTokens.activeIndicatorFontStyle}: ${_sdds_serv.bodyS.fontStyle};
                ${_styledcomponents.stepsTokens.activeIndicatorFontWeight}: ${_sdds_serv.bodyS.fontWeight};
                ${_styledcomponents.stepsTokens.activeIndicatorLetterSpacing}: ${_sdds_serv.bodyS.letterSpacing};
                ${_styledcomponents.stepsTokens.activeIndicatorLineHeight}: ${_sdds_serv.bodyS.lineHeight};

                ${_styledcomponents.stepsTokens.titleFontFamily}: ${_sdds_serv.bodyL.fontFamily};
                ${_styledcomponents.stepsTokens.titleFontSize}: ${_sdds_serv.bodyL.fontSize};
                ${_styledcomponents.stepsTokens.titleFontStyle}: ${_sdds_serv.bodyL.fontStyle};
                ${_styledcomponents.stepsTokens.titleFontWeight}: ${_sdds_serv.bodyL.fontWeight};
                ${_styledcomponents.stepsTokens.titleLetterSpacing}: ${_sdds_serv.bodyL.letterSpacing};
                ${_styledcomponents.stepsTokens.titleLineHeight}: ${_sdds_serv.bodyL.lineHeight};

                ${_styledcomponents.stepsTokens.contentFontFamily}: ${_sdds_serv.bodyM.fontFamily};
                ${_styledcomponents.stepsTokens.contentFontSize}: ${_sdds_serv.bodyM.fontSize};
                ${_styledcomponents.stepsTokens.contentFontStyle}: ${_sdds_serv.bodyM.fontStyle};
                ${_styledcomponents.stepsTokens.contentFontWeight}: ${_sdds_serv.bodyM.fontWeight};
                ${_styledcomponents.stepsTokens.contentLetterSpacing}: ${_sdds_serv.bodyM.letterSpacing};
                ${_styledcomponents.stepsTokens.contentLineHeight}: ${_sdds_serv.bodyM.lineHeight};

                ${_styledcomponents.stepsTokens.dividerThickness}: 0.125rem;
            `,
            m: (0, _styledcomponents.css)`
                ${_styledcomponents.stepsTokens.indicatorSize}: 1.5rem;
                ${_styledcomponents.stepsTokens.activeIndicatorSize}: 2.25rem;
                ${_styledcomponents.stepsTokens.bulletSize}: 0.5rem;
                ${_styledcomponents.stepsTokens.activeBulletSize}: 1rem;

                ${_styledcomponents.stepsTokens.titlePaddingTop}: 0.625rem;
                ${_styledcomponents.stepsTokens.contentPaddingTop}: 0.375rem;
                ${_styledcomponents.stepsTokens.contentSidePadding}: 1.75rem;
                ${_styledcomponents.stepsTokens.contentVerticalPadding}: 0.875rem;
                ${_styledcomponents.stepsTokens.verticalContentPaddingLeft}: 0.75rem;

                ${_styledcomponents.stepsTokens.indicatorFontFamily}: ${_sdds_serv.bodyXS.fontFamily};
                ${_styledcomponents.stepsTokens.indicatorFontSize}: ${_sdds_serv.bodyXS.fontSize};
                ${_styledcomponents.stepsTokens.indicatorFontStyle}: ${_sdds_serv.bodyXS.fontStyle};
                ${_styledcomponents.stepsTokens.indicatorFontWeight}: ${_sdds_serv.bodyXS.fontWeight};
                ${_styledcomponents.stepsTokens.indicatorLetterSpacing}: ${_sdds_serv.bodyXS.letterSpacing};
                ${_styledcomponents.stepsTokens.indicatorLineHeight}: ${_sdds_serv.bodyXS.lineHeight};

                ${_styledcomponents.stepsTokens.activeIndicatorFontFamily}: ${_sdds_serv.bodyS.fontFamily};
                ${_styledcomponents.stepsTokens.activeIndicatorFontSize}: ${_sdds_serv.bodyS.fontSize};
                ${_styledcomponents.stepsTokens.activeIndicatorFontStyle}: ${_sdds_serv.bodyS.fontStyle};
                ${_styledcomponents.stepsTokens.activeIndicatorFontWeight}: ${_sdds_serv.bodyS.fontWeight};
                ${_styledcomponents.stepsTokens.activeIndicatorLetterSpacing}: ${_sdds_serv.bodyS.letterSpacing};
                ${_styledcomponents.stepsTokens.activeIndicatorLineHeight}: ${_sdds_serv.bodyS.lineHeight};

                ${_styledcomponents.stepsTokens.titleFontFamily}: ${_sdds_serv.bodyM.fontFamily};
                ${_styledcomponents.stepsTokens.titleFontSize}: ${_sdds_serv.bodyM.fontSize};
                ${_styledcomponents.stepsTokens.titleFontStyle}: ${_sdds_serv.bodyM.fontStyle};
                ${_styledcomponents.stepsTokens.titleFontWeight}: ${_sdds_serv.bodyM.fontWeight};
                ${_styledcomponents.stepsTokens.titleLetterSpacing}: ${_sdds_serv.bodyM.letterSpacing};
                ${_styledcomponents.stepsTokens.titleLineHeight}: ${_sdds_serv.bodyM.lineHeight};

                ${_styledcomponents.stepsTokens.contentFontFamily}: ${_sdds_serv.bodyS.fontFamily};
                ${_styledcomponents.stepsTokens.contentFontSize}: ${_sdds_serv.bodyS.fontSize};
                ${_styledcomponents.stepsTokens.contentFontStyle}: ${_sdds_serv.bodyS.fontStyle};
                ${_styledcomponents.stepsTokens.contentFontWeight}: ${_sdds_serv.bodyS.fontWeight};
                ${_styledcomponents.stepsTokens.contentLetterSpacing}: ${_sdds_serv.bodyS.letterSpacing};
                ${_styledcomponents.stepsTokens.contentLineHeight}: ${_sdds_serv.bodyS.lineHeight};

                ${_styledcomponents.stepsTokens.dividerThickness}: 0.125rem;
            `,
            s: (0, _styledcomponents.css)`
                ${_styledcomponents.stepsTokens.indicatorSize}: 1.5rem;
                ${_styledcomponents.stepsTokens.activeIndicatorSize}: 1.5rem;
                ${_styledcomponents.stepsTokens.bulletSize}: 0.5rem;
                ${_styledcomponents.stepsTokens.activeBulletSize}: 1rem;

                ${_styledcomponents.stepsTokens.titlePaddingTop}: 0.5rem;
                ${_styledcomponents.stepsTokens.contentPaddingTop}: 0.375rem;
                ${_styledcomponents.stepsTokens.contentSidePadding}: 1.5rem;
                ${_styledcomponents.stepsTokens.contentVerticalPadding}: 0.6875rem;
                ${_styledcomponents.stepsTokens.verticalContentPaddingLeft}: 0.75rem;

                ${_styledcomponents.stepsTokens.indicatorFontFamily}: ${_sdds_serv.bodyXS.fontFamily};
                ${_styledcomponents.stepsTokens.indicatorFontSize}: ${_sdds_serv.bodyXS.fontSize};
                ${_styledcomponents.stepsTokens.indicatorFontStyle}: ${_sdds_serv.bodyXS.fontStyle};
                ${_styledcomponents.stepsTokens.indicatorFontWeight}: ${_sdds_serv.bodyXS.fontWeight};
                ${_styledcomponents.stepsTokens.indicatorLetterSpacing}: ${_sdds_serv.bodyXS.letterSpacing};
                ${_styledcomponents.stepsTokens.indicatorLineHeight}: ${_sdds_serv.bodyXS.lineHeight};

                ${_styledcomponents.stepsTokens.activeIndicatorFontFamily}: ${_sdds_serv.bodyXS.fontFamily};
                ${_styledcomponents.stepsTokens.activeIndicatorFontSize}: ${_sdds_serv.bodyXS.fontSize};
                ${_styledcomponents.stepsTokens.activeIndicatorFontStyle}: ${_sdds_serv.bodyXS.fontStyle};
                ${_styledcomponents.stepsTokens.activeIndicatorFontWeight}: ${_sdds_serv.bodyXS.fontWeight};
                ${_styledcomponents.stepsTokens.activeIndicatorLetterSpacing}: ${_sdds_serv.bodyXS.letterSpacing};
                ${_styledcomponents.stepsTokens.activeIndicatorLineHeight}: ${_sdds_serv.bodyXS.lineHeight};

                ${_styledcomponents.stepsTokens.titleFontFamily}: ${_sdds_serv.bodyS.fontFamily};
                ${_styledcomponents.stepsTokens.titleFontSize}: ${_sdds_serv.bodyS.fontSize};
                ${_styledcomponents.stepsTokens.titleFontStyle}: ${_sdds_serv.bodyS.fontStyle};
                ${_styledcomponents.stepsTokens.titleFontWeight}: ${_sdds_serv.bodyS.fontWeight};
                ${_styledcomponents.stepsTokens.titleLetterSpacing}: ${_sdds_serv.bodyS.letterSpacing};
                ${_styledcomponents.stepsTokens.titleLineHeight}: ${_sdds_serv.bodyS.lineHeight};

                ${_styledcomponents.stepsTokens.contentFontFamily}: ${_sdds_serv.bodyXS.fontFamily};
                ${_styledcomponents.stepsTokens.contentFontSize}: ${_sdds_serv.bodyXS.fontSize};
                ${_styledcomponents.stepsTokens.contentFontStyle}: ${_sdds_serv.bodyXS.fontStyle};
                ${_styledcomponents.stepsTokens.contentFontWeight}: ${_sdds_serv.bodyXS.fontWeight};
                ${_styledcomponents.stepsTokens.contentLetterSpacing}: ${_sdds_serv.bodyXS.letterSpacing};
                ${_styledcomponents.stepsTokens.contentLineHeight}: ${_sdds_serv.bodyXS.lineHeight};

                ${_styledcomponents.stepsTokens.dividerThickness}: 0.125rem;
            `,
            xs: (0, _styledcomponents.css)`
                ${_styledcomponents.stepsTokens.indicatorSize}: 1.5rem;
                ${_styledcomponents.stepsTokens.activeIndicatorSize}: 1.5rem;
                ${_styledcomponents.stepsTokens.bulletSize}: 0.5rem;
                ${_styledcomponents.stepsTokens.activeBulletSize}: 1rem;

                ${_styledcomponents.stepsTokens.titlePaddingTop}: 0.5rem;
                ${_styledcomponents.stepsTokens.contentPaddingTop}: 0.25rem;
                ${_styledcomponents.stepsTokens.contentSidePadding}: 1.5rem;
                ${_styledcomponents.stepsTokens.contentVerticalPadding}: 0.5625rem;
                ${_styledcomponents.stepsTokens.verticalContentPaddingLeft}: 0.75rem;

                ${_styledcomponents.stepsTokens.indicatorFontFamily}: ${_sdds_serv.bodyXS.fontFamily};
                ${_styledcomponents.stepsTokens.indicatorFontSize}: ${_sdds_serv.bodyXS.fontSize};
                ${_styledcomponents.stepsTokens.indicatorFontStyle}: ${_sdds_serv.bodyXS.fontStyle};
                ${_styledcomponents.stepsTokens.indicatorFontWeight}: ${_sdds_serv.bodyXS.fontWeight};
                ${_styledcomponents.stepsTokens.indicatorLetterSpacing}: ${_sdds_serv.bodyXS.letterSpacing};
                ${_styledcomponents.stepsTokens.indicatorLineHeight}: ${_sdds_serv.bodyXS.lineHeight};

                ${_styledcomponents.stepsTokens.activeIndicatorFontFamily}: ${_sdds_serv.bodyXS.fontFamily};
                ${_styledcomponents.stepsTokens.activeIndicatorFontSize}: ${_sdds_serv.bodyXS.fontSize};
                ${_styledcomponents.stepsTokens.activeIndicatorFontStyle}: ${_sdds_serv.bodyXS.fontStyle};
                ${_styledcomponents.stepsTokens.activeIndicatorFontWeight}: ${_sdds_serv.bodyXS.fontWeight};
                ${_styledcomponents.stepsTokens.activeIndicatorLetterSpacing}: ${_sdds_serv.bodyXS.letterSpacing};
                ${_styledcomponents.stepsTokens.activeIndicatorLineHeight}: ${_sdds_serv.bodyXS.lineHeight};

                ${_styledcomponents.stepsTokens.titleFontFamily}: ${_sdds_serv.bodyXS.fontFamily};
                ${_styledcomponents.stepsTokens.titleFontSize}: ${_sdds_serv.bodyXS.fontSize};
                ${_styledcomponents.stepsTokens.titleFontStyle}: ${_sdds_serv.bodyXS.fontStyle};
                ${_styledcomponents.stepsTokens.titleFontWeight}: ${_sdds_serv.bodyXS.fontWeight};
                ${_styledcomponents.stepsTokens.titleLetterSpacing}: ${_sdds_serv.bodyXS.letterSpacing};
                ${_styledcomponents.stepsTokens.titleLineHeight}: ${_sdds_serv.bodyXS.lineHeight};

                ${_styledcomponents.stepsTokens.contentFontFamily}: ${_sdds_serv.bodyXS.fontFamily};
                ${_styledcomponents.stepsTokens.contentFontSize}: ${_sdds_serv.bodyXS.fontSize};
                ${_styledcomponents.stepsTokens.contentFontStyle}: ${_sdds_serv.bodyXS.fontStyle};
                ${_styledcomponents.stepsTokens.contentFontWeight}: ${_sdds_serv.bodyXS.fontWeight};
                ${_styledcomponents.stepsTokens.contentLetterSpacing}: ${_sdds_serv.bodyXS.letterSpacing};
                ${_styledcomponents.stepsTokens.contentLineHeight}: ${_sdds_serv.bodyXS.lineHeight};

                ${_styledcomponents.stepsTokens.dividerThickness}: 0.125rem;
            `
        }
    },
    intersections: [
        {
            view: 'accent',
            itemView: 'default',
            style: (0, _styledcomponents.css)`
                ${_styledcomponents.stepsTokens.activeIndicatorBorder}: solid ${_sdds_serv.textAccent};
                ${_styledcomponents.stepsTokens.activeIndicatorColor}: ${_sdds_serv.textAccent};

                ${accentConfig};
            `
        },
        {
            view: 'accent',
            itemView: 'negative',
            style: (0, _styledcomponents.css)`
                ${accentConfig};
            `
        },
        {
            view: 'accent',
            itemView: 'warning',
            style: (0, _styledcomponents.css)`
                ${accentConfig};
            `
        },
        {
            view: 'accent',
            itemView: 'positive',
            style: (0, _styledcomponents.css)`
                ${accentConfig};
            `
        }
    ]
};
