import{q as r,r as o}from"./vue-bf422dc1.js";const I=(t=60)=>{let e;r(()=>{clearInterval(e)});const n=o(0);return[n,()=>{n.value=t,e=setInterval(()=>{n.value>0?n.value-=1:(clearInterval(e),n.value=0)},1e3)}]},T=()=>{let t;r(()=>{clearInterval(t)});const e=o("");return[e,async l=>{const s=new Date(l).getTime();t=await setInterval(()=>{const c=Date.now(),a=s-c;if(a>0){const i=Math.floor(a/1e3%60),u=Math.floor(a/1e3/60%60),v=Math.floor(a/(1e3*60*60)%24),m=Math.floor(a/(1e3*60*60*24));e.value=`${m}天${v}时${u}分${i}秒`}else clearInterval(t),e.value="已结束"},1e3)},()=>{clearInterval(t)}]};export{T as e,I as u};
