import { defineComponent, useSlots, resolveComponent, createBlock, openBlock, mergeProps, toHandlers, unref, createSlots, withCtx, renderSlot } from 'vue';
import '../../../../utils/index.mjs';
import { tourStepEmits } from 'element-plus/es/components/tour/index';
import { tourStepEmits as tourStepEmits$1, tourStepProps } from './tourStep.mjs';
import { getGmEvent } from '../../../../utils/src/elementPlus/event.mjs';

var _sfc_main = /* @__PURE__ */ defineComponent({
  ...{
    name: "GmTourStep"
  },
  __name: "TourStep",
  props: tourStepProps,
  emits: tourStepEmits$1,
  setup(__props, { emit: __emit }) {
    const slots = useSlots();
    const props = __props;
    const emit = __emit;
    const elEvents = getGmEvent(tourStepEmits, emit);
    return (_ctx, _cache) => {
      const _component_el_tour_step = resolveComponent("el-tour-step");
      return openBlock(), createBlock(
        _component_el_tour_step,
        mergeProps({ ref: "elRef" }, props, toHandlers(unref(elEvents))),
        createSlots({
          _: 2
          /* DYNAMIC */
        }, [
          unref(slots).default ? {
            name: "default",
            fn: withCtx(() => [
              renderSlot(_ctx.$slots, "default")
            ]),
            key: "0"
          } : void 0,
          unref(slots).header ? {
            name: "header",
            fn: withCtx(() => [
              renderSlot(_ctx.$slots, "header")
            ]),
            key: "1"
          } : void 0
        ]),
        1040
        /* FULL_PROPS, DYNAMIC_SLOTS */
      );
    };
  }
});

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