1if(!customElements.get("tab-group")){class n extends HTMLElement{constructor(){super(),this.tabs=this.querySelectorAll("[role=tab]"),this.panels=this.querySelectorAll("[role=tabpanel]");let e="-100%";this.panels.forEach(s=>{s.getAttribute("aria-hidden")==="true"?s.setAttribute("style",`transform: translateX(${e})`):(s.setAttribute("style","transform: translateX(0%)"),e="100%")})}connectedCallback(){this.addEventListener("click",this.handleClick.bind(this))}disconnectedCallback(){this.removeEventListener("click",this.handleClick.bind(this))}handleClick(e){if(e.target.matches("[role=tab], [role=tab] *")){const r=e.target.dataset.name;this.tabs.forEach(t=>{const a=t.dataset.name===r;t.setAttribute("aria-selected",a)});let l="-100%";this.panels.forEach(t=>{const a=t.dataset.name!==r;t.setAttribute("aria-hidden",a),a?t.setAttribute("style",`transform: translateX(${l})`):(t.setAttribute("style","transform: translateX(0%)"),l="100%")})}}}customElements.define("tab-group",n)}
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.