1let swatchWidth=32;function getMaxSwatches(containerWidth){const maxSwatches=Math.floor((containerWidth-60)/swatchWidth),maxWidth=maxSwatches*swatchWidth-8;return{maxSwatches,maxWidth}}function initializeDisabledSwatches(product){const containerWidth=product.querySelector(".findify-color-swatches-outer").getBoundingClientRect().width;if(containerWidth<1)return!1;const{maxSwatches,maxWidth}=getMaxSwatches(containerWidth),swatchesCount=parseInt(product.querySelector(".findify-color-swatches-inner").getAttribute("data-swatches-count")),exceedsMax=swatchesCount>maxSwatches,swiperDOM=product.querySelector(".swiper-wrapper"),moreDOM=product.querySelector(".findify-more-swatches");swiperDOM.style.maxWidth=maxWidth+"px";const children=Array.from(swiperDOM.children);if(children.slice(0,maxSwatches).forEach(child=>child.style.display=null),children.slice(maxSwatches).forEach(child=>child.style.display="none"),exceedsMax){const moreCount=swatchesCount-maxSwatches;moreDOM.innerText=`+ ${moreCount} ${moreCount===1?"color":"colors"}`,moreDOM.style.display="block"}else moreDOM.style.display="none";return maxSwatches} 2//# sourceMappingURL=/cdn/shop/t/6/assets/findify-swatches.js.map?v=68232340704274752341763560387
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.