anarock-widgets 1.0.78 → 1.0.79

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -45817,12 +45817,12 @@ const TE = [
45817
45817
  }
45818
45818
  );
45819
45819
  };
45820
- function Ene({ data: e = [] }) {
45820
+ function Ene({ data: e = {} }) {
45821
45821
  console.log(e, "request box data");
45822
- const t = Array.isArray(e) ? e?.request_box_by_type?.map((n) => ({
45822
+ const t = Array.isArray(e?.request_box_by_type) ? e.request_box_by_type.map((n) => ({
45823
45823
  title: n.category_name || "—",
45824
- total: n.total || 0,
45825
- pending: n.pending || 0
45824
+ total: Number(n.total) || 0,
45825
+ pending: Number(n.pending) || 0
45826
45826
  })) : [];
45827
45827
  return /* @__PURE__ */ w.jsx(
45828
45828
  dt,
@@ -45837,18 +45837,18 @@ function Ene({ data: e = [] }) {
45837
45837
  children: [
45838
45838
  /* @__PURE__ */ w.jsxs("div", { className: "flex flex-col", children: [
45839
45839
  /* @__PURE__ */ w.jsx("div", { className: "text-[14px] leading-[18px] font-medium text-[#121212]", children: n.title }),
45840
- /* @__PURE__ */ w.jsxs("div", { className: "!text-[12px] leading-[16px] text-[#64748B]", children: [
45840
+ /* @__PURE__ */ w.jsxs("div", { className: "text-[12px] leading-[16px] text-[#64748B]", children: [
45841
45841
  "Total: ",
45842
45842
  n.total
45843
45843
  ] })
45844
45844
  ] }),
45845
45845
  /* @__PURE__ */ w.jsxs("div", { className: "flex flex-col items-end", children: [
45846
45846
  /* @__PURE__ */ w.jsx("div", { className: "text-[14px] leading-[18px] font-medium text-red-700", children: String(n.pending).padStart(2, "0") }),
45847
- /* @__PURE__ */ w.jsx("div", { className: "!text-[12px] leading-[16px] text-[#64748B]", children: "Pending" })
45847
+ /* @__PURE__ */ w.jsx("div", { className: "text-[12px] leading-[16px] text-[#64748B]", children: "Pending" })
45848
45848
  ] })
45849
45849
  ]
45850
45850
  },
45851
- r
45851
+ `${n.title}-${r}`
45852
45852
  )) : /* @__PURE__ */ w.jsx("div", { className: "text-center text-gray-500 py-8", children: "No data available" }) })
45853
45853
  }
45854
45854
  );