PageSourceSearch

https://ooni.com/cdn/shop/t/621/assets/__vite-recommendation-carousel.CZ5Z460-.js

js ooni.com collected 2026-10-01 10:39:35 UTC 1,190 bytes, 1 lines download raw bytes

1class u extends HTMLElement{connectedCallback(){this.hasAttribute("triggered-by-values")&&this.shouldShow()&&this.show();const e=this.querySelector("recommendation-carousel uwp-carousel"),s=this.querySelector(".recommendation-carousel__arrows"),t=this.querySelector(".recommendation-carousel__arrow--prev"),r=this.querySelector(".recommendation-carousel__arrow--next");if(!e||!s||!t||!r)return;const n=()=>{const o=e.carousel;if(!o)return;const a=o.length,c=o.options.perPage??1,l=a>c&&o.Components.Layout.isOverflow();s.classList.toggle("is-hidden",!l)},i=()=>{e.carousel?(t.addEventListener("click",()=>{var o;return(o=e.carousel)==null?void 0:o.go("<")}),r.addEventListener("click",()=>{var o;return(o=e.carousel)==null?void 0:o.go(">")}),e.carousel.on("overflow",n),e.carousel.on("resize",n),n()):requestAnimationFrame(i)};i()}shouldShow(){var t;const e=(t=new URLSearchParams(window.location.search).get("utm_medium"))==null?void 0:t.toLowerCase(),s=(this.getAttribute("triggered-by-values")??"").split(",").map(r=>r.trim().toLowerCase()).filter(Boolean);return typeof e<"u"&&s.includes(e)}show(){this.classList.remove("is-hidden")}}customElements.define("recommendation-carousel",u);

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.