import{r as e,h as t,H as r}from"./p-e97fde0a.js";import{b as s}from"./p-fd1598d9.js";import"./p-86fd1a31.js";import"./p-9dbc54d6.js";import"./p-03631502.js";const a=":host{display:flex;justify-content:var(--sc-upsell-countdown-timer-justify-content, center);align-items:var(--sc-upsell-countdown-timer-align-items, center);text-align:var(--sc-upsell-countdown-timer-text-align, center);flex-wrap:wrap;gap:var(--sc-upsell-countdown-timer-gap, 0.5em);line-height:1;padding:var(--sc-upsell-countdown-timer-padding, var(--sc-spacing-medium));border-radius:var(--sc-upsell-countdown-timer-border-radius, var(--sc-border-radius-pill));background-color:var(--sc-upsell-countdown-timer-background-color, rgb(226, 249, 235));color:var(--sc-upsell-countdown-timer-color, rgb(71, 91, 80))}";const o=a;const c=class{constructor(t){e(this,t);this.timeRemaining=Infinity;this.formattedTime=undefined;this.showIcon=true}componentDidLoad(){this.updateCountdown()}updateCountdown(){this.formattedTime=s();setInterval((()=>{this.formattedTime=s()}),1e3)}render(){return t(r,{key:"3495b25a833e88d6df38835205553916686f12d4",role:"timer",class:{"sc-upsell-countdown-timer":true}},this.showIcon&&t("sc-icon",{key:"9246ab5676b92a97aab09ae7d11836e9a9f6e9de",name:"clock"}),t("span",{key:"11f0acad5ae4a6314b0c287ab1b823c96136d1b6"},t("slot",{key:"56e61e0eba3b2d3ba734cca54bb30c4a687d04b8",name:"offer-expire-text"})," ",t("strong",{key:"c9bb94d600a46f85e7e4a1f90a78cc9f6db1cf19"},this.formattedTime)))}};c.style=o;export{c as sc_upsell_countdown_timer};
//# sourceMappingURL=p-7755e88d.entry.js.map