System.register(["./vendor-legacy--aGazLR_.js","./common-store-legacy-wEU5_K-j.js"],(function(e,t){"use strict";var a,r,n,i,u,l,s,o,d;return{setters:[e=>{a=e.U,r=e.r,n=e.G,i=e.j,u=e.ab,l=e.o,s=e.b,o=e.t},e=>{d=e._}],execute:function(){const t={key:0},v={key:1};e("T",d({__name:"TimeData",props:{timeObj:{type:String,default:""},timeDay:{type:Number,default:0},id:{type:Number,default:0},finishedText:{type:String,default:""}},emits:["closeTime"],setup(e,{emit:d}){const m=e,{t:c}=a(),f=d,S=r(0),y=n((()=>new Date(m.timeObj).getTime()+24*m.timeDay*60*60*1e3)),g=r(null),p=n((()=>{if(S.value>0){const e=Math.floor(S.value/864e5),t=Math.floor(S.value%864e5/36e5),a=Math.floor(S.value%36e5/6e4),r=Math.floor(S.value%6e4/1e3);return e>0?c("countdown.with_days",{days:e,hours:String(t).padStart(2,"0"),minutes:String(a).padStart(2,"0"),seconds:String(r).padStart(2,"0")}):c("countdown.without_days",{hours:String(t).padStart(2,"0"),minutes:String(a).padStart(2,"0"),seconds:String(r).padStart(2,"0")})}return m.finishedText?m.finishedText:""}));return i((()=>{clearInterval(g.value),S.value=y.value-Date.now(),g.value=setInterval((()=>{S.value=y.value-Date.now(),S.value<=0&&(f("remainingTime",m.id),clearInterval(g.value))}),1e3)})),u((()=>{clearInterval(g.value)})),(e,a)=>S.value>0?(l(),s("div",t,o(p.value),1)):(l(),s("div",v,o(m.finishedText),1))}},[["__file","TimeData.vue"]]))}}}));
