1document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".discount__copy").forEach(button=>{button.addEventListener("click",function(){const couponCode=this.previousElementSibling.textContent.trim(),originalText=this.textContent;navigator.clipboard.writeText(couponCode).then(()=>{this.textContent="COPIED!",this.classList.add("copied"),setTimeout(()=>{this.textContent=originalText,this.classList.remove("copied")},2e3)}).catch(err=>{console.error("Failed to copy coupon code: ",err)})})})}),document.addEventListener("DOMContentLoaded",()=>{const input=document.querySelector("#pincode-input"),button=document.querySelector(".pincode-submit-button"),result=document.querySelector(".pincode-result"),icon=document.querySelector(".delivery-icon");button.addEventListener("click",async()=>{const pincode=input.value.trim();if(icon&&(icon.style.display="inline-block"),!/^\d{6}$/.test(pincode)){result.textContent="Invalid pincode",result.style.color="red";return}result.textContent="Checking...",result.style.color="gray",button.disabled=!0;try{const match=(await(await fetch("https://script.google.com/macros/s/AKfycbz0b09xBzXI7RU7bcbfky8k4tN4rp3GdMC3pJniA1s6HiME38IIDQ8mGcuC4nDemjJNBQ/exec")).json()).find(item=>String(item.drop_pincode)===pincode);if(!match)result.textContent="Pincode not serviceable.",result.style.color="red";else{const tatDays=parseInt(match.TAT,10)||0,estimatedDate=new Date;estimatedDate.setDate(estimatedDate.getDate()+tatDays);const formattedDate=estimatedDate.toLocaleDateString(void 0,{weekday:"long",year:"numeric",month:"short",day:"numeric"}),message=match["Message construct"]?.replace("[date]",formattedDate)||"";result.innerHTML=message}}catch(error){console.error(error),result.textContent="Error checking pincode. Try again later.",result.style.color="red"}button.disabled=!1,button.textContent="CHECK"})}),document.addEventListener("DOMContentLoaded",function(){const atcWrapper=document.getElementById("sticky-atc-wrapper");if(!atcWrapper)return;function initSticky(){const sentinel=document.createElement("div");sentinel.setAttribute("aria-hidden","true"),sentinel.style.cssText="display:block;height:0;width:100%;pointer-events:none;visibility:hidden;",atcWrapper.parentNode.insertBefore(sentinel,atcWrapper);const spacer=document.createElement("div");spacer.setAttribute("aria-hidden","true"),spacer.style.cssText="display:block;height:0;width:100%;pointer-events:none;visibility:hidden;",atcWrapper.parentNode.insertBefore(spacer,atcWrapper.nextSibling);const GAP=48;let atcTop=0,atcBottom=0,isSticky=!1,ticking=!1;function measure(){const top=sentinel.getBoundingClientRect().top+window.scrollY;atcTop=top,atcBottom=top+atcWrapper.offsetHeight}function setSticky(on){on!==isSticky&&(isSticky=on,atcWrapper.classList.toggle("sticky",on),spacer.style.height=on?atcWrapper.offsetHeight+"px":"0px")}function update(){const viewTop=window.scrollY,viewBottom=viewTop+window.innerHeight;if(isSticky)viewBottom>atcTop+GAP&&viewTop<atcBottom-GAP&&setSticky(!1);else{const belowFold=viewBottom<atcTop-GAP,scrolledPast=viewTop>atcBottom+GAP;(belowFold||scrolledPast)&&setSticky(!0)}ticking=!1}window.addEventListener("scroll",()=>{ticking||(ticking=!0,requestAnimationFrame(update))},{passive:!0});let rt;window.addEventListener("resize",()=>{clearTimeout(rt),rt=setTimeout(()=>{measure(),update()},150)}),measure(),update()}document.readyState==="complete"?initSticky():window.addEventListener("load",initSticky)}),document.addEventListener("DOMContentLoaded",function(){function updateStickyPrice(){const stickyPriceWrapper=document.querySelector(".sticky-price-wrapper");if(!stickyPriceWrapper)return;const priceContainer2=document.querySelector('[id^="price-"]');if(!priceContainer2)return;const saleBlock=priceContainer2.querySelector(".price__sale");if(saleBlock){const salePrice=saleBlock.querySelector(".price-item--sale")?.textContent.trim()||"",comparePrice=saleBlock.querySelector(".price-item--regular")?.textContent.trim()||"",discount=saleBlock.querySelector(".perc-off")?.textContent.trim()||"";stickyPriceWrapper.innerHTML=`
2 <span class="sticky-sale-price">${salePrice}</span> 3 ${comparePrice?`<span class="sticky-mrp">MRP <s>${comparePrice}</s></span>`:""} 4 ${discount?`<span class="sticky-discount">${discount}</span>`:""} 5 `}else{const regularPrice=priceContainer2.querySelector(".price-item--regular")?.textContent.trim()||"";stickyPriceWrapper.innerHTML=` 6 <span class="sticky-sale-price">${regularPrice}</span> 7 `}}updateStickyPrice();const observer=new MutationObserver(()=>{updateStickyPrice()}),priceContainer=document.querySelector('[id^="price-"]');priceContainer&&observer.observe(priceContainer,{childList:!0,subtree:!0})}); 8//# sourceMappingURL=/cdn/shop/t/157/assets/main-product.js.map?v=127848938582110609001790666194
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.