PageSourceSearch

https://hobbii.pl/cdn/shop/t/4/assets/hobbii-scroll-yy09VGcZ.min.js

js hobbii.pl collected 2026-09-26 15:09:29 UTC 2,507 bytes, 2 lines download raw bytes

1import{s as e}from"./hobbii-dom-SvEnDmWr.min.js";const t="data-scroll-locked-y",l=".js-sticky-header-wrapper",r=["fixed","w-full"],s=["fixed","w-full"],o=["relative"],n=()=>{var n;const i=document.body,u=document.querySelector(l),a=document.querySelector("main"),c=(()=>{const e=document.querySelector("header"),t=null==e?void 0:e.previousElementSibling;return((null==e?void 0:e.offsetHeight)||0)+((null==t?void 0:t.offsetHeight)||0)-20})(),d=window.scrollY;i.setAttribute(t,String(d)),null==(n=e)||n.freeze(),null==u||u.classList.add(...r),null==a||a.classList.add(...o),a&&(a.style.top=`${c}px`),i.style.top=`-${d}px`,i.classList.add(...s)},i=()=>{return n=null,i=null,u=function*(){const n=document.body,i=document.querySelector(l),u=document.querySelector("main"),a=parseInt(n.getAttribute(t)||"0");n.removeAttribute(t),n.classList.remove(...s),0===n.classList.length&&n.removeAttribute("class"),n.style.top="",n.getAttribute("style")||n.removeAttribute("style"),window.scrollTo({top:a}),null==u||u.classList.remove(...o),u&&(u.style.top=""),(null==u?void 0:u.getAttribute("style"))||null==u||u.removeAttribute("style"),0===(null==u?void 0:u.classList.length)&&u.removeAttribute("class"),null==i||i.classList.remove(...r),0===(null==i?void 0:i.classList.length)&&i.removeAttribute("class"),setTimeout((()=>{var t;return null==(t=e)?void 0:t.unfreeze()}))},new Promise(((e,t)=>{var l=e=>{try{s(u.next(e))}catch(l){t(l)}},r=e=>{try{s(u.throw(e))}catch(l){t(l)}},s=t=>t.done?e(t.value):Promise.resolve(t.value).then(l,r);s((u=u.apply(n,i)).next())}));var n,i,u},u="data-scroll-locked-class",a=e=>e.hasAttribute(u),c=(e,t="hidden")=>{if(!e||a(e))return;const l=((e,t)=>{const l=[];return t.forEach((t=>{((e,t)=>!e.classList.contains(t)&&(e.classList.add(t),!0))(e,t)&&l.push(t)})),l})(e,[`overflow-${t}`,"touch-pinch-zoom","scrolling-touch"]);e.setAttribute(u,l.join(" "))},d=e=>{if(!e||!a(e))return;const t=e.getAttribute(u);t&&e.classList.remove(...t.split(" ")),0===e.classList.length&&e.removeAttribute("class"),e.removeAttribute(u)},m=(e,t="hidden")=>{if(!e)return;let l=null==e?void 0:e.parentElement;for(;l&&"BODY"!==l.tagName;)c(l,t),l=l.parentElement;n(),c(document.body.parentElement,t)},v=e=>{if(!e)return;let t=null==e?void 0:e.parentElement;for(;t&&"BODY"!==t.tagName;)d(t),t=t.parentElement;i(),d(document.body.parentElement)},p=()=>{document.querySelectorAll(`[${u}]`).forEach((e=>d(e))),i()};export{v as a,c as b,d as c,m as l,p as u};
2//# sourceMappingURL=hobbii-scroll-yy09VGcZ.min.js.map

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.