"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[61],{239:(n,o,t)=>{t.r(o),t.d(o,{default:()=>e});const e={container:"cDlDvljr",countdownContainer:"r28OPBye",countdownMessage:"pnUs5Mo0",countdownCol:"Wiu6n9GM",countdownDigits:"wcQMMynu",countdownMin:"S9xePNL1",countdownLabel:"uEl7kOqc",invisible:"BWaC21D6"}},238:(n,o,t)=>{const e=t(101);(0,t(2).createEntrypoint)("product_hero_countdown_timer",e.ProductCountdown)},101:function(n,o,t){var e=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(o,"__esModule",{value:!0}),o.ProductCountdown=function({offer_message:n,countdown_minutes:o,text_color:t,background_color:e}){const[i,{startCountdown:f}]=(0,c.useCountdown)({countStart:60*o,intervalMs:1e3});return(0,a.useEffect)((()=>{f()}),[f]),i<=0?null:(0,s.jsx)(l.Fragment,{children:(0,s.jsxs)("div",{class:u.default.container,style:{color:t,backgroundColor:e},children:[(0,s.jsx)("span",{class:u.default.countdownMessage,children:n}),(0,s.jsxs)("div",{class:u.default.countdownContainer,children:[(0,s.jsx)(d,{value:Math.floor(i/86400),label:"DAYS"}),(0,s.jsx)(r,{}),(0,s.jsx)(d,{value:Math.floor(i%86400/3600),label:"HOURS"}),(0,s.jsx)(r,{}),(0,s.jsx)(d,{value:Math.floor(i%3600/60),label:"MIN"}),(0,s.jsx)(r,{}),(0,s.jsx)(d,{value:i%60,label:"SEC"})]})]})})};const s=t(0),l=t(1),u=e(t(239)),a=t(3),c=t(42),d=({value:n,label:o})=>(0,s.jsxs)("div",{class:`${u.default.countdownCol} ${u.default.countdownMin}`,children:[(0,s.jsx)("span",{class:u.default.countdownDigits,children:n.toString().padStart(2,"0")}),(0,s.jsx)("span",{class:u.default.countdownLabel,children:o})]}),r=()=>(0,s.jsxs)("div",{class:u.default.countdownCol,children:[(0,s.jsx)("span",{class:u.default.countdownDigits,children:":"}),(0,s.jsx)("span",{class:`${u.default.countdownLabel} ${u.default.invisible}`,children:"_"})]})}},n=>{n.O(0,[1,2,4,10],(()=>n(n.s=238))),n.O()}]);