import { defineComponent as l, onMounted as d, provide as s, computed as i, openBlock as u, createBlock as p, unref as e, normalizeClass as b, withCtx as c, renderSlot as m } from "vue";
import n from "@leaflink/snitch";
import { M as v } from "./Module.keys-DcqBbvvT.js";
import { _ as f } from "./Box.vue_vue_type_script_setup_true_lang-DYXudgbs.js";
import { M as t } from "./Module.types-B1FfGGac.js";
const M = /* @__PURE__ */ l({
  name: "ll-module",
  __name: "Module",
  props: {
    variant: { default: "box" },
    includeDataviewPagination: { type: Boolean, default: !1 },
    disablePadding: { type: Boolean },
    disableGutters: { type: Boolean },
    disableElevation: { type: Boolean },
    radius: {}
  },
  setup(o) {
    const a = o;
    return d(() => {
      a.variant === "card" && n.warn('Card Modules are no longer a thing. You\'re probably looking for `<RadioGroup variant="card">`.'), a.variant === "list" && n.warn("Only used with deprecated ListView component. Use `table` variant with `Table` component instead.");
    }), s(v.key, {
      variant: i(() => a.variant),
      includeDataviewPagination: i(() => a.includeDataviewPagination)
    }), (r, g) => (u(), p(f, {
      class: b(["stash-module flex flex-col", {
        "bg-transparent shadow": a.variant === e(t).Table,
        "border border-ice-500": a.variant === e(t).Card,
        "mb-6 bg-transparent shadow-none lg:shadow": a.variant === e(t).List
      }]),
      "data-test": "stash-module",
      "disable-gutters": a.disableGutters,
      "disable-padding": a.disablePadding || ["card", "list", "table"].includes(a.variant),
      "disable-elevation": a.disableElevation || a.variant === e(t).Table || a.variant === e(t).Card || a.variant === e(t).List
    }, {
      default: c(() => [
        m(r.$slots, "default")
      ]),
      _: 3
    }, 8, ["class", "disable-gutters", "disable-padding", "disable-elevation"]));
  }
});
export {
  v as MODULE_INJECTION,
  t as ModuleVariant,
  M as default
};
//# sourceMappingURL=Module.js.map
