OwlCyberSecurity - MANAGER
Edit File: uper-elementor.min.js
/** * Selection Lite * Carefully selected Elementor addons bundle, for building the most awesome websites * * @encoding UTF-8 * @version 1.15 * @copyright (C) 2018 - 2023 Merkulove ( https://merkulov.design/ ). All rights reserved. * @license GPLv3 * @contributors merkulove, vladcherviakov, phoenixmkua, podolianochka, viktorialev01 * @support help@merkulov.design **/ "use strict";const mdpUper={scrollTopButton:function(e){const t=document.querySelector(`.${e} .mdp-uper-elementor-button`),o=+document.querySelector("."+e).dataset.offset,n=document.querySelector("."+e).dataset.offsetType,r=()=>window.pageYOffset||document.documentElement.scrollTop,i=document.querySelector("."+e).dataset.customElementId,s=document.querySelector("."+e).dataset.autohideSeconds,a=document.querySelector("."+e).dataset.buttonAppearanceAnimation,c=document.querySelector("."+e).dataset.buttonHoverAnimation,d=document.querySelector("."+e).dataset.scrollTo,l=document.querySelector("."+e).dataset.anchorId,u=document.querySelector("."+e).dataset.scrollSpeed,m=document.querySelector("."+e).dataset.scrollEasing,p=document.querySelector("."+e).dataset.isFixed,h=document.querySelector(`.${e} `).dataset.scrollIndicator;let y,b,w,v;if("yes"===h&&"yes"===p){const t=document.querySelector(`.${e} .mdp-uper-elementor-scroll-indicator-svg`),o=document.querySelector(`.${e} .mdp-uper-elementor-scroll-indicator-circle`),n=document.querySelector(`.${e} `).dataset.radiusWidescreen,r=document.querySelector("."+e).dataset.radius,i=document.querySelector(`.${e} `).dataset.radiusLaptop,s=document.querySelector(`.${e} `).dataset.radiusTabletExtra,a=document.querySelector("."+e).dataset.radiusTablet,c=document.querySelector("."+e).dataset.radiusMobileExtra,d=document.querySelector("."+e).dataset.radiusMobile;function f(){elementorFrontend.config.responsive.activeBreakpoints.hasOwnProperty("widescreen")&&window.matchMedia(`(min-width: ${elementorFrontend.config.responsive.activeBreakpoints.widescreen.value}px)`).matches&&n&&(o.setAttribute("r",n),o.setAttribute("cx",n),o.setAttribute("cy",n)),n&&elementorFrontend.config.responsive.activeBreakpoints.hasOwnProperty("widescreen")?window.matchMedia(`(min-width: ${elementorFrontend.config.responsive.activeBreakpoints.tablet.value+1}px)`).matches&&window.matchMedia(`(max-width: ${elementorFrontend.config.responsive.activeBreakpoints.widescreen.value-1}px)`).matches&&(o.setAttribute("r",r),o.setAttribute("cx",r),o.setAttribute("cy",r)):window.matchMedia(`(min-width: ${elementorFrontend.config.responsive.activeBreakpoints.tablet.value+1}px)`).matches&&(o.setAttribute("r",r),o.setAttribute("cx",r),o.setAttribute("cy",r)),elementorFrontend.config.responsive.activeBreakpoints.hasOwnProperty("laptop")&&window.matchMedia(`(max-width: ${elementorFrontend.config.responsive.activeBreakpoints.laptop.value}px)`).matches&&i&&(o.setAttribute("r",i),o.setAttribute("cx",i),o.setAttribute("cy",i)),elementorFrontend.config.responsive.activeBreakpoints.hasOwnProperty("tablet_extra")&&window.matchMedia(`(max-width: ${elementorFrontend.config.responsive.activeBreakpoints.tablet_extra.value}px) `).matches&&s&&(o.setAttribute("r",s),o.setAttribute("cx",s),o.setAttribute("cy",s)),window.matchMedia(`(max-width: ${elementorFrontend.config.responsive.activeBreakpoints.tablet.value}px)`).matches&&a&&(o.setAttribute("r",a),o.setAttribute("cx",a),o.setAttribute("cy",a)),elementorFrontend.config.responsive.activeBreakpoints.hasOwnProperty("mobile_extra")&&window.matchMedia(` (max-width: ${elementorFrontend.config.responsive.activeBreakpoints.mobile_extra.value}px) `).matches&&c&&(o.setAttribute("r",c),o.setAttribute("cx",c),o.setAttribute("cy",c)),window.matchMedia(`(max-width: ${elementorFrontend.config.responsive.activeBreakpoints.mobile.value}px)`).matches&&d&&(o.setAttribute("r",d),o.setAttribute("cx",d),o.setAttribute("cy",d)),w=o.r.baseVal.value,b=2*Math.PI*w,y.style.strokeDasharray=`${b} ${b}`,y.style.transition="stroke-dashoffset 20ms",t.style.height=2*w+"px",t.style.width=2*w+"px"}y=document.querySelector(`.${e} .mdp-uper-elementor-scroll-indicator-circle`),f(),window.addEventListener("resize",()=>{f()})}function x(){const e=document.documentElement.scrollHeight-window.innerHeight;y.style.strokeDashoffset=b-r()*b/e}function g(){clearTimeout(v),v=setTimeout(()=>{t.classList.contains("mdp-uper-elementor-button-hide")||t.classList.add("mdp-uper-elementor-button-hide")},1e3*s)}function A(){const s=document.querySelector("."+e).dataset.autohide;if("custom-element"===n){const e=document.getElementById(i);if(null!==e){const o=window.innerHeight;e.getBoundingClientRect().bottom<=(o||document.documentElement.clientHeight)?(t.classList.remove("mdp-uper-elementor-button-hide"),void 0!==s&&g()):(t.classList.add("mdp-uper-elementor-button-hide"),t.style.animation=a+" both")}}else{("percentage"===n?Math.floor((document.documentElement.scrollTop||document.body.scrollTop)/((document.documentElement.scrollHeight||document.body.scrollHeight)-document.documentElement.clientHeight)*100):r())>=o?(t.classList.remove("mdp-uper-elementor-button-hide"),void 0!==s&&g()):(t.classList.add("mdp-uper-elementor-button-hide"),t.style.animation=a+" both")}}t.addEventListener("click",()=>{!function(e){const t="top"===d?0:document.getElementById(""+l);if(null!==t){const o="top"===d?0:t.getBoundingClientRect().top+window.scrollY,n=window.pageYOffset,r=o-n;let i=null;requestAnimationFrame((function t(o){null===i&&(i=o);const s=o-i,a="smooth"===m?(c=s,d=n,l=r,(c/=e/2)<1?l/2*c*c+d:(c--,-l/2*(c*(c-2)-1)+d)):"start-slowdown"===m?function(e,t,o,n){return o*(e/=n)*e+t}(s,n,r,e):function(e,t,o,n){return-o*(e/=n)*(e-2)+t}(s,n,r,e);var c,d,l;window.scrollTo(0,a),s<e&&requestAnimationFrame(t)}))}}(1e3*+u)}),t.addEventListener("mouseenter",()=>{t.style.animation=c+" both"}),t.addEventListener("mouseleave",()=>{t.style.animation="0"}),"always-show"!==n&&"yes"===p?(t.classList.add("mdp-uper-elementor-button-hide"),t.style.animation=a+" both",A()):(t.classList.remove("mdp-uper-elementor-button-hide"),t.style.animation=""+a),"yes"===h&&"yes"===p&&x(),window.addEventListener("scroll",()=>{"always-show"!==n&&"yes"===p&&A(),"yes"===h&&"yes"===p&&x()})},addUper:function(){const e=document.querySelectorAll(".mdp-uper-elementor-box");for(let t=0;t<e.length;t++)e[t].classList.add("mdp-uper-elementor-box-"+t),this.scrollTopButton("mdp-uper-elementor-box-"+t)}};document.addEventListener("DOMContentLoaded",mdpUper.addUper.bind(mdpUper));