import{r as e,h as t,H as r}from"./p-9add63ef.js";import{b as s}from"./p-1365bb41.js";import"./p-71d77b7d.js";import"./p-dd24e53c.js";import"./p-2b28ea49.js";const c=":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=c;const n=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:"3494bf984bd24e5fac3d8d2c30cb88ac225a36ca",role:"timer",class:{"sc-upsell-countdown-timer":true}},this.showIcon&&t("sc-icon",{key:"cbc5fab4d5152f10a549ac869cfa8e36f42bbe0c",name:"clock"}),t("span",{key:"6341a0a1df3542dc60b973b06c8ebe2b0f8df13e"},t("slot",{key:"6e9d40ed94611a86810ba6c1fee82eb512a566ee",name:"offer-expire-text"})," ",t("strong",{key:"6690bdd080931561c855d508d311f0e27660322a"},this.formattedTime)))}};n.style=o;export{n as sc_upsell_countdown_timer};
//# sourceMappingURL=p-605a9bcd.entry.js.map