"use strict";
const vue = require("vue");
const _sfc_main = vue.defineComponent({
  name: "ConditionalTeleport",
  inheritAttrs: false,
  props: {
    to: {
      type: [String, Object],
      default: null
    },
    disabled: {
      type: Boolean,
      required: true
    }
  },
  slots: Object,
  setup(props, { slots }) {
    return () => !props.to ? slots.default?.({}) : vue.h(vue.Teleport, { to: props.to, disabled: props.disabled || !props.to }, [slots.default?.({})]);
  }
});
exports._sfc_main = _sfc_main;
//# sourceMappingURL=ConditionalTeleport.vue_vue_type_script_lang-BL9AAILt.js.map
