'use strict';

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

require('../../../utils/index.js');
require('../../../constants/index.js');
var dialogContent = require('./dialog-content.js');
var runtime = require('../../../utils/vue/props/runtime.js');
var event = require('../../../constants/event.js');
var core = require('@vueuse/core');

const dialogProps = runtime.buildProps({
  ...dialogContent.dialogContentProps,
  appendToBody: {
    type: Boolean,
    default: false
  },
  beforeClose: {
    type: runtime.definePropType(Function)
  },
  submitHandle: {
    type: runtime.definePropType(Function)
  },
  destroyOnClose: {
    type: Boolean,
    default: false
  },
  closeOnClickModal: {
    type: Boolean,
    default: false
  },
  closeOnPressEscape: {
    type: Boolean,
    default: true
  },
  lockScroll: {
    type: Boolean,
    default: true
  },
  modal: {
    type: Boolean,
    default: true
  },
  backgroundClick: {
    type: Boolean,
    default: true
  },
  openDelay: {
    type: Number,
    default: 0
  },
  closeDelay: {
    type: Number,
    default: 0
  },
  top: {
    type: String
  },
  modelValue: {
    type: Boolean,
    default: false
  },
  visible: {
    type: Boolean,
    default: false
  },
  modalClass: String,
  width: {
    type: [String, Number]
  },
  zIndex: {
    type: Number
  },
  isShowFooter: {
    type: Boolean,
    default: true
  },
  isShowHeader: {
    type: Boolean,
    default: true
  },
  cancelText: {
    type: String
  },
  submitText: {
    type: String
  },
  loading: {
    type: Boolean,
    default: false
  },
  trapFocus: {
    type: Boolean,
    default: false
  }
});
const dialogEmits = {
  open: () => true,
  opened: () => true,
  close: () => true,
  closed: () => true,
  handleSubmit: () => true,
  [event.UPDATE_MODEL_EVENT]: (value) => core.isBoolean(value),
  [event.UPDATE_MODEL_VISIBLE]: (value) => core.isBoolean(value),
  openAutoFocus: () => true,
  closeAutoFocus: () => true,
  wrapperClose: () => true
};

exports.dialogEmits = dialogEmits;
exports.dialogProps = dialogProps;
//# sourceMappingURL=dialog.js.map
