import{_ as l,U as p,y as s,H as u,R as m,o as v,c as f,b as a,w as n,a as r,t as T,T as h}from"./index.js";import{P as w}from"./ProgressTimer.js";import"./ProgressTimerView.js";import"./time4.js";import"./useTimer.js";const g={class:"countdown-timer"},x={class:"countdown-timer__content"},y={class:"countdown-timer__text"},C={data:()=>({noAdaptation:!0})},b=Object.assign(C,{__name:"CountdownTimer",props:{openParams:Object},setup(c){const t=c;p("isMobile");const i=s(t.openParams[1]),_=s(Number(t.openParams[0])),o=s(Number(t.openParams[0]));let e=null;function d(){e=setInterval(()=>{o.value>0?o.value--:clearInterval(e)},1e3)}return u(()=>{d()}),m(()=>{e&&clearInterval(e)}),(E,P)=>(v(),f("div",g,[a(h,{name:"scale",appear:""},{default:n(()=>[r("div",x,[a(w,{type:"rect",sizeType:"m",currentSeconds:o.value,startSeconds:_.value,iconType:"sandClock",progressColor:"#EEEEE6",highlightTimeUp:!0},{after:n(()=>[r("div",y,T(i.value),1)]),_:1},8,["currentSeconds","startSeconds"])])]),_:1})]))}}),B=l(b,[["__scopeId","data-v-36e290a3"]]);export{B as default};
