"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "config", {
    enumerable: true,
    get: function() {
        return config;
    }
});
var _styledcomponents = require("@salutejs/plasma-new-hope/styled-components");
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(--plasma-typo-body-s-font-family);\n                ",
        ": var(--plasma-typo-body-s-font-style);\n                ",
        ": var(--plasma-typo-body-s-font-weight);\n                ",
        ": var(--plasma-typo-body-s-line-height);\n                ",
        ": var(--plasma-typo-body-s-font-size);\n                ",
        ": var(--plasma-typo-body-s-letter-spacing);\n                ",
        ": var(--plasma-typo-body-xs-font-family);\n                ",
        ": var(--plasma-typo-body-xs-font-style);\n                ",
        ": var(--plasma-typo-body-xs-font-weight);\n                ",
        ": var(--plasma-typo-body-xs-line-height);\n                ",
        ": var(--plasma-typo-body-xs-font-size);\n                ",
        ": var(--plasma-typo-body-xs-letter-spacing);\n                ",
        ": 0.25rem;\n                ",
        ": 0.75rem;\n            "
    ]);
    _templateObject = function _templateObject() {
        return data;
    };
    return data;
}
function _templateObject1() {
    var data = _tagged_template_literal([
        "\n                ",
        ": var(--plasma-typo-body-m-font-family);\n                ",
        ": var(--plasma-typo-body-m-font-style);\n                ",
        ": var(--plasma-typo-body-m-font-weight);\n                ",
        ": var(--plasma-typo-body-m-line-height);\n                ",
        ": var(--plasma-typo-body-m-font-size);\n                ",
        ": var(--plasma-typo-body-m-letter-spacing);\n                ",
        ": var(--plasma-typo-body-s-font-family);\n                ",
        ": var(--plasma-typo-body-s-font-style);\n                ",
        ": var(--plasma-typo-body-s-font-weight);\n                ",
        ": var(--plasma-typo-body-s-line-height);\n                ",
        ": var(--plasma-typo-body-s-font-size);\n                ",
        ": var(--plasma-typo-body-xs-letter-spacing);\n                ",
        ": 0.25rem;\n                ",
        ": 0.75rem;\n            "
    ]);
    _templateObject1 = function _templateObject() {
        return data;
    };
    return data;
}
function _templateObject2() {
    var data = _tagged_template_literal([
        "\n                ",
        ": var(--plasma-typo-body-l-font-family);\n                ",
        ": var(--plasma-typo-body-l-font-style);\n                ",
        ": var(--plasma-typo-body-l-font-weight);\n                ",
        ": var(--plasma-typo-body-l-line-height);\n                ",
        ": var(--plasma-typo-body-l-font-size);\n                ",
        ": var(--plasma-typo-body-l-letter-spacing);\n                ",
        ": var(--plasma-typo-body-m-font-family);\n                ",
        ": var(--plasma-typo-body-m-font-style);\n                ",
        ": var(--plasma-typo-body-m-font-weight);\n                ",
        ": var(--plasma-typo-body-m-line-height);\n                ",
        ": var(--plasma-typo-body-m-font-size);\n                ",
        ": var(--plasma-typo-body-xs-letter-spacing);\n                ",
        ": 0.25rem;\n                ",
        ": 0.75rem;\n            "
    ]);
    _templateObject2 = function _templateObject() {
        return data;
    };
    return data;
}
function _templateObject3() {
    var data = _tagged_template_literal([
        "\n                ",
        ": 2.75rem;\n                ",
        ": 1.75rem;\n                ",
        ": calc(var(",
        ") / 2);\n                ",
        ": 1.5rem;\n                ",
        ": calc(var(",
        ") / 2);\n                ",
        ": 0.125rem;\n                ",
        ": 0.125rem;\n                ",
        ": 1.25;\n            "
    ]);
    _templateObject3 = function _templateObject() {
        return data;
    };
    return data;
}
function _templateObject4() {
    var data = _tagged_template_literal([
        "\n                ",
        ": 2rem;\n                ",
        ": 1.25rem;\n                ",
        ": calc(var(",
        ") / 2);\n                ",
        ": 1rem;\n                ",
        ": calc(var(",
        ") / 2);\n                ",
        ": 0.125rem;\n                ",
        ": 0.125rem;\n                ",
        ": 1.25;\n            "
    ]);
    _templateObject4 = function _templateObject() {
        return data;
    };
    return data;
}
function _templateObject5() {
    var data = _tagged_template_literal([
        "\n                ",
        ": var(--text-primary);\n                ",
        ": var(--text-secondary);\n                ",
        ": initial;\n                ",
        ": var(--surface-accent);\n                ",
        ": var(--surface-accent-hover);\n                ",
        ": var(--surface-transparent-tertiary);\n                ",
        ": var(--surface-transparent-tertiary-hover);\n                ",
        ": 0;\n                ",
        ": 0;\n                ",
        ": var(--on-dark-surface-solid-default);\n                ",
        ": var(--on-dark-surface-solid-default);\n                ",
        ": 0 1px 1px rgba(0, 0, 0, 0.11);\n            "
    ]);
    _templateObject5 = function _templateObject() {
        return data;
    };
    return data;
}
function _templateObject6() {
    var data = _tagged_template_literal([
        "\n                ",
        ": 0.4;\n            "
    ]);
    _templateObject6 = function _templateObject() {
        return data;
    };
    return data;
}
function _templateObject7() {
    var data = _tagged_template_literal([
        "\n                ",
        ": var(--surface-accent);\n            "
    ]);
    _templateObject7 = function _templateObject() {
        return data;
    };
    return data;
}
var config = {
    defaults: {
        view: 'default',
        size: 'm',
        toggleSize: 'l',
        labelPosition: 'before',
        focused: 'true'
    },
    variations: {
        size: {
            s: (0, _styledcomponents.css)(_templateObject(), _styledcomponents.switchTokens.fontFamily, _styledcomponents.switchTokens.fontStyle, _styledcomponents.switchTokens.fontWeight, _styledcomponents.switchTokens.lineHeight, _styledcomponents.switchTokens.fontSize, _styledcomponents.switchTokens.letterSpacing, _styledcomponents.switchTokens.descriptionFontFamily, _styledcomponents.switchTokens.descriptionFontStyle, _styledcomponents.switchTokens.descriptionFontWeight, _styledcomponents.switchTokens.descriptionLineHeight, _styledcomponents.switchTokens.descriptionFontSize, _styledcomponents.switchTokens.descriptionLetterSpacing, _styledcomponents.switchTokens.verticalGap, _styledcomponents.switchTokens.labelOffset),
            m: (0, _styledcomponents.css)(_templateObject1(), _styledcomponents.switchTokens.fontFamily, _styledcomponents.switchTokens.fontStyle, _styledcomponents.switchTokens.fontWeight, _styledcomponents.switchTokens.lineHeight, _styledcomponents.switchTokens.fontSize, _styledcomponents.switchTokens.letterSpacing, _styledcomponents.switchTokens.descriptionFontFamily, _styledcomponents.switchTokens.descriptionFontStyle, _styledcomponents.switchTokens.descriptionFontWeight, _styledcomponents.switchTokens.descriptionLineHeight, _styledcomponents.switchTokens.descriptionFontSize, _styledcomponents.switchTokens.descriptionLetterSpacing, _styledcomponents.switchTokens.verticalGap, _styledcomponents.switchTokens.labelOffset),
            l: (0, _styledcomponents.css)(_templateObject2(), _styledcomponents.switchTokens.fontFamily, _styledcomponents.switchTokens.fontStyle, _styledcomponents.switchTokens.fontWeight, _styledcomponents.switchTokens.lineHeight, _styledcomponents.switchTokens.fontSize, _styledcomponents.switchTokens.letterSpacing, _styledcomponents.switchTokens.descriptionFontFamily, _styledcomponents.switchTokens.descriptionFontStyle, _styledcomponents.switchTokens.descriptionFontWeight, _styledcomponents.switchTokens.descriptionLineHeight, _styledcomponents.switchTokens.descriptionFontSize, _styledcomponents.switchTokens.descriptionLetterSpacing, _styledcomponents.switchTokens.verticalGap, _styledcomponents.switchTokens.labelOffset)
        },
        toggleSize: {
            l: (0, _styledcomponents.css)(_templateObject3(), _styledcomponents.switchTokens.trackWidth, _styledcomponents.switchTokens.trackHeight, _styledcomponents.switchTokens.trackBorderRadius, _styledcomponents.switchTokens.trackHeight, _styledcomponents.switchTokens.thumbSize, _styledcomponents.switchTokens.thumbBorderRadius, _styledcomponents.switchTokens.thumbSize, _styledcomponents.switchTokens.thumbOffsetOn, _styledcomponents.switchTokens.thumbOffsetOff, _styledcomponents.switchTokens.thumbPressScale),
            s: (0, _styledcomponents.css)(_templateObject4(), _styledcomponents.switchTokens.trackWidth, _styledcomponents.switchTokens.trackHeight, _styledcomponents.switchTokens.trackBorderRadius, _styledcomponents.switchTokens.trackHeight, _styledcomponents.switchTokens.thumbSize, _styledcomponents.switchTokens.thumbBorderRadius, _styledcomponents.switchTokens.thumbSize, _styledcomponents.switchTokens.thumbOffsetOn, _styledcomponents.switchTokens.thumbOffsetOff, _styledcomponents.switchTokens.thumbPressScale)
        },
        view: {
            default: (0, _styledcomponents.css)(_templateObject5(), _styledcomponents.switchTokens.labelColor, _styledcomponents.switchTokens.descriptionColor, _styledcomponents.switchTokens.descriptionMaxLines, _styledcomponents.switchTokens.trackBackgroundColorOn, _styledcomponents.switchTokens.trackBackgroundColorOnHover, _styledcomponents.switchTokens.trackBackgroundColorOff, _styledcomponents.switchTokens.trackBackgroundColorOffHover, _styledcomponents.switchTokens.trackBorderWidthOn, _styledcomponents.switchTokens.trackBorderWidthOff, _styledcomponents.switchTokens.thumbBackgroundColorOn, _styledcomponents.switchTokens.thumbBackgroundColorOff, _styledcomponents.switchTokens.thumbBoxShadow)
        },
        disabled: {
            true: (0, _styledcomponents.css)(_templateObject6(), _styledcomponents.switchTokens.disabledOpacity)
        },
        focused: {
            true: (0, _styledcomponents.css)(_templateObject7(), _styledcomponents.switchTokens.trackFocusColor)
        }
    }
};
