"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',
        focused: 'true',
        size: 'm'
    },
    variations: {
        view: {
            default: (0, _styledcomponents.css)`
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonColor}: ${_sdds_serv.textPrimary};
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonBackgroundColor}: ${_sdds_serv.surfaceClear};
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonLoadingBackgroundColor}: var(${_styledcomponents.embedIconButtonTokens.embedIconButtonBackgroundColor});
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonColorHover}: ${_sdds_serv.textPrimaryHover};
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonColorActive}: ${_sdds_serv.textPrimaryActive};
            `,
            accent: (0, _styledcomponents.css)`
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonColor}: ${_sdds_serv.textAccent};
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonBackgroundColor}: ${_sdds_serv.surfaceClear};
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonLoadingBackgroundColor}: var(${_styledcomponents.embedIconButtonTokens.embedIconButtonBackgroundColor});
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonColorHover}: ${_sdds_serv.textAccentHover};
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonColorActive}: ${_sdds_serv.textAccentActive};
            `,
            secondary: (0, _styledcomponents.css)`
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonColor}: ${_sdds_serv.textSecondary};
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonBackgroundColor}: ${_sdds_serv.surfaceClear};
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonLoadingBackgroundColor}: var(${_styledcomponents.embedIconButtonTokens.embedIconButtonBackgroundColor});
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonColorHover}: ${_sdds_serv.textSecondaryHover};
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonColorActive}: ${_sdds_serv.textSecondaryActive};
            `,
            positive: (0, _styledcomponents.css)`
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonColor}: ${_sdds_serv.textPositive};
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonBackgroundColor}: ${_sdds_serv.surfaceClear};
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonLoadingBackgroundColor}: var(${_styledcomponents.embedIconButtonTokens.embedIconButtonBackgroundColor});
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonColorHover}: ${_sdds_serv.textPositiveHover};
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonColorActive}: ${_sdds_serv.textPositiveActive};
            `,
            warning: (0, _styledcomponents.css)`
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonColor}: ${_sdds_serv.textWarning};
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonBackgroundColor}: ${_sdds_serv.surfaceClear};
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonLoadingBackgroundColor}: var(${_styledcomponents.embedIconButtonTokens.embedIconButtonBackgroundColor});
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonColorHover}: ${_sdds_serv.textWarningHover};
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonColorActive}: ${_sdds_serv.textWarningActive};
            `,
            negative: (0, _styledcomponents.css)`
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonColor}: ${_sdds_serv.textNegative};
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonBackgroundColor}: ${_sdds_serv.surfaceClear};
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonLoadingBackgroundColor}: var(${_styledcomponents.embedIconButtonTokens.embedIconButtonBackgroundColor});
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonColorHover}: ${_sdds_serv.textNegativeHover};
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonColorActive}: ${_sdds_serv.textNegativeActive};
            `,
            info: (0, _styledcomponents.css)`
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonColor}: ${_sdds_serv.textInfo};
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonBackgroundColor}: ${_sdds_serv.surfaceClear};
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonLoadingBackgroundColor}: var(${_styledcomponents.embedIconButtonTokens.embedIconButtonBackgroundColor});
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonColorHover}: ${_sdds_serv.textInfoHover};
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonColorActive}: ${_sdds_serv.textInfoActive};
            `
        },
        size: {
            l: (0, _styledcomponents.css)`
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonHeight}: 2.25rem;
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonWidth}: 2.25rem;
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonPadding}: 0rem;
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonRadius}: 0.75rem;
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonFontFamily}: ${_sdds_serv.bodyL.fontFamily};
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonFontSize}: ${_sdds_serv.bodyL.fontSize};
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonFontStyle}: ${_sdds_serv.bodyL.fontStyle};
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonFontWeight}: ${_sdds_serv.bodyLBold.fontWeight};
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonLetterSpacing}: ${_sdds_serv.bodyL.letterSpacing};
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonLineHeight}: ${_sdds_serv.bodyL.lineHeight};

                ${_styledcomponents.embedIconButtonTokens.embedIconButtonSpinnerSize}: 1.75rem;
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonSpinnerColor}: inherit;
            `,
            m: (0, _styledcomponents.css)`
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonHeight}: 1.5rem;
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonWidth}: 1.5rem;
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonPadding}: 0rem;
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonRadius}: 0.625rem;
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonFontFamily}: ${_sdds_serv.bodyM.fontFamily};
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonFontSize}: ${_sdds_serv.bodyM.fontSize};
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonFontStyle}: ${_sdds_serv.bodyM.fontStyle};
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonFontWeight}: ${_sdds_serv.bodyMBold.fontWeight};
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonLetterSpacing}: ${_sdds_serv.bodyM.letterSpacing};
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonLineHeight}: ${_sdds_serv.bodyM.lineHeight};

                ${_styledcomponents.embedIconButtonTokens.embedIconButtonSpinnerSize}: 1.25rem;
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonSpinnerColor}: inherit;
            `,
            s: (0, _styledcomponents.css)`
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonHeight}: 1rem;
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonWidth}: 1rem;
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonPadding}: 0rem;
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonRadius}: 0.5rem;
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonFontFamily}: ${_sdds_serv.bodyS.fontFamily};
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonFontSize}: ${_sdds_serv.bodyS.fontSize};
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonFontStyle}: ${_sdds_serv.bodyS.fontStyle};
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonFontWeight}: ${_sdds_serv.bodySBold.fontWeight};
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonLetterSpacing}: ${_sdds_serv.bodyS.letterSpacing};
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonLineHeight}: ${_sdds_serv.bodyS.lineHeight};

                ${_styledcomponents.embedIconButtonTokens.embedIconButtonSpinnerSize}: 0.75rem;
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonSpinnerColor}: inherit;
            `
        },
        disabled: {
            true: (0, _styledcomponents.css)`
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonDisabledOpacity}: 0.4;
            `
        },
        focused: {
            true: (0, _styledcomponents.css)`
                ${_styledcomponents.embedIconButtonTokens.embedIconButtonFocusColor}: ${_sdds_serv.surfaceAccent};
            `
        }
    }
};
