import { defineComponent as p, useCssModule as d, inject as _, openBlock as r, createElementBlock as c, normalizeClass as u, unref as o, toDisplayString as f, createCommentVNode as y, renderSlot as b } from "vue";
import "es-toolkit/compat";
import "es-toolkit";
import "./Module.keys-DcqBbvvT.js";
import "./DataView.keys-aSOnA4AD.js";
import "./Illustration.vue_vue_type_script_setup_true_lang-Bs1KwoBm.js";
import "@leaflink/snitch";
import { T as h } from "./Table.keys-LHQf6FEH.js";
import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
const k = {
  key: 0,
  class: "text-xs font-medium text-ice-900 lg:hidden"
}, T = /* @__PURE__ */ p({
  __name: "TableCell",
  props: {
    isControl: { type: Boolean, default: !1 },
    mobileHeader: { default: "" }
  },
  setup(n) {
    const l = n, t = d(), a = _(h.key);
    if (!a)
      throw new Error("TableCell must be used within a Table component");
    const { density: e, hasActions: i, layout: s } = a;
    return (m, B) => (r(), c("td", {
      class: u(["stash-table-cell", [
        o(t).root,
        o(t)[`layout--${o(s)}`],
        {
          [o(t)["root--density-compact"]]: o(e) === "compact",
          [o(t)["root--density-comfortable"]]: o(e) === "comfortable",
          [o(t)["has-actions"]]: o(i),
          "p-3": o(s) === "scroll",
          "p-1.5": o(s) === "stack",
          "lg:p-3": o(e) === "compact",
          "lg:px-3 lg:py-6": o(e) === "comfortable",
          [o(t)["is-control"]]: l.isControl
        }
      ]]),
      "data-test": "stash-table-cell"
    }, [
      l.mobileHeader && o(s) === "stack" ? (r(), c("div", k, f(l.mobileHeader), 1)) : y("", !0),
      b(m.$slots, "default")
    ], 2));
  }
}), x = "_root_sA1pt", g = {
  root: x,
  "layout--scroll": "_layout--scroll_C2fYG",
  "has-actions": "_has-actions_5QS8Q",
  "layout--stack": "_layout--stack_WJQVU",
  "is-control": "_is-control_8hwYD",
  "root--density-comfortable": "_root--density-comfortable_o95tS"
}, w = {
  $style: g
}, j = /* @__PURE__ */ C(T, [["__cssModules", w]]);
export {
  j as default
};
//# sourceMappingURL=TableCell.js.map
