@claspo/components 1.1.15 → 1.2.0-theme.13

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.
@@ -1 +1 @@
1
- const e={name:"SysCountdownTimerComponent",componentType:"COUNTDOWN_TIMER",version:"1.0.0",contextMenuModel:[{type:"GROUP",propPath:["adaptiveStyles","desktop"],children:[{type:"CONTROL",name:"COMPONENT_OPERATIONS"},{type:"CONTROL",name:"BRING_BACK_FORWARD",element:"host",elementProp:"styleAttributes",elementSubProp:"zIndex"},{type:"CONTROL",name:"FOCUS_PARENT_COMPONENT"}]},{type:"GROUP",propPath:["adaptiveStyles","mobile"],children:[{type:"CONTROL",name:"COMPONENT_OPERATIONS"},{type:"CONTROL",name:"BRING_BACK_FORWARD",element:"host",elementProp:"styleAttributes",elementSubProp:"zIndex"},{type:"CONTROL",name:"FOCUS_PARENT_COMPONENT"}]}],floatingControlsModel:[{type:"GROUP",propPath:["adaptiveStyles","desktop"],children:[{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"}]},{type:"GROUP",propPath:["adaptiveStyles","mobile"],children:[{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:"SIZE",element:"host",elementProp:"styleAttributes",params:{width:{options:["fixed","fill"]},height:{options:["fixed","fill","hug"]}}},{type:"CONTROL",name:"TEXT_PARAMS",params:[{element:"counter",isLineSpaceAvailable:!0,isTextTransformAvailable:!0},{element:"label",isLineSpaceAvailable:!0,isTextTransformAvailable:!0}]},{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:"SIZE",element:"host",elementProp:"styleAttributes",params:{width:{options:["fixed","fill","hug"]},height:{options:["fixed","fill","hug"]}}},{type:"CONTROL",name:"TEXT_PARAMS",params:[{element:"counter",isLineSpaceAvailable:!0,isTextTransformAvailable:!0},{element:"label",isLineSpaceAvailable:!0,isTextTransformAvailable:!0}]},{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"}}]}],general:[{type:"CONTROL",name:"SELECT",propPath:["content","format"],params:{label:"DOCUMENT_DATE_FORMAT_TITLE",options:[{label:"DOCUMENT_COUNTDOWN_TIMER_FORMAT_DD_HH_MM_SS",value:"DD:HH:MM:SS"},{label:"DOCUMENT_COUNTDOWN_TIMER_FORMAT_HH_MM_SS",value:"HH:MM:SS"},{label:"DOCUMENT_COUNTDOWN_TIMER_FORMAT_MM_SS",value:"MM:SS"},{label:"DOCUMENT_COUNTDOWN_TIMER_FORMAT_SS",value:"SS"}]}},{type:"CONTROL",name:"DATEPICKER_COUNTDOWN_TIMER"},{type:"CONTROL",name:"SUPPORTED_LANGUAGES",params:{text:"DOCUMENT_COUNTDOWN_TIMER_LANGUAGES_DESCR"}}]},autoContrast:[{slave:{element:"counter",elementProp:"styleAttributes",elementSubProp:"color"},master:{element:"counterContainer",propPath:["styles","[element=counterContainer]","styleAttributes","background"]},enabledPropPath:["content","textContrastEnabled"]}],keepGeneralTabOpenUntilInteracted:!0,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"},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:"rgb(68, 68, 68)"},classes:""}],adaptiveStyles:{desktop:[{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:"rgb(0, 0, 0)",textAlign:"center",lineHeight:"120%",fontWeight:"700",fontSize:"20px",textShadow:"none"},classes:""},{element:"label",styleAttributes:{color:"rgb(68, 68, 68)",textAlign:"center",lineHeight:"120%",fontWeight:"400",fontSize:"12px",textShadow:"none"},classes:""}],mobile:[{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:"rgb(0, 0, 0)",textAlign:"center",lineHeight:"120%",fontWeight:"700",fontSize:"20px",textShadow:"none"},classes:""},{element:"label",styleAttributes:{color:"rgb(68, 68, 68)",textAlign:"center",lineHeight:"120%",fontWeight:"400",fontSize:"12px",textShadow:"none"},classes:""}]}},metaDescription:{icon:"/SysCountdownTimerComponent/assets/img/countdown-timer-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"}}},t="cl-";function n(e){return t+e}function o(e){return"cl-"+e}const r="VIEW",i="MODULE",a="CONTAINER",s="INPUT",c="BUTTON",l="CONSENT",u="COLUMN",d="SUBSCRIBE_CONTACT",m="REQUEST",b="SHOW_WIDGET",h="OPEN_LINK",p="CLOSE_WIDGET";class g{static sortActions(e){const t={[p]:-1,[h]:-2,[b]:1,[d]:2,[m]: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=g.sortActions(t),this.listener=null,this.targetElements=[],this.eventsQueue=[],this.state=null,this.postponed=!1}activate(e,t,n){this.state=e;const r=n(),i=r.getAttribute(o("id"));this.listener=e=>{const t=e.composedPath().filter((e=>e instanceof HTMLElement&&e.getAttribute(o("type"))));let n=0;for(;t[n]&&t[n].getAttribute(o("id"))!==i;){let e=t[n].getAttribute(o("type"));if(g.IGNORING_VIEW_ENTRY_TYPES.includes(e))return;n++}this.eventsQueue.push({event:e}),this.postponed||this.execute()},this.targetElements=this.config.relativeSelector?Array.from((r.shadowRoot||r).querySelectorAll(this.config.relativeSelector)):[r],this.targetElements.forEach((e=>{e.addEventListener("click",this.listener)}))}async execute(){var e,t,n,o;try{for(var r,i=!0,a=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 a.next()).done);){o=r.value,i=!1;try{const{event:e}=o;for(const t of this.actions)if(!await t.execute(this.state.getState(),e))break}finally{i=!0}}}catch(e){t={error:e}}finally{try{i||e||!(n=a.return)||await n.call(a)}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=[])}}g.IGNORING_VIEW_ENTRY_TYPES=[c,l,s];const L="CLICK",y="COMPONENT_EVENT";class f{constructor(e,t){this.config=e,this.actions=t,this.componentEmitterListener=null}activate(e,t,n){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 v{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 L:return new g(e,t);case y:return new f(e,t);default:throw new Error(`Not supported handler type ${e.type}`)}}}class T{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 F{constructor(){this.listeners=F.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=T.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=F.createDefaultListenersState()}}F.createDefaultListenersState=()=>({"*":{}});const S=(e,t,n,o)=>{const{addEventListenerBase:r,addEventListener:i}=EventTarget.prototype;(r||i).call(e,t,n,o)};class O{constructor(e){this.state=e||{}}getState(){return this.state}setState(e){this.state=Object.assign(Object.assign({},this.state),e)}destroy(){}}class E{static extract(e){const t=e.views.map((e=>{const t=e.children.map((e=>e.type===i?Object.assign(Object.assign({},e),E.moduleToContainerParams):e));return Object.assign(Object.assign({},e),{children:t})}));return Object.assign(Object.assign({},e),{views:t})}static sort(e,t){return e.index>t.index?1:-1}static reIndex(e,t){return Object.assign(Object.assign({},e),{index:t+e.index})}}E.moduleToContainerParams={name:"SysContainerComponent",version:"1.0.0"};class C extends F{constructor(e,t){super(),this.config=t,this.handleMobileBreakpoint(e.getShared().mobileBreakpointWidth),e.on("ENVIRONMENT_UPDATE",(({isMobileEnv:e})=>{this._isMobile=e,this.emit(C.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(C.changeEventName,this._isMobile)}isMobile(){return this.config.forceMobileEnv||this._isMobile}listener(e){this._isMobile=e.matches,this.emit(C.changeEventName,this._isMobile)}destroy(){super.destroy(),this.mediaQueryList.removeListener(this.listener.bind(this))}}C.changeEventName="CHANGE";class M{static set(e,t){const n=e[M.accumulatorPropertyName]||{};e[M.accumulatorPropertyName]=Object.assign(Object.assign({},n),t.styleAttributes),Object.keys(e[M.accumulatorPropertyName]).forEach((n=>{n.includes("--")?e.style.setProperty(n,t.styleAttributes[n]||""):e.style[n]=t.styleAttributes[n]?t.styleAttributes[n]:""}))}}M.accumulatorPropertyName="clStyleAttributes";const A="CONTENT_LOCKER";class R{static applyHostStyles(e,t,n=null,o){var i,s,c;const l=null===(s=null===(i=null==n?void 0:n.props)||void 0===i?void 0:i.handlers)||void 0===s?void 0:s.find((e=>"CLICK"===e.type));l&&(null===(c=l.actions)||void 0===c?void 0:c.length)&&(t.style.cursor="pointer"),e!==r&&e!==a&&e!==u||(t.style.display=o===A&&e===r?"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 N{static log(e){window.scriptLog09u8y9?scriptLog09u8y9("ERROR","RUNTIME_ERROR",new Error(e)):console.error(e)}}class D{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.subscription=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,a,s;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===(a=null==l?void 0:l.styleAttributes)||void 0===a?void 0:a.background)||(null===(s=null==c?void 0:c.styleAttributes)||void 0===s?void 0:s.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(n.originalSVGResourceURL).then((e=>e.text())).then((o=>{this.envUrlMaps[e].set(t,Object.assign(Object.assign({},n),{inlineSvgString:o}))}))))).then((()=>{this._applyHostElementBackground(this.envUrlMaps[e].get("host"),this.getSharedCb().cssVars)})).catch((e=>{console.error(e),N.log(`Failed to load/apply backgroundDynamicInlineSVGElements[${this.getPropsCb().backgroundDynamicInlineSVGElements}] ${e}`)}))}on(){return this.subscription=this.documentModel.on("COLOR_SCHEMA_UPDATE",(e=>{this._applyHostElementBackground(this.envUrlMaps[this.getEnvCb()].get("host"),e)})),this}_applyHostElementBackground(e,t){e&&(this.hostElement.style.background=this._buildBackgroundUrl(e,t))}_buildBackgroundUrl(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}`}off(){var e;null===(e=this.subscription)||void 0===e||e.off()}}const _=new class{execute(e,t,n=null,o,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 P(e,t){return Object.keys(e).filter((e=>!t.includes(e))).reduce(((t,n)=>Object.assign(Object.assign({},t),{[n]:e[n]})),{})}class k{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 x{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}}const w="COMPONENT_RESOURCES_LOADED",I="FAILED_TO_LOAD_COMPONENT_RESOURCE";class j{constructor(e,t,n){this.getPending=()=>this.counters.pending,this.onCounterStateUpdate=e=>{0===e&&this.systemEventEmitter.emit(w,this.componentId)},this.onResourceLoadFailure=e=>{this.isStaticEntryModule?this.systemEventEmitter.emit(I,`Failed to load: ${e}`):this.counters.pending.decrement()},this.componentId=e,this.systemEventEmitter=t,this.isStaticEntryModule=n,this.counters={pending:new x(this.onCounterStateUpdate)}}}const H=(...e)=>{let t=e.reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:[]})),{});return{get:e=>t[e],clear:()=>H(...e)}},U=H,G="props",W="shared",B="environment";function $(e,t,n,o){const r=e=>{let i=e instanceof DocumentFragment||(null==e?void 0:e.nodeType)===Node.DOCUMENT_FRAGMENT_NODE?e.host:e;return i&&(o&&"function"==typeof o?o(i.getAttribute(t)):(null===(a=null==i?void 0:i.getAttribute)||void 0===a?void 0:a.call(i,t))===n)?i:i&&i.parentNode&&r(i.parentNode)||null;var a};return r(e)}const z="SUBMIT";function V(e,t){return t?(e.classes=`${e.classes||""} ${t.classes||""}`.trim(),Object.keys(t).forEach((n=>{"element"!==n&&"classes"!==n&&(t[n]&&"object"==typeof t[n]&&!Array.isArray(t[n])?e[n]=Object.assign(Object.assign({},e[n]||{}),t[n]):e[n]=t[n])})),e):e}function Z(e,t,n){var o;return null===(o=e[t])||void 0===o?void 0:o.find((e=>e.element===n))}function J(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}class K extends Event{constructor(e,t,n){super(e,n),this.detail={},Object.defineProperty(this,"detail",{value:t})}}class Y extends HTMLElement{constructor(){var e,r;super(),this.construct=()=>{let e;const t=this.getAttribute(o("id")),n=this.getWidgetContainerNode();if(!n)throw new Error("Widget container not found in construct");const r=n.closest(`[${o("widget-id")}]`);let i;r&&(i=r.getAttribute(o("widget-id")));let a=new K("cl-props-request",{nodeName:this.nodeName,path:this.getAttribute(o("path")),id:t,widgetId:i},{bubbles:!0,composed:!0});this.dispatchEvent(a),e=a.detail.props,Object.assign(this,e),this.observers=U(G,W,B),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 O,this.componentEventEmitter=new F,this.componentResourceManager=new j(this.model.id,this.services.eventEmitter,"STATIC"===this.services.config.getConfig("entryModuleType")),this.mergeTagsProcessor=this.services.mergeTagsProcessorFactory.create(),this._actionFactory=this.services.actionFactory,this._handlerFactory=new v(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(G).forEach((t=>t(this.prevProps,e))),this.prevProps=e;const t=this.getHostElement(),n=o("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(W).forEach((e=>e(this.getShared())))})),this.model.props.backgroundDynamicInlineSVGElements&&(this.colorSchemaListener=new D(this.documentModel,this.getHostElement(),(()=>this.getShared()),(()=>this.model.props),(()=>this.getEnvironment()),_),this.colorSchemaListener.apply(this.getEnvironment()).then((()=>{this.subscriptions.push(this.colorSchemaListener.on())}))),this.prevProps.adaptiveStyles&&this.subscriptions.push(this.resizeListener.on(C.changeEventName,(()=>{this.applyAutoAdaptiveStyles(this.prevProps.adaptiveStyles,this.prevProps.styles);const e=this.getEnvironment();this.observers.get(B).forEach((t=>t(this.prevEnvironment,e))),this.prevEnvironment=e})))},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.getRootElement=()=>this.shadowRoot?this.shadowRoot:this,this.getHostElement=()=>this,this.observeProps=e=>{this.observers.get(G).push(e),e(null,this.prevProps)},this.observeShared=e=>{this.observers.get(W).push(e),e(this.getShared())},this.observeEnvironment=e=>{this.observers.get(B).push(e),e(null,this.getEnvironment())},this.getElements=()=>[this.getHostElement(),...Array.from(this.getRootElement().querySelectorAll(`[${o("element")}]`)).filter((e=>!e.hasAttribute(o("component"))))],this.getElement=(e,t)=>this.getElements().find((n=>t?n.getAttribute(o("element"))===e&&n.id===t:n.getAttribute(o("element"))===e)),this.applyAutoAdaptiveStyles=(e,t)=>{if(!e&&!t)return;const n=this.getElements();if(!n.length)return;e=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&&(V(n,e),o=!0)})),n.mobile&&n.mobile.forEach((n=>{n.element===t&&(V(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);const r=o("type"),i="element-styles";let a=this.getRootElement().querySelector(`style[${r}="${i}"]`);a||(a=document.createElement("style"),a.setAttribute(r,i),this.getRootElement().appendChild(a)),J({element:a,html:""}),n.forEach((t=>{let n=t.getAttribute(o("element"));const r=this.getEnvironment();let i=Z(e,r,n);if(i){if(this.resizeListener.isMobile()){const t=Z(e,"desktop",n);t&&(i=Object.assign(Object.assign({},i),{styleAttributes:Object.assign(Object.assign({},t.styleAttributes),i.styleAttributes)}))}this.applyStylesToElement(t,this.applySharedClassesToElementModel(i),a)}})),this._addLinkColor(a,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 r,i;const a=[];"host"===(t=Y._resolveTogglableStylesForElementModel(t)).element&&(R.applyHostStyles(this.model.type,e,null,this.layoutType),("desktop"===this.getEnvironment()&&(null===(r=this.model.props.backgroundDynamicInlineSVGElements)||void 0===r?void 0:r.desktop)||"mobile"===this.getEnvironment()&&(null===(i=this.model.props.backgroundDynamicInlineSVGElements)||void 0===i?void 0:i.mobile))&&(this.colorSchemaListener.apply(this.getEnvironment()),a.push("background")));let s=t.styleAttributes.background,c=s&&s.match(/url\("([^"]*)"\)/);if(this.manifest.waitForResourcesLoad&&c){this.componentResourceManager.getPending().increment();const e=new Image;e.src=c[1],S(e,"load",(()=>{this.componentResourceManager.getPending().decrement()})),S(e,"error",(()=>{this.componentResourceManager.onResourceLoadFailure(e.src),"UPDATING"===this.services.config.getConfig("entryModuleType")&&this.componentResourceManager.getPending().decrement()}))}const l=Object.assign(Object.assign({},t),{styleAttributes:P(t.styleAttributes,a)});if(M.set(e,l),this._setClassAttributes(e,t),n){if(t.hoverStyleAttributes){let r=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(),o=`flip-up-animation-${t.element}`;let i=this.getRootElement().querySelector(`#${o}`);i||(i=document.createElement("style"),i.id=o,e.appendChild(i)),J({element:i,html:`\n ${n}::before {\n content: '';\n background: ${r.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 `}),r=Object.assign(Object.assign({},t.hoverStyleAttributes),{background:"transparent",position:"relative"})}r.borderTopWidth&&"0px"!==r.borderTopWidth||delete r.borderTopColor,r.borderBottomWidth&&"0px"!==r.borderBottomWidth||delete r.borderBottomColor,r.borderLeftWidth&&"0px"!==r.borderLeftWidth||delete r.borderLeftColor,r.borderRightWidth&&"0px"!==r.borderRightWidth||delete r.borderRightColor,this._addStylesToStyleElement(n,t.element,r,`:not(.${o("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._fixMarginOverflow=e=>{const t=this.getParentComponent(),n=t&&("flex"===t.style.display||"inline-flex"===t.style.display),r="host",i=e.getAttribute(o("element"))===r;if(!n||!i)return;const a=this.getProps(),s=this.getEnvironment(),{styleAttributes:c}=Z(a.adaptiveStyles,s,r)||{};if(!c)return;const l=c.marginLeft||c.marginRight,u="100%"===c.width;if(l&&u){const t=(parseFloat(c.marginLeft)||0)+(parseFloat(c.marginRight)||0);t&&setTimeout((()=>{e.style.width=`calc(100% - ${t}px)`}))}},this.applySharedClassesToElementModel=e=>function(e,n){let o=e;return(o.classes||"").split(" ").filter((e=>e.startsWith(t))).forEach((e=>{var t;let r=null===(t=n.textClasses)||void 0===t?void 0:t[e];r&&(r.styleAttributes.fontFamily||(r.isHeader&&n.headerFontFamily&&(r=Object.assign(Object.assign({},r),{styleAttributes:Object.assign(Object.assign({},r.styleAttributes),{fontFamily:n.headerFontFamily})})),!r.isHeader&&n.textFontFamily&&(r=Object.assign(Object.assign({},r),{styleAttributes:Object.assign(Object.assign({},r.styleAttributes),{fontFamily:n.textFontFamily})}))),o=Object.assign(Object.assign({},o),{styleAttributes:Object.assign(Object.assign({},o.styleAttributes),r.styleAttributes),placeholderStyleAttributes:Object.assign(Object.assign({},o.placeholderStyleAttributes),r.placeholderStyleAttributes)}))})),o.styleAttributes.fontFamily||(o=Object.assign(Object.assign({},o),{styleAttributes:Object.assign(Object.assign({},o.styleAttributes),{fontFamily:n.textFontFamily})})),o}(e,this.documentModel.getShared()),this.getModel=()=>this.model,this._addStylesToStyleElement=(e,t,n,r="",i)=>{const a=Object.keys(n).reduce(((e,t)=>e+` ${k.camelCaseToDashCase(t)}: ${n[t]}${i?" !important;":";"}`),"");J({element:e,html:`[${o("element")}="${t}"]${r} { ${a} }`,appendHtml:!0})},this._addFontStylesToStyleElement=(e,t)=>{J({element:e,html:`[cl-type] {font-family:${t.textFontFamily||"inherit"}}`,appendHtml:!0})},this._addLinkColor=(e,t)=>{var n,o,r,i;t.linkColor&&J({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)&&J({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)&&J({element:e,html:"a {text-decoration: none}, a:visited {text-decoration: none}",appendHtml:!0})},this._setClassAttributes=(e,o)=>{Array.from(e.classList).filter((e=>e!==n("hovered")&&e!==n("focused"))).forEach((n=>{n.startsWith(t)&&e.classList.remove(n)}));const r=((e.getAttribute("class")||"")+" "+o.classes).trim();e.setAttribute("class",r)},this.getParentComponent=()=>$(this.parentNode,o("element"),"host"),this.getWidgetContainerNode=()=>{const e=null==this?void 0:this.getAttribute(o("path"));return e&&1===e.split(",").length?this.parentNode:$(this.parentNode,o("path"),void 0,(e=>e&&1===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.addContextRecord=()=>{var e;const t=this.getModel();this.services.context.addRecord(t.id,{recordKey:t.id,id:t.props.control.name,label:this.getContextRecordLabel(t.props),value:t.props.control.defaultValue||"",viewIndex:null===(e=t.path)||void 0===e?void 0:e[0],sourceId:"FORM",initialData:{fallbackValue:"",exampleValue:this.getContextRecordExampleValue(t.props)}})},this.getContextRecordLabel=e=>{var t,n;const o=e.control.name;if(["email","first_name","last_name"].includes(o))return o.toUpperCase();if(e.content.label&&(null===(n=null===(t=e.adaptiveStyles.desktop.find((e=>"label"===e.element)))||void 0===t?void 0:t.params)||void 0===n?void 0:n.enabled)){const t=(new DOMParser).parseFromString(e.content.label,"text/html");return this.capitalizeFirstLetter(t.body.textContent||"")}return e.content.placeholder?this.capitalizeFirstLetter(e.content.placeholder):e.control.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=>{switch(e.control.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===z));n?null==n||n.execute(void 0,void 0,!0,t):this.services.actionFactory.get({type:m}).execute(void 0,void 0,!0,t)},this.getHandlers=()=>this.getProps().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.define)||void 0===e?void 0:e.manifest)||(null===(r=this.constructor.define)||void 0===r?void 0:r.manifest)}connectedCallback(){this.construct(),this.registerComponentResourceManagement(),Promise.resolve().then((()=>{this.attachHandlers()}))}disconnectedCallback(){var e;this.observers.clear(),this.subscriptions.off(),this.state.destroy(),this.componentEventEmitter.destroy(),null===(e=this.mergeTagsProcessor)||void 0===e||e.destroy()}static _resolveTogglableStylesForElementModel(e){const t=Object.assign({},e);return Object.keys(t).forEach((e=>{e.toLowerCase().includes("styleattributes")&&(t[e]=Y._resolveTogglableStyles(t[e]))})),t}static _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}}function q(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 Q(e){return Q="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},Q(e)}function X(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 ee(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,se(o.key),o)}}function te(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(te=function(){return!!e})()}function ne(e,t,n,o){var r=oe(re(1&o?e.prototype:e),t,n);return 2&o&&"function"==typeof r?function(e){return r.apply(n,e)}:r}function oe(){return oe="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=re(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}},oe.apply(null,arguments)}function re(e){return re=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},re(e)}function ie(e,t){return ie=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ie(e,t)}function ae(e,t,n){return(t=se(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function se(e){var t=function(e){if("object"!=Q(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Q(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Q(t)?t:t+""}var ce=function(){function t(){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return ae(n=function(e,t,n){return t=re(t),function(e,t){if(t&&("object"==Q(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,te()?Reflect.construct(t,n||[],re(e).constructor):t.apply(e,n))}(this,t,[].concat(r)),"manifest",e),ae(n,"getEndDateData",(function(e){if("FROM_THE_START_OF_DISPLAYING"===e.content.mode){var t=n.getStoredRelativeStartDate(),o=n.getLengthMs(e.content.lengthFromTheStart);return t?{dateInMs:new Date(t).getTime()+o,shouldBeStored:!1}:{dateInMs:(new Date).getTime()+o,shouldBeStored:!0}}return{dateInMs:new Date(e.content.endDate).getTime(),shouldBeStored:!1}})),ae(n,"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,a,s=[],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)&&(s.push(o.value),s.length!==t);c=!0);}catch(e){l=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return X(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)?X(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]})),ae(n,"getStoredRelativeStartDate",(function(){var e;if("UPDATING"!==n.services.config.getConfig("entryModuleType")&&"FROM_THE_START_OF_DISPLAYING"===n.getProps().content.mode)return null===(e=n.services.config.getConfig("getRelativeTimerViewDate"))||void 0===e?void 0:e()})),ae(n,"storeRelativeStartDate",(function(){var e;"UPDATING"!==n.services.config.getConfig("entryModuleType")&&"FROM_THE_START_OF_DISPLAYING"===n.getProps().content.mode&&(null===(e=n.services.config.getConfig("storeRelativeTimerViewDate"))||void 0===e||e())})),ae(n,"clearRelativeStartDate",(function(){var e;"UPDATING"!==n.services.config.getConfig("entryModuleType")&&"FROM_THE_START_OF_DISPLAYING"===n.getProps().content.mode&&(null===(e=n.services.config.getConfig("clearRelativeTimerViewDate"))||void 0===e||e())})),ae(n,"getDateWithTimeZone",(function(e,t){var n=t?new Date(t):new Date;return e?new Date(n.toLocaleString("en-US",{timeZone:e})):n})),ae(n,"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})),ae(n,"drawTimer",(function(e,t){var o=n.getRootElement().querySelector(".countdownContainer"),r=n.createElementContainers(o),i=n.getTranslationsMap(n.manifest.i18n),a=i.translations,s=i.language,c=e.content.format||(e.content.showDays?"DD:HH:MM:SS":"HH:MM:SS"),l=n.parseFormat(c),u=t+50,d=n.splitMilliseconds(u,l),m=d.days,b=d.hours,h=d.minutes,p=d.seconds;l.days&&n.createCounterElement(r,m,"day",a,s),l.hours&&(l.days&&n.addSeparatorElements(r),n.createCounterElement(r,b,"hour",a,s)),l.minutes&&((l.days||l.hours)&&n.addSeparatorElements(r),n.createCounterElement(r,h,"minute",a,s)),l.seconds&&((l.days||l.hours||l.minutes)&&n.addSeparatorElements(r),n.createCounterElement(r,p,"second",a,s)),n.applyAutoAdaptiveStyles(e.adaptiveStyles,e.styles)})),ae(n,"createElementContainers",(function(e){J({element:e,html:""});var t=document.createElement("div");t.className="countersContainer";var n=document.createElement("div");return n.className="labelsContainer",e.append(t,n),{countersContainerElement:t,labelsContainerElement:n}})),ae(n,"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")}})),ae(n,"createCounterElement",(function(e,t,o,r,i){var a=document.createElement("div");a.setAttribute("cl-element","counterContainer"),a.className="counterContainer";var s=document.createElement("span");s.setAttribute("cl-element","counter"),s.className="counter",J({element:s,html:t>=10?t:"0".concat(t)});var c=document.createElement("div");c.className="counterLabelContainer";var l=document.createElement("span");l.setAttribute("cl-element","label"),l.className="counterLabel",J({element:l,html:q(t,n.getLabelKeys(r,o),i)}),a.appendChild(s),c.appendChild(l),e.countersContainerElement.appendChild(a),e.labelsContainerElement.appendChild(c)})),ae(n,"getLabelKeys",(function(e,t){return[e["content,counterLabel,".concat(t,",single")],e["content,counterLabel,".concat(t,",upToFour")],e["content,counterLabel,".concat(t,",fromFive")]]})),ae(n,"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)})),n}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&&ie(e,t)}(t,Y),n=t,o=[{key:"connectedCallback",value:function(){var e=this;ne(t,"connectedCallback",this,3)([]),this.getRootElement().innerHTML+="\n".concat("\n<style>\n.countdownContainer {\n display: flex;\n flex-direction: column;\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.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(t,n){clearInterval(e.intervalId);var o,r="FROM_THE_START_OF_DISPLAYING"===n.content.mode?null:(o=n.content.timeZone)&&"Europe/Kyiv"===o?"Europe/Kiev":o,i=e.getEndDateData(n),a=i.dateInMs,s=a-e.getDateWithTimeZone(r).getTime();s<=0&&(e.clearRelativeStartDate(),i=e.getEndDateData(n),s=(a=i.dateInMs)-e.getDateWithTimeZone(r).getTime()),i.shouldBeStored&&e.storeRelativeStartDate(a),e.drawTimer(n,s>=0?s:0),s<=0||e.services.config.getConfig("devMode")||(e.intervalId=setInterval((function(){var t=a-e.getDateWithTimeZone(r).getTime();e.drawTimer(n,t>=0?t:0),t<=0&&clearInterval(e.intervalId)}),1e3))}))}},{key:"disconnectedCallback",value:function(){ne(t,"disconnectedCallback",this,3)([]),clearInterval(this.intervalId)}}],o&&ee(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}();ae(ce,"define",{name:"sys-countdown-timer",model:e.name,manifest:e});export{ce as default};window.clComponentClass_SysCountdownTimerComponent=ce;
1
+ const e={DESKTOP:"desktop",MOBILE:"mobile"},t="cl-";function n(e){return t+e}function o(e){return"cl-"+e}function r(e,t,n){var o;return null===(o=e[t])||void 0===o?void 0:o.find((e=>e.element===n))}function i(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:[{type:"GROUP",propPath:["adaptiveStyles","desktop"],children:[{type:"CONTROL",name:"COMPONENT_OPERATIONS"},{type:"CONTROL",name:"BRING_BACK_FORWARD",element:"host",elementProp:"styleAttributes",elementSubProp:"zIndex"},{type:"CONTROL",name:"FOCUS_PARENT_COMPONENT"}]},{type:"GROUP",propPath:["adaptiveStyles","mobile"],children:[{type:"CONTROL",name:"COMPONENT_OPERATIONS"},{type:"CONTROL",name:"BRING_BACK_FORWARD",element:"host",elementProp:"styleAttributes",elementSubProp:"zIndex"},{type:"CONTROL",name:"FOCUS_PARENT_COMPONENT"}]}],floatingControlsModel:[{type:"GROUP",propPath:["adaptiveStyles","desktop"],children:[{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"}]},{type:"GROUP",propPath:["adaptiveStyles","mobile"],children:[{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:"SIZE",element:"host",elementProp:"styleAttributes",params:{width:{options:["fixed","fill"]},height:{options:["fixed","fill","hug"]}}},{type:"CONTROL",name:"TEXT_PARAMS",params:[{element:"counter",isLineSpaceAvailable:!0,isTextTransformAvailable:!0},{element:"label",isLineSpaceAvailable:!0,isTextTransformAvailable:!0}]},{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:"SIZE",element:"host",elementProp:"styleAttributes",params:{width:{options:["fixed","fill","hug"]},height:{options:["fixed","fill","hug"]}}},{type:"CONTROL",name:"TEXT_PARAMS",params:[{element:"counter",isLineSpaceAvailable:!0,isTextTransformAvailable:!0},{element:"label",isLineSpaceAvailable:!0,isTextTransformAvailable:!0}]},{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"}}]}],general:[{type:"CONTROL",name:"SELECT",propPath:["content","format"],params:{label:"DOCUMENT_DATE_FORMAT_TITLE",options:[{label:"DOCUMENT_COUNTDOWN_TIMER_FORMAT_DD_HH_MM_SS",value:"DD:HH:MM:SS"},{label:"DOCUMENT_COUNTDOWN_TIMER_FORMAT_HH_MM_SS",value:"HH:MM:SS"},{label:"DOCUMENT_COUNTDOWN_TIMER_FORMAT_MM_SS",value:"MM:SS"},{label:"DOCUMENT_COUNTDOWN_TIMER_FORMAT_SS",value:"SS"}]}},{type:"CONTROL",name:"DATEPICKER_COUNTDOWN_TIMER"},{type:"CONTROL",name:"SUPPORTED_LANGUAGES",params:{text:"DOCUMENT_COUNTDOWN_TIMER_LANGUAGES_DESCR"}}]},autoContrast:[{slave:{element:"counter",elementProp:"styleAttributes",elementSubProp:"color"},master:{element:"counterContainer",propPath:["styles","[element=counterContainer]","styleAttributes","background"]},enabledPropPath:["content","textContrastEnabled"]}],keepGeneralTabOpenUntilInteracted:!0,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"},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:(s=[{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]:i(s)})),{[e.DESKTOP]:[],[e.MOBILE]:[]}))},metaDescription:{icon:"/SysCountdownTimerComponent/assets/img/countdown-timer-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"}}};var s;const c="VIEW",l="MODULE",u="CONTAINER",d="INPUT",m="BUTTON",b="CONSENT",h="COLUMN",p="SUBSCRIBE_CONTACT",g="REQUEST",L="SHOW_WIDGET",y="OPEN_LINK",v="CLOSE_WIDGET";class f{static sortActions(e){const t={[v]:-1,[y]:-2,[L]:1,[p]:2,[g]: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=f.sortActions(t),this.listener=null,this.targetElements=[],this.eventsQueue=[],this.state=null,this.postponed=!1}activate(e,t,n){this.state=e;const r=n(),i=r.getAttribute(o("id"));this.listener=e=>{const t=e.composedPath().filter((e=>e instanceof HTMLElement&&e.getAttribute(o("type"))));let n=0;for(;t[n]&&t[n].getAttribute(o("id"))!==i;){let e=t[n].getAttribute(o("type"));if(f.IGNORING_VIEW_ENTRY_TYPES.includes(e))return;n++}this.eventsQueue.push({event:e}),this.postponed||this.execute()},this.targetElements=this.config.relativeSelector?Array.from((r.shadowRoot||r).querySelectorAll(this.config.relativeSelector)):[r],this.targetElements.forEach((e=>{e.addEventListener("click",this.listener)}))}async execute(){var e,t,n,o;try{for(var r,i=!0,a=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 a.next()).done);){o=r.value,i=!1;try{const{event:e}=o;for(const t of this.actions)if(!await t.execute(this.state.getState(),e))break}finally{i=!0}}}catch(e){t={error:e}}finally{try{i||e||!(n=a.return)||await n.call(a)}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=[])}}f.IGNORING_VIEW_ENTRY_TYPES=[m,b,d];const T="CLICK",F="COMPONENT_EVENT";class S{constructor(e,t){this.config=e,this.actions=t,this.componentEmitterListener=null}activate(e,t,n){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 O{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 T:return new f(e,t);case F:return new S(e,t);default:throw new Error(`Not supported handler type ${e.type}`)}}}class E{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 C{constructor(){this.listeners=C.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=E.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=C.createDefaultListenersState()}}C.createDefaultListenersState=()=>({"*":{}});const M=(e,t,n,o)=>{const{addEventListenerBase:r,addEventListener:i}=EventTarget.prototype;(r||i).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{static extract(e){const t=e.views.map((e=>{const t=e.children.map((e=>e.type===l?Object.assign(Object.assign({},e),R.moduleToContainerParams):e));return Object.assign(Object.assign({},e),{children:t})}));return Object.assign(Object.assign({},e),{views:t})}static sort(e,t){return e.index>t.index?1:-1}static reIndex(e,t){return Object.assign(Object.assign({},e),{index:t+e.index})}}R.moduleToContainerParams={name:"SysContainerComponent",version:"1.0.0"};class N extends C{constructor(e,t){super(),this.config=t,this.handleMobileBreakpoint(e.getShared().mobileBreakpointWidth),e.on("ENVIRONMENT_UPDATE",(({isMobileEnv:e})=>{this._isMobile=e,this.emit(N.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(N.changeEventName,this._isMobile)}isMobile(){return this.config.forceMobileEnv||this._isMobile}listener(e){this._isMobile=e.matches,this.emit(N.changeEventName,this._isMobile)}destroy(){super.destroy(),this.mediaQueryList.removeListener(this.listener.bind(this))}}N.changeEventName="CHANGE";class D{static set(e,t){const n=e[D.accumulatorPropertyName]||{};e[D.accumulatorPropertyName]=Object.assign(Object.assign({},n),t.styleAttributes),Object.keys(e[D.accumulatorPropertyName]).forEach((n=>{n.includes("--")?e.style.setProperty(n,t.styleAttributes[n]||""):e.style[n]=t.styleAttributes[n]?t.styleAttributes[n]:""}))}}D.accumulatorPropertyName="clStyleAttributes";const _="CONTENT_LOCKER";class P{static applyHostStyles(e,t,n=null,o){var r,i,a;const s=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));s&&(null===(a=s.actions)||void 0===a?void 0:a.length)&&(t.style.cursor="pointer"),e!==c&&e!==u&&e!==h||(t.style.display=o===_&&e===c?"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 k{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.subscription=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,a,s;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===(a=null==l?void 0:l.styleAttributes)||void 0===a?void 0:a.background)||(null===(s=null==c?void 0:c.styleAttributes)||void 0===s?void 0:s.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(n.originalSVGResourceURL).then((e=>e.text())).then((o=>{this.envUrlMaps[e].set(t,Object.assign(Object.assign({},n),{inlineSvgString:o}))}))))).then((()=>{var t;this._applyHostElementBackground(this.envUrlMaps[e].get("host"),null===(t=this.getSharedCb().theme)||void 0===t?void 0:t.schema)})).catch((e=>{console.error(e),k.log(`Failed to load/apply backgroundDynamicInlineSVGElements[${this.getPropsCb().backgroundDynamicInlineSVGElements}] ${e}`)}))}on(){return this.subscription=this.documentModel.on("THEME_UPDATE",(e=>{this._applyHostElementBackground(this.envUrlMaps[this.getEnvCb()].get("host"),e.schema)})),this}_applyHostElementBackground(e,t={}){e&&(this.hostElement.style.background=this._buildBackgroundUrl(e,t))}_buildBackgroundUrl(e,t){const n=e.inlineSvgString.trim().replace("var(--cl-schema-accent)",t.accent);return`url('data:image/svg+xml,${encodeURIComponent(n)}')${e.positionOptions}`}}const w=new class{execute(e,t,n=null,o,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 I(e,t){return Object.keys(e).filter((e=>!t.includes(e))).reduce(((t,n)=>Object.assign(Object.assign({},t),{[n]:e[n]})),{})}class j{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 H{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}}const U="COMPONENT_RESOURCES_LOADED",G="FAILED_TO_LOAD_COMPONENT_RESOURCE";class W{constructor(e,t,n){this.getPending=()=>this.counters.pending,this.onCounterStateUpdate=e=>{0===e&&this.systemEventEmitter.emit(U,this.componentId)},this.onResourceLoadFailure=e=>{this.isStaticEntryModule?this.systemEventEmitter.emit(G,`Failed to load: ${e}`):this.counters.pending.decrement()},this.componentId=e,this.systemEventEmitter=t,this.isStaticEntryModule=n,this.counters={pending:new H(this.onCounterStateUpdate)}}}const B=(...e)=>{let t=e.reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:[]})),{});return{get:e=>t[e],clear:()=>B(...e)}},$=B,z="props",V="shared",Z="environment";function J(e,t,n,o){const r=e=>{let i=e instanceof DocumentFragment||(null==e?void 0:e.nodeType)===Node.DOCUMENT_FRAGMENT_NODE?e.host:e;return i&&(o&&"function"==typeof o?o(i.getAttribute(t)):(null===(a=null==i?void 0:i.getAttribute)||void 0===a?void 0:a.call(i,t))===n)?i:i&&i.parentNode&&r(i.parentNode)||null;var a};return r(e)}const K="SUBMIT";function Y(e,t){return t?(e.classes=`${e.classes||""} ${t.classes||""}`.trim(),Object.keys(t).forEach((n=>{"element"!==n&&"classes"!==n&&(t[n]&&"object"==typeof t[n]&&!Array.isArray(t[n])?e[n]=Object.assign(Object.assign({},e[n]||{}),t[n]):e[n]=t[n])})),e):e}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]').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}class Q extends Event{constructor(e,t,n){super(e,n),this.detail={},Object.defineProperty(this,"detail",{value:t})}}class X extends HTMLElement{constructor(){var e,i;super(),this.construct=()=>{let e;const t=this.getAttribute(o("id")),n=this.getWidgetContainerNode();if(!n)throw new Error("Widget container not found in construct");const r=n.closest(`[${o("widget-id")}]`);let i;r&&(i=r.getAttribute(o("widget-id")));let a=new Q("cl-props-request",{nodeName:this.nodeName,path:this.getAttribute(o("path")),id:t,widgetId:i},{bubbles:!0,composed:!0});this.dispatchEvent(a),e=a.detail.props,Object.assign(this,e),this.observers=$(z,V,Z),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 C,this.componentResourceManager=new W(this.model.id,this.services.eventEmitter,"STATIC"===this.services.config.getConfig("entryModuleType")),this.mergeTagsProcessor=this.services.mergeTagsProcessorFactory.create(),this._actionFactory=this.services.actionFactory,this._handlerFactory=new O(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=o("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(V).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(N.changeEventName,(()=>{this.applyAutoAdaptiveStyles(this.prevProps.adaptiveStyles,this.prevProps.styles);const e=this.getEnvironment();this.observers.get(Z).forEach((t=>t(this.prevEnvironment,e))),this.prevEnvironment=e})))},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.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(V).push(e),e(this.getShared())},this.observeEnvironment=e=>{this.observers.get(Z).push(e),e(null,this.getEnvironment())},this.getElements=()=>[this.getHostElement(),...Array.from(this.getRootElement().querySelectorAll(`[${o("element")}]`)).filter((e=>!e.hasAttribute(o("component"))))],this.getElement=(e,t)=>this.getElements().find((n=>t?n.getAttribute(o("element"))===e&&n.id===t:n.getAttribute(o("element"))===e)),this.applyAutoAdaptiveStyles=(e,t)=>{if(!e&&!t)return;const n=this.getElements();if(!n.length)return;e=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&&(Y(n,e),o=!0)})),n.mobile&&n.mobile.forEach((n=>{n.element===t&&(Y(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);const i=o("type"),a="element-styles";let s=this.getRootElement().querySelector(`style[${i}="${a}"]`);s||(s=document.createElement("style"),s.setAttribute(i,a),this.getRootElement().appendChild(s)),q({element:s,html:""}),n.forEach((t=>{let n=t.getAttribute(o("element"));const i=this.getEnvironment();let a=r(e,i,n);if(a){if(this.resizeListener.isMobile()){const t=r(e,"desktop",n);t&&(a=Object.assign(Object.assign({},a),{styleAttributes:Object.assign(Object.assign({},t.styleAttributes),a.styleAttributes)}))}this.applyStylesToElement(t,this.applySharedClassesToElementModel(a),s)}})),this._addLinkColor(s,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 r,i;const a=[];"host"===(t=X._resolveTogglableStylesForElementModel(t)).element&&(P.applyHostStyles(this.model.type,e,null,this.layoutType),("desktop"===this.getEnvironment()&&(null===(r=this.model.props.backgroundDynamicInlineSVGElements)||void 0===r?void 0:r.desktop)||"mobile"===this.getEnvironment()&&(null===(i=this.model.props.backgroundDynamicInlineSVGElements)||void 0===i?void 0:i.mobile))&&(this.colorSchemaListener.apply(this.getEnvironment()),a.push("background")));let s=t.styleAttributes.background,c=s&&s.match(/url\("([^"]*)"\)/);if(this.manifest.waitForResourcesLoad&&c){this.componentResourceManager.getPending().increment();const e=new Image;e.src=c[1],M(e,"load",(()=>{this.componentResourceManager.getPending().decrement()})),M(e,"error",(()=>{this.componentResourceManager.onResourceLoadFailure(e.src),"UPDATING"===this.services.config.getConfig("entryModuleType")&&this.componentResourceManager.getPending().decrement()}))}const l=Object.assign(Object.assign({},t),{styleAttributes:I(t.styleAttributes,a)});if(D.set(e,l),this._setClassAttributes(e,t),n){if(t.hoverStyleAttributes){let r=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(),o=`flip-up-animation-${t.element}`;let i=this.getRootElement().querySelector(`#${o}`);i||(i=document.createElement("style"),i.id=o,e.appendChild(i)),q({element:i,html:`\n ${n}::before {\n content: '';\n background: ${r.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 `}),r=Object.assign(Object.assign({},t.hoverStyleAttributes),{background:"transparent",position:"relative"})}r.borderTopWidth&&"0px"!==r.borderTopWidth||delete r.borderTopColor,r.borderBottomWidth&&"0px"!==r.borderBottomWidth||delete r.borderBottomColor,r.borderLeftWidth&&"0px"!==r.borderLeftWidth||delete r.borderLeftColor,r.borderRightWidth&&"0px"!==r.borderRightWidth||delete r.borderRightColor,this._addStylesToStyleElement(n,t.element,r,`:not(.${o("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._fixMarginOverflow=e=>{const t=this.getParentComponent(),n=t&&("flex"===t.style.display||"inline-flex"===t.style.display),i="host",a=e.getAttribute(o("element"))===i;if(!n||!a)return;const s=this.getProps(),c=this.getEnvironment(),{styleAttributes:l}=r(s.adaptiveStyles,c,i)||{};if(!l)return;const u=l.marginLeft||l.marginRight,d="100%"===l.width;if(u&&d){const t=(parseFloat(l.marginLeft)||0)+(parseFloat(l.marginRight)||0);t&&setTimeout((()=>{e.style.width=`calc(100% - ${t}px)`}))}},this.applySharedClassesToElementModel=e=>function(e,n){let o=e;return(o.classes||"").split(" ").filter((e=>e.startsWith(t))).forEach((e=>{var t;let r=null===(t=n.textClasses)||void 0===t?void 0:t[e];r&&(r.styleAttributes.fontFamily||(r.isHeader&&n.headerFontFamily&&(r=Object.assign(Object.assign({},r),{styleAttributes:Object.assign(Object.assign({},r.styleAttributes),{fontFamily:n.headerFontFamily})})),!r.isHeader&&n.textFontFamily&&(r=Object.assign(Object.assign({},r),{styleAttributes:Object.assign(Object.assign({},r.styleAttributes),{fontFamily:n.textFontFamily})}))),o=Object.assign(Object.assign({},o),{styleAttributes:Object.assign(Object.assign({},o.styleAttributes),r.styleAttributes),placeholderStyleAttributes:Object.assign(Object.assign({},o.placeholderStyleAttributes),r.placeholderStyleAttributes)}))})),o.styleAttributes.fontFamily||(o=Object.assign(Object.assign({},o),{styleAttributes:Object.assign(Object.assign({},o.styleAttributes),{fontFamily:n.textFontFamily})})),o}(e,this.documentModel.getShared()),this.getModel=()=>this.model,this._addStylesToStyleElement=(e,t,n,r="",i)=>{const a=Object.keys(n).reduce(((e,t)=>e+` ${j.camelCaseToDashCase(t)}: ${n[t]}${i?" !important;":";"}`),"");q({element:e,html:`[${o("element")}="${t}"]${r} { ${a} }`,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,o)=>{Array.from(e.classList).filter((e=>e!==n("hovered")&&e!==n("focused"))).forEach((n=>{n.startsWith(t)&&e.classList.remove(n)}));const r=((e.getAttribute("class")||"")+" "+o.classes).trim();e.setAttribute("class",r)},this.getParentComponent=()=>J(this.parentNode,o("element"),"host"),this.getWidgetContainerNode=()=>{const e=null==this?void 0:this.getAttribute(o("path"));return e&&1===e.split(",").length?this.parentNode:J(this.parentNode,o("path"),void 0,(e=>e&&1===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.addContextRecord=()=>{var e;const t=this.getModel();this.services.context.addRecord(t.id,{recordKey:t.id,id:t.props.control.name,label:this.getContextRecordLabel(t.props),value:t.props.control.defaultValue||"",viewIndex:null===(e=t.path)||void 0===e?void 0:e[0],sourceId:"FORM",initialData:{fallbackValue:"",exampleValue:this.getContextRecordExampleValue(t.props)}})},this.getContextRecordLabel=e=>{var t,n;const o=e.control.name;if(["email","first_name","last_name"].includes(o))return o.toUpperCase();if(e.content.label&&(null===(n=null===(t=e.adaptiveStyles.desktop.find((e=>"label"===e.element)))||void 0===t?void 0:t.params)||void 0===n?void 0:n.enabled)){const t=(new DOMParser).parseFromString(e.content.label,"text/html");return this.capitalizeFirstLetter(t.body.textContent||"")}return e.content.placeholder?this.capitalizeFirstLetter(e.content.placeholder):e.control.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=>{switch(e.control.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===K));n?null==n||n.execute(void 0,void 0,!0,t):this.services.actionFactory.get({type:g}).execute(void 0,void 0,!0,t)},this.getHandlers=()=>this.getProps().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.define)||void 0===e?void 0:e.manifest)||(null===(i=this.constructor.define)||void 0===i?void 0:i.manifest)}connectedCallback(){this.construct(),this.registerComponentResourceManagement(),Promise.resolve().then((()=>{this.attachHandlers()}))}disconnectedCallback(){var e;this.observers.clear(),this.subscriptions.off(),this.state.destroy(),this.componentEventEmitter.destroy(),null===(e=this.mergeTagsProcessor)||void 0===e||e.destroy()}static _resolveTogglableStylesForElementModel(e){const t=Object.assign({},e);return Object.keys(t).forEach((e=>{e.toLowerCase().includes("styleattributes")&&(t[e]=X._resolveTogglableStyles(t[e]))})),t}static _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}}function ee(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 te(e){return te="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},te(e)}function ne(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 oe(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,ue(o.key),o)}}function re(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(re=function(){return!!e})()}function ie(e,t,n,o){var r=ae(se(1&o?e.prototype:e),t,n);return 2&o&&"function"==typeof r?function(e){return r.apply(n,e)}:r}function ae(){return ae="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=se(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}},ae.apply(null,arguments)}function se(e){return se=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},se(e)}function ce(e,t){return ce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ce(e,t)}function le(e,t,n){return(t=ue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ue(e){var t=function(e){if("object"!=te(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=te(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==te(t)?t:t+""}var de=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=se(t),function(e,t){if(t&&("object"==te(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,re()?Reflect.construct(t,n||[],se(e).constructor):t.apply(e,n))}(this,e,[].concat(o)),"manifest",a),le(t,"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,n,o=(t=e.split(".").map(Number),n=4,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,s=[],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)&&(s.push(o.value),s.length!==t);c=!0);}catch(e){l=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(t,n)||function(e,t){if(e){if("string"==typeof e)return ne(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)?ne(e,t):void 0}}(t,n)||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.")}());return 864e5*o[0]+36e5*o[1]+6e4*o[2]+1e3*o[3]})),le(t,"getStoredRelativeStartDate",(function(){var e;if("UPDATING"!==t.services.config.getConfig("entryModuleType")&&"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;"UPDATING"!==t.services.config.getConfig("entryModuleType")&&"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;"UPDATING"!==t.services.config.getConfig("entryModuleType")&&"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=t.createElementContainers(o),i=t.getTranslationsMap(t.manifest.i18n),a=i.translations,s=i.language,c=e.content.format||(e.content.showDays?"DD:HH:MM:SS":"HH:MM:SS"),l=t.parseFormat(c),u=n+50,d=t.splitMilliseconds(u,l),m=d.days,b=d.hours,h=d.minutes,p=d.seconds;l.days&&t.createCounterElement(r,m,"day",a,s),l.hours&&(l.days&&t.addSeparatorElements(r),t.createCounterElement(r,b,"hour",a,s)),l.minutes&&((l.days||l.hours)&&t.addSeparatorElements(r),t.createCounterElement(r,h,"minute",a,s)),l.seconds&&((l.days||l.hours||l.minutes)&&t.addSeparatorElements(r),t.createCounterElement(r,p,"second",a,s)),t.applyAutoAdaptiveStyles(e.adaptiveStyles,e.styles)})),le(t,"createElementContainers",(function(e){q({element:e,html:""});var t=document.createElement("div");t.className="countersContainer";var n=document.createElement("div");return n.className="labelsContainer",e.append(t,n),{countersContainerElement:t,labelsContainerElement:n}})),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 a=document.createElement("div");a.setAttribute("cl-element","counterContainer"),a.className="counterContainer";var s=document.createElement("span");s.setAttribute("cl-element","counter"),s.className="counter",q({element:s,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:ee(n,t.getLabelKeys(r,o),i)}),a.appendChild(s),c.appendChild(l),e.countersContainerElement.appendChild(a),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)})),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&&ce(e,t)}(e,X),t=e,n=[{key:"connectedCallback",value:function(){var t=this;ie(e,"connectedCallback",this,3)([]),this.getRootElement().innerHTML+="\n".concat("\n<style>\n.countdownContainer {\n display: flex;\n flex-direction: column;\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.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,r="FROM_THE_START_OF_DISPLAYING"===n.content.mode?null:(o=n.content.timeZone)&&"Europe/Kyiv"===o?"Europe/Kiev":o,i=t.getEndDateData(n),a=i.dateInMs,s=a-t.getDateWithTimeZone(r).getTime();s<=0&&(t.clearRelativeStartDate(),i=t.getEndDateData(n),s=(a=i.dateInMs)-t.getDateWithTimeZone(r).getTime()),i.shouldBeStored&&t.storeRelativeStartDate(a),t.drawTimer(n,s>=0?s:0),s<=0||t.services.config.getConfig("devMode")||(t.intervalId=setInterval((function(){var e=a-t.getDateWithTimeZone(r).getTime();t.drawTimer(n,e>=0?e:0),e<=0&&clearInterval(t.intervalId)}),1e3))}))}},{key:"disconnectedCallback",value:function(){ie(e,"disconnectedCallback",this,3)([]),clearInterval(this.intervalId)}}],n&&oe(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n}();le(de,"define",{name:"sys-countdown-timer",model:a.name,manifest:a});export{de as default};window.clComponentClass_SysCountdownTimerComponent=de;