import{r as i,w as c,o as p,y as d,R as _,i as v,U as f,V,_ as g,b as h,t as w,C as y}from"./index.b636aed2.js";const D={inheritAttrs:!1},x=Object.assign(D,{__name:"number-input",props:{modelValue:{default:"",required:!0,type:String}},emits:["update:modelValue"],setup(s,{emit:r}){const o=s,e=i("");async function a(t,n){if(t===n)return;if(t=String(t),t.trim()==="")return r("update:modelValue","");const u=f(t);r("update:modelValue",u),await V(()=>e.value=u)}function l(){e.value=o.modelValue}return c(e,a),c(()=>o.modelValue,l,{immediate:!0}),(t,n)=>(p(),d(v,_({modelValue:e.value,"onUpdate:modelValue":n[0]||(n[0]=u=>e.value=u),class:"input-with-padding-left","is-placeholder-right":!0,type:"number"},t.$attrs),null,16,["modelValue"]))}});const S={key:0,class:"count-down"},b={__name:"simple-count-down",props:{startValue:{default:120,required:!0,type:Number}},emits:["countDownFinish"],setup(s,{emit:r}){const o=s,e=i(0),a=i(null);function l(){a.value&&clearInterval(a.value),a.value=null}function t(){e.value=o.startValue,l(),u()}function n(){l(),r("countDownFinish")}function u(){a.value=setInterval(m,1e3)}function m(){if(e.value<=1)return n();e.value--}return c(()=>o.startValue,t,{immediate:!0}),(C,I)=>e.value>0?(p(),h("span",S,w(e.value>10?e.value:String(e.value).padStart(2,0)),1)):y("",!0)}},B=g(b,[["__scopeId","data-v-39f01e94"]]);export{B as S,x as _};
