"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',
        focused: 'true',
        size: 'm'
    },
    variations: {
        view: {
            default: (0, _emotion.css)`
                ${_emotion.chipTokens.color}: ${_sdds_serv.inverseTextPrimary};
                ${_emotion.chipTokens.background}: ${_sdds_serv.surfaceSolidDefault};
                ${_emotion.chipTokens.colorHover}: ${_sdds_serv.inverseTextPrimary};
                ${_emotion.chipTokens.backgroundHover}: ${_sdds_serv.surfaceSolidDefaultHover};
                ${_emotion.chipTokens.colorActive}: ${_sdds_serv.inverseTextPrimary};
                ${_emotion.chipTokens.backgroundActive}: ${_sdds_serv.surfaceSolidDefaultActive};
                ${_emotion.chipTokens.backgroundReadOnly}: ${_sdds_serv.surfaceSolidDefault};
                ${_emotion.chipTokens.colorReadOnly}: ${_sdds_serv.inverseTextPrimary};
                ${_emotion.chipTokens.backgroundReadOnlyHover}: ${_sdds_serv.surfaceSolidDefault};
                ${_emotion.chipTokens.colorReadOnlyHover}: ${_sdds_serv.inverseTextPrimary};
                ${_emotion.chipTokens.closeIconColor}: ${_sdds_serv.inverseTextSecondary};
                ${_emotion.chipTokens.closeIconColorHover}: ${_sdds_serv.inverseTextSecondaryHover};
                ${_emotion.chipTokens.leftContentColor}: ${_sdds_serv.inverseTextPrimary};
            `,
            secondary: (0, _emotion.css)`
                ${_emotion.chipTokens.color}: ${_sdds_serv.textPrimary};
                ${_emotion.chipTokens.background}: ${_sdds_serv.surfaceTransparentSecondary};
                ${_emotion.chipTokens.colorHover}: ${_sdds_serv.textPrimary};
                ${_emotion.chipTokens.backgroundHover}: ${_sdds_serv.surfaceTransparentSecondaryHover};
                ${_emotion.chipTokens.colorActive}: ${_sdds_serv.textPrimary};
                ${_emotion.chipTokens.backgroundActive}: ${_sdds_serv.surfaceTransparentSecondaryActive};
                ${_emotion.chipTokens.backgroundReadOnly}: ${_sdds_serv.surfaceTransparentSecondary};
                ${_emotion.chipTokens.colorReadOnly}: ${_sdds_serv.textPrimary};
                ${_emotion.chipTokens.backgroundReadOnlyHover}: ${_sdds_serv.surfaceTransparentSecondary};
                ${_emotion.chipTokens.colorReadOnlyHover}: ${_sdds_serv.textPrimary};
                ${_emotion.chipTokens.closeIconColor}: ${_sdds_serv.textSecondary};
                ${_emotion.chipTokens.closeIconColorHover}: ${_sdds_serv.textSecondaryHover};
                ${_emotion.chipTokens.leftContentColor}: ${_sdds_serv.textPrimary};
            `,
            accent: (0, _emotion.css)`
                ${_emotion.chipTokens.color}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.chipTokens.background}: ${_sdds_serv.surfaceAccent};
                ${_emotion.chipTokens.colorHover}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.chipTokens.backgroundHover}: ${_sdds_serv.surfaceAccentHover};
                ${_emotion.chipTokens.colorActive}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.chipTokens.backgroundActive}: ${_sdds_serv.surfaceAccentActive};
                ${_emotion.chipTokens.backgroundReadOnly}: ${_sdds_serv.surfaceAccent};
                ${_emotion.chipTokens.colorReadOnly}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.chipTokens.backgroundReadOnlyHover}: ${_sdds_serv.surfaceAccent};
                ${_emotion.chipTokens.colorReadOnlyHover}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.chipTokens.closeIconColor}: ${_sdds_serv.onDarkTextSecondary};
                ${_emotion.chipTokens.closeIconColorHover}: ${_sdds_serv.onDarkTextSecondaryHover};
                ${_emotion.chipTokens.leftContentColor}: ${_sdds_serv.onDarkTextPrimary};
            `,
            positive: (0, _emotion.css)`
                ${_emotion.chipTokens.color}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.chipTokens.background}: ${_sdds_serv.surfacePositive};
                ${_emotion.chipTokens.colorHover}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.chipTokens.backgroundHover}: ${_sdds_serv.surfacePositiveHover};
                ${_emotion.chipTokens.colorActive}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.chipTokens.backgroundActive}: ${_sdds_serv.surfacePositiveActive};
                ${_emotion.chipTokens.backgroundReadOnly}: ${_sdds_serv.surfacePositive};
                ${_emotion.chipTokens.colorReadOnly}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.chipTokens.backgroundReadOnlyHover}: ${_sdds_serv.surfacePositive};
                ${_emotion.chipTokens.colorReadOnlyHover}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.chipTokens.closeIconColor}: ${_sdds_serv.onDarkTextSecondary};
                ${_emotion.chipTokens.closeIconColorHover}: ${_sdds_serv.onDarkTextSecondaryHover};
                ${_emotion.chipTokens.leftContentColor}: ${_sdds_serv.onDarkTextPrimary};
            `,
            warning: (0, _emotion.css)`
                ${_emotion.chipTokens.color}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.chipTokens.background}: ${_sdds_serv.surfaceWarning};
                ${_emotion.chipTokens.colorHover}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.chipTokens.backgroundHover}: ${_sdds_serv.surfaceWarningHover};
                ${_emotion.chipTokens.colorActive}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.chipTokens.backgroundActive}: ${_sdds_serv.surfaceWarningActive};
                ${_emotion.chipTokens.backgroundReadOnly}: ${_sdds_serv.surfaceWarning};
                ${_emotion.chipTokens.colorReadOnly}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.chipTokens.backgroundReadOnlyHover}: ${_sdds_serv.surfaceWarning};
                ${_emotion.chipTokens.colorReadOnlyHover}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.chipTokens.closeIconColor}: ${_sdds_serv.onDarkTextSecondary};
                ${_emotion.chipTokens.closeIconColorHover}: ${_sdds_serv.onDarkTextSecondaryHover};
                ${_emotion.chipTokens.leftContentColor}: ${_sdds_serv.onDarkTextPrimary};
            `,
            negative: (0, _emotion.css)`
                ${_emotion.chipTokens.color}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.chipTokens.background}: ${_sdds_serv.surfaceNegative};
                ${_emotion.chipTokens.colorHover}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.chipTokens.backgroundHover}: ${_sdds_serv.surfaceNegativeHover};
                ${_emotion.chipTokens.colorActive}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.chipTokens.backgroundActive}: ${_sdds_serv.surfaceNegativeActive};
                ${_emotion.chipTokens.backgroundReadOnly}: ${_sdds_serv.surfaceNegative};
                ${_emotion.chipTokens.colorReadOnly}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.chipTokens.backgroundReadOnlyHover}: ${_sdds_serv.surfaceNegative};
                ${_emotion.chipTokens.colorReadOnlyHover}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.chipTokens.closeIconColor}: ${_sdds_serv.onDarkTextSecondary};
                ${_emotion.chipTokens.closeIconColorHover}: ${_sdds_serv.onDarkTextSecondaryHover};
                ${_emotion.chipTokens.leftContentColor}: ${_sdds_serv.onDarkTextPrimary};
            `
        },
        size: {
            l: (0, _emotion.css)`
                ${_emotion.chipTokens.borderRadius}: 0.75rem;
                ${_emotion.chipTokens.pilledBorderRadius}: 1.5rem;
                ${_emotion.chipTokens.width}: auto;
                ${_emotion.chipTokens.height}: 3rem;
                ${_emotion.chipTokens.padding}: 0 1rem;

                ${_emotion.chipTokens.fontFamily}: ${_sdds_serv.bodyL.fontFamily};
                ${_emotion.chipTokens.fontSize}: ${_sdds_serv.bodyL.fontSize};
                ${_emotion.chipTokens.fontStyle}: ${_sdds_serv.bodyL.fontStyle};
                ${_emotion.chipTokens.fontWeight}: ${_sdds_serv.bodyL.fontWeight};
                ${_emotion.chipTokens.letterSpacing}: ${_sdds_serv.bodyL.letterSpacing};
                ${_emotion.chipTokens.lineHeight}: ${_sdds_serv.bodyL.lineHeight};

                ${_emotion.chipTokens.leftContentMarginLeft}: -0.125rem;
                ${_emotion.chipTokens.leftContentMarginRight}: 0.5rem;
                ${_emotion.chipTokens.rightContentMarginLeft}: 0.5rem;
                ${_emotion.chipTokens.rightContentMarginRight}: -0.125rem;
                ${_emotion.chipTokens.clearContentMarginLeft}: 0.625rem;
                ${_emotion.chipTokens.clearContentMarginRight}: -0.25rem;
                ${_emotion.chipTokens.closeIconSize}: 1.5rem;
            `,
            m: (0, _emotion.css)`
                ${_emotion.chipTokens.borderRadius}: 0.625rem;
                ${_emotion.chipTokens.pilledBorderRadius}: 1.25rem;
                ${_emotion.chipTokens.width}: auto;
                ${_emotion.chipTokens.height}: 2.5rem;
                ${_emotion.chipTokens.padding}: 0 0.875rem;

                ${_emotion.chipTokens.fontFamily}: ${_sdds_serv.bodyM.fontFamily};
                ${_emotion.chipTokens.fontSize}: ${_sdds_serv.bodyM.fontSize};
                ${_emotion.chipTokens.fontStyle}: ${_sdds_serv.bodyM.fontStyle};
                ${_emotion.chipTokens.fontWeight}: ${_sdds_serv.bodyM.fontWeight};
                ${_emotion.chipTokens.letterSpacing}: ${_sdds_serv.bodyM.letterSpacing};
                ${_emotion.chipTokens.lineHeight}: ${_sdds_serv.bodyM.lineHeight};

                ${_emotion.chipTokens.leftContentMarginLeft}: -0.125rem;
                ${_emotion.chipTokens.leftContentMarginRight}: 0.375rem;
                ${_emotion.chipTokens.rightContentMarginLeft}: 0.375rem;
                ${_emotion.chipTokens.rightContentMarginRight}: -0.125rem;
                ${_emotion.chipTokens.clearContentMarginLeft}: 0.5rem;
                ${_emotion.chipTokens.clearContentMarginRight}: -0.25rem;
                ${_emotion.chipTokens.closeIconSize}: 1.25rem;
            `,
            s: (0, _emotion.css)`
                ${_emotion.chipTokens.borderRadius}: 0.5rem;
                ${_emotion.chipTokens.pilledBorderRadius}: 1rem;
                ${_emotion.chipTokens.width}: auto;
                ${_emotion.chipTokens.height}: 2rem;
                ${_emotion.chipTokens.padding}: 0 0.875rem;

                ${_emotion.chipTokens.fontFamily}: ${_sdds_serv.bodyS.fontFamily};
                ${_emotion.chipTokens.fontSize}: ${_sdds_serv.bodyS.fontSize};
                ${_emotion.chipTokens.fontStyle}: ${_sdds_serv.bodyS.fontStyle};
                ${_emotion.chipTokens.fontWeight}: ${_sdds_serv.bodyS.fontWeight};
                ${_emotion.chipTokens.letterSpacing}: ${_sdds_serv.bodyS.letterSpacing};
                ${_emotion.chipTokens.lineHeight}: ${_sdds_serv.bodyS.lineHeight};

                ${_emotion.chipTokens.leftContentMarginLeft}: -0.125rem;
                ${_emotion.chipTokens.leftContentMarginRight}: 0.25rem;
                ${_emotion.chipTokens.rightContentMarginLeft}: 0.25rem;
                ${_emotion.chipTokens.rightContentMarginRight}: -0.125rem;
                ${_emotion.chipTokens.clearContentMarginLeft}: 0.375rem;
                ${_emotion.chipTokens.clearContentMarginRight}: -0.25rem;
                ${_emotion.chipTokens.closeIconSize}: 1rem;
            `,
            xs: (0, _emotion.css)`
                ${_emotion.chipTokens.borderRadius}: 0.375rem;
                ${_emotion.chipTokens.pilledBorderRadius}: 0.75rem;
                ${_emotion.chipTokens.width}: auto;
                ${_emotion.chipTokens.height}: 1.5rem;
                ${_emotion.chipTokens.padding}: 0 0.625rem;

                ${_emotion.chipTokens.fontFamily}: ${_sdds_serv.bodyXS.fontFamily};
                ${_emotion.chipTokens.fontSize}: ${_sdds_serv.bodyXS.fontSize};
                ${_emotion.chipTokens.fontStyle}: ${_sdds_serv.bodyXS.fontStyle};
                ${_emotion.chipTokens.fontWeight}: ${_sdds_serv.bodyXS.fontWeight};
                ${_emotion.chipTokens.letterSpacing}: ${_sdds_serv.bodyXS.letterSpacing};
                ${_emotion.chipTokens.lineHeight}: ${_sdds_serv.bodyXS.lineHeight};

                ${_emotion.chipTokens.leftContentMarginLeft}: -0.125rem;
                ${_emotion.chipTokens.leftContentMarginRight}: 0.25rem;
                ${_emotion.chipTokens.rightContentMarginLeft}: 0.25rem;
                ${_emotion.chipTokens.rightContentMarginRight}: -0.125rem;
                ${_emotion.chipTokens.clearContentMarginLeft}: 0.25rem;
                ${_emotion.chipTokens.clearContentMarginRight}: -0.25rem;
                ${_emotion.chipTokens.closeIconSize}: 0.75rem;
            `,
            xxs: (0, _emotion.css)`
                ${_emotion.chipTokens.borderRadius}: 0.375rem;
                ${_emotion.chipTokens.pilledBorderRadius}: 0.625rem;
                ${_emotion.chipTokens.width}: auto;
                ${_emotion.chipTokens.height}: 1.25rem;
                ${_emotion.chipTokens.padding}: 0 0.5rem;

                ${_emotion.chipTokens.fontFamily}: ${_sdds_serv.bodyXXS.fontFamily};
                ${_emotion.chipTokens.fontSize}: ${_sdds_serv.bodyXXS.fontSize};
                ${_emotion.chipTokens.fontStyle}: ${_sdds_serv.bodyXXS.fontStyle};
                ${_emotion.chipTokens.fontWeight}: ${_sdds_serv.bodyXXS.fontWeight};
                ${_emotion.chipTokens.letterSpacing}: ${_sdds_serv.bodyXXS.letterSpacing};
                ${_emotion.chipTokens.lineHeight}: ${_sdds_serv.bodyXXS.lineHeight};

                ${_emotion.chipTokens.leftContentMarginLeft}: -0.125rem;
                ${_emotion.chipTokens.leftContentMarginRight}: 0.125rem;
                ${_emotion.chipTokens.rightContentMarginLeft}: 0.125rem;
                ${_emotion.chipTokens.rightContentMarginRight}: -0.125rem;
                ${_emotion.chipTokens.clearContentMarginLeft}: 0.25rem;
                ${_emotion.chipTokens.clearContentMarginRight}: -0.25rem;
                ${_emotion.chipTokens.closeIconSize}: 0.75rem;
            `
        },
        disabled: {
            true: (0, _emotion.css)`
                ${_emotion.chipTokens.disabledOpacity}: 0.4;
            `
        },
        focused: {
            true: (0, _emotion.css)`
                ${_emotion.chipTokens.focusColor}: ${_sdds_serv.textAccent};
            `
        },
        pilled: {
            true: (0, _emotion.css)``
        }
    }
};
