import { defineComponent as E, useSlots as _, computed as l, openBlock as o, createElementBlock as a, normalizeClass as p, createElementVNode as u, renderSlot as d, createCommentVNode as c } from "vue";
import { C as n } from "./base-PQGakkrl.js";
const B = {
  key: 0,
  class: "card-head"
}, k = {
  key: 0,
  class: "card-head-flex"
}, C = { class: "card-title" }, $ = {
  key: 1,
  class: "card-title"
}, x = {
  key: 2,
  class: "card-explain"
}, I = {
  key: 1,
  class: "card-footer"
}, T = /* @__PURE__ */ E({
  name: "ClCard",
  __name: "Index",
  props: {
    className: {},
    classBody: {},
    theme: {},
    isInnerPadZero: { type: Boolean },
    isHeadFlex: { type: Boolean }
  },
  setup(i) {
    const r = _(), s = i, m = l(() => typeof r.headTitle < "u"), f = l(() => typeof r.headExplain < "u"), h = l(() => typeof r.foot < "u"), y = l(() => {
      const e = {
        "card-box": !0
      };
      return n.isEmpty(s.className) || s.className?.split(" ").forEach((t) => {
        n.isEmpty(t) || (e[t] = !0);
      }), e[`card-${s.theme || "default"}`] = !0, e;
    }), v = l(() => {
      const e = {
        "card-body": !0,
        "card-body-padding-0": s.isInnerPadZero || !1
      };
      return n.isEmpty(s.classBody) || s.classBody?.split(" ").forEach((t) => {
        n.isEmpty(t) || (e[t] = !0);
      }), e;
    });
    return (e, t) => (o(), a("div", {
      class: p(y.value)
    }, [
      m.value ? (o(), a("div", B, [
        i.isHeadFlex ? (o(), a("div", k, [
          u("div", C, [
            d(e.$slots, "headTitle")
          ]),
          d(e.$slots, "headFlex")
        ])) : (o(), a("div", $, [
          d(e.$slots, "headTitle")
        ])),
        f.value ? (o(), a("div", x, [
          d(e.$slots, "headExplain")
        ])) : c("", !0)
      ])) : c("", !0),
      u("div", {
        class: p(v.value)
      }, [
        d(e.$slots, "default")
      ], 2),
      h.value ? (o(), a("div", I, [
        d(e.$slots, "foot")
      ])) : c("", !0)
    ], 2));
  }
});
export {
  T as _
};
//# sourceMappingURL=Index.vue_vue_type_script_setup_true_lang-B3Jxjv3S.js.map
