(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d221ba8"],{cc1c:function(e,t,l){"use strict";l.r(t);var s=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("transition",{attrs:{name:"dialog-fade"},on:{"after-enter":e.afterEnter,"after-leave":e.afterLeave}},[l("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-dialog__wrapper",on:{click:function(t){return t.target!==t.currentTarget?null:e.handleWrapperClick.apply(null,arguments)}}},[l("div",{key:e.key,ref:"dialog",class:["el-dialog",{"is-fullscreen":!!e.dialogFullscreen||e.fullscreen,"el-dialog--center":e.center},e.customClass,e.dialogFullscreen?"":e.customFullscreenClass],style:e.style,attrs:{role:"dialog","aria-modal":"true","aria-label":e.title||"dialog"}},[l("div",{staticClass:"el-dialog__header"},[e._t("title",(function(){return[l("span",{staticClass:"el-dialog__title"},[e._v(e._s(e.title))])]})),(e.isCustomDialog?e.previewFullscreen:e.showFullscreen&&!e.fullscreen)?l("button",{ref:"fullscreenbtn",staticClass:"el-dialog__fullscreenbtn",attrs:{type:"button","aria-label":"Fullscreen"},on:{click:e.handleFullscreen}},[l("i",{staticClass:"el-dialog__fullscreen el-icon el-icon-full-screen"})]):e._e(),e.showClose?l("button",{staticClass:"el-dialog__headerbtn",attrs:{type:"button","aria-label":"Close"},on:{click:e.handleClose}},[l("i",{staticClass:"el-dialog__close el-icon el-icon-close"})]):e._e()],2),e.rendered?l("div",{staticClass:"el-dialog__body"},[e._t("default")],2):e._e(),e.$slots.footer?l("div",{staticClass:"el-dialog__footer",class:[e.position?"el-dialog--"+e.position:""]},[e._t("footer")],2):e._e()])])])},i=[],o=l("5128"),n=l.n(o),a=l("2bb5"),r=l.n(a),c=l("d010"),d=l.n(c),u={name:"IbpsDialog",mixins:[n.a,d.a,r.a],props:{title:{type:String,default:""},modal:{type:Boolean,default:!0},modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!1},closeOnPressEscape:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},width:{type:String,default:"60%"},fullscreen:Boolean,customClass:{type:String,default:""},top:{type:String,default:"15vh"},beforeClose:Function,center:{type:Boolean,default:!1},destroyOnClose:Boolean,isCustomDialog:{type:Boolean,default:!1},previewFullscreen:{type:Boolean,default:!1},showFullscreen:{type:Boolean,default:!0},customFullscreenClass:{type:String,default:""},position:{type:String,default:function(){return this.$IBPS.dialogButtonPosition}},controlType:{type:String,default:""}},data:function(){return{closed:!1,key:0,dialogFullscreen:this.fullscreen||!1}},computed:{style:function(){var e={};return(!this.fullscreen&&!this.dialogFullscreen||"template"===this.controlType&&!this.fullscreen)&&(e.marginTop=this.top,this.width&&(e.width=this.width)),e}},watch:{visible:function(e){var t=this;e?(this.closed=!1,this.$emit("open"),this.$el.addEventListener("scroll",this.updatePopper),this.$nextTick((function(){t.$refs.dialog.scrollTop=0})),this.isCustomDialog&&this.previewFullscreen&&this.fullscreen&&(this.dialogFullscreen=this.previewFullscreen),"link"!==this.controlType||this.fullscreen||(this.dialogFullscreen=this.fullscreen),this.appendToBody&&document.body.appendChild(this.$el)):(this.$el.removeEventListener("scroll",this.updatePopper),this.showFullscreen&&(this.dialogFullscreen=!1),this.closed||this.$emit("close"),this.destroyOnClose&&this.$nextTick((function(){t.key++})))},dialogFullscreen:function(e){this.$emit("fullscreen",e)}},mounted:function(){this.visible&&(this.rendered=!0,this.open(),this.appendToBody&&document.body.appendChild(this.$el))},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)},methods:{getMigratingConfig:function(){return{props:{size:"size is removed."}}},handleWrapperClick:function(){this.closeOnClickModal&&this.handleClose()},handleClose:function(){"function"===typeof this.beforeClose?this.beforeClose(this.hide):this.hide()},hide:function(e){!1!==e&&(this.$emit("update:visible",!1),this.$emit("close"),this.dialogFullscreen=!1,this.closed=!0)},handleFullscreen:function(e){var t=this;this.$nextTick((function(){t.$refs.fullscreenbtn.blur()})),this.dialogFullscreen=!this.dialogFullscreen,this.$emit("fullscreen",this.dialogFullscreen)},updatePopper:function(){this.broadcast("ElSelectDropdown","updatePopper"),this.broadcast("ElDropdownMenu","updatePopper")},afterEnter:function(){this.$emit("opened")},afterLeave:function(){this.$emit("closed")}}},h=u,p=l("2877"),f=Object(p["a"])(h,s,i,!1,null,null,null);t["default"]=f.exports}}]);