File: /home1/bloga741/test.cleannacional.com.br/Scripts/6.6edaa40f4e2ade7e0f30.js
!function(){document&&document.currentScript&&document.currentScript.src;(window.webpackJsonpruntime=window.webpackJsonpruntime||[]).push([[6],{"/I6Q":function(n,t){var e=/var\(--([^)]*)\)/g;n.exports=function(n){return!(window.CSS&&window.CSS.supports&&window.CSS.supports("--fake-var",0))&&window.brandingColors&&(n=n.replace(e,(function(n,t){return window.brandingColors[t]||n}))),n}},V45n:function(n,t,e){"use strict";e.r(t),e.d(t,"init",(function(){return o})),e.d(t,"initCountdown",(function(){return d})),e.d(t,"runCountdowns",(function(){return r})),e.d(t,"runCountdown",(function(){return l})),e.d(t,"updateDate",(function(){return m})),e.d(t,"updateTime",(function(){return u})),e.d(t,"updateTimeZone",(function(){return s})),e.d(t,"getCountdownById",(function(){return c}));var a=e("EOkx");e("d2Kx");let i=[];function o(){d()}function d(){i.forEach(n=>{clearInterval(n.intervalId)}),i=[],Array.from(document.querySelectorAll(".dmCountdown")).forEach(n=>{const t={};t.id=n.getAttribute("id"),t.element=$(n),t.dueTime=Object(a.a)(t.element.attr("data-date"),t.element.attr("data-time-zone")).time(`${t.element.attr("data-time")}:00`),t.initialDays=Object(a.a)(t.element.attr("data-created")).diff(Object(a.a)(t.element.attr("data-date"))).days,i.push(t)}),r()}function r(){i.forEach(n=>{n.intervalId?clearInterval(n.intervalId):n.intervalId=l(n.id,n.element,n.dueTime,n.initialDays)})}function l(n,t,e,o){return setInterval(()=>{const d=a.a.now().diff(e).milliseconds,r=Math.floor(d/864e5),l=Math.floor(d%864e5/36e5),m=Math.floor(d%36e5/6e4),u=Math.floor(d%6e4/1e3);t.find(".days").text(String(r>9?r:`0${r}`)),t.find(".hours").text(String(l>9?l:`0${l}`)),t.find(".minutes").text(String(m>9?m:`0${m}`)),t.find(".seconds").text(String(u>9?u:`0${u}`));const s=o?Math.floor(r/o*100):0,c=Math.floor(l/24*100),f=Math.floor(m/60*100),p=Math.floor(u/60*100);if(t.find(".circle-days").attr("stroke-dasharray",`${s}, 100`),t.find(".circle-hours").attr("stroke-dasharray",`${c}, 100`),t.find(".circle-minutes").attr("stroke-dasharray",`${f}, 100`),t.find(".circle-seconds").attr("stroke-dasharray",`${p}, 100`),d<=0){t.find(".countdown-message").css("display","block"),t.find(".days").text("00"),t.find(".hours").text("00"),t.find(".minutes").text("00"),t.find(".seconds").text("00"),"false"===t.attr("data-display-counter")&&t.find(".countdown-clock").css("display","none"),t.find(".circle-days").attr("stroke-dasharray","0, 100"),t.find(".circle-hours").attr("stroke-dasharray","0, 100"),t.find(".circle-minutes").attr("stroke-dasharray","0, 100"),t.find(".circle-seconds").attr("stroke-dasharray","0, 100");const e=i.find(t=>t.id===n);clearInterval(e.intervalId)}if(!document.getElementById(n)){const t=i.find(t=>t.id===n);clearInterval(t.intervalId)}},1e3)}function m(n,t){const{countdown:e,element:i,intervalId:o}=c(t),d=Object(a.a)(n,i.attr("data-time-zone")).time(`${i.attr("data-time")}:00`),r=a.a.now().diff(Object(a.a)(d)).days;clearInterval(o),e.intervalId=l(t,i,d,r)}function u(n,t){const{countdown:e,element:i,intervalId:o}=c(t),d=Object(a.a)(i.attr("data-date"),i.attr("data-time-zone")).time(`${n}:00`),r=a.a.now().diff(Object(a.a)(d)).days;clearInterval(o),e.intervalId=l(t,i,d,r)}function s(n,t){const{countdown:e,element:i,intervalId:o}=c(t),d=Object(a.a)(i.attr("data-date"),n).time(`${i.attr("data-time")}:00`),r=a.a.now().diff(Object(a.a)(d)).days;clearInterval(o),e.intervalId=l(t,i,d,r)}function c(n){const t=i.find(t=>t.id===n),e=t.element,a=t.initialDays;return{countdown:t,element:e,dueTime:t.dueTime,initialDays:a,intervalId:t.intervalId}}},d2Kx:function(n,t,e){var a,i=e("pUaY");"string"==typeof i&&(i=[[n.i,i,""]]),a=e("/I6Q");var o={transform:"modules/common/cssVariablesPolyfill"};o.transform=a;e("ZuTH")(i,o);i.locals&&(n.exports=i.locals)},pUaY:function(n,t,e){(n.exports=e("I1BE")(!1)).push([n.i,'.dmCountdown {\n -ms-flex-pack: center;\n justify-content: center;\n text-align: center;\n height: auto;\n -webkit-margin-before: 0;\n margin-block-start: 0;\n -webkit-margin-end: auto;\n margin-inline-end: auto;\n -webkit-margin-after: 0;\n margin-block-end: 0;\n -webkit-margin-start: auto;\n margin-inline-start: auto; }\n .dmCountdown .countdown {\n -webkit-padding-before: 2px;\n padding-block-start: 2px;\n -webkit-padding-end: 2px;\n padding-inline-end: 2px;\n -webkit-padding-after: 2px;\n padding-block-end: 2px;\n -webkit-padding-start: 2px;\n padding-inline-start: 2px; }\n .dmCountdown .container {\n display: -ms-flexbox;\n display: flex;\n width: 100%;\n height: auto; }\n .dmCountdown .tile {\n position: relative;\n line-height: normal;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto; }\n .dmCountdown .label-tile {\n position: relative;\n -ms-flex: 1 0 0%;\n flex: 1 0 0%;\n height: 100%; }\n .dmCountdown .tile:after {\n content: \'\';\n display: block;\n padding-top: 100%; }\n .dmCountdown .divider {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex: 0 1 auto;\n flex: 0 1 auto;\n -webkit-margin-before: 12px;\n margin-block-start: 12px;\n -webkit-margin-end: 12px;\n margin-inline-end: 12px;\n -webkit-margin-after: 12px;\n margin-block-end: 12px;\n -webkit-margin-start: 12px;\n margin-inline-start: 12px;\n color: #313131; }\n .dmCountdown .number {\n position: absolute;\n display: -ms-flexbox;\n display: flex;\n width: 100%;\n height: 100%;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n top: 0;\n left: 0; }\n .dmCountdown .label {\n display: -ms-flexbox;\n display: flex;\n width: 100%;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center; }\n .dmCountdown .title {\n text-align: center !important;\n margin-top: 0; }\n .dmCountdown .countdown-message {\n margin-top: 20px;\n display: none; }\n .dmCountdown .countdown-message p {\n text-align: center !important; }\n .dmCountdown .divider.hidden {\n visibility: hidden !important;\n text-decoration: none !important;\n line-height: 0; }\n .dmCountdown[data-layout="layout-1"] {\n width: 600px; }\n .dmCountdown[data-layout="layout-1"] .number {\n background-color: transparent;\n box-shadow: none;\n font-weight: normal;\n font-size: 42px;\n color: #101010; }\n .dmCountdown[data-layout="layout-1"] .label {\n font-size: 16px;\n padding-top: 5px; }\n .dmCountdown[data-layout="layout-1"] .divider {\n visibility: hidden;\n -webkit-margin-before: 0;\n margin-block-start: 0;\n -webkit-margin-end: 12px;\n margin-inline-end: 12px;\n -webkit-margin-after: 0;\n margin-block-end: 0;\n -webkit-margin-start: 12px;\n margin-inline-start: 12px; }\n .dmCountdown[data-layout="layout-1"] .tile-circle {\n stroke-dashoffset: 0; }\n .dmCountdown[data-layout="layout-2"] {\n width: 586px; }\n .dmCountdown[data-layout="layout-2"] .number {\n font-size: 42px;\n color: #fff;\n background-color: #000;\n font-weight: normal;\n border-radius: 5%;\n box-shadow: none; }\n .dmCountdown[data-layout="layout-2"] .label {\n font-size: 16px;\n padding-top: 10px;\n color: #b9b9b9; }\n .dmCountdown[data-layout="layout-2"] .divider {\n font-size: 42px;\n -webkit-margin-before: 0;\n margin-block-start: 0;\n -webkit-margin-end: 12px;\n margin-inline-end: 12px;\n -webkit-margin-after: 0;\n margin-block-end: 0;\n -webkit-margin-start: 12px;\n margin-inline-start: 12px; }\n .dmCountdown[data-layout="layout-3"] {\n width: 586px; }\n .dmCountdown[data-layout="layout-3"] .number {\n font-size: 42px;\n color: #000000;\n background-color: #ffffff;\n border-radius: 5%;\n box-shadow: 0 8px 20px 0 rgba(73, 73, 73, 0.25);\n font-weight: normal; }\n .dmCountdown[data-layout="layout-3"] .label {\n font-size: 16px;\n padding-top: 10px;\n color: #b9b9b9; }\n .dmCountdown[data-layout="layout-3"] .divider {\n font-size: 42px;\n -webkit-margin-before: 0;\n margin-block-start: 0;\n -webkit-margin-end: 12px;\n margin-inline-end: 12px;\n -webkit-margin-after: 0;\n margin-block-end: 0;\n -webkit-margin-start: 12px;\n margin-inline-start: 12px;\n visibility: hidden; }\n .dmCountdown[data-layout="layout-4"] {\n width: 586px; }\n .dmCountdown[data-layout="layout-4"] .number {\n font-size: 60px;\n color: #313131;\n background-color: transparent;\n box-shadow: none;\n height: 100%;\n width: 100%; }\n .dmCountdown[data-layout="layout-4"] .label {\n font-size: 16px;\n color: #b9b9b9; }\n .dmCountdown[data-layout="layout-4"] .divider {\n font-size: 60px;\n -webkit-margin-before: 0;\n margin-block-start: 0;\n -webkit-margin-end: 12px;\n margin-inline-end: 12px;\n -webkit-margin-after: 0;\n margin-block-end: 0;\n -webkit-margin-start: 12px;\n margin-inline-start: 12px; }\n .dmCountdown[data-layout="layout-4"] .tile:after {\n padding-top: 0; }\n\n.dmMobileBody .dmCountdown .number {\n font-size: 22.5px; }\n\n.dmMobileBody .dmCountdown .label {\n padding-top: 3px;\n font-size: 12px; }\n\n.dmMobileBody .dmCountdown .divider {\n -webkit-margin-before: 0;\n margin-block-start: 0;\n -webkit-margin-end: 4px;\n margin-inline-end: 4px;\n -webkit-margin-after: 0;\n margin-block-end: 0;\n -webkit-margin-start: 4px;\n margin-inline-start: 4px;\n font-size: 22px; }\n\n.dmMobileBody .dmCountdown[data-layout="layout-1"] .divider {\n -webkit-margin-before: 0;\n margin-block-start: 0;\n -webkit-margin-end: 2px;\n margin-inline-end: 2px;\n -webkit-margin-after: 0;\n margin-block-end: 0;\n -webkit-margin-start: 2px;\n margin-inline-start: 2px;\n font-size: 19px; }\n\n.dmMobileBody .dmCountdown[data-layout="layout-2"] .divider {\n -webkit-margin-before: 0;\n margin-block-start: 0;\n -webkit-margin-end: 5px;\n margin-inline-end: 5px;\n -webkit-margin-after: 0;\n margin-block-end: 0;\n -webkit-margin-start: 5px;\n margin-inline-start: 5px;\n font-size: 22px; }\n\n.dmMobileBody .dmCountdown[data-layout="layout-2"] .label {\n padding-top: 6px; }\n\n.dmMobileBody .dmCountdown[data-layout="layout-3"] .divider {\n -webkit-margin-before: 0;\n margin-block-start: 0;\n -webkit-margin-end: 2px;\n margin-inline-end: 2px;\n -webkit-margin-after: 0;\n margin-block-end: 0;\n -webkit-margin-start: 2px;\n margin-inline-start: 2px; }\n\n.dmMobileBody .dmCountdown[data-layout="layout-3"] .label {\n padding-top: 6px; }\n\n.dmMobileBody .dmCountdown[data-layout="layout-3"] .number {\n font-size: 28px; }\n',""])}}])}();