'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var vue = require('vue');
var elementPlus = require('element-plus');
var index = require('../../../../hooks/base/useGlobalConfig/index.js');
var configProvider = require('./configProvider.js');

var _sfc_main = /* @__PURE__ */ vue.defineComponent({
  ...{
    name: "GmConfigProvider"
  },
  __name: "ConfigProvider",
  props: configProvider.configProviderProps,
  setup(__props, { expose: __expose }) {
    const slots = vue.useSlots();
    const props = __props;
    elementPlus.provideGlobalConfig(props);
    index.provideGlobalConfig({
      message: props.message
    });
    const elRef = vue.ref();
    __expose({
      elRef
    });
    return (_ctx, _cache) => {
      const _component_el_config_provider = vue.resolveComponent("el-config-provider");
      return vue.openBlock(), vue.createBlock(
        _component_el_config_provider,
        vue.mergeProps({
          ref_key: "elRef",
          ref: elRef
        }, props),
        vue.createSlots({
          _: 2
          /* DYNAMIC */
        }, [
          vue.unref(slots).default ? {
            name: "default",
            fn: vue.withCtx((slotValue) => [
              vue.renderSlot(_ctx.$slots, "default", vue.normalizeProps(vue.guardReactiveProps(slotValue)))
            ]),
            key: "0"
          } : void 0
        ]),
        1040
        /* FULL_PROPS, DYNAMIC_SLOTS */
      );
    };
  }
});

exports.default = _sfc_main;
//# sourceMappingURL=ConfigProvider.vue2.js.map
