PageSourceSearch

https://hiyahealth.com/cdn/shop/t/386/assets/cart-upsells.js?v=157784484081813145891730485561

js hiyahealth.com collected 2026-09-26 14:28:17 UTC 2,553 bytes, 2 lines download raw bytes

1const enableCrossSellButtonOne=function(){const probioticButton=document.querySelector(".indiv-upsell-button.one");probioticButton&&probioticButton.disabled===!1&&(clearInterval(doEnableCrossSellButtonOne),probioticButton.onclick=function(){var probioticSelectNumber=document.querySelector("#probiotic-select-one").value,formData={items:[{id:{1:39450680066129,2:39450680098897,3:39450680131665,4:39450680164433,5:39450680197201}[probioticSelectNumber],selling_plan:448168017,quantity:1}]};handleUpsellATC(formData,"pro")})};doEnableCrossSellButtonOne=setInterval(enableCrossSellButtonOne,200);const enableCrossSellButtonTwo=function(){const bedtimeButton=document.querySelector(".indiv-upsell-button.two");bedtimeButton&&bedtimeButton.disabled===!1&&(clearInterval(doEnableCrossSellButtonTwo),bedtimeButton.onclick=function(){var bedtimeSelectNumber=document.querySelector("#bedtime-select-one").value,formData={items:[{id:{1:40375443226705,2:40375443259473,3:40375443292241,4:40375443325009,5:40375443357777}[bedtimeSelectNumber],selling_plan:731840593,quantity:1}]};handleUpsellATC(formData,"bedtime")})};doEnableCrossSellButtonTwo=setInterval(enableCrossSellButtonTwo,200);const enableCrossSellButtonThree=function(){const multiButton=document.querySelector(".indiv-upsell-button.three");multiButton&&multiButton.disabled===!1&&(clearInterval(doEnableCrossSellButtonThree),multiButton.onclick=function(){var multiSelectNumber=document.querySelector("#multivitamin-select-one").value,formData={items:[{id:{1:31972279418961,2:31972890280017,3:31972890771537,4:32022027173969,5:32022028714065}[multiSelectNumber],selling_plan:448692305,quantity:1}]};handleUpsellATC(formData,"multi")})};doEnableCrossSellButtonThree=setInterval(enableCrossSellButtonThree,200);function handleUpsellATC(formData,container){fetch(window.Shopify.routes.root+"cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(formData)}).catch(error=>{console.error("Error:",error)}),container=="multi"?document.querySelector(".upsell-container.three").classList.add("hide-this-upsell"):container==="pro"?document.querySelector(".upsell-container.one").classList.add("hide-this-upsell"):container==="bedtime"&&document.querySelector(".upsell-container.two").classList.add("hide-this-upsell"),document.querySelectorAll(".upsell-container.hide-this-upsell").length===3&&document.querySelector(".upsell-section-title").classList.add("hide-this-upsell")}
2//# sourceMappingURL=/cdn/shop/t/386/assets/cart-upsells.js.map?v=157784484081813145891730485561

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.