PageSourceSearch

https://www.hillhousehome.com/cdn/shop/t/552/assets/bundled-show-scroll-batch.directive.js

js hillhousehome.com collected 2026-09-24 22:10:10 UTC 2,978 bytes, 5 lines download raw bytes

1import { D as Directive, S as ShowScroll, A as Attr, e as e$1, O as Ohm, H as HostAttr, a as autobind } from './bundled-app.js';
2
3var t,e;function r(t,e,r,s){var i,o=arguments.length,h=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,e,r,s);else for(var u=t.length-1;u>=0;u--)(i=t[u])&&(h=(o<3?i(h):o>3?i(e,r,h):i(e,r))||h);return o>3&&h&&Object.defineProperty(e,r,h),h}function s(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}(e=t||(t={})).BASE="show-scroll-batch",e.INTERVAL="show-scroll-batch-interval",e.THRESHOLD="show-scroll-batch-threshold",e.MULTIQUEUE="show-scroll-batch-multi-queue";class ShowScrollBatch extends Directive{onAppInit(){if(window.Shopify.designMode)return;let t=this.host.querySelectorAll(`${ShowScroll.selector}:not([${Attr.SYNC_WITH_PARENT}]`);e$1.init(),e$1.bind(`show-scroll-batch-${this.ohmID}`,{threshold:this.threshold},t,this.observerCallBack);}onAppChange(){e$1.init(),e$1.unbind(`show-scroll-batch-${this.ohmID}`);}get currentQueue(){if(this.createNewQueue){let t=new a(this.batchInterval);return this.queues.push(t),this.createNewQueue=!1,this.isMultiQueue&&setTimeout(()=>{this.createNewQueue=!0;},ShowScrollBatch.NEW_QUEUE_THROTTLE),t}return this.queues[this.queues.length-1]}observerCallBack(t,e){t.forEach(t=>{let r=t.target.hasAttribute(Attr.PERSISTENT);t.isIntersecting?(this.elmIsIntersecting(t.target),r||e.unobserve(t.target)):this.elmIsNotIntersecting(t.target);});}elmIsIntersecting(t){let e=Ohm.getDirectiveFromHostElement(t,ShowScroll);this.currentQueue.push(e),this.currentQueue.run();}elmIsNotIntersecting(t){let e=Ohm.getDirectiveFromHostElement(t,ShowScroll);
3e.onNotIntersecting(),this.queues.forEach(t=>{t.remove(e);});}constructor(...t){super(...t),this.threshold=.2,this.isMultiQueue=this.host.hasAttribute("show-scroll-batch-multi-queue"),this.batchInterval=this.host.hasAttribute("show-scroll-batch-interval")?parseInt(this.host.getAttribute("show-scroll-batch-interval"),10):0,this.queues=[],this.createNewQueue=!0;}}ShowScrollBatch.selector="[show-scroll-batch]",ShowScrollBatch.NEW_QUEUE_THROTTLE=10,r([HostAttr("#show-scroll-batch-threshold"),s("design:type",Number)],ShowScrollBatch.prototype,"threshold",void 0),r([autobind,s("design:type",Function),s("design:paramtypes",[Array,"undefined"==typeof IntersectionObserver?Object:IntersectionObserver]),s("design:returntype",void 0)],ShowScrollBatch.prototype,"observerCallBack",null);class a{run(){null===this.timeout&&this.animNextInQueue();}push(t){this.queue.push(t);}remove(t){this.queue=this.queue.filter(e=>e!==t);}animNextInQueue(){if(0===this.queue.length){clearTimeout(this.timeout),this.timeout=null;return}this.queue.shift().onIsIntersecting(),this.timeout=setTimeout(()=>{this.animNextInQueue();},this.interval);}constructor(t){this.interval=t,this.queue=[],this.timeout=null;}}
4
5export { ShowScrollBatch };

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.