function _tagged_template_literal(strings, raw) {
    if (!raw) {
        raw = strings.slice(0);
    }
    return Object.freeze(Object.defineProperties(strings, {
        raw: {
            value: Object.freeze(raw)
        }
    }));
}
function _templateObject() {
    var data = _tagged_template_literal([
        "\n                ",
        ": var(--text-accent);\n                ",
        ": var(--text-negative);\n                ",
        ": var(--surface-negative);\n\n                ",
        ": var(--text-primary);\n                ",
        ": var(--inverse-text-primary);\n                ",
        ": var(--text-tertiary);\n                ",
        ": var(--inverse-text-tertiary);\n                ",
        ": var(--surface-accent);\n                ",
        ": var(--surface-accent);\n                ",
        ": var(--surface-solid-default);\n\n                ",
        ": var(--inverse-text-primary);\n                ",
        ": var(--surface-solid-default);\n                ",
        ": var(--inverse-text-primary);\n                ",
        ": var(--inverse-text-primary-hover);\n                ",
        ": var(--surface-solid-default-hover);\n                ",
        ": var(--inverse-text-primary);\n                ",
        ": var(--inverse-text-primary-active);\n                ",
        ": var(--surface-solid-default-active);\n\n                ",
        ": 0.4;\n\n                ",
        ": inherit;\n                ",
        ": inherit;\n            "
    ]);
    _templateObject = function _templateObject() {
        return data;
    };
    return data;
}
function _templateObject1() {
    var data = _tagged_template_literal([
        "\n                ",
        ": var(--text-accent);\n                ",
        ": var(--text-negative);\n                ",
        ": var(--surface-negative);\n\n                ",
        ": var(--text-primary);\n                ",
        ": var(--text-primary);\n                ",
        ": var(--text-tertiary);\n                ",
        ": var(--text-tertiary);\n                ",
        ": var(--surface-accent);\n                ",
        ": var(--surface-accent);\n                ",
        ": var(--surface-transparent-secondary);\n\n                ",
        ": var(--text-primary);\n                ",
        ": var(--surface-transparent-secondary);\n                ",
        ": var(--text-primary);\n                ",
        ": var(--text-primary-hover);\n                ",
        ": var(--surface-transparent-secondary-hover);\n                ",
        ": var(--text-primary);\n                ",
        ": var(--text-primary-active);\n                ",
        ": var(--surface-transparent-secondary-active);\n\n                ",
        ": 0.4;\n\n                ",
        ": inherit;\n                ",
        ": inherit;\n            "
    ]);
    _templateObject1 = function _templateObject() {
        return data;
    };
    return data;
}
function _templateObject2() {
    var data = _tagged_template_literal([
        "\n                ",
        ": var(--text-accent);\n                ",
        ": var(--inverse-text-primary);\n                ",
        ": var(--text-negative);\n                ",
        ": var(--surface-negative);\n\n                ",
        ": var(--text-primary);\n                ",
        ": var(--inverse-text-primary);\n                ",
        ": var(--text-tertiary);\n                ",
        ": var(--inverse-text-tertiary);\n                ",
        ": var(--surface-accent);\n                ",
        ": var(--light-background-primary);\n                ",
        ": var(--surface-accent);\n\n                ",
        ": var(--inverse-text-primary);\n                ",
        ": var(--surface-accent);\n                ",
        ": var(--inverse-text-primary);\n                ",
        ": var(--inverse-text-primary-hover);\n                ",
        ": var(--surface-accent-hover);\n                ",
        ": var(--inverse-text-primary);\n                ",
        ": var(--inverse-text-primary-active);\n                ",
        ": var(--surface-accent-active);\n\n                ",
        ": 0.4;\n\n                ",
        ": inherit;\n                ",
        ": inherit;\n            "
    ]);
    _templateObject2 = function _templateObject() {
        return data;
    };
    return data;
}
function _templateObject3() {
    var data = _tagged_template_literal([
        "\n                ",
        ": var(--text-accent);\n                ",
        ": var(--text-negative);\n                ",
        ": var(--surface-negative);\n\n                ",
        ": var(--text-primary);\n                ",
        ": var(--text-primary);\n                ",
        ": var(--text-tertiary);\n                ",
        ": var(--text-tertiary);\n                ",
        ": var(--surface-accent);\n                ",
        ": var(--surface-accent);\n                ",
        ": transparent;\n\n                ",
        ": var(--text-primary);\n                ",
        ": transparent;\n                ",
        ": var(--text-primary);\n                ",
        ": var(--text-primary-hover);\n                ",
        ": transparent;\n                ",
        ": var(--text-primary);\n                ",
        ": var(--surface-transparent-secondary);\n                ",
        ": transparent;\n\n                ",
        ": 0.4;\n\n                ",
        ": inherit;\n                ",
        ": inherit;\n            "
    ]);
    _templateObject3 = function _templateObject() {
        return data;
    };
    return data;
}
function _templateObject4() {
    var data = _tagged_template_literal([
        "\n                ",
        ": 11.75rem;\n                ",
        ": 3.5rem;\n                ",
        ": 3.5rem;\n                ",
        ": 1.5rem;\n                ",
        ": var(--plasma-typo-body-l-font-family);\n                ",
        ": var(--plasma-typo-body-l-font-size);\n                ",
        ": var(--plasma-typo-body-l-font-style);\n                ",
        ": var(--plasma-typo-body-l-bold-font-weight);\n                ",
        ": var(--plasma-typo-body-l-letter-spacing);\n                ",
        ": var(--plasma-typo-body-l-line-height);\n\n                ",
        ": 0.875rem;\n                ",
        ": 0.375rem;\n\n                ",
        ": 0 0.125rem;\n                ",
        ": 0.875rem;\n                ",
        ": 3.5rem;\n                ",
        ": 0.063rem;\n                ",
        ": 1.063rem 1.125rem;\n\n                ",
        ": var(--plasma-typo-body-l-font-family);\n                ",
        ": var(--plasma-typo-body-l-font-size);\n                ",
        ": var(--plasma-typo-body-l-font-style);\n                ",
        ": var(--plasma-typo-body-l-font-weight);\n                ",
        ": var(--plasma-typo-body-l-letter-spacing);\n                ",
        ": var(--plasma-typo-body-l-line-height);\n\n                ",
        ": 0.25rem;\n                ",
        ": 0.25rem;\n\n                ",
        ": 1.375rem;\n            "
    ]);
    _templateObject4 = function _templateObject() {
        return data;
    };
    return data;
}
function _templateObject5() {
    var data = _tagged_template_literal([
        "\n                ",
        ": 10.25rem;\n                ",
        ": 3rem;\n                ",
        ": 3rem;\n                ",
        ": 1.25rem;\n                ",
        ": var(--plasma-typo-body-m-font-family);\n                ",
        ": var(--plasma-typo-body-m-font-size);\n                ",
        ": var(--plasma-typo-body-m-font-style);\n                ",
        ": var(--plasma-typo-body-m-bold-font-weight);\n                ",
        ": var(--plasma-typo-body-m-letter-spacing);\n                ",
        ": var(--plasma-typo-body-m-line-height);\n\n                ",
        ": 0.75rem;\n                ",
        ": 0.25rem;\n\n                ",
        ": 0 0.125rem;\n                ",
        ": 0.75rem;\n                ",
        ": 3rem;\n                ",
        ": 0.063rem;\n                ",
        ": 0.875rem 1rem;\n\n                ",
        ": var(--plasma-typo-body-m-font-family);\n                ",
        ": var(--plasma-typo-body-m-font-size);\n                ",
        ": var(--plasma-typo-body-m-font-style);\n                ",
        ": var(--plasma-typo-body-m-font-weight);\n                ",
        ": var(--plasma-typo-body-m-letter-spacing);\n                ",
        ": var(--plasma-typo-body-m-line-height);\n\n                ",
        ": 0.25rem;\n                ",
        ": 0.25rem;\n\n                ",
        ": 1.375rem;\n            "
    ]);
    _templateObject5 = function _templateObject() {
        return data;
    };
    return data;
}
function _templateObject6() {
    var data = _tagged_template_literal([
        "\n                ",
        ": 8.75rem;\n                ",
        ": 2.5rem;\n                ",
        ": 2.5rem;\n                ",
        ": 1rem;\n                ",
        ": var(--plasma-typo-body-s-font-family);\n                ",
        ": var(--plasma-typo-body-s-font-size);\n                ",
        ": var(--plasma-typo-body-s-font-style);\n                ",
        ": var(--plasma-typo-body-s-bold-font-weight);\n                ",
        ": var(--plasma-typo-body-s-letter-spacing);\n                ",
        ": var(--plasma-typo-body-s-line-height);\n\n                ",
        ": 0.625rem;\n                ",
        ": 0.25rem;\n\n                ",
        ": 0 0.125rem;\n                ",
        ": 0.625rem;\n                ",
        ": 2.5rem;\n                ",
        ": 0.063rem;\n                ",
        ": 0.688rem 0.875rem;\n\n                ",
        ": var(--plasma-typo-body-s-font-family);\n                ",
        ": var(--plasma-typo-body-s-font-size);\n                ",
        ": var(--plasma-typo-body-s-font-style);\n                ",
        ": var(--plasma-typo-body-s-font-weight);\n                ",
        ": var(--plasma-typo-body-s-letter-spacing);\n                ",
        ": var(--plasma-typo-body-s-line-height);\n\n                ",
        ": 0.25rem;\n                ",
        ": 0.25rem;\n\n                ",
        ": 1.375rem;\n            "
    ]);
    _templateObject6 = function _templateObject() {
        return data;
    };
    return data;
}
function _templateObject7() {
    var data = _tagged_template_literal([
        "\n                ",
        ": 6.875rem;\n                ",
        ": 2rem;\n                ",
        ": 2rem;\n                ",
        ": 0.75rem;\n                ",
        ": var(--plasma-typo-body-xs-font-family);\n                ",
        ": var(--plasma-typo-body-xs-font-size);\n                ",
        ": var(--plasma-typo-body-xs-font-style);\n                ",
        ": var(--plasma-typo-body-xs-bold-font-weight);\n                ",
        ": var(--plasma-typo-body-xs-letter-spacing);\n                ",
        ": var(--plasma-typo-body-xs-line-height);\n\n                ",
        ": 0.5rem;\n                ",
        ": 0.125rem;\n\n                ",
        ": 0 0.125rem;\n                ",
        ": 0.5rem;\n                ",
        ": 2rem;\n                ",
        ": 0.063rem;\n                ",
        ": 0.563rem 0.625rem;\n\n                ",
        ": var(--plasma-typo-body-xs-font-family);\n                ",
        ": var(--plasma-typo-body-xs-font-size);\n                ",
        ": var(--plasma-typo-body-xs-font-style);\n                ",
        ": var(--plasma-typo-body-xs-font-weight);\n                ",
        ": var(--plasma-typo-body-xs-letter-spacing);\n                ",
        ": var(--plasma-typo-body-xs-line-height);\n\n                ",
        ": 0.25rem;\n                ",
        ": 0.25rem;\n\n                ",
        ": 1rem;\n            "
    ]);
    _templateObject7 = function _templateObject() {
        return data;
    };
    return data;
}
function _templateObject8() {
    var data = _tagged_template_literal([
        ""
    ]);
    _templateObject8 = function _templateObject() {
        return data;
    };
    return data;
}
function _templateObject9() {
    var data = _tagged_template_literal([
        "\n                ",
        ": 50%;\n            "
    ]);
    _templateObject9 = function _templateObject() {
        return data;
    };
    return data;
}
function _templateObject10() {
    var data = _tagged_template_literal([
        "\n                ",
        ": var(--surface-transparent-tertiary);\n                ",
        ": var(--text-secondary);\n            "
    ]);
    _templateObject10 = function _templateObject() {
        return data;
    };
    return data;
}
function _templateObject11() {
    var data = _tagged_template_literal([
        "\n                ",
        ": transparent;\n                ",
        ": transparent;\n            "
    ]);
    _templateObject11 = function _templateObject() {
        return data;
    };
    return data;
}
function _templateObject12() {
    var data = _tagged_template_literal([
        ""
    ]);
    _templateObject12 = function _templateObject() {
        return data;
    };
    return data;
}
function _templateObject13() {
    var data = _tagged_template_literal([
        ""
    ]);
    _templateObject13 = function _templateObject() {
        return data;
    };
    return data;
}
function _templateObject14() {
    var data = _tagged_template_literal([
        "\n                ",
        ": 0;\n            "
    ]);
    _templateObject14 = function _templateObject() {
        return data;
    };
    return data;
}
function _templateObject15() {
    var data = _tagged_template_literal([
        "\n                ",
        ": 0.4;\n            "
    ]);
    _templateObject15 = function _templateObject() {
        return data;
    };
    return data;
}
import { css, numberInputTokens as tokens } from '@salutejs/plasma-new-hope/styled-components';
export var config = {
    defaults: {
        view: 'default',
        size: 'l',
        shape: 'cornered',
        inputBackgroundType: 'fill'
    },
    variations: {
        view: {
            default: css(_templateObject(), tokens.caretColor, tokens.errorColor, tokens.borderErrorColor, tokens.color, tokens.colorSolid, tokens.additionalTextColor, tokens.additionalTextColorSolid, tokens.borderColorFocus, tokens.borderColorSolidFocus, tokens.backgroundColorSolid, tokens.iconButtonColor, tokens.iconButtonBackgroundColor, tokens.iconButtonColorHover, tokens.iconButtonColorSolidHover, tokens.iconButtonBackgroundColorHover, tokens.iconButtonColorActive, tokens.iconButtonColorSolidActive, tokens.iconButtonBackgroundColorActive, tokens.actionButtonDisabledOpacity, tokens.loaderSpinnerColor, tokens.loaderSpinnerColorSolid),
            secondary: css(_templateObject1(), tokens.caretColor, tokens.errorColor, tokens.borderErrorColor, tokens.color, tokens.colorSolid, tokens.additionalTextColor, tokens.additionalTextColorSolid, tokens.borderColorFocus, tokens.borderColorSolidFocus, tokens.backgroundColorSolid, tokens.iconButtonColor, tokens.iconButtonBackgroundColor, tokens.iconButtonColorHover, tokens.iconButtonColorSolidHover, tokens.iconButtonBackgroundColorHover, tokens.iconButtonColorActive, tokens.iconButtonColorSolidActive, tokens.iconButtonBackgroundColorActive, tokens.actionButtonDisabledOpacity, tokens.loaderSpinnerColor, tokens.loaderSpinnerColorSolid),
            accent: css(_templateObject2(), tokens.caretColor, tokens.caretColorSolid, tokens.errorColor, tokens.borderErrorColor, tokens.color, tokens.colorSolid, tokens.additionalTextColor, tokens.additionalTextColorSolid, tokens.borderColorFocus, tokens.borderColorSolidFocus, tokens.backgroundColorSolid, tokens.iconButtonColor, tokens.iconButtonBackgroundColor, tokens.iconButtonColorHover, tokens.iconButtonColorSolidHover, tokens.iconButtonBackgroundColorHover, tokens.iconButtonColorActive, tokens.iconButtonColorSolidActive, tokens.iconButtonBackgroundColorActive, tokens.actionButtonDisabledOpacity, tokens.loaderSpinnerColor, tokens.loaderSpinnerColorSolid),
            clear: css(_templateObject3(), tokens.caretColor, tokens.errorColor, tokens.borderErrorColor, tokens.color, tokens.colorSolid, tokens.additionalTextColor, tokens.additionalTextColorSolid, tokens.borderColorFocus, tokens.borderColorSolidFocus, tokens.backgroundColorSolid, tokens.iconButtonColor, tokens.iconButtonBackgroundColor, tokens.iconButtonColorHover, tokens.iconButtonColorSolidHover, tokens.iconButtonBackgroundColorHover, tokens.iconButtonColorActive, tokens.backgroundColorFocus, tokens.iconButtonBackgroundColorActive, tokens.actionButtonDisabledOpacity, tokens.loaderSpinnerColor, tokens.loaderSpinnerColorSolid)
        },
        size: {
            l: css(_templateObject4(), tokens.rootMinWidth, tokens.iconButtonHeight, tokens.iconButtonWidth, tokens.iconButtonPadding, tokens.iconButtonFontFamily, tokens.iconButtonFontSize, tokens.iconButtonFontStyle, tokens.iconButtonFontWeight, tokens.iconButtonLetterSpacing, tokens.iconButtonLineHeight, tokens.iconButtonRadius, tokens.iconButtonSegmentationRadius, tokens.inputWrapperMargin, tokens.inputWrapperBorderRadius, tokens.textWrapperHeight, tokens.inputWrapperBorderWidth, tokens.textWrapperPadding, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.textBeforeMarginRight, tokens.textAfterMarginLeft, tokens.loaderSpinnerSize),
            m: css(_templateObject5(), tokens.rootMinWidth, tokens.iconButtonHeight, tokens.iconButtonWidth, tokens.iconButtonPadding, tokens.iconButtonFontFamily, tokens.iconButtonFontSize, tokens.iconButtonFontStyle, tokens.iconButtonFontWeight, tokens.iconButtonLetterSpacing, tokens.iconButtonLineHeight, tokens.iconButtonRadius, tokens.iconButtonSegmentationRadius, tokens.inputWrapperMargin, tokens.inputWrapperBorderRadius, tokens.textWrapperHeight, tokens.inputWrapperBorderWidth, tokens.textWrapperPadding, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.textBeforeMarginRight, tokens.textAfterMarginLeft, tokens.loaderSpinnerSize),
            s: css(_templateObject6(), tokens.rootMinWidth, tokens.iconButtonHeight, tokens.iconButtonWidth, tokens.iconButtonPadding, tokens.iconButtonFontFamily, tokens.iconButtonFontSize, tokens.iconButtonFontStyle, tokens.iconButtonFontWeight, tokens.iconButtonLetterSpacing, tokens.iconButtonLineHeight, tokens.iconButtonRadius, tokens.iconButtonSegmentationRadius, tokens.inputWrapperMargin, tokens.inputWrapperBorderRadius, tokens.textWrapperHeight, tokens.inputWrapperBorderWidth, tokens.textWrapperPadding, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.textBeforeMarginRight, tokens.textAfterMarginLeft, tokens.loaderSpinnerSize),
            xs: css(_templateObject7(), tokens.rootMinWidth, tokens.iconButtonHeight, tokens.iconButtonWidth, tokens.iconButtonPadding, tokens.iconButtonFontFamily, tokens.iconButtonFontSize, tokens.iconButtonFontStyle, tokens.iconButtonFontWeight, tokens.iconButtonLetterSpacing, tokens.iconButtonLineHeight, tokens.iconButtonRadius, tokens.iconButtonSegmentationRadius, tokens.inputWrapperMargin, tokens.inputWrapperBorderRadius, tokens.textWrapperHeight, tokens.inputWrapperBorderWidth, tokens.textWrapperPadding, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.textBeforeMarginRight, tokens.textAfterMarginLeft, tokens.loaderSpinnerSize)
        },
        shape: {
            cornered: css(_templateObject8()),
            pilled: css(_templateObject9(), tokens.iconButtonRadius)
        },
        inputBackgroundType: {
            fill: css(_templateObject10(), tokens.borderColor, tokens.borderColorHover),
            clear: css(_templateObject11(), tokens.borderColor, tokens.borderColorHover)
        },
        segmentation: {
            default: css(_templateObject12()),
            segmented: css(_templateObject13()),
            solid: css(_templateObject14(), tokens.iconButtonSegmentationRadius)
        },
        disabled: {
            true: css(_templateObject15(), tokens.disabledOpacity)
        }
    }
};
