PageSourceSearch

https://petalandpup.com.au/cdn/shop/t/984/assets/simple-collection-header-Dfmjq9X6.js

js petalandpup.com.au collected 2026-10-02 05:01:13 UTC 1,125 bytes, 1 lines download raw bytes

1const s="twp:tile-cluster";class r{constructor(t){this.container=t,this.onTileClick=this.onTileClick.bind(this),this.revealActiveTile=this.revealActiveTile.bind(this),t.addEventListener("click",this.onTileClick),this.visibleStrip&&(requestAnimationFrame(this.revealActiveTile),document.readyState!=="complete"&&window.addEventListener("load",this.revealActiveTile,{once:!0}))}get visibleStrip(){return[...this.container.querySelectorAll("[data-subcollections]")].find(e=>!e.hidden)??null}onTileClick(t){var l;if(t.defaultPrevented||t.button>0||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)return;const e=t.target.closest(".subcollection__link"),i=(l=e==null?void 0:e.closest("[data-subcollections]"))==null?void 0:l.dataset.cluster;if(i)try{sessionStorage.setItem(s,i)}catch{}}revealActiveTile(){const t=this.visibleStrip,e=t==null?void 0:t.querySelector(".subcollection__container--active");if(!t||!e||t.scrollLeft!==0||t.scrollWidth<=t.clientWidth)return;const i=e.offsetLeft-(t.clientWidth-e.offsetWidth)/2,l=Math.max(0,Math.min(i,t.scrollWidth-t.clientWidth));t.scrollTo({left:l,behavior:"instant"})}}export{r as default};

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.