PageSourceSearch

https://www.volvotrucks.at/clientlibs-edge/production/202609171319…/structure/secondary-navigation.js

js volvotrucks.at collected 2026-10-07 19:56:03 UTC 3,248 bytes, 1 lines download raw bytes

1(()=>{"use strict";var e,t,r,i,n,s,o={47520(e,t,r){var i=r(38443),n=r(97503),s=r(23073),o=r(7967);let l="subnav--open",a=".subnav__title",u=".cmp-navigation__item-link",f=".header";class c extends i.A{constructor(e,t){super(e,t),this.init()}init(){this.setRefs(),this.setListeners(),this.onResize(window.innerWidth)}setRefs(){this.title=this.el.querySelector(a),this.header=this.el.closest(f)}setListeners(){(0,n.Tg)([960],this.onResize.bind(this)),this.title.addEventListener("click",this.onClickTitle.bind(this)),this.el.addEventListener("keydown",this.onKeydown.bind(this))}onKeydown(e){if(!this.isMenuOpen()||(0,n.Lv)())return;let t=Array.from(this.el.querySelectorAll(u)),r=t.indexOf(document.activeElement);if("ArrowDown"===e.key){e.preventDefault();let i=(r+1)%t.length;t[i].focus()}else if("ArrowUp"===e.key){e.preventDefault();let i=(r-1+t.length)%t.length;t[i].focus()}else"Escape"===e.key&&(e.preventDefault(),this.el.classList.remove(l),this.title.setAttribute("aria-expanded","false"),this.title.focus())}isMenuOpen(){return this.el.classList.contains(l)}onResize(e){e>=960&&this.el.classList.remove(l),(0,s.EG)(this.header)}onClickTitle(){this.el.classList.toggle(l),this.title.setAttribute("aria-expanded",this.isMenuOpen())}}(0,o.kz)({SubNavigation:c})}},l={};function a(e){var t=l[e];if(void 0!==t)return t.exports;var r=l[e]={exports:{}};return o[e].call(r.exports,r,r.exports,a),r.exports}a.m=o,a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(r,i){if(1&i&&(r=this(r)),8&i||"object"==typeof r&&r&&(4&i&&r.__esModule||16&i&&"function"==typeof r.then))return r;var n=Object.create(null);a.r(n);var s={};e=e||[null,t({}),t([]),t(t)];for(var o=2&i&&r;("object"==typeof o||"function"==typeof o)&&!~e.indexOf(o);o=t(o))Object.getOwnPropertyNames(o).forEach(e=>{s[e]=()=>r[e]});return s.default=()=>r,a.d(n,s),n},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.e=()=>Promise.resolve(),a.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r=[],a.O=(e,t,i,n)=>{if(t){n=n||0;for(var s=r.length;s>0&&r[s-1][2]>n;s--)r[s]=r[s-1];r[s]=[t,i,n];return}for(var o=1/0,s=0;s<r.length;s++){for(var t=r[s][0],i=r[s][1],n=r[s][2],l=!0,u=0;u<t.length;u++)(!1&n||o>=n)&&Object.keys(a.O).every(e=>a.O[e](t[u]))?t.splice(u--,1):(l=!1,n<o&&(o=n));if(l){r.splice(s--,1);var f=i();void 0!==f&&(e=f)}}return e},a.rv=()=>"1.7.11",a.j="9781",i={9781:0},a.O.j=e=>0===i[e],n=(e,t)=>{var r,n,s=t[0],o=t[1],l=t[2],u=0;if(s.some(e=>0!==i[e])){for(r in o)a.o(o,r)&&(a.m[r]=o[r]);if(l)var f=l(a)}for(e&&e(t);u<s.length;u++)n=s[u],a.o(i,n)&&i[n]&&i[n][0](),i[n]=0;return a.O(f)},(s=self.webpackChunkvolvo_fe_build=self.webpackChunkvolvo_fe_build||[]).forEach(n.bind(null,0)),s.push=n.bind(null,s.push.bind(s)),a.ruid="[email protected]";var u=a.O(void 0,["8263"],()=>a(47520));u=a.O(u)})();

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.