(window.webpackJsonp=window.webpackJsonp||[]).push([[204],{2356:function(t,e,n){var o;o=function(t){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.i=function(t){return t},n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:o})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(object,t){return Object.prototype.hasOwnProperty.call(object,t)},n.p="/dist/",n(n.s=2)}([function(t,e){t.exports=function(t,e,n,o){var r,c=t=t||{},l=typeof t.default;"object"!==l&&"function"!==l||(r=t,c=t.default);var f="function"==typeof c?c.options:c;if(e&&(f.render=e.render,f.staticRenderFns=e.staticRenderFns),n&&(f._scopeId=n),o){var d=Object.create(f.computed||null);Object.keys(o).forEach((function(t){var e=o[t];d[t]=function(){return e}})),f.computed=d}return{esModule:r,exports:c,options:f}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var o=n(20),r=new(n.n(o).a)({name:"vue-notification"})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),r=n.n(o),c=n(1),l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f={install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.installed){this.installed=!0,this.params=e,t.component(e.componentName||"notifications",r.a);var n=function(t){"string"==typeof t&&(t={title:"",text:t}),"object"===(void 0===t?"undefined":l(t))&&c.a.$emit("add",t)};n.close=function(t){c.a.$emit("close",t)};var o=e.name||"notify";t.prototype["$"+o]=n,t[o]=n}}};e.default=f},function(t,e,n){n(17);var o=n(0)(n(5),n(15),null,null);t.exports=o.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"CssGroup",props:["name"]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(2),r=n(1),c=n(9),l=n(7),f=n(13),d=n.n(f),v=n(12),y=n.n(v),h=n(8),m=0,x=2,w={name:"Notifications",components:{VelocityGroup:d.a,CssGroup:y.a},props:{group:{type:String,default:""},width:{type:[Number,String],default:300},reverse:{type:Boolean,default:!1},position:{type:[String,Array],default:function(){return l.a.position}},classes:{type:String,default:"vue-notification"},animationType:{type:String,default:"css",validator:function(t){return"css"===t||"velocity"===t}},animation:{type:Object,default:function(){return l.a.velocityAnimation}},animationName:{type:String,default:l.a.cssAnimation},speed:{type:Number,default:300},cooldown:{type:Number,default:0},duration:{type:Number,default:3e3},delay:{type:Number,default:0},max:{type:Number,default:1/0},ignoreDuplicates:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!0}},data:function(){return{list:[],velocity:o.default.params.velocity}},mounted:function(){r.a.$on("add",this.addItem),r.a.$on("close",this.closeItem)},computed:{actualWidth:function(){return n.i(h.a)(this.width)},isVA:function(){return"velocity"===this.animationType},componentName:function(){return this.isVA?"VelocityGroup":"CssGroup"},styles:function(){var t,e,o,r=n.i(c.a)(this.position),l=r.x,f=r.y,d=this.actualWidth.value,v=this.actualWidth.type,y=(o="0px",(e=f)in(t={width:d+v})?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t);return"center"===l?y.left="calc(50% - "+d/2+v+")":y[l]="0px",y},active:function(){return this.list.filter((function(t){return t.state!==x}))},botToTop:function(){return this.styles.hasOwnProperty("bottom")}},methods:{destroyIfNecessary:function(t){this.closeOnClick&&this.destroy(t)},addItem:function(t){var e=this;if(t.group=t.group||"",this.group===t.group)if(t.clean||t.clear)this.destroyAll();else{var o="number"==typeof t.duration?t.duration:this.duration,r="number"==typeof t.speed?t.speed:this.speed,l="boolean"==typeof t.ignoreDuplicates?t.ignoreDuplicates:this.ignoreDuplicates,title=t.title,text=t.text,f=t.type,data=t.data,d={id:t.id||n.i(c.b)(),title:title,text:text,type:f,state:m,speed:r,length:o+2*r,data:data};o>=0&&(d.timer=setTimeout((function(){e.destroy(d)}),d.length));var v=this.reverse?!this.botToTop:this.botToTop,y=-1,h=this.active.some((function(e){return e.title===t.title&&e.text===t.text}));(!l||!h)&&(v?(this.list.push(d),this.active.length>this.max&&(y=0)):(this.list.unshift(d),this.active.length>this.max&&(y=this.active.length-1)),-1!==y&&this.destroy(this.active[y]))}},closeItem:function(t){this.destroyById(t)},notifyClass:function(t){return["vue-notification-template",this.classes,t.type]},notifyWrapperStyle:function(t){return this.isVA?null:{transition:"all "+t.speed+"ms"}},destroy:function(t){clearTimeout(t.timer),t.state=x,this.isVA||this.clean()},destroyById:function(t){var e=this.list.find((function(e){return e.id===t}));e&&this.destroy(e)},destroyAll:function(){this.active.forEach(this.destroy)},getAnimation:function(t,e){var n=this.animation[t];return"function"==typeof n?n.call(this,e):n},enter:function(t){var e=t.el,n=t.complete,o=this.getAnimation("enter",e);this.velocity(e,o,{duration:this.speed,complete:n})},leave:function(t){var e=t.el,n=t.complete,o=this.getAnimation("leave",e);this.velocity(e,o,{duration:this.speed,complete:n})},clean:function(){this.list=this.list.filter((function(t){return t.state!==x}))}}};e.default=w},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"VelocityGroup",methods:{enter:function(t,e){this.$emit("enter",{el:t,complete:e})},leave:function(t,e){this.$emit("leave",{el:t,complete:e})},afterLeave:function(){this.$emit("afterLeave")}}}},function(t,e,n){"use strict";e.a={position:["top","right"],cssAnimation:"vn-fade",velocityAnimation:{enter:function(t){return{height:[t.clientHeight,0],opacity:[1,0]}},leave:{height:0,opacity:[0,1]}}}},function(t,e,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r="[-+]?[0-9]*.?[0-9]+",c=[{name:"px",regexp:new RegExp("^"+r+"px$")},{name:"%",regexp:new RegExp("^"+r+"%$")},{name:"px",regexp:new RegExp("^"+r+"$")}];e.a=function(t){switch(void 0===t?"undefined":o(t)){case"number":return{type:"px",value:t};case"string":return function(t){if("auto"===t)return{type:t,value:0};for(var i=0;ie.parts.length&&(n.parts.length=e.parts.length)}else{var r=[];for(o=0;o