(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[93155],{43256:(s,e,t)=>{"use strict";t.d(e,{A:()=>n});let n=(0,t(31928).I)("button")({name:"DefaultButton",class:"dj4vswd",propsAsIs:!1});t(25551)},93155:(s,e,t)=>{"use strict";t.r(e),t.d(e,{default:()=>f});var n=t(87687),a=t(52751),r=t(31928),l=t(43256),u=t(17503);let d=["––","3","2","1","Happy New Year! \uD83C\uDF89"],i=(0,r.I)("div")({name:"Wrapper",class:"w52b1qq",propsAsIs:!1}),p=(0,r.I)("p")({name:"Value",class:"v793fuv",propsAsIs:!1}),o=(0,r.I)(l.A)({name:"Button",class:"b1b5r9ns",propsAsIs:!0}),c=(0,r.I)("span")({name:"FadeVal",class:"f1m5zz8i",propsAsIs:!1}),f=function(){let[s,e]=a.useState(0);a.useEffect(()=>{if(0===s)return;let t=setTimeout(()=>{let t=s+1;t>=5||e(t)},1e3);return()=>{window.clearTimeout(t)}},[s]);let t=s>0&&s<4,r=d[s];return(0,n.jsxs)(i,{children:[(0,n.jsx)(p,{children:t?(0,n.jsx)(c,{children:r},r):r}),(0,n.jsxs)(o,{"data-disabled":t,onClick:()=>{t||e(1)},children:[0===s&&"Start Countdown",t&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.A,{size:14})," Running…"]}),s>=4&&"Restart"]})]})};t(4751)},25551:s=>{s.exports={dj4vswd:"dj4vswd"}},4751:s=>{s.exports={w52b1qq:"w52b1qq",v793fuv:"v793fuv",b1b5r9ns:"b1b5r9ns",f1m5zz8i:"f1m5zz8i","fadeDown-f1m5zz8i":"fadeDown-f1m5zz8i"}}}]); //# sourceMappingURL=93155.22586acddec70bf1.js.map