var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: !0 });
}, __copyProps = (to, from, except, desc) => {
  if (from && typeof from == "object" || typeof from == "function")
    for (let key of __getOwnPropNames(from))
      !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
var RadiantCircle_exports = {};
__export(RadiantCircle_exports, {
  RadiantCircle: () => RadiantCircle
});
module.exports = __toCommonJS(RadiantCircle_exports);
var import_react = require("react"), import_tamagui = require("tamagui"), import_utils = require("./utils"), import_jsx_runtime = require("react/jsx-runtime");
function RadiantCircle({ size = "m" }) {
  const multiple = size === "s" ? 0.5 : size === "m" ? 1 : 1.5, [scales, setScales] = (0, import_react.useState)([1, 1.2, 1.4]);
  return (0, import_react.useEffect)(() => {
    const interval = setInterval(() => {
      setScales(
        (prevScales) => prevScales.map((scale) => scale >= 1.5 ? 1 : scale + 0.1)
      );
    }, 200);
    return () => clearInterval(interval);
  }, []), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
    import_tamagui.Stack,
    {
      position: "relative",
      width: 10 * multiple,
      height: 10 * multiple,
      alignItems: "center",
      justifyContent: "center",
      scale: multiple,
      children: [
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
          import_tamagui.Stack,
          {
            position: "absolute",
            margin: "auto",
            width: 10,
            height: 10,
            borderRadius: 5,
            backgroundColor: (0, import_utils.rgbToRgba)("$success", 0.8)
          }
        ),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
          import_tamagui.Stack,
          {
            width: 15,
            height: 15,
            borderRadius: 7.5,
            backgroundColor: (0, import_utils.rgbToRgba)("$success", 0.4),
            position: "absolute",
            margin: "auto",
            scale: scales[0],
            opacity: scales[0] > 1.2 ? 0.5 : 0,
            style: {
              transition: "transform 0.5s ease-in-out, opacity 0.5s ease-in-out"
            }
          }
        ),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
          import_tamagui.Stack,
          {
            width: 20,
            height: 20,
            borderRadius: 10,
            backgroundColor: (0, import_utils.rgbToRgba)("$success", 0.19),
            position: "absolute",
            margin: "auto",
            scale: scales[1],
            opacity: scales[1] > 1.3 ? 0.3 : 0,
            style: {
              transition: "transform 0.5s ease-in-out, opacity 0.5s ease-in-out"
            }
          }
        ),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
          import_tamagui.Stack,
          {
            width: 25,
            height: 25,
            borderRadius: 12.5,
            backgroundColor: (0, import_utils.rgbToRgba)("$success", 0.2),
            position: "absolute",
            margin: "auto",
            scale: scales[2],
            opacity: scales[2] > 1.4 ? 0.2 : 0,
            style: {
              transition: "transform 0.5s ease-in-out, opacity 0.5s ease-in-out"
            }
          }
        )
      ]
    }
  );
}
//# sourceMappingURL=RadiantCircle.js.map
