"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;
    }
});
var _styledcomponents = /*#__PURE__*/ _interop_require_wildcard(require("styled-components"));
var _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;
}
var 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);
var StyledSVG = _styledcomponents.default.svg.withConfig({
    displayName: "ProgressBarCircular.styles__StyledSVG",
    componentId: "sc-d9be2df8-0"
})([
    "width:100%;height:100%;"
]);
var StyledBackgroundCircle = _styledcomponents.default.circle.withConfig({
    displayName: "ProgressBarCircular.styles__StyledBackgroundCircle",
    componentId: "sc-d9be2df8-1"
})([
    "fill:none;r:",
    ";stroke:var(",
    ");stroke-width:",
    ";"
], function(param) {
    var _param_customStrokeWidth = param.customStrokeWidth, customStrokeWidth = _param_customStrokeWidth === void 0 ? "var(".concat(_ProgressBarCirculartokens.tokens.strokeSize, ")") : _param_customStrokeWidth;
    return "calc(50px - calc(calc(50px / var(".concat(_ProgressBarCirculartokens.tokens.size, ")) * ").concat(customStrokeWidth, "))");
}, _ProgressBarCirculartokens.tokens.backgroundStroke, function(param) {
    var _param_customStrokeWidth = param.customStrokeWidth, customStrokeWidth = _param_customStrokeWidth === void 0 ? "var(".concat(_ProgressBarCirculartokens.tokens.strokeSize, ")") : _param_customStrokeWidth;
    return "calc(calc(50px / var(".concat(_ProgressBarCirculartokens.tokens.size, ")) * calc(").concat(customStrokeWidth, ") * 2)");
});
var StyledProgressCircle = _styledcomponents.default.circle.withConfig({
    displayName: "ProgressBarCircular.styles__StyledProgressCircle",
    componentId: "sc-d9be2df8-2"
})([
    "--percentage:",
    ";--radius:",
    ";--circumference:calc(calc(2 * 3.1415926535) * var(--radius));--dashoffset:calc(var(--circumference) - (var(--percentage,0) * var(--circumference) / 100));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;"
], function(param) {
    var percent = param.percent;
    return percent !== null && percent !== void 0 ? percent : 0;
}, function(param) {
    var _param_customStrokeWidth = param.customStrokeWidth, customStrokeWidth = _param_customStrokeWidth === void 0 ? "var(".concat(_ProgressBarCirculartokens.tokens.strokeSize, ")") : _param_customStrokeWidth;
    return "calc(50px - calc(calc(50px / var(".concat(_ProgressBarCirculartokens.tokens.size, ")) * ").concat(customStrokeWidth, "))");
}, _ProgressBarCirculartokens.tokens.progressStroke, function(param) {
    var _param_customStrokeWidth = param.customStrokeWidth, customStrokeWidth = _param_customStrokeWidth === void 0 ? "var(".concat(_ProgressBarCirculartokens.tokens.strokeSize, ")") : _param_customStrokeWidth;
    return "calc(calc(50px / var(".concat(_ProgressBarCirculartokens.tokens.size, ")) * calc(").concat(customStrokeWidth, ") * 2)");
});
var StyledContent = _styledcomponents.default.div.withConfig({
    displayName: "ProgressBarCircular.styles__StyledContent",
    componentId: "sc-d9be2df8-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);
