1import{f as i}from"./utils-oHofwCfm.js";class a extends HTMLElement{constructor(){super(),this.page="",this.content=this.querySelector("[data-content]"),this.pages=this.querySelectorAll("[data-page]"),this.pagesToDisplay=this.querySelectorAll("[data-page-display]"),this.pages.forEach(e=>{e.addEventListener("click",this.handlePageClick.bind(this))})}closeAll(){this.pages.forEach(e=>{e.classList.remove("active"),e.setAttribute("aria-selected",!1)}),this.pagesToDisplay.forEach(e=>{e.classList.remove("active")})}handlePageClick(e){const t=e.target;this.closeAll(),e.target.setAttribute("aria-selected",!0),this.page=e.target.dataset.page,t.classList.add("active");const s=this.querySelector(`[data-page-display="${this.page}"]`);s.classList.add("active"),s.querySelectorAll("[data-section]")[0].click()}handleApplyClick(){const e=`pages/${this.page}?section_id=main-size-guide`;this.loading=!0,this.getPage(e)}getPage(e){i(`${e}`).then(t=>{this.content.innerHTML=t.innerHTML,this.loading=!1})}get loading(){return this._loading}set loading(e){this._loading=e,this.classList.toggle("loading",e)}}customElements.get("blog-posts-size-guide")||customElements.define("blog-posts-size-guide",a);
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.