import { defineComponent, useSlots, ref, resolveComponent, createBlock, openBlock, mergeProps, createSlots, withCtx, unref, renderSlot } from 'vue';
import '../../../../utils/index.mjs';
import { splitterProps } from './splitter.mjs';
import { getGmExports } from '../../../../utils/src/elementPlus/exports.mjs';

var _sfc_main = /* @__PURE__ */ defineComponent({
  ...{
    name: "GmSplitter"
  },
  __name: "Splitter",
  props: splitterProps,
  setup(__props, { expose: __expose }) {
    const slots = useSlots();
    const props = __props;
    const elRef = ref();
    const exposeNames = [];
    const { exposeFns } = getGmExports(elRef, exposeNames);
    __expose({
      ...exposeFns
    });
    return (_ctx, _cache) => {
      const _component_el_splitter = resolveComponent("el-splitter");
      return openBlock(), createBlock(
        _component_el_splitter,
        mergeProps({
          ref_key: "elRef",
          ref: elRef
        }, props),
        createSlots({
          _: 2
          /* DYNAMIC */
        }, [
          unref(slots).default ? {
            name: "default",
            fn: withCtx(() => [
              renderSlot(_ctx.$slots, "default")
            ]),
            key: "0"
          } : void 0,
          unref(slots)["start-collapsible"] ? {
            name: "start-collapsible",
            fn: withCtx(() => [
              renderSlot(_ctx.$slots, "start-collapsible")
            ]),
            key: "1"
          } : void 0,
          unref(slots)["end-collapsible"] ? {
            name: "end-collapsible",
            fn: withCtx(() => [
              renderSlot(_ctx.$slots, "end-collapsible")
            ]),
            key: "2"
          } : void 0
        ]),
        1040
        /* FULL_PROPS, DYNAMIC_SLOTS */
      );
    };
  }
});

export { _sfc_main as default };
//# sourceMappingURL=Splitter.vue2.mjs.map
