"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _react = require("react");
var _native = _interopRequireWildcard(require("react-content-loader/native"));
var _color = require("../../../../core/utils/color");
var _reactNativeSafeAreaContext = require("react-native-safe-area-context");
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
const CategoryListSkeleton = ({
  themeStyle,
  amount = 4
}) => {
  const {
    backgroundColor,
    foregroundColor
  } = (0, _color.getSkeletonBackgrounColor)(themeStyle);
  const itemHeight = 60; // Height for each item (circle + rect)
  const circleSize = 40; // Circle diameter

  return /*#__PURE__*/React.createElement(_reactNativeSafeAreaContext.SafeAreaView, {
    style: {
      flex: 1
    }
  }, /*#__PURE__*/React.createElement(_native.default, {
    height: 400,
    width: 400,
    speed: 1,
    viewBox: "0 0 400 400",
    backgroundColor: backgroundColor,
    foregroundColor: foregroundColor
  }, Array.from({
    length: amount
  }, (_, index) => {
    const yPosition = index * itemHeight;
    return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_native.Circle, {
      cx: 15,
      cy: yPosition + circleSize / 2,
      r: circleSize / 2
    }), /*#__PURE__*/React.createElement(_native.Rect, {
      x: 60,
      y: yPosition + (circleSize - 10) / 2 // Center vertically with circle
      ,
      rx: "4",
      ry: "4",
      width: "140",
      height: "10"
    }));
  })));
};
var _default = exports.default = /*#__PURE__*/(0, _react.memo)(CategoryListSkeleton);
//# sourceMappingURL=CategoryListSkeleton.js.map