"use strict";
var __webpack_require__ = {};
(()=>{
    __webpack_require__.d = (exports1, definition)=>{
        for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
            enumerable: true,
            get: definition[key]
        });
    };
})();
(()=>{
    __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
})();
(()=>{
    __webpack_require__.r = (exports1)=>{
        if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
            value: 'Module'
        });
        Object.defineProperty(exports1, '__esModule', {
            value: true
        });
    };
})();
var __webpack_exports__ = {};
__webpack_require__.r(__webpack_exports__);
__webpack_require__.d(__webpack_exports__, {
    ApCircularProgress: ()=>ApCircularProgress
});
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
const material_namespaceObject = require("@mui/material");
const system_namespaceObject = require("@mui/system");
const rotateAnimation = (0, system_namespaceObject.keyframes)`
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
`;
function ApCircularProgress(props) {
    const { color = 'var(--color-primary)', size = 64, style } = props;
    const thickness = size / 8;
    const ringSize = size - thickness;
    return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Box, {
        "data-testid": "ap-circular-progress",
        "data-size": size,
        style: style,
        sx: {
            display: 'flex',
            alignItems: 'center',
            justifyContent: 'center',
            width: size,
            height: size
        },
        children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.Box, {
            "data-testid": "ap-circular-progress-ring",
            "data-color": color,
            sx: {
                position: 'relative',
                width: ringSize,
                height: ringSize,
                '& > div': {
                    position: 'absolute',
                    width: ringSize,
                    height: ringSize,
                    border: `${thickness}px solid transparent`,
                    borderRadius: '50%',
                    animation: `${rotateAnimation} 2s cubic-bezier(0.5, 0, 0.5, 1) infinite`,
                    borderTopColor: color
                },
                '& > div:nth-of-type(1)': {
                    animationDelay: '-0.45s'
                },
                '& > div:nth-of-type(2)': {
                    animationDelay: '-0.3s'
                },
                '& > div:nth-of-type(3)': {
                    animationDelay: '-0.15s'
                }
            },
            children: [
                /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {}),
                /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {}),
                /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {}),
                /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {})
            ]
        })
    });
}
exports.ApCircularProgress = __webpack_exports__.ApCircularProgress;
for(var __rspack_i in __webpack_exports__)if (-1 === [
    "ApCircularProgress"
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
Object.defineProperty(exports, '__esModule', {
    value: true
});
