import { defineComponent as m, computed as d, openBlock as o, createElementBlock as a, normalizeClass as p, createElementVNode as r, createTextVNode as u, toDisplayString as f, renderSlot as n, Fragment as h } from "vue";
import { C as i } from "../Shared/base-PQGakkrl.js";
const y = {
  key: 0,
  class: "portlet-head"
}, N = { class: "portlet-title" }, E = { class: "portlet-body" }, C = /* @__PURE__ */ m({
  name: "ClPortlet",
  __name: "Index",
  props: {
    titleName: String,
    className: {
      type: String,
      default: ""
    },
    isShowHead: {
      type: Boolean,
      default: !0
    }
  },
  setup(t) {
    const l = t, c = d(() => {
      const e = {
        portlet: !0
      };
      return i.isEmpty(l.className) || l.className.split(" ").forEach((s) => {
        i.isEmpty(s) || (e[s] = !0);
      }), e;
    });
    return (e, s) => (o(), a("div", {
      class: p(c.value)
    }, [
      t.isShowHead ? (o(), a("div", y, [
        r("h3", N, [
          u(f(t.titleName), 1),
          n(e.$slots, "titleExtend")
        ])
      ])) : (o(), a(h, { key: 1 }, [], 64)),
      r("div", E, [
        n(e.$slots, "default")
      ])
    ], 2));
  }
});
export {
  C as default
};
//# sourceMappingURL=ClPortlet.js.map
