PageSourceSearch

https://www.firefightersfirstcu.org/wp-content/themes/digitalsilk/…/view.js?ver=d52983cd2492f77bacd9

js firefightersfirstcu.org collected 2026-10-01 15:10:48 UTC 10,843 bytes, 1 lines download raw bytes

1(()=>{"use strict";const t=new WeakSet,e=".dst-accordion__item-media",i=new WeakMap;function n(t){if(!t)return!1;const e=t.getBoundingClientRect();if(!e.width&&!e.height)return!1;const i=window.getComputedStyle(t);return"none"!==i.display&&"hidden"!==i.visibility}function o(t,e){return!!t.preventDefaultOpenCollapse&&"true"===e?.dataset?.defaultOpen}function s(e){if(!e||t.has(e))return;const n=e.querySelectorAll(".dst-accordion__item"),o=Array.from(n).filter(t=>t.closest('[data-ds-accordion="1"]')===e);if(!o.length)return;t.add(e);const s=function(t){return{expandMode:(t.dataset.expandMode||"single").toLowerCase(),allowCollapseAll:"true"===t.dataset.allowCollapseAll,preventDefaultOpenCollapse:"true"===t.dataset.preventDefaultOpenCollapse,startClosed:"true"===t.dataset.startClosed,scrollIntoView:"true"===t.dataset.scrollIntoView,scrollIntoViewMobileOnly:"true"===t.dataset.scrollIntoViewMobileOnly,animationSpeed:Math.max(0,Number.parseInt(t.dataset.animationSpeed||200,10)||0),animation:(t.dataset.animation||"js").toLowerCase(),variant:(t.dataset.variant||"").toLowerCase(),mediaMode:(t.dataset.mediaMode||"").toLowerCase()}}(e);s.startClosed&&o.forEach(t=>{t.open=!1}),"single"!==s.expandMode||s.allowCollapseAll||!Array.from(o).some(t=>t.open)&&o[0]&&(o[0].open=!0);let l=null;if("with-media"===s.variant&&"per-item"===s.mediaMode&&(l=e.querySelector(".js-accordion-media-target"),l)){const t=Array.from(o).find(t=>t.open)||o[0];t&&a(l,t)}o.forEach(t=>{const e=new r(t,{...s,items:o,mediaTarget:l});i.set(t,e)})}function a(t,i){try{if(!t)return;if(t.children.length>0)for(;t.children.length>1;)t.removeChild(t.firstChild);const n=i.querySelector(e);let o=null;n&&(o=n.closest(".dst-media")||n);const s=o?o.cloneNode(!0):null;if(s){const t=s.matches(e)?s:s.querySelector(e);t&&(t.classList.remove("-source"),t.removeAttribute("hidden"),t.style&&(t.style.display=""))}const a=t.firstElementChild;if(!s)return void(t.innerHTML="");"undefined"!=typeof window&&(window.__DST_MEDIA_XFADES__||Object.defineProperty(window,"__DST_MEDIA_XFADES__",{value:new WeakMap,enumerable:!1,configurable:!1,writable:!1}));const l="undefined"!=typeof window?window.__DST_MEDIA_XFADES__:null;if(l&&l.has(t)){const e=l.get(t);try{e.fadeIn?.cancel()}catch(t){}try{e.fadeOut?.cancel()}catch(t){}l.delete(t)}if(!a||!("animate"in Element.prototype))return t.innerHTML="",void t.appendChild(s);t.style.position||(t.style.position="relative"),s.style.position="absolute",s.style.inset="0",s.style.opacity="0",t.appendChild(s);const r=Math.max(1e3,Math.min(800,200)),h="ease",d=a.animate({opacity:[1,0]},{duration:r,easing:h,fill:"forwards"}),c=s.animate({opacity:[0,1]},{duration:r,easing:h,fill:"forwards"}),u=()=>{try{a.remove()}catch(t){}s.style.position="",s.style.inset="",s.style.opacity="",l&&l.delete(t)};l&&l.set(t,{fadeIn:c,fadeOut:d});let m=0;const p=()=>{m+=1,m>=2&&u()};c.onfinish=p,d.onfinish=p;const f=()=>u();c.oncancel=f,d.oncancel=f}catch(t){}}function l(t){return i.get(t)}class r{constructor(t,e){this.el=t,this.summary=t.querySelector("summary"),this.content=t.querySelector(".dst-accordion__panel"),this.options=e,this.animation=null,this.isClosing=!1,this.isExpanding=!1,this._boundOnClick=this.onClick.bind(this),this.summary.addEventListener("click",this._boundOnClick),this._boundOnResize=this.onContentResize.bind(this),"undefined"!=typeof window&&"js"===this.options.animation&&"ResizeObserver"in window&&this.content&&(this._ro=new ResizeObserver(this._boundOnResize),this._ro.observe(this.content))}destroy(){if(this.summary.removeEventListener("click",this._boundOnClick),this._ro){try{this._ro.disconnect()}catch(t){}this._ro=null}this.animation=null}onClick(t){if(t.preventDefault(),t.stopPropagation(),!this.isClosing&&!this.isExpanding)if("js"===this.options.animation&&(this.el.style.overflow="hidden"),this.el.open){if(o(this.options,this.el))return void(this.el.style.overflow="");if("single"===this.options.expandMode&&!this.options.allowCollapseAll&&Array.from(this.options.items).filter(t=>t.open).length<=1)return void(this.el.style.overflow="");this.shrink()}else this.open()}shrink(){if("js"!==this.options.animation)return this.el.open=!1,this.animation=null,this.isClosing=!1,this.isExpanding=!1,this.el.style.height="",this.el.style.overflow="",void(this.el.style.willChange="");this.isClosing=!0;const t=`${this.el.offsetHeight}px`,e=`${this.summary.offsetHeight}px`;this.animation&&this.animation.cancel(),this.el.style.willChange="height",this.el.getBoundingClientRect(),this.animation=this.el.animate({height:[t,e]},{duration:this.options.animationSpeed,easing:"ease-out",fill:"forwards"}),this.animation.onfinish=()=>this.onAnimationFinish(!1),this.animation.oncancel=()=>{this.isClosing=!1,this.el.style.willChange=""}}open(t=!0){"single"===this.options.expandMode&&this.options.items.forEac
1h(t=>{if(t!==this.el&&t.open){if(o(this.options,t))return;const e=i.get(t);e&&!e.isClosing?e.shrink():e||(t.open=!1)}}),"js"===this.options.animation?(this.el.style.height=`${this.el.offsetHeight}px`,this.el.open=!0,window.requestAnimationFrame(()=>this.expand())):(this.el.open=!0,this.el.style.height="",this.el.style.overflow="",this.el.style.willChange="",this.shouldScrollNow()&&this.scrollToTop()),"with-media"===this.options.variant&&"per-item"===this.options.mediaMode&&this.options.mediaTarget&&t&&a(this.options.mediaTarget,this.el)}expand(){if("js"!==this.options.animation)return;this.isExpanding=!0;const t=`${this.el.offsetHeight}px`,e=`${this.summary.offsetHeight+this.content.offsetHeight}px`;this.animation&&this.animation.cancel(),this.el.style.willChange="height",this.el.getBoundingClientRect(),this.animation=this.el.animate({height:[t,e]},{duration:this.options.animationSpeed,easing:"ease-out",fill:"forwards"}),this.animation.onfinish=()=>this.onAnimationFinish(!0),this.animation.oncancel=()=>{this.isExpanding=!1,this.el.style.willChange=""}}onContentResize(){if(this.el.open&&"js"===this.options.animation)try{const t=this.el.getBoundingClientRect().height,e=this.summary.offsetHeight+this.content.offsetHeight;if(Math.abs(e-t)<1)return;this.animation&&this.animation.cancel(),this.el.style.overflow="hidden",this.el.style.willChange="height",this.el.style.height=`${t}px`,this.el.getBoundingClientRect(),this.animation=this.el.animate({height:[`${t}px`,`${e}px`]},{duration:Math.max(120,Math.min(320,this.options.animationSpeed)),easing:"ease-out",fill:"forwards"}),this.animation.onfinish=()=>this.onAnimationFinish(!0),this.animation.oncancel=()=>{this.isExpanding=!1,this.el.style.willChange=""}}catch(t){}}onAnimationFinish(t){this.el.open=t,this.animation=null,this.isClosing=!1,this.isExpanding=!1,this.el.style.height="",this.el.style.overflow="",this.el.style.willChange="",t&&this.shouldScrollNow()&&this.scrollToTop()}shouldScrollNow(){if(!this.options.scrollIntoView)return!1;if(this.options.scrollIntoViewMobileOnly)try{if("undefined"!=typeof window&&"matchMedia"in window&&!window.matchMedia("(max-width: 1023px)").matches)return!1}catch(t){}return!0}scrollToTop(){try{const t=this.el.getBoundingClientRect(),e=window.scrollY+t.top-function(){if("undefined"==typeof window)return 0;let t=0;const e=document.querySelector(".navbar-mobile.js-m-burger-wrap");return e&&n(e)&&(t+=e.getBoundingClientRect().height),document.querySelectorAll(".js-dst-sticky-wrapper").forEach(e=>{if(!n(e))return;const i=e.getBoundingClientRect(),o=window.getComputedStyle(e),s="sticky"===o.position||"fixed"===o.position,a=i.top<=t+1&&i.bottom>t;s&&a&&(t+=i.height)}),Math.ceil(t)}();window.scrollTo({top:Math.max(0,e),behavior:"smooth"})}catch(t){}}}const h=(t=document)=>{const e=window.matchMedia("(max-width: 768px)");let i;if(t===document)i=document.querySelectorAll(".js-fade-slider-mobile");else{const e=t.closest(".js-fade-slider-mobile");i=e?[e]:t.querySelectorAll(".js-fade-slider-mobile")}i.forEach(t=>{if("true"===t.dataset.sliderInitialized)return;t.dataset.sliderInitialized="true";const i=t.querySelectorAll(".dst-accordion__item");if(!i.length)return;let n,o,s,r=0,h=!1;function d(e){i.forEach((t,i)=>{t.classList.toggle("active",i===e)}),r=e;const s=i[r],h=l(s);h&&h.options.mediaTarget&&a(h.options.mediaTarget,s),n&&(n.disabled=0===r),o&&(o.disabled=r===i.length-1),setTimeout(()=>function(){const e=t.querySelector(".dst-accordion__item.active");if(!e)return;const i=e.offsetHeight;t.style.setProperty("--slider-max-height",`${i}px`)}(),400)}function c(t){e.matches&&(t.stopImmediatePropagation(),t.preventDefault())}function u(){e.matches?h||(h=!0,i.forEach(t=>{const e=l(t);e?e.open(!1):t.open=!0;const i=t.querySelector("summary");i&&i.addEventListener("click",c,{capture:!0})}),function(){if(t.querySelector(".dst-accordion__slider-nav"))return;const e=document.createElement("div");e.className="dst-accordion__slider-nav",n=document.createElement("button"),o=document.createElement("button"),n.className="dst-accordion__slider-btn -prev",o.className="dst-accordion__slider-btn -next",n.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="9" height="14" viewBox="0 0 9 14" fill="none">\n<path d="M7.41406 0.707153L1.41406 6.70715L7.41406 12.7072" stroke="white" stroke-width="2"/>\n</svg>',o.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="9" height="14" viewBox="0 0 9 14" fill="none">\n<path d="M0.707031 12.7072L6.70703 6.70715L0.707031 0.707153" stroke="white" stroke-width="2"/>\n</svg>',e.appendChild(n),e.appendChild(o),t.appendChild(e),n.addEventListener("click",()=>{r>0&&d(r-1)}),o.addEventListener("click",()=>{r<i.length-1&&d(r+1)})}
1(),d(0)):h&&(h=!1,i.forEach((t,e)=>{t.classList.remove("active");const i=l(t);0!==e?i?i.shrink():t.open=!1:0!==r&&i.open();const n=t.querySelector("summary");n&&n.removeEventListener("click",c,{capture:!0})}),function(){const e=t.querySelector(".dst-accordion__slider-nav");e&&e.remove(),n=null,o=null}())}u(),window.addEventListener("resize",()=>{clearTimeout(s),s=setTimeout(u,150)})})};function d(t=document){try{!function(t=document){const e=t&&t.querySelectorAll?t:document,i='[data-ds-accordion="1"]';e!==document&&1===e.nodeType&&e.matches&&e.matches(i)&&s(e),e.querySelectorAll(i).forEach(s)}(t),h(t)}catch(t){console.error("[dst-accordion] init failed:",t)}}function c(t=document){"function"==typeof window.requestIdleCallback?window.requestIdleCallback(()=>d(t),{timeout:500}):setTimeout(()=>d(t),0)}function u(){const t=document.querySelectorAll('[data-ds-accordion="1"]');if(t.length)if("IntersectionObserver"in window){const e=new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting&&(c(t.target),e.unobserve(t.target))})},{rootMargin:"100px"});t.forEach(t=>e.observe(t))}else t.forEach(t=>c(t))}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",u,{once:!0}):u(),document.addEventListener("ds:accordion:init",t=>{c(t?.detail?.root||t?.detail?.scope||document)})})();

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.