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 o=":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 n=o;const a=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:"9a9efb0825555f64b0e1065138fe9358309b2a3b",role:"timer",class:{"sc-upsell-countdown-timer":true}},this.showIcon&&t("sc-icon",{key:"cb68f938472b6955f5f7ed0105c5a8cada231e79",name:"clock"}),t("span",{key:"6c13e82c3709e2895d4617590de4e8ef6f27824a"},t("slot",{key:"b38c01b8b89ad649cbeaad2b7a6e63665a19aa72",name:"offer-expire-text"})," ",t("strong",{key:"af31554277d95a58c265f830045946ddbd1c19ed"},this.formattedTime)))}};a.style=n;export{a as sc_upsell_countdown_timer};
//# sourceMappingURL=p-2f0c4d5d.entry.js.map