/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/@opentiny/vue-dialog-box@3.30.0/lib/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},_extends.apply(null,arguments)}import{defineComponent,$props,$setup,$prefix}from"@opentiny/vue-common";import PcTemplate from"./pc.js";import MobileFirstTemplate from"./mobile-first.js";var template=function(e){var t,o="object"==typeof process?null==(t=process.env)?void 0:t.TINY_MODE:null;return"pc"===(o||e)?PcTemplate:"mobile-first"===(o||e)?MobileFirstTemplate:PcTemplate},$constants={DIALOG_SLIDER_RIGHT:"dialog-slideRight",DIALOG_FADE:"dialog-fade",SELECT_DROPDOWN:$prefix+"SelectDropdown",DROPDOWN_MENU:$prefix+"DropdownMenu",DIALOG_BOX_CLASS:"div.tiny-dialog-box",PC_SCROLL_LOCK_CLASS:"dialog-box__scroll-lock",MOBILE_SCROLL_LOCK_CLASS:"mobile-dialog-box__scroll-lock",DIALOG_BOX_DATA_TAG:"tiny-dialog-box",Mode:"pc",SCROLL_LOCK_CLASS:function(e){return e===this.Mode?this.PC_SCROLL_LOCK_CLASS:this.MOBILE_SCROLL_LOCK_CLASS}},dialogBoxProps=_extends({},$props,{_constants:{type:Object,default:function(){return $constants}},appendToBody:{type:Boolean,default:function(){return!1}},beforeClose:Function,center:{type:Boolean,default:function(){return!1}},closeOnClickModal:{type:Boolean,default:function(){return!0}},closeOnPressEscape:{type:Boolean,default:function(){return!0}},destroyOnClose:{type:Boolean,default:function(){return!1}},dialogClass:{type:String,default:function(){return""}},draggable:{type:Boolean,default:function(){return!1}},dragOutsideWindow:{type:Boolean,default:function(){return!1}},fullscreen:{type:Boolean,default:function(){return!1}},isFormReset:{type:Boolean,default:function(){return!0}},lockScroll:{type:Boolean,default:function(){return!0}},modal:{type:Boolean,default:function(){return!0}},modalAppendToBody:{type:Boolean,default:function(){return!0}},resize:{type:Boolean,default:function(){return!1}},rightSlide:{type:Boolean,default:function(){return!1}},showClose:{type:Boolean,default:function(){return!0}},showHeader:{type:Boolean,default:function(){return!0}},title:{type:String,default:function(){return""}},top:String,visible:{type:Boolean,default:function(){return!1}},width:{type:String,default:function(){return"500px"}},maxHeight:{type:String,default:function(){return""}},dialogTransition:{type:String,default:""},noAnimation:{type:Boolean,default:!1},customStyle:{type:Object,default:function(){return{}}},onClose:{type:Function}}),DialogBox=defineComponent({name:$prefix+"DialogBox",model:{prop:"visible",event:"update:visible"},props:dialogBoxProps,setup:function(e,t){return $setup({props:e,context:t,template:template})}}),version="3.undefined";DialogBox.install=function(e){e.component(DialogBox.name,DialogBox)},DialogBox.version=version;export{DialogBox as default};
//# sourceMappingURL=/sm/8f90cddbbdf69c348fbfe7dfd8231da0da08d7ebd3e749d735cafd9074422ef2.map