1import{G as s,A as i,U as t}from"./bundle-es.js";import{RankingsScroller as e}from"./scroller.js";class n{constructor(i){if(this.container=i,this.activeType="singles",this.typeToggles=this.container.querySelectorAll(".js-type-toggle"),this.rankingsLists={singles:this.container.querySelector(".js-singles-rankings"),doubles:this.container.querySelector(".js-doubles-rankings")},this.typeToggles&&s(this.typeToggles,this.onTypeToggleClick.bind(this)),this.rankingsLists){this.scrollers=[];for(const s in this.rankingsLists)if(Object.hasOwn(this.rankingsLists,s)){const i=this.rankingsLists[s];this.scrollers.push(new e(i))}}}onTypeToggleClick(s){const i=s.currentTarget.dataset.view;this.changeType(i)}changeType(s){s!==this.activeType&&(this.activeType=s,this.typeToggles.forEach(t=>{t.dataset.view===s?t.classList.add(i):t.classList.remove(i)}),"singles"===s?(this.rankingsLists.singles.classList.remove(t),this.rankingsLists.doubles.classList.add(t)):(this.rankingsLists.doubles.classList.remove(t),this.rankingsLists.singles.classList.add(t)))}}export{n as default};
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.