(window.webpackJsonp=window.webpackJsonp||[]).push([[82],{1092:function(t,e,n){"use strict";n.r(e);var r={name:"VCountdown",props:{endDate:{type:Date,default:()=>new Date},negative:{type:Boolean,default:!1}},data:()=>({now:new Date,timer:null}),computed:{hour(){var t=Math.trunc((this.endDate-this.now)/1e3/3600);return t>9?t:"0"+t},min(){var t=Math.trunc((this.endDate-this.now)/1e3/60)%60;return t>9?t:"0"+t},sec(){var s=Math.trunc((this.endDate-this.now)/1e3)%60;return s>9?s:"0"+s}},watch:{endDate:{immediate:!0,handler(t){this.timer&&clearInterval(this.timer),this.timer=setInterval((()=>{this.now=new Date,this.negative||this.now>t&&(this.now=t,this.$emit("endTime"),clearInterval(this.timer))}),1e3)}}},beforeDestroy(){clearInterval(this.timer)}},o=n(15),component=Object(o.a)(r,(function(){var t=this;return(0,t._self._c)("div",{staticClass:"v-countdown"},[t._t("default",(function(){return[t._v("\n    "+t._s(t.hour)+":"+t._s(t.min)+":"+t._s(t.sec)+"\n  ")]}),{hour:t.hour,min:t.min,sec:t.sec})],2)}),[],!1,null,null,null);e.default=component.exports}}]);