"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 config = {
    defaults: {
        view: 'default',
        size: 'm',
        toggleSize: 'l',
        labelPosition: 'before',
        focused: 'true'
    },
    variations: {
        size: {
            s: (0, _styledcomponents.css)`
                ${_styledcomponents.switchTokens.fontFamily}: ${_sdds_serv.bodyS.fontFamily};
                ${_styledcomponents.switchTokens.fontStyle}: ${_sdds_serv.bodyS.fontStyle};
                ${_styledcomponents.switchTokens.fontWeight}: ${_sdds_serv.bodyS.fontWeight};
                ${_styledcomponents.switchTokens.lineHeight}: ${_sdds_serv.bodyS.lineHeight};
                ${_styledcomponents.switchTokens.fontSize}: ${_sdds_serv.bodyS.fontSize};
                ${_styledcomponents.switchTokens.letterSpacing}: ${_sdds_serv.bodyS.letterSpacing};
                ${_styledcomponents.switchTokens.descriptionFontFamily}: ${_sdds_serv.bodyXS.fontFamily};
                ${_styledcomponents.switchTokens.descriptionFontStyle}: ${_sdds_serv.bodyXS.fontStyle};
                ${_styledcomponents.switchTokens.descriptionFontWeight}: ${_sdds_serv.bodyXS.fontWeight};
                ${_styledcomponents.switchTokens.descriptionLineHeight}: ${_sdds_serv.bodyXS.lineHeight};
                ${_styledcomponents.switchTokens.descriptionFontSize}: ${_sdds_serv.bodyXS.fontSize};
                ${_styledcomponents.switchTokens.descriptionLetterSpacing}: ${_sdds_serv.bodyXS.letterSpacing};
                ${_styledcomponents.switchTokens.verticalGap}: 0.25rem;
                ${_styledcomponents.switchTokens.labelOffset}: 0.75rem;
            `,
            m: (0, _styledcomponents.css)`
                ${_styledcomponents.switchTokens.fontFamily}: ${_sdds_serv.bodyM.fontFamily};
                ${_styledcomponents.switchTokens.fontStyle}: ${_sdds_serv.bodyM.fontStyle};
                ${_styledcomponents.switchTokens.fontWeight}: ${_sdds_serv.bodyM.fontWeight};
                ${_styledcomponents.switchTokens.lineHeight}: ${_sdds_serv.bodyM.lineHeight};
                ${_styledcomponents.switchTokens.fontSize}: ${_sdds_serv.bodyM.fontSize};
                ${_styledcomponents.switchTokens.letterSpacing}: ${_sdds_serv.bodyM.letterSpacing};
                ${_styledcomponents.switchTokens.descriptionFontFamily}: ${_sdds_serv.bodyS.fontFamily};
                ${_styledcomponents.switchTokens.descriptionFontStyle}: ${_sdds_serv.bodyS.fontStyle};
                ${_styledcomponents.switchTokens.descriptionFontWeight}: ${_sdds_serv.bodyS.fontWeight};
                ${_styledcomponents.switchTokens.descriptionLineHeight}: ${_sdds_serv.bodyS.lineHeight};
                ${_styledcomponents.switchTokens.descriptionFontSize}: ${_sdds_serv.bodyS.fontSize};
                ${_styledcomponents.switchTokens.descriptionLetterSpacing}: ${_sdds_serv.bodyXS.letterSpacing};
                ${_styledcomponents.switchTokens.verticalGap}: 0.25rem;
                ${_styledcomponents.switchTokens.labelOffset}: 0.75rem;
            `,
            l: (0, _styledcomponents.css)`
                ${_styledcomponents.switchTokens.fontFamily}: ${_sdds_serv.bodyL.fontFamily};
                ${_styledcomponents.switchTokens.fontStyle}: ${_sdds_serv.bodyL.fontStyle};
                ${_styledcomponents.switchTokens.fontWeight}: ${_sdds_serv.bodyL.fontWeight};
                ${_styledcomponents.switchTokens.lineHeight}: ${_sdds_serv.bodyL.lineHeight};
                ${_styledcomponents.switchTokens.fontSize}: ${_sdds_serv.bodyL.fontSize};
                ${_styledcomponents.switchTokens.letterSpacing}: ${_sdds_serv.bodyL.letterSpacing};
                ${_styledcomponents.switchTokens.descriptionFontFamily}: ${_sdds_serv.bodyM.fontFamily};
                ${_styledcomponents.switchTokens.descriptionFontStyle}: ${_sdds_serv.bodyM.fontStyle};
                ${_styledcomponents.switchTokens.descriptionFontWeight}: ${_sdds_serv.bodyM.fontWeight};
                ${_styledcomponents.switchTokens.descriptionLineHeight}: ${_sdds_serv.bodyM.lineHeight};
                ${_styledcomponents.switchTokens.descriptionFontSize}: ${_sdds_serv.bodyM.fontSize};
                ${_styledcomponents.switchTokens.descriptionLetterSpacing}: ${_sdds_serv.bodyXS.letterSpacing};
                ${_styledcomponents.switchTokens.verticalGap}: 0.25rem;
                ${_styledcomponents.switchTokens.labelOffset}: 0.75rem;
            `
        },
        toggleSize: {
            l: (0, _styledcomponents.css)`
                ${_styledcomponents.switchTokens.trackWidth}: 2.75rem;
                ${_styledcomponents.switchTokens.trackHeight}: 1.75rem;
                ${_styledcomponents.switchTokens.trackBorderRadius}: calc(var(${_styledcomponents.switchTokens.trackHeight}) / 2);
                ${_styledcomponents.switchTokens.thumbSize}: 1.5rem;
                ${_styledcomponents.switchTokens.thumbBorderRadius}: calc(var(${_styledcomponents.switchTokens.thumbSize}) / 2);
                ${_styledcomponents.switchTokens.thumbOffsetOn}: 0.125rem;
                ${_styledcomponents.switchTokens.thumbOffsetOff}: 0.125rem;
                ${_styledcomponents.switchTokens.thumbPressScale}: 1.25;
            `,
            s: (0, _styledcomponents.css)`
                ${_styledcomponents.switchTokens.trackWidth}: 2rem;
                ${_styledcomponents.switchTokens.trackHeight}: 1.25rem;
                ${_styledcomponents.switchTokens.trackBorderRadius}: calc(var(${_styledcomponents.switchTokens.trackHeight}) / 2);
                ${_styledcomponents.switchTokens.thumbSize}: 1rem;
                ${_styledcomponents.switchTokens.thumbBorderRadius}: calc(var(${_styledcomponents.switchTokens.thumbSize}) / 2);
                ${_styledcomponents.switchTokens.thumbOffsetOn}: 0.125rem;
                ${_styledcomponents.switchTokens.thumbOffsetOff}: 0.125rem;
                ${_styledcomponents.switchTokens.thumbPressScale}: 1.25;
            `
        },
        view: {
            default: (0, _styledcomponents.css)`
                ${_styledcomponents.switchTokens.labelColor}: ${_sdds_serv.textPrimary};
                ${_styledcomponents.switchTokens.descriptionColor}: ${_sdds_serv.textSecondary};
                ${_styledcomponents.switchTokens.descriptionMaxLines}: initial;
                ${_styledcomponents.switchTokens.trackBackgroundColorOn}: ${_sdds_serv.surfaceAccent};
                ${_styledcomponents.switchTokens.trackBackgroundColorOnHover}: ${_sdds_serv.surfaceAccentHover};
                ${_styledcomponents.switchTokens.trackBackgroundColorOff}: ${_sdds_serv.surfaceTransparentTertiary};
                ${_styledcomponents.switchTokens.trackBackgroundColorOffHover}: ${_sdds_serv.surfaceTransparentTertiaryHover};
                ${_styledcomponents.switchTokens.trackBorderWidthOn}: 0;
                ${_styledcomponents.switchTokens.trackBorderWidthOff}: 0;
                ${_styledcomponents.switchTokens.thumbBackgroundColorOn}: ${_sdds_serv.onDarkSurfaceSolidDefault};
                ${_styledcomponents.switchTokens.thumbBackgroundColorOff}: ${_sdds_serv.onDarkSurfaceSolidDefault};
                ${_styledcomponents.switchTokens.thumbBoxShadow}: 0 1px 1px rgba(0, 0, 0, 0.11);
            `
        },
        disabled: {
            true: (0, _styledcomponents.css)`
                ${_styledcomponents.switchTokens.disabledOpacity}: 0.4;
            `
        },
        focused: {
            true: (0, _styledcomponents.css)`
                ${_styledcomponents.switchTokens.trackFocusColor}: ${_sdds_serv.surfaceAccent};
            `
        }
    }
};
