'use strict';var foundElm=document.querySelector("div.content-card-v2-component"); if(foundElm){var compareChartDiscountText=foundElm.querySelector(".cc-discounted-price-text"),ccWdp=compareChartDiscountText.dataset.wdp;if("object"==typeof msauth&&"true"==ccWdp){var productcompareUrl=document.querySelector(".product-compare-url").value;$(".cc-original-price").removeClass("hideText");$(".cc-discounted-price-text").addClass("hideText");if(productcompareUrl){var productsIds=productcompareUrl.split("productIds\x3d")[1].split("\x26")[0].split("%2C"),productsLength=productsIds.length; for(let a=0;ab&&0>c.y&&($("div.compare-chart-synchronized-scroll.stuck-depth.sticky.sticky-direction-top").hasClass("stuck")||document.querySelector("div.compare-chart-synchronized-scroll.stuck-depth.sticky.sticky-direction-top").classList.add("stuck")): 0<$("div.compare-chart-synchronized-scroll.stuck-depth.fixed-sticky.sticky-direction-top").length&&(a.yb&&0>c.y&&($("div.compare-chart-synchronized-scroll.stuck-depth.fixed-sticky.sticky-direction-top").hasClass("stuck")||document.querySelector("div.compare-chart-synchronized-scroll.stuck-depth.fixed-sticky.sticky-direction-top").classList.add("stuck"))); var e=$(".material-backdrop.container.compare-chart-sticky-content.sticky-show-stuck"),f=$(".content-card-v2-component");e.scroll(function(){f.scrollLeft($(this).scrollLeft())});f.scroll(function(){e.scrollLeft($(this).scrollLeft())});$(".content-card-v2-component .badge")&&badgeHeight(num1,num2,num3);$(".content-card-v2-component .product-heading")&&buttonHeight(hum1);$(".content-card-v2-component .product-heading")&&buttonHeight(pum1);$(".content-card-v2-component .price-one")&&buttonHeight(oum1); $(".content-card-v2-component .buynow-button")&&buttonHeight(bum1);$(".content-card-v2-component .link-group .sku2price")&&buttonHeight(sum1);$(".content-card-v2-component .sticky-heading")&&buttonHeight(stum1);$(".content-card-v2-component .link-group .sticky-inner")&&buttonHeight(ium1)});window.addEventListener("resize",a=>{$(".content-card-v2-component .badge")&&badgeHeight(num1,num2,num3);$(".content-card-v2-component .product-heading")&&($(".content-card-v2-component .product-heading").removeAttr("style"), buttonHeight(hum1));$(".content-card-v2-component .product-description")&&($(".content-card-v2-component .product-description").removeAttr("style"),buttonHeight(pum1));$(".content-card-v2-component .price-one")&&($(".content-card-v2-component .price-one").removeAttr("style"),buttonHeight(oum1));$(".content-card-v2-component .buynow-button")&&($(".content-card-v2-component .buynow-button").removeAttr("style"),buttonHeight(bum1));$(".content-card-v2-component .link-group .sku2price-link")&&($(".content-card-v2-component .link-group .sku2price-link").removeAttr("style"), buttonHeight(sum1));$(".content-card-v2-component .sticky-heading")&&($(".content-card-v2-component .sticky-heading").removeAttr("style"),buttonHeight(stum1));$(".content-card-v2-component .link-group .sticky-inner")&&($(".content-card-v2-component .link-group .sticky-inner").removeAttr("style"),buttonHeight(ium1))})} function badgeHeight(a,c,d){a=$(a).length;var b=[];let e;if(1{!b.href||b.href.includes("ocid\x3d")||b.href.includes("#")||(b.href.match(/\?./)?b.href=b.href+"\x26ocid\x3d"+c:b.href=b.href+"?ocid\x3d"+c)})}window.addEventListener("DOMContentLoaded",function(){updateCTALinksCompareChart()});