PageSourceSearch

https://hootir.com/cdn/shop/t/95/assets/product-card-slider.js?v=20679878073769570101790348310

js hootir.com collected 2026-10-06 18:46:36 UTC 1,739 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];if(null!=l)for(var n in l)l.hasOwnProperty(n)&&(e[n]=l[n])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:flexillect-theme":!0})}catch(t){}}();import{C as e}from"@theme/component";const t=["w-6","bg-white"],l=["w-1.5","bg-white/60"];customElements.define("product-card-slider",class ProductCardSlider extends e{requiredRefs=["track","slide"];#e=0;#t=null;#l=0;connectedCallback(){super.connectedCallback(),this.#n(),this.#s()}disconnectedCallback(){this.#i(),this.#l&&cancelAnimationFrame(this.#l),this.#l=0,super.disconnectedCallback()}updatedCallback(){super.updatedCallback(),this.#n()}#n(){const e=this.refs.track instanceof HTMLElement?this.refs.track:null;e!==this.#t&&(this.#i(),this.#t=e,e&&e.addEventListener("scroll",this.#r,{passive:!0}))}#i(){this.#t&&this.#t.removeEventListener("scroll",this.#r),this.#t=null}#r=()=>{this.#l||(this.#l=requestAnimationFrame(()=>{this.#l=0,this.#s()}))};#s(){const e=this.#t,t=this.getAllRefs("slide");if(!(e instanceof HTMLElement)||0===t.length)return;if(e.scrollWidth<=e.clientWidth+1)return;const l=e.getBoundingClientRect().left+e.clientWidth/2;let n=0,s=1/0;t.forEach((e,t)=>{const i=e.getBoundingClientRect(),r=i.left+i.width/2,c=Math.abs(r-l);c<s&&(s=c,n=t)}),this.#c(n)}#c(e){e!==this.#e&&(this.#e=e,this.getAllRefs("dot").forEach((n,s)=>{const i=s===e;n.classList.add(...i?t:l),n.classList.remove(...i?l:t)}))}});

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.