import { defineComponent as o, computed as r, openBlock as i, createElementBlock as c, normalizeStyle as m, normalizeClass as p, unref as s, renderSlot as u } from "vue";
import "../config-provider/index.mjs";
import { useNamespace as d } from "../config-provider/hooks/use-namespace.mjs";
const x = /* @__PURE__ */ o({
  name: "InternalSplitterPanel",
  __name: "Panel",
  props: {
    className: {},
    style: { default: () => ({}) },
    min: {},
    max: {},
    size: {},
    collapsible: { type: [Boolean, Object] },
    resizable: { type: Boolean },
    defaultSize: {}
  },
  setup(t) {
    const l = t, { b: a } = d("splitter-panel"), n = r(() => {
      const e = l.size !== void 0;
      return {
        ...l.style,
        flexBasis: e ? `${l.size}px` : "auto",
        flexGrow: e ? 0 : 1
      };
    });
    return (e, f) => (i(), c("div", {
      class: p([s(a)(), { [s(a)("hidden")]: t.size === 0 }, t.className]),
      style: m(n.value)
    }, [
      u(e.$slots, "default")
    ], 6));
  }
});
export {
  x as default
};
