"use client";
import { jsx as l, Fragment as c } from "react/jsx-runtime";
import { getPinnedStyle as i } from "../data-table.service.js";
import { cn as a } from "../../../../../lib/utils.js";
import { TableRow as s, TableCell as u } from "../../../table.js";
import { Skeleton as d } from "../../../skeleton.js";
function w({
  skeletonRowCount: n,
  table: m,
  pinnedOffsets: r
}) {
  return /* @__PURE__ */ l(c, { children: Array.from({ length: n }).map((f, o) => /* @__PURE__ */ l(s, { children: m.getHeaderGroups()[0].headers.map((e, t) => /* @__PURE__ */ l(
    u,
    {
      "data-column-id": e.column.id,
      className: a(
        "border-0",
        e.column.columnDef.meta?.pinned && "bg-d-background z-[50]"
      ),
      style: i(
        e.column.id,
        r,
        e.column.columnDef.meta?.pinned,
        !1
      ),
      children: /* @__PURE__ */ l(d, { className: "h-6 w-full" })
    },
    `skeleton-cell-${o}-${t}`
  )) }, `skeleton-row-${o}`)) });
}
export {
  w as SkeletonRows
};
