'use strict';

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

var vue = require('vue');
require('../../transition/index.cjs');
var transition = require('../../transition/src/transition.cjs');

var Mask = /* @__PURE__ */ vue.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 = transition.getTransitionProps(motionName);
      return vue.createVNode(vue.Transition, transitionProps, {
        default: () => [vue.withDirectives(vue.createVNode("div", {
          "class": `${prefixCls}-mask`,
          ...maskProps
        }, null), [[vue.vShow, visible]])]
      });
    };
  }
});

exports.default = Mask;
//# sourceMappingURL=Mask.cjs.map
