import { defineComponent as m, useSlots as c, ref as i, onBeforeMount as p, inject as f, openBlock as a, createElementBlock as r, normalizeClass as h, unref as e, createElementVNode as d, renderSlot as s, createCommentVNode as _ } from "vue";
import { M as u } from "./Module.keys-DcqBbvvT.js";
import { M as n } from "./Module.types-B1FfGGac.js";
const v = {
  key: 0,
  class: "stash-module-content__top-slots flex flex-wrap items-center justify-between",
  "data-test": "stash-module-content|top-slots"
}, M = {
  class: "mb-6 mr-6",
  "data-test": "stash-module-content|top-left-slot"
}, b = {
  class: "mb-6",
  "data-test": "stash-module-content|top-right-slot"
}, k = /* @__PURE__ */ m({
  name: "ll-module-content",
  __name: "ModuleContent",
  setup(C) {
    const l = c(), o = i();
    return p(() => {
      const t = f(u.key, u.defaults);
      if (!t.variant)
        throw new Error("ModuleContent must be used within a Module component.");
      o.value = t.variant.value;
    }), (t, w) => (a(), r("div", {
      class: h(["stash-module-content flex-1", {
        "px-3 py-6 lg:px-6": o.value === e(n).Card,
        "border-t border-ice-200": o.value === e(n).Table || o.value === e(n).List
      }]),
      "data-test": "stash-module-content"
    }, [
      e(l)["top-left"] || e(l)["top-right"] ? (a(), r("div", v, [
        d("div", M, [
          s(t.$slots, "top-left")
        ]),
        d("div", b, [
          s(t.$slots, "top-right")
        ])
      ])) : _("", !0),
      s(t.$slots, "default")
    ], 2));
  }
});
export {
  k as default
};
//# sourceMappingURL=ModuleContent.js.map
