PageSourceSearch

https://www.waterdrop.com/cdn/shop/t/30/assets/product-list-D1ijskxM.js

js waterdrop.com collected 2026-09-24 08:58:02 UTC 3,542 bytes, 1 lines download raw bytes

1var c=(d,e,t)=>new Promise((i,n)=>{var s=r=>{try{o(t.next(r))}catch(a){n(a)}},u=r=>{try{o(t.throw(r))}catch(a){n(a)}},o=r=>r.done?i(r.value):Promise.resolve(r.value).then(s,u);o((t=t.apply(d,e)).next())});import h from"./custom-html-element-Cddc4xm8.js";import{a as m,P as g,C as b}from"./animation-Lj_RU2CY.js";import{M as l}from"./media-features-Dpev1hGC.js";import{_ as f}from"./theme-C25wr5Yb.js";import"./logger-pamvzmAu.js";import"./exports-NHIMKJG4.js";import"./event-zU-Y6ZHH.js";class p extends h{constructor(){super(),this.productListInner=this.querySelector(".product-list__inner"),this.productItems=Array.from(this.querySelectorAll(".js-product-card")),this._onSectionReloaded=this._onSectionReloaded.bind(this)}connectedCallback(){this.addEventListener("prev-next:prev",this.previous.bind(this)),this.addEventListener("prev-next:next",this.next.bind(this)),!this.hidden&&this.staggerApparition&&(this._staggerProductsApparition(),document.addEventListener("sections:updated",this._onSectionReloaded))}get staggerApparition(){return this.hasAttribute("stagger-apparition")}get apparitionAnimation(){return this._animation=this._animation||new m(new g(this.productItems.map((e,t)=>new b(e,{opacity:[0,1],transform:[`translateY(${l.prefersReducedMotion()?0:window.innerWidth<1e3?35:60}px)`,"translateY(0)"]},{duration:600,delay:l.prefersReducedMotion()?0:100*t-Math.min(3*t*t,100*t),easing:"ease"}))))}previous(e){const t=window.themeVariables.settings.direction==="ltr"?1:-1,i=parseInt(getComputedStyle(this).getPropertyValue("--product-list-column-gap"));e.target.nextElementSibling.removeAttribute("disabled"),e.target.toggleAttribute("disabled",this.productListInner.scrollLeft*t-(this.productListInner.clientWidth+i)<=0),this.productListInner.scrollBy({left:-(this.productListInner.clientWidth+i)*t,behavior:"smooth"})}next(e){const t=window.themeVariables.settings.direction==="ltr"?1:-1,i=parseInt(getComputedStyle(this).getPropertyValue("--product-list-column-gap"));e.target.previousElementSibling.removeAttribute("disabled"),e.target.toggleAttribute("disabled",this.productListInner.scrollLeft*t+(this.productListInner.clientWidth+i)*2>=this.productListInner.scrollWidth),this.productListInner.scrollBy({left:(this.productListInner.clientWidth+i)*t,behavior:"smooth"})}attributeChangedCallback(e){let t,i;if(this.staggerApparition)switch(e){case"hidden":this.hidden?this.apparitionAnimation.finish():(this.productListInner.scrollLeft=0,this.productListInner.parentElement.scrollLeft=0,(t=this.querySelector(".prev-next-button--prev"))==null||t.setAttribute("disabled",""),(i=this.querySelector(".prev-next-button--next"))==null||i.removeAttribute("disabled"),this._staggerProductsApparition())}}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("sections:updated",this._onSectionReloaded)}_onSectionReloaded(e){const t=e.detail;!(t!=null&&t.sections)||!Object.keys(t.sections).some(n=>{const s=document.getElementById(`shopify-section-${n}`);return s==null?void 0:s.contains(this)})||requestAnimationFrame(()=>{this.productItems=Array.from(this.querySelectorAll(".js-product-card")),this._animation=null,this._staggerProductsApparition()})}_staggerProductsApparition(){return c(this,null,function*(){this.productItems.forEach(e=>e.style.opacity=0),yield this.untilVisible({threshold:this.clientHeight>0?50/this.clientHeight:0}),this.apparitionAnimation.play()})}}f(p,"observedAttributes",["hidden"]);window.customElements.get("product-list")||window.customElements.define("product-list",p);

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.