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

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

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

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

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

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

                ${_styledcomponents.avatarTokens.extraPlacementFactor}: 2;

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

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

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

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

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

                ${_styledcomponents.avatarTokens.extraPlacementFactor}: 2;

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

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

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

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

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

                ${_styledcomponents.avatarTokens.extraPlacementFactor}: 1;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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