elenaprono.com.py
Open in
urlscan Pro
201.217.32.129
Public Scan
Submitted URL: http://elenaprono.com.py/wp-content/themes/kadence/assets/js/navigation.min.js?ver=1.1.31
Effective URL: https://elenaprono.com.py/wp-content/themes/kadence/assets/js/navigation.min.js?ver=1.1.31
Submission: On November 02 via api from US — Scanned from US
Effective URL: https://elenaprono.com.py/wp-content/themes/kadence/assets/js/navigation.min.js?ver=1.1.31
Submission: On November 02 via api from US — Scanned from US
Form analysis
0 forms found in the DOMText Content
!function(){"use strict";window.kadence={initOutlineToggle:function(){document.body.addEventListener("keydown",(function(){document.body.classList.remove("hide-focus-outline")})),document.body.addEventListener("mousedown",(function(){document.body.classList.add("hide-focus-outline")}))},getOffset:function(e){if(e instanceof HTMLElement){var t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset,left:t.left+window.pageXOffset}}return{top:null,left:null}},findParents:function(e,t){var o=[];return function e(n){var i=n.parentNode;i instanceof HTMLElement&&(i.matches(t)&&o.push(i),e(i))}(e),o},toggleAttribute:function(e,t,o,n){void 0===o&&(o=!0),void 0===n&&(n=!1),e.getAttribute(t)!==o?e.setAttribute(t,o):e.setAttribute(t,n)},initNavToggleSubmenus:function(){var e=document.querySelectorAll(".nav--toggle-sub");if(e.length)for(let t=0;t<e.length;t++)window.kadence.initEachNavToggleSubmenu(e[t]),window.kadence.initEachNavToggleSubmenuInside(e[t])},initEachNavToggleSubmenu:function(e){var t=e.querySelectorAll(".menu ul");if(t.length)for(let a=0;a<t.length;a++){var o=t[a].parentNode;if(o.querySelector(".dropdown-nav-toggle")){var n=o.querySelector(".nav-drop-title-wrap").firstChild.textContent.trim(),i=document.createElement("BUTTON");i.setAttribute("aria-label",n?kadenceConfig.screenReader.expandOf+" "+n:kadenceConfig.screenReader.expand),i.classList.add("dropdown-nav-special-toggle"),o.insertBefore(i,o.childNodes[1]),i.addEventListener("click",(function(e){e.preventDefault(),window.kadence.toggleSubMenu(e.target.parentNode)})),o.addEventListener("mouseleave",(function(e){window.kadence.toggleSubMenu(e.target,!1)})),o.querySelector("a").addEventListener("focus",(function(e){var t=e.target.parentNode.parentNode.querySelectorAll("li.menu-item--toggled-on");for(let o=0;o<t.length;o++)window.kadence.toggleSubMenu(t[o],!1)})),t[a].addEventListener("keydown",(function(e){var o="ul.toggle-show > li > a, ul.toggle-show > li > .dropdown-nav-special-toggle";9===e.keyCode&&(e.shiftKey?window.kadence.isfirstFocusableElement(t[a],document.activeElement,o)&&window.kadence.toggleSubMenu(t[a].parentNode,!1):window.kadence.islastFocusableElement(t[a],document.activeElement,o)&&window.kadence.toggleSubMenu(t[a].parentNode,!1))})),t[a].parentNode.classList.add("menu-item--has-toggle")}}},initEachNavToggleSubmenuInside:function(e){var t=e.querySelectorAll(".menu-item-has-children");if(t.length)for(let o=0;o<t.length;o++)t[o].addEventListener("mouseenter",(function(e){if(t[o].querySelector("ul.sub-menu")){var n=t[o].querySelector("ul.sub-menu");window.kadence.getOffset(n).left+n.offsetWidth<=window.innerWidth||n.classList.add("sub-menu-edge")}}))},toggleSubMenu:function(e,t){var o=e.querySelector(".dropdown-nav-special-toggle"),n=e.querySelector("ul");let i=e.classList.contains("menu-item--toggled-on");var a=e.querySelector(".nav-drop-title-wrap").firstChild.textContent.trim();if(void 0!==t&&"boolean"==typeof t&&(i=!t),o.setAttribute("aria-expanded",(!i).toString()),i){e.classList.remove("menu-item--toggled-on"),n.classList.remove("toggle-show"),o.setAttribute("aria-label",a?kadenceConfig.screenReader.expandOf+" "+a:kadenceConfig.screenReader.expand);var r=e.querySelectorAll(".menu-item--toggled-on");for(let e=0;e<r.length;e++)window.kadence.toggleSubMenu(r[e],!1)}else{var s=e.parentNode.querySelectorAll("li.menu-item--toggled-on");for(let e=0;e<s.length;e++)window.kadence.toggleSubMenu(s[e],!1);e.classList.add("menu-item--toggled-on"),n.classList.add("toggle-show"),o.setAttribute("aria-label",a?kadenceConfig.screenReader.collapseOf+" "+a:kadenceConfig.screenReader.collapse)}},isfirstFocusableElement:function(e,t,o){var n=e.querySelectorAll(o);return 0<n.length&&t===n[0]},islastFocusableElement:function(e,t,o){var n=e.querySelectorAll(o);return 0<n.length&&t===n[n.length-1]},toggleDrawer:function(e,t){t=void 0===t||t;var o=e,n=document.querySelector(o.dataset.toggleTarget),i=document,a=window.innerWidth-document.documentElement.clientWidth,r=o.dataset.toggleDuration?o.dataset.toggleDuration:250;if(window.kadence.toggleAttribute(o,"aria-expanded","true","false"),n.classList.contains("show-drawer"))o.dataset.toggleBodyClass&&i.body.classList.remove(o.dataset.toggleBodyClass),n.classList.remove("active"),n.classList.remove("pop-animated"),i.body.classList.remove("kadence-scrollbar-fixer"),setTimeout((function(){if(n.classList.remove("show-drawer"),o.dataset.setFocus&&t){var e=document.querySelector(o.dataset.setFocus);e&&(e.focus(),e.hasAttribute("aria-expanded")&&window.kadence.toggleAttribute(e,"aria-expanded","true","false"))}}),r);else if(n.classList.add("show-drawer"),o.dataset.toggleBodyClass&&(i.body.classList.toggle(o.dataset.toggleBodyClass),o.dataset.toggleBodyClass.includes("showing-popup-drawer-")&&(i.body.style.setProperty("--scrollbar-offset",a+"px"),i.body.classList.add("kadence-scrollbar-fixer"))),setTimeout((function(){if(n.classList.add("active"),o.dataset.setFocus,t){var e=document.querySelector(o.dataset.setFocus);if(e){e.hasAttribute("aria-expanded")&&window.kadence.toggleAttribute(e,"aria-expanded","true","false");var i=e.value;e.value="",e.focus(),e.value=i}}}),10),setTimeout((function(){n.classList.add("pop-animated")}),r),n.classList.contains("popup-drawer")){var s=n.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),d=s[0],l=s[s.length-1];document.addEventListener("keydown",(function(e){("Tab"===e.key||9===e.keyCode)&&(e.shiftKey?document.activeElement===d&&(l.focus(),e.preventDefault()):document.activeElement===l&&(d.focus(),e.preventDefault()))}))}},initToggleDrawer:function(){var e=document.querySelectorAll(".drawer-toggle");if(e.length){for(let t=0;t<e.length;t++)e[t].addEventListener("click",(function(o){o.preventDefault(),window.kadence.toggleDrawer(e[t])}));document.addEventListener("keyup",(function(e){27===e.keyCode&&document.querySelectorAll(".popup-drawer.show-drawer.active")&&(e.preventDefault(),document.querySelectorAll(".popup-drawer.show-drawer.active").forEach((function(e){window.kadence.toggleDrawer(document.querySelector('*[data-toggle-target="'+e.dataset.drawerTargetString+'"]'))})))})),document.addEventListener("click",(function(e){var t=e.target;t===(n=document.querySelector(".show-drawer.active .drawer-overlay"))&&window.kadence.toggleDrawer(document.querySelector('*[data-toggle-target="'+n.dataset.drawerTargetString+'"]'));var o=document.querySelector("#search-drawer.show-drawer.active .drawer-content"),n=document.querySelector("#search-drawer.show-drawer.active .drawer-overlay");t===o&&window.kadence.toggleDrawer(document.querySelector('*[data-toggle-target="'+n.dataset.drawerTargetString+'"]'))}))}},initMobileToggleSub:function(){document.querySelectorAll(".has-collapse-sub-nav").forEach((function(e){var t=e.querySelector(".current-menu-item");t&&window.kadence.findParents(t,"li").forEach((function(e){var t=e.querySelector(".drawer-sub-toggle");t&&window.kadence.toggleDrawer(t,!0)}))}));var e=document.querySelectorAll(".drawer-sub-toggle");if(e.length)for(let t=0;t<e.length;t++)e[t].addEventListener("click",(function(o){o.preventDefault(),window.kadence.toggleDrawer(e[t])}))},initMobileToggleAnchor:function(){var e=document.getElementById("mobile-drawer");if(e){var t=e.querySelectorAll("a:not(.kt-tab-title)");if(t.length)for(let o=0;o<t.length;o++)t[o].addEventListener("click",(function(t){window.kadence.toggleDrawer(e.querySelector(".menu-toggle-close"),!1)}))}},initTransHeaderPadding:function(){if(!document.body.classList.contains("no-header")&&document.body.classList.contains("transparent-header")&&document.body.classList.contains("mobile-transparent-header")){var e=document.querySelector(".entry-hero-container-inner"),t=document.querySelector("#masthead"),o=function(o){kadenceConfig.breakPoints.desktop<=window.innerWidth?document.body.classList.contains("transparent-header")?e.style.paddingTop=t.offsetHeight+"px":e.style.paddingTop=0:document.body.classList.contains("mobile-transparent-header")?e.style.paddingTop=t.offsetHeight+"px":e.style.paddingTop=0};e&&(window.addEventListener("resize",o,!1),window.addEventListener("scroll",o,!1),window.addEventListener("load",o,!1),o())}},initStickyHeader:function(){var e=document.querySelector("#main-header .kadence-sticky-header"),t=document.querySelector("#mobile-header .kadence-sticky-header"),o=document.getElementById("wrapper"),n=document.querySelectorAll(".kadence-pro-fixed-above"),i=document.querySelectorAll(".kadence-before-wrapper-item"),a="mobile",r=0,s=0;parseInt(kadenceConfig.breakPoints.desktop)<window.innerWidth?(a="desktop",e&&(e.style.position="static",s=window.kadence.getOffset(e).top,e.style.position=null)):t&&(t.style.position="static",s=window.kadence.getOffset(t).top,t.style.position=null);var d,l,c,u=function(d){var l,c=window.kadence.getOffset(o).top;if(document.body.classList.toString().includes("boom_bar-static-top")){var u=document.querySelector(".boom_bar");c=window.kadence.getOffset(o).top-u.offsetHeight}if(i.length){var f=0;for(let e=0;e<i.length;e++)f+=i[e].offsetHeight;c=window.kadence.getOffset(o).top-f}if(n.length){var g=0;for(let e=0;e<n.length;e++)g+=n[e].offsetHeight;c=window.kadence.getOffset(o).top+g}if(l=kadenceConfig.breakPoints.desktop<=window.innerWidth?e:t){kadenceConfig.breakPoints.desktop<=window.innerWidth?"mobile"===a?(s=window.kadence.getOffset(l).top,a="desktop"):d&&"updateActive"===d&&(l.style.top="auto",s=window.kadence.getOffset(l).top,a="desktop"):"desktop"===a?(s=window.kadence.getOffset(l).top,a="mobile"):d&&"updateActive"===d&&(l.style.top="auto",s=window.kadence.getOffset(l).top,a="mobile");var h=l.parentNode,w=l.getAttribute("data-shrink"),m=l.getAttribute("data-reveal-scroll-up"),p=parseInt(l.getAttribute("data-start-height"));if((!p||d&&void 0!==d.type&&"orientationchange"===d.type)&&(l.setAttribute("data-start-height",l.offsetHeight),p=l.offsetHeight,h.classList.contains("site-header-upper-inner-wrap")?(h.style.height=null,d&&void 0!==d.type&&"orientationchange"===d.type?l.classList.contains("item-is-fixed")?setTimeout((function(){h.style.height=Math.floor(h.offsetHeight+l.offsetHeight)+"px"}),21):setTimeout((function(){h.style.height=h.offsetHeight+"px"}),21):h.style.height=h.offsetHeight+"px"):h.classList.contains("site-header-inner-wrap")?(h.style.height=null,h.style.height=h.offsetHeight+"px"):h.style.height=l.offsetHeight+"px"),"true"===w){var y=l.getAttribute("data-shrink-height");if(y){if("true"===m)if(window.scrollY>r)var v=Math.floor(Math.floor(s)-Math.floor(c)+Math.floor(p));else v=Math.floor(s-c);else v=Math.floor(s-c);var b=l.querySelector(".custom-logo"),k=l.querySelector(".kadence-sticky-logo"),L=l.querySelector(".site-main-header-inner-wrap"),S=parseInt(L.getAttribute("data-start-height"));if(S||(L.setAttribute("data-start-height",L.offsetHeight),S=L.offsetHeight),window.scrollY<=v)L.style.height=S+"px",L.style.minHeight=S+"px",L.style.maxHeight=S+"px",b&&(b.style.maxHeight="100%"),k&&(k.style.maxHeight="100%");else if(window.scrollY>v){var x=Math.max(y,S-(window.scrollY-(s-c)));L.style.height=x+"px",L.style.minHeight=x+"px",L.style.maxHeight=x+"px",b&&(b.style.maxHeight=x+"px"),k&&(k.style.maxHeight=x+"px")}}}if("true"===m){var A=Math.floor(s-c),E=window.scrollY,q=l.offsetHeight,T=r-E,M=window.getComputedStyle(l).getPropertyValue("transform").match(/(-?[0-9\.]+)/g);if(M&&void 0!==M[5]&&M[5])var H=parseInt(M[5])+T;else H=0;var C=E>r;if(E<=A)l.style.transform="translateY(0px)";else if(C)l.classList.add("item-hidden-above"),l.style.transform="translateY("+(Math.abs(H)>q?-q:H)+"px)";else{A=Math.floor(s-c);l.style.transform="translateY("+(H>0?0:H)+"px)",l.classList.remove("item-hidden-above")}r=E}else A=Math.floor(s-c);window.scrollY==A?(l.style.top=c+"px",l.classList.add("item-is-fixed"),l.classList.add("item-at-start"),l.classList.remove("item-is-stuck"),h.classList.add("child-is-fixed"),document.body.classList.add("header-is-fixed")):window.scrollY>A?"true"===m?window.scrollY<q+60&&l.classList.contains("item-at-start")?(l.style.height=null,l.style.top=c+"px",l.classList.add("item-is-fixed"),l.classList.add("item-is-stuck"),h.classList.add("child-is-fixed"),document.body.classList.add("header-is-fixed")):(l.style.top=c+"px",l.classList.add("item-is-fixed"),l.classList.add("item-is-stuck"),l.classList.remove("item-at-start"),h.classList.add("child-is-fixed"),document.body.classList.add("header-is-fixed")):(l.style.top=c+"px",l.classList.add("item-is-fixed"),l.classList.remove("item-at-start"),l.classList.add("item-is-stuck"),h.classList.add("child-is-fixed"),document.body.classList.add("header-is-fixed")):l.classList.contains("item-is-fixed")&&(l.classList.remove("item-is-fixed"),l.classList.remove("item-at-start"),l.classList.remove("item-is-stuck"),l.style.height=null,l.style.top=null,h.classList.remove("child-is-fixed"),document.body.classList.remove("header-is-fixed"))}};if((e||t)&&(window.addEventListener("resize",u,!1),window.addEventListener("scroll",u,!1),window.addEventListener("load",u,!1),window.addEventListener("orientationchange",u),"complete"===document.readyState&&u("updateActive"),document.body.classList.contains("woocommerce-demo-store")&&document.body.classList.contains("kadence-store-notice-placement-above"))){d=document.querySelector(".woocommerce-store-notice"),l=e=>{u("updateActive")},c={root:document.documentElement},new IntersectionObserver(((e,t)=>{e.forEach((e=>{l(e.intersectionRatio>0)}))}),c).observe(d)}},getTopOffset:function(e="scroll"){if("load"===e)var t=document.querySelector("#main-header .kadence-sticky-header"),o=document.querySelector("#mobile-header .kadence-sticky-header");else t=document.querySelector('#main-header .kadence-sticky-header:not([data-reveal-scroll-up="true"])'),o=document.querySelector('#mobile-header .kadence-sticky-header:not([data-reveal-scroll-up="true"])');var n=0,i=0;if(kadenceConfig.breakPoints.desktop<=window.innerWidth){if(t)n="true"!==t.getAttribute("data-shrink")||t.classList.contains("site-header-inner-wrap")?Math.floor(t.offsetHeight):Math.floor(t.getAttribute("data-shrink-height"));else n=0;document.body.classList.contains("admin-bar")&&(i=32)}else{if(o)n="true"===o.getAttribute("data-shrink")?Math.floor(o.getAttribute("data-shrink-height")):Math.floor(o.offsetHeight);else n=0;document.body.classList.contains("admin-bar")&&(i=46)}return Math.floor(n+i+Math.floor(kadenceConfig.scrollOffset))},scrollToElement:function(e,t,o="scroll"){t=void 0===t||t;var n=window.kadence.getTopOffset(o),i=Math.floor(e.getBoundingClientRect().top)-n;window.scrollBy({top:i,left:0,behavior:"smooth"}),e.tabIndex="-1",e.focus({preventScroll:!0}),e.classList.contains("kt-title-item")&&e.firstElementChild.click(),t&&window.history.pushState("","","#"+e.id)},anchorScrollToCheck:function(e,t){if(t=void 0!==t?t:null,e.target.getAttribute("href"))var o=e.target;else{if(!(o=e.target.closest("a")))return;if(!o.getAttribute("href"))return}if(!o.parentNode||!o.parentNode.hasAttribute("role")||"tab"!==o.parentNode.getAttribute("role")){var n;n=t?t.getAttribute("href").substring(t.getAttribute("href").indexOf("#")):o.getAttribute("href").substring(o.getAttribute("href").indexOf("#"));var i=document.getElementById(n.replace("#",""));i&&(e.preventDefault(),window.kadence.scrollToElement(i))}},initStickySidebarWidget:function(){if(document.body.classList.contains("has-sticky-sidebar-widget")){var e=window.kadence.getTopOffset(),t=document.querySelector("#secondary .sidebar-inner-wrap .widget:last-child");t&&(t.style.top=Math.floor(e+20)+"px",t.style.maxHeight="calc( 100vh - "+Math.floor(e+20)+"px )")}},initStickySidebar:function(){if(document.body.classList.contains("has-sticky-sidebar")){var e=window.kadence.getTopOffset(),t=document.querySelector("#secondary .sidebar-inner-wrap");t&&(t.style.top=Math.floor(e+20)+"px",t.style.maxHeight="calc( 100vh - "+Math.floor(e+20)+"px )")}},initAnchorScrollTo:function(){if(!document.body.classList.contains("no-anchor-scroll")){if(window.onhashchange=function(){""===window.location.hash&&(window.scrollTo({top:0,behavior:"smooth"}),document.activeElement.blur())},""!=window.location.hash){var e,t=location.hash.substring(1);if(!/^[A-z0-9_-]+$/.test(t))return;(e=document.getElementById(t))&&window.setTimeout((function(){window.kadence.scrollToElement(e,!1,"load")}),100)}var o=document.querySelectorAll("a[href*=\\#]:not([href=\\#]):not(.scroll-ignore):not([data-tab]):not([data-toggle])");o.length&&o.forEach((function(e){new URL(e.href).pathname===window.location.pathname&&e.addEventListener("click",(function(e){window.kadence.anchorScrollToCheck(e)}))}))}},initScrollToTop:function(){var e=document.getElementById("kt-scroll-up");if(e){var t=function(){window.scrollY>100?e.classList.add("scroll-visible"):e.classList.remove("scroll-visible")};window.addEventListener("scroll",t),t(),e.addEventListener("click",(function(e){e.preventDefault(),window.scrollTo({top:0,behavior:"smooth"}),document.activeElement.blur()}))}var o=document.getElementById("kt-scroll-up-reader");o&&o.addEventListener("click",(function(e){e.preventDefault(),window.scrollTo({top:0,behavior:"smooth"}),document.querySelector(".skip-link").focus()}))},init:function(){window.kadence.initNavToggleSubmenus(),window.kadence.initToggleDrawer(),window.kadence.initMobileToggleAnchor(),window.kadence.initMobileToggleSub(),window.kadence.initOutlineToggle(),window.kadence.initStickyHeader(),window.kadence.initStickySidebar(),window.kadence.initStickySidebarWidget(),window.kadence.initTransHeaderPadding(),window.kadence.initAnchorScrollTo(),window.kadence.initScrollToTop()}},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",window.kadence.init):window.kadence.init()}();