{ "pandav:/index.js": { "cubeCode": "Cube('pandav:/com/timer/2.0.16',['pandav:/npm/bcore/0.0.18/event','pandav:/npm/jquery/2.1.4','pandav:/npm/lodash/4.6.1'],function(a,b,c){var d=c('pandav:/npm/bcore/0.0.18/event'),e=c('pandav:/npm/jquery/2.1.4'),f=c('pandav:/npm/lodash/4.6.1');return Date.prototype.pattern=function(a){var b=Math.floor,c={\"M+\":this.getMonth()+1,\"d+\":this.getDate(),\"h+\":0==this.getHours()%12?12:this.getHours()%12,\"H+\":this.getHours(),\"m+\":this.getMinutes(),\"s+\":this.getSeconds(),\"q+\":b((this.getMonth()+3)/3),S:this.getMilliseconds(),X:'\\u661F\\u671F'+'\\u65E5\\u4E00\\u4E8C\\u4E09\\u56DB\\u4E94\\u516D'.charAt(this.getDay()),W:['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'][this.getDay()],w:['Sun.','Mon.',' Tues.','Wed.',' Thur.','Fri.','Sat.'][this.getDay()]},d={0:'/u65e5',1:'/u4e00',2:'/u4e8c',3:'/u4e09',4:'/u56db',5:'/u4e94',6:'/u516d'};for(var e in /(y+)/.test(a)&&(a=a.replace(RegExp.$1,(this.getFullYear()+'').substr(4-RegExp.$1.length))),/(E+)/.test(a)&&(a=a.replace(RegExp.$1,(1 '),this.date=this.container.find('.date'),this.icon=this.container.find('svg'),this.updateStyle(),this.container.css({overflow:'hidden',\"text-overflow\":'ellipsis',\"white-space\":'nowrap',display:'flex',\"align-items\":'center',\"justify-content\":'center'}),this.run(),c.event.timer.show&&setTimeout(function(){b.eventEmit()},0),this.hasPointer()&&this.pointerEventEmit()},run:function(){var a=this.config,b=new Date;if(a.time.stopTime&&''!==a.time.stopTime){var c=new Date(a.time.stopTime);if(b.getTime()>=c.getTime())return this.timer&&clearTimeout(this.timer);this.timer=null,void(a.time.stopShowTime&&''!==a.time.stopShowTime?this.date.text(a.time.stopShowTime):this.date.text(c.pattern(a.time.format)))}this.dateText=b.pattern(a.time.format),this.date.text(this.dateText),this.timer=setTimeout(this.run.bind(this),a.time.duration)},eventEmit:function(){var a=this;this.emit('time-changed',{time:this.dateText}),this.eventTimer=setTimeout(function(){a.eventEmit()},this.config.event.timer.interval)},pointerEventEmit:function(){var a=new Date(this.config.event.pointer.time).getTime()-new Date().getTime();0