PageSourceSearch

https://woocommerce.com/wp-content/themes/woo/dist/blocks/effect-b…=b58a3deaff6bd364111c055a04eb005148a7033e

js woocommerce.com collected 2026-09-24 07:55:32 UTC 4,698 bytes, 1 lines download raw bytes

1(()=>{"use strict";function e(e,t){let n=!1;return function(){const o=arguments;n||(e.apply(this,o),n=!0,setTimeout((()=>n=!1),t))}}function t(e,t){let n;return function(){const o=this,c=arguments;clearTimeout(n),n=setTimeout((()=>e.apply(o,c)),t)}}const n=wp.i18n,o=wp.a11y;!function(){function c(c){let i,l,r,s,d,a,u,f,h,m=!1,v=c.children[0];if(!v)return;for(;v&&"contents"===window.getComputedStyle(v).display&&0<v.children.length;)v=v.children[0];if(!v)return;const w=c.classList.contains("all-screens"),p=c.classList.contains("show-arrows"),L=e((function(){if(!v||!i||!l)return;const e=v.scrollLeft/(v.scrollWidth-v.clientWidth),t=v.clientWidth/v.scrollWidth*i.clientWidth,n=e*(i.clientWidth-t);l.style.width=`${t}px`,l.style.transform=`translate3d(${n}px, 0, 0)`,t>=i.clientWidth?i.style.display="none":i.style.display="block"}),16);function g(e){const t=l.getBoundingClientRect(),n=i.getBoundingClientRect();if(e.clientX<t.left||e.clientX>t.right){const t=(e.clientX-n.left)/n.width*(v.scrollWidth-v.clientWidth);v.scrollTo({left:t,behavior:"smooth"})}}function E(e){e.target===i?g(e):e.target===l&&(m=!0,r=e.clientX-l.getBoundingClientRect().left,s=v.scrollLeft,a=e.clientX)}const b=t((function(e){if(!m)return;if(5>Math.abs(e.clientX-a))return;e.preventDefault();const t=i.getBoundingClientRect(),n=Math.max(0,Math.min(e.clientX-t.left,t.width))/t.width*(v.scrollWidth-v.clientWidth);v.scrollLeft=n,L()}),10);function _(){m=!1}function y(e){const t=e.touches[0],n=l.getBoundingClientRect();t.clientX<n.left||t.clientX>n.right?g(t):e.target===l&&(m=!0,r=t.clientX-n.left,s=v.scrollLeft,a=t.clientX)}const W=t((function(e){if(!m)return;if(5>Math.abs(e.touches[0].clientX-a))return;e.preventDefault();const t=(e.touches[0].clientX-i.getBoundingClientRect().left-r)*(v.scrollWidth/i.clientWidth);v.scrollLeft=s+t}),10);function C(){m=!1}function X(){let e=v,t=e.children;for(;1===t.length&&0<t[0].children.length;)e=t[0],t=e.children;if(0===t.length)return v.clientWidth;const n=window.getComputedStyle(e),o=parseFloat(n.columnGap)||parseFloat(n.gap)||0;return t[0].offsetWidth+o}const z=e((function(){if(!f||!h)return;const e=1>=v.scrollLeft,t=v.scrollLeft>=v.scrollWidth-v.clientWidth-1;e&&!f.disabled&&(0,o.speak)((0,n.__)("Beginning of list reached","wccom")),t&&!h.disabled&&(0,o.speak)((0,n.__)("End of list reached","wccom")),f.disabled=e,h.disabled=t}),16);const B=t((function(){window.innerWidth>=782||w?i||(i=document.createElement("div"),i.className="wccom-effect-horizontal-scroll__scrollbar",l=document.createElement("div"),l.className="wccom-effect-horizontal-scroll__scrollbar-thumb",i.appendChild(l),c.appendChild(i),v.addEventListener("scroll",L),i.addEventListener("mousedown",E),document.addEventListener("mousemove",b),document.addEventListener("mouseup",_),i.addEventListener("touchstart",y),document.addEventListener("touchmove",W),document.addEventListener("touchend",C),L(),d=new ResizeObserver(L),d.observe(c),p&&function(){u=document.createElement("div"),u.className="wccom-effect-horizontal-scroll__arrows",f=document.createElement("button"),f.type="button",f.className="wccom-effect-horizontal-scroll__arrow wccom-effect-horizontal-scroll__arrow--prev",f.setAttribute("aria-label",(0,n.__)("Scroll to previous items","wccom")),f.innerHTML='<i class="fa-regular fa-arrow-left wccom-fa-icon" aria-hidden="true"></i>',h=document.createElement("button"),h.type="button",h.className="wccom-effect-horizontal-scroll__arrow wccom-effect-horizontal-scroll__arrow--next",h.setAttribute("aria-label",(0,n.__)("Scroll to next items","wccom")),h.innerHTML='<i class="fa-regular fa-arrow-right wccom-fa-icon" aria-hidden="true"></i>';const e=window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)")?.matches?"auto":"smooth";f.addEventListener("click",(function(){v.scrollBy({left:-X(),behavior:e})})),h.addEventListener("click",(function(){v.scrollBy({left:X(),behavior:e})})),u.appendChild(f),u.appendChild(h),c.appendChild(u),v.addEventListener("scroll",z),v.addEventListener("scrollend",z),z()}()):i&&i&&(u&&(v.removeEventListener("scroll",z),v.removeEventListener("scrollend",z),c.removeChild(u),u=f=h=null),v.removeEventListener("scroll",L),i.removeEventListener("mousedown",E),document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",_),i.removeEventListener("touchstart",y),document.removeEventListener("touchmove",W),document.removeEventListener("touchend",C),c.removeChild(i),d&&d.disconnect(),i=l=null)}),250);B(),window.addEventListener("resize",B)}function i(){document.querySelectorAll(".wccom-effect-horizontal-scroll").forEach(c)}"loading"!==document.readyState?i():document.addEventListener("DOMContentLoaded",i)}()})();

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.