Build 555975stable
Module 854818
843 characters · in f4d1554c8de36809.jsDependencies
Source Raw
function(a,t,e){e.d(t,{e:()=>c}),e(321073);var i=e(627968);e(64700);var l=e(503698),d=e.n(l),r=e(834730),n=e(140735),s=e(496431),o=e(375708),h=e(467513);let c=a=>{let t,e,{endDate:l,size:c="md",className:p,showSeconds:u=!1}=a,{days:m,hours:x,minutes:g,seconds:b}=(0,s.A)(l),v=(e=[(t=a=>`${a.toString().padStart(2,"0")}`)(m),t(x),t(g)],u&&e.push(t(b)),e.join(":"));return(0,i.jsxs)("div",{className:d()(h.kL,p),role:"timer",children:[v.split("").map((a,t)=>":"===a?(0,i.jsx)(r.E,{color:"none",variant:"md"===c?"heading-lg/extrabold":"heading-xxl/extrabold",className:h.eC,"aria-hidden":!0,tag:"div",children:a},t):(0,i.jsx)(r.E,{color:"always-white",variant:"md"===c?"heading-md/bold":"heading-xl/bold",className:h.ai,"aria-hidden":!0,tag:"div",children:a},t)),(0,i.jsx)(n.A,{children:o.intl.format(o.t.j6IyVe,{days:m,hours:x,minutes:g})})]})}}