PageSourceSearch

https://www.peacockalley.com/cdn/shop/t/590/assets/custom.js?v=65670078239696042761764153912

js peacockalley.com collected 2026-09-24 20:02:45 UTC 2,531 bytes, 2 lines download raw bytes

1document.addEventListener("DOMContentLoaded",event=>{window.location.search.includes("open-monogram=true")&&setTimeout(function(){document.querySelector(".add-monogram.modal-action").dispatchEvent(new Event("click"))},2e3),$(".rg-subcollections").slick({infinite:!1,slidesToShow:6,responsive:[{breakpoint:1700,settings:{slidesToShow:5}},{breakpoint:1300,settings:{slidesToShow:4}},,{breakpoint:1100,settings:{slidesToShow:3}},{breakpoint:768,settings:{dots:!0,slidesToShow:3}},{breakpoint:300,settings:"unslick"}]})}),updateSaleSwatches();function updateSaleSwatches(){document.querySelector("body.template--collection-sale #product-grid .cell__item")&&document.querySelectorAll("body.template--collection-sale #product-grid .cell__item").forEach(saleItem=>{saleItem.querySelector(".card-grid-colors")&&updatePLPProductCardImage(saleItem.querySelector(".card-grid-colors .swatch-element:first-child"))})}function updatePLPProductCardImage(button){var image=button.getAttribute("data-varimg"),color=button.getAttribute("data-color"),prodId=button.getAttribute("data-prodId"),varId=button.getAttribute("data-varid"),parentSwatch=button.closest(".card--media"),parent=button.closest(".card-wrapper");parentSwatch.querySelectorAll(".swatch-element").forEach(function(el,index){el.classList.remove("active")}),button.classList.add("active");var imgElem=parentSwatch.querySelectorAll(".image-content__image")[0];if(imgElem.src=image,imgElem.srcset=image,parent.querySelector("#color-"+prodId)&&parent.querySelector("#size-"+prodId)){var size=parent.querySelector("#size-"+prodId).value;parent.querySelector("#color-"+prodId).value=color,setVariantCard(parent,prodId,color,size)}const overlayLink=parent.querySelector(".overlay-link");if(overlayLink){const link=overlayLink.getAttribute("href").split("?")[0];parent.querySelector(".overlay-link").setAttribute("href",link+"?variant="+varId)}}document.addEventListener("cart:updated",e=>{if(e.detail?.items?.length>0){let items=e.detail.items;removeOrphanedMonogramCartItems(items)}});function removeOrphanedMonogramCartItems(items){items.forEach(item=>{if(item.properties.hasOwnProperty("RecipeID")){let synchronizeKey=item.properties.RecipeID.replace("uc-","");if(typeof items.find(cartItem=>cartItem.properties.RecipeID===synchronizeKey)>"u"){const body=JSON.stringify({id:item.key,quantity:0});fetch(`${routes.cart_change_url}`,{...fetchConfig(),body}).then(res=>{console.log(res.json())})}}})}
2//# sourceMappingURL=/cdn/shop/t/590/assets/custom.js.map?v=65670078239696042761764153912

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.