"use strict";
const React = require("react");
const index = require("../ConfigProvider/index.js");
const is = require("../_util/is.js");
const emotionReactJsxRuntime_browser_esm = require("../../../../../../@emotion_react@11.10.4_3toe27fv7etiytxb5kxc7fxaw4/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js");
var __read = globalThis && globalThis.__read || function(o, n) {
  var m = typeof Symbol === "function" && o[Symbol.iterator];
  if (!m)
    return o;
  var i = m.call(o), r, ar = [], e;
  try {
    while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
      ar.push(r.value);
  } catch (error) {
    e = {
      error
    };
  } finally {
    try {
      if (r && !r.done && (m = i["return"]))
        m.call(i);
    } finally {
      if (e)
        throw e.error;
    }
  }
  return ar;
};
var __spreadArray = globalThis && globalThis.__spreadArray || function(to, from, pack) {
  if (pack || arguments.length === 2)
    for (var i = 0, l = from.length, ar; i < l; i++) {
      if (ar || !(i in from)) {
        if (!ar)
          ar = Array.prototype.slice.call(from, 0, i);
        ar[i] = from[i];
      }
    }
  return to.concat(ar || Array.prototype.slice.call(from));
};
function DotLoading(props) {
  var getPrefixCls = React.useContext(index.ConfigContext).getPrefixCls;
  var prefixCls = getPrefixCls("spin") + "-dot";
  var dotStyle = {
    width: props.size,
    height: props.size
  };
  var sizeNumber = props.size ? parseInt(String(props.size)) : 0;
  return /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx("div", {
    className: prefixCls + "-list",
    style: {
      height: props.size,
      width: is.isNumber(sizeNumber) && sizeNumber > 0 ? sizeNumber * 7 : ""
    },
    children: __spreadArray([], __read(new Array(5)), false).map(function(_, index2) {
      return /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx("div", {
        className: prefixCls,
        style: dotStyle
      }, index2);
    })
  });
}
module.exports = DotLoading;
//# sourceMappingURL=dot-loading.js.map
