import{a as r}from"../index-DiPYjm3h.js";import{r as c}from"../ready-DpOgoWSg.js";async function i(){const e=await r.get("/api/v1/emails/check_confirmation",{headers:{Accept:"application/json"},withCredentials:!0});e.status===200&&e.data===!0&&(window.location.href="/start")}c(()=>{setInterval(()=>{i()},5e3),document.querySelectorAll("button.timer-button").forEach(e=>{let t=30;const a=document.createElement("span"),n=()=>{a.innerText=" (".concat(t,")")};n();const o=setInterval(()=>{t--,t===0?(e.disabled=!1,e.removeChild(a),clearInterval(o)):n()},1e3);e.appendChild(a)})}).catch(e=>{throw e});
//# sourceMappingURL=sign_up-DY5vRWM5.js.map
