PageSourceSearch

https://www.alldata.com/themes/custom/alldata/templates/components/groups/header/header.min.js?v=11.2.14

js alldata.com collected 2026-10-02 04:57:27 UTC 51,708 bytes, 1,396 lines download raw bytes

1(() => {
2  var e = window.jQuery;
3  e('#header > div .main-menu > .navbar > nav > .content > ul > li').each(
4    function () {
5      let n = e(this);
6      n.focusin(function () {
7        n
8          .parent()
9          .find('li')
10          .find('.has-dropdown')
11          .each(function () {
12            e(this).attr('aria-expanded', !1);
13          }),
14          n.find('.has-dropdown').attr('aria-expanded', !0);
15      }),
16        n.mousemove(function () {
17          n.parent()
18            .find('li')
19            .find('.has-dropdown')
20            .each(function () {
21              e(this).attr('aria-expanded', !1);
22            });
23        }),
24        n.keydown(function (i) {
25          let o = jQuery(':focus');
26          if (i.keyCode === 40) {
27            let l = o.parent('li').next('li').find('a:first');
28            return (
29              o.is('.menu-level-0>li>a') &&
30                (l = o.next().find('.menu .menu-item a:not(:hidden):first')),
31              o.is('.menu-item--expanded>a') &&
32                (l = o.next('.menu').find('a:first')),
33              (l.length ||
34                ((l = o
35                  .closest('.block-menu')
36                  .next('.block-menu')
37                  .find('.menu .menu-item a:first')),
38                l.length)) &&
39                l.focus(),
40              !1
41            );
42          }
43          if (i.keyCode === 38) {
44            let l = o.parent('li').prev('li').find('a:first');
45            if (
46              (l.length && o.is('.menu .menu-item a')) ||
47              ((l = o.closest('.menu').prev('a')),
48              l.length && o.is('.menu-item--expanded .menu a')) ||
49              ((l = o
50                .closest('.block-menu')
51                .prev('.block-menu')
52                .find('.menu .menu-item a:last')),
53              l.length) ||
54              ((l = o.closest('.nav-item').find('a:first')), l.length)
55            )
56              return l.focus(), !1;
57          }
58          if (i.keyCode === 39) {
59            if (o.is('.menu-level-0>li>a'))
60              return o.parent('li').next('li').find('a:first').focus(), !1;
61            o.is('.layout__region a') &&
62              o
63                .closest('.layout__region')
64                .next('.layout__region')
65                .find('.menu .menu-item a:first, .paragraph a:first')
66                .focus(),
67              o.is('.layout__region .paragraph a') &&
68                o
69                  .closest('.block-paragraph-blocks')
70                  .next('.block-paragraph-blocks')
71                  .find('.paragraph a:first')
72                  .focus();
73          }
74          if (i.keyCode === 37) {
75            let l;
76            if (o.is('.menu-level-0>li>a'))
77              return o.parent('li').prev('li').find('a:first').focus(), !1;
78            o.is('.layout__region a') &&
79              o
80                .closest('.layout__region')
81                .prev('.layout__region')
82                .find('.menu-item--expanded a:first')
83                .focus(),
84              o.is(
85                '.layout__region .block-paragraph-blocks + .block-paragraph-blocks .paragraph a'
86              ) &&
87                o
88                  .closest('.block-paragraph-blocks')
89                  .prev('.block-paragraph-blocks')
90                  .find('.paragraph a:first')
91                  .focus();
92          }
93          i.keyCode == 27 &&
94            (n.find('.has-dropdown').focus(),
95            n
96              .parent()
97              .find('li')
98              .find('.has-dropdown')
99              .each(function () {
100                e(this).attr('aria-expanded', !1);
101              }));
102        });
103    }
104  );
105  var H = document.title,
106    A = document.getElementById('heading-title');
107  A && (A.innerHTML = H);
108  e(document).click(function (n) {
109    n.isProgrammatic ||
110      e('#header > div .main-menu > .navbar > nav > .content > ul > li')
111        .find('.has-dropdown')
112        .each(function () {
113          e(this).attr('aria-expanded', !1);
114        });
115  });
116  e(document).ready(function () {
117    e('body').find('.cmp-tabs-block').length &&
118      e('header').addClass('compound-header');
119    var n = e('.tab-heading.active');
120    n.length && e('.cmp-tabs-block').scrollLeft(n.offset().left);
121  });
122  e('.navbar-brand').focusin(function () {
123    e('#header > div .main-menu > .navbar > nav > .content > ul > li')
124      .find('.has-dropdown')
125      .each(function () {
126        e(this).attr('aria-expanded', !1);
127      });
128  });
129  var L = 500;
130  function S(n) {
131    let i = e('.cmp-header__desktop'),
132      o = e('#main-wrapper'),
133      l = e('.site-footer'),
134      t = e('.highlighted'),
135      a = i.add(o).add(l).add(t);
136    n
137      ? 'inert' in HTMLElement.prototype
138        ? a.prop('inert', !0)
139        : a.attr('aria-hidden', 'true')
140      : 'inert' in HTMLElement.prototype
141      ? a.prop('inert', !1)
142      : a.removeAttr('aria-hidden');
143  }
144  function w(n) {
145    let i = {
146        hideMainNav: !1,
147        hideSecondary: !1,
148        hideMobileHeader: !1,
149        excludeElement: null,
150      },
151      o = e.extend({}, i, n),
152      l = 'inert' in HTMLElement.prototype;
153    if (o.hideMainNav)
154      if (o.excludeElement && o.excludeElement.length) {
155        let t = o.excludeElement.closest('.nav-menu-item, .main-navbar-item');
156        e(
157          '.cmp-header-mobile__nav-setup .navbar-nav > .nav-menu-item, .cmp-header-mobile__nav-setup .navbar-menu > .main-navbar-item'
158        )
159          .not(t)
160          .each(function () {
161            l ? e(this).prop('inert', !0) : e(this).attr('aria-hidden', 'true');
162          });
163      } else {
164        let t = e(
165          '.cmp-header-mobile__nav-setup .navbar-nav, .cmp-header-mobile__nav-setup .navbar-menu'
166        );
167        l ? t.prop('inert', !0) : t.attr('aria-hidden', 'true');
168      }
169    if (o.hideSecondary) {
170      let t = e('#mobile-secondary');
171      if (t.length)
172        if (l) t.prop('inert', !0);
173        else {
174          let a =
175            'a, button, input, select, textarea, [tabindex="0"], .selected-text, .sub-menu
175-trigger-icon';
176          t.attr(
177            'data-original-aria-hidden-secondary',
178            t.attr('aria-hidden') || 'null'
179          ),
180            t.attr('aria-hidden', 'true'),
181            t.find(a).each(function () {
182              let r = e(this);
183              r.attr('data-original-tabindex-secondary') ||
184                (r.attr(
185                  'data-original-tabindex-secondary',
186                  r.attr('tabindex') || 'null'
187                ),
188                r.attr(
189                  'data-original-aria-hidden-secondary',
190                  r.attr('aria-hidden') || 'null'
191                ),
192                r.attr('tabindex', '-1').attr('aria-hidden', 'true'));
193            });
194        }
195    }
196    if (o.hideMobileHeader) {
197      let t = e('.cmp-header__mobile .mobile-header');
198      l ? t.prop('inert', !0) : t.attr('aria-hidden', 'true');
199    }
200  }
201  function x() {
202    let n = 'inert' in HTMLElement.prototype,
203      i = e(
204        '.cmp-header-mobile__nav-setup .navbar-nav, .cmp-header-mobile__nav-setup .navbar-menu'
205      ),
206      o = e(
207        '.cmp-header-mobile__nav-setup .navbar-nav > .nav-menu-item, .cmp-header-mobile__nav-setup .navbar-menu > .main-navbar-item'
208      ),
209      l = e('#mobile-secondary'),
210      t = e('.cmp-header__mobile .mobile-header');
211    n
212      ? (i.prop('inert', !1), o.prop('inert', !1), t.prop('inert', !1))
213      : (i.removeAttr('aria-hidden'),
214        o.removeAttr('aria-hidden'),
215        t.removeAttr('aria-hidden'));
216    let a = e('#mobile-secondary');
217    if (n) a.prop('inert', !1);
218    else {
219      let c = a.attr('data-original-aria-hidden-secondary');
220      c &&
221        (c === 'null' ? a.removeAttr('aria-hidden') : a.attr('aria-hidden', c),
222        a.removeAttr('data-original-aria-hidden-secondary'));
223    }
224    e('[data-original-tabindex-secondary]').each(function () {
225      let c = e(this),
226        d = c.attr('data-original-tabindex-secondary');
227      d === 'null' ? c.removeAttr('tabindex') : c.attr('tabindex', d);
228      let s = c.attr('data-original-aria-hidden-secondary');
229      s === 'null' ? c.removeAttr('aria-hidden') : c.attr('aria-hidden', s),
230        c.removeAttr('data-original-tabindex-secondary'),
231        c.removeAttr('data-original-aria-hidden-secondary');
232    }),
233      l.removeAttr('aria-hidden'),
234      l.children().removeAttr('aria-hidden'),
235      e('.submenu-active').removeClass('submenu-active');
236  }
237  e(document).on(
238    'click',
239    '.cmp-header-mobile__nav-setup .menu-back, .cmp-header-mobile__nav-setup .close-menu',
240    function () {
241      let n = 'inert' in HTMLElement.prototype,
242        i = e('#mobile-secondary').find(
243          '.region-country .select2Option .selected-text, .lang_selector .select2Option .selected-text'
244        ),
245        o = e('#mobile-secondary').find('.region-country'),
246        l = e('#mobile-secondary').find('.lang_selector'),
247        t = e(
248          '.cmp-header__mobile #mobile-secondary nav.menu--my-account-top-header-menu'
249        ),
250        a = e(
251          '.cmp-header__mobile #mobile-secondary nav.menu--pay-portal-menu'
252        ),
253        r = e('.cmp-header__mobile .mobile-header');
254      n
255        ? (i.prop('inert', !1),
256          o.prop('inert', !1),
257          l.prop('inert', !1),
258          t.prop('inert', !1),
259          a.prop('inert', !1),
260          r.prop('inert', !1))
261        : (i.removeAttr('aria-hidden'),
262          o.removeAttr('aria-hidden'),
263          l.removeAttr('aria-hidden'),
264          t.removeAttr('aria-hidden'),
265          a.removeAttr('aria-hidden'),
266          r.removeAttr('aria-hidden')),
267        e('.select-buttons.dropdown-menu').each(function () {
268          let u = e(this);
269          u.removeAttr('tabindex');
270          let m = u.data('focusRedirectHandler');
271          m && (u.off('focusin', m), u.removeData('focusRedirectHandler'));
272        }),
273        i.add(o).add(l).add(t).add(a).add(r).find('[inert]').prop('inert', !1);
274      let s = e(
275        '#mobile-secondary .region-country .select-buttons.show, #mobile-secondary .lang_selector .select-buttons.show'
276      );
277      if (s.length > 0) {
278        let u = s
279          .closest('.region-country, .lang_selector')
280          .find('.select2Option .selected-text')
281          .first();
282        setTimeout(() => {
283          let m = e(document.activeElement);
284          u.length &&
285            u.is(':visible') &&
286            (m.is('body') ||
287              m.closest('.select-buttons.dropdown-menu').length > 0 ||
288              m.hasClass('close-menu') ||
289              m.hasClass('menu-back')) &&
290            u.trigger('focus');
291        }, 0);
292      }
293    }
294  );
295  e('.burger-icon').on('click', function (n, i) {
296    let o = e('.cmp-header-mobile__nav-setup');
297    o.css('display', 'block'),
298      e('.cmp-header__mobile .mobile-header')
299        .attr('aria-hidden', 'true')
300        .addClass('menu-open-inactive'),
301      w({ hideMobileHeader: !0 }),
302      S(!0),
303      typeof window.addMobileFlyoutDropdownIcons == 'function' &&
304        window.addMobileFlyoutDropdownIcons(),
305      setTimeout(function () {
306        o.css('width', '100%'),
307          e('body').css('position', 'fixed'),
308          (i && i.isKeyboard) || n.detail === 0
309            ? o.find('.nav.navbar-nav.menu-level-0').focus()
310            : o.find('.main-navbar-item:first a').focus();
311      }, L);
312  });
313  e('.close-menu').on('click', function () {
314    let n = e('.cmp-header-mobile__nav-setup');
315    setTimeout(function () {
316      n.css('display', 'none'), e('.burger-icon').focus();
317    }, 500),
318      e('.cmp-header__mobile .mobile-header')
319        .removeAttr('aria-hidden')
320        .removeClass('menu-open-inactive'),
321      x(),
322      S(!1),
323      n.css('width', '0'),
324      e('body').css('position', ''),
325      e('.cmp-header-mobile__nav-setup .menu-back').click();
326  });
327  e('.sub-menu-trigger').on('click', function (n) {
328    if (
329      e(n.target).closest('a').length ||
330      (!e(n.target).closest('.sub-menu-trigger-icon').length &&
331        !e(n.target).hasClass('sub-menu-trigger-icon'))
332    )
333      return;
334    let i = e(this),
335      o = i.find('.mobile-subcontent'),
336      l = i.find('.sub-menu-trigger-icon');
337    o.addClass('open').attr('aria-hidden', 'false'),
338      e('.cmp-header-mobile__nav-setup .menu-back').removeClass('d-none'),
339      l.length && l.attr('aria-expanded', 'true'),
340      typeof window.addMobileFlyoutDropdownIcons == 'function' &&
341        window.addMobileFlyoutDropdownIcons(),
342      setTimeout(function () {
343        let t = o.find('a, button, [tabindex="0"]').first();
344        t.length && t.focus();
345      }, 500);
346  });
347  e(
348    '.cmp-header__mobile .burger-icon, .cmp-header-mobile__nav-setup .close-menu, .cmp-header-mobile__nav-setup .menu-back'
349  ).on('keydown', function (n) {
350    if (n.keyCode === 13 || n.keyCode === 32) {
351      var i = e(n.target),
352        o = i.is('a'),
353        l = o ? i : i.find('a').first(),
354        t = l.attr('href');
355      if (t && t !== '#' && t !== '') {
356        if ((n.keyCode === 32 && n.preventDefault(), !o || n.keyCode === 32)) {
357          l[0].click();
358          return;
359        }
360        return;
361      }
362      n.target.tagName !== 'BUTTON' &&
363        (n.preventDefault(),
364        n.stopPropagation(),
365        e(this).trigger('click', { isKeyboard: !0 }));
366    }
367  });
368  e(
369    '.cmp-header__mobile .mobile-subcontent .layout__region > nav > .content > ul > li'
370  ).on('click', function (n) {
371    if (e(n.target).closest('a').length) return;
372    let i = e(this),
373      o = e(
374        '.cmp-header__mobile .mobile-subcontent .layout__region > nav > .content > ul > li'
375      ).not(i);
376    o.removeClass('opened'),
377      o.find('> ul').slideUp(300).attr('aria-hidden', 'true'),
378      o.each(function () {
379        let d = e(this),
380          s = d.find(
381            '> a.uppercase[role="button"], > .nav-link.has-dropdown > a.uppercase[role="button"]'
382          );
383        s.attr('aria-expanded', 'false');
384        let u = d.find('> .nav-link.has-dropdown');
385        u.length && u.attr('aria-expanded', 'false');
386        let m = d.find('> .sub-menu-trigger-icon');
387        if (m.length) {
388          let f = s.text().trim();
389          m.attr('aria-expanded', 'false'),
390            m.attr('aria-label', 'Open ' + f + ' submenu');
391          let p = m.find('img');
392          p.length &&
393            p.attr('src', '/themes/custom/alldata/assets/images/menu_go.svg');
394        }
395      }),
396      i.toggleClass('opened');
397    let l = i.find('> ul');
398    l.slideToggle(300);
399    let t = i.hasClass('opened');
400    l.attr('aria-hidden', t ? 'false' : 'true');
401    let a = i.find(
402      '> a.uppercase[role="button"], > .nav-link.has-dropdown > a.uppercase[role="button"]'
403    );
404    a.length &&
405      a.attr('role') === 'button' &&
406      a.attr('aria-expanded', t ? 'true' : 'false');
407    let r = i.find('> .nav-link.has-dropdown');
408    r.length && r.attr('aria-expanded', t ? 'true' : 'false');
409    let c = i.find('> .sub-menu-trigger-icon');
410    if (c.length) {
411      let d = a.text().trim() || i.text().trim();
412      c.attr('aria-expanded', t ? 'true' : 'false'),
413        c.attr('aria-label', (t ? 'Close ' : 'Open ') + d + ' submenu');
414      let s = c.find('img');
415      s.length &&
416        s.attr(
417          'src',
418          t
419            ? '/themes/custom/alldata/assets/images/white-arrow.svg'
420            : '/themes/custom/alldata/assets/images/menu_go.svg'
421        );
422    }
423    e('.cmp-header-mobile__nav-setup .menu-back').removeClass('d-none');
424  });
425  e(document).on(
426    'click',
427    '.cmp-header__mobile .mobile-subcontent.open .layout__region > nav > .content > ul > li > a.uppercase, .cmp-header__mobile .mobile-subcontent.open .layout__region > nav > .content > ul > li > .nav-link.has-dropdown > a.uppercase',
428    function (n) {
429      let i = e(this),
430        o = i.attr('role') === 'button';
431      if (!o) return;
432      n.preventDefault(), n.stopPropagation();
433      let l = i.closest('li');
434      i
435        .closest('.mobile-subcontent')
436        .find('li.opened')
437        .not(l)
438        .each(function () {
439          let s = e(this);
440          s.removeClass('opened'),
441            s.find('> ul').slideUp(300).attr('aria-hidden', 'true');
442          let m = s.find(
443            '> a.uppercase[role="button"], > .nav-link.has-dropdown > a.uppercase[role="button"]'
444          );
445          m.attr('aria-expanded', 'false');
446          let f = s.find('> .nav-link.has-dropdown');
447          f.length && f.attr('aria-expanded', 'false');
448          let p = s.find('> .sub-menu-trigger-icon');
449          if (p.length) {
450            let h = m.text().trim();
451            p.attr('aria-expanded', 'false'),
452              p.attr('aria-label', 'Open ' + h + ' submenu');
453            let b = p.find('img');
454            b.length &&
455              b.attr('src', '/themes/custom/alldata/assets/images/menu_go.svg');
456          }
457        }),
458        l.toggleClass('opened');
459      let a = l.find('> ul');
460      a.slideToggle(300);
461      let r = l.hasClass('opened');
462      a.attr('aria-hidden', r ? 'false' : 'true'),
463        o && i.attr('aria-expanded', r ? 'true' : 'false');
464      let c = i.closest('.nav-link.has-dropdown');
465      c.length && c.attr('aria-expanded', r ? 'true' : 'false');
466      let d = l.find('>
466 .sub-menu-trigger-icon');
467      if (d.length) {
468        let s = i.text().trim();
469        d.attr('aria-expanded', r ? 'true' : 'false'),
470          d.attr('aria-label', (r ? 'Close ' : 'Open ') + s + ' submenu');
471        let u = d.find('img');
472        u.length &&
473          u.attr(
474            'src',
475            r
476              ? '/themes/custom/alldata/assets/images/white-arrow.svg'
477              : '/themes/custom/alldata/assets/images/menu_go.svg'
478          );
479      }
480      r &&
481        (e('.cmp-header-mobile__nav-setup .menu-back').removeClass('d-none'),
482        setTimeout(function () {
483          let s = a.find('a, button, [tabindex="0"]').first();
484          s.length && s.focus();
485        }, 300));
486    }
487  );
488  e(document).on(
489    'keydown',
490    '.cmp-header__mobile .mobile-subcontent.open .layout__region > nav > .content > ul > li > a.uppercase[role="button"], .cmp-header__mobile .mobile-subcontent.open .layout__region > nav > .content > ul > li > .nav-link.has-dropdown > a.uppercase[role="button"]',
491    function (n) {
492      (n.key === 'Enter' ||
493        n.key === ' ' ||
494        n.keyCode === 13 ||
495        n.keyCode === 32) &&
496        (n.preventDefault(), n.stopPropagation(), e(this).trigger('click'));
497    }
498  );
499  e('.cmp-header-mobile__nav-setup .region-outer ul').click(function () {
500    e('.cmp-header-mobile__nav-setup .menu-back').removeClass('d-none');
501  });
502  e('.block-alldata-commerce-cart').click(function () {
503    var n = e('.cart-block--contents__expanded');
504    n.find('.cart-block--close').length <= 0 &&
505      n.prepend('<button class="cart-block--close"></button>');
506    var i = e('.cart-close-custom');
507    i.find('.cart-block--close').length <= 0 &&
508      i.prepend(
509        '<button id="cart-close-custom-button" class="cart-block--close" aria-label="Close cart"></button>'
510      );
511  });
512  e(document).on('click', '.cart-block--close', function () {
513    e('.cart-block--link__expand')[0].click(),
514      e('body').css('overflow-y', 'auto');
515  });
516  e('.cmp-header__desktop .menu-level-0.d-lg-flex > li').each(function (n, i) {
517    e(i).find('.card-columns nav').length == 0 &&
518      e(i).removeClass('has-dropdown');
519  });
520  e('.search-form-container input[name="search"]')
521    .focus(function () {
522      e('.search-form-container').toggleClass('active', !0);
523    })
524    .blur(function () {
525      e(this).val();
526    });
527  function _(n) {
528    var i = n.closest('.cmp-search-container'),
529      o = i.find('.search-form-container'),
530      l = o.find('input[name="search"]'),
531      t = n.closest('.mobile-header').length > 0;
532    o.addClass('active'),
533      n.attr('aria-expanded', 'true'),
534      t && (e('.cmp-header-icons').addClass('w-90'), M()),
535      setTimeout(function () {
536        l.focus();
537      }, 100);
538  }
539  function k(n) {
540    var i = n.closest('.cmp-search-container'),
541      o = i.find('.search-form-container'),
542      l = n.closest('.mobile-header').length > 0;
543    o.removeClass('active'),
544      n.attr('aria-expanded', 'false'),
545      l && (e('.cmp-header-icons').removeClass('w-90'), M());
546  }
547  var $ = !1;
548  e('.search-icon').on('mousedown', function () {
549    $ = !0;
550  });
551  e('.search-icon').attr('aria-expanded', 'false');
552  e('.search-icon').on('focus', function () {
553    if ($) {
554      $ = !1;
555      return;
556    }
557    var n = e(this)
558      .closest('.cmp-search-container')
559      .find('.search-form-container');
560    n.hasClass('active') || _(e(this));
561  });
562  e('.cmp-search-container').on('focusout', function (n) {
563    var i = e(this),
564      o = i.find('.search-form-container');
565    o.hasClass('active') &&
566      setTimeout(function () {
567        var l = e(document.activeElement),
568          t = i.has(l).length > 0 || i.is(l);
569        if (!t) {
570          var a = i.find('.search-icon');
571          k(a);
572        }
573      }, 10);
574  });
575  e('.cmp-header__desktop .search-icon').click(function (n) {
576    n.preventDefault();
577    var i = e(this)
578      .closest('.cmp-search-container')
579      .find('.search-form-container');
580    i.hasClass('active') ? k(e(this)) : _(e(this));
581  });
582  e('.mobile-header .search-icon').click(function (n) {
583    n.preventDefault();
584    var i = e(this)
585      .closest('.cmp-search-container')
586      .find('.search-form-container');
587    i.hasClass('active') ? k(e(this)) : _(e(this));
588  });
589  e('.search-icon').on('keydown', function (n) {
590    if (
591      n.key === 'Enter' ||
592      n.key === ' ' ||
593      n.keyCode === 13 ||
594      n.keyCode === 32
595    ) {
596      n.preventDefault();
597      var i = e(this)
598        .closest('.cmp-search-container')
599        .find('.search-form-container');
600      i.hasClass('active') || _(e(this));
601    }
602  });
603  e(document).click(function (n) {
604    if (n.isProgrammatic) return;
605    var i = e('.cmp-search-container'),
606      o = e(window).width();
607    let l =
608        o > 992
609          ? e('.cmp-search-container')
610          : e('.mobile-header .cmp-search-container'),
611      t = l.find('.search-form-container'),
612      a = t.find('input[name="search"]'),
613      r = l.find('.search-icon');
614    !i.is(n.target) &&
615      i.has(n.target).length === 0 &&
616      t.hasClass('active') &&
617      a.val() === '' &&
618      k(r);
619  });
620  function M() {
621    var n = 600;
622    e('.mobile-header .navbar-brand').hasClass('d-none')
623      ? setTimeout(() => {
624          e('.mobile-header .navbar-brand').toggleClass('d-none');
625        }, n)
626      : e('.mobile-header .navbar-brand').toggleClass('d-none');
627  }
628  e('.cmp-search-container #edit-search').keyup(function () {
629    var n = e(this).parent().width();
630    e(window).width() < 992 && e('#ui-id-2').css({ width: n });
631  });
632  e(
633    '.menu--pay-portal-menu .pay-portal-menu .dropdown-menu .dropdown-item-container'
634  )
635    .has('.remove-parent')
636    .css('display', 'none');
637  e('.mobile-pay-portal-menu .menu .menu-item .menu .menu-item')
638    .has('.remove-parent')
639    .css('display', 'none');
640  e('.menu--pay-portal-menu .dropdown-item-container a').click(function (n) {
641    n.preventDefault();
642    let i = e(this).attr('href');
643    if (i.includes('#edit-header-tabs-tabs-1')) {
644      sessionStorage.setItem('activeTab', '#edit-header-tabs-tabs-1');
645      let o = i.split('#');
646      window.location.pathname = o[0];
647    } else if (i.includes('#edit-header-tabs-tabs-2')) {
648      sessionStorage.setItem('activeTab', '#edit-header-tabs-tabs-2');
649      let o = i.split('#');
650      window.location.pathname = o[0];
651    } else if (i.includes('#edit-header-tabs-tabs-3')) {
652      sessionStorage.setItem('activeTab', '#edit-header-tabs-tabs-3');
653      let o = i.split('#');
654      window.location.pathname = o[0];
655    } else window.location.href = i;
656  });
657  e('.mobile-pay-portal-menu .menu .menu-item a').click(function (n) {
658    n.preventDefault();
659    let i = e(this).attr('href');
660    if (i.includes('#edit-header-tabs-tabs-1')) {
661      sessionStorage.setItem('activeTab', '#edit-header-tabs-tabs-1');
662      let o = i.split('#');
663      window.location.pathname = o[0];
664    } else if (i.includes('#edit-header-tabs-tabs-2')) {
665      sessionStorage.setItem('activeTab', '#edit-header-tabs-tabs-2');
666      let o = i.split('#');
667      window.location.pathname = o[0];
668    } else if (i.includes('#edit-header-tabs-tabs-3')) {
669      sessionStorage.setItem('activeTab', '#edit-header-tabs-tabs-3');
670      let o = i.split('#');
671      window.location.pathname = o[0];
672    } else window.location.href = i;
673  });
674  e(document).on(
675    'click',
676    '.cmp-header__mobile a[href*="#"], .cmp-header-mobile__nav-setup a[href*="#"]',
677    function (n) {
678      let o = e(this).attr('href');
679      if (!o || o.includes('#edit-header-tabs-tabs-')) return;
680      let l = o.indexOf('#');
681      if (l === -1) return;
682      let t = o.substring(l),
683        a = !1;
684      if (o.startsWith('#')) a = !0;
685      else
686        try {
687          let r = new URL(o, window.location.href),
688            c = window.location,
689            d = r.pathname.replace(/\/$/, ''),
690            s = c.pathname.replace(/\/$/, '');
691          a = r.origin === c.origin && d === s;
692        } catch {
693          a = !1;
694        }
695      if (a) {
696        let r = null;
697        if (t.startsWith('#')) {
698          let c = t.slice(1);
699          r = document.getElementById(c);
700        }
701        if (r) {
702          n.preventDefault(), n.stopImmediatePropagation();
703          let c = e(r),
704            d = e('.cmp-header-mobile__nav-setup');
705          if (d.is(':visible') && d.css('display') !== 'none')
706            e('.close-menu').trigger('click'),
707              setTimeout(function () {
708                e('body').css('position', '');
709                let s = c.offset().top;
710                e('body, html').animate({ scrollTop: s - 100 + 'px' }, 800);
711              }, 600);
712          else {
713            let s = c.offset().top;
714            e('body, html').animate({ scrollTop: s - 100 + 'px' }, 800);
715          }
716        }
717      }
718    }
719  );
720  e(document).ready(function () {
721    e(
722      '#block-myaccounttopheadermenu-menu, #block-alldata-main-menu-menu, #nav-heading-manage-my-account'
723    )
724      .attr('tabindex', '-1')
725      .attr('aria-hidden', 'true'),
726      e(
727        '.cmp-header-mobile__nav-setup .navbar-nav > .nav-menu-item, .cmp-header-mobile__nav-setup .navbar-menu > .main-navbar-item'
728      ).each(function () {
729        let t = e(this),
730          a = t.find('.nav-link a'),
731          r = t.find('.nav-link.has-dropdown:not(:has(a))'),
732          c = t.find('> .sub-menu-trigger-icon'),
733          d = t.find('> .mobile-subcontent');
734        d.length &&
735          (t.removeAttr('tabindex'),
736          t.removeAttr('role'),
737          d.attr({ 'aria-hidden': 'true' }),
738          a.length &&
739            (a.removeAttr('aria-haspopup'), a.removeAttr('aria-expanded')),
740          r.length && !a.length && r.attr({ tabindex: '0' }),
741          c.length &&
742            c.attr({
743              tabindex: '0',
744              'aria-expanded': 'false',
745              'aria-haspopup': 'true',
746            }));
747      }),
748      e('.cmp-header-mobile__nav-setup .menu-back').click(function () {
749        e(
750          '.cmp-header__mobile .mobile-subcontent .layout__region > nav > .content > ul > li.opened'
751        ).each(function () {
752          let r = e(this);
753          r.removeClass('opened'),
754            r.find('> ul').slideUp(300).attr('aria-hidden', 'true');
755          let d = r.find(
756            '> a.uppercase[role="button"], > .nav-link.has-dropdown > a.uppercase[role="button"]'
757          );
758          d.attr('aria-expanded', 'false');
759          let s = r.find('> .nav-link.has-dropdown');
760          s.length && s.attr('aria-expanded', 'false');
761          let u = r.find('> .sub-menu-trigger-icon');
762          if (u.length) {
763            let m = d.text().trim();
764            u.attr('aria-expanded', 'false'),
765              u.attr('aria-label', 'Open ' + m + ' submenu');
766            let f = u.find('img');
767            f.length &&
768              f.attr('src', '/themes/custom/alldata/assets/images/menu_go.svg');
769          }
770        });
771        let a = e('.cmp-header__mobile .mobile-subcontent.open');
772        if (a.length) {
773          let r = a.closest('.nav-menu-item, .main-navbar-item');
774          if (r.length) {
775            i(r);
776            let c = r.find('> .sub-menu-trigger-icon');
777            c.length && setTimeout(() => c.focus(), 100);
778          }
779        }
780        e('.cmp-header-mobile__nav-setup .menu-back').addClass('d-none');
781      });
782    function n(t) {
783      let a = t.find('> .mobile-subcontent'),
784        r = t.find('> .sub-menu-trigger-icon');
785      a.addClass('open').attr('aria-hidden', 'false'),
786        e('.cmp-header-mobile__nav-setup .menu-back').removeClass('d-none'),
787        r.length && r.attr('aria-expanded', 'true'),
788        typeof window.addMobileFlyoutDropdownIcons == 'function' &&
789          window.addMobileFlyoutDropdownIcons();
790      let c = t.closest('#mobile-secondary').length > 0;
791      w({
792        hideMainNav: !0,
793        hideSecondary: !c,
794        hideMobileHeader: !0,
795        excludeElement: a,
796      });
797      let d = 'inert' in HTMLElement.prototype,
798        s = t.find('> .nav-link.has-dropdown'),
799        u = t.find('> .sub-menu-trigger-icon');
800      [s, u].forEach((g) => {
801        g.length &&
802          (d
803            ? g.prop('inert', !0)
804            : (g.attr(
805                'data-original-tabindex-login',
806                g.attr('tabindex') || 'null'
807              ),
808              g.attr(
809                'data-original-aria-hidden-login',
810                g.attr('aria-hidden') || 'null'
811              ),
812              g.attr('tabindex', '-1').attr('aria-hidden', 'true')));
813      });
814      let m = t.closest('nav.menu--pay-portal-menu').length > 0,
815        f = t.closest('nav.menu--diy-login-menu').length > 0;
816      if (m || f) {
817        let g = e('#mobile-secondary .alldata-region-selector-block'),
818          T = e('nav.menu--my-account-top-header-menu'),
819          I = m
820            ? e('nav.menu--diy-login-menu')
821            : e('nav.menu--pay-portal-menu'),
822          D = m
823            ? t.closest('nav.menu--pay-portal-menu')
824            : t.closest('nav.menu--diy-login-menu'),
825          C = g.add(T).add(I).not(D);
826        if (d)
827          C.each(function () {
828            e(this).prop('inert', !0);
829          });
830        else {
831          let E =
832            'a, button, input, select, textarea, [tabindex="0"], .selected-text, .sub-menu
832-trigger-icon';
833          C.each(function () {
834            let y = e(this);
835            y.attr(
836              'data-original-aria-hidden-login',
837              y.attr('aria-hidden') || 'null'
838            ),
839              y.attr('aria-hidden', 'true'),
840              y.find(E).each(function () {
841                let v = e(this);
842                v.attr(
843                  'data-original-tabindex-login',
844                  v.attr('tabindex') || 'null'
845                ),
846                  v.attr(
847                    'data-original-aria-hidden-login',
848                    v.attr('aria-hidden') || 'null'
849                  ),
850                  v.attr('tabindex', '-1').attr('aria-hidden', 'true');
851              });
852          });
853        }
854      }
855      e(
856        '.cmp-header-mobile__nav-setup .navbar-nav > .nav-menu-item, .cmp-header-mobile__nav-setup .navbar-menu > .main-navbar-item'
857      )
858        .not(t)
859        .addClass('submenu-active');
860      let b = a
861        .find('.submenu-navbar .layout__region .content ul.menu')
862        .first();
863      b.length && b.attr('tabindex', '-1').focus();
864    }
865    function i(t) {
866      let a = t.find('> .mobile-subcontent'),
867        r = t.find('> .sub-menu-trigger-icon');
868      if ((a.removeClass('open').attr('aria-hidden', 'true'), r.length)) {
869        r.attr('aria-expanded', 'false');
870        let u = r.find('img');
871        u.length &&
872          u.attr('src', '/themes/custom/alldata/assets/images/menu_go.svg');
873      }
874      x();
875      let c = 'inert' in HTMLElement.prototype,
876        d = t.find('> .nav-link.has-dropdown'),
877        s = t.find('> .sub-menu-trigger-icon');
878      if (
879        (c
880          ? (d.length && d.prop('inert', !1), s.length && s.prop('inert', !1))
881          : [d, s].forEach((u) => {
882              if (u.length) {
883                let m = u.attr('data-original-tabindex-login'),
884                  f = u.attr('data-original-aria-hidden-login');
885                m === 'null'
886                  ? u.removeAttr('tabindex')
887                  : m && u.attr('tabindex', m),
888                  f === 'null'
889                    ? u.removeAttr('aria-hidden')
890                    : f && u.attr('aria-hidden', f),
891                  u.removeAttr('data-original-tabindex-login'),
892                  u.removeAttr('data-original-aria-hidden-login');
893              }
894            }),
895        c)
896      ) {
897        let u = e('#mobile-secondary .alldata-region-selector-block'),
898          m = e('nav.menu--my-account-top-header-menu'),
899          f = e('nav.menu--diy-login-menu'),
900          p = e('nav.menu--pay-portal-menu');
901        u.add(m)
902          .add(f)
903          .add(p)
904          .each(function () {
905            e(this).prop('inert', !1);
906          });
907      } else
908        e(
909          '[data-original-tabindex-login], [data-original-aria-hidden-login]'
910        ).each(function () {
911          let m = e(this),
912            f = m.attr('data-original-tabindex-login');
913          f === 'null' ? m.removeAttr('tabindex') : f && m.attr('tabindex', f);
914          let p = m.attr('data-original-aria-hidden-login');
915          p === 'null'
916            ? m.removeAttr('aria-hidden')
917            : p && m.attr('aria-hidden', p),
918            m.removeAttr('data-original-tabindex-login'),
919            m.removeAttr('data-original-aria-hidden-login');
920        });
921    }
922    e('.cmp-header-mobile__nav-setup .sub-menu-trigger-icon').on(
923      'click',
924      function (t) {
925        t.preventDefault(), t.stopPropagation();
926        let a = e(this).closest('.nav-menu-item, .main-navbar-item');
927        a.length && n(a);
928      }
929    ),
930      e('.cmp-header-mobile__nav-setup .sub-menu-trigger-icon').on(
931        'keydown',
932        function (t) {
933          if (
934            t.key === 'Enter' ||
935            t.key === ' ' ||
936            t.keyCode === 13 ||
937            t.keyCode === 32
938          ) {
939            t.preventDefault(), t.stopPropagation();
940            let a = e(this).closest('.nav-menu-item, .main-navbar-item');
941            a.length && n(a);
942          }
943        }
944      ),
945      e('.cmp-header-mobile__nav-setup .nav-link.has-dropdown:not(:has(a))').on(
946        'keydown',
947        function (t) {
948          if (
949            t.key === 'Enter' ||
950            t.key === ' ' ||
951            t.keyCode === 13 ||
952            t.keyCode === 32
953          ) {
954            t.preventDefault(), t.stopPropagation();
955            let a = e(this).closest('.nav-menu-item, .main-navbar-item');
956            a.length && n(a);
957          }
958        }
959      ),
960      e('.cmp-header-mobile__nav-setup .nav-link.has-dropdown:not(:has(a))').on(
961        'click',
962        function (t) {
963          if (!e(t.target).closest('a').length) {
964            t.preventDefault(), t.stopPropagation();
965            let a = e(this).closest('.nav-menu-item, .main-navbar-item');
966            a.length && n(a);
967          }
968        }
969      ),
970      e(
971        '.cmp-header-mobile__nav-setup .submenu-navbar ul.menu > li.menu-item--expanded'
972      ).each(function () {
973        e(this).attr({ 'aria-haspopup': 'true', 'aria-expanded': 'false' });
974      }),
975      e(
976        '.cmp-header-mobile__nav-setup .submenu-navbar ul.menu li.menu-item:not(.menu-item--expanded)'
977      ).on('keydown', function (t) {
978        if (
979          t.key === 'Enter' ||
980          t.key === ' ' ||
981          t.keyCode === 13 ||
982          t.keyCode === 32
983        ) {
984          if (e(t.target).is('a')) return;
985          let a = e(this).find('a').first();
986          a.length && (t.preventDefault(), a[0].click());
987        }
988      }),
989      e(document).on('keydown', function (t) {
990        if (t.key === 'Escape') {
991          let a = e('.cmp-header__mobile .mobile-subcontent.open');
992          if (a.length) {
993            let r = a.closest('.nav-menu-item, .main-navbar-item');
994            r.length && i(r);
995          }
996          e('.cmp-header__mobile .mobile-subcontent')
997            .removeClass('open')
998            .attr('aria-hidden', 'true'),
999            e('.cmp-header__mobile .sub-menu-trigger-icon').attr(
1000              'aria-expanded',
1001              'false'
1002            );
1003        }
1004      }),
1005      e(document).on('keydown', function (t) {
1006        if (t.key === 'Tab') {
1007          let a = e('.mobile-subcontent.open');
1008          if (a.length) {
1009            let r = e(document.activeElement),
1010              c = e('.cmp-header-mobile__nav-setup .menu-back'),
1011              d = e('.close-menu'),
1012              s = a.find('a, button, [tabindex="0"]').filter(':visible'),
1013              u = c.is(':visible') && !c.hasClass('d-none');
1014            if (t.shiftKey)
1015              r.closest('.mobile-subcontent').is(a) &&
1016                r.is(s.first()) &&
1017                (t.preventDefault(), d.focus()),
1018                r.is('.close-menu') &&
1019                  (t.preventDefault(),
1020                  u ? c.focus() : s.length && s.last().focus()),
1021                r.is('.cmp-header-mobile__nav-setup .menu-back') &&
1022                  (t.preventDefault(), s.length && s.last().focus());
1023            else {
1024              if (
1025                r.closest('#mobile-secondary').length &&
1026                !a.closest('#mobile-secondary').length
1027              ) {
1028                t.preventDefault(), d.focus();
1029                return;
1030              }
1031              r.closest('.mobile-subcontent').is(a) &&
1032                r.is(s.last()) &&
1033                (t.preventDefault(), u ? c.focus() : d.focus()),
1034                r.is('.cmp-header-mobile__nav-setup .menu-back') &&
1035                  (t.preventDefault(), d.focus()),
1036                r.is('.close-menu') &&
1037                  (t.preventDefault(), s.length && s.first().focus());
1038            }
1039          }
1040        }
1041      }),
1042      e(document).on(
1043        'shown.bs.dropdown',
1044        '.region-country, .lang_selector',
1045        function (t) {
1046          if (e(window).width() < 992) {
1047            let a = e(this).find('.select-buttons.show'),
1048              r = e(this).closest('#mobile-secondary').length > 0;
1049            if (
1050              (w({
1051                hideMainNav: !0,
1052                hideSecondary: !r,
1053                hideMobileHeader: !1,
1054                excludeElement: a,
1055              }),
1056              r)
1057            ) {
1058              let d = 'inert' in HTMLElement.prototype,
1059                s = e(this).closest('.region-country').length > 0,
1060                u = e(this).closest('.lang_selector').length > 0,
1061                m,
1062                f;
1063              s
1064                ? ((m = e('#mobile-secondary').find(
1065                    '.region-country .select2Option .selected-text'
1066                  )),
1067                  (f = e('#mobile-secondary').find('.lang_selector')))
1068                : u &&
1069                  ((m = e('#mobile-secondary').find(
1070                    '.lang_selector .select2Option .selected-text'
1071                  )),
1072                  (f = e('#mobile-secondary').find('.region-country')));
1073              let p = e(
1074                  '.cmp-header__mobile #mobile-secondary nav.menu--my-account-top-header-menu'
1075                ),
1076                h = e(
1077                  '.cmp-header__mobile #mobile-secondary nav.menu--pay-portal-menu'
1078                ),
1079                b = e('.cmp-header__mobile .mobile-header');
1080              d
1081                ? (m && m.length && m.prop('inert', !0),
1082                  f && f.length && f.prop('inert', !0),
1083                  p.length && p.prop('inert', !0),
1084                  h.length && h.prop('inert', !0),
1085                  b.length && b.prop('inert', !0))
1086                : (m && m.length && m.attr('aria-hidden', 'true'),
1087                  f && f.length && f.attr('aria-hidden', 'true'),
1088                  p.length && p.attr('aria-hidden', 'true'),
1089                  h.length && h.attr('aria-hidden', 'true'),
1090                  d
1091                    ? (a.prop('inert', !1), a.find('*').prop('inert', !1))
1092                    : (a.removeAttr('aria-hidden'),
1093                      a.find('*').removeAttr('aria-hidden')));
1094            }
1095            let c = a;
1096            if (c.length) {
1097              c.attr('tabindex', '-1');
1098              let d = function (s) {
1099                if (s.target === this) {
1100                  s.preventDefault(), s.stopPropagation();
1101                  let u = e(this)
1102                    .find('.dropdown-item, button, a, [role="option"]')
1103                    .filter(':visible')
1104                    .first();
1105                  u.length && u.focus();
1106                }
1107              };
1108              c.data('focusRedirectHandler', d), c.on('focusin', d);
1109            }
1110            setTimeout(function () {
1111              let d = a
1112                .find('.dropdown-item, button, a, [role="option"]')
1113                .filter(':visible')
1114                .first();
1115              d.length && d.focus();
1116            }, 50);
1117          }
1118        }
1119      ),
1120      e(document).on(
1121        'hidden.bs.dropdown',
1122        '.region-country, .lang_selector',
1123        function (t) {
1124          if (e(window).width() < 992) {
1125            let a = 'inert' in HTMLElement.prototype,
1126              r = e(this).find('.select-buttons.dropdown-menu'),
1127              c = r.data('focusRedirectHandler');
1128            r.removeAttr('tabindex'),
1129              c && (r.off('focusin', c), r.removeData('focusRedirectHandler'));
1130            let d = e(this).find('.select2Option .selected-text');
1131            a ? d.prop('inert', !1) : d.removeAttr('aria-hidden'),
1132              x(),
1133              setTimeout(() => {
1134                let s = d.first(),
1135                  u = e(document.activeElement);
1136                s.length &&
1137                  s.is(':visible') &&
1138                  (u.is('body') ||
1139                    u.closest('.select-buttons.dropdown-menu').length > 0 ||
1140                    u.hasClass('close-menu') ||
1141                    u.hasClass('menu-back')) &&
1142                  s.trigger('focus');
1143              }, 0);
1144          }
1145        }
1146      );
1147    function o() {
1148      e('.mobile-subcontent .card-columns').each(function () {
1149        var t = e(this);
1150        window.innerWidth < 992
1151          ? (t.attr('inert', ''), t.attr('aria-hidden', 'true'))
1152          : (t.removeAttr('inert'), t.removeAttr('aria-hidden'));
1153      });
1154    }
1155    o(), e(window).on('resize', o);
1156    function l() {
1157      let t = e(
1158          'h2.visually-hidden, a.skip-link, h2#block-diyloginmenu-menu, h2.block-payportalmenu-menu, #mobile-secondary h2.block-payportalmenu-menu, #sitewide-alert p'
1159        ),
1160        a = 'inert' in HTMLElement.prototype;
1161      e(window).width() < 992
1162        ? a && t.prop('inert', !0)
1163        : a && t.prop('inert', !1);
1164    }
1165    l(), e(window).on('resize', l);
1166  });
1167  e(document).ready(function () {
1168    function n() {
1169      let i = document.querySelectorAll(
1170        '.cmp-header__mobile nav[class*="menu--header-flyout-menu"]'
1171      );
1172      if (!i.length) return;
1173      i.forEach(function (c) {
1174        c.querySelectorAll('.menu-item--expanded').forEach(function (s) {
1175          if (s.querySelector('.sub-menu-trigger-icon')) return;
1176          let u = s.querySelector('a'),
1177            m = u ? u.textContent.trim() : '',
1178            f = u ? u.getAttribute('href') : '';
1179          if (u && window.innerWidth < 992) {
1180            let g = document.createElement('div');
1181            (g.className = 'nav-link has-dropdown'),
1182              g.setAttribute('aria-expanded', 'false'),
1183              u.setAttribute('aria-expanded', 'false'),
1184              u.setAttribute('aria-haspopup', 'true'),
1185              g.appendChild(u),
1186              s.insertBefore(g, s.firstChild);
1187          }
1188          let p = document.createElement('span');
1189          (p.className = 'sub-menu-trigger-icon submenu-toggle'),
1190            p.setAttribute('role', 'button'),
1191            p.setAttribute('tabindex', '0'),
1192            p.setAttribute('aria-expanded', 'false'),
1193            p.setAttribute('aria-haspopup', 'true'),
1194            p.setAttribute('aria-label', 'Open ' + m + ' submenu');
1195          let h = document.createElement('img');
1196          (h.src = '/themes/custom/alldata/assets/images/menu_go.svg'),
1197            (h.alt = ''),
1198            (h.className = 'float-right d-lg-none'),
1199            h.setAttribute('aria-hidden', 'true'),
1200            p.appendChild(h);
1201          let b = s.querySelector('.menu');
1202          if ((b ? s.insertBefore(p, b) : s.appendChild(p), b && !b.id)) {
1203            let g = 'submenu-' + Math.random().toString(36).substr(2, 9);
1204            (b.id = g), p.setAttribute('aria-controls', g);
1205          }
1206        });
1207      }),
1208        e(
1209          '.cmp-header__mobile nav[class*="menu--header-flyout-menu"] .menu-item--expanded'
1210        )
1211          .off('click')
1212          .on('click', function (c) {
1213            e(c.target).closest('.sub-menu-trigger-icon').length;
1214          }),
1215        document
1216          .querySelectorAll(
1217            '.cmp-header__mobile nav[class*="menu--header-flyout-menu"] .sub-menu-trigger-icon'
1218          )
1219          .forEach(function (c) {
1220            c.addEventListener('click', function (d) {
1221              d.preventDefault(), d.stopImmediatePropagation(), r(this);
1222            }),
1223              c.addEventListener('keydown', function (d) {
1224                (d.key === 'Enter' || d.key === ' ') &&
1225                  (d.preventDefault(), d.stopImmediatePropagation(), r(this));
1226              });
1227          }),
1228        document
1229          .querySelectorAll(
1230            '.cmp-header__mobile nav[class*="menu--header-flyout-menu"] .nav-link.has-dropdown'
1231          )
1232          .forEach(function (c) {
1233            c.addEventListener('click', function (d) {
1234              d.target.tagName.toLowerCase() !== 'a' &&
1235                (d.preventDefault(), d.stopPropagation());
1236            });
1237          });
1238      function t(c, d, s) {
1239        let u = c.querySelector('.menu'),
1240          m = c.querySelector('.nav-link.has-dropdown'),
1241          f = m ? m.querySelector('a') : null;
1242        c.classList.add('opened'),
1243          d.setAttribute('aria-expanded', 'true'),
1244          d.setAttribute('aria-label', 'Close ' + s + ' submenu');
1245        let p = d.querySelector('img');
1246        if (
1247          (p &&
1248            (p.src = '/themes/custom/alldata/assets/images/white-arrow.svg'),
1249          m && m.setAttribute('aria-expanded', 'true'),
1250          f && f.setAttribute('aria-expanded', 'true'),
1251          u)
1252        ) {
1253          (u.style.display = 'block'), u.setAttribute('aria-hidden', 'false');
1254          let h = u.querySelector('a, button, [tabindex="0"]');
1255          h && setTimeout(() => h.focus(), 0);
1256        }
1257      }
1258      function a(c) {
1259        let d = c.querySelector('.menu'),
1260          s = c.querySelector('.sub-menu-trigger-icon'),
1261          u = c.querySelector('.nav-link.has-dropdown'),
1262          m = u ? u.querySelector('a') : null;
1263        if ((c.classList.remove('opened'), s)) {
1264          s.setAttribute('aria-expanded', 'false'),
1265            s.setAttribute(
1266              'aria-label',
1267              s.getAttribute('aria-label').replace('Close', 'Open')
1268            );
1269          let f = s.querySelector('img');
1270          f && (f.src = '/themes/custom/alldata/assets/images/menu_go.svg'),
1271            s.focus();
1272        }
1273        u && u.setAttribute('aria-expanded', 'false'),
1274          m && m.setAttribute('aria-expanded', 'false'),
1275          d &&
1276            ((d.style.display = 'none'), d.setAttribute('aria-hidden', 'true'));
1277      }
1278      function r(c) {
1279        let d = c.getAttribute('aria-expanded') === 'true',
1280          s = c.closest('.menu-item--expanded'),
1281          u = s.querySelector('.menu'),
1282          m = s.querySelector('.nav-link.has-dropdown'),
1283          f = m ? m.querySelector('a') : null,
1284          p = f ? f.textContent.trim() : '',
1285          h = !d;
1286        document
1287          .querySelectorAll(
1288            '.cmp-header__mobile nav[class*="menu--header-flyout-menu"] .menu-item--expanded.opened'
1289          )
1290          .forEach(function (b) {
1291            b !== s && a(b);
1292          }),
1293          h ? t(s, c, p) : a(s);
1294      }
1295    }
1296    n(),
1297      document.addEventListener('keydown', function (i) {
1298        let o = document.activeElement;
1299        if (
1300          !o ||
1301          !o.closest ||
1302          !o.closest(
1303            '.cmp-header__mobile nav[class*="menu--header-flyout-menu"]'
1304          )
1305        )
1306          return;
1307        let l = o.closest('.menu-item');
1308        if (i.key === 'ArrowDown') {
1309          i.preventDefault();
1310          let t = null;
1311          if (l && o.closest('.menu-item--expanded.opened')) {
1312            let a = l.nextElementSibling;
1313            a && (t = a.querySelector('a'));
1314          }
1315          if (!t && l) {
1316            let a = l.querySelector('.menu');
1317            a && (t = a.querySelector('a'));
1318          }
1319          t && t.focus();
1320        }
1321        if (i.key === 'ArrowUp') {
1322          i.preventDefault();
1323          let t = null;
1324          if (l) {
1325            let a = l.previousElementSibling;
1326            a && (t = a.querySelector('a'));
1327          }
1328          if (!t && l) {
1329            let a = l.closest('.menu-item--expanded');
1330            if (a) {
1331              let r = a.querySelector('.sub-menu-trigger-icon');
1332              if (r) {
1333                r.focus();
1334                return;
1335              }
1336            }
1337          }
1338          t && t.focus();
1339        }
1340        if (i.key === 'ArrowRight') {
1341          let t = o.closest('.menu-item--expanded');
1342          if (t && !t.classList.contains('opened')) {
1343            let a = t.querySelector('.sub-menu-trigger-icon');
1344            a && (i.preventDefault(), a.click());
1345          }
1346        }
1347        if (i.key === 'ArrowLeft') {
1348          let t = o.closest('.menu-item--expanded');
1349          if (t && t.classList.contains('opened')) {
1350            i.preventDefault();
1351            let a = t.querySelector('.sub-menu-trigger-icon');
1352            a && a.click();
1353          }
1354        }
1355        i.key === 'Escape' &&
1356          document
1357            .querySelectorAll(
1358              '.cmp-header__mobile nav[class*="menu--header-flyout-menu"] .menu-item--expanded.opened'
1359            )
1360            .forEach(function (a) {
1361              let r = a.querySelector('.sub-menu-trigger-icon');
1362              r && r.click();
1363            });
1364      }),
1365      typeof Drupal < 'u' &&
1366        Drupal.behaviors &&
1367        (Drupal.behaviors.headerFlyoutDropdownIcons = {
1368          attach: function () {
1369            n();
1370          },
1371        });
1372  });
1373  (function (n, i) {
1374    'use strict';
1375    i.behaviors.stickyHeader = {
1376      attach: function (o, l) {
1377        n(window, o).on('load', function () {
1378          n('.order-type-rep').length < 1 && t();
1379        });
1380        function t() {
1381          if (n(window).width() < 992)
1382            var a = n('.cmp-header__mobile').offset().top;
1383          else
1384            var r = n('.cmp-header__desktop .region-secondary-menu'),
1385              a = r.get(0) ? r.offset().top + r.height() : 0;
1386          n(window).scrollTop() > a && n('body').addClass('sticky-header'),
1387            n(window, o).on('scroll', function () {
1388              n(this).scrollTop() > a
1389                ? n('body').addClass('sticky-header')
1390                : n('body').removeClass('sticky-header');
1391            });
1392        }
1393      },
1394    };
1395  })(jQuery, Drupal);
1396})();

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.