PageSourceSearch

https://grants.at/static/app/build/assets/index-CK8-Dvar.js

js grants.at collected 2026-10-01 11:44:08 UTC 1,343 bytes, 1 lines download raw bytes

1import{C as s}from"./app-BXezEdO3.js";import i from"./index-D1CSjBoD.js";import"./ScrollToPlugin-DOCSy_Wn.js";import"./ScrollTrigger-CB6UHAJl.js";class e extends s{static SELECTORS={collapsible:'[data-toggle="collapse"]',showAll:".accordion__toggle-all--show",hideAll:".accordion__toggle-all--hide"};static CLASSES={allExpanded:"accordion--all-expanded"};collapsibleElements=[];showAllButton;hideAllButton;get collapsibles(){return this.collapsibleElements.map(l=>l.app.collapse)}run(){this.bind(),this.setListeners(),this.setCollapsedState()}bind(){this.collapsibleElements=Array.from(this.element.querySelectorAll(e.SELECTORS.collapsible)),this.showAllButton=this.element.querySelector(e.SELECTORS.showAll),this.hideAllButton=this.element.querySelector(e.SELECTORS.hideAll)}setListeners(){this.showAllButton?.addEventListener("click",this.showAll.bind(this)),this.hideAllButton?.addEventListener("click",this.hideAll.bind(this)),this.collapsibleElements.forEach(l=>{l.addEventListener(i.EVENTS.toggle,this.setCollapsedState.bind(this))})}showAll(){this.collapsibles.forEach(l=>l.open(!1)),this.setCollapsedState()}hideAll(){this.collapsibles.forEach(l=>l.close(!1)),this.setCollapsedState()}setCollapsedState(){const l=this.collapsibles.some(t=>t.isCollapsed());this.element.classList.toggle(e.CLASSES.allExpanded,!l)}}export{e 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.