1document.addEventListener("click",function(t){const e=t.target.closest(".card-gallery-arrows__arrow-prev"),s=t.target.closest(".card-gallery-arrows__arrow-next");if(!e&&!s)return;const r=t.target.closest(".card-wrapper-new");if(!r)return;const o=r.querySelector(".media");if(!o)return;const a=o.clientWidth;o.querySelectorAll("img").forEach(n=>{n.style.width=`${a}px`,n.style.flex=`0 0 ${a}px`}),e&&o.scrollBy({left:-a,behavior:"smooth"}),s&&o.scrollBy({left:a,behavior:"smooth"}),v.set(r,Date.now()),setTimeout(()=>{h(o)},100),o.querySelector("img")?.addEventListener("click",()=>{const n=o.querySelectorAll("img");!n||!n.length||n.forEach(l=>{l.complete&&l.naturalWidth!==0?(l.style.width=`${a}px`,l.style.flex=`0 0 ${a}px`):l.addEventListener("load",function i(){l.style.width=`${a}px`,l.style.flex=`0 0 ${a}px`,l.removeEventListener("load",i)})})})});let u;const d=new WeakMap,v=new WeakMap;function m(t){t.dataset.src&&(t.src=t.dataset.src,t.removeAttribute("data-src")),t.dataset.srcset&&(t.srcset=t.dataset.srcset,t.removeAttribute("data-srcset")),t.classList.remove("delayed-display")}function y(t){const e=t.querySelector(".media");if(!e||e.querySelectorAll("img").length<2)return;const r=e.clientWidth,a=e.scrollLeft+r;a<e.scrollWidth&&e.scrollTo({left:a,behavior:"smooth"})}function h(t){if(!t)return;const e=Array.from(t.querySelectorAll("img")),s=t.clientWidth,r=t.scrollLeft;e.forEach((o,a)=>{if(!o.dataset.src&&!o.dataset.srcset)return;const n=a*s;n+s>=r-s*2&&n<=r+s*3&&m(o)})}function w(){document.querySelectorAll(".card-wrapper-new").forEach(e=>{const s=()=>
1{if(e.dataset.showSecondaryImage!=="true")return;const a=e.querySelector(".media");if(!a)return;const n=a.querySelectorAll("img");if(n.length<2)return;const l=a.scrollLeft<=1,i=v.get(e);if(!((i?Date.now()-i:1/0)<1500)&&l){const c=n[1];if((c.dataset.src||c.dataset.srcset)&&(m(c),!c.complete)){c.addEventListener("load",()=>{y(e)},{once:!0});return}y(e)}};e.addEventListener("mouseover",s),e.addEventListener("touchstart",s);const r=e.querySelector(".media");if(r){const o=()=>{h(r)};r.addEventListener("scroll",o,{passive:!0}),h(r)}})}window.addEventListener("load",w);function p(t){const e=t.querySelectorAll("img");if(e.length>0){const s=t.clientWidth;e.forEach(r=>{r.style.width,`${s}`}),t.dataset.resized="true"}}function L(){return u||(u=new IntersectionObserver((t,e)=>{t.forEach(s=>{const r=s.target;if(s.isIntersecting&&!r.dataset.resized){if(!d.has(r)){const o=setTimeout(()=>{p(r),e.unobserve(r),d.delete(r)},200);d.set(r,o)}}else d.has(r)&&(clearTimeout(d.get(r)),d.delete(r))})},{threshold:.3}),u)}function g(){const t=L();document.querySelectorAll(".media").forEach(e=>{e.dataset.observing||(t.observe(e),e.dataset.observing="true")})}const S=document.querySelector(".product-grid-container");S&&window.addEventListener("load",g),document.addEventListener("load-more-done",()=>{S&&(g(),w()),E()});function E(){document.querySelectorAll(".card-wrapper-new").forEach(e=>{const s=e.querySelector(".media"),r=e.querySelector(".card-gallery-arrows__arrow-prev"),o=e.querySelector(".card-gallery-arrows__arrow-next");if(!s)return;const a=()=>{const n=s.scrollLeft,l=s.scrollWidth,i=s.clientWidth,f=n<=0,c=n+i>=l-1;r.classList.toggle("card-gallery-arrows__arrow--disabled",f),f?o.classList.remove("card-gallery-arrows__arrow--disabled"):c?o.classList.add("card-gallery-arrows__arrow--disabled"):o.classList.remove("card-gallery-arrows__arrow--disabled")};a(),s.addEventListener("scroll",a)})} 2//# sourceMappingURL=/cdn/shop/t/33/assets/novicell_card-product-17902368102.js.map
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.