PageSourceSearch

https://pasts.lv/build/website/js/chunks/dropdown.CGkf4S0C.js

js pasts.lv collected 2026-10-09 16:46:38 UTC 1,510 bytes, 1 lines download raw bytes

1import{C as c}from"../app.BLUqpsw9.js";const t=class t extends c{connect(){this.initAccessibilityFeatures(),this.clickOutsideHandler=e=>{this.element.contains(e.target)||this.close()},document.addEventListener("click",this.clickOutsideHandler)}disconnect(){document.removeEventListener("click",this.clickOutsideHandler)}initAccessibilityFeatures(){this.toggleTarget.setAttribute("aria-expanded","false"),this.contentTarget.setAttribute("aria-hidden","true")}toggle(e){e.stopPropagation(),this.closeAllDropdowns();const s=this.toggleTarget.getAttribute("aria-expanded")==="true";this.toggleTarget.setAttribute("aria-expanded",String(!s)),this.contentTarget.setAttribute("aria-hidden",String(s)),this.element.classList.toggle(this.showClass);const i=this.element.querySelector('svg use[href="#plus-circle-filled"], svg use[href="#minus-circle"]');if(i){const r=i.getAttribute("href");i.setAttribute("href",r==="#plus-circle-filled"?"#minus-circle":"#plus-circle-filled")}}close(){this.toggleTarget.setAttribute("aria-expanded","false"),this.contentTarget.setAttribute("aria-hidden","true"),this.element.classList.remove(this.showClass);const e=this.element.querySelector('svg use[href="#plus-circle-filled"], svg use[href="#minus-circle"]');e&&e.setAttribute("href","#plus-circle-filled")}closeAllDropdowns(){this.application.controllers.filter(e=>e.identifier===this.identifier&&e.element!==this.element).forEach(e=>{e.close()})}};t.targets=["toggle","content"],t.classes=["show"];let l=t;export{l 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.