PageSourceSearch

https://www.heifer.org/build/js/chunks/FilterGrid.C7lXsW_V.js

js heifer.org collected 2026-09-24 08:27:47 UTC 1,392 bytes, 1 lines download raw bytes

1function a(){return{init(){this.cards.matched=this.gatherCards("matched"),this.cards.other=this.gatherCards("other")},activeFilters:{action:this.$refs.actionSelect.value,persona:this.$refs.personaSelect.value},cards:{matched:[],other:[]},filterCards(s){this.loading=!0,window.setTimeout(()=>{this.activeFilters[s.target.name]=s.target.value;let t={matched:[],other:[]};this.cards.matched.forEach((e,i)=>{e.dataset.action.includes(this.activeFilters.action)&&e.dataset.persona.includes(this.activeFilters.persona)?(e.classList.remove("tw-hidden"),t.matched.push(i)):((e.dataset.action.includes(this.activeFilters.action)||e.dataset.persona.includes(this.activeFilters.persona))&&t.other.push(i),e.classList.add("tw-hidden"))}),this.cards.other.forEach((e,i)=>{t.other.includes(i)?e.classList.remove("tw-hidden"):e.classList.add("tw-hidden")}),t.matched.length>0?this.showMatched=!0:this.showMatched=!1,t.other.length>0?this.showOther=!0:this.showOther=!1,this.loading=!1,this.showAll=!1},500)},gatherCards(s){return Array.from(this.$el.querySelectorAll("[data-type")).filter(t=>t.dataset.type===s)},loading:!1,reset(){this.loading=!0,window.setTimeout(()=>{this.showAll=!0,this.showMatched=!1,this.showOther=!1,this.loading=!1,this.$refs.actionSelect.selectedIndex=0,this.$refs.personaSelect.selectedIndex=0,this.loading=!1},500)},showAll:!0,showMatched:!1,showOther:!1}}export{a 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.