"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: 'xxl',
        shape: 'circled'
    },
    variations: {
        view: {
            default: (0, _emotion.css)`
                ${_emotion.avatarTokens.color}: ${_sdds_serv.textAccentGradient};
                ${_emotion.avatarTokens.backgroundColor}: linear-gradient(94deg, rgba(62, 121, 240, 0.2) 6.49%, rgba(39, 198, 229, 0.2) 93.51%);
                ${_emotion.avatarTokens.statusOnlineColor}: ${_sdds_serv.surfacePositive};
                ${_emotion.avatarTokens.statusOfflineColor}: ${_sdds_serv.surfaceSolidTertiary};
                ${_emotion.avatarTokens.scaleHover}: 1.02;
                ${_emotion.avatarTokens.fontFamily}: var(--plasma-typo-text-font-family);
            `
        },
        size: {
            // TODO: #1044 токены типографики в Avatar
            xxl: (0, _emotion.css)`
                ${_emotion.avatarTokens.avatarSize}: 6.25rem;
                ${_emotion.avatarTokens.fontSize}: 2rem;
                ${_emotion.avatarTokens.fontWeight}: 600;
                ${_emotion.avatarTokens.lineHeight}: 2rem;
                ${_emotion.avatarTokens.statusIconSize}: 0.75rem;
                ${_emotion.avatarTokens.borderRadius}: 1.125rem;

                ${_emotion.avatarTokens.badgeBorderRadius}: 0.5rem;
                ${_emotion.avatarTokens.badgeHeight}: 1.75rem;
                ${_emotion.avatarTokens.badgePadding}: 0 0.688rem;
                ${_emotion.avatarTokens.badgePaddingIconOnly}: 0 0.375rem;

                ${_emotion.avatarTokens.badgeFontFamily}: ${_sdds_serv.bodyS.fontFamily};
                ${_emotion.avatarTokens.badgeFontSize}: ${_sdds_serv.bodyS.fontSize};
                ${_emotion.avatarTokens.badgeFontStyle}: ${_sdds_serv.bodyS.fontStyle};
                ${_emotion.avatarTokens.badgeFontWeight}: ${_sdds_serv.bodyS.fontWeight};
                ${_emotion.avatarTokens.badgeLetterSpacing}: ${_sdds_serv.bodyS.letterSpacing};
                ${_emotion.avatarTokens.badgeLineHeight}: ${_sdds_serv.bodyS.lineHeight};

                ${_emotion.avatarTokens.badgeLeftContentMarginLeft}: -0.063rem;
                ${_emotion.avatarTokens.badgeLeftContentMarginRight}: 0.25rem;

                ${_emotion.avatarTokens.badgeRightContentMarginLeft}: 0.25rem;
                ${_emotion.avatarTokens.badgeRightContentMarginRight}: -0.063rem;
                ${_emotion.avatarTokens.badgePilledBorderRadius}: 1.25rem;

                ${_emotion.avatarTokens.counterBorderRadius}: 1rem;
                ${_emotion.avatarTokens.counterHeight}: 1.75rem;
                ${_emotion.avatarTokens.counterPadding}: 0 0.625rem;
                ${_emotion.avatarTokens.counterFontFamily}: ${_sdds_serv.bodyS.fontFamily};
                ${_emotion.avatarTokens.counterFontSize}: ${_sdds_serv.bodyS.fontSize};
                ${_emotion.avatarTokens.counterFontStyle}: ${_sdds_serv.bodyS.fontStyle};
                ${_emotion.avatarTokens.counterFontWeight}: ${_sdds_serv.bodyS.fontWeight};
                ${_emotion.avatarTokens.counterLetterSpacing}: ${_sdds_serv.bodyS.letterSpacing};
                ${_emotion.avatarTokens.counterLineHeight}: ${_sdds_serv.bodyS.lineHeight};
            `,
            l: (0, _emotion.css)`
                ${_emotion.avatarTokens.avatarSize}: 3rem;
                ${_emotion.avatarTokens.fontSize}: 1.25rem;
                ${_emotion.avatarTokens.fontWeight}: 600;
                ${_emotion.avatarTokens.lineHeight}: 1.25rem;
                ${_emotion.avatarTokens.statusIconSize}: 0.5rem;
                ${_emotion.avatarTokens.borderRadius}: 0.75rem;

                ${_emotion.avatarTokens.extraPlacementFactor}: 2;

                ${_emotion.avatarTokens.badgeBorderRadius}: 0.375rem;
                ${_emotion.avatarTokens.badgeHeight}: 1.25rem;
                ${_emotion.avatarTokens.badgePadding}: 0 0.438rem;
                ${_emotion.avatarTokens.badgePaddingIconOnly}: 0 0.25rem;

                ${_emotion.avatarTokens.badgeFontFamily}: ${_sdds_serv.bodyXXS.fontFamily};
                ${_emotion.avatarTokens.badgeFontSize}: ${_sdds_serv.bodyXXS.fontSize};
                ${_emotion.avatarTokens.badgeFontStyle}: ${_sdds_serv.bodyXXS.fontStyle};
                ${_emotion.avatarTokens.badgeFontWeight}: ${_sdds_serv.bodyXXS.fontWeight};
                ${_emotion.avatarTokens.badgeLetterSpacing}: ${_sdds_serv.bodyXXS.letterSpacing};
                ${_emotion.avatarTokens.badgeLineHeight}: ${_sdds_serv.bodyXXS.lineHeight};

                ${_emotion.avatarTokens.badgeLeftContentMarginLeft}: -0.063rem;
                ${_emotion.avatarTokens.badgeLeftContentMarginRight}: 0.125rem;

                ${_emotion.avatarTokens.badgeRightContentMarginLeft}: 0.125rem;
                ${_emotion.avatarTokens.badgeRightContentMarginRight}: -0.063rem;
                ${_emotion.avatarTokens.badgePilledBorderRadius}: 1.25rem;

                ${_emotion.avatarTokens.counterBorderRadius}: 1rem;
                ${_emotion.avatarTokens.counterHeight}: 1.25rem;
                ${_emotion.avatarTokens.counterPadding}: 0 0.375rem;
                ${_emotion.avatarTokens.counterFontFamily}: ${_sdds_serv.bodyXXS.fontFamily};
                ${_emotion.avatarTokens.counterFontSize}: ${_sdds_serv.bodyXXS.fontSize};
                ${_emotion.avatarTokens.counterFontStyle}: ${_sdds_serv.bodyXXS.fontStyle};
                ${_emotion.avatarTokens.counterFontWeight}: ${_sdds_serv.bodyXXS.fontWeight};
                ${_emotion.avatarTokens.counterLetterSpacing}: ${_sdds_serv.bodyXXS.letterSpacing};
                ${_emotion.avatarTokens.counterLineHeight}: ${_sdds_serv.bodyXXS.lineHeight};
            `,
            m: (0, _emotion.css)`
                ${_emotion.avatarTokens.avatarSize}: 2.25rem;
                ${_emotion.avatarTokens.fontSize}: 0.875rem;
                ${_emotion.avatarTokens.fontWeight}: 600;
                ${_emotion.avatarTokens.lineHeight}: 0.875rem;
                ${_emotion.avatarTokens.statusIconSize}: 0.5rem;
                ${_emotion.avatarTokens.borderRadius}: 0.625rem;

                ${_emotion.avatarTokens.extraPlacementFactor}: 2;

                ${_emotion.avatarTokens.badgeBorderRadius}: 0.25rem;
                ${_emotion.avatarTokens.badgeHeight}: 1rem;
                ${_emotion.avatarTokens.badgePadding}: 0 0.25rem;
                ${_emotion.avatarTokens.badgePaddingIconOnly}: 0 0.188rem;

                ${_emotion.avatarTokens.badgeFontFamily}: ${_sdds_serv.bodyXXS.fontFamily};
                ${_emotion.avatarTokens.badgeFontSize}: ${_sdds_serv.bodyXXS.fontSize};
                ${_emotion.avatarTokens.badgeFontStyle}: ${_sdds_serv.bodyXXS.fontStyle};
                ${_emotion.avatarTokens.badgeFontWeight}: ${_sdds_serv.bodyXXS.fontWeight};
                ${_emotion.avatarTokens.badgeLetterSpacing}: ${_sdds_serv.bodyXXS.letterSpacing};
                ${_emotion.avatarTokens.badgeLineHeight}: ${_sdds_serv.bodyXXS.lineHeight};

                ${_emotion.avatarTokens.badgeLeftContentMarginLeft}: -0.063rem;
                ${_emotion.avatarTokens.badgeLeftContentMarginRight}: 0.125rem;

                ${_emotion.avatarTokens.badgeRightContentMarginLeft}: 0.125rem;
                ${_emotion.avatarTokens.badgeRightContentMarginRight}: -0.063rem;
                ${_emotion.avatarTokens.badgePilledBorderRadius}: 1.25rem;

                ${_emotion.avatarTokens.counterBorderRadius}: 1rem;
                ${_emotion.avatarTokens.counterHeight}: 1rem;
                ${_emotion.avatarTokens.counterPadding}: 0 0.25rem;
                ${_emotion.avatarTokens.counterFontFamily}: ${_sdds_serv.bodyXXS.fontFamily};
                ${_emotion.avatarTokens.counterFontSize}: ${_sdds_serv.bodyXXS.fontSize};
                ${_emotion.avatarTokens.counterFontStyle}: ${_sdds_serv.bodyXXS.fontStyle};
                ${_emotion.avatarTokens.counterFontWeight}: ${_sdds_serv.bodyXXS.fontWeight};
                ${_emotion.avatarTokens.counterLetterSpacing}: ${_sdds_serv.bodyXXS.letterSpacing};
                ${_emotion.avatarTokens.counterLineHeight}: ${_sdds_serv.bodyXXS.lineHeight};
            `,
            s: (0, _emotion.css)`
                ${_emotion.avatarTokens.avatarSize}: 1.5rem;
                ${_emotion.avatarTokens.fontSize}: 0.5rem;
                ${_emotion.avatarTokens.fontWeight}: 600;
                ${_emotion.avatarTokens.lineHeight}: 0.5rem;
                ${_emotion.avatarTokens.statusIconSize}: 0.375rem;
                ${_emotion.avatarTokens.borderRadius}: 0.5rem;

                ${_emotion.avatarTokens.extraPlacementFactor}: 1;

                ${_emotion.avatarTokens.counterBorderRadius}: 1rem;
                ${_emotion.avatarTokens.counterHeight}: 0.75rem;
                ${_emotion.avatarTokens.counterPadding}: 0 0.125rem;
                ${_emotion.avatarTokens.counterFontFamily}: ${_sdds_serv.bodyXXS.fontFamily};
                ${_emotion.avatarTokens.counterFontSize}: ${_sdds_serv.bodyXXS.fontSize};
                ${_emotion.avatarTokens.counterFontStyle}: ${_sdds_serv.bodyXXS.fontStyle};
                ${_emotion.avatarTokens.counterFontWeight}: ${_sdds_serv.bodyXXS.fontWeight};
                ${_emotion.avatarTokens.counterLetterSpacing}: ${_sdds_serv.bodyXXS.letterSpacing};
                ${_emotion.avatarTokens.counterLineHeight}: ${_sdds_serv.bodyXXS.lineHeight};
            `,
            fit: (0, _emotion.css)`
                ${_emotion.avatarTokens.avatarSize}: 100%;
                ${_emotion.avatarTokens.fontSize}: 0;
                ${_emotion.avatarTokens.fontWeight}: 0;
                ${_emotion.avatarTokens.lineHeight}: 0;
                ${_emotion.avatarTokens.statusIconSize}: 0;
                ${_emotion.avatarTokens.borderRadius}: 50%;
            `
        },
        focused: {
            true: (0, _emotion.css)`
                ${_emotion.avatarTokens.outlineSize}: 0.1rem;
                ${_emotion.avatarTokens.outlineOffset}: -0.2rem;
                ${_emotion.avatarTokens.outlineColor}: ${_sdds_serv.surfaceAccent};
            `
        },
        shape: {
            circled: (0, _emotion.css)`
                ${_emotion.avatarTokens.borderRadius}: 50%;
                ${_emotion.avatarTokens.statusLeft}: calc(0.867 * var(${_emotion.avatarTokens.avatarSize}) - var(${_emotion.avatarTokens.statusIconSize}) / 2);
                ${_emotion.avatarTokens.statusTop}: calc(0.867 * var(${_emotion.avatarTokens.avatarSize}) - var(${_emotion.avatarTokens.statusIconSize}) / 2);
            `,
            rounded: (0, _emotion.css)`
                ${_emotion.avatarTokens.statusLeft}: calc(var(${_emotion.avatarTokens.avatarSize}) - var(${_emotion.avatarTokens.statusIconSize}));
                ${_emotion.avatarTokens.statusTop}: calc(var(${_emotion.avatarTokens.avatarSize}) - var(${_emotion.avatarTokens.statusIconSize}));
            `
        },
        badgeView: {
            default: (0, _emotion.css)`
                ${_emotion.avatarTokens.badgeColor}: ${_sdds_serv.inverseTextPrimary};
                ${_emotion.avatarTokens.badgeBackground}: ${_sdds_serv.surfaceSolidDefault};

                ${_emotion.avatarTokens.badgeColorTransparent}: ${_sdds_serv.textPrimary};
                ${_emotion.avatarTokens.badgeBackgroundTransparent}: ${_sdds_serv.surfaceTransparentSecondary};

                ${_emotion.avatarTokens.badgeColorClear}: ${_sdds_serv.textPrimary};
                ${_emotion.avatarTokens.badgeBackgroundClear}: ${_sdds_serv.surfaceClear};
            `,
            accent: (0, _emotion.css)`
                ${_emotion.avatarTokens.badgeColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.avatarTokens.badgeBackground}: ${_sdds_serv.surfaceAccent};

                ${_emotion.avatarTokens.badgeColorTransparent}: ${_sdds_serv.textAccent};
                ${_emotion.avatarTokens.badgeBackgroundTransparent}: ${_sdds_serv.surfaceTransparentAccent};

                ${_emotion.avatarTokens.badgeColorClear}: ${_sdds_serv.textAccent};
                ${_emotion.avatarTokens.badgeBackgroundClear}: ${_sdds_serv.surfaceClear};
            `,
            positive: (0, _emotion.css)`
                ${_emotion.avatarTokens.badgeColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.avatarTokens.badgeBackground}: ${_sdds_serv.surfacePositive};

                ${_emotion.avatarTokens.badgeColorTransparent}: ${_sdds_serv.textPositive};
                ${_emotion.avatarTokens.badgeBackgroundTransparent}: ${_sdds_serv.surfaceTransparentPositive};

                ${_emotion.avatarTokens.badgeColorClear}: ${_sdds_serv.textPositive};
                ${_emotion.avatarTokens.badgeBackgroundClear}: ${_sdds_serv.surfaceClear};
            `,
            warning: (0, _emotion.css)`
                ${_emotion.avatarTokens.badgeColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.avatarTokens.badgeBackground}: ${_sdds_serv.surfaceWarning};

                ${_emotion.avatarTokens.badgeColorTransparent}: ${_sdds_serv.textWarning};
                ${_emotion.avatarTokens.badgeBackgroundTransparent}: ${_sdds_serv.surfaceTransparentWarning};

                ${_emotion.avatarTokens.badgeColorClear}: ${_sdds_serv.textWarning};
                ${_emotion.avatarTokens.badgeBackgroundClear}: ${_sdds_serv.surfaceClear};
            `,
            negative: (0, _emotion.css)`
                ${_emotion.avatarTokens.badgeColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.avatarTokens.badgeBackground}: ${_sdds_serv.surfaceNegative};

                ${_emotion.avatarTokens.badgeColorTransparent}: ${_sdds_serv.textNegative};
                ${_emotion.avatarTokens.badgeBackgroundTransparent}: ${_sdds_serv.surfaceTransparentNegative};

                ${_emotion.avatarTokens.badgeColorClear}: ${_sdds_serv.textNegative};
                ${_emotion.avatarTokens.badgeBackgroundClear}: ${_sdds_serv.surfaceClear};
            `,
            dark: (0, _emotion.css)`
                ${_emotion.avatarTokens.badgeColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.avatarTokens.badgeBackground}: ${_sdds_serv.onLightSurfaceSolidDefault};

                ${_emotion.avatarTokens.badgeColorTransparent}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.avatarTokens.badgeBackgroundTransparent}: ${_sdds_serv.onLightSurfaceTransparentDeep};

                ${_emotion.avatarTokens.badgeColorClear}: ${_sdds_serv.onLightTextPrimary};
                ${_emotion.avatarTokens.badgeBackgroundClear}: ${_sdds_serv.surfaceClear};
            `,
            light: (0, _emotion.css)`
                ${_emotion.avatarTokens.badgeColor}: ${_sdds_serv.onLightTextPrimary};
                ${_emotion.avatarTokens.badgeBackground}: ${_sdds_serv.onDarkSurfaceSolidDefault};

                ${_emotion.avatarTokens.badgeColorTransparent}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.avatarTokens.badgeBackgroundTransparent}: ${_sdds_serv.onDarkSurfaceTransparentCard};

                ${_emotion.avatarTokens.badgeColorClear}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.avatarTokens.badgeBackgroundClear}: ${_sdds_serv.surfaceClear};
            `
        },
        counterView: {
            default: (0, _emotion.css)`
                ${_emotion.avatarTokens.counterColor}: ${_sdds_serv.inverseTextPrimary};
                ${_emotion.avatarTokens.counterBackground}: ${_sdds_serv.surfaceSolidDefault};
            `,
            accent: (0, _emotion.css)`
                ${_emotion.avatarTokens.counterColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.avatarTokens.counterBackground}: ${_sdds_serv.surfaceAccent};
            `,
            positive: (0, _emotion.css)`
                ${_emotion.avatarTokens.counterColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.avatarTokens.counterBackground}: ${_sdds_serv.surfacePositive};
            `,
            warning: (0, _emotion.css)`
                ${_emotion.avatarTokens.counterColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.avatarTokens.counterBackground}: ${_sdds_serv.surfaceWarning};
            `,
            negative: (0, _emotion.css)`
                ${_emotion.avatarTokens.counterColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.avatarTokens.counterBackground}: ${_sdds_serv.surfaceNegative};
            `,
            dark: (0, _emotion.css)`
                ${_emotion.avatarTokens.counterColor}: ${_sdds_serv.onDarkTextPrimary};
                ${_emotion.avatarTokens.counterBackground}: ${_sdds_serv.onLightSurfaceSolidDefault};
            `,
            light: (0, _emotion.css)`
                ${_emotion.avatarTokens.counterColor}: ${_sdds_serv.onLightTextPrimary};
                ${_emotion.avatarTokens.counterBackground}: ${_sdds_serv.onDarkSurfaceSolidDefault};
            `
        }
    }
};
