1!function(e){"function"==typeof define&&define.amd?define("collectionProductGrid",e):e()}(function(){"use strict";const n=()=>{var e=document.querySelectorAll("img[data-srcset]:not(.loaded)"),t=document.querySelectorAll("[data-srcbackground]:not(.loaded)");if(0<e.length){e=Array.from(e);const r=new IntersectionObserver(e=>{e.forEach(e=>{var t,o;e.isIntersecting&&(t=(e=e.target).dataset.placeholder,o=e.offsetWidth+"px",e.src=t,e.setAttribute("sizes",o),e.srcset=e.dataset.srcset,e.classList.add("loaded"),r.unobserve(e))})});e.forEach(e=>{r.observe(e)})}if(0<t.length){t=Array.from(t);const o=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&((e=e.target).style.backgroundImage=`url(${e.dataset.srcbackground})`,e.classList.add("loaded"),o.unobserve(e))})});t.forEach(e=>{o.observe(e)})}},l=(document.addEventListener("change",e=>{if(e.target.closest(".js-collection-sort")){e.preventDefault();var e=e.target.closest(".js-collection-sort").value,o=".js-collection-sort",r=e;for(const c of document.querySelectorAll(o))c.value=r;let t=new URL(window.location.href);t.searchParams.set("sort_by",e),fetch(t.href).then(e=>e.text()).then(e=>{e=(new DOMParser).parseFromString(e,"text/html").documentElement.querySelector("#CollectionProductGrid");document.querySelector("#CollectionProductGrid").innerHTML=e.innerHTML,window.history.pushState({},"",t.href),n()})}}),t=>{let o=document.querySelector(".collection-product-grid__sort-filter");o&&(o.style.pointerEvents="none"),fetch(t).then(e=>e.text()).then(e=>{e=(new DOMParser).parseFromString(e,"text/html").documentElement.querySelector("#CollectionProductGrid");document.querySelector("#CollectionProductGrid").innerHTML=e.innerHTML,window.history.pushState({},"",t),n(),o&&(o.style.pointerEvents="auto")})}),t=()=>{var e,t="filter.v.price.gte",o="filter.v.price.lte";const r=document.querySelector(`.js-collection-filter__price__input[name="${t}"]`).value,c=document.querySelector(`.js-collection-filter__price__input[name="${o}"]`).value;isNaN(r)&&(r=0),isNaN(c)&&(c=0),0<r||0<c?(e=new URL(window.location.href),0<r?e.searchParams.set(t,r):e.searchParams.delete(t),0<c?e.searchParams.set(o,c):e.searchParams.delete(o),l(e.href)):((t=new URL(window.location.href)).searchParams.delete("filter.v.price.gte"),t.searchParams.delete("filter.v.price.lte"),l(t.href))};if(document.addEventListener("change",e=>{if(e.target.closest(".js-collection-filter-checkbox")){e.preventDefault();var e=e.target.closest(".js-collection-filter-checkbox"),t=e.name;const r=e.value;var o=new URL(window.location.href);if(e.checked)o.searchParams.append(t,r);else{e=o.searchParams.getAll(t).filter(e=>e!=r);o.searchParams.delete(t);for(const c of e)o.searchParams.append(t,c)}l(o.href)}}),document.addEventListener("change",e=>{var t,o,r;e.target.closest(".js-collection-filter-radio")&&(e.preventDefault(),t=(e=e.target.closest(".js-collection-filter-radio")).name,o=e.value,(r=new URL(window.location.href)).searchParams.delete(t),e.checked&&r.searchParams.set(t,o),l(r.href))}),document.querySelector(".js-collection-filter__price__input")){let e;for(const o of document.querySelectorAll(".js-collection-filter__price__input"))o.addEventListener("keyup",()=>{clearTimeout(e),e=setTimeout(t,1500)}),o.addEventListener("change",()=>{clearTimeout(e),e=setTimeout(t,1500)})}document.addEventListener("click",e=>{e.target.closest('[data-behavior="toggle-mobile-filters"]')&&(e.preventDefault(),e=document.querySelector(".collection-product-grid__sort-filter"))&&(e.classList.toggle("collection-product-grid__sort-filter--is-open-mobile"),e.classList.contains("collection-product-grid__sort-filter--is-open-mobile")?(document.documentElement.style.scrollBehavior="unset",window.scrollPosition=window.scrollY,window.scrollTo(0,window.scrollPosition),document.body.style.position="fixed",document.body.style.top=`-${window.scrollPosition}px`):(document.body.style.position="",document.body.style.top="",window.scrollTo(0,window.scrollPosition),document.documentElement.style.scrollBehavior="auto"))})});
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.