"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 StyledBackgroundCircle () {
        return StyledBackgroundCircle;
    },
    get StyledContent () {
        return StyledContent;
    },
    get StyledProgressCircle () {
        return StyledProgressCircle;
    },
    get StyledSVG () {
        return StyledSVG;
    },
    get base () {
        return base;
    }
});
const _styledcomponents = /*#__PURE__*/ _interop_require_wildcard(require("styled-components"));
const _ProgressBarCirculartokens = require("./ProgressBarCircular.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;
}
const base = (0, _styledcomponents.css)([
    `position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(`,
    `);height:var(`,
    `);`
], _ProgressBarCirculartokens.tokens.height, _ProgressBarCirculartokens.tokens.height);
const StyledSVG = _styledcomponents.default.svg.withConfig({
    displayName: "ProgressBarCircular.styles__StyledSVG",
    componentId: "sc-35f28ada-0"
})([
    `width:100%;height:100%;`
]);
const StyledBackgroundCircle = _styledcomponents.default.circle.withConfig({
    displayName: "ProgressBarCircular.styles__StyledBackgroundCircle",
    componentId: "sc-35f28ada-1"
})([
    `fill:none;r:`,
    `;stroke:var(`,
    `);stroke-width:`,
    `;`
], ({ customStrokeWidth = `var(${_ProgressBarCirculartokens.tokens.strokeSize})` })=>`calc(50px - calc(calc(50px / var(${_ProgressBarCirculartokens.tokens.size})) * ${customStrokeWidth}))`, _ProgressBarCirculartokens.tokens.backgroundStroke, ({ customStrokeWidth = `var(${_ProgressBarCirculartokens.tokens.strokeSize})` })=>`calc(calc(50px / var(${_ProgressBarCirculartokens.tokens.size})) * calc(${customStrokeWidth}) * 2)`);
const StyledProgressCircle = _styledcomponents.default.circle.withConfig({
    displayName: "ProgressBarCircular.styles__StyledProgressCircle",
    componentId: "sc-35f28ada-2"
})([
    `--percentage:`,
    `;--radius:`,
    `;--circumference:calc(calc(2 * 3.1415926535) * var(--radius));--dashoffset:`,
    `;fill:none;stroke:var(`,
    `);stroke-width:`,
    `;stroke-linecap:round;r:var(--radius);stroke-dasharray:var(--circumference);stroke-dashoffset:var(--dashoffset);transition:stroke-dashoffset 0.3s linear;`
], ({ percent })=>percent ?? 0, ({ customStrokeWidth = `var(${_ProgressBarCirculartokens.tokens.strokeSize})` })=>`calc(50px - calc(calc(50px / var(${_ProgressBarCirculartokens.tokens.size})) * ${customStrokeWidth}))`, ({ reverse })=>reverse ? 'calc((var(--percentage, 0) * var(--circumference) / 100) - var(--circumference))' : 'calc(var(--circumference) - (var(--percentage, 0) * var(--circumference) / 100))', _ProgressBarCirculartokens.tokens.progressStroke, ({ customStrokeWidth = `var(${_ProgressBarCirculartokens.tokens.strokeSize})` })=>`calc(calc(50px / var(${_ProgressBarCirculartokens.tokens.size})) * calc(${customStrokeWidth}) * 2)`);
const StyledContent = _styledcomponents.default.div.withConfig({
    displayName: "ProgressBarCircular.styles__StyledContent",
    componentId: "sc-35f28ada-3"
})([
    `position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:var(`,
    `);font-family:var(`,
    `);font-size:var(`,
    `);font-style:var(`,
    `);font-weight:var(`,
    `);letter-spacing:var(`,
    `);line-height:var(`,
    `);display:flex;align-items:center;justify-content:center;`
], _ProgressBarCirculartokens.tokens.contentColor, _ProgressBarCirculartokens.tokens.contentFontFamily, _ProgressBarCirculartokens.tokens.contentFontSize, _ProgressBarCirculartokens.tokens.contentFontStyle, _ProgressBarCirculartokens.tokens.contentFontWeight, _ProgressBarCirculartokens.tokens.contentLetterSpacing, _ProgressBarCirculartokens.tokens.contentLineHeight);
