1const collectionItemShowDescriptionByMobileSwipe=()=>{const id=setInterval(()=>{const blocks=document.querySelectorAll(".grid__item .grid-view-item__image-with-text, .search-item .grid-view-item__image-with-text");blocks?.length&&(clearInterval(id),blocks.forEach(block=>{let touchstartX=0,touchendX=0;function getDirection(){return touchendX<touchstartX?-1:touchendX>touchstartX?1:0}block.addEventListener("touchstart",e=>{touchstartX=e.changedTouches[0].screenX}),block.addEventListener("touchend",e=>{touchendX=e.changedTouches[0].screenX,getDirection()<0&&block.classList.add("grid-view-item__image-with-text--active"),getDirection()>0&&block.classList.remove("grid-view-item__image-with-text--active")})}))},100)},paralax=()=>{document.addEventListener("scroll",()=>{const wHeight=window.innerHeight-100,scrollTop=window.scrollY,els=document.querySelectorAll(".paralax-scroll");els&&els.forEach(el=>{el.style.transform="translate3d(0px, "+scrollTop/2+"px , 0px)"})})},hideBagReviews=()=>{const blocks=document.querySelectorAll(".collection-main-body .grid-view-item__meta .jdgm-prev-badge[data-average-rating]");blocks&&blocks.forEach(block=>{console.log(block.dataset.averageRating),block.dataset.averageRating<3.5&&(block.style.visibility="hidden")})},dinamicCollectionItemTitleFontSize=()=>{if(window.innerWidth<769){const titles=document.querySelectorAll(".grid-view-item__title a");
1titles&&titles.forEach(title=>{title.innerHTML.length>110&&(title.style.fontSize="14px")})}},collectionAccordion=()=>{const btn=document.querySelector("[data-collection-description-btn]");btn&&btn.addEventListener("click",()=>{btn.innerHTML=btn.innerHTML==="Read more"?"Read less":"Read more",btn.parentNode.classList.toggle("collection-description--active")})},showCollectionDescriptionReadMoreBtn=()=>{const btn=document.querySelector(["[data-collection-description-btn]"]);btn&&(document.querySelector(".collection-description__text p:not(:first-of-type), .collection-description__text p:not(:first-of-type) + *")||(btn.style.display="none"))},mobileCollectionScroll=()=>{const arrow=document.querySelector("[data-collection-header-arrow]");arrow&&arrow.addEventListener("click",()=>{const header=document.querySelector(".collection__header");window.scrollTo({top:header.offsetHeight+70,behavior:"smooth"})})};(function(){collectionItemShowDescriptionByMobileSwipe(),paralax(),hideBagReviews(),collectionAccordion(),showCollectionDescriptionReadMoreBtn(),mobileCollectionScroll(),document.addEventListener("scroll",dinamicCollectionItemTitleFontSize),document.addEventListener("resize",dinamicCollectionItemTitleFontSize)})(); 2//# sourceMappingURL=/cdn/shop/t/278/assets/custom.js.map?v=143931253870719936291743603295
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.