"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
function _export(target, all) {
    for(var name in all)Object.defineProperty(target, name, {
        enumerable: true,
        get: Object.getOwnPropertyDescriptor(all, name).get
    });
}
_export(exports, {
    get StyledEllipse () {
        return StyledEllipse;
    },
    get base () {
        return base;
    }
});
var _styledcomponents = /*#__PURE__*/ _interop_require_wildcard(require("styled-components"));
var _Checkbox = require("../Checkbox");
var _mixins = require("../../mixins");
var _Radioboxtokens = require("./Radiobox.tokens");
function _getRequireWildcardCache(nodeInterop) {
    if (typeof WeakMap !== "function") return null;
    var cacheBabelInterop = new WeakMap();
    var cacheNodeInterop = new WeakMap();
    return (_getRequireWildcardCache = function(nodeInterop) {
        return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
    })(nodeInterop);
}
function _interop_require_wildcard(obj, nodeInterop) {
    if (!nodeInterop && obj && obj.__esModule) {
        return obj;
    }
    if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
        return {
            default: obj
        };
    }
    var cache = _getRequireWildcardCache(nodeInterop);
    if (cache && cache.has(obj)) {
        return cache.get(obj);
    }
    var newObj = {
        __proto__: null
    };
    var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
    for(var key in obj){
        if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
            var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
            if (desc && (desc.get || desc.set)) {
                Object.defineProperty(newObj, key, desc);
            } else {
                newObj[key] = obj[key];
            }
        }
    }
    newObj.default = obj;
    if (cache) {
        cache.set(obj, newObj);
    }
    return newObj;
}
// NOTE: Необходимое переопределение токенов из компонента Checkbox т.к. используются его части
var mappingOverride = "\n    ".concat(_Checkbox.checkboxTokens.labelFontFamily, ": var(").concat(_Radioboxtokens.tokens.labelFontFamily, ");\n    ").concat(_Checkbox.checkboxTokens.labelFontSize, ": var(").concat(_Radioboxtokens.tokens.labelFontSize, ");\n    ").concat(_Checkbox.checkboxTokens.labelFontStyle, ": var(").concat(_Radioboxtokens.tokens.labelFontStyle, ");\n    ").concat(_Checkbox.checkboxTokens.labelFontWeight, ": var(").concat(_Radioboxtokens.tokens.labelFontWeight, ");\n    ").concat(_Checkbox.checkboxTokens.labelLetterSpacing, ": var(").concat(_Radioboxtokens.tokens.labelLetterSpacing, ");\n    ").concat(_Checkbox.checkboxTokens.labelLineHeight, ": var(").concat(_Radioboxtokens.tokens.labelLineHeight, ");\n    ").concat(_Checkbox.checkboxTokens.descriptionMarginTop, ": var(").concat(_Radioboxtokens.tokens.descriptionMarginTop, ");\n    ").concat(_Checkbox.checkboxTokens.descriptionFontFamily, ": var(").concat(_Radioboxtokens.tokens.descriptionFontFamily, ");\n    ").concat(_Checkbox.checkboxTokens.descriptionFontSize, ": var(").concat(_Radioboxtokens.tokens.descriptionFontSize, ");\n    ").concat(_Checkbox.checkboxTokens.descriptionFontStyle, ": var(").concat(_Radioboxtokens.tokens.descriptionFontStyle, ");\n    ").concat(_Checkbox.checkboxTokens.descriptionFontWeight, ": var(").concat(_Radioboxtokens.tokens.descriptionFontWeight, ");\n    ").concat(_Checkbox.checkboxTokens.descriptionLetterSpacing, ": var(").concat(_Radioboxtokens.tokens.descriptionLetterSpacing, ");\n    ").concat(_Checkbox.checkboxTokens.descriptionLineHeight, ": var(").concat(_Radioboxtokens.tokens.descriptionLineHeight, ");\n\n    ").concat(_Checkbox.checkboxTokens.fillColor, ": var(").concat(_Radioboxtokens.tokens.fillColor, ");\n    ").concat(_Checkbox.checkboxTokens.descriptionColor, ": var(").concat(_Radioboxtokens.tokens.descriptionColor, ");\n    ").concat(_Checkbox.checkboxTokens.triggerBorderWidth, ": var(").concat(_Radioboxtokens.tokens.triggerBorderWidth, ");\n    ").concat(_Checkbox.checkboxTokens.triggerBorderColor, ": var(").concat(_Radioboxtokens.tokens.triggerBorderColor, ");\n    ").concat(_Checkbox.checkboxTokens.triggerBorderCheckedColor, ": var(").concat(_Radioboxtokens.tokens.triggerBorderCheckedColor, ");\n    ").concat(_Checkbox.checkboxTokens.triggerBackgroundColor, ": var(").concat(_Radioboxtokens.tokens.triggerBackgroundColor, ");\n\n    ").concat(_Checkbox.checkboxTokens.contentTopOffset, ": var(").concat(_Radioboxtokens.tokens.contentTopOffset, ");\n    ").concat(_Checkbox.checkboxTokens.contentLeftOffset, ": var(").concat(_Radioboxtokens.tokens.contentLeftOffset, ");\n    ").concat(_Checkbox.checkboxTokens.triggerSize, ": var(").concat(_Radioboxtokens.tokens.triggerSize, ");\n    ").concat(_Checkbox.checkboxTokens.triggerBorderRadius, ": var(").concat(_Radioboxtokens.tokens.triggerBorderRadius, ");\n    ").concat(_Checkbox.checkboxTokens.triggerPadding, ": var(").concat(_Radioboxtokens.tokens.triggerPadding, ");\n");
var StyledEllipse = _styledcomponents.default.div.withConfig({
    displayName: "Radiobox.styles__StyledEllipse",
    componentId: "sc-fb115d12-0"
})([
    "width:var(",
    ");height:var(",
    ");border-radius:var(",
    ");background-color:var(",
    ");transition:transform 0.3s ease-in-out;transform:scale(0);input:checked + label &{transform:scale(1);}"
], _Radioboxtokens.tokens.ellipseSize, _Radioboxtokens.tokens.ellipseSize, _Radioboxtokens.tokens.ellipseSize, _Radioboxtokens.tokens.ellipseColor);
var base = (0, _styledcomponents.css)([
    "",
    ";margin:var(",
    ");",
    ";position:relative;align-items:flex-start;display:flex;.",
    "{",
    ";}"
], mappingOverride, _Radioboxtokens.tokens.margin, (0, _mixins.applyNoUserSelect)(), _Radioboxtokens.classes.singleLine, (0, _mixins.applyEllipsis)());
