PageSourceSearch

https://sodastream.pl/cdn/shop/t/22/assets/snippet.cart-sticky-cta.js?v=70636500454347106741777973157

js sodastream.pl collected 2026-09-26 12:04:30 UTC 2,791 bytes, 1 lines download raw bytes

1(()=>{let t=null,e=[];function n(){t&&(e.forEach((e=>{t.unobserve(e)})),t.disconnect()),t=null,e=[];const n=function(){const t=document.querySelectorAll("#cart-sticky-cta");return t&&t.length?t[t.length-1]:null}();if(!n)return;const o=document.querySelector("[data-cart-checkout-anchor]");if(!o)return;const c=document.querySelector("[data-cart-checkout-anchor-top]"),r=document.querySelector(".footer-new")||document.getElementById("footer"),s=[o];c&&s.push(c),r&&s.push(r);const i=new Set,u=()=>{const t=i.size>0,e=s.some((t=>function(t){if(!t||"function"!=typeof t.getBoundingClientRect)return!1;const e=t.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,o=window.innerWidth||document.documentElement.clientWidth,c=e.top<n&&e.bottom>0,r=e.left<o&&e.right>0;return c&&r}(t)));t||e?n.classList.add("d-none"):(n.classList.remove("d-none"),n.style&&"none"===n.style.display&&(n.style.display=""))},a=new IntersectionObserver((t=>{t.forEach((t=>{t.isIntersecting?i.add(t.target):i.delete(t.target)})),u()}),{threshold:.01,rootMargin:"0px"});t=a,e=s.slice(),s.forEach((t=>a.observe(t))),u()}const o=".checkout-tooltip-wrapper, .cart-sticky-cta__tooltip-wrapper",c="checkout-tooltip-open",r="checkout-tooltip-dismissed",s=".cart-checkout-button, .cart-sticky-cta__btn";function i(t){const e=t.target.closest("[data-checkout-tooltip-close]");if(!e)return;const n=e.closest(o);n&&(n.classList.add(r),n.classList.remove(c))}function u(t){const e=t.currentTarget;(function(t,e){if(!e)return!1;if(t.target.closest("[data-checkout-tooltip-close]"))return!1;if(t.target===e||e.contains(t.target))return!0;const n=t.touches&&t.touches.length?t.touches[0]:null,o=n?n.clientX:t.clientX,c=n?n.clientY:t.clientY;if("number"!=typeof o||"number"!=typeof c)return!1;const r=e.getBoundingClientRect();return o>=r.left&&o<=r.right&&c>=r.top&&c<=r.bottom})(t,e.querySelector(s))&&(e.classList.remove(r),e.classList.add(c))}function a(t){const e=t.currentTarget.closest(o);e&&e.classList.add(c)}function l(t){const e=t.currentTarget;t.relatedTarget&&e.contains(t.relatedTarget)||e.classList.remove(c,r)}function d(){document.removeEventListener("click",i),document.addEventListener("click",i),document.querySelectorAll(o).forEach((t=>{const e=t.querySelector(s);t.removeEventListener("mouseleave",l),t.addEventListener("mouseleave",l),e&&(e.removeEventListener("mouseenter",a),e.addEventListener("mouseenter",a)),t.removeEventListener("click",u,!0),t.addEventListener("click",u,!0),t.removeEventListener("touchstart",u,!0),t.addEventListener("touchstart",u,!0)}))}function m(){n(),d()}n(),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",m):m(),document.addEventListener("cartSectionUpdated",(()=>{window.requestAnimationFrame((()=>{n(),d()}))}))})();

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.