PageSourceSearch

https://zandersgroup.com/app/themes/zanders/dist/js/2893.js?id=43086fdf

js zandersgroup.com collected 2026-10-09 22:59:39 UTC 4,460 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunklaravel_mix_boilerplate=self.webpackChunklaravel_mix_boilerplate||[]).push([[2893],{2893:function(e,t,n){n.r(t),n(7487).Z.init()},7487:function(e,t,n){n.d(t,{Z:function(){return a}});var o=n(1296),s=n.n(o),r=n(956);var l={findActiveItemFromList(e){let t=window.location.pathname;window.location.hash.length&&(t+=window.location.hash);for(const n of e)if(n.getAttribute("data-url-path")===t)return n;return null}},i=n(7795);const c={_isOpen:!1,_selectors:{secondaryNav:".js-secondary-nav-items",navListContainer:".js-secondary-nav-list-container",navList:".js-secondary-nav-list",btnDropdownTrigger:".js-secondary-nav-dropdown-btn",currentItem:".js-secondary-nav-current-item"},_events:{handleDropdownStyleChangeEvent:""},init(){const e=this;this._events.handleDropdownStyleChangeEvent=s()((()=>{e.handleDropdownStyleChange()}),200),window.addEventListener("resize",this._events.handleDropdownStyleChangeEvent),document.querySelector(this._selectors.btnDropdownTrigger).addEventListener("click",this.toggleDropdown.bind(this)),document.querySelector("body").addEventListener("click",this.handleOutsideClick.bind(this)),this.handleDropdownStyleChange(),this.setCurrentItem(),this.highlightActiveAnchorLinksOnScroll(),document.querySelector(this._selectors.secondaryNav).setAttribute("data-init",1)},highlightActiveAnchorLinksOnScroll(){const e=this,t=[...document.querySelectorAll(".js-block-anchor"),...document.querySelectorAll(".js-core-block-anchor")];if(!t.length)return;i.Z.observeItems(t,((t,n)=>{n?document.querySelectorAll(e._selectors.navList+" li").forEach((n=>{const o=n.querySelector("a").getAttribute("href"),s=t.getAttribute("id");-1!==o.indexOf("#"+s)?(n.querySelector("a").classList.add("active"),e.setCurrentItem(n.querySelector("a")),window.dispatchEvent(new CustomEvent("scrolled-anchor-content",{detail:{anchoredElementId:s}}))):n.querySelector("a").classList.remove("active")})):(document.querySelectorAll(e._selectors.navList+" li").forEach((e=>{e.querySelector("a").classList.remove("active")})),e.setCurrentItem())}),{rootMargin:"-30% 0% -65% 0%"})},handleDropdownStyleChange(){const e=document.querySelector(this._selectors.secondaryNav);this._isHorizontalMenuOverflowing()||(0,r.Z)("tablet")||(0,r.Z)("mobile")?e.classList.add("dropdown-enabled"):(e.classList.remove("dropdown-enabled"),e.classList.remove("expanded"),this._isOpen=!1)},handleOutsideClick(e){this._isOpen&&(null!==e.target.closest(this._selectors.secondaryNav)&&"A"!==e.target.nodeName||this.collapseDropdown())},toggleDropdown(){document.querySelector(this._selectors.secondaryNav).classList.contains("expanded")?this.collapseDropdown():this.expandDropdown()},expandDropdown(){const e=this;document.querySelector(this._selectors.secondaryNav).classList.add("expanded"),setTimeout((()=>{e._isOpen=!0}))},collapseDropdown(){document.querySelector(this._selectors.secondaryNav).classList.remove("expanded"),this._isOpen=!1},setCurrentItem(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(null===e){const t=document.querySelectorAll(this._selectors.navList+" a");e=l.findActiveItemFromList(t)}null!==e&&(document.querySelector(this._selectors.currentItem).classList.remove("default"),document.querySelector(this._selectors.currentItem).innerHTML=e.innerHTML,e.classList.add("active"))},_isHorizontalMenuOverflowing(){return document.querySelector(this._selectors.navListContainer).scrollWidth>document.querySelector(this._selectors.navListContainer).clientWidth}};var a=c},7795:function(e,t,n){n(6337);const o={_debug:!1,_userCallbackFn:null,_previousY:0,observeItems(e,t,n){n=Object.assign({},{root:null,rootMargin:"0px 0px 0px 0px",threshold:0},n),this._userCallbackFn=t;const o=new IntersectionObserver(this.intersectionCallback.bind(this),n);if(e.forEach((e=>{o.observe(e)})),this._debug){const e=document.createElement("div");e.classList.add("debug-intersection-area"),document.querySelector("body").appendChild(e)}},intersectionCallback(e){const t=this;e.forEach((e=>{const n=window.scrollY,o=e.isIntersecting,s=n>t.previousY?"scroll-down":"scroll-up";t._debug&&this._logDebugMessages(n,o,e),t.previousY=n,t._userCallbackFn(e.target,o,s)}))}
1,_logDebugMessages(e,t,n){e>this.previousY?t?console.log("Scrolling down enter "+n.target.id):console.log("Scrolling down leave "+n.target.id):e<=this.previousY&&(t?console.log("scrolling up enter "+n.target.id):console.log("scrolling up leave "+n.target.id))}};t.Z=o}}]);

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.