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 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 a=o;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:"727b55154fbf1fe61aa56ad7d6d0ed9a0a0909b6",role:"timer",class:{"sc-upsell-countdown-timer":true}},this.showIcon&&t("sc-icon",{key:"302324b2900e8c7488c75e6502395e700f364e06",name:"clock"}),t("span",{key:"73bc4a1a8d8a0f54f459aba3f3169dc58d39aaa6"},t("slot",{key:"01c95848cd1822ca64c74de17b55be7a4150e252",name:"offer-expire-text"})," ",t("strong",{key:"38ecb7b7c6b098bbe5e65642a628cf22a702d374"},this.formattedTime)))}};c.style=a;export{c as sc_upsell_countdown_timer};
//# sourceMappingURL=p-ab434237.entry.js.map