PageSourceSearch

https://ritual.com/cdn/shop/t/577/assets/market-switcher.B6btzaEc.min.js

js ritual.com collected 2026-09-24 08:30:43 UTC 941 bytes, 1 lines download raw bytes

1class t extends HTMLElement{constructor(){super(...arguments),this.layout=null,this.selectId=null,this.buttonClickHandler=null}connectedCallback(){this.layout=this.getAttribute("layout"),this.selectId=this.getAttribute("select-id"),"buttons"===this.layout&&this.initButtonLayout()}disconnectedCallback(){this.buttonClickHandler&&(this.querySelectorAll("[data-market-buttons] button").forEach(t=>{t.removeEventListener("click",this.buttonClickHandler)}),this.buttonClickHandler=null)}initButtonLayout(){const t=this.querySelectorAll("[data-market-buttons] button");this.buttonClickHandler=t=>{const e=t.currentTarget.dataset.countryCode;e&&this.switchMarket(e)},t.forEach(t=>{t.addEventListener("click",this.buttonClickHandler)})}switchMarket(t){if(!this.selectId)return;const e=this.querySelector(`#${this.selectId}`);e&&"value"in e&&(e.value=t,e.dispatchEvent(new Event("change",{bubbles:!0})))}}customElements.define("market-switcher",t);

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.