"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;
    }
});
const _styledcomponents = /*#__PURE__*/ _interop_require_wildcard(require("styled-components"));
const _Checkbox = require("../Checkbox");
const _mixins = require("../../mixins");
const _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 т.к. используются его части
const mappingOverride = `
    ${_Checkbox.checkboxTokens.labelFontFamily}: var(${_Radioboxtokens.tokens.labelFontFamily});
    ${_Checkbox.checkboxTokens.labelFontSize}: var(${_Radioboxtokens.tokens.labelFontSize});
    ${_Checkbox.checkboxTokens.labelFontStyle}: var(${_Radioboxtokens.tokens.labelFontStyle});
    ${_Checkbox.checkboxTokens.labelFontWeight}: var(${_Radioboxtokens.tokens.labelFontWeight});
    ${_Checkbox.checkboxTokens.labelLetterSpacing}: var(${_Radioboxtokens.tokens.labelLetterSpacing});
    ${_Checkbox.checkboxTokens.labelLineHeight}: var(${_Radioboxtokens.tokens.labelLineHeight});
    ${_Checkbox.checkboxTokens.descriptionMarginTop}: var(${_Radioboxtokens.tokens.descriptionMarginTop});
    ${_Checkbox.checkboxTokens.descriptionFontFamily}: var(${_Radioboxtokens.tokens.descriptionFontFamily});
    ${_Checkbox.checkboxTokens.descriptionFontSize}: var(${_Radioboxtokens.tokens.descriptionFontSize});
    ${_Checkbox.checkboxTokens.descriptionFontStyle}: var(${_Radioboxtokens.tokens.descriptionFontStyle});
    ${_Checkbox.checkboxTokens.descriptionFontWeight}: var(${_Radioboxtokens.tokens.descriptionFontWeight});
    ${_Checkbox.checkboxTokens.descriptionLetterSpacing}: var(${_Radioboxtokens.tokens.descriptionLetterSpacing});
    ${_Checkbox.checkboxTokens.descriptionLineHeight}: var(${_Radioboxtokens.tokens.descriptionLineHeight});

    ${_Checkbox.checkboxTokens.fillColor}: var(${_Radioboxtokens.tokens.fillColor});
    ${_Checkbox.checkboxTokens.labelColor}: var(${_Radioboxtokens.tokens.labelColor});
    ${_Checkbox.checkboxTokens.descriptionColor}: var(${_Radioboxtokens.tokens.descriptionColor});
    ${_Checkbox.checkboxTokens.triggerBorderWidth}: var(${_Radioboxtokens.tokens.triggerBorderWidth});
    ${_Checkbox.checkboxTokens.triggerBorderColor}: var(${_Radioboxtokens.tokens.triggerBorderColor});
    ${_Checkbox.checkboxTokens.triggerBorderCheckedColor}: var(${_Radioboxtokens.tokens.triggerBorderCheckedColor});
    ${_Checkbox.checkboxTokens.triggerBackgroundColor}: var(${_Radioboxtokens.tokens.triggerBackgroundColor});

    ${_Checkbox.checkboxTokens.contentTopOffset}: var(${_Radioboxtokens.tokens.contentTopOffset});
    ${_Checkbox.checkboxTokens.contentLeftOffset}: var(${_Radioboxtokens.tokens.contentLeftOffset});
    ${_Checkbox.checkboxTokens.triggerSize}: var(${_Radioboxtokens.tokens.triggerSize});
    ${_Checkbox.checkboxTokens.triggerBorderRadius}: var(${_Radioboxtokens.tokens.triggerBorderRadius});
    ${_Checkbox.checkboxTokens.triggerPadding}: var(${_Radioboxtokens.tokens.triggerPadding});
`;
const StyledEllipse = _styledcomponents.default.div.withConfig({
    displayName: "Radiobox.styles__StyledEllipse",
    componentId: "sc-93902a85-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);
const 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)());
