import { defineComponent, createVNode, Transition, withDirectives, mergeProps, vShow } from 'vue';
import { getTransitionProps } from '../_util/components/transition.mjs';

var Mask = /* @__PURE__ */ defineComponent({
  compatConfig: {
    MODE: 3
  },
  name: "Mask",
  props: {
    prefixCls: String,
    visible: Boolean,
    motionName: String,
    maskProps: Object
  },
  setup(props) {
    return () => {
      const {
        prefixCls,
        visible,
        maskProps,
        motionName
      } = props;
      const transitionProps = getTransitionProps(motionName);
      return createVNode(Transition, transitionProps, {
        default: () => [withDirectives(createVNode("div", mergeProps({
          "class": `${prefixCls}-mask`
        }, maskProps), null), [[vShow, visible]])]
      });
    };
  }
});

export { Mask as default };
//# sourceMappingURL=Mask.mjs.map
