!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["vue-element-ui-plus"]=t():e["vue-element-ui-plus"]=t()}(self,(()=>(()=>{"use strict";var e={1900:(e,t,s)=>{function n(e,t,s,n,i,o,r,l){var a,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=s,c._compiled=!0),n&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),r?(a=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},c._ssrRegister=a):i&&(a=l?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),a)if(c.functional){c._injectStyles=a;var u=c.render;c.render=function(e,t){return a.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,a):[a]}return{exports:e,options:c}}s.d(t,{Z:()=>n})}},t={};function s(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,s),o.exports}s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{s.d(n,{default:()=>l});var e=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("transition",{attrs:{name:"el-alert-fade"}},[s("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-alert",class:[e.typeClass,e.center?"is-center":"","is-"+e.effect],attrs:{role:"alert"}},[e.showIcon?s("i",{staticClass:"el-alert__icon",class:[e.iconClass,e.isBigIcon]}):e._e(),e._v(" "),s("div",{staticClass:"el-alert__content"},[e.title||e.$slots.title?s("span",{staticClass:"el-alert__title",class:[e.isBoldTitle]},[e._t("title",(function(){return[e._v(e._s(e.title))]}))],2):e._e(),e._v(" "),e.$slots.default&&!e.description?s("p",{staticClass:"el-alert__description"},[e._t("default")],2):e._e(),e._v(" "),e.description&&!e.$slots.default?s("p",{staticClass:"el-alert__description"},[e._v(e._s(e.description))]):e._e(),e._v(" "),s("i",{directives:[{name:"show",rawName:"v-show",value:e.closable,expression:"closable"}],staticClass:"el-alert__closebtn",class:{"is-customed":""!==e.closeText,"el-icon-close":""===e.closeText},on:{click:function(t){return e.close()}}},[e._v(e._s(e.closeText))])])])])};e._withStripped=!0;var t={success:"el-icon-success",warning:"el-icon-warning",error:"el-icon-error"};const i={name:"ElAlert",props:{title:{type:String,default:""},description:{type:String,default:""},type:{type:String,default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,default:"light",validator:function(e){return-1!==["light","dark"].indexOf(e)}}},data:function(){return{visible:!0}},methods:{close:function(){this.visible=!1,this.$emit("close")}},computed:{typeClass:function(){return"el-alert--".concat(this.type)},iconClass:function(){return t[this.type]||"el-icon-info"},isBigIcon:function(){return this.description||this.$slots.default?"is-big":""},isBoldTitle:function(){return this.description||this.$slots.default?"is-bold":""}}};var o=(0,s(1900).Z)(i,e,[],!1,null,null,null);o.options.__file="packages/alert/src/main.vue";const r=o.exports;r.install=function(e){e.component(r.name,r)};const l=r})(),n.default})()));