1"use strict";(self.webpackChunk_verndale_toolkit=self.webpackChunk_verndale_toolkit||[]).push([[564],{20564:function(h,n,s){s.r(n);var o=s(39551),e=s(38643);class l extends o.wA{setupDefaults(){this.lastKnownScrollPosition=0,this.ticking=!1,this.position=this.el.getBoundingClientRect().top,this.recentlyShown=!1,this.dom={$button:this.el.querySelector(".campaign-secondary-navigation__heading-trigger"),$list:this.el.querySelector(".campaign-secondary-navigation__links-wrapper"),$links:this.el.querySelectorAll(".campaign-secondary-navigation__link.mobile")},this.handleScroll(this.position)}addListeners(){this.dom.$button.addEventListener("click",this.handleClick.bind(this)),this.dom.$links.forEach(t=>{t.addEventListener("click",this.handleClick.bind(this))}),this.dom.$list.addEventListener("keydown",t=>{const i=document.querySelector(":focus");t.keyCode===e.Ps.ESCAPE&&(this.handleClick(),this.dom.$button.focus()),(t.keyCode===e.Ps.DOWN||t.keyCode===e.Ps.TAB&&!t.shiftKey)&&(t.preventDefault(),i.nextElementSibling?i.nextElementSibling.focus():this.dom.$links[0].focus()),(t.keyCode===e.Ps.UP||t.keyCode===e.Ps.TAB&&t.shiftKey)&&(t.preventDefault(),i.previousElementSibling?i.previousElementSibling.focus():this.dom.$links[this.dom.$links.length-1].focus())}),document.addEventListener("scroll",()=>{this.lastKnownScrollPosition=window.scrollY,this.ticking||(window.requestAnimationFrame(()=>{this.handleScroll(this.lastKnownScrollPosition),this.ticking=!1}),this.ticking=!0)})}handleClick(){this.dom.$button.classList.toggle("active"),this.dom.$list.classList.toggle("active")}handleScroll(t){t>this.position?(this.el.classList.add("fixed"),this.recentlyShown||(this.dom.$button.focus(),this.recentlyShown=!0),this.dom.$links.forEach(i=>i.setAttribute("tabindex","1"))):(this.el.classList.remove("fixed"),this.dom.$links.forEach(i=>i.removeAttribute("tabindex")),this.recentlyShown=!1,this.dom.$button.classList.remove("active"),this.dom.$list.classList.remove("active"))}}n.default=l}}]); 2 3//# sourceMappingURL=564.75f9b05b34903054b9a0.js.map
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.