"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "config", {
    enumerable: true,
    get: function() {
        return config;
    }
});
const _emotion = require("@salutejs/plasma-new-hope/emotion");
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, _emotion.css)`
                ${_emotion.switchTokens.fontFamily}: ${_sdds_serv.bodyS.fontFamily};
                ${_emotion.switchTokens.fontStyle}: ${_sdds_serv.bodyS.fontStyle};
                ${_emotion.switchTokens.fontWeight}: ${_sdds_serv.bodyS.fontWeight};
                ${_emotion.switchTokens.lineHeight}: ${_sdds_serv.bodyS.lineHeight};
                ${_emotion.switchTokens.fontSize}: ${_sdds_serv.bodyS.fontSize};
                ${_emotion.switchTokens.letterSpacing}: ${_sdds_serv.bodyS.letterSpacing};
                ${_emotion.switchTokens.descriptionFontFamily}: ${_sdds_serv.bodyXS.fontFamily};
                ${_emotion.switchTokens.descriptionFontStyle}: ${_sdds_serv.bodyXS.fontStyle};
                ${_emotion.switchTokens.descriptionFontWeight}: ${_sdds_serv.bodyXS.fontWeight};
                ${_emotion.switchTokens.descriptionLineHeight}: ${_sdds_serv.bodyXS.lineHeight};
                ${_emotion.switchTokens.descriptionFontSize}: ${_sdds_serv.bodyXS.fontSize};
                ${_emotion.switchTokens.descriptionLetterSpacing}: ${_sdds_serv.bodyXS.letterSpacing};
                ${_emotion.switchTokens.verticalGap}: 0.25rem;
                ${_emotion.switchTokens.labelOffset}: 0.75rem;
            `,
            m: (0, _emotion.css)`
                ${_emotion.switchTokens.fontFamily}: ${_sdds_serv.bodyM.fontFamily};
                ${_emotion.switchTokens.fontStyle}: ${_sdds_serv.bodyM.fontStyle};
                ${_emotion.switchTokens.fontWeight}: ${_sdds_serv.bodyM.fontWeight};
                ${_emotion.switchTokens.lineHeight}: ${_sdds_serv.bodyM.lineHeight};
                ${_emotion.switchTokens.fontSize}: ${_sdds_serv.bodyM.fontSize};
                ${_emotion.switchTokens.letterSpacing}: ${_sdds_serv.bodyM.letterSpacing};
                ${_emotion.switchTokens.descriptionFontFamily}: ${_sdds_serv.bodyS.fontFamily};
                ${_emotion.switchTokens.descriptionFontStyle}: ${_sdds_serv.bodyS.fontStyle};
                ${_emotion.switchTokens.descriptionFontWeight}: ${_sdds_serv.bodyS.fontWeight};
                ${_emotion.switchTokens.descriptionLineHeight}: ${_sdds_serv.bodyS.lineHeight};
                ${_emotion.switchTokens.descriptionFontSize}: ${_sdds_serv.bodyS.fontSize};
                ${_emotion.switchTokens.descriptionLetterSpacing}: ${_sdds_serv.bodyXS.letterSpacing};
                ${_emotion.switchTokens.verticalGap}: 0.25rem;
                ${_emotion.switchTokens.labelOffset}: 0.75rem;
            `,
            l: (0, _emotion.css)`
                ${_emotion.switchTokens.fontFamily}: ${_sdds_serv.bodyL.fontFamily};
                ${_emotion.switchTokens.fontStyle}: ${_sdds_serv.bodyL.fontStyle};
                ${_emotion.switchTokens.fontWeight}: ${_sdds_serv.bodyL.fontWeight};
                ${_emotion.switchTokens.lineHeight}: ${_sdds_serv.bodyL.lineHeight};
                ${_emotion.switchTokens.fontSize}: ${_sdds_serv.bodyL.fontSize};
                ${_emotion.switchTokens.letterSpacing}: ${_sdds_serv.bodyL.letterSpacing};
                ${_emotion.switchTokens.descriptionFontFamily}: ${_sdds_serv.bodyM.fontFamily};
                ${_emotion.switchTokens.descriptionFontStyle}: ${_sdds_serv.bodyM.fontStyle};
                ${_emotion.switchTokens.descriptionFontWeight}: ${_sdds_serv.bodyM.fontWeight};
                ${_emotion.switchTokens.descriptionLineHeight}: ${_sdds_serv.bodyM.lineHeight};
                ${_emotion.switchTokens.descriptionFontSize}: ${_sdds_serv.bodyM.fontSize};
                ${_emotion.switchTokens.descriptionLetterSpacing}: ${_sdds_serv.bodyXS.letterSpacing};
                ${_emotion.switchTokens.verticalGap}: 0.25rem;
                ${_emotion.switchTokens.labelOffset}: 0.75rem;
            `
        },
        toggleSize: {
            l: (0, _emotion.css)`
                ${_emotion.switchTokens.trackWidth}: 2.75rem;
                ${_emotion.switchTokens.trackHeight}: 1.75rem;
                ${_emotion.switchTokens.trackBorderRadius}: calc(var(${_emotion.switchTokens.trackHeight}) / 2);
                ${_emotion.switchTokens.thumbSize}: 1.5rem;
                ${_emotion.switchTokens.thumbBorderRadius}: calc(var(${_emotion.switchTokens.thumbSize}) / 2);
                ${_emotion.switchTokens.thumbOffsetOn}: 0.125rem;
                ${_emotion.switchTokens.thumbOffsetOff}: 0.125rem;
                ${_emotion.switchTokens.thumbPressScale}: 1.25;
            `,
            s: (0, _emotion.css)`
                ${_emotion.switchTokens.trackWidth}: 2rem;
                ${_emotion.switchTokens.trackHeight}: 1.25rem;
                ${_emotion.switchTokens.trackBorderRadius}: calc(var(${_emotion.switchTokens.trackHeight}) / 2);
                ${_emotion.switchTokens.thumbSize}: 1rem;
                ${_emotion.switchTokens.thumbBorderRadius}: calc(var(${_emotion.switchTokens.thumbSize}) / 2);
                ${_emotion.switchTokens.thumbOffsetOn}: 0.125rem;
                ${_emotion.switchTokens.thumbOffsetOff}: 0.125rem;
                ${_emotion.switchTokens.thumbPressScale}: 1.25;
            `
        },
        view: {
            default: (0, _emotion.css)`
                ${_emotion.switchTokens.labelColor}: ${_sdds_serv.textPrimary};
                ${_emotion.switchTokens.descriptionColor}: ${_sdds_serv.textSecondary};
                ${_emotion.switchTokens.descriptionMaxLines}: initial;
                ${_emotion.switchTokens.trackBackgroundColorOn}: ${_sdds_serv.surfaceAccent};
                ${_emotion.switchTokens.trackBackgroundColorOnHover}: ${_sdds_serv.surfaceAccentHover};
                ${_emotion.switchTokens.trackBackgroundColorOff}: ${_sdds_serv.surfaceTransparentTertiary};
                ${_emotion.switchTokens.trackBackgroundColorOffHover}: ${_sdds_serv.surfaceTransparentTertiaryHover};
                ${_emotion.switchTokens.trackBorderWidthOn}: 0;
                ${_emotion.switchTokens.trackBorderWidthOff}: 0;
                ${_emotion.switchTokens.thumbBackgroundColorOn}: ${_sdds_serv.onDarkSurfaceSolidDefault};
                ${_emotion.switchTokens.thumbBackgroundColorOff}: ${_sdds_serv.onDarkSurfaceSolidDefault};
                ${_emotion.switchTokens.thumbBoxShadow}: 0 1px 1px rgba(0, 0, 0, 0.11);
            `
        },
        disabled: {
            true: (0, _emotion.css)`
                ${_emotion.switchTokens.disabledOpacity}: 0.4;
            `
        },
        focused: {
            true: (0, _emotion.css)`
                ${_emotion.switchTokens.trackFocusColor}: ${_sdds_serv.surfaceAccent};
            `
        }
    }
};
