import { defineComponent, createVNode, Transition, withDirectives, vShow } from 'vue';
import '../../transition/index.mjs';
import { getTransitionProps } from '../../transition/src/transition.mjs';

var Mask = /* @__PURE__ */ defineComponent({
  compatConfig: {
    MODE: 3
  },
  name: "DialogMask",
  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", {
          "class": `${prefixCls}-mask`,
          ...maskProps
        }, null), [[vShow, visible]])]
      });
    };
  }
});

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