(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uview-ui/components/u-count-down/u-count-down"],{"01d7":function(t,e,o){},"477e":function(t,e,o){"use strict";var r=o("01d7"),i=o.n(r);i.a},"94d4":function(t,e,o){"use strict";var r;o.d(e,"b",(function(){return i})),o.d(e,"c",(function(){return n})),o.d(e,"a",(function(){return r}));var i=function(){var t=this,e=t.$createElement,o=(t._self._c,t.showDays&&(t.hideZeroDay||!t.hideZeroDay&&"00"!=t.d)?t.__get_style([t.itemStyle]):null),r=t.showDays&&(t.hideZeroDay||!t.hideZeroDay&&"00"!=t.d)?t.__get_style([t.letterStyle]):null,i=t.showHours?t.__get_style([t.itemStyle]):null,n=t.showMinutes?t.__get_style([t.itemStyle]):null,s=t.showSeconds?t.__get_style([t.itemStyle]):null;t.$mp.data=Object.assign({},{$root:{s0:o,s1:r,s2:i,s3:n,s4:s}})},n=[]},b2b5:function(t,e,o){"use strict";o.r(e);var r=o("94d4"),i=o("cbd3");for(var n in i)"default"!==n&&function(t){o.d(e,t,(function(){return i[t]}))}(n);o("477e");var s,a=o("f0c5"),l=Object(a["a"])(i["default"],r["b"],r["c"],!1,null,"f85bfb8e",null,!1,r["a"],s);e["default"]=l.exports},cbd3:function(t,e,o){"use strict";o.r(e);var r=o("d150"),i=o.n(r);for(var n in r)"default"!==n&&function(t){o.d(e,t,(function(){return r[t]}))}(n);e["default"]=i.a},d150:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={name:"u-count-down",props:{timestamp:{type:[Number,String],default:0},autoplay:{type:Boolean,default:!0},separator:{type:String,default:"colon"},separatorSize:{type:[Number,String],default:30},separatorColor:{type:String,default:"#303133"},color:{type:String,default:"#303133"},fontSize:{type:[Number,String],default:30},bgColor:{type:String,default:"#fff"},height:{type:[Number,String],default:"auto"},showBorder:{type:Boolean,default:!1},borderColor:{type:String,default:"#303133"},showSeconds:{type:Boolean,default:!0},showMinutes:{type:Boolean,default:!0},showHours:{type:Boolean,default:!0},showDays:{type:Boolean,default:!0},hideZeroDay:{type:Boolean,default:!1}},watch:{timestamp:function(t,e){this.clearTimer(),this.start()}},data:function(){return{d:"00",h:"00",i:"00",s:"00",timer:null,seconds:0}},computed:{itemStyle:function(){var t={};return this.height&&(t.height=this.height+"rpx",t.width=this.height+"rpx"),this.showBorder&&(t.borderStyle="solid",t.borderColor=this.borderColor,t.borderWidth="1px"),this.bgColor&&(t.backgroundColor=this.bgColor),t},letterStyle:function(){var t={};return this.fontSize&&(t.fontSize=this.fontSize+"rpx"),this.color&&(t.color=this.color),t}},mounted:function(){this.autoplay&&this.timestamp&&this.start()},methods:{start:function(){var t=this;this.clearTimer(),this.timestamp<=0||(this.seconds=Number(this.timestamp),this.formatTime(this.seconds),this.timer=setInterval((function(){if(t.seconds--,t.$emit("change",t.seconds),t.seconds<0)return t.end();t.formatTime(t.seconds)}),1e3))},formatTime:function(t){t<=0&&this.end();var e=0,o=0,r=0,i=0;e=Math.floor(t/86400),o=Math.floor(t/3600)-24*e;var n=null;n=this.showDays?o:Math.floor(t/3600),r=Math.floor(t/60)-60*o-24*e*60,i=Math.floor(t)-24*e*60*60-60*o*60-60*r,n=n<10?"0"+n:n,r=r<10?"0"+r:r,i=i<10?"0"+i:i,e=e<10?"0"+e:e,this.d=e,this.h=n,this.i=r,this.s=i},end:function(){this.clearTimer(),this.$emit("end",{})},clearTimer:function(){this.timer&&(clearInterval(this.timer),this.timer=null)}},beforeDestroy:function(){clearInterval(this.timer),this.timer=null}};e.default=r}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'uview-ui/components/u-count-down/u-count-down-create-component',
    {
        'uview-ui/components/u-count-down/u-count-down-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('543d')['createComponent'](__webpack_require__("b2b5"))
        })
    },
    [['uview-ui/components/u-count-down/u-count-down-create-component']]
]);
