@claspo/components 1.10.33-dcp1 → 1.10.34-mss1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/SysButtonComponent/SysButtonComponent.js +1 -1
- package/SysCalendarComponent/SysCalendarComponent.js +1 -1
- package/SysCheckboxListComponent/SysCheckboxListComponent.js +1 -1
- package/SysChoiceButtonsComponent/SysChoiceButtonsComponent.js +1 -1
- package/SysColumnComponent/SysColumnComponent.js +1 -1
- package/SysColumnsComponent/SysColumnsComponent.js +1 -1
- package/SysConsentComponent/SysConsentComponent.js +1 -1
- package/SysContainerComponent/SysContainerComponent.js +1 -1
- package/SysCountdownTimerComponent/SysCountdownTimerComponent.js +1 -1
- package/SysDateComponent/SysDateComponent.js +1 -1
- package/SysDropdownInputComponent/SysDropdownInputComponent.js +1 -1
- package/SysImageComponent/SysImageComponent.js +1 -1
- package/SysInAppColumnsComponent/SysInAppColumnsComponent.js +1 -1
- package/SysInputComponent/SysInputComponent.js +1 -1
- package/SysPhoneInputComponent/SysPhoneInputComponent.js +1 -1
- package/SysPromoCodeComponent/SysPromoCodeComponent.js +1 -1
- package/SysRadioGroupComponent/SysRadioGroupComponent.js +1 -1
- package/SysSlideComponent/SysSlideComponent.js +1 -1
- package/SysSliderComponent/SysSliderComponent.js +1 -1
- package/SysSocialComponent/SysSocialComponent.js +1 -1
- package/SysTextAreaComponent/SysTextAreaComponent.js +1 -1
- package/SysTextComponent/SysTextComponent.js +1 -1
- package/SysVideoComponent/SysVideoComponent.js +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const e={DESKTOP:"desktop",MOBILE:"mobile"};function t(t){return Object.values(e).map(e=>({type:"GROUP",propPath:["adaptiveStyles",e],children:t}))}const n="cl-";function o(e){return n+e}function r(e){return"cl-"+e}function i(e,t,n){var o;return null===(o=null==e?void 0:e[t])||void 0===o?void 0:o.find(e=>e.element===n)}function s(e=[]){return e.map(e=>Object.assign(Object.assign({},e),{styleAttributes:Object.assign({},e.styleAttributes)}))}const a={name:"SysCountdownTimerComponent",componentType:"COUNTDOWN_TIMER",version:"1.0.0",contextMenuModel:t([{type:"CONTROL",name:"COMPONENT_OPERATIONS"},{type:"CONTROL",name:"BRING_BACK_FORWARD",element:"host",elementProp:"styleAttributes",elementSubProp:"zIndex"},{type:"CONTROL",name:"FOCUS_PARENT_COMPONENT"}]),floatingControlsModel:t([{type:"CONTROL",name:"SIZE",elementProp:"styleAttributes",element:"host"},{type:"CONTROL",name:"MARGIN",elementProp:"styleAttributes",element:"host"},{type:"CONTROL",name:"CONTAINER_PADDING",elementProp:"styleAttributes",element:"host"}]),propertyPaneModel:{content:[{type:"GROUP",propPath:["adaptiveStyles","desktop"],children:[{type:"CONTROL",name:"DATEPICKER_COUNTDOWN_TIMER",propPath:["content"]},{type:"CONTROL",name:"SIZE",element:"host",elementProp:"styleAttributes",params:{width:{options:["fixed","fill"]},height:{options:["fixed","fill","hug"]}}},{type:"CONTROL",name:"TEXT_PARAMS",params:[{element:"counter"},{element:"label"}]},{type:"CONTROL",name:"BACKGROUND",propPath:["styles","[element=counterContainer]","styleAttributes"]},{type:"CONTROL",name:"TEXT_COLOR",propPath:["styles","[element=separator]","styleAttributes","color"],params:{label:"DOCUMENT_SEPARATOR_COLOR"}},{type:"CONTROL",name:"BORDERS",propPath:["styles","[element=counterContainer]","styleAttributes"]},{type:"CONTROL",name:"BOX_SHADOW",propPath:["styles","[element=counterContainer]","styleAttributes"]},{type:"CONTROL",name:"BORDER_RADIUS",propPath:["styles","[element=counterContainer]","styleAttributes"]},{type:"CONTROL",name:"INDENTATION",elementProp:"styleAttributes",element:"host",params:{indentationType:"MARGIN"}}]},{type:"GROUP",propPath:["adaptiveStyles","mobile"],children:[{type:"CONTROL",name:"DATEPICKER_COUNTDOWN_TIMER",propPath:["content"]},{type:"CONTROL",name:"SIZE",element:"host",elementProp:"styleAttributes",params:{width:{options:["fixed","fill","hug"]},height:{options:["fixed","fill","hug"]}}},{type:"CONTROL",name:"TEXT_PARAMS",params:[{element:"counter"},{element:"label"}]},{type:"CONTROL",name:"BACKGROUND",propPath:["styles","[element=counterContainer]","styleAttributes"]},{type:"CONTROL",name:"TEXT_COLOR",propPath:["styles","[element=separator]","styleAttributes","color"],params:{label:"DOCUMENT_SEPARATOR_COLOR"}},{type:"CONTROL",name:"BORDERS",propPath:["styles","[element=counterContainer]","styleAttributes"]},{type:"CONTROL",name:"BOX_SHADOW",propPath:["styles","[element=counterContainer]","styleAttributes"]},{type:"CONTROL",name:"BORDER_RADIUS",propPath:["styles","[element=counterContainer]","styleAttributes"]},{type:"CONTROL",name:"INDENTATION",elementProp:"styleAttributes",element:"host",params:{indentationType:"MARGIN"}}]}]},autoContrast:[{slave:{element:"counter",elementProp:"styleAttributes",elementSubProp:"color"},master:{element:"counterContainer",propPath:["styles","[element=counterContainer]","styleAttributes","background"]},enabledPropPath:["content","textContrastEnabled"]}],focusableElements:["counter","label"],events:{dispatch:[],listen:[]},i18n:{en:{"content,counterLabel,day,single":"Day","content,counterLabel,day,upToFour":"Days","content,counterLabel,day,fromFive":"Days","content,counterLabel,hour,single":"Hour","content,counterLabel,hour,upToFour":"Hours","content,counterLabel,hour,fromFive":"Hours","content,counterLabel,minute,single":"Minute","content,counterLabel,minute,upToFour":"Minutes","content,counterLabel,minute,fromFive":"Minutes","content,counterLabel,second,single":"Second","content,counterLabel,second,upToFour":"Seconds","content,counterLabel,second,fromFive":"Seconds"},ru:{"content,counterLabel,day,single":"День","content,counterLabel,day,upToFour":"Дня","content,counterLabel,day,fromFive":"Дней","content,counterLabel,hour,single":"Час","content,counterLabel,hour,upToFour":"Часа","content,counterLabel,hour,fromFive":"Часов","content,counterLabel,minute,single":"Минута","content,counterLabel,minute,upToFour":"Минуты","content,counterLabel,minute,fromFive":"Минут","content,counterLabel,second,single":"Секунда","content,counterLabel,second,upToFour":"Секунды","content,counterLabel,second,fromFive":"Секунд"},uk:{"content,counterLabel,day,single":"День","content,counterLabel,day,upToFour":"Дні","content,counterLabel,day,fromFive":"Днів","content,counterLabel,hour,single":"Година","content,counterLabel,hour,upToFour":"Години","content,counterLabel,hour,fromFive":"Годин","content,counterLabel,minute,single":"Хвилина","content,counterLabel,minute,upToFour":"Хвилини","content,counterLabel,minute,fromFive":"Хвилин","content,counterLabel,second,single":"Секунда","content,counterLabel,second,upToFour":"Секунди","content,counterLabel,second,fromFive":"Секунд"},de:{"content,counterLabel,day,single":"Tag","content,counterLabel,day,upToFour":"Tage","content,counterLabel,day,fromFive":"Tage","content,counterLabel,hour,single":"Stunde","content,counterLabel,hour,upToFour":"Stunden","content,counterLabel,hour,fromFive":"Stunden","content,counterLabel,minute,single":"Minute","content,counterLabel,minute,upToFour":"Minuten","content,counterLabel,minute,fromFive":"Minuten","content,counterLabel,second,single":"Sekunde","content,counterLabel,second,upToFour":"Sekunden","content,counterLabel,second,fromFive":"Sekunden"},es:{"content,counterLabel,day,single":"Día","content,counterLabel,day,upToFour":"Días","content,counterLabel,day,fromFive":"Días","content,counterLabel,hour,single":"Hora","content,counterLabel,hour,upToFour":"Horas","content,counterLabel,hour,fromFive":"Horas","content,counterLabel,minute,single":"Minuto","content,counterLabel,minute,upToFour":"Minutos","content,counterLabel,minute,fromFive":"Minutos","content,counterLabel,second,single":"Segundo","content,counterLabel,second,upToFour":"Segundos","content,counterLabel,second,fromFive":"Segundos"},fr:{"content,counterLabel,day,single":"Jour","content,counterLabel,day,upToFour":"Jours","content,counterLabel,day,fromFive":"Jours","content,counterLabel,hour,single":"Heure","content,counterLabel,hour,upToFour":"Heures","content,counterLabel,hour,fromFive":"Heures","content,counterLabel,minute,single":"Minute","content,counterLabel,minute,upToFour":"Minutes","content,counterLabel,minute,fromFive":"Minutes","content,counterLabel,second,single":"Seconde","content,counterLabel,second,upToFour":"Secondes","content,counterLabel,second,fromFive":"Secondes"},it:{"content,counterLabel,day,single":"Giorno","content,counterLabel,day,upToFour":"Giorni","content,counterLabel,day,fromFive":"Giorni","content,counterLabel,hour,single":"Ora","content,counterLabel,hour,upToFour":"Ore","content,counterLabel,hour,fromFive":"Ore","content,counterLabel,minute,single":"Minuto","content,counterLabel,minute,upToFour":"Minuti","content,counterLabel,minute,fromFive":"Minuti","content,counterLabel,second,single":"Secondo","content,counterLabel,second,upToFour":"Secondi","content,counterLabel,second,fromFive":"Secondi"},pt:{"content,counterLabel,day,single":"Dia","content,counterLabel,day,upToFour":"Dias","content,counterLabel,day,fromFive":"Dias","content,counterLabel,hour,single":"Hora","content,counterLabel,hour,upToFour":"Horas","content,counterLabel,hour,fromFive":"Horas","content,counterLabel,minute,single":"Minuto","content,counterLabel,minute,upToFour":"Minutos","content,counterLabel,minute,fromFive":"Minutos","content,counterLabel,second,single":"Segundo","content,counterLabel,second,upToFour":"Segundos","content,counterLabel,second,fromFive":"Segundos"},"pt-BR":{"content,counterLabel,day,single":"Dia","content,counterLabel,day,upToFour":"Dias","content,counterLabel,day,fromFive":"Dias","content,counterLabel,hour,single":"Hora","content,counterLabel,hour,upToFour":"Horas","content,counterLabel,hour,fromFive":"Horas","content,counterLabel,minute,single":"Minuto","content,counterLabel,minute,upToFour":"Minutos","content,counterLabel,minute,fromFive":"Minutos","content,counterLabel,second,single":"Segundo","content,counterLabel,second,upToFour":"Segundos","content,counterLabel,second,fromFive":"Segundos"},sv:{"content,counterLabel,day,single":"Dag","content,counterLabel,day,upToFour":"Dagar","content,counterLabel,day,fromFive":"Dagar","content,counterLabel,hour,single":"Timme","content,counterLabel,hour,upToFour":"Timmar","content,counterLabel,hour,fromFive":"Timmar","content,counterLabel,minute,single":"Minutt","content,counterLabel,minute,upToFour":"Minuter","content,counterLabel,minute,fromFive":"Minuter","content,counterLabel,second,single":"Sekund","content,counterLabel,second,upToFour":"Sekunder","content,counterLabel,second,fromFive":"Sekunder"},et:{"content,counterLabel,day,single":"Päev","content,counterLabel,day,upToFour":"Päeva","content,counterLabel,day,fromFive":"Päeva","content,counterLabel,hour,single":"Tund","content,counterLabel,hour,upToFour":"Tundi","content,counterLabel,hour,fromFive":"Tundi","content,counterLabel,minute,single":"Minut","content,counterLabel,minute,upToFour":"Minutit","content,counterLabel,minute,fromFive":"Minutit","content,counterLabel,second,single":"Sekund","content,counterLabel,second,upToFour":"Sekundit","content,counterLabel,second,fromFive":"Sekundit"},lv:{"content,counterLabel,day,single":"Diena","content,counterLabel,day,upToFour":"Dienas","content,counterLabel,day,fromFive":"Dienas","content,counterLabel,hour,single":"Stunda","content,counterLabel,hour,upToFour":"Stundas","content,counterLabel,hour,fromFive":"Stundas","content,counterLabel,minute,single":"Minūte","content,counterLabel,minute,upToFour":"Minūtes","content,counterLabel,minute,fromFive":"Minūtes","content,counterLabel,second,single":"Sekunde","content,counterLabel,second,upToFour":"Sekundes","content,counterLabel,second,fromFive":"Sekundes"},pl:{"content,counterLabel,day,single":"Dzień","content,counterLabel,day,upToFour":"Dni","content,counterLabel,day,fromFive":"Dni","content,counterLabel,hour,single":"Godzina","content,counterLabel,hour,upToFour":"Godziny","content,counterLabel,hour,fromFive":"Godzin","content,counterLabel,minute,single":"Minuta","content,counterLabel,minute,upToFour":"Minuty","content,counterLabel,minute,fromFive":"Minut","content,counterLabel,second,single":"Sekunda","content,counterLabel,second,upToFour":"Sekundy","content,counterLabel,second,fromFive":"Sekund"},nl:{"content,counterLabel,day,single":"Dag","content,counterLabel,day,upToFour":"Dagen","content,counterLabel,day,fromFive":"Dagen","content,counterLabel,hour,single":"Uur","content,counterLabel,hour,upToFour":"Uren","content,counterLabel,hour,fromFive":"Uren","content,counterLabel,minute,single":"Minuut","content,counterLabel,minute,upToFour":"Minuten","content,counterLabel,minute,fromFive":"Minuten","content,counterLabel,second,single":"Seconde","content,counterLabel,second,upToFour":"Seconden","content,counterLabel,second,fromFive":"Seconden"},cz:{"content,counterLabel,day,single":"Den","content,counterLabel,day,upToFour":"Dny","content,counterLabel,day,fromFive":"Dní","content,counterLabel,hour,single":"Hodina","content,counterLabel,hour,upToFour":"Hodiny","content,counterLabel,hour,fromFive":"Hodin","content,counterLabel,minute,single":"Minuta","content,counterLabel,minute,upToFour":"Minuty","content,counterLabel,minute,fromFive":"Minut","content,counterLabel,second,single":"Sekunda","content,counterLabel,second,upToFour":"Sekundy","content,counterLabel,second,fromFive":"Sekund"},tr:{"content,counterLabel,day,single":"Gün","content,counterLabel,day,upToFour":"Gün","content,counterLabel,day,fromFive":"Gün","content,counterLabel,hour,single":"Saat","content,counterLabel,hour,upToFour":"Saat","content,counterLabel,hour,fromFive":"Saat","content,counterLabel,minute,single":"Dakika","content,counterLabel,minute,upToFour":"Dakika","content,counterLabel,minute,fromFive":"Dakika","content,counterLabel,second,single":"Saniye","content,counterLabel,second,upToFour":"Saniye","content,counterLabel,second,fromFive":"Saniye"},ro:{"content,counterLabel,day,single":"Zi","content,counterLabel,day,upToFour":"Zile","content,counterLabel,day,fromFive":"Zile","content,counterLabel,hour,single":"Oră","content,counterLabel,hour,upToFour":"Ore","content,counterLabel,hour,fromFive":"Ore","content,counterLabel,minute,single":"Minut","content,counterLabel,minute,upToFour":"Minute","content,counterLabel,minute,fromFive":"Minute","content,counterLabel,second,single":"Secundă","content,counterLabel,second,upToFour":"Secunde","content,counterLabel,second,fromFive":"Secunde"},vi:{"content,counterLabel,day,single":"Ngày","content,counterLabel,day,upToFour":"Ngày","content,counterLabel,day,fromFive":"Ngày","content,counterLabel,hour,single":"Giờ","content,counterLabel,hour,upToFour":"Giờ","content,counterLabel,hour,fromFive":"Giờ","content,counterLabel,minute,single":"Phút","content,counterLabel,minute,upToFour":"Phút","content,counterLabel,minute,fromFive":"Phút","content,counterLabel,second,single":"Giây","content,counterLabel,second,upToFour":"Giây","content,counterLabel,second,fromFive":"Giây"},zh:{"content,counterLabel,day,single":"天","content,counterLabel,day,upToFour":"天","content,counterLabel,day,fromFive":"天","content,counterLabel,hour,single":"小時","content,counterLabel,hour,upToFour":"小時","content,counterLabel,hour,fromFive":"小時","content,counterLabel,minute,single":"分鐘","content,counterLabel,minute,upToFour":"分鐘","content,counterLabel,minute,fromFive":"分鐘","content,counterLabel,second,single":"秒","content,counterLabel,second,upToFour":"秒","content,counterLabel,second,fromFive":"秒"},ms:{"content,counterLabel,day,single":"Hari","content,counterLabel,day,upToFour":"Hari","content,counterLabel,day,fromFive":"Hari","content,counterLabel,hour,single":"Jam","content,counterLabel,hour,upToFour":"Jam","content,counterLabel,hour,fromFive":"Jam","content,counterLabel,minute,single":"Minit","content,counterLabel,minute,upToFour":"Minit","content,counterLabel,minute,fromFive":"Minit","content,counterLabel,second,single":"Saat","content,counterLabel,second,upToFour":"Saat","content,counterLabel,second,fromFive":"Saat"},ar:{"content,counterLabel,day,single":"يوما","content,counterLabel,day,upToFour":"يومان","content,counterLabel,day,fromFive":"أيام","content,counterLabel,hour,single":"ساعة","content,counterLabel,hour,upToFour":"ساعتين","content,counterLabel,hour,fromFive":"ساعات","content,counterLabel,minute,single":"دقيقة","content,counterLabel,minute,upToFour":"دقيقتين","content,counterLabel,minute,fromFive":"دقائق","content,counterLabel,second,single":"ثانية","content,counterLabel,second,upToFour":"ثانيتين","content,counterLabel,second,fromFive":"ثواني"},th:{"content,counterLabel,day,single":"วัน","content,counterLabel,day,upToFour":"วัน","content,counterLabel,day,fromFive":"วัน","content,counterLabel,hour,single":" ชั่วโมง","content,counterLabel,hour,upToFour":" ชั่วโมง","content,counterLabel,hour,fromFive":" ชั่วโมง","content,counterLabel,minute,single":"นาที","content,counterLabel,minute,upToFour":"นาที","content,counterLabel,minute,fromFive":"นาที","content,counterLabel,second,single":"วินาที","content,counterLabel,second,upToFour":"วินาที","content,counterLabel,second,fromFive":"วินาที"},bs:{"content,counterLabel,day,single":"Dan","content,counterLabel,day,upToFour":"Dani","content,counterLabel,day,fromFive":"Dana","content,counterLabel,hour,single":"Sat","content,counterLabel,hour,upToFour":"Sati","content,counterLabel,hour,fromFive":"Sati","content,counterLabel,minute,single":"Minuta","content,counterLabel,minute,upToFour":"Minute","content,counterLabel,minute,fromFive":"Minuta","content,counterLabel,second,single":"Sekundi","content,counterLabel,second,upToFour":"Sekunde","content,counterLabel,second,fromFive":"Sekundi"},bg:{"content,counterLabel,day,single":"Дeн","content,counterLabel,day,upToFour":"Дни","content,counterLabel,day,fromFive":"Дни","content,counterLabel,hour,single":"Час","content,counterLabel,hour,upToFour":"Часа","content,counterLabel,hour,fromFive":"Часа","content,counterLabel,minute,single":"Минута","content,counterLabel,minute,upToFour":"Минути","content,counterLabel,minute,fromFive":"Минути","content,counterLabel,second,single":"Секунда","content,counterLabel,second,upToFour":"Секунди","content,counterLabel,second,fromFive":"Секунди"},lt:{"content,counterLabel,day,single":"Diena","content,counterLabel,day,upToFour":"Dienos","content,counterLabel,day,fromFive":"Dienos","content,counterLabel,hour,single":"Valanda","content,counterLabel,hour,upToFour":"Valandos","content,counterLabel,hour,fromFive":"Valandos","content,counterLabel,minute,single":"Minutė","content,counterLabel,minute,upToFour":"Minutės","content,counterLabel,minute,fromFive":"Minutės","content,counterLabel,second,single":"Sekundė","content,counterLabel,second,upToFour":"Sekundės","content,counterLabel,second,fromFive":"Sekundės"},cs:{"content,counterLabel,day,single":"Den","content,counterLabel,day,upToFour":"Dny","content,counterLabel,day,fromFive":"Dní","content,counterLabel,hour,single":"Hodina","content,counterLabel,hour,upToFour":"Hodiny","content,counterLabel,hour,fromFive":"Hodin","content,counterLabel,minute,single":"Minuta","content,counterLabel,minute,upToFour":"Minuty","content,counterLabel,minute,fromFive":"Minut","content,counterLabel,second,single":"Sekunda","content,counterLabel,second,upToFour":"Sekundy","content,counterLabel,second,fromFive":"Sekund"},el:{"content,counterLabel,day,single":"ημέρα","content,counterLabel,day,upToFour":"ημέρες","content,counterLabel,day,fromFive":"μέρες","content,counterLabel,hour,single":"ώρα","content,counterLabel,hour,upToFour":"ώρες","content,counterLabel,hour,fromFive":"ώρες","content,counterLabel,minute,single":"λεπτό","content,counterLabel,minute,upToFour":"λεπτά","content,counterLabel,minute,fromFive":"λεπτά","content,counterLabel,second,single":"δευτερόλεπτο","content,counterLabel,second,upToFour":"δευτερόλεπτα","content,counterLabel,second,fromFive":"δευτερόλεπτα"},da:{"content,counterLabel,day,single":"Dag","content,counterLabel,day,upToFour":"Dage","content,counterLabel,day,fromFive":"Dage","content,counterLabel,hour,single":"Time","content,counterLabel,hour,upToFour":"Timer","content,counterLabel,hour,fromFive":"Timer","content,counterLabel,minute,single":"Minut","content,counterLabel,minute,upToFour":"Minutter","content,counterLabel,minute,fromFive":"Minutter","content,counterLabel,second,single":"Sekund","content,counterLabel,second,upToFour":"Sekunder","content,counterLabel,second,fromFive":"Sekunder"},he:{"content,counterLabel,day,single":"יום","content,counterLabel,day,upToFour":"ימים","content,counterLabel,day,fromFive":"ימים","content,counterLabel,hour,single":"שעה","content,counterLabel,hour,upToFour":"שעות","content,counterLabel,hour,fromFive":"שעות","content,counterLabel,minute,single":"דקה","content,counterLabel,minute,upToFour":"דקות","content,counterLabel,minute,fromFive":"דקות","content,counterLabel,second,single":"שנייה","content,counterLabel,second,upToFour":"שניות","content,counterLabel,second,fromFive":"שניות"},fi:{"content,counterLabel,day,single":"Päivä","content,counterLabel,day,upToFour":"Päivää","content,counterLabel,day,fromFive":"Päivää","content,counterLabel,hour,single":"Tunti","content,counterLabel,hour,upToFour":"Tuntia","content,counterLabel,hour,fromFive":"Tuntia","content,counterLabel,minute,single":"Minuutti","content,counterLabel,minute,upToFour":"Minuuttia","content,counterLabel,minute,fromFive":"Minuuttia","content,counterLabel,second,single":"Sekunti","content,counterLabel,second,upToFour":"Sekuntia","content,counterLabel,second,fromFive":"Sekuntia"},hi:{"content,counterLabel,day,single":"दिन ","content,counterLabel,day,upToFour":"दिन ","content,counterLabel,day,fromFive":"दिन ","content,counterLabel,hour,single":"घंटा ","content,counterLabel,hour,upToFour":"घंटे ","content,counterLabel,hour,fromFive":"घंटे ","content,counterLabel,minute,single":"मिनट ","content,counterLabel,minute,upToFour":"मिनट","content,counterLabel,minute,fromFive":"मिनट ","content,counterLabel,second,single":"सेकंड","content,counterLabel,second,upToFour":"सेकंड","content,counterLabel,second,fromFive":"सेकंड"},hr:{"content,counterLabel,day,single":"Dan","content,counterLabel,day,upToFour":"Dani","content,counterLabel,day,fromFive":"Dani","content,counterLabel,hour,single":"Sat","content,counterLabel,hour,upToFour":"Sati","content,counterLabel,hour,fromFive":"Sati","content,counterLabel,minute,single":"Minuta","content,counterLabel,minute,upToFour":"Minute","content,counterLabel,minute,fromFive":"Minute","content,counterLabel,second,single":"Sekunda","content,counterLabel,second,upToFour":"Sekunde","content,counterLabel,second,fromFive":"Sekunde"},hu:{"content,counterLabel,day,single":"Nap","content,counterLabel,day,upToFour":"Nap","content,counterLabel,day,fromFive":"Nap","content,counterLabel,hour,single":"Óra","content,counterLabel,hour,upToFour":"Óra","content,counterLabel,hour,fromFive":"Óra","content,counterLabel,minute,single":"Perc","content,counterLabel,minute,upToFour":"Perc","content,counterLabel,minute,fromFive":"Perc","content,counterLabel,second,single":"Másodperc","content,counterLabel,second,upToFour":"Másodperc","content,counterLabel,second,fromFive":"Másodperc"},id:{"content,counterLabel,day,single":"Hari","content,counterLabel,day,upToFour":"Hari","content,counterLabel,day,fromFive":"Hari","content,counterLabel,hour,single":"Jam","content,counterLabel,hour,upToFour":"Jam","content,counterLabel,hour,fromFive":"Jam","content,counterLabel,minute,single":"Menit","content,counterLabel,minute,upToFour":"Menit","content,counterLabel,minute,fromFive":"Menit","content,counterLabel,second,single":"Detik","content,counterLabel,second,upToFour":"Detik","content,counterLabel,second,fromFive":"Detik"},ja:{"content,counterLabel,day,single":"日","content,counterLabel,day,upToFour":"日","content,counterLabel,day,fromFive":"日","content,counterLabel,hour,single":"時間","content,counterLabel,hour,upToFour":"時間","content,counterLabel,hour,fromFive":"時間","content,counterLabel,minute,single":"分","content,counterLabel,minute,upToFour":"分","content,counterLabel,minute,fromFive":"分","content,counterLabel,second,single":"秒","content,counterLabel,second,upToFour":"秒","content,counterLabel,second,fromFive":"秒"},ko:{"content,counterLabel,day,single":"일","content,counterLabel,day,upToFour":"일","content,counterLabel,day,fromFive":"일","content,counterLabel,hour,single":"시","content,counterLabel,hour,upToFour":"시","content,counterLabel,hour,fromFive":"시","content,counterLabel,minute,single":"분","content,counterLabel,minute,upToFour":"분","content,counterLabel,minute,fromFive":"분","content,counterLabel,second,single":"초","content,counterLabel,second,upToFour":"초","content,counterLabel,second,fromFive":"초"},no:{"content,counterLabel,day,single":"Dag","content,counterLabel,day,upToFour":"Dager","content,counterLabel,day,fromFive":"Dager","content,counterLabel,hour,single":"Time","content,counterLabel,hour,upToFour":"Timer","content,counterLabel,hour,fromFive":"Timer","content,counterLabel,minute,single":"Minutt","content,counterLabel,minute,upToFour":"Minutter","content,counterLabel,minute,fromFive":"Minutter","content,counterLabel,second,single":"Sekund","content,counterLabel,second,upToFour":"Sekunder","content,counterLabel,second,fromFive":"Sekunder"},sk:{"content,counterLabel,day,single":"Deň","content,counterLabel,day,upToFour":"Dni","content,counterLabel,day,fromFive":"Dní","content,counterLabel,hour,single":"Hodina","content,counterLabel,hour,upToFour":"Hodiny","content,counterLabel,hour,fromFive":"Hodín","content,counterLabel,minute,single":"Minúta","content,counterLabel,minute,upToFour":"Minúty","content,counterLabel,minute,fromFive":"Minút","content,counterLabel,second,single":"Sekunda","content,counterLabel,second,upToFour":"Sekundy","content,counterLabel,second,fromFive":"Sekúnd"},sl:{"content,counterLabel,day,single":"Dan","content,counterLabel,day,upToFour":"Dni","content,counterLabel,day,fromFive":"Dni","content,counterLabel,hour,single":"Ura","content,counterLabel,hour,upToFour":"Ure","content,counterLabel,hour,fromFive":"Ur","content,counterLabel,minute,single":"Minuta","content,counterLabel,minute,upToFour":"Minute","content,counterLabel,minute,fromFive":"Minut","content,counterLabel,second,single":"Skunda","content,counterLabel,second,upToFour":"Sekunde","content,counterLabel,second,fromFive":"Sekund"},sr:{"content,counterLabel,day,single":"Dan","content,counterLabel,day,upToFour":"Dani","content,counterLabel,day,fromFive":"Dani","content,counterLabel,hour,single":"Sat","content,counterLabel,hour,upToFour":"Sati","content,counterLabel,hour,fromFive":"Sati","content,counterLabel,minute,single":"Minut","content,counterLabel,minute,upToFour":"Minuti","content,counterLabel,minute,fromFive":"Minuti","content,counterLabel,second,single":"Sekunda","content,counterLabel,second,upToFour":"Sekunde","content,counterLabel,second,fromFive":"Sekunde"}},props:{content:{endDate:"",timeZone:null,mode:"UNTIL_THE_EXPIRATION_DATE",lengthFromTheStart:"00.00.10.00",isShowAgainAllowed:!0,showAgainMode:"NEXT_SESSION",showAgainAmount:1,showAgainUnit:"DAYS",textContrastEnabled:!0,format:"HH:MM:SS",labelsEnabled:!0},control:{icon:""},styles:[{element:"counterContainer",styleAttributes:{background:"rgb(255, 255, 255, 0.2)",borderTopStyle:"solid",borderRightStyle:"solid",borderBottomStyle:"solid",borderLeftStyle:"solid",borderTopWidth:"2px",borderTopColor:"rgba(0, 0, 0, 0.1)",borderBottomWidth:"2px",borderBottomColor:"rgba(0, 0, 0, 0.1)",borderLeftWidth:"2px",borderLeftColor:"rgba(0, 0, 0, 0.1)",borderRightWidth:"2px",borderRightColor:"rgba(0, 0, 0, 0.1)",borderTopLeftRadius:"6px",borderTopRightRadius:"6px",borderBottomLeftRadius:"6px",borderBottomRightRadius:"6px",boxShadow:"none"},classes:""},{element:"separator",styleAttributes:{color:"var(--cl-schema-text, rgb(68, 68, 68))"},classes:""}],adaptiveStyles:(c=[{element:"host",styleAttributes:{width:"220px",minWidth:"220px",height:"auto",minHeight:null,marginTop:"0px",marginBottom:"0px",marginLeft:"0px",marginRight:"0px",_marginEnabled:!1},classes:""},{element:"counter",styleAttributes:{color:"var(--cl-schema-text, rgb(0, 0, 0))",textAlign:"center",lineHeight:"120%",fontWeight:"700",fontSize:"20px",textShadow:"none"},classes:""},{element:"label",styleAttributes:{color:"var(--cl-schema-text, rgb(68, 68, 68))",textAlign:"center",lineHeight:"120%",fontWeight:"400",fontSize:"12px",textShadow:"none"},classes:""}],Object.values(e).reduce((e,t)=>Object.assign(e,{[t]:s(c)}),{desktop:[],mobile:[]}))},metaDescription:{icon:"/SysCountdownTimerComponent/assets/img/component-icon.svg",label:{en:"Countdown timer",ru:"Таймер обратного отсчета",uk:"Таймер зворотного відліку",es:"Contador regresivo",fr:"Compte à rebours",de:"Countdown-Timer",it:"Conto alla rovescia",pt:"Temporizador",ro:"Cronometru de numărătoare inversă",bg:"Таймер за обратно броене",cs:"Čas odpočítávání",el:"Χρονόμετρο αντίστροφης μέτρησης",nl:"Afteltimer",pl:"Czasomierz odliczania",sv:"Nedräkning tidtagare",tr:"Geri sayım saati",ar:"العد التنازلي",zh:"倒计时",da:"Nedtællingstimer",he:"טיימר ספירה לאחור",fi:"Ajastin",hi:"काउंटडाउन टाइमर",hr:"Odbrojavanje vremena",hu:"Visszaszámláló időzítő",id:"Penghitung waktu mundur",ja:"カウントダウンタイマー",ko:"카운트다운 타이머",no:"Nedtellingstidtaker",sk:"Časovač odpočítavania",sl:"Odštevalnik časa",sr:"Tajmer za odbrojavanje"}},syncEnabled:!0,stylesImitationEnabled:!0};var c;const l="VIEW",u="CONTAINER",d="INPUT",m="BUTTON",h="CONSENT",b="COLUMN";var p,g;(g=p||(p={})).SUBSCRIBE_CONTACT="SUBSCRIBE_CONTACT",g.REQUEST="REQUEST",g.DISPATCH_EVENT="DISPATCH_EVENT",g.GO_TO_VIEW="GO_TO_VIEW",g.GO_TO_PREVIOUS_VIEW="GO_TO_PREVIOUS_VIEW",g.GO_TO_NEXT_VIEW="GO_TO_NEXT_VIEW",g.SHOW_WIDGET="SHOW_WIDGET",g.OPEN_LINK="OPEN_LINK",g.CLOSE_WIDGET="CLOSE_WIDGET",g.CLICK="CLICK";const L=p;var v,f;class y{static sortActions(e){const t={[L.CLOSE_WIDGET]:-1,[L.OPEN_LINK]:-2,[L.SHOW_WIDGET]:1,[L.SUBSCRIBE_CONTACT]:2,[L.REQUEST]:3},n=e=>void 0!==t[e.type]?t[e.type]:0;return[...e].sort((e,t)=>n(e)>n(t)?-1:n(e)<n(t)?1:0)}constructor(e,t){this.config=e,this.actions=y.sortActions(t),this.listener=null,this.targetElements=[],this.eventsQueue=[],this.state=null,this.postponed=!1}activate(e,t,n){this.state=e;const o=n(),i=o.getAttribute(r("id"));this.actions.forEach(e=>{var t;return null===(t=e.setInitiatorComponentId)||void 0===t?void 0:t.call(e,i)}),this.listener=e=>{const t=e.composedPath().filter(e=>e instanceof HTMLElement&&e.getAttribute(r("type")));let n=0;for(;t[n]&&t[n].getAttribute(r("id"))!==i;){let e=t[n].getAttribute(r("type"));if(y.IGNORING_VIEW_ENTRY_TYPES.includes(e))return;n++}this.eventsQueue.push({event:e}),this.postponed||this.execute()},this.targetElements=this.config.relativeSelector?Array.from((o.shadowRoot||o).querySelectorAll(this.config.relativeSelector)):[o],this.targetElements.forEach(e=>{e.addEventListener("click",this.listener)})}async execute(){var e,t,n,o;try{for(var r,i=!0,s=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},o("next"),o("throw"),o("return"),t[Symbol.asyncIterator]=function(){return this},t);function o(n){t[n]=e[n]&&function(t){return new Promise(function(o,r){!function(e,t,n,o){Promise.resolve(o).then(function(t){e({value:t,done:n})},t)}(o,r,(t=e[n](t)).done,t.value)})}}}(this.eventsQueue);!(e=(r=await s.next()).done);i=!0){o=r.value,i=!1;const{event:e}=o;for(const t of this.actions)if(!await t.execute(this.state.getState(),e))break}}catch(e){t={error:e}}finally{try{i||e||!(n=s.return)||await n.call(s)}finally{if(t)throw t.error}}this.eventsQueue=[]}postpone(){this.postponed=!0}release(){this.postponed=!1,this.execute()}destroy(){this.listener&&this.targetElements.length&&(this.targetElements.forEach(e=>{e.removeEventListener("click",this.listener)}),this.targetElements=[])}}y.IGNORING_VIEW_ENTRY_TYPES=[m,h,d],(f=v||(v={})).CLICK="CLICK",f.COMPONENT_EVENT="COMPONENT_EVENT";class T{constructor(e,t){this.config=e,this.actions=t,this.componentEmitterListener=null}activate(e,t,n){var o;const i=null===(o=n())||void 0===o?void 0:o.getAttribute(r("id"));this.actions.forEach(e=>{var t;return null===(t=e.setInitiatorComponentId)||void 0===t?void 0:t.call(e,i)}),this.componentEmitterListener=t.on(this.config.eventName,()=>{this.actions.forEach(t=>t.execute(e.getState(),this.config.params))})}destroy(){this.componentEmitterListener&&this.componentEmitterListener.off()}}class F{constructor(e,t){this.actionFactory=e,this.actionRegister=t}get(e){const t=e.actions.map(e=>this.actionFactory.get(e));switch(t.forEach(e=>this.actionRegister.register(e)),e.type){case v.CLICK:return new y(e,t);case v.COMPONENT_EVENT:return new T(e,t);default:throw new Error(`Not supported handler type ${e.type}`)}}}class S{static generate(){let e,t="";for(let n=0;n<32;n++)8!==n&&12!==n&&16!==n&&20!==n||(t+="-"),e=Math.floor(16*Math.random()).toString(16).toUpperCase(),t+=e;return t}}class E{constructor(){this.listeners=E.createDefaultListenersState()}emit(e,t,n=null){const o=this.listeners[e];o&&Object.values(o).forEach(o=>o(t,e,n)),Object.values(this.listeners["*"]).forEach(o=>o(t,e,n))}on(e,t){const n=S.generate(),o=this.listeners[e];return o?o[n]=t:this.listeners[e]={[n]:t},{off:()=>{var t,o;(null===(o=null===(t=this.listeners)||void 0===t?void 0:t[e])||void 0===o?void 0:o[n])&&delete this.listeners[e][n]}}}destroy(){this.listeners=E.createDefaultListenersState()}}E.createDefaultListenersState=()=>({"*":{}});const O=E,C=(e,t,n,o)=>{const r=EventTarget.prototype,{addEventListenerBase:i,addEventListener:s}=r;(i||s).call(e,t,n,o)};class A{constructor(e){this.state=e||{}}getState(){return this.state}setState(e){this.state=Object.assign(Object.assign({},this.state),e)}destroy(){}}class R extends O{constructor(e,t){super(),this.config=t,this.handleMobileBreakpoint(e.getShared().mobileBreakpointWidth),e.on("ENVIRONMENT_UPDATE",({isMobileEnv:e})=>{this._isMobile=e,this.emit(R.changeEventName,this._isMobile)})}handleMobileBreakpoint(e){this.mobileBreakpointWidth=e;const t=Number.isInteger(this.mobileBreakpointWidth)?`${this.mobileBreakpointWidth}px`:this.mobileBreakpointWidth;this.mediaQueryList=window.matchMedia(`(max-width: ${t})`),this.mediaQueryList.addListener(this.listener.bind(this)),this._isMobile=this.mediaQueryList.matches,this.emit(R.changeEventName,this._isMobile)}isMobile(){return this.config.forceMobileEnv||this._isMobile}listener(e){this._isMobile=e.matches,this.emit(R.changeEventName,this._isMobile)}destroy(){super.destroy(),this.mediaQueryList.removeListener(this.listener.bind(this))}}R.changeEventName="CHANGE";const M=R;class _{static set(e,t){const n=e[_.accumulatorPropertyName]||{};e[_.accumulatorPropertyName]=Object.assign(Object.assign({},n),t.styleAttributes),Object.keys(e[_.accumulatorPropertyName]).forEach(n=>{n.includes("--")?e.style.setProperty(n,t.styleAttributes[n]||""):e.style[n]=t.styleAttributes[n]?t.styleAttributes[n]:""})}}_.accumulatorPropertyName="clStyleAttributes";const N=_;var D,P;(P=D||(D={})).BUILT_IN="BUILT_IN",P.DETACHED="DETACHED",P.FLOATING_BOX="FLOATING_BOX",P.FLOATING_BAR="FLOATING_BAR",P.LAUNCHER="LAUNCHER",P.CONTENT_LOCKER="CONTENT_LOCKER";class k{static applyHostStyles(e,t,n=null,o){var r,i,s;const a=null===(i=null===(r=null==n?void 0:n.props)||void 0===r?void 0:r.handlers)||void 0===i?void 0:i.find(e=>"CLICK"===e.type);a&&(null===(s=a.actions)||void 0===s?void 0:s.length)&&(t.style.cursor="pointer"),e!==l&&e!==u&&e!==b||(t.style.display=o===D.CONTENT_LOCKER&&e===l?"flex":"inline-flex",t.style.position="relative"),t.style.boxSizing="border-box"}constructor(){this.styles="/* common styles */ *, *:before, *:after { box-sizing: border-box; font-family: inherit; }"}setStyles(e=""){this.styles=`${this.styles} ${e}`}getStyles(){return this.styles}}class I{static log(e){window.scriptLog09u8y9?scriptLog09u8y9("ERROR","RUNTIME_ERROR",new Error(e)):console.error(e)}}class x{constructor(e,t,n,o,r,i){this.hostElement=t,this.documentModel=e,this.getSharedCb=n,this.getPropsCb=o,this.getEnvCb=r,this.httpClient=i,this.schemaSubscription=null,this.themeSubscription=null,this.envUrlMaps={desktop:new Map,mobile:new Map}}parseBackground(e){const t=String(e||"");if(t.includes("url")){const[e,n]=t.split("(")[1].split(")");return{url:e.replace(/['"]+/g,""),positionOptions:n.replace(";","")}}return{url:null,positionOptions:null}}apply(e){const t=this.getPropsCb();return t.backgroundDynamicInlineSVGElements[e].forEach(n=>{var o,r,i,s,a;const c=null===(r=null===(o=t.adaptiveStyles)||void 0===o?void 0:o[e])||void 0===r?void 0:r.find(e=>e.element===n),l=(null===(i=t.styles)||void 0===i?void 0:i.find(e=>e.element===n))||{},u=(null===(s=null==l?void 0:l.styleAttributes)||void 0===s?void 0:s.background)||(null===(a=null==c?void 0:c.styleAttributes)||void 0===a?void 0:a.background),d=this.parseBackground(u);d.url&&this.envUrlMaps[e].set(n,{originalSVGResourceURL:d.url,inlineSvgString:null,positionOptions:d.positionOptions})}),Promise.all([...this.envUrlMaps[e].entries()].map(([t,n])=>this.httpClient.execute({url:n.originalSVGResourceURL}).then(e=>e.text()).then(o=>{this.envUrlMaps[e].set(t,Object.assign(Object.assign({},n),{inlineSvgString:o}))}))).then(()=>{var t;const n=this.getSharedCb();return Object.keys((null===(t=n.theme)||void 0===t?void 0:t.schema)||{}).length>0?this._applyHostElementBackgroundFromTheme(this.envUrlMaps[e].get("host"),n.theme.schema):this._applyHostElementBackgroundFromCssVars(this.envUrlMaps[e].get("host"),n.cssVars)}).catch(e=>{console.error(e),I.log(`Failed to load/apply backgroundDynamicInlineSVGElements[${this.getPropsCb().backgroundDynamicInlineSVGElements}] ${e}`)})}on(){return this.schemaSubscription=this.documentModel.on("COLOR_SCHEMA_UPDATE",e=>{this._applyHostElementBackgroundFromCssVars(this.envUrlMaps[this.getEnvCb()].get("host"),e)}),this.themeSubscription=this.documentModel.on("THEME_UPDATE",e=>{this._applyHostElementBackgroundFromTheme(this.envUrlMaps[this.getEnvCb()].get("host"),e.schema)}),this}_applyHostElementBackgroundFromCssVars(e,t){e&&t&&(this.hostElement.style.background=this._buildBackgroundUrlFromCssVars(e,t))}_applyHostElementBackgroundFromTheme(e,t){e&&t&&(this.hostElement.style.background=this._buildBackgroundUrlFromTheme(e,t))}_buildBackgroundUrlFromCssVars(e,t){const n=e.inlineSvgString.trim().replace("var(--cl-schema-accent)",t["cl-schema-accent"]);return`url('data:image/svg+xml,${encodeURIComponent(n)}')${e.positionOptions}`}_buildBackgroundUrlFromTheme(e,t){const n=e.inlineSvgString.trim();let o=n;return[...n.matchAll(/var\(--cl-schema-([^)]+)\)/g)].forEach(e=>{const n=function(e=""){return e.replace(/var\(\s*(--[^,\s)]+).*\)/,"$1").replace("--cl-schema-","")}(e[1]);var r;o=o.replace(`var(--${r=n,`cl-schema-${r}`})`,t[n])}),`url('data:image/svg+xml,${encodeURIComponent(o)}')${e.positionOptions}`}off(){var e,t;null===(e=this.schemaSubscription)||void 0===e||e.off(),null===(t=this.themeSubscription)||void 0===t||t.off()}}const w=new class{execute({url:e,method:t="GET",body:n=null,headers:o,abortSignal:r}){const i={method:t,headers:Object.assign({"Content-Type":"text/plain"},o||{}),credentials:"same-origin",body:null,signal:r};return n&&(i.body="string"==typeof n?n:JSON.stringify(n)),fetch(e,i)}};function U(e,t){return Object.keys(e).filter(e=>!t.includes(e)).reduce((t,n)=>Object.assign(Object.assign({},t),{[n]:e[n]}),{})}class H{static camelCaseToDashCase(e){return e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}static camelCaseToUpperSnakeCase(e){return e.replace(/[A-Z]/g,e=>"_"+e).toUpperCase()}}class j{constructor(e){this._count=0,this.onUpdateCb=e}increment(){this._count++,this.onUpdateCb(this.count())}decrement(){this._count>0&&this._count--,this.onUpdateCb(this.count())}count(){return this._count}}var B;!function(e){e.TOO_MANY_REQUESTS="TOO_MANY_REQUESTS",e.COMPONENT_RESOURCES_LOADED="COMPONENT_RESOURCES_LOADED",e.FAILED_TO_LOAD_COMPONENT_RESOURCE="FAILED_TO_LOAD_COMPONENT_RESOURCE",e.SUBMIT_REQUEST_STARTED="SUBMIT_REQUEST_STARTED",e.SUBMIT_REQUEST_FINISHED="SUBMIT_REQUEST_FINISHED",e.SUBMIT_REQUEST_ERROR_WITHOUT_VIEW="SUBMIT_REQUEST_ERROR_WITHOUT_VIEW",e.PROMO_CODE_SHOWN="PROMO_CODE_SHOWN",e.LEAD_PROGRESS="LEAD_PROGRESS"}(B||(B={}));const G=B;class W{constructor(e,t,n){this.getPending=()=>this.counters.pending,this.onCounterStateUpdate=e=>{0===e&&this.systemEventEmitter.emit(G.COMPONENT_RESOURCES_LOADED,this.componentId)},this.onResourceLoadFailure=e=>{this.isStaticEntryModule?this.systemEventEmitter.emit(G.FAILED_TO_LOAD_COMPONENT_RESOURCE,`Failed to load: ${e}`):this.counters.pending.decrement()},this.componentId=e,this.systemEventEmitter=t,this.isStaticEntryModule=n,this.counters={pending:new j(this.onCounterStateUpdate)}}}const V=(...e)=>{let t=e.reduce((e,t)=>Object.assign(Object.assign({},e),{[t]:[]}),{});return{get:e=>t[e],clear:()=>V(...e)}},$=V,z="props",K="shared",Q="environment";function J(e,t,n,o){const r=e=>{let i=function(e){return e instanceof DocumentFragment||(null==e?void 0:e.nodeType)===Node.DOCUMENT_FRAGMENT_NODE?e.host||null:e}(e);return i&&(o&&"function"==typeof o?o(i.getAttribute(t)):(null===(s=null==i?void 0:i.getAttribute)||void 0===s?void 0:s.call(i,t))===n)?i:i&&i.parentNode&&r(i.parentNode)||null;var s};return r(e)}const Y="SUBMIT";function Z(e,t){return t?(e.classes=`${e.classes||""} ${t.classes||""}`.trim(),Object.keys(t).forEach(n=>{if("element"===n||"classes"===n)return;const o=t[n];o&&"object"==typeof o&&!Array.isArray(o)?e[n]=Object.assign(Object.assign({},e[n]||{}),o):e[n]=o}),e):e}function X(e){const{element:t,html:n,appendHtml:o}=e,r=function(e){if(null==e)return"";if("string"!=typeof e)return String(e);if(""===e)return"";if(!/<\/?([a-zA-Z][a-zA-Z0-9]*)\b[^>]*>/.test(e))return e;const t=(new DOMParser).parseFromString(e,"text/html");return t.querySelectorAll('script, style, link[rel="stylesheet"], meta[http-equiv]').forEach(e=>e.remove()),t.querySelectorAll("*").forEach(e=>{if(["onclick","onload","onerror","onmouseover","onfocus","onblur","onkeyup","onkeydown","onchange","onsubmit","onmouseenter","onmouseleave","onmouseout","oncontextmenu","ondrag","ondrop"].forEach(t=>e.removeAttribute(t)),Array.from(e.attributes).forEach(t=>{t.name.startsWith("on")&&e.removeAttribute(t.name)}),"A"===e.tagName||"AREA"===e.tagName){const t=e.getAttribute("href");t&&(t.startsWith("javascript:")||t.startsWith("data:"))&&e.removeAttribute("href")}if("IMG"===e.tagName||"IFRAME"===e.tagName){const t=e.getAttribute("src");t&&(t.startsWith("javascript:")||t.startsWith("data:text/html"))&&e.removeAttribute("src")}if("FORM"===e.tagName){const t=e.getAttribute("action");t&&t.startsWith("javascript:")&&e.removeAttribute("action")}}),t.body.innerHTML}(n);o?t.innerHTML+=r:t.innerHTML=r}const q=Object.getPrototypeOf(document.createEvent("CustomEvent")).constructor;class ee extends q{constructor(e,t={},n){super(e,Object.assign(Object.assign({},n),{detail:t}))}}var te,ne,oe;function re(e){if(null!=e&&""!==e)return"string"==typeof e?e:"object"==typeof e?JSON.stringify(e):String(e)}!function(e){e.STATIC="STATIC",e.UPDATING="UPDATING"}(te||(te={})),(oe=ne||(ne={})).STATIC="STATIC",oe.DATA_LAYER="DATA_LAYER",oe.URL_QUERY_PARAMS="URL_QUERY_PARAMS",oe.JS_API_VARIABLE="JS_API_VARIABLE",oe.COOKIE="COOKIE",oe.LOCAL_STORAGE="LOCAL_STORAGE";class ie{constructor(e,t){this.configService=e,this.registry=t}resolveValue(e,t){if(!(null==e?void 0:e.enabled)||!e.sourceType||this.configService.getConfig("renderMode")===te.UPDATING)return;const n=function(e,t,n,o){if(!t)return;if(t===ne.STATIC)return re(null==n?void 0:n.value);const r=e.getSource(t);if(!r)return;const i=r.getValue(o);return re("function"==typeof(null==i?void 0:i.processor)?i.processor(r,Object.assign({id:o},n)):null==i?void 0:i.value)}(this.registry,e.sourceType,e.config,t);if(void 0===n)return;const o=n.trim();return""===o?void 0:o}}class se extends HTMLElement{constructor(){var e;super(),this.skipGameBlur=!0,this.isAutofillValidated=!1,this.validatedAutofillValue=void 0,this.construct=()=>{let e;const t=this.getAttribute(r("id")),n=this.getWidgetContainerNode();if(!n)throw new Error("Widget container not found in construct");const o=n.closest(`[${r("widget-id")}]`);let i;o&&(i=o.getAttribute(r("widget-id")));let s=new ee("cl-props-request",{nodeName:this.nodeName,path:this.getAttribute(r("path")),id:t,widgetId:i},{bubbles:!0,composed:!0});this.dispatchEvent(s),e=s.detail.props,Object.assign(this,e),this.observers=$(z,K,Q),this.subscriptions=new class{constructor(){this.subscriptions=[]}push(e){this.subscriptions.push(e)}off(){this.subscriptions.forEach(e=>null==e?void 0:e.off())}},this.state=new A({}),this.componentEventEmitter=new O,this.componentResourceManager=new W(this.model.id,this.services.eventEmitter,this.isStaticRenderMode()),this.mergeTagsProcessor=this.services.mergeTagsProcessorFactory.create(),this._actionFactory=this.services.actionFactory,this._handlerFactory=new F(this._actionFactory,this.services.actionRegister),this.prevProps=this.model.props,this.prevEnvironment=this.getEnvironment(),this.documentModel.on(`COMPONENT_PROPS_UPDATE_${this.model.id}`,e=>{this.model.props=e,this.observers.get(z).forEach(t=>t(this.prevProps,e)),this.prevProps=e;const t=this.getHostElement(),n=r("floating");e.floating&&!t.getAttribute(n)?t.setAttribute(n,"true"):!e.floating&&t.getAttribute(n)&&t.removeAttribute(n)}),this.documentModel.on(`COMPONENT_UPDATE_${this.model.id}`,e=>{Object.assign(this.model,e)}),this.documentModel.on("SHARED_UPDATE_ALL",()=>{this.applyAutoAdaptiveStyles(this.prevProps.adaptiveStyles,this.prevProps.styles),this.observers.get(K).forEach(e=>e(this.getShared()))}),this.model.props.backgroundDynamicInlineSVGElements&&(this.colorSchemaListener=new x(this.documentModel,this.getHostElement(),()=>this.getShared(),()=>this.model.props,()=>this.getEnvironment(),w),this.colorSchemaListener.apply(this.getEnvironment()).then(()=>{this.subscriptions.push(this.colorSchemaListener.on())})),this.prevProps.adaptiveStyles&&this.subscriptions.push(this.resizeListener.on(M.changeEventName,()=>{this.applyAutoAdaptiveStyles(this.prevProps.adaptiveStyles,this.prevProps.styles);const e=this.getEnvironment();this.observers.get(Q).forEach(t=>t(this.prevEnvironment,e)),this.prevEnvironment=e})),this.subscriptions.push(this.services.eventEmitter.on("GAME_PHASE_READY_TO_PLAY",()=>{this.skipGameBlur||this.getHostElement().classList.add("cl-game-spotlight-component")})),this.subscriptions.push(this.services.eventEmitter.on("GAME_PHASE_COMPLETED",()=>{this.skipGameBlur||this.getHostElement().classList.remove("cl-game-spotlight-component")}))},this.attachHandlers=()=>{this.getHandlers().map(e=>this._handlerFactory.get(e)).map(e=>()=>e.activate(this.state,this.componentEventEmitter,this.getHostElement.bind(this))).forEach(e=>e())},this.postponeHandlers=()=>{var e;null===(e=this.handlers)||void 0===e||e.forEach(e=>e.postpone())},this.releaseHandlers=()=>{var e;null===(e=this.handlers)||void 0===e||e.forEach(e=>e.release())},this.getProps=()=>{var e;return null===(e=this.getModel())||void 0===e?void 0:e.props},this.getShared=()=>this.documentModel.getShared(),this.getEnvironment=()=>this.resizeListener.isMobile()?"mobile":"desktop",this.isStaticRenderMode=()=>this.services.config.getConfig("renderMode")===te.STATIC,this.isUpdatingRenderMode=()=>this.services.config.getConfig("renderMode")===te.UPDATING,this.getRootElement=()=>this.shadowRoot?this.shadowRoot:this,this.getHostElement=()=>this,this.observeProps=e=>{this.observers.get(z).push(e),e(null,this.prevProps)},this.observeShared=e=>{this.observers.get(K).push(e),e(this.getShared())},this.observeEnvironment=e=>{this.observers.get(Q).push(e),e(null,this.getEnvironment())},this.getElements=()=>[this.getHostElement(),...Array.from(this.getRootElement().querySelectorAll(`[${r("element")}]`)).filter(e=>!e.hasAttribute(r("component")))],this.getElement=(e,t)=>this.getElements().find(n=>t?n.getAttribute(r("element"))===e&&n.id===t:n.getAttribute(r("element"))===e),this.applyAutoAdaptiveStyles=(e,t)=>{if(!e&&!t)return;const n=this.getElements();if(!n.length)return;const o=function(e,t){if(!t)return e||{desktop:[],mobile:[]};const n=JSON.parse(JSON.stringify(e||{desktop:[],mobile:[]}));return t.forEach(e=>{const t=e.element;let o=!1,r=!1;n.desktop&&n.desktop.forEach(n=>{n.element===t&&(Z(n,e),o=!0)}),n.mobile&&n.mobile.forEach(n=>{n.element===t&&(Z(n,e),r=!0)}),!o&&n.desktop&&n.desktop.push(JSON.parse(JSON.stringify(e))),!r&&n.mobile&&n.mobile.push(JSON.parse(JSON.stringify(e)))}),n}(e,t),s=r("type"),a="element-styles";let c=this.getRootElement().querySelector(`style[${s}="${a}"]`);c||(c=document.createElement("style"),c.setAttribute(s,a),this.getRootElement().appendChild(c)),X({element:c,html:""}),n.forEach(e=>{let t=e.getAttribute(r("element"));const n=this.getEnvironment();let s=i(o,n,t);if(s){if(this.resizeListener.isMobile()){const e=i(o,"desktop",t);e&&(s=Object.assign(Object.assign({},s),{styleAttributes:Object.assign(Object.assign({},e.styleAttributes),s.styleAttributes)}))}this.applyStylesToElement(e,this.applySharedClassesToElementModel(s),c)}}),this._addLinkColor(c,this.getShared())},this.registerComponentResourceManagement=()=>{this.viewResourceManager.registerComponent(this.model.id,this.componentResourceManager)},this.applyStyles=(e,t={})=>{if(!e||!e.style)return!1;for(const[n,o]of Object.entries(t))e.style[n]=o;return!0},this.applyStylesToElement=(e,t,n)=>{var o,i;const s=[];"host"===(t=se._resolveTogglableStylesForElementModel(t)).element&&(k.applyHostStyles(this.model.type,e,null,this.layoutType),("desktop"===this.getEnvironment()&&(null===(o=this.model.props.backgroundDynamicInlineSVGElements)||void 0===o?void 0:o.desktop)||"mobile"===this.getEnvironment()&&(null===(i=this.model.props.backgroundDynamicInlineSVGElements)||void 0===i?void 0:i.mobile))&&(this.colorSchemaListener.apply(this.getEnvironment()),s.push("background")));let a=t.styleAttributes.background,c=a&&a.match(/url\("([^"]*)"\)/);if(this.manifest.waitForResourcesLoad&&c){this.componentResourceManager.getPending().increment();const e=new Image;e.src=c[1],C(e,"load",()=>{this.componentResourceManager.getPending().decrement()}),C(e,"error",()=>{this.componentResourceManager.onResourceLoadFailure(e.src),this.isUpdatingRenderMode&&this.componentResourceManager.getPending().decrement()})}const l=Object.assign(Object.assign({},t),{styleAttributes:U(t.styleAttributes,s)});if(N.set(e,l),this._setClassAttributes(e,t),n){if(t.hoverStyleAttributes){let o=Object.assign({},t.hoverStyleAttributes);if("FILL_UP"===t.hoverAnimationType){e.style.boxShadow="inset 0px 0px 0px 0px rgb(0, 0, 0, 0)",e.style.overflow="hidden";const n=e.tagName.toLowerCase(),r=`flip-up-animation-${t.element}`;let i=this.getRootElement().querySelector(`#${r}`);i||(i=document.createElement("style"),i.id=r,e.appendChild(i)),X({element:i,html:`\n ${n}::before {\n content: '';\n background: ${o.background};\n position: absolute;\n left: 0;\n top: ${e.getBoundingClientRect().height}px;\n height: ${e.getBoundingClientRect().height}px;\n width: 100%;\n z-index: -10;\n }\n ${n}:hover::before {\n top: 0;\n transition: 0.3s;\n }\n `}),o=Object.assign(Object.assign({},t.hoverStyleAttributes),{background:"transparent",position:"relative"})}o.borderTopWidth&&"0px"!==o.borderTopWidth||delete o.borderTopColor,o.borderBottomWidth&&"0px"!==o.borderBottomWidth||delete o.borderBottomColor,o.borderLeftWidth&&"0px"!==o.borderLeftWidth||delete o.borderLeftColor,o.borderRightWidth&&"0px"!==o.borderRightWidth||delete o.borderRightColor,this._addStylesToStyleElement(n,t.element,o,`:not(.${r("no-hover")}):hover`,!0)}t.placeholderStyleAttributes&&this._addStylesToStyleElement(n,t.element,t.placeholderStyleAttributes,"::placeholder"),this._addFontStylesToStyleElement(n,this.getShared()),this.stylesAppliedToElement(e,t,n)}},this.applySharedClassesToElementModel=e=>function(e,t,o=!1){let r=e;return(r.classes||"").split(" ").filter(e=>e.startsWith(n)).forEach(e=>{var n;const i=null===(n=t.textClasses)||void 0===n?void 0:n[e];if(!i)return;let s=function(e,t){return{styleAttributes:Object.assign(Object.assign({},e.styleAttributes),t?e.mobileStyleAttributes:{}),placeholderStyleAttributes:Object.assign(Object.assign({},e.placeholderStyleAttributes),t?e.mobilePlaceholderStyleAttributes:{})}}(i,o);s.styleAttributes.fontFamily||(i.isHeader&&t.headerFontFamily&&(s=Object.assign(Object.assign({},s),{styleAttributes:Object.assign(Object.assign({},s.styleAttributes),{fontFamily:t.headerFontFamily})})),!i.isHeader&&t.textFontFamily&&(s=Object.assign(Object.assign({},s),{styleAttributes:Object.assign(Object.assign({},s.styleAttributes),{fontFamily:t.textFontFamily})}))),r=Object.assign(Object.assign({},r),{styleAttributes:Object.assign(Object.assign({},r.styleAttributes),s.styleAttributes),placeholderStyleAttributes:Object.assign(Object.assign({},r.placeholderStyleAttributes),s.placeholderStyleAttributes)})}),r.styleAttributes.fontFamily||(r=Object.assign(Object.assign({},r),{styleAttributes:Object.assign(Object.assign({},r.styleAttributes),{fontFamily:t.textFontFamily})})),r}(e,this.documentModel.getShared(),this.resizeListener.isMobile()),this.getModel=()=>this.model,this._addStylesToStyleElement=(e,t,n,o="",i)=>{const s=Object.keys(n).reduce((e,t)=>e+` ${H.camelCaseToDashCase(t)}: ${n[t]}${i?" !important;":";"}`,"");X({element:e,html:`[${r("element")}="${t}"]${o} { ${s} }`,appendHtml:!0})},this._addFontStylesToStyleElement=(e,t)=>{X({element:e,html:`[cl-type] {font-family:${t.textFontFamily||"inherit"}}`,appendHtml:!0})},this._addLinkColor=(e,t)=>{var n,o,r,i;t.linkColor&&X({element:e,html:`a {color: ${t.linkColor}}, a:visited {color: ${t.linkColor}}`,appendHtml:!0}),(null===(n=t.linkParams)||void 0===n?void 0:n.color)&&X({element:e,html:`a {color: ${null===(o=t.linkParams)||void 0===o?void 0:o.color}}, a:visited {color: ${null===(r=t.linkParams)||void 0===r?void 0:r.color}}`,appendHtml:!0}),(null===(i=t.linkParams)||void 0===i?void 0:i.removeUnderline)&&X({element:e,html:"a {text-decoration: none}, a:visited {text-decoration: none}",appendHtml:!0})},this._setClassAttributes=(e,t)=>{Array.from(e.classList).filter(e=>e!==o("hovered")&&e!==o("focused")).forEach(t=>{t.startsWith(n)&&e.classList.remove(t)});const r=((e.getAttribute("class")||"")+" "+t.classes).trim();e.setAttribute("class",r)},this.getParentComponent=()=>J(this.parentNode,r("element"),"host"),this.getWidgetContainerNode=()=>{const e=null==this?void 0:this.getAttribute(r("path"));return 1===(null==e?void 0:e.split(",").length)?this.parentNode:J(this.parentNode,r("path"),void 0,e=>1===(null==e?void 0:e.split(",").length))},this.getWidgetLanguages=()=>{return[(e=this.services.config).getConfig("appearanceLanguage"),e.getConfig("browserLanguage"),"en"].filter(e=>!!e);var e},this.getPreferredWidgetLanguage=()=>this.getWidgetLanguages()[0],this.getTranslationsMap=e=>function(e,t){return t.reduce((t,n)=>{if(t)return t;const o=function(e,t){if(!e)return null;if(t[e])return{translations:t[e],language:e};const n=function(e){return e.includes("-")?e.split("-")[0].toLowerCase():e.includes("_")?e.split("_")[0].toLowerCase():e}(e);return t[n]?{translations:t[n],language:n}:null}(n,e);return o||null},null)}(e,this.getWidgetLanguages()),this.stylesAppliedToElement=(e,t,n)=>{},this.updateContext=()=>{var e;const t=this.getModel();this.services.context.updateRecord(t.id,{label:this.getContextRecordLabel(t.props),viewIndex:null===(e=t.path)||void 0===e?void 0:e[0]})},this.getAutofillValue=()=>{var e;const t=this.getModel();return new ie(this.services.config,this.services.context.getRegistry()).resolveValue(null===(e=t.props.control)||void 0===e?void 0:e.autofill,t.id)},this.getValidatedAutofillValue=()=>this.isAutofillValidated?this.validatedAutofillValue:void 0,this.syncAutofillContextRecord=(e,t)=>{this.isAutofillValidated=!0,this.validatedAutofillValue=e?t:void 0,e&&this.services.context.updateRecord(this.getModel().id,{value:t})},this.addContextRecord=()=>{var e,t;const n=this.getModel();this.services.context.addRecord(n.id,{recordKey:n.id,id:n.props.control.name,label:this.getContextRecordLabel(n.props),value:null!==(e=this.getValidatedAutofillValue())&&void 0!==e?e:n.props.control.defaultValue||"",viewIndex:null===(t=n.path)||void 0===t?void 0:t[0],sourceId:"FORM",initialData:{fallbackValue:"",exampleValue:this.getContextRecordExampleValue(n.props)}})},this.getContextRecordLabel=e=>{var t,n,o,r,i,s;const a=e.control.name;if(["email","first_name","last_name"].includes(a))return a.toUpperCase();if((null===(t=e.content)||void 0===t?void 0:t.label)&&(null===(r=null===(o=null===(n=e.adaptiveStyles)||void 0===n?void 0:n.desktop.find(e=>"label"===e.element))||void 0===o?void 0:o.params)||void 0===r?void 0:r.enabled)){const t=(new DOMParser).parseFromString(e.content.label,"text/html");return this.capitalizeFirstLetter(t.body.textContent||"")}return(null===(i=e.content)||void 0===i?void 0:i.placeholder)?this.capitalizeFirstLetter(e.content.placeholder):(null===(s=e.control)||void 0===s?void 0:s.integrationName)?this.capitalizeFirstLetter(e.control.integrationName).replace(new RegExp("_","g")," "):void 0},this.capitalizeFirstLetter=e=>e.charAt(0).toUpperCase()+e.slice(1),this.getContextRecordExampleValue=e=>{var t;switch(null===(t=e.control)||void 0===t?void 0:t.name){case"email":return"myemail@example.com";case"first_name":return"Maria";case"last_name":return"Taylor";default:return this.getContextRecordLabel(e)}},this.completeSubmitAction=e=>{const t=e||{},n=this.services.actionRegister.getRegisteredActions().find(e=>e.category===Y);n?null==n||n.execute(void 0,void 0,!0,t):this.services.actionFactory.get({type:L.REQUEST}).execute(void 0,void 0,!0,t)},this.getHandlers=()=>{var e;return(null===(e=this.getProps())||void 0===e?void 0:e.handlers)&&this.getProps().handlers.length?[...this.getProps().handlers]:[]},this.assets=(e="")=>`${this.services.config.getConfig("staticResourcesUrl").replace(/\/$/,"")}/${this.manifest.name}/assets${e?`/${e}`:""}`,this.attachShadow({mode:"open"}),this.manifest=this.manifest||(null===(e=this.constructor.define)||void 0===e?void 0:e.manifest)}connectedCallback(){this.construct(),this.registerComponentResourceManagement(),Promise.resolve().then(()=>{this.attachHandlers()});const e=document.createElement("style");e.textContent='\n :host(.cl-game-spotlight-component)::after {\n content: "";\n position: absolute;\n background-size: 100% 100%;\n background-repeat: no-repeat;\n overflow: visible;\n \n backdrop-filter: blur(4px);\n \n inset: -30px;\n mask-image: \n linear-gradient(to bottom, transparent, grey 30px, grey calc(100% - 30px), transparent),\n linear-gradient(to right, transparent, grey 30px, grey calc(100% - 30px), transparent);\n mask-composite: intersect;\n -webkit-mask-composite: source-in; /* for Chrome/Safari */\n \n transition: opacity 0.35s ease;\n pointer-events: auto;\n }\n ',this.getRootElement().prepend(e)}disconnectedCallback(){var e;this.observers.clear(),this.subscriptions.off(),this.state.destroy(),this.componentEventEmitter.destroy(),null===(e=this.mergeTagsProcessor)||void 0===e||e.destroy()}}se._resolveTogglableStylesForElementModel=e=>{const t=Object.assign({},e);return Object.keys(t).forEach(e=>{e.toLowerCase().includes("styleattributes")&&(t[e]=se._resolveTogglableStyles(t[e]))}),t},se._resolveTogglableStyles=e=>{const t=Object.assign({},e),n=(e,n,o)=>{n in t&&(e.forEach(e=>{e in t&&(t[e]=t[n]?t[e]:o)}),delete t[n])};return n(["marginTop","marginBottom","marginLeft","marginRight"],"_marginEnabled","0px"),n(["paddingTop","paddingBottom","paddingLeft","paddingRight"],"_paddingEnabled","0px"),t};const ae=se;function ce(e,t,n){if("en"===n&&e>1)return t[1];const o=Math.abs(e);return t[o%100>4&&o%100<20?2:[2,0,1,1,1,2][o%10<5?o%10:5]]}function le(e){return le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},le(e)}function ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function de(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ve(o.key),o)}}function me(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(me=function(){return!!e})()}function he(e,t,n,o){var r=be(pe(1&o?e.prototype:e),t,n);return 2&o&&"function"==typeof r?function(e){return r.apply(n,e)}:r}function be(){return be="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=pe(e)););return e}(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}},be.apply(null,arguments)}function pe(e){return pe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pe(e)}function ge(e,t){return ge=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ge(e,t)}function Le(e,t,n){return(t=ve(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ve(e){var t=function(e){if("object"!=le(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=le(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==le(t)?t:t+""}var fe=function(){function e(){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return Le(t=function(e,t,n){return t=pe(t),function(e,t){if(t&&("object"==le(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,me()?Reflect.construct(t,n||[],pe(e).constructor):t.apply(e,n))}(this,e,[].concat(o)),"getEndDateData",function(e){if("FROM_THE_START_OF_DISPLAYING"===e.content.mode){var n=t.getStoredRelativeStartDate(),o=t.getLengthMs(e.content.lengthFromTheStart);return n?{dateInMs:new Date(n).getTime()+o,shouldBeStored:!1}:{dateInMs:(new Date).getTime()+o,shouldBeStored:!0}}return{dateInMs:new Date(e.content.endDate).getTime(),shouldBeStored:!1}}),Le(t,"getLengthMs",function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,s,a=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(a.push(o.value),a.length!==t);c=!0);}catch(e){l=!0,r=e}finally{try{if(!c&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw r}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ue(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ue(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e.split(".").map(Number),4);return 864e5*t[0]+36e5*t[1]+6e4*t[2]+1e3*t[3]}),Le(t,"getStoredRelativeStartDate",function(){var e;if(t.isStaticRenderMode()&&"FROM_THE_START_OF_DISPLAYING"===t.getProps().content.mode)return null===(e=t.services.config.getConfig("getRelativeTimerViewDate"))||void 0===e?void 0:e()}),Le(t,"storeRelativeStartDate",function(){var e;t.isStaticRenderMode()&&"FROM_THE_START_OF_DISPLAYING"===t.getProps().content.mode&&(null===(e=t.services.config.getConfig("storeRelativeTimerViewDate"))||void 0===e||e())}),Le(t,"clearRelativeStartDate",function(){var e;t.isStaticRenderMode()&&"FROM_THE_START_OF_DISPLAYING"===t.getProps().content.mode&&(null===(e=t.services.config.getConfig("clearRelativeTimerViewDate"))||void 0===e||e())}),Le(t,"getDateWithTimeZone",function(e,t){var n=t?new Date(t):new Date;return e?new Date(n.toLocaleString("en-US",{timeZone:e})):n}),Le(t,"splitMilliseconds",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("number"!=typeof e||e<0)return{days:0,hours:0,minutes:0,seconds:0,milliseconds:0};var n=e,o={},r=function(e,t,r){var i=Math.floor(n/e);o[r]=t?i:0,n=t?n-i*e:n};return r(864e5,t.days,"days"),r(36e5,t.hours,"hours"),r(6e4,t.minutes,"minutes"),r(1e3,t.seconds,"seconds"),o.milliseconds=n,o}),Le(t,"drawTimer",function(e,n){var o=t.getRootElement().querySelector(".countdownContainer"),r=!1!==e.content.labelsEnabled,i=t.createElementContainers(o,r),s=t.getTranslationsMap(t.manifest.i18n),a=s.translations,c=s.language,l=e.content.format||(e.content.showDays?"DD:HH:MM:SS":"HH:MM:SS"),u=t.parseFormat(l),d=n+50,m=t.splitMilliseconds(d,u),h=m.days,b=m.hours,p=m.minutes,g=m.seconds;u.days&&t.createCounterElement(i,h,"day",a,c),u.hours&&(u.days&&t.addSeparatorElements(i),t.createCounterElement(i,b,"hour",a,c)),u.minutes&&((u.days||u.hours)&&t.addSeparatorElements(i),t.createCounterElement(i,p,"minute",a,c)),u.seconds&&((u.days||u.hours||u.minutes)&&t.addSeparatorElements(i),t.createCounterElement(i,g,"second",a,c)),t.applyAutoAdaptiveStyles(e.adaptiveStyles,e.styles)}),Le(t,"createElementContainers",function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];X({element:e,html:""});var n=document.createElement("div");n.className="countersContainer";var o=document.createElement("div");return o.className="labelsContainer",e.classList.toggle("countdownContainer--noLabels",!t),e.append(n),t&&e.append(o),{countersContainerElement:n,labelsContainerElement:o}}),Le(t,"parseFormat",function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toUpperCase();return{days:e.includes("D"),hours:e.includes("H"),minutes:e.includes("M"),seconds:e.includes("S")}}),Le(t,"createCounterElement",function(e,n,o,r,i){var s=document.createElement("div");s.setAttribute("cl-element","counterContainer"),s.className="counterContainer";var a=document.createElement("span");a.setAttribute("cl-element","counter"),a.className="counter",X({element:a,html:n>=10?n:"0".concat(n)});var c=document.createElement("div");c.className="counterLabelContainer";var l=document.createElement("span");l.setAttribute("cl-element","label"),l.className="counterLabel",X({element:l,html:ce(n,t.getLabelKeys(r,o),i)}),s.appendChild(a),c.appendChild(l),e.countersContainerElement.appendChild(s),e.labelsContainerElement.appendChild(c)}),Le(t,"getLabelKeys",function(e,t){return[e["content,counterLabel,".concat(t,",single")],e["content,counterLabel,".concat(t,",upToFour")],e["content,counterLabel,".concat(t,",fromFive")]]}),Le(t,"addSeparatorElements",function(e){var t=document.createElement("div");t.setAttribute("cl-element","separator"),t.className="counter-separator",t.textContent=":";var n=t.cloneNode(!0);n.className="label-separator",e.countersContainerElement.appendChild(t),e.labelsContainerElement.appendChild(n)}),Le(t,"manifest",a),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ge(e,t)}(e,ae),function(e,t){return t&&de(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(e,[{key:"connectedCallback",value:function(){var t=this;he(e,"connectedCallback",this,3)([]),this.getRootElement().innerHTML+="\n".concat("\n<style>\n/* The host is the flex container, so the root box below takes the host height\n through flex sizing rather than a percentage. With a fixed or filled host the\n box grows to it; with the default by-content host it hugs the counters; and\n min-height:0 lets it clamp to a host that is smaller than the counters, so the\n numbers are the same a height:100% used to give in Chrome.\n height:100% itself is not an option here: in a quirks-mode document (the\n dashboard preview iframes are about:blank, and some customer pages have no\n doctype) WebKit resolves a percentage height on a child of an auto-height\n block against the parent flex column instead, so in Safari the counters grew\n to the column and spilled out of the timer. */\n:host {\n display: flex;\n flex-direction: column;\n}\n\n.countdownContainer {\n display: flex;\n flex-direction: column;\n flex: 1 1 auto;\n min-height: 0;\n}\n\n.labelsContainer,\n.countersContainer {\n display: flex;\n align-items: center;\n width: 100%;\n}\n\n.countersContainer {\n flex-grow: 1;\n margin-bottom: 5px;\n}\n\n/* that margin only exists to separate the counters from the labels below */\n.countdownContainer--noLabels .countersContainer {\n margin-bottom: 0;\n}\n\n.counterLabelContainer,\n.counterContainer {\n display: flex;\n justify-content: center;\n align-items: center;\n flex-grow: 1;\n width: 100%;\n min-width: 40px;\n}\n\n.counterContainer {\n height: 100%;\n}\n\n.counter-separator,\n.label-separator {\n margin: 0 5px;\n font-weight: 700;\n font-size: 16px;\n}\n\n.label-separator {\n /* \n limit label separator height so that it never will be higher than label or container,\n still having the same width as counter separator\n */\n height: 3px;\n opacity: 0;\n}\n\n.counter, .counterLabel {\n width: 100%;\n}\n\n.counter {\n margin: 5px;\n}\n\n.counterLabel {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n</style>\n ",'\n<div class="countdownContainer"></div>\n'),this.observeProps(function(e,n){clearInterval(t.intervalId);var o="FROM_THE_START_OF_DISPLAYING"===n.content.mode?null:function(e){return e&&"Europe/Kyiv"===e?"Europe/Kiev":e}(n.content.timeZone),r=t.getEndDateData(n),i=r.dateInMs,s=i-t.getDateWithTimeZone(o).getTime();s<=0&&(t.clearRelativeStartDate(),r=t.getEndDateData(n),s=(i=r.dateInMs)-t.getDateWithTimeZone(o).getTime()),r.shouldBeStored&&t.storeRelativeStartDate(i),t.drawTimer(n,s>=0?s:0),s<=0||t.services.config.getConfig("devMode")||(t.intervalId=setInterval(function(){var e=i-t.getDateWithTimeZone(o).getTime();t.drawTimer(n,e>=0?e:0),e<=0&&clearInterval(t.intervalId)},1e3))})}},{key:"disconnectedCallback",value:function(){he(e,"disconnectedCallback",this,3)([]),clearInterval(this.intervalId)}}])}();Le(fe,"define",{name:"sys-countdown-timer",model:a.name,manifest:a});export{fe as default};window.clComponentClass_SysCountdownTimerComponent=fe;
|
|
1
|
+
const e={DESKTOP:"desktop",MOBILE:"mobile"};function t(t){return Object.values(e).map(e=>({type:"GROUP",propPath:["adaptiveStyles",e],children:t}))}const n="cl-";function o(e){return n+e}function r(e){return"cl-"+e}function i(e,t,n){var o;return null===(o=null==e?void 0:e[t])||void 0===o?void 0:o.find(e=>e.element===n)}function s(e=[]){return e.map(e=>Object.assign(Object.assign({},e),{styleAttributes:Object.assign({},e.styleAttributes)}))}const a={name:"SysCountdownTimerComponent",componentType:"COUNTDOWN_TIMER",version:"1.0.0",contextMenuModel:t([{type:"CONTROL",name:"COMPONENT_OPERATIONS"},{type:"CONTROL",name:"BRING_BACK_FORWARD",element:"host",elementProp:"styleAttributes",elementSubProp:"zIndex"},{type:"CONTROL",name:"FOCUS_PARENT_COMPONENT"}]),floatingControlsModel:t([{type:"CONTROL",name:"SIZE",elementProp:"styleAttributes",element:"host"},{type:"CONTROL",name:"MARGIN",elementProp:"styleAttributes",element:"host"},{type:"CONTROL",name:"CONTAINER_PADDING",elementProp:"styleAttributes",element:"host"}]),propertyPaneModel:{content:[{type:"GROUP",propPath:["adaptiveStyles","desktop"],children:[{type:"CONTROL",name:"DATEPICKER_COUNTDOWN_TIMER",propPath:["content"]},{type:"CONTROL",name:"SIZE",element:"host",elementProp:"styleAttributes",params:{width:{options:["fixed","fill"]},height:{options:["fixed","fill","hug"]}}},{type:"CONTROL",name:"TEXT_PARAMS",params:[{element:"counter"},{element:"label"}]},{type:"CONTROL",name:"BACKGROUND",propPath:["styles","[element=counterContainer]","styleAttributes"]},{type:"CONTROL",name:"TEXT_COLOR",propPath:["styles","[element=separator]","styleAttributes","color"],params:{label:"DOCUMENT_SEPARATOR_COLOR"}},{type:"CONTROL",name:"BORDERS",propPath:["styles","[element=counterContainer]","styleAttributes"]},{type:"CONTROL",name:"BOX_SHADOW",propPath:["styles","[element=counterContainer]","styleAttributes"]},{type:"CONTROL",name:"BORDER_RADIUS",propPath:["styles","[element=counterContainer]","styleAttributes"]},{type:"CONTROL",name:"INDENTATION",elementProp:"styleAttributes",element:"host",params:{indentationType:"MARGIN"}}]},{type:"GROUP",propPath:["adaptiveStyles","mobile"],children:[{type:"CONTROL",name:"DATEPICKER_COUNTDOWN_TIMER",propPath:["content"]},{type:"CONTROL",name:"SIZE",element:"host",elementProp:"styleAttributes",params:{width:{options:["fixed","fill","hug"]},height:{options:["fixed","fill","hug"]}}},{type:"CONTROL",name:"TEXT_PARAMS",params:[{element:"counter"},{element:"label"}]},{type:"CONTROL",name:"BACKGROUND",propPath:["styles","[element=counterContainer]","styleAttributes"]},{type:"CONTROL",name:"TEXT_COLOR",propPath:["styles","[element=separator]","styleAttributes","color"],params:{label:"DOCUMENT_SEPARATOR_COLOR"}},{type:"CONTROL",name:"BORDERS",propPath:["styles","[element=counterContainer]","styleAttributes"]},{type:"CONTROL",name:"BOX_SHADOW",propPath:["styles","[element=counterContainer]","styleAttributes"]},{type:"CONTROL",name:"BORDER_RADIUS",propPath:["styles","[element=counterContainer]","styleAttributes"]},{type:"CONTROL",name:"INDENTATION",elementProp:"styleAttributes",element:"host",params:{indentationType:"MARGIN"}}]}]},autoContrast:[{slave:{element:"counter",elementProp:"styleAttributes",elementSubProp:"color"},master:{element:"counterContainer",propPath:["styles","[element=counterContainer]","styleAttributes","background"]},enabledPropPath:["content","textContrastEnabled"]}],focusableElements:["counter","label"],events:{dispatch:[],listen:[]},i18n:{en:{"content,counterLabel,day,single":"Day","content,counterLabel,day,upToFour":"Days","content,counterLabel,day,fromFive":"Days","content,counterLabel,hour,single":"Hour","content,counterLabel,hour,upToFour":"Hours","content,counterLabel,hour,fromFive":"Hours","content,counterLabel,minute,single":"Minute","content,counterLabel,minute,upToFour":"Minutes","content,counterLabel,minute,fromFive":"Minutes","content,counterLabel,second,single":"Second","content,counterLabel,second,upToFour":"Seconds","content,counterLabel,second,fromFive":"Seconds"},ru:{"content,counterLabel,day,single":"День","content,counterLabel,day,upToFour":"Дня","content,counterLabel,day,fromFive":"Дней","content,counterLabel,hour,single":"Час","content,counterLabel,hour,upToFour":"Часа","content,counterLabel,hour,fromFive":"Часов","content,counterLabel,minute,single":"Минута","content,counterLabel,minute,upToFour":"Минуты","content,counterLabel,minute,fromFive":"Минут","content,counterLabel,second,single":"Секунда","content,counterLabel,second,upToFour":"Секунды","content,counterLabel,second,fromFive":"Секунд"},uk:{"content,counterLabel,day,single":"День","content,counterLabel,day,upToFour":"Дні","content,counterLabel,day,fromFive":"Днів","content,counterLabel,hour,single":"Година","content,counterLabel,hour,upToFour":"Години","content,counterLabel,hour,fromFive":"Годин","content,counterLabel,minute,single":"Хвилина","content,counterLabel,minute,upToFour":"Хвилини","content,counterLabel,minute,fromFive":"Хвилин","content,counterLabel,second,single":"Секунда","content,counterLabel,second,upToFour":"Секунди","content,counterLabel,second,fromFive":"Секунд"},de:{"content,counterLabel,day,single":"Tag","content,counterLabel,day,upToFour":"Tage","content,counterLabel,day,fromFive":"Tage","content,counterLabel,hour,single":"Stunde","content,counterLabel,hour,upToFour":"Stunden","content,counterLabel,hour,fromFive":"Stunden","content,counterLabel,minute,single":"Minute","content,counterLabel,minute,upToFour":"Minuten","content,counterLabel,minute,fromFive":"Minuten","content,counterLabel,second,single":"Sekunde","content,counterLabel,second,upToFour":"Sekunden","content,counterLabel,second,fromFive":"Sekunden"},es:{"content,counterLabel,day,single":"Día","content,counterLabel,day,upToFour":"Días","content,counterLabel,day,fromFive":"Días","content,counterLabel,hour,single":"Hora","content,counterLabel,hour,upToFour":"Horas","content,counterLabel,hour,fromFive":"Horas","content,counterLabel,minute,single":"Minuto","content,counterLabel,minute,upToFour":"Minutos","content,counterLabel,minute,fromFive":"Minutos","content,counterLabel,second,single":"Segundo","content,counterLabel,second,upToFour":"Segundos","content,counterLabel,second,fromFive":"Segundos"},fr:{"content,counterLabel,day,single":"Jour","content,counterLabel,day,upToFour":"Jours","content,counterLabel,day,fromFive":"Jours","content,counterLabel,hour,single":"Heure","content,counterLabel,hour,upToFour":"Heures","content,counterLabel,hour,fromFive":"Heures","content,counterLabel,minute,single":"Minute","content,counterLabel,minute,upToFour":"Minutes","content,counterLabel,minute,fromFive":"Minutes","content,counterLabel,second,single":"Seconde","content,counterLabel,second,upToFour":"Secondes","content,counterLabel,second,fromFive":"Secondes"},it:{"content,counterLabel,day,single":"Giorno","content,counterLabel,day,upToFour":"Giorni","content,counterLabel,day,fromFive":"Giorni","content,counterLabel,hour,single":"Ora","content,counterLabel,hour,upToFour":"Ore","content,counterLabel,hour,fromFive":"Ore","content,counterLabel,minute,single":"Minuto","content,counterLabel,minute,upToFour":"Minuti","content,counterLabel,minute,fromFive":"Minuti","content,counterLabel,second,single":"Secondo","content,counterLabel,second,upToFour":"Secondi","content,counterLabel,second,fromFive":"Secondi"},pt:{"content,counterLabel,day,single":"Dia","content,counterLabel,day,upToFour":"Dias","content,counterLabel,day,fromFive":"Dias","content,counterLabel,hour,single":"Hora","content,counterLabel,hour,upToFour":"Horas","content,counterLabel,hour,fromFive":"Horas","content,counterLabel,minute,single":"Minuto","content,counterLabel,minute,upToFour":"Minutos","content,counterLabel,minute,fromFive":"Minutos","content,counterLabel,second,single":"Segundo","content,counterLabel,second,upToFour":"Segundos","content,counterLabel,second,fromFive":"Segundos"},"pt-BR":{"content,counterLabel,day,single":"Dia","content,counterLabel,day,upToFour":"Dias","content,counterLabel,day,fromFive":"Dias","content,counterLabel,hour,single":"Hora","content,counterLabel,hour,upToFour":"Horas","content,counterLabel,hour,fromFive":"Horas","content,counterLabel,minute,single":"Minuto","content,counterLabel,minute,upToFour":"Minutos","content,counterLabel,minute,fromFive":"Minutos","content,counterLabel,second,single":"Segundo","content,counterLabel,second,upToFour":"Segundos","content,counterLabel,second,fromFive":"Segundos"},sv:{"content,counterLabel,day,single":"Dag","content,counterLabel,day,upToFour":"Dagar","content,counterLabel,day,fromFive":"Dagar","content,counterLabel,hour,single":"Timme","content,counterLabel,hour,upToFour":"Timmar","content,counterLabel,hour,fromFive":"Timmar","content,counterLabel,minute,single":"Minutt","content,counterLabel,minute,upToFour":"Minuter","content,counterLabel,minute,fromFive":"Minuter","content,counterLabel,second,single":"Sekund","content,counterLabel,second,upToFour":"Sekunder","content,counterLabel,second,fromFive":"Sekunder"},et:{"content,counterLabel,day,single":"Päev","content,counterLabel,day,upToFour":"Päeva","content,counterLabel,day,fromFive":"Päeva","content,counterLabel,hour,single":"Tund","content,counterLabel,hour,upToFour":"Tundi","content,counterLabel,hour,fromFive":"Tundi","content,counterLabel,minute,single":"Minut","content,counterLabel,minute,upToFour":"Minutit","content,counterLabel,minute,fromFive":"Minutit","content,counterLabel,second,single":"Sekund","content,counterLabel,second,upToFour":"Sekundit","content,counterLabel,second,fromFive":"Sekundit"},lv:{"content,counterLabel,day,single":"Diena","content,counterLabel,day,upToFour":"Dienas","content,counterLabel,day,fromFive":"Dienas","content,counterLabel,hour,single":"Stunda","content,counterLabel,hour,upToFour":"Stundas","content,counterLabel,hour,fromFive":"Stundas","content,counterLabel,minute,single":"Minūte","content,counterLabel,minute,upToFour":"Minūtes","content,counterLabel,minute,fromFive":"Minūtes","content,counterLabel,second,single":"Sekunde","content,counterLabel,second,upToFour":"Sekundes","content,counterLabel,second,fromFive":"Sekundes"},pl:{"content,counterLabel,day,single":"Dzień","content,counterLabel,day,upToFour":"Dni","content,counterLabel,day,fromFive":"Dni","content,counterLabel,hour,single":"Godzina","content,counterLabel,hour,upToFour":"Godziny","content,counterLabel,hour,fromFive":"Godzin","content,counterLabel,minute,single":"Minuta","content,counterLabel,minute,upToFour":"Minuty","content,counterLabel,minute,fromFive":"Minut","content,counterLabel,second,single":"Sekunda","content,counterLabel,second,upToFour":"Sekundy","content,counterLabel,second,fromFive":"Sekund"},nl:{"content,counterLabel,day,single":"Dag","content,counterLabel,day,upToFour":"Dagen","content,counterLabel,day,fromFive":"Dagen","content,counterLabel,hour,single":"Uur","content,counterLabel,hour,upToFour":"Uren","content,counterLabel,hour,fromFive":"Uren","content,counterLabel,minute,single":"Minuut","content,counterLabel,minute,upToFour":"Minuten","content,counterLabel,minute,fromFive":"Minuten","content,counterLabel,second,single":"Seconde","content,counterLabel,second,upToFour":"Seconden","content,counterLabel,second,fromFive":"Seconden"},cz:{"content,counterLabel,day,single":"Den","content,counterLabel,day,upToFour":"Dny","content,counterLabel,day,fromFive":"Dní","content,counterLabel,hour,single":"Hodina","content,counterLabel,hour,upToFour":"Hodiny","content,counterLabel,hour,fromFive":"Hodin","content,counterLabel,minute,single":"Minuta","content,counterLabel,minute,upToFour":"Minuty","content,counterLabel,minute,fromFive":"Minut","content,counterLabel,second,single":"Sekunda","content,counterLabel,second,upToFour":"Sekundy","content,counterLabel,second,fromFive":"Sekund"},tr:{"content,counterLabel,day,single":"Gün","content,counterLabel,day,upToFour":"Gün","content,counterLabel,day,fromFive":"Gün","content,counterLabel,hour,single":"Saat","content,counterLabel,hour,upToFour":"Saat","content,counterLabel,hour,fromFive":"Saat","content,counterLabel,minute,single":"Dakika","content,counterLabel,minute,upToFour":"Dakika","content,counterLabel,minute,fromFive":"Dakika","content,counterLabel,second,single":"Saniye","content,counterLabel,second,upToFour":"Saniye","content,counterLabel,second,fromFive":"Saniye"},ro:{"content,counterLabel,day,single":"Zi","content,counterLabel,day,upToFour":"Zile","content,counterLabel,day,fromFive":"Zile","content,counterLabel,hour,single":"Oră","content,counterLabel,hour,upToFour":"Ore","content,counterLabel,hour,fromFive":"Ore","content,counterLabel,minute,single":"Minut","content,counterLabel,minute,upToFour":"Minute","content,counterLabel,minute,fromFive":"Minute","content,counterLabel,second,single":"Secundă","content,counterLabel,second,upToFour":"Secunde","content,counterLabel,second,fromFive":"Secunde"},vi:{"content,counterLabel,day,single":"Ngày","content,counterLabel,day,upToFour":"Ngày","content,counterLabel,day,fromFive":"Ngày","content,counterLabel,hour,single":"Giờ","content,counterLabel,hour,upToFour":"Giờ","content,counterLabel,hour,fromFive":"Giờ","content,counterLabel,minute,single":"Phút","content,counterLabel,minute,upToFour":"Phút","content,counterLabel,minute,fromFive":"Phút","content,counterLabel,second,single":"Giây","content,counterLabel,second,upToFour":"Giây","content,counterLabel,second,fromFive":"Giây"},zh:{"content,counterLabel,day,single":"天","content,counterLabel,day,upToFour":"天","content,counterLabel,day,fromFive":"天","content,counterLabel,hour,single":"小時","content,counterLabel,hour,upToFour":"小時","content,counterLabel,hour,fromFive":"小時","content,counterLabel,minute,single":"分鐘","content,counterLabel,minute,upToFour":"分鐘","content,counterLabel,minute,fromFive":"分鐘","content,counterLabel,second,single":"秒","content,counterLabel,second,upToFour":"秒","content,counterLabel,second,fromFive":"秒"},ms:{"content,counterLabel,day,single":"Hari","content,counterLabel,day,upToFour":"Hari","content,counterLabel,day,fromFive":"Hari","content,counterLabel,hour,single":"Jam","content,counterLabel,hour,upToFour":"Jam","content,counterLabel,hour,fromFive":"Jam","content,counterLabel,minute,single":"Minit","content,counterLabel,minute,upToFour":"Minit","content,counterLabel,minute,fromFive":"Minit","content,counterLabel,second,single":"Saat","content,counterLabel,second,upToFour":"Saat","content,counterLabel,second,fromFive":"Saat"},ar:{"content,counterLabel,day,single":"يوما","content,counterLabel,day,upToFour":"يومان","content,counterLabel,day,fromFive":"أيام","content,counterLabel,hour,single":"ساعة","content,counterLabel,hour,upToFour":"ساعتين","content,counterLabel,hour,fromFive":"ساعات","content,counterLabel,minute,single":"دقيقة","content,counterLabel,minute,upToFour":"دقيقتين","content,counterLabel,minute,fromFive":"دقائق","content,counterLabel,second,single":"ثانية","content,counterLabel,second,upToFour":"ثانيتين","content,counterLabel,second,fromFive":"ثواني"},th:{"content,counterLabel,day,single":"วัน","content,counterLabel,day,upToFour":"วัน","content,counterLabel,day,fromFive":"วัน","content,counterLabel,hour,single":" ชั่วโมง","content,counterLabel,hour,upToFour":" ชั่วโมง","content,counterLabel,hour,fromFive":" ชั่วโมง","content,counterLabel,minute,single":"นาที","content,counterLabel,minute,upToFour":"นาที","content,counterLabel,minute,fromFive":"นาที","content,counterLabel,second,single":"วินาที","content,counterLabel,second,upToFour":"วินาที","content,counterLabel,second,fromFive":"วินาที"},bs:{"content,counterLabel,day,single":"Dan","content,counterLabel,day,upToFour":"Dani","content,counterLabel,day,fromFive":"Dana","content,counterLabel,hour,single":"Sat","content,counterLabel,hour,upToFour":"Sati","content,counterLabel,hour,fromFive":"Sati","content,counterLabel,minute,single":"Minuta","content,counterLabel,minute,upToFour":"Minute","content,counterLabel,minute,fromFive":"Minuta","content,counterLabel,second,single":"Sekundi","content,counterLabel,second,upToFour":"Sekunde","content,counterLabel,second,fromFive":"Sekundi"},bg:{"content,counterLabel,day,single":"Дeн","content,counterLabel,day,upToFour":"Дни","content,counterLabel,day,fromFive":"Дни","content,counterLabel,hour,single":"Час","content,counterLabel,hour,upToFour":"Часа","content,counterLabel,hour,fromFive":"Часа","content,counterLabel,minute,single":"Минута","content,counterLabel,minute,upToFour":"Минути","content,counterLabel,minute,fromFive":"Минути","content,counterLabel,second,single":"Секунда","content,counterLabel,second,upToFour":"Секунди","content,counterLabel,second,fromFive":"Секунди"},lt:{"content,counterLabel,day,single":"Diena","content,counterLabel,day,upToFour":"Dienos","content,counterLabel,day,fromFive":"Dienos","content,counterLabel,hour,single":"Valanda","content,counterLabel,hour,upToFour":"Valandos","content,counterLabel,hour,fromFive":"Valandos","content,counterLabel,minute,single":"Minutė","content,counterLabel,minute,upToFour":"Minutės","content,counterLabel,minute,fromFive":"Minutės","content,counterLabel,second,single":"Sekundė","content,counterLabel,second,upToFour":"Sekundės","content,counterLabel,second,fromFive":"Sekundės"},cs:{"content,counterLabel,day,single":"Den","content,counterLabel,day,upToFour":"Dny","content,counterLabel,day,fromFive":"Dní","content,counterLabel,hour,single":"Hodina","content,counterLabel,hour,upToFour":"Hodiny","content,counterLabel,hour,fromFive":"Hodin","content,counterLabel,minute,single":"Minuta","content,counterLabel,minute,upToFour":"Minuty","content,counterLabel,minute,fromFive":"Minut","content,counterLabel,second,single":"Sekunda","content,counterLabel,second,upToFour":"Sekundy","content,counterLabel,second,fromFive":"Sekund"},el:{"content,counterLabel,day,single":"ημέρα","content,counterLabel,day,upToFour":"ημέρες","content,counterLabel,day,fromFive":"μέρες","content,counterLabel,hour,single":"ώρα","content,counterLabel,hour,upToFour":"ώρες","content,counterLabel,hour,fromFive":"ώρες","content,counterLabel,minute,single":"λεπτό","content,counterLabel,minute,upToFour":"λεπτά","content,counterLabel,minute,fromFive":"λεπτά","content,counterLabel,second,single":"δευτερόλεπτο","content,counterLabel,second,upToFour":"δευτερόλεπτα","content,counterLabel,second,fromFive":"δευτερόλεπτα"},da:{"content,counterLabel,day,single":"Dag","content,counterLabel,day,upToFour":"Dage","content,counterLabel,day,fromFive":"Dage","content,counterLabel,hour,single":"Time","content,counterLabel,hour,upToFour":"Timer","content,counterLabel,hour,fromFive":"Timer","content,counterLabel,minute,single":"Minut","content,counterLabel,minute,upToFour":"Minutter","content,counterLabel,minute,fromFive":"Minutter","content,counterLabel,second,single":"Sekund","content,counterLabel,second,upToFour":"Sekunder","content,counterLabel,second,fromFive":"Sekunder"},he:{"content,counterLabel,day,single":"יום","content,counterLabel,day,upToFour":"ימים","content,counterLabel,day,fromFive":"ימים","content,counterLabel,hour,single":"שעה","content,counterLabel,hour,upToFour":"שעות","content,counterLabel,hour,fromFive":"שעות","content,counterLabel,minute,single":"דקה","content,counterLabel,minute,upToFour":"דקות","content,counterLabel,minute,fromFive":"דקות","content,counterLabel,second,single":"שנייה","content,counterLabel,second,upToFour":"שניות","content,counterLabel,second,fromFive":"שניות"},fi:{"content,counterLabel,day,single":"Päivä","content,counterLabel,day,upToFour":"Päivää","content,counterLabel,day,fromFive":"Päivää","content,counterLabel,hour,single":"Tunti","content,counterLabel,hour,upToFour":"Tuntia","content,counterLabel,hour,fromFive":"Tuntia","content,counterLabel,minute,single":"Minuutti","content,counterLabel,minute,upToFour":"Minuuttia","content,counterLabel,minute,fromFive":"Minuuttia","content,counterLabel,second,single":"Sekunti","content,counterLabel,second,upToFour":"Sekuntia","content,counterLabel,second,fromFive":"Sekuntia"},hi:{"content,counterLabel,day,single":"दिन ","content,counterLabel,day,upToFour":"दिन ","content,counterLabel,day,fromFive":"दिन ","content,counterLabel,hour,single":"घंटा ","content,counterLabel,hour,upToFour":"घंटे ","content,counterLabel,hour,fromFive":"घंटे ","content,counterLabel,minute,single":"मिनट ","content,counterLabel,minute,upToFour":"मिनट","content,counterLabel,minute,fromFive":"मिनट ","content,counterLabel,second,single":"सेकंड","content,counterLabel,second,upToFour":"सेकंड","content,counterLabel,second,fromFive":"सेकंड"},hr:{"content,counterLabel,day,single":"Dan","content,counterLabel,day,upToFour":"Dani","content,counterLabel,day,fromFive":"Dani","content,counterLabel,hour,single":"Sat","content,counterLabel,hour,upToFour":"Sati","content,counterLabel,hour,fromFive":"Sati","content,counterLabel,minute,single":"Minuta","content,counterLabel,minute,upToFour":"Minute","content,counterLabel,minute,fromFive":"Minute","content,counterLabel,second,single":"Sekunda","content,counterLabel,second,upToFour":"Sekunde","content,counterLabel,second,fromFive":"Sekunde"},hu:{"content,counterLabel,day,single":"Nap","content,counterLabel,day,upToFour":"Nap","content,counterLabel,day,fromFive":"Nap","content,counterLabel,hour,single":"Óra","content,counterLabel,hour,upToFour":"Óra","content,counterLabel,hour,fromFive":"Óra","content,counterLabel,minute,single":"Perc","content,counterLabel,minute,upToFour":"Perc","content,counterLabel,minute,fromFive":"Perc","content,counterLabel,second,single":"Másodperc","content,counterLabel,second,upToFour":"Másodperc","content,counterLabel,second,fromFive":"Másodperc"},id:{"content,counterLabel,day,single":"Hari","content,counterLabel,day,upToFour":"Hari","content,counterLabel,day,fromFive":"Hari","content,counterLabel,hour,single":"Jam","content,counterLabel,hour,upToFour":"Jam","content,counterLabel,hour,fromFive":"Jam","content,counterLabel,minute,single":"Menit","content,counterLabel,minute,upToFour":"Menit","content,counterLabel,minute,fromFive":"Menit","content,counterLabel,second,single":"Detik","content,counterLabel,second,upToFour":"Detik","content,counterLabel,second,fromFive":"Detik"},ja:{"content,counterLabel,day,single":"日","content,counterLabel,day,upToFour":"日","content,counterLabel,day,fromFive":"日","content,counterLabel,hour,single":"時間","content,counterLabel,hour,upToFour":"時間","content,counterLabel,hour,fromFive":"時間","content,counterLabel,minute,single":"分","content,counterLabel,minute,upToFour":"分","content,counterLabel,minute,fromFive":"分","content,counterLabel,second,single":"秒","content,counterLabel,second,upToFour":"秒","content,counterLabel,second,fromFive":"秒"},ko:{"content,counterLabel,day,single":"일","content,counterLabel,day,upToFour":"일","content,counterLabel,day,fromFive":"일","content,counterLabel,hour,single":"시","content,counterLabel,hour,upToFour":"시","content,counterLabel,hour,fromFive":"시","content,counterLabel,minute,single":"분","content,counterLabel,minute,upToFour":"분","content,counterLabel,minute,fromFive":"분","content,counterLabel,second,single":"초","content,counterLabel,second,upToFour":"초","content,counterLabel,second,fromFive":"초"},no:{"content,counterLabel,day,single":"Dag","content,counterLabel,day,upToFour":"Dager","content,counterLabel,day,fromFive":"Dager","content,counterLabel,hour,single":"Time","content,counterLabel,hour,upToFour":"Timer","content,counterLabel,hour,fromFive":"Timer","content,counterLabel,minute,single":"Minutt","content,counterLabel,minute,upToFour":"Minutter","content,counterLabel,minute,fromFive":"Minutter","content,counterLabel,second,single":"Sekund","content,counterLabel,second,upToFour":"Sekunder","content,counterLabel,second,fromFive":"Sekunder"},sk:{"content,counterLabel,day,single":"Deň","content,counterLabel,day,upToFour":"Dni","content,counterLabel,day,fromFive":"Dní","content,counterLabel,hour,single":"Hodina","content,counterLabel,hour,upToFour":"Hodiny","content,counterLabel,hour,fromFive":"Hodín","content,counterLabel,minute,single":"Minúta","content,counterLabel,minute,upToFour":"Minúty","content,counterLabel,minute,fromFive":"Minút","content,counterLabel,second,single":"Sekunda","content,counterLabel,second,upToFour":"Sekundy","content,counterLabel,second,fromFive":"Sekúnd"},sl:{"content,counterLabel,day,single":"Dan","content,counterLabel,day,upToFour":"Dni","content,counterLabel,day,fromFive":"Dni","content,counterLabel,hour,single":"Ura","content,counterLabel,hour,upToFour":"Ure","content,counterLabel,hour,fromFive":"Ur","content,counterLabel,minute,single":"Minuta","content,counterLabel,minute,upToFour":"Minute","content,counterLabel,minute,fromFive":"Minut","content,counterLabel,second,single":"Skunda","content,counterLabel,second,upToFour":"Sekunde","content,counterLabel,second,fromFive":"Sekund"},sr:{"content,counterLabel,day,single":"Dan","content,counterLabel,day,upToFour":"Dani","content,counterLabel,day,fromFive":"Dani","content,counterLabel,hour,single":"Sat","content,counterLabel,hour,upToFour":"Sati","content,counterLabel,hour,fromFive":"Sati","content,counterLabel,minute,single":"Minut","content,counterLabel,minute,upToFour":"Minuti","content,counterLabel,minute,fromFive":"Minuti","content,counterLabel,second,single":"Sekunda","content,counterLabel,second,upToFour":"Sekunde","content,counterLabel,second,fromFive":"Sekunde"}},props:{content:{endDate:"",timeZone:null,mode:"UNTIL_THE_EXPIRATION_DATE",lengthFromTheStart:"00.00.10.00",isShowAgainAllowed:!0,showAgainMode:"NEXT_SESSION",showAgainAmount:1,showAgainUnit:"DAYS",textContrastEnabled:!0,format:"HH:MM:SS",labelsEnabled:!0},control:{icon:""},styles:[{element:"counterContainer",styleAttributes:{background:"rgb(255, 255, 255, 0.2)",borderTopStyle:"solid",borderRightStyle:"solid",borderBottomStyle:"solid",borderLeftStyle:"solid",borderTopWidth:"2px",borderTopColor:"rgba(0, 0, 0, 0.1)",borderBottomWidth:"2px",borderBottomColor:"rgba(0, 0, 0, 0.1)",borderLeftWidth:"2px",borderLeftColor:"rgba(0, 0, 0, 0.1)",borderRightWidth:"2px",borderRightColor:"rgba(0, 0, 0, 0.1)",borderTopLeftRadius:"6px",borderTopRightRadius:"6px",borderBottomLeftRadius:"6px",borderBottomRightRadius:"6px",boxShadow:"none"},classes:""},{element:"separator",styleAttributes:{color:"var(--cl-schema-text, rgb(68, 68, 68))"},classes:""}],adaptiveStyles:(c=[{element:"host",styleAttributes:{width:"220px",minWidth:"220px",height:"auto",minHeight:null,marginTop:"0px",marginBottom:"0px",marginLeft:"0px",marginRight:"0px",_marginEnabled:!1},classes:""},{element:"counter",styleAttributes:{color:"var(--cl-schema-text, rgb(0, 0, 0))",textAlign:"center",lineHeight:"120%",fontWeight:"700",fontSize:"20px",textShadow:"none"},classes:""},{element:"label",styleAttributes:{color:"var(--cl-schema-text, rgb(68, 68, 68))",textAlign:"center",lineHeight:"120%",fontWeight:"400",fontSize:"12px",textShadow:"none"},classes:""}],Object.values(e).reduce((e,t)=>Object.assign(e,{[t]:s(c)}),{desktop:[],mobile:[]}))},metaDescription:{icon:"/SysCountdownTimerComponent/assets/img/component-icon.svg",label:{en:"Countdown timer",ru:"Таймер обратного отсчета",uk:"Таймер зворотного відліку",es:"Contador regresivo",fr:"Compte à rebours",de:"Countdown-Timer",it:"Conto alla rovescia",pt:"Temporizador",ro:"Cronometru de numărătoare inversă",bg:"Таймер за обратно броене",cs:"Čas odpočítávání",el:"Χρονόμετρο αντίστροφης μέτρησης",nl:"Afteltimer",pl:"Czasomierz odliczania",sv:"Nedräkning tidtagare",tr:"Geri sayım saati",ar:"العد التنازلي",zh:"倒计时",da:"Nedtællingstimer",he:"טיימר ספירה לאחור",fi:"Ajastin",hi:"काउंटडाउन टाइमर",hr:"Odbrojavanje vremena",hu:"Visszaszámláló időzítő",id:"Penghitung waktu mundur",ja:"カウントダウンタイマー",ko:"카운트다운 타이머",no:"Nedtellingstidtaker",sk:"Časovač odpočítavania",sl:"Odštevalnik časa",sr:"Tajmer za odbrojavanje"}},syncEnabled:!0,stylesImitationEnabled:!0};var c;const l="VIEW",u="CONTAINER",d="INPUT",m="BUTTON",h="CONSENT",b="COLUMN";var p,g;(g=p||(p={})).SUBSCRIBE_CONTACT="SUBSCRIBE_CONTACT",g.REQUEST="REQUEST",g.DISPATCH_EVENT="DISPATCH_EVENT",g.GO_TO_VIEW="GO_TO_VIEW",g.GO_TO_PREVIOUS_VIEW="GO_TO_PREVIOUS_VIEW",g.GO_TO_NEXT_VIEW="GO_TO_NEXT_VIEW",g.SHOW_WIDGET="SHOW_WIDGET",g.OPEN_LINK="OPEN_LINK",g.CLOSE_WIDGET="CLOSE_WIDGET",g.CLICK="CLICK";const L=p;var v,f;class y{static sortActions(e){const t={[L.CLOSE_WIDGET]:-1,[L.OPEN_LINK]:-2,[L.SHOW_WIDGET]:1,[L.SUBSCRIBE_CONTACT]:2,[L.REQUEST]:3},n=e=>void 0!==t[e.type]?t[e.type]:0;return[...e].sort((e,t)=>n(e)>n(t)?-1:n(e)<n(t)?1:0)}constructor(e,t){this.config=e,this.actions=y.sortActions(t),this.listener=null,this.targetElements=[],this.eventsQueue=[],this.state=null,this.postponed=!1}activate(e,t,n){this.state=e;const o=n(),i=o.getAttribute(r("id"));this.actions.forEach(e=>{var t;return null===(t=e.setInitiatorComponentId)||void 0===t?void 0:t.call(e,i)}),this.listener=e=>{const t=e.composedPath().filter(e=>e instanceof HTMLElement&&e.getAttribute(r("type")));let n=0;for(;t[n]&&t[n].getAttribute(r("id"))!==i;){let e=t[n].getAttribute(r("type"));if(y.IGNORING_VIEW_ENTRY_TYPES.includes(e))return;n++}this.eventsQueue.push({event:e}),this.postponed||this.execute()},this.targetElements=this.config.relativeSelector?Array.from((o.shadowRoot||o).querySelectorAll(this.config.relativeSelector)):[o],this.targetElements.forEach(e=>{e.addEventListener("click",this.listener)})}async execute(){var e,t,n,o;try{for(var r,i=!0,s=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},o("next"),o("throw"),o("return"),t[Symbol.asyncIterator]=function(){return this},t);function o(n){t[n]=e[n]&&function(t){return new Promise(function(o,r){!function(e,t,n,o){Promise.resolve(o).then(function(t){e({value:t,done:n})},t)}(o,r,(t=e[n](t)).done,t.value)})}}}(this.eventsQueue);!(e=(r=await s.next()).done);i=!0){o=r.value,i=!1;const{event:e}=o;for(const t of this.actions)if(!await t.execute(this.state.getState(),e))break}}catch(e){t={error:e}}finally{try{i||e||!(n=s.return)||await n.call(s)}finally{if(t)throw t.error}}this.eventsQueue=[]}postpone(){this.postponed=!0}release(){this.postponed=!1,this.execute()}destroy(){this.listener&&this.targetElements.length&&(this.targetElements.forEach(e=>{e.removeEventListener("click",this.listener)}),this.targetElements=[])}}y.IGNORING_VIEW_ENTRY_TYPES=[m,h,d],(f=v||(v={})).CLICK="CLICK",f.COMPONENT_EVENT="COMPONENT_EVENT";class T{constructor(e,t){this.config=e,this.actions=t,this.componentEmitterListener=null}activate(e,t,n){var o;const i=null===(o=n())||void 0===o?void 0:o.getAttribute(r("id"));this.actions.forEach(e=>{var t;return null===(t=e.setInitiatorComponentId)||void 0===t?void 0:t.call(e,i)}),this.componentEmitterListener=t.on(this.config.eventName,()=>{this.actions.forEach(t=>t.execute(e.getState(),this.config.params))})}destroy(){this.componentEmitterListener&&this.componentEmitterListener.off()}}class F{constructor(e,t){this.actionFactory=e,this.actionRegister=t}get(e){const t=e.actions.map(e=>this.actionFactory.get(e));switch(t.forEach(e=>this.actionRegister.register(e)),e.type){case v.CLICK:return new y(e,t);case v.COMPONENT_EVENT:return new T(e,t);default:throw new Error(`Not supported handler type ${e.type}`)}}}class S{static generate(){let e,t="";for(let n=0;n<32;n++)8!==n&&12!==n&&16!==n&&20!==n||(t+="-"),e=Math.floor(16*Math.random()).toString(16).toUpperCase(),t+=e;return t}}class E{constructor(){this.listeners=E.createDefaultListenersState()}emit(e,t,n=null){const o=this.listeners[e];o&&Object.values(o).forEach(o=>o(t,e,n)),Object.values(this.listeners["*"]).forEach(o=>o(t,e,n))}on(e,t){const n=S.generate(),o=this.listeners[e];return o?o[n]=t:this.listeners[e]={[n]:t},{off:()=>{var t,o;(null===(o=null===(t=this.listeners)||void 0===t?void 0:t[e])||void 0===o?void 0:o[n])&&delete this.listeners[e][n]}}}destroy(){this.listeners=E.createDefaultListenersState()}}E.createDefaultListenersState=()=>({"*":{}});const O=E,C=(e,t,n,o)=>{const r=EventTarget.prototype,{addEventListenerBase:i,addEventListener:s}=r;(i||s).call(e,t,n,o)};class A{constructor(e){this.state=e||{}}getState(){return this.state}setState(e){this.state=Object.assign(Object.assign({},this.state),e)}destroy(){}}class R extends O{constructor(e,t){super(),this.config=t,this.handleMobileBreakpoint(e.getShared().mobileBreakpointWidth),e.on("ENVIRONMENT_UPDATE",({isMobileEnv:e})=>{this._isMobile=e,this.emit(R.changeEventName,this._isMobile)})}handleMobileBreakpoint(e){this.mobileBreakpointWidth=e;const t=Number.isInteger(this.mobileBreakpointWidth)?`${this.mobileBreakpointWidth}px`:this.mobileBreakpointWidth;this.mediaQueryList=window.matchMedia(`(max-width: ${t})`),this.mediaQueryList.addListener(this.listener.bind(this)),this._isMobile=this.mediaQueryList.matches,this.emit(R.changeEventName,this._isMobile)}isMobile(){return this.config.forceMobileEnv||this._isMobile}listener(e){this._isMobile=e.matches,this.emit(R.changeEventName,this._isMobile)}destroy(){super.destroy(),this.mediaQueryList.removeListener(this.listener.bind(this))}}R.changeEventName="CHANGE";const M=R;class _{static set(e,t){const n=e[_.accumulatorPropertyName]||{};e[_.accumulatorPropertyName]=Object.assign(Object.assign({},n),t.styleAttributes),Object.keys(e[_.accumulatorPropertyName]).forEach(n=>{n.includes("--")?e.style.setProperty(n,t.styleAttributes[n]||""):e.style[n]=t.styleAttributes[n]?t.styleAttributes[n]:""})}}_.accumulatorPropertyName="clStyleAttributes";const N=_;var D,P;(P=D||(D={})).BUILT_IN="BUILT_IN",P.DETACHED="DETACHED",P.FLOATING_BOX="FLOATING_BOX",P.FLOATING_BAR="FLOATING_BAR",P.LAUNCHER="LAUNCHER",P.CONTENT_LOCKER="CONTENT_LOCKER";class k{static applyHostStyles(e,t,n=null,o){var r,i,s;const a=null===(i=null===(r=null==n?void 0:n.props)||void 0===r?void 0:r.handlers)||void 0===i?void 0:i.find(e=>"CLICK"===e.type);a&&(null===(s=a.actions)||void 0===s?void 0:s.length)&&(t.style.cursor="pointer"),e!==l&&e!==u&&e!==b||(t.style.display=o===D.CONTENT_LOCKER&&e===l?"flex":"inline-flex",t.style.position="relative"),t.style.boxSizing="border-box"}constructor(){this.styles="/* common styles */ *, *:before, *:after { box-sizing: border-box; font-family: inherit; }"}setStyles(e=""){this.styles=`${this.styles} ${e}`}getStyles(){return this.styles}}class I{static log(e){window.scriptLog09u8y9?scriptLog09u8y9("ERROR","RUNTIME_ERROR",new Error(e)):console.error(e)}}class x{constructor(e,t,n,o,r,i){this.hostElement=t,this.documentModel=e,this.getSharedCb=n,this.getPropsCb=o,this.getEnvCb=r,this.httpClient=i,this.schemaSubscription=null,this.themeSubscription=null,this.envUrlMaps={desktop:new Map,mobile:new Map}}parseBackground(e){const t=String(e||"");if(t.includes("url")){const[e,n]=t.split("(")[1].split(")");return{url:e.replace(/['"]+/g,""),positionOptions:n.replace(";","")}}return{url:null,positionOptions:null}}apply(e){const t=this.getPropsCb();return t.backgroundDynamicInlineSVGElements[e].forEach(n=>{var o,r,i,s,a;const c=null===(r=null===(o=t.adaptiveStyles)||void 0===o?void 0:o[e])||void 0===r?void 0:r.find(e=>e.element===n),l=(null===(i=t.styles)||void 0===i?void 0:i.find(e=>e.element===n))||{},u=(null===(s=null==l?void 0:l.styleAttributes)||void 0===s?void 0:s.background)||(null===(a=null==c?void 0:c.styleAttributes)||void 0===a?void 0:a.background),d=this.parseBackground(u);d.url&&this.envUrlMaps[e].set(n,{originalSVGResourceURL:d.url,inlineSvgString:null,positionOptions:d.positionOptions})}),Promise.all([...this.envUrlMaps[e].entries()].map(([t,n])=>this.httpClient.execute({url:n.originalSVGResourceURL}).then(e=>e.text()).then(o=>{this.envUrlMaps[e].set(t,Object.assign(Object.assign({},n),{inlineSvgString:o}))}))).then(()=>{var t;const n=this.getSharedCb();return Object.keys((null===(t=n.theme)||void 0===t?void 0:t.schema)||{}).length>0?this._applyHostElementBackgroundFromTheme(this.envUrlMaps[e].get("host"),n.theme.schema):this._applyHostElementBackgroundFromCssVars(this.envUrlMaps[e].get("host"),n.cssVars)}).catch(e=>{console.error(e),I.log(`Failed to load/apply backgroundDynamicInlineSVGElements[${this.getPropsCb().backgroundDynamicInlineSVGElements}] ${e}`)})}on(){return this.schemaSubscription=this.documentModel.on("COLOR_SCHEMA_UPDATE",e=>{this._applyHostElementBackgroundFromCssVars(this.envUrlMaps[this.getEnvCb()].get("host"),e)}),this.themeSubscription=this.documentModel.on("THEME_UPDATE",e=>{this._applyHostElementBackgroundFromTheme(this.envUrlMaps[this.getEnvCb()].get("host"),e.schema)}),this}_applyHostElementBackgroundFromCssVars(e,t){e&&t&&(this.hostElement.style.background=this._buildBackgroundUrlFromCssVars(e,t))}_applyHostElementBackgroundFromTheme(e,t){e&&t&&(this.hostElement.style.background=this._buildBackgroundUrlFromTheme(e,t))}_buildBackgroundUrlFromCssVars(e,t){const n=e.inlineSvgString.trim().replace("var(--cl-schema-accent)",t["cl-schema-accent"]);return`url('data:image/svg+xml,${encodeURIComponent(n)}')${e.positionOptions}`}_buildBackgroundUrlFromTheme(e,t){const n=e.inlineSvgString.trim();let o=n;return[...n.matchAll(/var\(--cl-schema-([^)]+)\)/g)].forEach(e=>{const n=function(e=""){return e.replace(/var\(\s*(--[^,\s)]+).*\)/,"$1").replace("--cl-schema-","")}(e[1]);var r;o=o.replace(`var(--${r=n,`cl-schema-${r}`})`,t[n])}),`url('data:image/svg+xml,${encodeURIComponent(o)}')${e.positionOptions}`}off(){var e,t;null===(e=this.schemaSubscription)||void 0===e||e.off(),null===(t=this.themeSubscription)||void 0===t||t.off()}}const w=new class{execute({url:e,method:t="GET",body:n=null,headers:o,abortSignal:r}){const i={method:t,headers:Object.assign({"Content-Type":"text/plain"},o||{}),credentials:"same-origin",body:null,signal:r};return n&&(i.body="string"==typeof n?n:JSON.stringify(n)),fetch(e,i)}};function U(e,t){return Object.keys(e).filter(e=>!t.includes(e)).reduce((t,n)=>Object.assign(Object.assign({},t),{[n]:e[n]}),{})}class H{static camelCaseToDashCase(e){return e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}static camelCaseToUpperSnakeCase(e){return e.replace(/[A-Z]/g,e=>"_"+e).toUpperCase()}}class j{constructor(e){this._count=0,this.onUpdateCb=e}increment(){this._count++,this.onUpdateCb(this.count())}decrement(){this._count>0&&this._count--,this.onUpdateCb(this.count())}count(){return this._count}}var B;!function(e){e.TOO_MANY_REQUESTS="TOO_MANY_REQUESTS",e.COMPONENT_RESOURCES_LOADED="COMPONENT_RESOURCES_LOADED",e.FAILED_TO_LOAD_COMPONENT_RESOURCE="FAILED_TO_LOAD_COMPONENT_RESOURCE",e.SUBMIT_REQUEST_STARTED="SUBMIT_REQUEST_STARTED",e.SUBMIT_REQUEST_FINISHED="SUBMIT_REQUEST_FINISHED",e.SUBMIT_REQUEST_ERROR_WITHOUT_VIEW="SUBMIT_REQUEST_ERROR_WITHOUT_VIEW",e.PROMO_CODE_SHOWN="PROMO_CODE_SHOWN",e.LEAD_PROGRESS="LEAD_PROGRESS"}(B||(B={}));const G=B;class W{constructor(e,t,n){this.getPending=()=>this.counters.pending,this.onCounterStateUpdate=e=>{0===e&&this.systemEventEmitter.emit(G.COMPONENT_RESOURCES_LOADED,this.componentId)},this.onResourceLoadFailure=e=>{this.isStaticEntryModule?this.systemEventEmitter.emit(G.FAILED_TO_LOAD_COMPONENT_RESOURCE,`Failed to load: ${e}`):this.counters.pending.decrement()},this.componentId=e,this.systemEventEmitter=t,this.isStaticEntryModule=n,this.counters={pending:new j(this.onCounterStateUpdate)}}}const V=(...e)=>{let t=e.reduce((e,t)=>Object.assign(Object.assign({},e),{[t]:[]}),{});return{get:e=>t[e],clear:()=>V(...e)}},$=V,z="props",K="shared",Q="environment";function J(e,t,n,o){const r=e=>{let i=function(e){return e instanceof DocumentFragment||(null==e?void 0:e.nodeType)===Node.DOCUMENT_FRAGMENT_NODE?e.host||null:e}(e);return i&&(o&&"function"==typeof o?o(i.getAttribute(t)):(null===(s=null==i?void 0:i.getAttribute)||void 0===s?void 0:s.call(i,t))===n)?i:i&&i.parentNode&&r(i.parentNode)||null;var s};return r(e)}const Y="SUBMIT";function Z(e,t){return t?(e.classes=`${e.classes||""} ${t.classes||""}`.trim(),Object.keys(t).forEach(n=>{if("element"===n||"classes"===n)return;const o=t[n];o&&"object"==typeof o&&!Array.isArray(o)?e[n]=Object.assign(Object.assign({},e[n]||{}),o):e[n]=o}),e):e}function X(e){return e.replace(/[\u0000- ]/g,"").toLowerCase()}function q(e){const{element:t,html:n,appendHtml:o}=e,r=function(e){if(null==e)return"";if("string"!=typeof e)return String(e);if(""===e)return"";if(!/<\/?([a-zA-Z][a-zA-Z0-9]*)\b[^>]*>/.test(e))return e;const t=(new DOMParser).parseFromString(e,"text/html");return t.querySelectorAll('script, style, link[rel="stylesheet"], meta[http-equiv], object, embed').forEach(e=>e.remove()),t.querySelectorAll("*").forEach(e=>{["onclick","onload","onerror","onmouseover","onfocus","onblur","onkeyup","onkeydown","onchange","onsubmit","onmouseenter","onmouseleave","onmouseout","oncontextmenu","ondrag","ondrop","srcdoc"].forEach(t=>e.removeAttribute(t)),Array.from(e.attributes).forEach(t=>{t.name.startsWith("on")&&e.removeAttribute(t.name)});const t=e.tagName.toUpperCase();if("A"!==t&&"AREA"!==t||["href","xlink:href"].forEach(t=>{const n=X(e.getAttribute(t)||"");(n.startsWith("javascript:")||n.startsWith("data:"))&&e.removeAttribute(t)}),"IMG"===t||"IFRAME"===t){const t=X(e.getAttribute("src")||"");(t.startsWith("javascript:")||t.startsWith("data:text/html"))&&e.removeAttribute("src")}["action","formaction"].forEach(t=>{X(e.getAttribute(t)||"").startsWith("javascript:")&&e.removeAttribute(t)})}),t.body.innerHTML}(n);o?t.innerHTML+=r:t.innerHTML=r}const ee=Object.getPrototypeOf(document.createEvent("CustomEvent")).constructor;class te extends ee{constructor(e,t={},n){super(e,Object.assign(Object.assign({},n),{detail:t}))}}var ne,oe,re;function ie(e){if(null!=e&&""!==e)return"string"==typeof e?e:"object"==typeof e?JSON.stringify(e):String(e)}!function(e){e.STATIC="STATIC",e.UPDATING="UPDATING"}(ne||(ne={})),(re=oe||(oe={})).STATIC="STATIC",re.DATA_LAYER="DATA_LAYER",re.URL_QUERY_PARAMS="URL_QUERY_PARAMS",re.JS_API_VARIABLE="JS_API_VARIABLE",re.COOKIE="COOKIE",re.LOCAL_STORAGE="LOCAL_STORAGE";class se{constructor(e,t){this.configService=e,this.registry=t}resolveValue(e,t){if(!(null==e?void 0:e.enabled)||!e.sourceType||this.configService.getConfig("renderMode")===ne.UPDATING)return;const n=function(e,t,n,o){if(!t)return;if(t===oe.STATIC)return ie(null==n?void 0:n.value);const r=e.getSource(t);if(!r)return;const i=r.getValue(o);return ie("function"==typeof(null==i?void 0:i.processor)?i.processor(r,Object.assign({id:o},n)):null==i?void 0:i.value)}(this.registry,e.sourceType,e.config,t);if(void 0===n)return;const o=n.trim();return""===o?void 0:o}}class ae extends HTMLElement{constructor(){var e;super(),this.skipGameBlur=!0,this.isAutofillValidated=!1,this.validatedAutofillValue=void 0,this.construct=()=>{let e;const t=this.getAttribute(r("id")),n=this.getWidgetContainerNode();if(!n)throw new Error("Widget container not found in construct");const o=n.closest(`[${r("widget-id")}]`);let i;o&&(i=o.getAttribute(r("widget-id")));let s=new te("cl-props-request",{nodeName:this.nodeName,path:this.getAttribute(r("path")),id:t,widgetId:i},{bubbles:!0,composed:!0});this.dispatchEvent(s),e=s.detail.props,Object.assign(this,e),this.observers=$(z,K,Q),this.subscriptions=new class{constructor(){this.subscriptions=[]}push(e){this.subscriptions.push(e)}off(){this.subscriptions.forEach(e=>null==e?void 0:e.off())}},this.state=new A({}),this.componentEventEmitter=new O,this.componentResourceManager=new W(this.model.id,this.services.eventEmitter,this.isStaticRenderMode()),this.mergeTagsProcessor=this.services.mergeTagsProcessorFactory.create(),this._actionFactory=this.services.actionFactory,this._handlerFactory=new F(this._actionFactory,this.services.actionRegister),this.prevProps=this.model.props,this.prevEnvironment=this.getEnvironment(),this.documentModel.on(`COMPONENT_PROPS_UPDATE_${this.model.id}`,e=>{this.model.props=e,this.observers.get(z).forEach(t=>t(this.prevProps,e)),this.prevProps=e;const t=this.getHostElement(),n=r("floating");e.floating&&!t.getAttribute(n)?t.setAttribute(n,"true"):!e.floating&&t.getAttribute(n)&&t.removeAttribute(n)}),this.documentModel.on(`COMPONENT_UPDATE_${this.model.id}`,e=>{Object.assign(this.model,e)}),this.documentModel.on("SHARED_UPDATE_ALL",()=>{this.applyAutoAdaptiveStyles(this.prevProps.adaptiveStyles,this.prevProps.styles),this.observers.get(K).forEach(e=>e(this.getShared()))}),this.model.props.backgroundDynamicInlineSVGElements&&(this.colorSchemaListener=new x(this.documentModel,this.getHostElement(),()=>this.getShared(),()=>this.model.props,()=>this.getEnvironment(),w),this.colorSchemaListener.apply(this.getEnvironment()).then(()=>{this.subscriptions.push(this.colorSchemaListener.on())})),this.prevProps.adaptiveStyles&&this.subscriptions.push(this.resizeListener.on(M.changeEventName,()=>{this.applyAutoAdaptiveStyles(this.prevProps.adaptiveStyles,this.prevProps.styles);const e=this.getEnvironment();this.observers.get(Q).forEach(t=>t(this.prevEnvironment,e)),this.prevEnvironment=e})),this.subscriptions.push(this.services.eventEmitter.on("GAME_PHASE_READY_TO_PLAY",()=>{this.skipGameBlur||this.getHostElement().classList.add("cl-game-spotlight-component")})),this.subscriptions.push(this.services.eventEmitter.on("GAME_PHASE_COMPLETED",()=>{this.skipGameBlur||this.getHostElement().classList.remove("cl-game-spotlight-component")}))},this.attachHandlers=()=>{this.getHandlers().map(e=>this._handlerFactory.get(e)).map(e=>()=>e.activate(this.state,this.componentEventEmitter,this.getHostElement.bind(this))).forEach(e=>e())},this.postponeHandlers=()=>{var e;null===(e=this.handlers)||void 0===e||e.forEach(e=>e.postpone())},this.releaseHandlers=()=>{var e;null===(e=this.handlers)||void 0===e||e.forEach(e=>e.release())},this.getProps=()=>{var e;return null===(e=this.getModel())||void 0===e?void 0:e.props},this.getShared=()=>this.documentModel.getShared(),this.getEnvironment=()=>this.resizeListener.isMobile()?"mobile":"desktop",this.isStaticRenderMode=()=>this.services.config.getConfig("renderMode")===ne.STATIC,this.isUpdatingRenderMode=()=>this.services.config.getConfig("renderMode")===ne.UPDATING,this.getRootElement=()=>this.shadowRoot?this.shadowRoot:this,this.getHostElement=()=>this,this.observeProps=e=>{this.observers.get(z).push(e),e(null,this.prevProps)},this.observeShared=e=>{this.observers.get(K).push(e),e(this.getShared())},this.observeEnvironment=e=>{this.observers.get(Q).push(e),e(null,this.getEnvironment())},this.getElements=()=>[this.getHostElement(),...Array.from(this.getRootElement().querySelectorAll(`[${r("element")}]`)).filter(e=>!e.hasAttribute(r("component")))],this.getElement=(e,t)=>this.getElements().find(n=>t?n.getAttribute(r("element"))===e&&n.id===t:n.getAttribute(r("element"))===e),this.applyAutoAdaptiveStyles=(e,t)=>{if(!e&&!t)return;const n=this.getElements();if(!n.length)return;const o=function(e,t){if(!t)return e||{desktop:[],mobile:[]};const n=JSON.parse(JSON.stringify(e||{desktop:[],mobile:[]}));return t.forEach(e=>{const t=e.element;let o=!1,r=!1;n.desktop&&n.desktop.forEach(n=>{n.element===t&&(Z(n,e),o=!0)}),n.mobile&&n.mobile.forEach(n=>{n.element===t&&(Z(n,e),r=!0)}),!o&&n.desktop&&n.desktop.push(JSON.parse(JSON.stringify(e))),!r&&n.mobile&&n.mobile.push(JSON.parse(JSON.stringify(e)))}),n}(e,t),s=r("type"),a="element-styles";let c=this.getRootElement().querySelector(`style[${s}="${a}"]`);c||(c=document.createElement("style"),c.setAttribute(s,a),this.getRootElement().appendChild(c)),q({element:c,html:""}),n.forEach(e=>{let t=e.getAttribute(r("element"));const n=this.getEnvironment();let s=i(o,n,t);if(s){if(this.resizeListener.isMobile()){const e=i(o,"desktop",t);e&&(s=Object.assign(Object.assign({},s),{styleAttributes:Object.assign(Object.assign({},e.styleAttributes),s.styleAttributes)}))}this.applyStylesToElement(e,this.applySharedClassesToElementModel(s),c)}}),this._addLinkColor(c,this.getShared())},this.registerComponentResourceManagement=()=>{this.viewResourceManager.registerComponent(this.model.id,this.componentResourceManager)},this.applyStyles=(e,t={})=>{if(!e||!e.style)return!1;for(const[n,o]of Object.entries(t))e.style[n]=o;return!0},this.applyStylesToElement=(e,t,n)=>{var o,i;const s=[];"host"===(t=ae._resolveTogglableStylesForElementModel(t)).element&&(k.applyHostStyles(this.model.type,e,null,this.layoutType),("desktop"===this.getEnvironment()&&(null===(o=this.model.props.backgroundDynamicInlineSVGElements)||void 0===o?void 0:o.desktop)||"mobile"===this.getEnvironment()&&(null===(i=this.model.props.backgroundDynamicInlineSVGElements)||void 0===i?void 0:i.mobile))&&(this.colorSchemaListener.apply(this.getEnvironment()),s.push("background")));let a=t.styleAttributes.background,c=a&&a.match(/url\("([^"]*)"\)/);if(this.manifest.waitForResourcesLoad&&c){this.componentResourceManager.getPending().increment();const e=new Image;e.src=c[1],C(e,"load",()=>{this.componentResourceManager.getPending().decrement()}),C(e,"error",()=>{this.componentResourceManager.onResourceLoadFailure(e.src),this.isUpdatingRenderMode&&this.componentResourceManager.getPending().decrement()})}const l=Object.assign(Object.assign({},t),{styleAttributes:U(t.styleAttributes,s)});if(N.set(e,l),this._setClassAttributes(e,t),n){if(t.hoverStyleAttributes){let o=Object.assign({},t.hoverStyleAttributes);if("FILL_UP"===t.hoverAnimationType){e.style.boxShadow="inset 0px 0px 0px 0px rgb(0, 0, 0, 0)",e.style.overflow="hidden";const n=e.tagName.toLowerCase(),r=`flip-up-animation-${t.element}`;let i=this.getRootElement().querySelector(`#${r}`);i||(i=document.createElement("style"),i.id=r,e.appendChild(i)),q({element:i,html:`\n ${n}::before {\n content: '';\n background: ${o.background};\n position: absolute;\n left: 0;\n top: ${e.getBoundingClientRect().height}px;\n height: ${e.getBoundingClientRect().height}px;\n width: 100%;\n z-index: -10;\n }\n ${n}:hover::before {\n top: 0;\n transition: 0.3s;\n }\n `}),o=Object.assign(Object.assign({},t.hoverStyleAttributes),{background:"transparent",position:"relative"})}o.borderTopWidth&&"0px"!==o.borderTopWidth||delete o.borderTopColor,o.borderBottomWidth&&"0px"!==o.borderBottomWidth||delete o.borderBottomColor,o.borderLeftWidth&&"0px"!==o.borderLeftWidth||delete o.borderLeftColor,o.borderRightWidth&&"0px"!==o.borderRightWidth||delete o.borderRightColor,this._addStylesToStyleElement(n,t.element,o,`:not(.${r("no-hover")}):hover`,!0)}t.placeholderStyleAttributes&&this._addStylesToStyleElement(n,t.element,t.placeholderStyleAttributes,"::placeholder"),this._addFontStylesToStyleElement(n,this.getShared()),this.stylesAppliedToElement(e,t,n)}},this.applySharedClassesToElementModel=e=>function(e,t,o=!1){let r=e;return(r.classes||"").split(" ").filter(e=>e.startsWith(n)).forEach(e=>{var n;const i=null===(n=t.textClasses)||void 0===n?void 0:n[e];if(!i)return;let s=function(e,t){return{styleAttributes:Object.assign(Object.assign({},e.styleAttributes),t?e.mobileStyleAttributes:{}),placeholderStyleAttributes:Object.assign(Object.assign({},e.placeholderStyleAttributes),t?e.mobilePlaceholderStyleAttributes:{})}}(i,o);s.styleAttributes.fontFamily||(i.isHeader&&t.headerFontFamily&&(s=Object.assign(Object.assign({},s),{styleAttributes:Object.assign(Object.assign({},s.styleAttributes),{fontFamily:t.headerFontFamily})})),!i.isHeader&&t.textFontFamily&&(s=Object.assign(Object.assign({},s),{styleAttributes:Object.assign(Object.assign({},s.styleAttributes),{fontFamily:t.textFontFamily})}))),r=Object.assign(Object.assign({},r),{styleAttributes:Object.assign(Object.assign({},r.styleAttributes),s.styleAttributes),placeholderStyleAttributes:Object.assign(Object.assign({},r.placeholderStyleAttributes),s.placeholderStyleAttributes)})}),r.styleAttributes.fontFamily||(r=Object.assign(Object.assign({},r),{styleAttributes:Object.assign(Object.assign({},r.styleAttributes),{fontFamily:t.textFontFamily})})),r}(e,this.documentModel.getShared(),this.resizeListener.isMobile()),this.getModel=()=>this.model,this._addStylesToStyleElement=(e,t,n,o="",i)=>{const s=Object.keys(n).reduce((e,t)=>e+` ${H.camelCaseToDashCase(t)}: ${n[t]}${i?" !important;":";"}`,"");q({element:e,html:`[${r("element")}="${t}"]${o} { ${s} }`,appendHtml:!0})},this._addFontStylesToStyleElement=(e,t)=>{q({element:e,html:`[cl-type] {font-family:${t.textFontFamily||"inherit"}}`,appendHtml:!0})},this._addLinkColor=(e,t)=>{var n,o,r,i;t.linkColor&&q({element:e,html:`a {color: ${t.linkColor}}, a:visited {color: ${t.linkColor}}`,appendHtml:!0}),(null===(n=t.linkParams)||void 0===n?void 0:n.color)&&q({element:e,html:`a {color: ${null===(o=t.linkParams)||void 0===o?void 0:o.color}}, a:visited {color: ${null===(r=t.linkParams)||void 0===r?void 0:r.color}}`,appendHtml:!0}),(null===(i=t.linkParams)||void 0===i?void 0:i.removeUnderline)&&q({element:e,html:"a {text-decoration: none}, a:visited {text-decoration: none}",appendHtml:!0})},this._setClassAttributes=(e,t)=>{Array.from(e.classList).filter(e=>e!==o("hovered")&&e!==o("focused")).forEach(t=>{t.startsWith(n)&&e.classList.remove(t)});const r=((e.getAttribute("class")||"")+" "+t.classes).trim();e.setAttribute("class",r)},this.getParentComponent=()=>J(this.parentNode,r("element"),"host"),this.getWidgetContainerNode=()=>{const e=null==this?void 0:this.getAttribute(r("path"));return 1===(null==e?void 0:e.split(",").length)?this.parentNode:J(this.parentNode,r("path"),void 0,e=>1===(null==e?void 0:e.split(",").length))},this.getWidgetLanguages=()=>{return[(e=this.services.config).getConfig("appearanceLanguage"),e.getConfig("browserLanguage"),"en"].filter(e=>!!e);var e},this.getPreferredWidgetLanguage=()=>this.getWidgetLanguages()[0],this.getTranslationsMap=e=>function(e,t){return t.reduce((t,n)=>{if(t)return t;const o=function(e,t){if(!e)return null;if(t[e])return{translations:t[e],language:e};const n=function(e){return e.includes("-")?e.split("-")[0].toLowerCase():e.includes("_")?e.split("_")[0].toLowerCase():e}(e);return t[n]?{translations:t[n],language:n}:null}(n,e);return o||null},null)}(e,this.getWidgetLanguages()),this.stylesAppliedToElement=(e,t,n)=>{},this.updateContext=()=>{var e;const t=this.getModel();this.services.context.updateRecord(t.id,{label:this.getContextRecordLabel(t.props),viewIndex:null===(e=t.path)||void 0===e?void 0:e[0]})},this.getAutofillValue=()=>{var e;const t=this.getModel();return new se(this.services.config,this.services.context.getRegistry()).resolveValue(null===(e=t.props.control)||void 0===e?void 0:e.autofill,t.id)},this.getValidatedAutofillValue=()=>this.isAutofillValidated?this.validatedAutofillValue:void 0,this.syncAutofillContextRecord=(e,t)=>{this.isAutofillValidated=!0,this.validatedAutofillValue=e?t:void 0,e&&this.services.context.updateRecord(this.getModel().id,{value:t})},this.addContextRecord=()=>{var e,t;const n=this.getModel();this.services.context.addRecord(n.id,{recordKey:n.id,id:n.props.control.name,label:this.getContextRecordLabel(n.props),value:null!==(e=this.getValidatedAutofillValue())&&void 0!==e?e:n.props.control.defaultValue||"",viewIndex:null===(t=n.path)||void 0===t?void 0:t[0],sourceId:"FORM",initialData:{fallbackValue:"",exampleValue:this.getContextRecordExampleValue(n.props)}})},this.getContextRecordLabel=e=>{var t,n,o,r,i,s;const a=e.control.name;if(["email","first_name","last_name"].includes(a))return a.toUpperCase();if((null===(t=e.content)||void 0===t?void 0:t.label)&&(null===(r=null===(o=null===(n=e.adaptiveStyles)||void 0===n?void 0:n.desktop.find(e=>"label"===e.element))||void 0===o?void 0:o.params)||void 0===r?void 0:r.enabled)){const t=(new DOMParser).parseFromString(e.content.label,"text/html");return this.capitalizeFirstLetter(t.body.textContent||"")}return(null===(i=e.content)||void 0===i?void 0:i.placeholder)?this.capitalizeFirstLetter(e.content.placeholder):(null===(s=e.control)||void 0===s?void 0:s.integrationName)?this.capitalizeFirstLetter(e.control.integrationName).replace(new RegExp("_","g")," "):void 0},this.capitalizeFirstLetter=e=>e.charAt(0).toUpperCase()+e.slice(1),this.getContextRecordExampleValue=e=>{var t;switch(null===(t=e.control)||void 0===t?void 0:t.name){case"email":return"myemail@example.com";case"first_name":return"Maria";case"last_name":return"Taylor";default:return this.getContextRecordLabel(e)}},this.completeSubmitAction=e=>{const t=e||{},n=this.services.actionRegister.getRegisteredActions().find(e=>e.category===Y);n?null==n||n.execute(void 0,void 0,!0,t):this.services.actionFactory.get({type:L.REQUEST}).execute(void 0,void 0,!0,t)},this.getHandlers=()=>{var e;return(null===(e=this.getProps())||void 0===e?void 0:e.handlers)&&this.getProps().handlers.length?[...this.getProps().handlers]:[]},this.assets=(e="")=>`${this.services.config.getConfig("staticResourcesUrl").replace(/\/$/,"")}/${this.manifest.name}/assets${e?`/${e}`:""}`,this.attachShadow({mode:"open"}),this.manifest=this.manifest||(null===(e=this.constructor.define)||void 0===e?void 0:e.manifest)}connectedCallback(){this.construct(),this.registerComponentResourceManagement(),Promise.resolve().then(()=>{this.attachHandlers()});const e=document.createElement("style");e.textContent='\n :host(.cl-game-spotlight-component)::after {\n content: "";\n position: absolute;\n background-size: 100% 100%;\n background-repeat: no-repeat;\n overflow: visible;\n \n backdrop-filter: blur(4px);\n \n inset: -30px;\n mask-image: \n linear-gradient(to bottom, transparent, grey 30px, grey calc(100% - 30px), transparent),\n linear-gradient(to right, transparent, grey 30px, grey calc(100% - 30px), transparent);\n mask-composite: intersect;\n -webkit-mask-composite: source-in; /* for Chrome/Safari */\n \n transition: opacity 0.35s ease;\n pointer-events: auto;\n }\n ',this.getRootElement().prepend(e)}disconnectedCallback(){var e;this.observers.clear(),this.subscriptions.off(),this.state.destroy(),this.componentEventEmitter.destroy(),null===(e=this.mergeTagsProcessor)||void 0===e||e.destroy()}}ae._resolveTogglableStylesForElementModel=e=>{const t=Object.assign({},e);return Object.keys(t).forEach(e=>{e.toLowerCase().includes("styleattributes")&&(t[e]=ae._resolveTogglableStyles(t[e]))}),t},ae._resolveTogglableStyles=e=>{const t=Object.assign({},e),n=(e,n,o)=>{n in t&&(e.forEach(e=>{e in t&&(t[e]=t[n]?t[e]:o)}),delete t[n])};return n(["marginTop","marginBottom","marginLeft","marginRight"],"_marginEnabled","0px"),n(["paddingTop","paddingBottom","paddingLeft","paddingRight"],"_paddingEnabled","0px"),t};const ce=ae;function le(e,t,n){if("en"===n&&e>1)return t[1];const o=Math.abs(e);return t[o%100>4&&o%100<20?2:[2,0,1,1,1,2][o%10<5?o%10:5]]}function ue(e){return ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ue(e)}function de(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function me(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,fe(o.key),o)}}function he(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(he=function(){return!!e})()}function be(e,t,n,o){var r=pe(ge(1&o?e.prototype:e),t,n);return 2&o&&"function"==typeof r?function(e){return r.apply(n,e)}:r}function pe(){return pe="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=ge(e)););return e}(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}},pe.apply(null,arguments)}function ge(e){return ge=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ge(e)}function Le(e,t){return Le=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Le(e,t)}function ve(e,t,n){return(t=fe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fe(e){var t=function(e){if("object"!=ue(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ue(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ue(t)?t:t+""}var ye=function(){function e(){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return ve(t=function(e,t,n){return t=ge(t),function(e,t){if(t&&("object"==ue(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,he()?Reflect.construct(t,n||[],ge(e).constructor):t.apply(e,n))}(this,e,[].concat(o)),"getEndDateData",function(e){if("FROM_THE_START_OF_DISPLAYING"===e.content.mode){var n=t.getStoredRelativeStartDate(),o=t.getLengthMs(e.content.lengthFromTheStart);return n?{dateInMs:new Date(n).getTime()+o,shouldBeStored:!1}:{dateInMs:(new Date).getTime()+o,shouldBeStored:!0}}return{dateInMs:new Date(e.content.endDate).getTime(),shouldBeStored:!1}}),ve(t,"getLengthMs",function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,s,a=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(a.push(o.value),a.length!==t);c=!0);}catch(e){l=!0,r=e}finally{try{if(!c&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw r}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return de(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?de(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e.split(".").map(Number),4);return 864e5*t[0]+36e5*t[1]+6e4*t[2]+1e3*t[3]}),ve(t,"getStoredRelativeStartDate",function(){var e;if(t.isStaticRenderMode()&&"FROM_THE_START_OF_DISPLAYING"===t.getProps().content.mode)return null===(e=t.services.config.getConfig("getRelativeTimerViewDate"))||void 0===e?void 0:e()}),ve(t,"storeRelativeStartDate",function(){var e;t.isStaticRenderMode()&&"FROM_THE_START_OF_DISPLAYING"===t.getProps().content.mode&&(null===(e=t.services.config.getConfig("storeRelativeTimerViewDate"))||void 0===e||e())}),ve(t,"clearRelativeStartDate",function(){var e;t.isStaticRenderMode()&&"FROM_THE_START_OF_DISPLAYING"===t.getProps().content.mode&&(null===(e=t.services.config.getConfig("clearRelativeTimerViewDate"))||void 0===e||e())}),ve(t,"getDateWithTimeZone",function(e,t){var n=t?new Date(t):new Date;return e?new Date(n.toLocaleString("en-US",{timeZone:e})):n}),ve(t,"splitMilliseconds",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("number"!=typeof e||e<0)return{days:0,hours:0,minutes:0,seconds:0,milliseconds:0};var n=e,o={},r=function(e,t,r){var i=Math.floor(n/e);o[r]=t?i:0,n=t?n-i*e:n};return r(864e5,t.days,"days"),r(36e5,t.hours,"hours"),r(6e4,t.minutes,"minutes"),r(1e3,t.seconds,"seconds"),o.milliseconds=n,o}),ve(t,"drawTimer",function(e,n){var o=t.getRootElement().querySelector(".countdownContainer"),r=!1!==e.content.labelsEnabled,i=t.createElementContainers(o,r),s=t.getTranslationsMap(t.manifest.i18n),a=s.translations,c=s.language,l=e.content.format||(e.content.showDays?"DD:HH:MM:SS":"HH:MM:SS"),u=t.parseFormat(l),d=n+50,m=t.splitMilliseconds(d,u),h=m.days,b=m.hours,p=m.minutes,g=m.seconds;u.days&&t.createCounterElement(i,h,"day",a,c),u.hours&&(u.days&&t.addSeparatorElements(i),t.createCounterElement(i,b,"hour",a,c)),u.minutes&&((u.days||u.hours)&&t.addSeparatorElements(i),t.createCounterElement(i,p,"minute",a,c)),u.seconds&&((u.days||u.hours||u.minutes)&&t.addSeparatorElements(i),t.createCounterElement(i,g,"second",a,c)),t.applyAutoAdaptiveStyles(e.adaptiveStyles,e.styles)}),ve(t,"createElementContainers",function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];q({element:e,html:""});var n=document.createElement("div");n.className="countersContainer";var o=document.createElement("div");return o.className="labelsContainer",e.classList.toggle("countdownContainer--noLabels",!t),e.append(n),t&&e.append(o),{countersContainerElement:n,labelsContainerElement:o}}),ve(t,"parseFormat",function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toUpperCase();return{days:e.includes("D"),hours:e.includes("H"),minutes:e.includes("M"),seconds:e.includes("S")}}),ve(t,"createCounterElement",function(e,n,o,r,i){var s=document.createElement("div");s.setAttribute("cl-element","counterContainer"),s.className="counterContainer";var a=document.createElement("span");a.setAttribute("cl-element","counter"),a.className="counter",q({element:a,html:n>=10?n:"0".concat(n)});var c=document.createElement("div");c.className="counterLabelContainer";var l=document.createElement("span");l.setAttribute("cl-element","label"),l.className="counterLabel",q({element:l,html:le(n,t.getLabelKeys(r,o),i)}),s.appendChild(a),c.appendChild(l),e.countersContainerElement.appendChild(s),e.labelsContainerElement.appendChild(c)}),ve(t,"getLabelKeys",function(e,t){return[e["content,counterLabel,".concat(t,",single")],e["content,counterLabel,".concat(t,",upToFour")],e["content,counterLabel,".concat(t,",fromFive")]]}),ve(t,"addSeparatorElements",function(e){var t=document.createElement("div");t.setAttribute("cl-element","separator"),t.className="counter-separator",t.textContent=":";var n=t.cloneNode(!0);n.className="label-separator",e.countersContainerElement.appendChild(t),e.labelsContainerElement.appendChild(n)}),ve(t,"manifest",a),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Le(e,t)}(e,ce),function(e,t){return t&&me(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(e,[{key:"connectedCallback",value:function(){var t=this;be(e,"connectedCallback",this,3)([]),this.getRootElement().innerHTML+="\n".concat("\n<style>\n/* The host is the flex container, so the root box below takes the host height\n through flex sizing rather than a percentage. With a fixed or filled host the\n box grows to it; with the default by-content host it hugs the counters; and\n min-height:0 lets it clamp to a host that is smaller than the counters, so the\n numbers are the same a height:100% used to give in Chrome.\n height:100% itself is not an option here: in a quirks-mode document (the\n dashboard preview iframes are about:blank, and some customer pages have no\n doctype) WebKit resolves a percentage height on a child of an auto-height\n block against the parent flex column instead, so in Safari the counters grew\n to the column and spilled out of the timer. */\n:host {\n display: flex;\n flex-direction: column;\n}\n\n.countdownContainer {\n display: flex;\n flex-direction: column;\n flex: 1 1 auto;\n min-height: 0;\n}\n\n.labelsContainer,\n.countersContainer {\n display: flex;\n align-items: center;\n width: 100%;\n}\n\n.countersContainer {\n flex-grow: 1;\n margin-bottom: 5px;\n}\n\n/* that margin only exists to separate the counters from the labels below */\n.countdownContainer--noLabels .countersContainer {\n margin-bottom: 0;\n}\n\n.counterLabelContainer,\n.counterContainer {\n display: flex;\n justify-content: center;\n align-items: center;\n flex-grow: 1;\n width: 100%;\n min-width: 40px;\n}\n\n.counterContainer {\n height: 100%;\n}\n\n.counter-separator,\n.label-separator {\n margin: 0 5px;\n font-weight: 700;\n font-size: 16px;\n}\n\n.label-separator {\n /* \n limit label separator height so that it never will be higher than label or container,\n still having the same width as counter separator\n */\n height: 3px;\n opacity: 0;\n}\n\n.counter, .counterLabel {\n width: 100%;\n}\n\n.counter {\n margin: 5px;\n}\n\n.counterLabel {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n</style>\n ",'\n<div class="countdownContainer"></div>\n'),this.observeProps(function(e,n){clearInterval(t.intervalId);var o="FROM_THE_START_OF_DISPLAYING"===n.content.mode?null:function(e){return e&&"Europe/Kyiv"===e?"Europe/Kiev":e}(n.content.timeZone),r=t.getEndDateData(n),i=r.dateInMs,s=i-t.getDateWithTimeZone(o).getTime();s<=0&&(t.clearRelativeStartDate(),r=t.getEndDateData(n),s=(i=r.dateInMs)-t.getDateWithTimeZone(o).getTime()),r.shouldBeStored&&t.storeRelativeStartDate(i),t.drawTimer(n,s>=0?s:0),s<=0||t.services.config.getConfig("devMode")||(t.intervalId=setInterval(function(){var e=i-t.getDateWithTimeZone(o).getTime();t.drawTimer(n,e>=0?e:0),e<=0&&clearInterval(t.intervalId)},1e3))})}},{key:"disconnectedCallback",value:function(){be(e,"disconnectedCallback",this,3)([]),clearInterval(this.intervalId)}}])}();ve(ye,"define",{name:"sys-countdown-timer",model:a.name,manifest:a});export{ye as default};window.clComponentClass_SysCountdownTimerComponent=ye;
|