%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/projetos/romanian.ongrace.com/wp-content/plugins/otter-blocks/build/blocks/
Upload File :
Create Path :
Current File : /var/www/projetos/romanian.ongrace.com/wp-content/plugins/otter-blocks/build/blocks/progress-bar.js

!function(){"use strict";var e;e=()=>{const e=document.querySelectorAll(".wp-block-themeisle-blocks-progress-bar");Array.from(e).forEach((e=>{const t=1e3*e.dataset.duration,r=e.querySelector(".wp-block-themeisle-blocks-progress-bar__area__bar");let o=window.getComputedStyle(r).borderTopLeftRadius.replace("px","")||0;const s=e.querySelector(".wp-block-themeisle-blocks-progress-bar__number"),n=e.querySelector(".wp-block-themeisle-blocks-progress-bar__area__tooltip"),a=e.querySelector(".wp-block-themeisle-blocks-progress-bar__progress__append"),i=e.querySelector(".wp-block-themeisle-blocks-progress-bar__outer__title"),c=e.querySelector(".wp-block-themeisle-blocks-progress-bar__area__title");let l;i?l=i.getBoundingClientRect().width:c&&(l=c.getBoundingClientRect().width);const p=.5*window.getComputedStyle(r).height.replace("px","");if(n&&!i&&(n.style.opacity=1),0===t)r.style.width=`${parseInt(e.dataset.percent)}%`,s.innerHTML=`${parseInt(e.dataset.percent)}%`,r.style.opacity=1,n&&(n.style.opacity=1),a&&(a.style.opacity=1);else{s&&(s.innerText="0%"),c&&c.classList.contains("highlight")&&(o*=2);const d=new IntersectionObserver((y=>{y.forEach((y=>{if(y.isIntersecting){if(0>=y.intersectionRect.height)return r.style.width=`${parseInt(e.dataset.percent)}%`,s.innerHTML=`${parseInt(e.dataset.percent)}%`,r.style.opacity=1,n&&(n.style.opacity=1),a&&(a.style.opacity=1),void d.unobserve(r);let h;h&&clearInterval(h);const u=20,b=parseInt(e.dataset.percent),g=((e,t,r)=>{const o=[],s=typeof e,n=typeof t;if(0===r)throw TypeError("Step cannot be zero.");if(void 0===s||void 0===n)throw TypeError("Must pass start and end arguments.");if(s!==n)throw TypeError("Start and end arguments must be of same type.");if(void 0===typeof r&&(r=1),t<e&&(r=-r),"number"===s)for(;0<r?t>=e:t<=e;)o.push(e),e+=r;else{if("string"!==s)throw TypeError("Only string and number types are supported");if(1!==e.length||1!==t.length)throw TypeError("Only strings with one character are supported.");for(e=e.charCodeAt(0),t=t.charCodeAt(0);0<r?t>=e:t<=e;)o.push(String.fromCharCode(e)),e+=r}return o})(0,t,u).map((e=>e/t*b)).reverse();h=setInterval((()=>{const e=g.pop();r.style.width=`${e}%`,s&&(s.innerText=`${Math.ceil(e)}%`);const t=r.getBoundingClientRect().width;t>o&&(r.style.opacity=1),n&&i&&t>l+10&&(n.style.opacity=1),a&&(c?t>l+1.5*p&&(a.style.opacity=1):t>1.8*p&&(a.style.opacity=1)),g.length||(d.unobserve(r),clearInterval(h))}),u)}}))}),{root:null,rootMargin:"0px",threshold:[.6]});setTimeout((()=>d.observe(r)),100)}}))},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",e):e())}();

Zerion Mini Shell 1.0