(function(){var __sections__={};(function(){for(var i=0,s=document.getElementById("sections-script").getAttribute("data-sections").split(",");i{const newScript=document.createElement("script");Array.from(oldScript.attributes).forEach(attr=>newScript.setAttribute(attr.name,attr.value)),newScript.appendChild(document.createTextNode(oldScript.innerHTML)),oldScript.parentNode.replaceChild(newScript,oldScript)})};var setHTMLAndExecuteJS=setHTMLAndExecuteJS2;async function replacePricing(){const data=await(await fetch(`/products/${window.customer.hairRecos.handle}?view=_cta3`)).text();setHTMLAndExecuteJS2(document.querySelector(".static"),data)}(async function(){window.hairRecosReady?await replacePricing():document.addEventListener("hairRecosReady",async function(){await replacePricing()});const pricing_Plans=document.querySelectorAll(".pricingPlan");pricing_Plans&&pricing_Plans.forEach(p=>p.addEventListener("click",function(){pricing_Plans.forEach(q=>{q.classList.remove("border-primary"),q.classList.add("border-[#DDDDDD]"),q===p&&(q.classList.add("border-primary"),q.classList.remove("border-[#DDDDDD]"))})}))})(),setTimeout(()=>{document.getElementById("pricing")&&([...document.querySelectorAll(".pricing-plan")].forEach((x,i)=>{x.querySelector("div p:last-child").innerHTML=`Save RM${i==0?160:80}`}),[...document.querySelectorAll(".pricing-plan strike ~ span")].forEach(x=>{x.remove()}),[...document.querySelectorAll(".pricing-plan strike")].forEach(x=>{x.innerHTML="RM359",x.insertAdjacentHTML("afterend",'RM')}),document.querySelector(".grid .pricing-plan:nth-child(2) >ul>li:last-child").innerHTML=' RM40 Shipping')},2500)}catch(e){console.error(e)}}()})(); //# sourceMappingURL=/cdn/shop/t/1/compiled_assets/scripts.js.map