1var n=Object.defineProperty;var c=(i,e,s)=>e in i?n(i,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[e]=s;var l=(i,e,s)=>c(i,typeof e!="symbol"?e+"":e,s);import{D as a}from"./DeferWebComponent.min.BrKhvwE6.js";import{F as d}from"./FixScroll.min.CEFs3W-g.js";const t=class t extends a{ready(e){if(this.close=this.close.bind(this),this.open=this.open.bind(this),this.id=this.id||this.dataset.id,this.isOpen=!1,this.id==null)return this.onDestroy(),!1;this.elOpen=Array.from(document.querySelectorAll(`${t.selectors.open.replace("{id}",this.id)}`)),this.elClose=Array.from(document.querySelectorAll(`${t.selectors.close.replace("{id}",this.id)}`)),this.bindEvents()}bindEvents(){document.addEventListener("keydown",this.onKeydown.bind(this));for(const e of this.elOpen)e.addEventListener("click",this.open.bind(this));for(const e of this.elClose)e.addEventListener("click",this.close.bind(this));document.addEventListener("close-sidebar",e=>{e.detail&&e.detail.id===this.id&&this.close()})}open(e){var s;e&&e.preventDefault(),this.classList.contains("c-panel-exclusive")&&((s=document.querySelector("clrz-sidebar.is-visible"))==null||s.close()),this.classList.add("is-loaded"),requestAnimationFrame(()=>{this.classList.add("is-visible")}),this.isOpen=!0,d.fix()}close(e){e&&e.preventDefault(),this.classList.remove("is-visible"),setTimeout(()=>{this.classList.remove("is-loaded")},300),this.isOpen=!1,d.unFix()}onKeydown(e){switch(e.code){case"Escape":this.isOpen&&this.close(e);break;case"Space":!this.isOpen&&this.elOpen.includes(document.activeElement)&&(e.preventDefault(),this.open(e));break}}};l(t,"selectors",{el:'[data-component="sidebar"]',open:"[data-sidebar-open={id}]",close:"[data-sidebar-close={id}]"});let o=t;customElements.get("clrz-sidebar")===void 0&&customElements.define("clrz-sidebar",o);export{o as ClrzSidebar};
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.