"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 config = {
    defaults: {
        view: 'default',
        size: 'xxl',
        shape: 'circled'
    },
    variations: {
        view: {
            default: (0, _emotion.css)`
                ${_emotion.avatarTokens.color}: var(--text-accent-gradient);
                ${_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}: var(--surface-positive);
                ${_emotion.avatarTokens.statusOfflineColor}: var(--surface-solid-tertiary);
                ${_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}: var(--plasma-typo-body-s-font-family);
                ${_emotion.avatarTokens.badgeFontSize}: var(--plasma-typo-body-s-font-size);
                ${_emotion.avatarTokens.badgeFontStyle}: var(--plasma-typo-body-s-font-style);
                ${_emotion.avatarTokens.badgeFontWeight}: var(--plasma-typo-body-s-font-weight);
                ${_emotion.avatarTokens.badgeLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
                ${_emotion.avatarTokens.badgeLineHeight}: var(--plasma-typo-body-s-line-height);

                ${_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}: var(--plasma-typo-body-s-font-family);
                ${_emotion.avatarTokens.counterFontSize}: var(--plasma-typo-body-s-font-size);
                ${_emotion.avatarTokens.counterFontStyle}: var(--plasma-typo-body-s-font-style);
                ${_emotion.avatarTokens.counterFontWeight}: var(--plasma-typo-body-s-font-weight);
                ${_emotion.avatarTokens.counterLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
                ${_emotion.avatarTokens.counterLineHeight}: var(--plasma-typo-body-s-line-height);
            `,
            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}: var(--plasma-typo-body-xxs-font-family);
                ${_emotion.avatarTokens.badgeFontSize}: var(--plasma-typo-body-xxs-font-size);
                ${_emotion.avatarTokens.badgeFontStyle}: var(--plasma-typo-body-xxs-font-style);
                ${_emotion.avatarTokens.badgeFontWeight}: var(--plasma-typo-body-xxs-font-weight);
                ${_emotion.avatarTokens.badgeLetterSpacing}: var(--plasma-typo-body-xxs-letter-spacing);
                ${_emotion.avatarTokens.badgeLineHeight}: var(--plasma-typo-body-xxs-line-height);

                ${_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}: var(--plasma-typo-body-xxs-font-family);
                ${_emotion.avatarTokens.counterFontSize}: var(--plasma-typo-body-xxs-font-size);
                ${_emotion.avatarTokens.counterFontStyle}: var(--plasma-typo-body-xxs-font-style);
                ${_emotion.avatarTokens.counterFontWeight}: var(--plasma-typo-body-xxs-font-weight);
                ${_emotion.avatarTokens.counterLetterSpacing}: var(--plasma-typo-body-xxs-letter-spacing);
                ${_emotion.avatarTokens.counterLineHeight}: var(--plasma-typo-body-xxs-line-height);
            `,
            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}: var(--plasma-typo-body-xxs-font-family);
                ${_emotion.avatarTokens.badgeFontSize}: var(--plasma-typo-body-xxs-font-size);
                ${_emotion.avatarTokens.badgeFontStyle}: var(--plasma-typo-body-xxs-font-style);
                ${_emotion.avatarTokens.badgeFontWeight}: var(--plasma-typo-body-xxs-font-weight);
                ${_emotion.avatarTokens.badgeLetterSpacing}: var(--plasma-typo-body-xxs-letter-spacing);
                ${_emotion.avatarTokens.badgeLineHeight}: var(--plasma-typo-body-xxs-line-height);

                ${_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}: var(--plasma-typo-body-xxs-font-family);
                ${_emotion.avatarTokens.counterFontSize}: var(--plasma-typo-body-xxs-font-size);
                ${_emotion.avatarTokens.counterFontStyle}: var(--plasma-typo-body-xxs-font-style);
                ${_emotion.avatarTokens.counterFontWeight}: var(--plasma-typo-body-xxs-font-weight);
                ${_emotion.avatarTokens.counterLetterSpacing}: var(--plasma-typo-body-xxs-letter-spacing);
                ${_emotion.avatarTokens.counterLineHeight}: var(--plasma-typo-body-xxs-line-height);
            `,
            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}: var(--plasma-typo-body-xxs-font-family);
                ${_emotion.avatarTokens.counterFontSize}: var(--plasma-typo-body-xxs-font-size);
                ${_emotion.avatarTokens.counterFontStyle}: var(--plasma-typo-body-xxs-font-style);
                ${_emotion.avatarTokens.counterFontWeight}: var(--plasma-typo-body-xxs-font-weight);
                ${_emotion.avatarTokens.counterLetterSpacing}: var(--plasma-typo-body-xxs-letter-spacing);
                ${_emotion.avatarTokens.counterLineHeight}: var(--plasma-typo-body-xxs-line-height);
            `,
            fit: (0, _emotion.css)`
                ${_emotion.avatarTokens.avatarSize}: 100%;
                ${_emotion.avatarTokens.fontSize}: 0;
                ${_emotion.avatarTokens.fontWeight}: 0;
                ${_emotion.avatarTokens.lineHeight}: 0;
                ${_emotion.avatarTokens.statusIconSize}: 0;
            `
        },
        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}: var(--inverse-text-primary);
                ${_emotion.avatarTokens.badgeBackground}: var(--surface-solid-default);

                ${_emotion.avatarTokens.badgeColorTransparent}: var(--text-primary);
                ${_emotion.avatarTokens.badgeBackgroundTransparent}: var(--surface-transparent-secondary);

                ${_emotion.avatarTokens.badgeColorClear}: var(--text-primary);
                ${_emotion.avatarTokens.badgeBackgroundClear}: var(--surface-clear);
            `,
            accent: (0, _emotion.css)`
                ${_emotion.avatarTokens.badgeColor}: var(--on-dark-text-primary);
                ${_emotion.avatarTokens.badgeBackground}: var(--surface-accent);

                ${_emotion.avatarTokens.badgeColorTransparent}: var(--text-accent);
                ${_emotion.avatarTokens.badgeBackgroundTransparent}: var(--surface-transparent-accent);

                ${_emotion.avatarTokens.badgeColorClear}: var(--text-accent);
                ${_emotion.avatarTokens.badgeBackgroundClear}: var(--surface-clear);
            `,
            positive: (0, _emotion.css)`
                ${_emotion.avatarTokens.badgeColor}: var(--on-dark-text-primary);
                ${_emotion.avatarTokens.badgeBackground}: var(--surface-positive);

                ${_emotion.avatarTokens.badgeColorTransparent}: var(--text-positive);
                ${_emotion.avatarTokens.badgeBackgroundTransparent}: var(--surface-transparent-positive);

                ${_emotion.avatarTokens.badgeColorClear}: var(--text-positive);
                ${_emotion.avatarTokens.badgeBackgroundClear}: var(--surface-clear);
            `,
            warning: (0, _emotion.css)`
                ${_emotion.avatarTokens.badgeColor}: var(--on-dark-text-primary);
                ${_emotion.avatarTokens.badgeBackground}: var(--surface-warning);

                ${_emotion.avatarTokens.badgeColorTransparent}: var(--text-warning);
                ${_emotion.avatarTokens.badgeBackgroundTransparent}: var(--surface-transparent-warning);

                ${_emotion.avatarTokens.badgeColorClear}: var(--text-warning);
                ${_emotion.avatarTokens.badgeBackgroundClear}: var(--surface-clear);
            `,
            negative: (0, _emotion.css)`
                ${_emotion.avatarTokens.badgeColor}: var(--on-dark-text-primary);
                ${_emotion.avatarTokens.badgeBackground}: var(--surface-negative);

                ${_emotion.avatarTokens.badgeColorTransparent}: var(--text-negative);
                ${_emotion.avatarTokens.badgeBackgroundTransparent}: var(--surface-transparent-negative);

                ${_emotion.avatarTokens.badgeColorClear}: var(--text-negative);
                ${_emotion.avatarTokens.badgeBackgroundClear}: var(--surface-clear);
            `,
            dark: (0, _emotion.css)`
                ${_emotion.avatarTokens.badgeColor}: var(--on-dark-text-primary);
                ${_emotion.avatarTokens.badgeBackground}: var(--on-light-surface-solid-default);

                ${_emotion.avatarTokens.badgeColorTransparent}: var(--on-dark-text-primary);
                ${_emotion.avatarTokens.badgeBackgroundTransparent}: var(--on-light-surface-transparent-deep);

                ${_emotion.avatarTokens.badgeColorClear}: var(--on-light-text-primary);
                ${_emotion.avatarTokens.badgeBackgroundClear}: var(--surface-clear);
            `,
            light: (0, _emotion.css)`
                ${_emotion.avatarTokens.badgeColor}: var(--on-light-text-primary);
                ${_emotion.avatarTokens.badgeBackground}: var(--on-dark-surface-solid-default);

                ${_emotion.avatarTokens.badgeColorTransparent}: var(--on-dark-text-primary);
                ${_emotion.avatarTokens.badgeBackgroundTransparent}: var(--on-dark-surface-transparent-card);

                ${_emotion.avatarTokens.badgeColorClear}: var(--on-dark-text-primary);
                ${_emotion.avatarTokens.badgeBackgroundClear}: var(--surface-clear);
            `
        },
        counterView: {
            default: (0, _emotion.css)`
                ${_emotion.avatarTokens.counterColor}: var(--inverse-text-primary);
                ${_emotion.avatarTokens.counterBackground}: var(--surface-solid-default);
            `,
            accent: (0, _emotion.css)`
                ${_emotion.avatarTokens.counterColor}: var(--on-dark-text-primary);
                ${_emotion.avatarTokens.counterBackground}: var(--surface-accent);
            `,
            positive: (0, _emotion.css)`
                ${_emotion.avatarTokens.counterColor}: var(--on-dark-text-primary);
                ${_emotion.avatarTokens.counterBackground}: var(--surface-positive);
            `,
            warning: (0, _emotion.css)`
                ${_emotion.avatarTokens.counterColor}: var(--on-dark-text-primary);
                ${_emotion.avatarTokens.counterBackground}: var(--surface-warning);
            `,
            negative: (0, _emotion.css)`
                ${_emotion.avatarTokens.counterColor}: var(--on-dark-text-primary);
                ${_emotion.avatarTokens.counterBackground}: var(--surface-negative);
            `,
            dark: (0, _emotion.css)`
                ${_emotion.avatarTokens.counterColor}: var(--on-dark-text-primary);
                ${_emotion.avatarTokens.counterBackground}: var(--on-light-surface-solid-default);
            `,
            light: (0, _emotion.css)`
                ${_emotion.avatarTokens.counterColor}: var(--on-light-text-primary);
                ${_emotion.avatarTokens.counterBackground}: var(--on-dark-surface-solid-default);
            `
        }
    }
};
