PageSourceSearch

https://www.waterdrop.com/cdn/shop/t/30/assets/product-facet-CyeHu9f8.js

js waterdrop.com collected 2026-09-24 08:57:59 UTC 1,661 bytes, 1 lines download raw bytes

1var h=(d,s,t)=>new Promise((n,i)=>{var a=e=>{try{o(t.next(e))}catch(c){i(c)}},r=e=>{try{o(t.throw(e))}catch(c){i(c)}},o=e=>e.done?n(e.value):Promise.resolve(e.value).then(a,r);o((t=t.apply(d,s)).next())});import l from"./custom-html-element-Cddc4xm8.js";import{t as m}from"./event-zU-Y6ZHH.js";import"./logger-pamvzmAu.js";import"./exports-NHIMKJG4.js";class u extends l{constructor(){super(),this._rerender=this._rerender.bind(this),this._abort=this._abort.bind(this)}connectedCallback(){this.delegate.on("pagination:page-changed",this._rerender),this.rootDelegate.on("facet:criteria-changed",this._rerender),this.rootDelegate.on("facet:abort-loading",this._abort)}_rerender(s){return h(this,null,function*(){window.history.replaceState({},"",s.detail.url),this._abort(),this.showLoadingBar();const t=new URL(window.location),n=this.getAttribute("section-id");t.searchParams.set("sections",n);try{this.abortController=new AbortController;const a=yield(yield fetch(t.toString(),{signal:this.abortController.signal})).json();yield new Promise(o=>{document.addEventListener("section:morphed",o,{once:!0}),document.dispatchEvent(new CustomEvent("sections:updated",{bubbles:!0,detail:{sections:a}}))});const r=this.querySelector(".js-facet-meta-bar")||this.querySelector(".js-product-list")||this.querySelector(".js-facet-main");requestAnimationFrame(()=>{r==null||r.scrollIntoView({block:"start",behavior:"smooth"})}),this.hideLoadingBar(),m(this,"facet:criteria-applied",{})}catch(i){this.hideLoadingBar()}})}_abort(){this.abortController&&this.abortController.abort()}}window.customElements.get("product-facet")||window.customElements.define("product-facet",u);

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.