PageSourceSearch

https://www.activecampaign.com/dist/assets/ResourcesIndex-BnSr40BY.js

js activecampaign.com collected 2026-09-24 06:39:30 UTC 3,160 bytes, 1 lines download raw bytes

1var o=Object.defineProperty;var c=(l,e,t)=>e in l?o(l,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):l[e]=t;var s=(l,e)=>o(l,"name",{value:e,configurable:!0});var r=(l,e,t)=>c(l,typeof e!="symbol"?e+"":e,t);import{h as d,G as n,i as f,c as p,d as $,F as h,e as m}from"./site-B0JexaGd.js";const i=class i{constructor(e,t){this.$element=e,this.options={...i.Options,...t},this.open=!1,this.mediaQuery=d("lg"),n.on(f.lg,this.onMediaQueryChange),this.init()}init(){return this.createChildRefs().enable(),this}createChildRefs(){return this.$sort=this.$element.querySelector(`[${i.Attributes.SORT_ORDER}]`),this.$filterMenu=this.$element.querySelector(`[${i.Attributes.FILTER_MENU}]`),this.$filterMenuForm=this.$filterMenu.querySelector("form"),this.$filterToggle=this.$element.querySelector(`[${i.Attributes.FILTER_TOGGLE}]`),this.$filterClose=this.$element.querySelector(`[${i.Attributes.FILTER_CLOSE}]`),this.$filterApply=this.$element.querySelector(`[${i.Attributes.APPLY_FILTERS}]`),this.$chatWidget=document.querySelector("iframe#forethought-chat"),this}enable(){return this.focusTrap=p(this.$filterMenu,{allowOutsideClick:!0,preventScroll:!0}),this.$sort?.addEventListener("change",this.onSortChange),this.$filterMenu.addEventListener("keydown",this.onKeydown),this.$filterToggle.addEventListener("click",this.onFilterToggleClick),this.$filterClose.addEventListener("click",this.onFilterCloseClick),this.$filterApply.addEventListener("click",this.onFilterApplyClick),this}onFilterApplyClick=s(e=>{e.preventDefault(),this.$filterMenuForm.submit()},"onFilterApplyClick");onFilterCloseClick=s(e=>{e.preventDefault(),this.closeMenu()},"onFilterCloseClick");onFilterToggleClick=s(e=>{e.preventDefault(),this.open?this.closeMenu():this.openMenu()},"onFilterToggleClick");onKeydown=s(e=>{!this.mediaQuery.matches&&this.open&&e.key==="Escape"&&this.closeMenu()},"onKeydown");onMediaQueryChange=s(()=>{this.closeMenu()},"onMediaQueryChange");onSortChange=s(e=>{const t=e.target;t.disabled=!0,t.options[t.selectedIndex].text=t.dataset.loadingText;const a=new URL(window.location.href);a.searchParams.set("sort",t.value),window.location.href=a},"onSortChange");openMenu(){this.open||(this.open=!0,this.$chatWidget&&(this.$chatWidget.style.display="none"),this.$filterMenu.classList.add("filter-menu--expanded"),this.$filterMenu.parentElement.classList.remove("gap-y-lg-xl"),this.focusTrap.activate(),$(this.$filterMenu,{reserveScrollBarGap:!0}),n.emit(h.IS_OPEN))}closeMenu(){this.open&&(this.open=!1,this.$chatWidget&&(this.$chatWidget.style.display="block"),this.$filterMenu.classList.add("filter-menu--transition-out"),this.$filterMenu.classList.remove("filter-menu--expanded"),this.$filterMenu.parentElement.classList.add("gap-y-lg-xl"),setTimeout(()=>{this.$filterMenu.classList.remove("filter-menu--transition-out")},300),this.focusTrap.deactivate(),m(this.$filterMenu),n.emit(h.IS_CLOSED))}};s(i,"ResourcesIndex"),r(i,"Attributes",{APPLY_FILTERS:"data-apply-filters",FILTER_CLOSE:"data-filter-menu-close",FILTER_MENU:"data-filter-menu",FILTER_TOGGLE:"data-filter-menu-toggle",SORT_ORDER:"data-sort-order"}),r(i,"Options",{});let u=i;export{u 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.