"use strict";(self.webpackChunk_genially_view_client=self.webpackChunk_genially_view_client||[]).push([[3161],{53161:(t,e,n)=>{n.r(e),n.d(e,{geniallyStopwatchEditorScript:()=>c});var o=n(46177),s=n(53289),r=n(79883),i=n(94350);const c=t=>{let{script:e,editor:n}=t;(0,o.H)(n.logger,i.M.scriptId);const c=()=>e.getConfig().textItemRef;e.on("configChange",(t=>{let{prevConfig:e}=t;const n=null===e||void 0===e?void 0:e.textItemRef,o=c();if(n&&(n.textEditable=!0),o){o.textEditable=!1;const t=(0,s.D)(o.text);o.text=(0,s.x)((0,r.AF)(0),t)}})),e.on("dispose",(()=>{const t=c();t&&(t.textEditable=!0)}))}},46177:(t,e,n)=>{n.d(e,{H:()=>o});const o=(t,e)=>{t.info(`[DEPRECATED_TIMER] ${e}`)}},53289:(t,e,n)=>{function o(t){if(t.nodeType===Node.TEXT_NODE&&t.textContent&&""!==t.textContent.trim())return t;if(t.hasChildNodes())for(let e=0;e<t.childNodes.length;e+=1){const n=o(t.childNodes[e]);if(n)return n}return null}function s(t){const e=document.createElement("div");e.innerHTML=t;const n=o(e);return n?function(t){let e="",n=t;for(;n;)n instanceof HTMLElement&&n.style.cssText&&(e=n.style.cssText+e),n=n.parentElement;return e}(n):""}function r(t,e){const n=document.createElement("span");return n.setAttribute("style",e),n.textContent=t.replace(/^\s+/g,(t=>"\xa0".repeat(t.length))).replace(/\s+$/g,(t=>"\xa0".repeat(t.length))),n.outerHTML}n.d(e,{D:()=>s,x:()=>r})},79883:(t,e,n)=>{n.d(e,{cQ:()=>l,EJ:()=>c,AF:()=>i,ek:()=>d,di:()=>u});const o=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return t.toString().padStart(e,"0")};function s(t){const e=Math.floor(t/1e3);return{seconds:e%60,minutes:Math.floor(e/60)}}function r(t){const e=function(t){const e=s(t);return{seconds:e.seconds,minutes:e.minutes%60,hours:Math.floor(e.minutes/60)}}(t);return{seconds:e.seconds,minutes:e.minutes,hours:e.hours%24,days:Math.floor(e.hours/24)}}function i(t){const e=s(t);return`${o(e.minutes)}:${o(e.seconds)}`}function c(t){const e=r(t);return`${o(e.days,2)}:${o(e.hours)}:${o(e.minutes)}:${o(e.seconds)}`}function u(){const t=new Date,e=t.getTime();return e-(e+6e4*t.getTimezoneOffset())}const l=100,d=(t,e)=>0===t?0:e/t*100}}]);
//# sourceMappingURL=https://s3-static-genially.genially.com/view/static/js/3161.e0540718.chunk.js.map