PageSourceSearch

https://www.eskimoz.it/wp-content/themes/eskimoz/piloblocks/build/…/menu-eskimoz.min.js?ver=1789392734

js eskimoz.it collected 2026-10-08 09:53:33 UTC 3,177 bytes, 1 lines download raw bytes

1class T extends PiloBlock{do({block:s,index:q}){if(q>1)return;const A=t=>document.documentElement.style.setProperty("--pib-menu-height",`${t}px`);let d=!1,p=0,v=!1;const z=t=>d=!0,P=()=>{d=!1;const t=window.pageYOffset||document.documentElement.scrollTop;t>p?(s.dataset.scrolling="down",s.querySelectorAll("[data-menu-on-desktop] [popover]").forEach(o=>o.hidePopover())):t<p&&(s.dataset.scrolling="up"),t>0?s.dataset.sticky="":delete s.dataset.sticky,p=Math.max(0,t)},g=()=>{d&&P(),requestAnimationFrame(g)};requestAnimationFrame(g);const L=t=>{var e,r;const o=t[0],n=o.target,l=n._prevWidth??!1,a=((e=o.borderBoxSize)==null?void 0:e.length)>0?o.borderBoxSize[0].blockSize:o.contentRect.height,c=((r=o.borderBoxSize)==null?void 0:r.length)>0?o.borderBoxSize[0].inlineSize:o.contentRect.width,h=parseFloat(window.getComputedStyle(document.documentElement).getPropertyValue("--pib-scrollbar-width")||0);(!l||c!==l&&Math.round(c-l)>h)&&(A(a),n._prevWidth=c),v===!1&&(window.addEventListener("scroll",z,{passive:!0}),v=!0)};s.querySelectorAll("[data-obs]").forEach(t=>new ResizeObserver(this.debounce(L,250)).observe(t));const i=s.querySelector("[data-menu-burger]"),m=s.querySelector("[data-menu-on-mobile]");let y=-1/0;const x=250;m==null||m.addEventListener("toggle",t=>{i==null||i.setAttribute("aria-expanded",t.newState==="open"?"true":"false"),t.newState==="closed"&&(y=performance.now())}),i==null||i.addEventListener("command",t=>{t.command==="toggle-popover"&&performance.now()-y<x&&t.preventDefault()});const u=window.matchMedia("(min-width: 1280px)"),R=150,f=s.querySelector("[data-menu-on-desktop]"),w=s.querySelectorAll("[data-menu-on-desktop] li.group\\/submenu");if(f&&w.length>0){const t=Array.from(w).map(e=>({li:e,trigger:e.querySelector('button[command="toggle-popover"]'),popover:e.querySelector("[popover][data-popover-niv0]")})).filter(e=>e.trigger&&e.popover);let o=null,n=null;const l=()=>{n&&(clearTimeout(n),n=null)},a=e=>{e.popover.matches(":popover-open")&&e.popover.hidePopover()},c=()=>{l();const e=o;n=setTimeout(()=>{o===e&&(o=null),a(e)},R)},h=e=>{l(),o=e;for(const r of t)r!==e&&a(r);e.popover.matches(":popover-open")||e.popover.showPopover()};f.addEventListener("pointermove",e=>{if(!u.matches||e.pointerType!=="mouse")return;const r=t.find(b=>b.li.contains(e.target)||b.popover.contains(e.target));r?r!==o?h(r):l():o&&c()}),f.addEventListener("pointerleave",e=>{!u.matches||e.pointerType!=="mouse"||o&&c()});for(const{trigger:e}of t)e.addEventListener("command",r=>{u.matches&&r.preventDefault()})}for(const t of document.querySelectorAll("dialog,[popover][data-menu-on-mobile]"))t.addEventListener("toggle",o=>{o.newState==="open"?(document.body.style.overflow="hidden",document.body.style.scrollbarGutter="stable"):(document.body.style.overflow="",document.body.style.scrollbarGutter="")});const S=new URLSearchParams(location.search),E=S.get("open");if(E){const t=S.get("screenshot")==="1",o=()=>{for(const n of E.split(",")){const l=n.startsWith("menu-eskimoz")?n:`esk-submenu-${n}`,a=document.getElementById(l);a&&(t?a.dataset.screenshot="":a.showPopover())}};o(),requestAnimationFrame(o)}}}new T({selector:".wp-block-pib-menu-eskimoz"});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.