'use strict';

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

var vue = require('vue');

"use strict";
const _hoisted_1 = { key: 0 };
const __default__ = vue.defineComponent({
  name: "me-env"
});
var script = /* @__PURE__ */ vue.defineComponent({
  ...__default__,
  props: {
    envFn: { type: Function, required: true },
    env: { type: String, required: true, default: "dev" }
  },
  setup(__props) {
    const props = __props;
    const isShow = vue.computed(() => {
      const res = props.envFn();
      const envArr = props.env.split(",");
      if (envArr.includes(res)) {
        return true;
      }
      return false;
    });
    return (_ctx, _cache) => {
      return isShow.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
        vue.renderSlot(_ctx.$slots, "default")
      ])) : vue.createCommentVNode("v-if", true);
    };
  }
});

exports.default = script;
//# sourceMappingURL=env.vue2.js.map
