import { ref as v, computed as w, resolveComponent as h, createElementBlock as o, openBlock as t, createCommentVNode as n, createElementVNode as i, renderSlot as l, normalizeClass as k, createBlock as z, unref as c } from "vue";
import { _ as C, C as u, I as r } from "./install-BuMO14Rb.js";
const P = { class: "wt-dual-panel" }, y = {
  key: 0,
  class: "wt-dual-panel__header"
}, B = {
  key: 1,
  class: "wt-dual-panel__actions-panel"
}, S = { class: "wt-dual-panel__content" }, $ = { class: "wt-dual-panel__main" }, E = {
  __name: "wt-dual-panel",
  props: {
    hideHeader: {
      type: Boolean,
      default: !1
    },
    actionsPanel: {
      type: Boolean,
      default: !0
    },
    disableResize: {
      type: Boolean,
      default: !1
    }
  },
  emits: [
    "update:side-panel-size"
  ],
  setup(s, { emit: p }) {
    const _ = p, e = v(!1), m = () => {
      e.value = !e.value, _("update:side-panel-size", d.value);
    }, d = w(
      () => e.value ? u.SM : u.MD
    );
    return (a, A) => {
      const f = h("wt-icon-action");
      return t(), o("section", P, [
        s.hideHeader ? n("", !0) : (t(), o("div", y, [
          l(a.$slots, "header", {}, void 0, !0)
        ])),
        s.actionsPanel ? (t(), o("div", B, [
          l(a.$slots, "actions-panel", {}, void 0, !0)
        ])) : n("", !0),
        i("div", S, [
          i("div", {
            class: k([[`wt-dual-panel__side-panel--${d.value}`], "wt-dual-panel__side-panel"])
          }, [
            s.disableResize ? n("", !0) : (t(), z(f, {
              key: 0,
              action: e.value ? c(r).EXPAND : c(r).COLLAPSE,
              class: "wt-dual-panel__icon-action",
              size: "sm",
              onClick: m
            }, null, 8, ["action"])),
            e.value ? n("", !0) : l(a.$slots, "side-panel", { key: 1 }, void 0, !0)
          ], 2),
          i("div", $, [
            l(a.$slots, "main", {}, void 0, !0)
          ])
        ])
      ]);
    };
  }
}, N = /* @__PURE__ */ C(E, [["__scopeId", "data-v-e4059034"]]);
export {
  N as default
};
