1import{p as u}from"../base-Ci7vLHE_.js";import"../preload-helper-BVLnHgTN.js";var d=Object.defineProperty,c=o=>{throw TypeError(o)},m=(o,t,e)=>t in o?d(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,p=(o,t,e)=>m(o,t+"",e),f=(o,t,e)=>t.has(o)||c("Cannot "+e),v=(o,t,e)=>t.has(o)?c("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(o):t.set(o,e),l=(o,t,e)=>(f(o,t,"access private method"),e),a,r;const n=class h extends u{constructor(){if(super(),v(this,a),!this.shadowRoot.querySelector("ul")){const t=this.ownerDocument.createElement("ul");this.shadowRoot.appendChild(t)}}connectedCallback(){l(this,a,r).call(this)}set buttons(t){this.shadowRoot.querySelectorAll("li").forEach(s=>s.remove());const e=this.shadowRoot.querySelector("ul")||this.ownerDocument.createElement("ul");this.shadowRoot.appendChild(e);for(const s of t){const i=this.ownerDocument.createElement("li");i.appendChild(s),e.appendChild(i)}l(this,a,r).call(this)}get buttons(){return[...this.shadowRoot.querySelectorAll("li a, li button")]}get active(){return this.shadowRoot.querySelector("li.active :where(a, button)")}set active(t){for(const e of this.buttons)e.parentElement.classList.toggle("active",t===e)}disconnectedCallback(){}static register(){customElements.get("g2ui-chip-filter")||customElements.define("g2ui-chip-filter",h)}};a=new WeakSet,r=function(){this.shadowRoot.querySelectorAll("button").forEach(o=>{o.addEventListener("click",t=>{t.target.closest("ul").querySelectorAll("li.active").forEach(e=>e.classList.remove("active")),t.target.closest("li").classList.add("active"),t.target.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})})})},p(n,"adopt",[new URL("/apps/framework/build/css/g2ui-chip-filter-Cg2xfakn.css",import.meta.url)]);let g=n;export{g 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.