PageSourceSearch

https://ooni.com/cdn/shop/t/621/assets/__vite-product-form-atc.CnLI0l3J.js

js ooni.com collected 2026-09-24 09:07:40 UTC 1,087 bytes, 1 lines download raw bytes

1class e extends HTMLElement{constructor(){super(),this.lastVariantId=null;const t=this.getAttribute("variants");this.variants=t?JSON.parse(t):[],this.bisBtn=document.getElementById("BIS_trigger"),this.atcBtn=document.getElementById("atcButton"),this.checkVariantAvailability=this.checkVariantAvailability.bind(this)}connectedCallback(){this.checkVariantAvailability(),this.watchVariantParam()}disconnectedCallback(){window.removeEventListener("popstate",this.checkVariantAvailability)}watchVariantParam(){["pushState","replaceState"].forEach(t=>{const a=history[t];history[t]=(...i)=>{a.apply(history,i),this.checkVariantAvailability()}}),window.addEventListener("popstate",this.checkVariantAvailability)}checkVariantAvailability(){const t=Number(new URLSearchParams(window.location.search).get("variant"));if(!t||t===this.lastVariantId)return;const a=this.variants.find(i=>i.id===t);a&&(this.lastVariantId=t,this.toggle(this.bisBtn,!a.available),this.toggle(this.atcBtn,a.available))}toggle(t,a){t&&t.classList.toggle("visually-hidden",!a)}}customElements.define("product-form-atc",e);

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.