PageSourceSearch

https://www.waterdrop.com/cdn/shop/t/30/assets/redeem-rewards-DYzBWxG8.js

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

1import c from"./custom-html-element-Cddc4xm8.js";import"./logger-pamvzmAu.js";import"./exports-NHIMKJG4.js";import"./event-zU-Y6ZHH.js";function a(i,s){function n(t){return Object.entries(t).map(o=>`${o[0]}=${o[1]}`).join("&")}return new Promise((t,o)=>{const r=s?"?"+n(s):"",e=new XMLHttpRequest;e.open("GET",`${i}${r}`),e.onload=function(){e.status>=200&&e.status<400?t(JSON.parse(e.responseText)):t(e.responseText)},e.onerror=()=>o(e.statusText),e.send()})}class l extends c{connectedCallback(){const s=new Promise(n=>{new MutationObserver((o,r)=>{this.querySelector("#loyaltylion")&&(n("loyaltylion loaded"),r.disconnect())}).observe(this,{childList:!0,subtree:!0})});this._onLoyaltyLionLoaded(s)}_onLoyaltyLionLoaded(s){s.then(()=>{setTimeout(()=>{const n=document.querySelectorAll(".lion-reward-item__redeem-button-text");typeof a=="function"&&a("/cart.js",{postId:1}).then(t=>{t.item_count===0&&n&&n.forEach(o=>{if(o.dataset.i18nKey.includes("paid_items_required")){const e=o.closest(".lion-reward-item__content");e.classList.add("lion-reward-item__content--enabled");const d=document.querySelector(".redeem__Popup");e.addEventListener("click",()=>{d.classList.add("redeem__Popup--active")}),document.querySelector(".redeem__Popup .lion-modal__close-button").addEventListener("click",()=>{d.classList.remove("redeem__Popup--active")})}})}),n&&n.forEach(t=>{t.dataset.i18nKey.includes("more_points_needed")&&t.parentElement.classList.add("lion-reward-item__more-points-button")})},1e3)})}}customElements.get("redeem-rewards")||customElements.define("redeem-rewards",l);export{l 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.