{"id":1673529,"name":"Variation 1","modifications":[{"id":5428419,"selector":"","type":"customScriptNew","oldValue":"$(document).ready((function(){const i=()=>{$(\" .products > .item:not(.price-updated)\").each((function(i,e){const t=$(this).find(\".price .price-type-label\").text(),n=$(this).find(\".offer a\").text().trim(),s=$(this).find(\".item-brand\").text(),a=n.split(\" \"),p=$(this).find(\".overlay .edlp\");if(\"DIOR\"!==s&&(t.length<1||p.length<1)){if((\"SAVE\"==a[0]||\"EXTRA\"==a[0])&&a[1].includes(\"%\")&&(2==a.length||n.includes(\"ENDS TODAY\")&&5==a.length)){$(this).find(\".offer\").attr(\"style\",\"display:none !important\");let i=\"\",e=\"\";if(i=a[1].match(/\\d+/),$(this).find(\".price.now\").length>0){let t=parseFloat($(this).find(\".price.now .price-display\").attr(\"content\").replace(/[^0-9\\.]+/g,\"\"));e=parseFloat(t*(1-i/100)).toFixed(2),$(this).find(\".price.now\").find(\".price-display\").text(\"$\"+e)}else{$(this).find(\"p.price\").first().addClass(\"was\");let t=parseFloat($(this).find(\".price.was .price-display\").attr(\"content\").replace(/[^0-9\\.]+/g,\"\"));e=parseFloat(t*(1-i/100)).toFixed(2);let n=\"\";n+='<p class=\"price now\">',n+='<span class=\"price-display\">$',n+=e,n+=\"</span></p>\",$(this).find(\".price.now\").length<1&&$(this).find(\".pricing\").append(n)}}else if(\"SAVE\"==a[0]&&a[1].includes(\"$\")&&(2==a.length||n.includes(\"ENDS TODAY\")&&5==a.length)){$(this).find(\".offer\").attr(\"style\",\"display:none !important\");let i=\"\",e=\"\";if(i=a[1].match(/\\d+/),$(this).find(\".price.now\").length>0){let t=parseFloat($(this).find(\".price.now .price-display\").attr(\"content\").replace(/[^0-9\\.]+/g,\"\"));e=parseFloat(t-i).toFixed(2),$(this).find(\".price.now\").find(\".price-display\").text(\"$\"+e)}else{$(this).find(\"p.price\").first().addClass(\"was\");let t=parseFloat($(this).find(\".price.was .price-display\").attr(\"content\").replace(/[^0-9\\.]+/g,\"\"));e=parseFloat(t-i).toFixed(2);let n=\"\";n+='<p class=\"price now\">',n+='<span class=\"price-display\">$',n+=e,n+=\"</span></p>\",$(this).find(\".price.now\").length<1&&$(this).find(\".pricing\").append(n)}}else if(\"CARDHOLDER\"==a[0]&&\"EXCLUSIVE\"==a[1]&&a[5].includes(\"%\")&&(6==a.length||n.includes(\"ENDS TODAY\")&&9==a.length)){$(this).find(\".offer\").attr(\"style\",\"display: none !important\");let i=\"\",e=\"\";if(i=a[5].match(/\\d+/),$(this).find(\".price.now\").length>0){let t=parseFloat($(this).find(\".price.now .price-display\").attr(\"content\").replace(/[^0-9\\.]+/g,\"\"));e=parseFloat(t*(1-i/100)).toFixed(2),$(this).find(\".price.now\").find(\".price-display\").text(\"$\"+e)}else{$(this).find(\"p.price\").first().addClass(\"was\");let t=parseFloat($(this).find(\".price.was .price-display\").attr(\"content\").replace(/[^0-9\\.]+/g,\"\"));e=parseFloat(t*(1-i/100)).toFixed(2);let n=\"\";n+='<p class=\"price now\">',n+='<span class=\"price-display\">$',n+=e,n+=\"</span></p>\",$(this).find(\".price.now\").length<1&&$(this).find(\".pricing\").append(n)}}if($(this).find(\".price.now\").length>0&&$(this).find(\".price.was\").length>0&&$(this).find(\".newLabel\").length<1){let i=\"\",e=\"\",t=\"\";const s=$(this).find(\".price.was\").find(\".price-display\").text(),p=$(this).find(\".price.now\").find(\".price-display\").text();i=Number(s.replace(/[^0-9.-]+/g,\"\")),e=Number(p.replace(/[^0-9.-]+/g,\"\")),t=100-Math.floor(100*parseFloat(e/i).toFixed(2));let l=\"\";l+=\"<span class='newLabel'><div class='float-l fs-14x mrgn-lr-10 icon icon-budicon-32'></div>Saving \",l+=t,l+=\"%</span>\",$(this).addClass(\"price-updated\"),t>5&&($(this).find(\".pricing\").append(l),\"CARDHOLDER\"==a[0]&&\"EXCLUSIVE\"==a[1]&&a[5].includes(\"%\")&&(6==a.length||n.includes(\"ENDS TODAY\")&&9==a.length)?$(this).find(\".pricing .newLabel\").addClass(\"djcc\"):\"HOT\"==a[0]&&\"PRICE\"==a[1]&&(2==a.length||n.includes(\"ENDS TODAY\")&&5==a.length)&&($(this).find(\".offer\").attr(\"style\",\"display:none !important\"),$(this).find(\".pricing .newLabel\").addClass(\"hotprice\")))}}else if(\"HOT\"==a[0]&&\"PRICE\"==a[1]&&(2==a.length||n.includes(\"ENDS TODAY\")&&5==a.length)&&$(this).find(\".price.now\").length>0&&$(this).find(\".price.was\").length>0&&$(this).find(\".newLabel\").length<1){let i=\"\",e=\"\",t=\"\";const n=$(this).find(\".price.was\").find(\".price-display\").text(),s=$(this).find(\".price.now\").find(\".price-display\").text();i=Number(n.replace(/[^0-9.-]+/g,\"\")),e=Number(s.replace(/[^0-9.-]+/g,\"\")),t=100-Math.floor(100*parseFloat(e/i).toFixed(2));let a=\"\";a+=\"<span class='newLabel hotprice'><div class='float-l fs-14x mrgn-lr-10 icon icon-budicon-32'></div>Saving \",a+=t,a+=\"%</span>\",$(this).addClass(\"price-updated\"),t>5&&($(this).find(\".offer\").attr(\"style\",\"display: none !important\"),$(this).find(\".pricing\").append(a))}}))};i(),$(document).on(\"loader-products-updated\",(function(){i()}))}));"},{"id":5428420,"selector":"","type":"addCSS","value":".products .item .pricing .newLabel {\n  display: flex;\n  gap: 5px;\n  font-size: 12px;\n  color: #d0011b;\n  text-transform: uppercase;\n  font-family: \"Circular\";\n  justify-content: center;\n  font-weight: 400;\n      flex-wrap: wrap;\n}\n\n.products .item .pricing .newLabel.hotprice::after {\n  content: \"Hot Price\";\n  color: white;\n  background: #d0011b;\n  font-size: 10px;\n  line-height: 17px;\n  padding: 0 5px;\n  border-radius: 4px;\n  text-transform: capitalize;\n}\n\n.products .item .pricing .newLabel.djcc::after {\n  content: \"Cardholder Exclusive Offer\";\n  color: white;\n  background: #d0011b;\n  font-size: 10px;\n  line-height: 17px;\n  padding: 0 5px;\n  border-radius: 4px;\n}"}],"_tagInfo":"2025/04/23 23:18:14 UTC"}